/* finesse · register=product · sub=ai-console · A=graphite-neutral+single-amber(场记胶带)
 * B=system-sans 600/400 + system-mono tabular · C=narrow-nav+resident-topbar+per-screen-body(工作台三栏)
 * D=feedback-only(one breathing dot · band fill-in · in-place swap) · E=调色室与场记胶带
 * SOUL=6 SPECTACLE=2 DENSITY=7 */

:root {
  /* 中性石墨：几乎不带色相，避免界面底色影响对画面色彩的判断 */
  --page: #111212;
  --bg: #151617;
  --panel: #1a1c1d;
  --panel-2: #202223;
  --panel-3: #282b2c;
  --border: rgba(226, 230, 228, .075);
  --border-2: rgba(226, 230, 228, .14);
  --border-3: rgba(226, 230, 228, .24);
  --ink-1: #e8eae8;
  --ink-2: #b6bab8;
  --ink-3: #9a9f9d;
  --ink-4: #868b89;  /* 小字最暗档：在最深的面板上也 ≥4.5:1 */

  /* 全站唯一主色：场记胶带琥珀 = 偏了，需要你看 */
  --needs: #e3a43c;
  --needs-rgb: 227, 164, 60;
  --needs-hi: #edb455;
  --needs-soft: rgba(227, 164, 60, .13);
  --needs-line: rgba(227, 164, 60, .5);
  --on-needs: #1b1508;
  /* 主按钮：浅灰白填充、深字。琥珀不再用在按钮上 */
  --act: #dfe2e0;
  --act-hi: #f0f2f1;
  --on-act: #141515;
  /* 机器自己处理掉的事：低调灰蓝 */
  --auto: #8a9db0;
  --auto-soft: rgba(138, 157, 176, .14);
  --auto-line: rgba(138, 157, 176, .4);
  --auto-mid: rgba(138, 157, 176, .55);
  --auto-faint: rgba(138, 157, 176, .3);
  /* 人工判定「过」 */
  --ok: #8db59a;
  --ok-soft: rgba(141, 181, 154, .13);
  /* 只有失败才用红 */
  --down: #e56d5f;
  --down-soft: rgba(229, 109, 95, .13);
  --down-line: rgba(229, 109, 95, .4);
  --down-hair: rgba(229, 109, 95, .25);

  /* 中性叠加层：成本里 v1–v3 的三档灰、行悬停、缩略图上的标签底 */
  --veil-1: rgba(226, 230, 228, .16);
  --veil-2: rgba(226, 230, 228, .28);
  --veil-3: rgba(226, 230, 228, .46);
  --row-hover: rgba(226, 230, 228, .025);
  --row-hover-2: rgba(226, 230, 228, .04);
  --scrim: rgba(17, 18, 18, .7);
  --mask: #111212;  /* 遮罩只看透明度，取不透明的页面底色 */

  --hatch: repeating-linear-gradient(135deg, rgba(226, 230, 228, .06) 0 3px, transparent 3px 7px);
  --hatch-needs: repeating-linear-gradient(135deg, rgba(227, 164, 60, .28) 0 3px, transparent 3px 7px);

  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px -40px rgba(0, 0, 0, .85), 0 0 0 1px var(--border-2);
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 4px;
  --nav-w: 196px;
  --top-h: 52px;
  --ease: cubic-bezier(.22, .9, .28, 1);

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow-x: auto; }  /* 低于 min-width 1180 时允许横向滚动，而不是把右侧裁掉 */
body {
  background: var(--page); color: var(--ink-1); font-family: var(--sans);
  font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--veil-3); color: var(--ink-1); }
