:root {
  --bg: #f3f5fb;
  --bg-soft: #eef2fa;
  --card: #ffffff;
  --ink: #18223c;
  --ink-2: #2b3550;
  --muted: #74809b;
  --muted-2: #9aa4ba;
  --line: #e7eaf2;
  --line-2: #dfe4ef;
  --brand: #3f5bf6;
  --brand-deep: #253ebd;
  --brand-soft: #edf1ff;
  --violet: #7b61ff;
  --cyan: #35bfd6;
  --green: #0f9f6e;
  --green-soft: #e8f8f1;
  --amber: #d98a0b;
  --amber-soft: #fff6e5;
  --red: #d94b55;
  --red-soft: #fff0f1;
  --navy: #111a36;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(28, 43, 84, .065);
  --shadow-lg: 0 24px 60px rgba(20, 30, 63, .14);
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open, body.viewer-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: #ccd7ff; color: #12235c; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.file-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 20px; margin-right: 7px;
  color: #2b50c9; font-size: 10px; font-weight: 800;
  border: 1.4px solid currentColor; border-radius: 4px;
  font-family: "Segoe UI", sans-serif; letter-spacing: .2px;
}
.file-badge.small { width: 16px; height: 18px; margin: 0; font-size: 9px; }

/* ---------- shell / sidebar ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; z-index: 60;
  display: flex; flex-direction: column;
  padding: 0 16px 16px;
  color: #e8edff;
  background:
    radial-gradient(560px 360px at -20% -8%, rgba(92, 122, 255, .30), transparent 62%),
    radial-gradient(300px 320px at 120% 92%, rgba(56, 191, 214, .12), transparent 64%),
    linear-gradient(168deg, #121c3c 0%, #0e1630 56%, #0b1228 100%);
  overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
.sidebar > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 11px; height: 84px; padding: 0 5px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #6b86ff 0%, #3f5bf6 50%, #22b6d3 125%);
  box-shadow: 0 10px 22px rgba(53, 83, 230, .38), inset 0 1px 0 rgba(255,255,255,.34);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-copy strong { font-size: 20px; letter-spacing: 2px; font-weight: 700; }
.brand-copy span { margin-top: 5px; color: #8492bd; font-size: 8px; letter-spacing: 1.8px; font-family: "Segoe UI", sans-serif; font-weight: 600; }
.sidebar-close { display: none; margin-left: auto; background: none; border: 0; color: #aeb9d9; padding: 6px; }
.side-label { margin: 24px 12px 9px; font-size: 10px; letter-spacing: 1.4px; color: #65739c; font-weight: 700; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 13px; border-radius: 11px;
  color: #aeb9d7; font-size: 13.5px; font-weight: 500;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item .icon { width: 18px; height: 18px; color: #7f8db7; transition: color .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item:hover .icon { color: #bdcaff; }
.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(79, 106, 255, .30), rgba(79, 106, 255, .10));
  box-shadow: inset 0 0 0 1px rgba(126, 149, 255, .18);
}
.nav-item.active .icon { color: #91a6ff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 4px 4px 0; background: #7f97ff; box-shadow: 0 0 14px #5b77ff;
}
.nav-item em {
  margin-left: auto; font-style: normal; min-width: 22px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: #9dacd6; border-radius: 6px; background: rgba(255,255,255,.06);
}
.nav-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #7d95ff; box-shadow: 0 0 0 4px rgba(125,149,255,.12); }
.side-progress-card {
  margin-top: auto; padding: 15px; border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.spc-top { display: flex; align-items: center; justify-content: space-between; color: #8f9cc2; font-size: 10.5px; letter-spacing: .4px; }
.spc-badge { color: #91e6c7; background: rgba(52, 211, 153, .10); padding: 2px 7px; border-radius: 99px; border: 1px solid rgba(52,211,153,.15); font-size: 9.5px; }
.spc-period { margin-top: 7px; color: #f4f7ff; font-size: 14px; font-weight: 600; }
.spc-bar { height: 5px; margin: 12px 0 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.spc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6682ff, #44d5c2); box-shadow: 0 0 12px rgba(80, 133, 255, .55); transition: width .35s ease; }
.spc-meta { display: flex; justify-content: space-between; color: #8390b7; font-size: 10px; }
.spc-meta b { color: #c6d3ff; font-size: 10.5px; }
.spc-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin-top: 13px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; background: rgba(255,255,255,.035); color: #bfcaff; font-size: 10.5px;
}
.spc-link .icon { width: 13px; height: 13px; }
.spc-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding: 10px 4px 0; border-top: 1px solid rgba(255,255,255,.07); }
.mini-avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(140deg, #7189ff, #3e55be); }
.mini-user { display: flex; flex-direction: column; line-height: 1.25; }
.mini-user strong { color: #eef2ff; font-size: 11.5px; font-weight: 600; }
.mini-user span { color: #7583aa; font-size: 9.5px; margin-top: 2px; }
.sidebar-footer .icon-btn { margin-left: auto; }
.icon-btn.dark { color: #8795bd; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.04); }
.icon-btn.dark:hover { color: #fff; background: rgba(255,255,255,.09); }

/* ---------- main / topbar ---------- */
.main { margin-left: 236px; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 66px; padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(247, 249, 253, .84);
  border-bottom: 1px solid rgba(222, 227, 239, .82);
  backdrop-filter: blur(18px) saturate(1.4);
}
.topbar-left, .topbar-right { display: flex; align-items: center; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #929db3; }
.breadcrumb i { color: #c2c9d7; font-style: normal; }
.breadcrumb strong { color: #4e5a74; font-weight: 600; }
.save-state { display: flex; align-items: center; gap: 7px; color: #8b96ac; font-size: 10.5px; }
.save-state i { width: 6px; height: 6px; border-radius: 50%; background: #28b78a; box-shadow: 0 0 0 3px rgba(40,183,138,.10); }
.save-state.saving i { background: #e5a22b; box-shadow: 0 0 0 3px rgba(229,162,43,.12); animation: pulse 1s infinite; }
.top-sep { width: 1px; height: 20px; margin: 0 14px; background: #e0e5ef; }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border: 1px solid #e5e9f2; border-radius: 10px;
  color: #7e8aa2; background: #fff;
  transition: .18s ease;
}
.icon-btn:hover { color: var(--brand); border-color: #cfd8f4; background: #f8faff; transform: translateY(-1px); }
.icon-btn.has-dot { position: relative; margin-left: 7px; }
.icon-btn.has-dot::after { content: ""; position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #f26b6b; box-shadow: 0 0 0 2px #fff; }
.top-user { display: flex; align-items: center; gap: 9px; margin-left: 14px; padding-left: 14px; border-left: 1px solid #e5e9f2; }
.top-avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; background: linear-gradient(140deg, #5f7aff, #2e46b7); box-shadow: 0 4px 10px rgba(62, 91, 246, .22); }
.top-user div:last-child { display: flex; flex-direction: column; line-height: 1.22; }
.top-user strong { font-size: 10.5px; color: #3c4862; font-weight: 600; }
.top-user span { font-size: 9px; color: #9aa4b8; margin-top: 2px; }
.mobile-menu { display: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #5e6b86; margin-right: 12px; }

.page {
  position: relative;
  max-width: 1500px; margin: 0 auto; padding: 27px 30px 22px;
}
.page::before {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 680px; height: 520px; right: -180px; top: -160px;
  background: radial-gradient(circle, rgba(111, 132, 255, .095), transparent 66%);
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.head-main { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #7d88a2; font-size: 9px; font-weight: 700; letter-spacing: 1.55px; font-family: "Segoe UI", var(--font); }
.eyebrow-dot { width: 16px; height: 1px; background: var(--brand); border-radius: 2px; }
.title-row { display: flex; align-items: center; gap: 13px; margin: 6px 0 5px; }
.title-row h1 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: -1.2px; color: #17213a; font-weight: 700; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; color: #0d8e68; background: #e9f8f2; border: 1px solid #ccf0e2; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: #16ad7f; box-shadow: 0 0 0 3px rgba(22,173,127,.12); }
.project-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #7b869d; font-size: 11px; }
.project-line strong { color: #3b4964; font-weight: 600; }
.project-line b { color: #56627b; font-weight: 600; }
.line-dot { width: 3px; height: 3px; border-radius: 50%; background: #c3cad7; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn {
  height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px; font-size: 11.5px; font-weight: 600;
  white-space: nowrap; transition: .18s ease;
}
.btn .icon { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #4663fa, #2d45c4); box-shadow: 0 7px 16px rgba(55, 81, 215, .23); }
.btn-primary:hover { box-shadow: 0 10px 20px rgba(55, 81, 215, .30); background: linear-gradient(135deg, #506cff, #314bc9); }
.btn-soft { color: #59657e; background: #fff; border-color: #e2e7f0; }
.btn-soft:hover { color: var(--brand); border-color: #cfd8f4; background: #fbfcff; }
.btn-ghost { color: #66728a; background: transparent; border-color: #e2e7f0; }
.btn-ghost:hover { background: #f7f9fd; }
.btn-word { color: #2f50c8; background: #fff; border-color: #d7e0fb; box-shadow: 0 3px 9px rgba(47,80,200,.05); }
.btn-word:hover { background: #f4f7ff; border-color: #bccaf8; }
.btn-sm { height: 33px; padding: 0 11px; font-size: 10.5px; border-radius: 9px; }
.btn-danger { color: #fff; background: #d94b55; box-shadow: 0 6px 14px rgba(217,75,85,.22); }
.btn-danger:hover { background: #c73d47; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.stat-card {
  position: relative; min-width: 0; min-height: 130px; padding: 16px 18px 14px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 7px 24px rgba(26, 41, 79, .045);
  overflow: hidden; transition: transform .22s ease, box-shadow .22s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26, 41, 79, .08); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #8893a9; font-size: 10.5px; letter-spacing: .2px; }
.stat-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #6f84ff; background: #eef1ff; }
.stat-icon .icon { width: 14px; height: 14px; }
.stat-icon.blue { color: #5570f5; background: #eef2ff; }
.stat-icon.mint { color: #0d9e75; background: #eaf8f3; }
.stat-icon.amber { color: #d28a14; background: #fff6e6; }
.score-line { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; }
.score-line strong { color: #19233c; font-size: 33px; line-height: 1.1; letter-spacing: -1.4px; font-weight: 700; font-family: "Segoe UI", var(--font); }
.score-line span { color: #9aa5b9; font-size: 10px; }
.score-line.compact strong { font-size: 28px; letter-spacing: -1px; }
.score-line.compact span { font-size: 12px; color: #7e8aa0; font-weight: 600; }
.score-line.compact span b { color: #55617a; font-size: 12px; }
.inline-tag { display: inline-flex; align-items: center; margin-left: auto; padding: 2px 7px; border-radius: 99px; font-size: 8.5px; font-weight: 600; }
.inline-tag.ok { color: #0b9870; background: #ebf9f3; }
.inline-tag.amber { color: #b7790e; background: #fff5df; }
.inline-tag.bad { color: #c84650; background: #fff0f1; }
.stat-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: #9aa4b8; font-size: 9.2px; }
.stat-foot b { color: #63708a; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.trend .icon { width: 11px; height: 11px; }
.trend.up { color: #11a87b; }
.trend.down { color: #d94b55; }
.stat-score { color: #fff; background: linear-gradient(132deg, #1a2858 0%, #233b9f 56%, #2a52d0 110%); border-color: transparent; box-shadow: 0 12px 28px rgba(38, 63, 166, .22); }
.stat-score .stat-top { color: #c4cff1; }
.stat-score .stat-icon { color: #dce4ff; background: rgba(255,255,255,.12); }
.stat-score .score-line strong { color: #fff; font-size: 35px; }
.stat-score .score-line span { color: #9dacd9; }
.stat-score .stat-foot { color: #98a8d3; }
.stat-score .trend.up { color: #7fe7c7; }
.stat-score .trend .icon { stroke-width: 2.2; }
.stat-spark { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: auto; }
.stat-spark b { display: block; width: 3px; border-radius: 2px; background: rgba(255,255,255,.24); }
.stat-spark b:nth-child(1) { height: 5px; }
.stat-spark b:nth-child(2) { height: 8px; }
.stat-spark b:nth-child(3) { height: 6px; }
.stat-spark b:nth-child(4) { height: 11px; }
.stat-spark b:nth-child(5) { height: 9px; }
.stat-spark b:nth-child(6) { height: 15px; background: #6fe3c7; }
.score-orbit { position: absolute; right: -31px; top: -36px; width: 136px; height: 136px; opacity: .65; }
.score-orbit span { position: absolute; inset: 0; border: 1px solid rgba(154, 177, 255, .20); border-radius: 50%; }
.score-orbit span:nth-child(2) { inset: 22px; border-color: rgba(154, 177, 255, .31); }
.score-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 8px; left: 55px; background: #83d8ff; box-shadow: 0 0 12px #66c8ff; }
.grade-line { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.grade-line > strong { color: #2d3d91; font-size: 34px; line-height: 1; font-family: "Segoe UI", var(--font); font-weight: 800; }
.grade-line > div { display: flex; flex-direction: column; gap: 1px; }
.grade-line b { color: #3e4b66; font-size: 12px; }
.grade-line span { color: #9aa5b9; font-size: 8.5px; }
.grade-track { position: relative; height: 5px; margin: 7px 0 8px; border-radius: 99px; background: #eef1f7; }
.grade-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #788bff, #445ff2); transition: width .35s ease; }
.grade-track em { position: absolute; top: 8px; font-style: normal; font-size: 7px; color: #b2bbcb; }
.grade-track em:last-child { right: 0; }
.grade-track em:first-of-type { left: 0; }
.stat-note { display: flex; align-items: center; justify-content: space-between; color: #9aa4b8; font-size: 8.5px; }
.grade-pill { color: #344fc7; background: #edf1ff; padding: 2px 7px; border-radius: 5px; font-size: 8.5px; font-weight: 600; }
.weight-track { height: 5px; margin: 12px 0 10px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.weight-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #45c6ae, #2f9f8b); transition: width .35s ease; }
.weight-track i.warn { background: linear-gradient(90deg, #f0b54b, #de981f); }
.progress-segments { display: flex; gap: 4px; margin: 12px 0 10px; height: 5px; }
.progress-segments i { flex: 1; border-radius: 99px; background: #e9edf5; }
.progress-segments i.done { background: linear-gradient(90deg, #7b8fff, #4b63e8); }
.progress-segments i.done:last-child { background: #34c59d; }

/* ---------- table card ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.table-card { overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 21px 15px; }
.card-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.title-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #4b63e8; background: linear-gradient(145deg, #eef2ff, #e4eaff); border: 1px solid #dfe6ff; flex: none; }
.title-icon .icon { width: 17px; height: 17px; }
.title-with-badge { display: flex; align-items: center; gap: 8px; }
.card-title h2 { margin: 0; color: #202b45; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.card-title p { margin: 2px 0 0; color: #909bb0; font-size: 10px; }
.tiny-badge { padding: 2px 6px; color: #7b61ff; background: #f2efff; border: 1px solid #e7e1ff; border-radius: 4px; font-size: 7.5px; font-weight: 600; letter-spacing: .2px; }
.table-tools { display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; display: flex; align-items: center; width: 198px; height: 33px; padding: 0 9px; background: #f7f9fd; border: 1px solid #e6eaf2; border-radius: 9px; transition: .18s ease; }
.search-box:focus-within { width: 220px; background: #fff; border-color: #bccafa; box-shadow: 0 0 0 3px rgba(63,91,246,.08); }
.search-box .icon { width: 14px; height: 14px; color: #9aa5ba; }
.search-box input { width: 100%; min-width: 0; padding: 0 6px; border: 0; outline: 0; background: transparent; color: #3c4861; font-size: 10px; }
.search-box input::placeholder { color: #a5aec0; }
.search-box kbd { padding: 1px 4px; border: 1px solid #e2e6ef; border-bottom-width: 2px; border-radius: 4px; color: #a1aabc; background: #fff; font-size: 7.5px; font-family: "Segoe UI", sans-serif; white-space: nowrap; }
.weight-alert { display: flex; align-items: center; gap: 10px; margin: 0 21px 12px; padding: 8px 12px; color: #9a6508; background: #fff9ed; border: 1px solid #f6e5bf; border-radius: 9px; font-size: 9.5px; }
.weight-alert .icon { width: 15px; height: 15px; }
.weight-alert div { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; }
.weight-alert strong { font-size: 9.5px; }
.weight-alert span { color: #ad7b22; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weight-alert button { border: 0; border-radius: 6px; padding: 4px 8px; color: #885a08; background: #f8e6b9; font-size: 9px; font-weight: 600; }
.weight-alert button:hover { background: #f2d998; }
.table-wrap { width: 100%; overflow-x: auto; }
.indicator-table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 970px; }
.indicator-table col.col-no { width: 44px; }
.indicator-table col.col-name { width: 22.5%; }
.indicator-table col.col-target { width: 9.3%; }
.indicator-table col.col-weight { width: 9.6%; }
.indicator-table col.col-actual { width: 8.4%; }
.indicator-table col.col-criteria { width: 25%; }
.indicator-table col.col-score { width: 8.3%; }
.indicator-table col.col-actions { width: 8.6%; }
.indicator-table thead th {
  height: 39px; padding: 0 10px; text-align: left; vertical-align: middle;
  color: #8b96aa; background: #f7f9fd; border-top: 1px solid #edf0f7; border-bottom: 1px solid #e9edf5;
  font-size: 9.8px; font-weight: 600; letter-spacing: .15px;
}
.indicator-table thead th:first-child { padding-left: 18px; }
.indicator-table thead th.center { text-align: center; }
.indicator-table tbody td { height: 66px; padding: 8px 10px; border-bottom: 1px solid #edf0f6; vertical-align: middle; transition: background .17s ease; }
.indicator-table tbody td:first-child { padding-left: 18px; }
.indicator-table tbody tr:hover td { background: #fbfcff; }
.indicator-table tbody tr:last-child td { border-bottom: 0; }
.no-cell { color: #b0b9ca; font-family: "Segoe UI", sans-serif; font-size: 9.8px; font-weight: 600; }
.indicator-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.indicator-ico { width: 31px; height: 31px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #4f67e8; background: #eff2ff; border: 1px solid #e3e8fe; }
.indicator-ico .icon { width: 15px; height: 15px; }
.indicator-ico.c2 { color: #0f9e76; background: #ebf9f3; border-color: #d9f1e8; }
.indicator-ico.c3 { color: #b67a0c; background: #fff7e8; border-color: #f8e9c9; }
.indicator-ico.c4 { color: #7b61ff; background: #f2efff; border-color: #e7e0ff; }
.indicator-ico.c5 { color: #d65f75; background: #fff0f3; border-color: #f9dfe5; }
.indicator-ico.c6 { color: #1688b0; background: #ebf8fc; border-color: #d8eef6; }
.indicator-name { display: block; color: #34415e; font-size: 11.6px; font-weight: 600; line-height: 1.32; }
.indicator-desc { display: block; margin-top: 2px; overflow: hidden; color: #9aa4b7; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.target-badge { display: inline-block; padding: 3px 7px; color: #43506b; background: #f5f7fb; border: 1px solid #e9edf4; border-radius: 5px; font-size: 9.8px; font-weight: 600; font-family: "Segoe UI", var(--font); white-space: nowrap; }
.weight-cell { display: flex; flex-direction: column; gap: 4px; }
.weight-value { color: #45516b; font-size: 11.5px; font-weight: 700; font-family: "Segoe UI", var(--font); }
.weight-value span { color: #9aa4b7; font-size: 8px; font-weight: 500; margin-left: 1px; }
.weight-mini { width: 40px; height: 3px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.weight-mini i { display: block; height: 100%; border-radius: inherit; background: #7f92f8; }
.actual-cell { display: flex; align-items: center; gap: 6px; }
.actual-value { color: #35415c; font-size: 12px; font-weight: 700; font-family: "Segoe UI", var(--font); }
.actual-unit { color: #a3acbd; font-size: 8.5px; }
.actual-bar { width: 31px; height: 3px; border-radius: 99px; background: #edf0f6; overflow: hidden; }
.actual-bar i { display: block; height: 100%; border-radius: inherit; background: #7b8fff; }
.criteria-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left;
  color: #7e899e; font-size: 9.1px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.criteria-btn:hover { color: #4d60cc; }
.criteria-btn em { display: inline-block; margin-right: 3px; padding: 1px 4px; border-radius: 3px; color: #5c6fd9; background: #eff2ff; font-style: normal; font-size: 7.5px; font-weight: 600; vertical-align: 1px; }
.score-chip { display: inline-flex; align-items: center; gap: 4px; min-width: 48px; padding: 4px 8px; border-radius: 6px; font-family: "Segoe UI", var(--font); font-size: 11.5px; font-weight: 700; justify-content: center; }
.score-chip i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.score-chip.good { color: #0d9069; background: #eaf9f3; }
.score-chip.mid { color: #4662dd; background: #eef2ff; }
.score-chip.low { color: #b87708; background: #fff6e4; }
.score-chip.bad { color: #c9414b; background: #fff0f1; }
.row-actions { display: flex; align-items: center; justify-content: center; gap: 3px; }
.row-btn { width: 26px; height: 26px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 6px; color: #98a3b8; background: transparent; transition: .16s ease; }
.row-btn .icon { width: 13px; height: 13px; }
.row-btn:hover { color: #435ff1; background: #f0f3ff; border-color: #e0e6ff; }
.row-btn.danger:hover { color: #d34b55; background: #fff1f2; border-color: #f9dfe2; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 55px; padding: 10px 21px; background: #fbfcfe; border-top: 1px solid #edf0f6; }
.legend { display: flex; align-items: center; gap: 5px; color: #9ba5b8; font-size: 8.2px; white-space: nowrap; }
.legend-dot { width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; display: inline-block; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot.green { background: #20b88d; }
.legend-dot.blue { background: #5e77f4; }
.legend-dot.amber { background: #e9a52d; }
.legend-dot.dashed { background: #bdc5d4; }
.total-strip { display: flex; align-items: center; gap: 0; }
.total-cell { display: flex; align-items: baseline; gap: 6px; padding: 0 17px; border-right: 1px solid #e7ebf3; }
.total-cell:last-child { border-right: 0; padding-right: 0; }
.total-cell span { color: #8d98ae; font-size: 8.5px; }
.total-cell strong { color: #28344f; font-size: 18px; letter-spacing: -.5px; font-family: "Segoe UI", var(--font); }
.total-cell.score strong { color: #344fc7; font-size: 21px; }
.total-cell em { color: #a3adbf; font-style: normal; font-size: 8px; }
.total-cell i { font-style: normal; padding: 1px 4px; border-radius: 3px; font-size: 7.5px; }
.total-cell i.ok { color: #0e946d; background: #e9f8f2; }
.total-cell i.warn { color: #b7790e; background: #fff3dc; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px 50px; text-align: center; }
.empty-illustration { width: 54px; height: 54px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 16px; color: #7c8ddf; background: #f0f3ff; border: 1px solid #e2e7fd; }
.empty-state strong { color: #44516c; font-size: 12px; }
.empty-state > span { margin: 4px 0 12px; color: #9aa4b8; font-size: 9.5px; }

/* ---------- analysis ---------- */
.analysis-section { margin-top: 25px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; padding: 0 2px; }
.section-kicker { display: block; color: #8792a8; font-family: "Segoe UI", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 1.45px; }
.section-heading h2 { margin: 3px 0 0; color: #202b45; font-size: 20px; letter-spacing: -.5px; }
.section-heading > p { margin: 0 0 3px; color: #97a1b5; font-size: 9px; }
.insight-grid { display: grid; grid-template-columns: 1.08fr 1fr 1.18fr; gap: 14px; }
.insight-grid .card { padding: 16px 17px; min-width: 0; }
.mini-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mini-head h3 { margin: 0; color: #2c3753; font-size: 12px; font-weight: 700; }
.mini-head p { margin: 2px 0 0; color: #9aa4b7; font-size: 8px; }
.soft-tag { padding: 2px 6px; border-radius: 4px; color: #7e8aa3; background: #f4f6fb; border: 1px solid #e9edf5; font-size: 7.5px; white-space: nowrap; }
.radar-box { height: 220px; display: grid; place-items: center; margin-top: -1px; }
.radar-box svg { width: 100%; height: 100%; overflow: visible; }
.radar-axis-label { fill: #7f8aa2; font-size: 8.5px; font-family: var(--font); }
.radar-axis-score { fill: #a1aabd; font-size: 7.5px; font-family: "Segoe UI", var(--font); }
.radar-legend { display: flex; justify-content: center; gap: 17px; color: #8e99ad; font-size: 8px; }
.radar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.composition-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.comp-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.comp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.comp-name { overflow: hidden; color: #5b6780; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.comp-score { color: #8390a9; font-size: 8px; font-family: "Segoe UI", sans-serif; }
.comp-score b { color: #3e4d6c; font-size: 9.5px; }
.comp-bar { grid-column: 1 / -1; height: 4px; margin-top: 2px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.comp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8798ff, #526bf0); transition: width .35s ease; }
.comp-empty { display: flex; align-items: center; justify-content: center; min-height: 164px; padding: 20px; color: #a0aabc; font-size: 8.5px; text-align: center; line-height: 1.7; }
.comp-item:nth-child(2) .comp-bar i { background: linear-gradient(90deg, #6cd3c0, #2bb397); }
.comp-item:nth-child(3) .comp-bar i { background: linear-gradient(90deg, #a78bfa, #7c5cff); }
.comp-item:nth-child(4) .comp-bar i { background: linear-gradient(90deg, #f2c169, #e0a02c); }
.comp-item:nth-child(5) .comp-bar i { background: linear-gradient(90deg, #75c7eb, #329fc8); }
.comp-item:nth-child(6) .comp-bar i { background: linear-gradient(90deg, #f19aac, #db677e); }
.grade-chip { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #5b76ff, #314bc9); font-family: "Segoe UI", sans-serif; font-size: 16px; font-weight: 800; box-shadow: 0 5px 12px rgba(55,80,210,.20); }
.conclusion-text { min-height: 54px; margin: 12px 0 11px; color: #6d7890; font-size: 8.7px; line-height: 1.7; }
.conclusion-lists { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px dashed #e8ecf4; }
.cl-label { display: flex; align-items: center; gap: 4px; margin-bottom: 5px; font-size: 8px; font-weight: 600; }
.cl-label .icon { width: 11px; height: 11px; }
.cl-label.up { color: #0e9871; }
.cl-label.improve { color: #b77a0d; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; }
.soft-chip { padding: 2px 6px; border-radius: 4px; color: #5a6680; background: #f5f7fb; border: 1px solid #e9edf4; font-size: 7.5px; }
.soft-chip.green { color: #108e6b; background: #ecf9f4; border-color: #d9f2e9; }
.soft-chip.amber { color: #a96f08; background: #fff8e9; border-color: #f7e9c9; }
.report-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef1f6; }
.report-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: #3e58d1; font-size: 8.5px; font-weight: 600; }
.report-link .icon { width: 12px; height: 12px; transition: transform .16s ease; }
.report-link:hover .icon { transform: translateX(2px); }
.report-mini-actions { display: flex; gap: 4px; }
.report-mini-actions .icon-btn { width: 28px; height: 28px; border-radius: 7px; }

.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px 0; color: #a1aabc; font-size: 8.5px; }
.footer-mark { color: #64708a; font-weight: 700; letter-spacing: 1px; }
.page-footer button { padding: 0; border: 0; background: none; color: #7582a0; font-size: 8.5px; text-decoration: underline; text-underline-offset: 2px; }
.page-footer button:hover { color: #c24d56; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 22px; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s; }
.modal.show { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13, 21, 45, .48); backdrop-filter: blur(5px); }
.modal-panel {
  position: relative; z-index: 1; width: min(660px, 100%); max-height: calc(100vh - 44px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 17px; box-shadow: 0 32px 80px rgba(8, 19, 53, .30);
  transform: translateY(14px) scale(.985); transition: transform .24s cubic-bezier(.2,.8,.25,1);
  overflow: hidden;
}
.modal.show .modal-panel { transform: translateY(0) scale(1); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 19px 22px 15px; border-bottom: 1px solid #edf0f6; }
.modal-title-wrap { display: flex; align-items: flex-start; gap: 11px; }
.modal-icon { width: 37px; height: 37px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #4b63e8; background: #eef2ff; border: 1px solid #e2e8ff; }
.modal-icon.blue { color: #3c62df; background: #eef5ff; border-color: #deecff; }
.modal-icon.amber { color: #b97a0b; background: #fff6e8; border-color: #f7e8c7; }
.modal-title-wrap h3 { margin: 1px 0 2px; color: #222e49; font-size: 15px; font-weight: 700; }
.modal-title-wrap p { margin: 0; color: #99a3b7; font-size: 9px; }
.modal-close { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #edf0f5; border-radius: 8px; color: #9ba5b8; background: #fafbfe; }
.modal-close:hover { color: #5b6882; background: #f2f5fa; }
.modal-body { padding: 18px 22px 17px; overflow-y: auto; }
.modal-body::-webkit-scrollbar { width: 5px; }
.modal-body::-webkit-scrollbar-thumb { background: #dfe4ee; border-radius: 99px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.form-field { display: flex; flex-direction: column; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label, .textarea-label label { margin-bottom: 5px; color: #5d6980; font-size: 9px; font-weight: 600; }
.form-field label b, .textarea-label label b { color: #e15b64; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid #e2e7f0; border-radius: 8px; outline: 0;
  background: #fbfcfe; color: #35415c; font-size: 10.5px; transition: .18s ease;
}
.form-field input, .form-field select { height: 36px; padding: 0 10px; }
.form-field textarea { min-height: 84px; padding: 8px 10px; line-height: 1.65; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #b0b8c8; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #aebdf6; background: #fff; box-shadow: 0 0 0 3px rgba(63,91,246,.075); }
.form-field input.invalid, .form-field textarea.invalid { border-color: #e79aa0; background: #fffafb; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 36px; }
.input-suffix > span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #a0aabb; font-size: 9px; pointer-events: none; }
.field-hint, .field-error { margin-top: 4px; font-size: 7.8px; line-height: 1.3; }
.field-hint { color: #a1abbb; }
.field-error { min-height: 0; color: #d64b55; }
.textarea-label { display: flex; align-items: center; justify-content: space-between; }
.textarea-label span { color: #a5aec0; font-size: 7.5px; font-family: "Segoe UI", sans-serif; }
.score-preview { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 14px; border: 1px solid #e3e9fb; border-radius: 10px; background: linear-gradient(100deg, #f5f7ff, #fbfcff); }
.sp-left { min-width: 105px; }
.sp-left > span { color: #8995ac; font-size: 8px; }
.sp-left > div { display: flex; align-items: baseline; gap: 3px; }
.sp-left strong { color: #344fc7; font-size: 24px; font-weight: 800; letter-spacing: -.7px; font-family: "Segoe UI", var(--font); }
.sp-left em { color: #929db3; font-size: 8px; font-style: normal; }
.sp-divider { width: 1px; height: 31px; background: #dfe5f3; }
.sp-item { display: flex; flex-direction: column; gap: 1px; min-width: 58px; }
.sp-item span { color: #929db2; font-size: 8px; }
.sp-item b { color: #4b5872; font-size: 10.5px; font-family: "Segoe UI", var(--font); }
.sp-bar { flex: 1; height: 5px; min-width: 60px; border-radius: 99px; background: #e6ebf7; overflow: hidden; }
.sp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #788cff, #405be8); transition: width .2s ease; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 22px; border-top: 1px solid #edf0f6; background: #fbfcfe; }
.modal-footer.spread { justify-content: space-between; }
.footer-button-group { display: flex; gap: 8px; }
.text-danger { padding: 0; border: 0; background: none; color: #c8565e; font-size: 9.5px; text-decoration: underline; text-underline-offset: 2px; }
.text-danger:hover { color: #b13640; }
.confirm-panel { width: min(390px, 100%); padding: 25px 24px 20px; text-align: center; }
.confirm-icon { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 13px; color: #d44b55; background: #fff0f1; border: 1px solid #f8dde0; }
.confirm-icon .icon { width: 19px; height: 19px; }
.confirm-panel h3 { margin: 0 0 7px; color: #27334d; font-size: 14px; }
.confirm-panel p { margin: 0; color: #8792a8; font-size: 9.5px; line-height: 1.7; }
.confirm-panel p strong { color: #4e5a73; }
.confirm-actions { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.project-modal-panel { width: min(540px, 100%); }
.help-panel { width: min(470px, 100%); }
.help-body { padding-top: 15px; }
.help-step { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed #edf0f5; }
.help-step:last-of-type { border-bottom: 0; }
.help-step > span { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #5168d8; background: #eff2ff; font-family: "Segoe UI", sans-serif; font-size: 8px; font-weight: 700; }
.help-step strong { color: #3d4961; font-size: 10px; }
.help-step p { margin: 2px 0 0; color: #929db0; font-size: 8.5px; line-height: 1.65; }
.help-note { display: flex; gap: 7px; margin-top: 10px; padding: 10px; border-radius: 8px; color: #7f8aa0; background: #f7f9fd; border: 1px solid #ebeff6; font-size: 8px; line-height: 1.6; }
.help-note .icon { width: 13px; height: 13px; color: #6f84e9; }

/* ---------- toast / loading ---------- */
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; min-width: 210px; max-width: 360px;
  padding: 10px 13px; border-radius: 10px; color: #3c4861; background: #fff;
  border: 1px solid #e5eaf3; box-shadow: 0 14px 34px rgba(22, 34, 70, .16);
  font-size: 9.5px; opacity: 0; transform: translateY(8px); transition: .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .toast-ico { width: 19px; height: 19px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #0f9f6e; background: #e9f8f2; }
.toast.error .toast-ico { color: #d44b55; background: #fff0f1; }
.toast.info .toast-ico { color: #4260da; background: #eef2ff; }
.toast .toast-ico .icon { width: 11px; height: 11px; stroke-width: 2.2; }
.loading-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(12,20,42,.42); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .2s ease; }
.loading-overlay.show { opacity: 1; visibility: visible; }
.loading-card { display: flex; flex-direction: column; align-items: center; padding: 25px 31px; border-radius: 15px; background: #fff; box-shadow: var(--shadow-lg); }
.loading-card strong { margin-top: 12px; color: #33405c; font-size: 11px; }
.loading-card p { margin: 3px 0 0; color: #9aa4b7; font-size: 8.5px; }
.spinner { width: 30px; height: 30px; border: 2.5px solid #e8ecff; border-top-color: #405be8; border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- report viewer ---------- */
.report-viewer { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #e9edf5; opacity: 0; visibility: hidden; transition: .2s ease; }
.report-viewer.show { opacity: 1; visibility: visible; }
.viewer-topbar { height: 60px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 20px; background: #111a30; color: #fff; box-shadow: 0 2px 10px rgba(12,20,42,.15); }
.viewer-title { display: flex; align-items: center; gap: 10px; }
.viewer-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #9eb0ff; background: rgba(255,255,255,.08); }
.viewer-title > div:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.viewer-title strong { font-size: 11px; font-weight: 600; }
.viewer-title span { color: #7f8bab; font-size: 8px; }
.viewer-actions { display: flex; align-items: center; gap: 8px; }
.viewer-actions .btn-soft { color: #d9e1f9; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.viewer-actions .btn-soft:hover { background: rgba(255,255,255,.14); color: #fff; }
.viewer-actions .btn-primary { background: linear-gradient(135deg, #4d6aff, #3049c5); }
.page-count { color: #8f9bb9; font-size: 8.5px; margin-right: 4px; }
.viewer-close { width: 32px; height: 32px; margin-left: 4px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #aeb8d4; background: rgba(255,255,255,.05); }
.viewer-close:hover { color: #fff; background: rgba(255,255,255,.11); }
.viewer-stage { flex: 1; overflow: auto; padding: 26px 20px 40px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.viewer-stage .report-page { flex: none; box-shadow: 0 14px 38px rgba(17,30,65,.16); }
.viewer-stage::-webkit-scrollbar { width: 9px; height: 9px; }
.viewer-stage::-webkit-scrollbar-thumb { background: #c6cedd; border: 2px solid #e9edf5; border-radius: 99px; }

/* ---------- A4 report ---------- */
.export-stage { position: fixed; left: -12000px; top: 0; width: 794px; z-index: -100; pointer-events: none; }
.report-page {
  position: relative; width: 794px; height: 1123px; min-height: 1123px; padding: 48px 52px 62px;
  color: #1b2540; background: #fff; overflow: hidden;
  font-family: var(--font); font-size: 10.5px; line-height: 1.6;
}
.report-page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #263eaf, #4e70ff 55%, #39c0d1); }
.rp-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #e4e8f1; }
.rp-brand { display: flex; align-items: center; gap: 8px; }
.rp-brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: linear-gradient(145deg, #536df1, #263daf); font-size: 10px; font-weight: 700; }
.rp-brand-copy { display: flex; flex-direction: column; line-height: 1.2; }
.rp-brand-copy b { color: #273353; font-size: 10.5px; letter-spacing: 1.5px; }
.rp-brand-copy span { color: #909bb1; font-size: 6px; letter-spacing: 1.2px; font-family: "Segoe UI", sans-serif; }
.rp-no { color: #9aa5ba; font-family: "Segoe UI", sans-serif; font-size: 7px; letter-spacing: .4px; }
.rp-title-wrap { padding-top: 19px; text-align: center; }
.rp-title { margin: 0; color: #18233e; font-size: 25px; letter-spacing: 2px; font-weight: 700; }
.rp-subtitle { margin: 4px 0 0; color: #8995ac; font-size: 8px; letter-spacing: 1.4px; font-family: "Segoe UI", var(--font); }
.rp-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 18px; border: 1px solid #e2e7f0; border-radius: 3px; overflow: hidden; }
.rp-cont-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; margin-top: 14px; padding: 8px 11px; color: #8d98ae; background: #f7f9fd; border: 1px solid #e8ecf4; border-radius: 3px; font-size: 7.5px; }
.rp-cont-meta b { color: #3e4b66; font-size: 8px; }
.rp-cont-meta span { position: relative; }
.rp-cont-meta span + span::before { content: ""; position: absolute; left: -9px; top: 50%; width: 2px; height: 2px; border-radius: 50%; background: #c3cad8; }
.rp-meta-item { display: flex; align-items: center; min-height: 32px; padding: 0 10px; border-bottom: 1px solid #edf0f5; border-right: 1px solid #edf0f5; }
.rp-meta-item:nth-child(2n) { border-right: 0; }
.rp-meta-item:nth-last-child(-n+2) { border-bottom: 0; }
.rp-meta-item span { width: 68px; flex: none; color: #8f9ab0; font-size: 8px; }
.rp-meta-item b { color: #3e4b66; font-size: 8.8px; font-weight: 600; }
.rp-summary { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 1px; margin-top: 13px; border-radius: 4px; overflow: hidden; background: #e7ebf3; }
.rp-summary-cell { padding: 9px 11px; background: #f7f9fd; }
.rp-summary-cell.featured { color: #fff; background: linear-gradient(130deg, #1f3070, #2e48b7); }
.rp-summary-cell span { display: block; color: #8e99af; font-size: 7px; }
.rp-summary-cell.featured span { color: #a9b8e8; }
.rp-summary-cell strong { display: block; margin-top: 1px; color: #2b3753; font-family: "Segoe UI", var(--font); font-size: 19px; line-height: 1.2; }
.rp-summary-cell.featured strong { color: #fff; font-size: 25px; }
.rp-summary-cell strong small { margin-left: 2px; color: #8f9ab0; font-size: 7.5px; font-weight: 400; }
.rp-section-title { display: flex; align-items: center; gap: 7px; margin: 17px 0 7px; color: #27334e; font-size: 11px; font-weight: 700; }
.rp-section-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: #3f5bf6; }
.rp-section-title small { margin-left: auto; color: #9aa4b8; font-size: 7px; font-weight: 400; }
.rp-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8px; }
.rp-table th { padding: 6px 4px; color: #526079; background: #eef2fb; border: 1px solid #dfe5f0; text-align: center; font-weight: 600; font-size: 7.8px; }
.rp-table td { padding: 6px 4px; border: 1px solid #e6eaf2; color: #5c6880; vertical-align: middle; }
.rp-table td.center { text-align: center; }
.rp-table .td-name b { display: block; color: #34415d; font-size: 8.4px; }
.rp-table .td-name span { display: block; margin-top: 1px; color: #9aa4b8; font-size: 6.8px; }
.rp-table .td-criteria { color: #77839a; font-size: 7.2px; line-height: 1.55; }
.rp-table .td-score { color: #2e49c6; font-family: "Segoe UI", var(--font); font-size: 9.8px; font-weight: 700; }
.rp-table .w { color: #3f4b66; font-family: "Segoe UI", var(--font); font-weight: 600; }
.rp-table tfoot td { background: #f8fafe; color: #3e4b66; font-weight: 600; }
.rp-conclusion { margin-top: 15px; padding: 11px 13px; border: 1px solid #e2e7f2; border-radius: 4px; background: #fbfcff; }
.rp-conclusion-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.rp-conclusion-head b { color: #2f3c58; font-size: 8.8px; }
.rp-grade-badge { padding: 2px 7px; border-radius: 3px; color: #2d49c1; background: #edf1ff; font-size: 7.5px; font-weight: 700; }
.rp-conclusion p { margin: 0; color: #707c93; font-size: 8.2px; line-height: 1.7; text-align: justify; }
.rp-tags { display: flex; gap: 5px; margin-top: 6px; }
.rp-tag { padding: 2px 5px; border-radius: 2px; color: #51607c; background: #f2f5fb; font-size: 7px; }
.rp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.rp-sign-item { display: flex; align-items: flex-end; gap: 10px; color: #7d899e; font-size: 8px; }
.rp-sign-line { flex: 1; height: 18px; border-bottom: 1px solid #cfd6e3; }
.rp-foot { position: absolute; left: 52px; right: 52px; bottom: 25px; display: flex; align-items: center; justify-content: space-between; padding-top: 7px; border-top: 1px solid #edf0f5; color: #a0aabc; font-size: 6.5px; }
.rp-foot b { color: #7a869d; font-weight: 500; }
.rp-page-no { position: absolute; right: 52px; bottom: 38px; color: #a0aabc; font-size: 6.5px; font-family: "Segoe UI", sans-serif; }
.rp-note { margin-top: 8px; color: #a0aabc; font-size: 6.5px; text-align: right; }

/* ---------- animations ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes spin { to { transform: rotate(360deg); } }
.is-shot .toast-stack, .is-shot .loading-overlay { display: none !important; }
.is-shot *, .is-shot *::before, .is-shot *::after { animation: none !important; transition: none !important; }
body.shot-analysis .page-head, body.shot-analysis .stat-grid, body.shot-analysis .table-card { display: none !important; }
body.shot-analysis .analysis-section { margin-top: 2px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-head, .stat-card, .table-card, .insight-grid .card { animation: fadeUp .45s both; }
.stat-card:nth-child(1) { animation-delay: .03s; }
.stat-card:nth-child(2) { animation-delay: .06s; }
.stat-card:nth-child(3) { animation-delay: .09s; }
.stat-card:nth-child(4) { animation-delay: .12s; }
.table-card { animation-delay: .12s; }
.insight-grid .card:nth-child(1) { animation-delay: .14s; }
.insight-grid .card:nth-child(2) { animation-delay: .18s; }
.insight-grid .card:nth-child(3) { animation-delay: .22s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .page { padding-left: 24px; padding-right: 24px; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .stat-grid { gap: 11px; }
  .stat-card { padding-left: 15px; padding-right: 15px; }
  .head-actions .btn { padding: 0 11px; }
  .indicator-table col.col-name { width: 21%; }
  .indicator-table col.col-criteria { width: 23%; }
}
@media (max-width: 1180px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: 20px 0 60px rgba(7,14,34,.3); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-mask { position: fixed; inset: 0; z-index: 55; background: rgba(8,16,38,.42); opacity: 0; visibility: hidden; transition: .2s; }
  .sidebar-mask.show { opacity: 1; visibility: visible; }
  .main { margin-left: 0; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1.05fr 1fr; }
  .conclusion-card { grid-column: 1 / -1; }
  .conclusion-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .conclusion-text { min-height: auto; }
}
@media (max-width: 900px) {
  .page-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .card-head { align-items: flex-start; flex-wrap: wrap; }
  .table-tools { width: 100%; }
  .search-box { flex: 1; width: auto; }
  .search-box:focus-within { width: auto; }
  .legend { display: none; }
  .table-footer { justify-content: flex-end; }
  .section-heading > p { display: none; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .conclusion-card { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .topbar { padding: 0 16px; height: 60px; }
  .save-state, .top-sep, .topbar-right > .icon-btn { display: none; }
  .top-user { border-left: 0; margin-left: 8px; padding-left: 0; }
  .top-user div:last-child { display: none; }
  .page { padding: 20px 15px 20px; }
  .title-row { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .title-row h1 { font-size: 25px; }
  .project-line { gap: 6px; font-size: 9.5px; }
  .head-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .head-actions .btn { width: 100%; padding: 0 8px; font-size: 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 120px; padding: 13px 13px 11px; }
  .score-line strong { font-size: 29px; }
  .stat-score .score-line strong { font-size: 31px; }
  .stat-foot { font-size: 7.5px; }
  .stat-foot span:last-child { display: none; }
  .stat-note span:last-child { display: none; }
  .insight-grid { grid-template-columns: 1fr; }
  .conclusion-card { grid-column: auto; }
  .conclusion-lists { grid-template-columns: 1fr; }
  .card-head { padding: 15px 14px 12px; }
  .table-tools { flex-wrap: wrap; }
  .search-box { min-width: 100%; }
  .table-footer { padding: 10px 14px; }
  .total-cell { padding: 0 10px; }
  .total-cell span { font-size: 7.5px; }
  .total-cell strong { font-size: 15px; }
  .total-cell.score strong { font-size: 18px; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 18px; }
  .modal { padding: 10px; }
  .modal-panel { max-height: calc(100vh - 20px); border-radius: 14px; }
  .modal-header, .modal-body { padding-left: 16px; padding-right: 16px; }
  .modal-footer { padding: 11px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .score-preview { flex-wrap: wrap; gap: 9px; }
  .sp-bar { flex-basis: 100%; }
  .sp-divider { display: none; }
  .viewer-topbar { padding: 0 12px; height: 56px; }
  .viewer-title span, .page-count { display: none; }
  .viewer-actions .btn { padding: 0 9px; font-size: 9.5px; }
  .viewer-stage { padding: 15px 8px 25px; overflow-x: auto; }
  .viewer-stage .report-page { transform: scale(.72); transform-origin: top center; margin-bottom: -310px; }
  .viewer-stage .report-page:last-child { margin-bottom: 0; }
  .toast-stack { left: 15px; right: 15px; bottom: 15px; align-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 430px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 116px; }
  .head-actions { grid-template-columns: 1fr; }
  .viewer-actions .btn-soft { display: none; }
}
