@font-face {
  font-family: Bricolage Grotesque;
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --plum: #22192b;
  --paper: #fff9e9;
  --hero-yellow: #ffdc61;
  --violet: #6038d9;
  --mango: #ffd05b;
  --lilac: #e8ddff;
  --mint: #98e4cf;
  --peach: #ffc3ac;
  --navy: var(--plum);
  --cream: var(--paper);
  --blue: var(--lilac);
  --desk: light-dark(var(--paper), #251c2c);
  --surface: light-dark(#fffdf6, #33273d);
  --workpaper: light-dark(#fffefb, #392d44);
  --ink: light-dark(var(--plum), #fff5df);
  --secondary: light-dark(#49364f, #f3defc);
  --line: light-dark(#5f4b65, #dcbee9);
  --field-line: var(--line);
  --rule: var(--line);
  --accent: light-dark(#522cc1, #e1ccff);
  --wash: light-dark(#f0e5ff, #443052);
  --active: light-dark(var(--lilac), #544067);
  --action: light-dark(var(--violet), var(--lilac));
  --action-text: light-dark(white, var(--plum));
  --action-hover: light-dark(#4e26c2, #f3eaff);
  --attention: light-dark(#8a2c39, #ffbfbb);
  --attention-wash: light-dark(#ffe1d9, #572930);
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: Bricolage Grotesque, var(--sans);
  --radius: 12px;
  --panel-radius: 18px;
  --page-gutter: clamp(1.125rem, 5vw, 4.25rem);
  --site-width: 77rem;
  --sidebar-width: 14rem;
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--desk);
}

:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="system"] { color-scheme: light dark; }
:root[data-text-size="large"] { font-size: 18px; }
.portal-page:where(html[data-paper="plain"] body) { --desk: light-dark(#fff, #211b24); }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--desk); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
a { color: inherit; text-underline-offset: .21em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong, b { font-weight: 500; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 5.25vw, 4.75rem); line-height: 1.07; letter-spacing: -.033em; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.75rem); line-height: 1.16; letter-spacing: -.022em; }
h3 { font-size: 1.125rem; line-height: 1.35; }
img, audio { max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: min(69rem, 100%); }
.narrow { width: min(51rem, 100%); margin-inline: auto; }
.muted { color: var(--secondary); }

.masthead {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  width: min(100% - var(--page-gutter) * 2, var(--site-width));
  min-height: 4.75rem;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.wordmark {
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}

.plain {
  min-height: 44px;
  padding: .5rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: .9rem;
}

.plain:hover { text-decoration: underline; text-underline-offset: .2em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--action);
  color: var(--action-text);
  font-size: .9375rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color .15s, border-color .15s;
}

.button:hover:not(:disabled) { background: var(--action-hover); }
.button.secondary { border-color: var(--rule); background: transparent; color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: var(--wash); border-color: var(--field-line); }
.button.danger { background: var(--attention-wash); border-color: var(--attention); color: var(--attention); }
.button.danger:hover:not(:disabled) { background: var(--attention); color: var(--surface); }
.button.text-button { background: transparent; color: var(--accent); }
.button.text-button:hover:not(:disabled) { background: var(--wash); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }

.public-page {
  display: flex;
  flex-direction: column;
}

.public-page .masthead { background: var(--desk); }
.public-page .masthead-inner { min-height: 4.2rem; }
.public-shell, .public-footer-inner { width: min(100% - var(--page-gutter) * 2, var(--site-width)); margin-inline: auto; }
.public-shell { flex: 1; }
.public-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem clamp(.8rem, 3vw, 2.25rem); }
.public-nav a { padding-block: .6rem; font-size: .9375rem; text-decoration: none; }
.public-nav a:hover, .public-nav a:focus-visible { text-decoration: underline; }

.public-footer { background: var(--navy); color: var(--cream); }
.public-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-block: 1.35rem; }
.public-footer a, .public-footer .plain { font-size: .9375rem; }
.public-footer :focus-visible { outline-color: var(--blue); }
.cookie-banner {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem 1.65rem;
  padding: .8rem max(var(--page-gutter), (100% - var(--site-width)) / 2);
  border-top: 1px solid var(--rule);
  background: var(--surface);
}
.cookie-banner h2 { font-size: 1rem; }
.cookie-banner p { font-size: .875rem; color: var(--secondary); }
.cookie-actions { display: flex; flex: none; flex-wrap: wrap; gap: .4rem; }
.cookie-actions .button { padding-inline: .62rem; font-size: .875rem; }

.guide { padding-block: clamp(1.1rem, 3vw, 2.7rem) clamp(2.6rem, 6.25vw, 5.5rem); }
.guide-return { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .65rem; color: var(--accent); font-size: .9375rem; }
.guide-cover { padding-bottom: clamp(1.35rem, 4.5vw, 3.5rem); border-bottom: 1px solid var(--ink); }
.guide-cover.has-image { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(1.3rem, 4vw, 3.75rem); align-items: center; }
.guide-cover-image { display: block; width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; }
.guide h1 { max-width: 20ch; font-size: clamp(2.25rem, 5.3vw, 4.1rem); }
.guide-cover.has-image h1 { max-width: 18ch; }
.guide-lead { color: var(--secondary); max-width: 58ch; font-size: clamp(1.02rem, 2vw, 1.2rem); margin-top: .85rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 16.5rem); gap: clamp(2rem, 6vw, 5.25rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
.guide-article > section + section { margin-top: clamp(1.75rem, 4vw, 2.8rem); }
.guide-article h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); text-wrap: initial; }
.guide-article p, .guide-article li { max-width: 65ch; }
.guide-article h2 + p { margin-top: .8rem; }
.guide-article p + p { margin-top: .7rem; }
.guide-article a:not(.button), .guide-lead a { color: var(--accent); }
.guide-article :is(ul, ol) { padding-inline-start: 1.3rem; }
.guide-article li + li { margin-top: .4rem; }
.guide-article blockquote {
  margin: 1rem 0;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
  background: var(--wash);
  max-width: 65ch;
}
.guide-article details { margin-top: .9rem; padding-block: .5rem; border-block: 1px solid var(--line); }
.guide-article details p { padding-block: .5rem; }
summary { cursor: pointer; }
.guide-action { margin-top: 1.7rem; }
.guide-table { overflow-x: auto; margin-block: 1.2rem; border-block: 1px solid var(--line); background: var(--surface); }
.guide-table table { width: 100%; text-align: left; border-collapse: collapse; }
.guide-table :is(th, td) { padding: .75rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { background: var(--wash); }
.guide-table th { font-weight: 500; }
.guide-table td time, .guide-table th[scope="row"] { white-space: nowrap; }
.guide-table tbody tr:last-child > * { border-bottom: 0; }
.guide-related { position: sticky; top: 1.25rem; align-self: start; padding-top: .65rem; border-top: 1px solid var(--ink); }
.guide-related h2 { font-size: 1.25rem; }
.guide-related ul { margin: .65rem 0 0; padding: 0; list-style: none; }
.guide-related a { display: flex; align-items: center; min-height: 44px; padding-block: .55rem; font-size: .9375rem; line-height: 1.4; }
.guide-related li { border-bottom: 1px solid var(--line); }
.public-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; font-weight: 680; }
.guide-index { padding-top: clamp(1.3rem, 4vw, 2.65rem); }
.guide-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.guide-directory a { display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem; height: 100%; padding: clamp(1rem, 2.4vw, 1.5rem); border: 2px solid var(--plum); border-radius: 14px; background: var(--surface); text-decoration: none; }
.guide-directory a:is(:hover, :focus-visible) { background: var(--wash); }
.guide-directory h2 { font-size: clamp(1.25rem, 2.15vw, 1.7rem); line-height: 1.14; }
.guide-directory p { margin-top: .5rem; max-width: 45ch; }
.guide-directory a > span { flex: none; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; border-radius: 6px; background: var(--lilac); font-weight: 720; }
.module-directory a { background: var(--skill); color: var(--plum); }
.module-directory a:is(:hover, :focus-visible) { background: var(--skill); }
.module-directory a:is(:hover, :focus-visible) h2 { text-decoration: underline; }
.module-directory a > span { background: var(--paper); }
.module-overview { margin-top: clamp(2rem, 6vw, 4rem); }
.public-policy .guide-article { padding-top: clamp(1.5rem, 4vw, 3rem); }

@media (max-width: 805px) {
  .guide-cover.has-image, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-cover-image { max-width: 30rem; aspect-ratio: 2.15; }
  .guide-related { position: static; max-width: 30rem; }
}

@media (max-width: 620px) {
  .guide-directory { grid-template-columns: minmax(0, 1fr); }
  .public-page .masthead-inner { align-items: flex-start; flex-direction: column; gap: .1rem; padding-block: .65rem .35rem; }
  .public-nav { gap: .15rem .8rem; }
  .public-nav a { font-size: .87rem; padding-block: .58rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex: 0 1 auto; }
  .guide-table :is(th, td) { padding: .55rem .65rem; font-size: .875rem; }
}

.portal-page {
  --radius: 8px;
  --panel-radius: 12px;
}

.portal-page .masthead-inner {
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.portal-page .wordmark, .sidebar {
  color: var(--cream);
  background-color: var(--navy);
}

.portal-page .wordmark { display: flex; align-items: center; padding-inline: 1.35rem; }
.portal-page .wordmark:hover { text-decoration: underline; }
.masthead-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.85rem, 2vw, 1.5rem); min-width: 0; padding-inline: clamp(1rem, 4vw, 3rem); color: var(--secondary); }
.account-access { min-width: 0; max-width: 13rem; }
.account-access a { display: flex; align-items: center; min-height: 44px; padding: .45rem .7rem; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.account-access a:hover { text-decoration: underline; }
.account-access a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: calc(100dvh - 4.75rem); }
.workspace > main { min-width: 0; padding-inline: clamp(1.65rem, 4.5vw, 4.75rem); }
.workspace-nav { position: sticky; top: 0; display: grid; gap: .24rem; padding: 1.35rem .8rem; }
.workspace-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .85rem;
  border-inline-start: 2px solid transparent;
  border-radius: var(--radius);
  color: #d3deec;
  font-size: .94rem;
  text-decoration: none;
}
.workspace-nav a:hover { background: #dbe8f315; color: var(--cream); }
.workspace-nav a[aria-current="page"] { color: var(--cream); background: #dbe8f321; border-inline-start-color: var(--blue); font-weight: 500; }
.sidebar :focus-visible, .portal-page .wordmark:focus-visible { outline-color: var(--blue); outline-offset: -2px; }

.workspace-page, .practice-portal { padding-block: clamp(2rem, 5.7vw, 4.65rem) 4rem; }
.workspace-heading { margin-bottom: 1.75rem; }
.workspace-heading h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.workspace-heading p { max-width: 64ch; margin-top: .55rem; color: var(--secondary); }
.practice-portal { width: min(66rem, 100%); padding-block: clamp(1.7rem, 4vw, 3.1rem) 2.75rem; }
.practice-portal .workspace-heading { margin-bottom: 1.4rem; }
.practice-portal .workspace-heading h1 { font-size: clamp(2.15rem, 4vw, 3.5rem); }

.skill-options { margin: 0; padding: 0; min-width: 0; border: 0; }
.skill-options legend { padding: 0 0 .65rem; font-size: 1.125rem; font-weight: 500; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.set-select { display: grid; flex: 0 1 19rem; min-width: 0; gap: .35rem; font-size: .9375rem; font-weight: 500; }
.saved-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  padding: .65rem 0 .8rem;
  margin-bottom: 1.2rem;
  border-block: 1px solid var(--line);
}
.saved-draft .muted { font-size: .85rem; }
.draft-actions { display: flex; flex-wrap: wrap; gap: .25rem .4rem; }

.workspace-panel, .screen { border: 1px solid var(--line); border-radius: var(--panel-radius); background: var(--surface); }
.workspace-panel { width: min(45rem, 100%); padding: clamp(1.15rem, 3.5vw, 2rem); }
.account-form { display: grid; gap: 1rem; }
.account-form label { display: grid; width: min(100%, 26rem); gap: .3rem; font-size: .9375rem; font-weight: 500; }
.field {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
  background: var(--workpaper);
  color: var(--ink);
  padding: .57rem .75rem;
  font-size: 1rem;
  font-weight: 400;
}

select.field {
  appearance: none;
  padding-inline-end: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  cursor: pointer;
}

.account-form > button { justify-self: start; }
.account-form .actions { margin-top: .15rem; }
.form-message, .field-note { color: var(--secondary); font-size: .9rem; }
.form-message:empty { display: none; }
.form-message.form-error, .alert { color: var(--attention); }
.field-note { margin-top: -.5rem; }
.inline-link { padding-inline: .3rem; color: var(--accent); font-size: .9375rem; }
.sign-in-form { max-width: 32rem; }
.sign-in-method { display: grid; gap: .75rem; }
.sign-in-method label { width: 100%; }
.sign-in-method > .button { justify-self: stretch; }
.sign-in-divider { display: flex; align-items: center; gap: .8rem; color: var(--secondary); font-size: .9rem; }
.sign-in-divider::before, .sign-in-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.profile-email { margin: 0; overflow-wrap: anywhere; }
.profile-email dt { font-weight: 500; }
.profile-email dd { margin: .12rem 0 0; color: var(--secondary); }
.profile-section { margin-top: 1rem; }
.profile-section h2, .checks h2 { font-size: 1.4rem; }
.profile-section h2 + p { margin-top: .55rem; }
.attempt-list { list-style: none; margin: 0; padding-block: 0; }
.attempt-list li { padding-block: 1.2rem; }
.attempt-list li + li { border-top: 1px solid var(--line); }
.attempt-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.attempt-heading h2 { font-size: 1.36rem; }
.attempt-heading time, .attempt-list li > p { color: var(--secondary); font-size: .9rem; }
.attempt-list li > p { margin-top: .3rem; }
.attempt-list .actions { margin-top: .65rem; }
.checkout-notice { margin-bottom: 1rem; }
.admin-counts { margin: 0; }
.admin-counts > div { display: flex; justify-content: space-between; gap: .75rem; padding-block: .55rem; }
.admin-counts > div + div { border-top: 1px solid var(--line); }
.admin-counts dd { margin: 0; font-variant-numeric: tabular-nums; }

.screen { margin-block: clamp(1.65rem, 5vw, 3.6rem) 4rem; padding: clamp(1.2rem, 4.8vw, 3.2rem); }
.screen h1 { font-size: clamp(2.2rem, 5.3vw, 3.7rem); margin-bottom: .85rem; }
.screen > .muted + h1 { margin-top: .35rem; }
.screen-intro { color: var(--secondary); font-size: 1.05rem; }
.alert { margin-top: .9rem; }
.section-plan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem 1.35rem; margin: 1.15rem 0 0; padding: 0; list-style: none; }
.section-plan li { padding-block: .7rem; border-top: 1px solid var(--line); }
.section-plan li > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .65rem; }
.section-plan li > div span, .section-plan li > p { font-size: .9rem; }
.section-plan li > p { margin-top: .2rem; }
.break-note { margin-top: 1rem; color: var(--secondary); }
.section-ready { max-width: 39rem; }
.ready-contents { margin-block: .9rem .35rem; }
.checks { display: grid; gap: 1.35rem; margin-top: 1.5rem; }
.checks > section {
  display: grid;
  align-content: start;
  gap: .6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--workpaper);
}
.checks .actions { margin: 0; }
.check-line, .account-form .marketing-choice { display: flex; align-items: center; gap: .6rem; min-height: 44px; }

.taking-exam .masthead, .taking-exam .sidebar { display: none; }
.taking-exam .workspace { display: block; min-height: 100dvh; }
.taking-exam .workspace > main { padding-inline: clamp(.85rem, 3.5vw, 3.8rem); }
.exam { width: min(81rem, 100%); margin-inline: auto; padding-block: 0 2rem; }
.exam-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--desk);
  border-bottom: 1px solid var(--rule);
}

.exam-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .15rem 1rem; min-height: 3.5rem; }
.exam-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; }
.exam-title h1 { font-size: clamp(1.38rem, 2.4vw, 1.8rem); letter-spacing: -.025em; }
.exam-section { font-size: .875rem; white-space: nowrap; }
.exam-controls { display: flex; gap: .35rem; align-items: center; }
.exam-progress { display: flex; flex-wrap: wrap; justify-content: flex-end; color: var(--secondary); gap: .05rem .75rem; font-size: .875rem; }
#save-status::before { content: '·'; margin-right: .55rem; }
.exam-exit { font-size: .875rem; padding-inline: .55rem; }
.timer {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: .38rem;
  padding: .3rem .55rem;
  border-radius: var(--radius);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
}
.timer-label { color: var(--secondary); font-size: .825rem; font-weight: 400; white-space: nowrap; }
.timer.warning { box-shadow: inset 0 0 0 1px var(--attention); }
.timer.soon { background: var(--attention-wash); color: var(--attention); }
.timer-warning { padding-block: .2rem .4rem; color: var(--attention); font-size: .85rem; }
#timer-warning:empty, #mic-status:empty { display: none; }

.task-steps {
  position: relative;
  display: flex;
  gap: .17rem;
  overflow-x: auto;
  padding: .1rem .16rem .25rem;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
}

.task-step, .button.task-step {
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 4.65rem;
  display: flex;
  align-items: center;
  gap: .34rem;
  padding: .25rem .45rem;
  color: var(--secondary);
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: transparent;
  white-space: nowrap;
}
.button.task-step:hover { background: var(--wash); }
.task-step.answered { color: var(--accent); }
.task-step[aria-current="step"] { box-shadow: inset 0 -2px var(--accent); color: var(--ink); background: var(--wash); }
.task-step:focus-visible { outline-offset: -2px; }
.step-number { min-width: 1.15rem; display: inline-flex; gap: .2rem; align-items: center; color: var(--ink); font-size: .875rem; font-weight: 500; }
.step-kind { font-size: .875rem; font-weight: 400; }
.step-check { color: var(--accent); font-size: .9rem; }
.exam-body { margin-block: .75rem; }

.task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  overflow: clip;
}