a { color: inherit; text-decoration: none; }
/* 浏览器默认 bold 是 700，系统字体会跳档；统一 600 */
b, strong, th { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.ic { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 8px; top: -40px; z-index: 100; background: var(--act); color: var(--on-act); padding: 6px 10px; border-radius: var(--r-sm); }
.skip:focus { top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 深色细滚动条：不让系统的浅色滚动条冒出来 */
* { scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }

/* ── 外壳 ──────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); grid-template-rows: var(--top-h) auto minmax(0, 1fr); height: 100vh; min-width: 1180px; }
#nav { grid-row: 1 / 4; background: var(--page); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
#top { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--border); background: var(--bg); min-width: 0; }
#main { grid-column: 2; grid-row: 3; min-height: 0; min-width: 0; overflow: auto; background: var(--bg); }

.brand { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); flex: none; }
.brand b { font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
/* 标志就是一小段漂移带：五格，越往右越深 */
.mk { display: grid; grid-template-columns: repeat(5, 4px); gap: 1.5px; height: 16px; }
.mk i { background: var(--ink-1); border-radius: 1px; }
.mk i:nth-child(1) { opacity: .14; } .mk i:nth-child(2) { opacity: .26; } .mk i:nth-child(3) { opacity: .42; } .mk i:nth-child(4) { opacity: .64; } .mk i:nth-child(5) { opacity: .92; }
.nav-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 8px; }
.nav-grp { font-size: 12px; color: var(--ink-4); padding: 16px 10px 4px; }
.nav-a { display: flex; align-items: center; gap: 8px; height: 32px; margin-bottom: 2px; padding: 0 10px; border-radius: var(--r-sm); color: var(--ink-2); white-space: nowrap; position: relative; }
.nav-a:hover { background: var(--panel); color: var(--ink-1); }
.nav-a.on { background: var(--panel-2); color: var(--ink-1); }
.nav-a.on::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 2px; border-radius: 0 2px 2px 0; background: var(--ink-2); }
.nav-a .ic { color: var(--ink-3); }
.nav-a.on .ic { color: var(--ink-1); }
.nav-a .cnt { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--panel-2); padding: 0 6px; border-radius: var(--r-xs); line-height: 18px; }
.nav-foot { padding: 8px; border-top: 1px solid var(--border); }

