/* JDCre8tives Learning Hub
   Brand: Knowledge Blue #183B56, Transformational Indigo #5B4B8A, Action Amber #F4A261,
   Ivory #F7F5F0, Soft Blue #EAF0F4. DM Serif Display for headings, Montserrat for everything else.
   Shape rule: controls (buttons, inputs, chips) 4px, cards and photos 14px, avatars round.
   Text colors are checked for WCAG AA in both themes. Sizes are in rem so "Larger text" scales the page. */

:root {
  --blue: #183B56; --indigo-brand: #5B4B8A; --amber: #F4A261; --ivory: #F7F5F0; --soft-blue: #EAF0F4;
  --bg: #F7F5F0;
  --surface: #FFFDF9;
  --surface-2: #EAF0F4;
  --ink: #183B56;
  --muted: #536677;
  --line: #E2DED5;
  --field: #7D8F9D;
  --indigo: #5B4B8A;
  --indigo-soft: #EEEAF5;
  --amber-soft: #FCEEE2;
  --amber-ink: #9A5317;
  --ok: #2E7356; --ok-soft: #E6F2EC;
  --bad: #A44A22; --bad-soft: #FBECE3;
  --focus: #5B4B8A;
  --hero: #183B56; --hero-ink: #F7F5F0; --hero-muted: #C9D6E0;
  --plate: transparent;
  --shadow: 0 1px 2px rgb(24 59 86 / .06), 0 12px 32px -20px rgb(24 59 86 / .4);
  --r-ctl: 4px; --r-card: 14px;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: Montserrat, 'Segoe UI', Arial, sans-serif;
  --side: 17rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1822; --surface: #15222E; --surface-2: #1C2D3B; --ink: #EDF1F4; --muted: #A3B2BE;
    --line: #263746; --field: #627789; --indigo: #B8ABE6; --indigo-soft: #241F3B; --amber-soft: #33261B;
    --amber-ink: #F4B27E; --ok: #72CBA3; --ok-soft: #14302A; --bad: #F0A07A; --bad-soft: #3A2219;
    --focus: #F4A261; --hero: #183B56; --plate: #F7F5F0;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -20px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1822; --surface: #15222E; --surface-2: #1C2D3B; --ink: #EDF1F4; --muted: #A3B2BE;
  --line: #263746; --field: #627789; --indigo: #B8ABE6; --indigo-soft: #241F3B; --amber-soft: #33261B;
  --amber-ink: #F4B27E; --ok: #72CBA3; --ok-soft: #14302A; --bad: #F0A07A; --bad-soft: #3A2219;
  --focus: #F4A261; --hero: #183B56; --plate: #F7F5F0;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -20px rgb(0 0 0 / .7);
  color-scheme: dark;
}
:root[data-text="large"] { font-size: 112.5%; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
h1 { font-size: 2.75rem; line-height: 1.1; }
h2 { font-size: 1.75rem; line-height: 1.2; }
h3 { font-size: 1.05rem; line-height: 1.4; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--indigo); padding-right: .04em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.i { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: currentColor; --duo: var(--amber); --duo-o: .55; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: var(--r-ctl); font-weight: 600; }
.skip:focus { top: 1rem; }

.eyebrow { display: flex; align-items: center; gap: .75rem; font: 600 .72rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--indigo); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 1.75rem; height: 2px; background: var(--amber); flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Buttons and controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3rem; padding: .75rem 1.4rem; border-radius: var(--r-ctl); font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn .i { width: 1.1rem; height: 1.1rem; }
/* Every button is Action Amber with Knowledge Blue text. A pressed toggle (Completed) becomes an amber outline. */
.btn { background: var(--amber); color: #183B56; }
.btn:hover { background: #F29A52; box-shadow: 0 8px 20px -10px rgb(244 162 97 / .8); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.iconbtn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-ctl); color: var(--ink); }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn[aria-pressed="true"] { background: var(--surface-2); }
.textbtn { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.textbtn:hover { color: var(--ink); }
.textlink { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: var(--indigo); }
.textlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: .45rem .6rem; border-radius: var(--r-ctl); background: var(--amber-soft); color: var(--amber-ink); white-space: nowrap; }
.chip .i { width: .95rem; height: .95rem; }
.chip.indigo { background: var(--indigo-soft); color: var(--indigo); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }

label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .45rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 3rem; background: var(--surface); border: 1.5px solid var(--field); border-radius: var(--r-ctl); padding: .7rem .85rem; font-size: 1rem; color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
input[aria-invalid="true"] { border-color: var(--bad); }
textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
textarea[rows="1"] { min-height: 3rem; }
.field { margin-bottom: 1.25rem; }
.help { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.error { font-size: .875rem; font-weight: 600; color: var(--bad); margin-top: .4rem; }
.error:empty { display: none; }

/* Boot loader */
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; }

/* Access gate */
/* One minimal centered card that always fits the window. Display tools sit in the card's top-right corner. */
.gate { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 1rem 1.5rem; }
.gate-card { position: relative; width: min(52rem, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); text-align: center; }
.gate-panel { padding: 2.25rem 4.5rem 2.25rem; }
.gate .field { margin-bottom: 1.1rem; }
.gate input { text-align: center; }
.gate-form .eyebrow { justify-content: center; }
.gate-form .eyebrow::after { content: ''; width: 1.75rem; height: 2px; background: var(--amber); flex-shrink: 0; }
.gate-top { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.gate-top .display-tools { position: absolute; top: .75rem; right: .75rem; }
.gate-top .logo { width: 12.5rem; height: auto; }
.gate-form h1 { font-size: 2.35rem; margin-bottom: .6rem; }
.gate-lead { color: var(--muted); margin-bottom: 1.5rem; text-wrap: balance; }
/* Short laptop screens: tighten further so the card still fits without scrolling */
@media (max-height: 760px) and (min-width: 1024px) {
  .gate-panel { padding: 1.5rem 4.5rem 1.75rem; }
  .gate-top { margin-bottom: 1.25rem; }
  .gate-form .eyebrow { display: none; }
  .gate-lead { margin-bottom: 1.15rem; }
  .gate .field { margin-bottom: .9rem; }
}
#code { font-size: 1.15rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
#code::placeholder { letter-spacing: .12em; }
.gate-note { font-size: .85rem; color: var(--muted); margin-top: 1.25rem; text-wrap: balance; }
.gate-note .i { vertical-align: -.2em; margin-right: .45rem; }
.gate-privacy { font-size: .78rem; color: var(--muted); margin-top: .5rem; text-wrap: balance; }
.gate-foot { font-size: .8rem; color: var(--muted); text-align: center; }
/* Large screens: a bigger card with larger type and controls (still fits the window) */
@media (min-width: 1280px) and (min-height: 860px) {
  .gate-card { width: min(60rem, 100%); }
  .gate-panel { padding: 3rem 6rem 3rem; }
  .gate-top { margin-bottom: 2.25rem; }
  .gate-top .logo { width: 15rem; }
  .gate-form .eyebrow { font-size: .8rem; }
  .gate-form h1 { font-size: 3.1rem; margin-bottom: .75rem; }
  .gate-lead { font-size: 1.1rem; margin-bottom: 1.85rem; }
  .gate label { font-size: .95rem; }
  .gate input { min-height: 3.6rem; font-size: 1.1rem; padding: .8rem 1rem; }
  .gate #code { font-size: 1.3rem; }
  .gate .help { font-size: .88rem; }
  .gate .field { margin-bottom: 1.35rem; }
  .gate .btn { min-height: 3.6rem; font-size: .85rem; }
  .gate-note { font-size: .92rem; }
  .gate-foot { font-size: .85rem; }
}

/* Logo: shown as supplied. In dark mode it sits on an ivory plate so the navy and indigo stay legible. */
.logo-plate { display: inline-block; background: var(--plate); border-radius: 10px; padding: .5rem .7rem; }

/* App shell */
#sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--side); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 1.5rem 1rem; overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; }
.brand .logo { width: 13rem; height: auto; }
.close-nav { display: none; }
.navlabel { font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 2.25rem .9rem .75rem; }
#nav a { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 3rem; padding: .7rem .9rem; margin: .2rem 0; border-radius: 10px; font-size: .92rem; font-weight: 600; color: var(--muted); }
#nav a .i { width: 1.4rem; height: 1.4rem; }
#nav a:hover { background: var(--surface-2); color: var(--ink); }
#nav a[aria-current="page"] { background: var(--amber-soft); color: var(--ink); }
#nav a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: .7rem; bottom: .7rem; width: 3px; border-radius: 3px; background: var(--amber); }
.sidebar-bottom { margin-top: auto; padding: 2rem .9rem 0; }
.close-mark { display: flex; gap: .45rem; font: 1.35rem/1 var(--serif); color: var(--indigo); margin-bottom: .75rem; }
.close-mark span::after { content: '.'; color: var(--amber); }
.side-note { font-size: .82rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }

.workspace { margin-left: var(--side); min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; height: 4.5rem; padding: 0 3rem; background: var(--bg); border-bottom: 1px solid var(--line); }
#menu, .topbar-mark { display: none; }
.topbar-mark img { width: 2rem; height: 2rem; }
.crumb { font-size: .85rem; color: var(--muted); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb strong { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.display-tools { display: flex; gap: .25rem; }
.student { display: flex; align-items: center; gap: .6rem; font-size: .875rem; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--amber); color: #183B56; font-weight: 700; font-size: .85rem; }
.scrim { display: none; }
#main { width: 100%; max-width: 74rem; margin: 0 auto; padding: 2.5rem 3rem 4rem; flex: 1; }
#main:focus { outline: none; }
.foot { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 3rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; box-shadow: var(--shadow); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1rem; }
.section-head h2 { font-size: 1.6rem; }
.section-head h2::before, .prose > h2::before { content: ''; display: block; width: 2rem; height: 3px; border-radius: 3px; background: var(--amber); margin-bottom: .7rem; }
.section-head .textlink { white-space: nowrap; }
.pageintro { margin-bottom: 2rem; max-width: 46rem; }
.pageintro h1 { margin-bottom: .75rem; }
.pageintro p { color: var(--muted); }
.note { display: flex; gap: .75rem; font-size: .875rem; padding: .9rem 1.1rem; border-radius: 10px; background: var(--surface-2); margin-bottom: 1.5rem; }
.note .i { margin-top: .15rem; color: var(--indigo); }

/* Brand visual element: a quiet dot grid in the top-right corner of each page (wide screens only) */
.view { position: relative; }
@media (min-width: 1100px) {
  .view::before { content: ''; position: absolute; top: -.5rem; right: 0; width: 8.5rem; height: 5.5rem; background: radial-gradient(circle, var(--indigo) 1.6px, transparent 2px) 0 0 / 17px 17px; opacity: .3; pointer-events: none; }
}

/* Dashboard */
.greeting { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.greeting h1 { font-size: 2.25rem; margin-bottom: .25rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: var(--hero); color: var(--hero-ink); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); min-height: 22rem; }
.hero-copy { padding: 2.75rem 3rem; display: flex; flex-direction: column; }
.hero .eyebrow { color: #F7C9A4; }
.hero-title { font-size: 2.9rem; line-height: 1.08; margin-bottom: .75rem; color: var(--hero-ink); }
.hero-title em { color: var(--amber); }
.hero-sub { color: var(--hero-muted); max-width: 28rem; margin-bottom: 1.75rem; }
.progress { max-width: 24rem; margin-bottom: 1.75rem; }
.progress-label { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--hero-muted); margin-bottom: .5rem; }
.progress-label strong { color: var(--hero-ink); font-weight: 600; }
.bar { height: .45rem; border-radius: 1rem; background: rgb(247 245 240 / .16); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--amber); transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: auto; }
.upnext-line { font-size: .875rem; color: var(--hero-muted); }
.upnext-line strong { display: block; color: var(--hero-ink); font-weight: 600; }
.hero-photo { position: relative; margin: 0; min-height: 18rem; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero-photo::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--hero) 0%, rgb(24 59 86 / 0) 30%), linear-gradient(to top, rgb(14 24 34 / .8), rgb(14 24 34 / 0) 40%); }
.hero-photo::after { content: ''; position: absolute; z-index: 1; width: 8.5rem; height: 8.5rem; left: -3rem; bottom: 22%; border: 2px solid var(--amber); border-radius: 50%; }
.hero-photo figcaption { position: absolute; z-index: 2; right: 1.5rem; bottom: 1.25rem; text-align: right; font: 1.2rem/1.2 var(--serif); color: #F7F5F0; }
.hero-photo figcaption span { display: block; font: 600 .66rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; }
.list-card { padding: .5rem 0; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
a.row:hover { background: var(--surface-2); }
.tile { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); font: 1.5rem/1 var(--serif); }
.tile .i { width: 1.6rem; height: 1.6rem; }
.row.current .tile, .module-card.open .module-head .tile { background: var(--amber); color: #183B56; }
.row.locked .tile { color: var(--muted); }
.row-label { font: 600 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--indigo); }
.row h3 { margin: .1rem 0; }
.row p { font-size: .85rem; color: var(--muted); }
.tools .row { grid-template-columns: auto minmax(0, 1fr) auto; }
.tools .tile { background: var(--amber-soft); color: var(--ink); }
.row > .i { color: var(--muted); }
.quote { margin-top: 1.5rem; background: var(--indigo-soft); border: 0; box-shadow: none; }
.quote blockquote { font: 1.35rem/1.4 var(--serif); margin-bottom: 1rem; }
.quote p { font: 600 .7rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--indigo); }

/* Course and module pages */
.module-card { padding: 0; overflow: hidden; margin-bottom: 1.5rem; }
.module-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.module-head h2 { font-size: 1.5rem; }
.module-head p { color: var(--muted); font-size: .92rem; margin-top: .25rem; }
.module-card.locked .module-head { border-bottom: 0; }
.lrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .95rem 1.5rem; border-top: 1px solid var(--line); }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--surface-2); }
.lrow .state { width: 1.5rem; height: 1.5rem; color: var(--muted); }
.lrow.done .state { color: var(--ok); }
.lrow .t { display: block; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.lrow small { display: block; font-size: .75rem; color: var(--indigo); font-weight: 600; letter-spacing: .06em; }
.lrow .meta { font-size: .8rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: .35rem; }
.objectives { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.objectives li { display: flex; gap: .75rem; }
.objectives .i { color: var(--amber-ink); margin-top: .2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; }

/* Lesson reader */
.lesson { max-width: 60rem; margin: 0 auto; }
.lesson-head { margin-bottom: 2rem; }
.lesson-head h1 { margin-bottom: 1rem; }
.lesson-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .875rem; color: var(--muted); }
.lesson-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.stepper { display: flex; gap: .35rem; margin-top: 1.5rem; }
.stepper a { flex: 1; height: 2rem; display: flex; align-items: center; }
.stepper a::before { content: ''; flex: 1; height: .35rem; border-radius: 1rem; background: var(--line); }
.stepper a.done::before { background: var(--indigo); }
.stepper a[aria-current="step"]::before { background: var(--amber); }

.prose { font-size: 1.0625rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1rem; }
.prose > h2 { margin-top: 2.75rem; }
.prose > h2 + * { margin-top: .9rem; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 0; }
.prose li + li { margin-top: .4rem; }
.prose li::marker { color: var(--amber-ink); font-weight: 600; }
.lead { font-size: 1.25rem; line-height: 1.6; font-weight: 500; }

.say { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: inset 4px 0 0 var(--amber); padding: 1.25rem 1.5rem 1.25rem 1.75rem; font-size: 1.05rem; }
.say .i { color: var(--ink); width: 1.6rem; height: 1.6rem; margin-bottom: .4rem; }
.dialog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: .5rem 1.5rem; }
.line { padding: 1rem 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.who { display: flex; align-items: center; gap: .45rem; font: 600 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.who .i { width: 1.05rem; height: 1.05rem; }
.line.avoid .who { color: var(--bad); }
.line.try .who { color: var(--ok); }
.line.avoid q { color: var(--muted); }
.line q, .say q, .phrase q { display: block; quotes: '\201C' '\201D'; }
.line.remark p { font-style: italic; color: var(--muted); font-size: .98rem; }

.key { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; background: var(--indigo-soft); border-radius: var(--r-card); padding: 1.25rem 1.5rem; }
.key .i { width: 1.9rem; height: 1.9rem; color: var(--indigo); }
.key-label { font: 600 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--indigo); }
.key p:last-child { font-weight: 600; }

.remember { padding: 1.5rem 0 .5rem; }
.remember::before { content: ''; display: block; width: 2.5rem; height: 2px; background: var(--amber); margin-bottom: 1.25rem; }
.remember p { font: 1.6rem/1.35 var(--serif); }

.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 0 !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); margin: 0 !important; }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--amber-soft); color: var(--amber-ink); font: 1.15rem/1 var(--serif); }
.steps h3 { font-size: 1.02rem; margin: .45rem 0 .25rem; }
.steps p { color: var(--muted); font-size: 1rem; }

.notecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem; box-shadow: inset 4px 0 0 var(--indigo); }
.notecard > p:first-child { font-weight: 600; margin-bottom: .5rem; }
.notecard dl { margin: 0; }
.nrow { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.nrow:first-child { border-top: 0; }
.nrow dt { font: 600 .72rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); padding-top: .2rem; }
.nrow dd { margin: 0; }
.nrow ul { margin: 0; padding-left: 1.2rem; }

.formula { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.formula span { background: var(--surface-2); border-radius: var(--r-ctl); padding: .6rem .9rem; font-weight: 600; font-size: .95rem; }
.formula .i { color: var(--amber-ink); }

.nrow dd > p + ul { margin-top: .4rem; }
.notecard .after { margin-top: .9rem; font-size: 1rem; }
/* Module 4 objection responses and Module 5 follow-up templates, each with a Copy button */
.toolkit { list-style: none; padding: 0 !important; display: grid; gap: .9rem; }
.toolkit li { margin: 0 !important; }
.script, .letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem 1.5rem; }
.script h2, .letter h2 { font-size: 1.3rem; }
.script h2 { margin: .2rem 0 .45rem; }
.script-text { font-size: 1rem; margin-bottom: .9rem; }
.letter { box-shadow: inset 4px 0 0 var(--amber); }
.letter h2 { margin: .2rem 0 .8rem; }
.letter-body { border: 1.5px dashed var(--field); border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1rem; font-size: 1rem; }
.letter-body > * + * { margin-top: .6rem; }
mark.ph { background: var(--amber-soft); color: var(--amber-ink); border-radius: 3px; padding: 0 .2em; font-weight: 600; }
.mistakes { display: grid; gap: .9rem; }
.mistake { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.25rem 1.5rem; }
.mistake h3 { margin-bottom: .5rem; }
.mistake > p { font-size: 1rem; }
.mistake .line { padding: .65rem 0; }

