/* ============================================================================
   项目经营管理平台 · 一期前端样式（T05-S2）
   · 无框架、无外链：纯手写 CSS + CSS 变量做主题
   · 字体：系统字体栈（离线可用，不加载任何 web font）
   · 图标：内联 SVG / Unicode（不引图标库）
   · 打印友好：侧边导航与操作列在 @media print 下隐藏，表格黑白可读
   ========================================================================== */

/* ---------- 主题变量 ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --c-bg: #f4f6fa;
  --c-surface: #ffffff;
  --c-surface-2: #f8fafc;
  --c-border: #dfe4ec;
  --c-border-strong: #c4ccda;
  --c-text: #1c2430;
  --c-text-2: #55607a;
  --c-muted: #7b8699;

  --c-brand: #1f5fbf;
  --c-brand-weak: #e8f0fe;
  --c-brand-ink: #14417f;

  --c-ok: #1f7a4d;
  --c-ok-weak: #e6f5ec;
  --c-warn: #8a5b00;
  --c-warn-weak: #fdf3d9;
  --c-bad: #b3261e;
  --c-bad-weak: #fdecea;
  --c-info: #1d5c8f;
  --c-info-weak: #e7f2fb;
  --c-neutral: #55607a;
  --c-neutral-weak: #eef1f6;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(21, 32, 56, .06), 0 1px 3px rgba(21, 32, 56, .08);
  --shadow-2: 0 8px 28px rgba(21, 32, 56, .16);
  --sidebar-w: 224px;
  --topbar-h: 58px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #13171e;
    --c-surface: #1a1f28;
    --c-surface-2: #212833;
    --c-border: #2d3542;
    --c-border-strong: #3d4757;
    --c-text: #e7ecf3;
    --c-text-2: #b3bdcc;
    --c-muted: #8b96a8;

    --c-brand: #6aa5ff;
    --c-brand-weak: #1b2c47;
    --c-brand-ink: #a9c8ff;

    --c-ok: #59d29a;
    --c-ok-weak: #17322a;
    --c-warn: #e2b455;
    --c-warn-weak: #332b16;
    --c-bad: #ff8f86;
    --c-bad-weak: #3a1f1e;
    --c-info: #7cc0f7;
    --c-info-weak: #16293a;
    --c-neutral: #b3bdcc;
    --c-neutral-weak: #242c38;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, .55);
  }
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

/* hidden 属性必须压过类选择器的 display（否则 .modal{display:flex} 会让模态框常驻可见） */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.3; font-weight: 650; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0 0 .6rem; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono { font-family: var(--font-mono); font-size: 12.5px; }

.muted { color: var(--c-muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.center { text-align: center; }
.hidden { display: none !important; }

/* 键盘可达：统一焦点环，不用 outline:none */
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: 8px 14px; background: var(--c-surface); border: 1px solid var(--c-border-strong);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
/* 启动占位期间不暴露跳转链接（那时主内容区还没渲染） */
body[data-layout="boot"] .skip-link { display: none; }

/* ---------- 启动占位 ---------- */
.boot {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: 10px; color: var(--c-text-2); background: var(--c-bg); z-index: 50;
}
/* body[data-layout="boot"] 让它可见；其余布局隐藏 */
body:not([data-layout="boot"]) .boot { display: none; }

.boot__spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--c-border-strong); border-top-color: var(--c-brand);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- 主壳布局 ---------- */
.shell { display: flex; min-height: 100%; }

/* 登录/改密页：只保留中间内容区（#view 在 .shell 内，因此隐藏侧栏/顶栏/页脚而不是整个 shell） */
body[data-layout="auth"] { background: var(--c-bg); }
body[data-layout="auth"] .sidebar,
body[data-layout="auth"] .topbar,
body[data-layout="auth"] .foot { display: none !important; }
body[data-layout="auth"] .main { width: 100%; }
body[data-layout="auth"] .view { padding: 0; }

.sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--c-surface); border-right: 1px solid var(--c-border);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 14px; border-bottom: 1px solid var(--c-border);
}
.brand__mark { color: var(--c-brand); flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: 14.5px; }
.brand__text span { font-size: 11.5px; color: var(--c-muted); }

.nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; flex: 1 1 auto; overflow-y: auto; }

.nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--c-text-2); font-size: 13.5px; font-weight: 550;
  border: 1px solid transparent; background: none; width: 100%;
  text-align: left; cursor: pointer; font-family: inherit;
}
.nav__item:hover { background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.nav__item[aria-current="page"] {
  background: var(--c-brand-weak); color: var(--c-brand-ink);
  border-color: color-mix(in srgb, var(--c-brand) 24%, transparent);
}
.nav__item[aria-disabled="true"] { color: var(--c-muted); cursor: not-allowed; opacity: .75; }
.nav__item[aria-disabled="true"]:hover { background: none; }
.nav__icon { width: 18px; height: 18px; flex: 0 0 auto; }
.nav__badge {
  margin-left: auto; font-size: 10.5px; padding: 1px 6px; border-radius: 999px;
  background: var(--c-neutral-weak); color: var(--c-muted); font-weight: 600;
}

.sidebar__foot {
  padding: 10px 16px 14px; border-top: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 2px; font-size: 11.5px;
}

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

/* ---------- 顶部条 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 20px; background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.topbar__stamp { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.stamp-item { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.stamp-item__k { color: var(--c-muted); }
.stamp-item__v { font-family: var(--font-mono); color: var(--c-text); font-weight: 600; }

.topbar__user { display: flex; align-items: center; gap: 10px; }
.who { display: flex; align-items: center; gap: 8px; }
.who__name { font-weight: 600; font-size: 13.5px; }

.view { flex: 1 1 auto; padding: 20px; min-width: 0; }
.view:focus { outline: none; }

.foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 20px 18px; font-size: 11.5px; color: var(--c-muted);
}

/* ---------- 卡片 / 区块 ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: 16px; margin-bottom: 16px;
}
.card--flush { padding: 0; overflow: hidden; }
.card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.card__head h2 { margin: 0; }
.card__head--pad { padding: 14px 16px; margin-bottom: 0; border-bottom: 1px solid var(--c-border); }
.card__sub { color: var(--c-muted); font-size: 12.5px; }

.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-head__title { display: flex; flex-direction: column; gap: 4px; }
.page-head__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.crumbs { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--c-muted); }
.crumbs a { color: var(--c-text-2); }

/* ---------- KPI ---------- */
.kpi-grid {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.kpi {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 6px; min-height: 118px;
}
.kpi__label { font-size: 12.5px; color: var(--c-muted); display: flex; align-items: center; gap: 6px; }
.kpi__value {
  font-family: var(--font-mono); font-size: 22px; font-weight: 650; letter-spacing: -.3px;
  font-variant-numeric: tabular-nums; word-break: break-all;
}
.kpi__value--nil { color: var(--c-muted); }
.kpi__value--pos { color: var(--c-bad); }
.kpi__value--neg { color: var(--c-ok); }
.kpi__hint { font-size: 11.5px; color: var(--c-muted); margin-top: auto; line-height: 1.45; }
.kpi__stamp { font-size: 11px; color: var(--c-muted); font-family: var(--font-mono); }

.kpi__help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--c-border-strong);
  font-size: 10px; color: var(--c-muted); cursor: help; flex: 0 0 auto;
  background: var(--c-surface-2);
}

/* ---------- 标签 / 徽标 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap;
  background: var(--c-neutral-weak); color: var(--c-neutral);
}
.tag--ok { background: var(--c-ok-weak); color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 26%, transparent); }
.tag--warn { background: var(--c-warn-weak); color: var(--c-warn); border-color: color-mix(in srgb, var(--c-warn) 26%, transparent); }
.tag--bad { background: var(--c-bad-weak); color: var(--c-bad); border-color: color-mix(in srgb, var(--c-bad) 26%, transparent); }
.tag--info { background: var(--c-info-weak); color: var(--c-info); border-color: color-mix(in srgb, var(--c-info) 26%, transparent); }
.tag--brand { background: var(--c-brand-weak); color: var(--c-brand-ink); border-color: color-mix(in srgb, var(--c-brand) 26%, transparent); }
.tag--role { background: var(--c-brand-weak); color: var(--c-brand-ink); }
.tag--plain { background: transparent; border-color: var(--c-border); color: var(--c-text-2); font-weight: 500; }

.tag-row { display: flex; flex-wrap: wrap; gap: 4px; }

/* 四标签（来源/口径/时点/完整度） */
.tag-quad { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-quad .tag { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--c-border-strong); background: var(--c-surface);
  color: var(--c-text); font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background 120ms var(--ease), border-color 120ms var(--ease);
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--c-surface-2); border-color: var(--c-border-strong); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--c-brand-ink); border-color: var(--c-brand-ink); }
.btn--ghost { background: transparent; border-color: var(--c-border); color: var(--c-text-2); }
.btn--ghost:hover:not(:disabled) { background: var(--c-surface-2); color: var(--c-text); }
.btn--sm { padding: 4px 10px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--danger { border-color: color-mix(in srgb, var(--c-bad) 40%, transparent); color: var(--c-bad); }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); }
.field__hint { font-size: 11.5px; color: var(--c-muted); }
.field__err { font-size: 12px; color: var(--c-bad); }

