:root {
  --ink: #17231f;
  --ink-soft: #5d6b66;
  --ink-faint: #89938f;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #edf1ed;
  --line: #dce3de;
  --forest: #11231d;
  --forest-2: #1b352b;
  --green: #2d8b5b;
  --green-soft: #dff3e8;
  --blue: #2d64d8;
  --blue-soft: #e6edff;
  --amber: #d78418;
  --amber-soft: #fff0d5;
  --red: #bd4542;
  --red-soft: #fde8e7;
  --shadow: 0 18px 50px rgba(24, 45, 36, 0.08);
  --radius: 18px;
  --sidebar-width: 264px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% -20%, rgba(45, 139, 91, 0.09), transparent 38%),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.mobile-nav { display: none; }
.mobile-nav-item {
  min-height: 44px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
}
.mobile-nav-item span { font-size: 18px; line-height: 1; }
.mobile-nav-item b { font-size: 12px; }
.mobile-nav-item.is-active { color: var(--green); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 22px;
  color: #f4f8f5;
  background:
    linear-gradient(160deg, rgba(70, 152, 105, 0.16), transparent 42%),
    var(--forest);
  box-shadow: 10px 0 40px rgba(12, 25, 20, 0.1);
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--green), transparent 72%);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 8px 26px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  color: #d9ffe9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  font-weight: 800;
}

.brand-block strong,
.brand-block span {
  display: block;
}

.brand-block strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-block span {
  margin-top: 4px;
  color: rgba(244, 248, 245, 0.56);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  color: rgba(244, 248, 245, 0.68);
  background: transparent;
  text-align: left;
  font-size: 15px;
  transition: 160ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.is-active {
  color: #fff;
  background: rgba(76, 189, 124, 0.17);
  box-shadow: inset 3px 0 0 #63d894;
}

.nav-index {
  width: 24px;
  color: rgba(162, 228, 188, 0.62);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px 10px 0;
}

.sidebar-rule {
  height: 1px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-foot p,
.sidebar-foot strong,
.sidebar-foot span {
  display: block;
}

.sidebar-foot p {
  margin: 0 0 6px;
  color: #70d79c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.sidebar-foot strong {
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-foot span {
  margin-top: 7px;
  color: rgba(244, 248, 245, 0.42);
  font-size: 12px;
}

.workspace {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  padding: 0 34px 50px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 20px 0 17px;
  background: rgba(244, 246, 243, 0.91);
  border-bottom: 1px solid rgba(220, 227, 222, 0.82);
  backdrop-filter: blur(16px);
}

.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(45, 139, 91, 0.24);
  border-radius: 999px;
  color: #226f49;
  background: #e2f5ea;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-chip {
  max-width: 230px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.sync-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--ink-faint); }
.sync-chip[data-state="connected"] .sync-dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.sync-chip[data-state="error"] .sync-dot { background: var(--red); }
.sync-chip[data-state="working"] .sync-dot { background: #2d64d8; box-shadow: 0 0 0 4px #e6edff; animation: sync-pulse 1s ease-in-out infinite; }

#sync-douyin[data-sync-phase="checking"],
#sync-douyin[data-sync-phase="syncing"] { cursor: progress; opacity: 0.82; }

@keyframes sync-pulse {
  50% { opacity: 0.35; transform: scale(0.82); }
}

.sync-problem { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start; }
.sync-problem-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #8f312f; background: #fff0ef; font-size: 24px; font-weight: 800; }
.sync-problem h3 { margin: 1px 0 7px; }
.sync-problem p { margin: 0; color: var(--ink-soft); line-height: 1.65; }
.sync-steps { margin: 20px 0 0; padding: 16px 18px 16px 38px; border-radius: 14px; background: var(--paper-soft); color: var(--ink-soft); line-height: 1.9; }
.sync-steps code { padding: 2px 6px; border-radius: 5px; background: #e8eee9; color: var(--ink); }

.date-chip {
  margin-right: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  white-space: nowrap;
}

.button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--forest-2);
  box-shadow: 0 8px 24px rgba(17, 35, 29, 0.18);
}

.button-primary:hover {
  background: #244638;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.button-ghost {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.button-danger {
  color: var(--red);
  background: var(--red-soft);
}

.button-small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 13px;
}

