:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #485970;
  --teal: #006e62;
  --deep-teal: #063d36;
  --mint: #dff2eb;
  --cream: #faf9f4;
  --paper: #fff;
  --line: #dae4df;
  --radius: 20px;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
main:focus { outline: none; }
a { color: var(--teal); }
button, input { font: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); letter-spacing: -.064em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -.045em; }
h3 { font-size: 1.15rem; letter-spacing: -.025em; }
img { max-width: 100%; display: block; }
.wrap { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; z-index: 3; left: 1rem; top: 1rem; background: white; padding: .5rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid #bc541a; outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .72); }
.header-inner { min-height: 81px; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.brand { display: inline-block; flex: none; }
.brand img { object-fit: contain; height: auto; }
nav { display: flex; gap: clamp(1rem, 3.1vw, 2.7rem); align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; font-size: .94rem; white-space: nowrap; padding-block: .6rem; }
nav a:hover, nav a[aria-current] { color: var(--teal); }
nav a[aria-current] { box-shadow: 0 2px 0 var(--teal); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; border: 1px solid transparent; border-radius: 10px; padding: .7rem 1.25rem; background: var(--teal); color: white; text-decoration: none; font-weight: 700; }
.button:hover { background: #07544a; }
.button.secondary { color: var(--deep-teal); background: transparent; border-color: #a7b9b1; }
.button.secondary:hover { background: var(--mint); }
.button.compact { min-height: 42px; padding: .5rem .9rem; font-size: .9rem; }
#account-link { gap: .5rem; min-width: 0; max-width: min(15rem, 46%); }
.account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 1.65rem; height: 1.65rem; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--mint); color: var(--deep-teal); font-size: .7rem; font-weight: 750; }
.hero { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; column-gap: clamp(32px, 6vw, 96px); padding-block: clamp(3.5rem, 7vw, 6.25rem); }
.hero h1 { margin: 0 0 1.55rem; }
.hero h1 em { color: var(--teal); font-family: Georgia, "Times New Roman", serif; letter-spacing: -.077em; font-weight: 500; white-space: nowrap; }
.eyebrow { margin: 0 0 .8rem; color: var(--teal); font-size: .88rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.intro { color: var(--muted); font-size: 1.12rem; max-width: 31rem; }
.hero .intro { margin-bottom: 1.6rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-note { margin: 1.1rem 0 0; color: var(--muted); font-size: .92rem; }
.hero-note span { color: var(--teal); padding-inline: .45rem; }
.hero-photo { position: relative; min-width: 0; isolation: isolate; }
.hero-photo::before { position: absolute; inset: 13px -12px -13px 12px; z-index: -1; content: ""; border: 1px solid #a0c3b6; border-radius: 28px; }
.hero-photo img { width: 100%; aspect-ratio: 1.25; height: auto; object-fit: cover; border-radius: 28px; }
.photo-caption { position: absolute; bottom: 18px; left: 18px; display: flex; align-items: center; gap: .8rem; padding: .75rem .95rem; background: var(--paper); color: var(--ink); border-radius: 13px; box-shadow: 0 5px 20px #102c2829; }
.photo-caption strong, .photo-caption div span { display: block; }
.photo-caption div span { font-size: .88rem; color: var(--muted); }
.symbol { position: relative; display: block; flex: none; width: 43px; height: 43px; border-radius: 12px; background: var(--mint); color: var(--teal); }
.symbol::before, .symbol::after { position: absolute; content: ""; }
.clock::before { inset: 11px; border: 2px solid; border-radius: 50%; }
.clock::after { width: 7px; height: 6px; left: 21px; top: 16px; border-left: 2px solid; border-bottom: 2px solid; }
.headphones::before { width: 19px; height: 18px; top: 11px; left: 12px; border: 2px solid; border-bottom: 0; border-radius: 11px 11px 0 0; }
.headphones::after { width: 4px; height: 8px; top: 23px; left: 11px; border-radius: 2px; background: currentColor; box-shadow: 17px 0 currentColor; }
.book::before { inset: 12px 11px; border: 2px solid; border-radius: 3px; }
.book::after { left: 21px; top: 13px; height: 16px; border-left: 2px solid; }
.pen::before { width: 6px; height: 22px; top: 10px; left: 19px; border: 2px solid; border-radius: 5px 5px 2px 2px; transform: rotate(42deg); }
.mic::before { width: 9px; height: 16px; left: 17px; top: 9px; border: 2px solid; border-radius: 7px; }
.mic::after { width: 16px; height: 13px; top: 18px; left: 13.5px; border: 2px solid; border-top: 0; border-radius: 0 0 9px 9px; }
.learning-band { background: #edf4f0; border-block: 1px solid #e3ede7; padding-block: 2.8rem 3.2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading p:last-child:not(.eyebrow) { margin: 0; color: var(--muted); }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.skill, .panel, .stats article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.skill { padding: 1.15rem; display: flex; flex-direction: column; align-items: flex-start; }
.skill .symbol { margin-bottom: .75rem; }
.skill:nth-child(2) .symbol { color: #334d8b; background: #e8edfa; }
.skill:nth-child(3) .symbol { color: #8a461c; background: #f9ecdb; }
.skill:nth-child(4) .symbol { color: #734478; background: #f2eaf4; }
.skill p { margin: .5rem 0 .8rem; color: var(--muted); flex: 1; }
.skill-detail { font-size: .9rem; font-weight: 650; color: var(--teal); }
.skill:nth-child(n+3) .skill-detail { color: var(--muted); }
.next-section { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 3.4rem; }
.next-section p { color: var(--muted); margin: .6rem 0 0; }
footer { background: #f1f3ef; border-top: 1px solid var(--line); }
.footer-inner { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .9rem; }
.page { padding-block: 3.2rem 4.5rem; }
.page h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); }
.page .intro { margin-top: .8rem; max-width: 42rem; }
.narrow { max-width: 775px; }
.panel { padding: clamp(1.25rem, 3vw, 2rem); }
.panel > h2, .panel > h3 { margin-bottom: .7rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.65rem 0; }
.stats article { padding: 1.1rem 1.25rem; }
.stats span { display: block; color: var(--muted); }
.stats strong { display: block; font-size: 2.25rem; font-variant-numeric: tabular-nums; }
.dash-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 1rem; margin-bottom: 2.15rem; }
.featured { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); background: #dceddf; }
.featured .symbol { margin-bottom: .65rem; background: #f6fcf6; }
.featured p, .history p { color: var(--muted); margin: .75rem 0 1.2rem; }
.attempt-row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.attempt-row:hover strong { text-decoration: underline; }
.attempt-row small { display: block; color: var(--muted); font-size: .85rem; }
.attempt-score { font-weight: 750; text-align: right; }
.back-link { display: inline-block; margin-bottom: 1.05rem; font-weight: 650; text-underline-offset: .25em; }
.mock-intro { padding: clamp(1.4rem, 5vw, 3rem); }
.mock-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }
.mock-facts span { background: #eaf5ef; border-radius: 9px; padding: .45rem .75rem; color: var(--deep-teal); font-weight: 650; }
.instructions { color: var(--muted); margin: 1.3rem 0 1.75rem; padding-left: 1.3rem; }
.instructions li { margin-bottom: .5rem; }
.exam-top, .exam-nav, .exam-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.exam-nav { margin: 1.25rem 0; color: var(--muted); }
.timer { min-width: 120px; padding: .55rem .95rem; background: var(--mint); border-radius: 12px; text-align: center; }
.timer span { display: block; font-size: .9rem; }
.timer strong { display: block; font-size: 1.7rem; color: var(--deep-teal); font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: .35rem; }
.tab { border: 1px solid var(--line); color: var(--ink); background: white; padding: .55rem .85rem; border-radius: 8px; }
.tab.selected { color: white; background: var(--teal); border-color: var(--teal); }
.exam-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: start; gap: 1rem; }
.source > p:not(.eyebrow), .review-item p { color: var(--muted); }
.source .passage { color: var(--ink); margin-bottom: .9rem; }
audio { display: block; width: 100%; margin-top: 1.15rem; }
.question { margin: 0 0 .8rem; padding: .55rem 0 .85rem; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.question:last-child { border-bottom: 0; margin-bottom: 0; }
.question legend { font-weight: 650; }
.question legend span { color: var(--teal); }
.question input[type="text"] { width: 100%; max-width: 22rem; padding: .5rem .7rem; border: 1px solid #a8bbb3; color: var(--ink); border-radius: 7px; background: white; }
.choices { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.choice { display: inline-flex; align-items: center; min-height: 36px; cursor: pointer; }
input[type="radio"] { accent-color: var(--teal); margin: 0 .4rem 0 0; }
.exam-actions { margin-top: 1rem; flex-wrap: wrap; }
dialog { border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; width: min(90%, 440px); color: var(--ink); }
dialog::backdrop { background: #1325399c; }
dialog p { margin: .8rem 0 1.2rem; }
.result-banner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; background: var(--deep-teal); color: white; padding: clamp(1.3rem, 4vw, 2.5rem); border-radius: var(--radius); }
.result-banner .eyebrow, .result-banner .result-note { color: #bceadd; }
.result-banner p { margin: .6rem 0 0; }
.result-note { font-size: .9rem; }
.result-total { min-width: 115px; text-align: center; }
.result-total strong { display: block; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.2; }
.result-total span { font-size: .9rem; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.score-grid strong { color: var(--teal); font-size: 1.65rem; }
.results-actions { margin-block: 1.4rem 2rem; }
.review-heading { margin-bottom: 1rem; }
.review { margin-bottom: 1rem; }
.review details { padding: .55rem 0; }
.review summary { font-weight: 650; cursor: pointer; }
.review details p { margin: .7rem 0; }
.review-item { border-top: 1px solid var(--line); padding: .85rem 0 0; margin: .65rem 0 0; overflow-wrap: anywhere; }
.review-item p { margin: 0 0 .45rem; }
.review-item strong { color: var(--ink); }
.review-divider { margin-inline: .35rem; }
.mark { display: inline-block; margin-left: .25rem; padding: .1rem .45rem; border-radius: 5px; font-size: .8rem; font-weight: 700; }
.mark.right { background: var(--mint); color: #075a49; }
.mark.wrong { background: #fbe9e3; color: #8b3829; }
.auth-page { max-width: 550px; }
.auth-page h1 { font-size: clamp(2rem, 5vw, 3.2rem); overflow-wrap: anywhere; }
.auth-form { display: grid; gap: .8rem; }
.auth-form label { display: grid; gap: .35rem; font-weight: 650; }
.auth-form input, .auth-form textarea { width: 100%; min-height: 45px; padding: .55rem .7rem; border: 1px solid #a8bbb3; border-radius: 7px; color: var(--ink); font: inherit; }
.auth-form textarea { resize: vertical; }
.auth-form small { margin-top: -.55rem; color: var(--muted); }
.profile-heading { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1rem; }
.profile-heading .avatar { width: 4rem; height: 4rem; font-size: 1.25rem; }
.profile-username, .profile-contact { color: var(--muted); overflow-wrap: anywhere; margin: .25rem 0; }
.profile-contact:last-of-type { margin-bottom: 1rem; }
.profile-form { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; }
.profile-form h2 { margin-bottom: .25rem; }
.profile-form .remove-photo { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.profile-form input[type="checkbox"] { width: 1rem; min-height: auto; padding: 0; accent-color: var(--teal); }
.profile-status { color: var(--deep-teal); margin: 0; }
.profile-status:empty { display: none; }
.auth-switch { margin: 1rem 0 0; }
.form-error { margin: 0; color: #8b3829; }
.form-error:empty { display: none; }
.button:disabled { opacity: .65; cursor: wait; }
.account-note { background: var(--mint); color: var(--deep-teal); padding: .65rem .85rem; border-radius: 9px; }
.text-button { padding: 0; color: var(--teal); background: none; border: 0; text-decoration: underline; font-weight: 700; }
.flow-skill-link { display: inline-block; margin-top: .55rem; font-weight: 650; }
.flow-library h1, .flow-result h1 { font-size: clamp(2.15rem, 6vw, 4.15rem); margin-bottom: .9rem; }
.flow-library-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.9rem; }
.flow-library-card { display: grid; align-content: space-between; gap: 1rem; padding: 1.45rem; }
.flow-library-card h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
.flow-library-card p { color: var(--muted); margin: .45rem 0 0; }
.flow-screen > .site-header, .flow-screen > footer { display: none; }
.flow-screen { overflow: hidden; }
.flow-screen #main { flex: none; height: 100dvh; min-height: 0; }
#main:fullscreen { width: 100%; height: 100%; }
.mock-audio { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.mock-audio label { display: flex; align-items: center; gap: .4rem; }
.mock-audio input { width: 6rem; accent-color: var(--teal); }
.mock-audio [role="status"]:empty { display: none; }
.study-audio-timeline { display: flex; align-items: center; gap: .5rem; width: min(19rem, 100%); }
.study-audio-timeline input { flex: 1; width: 0; min-width: 0; margin: 0; accent-color: var(--flow-accent, var(--teal)); cursor: pointer; }
.study-audio-timeline [data-audio-time] { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-shell {
  --flow-bg: #fff;
  --flow-ink: #111820;
  --flow-panel: #eeeee7;
  --flow-line: #aabac4;
  --flow-accent: #087eaa;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 0;
  height: 100%;
  padding: 8px;
  background: var(--flow-bg);
  color: var(--flow-ink);
  font: 14px/1.45 Arial, sans-serif;
}
.flow-shell[data-flow-theme="black-white"] { --flow-bg: #000; --flow-ink: #fff; --flow-panel: #191919; --flow-line: #aaa; --flow-accent: #fff; color-scheme: dark; }
.flow-shell[data-flow-theme="black-yellow"] { --flow-bg: #000; --flow-ink: #ffeb65; --flow-panel: #191919; --flow-line: #c4ad58; --flow-accent: #ffeb65; color-scheme: dark; }
.flow-shell:is([data-flow-theme="black-white"], [data-flow-theme="black-yellow"]) :is(.flow-masthead, .flow-top, .flow-progress) {
  background: var(--flow-bg); color: var(--flow-ink);
}
.flow-shell:is([data-flow-theme="black-white"], [data-flow-theme="black-yellow"]) .flow-masthead span:last-child { color: inherit; }
.flow-shell [hidden] { display: none !important; }
.flow-masthead {
  display: flex; align-items: center; justify-content: space-between; gap: .65rem;
  min-height: 42px; padding: 8px 18px; background: #1d3b4a; color: #fff; font-size: 16px;
}
.flow-masthead span:last-child { color: #b8eaff; font-size: 13px; font-weight: 700; }
.flow-top {
  position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 2fr);
  align-items: center; gap: .65rem; min-height: 60px; margin-top: 8px; padding: 8px 22px;
  border-radius: 11px; background: linear-gradient(105deg, #153b4c, #245e70); color: #fff;
  box-shadow: 0 3px 12px #172e3d18;
}
.flow-top h1 { font: 700 15px/1.15 Arial, sans-serif; letter-spacing: 0; text-wrap: initial; }
.flow-top p { margin: 2px 0 0; font-size: 12px; }
.flow-progress { display: grid; min-width: 84px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.1; }
.flow-elapsed { font: 700 24px/1 Arial, sans-serif; font-variant-numeric: tabular-nums; }
.flow-top .flow-actions { justify-content: flex-end; }
.flow-actions, .flow-highlight-tools, .flow-numbers, .flow-parts, .flow-part { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.flow-top button, .flow-top a, .flow-settings > summary, .flow-highlight-tools button,
.flow-audio-row button, .flow-part > button, .flow-bottom-actions button {
  min-height: 29px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px;
  border: 1px solid var(--flow-line); border-radius: 3px; background: var(--flow-bg);
  color: var(--flow-ink); font: 12px/1.2 Arial, sans-serif; text-decoration: none; cursor: pointer;
}
.flow-top button:hover, .flow-top a:hover, .flow-settings > summary:hover, .flow-bottom-actions button:hover { border-color: var(--flow-accent); }
.flow-settings { position: relative; }
.flow-settings > summary { width: 32px; padding: 0; font-size: 19px; line-height: 1; }
.flow-settings-menu {
  position: absolute; z-index: 3; top: calc(100% + 5px); right: 0; display: grid; gap: 9px;
  width: min(230px, calc(100vw - 24px)); padding: 10px; background: var(--flow-bg); color: var(--flow-ink);
  border: 1px solid var(--flow-line); border-radius: 5px;
  box-shadow: 0 4px 12px #14213d24;
}
.flow-settings-menu fieldset { min-width: 0; margin: 0; padding: 3px 8px 6px; border: 1px solid var(--flow-line); border-radius: 4px; }
.flow-settings-menu legend { padding-inline: 4px; font-weight: 700; }
.flow-settings-menu label { display: flex; gap: 6px; align-items: center; min-height: 29px; cursor: pointer; }
.flow-settings-menu input { margin: 0; accent-color: var(--flow-accent); }
.flow-volume { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.flow-volume input { width: clamp(44px, 8vw, 105px); accent-color: #71c7ff; }
.flow-audio-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-height: 38px; padding-inline: 22px; color: var(--flow-ink); font-size: 13px; }
.flow-audio-row [data-flow-tool="play"] { min-height: 28px; padding-inline: 10px; font-weight: 700; color: var(--flow-bg); background: var(--flow-accent); }
.flow-highlight-tools {
  position: fixed; z-index: 5; padding: 5px; border: 1px solid var(--flow-line);
  border-radius: 5px; background: var(--flow-bg); box-shadow: 0 4px 12px #14213d24; max-width: calc(100vw - 12px);
}
.flow-highlight-tools [data-flow-color="yellow"], .flow-mark-yellow { background: #ffec9b; color: #192333; }
.flow-highlight-tools [data-flow-color="green"], .flow-mark-green { background: #b4f2d9; color: #192333; }
.flow-highlight-tools [data-flow-color="pink"], .flow-mark-pink { background: #f8cee0; color: #192333; }
.flow-mark-underline { background: transparent; color: inherit; text-decoration: underline; }
.flow-tool-status { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.flow-content {
  min-height: 0; overflow-x: hidden; overflow-y: scroll; scrollbar-gutter: stable;
  padding: 20px clamp(10px, 1.55vw, 30px) 28px; overscroll-behavior-y: contain; font-size: 18px;
}
.flow-content::-webkit-scrollbar { width: 15px; }
.flow-content::-webkit-scrollbar-track { background: var(--flow-panel); }
.flow-content::-webkit-scrollbar-thumb { min-height: 36px; border: 3px solid var(--flow-panel); border-radius: 9px; background: #76838a; }
.flow-content::-webkit-scrollbar-thumb:hover { background: #536068; }
.flow-section-label {
  padding: 12px; border-radius: 4px; border-bottom: 1px solid var(--flow-accent);
  background: var(--flow-panel); font-weight: 700; margin-bottom: 20px;
}
.flow-instructions p { margin: 0 0 18px; }
.flow-chart { width: min(100%, 49rem); margin: 22px auto 0; }
.flow-chart h2 { text-align: center; font: 700 1em/1.25 Arial, sans-serif; margin-bottom: 22px; }
.flow-chart ol { display: grid; gap: 15px; list-style: none; padding: 0; margin: 0; }
.flow-chart li { position: relative; padding: 6px 9px; border: 1px solid var(--flow-line); text-align: center; background: var(--flow-bg); }
.flow-chart li + li::before { content: "↓"; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); line-height: 15px; }
.flow-chart li.flow-branch { justify-self: end; width: min(92%, 24rem); background: var(--flow-panel); }
.flow-chart li.flow-branch::before { content: "↳"; left: 15%; }
.flow-gap { display: inline-flex; align-items: center; gap: 3px; vertical-align: baseline; max-width: 100%; white-space: nowrap; }
.flow-gap-number { font-size: .92em; }
.flow-gap input {
  width: min(10.5em, 47vw); min-width: 0; height: 1.95em; padding: .2em .45em; border: 1px solid #81b0d1;
  border-radius: 4px; color: var(--flow-ink); background: var(--flow-bg); font: inherit; text-align: center;
}
.flow-gap input:focus { outline: 1px solid var(--flow-accent); outline-offset: 0; }
.flow-bookmark-slot { display: inline-flex; width: 23px; }
.flow-bookmark {
  display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0;
  border: 1px solid var(--flow-line); border-radius: 3px; background: var(--flow-bg); color: var(--flow-ink);
}
.flow-bookmark[aria-pressed="true"] { color: #ab2647; border-color: #d5909d; }
.flow-bookmark[aria-pressed="true"] svg path { fill: currentColor; }
.flow-bottom {
  z-index: 1; padding: 12px 13px 8px; border: 1px solid #b5cbd7; background: var(--flow-bg);
  box-shadow: 0 -2px 9px #14213d09;
}
.flow-parts { justify-content: space-between; gap: 10px; }
.flow-part { gap: 9px; }
.flow-part > button { white-space: nowrap; }
.flow-part > button[aria-pressed="true"] { border-color: #aabac4; }
.flow-numbers { gap: 2px; }
.flow-numbers button {
  position: relative; min-width: 24px; min-height: 31px; padding: 2px 4px; border: 1px solid transparent;
  border-top: 2px solid #d3d7d9; background: var(--flow-bg); color: var(--flow-ink); font: 12px/1 Arial, sans-serif;
}
.flow-numbers .flow-answered { background: #d5eadf; border-top-color: #4f8f68; color: #15463a; }
.flow-numbers .flow-current { border-color: #008fd3; }
.flow-numbers .flow-bookmarked::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: #cb4566; }
.flow-bottom-actions { justify-content: flex-end; margin-top: 5px; }
.flow-actions button:disabled { opacity: .5; cursor: default; }
.flow-shell:is([data-flow-theme="black-white"], [data-flow-theme="black-yellow"]) .form-error { color: var(--flow-ink); }
.flow-notes {
  position: absolute; z-index: 3; top: 120px; right: 15px; width: min(22rem, calc(100% - 30px));
  padding: .8rem; border: 1px solid var(--flow-line); border-radius: 6px; background: var(--flow-bg);
  box-shadow: 0 6px 24px #14213d28;
}
.flow-notes label { display: grid; gap: .5rem; font-weight: 650; }
.flow-notes textarea { width: 100%; min-height: 5rem; resize: vertical; padding: .45rem; color: var(--flow-ink); background: var(--flow-bg); font: inherit; }
.flow-confirm { max-width: min(30rem, calc(100% - 2rem)); border: 1px solid var(--flow-line); border-radius: 12px; color: var(--flow-ink); background: var(--flow-bg); }
.flow-confirm::backdrop { background: #14213d66; }
.flow-confirm h2 { font-size: 1.55rem; margin-bottom: .65rem; }
.flow-result { max-width: 55rem; }
.flow-review { display: grid; gap: .75rem; margin-block: 1rem 1.5rem; padding-inline-start: 1.8rem; }
.flow-review li { border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1rem; background: var(--paper); overflow-wrap: anywhere; }
.flow-review p { margin: .25rem 0 0; }
.flow-correct { color: var(--deep-teal); }
.flow-incorrect { color: #8b3829; }
.flow-explanation { color: var(--muted); }
@media (max-width: 850px) {
  .wrap { width: min(100% - 40px, 1168px); }
  .hero { gap: 1.7rem; }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; padding-block: .7rem; gap: .3rem .8rem; }
  .header-inner .brand img { width: 144px; }
  nav { order: 3; width: 100%; gap: .9rem; flex-wrap: wrap; }
  nav a { font-size: .88rem; }
  .header-inner .button { min-height: 39px; font-size: .82rem; padding-inline: .6rem; white-space: nowrap; }
  .hero { grid-template-columns: 1fr; padding-block: 2.4rem 3.2rem; row-gap: 1.55rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero-photo { margin-right: 9px; }
  .hero-photo img { aspect-ratio: 1.42; }
  .hero-photo::before { inset: 9px -8px -9px 8px; }
  .photo-caption { bottom: 12px; left: 12px; }
  .section-heading, .next-section { align-items: start; flex-direction: column; }
  .next-section { padding-block: 2.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 1rem; gap: .5rem; }
  .page { padding-block: 2rem 3rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .stats { gap: .5rem; }
  .stats article { padding: .65rem; }
  .stats span { font-size: .89rem; }
  .stats strong { font-size: 1.65rem; }
  .timer { min-width: 85px; padding-inline: .5rem; }
  .exam-top h1 { font-size: 1.9rem; }
  .exam-nav { gap: .4rem; font-size: .88rem; }
  .button { padding-inline: .85rem; }
  .flow-library-list { grid-template-columns: 1fr; }
  .flow-shell { padding: 4px; }
  .flow-masthead { padding-inline: 9px; font-size: 14px; }
  .flow-masthead span:last-child { font-size: 11px; }
  .flow-top { grid-template-columns: 1fr auto; gap: 5px 8px; padding: 7px 9px; }
  .flow-top .flow-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .flow-settings-menu { left: 0; right: auto; }
  .flow-audio-row { padding-inline: 9px; }
  .flow-audio-row .study-audio-timeline { flex-basis: 100%; padding: 2px 0 5px; }
  .flow-progress { min-width: 69px; }
  .flow-elapsed { font-size: 20px; }
  .flow-content { padding-top: 10px; }
  .flow-notes { top: 132px; }
  .flow-gap input { width: min(10em, 46vw); }
  .flow-parts { gap: 5px; }
  .flow-part { gap: 4px; }
  .flow-numbers { gap: 1px; }
  .flow-numbers button { min-width: 21px; min-height: 29px; padding-inline: 2px; }
}
