/* 抖音雷达 — tokens first; dark is its own palette, not an inverted light one. */
:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --surface-2: #f1f1ee;
  --surface-3: #e8e8e4;
  --line: #e3e3de;
  --line-strong: #d2d2cc;
  --text: #16171b;
  --text-2: #565b66;
  --muted: #868b95;
  --accent: #e8461f;
  --accent-ink: #ffffff;
  --accent-soft: #fdebe5;
  --accent-text: #c23a17;
  --teacher: #6b4ce6;
  --teacher-soft: #eeeafd;
  --good: #1f9d60;
  --good-soft: #e3f5ec;
  --warn: #b7791f;
  --warn-soft: #fbf1df;
  --bad: #c9302c;
  --bad-soft: #fbe6e5;
  --bar: #a3a8b2;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 4px 16px rgba(20, 20, 30, .05);
  --shadow-lift: 0 2px 4px rgba(20, 20, 30, .06), 0 12px 32px rgba(20, 20, 30, .10);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e11; --surface: #15171c; --surface-2: #1b1e24; --surface-3: #242830; --line: #262a32; --line-strong: #353a44;
    --text: #f2f3f5; --text-2: #aab0bb; --muted: #737a86;
    --accent: #ff5b3a; --accent-ink: #ffffff; --accent-soft: rgba(255, 91, 58, .14); --accent-text: #ff8a6f;
    --teacher: #a08cff; --teacher-soft: rgba(160, 140, 255, .14);
    --good: #3dd68c; --good-soft: rgba(61, 214, 140, .12); --warn: #f2b84b; --warn-soft: rgba(242, 184, 75, .12); --bad: #ff6b66; --bad-soft: rgba(255, 107, 102, .12);
    --bar: #5c6270;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lift: 0 8px 28px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e11; --surface: #15171c; --surface-2: #1b1e24; --surface-3: #242830; --line: #262a32; --line-strong: #353a44;
  --text: #f2f3f5; --text-2: #aab0bb; --muted: #737a86;
  --accent: #ff5b3a; --accent-ink: #ffffff; --accent-soft: rgba(255, 91, 58, .14); --accent-text: #ff8a6f;
  --teacher: #a08cff; --teacher-soft: rgba(160, 140, 255, .14);
  --good: #3dd68c; --good-soft: rgba(61, 214, 140, .12); --warn: #f2b84b; --warn-soft: rgba(242, 184, 75, .12); --bad: #ff6b66; --bad-soft: rgba(255, 107, 102, .12);
  --bar: #5c6270;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lift: 0 8px 28px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 22px 16px; border-right: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--text-2); font-weight: 500; transition: background .15s, color .15s; }
