/* ============================================================
   东理塾 · 学科成本台帳 — app.css
   swiss + 和纸：纸底、深绿、墨字、朱色点缀；数字等宽；细线分层。
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-VF.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-VF.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .5;
  background-image: radial-gradient(rgba(18, 61, 44, .055) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--forest-soft); color: var(--forest-ink); }
:focus-visible { outline: 2px solid var(--forest-2); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.i { display: inline-block; vertical-align: -0.18em; flex: none; }

/* ---------------- 基础排版 ---------------- */
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.muted { color: var(--ink-3); }
.faint { color: var(--ink-4); }
.small { font-size: var(--fs-small); }
.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-cn-serif); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.st-approved { background: var(--ok-soft); color: var(--ok); }
.st-submitted { background: var(--info-soft); color: var(--info); }
.st-returned { background: var(--danger-soft); color: var(--danger); }
.st-draft { background: #eceadf; color: #6f6a5b; }
.st-missing { background: #eceae2; color: var(--ink-3); }
.delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.delta.up { color: var(--danger); }
.delta.down { color: var(--ok); }
.delta.flat { color: var(--ink-3); }

/* ---------------- 布局骨架 ---------------- */
#app { min-height: 100dvh; }
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100dvh; }
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px 18px 18px;
  background: var(--forest);
  color: var(--rail-ink);
  z-index: 40;
  overflow: hidden;
}
.rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(90% 55% at 0% 0%, rgba(255, 255, 255, .07), transparent 60%),
    radial-gradient(70% 40% at 100% 100%, rgba(192, 87, 47, .14), transparent 70%);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px; position: relative; z-index: 1; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--rail-ink);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: .08em; }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; color: var(--rail-ink-2); margin-top: 3px; }
.nav { margin-top: 40px; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.nav-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; color: rgba(233,239,233,.35); padding: 0 12px 9px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--rail-ink-2);
  font-size: 13.5px; letter-spacing: .02em;
  position: relative;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-item:hover { color: var(--rail-ink); background: rgba(255, 255, 255, .055); }