.phrases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.phrase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem 1.25rem; font-size: 1rem; }
.phrase .i { color: var(--ink); margin-bottom: .35rem; }

.framework { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.framework li { margin: 0 !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem 1rem; }
.framework b { display: block; font: 2.25rem/1 var(--serif); color: var(--indigo); margin-bottom: .6rem; font-weight: 400; }
.framework span { display: block; font-size: .88rem; font-weight: 600; line-height: 1.4; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem 1.5rem 1.5rem; box-shadow: inset 0 4px 0 var(--amber), var(--shadow); }
.panel.quiz { box-shadow: inset 0 4px 0 var(--indigo), var(--shadow); }
.panel-head { display: flex; align-items: center; gap: .6rem; font: 600 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--indigo); margin-bottom: 1rem; }
.panel-head .i { width: 1.5rem; height: 1.5rem; color: var(--ink); }
.panel > * + * { margin-top: .9rem; }
.panel ul { padding-left: 1.3rem; }

.quiz .q { font-size: 1.1rem; font-weight: 600; line-height: 1.45; }
.options { display: grid; gap: .65rem; }
.practice { display: grid; gap: 2.75rem; }
@media (min-width: 1280px) { .practice .options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; } }
.opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .9rem; width: 100%; text-align: left; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 1rem; line-height: 1.55; transition: border-color .15s ease, background-color .15s ease; }
.opt:hover:not([disabled]) { border-color: var(--indigo); }
.opt[disabled] { cursor: default; }
.opt b { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--surface-2); font-size: .85rem; }
.opt .mark { display: grid; width: 1.4rem; min-height: 1.4rem; }
.opt .mark .i { width: 1.4rem; height: 1.4rem; }
.opt.is-correct { border-color: var(--ok); background: var(--ok-soft); }
.opt.is-correct .mark { color: var(--ok); }
.opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.is-wrong .mark { color: var(--bad); }
.feedback { background: var(--surface-2); border-radius: 10px; padding: 1.1rem 1.25rem; }
.feedback > * + * { margin-top: .6rem; }
.feedback strong { display: flex; align-items: center; gap: .5rem; }
.feedback .ok { color: var(--ok); }
.feedback .bad { color: var(--bad); }

