/* iMile AT 平台统一界面（质控平台 / 数据底座共用，两个产品各放一份）
   字体：正文 Inter（对应 KPI 看板的 Anthropic Sans），大数字与标题 Source Serif 4（对应 Anthropic Serif）；中文用系统黑体 / 宋体。
   布局：左侧深色导航 + 暖白内容区 + 白卡片。 */
@font-face { font-family: "InterVariable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "InterVariable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "SourceSerif4Variable"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "SourceSerif4Variable"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f7f6f3; --panel: #ffffff; --fg: #1f1e1c; --muted: #6f6b64; --faint: #9a958c; --line: #e6e3dd; --line-2: #d8d4cc; --hover: #f2f0ec;
  --accent: #1f1e1c; --accent-fg: #ffffff; --link: #2a63c9;
  --ok: #2f7a45; --ok-bg: #e8f3ea; --bad: #b3261e; --bad-bg: #fbeae7; --warn: #8a5a00; --warn-bg: #fdf3dc;
  --amber: #f0c040; --amber-ink: #3a2d00;
  --side: #23221f; --side-fg: #c9c5bc; --side-on: #34322e;
  --s1: #2a7de1; --s2: #e07b39; --s3: #3aa76d; --s4: #8b5cf6;
  --font: "InterVariable", "Inter", -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  --serif: "SourceSerif4Variable", "Source Serif 4", Georgia, "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --mono: "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --r: 10px; --r-s: 7px; --side-w: 88px;
  --shadow: 0 1px 2px rgba(31, 30, 28, .04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1a18; --panel: #242320; --fg: #ecebe7; --muted: #a29e96; --faint: #7d7970; --line: #36342f; --line-2: #45423c; --hover: #2d2b28;
    --accent: #ecebe7; --accent-fg: #1b1a18; --link: #7fa8f0;
    --ok: #7cc48e; --ok-bg: #213327; --bad: #f08a80; --bad-bg: #3a2320; --warn: #e6b65a; --warn-bg: #362c18;
    --side: #141311; --side-on: #2a2925;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.55 var(--font); font-variant-numeric: lining-nums; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }

/* ── 布局：左侧导航 + 顶栏 + 内容 ── */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--side) var(--side-w), transparent var(--side-w)); }
.side { background: var(--side); color: var(--side-fg); display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 8px; position: sticky; top: 0; height: 100vh; }
.side .logo { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 14px; color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: .5px; text-decoration: none; }
.side .logo b { width: 34px; height: 34px; border-radius: 9px; background: var(--amber); color: var(--amber-ink); display: grid; place-items: center; font-size: 13px; }
.side a.nav { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: 9px; color: var(--side-fg); font-size: 11.5px; text-decoration: none; text-align: center; line-height: 1.2; }
.side a.nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side a.nav:hover { background: var(--side-on); color: #fff; }
.side a.nav.on { background: var(--side-on); color: #fff; } .side a.nav.on svg { stroke: var(--amber); }
.side .badge { position: absolute; top: 2px; right: 8px; background: var(--amber); color: var(--amber-ink); font-size: 10px; font-weight: 700; border-radius: 999px; padding: 0 6px; line-height: 16px; }
.side .grow { flex: 1; }
.side a.nav.ext { font-size: 11px; opacity: .85; }
.topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px max(20px, env(safe-area-inset-right)) 10px 28px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 9; min-height: 56px; }
.topbar .title { font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.topbar .title small { font-family: var(--font); color: var(--muted); font-size: 12px; margin-left: 8px; }
.topbar form.search { flex: 1 1 280px; max-width: 420px; }
.topbar form.search input { width: 100%; background: var(--bg); }
.topbar .sp { flex: 1; }
.topbar .meta { color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.topbar .lang a, .topbar .who a { color: var(--muted); font-size: 12.5px; padding: 3px 7px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.topbar .lang a.on { color: var(--fg); background: var(--hover); }
.topbar .who { display: flex; align-items: center; gap: 2px; font-size: 12.5px; white-space: nowrap; }
.topbar .who b { font-weight: 600; margin-right: 4px; }
.topbar .who .role { color: var(--muted); font-size: 11.5px; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; margin-right: 4px; }
.topbar .run { font-size: 12px; background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 3px 10px; }
main { width: 100%; max-width: 1360px; margin: 0 auto; padding: 26px max(20px, env(safe-area-inset-right)) 56px 28px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }

h1 { font-family: var(--serif); font-weight: 450; font-size: 27px; margin: 0; letter-spacing: .1px; }
h2 { font-size: 15.5px; margin: 0 0 10px; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.sub { color: var(--muted); margin: 6px 0 0; max-width: 90ch; }
.head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; min-width: 0; box-shadow: var(--shadow); }
.card > h2 .hint, h2 .hint { color: var(--muted); font-weight: 400; font-size: 12.5px; margin-left: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }

/* ── 指标卡（简单） ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: var(--shadow); }
.tile .l { color: var(--muted); font-size: 12.5px; }
.tile .v { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.tile .s { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tile.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); } .tile.bad .v { color: var(--bad); }
.tile.ok .v { color: var(--ok); }
a.tile:hover { text-decoration: none; border-color: var(--line-2); }

/* ── KPI 卡（带左侧状态条、目标、环比、趋势线） ── */
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.kgrid:has(> :only-child) { max-width: 340px; }
.kt { background: var(--panel); box-shadow: inset -1px -1px 0 var(--line); padding: 12px 14px 10px 16px; position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: default; }
.kt::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); }
.kt.ok::before { background: var(--ok); } .kt.bad::before { background: var(--bad); } .kt.young::before { background: var(--amber); }
.kt .n { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.kt .n .code { color: var(--faint); font-size: 11px; }
.kt .v { font-family: var(--serif); font-size: 28px; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.kt .v small { font-family: var(--font); font-size: 13px; color: var(--muted); margin-left: 2px; }
.kt .t { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kt .d.up { color: var(--ok); } .kt .d.down { color: var(--bad); }
.kt svg.spark { width: 100%; height: 34px; margin-top: 4px; overflow: visible; }
.kt .foot { font-size: 11px; color: var(--faint); display: flex; justify-content: space-between; }
.kt.nodata .v { color: var(--faint); font-size: 18px; }

/* ── 全链路质控点 ── */
.chainbox { padding: 16px 18px 12px; }
.chain { display: grid; grid-template-columns: repeat(7, minmax(84px, 1fr)) 24px minmax(96px, 1fr); align-items: start; overflow-x: auto; padding-bottom: 4px; }
.chain .node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; position: relative; padding-top: 4px; text-decoration: none; color: inherit; min-width: 84px; }
.chain .node:hover { text-decoration: none; } .chain .node:hover .dot { transform: scale(1.06); }
.chain .node .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; border: 2px solid var(--line-2); background: var(--panel); color: var(--fg); position: relative; z-index: 1; transition: transform .12s; }
.chain .node.has .dot { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.chain .node.p1 .dot { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--bad); }
.chain .node.nodata .dot { border-style: dashed; color: var(--faint); font-weight: 500; font-size: 12px; }
.chain .node.on .dot { outline: 2px solid var(--fg); outline-offset: 3px; }
.chain .node:not(.trk)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 24px); right: calc(-50% + 24px); border-top: 2px dashed var(--line-2); }
.chain .node.last::after { display: none; }
.chain .qc { font-size: 11px; color: var(--faint); margin-top: 6px; }
.chain .nm { font-weight: 600; font-size: 13px; }
.chain .ds { font-size: 11.5px; color: var(--muted); }
.chain .sep { align-self: stretch; border-left: 1.5px dashed var(--line-2); justify-self: center; }
.chain .segs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(84px, 1fr)) 24px minmax(96px, 1fr); font-size: 11.5px; color: var(--muted); margin: 0 0 6px; }
.chain .segs span { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 3px; margin: 0 10px; }
.chainnote { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.chainnote i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin: 0 4px 0 10px; border: 1.5px solid var(--line-2); }
.chainnote i.has { background: var(--amber); border-color: var(--amber); } .chainnote i.p1 { background: var(--amber); border-color: var(--bad); box-shadow: 0 0 0 1.5px var(--bad); } .chainnote i.nd { border-style: dashed; }