.nav-item.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-item.active::before {
  content: ""; position: absolute; left: -18px; top: 9px; bottom: 9px; width: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-idx {
  margin-left: auto; font-family: var(--font-mono); font-size: 9.5px;
  color: rgba(233, 239, 233, .3); letter-spacing: .08em;
}
.nav-item.active .nav-idx { color: rgba(233, 239, 233, .6); }
.rail-foot { margin-top: auto; position: relative; z-index: 1; }
.rail-period {
  padding: 12px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .09);
  margin-bottom: 14px;
}
.rail-period .eyebrow { color: rgba(233, 239, 233, .45); }
.rail-period-line { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.rail-period-ym { font-family: var(--font-mono); font-size: 13px; color: var(--rail-ink); }
.rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(176, 138, 62, .18); }
.rail-user { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 9px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest-soft); color: var(--forest);
  font-size: 12px; font-weight: 600; flex: none;
}
.rail .avatar { background: rgba(255, 255, 255, .12); color: var(--rail-ink); }
.rail-user-name { font-size: 12.5px; color: var(--rail-ink); line-height: 1.2; }
.rail-user-role { font-family: var(--font-mono); font-size: 9.5px; color: var(--rail-ink-2); letter-spacing: .1em; margin-top: 3px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 234, .86);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 30;
}
.crumb { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.crumb .eyebrow { white-space: nowrap; }
.crumb-title { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.period-btn {
  display: flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.period-btn:hover { border-color: var(--forest-3); box-shadow: var(--shadow-1); }
.period-btn .chev { color: var(--ink-3); display: flex; }
.period-btn .p-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.period-btn.locked .p-dot { background: var(--forest); }
.seg {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line);
}
.seg button {
  border: 0; background: transparent; color: var(--ink-3);
  font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  padding: 4px 10px; border-radius: var(--r-pill); cursor: pointer;
  transition: all .16s var(--ease);
}
.seg button.on { background: var(--surface); color: var(--forest); box-shadow: var(--shadow-1); font-weight: 600; }
.top-user { display: flex; align-items: center; gap: 9px; padding: 3px 4px 3px 10px; border-radius: var(--r-pill); }
.top-user:hover { background: var(--surface-2); }
.top-user-name { font-size: 12px; color: var(--ink-2); }
.icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: all .16s var(--ease);
}
.icon-btn:hover { color: var(--forest); border-color: var(--forest-3); background: var(--white); }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.plain:hover { background: var(--surface-2); }

.view { padding: 34px 40px 90px; max-width: 1500px; width: 100%; margin: 0 auto; }
.view > .view-anim { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- 页头 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-title { font-size: var(--fs-h1); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; margin: 7px 0 8px; }
.page-sub { color: var(--ink-3); font-size: 13px; letter-spacing: .01em; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 34px 0 14px; }
.section-title { font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.section-link { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.section-link:hover { color: var(--forest); }

/* ---------------- 按钮 / 表单 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 15px;
  border-radius: 8px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--forest); color: #f6f4ec; }
.btn-primary:hover:not(:disabled) { background: var(--forest-2); box-shadow: 0 8px 20px -10px rgba(18, 61, 44, .55); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { border-color: var(--forest-3); background: var(--white); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #eccfc8; }
.btn-danger:hover:not(:disabled) { background: #f1d4cd; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover:not(:disabled) { background: #a94a27; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 11.5px; border-radius: 7px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 13.5px; }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); }
.field label .req { color: var(--accent); margin-left: 3px; }
.field input, .field select, .field textarea, .input, .select {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 13px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { height: auto; min-height: 76px; padding: 9px 11px; line-height: 1.6; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .select:focus {
  outline: none; border-color: var(--forest-2); box-shadow: 0 0 0 3px var(--forest-soft);
}
.field .hint { font-size: 11px; color: var(--ink-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span2 { grid-column: span 2; }
.form-error { display: none; padding: 9px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.form-error.show { display: block; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--forest); }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px 0; }
.card-title { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }
.card-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.card-body { padding: 16px 22px 22px; }
.card-tools { display: flex; align-items: center; gap: 8px; }
.card-foot { padding: 12px 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; justify-content: space-between; }

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 14px; align-items: stretch; }
.kpi-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #174d38 0%, #123d2c 56%, #0e3325 100%);
  color: #edf2ec; border-radius: var(--r-lg);
  padding: 22px 24px 18px;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px -26px rgba(18, 61, 44, .75);
}
.kpi-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, .8), transparent 72%);
  pointer-events: none;
}
.kpi-hero-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.kpi-label { font-size: 11.5px; letter-spacing: .1em; color: rgba(237, 242, 236, .62); }
.kpi-period { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: rgba(237, 242, 236, .4); }
.kpi-hero-value {
  position: relative; z-index: 1;
  font-size: 46px; line-height: 1.05; letter-spacing: -.045em; font-weight: 500;
  margin: 12px 0 0; display: flex; align-items: baseline; gap: 2px;
}
.kpi-hero-value .cur { font-size: 22px; opacity: .55; margin-right: 5px; letter-spacing: 0; }
.kpi-hero-value .dec { font-size: 24px; opacity: .55; letter-spacing: -.02em; }
.kpi-hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; position: relative; z-index: 1; font-size: 11.5px; color: rgba(237, 242, 236, .55); }
.kpi-hero-meta .delta { color: #e7b28e; }
.kpi-hero-meta .delta.down { color: #9fc8ac; }
.kpi-hero-meta .vsep { width: 1px; height: 11px; background: rgba(255, 255, 255, .16); }
.kpi-hero-spark { margin-left: auto; width: 128px; opacity: .9; }
.kpi-hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; position: relative; z-index: 1; }
.split-bar { display: flex; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .12); width: 100%; }
.split-bar .s1 { background: #d7e6da; }
.split-bar .s2 { background: rgba(231, 178, 142, .85); }
.kpi-hero .split { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kpi-hero .split-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(237, 242, 236, .6); }
.kpi-hero .split-legend b { font-family: var(--font-mono); font-weight: 500; color: rgba(237, 242, 236, .85); }
.kpi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 20px 16px; display: flex; flex-direction: column; box-shadow: var(--shadow-1);
  min-width: 0;
}
.kpi-card .kpi-label { color: var(--ink-3); }
.kpi-card-value { font-family: var(--font-mono); font-size: 28px; line-height: 1.15; letter-spacing: -.04em; font-weight: 500; margin-top: 12px; }
.kpi-card-value .unit { font-family: var(--font-ui); font-size: 12px; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.kpi-card-foot { margin-top: auto; padding-top: 12px; font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.progress-dots { display: flex; gap: 4px; margin-top: 4px; }
.progress-dots i { width: 100%; height: 3px; border-radius: 3px; background: var(--surface-3); }
.progress-dots i.on { background: var(--forest-3); }
.progress-dots i.pending { background: var(--gold); }
.kpi-inline { display: flex; align-items: baseline; gap: 6px; }
.kpi-inline strong { font-family: var(--font-mono); font-size: 26px; font-weight: 500; letter-spacing: -.04em; }
.kpi-inline span { font-size: 11px; color: var(--ink-3); }
.kpi-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.kpi-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.kpi-row b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); font-size: 12.5px; }
.kpi-row .tag { color: var(--ink-2); }

/* ---------------- 图表区 ---------------- */
.chart-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr); gap: 14px; margin-top: 14px; }
.chart-host { width: 100%; min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.legend-line { width: 12px; height: 2px; border-radius: 2px; }
.structure-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.structure-item { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 9px; font-size: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.structure-item:last-child { border-bottom: 0; }
.structure-item .nm { color: var(--ink-2); }
.structure-item .vl { font-family: var(--font-mono); font-size: 12px; letter-spacing: -.02em; }
.structure-item .pc { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); width: 42px; text-align: right; }
.donut-layout { display: grid; grid-template-columns: 176px 1fr; gap: 18px; align-items: center; }
.donut-layout .structure-list { margin-top: 0; }

/* ---------------- 学科卡 ---------------- */
.subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.subject-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 18px 14px;
  display: flex; flex-direction: column; min-width: 0;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.subject-card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sc, var(--forest-3)); }
.subject-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.subject-card.preparing { border-style: dashed; background: transparent; box-shadow: none; }
.subject-card.preparing::before { background: var(--ink-4); }
.subject-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.subject-name { font-size: 13px; font-weight: 600; letter-spacing: .01em; line-height: 1.35; }
.subject-name small { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-4); font-weight: 400; margin-top: 3px; }
.subject-lead { font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.subject-amount { font-family: var(--font-mono); font-size: 25px; letter-spacing: -.04em; font-weight: 500; margin-top: 12px; line-height: 1.1; }
.subject-amount .cur { font-size: 12px; color: var(--ink-3); margin-right: 2px; letter-spacing: 0; }
.subject-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11px; color: var(--ink-3); }
.subject-meta .vsep { width: 1px; height: 10px; background: var(--line-strong); }
.subject-spark { height: 30px; margin-top: 10px; }
.subject-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 10.5px; color: var(--ink-3); }
.subject-foot .stat { display: inline-flex; align-items: center; gap: 4px; }
.subject-pending { font-family: var(--font-mono); font-size: 10px; color: var(--warn); }

