:root {
  --ink: #211817;
  --ink-soft: #453735;
  --paper: #f5f0e8;
  --paper-2: #ebe1d5;
  --white: #fffdfa;
  --wine: #6f3541;
  --wine-dark: #4e252e;
  --rose: #c68f8a;
  --peach: #e6b49e;
  --sage: #9b9c83;
  --line: rgba(33, 24, 23, .14);
  --shadow: 0 30px 80px rgba(56, 35, 29, .11);
  --radius: 28px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.container-wide { width: min(1480px, calc(100% - 72px)); margin: 0 auto; }
.container-narrow { width: min(960px, calc(100% - 48px)); margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 50; min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 14px 36px; background: rgba(245,240,232,.9); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(33,24,23,.08); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; letter-spacing: .18em; font-weight: 750; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--ink); font-family: var(--serif); font-style: italic; font-size: 19px; }
.brand-word { line-height: 1; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.nav a:not(.button), .link-button { opacity: .72; transition: opacity .2s ease; }
.nav a:hover, .link-button:hover { opacity: 1; }
.nav-user { padding-left: 18px; border-left: 1px solid var(--line); color: var(--wine); font-weight: 650; }
.nav form { margin: 0; }
.link-button { border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--ink); }

.button { border: 0; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: 14px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--wine-dark); box-shadow: 0 12px 28px rgba(78,37,46,.18); }
.button.mini { min-height: 42px; padding: 0 18px; }
.button.small { min-height: 44px; }
.button.wide { width: 100%; }
.button.outline { background: transparent; color: var(--ink); border: 1px solid rgba(33,24,23,.22); box-shadow: none; }
.text-link { font-weight: 650; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.text-link span { margin-left: 6px; }

.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .18em; font-weight: 800; text-transform: uppercase; color: var(--wine); }
.eyebrow span { width: 26px; height: 1px; background: currentColor; }
.eyebrow.plain { display: block; }