.top-l { display: flex; align-items: center; gap: 16px; min-width: 0; }
.proj { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.proj b { font-size: 14px; font-weight: 600; }
.proj span { font-size: 12px; color: var(--ink-3); }
.top-sep { width: 1px; height: 16px; background: var(--border-2); }
.tc { font-size: 14px; color: var(--ink-1); letter-spacing: .02em; }
.top-r { display: flex; align-items: center; gap: 12px; min-width: 0; }
.runstat { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); min-width: 0; white-space: nowrap; }
.runstat .rs-t { overflow: hidden; text-overflow: ellipsis; }
.runstat a:hover { color: var(--ink-1); text-decoration: underline; text-underline-offset: 3px; }
.runstat .rs-m { color: var(--ink-3); font-size: 12px; }
.rs-bar { width: 88px; height: 3px; background: var(--panel-3); border-radius: 2px; overflow: hidden; flex: none; }
.rs-bar i { display: block; height: 100%; background: var(--ink-2); transform-origin: left; transition: transform .9s linear; }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink-4); }
.dot.live { background: var(--auto); animation: breathe 2.4s ease-in-out infinite; }
.dot.stopped { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.dot.idle { background: var(--panel-3); }
/* 漂移带上有呼吸点时，顶栏的点停下：全页只有一处在动 */
body.band-live .dot.live { animation: none; opacity: .75; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ── 按钮 ──────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-sm); background: transparent; border: 1px solid var(--border-3); color: var(--ink-1); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { background: var(--panel-2); border-color: var(--ink-4); }
.btn:active { transform: translateY(.5px); }
.btn.primary { background: var(--act); border-color: transparent; color: var(--on-act); }
.btn.primary:hover { background: var(--act-hi); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--ink-1); }
.btn.danger { color: var(--down); }
.btn.sm { height: 24px; padding: 0 8px; font-size: 12px; gap: 4px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.stop { min-width: 76px; height: 32px; }
.btn.stop:not(:disabled) { border-color: var(--border-3); }
.btn.stop[data-mode="resume"] { background: var(--act); color: var(--on-act); border-color: transparent; }

.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 2px; gap: 2px; }
.seg button { height: 24px; padding: 0 10px; border-radius: var(--r-xs); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.seg button:hover { color: var(--ink-1); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--ink-1); }
.seg.review button[aria-pressed="true"][data-v="pass"] { background: var(--ok-soft); color: var(--ok); }
.seg.review button[aria-pressed="true"][data-v="fix"] { background: var(--needs-soft); color: var(--needs); }
.seg.review button[aria-pressed="true"][data-v="drop"] { background: var(--panel-3); color: var(--ink-2); text-decoration: line-through; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--r-xs); font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--panel-2); color: var(--ink-2); line-height: 1; }
.chip.needs { background: var(--needs-soft); color: var(--needs); }
.chip.auto { background: var(--auto-soft); color: var(--auto); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.down { background: var(--down-soft); color: var(--down); }
.chip.line { background: transparent; box-shadow: inset 0 0 0 1px var(--border-2); color: var(--ink-3); }
.chip.partial { background: var(--hatch-needs); color: var(--needs); box-shadow: inset 0 0 0 1px var(--needs-line); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin: 0 6px 6px 0; border-radius: var(--r-xs); background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* ── 页面骨架 ──────────────────────────────── */
.page { padding: 20px 24px 40px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ph h1 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.ph p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.ph .act { display: flex; gap: 8px; align-items: center; flex: none; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); min-height: 48px; }
.card-h h2 { font-size: 13px; font-weight: 600; }
.card-h .sub { font-size: 12px; color: var(--ink-3); }
.card-h .r { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-b { padding: 12px 16px; }
.grid { display: grid; gap: 16px; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.hint { font-size: 12px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { color: var(--ink-1); }
.empty { padding: 24px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }
.empty b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }

/* ── 画面 ──────────────────────────────────── */
canvas.frame { display: block; width: 100%; aspect-ratio: 2048 / 858; background: var(--panel-2); border-radius: 3px; }
canvas.frame:not([data-drawn]) { background: var(--hatch), var(--panel-2); }

/* ── 漂移带 ────────────────────────────────── */
.tl { position: relative; padding-top: 18px; user-select: none; }
.tl-ruler { position: absolute; left: 0; right: 0; top: 0; height: 18px; }
.tl-tick { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border-2); }
.tl-tick i { position: absolute; left: 4px; top: 1px; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.tl-tick.major i { color: var(--ink-3); }
.tl.compact .tl-tick:not(.half) i { display: none; }
.tl-tick.end { border-left: 0; }
.tl-tick.end i { left: auto; right: 0; }
.tl-band { position: relative; height: 24px; background: var(--panel-2); border-radius: 3px; }
.tl.compact .tl-band { height: 18px; }
.tl-cell { position: absolute; top: 0; bottom: 0; padding: 0; border-right: 1px solid var(--bg); cursor: pointer; overflow: hidden; }
.tl-cell .fill { position: absolute; inset: 0; background: var(--needs); opacity: var(--a); transform-origin: left; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.tl-cell.filling .fill { transform: scaleX(0); opacity: 0; transition: none; }
.tl-cell.is-ref .fill { background: var(--auto-soft); opacity: 1; }
.tl-reflab { position: absolute; left: 0; top: 0; bottom: 0; display: grid; place-items: center; font-size: 11px; color: var(--auto); pointer-events: none; white-space: nowrap; overflow: hidden; }
.tl-cell.is-pending { background: var(--hatch); }
.tl-cell.is-pending .fill, .tl-cell.is-live .fill, .tl-cell.is-stopped .fill { opacity: 0; }
.tl-cell.is-live, .tl-cell.is-stopped { background: var(--hatch); box-shadow: inset 0 -2px 0 var(--needs-line); }
.tl-cell.over::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--needs); z-index: 1; }
.tl-cell:hover { box-shadow: inset 0 0 0 1px var(--border-3); }
.tl-cell.cur { box-shadow: inset 0 0 0 1.5px var(--ink-1); }
.tl-cell:focus-visible { outline-offset: -2px; }
/* 整页唯一的持续动画：正在渲染那一段上的呼吸点 */
.tl-live { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--needs); animation: breathe 2.4s ease-in-out infinite; }
.tl-cell.is-stopped .tl-live { animation: none; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.tl-issues { position: relative; height: 12px; }
.tl-iss { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; padding: 0; background: var(--needs); clip-path: polygon(50% 0, 100% 100%, 0 100%); cursor: pointer; }
.tl-iss:hover { background: var(--ink-1); }
.tl-strip { position: relative; height: 20px; margin-top: 2px; }
.tl-shot { position: absolute; top: 0; bottom: 0; border-right: 1px solid var(--bg); background: var(--panel); text-align: left; overflow: hidden; }
.tl-shot span { position: absolute; left: 4px; bottom: 2px; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.tl-shot.cur { background: var(--panel-3); }
.tl-shot.cur span { color: var(--ink-1); }
.tl-shot:has(.tl-th) { height: auto; }
.tl .tl-strip:has(.tl-th) { height: 36px; }
.tl-th { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; opacity: .78; }
.tl-shot:has(.tl-th) span { color: var(--ink-1); background: var(--scrim); padding: 0 3px; border-radius: 2px; left: 3px; bottom: 3px; }
.tl-play { position: absolute; top: 18px; bottom: 0; border-left: 1.5px solid var(--ink-1); pointer-events: none; }
.tl-tip { position: absolute; bottom: calc(100% + 4px); transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--border-2); color: var(--ink-1); font-size: 12px; padding: 6px 8px; border-radius: var(--r-sm); white-space: nowrap; box-shadow: var(--shadow-lg); z-index: 10; pointer-events: none; max-width: 560px; overflow: hidden; text-overflow: ellipsis; }
.band-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.band-legend .swc { width: 14px; height: 10px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.band-legend .swc.ref { background: var(--auto-soft); box-shadow: inset 0 0 0 1px var(--auto); }
.band-legend .swc.over { background: var(--panel-2); box-shadow: inset 0 3px 0 var(--needs); }
.band-legend .swc.pend { background: var(--hatch), var(--panel-2); }
.band-legend .ramp { display: inline-flex; margin-left: 6px; }
.band-legend .ramp i { width: 14px; height: 10px; background: rgba(var(--needs-rgb), var(--a)); }

/* 分维度漂移：五行，每行一个维度 */
.dimrows { display: grid; gap: 4px; }
.dimrow { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 10px; }
.dimrow > span { font-size: 12px; color: var(--ink-3); text-align: right; }
.dimrow .cells { position: relative; height: 12px; background: var(--panel-2); border-radius: 2px; }
.dimrow .cells i { position: absolute; top: 0; bottom: 0; border-right: 1px solid var(--panel); background: rgba(var(--needs-rgb), var(--a)); }
.dimrow .cells i.p { background: var(--hatch); }
.dimrow .cells i.r { background: var(--auto-soft); }
.dimrow .cells i.o { box-shadow: inset 0 2px 0 var(--needs); }

/* ── 列表行 ────────────────────────────────── */
.rows { display: flex; flex-direction: column; }
.row { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); min-height: 40px; text-align: left; width: 100%; }
.row:last-child { border-bottom: 0; }

.row .t { font-family: var(--mono); font-size: 12px; color: var(--ink-2); flex: none; }
.row .m { min-width: 0; flex: 1; }
.row .m b { font-weight: 600; font-size: 13px; }
.row .m p { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .go { color: var(--ink-4); flex: none; }
button.row:hover .go, a.row:hover .go { color: var(--ink-1); }
.row.sel { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--ink-2); }
button.row:hover:not(.sel), a.row:hover:not(.sel) { background: var(--row-hover-2); }

/* ── 表格 ──────────────────────────────────── */
table.tb { width: 100%; border-collapse: collapse; font-size: 13px; }
.tb th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 0 10px; height: 32px; border-bottom: 1px solid var(--border-2); white-space: nowrap; position: sticky; top: 0; background: var(--panel); z-index: 1; }
.tb td { padding: 0 10px; height: 44px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tb tr:last-child td { border-bottom: 0; }
.tb tbody tr:hover td { background: var(--row-hover); }
.tb .r { text-align: right; }
.tb .c { text-align: center; }
.tb th button { color: inherit; font-weight: inherit; display: inline-flex; gap: 4px; align-items: center; }
.tb th[aria-sort] button { color: var(--ink-1); }

/* ── 计量条 ────────────────────────────────── */
.meter { height: 6px; background: var(--panel-3); border-radius: 3px; overflow: hidden; position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-2); border-radius: 3px; }
.meter.warn i { background: var(--needs); }
.meter.over i { background: var(--down); }
.meter .mark { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink-3); }

/* ── 侧拉面板 ──────────────────────────────── */
#drawer { position: fixed; top: var(--top-h); right: 0; bottom: 0; width: 420px; z-index: 40; transform: translateX(102%); transition: transform .24s var(--ease); pointer-events: none; }
#drawer.open { transform: none; pointer-events: auto; }
.drawer-in { height: 100%; overflow-y: auto; background: var(--panel); border-left: 1px solid var(--border-2); box-shadow: var(--shadow-lg); padding: 16px 20px 28px; }
.dr-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dr-h h2 { font-size: 16px; font-weight: 600; }
.dr-sub { font-size: 13px; color: var(--ink-3); margin: 6px 0 16px; }
.dr-t { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 16px 0 8px; }
.dr-c { font-size: 13px; color: var(--ink-2); }
.dr-act { display: flex; gap: 8px; margin-top: 20px; }
.dr-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.est { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.est div { background: var(--panel-2); padding: 8px 12px; }
.est dt { font-size: 12px; color: var(--ink-3); }
.est dd { font-size: 16px; color: var(--ink-1); margin-top: 1px; }
.est dd.big { font-size: 18px; color: var(--ink-1); }
.impact { list-style: none; display: grid; gap: 1px; background: var(--border); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); }
.impact li { display: grid; grid-template-columns: 88px 1fr; gap: 10px; padding: 8px 12px; background: var(--panel); font-size: 13px; }
.impact li b { font-family: var(--mono); font-weight: 500; color: var(--ink-2); }
.impact li span { color: var(--ink-3); }
.impact li.hit { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--ink-2); }
.impact li.hit b, .impact li.hit span { color: var(--ink-1); }

