/* MainChar: a readable field guide, with one shared spacing system. */
:root {
  --ink: #262035;
  --muted: #635b75;
  --paper: #f3eeff;
  --surface: #ffffff;
  --line: #ded4ef;
  --mint: #ddccff;
  --mint-light: #f3eeff;
  --accent: #6542c5;
  --blue-light: #eee6ff;
  --radius: 18px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.1vw, 3.55rem); font-weight: 720; }
h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
h3 { font-size: 1.15rem; }
em { font-style: normal; color: var(--accent); }
a { color: inherit; text-underline-offset: .25em; }
button,input { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
button,input,a,summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #326cce; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: -80px; left: 16px; padding: 12px 18px; background: var(--ink); color: white; z-index: 5; }
.skip:focus { top: 12px; }
.site-header { max-width: 1160px; margin: auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.055em; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 10px; background: var(--ink); color: white; border-radius: 11px; font-size: 1.25rem; letter-spacing: -.11em; padding-right: 4px; }
.brand-mark span { color: var(--mint); }
.brand-dot { color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.site-header nav a { padding: 10px 4px; min-height: 44px; text-decoration: none; font-size: .9375rem; font-weight: 600; border-bottom: 2px solid transparent; }
.site-header nav a[aria-current],.site-header nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.shell { max-width: 1160px; margin: 0 auto; padding: 56px 32px; }
.eyebrow { font-size: .8125rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 750; color: var(--muted); margin-bottom: 14px; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 620px; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; text-align: center; min-height: 48px; padding: 12px 22px; border-radius: 9px; border: 1px solid var(--ink); background: var(--accent); color: white; text-decoration: none; font-size: .9375rem; font-weight: 650; line-height: 1.4; }
.button:hover:not(:disabled) { background: #5132a5; }
.button.secondary { color: var(--ink); border-color: #9fb1b7; background: transparent; }
.button.secondary:hover:not(:disabled) { background: var(--mint-light); }
.button.light { color: var(--ink); background: var(--mint); border-color: var(--mint); }
.button.light:hover { background: #d5f2e6; }
.button.small { min-height: 44px; padding: 10px 16px; }
.text-link { font-size: .9375rem; font-weight: 650; padding: 10px 0; min-height: 44px; display: inline-block; }
.small-note { font-size: .875rem; color: var(--muted); margin-top: 18px; }
.home-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.director-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 26px; box-shadow: 0 12px 32px #26203505; }
.director-card>.eyebrow { margin-bottom: 24px; }
.director-role,.assistant-role { display: flex; align-items: flex-start; gap: 14px; }
.director-role h2,.assistant-role h2 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.02em; }
.director-role p,.assistant-role p { font-size: .9375rem; color: var(--muted); margin-top: 6px; }
.role-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: white; border-radius: 50%; font-size: .8125rem; font-weight: 650; }
.assistant-role .role-icon { background: var(--mint); color: var(--ink); }
.connection-line { height: 24px; border-left: 2px dashed #a1bcb2; margin: 7px 0 7px 18px; }
.card-foot { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; font-size: .875rem; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 24px; }
.section-heading>p { color: var(--muted); font-size: .9375rem; }
.demo-section { padding-top: 12px; }
.demo-player { border-radius: var(--radius); background: var(--ink); padding: 28px; color: white; }
.demo-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #e3dbf0; font-size: .8125rem; }
.pill { border: 1px solid #59717e; border-radius: 20px; padding: 5px 12px; }
.demo-scene { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 50px; min-height: 310px; padding: 30px 0; }
.scene-number { display: block; color: var(--mint); font-size: .875rem; letter-spacing: .12em; margin-bottom: 12px; }
.scene-story h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.scene-story p { margin-top: 16px; color: #e3dbf0; max-width: 360px; }
.bubble { border-radius: 12px; padding: 16px 20px; border: 1px solid var(--line); color: var(--ink); }
.bubble span { display: block; margin-bottom: 7px; font-size: .8125rem; font-weight: 750; color: #635b75; }
.bubble p { font-size: 1rem; line-height: 1.55; }
.human { background: var(--blue-light); margin-right: 20px; }
.assistant { background: var(--mint-light); margin-top: 12px; margin-left: 20px; }
.player-controls { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid #49616e; padding-top: 20px; }
.player-controls .button { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.scene-dots { display: flex; gap: 4px; }
.scene-dots button { border: 1px solid #68818d; color: white; background: transparent; width: 44px; height: 44px; border-radius: 50%; font-size: .875rem; }
.scene-dots button[aria-pressed=true] { background: white; color: var(--ink); border-color: white; }
.player-note { color: #e3dbf0; font-size: .875rem; margin-left: auto; }
.transcript { margin-top: 14px; padding: 10px 0; color: var(--muted); }
summary { cursor: pointer; padding: 8px 0; min-height: 44px; font-size: .9375rem; font-weight: 600; }
details p { margin: 10px 0; }
.transcript h3 { margin-top: 24px; color: var(--ink); }
.possibilities { padding-top: 20px; }
.possibility-grid,.journey-grid,.finish-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.possibility-grid article { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tile-number { display: block; color: var(--accent); font-size: .875rem; margin-bottom: 22px; }
.possibility-grid h3 { margin-bottom: 16px; }
blockquote { margin: 0 0 16px; font-weight: 600; line-height: 1.55; }
.possibility-grid p { color: var(--muted); font-size: .9375rem; }
.journey { border-top: 1px solid var(--line); }
.journey-grid { margin: 28px 0; }
.journey-grid span { font-weight: 700; }
.journey-grid p { color: var(--muted); margin-top: 8px; }
footer { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; justify-content: space-between; max-width: 1096px; margin: 28px auto 0; padding: 28px 0; }
footer p,footer>a:last-child { color: var(--muted); font-size: .875rem; }
.page-intro { max-width: 800px; margin-bottom: 32px; }
.resume-panel { background: var(--ink); color: white; border-radius: var(--radius); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.resume-panel .eyebrow { color: var(--mint); margin-bottom: 8px; }
.resume-panel p:not(.eyebrow) { color: #e3dbf0; margin-top: 8px; font-size: .9375rem; }
.resume-panel h2 { font-size: 1.5rem; }
.resume-panel form { flex-shrink: 0; }
.course-list { margin: 34px 0; }
.group-heading { font-size: 1rem; color: var(--accent); margin-top: 32px; margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.lesson-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.lesson-index { font-size: .875rem; color: var(--muted); }
.lesson-row p { font-size: .9375rem; color: var(--muted); margin-top: 5px; }
.lesson-row h3 { font-size: 1.0625rem; }
.lesson-row h3 a { display: inline-block; padding: 4px 0; }
.lesson-state { font-size: .8125rem; color: #466451; border-radius: 20px; background: #e5f0e9; padding: 4px 12px; white-space: nowrap; }
.restart { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
.learning-shell { width: min(900px,100%); margin: auto; padding: 24px 24px 48px; }
.learning-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; font-size: .875rem; color: var(--muted); flex-wrap: wrap; }
.learning-top a { font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
.lesson-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 36px; }
.lesson-topline { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.lesson-topline .eyebrow { margin: 4px 0 0; font-size: .75rem; }
.step-indicator { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 0; font-size: .8125rem; color: var(--muted); }
.step-indicator li { padding: 3px 0; border-bottom: 2px solid transparent; }
.step-indicator li[aria-current] { font-weight: 700; color: var(--accent); border-color: var(--accent); }
.lesson-card h1 { font-size: clamp(1.65rem,3vw,2.3rem); max-width: 700px; }
.lesson-contract { color: var(--muted); font-size: .875rem; margin-bottom: 16px; }
.lesson-contract strong,.lesson-recap strong { display: block; color: var(--accent); font-size: .8125rem; margin-bottom: 4px; }
.lesson-recap { background: var(--mint-light); border-radius: 10px; padding: 14px 18px; margin-top: 16px; font-size: .9375rem; }
.lesson-body { margin-top: 20px; max-width: 700px; line-height: 1.7; }
.takeaway { background: var(--mint-light); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 22px 0 12px; }
.takeaway span { display: block; font-weight: 700; font-size: .8125rem; color: var(--accent); margin-bottom: 5px; }
.takeaway p { font-weight: 550; }
.word-note { color: var(--muted); font-size: .9375rem; }
.word-note dl { margin: 8px 0 16px; }
.word-note dt { font-weight: 700; color: var(--ink); margin-top: 12px; }
.word-note dd { margin: 3px 0 0; }
.lesson-actions { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.learning-note { text-align: center; }
.map-label { font-size: .875rem; color: var(--accent); margin-top: 12px; }
.map-label span { color: var(--muted); }
.example-layout { margin-top: 22px; display: flex; gap: 24px; align-items: start; }
.example-layout>.conversation { flex: 1; min-width: 0; }
.diagram-wrap { width: 280px; flex: none; }
.diagram-wrap .eyebrow { font-size: .75rem; text-align: center; }
.capability-diagram { display: block; width: 100%; height: auto; }
.follow-up { padding: 14px 0 0; font-size: .9375rem; }
.follow-up strong { color: var(--accent); }
.follow-up p { margin-top: 4px; }
.example-explanation { margin-top: 18px; color: var(--muted); font-size: .9375rem; }
.check-intro { color: var(--muted); margin-top: 12px; }
.quiz { margin-top: 22px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 650; padding: 0; margin-bottom: 14px; }
.choice { display: flex; gap: 12px; align-items: start; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.choice:hover { background: var(--paper); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--mint-light); }
.choice input { flex: none; width: 18px; height: 18px; accent-color: var(--accent); margin: 4px 0 0; }
.feedback { padding: 16px 20px; background: var(--mint-light); border-radius: 12px; margin-top: 18px; }
.feedback p { margin-top: 6px; }
.finish { max-width: 950px; padding-top: 64px; padding-bottom: 80px; }
.finish-grid { margin: 32px 0; }
.finish-grid h2 { font-size: 1.125rem; margin-bottom: 8px; }
.finish-grid p { color: var(--muted); }
.finish>p:not(.eyebrow) { margin: 20px 0; }
.prerequisite { background: var(--mint-light); border: 1px solid #c4d9d1; border-radius: 12px; padding: 22px 26px; display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.prerequisite h2 { font-size: 1.25rem; }
.prerequisite p { margin-top: 8px; color: var(--muted); }
.prerequisite .button { flex: none; }
.recipe-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.recipe-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.recipe-card h2 { font-size: 1.5rem; margin-bottom: 12px; }
.recipe-card>p:not(.eyebrow) { color: var(--muted); }
.recipe-card form { margin-top: auto; padding-top: 20px; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.fact-grid>div { background: var(--paper); padding: 16px; border-radius: 10px; }
.fact-grid dt { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.fact-grid dd { display: block; margin: 0; font-weight: 650; }
.prompt-box { border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-top: 24px; }
.prompt-box>div { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.prompt-box h2 { font-size: 1.125rem; }
.copy-button { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 8px 14px; color: var(--ink); font-size: .875rem; }
.copy-status { display: block; margin-top: 8px; font-size: .875rem; color: var(--accent); }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.demo-scene:not([hidden]) { animation: arrive .3s ease; }
@media(max-width:900px) {
  .home-intro { gap: 30px; }
  .home-intro h1 { font-size: 2.4rem; }
  footer { margin-left: 24px; margin-right: 24px; }
  .player-note { margin-left: 0; }
  .demo-scene { gap: 28px; }
}
@media(max-width:700px) {
  .site-header { padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  .site-header nav { gap: 6px 18px; }
  .shell { padding: 36px 20px; }
  .home-intro { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .home-intro h1 { font-size: clamp(2rem,7.5vw,2.8rem); }
  .director-card { padding: 22px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading>p br { display: none; }
  .demo-player { padding: 20px; }
  .demo-scene { grid-template-columns: 1fr; gap: 22px; padding: 24px 0; min-height: 410px; }
  .scene-story h3 { font-size: 1.65rem; }
  .scene-story p { margin-top: 10px; }
  .demo-caption { align-items: start; }
  .pill { max-width: 250px; }
  .player-controls { gap: 14px; }
  .player-note { width: 100%; }
  .possibility-grid,.journey-grid,.finish-grid { grid-template-columns: 1fr; }
  .journey-grid { gap: 20px; }
  .possibility-grid article { padding: 22px; }
  .resume-panel,.prerequisite { align-items: start; flex-direction: column; padding: 24px; gap: 18px; }
  .lesson-row { grid-template-columns: 26px 1fr; gap: 5px 12px; }
  .lesson-state { grid-column: 2; justify-self: start; margin-top: 6px; }
  .learning-shell { padding: 12px 16px 32px; }
  .learning-top { margin-bottom: 12px; gap: 0 16px; }
  .lesson-card { padding: 22px 20px; }
  .lesson-topline { flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .lesson-body { margin-top: 16px; line-height: 1.6; }
  .lesson-actions { gap: 12px; }
  .lesson-actions .button { padding: 11px 14px; }
  .lesson-actions .text-link { flex: none; }
  .example-layout { flex-direction: column; gap: 20px; }
  .diagram-wrap { width: min(100%,320px); margin: 0 auto; }
  .bubble { padding: 14px 16px; }
  .human { margin-right: 10px; }
  .assistant { margin-left: 10px; }
  .recipe-grid,.fact-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: start; gap: 10px; padding: 24px 0; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* MainChar journey: lavender atmosphere, white reading surfaces, visible position. */
.home-intro { gap: 48px; padding-top: 44px; padding-bottom: 40px; }
.home-intro h1,.overview h1 { font-size: clamp(2.2rem,4.5vw,3.4rem); }
.home-intro .role-headline,.overview .role-headline { font-size: clamp(1.95rem,3.45vw,3rem); line-height: 1.16; }
.role-headline span { display: block; }
.button { gap: 14px; border-color: var(--accent); box-shadow: 0 3px 0 #412583; }
.button.secondary { box-shadow: none; }
.brand-mark { background: var(--accent); }
.story-card { padding: 25px 28px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 6px 7px 0 #e1d5f5; transform: rotate(1deg); }
.story-card .eyebrow { margin-bottom: 18px; }
.story-step { display: flex; gap: 15px; align-items: center; padding: 12px 0; }
.story-step>span { border-radius: 12px; background: var(--mint-light); color: var(--accent); padding: 8px; font-size: .85rem; font-weight: 750; }
.story-step h2 { font-size: 1.15rem; }
.story-step p { color: var(--muted); font-size: .9375rem; margin-top: 5px; }
.story-signoff { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.story-signoff strong { background: #f4dc83; padding: 3px 9px; border-radius: 6px; }
.home-path { padding-top: 28px; border-top: 1px solid var(--line); }
.journey-layout { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(0,1.5fr); gap: 50px; align-items: start; }
.journey-compass { position: sticky; top: 28px; padding-top: 20px; }
.journey-compass h2 { font-size: 1.65rem; line-height: 1.25; }
.journey-compass>p:not(.eyebrow) { color: var(--muted); margin-top: 18px; }
.journey-progress { margin-top: 26px; font-size: .875rem; }
.journey-progress label { font-weight: 700; }
.journey-progress progress { display: block; width: 100%; height: 8px; margin: 10px 0; border: none; border-radius: 8px; overflow: hidden; background: #ded4ef; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #ded4ef; }
progress::-webkit-progress-value { background: #6542c5; }
progress::-moz-progress-bar { background: #6542c5; }
.journey-progress>span { color: var(--muted); }
.trail-wrap { position: relative; min-width: 0; }
.trail-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.trail-line path { fill: none; stroke: #c9b6e9; stroke-width: 4; }
.trail { position: relative; display: flex; flex-direction: column; gap: 34px; padding: 0; margin: 0; list-style: none; }
.trail-stop { width: 80%; align-self: flex-start; background: #fff; border: 1px solid #d8caec; border-radius: 20px; padding: 20px 24px; box-shadow: 0 5px 0 #e3d8f3; }
.trail-stop:nth-child(4n+2),.trail-stop:nth-child(4n) { align-self: center; }
.trail-stop:nth-child(4n+3) { align-self: flex-end; }
.trail-stop.is-current { border: 2px solid var(--accent); box-shadow: 0 5px 0 #c5afe9; }
.stop-meta { display: flex; gap: 12px; align-items: center; font-size: .75rem; color: var(--muted); font-weight: 650; margin-bottom: 12px; }
.stop-number { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--mint-light); color: var(--accent); border-radius: 11px; font-size: .875rem; }
.is-current .stop-number { background: #f4dc83; color: #262035; }
.is-done .stop-number { background: #6542c5; color: #fff; }
.trail-stop h3 { font-size: 1.25rem; }
.trail-stop>p { color: var(--muted); font-size: .9375rem; margin-top: 8px; line-height: 1.55; }
.trail-stop>.stop-promise { border-top: 1px solid var(--line); padding-top: 10px; font-size: .875rem; }
.stop-promise strong { color: var(--accent); font-size: .8125rem; }
.trail-stop .button { margin-top: 18px; }
.trail-stop .resume-note { font-size: .8125rem; margin-top: 12px; }
.stop-lessons { margin-top: 10px; color: var(--muted); }
.stop-lessons summary { font-size: .8125rem; }
.stop-lessons ul { margin: 2px 0 0; padding-left: 20px; font-size: .875rem; }
.stop-lessons li { padding: 5px 0; }
.stop-lessons a { display: inline-block; padding: 5px 0; }
.overview { padding-top: 36px; }
.overview .page-intro { margin-bottom: 30px; }
.overview .lede { margin-top: 14px; }
.learner-promise { margin-top: 20px; max-width: 650px; font-size: 1rem; line-height: 1.6; }
.promise-label { color: var(--accent); font-weight: 750; margin-bottom: 8px; }
.promise-definition { color: var(--muted); margin-top: 10px; font-size: .9375rem; }
.auth-shell { max-width: 1000px; }
.auth-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 30px; }
.auth-card,.project-notebook { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.auth-card h2,.project-notebook h2 { margin-bottom: 8px; }
.auth-card>p,.project-notebook>div>p:last-child { color: var(--muted); }
.auth-card form,.project-form,.account-danger form { display: grid; gap: 10px; margin-top: 22px; }
.auth-card label,.project-form label,.account-danger label { font-weight: 700; font-size: .9375rem; }
.auth-card input:not([type=radio]),.project-form input,.project-form textarea,.account-danger input { width: 100%; min-height: 46px; border: 1px solid #a99dbd; border-radius: 9px; background: white; color: var(--ink); padding: 10px 12px; font: inherit; }
.project-form textarea { min-height: 100px; resize: vertical; }
.auth-card input:focus-visible,.project-form input:focus-visible,.project-form textarea:focus-visible,.account-danger input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.auth-card .button,.project-form>.button { justify-self: start; margin-top: 10px; }
.avatar-choices { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; border: 0; padding: 0; margin: 8px 0; }
.avatar-choices legend { font-weight: 700; margin-bottom: 12px; }
.avatar-choices label { cursor: pointer; border-radius: 12px; }
.avatar-choices input { position: absolute; opacity: 0; }
.avatar-choices span { display: grid; place-items: center; border: 2px solid transparent; border-radius: 12px; padding: 2px; }
.avatar-choices input:checked+span { border-color: var(--accent); background: var(--paper); }
.avatar-choices input:focus-visible+span { outline: 3px solid var(--accent); outline-offset: 2px; }
.auth-card .age-confirm { display: flex; align-items: center; gap: 10px; }
.auth-card .age-confirm input { width: 20px; min-height: 20px; height: 20px; padding: 0; flex: none; accent-color: var(--accent); }
.account-welcome { display: flex; align-items: center; gap: 20px; }
.account-welcome p { color: var(--muted); margin-top: 6px; }
.account-danger { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 18px; }
.account-danger form { max-width: 440px; }
.my-projects { margin: 34px 0; }
.my-projects h2,.section-title { margin-bottom: 16px; }
.project-list { display: grid; gap: 10px; }
.project-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; text-decoration: none; }
.project-row:hover { border-color: var(--accent); }
.project-row small { display: block; color: var(--muted); margin-top: 3px; }
.project-notebook { margin-top: 24px; }
.project-notebook .actions { margin-top: 8px; }
.recovery-page { max-width: 780px; }
.recovery-page>p:not(.eyebrow) { margin-top: 18px; }
.recovery-code { background: var(--ink); color: white; border-radius: 12px; padding: 20px; margin-top: 24px; overflow-wrap: anywhere; user-select: all; }
.recovery-code code { font-size: clamp(.95rem,2.3vw,1.2rem); letter-spacing: .07em; }
.copy-recovery { margin-top: 16px; }
#recovery-copy-status { display: inline-block; margin-left: 12px; font-size: .875rem; color: var(--muted); }
.recovery-form { max-width: 560px; }
.privacy-page { max-width: 800px; }
.privacy-page h2 { margin-top: 30px; margin-bottom: 8px; }
.privacy-page .button { margin-top: 28px; }
@media(max-width:700px) {
 .auth-grid { grid-template-columns: 1fr; }
 .auth-card,.project-notebook { padding: 20px; }
 .avatar-choices { grid-template-columns: repeat(4,minmax(0,1fr)); }
 .account-welcome { align-items: flex-start; }
 .project-row { align-items: flex-start; }
 .site-header { gap: 5px; padding: 12px 18px; }
 .site-header nav { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
 .site-header nav a { font-size: .875rem; text-align: center; padding: 9px 4px; border: 1px solid var(--line); border-radius: 9px; background: white; }
 .site-header nav a[aria-current] { border-color: var(--accent); }
 .home-intro { gap: 28px; padding: 28px 20px; }
 .home-intro h1,.overview h1 { font-size: 2.25rem; }
 .home-intro .role-headline,.overview .role-headline { font-size: clamp(1.85rem,7vw,2.15rem); }
 .lede { font-size: 1rem; margin-top: 16px; }
 .story-card { transform: none; padding: 18px 22px; }
 .journey-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .journey-compass { position: static; padding: 0; }
 .journey-compass h2 { font-size: 1.4rem; }
 .journey-compass>p:not(.eyebrow) { margin-top: 12px; }
 .journey-progress { margin-top: 18px; }
 .trail { gap: 28px; }
 .trail-stop { width: calc(100% - 22px); padding: 18px; }
 .trail-stop h3 { font-size: 1.2rem; }
 .stop-meta { gap: 9px; }
 .home-path { padding-top: 28px; }
 .lesson-actions { flex-wrap: wrap; }
 .lesson-actions form { max-width: 100%; }
}