input[type="text"], input[type="password"], input[type="number"], input[type="date"],
input[type="file"], select, textarea {
  font-family: inherit; font-size: 13px; color: var(--c-text);
  background: var(--c-surface); border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm); padding: 7px 10px; min-height: 34px; min-width: 0;
  width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-brand); outline-offset: 1px; border-color: var(--c-brand);
}
input[readonly] { background: var(--c-surface-2); color: var(--c-text-2); }

.filters {
  display: grid; gap: 10px 12px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.filters .field { margin-bottom: 0; }
.filters__actions { display: flex; gap: 8px; align-items: center; }

.checkline { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow: auto; }
.table-wrap--scroll { max-height: 62vh; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--c-surface-2); color: var(--c-text-2);
  text-align: left; font-weight: 600; font-size: 12px;
  padding: 9px 10px; border-bottom: 1px solid var(--c-border-strong);
  white-space: nowrap;
}
.tbl tbody td {
  padding: 8px 10px; border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.tbl tbody tr:hover { background: var(--c-surface-2); }
.tbl tbody tr.is-total-row { background: var(--c-warn-weak); }
.tbl tbody tr.is-total-row:hover { background: var(--c-warn-weak); }
.tbl tfoot td {
  padding: 9px 10px; border-top: 1px solid var(--c-border-strong);
  background: var(--c-surface-2); font-weight: 600; font-size: 12.5px;
}
.tbl .num { white-space: nowrap; }
.tbl .col-item { min-width: 210px; }
.tbl .col-note { min-width: 220px; max-width: 340px; color: var(--c-muted); font-size: 12px; }

.row-link { color: var(--c-brand); font-weight: 600; cursor: pointer; }
.row-link:hover { text-decoration: underline; }

/* ---------- 空态 / 提示条 ---------- */
.empty {
  padding: 32px 16px; text-align: center; color: var(--c-muted); font-size: 13px;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.empty__title { font-size: 14px; font-weight: 600; color: var(--c-text-2); }

.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px;
  border: 1px solid var(--c-border); background: var(--c-info-weak); color: var(--c-text);
  font-size: 13px;
}
.banner__icon { flex: 0 0 auto; margin-top: 1px; }
.banner--bad { background: var(--c-bad-weak); border-color: color-mix(in srgb, var(--c-bad) 32%, transparent); }
.banner--warn { background: var(--c-warn-weak); border-color: color-mix(in srgb, var(--c-warn) 32%, transparent); }
.banner--ok { background: var(--c-ok-weak); border-color: color-mix(in srgb, var(--c-ok) 32%, transparent); }
.banner__body { min-width: 0; }
.banner__title { font-weight: 700; margin-bottom: 2px; }
.banner ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- 校验条（checks） ---------- */
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text-2);
}
.check-pill--ok { background: var(--c-ok-weak); color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); }
.check-pill--bad { background: var(--c-bad-weak); color: var(--c-bad); border-color: color-mix(in srgb, var(--c-bad) 30%, transparent); }
.check-pill--nil { background: var(--c-neutral-weak); color: var(--c-muted); }
.check-pill .mono { font-weight: 500; }

/* ---------- 完备度分布 ---------- */
.dist { display: flex; flex-direction: column; gap: 8px; }
.dist__row { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; }
.dist__name { font-size: 12.5px; color: var(--c-text-2); }
.dist__bar { height: 10px; border-radius: 999px; background: var(--c-neutral-weak); overflow: hidden; }
.dist__fill { height: 100%; border-radius: 999px; background: var(--c-brand); min-width: 2px; }
.dist__fill--ok { background: var(--c-ok); }
.dist__fill--warn { background: var(--c-warn); }
.dist__fill--bad { background: var(--c-bad); }
.dist__cnt { text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--c-text-2); }

/* ---------- 详情页分段 ---------- */
.section-block { margin-bottom: 18px; }
.section-block__head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; background: var(--c-surface-2);
  border: 1px solid var(--c-border); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.section-block__title { font-weight: 700; font-size: 13.5px; }
.section-block__sum { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.section-block__sum span { display: inline-flex; gap: 5px; align-items: baseline; }
.section-block__sum .num { font-weight: 600; }
.section-block .table-wrap {
  border: 1px solid var(--c-border); border-radius: 0 0 var(--radius) var(--radius);
  background: var(--c-surface);
}

.profit-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.profit-cell { display: flex; flex-direction: column; gap: 4px; }
.profit-cell__k { font-size: 12px; color: var(--c-muted); }
.profit-cell__v { font-family: var(--font-mono); font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- 分页 ---------- */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--c-border);
  background: var(--c-surface-2); font-size: 12.5px;
}
.pager__info { color: var(--c-text-2); }
.pager__actions { display: flex; gap: 8px; align-items: center; }
.pager__size { display: flex; gap: 6px; align-items: center; }
.pager__size select { width: auto; min-height: 28px; padding: 3px 8px; font-size: 12px; }