.template { border: 1.5px dashed var(--field); border-radius: 10px; padding: 1rem 1.15rem; font-size: 1rem; }
.template small { display: block; font: 600 .68rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.requirement { display: flex; gap: .6rem; font-size: .95rem; }
.requirement .i { color: var(--amber-ink); margin-top: .2rem; }
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.status { font-size: .85rem; color: var(--muted); }

.checks { list-style: none; padding: 0 !important; display: grid; gap: .5rem; }
.checks li { margin: 0 !important; }
.checks label { display: flex; align-items: flex-start; gap: .85rem; margin: 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 500; font-size: 1rem; cursor: pointer; }
.checks input { width: 1.35rem; height: 1.35rem; min-height: 0; margin: .15rem 0 0; accent-color: var(--indigo); flex-shrink: 0; }
.checks input:checked + span { color: var(--muted); }

.upnext { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; background: var(--surface-2); border-radius: var(--r-card); padding: 1.5rem; }
.upnext h3 { font: 1.4rem/1.25 var(--serif); margin: .25rem 0 .4rem; }
.upnext p { font-size: 1rem; color: var(--muted); }
/* Module 2 additions: sub-headings, multi-quote lines, grouped question fields, folded sample answers, coach note */
.prose > h3.sub { font-size: 1.15rem; margin-top: 2rem; }
.line q + q { margin-top: .6rem; }
.notecard .says { border-top: 1px solid var(--line); margin-top: .25rem; }
.notecard .says .line { padding-bottom: 0; }
.group { border: 0; padding: 0; margin: 1.5rem 0 0; min-width: 0; }
.group legend { padding: 0; font-weight: 600; font-size: 1.02rem; }
.group .help { margin: .2rem 0 .85rem; }
.group .field { margin-bottom: .8rem; }
.samples summary > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.samples-body { padding: 0 1.1rem 1.1rem; font-size: 1rem; }
.samples-body > * + * { margin-top: .6rem; }
.coachnote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; background: var(--amber-soft); border-radius: var(--r-card); padding: 1.4rem 1.5rem; }
.coachnote img { width: 3.75rem; height: 3.75rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--amber); }
.coachnote p + p { margin-top: .55rem; }
.coachnote .key-label { color: var(--amber-ink); }
.signoff { text-align: center; padding-top: 1.5rem; }
.signoff p:first-child { font: 1.3rem/1.3 var(--serif); }
.signoff p:last-child { font-style: italic; color: var(--muted); }