.nav a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a span { flex: 1; }
.nav a em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav a em.hot { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; line-height: 19px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.nav a.active em { color: var(--accent-text); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sync-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.sync-card .state { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.sync-card p { margin: 0; color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.dot.busy { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.dot.off { background: var(--muted); }
@keyframes pulse { 50% { opacity: .35; } }
.theme-toggle { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--muted); padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }

.main { min-width: 0; padding: 28px 36px 64px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; color: var(--accent-text); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.eyebrow:empty { display: none; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: .01em; }
.subtitle { margin: 6px 0 0; color: var(--text-2); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; width: 240px; }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; background: none; width: 100%; min-width: 0; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.06); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.btn.soft:hover:not(:disabled) { background: var(--accent-soft); filter: brightness(1.04); }
.btn.ghost { border-color: transparent; background: none; color: var(--text-2); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.block { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; color: var(--text-2); font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; flex: none; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.threshold { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.threshold select { height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); padding: 0 8px; cursor: pointer; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 0; }
.chip.role { background: var(--surface-3); color: var(--text-2); cursor: pointer; }
.chip.role.teacher { background: var(--teacher-soft); color: var(--teacher); }
.chip.role:disabled { cursor: default; }
.chip.accent { background: var(--accent-soft); color: var(--accent-text); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.plain { background: var(--surface-3); color: var(--text-2); }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.notice.error { background: var(--bad-soft); color: var(--bad); }
.notice.sample { background: var(--warn-soft); color: var(--warn); }
.sync-strip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 500; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .label { color: var(--text-2); font-size: 13px; }
.kpi .value { font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.kpi.hl .value { color: var(--accent-text); }

/* ---------- account cards ---------- */
.account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.account-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; min-width: 0; }
.account-card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.acc-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-3); flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 700; color: var(--text-2); overflow: hidden; }
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }
.acc-name { min-width: 0; flex: 1; }
.acc-name h3 { margin: 0; font-size: 16px; line-height: 1.3; display: flex; gap: 8px; align-items: center; }
.acc-name h3 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-name p { margin: 2px 0 0; color: var(--text-2); font-size: 13px; }
.delta-up { color: var(--good); font-weight: 600; }
.delta-down { color: var(--bad); font-weight: 600; }
.icon-btn { width: 30px; height: 30px; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.bars { position: relative; height: 72px; }
.bars svg { width: 100%; height: 100%; overflow: visible; }
.bars .bar { fill: var(--bar); }
.bars .bar.viral { fill: var(--accent); }
.bars .hit { fill: transparent; cursor: pointer; }
.bars .hit:hover + .bar, .bars .hit:focus + .bar { filter: brightness(1.25); }
.bars .median { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
.bars-empty { height: 72px; display: grid; place-items: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 10px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc-stats div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.acc-stats dt { color: var(--muted); font-size: 12px; }
.acc-stats dd { margin: 0; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.acc-stats .viral dd { color: var(--accent-text); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 9px; overflow: hidden; background: var(--surface-3); display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x { position: absolute; left: 6px; top: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.thumb .t { position: absolute; inset: auto 0 0 0; padding: 18px 6px 6px; font-size: 11px; line-height: 1.3; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumbs-empty { color: var(--muted); font-size: 13px; padding: 10px 0; }
.acc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-foot .updated { margin-left: auto; color: var(--muted); font-size: 12px; }
.card-error { margin: 0; color: var(--bad); font-size: 12px; background: var(--bad-soft); padding: 6px 10px; border-radius: 8px; }

/* ---------- video gallery ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; min-width: 0; }
.video-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.cover { position: relative; aspect-ratio: 3 / 4; background: var(--surface-3); display: block; overflow: hidden; }
.cover img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover .rank, .cover .mult, .cover .dur { z-index: 2; }
.cover .fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--text-2); font-weight: 600; }
.cover .rank { position: absolute; left: 10px; top: 10px; background: rgba(0, 0, 0, .62); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.cover .mult { position: absolute; right: 10px; top: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.cover .mult.dim { background: rgba(0, 0, 0, .62); }
.cover .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.vbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vtitle { font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.vtitle:hover { color: var(--accent-text); }
.vby { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; min-width: 0; }
.vby span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vstats { display: flex; gap: 12px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.vstats b { color: var(--text); font-weight: 700; }
.vfoot { margin-top: auto; padding-top: 4px; }

/* ---------- analysis list ---------- */
.analysis-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.a-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; min-width: 0; }
a.a-card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.a-card .a-cover { width: 72px; aspect-ratio: 3 / 4; border-radius: 9px; overflow: hidden; background: var(--surface-3); flex: none; display: grid; place-items: center; }
.a-card .a-cover img { width: 100%; height: 100%; object-fit: cover; }
.a-card .a-cover.round { width: 64px; height: 64px; aspect-ratio: auto; border-radius: 50%; }
.a-card .a-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.a-card .a-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.a-card h3 { margin: 0; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-card .a-headline { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- analysis detail ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; margin-bottom: 16px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.report-hero { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.report-hero .h-cover { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.report-hero .h-cover img { width: 100%; height: 100%; object-fit: cover; }
.report-hero .h-cover.round { aspect-ratio: 1; border-radius: 50%; }
.report-hero .h-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.report-hero h2 { margin: 8px 0 12px; font-size: 22px; line-height: 1.35; }
.headline { margin: 0 0 16px; font-size: 18px; line-height: 1.55; font-weight: 600; padding-left: 14px; border-left: 4px solid var(--accent); }
.h-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-state { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); font-weight: 500; margin-bottom: 22px; }
.report-state.failed { background: var(--bad-soft); color: var(--bad); }
.section { margin-bottom: 26px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17px; }
.section-title .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 800; }
.section-title small { color: var(--muted); font-weight: 400; font-size: 13px; }
.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.signal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.signal .label { color: var(--text-2); font-size: 12px; }
.signal .value { font-size: 20px; font-weight: 800; margin: 4px 0; font-variant-numeric: tabular-nums; line-height: 1.25; word-break: break-word; }
.signal .note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 12px; }
.rcard .idx { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; margin-top: 1px; }
.rcard h4 { margin: 0 0 4px; font-size: 15px; }
.rcard p { margin: 0; color: var(--text-2); line-height: 1.6; font-size: 13px; }
.rcard.learn .idx { background: var(--good); }
.rcard.avoid { background: var(--surface-2); }
.rcard.avoid .idx { background: var(--warn); }
.timeline { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.timeline li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline .part { font-weight: 700; color: var(--accent-text); font-size: 13px; }
.timeline .what { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.idea h4 { margin: 0; font-size: 15px; line-height: 1.5; }
.idea p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; flex: 1; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.facts summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.facts summary::after { content: "展开"; color: var(--muted); font-weight: 400; font-size: 13px; }
.facts[open] summary::after { content: "收起"; }
.facts .facts-body { padding: 0 16px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.facts h5 { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.facts li { font-size: 13px; line-height: 1.5; display: flex; gap: 10px; }
.facts li .k { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; min-width: 52px; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { margin: 0 0 12px; font-size: 16px; }
.plain-list { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.status-big { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.status-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 16px; font-size: 13px; }
.status-rows dt { color: var(--muted); }
.status-rows dd { margin: 0; }
.log { margin: 0; padding: 0; list-style: none; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; color: var(--text-2); max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 3px; }

/* ---------- empty, dialog, tooltip, toast ---------- */
.empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.dialog { border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--text); width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-lift); }
.dialog::backdrop { background: rgba(10, 10, 14, .5); backdrop-filter: blur(2px); }
.dialog form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dialog h2 { margin: 0; font-size: 19px; }
.dialog p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input { height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); padding: 0 12px; font-weight: 400; color: var(--text); outline: 0; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .seg { align-self: flex-start; }
.form-error { color: var(--bad); font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.tooltip { position: fixed; z-index: 50; pointer-events: none; max-width: 280px; background: var(--text); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.5; white-space: pre-line; box-shadow: var(--shadow-lift); }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lift); max-width: calc(100vw - 32px); }
.toast.failure { background: var(--bad); color: #fff; }

/* ---------- account card link ---------- */
.acc-avatar { flex: none; border-radius: 50%; }
.acc-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-link:hover { color: var(--accent-text); }
.avatar.lg { width: 76px; height: 76px; font-size: 26px; }

/* ---------- 最新爆款 strip ---------- */
.fresh { margin-bottom: 22px; }
.fresh:empty { display: none; }
.fresh-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.fresh-head h2 { margin: 0; font-size: 16px; }
.fresh-head a { font-size: 13px; }
.fresh-head a:hover { color: var(--accent-text); }
.fresh-row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.fresh-item { display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; min-width: 0; }
.fresh-cover { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: block; }
.fresh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.fresh-item:hover .fresh-cover img { transform: scale(1.04); }
.fresh-cover .x { position: absolute; right: 6px; top: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.fresh-cover .has-report { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.fresh-meta { display: flex; flex-direction: column; font-size: 12px; line-height: 1.35; min-width: 0; }
.fresh-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fresh-meta span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- breakdown list card ---------- */
.a-card .a-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.a-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.a-date { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a-by { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; margin-top: auto; }

/* ---------- report: readable width ---------- */
#analysis-detail, #account-detail { max-width: 1120px; }
.cards-2 { align-items: start; }

/* ---------- 选题池 ---------- */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.idea-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.idea-card h3 { margin: 0; font-size: 16px; line-height: 1.45; }
.idea-card p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.65; }
.idea-card.is-want { border-left-color: var(--accent); }
.idea-card.is-done { border-left-color: var(--good); }
.idea-card.is-done h3 { color: var(--text-2); }
.idea-card.is-skip { opacity: .55; border-left-color: var(--line); }
.idea-card.is-skip h3 { text-decoration: line-through; }
.idea-src { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; min-width: 0; }
.idea-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-src:hover { color: var(--accent-text); }
.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.mark { display: inline-flex; gap: 4px; }
.mark button { border: 1px solid var(--line); background: var(--surface); color: var(--text-2); border-radius: 8px; padding: 3px 9px; font-size: 12px; cursor: pointer; }
.mark button:hover { color: var(--text); border-color: var(--line-strong); }
.mark .mark-want[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); font-weight: 700; }
.mark .mark-done[aria-pressed="true"] { background: var(--good-soft); border-color: transparent; color: var(--good); font-weight: 700; }
.mark .mark-skip[aria-pressed="true"] { background: var(--surface-3); border-color: transparent; color: var(--text-2); font-weight: 700; }

/* ---------- 账号详情 ---------- */
.acct-hero { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.acct-info { min-width: 0; flex: 1; }
.acct-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-title h2 { margin: 0; font-size: 24px; }
.acct-line { margin: 6px 0 2px; color: var(--text-2); }
.acct-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.acct-sync { margin: 0 0 12px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.detail-grid .panel.wide { grid-column: 1 / -1; }
.panel h2 small { font-size: 12px; font-weight: 400; margin-left: 6px; }
.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.line-chart { width: 100%; height: 140px; display: block; overflow: visible; }
.line-chart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.line-chart .area { fill: var(--accent-soft); }
.line-chart .hit { fill: transparent; }
.mini-reports { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mini-reports a { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 8px; }
.mini-reports a:hover { background: var(--surface-2); }
.mini-reports a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-panel { padding: 18px 0 6px; }
.table-panel h2 { padding: 0 20px; }
.vtable { display: flex; flex-direction: column; }
.vrow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 56px 72px 64px 64px 64px 104px; gap: 10px; align-items: center; padding: 8px 20px; border-top: 1px solid var(--line); font-size: 13px; }
.vrow.vhead { color: var(--muted); font-size: 12px; padding-top: 4px; padding-bottom: 8px; }
.vrow.is-viral { background: linear-gradient(90deg, var(--accent-soft), transparent 40%); }
.vrow .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.vrow .num.strong { color: var(--text); font-weight: 700; }
.vrow .mult-cell.hot { color: var(--accent-text); font-weight: 800; }
.th { border: 0; background: none; color: var(--muted); font-size: 12px; text-align: right; cursor: pointer; padding: 0; }
.th:hover, .th.on { color: var(--text); font-weight: 600; }
.vcell-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vcell-title span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.vcell-title:hover span:last-child { color: var(--accent-text); }
.vthumb { width: 36px; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--surface-3); flex: none; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcell-act { display: flex; justify-content: flex-end; }

/* ---------- 粘贴链接拆解 ---------- */
.paste-link { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 14px; margin-bottom: 16px; box-shadow: var(--shadow); }
.paste-link:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.paste-link svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.paste-link input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 38px; }
.public .paste-link { display: none; }

/* ---------- 脚本 ---------- */
:root {
  --p-hook: #eb6834; --p-promise: #eda100; --p-point: #2a78d6; --p-case: #1baf7a; --p-demo: #6250d6; --p-close: #e87ba4; --p-cta: #008300; --p-other: #898781;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --p-hook: #d95926; --p-promise: #c98500; --p-point: #3987e5; --p-case: #199e70; --p-demo: #9085e9; --p-close: #d55181; --p-cta: #0ca30c; }
}
:root[data-theme="dark"] { --p-hook: #d95926; --p-promise: #c98500; --p-point: #3987e5; --p-case: #199e70; --p-demo: #9085e9; --p-close: #d55181; --p-cta: #0ca30c; }
.p-hook { --pc: var(--p-hook); } .p-promise { --pc: var(--p-promise); } .p-point { --pc: var(--p-point); } .p-case { --pc: var(--p-case); }
.p-demo { --pc: var(--p-demo); } .p-close { --pc: var(--p-close); } .p-cta { --pc: var(--p-cta); } .p-other { --pc: var(--p-other); }
[class*="p-"][class$="-soft"] { background: color-mix(in srgb, var(--pc) 16%, transparent); color: var(--text); }
.p-hook-soft { --pc: var(--p-hook); } .p-promise-soft { --pc: var(--p-promise); } .p-point-soft { --pc: var(--p-point); } .p-case-soft { --pc: var(--p-case); }
.p-demo-soft { --pc: var(--p-demo); } .p-close-soft { --pc: var(--p-close); } .p-cta-soft { --pc: var(--p-cta); } .p-other-soft { --pc: var(--p-other); }
.chip[class*="-soft"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }

#script-detail { max-width: 1180px; }
.script-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.s-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); transition: box-shadow .2s, border-color .2s; min-width: 0; }
.s-card:hover { box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.s-card .s-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.s-card .s-top .a-date { margin-left: auto; }
.s-card h3 { margin: 0; font-size: 16px; line-height: 1.45; }
.s-card p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.script-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.script-hero .h-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.script-hero h2 { margin: 10px 0 10px; font-size: 22px; line-height: 1.35; }
.src-link:hover { color: var(--accent-text); }
.seg-bar { display: flex; gap: 2px; height: 30px; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.seg-bar .sb { background: var(--pc); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; min-width: 4px; cursor: default; }
.seg-bar .sb.p-promise { color: #0b0b0b; }
.seg-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 18px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--pc); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-size: 14px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 700; }
.tab-panel { margin-bottom: 22px; }
.voice { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.voice li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.v-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; }
.v-lines { margin: 0; font-size: 17px; line-height: 1.8; white-space: pre-wrap; }
.todo-mark { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 3px; font-weight: 700; }
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.srow { display: grid; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; align-items: start; }
.srow:first-child { border-top: 0; }
.shots .srow { grid-template-columns: 44px 84px 120px minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, .9fr); }
.edits .srow { grid-template-columns: 84px minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, .7fr) 80px minmax(0, .9fr); }
.shead { background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.shot-no { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 800; }
.line-cell { color: var(--text); }
.sub-cell b { color: var(--accent-text); }
.prep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.checks, .todos, .title-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border: 1.5px solid var(--line-strong); border-radius: 4px; }
.todos li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.todo-panel .todos li { background: var(--warn-soft); }
.title-opts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px; font-weight: 600; }
.cover-text { font-size: 26px; font-weight: 800; margin: 0 0 8px; color: var(--accent-text); }
.revise textarea, .field textarea { width: 100%; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); padding: 10px 12px; color: var(--text); font: inherit; font-weight: 400; resize: vertical; outline: 0; }
.revise textarea:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.revise-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.change-note { margin: 0 0 10px; font-size: 13px; color: var(--good); background: var(--good-soft); padding: 8px 10px; border-radius: 8px; }
.wide-dialog { width: min(560px, calc(100vw - 32px)); }
.profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.profile-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.idea-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- public read-only copy: hide everything that changes the radar ---------- */
.public .nav a[data-page="scripts"],
.public .nav a[data-page="ideas"],
.public #open-add,
.public [data-action="sync"],
.public [data-action="analyze"],
.public [data-action="delete"],
.public [data-action="publish"],
.public .nav a[data-page="settings"] { display: none !important; }
.public .chip.role { cursor: default; opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand-text, .sidebar-foot { display: none; }
  .brand { padding: 0; flex: none; }
  .brand-mark { width: 32px; height: 32px; }
  .nav { flex-direction: row; gap: 2px; }
  .nav a { padding: 7px 10px; white-space: nowrap; }
  .nav a svg { display: none; }
  .main { padding: 18px 16px 48px; }
  h1 { font-size: 24px; }
  .top-actions { width: 100%; }
  .search { flex: 1; width: auto; }
  .account-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .analysis-list { grid-template-columns: 1fr; }
  .report-hero { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .settings-grid { grid-template-columns: 1fr; }
  .toolbar-count { margin-left: 0; width: 100%; }
  .idea-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .acct-hero { padding: 16px; gap: 14px; align-items: flex-start; }
  .avatar.lg { width: 56px; height: 56px; }
  .acct-title h2 { font-size: 20px; }
  /* Table rows become compact cards: title on top, numbers in a row below. */
  .vrow.vhead { display: none; }
  .vrow { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 16px; gap: 6px 10px; }
  .vcell-title { grid-column: 1 / -1; }
  .vrow .num { text-align: left; font-size: 12px; }
  .vrow .num::before { content: attr(data-label) " "; color: var(--muted); font-weight: 400; }
  .vcell-act { grid-column: 1 / -1; justify-content: flex-start; }
  .table-panel h2 { padding: 0 16px; }
  .script-list, .prep-grid, .profile-form { grid-template-columns: 1fr; }
  .script-hero { padding: 16px; }
  .script-hero h2 { font-size: 19px; }
  .v-lines { font-size: 16px; }
  /* Shot and edit sheets become stacked cards with labels. */
  .shead { display: none !important; }
  .shots .srow, .edits .srow { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }
  .srow > span[data-label]::before { content: attr(data-label) "：" ; color: var(--muted); font-size: 12px; }
  .shot-no { margin-bottom: 4px; }
}
@media (max-width: 480px) {
  .kpis { gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .value { font-size: 24px; }
  .report-hero { grid-template-columns: 1fr; }
  .report-hero .h-cover { width: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