/* ---------------- 底部三栏 ---------------- */
.bottom-grid { display: grid; grid-template-columns: 1.25fr 1.15fr .85fr; gap: 14px; margin-top: 14px; align-items: start; }
.matrix-wrap { display: flex; flex-direction: column; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.matrix-row { display: grid; grid-template-columns: 62px repeat(6, minmax(34px, 1fr)); gap: 5px; align-items: center; }
.matrix-head span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: var(--ink-4); text-align: center; }
.matrix-name { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 4px; }
.matrix-cell {
  position: relative; height: 26px; border-radius: 5px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3);
  border: 1px solid transparent;
}
.matrix-cell.null { background: transparent; border: 1px dashed var(--line); }
.matrix-cell.approved { background: var(--ok-soft); color: var(--ok); }
.matrix-cell.submitted { background: var(--info-soft); color: var(--info); }
.matrix-cell.returned { background: var(--danger-soft); color: var(--danger); }
.matrix-cell.draft { background: #ece9dd; color: #7d7663; }
.matrix-cell.missing { background: #f0eee6; color: var(--ink-4); }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.matrix-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--ink-3); }
.matrix-legend i { width: 8px; height: 8px; border-radius: 2px; }
.anomaly-list { display: flex; flex-direction: column; gap: 10px; }
.anomaly { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.anomaly:last-child { border-bottom: 0; padding-bottom: 0; }
.anomaly-icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.anomaly-icon.warn { background: var(--warn-soft); color: var(--warn); }
.anomaly-icon.danger { background: var(--danger-soft); color: var(--danger); }
.anomaly-icon.info { background: var(--info-soft); color: var(--info); }
.anomaly-title { font-size: 12px; font-weight: 500; line-height: 1.45; }
.anomaly-desc { font-size: 11px; color: var(--ink-3); margin-top: 2px; line-height: 1.55; }
.anomaly-empty { font-size: 12px; color: var(--ink-3); padding: 8px 0 4px; }
.payout-rows { display: flex; flex-direction: column; gap: 12px; }
.payout-block { display: flex; flex-direction: column; gap: 5px; }
.payout-block .p-label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.payout-block .p-val { font-family: var(--font-mono); font-size: 18px; letter-spacing: -.03em; }
.payout-bar { height: 5px; border-radius: 4px; background: var(--surface-2); overflow: hidden; display: flex; }
.payout-bar i { height: 100%; }
.payout-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; align-items: baseline; justify-content: space-between; }
.payout-total .p-val { font-family: var(--font-mono); font-size: 22px; }
.recent-audit { margin-top: 4px; }
.audit-item { display: flex; align-items: baseline; gap: 8px; font-size: 11px; color: var(--ink-3); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.audit-item:last-child { border-bottom: 0; }
.audit-item .who { color: var(--ink-2); }
.audit-item .when { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); white-space: nowrap; }

/* ---------------- 表格 ---------------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data th {
  text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .07em;
  color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap; background: transparent;
}
.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data tr:last-child td { border-bottom: 0; }
.data tr.hover:hover td { background: var(--surface-2); }
.data .num, .data .r { text-align: right; font-family: var(--font-mono); letter-spacing: -.02em; white-space: nowrap; }
.data .c { text-align: center; }
.data .detail-cell { color: var(--ink-2); max-width: 320px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data .person { font-weight: 500; }
.data tfoot td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: 0; background: var(--surface-2); }
.data .muted-cell { color: var(--ink-4); }
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  height: 19px; padding: 0 6px; border-radius: 4px;
  font-size: 10px; background: var(--surface-2); color: var(--ink-3);
  white-space: nowrap;
}
.tag.alloc { background: var(--gold-soft); color: #7d5f21; }

/* ---------------- 提交页 ---------------- */
.submit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 306px; gap: 14px; align-items: start; }
.submit-aside { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 12px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-1); }
.summary-title { font-size: 11px; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 12px; }
.summary-big { font-family: var(--font-mono); font-size: 28px; letter-spacing: -.04em; line-height: 1.1; }
.summary-sub { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.summary-rows { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.summary-row b { font-family: var(--font-mono); font-weight: 500; color: var(--ink-2); font-size: 11.5px; }
.summary-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.autosave { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-4); min-height: 16px; }
.autosave.saving { color: var(--warn); }
.autosave.saved { color: var(--ok); }
.autosave.error { color: var(--danger); }
.notice {
  display: flex; gap: 11px; align-items: flex-start;
  border-radius: var(--r-md); padding: 13px 15px; font-size: 12px; line-height: 1.6;
  border: 1px solid;
}
.notice.info { background: var(--info-soft); border-color: #cfdae6; color: #2f4964; }
.notice.warn { background: var(--warn-soft); border-color: #ead8b4; color: #7d5a17; }
.notice.danger { background: var(--danger-soft); border-color: #ebcbc3; color: #8f2f23; }
.notice.ok { background: var(--ok-soft); border-color: #c6dccd; color: #235239; }
.notice .n-icon { margin-top: 1px; flex: none; }
.notice b { font-weight: 600; }
.meta-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; align-items: end; }
.submit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.submit-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.submit-table-scroll { overflow-x: auto; }
table.et { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 1060px; }
.et thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-2);
  text-align: left; font-weight: 500; font-size: 10px; letter-spacing: .07em; color: var(--ink-3);
  padding: 9px 7px; border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.et tbody td { padding: 3px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.et tbody tr:last-child td { border-bottom: 0; }
.et tbody tr:hover td { background: rgba(239, 237, 228, .5); }
.et input, .et select {
  width: 100%; height: 32px; padding: 0 7px;
  border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--ink); font-family: inherit; font-size: 12px;
  transition: all .14s var(--ease);
}
.et input:hover, .et select:hover { border-color: var(--line); background: var(--surface); }
.et input:focus, .et select:focus { outline: none; border-color: var(--forest-2); background: var(--white); box-shadow: 0 0 0 2px var(--forest-soft); }
.et input[readonly] { color: var(--ink-3); font-family: var(--font-mono); }
.et .col-idx { width: 30px; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }
.et .col-cat { width: 116px; }
.et .col-person { width: 108px; }
.et .col-detail { min-width: 200px; }
.et .col-cur { width: 74px; }
.et .col-amt { width: 104px; }
.et .col-fx { width: 74px; }
.et .col-cny { width: 106px; }
.et .col-method { width: 104px; }
.et .col-acct { width: 150px; }
.et .col-alloc { width: 96px; }
.et .col-note { width: 130px; }
.et .col-del { width: 36px; }
.et input.r, .et .r { text-align: right; font-family: var(--font-mono); }
.et .cell-cny { font-family: var(--font-mono); color: var(--ink-2); text-align: right; padding-right: 9px; white-space: nowrap; }
.et .row-no { color: var(--ink-4); }
.et .alloc-btn {
  width: 100%; height: 28px; border: 1px dashed var(--line-strong); border-radius: 6px;
  background: transparent; font-size: 10.5px; color: var(--ink-3); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 5px;
}
.et .alloc-btn:hover { border-color: var(--forest-3); color: var(--forest); }
.et .alloc-btn.on { border-style: solid; border-color: var(--gold); background: var(--gold-soft); color: #7d5f21; }
.et tr.err td { background: var(--danger-soft); }
.et .del-btn { width: 26px; height: 26px; border-radius: 6px; border: 0; background: transparent; color: var(--ink-4); cursor: pointer; display: grid; place-items: center; }
.et .del-btn:hover { background: var(--danger-soft); color: var(--danger); }
.add-row-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-top: 1px dashed var(--line-strong); background: var(--surface);
}
.add-row-bar .hint { font-size: 10.5px; color: var(--ink-4); }
.submit-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-top: 1px solid var(--line);
  background: var(--surface); position: sticky; bottom: 0; z-index: 3;
}
.submit-foot .totals { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.submit-foot .t-item { display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: var(--ink-3); }
.submit-foot .t-item b { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--ink); }
.mobile-actions { display: none; }

/* ---------------- 审核页 ---------------- */
.review-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-item {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md);
  padding: 13px 14px; cursor: pointer;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  position: relative;
}
.review-item:hover { border-color: var(--line-strong); }
.review-item.active { border-color: var(--forest-3); box-shadow: 0 0 0 2px var(--forest-soft); }
.review-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-item-name { font-size: 13px; font-weight: 600; }
.review-item-sub { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.review-item-amt { font-family: var(--font-mono); font-size: 16px; letter-spacing: -.03em; margin-top: 8px; }
.review-item-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 10px; color: var(--ink-3); flex-wrap: wrap; }
.review-item-flags { display: flex; gap: 4px; }
.review-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.review-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.review-kpis { display: flex; gap: 26px; flex-wrap: wrap; }
.review-kpi .k { font-size: 10.5px; color: var(--ink-3); letter-spacing: .06em; }
.review-kpi .v { font-family: var(--font-mono); font-size: 17px; margin-top: 2px; }
.review-actions { display: flex; gap: 8px; }
.review-note-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: var(--surface-2); }
.review-note-box .rnb-label { font-size: 10.5px; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }
.review-note-box textarea { width: 100%; min-height: 64px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--white); padding: 8px 10px; font: inherit; font-size: 12px; resize: vertical; }
.review-note-box textarea:focus { outline: none; border-color: var(--forest-2); box-shadow: 0 0 0 2px var(--forest-soft); }
.review-note-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.kv-list { display: flex; flex-direction: column; gap: 7px; }
.kv-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.kv-row b { color: var(--ink); font-weight: 500; font-family: var(--font-mono); }