.lesson-end { margin-top: 3rem; }
.complete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.complete h2 { font-size: 1.35rem; }
.complete p { color: var(--muted); font-size: .92rem; }
.btn.is-done { background: transparent; color: var(--amber-ink); box-shadow: inset 0 0 0 1.5px var(--amber); }
.btn.is-done:hover { background: var(--amber-soft); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.pager a { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.pager a:hover { border-color: var(--indigo); }
.pager a.next { text-align: right; grid-column: 2; align-items: flex-end; }
.pager small { display: inline-flex; align-items: center; gap: .35rem; font: 600 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pager span { font-weight: 600; font-size: .95rem; }

/* Library, planner, resources */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.result > * + * { margin-top: 1rem; }
.result h2 { font-size: 1.6rem; }
.result ol { padding-left: 1.3rem; }
.result ol li + li { margin-top: .35rem; }
.empty { text-align: center; padding: 2.5rem 1rem; }
.empty h2 { margin-bottom: .5rem; }
.empty > * + * { margin-top: 1rem; }
details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: .75rem 1.1rem; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .i { transition: transform .2s ease; }
details[open] summary .i { transform: rotate(180deg); }
details > p { padding: 0 1.1rem 1rem; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }
.formgrid .full { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.saved { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.saved:first-child { border-top: 0; }
.saved strong { display: block; }
.saved small { color: var(--muted); font-size: .82rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.resource { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.resource .tile { background: var(--amber-soft); }
.resource h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.resource p { color: var(--muted); font-size: .92rem; margin-bottom: .9rem; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translateX(-50%); max-width: calc(100% - 2rem); background: var(--ink); color: var(--bg); border-radius: 8px; padding: .8rem 1.2rem; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow); }
.toast:empty { display: none; }

/* Motion: only when the reader has not asked for less of it */
@media (prefers-reduced-motion: no-preference) {
  .view { animation: rise .45s cubic-bezier(.16, 1, .3, 1) both; }
  .boot img { animation: breathe 1.6s ease-in-out infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
  @keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Tablet: sidebar becomes a slide-in menu */
@media (max-width: 1023px) {
  #sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 16px 0 40px rgb(14 24 34 / .25); }
  body.navopen #sidebar { transform: none; visibility: visible; transition: transform .25s ease; }
  body.navopen .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgb(14 24 34 / .45); }
  .close-nav { display: inline-grid; }
  .workspace { margin-left: 0; }
  #menu, .topbar-mark { display: inline-grid; }
  .topbar { padding: 0 1.5rem; gap: .5rem; }
  #main { padding: 2rem 1.5rem 3rem; }
  .foot { padding: 1.25rem 1.5rem; }
  .dash-grid, .split { grid-template-columns: 1fr; gap: 0; }
  .split > * + * { margin-top: 1.5rem; }
  .framework { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
  .gate-card { width: min(32rem, 100%); }
}

/* Phone */
@media (max-width: 640px) {
  h1 { font-size: 2.15rem; }
  .gate { padding: 1rem; }
  .gate-panel { padding: 3.5rem 1.25rem 2rem; }
  .gate-form .eyebrow { text-wrap: balance; }
  .gate-form .eyebrow::before, .gate-form .eyebrow::after { display: none; }
  .gate-top { margin-bottom: 1.75rem; }
  .gate-top .logo { width: 11rem; }
  .gate-form h1 { font-size: 2.1rem; }
  .topbar { height: 4rem; padding: 0 .75rem; }
  .crumb, .student-name { display: none; }
  .topbar-right { margin-left: auto; gap: .25rem; }
  #main { padding: 1.5rem 1rem 2.5rem; }
  .foot { flex-direction: column; gap: .25rem; padding: 1.25rem 1rem; }
  .card { padding: 1.25rem; }
  .greeting h1 { font-size: 1.9rem; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 1.75rem 1.4rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { min-height: 22rem; }
  .hero-photo::before { background: linear-gradient(to bottom, var(--hero) 0%, rgb(24 59 86 / 0) 12%), linear-gradient(to top, rgb(14 24 34 / .8), rgb(14 24 34 / 0) 35%); }
  .hero-photo::after { display: none; }
  .row, .lrow, .module-head { padding-left: 1rem; padding-right: 1rem; gap: .85rem; }
  .row .chip { display: none; }
  .module-head { grid-template-columns: auto minmax(0, 1fr); }
  .module-head > :last-child { grid-column: 1 / -1; justify-self: start; }
  .lrow .meta { display: none; }
  .prose { font-size: 1.03rem; }
  .remember p { font-size: 1.4rem; }
  .nrow { grid-template-columns: 1fr; gap: .25rem; }
  .phrases, .filters, .formgrid, .resource-grid, .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: auto; }
  .say, .dialog, .panel, .notecard, .mistake { padding-left: 1.15rem; padding-right: 1.15rem; }
  .actions .btn, .complete .btn { flex: 1 1 auto; }
  .saved { flex-wrap: wrap; padding: 1rem; }
}

/* Prep Hub and Discovery Library */
.btn.sm { min-height: 2.75rem; padding: .5rem .9rem; font-size: .72rem; letter-spacing: .1em; }
.btn.sm .i { width: 1rem; height: 1rem; }
.prep-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem; align-items: center; margin-top: 1.5rem; background: var(--indigo-soft); border: 0; box-shadow: none; }
.prep-cta h2 { font-size: 1.5rem; margin-bottom: .15rem; }
.prep-cta .tile { background: var(--amber); color: #183B56; }
.hub-note { margin-top: 1.25rem; }
.folds { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.folds.top { margin: 1.75rem 0 0; }
.samples-body ul, .samples-body ol { padding-left: 1.3rem; margin: 0; }
.linklist { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .65rem; }
.linklist.inline { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; }
.filters.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
.qgroup { margin-top: 1.5rem; }
.qgroup > h3 { font-size: 1.1rem; }
.qgroup > .help { margin: .15rem 0 0; font-size: .875rem; }
.qlist { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .55rem; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1.1rem; }
.qrow details { grid-column: 1 / -1; }
.qtext { font-weight: 500; line-height: 1.5; }
.qid { font-size: .72rem; letter-spacing: .05em; color: var(--muted); margin-top: .15rem; }
.exmpl { border-left: 3px solid var(--amber); padding-left: .9rem; }
.exmpl .who { margin-bottom: .15rem; }
.stepnav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.75rem; }
.stepnav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .85rem .4rem .45rem; border-radius: var(--r-ctl); background: var(--surface-2); font-size: .85rem; font-weight: 600; color: var(--muted); }
.stepnav a:hover { color: var(--ink); }
.stepnav b { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--surface); color: var(--ink); font-size: .78rem; }
.stepnav a[aria-current="step"] { background: var(--amber); color: #183B56; }
.stepnav a[aria-current="step"] b { background: #183B56; color: #F7F5F0; }
.group.first { margin: 0 0 1.5rem; }
.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .6rem; }
.radio { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; margin: 0; padding: .7rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 1rem; font-weight: 500; cursor: pointer; }
.radio input { width: 1.3rem; height: 1.3rem; min-height: 0; margin: 0; accent-color: var(--indigo); flex-shrink: 0; }
.radio:has(input:checked) { border-color: var(--indigo); background: var(--indigo-soft); }
.details-help { margin: 0 0 1.25rem; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.25rem; }
.seg button { min-height: 3.25rem; padding: .6rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.seg button:hover { border-color: var(--indigo); }
.seg button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #183B56; }
.seg .count { font-weight: 500; white-space: nowrap; }
.custom-q { padding: 1.25rem 1.5rem; }
.inline-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.qlist.own .qrow { background: var(--bg); align-items: center; }
.picks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: .9rem 1.1rem; }
.pick-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; }
.pick-n { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--amber-soft); color: var(--amber-ink); font: 1rem/1 var(--serif); margin-top: .2rem; }
.pick-top .qtext { padding-top: .3rem; }
.pick-tools { display: flex; }
.iconbtn[disabled] { opacity: .35; cursor: default; }
.iconbtn[disabled]:hover { background: none; }
.i.up { transform: rotate(180deg); }
.pick-more { margin-top: .7rem; background: var(--bg); }
.coachfold { background: var(--surface); }
.pick-more .coachfold { margin-top: .25rem; }
.qrow .coachfold { background: var(--bg); }
.coachfold summary { min-height: 2.5rem; padding: .35rem .9rem; font-size: .85rem; }
.pick-more textarea { min-height: 4.75rem; }
.pick-more textarea[rows="1"] { min-height: 3rem; }
.pick-more textarea[rows="5"] { min-height: 8rem; }
.split.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.section-head.first { margin-top: 0; }
.top-gap { margin-top: 1.5rem; }
.prep-status { margin-top: 1.5rem; }
.prep-foot { margin-top: .75rem; }
.sheet-actions { margin-bottom: 1.25rem; }
.sheet > * + * { margin-top: 1.75rem; }
.sheet h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.sheet ol { padding-left: 1.3rem; margin: 0; display: grid; gap: .9rem; }
.sheet li > p + p { margin-top: .25rem; font-size: .95rem; }
.sheet-checks { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.5rem; }
.sheet-checks li { display: flex; gap: .55rem; font-size: .92rem; color: var(--muted); }
.sheet-checks li.on { color: var(--ink); }
.sheet-checks .i { margin-top: .15rem; color: var(--muted); }
.sheet-checks li.on .i { color: var(--ok); }

@media (max-width: 1023px) {
  .split.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prep-cta { grid-template-columns: auto minmax(0, 1fr); }
  .prep-cta .btn { grid-column: 1 / -1; width: 100%; }
  .filters.wide, .radios, .seg, .sheet-checks { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr; }
  .qrow .btn { justify-self: start; }
  .qlist.own .qrow { align-items: start; }
  .custom-q { padding: 1rem; }
  .pick-top { grid-template-columns: auto minmax(0, 1fr); }
  .pick-tools { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Objection Toolkit, Script Library, Workbook, Scorecard, knowledge-check gate */
.gate-note a { color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.complete .btn[disabled] { cursor: not-allowed; }
.quiz-ok { margin-left: auto; }
.hub-links { margin-top: 1rem; }
.status-chip { margin-top: .35rem; white-space: normal; line-height: 1.3; }
.inline-check { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-weight: 500; cursor: pointer; }
.inline-check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; accent-color: var(--indigo); }
.obj-list { margin-top: 1.5rem; padding: 0; }
.obj-list .script-text { margin-bottom: .75rem; }
.obj-list .who { margin: .3rem 0 .15rem; }
.top-sm { margin-top: .75rem; }
.folds .samples-body h3.fold-h { font-size: 1rem; margin-top: 1rem; }
.folds .samples-body .qlist { margin-top: .4rem; }
.tools-lead { margin-bottom: .75rem; }
.obj-text { margin-top: .3rem; font-size: .95rem; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li + li { margin-top: .4rem; }
.letter .btn { margin-top: 0; }
.after-part { margin-bottom: 1.25rem; }
.after-part .field:last-of-type { margin-bottom: 0; }
.wbscore { font-size: 1.15rem; }
.prose .field { font-size: 1rem; }
.skills { display: grid; gap: .75rem; }
.skills h3 { font-size: 1.15rem; margin: .1rem 0 .4rem; }
.skills .field { margin-bottom: .8rem; }
.score-card { padding: 1.25rem 1.5rem; }
.score-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.score-grid dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.score-grid dd { margin: .1rem 0 0; font: 2rem/1.1 var(--serif); }
.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cmp th, .cmp td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font: 600 .72rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.cmp tbody th { font-weight: 600; }
@media (max-width: 640px) {
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obj-list .actions .btn { flex: 0 1 auto; }
}

.signout { width: min(32rem, calc(100% - 2rem)); padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.signout::backdrop { background: rgb(14 24 34 / .55); }
.signout h2 { margin-bottom: .5rem; }
.signout p { color: var(--muted); }
.signout-actions { display: grid; gap: .6rem; margin-top: 1.25rem; justify-items: stretch; }
.signout-actions .textbtn { justify-self: center; }

/* Privacy policy page */
.gate-privacy a, .policy-card p a { color: var(--indigo); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.policy { width: min(48rem, 100%); margin: 0 auto; padding: 2rem 1rem 2.5rem; }
.policy-head { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.policy-head .logo { display: block; width: 11rem; height: auto; }
.policy-card { padding: 2.25rem 2.5rem; }
.policy-card h1 { margin-bottom: .4rem; }
.policy-date { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.policy-card h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.policy-card p + p, .policy-card p + .plain-list, .policy-card .plain-list + p { margin-top: .75rem; }
.policy-back { margin-top: 2rem; }
.policy .gate-foot { margin-top: 1.25rem; }
@media (max-width: 640px) {
  .policy-card { padding: 1.5rem 1.25rem; }
  .policy-card h1 { font-size: 2.1rem; }
}

@media print {
  #sidebar, .topbar, .foot, .scrim, .toast, .actions, #savedPlans, .note, .skip, .stepnav, .prep-foot, .prep-status, .pageintro .eyebrow { display: none !important; }
  .workspace { margin: 0; }
  #main { padding: 0; max-width: none; }
  body { background: #fff; color: #183B56; }
  .card { border: 0; box-shadow: none; padding: 0; }
  textarea { min-height: 5rem; }
  .formgrid { display: block; }
}
