:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --ink: #1c2b36;
  --muted: #5b6b78;
  --line: #dbe3e9;
  --accent: #1f5f7a;
  --accent-ink: #164a5f;
  --accent-soft: #e3eef3;
  --peer: #8a4f9e;
  --warn: #b4442f;
  --warn-soft: #fbe9e5;
  --ok: #2e7d4f;
  --in: #c2610f;
  --in-soft: #fdf0e2;
  --ph: #1f6fb2;
  --ph-soft: #e4f0fa;
  --h-low: #f6d4cc; --h-mid: #f6e7b8; --h-high: #cfe8d6;
  --s0: #9aa5ae; --s1: #c0392b; --s2: #e07b39; --s3: #d4a72c; --s4: #6aa84f; --s5: #2e8b57;
  --side-w: 248px;
  --shadow: 0 1px 2px rgba(20, 40, 55, .06), 0 2px 8px rgba(20, 40, 55, .04);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.5;
}
h1, h2, h3, h4, h5 { line-height: 1.25; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .88rem; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- Buttons & inputs ---------- */
button, .btn {
  font: inherit; font-weight: 700; border-radius: 8px; padding: 9px 16px; cursor: pointer;
  border: 2px solid var(--accent); background: transparent; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  min-height: 40px;
}
button:hover:not(:disabled) { background: var(--accent-soft); }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-ink); }
.secondary { background: var(--surface); }
.danger { color: var(--warn); border-color: var(--warn); background: var(--surface); }
.danger:hover:not(:disabled) { background: var(--warn-soft); }
.linkbtn { border: none; background: none; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; font-weight: 700; text-align: left; }
.linkbtn:hover:not(:disabled) { background: none; color: var(--accent-ink); }
.sm { padding: 5px 12px; min-height: 32px; font-size: .88rem; }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid #b9c6d0; border-radius: 8px; padding: 9px 11px; min-height: 40px;
}
textarea { min-height: 64px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.toolbar { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toolbar.left { justify-content: flex-start; }

/* ---------- Login ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #e6f0f5 0%, #f4f7f9 55%); }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 420px; text-align: center; box-shadow: var(--shadow); }
.login-card h1 { margin: 14px 0 6px; font-size: 1.7rem; }
.brand-mark { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto; letter-spacing: .5px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 24px 0 14px; padding: 12px 16px; border: 1px solid #b9c6d0; border-radius: 10px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.google-btn:hover { background: #f1f5f8; }
.login-error { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 700; text-align: left; font-size: .94rem; }
.login-note { margin: 0; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side {
  background: var(--surface); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto;
}
.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.side .logo .brand-mark { width: 36px; height: 36px; font-size: .95rem; border-radius: 10px; margin: 0; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-h { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 14px 10px 4px; }
.nav-a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-a svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.nav-a:hover { background: var(--bg); }
.nav-a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.nav-a[aria-current="page"] svg { color: var(--accent); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin: 0 5px; }
.dot.in { background: var(--in); } .dot.ph { background: var(--ph); }
.me { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.me .who { min-width: 0; flex: 1; font-size: .86rem; line-height: 1.3; }
.me .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.5rem; }
.content { min-width: 0; }
.mobilebar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 24px 24px 72px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.page-head p { margin: 2px 0 0; color: var(--muted); }
.scrim { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 30; transform: translateX(-100%); transition: transform .2s; box-shadow: 6px 0 24px rgba(0,0,0,.12); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(20, 35, 45, .35); z-index: 20; }
  .mobilebar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .mobilebar .ttl { font-weight: 700; color: var(--accent); }
  .menu-btn { padding: 6px 10px; min-height: 38px; }
  .menu-btn svg { width: 22px; height: 22px; }
  .page { padding: 16px 14px 64px; }
  .page-head h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } .bar span { transition: none; } }

/* ---------- Cards, KPIs, tables ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { font-size: 1.15rem; margin: 0 0 4px; }
.card h3 { font-size: 1rem; margin: 20px 0 8px; color: var(--accent); }
.card .lead { color: var(--muted); margin: 0 0 14px; font-size: .94rem; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: flex-end; }
.filters > div { min-width: 170px; flex: 1 1 170px; max-width: 280px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 1.8rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: .95rem; color: var(--muted); font-weight: 400; }
.kpi span { color: var(--muted); font-size: .88rem; }
.kpi.alert b { color: var(--warn); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; color: var(--muted); white-space: nowrap; }
tbody tr:hover td { background: #fafcfd; }
td input { min-width: 90px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.low td { background: var(--warn-soft); }
tr.low td:first-child { color: var(--warn); font-weight: 700; }
tfoot td { font-weight: 700; border-bottom: none; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.chip.attn { background: var(--warn-soft); color: var(--warn); }
.chip.ok { background: var(--h-high); color: #1d4a30; }
.chip.none { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.chip.in { background: var(--in-soft); color: #8a4308; }
.chip.ph { background: var(--ph-soft); color: #154f7f; }
.chip.admin { background: #ece5f4; color: #5b2f73; }
.up { color: var(--ok); font-weight: 700; } .down { color: var(--warn); font-weight: 700; }
.heat td.cell, .heat th.cell { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.h-low { background: var(--h-low); } .h-mid { background: var(--h-mid); } .h-high { background: var(--h-high); } .h-none { color: var(--muted); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.legend i.line { width: 22px; height: 0; border-top: 3px solid; border-radius: 0; vertical-align: 4px; }
.bar { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.empty { text-align: center; padding: 48px 20px; }
.empty p { color: var(--muted); max-width: 55ch; margin: 8px auto 20px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.two > .card { margin-bottom: 0; }
.two { margin-bottom: 18px; }
.spinner { padding: 60px; text-align: center; color: var(--muted); }

/* region comparison */
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 18px; }
.region-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid; border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.region-card.IN { border-top-color: var(--in); } .region-card.PH { border-top-color: var(--ph); }
.region-card h3 { margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--ink); }
.region-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.region-stats b { display: block; font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.region-stats span { font-size: .8rem; color: var(--muted); }
.region-card .bar span { background: var(--accent); }
.region-card.IN .bar span { background: var(--in); } .region-card.PH .bar span { background: var(--ph); }

/* charts */
.chart svg { width: 100%; height: auto; display: block; }
.chart .gridline { stroke: var(--line); }
.chart .threshold { stroke: var(--warn); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: inherit; }
.chart .ln { fill: none; stroke-width: 2.5; }
.chart .c-self { stroke: var(--accent); fill: var(--accent); }
.chart .c-peer { stroke: var(--peer); fill: var(--peer); }
.chart .c-in { stroke: var(--in); fill: var(--in); }
.chart .c-ph { stroke: var(--ph); fill: var(--ph); }
.chart path.c-self, .chart path.c-peer, .chart path.c-in, .chart path.c-ph { fill: none; }
.chart path.c-peer { stroke-dasharray: 7 4; }
.chart .val { font-size: 12px; font-weight: 700; font-family: inherit; stroke: none; }
.chart rect.c-in, .chart rect.c-ph, .chart rect.c-self { stroke: none; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 130px 1fr 46px; gap: 10px; align-items: center; font-size: .9rem; }
.hbar .track { height: 12px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.hbar .track span { display: block; height: 100%; border-radius: 6px; }
.hbar.pair { grid-template-columns: 130px 1fr; }
.hbar .pairbars { display: grid; gap: 4px; }
.hbar .pairbars .row { display: grid; grid-template-columns: 1fr 40px; gap: 8px; align-items: center; }
.hbar .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .hbar { grid-template-columns: 96px 1fr 40px; } .hbar.pair { grid-template-columns: 96px 1fr; } }

/* ---------- Employees ---------- */
.search { position: relative; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.emp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block; }
.emp-card:hover { border-color: var(--accent); }
.emp-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.emp-top b { display: block; }
.emp-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .86rem; color: var(--muted); }
.emp-score { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); }
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; font-size: 1.6rem; }
.profile-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 22px; margin-top: 16px; }
.profile-facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.profile-facts b { font-weight: 700; overflow-wrap: anywhere; }
.crumb { font-size: .9rem; margin-bottom: 10px; }
.crumb a { text-decoration: none; font-weight: 700; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 35, 45, .45); z-index: 50; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 14px; padding: 24px; width: 100%; max-width: 520px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.modal h2 { margin: 0 0 14px; font-size: 1.25rem; }
.modal .field { margin-bottom: 12px; }
.modal .toolbar { margin-top: 18px; }
.form-err { color: var(--warn); font-weight: 700; font-size: .9rem; margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 700; max-width: calc(100% - 32px); z-index: 80; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast.err { background: var(--warn); }

/* ---------- Review form ---------- */
.scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.scale div { border-radius: 8px; padding: 8px; font-size: .85rem; background: var(--bg); border-top: 4px solid; }
.scale b { display: block; font-size: 1.1rem; }
.q { padding: 14px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: none; }
.q-text { display: flex; gap: 10px; margin-bottom: 8px; }
.q-num { color: var(--muted); min-width: 2ch; }
.rating { display: flex; gap: 6px; flex-wrap: wrap; margin-left: calc(2ch + 10px); }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label { margin: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1rem; background: var(--surface); }
.rating label:hover { border-color: var(--accent); }
.rating input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.rating input:checked + label { color: #fff; border-color: transparent; }
.rating input[value="0"]:checked + label { background: var(--s0); }
.rating input[value="1"]:checked + label { background: var(--s1); }
.rating input[value="2"]:checked + label { background: var(--s2); }
.rating input[value="3"]:checked + label { background: var(--s3); }
.rating input[value="4"]:checked + label { background: var(--s4); }
.rating input[value="5"]:checked + label { background: var(--s5); }
.q textarea { margin: 8px 0 0 calc(2ch + 10px); width: calc(100% - 2ch - 10px); min-height: 40px; }
ol.open li { margin-bottom: 16px; }
ol.open textarea { margin-top: 6px; }
.peer { border: 1px solid var(--line); border-left: 4px solid var(--peer); border-radius: 10px; padding: 16px; margin-bottom: 16px; background: var(--bg); }
.peer .rating label { background: var(--surface); }
.peer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.peer-head h3 { margin: 0; color: var(--peer); }
.peer-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.remove { border: none; background: none; color: var(--warn); padding: 4px 0; font-size: .9rem; min-height: 0; }
.remove:hover:not(:disabled) { background: none; text-decoration: underline; }
.peer-avg { margin-top: 8px; padding: 12px 16px; border-radius: 8px; background: var(--accent-soft); font-weight: 700; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 1rem; margin: 6px 0 4px; width: fit-content; font-weight: 400; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 26px; border-radius: 13px; background: #b9c6d0; position: relative; flex: none; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--accent); outline-offset: 2px; }
.dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 4px 0 14px; }
.dots button { padding: 4px 12px; min-height: 30px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.dots button.done { border-color: var(--ok); color: var(--ok); }
.dots button[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper-nav { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.arrow { width: 52px; height: 52px; border-radius: 50%; padding: 0; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--accent); }
.arrow svg { width: 22px; height: 22px; }
.step-title { flex: 1; text-align: center; }
.step-title b { display: block; font-size: 1.3rem; color: var(--accent); }
.step-title span { color: var(--muted); font-size: .9rem; }
.area-page h3.print-only { display: none; }
.step-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.step-foot button:only-child { margin-left: auto; }
.result-status { padding: 12px 16px; border-radius: 8px; background: var(--accent-soft); font-weight: 700; margin: 16px 0; }
#resultLow { padding-left: 20px; margin: 6px 0 0; }
#resultLow li { margin-bottom: 6px; }
.savebar { position: sticky; bottom: 0; background: rgba(244, 247, 249, .95); backdrop-filter: blur(4px); padding: 12px 0; border-top: 1px solid var(--line); z-index: 5; }
.autofill { background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; padding: 8px 12px; font-size: .9rem; margin-top: 12px; }

@media (max-width: 600px) {
  .scale { grid-template-columns: repeat(3, 1fr); }
  .rating label { width: 38px; height: 38px; }
  .card { padding: 16px 14px; }
  .modal { padding: 18px; }
}

/* ---------- Answer sheet ---------- */
.sheet-bar { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin: 24px 0 12px; }
.sheet { border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: var(--surface); }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 14px; }
.sheet-head h4 { margin: 0 0 2px; font-size: 1.3rem; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--muted); font-size: .86rem; }
.sheet-meta b { color: var(--ink); }
.sheet-scores { display: flex; gap: 22px; text-align: right; }
.sheet-scores b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.sheet-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.sa { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; break-inside: avoid; }
.sa-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 6px; }
.sa-h .chip { -webkit-print-color-adjust: exact; print-color-adjust: exact; color: var(--ink); }
.sa ul { list-style: none; margin: 0; padding: 0; }
.sa li { display: flex; gap: 8px; font-size: .86rem; padding: 3px 4px; line-height: 1.35; }
.sa li.lowq { background: var(--warn-soft); border-radius: 4px; }
.sa em { display: block; color: var(--muted); font-size: .8rem; }
.sc { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sc.na { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.sheet h5 { margin: 14px 0 6px; font-size: .95rem; color: var(--accent); }
.sheet table th, .sheet table td { padding: 4px 6px; font-size: .84rem; }
.sheet-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }
.sheet .qa p { margin: 0 0 6px; font-size: .86rem; }
#printArea { display: none; }

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --line: #bbb; }
  body { font-size: 12px; background: #fff; }
  .side, .mobilebar, .scrim, .no-print, .toolbar, .filters, .toast, .savebar { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .card { box-shadow: none; border: none; padding: 8px 0; break-inside: avoid-page; }
  .rating label { width: 28px; height: 28px; }
  .rating input:checked + label { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .area-page { display: block !important; }
  .area-page h3.print-only { display: block; }
  .dots, .stepper-nav, .step-foot { display: none !important; }
  body.printing-sheet .shell { display: none !important; }
  body.printing-sheet #printArea { display: block; }
  body.printing-sheet { font-size: 9.5px; }
  body.printing-sheet .sheet { border: none; padding: 0; }
  body.printing-sheet .sheet-areas { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  body.printing-sheet .sa { padding: 6px 8px; }
  body.printing-sheet .sa li { font-size: 9px; padding: 1px 2px; }
  body.printing-sheet .sc { width: 16px; height: 16px; font-size: 8.5px; }
  body.printing-sheet .sheet h5 { margin: 8px 0 3px; font-size: 11px; }
  body.printing-sheet .sheet table th, body.printing-sheet .sheet table td, body.printing-sheet .sheet .qa p { font-size: 8.5px; padding: 2px 4px; }
  body.printing-sheet .sheet-scores b { font-size: 16px; }
  body.printing-sheet .sheet-head h4 { font-size: 15px; }
  body.printing-sheet .sheet-meta, body.printing-sheet .sheet .small, body.printing-sheet .sa em, body.printing-sheet .sheet p { font-size: 9px; }
}
@page { size: A4; margin: 10mm; }