/* ---------------- 导出页 ---------------- */
.export-hero {
  display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 14px;
}
.export-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.export-stat .es-label { font-size: 10.5px; letter-spacing: .08em; color: var(--ink-3); }
.export-stat .es-value { font-family: var(--font-mono); font-size: 25px; letter-spacing: -.04em; margin-top: 12px; line-height: 1.1; }
.export-stat .es-sub { font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.download-card {
  grid-row: span 2;
  background: linear-gradient(150deg, #174d38, #0e3325);
  color: #edf2ec; border-radius: var(--r-lg); padding: 22px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.download-card::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 100% 0%, rgba(192, 87, 47, .25), transparent 60%); pointer-events: none; }
.download-card h3 { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.download-card p { font-size: 11.5px; color: rgba(237, 242, 236, .62); margin-top: 6px; line-height: 1.7; }
.download-card .files { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.file-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-radius: 9px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .13);
  color: #edf2ec; font-size: 12px; cursor: pointer; text-align: left;
  transition: background .16s var(--ease);
}
.file-btn:hover { background: rgba(255, 255, 255, .14); }
.file-btn .fb-main { display: flex; flex-direction: column; line-height: 1.35; }
.file-btn .fb-sub { font-size: 10px; color: rgba(237, 242, 236, .55); font-family: var(--font-mono); }
.file-btn .i { color: var(--gold); }
.export-note { font-size: 11px; color: var(--ink-3); margin-top: 10px; line-height: 1.7; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab-btn {
  border: 0; background: transparent; padding: 10px 14px; cursor: pointer;
  font-size: 12.5px; color: var(--ink-3); position: relative; border-radius: 6px 6px 0 0;
}
.tab-btn:hover { color: var(--ink); background: var(--surface-2); }
.tab-btn.on { color: var(--forest); font-weight: 600; }
.tab-btn.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--forest); border-radius: 2px; }
.export-lock-banner { display: flex; align-items: center; gap: 10px; }

/* ---------------- 设置页 ---------------- */
.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.settings-nav button {
  text-align: left; border: 0; background: transparent; padding: 9px 12px;
  border-radius: 7px; font-size: 12.5px; color: var(--ink-3); cursor: pointer;
}
.settings-nav button:hover { background: var(--surface-2); color: var(--ink); }
.settings-nav button.on { background: var(--forest); color: #f5f3ea; font-weight: 500; }
.settings-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-head h2 { font-size: 19px; letter-spacing: -.01em; font-weight: 600; }
.panel-head p { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.person-row { display: flex; align-items: center; gap: 10px; }
.person-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; flex: none; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.account-chip { font-family: var(--font-mono); font-size: 10px; background: var(--surface-2); border-radius: 4px; padding: 2px 5px; color: var(--ink-2); }
.subject-admin-row { display: flex; align-items: center; gap: 10px; }
.color-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---------------- 登录页 ---------------- */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); }
.login-art {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #174d38 0%, #123d2c 52%, #0b2a1e 100%);
  color: #eef3ec; padding: 46px 54px 38px;
  display: flex; flex-direction: column;
}
.login-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(160deg, rgba(0, 0, 0, .9), transparent 75%);
}
.login-art::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -200px; bottom: -220px;
  background: radial-gradient(circle, rgba(192, 87, 47, .28), transparent 62%);
  pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.login-brand .brand-mark { width: 40px; height: 40px; border-radius: 10px; }
.login-brand-name { font-size: 18px; font-weight: 600; letter-spacing: .1em; }
.login-brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; color: rgba(238, 243, 236, .5); margin-top: 2px; }
.login-center { position: relative; z-index: 1; margin: auto 0; padding: 40px 0; }
.login-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; color: rgba(238, 243, 236, .45); }
.login-title {
  font-family: var(--font-cn-serif);
  font-size: 62px; line-height: 1.16; letter-spacing: .1em;
  margin-top: 22px; font-weight: 500;
  color: #f2f1e7;
}
.login-title em { font-style: normal; color: #d9b17a; }
.login-desc { margin-top: 22px; font-size: 14px; line-height: 1.9; color: rgba(238, 243, 236, .55); letter-spacing: .02em; }
.login-ledger { display: flex; gap: 30px; margin-top: 40px; position: relative; z-index: 1; }
.login-ledger div { display: flex; flex-direction: column; gap: 3px; }
.login-ledger .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: rgba(238, 243, 236, .38); }
.login-ledger .v { font-family: var(--font-mono); font-size: 14px; color: rgba(238, 243, 236, .82); letter-spacing: -.02em; }
.login-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; color: rgba(238, 243, 236, .34); font-family: var(--font-mono); letter-spacing: .06em; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 44px; background: var(--paper); }
.login-form { width: 100%; max-width: 356px; }
.login-form h2 { font-size: 26px; letter-spacing: -.02em; font-weight: 600; }
.login-form .lf-sub { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.login-form .fields { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.login-form .field input { height: 44px; background: var(--surface); }
.login-form .field label { font-size: 11px; letter-spacing: .06em; }
.login-error { display: none; margin-top: 14px; padding: 9px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 12px; }
.login-error.show { display: flex; gap: 7px; align-items: center; }
.login-note { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 10.5px; color: var(--ink-4); line-height: 1.8; }
.login-note a { color: var(--forest-3); }
.login-copy { display: none; }

/* ---------------- 弹窗 / Toast / 空态 ---------------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(11, 38, 28, .46); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s var(--ease); }
.modal {
  position: relative; z-index: 1; width: 100%;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 18px; box-shadow: var(--shadow-pop);
  max-height: min(86dvh, 880px); display: flex; flex-direction: column;
  transform: translateY(10px) scale(.985); opacity: 0;
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.modal-wrap.in .modal-overlay, .modal-wrap.in .modal { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 0; }
.modal-head h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.modal-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.modal-body { padding: 18px 22px 22px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 18px 18px; }
.modal-text { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px;
  background: var(--forest-ink); color: #f2f3ec;
  padding: 10px 16px; border-radius: var(--r-pill); font-size: 12px;
  box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(8px); transition: all .22s var(--ease);
}
.toast.in { opacity: 1; transform: none; }
.toast-err { background: #7d2a20; }
.toast-info { background: #33465c; }
.empty-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 34px 16px; color: var(--ink-4); text-align: center; }
.empty-block p { font-size: 12.5px; color: var(--ink-3); }
.empty-block span { font-size: 11px; }
.boot-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink-3); }
.boot-mark { width: 54px; height: 54px; border-radius: 14px; background: var(--forest); color: #eef3ec; display: grid; place-items: center; }
.boot-screen p { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 8px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-view { display: grid; gap: 14px; }
.loading-view .skeleton { height: 110px; border-radius: 14px; }
.mini-bar { display: inline-block; width: 46px; height: 4px; border-radius: 3px; background: var(--surface-3); vertical-align: middle; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 3px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.vsep { width: 1px; height: 11px; background: var(--line-strong); display: inline-block; }
.link { color: var(--forest-2); text-decoration: underline; text-decoration-color: rgba(18, 61, 44, .25); text-underline-offset: 3px; cursor: pointer; }
.link:hover { text-decoration-color: var(--forest-2); }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; background: var(--gold-soft); color: #7d5f21; font-size: 9.5px; letter-spacing: .03em; }
.warn-text { color: var(--warn); }
.danger-text { color: var(--danger); }
.ok-text { color: var(--ok); }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1320px) {
  .kpi-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .kpi-grid .kpi-card:last-child { grid-column: span 1; }
  .subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-grid { grid-template-columns: 1.2fr 1fr; }
  .bottom-grid .payout-card { grid-column: span 2; }
}
@media (max-width: 1180px) {
  :root { --rail-w: 76px; }
  .brand-text, .nav-item span.nav-text, .nav-label, .rail-period, .rail-user-name, .rail-user-role { display: none; }
  .rail { padding: 22px 11px 14px; align-items: center; }
  .brand { padding: 0; }
  .nav { margin-top: 26px; width: 100%; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .nav-item.active::before { display: none; }
  .nav-idx { display: none; }
  .rail-user { padding: 4px; }
  .topbar { padding: 0 22px; }
  .view { padding: 26px 24px 70px; }
  .chart-grid { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 200px 1fr; }
  .submit-layout { grid-template-columns: 1fr; }
  .submit-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .summary-card { flex: 1 1 280px; }
  .review-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .settings-layout { grid-template-columns: 150px minmax(0, 1fr); }
  .export-hero { grid-template-columns: 1.3fr 1fr 1fr; }
  .download-card { grid-column: span 3; grid-row: auto; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .topbar { padding: 0 16px; }
  .crumb .eyebrow { display: none; }
  .view { padding: 20px 16px 76px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-hero { grid-column: span 2; }
  .kpi-hero-value { font-size: 38px; }
  .subject-grid { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .bottom-grid .payout-card { grid-column: auto; }
  .review-layout { grid-template-columns: 1fr; }
  .review-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .review-item { min-width: 220px; }
  .donut-layout { grid-template-columns: 1fr; justify-items: center; }
  .meta-row { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: auto; }
  .top-user-name, .top-user .avatar { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { padding: 30px 22px; min-height: 100dvh; }
  .login-copy { display: block; margin-bottom: 34px; }
  .login-copy .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
  .mobile-actions { display: flex; gap: 8px; margin-top: 12px; }
  .submit-aside { display: none; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav button { white-space: nowrap; }
  .export-hero { grid-template-columns: 1fr 1fr; }
  .download-card { grid-column: span 2; }
  .kpi-grid { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  .rail, .topbar, .head-actions, .tabs, .download-card, .submit-aside, .mobile-actions { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .view { padding: 0; max-width: none; }
  body { background: #fff; }
  body::before { display: none; }
  .card { box-shadow: none; border-color: #d5d0c2; break-inside: avoid; }
  table.data { font-size: 10px; }
}

/* ---------------- Popover（期次 / 用户菜单） ---------------- */
.popover {
  position: fixed; z-index: 70; min-width: 250px; max-width: 320px;
  max-height: calc(100dvh - 24px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px;
  animation: popIn .18s var(--ease) both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes popInUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.popover.pop-up { animation-name: popInUp; }
.pop-head { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-3); padding: 7px 10px 6px; }
.pop-scroll { max-height: 336px; overflow: auto; }
.pop-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; border: 0; background: transparent;
  border-radius: 7px; cursor: pointer; font-size: 12px; color: var(--ink-2); text-align: left;
  font-family: inherit;
}
.pop-item:hover { background: var(--surface-2); color: var(--ink); }
.pop-item.on { background: var(--forest-soft); color: var(--forest); }
.pop-item b { font-weight: 500; display: block; }
.pop-item small { display: block; font-size: 10px; color: var(--ink-4); margin-top: 1px; }
.pop-item > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.pop-item-side { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; color: var(--ink-4); }
.pop-item.danger { color: var(--danger); }
.pop-sep { height: 1px; background: var(--line); margin: 5px 6px; }
.pop-foot { border-top: 1px solid var(--line); margin-top: 4px; padding: 5px; }
.pop-user-head { display: flex; gap: 10px; align-items: center; padding: 10px 10px 8px; }
.pop-user-head b { font-size: 13px; font-weight: 600; display: block; }
.pop-user-head small { font-size: 10.5px; color: var(--ink-3); display: block; margin-top: 1px; }

/* ---------------- 看板补充 ---------------- */
.dash-note { margin-top: 18px; font-size: 10.5px; color: var(--ink-4); display: flex; gap: 14px; flex-wrap: wrap; }
.dash-note b { font-weight: 500; color: var(--ink-3); }
.legend-hatch {
  width: 12px; height: 8px; border-radius: 2px;
  background-image: repeating-linear-gradient(45deg, rgba(18,61,44,.35) 0 1px, transparent 1px 4px);
  border: 1px solid var(--line-strong);
}
.subject-pending-inline { font-family: var(--font-mono); font-size: 10px; color: var(--warn); margin-top: 3px; }
.matrix-cell { font-size: 9px; letter-spacing: -.02em; }
.matrix-cell.null { font-size: 0; }

/* ---------------- 提交确认 / 分摊弹窗 ---------------- */
.calc-box { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 10px 14px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.calc-row:last-child { border-bottom: 0; }
.calc-row b { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.alloc-list { display: flex; flex-direction: column; gap: 6px; }
.alloc-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); font-size: 12.5px;
}
.alloc-row:hover { border-color: var(--line-strong); background: var(--white); }
.alloc-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--forest); flex: none; }
.alloc-name { flex: 1; min-width: 0; }
.alloc-pct { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.alloc-pct input {
  width: 66px; height: 28px; padding: 0 6px; text-align: right;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--white);
  font-family: var(--font-mono); font-size: 11px;
}
.alloc-pct input:disabled { background: var(--surface-2); color: var(--ink-4); }
.alloc-sum { font-size: 11.5px; color: var(--ink-3); text-align: right; }
.alloc-sum b { font-family: var(--font-mono); }