.panel { min-width: 0; padding: clamp(1.15rem, 3.15vw, 2.25rem); border: 1px solid var(--line); background: var(--workpaper); }
.task-grid > .panel { border: 0; padding: clamp(.85rem, 2vw, 1.5rem); }
.task-grid > article.panel { background: var(--surface); }
.task-grid > .panel + .panel { border-inline-start: 1px solid var(--line); }
.panel h2 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); margin-bottom: .68rem; text-wrap: pretty; }
.reading-spread article > p { font-size: 1.035rem; line-height: 1.62; }
.prose p + p { margin-top: .72rem; }
.prose ol, .prose ul { padding-inline-start: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.questions { display: grid; align-content: start; gap: .72rem; }
.questions fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.questions legend, .short-label { display: block; padding: 0; margin-bottom: .2rem; font-weight: 500; line-height: 1.42; }
.questions .compact-choices { display: flex; flex-wrap: wrap; gap: 0 .45rem; }
.option {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  min-height: 44px;
  margin-top: .2rem;
  padding: .55rem .6rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.option:hover, .option:has(input:checked) { background: var(--wash); }
.option input { flex: none; width: 1rem; height: 1rem; margin: .29rem 0 0; }
.questions .option { min-height: 32px; margin: 0; padding: .25rem .48rem; line-height: 1.4; }
.questions .option input { margin-top: .18rem; }
.compact-choices .option { min-width: 5.3rem; }
.questions .field { min-height: 38px; padding-block: .39rem; }
.editor textarea.field { min-height: 16rem; resize: vertical; line-height: 1.65; }
.editor label { display: block; margin-bottom: .55rem; font-weight: 500; }
.word-count { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .65rem; color: var(--secondary); font-size: .875rem; }
.writing-topics { margin-top: 1rem; border: 1px solid var(--line); min-width: 0; }
.writing-topics legend { padding-inline: .3rem; }
.exam-nav { border-top: 1px solid var(--line); padding-top: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.task-count { color: var(--secondary); font-size: .875rem; font-variant-numeric: tabular-nums; }
.exam-nav-right { display: flex; gap: .6rem; flex-wrap: wrap; }

.audio-box > p { margin-bottom: 1rem; }
.audio-box .listen-status { margin-top: .7rem; margin-bottom: 0; color: var(--secondary); }
.speech-panel { max-width: 52rem; margin-inline: auto; padding: clamp(1rem, 2.5vw, 1.7rem); border-radius: var(--panel-radius); }
.speech-panel > p { font-size: 1.06rem; }
.audio-phases {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .8rem;
  list-style: none;
  padding: 0;
  margin: 0 0 .85rem;
  color: var(--secondary);
  font-size: .875rem;
}
.prose .audio-phases { padding-inline-start: 0; }
.prose .audio-phases li { margin: 0; }
.audio-phases li { border-bottom: 2px solid transparent; padding: .1rem 0 .15rem; }
.audio-phases li[aria-current="step"] { border-color: var(--accent); color: var(--ink); font-weight: 500; }
.speech-controls { margin-top: .8rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.speech-panel .phase { font-weight: 500; font-size: .975rem; }
.speech-panel .phase.recording { color: var(--attention); }
.speech-panel .phase.recording::before { content: ''; display: inline-block; vertical-align: .1em; margin-right: .55em; width: .56em; height: .56em; border-radius: 50%; background: currentColor; }
.speech-controls .mic-mode { margin-top: .2rem; color: var(--secondary); font-size: .875rem; }
.speech-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.speech-panel #response-playback { margin-top: .65rem; }
.speech-panel audio { display: block; margin-top: .35rem; }
.speech-panel .option { margin-top: .6rem; }

.results-screen { width: min(54rem, 100%); }
.result-title { margin-bottom: 1.45rem; }
.result-title .screen-intro { margin-top: .75rem; }
.review-list { display: grid; gap: .55rem; }
details.panel { padding: 0; border-radius: var(--radius); }
details.panel summary { list-style-position: inside; padding: .9rem 1rem; font-weight: 500; }
details.panel summary:hover { background: var(--wash); }
details.panel summary .muted { font-weight: 400; margin-inline-start: .4rem; }
.review-body { padding: .25rem 1rem 1rem; }
.review-group + .review-group { margin-top: 1.3rem; }
.review-item { padding-block: .6rem; }
.review-item + .review-item { border-top: 1px solid var(--line); }
.review-item p { overflow-wrap: anywhere; }
.response-text { white-space: pre-wrap; }
.review-item audio { width: min(100%, 22rem); margin-top: .4rem; }
.history-save { margin-top: .8rem; color: var(--secondary); font-size: .875rem; }
.report-callout { padding: clamp(1rem, 2.7vw, 1.5rem); margin-top: 1.25rem; background: var(--wash); border-radius: var(--radius); }
.report-callout h2 { font-size: 1.55rem; margin-bottom: .45rem; }
.review-evidence { margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.review-evidence summary { font-weight: 500; }
.review-evidence ul { padding-inline-start: 1.15rem; }
.review-evidence li + li { margin-top: .9rem; }
.review-evidence blockquote { margin: .4rem 0; padding-inline-start: .65rem; border-inline-start: 2px solid var(--line); }
#review-message { color: var(--secondary); }

dialog {
  width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  padding: clamp(1.15rem, 4vw, 2rem);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1.3rem 3.5rem #0a1b3435;
}
dialog::backdrop { background: #22192b8c; }
dialog h2 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin-bottom: .9rem; }
dialog p + p { margin-top: .75rem; }
dialog a { color: var(--accent); }

@media (min-width: 1160px) {
  .preflight .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}

@media (max-width: 900px) {
  .portal-page .masthead-inner, .workspace { grid-template-columns: minmax(0, 1fr); }
  .portal-page .masthead { background: var(--navy); border-bottom: 0; }
  .portal-page .masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 3.75rem; padding-inline: 1rem; }
  .portal-page .wordmark { padding: 0; font-size: 1.15rem; }
  .masthead-actions { gap: .65rem; padding: 0; color: var(--cream); }
  .masthead-actions :focus-visible { outline-color: var(--blue); }
  .account-access a { color: var(--cream); padding-inline: .25rem; }
  .workspace { min-height: calc(100dvh - 3.75rem); }
  .workspace-nav { position: static; display: flex; padding: 0 .55rem; gap: .25rem; }
  .workspace-nav a { flex: 1 1 0; min-width: 0; justify-content: center; padding-inline: .2rem; border-inline: 0; border-bottom: 2px solid transparent; text-align: center; }
  .workspace-nav a[aria-current="page"] { border-inline: 0; border-bottom-color: var(--blue); }
  .workspace > main { padding-inline: clamp(1rem, 4vw, 2.5rem); }
  .exam { padding-top: 0; }
}

@media (max-width: 780px) {
  .task-grid { grid-template-columns: minmax(0, 1fr); }
  .task-grid > .panel + .panel { border-inline-start: 0; border-top: 1px solid var(--line); }
  .editor textarea.field { min-height: clamp(10.5rem, 34dvh, 15rem); }
}

@media (max-width: 620px) {
  .exam-nav-right { margin-inline-start: auto; justify-content: flex-end; }
  .exam-top { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .45rem; padding-block: .3rem .15rem; }
  .exam-title { display: grid; gap: .1rem; }
  .exam-progress { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
  .exam-controls { grid-row: 1; grid-column: 2; }
  .timer-label { display: none; }
  .section-plan { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .portal-page .masthead-inner { padding-inline: .75rem; }
  .portal-page .wordmark { font-size: 1.02rem; }
  .masthead-actions .plain, .account-access a, .workspace-nav a { font-size: .85rem; }
}

@media (pointer: coarse) {
  .task-step, .button.task-step, .questions .option { min-height: 44px; }
}

@media (max-height: 480px) { .exam-toolbar { position: static; } }

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

[data-skill="reading"] { --skill: var(--mango); }
[data-skill="writing"] { --skill: var(--lilac); }
[data-skill="listening"] { --skill: var(--mint); }
[data-skill="speaking"] { --skill: var(--peach); }
h1, h2, h3, .wordmark { font-family: var(--display); font-weight: 700; }
strong, b { font-weight: 680; }
.button { font-weight: 720; border-radius: 12px; }
.button.raised { border: 2px solid var(--plum); border-bottom-width: 6px; transition: background-color .15s, transform .15s, border-bottom-width .15s; }
.button.raised:active:not(:disabled) { transform: translateY(3px); border-bottom-width: 3px; margin-bottom: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.landing-width { width: min(100% - var(--page-gutter) * 2, var(--site-width)); margin-inline: auto; }
.landing-page { --site-width: 75rem; --spread-gap: clamp(2rem, 6vw, 5.5rem); background: var(--paper); color: var(--plum); }
.landing-page .masthead { background: var(--hero-yellow); border-bottom: 2px solid var(--plum); }
.landing-page .masthead-inner { min-height: 4.25rem; width: min(100% - var(--page-gutter) * 2, var(--site-width)); }
.landing-page .wordmark { font-size: 1.55rem; }
.landing-page .public-nav :is(a, summary) { color: var(--plum); font-size: .92rem; font-weight: 660; }
.modules-nav { position: relative; width: fit-content; }
.modules-nav summary { display: flex; align-items: center; gap: .55rem; min-height: 44px; list-style: none; cursor: pointer; }
.modules-nav summary::-webkit-details-marker { display: none; }
.modules-nav summary::after { content: ''; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; margin-top: -.2rem; }
.modules-nav[open] summary::after { rotate: 225deg; margin-top: .2rem; }
.modules-nav ul { position: absolute; z-index: 5; inset: 100% auto auto -.6rem; min-width: 10rem; margin: 0; padding: .3rem; list-style: none; border: 2px solid var(--plum); border-radius: 12px; background: var(--paper); }
.landing-page .modules-nav a { display: block; min-height: 44px; padding: .6rem .75rem; border-radius: 7px; }
.landing-page .modules-nav a:is(:hover, :focus-visible) { background: var(--skill); text-decoration: none; }
.landing-page .modules-nav a:not([data-skill]) { font-weight: 730; }
.landing-page .modules-nav a:not([data-skill]):is(:hover, :focus-visible) { background: var(--lilac); }
.landing-hero { background: var(--hero-yellow); min-height: calc(100svh - 4.25rem); display: grid; align-items: center; padding-block: clamp(2.5rem, 5vh, 5rem); }
.hero-spread { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.hero-copy h1 { font-size: clamp(4.4rem, 10.1vw, 10rem); line-height: .89; letter-spacing: -.047em; font-weight: 760; text-wrap: initial; }
.hero-copy h1 span { display: block; }
.hero-copy p { max-width: 46ch; margin-top: clamp(.95rem, 1.65vw, 1.45rem); font-size: clamp(1rem, 1.65vw, 1.3rem); line-height: 1.45; text-wrap: balance; }
.hero-copy .button { margin-top: 1.35rem; padding: .8rem 1.2rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); background: var(--plum); color: var(--paper); border-bottom-color: #78511f; }
.hero-copy .button:hover { background: #42294b; }
.hero-copy .button span, .random-copy .button span { margin-inline-start: .55rem; }

.demo-window { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(100%, 28rem); aspect-ratio: 4/5; justify-self: center; overflow: hidden; border: 3px solid var(--plum); border-bottom-width: 8px; border-radius: 22px; background: var(--paper); color: var(--plum); }
.demo-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; border-bottom: 2px solid var(--plum); background: var(--plum); }
.demo-tab { position: relative; border: 0; min-height: 46px; padding: .48rem .08rem .62rem; background: var(--paper); color: var(--plum); font-weight: 700; font-size: clamp(.64rem, 1.2vw, .86rem); }
.demo-tab[aria-selected="true"] { background: var(--lilac); }
.demo-tab:focus-visible { z-index: 1; outline-offset: -4px; }
.demo-tab span { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--violet); transform: scaleX(0); transform-origin: left center; }
.demo-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; overflow: hidden; }
.demo-scene { display: grid; grid-area: 1 / 1; min-width: 0; align-content: center; gap: clamp(.55rem, 1.7vw, .95rem); height: 100%; padding: clamp(.85rem, 2.45vw, 1.7rem); font-size: clamp(.79rem, 1.2vw, .95rem); line-height: 1.42; }
.demo-reading { background: var(--mango); grid-template-columns: 1.1fr 1fr; }
.demo-writing { background: var(--lilac); }
.demo-listening { background: var(--mint); grid-template-columns: .95fr 1fr; }
.demo-speaking { background: var(--peach); justify-items: center; text-align: center; }
.demo-result { background: var(--lilac); justify-items: center; text-align: center; }
.demo-source, .demo-answer, .demo-correction { padding: clamp(.55rem, 1.5vw, .95rem); border: 2px solid var(--plum); border-radius: 13px; background: #fffdf6; }
.demo-source p, .demo-answer p { margin-top: .35rem; }
.demo-typed { font-weight: 600; min-height: 2.9em; overflow-wrap: anywhere; }
.demo-answer .demo-typed { padding: .35rem; border-radius: 6px; background: #f0e5ff; }
.demo-writing .demo-answer .demo-typed { min-height: 4.2em; }
.demo-stamp { grid-column: 1/-1; justify-self: end; padding: .38rem .55rem; border-radius: 6px; color: var(--paper); background: var(--plum); font-weight: 680; }
.demo-speaking .demo-stamp { justify-self: center; }
.demo-window-footer { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding-inline: .75rem; border-top: 2px solid var(--plum); font-size: .76rem; font-weight: 650; }
.demo-window-footer button { min-height: 34px; border: 0; text-decoration: underline; background: transparent; color: inherit; }
.demo-choices { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .45rem; }
.demo-choices span { display: grid; place-items: center; min-width: 1.65rem; min-height: 1.75rem; border: 1.5px solid var(--plum); border-radius: 5px; font-weight: 750; }
.demo-choices .picked { color: white; background: var(--violet); }
.demo-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 32px; }
.demo-wave i { display: block; width: 4px; height: var(--bar, 50%); border-radius: 3px; background: #522cc1; }
.demo-wave i:nth-child(2n) { --bar: 85%; }
.demo-wave i:nth-child(3n) { --bar: 100%; }
.demo-wave i:nth-child(4n) { --bar: 28%; }
.demo-mic { position: relative; width: 3.1rem; height: 4.5rem; border: 3px solid var(--plum); border-top: 0; border-radius: 0 0 30px 30px; }
.demo-mic i { position: absolute; inset: .1rem .42rem .5rem; border-radius: 30px; background: var(--plum); }
.demo-mic::after { position: absolute; content: ''; width: 3px; height: .65rem; background: var(--plum); bottom: -.65rem; left: calc(50% - 1.5px); }
.demo-gear { position: absolute; inset: 30% 0 auto; justify-self: center; font-size: 4rem; pointer-events: none; }
.demo-score strong { font: 800 clamp(3.2rem, 6.8vw, 6.5rem)/.93 var(--display); }
.demo-score strong span { color: var(--violet); }
.demo-score p { margin-top: .35rem; font-weight: 720; }
.demo-correction span { font-size: .83em; }

.bank-stat { padding-block: clamp(3.4rem, 9vw, 7rem); }
.bank-stat p { display: flex; flex-direction: column; align-items: center; gap: clamp(.45rem, 2vw, 1.3rem); text-align: center; }
.bank-stat strong { font: 800 clamp(4.5rem, 13vw, 11rem)/.9 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.06em; white-space: nowrap; color: #522cc1; }
.bank-stat-label { font: 700 clamp(1.4rem, 2.65vw, 2.35rem)/1.07 var(--display); }
.modules { display: grid; gap: clamp(3.2rem, 9vw, 8rem); padding-block: 0 clamp(4.5rem, 11vw, 9rem); }
.module-preview { --label-top: clamp(.8rem, 2.3vw, 1.95rem); --label-size: clamp(2.25rem, 4.6vw, 4.15rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "art ." "art copy"; grid-template-rows: calc(var(--label-top) + var(--label-size) * 1.26 + 1rem) 1fr; column-gap: var(--spread-gap); align-items: center; }
.module-art { grid-area: art; position: relative; border-radius: 19px; background: var(--skill); }
.module-art img { display: block; width: 100%; aspect-ratio: 5/4; height: auto; object-fit: cover; border: 2px solid var(--plum); border-radius: inherit; }
.module-name { position: absolute; top: var(--label-top); inset-inline-end: 0; translate: 50% 0; max-width: 100%; padding: .12em .35em .16em; background: var(--skill); border: 2px solid var(--plum); border-radius: 8px; font-size: var(--label-size); line-height: .97; letter-spacing: -.045em; }
.module-copy { grid-area: copy; }
.module-copy p { font-size: clamp(1.1rem, 2vw, 1.44rem); line-height: 1.52; }
.read-more { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 46px; margin-top: 1rem; padding: .2rem .24rem .2rem .9rem; border: 2px solid var(--plum); border-radius: 10px; font-weight: 740; text-decoration: none; background: var(--paper); transition: background-color .18s; }
.read-more span { display: grid; place-items: center; width: 2.2rem; min-height: 2.15rem; border-radius: 6px; font-size: 1.2rem; background: var(--skill, var(--mango)); transition: translate .18s; }
.read-more:is(:hover, :focus-visible) { background: var(--skill, var(--mango)); }
.read-more:is(:hover, :focus-visible) span { translate: .12rem 0; }
.random-practice { background: var(--lilac); color: var(--plum); border-block: 2px solid var(--plum); }
.citizenship, .random-copy, .prep-creator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: var(--spread-gap); }
.random-copy { padding-block: clamp(3rem, 8vw, 7rem); }
.random-copy h2, .citizenship h2, .prep-creator h2 { font-size: clamp(2.45rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.05em; }
.random-copy p, .citizenship p, .prep-creator p { margin-top: .8rem; font-size: clamp(1.05rem, 1.75vw, 1.25rem); }
.random-copy .button { margin-top: 1.15rem; }
.practice-stack { display: grid; place-items: center; min-height: 13rem; }
.practice-stack div { grid-area: 1/1; display: grid; place-content: center; width: min(79%, 14.5rem); aspect-ratio: 1.55; border: 2px solid var(--plum); border-radius: 12px; font: 750 clamp(2rem, 5vw, 4rem)/1 var(--display); background: var(--mango); transform: translate(-13%, -10%) rotate(-12deg); }
.practice-stack div:nth-child(2) { background: var(--peach); transform: translate(13%, 7%) rotate(9deg); }
.practice-stack div:nth-child(3) { background: var(--mint); transform: rotate(-3deg); }
.citizenship { padding-block: clamp(4rem, 9vw, 8rem); }
.pair-diagram { --node-size: clamp(6.7rem, 15vw, 9rem); position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; place-items: center; row-gap: 2rem; width: min(100%, 31rem); margin-inline: auto; }
.pair-diagram span { display: grid; place-items: center; background: var(--skill); border: 2px solid var(--plum); border-radius: 50%; width: var(--node-size); aspect-ratio: 1; font: 720 clamp(.98rem, 2.6vw, 1.35rem)/1 var(--display); }
.pair-diagram i { position: absolute; background: var(--plum); z-index: -1; }
.pair-top { inset-inline: 25%; top: calc(var(--node-size) / 2); height: 3px; }
.pair-left, .pair-right { inset-block: calc(var(--node-size) / 2); width: 3px; transform: translateX(-50%); }
.pair-left { left: 25%; }
.pair-right { left: 75%; }
.prep-creator { align-items: start; padding-bottom: clamp(4rem, 8vw, 7rem); }
.creator-note { background: var(--mango); border-radius: 16px; padding: clamp(1.2rem, 3.3vw, 2rem); color: var(--plum); }
.creator-note h2 { font-size: clamp(1.7rem, 3.4vw, 2.65rem); }
.creator-note blockquote { margin: 0; }
.creator-note .signature { font-weight: 750; }
.guide-links { display: flex; gap: .4rem 1rem; flex-wrap: wrap; margin-top: .9rem; font-weight: 700; }
.landing-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: var(--spread-gap); padding-bottom: clamp(4rem, 8vw, 7rem); scroll-margin-top: 1.5rem; }
.landing-faq h2 { font-size: clamp(2.45rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.05em; }
.faq-list { display: grid; gap: .65rem; }
.faq-list details { border: 2px solid var(--plum); border-radius: 12px; background: var(--surface); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: .85rem; padding: .55rem .6rem .55rem 1rem; font-size: 1.075rem; font-weight: 690; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { display: grid; place-items: center; flex: 0 0 2rem; height: 2rem; border-radius: 5px; background: var(--lilac); font-size: 1.28rem; line-height: 1; content: '+' / ''; }
.faq-list details[open] summary::after { background: var(--mint); content: '−' / ''; }
.faq-list p { padding: 0 1rem .9rem; }
.faq-list p a { font-weight: 650; }
.public-footer { background: var(--plum); color: var(--paper); border: 0; }
.public-footer .plain { color: inherit; }
.cookie-banner { border: 2px solid var(--ink); box-shadow: none; }

@media (min-width: 761px) {
  .module-preview:nth-child(even) { grid-template-areas: ". art" "copy art"; }
  .module-preview:nth-child(even) .module-name { inset-inline-start: 0; inset-inline-end: auto; translate: -50% 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending :is(.module-art img, .module-name, .module-copy p, .module-copy a, [data-entrance]),
  .reveal-pending:is([data-landing-motion="offer"], [data-landing-motion="stack"], [data-landing-motion="pairs"], [data-landing-motion="note"]) { opacity: 0; }
  .faq-list details[open] p { animation: show-faq-answer .22s ease-out both; }
  @keyframes show-faq-answer {
    from { opacity: .25; translate: 0 -.3rem; }
  }
  @supports (animation-timeline: view()) {
    .practice-stack { view-timeline: --practice-deck block; }
    .practice-stack div { animation: fan-practice-cards linear both; animation-timeline: --practice-deck; }
    .practice-stack div:first-child { --fan-x: -9%; --fan-y: -10%; --fan-rotate: -7deg; }
    .practice-stack div:nth-child(2) { --fan-x: 12%; --fan-y: 9%; --fan-rotate: 8deg; }
    .practice-stack div:last-child { --fan-x: -2%; --fan-y: -4%; --fan-rotate: -3deg; }
    @keyframes fan-practice-cards {
      0%, 100% { translate: 0 0; rotate: 0deg; }
      50% { translate: var(--fan-x) var(--fan-y); rotate: var(--fan-rotate); }
    }
  }
}
@media (max-width: 760px) {
  .hero-spread { grid-template-columns: 1fr; gap: 1.9rem; }
  .hero-copy h1 { font-size: clamp(4rem, 14vw, 7rem); }
  .hero-copy .button { margin-top: 1.18rem; }
  .demo-window { width: min(100%, 24rem); }
  .module-preview { --label-size: clamp(2.05rem, 7vw, 3.25rem); grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy"; grid-template-rows: auto; gap: 1rem; }
  .module-name { top: 0; inset-inline-start: 50%; inset-inline-end: auto; translate: -50% -50%; }
  .citizenship, .random-copy, .prep-creator { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .landing-faq { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .practice-stack { min-height: 8rem; }
  .landing-page .masthead-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .1rem .9rem; padding-block: .55rem; }
  .landing-page .public-nav { gap: .15rem 1rem; }
}
@media (max-width: 385px) {
  .hero-copy h1 { font-size: 3.75rem; }
  .demo-reading, .demo-listening { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button.raised { transition: none; }
}

.public-page .masthead { border-color: var(--plum); }
.guide-cover.has-image { padding: clamp(1rem, 3.2vw, 2.4rem); background: var(--skill); color: var(--plum); border: 0; border-radius: 20px; overflow: hidden; }
.guide-cover-image { aspect-ratio: 5/4; object-fit: cover; }
.guide-cover.has-image .guide-lead { color: var(--plum); }
.guide-related { padding: 1rem 1.15rem; background: var(--wash); border: 0; border-radius: 14px; }
.guide-article { font-size: 1.08rem; }

.portal-page { --radius: 12px; --panel-radius: 18px; }
.portal-page .masthead { border: 0; }
.portal-page .masthead-inner { min-height: 3.9rem; }
.portal-page .wordmark { font-size: 1.48rem; }
.workspace { min-height: calc(100dvh - 3.9rem); }
.sidebar { display: flex; flex-direction: column; justify-content: space-between; background: var(--plum); }
.workspace-nav { top: .5rem; gap: .32rem; }
.workspace-nav a { color: var(--paper); border: 0; font-weight: 630; }
.workspace-nav a:hover { background: #473354; }
.workspace-nav a[aria-current="page"] { color: var(--plum); background: var(--lilac); font-weight: 730; }
.account-access { padding: .8rem 1rem; }
.account-access a { color: var(--paper); font-weight: 730; text-decoration: underline; }
.screen, .workspace-panel, .panel, dialog { border: 0; box-shadow: none; }
dialog { border: 2px solid var(--ink); }
.screen { margin-block-start: clamp(1.3rem, 3.8vw, 3.3rem); }
.screen:has(.section-band), .run-chooser, .preflight { max-width: 41rem; }
.screen h1 { font-size: clamp(2.15rem, 4.65vw, 3.25rem); }
.screen .actions { margin-top: 1.2rem; }
.dashboard-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; max-width: 57rem; }
.dashboard-mode { display: grid; align-content: space-between; gap: .6rem; padding: clamp(1.25rem, 3.1vw, 2rem); background: var(--mango); color: var(--plum); border: 2px solid var(--plum); border-bottom-width: 5px; border-radius: 18px; text-decoration: none; }
.dashboard-mode:nth-child(2) { background: var(--mint); }
.dashboard-mode:hover { transform: translateY(-2px); }
.dashboard-mode:active { transform: translateY(3px); }
.dashboard-mode h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
.dashboard-mode span { margin-top: .55rem; font-weight: 750; }
.dashboard-mode:hover span { text-decoration: underline; }
.saved-draft { border: 0; background: var(--wash); border-radius: 13px; padding: .85rem 1rem; }
.skill-list { display: grid; gap: .55rem; }
.skill-options legend { font-weight: 690; }
.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; border-radius: 12px; background: var(--wash); }
.skill-row:has(input:checked) { background: var(--skill); color: var(--plum); }
.skill-select { display: flex; gap: .7rem; align-items: center; padding: .66rem .8rem; cursor: pointer; min-height: 47px; font-size: 1.025rem; font-weight: 760; }
.skill-select input { margin: 0; width: 1.13rem; height: 1.13rem; accent-color: var(--violet); }
.skill-row details { display: contents; }
.skill-row summary { display: flex; justify-content: flex-end; align-items: center; gap: .55rem; padding: .6rem .8rem; min-height: 47px; cursor: pointer; font-size: .9rem; font-weight: 640; }
.skill-row summary::-webkit-details-marker { display: none; }
.skill-row summary::after { content: '+'; font-size: 1.18em; font-weight: 800; }
.skill-row details[open] summary::after { content: '−'; }
.skill-row details p { grid-column: 1/-1; padding: 0 .85rem .65rem 2.65rem; }
.run-chooser .set-select, .run-total { margin-top: 1rem; }
.run-total { font-weight: 680; }
.section-plan { gap: .55rem; margin-block: 1rem; }
.section-plan li { border: 0; border-radius: 10px; padding: .65rem .8rem; background: var(--skill); color: var(--plum); }
.section-plan li strong { font-size: 1.16rem; }
.section-band { margin: -.35rem -.4rem 1rem; border-radius: 12px; padding: .75rem 1rem; background: var(--skill); color: var(--plum); }
.section-band h1 { margin-bottom: .15rem; }
.section-band p { font-weight: 700; }
.section-ready > h2, .checks h2 { font-size: 1.34rem; margin-block: .9rem .25rem; }
.section-ready .screen-intro { margin-top: .65rem; color: var(--ink); }
.checks { gap: .7rem; margin-top: 1rem; }
.checks > section { border: 0; background: var(--wash); padding: .6rem .9rem; border-radius: 12px; }
.checks h2 { margin-top: .1rem; }
.sample-player { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; margin-block: .35rem; }
.sample-player progress { flex: 1; min-width: 5rem; accent-color: var(--accent); }
.exam-toolbar { border: 0; }
.exam-progress { color: var(--ink); }
.timer.warning { box-shadow: none; background: var(--attention-wash); }
.task-step[aria-current="step"] { box-shadow: none; outline: 2px solid var(--accent); outline-offset: -2px; }
.task-grid, .exam-nav { border-color: var(--ink); }
.task-grid > .panel + .panel { border: 0; }
.drill-controls { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.drill-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.unlimited-screen .skill-select { grid-column: 1 / -1; }
.drill-task { background: var(--wash); }
.drill-task > :is(details, .questions, label) { display: block; margin-top: .75rem; }
.drill-task .questions { display: grid; }
.drill-task .prose audio { display: block; margin-block: .7rem; }
@media (max-width: 900px) {
  .sidebar { flex-direction: row; align-items: start; justify-content: start; gap: .35rem; overflow-x: auto; }
  .workspace-nav { flex: 1 0 auto; padding: 0 .35rem .2rem; }
  .workspace-nav a { flex: 1 0 auto; padding-inline: .62rem; }
  .account-access { flex: none; padding: 0 .5rem .2rem 0; }
  .portal-page .wordmark { font-size: 1.3rem; }
}

@media (max-width: 470px) {
  .landing-page .wordmark { font-size: 1.16rem; }
  .landing-page .public-nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 0 .6rem; }
  .landing-page .public-nav :is(a, summary) { font-size: .83rem; }
  .landing-page .public-nav > a { padding-block: .32rem; }
  .landing-page .modules-nav summary { min-height: 36px; }
  .practice-stack { width: min(100%, 14rem); margin: .5rem auto 0; }
}

.feedback-offers { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.feedback-intro h2 { font-size: clamp(2.45rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.05em; }
.feedback-intro p { margin-block: .8rem 1.6rem; max-width: 68ch; font-size: clamp(1.05rem, 1.75vw, 1.25rem); }
.feedback-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spread-gap); }
.feedback-offer { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: clamp(1.05rem, 3vw, 2.05rem); border: 2px solid var(--plum); border-radius: 16px; background: var(--skill); }
.feedback-offer h3, .review-plan h2 { font-size: clamp(1.45rem, 2.5vw, 2.15rem); }
.feedback-offer ul { display: grid; gap: .65rem; margin: .2rem 0 .5rem; padding-inline-start: 1.2rem; }
.feedback-offer li { padding-inline-start: .15rem; }
.feedback-footnote { margin-top: 1.15rem; }
.feedback-footnote p { max-width: 66ch; }
.feedback-price { margin-top: auto; padding-top: .5rem; }
.feedback-price strong { font-size: 1.35rem; }
.feedback-offer .button { margin-top: .4rem; }
.feedback-offer .button span { margin-inline-start: .4rem; }
.review-plan > * + * { margin-top: .8rem; }
.plan-runs { list-style: none; padding: 0; }
.plan-runs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: .6rem; gap: .7rem; }
@media (max-width: 670px) {
  .feedback-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
