/* 研发过程管控 —— 第三版设计：录音棚监听台。
   参考 Teenage Engineering（灰机身、小而准的标注、颜色只表达功能）、Linear（少边框、低文字密度）。
   规则：中性灰 + 近黑；只有一个信号橙，只用在「需要注意」的地方；证据进度 = 近黑，只有自报的部分 = 浅灰。
   颜色只在这里定义；页面里不要写死颜色。 */
:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --sunk: #f6f7f9;
  --hair: #e6e8ec;
  --hair-2: #eef0f3;
  --ink: #0f1115;
  --ink-2: #3d4450;
  --muted: #6b7280;
  --faint: #8b929d;
  --track: #eceef1;
  --self: #d3d7dd;
  --signal: #ff5a1f;
  --signal-ink: #c2410c;
  --signal-soft: #fff1eb;
  --stage: #0e1012;
  --stage-2: #191b1f;
  --stage-ink: #f5f6f7;
  --stage-mute: #9aa1ac;
  /* 旧名字保留给页面里少量内联样式 */
  --line: var(--hair);
  --line-soft: var(--hair-2);
  --hw: var(--ink);
  --radius-s: 8px;
  --r-card: 16px;
  --r-ctl: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --num: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side-w: 216px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 650; }
h2 { font-size: 15px; line-height: 1.4; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
small { font-size: 12px; }
.num-font, .n { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.late { color: var(--signal-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 外框：侧边栏（桌面）/ 图标栏（平板）/ 底部标签栏（手机） ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 20px 12px 16px; border-right: 1px solid var(--hair); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.brand-name { font-weight: 650; font-size: 14px; white-space: nowrap; }
.brand-mark { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px; padding-bottom: 6px; }
.brand-mark i { width: 3px; background: #fff; border-radius: 1px; }
.brand-mark i:nth-child(1) { height: 6px; } .brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 14px; background: var(--signal); } .brand-mark i:nth-child(4) { height: 8px; }
.brand-mark.big { width: 48px; height: 48px; border-radius: 12px; gap: 4px; padding-bottom: 11px; }
.brand-mark.big i { width: 5px; }
.brand-mark.big i:nth-child(1) { height: 11px; } .brand-mark.big i:nth-child(2) { height: 20px; } .brand-mark.big i:nth-child(3) { height: 26px; } .brand-mark.big i:nth-child(4) { height: 15px; }
.side-label { font-size: 11.5px; color: var(--faint); padding: 16px 10px 6px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--muted); font-size: 13.5px; transition: background .15s, color .15s; }
.nav a svg { flex: none; }
.nav a:hover { background: #e9ebee; color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(15, 17, 21, .04); }
.watch { display: flex; flex-direction: column; gap: 1px; }
.watch a { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 10px; border-radius: 8px; color: var(--ink-2); font-size: 13px; }
.watch a:hover { background: #e9ebee; }
.watch a.on { background: var(--surface); box-shadow: 0 0 0 1px var(--hair); }
.wt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.wt small { font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn { flex: none; font-family: var(--num); font-size: 12.5px; color: var(--muted); }
.wn.hot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--signal); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; }
.me-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.me-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.me-name { font-size: 13px; font-weight: 600; }
.me-meta { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me form { margin: 0; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; }

.main { min-width: 0; padding: 20px 32px 56px; max-width: 1480px; width: 100%; }
.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.top-search { flex: 0 1 380px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px 0 12px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-ctl); color: var(--faint); margin: 0; transition: border-color .15s, box-shadow .15s; }
.top-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 17, 21, .06); }
.top-search input { flex: 1; min-width: 0; margin: 0; border: 0; padding: 0; background: transparent; font-size: 13.5px; box-shadow: none !important; }
.top-ask { flex: none; height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--sunk); color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer; }
.top-ask:hover { background: var(--hair-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-right form { margin: 0; }
.top-date { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.page-head { margin-bottom: 20px; }
.page-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 13px; }
.crumb { display: inline-block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.crumb:hover { color: var(--ink); }
.flash { padding: 10px 14px; border-radius: var(--r-ctl); margin-bottom: 16px; background: var(--surface); border: 1px solid var(--hair); font-size: 13.5px; animation: rise .35s var(--ease) both; }
.flash::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 10px; vertical-align: middle; }
.flash.err::before { background: var(--signal); }

/* ---------- 卡片、栅格 ---------- */
.card, .panel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); }
.card { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel + .panel { margin-top: 16px; }
.card-head, .panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.panel-head { padding: 18px 20px 10px; }
.panel-body { padding: 4px 20px 20px; }
.card-head .hint, .panel-head .hint { font-size: 12.5px; color: var(--faint); }
.card-head form { margin: 0 0 0 auto; }
.tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--hair); color: var(--faint); font-size: 10px; font-style: italic; font-weight: 600; font-family: Georgia, serif; cursor: help; }
.tip:hover, .tip:focus-visible { color: var(--ink); border-color: var(--faint); }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font: 12px/1.55 var(--font); font-style: normal; font-weight: 400; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 30; }
.tip:hover::after, .tip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 28px 20px; color: var(--muted); text-align: center; font-size: 13px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.grid-2 > * { min-width: 0; }
.grid-2.stretch { align-items: stretch; }
.row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.row2 > * { min-width: 0; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.dot { flex: none; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 6px; border-radius: 3px; }
.legend .lg-ev { background: var(--ink); }
.legend .lg-self { background: var(--self); }
.legend .lg-now { width: 2px; height: 10px; border-radius: 1px; background: var(--signal); }
.legend .lg-ret { background: var(--signal); }
.legend .lg-open { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.legend .lg-done { width: 8px; height: 8px; border-radius: 50%; background: var(--self); }

/* ---------- 按钮与表单 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: #cfd3d9; background: var(--sunk); }
.btn:active { transform: translateY(1px); }
.btn.primary, .btn.ai { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ai::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.btn.primary:hover, .btn.ai:hover { background: #262a31; }
.btn.lit::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.btn.tall { height: 38px; }
.btn.small { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }
label { display: block; font-size: 12.5px; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 13.5px; color: var(--ink); background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-ctl); padding: 8px 11px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 72px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 17, 21, .06); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.form-row + .form-row, .form-row + label, label + label, label + .form-row { margin-top: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.form-error { color: var(--signal-ink); font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }

/* ---------- 标签、状态、小条 ---------- */
.pill, .chip, .tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; background: var(--sunk); color: var(--ink-2); font-weight: 500; }
.s-doing, .s-active { color: var(--ink); }
.s-doing::before, .s-active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.s-blocked, .chip.c-risk, .chip.c-late { background: var(--signal-soft); color: var(--signal-ink); }
.s-done, .chip.c-ok, .chip.c-good { color: var(--muted); }
.s-todo { background: transparent; color: var(--faint); box-shadow: inset 0 0 0 1px var(--hair); }
.chip.c-watch::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.page-head h1 .chip { height: 24px; font-size: 12.5px; }
.lv { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lv::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lv-ok { color: var(--muted); }
.lv-watch { color: var(--ink); }
.lv-watch::before { background: var(--signal); }
.lv-risk { color: var(--signal-ink); }
.meter { display: inline-flex; gap: 2px; vertical-align: middle; }
.meter i { width: 5px; height: 12px; border-radius: 1.5px; background: var(--track); }
.meter i.lit { background: var(--ink); }
.meter-num { margin-left: 8px; font-size: 12px; color: var(--muted); font-family: var(--num); vertical-align: middle; }
.meter-bar { display: inline-block; width: 96px; vertical-align: middle; }
/* 自报 / 证据双色条：浅灰 = 自报，近黑 = 证据；问题用橙 */
.pb-track { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.pb-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; transform-origin: left; animation: grow .8s var(--ease) both; }
.pb-track .pb-self { background: var(--self); }
.pb-track .pb-ev { background: var(--ink); }
.pb-track .pb-hot { background: var(--signal); }
.pair-bar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pair-bar .pb-track { flex: 1; }
.pb-num { flex: none; font-family: var(--num); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pb-num b { color: var(--signal-ink); font-weight: 600; }
.pb-num b.ok { color: var(--ink); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--hair-2); vertical-align: top; }
.table th { font-size: 12px; font-weight: 500; color: var(--faint); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbfc; }
.table td.num, .table th.num { text-align: right; font-family: var(--num); }
tr.ev-gap td { background: #fffaf7; }

/* ---------- 页内标签切换（分段控件） ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 18px; padding: 3px; background: #e7e9ec; border-radius: 10px; max-width: 100%; }
.tabs a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 13px; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 17, 21, .08); }
.tabs .count { color: var(--faint); font-size: 11.5px; margin-left: 5px; font-family: var(--num); }

/* ---------- 项目列表、数字卡 ---------- */
.proj-line { font-size: 13.5px; color: var(--ink-2); }
.proj-list { display: grid; gap: 8px; }
.proj-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 150px 110px; gap: 16px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); transition: border-color .15s, transform .15s; }
.proj-row:hover { border-color: #cfd3d9; transform: translateY(-1px); }
.proj-row .name { font-weight: 600; }
.proj-row .code { color: var(--faint); font-size: 12px; margin-left: 6px; font-weight: 400; }
.proj-row .line { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 16px 18px; }
.kpi b { display: block; font-family: var(--num); font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.kpi b small { font-size: 13px; font-weight: 500; color: var(--faint); margin-left: 2px; }
.kpi span { color: var(--muted); font-size: 12px; }
.kpi.warn b { color: var(--signal-ink); }

/* ---------- 分轨时间轴 ---------- */
.tl { --day: 6px; position: relative; overflow-x: auto; padding-bottom: 4px; }
.tl-inner { position: relative; min-width: max-content; }
.tl-scale { display: flex; height: 26px; border-bottom: 1px solid var(--hair); margin-left: 112px; position: relative; }
.tl-week { flex: none; font-size: 11px; color: var(--faint); padding: 6px 0 0 4px; border-left: 1px solid var(--hair-2); }
.tl-month { font-weight: 600; color: var(--ink-2); }
.tl-track { display: grid; grid-template-columns: 112px auto; border-bottom: 1px solid var(--hair-2); }
.tl-track:last-child { border-bottom: 0; }
.tl-label { padding: 12px 12px 12px 20px; display: flex; flex-direction: column; gap: 2px; position: sticky; left: 0; background: var(--surface); z-index: 2; }
.tl-label strong { font-size: 12.5px; }
.tl-label span { font-size: 11px; color: var(--faint); }
.tl-lane { position: relative; }
.tl-row { position: relative; height: 32px; }
.tl-bar { position: absolute; top: 6px; height: 20px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; gap: 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); }
.tl-bar:hover { box-shadow: inset 0 0 0 1px #c5cad1; color: var(--ink); }
.tl-bar .fill { position: absolute; inset: 0 auto 0 0; z-index: 0; background: #dfe2e6; }
.tl-bar span { position: relative; z-index: 1; overflow: hidden; text-overflow: ellipsis; }
.tl-bar.done { color: var(--muted); }
.tl-bar.done .fill { background: #e8eaed; }
.tl-bar.is-wait { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tl-bar.is-late { box-shadow: inset 0 0 0 1px var(--signal), inset 3px 0 0 var(--signal); }
.tl-bar .ret, .tl-legend .ret { position: relative; z-index: 1; flex: none; font-size: 10px; font-weight: 600; color: #fff; background: var(--signal); border-radius: 4px; padding: 0 4px; line-height: 15px; }
.tl-base { position: absolute; height: 2px; background: var(--faint); bottom: 2px; opacity: .6; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--signal); z-index: 3; pointer-events: none; }
.tl-today::after { content: "今天"; position: absolute; top: 4px; left: 4px; font-size: 10.5px; color: var(--signal-ink); background: var(--surface); padding: 0 3px; white-space: nowrap; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; color: var(--faint); padding: 12px 20px 18px; }
.tl-legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.lg-base { width: 16px; height: 2px; background: var(--faint); }
.lg-late { width: 12px; height: 12px; box-shadow: inset 0 0 0 1px var(--signal), inset 3px 0 0 var(--signal); border-radius: 3px; }
.lg-fill { width: 16px; height: 10px; background: linear-gradient(90deg, #dfe2e6 60%, var(--sunk) 60%); border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hair); }
.lg-wait { width: 16px; height: 10px; box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 3px; }

/* ---------- 动态 / 列表 ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed > li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 14px 20px; border-top: 1px solid var(--hair-2); }
.feed time { color: var(--faint); font-size: 12px; padding-top: 2px; }
.feed .what { min-width: 0; }
.feed .what strong { font-weight: 600; }
.feed .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.feed .ai-note { margin-top: 8px; font-size: 13px; color: var(--ink-2); background: var(--sunk); padding: 8px 12px; border-radius: 8px; }

/* ---------- AI 区块（浅底 + 一个橙点，不用深色大块） ---------- */
.ai-box { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); }
.ai-mark { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.ai-mark::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.ai-src { font-size: 11.5px; color: var(--faint); }
.ai-answer { white-space: pre-wrap; line-height: 1.75; color: var(--ink-2); }
.ai-flag { display: flex; gap: 8px; align-items: baseline; padding: 10px 12px; margin-bottom: 6px; background: var(--sunk); border-radius: 10px; font-size: 13px; }
.ai-flag:last-child { margin-bottom: 0; }
.ai-flag .lv { flex: none; }

/* ---------- 登录 ---------- */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login { width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; overflow: hidden; }
.login-brand { background: var(--stage); color: var(--stage-mute); padding: 40px 36px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 380px; }
.login-brand .brand-mark { background: var(--stage-2); }
.login-brand h1 { color: var(--stage-ink); font-size: 24px; }
.login-form { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.demo-accounts { margin-top: 8px; border-top: 1px solid var(--hair-2); padding-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.demo-accounts p { grid-column: 1 / -1; font-size: 12px; color: var(--faint); }
.demo-acc { text-align: left; background: var(--sunk); border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .15s; }
.demo-acc:hover { border-color: var(--hair); background: var(--surface); }
.demo-acc strong { display: block; font-size: 13px; }
.demo-acc span { font-size: 11.5px; color: var(--faint); }

/* ---------- 弹层 ---------- */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); color: var(--ink); box-shadow: 0 24px 60px rgba(15, 17, 21, .18), 0 0 0 1px var(--hair); }
dialog[open] { animation: pop .22s var(--ease) both; }
dialog::backdrop { background: rgba(15, 17, 21, .32); backdrop-filter: blur(2px); }
dialog .panel-head { position: sticky; top: 0; background: var(--surface); z-index: 1; padding-bottom: 12px; border-bottom: 1px solid var(--hair-2); }
dialog h3 { font-size: 14px; margin-bottom: 8px; }
dialog .panel-body { padding-top: 16px; }

/* ---------- 问题库、预演、交接、证据 ---------- */
.heat td { width: 1%; min-width: 44px; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 4px 20px 14px; }
.filters select { width: auto; min-width: 120px; margin: 0; }
.pattern { padding: 14px 16px; background: var(--sunk); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.pattern h3 { font-size: 14px; line-height: 1.5; }
.pattern p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.pattern .pt-adv { color: var(--ink); }
.patterns { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.refs { font-size: 12px; color: var(--muted); }
.refs summary { cursor: pointer; color: var(--muted); }
.refs ul { margin: 6px 0 0; padding-left: 18px; }
.issue-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 8px 0 0; font-size: 13px; }
.issue-dl dt { color: var(--faint); }
.issue-dl dd { margin: 0; color: var(--ink-2); }
.pm-list { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.pm-item { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 14px; padding: 14px 16px; background: var(--sunk); border-radius: 12px; }
.pm-stage { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 12.5px; }
.pm-body h3 { font-size: 14px; }
.pm-body p { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.pm-prev { font-weight: 500; color: var(--ink) !important; }
.pm-act { align-self: center; }
.flow-table td { vertical-align: top; }
.handoff-cell { min-width: 180px; }
.row-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.checks { display: grid; gap: 6px; margin: 8px 0 10px; }
.selfcheck { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; margin: 12px 0; border-radius: 12px; background: var(--sunk); }
.ev-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 28px; align-items: center; }
.ev-num b { display: block; font-family: var(--num); font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.ev-num span { font-size: 12px; color: var(--muted); }
.ev-num.muted b { color: var(--faint); }
.ev-pair { font-size: 12.5px; white-space: nowrap; font-family: var(--num); color: var(--muted); }
.ev-repo { margin: 0 20px 8px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 12.5px; }
.hash { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; background: var(--sunk); border-radius: 5px; padding: 1px 5px; word-break: break-all; color: var(--ink-2); }
.ev-refs { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 8px; }

/* =====================================================================
 * 驾驶舱
 * ===================================================================*/
/* 舞台：深色，3D 音箱做背景板，上面压大数字和三个项目通道 */
.stage { position: relative; overflow: hidden; border-radius: 20px; background: radial-gradient(120% 90% at 78% 40%, #262a30 0%, var(--stage) 62%); color: var(--stage-ink); margin-bottom: 16px; min-height: 440px; isolation: isolate; }
.stage-3d { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage-3d.ready { opacity: 1; }
.stage-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14, 16, 18, .94) 0%, rgba(14, 16, 18, .6) 44%, rgba(14, 16, 18, 0) 70%); }
.stage-in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; padding: 28px 32px 24px; width: min(620px, 56%); min-height: 440px; }
.stage-kicker { font-size: 12.5px; color: var(--stage-mute); }
.stage-big { display: flex; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sb-main b { display: block; font-family: var(--num); font-size: 80px; line-height: .95; font-weight: 600; letter-spacing: -0.05em; }
.sb-main b small { font-size: 32px; font-weight: 500; color: var(--stage-mute); margin-left: 2px; letter-spacing: 0; }
.sb-main .sb-sub { display: block; margin-top: 8px; font-size: 13px; color: var(--stage-mute); }
.stage-stats { display: flex; gap: 26px; padding-bottom: 26px; }
.stage-stats a { display: flex; flex-direction: column; color: var(--stage-ink); }
.stage-stats a:hover { color: #fff; }
.stage-stats b { font-family: var(--num); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stage-stats b.hot { color: var(--signal); }
.stage-stats span { font-size: 12px; color: var(--stage-mute); }
.channels { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.channel { display: grid; grid-template-columns: minmax(120px, 168px) minmax(0, 1fr) 54px; gap: 16px; align-items: center; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; color: var(--stage-ink); transition: background .15s; }
.channel:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ch-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ch-name b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-name small { font-size: 11.5px; color: var(--stage-mute); white-space: nowrap; }
.ch-name small.hot { color: var(--signal); }
.ch-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.ch-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transform-origin: left; animation: grow 1.1s var(--ease) both; }
.ch-bar .c-self { background: rgba(255, 255, 255, .24); }
.ch-bar .c-ev { background: #fff; animation-delay: .15s; }
.ch-bar .c-now { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 90, 31, .2); }
.ch-pct { font-family: var(--num); font-size: 20px; font-weight: 600; text-align: right; letter-spacing: -0.02em; }
.stage-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--stage-mute); }
.stage-legend span { display: inline-flex; align-items: center; gap: 6px; }
.stage-legend i { width: 12px; height: 6px; border-radius: 3px; display: inline-block; }
.stage-legend .l-ev { background: #fff; } .stage-legend .l-self { background: rgba(255, 255, 255, .24); } .stage-legend .l-now { width: 2px; height: 10px; background: var(--signal); }

/* 驾驶舱下面的卡片 */
.decide-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.decide-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 4px 10px; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.decide-list li:first-child { border-top: 0; padding-top: 0; }
.decide-list .d-no { font-family: var(--num); font-size: 12px; color: var(--faint); line-height: 1.75; }
.decide-list .d-text { font-size: 14px; line-height: 1.6; color: var(--ink); }
.decide-list .d-meta { grid-column: 2; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.decide-list .d-meta a { color: var(--ink); font-weight: 600; }
.decide-list .d-meta a:hover { text-decoration: underline; }
.decide-sum { font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.decide-sum summary { cursor: pointer; color: var(--ink-2); font-weight: 500; list-style: none; }
.decide-sum summary::-webkit-details-marker { display: none; }
.decide-sum details p { margin-top: 6px; color: var(--ink-2); }
.decide-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--faint); margin-top: auto; }
.decide-foot form { margin: 0 0 0 auto; }

.gap-rows { display: flex; flex-direction: column; }
.gap-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 64px minmax(0, 1.3fr); gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--hair-2); color: var(--ink); }
.gap-row:first-child { border-top: 0; padding-top: 0; }
.gap-task { display: flex; flex-direction: column; min-width: 0; }
.gap-task b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gap-task span { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.gap-row:hover .gap-task b { text-decoration: underline; }
.who { font-size: 13px; color: var(--ink-2); white-space: nowrap; }

.gauge { display: flex; align-items: center; gap: 18px; }
.ring { display: block; flex: none; }
.ring .r-track { stroke: var(--track); }
.ring .r-self { stroke: var(--self); }
.ring .r-ev { stroke: var(--ink); }
.ring .r-now { fill: var(--signal); stroke: #fff; }
.ring .r-big { font-family: var(--num); font-weight: 600; fill: var(--ink); letter-spacing: -0.03em; }
.ring .r-sub { fill: var(--muted); }
.g-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 18px; font-size: 11.5px; color: var(--muted); }
.g-grid b { display: block; font-family: var(--num); font-size: 18px; color: var(--ink); font-weight: 600; }
.g-grid b.hot { color: var(--signal-ink); }
.alert-card .a-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.alert-card .a-title { font-size: 16px; line-height: 1.5; font-weight: 600; }
.alert-card .a-sub { font-size: 12.5px; color: var(--muted); }
.alert-card .a-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 22px; }
.mini-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-2); }
.mini-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair-2); font-size: 12.5px; color: var(--ink-2); }
.mini-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list em { flex: none; font-style: normal; color: var(--faint); font-family: var(--num); }
.mini-list em.hot { color: var(--signal-ink); }
.alert-card .a-act { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }

.depts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.dept { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-left: 1px solid var(--hair); min-width: 0; }
.dept:first-child { border-left: 0; }
.dept .dn { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dept .dv { font-family: var(--num); font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; margin-top: 4px; }
.dept .dl { font-size: 11.5px; color: var(--faint); }
.dept .dq { margin-top: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept .dq.hot { color: var(--signal-ink); font-weight: 600; }
.dept.hot { background: var(--signal-soft); }

.stuck { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.stuck li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--sunk); min-width: 0; }
.stuck .k { font-size: 11.5px; font-weight: 600; color: var(--signal-ink); }
.stuck b { font-size: 13.5px; font-weight: 600; }
.stuck span { font-size: 12px; color: var(--muted); }
.stuck p { font-size: 12.5px; color: var(--ink-2); }
.stuck-probe { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.55; border: 1px solid var(--hair-2); }
.stuck-probe:hover { border-color: var(--hair); }
.stuck .stuck-probe span { color: var(--ink-2); font-size: 12.5px; }
.stuck .stuck-probe span.late { color: var(--signal-ink); }

/* ---------- 项目详情总览 ---------- */
.nodes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.node { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--sunk); color: var(--ink); transition: background .15s; }
a.node:hover { background: #eff1f4; }
.node-top { display: flex; align-items: flex-start; gap: 10px; }
.node-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.node-name b { font-size: 14px; }
.node-name span, .node-pct span { font-size: 11.5px; color: var(--faint); }
.node-pct { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.node-pct b { font-family: var(--num); font-size: 22px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.node .pb-track { background: #e4e7eb; }
.node-task { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.nt-row { display: flex; align-items: baseline; gap: 8px; width: 100%; }
.nt-row > b { flex: 1; min-width: 0; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-num { flex: none; font-family: var(--num); font-size: 12px; color: var(--faint); white-space: nowrap; }
.nt-num b { color: var(--ink); font-weight: 600; }
.nt-num b.late { color: var(--signal-ink); }
.nt-basis { display: none; }
.node-foot { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--signal-ink); }
.sum { display: flex; align-items: center; gap: 18px; }
.sum-grid { flex: 1; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.remind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.remind-item { font-size: 12.5px; line-height: 1.6; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--hair-2); }
.remind-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.remind-item b { display: block; color: var(--ink); font-size: 13.5px; font-weight: 600; }

/* ---------- 监察官 ---------- */
.pairs { display: flex; flex-direction: column; }
.pair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hair-2); }
.pair:first-child { border-top: 0; }
.pair-name { display: flex; flex-direction: column; min-width: 0; }
.pair-name b { font-size: 13px; font-weight: 600; }
.pair-name span { font-size: 11.5px; color: var(--faint); }
.pair-bars { display: flex; flex-direction: column; gap: 4px; }
.pbar { display: flex; align-items: center; gap: 8px; }
.pbar i { flex: none; display: block; height: 6px; min-width: 2px; border-radius: 3px; max-width: 58%; transform-origin: left; animation: grow .8s var(--ease) both; }
.pbar .pb-ret { background: var(--signal); }
.pbar .pb-late { background: var(--self); }
.pbar em { font-style: normal; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.pbar em.late { color: var(--signal-ink); font-weight: 600; }
.more-pairs summary { cursor: pointer; font-size: 12.5px; color: var(--muted); padding: 8px 0 0; }
.dotgrid { display: flex; flex-direction: column; }
.dotrow { display: grid; grid-template-columns: 104px minmax(0, 1fr) 22px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--hair-2); }
.dotrow:first-child { border-top: 0; }
.dr-name { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dr-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--self); }
.dr-dots i.open { background: var(--signal); }
.dr-n { font-family: var(--num); font-size: 12.5px; text-align: right; color: var(--muted); }
/* 申诉 / 准确率 */
.ap-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.ap-row:first-of-type { border-top: 0; }
.ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-main b { font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.ap-main span { font-size: 11.5px; color: var(--faint); }
.ap-main .ap-claim { color: var(--ink-2); font-size: 12.5px; }
.ap-act { flex: none; }
.ap-cell { min-width: 140px; }
.appeal-ai { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); margin-bottom: 12px; }
.decide-pick { border: 0; padding: 0; margin: 4px 0 12px; display: grid; gap: 8px; }
.d-appeal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.d-lesson { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.d-basis { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.d-meta-task b { color: var(--ink); font-size: 13.5px; }
.ev-pair-dark { margin-left: auto; font-family: var(--num); white-space: nowrap; color: var(--muted); }
.ev-pair-dark b.bad { color: var(--signal-ink); }
.ev-pair-dark b.good { color: var(--ink); }
.acc-top { display: flex; align-items: center; gap: 18px; }
.acc-grid { flex: 1; }
.acc-nodes { display: flex; flex-direction: column; gap: 8px; }
.acc-node { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 12.5px; }
.an-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.an-num { font-family: var(--num); font-weight: 600; text-align: right; }
.an-num small { display: none; }
/* 排查单 */
.probe { margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--sunk); display: flex; flex-direction: column; gap: 12px; }
.probe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.probe-head b { font-size: 13px; }
.probe-src { font-size: 11.5px; color: var(--faint); }
.probe-state { margin-left: auto; }
.pk { display: block; font-size: 11.5px; color: var(--faint); margin-bottom: 3px; }
.probe-cause { font-size: 15px; font-weight: 600; line-height: 1.55; }
.probe-was { font-size: 12px; color: var(--muted); margin-top: -6px; }
.probe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.probe-cell { padding: 12px; border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.probe-cell.hot { box-shadow: inset 2px 0 0 var(--signal); }
.probe-cell ul, .probe-basis ul { margin: 0; padding-left: 16px; }
.probe-cell li + li { margin-top: 4px; }
.probe-basis { font-size: 12px; color: var(--muted); }
.probe-basis summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.probe-basis ul { margin-top: 6px; }
.probe-confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin: 0; }
.probe-confirm textarea { min-height: 52px; }
.probe-run { margin: 8px 0 0; }
.probe-issue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 6px; }
.probe-issue b { font-size: 14px; }
.probe-issue span { font-size: 11.5px; color: var(--faint); }
/* 学习：自检规则、自报差距 */
.rule-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.rule-sum span { padding: 10px 14px; border-left: 1px solid var(--hair); font-size: 11.5px; color: var(--faint); }
.rule-sum span:first-child { border-left: 0; }
.rule-sum b { display: block; font-family: var(--num); font-size: 22px; color: var(--ink); font-weight: 600; line-height: 1.2; }
.rule-sum b.hot { color: var(--signal-ink); }
.rule { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--hair-2); }
.rule.rule-new { grid-template-columns: 96px minmax(0, 1fr); }
.rule-node { font-size: 12px; color: var(--faint); padding-top: 2px; }
.rule-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rule-main > b { font-size: 13.5px; font-weight: 600; }
.rule-why { font-size: 11.5px; color: var(--faint); line-height: 1.55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rule-recur { font-size: 12px; color: var(--signal-ink); line-height: 1.55; }
.rule-state .chip { white-space: nowrap; }
.rule-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.rule-form input { margin: 0; flex: 1; min-width: 0; height: 30px; padding: 4px 10px; font-size: 13px; }
.rule-more { display: flex; flex-direction: column; }
.bias { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.bias-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hair-2); }
.bias-row:first-child { border-top: 0; }
.bias-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.bias-name b { font-size: 13px; font-weight: 600; }
.bias-name small { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bias-num { font-family: var(--num); font-weight: 600; text-align: right; font-size: 14px; }
.bias-num small { display: none; }
/* 我的任务：一句话提报 */
.composer form { flex: 1; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.composer textarea { flex: 1; margin: 0; min-height: 110px; background: var(--sunk); border-color: transparent; font-size: 14.5px; padding: 14px; }
.composer textarea:focus { background: var(--surface); }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.file-pick { flex: 1; min-width: 180px; font-size: 12px; color: var(--faint); }
.file-pick input { border: 0; padding: 4px 0; background: none; margin-top: 2px; }
.composer-note { font-size: 12px; color: var(--faint); }
.handoff-inbox { margin-bottom: 16px; }

/* ---------- 动效：一次加载编排 + 操作反馈；系统要求减少动态时全部关掉 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.main > .card, .main > .panel, .main > .row2, .main > .row3, .main > .kpis, .main > .grid-2, .main > .stage, .main > .tabs { animation: rise .5s var(--ease) both; }
.main > :nth-child(4) { animation-delay: .05s; } .main > :nth-child(5) { animation-delay: .1s; } .main > :nth-child(6) { animation-delay: .15s; }
.main > :nth-child(7) { animation-delay: .2s; } .main > :nth-child(n+8) { animation-delay: .25s; }

/* ---------- 底部标签栏（只在手机上出现） ---------- */
.tabbar { display: none; }

/* ---------- 平板：侧边栏收成图标栏 ---------- */
@media (max-width: 1180px) {
  .shell { --side-w: 64px; }
  .side { padding: 16px 10px; align-items: center; }
  .brand { padding: 0 0 14px; }
  .brand-name, .side-label, .watch, .me-txt, .me form { display: none; }
  .nav a { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; }
  .me { padding: 0; }
  .main { padding: 18px 24px 48px; }
  .row2, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .depts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dept:nth-child(4) { border-left: 0; }
  .dept:nth-child(n+4) { border-top: 1px solid var(--hair); }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .main { padding: 14px 16px 96px; }
  .topbar { margin-bottom: 14px; }
  .top-search { flex: 1 1 auto; }
  .top-date, .top-ask { display: none; }
  h1 { font-size: 22px; }
  .tabbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; height: 60px; padding: 0 6px; justify-content: space-around; align-items: center; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--hair); border-radius: 18px; box-shadow: 0 8px 30px rgba(15, 17, 21, .1); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--faint); padding: 6px 0; }
  .tabbar a.on { color: var(--ink); font-weight: 600; }
  .card { padding: 16px; }
  .panel-head { padding: 16px 16px 8px; }
  .panel-body { padding: 4px 16px 16px; }
  .feed > li { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
  .row3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px 14px; }
  .kpi b { font-size: 22px; }
  .login { grid-template-columns: 1fr; }
  .login-brand { min-height: 150px; padding: 26px; }
  .proj-row, .pm-item { grid-template-columns: 1fr; gap: 8px; }
  .pm-stage { flex-direction: row; align-items: baseline; }
  .ev-head { grid-template-columns: auto auto; gap: 16px; }
  .ev-head p { grid-column: 1 / -1; }
  .stage { min-height: 0; border-radius: 16px; }
  .stage::after { background: linear-gradient(180deg, rgba(14, 16, 18, .1) 0%, rgba(14, 16, 18, .82) 44%, rgba(14, 16, 18, .97) 100%); }
  .stage-3d { bottom: auto; height: 260px; }
  .stage-in { padding: 180px 18px 18px; min-height: 0; gap: 18px; width: auto; }
  .sb-main b { font-size: 60px; }
  .stage-stats { gap: 18px; padding-bottom: 0; }
  .channel { grid-template-columns: minmax(0, 1fr) 46px; gap: 6px 12px; }
  .channel .ch-bar { grid-column: 1 / -1; grid-row: 2; }
  .ch-pct { grid-row: 1; grid-column: 2; font-size: 17px; }
  .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dept, .dept:nth-child(4) { border-left: 1px solid var(--hair); border-top: 0; }
  .dept:nth-child(odd) { border-left: 0; }
  .dept:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .gap-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .gap-row .who { grid-column: 2; grid-row: 1; }
  .gap-row .pair-bar { grid-column: 1 / -1; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rule, .rule.rule-new { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rule-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-sum span:nth-child(3) { border-left: 0; }
  .rule-sum span:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .rule-form { flex-wrap: wrap; }
  .rule-form input { flex-basis: 100%; }
  .probe-grid, .probe-confirm, .remind-grid { grid-template-columns: 1fr; }
  .remind-item:nth-child(2) { border-top: 1px solid var(--hair-2); padding-top: 10px; }
  .probe-state { margin-left: 0; }
  .ap-row { flex-direction: column; align-items: flex-start; }
  .alert-card .a-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
  .sum, .acc-top, .gauge { flex-wrap: wrap; }
  .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .tabs a { flex: none; }
  .filters { padding: 4px 16px 12px; }
  .filters select { flex: 1; }
  dialog { width: calc(100vw - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stage-3d { opacity: 1; }
}

/* ---------- AI 学习官 ---------- */
.page-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px; }
.page-actions form { margin: 0; }
.lo-prop, .lo-ver { padding: 14px 0; border-top: 1px solid var(--hair-2); display: flex; flex-direction: column; gap: 8px; }
.lo-prop:first-of-type { border-top: 0; }
.lo-prop-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lo-prop-head b { font-size: 14.5px; }
.lo-by { margin-left: auto; font-size: 12px; color: var(--faint); }
.lo-why { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.lo-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.lo-changes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.lo-act { display: flex; gap: 8px; margin: 0; }
.lo-rule input { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--hair); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; }
.lo-test { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 12.5px; }
.lo-test-k { color: var(--muted); }
.lo-test-bars { display: flex; flex-direction: column; gap: 5px; }
.lo-test-bars span { display: flex; align-items: center; gap: 8px; }
.lo-test-bars i { display: block; height: 6px; max-width: 160px; flex: none; border-radius: 3px; background: var(--self); }
.lo-test-bars .new i { background: var(--ink); }
.lo-test-bars em { font-style: normal; color: var(--muted); }
.lo-test-bars .new em { color: var(--ink); font-weight: 600; }
.lo-test b.up { color: #0f7a4f; }
.lo-test b.down { color: var(--signal-ink); }
.lo-diff summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.lo-diff pre { margin: 8px 0 0; padding: 12px; border-radius: 10px; background: var(--sunk); font: inherit; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; color: var(--ink-2); }
.lo-diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.lo-diff-grid small { color: var(--faint); }
.lo-diff-grid pre { margin-top: 4px; }
.lo-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lo-log li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.lo-who { font-weight: 600; color: var(--ink); }
.lo-wait { color: var(--muted); }
.lo-guard { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.lo-experts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lo-expert { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: var(--sunk); color: inherit; text-decoration: none; border: 1px solid transparent; transition: border-color .15s; }
.lo-expert:hover { border-color: var(--hair); }
.lo-ex-head { display: flex; align-items: center; gap: 10px; }
.lo-ex-head small { display: block; font-size: 11.5px; color: var(--faint); }
.lo-emoji { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.lo-ex-job { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.lo-ex-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.lo-ex-tags .chip { background: var(--surface); }
.lo-ex-foot { font-size: 12px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--hair); }
.lo-persona { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.lo-mem { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lo-mem li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--hair-2); font-size: 13px; line-height: 1.6; }
.lo-mem li:first-child { border-top: 0; }
.lo-mem small { color: var(--faint); }
@media (max-width: 760px) { .lo-diff-grid { grid-template-columns: 1fr; } .lo-by { margin-left: 0; width: 100%; } .lo-test { grid-template-columns: 1fr; } }
