/* 经营之道 · 企业内训沙盘 —— 经营驾驶舱样式
 * 无外链字体/图标；中文界面；桌面 1366×768 起可用。
 * 设计基调：深色状态条 + 浅色高密度数据面板，等宽数字，1px 分隔线而非重投影。
 */

/* ============================================================ 变量 */
:root {
  --ink: #16202b;
  --ink-2: #3d4c5c;
  --ink-3: #6b7c8d;
  --ink-4: #93a1af;
  --line: #dbe3ea;
  --line-2: #eef2f6;
  --bg: #f4f6f9;
  --bg-2: #ffffff;
  --bg-3: #fafbfc;
  --navy: #0f1a26;
  --navy-2: #17283a;
  --accent: #1f6fd0;
  --accent-dk: #1558a8;
  --ok: #17815a;
  --ok-bg: #e8f6ef;
  --warn: #a9670a;
  --warn-bg: #fdf3e2;
  --bad: #bf2c2c;
  --bad-bg: #fdeceb;
  --gold: #8a6a1f;
  --gold-bg: #fbf4e0;

  --r-principal: #5b4bb7;
  --r-finance: #17795e;
  --r-hr: #b3541e;
  --r-ops: #16618f;
  --r-acad: #902a6b;
  --r-other: #6b7c8d;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;

  --sp: 8px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

b, strong { font-weight: 650; }
p { margin: 0 0 8px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 18px; }
li { margin: 2px 0; }
table { border-collapse: collapse; }
pre { margin: 0; font-family: var(--mono); }
a { color: var(--accent-dk); }
button { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c6d1dc; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* 数字统一等宽、右对齐语义 */
.num, .mono, .kpicard__value, .bigval, .bsum__val, .meter__val,
.pointsbox__num, .costchip__v, .rank__no, .tbl .num, .stateblock__v,
.code, .errcode { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.muted { color: var(--ink-3); }
.neg { color: var(--bad); }

/* ============================================================ 应用外壳 */
.app { min-height: 100%; }
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

/* ---- 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 52px;
  padding: 0 18px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #e8eef4;
  border-bottom: 1px solid #0a1219;
  flex: 0 0 auto;
}
.topbar .brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(135deg, #3f8ae0, #1f5fa8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
  transform: translateY(3px);
}
.brand__text { font-size: 15px; font-weight: 650; letter-spacing: 0.5px; color: #fff; }
.brand__sub { font-size: 11px; color: #8ea3b8; letter-spacing: 0.3px; }

.topbar__ctx {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  color: #b9c8d6;
}
.ctx__gid { font-family: var(--mono); color: #e8eef4; font-size: 12px; }
.ctx__sep { color: #4a627a; }
.ctx__round { color: #dce6ef; }
.ctx__timer {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffe08a;
}
.ctx__timer.is-urgent {
  background: rgba(191, 44, 44, 0.3);
  border-color: #d06060;
  color: #ffd9d9;
}

.topbar__right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 11.5px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.chip--ok { background: rgba(23, 129, 90, 0.18); border-color: rgba(23, 129, 90, 0.45); color: #a8e6cd; }
.chip--bad { background: rgba(191, 44, 44, 0.2); border-color: rgba(191, 44, 44, 0.5); color: #ffc4c4; }
.chip--muted { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); color: #a9bccd; }

.banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: var(--radius);
  font-size: 11.5px;
}
.banner--error { background: var(--bad-bg); border: 1px solid #f0bdb9; color: #7d1a1a; }
.banner__code { font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 3px; background: #fff; border: 1px solid #e5a9a4; }
.banner__msg { color: #7d1a1a; }

.userchip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.25;
}
.userchip__name { font-size: 12px; color: #fff; font-weight: 600; }
.userchip__role { font-size: 10.5px; color: #8ea3b8; }

/* ---- 标签栏 */
.tabbar {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 38px;
  padding: 0 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 12.5px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab:hover { background: var(--bg-3); color: var(--ink); }
.tab.is-active, .tab.tab--on { color: var(--accent-dk); border-bottom-color: var(--accent); font-weight: 650; background: #f7fafd; }
.tab__icon { font-size: 12px; opacity: 0.75; }
.tabbar__spacer { flex: 1 1 auto; }
.tabbar__tools { display: flex; align-items: center; gap: 8px; }
.tabbar__stamp { font-size: 11px; color: var(--ink-4); font-family: var(--mono); }

/* ---- 主区 */
.main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg);
}
.main__pad { padding: 14px 16px 28px; max-width: 1600px; }

.pagehead {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.pagehead__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.pagehead__sub { font-size: 12px; color: var(--ink-3); }
.pagehead__phase { display: inline-flex; align-items: center; }

.phase-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ph-briefing { background: #eef1f5; border-color: #d2dae2; color: #4a5a6a; }
.ph-budget { background: var(--gold-bg); border-color: #e6d3a2; color: var(--gold); }
.ph-decision { background: #e8f1fb; border-color: #b9d4ef; color: var(--accent-dk); }
.ph-sign { background: #f3ecfb; border-color: #d8c5ef; color: #5b3fa0; }
.ph-sealed { background: #e9f4ef; border-color: #b7ddca; color: var(--ok); }
.ph-settled { background: #eceff3; border-color: #cfd7df; color: #51606f; }
.ph-unknown { background: #f2f2f2; border-color: #ddd; color: var(--ink-3); }

/* ---- 面板 */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 11px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line-2);
}
.panel__title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.2px;
}
.panel__en {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.panel__icon { color: var(--ink-3); font-size: 12px; }
.panel__hint { font-size: 11px; color: var(--ink-3); }
.panel__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.panel__body { padding: 11px; }
.panel__body > * + * { margin-top: 10px; }

.section { margin-bottom: 12px; }

/* ---- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #c3ceda;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.btn:hover:not(:disabled) { background: #f5f8fb; border-color: #a9b8c7; }
.btn:active:not(:disabled) { background: #eef3f8; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent-dk);
  color: #fff;
  font-weight: 600;
}
.btn--primary:hover:not(:disabled) { background: var(--accent-dk); border-color: #114a91; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--accent-dk); }
.btn--ghost:hover:not(:disabled) { background: #eef4fb; border-color: transparent; }
.btn--sm { height: 24px; padding: 0 9px; font-size: 11.5px; }
.btn--lg { height: 36px; padding: 0 18px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--icon {
  width: 24px;
  padding: 0;
  font-size: 14px;
  font-family: var(--mono);
  line-height: 1;
}

.btn-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent-dk);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 标签 / 徽标 */
.tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  background: #eef1f5;
  border: 1px solid #d8e0e8;
  color: var(--ink-2);
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.tag--ok { background: var(--ok-bg); border-color: #b7ddca; color: var(--ok); }
.tag--bad { background: var(--bad-bg); border-color: #f0bdb9; color: var(--bad); }
.tag--wait { background: var(--warn-bg); border-color: #ecd3a6; color: var(--warn); }
.tag--sign { background: #f3ecfb; border-color: #d8c5ef; color: #5b3fa0; }
.tag--mine { background: #e8f1fb; border-color: #b9d4ef; color: var(--accent-dk); }
.tag--gold { background: var(--gold-bg); border-color: #e6d3a2; color: var(--gold); }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* 岗位色点 */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--r-other);
  flex: 0 0 auto;
  vertical-align: middle;
}
.dot.role-principal { background: var(--r-principal); }
.dot.role-finance { background: var(--r-finance); }
.dot.role-hr { background: var(--r-hr); }
.dot.role-ops { background: var(--r-ops); }
.dot.role-acad { background: var(--r-acad); }
.dot.role-other { background: var(--r-other); }

/* ============================================================ 表单 */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field__label { font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.2px; }

.input, .select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid #c3ceda;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-family: inherit;
  width: 100%;
  min-width: 0;
}
.select { padding-right: 4px; cursor: pointer; }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(31, 111, 208, 0.15);
}
.input:disabled, .select:disabled {
  background: #f2f5f8;
  color: var(--ink-3);
  cursor: not-allowed;
}
.input--num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.input--key { font-family: var(--mono); font-size: 11.5px; }
.input.is-bad, .select.is-bad, .input--bad { border-color: var(--bad); background: #fff8f7; }

.numin { display: flex; align-items: center; gap: 6px; }
.numin__unit { font-size: 11px; color: var(--ink-3); white-space: nowrap; }

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.checkline input { margin: 0; }

.switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: #cbd5df;
  transition: background 0.15s;
  flex: 0 0 auto;
}
.switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.switch input:checked + .switch__track { background: var(--ok); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(16px); }
.switch input:disabled + .switch__track { opacity: 0.5; }
.switch input:focus-visible + .switch__track { box-shadow: 0 0 0 2px rgba(31, 111, 208, 0.35); }
.switch__text { font-size: 11.5px; color: var(--ink-2); min-width: 24px; }

.form { display: flex; flex-direction: column; gap: 10px; }
.formgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 12px;
}
.formgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.formfoot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
  flex-wrap: wrap;
}

.formerr {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  color: #7d1a1a;
}
.formerr--block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 10px;
  background: var(--bad-bg);
  border: 1px solid #f0bdb9;
  border-radius: var(--radius);
}
.formerr__code {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #e5a9a4;
  color: #7d1a1a;
}
.formerr__msg { color: #7d1a1a; font-weight: 600; }
.formerr__hint { color: #935050; font-size: 11.5px; }

/* 提示条 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--radius);
  font-size: 12px;
  margin-bottom: 12px;
  background: var(--warn-bg);
  border: 1px solid #ecd3a6;
  color: #6d4608;
}
.notice--sealed { background: #eceff3; border-color: #cfd7df; color: #46556a; }
.notice--warn { background: var(--warn-bg); border-color: #ecd3a6; color: #6d4608; }
.notice--ok { background: #eef7f0; border-color: #c8e2cf; color: #245b34; }
.notice__icon { flex: 0 0 auto; font-size: 13px; line-height: 1.4; }

/* ============================================================ 表格 */
.tbl {
  width: 100%;
  font-size: 12px;
  background: #fff;
}
.tbl th {
  text-align: left;
  font-weight: 650;
  color: var(--ink-2);
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
  font-size: 11.5px;
  white-space: nowrap;
}
.tbl td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  color: var(--ink);
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #f8fbfe; }
.tbl tr.tr--me td { background: #f4f9fe; }
.tbl tr.tr--me td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.tbl tr.tr--me td:first-child { font-weight: 650; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl--dense th { padding: 5px 8px; }
.tbl--dense td { padding: 5px 8px; }
.tbl--compact { font-size: 11.5px; }
.tbl--compact th, .tbl--compact td { padding: 4px 7px; }

.code { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.4px; }

/* 键值表 */
.kv { display: flex; flex-direction: column; }
.kv--dense .kv__row { padding: 4px 0; }
.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-2);
}
.kv__row:last-child { border-bottom: 0; }
.kv__k { color: var(--ink-3); font-size: 11.5px; }
.kv__v { font-variant-numeric: tabular-nums; font-weight: 600; }
.row { display: flex; align-items: center; gap: 8px; }
.row--tight { gap: 5px; }

/* ============================================================ 空态 / 加载 / 错误 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 16px;
  text-align: center;
  color: var(--ink-3);
  background: repeating-linear-gradient(45deg, #fbfcfd, #fbfcfd 8px, #f7f9fb 8px, #f7f9fb 16px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty__text { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.empty__hint { font-size: 11.5px; color: var(--ink-3); }

.spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  color: var(--ink-3);
  font-size: 12px;
  justify-content: center;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  color: var(--ink-3);
  font-size: 12px;
}
.loading .spinner { padding: 0; }

/* 报表里的操作/说明列 */
.tbl td.ops, .stmttbl td.ops { color: var(--ink-3); font-size: 11.5px; }
.spinner::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid #c8d3de;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.errcard {
  border: 1px solid #f0bdb9;
  background: #fffafa;
  border-radius: var(--radius);
  padding: 11px;
  margin-bottom: 10px;
}
.errcard__head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.errcard__title { font-size: 12.5px; font-weight: 650; color: #7d1a1a; }
.errcode {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #e5a9a4;
  color: #7d1a1a;
}
.errcard__msg { font-size: 12px; color: #7d1a1a; margin-bottom: 3px; }
.errcard__hint { font-size: 11.5px; color: #935050; margin-bottom: 6px; }
.errcard__meta { display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.errcard__raw {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 8px;
  max-height: 150px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.errcard__foot { margin-top: 8px; display: flex; gap: 8px; }

.codeblock {
  font-family: var(--mono);
  font-size: 11px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 10px;
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink-2);
}

/* Toast */
.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  max-width: 380px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: #22303d;
  color: #eef3f8;
  font-size: 12.5px;
  box-shadow: 0 6px 20px rgba(15, 26, 38, 0.28);
  animation: toast-in 0.18s ease-out;
}
.toast--success { background: #14654a; }
.toast--error { background: #8d2020; }
.toast--info { background: #22303d; }
.toast__mark { font-size: 13px; }
.toast__msg { flex: 1 1 auto; }
.toast--out { animation: toast-out 0.2s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* 模态 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 38, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
  animation: fade-in 0.12s ease-out;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 460px;
  max-width: 92vw;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 48px rgba(15, 26, 38, 0.35);
  overflow: hidden;
}
.modal__title {
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.modal__body { padding: 14px; font-size: 12.5px; color: var(--ink-2); }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-3);
}

/* ============================================================ 登录页 */
.login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 100vh;
  background: var(--navy);
}
.login__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 56px 60px;
  background:
    radial-gradient(900px 420px at 12% 18%, rgba(63, 138, 224, 0.22), transparent 62%),
    radial-gradient(700px 380px at 78% 82%, rgba(23, 129, 90, 0.18), transparent 60%),
    linear-gradient(160deg, #101d2b, #0b141d 60%);
  color: #dbe6f0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.login__brand { display: flex; align-items: center; gap: 11px; }
.login__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: linear-gradient(135deg, #4a95e8, #1b5aa2);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
}
.login__brandtext { display: flex; flex-direction: column; line-height: 1.25; }
.login__title { font-size: 22px; font-weight: 650; color: #fff; letter-spacing: 1px; }
.login__sub { font-size: 12px; color: #8ea3b8; letter-spacing: 0.4px; }
.login__brief { font-size: 13px; color: #b3c5d5; line-height: 1.75; max-width: 560px; }

.login__cards { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.login__card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 128px;
}
.login__cardtitle { font-size: 12px; font-weight: 650; color: #e6eef6; display: flex; align-items: center; gap: 6px; }
.login__cardsub { font-size: 10.5px; color: #8ea3b8; }

.login__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
  background: #fff;
}
.login__cardform { display: flex; flex-direction: column; gap: 12px; }
.login__hint { font-size: 11.5px; color: var(--ink-3); }
.login__hint--bad { color: var(--bad); font-weight: 600; }
.login__foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--ink-4);
  line-height: 1.7;
}
.login__help {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.login__helpbody { margin-top: 4px; color: var(--ink-2); }

/* ============================================================ 驾驶舱 */
.roundbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.roundbar__left { display: flex; align-items: center; gap: 18px; flex: 1 1 auto; flex-wrap: wrap; }
.roundbar__round { display: flex; align-items: baseline; gap: 6px; }
.roundbar__label { font-size: 11px; color: var(--ink-3); }
.roundbar__num { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.roundbar__of { font-size: 12px; color: var(--ink-3); }
.roundbar__phase { display: flex; align-items: center; gap: 7px; }
.roundbar__phasehint { font-size: 11px; color: var(--ink-3); }
.roundbar__timer {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.roundbar__timer.is-urgent { background: var(--bad-bg); border-color: #f0bdb9; color: var(--bad); }
.roundbar__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.countdown { font-variant-numeric: tabular-nums; }

.sealedflag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius);
  background: #eceff3;
  border: 1px solid #cfd7df;
  color: #46556a;
  font-size: 11.5px;
  font-weight: 600;
}

.seatchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.seatchip__team { font-weight: 650; color: var(--ink); }
.seatchip__r { font-weight: 600; }
.seatchip__n, .seatchip__name { color: var(--ink-3); font-size: 11px; }
.seatchip--on { background: #f2f8fd; border-color: #c9dcef; }
.seatlist { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* 岗位主色：整页左侧色条 + 强调 */
.cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.cockpit-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cockpit-col > .panel { margin-bottom: 0; }

.role-accent { --role: var(--r-other); }
.main__pad.role-principal { --role: var(--r-principal); }
.main__pad.role-finance { --role: var(--r-finance); }
.main__pad.role-hr { --role: var(--r-hr); }
.main__pad.role-ops { --role: var(--r-ops); }
.main__pad.role-acad { --role: var(--r-acad); }
.main__pad.role-principal .roundbar,
.main__pad.role-finance .roundbar,
.main__pad.role-hr .roundbar,
.main__pad.role-ops .roundbar,
.main__pad.role-acad .roundbar { border-left-color: var(--role, var(--accent)); }

/* KPI 卡 */
.kpigrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}
.kpigrid--sm { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.kpicard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--role, var(--line));
  border-radius: var(--radius);
  background: var(--bg-3);
  min-width: 0;
}
.kpicard--sm { padding: 6px 8px; }
.kpicard__label { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpicard__value {
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-all;
}
.kpicard--sm .kpicard__value { font-size: 14px; }
.kpicard__note { font-size: 10.5px; color: var(--ink-4); }

/* 私有信息区 */
.privlist { display: flex; flex-direction: column; gap: 0; }
.privrow {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(0, 1.1fr);
  gap: 4px 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-2);
  align-items: baseline;
}
.privrow:last-child { border-bottom: 0; }
.privrow__key {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.privrow__lock { font-size: 10px; color: var(--gold); }
.privrow__val {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}
.privrow__note { grid-column: 1 / -1; font-size: 10.5px; color: var(--ink-4); }
.privrow__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.privrow__actions .btn { padding: 2px 8px; font-size: 10.5px; }
.privrow--observation { grid-template-columns: minmax(0, 1fr); }
.privrow--observation .privrow__key { flex-wrap: wrap; }
.privrow__actions { align-items: center; gap: 8px; flex-wrap: wrap; }
.privrow__actions .input { width: auto; padding: 3px 6px; }
.private-data { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.private-data th, .private-data td { padding: 4px; vertical-align: top; overflow-wrap: anywhere; }
.private-data th { width: 44%; text-align: left; font-weight: 400; color: var(--ink-3); }
.private-data td { text-align: right; }
.private-data details { text-align: left; }
.private-data summary { cursor: pointer; color: var(--ink-3); }
.privlist__arr { font-size: 10.5px; color: var(--ink-4); }
.disclosure-block { margin-bottom: 10px; }
.disclosure-block:last-child { margin-bottom: 0; }
.disclosure-block__title { font-size: 10.5px; font-weight: 700; color: var(--ink-4); margin: 2px 0 4px; letter-spacing: .04em; }

/* 私有区视觉标识：金色左边框 + 底纹 */
.panel--private { border-left: 3px solid var(--gold); background: #fffdf7; }
.panel--private .panel__head { background: #fbf6e8; border-bottom-color: #ece0bf; }
.panel--private .panel__title { color: #6a5216; }

/* 精力点 */
.pointsbox { display: flex; flex-direction: column; gap: 6px; }
.pointsbox__num {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--ink);
}
.pointsbox__num .unit { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.pointsbox__bar {
  height: 8px;
  border-radius: 4px;
  background: #e7edf3;
  overflow: hidden;
}
.pointsbox__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #2f9d74, #17795e);
  transition: width 0.25s;
}
.pointsbox__fill.is-bad { background: linear-gradient(90deg, #e0685f, #bf2c2c); }
.pointsbox__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
}
.pointsbox__left { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pointsbox__total { font-family: var(--mono); }
.pointsbox__hint { font-size: 11px; }

/* 大数值（预算） */
.bigval {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.4px;
  color: var(--ink);
  line-height: 1.15;
}
.bigval__sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* 待办 */
.todolist { display: flex; flex-direction: column; gap: 5px; }
.todoitem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-3);
  font-size: 12px;
}
.todoitem__box {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 1px solid #c3ceda;
  border-radius: 3px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}
.todoitem.is-done .todoitem__box { background: var(--ok); border-color: var(--ok); }
.todoitem.is-done .todoitem__title { color: var(--ink-4); text-decoration: line-through; }
.todoitem__title { flex: 1 1 auto; color: var(--ink); }

/* 简要清单 */
.brief__title { font-size: 11.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 3px; }
.brief__list { margin: 0; padding-left: 16px; font-size: 11.5px; color: var(--ink-2); }

/* ============================================================ 预算会 */
.budgettbl { width: 100%; }
.budgettbl .input { height: 26px; font-size: 12px; text-align: right; }
.budgetsum {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  flex-wrap: wrap;
}
.budgetsum.is-bad, .budgetsum--over { background: var(--bad-bg); border-color: #f0bdb9; }
.budgetsum.is-ok { background: var(--ok-bg); border-color: #b7ddca; }
.budgetsum__items { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bsum { display: flex; flex-direction: column; gap: 1px; min-width: 96px; }
.bsum__label { font-size: 10.5px; color: var(--ink-3); }
.bsum__val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bsum__op { color: var(--ink-4); font-size: 14px; font-variant-numeric: tabular-nums; }
.budgetsum__note { flex: 1 1 220px; font-size: 11.5px; color: var(--ink-2); }
.budgetsum.is-bad .budgetsum__note,
.budgetsum--over .budgetsum__note { color: #7d1a1a; font-weight: 600; }
.budgetsum.is-ok .budgetsum__note { color: var(--ok); }

/* ============================================================ 决策页 */
.decision-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.meter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.meter--over { border-color: #e8a9a4; background: #fffafa; }
.meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.meter__label { font-size: 11.5px; color: var(--ink-3); }
.meter__val { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.meter__val b { font-size: 16px; font-weight: 700; }
.meter--over .meter__val b { color: var(--bad); }
.meter__sep { color: var(--ink-4); margin: 0 2px; }
.meter__bar { height: 7px; border-radius: 4px; background: #e7edf3; overflow: hidden; }
.meter__fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #4f96dd, #1f6fd0);
  transition: width 0.2s;
  min-width: 0;
}
.meter--over .meter__fill { background: linear-gradient(90deg, #e0685f, #bf2c2c); }
.meter--points .meter__fill { background: linear-gradient(90deg, #3fae85, #17795e); }
.meter__sub { font-size: 11px; color: var(--ink-3); }
.meter__over { font-size: 11.5px; font-weight: 700; color: var(--bad); }

.usagedetail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 9px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.usagedetail__col { min-width: 0; }
.usagedetail__title { font-size: 11px; font-weight: 650; color: var(--ink-3); margin-bottom: 4px; }
.usagedetail__list { list-style: none; margin: 0; padding: 0; font-size: 11.5px; }
.usagedetail__list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  color: var(--ink-2);
  border-bottom: 1px dotted var(--line-2);
}
.usagedetail__list li:last-child { border-bottom: 0; }
.usagedetail__list .num { font-weight: 600; }

.decision-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.toolbar__left { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; flex-wrap: wrap; }
.toolbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.levergrouplist { display: flex; flex-direction: column; gap: 12px; }
.levergroup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.levergroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 11px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line-2);
}
.levergroup__name { font-size: 12px; font-weight: 650; color: var(--ink); letter-spacing: 0.3px; }
.levergroup__count { font-size: 11px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.levergroup__body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 10px;
  padding: 11px;
}

.levercard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  min-width: 0;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.levercard--mine { border-color: #c9dcef; background: #fcfdff; }
.levercard--active { border-color: #b9d4ef; box-shadow: inset 2px 0 0 var(--accent); }
.levercard--ro { background: var(--bg-3); }
.levercard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.levercard__title { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; }
.levercard__name { font-size: 12.5px; font-weight: 650; color: var(--ink); }
.levercard__owner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.levercard__control { display: flex; align-items: center; gap: 6px; }
.levercard__control > * { flex: 1 1 auto; }
.levercard__control .switch { flex: 0 0 auto; }

/* 多字段决策卡（如 treasury）：逐字段一行，字段名 + 控件 + 计入额度标记 */
.levercard__control .fieldset { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.fieldrow { display: flex; flex-direction: column; gap: 4px; }
.fieldrow__head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fieldrow__label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.fieldrow__note { font-size: 10.5px; color: var(--ink-4); line-height: 1.4; flex: 1 1 240px; }
.tag--cost {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: #fdf3e7; border: 1px solid #f2ddbf; color: #95622a; white-space: nowrap;
}
.levercard__note { font-size: 11px; color: var(--ink-3); line-height: 1.45; }
.levercard__cost { display: flex; flex-wrap: wrap; gap: 4px; }

.costchip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #f2f5f8;
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
}
.costchip__k { color: var(--ink-4); }
.costchip__v { font-weight: 650; font-variant-numeric: tabular-nums; }
.costchip--on { background: #eef4fb; border-color: #c9dcef; color: var(--accent-dk); }
.costchip--range { background: #fbfbf7; }
.costchip--used { background: var(--gold-bg); border-color: #e6d3a2; color: var(--gold); }

.actionlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 9px; }
.actioncard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.actioncard--on { border-color: #b9d4ef; background: #f9fcff; box-shadow: inset 2px 0 0 var(--accent); }
.actioncard__main { flex: 1 1 auto; min-width: 0; }
.actioncard__name { font-size: 12.5px; font-weight: 650; }
.actioncard__note { font-size: 11px; color: var(--ink-3); }
.actioncard__cost { display: flex; gap: 5px; margin-top: 3px; flex-wrap: wrap; }
.actioncard__ctrl { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.actioncard__times {
  min-width: 22px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.predlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 9px; }
.predrows { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.predrow { display: flex; align-items: center; gap: 6px; }
.predrow .input--key { flex: 1 1 auto; }
.predrow .input--num { flex: 0 0 140px; }

.signmini { display: flex; flex-wrap: wrap; gap: 6px; }
.signmini__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
  font-size: 11.5px;
  color: var(--ink-2);
}
.signmini__item--ok { background: var(--ok-bg); border-color: #b7ddca; color: var(--ok); }

/* ============================================================ 封存页 */
.sealgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.signlist { display: flex; flex-direction: column; gap: 7px; }
.signrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.signrow.is-done { background: var(--ok-bg); border-color: #b7ddca; }
.signrow__mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #c3ceda;
  background: #fff;
  color: var(--ink-4);
}
.signrow.is-done .signrow__mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.signrow__main { flex: 1 1 auto; min-width: 0; }
.signrow__role { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; }
.signrow__cat { font-size: 11px; color: var(--ink-3); }
.signrow__state { flex: 0 0 auto; }

.sealbar { display: flex; flex-direction: column; gap: 6px; }
.sealbar__bar { height: 10px; border-radius: 5px; background: #e7edf3; overflow: hidden; }
.sealbar__fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #3fae85, #17795e);
  transition: width 0.25s;
}
.sealbar__text { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.sealaction {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #c9dcef;
  border-radius: var(--radius);
  background: #f9fcff;
}
.sealaction__who { font-size: 12px; color: var(--ink-2); }
.sealaction__note { font-size: 11.5px; color: var(--ink-3); }

/* ============================================================ 战报 */
.stmtgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}
.stmt { min-width: 0; }
.stmttbl { width: 100%; font-size: 12px; }
.stmttbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-3);
  background: var(--bg-3);
  padding: 5px 9px;
  border-bottom: 1px solid var(--line);
}
.stmttbl td { padding: 5px 9px; border-bottom: 1px solid var(--line-2); }
.stmttbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stmttbl tr.is-total td { font-weight: 700; border-top: 1px solid var(--line); background: #fbfcfd; }
.stmttbl tr.is-neg td.num { color: var(--bad); }
.stmtfoot {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
  margin-bottom: 12px;
}

.reportgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.reportgrid > .panel { margin-bottom: 0; }

.flagrow { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--ink-2);
}
.flag--bad { background: var(--bad-bg); border-color: #f0bdb9; color: var(--bad); }
.flag--warn { background: var(--warn-bg); border-color: #ecd3a6; color: var(--warn); }

.rank { display: flex; flex-direction: column; }
.rank__row, .rank {
  font-size: 12px;
}
.rank__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.rank__no.is-first { background: var(--gold-bg); border-color: #e6d3a2; color: var(--gold); }
tr.is-me td { background: #f2f8fd; font-weight: 650; }
tr.is-me td:first-child { box-shadow: inset 2px 0 0 var(--accent); }

.timeline { position: relative; display: flex; flex-direction: column; gap: 0; padding-left: 4px; }
.timeline__item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 9px;
  padding: 6px 0 6px 0;
  position: relative;
}
.timeline__item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline__item:first-child::before { top: 14px; }
.timeline__item:last-child::before { bottom: calc(100% - 14px); }
.timeline__dot {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  margin: 4px 0 0 3px;
  border-radius: 50%;
  background: #b9c8d6;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.timeline__dot.ev-type-settle { background: var(--accent); }
.timeline__dot.ev-type-seal { background: var(--ok); }
.timeline__dot.ev-type-warn { background: var(--bad); }
.timeline__dot.ev-type-info { background: #8ea3b8; }
.timeline__body { min-width: 0; }
.timeline__title { font-size: 12px; font-weight: 600; color: var(--ink); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.timeline__msg { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }

.teachgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 9px; }
.teachcard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius);
  background: #fffdf7;
  min-width: 0;
}
.teachcard__head { display: flex; align-items: baseline; gap: 6px; justify-content: space-between; }
.teachcard__title { font-size: 12.5px; font-weight: 650; color: #6a5216; }
.teachcard__body { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; white-space: pre-wrap; }
.teachcard__trigger { font-size: 10.5px; color: var(--ink-4); border-top: 1px dashed #ece0bf; padding-top: 4px; }
.teachcard__theory { font-size: 10.5px; color: var(--ink-3); }

/* ============================================================ 讲师台 */
.instrgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}
.instrgrid > .panel { margin-bottom: 0; }
.instrtbl { width: 100%; font-size: 12px; }

.stateblock { display: flex; flex-direction: column; gap: 5px; }
.stateblock__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line-2);
}
.stateblock__row:last-child { border-bottom: 0; }
.stateblock__k { font-size: 11.5px; color: var(--ink-3); }
.stateblock__v { font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }

.createdbox {
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px solid #b7ddca;
  border-radius: var(--radius);
  background: #f6fcf9;
}
.createdbox__head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap; font-size: 12.5px; }
.codetbl { margin-bottom: 6px; }
.codetbl td.code { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; font-weight: 650; }
.codetbl td.code::selection { background: #cfe4f8; }

/* ============================================================ 复盘 */
.chainbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  margin-bottom: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
}
.chainbar__k { font-size: 11.5px; color: var(--ink-3); }
.eventtbl { width: 100%; font-size: 11.5px; }
.eventtbl td { vertical-align: top; }
.evtype {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #eef1f5;
  border: 1px solid #d8e0e8;
  color: var(--ink-2);
  white-space: nowrap;
}
.evpayload {
  max-width: 420px;
  max-height: 84px;
  overflow: auto;
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-all;
  background: #f7f9fb;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 4px 6px;
}

/* ============================================================ 启动屏 */
.boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100vh;
  background: linear-gradient(160deg, #101d2b, #0b141d 65%);
  color: #dbe6f0;
}
.boot__logo { font-size: 24px; font-weight: 650; letter-spacing: 2px; color: #fff; }
.boot__sub { font-size: 12px; color: #8ea3b8; letter-spacing: 0.6px; }
.boot__status {
  margin-top: 10px;
  font-size: 12px;
  color: #8ea3b8;
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.boot__status::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid #33506b;
  border-top-color: #4a95e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================================ 响应式（桌面收窄，不做移动端） */
@media (max-width: 1440px) {
  .decision-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .usagedetail { grid-column: 1 / -1; }
}
@media (max-width: 1240px) {
  .cockpit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stmtgrid { grid-template-columns: 1fr; }
  .reportgrid { grid-template-columns: 1fr; }
  .instrgrid { grid-template-columns: 1fr; }
  .sealgrid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .login { grid-template-columns: 1fr; }
  .login__left { display: none; }
  .cockpit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tabbar { flex-wrap: wrap; height: auto; }
  .tabbar__tools { margin-left: 0; padding-bottom: 5px; }
  .topbar .brand__sub, .topbar__ctx { display: none; }
  .topbar { gap: 6px; }
}

/* 打印：留白收紧，隐藏交互件 */
@media print {
  .topbar, .tabbar, .toasts, .decision-toolbar, .btn { display: none !important; }
  .main { overflow: visible; }
  .panel { break-inside: avoid; }
}

/* F1-2：业务单据摘要 / 失效签署 */
.doclist { display: flex; flex-direction: column; gap: 8px; }
.docrow { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface-2); }
.docrow__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 650; }
.docrow .small { margin-top: 4px; }

/* F2-3：三表本期/累计、战报桥接 */
.ph-warn { background: var(--gold-bg); border-color: #e6d3a2; color: var(--gold); }
.tag--warn { background: var(--gold-bg); border-color: #e6d3a2; color: var(--gold); }
.stmttbl--two th:first-child, .stmttbl--two td:first-child { width: 44%; }
.bridge { display: flex; flex-direction: column; gap: 12px; }
.bridge__checks { display: flex; gap: 6px; flex-wrap: wrap; }
.bridge__section { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bridge__head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--surface-2); font-size: 12.5px; }
.bridge__title { font-weight: 650; }
.bridge__total { margin-left: auto; font-variant-numeric: tabular-nums; }
.bridgetbl th, .bridgetbl td { padding: 5px 8px; }
.bridge__profit { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 12.5px; }