/* ---------- 导入页 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--c-border); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 8px 14px; border: 1px solid transparent; border-bottom: 2px solid transparent;
  background: none; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--c-text-2); cursor: pointer; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab:hover { background: var(--c-surface-2); }
.tab[aria-selected="true"] {
  color: var(--c-brand-ink); border-bottom-color: var(--c-brand); background: var(--c-brand-weak);
}
/* 二期页签：灰显不可点（#/budget 的「预算编制」） */
.tab[disabled], .tab[disabled]:hover { color: var(--c-muted); cursor: not-allowed; background: none; }

.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.step {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid var(--c-border); border-radius: 999px; background: var(--c-surface);
  font-size: 12.5px; color: var(--c-muted);
}
.step__no {
  width: 18px; height: 18px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  background: var(--c-neutral-weak); color: var(--c-muted);
}
.step--done { color: var(--c-ok); border-color: color-mix(in srgb, var(--c-ok) 30%, transparent); background: var(--c-ok-weak); }
.step--done .step__no { background: var(--c-ok); color: #fff; }
.step--active { color: var(--c-brand-ink); border-color: color-mix(in srgb, var(--c-brand) 34%, transparent); background: var(--c-brand-weak); }
.step--active .step__no { background: var(--c-brand); color: #fff; }
.step__arrow { color: var(--c-muted); }

.dropzone {
  border: 1.5px dashed var(--c-border-strong); border-radius: var(--radius);
  padding: 18px; background: var(--c-surface-2); text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.dropzone__hint { font-size: 12px; color: var(--c-muted); }

.summary-strip { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.summary-strip__item { display: flex; flex-direction: column; gap: 2px; }
.summary-strip__k { font-size: 11.5px; color: var(--c-muted); }
.summary-strip__v { font-family: var(--font-mono); font-size: 16px; font-weight: 650; }

.file-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-surface); font-size: 12.5px;
}

/* ---------- 登录页 ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 410px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: 14px;
  box-shadow: var(--shadow-2); padding: 26px 26px 22px;
}
.auth-card__head { margin-bottom: 18px; }
.auth-card__title { font-size: 19px; margin-bottom: 4px; }
.auth-card__sub { color: var(--c-muted); font-size: 12.5px; }
.auth-card__foot { margin-top: 14px; font-size: 11.5px; color: var(--c-muted); line-height: 1.6; }

.auth-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--c-brand); }
.auth-mark strong { color: var(--c-text); font-size: 14px; }

/* ---------- toast ---------- */
.toast-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px));
}
.toast {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--c-surface); border: 1px solid var(--c-border-strong);
  box-shadow: var(--shadow-2); font-size: 13px; color: var(--c-text);
  animation: toast-in 160ms var(--ease);
}
.toast__icon { flex: 0 0 auto; margin-top: 1px; }
.toast__body { min-width: 0; word-break: break-word; }
.toast--ok { border-left: 3px solid var(--c-ok); }
.toast--bad { border-left: 3px solid var(--c-bad); }
.toast--warn { border-left: 3px solid var(--c-warn); }
.toast--info { border-left: 3px solid var(--c-info); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__mask { position: absolute; inset: 0; background: rgba(12, 18, 30, .48); }
.modal__panel {
  position: relative; width: min(760px, 100%); max-height: min(84vh, 900px);
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-border-strong);
  border-radius: 12px; box-shadow: var(--shadow-2);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--c-border);
}
.modal__head h2 { margin: 0; font-size: 15px; }
.modal__body { padding: 16px; overflow: auto; }

/* ---------- 加载态 ---------- */
.loading { display: flex; align-items: center; gap: 10px; padding: 28px; color: var(--c-muted); }
.loading__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand);
  animation: pulse 1.05s infinite var(--ease);
}
.loading__dot:nth-child(2) { animation-delay: .16s; }
.loading__dot:nth-child(3) { animation-delay: .32s; }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

.skeleton { height: 14px; border-radius: 4px; background: var(--c-neutral-weak); animation: pulse 1.4s infinite; }

