/* ============================================================
   Topic Radar — 深色编辑部主题，零外部依赖
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0a0e13;
  --bg-soft: #0d131b;
  --panel: #111923;
  --panel-2: #0e151e;
  --panel-3: #16202c;
  --line: #1f2b39;
  --line-soft: #18222e;
  --text: #e7eef6;
  --text-dim: #c2ccd8;
  --muted: #8494a7;
  --muted-2: #66758a;
  --accent: #4fd1c5;
  --accent-dim: rgba(79, 209, 197, .14);
  --accent-2: #f6ad55;
  --danger: #f87171;
  --ok: #4ade80;
  --warn: #fbbf24;
  --s: #f6c453;
  --a: #5eead4;
  --b: #7dd3fc;
  --c: #94a3b8;
  --radius: 12px;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .03);
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --panel-3: #f1f5f9;
  --line: #e2e8f0;
  --line-soft: #edf2f7;
  --text: #0f172a;
  --text-dim: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --accent: #0f766e;
  --accent-dim: rgba(15, 118, 110, .09);
  --accent-2: #b45309;
  --danger: #dc2626;
  --ok: #15803d;
  --warn: #b45309;
  --s: #a16207;
  --a: #0f766e;
  --b: #0369a1;
  --c: #64748b;
  --shadow: 0 16px 40px rgba(15, 23, 42, .1);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(79, 209, 197, .05), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(246, 173, 85, .04), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

[data-theme="light"] body {
  background: #ffffff;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(79, 209, 197, .3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #24303f; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #cbd5e1; border-color: #ffffff; }

.shell { width: min(1480px, 100%); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
  background:
    linear-gradient(135deg, rgba(79, 209, 197, .95), rgba(45, 130, 180, .9) 55%, rgba(246, 173, 85, .9));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.logo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 20, 24, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 20, 24, .55) 1px, transparent 1px);
  background-size: 7px 7px;
  mask-image: radial-gradient(circle at 30% 30%, #000 25%, transparent 72%);
}

.logo::after {
  content: "T";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 17px/1 var(--mono);
  color: #06211f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

.brand h1 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand .sub {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  white-space: nowrap;
}
.countdown-label { font-size: 10px; color: var(--muted); letter-spacing: .03em; }
.countdown b { font: 650 13px/1 var(--mono); color: var(--accent); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.countdown.collecting { border-color: rgba(246, 173, 85, .38); }
.countdown.collecting b { color: var(--warn); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.2;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
  white-space: nowrap;
}

.btn:hover { border-color: #33506a; color: var(--text); background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn.primary {
  background: linear-gradient(180deg, #5ad9cc, #3fbfb4);
  border-color: transparent;
  color: #04211f;
  font-weight: 650;
}
.btn.primary:hover { filter: brightness(1.06); color: #04211f; }

.btn.ghost { background: transparent; }
.btn.small { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.btn.danger { color: var(--danger); border-color: rgba(248, 113, 113, .35); }

.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 15px;
}
.icon-btn:hover { color: var(--text); border-color: #33506a; }

/* ---------- 导航 / 指标 ---------- */

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
}

.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  padding: 8px 13px 10px;
  font-size: 13px;
  color: var(--muted);
  border: 0;
  background: none;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
}
.tab:hover { color: var(--text-dim); background: rgba(255, 255, 255, .02); }
.tab.active { color: var(--text); }
.tab.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
}
.tab .count {
  font: 10.5px/1 var(--mono);
  color: var(--muted-2);
  margin-left: 5px;
}

.stats-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
  flex: none;
  max-width: 60%;
}
.stats-strip::-webkit-scrollbar { display: none; }

.stat { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.stat b { font: 600 13px/1 var(--mono); color: var(--text); }
.stat span { font-size: 10.5px; color: var(--muted); }
.stat.live b { color: var(--ok); }

main { padding-top: 18px; padding-bottom: 56px; min-height: 60vh; }

.view[hidden] { display: none !important; }
[hidden] { display: none !important; }
.readonly-chip { color: var(--muted); border-color: var(--line-soft); }
.settings-ai-box { border: 1px solid var(--line-soft); background: var(--panel-2); border-radius: 9px; padding: 11px 12px; margin-bottom: 14px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.settings-grid .field, .settings-ai-box .field { display: flex; flex-direction: column; align-items: stretch; gap: 5px; font-size: 11px; color: var(--muted); }
.settings-ai-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 8px; }
.fetch-password-modal { width: min(430px, 100%); }
.fetch-password-intro { margin: 0 0 14px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.fetch-password-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; font-size: 11px; color: var(--muted); }
.fetch-password-error { min-height: 18px; font-size: 10.5px; line-height: 1.5; color: var(--danger); }
.fetch-password-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 560px) { .settings-grid { grid-template-columns: 1fr; } }

.modal.ai-setup-modal { width: min(620px, 100%); }
.ai-setup-intro { margin: 0 0 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.ai-setup-guide {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted-2);
}
.ai-setup-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.banner.ok { border-color: rgba(52, 211, 153, .34); background: rgba(52, 211, 153, .07); }

/* ---------- 通用 ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 10px;
}
.section-head:first-child { margin-top: 4px; }
.section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent);
}
.section-head .hint { font-size: 11.5px; color: var(--muted); }

.board-list-head { align-items: center; }
.board-list-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  border-radius: 8px;
}
.seg {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.seg:hover { color: var(--text-dim); }
.seg.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
[data-theme="light"] .seg.active { background: #ffffff; border: 1px solid var(--line-soft); padding: 3px 8px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0 2px;
}

.toolbar .spacer { flex: 1; }

.field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.select, .input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  outline: none;
  transition: border-color .15s;
}
.select:focus, .input:focus { border-color: var(--accent); }
.select { appearance: none; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input::placeholder { color: var(--muted-2); }

.search-wrap { position: relative; flex: 1; min-width: 180px; max-width: 420px; }
.search-wrap .input { width: 100%; padding-left: 30px; }
.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--muted-2);
  font-size: 15px;
  pointer-events: none;
}

.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11.5px;
}
.pill:hover { color: var(--text-dim); border-color: #33506a; }
.pill.active { background: var(--accent-dim); border-color: rgba(79, 209, 197, .42); color: var(--accent); }

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.check input { accent-color: var(--accent); width: 13px; height: 13px; }

.tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  font: 700 10.5px/1 var(--mono);
  letter-spacing: .04em;
  border: 1px solid transparent;
}
.tier-S { color: var(--s); background: rgba(246, 196, 83, .12); border-color: rgba(246, 196, 83, .32); }
.tier-A { color: var(--a); background: rgba(94, 234, 212, .1); border-color: rgba(94, 234, 212, .28); }
.tier-B { color: var(--b); background: rgba(125, 211, 252, .1); border-color: rgba(125, 211, 252, .26); }
.tier-C { color: var(--c); background: rgba(148, 163, 184, .1); border-color: rgba(148, 163, 184, .22); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 10.5px/1 var(--mono);
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.chip b { color: var(--text-dim); font-weight: 600; }
.chip.hot { color: var(--accent-2); border-color: rgba(246, 173, 85, .28); background: rgba(246, 173, 85, .08); }
.chip.track { color: #9fd0e6; border-color: rgba(125, 211, 252, .22); }
.chip.new { color: var(--accent); border-color: rgba(79, 209, 197, .34); background: var(--accent-dim); font-weight: 650; }
.verify-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  line-height: 1.6;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.verify-chip.ok { color: var(--ok); border-color: rgba(74, 222, 128, .28); background: rgba(74, 222, 128, .07); }
.verify-chip.warn { color: var(--warn); border-color: rgba(251, 191, 36, .28); background: rgba(251, 191, 36, .07); }
.verify-chip.bad { color: var(--danger); border-color: rgba(248, 113, 113, .28); background: rgba(248, 113, 113, .07); }
[data-theme="light"] .verify-chip.ok { color: #15803d; }
[data-theme="light"] .verify-chip.warn { color: #a16207; }
[data-theme="light"] .verify-chip.bad { color: #dc2626; }
.ai-chip { cursor: pointer; }
.ai-chip:hover { border-color: var(--accent); color: var(--text); }

.tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel-3);
  color: var(--muted);
  border: 1px solid var(--line-soft);
}

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--muted-2); }
.nowrap { white-space: nowrap; }

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.empty b { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }
.empty .btn { margin-top: 12px; }

/* ---------- 赛道卡 ---------- */

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 10px;
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 14px 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color .15s, transform .12s;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.track-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.track-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