.home-hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero-copy-wrap h1 { margin: 28px 0 28px; max-width: 850px; font-family: var(--serif); font-size: clamp(58px, 6.6vw, 108px); line-height: .9; letter-spacing: -.052em; font-weight: 500; }
.hero-copy-wrap h1 em { color: var(--wine); font-weight: 400; }
.hero-copy { max-width: 690px; margin: 0; color: var(--ink-soft); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; }
.hero-trust { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; border-top: 1px solid var(--line); }
.hero-trust div { padding: 20px 20px 0 0; }
.hero-trust strong, .hero-trust span { display: block; }
.hero-trust strong { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.hero-trust span { margin-top: 5px; color: #756967; font-size: 12px; line-height: 1.45; }

.hero-art { position: relative; height: min(680px, 72vh); min-height: 560px; overflow: hidden; border-radius: 44px; background: #281d1d; box-shadow: var(--shadow); isolation: isolate; }
.hero-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 28% 20%, rgba(230,180,158,.24), transparent 26%), radial-gradient(circle at 76% 76%, rgba(198,143,138,.28), transparent 30%), linear-gradient(155deg, #342523 0%, #1f1717 55%, #3d252b 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7; }
.orb-one { width: 420px; height: 420px; right: -120px; top: -100px; background: radial-gradient(circle at 35% 35%, #dfb49e, #7e4148 62%, transparent 64%); }
.orb-two { width: 320px; height: 320px; left: -120px; bottom: -80px; background: radial-gradient(circle at 55% 40%, #a89e83, #554b43 65%, transparent 67%); opacity: .45; }
.art-line { position: absolute; left: 18%; top: 0; height: 100%; width: 1px; background: rgba(255,255,255,.13); }
.art-card { position: absolute; z-index: 2; color: #fff; backdrop-filter: blur(18px); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; }
.art-card span { display: block; color: rgba(255,255,255,.62); font-size: 9px; letter-spacing: .2em; font-weight: 750; }
.art-card strong { display: block; font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.art-card-main { left: 12%; bottom: 15%; width: 62%; padding: 30px; }
.art-card-main strong { margin: 18px 0 20px; font-size: 38px; line-height: 1.02; }
.art-card-main small { color: rgba(255,255,255,.6); }
.art-card-small { right: 7%; top: 17%; width: 43%; padding: 22px; }
.art-card-small strong { margin-top: 12px; font-size: 23px; }
.art-quote { position: absolute; right: 7%; bottom: 10%; z-index: 3; color: rgba(255,255,255,.76); font-family: var(--serif); font-size: 24px; font-style: italic; text-align: right; }

.manifesto { display: grid; grid-template-columns: 90px 1.5fr .72fr; gap: 36px; padding: 120px 0; border-top: 1px solid var(--line); align-items: start; }
.manifesto-index { font-size: 11px; color: var(--wine); }
.manifesto h2, .section-head h2, .experience h2, .content-title h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(38px, 4vw, 68px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; }
.manifesto h2 em, .experience h2 em { color: var(--wine); font-weight: 400; }
.manifesto > p { margin: 30px 0 0; color: #6a5d5b; font-size: 16px; line-height: 1.7; }

.programs-section { padding: 110px 0 130px; }
.section-head { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: end; margin-bottom: 54px; }
.section-head p { color: #6d6160; line-height: 1.65; margin: 0 0 8px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-card { min-height: 520px; padding: 28px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.course-card::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -120px; top: -100px; border: 1px solid rgba(255,255,255,.22); }
.card-1 { background: var(--wine); color: var(--white); }
.card-2 { background: #ddc2ad; color: var(--ink); }
.card-3 { background: #3b3830; color: #f6f1e9; }
.course-card-top, .course-card-bottom { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.course-index { font-family: var(--serif); font-size: 22px; font-style: italic; }
.course-tag { padding: 8px 12px; border: 1px solid currentColor; border-radius: 999px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.course-card-body { position: relative; z-index: 1; }
.course-card-body h3 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(38px, 3vw, 52px); line-height: .98; letter-spacing: -.035em; font-weight: 500; }
.course-card-body p { max-width: 430px; font-size: 14px; line-height: 1.65; opacity: .75; }
.course-card-bottom strong { font-size: 15px; }
.course-card-bottom a { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 22px; transition: transform .2s ease; }
.course-card-bottom a:hover { transform: rotate(45deg); }

.experience { padding: 120px 0 140px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; border-top: 1px solid var(--line); }
.experience-steps { display: grid; gap: 0; }
.experience-steps > div { display: grid; grid-template-columns: 50px 1fr 1.2fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.experience-steps span { color: var(--wine); font-size: 11px; }
.experience-steps strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.experience-steps p { margin: 0; color: #6d6160; line-height: 1.6; font-size: 14px; }

.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 56px 36px; display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 40px; font-size: 12px; line-height: 1.55; }
.footer-brand { color: #fff; font-size: 15px; letter-spacing: .2em; font-weight: 800; }
.footer-note { opacity: .55; }

/* Shared page chrome */
.page-head, .dashboard-hero { padding: 82px 0 46px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.page-head h1, .dashboard-hero h1 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 84px); line-height: .96; letter-spacing: -.04em; font-weight: 500; }
.dashboard-hero h1 em { color: var(--wine); font-weight: 400; }
.back-link { display: inline-flex; margin-bottom: 22px; color: #746866; font-size: 12px; }
.back-link.light { color: rgba(255,255,255,.66); }
.muted { color: #817573; }
.top-gap { margin-top: 28px; }

.course-hero { padding: 86px 0 92px; display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: end; }
.course-hero-copy h1 { margin: 26px 0 24px; max-width: 950px; font-family: var(--serif); font-size: clamp(58px, 7.5vw, 112px); line-height: .9; letter-spacing: -.052em; font-weight: 500; }
.course-hero-copy > p { max-width: 760px; margin: 0; color: #655856; font-size: 19px; line-height: 1.6; }
.course-facts { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 8px; }
.course-facts span { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 11px; }
.purchase-card { padding: 32px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(33,24,23,.08); }
.purchase-card .price { margin: 18px 0 14px; font-family: var(--serif); font-size: 56px; letter-spacing: -.04em; }
.purchase-card p { color: #716562; line-height: 1.55; font-size: 14px; }
.purchase-card small { display: block; margin-top: 15px; color: #968987; line-height: 1.45; }
.access-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #dce5d5; color: #47533e; font-weight: 800; }
.access-badge { display: inline-block; margin: 16px 0 8px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #53664c; }
.purchase-card h3 { margin: 6px 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 500; }

.course-content { display: grid; grid-template-columns: 1fr 410px; gap: 54px; padding-bottom: 130px; align-items: start; }
.content-title { margin-bottom: 28px; }
.content-title > span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); font-weight: 800; }
.content-title h2 { font-size: clamp(38px, 4vw, 60px); }
.module-card { display: grid; grid-template-columns: 82px 1fr; gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); }
.module-number { font-family: var(--serif); color: var(--wine); font-style: italic; font-size: 20px; }
.module-main > h3 { margin: 0 0 20px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.lesson-list { display: grid; }
.lesson-list a { display: grid; grid-template-columns: 120px 1fr 30px; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(33,24,23,.08); }
.lesson-list a:hover strong { color: var(--wine); }
.lesson-list strong { font-size: 14px; transition: color .2s ease; }
.lesson-list b { font-size: 18px; font-weight: 400; }
.lesson-type { color: #8a7d7a; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.locked-row { padding: 18px; border-radius: 14px; background: rgba(255,255,255,.55); display: flex; justify-content: space-between; color: #817472; font-size: 13px; }
.side-panel { padding: 28px; border-radius: 24px; background: rgba(255,255,255,.48); border: 1px solid rgba(33,24,23,.08); }
.live-side-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #d24d57; box-shadow: 0 0 0 6px rgba(210,77,87,.10); }
.schedule-item { display: grid; grid-template-columns: 58px 1fr 24px; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.schedule-item:first-of-type { border-top: 0; }
.schedule-date { font-family: var(--serif); color: var(--wine); font-size: 18px; }
.schedule-item div strong { font-size: 12px; }
.schedule-item p { margin: 4px 0 0; line-height: 1.35; font-size: 13px; }
.schedule-item small { display: block; margin-top: 5px; color: #8a7c79; font-size: 10px; }
.schedule-item > b { font-weight: 400; }
.schedule-item.disabled { opacity: .52; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 410px; gap: 54px; padding-bottom: 130px; align-items: start; }
.stack-cards { display: grid; gap: 12px; }
.program-row { min-height: 142px; padding: 26px 28px; border-radius: 22px; background: rgba(255,255,255,.6); border: 1px solid rgba(33,24,23,.07); display: grid; grid-template-columns: 54px 1fr 40px; gap: 18px; align-items: center; transition: background .2s ease, transform .2s ease; }
.program-row:hover { background: var(--white); transform: translateX(5px); }
.program-row-index { font-family: var(--serif); font-style: italic; color: var(--wine); font-size: 20px; }
.program-row-copy span { color: var(--wine); font-size: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.program-row-copy h3 { margin: 8px 0 6px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.program-row-copy small { color: #8b7f7d; }
.row-arrow { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.empty-card { padding: 36px; border-radius: 24px; border: 1px dashed rgba(33,24,23,.22); }
.large-empty h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.large-empty p { color: #756866; }

/* Reading and assignments */
.reading-shell, .assignment-shell { padding-top: 64px; padding-bottom: 120px; }
.reading-card { padding: clamp(32px, 5vw, 72px); border-radius: 32px; background: var(--white); border: 1px solid rgba(33,24,23,.07); box-shadow: var(--shadow); }
.reading-card h1 { margin: 26px 0 40px; font-family: var(--serif); font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.04em; font-weight: 500; }
.reading-body { white-space: pre-line; color: #4f4341; font-family: var(--serif); font-size: 21px; line-height: 1.72; }
.attachments-block { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.attachments-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.attachments-head span { font-weight: 700; }
.attachments-head small { color: #8c7e7c; }
.file-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(33,24,23,.08); }
.file-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); }
.file-row strong, .file-row small { display: block; }
.file-row strong { font-size: 13px; }
.file-row small { margin-top: 3px; color: #938683; }
.file-row > b { font-size: 11px; color: var(--wine); }

.assignment-grid { display: grid; grid-template-columns: 1fr 520px; gap: 30px; align-items: start; }
.assignment-brief { box-shadow: none; }
.deadline { margin-top: 42px; display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); }
.deadline span { color: #887b78; font-size: 12px; }
.deadline strong { font-size: 13px; }
.assignment-note { margin-top: 34px; padding: 20px; border-radius: 16px; background: var(--paper); color: #6d5f5d; line-height: 1.55; font-size: 13px; }
.submission-card { padding: 30px; border-radius: 28px; background: #281d1d; color: #fff; position: sticky; top: 100px; }
.submission-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.submission-head span { color: rgba(255,255,255,.55); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.submission-head h2 { margin: 7px 0 0; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.status-pill { padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.status-pill.accepted { background: rgba(158,190,142,.18); color: #cce4be; }
.status-pill.revision { background: rgba(230,180,158,.16); color: #efc4af; }
.review-box { margin: 0 0 22px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.07); }
.review-box span, .submitted-files > span { color: rgba(255,255,255,.5); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.review-box p { margin: 8px 0 0; line-height: 1.55; font-size: 13px; }
.submitted-files { margin-bottom: 22px; }
.submitted-files a { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.submitted-files small { color: rgba(255,255,255,.5); }

/* Forms */
.stack-form { display: grid; gap: 16px; }
.stack-form label { display: grid; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.stack-form input, .stack-form textarea, .inline-form input, .review-form textarea { width: 100%; border: 1px solid rgba(33,24,23,.15); background: rgba(255,255,255,.8); color: var(--ink); border-radius: 13px; outline: none; padding: 14px 15px; transition: border .2s ease, box-shadow .2s ease; }
.stack-form textarea, .review-form textarea { resize: vertical; }
.stack-form input:focus, .stack-form textarea:focus, .inline-form input:focus, .review-form textarea:focus { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(111,53,65,.08); }
.submission-card .stack-form label { color: rgba(255,255,255,.72); }
.submission-card .stack-form input, .submission-card .stack-form textarea { background: rgba(255,255,255,.075); color: #fff; border-color: rgba(255,255,255,.13); }
.submission-card .stack-form input::placeholder, .submission-card .stack-form textarea::placeholder { color: rgba(255,255,255,.35); }
.upload-zone { min-height: 116px; border: 1px dashed rgba(255,255,255,.28); border-radius: 18px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: background .2s ease, border .2s ease; }
.upload-zone:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.5); }
.upload-zone input { display: none; }
.upload-zone strong { font-size: 12px; }
.upload-zone small { color: rgba(255,255,255,.46); font-weight: 400; }
.upload-icon { font-size: 24px; line-height: 1; }
.small-upload { color: var(--ink) !important; border-color: rgba(33,24,23,.22); background: rgba(255,255,255,.45); }
.small-upload small { color: #8d7f7d; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }

/* Auth */
.auth-shell { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { min-height: 690px; padding: 60px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 70% 20%, rgba(230,180,158,.35), transparent 26%), linear-gradient(145deg, #2b2020, #5c3038); color: #fff; }
.auth-art span { font-size: 12px; letter-spacing: .2em; font-weight: 800; }
.auth-art p { max-width: 560px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 72px); line-height: .98; letter-spacing: -.04em; }
.auth-card { width: min(520px, calc(100% - 60px)); margin: auto; padding: 50px 0; }
.auth-card h1 { margin: 18px 0 12px; font-family: var(--serif); font-size: 56px; font-weight: 500; letter-spacing: -.04em; }
.auth-card > p { color: #756866; line-height: 1.55; }
.auth-card .stack-form { margin-top: 30px; }
.form-foot { margin-top: 24px; font-size: 13px; }
.form-foot a { color: var(--wine); font-weight: 700; }
.alert { padding: 14px 16px; border-radius: 12px; font-size: 13px; }
.alert.error { color: #8a2f36; background: #f2dada; }

/* Admin */
.admin-grid { display: grid; grid-template-columns: 1fr 520px; gap: 34px; padding-bottom: 120px; align-items: start; }
.panel { padding: 28px; border-radius: 24px; background: rgba(255,255,255,.58); border: 1px solid rgba(33,24,23,.08); }
.panel h2 { font-family: var(--serif); font-size: 32px; font-weight: 500; }
.premium-panel { background: var(--white); box-shadow: var(--shadow); }
.review-panel { position: sticky; top: 96px; }
.review-list { display: grid; gap: 14px; margin-top: 18px; }
.review-item { padding: 20px; border-radius: 18px; background: var(--white); border: 1px solid rgba(33,24,23,.08); }
.review-person strong, .review-person span { display: block; }
.review-person span { margin-top: 4px; color: #897b78; font-size: 11px; }
.review-item > p { color: #615553; line-height: 1.55; font-size: 13px; }
.review-link { color: var(--wine); font-size: 12px; font-weight: 700; }
.review-files { display: grid; gap: 5px; margin: 12px 0; }
.review-files a { font-size: 11px; color: var(--wine); }
.review-files small { color: #8b7e7a; }
.review-form { margin-top: 14px; }
.review-actions { display: flex; gap: 8px; margin-top: 8px; }
.review-actions button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; background: var(--ink); color: #fff; font-size: 11px; }
.review-actions .ghost-button { background: var(--paper-2); color: var(--ink); }
.admin-course-grid { display: grid; grid-template-columns: 1fr 390px; gap: 34px; padding-bottom: 120px; align-items: start; }
.admin-module { margin-bottom: 15px; }
.module-admin-title span { color: var(--wine); font-size: 9px; letter-spacing: .14em; font-weight: 800; }
.module-admin-title h2 { margin: 8px 0 18px; }
.admin-items { display: grid; border-top: 1px solid var(--line); }
.admin-items > div { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-items span { color: #8b7e7b; font-size: 10px; }
.admin-items strong { font-size: 12px; }
details { margin-top: 14px; }
summary { cursor: pointer; list-style: none; padding: 12px 0; color: var(--wine); font-size: 12px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
.compact-form { margin-top: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.sticky-panel { position: sticky; top: 96px; }
.livekit-admin-note { margin-top: 20px; padding: 14px; border-radius: 14px; background: #e8e5dc; }
.livekit-admin-note strong, .livekit-admin-note span { display: block; }
.livekit-admin-note strong { font-size: 11px; color: #4b5947; }
.livekit-admin-note span { margin-top: 4px; color: #706762; font-size: 10px; line-height: 1.45; }

/* LIVE */
.live-shell { min-height: calc(100vh - 78px); height: calc(100vh - 78px); display: grid; grid-template-columns: 1fr 420px; background: #171111; color: #fff; }
body:has(.live-shell) .footer { display: none; }
.live-stage { min-width: 0; padding: 28px 34px 40px; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 52%, rgba(111,53,65,.25), transparent 34%), linear-gradient(140deg, #191313, #241919); }
.live-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live-presence { display: flex; align-items: center; gap: 9px; font-size: 11px; color: rgba(255,255,255,.58); white-space: nowrap; }
.live-presence .live-dot { width: 7px; height: 7px; box-shadow: 0 0 0 5px rgba(210,77,87,.08); }
.speaker-card { position: relative; margin: auto; width: min(720px, 100%); min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; isolation: isolate; }
.speaker-orbit { position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; z-index: -1; }
.orbit-a { width: 420px; height: 420px; }
.orbit-b { width: 560px; height: 560px; border-color: rgba(255,255,255,.04); }
.live-badge { position: absolute; top: 35px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.56); font-size: 9px; letter-spacing: .16em; }
.speaker-avatar { width: 138px; height: 138px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #d4a08e, #79434a); font-family: var(--serif); font-size: 58px; box-shadow: 0 0 0 16px rgba(255,255,255,.03), 0 0 70px rgba(198,143,138,.16); transition: box-shadow .25s ease, transform .25s ease; }
.speaker-avatar.speaking { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(214,129,133,.09), 0 0 0 30px rgba(214,129,133,.035), 0 0 95px rgba(198,143,138,.24); }
.speaker-role { margin-top: 24px; color: rgba(255,255,255,.45); font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.speaker-card h1 { margin: 10px 0 6px; font-family: var(--serif); font-size: 42px; font-weight: 500; }
.speaker-card > p,
.speaker-copy > p { margin: 0; max-width: 560px; color: rgba(255,255,255,.63); line-height: 1.5; }
.audio-status { margin-top: 24px; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.62); font-size: 10px; }
.audio-status i { width: 6px; height: 6px; border-radius: 50%; background: #8c817e; }
.audio-status[data-state="connected"] i, .audio-status[data-state="live"] i { background: #d45761; box-shadow: 0 0 0 5px rgba(212,87,97,.09); }
.audio-status[data-state="error"] i { background: #dd9b61; }
.mic-button, .audio-unlock { margin-top: 24px; min-width: 210px; min-height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: #f4eee7; color: #201818; cursor: pointer; font-weight: 700; transition: transform .2s ease, opacity .2s ease, background .2s ease; }
.mic-button:hover, .audio-unlock:hover { transform: translateY(-2px); }
.mic-button.active { background: #8e3f49; color: #fff; border-color: transparent; }
.mic-button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.speaker-note, .listener-note { max-width: 430px !important; margin-top: 13px !important; font-size: 10px !important; color: rgba(255,255,255,.38) !important; }
.remote-audio audio { display: none; }
.chat-panel { min-width: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #f6f1e9; color: var(--ink); border-left: 1px solid rgba(255,255,255,.05); }
.chat-header { min-height: 82px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.chat-header span, .chat-header small { display: block; }
.chat-header span { font-family: var(--serif); font-size: 21px; }
.chat-header small { margin-top: 4px; color: #8c7f7c; font-size: 10px; }
.chat-live-pill { color: #aa414c; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.chat-messages { min-height: 220px; overflow-y: auto; padding: 18px 20px; -webkit-overflow-scrolling: touch; }
.chat-message { padding: 14px 0; border-bottom: 1px solid rgba(33,24,23,.08); }
.chat-message > div { display: flex; justify-content: space-between; gap: 12px; }
.chat-message strong { font-size: 11px; }
.chat-message time { color: #a09592; font-size: 9px; }
.chat-message p { margin: 6px 0 0; color: #5f5350; font-size: 13px; line-height: 1.45; }
.chat-message.mine strong { color: var(--wine); }
.chat-form { padding: 16px; display: grid; grid-template-columns: 1fr 44px; gap: 8px; border-top: 1px solid var(--line); background: #f6f1e9; }
.chat-form textarea { resize: none; border: 1px solid rgba(33,24,23,.11); border-radius: 15px; background: #fff; outline: none; padding: 12px; font-size: 12px; max-height: 120px; }
.chat-form button { width: 44px; height: 44px; align-self: end; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; cursor: pointer; }

@media (max-width: 1120px) {
  .home-hero, .course-hero, .experience { grid-template-columns: 1fr; }
  .hero-art { height: 600px; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .course-card:last-child { grid-column: span 2; }
  .course-content, .dashboard-grid, .admin-course-grid, .admin-grid { grid-template-columns: 1fr; }
  .side-panel, .sticky-panel, .review-panel, .submission-card { position: static; }
  .assignment-grid { grid-template-columns: 1fr; }
  .live-shell { grid-template-columns: 1fr 360px; }
  .manifesto { grid-template-columns: 60px 1fr; }
  .manifesto > p { grid-column: 2; }
}

@media (max-width: 780px) {
  .container-wide { width: min(100% - 32px, 1480px); }
  .container-narrow { width: min(100% - 28px, 960px); }
  .topbar { padding: 12px 16px; min-height: 68px; }
  .brand-word { display: none; }
  .nav { gap: 14px; font-size: 11px; }
  .nav-user { display: none; }
  .nav a[href="/#programs"] { display: none; }
  .home-hero { min-height: auto; padding: 62px 0 54px; gap: 46px; }
  .hero-copy-wrap h1 { font-size: 58px; }
  .hero-art { min-height: 490px; height: 540px; border-radius: 28px; }
  .art-card-main { width: 76%; left: 8%; }
  .art-card-small { width: 55%; }
  .art-card-main strong { font-size: 30px; }
  .hero-trust { grid-template-columns: 1fr; margin-top: 48px; }
  .hero-trust div { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .manifesto { grid-template-columns: 1fr; gap: 18px; padding: 80px 0; }
  .manifesto-index { display: none; }
  .manifesto > p { grid-column: auto; margin-top: 0; }
  .programs-section { padding: 70px 0 90px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card, .course-card:last-child { grid-column: auto; min-height: 450px; }
  .experience { padding: 80px 0 90px; gap: 45px; }
  .experience-steps > div { grid-template-columns: 35px 1fr; }
  .experience-steps p { grid-column: 2; }
  .footer { grid-template-columns: 1fr; padding: 42px 22px; gap: 18px; }
  .course-hero { padding: 60px 0; gap: 44px; }
  .course-hero-copy h1 { font-size: 64px; }
  .course-content { padding-bottom: 80px; }
  .module-card { grid-template-columns: 44px 1fr; gap: 14px; }
  .lesson-list a { grid-template-columns: 1fr 26px; }
  .lesson-type { grid-column: 1 / -1; }
  .dashboard-hero, .page-head { padding: 58px 0 34px; align-items: start; flex-direction: column; }
  .dashboard-hero h1, .page-head h1 { font-size: 54px; }
  .program-row { grid-template-columns: 36px 1fr 34px; padding: 20px 18px; }
  .program-row-copy h3 { font-size: 24px; }
  .reading-shell, .assignment-shell { padding-top: 36px; }
  .reading-card { padding: 28px 22px; border-radius: 22px; }
  .reading-card h1 { font-size: 46px; }
  .reading-body { font-size: 19px; }
  .submission-card { padding: 22px; border-radius: 22px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; padding: 28px; }
  .auth-art p { font-size: 42px; }
  .auth-card { width: calc(100% - 40px); padding: 46px 0 70px; }
  .admin-items > div { grid-template-columns: 1fr; gap: 5px; }
  .inline-form { grid-template-columns: 1fr; }
  .live-shell {
    --live-topbar: 58px;
    position: fixed;
    inset: var(--live-topbar) 0 0 0;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    z-index: 40;
  }
  body:has(.live-shell) {
    overflow: hidden;
  }
  body:has(.live-shell) .topbar {
    min-height: var(--live-topbar);
    padding: 8px 12px;
  }
  body:has(.live-shell) .nav a:not([href="/dashboard"]):not([href="/admin"]) {
    display: none;
  }
  .live-stage {
    min-height: 0;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .live-topline {
    margin-bottom: 10px;
  }
  .live-topline .back-link {
    font-size: 11px;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .speaker-card {
    margin: 0;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "avatar copy"
      "status status"
      "action action"
      "note note";
    gap: 8px 12px;
    align-items: center;
    text-align: left;
    justify-items: stretch;
  }
  .speaker-orbit,
  .live-badge {
    display: none;
  }
  .speaker-avatar {
    grid-area: avatar;
    width: 56px;
    height: 56px;
    font-size: 24px;
    box-shadow: 0 0 0 4px rgba(255,255,255,.04);
  }
  .speaker-avatar.speaking {
    transform: none;
  }
  .speaker-copy {
    grid-area: copy;
    min-width: 0;
  }
  .speaker-role {
    margin-top: 0;
    font-size: 8px;
  }
  .speaker-card h1 {
    margin: 2px 0 2px;
    font-size: 20px;
    line-height: 1.1;
  }
  .speaker-copy > p {
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .audio-status {
    grid-area: status;
    margin-top: 0;
    justify-self: start;
    max-width: 100%;
  }
  .mic-button,
  .audio-unlock {
    grid-area: action;
    margin-top: 0;
    min-width: 0;
    width: 100%;
    min-height: 42px;
  }
  .speaker-note,
  .listener-note {
    grid-area: note;
    margin-top: 0 !important;
    max-width: none !important;
    font-size: 10px !important;
  }
  .chat-panel {
    height: auto;
    min-height: 0;
    border-left: 0;
    border-top: 0;
    padding-bottom: var(--keyboard-inset, 0px);
  }
  .chat-header {
    min-height: 52px;
    padding: 10px 14px;
  }
  .chat-header span {
    font-size: 17px;
  }
  .chat-header small {
    display: none;
  }
  .chat-messages {
    min-height: 0;
    max-height: none;
    padding: 10px 14px 8px;
  }
  .chat-message {
    padding: 10px 0;
  }
  .chat-message p {
    font-size: 14px;
  }
  .chat-form {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: 1fr 48px;
    gap: 10px;
    box-shadow: 0 -10px 24px rgba(33,24,23,.06);
  }
  .chat-form textarea {
    min-height: 44px;
    padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom */
    border-radius: 18px;
    line-height: 1.35;
  }
  .chat-form button {
    width: 48px;
    height: 48px;
  }
  .orbit-a,
  .orbit-b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
