/* RT-SEC-011 — Scam Awareness Check. Built on the shared Studio style
 * (public/assets/css/tool-studio.css), which this page opts into with
 * .rt-studio. Everything here is scoped under .sac (the quiz) or the page's
 * own sections. Light surfaces and site tokens only: no navy result box, so no
 * --rt-result-* tokens (docs/contrast-conventions.md). Verdict colours are
 * local tokens, redefined for dark mode. The quiz adapts to the width of its
 * column (container queries), not the window, because the tool column is
 * narrower than the screen on desktop. */

.sac {
    --sac-ok: #1F7A50;           /* 5.2:1 on white */
    --sac-ok-soft: rgba(31, 138, 91, 0.10);
    --sac-mid: #8A5A00;          /* 5.9:1 on white */
    --sac-mid-soft: rgba(196, 140, 20, 0.14);
    --sac-bad: #B3261E;          /* 6.0:1 on white */
    --sac-bad-soft: rgba(179, 38, 30, 0.09);
    --sac-phone: #0D1B2A;        /* the handset frame, both themes */
    --sac-screen: #F4F6F9;
    --sac-screen-ink: #0D1B2A;
    --sac-screen-muted: #5C646F;
    --sac-bubble: #FFFFFF;
    --sac-bubble-you: #2A6FDB;
    --sac-bubble-you-ink: #FFFFFF;
    --sac-tile: #CFD6DF;
    container: sac / inline-size;
    display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
[data-theme="dark"] .sac {
    --sac-ok: #6FD3A2; --sac-ok-soft: rgba(111, 211, 162, 0.14);
    --sac-mid: #F0C46A; --sac-mid-soft: rgba(240, 196, 106, 0.14);
    --sac-bad: #F2857A; --sac-bad-soft: rgba(242, 133, 122, 0.14);
    --sac-phone: #050B12;
    --sac-screen: #0F1E30; --sac-screen-ink: #F6F4EF; --sac-screen-muted: #9AA6B5;
    --sac-bubble: #1B2F47; --sac-bubble-you: #3A7BE0;
    --sac-tile: #2A4260;
}

/* ── self-study notice ─────────────────────────────────────────────────── */
.sac-notice {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 16px; border-radius: 14px;
    background: linear-gradient(135deg, var(--rt-accent-soft), transparent 70%), var(--rt-surface-2);
    border: 1px solid var(--rt-hairline);
}
.sac-notice p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--rt-ink-soft); }
.sac-notice a { color: var(--rt-link); font-weight: 600; }
.sac-notice-tag {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    font: 700 11px/1 var(--rt-font-mono); letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 9px; border-radius: 999px; background: var(--rt-ink); color: var(--rt-surface);
}