.track-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.track-name { font-size: 12.5px; font-weight: 600; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.track-no { font: 10px/1 var(--mono); color: var(--muted-2); }
.track-count { font: 600 18px/1 var(--mono); color: var(--text); }
.track-count small { font-size: 10px; color: var(--muted-2); font-weight: 400; margin-left: 3px; }

.track-meter { height: 3px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.track-meter i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #7dd3fc); }
.track-meta { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: var(--muted-2); font-family: var(--mono); }
.track-meta .avg { color: var(--muted); }

.track-top { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.track-top li {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.track-top li::before { content: "· "; color: var(--accent); }
.track-empty { font-size: 11px; color: var(--muted-2); padding: 4px 0; }

/* ---------- 选题卡 ---------- */

.topic-list { display: flex; flex-direction: column; gap: 9px; transition: opacity .15s ease; }
.topic-list.is-loading { opacity: .55; pointer-events: none; }

.topic {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 176px;
  gap: 13px;
  padding: 13px 15px 12px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
  box-shadow: var(--card-shadow);
}
.topic:hover { border-color: var(--accent); background: linear-gradient(180deg, var(--panel), var(--panel-2)); }
.topic.is-new { box-shadow: inset 2px 0 0 var(--accent); }

.topic-score {
  --p: 0;
  --ring: var(--c);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--panel-3) 0);
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
}
.topic-score::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--panel);
}
.topic:hover .topic-score::before { background: var(--panel); }
.topic-score b { position: relative; font: 650 15px/1 var(--mono); color: var(--text); }
.topic-score .tier { position: absolute; bottom: -5px; right: -7px; height: 17px; min-width: 17px; font-size: 9.5px; padding: 0 4px; border-radius: 4px; background: var(--panel-2); }
.tier-S.topic-score, .topic-score[data-tier="S"] { --ring: var(--s); }
.topic-score[data-tier="A"] { --ring: var(--a); }
.topic-score[data-tier="B"] { --ring: var(--b); }
.topic-score[data-tier="C"] { --ring: var(--c); }

.topic-main { min-width: 0; }

.topic-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.topic-meta .sep { color: var(--muted-2); opacity: .55; }
.topic-meta .pub { color: var(--text-dim); }
.topic-meta .agg { color: var(--muted-2); font-size: 10px; border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 4px; }

.topic h3 {
  margin: 0 0 5px;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .005em;
}
.topic h3 a:hover { color: var(--accent); }

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

.topic-trace, .hero-trace {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0 0 8px;
}
.topic-trace .sep, .hero-trace .sep { opacity: .55; }
.trace-time { color: var(--muted); }
.trace-box {
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  border-radius: 10px;
  padding: 11px 13px;
  margin: 10px 0 14px;
}
.trace-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.trace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trace-grid div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trace-grid span { font-size: 9.5px; color: var(--muted-2); }
.trace-grid b { font: 600 11.5px/1.45 var(--mono); color: var(--text-dim); overflow-wrap: anywhere; }
.trace-notes { margin: 9px 0 0; padding-left: 16px; font-size: 10.5px; line-height: 1.65; color: var(--muted); }
@media (max-width: 560px) { .trace-grid { grid-template-columns: 1fr; } }

.topic-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topic-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }

.topic-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, var(--c1, #4fd1c5), var(--c2, #3b82f6));
  background-size: cover;
  background-position: center;
}
.topic-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 38%, rgba(0, 0, 0, .62));
  pointer-events: none;
}
.topic-thumb .thumb-score {
  position: absolute;
  right: 6px;
  bottom: 5px;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font: 700 16px/1 var(--mono);
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .8);
}
.topic-thumb .thumb-score small { font-size: 9px; color: #ffe8a8; font-weight: 700; }
.topic-thumb .thumb-fallback {
  position: absolute;
  left: 8px;
  top: 7px;
  z-index: 1;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.topic-thumb.has-image { background-color: var(--panel-3); }
.topic-thumb .thumb-ai {
  position: absolute;
  left: 7px;
  top: 6px;
  z-index: 1;
  font-size: 8.5px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 3px;
  padding: 0 4px;
}

/* ---------- 看板重点区 ---------- */

.board-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, 1.5fr);
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
}
.ov-item { display: flex; flex-direction: column; gap: 3px; }
.ov-item span { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.ov-item b { font: 650 20px/1 var(--mono); color: var(--text); }
.ov-note {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted-2);
  border-left: 1px solid var(--line-soft);
  padding-left: 14px;
}
.ov-note span { color: var(--muted); }

.board-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 4px;
}

.board-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.board-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), #38bdf8);
}
.hero-copy { min-width: 0; }
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.hero-track {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-left: 1px solid var(--line);
  padding-left: 8px;
}
.hero-title-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 12px; }
.hero-score.topic-score { width: 76px; height: 76px; flex: none; }
.hero-score::before { inset: 6px; }
.hero-score b { font-size: 22px; }
.hero-title-block { min-width: 0; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.hero-meta .pub { color: var(--text-dim); font-weight: 600; }
.hero-meta .sep { color: var(--muted-2); opacity: .6; }
.hero-pubs {
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
}
.hero-title-block h2 {
  margin: 5px 0 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -.01em;
  font-weight: 700;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero-title-block h2 a:hover { color: var(--accent); }
.hero-summary {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-dims {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.hero-dim { display: flex; flex-direction: column; gap: 4px; }
.hero-dim span { font-size: 10px; color: var(--muted-2); }
.hero-dim b { font: 650 12px/1 var(--mono); color: var(--text-dim); }
.hero-dim i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--panel-3);
  overflow: hidden;
}
.hero-dim em {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-media { min-width: 0; }
.hero-media .topic-thumb {
  height: 100%;
  min-height: 220px;
  aspect-ratio: auto;
  border-radius: 12px;
}
.hero-media .topic-thumb .thumb-score { display: none; }

.board-picks { display: flex; flex-direction: column; gap: 8px; }
.board-pick {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 13px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  transition: border-color .15s, transform .12s;
}
.board-pick:hover { border-color: var(--accent); transform: translateY(-1px); }
.pick-rank { font: 650 13px/1 var(--mono); color: var(--accent); padding-top: 2px; }
.pick-main { min-width: 0; }
.pick-meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 10px; color: var(--muted-2); }
.pick-track { color: var(--accent); font-weight: 600; }
.pick-main h3 {
  margin: 4px 0 7px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pick-main h3 a:hover { color: var(--accent); }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-score b { font: 650 15px/1 var(--mono); color: var(--text); }
.pick-score small { font-size: 9.5px; color: var(--muted); margin-left: 3px; }

@media (max-width: 1100px) {
  .board-focus { grid-template-columns: 1fr; }
  .board-picks { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .board-overview { grid-template-columns: 1fr 1fr; }
  .ov-note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-soft); padding: 9px 0 0; }
  .board-hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .topic-thumb { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .hero-title-block h2 { font-size: 19px; }
  .hero-dims { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .board-picks { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .board-overview { grid-template-columns: 1fr 1fr; padding: 10px 12px; }
  .ov-item b { font-size: 17px; }
  .hero-title-row { gap: 10px; }
  .hero-score.topic-score { width: 62px; height: 62px; }
  .hero-score b { font-size: 18px; }
  .hero-title-block h2 { font-size: 17px; }
  .hero-dims { gap: 6px; }
}

[data-theme="light"] .board-overview,
[data-theme="light"] .board-hero,
[data-theme="light"] .board-pick {
  border-color: #e5eaf1;
}
[data-theme="light"] .hero-title-block h2 { color: #0f172a; }


.intent-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 7px 0 7px;
}
.intent-label { font-size: 10px; color: var(--muted-2); letter-spacing: .04em; }
.intent-stars { display: inline-flex; gap: 1px; align-items: center; }
.intent-star {
  border: 0;
  background: none;
  padding: 0 1px;
  font-size: 15px;
  line-height: 1;
  color: #33465a;
  cursor: pointer;
  transition: color .12s ease, transform .12s ease;
}
.intent-star:hover { transform: translateY(-1px); color: #8fa6bb; }
.intent-star.on { color: #f6ad55; text-shadow: 0 0 8px rgba(246, 173, 85, .3); }
.intent-row .act.primary { margin-left: auto; }
@media (max-width: 1020px) {
  .topic { grid-template-columns: 52px minmax(0, 1fr) 136px; }
}

.act {
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  padding: 4px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.act:hover { color: var(--accent); background: var(--accent-dim); border-color: rgba(79, 209, 197, .2); }
.act.primary { color: var(--accent); border-color: rgba(79, 209, 197, .28); background: var(--accent-dim); }
.act:disabled { opacity: .45; cursor: wait; }

.load-more { display: flex; justify-content: center; padding: 18px 0 4px; }

/* ---------- 抽屉 / 弹窗 ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 7, 11, .62);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end;
  animation: fade .15s ease-out;
}
.overlay.center { align-items: center; justify-content: center; padding: 20px; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }

.drawer {
  width: min(760px, 100%);
  height: 100%;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow-y: auto;
  animation: slide .2s ease-out;
}

.modal {
  width: min(560px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: pop .16s ease-out;
}

.drawer-head, .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.drawer-head h2, .modal-head h2 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.5; }
.drawer-head .eyebrow, .modal-head .eyebrow {
  font: 10px/1 var(--mono);
  letter-spacing: .12em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.drawer-body, .modal-body { padding: 16px 20px 40px; }
.modal-body { padding-bottom: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; }

.close-btn {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.close-btn:hover { color: var(--text); border-color: #33506a; }

.detail-title { font-size: 19px; line-height: 1.45; margin: 14px 0 8px; font-weight: 650; }
.detail-title a:hover { color: var(--accent); }
.detail-meta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
.detail-summary { font-size: 13px; line-height: 1.75; color: var(--text-dim); white-space: pre-wrap; margin: 0 0 18px; }
.orig-title { font-size: 11.5px; line-height: 1.6; color: var(--muted-2); margin: -4px 0 12px; }
.orig-title a { color: var(--muted); text-decoration: underline dotted; text-underline-offset: 2px; }
.orig-block { margin: -8px 0 16px; font-size: 11.5px; color: var(--muted); }
.orig-block summary { cursor: pointer; color: var(--muted-2); }
.orig-block p { margin: 7px 0 0; line-height: 1.7; white-space: pre-wrap; }
.chip.tr { color: var(--accent); border-color: rgba(79, 209, 197, .3); background: rgba(79, 209, 197, .08); }
.cover-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #071017;
}
.cover-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }

.panel-box {
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.panel-box h3 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; }
.bd-row { display: flex; flex-direction: column; gap: 4px; }
.bd-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.bd-head b { font-family: var(--mono); color: var(--text-dim); font-weight: 600; }
.bd-bar { height: 4px; background: #1a2431; border-radius: 4px; overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #7dd3fc); border-radius: 4px; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kv div { font-size: 11px; color: var(--muted); }
.kv b { display: block; font: 600 13px/1.4 var(--mono); color: var(--text-dim); margin-top: 2px; }

.sibling-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sibling-list li { font-size: 12px; line-height: 1.5; padding-left: 10px; border-left: 2px solid var(--line); }
.sibling-list .pub { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.sibling-list a:hover { color: var(--accent); }

/* 时间线 */

.timeline-verdict {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  margin-bottom: 12px;
}
.timeline-verdict .label { font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.timeline-verdict .label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.timeline-verdict .detail { font-size: 11.5px; line-height: 1.65; color: var(--muted); margin-top: 6px; }

.timeline-verdict[data-level="fresh"] { border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .05); }
.timeline-verdict[data-level="fresh"] .label::before { background: var(--ok); }
.timeline-verdict[data-level="slight"] { border-color: rgba(163, 230, 53, .3); background: rgba(163, 230, 53, .05); }
.timeline-verdict[data-level="slight"] .label::before { background: #a3e635; }
.timeline-verdict[data-level="stale"] { border-color: rgba(251, 191, 36, .32); background: rgba(251, 191, 36, .05); }
.timeline-verdict[data-level="stale"] .label::before { background: var(--warn); }
.timeline-verdict[data-level="old"] { border-color: rgba(248, 113, 113, .34); background: rgba(248, 113, 113, .05); }
.timeline-verdict[data-level="old"] .label::before { background: var(--danger); }
.timeline-verdict[data-level="repeat"] { border-color: rgba(192, 132, 252, .32); background: rgba(192, 132, 252, .05); }
.timeline-verdict[data-level="repeat"] .label::before { background: #c084fc; }
.timeline-verdict[data-level="periodic"] { border-color: rgba(125, 211, 252, .3); background: rgba(125, 211, 252, .05); }
.timeline-verdict[data-level="periodic"] .label::before { background: var(--b); }

.tl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.tl-stat { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 9px; }
.tl-stat span { display: block; font-size: 9.5px; color: var(--muted-2); letter-spacing: .04em; }
.tl-stat b { font: 600 11.5px/1.5 var(--mono); color: var(--text-dim); }

.tl-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tl-entries li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 9px; font-size: 11.5px; padding: 7px 0; border-top: 1px dashed var(--line-soft); }
.tl-entries li:first-child { border-top: 0; }
.tl-date { font: 10.5px/1.5 var(--mono); color: var(--muted-2); }
.tl-entry-title { line-height: 1.5; color: var(--text-dim); }
.tl-entry-title a:hover { color: var(--accent); }
.tl-entry-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.tl-badge { font-size: 9.5px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted-2); }
.tl-badge.rel { color: var(--accent); border-color: rgba(79, 209, 197, .3); }
.tl-badge.rumor { color: var(--warn); border-color: rgba(251, 191, 36, .3); }
.tl-badge.self { color: var(--b); border-color: rgba(125, 211, 252, .3); }

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--panel-2);
  border-radius: 8px;
  min-height: 46px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .045), transparent);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 信源 / 运行 ---------- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 11px 13px;
}
.metric span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
.metric b { display: block; font: 650 20px/1.25 var(--mono); color: var(--text); margin-top: 3px; }
.metric small { font-size: 10.5px; color: var(--muted-2); font-weight: 400; margin-left: 4px; }
.metric.good b { color: var(--ok); }
.metric.bad b { color: var(--danger); }
.metric.warn b { color: var(--warn); }

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: auto;
  background: var(--panel);
}
table.grid { width: 100%; border-collapse: collapse; font-size: 11.5px; min-width: 720px; }
table.grid th {
  text-align: left;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
table.grid td { padding: 8px 11px; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); vertical-align: top; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr:hover td { background: rgba(255, 255, 255, .015); }
table.grid td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
table.grid .src-name { color: var(--text); font-weight: 500; }
table.grid .err { color: var(--danger); font-size: 10.5px; max-width: 320px; }

.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }
.status-dot.bad { background: var(--danger); }
.status-dot.warn { background: var(--warn); }

.run-list { display: flex; flex-direction: column; gap: 7px; }
.run-row {
  display: grid;
  grid-template-columns: 120px repeat(6, minmax(58px, 1fr));
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
  font-size: 11px;
  color: var(--muted);
}
.run-row b { font-family: var(--mono); color: var(--text-dim); font-weight: 600; }
.run-row .reason { color: var(--text-dim); font-size: 11px; }
.run-row .bad { color: var(--danger); }
.run-row .warn { color: var(--warn); }

.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 10px 12px 0; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel); }
.bar-chart .bar { flex: 1; min-width: 2px; background: linear-gradient(180deg, var(--accent), rgba(79, 209, 197, .35)); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; opacity: .85; }
.bar-chart .bar:hover { opacity: 1; }
.bar-chart .bar span { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line); padding: 3px 6px; border-radius: 5px; font: 10px/1.2 var(--mono); color: var(--text); white-space: nowrap; z-index: 2; }
.bar-chart .bar:hover span { display: block; }
.chart-caption { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted-2); padding: 5px 12px 0; font-family: var(--mono); }

