:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --ink: #1f2733;
  --muted: #6b7785;
  --line: #e3e8ef;
  --brand: #2f6df0;
  --brand-soft: #eaf1ff;
  --accent: #0fae8e;
  --danger: #e5484d;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .06);
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5;
}
#app { display: flex; flex-direction: column; height: 100vh; }

/* Topbar */
#topbar {
  height: 56px; display: flex; align-items: center; gap: 16px;
  padding: 0 18px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
#topbar .logo { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
#topbar .logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
#topbar .spacer { flex: 1; }
.ent-select { display: flex; align-items: center; gap: 8px; }
.ent-select select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 240px; font-size: 13px; color: var(--ink);
}

/* Body */
#body { flex: 1; display: flex; min-height: 0; }
#sidebar {
  width: 220px; background: var(--panel); border-right: 1px solid var(--line);
  overflow-y: auto; padding: 12px 8px; flex-shrink: 0;
}
.nav-group-title { font-size: 11px; color: var(--muted); padding: 14px 12px 6px; letter-spacing: .5px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  cursor: pointer; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; user-select: none;
}
.nav-item:hover { background: var(--bg); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .ic { width: 18px; text-align: center; }

#main { flex: 1; overflow-y: auto; padding: 22px 26px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 19px; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.page-head .spacer { flex: 1; }

/* Card / toolbar */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }

/* Buttons */
.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px;
  border-radius: 8px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #2257d6; color: #fff; }