/* ── 页签 ── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tabs button, .tabs a { font: inherit; font-size: 13.5px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 9px 14px 8px; cursor: pointer; white-space: nowrap; text-decoration: none; margin-bottom: -1px; }
.tabs button:hover, .tabs a:hover { color: var(--fg); text-decoration: none; }
.tabs button[aria-selected=true], .tabs a.on { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }
.tabs .cnt { font-size: 11px; color: var(--muted); background: var(--hover); border-radius: 999px; padding: 0 6px; margin-left: 5px; font-weight: 500; }
.tabs.sm button { font-size: 12.5px; padding: 6px 10px 5px; }
[role=tabpanel] { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
[role=tabpanel][hidden] { display: none; }

.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; white-space: nowrap; background: var(--hover); color: var(--muted); }
.pill.done, .pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.error, .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.running, .pill.queued, .pill.partial, .pill.warn, .pill.reused { background: var(--warn-bg); color: var(--warn); }
.pill.p1 { background: var(--bad); color: #fff; } .pill.p2 { background: var(--warn-bg); color: var(--warn); } .pill.p3 { background: var(--hover); color: var(--muted); }

/* ── 表单 ── */
form.up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; align-items: end; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
label.f b { color: var(--fg); font-weight: 600; font-size: 13.5px; }
label.chk { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--fg); cursor: pointer; }
label.chk input { margin-top: 3px; }
label.chk small { display: block; color: var(--muted); font-size: 12px; }
input[type=file], input[type=text], input[type=number], input[type=password], input[type=search], input[type=date], input[type=datetime-local], input:not([type]), textarea, select {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); color: var(--fg); min-width: 0; width: 100%; }
input[type=file] { padding: 7px; background: var(--bg); }
::placeholder { color: var(--faint); opacity: .75; font-style: italic; }
textarea { min-height: 70px; font-family: var(--mono); font-size: 13px; }
.btn { font: inherit; font-size: 13.5px; background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); border-radius: var(--r-s); padding: 8px 18px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn:hover { text-decoration: none; opacity: .9; }
.btn.sec { background: var(--panel); color: var(--fg); border-color: var(--line-2); }
.btn.sec:hover { background: var(--hover); opacity: 1; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.danger { background: var(--panel); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line-2)); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
details.opt summary, details.card > summary { cursor: pointer; font-size: 13.5px; color: var(--fg); }

