/* Lisa's AI Café classroom. Visual language shared with visit.lisasaicafe.com (model cards). */
:root {
  --ink: #172635;
  --muted: #63717e;
  --paper: #f6f2e9;
  --paper-deep: #ece5d8;
  --white: #fffdf8;
  --forest: #075b92;
  --forest-light: #0a6fa4;
  --coral: #ff704f;
  --sun: #f5c75e;
  --line: rgba(23, 38, 53, .13);
  --danger: #e4475a;
  --success: #24b47e;
  --shadow: 0 18px 48px rgba(18, 55, 82, .1);
  --radius: 22px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --brand-texture: url("../images/brand-background.svg");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--font); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; }
em { color: var(--coral); font-family: var(--serif); font-weight: 500; }
code { padding: 1px 5px; border-radius: 5px; background: var(--paper-deep); font-size: .9em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

.page-shell { width: min(960px, calc(100% - 32px)); min-height: 70vh; margin: 0 auto; padding: 44px 0 84px; }
.section-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-top: 56px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--coral); font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.subtitle { color: var(--muted); }
.inline-form { display: inline; margin: 0; }
.linklike { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font-weight: 700; }
.linklike.danger { color: var(--danger); font-size: .8rem; }

/* Nav */
.navbar { position: sticky; top: 0; z-index: 40; color: white; border-bottom: 1px solid rgba(255,255,255,.16); background: #075b92 var(--brand-texture) center 26% / cover; box-shadow: 0 8px 28px rgba(5,55,92,.16); }
.nav-shell, .footer-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav-shell { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.05; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 1rem; }
.brand small { margin-top: 4px; color: rgba(255,255,255,.68); font-size: .65rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: .86rem; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .btn-logout:hover { color: var(--sun); }
.user-chip { padding: 7px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: rgba(255,255,255,.8); font-size: .78rem; }
.btn-logout { color: rgba(255,255,255,.75); }

/* Alerts */
.alerts { position: fixed; z-index: 80; top: 86px; left: 50%; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); transition: opacity .3s; }
.alert-success { border-color: rgba(36,180,126,.5); }
.alert-error { border-color: rgba(229,71,90,.5); }
.alert-info { border-color: rgba(56,118,242,.45); }
.alert-close { border: 0; background: transparent; cursor: pointer; font-size: 1.3rem; line-height: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 850; text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn-primary { color: white; background: var(--coral); box-shadow: 0 9px 24px rgba(255,112,79,.24); }
.btn-primary:hover { background: #ee5d3d; }
.btn-secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-block { width: 100%; }
.is-done-btn { border-color: rgba(36,180,126,.6); color: #13744f; }
.text-link { color: white; font-size: .88rem; font-weight: 800; text-decoration: none; }
.text-link.dark { color: var(--forest); }
.launch-link { display: inline-flex; min-height: 42px; padding: 0 18px; align-items: center; gap: 9px; border-radius: 999px; color: white; background: var(--forest); font-size: .8rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.launch-link:hover { background: var(--forest-light); }

/* Join screen */
.auth-page footer { display: none; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr); min-height: 100vh; }
.auth-story { position: relative; display: flex; min-height: 100vh; padding: 46px clamp(30px, 7vw, 110px); flex-direction: column; justify-content: space-between; overflow: hidden; color: white; background-color: #075b92; background-image: linear-gradient(rgba(4,55,104,.18), rgba(4,98,139,.08)), var(--brand-texture); background-position: center; background-size: cover; }
.auth-story::before, .auth-story::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.auth-story::before { width: 520px; height: 520px; right: -220px; top: 8%; }
.auth-story::after { width: 730px; height: 730px; right: -365px; top: -2%; }
.auth-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 13px; color: white; font-family: var(--serif); font-size: 1.1rem; text-decoration: none; }
.auth-brand img { width: 66px; height: 66px; object-fit: contain; }
.auth-copy { position: relative; z-index: 1; max-width: 610px; }
.auth-copy .eyebrow { color: var(--sun); }
.auth-copy h1 { margin-bottom: 25px; font-size: clamp(3.4rem, 6vw, 6.4rem); }
.auth-copy p { max-width: 560px; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.auth-preview { display: flex; margin-top: 40px; }
.auth-preview span { display: grid; width: 62px; height: 62px; margin-right: -9px; place-items: center; border: 4px solid var(--forest); border-radius: 50%; background: var(--preview); }
.auth-preview img { width: 34px; height: 34px; object-fit: contain; }
.auth-note { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.55); font-size: .82rem; }
.auth-form-panel { display: grid; min-height: 100vh; padding: 48px clamp(24px, 6vw, 86px); place-items: center; background: var(--paper); }
.auth-box { width: min(100%, 500px); }
.auth-box h2 { margin-bottom: 12px; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.auth-box .subtitle { margin-bottom: 28px; }
.auth-footer { margin-top: 24px; color: var(--muted); text-align: center; font-size: .88rem; }
.auth-footer a { color: var(--forest); font-weight: 850; }

/* Forms */
.stacked-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label { display: block; margin-bottom: 7px; font-size: .85rem; font-weight: 800; }
.form-group .optional { color: var(--muted); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid rgba(23,35,29,.2); border-radius: 12px; outline: none; color: var(--ink); background: rgba(255,255,255,.8); font-size: 1rem; transition: border .18s, box-shadow .18s; }
.form-group input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,112,79,.14); }
.form-group small { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.code-input { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }

/* Dashboard hero */
.lab-hero { position: relative; display: grid; grid-template-columns: 1.35fr .65fr; min-height: 440px; padding: 70px max(24px, calc((100vw - 1180px)/2)); align-items: center; gap: 60px; color: white; overflow: hidden; background-color: #075b92; background-image: linear-gradient(100deg, rgba(4,55,104,.26), rgba(5,116,159,.04)), var(--brand-texture); background-position: center; background-size: cover; }
.lab-hero::before { content: ""; position: absolute; width: 500px; height: 500px; left: 41%; top: -350px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.hero-copy .eyebrow { color: var(--sun); }
.hero-copy h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 6vw, 6rem); }
.hero-copy p { max-width: 620px; color: rgba(255,255,255,.75); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.passport-card { position: relative; z-index: 1; padding: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; transform: rotate(1.5deg); background: rgba(255,255,255,.09); box-shadow: 0 28px 70px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.passport-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px dashed rgba(255,255,255,.22); }
.passport-kicker { font-family: var(--serif); font-size: 1.08rem; }
.pass-stamp { padding: 5px 8px; border: 1px solid var(--sun); color: var(--sun); font-size: .6rem; font-weight: 900; letter-spacing: .15em; transform: rotate(-4deg); }
.passport-progress { display: flex; align-items: center; gap: 19px; padding: 25px 0 20px; }
.passport-progress > div:last-child { display: grid; gap: 6px; }
.passport-progress small { color: rgba(255,255,255,.6); font-size: .75rem; }
.progress-orbit { position: relative; display: grid; width: 84px; height: 84px; flex: 0 0 84px; place-items: center; border-radius: 50%; background: conic-gradient(var(--sun) calc(var(--progress) * 1%), rgba(255,255,255,.12) 0); }
.progress-orbit::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--forest-light); }
.progress-orbit strong, .progress-orbit span { position: relative; z-index: 1; }
.progress-orbit strong { font-size: 1.5rem; }
.progress-orbit span { position: absolute; margin: 30px 0 0 46px; color: rgba(255,255,255,.6); font-size: .7rem; }
.passport-dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.passport-dots span { height: 7px; border-radius: 999px; background: rgba(255,255,255,.16); }
.passport-dots span.is-tried { background: var(--dot); transform: scaleY(1.5); }
.access-until { display: block; margin-top: 17px; color: rgba(255,255,255,.6); font-size: .72rem; }

/* Model cards strip */
.modelcards-strip { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 44px 48px; border-radius: 28px; color: white; background-color: #075b92; background-image: linear-gradient(100deg, rgba(4,55,104,.25), rgba(5,116,159,.04)), var(--brand-texture); background-position: center; background-size: cover; box-shadow: 0 20px 52px rgba(7,91,146,.16); }
.modelcards-strip .eyebrow { color: var(--sun); }
.modelcards-strip h2 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.modelcards-strip p { margin: 0; color: rgba(255,255,255,.72); }
.code-panel { display: grid; gap: 12px; justify-items: start; }
.code-label { color: rgba(255,255,255,.65); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.code-chip { display: inline-flex; align-items: baseline; gap: 12px; padding: 10px 18px; border: 2px dashed var(--sun); border-radius: 14px; color: var(--sun); background: rgba(0,0,0,.12); cursor: pointer; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; letter-spacing: .08em; }
.code-chip small { color: rgba(255,255,255,.6); font-family: var(--font); font-size: .68rem; letter-spacing: .05em; }

/* Sections */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lesson-chip { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .88rem; font-weight: 700; text-decoration: none; }
.lesson-chip:hover { border-color: var(--forest); color: var(--forest); }
.lesson-chip.is-done { border-color: rgba(36,180,126,.5); color: #13744f; }
.week-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 90px; }
.week-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s, box-shadow .2s; }
.week-card::before { content: ""; position: absolute; top: 0; left: 40px; right: 40px; height: 3px; border-radius: 0 0 6px 6px; background: var(--forest); }
.week-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.week-card.is-current { border-color: rgba(255,112,79,.55); box-shadow: 0 0 0 4px rgba(255,112,79,.12); }
.week-card.is-current::before { background: var(--coral); }
.week-card.is-locked { opacity: .72; }
.week-card.is-locked::before { background: var(--paper-deep); }
.week-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.week-num { color: var(--coral); }
.week-card h3 { margin-bottom: 10px; font-size: 1.55rem; }
.week-card p { color: var(--muted); font-size: .94rem; }
.week-foot { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 12px; }
.week-foot .progress-bar { flex: 1; }
.progress-bar { height: 8px; border-radius: 99px; overflow: hidden; background: var(--paper-deep); }
.progress-fill { height: 100%; border-radius: 99px; background: var(--success); }
.progress-text { color: var(--muted); font-size: .8rem; font-weight: 700; }
.locked-note { color: var(--muted); font-size: .8rem; font-weight: 800; white-space: nowrap; }

/* Week + lesson pages */
.crumbs { margin-bottom: 26px; color: var(--muted); font-size: .85rem; }
.crumbs a { color: var(--forest); font-weight: 700; text-decoration: none; }
.crumbs span { margin: 0 6px; opacity: .5; }
.page-head { margin-bottom: 30px; }
.page-head h1 { margin-bottom: 12px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.lesson-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lesson-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; transition: transform .15s, border .15s; }
.lesson-row:hover { transform: translateX(4px); border-color: var(--forest); }
.lesson-idx { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--forest); background: #eef6fb; font-family: var(--serif); font-weight: 700; }
.lesson-row.is-done .lesson-idx { color: white; background: var(--success); }
.lesson-name { font-weight: 750; }
.lesson-mins { color: var(--muted); font-size: .8rem; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.card.narrow { max-width: 520px; margin: 40px auto; }
.locked-card ul { color: var(--muted); }
.lesson-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.pill.ok { color: #13744f; background: rgba(36,180,126,.14); }
.pill.off { color: var(--muted); background: var(--paper-deep); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .75rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }

/* Lesson content (the course HTML files) */
.lesson-body { padding: clamp(24px, 5vw, 52px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); font-size: 1.05rem; line-height: 1.7; }
.prose > * > *:first-child, .prose > *:first-child { margin-top: 0; }
.prose main, .prose .container, .prose .lesson-content, .prose .text-content { display: block; width: auto; max-width: none; margin: 0; padding: 0; }
.prose h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.6vw, 3rem); }
.prose h2 { margin: 42px 0 14px; font-size: 1.65rem; }
.prose h3 { margin: 26px 0 10px; font-size: 1.2rem; letter-spacing: -.01em; }
.prose h4 { margin: 18px 0 8px; font-size: 1.05rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--forest); font-weight: 700; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }
.prose table { margin: 16px 0 22px; font-size: .95rem; }
.prose .comparison-table { overflow-x: auto; }
.prose .lesson-meta, .prose .subtitle { margin-bottom: 26px; color: var(--muted); font-size: .95rem; }
.prose .text-muted, .prose .muted, .prose .soft { color: var(--muted); }
/* Boxes */
.prose .key-insight, .prose .callout, .prose .activity-box, .prose .checkpoint, .prose .tip-box,
.prose .resource-box, .prose .resources-box, .prose .resources, .prose .workflow-box, .prose .prompt-box,
.prose .scenario, .prose .policy-section { margin: 22px 0; padding: 20px 22px; border-radius: 16px; }
.prose .key-insight { border-left: 5px solid var(--forest); background: #eef6fb; }
.prose .callout { border-left: 5px solid var(--sun); background: #fff6df; }
.prose .activity-box { border: 2px dashed rgba(255,112,79,.55); background: #fff3ee; }
.prose .checkpoint { border-left: 5px solid var(--success); background: #eaf8f1; }
.prose .tip-box, .prose .scenario, .prose .policy-section, .prose .workflow-box { border: 1px solid var(--line); background: var(--paper); }
.prose .resource-box, .prose .resources-box, .prose .resources { border: 1px solid var(--line); background: #f8f6f0; }
.prose .prompt-box { border: 1px solid rgba(7,91,146,.2); background: #f3f8fc; }
.prose .prompt-title { margin-bottom: 4px; color: var(--forest); font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.prose .prompt-text, .prose .practice-prompt, .prose .transform-prompt, .prose .plan-prompt, .prose .example-prompt,
.prose .prompt-template, .prose .followup-text, .prose .script-line { font-family: var(--serif); }
.prose .key-insight > :last-child, .prose .callout > :last-child, .prose .activity-box > :last-child, .prose .checkpoint > :last-child { margin-bottom: 0; }
.prose .key-insight h3, .prose .callout h3, .prose .activity-box h3, .prose .checkpoint h3 { margin-top: 0; }
/* Cards and grids used across lessons */
.prose .story-grid, .prose .resource-grid, .prose .move-grid, .prose .transform-grid, .prose .plan-grid, .prose .mini-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.prose .story-card, .prose .resource-card, .prose .move-card, .prose .transform-card, .prose .plan-card, .prose .followup-card,
.prose .simple-card, .prose .mini-item, .prose .resource-item, .prose .danger-item, .prose .safety-row { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.prose .danger-item { border-left: 4px solid var(--danger); }
.prose .resource-type, .prose .prep-tag, .prose .mini-num { color: var(--coral); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.prose .resource-title, .prose .mini-title, .prose .practice-title { font-weight: 800; }
.prose .resource-note, .prose .example-explain, .prose .move-example { color: var(--muted); font-size: .92rem; }
.prose .step, .prose .method-step, .prose .workflow-step, .prose .experiment-step { display: flex; gap: 14px; margin: 12px 0; }
.prose .step-number, .prose .method-number, .prose .workflow-number, .prose .step-num { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-weight: 800; }
.prose .steps-list li { margin-bottom: 12px; }
/* AI dictionary */
.prose .term { margin: 18px 0 6px; font-weight: 850; font-size: 1.1rem; }
.prose .line { margin: 0 0 6px; }
.prose .label { color: var(--forest); font-weight: 800; }
.prose .letter { margin: 36px 0 8px; color: var(--coral); font-family: var(--serif); font-size: 2rem; }
.prose .toplink { font-size: .8rem; }
.prose .fill-line, .prose .commitment-line, .prose .mini-line { margin: 8px 0; color: var(--muted); letter-spacing: .02em; }

/* Footer */
footer { border-top: 1px solid var(--line); }
.footer-shell { display: flex; min-height: 90px; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .76rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { width: 38px; height: 38px; padding: 4px; border-radius: 10px; background: var(--forest); object-fit: contain; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; padding: 11px 16px; border-radius: 999px; opacity: 0; color: white; background: var(--ink); pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; font-size: .8rem; font-weight: 800; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .auth-shell, .lab-hero, .modelcards-strip { grid-template-columns: 1fr; }
  .auth-story { min-height: 460px; }
  .auth-form-panel { min-height: auto; }
  .lab-hero { padding-top: 60px; gap: 36px; }
  .passport-card { width: min(440px, 100%); transform: none; }
  .nav-links .user-chip { display: none; }
}
@media (max-width: 680px) {
  .nav-shell { min-height: 62px; }
  .brand small { display: none; }
  .nav-links { gap: 12px; font-size: .8rem; }
  .nav-links a:not(:first-child) { display: none; }
  .lab-hero { padding: 48px 16px; }
  .hero-copy h1 { font-size: 3rem; }
  .modelcards-strip { padding: 30px 22px; }
  .week-grid { grid-template-columns: 1fr; }
  .week-card { padding: 22px; }
  .week-foot { flex-wrap: wrap; }
  .auth-shell { display: block; }
  .auth-story { min-height: 360px; padding: 28px 20px; }
  .auth-copy h1 { margin-top: 40px; font-size: 3rem; }
  .auth-copy p, .auth-preview { display: none; }
  .auth-form-panel { padding: 40px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .lesson-row { grid-template-columns: 38px 1fr; padding: 14px; }
  .lesson-mins { display: none; }
  .lesson-body { font-size: 1rem; }
  .prose table, .card table { display: block; overflow-x: auto; }
  .lesson-actions .btn { width: 100%; }
  .lesson-actions .inline-form { width: 100%; }
  .footer-shell { padding: 20px 0; align-items: flex-start; flex-direction: column; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* AI circles diagram (Week 1) */
.prose .ai-circles { margin: 24px 0 28px; }
.prose .ai-circles .ring { position: relative; padding: 14px 18px 18px; border-radius: 999px / 70%; text-align: center; }
.prose .ai-circles .ring > span { display: block; margin-bottom: 10px; font-weight: 850; font-size: .9rem; }
.prose .ai-circles .r1 { background: #e6f0f7; border: 2px solid #8bb4d3; }
.prose .ai-circles .r2 { width: 84%; margin: 0 auto; background: #cfe2f0; border: 2px solid #6a9fc6; }
.prose .ai-circles .r3 { width: 80%; margin: 0 auto; background: #a9cbe3; border: 2px solid #3f7fae; }
.prose .ai-circles .r4 { width: 74%; margin: 0 auto; padding: 18px; color: white; background: var(--forest); border: 2px solid var(--forest); }
.prose .ai-circles .r4 > span { margin: 0; }
.prose .ai-circles small { font-weight: 500; opacity: .85; }
/* Copy button on prompts */
.prose .prompt-box { position: relative; }
.copy-btn { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border: 1px solid rgba(7,91,146,.3); border-radius: 999px; color: var(--forest); background: white; cursor: pointer; font-size: .72rem; font-weight: 800; }
.copy-btn:hover { color: white; background: var(--forest); }
.prose .prompt-box .prompt-text { padding-right: 56px; margin-bottom: 0; }

/* Join form: first-time fields */
.first-time { display: grid; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.5); }
.first-time[open] { gap: 18px; }
.first-time summary { cursor: pointer; color: var(--forest); font-weight: 850; font-size: .9rem; }
.first-time[open] summary { margin-bottom: 14px; }
.first-time .form-group + .form-group { margin-top: 16px; }

/* Password field with Show button */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); background: white; cursor: pointer; font-size: .78rem; font-weight: 800; }
.auth-footer.small { margin-top: 8px; font-size: .8rem; }