.log-box {
  margin: 0;
  padding: 12px 14px;
  background: #070b10;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  max-height: 300px;
  overflow: auto;
  font: 10.5px/1.7 var(--mono);
  color: #93a4b8;
  white-space: pre-wrap;
  word-break: break-all;
}
.log-box .lv-warn { color: var(--warn); }
.log-box .lv-error { color: var(--danger); }

/* ---------- 归档 ---------- */

.archive-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  border-radius: 10px;
  margin-bottom: 12px;
}
.archive-form label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); }
.archive-form .input { padding: 6px 9px; }
.archive-form .grow { flex: 1; min-width: 160px; }
.archive-form .grow .input { width: 100%; }

/* ---------- 帮助 ---------- */

.prose { max-width: 860px; font-size: 13px; line-height: 1.75; color: var(--text-dim); }
.prose h2 { font-size: 15px; margin: 26px 0 10px; color: var(--text); }
.prose h2:first-child { margin-top: 4px; }
.prose h3 { font-size: 13px; margin: 18px 0 6px; color: var(--text-dim); }
.prose p { margin: 0 0 10px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 4px; }
.prose code { font-family: var(--mono); font-size: 11.5px; background: var(--panel-3); border: 1px solid var(--line-soft); border-radius: 4px; padding: 1px 5px; color: var(--text); }
.prose pre { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 9px; padding: 12px 14px; overflow: auto; font: 11.5px/1.7 var(--mono); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line-soft); }
.prose th { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.prose .callout { border-left: 2px solid var(--accent); background: var(--accent-dim); padding: 10px 13px; border-radius: 0 8px 8px 0; margin: 12px 0; font-size: 12.5px; }

/* ---------- 提示条 ---------- */

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 380px;
  background: #121b25;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-dim);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  animation: pop .15s ease-out;
}
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
.toast b { display: block; color: var(--text); font-size: 12px; margin-bottom: 2px; }

.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255, 255, 255, .2); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 191, 36, .32);
  background: rgba(251, 191, 36, .06);
  border-radius: 9px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.banner.error { border-color: rgba(248, 113, 113, .34); background: rgba(248, 113, 113, .06); }
.banner .grow { flex: 1; }

.foot-note { text-align: center; color: var(--muted-2); font-size: 10.5px; padding: 26px 0 8px; }
.foot-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

pre.script {
  white-space: pre-wrap;
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 12px;
  font: 12px/1.8 var(--sans);
  color: var(--text-dim);
  margin: 8px 0 0;
}