#main-content {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 26px;
  outline: none;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.section-gap {
  margin-top: 20px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 22px;
}

.card-head,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-head {
  margin-bottom: 18px;
}

.section-head {
  align-items: center;
  margin-bottom: 16px;
}

.section-head p,
.card-head p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.daily-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 164px;
  color: #f7fbf8;
  border: 0;
  background:
    linear-gradient(110deg, rgba(76, 189, 124, 0.17), transparent 48%),
    var(--forest);
}

.daily-card::after {
  content: "08";
  position: absolute;
  right: 24px;
  bottom: -45px;
  color: rgba(255, 255, 255, 0.04);
  font-family: Georgia, serif;
  font-size: 170px;
  font-weight: 700;
  line-height: 1;
}

.daily-time {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-time span {
  color: #74d99a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.daily-time strong {
  margin-top: 4px;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.daily-body {
  position: relative;
  z-index: 1;
  padding: 27px 28px;
}

.daily-body h2 {
  font-size: 21px;
}

.daily-body p {
  max-width: 650px;
  margin: 8px 0 18px;
  color: rgba(247, 251, 248, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.task-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-pill {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(247, 251, 248, 0.8);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.auto-sync-note {
  position: relative;
  z-index: 2;
  align-self: stretch;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  margin-right: 28px;
  text-align: right;
}

.auto-sync-note strong {
  color: #99ebb9;
  font-size: 20px;
}

.auto-sync-note span {
  color: rgba(247, 251, 248, .62);
  font-size: 12px;
}

.daily-card[data-sync-state="error"] {
  background: linear-gradient(110deg, rgba(189, 69, 66, .25), transparent 52%), var(--forest);
}

.daily-key-action {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  border: 2px solid rgba(45, 139, 91, .22);
  background: linear-gradient(135deg, #fff 0, #fff 64%, #edf8f1 100%);
  box-shadow: 0 22px 50px rgba(31, 81, 57, .1);
}

.daily-key-action::after {
  content: "01";
  position: absolute;
  right: 22px;
  bottom: -34px;
  color: rgba(45, 139, 91, .06);
  font-family: Georgia, serif;
  font-size: 128px;
  font-weight: 800;
  pointer-events: none;
}

.key-action-head,
.growth-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.daily-key-action > h3 {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 16px 0 9px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.3;
}

.action-state {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
}

.action-state-in_progress { color: #205aa8; background: var(--blue-soft); }
.action-state-done { color: #1f7047; background: var(--green-soft); }

.action-evidence {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.action-evidence strong { color: var(--ink); }

.action-steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
  counter-reset: action-step;
}

.action-steps li {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  counter-increment: action-step;
}

.action-steps li::before {
  content: counter(action-step);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--forest-2);
  font-weight: 800;
}

.action-target {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 13px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f0f5f1;
}

.action-target span,
.action-target small,
.action-link span,
.action-footer span { color: var(--ink-soft); font-size: 12px; }
.action-target strong { font-size: 15px; }

.action-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.action-outcome {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 13px;
  border-radius: 10px;
  color: #754f12;
  background: var(--amber-soft);
  font-size: 13px;
}

.action-outcome.is-good { color: #1f7047; background: var(--green-soft); }
.action-outcome.is-flat { color: #7a4140; background: var(--red-soft); }

.action-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
}

.action-complete {
  color: #1f7047;
  background: var(--green-soft);
  border-color: rgba(45, 139, 91, .18);
  cursor: default;
}

.growth-chart-card { overflow: hidden; }
.growth-card-head p:last-child { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }

.range-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.range-switch button {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.range-switch button.is-active {
  color: #fff;
  background: var(--forest-2);
  box-shadow: 0 4px 12px rgba(17, 35, 29, .16);
}

.growth-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 14px;
}

.growth-summary > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
}

.growth-summary span,
.growth-summary small { color: var(--ink-soft); font-size: 12px; }
.growth-summary strong { margin: 6px 0 4px; font-size: 24px; }

.growth-source-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
}

.growth-chart-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfb, #f6f8f6);
}

.growth-svg { width: 100%; min-width: 680px; height: auto; display: block; }
.growth-svg [data-tooltip] { cursor: help; }

.growth-conclusion {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  color: var(--ink-soft);
  background: #f3f8f5;
  font-size: 13px;
  line-height: 1.65;
}

.metric-card {
  position: relative;
  min-height: 132px;
  padding: 19px 20px;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent, var(--green));
}

.metric-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.metric-label span:last-child {
  color: var(--ink-faint);
  font-size: 12px;
}

.metric-value {
  display: block;
  margin: 15px 0 7px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-note {
  color: var(--ink-faint);
  font-size: 13px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 30px;
  text-align: center;
}

.empty-state.compact {
  min-height: 150px;
}

.empty-number {
  margin-bottom: 14px;
  color: var(--line);
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 420px;
  margin-bottom: 17px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--ink-soft);
  background: #f8faf8;
  font-size: 13px;
  font-weight: 700;
}

td {
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fbfcfb;
}

.title-cell {
  max-width: 340px;
}

.title-cell strong,
.title-cell span {
  display: block;
}

.title-cell span {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 12px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.text-button {
  padding: 4px 3px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.text-button.danger {
  color: var(--red);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-green {
  color: #1e7047;
  background: var(--green-soft);
}

.badge-blue {
  color: #2557b9;
  background: var(--blue-soft);
}

.badge-amber {
  color: #9d6013;
  background: var(--amber-soft);
}

.badge-red {
  color: #9f3735;
  background: var(--red-soft);
}

.score {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f7f9f7;
  font-weight: 800;
}

.score.good {
  color: #1f7349;
  border-color: #bfe7d0;
  background: var(--green-soft);
}

.score.mid {
  color: #a0600e;
  border-color: #f0d4a6;
  background: var(--amber-soft);
}

.score.low {
  color: #a23b39;
  border-color: #f2c2c0;
  background: var(--red-soft);
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.control,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border 130ms ease, box-shadow 130ms ease;
}

.control {
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

.search-control {
  min-width: 260px;
}

.control:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #63a985;
  box-shadow: 0 0 0 3px rgba(45, 139, 91, 0.12);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.region-source {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}

.region-source span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-2);
  font-size: 11px;
}

.region-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  font-size: 14px;
}

.region-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.region-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #78a1f7);
}

.region-row.is-local .region-fill {
  background: linear-gradient(90deg, var(--amber), #ebb761);
}

.region-row strong {
  text-align: right;
  font-size: 13px;
}

.issue-list {
  display: grid;
  gap: 10px;
}

.issue-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfb;
}

.issue-rank {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.issue-item p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.production-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(238px, 1fr));
  gap: 13px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pending-pool {
  overflow: hidden;
  border: 2px solid rgba(45, 139, 91, .22);
  background: linear-gradient(180deg, #e7f5ed 0, #f5fbf7 180px, #fff 180px);
  box-shadow: 0 22px 55px rgba(28, 86, 58, .1);
}
.pending-pool-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; min-height: 92px; }
.pending-pool-head h2 strong { color: var(--green); }
.pending-pool-head p:last-child { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; }
.pending-total { min-width: 122px; display: grid; justify-items: end; color: var(--green); line-height: 1; }
.pending-total strong { font-family: Georgia, serif; font-size: 72px; }
.pending-total span { margin-top: -2px; color: var(--ink-soft); font-size: 13px; font-weight: 800; }
.pending-category-strip { display: flex; gap: 9px; overflow-x: auto; margin: 0 0 18px; padding-bottom: 3px; }
.pending-category-strip span { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(45, 139, 91, .18); border-radius: 999px; color: #3f5d50; background: rgba(255, 255, 255, .78); font-size: 12px; }
.pending-category-strip strong { color: var(--green); font-size: 15px; }
.pending-topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.pending-topic-scroll { scrollbar-gutter: stable; }
.pending-topic-grid .topic-card { margin-bottom: 0; min-height: 188px; display: flex; flex-direction: column; }
.pending-topic-grid .topic-actions { margin-top: auto; }
.account-snapshot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.account-snapshot-grid > div { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.account-snapshot-grid span { display: block; color: var(--ink-soft); font-size: 12px; }
.account-snapshot-grid strong { display: block; margin-top: 7px; font-size: 20px; }
.review-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.compact-head { margin-bottom: 12px; }

.kanban-column {
  min-height: 520px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(237, 241, 237, 0.68);
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 12px;
  font-size: 14px;
  font-weight: 800;
}

.kanban-count {
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  text-align: center;
  font-size: 12px;
}

.topic-card {
  position: relative;
  margin-bottom: 10px;
  padding: 14px 42px 14px 14px;
  border: 1px solid #d8e0da;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(24, 45, 36, 0.05);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.topic-card:hover,
.topic-card:focus-visible {
  border-color: rgba(45, 139, 91, .55);
  box-shadow: 0 12px 28px rgba(24, 86, 58, .12);
  outline: none;
  transform: translateY(-1px);
}

.topic-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-faint);
  background: #f1f4f1;
  font: 700 18px/1 system-ui, sans-serif;
  cursor: pointer;
}

.topic-delete:hover,
.topic-delete:focus-visible {
  color: var(--red);
  border-color: #f1b8b5;
  background: var(--red-soft);
  outline: none;
}

.topic-card h3 {
  margin: 9px 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.topic-meta {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}

.topic-actions {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.topic-detail { display: grid; gap: 18px; }
.topic-detail-summary { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #f6f9f7; }
.topic-detail-summary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 16px 0 0; }
.topic-detail-summary dl div { min-width: 0; }
.topic-detail-summary dt { color: var(--ink-faint); font-size: 12px; font-weight: 800; }
.topic-detail-summary dd { margin: 5px 0 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
.topic-detail-section { padding-top: 2px; }
.topic-detail-section h3 { margin: 0 0 9px; font-size: 17px; }
.topic-detail-section > p { margin: 0; color: var(--ink-soft); line-height: 1.75; white-space: pre-wrap; }
.shot-list { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: var(--ink-soft); line-height: 1.6; }
.script-timeline { display: grid; gap: 9px; }
.script-row { display: grid; grid-template-columns: 82px minmax(0, .85fr) minmax(0, 1.15fr); gap: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.script-row > strong { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.script-row span { display: block; margin-bottom: 4px; color: var(--ink-faint); font-size: 11px; font-weight: 800; }
.script-row p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.topic-detail-actions { margin-top: 0; }
.field-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.script-editor { display: grid; gap: 12px; }
.script-editor fieldset { display: grid; grid-template-columns: 1fr 180px; gap: 10px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.script-editor legend { padding: 0 7px; color: var(--green); font-size: 13px; font-weight: 800; }
.script-editor label { color: var(--ink-faint); font-size: 12px; font-weight: 700; }
.script-editor label:last-child { grid-column: 1 / -1; }
.script-editor input,
.script-editor textarea { width: 100%; margin-top: 5px; }

.video-analysis { display: grid; gap: 22px; }

.analysis-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.analysis-overview > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f9f7;
}

.analysis-overview span,
.analysis-overview small { color: var(--ink-soft); font-size: 12px; }
.analysis-overview strong { margin: 7px 0 5px; font-size: 19px; overflow-wrap: anywhere; }

.analysis-section { display: grid; gap: 11px; }
.analysis-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.analysis-section-head span { color: var(--ink-faint); font-size: 12px; }

.analysis-comparisons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.comparison-tile {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.comparison-tile > span,
.comparison-tile > strong,
.comparison-tile > small { display: block; }
.comparison-tile > span { color: var(--ink-soft); font-size: 12px; }
.comparison-tile > strong { margin: 7px 0 4px; font-size: 18px; }
.comparison-tile > small { color: var(--ink-faint); line-height: 1.45; }
.comparison-tile.is-missing { opacity: .65; background: var(--surface-2); }

.analysis-actions { display: grid; gap: 9px; }
.analysis-actions article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb; }
.analysis-actions article > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--forest-2); font-weight: 800; }
.analysis-actions p { margin: 4px 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.analysis-actions b { color: #1e7047; font-size: 13px; line-height: 1.55; }

.form-intro { margin: 0; padding: 12px 14px; border-radius: 10px; color: var(--ink-soft); background: #f3f8f5; font-size: 13px; line-height: 1.6; }
.form-error { min-height: 20px; margin: 0; color: var(--red); font-size: 13px; font-weight: 700; }

.publishing-time-panel { overflow: hidden; }
.publishing-verdict { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border-radius: 11px; color: #765014; background: var(--amber-soft); }
.publishing-verdict.is-ready { color: #1f7047; background: var(--green-soft); }
.publishing-verdict span { font-size: 13px; }

.publishing-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.publishing-time-grid h3 { margin-bottom: 10px; }
.publishing-buckets { display: grid; gap: 8px; }
.publishing-bucket { display: grid; grid-template-columns: minmax(110px, .75fr) minmax(0, 1.6fr); align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }
.publishing-bucket > div strong,
.publishing-bucket > div span { display: block; }
.publishing-bucket > div span { margin-top: 4px; color: var(--ink-faint); font-size: 11px; }
.publishing-bucket dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.publishing-bucket dl div { min-width: 0; }
.publishing-bucket dt { color: var(--ink-faint); font-size: 10px; }
.publishing-bucket dd { margin: 3px 0 0; font-size: 12px; font-weight: 800; }
.muted-copy { margin: 0; color: var(--ink-faint); font-size: 13px; }

.review-list {
  display: grid;
  gap: 13px;
}

.review-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(230px, 0.7fr) auto;
  align-items: center;
  gap: 19px;
  padding: 19px;
}

.review-title p {
  margin: 6px 0 0;
  color: var(--ink-faint);
  font-size: 13px;
}

.diagnosis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.next-action {
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.backup-panel {
  padding: 25px;
}

.backup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.action-tile {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.action-tile p {
  margin: 7px 0 14px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.score-guide {
  display: grid;
  gap: 13px;
}

.score-line {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.score-track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
}

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

.modal {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(8, 20, 15, 0.28);
}

.modal::backdrop {
  background: rgba(11, 23, 18, 0.62);
  backdrop-filter: blur(4px);
}

.modal-frame {
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  background: var(--surface);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 25px;
  line-height: 1;
}

.form {
  padding: 23px 24px 26px;
}

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

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

.field {
  display: grid;
  gap: 7px;
}

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

.field label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select {
  min-height: 43px;
  padding: 0 11px;
}

.field textarea {
  min-height: 92px;
  padding: 11px;
  resize: vertical;
}

.field small {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.4;
}

.form-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-section h3 {
  margin-bottom: 5px;
}

.form-section > p {
  margin-bottom: 15px;
  color: var(--ink-soft);
  font-size: 13px;
}

.form-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 24px -24px -26px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: grid;
  gap: 10px;
}

.sync-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sync-source-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.sync-source-item > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sync-source-item span,
.sync-source-item p {
  color: var(--ink-soft);
  font-size: 13px;
}

.sync-source-item p { margin-top: 8px; line-height: 1.5; }
.sync-source-item[data-state="failed"],
.sync-source-item[data-state="login_required"] { border-color: #efc7c5; background: #fff8f7; }

.real-topic-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.real-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.real-topic-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.real-topic-source,
.real-topic-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.real-topic-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

.copy-draft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.copy-draft-card { display: grid; gap: 12px; padding: 20px; }
.copy-draft-card p { color: var(--ink-soft); font-size: 14px; }
.copy-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #e8eeeb; }
.copy-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.copy-editor-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.copy-six-grid { display: grid; gap: 14px; margin-top: 18px; }
.copy-section-field { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; align-items: start; }
.copy-section-field > span { display: flex; align-items: center; gap: 10px; font-weight: 750; }
.copy-section-field b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--green); }
.copy-section-field textarea { min-height: 108px; padding: 12px; }
.copy-preview { margin-top: 18px; padding: 18px; border-radius: 14px; background: #f2f7f4; }
.copy-preview p { margin-top: 10px; white-space: pre-wrap; line-height: 1.8; }

.review-three-answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-answer { display: grid; gap: 10px; padding: 22px; }
.review-answer > span { color: var(--green); font-weight: 800; letter-spacing: .08em; }
.review-answer h2 { font-size: 15px; color: var(--ink-soft); }
.review-answer strong { font-size: 21px; }
.review-answer p { color: var(--ink-soft); line-height: 1.6; }

.growth-battle-card { padding: 26px; border-color: #b8d7c5; background: linear-gradient(135deg, #f1faf5, #fff 58%); }
.battle-card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.battle-topic { margin-top: 22px; padding: 18px; border-left: 4px solid var(--green); background: #fff; }
.battle-topic span,
.battle-action > span,
.battle-details span,
.battle-target span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.battle-topic h3 { font-size: 23px; }
.battle-topic a { display: inline-block; margin-top: 8px; color: var(--green); }
.battle-action { margin-top: 18px; }
.battle-action strong { font-size: 19px; }
.battle-action ol { margin: 12px 0 0 20px; line-height: 1.8; }
.battle-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.battle-details > div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.8); }
.battle-details p { line-height: 1.6; }
.battle-target { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #cfe2d6; }

.toast {
  min-width: 260px;
  max-width: 380px;
  padding: 13px 15px;
  border: 1px solid #cde0d4;
  border-radius: 12px;
  color: #16462f;
  background: #effaf3;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  color: #8f312f;
  border-color: #efc7c5;
  background: #fff0ef;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .pending-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .auto-sync-note {
    grid-column: 1 / -1;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    padding: 0 22px 20px;
    margin: 0;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .review-card {
    grid-template-columns: 60px minmax(0, 1fr) auto;
  }

  .next-action {
    grid-column: 2 / -1;
  }

  .publishing-time-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 7px 8px;
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -10px 30px rgba(17,35,29,.08);
    backdrop-filter: blur(18px);
  }

  .sidebar::after,
  .sidebar-foot {
    display: none;
  }

  .brand-block {
    padding: 0 2px 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 17px;
  }

  .nav-list {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .nav-item {
    width: auto;
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 12px;
    font-size: 14px;
  }

  .nav-index {
    display: none;
  }

  .workspace {
    margin-left: 0;
    width: 100%;
    min-width: 0;
    padding: 0 16px calc(82px + env(safe-area-inset-bottom));
  }

  .topbar {
    flex-wrap: wrap;
    width: 100%;
    min-height: 86px;
  }

  .topbar > div:first-child,
  .topbar-actions,
  #main-content,
  #main-content > section { min-width: 0; max-width: 100%; }

  .topbar-actions { flex-wrap: wrap; justify-content: flex-end; }

  .topbar-actions .date-chip,
  #quick-backup,
  .sync-chip {
    display: none;
  }

  .daily-card {
    grid-template-columns: 1fr;
  }

  .daily-time {
    padding: 20px 22px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .daily-time strong {
    font-size: 38px;
  }

  .daily-body {
    padding: 20px 22px;
  }

  .action-steps,
  .growth-summary,
  .analysis-overview,
  .analysis-comparisons {
    grid-template-columns: 1fr;
  }

  .growth-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .range-switch { align-self: flex-start; }
  .growth-chart-wrap { overflow: hidden; }
  .growth-svg { width: 100%; min-width: 0; }

  .grid-2,
  .grid-3,
  .grid-4,
  .backup-actions,
  .form-grid,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .review-card > .button {
    grid-column: 1 / -1;
  }
  .review-card-actions { grid-column: 1 / -1; }

  .next-action {
    grid-column: 1 / -1;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .search-control {
    width: 100%;
    min-width: 0;
  }

  .pending-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pending-topic-scroll { max-height: 780px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  .account-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sync-source-grid { grid-template-columns: 1fr 1fr; }
  .real-topic-grid { grid-template-columns: 1fr 1fr; }
  .copy-draft-grid { grid-template-columns: 1fr 1fr; }
  .review-three-answers { grid-template-columns: 1fr; }
  .production-kanban { grid-template-columns: repeat(4, minmax(230px, 1fr)); }

  .table-wrap { overflow: visible; }
  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
  .table-wrap td { min-height: 34px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 0; border: 0; }
  .table-wrap td::before { content: attr(data-label); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
  .table-wrap td.title-cell { display: block; }
  .table-wrap td.title-cell::before { display: none; }
}

@media (max-width: 520px) {
  .pending-topic-grid { grid-template-columns: 1fr; }
  .sync-source-grid { grid-template-columns: 1fr; }
  .real-topic-grid,
  .real-topic-search-row { grid-template-columns: 1fr; }
  .copy-draft-grid,
  .copy-editor-head,
  .copy-section-field { grid-template-columns: 1fr; }
  .battle-details { grid-template-columns: 1fr; }
  .battle-target { align-items: flex-start; flex-direction: column; }
  .topic-detail-summary dl,
  .script-row,
  .script-editor fieldset { grid-template-columns: 1fr; }
  .script-editor label:last-child { grid-column: auto; }
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-actions {
    width: 100%;
    flex-shrink: 1;
    justify-content: flex-start;
  }

  .topbar .version-badge { order: -1; }
  .topbar #sync-douyin,
  .topbar #add-video { flex: 1 1 128px; }

  h1 {
    font-size: 24px;
  }

  .topbar .button {
    min-height: 40px;
    padding: 0 12px;
  }

  .card-pad,
  .backup-panel {
    padding: 18px;
  }

  .pending-pool-head { min-height: 0; align-items: flex-start; }
  .pending-total { min-width: auto; }
  .pending-total strong { font-size: 48px; }
  .pending-topic-scroll { max-height: 1360px; }
  .pending-topic-grid .topic-card { min-height: 0; }
  .account-snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #main-content { padding-top: 14px; }
  .section-gap { margin-top: 14px; }
  .review-three-answers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .review-answer {
    aspect-ratio: 1;
    align-content: start;
    gap: 5px;
    min-width: 0;
    padding: 11px 9px;
    overflow: hidden;
    border-radius: 14px;
  }
  .review-answer > span { font-size: 12px; }
  .review-answer h2 { font-size: 11px; line-height: 1.25; }
  .review-answer strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .review-answer p { display: none; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { min-height: 112px; padding: 14px; }
  .metric-label { gap: 6px; }
  .metric-label span:last-child { display: none; }
  .metric-value { font-size: 24px; }
  .sync-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sync-source-item { min-height: 112px; padding: 12px; }
  .sync-source-item > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .sync-source-item p { font-size: 11px; }
  .account-snapshot-grid { gap: 8px; }
  .account-snapshot-grid > div { min-height: 82px; padding: 11px; }
  .account-snapshot-grid strong { font-size: 18px; }
  .growth-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .growth-summary > div { min-height: 92px; padding: 10px; }
  .growth-summary strong { font-size: 18px; }
  .growth-summary small { display: none; }

  .metric-value {
    font-size: 27px;
  }

  .daily-key-action { padding: 20px 18px; }
  .action-footer { align-items: flex-start; flex-direction: column; }
  .action-outcome { flex-direction: column; }
  .analysis-section-head,
  .publishing-verdict { align-items: flex-start; flex-direction: column; }
  .publishing-bucket { grid-template-columns: 1fr; }

  .modal {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .modal-frame {
    max-height: 100vh;
  }
}
