/* سامانهٔ آزمون‌های مشاوره — استایل اصلی */

@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn FD"; src: url("../fonts/Vazirmatn-FD-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1c2a29;
  --muted: #5d6d6a;
  --line: #e4ded3;
  --primary: #0f5c57;
  --primary-hover: #0b4a46;
  --primary-ink: #ffffff;
  --primary-soft: #e2efed;
  --accent: #d9732a;
  --accent-soft: #fcebdc;
  --danger: #b3261e;
  --danger-soft: #fbe5e3;
  --ok: #2d7a4c;
  --ok-soft: #e1f2e7;
  --shadow: 0 1px 2px rgba(28, 42, 41, .06), 0 6px 24px rgba(28, 42, 41, .06);
  --radius: 16px;
  --radius-sm: 11px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111716;
    --surface: #1a2220;
    --surface-2: #161d1c;
    --ink: #e6eeec;
    --muted: #9db0ac;
    --line: #2b3633;
    --primary: #5ec3b5;
    --primary-hover: #7fd3c7;
    --primary-ink: #0a1614;
    --primary-soft: #1d3532;
    --accent: #f0a062;
    --accent-soft: #3a291c;
    --danger: #f08a82;
    --danger-soft: #3b1f1d;
    --ok: #7fd09f;
    --ok-soft: #1c3326;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn FD", Vazirmatn, Tahoma, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.5; margin: 0 0 .4em; }
