:root {
  --ink: #152421;
  --muted: #60706c;
  --paper: #f4f0e5;
  --paper-deep: #e9e3d4;
  --panel: #fffdf7;
  --board: #102c2a;
  --board-deep: #091d1c;
  --board-edge: #1d4d48;
  --accent: #c96d42;
  --accent-dark: #9f4c2d;
  --cyan: #71d4d0;
  --pink: #f3a8b7;
  --green: #a9d889;
  --orange: #efb36e;
  --yellow: #f1dc80;
  --white-chalk: #f4f1e5;
  --border: #d7d1c2;
  --danger: #a63e3e;
  --shadow: 0 20px 55px rgba(27, 43, 39, 0.12);
  --small-shadow: 0 8px 24px rgba(27, 43, 39, 0.10);
  --radius: 18px;
  --radius-sm: 10px;
  --shell: min(1180px, calc(100vw - 40px));
  color-scheme: light;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: min(760px, calc(100vw - 28px)); margin-inline: auto; }

.site-header {
  width: var(--shell);
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(21, 36, 33, 0.12);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 17px; letter-spacing: -0.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--board); color: var(--white-chalk); font-weight: 800; font-size: 13px; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.compact-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.top-nav { display: flex; align-items: center; gap: 24px; }
.top-nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 650; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--ink); }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 60px; padding: 70px 0 80px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-dark); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 5vw, 76px); line-height: .99; letter-spacing: -.045em; font-weight: 500; }
.lede { max-width: 670px; margin: 24px 0 0; color: #475752; font-size: 19px; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  appearance: none; border: 0; border-radius: 999px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; cursor: pointer; font-weight: 780; font-size: 14px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.primary { color: #fff; background: var(--board); box-shadow: 0 8px 18px rgba(16,44,42,.22); }
.button.primary:hover { background: #17443f; box-shadow: 0 12px 24px rgba(16,44,42,.25); }
.button.secondary { color: var(--ink); background: var(--panel); box-shadow: inset 0 0 0 1px var(--border); }
.button.secondary:hover { background: #fff; box-shadow: inset 0 0 0 1px #aaa391, var(--small-shadow); }
.button.wide { width: 100%; }
.text-button { border: 0; padding: 4px; background: transparent; color: var(--board-edge); font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-button.danger { color: var(--danger); }
.icon-button { border: 1px solid var(--border); background: var(--panel); border-radius: 10px; min-width: 42px; min-height: 38px; padding: 8px 10px; cursor: pointer; font-weight: 750; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(201,109,66,.32); outline-offset: 2px; }
.metric-row { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); padding-top: 18px; }
.metric-row div { display: flex; flex-direction: column; gap: 2px; }
.metric-row strong { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.metric-row span { color: var(--muted); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.hero-board { position: relative; min-height: 510px; display: flex; align-items: center; }
.mini-chalkboard {
  position: relative; width: 100%; aspect-ratio: 1.35; border: 14px solid #6d4d37; border-radius: 8px; padding: 42px 34px;
  color: var(--white-chalk); background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.035), transparent 18%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,.035), transparent 24%),
    var(--board);
  box-shadow: var(--shadow), inset 0 0 80px rgba(0,0,0,.24); transform: rotate(-1deg);
}
.mini-chalkboard::after { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: repeating-linear-gradient(4deg, transparent 0 16px, rgba(255,255,255,.03) 17px); }
.chalk-kicker { display: block; font-weight: 850; letter-spacing: .12em; font-size: 14px; margin-bottom: 32px; }
.mini-node { display: inline-flex; align-items: center; justify-content: center; width: 45%; margin: 5px 2%; min-height: 55px; border: 2px solid currentColor; border-radius: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; transform: rotate(-.4deg); }
.mini-node.cyan { color: var(--cyan); }.mini-node.pink { color: var(--pink); }.mini-node.green { color: var(--green); }.mini-node.orange { color: var(--orange); }
.mini-arrow { text-align: center; font-size: 30px; line-height: 1; margin: 10px 0 4px; }
.mini-synthesis { width: 62%; margin: 0 auto; border: 2px solid var(--white-chalk); padding: 12px; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.phone-mock {
  position: absolute; width: 190px; min-height: 355px; right: -24px; bottom: -15px; border: 8px solid #1b2523; border-radius: 34px; padding: 34px 16px 18px;
  background: #fffdf8; color: var(--ink); box-shadow: 0 28px 60px rgba(16, 35, 33, .3); transform: rotate(3deg);
}
.phone-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 68px; height: 15px; border-radius: 10px; background: #1b2523; }
.phone-label { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.phone-mock strong { display: block; margin-top: 20px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.phone-mock p { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.35; margin: 6px 0 0; }
.phone-controls { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 4px; margin-top: 22px; }
.phone-controls span { display: grid; place-items: center; min-height: 34px; border-radius: 9px; background: var(--paper-deep); font-size: 11px; font-weight: 800; }
.phone-controls span:nth-child(2) { background: var(--board); color: white; }

.section { padding: 80px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4vw, 50px); font-weight: 500; letter-spacing: -.035em; }
.section-note { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; }
.talk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.talk-card { min-height: 330px; display: flex; flex-direction: column; padding: 24px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(27,43,39,.05); }
.talk-card.prototype { border-top: 4px solid var(--accent); }
.talk-card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prototype-badge, .tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; background: #f3e4d8; color: #7e4128; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.duration { color: var(--muted); font-size: 12px; font-weight: 700; }
.talk-card h3 { margin: 32px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.08; font-weight: 500; letter-spacing: -.025em; }
.talk-subtitle { margin: 0; color: var(--accent-dark); font-weight: 700; font-size: 13px; }
.talk-description { color: var(--muted); font-size: 14px; line-height: 1.55; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag-row .tag { background: var(--paper-deep); color: #52615d; }
.talk-card .button { margin-top: auto; }
.talk-card.empty { justify-content: center; align-items: center; border-style: dashed; background: transparent; text-align: center; }
.talk-card.empty h3 { margin-top: 0; }

.launch-section { scroll-margin-top: 30px; }
.session-code { display: inline-flex; border-radius: 12px; background: var(--board); color: white; padding: 10px 14px; font-weight: 850; letter-spacing: .12em; }
.launch-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; }
.launch-card { position: relative; min-height: 370px; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; }
.launch-card.featured { background: var(--board); color: var(--white-chalk); border-color: var(--board); }
.launch-card h3 { margin: 22px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.launch-card p { color: var(--muted); font-size: 14px; }
.launch-card.featured p { color: rgba(244,241,229,.73); }
.launch-card .button { margin-top: auto; }
.step-number { width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 850; }
.featured .step-number { border-color: rgba(255,255,255,.3); }
.qr { display: block; width: 165px; aspect-ratio: 1; background: white; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.launch-card .qr { margin: 8px auto 18px; align-self: center; }
.qr.large { width: min(230px, 28vh); }.qr.jumbo { width: min(330px, 36vh); }
.copy-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.copy-row input { min-width: 0; width: 100%; border: 1px solid var(--border); background: #f8f6ef; border-radius: 10px; padding: 10px; color: var(--muted); font-size: 11px; }
.launch-footer { display: flex; flex-wrap: wrap; gap: 24px; padding: 18px 4px 0; font-size: 13px; }

.principles-section { border-top: 1px solid var(--border); }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.principle-grid article { padding: 24px 20px 28px; border-top: 1px solid var(--ink); }
.principle-grid article > span { color: var(--accent-dark); font-size: 12px; font-weight: 800; }
.principle-grid h3 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.principle-grid p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.site-footer { min-height: 110px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }

.session-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 22px; padding: 0; background: var(--panel); box-shadow: 0 40px 100px rgba(12,31,28,.35); }
.session-dialog::backdrop { background: rgba(9,29,28,.62); backdrop-filter: blur(4px); }
.session-dialog form { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.dialog-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.dialog-close { border: 0; background: var(--paper-deep); border-radius: 50%; width: 36px; height: 36px; font-size: 22px; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
legend { width: 100%; margin-bottom: 10px; font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.choice-card { position: relative; display: block; min-height: 100px; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fff; }
.choice-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.choice-card input:checked + span { border-color: var(--board); box-shadow: inset 0 0 0 2px var(--board); background: #f1f6f4; }
.choice-card input:focus-visible + span { outline: 3px solid rgba(201,109,66,.32); }
.choice-card.compact { min-height: 58px; }
.choice-card.compact > span { justify-content: center; }
.form-error { min-height: 20px; margin-bottom: 10px; color: var(--danger); font-size: 13px; }

/* Explicit Arial/Times fallbacks keep Linux browsers from choosing unrelated
   generic fonts that overflow fixed board geometry. Preferred chalk fonts remain. */
/* Shared board renderer */
.board-canvas {
  position: relative; width: 100%; aspect-ratio: 1000 / 562; overflow: hidden; border-radius: 6px;
  color: var(--white-chalk); background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.035), transparent 17%),
    radial-gradient(circle at 83% 75%, rgba(255,255,255,.035), transparent 22%),
    linear-gradient(115deg, rgba(255,255,255,.012), transparent 35%),
    var(--board);
  box-shadow: inset 0 0 100px rgba(0,0,0,.28);
}
.board-canvas::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none; background: repeating-linear-gradient(3deg, transparent 0 17px, rgba(255,255,255,.022) 18px); }
.board-stage { position: absolute; inset: 0; transition: transform .42s ease; }
.board-layer { position: absolute; inset: 0; pointer-events: none; }
.board-authored-html { z-index: 2; }
.board-annotation-html { z-index: 5; }
.board-element { position: absolute; z-index: 2; white-space: pre; line-height: 1.08; text-wrap: nowrap; }
.board-element.is-new { animation: chalkReveal .52s cubic-bezier(.2,.75,.3,1) both; }
.board-element.is-erasing { animation: chalkErase .28s ease-in both; }
.board-text { font-family: "Comic Sans MS", "Bradley Hand", "Segoe Print", Arial, ui-rounded, sans-serif; font-weight: 650; }
.board-text-heading { white-space: pre; font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: .035em; }
.board-text-label { font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif; font-weight: 850; letter-spacing: .06em; }
.board-text-note { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.board-box, .board-note { display: flex; align-items: center; justify-content: center; text-align: center; border: 2px solid currentColor; border-radius: 8px; padding: 10px 12px; font-family: Georgia, "Times New Roman", serif; font-weight: 600; box-shadow: inset 0 0 18px rgba(255,255,255,.025); }
.board-note { border-style: dashed; transform: rotate(-.6deg); }
.board-image-wrap { display: flex; flex-direction: column; gap: 4px; }
.board-image-wrap { background: transparent; }
.board-image-wrap img, .board-image-wrap video { width: 100%; height: calc(100% - 18px); object-fit: contain; border-radius: 7px; background: transparent; }
.board-image-wrap.media-surface-dark-mat { padding: 5px; border: 2px solid rgba(244,241,229,.34); border-radius: 8px; background: rgba(4,31,29,.72); }
.board-image-caption { color: rgba(244,241,229,.72); font-size: calc(12px * var(--board-scale, 1)); text-align: center; line-height: 1.1; }
.board-media-fallback { flex: 1; display: grid; place-items: center; min-height: 0; border: 1px dashed rgba(244,241,229,.48); border-radius: 7px; color: rgba(244,241,229,.82); background: rgba(4,31,29,.82); font: 700 calc(20px * var(--board-scale, 1)) / 1.2 Inter, sans-serif; text-align: center; }
.board-media-fallback[hidden] { display: none; }
.board-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.board-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.board-line.is-new { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine .72s ease-out forwards; }
.board-line.is-erasing { animation: chalkErase .28s ease-in both; }
.board-element.emphasis-underline { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.board-element.emphasis-highlight { text-shadow: 0 0 10px color-mix(in srgb, currentColor 35%, transparent); filter: brightness(1.08); }
.board-element.emphasis-circle { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 50%; }
.board-line.is-emphasized { filter: drop-shadow(0 0 4px currentColor); }
.live-annotation { z-index: 5; pointer-events: none; }
.live-annotation.board-text { white-space: pre-wrap; overflow-wrap: anywhere; text-wrap: wrap; overflow: hidden; }
.chalk-white { color: var(--white-chalk); stroke: var(--white-chalk); }
.chalk-muted { color: rgba(244,241,229,.62); stroke: rgba(244,241,229,.62); }
.chalk-cyan { color: var(--cyan); stroke: var(--cyan); }
.chalk-pink { color: var(--pink); stroke: var(--pink); }
.chalk-green { color: var(--green); stroke: var(--green); }
.chalk-orange { color: var(--orange); stroke: var(--orange); }
.chalk-yellow { color: var(--yellow); stroke: var(--yellow); }
.chalk-coral { color: #ef866f; stroke: #ef866f; }
@keyframes chalkReveal { from { opacity: 0; transform: translateY(5px) scale(.99); filter: blur(2px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes chalkErase { to { opacity: 0; filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) {
  .board-stage { transition: none; }
  .board-element.is-new, .board-element.is-erasing, .board-line.is-new, .board-line.is-erasing { animation: none; }
}

/* Presentation */
.presentation-body { overflow: hidden; background: var(--board-deep); color: var(--white-chalk); }
.presentation-shell { width: 100vw; max-width: 100vw; height: 100vh; min-height: 480px; overflow: hidden; padding: 8px 14px 8px; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; background: var(--board-deep); }
.presentation-header { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.presentation-kicker { color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.presentation-status { display: flex; align-items: center; gap: 8px; }
.status-pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; color: inherit; opacity: .78; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.connection-dot { width: 10px; height: 10px; border-radius: 50%; background: #7c5e58; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.connection-dot.online { background: var(--green); }
.presentation-stage { position: relative; width: 100%; min-width: 0; min-height: 0; overflow: hidden; }
.board-region { position: absolute; inset: 0; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.board-region .board-canvas { width: min(100%, calc((100vh - 54px) * 1.779)); max-width: 100%; height: auto; border: 9px solid #6d4d37; border-radius: 4px; box-shadow: inset 0 0 100px rgba(0,0,0,.34), 0 16px 40px rgba(0,0,0,.28); }
.projection-prompt { position: absolute; width: clamp(320px, 30vw, 480px); max-width: calc(100% - 24px); max-height: 44%; min-width: 0; overflow: auto; z-index: 5; border: 2px solid rgba(244,241,229,.28); border-radius: 12px; padding: clamp(12px, 1.5vw, 22px); color: var(--white-chalk); background: rgba(4,31,29,.94); box-shadow: 0 14px 34px rgba(0,0,0,.36); font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 1.65vw, 28px); line-height: 1.28; }
.projection-prompt.prompt-bottom-right { right: 12px; bottom: 12px; }
.projection-prompt.prompt-bottom-left { left: 12px; bottom: 12px; }
.projection-prompt.prompt-top-right { right: 12px; top: 12px; }
.projection-prompt.prompt-top-left { left: 12px; top: 12px; }
.projection-prompt[hidden] { display: none; }
.presentation-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.presentation-progress span { display: block; height: 100%; background: var(--cyan); }
.presentation-overlay { position: fixed; inset: 0; z-index: 20; padding: 3vw; display: grid; place-items: center; background: rgba(5,20,19,.86); backdrop-filter: blur(6px); }
.overlay-card { width: min(1120px, 94vw); min-height: min(610px, 86vh); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; padding: clamp(28px, 4vw, 58px); background: #f5f1e6; color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.pairing-card { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 44px; }
.pairing-card h2, .resource-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5vw, 76px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.pairing-card p { color: var(--muted); font-size: 17px; }
.keyboard-hint { margin-top: 40px; font-size: 12px !important; }
kbd { border: 1px solid var(--border); border-bottom-width: 3px; border-radius: 6px; padding: 3px 7px; background: white; color: var(--ink); font-family: inherit; }
.pairing-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pairing-qr-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pairing-qr-grid strong { margin-top: 10px; font-size: 17px; }
.pairing-qr-grid small { color: var(--muted); }
.resource-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }
.resource-card p { color: var(--muted); font-size: 18px; }
.resource-code { margin-top: 50px; }
.blank-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: #061817; }
.blank-overlay p { color: rgba(255,255,255,.35); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.fatal-state { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: var(--paper); color: var(--ink); text-align: center; }
.fatal-state > div { max-width: 580px; }
.fatal-state h1 { font-family: Georgia, "Times New Roman", serif; font-size: 42px; font-weight: 500; }

/* Remote */
.remote-body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); background: #ece8de; }
.remote-header, .learner-header { position: sticky; top: 0; z-index: 20; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; background: rgba(244,240,229,.94); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.connection-label { padding: 5px 8px; border-radius: 999px; background: #e1d9cc; color: #725d54; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.connection-label.online { background: #dcebd3; color: #426337; }
.remote-main { width: min(880px, calc(100vw - 24px)); margin: 0 auto; padding: 22px 0 36px; }
.annotation-toolbar { display: none; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; padding: 8px; border-radius: 10px; background: rgba(4,31,29,.94); }
.remote-board-preview.expanded .annotation-toolbar { display: flex; }
.annotation-toolbar button, .annotation-toolbar select { min-height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 8px 12px; background: #123d3a; color: var(--white-chalk); font-weight: 750; }
.annotation-toolbar button.active { border-color: var(--cyan); box-shadow: inset 0 0 0 2px var(--cyan); }
.annotation-toolbar button.danger { color: #ffc3b5; }
.annotation-tone-label { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; }
.studio-action-inspector { margin-top: 12px; display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 12px; align-items: end; }
.action-chip-row { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.action-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; background: rgba(53,195,198,.08); color: var(--ink); font-weight: 750; }
.remote-board-preview.expanded #remote-board-canvas { touch-action: none; cursor: crosshair; }
.presentation-annotation-toolbar { position: fixed; top: 42px; left: 50%; z-index: 18; display: flex; transform: translateX(-50%); box-shadow: 0 12px 30px rgba(0,0,0,.42); }
.presentation-annotation-toolbar[hidden] { display: none; }
.presentation-annotation-status { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(680px, calc(100vw - 32px)); z-index: 19; margin: 0; padding: 12px 18px; border: 1px solid var(--chalk-yellow); border-radius: 8px; background: #173c38; color: #fffdf7; font: 18px/1.4 Arial, sans-serif; pointer-events: none; }
.presentation-annotation-status[hidden] { display: none; }
.board-region.annotation-mode { touch-action: none; cursor: crosshair; }
.remote-overview { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 0 4px 18px; }
.remote-overview h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 7vw, 48px); font-weight: 500; letter-spacing: -.035em; }
.remote-meta { display: flex; gap: 8px; }
.remote-meta span { min-width: 62px; border-radius: 10px; padding: 7px 9px; background: var(--board); color: white; text-align: center; font-size: 11px; font-weight: 800; }
.remote-start-card { margin-bottom: 12px; padding: 22px; border-radius: var(--radius); background: var(--board); color: white; box-shadow: var(--small-shadow); }
.remote-start-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.remote-start-card p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.remote-stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.remote-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: 0 5px 15px rgba(27,43,39,.04); }
.remote-card.current-beat-card { grid-column: 1 / -1; border-left: 5px solid var(--accent); }
.remote-card h2 { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.remote-card p { margin: 8px 0 0; font-size: 16px; line-height: 1.55; }
.script-card p, .ask-card > p { font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.45; }
.ask-card { background: #f5eddf; }
.listen-card { background: #edf5e8; }
.correction-card { background: #f5e5e4; }
.next-card { background: #e9f3f2; }
.card-label-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.card-label { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.time-chip, .audience-chip, .response-count { display: inline-flex; border-radius: 999px; padding: 4px 7px; background: var(--paper-deep); color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.alternate-prompts { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(21,36,33,.12); }
.alternate-prompts details { margin-top: 6px; }
.alternate-prompts summary { cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 750; }
.alternate-prompts p { font-size: 13px; }
.remote-card hr { border: 0; border-top: 1px solid rgba(21,36,33,.15); margin: 16px 0; }
.question-control-card, .board-preview-card { grid-column: 1 / -1; }
.question-control-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.response-bars { display: grid; gap: 8px; margin: 16px 0; }
.response-bar { display: grid; grid-template-columns: 22px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; }
.response-bar-track { height: 12px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.response-bar-track span { display: block; height: 100%; background: var(--board-edge); transition: width .25s ease; }
.response-bar.correct .response-bar-track span { background: #5f9250; }
.question-actions { display: flex; gap: 14px; align-items: center; }
.remote-rationale { margin-top: 16px; padding: 14px; border-radius: 12px; background: #edf5e8; font-size: 13px; }
.remote-board-preview { overflow: hidden; border-radius: 10px; }
.remote-board-preview .board-canvas { border-radius: 10px; }
.remote-board-preview.expanded { position: fixed; inset: 10px; z-index: 50; display: grid; place-items: center; padding: 12px; background: rgba(5,20,19,.92); }
.remote-board-preview.expanded .board-canvas { width: 100%; }
.remote-settings { margin-top: 12px; }
.remote-settings details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.remote-settings summary { padding: 16px 18px; cursor: pointer; font-weight: 750; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px 16px; }
.settings-grid label, .toolbar-controls label, .studio-sidebar label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
select, input[type="text"] { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: #fff; color: var(--ink); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.remote-controls { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 8px; background: rgba(9,29,28,.97); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
.control-button { border: 1px solid rgba(255,255,255,.15); border-radius: 14px; min-height: 58px; background: rgba(255,255,255,.08); color: white; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.control-button span { font-size: 24px; }.control-button small { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.primary-control { background: var(--accent); border-color: var(--accent); }
.control-button:disabled { opacity: .35; cursor: default; }

/* Learner */
.learner-body { min-height: 100vh; background: var(--paper); }
.learner-main { padding: 38px 0 70px; }
.learner-hero { margin-bottom: 24px; }
.learner-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 10vw, 64px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.learner-hero > p:not(.eyebrow) { color: var(--muted); }
.learner-card { margin-top: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--small-shadow); }
.learner-card h2 { margin: 4px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.15; font-weight: 500; }
.waiting-card { text-align: center; padding: 44px 24px; }
.pulse-ring { width: 22px; height: 22px; margin: 0 auto 20px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(113,212,208,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 18px rgba(113,212,208,0); } 100% { box-shadow: 0 0 0 0 rgba(113,212,208,0); } }
.stage-label { margin-top: 22px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.socratic-card { background: var(--board); color: white; }
.socratic-card .eyebrow { color: var(--cyan); }
.think-timer { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.63); font-size: 12px; }
.learner-options { display: grid; gap: 10px; margin-top: 20px; }
.learner-option { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: white; text-align: left; cursor: pointer; }
.learner-option:hover { border-color: var(--board-edge); }
.learner-option.selected { border-color: var(--board); box-shadow: inset 0 0 0 2px var(--board); background: #eff5f3; }
.learner-option.correct { border-color: #5f9250; background: #edf5e8; }
.learner-option.incorrect { border-color: #b86969; background: #f7e8e7; }
.option-letter { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-deep); font-weight: 850; }
.response-state { color: var(--muted); font-size: 11px; }
.learner-feedback { margin-top: 18px; padding: 16px; border-radius: 12px; background: #edf5e8; }
.learner-feedback strong { display: block; margin-bottom: 6px; }
.learner-response-summary { margin-top: 16px; color: var(--muted); font-size: 12px; }
.learner-resource-card { border-top: 4px solid var(--accent); }
.privacy-card { box-shadow: none; background: transparent; }
.privacy-card h3 { margin: 0; font-size: 14px; }.privacy-card p { color: var(--muted); font-size: 12px; }

/* Handout */
.handout-body { background: #dcd8ce; font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif; }
.handout-toolbar { position: sticky; top: 0; z-index: 20; min-height: 70px; padding: 10px max(18px, calc((100vw - 1100px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(244,240,229,.95); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.toolbar-controls { display: flex; align-items: flex-end; gap: 9px; }
.toolbar-controls label { min-width: 130px; }
.toolbar-controls select { padding: 8px; }
.handout-page { width: 8.5in; min-height: 11in; margin: 28px auto; padding: .42in .46in .36in; background: #fffef9; box-shadow: 0 22px 60px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 11px; }
.handout-title-block { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; padding-bottom: 12px; border-bottom: 3px solid var(--board); }
.handout-kicker { margin: 0; color: var(--accent-dark); font-size: 8.5pt; font-weight: 850; letter-spacing: .14em; }
.handout-title-block h1 { margin: 2px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 25pt; line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.handout-dek { margin: 5px 0 0; color: var(--muted); font-size: 10pt; }
.handout-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.handout-meta span { border-radius: 999px; padding: 3px 7px; background: var(--paper-deep); font-size: 7pt; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.handout-meta small { color: var(--muted); font-size: 6.5pt; }
.handout-summary { padding: 10px 12px; display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start; border-radius: 9px; background: #ecf3f1; }
.handout-summary strong { color: var(--board-edge); font-size: 7.5pt; text-transform: uppercase; letter-spacing: .08em; }
.handout-summary p { margin: 0; font-size: 9pt; line-height: 1.42; }
.handout-section-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.handout-section { min-width: 0; overflow-wrap: anywhere; min-height: 92px; padding: 9px; border: 1px solid var(--border); border-radius: 8px; }
.handout-section h2, .handout-lower-grid h2, .handout-retrieval h2 { margin: 0 0 5px; color: var(--board-edge); font-size: 8pt; letter-spacing: .04em; text-transform: uppercase; }
.handout-section p { margin: 0; font-size: 7.6pt; line-height: 1.42; }
.handout-lower-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; }
.handout-lower-grid > div { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; }
#handout-table { width: 100%; border-collapse: collapse; font-size: 7.4pt; }
#handout-table td, #handout-table th { padding: 4px 3px; border-top: 1px solid #e4dfd3; vertical-align: top; }
#handout-table tr:first-child > * { border-top: 0; }
#handout-table th[scope="row"] { width: 28%; color: var(--board-edge); font-weight: 800; text-align: left; }
.handout-list-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.handout-list-columns > div:first-child { padding-right: 9px; border-right: 1px solid var(--border); }
.handout-list-columns ul { margin: 0; padding-left: 15px; font-size: 7.2pt; line-height: 1.42; }
.handout-list-columns li + li { margin-top: 3px; }
.handout-retrieval { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 9px 10px; border-radius: 8px; background: #f3eadc; }
.handout-retrieval ol { margin: 0; padding-left: 18px; columns: 3; column-gap: 20px; font-size: 7.3pt; line-height: 1.42; }
.handout-qr-block { display: flex; align-items: center; gap: 7px; }
.handout-qr-block .qr { width: 62px; border-radius: 7px; padding: 4px; }
.handout-qr-block small { max-width: 50px; color: var(--muted); font-size: 6pt; line-height: 1.15; }
.handout-footer { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 6pt; line-height: 1.3; }
.handout-footer p { margin: 0; max-width: 50%; }
.handout-board-recap { width: min(1120px, calc(100% - 32px)); margin: 24px auto 64px; padding: 22px; display: grid; grid-template-columns: minmax(220px, .34fr) minmax(0, 1fr); align-items: center; gap: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); }
.handout-board-recap h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.handout-board-recap p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
.handout-board-preview { min-width: 0; }

/* Studio */
.studio-body { background: #eae6dc; }
.studio-header { width: calc(100vw - 40px); }
.studio-main { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 82px); }
.studio-sidebar { position: sticky; top: 0; align-self: start; height: calc(100vh - 82px); overflow: auto; padding: 30px 22px; border-right: 1px solid var(--border); background: #f5f1e7; }
.studio-sidebar select { width: 100%; }
.studio-file-actions { display: grid; gap: 8px; margin: 18px 0; }
.studio-template-actions { display: grid; gap: 8px; margin: 18px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.studio-template-actions > strong { font-size: 12px; }
.studio-template-actions small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.studio-summary-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin: 18px 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.studio-summary-card div { display: flex; flex-direction: column; }.studio-summary-card small { color: var(--muted); font-size: 10px; }
.validity-dot { width: 14px; height: 14px; border-radius: 50%; background: #a69b8a; }.validity-dot.good { background: #6f9b5e; }.validity-dot.warn { background: #d19a4c; }.validity-dot.bad { background: #b85353; }
.studio-disclaimer { color: var(--muted); font-size: 11px; line-height: 1.5; }
.studio-workspace { min-width: 0; padding: 34px; }
.studio-title-row { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 22px; }
.studio-title-row h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 500; letter-spacing: -.04em; }.studio-title-row p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); }
.studio-version { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: 11px; }
.studio-panel, .studio-preview-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--panel); box-shadow: 0 6px 18px rgba(27,43,39,.05); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 14px; }
.panel-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.preview-controls { display: flex; align-items: center; gap: 8px; }
.preview-controls input[type="range"] { width: min(240px, 24vw); }
.preview-controls span { min-width: 48px; color: var(--muted); font-size: 11px; }
.studio-preview-stage { position: relative; overflow: hidden; border-radius: 10px; background: var(--board); }
.studio-board-preview { overflow: hidden; border-radius: 10px; }
.studio-preview-stage .projection-prompt { font-size: clamp(13px, 1.4vw, 20px); }
.studio-presenter-preview { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.studio-presenter-preview > div { padding: 10px; border-radius: 9px; background: var(--paper); }
.studio-presenter-preview strong { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.studio-presenter-preview p { margin: 5px 0 0; font-size: 12px; }
.studio-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.quality-score { font-family: Georgia, "Times New Roman", serif; font-size: 36px; font-weight: 500; }
.quality-checks, .validation-results { display: grid; gap: 8px; }
.quality-item, .validation-item { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 9px; border-radius: 9px; background: var(--paper); }
.quality-item .check-icon, .validation-item .check-icon { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #ded7c9; color: var(--muted); font-size: 10px; font-weight: 900; }
.quality-item.pass .check-icon, .validation-item.pass .check-icon { background: #dcebd3; color: #416536; }
.quality-item.warn .check-icon, .validation-item.warn .check-icon { background: #f2e2c8; color: #8b6228; }
.quality-item.fail .check-icon, .validation-item.fail .check-icon { background: #f0d3d1; color: #8f3e3e; }
.quality-item strong, .validation-item strong { display: block; font-size: 12px; }.quality-item small, .validation-item small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.source-panel { margin-top: 16px; }
.source-panel .panel-heading > div:last-child { display: flex; gap: 10px; align-items: center; }
#json-editor { width: 100%; min-height: 620px; resize: vertical; border: 1px solid #344944; border-radius: 12px; padding: 16px; background: #102c2a; color: #eef1e8; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.editor-message { min-height: 22px; padding-top: 8px; color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .top-nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 55px; }
  .hero-board { max-width: 720px; }
  .talk-grid { grid-template-columns: 1fr 1fr; }
  .launch-grid { grid-template-columns: 1fr 1fr; }.launch-card.featured { grid-column: 1 / -1; min-height: 260px; }
  .principle-grid { grid-template-columns: 1fr 1fr; }
  .pairing-card { grid-template-columns: 1fr; gap: 20px; }.pairing-card h2 { font-size: 48px; }.pairing-qr-grid .qr.large { width: min(190px, 24vh); }
  .resource-card { grid-template-columns: 1fr auto; }
  .studio-main { grid-template-columns: 1fr; }.studio-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }.studio-file-actions { grid-template-columns: 1fr 1fr; }.studio-grid-two { grid-template-columns: 1fr; }
}

@media screen and (max-width: 680px) {
  :root { --shell: calc(100vw - 28px); }
  .site-header { min-height: 70px; }
  .hero { min-height: auto; padding: 48px 0 60px; }
  .hero h1 { font-size: 46px; }
  .lede { font-size: 16px; }
  .metric-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-board { min-height: 360px; }.mini-chalkboard { padding: 30px 20px; border-width: 9px; }.mini-node { min-height: 42px; font-size: 15px; }.phone-mock { width: 150px; min-height: 282px; right: -4px; padding: 30px 12px 12px; }.phone-mock p { font-size: 12px; }.phone-mock strong { margin-top: 12px; }.phone-controls { margin-top: 14px; }
  .section { padding: 58px 0; }.section-heading { align-items: flex-start; flex-direction: column; }.section-heading h2 { font-size: 38px; }
  .talk-grid, .launch-grid, .principle-grid { grid-template-columns: 1fr; }.launch-card.featured { grid-column: auto; }.launch-card { min-height: 330px; }
  .site-footer { flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
  fieldset { grid-template-columns: 1fr; }.choice-card { min-height: 68px; }
  .presentation-shell { padding: 8px; }.presentation-status .status-pill:first-child { display: none; }.board-region .board-canvas { border-width: 7px; }.projection-prompt, .projection-prompt.prompt-bottom-sheet { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-width: none; max-height: min(50dvh, 50%); padding: 10px 12px; font-size: 17px; }
  .overlay-card { min-height: auto; }.pairing-card, .resource-card { grid-template-columns: 1fr; }.pairing-card h2, .resource-card h2 { font-size: 38px; }.pairing-qr-grid { gap: 10px; }.pairing-qr-grid .qr.large { width: min(155px, 22vh); }.resource-card .qr.jumbo { width: 210px; justify-self: center; }
  .remote-stage-grid { grid-template-columns: 1fr; }.remote-card.current-beat-card, .question-control-card, .board-preview-card { grid-column: auto; }.remote-overview { align-items: flex-start; flex-direction: column; }.remote-meta { width: 100%; }.remote-meta span { flex: 1; }.settings-grid { grid-template-columns: 1fr; }
  .learner-main { padding-top: 28px; }
  .handout-toolbar { align-items: flex-start; flex-direction: column; }.toolbar-controls { width: 100%; flex-wrap: wrap; }.toolbar-controls label { flex: 1; }.handout-page { width: calc(100vw - 20px); min-height: auto; margin: 10px auto; padding: 20px; }.handout-title-block { grid-template-columns: 1fr; }.handout-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }.handout-section-grid { grid-template-columns: 1fr 1fr; }.handout-lower-grid { grid-template-columns: 1fr; }.handout-retrieval ol { columns: 1; }.handout-footer { flex-direction: column; }.handout-footer p { max-width: none; }
  .studio-workspace { padding: 18px 12px; }.studio-title-row { align-items: flex-start; flex-direction: column; }.studio-title-row h1 { font-size: 38px; }.studio-version { align-items: flex-start; }.panel-heading { align-items: flex-start; flex-direction: column; }.preview-controls { width: 100%; }.preview-controls input[type="range"] { flex: 1; width: auto; }.studio-presenter-preview { grid-template-columns: 1fr; }.studio-file-actions { grid-template-columns: 1fr; }
}

/* Print layout must not inherit the narrow-screen grid on a phone.
   Never clip an unexpectedly long handout; the print-fit gate still rejects it. */
@media print {
  @page { size: Letter; margin: 0; }
  body.handout-body { background: white; }
  .no-print { display: none !important; }
  .handout-page { width: 8.5in; height: 11in; min-height: 11in; margin: 0; box-shadow: none; page-break-after: avoid; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.projection-question { text-align: left; min-width: 0; }
.projection-question > strong { display: block; overflow-wrap: anywhere; font-size: clamp(19px, 2.1vw, 30px); line-height: 1.25; }
.projection-question ol { margin: 12px 0 0; padding-left: 28px; columns: 1; font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif; font-size: clamp(15px, 1.1vw, 19px); }
.projection-question li { break-inside: avoid; margin-bottom: 6px; padding-left: 4px; overflow-wrap: anywhere; }
.projection-question li.projection-correct { color: var(--yellow); font-weight: 850; }
.projection-rationale { margin: 10px 0 0; padding-top: 8px; overflow-wrap: anywhere; border-top: 1px solid rgba(244,241,229,.2); color: rgba(244,241,229,.78); font-family: Inter, Arial, ui-sans-serif, system-ui, sans-serif; font-size: clamp(13px, 1vw, 17px); }
@media (min-width: 681px) and (max-width: 1350px) {
  .projection-prompt { padding: 12px 16px; }
  .projection-question > strong { font-size: 22px; line-height: 1.18; }
  .projection-question ol { margin-top: 8px; padding-left: 22px; font-size: 14px; line-height: 1.18; }
  .projection-question li { margin-bottom: 4px; }
  .projection-rationale { margin-top: 8px; padding-top: 6px; font-size: 12.5px; line-height: 1.2; }
}
@media screen and (max-width: 680px) { .projection-question ol { columns: 1; } }
.presentation-stage .board-region { transition: opacity 160ms cubic-bezier(.22, 1, .36, 1); }
.presentation-stage.has-question .board-region { opacity: .2; }
.projection-prompt.projection-prompt--question,
.projection-prompt.projection-prompt--centered {
  inset: 24px;
  width: auto;
  max-width: none;
  max-height: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(16px, 1.8vw, 28px);
  border: 1px solid rgba(244,241,229,.54);
  border-radius: 4px;
  background: rgba(4,31,29,.985);
  box-shadow: 0 24px 64px rgba(0,0,0,.48), inset 0 0 52px rgba(255,255,255,.025);
}
.projection-prompt.projection-prompt--centered:not(.projection-prompt--question) {
  padding-inline: clamp(56px, 9vw, 140px);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.projection-prompt--question .projection-question {
  width: min(920px, 100%);
  max-height: 100%;
  display: grid;
  align-content: center;
  gap: clamp(16px, 2.2vh, 28px);
  font-family: Georgia, "Times New Roman", serif;
}
.projection-prompt--question .projection-question[data-projection-state="answer"] {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  align-items: center;
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: clamp(10px, 1.35vh, 16px);
}
.projection-question[data-projection-state="answer"] .projection-stem,
.projection-question[data-projection-state="answer"] .projection-answer { grid-column: 1 / -1; }
.projection-prompt--question .projection-stem {
  max-width: 34em;
  margin: 0 auto;
  color: var(--white-chalk);
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
.projection-prompt--question ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vh, 18px) clamp(22px, 3vw, 42px);
  margin: 0;
  padding: 0;
  list-style-position: inside;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.2;
}
.projection-prompt--question li {
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 1.4vh, 18px);
  border-top: 1px solid rgba(244,241,229,.28);
  overflow-wrap: anywhere;
}
.projection-answer {
  margin: 0;
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 2.6vw, 42px);
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.projection-prompt--question .projection-rationale,
.projection-prompt--question .projection-pearl {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white-chalk);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 1.5vw, 27px);
  line-height: 1.22;
  text-align: center;
  text-wrap: balance;
}
.projection-prompt--question .projection-pearl {
  padding: 14px 0 14px clamp(18px, 2vw, 30px);
  border-top: 0;
  border-left: 1px solid rgba(244,241,229,.32);
  color: var(--cyan);
  font-style: italic;
}
@media screen and (max-width: 680px) {
  .projection-prompt.projection-prompt--question,
  .projection-prompt.projection-prompt--centered { inset: 8px; max-height: none; padding: 14px; }
  .projection-prompt--question ol { grid-template-columns: 1fr; }
  .projection-prompt--question .projection-question[data-projection-state="answer"] { grid-template-columns: 1fr; }
  .projection-question[data-projection-state="answer"] .projection-stem,
  .projection-question[data-projection-state="answer"] .projection-answer { grid-column: 1; }
  .projection-prompt--question .projection-pearl { padding: 12px 0 0; border-top: 1px solid rgba(244,241,229,.32); border-left: 0; }
}
.learner-resource-actions { display: grid; gap: 8px; margin-top: 14px; }

/* Expanded curriculum library */
.library-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 14px 24px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 253, 247, .72);
}
.library-search { display: grid; gap: 6px; }
.library-search span { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.library-search input {
  width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
  background: #fff; color: var(--ink); box-shadow: inset 0 1px 2px rgba(16,44,42,.04);
}
.library-search input::placeholder { color: #87928f; }
.filter-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.filter-chip {
  min-height: 38px; border: 1px solid var(--border); border-radius: 999px; padding: 7px 12px;
  background: var(--panel); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 760;
}
.filter-chip:hover { border-color: #aaa391; color: var(--ink); }
.filter-chip.active { border-color: var(--board); background: var(--board); color: #fff; }
.library-count { grid-column: 1 / -1; margin: -2px 0 0; color: var(--muted); font-size: 12px; }
.talk-card { min-height: 570px; padding: 0; overflow: hidden; }
.talk-card-media {
  position: relative; height: 174px; flex: 0 0 174px; margin: 0; display: grid; place-items: center;
  overflow: hidden; border-bottom: 1px solid var(--border); background: #e7ebe4;
}
.talk-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.talk-card-media.placeholder {
  background: var(--board); color: rgba(244,241,229,.82); font-family: Georgia, "Times New Roman", serif;
  font-size: 20px; letter-spacing: .12em;
}
.talk-card-content { min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.curriculum-index { color: var(--accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.card-type { margin: 16px 0 0; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.talk-card h3 { margin: 4px 0 5px; font-size: 25px; line-height: 1.08; }
.talk-subtitle { font-size: 12px; line-height: 1.42; }
.talk-description {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  margin: 13px 0 8px;
}
.card-metrics { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 2px 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.card-metrics span::before { content: "•"; margin-right: 6px; color: var(--accent); }
.review-state { margin: 6px 0 16px; color: #7e4128; font-size: 10px; font-weight: 750; line-height: 1.35; }
.talk-card .button { align-self: stretch; }
.talk-card.empty { min-height: 420px; padding: 30px; }
.talk-card.empty .talk-description { display: block; max-width: 300px; }
.talk-card.author-card { background: rgba(255,253,247,.36); }

@media (max-width: 980px) {
  .library-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .filter-group { justify-content: flex-start; }
  .library-count { grid-column: auto; }
}

@media screen and (max-width: 680px) {
  .library-toolbar { padding: 14px; }
  .filter-group { gap: 6px; }
  .filter-chip { min-height: 36px; padding-inline: 10px; font-size: 11px; }
  .talk-card { min-height: 0; }
  .talk-card-media { height: 190px; flex-basis: 190px; }
}

/* Interaction hardening and presenter-preview accessibility. */
button:disabled, .button:disabled, .icon-button:disabled, .text-button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}
.button:disabled:hover, .icon-button:disabled:hover, .text-button:disabled:hover { transform: none; }
body.preview-open { overflow: hidden; }
.remote-board-preview { position: relative; }
.preview-close-button {
  position: relative;
  z-index: 2;
  justify-self: end;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255,255,255,.12);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.remote-board-preview.expanded {
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  overflow: auto;
}
.remote-board-preview.expanded #remote-board-canvas {
  width: 100%;
  max-width: calc((100vh - 92px) * 1.78);
  margin: auto;
}
.learner-option:disabled { opacity: 1; color: var(--ink); -webkit-text-fill-color: var(--ink); cursor: default; }
.learner-option:disabled:not(.selected):not(.correct):not(.incorrect) { opacity: .72; }
.response-state.error { color: var(--danger); }
.studio-preview-empty { grid-column: 1 / -1; margin: 0; padding: 14px; border-radius: 9px; background: var(--paper); color: var(--muted); font-size: 12px; }
.remote-notice {
  position: fixed;
  z-index: 70;
  top: calc(72px + env(safe-area-inset-top));
  left: 50%;
  width: min(520px, calc(100vw - 28px));
  transform: translateX(-50%);
  padding: 11px 14px;
  border: 1px solid #d7a7a4;
  border-radius: 12px;
  background: #fff2f1;
  color: #7c2f2f;
  box-shadow: var(--small-shadow);
  font-size: 13px;
  font-weight: 700;
}