/* ---------- 配置维护三页（T05-S3） ---------- */
/* 侧栏"配置维护"下的三个子页（科目 / 岗位 / 费率）：父级是有图标的链接，子页缩进显示 */
.nav__sub { display: flex; flex-direction: column; gap: 1px; padding: 1px 0 4px 26px; }
.nav__item--sub { padding: 4px 10px; font-size: 12.5px; color: var(--c-text-2); }
.nav__item--sub[aria-current="page"] {
  background: var(--c-brand-weak); color: var(--c-brand-ink);
  box-shadow: inset 2px 0 0 var(--c-brand);
}

/* 三页互跳的 tab（比导入页的 .tabs 更"卡片化"，因为要带一行说明） */
.config-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.config-tab {
  display: flex; flex-direction: column; gap: 2px; min-width: 148px;
  padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-surface); color: var(--c-text-2);
}
.config-tab:hover { background: var(--c-surface-2); color: var(--c-text); text-decoration: none; }
.config-tab--on {
  border-color: var(--c-brand); background: var(--c-brand-weak); color: var(--c-brand-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-brand) 24%, transparent);
}
.config-tab__label { font-size: 13px; font-weight: 650; }
.config-tab__desc { font-size: 11.5px; color: var(--c-muted); }

/* 表单栅格：三个配置页的字段数量不同，用 auto-fit 自适应；一行放不下自动换行 */
.config-form {
  display: grid; gap: 10px 14px;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  align-items: start;
}
.config-form .field { margin-bottom: 0; }
.config-form__actions {
  grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding-top: 2px;
}
.config-form input[type="date"], .config-form input[type="number"] { min-height: 34px; }

/* 完备度红条里"本页"那一行：稍微加粗 + 左侧色条，便于扫读 */
.banner li.config-mine { font-weight: 600; }
.banner li + li { margin-top: 3px; }

/* 已停用的行：整行压低对比度，但**仍在表里**（停用≠删除） */
.tbl tbody tr.is-inactive td { color: var(--c-muted); }
.tbl tbody tr.is-inactive .mono { opacity: .85; }

/* 费率卡：4 个参数各一张，含"关旧开新"预览与时间线 */
.rate-card__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.rate-card__head h2 { margin: 0; font-size: 15px; }
.rate-card .summary-strip { gap: 22px; }
.rate-card .table-wrap { border: 1px solid var(--c-border); border-radius: var(--radius); }

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; flex: 0 0 auto; height: auto; position: static;
    border-right: none; border-bottom: 1px solid var(--c-border);
  }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar__foot { display: none; }
  .topbar { height: auto; flex: 0 0 auto; padding: 10px 14px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .view { padding: 14px; }
}