h1 { font-size: 1.45rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ltr { direction: ltr; unicode-bidi: plaintext; }

/* ---------- سرصفحه ---------- */
.topbar {
  background: var(--primary);
  color: var(--primary-ink);
}
.topbar-in {
  max-width: 760px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.wide .topbar-in, .wide main { max-width: 1240px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,.14); display: grid; place-items: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand-title { font-weight: 800; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: .78rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; align-items: center; gap: 6px; flex: none; }
.topnav a {
  color: inherit; text-decoration: none; font-size: .88rem;
  padding: 6px 10px; border-radius: 9px; background: rgba(255,255,255,.1);
}
.topnav a:hover { background: rgba(255,255,255,.2); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar { background: #133331; color: #e6eeec; }
}

main { width: 100%; max-width: 760px; margin: 0 auto; padding: 22px 16px 48px; flex: 1; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 18px 16px 26px; }

/* ---------- کارت‌ها و فرم ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 20px;
}
.card + .card { margin-top: 16px; }
.card-narrow { max-width: 440px; margin: 0 auto; }
.stack > * + * { margin-top: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.field .err { font-size: .82rem; color: var(--danger); line-height: 1.6; }
input[type=text], input[type=password], input[type=tel], input[type=number], select {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.has-err input, .has-err select { border-color: var(--danger); }
input.ltr { text-align: left; font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif; letter-spacing: .02em; }
.row { display: grid; gap: 10px; }
.row-3 { grid-template-columns: 1fr 1.4fr 1.2fr; }
.row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } }

.seg { display: flex; gap: 8px; }
.seg label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--surface-2); font-weight: 500;
}
.seg input { accent-color: var(--primary); width: 18px; height: 18px; }
.seg label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  min-height: 48px; padding: 10px 20px;
  background: var(--primary); color: var(--primary-ink);
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c4651f; }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger-soft); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .88rem; }

.flash { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-weight: 500; font-size: .95rem; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--danger-soft); color: var(--danger); }

.center { text-align: center; }
.page-title { margin-bottom: 18px; }
.page-title p { color: var(--muted); margin: 0; }
.link-row { text-align: center; margin-top: 16px; font-size: .93rem; }

/* ---------- داشبورد ---------- */
.hello { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
}
.test-card { display: flex; gap: 16px; align-items: flex-start; }
.test-num {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
}
.test-card.locked { opacity: .62; }
.test-card.done .test-num { background: var(--ok-soft); color: var(--ok); }
.test-body { flex: 1; min-width: 0; }
.test-body h2 { margin-bottom: 2px; }
.test-meta { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 10px;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-doing { background: var(--accent-soft); color: var(--accent); }
.badge-new { background: var(--primary-soft); color: var(--primary); }
.badge-lock { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.mini-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 8px 0 12px; }
.mini-bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 500; }

/* ---------- صفحهٔ آزمون ---------- */
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.quiz-head .step { font-weight: 700; color: var(--primary); }
.quiz-head .save-state { font-size: .8rem; color: var(--muted); }
.progress { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: 8px; transition: width .25s ease; }

.statement {
  font-size: 1.22rem; font-weight: 700; line-height: 2;
  min-height: 7.5em; display: flex; align-items: center;
  padding: 6px 2px 14px;
}
.likert { display: flex; flex-direction: column; gap: 10px; }
.likert button {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font: inherit; text-align: right; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; min-height: 54px; cursor: pointer;
  transition: background .12s, border-color .12s;
}
@media (hover: hover) { .likert button:hover { border-color: var(--primary); } }
.likert .num {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--muted);
}
.likert button.sel { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.likert button.sel .num { background: var(--primary-ink); color: var(--primary); border-color: var(--primary-ink); }
.likert .dots { margin-inline-start: auto; display: flex; gap: 3px; }
.likert .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .18; }
.likert .dots i.on { opacity: .75; }

.quiz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.quiz-nav .btn { min-width: 120px; }
.kbd-hint { text-align: center; color: var(--muted); font-size: .78rem; margin-top: 12px; }
@media (hover: none) { .kbd-hint { display: none; } }

.intro-text p { font-size: 1.02rem; }
.scale-legend { display: grid; gap: 6px; margin: 14px 0 20px; }
.scale-legend div { display: flex; gap: 10px; align-items: center; font-size: .93rem; }
.scale-legend b {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--primary-soft); color: var(--primary); font-size: .9rem;
}

/* هالند */
.sec-head { margin-bottom: 14px; }
.sec-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sec-kicker .pill {
  font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 2px 10px;
  background: var(--accent-soft); color: var(--accent);
}
.sec-kicker .pill.letter { background: var(--primary); color: var(--primary-ink); min-width: 30px; text-align: center; }
.sec-instr {
  background: var(--primary-soft); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .93rem; line-height: 1.85;
}
.picks { display: grid; gap: 8px; }
@media (min-width: 640px) { .picks.cols-2 { grid-template-columns: 1fr 1fr; } }
.pick {
  display: flex; gap: 12px; align-items: center; width: 100%;
  font: inherit; text-align: right; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 52px; cursor: pointer; line-height: 1.7;
  transition: background .12s, border-color .12s;
}
@media (hover: hover) { .pick:hover { border-color: var(--primary); } }
.pick .box {
  width: 24px; height: 24px; border-radius: 7px; flex: none;
  border: 2px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: transparent;
}
.pick.sel { background: var(--primary-soft); border-color: var(--primary); }
.pick.sel .box { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pick .n { color: var(--muted); font-size: .85rem; min-width: 1.4em; }
.pick-count { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }

.rate-row { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rate-row:last-child { border-bottom: 0; }
.rate-row .lbl { font-weight: 700; margin-bottom: 8px; }
.rate { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.rate button {
  font: inherit; font-weight: 800; color: var(--ink); min-height: 46px;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
}
@media (hover: hover) { .rate button:hover { border-color: var(--primary); } }
.rate button.sel { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.rate-ends { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 4px; }
.warn-same { background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .86rem; margin-top: 12px; }

.done-box { text-align: center; padding: 18px 6px; }
.done-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--ok-soft); color: var(--ok); display: grid; place-items: center;
}
.missing-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 10px 0; }
.missing-list button { font: inherit; border: 1px solid var(--accent); color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 2px 10px; cursor: pointer; }

.fade-in { animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } .progress span { transition: none; } }

/* ---------- پنل مشاور ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .v { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.stat .k { font-size: .85rem; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input { flex: 1; min-width: 200px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th { background: var(--surface-2); font-weight: 700; color: var(--muted); font-size: .82rem; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: center; }
.code-chip { display: inline-flex; gap: 4px; }
.code-chip span { background: var(--primary-soft); color: var(--primary); border-radius: 7px; padding: 0 8px; font-weight: 800; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }

.report-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .report-grid { grid-template-columns: 340px 1fr; align-items: start; } }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 9.5em 1fr 4.5em; gap: 10px; align-items: center; font-size: .92rem; }
.bar-row .track { display: block; height: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--primary); opacity: .55; border-radius: 8px; }
.bar-row.top .fill { opacity: 1; background: var(--accent); }
.bar-row.top .name { font-weight: 800; }
.bar-row .val { text-align: left; font-weight: 700; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 7.5em 1fr 3.8em; font-size: .85rem; } }

table.sheet { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.sheet th, table.sheet td { border: 1px solid var(--line); padding: 8px 6px; text-align: center; }
table.sheet th { background: var(--surface-2); }
table.sheet td:first-child, table.sheet th:first-child { text-align: right; padding-inline-start: 10px; }
table.sheet tr.total td { font-weight: 800; background: var(--primary-soft); }
table.sheet td.hi { background: var(--accent-soft); color: var(--accent); }
.code-boxes { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.code-box { border: 2px solid var(--primary); border-radius: 12px; padding: 8px 14px; text-align: center; min-width: 96px; }
.code-box .l { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1.4; }
.code-box .t { font-size: .8rem; color: var(--muted); }
.jobs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.jobs span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 9px; font-size: .84rem; }
details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 14px; }
details summary { cursor: pointer; font-weight: 700; color: var(--primary); }
.ans-list { font-size: .88rem; margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ans-list li { display: flex; gap: 8px; }
.ans-list .a { flex: none; width: 1.8em; height: 1.8em; border-radius: 6px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.ans-groups { display: grid; gap: 14px; }
@media (min-width: 760px) { .ans-groups { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions form { margin: 0; }
.pw-box { background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 700; }
.pw-box b { font-size: 1.3rem; letter-spacing: .1em; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--primary); }

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f6f6f6; --ink: #000; --muted: #444; --line: #ccc; --primary: #0f5c57; --primary-soft: #e8f1f0; --accent: #b55e1d; --accent-soft: #fbeadb; }
  body { background: #fff; }
  .topbar, footer, .no-print, .actions, details summary::marker { display: none !important; }
  details { display: block; }
  details > * { display: block; }
  main { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .report-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- فرم‌های تشریحی ---------- */
.qtext { font-size: 1.12rem; line-height: 2; margin: 4px 0 14px; }
textarea {
  width: 100%; font: inherit; color: var(--ink); line-height: 1.9;
  background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; resize: vertical; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea.ta { min-height: 150px; }
.stack-sm { display: grid; gap: 10px; }
.num-input { display: flex; align-items: center; gap: 10px; }
.num-input .n, .pair-n {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 800;
}
.pair { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.pair-f { flex: 1; display: grid; gap: 8px; min-width: 0; }
.choice-meta { font-size: .86rem; color: var(--muted); margin-bottom: 8px; min-height: 1.4em; }
.choice-meta.warn { color: var(--accent); font-weight: 700; }
.pick.dim { opacity: .5; }
.pick.radio .box { border-radius: 50%; }
.other-box { margin-top: 10px; }
.req { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }
.req.ok { color: var(--ok); font-weight: 700; }
.form-note { background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; font-size: .93rem; margin-bottom: 14px; }
.qa { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.qa:last-child { border-bottom: 0; }
.qa .q { font-weight: 700; font-size: .93rem; margin-bottom: 4px; }
.qa .a { white-space: pre-wrap; font-size: .93rem; }
.qa .a.empty { color: var(--muted); }
.qa ol { margin: 2px 0; padding-inline-start: 1.4em; }
.qa .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qa .chips span { background: var(--primary-soft); color: var(--primary); border-radius: 8px; padding: 1px 9px; font-size: .86rem; font-weight: 600; }
.qa .sec { font-size: .78rem; color: var(--accent); font-weight: 700; }
.sub-badges { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------- انتخاب پایه و غربالگری ---------- */
.grade-pick { display: grid; gap: 12px; }
.grade-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; font: inherit; color: var(--ink); text-align: right;
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
}
@media (hover: hover) { .grade-btn:hover { border-color: var(--primary); } }
.grade-btn.sel { border-color: var(--primary); background: var(--primary-soft); }
.g-num { width: 48px; height: 48px; border-radius: 14px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; flex: none; }
.g-name { font-weight: 800; font-size: 1.1rem; flex: 1; }
.g-cur { font-size: .78rem; color: var(--primary); font-weight: 700; }
.support h1 { font-size: 1.2rem; margin-bottom: 12px; }
.support-list { padding-inline-start: 1.2em; margin: 8px 0 18px; }
.support-list li { margin-bottom: 8px; }
.tel { font-weight: 800; color: var(--primary); font-size: 1.1em; }
.lvl { display: inline-block; border-radius: 7px; padding: 0 8px; font-weight: 700; font-size: .82rem; }
.lvl-0 { background: var(--ok-soft); color: var(--ok); }
.lvl-1 { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.lvl-2 { background: var(--accent-soft); color: var(--accent); }
.lvl-3, .lvl-4 { background: var(--danger-soft); color: var(--danger); }
.alert-box { border: 1.5px solid var(--danger); background: var(--danger-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.alert-box h2 { color: var(--danger); margin-bottom: 6px; font-size: 1.05rem; }
.alert-box ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.alert-box li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; background: var(--surface); border-radius: 10px; padding: 6px 10px; }
.alert-box .urgent { color: #fff; background: var(--danger); border-radius: 6px; padding: 0 8px; font-size: .78rem; font-weight: 800; }
.alert-box .why { font-size: .86rem; color: var(--muted); }
.flag { color: var(--danger); font-weight: 800; }
.dass-cell { display: inline-flex; gap: 4px; flex-wrap: nowrap; }
.score-big { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.ans-list li.hl { background: var(--danger-soft); border-radius: 8px; padding: 2px 6px; }
.na { color: var(--muted); font-size: .8rem; }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .stats-4 { grid-template-columns: repeat(2, 1fr); } }
.stat .sub { font-size: .76rem; color: var(--muted); }
