/* Jaka Brain 控制台的样式（2026-10-27 从 index.html 拆出来；2026-11-06 重新设计：深色导航 + 明亮内容区，统一字号、间距、圆角、阴影） */
/* ───────── 设计令牌 ─────────
   页面：冷中性底 + 白卡片；导航：深蓝黑；强调色：蓝。分类色（--c1…--c8）为经过 CVD 校验的固定顺序，图表和分类圆点都用它，不要改顺序。 */
:root {
  color-scheme: light;
  --page: #f3f4f8; --surface: #ffffff; --surface-2: #f5f6fa; --surface-3: #eceef4;
  --ink: #111827; --ink-2: #4b5363; --muted: #7b8494;
  --line: #e5e8ef; --line-strong: #d4d9e3; --grid: #edf0f5;
  --accent: #0284c7; --accent-ink: #0369a1; --accent-soft: #e0f2fe; --accent-glow: rgba(2, 132, 199, .22);
  --good: #0f8a3c; --good-soft: #e3f6ea; --warn: #a3650a; --warn-soft: #fff3d6; --bad: #d0392f; --bad-soft: #fde8e6;
  --c1: #0284c7; --c2: #eb6834; --c3: #159f6e; --c4: #e6a100; --c5: #e87ba4; --c6: #0a8a2a; --c7: #5b4bc4; --c8: #e34948; --c0: #a3a8b3;
  --seq0: #e9ecf3; --seq1: #bcd1fb; --seq2: #7ea8f3; --seq3: #2b63e6; --seq4: #16388f;
  --st-good: #16a34a; --st-warn: #f5a623;
  --a2: #65a30d; --a2-ink: #3f6212; --a2-soft: #ecfccb; --a3: #e11d48; --a3-ink: #be123c; --a3-soft: #ffe4e6;
  --hero: radial-gradient(120% 140% at 0% 0%, #d6efff 0%, #ffffff 60%); --hero-line: #bae0f7;
  --ph-fg: #ffffff; --ph-1: #0369a1; --ph-2: #3f6212; --ph-3: #be123c;
  --nav-bg: #072131; --nav-bg-2: #0a2a3c; --nav-ink: #c9d2e3; --nav-ink-2: #7d8aa3; --nav-line: rgba(255,255,255,.08); --nav-active: rgba(255,255,255,.1);
  --shadow-1: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.04);
  --shadow-2: 0 12px 32px rgba(17,24,39,.14), 0 2px 8px rgba(17,24,39,.06);
  --shadow-3: 0 24px 60px rgba(17,24,39,.22);
  --r: 12px; --r-lg: 16px; --r-sm: 9px;
  --ease: cubic-bezier(.2,.7,.2,1); --dur: 160ms;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #06141c; --surface: #0c222d; --surface-2: #0a1d26; --surface-3: #123040;
    --ink: #e8f6fb; --ink-2: #b0d0dc; --muted: #7fa6b6;
    --line: #163744; --line-strong: #22495a; --grid: #11303c;
    --accent: #38bdf8; --accent-ink: #7dd3fc; --accent-soft: rgba(56,189,248,.15); --accent-glow: rgba(56,189,248,.3);
    --good: #34d399; --good-soft: rgba(52,211,153,.14); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13); --bad: #fb7185; --bad-soft: rgba(251,113,133,.15);
    --st-good: #34d399; --st-warn: #fbbf24;
    --a2: #a3e635; --a2-ink: #bef264; --a2-soft: rgba(163,230,53,.13); --a3: #fb7185; --a3-ink: #fda4af; --a3-soft: rgba(251,113,133,.14);
    --hero: radial-gradient(120% 140% at 0% 0%, #0c4a5e 0%, #0b2532 50%, #0a2029 100%); --hero-line: rgba(56,189,248,.35);
    --ph-fg: #06141c; --ph-1: #38bdf8; --ph-2: #a3e635; --ph-3: #fb7185;
    --c1: #38bdf8; --c2: #e6703f; --c3: #22b386; --c4: #d9a21b; --c5: #e384ab; --c6: #34a853; --c7: #8f84ea; --c8: #ef6b6b; --c0: #6b7280;
    --seq0: #1c2434; --seq1: #1e3a7a; --seq2: #2d5ec2; --seq3: #5b8cf5; --seq4: #a9c4ff;
    --nav-bg: #041017; --nav-bg-2: #06161f; --nav-ink: #c4dde6; --nav-ink-2: #6f97a6; --nav-line: rgba(255,255,255,.07); --nav-active: rgba(56,189,248,.14);
    --shadow-1: 0 1px 2px rgba(0,0,0,.3); --shadow-2: 0 12px 32px rgba(0,0,0,.5); --shadow-3: 0 24px 60px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #06141c; --surface: #0c222d; --surface-2: #0a1d26; --surface-3: #123040;
  --ink: #e8f6fb; --ink-2: #b0d0dc; --muted: #7fa6b6;
  --line: #163744; --line-strong: #22495a; --grid: #11303c;
  --accent: #38bdf8; --accent-ink: #7dd3fc; --accent-soft: rgba(56,189,248,.15); --accent-glow: rgba(56,189,248,.3);
  --good: #34d399; --good-soft: rgba(52,211,153,.14); --warn: #fbbf24; --warn-soft: rgba(251,191,36,.13); --bad: #fb7185; --bad-soft: rgba(251,113,133,.15);
    --st-good: #34d399; --st-warn: #fbbf24;
    --a2: #a3e635; --a2-ink: #bef264; --a2-soft: rgba(163,230,53,.13); --a3: #fb7185; --a3-ink: #fda4af; --a3-soft: rgba(251,113,133,.14);
    --hero: radial-gradient(120% 140% at 0% 0%, #0c4a5e 0%, #0b2532 50%, #0a2029 100%); --hero-line: rgba(56,189,248,.35);
    --ph-fg: #06141c; --ph-1: #38bdf8; --ph-2: #a3e635; --ph-3: #fb7185;
  --c1: #38bdf8; --c2: #e6703f; --c3: #22b386; --c4: #d9a21b; --c5: #e384ab; --c6: #34a853; --c7: #8f84ea; --c8: #ef6b6b; --c0: #6b7280;
  --seq0: #1c2434; --seq1: #1e3a7a; --seq2: #2d5ec2; --seq3: #5b8cf5; --seq4: #a9c4ff;
  --nav-bg: #041017; --nav-bg-2: #06161f; --nav-ink: #c4dde6; --nav-ink-2: #6f97a6; --nav-line: rgba(255,255,255,.07); --nav-active: rgba(56,189,248,.14);
  --shadow-1: 0 1px 2px rgba(0,0,0,.3); --shadow-2: 0 12px 32px rgba(0,0,0,.5); --shadow-3: 0 24px 60px rgba(0,0,0,.6);
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ───────── 基础 ───────── */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font: 14.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); } .small { font-size: 12.5px; }
::selection { background: var(--accent-soft); }

/* ───────── 布局：左侧深色导航 + 内容 ───────── */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(180deg, var(--nav-bg) 0%, var(--nav-bg-2) 100%); color: var(--nav-ink); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 22px; font-weight: 700; font-size: 15.5px; letter-spacing: -.2px; color: #fff; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none;
  background: #38bdf8; color: #032031; box-shadow: 0 6px 16px rgba(56,189,248,.35); }
.brand .logo svg.i { width: 19px; height: 19px; }
.brand .sub { display: block; font-weight: 400; font-size: 11.5px; color: var(--nav-ink-2); letter-spacing: 0; margin-top: 1px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; min-height: 40px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  color: var(--nav-ink); text-align: left; width: 100%; font-size: 14px; font-weight: 500; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav-item svg.i { color: var(--nav-ink-2); transition: color var(--dur) var(--ease); }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:hover svg.i { color: #fff; }
.nav-item.active { background: var(--nav-active); color: #fff; font-weight: 600; }
.nav-item.active svg.i { color: var(--accent); }
.nav-item.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--accent), var(--a2)); }
.nav-item .count { margin-left: auto; font-size: 11px; padding: 0 7px; min-width: 20px; text-align: center; border-radius: 999px; background: #f5a623; color: #1a1200; font-weight: 700; line-height: 18px; }
.side .spacer { flex: 1; }
.side .foot { display: flex; gap: 6px; padding: 12px 2px 0; border-top: 1px solid var(--nav-line); }
.side .icon-btn { border-color: transparent; background: rgba(255,255,255,.05); color: var(--nav-ink); }
.side .icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink-2); flex: none; transition: background var(--dur) var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
main { min-width: 0; padding: 26px 36px 90px; max-width: 1400px; width: 100%; }
.subnav { display: inline-flex; gap: 2px; flex-wrap: wrap; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.subnav a { text-decoration: none; }
.subnav .chip { border: 0; background: transparent; border-radius: 9px; min-height: 32px; padding: 0 14px; color: var(--ink-2); font-weight: 500; }
.subnav .chip:hover { background: var(--surface-2); color: var(--ink); }
.subnav .chip.on { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 2px 8px var(--accent-glow); }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; line-height: 1.25; margin: 0; letter-spacing: -.02em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; max-width: 72em; line-height: 1.6; }
.page-head .act { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; gap: 2px; overflow-x: auto; scrollbar-width: none; background: var(--nav-bg); }
  .side::-webkit-scrollbar { display: none; }
  .brand { padding: 0 10px 0 2px; } .brand .sub, .brand .name, .side .spacer { display: none; }
  .brand .logo { width: 30px; height: 30px; border-radius: 9px; }
  .nav-item { width: auto; white-space: nowrap; padding: 8px 11px; min-height: 36px; font-size: 13.5px; gap: 7px; }
  .nav-item.active::before { display: none; }
  .nav-item .count { margin-left: 2px; }
  /* 顶栏横滑时底部按钮钉在右边，「退出」等按钮不用滑也看得到 */
  .side .foot { border: 0; padding: 0 0 0 8px; margin-left: 4px; position: sticky; right: 0; background: var(--nav-bg); box-shadow: -12px 0 10px -6px var(--nav-bg); }
  .side .icon-btn { width: 34px; height: 34px; }
  main { padding: 18px 16px 80px; }
  .page-head h1 { font-size: 22px; }
}