.llm-grid { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.llm-grid .label { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.llm-grid ul { margin: 0; padding-left: 18px; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .stats-strip { display: none; }
  .nav-row { padding-bottom: 4px; }
  .topbar-inner { padding-top: 10px; }
  .brand h1 { font-size: 14px; }
  .brand .sub { display: none; }
  .top-actions .btn span.long { display: none; }
  .track-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .run-row { grid-template-columns: 100px repeat(3, 1fr); }
  .run-row .opt { display: none; }
  .tl-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell { padding: 0 12px; }
  .top-actions .btn { padding: 7px 9px; font-size: 11.5px; }
  .top-actions .btn.ghost { display: none; }
  .countdown { padding: 6px 8px; gap: 5px; }
  .countdown-label { display: none; }
  .countdown b { font-size: 12px; }
  main { padding-top: 12px; }
  .track-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .track-top { display: none; }
  .topic { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .topic-thumb { display: block; grid-column: 2; aspect-ratio: 16 / 7; margin-top: 2px; }
  .topic-score { width: 44px; height: 44px; }
  .topic-score b { font-size: 13px; }
  .topic h3 { font-size: 13.5px; }
  .topic .summary { -webkit-line-clamp: 3; }
  .topic-actions { margin-left: 0; }
  .drawer-head, .modal-head { padding: 12px 14px 10px; }
  .drawer-body, .modal-body { padding: 14px 14px 32px; }
  .detail-title { font-size: 16px; }
  .tl-entries li { grid-template-columns: 72px minmax(0, 1fr); }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

/* ---------- 文案工作台 ---------- */
.confirm-topic { border: 1px solid var(--line-soft); background: var(--panel-2); border-radius: 9px; padding: 12px; margin-bottom: 12px; }
.confirm-title { font-size: 14px; font-weight: 600; line-height: 1.55; margin-bottom: 5px; }
.confirm-meta { font-size: 11px; color: var(--muted); line-height: 1.6; }
.confirm-text { font-size: 12.5px; line-height: 1.8; color: var(--text-dim); margin: 0 0 16px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }

.studio-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.studio-title { flex: 1; min-width: 240px; }
.studio-title h2 { margin: 3px 0 0; font-size: 20px; line-height: 1.4; font-weight: 650; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr); gap: 13px; align-items: start; }
.studio-chat { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); display: flex; flex-direction: column; height: min(68vh, 720px); min-height: 480px; overflow: hidden; }
.chat-stream { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 94%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.user .chat-bubble { background: rgba(79, 209, 197, .10); border-color: rgba(79, 209, 197, .25); color: var(--text); }
.chat-msg.assistant { align-self: flex-start; }
.chat-author { font: 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.chat-bubble { border: 1px solid var(--line-soft); background: var(--panel-2); border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.75; color: var(--text-dim); }
.chat-bubble.error { color: var(--danger); border-color: rgba(248, 113, 113, .3); }
.chat-bubble.scripts { width: 100%; max-width: 100%; padding: 11px; }
.script-pack-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); margin-bottom: 9px; }
.script-list { display: flex; flex-direction: column; gap: 8px; }
.script-card { border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .015); border-radius: 9px; padding: 10px 11px; }
.script-angle { display: flex; gap: 6px; align-items: center; font-size: 10.5px; color: var(--accent); margin-bottom: 5px; }
.script-angle span { font: 10px/1 var(--mono); color: var(--muted-2); }
.script-card h4 { margin: 0 0 5px; font-size: 13.5px; line-height: 1.5; color: var(--text); font-weight: 600; }
.script-card p { margin: 0 0 6px; font-size: 12px; line-height: 1.9; color: var(--text-dim); }
.script-cta { font-size: 11.5px; line-height: 1.7; color: var(--accent); }
.script-cover { font-size: 10.5px; color: var(--muted-2); margin-top: 5px; }
.script-cover b { color: var(--text-dim); font-weight: 600; }
.script-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.script-tags span { font-size: 9.5px; line-height: 1.5; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 5px; }
.script-card-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.chat-form { display: flex; gap: 7px; padding: 10px; border-top: 1px solid var(--line-soft); background: var(--panel); }
.chat-form .input { flex: 1; }
.chat-hint { padding: 0 12px 10px; font-size: 10px; color: var(--muted-2); line-height: 1.5; }
.studio-side { display: flex; flex-direction: column; gap: 9px; }
.studio-photo { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; border: 1px solid var(--line-soft); background: linear-gradient(135deg, var(--c1), var(--c2)); background-size: cover; background-position: center; overflow: hidden; }
.studio-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .55)); }
.studio-photo span { position: absolute; left: 9px; bottom: 7px; z-index: 1; font-size: 10px; letter-spacing: .06em; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.studio-side-block { border: 1px solid var(--line-soft); background: var(--panel); border-radius: 9px; padding: 10px 11px; }
.studio-summary { margin: 0; font-size: 11.5px; line-height: 1.75; color: var(--muted); max-height: 150px; overflow: auto; }

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-chat { height: 62vh; min-height: 420px; }
  .studio-side { order: -1; }
  .studio-photo { display: none; }
}