.btn.danger { color: var(--danger); border-color: #f3c2c4; }
.btn.danger:hover { background: #fdecec; }
.btn.sm { padding: 5px 10px; font-size: 12px; }

/* Table */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.grid th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 12px; position: sticky; top: 0; }
table.grid tr:hover td { background: #fafcff; }
table.grid td .num { font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--brand-soft); color: var(--brand); }
.tag.green { background: #e6f7f1; color: var(--accent); }
.tag.gray { background: #eef1f5; color: var(--muted); }
.tag.tag-ac { background: #eef2fb; color: #2f6fed; }
.tag.tag-gq { background: #fdeede; color: #c77700; }
.tag.tag-tax { background: #e6f7f1; color: #0f9d6b; }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.stat-row b { color: var(--ink); }

/* 附件清单报表 */
.badge-att { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-att.full { background: #e6f6ec; color: #1a7f37; }
.badge-att.part { background: #fff4e0; color: #b76e00; }
.badge-att.miss { background: #fde8e8; color: #c0392b; }
.badge-att.none { background: #eef1f5; color: #8a94a6; }

/* 侧边栏红色数字徽章 */
.nav-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 8px; border-radius: 9px; background: #e7402f; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.nav-item.active .nav-badge { background: #c0392b; }

/* 主动预警横幅 */
.alert-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg,#fff3f2,#fdecea); border: 1px solid #f3c2bd; border-left: 4px solid #e7402f; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; cursor: pointer; transition: box-shadow .15s; }
.alert-banner:hover { box-shadow: 0 4px 14px rgba(231,64,47,.18); }
.alert-banner .ab-ico { font-size: 22px; }
.alert-banner .ab-body { flex: 1; }
.alert-banner .ab-title { font-size: 14px; font-weight: 700; color: #b3271b; }
.alert-banner .ab-title b { font-size: 16px; }
.alert-banner .ab-sub { font-size: 12px; color: #8a5a53; margin-top: 2px; }
.alert-banner .ab-btn { background: #e7402f; color: #fff; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.alert-banner.warn { background: linear-gradient(90deg,#fff8ec,#fdf3e0); border-color: #f0c674; border-left-color: #e0902a; }
.alert-banner.warn .ab-title { color: #9a5b12; }
.alert-banner.warn .ab-sub { color: #8a6a3a; }
.hint.ok-inline { color: #1a7f37; font-weight: 600; }

/* 主动预警：Toast 通知 */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 240px; max-width: 360px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(16,24,40,.18); font-size: 13px; animation: toastIn .2s ease; }
.toast.warn { border-left-color: #e7402f; }
.toast.ok { border-left-color: #1a7f37; }
.toast .t-title { font-weight: 700; margin-bottom: 2px; }
.toast .t-body { color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 主动预警：首次打开弹窗 */
.notify-mask { position: fixed; inset: 0; background: rgba(16,24,40,.5); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.notify-card { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; padding: 22px 24px; box-shadow: 0 16px 48px rgba(16,24,40,.3); }
.notify-ico { font-size: 30px; text-align: center; }
.notify-title { text-align: center; font-size: 17px; font-weight: 700; margin: 6px 0 4px; }
.notify-sub { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.6; margin-bottom: 12px; }
.notify-sub b { color: #e7402f; }
.notify-list { list-style: none; padding: 0; margin: 0 0 12px; max-height: 220px; overflow-y: auto; }
.notify-list li { font-size: 12.5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.notify-list li .muted { color: var(--muted); }
.notify-list li.more { text-align: center; color: var(--muted); border: none; }
.notify-allow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 14px; cursor: pointer; }
.notify-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* 巡检栏 */
.inspect-bar { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; font-size: 13px; box-shadow: var(--shadow); }
.inspect-bar .ib-dot { width: 8px; height: 8px; border-radius: 50%; background: #1a7f37; }
.inspect-bar .ib-sep { color: var(--muted); }
.inspect-bar .spacer { flex: 1; }

/* 危险态 / 正常态统计卡 */
.stat.danger { border-color: #f3c2bd; background: #fff7f6; }
.stat.ok { border-color: #bfe6cb; }
.v.danger { color: #e7402f; }

/* A107012 申报表 */
table.grid.a107 tr.sec td { background: #eef3fb !important; font-weight: 700; color: var(--ink); border-top: 2px solid var(--line); }
table.grid.a107 td.c { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 附件留痕 */
.att-zone { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.att-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.att-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; }
.att-file { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #eef1f5; border-radius: 6px; flex-shrink: 0; }
.att-meta { flex: 1; min-width: 0; }
.att-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-size { font-size: 12px; color: var(--muted); }
.att-add { cursor: pointer; width: max-content; }
.att-add input { margin-left: 6px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Stats */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; min-width: 150px; box-shadow: var(--shadow); }
.stat .k { color: var(--muted); font-size: 12px; }
.stat .v { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .v.small { font-size: 16px; }

/* Modal */
#modal-root { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto; }
#modal-root.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; box-shadow: 0 12px 40px rgba(16,24,40,.25); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; display: flex; align-items: center; }
.modal-head .x { margin-left: auto; cursor: pointer; color: var(--muted); }
.modal-body { padding: 18px 20px; max-height: 64vh; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* Form */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; color: var(--ink); background: #fff; font-family: inherit;
}
.field textarea { min-height: 70px; resize: vertical; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Timeline */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-date { font-weight: 600; margin: 18px 0 8px; color: var(--brand); }
.tl-item { position: relative; margin-bottom: 8px; padding-left: 14px; }
.tl-item::before { content: ''; position: absolute; left: -14px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.tl-item .meta { color: var(--muted); font-size: 12px; }
.tl-item .t { font-weight: 600; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: 11px; background: var(--brand-soft); color: var(--brand); margin-right: 6px; }

.note-box { background: #fff8ec; border: 1px solid #f3e2c0; color: #8a6d3b; padding: 12px 14px; border-radius: 8px; font-size: 12.5px; margin-bottom: 16px; line-height: 1.6; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs .tab { padding: 8px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.tabs .tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
input.num-in { text-align: right; font-variant-numeric: tabular-nums; }

/* 登录页（云端模式） */
.login-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px; box-shadow: 0 10px 30px rgba(20, 40, 80, .08); }
.login-card h2 { margin: 0 0 6px; font-size: 20px; }
.login-card .sub { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; line-height: 1.6; }
.login-card label { display: block; font-size: 12.5px; color: var(--ink); margin: 12px 0 6px; }
.login-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; box-sizing: border-box; }
.login-card .btn.primary { width: 100%; margin-top: 18px; padding: 11px; font-size: 14px; }
.login-card .hint { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; background: #f6f8fb; border-radius: 8px; padding: 10px 12px; }
.login-tabs { display: flex; gap: 4px; margin: 6px 0 14px; background: #f1f4f8; border-radius: 10px; padding: 4px; }
.login-tab { flex: 1; text-align: center; padding: 9px 6px; font-size: 13px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.login-tab.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.login-pane.hidden { display: none; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); margin-left: 6px; }
.uc-role { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.role-admin { background: #e7f0ff; color: #2563eb; }
.role-rd { background: #e8f7ee; color: #1f9254; }
.role-finance { background: #f3e8ff; color: #7c3aed; }
.role-hr { background: #fff4e0; color: #b7791f; }
.role-platform { background: #1f2733; color: #fff; }
.pf-tag { font-size: 11px; background: #1f2733; color: #fff; padding: 2px 8px; border-radius: 6px; margin-left: 8px; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 6px; }
.pf-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.pf-card-t { color: var(--muted); font-size: 13px; }
.pf-card-v { font-size: 28px; font-weight: 700; margin: 6px 0 2px; }
.pf-card-s { color: var(--muted); font-size: 12px; }
.prog-bar { position: relative; height: 18px; background: #eef1f5; border-radius: 9px; min-width: 130px; overflow: hidden; }
.prog-fill { height: 100%; background: #2f6df0; transition: width .3s; }
.prog-bar span { position: absolute; right: 8px; top: 0; line-height: 18px; font-size: 11px; font-weight: 600; color: #1f2733; }
.prog-dot { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; border: 1px solid var(--line); margin: 1px; }
.prog-dot.on { background: #e8f7ee; color: #1f9254; border-color: #bfe6cd; }
.prog-dot.off { background: #fdecec; color: #d23b3b; border-color: #f3c5c5; }
.modal-mask { width: 100%; display: flex; justify-content: center; }
.modal-mask > .modal { margin: 0; }
.modal h3 { margin: 0; font-size: 16px; display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal h3 .x { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 18px; }
.modal-actions { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* 运行模式徽章 */
.mode-badge { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; margin-left: 8px; }
.mode-badge.local { background: #eef1f5; color: #6b7686; }
.mode-badge.cloud { background: #e7f0ff; color: #2563eb; }
.mode-badge.warn { background: #fff4e0; color: #b7791f; }
.mode-badge.ok { background: #e8f7ee; color: #1f9254; }
.mode-badge.err { background: #fdecec; color: #d23b3b; }

  /* 运行设置：分段单选 */
  .seg { display: flex; flex-direction: column; gap: 8px; }
  .seg-item { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 13.5px; background: #fff; }
  .seg-item:hover { border-color: var(--brand); }
  .seg-item.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  .seg-item input { margin: 0; accent-color: var(--brand); }

  /* 工作台：分区标题 */
  .wb-sec { font-size: 15px; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--brand); color: var(--ink); }
  .wb-sub { font-size: 13.5px; margin: 16px 0 8px; color: var(--muted); font-weight: 700; }

  /* 每月投入占比条形 */
  .mbar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; font-size: 13px; }
  .mbar-label { width: 64px; color: var(--muted); flex-shrink: 0; }
  .mbar-track { flex: 1; height: 16px; background: #eef1f6; border-radius: 8px; overflow: hidden; }
  .mbar-fill { display: block; height: 100%; background: linear-gradient(90deg,#3b82f6,#2f6df0); border-radius: 8px; }
  .mbar-val { width: 230px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; flex-shrink: 0; }

  /* 三口径对比卡 */
  .caliber-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  @media (max-width: 880px) { .caliber-grid { grid-template-columns: repeat(2, 1fr); } }
  .caliber-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
  .caliber-card .cc-h { font-size: 12px; color: var(--muted); }
  .caliber-card .cc-v { font-size: 20px; font-weight: 700; margin: 6px 0 4px; font-variant-numeric: tabular-nums; color: var(--brand); }
  .caliber-card .cc-s { font-size: 11.5px; color: var(--muted); line-height: 1.5; }

  /* 高新认定指标卡（红绿灯） */
  .ht-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  @media (max-width: 880px) { .ht-grid { grid-template-columns: 1fr; } }
  .ht-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
  .ht-card.ok { border-left-color: #1a7f37; }
  .ht-card.bad { border-left-color: #c0392b; }
  .ht-k { font-size: 13px; color: var(--ink); font-weight: 600; }
  .ht-k .ht-rate { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }
  .ht-v { font-size: 26px; font-weight: 800; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
  .ht-card.ok .ht-v { color: #1a7f37; }
  .ht-card.bad .ht-v { color: #c0392b; }
  .ht-req { font-size: 12px; color: var(--muted); }
  .ht-detail { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
  .ht-badge { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
  .ht-badge.ok { background: #e6f6ec; color: #1a7f37; }
  .ht-badge.bad { background: #fde8e8; color: #c0392b; }
  .tag-live { color: var(--accent); font-size: 11px; background: #e6f7f3; padding: 1px 6px; border-radius: 6px; }
  .muted { color: var(--muted); }

  /* 状态徽章 */
  .status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
  .status-pill.ok { background: #e6f6ec; color: #1a7f37; }
  .status-pill.warn { background: #fff4e0; color: #b76e00; }
  .status-pill.danger { background: #fde8e8; color: #c0392b; }
  .status-pill.gray { background: #eef1f5; color: #8a94a6; }
  .mini-bar { width: 90px; height: 6px; background: #eef1f6; border-radius: 4px; margin-top: 3px; overflow: hidden; }
  .mini-bar span { display: block; height: 100%; background: var(--brand); }

  /* 每月投入折线图 */
  .rp-chart { display: block; width: 100%; background: #fbfcfe; border: 1px solid var(--line); border-radius: var(--radius); }

  /* 高新综合评分（100分制）卡 */
  .hts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
  @media (max-width: 880px) { .hts-grid { grid-template-columns: repeat(2, 1fr); } }
  .hts-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
  .hts-card.auto { background: #f6f9ff; border-color: #cfe0ff; }
  .hts-k { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 6px; }
  .hts-k span { font-size: 11px; font-weight: 400; color: var(--muted); background: #eef1f5; padding: 1px 7px; border-radius: 999px; }
  .hts-in-wrap { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
  .hts-in { width: 84px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 18px; font-weight: 700; text-align: right; color: var(--brand); font-variant-numeric: tabular-nums; background: #fff; }
  .hts-in-wrap i { font-style: normal; color: var(--muted); font-size: 13px; }
  .hts-v { font-size: 30px; font-weight: 800; color: #2257d6; margin-top: 8px; font-variant-numeric: tabular-nums; }
  .hts-cap { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
  .hts-total { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
  .hts-total-num { font-size: 14px; color: var(--ink); }
  .hts-total-num b { font-size: 24px; color: var(--brand); font-variant-numeric: tabular-nums; }
  .hts-total-num span { font-size: 14px; color: var(--muted); }
  .hts-bar { flex: 1; min-width: 160px; height: 12px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
  .hts-bar span { display: block; height: 100%; background: linear-gradient(90deg, #38b06b, #2f6df0); }
  .hts-note { font-size: 12px; color: var(--muted); }

  /* 分摊管理：明细网格 + 规则按钮 */
  .alloc-shares { margin-bottom: 8px; }
  .alloc-grid { font-size: 13px; }
  .alloc-grid th, .alloc-grid td { padding: 6px 8px; }
  .alloc-grid input { padding: 6px 8px; }
  .rule-opt { margin: 2px 4px 2px 0; }
  .rule-opt.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
  .modal.alloc-modal { max-width: 720px; }
