/* 清算运营统一工作台 · 原型外壳样式
   方向：Tech / utility（Datadog · GitHub 一类的高密度操作台）
   令牌区是唯一设置颜色的地方，其余全部引用变量。 */

:root {
  /* ── 六个基础令牌 ───────────────────────────────────────────── */
  --bg:      oklch(98% 0.005 250);
  --surface: oklch(100% 0 0);
  --fg:      oklch(22% 0.02 240);
  --muted:   oklch(50% 0.018 240);
  --border:  oklch(90% 0.008 240);
  --accent:  oklch(58% 0.16 145);

  /* ── 由基础令牌派生（公式化，不新增手调色值） ──────────────── */
  --accent-soft: color-mix(in oklch, var(--accent) 14%, var(--surface));
  --accent-ink:  color-mix(in oklch, var(--accent) 76%, black); /* 用于填充与强调文字，保证 ≥4.5:1 */
  --fg-soft:     color-mix(in oklch, var(--fg) 5%, transparent);
  --neutral-soft: color-mix(in oklch, var(--muted) 10%, var(--surface));

  /* ── 状态色（语义色，与强调色分开，避免"绿=品牌"与"绿=成功"混淆） ── */
  --ok:     oklch(45% 0.10 152);
  --warn:   oklch(46% 0.12 66);
  --danger: oklch(48% 0.17 25);
  --info:   oklch(46% 0.11 250);
  --ok-soft:     color-mix(in oklch, var(--ok) 10%, var(--surface));
  --warn-soft:   color-mix(in oklch, var(--warn) 12%, var(--surface));
  --danger-soft: color-mix(in oklch, var(--danger) 10%, var(--surface));
  --info-soft:   color-mix(in oklch, var(--info) 10%, var(--surface));

  /* ── 分类色：只用于「按类别着色」的数据编码（饼图等），不承担状态语义。
        「绿=成功、红=异常」的语义色不能拿来当类别色，否则读图的人会把类别误读成状态。
        四个色相拉开距离，且对白底均 ≥3:1。 ────────────────────────── */
  --cat-1: oklch(58% 0.14 250);
  --cat-2: oklch(60% 0.13 152);
  --cat-3: oklch(58% 0.15 330);
  --cat-4: oklch(62% 0.14 60);

  /* ── 字体：数据密集的作业界面，单一无衬线族＋等宽数字 ─────── */
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, Consolas, 'Microsoft YaHei', monospace;

  /* ── 尺度 ──────────────────────────────────────────────────── */
  --sidebar-w: 236px;
  --topbar-h: 54px;
  --r-sm: 5px;
  --r: 7px;
  --r-lg: 11px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 3px; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.right { text-align: right; }
.col { display: flex; flex-direction: column; gap: 14px; }
.col.g8 { gap: 8px; }
.col.g10 { gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.f1 { flex: 1; min-width: 0; }

/* ── 网格工具 ───────────────────────────────────────────────── */
.g2   { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.g3   { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.g4   { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.g5   { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.g2-1 { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 16px; align-items: start; }
.g1-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 16px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0,1fr) 312px; gap: 16px; align-items: start; }

/* ── 应用外壳 ───────────────────────────────────────────────── */
/* 桌面端固定外壳：左侧菜单与顶栏常驻，内容区独立滚动 */
html, body { height: 100%; }
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0,1fr); height: 100vh; overflow: hidden; }

.sidebar {
  position: relative; z-index: 20;
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 15px 16px 14px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 7px; background: var(--accent-ink); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; stroke: var(--surface); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 13px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; margin-top: 3px; }

.nav { flex: 1; overflow-y: auto; padding: 12px 10px 18px; }
.nav-group + .nav-group { margin-top: 14px; }
.nav-group-title {
  padding: 0 8px; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; margin-bottom: 1px; border-radius: var(--r);
  font-size: 13.5px; color: var(--fg);
  transition: background 0.12s ease;
}
.nav-item svg { width: 15px; height: 15px; flex: 0 0 auto; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: var(--fg-soft); }
.nav-item:hover svg { stroke: var(--fg); }
.nav-item.active { background: var(--accent-soft); font-weight: 650; }
.nav-item.active svg { stroke: var(--accent-ink); }
.nav-item.active::before {
  content: ''; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 2px;
  border-radius: 0 2px 2px 0; background: var(--accent-ink);
}
.nav-badge {
  margin-left: auto; padding: 1px 6px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5;
  background: var(--neutral-soft); color: var(--muted);
}
.nav-badge.due { background: var(--warn-soft); color: var(--warn); }
.nav-badge.hot { background: var(--danger-soft); color: var(--danger); }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); }
.who { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 28px; height: 28px; flex: 0 0 auto; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--fg); color: var(--surface); font-size: 12px; font-weight: 650;
}
.who-text { display: flex; flex-direction: column; min-width: 0; }
.who-name { font-size: 12.5px; font-weight: 650; }
.who-sub { font-size: 10.5px; color: var(--muted); line-height: 1.4; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; overflow-y: auto; }

