:root {
  --bg: #f6f4f1;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --faint: #8b8278;
  --line: #e5e1dc;
  --line-strong: #d8d0c7;
  --neutral-bg: #f1eee9;
  --neutral-text: #554f48;
  --red: #b42318;
  --red-bg: #fff0ed;
  --yellow: #a16207;
  --yellow-bg: #fff6d7;
  --green: #1f7a4c;
  --green-bg: #e9f7ee;
  --blue: #1d5f9f;
  --blue-bg: #eaf3ff;
  --purple: #7c3a9a;
  --purple-bg: #f5edff;
  --orange: #b85c00;
  --orange-bg: #fff0df;
  --gray: #5f6470;
  --gray-bg: #eceff1;
  --focus: #7c5c37;
  --shadow: 0 18px 46px rgb(69 55 39 / 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family:
    "Aptos",
    "Microsoft JhengHei",
    "PingFang TC",
    "Noto Sans TC",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
}

img {
  max-width: 100%;
}

.card,
.post-card,
.brand-card,
.brand-list-row,
.cc-task-row,
.review-row,
.owner-row,
.schedule-list-card,
.schedule-day-card,
.schedule-insights,
.schedule-post-row,
.rescue-row,
.rescue-console,
.rescue-platform-card,
.brand-settings-card,
.brand-settings-console,
.brand-account-card,
.banned-word-card,
.detail-drawer,
.text,
.copy,
.summary,
.feedback {
  min-width: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(214px, 238px) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #efebe5;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.mark-dot {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: #2e2a25;
  border-radius: 12px;
  font-weight: 800;
}

.brand-mark strong {
  display: block;
  font-size: 17px;
}

.brand-mark span,
.sidebar-note,
.muted,
.meta,
.eyebrow {
  color: var(--muted);
}

.sidebar-note {
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.65;
}

.sidebar-metrics {
  display: grid;
  gap: 10px;
}

.sidebar-section-title {
  margin: 0 0 1px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
}

.side-metric {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.45);
}

.side-metric span {
  color: var(--muted);
  font-size: 12px;
}

.side-metric strong {
  font-size: 18px;
}