/* ---------------- 审核 / 导出 / 设置补充 ---------------- */
.review-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.review-note-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }
.note-list { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.note-list li { position: relative; padding-left: 14px; }
.note-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.note-list b { font-weight: 600; color: var(--ink); }
.note-list code { font-family: var(--font-mono); font-size: 11px; background: var(--surface-2); border-radius: 3px; padding: 1px 4px; }
.account-head { display: flex; align-items: center; gap: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; border-radius: 12px; }
.account-name { font-size: 17px; font-weight: 600; }
.acc-editor { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.acc-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 13px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .05em; color: var(--ink-3); }
.acc-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 30px; gap: 8px; padding: 7px 10px; border-bottom: 1px dashed var(--line); align-items: center; }
.acc-row:last-child { border-bottom: 0; }
.acc-row select, .acc-row input {
  height: 32px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--white); font-family: inherit; font-size: 11.5px; color: var(--ink); width: 100%;
}
.acc-row .del-btn { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-4); cursor: pointer; display: grid; place-items: center; }
.acc-row .del-btn:hover { background: var(--danger-soft); color: var(--danger); }
.settings-panel .card { overflow: hidden; }
.review-list { position: sticky; top: calc(var(--topbar-h) + 20px); }
.review-main .card { overflow: hidden; }
.review-main .table-wrap { border-top: 1px solid var(--line); }
.review-main .data td { font-size: 11.5px; }
.export-hero .download-card { grid-row: span 2; }
.export-hero .export-stat { min-height: 104px; }
.export-hero .download-card { min-height: 238px; }
@media (max-width: 1180px) {
  .review-list { position: static; }
  .export-hero .download-card { grid-row: auto; }
}