/* ---------- 文案智能体 ---------- */
.agent-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 12px; }
.agent-card { border: 1px solid var(--line-soft); background: var(--panel); border-radius: 11px; padding: 13px 14px; }
.agent-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.agent-card-head h3 { margin: 0; font-size: 12px; letter-spacing: .04em; color: var(--text-dim); }
.agent-textarea { width: 100%; min-height: 170px; resize: vertical; font-family: inherit; font-size: 12px; line-height: 1.7; margin: 8px 0; }
.agent-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 12px; }
.agent-stats > div { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 7px; padding: 7px 8px; }
.agent-stats b { display: block; font: 650 15px/1.2 var(--mono); color: var(--accent); }
.agent-stats span { font-size: 9.5px; color: var(--muted-2); }
.memory-block { margin-top: 9px; }
.memory-label { font-size: 9.5px; color: var(--muted-2); letter-spacing: .06em; margin-bottom: 4px; }
.memory-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.memory-chips span { font-size: 9.5px; line-height: 1.6; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 4px; padding: 0 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.memory-chips.avoid span { color: rgba(248, 113, 113, .75); border-color: rgba(248, 113, 113, .18); }
.agent-chat { height: min(52vh, 560px); min-height: 360px; }
.agent-chat .chat-bubble { max-width: 100%; white-space: normal; }

@media (max-width: 900px) {
  .agent-grid { grid-template-columns: 1fr; }
}

/* ---------- 自动剪辑 ---------- */

.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.editor-head h2 { margin: 2px 0 0; font-size: 20px; }
.editor-head-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.editor-grid { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(360px, 1.25fr) minmax(280px, .9fr); gap: 10px; align-items: start; }
.editor-panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--card-shadow); padding: 13px 14px; min-width: 0; }
.editor-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.editor-panel-head h3 { margin: 0; font-size: 11px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.editor-panel-head span { font-size: 10px; color: var(--muted-2); text-align: right; }
.editor-textarea { width: 100%; min-height: 330px; resize: vertical; font-family: inherit; font-size: 12.5px; line-height: 1.8; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--text); outline: none; }
.editor-textarea:focus { border-color: var(--accent); }
.editor-script-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 10px; color: var(--muted-2); }
.editor-root-row { display: flex; gap: 6px; }
.editor-root-row .input { flex: 1; min-width: 0; font-size: 11px; }
.editor-tools { font-size: 10px; color: var(--muted-2); margin: 6px 0 8px; }
.editor-ffmpeg-help { font-size: 10px; line-height: 1.65; color: var(--muted); background: var(--panel-2); border: 1px dashed var(--line); border-radius: 7px; padding: 7px 9px; margin-bottom: 8px; }
.editor-ffmpeg-help code { font-family: var(--mono); font-size: 9.5px; background: var(--panel-3); border-radius: 3px; padding: 1px 4px; }
.editor-media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 7px; max-height: 380px; overflow: auto; padding-right: 2px; }
.media-card { display: flex; flex-direction: column; gap: 5px; padding: 5px; border: 1px solid var(--line-soft); background: var(--panel-2); border-radius: 9px; text-align: left; overflow: hidden; }
.media-card:hover { border-color: var(--accent); }
.media-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-dim); }
.media-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #1f3b4d, #0f766e); display: grid; place-items: center; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb.video { background: linear-gradient(135deg, #172a3a, #234b5f); }
.media-play { font-size: 18px; color: rgba(255,255,255,.85); }
.media-order { position: absolute; right: 4px; top: 4px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 9px/17px var(--mono); text-align: center; padding: 0 4px; }
.media-meta { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.media-meta b { font-size: 10px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta small { font-size: 9px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-meta span { font-size: 9px; color: var(--muted-2); }
.editor-phone { width: min(240px, 100%); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 16px; background: #0b141c; border: 1px solid var(--line); overflow: hidden; position: relative; }
.editor-phone-inner { position: absolute; inset: 0; background: linear-gradient(135deg, #16202c, #0e151e); }
.editor-phone-inner img, .editor-phone-inner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.editor-subtitle { position: absolute; left: 10px; right: 10px; bottom: 42px; z-index: 1; color: #fff; font-size: 12px; line-height: 1.5; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.9); background: linear-gradient(180deg, transparent, rgba(0,0,0,.5)); padding: 10px 6px 6px; border-radius: 6px; max-height: 40%; overflow: hidden; }
.editor-phone-badge { position: absolute; right: 8px; top: 8px; z-index: 1; font: 9px/1 var(--mono); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 3px 5px; }
.editor-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 11px; text-align: center; padding: 20px; }
.editor-preview-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.editor-timeline-panel { margin-top: 10px; }
.editor-manual-panel { margin-top: 10px; }
.manual-list { display: flex; flex-direction: column; gap: 5px; }
.manual-row { display: grid; grid-template-columns: 24px 120px 70px minmax(0, 1fr) 116px; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel-2); }
.manual-order { font: 650 10px/1 var(--mono); color: var(--accent); }
.manual-media { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.manual-media b { font-size: 10.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manual-media small { font-size: 9px; color: var(--muted-2); }
.manual-dur { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--muted-2); white-space: nowrap; }
.manual-dur .input { width: 52px; padding: 4px 5px; font-size: 10px; }
.manual-text { width: 100%; min-height: 38px; resize: vertical; font-size: 10.5px; line-height: 1.5; padding: 5px 7px; }
.manual-actions { display: flex; gap: 3px; justify-content: flex-end; }
.manual-actions .btn { padding: 2px 5px; }
@media (max-width: 1100px) {
  .manual-row { grid-template-columns: 22px 90px 60px minmax(0, 1fr); }
  .manual-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 720px) {
  .manual-row { grid-template-columns: 22px minmax(0, 1fr) 60px; }
  .manual-text { grid-column: 2 / -1; }
  .manual-actions { grid-column: 1 / -1; }
}
.editor-timeline-list { display: flex; flex-direction: column; gap: 5px; }
.editor-seg { display: grid; grid-template-columns: 78px minmax(0, 1fr) 48px; gap: 9px; align-items: start; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel-2); }
.editor-seg-time { display: flex; flex-direction: column; gap: 1px; font-family: var(--mono); font-size: 9.5px; color: var(--accent); }
.editor-seg-time span { color: var(--muted-2); }
.editor-seg-main { min-width: 0; }
.editor-seg-title { font-size: 10px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-seg-title span { color: var(--accent); margin-left: 4px; }
.editor-seg-main p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--text-dim); }
.editor-seg-dur { font: 10px/1.4 var(--mono); color: var(--muted-2); text-align: right; }
.editor-downloads { display: flex; gap: 5px; flex-wrap: wrap; }
.editor-warnings { margin-top: 9px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; font-size: 10.5px; line-height: 1.7; color: var(--muted-2); }
.editor-hint { padding: 18px 10px; text-align: center; font-size: 11px; color: var(--muted-2); }

/* ---------- 美超智影 AI 素材生成 ---------- */
.meichao-panel { margin-top: 10px; }
.meichao-online { color: #0f9d8b !important; }
.meichao-offline { color: #c2410c !important; }
.meichao-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 12px; align-items: stretch; }
.meichao-form { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.meichao-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.meichao-row .select { width: auto; min-width: 104px; font-size: 11px; }
.meichao-size { font-size: 10px; color: var(--muted-2); margin-left: auto; font-family: var(--mono); }
.meichao-prompt { min-height: 92px; resize: vertical; font-size: 11.5px; line-height: 1.65; }
.meichao-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.meichao-check { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--muted-2); cursor: pointer; }
.meichao-error { font-size: 10px; line-height: 1.5; color: #c2410c; min-height: 0; }
.meichao-error:empty { display: none; }
.meichao-jobs { min-width: 0; max-height: 250px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.meichao-job { border: 1px solid var(--line-soft); background: var(--panel-2); border-radius: 9px; padding: 7px 9px; }
.meichao-job-head { display: flex; align-items: center; gap: 6px; }
.meichao-job-head b { font-size: 10.5px; color: var(--text-dim); }
.meichao-job-head small { margin-left: auto; font-size: 9px; color: var(--muted-2); font-family: var(--mono); }
.meichao-badge { font-size: 9px; border-radius: 999px; padding: 1px 6px; background: var(--panel-3); color: var(--muted); }
.meichao-badge.queued, .meichao-badge.submitting { background: rgba(217, 119, 6, .12); color: #b45309; }
.meichao-badge.in_progress { background: rgba(13, 148, 136, .12); color: #0f766e; }
.meichao-badge.completed { background: rgba(22, 163, 74, .12); color: #15803d; }
.meichao-badge.failed, .meichao-badge.cancelled { background: rgba(220, 38, 38, .12); color: #b91c1c; }
.meichao-queue { font-size: 9px; color: var(--muted-2); }
.meichao-job p { margin: 4px 0 5px; font-size: 10.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meichao-progress { height: 3px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 5px 0 3px; }
.meichao-progress i { display: block; height: 100%; background: linear-gradient(90deg, #14b8a6, #0ea5e9); transition: width .4s ease; }
.meichao-job-actions { display: flex; gap: 5px; justify-content: flex-end; margin-top: 4px; }
.meichao-job-actions:empty { display: none; }
@media (max-width: 900px) {
  .meichao-grid { grid-template-columns: 1fr; }
  .meichao-jobs { max-height: 200px; }
}
@media (max-width: 1100px) {
  .editor-grid { grid-template-columns: 1fr 1fr; }
  .editor-script-panel { grid-column: 1 / -1; }
  .editor-textarea { min-height: 160px; }
}
@media (max-width: 720px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-script-panel { grid-column: auto; }
  .editor-head { flex-direction: column; }
  .editor-media-list { max-height: 300px; }
  .editor-seg { grid-template-columns: 62px minmax(0, 1fr) 40px; }
}

/* ---------- 浅色主题细节 ---------- */

[data-theme="light"] .topbar { background: rgba(255, 255, 255, .92); }
[data-theme="light"] .btn:hover { border-color: var(--accent); background: var(--panel-3); }
[data-theme="light"] .btn.primary {
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  color: #ffffff;
}
[data-theme="light"] .btn.primary:hover { color: #ffffff; filter: brightness(1.04); }
[data-theme="light"] .tab:hover { background: rgba(15, 23, 42, .04); }
[data-theme="light"] .countdown { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
[data-theme="light"] .section-head h2 { color: var(--text); }
[data-theme="light"] .track-card { background: #ffffff; }
[data-theme="light"] .topic:hover { background: #ffffff; }
[data-theme="light"] .topic h3 { color: #0f172a; }
[data-theme="light"] .topic .summary { color: #64748b; }
[data-theme="light"] .chip { background: #f8fafc; }
[data-theme="light"] .tag { background: #f1f5f9; }
[data-theme="light"] .empty { background: #fbfdff; }
[data-theme="light"] .bd-bar { background: #eef2f7; }
[data-theme="light"] .toast { background: #ffffff; box-shadow: 0 10px 28px rgba(15, 23, 42, .12); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   2026 首页升级：编辑部式的信息层级 + 更轻的首屏
   ============================================================ */

[data-theme="light"] {
  --bg: #f6f7f4;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #fbfcfa;
  --panel-3: #f1f4ef;
  --line: #e3e7e0;
  --line-soft: #edf0ea;
  --text: #0b1220;
  --text-dim: #263244;
  --muted: #5f6b7a;
  --muted-2: #65707d;
  --accent: #0f766e;
  --accent-dim: rgba(15, 118, 110, .08);
  --accent-2: #b45309;
  --radius: 16px;
  --shadow: 0 28px 70px rgba(15, 23, 42, .10);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 14px 34px rgba(15, 23, 42, .045);
}

[data-theme="light"] body {
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(15, 118, 110, .09), transparent 62%),
    radial-gradient(800px 420px at 4% -8%, rgba(180, 83, 9, .045), transparent 58%),
    linear-gradient(180deg, #f8f9f6 0%, #f6f7f4 36%, #f6f7f4 100%);
}

main { padding-top: 26px; padding-bottom: 72px; }

/* ---------- 顶栏 ---------- */

.topbar-inner { padding-top: 15px; padding-bottom: 11px; }
.brand { gap: 13px; }
.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, #0b1220 8%, #0f3f3b 56%, #0f766e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 5px 16px rgba(15, 118, 110, .22);
}
.logo::before { background-size: 6px 6px; opacity: .55; }
.logo::after {
  content: "TR";
  font: 700 11px/1 var(--mono);
  letter-spacing: .08em;
  color: #d1fae5;
}
.brand h1 { font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.brand .sub { font-size: 10.5px; margin-top: 2px; }
[data-theme="light"] .brand .sub { color: #788493; }
[data-theme="light"] .topbar {
  background: rgba(248, 249, 246, .88);
  border-bottom: 1px solid rgba(227, 231, 224, .9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.countdown {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.countdown-label { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.countdown b { font-size: 12px; }

.btn {
  border-radius: 10px;
  border-color: var(--line);
  background: var(--panel);
  color: var(--text-dim);
  padding: 8px 13px;
  font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.btn:hover { border-color: var(--accent); color: var(--text); background: var(--panel); }
.btn.small { padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
[data-theme="light"] .btn.primary {
  background: #0b1220;
  border-color: #0b1220;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(11, 18, 32, .16);
}
[data-theme="light"] .btn.primary:hover { background: #16233a; border-color: #16233a; color: #ffffff; filter: none; }

.nav-row { padding-bottom: 10px; }
.tabs { gap: 4px; }
.tab {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  border: 1px solid transparent;
}
.tab:hover { color: var(--text); background: rgba(15, 23, 42, .035); }
[data-theme="light"] .tab.active {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line-soft);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.tab.active::after { display: none; }
.stats-strip { gap: 0; max-width: 54%; }
.stat { gap: 5px; padding: 0 13px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-size: 12.5px; }
.stat span { font-size: 10px; letter-spacing: .03em; }

/* ---------- 首页工具栏 ---------- */

.home-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 6px 2px 18px;
}
.home-eyebrow {
  font: 600 9.5px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.home-toolbar h2 {
  margin: 7px 0 4px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 750;
  color: var(--text);
}
.home-toolbar p { margin: 0; font-size: 12.5px; color: var(--muted); }
.home-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.home-toolbar .field { font-size: 10.5px; gap: 5px; }
.home-toolbar .select { background: var(--panel); border-color: var(--line-soft); border-radius: 9px; padding: 6px 9px; font-size: 11.5px; }
.home-total {
  font-size: 10.5px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 11px;
  white-space: nowrap;
}
.home-total b { color: var(--text); font: 650 12px/1 var(--mono); }

/* ---------- 数据条 ---------- */

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(240px, 1.25fr);
  gap: 0;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 4px 18px;
  box-shadow: var(--card-shadow);
  margin-bottom: 14px;
}
.hm-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--line-soft);
}
.hm-item:last-of-type { border-right: 0; }
.hm-item span { font-size: 10px; letter-spacing: .06em; color: var(--muted-2); text-transform: uppercase; }
.hm-item b { font: 650 25px/1 var(--mono); color: var(--text); letter-spacing: -.03em; }
.hm-item small { font: 400 10px/1 var(--sans); color: var(--muted-2); margin-left: 2px; }
.hm-note { display: flex; flex-direction: column; gap: 5px; border-left: 1px solid var(--line-soft); padding: 8px 0 8px 18px; }
.hm-note p { margin: 0; font-size: 10.5px; color: var(--muted-2); }
.hm-fresh { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.hm-fresh i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.hm-fresh.is-live { color: var(--ok); }
.hm-fresh.is-live i { background: var(--ok); box-shadow: 0 0 0 4px rgba(21, 128, 61, .10); animation: homePulse 2.4s infinite; }

/* ---------- 主视觉 ---------- */

.home-lead { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(330px, .82fr); gap: 14px; align-items: stretch; }
.home-hero {
  position: relative;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
  box-shadow: 0 30px 70px rgba(11, 18, 32, .18);
  isolation: isolate;
}
.home-hero-bg { position: absolute; inset: 0; }
.home-hero-bg .topic-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
.home-hero-bg .topic-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.78) contrast(1.04); }
.home-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #0b1220 0%, rgba(11, 18, 32, .97) 34%, rgba(11, 18, 32, .78) 55%, rgba(11, 18, 32, .28) 82%, rgba(11, 18, 32, .12) 100%),
    linear-gradient(0deg, rgba(11, 18, 32, .85) 0%, rgba(11, 18, 32, .1) 55%, transparent 100%);
}
.home-hero:not(.has-image) .home-hero-shade {
  background:
    radial-gradient(900px 420px at 80% 0%, rgba(15, 118, 110, .42), transparent 60%),
    linear-gradient(135deg, #0b1220, #101f2e);
}
.home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, 68%);
  min-height: 420px;
  padding: 30px 32px 28px;
  display: flex;
  flex-direction: column;
}
.home-hero-kicker { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: #7dd3fc; text-transform: uppercase; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 4px rgba(45, 212, 191, .14); animation: homePulse 2.2s infinite; }
.home-hero-kicker-en { color: rgba(255, 255, 255, .4); font-weight: 500; letter-spacing: .16em; margin-left: 4px; }
.home-hero-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; font-size: 11px; color: rgba(255, 255, 255, .7); }
.home-hero-track { color: #99f6e4; background: rgba(45, 212, 191, .12); border: 1px solid rgba(45, 212, 191, .22); border-radius: 999px; padding: 2px 8px; font-weight: 600; }
.home-glass-chip { color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 1px 7px; font-size: 10px; }
.home-hero .verify-chip { background: rgba(11, 18, 32, .55); border-color: rgba(255, 255, 255, .2); color: #d1fae5; backdrop-filter: blur(6px); }
.home-hero h2 { margin: 14px 0 0; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.32; letter-spacing: -.03em; font-weight: 750; color: #fff; text-wrap: balance; max-width: 660px; }
.home-hero h2 a:hover { color: #99f6e4; }
.home-hero-summary { margin: 12px 0 0; max-width: 620px; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .66); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-hero-dims { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 520px; margin-top: 20px; }
.home-hero-dim { display: flex; flex-direction: column; gap: 4px; }
.home-hero-dim span { font-size: 9.5px; color: rgba(255, 255, 255, .42); }
.home-hero-dim b { font: 650 12px/1 var(--mono); color: rgba(255, 255, 255, .86); }
.home-hero-dim i { height: 3px; border-radius: 9px; background: rgba(255, 255, 255, .13); overflow: hidden; }
.home-hero-dim em { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #2dd4bf, #60a5fa); }
.home-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 22px; }
.home-hero-score {
  --p: 0;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(#2dd4bf calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: none;
}
.home-hero-score::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #0b1220; }
.home-hero-score b { position: relative; font: 700 19px/1 var(--mono); color: #fff; }
.home-hero-score span { position: relative; font-size: 8.5px; color: rgba(255, 255, 255, .5); margin-top: 2px; }
.home-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.home-hero .btn.primary { background: #fff; color: #0b1220; border-color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.home-hero .btn.primary:hover { background: #e6fffb; color: #0b1220; }
.home-hero .btn.ghost { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .82); border-color: rgba(255, 255, 255, .18); }
.home-hero .btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .36); }

/* ---------- 备选信号 ---------- */

.home-picks { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.home-picks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 2px 0; }
.home-picks-head span { font-size: 11px; font-weight: 650; color: var(--text); letter-spacing: .02em; }
.home-picks-head b { font: 500 8.5px/1 var(--mono); letter-spacing: .12em; color: var(--muted-2); }
.home-pick {
  flex: 1;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.home-pick::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: transparent; transition: background .18s; }
.home-pick:hover { transform: translateY(-2px); border-color: #cfd8d0; box-shadow: 0 16px 36px rgba(15, 23, 42, .08); }
.home-pick:hover::before { background: var(--accent); }
.home-pick-rank { font: 650 10px/1.4 var(--mono); color: var(--accent); padding-top: 2px; }
.home-pick-main { min-width: 0; display: flex; flex-direction: column; }
.home-pick-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 9.5px; color: var(--muted-2); }
.home-pick-track { color: var(--accent); font-weight: 650; }
.home-pick h3 { margin: 4px 0 7px; font-size: 13px; line-height: 1.5; font-weight: 650; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-pick h3 a:hover { color: var(--accent); }
.home-pick-foot { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 2px; }
.home-pick-score b { font: 650 15px/1 var(--mono); color: var(--text); }
.home-pick-score small { font-size: 9px; color: var(--muted); margin-left: 2px; }
.home-pick-pub { font-size: 9.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.home-pick-cta { border: 0; background: none; color: var(--accent); font-size: 10px; font-weight: 650; padding: 0; white-space: nowrap; }
.home-pick-cta:hover { color: var(--text); }

/* ---------- 区块标题 ---------- */

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}
.home-section-kicker { display: block; font: 600 8.5px/1.4 var(--mono); letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.home-section-head h2 { margin: 0; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; font-weight: 750; color: var(--text); }
.home-section-hint { font-size: 10.5px; color: var(--muted-2); }
.home-sort { display: flex; align-items: center; gap: 10px; }
.home-sort .hint { font-size: 10px; color: var(--muted-2); }

/* ---------- 赛道脉搏 ---------- */

.home-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.home-track {
  --tc: #0f766e;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 14px 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.home-track::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--tc); opacity: .8; }
.home-track:hover { transform: translateY(-2px); border-color: var(--tc); box-shadow: 0 16px 34px rgba(15, 23, 42, .08); }
.home-track-top { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.home-track-no { font: 650 9.5px/1 var(--mono); color: var(--muted-2); }
.home-track-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 12%, transparent); }
.home-track-name { font-size: 12.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-track-count { font: 650 20px/1 var(--mono); color: var(--text); letter-spacing: -.03em; }
.home-track-count small { font: 400 9px/1 var(--sans); color: var(--muted-2); margin-left: 2px; }
.home-track-meter { height: 3px; border-radius: 9px; background: var(--panel-3); overflow: hidden; }
.home-track-meter i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #7dd3fc)); }
.home-track-stats { display: flex; align-items: center; gap: 10px; font-size: 9.5px; color: var(--muted-2); }
.home-track-stats b { color: var(--text-dim); font-family: var(--mono); font-weight: 600; }
.home-track-headline { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 11px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }

/* ---------- 本轮高分 ---------- */

.home-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-story {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.home-story:hover { transform: translateY(-3px); border-color: #cfd8d0; box-shadow: 0 20px 42px rgba(15, 23, 42, .09); }
.home-story-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.home-story-media .topic-thumb { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: transparent; z-index: 1; }
.home-story-fallback { z-index: 0; }
.home-story-media .topic-thumb img { transition: transform .5s ease; filter: saturate(.94) contrast(1.02); }
.home-story:hover .home-story-media .topic-thumb img { transform: scale(1.025); }
.home-story-score { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; align-items: baseline; gap: 4px; padding: 5px 8px; border-radius: 9px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.home-story-score b { font: 700 15px/1 var(--mono); color: #0b1220; }
.home-story-score small { font: 650 9px/1 var(--sans); color: #0f766e; }
.home-story-hot { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: 9px; font-weight: 650; color: #064e3b; background: rgba(209, 250, 229, .94); border-radius: 999px; padding: 3px 8px; backdrop-filter: blur(6px); }
.home-story-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 280px at 84% 8%, color-mix(in srgb, var(--tc) 58%, transparent), transparent 66%),
    linear-gradient(135deg, #0b1220 0%, #101f2e 58%, #0b1220 100%);
  overflow: hidden;
}
.home-story-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 72% 26%, #000 0%, transparent 76%);
  opacity: .9;
}
.home-story-fallback::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -70px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent);
  box-shadow: 0 0 0 28px color-mix(in srgb, var(--tc) 8%, transparent);
  opacity: .75;
}
.hsf-kicker { position: absolute; left: 16px; top: 14px; z-index: 1; font: 600 9px/1.4 var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .5); text-transform: uppercase; }
.hsf-line { position: absolute; left: 16px; bottom: 52px; z-index: 1; width: 46px; height: 2px; border-radius: 2px; background: var(--tc); opacity: .95; }
.hsf-no { position: absolute; right: 12px; bottom: 0; z-index: 1; font: 700 82px/1 var(--mono); letter-spacing: -.09em; color: rgba(255, 255, 255, .2); }
.hsf-title { position: absolute; left: 16px; bottom: 28px; z-index: 1; font-size: 18px; font-weight: 650; letter-spacing: -.02em; color: rgba(255, 255, 255, .94); }
.hsf-meta { position: absolute; left: 16px; bottom: 12px; z-index: 1; font: 500 8px/1.2 var(--mono); letter-spacing: .12em; color: rgba(255, 255, 255, .38); }
.home-hero-bg .thumb-fallback { display: none; }
.home-story-body { padding: 14px 16px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.home-story-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 9.5px; color: var(--muted-2); }
.home-story-track { color: var(--accent); font-weight: 650; }
.home-story h3 { margin: 0; font-size: 15.5px; line-height: 1.5; font-weight: 650; letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-story h3 a:hover { color: var(--accent); }
.home-story p { margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-story-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.home-story-dims { display: flex; gap: 8px; font-size: 9px; color: var(--muted-2); }
.home-story-dims b { color: var(--text-dim); font-family: var(--mono); font-weight: 600; }
.home-story-actions { display: flex; align-items: center; gap: 9px; }
.home-story-detail { border: 0; background: none; padding: 0; font-size: 10px; color: var(--muted); }
.home-story-detail:hover { color: var(--text); }
.home-story-cta { border: 0; background: none; padding: 0; font-size: 10.5px; font-weight: 650; color: var(--accent); }
.home-story-cta span { display: inline-block; transition: transform .18s; }
.home-story-cta:hover span { transform: translateX(2px); }
.home-more { display: flex; justify-content: center; margin: 26px 0 6px; }
.home-more .btn { border-radius: 999px; padding: 9px 18px; }

/* ---------- 手动剪辑工作台 ---------- */

.cut-studio { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(250px, 300px); gap: 10px; align-items: stretch; }
.cut-panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--card-shadow); min-width: 0; }
.cut-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line-soft); }
.cut-panel-head h3 { margin: 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cut-panel-head span { font-size: 9.5px; color: var(--muted-2); }

.cut-media-panel { display: flex; flex-direction: column; min-height: 560px; }
.cut-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; overflow: auto; max-height: 500px; align-content: start; }
.cut-media-card { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; text-align: left; min-width: 0; }
.cut-media-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: linear-gradient(135deg, #134e4a, #0b1220); display: grid; place-items: center; }
.cut-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cut-media-thumb.video { background: linear-gradient(135deg, #172a3a, #0f766e); }
.cut-film-icon { color: rgba(255, 255, 255, .85); font-size: 16px; }
.cut-add-badge { position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #0b1220; font: 700 12px/18px var(--sans); text-align: center; opacity: 0; transition: opacity .15s; }
.cut-media-card:hover .cut-add-badge { opacity: 1; }
.cut-media-card b { font-size: 9.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut-media-card small { font-size: 8.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut-media-foot { margin-top: auto; padding: 8px; border-top: 1px solid var(--line-soft); display: flex; gap: 6px; flex-wrap: wrap; }

.cut-stage-panel { display: flex; flex-direction: column; padding: 0 12px 10px; min-height: 560px; }
.cut-stage-panel .cut-panel-head { margin: 0 -12px; flex: none; }
.cut-screen-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px 0; min-height: 0; }
.cut-screen { position: relative; width: min(250px, 100%); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0b1220; box-shadow: 0 10px 30px rgba(11, 18, 32, .2); }
.cut-screen.ratio-16-9 { width: min(460px, 100%); aspect-ratio: 16 / 9; }
.cut-screen.ratio-1-1 { width: min(350px, 100%); aspect-ratio: 1 / 1; }
.cut-screen img, .cut-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cut-screen-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .5); font-size: 11px; padding: 20px; }
.cut-subtitle { position: absolute; left: 8%; right: 8%; z-index: 2; text-align: center; color: #fff; font-size: 12px; line-height: 1.45; background: rgba(0, 0, 0, .45); border-radius: 5px; padding: 5px 7px; text-shadow: 0 1px 3px #000; }
.cut-subtitle:empty { display: none; }
.cut-subtitle.pos-bottom { bottom: 8%; }
.cut-subtitle.pos-middle { top: 50%; transform: translateY(-50%); }
.cut-subtitle.pos-top { top: 10%; }
.cut-screen-badge { position: absolute; right: 7px; top: 7px; z-index: 2; font: 9px/1 var(--mono); color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; padding: 3px 5px; background: rgba(0, 0, 0, .3); }
.cut-transport { display: flex; align-items: center; gap: 6px; padding: 2px 0 7px; }
.cut-transport-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text-dim); display: grid; place-items: center; font-size: 11px; }
.cut-transport-btn:hover { border-color: var(--accent); color: var(--text); }
.cut-play-btn { width: 34px; height: 34px; background: #0b1220; color: #fff; border-color: #0b1220; }
.cut-timecode { margin-left: auto; font: 10px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.cut-progress { height: 4px; border-radius: 9px; background: var(--panel-3); overflow: hidden; cursor: pointer; }
.cut-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #38bdf8); transition: width .08s linear; }
.cut-stage-hint { margin-top: 7px; font-size: 9px; color: var(--muted-2); text-align: right; }

.cut-inspector-panel { display: flex; flex-direction: column; }
.cut-inspector-body { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.cut-selected-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cut-selected-title b { font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut-selected-title span { font-size: 8.5px; color: var(--accent); border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 6px; }
.cut-field { display: flex; flex-direction: column; gap: 4px; font-size: 9.5px; color: var(--muted-2); margin-bottom: 7px; }
.cut-field .input, .cut-field .select { width: 100%; font-size: 10.5px; padding: 5px 7px; border-radius: 7px; background: var(--panel-2); }
.cut-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cut-textarea { min-height: 62px; resize: vertical; line-height: 1.5; }
.cut-inspector-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.cut-inspector-actions .btn { padding: 3px 7px; font-size: 9.5px; }
.cut-clip-time { margin-top: 7px; font: 9px/1.4 var(--mono); color: var(--muted-2); }
.cut-project { margin-top: auto; padding: 10px 12px; background: var(--panel-2); border-top: 1px solid var(--line-soft); }
.cut-project-head { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.cut-project-head b { font: 500 8px/1 var(--mono); color: var(--muted-2); }
.cut-range { flex-direction: row; align-items: center; gap: 6px; }
.cut-range input[type="range"] { flex: 1; accent-color: var(--accent); }
.cut-range span { font: 9px/1 var(--mono); color: var(--text-dim); min-width: 28px; text-align: right; }
.cut-project-note { font-size: 8.5px; line-height: 1.5; color: var(--muted-2); }
.cut-empty-small { padding: 18px 8px; text-align: center; font-size: 10px; color: var(--muted-2); line-height: 1.6; }

.cut-timeline-panel { margin-top: 10px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--card-shadow); padding: 10px 12px 12px; }
.cut-timeline-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cut-tool-group { display: flex; align-items: center; gap: 3px; }
.cut-tool { border: 1px solid var(--line-soft); background: var(--panel-2); color: var(--text-dim); border-radius: 6px; padding: 4px 7px; font-size: 9.5px; line-height: 1.2; }
.cut-tool:hover { border-color: var(--accent); color: var(--text); }
.cut-tool:disabled { opacity: .4; cursor: not-allowed; }
.cut-tool.danger { color: var(--danger); }
.cut-sep { width: 1px; height: 16px; background: var(--line-soft); margin: 0 3px; }
.cut-zoom { font: 9px/1 var(--mono); color: var(--muted-2); min-width: 40px; text-align: center; }
.cut-save-state { margin-left: auto; font-size: 8.5px; color: var(--muted-2); }
.cut-timeline-scroll { overflow-x: auto; overflow-y: hidden; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 9px; }
.cut-timeline-content { position: relative; padding: 6px 10px 8px; }
.cut-ruler { position: relative; height: 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cut-tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--line-soft); }
.cut-tick b { position: absolute; left: 3px; top: 2px; font: 8px/1 var(--mono); color: var(--muted-2); font-weight: 400; white-space: nowrap; }
.cut-track { position: relative; height: 78px; margin-top: 6px; border-radius: 7px; background: var(--panel-3); cursor: pointer; }
.cut-clip { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: linear-gradient(135deg, #0f3f3b, #0b1220); cursor: grab; user-select: none; }
.cut-clip.video { background: linear-gradient(135deg, #123f4a, #0b1220); }
.cut-clip.image { background: #0b1220; }
.cut-clip.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.cut-clip.dragging { opacity: .5; }
.cut-clip-thumb { position: absolute; inset: 0; opacity: .42; }
.cut-clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cut-clip-kind { position: absolute; left: 5px; top: 5px; font: 8px/1 var(--mono); color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; padding: 2px 4px; }
.cut-clip-copy { position: relative; z-index: 1; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; min-width: 0; pointer-events: none; }
.cut-clip-copy b { font-size: 9.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut-clip-copy small { font: 8.5px/1 var(--mono); color: rgba(255, 255, 255, .6); }
.cut-clip-text { font-size: 8.5px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut-clip-handle { position: absolute; top: 0; right: 0; bottom: 0; width: 8px; cursor: ew-resize; background: linear-gradient(90deg, transparent, rgba(20, 184, 166, .55)); z-index: 2; }
.cut-playhead { position: absolute; top: -20px; bottom: -6px; width: 2px; background: #f97316; z-index: 4; pointer-events: none; }
.cut-playhead::before { content: ""; position: absolute; top: 0; left: -4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #f97316; }
.cut-subtitle-track { position: relative; height: 24px; margin-top: 4px; border-radius: 5px; background: var(--panel-3); }
.cut-track-label { position: absolute; left: 4px; top: 5px; z-index: 1; font: 8px/1 var(--mono); color: var(--muted-2); }
.cut-sub-chip { position: absolute; top: 4px; height: 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 8.5px; line-height: 16px; color: var(--text-dim); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 3px; padding: 0 4px; }
.cut-timeline-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--muted-2); }
.cut-warnings { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 7px; font-size: 8.5px; color: var(--warn); }

@media (max-width: 1200px) {
  .cut-studio { grid-template-columns: 220px minmax(0, 1fr); }
  .cut-inspector-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cut-studio { grid-template-columns: 1fr; }
  .cut-media-panel { min-height: 0; }
  .cut-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 180px; }
  .cut-stage-panel { min-height: 0; }
  .cut-screen-wrap { padding: 14px 0; }
  .cut-screen { width: min(230px, 80%); }
  .cut-screen.ratio-16-9 { width: 100%; }
  .cut-timeline-toolbar { gap: 5px; }
  .cut-save-state { width: 100%; text-align: right; }
}

/* ---------- 说明页 ---------- */

.help-page { max-width: 1080px; margin: 0 auto; }
.help-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 38px 40px 34px;
  background: #0b1220;
  color: #fff;
  box-shadow: 0 24px 60px rgba(11, 18, 32, .16);
}
.help-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 82% 0%, #000 0%, transparent 72%);
  opacity: .8;
  pointer-events: none;
}
.help-eyebrow { position: relative; font: 600 9.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #7dd3fc; }
.help-hero h2 { position: relative; margin: 10px 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.05em; font-weight: 750; color: #fff; }
.help-lede { position: relative; max-width: 740px; margin: 0; font-size: 13.5px; line-height: 1.85; color: rgba(255, 255, 255, .7); }
.help-hero-meta { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.help-hero-meta span { display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); border-radius: 999px; font-size: 10.5px; color: rgba(255, 255, 255, .62); }
.help-hero-meta b { font: 650 12px/1 var(--mono); color: #fff; }
.help-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.help-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 20px 22px; box-shadow: var(--card-shadow); }
.help-no { font: 650 10px/1 var(--mono); color: var(--accent); }
.help-card h3 { margin: 10px 0 7px; font-size: 16px; letter-spacing: -.02em; }
.help-card p { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.help-section { margin-top: 34px; }
.help-section-head { padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.help-section-head span { display: block; font: 600 8.5px/1.4 var(--mono); letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; }
.help-section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; font-weight: 750; }
.help-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help-col { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 22px 24px; box-shadow: var(--card-shadow); }
.help-col h3 { margin: 0 0 13px; font-size: 13px; color: var(--text); letter-spacing: .02em; }
.help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.help-list li { position: relative; padding-left: 15px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.help-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.help-list b { color: var(--text-dim); font-weight: 650; }
.help-list-muted li::before { background: var(--muted-2); }
.help-iterate { margin-top: 34px; padding: 28px 30px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line-soft)); background: linear-gradient(135deg, var(--accent-dim), var(--panel) 62%); }
.help-iterate h2 { margin: 8px 0 8px; font-size: 24px; letter-spacing: -.03em; font-weight: 750; }
.help-iterate p { margin: 0; max-width: 840px; font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.help-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.help-tags span { font-size: 10px; color: var(--accent); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 5px 9px; }
.help-foot { padding: 24px 4px 4px; text-align: center; font-size: 10.5px; color: var(--muted-2); }

@media (max-width: 760px) {
  .help-hero { padding: 26px 22px; border-radius: 18px; }
  .help-hero h2 { font-size: 31px; }
  .help-values, .help-columns { grid-template-columns: 1fr; }
  .help-col { padding: 18px 18px; }
  .help-iterate { padding: 22px 20px; }
}

/* ---------- 图片占位与渐显 ---------- */

.topic-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.topic-thumb img.is-loaded { opacity: 1; }

/* ---------- 首屏骨架 ---------- */

.home-skeleton { display: flex; flex-direction: column; gap: 14px; }
.home-skeleton-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px 10px; }
.home-skeleton-metrics { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 12px; }
.home-skeleton-lead { display: grid; grid-template-columns: 1.62fr .82fr; gap: 14px; }
.home-skeleton-picks { display: flex; flex-direction: column; gap: 9px; }
.home-skeleton-tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.home-skeleton-stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sk {
  display: block;
  background: linear-gradient(90deg, var(--panel-3) 25%, var(--panel-2) 37%, var(--panel-3) 63%);
  background-size: 400% 100%;
  animation: homeShimmer 1.4s ease infinite;
  border-radius: 10px;
}
[data-theme="light"] .sk { background: linear-gradient(90deg, #eef1eb 25%, #f7f9f5 37%, #eef1eb 63%); background-size: 400% 100%; }
.sk-line { height: 14px; border-radius: 6px; }
.sk-line.w160 { width: 160px; }
.sk-pill { width: 220px; height: 34px; border-radius: 999px; }
.sk-metric { height: 64px; border-radius: 12px; }
.sk-hero { height: 420px; border-radius: 22px; }
.sk-pick { height: 92px; border-radius: 15px; flex: 1; }
.sk-track { height: 132px; border-radius: 16px; }
.sk-story { height: 300px; border-radius: 18px; }
@keyframes homeShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes homePulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .home-lead { grid-template-columns: 1fr; }
  .home-picks { display: grid; grid-template-columns: 1fr 1fr; }
  .home-picks-head { grid-column: 1 / -1; }
  .home-hero-copy { width: min(720px, 78%); }
  .home-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .stats-strip { display: none; }
  .home-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 14px; }
  .hm-item { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
  .hm-item:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-soft); }
  .hm-note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-soft); padding: 10px 0 12px; }
  .home-hero { min-height: 440px; }
  .home-hero-copy { width: 100%; min-height: 440px; }
  .home-hero-shade { background: linear-gradient(180deg, rgba(11, 18, 32, .35) 0%, rgba(11, 18, 32, .86) 55%, #0b1220 100%); }
  .home-stories { grid-template-columns: 1fr; }
  .home-skeleton-metrics { grid-template-columns: repeat(2, 1fr); }
  .home-skeleton-lead { grid-template-columns: 1fr; }
  .home-skeleton-tracks { grid-template-columns: repeat(2, 1fr); }
  .home-skeleton-stories { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar-inner { padding-top: 12px; padding-bottom: 8px; }
  .brand { min-width: 0; }
  .brand h1 { font-size: 14.5px; }
  .brand .sub { display: none; }
  .logo { width: 34px; height: 34px; border-radius: 10px; }
  .logo::after { font-size: 9px; }
  .top-actions { gap: 6px; }
  .top-actions .countdown { display: none; }
  .top-actions .btn { padding: 6px 9px; font-size: 11.5px; }
  .top-actions .btn[data-action="refresh"] { display: none; }
  .top-actions .btn.ghost[data-action="settings"] { display: inline-flex; }
  .nav-row { gap: 8px; }
  .tabs { width: 100%; }
  .tab { padding: 7px 11px; font-size: 12px; }
  .home-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .home-toolbar-actions { width: 100%; justify-content: flex-start; }
  .home-toolbar h2 { font-size: 30px; }
  .top-actions .btn, .home-toolbar .btn, .tab { min-height: 38px; }
  .home-lead { gap: 12px; }
  .home-picks { grid-template-columns: 1fr; }
  .home-hero { min-height: 0; border-radius: 18px; }
  .home-hero-copy { min-height: 0; padding: 22px 20px 20px; }
  .home-hero-foot { margin-top: 18px; padding-top: 0; }
  .home-hero-shade { background: linear-gradient(180deg, rgba(11, 18, 32, .62) 0%, rgba(11, 18, 32, .9) 42%, #0b1220 100%); }
  .home-hero h2 { font-size: 23px; }
  .home-hero-summary { font-size: 12px; -webkit-line-clamp: 2; }
  .home-hero-dims { gap: 7px; }
  .home-hero-foot { flex-wrap: wrap; }
  .home-hero-actions { width: 100%; }
  .home-tracks { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .home-tracks::-webkit-scrollbar { display: none; }
  .home-track { flex: 0 0 78%; scroll-snap-align: start; }
  .home-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .home-sort { width: 100%; justify-content: space-between; }
  .home-section-head h2 { font-size: 20px; }
  .home-section-hint { font-size: 10px; }
  .home-skeleton-tracks { grid-template-columns: 1fr; }
  .home-skeleton-picks { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .shell { padding: 0 14px; }
  .home-toolbar h2 { font-size: 27px; }
  .home-hero { min-height: 0; }
  .home-hero-copy { min-height: 0; }
  .home-hero-dims { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-hero-dims > div:nth-child(4), .home-hero-dims > div:nth-child(5) { display: none; }
  .home-skeleton-picks { grid-template-columns: 1fr; }
  .home-story-body { padding: 12px 14px 13px; }
  .home-story h3 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .sk, .live-dot, .hm-fresh.is-live i { animation: none; }
  .home-pick, .home-track, .home-story, .home-story img { transition: none; }
}
