@charset "UTF-8";

:root {
  --bg: #f5f7fb;
  --surface: #fff;
  --ink: #1c2b42;
  --muted: #59697c;
  --line: #dee5ef;
  --primary: #2d63c8;
  --primary-hover: #214fa5;
  --primary-strong: #234b83;
  --on-primary-strong: #dae7fa;
  --soft: #edf3fc;
  --radius: 16px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4, h5 { line-height: 1.35; }
h1 { font-size: 34px; font-weight: 650; letter-spacing: -.8px; }
h2 { font-size: 22px; font-weight: 600; letter-spacing: -.25px; }
h3 { font-size: 18px; font-weight: 600; }
p { color: var(--muted); }
h1:focus, main:focus, .feedback:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 46px; padding: 11px 18px; border: 1px solid var(--primary);
  border-radius: 9px; color: #fff; background: var(--primary);
  font-size: 14px; line-height: 1.5; font-weight: 600;
}
.button:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button.secondary:hover:not(:disabled) { background: var(--soft); }
.button.full { width: 100%; margin-top: 20px; }
.text-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border: 0; padding: 4px 0; background: transparent;
  color: var(--primary); font-size: 14px; font-weight: 600;
}
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 12px; border: 2px solid var(--primary); background: #fff; }
.skip-link:focus { top: 12px; }

.brand { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -.9px; }
.brand-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--primary); flex-shrink: 0; }
.brand-icon svg { display: block; width: 100%; height: 100%; }
.brand-accent { color: var(--primary); font-weight: 500; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 1.1px; }