.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; gap: 16px; min-height: var(--topbar-h);
  padding: 8px 22px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.crumbs .sep { opacity: 0.5; }
.crumbs strong { color: var(--fg); font-size: 14px; font-weight: 650; }
.ctx-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-left: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 11.5px; color: var(--muted); white-space: nowrap;
}
.chip b { color: var(--fg); font-weight: 600; }
.chip.demo { border-style: dashed; color: var(--muted); }
.icon-btn {
  position: relative; width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color 0.12s ease;
}
.icon-btn:hover { border-color: var(--fg); }
.icon-btn svg { width: 15px; height: 15px; stroke: var(--fg); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot {
  position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px;
  border: 2px solid var(--bg); background: var(--accent-ink); color: var(--surface);
  font-family: var(--font-mono); font-size: 9.5px; line-height: 1;
}

.page { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 44px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-title { font-family: var(--font-display); font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }
.page-desc { margin-top: 4px; max-width: 84ch; font-size: 12.5px; color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-note { padding-top: 4px; font-size: 11.5px; color: var(--muted); }

/* ── 按钮 ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 13px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--surface); }
.btn-primary:hover { background: color-mix(in oklch, var(--accent-ink) 86%, black); border-color: color-mix(in oklch, var(--accent-ink) 86%, black); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--fg); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--muted); padding-inline: 8px; }
.btn-ghost:hover { background: var(--fg-soft); color: var(--fg); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn-danger:hover { background: color-mix(in oklch, var(--danger) 86%, black); border-color: color-mix(in oklch, var(--danger) 86%, black); }
.btn-sm { padding: 4px 9px; font-size: 12px; border-radius: var(--r-sm); }
.btn-sm svg { width: 12px; height: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── 分段控件与标签页 ───────────────────────────────────────── */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.seg button { padding: 5px 11px; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 12.5px; color: var(--muted); transition: background 0.12s ease, color 0.12s ease; }
.seg button:hover { color: var(--fg); background: var(--fg-soft); }
.seg button.on { background: var(--fg); color: var(--surface); font-weight: 600; }
.seg button.on:hover { background: var(--fg); color: var(--surface); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab {
  padding: 9px 12px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; font-size: 13px; color: var(--muted); white-space: nowrap;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.tab:hover { color: var(--fg); }
.tab.on { color: var(--fg); font-weight: 650; border-bottom-color: var(--accent-ink); }

/* ── 卡片 ───────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card-title { font-size: 13.5px; font-weight: 650; }
.card-sub { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.card-body.flush { padding: 0; }
.card-body.tight { gap: 9px; }

/* ── 指标 ───────────────────────────────────────────────────── */
.kpi { display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.kpi-label { font-size: 11.5px; color: var(--muted); }
.kpi-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.kpi-num.zero { color: var(--muted); }
.kpi-sub { font-size: 11px; color: var(--muted); }
.meter { height: 5px; margin-top: 7px; border-radius: 999px; background: var(--neutral-soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent-ink); }

/* ── 入口卡（可点选筛选） ──────────────────────────────────── */
.entry {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 11px 13px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color 0.14s ease, background 0.14s ease;
}
.entry:hover { border-color: var(--fg); }
.entry.on { border-color: var(--fg); background: var(--fg-soft); }
.entry-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.entry-name { font-size: 12.5px; font-weight: 600; }
.entry-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 21px; font-weight: 650; line-height: 1.1; letter-spacing: -0.02em; }
.entry-num.zero { color: var(--muted); }
.entry-due { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }

/* ── 表格 ───────────────────────────────────────────────────── */
.tbl-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  padding: 8px 12px; text-align: left; white-space: nowrap;
  background: color-mix(in oklch, var(--bg) 62%, var(--surface));
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--fg-soft); }
.tbl tbody tr.rowlink { cursor: pointer; }
.tbl tbody tr.sel { background: var(--accent-soft); }
.tbl .num, .tbl .num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tbl .num-col { text-align: right; }
.tbl .t-main { font-weight: 600; }
.tbl .t-sub { margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tbl .id { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.tbl .center { text-align: center; }

/* ── 状态药丸（任务主状态） ─────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 2px 8px; border: 1px solid transparent; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
}
.pill::before { content: ''; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 999px; background: currentColor; }
.p-todo    { background: var(--neutral-soft); color: var(--muted); }
.p-doing   { background: var(--info-soft); color: var(--info); }
.p-verify  { background: var(--warn-soft); color: var(--warn); }
.p-exc     { background: var(--danger-soft); color: var(--danger); }
.p-done    { background: var(--ok-soft); color: var(--ok); }
.p-cancel  { background: transparent; color: var(--muted); border-color: var(--border); }
.p-cancel::before { display: none; }

/* ── 风险标记（叠加标记，刻意与主状态区分：虚线描边、无填充） ── */
.mark {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 1px 6px; border: 1px dashed currentColor; border-radius: var(--r-sm);
  background: transparent; font-size: 10.5px; font-weight: 500;
}
.m-due     { color: var(--warn); }
.m-over    { color: var(--danger); }
.m-block   { color: var(--muted); }
.m-confirm { color: var(--info); }
.m-hand    { color: var(--info); }
.m-stale   { color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 11.5px; color: var(--muted);
}

/* ── 数据来源行 ─────────────────────────────────────────────── */
.src { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.src b { color: var(--fg); font-weight: 600; }
.src .sep { opacity: 0.45; }

/* ── 告示条 ─────────────────────────────────────────────────── */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); font-size: 12.5px; }
.banner svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.banner .banner-body { flex: 1; min-width: 0; color: var(--fg); }
.banner .banner-body b { font-weight: 650; }
.banner.warn { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 28%, var(--surface)); }
.banner.warn svg { stroke: var(--warn); }
.banner.danger { background: var(--danger-soft); border-color: color-mix(in oklch, var(--danger) 28%, var(--surface)); }
.banner.danger svg { stroke: var(--danger); }
.banner.info { background: var(--info-soft); border-color: color-mix(in oklch, var(--info) 28%, var(--surface)); }
.banner.info svg { stroke: var(--info); }
.banner.ok { background: var(--ok-soft); border-color: color-mix(in oklch, var(--ok) 28%, var(--surface)); }
.banner.ok svg { stroke: var(--ok); }
.banner .src { margin-top: 3px; }

/* ── 键值列表 ───────────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 8px 14px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; }
.kv.wide { grid-template-columns: 132px minmax(0,1fr); }

.sec-label { margin-bottom: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ── 空态 ───────────────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 42px 24px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-lg); text-align: center; }
.empty svg { width: 22px; height: 22px; stroke: var(--muted); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { font-size: 15px; font-weight: 650; }
.empty p { max-width: 56ch; font-size: 12.5px; color: var(--muted); }

/* ── 抽屉 ───────────────────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: 40; background: color-mix(in oklch, var(--fg) 28%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.18s ease; }
.backdrop.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(640px, 94vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.22s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.drawer.on { transform: none; }
.drawer.wide { width: min(780px, 96vw); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.drawer-title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 16px 20px 40px; }
.drawer-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--bg) 55%, var(--surface)); }

/* ── 建议卡片 ───────────────────────────────────────────────── */
.suggest { border: 1px solid color-mix(in oklch, var(--accent-ink) 32%, var(--border)); border-radius: var(--r-lg); overflow: hidden; }
.suggest-head { display: flex; align-items: center; gap: 8px; padding: 10px 15px; background: var(--accent-soft); font-size: 12.5px; font-weight: 650; }
.suggest-head svg { width: 14px; height: 14px; stroke: var(--accent-ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.suggest-head .tag { margin-left: auto; background: var(--surface); }
.suggest-body { display: flex; flex-direction: column; gap: 13px; padding: 14px 15px; }
.suggest-foot { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 11px 15px; border-top: 1px solid var(--border); background: color-mix(in oklch, var(--bg) 55%, var(--surface)); }
.suggest-foot .src { margin-right: auto; }
.suggest.stale { border-color: var(--border); }
.suggest.stale .suggest-head { background: var(--neutral-soft); color: var(--muted); }
.suggest.stale .suggest-head svg { stroke: var(--muted); }

.warnbox { display: flex; gap: 7px; align-items: flex-start; padding: 8px 11px; border: 1px solid color-mix(in oklch, var(--warn) 26%, var(--surface)); border-radius: var(--r); background: var(--warn-soft); font-size: 11.5px; color: var(--fg); }
.warnbox svg { width: 13px; height: 13px; flex: 0 0 auto; margin-top: 2px; stroke: var(--warn); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.warnbox b { color: var(--warn); }

/* ── 工具调用过程 ───────────────────────────────────────────── */
.tool { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.tool-head { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: color-mix(in oklch, var(--bg) 58%, var(--surface)); font-family: var(--font-mono); font-size: 11px; }
.tool-head .st { margin-left: auto; }
.tool-body { display: grid; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border); }

/* ── 对话消息 ───────────────────────────────────────────────── */
.msg { display: flex; gap: 11px; }
.msg-av { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px; background: var(--neutral-soft); color: var(--muted); font-size: 11px; font-weight: 650; }
.msg.ai .msg-av { background: var(--accent-ink); color: var(--surface); }
.msg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.msg-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; }
.msg-name .src { font-weight: 400; }
.msg-text { font-size: 13.5px; line-height: 1.66; }
.msg-text ul { margin: 0; padding-left: 17px; }
.msg-text li + li { margin-top: 3px; }
.msg-text .k { font-weight: 650; }

/* ── 对话三栏 ───────────────────────────────────────────────── */
.chat-shell { display: grid; grid-template-columns: 232px minmax(0,1fr) 300px; gap: 14px; align-items: start; }
.chat-sessions .sess { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r); background: transparent; transition: background 0.12s ease, border-color 0.12s ease; }
.chat-sessions .sess + .sess { margin-top: 1px; }
.chat-sessions .sess:hover { background: var(--fg-soft); }
.chat-sessions .sess.on { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent-ink) 26%, var(--border)); }
.chat-sessions .sess-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sessions .sess-meta { margin-top: 2px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.chat-stream { display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.ctx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ctx-ref { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 11.5px; color: var(--muted); }
.ctx-ref b { color: var(--fg); font-weight: 600; }
.ctx-ref button { width: 15px; height: 15px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1; }
.ctx-ref button:hover { background: var(--fg-soft); color: var(--fg); }
.attach { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); font-size: 12px; }
.attach + .attach { margin-top: 5px; }
.attach .f1 { font-family: var(--font-mono); font-size: 11.5px; }
.composer { display: flex; flex-direction: column; gap: 9px; padding: 12px 16px 14px; border-top: 1px solid var(--border); }
.composer-row { display: flex; align-items: flex-end; gap: 9px; }
.composer-row .textarea { min-height: 66px; }
@media (max-width: 1560px) {
  .chat-shell { grid-template-columns: minmax(0,1fr) 300px; }
  .chat-sessions { display: none; }
}
@media (max-width: 1180px) {
  .chat-shell { grid-template-columns: minmax(0,1fr); }
  .chat-rail { display: none; }
}

/* ── 侧栏面板 ───────────────────────────────────────────────── */
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel-block { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ref-list { display: flex; flex-direction: column; gap: 1px; }

/* ── 开关 ───────────────────────────────────────────────────── */
.switch { position: relative; width: 34px; height: 19px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 999px; background: color-mix(in oklch, var(--muted) 38%, var(--surface)); transition: background 0.15s ease; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 999px; background: var(--surface); transition: transform 0.15s ease; }
.switch.on { background: var(--accent-ink); }
.switch.on::after { transform: translateX(15px); }

/* ── 表单 ───────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 12px; color: var(--muted); }
.field .hint { font-size: 11px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); color: var(--fg); font: inherit; font-size: 13px;
  transition: border-color 0.12s ease;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in oklch, var(--muted) 78%, var(--surface)); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in oklch, var(--fg) 26%, var(--border)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { min-height: 78px; resize: vertical; line-height: 1.6; }
.search { position: relative; }
.search svg { position: absolute; left: 9px; top: 50%; width: 13px; height: 13px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 1.6; pointer-events: none; }
.search .input { padding-left: 27px; }

/* ── 排班日历 ───────────────────────────────────────────────── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cal-h { padding: 7px 9px; background: color-mix(in oklch, var(--bg) 62%, var(--surface)); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cal-d { display: flex; flex-direction: column; gap: 4px; min-height: 92px; padding: 7px 8px; background: var(--surface); }
.cal-d.out { background: color-mix(in oklch, var(--bg) 58%, var(--surface)); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.cal-d .d { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cal-d .d b { color: var(--fg); }
.cal-slot { padding-left: 6px; border-left: 2px solid var(--border); font-size: 10.5px; line-height: 1.4; }
.cal-slot.pub { border-left-color: var(--ok); }
.cal-slot.draft { border-left-color: var(--warn); color: var(--muted); }
.cal-slot.gap { border-left-color: var(--danger); color: var(--danger); }
.cal-slot b { font-weight: 650; }

/* ── 时间线 / 下钻 ──────────────────────────────────────────── */
.crumb-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.crumb-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--muted); }
.crumb-step:hover { border-color: var(--fg); color: var(--fg); }
.crumb-step.on { border-color: var(--fg); color: var(--fg); font-weight: 650; background: var(--fg-soft); }

.tl { display: flex; flex-direction: column; }
.tl-item { position: relative; padding: 0 0 14px 20px; border-left: 1px solid var(--border); }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-item::before { content: ''; position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); }
.tl-item.ok::before { border-color: var(--ok); }
.tl-item.warn::before { border-color: var(--warn); }
.tl-item.danger::before { border-color: var(--danger); }
.tl-item .tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; }
.tl-item .tl-meta { margin-top: 3px; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; max-width: min(560px, 90vw);
  padding: 9px 15px; border-radius: var(--r);
  background: var(--fg); color: var(--surface); font-size: 12.5px;
  box-shadow: 0 10px 26px color-mix(in oklch, var(--fg) 24%, transparent);
}
.toast svg { width: 14px; height: 14px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── 岗位卡片 ───────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(292px, 1fr)); gap: 12px; }
.post-card {
  display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  cursor: pointer; transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--fg); }