/* ── 表格 ── */
.tbox { overflow: auto; }
table.t { border-collapse: collapse; width: 100%; font-variant-numeric: lining-nums tabular-nums; font-size: 13px; }
table.t th { text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); padding: 7px 10px; white-space: nowrap; background: var(--panel); position: sticky; top: 0; z-index: 1; }
table.t td { border-bottom: 1px solid var(--line); padding: 7px 10px; white-space: nowrap; }
table.t tbody tr:hover td { background: var(--hover); }
table.t td.n, table.t th.n { text-align: right; }
table.t tr.click { cursor: pointer; } table.t tr.on td { font-weight: 600; }
td.na, td.bad, span.bad { color: var(--bad); } td.young { color: var(--warn); } td.good, span.good { color: var(--ok); }
table.t tr.tot td { font-weight: 600; border-top: 2px solid var(--line-2); }
table.t tr.bad td.n { color: var(--bad); }
table.t tr.young td { color: var(--warn); }
table.t td .tag { font-size: 11px; color: var(--faint); margin-left: 5px; }
table.t td.wrap { white-space: normal; min-width: 180px; }

/* ── 漏斗 / 卡点条 ── */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel .fr { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 12px; align-items: center; font-size: 13px; }
.funnel .bar { height: 22px; background: var(--hover); border-radius: 5px; overflow: hidden; position: relative; }
.funnel .bar i { position: absolute; inset: 0 auto 0 0; background: var(--s1); border-radius: 5px; }
.funnel .bar i.stuck { background: var(--amber); } .funnel .bar i.over { background: var(--bad); }
.funnel .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.funnel .num b { color: var(--fg); }
.stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--hover); min-width: 90px; }
.stack i { display: block; height: 100%; }