.site-header { width: calc(100% - 48px); margin: 0 auto; padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-language { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.site-language .icon { width: 17px; height: 17px; }
.brazil-flag { width: 25px; height: 18px; flex-shrink: 0; }
.workspace { display: flex; flex-direction: column; flex: 1; width: 100%; }
main { width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 24px 48px; flex: 1; }
body[data-page=home] main { max-width: 840px; }
body[data-page=sessao] main { max-width: 1240px; }
.home-intro { text-align: center; margin: 14px 0 32px; }
.home-intro h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.16; letter-spacing: -1.5px; font-weight: 700; }
.home-intro .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); font-size: 10px; letter-spacing: 1px; }
.status-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.home-description { margin-top: 18px; font-size: 16px; line-height: 1.7; }
.practice-setup { min-width: 0; padding: 0; border: 0; margin: 0 0 26px; }
.practice-setup legend { width: 100%; padding: 0; margin-bottom: 12px; text-align: center; font-size: 14px; font-weight: 600; }
.size-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; width: 100%; max-width: 460px; margin: 0 auto; }
.size-options label { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 72px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.size-options label:hover { border-color: var(--primary); }
.size-options label:has(input:checked) { border-color: var(--primary); background: var(--soft); box-shadow: inset 0 0 0 1px var(--primary); }
.size-options label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.size-options input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); flex-shrink: 0; }
.size-options input:focus-visible { outline: none; }
.size-options strong { display: block; font-size: 15px; line-height: 1.5; font-weight: 600; }
.size-options small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mode-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.mode-button { display: flex; flex-direction: column; align-items: stretch; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-align: left; min-width: 0; box-shadow: 0 3px 10px #1c2b4205; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.mode-button:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 24px #1c2b420e; }
.mode-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mode-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--primary); }
.mode-name { display: block; font-weight: 600; font-size: 16px; }
.mode-title { display: block; margin-top: 20px; font-size: 23px; line-height: 1.35; font-weight: 650; letter-spacing: -.5px; }
.mode-description { display: block; color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.mode-features { display: grid; gap: 9px; padding-top: 22px; padding-bottom: 24px; margin-top: auto; color: var(--muted); font-size: 13px; line-height: 1.5; }
.mode-features > span { display: flex; align-items: flex-start; gap: 8px; }
.mode-features .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--primary); }
.mode-start { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 12px 14px; border-radius: 8px; background: var(--soft); color: var(--primary); font-size: 14px; font-weight: 650; }
.mode-complete { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.mode-complete:hover { border-color: var(--primary-hover); background: var(--primary-strong); }
.mode-complete .mode-icon { background: #ffffff14; color: var(--on-primary-strong); }
.mode-complete .mode-description, .mode-complete .mode-features, .mode-complete .mode-features .icon { color: var(--on-primary-strong); }
.mode-complete .mode-start { color: var(--primary-strong); background: var(--soft); }
.mode-note { text-align: center; font-size: 13px; margin-top: 18px; }
.home-history { margin-top: 36px; scroll-margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #ffffff99; }
.home-history .section-heading { margin-bottom: 8px; }
.home-history h2 { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; }
.home-history h2 .icon { width: 18px; color: var(--primary); }
.home-history .text-link { font-size: 13px; }
.empty-history { display: flex; align-items: center; gap: 16px; padding: 22px 0 14px; font-size: 14px; }
.empty-history strong { font-size: 14px; font-weight: 600; }
.empty-history p { margin-top: 4px; font-size: 13px; }
.empty-history-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--soft); color: var(--muted); flex-shrink: 0; }
.history-note { margin-top: 12px; font-size: 12px; }
.resume-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.resume-banner strong { font-size: 15px; }
.resume-banner p { font-size: 13px; margin-top: 3px; }
.footer { width: calc(100% - 48px); max-width: 992px; margin: 0 auto; padding: 28px 0 20px; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer .footer-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; }
.footer .footer-link:hover { border-color: var(--line); background: var(--soft); }
.footer-link strong { font-size: 13px; font-weight: 600; }
.footer-icon { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; color: var(--primary); }
.linkedin-icon { color: var(--primary); }
.footer .footer-coffee { border-color: var(--line); background: var(--soft); }
.footer-coffee .footer-icon { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.footer-bottom p { font-size: 11px; line-height: 1.7; }
.storage-notice { padding: 12px 24px; border-block: 1px solid #e0cfae; background: #f9efda; color: #6c5429; font-size: 13px; }
.storage-notice[hidden] { display: none; }
.support-content { position: relative; }
.support-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 28px; }
#support { width: min(480px, calc(100% - 24px)); }
.support-content h2 { padding-right: 28px; }
.pix-image-link { display: block; margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.pix-image { display: block; width: 100%; height: auto; }
.pix-key { margin-top: 12px; font-size: 12px; color: var(--muted); }
.pix-key code { display: block; margin-top: 4px; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.support-content .button.full { margin-top: 12px; }
.support-content .copy-status { margin-top: 4px; font-size: 12px; min-height: 20px; }
.support-content .support-optional { font-size: 12px; text-align: center; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 650; letter-spacing: 1.5px; color: var(--primary); }
.page-subtitle { font-size: 15px; margin-top: 12px; max-width: 720px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading h2 { font-size: 19px; }
.section-meta, .section-note { font-size: 13px; color: var(--muted); }
.section-note { margin-top: 18px; line-height: 1.8; }
.demo-tag, .pill { display: inline-block; font-size: 12px; color: var(--muted); }
.history-list { border-top: 1px solid var(--line); }
.history-row { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.history-row:hover { background: var(--soft); }
.row-icon { color: var(--muted); }
.row-title { min-width: 0; }
.row-title strong { display: block; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.row-title > span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.row-title b { font-weight: 400; margin: 0 4px; }
.row-score { margin-left: auto; text-align: right; color: var(--primary); font-size: 23px; line-height: 1.4; font-weight: 600; flex-shrink: 0; }
.row-score small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.history-row > .icon { color: var(--muted); width: 16px; }
.history-active { gap: 12px; background: var(--soft); padding: 16px 12px; border-radius: 8px; margin-top: 12px; }
.row-title .history-status { display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary); margin: 0 0 3px; }
.resume-label { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 13px; color: var(--primary); flex-shrink: 0; }
.resume-label .icon { width: 16px; }
.history-empty-note { font-size: 12px; padding-top: 14px; }
.recent-section .row-icon, .recent-section .history-row > .icon { display: none; }
.recent-section .row-title strong { font-size: 13px; }
.empty-inline { padding: 28px 0; border-bottom: 1px solid var(--line); }
.empty-inline strong { font-size: 14px; font-weight: 500; }
.empty-inline p { font-size: 13px; margin-top: 8px; }

.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 0; margin-bottom: 16px; }
.back-link { font-size: 13px; color: var(--muted); }
.back-link .icon { transform: rotate(180deg); }
.quiz-tools { display: flex; align-items: center; gap: 20px; }
.restart-button { color: var(--muted); font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; }
.restart-button:hover { color: var(--primary); background: var(--soft); text-decoration: none; }
.quiz-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.quiz-heading h1 { font-size: 29px; }
.quiz-subtitle { font-size: 13px; margin-top: 6px; }
.session-clock { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; flex-shrink: 0; }
.session-clock > .icon { color: var(--primary); width: 22px; height: 22px; }
.clock-label { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; }
.session-clock strong { display: block; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.5px; color: var(--primary); font-weight: 650; }
.clock-reference { font-size: 11px; color: var(--muted); align-self: flex-end; margin-bottom: 3px; }
.session-clock[data-state=warning], .session-clock[data-state=expired] { border-color: #d5b781; background: #fff8e9; }
.session-clock[data-state=warning] strong, .session-clock[data-state=expired] strong, .session-clock[data-state=expired] > .icon { color: #82531e; }
.timer-notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding: 16px 20px; border: 1px solid #e5d0a6; border-radius: 10px; background: #fff8e9; }
.timer-notice[hidden] { display: none; }
.timer-notice .icon { color: #82531e; margin-top: 3px; }
.timer-notice p { color: #6d542f; font-size: 14px; }
.session-origin { font-size: 14px; margin-top: 8px; }
.quiz-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: start; }
.quiz-aside { position: sticky; top: 16px; }
.question-card, .review-card { --panel-inset: 24px; padding: var(--panel-inset); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.question-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.question-progress strong { font-size: 14px; font-weight: 600; color: var(--ink); }
.question-progress strong span { font-weight: 400; }
.question-progress progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 0; overflow: hidden; margin: 12px 0 20px; background: var(--line); accent-color: var(--primary); }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--primary); }
progress::-moz-progress-bar { background: var(--primary); }
.question-tags { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.domain-label { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.7; }
.flag-button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 14px; min-height: 44px; padding: 6px 8px; margin-top: -9px; flex-shrink: 0; }
.flag-button .icon { width: 16px; height: 16px; }
.flag-button.is-flagged { background: #ffdf9b; color: #684000; box-shadow: inset 0 0 0 1px #c38b29; font-weight: 600; }
.origin-note { font-size: 13px; margin: -5px 0 20px; padding-left: 12px; border-left: 2px solid var(--line); }
.question-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.question-fieldset legend { padding: 0; width: 100%; font-size: 19px; font-weight: 600; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.selection-hint { font-size: 14px; margin: 14px 0 20px; color: var(--muted); }
.answer-options { display: grid; gap: 10px; }
.answer-option { display: flex; align-items: flex-start; gap: 12px; min-height: 60px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.answer-option:hover:not(:has(input:disabled)) { background: var(--soft); border-color: var(--primary); }
.answer-option:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.answer-option input { width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.option-letter { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 3px; min-width: 14px; }
.option-text { font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.option-text small { display: block; font-size: 12px; margin-top: 6px; font-weight: 600; }
.answer-option > .icon { width: 18px; height: 18px; margin: 4px 0 0 auto; }
.selected-option { background: var(--soft); border-color: var(--primary); }
.correct-option { border-color: #7da78b; background: #f0f6ed; color: #245f3d; }
.wrong-option { border-color: #b98e79; background: #faf1eb; color: #895337; }
.muted-option { color: var(--muted); }
.answer-option:has(input:disabled) { cursor: default; }
.feedback { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 14px 0; font-size: 16px; }
.feedback.positive { color: #245f3d; }
.feedback.negative { color: #895337; }
.feedback strong { font-weight: 600; }
.selection-status { font-size: 14px; min-height: 24px; margin-top: 10px; color: #805a35; }
.question-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 20px; padding-bottom: 4px; border-top: 1px solid var(--line); }
.question-actions + .feedback { margin-top: 16px; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid var(--line); }
.question-actions + .selection-status { margin-top: 12px; }
.navigator-card { padding: 18px 12px; border: 1px solid var(--line); background: #ffffff99; border-radius: 12px; }
.navigator-card h2 { font-size: 16px; margin-bottom: 16px; }
.question-map { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.question-number { position: relative; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 14px; }
.question-number.answered { color: var(--primary); background: var(--soft); border-color: var(--line); }
.question-number[aria-current] { outline: 2px solid var(--primary); outline-offset: 0; color: var(--primary); font-weight: 700; }
.question-number.flagged { background: #ffdf9b; border: 2px solid #b57a18; color: #654005; font-weight: 700; }
.question-number .map-flag, .question-number .map-check { position: absolute; width: 12px; height: 12px; top: 2px; right: 2px; stroke-width: 2.2; }
.question-number .map-flag { fill: #b57a1833; }
.question-number[aria-current] { box-shadow: inset 0 0 0 2px #fff; }
.map-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-top: 16px; }
.map-key > span { display: flex; align-items: center; gap: 5px; }
.map-key .icon { width: 13px; height: 13px; color: var(--primary); }
.map-key .key-flag, .map-key .key-flag .icon { color: #82531e; }
.map-key .key-current::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--primary); border-radius: 3px; }
.local-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; margin-top: 12px; padding-left: 16px; }
.local-note .icon { width: 15px; height: 15px; margin-top: 3px; }

.explanation-panel { margin: 0 calc(-1 * var(--panel-inset)) 0; padding: 24px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.explanation-panel > h3 { font-size: 21px; font-weight: 650; margin-bottom: 20px; }
.explanation-panel p, .explanation-panel li, .explanation-panel h4, .explanation-panel h5 { font-size: 16px; line-height: 1.7; color: var(--ink); }
.explanation-key { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.explanation-label { font-weight: 500; color: var(--muted) !important; margin-bottom: 8px; }
.explanation-answers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.explanation-answers li { display: flex; align-items: flex-start; gap: 12px; }
.explanation-answers strong { font-weight: 600; overflow-wrap: anywhere; }
.answer-key-letter { font-size: 13px; font-weight: 650; line-height: 27px; color: #22654c; min-width: 14px; }
.explanation-prose p, .explanation-notes p { white-space: pre-wrap; overflow-wrap: anywhere; }
.explanation-prose p + p, .explanation-notes p + p { margin-top: 14px; }
.explanation-prose strong, .explanation-notes strong { font-weight: 650; }
.explanation-notes, .explanation-sources { padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.explanation-notes h4, .explanation-sources h4 { font-weight: 600; margin-bottom: 12px; }
.explanation-notes section + section { margin-top: 20px; }
.explanation-notes h5 { margin-bottom: 8px; font-weight: 600; overflow-wrap: anywhere; }
.explanation-sources ul { list-style: none; margin: 0; padding: 0; }
.explanation-sources a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 0; font-size: 16px; line-height: 1.7; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.explanation-sources a span { flex-shrink: 0; }

.result-card { display: flex; align-items: center; gap: 40px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.score-value { flex-shrink: 0; min-width: 150px; padding-right: 32px; border-right: 1px solid var(--line); }
.score-value strong { display: block; font-size: 68px; line-height: 1.25; font-weight: 600; color: var(--primary); letter-spacing: -2px; }
.score-value strong span { font-size: 32px; }
.score-value small { display: block; font-size: 14px; color: var(--muted); }
.result-copy { min-width: 0; }
.result-copy h2 { font-size: 24px; margin: 10px 0; }
.result-copy p { font-size: 15px; }
.result-details { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 20px 0; }
.result-details > span { display: flex; gap: 7px; align-items: center; }
.result-details .icon { width: 17px; height: 17px; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.score-note { font-size: 13px; line-height: 1.8; margin: 20px 0; max-width: 760px; }
.review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-group { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.filter-group button { min-height: 44px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); padding: 8px 14px; font-size: 14px; }
.filter-group button[aria-pressed=true] { color: var(--primary); background: var(--soft); font-weight: 600; }
.review-list { display: grid; gap: 32px; }
.review-card { padding-bottom: 0; overflow: clip; }
.review-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.review-status { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: 13px; }
.review-status .icon { width: 17px; height: 17px; }
.review-status.right { color: #245f3d; }
.review-status.wrong { color: #895337; }
.review-card h2 { font-size: 19px; font-weight: 600; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-selection { margin: 22px 0 28px; }
.review-selection dt { font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.review-selection dd { margin: 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card .explanation-panel { border-bottom: 0; }
.about-card { max-width: 992px; }
.about-card h2 { font-size: 20px; margin: 0 0 12px; }
.about-card p { font-size: 15px; line-height: 1.8; }
.about-lead { display: flex; align-items: center; gap: 32px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.about-number { font-size: 76px; font-weight: 650; letter-spacing: -3px; line-height: 1; color: var(--primary); }
.about-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin: 32px 0; }
.about-sections h2 { font-size: 18px; margin: 14px 0 10px; }
.about-sections p { font-size: 14px; }
.about-section-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--primary); background: var(--soft); }
.about-author { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.about-author h2 { margin-bottom: 6px; }
.about-author .button { flex-shrink: 0; }
.about-note, .demo-note { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 12px; }
.about-note p { font-size: 14px; }
.about-note .icon { margin-top: 3px; }
.demo-note { font-size: 14px; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; }
.privacy-note p { font-size: 13px; }
.privacy-note .icon { width: 17px; height: 17px; margin-top: 3px; }
.danger-text { color: #8b4838 !important; }
.empty-state { padding: 48px 0; }
.empty-state h2 { font-size: 22px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; margin-bottom: 22px; max-width: 580px; }
.loading { min-height: 40vh; display: flex; align-items: center; justify-content: center; gap: 16px; flex-direction: column; }
.loader { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
dialog { width: calc(100% - 32px); max-width: 460px; padding: 0; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 64px #1c2b4222; }
dialog::backdrop { background: #1c2b4277; }
.dialog-content { padding: 28px; }
.dialog-icon { display: none; }
.dialog-content h2 { font-size: 23px; }
.dialog-content p { font-size: 15px; margin-top: 14px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; }


@media (max-width: 960px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-aside { position: static; }
  .navigator-card { padding: 16px 12px; }
  .question-map { grid-template-columns: repeat(auto-fit,minmax(44px,1fr)); }
  .local-note { padding-left: 0; }
  .about-sections { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .site-header { width: calc(100% - 32px); padding: 18px 0; }
  .brand { font-size: 21px; }
  .brand small { font-size: 8px; letter-spacing: .7px; }
  .brand-icon { width: 40px; height: 40px; }
  .site-language { font-size: 11px; gap: 5px; }
  main { padding: 20px 16px 32px; }
  h1 { font-size: 28px; letter-spacing: -.5px; }
  .home-intro h1 { font-size: 34px; letter-spacing: -1px; }
  .home-intro { margin: 8px 0 26px; }
  .home-intro .eyebrow { font-size: 9px; letter-spacing: .5px; padding: 4px 8px; }
  .home-description { font-size: 14px; margin-top: 14px; }
  .home-description br { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .practice-setup { margin-bottom: 22px; }
  .size-options label { gap: 9px; padding: 12px; }
  .size-options input { width: 17px; height: 17px; }
  .size-options strong { font-size: 14px; }
  .mode-options { grid-template-columns: 1fr; gap: 16px; }
  .mode-button { padding: 22px; border-radius: 14px; }
  .mode-name { font-size: 15px; }
  .mode-icon { width: 34px; height: 34px; border-radius: 9px; }
  .mode-icon .icon { width: 19px; height: 19px; }
  .mode-title { margin-top: 16px; font-size: 22px; }
  .mode-description { margin-top: 10px; }
  .mode-features { padding-top: 18px; padding-bottom: 20px; }
  .mode-note { font-size: 12px; }
  .home-history { margin-top: 28px; padding: 18px; }
  .home-history h2 { font-size: 18px; }
  .empty-history { font-size: 13px; }
  .empty-history-icon { display: none; }
  .resume-banner { padding: 16px; gap: 14px; flex-wrap: wrap; }
  .resume-banner .button { flex-shrink: 0; }
  .history-row { gap: 10px; padding: 18px 0; }
  .history-row > .row-icon, .history-row > .icon { display: none; }
  .row-title strong { font-size: 14px; }
  .row-title > span { font-size: 11px; }
  .row-score { font-size: 22px; }
  .section-heading { gap: 12px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .page-subtitle { font-size: 14px; }
  .quiz-heading { margin-bottom: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .quiz-heading h1 { font-size: 26px; }
  .quiz-subtitle { font-size: 12px; }
  .session-clock { padding: 12px 16px; gap: 12px; }
  .session-clock > div { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
  .session-clock strong { font-size: 28px; }
  .clock-reference { align-self: center; margin: 0; }
  .timer-notice { padding: 14px 16px; }
  .quiz-top { gap: 8px; }
  .quiz-tools { gap: 8px; }
  .quiz-top .pill { font-size: 11px; }
  .question-card, .review-card { --panel-inset: 18px; }
  .question-progress > div { font-size: 12px; }
  .question-progress strong { font-size: 13px; }
  .question-tags { flex-wrap: wrap; gap: 8px; }
  .question-tags .domain-label { flex: 1; min-width: 130px; }
  .flag-button { font-size: 13px; }
  .question-fieldset legend, .review-card h2 { font-size: 18px; line-height: 1.65; }
  .selection-hint { font-size: 13px; }
  .answer-option { gap: 9px; padding: 14px 11px; }
  .answer-option input { width: 17px; height: 17px; }
  .option-letter { min-width: 11px; font-size: 12px; }
  .answer-option > .icon { width: 15px; height: 15px; }
  .question-actions { gap: 10px; }
  .question-actions .button { padding: 10px 12px; font-size: 14px; }
  .question-actions .button .icon { display: none; }
  .explanation-panel { padding: 24px 18px; }
  .explanation-panel > h3 { font-size: 20px; }
  .result-card { flex-direction: column; align-items: flex-start; gap: 24px; padding: 24px; }
  .score-value { border-right: 0; padding-right: 0; }
  .score-value strong { font-size: 64px; }
  .result-copy h2 { font-size: 22px; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .result-actions .button { width: 100%; }
  .result-details { font-size: 12px; gap: 16px; }
  .review-toolbar { gap: 12px; }
  .filter-group { width: 100%; }
  .filter-group button { flex: 1; padding: 8px 10px; font-size: 13px; }
  .review-card-top { flex-wrap: wrap; gap: 12px; }
  .review-status { font-size: 13px; }
  .footer { width: calc(100% - 32px); padding: 16px 0; }
  .footer-links { gap: 4px; }
  .footer .footer-link { padding: 8px; gap: 6px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 2px; }
  .footer-bottom p { font-size: 10px; }
  .about-lead { gap: 20px; padding: 24px; flex-direction: column; align-items: flex-start; }
  .about-number { font-size: 64px; }
  .about-author { flex-direction: column; align-items: flex-start; }
  .storage-notice { padding: 12px 16px; }
  .dialog-content { padding: 24px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}
@media (max-width: 360px) {
  .mode-button { padding: 20px; }
  .home-intro h1 { font-size: 30px; }
  .brand { font-size: 19px; }
  .brand small { font-size: 7px; }
  .site-language .icon { display: none; }
  .quiz-tools .pill { display: none; }
  .resume-label { font-size: 12px; }
  .clock-reference { display: none; }
}
.cloud-mascot {
  --cloud-size: 104px;
  position: fixed; z-index: 1; left: 0; bottom: max(8px, env(safe-area-inset-bottom));
  width: var(--cloud-size); max-width: calc(100% - 32px); pointer-events: none; user-select: none;
}
.cloud-mascot[hidden], body:not([data-page=home]) .cloud-mascot { display: none; }
.cloud-mascot * { pointer-events: none; }
.cloud-mascot svg { display: block; width: 100%; height: auto; }
.cloud-mascot:not([hidden]) { animation: cloud-visit var(--cloud-duration) linear both; }
.cloud-mascot:not([hidden]) .cloud-mascot-body { animation: cloud-bob .64s ease-in-out infinite alternate; }
.cloud-mascot-leg { transform-box: fill-box; transform-origin: top center; }
.cloud-mascot:not([hidden]) .cloud-mascot-leg { animation: cloud-step .64s ease-in-out infinite alternate; }
.cloud-mascot:not([hidden]) .cloud-mascot-leg-back { animation-delay: -.64s; }
.cloud-mascot-eyes { transform-box: fill-box; transform-origin: center; }
.cloud-mascot:not([hidden]) .cloud-mascot-eyes { animation: cloud-blink 2.8s linear infinite; }
@keyframes cloud-visit {
  from { transform: translateX(var(--cloud-from)); opacity: 0; }
  12%, 85% { opacity: 1; }
  to { transform: translateX(var(--cloud-to)); opacity: 0; }
}
@keyframes cloud-bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes cloud-step { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes cloud-blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.12); } }
@media (max-width: 600px) {
  .cloud-mascot { --cloud-size: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud-mascot { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