.post-card.dim { background: color-mix(in oklch, var(--bg) 55%, var(--surface)); }
.post-card.dim .post-stat { background: color-mix(in oklch, var(--bg) 55%, var(--surface)); }
.post-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.post-id { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); }
.post-name { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.post-duty { min-height: 40px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.post-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.post-stat { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; background: var(--surface); }
.post-stat .k { font-size: 10.5px; color: var(--muted); }
.post-stat .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 650; }
/* 卡片内任务进度：用状态色而非强调色，避免强调预算被 6 张卡片摊薄 */
.post-prog { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; font-size: 10.5px; color: var(--muted); }
.post-prog .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 650; color: var(--fg); }
.post-prog .pbar { height: 4px; border-radius: 999px; background: color-mix(in oklch, var(--fg) 9%, transparent); overflow: hidden; }
.post-prog .pbar i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--border); }
.post-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.post-who .avatar { width: 26px; height: 26px; font-size: 11px; }
.post-who .n { font-size: 12.5px; font-weight: 600; }
.post-who .s { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

/* ── 系统启动台（SSO 式宫格） ───────────────────────────────── */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; }
.app-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 15px 16px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.app-tile:hover { border-color: var(--fg); }
.app-tile.dim { background: color-mix(in oklch, var(--bg) 58%, var(--surface)); }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in oklch, var(--fg) 5%, var(--surface)); }
.app-mark svg { width: 21px; height: 21px; stroke: var(--fg); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-tile.dim .app-mark svg { stroke: var(--muted); }
.app-name { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.app-desc { min-height: 33px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.app-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.app-open { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--fg); }
.app-open::after { content: '↗'; font-size: 12px; }
.app-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.app-tile:not(.dim):hover .app-open::after { transform: translate(1px, -1px); }
.app-open:disabled { color: var(--muted); cursor: not-allowed; }
.app-open:disabled::after { content: '·'; }
.health { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; }
.health::before { content: ''; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 999px; background: currentColor; }
.health.ok { color: var(--ok); }
.health.warn { color: var(--warn); }
.health.bad { color: var(--danger); }
.health.idle { color: var(--muted); }

/* ── 大屏模式（驾驶舱）：整屏令牌翻转为深色 ─────────────────── */
/* 驾驶舱沿用应用本身的浅色令牌：大屏感来自布局与信息密度，不依赖深色底。
   若要恢复深色，在此重定义六个基础令牌及其派生令牌即可（派生令牌必须在同一作用域内重算）。 */

/* 大屏布局：深色作业区撑满顶栏以下的剩余高度，内容更长时随页面滚动 */
.screen { flex: 1 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 14px 20px 24px; }
.screen-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.screen-title { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
.screen-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.screen-head .ctx-row { margin-left: auto; }
.clock { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 650; letter-spacing: 0.02em; }

.srow-1 { display: grid; grid-template-columns: 1fr 1fr 1.35fr 1.35fr 1fr 1fr; gap: 12px; }
.srow-2 { display: grid; grid-template-columns: 1.35fr 1fr 1.4fr; gap: 12px; align-items: stretch; }
.srow-3 { display: grid; grid-template-columns: 1.75fr 1fr; gap: 12px; align-items: stretch; }

.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.tile-l { font-size: 12px; color: var(--muted); }
.tile-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 36px; font-weight: 650; line-height: 1.06; letter-spacing: -0.03em; }
.tile-s { font-size: 11px; color: var(--muted); }
.tile-note { border-style: dashed; }

.panel-lg { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.panel-t { font-size: 13px; font-weight: 650; }
.panel-s { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-align: right; }

/* 横向条形图（实心编码） */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 68px minmax(0,1fr) 40px; align-items: center; gap: 10px; }
.bar-row .bl { font-size: 12px; color: var(--muted); }
.bar-track { height: 11px; border-radius: 3px; background: color-mix(in oklch, var(--fg) 9%, transparent); overflow: hidden; }
.bar-track i { display: block; height: 100%; min-width: 4px; border-radius: 3px; background: var(--muted); }
.bar-track i.s-ok { background: var(--ok); }
.bar-track i.s-warn { background: var(--warn); }
.bar-track i.s-danger { background: var(--danger); }
.bar-track i.s-info { background: var(--info); }
.bar-track i.s-mute { background: color-mix(in oklch, var(--muted) 55%, transparent); }
.bar-row .bv { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 650; text-align: right; }

/* 岗位负载 · 环形饼图（按岗位着色，实心编码） */
/* 饼图上方、图例下方：面板在窄列里更该把高度用在圆环上，
   并排会让图例挤成两行、面板底部留下大片空白 */
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pie { position: relative; width: 172px; height: 172px; flex: 0 0 auto; }
.pie svg { width: 100%; height: 100%; }
.pie-seg { fill: none; stroke-width: 17; }
.pie-seg.c1 { stroke: var(--cat-1); }
.pie-seg.c2 { stroke: var(--cat-2); }
.pie-seg.c3 { stroke: var(--cat-3); }
.pie-seg.c4 { stroke: var(--cat-4); }
.pie-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pie-center b { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 25px; font-weight: 650; line-height: 1; letter-spacing: -0.02em; }
.pie-center span { font-size: 10.5px; color: var(--muted); }
.pie-legend { width: 100%; display: flex; flex-direction: column; gap: 11px; }
.pl-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 9px; }
.pl-sw { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.pl-sw.c1 { background: var(--cat-1); }
.pl-sw.c2 { background: var(--cat-2); }
.pl-sw.c3 { background: var(--cat-3); }
.pl-sw.c4 { background: var(--cat-4); }
/* 值为 0 的类别仍要有可见色块，否则读起来像渲染坏了，而不是「本日无任务」 */
.pl-sw.none { background: color-mix(in oklch, var(--muted) 24%, transparent); }
.pl-n { display: block; font-size: 12px; line-height: 1.3; }
.pl-d { display: block; font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.pl-v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 650; }
.pl-v.zero { color: var(--muted); }
.legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }

/* 环形进度 */
.ring { position: relative; width: 92px; height: 92px; flex: 0 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .r-track { fill: none; stroke: color-mix(in oklch, var(--fg) 11%, transparent); stroke-width: 9; }
.ring .r-val { fill: none; stroke: var(--accent-ink); stroke-width: 9; }
.ring .r-txt { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 19px; font-weight: 650; }

/* 实时异常列表 */
.feed { display: flex; flex-direction: column; gap: 1px; }
.feed-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: var(--r); }
.feed-item + .feed-item { border-top: 1px solid var(--border); border-radius: 0; }
.feed-item:hover { background: var(--fg-soft); border-radius: var(--r); }
.feed-item .fid { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.feed-item .fn { font-size: 12.5px; font-weight: 600; }
.feed-item .fs { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.feed-item .ft { margin-left: auto; text-align: right; flex: 0 0 auto; }

/* 关键时点时间轴 */
.tl-line { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); overflow-x: auto; }
.tl-cell { position: relative; padding: 17px 12px 0 0; border-top: 2px solid var(--border); }
.tl-cell::before { content: ''; position: absolute; top: -6.5px; left: 0; width: 11px; height: 11px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border); }
.tl-cell .tt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 650; }
.tl-cell .tn { margin-top: 3px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.tl-cell.done { border-top-color: color-mix(in oklch, var(--ok) 60%, var(--border)); }
.tl-cell.done::before { background: var(--ok); border-color: var(--ok); }
.tl-cell.now { border-top-color: var(--danger); }
.tl-cell.now::before { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.tl-cell.up { border-top-color: color-mix(in oklch, var(--warn) 45%, var(--border)); }
.tl-cell.up::before { border-color: var(--warn); }
.tl-cell .tt em { font-style: normal; margin-left: 6px; font-family: var(--font-body); font-size: 10.5px; font-weight: 500; color: var(--muted); }

/* ── 窄屏回退（PC 原型为主，此处仅保证不出现横向滚动） ──────── */
@media (max-width: 1400px) {
  .srow-2 { grid-template-columns: 1fr 1fr; }
  .srow-3 { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 1280px) {
  .split { grid-template-columns: minmax(0,1fr); }
  .srow-1 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .srow-2 { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 1180px) {
  .g5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  html, body { height: auto; }
  .app { grid-template-columns: minmax(0,1fr); height: auto; overflow: visible; }
  .main { height: auto; overflow: visible; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { border-bottom: 0; }
  .brand-sub { display: none; }
  .nav { display: flex; gap: 8px; overflow-x: auto; padding: 6px 14px 12px; }
  .nav-group { display: flex; gap: 6px; }
  .nav-group + .nav-group { margin-top: 0; }
  .nav-group-title { display: none; }
  .nav-item { white-space: nowrap; margin-bottom: 0; }
  .nav-item.active::before { display: none; }
  .sidebar-foot { display: none; }
  .g2, .g3, .g4, .g5, .g2-1, .g1-2 { grid-template-columns: minmax(0,1fr); }
  .srow-1 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pie-wrap { gap: 14px; }
  .tbl-wrap { overflow-x: auto; }
  .tbl { min-width: 780px; }
  .topbar { padding: 8px 14px; }
  .page { padding: 16px 14px 36px; }
}