/* ── 任务步骤、文件列表 ── */
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.steps .sec { color: var(--muted); font-size: 12px; margin-left: auto; }
.steps .err { color: var(--bad); font-size: 12px; flex-basis: 100%; padding-left: 4px; }
.files { columns: 2 320px; margin: 0; padding-left: 18px; }
.files li { margin: 3px 0; break-inside: avoid; }
.warn-box { background: var(--warn-bg); color: var(--warn); border-radius: var(--r-s); padding: 10px 14px; font-size: 13px; }
.ok-box { background: var(--ok-bg); color: var(--ok); border-radius: var(--r-s); padding: 10px 14px; font-size: 13px; }
.bad-box { background: var(--bad-bg); color: var(--bad); border-radius: var(--r-s); padding: 10px 14px; font-size: 13px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips label { border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; background: var(--panel); }
.chips label:has(input:checked) { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chips input { margin: 0; accent-color: var(--accent); }

/* ── 分段按钮、图表 ── */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; background: var(--panel); }
.seg button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--muted); padding: 6px 14px; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--accent); color: var(--accent-fg); }
.chart { position: relative; min-height: 240px; color: var(--fg); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.legend i { display: inline-block; width: 12px; height: 2px; vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 6px 18px rgba(0,0,0,.10); padding: 6px 9px; font-size: 12px; white-space: nowrap; z-index: 3; }
.tip .d { color: var(--muted); margin-bottom: 2px; }
dl.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 6px 24px; margin: 0; font-size: 13px; color: var(--muted); }
dl.defs dt { color: var(--fg); font-weight: 600; } dl.defs dd { margin: 0 0 8px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
pre.code { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; overflow-x: auto; font-size: 12.5px; margin: 6px 0; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 26px; text-align: center; color: var(--muted); background: var(--bg); cursor: pointer; }
.drop.on { border-color: var(--link); color: var(--fg); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.timeline li { position: relative; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); } .timeline li.miss::before { border-style: dashed; }
.timeline li .tm { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 8px; }
@media (prefers-reduced-motion: no-preference) { .spin { display: inline-block; animation: sp 1s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } } }
[hidden] { display: none !important; }
#controls label.f { white-space: nowrap; }
.ops { margin-top: 8px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }

@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; background: none; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; overflow-x: auto; padding: 6px 8px; gap: 2px; }
  .side .logo { margin: 0 6px 0 0; flex-direction: row; } .side .logo span { display: none; }
  .side a.nav { flex: 0 0 auto; padding: 6px 9px; font-size: 11px; } .side .grow { display: none; }
  .topbar { position: static; padding: 8px 16px; } .topbar .title { display: none; }
  main { padding: 18px 16px 48px; }
  h1 { font-size: 23px; }
  .tile .v { font-size: 25px; }
  .funnel .fr { grid-template-columns: 96px minmax(0, 1fr) 84px; }
}

/* 平台切换（v1.10.1）：数据底座 / 质控平台 / 锁柜稽核，一个账号按开通的平台显示 */
.apps { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.apps a { padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.apps a:hover { color: inherit; }
.apps a.on { background: var(--panel); color: inherit; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
@media (max-width: 760px) { .apps a { padding: 4px 9px; font-size: 12px; } }