.dashboard {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.eyebrow {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

.topbar p:last-child {
  margin-bottom: 0;
}

.today-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--neutral-text);
  font-size: 14px;
  font-weight: 800;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.summary-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-card strong {
  font-size: 25px;
  line-height: 1;
}

.summary-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.summary-card-button {
  appearance: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.summary-card-button:hover,
.summary-card-button:focus-visible {
  border-color: #b7a58e;
  outline: none;
  box-shadow: 0 0 0 3px rgb(124 92 55 / 0.12);
}

.signal-red strong {
  color: var(--red);
}

.signal-orange strong {
  color: var(--orange);
}

.signal-yellow strong {
  color: var(--yellow);
}

.signal-gray strong {
  color: var(--gray);
}

.signal-blue strong {
  color: var(--blue);
}

.signal-purple strong {
  color: var(--purple);
}

.signal-green strong {
  color: var(--green);
}

.module-switch {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
}

.module-switch button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.module-switch .is-active {
  background: #2e2a25;
  color: #fff;
}

.problem-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.problem-filter-tabs,
.tabs {
  display: flex;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.problem-chip,
.filter-pill {
  appearance: none;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf8;
  color: var(--neutral-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.problem-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
}

.problem-chip strong {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--text);
  font-size: 12px;
}

.problem-chip.is-active,
.filter-pill.is-active {
  border-color: #2e2a25;
  background: #2e2a25;
  color: #fff;
}

.problem-chip.is-active strong {
  background: rgb(255 255 255 / 0.18);
  color: #fff;
}

.search-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
  color: var(--text);
}

.search-input:focus {
  border-color: #b7a58e;
  outline: none;
  box-shadow: 0 0 0 3px rgb(124 92 55 / 0.14);
}

.scale-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.brand-results,
.posts-panel {
  min-width: 0;
}

.result-toolbar,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.result-toolbar h2,
.panel-head h2 {
  margin-bottom: 3px;
  font-size: 18px;
}

.result-toolbar p,
.panel-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-toolbar .filter-context {
  margin-top: 5px;
  color: var(--faint);
  font-size: 12px;
}

.filter-context strong {
  color: var(--neutral-text);
}

.mode-toggle {
  display: inline-flex;
  min-width: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
}

.mode-toggle button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mode-toggle .is-active {
  background: #2e2a25;
  color: #fff;
}

.brand-table {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.brand-list-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(86px, 0.42fr) minmax(220px, 0.95fr) minmax(180px, 1.08fr) minmax(78px, 0.34fr) 40px;
  gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 13px;
  background: var(--surface-strong);
}

.brand-list-row.has-action {
  border-left-color: var(--red);
}

.brand-list-row.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.row-hit,
.brand-card-hit {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

.brand-main-cell,
.capacity-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.brand-main-cell strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-main-cell span,
.capacity-cell span,
.last-activity {
  color: var(--muted);
  font-size: 12px;
}

.capacity-cell strong {
  font-size: 14px;
}

.mini-track {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe5de;
}

.mini-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.health-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.mini-signal {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.is-red {
  color: var(--red);
  background: var(--red-bg);
}

.is-orange {
  color: var(--orange);
  background: var(--orange-bg);
}

.is-yellow {
  color: var(--yellow);
  background: var(--yellow-bg);
}

.is-green {
  color: var(--green);
  background: var(--green-bg);
}

.is-gray {
  color: var(--gray);
  background: var(--gray-bg);
}

.row-summary {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.last-activity {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.icon-button:hover,
.icon-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.problem-chip:hover,
.problem-chip:focus-visible,
.filter-pill:hover,
.filter-pill:focus-visible,
.post-card:hover,
.post-card:focus-visible,
.related-post:hover,
.related-post:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgb(124 92 55 / 0.18);
}

.brand-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brand-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 15px;
  background: var(--surface-strong);
}

.brand-card.has-action {
  border-left-color: var(--red);
}

.brand-card.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: var(--shadow);
}

.brand-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.brand-card h3 {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.25;
}

.brand-tags,
.status-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill,
.status-badge,
.platform-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  white-space: normal;
}

.pill-neutral,
.status-neutral {
  color: var(--neutral-text);
  background: var(--neutral-bg);
}

.status-yellow {
  color: var(--yellow);
  background: var(--yellow-bg);
}

.status-green {
  color: var(--green);
  background: var(--green-bg);
}

.status-blue {
  color: var(--blue);
  background: var(--blue-bg);
}

.status-purple {
  color: var(--purple);
  background: var(--purple-bg);
}

.status-orange {
  color: var(--orange);
  background: var(--orange-bg);
}

.status-red {
  color: var(--red);
  background: var(--red-bg);
}

.brand-progress {
  display: grid;
  gap: 7px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe5de;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.progress-track .is-behind {
  background: var(--yellow);
}

.normal-collapse {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.normal-collapse > button,
.load-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  background: #fbfaf8;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.normal-collapse span,
.load-more {
  color: var(--muted);
  font-size: 13px;
}

.posts-panel {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-strong);
}

.tabs {
  padding-bottom: 4px;
}

.filter-pill {
  min-height: 36px;
  padding: 7px 10px;
}

.post-list {
  display: grid;
  gap: 9px;
  min-width: 0;
  max-height: calc(100vh - 310px);
  overflow-y: auto;
  padding-right: 2px;
}

.post-card {
  appearance: none;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.post-card.is-selected {
  border-color: #b7a58e;
  box-shadow: 0 8px 22px rgb(69 55 39 / 0.08);
}

.thumb {
  width: 68px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--neutral-bg);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.post-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.post-id {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.post-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 9px;
}

.meta-item {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.meta-item strong {
  display: block;
  color: var(--text);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.platform-pill {
  min-height: 22px;
  color: var(--blue);
  background: var(--blue-bg);
  font-size: 11px;
}

.post-note {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-note.is-error {
  color: var(--red);
  font-weight: 800;
}

.media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.media-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.media-neutral {
  color: var(--neutral-text);
  background: var(--neutral-bg);
}

.media-blue {
  color: var(--blue);
  background: var(--blue-bg);
}

.media-yellow {
  color: var(--yellow);
  background: var(--yellow-bg);
}

.media-green {
  color: var(--green);
  background: var(--green-bg);
}

.media-red {
  color: var(--red);
  background: var(--red-bg);
}

.media-purple {
  color: var(--purple);
  background: var(--purple-bg);
}

.media-orange {
  color: var(--orange);
  background: var(--orange-bg);
}

.media-gray {
  color: var(--gray);
  background: var(--gray-bg);
}

.brand-workbench {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.workbench-hero,
.workbench-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1fr) minmax(180px, 0.65fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-strong);
}

.workbench-toolbar {
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 1fr);
  align-items: center;
}

.workbench-title,
.workbench-summary,
.workbench-progress {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.workbench-title h2,
.workbench-toolbar h2 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.22;
}

.workbench-title p,
.workbench-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workbench-summary {
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 13px;
  background: #fbfaf8;
}

.workbench-summary span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.workbench-summary strong {
  font-size: 15px;
  line-height: 1.45;
}

.back-button {
  appearance: none;
  justify-self: start;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf8;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.workbench-tabs {
  justify-content: flex-end;
}

.workbench-post-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.brand-workbench .post-card {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-height: 116px;
  padding: 12px;
  background: var(--surface-strong);
}

.brand-workbench .thumb {
  width: 112px;
}

.brand-workbench .post-id {
  font-size: 14px;
}

.brand-workbench .post-note {
  -webkit-line-clamp: 2;
}

.material-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.material-filter-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.material-tabs {
  max-width: 100%;
}

.material-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 10px;
  min-width: 0;
}

.sort-select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
  color: var(--text);
  font-weight: 800;
}

.material-inbox,
.batch-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.batch-row {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: var(--surface-strong);
}

.batch-row.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.batch-row-main,
.batch-row-body,
.batch-actions {
  display: grid;
  min-width: 0;
}

.batch-row-main {
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.batch-row-main h3 {
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.25;
}

.batch-status-stack,
.batch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.batch-row-body {
  grid-template-columns: minmax(210px, 0.46fr) minmax(260px, 1fr) minmax(210px, 0.46fr);
  gap: 12px;
  align-items: stretch;
}

.batch-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.batch-thumb,
.batch-thumb-more {
  display: grid;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-size: 13px;
  font-weight: 900;
}

.batch-thumb img,
.batch-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.batch-summary {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.batch-summary p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.batch-intent {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.batch-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.batch-metrics div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}

.batch-metrics span:first-child,
.claude-task-grid span,
.rule-list > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.batch-metrics strong {
  font-size: 14px;
}

.confidence-meter {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.batch-vision,
.batch-images-section,
.claude-task {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.batch-vision h3,
.batch-images-section h3,
.claude-task h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.batch-vision > p {
  margin-bottom: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
  font-size: 13px;
  line-height: 1.55;
}

.field-wide {
  grid-column: 1 / -1;
}

.batch-image-grid {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.batch-image-card {
  appearance: none;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
  color: var(--text);
  cursor: zoom-in;
  text-align: left;
}

.batch-image-preview {
  display: block;
  width: 88px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--neutral-bg);
}

.batch-image-info {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.batch-image-info strong {
  font-size: 13px;
}

.batch-image-info > span:not(.media-review-head):not(.ocr-text) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.claude-task {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
}

.claude-task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.claude-task-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-strong);
}

.claude-task-grid strong {
  font-size: 13px;
  line-height: 1.45;
}

.rule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.rule-list > span:first-child {
  flex-basis: 100%;
}

.prompt-preview {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.prompt-preview pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  font: 12px/1.6 "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.batch-related-list {
  display: grid;
  gap: 8px;
}

.batch-related-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
  font-size: 12px;
}

.batch-related-post > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.batch-related-post strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cc-filter-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.cc-tabs {
  max-width: 100%;
}

.cc-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 10px;
  min-width: 0;
}

.cc-task-console,
.cc-task-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cc-task-row {
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: var(--surface-strong);
}

.cc-task-row.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.cc-task-main,
.cc-task-body {
  display: grid;
  min-width: 0;
}

.cc-task-main {
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.cc-task-main h3 {
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.28;
}

.cc-status-stack,
.cc-task-actions,
.cc-banned-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cc-status-stack,
.cc-task-actions {
  justify-content: flex-end;
}

.cc-task-body {
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 0.56fr) minmax(180px, 0.42fr);
  gap: 12px;
  align-items: stretch;
}

.cc-task-goal {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.cc-task-goal p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.cc-task-metrics,
.cc-task-meta {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cc-task-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cc-task-metrics div,
.cc-task-meta div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}

.cc-task-metrics span:first-child,
.cc-task-meta span,
.task-history span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.cc-task-metrics strong,
.cc-task-meta strong {
  font-size: 13px;
  line-height: 1.35;
}

.cc-banned-row {
  align-items: center;
  min-width: 0;
}

.cc-banned-row > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.cc-drawer-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cc-drawer-section h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.cc-checklist {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cc-check;
}

.cc-checklist li {
  position: relative;
  min-width: 0;
  padding: 9px 10px 9px 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
  font-size: 13px;
  line-height: 1.45;
  counter-increment: cc-check;
}

.cc-checklist li::before {
  position: absolute;
  top: 9px;
  left: 10px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
  content: counter(cc-check);
  font-size: 11px;
  font-weight: 900;
}

.cc-related-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.cc-related-image {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.cc-related-image img {
  width: 72px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cc-related-image div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.cc-related-image strong {
  font-size: 12px;
}

.task-history {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.task-history div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}

.task-history strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.review-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.review-filter-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.review-tabs {
  max-width: 100%;
}

.review-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 250px);
  gap: 10px;
  min-width: 0;
}

.review-inbox,
.review-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.review-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: var(--surface-strong);
}

.review-row.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.review-row-main {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.review-thumb {
  appearance: none;
  display: block;
  width: 94px;
  min-height: 94px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--neutral-bg);
  cursor: pointer;
}

.review-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-main-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-main-copy h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.25;
}

.review-main-copy p:last-child {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.review-status-stack,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.review-row-body {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.review-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.review-card-meta div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}

.review-card-meta span:first-child {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.review-card-meta strong {
  font-size: 13px;
  line-height: 1.35;
}

.review-check-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.review-drawer-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.review-drawer-section h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.review-alert-red {
  border-color: color-mix(in srgb, var(--red) 35%, var(--line));
  background: var(--red-bg);
}

.review-checklist {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.review-check {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfaf8;
}

.review-check > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.review-check strong {
  font-size: 13px;
  line-height: 1.35;
}

.review-check p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.review-check-passed {
  border-left-color: var(--green);
}

.review-check-warning {
  border-left-color: var(--yellow);
}

.review-check-failed {
  border-left-color: var(--red);
}

.review-next-actions .review-action-primary {
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  background: var(--green-bg);
  color: var(--green);
}

.review-next-actions .review-action-danger {
  border-color: color-mix(in srgb, var(--red) 40%, var(--line));
  background: var(--red-bg);
  color: var(--red);
}

.owner-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.owner-filter-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.owner-tabs {
  max-width: 100%;
}

.owner-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 270px);
  gap: 10px;
  min-width: 0;
}

.owner-console,
.owner-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.owner-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: var(--surface-strong);
}

.owner-row.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.owner-row-main {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.owner-thumb {
  appearance: none;
  display: block;
  width: 94px;
  min-height: 94px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--neutral-bg);
  cursor: pointer;
}

.owner-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.owner-main-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.owner-main-copy h3 {
  margin-bottom: 0;
  font-size: 17px;
  line-height: 1.25;
}

.owner-main-copy p:last-child {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owner-status-stack,
.owner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.owner-row-body {
  display: grid;
  grid-template-columns:
    minmax(150px, 0.6fr)
    minmax(140px, 0.56fr)
    minmax(220px, 1fr)
    minmax(180px, 0.72fr);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.owner-time-card,
.owner-line-card,
.owner-feedback-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}

.owner-time-card > span:first-child,
.owner-line-card > span:first-child,
.owner-feedback-card > span:first-child {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.owner-time-card strong,
.owner-line-card strong {
  font-size: 13px;
  line-height: 1.35;
}

.owner-line-card div,
.owner-feedback-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.owner-feedback-card p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.owner-countdown {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.owner-countdown-yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.owner-countdown-orange {
  background: var(--orange-bg);
  color: var(--orange);
}

.owner-countdown-red {
  background: var(--red-bg);
  color: var(--red);
}

.owner-countdown-purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.owner-countdown-green {
  background: var(--green-bg);
  color: var(--green);
}

.owner-drawer-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.owner-drawer-section h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.owner-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.owner-time-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.owner-time-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.owner-time-grid strong {
  font-size: 13px;
  line-height: 1.4;
}

.owner-state-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 13px;
  background: #fbfaf8;
}

.owner-state-card strong {
  font-size: 14px;
}

.owner-state-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.owner-state-overdue {
  border-left-color: var(--red);
  background: var(--red-bg);
}

.owner-state-auto_approve_soon {
  border-left-color: var(--orange);
  background: var(--orange-bg);
}

.owner-state-revision_requested {
  border-left-color: var(--purple);
  background: var(--purple-bg);
}

.owner-state-approved {
  border-left-color: var(--green);
  background: var(--green-bg);
}

.owner-state-sent_today {
  border-left-color: var(--blue);
  background: var(--blue-bg);
}

.owner-feedback-box {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
}

.owner-feedback-box.is-revision {
  border-color: color-mix(in srgb, var(--purple) 35%, var(--line));
  background: var(--purple-bg);
}

.owner-feedback-box strong {
  font-size: 14px;
  line-height: 1.5;
}

.owner-timeline {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.owner-timeline-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #b7a58e;
  border-radius: 12px;
  background: #fbfaf8;
}

.owner-timeline-item strong,
.owner-timeline-item span {
  display: block;
}

.owner-timeline-item strong {
  font-size: 13px;
  line-height: 1.35;
}

.owner-timeline-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.owner-timeline-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.owner-next-actions .owner-action-primary {
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  background: var(--green-bg);
  color: var(--green);
}

.owner-next-actions .owner-action-warning {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--line));
  background: var(--orange-bg);
  color: var(--orange);
}

.owner-next-actions .owner-action-danger {
  border-color: color-mix(in srgb, var(--purple) 40%, var(--line));
  background: var(--purple-bg);
  color: var(--purple);
}

.schedule-summary-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.schedule-toolbar,
.schedule-filter-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.schedule-toolbar {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.schedule-month-controls,
.schedule-card-badges,
.schedule-summary-badges,
.schedule-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.schedule-month-controls .ghost-button {
  min-height: 38px;
  padding-block: 7px;
}

.schedule-current-month {
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.schedule-current-month span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.schedule-current-month strong {
  font-size: 14px;
}

.schedule-view-toggle {
  width: auto;
  white-space: nowrap;
}

.schedule-tabs {
  max-width: 100%;
}

.schedule-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.schedule-layout {
  display: block;
}

.schedule-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.schedule-main-panel,
.schedule-calendar-panel,
.schedule-list-view,
.schedule-week-mock {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.schedule-weekdays,
.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.schedule-weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.schedule-day-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 164px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-strong);
}

.schedule-day-card.is-blank {
  min-height: 70px;
  background: transparent;
  border-color: transparent;
}

.schedule-day-card.is-today {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 16%, transparent);
}

.schedule-day-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.schedule-day-head,
.schedule-day-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.schedule-day-head div {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.schedule-day-head span:first-child {
  font-size: 18px;
  font-weight: 900;
}

.schedule-day-head strong {
  color: var(--blue);
  font-size: 11px;
}

.schedule-day-count {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-size: 11px;
  font-weight: 900;
}

.schedule-day-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.schedule-alert {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.schedule-alert-red {
  background: var(--red-bg);
  color: var(--red);
}

.schedule-alert-orange {
  background: var(--orange-bg);
  color: var(--orange);
}

.schedule-alert-yellow {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.schedule-alert-purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.schedule-alert-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.schedule-alert-green {
  background: var(--green-bg);
  color: var(--green);
}

.schedule-status-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.schedule-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  font-size: 10px;
  font-weight: 900;
  color: var(--muted);
}

.schedule-status-dot i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.dot-red {
  color: var(--red);
}

.dot-orange {
  color: var(--orange);
}

.dot-yellow {
  color: var(--yellow);
}

.dot-green {
  color: var(--green);
}

.dot-blue {
  color: var(--blue);
}

.dot-purple {
  color: var(--purple);
}

.dot-neutral {
  color: var(--gray);
}

.schedule-empty-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-day-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.schedule-day-post,
.schedule-more {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  min-height: 30px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfaf8;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.schedule-day-post span,
.schedule-day-post strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-day-post .status-badge {
  padding: 2px 5px;
  font-size: 10px;
}

.schedule-more {
  grid-template-columns: minmax(0, 1fr);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.schedule-insights {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.schedule-insights section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.schedule-insights h2,
.schedule-group-head h2,
.schedule-drawer-section h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.schedule-insight-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.schedule-insight-item {
  display: grid;
  gap: 3px;
  min-height: 0;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.schedule-insight-item strong,
.schedule-insight-item span,
.schedule-insight-item em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-insight-item strong {
  font-size: 13px;
}

.schedule-insight-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.schedule-insight-item em {
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.schedule-group,
.schedule-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.schedule-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.schedule-group-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.schedule-list-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(190px, 0.42fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 14px;
  background: var(--surface-strong);
}

.schedule-list-card.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.schedule-thumb {
  display: block;
  width: 82px;
  min-height: 82px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--neutral-bg);
  cursor: pointer;
}

.schedule-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.schedule-card-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.schedule-card-main h3 {
  margin-bottom: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-card-main p {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-card-side {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.schedule-card-side div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.schedule-card-side span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.schedule-card-side strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-drawer-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.schedule-brand-distribution,
.schedule-post-row-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.schedule-brand-distribution div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}

.schedule-brand-distribution span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.schedule-post-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.schedule-post-row span,
.schedule-post-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.schedule-post-row strong,
.schedule-post-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-post-row p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.schedule-post-row .ghost-button {
  grid-column: 1 / -1;
}

.schedule-post-preview {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.schedule-post-preview img {
  width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--neutral-bg);
}

.schedule-post-preview div {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.schedule-next-actions .owner-action-primary,
.schedule-next-actions .review-action-primary {
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  background: var(--green-bg);
  color: var(--green);
}

.schedule-next-actions .owner-action-warning {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--line));
  background: var(--orange-bg);
  color: var(--orange);
}

.rescue-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rescue-filter-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.rescue-tabs {
  max-width: 100%;
}

.rescue-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 10px;
  min-width: 0;
}

.rescue-console,
.rescue-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rescue-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(190px, 0.38fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 14px;
  background: var(--surface-strong);
}

.rescue-row.rescue-partial {
  border-left-color: var(--orange);
}

.rescue-row.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.rescue-thumb {
  display: block;
  width: 92px;
  min-height: 92px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--neutral-bg);
  cursor: pointer;
}

.rescue-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rescue-main,
.rescue-side,
.rescue-actions {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.rescue-title-row,
.rescue-platform-row,
.rescue-platform-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.rescue-title-row h3 {
  min-width: 0;
  margin-bottom: 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rescue-error {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rescue-platform-mini {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf8;
}

.rescue-platform-mini strong {
  font-size: 11px;
}

.rescue-platform-mini .status-badge {
  padding: 2px 5px;
  font-size: 10px;
}

.rescue-side div:not(.rescue-actions) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.rescue-side span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.rescue-side strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rescue-actions {
  grid-template-columns: minmax(0, 1fr);
}

.rescue-drawer-section {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.rescue-drawer-section h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.rescue-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.rescue-platform-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 13px;
  background: #fbfaf8;
}

.rescue-platform-failed {
  border-left-color: var(--red);
}

.rescue-platform-published {
  border-left-color: var(--green);
}

.rescue-platform-skipped,
.rescue-platform-pending {
  border-left-color: var(--gray);
}

.rescue-platform-fields {
  grid-template-columns: minmax(0, 1fr);
}

.rescue-platform-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rescue-step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rescue-step-list li + li {
  margin-top: 5px;
}

.rescue-next-actions .rescue-action-primary {
  border-color: color-mix(in srgb, var(--orange) 44%, var(--line));
  background: var(--orange-bg);
  color: var(--orange);
}

.rescue-next-actions .rescue-action-auth {
  border-color: color-mix(in srgb, var(--red) 44%, var(--line));
  background: var(--red-bg);
  color: var(--red);
}

.brand-settings-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.brand-settings-filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
}

.brand-settings-tabs {
  max-width: 100%;
}

.brand-settings-console,
.brand-settings-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.brand-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-settings-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface-strong);
}

.brand-settings-card.has-risk {
  border-left-color: var(--yellow);
}

.brand-settings-card.is-selected {
  border-color: #b7a58e;
  border-left-color: #2e2a25;
  box-shadow: 0 10px 26px rgb(69 55 39 / 0.08);
}

.brand-settings-hit {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

.brand-settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.brand-settings-card h3 {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.25;
}

.brand-settings-card .icon-button,
.brand-setting-link,
.inline-link-button {
  z-index: 2;
}

.brand-settings-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.brand-settings-card-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
}

.brand-settings-card-grid span,
.brand-settings-foot,
.brand-risk-tip {
  color: var(--muted);
  font-size: 12px;
}

.brand-settings-card-grid span {
  display: block;
  margin-bottom: 3px;
  font-weight: 900;
}

.brand-settings-card-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.brand-platform-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.brand-platform-compact > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf8;
  font-size: 12px;
  font-weight: 900;
}

.brand-risk-tip {
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.brand-settings-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.brand-settings-drawer-section,
.brand-ai-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.brand-settings-drawer-section h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.brand-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.brand-account-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 13px;
  background: #fbfaf8;
}

.brand-account-red {
  border-left-color: var(--red);
}

.brand-account-orange {
  border-left-color: var(--orange);
}

.brand-account-green {
  border-left-color: var(--green);
}

.brand-account-gray,
.brand-account-neutral {
  border-left-color: var(--gray);
}

.brand-account-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.field-wide {
  grid-column: 1 / -1;
}

.banned-word-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.banned-word-card {
  display: grid;
  grid-template-columns: minmax(80px, 0.7fr) minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfaf8;
}

.banned-red {
  border-left-color: var(--red);
}

.banned-yellow {
  border-left-color: var(--yellow);
}

.banned-gray {
  border-left-color: var(--gray);
}

.banned-word-card strong,
.banned-word-card span,
.banned-word-card p,
.banned-word-card em {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.35;
}

.banned-word-card strong {
  font-size: 13px;
}

.banned-word-card span,
.banned-word-card p {
  color: var(--muted);
}

.banned-word-card em {
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.brand-settings-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-link-button {
  appearance: none;
  width: fit-content;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf8;
  color: var(--neutral-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.brand-card-actions,
.workbench-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  min-width: 0;
}

.brand-setting-link {
  min-height: 40px;
  padding-inline: 10px;
}

.detail-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 20;
  display: grid;
  align-content: start;
  gap: 14px;
  width: min(420px, calc(100vw - 24px));
  max-width: 100%;
  overflow-y: auto;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.drawer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-heading-accent {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-heading h2 {
  margin-bottom: 5px;
  font-size: 19px;
  line-height: 1.25;
}

.drawer-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.drawer-alert {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
  line-height: 1.45;
}

.drawer-alert span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.drawer-alert strong {
  font-size: 15px;
}

.action-list,
.related-posts {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.action-list h3,
.related-posts h3 {
  margin-bottom: 0;
  font-size: 14px;
}

.action-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfaf8;
}

.action-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.action-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.action-red {
  border-left-color: var(--red);
}

.action-orange {
  border-left-color: var(--orange);
}

.action-yellow {
  border-left-color: var(--yellow);
}

.action-purple {
  border-left-color: var(--purple);
}

.action-gray {
  border-left-color: var(--gray);
}

.drawer-progress {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.drawer-metrics,
.detail-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.drawer-metrics div,
.field,
.copy-box,
.feedback-box,
.history-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.drawer-metrics span,
.field span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.drawer-metrics strong,
.field strong {
  font-size: 13px;
  line-height: 1.4;
}

.status-counts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.related-post {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.related-post span:first-child {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-mock-button {
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #2e2a25;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.low-priority-metric {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.detail-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--neutral-bg);
}

.detail-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-status-line {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
}

.media-gallery {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.gallery-toolbar strong {
  min-width: 54px;
  text-align: center;
}

.gallery-preview {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--neutral-bg);
  cursor: zoom-in;
}

.gallery-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-preview span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgb(31 41 51 / 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.media-thumb-row {
  display: flex;
  max-width: 100%;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

.media-thumb {
  appearance: none;
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  min-height: 58px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  background: var(--neutral-bg);
  cursor: pointer;
}

.media-thumb.is-active {
  border-color: #2e2a25;
}

.media-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.media-thumb span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: rgb(31 41 51 / 0.76);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.media-review-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
}

.media-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.media-review-card p,
.lightbox-review p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.55;
}

.field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.ocr-text {
  padding: 9px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #fffdfa;
  color: var(--text);
}

.copy-box h3,
.feedback-box h3,
.history h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.copy-box p,
.feedback-box p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}

.history-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ghost-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfaf8;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.ghost-button.owner-action-warning {
  border-color: color-mix(in srgb, var(--orange) 40%, var(--line));
  background: var(--orange-bg);
  color: var(--orange);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(31 41 51 / 0.62);
}

.lightbox-panel {
  display: grid;
  gap: 14px;
  width: min(1040px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.lightbox-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.lightbox-topbar h2 {
  margin-bottom: 0;
  font-size: 19px;
  line-height: 1.25;
}

.lightbox-body {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
  min-height: 0;
}

.lightbox-image-wrap {
  display: grid;
  min-width: 0;
  max-height: min(62vh, 650px);
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--neutral-bg);
}

.lightbox-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: contain;
}

.lightbox-review {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfaf8;
}

.lightbox-nav {
  width: 100%;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 13px;
  color: var(--muted);
  background: #fbfaf8;
  text-align: center;
}

@media (min-width: 1261px) {
  .app-shell.has-drawer .dashboard {
    padding-right: calc(24px + min(420px, calc(100vw - 24px)));
  }

  .app-shell.has-drawer .scale-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.has-drawer .brand-list-row {
    grid-template-columns:
      minmax(125px, 1fr)
      minmax(56px, 0.34fr)
      minmax(120px, 0.78fr)
      minmax(90px, 0.7fr)
      minmax(46px, 0.2fr)
      34px;
    gap: 6px;
    padding-right: 6px;
  }

  .app-shell.has-drawer .health-dots {
    gap: 3px;
  }

  .app-shell.has-drawer .mini-signal {
    min-height: 19px;
    padding-inline: 5px;
    font-size: 10px;
  }

  .app-shell.has-drawer .row-summary {
    font-size: 11px;
    -webkit-line-clamp: 1;
  }

  .app-shell.has-drawer .last-activity {
    max-width: 58px;
    font-size: 11px;
  }

  .app-shell.has-drawer .icon-button {
    width: 34px;
    height: 34px;
  }

  .app-shell.is-schedule.has-drawer {
    height: 100vh;
    overflow: hidden;
  }

  .app-shell.is-schedule.has-drawer::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 18;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(31 41 51 / 0) 58%, rgb(31 41 51 / 0.08) 100%);
  }

  .app-shell.is-schedule.has-drawer .dashboard {
    max-height: 100vh;
    overflow: hidden;
    padding-right: 24px;
  }

  .app-shell.is-schedule.has-drawer .scale-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.is-schedule.has-drawer .schedule-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  }

  .app-shell.is-schedule.has-drawer .schedule-calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .app-shell.is-schedule.has-drawer .schedule-day-card {
    min-width: 0;
  }

  .app-shell.is-schedule.has-drawer .detail-drawer {
    z-index: 20;
    height: 100vh;
    overscroll-behavior: contain;
  }
}

@media (max-width: 1260px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .dashboard {
    padding: 18px;
  }

  .scale-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .posts-panel {
    position: static;
  }

  .post-list {
    max-height: none;
  }

  .material-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cc-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .review-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .owner-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rescue-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brand-settings-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-insights {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .batch-row-body {
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
  }

  .batch-metrics {
    grid-column: 1 / -1;
  }

  .workbench-hero,
  .workbench-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .workbench-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .topbar {
    display: grid;
    align-items: start;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rescue-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-settings-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-filter-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-settings-filter-panel,
  .schedule-toolbar,
  .schedule-filter-row,
  .schedule-list-card,
  .rescue-search-row,
  .rescue-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rescue-thumb {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .schedule-month-controls,
  .schedule-view-toggle {
    justify-content: flex-start;
  }

  .schedule-current-month {
    width: fit-content;
    max-width: 100%;
  }

  .schedule-calendar-grid,
  .schedule-weekdays {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .schedule-weekdays {
    display: none;
  }

  .schedule-insights {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-thumb {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .material-search-row,
  .cc-search-row,
  .review-search-row,
  .owner-search-row,
  .batch-row-main,
  .batch-row-body,
  .cc-task-main,
  .cc-task-body,
  .review-row-main,
  .review-row-body,
  .owner-row-main,
  .owner-row-body,
  .claude-task-grid,
  .batch-related-post {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-status-stack,
  .batch-actions,
  .cc-status-stack,
  .cc-task-actions,
  .review-status-stack,
  .review-actions,
  .owner-status-stack,
  .owner-actions {
    justify-content: flex-start;
  }

  .review-thumb,
  .owner-thumb {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .brand-list-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    min-height: 0;
  }

  .brand-main-cell,
  .capacity-cell,
  .health-dots,
  .row-summary,
  .last-activity {
    grid-column: 1 / 2;
  }

  .brand-list-row .icon-button {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .row-summary {
    -webkit-line-clamp: 3;
  }

  .brand-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-workbench .post-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .brand-workbench .thumb {
    width: 96px;
  }

  .lightbox-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .lightbox-body .lightbox-nav {
    width: auto;
  }
}

@media (max-width: 560px) {
  .dashboard {
    padding: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .today-chip {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }

  .summary-grid {
    gap: 8px;
  }

  .summary-card {
    padding: 11px;
  }

  .problem-filter-panel,
  .posts-panel,
  .material-filter-panel,
  .cc-filter-panel,
  .review-filter-panel,
  .owner-filter-panel,
  .brand-settings-filter-panel,
  .rescue-filter-panel,
  .schedule-filter-panel,
  .schedule-toolbar {
    padding: 10px;
  }

  .result-toolbar,
  .panel-head {
    display: grid;
  }

  .mode-toggle {
    width: 100%;
  }

  .mode-toggle button {
    flex: 1;
  }

  .post-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .thumb {
    width: 62px;
  }

  .post-title-row {
    display: grid;
    gap: 5px;
  }

  .brand-workbench {
    gap: 10px;
  }

  .workbench-hero,
  .workbench-toolbar {
    gap: 10px;
    padding: 10px;
  }

  .workbench-title h2,
  .workbench-toolbar h2 {
    font-size: 18px;
  }

  .brand-workbench .post-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 0;
  }

  .brand-workbench .thumb {
    width: 86px;
  }

  .brand-workbench .post-meta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-settings-card {
    gap: 10px;
    padding: 10px;
  }

  .brand-settings-card-head,
  .brand-settings-foot,
  .brand-card-top {
    display: grid;
    justify-content: stretch;
  }

  .brand-card-actions,
  .workbench-action-row {
    justify-content: stretch;
  }

  .brand-card-actions .ghost-button,
  .workbench-action-row .ghost-button {
    width: 100%;
  }

  .brand-settings-card-grid,
  .brand-account-grid,
  .brand-settings-actions,
  .banned-word-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .banned-word-card em {
    width: fit-content;
  }

  .module-switch {
    width: 100%;
  }

  .module-switch button {
    flex: 0 0 auto;
  }

  .schedule-month-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .schedule-month-controls .ghost-button,
  .schedule-view-toggle button {
    width: 100%;
  }

  .schedule-view-toggle {
    width: 100%;
  }

  .schedule-calendar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-weekdays {
    display: none;
  }

  .schedule-day-card {
    min-height: 0;
    padding: 10px;
  }

  .schedule-day-card.is-blank {
    display: none;
  }

  .schedule-day-post {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .schedule-card-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-card-side .ghost-button {
    grid-column: 1 / -1;
  }

  .schedule-post-preview,
  .schedule-post-row,
  .rescue-platform-grid,
  .rescue-platform-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .schedule-post-preview img {
    width: 100%;
    max-height: 260px;
  }

  .material-search-row,
  .cc-search-row,
  .review-search-row,
  .owner-search-row,
  .rescue-search-row,
  .batch-metrics,
  .cc-task-metrics,
  .cc-task-meta,
  .review-card-meta,
  .owner-time-grid,
  .detail-fields,
  .detail-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-row {
    padding: 10px;
  }

  .batch-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .batch-image-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 8px;
  }

  .batch-image-preview {
    width: 72px;
  }

  .prompt-preview pre {
    max-height: 220px;
    font-size: 11px;
  }

  .cc-task-row {
    padding: 10px;
  }

  .cc-task-main h3 {
    font-size: 16px;
  }

  .cc-related-images,
  .cc-related-image {
    grid-template-columns: minmax(0, 1fr);
  }

  .cc-related-image img {
    width: 100%;
  }

  .review-row {
    padding: 10px;
  }

  .owner-row {
    padding: 10px;
  }

  .rescue-row {
    padding: 10px;
  }

  .rescue-title-row h3 {
    white-space: normal;
  }

  .rescue-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rescue-actions {
    grid-column: 1 / -1;
  }

  .review-main-copy h3 {
    font-size: 16px;
  }

  .owner-main-copy h3 {
    font-size: 16px;
  }

  .media-badge {
    font-size: 10px;
  }

  .post-meta-grid,
  .drawer-metrics,
  .detail-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-drawer {
    inset: auto 0 0 0;
    width: 100%;
    max-height: 88vh;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 18px 18px 0 0;
    padding: 14px;
  }

  .gallery-toolbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .gallery-preview img {
    max-height: 56vh;
  }

  .media-thumb {
    flex-basis: 52px;
    width: 52px;
    min-height: 52px;
  }

  .lightbox {
    padding: 0;
  }

  .lightbox-panel {
    width: 100%;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    border-radius: 0;
    padding: 14px;
  }

  .lightbox-topbar {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 8px;
    background: var(--surface-strong);
  }

  .lightbox-image-wrap {
    max-height: none;
  }

  .lightbox-image-wrap img {
    max-height: 64vh;
  }
}

@media (max-width: 400px) {
  .dashboard {
    padding: 10px;
  }

  .summary-card p {
    font-size: 11px;
  }

  .problem-chip,
  .filter-pill {
    font-size: 12px;
  }

  .pill,
  .status-badge,
  .platform-pill {
    font-size: 11px;
  }

  .schedule-card-main h3 {
    font-size: 15px;
  }

  .schedule-day-head span:first-child {
    font-size: 17px;
  }

  .schedule-month-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