/* 侧栏用户按钮修正 */
.rail-user {
  background: transparent; border: 0; color: var(--rail-ink);
  cursor: pointer; width: 100%; text-align: left; font-family: inherit;
  transition: background .16s var(--ease);
}
.rail-user:hover { background: rgba(255, 255, 255, .07); }
.rail-user > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.rail-user-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 细节修正 ---------------- */
.kpi-hero-value { gap: 0; }
.kpi-hero-value .cur { margin-right: 5px; }
.kpi-hero-value .dec { margin-left: 0; }
.data .person { white-space: nowrap; }
.review-main .table-wrap .data { min-width: 1050px; }
.review-main .table-wrap { overflow-x: auto; }
.review-main .data .detail-cell { max-width: 260px; }
.period-btn { white-space: nowrap; flex: 0 0 auto; }
.period-btn b { font-weight: 600; }
.period-btn .period-status { color: var(--ink-3); font-weight: 400; }
.preparing-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 18px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  font-size: 11.5px; color: var(--ink-3); background: rgba(251, 250, 246, .4);
}
.ps-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-left b { color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.export-excluded { color: var(--ink-3); }
.settings-logout { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

@media (max-width: 900px) {
  body { padding-bottom: 66px; }
  .rail {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto;
    height: auto; width: 100%; flex-direction: row; align-items: center;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    z-index: 50;
  }
  .rail::after { display: none; }
  .brand, .rail-foot { display: none; }
  .nav { display: flex; flex-direction: row; margin: 0; width: 100%; justify-content: space-between; gap: 2px; }
  .nav-label { display: none; }
  .nav-item { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; align-items: center; border-radius: 7px; }
  .nav-item .nav-text { display: block; font-size: 9.5px; letter-spacing: 0; }
  .nav-item .nav-idx { display: none; }
  .nav-item.active::before { display: none; }
  .nav-item .i { width: 17px; height: 17px; }
  .topbar { height: 56px; padding: 0 12px; gap: 6px; }
  .crumb .eyebrow, .crumb .vsep { display: none; }
  .crumb-title { font-size: 12.5px; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-actions { gap: 6px; }
  .period-btn { height: 32px; padding: 0 10px; font-size: 11px; }
  .period-btn .period-status { display: none; }
  .period-btn .chev { display: none; }
  .seg { padding: 2px; }
  .seg button { padding: 4px 7px; font-size: 10px; }
  .topbar .icon-btn { width: 28px; height: 28px; }
  .view { padding: 18px 14px 40px; }
  .page-title { font-size: 27px; }
  .kpi-hero-value { font-size: 34px; }
  .kpi-hero-value .dec { font-size: 18px; }
  .subject-grid { grid-template-columns: 1fr; }
  .export-hero { grid-template-columns: 1fr 1fr; }
  .download-card { grid-column: span 2; min-height: 0; }
  .export-hero .export-stat { min-height: 90px; padding: 14px; }
  .export-stat .es-value { font-size: 20px; }
  .export-hero .download-card { grid-row: auto; }
  .head-actions .btn { height: 32px; padding: 0 10px; font-size: 11.5px; }
  .submit-table-scroll { overflow-x: auto; }
  .submit-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .submit-foot .row-gap { justify-content: flex-end; }
  .settings-nav { gap: 4px; }
  .settings-nav button { padding: 7px 10px; font-size: 11.5px; }
}
@media (max-width: 520px) {
  .seg { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-hero { grid-column: auto; }
  .export-hero { grid-template-columns: 1fr; }
  .download-card { grid-column: auto; }
  .review-list { gap: 6px; }
  .review-item { min-width: 200px; }
}

/* ---------------- 提交页：汇总上移、表格全宽 ---------------- */
.submit-layout { display: flex; flex-direction: column; gap: 14px; }
.submit-aside {
  position: static;
  order: -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.submit-aside .summary-card { height: 100%; }
.submit-aside .summary-actions { flex-direction: row; flex-wrap: wrap; }
.submit-aside .summary-actions .btn { flex: 1 1 140px; }
.submit-main { width: 100%; }
.submit-table-wrap { width: 100%; }
table.et { min-width: 1080px; }
.et .col-idx { width: 24px; }
.et .col-cat { width: 102px; }
.et .col-person { width: 84px; }
.et .col-detail { width: auto; min-width: 160px; }
.et .col-cur { width: 58px; }
.et .col-amt { width: 96px; }
.et .col-fx { width: 66px; }
.et .col-cny { width: 96px; }
.et .col-method { width: 96px; }
.et .col-acct { width: 138px; }
.et .col-alloc { width: 84px; }
.et .col-note { width: 112px; }
.et .col-del { width: 28px; }
@media (max-width: 1180px) {
  .submit-aside { grid-template-columns: 1fr 1fr; }
  .submit-aside .summary-card:last-child { grid-column: span 2; }
}
@media (max-width: 900px) {
  .submit-aside { display: grid; grid-template-columns: 1fr; order: -1; }
  .submit-aside .summary-card:last-child { grid-column: auto; }
}

/* ---------------- 提交表格：固定列宽，避免横向裁切 ---------------- */
table.et { table-layout: fixed; width: 100%; min-width: 1080px; }
.et input, .et select { min-width: 0; }
.et input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.et input[type="number"]::-webkit-outer-spin-button,
.et input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.et .col-cur select { padding: 0 2px 0 5px; font-size: 10.5px; }
.et .col-fx input { padding: 0 5px; font-size: 11px; letter-spacing: -.02em; }
.et .alloc-btn { font-size: 10px; padding: 0 4px; }
.et .col-acct input { font-size: 11px; }
.et .detail-cell { overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 结构列表 / 审核表 / 移动导航标签 ---------------- */
.structure-item { grid-template-columns: 8px minmax(0, 1fr) auto 46px; }
.review-lines { min-width: 0 !important; width: 100%; }
.review-lines .review-acct {
  font-size: 10px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.review-lines .detail-cell { max-width: 240px; }
.rail .nav-item span.nav-text { display: block; }
@media (max-width: 1180px) {
  .rail .nav-item span.nav-text { display: none; }
}
@media (max-width: 900px) {
  .rail .nav-item span.nav-text { display: block; }
}

/* ---------------- 看板结构卡：环形 + 列表完整宽度 ---------------- */
.chart-grid { grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr); }
.donut-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 16px; }
.structure-item { grid-template-columns: 6px minmax(0, 1fr) auto 40px; gap: 6px; font-size: 11.5px; }
.structure-item .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.structure-item .vl { font-size: 11px; white-space: nowrap; }
.structure-item .pc { width: 40px; font-size: 10px; }
@media (max-width: 1180px) {
  .chart-grid { grid-template-columns: 1fr; }
  .donut-layout { grid-template-columns: 200px minmax(0, 1fr); }
}
/* 审核明细固定列宽 */
.review-lines { table-layout: fixed; }
.review-lines .detail-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 提交只读状态下隐藏多余操作 */
.submit-toolbar .btn[disabled] { opacity: .35; pointer-events: none; }

/* hero 已确认/未确认条更清晰 */
.kpi-hero .split-bar { height: 6px; background: rgba(255, 255, 255, .14); }
.kpi-hero .split-bar .s1 { background: #a9cdb6; }
.kpi-hero .split-bar .s2 { background: #e7b28e; }

.review-note-readonly {
  min-height: 44px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface-2); color: var(--ink-2);
  font-size: 12px; line-height: 1.7; white-space: pre-wrap;
}

/* ---------------- 学生 / 经营指标 ---------------- */
.business-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px;
  margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--line); overflow: hidden;
}
.bs-item { background: var(--surface); padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.bs-item > span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; color: var(--ink-3); }
.bs-item > b { font-family: var(--font-mono); font-size: 21px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.bs-item > b small { font-size: 11px; margin-left: 2px; color: var(--ink-3); font-family: var(--font-ui); }
.bs-item > em { font-size: 10px; color: var(--ink-4); font-style: normal; }
.subject-metrics {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 5px 0 2px;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3);
}
@media (max-width: 900px) {
  .business-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .business-strip { grid-template-columns: 1fr; }
}

/* ---------------- 学生数据 ---------------- */
.student-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.student-stat-chip {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 11px; color: var(--ink-3);
}
.student-stat-chip b { font-family: var(--font-mono); font-size: 14px; color: var(--ink); font-weight: 500; }
.student-sync-line {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 10.5px; color: var(--ink-3);
}
.student-sync-line b { color: var(--ink-2); font-weight: 500; }
.field-details summary {
  cursor: pointer; color: var(--ink-3); font-size: 11.5px; padding: 4px 0;
}
.field-details summary:hover { color: var(--ink); }
.input-sm { height: 30px; font-size: 11.5px; padding: 0 9px; }
@media (max-width: 900px) {
  .student-sync-line { flex-direction: column; align-items: flex-start; }
}

/* ---------------- 填写指引 ---------------- */
.help-steps { display: flex; flex-direction: column; gap: 12px; }
.help-step { display: flex; gap: 12px; align-items: flex-start; }
.help-step > b {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--forest-soft); color: var(--forest);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
}
.help-step strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.help-step p { font-size: 11.5px; color: var(--ink-3); line-height: 1.7; margin: 0; }

/* ---------------- 合伙人结算 ---------------- */
.settlement-table { min-width: 960px; }
.settlement-table .subject-admin-row { display: inline-flex; align-items: center; gap: 7px; }
.settlement-table td .faint.small { display: block; margin-top: 2px; }

/* ---------------- 后端分成（内部） ---------------- */
.be-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.be-row {
  position: relative; padding: 14px 14px 10px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--surface-2);
}
.be-row .form-grid { margin-bottom: 2px; }
.be-row .be-remove { margin-top: 4px; color: var(--danger); }
.be-row .field { margin-bottom: 8px; }