/* ---------- 打印友好 ---------- */
@media print {
  :root {
    --c-bg: #fff; --c-surface: #fff; --c-surface-2: #fff;
    --c-text: #000; --c-text-2: #222; --c-muted: #444;
    --c-border: #bbb; --c-border-strong: #888;
    --shadow-1: none; --shadow-2: none;
  }
  body { background: #fff; font-size: 11.5px; }
  .sidebar, .topbar__user, .pager, .foot, .toast-stack, .btn,
  .tabs, .steps, .dropzone, .page-head__actions, .nav, .filters__actions { display: none !important; }
  .shell { display: block; }
  .view { padding: 0; }
  .card, .kpi { border: 1px solid #999; box-shadow: none; break-inside: avoid; }
  .table-wrap--scroll { max-height: none; overflow: visible; }
  .tbl thead th { position: static; background: #eee; }
  .tbl { font-size: 10.5px; }
  .tbl tbody tr { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  /* 打印时把链接目标的 hash 显示出来，便于纸面追溯 */
  a[data-print-href]::after { content: " (" attr(data-print-href) ")"; font-size: 9px; color: #555; }
  .section-block, .card { page-break-inside: avoid; }
  .topbar { display: block; border-bottom: 1px solid #888; }
  .stamp-item__v { font-family: var(--font-mono); }
}

/* ---------- 高对比模式兜底 ---------- */
@media (prefers-contrast: more) {
  :root { --c-border: #7f8b9e; --c-border-strong: #5b667a; --c-muted: #48536a; }
}

/* ============================================================================
   A1 · 界面重构第一批：导航骨架（4 组 + 2 折叠组）/ 顶栏 / 占位页 / 双视图开关 /
        投屏打码 / .tip 徽标
   ----------------------------------------------------------------------------
   依据：架构 §3.1 §3.3 §3.6 §7.4；原型 .side/.grp/.top/.chip/.maskbtn
   本段只加新类，**不覆盖任何既有类**（旧 7 页观感零变化）
   ========================================================================== */

/* ---------- 侧边导航：分组头 + 编号方块 + [二期] 徽标 ---------- */
.nav__group { display: flex; flex-direction: column; gap: 2px; }
.nav__group--fold {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--c-border);
}
.nav__grp {
  padding: 10px 10px 3px; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: var(--c-muted);
}
.nav__grp--btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0; padding: 7px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; color: var(--c-muted); text-align: left; cursor: pointer;
}
.nav__grp--btn:hover { background: var(--c-surface-2); color: var(--c-text-2); }
.nav__caret { font-size: 10px; line-height: 1; transition: transform 120ms var(--ease); }
.nav__caret::before { content: "▾"; }
.nav__grp--btn[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__items { display: flex; flex-direction: column; gap: 2px; }

.nav__idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; flex: 0 0 17px; border-radius: 4px;
  background: var(--c-neutral-weak); color: var(--c-text-2);
  font-size: 10.5px; font-weight: 600; line-height: 1;
}
.nav__item[aria-current="page"] .nav__idx { background: var(--c-brand); color: #fff; }
.nav__item--ph, .nav__item--ph:hover { color: var(--c-muted); }
/* 占位项第二行＝可见的"一句话缺什么"（PRD §2.7）：小字号次要色，最多两行，不撑高导航 */
.nav__item--ph {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; column-gap: 8px; row-gap: 2px;
}
.nav__item--ph .nav__v2 { padding: 0 3px; }
.nav__item--ph > span:not([class]) {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav__need {
  grid-column: 2 / 4; font-size: 11px; font-weight: 500;
  line-height: 1.35; color: var(--c-muted); overflow-wrap: anywhere;
  /* A1-R01：两行封顶是真实不变式（missing 再多一条也不撑高导航），不靠文案长度巧合 */
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.nav__v2 {
  margin-left: auto; padding: 0 4px; border: 1px solid var(--c-border); border-radius: 4px;
  font-family: var(--font-mono); font-size: 10px; line-height: 1.6; color: var(--c-muted);
  flex: 0 0 auto;
}

/* ---------- 顶栏（原型 .top / .chip / .maskbtn） ---------- */
.topbar__title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.topbar__title h1 { margin: 0; font-size: 15.5px; font-weight: 650; white-space: nowrap; }
.topbar__sub { font-size: 11.5px; color: var(--c-muted); white-space: nowrap; }
.topbar__right {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
.topbar__user { display: flex; align-items: center; gap: 8px; }

.chip {
  padding: 3px 9px; border-radius: 11px; font-size: 11.5px; white-space: nowrap;
  background: var(--c-brand-weak); color: var(--c-brand-ink);
}
.chip--period { background: var(--c-ok-weak); color: var(--c-ok); font-family: var(--font-mono); }

.ds-stamp {
  padding: 3px 9px; border-radius: 11px; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; background: var(--c-warn-weak); color: var(--c-warn);
}
.ds-stamp[data-scope="all"] { background: var(--c-info-weak); color: var(--c-info); }

.vswitch {
  display: inline-flex; border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm); overflow: hidden;
}
.vswitch button {
  padding: 4px 11px; border: 0; background: var(--c-surface); color: var(--c-text-2);
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.vswitch button + button { border-left: 1px solid var(--c-border); }
.vswitch button[aria-checked="true"] { background: var(--c-brand-weak); color: var(--c-brand-ink); }
.vswitch button:disabled { opacity: .5; cursor: not-allowed; }

.maskbtn {
  padding: 4px 11px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-surface); color: var(--c-text-2); white-space: nowrap;
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.maskbtn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--c-brand) 36%, transparent); color: var(--c-brand);
}
.maskbtn.on {
  background: var(--c-brand-weak); color: var(--c-brand-ink);
  border-color: color-mix(in srgb, var(--c-brand) 36%, transparent);
}
.maskbtn:disabled { opacity: .5; cursor: not-allowed; }

/* 投屏打码：只切渲染（数值 → •••，单位后缀在兄弟节点天然保留） */
body.is-masked [data-raw] { color: var(--c-text-2); letter-spacing: .06em; }

/* ---------- ⚙ 配置与规则 下拉 ---------- */
.menu { position: relative; }
.menu__list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 152px;
  display: flex; flex-direction: column; padding: 4px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
}
.menu__list[hidden] { display: none; }
.menu__list a, .menu__list button {
  display: block; width: 100%; margin: 0; padding: 7px 10px; border: 0; border-radius: 4px;
  background: none; color: var(--c-text-2); font-family: inherit; font-size: 13px;
  text-align: left; cursor: pointer;
}
.menu__list a:hover, .menu__list button:hover {
  background: var(--c-surface-2); color: var(--c-text); text-decoration: none;
}

/* ---------- 占位页三要素（缺 / 前置 / 提供方） ---------- */
.ph-rows {
  display: grid; grid-template-columns: 58px 1fr; gap: 8px 14px;
  margin: 0; font-size: 13.5px;
}
.ph-rows dt { color: var(--c-muted); }
.ph-rows dd { margin: 0; color: var(--c-text); }

/* ---------- .tip 徽标 + 全局唯一浮层（架构 §7.4） ---------- */
.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; flex: 0 0 14px; padding: 0; border-radius: 50%;
  border: 1px solid var(--c-border-strong); background: var(--c-surface-2);
  color: var(--c-muted); font-family: inherit; font-size: 10px; font-weight: 700;
  line-height: 1; cursor: help;
}
.tip:hover, .tip:focus-visible {
  background: var(--c-brand); border-color: var(--c-brand); color: #fff; outline: none;
}
#tipbox {
  position: fixed; z-index: 60; max-width: 320px; padding: 8px 10px;
  background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
  font-size: 12px; line-height: 1.55;
}
#tipbox[hidden] { display: none; }
.tipbox__row { display: block; }
.tipbox__row em { margin-right: 6px; color: var(--c-muted); font-style: normal; }

/* ---------- 窄屏（≤980px 时侧栏变横排） ---------- */
@media (max-width: 980px) {
  .topbar__right { justify-content: flex-start; }
  .nav__group--fold { border-top: 0; padding-top: 0; }
  .menu__list { right: auto; left: 0; }
}

/* ---------- 打印：顶栏控件不印，但打码状态本身保留（架构 §7.6） ---------- */
@media print {
  .vswitch, .maskbtn, .menu, .tip, .ds-stamp, .chip--period { display: none !important; }
  .nav__v2 { border-color: #999; color: #444; }
}

/* ============================================================================
   A2 · 微图表库令牌 + 双视图卡片 + 多维度切换（架构 §5.5 §6.5 §6.7）
   本段只加新类，不覆盖既有类；图表配色走 --viz-*，深色模式只换值不换 JS
   ========================================================================== */

/* ---------- 图表调色（viz/palette.js 只写 var(--viz-x)） ---------- */
:root {
  --viz-brand: #1f5fbf; --viz-amber: #c8791a; --viz-rose: #b3261e; --viz-green: #1f7a4d;
  --viz-slate: #55607a; --viz-gray: #ccd4e0; --viz-muted: #8b95a7;
  --viz-b1: #7ba2e8; --viz-b2: #1f5fbf; --viz-b3: #14417f;
  --viz-grid: #eef0f4; --viz-axis: #8b95a7; --viz-label: #5a6577; --viz-surface: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --viz-brand: #6aa5ff; --viz-amber: #e2b455; --viz-rose: #ff8f86; --viz-green: #59d29a;
    --viz-slate: #b3bdcc; --viz-gray: #3d4757; --viz-muted: #8b96a8;
    --viz-b1: #5c8bd6; --viz-b2: #6aa5ff; --viz-b3: #a9c8ff;
    --viz-grid: #262e3a; --viz-axis: #6b7688; --viz-label: #b3bdcc; --viz-surface: #1a1f28;
  }
}

/* ---------- 卡片壳：标题｜示例徽标｜tip｜desc｜开关 ---------- */
.ds-card__head { align-items: center; }
.ds-card__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ds-card__title h2 { font-size: 15px; }
.ds-card__demo { font-weight: 600; }
.vswitch--card button { padding: 3px 10px; font-size: 11.5px; }

/* ---------- 双视图：DOM 双挂 + CSS 切换（表格态永不重建） ---------- */
.ds-card [data-view] { display: none; }
.ds-card[data-active-view="table"] [data-view="table"],
.ds-card[data-active-view="chart"] [data-view="chart"] { display: block; }
@media print {
  /* 打印一律表格态（架构 §6.5 §6.7）：图表不印、表格强制显示 */
  .ds-card [data-view="chart"] { display: none !important; }
  .ds-card [data-view="table"] { display: block !important; }
  .ds-card .dims { display: none !important; }
}

/* ---------- 图表容器 ---------- */
.viz { width: 100%; margin: 4px 0 0; }
.viz svg { display: block; width: 100%; height: auto; max-width: 100%; }
.viz-legend {
  display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none;
  font-size: 12px; color: var(--c-text-2);
}
.viz-legend__i { display: inline-flex; align-items: center; gap: 5px; }
.viz-swatch { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }
.viz-swatch--line { height: 2px; border-radius: 1px; }
.viz-swatch--gap { background: repeating-linear-gradient(45deg, var(--viz-muted) 0 2px, transparent 2px 4px) !important; }
.viz-note { margin: 4px 0 0; font-size: 11.5px; color: var(--c-muted); }

/* ---------- 表格态：单位后缀、缺口格 ---------- */
.tbl--spec .th-unit { margin-left: 4px; font-weight: 400; color: var(--c-muted); font-size: 11px; }
.tbl--spec .is-nil { color: var(--c-muted); }
.tbl--spec tfoot td:first-child { color: var(--c-text-2); }

/* ---------- 维度切换器（ui/dimswitch.js） ---------- */
.dims { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.dims__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dchip {
  padding: 3px 10px; border: 1px solid var(--c-border); border-radius: 11px;
  background: var(--c-surface); color: var(--c-text-2);
  font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.dchip:hover:not(:disabled) { border-color: var(--c-border-strong); color: var(--c-text); }
.dchip.is-on { background: var(--c-brand-weak); border-color: var(--c-brand); color: var(--c-brand-ink); }
.dchip:disabled { opacity: .45; cursor: not-allowed; }
.dims__note { font-size: 11.5px; color: var(--c-warn); }

/* ---------- 卡底缺口说明（≤20 字，一句话）+ 页脚二期小字（≤15 字） ---------- */
.ds-card__note { margin: 6px 0 0; font-size: 11.5px; color: var(--c-muted); }
.page-foot { margin: 18px 0 0; font-size: 11.5px; color: var(--c-muted); }

/* ---------- 窄屏：图表与维度 chip 单行可滚 ---------- */
@media (max-width: 560px) {
  .dims__chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .ds-card__head { gap: 8px; }
}

/* ---------- 驾驶舱（#/home）：KPI 单位 / 可点 KPI / tabs / 负值标红 ---------- */
/* KPI 单位跟在数值后面，小字灰色（人日/万元必须显式，不能让读者猜量纲） */
.kpi__unit { font-size: 12px; font-weight: 500; color: var(--c-muted); margin-left: 4px; }
/* C9 健康度 6 KPI：整块可点 → #/cost 带筛选（块级链接，外观与 .kpi 完全一致） */
.kpi--link { text-decoration: none; color: inherit; }
.kpi--link:hover { border-color: color-mix(in srgb, var(--c-brand) 36%, transparent); }
.kpi-grid--compact .kpi { min-height: 92px; padding: 12px 14px; }
.kpi-grid--compact .kpi__value { font-size: 19px; }
/* 卡片头右侧：tabs + 视图开关并排 */
.ds-card__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vswitch button[aria-pressed="true"] { background: var(--c-brand-weak); color: var(--c-brand-ink); }
/* 表格负值（负毛利、负环比）：标红但不改符号、不取绝对值 */
.tbl--spec .num.is-neg { color: var(--c-bad); }
.tbl--spec tfoot td.is-neg { color: var(--c-bad); }
/* 红条右侧按钮不与正文挤在一行 */
.banner__body + .btn { margin-left: auto; align-self: center; }
/* 驾驶舱明细表首列（期间/起止/分组）不折行：11 列表格横向滚动，别把 2026-P01 拆成两行 */
.tbl--spec td:first-child, .tbl--spec th:first-child { white-space: nowrap; }

/* ---------- #/margin 利润口径阶梯（一期只到第 1 层，其余"待 A8"） ---------- */
.ladder {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 10px;
  margin-top: 2px;
}
.ladder__step {
  display: flex; flex-direction: column; gap: 6px; padding: 10px 12px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  background: var(--c-surface-2); border-style: dashed;
}
.ladder__step.is-on {
  border-style: solid; border-color: color-mix(in srgb, var(--c-brand) 40%, transparent);
  background: var(--c-brand-weak);
}
.ladder__k { display: flex; gap: 6px; align-items: baseline; font-size: 12px; color: var(--c-text-2); }
.ladder__no { font-style: normal; font-weight: 700; color: var(--c-muted); }
.ladder__v { font-size: 16px; font-weight: 700; font-family: var(--font-mono); }
.ladder__v--nil { font-family: var(--font-sans); font-weight: 600; color: var(--c-muted); }

/* ---------- #/feas 现时可用（health_state）：失真/缺口行肉眼可辨 ---------- */
.tbl tbody tr.is-invalid td { background: color-mix(in srgb, var(--c-bad) 7%, transparent); }
.tbl tbody tr.is-missing td { background: color-mix(in srgb, var(--c-warn) 7%, transparent); }
.health { display: inline-flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.health__why { font-size: 11px; color: var(--c-bad); }
.health__why--warn { color: var(--c-warn); }
.feas-note { margin: 6px 0 0; font-size: 11.5px; color: var(--c-muted); }