/* ── 提示 ──────────────────────────────────── */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--panel-3); border: 1px solid var(--border-2); color: var(--ink-1); padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; box-shadow: var(--shadow-lg); max-width: 420px; transition: opacity .25s ease, transform .25s ease; }
.toast.needs { border-color: var(--needs-line); }
.toast.auto { border-color: var(--auto-line); }
.toast.out { opacity: 0; transform: translateY(6px); }

.banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-sm); background: var(--panel-2); color: var(--ink-1); font-size: 13px; margin-bottom: 16px; border: 1px solid var(--border-2); }
.banner > .ic { color: var(--ink-3); }
.banner .btn { margin-left: auto; }
.banner .banner-act { margin-left: auto; display: flex; gap: 8px; }
.banner .banner-act .btn { margin-left: 0; }

/* 输入 */
.field { display: grid; gap: 4px; }
.field label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.field .help { font-size: 12px; color: var(--ink-3); }
.in, select.in, textarea.in { height: 32px; padding: 0 10px; background: var(--bg); border: 1px solid var(--border-2); border-radius: var(--r-sm); color: var(--ink-1); font-size: 13px; min-width: 0; }
textarea.in { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.in:hover { border-color: var(--border-3); }
.in:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px var(--veil-1); }
.in::placeholder { color: var(--ink-4); }
input[type="range"] { accent-color: var(--ink-2); width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* 静止版：呼吸点定在半亮，旁边的计时照常走 */
  .dot.live, .tl-live { animation: none !important; opacity: .6; }
}
body.rm *, body.rm *::before, body.rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
body.rm .dot.live, body.rm .tl-live { animation: none !important; opacity: .6; }

/* 首次进入：三步引导（可关闭，localStorage 记住） */
#onboard { grid-column: 2; grid-row: 2; position: static; z-index: auto; pointer-events: none; }
#onboard .ob { pointer-events: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 60px; height: auto; box-sizing: border-box; background: var(--panel-2); border-bottom: 1px solid var(--border-2); box-shadow: none; padding: 8px 18px; }
#onboard .ob-t { font-size: 12.5px; color: var(--ink-1); letter-spacing: .04em; white-space: nowrap; }
#onboard ol { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; flex: 1; flex-wrap: wrap; }
#onboard li { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-2); white-space: nowrap; }
#onboard li i { font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; color: var(--needs); }
#onboard .ob-go { border: 1px solid var(--border-2); background: var(--act); color: var(--on-act); border-radius: 7px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
#onboard .ob-go:hover { background: var(--act-hi); }
#onboard .ob-x { border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; padding: 2px 4px; cursor: pointer; }
#onboard .ob-x:focus-visible, #onboard .ob-go:focus-visible { outline: 2px solid var(--needs); outline-offset: 2px; }
@media (max-width: 900px) { #onboard li { white-space: normal; } }