/* ───────── 基础组件 ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; white-space: nowrap; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-1); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent)); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 2px 8px var(--accent-glow); }
.btn.primary:hover { filter: brightness(1.06); border-color: var(--accent); }
.btn.sm { min-height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn.good { color: var(--good); } .btn.good:hover { background: var(--good-soft); border-color: var(--good); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn svg.i { width: 16px; height: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 18px 22px 0; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; margin: 0; font-weight: 700; }
.card-head .hint { color: var(--muted); font-size: 12.5px; }
.card-head .tools { margin-left: auto; display: flex; gap: 6px; }
.card-body { padding: 14px 22px 20px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 3px 8px; border-radius: 7px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.seg button svg.i { width: 15px; height: 15px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 1px 9px; min-height: 20px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); font-weight: 500; }
.badge.user { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.ai { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.rev { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.badge.off { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
details.task { border-bottom: 1px solid var(--line); }
details.task > summary { padding: 12px 18px; cursor: pointer; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; list-style: none; }
details.task > summary > b { overflow-wrap: anywhere; }
details.task > summary .btn { margin-left: auto; }
details.task > summary > div { flex-basis: 100%; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.field { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; min-height: 38px; padding: 7px 12px; min-width: 0; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.field:hover { border-color: var(--muted); }
.field:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field::placeholder { color: var(--muted); }
textarea.field { line-height: 1.6; }
select.field { padding-right: 30px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8494' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 220px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 4px 13px; cursor: pointer; font-size: 12.5px; min-height: 30px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip:hover { background: var(--surface-2); color: var(--ink); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 52px 16px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 11px 18px; border-radius: 12px; z-index: 100; font-size: 13px; max-width: calc(100% - 32px); white-space: pre-wrap; box-shadow: var(--shadow-3); animation: rise 200ms var(--ease); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ───────── 总览 ───────── */
.grid { display: grid; gap: 16px; }
.grid > *, .layout-2 > *, .review > * { min-width: 0; }  /* 防止内容的最小宽度把网格撑出屏幕 */
.toolbar .field { max-width: 100%; }
@media (max-width: 640px) { .toolbar select.field { flex: 1 1 140px; } }
.tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
@media (max-width: 1200px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 18px 20px; position: relative; overflow: hidden; }
.tile .label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tile .label svg.i { width: 16px; height: 16px; color: var(--accent); }
.tile .value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; margin-top: 8px; }
.tile .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.delta-up { color: var(--good); font-weight: 600; } .delta-down { color: var(--bad); font-weight: 600; }
.meter { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--a2)); border-radius: 3px; }
.meter.warn > i { background: var(--st-warn); }
.meter-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 9px; }
.cols-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-bottom: 16px; }
@media (max-width: 1100px) { .cols-2 { grid-template-columns: 1fr; } }
.viz { width: 100%; display: block; overflow: visible; }
.viz text { font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hbar { display: grid; grid-template-columns: minmax(84px, 150px) 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; }
.hbar.link { cursor: pointer; }
.hbar.link:hover { background: var(--surface-2); }
.hbar .name { display: flex; align-items: center; gap: 7px; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbar .track { height: 12px; display: flex; gap: 2px; }
.hbar .track b { display: block; height: 100%; min-width: 2px; border-radius: 0; }
.hbar .track b:first-child { border-radius: 4px 0 0 4px; }
.hbar .track b:last-child { border-radius: 0 4px 4px 0; }
.hbar .track b:only-child { border-radius: 4px; }
.hbar .val { font-size: 12.5px; color: var(--ink-2); min-width: 72px; text-align: right; }
.stack100 { display: flex; height: 14px; gap: 2px; border-radius: 5px; overflow: hidden; margin: 6px 0 14px; }
.stack100 b { display: block; height: 100%; }
.kv-list { display: grid; gap: 8px; }
.kv-list .row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.kv-list .row .v { margin-left: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.t th { color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .02em; position: sticky; top: 0; background: var(--surface); }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover { background: var(--surface-2); }
.minibar { height: 6px; border-radius: 3px; background: var(--c1); display: inline-block; vertical-align: middle; margin-right: 6px; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--page); border-radius: 10px; padding: 8px 12px; font-size: 12.5px; box-shadow: var(--shadow-2); min-width: 130px; }
.tip .t1 { font-weight: 650; margin-bottom: 3px; }
.tip .r { display: flex; align-items: center; gap: 7px; } .tip .r .v { margin-left: auto; padding-left: 14px; font-variant-numeric: tabular-nums; }
.heat-wrap { overflow-x: auto; }
.heat-legend { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); justify-content: flex-end; margin-top: 8px; }
.heat-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ───────── 列表 / 记忆 / 知识 ───────── */
.mem { display: flex; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); margin-bottom: 8px; box-shadow: var(--shadow-1); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.mem:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.mem.retired { opacity: .55; }
.mem .body { flex: 1; min-width: 0; }
.mem .content { white-space: pre-wrap; word-break: break-word; line-height: 1.65; }
.mem .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.mem .ops { display: flex; flex-direction: column; gap: 4px; }
.mem textarea { width: 100%; min-height: 80px; border: 1px solid var(--accent); border-radius: 10px; padding: 9px; background: var(--surface); resize: vertical; }
@media (max-width: 640px) { .mem { flex-direction: column; } .mem .ops { flex-direction: row; flex-wrap: wrap; } }
.group-title { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 24px 0 10px; display: flex; align-items: center; gap: 8px; text-transform: none; }
.kind { font-weight: 600; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.layout-2 { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } .tree { position: static !important; max-height: none !important; } }
.tree { padding: 8px; position: sticky; top: 16px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.tree .node { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; cursor: pointer; font-size: 13px; min-height: 36px; color: var(--ink-2); }
.tree .node:hover { background: var(--surface-2); color: var(--ink); }
.tree .node.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.tree .node .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tree .l1 { font-weight: 600; color: var(--ink); } .tree .l2 { padding-left: 28px; } .tree .l3 { padding-left: 44px; font-size: 12.5px; }
.tree .sep { border-top: 1px solid var(--line); margin: 6px 4px; }
.tree .flag { font-size: 10.5px; padding: 0 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.rows .row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background var(--dur) var(--ease); }
.rows .row:hover { background: var(--surface-2); }
.rows .row:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.rows .row:last-child { border-bottom: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.rows .row .t { font-weight: 600; overflow-wrap: anywhere; }
.rows .row .s { color: var(--muted); font-size: 12.5px; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rows .row .side-info { margin-left: auto; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; display: grid; gap: 4px; justify-items: end; }
@media (max-width: 640px) { .rows .row { flex-wrap: wrap; } .rows .row .side-info { width: 100%; justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 8px; } }
.type-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.type-ic svg.i { width: 16px; height: 16px; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 16px; }
.snip { color: var(--ink-2); font-size: 13px; margin-top: 6px; word-break: break-word; line-height: 1.6; }
.snip mark { background: var(--warn-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ───────── 驾驶舱 ───────── */
.cp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cp-head h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.cp-head .clock { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cp-head .ver { margin-left: auto; }
.cp-health { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 800px) { .cp-health { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.manual .md { max-width: 52em; }
.cp-light { padding: 14px 16px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 3px; position: relative; overflow: hidden; box-shadow: var(--shadow-1); }
.cp-light::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--lc, var(--line)); }
.cp-light .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.cp-light .v { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; letter-spacing: -.01em; }
.cp-light .v i { width: 9px; height: 9px; border-radius: 50%; background: var(--lc); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc) 22%, transparent); }
.cp-light .s { font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cp-light.ok { --lc: var(--st-good); } .cp-light.warn { --lc: var(--st-warn); } .cp-light.bad { --lc: var(--bad); }
.cp-light.bad { background: color-mix(in srgb, var(--bad) 5%, var(--surface)); }
.cp-light.warn { background: color-mix(in srgb, var(--st-warn) 6%, var(--surface)); }
/* 汽车日报（中国汽车日报项目驾驶舱）：每份日报近 14 天一行小格子 */
.rd-days { display: grid; gap: 10px; }
.rd-row { display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 12px; align-items: center; }
.rd-row .n { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-row .n span { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.rd-cells { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.rd-cell { height: 24px; border-radius: 6px; background: var(--grid); border: 1px solid transparent; }
.rd-key { background: var(--grid); }
:is(.rd-cell, .rd-key).rd-sent { background: var(--st-good); } :is(.rd-cell, .rd-key).rd-built { background: var(--accent); } :is(.rd-cell, .rd-key).rd-failed { background: var(--bad); }
:is(.rd-cell, .rd-key).rd-none { background: var(--c0); } :is(.rd-cell, .rd-key).rd-preview { background: var(--accent-soft); border-color: var(--accent); }
.rd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: -4px 0 14px; }
.rd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid transparent; }
.rd-cell.today { outline: 2px solid var(--ink-2); outline-offset: 1px; }
.rd-axis { display: grid; grid-template-columns: minmax(96px, 150px) 1fr; gap: 12px; font-size: 11px; color: var(--muted); }
.rd-axis div:last-child { display: flex; justify-content: space-between; }
.rd-ms .row { align-items: flex-start; }
.rd-ms .st { width: 18px; flex: none; text-align: center; }
.rd-ms .st.done { color: var(--good); } .rd-ms .st.doing { color: var(--accent); } .rd-ms .st.todo { color: var(--muted); }
.rd-ms .note { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.rd-block { margin-bottom: 16px; }
.rd-block .section-title { flex-wrap: wrap; row-gap: 4px; }
.rd-block .section-title h2 { white-space: nowrap; }
.rd-block .section-title .btn { margin-left: auto; align-self: center; }
.rd-lights { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1150px) { .rd-lights { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rd-lights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.rd-body > * { min-width: 0; }
.rd-block h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 4px; }
@media (max-width: 1050px) { .rd-body { grid-template-columns: 1fr; } }
.rd-rcpt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
@media (max-width: 1050px) { .rd-rcpt { grid-template-columns: 1fr; } }
.rd-rcpt .row .w { white-space: nowrap; }
.rd-rcpt .em { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rd-deliv > summary { cursor: pointer; padding: 4px 0; }
.rd-deliv > .row { padding-left: 16px; }
.rd-rcpt .bad { color: var(--bad); }
.rd-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.rd-more > summary { cursor: pointer; color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 8px 0; list-style: none; }
.rd-more > summary::before { content: "▸ "; } .rd-more[open] > summary::before { content: "▾ "; }
@media (max-width: 560px) { .rd-row, .rd-axis { grid-template-columns: 1fr; gap: 4px; } .rd-axis div:first-child { display: none; } .rd-cell { height: 20px; } }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.cp-grid > * { min-width: 0; }
@media (max-width: 1050px) { .cp-grid { grid-template-columns: 1fr; } }
.launch-primary { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; text-decoration: none !important; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2f6df0 0%, #2b63e6 45%, #4b3fd6 100%); color: #fff; box-shadow: 0 10px 26px rgba(43,99,230,.32); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.launch-primary::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); }
.launch-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(43,99,230,.4); }
.launch-primary .ico { width: 48px; height: 48px; border-radius: 13px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.launch-primary .ico svg.i { width: 26px; height: 26px; }
.launch-primary b { font-size: 17px; display: block; }
.launch-primary span { font-size: 13px; opacity: .88; }
.launch-primary .go { margin-left: auto; font-weight: 700; white-space: nowrap; position: relative; }
.launch-groups { display: grid; gap: 12px; margin-top: 16px; }
.launch-groups .g { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.launch-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.launch { display: grid; gap: 2px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none !important; color: var(--ink); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.launch:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.launch .l { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.launch .l svg.i { width: 13px; height: 13px; color: var(--muted); margin-left: auto; }
.launch .d { font-size: 11.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-kpi { padding: 16px 18px; }
.cp-kpi .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.cp-kpi .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.cp-kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cp-spark { grid-column: 1 / -1; padding: 16px 18px; }
.cp-list .row { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cp-list .row:last-child { border-bottom: 0; }
.cp-list .row .w { color: var(--muted); font-size: 12px; white-space: nowrap; margin-left: auto; }
.cp-list .row a { color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-list .row a:hover { color: var(--accent-ink); }

/* 驾驶舱两栏（2026-11-06 第二版）：左边目标和日报（要读、要动手的），右边窄侧栏放系统状态、数字、入口、剪贴板和待办（扫一眼的）。
   窄屏变成一列，顺序是 目标 → 系统状态 → 日报 → 其余，最要紧的灯不会被挤到最下面。 */
.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cp-main, .cp-side { display: grid; gap: 16px; min-width: 0; }
.cp-main > *, .cp-side > * { margin: 0 !important; }
.cp-side > .card { padding: 16px 18px; }
.cp-side-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cp-side-h h2 { font-size: 14px; margin: 0; font-weight: 700; }
.cp-side-h span { font-size: 12px; color: var(--muted); }
.cp-tally { margin-left: auto; display: inline-flex; gap: 6px; }
.cp-tally b { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.cp-tally .t-ok { background: var(--good-soft); color: var(--good); }
.cp-tally .t-warn { background: var(--warn-soft); color: var(--warn); }
.cp-tally .t-bad { background: var(--bad-soft); color: var(--bad); }
/* 侧栏里的灯：不再一盏一张卡，改成一行一盏，有问题的一眼就能看到 */
#cpHealth { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
#cpHealth .cp-light { grid-template-columns: 78px minmax(0, 1fr); column-gap: 10px; row-gap: 0; padding: 8px 8px; border: 0; border-radius: 10px; box-shadow: none; background: transparent; align-items: baseline; }
#cpHealth .cp-light + .cp-light { border-top: 1px solid var(--line); border-radius: 0; }
#cpHealth .cp-light::before { display: none; }
#cpHealth .cp-light .k { font-size: 12.5px; grid-row: 1 / 3; align-self: center; }
#cpHealth .cp-light .v { font-size: 13.5px; font-weight: 600; }
#cpHealth .cp-light .v i { width: 8px; height: 8px; }
#cpHealth .cp-light .s { font-size: 11.5px; }
#cpHealth .cp-light.warn { background: color-mix(in srgb, var(--st-warn) 9%, transparent); border-radius: 10px; }
#cpHealth .cp-light.bad { background: color-mix(in srgb, var(--bad) 9%, transparent); border-radius: 10px; }
#cpHealth .cp-light.warn + .cp-light, #cpHealth .cp-light.bad + .cp-light, #cpHealth .cp-light + .cp-light.warn, #cpHealth .cp-light + .cp-light.bad { border-top-color: transparent; }
.cp-numbers .cp-kpis { gap: 14px 12px; }
.cp-numbers .cp-kpi { padding: 0; }
.cp-numbers .cp-kpi .v { font-size: 26px; }
.cp-numbers .cp-spark { padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); }
.cp-numbers .cp-spark .k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cp-launch-card .launch-primary { padding: 14px 16px; gap: 12px; }
.cp-launch-card .launch-primary .ico { width: 40px; height: 40px; border-radius: 11px; }
.cp-launch-card .launch-primary b { font-size: 15px; }
.cp-launch-card .launch-groups { margin-top: 12px; }
.cp-launch-card .launch-row { grid-template-columns: 1fr; }
.cp-side .clip-input { min-height: 64px; }
/* 主栏变窄了，日报的五盏灯按宽度自动排，放不下就换行，不挤成两行字 */
.cp-main .rd-lights { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
/* 主栏：目标卡是整页的主角，标题放大、留白更多 */
.cp-main .goal-card { padding: 24px 26px; }
.cp-main .goal-title { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 8px; }
.cp-head h1 { font-size: 28px; }
@media (max-width: 1180px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-main, .cp-side { display: contents; }
  .cp-layout > .cp-main > *, .cp-layout > .cp-side > * { margin-bottom: 16px !important; }
  #goalBox { order: 1; } .cp-status { order: 2; } #cpRadar { order: 3; } .cp-numbers { order: 4; } .cp-launch-card { order: 5; } .cp-layout #cpClip { order: 6; }
  .cp-side > section:not(.cp-status):not(.cp-numbers):not(.cp-launch-card):not(#cpClip) { order: 7; }
  .cp-layout { display: flex; flex-direction: column; gap: 0; }
  #cpHealth { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  #cpHealth .cp-light + .cp-light { border-top: 0; }
}
@media (max-width: 560px) { #cpHealth { grid-template-columns: 1fr; } }

/* 深海配色改版（2026-11-06，jaka 从三套样稿里选了 C）：问候语 + 状态胶囊，目标卡带光晕，状态有问题的放大、正常的缩成两列，数字块各有颜色 */
.cp-head { align-items: flex-end; gap: 14px 16px; margin-bottom: 24px; }
.cp-hello { flex: 1 1 320px; min-width: 0; }
.cp-hello .clock { display: block; }
.cp-hello h1 { font-size: 32px; margin: 2px 0 0; letter-spacing: -.02em; }
.cp-hello h1 em { font-style: normal; color: var(--accent-ink); }
.cp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.cp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cp-pill.ok { background: var(--good-soft); color: var(--good); }
.cp-pill.warn { background: var(--warn-soft); color: var(--warn); }
.cp-pill.bad { background: var(--bad-soft); color: var(--bad); }
.cp-head .ver { margin-left: auto; }
.cp-pills { flex: 1 1 100%; order: 3; }
/* 目标卡：深海光晕底，标题放大 */
.cp-main .goal-card { background: var(--hero); border-color: var(--hero-line); border-radius: 20px; }
.cp-main .goal-card::before { display: none; }
.cp-main .goal-phase, .cp-main .goal-item { background: color-mix(in srgb, var(--surface) 82%, transparent); }
.cp-main .goal-phases { counter-reset: ph; }
.cp-main .goal-phase { position: relative; padding-left: 46px; }
.cp-main .goal-phase::before { counter-increment: ph; content: counter(ph); position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; background: var(--ph-1); color: var(--ph-fg); }
.cp-main .goal-phase:nth-child(3n+2)::before { background: var(--ph-2); }
.cp-main .goal-phase:nth-child(3n)::before { background: var(--ph-3); }
.cp-main .goal-item { border-radius: 14px; }
/* 系统状态：有问题的排最前、整行放大；正常的两列小字 */
#cpHealth { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
#cpHealth .cp-light.ok { grid-template-columns: 1fr; padding: 6px 4px; border-top: 0 !important; }
#cpHealth .cp-light.ok .k { grid-row: auto; font-size: 12px; }
#cpHealth .cp-light.ok .v { font-size: 13px; }
#cpHealth .cp-light.ok .s { display: none; }
#cpHealth .cp-light.warn, #cpHealth .cp-light.bad { grid-column: 1 / -1; order: -1; margin-bottom: 8px; padding: 11px 14px; border: 1px solid; border-radius: 12px !important; }
#cpHealth .cp-light.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
#cpHealth .cp-light.bad { order: -2; background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
#cpHealth .cp-light.warn .v { color: var(--warn); } #cpHealth .cp-light.bad .v { color: var(--bad); }
/* 知识库数字：四块淡彩底 */
.cp-numbers .cp-kpis { gap: 10px; }
.cp-numbers .cp-kpi { padding: 12px 14px; border-radius: 12px; }
.cp-numbers .cp-kpi.t1 { background: var(--accent-soft); } .cp-numbers .cp-kpi.t1 .k { color: var(--accent-ink); }
.cp-numbers .cp-kpi.t2 { background: var(--a2-soft); } .cp-numbers .cp-kpi.t2 .k { color: var(--a2-ink); }
.cp-numbers .cp-kpi.t3 { background: var(--a3-soft); } .cp-numbers .cp-kpi.t3 .k { color: var(--a3-ink); }
.cp-numbers .cp-kpi.t4 { background: var(--warn-soft); } .cp-numbers .cp-kpi.t4 .k { color: var(--warn); }
.cp-numbers .cp-spark { border-top: 0; }
/* 快捷入口：不要大块渐变按钮，改成带彩色图标块的列表行 */
.cp-launch-card .launch-primary { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); padding: 10px 12px; margin-bottom: 8px; }
.cp-launch-card .launch-primary::after { display: none; }
.cp-launch-card .launch-primary:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.cp-launch-card .launch-primary .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.cp-launch-card .launch-primary:nth-of-type(2n) .ico { background: var(--a2-soft); color: var(--a2-ink); }
.cp-launch-card .launch-primary .ico svg.i { width: 18px; height: 18px; }
.cp-launch-card .launch-primary b { font-size: 14px; }
.cp-launch-card .launch-primary span { font-size: 12px; opacity: 1; color: var(--muted); }
.cp-launch-card .launch-primary b, .cp-launch-card .launch-primary .go { color: var(--ink); }
.cp-launch-card .launch-primary .go { color: var(--accent-ink); font-size: 12.5px; }

/* ───────── 知识地图 / 主题页 ───────── */
.hero { padding: 28px 30px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--line); margin-bottom: 20px; box-shadow: var(--shadow-1); }
.hero h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--ink-2); max-width: 760px; }
.hero .stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero .stats b { display: block; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; }
.section-title h2 { font-size: 16px; margin: 0; display: inline-flex; align-items: center; gap: 9px; }
.section-title h2::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--a2)); flex: none; }
.section-title span { color: var(--muted); font-size: 12.5px; }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.domain { position: relative; padding: 18px 20px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); overflow: hidden; }
.domain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cat); }
.domain:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.domain .top { display: flex; align-items: center; gap: 10px; }
.domain .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat) 14%, transparent); color: var(--cat); font-weight: 700; font-size: 15px; flex: none; }
.domain h3 { margin: 0; font-size: 15.5px; }
.domain .cnt { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.domain .ov { color: var(--ink-2); font-size: 13.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.domain .chips span { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.domain .more { font-size: 12.5px; color: var(--accent-ink); font-weight: 600; margin-top: auto; }
.domain.pending .ov { color: var(--muted); font-style: italic; }
.now-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.now { padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.now:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.now .nm { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.now .when { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--muted); }
.now .ln { font-size: 12.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-hero { padding: 26px 28px; border-radius: var(--r-lg); border: 1px solid var(--line); margin-bottom: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 12%, var(--surface)), var(--surface) 65%); box-shadow: var(--shadow-1); }
.topic-hero .crumb { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.topic-hero .crumb a { cursor: pointer; }
.topic-hero h1 { margin: 0 0 10px; font-size: 26px; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.topic-hero .ov { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-width: 900px; margin: 0; }
.topic-hero .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.kp { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kp div { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; }
.kp div i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--cat) 16%, transparent); color: var(--cat); }
.diagram { overflow-x: auto; text-align: center; padding: 6px 0; }
.diagram svg { max-width: 100%; height: auto; }
.diagram .fallback { text-align: left; white-space: pre-wrap; font-size: 12.5px; color: var(--muted); }
.flow-desc { color: var(--ink-2); font-size: 13px; margin: 0 0 8px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); border-radius: 1px; }
.timeline .ev { position: relative; padding: 4px 0 14px; }
.timeline .ev::before { content: ""; position: absolute; left: -21px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--cat); }
.timeline .ev .d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline .ev .e { font-size: 13.5px; }
.timeline .ev .e a { cursor: pointer; }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.theme { padding: 14px 16px; }
.theme h3 { margin: 0 0 4px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.theme p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.theme ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.theme li a { display: block; padding: 4px 8px; margin: 0 -8px; border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.theme li a:hover { background: var(--surface-2); text-decoration: none; }
.todo { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; padding: 6px 0; }
.todo i { flex: none; margin-top: 3px; width: 14px; height: 14px; border: 2px solid var(--st-warn); border-radius: 4px; }
.sumcard { border-radius: var(--r); padding: 14px 16px; background: color-mix(in srgb, var(--cat, var(--accent)) 8%, var(--surface)); border: 1px solid var(--line); margin-bottom: 14px; }
.sumcard .s { font-size: 14.5px; line-height: 1.7; }
.sumcard ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
details.raw > summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; padding: 8px 0; list-style: none; }
details.raw > summary::before { content: "▸ "; } details.raw[open] > summary::before { content: "▾ "; }

.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.series-card { padding: 18px 20px; cursor: pointer; display: grid; gap: 8px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.series-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.series-card h3 { margin: 0; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
/* 空间（2026-10-26）：项目页 = jaka 写的正文 + 贴入 + 自动汇总 */
.space-card.stopped { opacity: .6; }
.space-sec { margin-bottom: 16px; }
.space-sec > h2 { font-size: 15px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.space-sec > h2 .act { margin-left: auto; display: flex; gap: 6px; }
.space-paste textarea, .space-body textarea { width: 100%; min-height: 120px; resize: vertical; font: inherit; line-height: 1.6; }
.space-body textarea { min-height: 320px; font-family: var(--mono); font-size: 13px; }
.space-paste .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.space-paste .row .field { flex: 1 1 200px; }
.space-drop { display: block; margin-top: 10px; padding: 14px; border: 2px dashed var(--line-strong); border-radius: var(--r); text-align: center; cursor: pointer; color: var(--muted); background: var(--surface-2); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.space-drop:hover, .space-drop.over { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.paste-item { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 8px; background: var(--surface); }
.paste-item summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.paste-item summary .tt { font-weight: 600; flex: 1 1 200px; min-width: 0; }
/* 资料库（2026-11-18）：上传进度一行一个文件；条目标题和状态一行，按钮在手机上自动折行 */
.lib-uploads { list-style: none; margin: 8px 0 0; padding: 0; }
.lib-uploads li { padding: 3px 0; overflow-wrap: anywhere; }
.lib-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lib-head .tt { font-weight: 600; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.lib-item .small { margin-top: 4px; overflow-wrap: anywhere; }
.lib-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rev-list { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.series-card .latest { font-size: 13px; color: var(--ink-2); }
.strip { display: flex; gap: 3px; flex-wrap: nowrap; overflow: hidden; }
.strip i { width: 9px; height: 18px; border-radius: 2px; background: var(--seq0); flex: none; }
.strip i.on { background: var(--seq3); }
.issue-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.issue-layout > * { min-width: 0; }
@media (max-width: 900px) { .issue-layout { grid-template-columns: 1fr; } }
.issues { padding: 8px; max-height: calc(100dvh - 160px); overflow-y: auto; position: sticky; top: 16px; }
.issues .month { font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 10px 4px; }
.issues button { display: grid; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 9px; cursor: pointer; gap: 1px; }
.issues button:hover { background: var(--surface-2); }
.issues button.active { background: var(--accent-soft); color: var(--accent-ink); }
.issues button .d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.issues button .tt { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }


/* ───────── 架构页 ───────── */
.about { --mac: var(--c4); --cf: var(--c2); --sb: var(--c3); --ai: var(--c1); --ext: var(--c7); --box: var(--surface); --panel: var(--surface); --ink-2v: var(--ink-2); }
.ab-fig { padding: 18px; margin: 0 0 6px; }
.ab-fig svg { display: block; max-width: 100%; height: auto; margin: 0 auto; color: var(--ink); }
.ab-diagram-body { overflow-x: auto; cursor: zoom-in; }
.ab-diagram-body .diagram svg { max-width: 100%; height: auto; }
.ab-diagram-body.natural { cursor: zoom-out; }
.ab-diagram-body.natural .diagram { width: max-content; min-width: 100%; overflow: visible; }
.ab-diagram-body.natural .diagram svg { max-width: none; }
.ab-fig figcaption { font-size: 12.5px; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
.about .table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.about .table-wrap table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 620px; }
.about .table-wrap th, .about .table-wrap td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.about .table-wrap th { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; background: var(--surface-2); }
.about .table-wrap tr:last-child td { border-bottom: 0; }
.about .tag { display: inline-block; font-size: 11.5px; padding: 0 8px; border-radius: 999px; border: 1px solid; margin-right: 4px; white-space: nowrap; }
.about .tag.mac { color: var(--mac); } .about .tag.cf { color: var(--cf); } .about .tag.sb { color: var(--sb); }
.ab-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ab-live .card { padding: 14px 16px; }
.ab-live .k { font-size: 12px; color: var(--muted); }
.ab-live .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ab-live .s { font-size: 12px; color: var(--muted); }
.state-ok { color: var(--good); } .state-warn { color: var(--warn); } .state-bad { color: var(--bad); }
.change { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.change:last-child { border-bottom: 0; }
.change .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.change .clamp.open { display: block; }
.change .d { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ───────── 复盘 / 图谱 / 抽屉 / 弹窗 ───────── */
.review { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
@media (max-width: 800px) { .review { grid-template-columns: 1fr; } }
.dates button { display: flex; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 9px; cursor: pointer; gap: 8px; align-items: center; min-height: 40px; color: var(--ink-2); }
.dates button:hover { background: var(--surface-2); color: var(--ink); }
.dates button.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.md { word-break: break-word; line-height: 1.8; }
.md h1 { font-size: 22px; } .md h2 { font-size: 17.5px; margin-top: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .md h3 { font-size: 15px; margin-top: 20px; }
.md blockquote { margin: 10px 0; padding: 8px 16px; border-left: 3px solid var(--accent); color: var(--ink-2); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.md code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; font-family: var(--mono); border: 1px solid var(--line); }
.md pre { background: var(--surface-2); padding: 14px; border-radius: 10px; overflow-x: auto; border: 1px solid var(--line); }
.md pre code { background: none; padding: 0; border: 0; }
.md table { border-collapse: collapse; margin: 12px 0; display: block; overflow-x: auto; font-size: 13.5px; }
.md td, .md th { border: 1px solid var(--line); padding: 7px 11px; } .md th { background: var(--surface-2); font-weight: 600; }
.md img { max-width: 100%; border-radius: 10px; }
.md a { font-weight: 500; }
#graph { height: calc(100dvh - 210px); min-height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; box-shadow: var(--shadow-1); }
.graph-legend { position: absolute; left: 12px; bottom: 12px; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: 12px; box-shadow: var(--shadow-1); }
.graph-legend span { display: flex; align-items: center; gap: 7px; }
.mask { position: fixed; inset: 0; background: rgba(9,13,21,.46); z-index: 40; animation: fade var(--dur) var(--ease); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(800px, 100%); background: var(--surface); z-index: 41; border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow-3); animation: slide 240ms var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.drawer .head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); }
.drawer .head h3 { margin: 0; flex: 1; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.drawer .scroll { overflow-y: auto; padding: 20px 22px 48px; flex: 1; }
.confirm-list { display: grid; gap: 10px; margin-bottom: 18px; }
.confirm { padding: 16px 18px; display: grid; gap: 10px; border-left: 3px solid var(--st-warn); }
.confirm .q { font-weight: 600; overflow-wrap: anywhere; }
.confirm .cmem { border-left: 3px solid var(--line); padding: 4px 0 4px 10px; display: grid; gap: 6px; }
.confirm .cmem.gone { opacity: .55; }
.confirm .cmem p { margin: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.confirm .row-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.confirm .foot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.usage-scroll { overflow-x: auto; }
table.usage { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.usage th, table.usage td { padding: 9px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.usage th { font-size: 11.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); letter-spacing: .02em; }
table.usage .num { text-align: right; font-variant-numeric: tabular-nums; }
.badge.cand { background: color-mix(in srgb, var(--st-warn) 18%, transparent); color: var(--ink); }
details.audit { border-bottom: 1px solid var(--line); }
details.audit > summary { padding: 12px 18px; cursor: pointer; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
details.audit > summary > b { overflow-wrap: anywhere; }
.metas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cls { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r); padding: 14px; margin: 14px 0; display: grid; gap: 10px; }
.cls .row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
@media (max-width: 560px) { .cls .row2 { grid-template-columns: 1fr; } }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(9,13,21,.46); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal .card { width: min(560px, 100%); padding: 24px; box-shadow: var(--shadow-3); animation: pop 200ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
pre.code { margin: 8px 0 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2, var(--surface)); font: 400 13px var(--mono); white-space: pre-wrap; word-break: break-all; }
.form { display: grid; gap: 12px; }
.form label { font-size: 12.5px; color: var(--ink-2); display: grid; gap: 5px; font-weight: 500; }
.form textarea { min-height: 110px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 15% -10%, var(--accent-soft), transparent 60%), radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, var(--a2) 10%, transparent), transparent 60%), var(--page); }
.login .card { width: min(420px, 100%); padding: 32px 30px; box-shadow: var(--shadow-2); }
.login .brand .logo { width: 44px; height: 44px; border-radius: 13px; }
.login .brand .logo svg.i { width: 24px; height: 24px; }
.login h1 { font-size: 22px; margin: 16px 0 4px; letter-spacing: -.02em; }
.gbtn { width: 100%; justify-content: center; min-height: 44px; font-weight: 600; gap: 10px; text-decoration: none !important; color: var(--ink); }
.pwd-login { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pwd-login > summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
.pwd-login > summary::before { content: "▸ "; } .pwd-login[open] > summary::before { content: "▾ "; }

/* 驾驶舱剪贴板（2026-10-30） */
#cpClip { margin-bottom: 16px; }
.clip-input { width: 100%; min-height: 72px; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.5;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease); }
.clip-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--surface); }
.clip-actions { display: flex; justify-content: flex-end; margin: 8px 0 12px; }
.clip-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.clip { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface-2); }
.clip pre { margin: 0; white-space: pre-wrap; word-break: break-all; font-family: var(--mono); font-size: 13px; line-height: 1.5; max-height: 160px; overflow-y: auto; }
.clip-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.clip-meta .w { flex: 1; color: var(--muted); font-size: 12px; }

/* 驾驶舱「邮件」：邮件分身 JK（2026-10-30） */
.mail-item { margin-bottom: 10px; padding: 14px 16px; }
.mail-item > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mail-item > summary .tt { font-weight: 600; }
.mail-sum { flex-basis: 100%; color: var(--ink); margin-top: 4px; }
.mail-body { margin-top: 12px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.mail-sec ul { margin: 4px 0 0 18px; }
.mail-sec.risk b, .danger-text { color: var(--bad); }
.mail-warn { border-left: 3px solid var(--bad); padding: 7px 11px; background: var(--bad-soft); border-radius: 6px; }
.mail-draft { width: 100%; min-height: 180px; margin-top: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.6; resize: vertical; }
/* JK 交办（2026-10-31） */
.jobs-card { margin-bottom: 14px; padding: 16px 18px; }
.jobs-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: 8px; }
.jobs-switch { margin-left: auto; white-space: nowrap; }
.jobs-card textarea { width: 100%; resize: vertical; font: inherit; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; background: var(--surface); line-height: 1.6; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.jobs-card textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.jobs-card select { border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px; background: var(--surface); min-height: 30px; }
.jobs-actions { margin: 6px 0; display: flex; gap: 8px; align-items: center; }
.job-item { border-top: 1px solid var(--line); padding: 8px 0; }
.job-item > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.job-req, .job-result pre { white-space: pre-wrap; word-break: break-word; font-size: 13px; margin: 6px 0; }
.job-events { margin-top: 6px; }
.mail-raw { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow-y: auto; font-size: 13px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mail-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px; margin: 6px 0; }
.mail-fields label { display: grid; gap: 2px; min-width: 0; }
@media (max-width: 600px) { .mail-fields { grid-template-columns: minmax(0, 1fr); } }
.mail-preview { margin-top: 10px; display: grid; gap: 8px; }
.mail-sendcfg { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 4px 0 12px; }
.mail-sends { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* 驾驶舱「AI」：AI 网关第二期（2026-10-30） */
.ai-h { font-size: 15px; margin: 20px 0 8px; }
.ai-machines { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ai-card { display: grid; gap: 6px; padding: 14px 16px; }
.ai-route { overflow-wrap: anywhere; }
.ai-ok { font-weight: 600; }
.ai-cool { color: var(--warn); }
.ai-views { margin: 4px 0 12px; }
.ai-actual { border-top: 1px solid var(--line); padding-top: 6px; display: grid; gap: 3px; }

/* 驾驶舱「委员会」：模型委员会第一期（2026-10-30） */
.council-field { display: grid; gap: 4px; min-width: 0; margin-bottom: 8px; }
.council-field textarea, .council-field select { width: 100%; box-sizing: border-box; }
.council-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.council-models { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 8px; }
.council-models input { width: 16px; height: 16px; flex: none; margin: 0 4px 0 0; vertical-align: middle; }
.council-h { display: block; margin-top: 6px; }
.council-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; font: inherit; }
.council-turn { border-left: 3px solid var(--line); padding-left: 10px; }
.council-summary { border-left-color: var(--accent, var(--good)); }
.council-result { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.council-result h3 { margin: 0 auto 0 0; }
/* 委员会可视化（2026-10-31）：生成区和全屏查看浮层；报告本身在隔离框里，样式在 council-visual.js */
.council-visual { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; display: grid; gap: 6px; }
.council-visual select.field.sm { width: auto; min-width: 180px; }
.cnv-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(15, 23, 42, .72); }
.cnv-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 16px; background: var(--card, #fff); border-bottom: 1px solid var(--line); }
.cnv-bar .cnv-msg { margin-right: auto; }
.cnv-frame { flex: 1; width: 100%; border: 0; background: #eef0f3; }

/* 资产（2026-10-31） */
.hd-res { margin: 0; padding-left: 18px; }
.hd-card a { word-break: break-all; }
/* AI 工作流图（2026-11-01，js/flow.js）：一步一个方块，箭头连起来；窄屏竖排 */
.flow { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.flow-node { position: relative; flex: 0 1 calc(25% - 17px); min-width: 150px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; background: var(--surface); display: grid; gap: 3px; align-content: start; overflow-wrap: anywhere; }
.flow-node:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 10px; color: var(--muted); font-size: 14px; }
.flow-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flow-no { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); font-size: 11px; color: var(--muted); }
.flow-state { margin-left: auto; font-size: 11.5px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.flow-done { border-left-color: var(--good); } .flow-done .flow-state { background: var(--good-soft); color: var(--good); }
.flow-running, .flow-maybe { border-left-color: var(--accent); } .flow-running .flow-state, .flow-maybe .flow-state { background: var(--accent-soft); color: var(--accent-ink); }
.flow-maybe { border-left-style: dashed; }
.flow-failed { border-left-color: var(--bad); } .flow-failed .flow-state { background: var(--bad-soft); color: var(--bad); }
.flow-partial, .flow-unknown { border-left-color: var(--warn); } .flow-partial .flow-state, .flow-unknown .flow-state { background: var(--warn-soft); color: var(--warn); }
.flow-skipped, .flow-stopped, .flow-waiting { opacity: .62; border-style: dashed; }
.flow-plan { border-left-color: var(--accent); }
.flow-dots { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.flow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.flow-dot.flow-done { background: var(--good); } .flow-dot.flow-running { background: var(--accent); } .flow-dot.flow-maybe { background: var(--accent-soft); border: 1px solid var(--accent); } .flow-dot.flow-failed { background: var(--bad); }
.flow-dot.flow-partial, .flow-dot.flow-unknown { background: var(--warn); } .flow-dot.flow-skipped, .flow-dot.flow-stopped, .flow-dot.flow-waiting { background: transparent; border: 1px solid var(--line-strong); }
.ai-job { padding: 8px 12px; margin: 6px 0; }
@media (max-width: 640px) {
  .flow { flex-direction: column; gap: 14px; }
  .flow-node { flex: none; min-width: 0; }
  .flow-node:not(:last-child)::after { content: "↓"; right: auto; left: 16px; top: auto; bottom: -15px; }
}

/* 驾驶舱顶上的「当前目标」卡（2026-11-01） */
.goal-card { display: grid; gap: 8px; margin-bottom: 16px; border-left: 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 60%); }
.goal-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--accent), var(--a2)); }
.goal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.goal-head .act { display: flex; gap: 6px; }
.goal-title { margin: 0; font-size: 20px; text-wrap: balance; letter-spacing: -.01em; }
.goal-advice { display: grid; gap: 10px; margin-top: 4px; }
.goal-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; box-shadow: var(--shadow-1); }
.goal-act { display: flex; gap: 8px; align-items: baseline; }
.goal-act .num { color: var(--accent-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-item details { display: grid; gap: 4px; }
.goal-item details > div { margin-top: 4px; }
.goal-fb { display: flex; gap: 6px; }
.goal-fb .btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.goal-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.goal-form { display: grid; gap: 8px; }
.goal-form label { display: grid; gap: 2px; min-width: 0; }
.goal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .goal-row { grid-template-columns: minmax(0, 1fr); } }
.goal-hist { margin: 4px 0 8px; padding-left: 18px; display: grid; gap: 6px; }
/* 阶段成果和本周承诺（2026-11-03） */
.goal-block { display: grid; gap: 6px; margin-top: 4px; }
.goal-sub { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.goal-sub .btn { margin-left: auto; }
.goal-phases, .goal-commits { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.goal-phase { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; background: var(--surface); }
.goal-phase[data-status="proposed"] { border-style: dashed; background: var(--surface-2); }
.goal-phase[data-status="achieved"] b, .goal-commit[data-status="done"] { color: var(--muted); }
.goal-commit { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; }
.goal-commit .goal-fb { margin-left: auto; }
.goal-commit-add { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
@media (max-width: 600px) { .goal-commit-add { grid-template-columns: minmax(0, 1fr) auto; } .goal-commit-add .field[name="body"] { grid-column: 1 / -1; } }
.goal-phase .badge.warn { color: var(--st-warn); border-color: var(--st-warn); }
/* 目标全貌（2026-11-03） */
.goal-full { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.goal-full > div { margin-top: 4px; }
.goal-recs { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 600px) { .goal-row label[style] { grid-column: auto !important; } }
/* 命令行 intake 整理的目标草案（2026-11-03） */
.goal-draft { display: grid; gap: 8px; margin-bottom: 12px; border-left: 0; position: relative; overflow: hidden; }
.goal-draft::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--st-warn); }
.goal-task { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.goal-task[data-status="proposed"] { border-style: dashed; background: var(--surface-2); }

/* 目标首页（2026-11-08）：阅读和操作按顺序排，系统信息另放一页。 */
.home-stack { display: grid; gap: 20px; min-width: 0; }
.home-stack > *, .home-stack .card, #goalBox > * { min-width: 0; max-width: 100%; }
.home-stack h2 { margin-top: 0; }
.home-priority { background: var(--hero); border-color: var(--hero-line); }
.home-next { font-size: 20px; line-height: 1.5; font-weight: 600; }
.home-decisions { display: flex; gap: 8px; overflow-x: auto; }
.home-decisions a { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.home-decisions b { margin-left: auto; color: var(--accent-ink); }
#homeDrafts:not([hidden]) { margin-top: 16px; }
.home-goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.home-stack .section-title { margin-top: 0; flex-wrap: wrap; }
.home-stack .home-goal-summary { display: grid; gap: 8px; padding: 16px; list-style: none; }
.home-goal-summary::-webkit-details-marker { display: none; }
.home-goal-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-goal-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-goal-toggle { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px; min-height: 44px; margin-left: auto; color: var(--accent-ink); }
.home-goal-next { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-goal-compact:not([open]) > summary .when-open, .home-goal-compact[open] > summary .when-closed { display: none; }
.home-goal-compact[open] { grid-column: 1 / -1; }
.home-stack .home-goal-detail .goal-card { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: none; }
#homeRefresh { margin-left: auto; min-height: 44px; }
.home-system { text-align: center; }
.home-system a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.home-system.needs-action a { color: var(--bad); }
.home-stack .btn, .home-stack .field, .home-stack summary, .home-stack .cp-list a { min-height: 44px; }
.home-stack summary { padding-top: 10px; padding-bottom: 10px; cursor: pointer; }
.home-stack .cp-list .row { align-items: center; flex-wrap: wrap; }
.home-stack .cp-list .row a { flex: 1; display: flex; align-items: center; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.home-stack .goal-title, .home-stack .goal-head, .home-stack .small, .home-priority { overflow-wrap: anywhere; }
.home-stack .goal-commit-add .field { min-width: 0; max-width: 100%; }
.home-older { margin-top: 12px; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.system-grid > .card { min-width: 0; padding: 20px; }
.system-grid .cp-launch-card { grid-column: 1 / -1; }
#tab-system .launch-primary, #tab-system .launch { min-height: 44px; }
#tab-system .launch-primary { min-width: 0; }
#tab-system .launch-primary > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .home-goals { grid-template-columns: minmax(0, 1fr); }
  .system-grid { grid-template-columns: minmax(0, 1fr); }
  .home-stack.cp-main { display: grid; }
  .home-stack .goal-card { padding: 18px 16px; }
  .home-stack .card-pad { padding: 18px 16px; }
  .home-stack .goal-title { font-size: 20px; }
  .home-stack .cp-list .row .w { white-space: normal; }
}

/* 首页临时传文件：窄屏换行，图片只在浏览器缩放。 */
.clip-drop{display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px dashed var(--line);border-radius:10px;padding:12px;margin:12px 0;font-size:13px}
#cpClip.dragover,.clip-drop.dragover{outline:2px dashed var(--accent);outline-offset:-2px}
.clip-drop label{display:flex;align-items:center;gap:6px;max-width:100%}
.clip-drop input{min-width:0;width:160px}
.clip-drop progress{width:100%}
.clip-drop #clipUploadStatus{width:100%;overflow-wrap:anywhere}
.clip-filename{font-weight:600;overflow-wrap:anywhere}
.clip-thumb{display:block;max-width:100%;max-height:200px;object-fit:contain;margin:8px 0}
.clip-file .clip-meta{flex-wrap:wrap;gap:8px}

/* 情报：复用卡片、表单、子导航与表格；图表只用固定档位配色。 */
#tab-intel, #tab-intel_sales, #tab-intel_models { min-width: 0; }
.intel-chart-card h2 { font-size: 15px; margin: 0; }
.intel-chart { display: flex; align-items: end; gap: 6px; min-height: 165px; overflow-x: auto; padding: 8px 0; }
.intel-col { flex: 1; min-width: 34px; border: 1px solid transparent; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; cursor: pointer; padding: 3px; font-size: 11px; border-radius: var(--r-sm); }
.intel-col:hover, .intel-col[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.intel-stack { display: flex; flex-direction: column-reverse; width: 100%; max-width: 46px; min-height: 4px; border-radius: 4px 4px 0 0; overflow: hidden; }
.intel-seg { display: block; background: currentColor; }
.intel-S { color: var(--c2); } .intel-A { color: var(--c4); } .intel-B { color: var(--c1); } .intel-C { color: var(--c0); }
.intel-legend, .intel-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.intel-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.intel-filters .field { width: auto; min-width: 120px; flex: 1; max-width: 260px; }
.intel-filters label { display: inline-flex; align-items: center; min-height: 44px; gap: 4px; }
.intel-filters input[type="checkbox"] { width: auto; }
.intel-event { margin: 10px 0; overflow-wrap: anywhere; }
.intel-event summary { font-weight: 600; cursor: pointer; min-height: 28px; }
.intel-event p { margin: 8px 0; }
.intel-tier { margin-right: 8px; }
.intel-detail { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.intel-table { overflow-x: auto; max-width: 100%; }
.intel-table .t { min-width: 1000px; }
.intel-table td { max-width: 320px; overflow-wrap: anywhere; }
.intel-date { font-size: 14px; margin: 20px 0 8px; color: var(--ink-2); }

#tab-intel_ops, #tab-intel_hub { min-width: 0; }
/* 日报：复用现有主题色，日期和反馈在手机上自然换行。 */
#tab-intel_brief { min-width: 0; }
.intel-brief-toolbar, .intel-brief-heading, .intel-brief-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.intel-brief-toolbar { margin: 16px 0 24px; }
.intel-brief-editions, .intel-brief-navigation, .intel-brief-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.intel-brief-navigation label { flex-basis: 100%; }
.intel-brief-navigation select { width: auto; min-width: 0; flex: 1; }
#tab-intel_brief .btn, #tab-intel_brief summary, #tab-intel_brief select { min-height: 44px; }
#tab-intel_brief .btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.intel-brief-heading { align-items: start; margin-bottom: 20px; }
.intel-brief-heading h2 { font-size: 22px; margin: 0; }
.intel-brief-heading p { margin: 6px 0; }
.intel-brief-highlights, .intel-brief-section { margin: 16px 0; overflow-wrap: anywhere; }
.intel-brief-highlights { background: var(--accent-soft); border-color: var(--accent); }
.intel-brief-highlights h3, .intel-brief-section h3 { margin: 0 0 12px; font-size: 16px; }
.intel-brief-highlights ol { padding-left: 24px; margin: 0; }
.intel-brief-highlights li { padding: 4px 0; line-height: 1.7; }
.intel-brief-related { font-size: 12px; margin-left: 8px; color: var(--accent-ink); }
.intel-brief-item { padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); scroll-margin-top: 100px; }
.intel-brief-item summary { cursor: pointer; line-height: 1.7; }
.intel-brief-footer { margin-top: 12px; align-items: start; }
.intel-brief-meta { flex: 1 1 220px; }
.intel-brief-meta a { overflow-wrap: anywhere; }
.intel-brief-item .intel-error { margin: 8px 0 0; }
.intel-brief-private { background: var(--warn-soft); }
.intel-brief-highlighted { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .intel-brief-editions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .intel-brief-editions .btn { white-space: normal; padding: 8px; }
  .intel-brief-navigation { width: 100%; }
  .intel-brief-item { padding: 12px; }
  .intel-brief-heading h2 { font-size: 20px; }
}
.intel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.intel-editor { display: grid; gap: 10px; margin: 12px 0; }
.intel-editor label { display: grid; gap: 4px; }
.intel-editor .field { width: 100%; }
.intel-mark { font-weight: 600; }
.intel-error, .intel-bad { color: var(--c2); }
.intel-good { color: var(--c3); }
.intel-unknown { color: var(--c4); }
.intel-stopped { color: var(--ink-2); }
.intel-streak { font-size: clamp(22px, 4vw, 32px); font-weight: 700; }
.intel-ops-section { margin: 14px 0; overflow-wrap: anywhere; }
.intel-ops-section h2 { font-size: 17px; }
.intel-compare { padding: 10px 0; border-bottom: 1px solid var(--line); }
.intel-compare summary { cursor: pointer; }

/* 情报总览：复用现有卡片和颜色，长地址、接口参数在手机上折行。 */
.intel-hub-card { margin: 14px 0; min-width: 0; overflow-wrap: anywhere; }
.intel-hub-card h2 { font-size: 18px; margin: 0 0 16px; }
.intel-hub-card h3 { font-size: 15px; margin: 20px 0 8px; }
.intel-hub-total { font-size: 24px; font-weight: 700; margin: 8px 0; }
.intel-hub-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.intel-hub-entry { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.intel-hub-entry:hover { background: var(--surface-2); }
table.intel-hub-table { width: 100%; table-layout: fixed; }
table.intel-hub-table td, table.intel-hub-table th { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
table.intel-hub-table th { color: var(--ink-2); }
.intel-hub-cell-label { display: none; }
.intel-hub-checks, .intel-hub-phases { padding-left: 20px; }
.intel-hub-checks li, .intel-hub-phases li { margin: 8px 0; }
.intel-hub-card .btn { min-height: 44px; }
#tab-intel_hub .intel-good { color: var(--good); }
#tab-intel_hub .intel-error, #tab-intel_hub .intel-bad { color: var(--bad); }
@media (max-width: 600px) {
  .intel-hub-entries { grid-template-columns: 1fr; }
  table.intel-hub-table, table.intel-hub-table tbody, table.intel-hub-table tr, table.intel-hub-table td { display: block; width: 100%; }
  table.intel-hub-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  table.intel-hub-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.intel-hub-table td { padding: 4px 0; border: 0; }
  .intel-hub-cell-label { display: block; color: var(--ink-2); font-size: 12.5px; }
}

/* 销量：条形和走势共用现有主题变量，所有长名称与表格都可折行。 */
#tab-intel_sales { --sales-china: var(--c1); --sales-overseas: var(--c2); --sales-total: var(--c7); }
.intel-sales-card { margin: 16px 0; min-width: 0; overflow-wrap: anywhere; }
.intel-sales-card h2 { font-size: 18px; margin: 0 0 16px; }
.intel-sales-card h2:not(:first-child) { margin-top: 28px; }
.intel-sales-card h3 { font-size: 16px; margin: 8px 0; }
.intel-sales-card summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-weight: 600; }
.intel-sales-card .intel-error { color: var(--bad); }
.intel-sales-controls, .intel-sales-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.intel-sales-controls { margin: 16px 0; gap: 12px 20px; }
.intel-sales-controls .btn, .intel-sales-card .btn { min-height: 44px; }
.intel-sales-buttons .btn { padding: 8px 10px; }
.intel-sales-buttons .btn[aria-pressed="true"], .intel-sales-trend-legend .btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.intel-sales-buttons .btn:disabled { opacity: .45; cursor: not-allowed; }
.intel-sales-key { display: inline-flex; align-items: center; gap: 6px; }
.intel-sales-key::before { content: ''; display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 3px; background: var(--sales-color); }
.intel-sales-ranking { display: grid; gap: 12px; margin: 20px 0; }
.intel-sales-bar-row { display: grid; grid-template-columns: 28px minmax(80px, 150px) minmax(40px, 1fr) 120px; gap: 12px; align-items: center; font-size: 14px; }
.intel-sales-rank { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.intel-sales-name { overflow-wrap: anywhere; }
.intel-sales-track { display: flex; min-width: 0; height: 18px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.intel-sales-segment { display: block; flex: none; height: 100%; background: var(--sales-china); }
.intel-sales-value { text-align: right; font-variant-numeric: tabular-nums; }
.intel-sales-value small, .intel-sales-published { display: block; font-size: 12px; }
.intel-sales-tag { display: block; color: var(--accent-ink); font-size: 12px; }
.intel-sales-table { font-size: 13px; font-variant-numeric: tabular-nums; }
.intel-sales-trend-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.intel-sales-trend-legend .btn { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.intel-sales-trend-legend .btn[aria-pressed="false"] { opacity: .6; }
.intel-sales-trend-chart { min-width: 0; }
.intel-sales-trend-chart svg { width: 100%; height: auto; display: block; }
.intel-sales-trend-chart text { fill: var(--ink-2); font-size: 12px; }
.intel-sales-markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.intel-sales-market { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; min-width: 0; }
.intel-sales-market-row { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.intel-sales-market-row .intel-sales-track { height: 10px; }
.intel-sales-card .intel-filters label { flex-wrap: wrap; min-width: 0; }
@media (max-width: 1000px) {
  table.intel-sales-table, table.intel-sales-table tbody, table.intel-sales-table tr, table.intel-sales-table td { display: block; width: 100%; }
  table.intel-sales-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  table.intel-sales-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.intel-sales-table td { padding: 4px 0; border: 0; }
  .intel-sales-table .intel-hub-cell-label { display: block; color: var(--ink-2); font-size: 12px; }
}
@media (max-width: 600px) {
  .intel-sales-bar-row { grid-template-columns: 24px minmax(0, 1fr) 100px; gap: 6px 8px; }
  .intel-sales-bar-row .intel-sales-track { grid-row: 2; grid-column: 2 / 4; }
  .intel-sales-bar-row .intel-sales-value { grid-column: 3; grid-row: 1; }
}

/* 音响底账：同一份表格在窄屏排成车型卡片，图表、状态共用主题颜色。 */
#tab-intel_audio { --audio-yes: var(--c3); --audio-optional: var(--c1); --audio-no: var(--c2); --audio-unknown: var(--c0); }
.intel-audio-stats, .intel-audio-charts { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.intel-audio-stats p { margin: 0 0 8px; }
.intel-audio-stats strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.intel-audio-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.intel-audio-section { margin: 16px 0; min-width: 0; overflow-wrap: anywhere; }
.intel-audio-section h2 { font-size: 18px; margin: 0 0 16px; }
.intel-audio-charts .intel-audio-section { margin: 0; }
.intel-audio-legend, .intel-audio-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.intel-audio-key { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.intel-audio-key::before { content: ''; width: 12px; height: 12px; border-radius: 2px; background: var(--audio-color); }
.audio-yes { --audio-color: var(--audio-yes); }
.audio-optional { --audio-color: var(--audio-optional); }
.audio-no { --audio-color: var(--audio-no); }
.audio-unknown { --audio-color: var(--audio-unknown); }
.audio-brand { --audio-color: var(--c1); }
.intel-audio-chart-row { display: grid; grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 40px; gap: 8px; align-items: center; margin: 16px 0; font-size: 13px; }
.intel-audio-track { display: flex; height: 18px; min-width: 0; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.intel-audio-segment { background: var(--audio-color); height: 100%; flex: none; }
.intel-audio-table { table-layout: fixed; width: 100%; font-size: 13px; }
table.intel-audio-table th, table.intel-audio-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; padding: 12px 6px; }
.intel-audio-table small { display: block; font-size: 12px; }
table.intel-audio-table th:nth-child(11) { width: 100px; }
.intel-audio-cell-label { display: none; }
.intel-audio-table .field { width: 100%; min-width: 0; padding: 8px 4px; }
.intel-audio-table .badge { white-space: normal; }
.intel-audio-table .btn, .intel-audio-section .btn, .intel-audio-sources summary, .intel-audio-section select, .intel-audio-section input { min-height: 44px; }
.intel-audio-sources a, .intel-audio-sources summary { display: block; padding: 8px 0; }
.intel-audio-sources a[href] { min-height: 44px; }
.intel-audio-label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 13px; }
.intel-audio-label:has(input[type=checkbox]) { flex-direction: row; align-items: center; }
.intel-audio-label input[type=checkbox] { width: 20px; }
.intel-audio-filters { margin-bottom: 20px; }
.intel-audio-filters .field { max-width: 100%; min-width: 0; }
.intel-audio-note-editor { padding: 16px; background: var(--surface-2); border-radius: var(--r-sm); }
.intel-audio-note-editor .btn { margin: 12px 8px 0 0; }
.intel-audio-note-editor textarea { width: 100%; resize: vertical; }
.intel-audio-timeline { list-style: none; padding: 0 0 0 16px; border-left: 2px solid var(--line-strong); }
.intel-audio-timeline li { margin: 24px 0; }
.intel-audio-timeline p { margin: 8px 0; }
#tab-intel_audio .intel-error { color: var(--bad); }
.audio-badge-yes, .audio-badge-confirmed { color: var(--good); background: var(--good-soft); }
.audio-badge-optional, .audio-badge-reported { color: var(--accent-ink); background: var(--accent-soft); }
.audio-badge-no { color: var(--warn); background: var(--warn-soft); }
.audio-badge-unknown { color: var(--ink-2); background: var(--surface-3); }
#tab-intel_audio [hidden] { display: none !important; }
@media (max-width: 1200px) {
  table.intel-audio-table, table.intel-audio-table tbody, table.intel-audio-table tr, table.intel-audio-table td { display: block; width: 100%; }
  table.intel-audio-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  table.intel-audio-table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  table.intel-audio-table td { padding: 4px 0; border: 0; }
  .intel-audio-cell-label { display: block; color: var(--ink-2); font-size: 12px; }
  .intel-audio-table .field { width: auto; max-width: 100%; }
  .intel-audio-note-row .field { width: 100%; }
}
@media (max-width: 767px) {
  .intel-audio-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intel-audio-stats strong { font-size: 20px; }
  .intel-audio-charts { grid-template-columns: minmax(0, 1fr); }
  .intel-audio-filters .intel-audio-label { width: 100%; }
  .intel-audio-section .field { font-size: 16px; }
}

/* 通用底账沿用音响页的表格、卡片和编辑器。 */
#tab-intel_ledger { min-width: 0; }
#tab-intel_ledger [hidden] { display: none !important; }
#tab-intel_ledger .intel-error { color: var(--bad); }
.intel-ledger-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.intel-ledger-tabs .btn { min-height: 44px; }
.intel-ledger-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ledger-stats-exec { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ledger-active, .ledger-H1 { --audio-color: var(--c3); }
.ledger-building, .ledger-H2 { --audio-color: var(--c1); }
.ledger-planned { --audio-color: var(--c2); }
.ledger-stopped { --audio-color: var(--c8); }
.ledger-unknown { --audio-color: var(--c0); }
.ledger-total { --audio-color: var(--c1); }
.ledger-badge-active { color: var(--good); background: var(--good-soft); }
.ledger-badge-building { color: var(--accent-ink); background: var(--accent-soft); }
.ledger-badge-planned, .ledger-badge-stopped { color: var(--warn); background: var(--warn-soft); }
.ledger-badge-unknown { color: var(--ink-2); background: var(--surface-3); }
.intel-ledger-table .ledger-left { opacity: .65; }
.intel-ledger-table button[aria-pressed] { font-size: 24px; min-width: 44px; color: var(--ink-2); }
.intel-ledger-table button[aria-pressed=true] { color: var(--accent-ink); background: var(--accent-soft); }
table.intel-ledger-table th:nth-child(11) { width: auto; }
.intel-ledger-table .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding: 8px 6px; }
@media (max-width: 767px) {
  .intel-ledger-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 资料库关键信息（试用版） */
.lib-info { margin: 6px 0; overflow-wrap: anywhere; }
.lib-facts summary { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-facts[open] summary { white-space: normal; }
.lib-facts > div { margin-top: 4px; overflow-wrap: anywhere; }
.lib-due { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.lib-highlight { animation: lib-highlight 3s ease-out; }
@keyframes lib-highlight { from { box-shadow: 0 0 0 3px #d8972b; background: #d8972b22; } to { box-shadow: none; } }