/* ── top bar: set picker, progress, score ─────────────────────────────── */
.sac-top { display: flex; flex-direction: column; gap: 14px; }
.sac-modes {
    display: flex; gap: 4px; padding: 4px; border-radius: 14px;
    background: var(--rt-bg-inset); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.sac-modes::-webkit-scrollbar { display: none; }
/* Narrow: wrap rather than hide a tab off-screen behind an invisible scrollbar. */
@container sac (max-width: 520px) { .sac .sac-modes { flex-wrap: wrap; overflow-x: visible; } .sac .sac-mode { flex: 1 1 40%; } }
.sac-mode {
    flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
    padding: 10px 14px; border: 0; border-radius: 10px; background: transparent;
    color: var(--rt-ink-soft); font: 600 14px/1.2 var(--rt-font-sans); cursor: pointer;
    transition: background .2s, color .2s, box-shadow .2s;
}
.sac-mode:hover:not([disabled]) { color: var(--rt-ink); }
.sac-mode[aria-pressed="true"] { background: var(--rt-surface); color: var(--rt-ink); box-shadow: 0 1px 2px rgba(13,27,42,.08), 0 4px 12px -6px rgba(13,27,42,.25); }
.sac-mode[disabled] { cursor: default; opacity: .7; }
.sac-mode-count {
    font: 600 11.5px/1 var(--rt-font-mono); padding: 4px 7px; border-radius: 999px;
    background: var(--rt-surface); color: var(--rt-ink-muted);
}
.sac-mode[aria-pressed="true"] .sac-mode-count { background: var(--rt-accent-fill); color: #fff; }   /* 4.6:1 */

.sac-hud { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.sac-hud-pos { font: var(--rt-label); color: var(--rt-ink-muted); letter-spacing: .04em; }
.sac-hud-score {
    display: inline-flex; align-items: baseline; gap: 6px;
    font: 600 13px/1 var(--rt-font-sans); color: var(--rt-ink);
}
.sac-hud-score b { font: 700 18px/1 var(--rt-font-mono); }
.sac-hud .st-progress { grid-column: 1 / -1; }

.sac-dots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sac-dots li { margin: 0; display: flex; }
.sac-dot {
    width: 26px; height: 26px; padding: 0; border-radius: 8px; cursor: pointer;
    border: 1.5px solid var(--rt-hairline); background: var(--rt-surface);
    font: 600 11px/1 var(--rt-font-mono); color: var(--rt-ink-muted);
    transition: transform .15s, border-color .15s, background .15s;
}
.sac-dot:hover { transform: translateY(-1px); border-color: var(--rt-ink-muted); }
.sac-dot[aria-current="step"] { border-color: var(--rt-accent); color: var(--rt-accent-text); box-shadow: 0 0 0 3px var(--rt-accent-soft); }
.sac-dot-right { background: var(--sac-ok); border-color: var(--sac-ok); color: #fff; }
.sac-dot-partial { background: var(--sac-mid-soft); border-color: var(--sac-mid); color: var(--sac-mid); }
.sac-dot-wrong { background: var(--sac-bad-soft); border-color: var(--sac-bad); color: var(--sac-bad); }
.sac-dot-results {
    height: 26px; padding: 0 10px; border-radius: 8px; cursor: pointer;
    border: 1.5px solid var(--rt-hairline); background: var(--rt-surface);
    font: 600 12px/1 var(--rt-font-sans); color: var(--rt-ink-soft);
}
.sac-dot-results[aria-current="step"] { border-color: var(--rt-accent); color: var(--rt-accent-text); }

/* ── stage ─────────────────────────────────────────────────────────────── */
.sac-stage {
    position: relative; border-radius: 20px; padding: clamp(14px, 3cqi, 26px);
    background:
        radial-gradient(120% 80% at 0% 0%, var(--rt-accent-soft), transparent 55%),
        var(--rt-surface-2);
    border: 1px solid var(--rt-hairline);
}
.sac-stage.sac-reserve { min-height: 780px; }
@container sac (min-width: 680px) { .sac-stage.sac-reserve { min-height: 540px; } }
.sac-loading { margin: 0; color: var(--rt-ink-muted); font-size: 14px; }

.sac-q { display: grid; gap: 22px; grid-template-columns: 1fr; animation: sac-in .35s var(--st-ease, ease) both; }
@container sac (min-width: 680px) {
    .sac-q { grid-template-columns: minmax(250px, 300px) 1fr; align-items: start; gap: 30px; }
    .sac-phone { position: sticky; top: 96px; }
}
@keyframes sac-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── the handset ──────────────────────────────────────────────────────── */
.sac-phone {
    width: 100%; max-width: 320px; margin: 0 auto;
    padding: 10px; border-radius: 38px; background: var(--sac-phone);
    box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 48px -24px rgba(13,27,42,.55), 0 2px 6px rgba(13,27,42,.2);
}
.sac-screen {
    position: relative; overflow: hidden; border-radius: 29px;
    background: var(--sac-screen); color: var(--sac-screen-ink);
    min-height: 420px; display: flex; flex-direction: column;
}
.sac-status {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 22px 4px; font: 600 12px/1 var(--rt-font-sans); color: var(--sac-screen-ink);
}
.sac-status::after { content: ""; }
.sac-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 999px; background: var(--sac-phone); }
.sac-status-icons { display: inline-flex; gap: 5px; align-items: center; }
.sac-status-icons svg { width: 15px; height: 11px; }

/* Narrow column (phones): a compact handset, so the question is not pushed a
   screen down. The full handset, with call buttons, only in two columns. */
@container sac (max-width: 679px) {
    .sac .sac-phone { max-width: 360px; padding: 7px; border-radius: 30px; }
    .sac .sac-screen { min-height: 0; border-radius: 24px; }
    .sac .sac-notch { width: 64px; height: 18px; top: 7px; }
    .sac .sac-call { flex-direction: row; text-align: left; gap: 12px; padding: 14px 16px 6px; align-items: center; }
    .sac .sac-call .sac-avatar { width: 44px; height: 44px; }
    .sac .sac-call .sac-avatar svg { width: 22px; height: 22px; }
    .sac .sac-call-kind { margin: 0; }
    .sac .sac-call-btns { display: none; }
    .sac .sac-dev-label { display: none; }
    .sac .sac-home { display: none; }
    .sac .sac-dev-fiction { padding-top: 4px; }
}
.sac-call-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* app header (text, chat, video) */
.sac-app {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-bottom: 1px solid rgba(127,140,155,.22);
}
.sac-app-back { width: 14px; height: 14px; color: var(--rt-link); flex: 0 0 auto; }
.sac-avatar {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sac-tile); color: var(--sac-screen-muted);
}
.sac-avatar svg { width: 18px; height: 18px; }
.sac-app-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sac-app-name strong { font: 600 13.5px/1.2 var(--rt-font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sac-app-name span { font: 500 11px/1.2 var(--rt-font-sans); color: var(--sac-screen-muted); }

/* incoming call */
.sac-call { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 14px; text-align: center; }
.sac-call .sac-avatar { width: 64px; height: 64px; position: relative; }
.sac-call .sac-avatar svg { width: 30px; height: 30px; }
.sac-call .sac-avatar::before, .sac-call .sac-avatar::after {
    content: ""; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--sac-ok); opacity: 0; animation: sac-ring 2.4s ease-out infinite;
}
.sac-call .sac-avatar::after { animation-delay: 1.2s; }
@keyframes sac-ring { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
.sac-call-kind { font: 500 11.5px/1 var(--rt-font-sans); color: var(--sac-screen-muted); letter-spacing: .04em; margin-top: 8px; }
.sac-call-meta { align-items: center; }
@container sac (max-width: 679px) { .sac-call-meta { align-items: flex-start; } }
.sac-call-from { font: 600 16px/1.25 var(--rt-font-sans); }
.sac-call-btns { display: flex; gap: 46px; margin-top: auto; padding: 14px 0 18px; justify-content: center; }
.sac-call-btns span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.sac-call-btns span:first-child { background: #D93A2F; }
.sac-call-btns span:last-child { background: #22A35A; }
.sac-call-btns svg { width: 20px; height: 20px; }

/* web page */
.sac-browser { margin: 8px 12px 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(127,140,155,.16); font: 500 11.5px/1.2 var(--rt-font-mono); color: var(--sac-screen-muted); }
.sac-browser svg { width: 12px; height: 12px; flex: 0 0 auto; }

/* video call */
.sac-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 10px 12px 2px; }
.sac-tile { aspect-ratio: 4 / 3; border-radius: 8px; background: var(--sac-tile); position: relative; overflow: hidden; }
.sac-tile::after { content: ""; position: absolute; left: 50%; top: 58%; width: 38%; aspect-ratio: 1; border-radius: 50% 50% 40% 40%; transform: translate(-50%, -30%); background: rgba(13,27,42,.14); }
.sac-tile:first-child { grid-column: span 3; aspect-ratio: 16 / 9; outline: 2px solid var(--sac-ok); }

/* transcript */
.sac-dev-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 6px; flex: 1 1 auto; }
.sac-dev-label { margin: 2px 0 0; font: 500 10.5px/1 var(--rt-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sac-screen-muted); text-align: center; }
.sac-bub {
    margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 16px;
    font: 400 13.5px/1.45 var(--rt-font-sans); color: var(--sac-screen-ink);
    background: var(--sac-bubble); box-shadow: 0 1px 1px rgba(13,27,42,.06);
    animation: sac-bub .35s var(--st-ease, ease) both;
}
.sac-bub-them { align-self: flex-start; border-bottom-left-radius: 5px; }
.sac-bub-you { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--sac-bubble-you); color: var(--sac-bubble-you-ink); }
.sac-bub:nth-child(2) { animation-delay: .08s; } .sac-bub:nth-child(3) { animation-delay: .16s; } .sac-bub:nth-child(4) { animation-delay: .24s; } .sac-bub:nth-child(5) { animation-delay: .32s; }
@keyframes sac-bub { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.sac-ch-call .sac-bub { max-width: 100%; align-self: stretch; background: rgba(127,140,155,.14); box-shadow: none; border-radius: 12px; font-style: italic; }
.sac-ch-list .sac-bub { max-width: 100%; align-self: stretch; border-radius: 10px; }
.sac-dev-fiction {
    margin: 0; padding: 8px 12px 12px; text-align: center;
    font: 500 10.5px/1 var(--rt-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sac-screen-muted);
}
.sac-home { width: 110px; height: 4px; border-radius: 4px; background: var(--sac-screen-ink); opacity: .35; margin: 0 auto 8px; }

/* ── question and answers ─────────────────────────────────────────────── */
.sac-qa { min-width: 0; display: flex; flex-direction: column; }
.sac-eyebrow { margin: 0 0 8px; font: var(--rt-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--rt-accent-text); }
.sac-title { margin: 0 0 6px; font: 600 clamp(22px, 3.6cqi, 30px)/1.15 var(--rt-font-serif); color: var(--rt-ink); letter-spacing: -.01em; }
.sac-title:focus { outline: none; }
.sac-prompt { margin: 0 0 16px; font: 500 15px/1.5 var(--rt-font-sans); color: var(--rt-ink-soft); }
.sac-choices { display: flex; flex-direction: column; gap: 10px; }
.sac-choice {
    position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 14px 16px; text-align: left; cursor: pointer;
    border: 1.5px solid var(--rt-hairline); border-radius: 14px; background: var(--rt-surface);
    font: 500 15px/1.4 var(--rt-font-sans); color: var(--rt-ink);
    box-shadow: 0 1px 2px rgba(13,27,42,.04);
    transition: transform .18s var(--st-ease, ease), border-color .18s, box-shadow .18s, background .18s;
    animation: sac-in .3s var(--st-ease, ease) both;
}
.sac-choice:nth-child(2) { animation-delay: .04s; } .sac-choice:nth-child(3) { animation-delay: .08s; } .sac-choice:nth-child(4) { animation-delay: .12s; } .sac-choice:nth-child(5) { animation-delay: .16s; } .sac-choice:nth-child(6) { animation-delay: .2s; }
.sac-choice:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--rt-accent); box-shadow: 0 10px 22px -14px rgba(232,98,42,.55); }
.sac-choice[aria-pressed="true"] { border-color: var(--rt-accent); background: var(--rt-accent-soft); }
.sac-choice[disabled] { cursor: default; }
.sac-letter {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    font: 700 13px/1 var(--rt-font-mono); color: var(--rt-ink-soft);
    background: var(--rt-bg-inset); border: 1px solid var(--rt-hairline); border-bottom-width: 2px;
    transition: background .18s, color .18s;
}
.sac-choice:hover:not([disabled]) .sac-letter, .sac-choice[aria-pressed="true"] .sac-letter { background: var(--rt-accent-fill); color: #fff; border-color: transparent; }
.sac-choice-text { flex: 1 1 auto; min-width: 0; }
.sac-choice-tag { flex: 0 0 auto; font: 600 11px/1 var(--rt-font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--rt-bg-inset); color: var(--rt-ink-soft); }
.sac-choice-right { border-color: var(--sac-ok); background: var(--sac-ok-soft); }
.sac-choice-right .sac-letter { background: var(--sac-ok); color: #fff; border-color: transparent; }
.sac-choice-wrong { border-color: var(--sac-bad); background: var(--sac-bad-soft); }
.sac-choice-wrong .sac-letter { background: var(--sac-bad); color: #fff; border-color: transparent; }
.sac-choices .sac-choice[disabled]:not(.sac-choice-right):not(.sac-choice-wrong) { opacity: .55; }

.sac-keys { display: none; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; font: 500 12px/1 var(--rt-font-sans); color: var(--rt-ink-muted); }
@media (hover: hover) and (pointer: fine) { .sac-keys { display: flex; } }

/* buttons */
.sac-check, .sac-next {
    align-self: flex-start; margin-top: 14px; display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--rt-accent-fill); color: #fff; font: 600 14.5px/1 var(--rt-font-sans);
    box-shadow: 0 8px 18px -10px rgba(194,79,20,.8);
    transition: transform .15s, background .15s, box-shadow .15s;
}
.sac-check:hover:not([disabled]), .sac-next:hover { background: var(--rt-accent-fill-hover); transform: translateY(-1px); }
.sac-check[disabled] { opacity: .45; cursor: default; box-shadow: none; }
.sac-next::after { content: "→"; font-family: var(--rt-font-mono); transition: transform .15s; }
.sac-next:hover::after { transform: translateX(3px); }
.sac-ghost { background: transparent; color: var(--rt-ink); border: 1.5px solid var(--rt-hairline); box-shadow: none; }
.sac-ghost:hover { background: var(--rt-surface); }
.sac-link { border: 0; background: none; padding: 0; color: var(--rt-link); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ── feedback ─────────────────────────────────────────────────────────── */
.sac-fb {
    --v: var(--sac-ok); --v-soft: var(--sac-ok-soft);
    margin-top: 18px; padding: 18px; border-radius: 16px;
    background: var(--rt-surface); border: 1.5px solid var(--v);
    box-shadow: 0 14px 30px -22px var(--v);
    animation: sac-pop .4s var(--st-ease, ease) both;
}
.sac-fb-partial { --v: var(--sac-mid); --v-soft: var(--sac-mid-soft); }
.sac-fb-wrong { --v: var(--sac-bad); --v-soft: var(--sac-bad-soft); }
@keyframes sac-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.sac-fb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sac-fb-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--v); color: #fff; animation: sac-stamp .45s cubic-bezier(.3,1.6,.5,1) both .05s; }
.sac-fb-icon svg { width: 18px; height: 18px; }
@keyframes sac-stamp { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sac-fb-verdict { margin: 0; font: 700 18px/1.2 var(--rt-font-sans); color: var(--v); }
.sac-fb-verdict:focus { outline: none; }
.sac-fb-why { margin: 0 0 14px; font: 400 15px/1.6 var(--rt-font-sans); color: var(--rt-ink-soft); }
.sac-fb-tells { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.sac-fb-label { font: 600 11px/1 var(--rt-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rt-ink-muted); margin-right: 4px; }
.sac-chip { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--v-soft, var(--rt-bg-inset)); color: var(--rt-ink); font: 500 13px/1.25 var(--rt-font-sans); }
.sac-chip-ok { background: var(--sac-ok-soft); }
.sac-fb-sources { border-top: 1px dashed var(--rt-hairline); padding-top: 10px; }
.sac-fb-sources summary { cursor: pointer; font: 600 13px/1.3 var(--rt-font-sans); color: var(--rt-ink-soft); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.sac-fb-sources summary::-webkit-details-marker { display: none; }
.sac-fb-sources summary::before { content: "▸"; font-size: 11px; transition: transform .2s; }
.sac-fb-sources[open] summary::before { transform: rotate(90deg); }
.sac-fb-src { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; }
.sac-fb-src a { color: var(--rt-link); font-weight: 600; }
.sac-src-name { font-weight: 600; color: var(--rt-ink); }
.sac-src-meta { color: var(--rt-ink-muted); }
.sac-fb-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── summary ──────────────────────────────────────────────────────────── */
.sac-sum { display: flex; flex-direction: column; gap: 22px; animation: sac-in .35s var(--st-ease, ease) both; }
.sac-sum-top { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.sac-ring {
    --sac-p: 0; flex: 0 0 auto; width: 132px; height: 132px; border-radius: 50%; position: relative;
    background: conic-gradient(var(--rt-accent) calc(var(--sac-p) * 1%), var(--rt-bg-inset) 0);
    display: grid; place-items: center;
}
.sac-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--rt-surface-2); }
.sac-ring-num { position: relative; font: 700 30px/1 var(--rt-font-mono); color: var(--rt-ink); }
.sac-sum-text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sac-sum-title { margin: 0; font: 600 clamp(21px, 3.4cqi, 28px)/1.2 var(--rt-font-serif); color: var(--rt-ink); }
.sac-sum-title:focus { outline: none; }
.sac-sum-score { margin: 0; font: 500 15px/1.5 var(--rt-font-sans); color: var(--rt-ink-soft); }
.sac-sum-tally { margin: 0; font: var(--rt-label); color: var(--rt-ink-muted); }
.sac-sum-left { margin: 0; font-size: 14px; color: var(--rt-ink-soft); }
.sac-sum-block { padding: 18px; border-radius: 16px; background: var(--rt-surface); border: 1px solid var(--rt-hairline); }
.sac-sum-h { margin: 0 0 12px; font: 600 16px/1.3 var(--rt-font-sans); color: var(--rt-ink); }
.sac-missed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sac-missed-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--sac-bad-soft); border-left: 3px solid var(--sac-bad); }
.sac-missed-label { font: 600 14px/1.35 var(--rt-font-sans); color: var(--rt-ink); }
.sac-missed-where { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--rt-ink-muted); }
.sac-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sac-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--rt-ink-soft); }
.sac-bars { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sac-bar-label { display: flex; justify-content: space-between; gap: 10px; font: 600 14px/1.35 var(--rt-font-sans); color: var(--rt-ink); margin-bottom: 6px; }
.sac-bar-count { font: 600 12px/1.3 var(--rt-font-mono); color: var(--rt-ink-muted); white-space: nowrap; }
.sac-bar-track { height: 8px; border-radius: 999px; background: var(--rt-bg-inset); overflow: hidden; }
.sac-bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--st-grad, var(--rt-accent)); transition: width .6s var(--st-ease, ease); }
.sac-bar-who { margin: 6px 0 0; font-size: 12.5px; color: var(--rt-ink-muted); }

