@charset "UTF-8";

/* ============================================================
   CertPilot - independent Salesforce certification practice tool
   Vanilla CSS. No framework, no build step, no CDN.

   Note: non-ASCII characters in this file are written as CSS
   escapes (e.g. \203A) so rendering does not depend on the server
   sending a charset for text/css.
   ============================================================ */

:root {
  --navy:        #032d60;
  --navy-dark:   #021b3c;
  --blue:        #0176d3;
  --blue-dark:   #014486;
  --blue-light:  #eaf5fe;

  --ink:         #181818;
  --ink-soft:    #444444;
  --ink-muted:   #5c5c5c;

  --page:        #f3f3f3;
  --surface:     #ffffff;
  --line:        #d8dde6;
  --line-strong: #aeb7c4;

  --green:       #2e844a;
  --green-bg:    #eef6f0;
  --red:         #b60554;
  --red-bg:      #fdf2f5;
  --amber:       #a86403;
  --amber-bg:    #fdf5e6;

  --radius:   .5rem;
  --radius-lg: .75rem;
  --shadow:   0 1px 2px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
  --focus:    #0b5cab;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Salesforce Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: #eceff4;
  padding: .1em .35em;
  border-radius: .25rem;
}

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.is-hidden { display: none !important; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main { outline: none; padding-bottom: 3rem; }

.screen { padding-top: 1.5rem; }

/* ---------- header / footer ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--blue);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .75rem; }

.brand-mark {
  display: block;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  padding: .15rem;
}

.brand-name { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.brand-sub  { font-size: .8rem; color: #c9dcf3; line-height: 1.2; }

.site-footer {
  background: var(--navy-dark);
  color: #c9dcf3;
  padding: 1.25rem 0;
  font-size: .8rem;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.card + .card { margin-top: 1.25rem; }

.card-error { border-color: var(--red); border-top: 4px solid var(--red); }

/* ---------- start screen hero ---------- */
.start-hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.start-logo {
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- typography ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: .35rem;
}

.h1 { font-size: 1.65rem; line-height: 1.25; font-weight: 700; color: var(--navy); }
.h2 { font-size: 1.2rem;  font-weight: 700; color: var(--navy); margin-top: 1.75rem; margin-bottom: .6rem; }
.h3 { font-size: 1rem;    font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.h4 { font-size: .9rem;   font-weight: 700; color: var(--navy); margin-bottom: .4rem; }

.muted { color: var(--ink-muted); }

.bullets { margin-top: .5rem; }
.bullets li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: .5rem;
  color: var(--ink-soft);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: .4rem; height: .4rem;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- fact list ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}

.facts > div {
  background: var(--blue-light);
  border: 1px solid #c7e2f7;
  border-radius: var(--radius);
  padding: .75rem .9rem;
}

.facts dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  color: var(--blue-dark);
}
.facts dd { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.facts dd small { display: block; font-size: .78rem; font-weight: 400; color: var(--ink-muted); }

/* ---------- notices ---------- */
.notice {
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
  border-left: 4px solid;
}
.notice p + p, .notice p + .btn-row { margin-top: .6rem; }
.notice-info { background: var(--blue-light); border-color: var(--blue); }
.notice-warn { background: var(--amber-bg); border-color: var(--amber); }

.error-detail {
  margin-top: .75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .85rem;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .75rem;
  overflow-wrap: anywhere;
}

/* ---------- buttons ---------- */
.btn {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .5rem 1.15rem;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.btn:disabled { cursor: not-allowed; opacity: .55; }

.btn-primary   { background: var(--blue);  color: #fff; }
.btn-primary:not(:disabled):hover  { background: var(--blue-dark); }

.btn-navy      { background: var(--navy);  color: #fff; }
.btn-navy:not(:disabled):hover     { background: var(--navy-dark); }

.btn-secondary { background: #fff; color: var(--blue-dark); border-color: var(--line-strong); }
.btn-secondary:not(:disabled):hover { background: var(--blue-light); }

.btn-outline   { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:not(:disabled):hover  { background: var(--blue-light); }

.btn-ghost     { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-lg { padding: .7rem 1.75rem; font-size: 1.05rem; }

.btn-link {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 1rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
}
.btn-link:hover { color: var(--navy); text-decoration: underline; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- deck picker (home screen) ---------- */
.home-intro { margin-top: .75rem; }

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--line);
}
.role-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: -2px;
  padding: .7rem 1.1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.role-tab:hover { color: var(--navy); background: var(--blue-light); }
.role-tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--blue); }
.role-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.role-tab-count {
  padding: .05rem .5rem;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: .75rem;
  font-weight: 700;
}

.role-panel-title { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
#role-panel:focus { outline: none; }

.deck-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}

.deck-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.deck-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }

.deck-card-body { min-width: 0; }

.deck-card-kind { margin-bottom: .35rem; font-size: .8rem; color: var(--ink-muted); }

.deck-card-title { font-size: 1.05rem; line-height: 1.35; font-weight: 700; color: var(--navy); }

.deck-card-meta { margin-top: .2rem; font-size: .8rem; color: var(--ink-muted); }

.deck-card-stats {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
.deck-card-stats strong { color: var(--navy); }

.deck-card-actions { margin-top: auto; }
.deck-card-actions .btn { width: 100%; }

@media (max-width: 64rem) { .deck-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .deck-list { grid-template-columns: 1fr; } }

.deck-card-error { border-color: var(--red); background: var(--red-bg); }
.deck-card-error .deck-card-title { color: var(--red); }
.deck-card-error-msg { margin-top: .5rem; font-size: .85rem; color: var(--red); }

/* ---------- mode selector ---------- */
.mode-set { border: 0; padding: 0; margin: 0; display: grid; gap: .75rem; }

.mode-option {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  cursor: pointer;
  background: #fff;
}
.mode-option:hover { border-color: var(--blue); background: var(--blue-light); }
.mode-option:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(1,118,211,.25); }
.mode-option input { margin-top: .3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }

.mode-title { display: block; font-weight: 700; color: var(--navy); }
.mode-desc  { display: block; font-size: .9rem; color: var(--ink-soft); }

#topic-select {
  display: block;
  margin-top: .6rem;
  font: inherit;
  font-size: .9rem;
  max-width: 22rem;
  width: 100%;
  padding: .45rem .6rem;
  border-radius: .375rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
#topic-select:disabled { background: #f2f3f5; color: var(--ink-muted); cursor: not-allowed; }

.topic-count-hint {
  display: block;
  margin-top: .4rem;
  font-size: .82rem;
  color: var(--ink-muted);
}

/* ---------- breadcrumb ---------- */
.crumbs {
  background: #eef1f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .55rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "\203A"; margin-right: .4rem; color: var(--ink-muted); }
.crumbs [aria-current="page"] { color: var(--blue-dark); }

/* ---------- progress navigator ---------- */
.progress-panel { margin-top: .9rem; }

.grid-scroll {
  background: #eef1f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  max-height: 7.5rem;
  overflow-y: auto;
}

.qgrid { display: flex; flex-wrap: wrap; gap: .25rem; }

.qgrid button {
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  min-width: 2rem;
  height: 1.85rem;
  padding: 0 .3rem;
  border-radius: .25rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}
.qgrid button:hover { border-color: var(--blue); color: var(--blue-dark); }

.qgrid button[data-state="answered"]  { background: var(--navy);  border-color: var(--navy);  color: #fff; }
.qgrid button[data-state="correct"]   { background: var(--green); border-color: var(--green); color: #fff; }
.qgrid button[data-state="incorrect"] { background: var(--red);   border-color: var(--red);   color: #fff; }
.qgrid button[data-flagged="true"]    { box-shadow: inset 0 -4px 0 var(--amber); }

.qgrid button[aria-current="true"] {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}

/* non-colour indicator: a glyph appended after the number */
.qgrid .gstate { font-size: .7rem; margin-left: .12rem; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.1rem;
  margin-top: .45rem;
  font-size: .76rem;
  color: var(--ink-soft);
}
.legend li { display: flex; align-items: center; gap: .3rem; }

.dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }
.dot-answered  { background: var(--navy); }
.dot-flag      { background: var(--amber); }
.dot-correct   { background: var(--green); }
.dot-incorrect { background: var(--red); }

/* ---------- toolbar ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .5rem;
  margin-top: .9rem;
}
.toolbar .btn { font-size: .85rem; padding: .4rem 1rem; }
.toolbar-right { margin-left: auto; text-align: right; }
.toolbar-hint { font-size: .72rem; color: var(--ink-muted); margin-top: .15rem; }

/* ---------- question ---------- */
.qcount {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--ink-muted);
}

.qrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-top: 1.5rem;
}
.qrow .qcount { margin-top: 0; }

.exam-timer { margin-left: auto; text-align: right; }
.exam-timer-label { display: block; font-size: .72rem; color: var(--ink-muted); }
.exam-timer-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  background: var(--blue-light);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .15rem .7rem;
}
.exam-timer.is-warning .exam-timer-value  { color: var(--amber); background: var(--amber-bg); border-color: var(--amber); }
.exam-timer.is-critical .exam-timer-value { color: var(--red);   background: var(--red-bg);   border-color: var(--red); }

.question-card { margin-top: .5rem; }

.qtitle    { font-size: 1rem; font-weight: 700; color: var(--navy); }
.qcategory { font-size: .95rem; font-weight: 700; color: var(--navy); margin-top: .15rem; }

.qmeta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}
.qmeta span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
  border-radius: 999px;
  padding: .15rem .6rem;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  background: #f6f7f9;
}
.qmeta .lvl-easy   { border-color: #8fbf9f; color: #1f5c33; background: var(--green-bg); }
.qmeta .lvl-medium { border-color: #d8b673; color: #77490a; background: var(--amber-bg); }
.qmeta .lvl-hard   { border-color: #d79ab4; color: #8c0440; background: var(--red-bg); }

.qhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.qhead-main { min-width: 0; }
.btn-report { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; font-size: .85rem; }

.qscenario { margin-top: 1.1rem; color: var(--ink); }
.qprompt   { margin-top: .75rem; color: var(--ink); font-weight: 600; }
.qinstruction { margin-top: .35rem; font-weight: 700; color: var(--navy); }

/* ---------- answers ---------- */
.answers { margin-top: 1.1rem; display: grid; gap: .5rem; }

.answer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.answer label {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: start;
  gap: .75rem;
  padding: .9rem 1rem;
  cursor: pointer;
}

.answer input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--blue); }

.answer .letter { font-weight: 700; color: var(--navy); min-width: 1.2rem; }
.answer .atext  { color: var(--ink); }

.answer .verdict-tag {
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.answer:hover:not(.is-locked) { border-color: var(--blue); background: var(--blue-light); }
.answer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(1,118,211,.25); }

.answer.is-locked label { cursor: default; }

/* graded states - always paired with a text tag, never colour alone */
.answer.state-correct           { border-color: var(--green); background: var(--green-bg); border-width: 2px; }
.answer.state-correct .verdict-tag   { color: #1f5c33; }

.answer.state-missed            { border-color: var(--green); background: #fff; border-width: 2px; border-style: dashed; }
.answer.state-missed .verdict-tag    { color: #1f5c33; }

.answer.state-incorrect         { border-color: var(--red); background: var(--red-bg); border-width: 2px; }
.answer.state-incorrect .verdict-tag { color: var(--red); }

.select-msg {
  margin-top: .6rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--amber);
  min-height: 1.3rem;
}

/* ---------- feedback ---------- */
.feedback {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f6f8fa;
  padding: 1.1rem 1.25rem;
  outline: none;
}
.feedback.is-correct   { border-left-color: var(--green); }
.feedback.is-incorrect { border-left-color: var(--red); }

.feedback-heading { font-size: 1rem; font-weight: 800; }
.feedback.is-correct   .feedback-heading { color: #1f5c33; }
.feedback.is-incorrect .feedback-heading { color: var(--red); }

.feedback-summary { margin-top: .5rem; font-style: italic; color: var(--ink-soft); }

.feedback-options { margin-top: .9rem; display: grid; gap: .45rem; }
.feedback-options li {
  font-size: .9rem;
  color: var(--ink-soft);
  padding-left: 1.1rem;
  position: relative;
}
.feedback-options li::before {
  position: absolute;
  left: 0; top: 0;
  font-weight: 800;
}
.feedback-options li.opt-correct::before   { content: "\2713"; color: #1f5c33; }
.feedback-options li.opt-incorrect::before { content: "\2717"; color: var(--red); }
.feedback-options .opt-letter { font-weight: 700; color: var(--navy); }

.feedback-objectives { margin-top: 1rem; font-size: .88rem; }
.feedback-objectives dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: .5rem;
}
.feedback-objectives dd { color: var(--ink-soft); margin-left: 0; }

.refs { margin-top: 1rem; }
.refs ul { display: grid; gap: .3rem; }
.refs a { color: var(--blue-dark); font-weight: 600; font-size: .88rem; }
.refs a:hover { color: var(--navy); }
.refs .ref-date { color: var(--ink-muted); font-weight: 400; font-size: .8rem; }

/* ---------- question nav ---------- */
.qnav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.qnav #btn-next { margin-left: auto; }

/* ---------- results ---------- */
.verdict {
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--line-strong);
  background: #f6f8fa;
  text-align: center;
}
.verdict.is-pass { border-color: var(--green); background: var(--green-bg); }
.verdict.is-fail { border-color: var(--red);   background: var(--red-bg); }

.verdict-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .3rem 1.25rem;
  border: 2px solid currentColor;
}
.verdict.is-pass .verdict-badge { color: #1f5c33; }
.verdict.is-fail .verdict-badge { color: var(--red); }

.verdict-score  { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin-top: .6rem; }
.verdict-detail { color: var(--ink-soft); margin-top: .25rem; }

.time-used {
  margin-top: .75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: .9rem 1.25rem;
  background: var(--surface);
  text-align: center;
}
.time-used-label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.time-used-value { font-size: 1.6rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.time-used-value small { font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.time-used-bar { display: block; height: .5rem; background: #e5e9ef; border-radius: 999px; overflow: hidden; margin: .6rem auto 0; max-width: 28rem; }
.time-used-bar i { display: block; height: 100%; background: var(--blue); }
.time-used.is-expired { border-color: var(--red); background: var(--red-bg); }
.time-used.is-expired .time-used-bar i { background: var(--red); }
.time-used-note { margin-top: .5rem; font-size: .85rem; color: var(--ink-soft); }

.table-scroll { overflow-x: auto; }

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 34rem;
}
.result-table th, .result-table td {
  text-align: left;
  padding: .6rem .7rem;
  border-bottom: 1px solid var(--line);
}
.result-table thead th {
  background: #eef1f6;
  color: var(--navy);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.result-table tbody tr:nth-child(even) { background: #fafbfc; }
.result-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.score-bar {
  display: block;
  height: .4rem;
  border-radius: 999px;
  background: #dfe4ea;
  margin-top: .25rem;
  overflow: hidden;
}
.score-bar i { display: block; height: 100%; background: var(--blue); }

/* ---------- disclaimer ---------- */
.disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--ink-muted);
}

.disclaimer-slim {
  margin-top: 1.25rem;
  font-size: .78rem;
  color: var(--ink-muted);
}

/* ---------- report dialog ---------- */
.dialog {
  width: calc(100% - 2rem);
  max-width: 34rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  color: var(--ink);
}
.dialog::backdrop { background: rgba(3,45,96,.45); }
.dialog-body { padding: 1.5rem; }
.dialog-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.dialog-sub   { margin-top: .4rem; font-size: .9rem; color: var(--ink-soft); }
.dialog-ctx {
  margin-top: .9rem;
  padding: .5rem .75rem;
  font-size: .82rem;
  color: var(--navy);
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: .25rem;
  overflow-wrap: anywhere;
}
.dialog-label { display: block; margin-top: .9rem; font-size: .9rem; font-weight: 700; color: var(--navy); }
.dialog-label .req { color: var(--red); }
.dialog-text {
  display: block;
  width: 100%;
  min-height: 7rem;
  margin-top: .3rem;
  padding: .6rem;
  font: inherit;
  font-size: .95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  resize: vertical;
}
.dialog-text:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.dialog-hint { display: flex; justify-content: space-between; margin-top: .25rem; font-size: .78rem; color: var(--ink-muted); }
.dialog-privacy { margin-top: .6rem; font-size: .78rem; color: var(--ink-muted); }
.dialog-status { min-height: 1.2rem; margin-top: .6rem; font-size: .85rem; font-weight: 600; color: var(--green); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; margin-top: 1.1rem; }

/* ---------- responsive ---------- */
@media (max-width: 40rem) {
  .card { padding: 1.15rem; }
  .h1 { font-size: 1.35rem; }
  .start-logo { width: 3.25rem; height: 3.25rem; }
  .answer label { grid-template-columns: auto auto 1fr; row-gap: .35rem; }
  .answer .verdict-tag { grid-column: 1 / -1; }
  .toolbar-right { margin-left: 0; text-align: left; width: 100%; }
  .qnav #btn-next { margin-left: 0; }
  .qnav .btn { flex: 1 1 8rem; }
  .dialog-body { padding: 1.15rem; }
  .dialog-actions .btn { flex: 1 1 8rem; }
  .verdict-score { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .toolbar, .qnav, .progress-panel, .skip-link, .btn-report, .dialog { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #999; }
}
