:root {
  --brand: #14487f;
  --brand-2: #1b5faa;
  --brand-3: #2f80ed;
  --brand-soft: #eaf1fa;
  --ink: #1a2b3c;
  --ink-2: #3c4d5e;
  --muted: #6b7b8c;
  --line: #e3e9f0;
  --line-2: #eef2f7;
  --bg: #f4f6fa;
  --card: #ffffff;
  --green: #1f9d55;
  --green-soft: #e6f5ec;
  --amber: #b8791a;
  --amber-soft: #fdf3e2;
  --red: #c93b3b;
  --red-soft: #fdecec;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 38, 64, .04), 0 6px 20px rgba(16, 38, 64, .05);
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .2px; }
p { margin: 0 0 8px; }
ul, ol { margin: 6px 0; padding-left: 22px; }
code { background: #eef2f7; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c8d3df; border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #aab8c8; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局 ---------------- */
#app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: linear-gradient(178deg, #0e2f56 0%, #14487f 55%, #123c6b 100%);
  color: #dbe6f3;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.brand .emblem {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(140deg, #3f8fd9, #1b5faa);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff; float: left; margin-right: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.brand .title { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: .5px; line-height: 1.35; }
.brand .subtitle { font-size: 11.5px; color: #93b2d3; letter-spacing: 1.2px; margin-top: 2px; }

.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-group-label { font-size: 11px; color: #7fa0c4; letter-spacing: 2px; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 2px 0; border-radius: 8px;
  color: #c3d6ea; cursor: pointer; font-size: 13.5px;
  transition: background .15s, color .15s;
  user-select: none;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(64, 138, 220, .26); color: #fff; box-shadow: inset 2px 0 0 #64a6ee; }
.nav-item .ico { width: 18px; text-align: center; opacity: .9; font-size: 15px; }
.nav-item .badge-dot { margin-left: auto; background: #e0a13a; color: #3a2a08; font-size: 11px; padding: 0 6px; border-radius: 9px; font-weight: 600; }

.sidebar-foot { padding: 12px 18px 18px; font-size: 11px; color: #7796b8; border-top: 1px solid rgba(255, 255, 255, .08); line-height: 1.6; }

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

.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.topbar .page-title { font-size: 16px; font-weight: 600; }
.topbar .page-desc { font-size: 12.5px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.topbar .ctx { display: flex; align-items: center; gap: 8px; }
.topbar .ctx label { font-size: 12.5px; color: var(--muted); }

.userchip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); cursor: pointer; }
.userchip .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.userchip .who { line-height: 1.25; }
.userchip .who .n { font-size: 13px; font-weight: 600; }
.userchip .who .r { font-size: 11.5px; color: var(--muted); }

.view { padding: 22px 24px 40px; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ---------------- 通用组件 ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 14.5px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px 18px; }
.card-body.tight { padding: 8px 18px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-dash { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid #ccd8e5; background: #fff; color: var(--ink-2);
  padding: 7px 14px; border-radius: 7px; cursor: pointer; font-size: 13.5px;
  transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: #b3c5d8; background: #f7fafd; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #17528f; border-color: #17528f; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand-2); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { color: var(--red); border-color: #efcaca; }
.btn-danger:hover { background: var(--red-soft); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; border-radius: 6px; }
.btn-block { width: 100%; }

.input, .select, .textarea {
  width: 100%; border: 1px solid #d3dde9; border-radius: 7px;
  padding: 7px 10px; background: #fff; font-size: 13.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(47, 128, 237, .12); }
.input:disabled, .select:disabled, .textarea:disabled { background: #f6f8fb; color: var(--muted); }
.textarea { resize: vertical; min-height: 64px; line-height: 1.6; }
.field { margin-bottom: 12px; }
.field > label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.field > label b { color: var(--ink-2); font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.7; white-space: nowrap; }
.badge.gray { background: #eef2f7; color: #5b6b7b; }
.badge.blue { background: var(--brand-soft); color: var(--brand-2); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.purple { background: #f0ecfb; color: #6b4fbb; }

.tag { display: inline-block; padding: 0 7px; border-radius: 4px; background: #eef2f7; color: var(--muted); font-size: 11.5px; line-height: 1.8; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.flex { display: flex; align-items: center; }
.flex-gap { gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.w100 { width: 100%; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
table.tbl th { background: #f7f9fc; font-size: 12.5px; color: #55677a; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
table.tbl tbody tr:hover { background: #fafcff; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tr.total td { background: #f7f9fc; font-weight: 600; }

/* ---------------- 登录 ---------------- */
.login-wrap { min-height: 100vh; display: flex; background: #0e2f56; }
.login-side {
  flex: 1; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% 10%, #1d5d9c 0%, #0e2f56 55%, #0a2340 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 8vh 7vw; color: #fff;
}
.login-side:after {
  content: ''; position: absolute; inset: auto -10% -30% 40%; height: 70%;
  background: radial-gradient(closest-side, rgba(90, 160, 230, .18), transparent);
}
.login-side h1 { font-size: 34px; line-height: 1.4; letter-spacing: 1px; max-width: 560px; }
.login-side .lead { color: #a9c6e4; margin-top: 18px; font-size: 15px; max-width: 520px; line-height: 1.9; }
.login-side .org { font-size: 13px; letter-spacing: 3px; color: #7fa6cd; margin-bottom: 20px; }
.login-feats { display: flex; gap: 26px; margin-top: 42px; flex-wrap: wrap; }
.login-feat { font-size: 13px; color: #bed6ee; }
.login-feat b { display: block; font-size: 22px; color: #fff; font-variant-numeric: tabular-nums; }
.login-panel { width: 440px; flex: 0 0 440px; background: #fff; display: flex; align-items: center; padding: 0 56px; }
.login-form { width: 100%; }
.login-form h2 { font-size: 21px; margin-bottom: 4px; }
.login-form .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.login-form .btn { margin-top: 8px; padding: 10px; font-size: 14.5px; }
.login-err { background: var(--red-soft); color: var(--red); padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.demo-accounts { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.demo-accounts b { color: var(--ink-2); font-weight: 600; }
.demo-accounts .acct { cursor: pointer; color: var(--brand-2); }

/* ---------------- 面板 ---------------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi-card .k { font-size: 12.5px; color: var(--muted); }
.kpi-card .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; margin-top: 2px; }
.kpi-card .v small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi-card .d { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi-card:after { content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--brand-soft); opacity: .7; }
.kpi-card.green:after { background: var(--green-soft); }
.kpi-card.amber:after { background: var(--amber-soft); }
.kpi-card.red:after { background: var(--red-soft); }

.score-hero { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; }
.score-hero .kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.score-hero .kv { border-left: 3px solid var(--brand-soft); padding-left: 10px; }
.score-hero .kv .k { font-size: 12px; color: var(--muted); }
.score-hero .kv .v { font-size: 19px; font-weight: 600; }
.grade-pill { display: inline-block; padding: 3px 16px; border-radius: 20px; color: #fff; font-weight: 600; font-size: 15px; }

.chart-donut, .chart-radar { display: block; margin: 0 auto; }
.chart-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 30px 0; }
.chart-bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 132px 1fr 76px; gap: 10px; align-items: center; }
.bar-label { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 18px; background: #eef2f7; border-radius: 9px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 9px; transition: width .5s ease; }
.bar-value { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }

.chart-stacked { display: flex; flex-direction: column; gap: 9px; }
.st-row { display: grid; grid-template-columns: 150px 1fr 84px; gap: 10px; align-items: center; }
.st-label { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-track { height: 16px; background: #eef2f7; border-radius: 8px; overflow: hidden; }
.st-got { height: 100%; border-radius: 8px; transition: width .5s ease; }
.st-value { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

/* ---------------- 指标 / 评分 ---------------- */
.workbench { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.anchor-nav { position: sticky; top: 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.anchor-nav .an-head { padding: 12px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; }
.anchor-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.anchor-nav a:hover { background: #f7fafd; text-decoration: none; }
.anchor-nav a.active { background: var(--brand-soft); color: var(--brand-2); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand-2); }
.anchor-nav .pct { margin-left: auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.section-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow); scroll-margin-top: 76px; }
.section-head .st { display: flex; align-items: center; gap: 10px; }
.section-head h3 { font-size: 15px; }
.section-head .secline { display: flex; gap: 20px; margin-top: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.section-head .secline b { color: var(--ink-2); font-weight: 600; }

.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.item-card.highlight { border-color: #bcd5ef; box-shadow: 0 0 0 3px rgba(47, 128, 237, .08); }
.item-head { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; cursor: pointer; }
.item-head:hover { background: #fafcff; }
.item-head .idx { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: 0 0 auto; }
.item-head .tt { flex: 1; min-width: 0; }
.item-head .tt .nm { font-size: 13.8px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-head .tt .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.item-head .sc { text-align: right; flex: 0 0 auto; }
.item-head .sc .sv { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.item-head .sc .sv small { font-size: 12px; color: var(--muted); font-weight: 500; }
.item-head .sc .sl { font-size: 11.5px; color: var(--muted); }
.item-body { padding: 0 16px 16px; border-top: 1px solid var(--line-2); display: none; }
.item-card.open .item-body { display: block; }
.item-card.open .item-head { background: #fbfdff; }

.std-box { background: #f7fafd; border: 1px solid #e6eef7; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--ink-2); margin: 14px 0; }
.std-box .lbl { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; margin-bottom: 3px; }
.std-box .ev { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #dae5f0; color: var(--muted); font-size: 12.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.split .pane-title { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

.rule-list { display: flex; flex-direction: column; gap: 7px; }
.rule {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: all .12s;
  background: #fff; font-size: 13px;
}
.rule:hover { border-color: #bfd4ea; background: #fbfdff; }
.rule input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--brand-2); }
.rule .rt { flex: 1; }
.rule .rv { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rule.award .rv { color: var(--green); }
.rule.deduct .rv { color: var(--red); }
.rule.on { border-color: #a9c9ea; background: #f4f9ff; }
.rule.on.deduct { border-color: #efc6c6; background: #fdf7f7; }

.evidence-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.evidence-list li { display: flex; align-items: center; gap: 8px; background: #f7fafd; border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; font-size: 12.5px; }
.evidence-list li .sz { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.evidence-list li a { color: var(--brand-2); }

.dropzone {
  border: 1.5px dashed #c8d7e6; border-radius: 8px; padding: 12px; text-align: center;
  color: var(--muted); font-size: 12.5px; cursor: pointer; background: #fbfdff; transition: all .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-3); background: #f3f8ff; color: var(--brand-2); }

.submit-log { display: flex; flex-direction: column; gap: 10px; }
.log-row { display: flex; gap: 10px; font-size: 12.5px; }
.log-row .t { color: var(--muted); flex: 0 0 120px; font-variant-numeric: tabular-nums; }
.log-row .c { color: var(--ink-2); flex: 1; }

.sticky-bar {
  position: sticky; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); padding: 10px 18px; display: flex; align-items: center; gap: 14px;
  margin: 16px -24px -40px; z-index: 15; box-shadow: 0 -4px 16px rgba(16, 38, 64, .05);
}
.sticky-bar .sum { display: flex; gap: 22px; font-size: 13px; }
.sticky-bar .sum b { font-size: 20px; font-variant-numeric: tabular-nums; }
.sticky-bar .spacer { flex: 1; }

.progress { height: 6px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #3f8fd9, #1b5faa); border-radius: 4px; transition: width .4s; }

.empty { text-align: center; padding: 42px 16px; color: var(--muted); }
.empty .ico { font-size: 32px; opacity: .45; margin-bottom: 6px; }

/* ---------------- 报告 ---------------- */
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.report-frame { width: 100%; height: 76vh; border: 1px solid var(--line); border-radius: 8px; background: #f0f3f7; }
.report-card { display: flex; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.report-card:last-child { border-bottom: none; }
.report-card .rc-ico { width: 42px; height: 52px; border: 1px solid #d9e3ee; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--brand-2); background: #f7fafd; flex: 0 0 auto; }
.report-card .rc-main { flex: 1; min-width: 0; }
.report-card .rc-title { font-size: 13.8px; font-weight: 600; }
.report-card .rc-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 14px; flex-wrap: wrap; }
.report-card .rc-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }

.modal-mask { position: fixed; inset: 0; background: rgba(12, 28, 48, .45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 12px; width: 520px; max-width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { width: 820px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; }
.modal-head h3 { font-size: 15px; flex: 1; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 8px; }
.modal .close { cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }

.toast-wrap { position: fixed; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: #1f2d3d; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); animation: slidein .25s ease; max-width: 380px; }
.toast.ok { background: #1d7a4a; }
.toast.err { background: #a83232; }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 8px 16px; cursor: pointer; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.tab:hover { color: var(--ink-2); }
.tab.active { color: var(--brand-2); border-bottom-color: var(--brand-2); font-weight: 600; }

.select-inline { border: 1px solid #d3dde9; border-radius: 6px; padding: 4px 8px; font-size: 13px; background: #fff; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; font-size: 13px; }
.info-grid .ig { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.info-grid .ig b { font-weight: 500; color: var(--muted); flex: 0 0 92px; }

.data-note { background: #fffdf5; border: 1px solid #f0e4c4; color: #7a6120; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; }

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .grid-dash { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { position: fixed; left: -240px; z-index: 50; width: 232px; flex-basis: 232px; transition: left .2s; }
  .sidebar.open { left: 0; }
  .view { padding: 16px 14px 32px; }
  .topbar { padding: 0 14px; }
  .workbench { grid-template-columns: 1fr; }
  .anchor-nav { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-panel { width: 100%; flex: 1; padding: 0 26px; }
  .sticky-bar { margin: 16px -14px -32px; }
}

/* 打印 */
@media print {
  .sidebar, .topbar, .sticky-bar, .anchor-nav, .no-print { display: none !important; }
  .view { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}