/* ── foot ─────────────────────────────────────────────────────────────── */
.sac-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.sac-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--rt-ink-soft); cursor: pointer; }
.sac-remember input { width: 17px; height: 17px; accent-color: var(--rt-accent); }
.sac-reset { padding: 9px 14px; border-radius: 10px; border: 1.5px solid var(--rt-hairline); background: var(--rt-surface); color: var(--rt-ink); font: 600 13.5px/1 var(--rt-font-sans); cursor: pointer; }
.sac-reset:hover { border-color: var(--rt-ink-muted); }
.sac-foot-note { margin: -8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--rt-ink-muted); }

/* ── if something real is in front of you ─────────────────────────────── */
.sac-closing { margin-top: 6px; padding: clamp(16px, 3cqi, 24px); border-radius: 20px; background: var(--rt-ink); color: var(--rt-surface); }
.sac-closing-title { margin: 0 0 14px; font: 600 clamp(19px, 3cqi, 24px)/1.2 var(--rt-font-serif); color: var(--rt-surface); scroll-margin-top: 110px; }
.sac-closing-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@container sac (min-width: 620px) { .sac-closing-grid { grid-template-columns: repeat(3, 1fr); } }
.sac-closing-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.sac-closing-label { align-self: flex-start; font: 700 11px/1 var(--rt-font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--rt-accent-fill); color: #fff; }
.sac-closing-card p { margin: 0; font-size: 14px; line-height: 1.55; color: inherit; opacity: .92; }
.sac-hotline { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--rt-surface); color: var(--rt-ink); text-decoration: none; }
.sac-hotline-num { font: 700 24px/1 var(--rt-font-mono); color: var(--rt-accent-text); }
.sac-hotline-label { font: 600 12.5px/1.3 var(--rt-font-sans); }
.sac-closing-src { list-style: none; margin: auto 0 0; padding: 0; font-size: 12px; line-height: 1.45; opacity: .8; }
.sac-closing-src a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
    .sac *, .sac *::before, .sac *::after { animation: none !important; transition: none !important; }
}
