@font-face{font-family:Montserrat;src:url("/assets/montserrat-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{--navy:#1c3f60;--navy-deep:#142e47;--gold:#b58b45;--gold-light:#edce8d;--muted:#526176;--line:#ccd5df;--paper:#fff;--bg:#f5f6f8;--green:#27745c;--shadow:0 8px 32px #142b4310;--radius:20px}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{font:500 16px/1.65 Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--navy);margin:0;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:inherit}
.icon{stroke-width:2.3;width:21px;height:21px;flex-shrink:0;vertical-align:middle}
h1,h2,h3,h4,p{margin-top:0}
h1,h2,h3,h4,.brand strong,.studio-wordmark{font-family:Montserrat,"Segoe UI",sans-serif}
h1,h2,h3,h4{font-weight:750;line-height:1.18;letter-spacing:-.035em}
h2{font-size:28px;margin-bottom:18px}
h3{font-size:22px;margin-bottom:14px}
h4{font-size:17px;margin-bottom:12px}
p{color:#3e4f63}
em{font-family:Georgia,"Times New Roman",serif;font-weight:600}
.sub,.mini-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.17em;color:var(--gold);font-weight:750}
.muted,small{color:var(--muted)}
.gold-text{color:var(--gold)}

.site-header{height:94px;padding:0 max(32px,calc((100vw - 1344px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--navy);border-bottom:2px solid #ddc48d;color:#fff}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand img{flex-shrink:0;object-fit:contain}
.brand strong{font-size:23px;letter-spacing:-.025em;display:block;line-height:1.4}
.brand small{display:block;color:#dbe5ef;font-size:11px;letter-spacing:.12em;margin-top:4px;font-weight:700}
.brand small span{margin:0 5px;color:var(--gold)}
.header-label{display:flex;align-items:center;gap:9px;font-size:12px;letter-spacing:.13em;font-weight:750;color:#e2eaf2}
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px #b58b4512}
.site-footer{max-width:1344px;margin:0 auto;padding:24px 0 30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:13px;color:#7b8591}
.site-footer span:first-child{font-family:Georgia,serif;font-style:italic;font-size:16px}
main{max-width:1408px;margin:0 auto;padding:38px 32px 80px;min-height:calc(100vh - 180px)}

/* Arrival: editorial typography, a local document illustration, one clear action. */
.welcome-layout{display:grid;grid-template-columns:1.12fr 1fr;min-height:700px;gap:0;background:#fff;border-radius:28px;box-shadow:var(--shadow);overflow:hidden;border:2px solid var(--line)}
.welcome-story{background:var(--navy);background-image:radial-gradient(ellipse at 100% 100%,#2d4964 0,transparent 60%);position:relative;overflow:hidden;padding:46px 54px 28px;color:white}
.welcome-story>.sub{display:flex;gap:12px;align-items:center;color:var(--gold-light)}
.eyebrow-line{height:1px;width:25px;background:var(--gold-light)}
.welcome-story h1{font-size:clamp(54px,5.6vw,82px);letter-spacing:-.065em;line-height:1.02;margin:30px 0 22px;font-weight:750;position:relative;z-index:1}
.welcome-story h1 em{color:var(--gold-light);letter-spacing:-.055em}
.welcome-lead{color:#c7d0dc;font-size:16px;line-height:1.8}
.welcome-tags{display:flex;gap:24px;margin-top:24px;color:#dfe5ed;font-size:13px}
.welcome-tags span{display:flex;gap:8px;align-items:center}
.welcome-tags .icon{width:16px;color:var(--gold-light)}
.story-art{height:270px;margin-top:12px;position:relative;max-width:460px}
.orbit{position:absolute;border:1px solid #e8cc961c;border-radius:50%;width:290px;height:290px;left:66px;top:26px}
.orbit-two{width:370px;height:370px;left:26px;top:-14px}
.mini-document{position:absolute;left:75px;top:32px;width:240px;background:#f9fafb;padding:24px 22px 16px;border-radius:8px;transform:rotate(-9deg);box-shadow:0 14px 45px #0004;color:var(--navy)}
.document-top{display:flex;gap:11px;align-items:center}
.avatar-block{background:#e5eaf0;border-radius:6px;font-size:12px;display:grid;place-items:center;width:37px;height:37px;font-weight:750}
.document-top b{font-size:13px}
.mini-document i{height:4px;background:#dee4ec;border-radius:4px;display:block;margin:8px 0}
.mini-document i.short{width:62%}
.mini-document i.medium{width:80%}
.document-top i{width:70px}
.document-rule{height:1px;background:var(--gold);margin:18px 0 12px}
.document-label{font-size:9px;letter-spacing:.12em;font-weight:700}
.document-stamp{display:flex;gap:6px;align-items:center;color:#39725b;margin-top:15px;font-size:11px}
.document-stamp .icon{width:13px;height:13px}
.art-badge{position:absolute;right:0;bottom:29px;transform:rotate(4deg);border:1px solid #ffffff30;background:#203a54;box-shadow:0 14px 35px #00102255;border-radius:13px;display:flex;gap:12px;align-items:center;padding:16px 20px;font-size:13px;line-height:1.5}
.art-badge .icon{color:var(--gold-light);width:29px;height:29px}
.art-spark{position:absolute;left:22px;top:104px;font-size:35px;color:var(--gold-light)}
.welcome-bottom{border-top:1px solid #ffffff22;display:flex;justify-content:space-between;font-size:11px;letter-spacing:.15em;color:#afbdcc;padding-top:20px;position:relative;margin-top:10px}
.join-column{display:flex;flex-direction:column;justify-content:center;padding:56px 66px;background:radial-gradient(ellipse at 100% 0,#f5f0e7,transparent 60%)}
.join-card h2{font-size:50px;line-height:1.07;margin:22px 0;font-weight:700;letter-spacing:-.05em}
.join-card h2 em{color:#9c783e}
.join-card>p{font-size:16px;line-height:1.85;max-width:370px;margin-bottom:30px}
.join-card label{font-size:14px;margin-bottom:10px}
.join-card input{padding:16px}
.join-btn{width:100%;margin-top:14px;padding:16px 20px!important;justify-content:space-between!important}
.join-note{display:flex;gap:9px;margin-top:22px;align-items:flex-start}
.join-note .icon{height:15px;width:15px;color:#5d6e83;margin-top:2px}
.join-note p{font-size:12px;line-height:1.75;color:#7c8795}
.join-features{border-top:1px solid var(--line);margin-top:22px;padding-top:25px;display:grid;grid-template-columns:1fr 1fr}
.join-features>div+div{border-left:1px solid var(--line);padding-left:28px}
.join-features b{display:block;font-size:24px;line-height:1.1;letter-spacing:-.04em}
.join-features span{display:block;color:var(--muted);font-size:12px;margin-top:6px}
.join-signoff{font:italic 14px Georgia,serif;color:#8a8f97;text-align:center;margin:30px 0 0}

/* Student desktop workspace: reading area left, journey always on the right. */
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.workspace-heading h2{font-size:27px;margin:8px 0 0;font-weight:700}
.workbook-badge{display:flex;align-items:center;gap:9px;font-size:13px;color:#758092}
.workbook-badge .icon{color:var(--gold);width:18px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;align-items:start}
.student-content{grid-column:1;grid-row:1;min-width:0}
.sidebar{background:white;border:2px solid var(--line);border-radius:var(--radius);padding:24px;align-self:start;position:sticky;top:24px;box-shadow:var(--shadow)}
.journey-sidebar{grid-column:2;grid-row:1;padding:25px 20px 18px;max-height:calc(100dvh - 48px);overflow:auto;scrollbar-width:thin;scrollbar-color:#dce1e8 transparent}
.journey-heading{padding:0 8px}
.journey-heading h3{font-size:25px;margin:9px 0 8px;font-weight:700}
.journey-heading p{font-size:13px;line-height:1.7;max-width:210px;color:#53647a;margin-bottom:20px}
.journey-progress{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;padding:0 8px;font-size:12px;color:#53647a}
.journey-progress b{color:var(--navy);font-size:12px}
.journey-progress .barbg{width:100%;height:6px;margin:0 0 20px;background:#edf0f4}
.journey-progress .bar{background:var(--gold);transition:width .3s}
#journeyToggle{display:none}
#journeyNav{display:grid;gap:0;margin:0;padding:0 0 0 2px;position:relative}
.journey-step{position:relative;border:0;background:transparent;display:flex;width:100%;align-items:center;text-align:left;padding:15px 8px 15px 64px;min-height:82px;border-radius:12px;gap:5px;color:var(--navy)}
.journey-step::before{content:"";position:absolute;left:26px;top:calc(50% + 22px);bottom:-22px;border-left:3px solid #b7c5d6;z-index:0}
.journey-step:last-child::before{display:none}
.step-node{position:absolute;left:5px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#fff;border:2px solid #b8c7d8;color:#54687d;font-size:13px;font-weight:700;z-index:1;box-shadow:0 0 0 5px #fff}
.step-node .icon{width:18px;height:18px}
.step-copy{display:block;min-width:0;flex:1}
.step-title{display:block;font-size:14px;font-weight:750;line-height:1.4}
.step-copy small{display:block;font-size:12px;line-height:1.5;margin-top:4px;color:#5d6e83}
.step-arrow{width:13px;color:var(--gold)}
.journey-step.selected{background:#f5f1e8}
.journey-step.selected .step-node{background:var(--navy);color:var(--gold-light);border-color:var(--navy);box-shadow:0 0 0 5px #f5f1e8}
.journey-step.selected .step-copy small{color:#8a692e}
.journey-step.complete .step-node{background:#e5f0eb;border-color:#bdd6ca;color:var(--green)}
.journey-step.locked{cursor:default}
.journey-step.locked .step-title{color:#64748a}
.journey-step.locked .step-node{background:#f5f6f8;color:#8b96a4;border-color:#e6e9ef}
.journey-step:not(:disabled):hover{background:#f0f3f7}
.journey-foot{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.7;color:#5d6e83;border-top:1px solid var(--line);padding:17px 8px;margin-top:16px}
.journey-foot .icon{width:13px;height:13px;margin-top:2px}
.export-btn{font-size:13px!important;margin-top:2px;padding:12px 10px!important}
.journey-destination{display:flex;gap:12px;align-items:center;background:var(--navy);color:#fff;border-radius:12px;padding:16px 13px;margin-top:13px}
.journey-destination>.icon{color:var(--gold-light);width:26px;height:26px}
.journey-destination b{font-size:13px;display:block}
.journey-destination small{color:#b3c1d1;font-size:11px;display:block;margin-top:2px}

.hero{position:relative;overflow:hidden;background:var(--navy);background-image:radial-gradient(ellipse at 100% 110%,#304b66,transparent 65%);color:white;padding:36px 40px;border-radius:var(--radius);margin-bottom:22px;min-height:230px}
.hero .sub{color:var(--gold-light);position:relative}
.hero h1{font-size:38px;font-weight:700;letter-spacing:-.045em;margin:17px 0 13px;position:relative;max-width:80%}
.hero p{font-size:15px;line-height:1.8;color:#c5d0df;max-width:80%;position:relative;margin-bottom:22px}
.hero-meta{display:flex;gap:24px;align-items:center;flex-wrap:wrap;color:#b5c5d6;font-size:12px;position:relative}
.hero-meta span{display:flex;gap:7px;align-items:center}
.hero-meta .icon{height:14px;width:14px;color:var(--gold-light)}
.hero-decoration{position:absolute;right:-30px;bottom:-60px;border:1px solid #ffffff0e;border-radius:50%;width:230px;height:230px;display:grid;place-items:center;transform:rotate(-15deg);box-shadow:0 0 0 35px #ffffff03,0 0 0 70px #ffffff03}
.hero-decoration .icon{width:100px;height:100px;stroke-width:1;color:#ffffff12}
.theory{border:2px solid #d9c69f;background:#faf7f0;padding:23px 29px;border-radius:15px;margin:0 0 30px;white-space:pre-line;font-size:15px;line-height:1.85;color:#574c37}
.theory b{display:flex;align-items:center;gap:9px;color:#97743d;font-size:12px;letter-spacing:.14em;margin-bottom:12px}
.theory .icon{height:16px;width:16px}
.exercise{border:2px solid var(--line);padding:32px 36px;border-radius:var(--radius);margin-bottom:24px;background:white;box-shadow:var(--shadow)}
.exercise-eyebrow{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.exercise-eyebrow .sub{color:#7d8b9d;font-size:12px}
.exercise-time{font-size:12px;display:flex;align-items:center;gap:5px;color:#8a93a0}
.exercise-time .icon{width:13px;height:13px}
.exercise>h3{font-size:25px;font-weight:700}
.exercise>p{font-size:15px;line-height:1.9;margin-bottom:24px}
.exercise .case{background:#f5f7fa;border:1px solid #e8ecf1;border-radius:12px;padding:22px;margin:20px 0;font-size:15px;color:#55667b}
.case p{margin:7px 0}
.exercise .panel{box-shadow:none;border-radius:12px;background:#fafbfc;padding:24px;margin:22px 0}
.save-status{border-top:1px solid #edf0f4;padding-top:15px;margin-top:24px;min-height:30px}
.save-status .status::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#64a589;margin:0 6px 2px 0}
.save-status .error::before{background:#bb5a4e}
.waiting-panel{text-align:center;padding:45px!important}
.waiting-panel>.icon{width:32px;height:32px;color:var(--gold);margin-bottom:14px}
.waiting-panel p{font-size:15px}

/* Shared forms and response elements. */
label{font-weight:700;font-size:14px;display:block;margin:16px 0 8px;color:#405169}
input[type=text],input[type=password],input[type=url],textarea,select{width:100%;min-width:0;border:2px solid #bac7d6;border-radius:10px;padding:12px 14px;background:#fbfcfd;color:var(--navy);font-size:15px;line-height:1.65;transition:border-color .15s,box-shadow .15s}
input::placeholder,textarea::placeholder{color:#a1a9b5}
input:focus,textarea:focus,select:focus{outline:none;border-color:#b59150;box-shadow:0 0 0 3px #b5915014;background:white}
textarea{min-height:88px;resize:vertical}
input[type=file]{max-width:100%;font-size:14px;padding:12px 0}
.form-row{margin:18px 0}
.choice{display:flex;align-items:flex-start;gap:11px;border:2px solid #d4dde7;padding:13px 15px;border-radius:10px;font-size:14px;font-weight:550;cursor:pointer;margin:0;transition:background .15s,border-color .15s}
.choice:hover{background:#f7f8fa;border-color:#c7d0dd}
.choice:has(input:checked){border-color:#bfa36e;background:#faf6ee;color:#182e47}
.choice input{margin:4px 0 0;accent-color:#a47b38;width:15px;height:15px;flex-shrink:0}
.choices{display:grid;gap:8px}
.btn{border:1px solid transparent;background:var(--navy);color:white;border-radius:10px;padding:12px 19px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:9px;line-height:1.5;text-decoration:none;transition:background .15s,transform .15s,box-shadow .15s;min-height:44px}
.btn:hover{background:#27425e;box-shadow:0 4px 12px #13263f15}
.btn:active{transform:translateY(1px)}
.btn .icon{width:16px;height:16px}
.btn.alt{background:#f0f3f7;color:#465b72;border-color:#e5e9ef}
.btn.alt:hover{background:#e6ecf2}
.btn.gold{background:var(--gold-light);color:#42341c}
.btn.gold:hover{background:#e3c07a}
.btn:disabled{opacity:.5;cursor:not-allowed}
.timed:disabled{opacity:1;background:#e5c47f;color:#283b4f;cursor:default}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.split,.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.shot{width:100%;display:block;border:2px solid var(--line);border-radius:10px;cursor:zoom-in;margin-top:15px}
.imagebox{max-width:700px;max-height:750px;object-fit:contain}
.shot[id],[id^=shot-] .shot{cursor:default}
.hidden{display:none!important}
.panel{background:white;border:2px solid var(--line);padding:30px;border-radius:var(--radius);margin-bottom:22px;box-shadow:var(--shadow)}
.panel,.exercise,.hero{overflow-wrap:anywhere}
.panel .sub{margin-bottom:8px}
.status{font-size:12px;color:var(--muted)}
[id^=clock-]{margin-left:12px}
.pill{border:2px solid var(--line);border-radius:6px;padding:4px 9px;font-size:12px;background:#f7f9fb}
.error{color:#ad4135}
.success{color:var(--green)}
#notice,#adminError,#draftRecovery{max-width:1344px;margin:18px auto 0;padding:18px 22px;background:#fff5ef;border:1px solid #ebc5b6;border-radius:12px;font-size:15px}
.barbg{height:8px;border-radius:9px;background:#ecf0f2;overflow:hidden}
.bar{height:100%;background:var(--gold);border-radius:9px}
.chartline{margin:22px 0}
.chartline .row{font-size:14px;margin-bottom:8px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.reply{background:#f6f8fa;border:1px solid #e5e9ef;padding:20px;border-radius:12px;white-space:pre-line;overflow-wrap:anywhere;font-size:15px}
.score{font-size:30px;font-weight:700}
.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0 22px}
.toolbar select{flex:1;min-width:150px}
.wide{width:100%}
.danger{color:#ad4135!important}
.class-access{display:grid;grid-template-columns:1fr 1fr;gap:36px;background:#fff;border:2px solid var(--line);border-radius:20px;padding:30px;margin-bottom:20px}
.class-access h2{margin:10px 0;font-size:28px;line-height:1.2}
.class-access-intro>p{max-width:500px;margin-bottom:18px}
.class-code-controls{align-self:center;min-width:0}
.class-code-row{display:flex;align-items:center;gap:12px;margin-bottom:14px}
#classCode{font-size:28px;font-weight:800;letter-spacing:.12em;color:var(--navy);min-width:0}
.class-code-row .btn{flex-shrink:0}
.class-code-controls .hint{margin:12px 0 0}
.code-empty{font-size:18px;font-weight:700}
.reset-class{display:flex;align-items:center;gap:24px;justify-content:space-between;border:2px solid #e6c5c1;border-radius:16px;padding:22px 28px;background:#fff9f8;margin-bottom:28px}
.reset-class h3{margin:0 0 6px;color:#96382e}
.reset-class p{margin:0;max-width:780px;font-size:14px}
.reset-class>.btn{flex-shrink:0}
.reauth.reset-dialog{max-width:620px;width:calc(100% - 32px)}
.reset-dialog .toolbar{flex-wrap:wrap}
.reset-confirm{background:#a2352b;color:#fff;white-space:normal}
.reset-confirm:disabled{opacity:.45;cursor:not-allowed}
.join-card .code-label{margin-top:18px}
#studentcode{text-transform:uppercase;letter-spacing:.06em}
#studentcode::placeholder{text-transform:none;letter-spacing:normal}
#joinError:empty{display:none}
@media(max-width:900px){
  .class-access{grid-template-columns:1fr;gap:22px;padding:24px}
  .reset-class{align-items:stretch;flex-direction:column;padding:22px}
}
@media(max-width:480px){
  .class-code-row{align-items:stretch;flex-direction:column}
  #classCode{font-size:25px}
  .reset-dialog .toolbar .btn{width:100%}
}
.hint{font-size:13px;color:#586b82;line-height:1.7}
.preview{white-space:pre-line;font-size:15px}
.rating{display:flex;gap:13px;flex-wrap:wrap}
.rating label{margin:0;font-weight:550}
.fieldlist{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.draft-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto}
.reauth{border:2px solid var(--line);border-radius:20px;max-width:min(480px,90vw);padding:30px;color:var(--navy)}
.reauth::backdrop{background:#13263f99;backdrop-filter:blur(5px)}

/* Presenter studio: access is a distinct screen, never mixed into authoring. */
.admin-page main{padding-top:22px}
.studio-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.studio-wordmark{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:750}
.studio-wordmark>.icon{color:var(--gold)}
.studio-tools{display:flex;gap:8px}
.icon-button{display:flex;align-items:center;justify-content:center;gap:7px;border:2px solid var(--line);background:white;border-radius:9px;min-height:40px;padding:9px 12px;color:#708094;font-size:12px}
.icon-button:hover{color:var(--navy);border-color:#c6cfda}
.icon-button .icon{width:16px;height:16px}
.studio-tabs{display:flex;gap:8px;background:#e9edf2;border-radius:13px;padding:6px;width:fit-content;margin-bottom:34px;max-width:100%}
.studio-tabs button{display:flex;gap:10px;align-items:center;justify-content:center;border:0;border-radius:9px;background:transparent;color:#53647a;font-size:14px;padding:12px 24px;min-height:46px;font-weight:700}
.studio-tabs button.selected{background:#fff;color:var(--navy);box-shadow:0 2px 8px #13263f0a}
.studio-tabs .icon{width:16px;height:16px}
.tab-number{font-size:12px;color:#98a0ac;margin-right:2px}
.studio-tabs button.selected .tab-number{color:var(--gold)}
.studio-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}
.studio-heading h1{font-size:37px;letter-spacing:-.045em;font-weight:700;margin:10px 0}
.studio-heading p{font-size:14px;margin:0}
.studio-message{font-size:13px;max-width:280px;color:var(--green)}
.session-stats{display:grid;grid-template-columns:1fr 1fr 1.8fr;gap:20px;margin-bottom:32px}
.session-stats>div{display:flex;gap:18px;align-items:center;background:#fff;border:2px solid var(--line);padding:22px 25px;border-radius:15px}
.stat-icon{width:42px;height:42px;display:grid;place-items:center;background:#f3f5f8;border-radius:12px;color:#6d7d92}
.session-stats p{margin:0}
.session-stats p>b{display:block;font-size:28px;line-height:1.3;color:var(--navy);font-weight:700;letter-spacing:-.04em}
.session-stats p>b>small{font-size:16px;font-weight:600;color:#a2aab5}
.session-stats p>span{display:block;font-size:12px;color:#7b8899;margin-top:4px}
.session-stats .session-guidance{background:#f9f5ed;border-color:#ebe2d2;padding:20px 24px;gap:15px}
.session-guidance>.icon{color:var(--gold)}
.session-guidance p>b{font-size:15px;letter-spacing:0}
.session-guidance p>span{font-size:12px;color:#8a7b62;line-height:1.7}
.session-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;align-items:start}
.session-card{border:2px solid var(--line);border-radius:18px;background:white;padding:24px;box-shadow:var(--shadow);overflow:hidden}
.session-card.is-open{border-color:#c3d3d0;box-shadow:0 4px 18px #1c654b07}
.session-card-head{display:flex;align-items:center;gap:12px;margin-bottom:22px}
.chapter-symbol{background:#f2f4f8;border-radius:10px;width:36px;height:36px;display:grid;place-items:center;color:#75859b;flex-shrink:0}
.chapter-symbol>.icon{width:18px;height:18px}
.is-open .chapter-symbol{background:var(--navy);color:var(--gold-light)}
.session-card-head .sub{font-size:11px;color:#62758a;letter-spacing:.12em}
.access-badge{margin-left:auto;font-size:11px;background:#f1f3f6;color:#62758a;padding:4px 8px;border-radius:5px;letter-spacing:.02em}
.access-badge.open{color:var(--green);background:#eaf4ef}
.session-card>h2{font-size:20px;margin-bottom:22px;min-height:47px;font-weight:700}
.chapter-gate{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f7f9fb;border:1px solid #edf0f4;margin:0 -10px 12px;padding:15px 10px;border-radius:10px}
.chapter-gate b{font-size:13px;display:block}
.chapter-gate small{font-size:12px;display:block;margin-top:3px}
.access-switch{width:43px;height:25px;min-width:43px;position:relative;border:1px solid #ced6e0;background:#d9e0e9;border-radius:20px;padding:3px;transition:background .15s;flex-shrink:0}
.access-switch::after{content:"";position:absolute;inset:-10px -2px}
.access-switch>span{display:block;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #10274125;transition:transform .15s}
.access-switch[aria-checked=true]{background:var(--navy);border-color:var(--navy)}
.access-switch[aria-checked=true]>span{transform:translateX(17px);background:var(--gold-light)}
.access-switch:disabled{opacity:.5;cursor:wait}
.small-switch{transform:scale(.85);transform-origin:right center}
.activity-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 0;border-bottom:1px solid #edf0f4}
.activity-row:last-child{border-bottom:0;padding-bottom:0}
.activity-row b{font-size:13px;line-height:1.6;display:block;font-weight:700}
.activity-row small{font-size:11px;color:#62758a;display:block;margin-top:4px}
.activity-row .visible-label{color:var(--green)}
.adminlayout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:26px}
.editor-sidebar{padding:22px 14px}
.editor-sidebar>.sub{padding:0 10px;font-size:12px;color:#8d98a7}
.tabs{display:grid;gap:6px;margin-top:15px}
.tabs button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid transparent;background:transparent;padding:13px 10px;color:#53677d;border-radius:9px;font-size:13px;line-height:1.5}
.tabs button>span{color:#a2aab5;font-size:12px}
.tabs button.selected{background:var(--navy);color:#fff}
.tabs button.selected>span{color:var(--gold-light)}
.editor-exercise-heading{display:flex;align-items:center;gap:12px;margin:25px 0 20px}
.adminlayout>.panel{min-width:0}
.adminlayout>div{min-width:0}
.admin-login{max-width:470px;margin:40px auto;text-align:center;background:white;border:2px solid var(--line);border-radius:24px;padding:40px;box-shadow:var(--shadow)}
.login-symbol{background:var(--navy);color:var(--gold-light);width:55px;height:55px;border-radius:16px;display:grid;place-items:center;margin:0 auto 24px}
.admin-login h1{font-size:39px;line-height:1.1;font-weight:700;margin:22px 0}
.admin-login em{color:var(--gold)}
.admin-login p{font-size:14px;margin-bottom:25px}
.admin-login form{text-align:left}
.admin-login .btn{margin:16px 0 25px}
.admin-login>small{font-size:12px}

/* Desktop remains the primary layout; smaller screens adapt the same hierarchy. */
@media(min-width:1600px){main{padding-top:48px}
.welcome-layout{min-height:750px}
.welcome-story{padding-top:54px}
.story-art{height:295px}
.welcome-bottom{margin-top:16px}
}

@media(max-width:1200px){.site-header{padding:0 28px}
.site-footer{margin:0 28px}
.layout{gap:22px;grid-template-columns:minmax(0,1fr) 300px}
.journey-sidebar{padding:22px 14px 14px}
.exercise{padding:28px}
.hero{padding:30px}
.hero h1{font-size:33px}
.welcome-story{padding:40px 36px 25px}
.join-column{padding:44px}
.session-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.session-stats{grid-template-columns:1fr 1fr 1.5fr}
.session-stats>div{padding:18px;gap:10px}
}

@media(max-width:900px){main{padding:26px 22px 60px}
.layout{display:flex;flex-direction:column;gap:20px}
.student-content{width:100%;scroll-margin-top:20px}
.journey-sidebar{position:static;width:100%;padding:0;overflow:hidden;max-height:none}
.journey-heading{display:none}
#journeyToggle{display:flex;align-items:center;gap:10px;padding:19px 22px;cursor:pointer;font-size:16px;font-weight:700;list-style:none}
#journeyToggle::-webkit-details-marker{display:none}
#journeyToggle>.icon:first-child{color:var(--gold)}
#journeyToggle span{font-size:12px;color:#8190a2;font-weight:600;margin-left:auto}
#journeyToggle>.icon:last-child{width:15px}
.journey-details[open] #journeyToggle>.icon:last-child{transform:rotate(180deg)}
.journey-progress{padding:8px 25px}
.journey-progress .barbg{margin-bottom:6px}
#journeyNav{padding:0 24px;grid-template-columns:1fr;gap:0}
.journey-foot{padding:15px 25px;margin-top:10px}
.journey-destination{display:none}
.journey-sidebar>.export-btn{display:flex;width:calc(100% - 40px);margin:0 20px 16px;min-height:38px;font-size:12px!important;padding:8px!important}
.workspace-heading{margin-bottom:22px}
.workbook-badge{display:none}
.hero h1{max-width:90%}
.hero p{max-width:90%}
.welcome-layout{grid-template-columns:1fr 1fr;min-height:610px}
.welcome-story{padding:34px 28px 24px}
.welcome-story h1{font-size:55px}
.welcome-lead{font-size:15px}
.welcome-tags{font-size:12px;gap:13px}
.story-art{height:220px;transform:scale(.85);transform-origin:left top;width:320px;margin-bottom:-15px}
.welcome-bottom{font-size:8px}
.join-column{padding:30px}
.join-card h2{font-size:40px}
.join-card>p{font-size:14px}
.join-features{margin-top:16px}
.adminlayout{grid-template-columns:190px minmax(0,1fr);gap:18px}
.session-stats{grid-template-columns:1fr 1fr}
.session-stats .session-guidance{grid-column:1 / -1}
.studio-heading h1{font-size:32px}
.studio-heading{align-items:flex-start}
.studio-message{max-width:180px;font-size:12px}
.session-card{padding:22px}
}

@media(max-width:640px){.site-header{height:78px;padding:0 18px}
.brand{gap:9px}
.brand img{width:56px;height:56px}
.brand strong{font-size:17px;letter-spacing:-.02em}
.brand small{font-size:7px;letter-spacing:.02em}
.brand small span{margin:0 3px}
.header-label{display:none}
main{padding:20px 16px 45px}
.site-footer{margin:0 20px;padding:20px 0;flex-direction:column;gap:8px;font-size:12px}
.site-footer span:first-child{font-size:14px}
.welcome-layout{display:flex;flex-direction:column;border-radius:20px}
.welcome-story{padding:30px 28px 23px;min-height:345px}
.welcome-story>.sub{font-size:11px}
.welcome-story h1{font-size:57px;margin:24px 0 17px}
.welcome-lead{font-size:14px;max-width:265px}
.welcome-tags{margin-top:20px;font-size:12px}
.story-art{display:none}
.welcome-bottom{margin-top:24px;padding-top:15px;font-size:8px}
.join-column{padding:30px 27px 25px}
.mini-eyebrow{font-size:11px}
.join-card h2{font-size:37px;margin:15px 0}
.join-card h2 br{display:none}
.join-card h2 em{display:block}
.join-card>p{font-size:14px;margin-bottom:22px}
.join-card input{font-size:16px;padding:13px}
.join-features{padding-top:22px}
.join-signoff{font-size:14px;margin-top:22px}
.workspace-heading h2{font-size:24px}
.workspace-heading .sub{font-size:11px}
.hero{padding:26px;border-radius:17px;min-height:215px}
.hero h1{font-size:32px;max-width:100%;margin-top:16px}
.hero p{max-width:100%;font-size:14px;margin-bottom:20px}
.hero .sub{font-size:11px}
.hero-meta{font-size:11px;gap:15px}
.hero-meta .icon{width:12px;height:12px}
.hero-decoration{right:-95px;bottom:-80px}
.theory{font-size:14px;padding:20px 23px;margin-bottom:22px}
.theory b{font-size:11px}
.exercise{padding:24px 21px;border-radius:17px;margin-bottom:20px}
.exercise>h3{font-size:23px}
.exercise>p{font-size:14px}
.exercise-time{font-size:12px}
.exercise-eyebrow .sub{font-size:11px}
.exercise .panel{padding:18px}
.panel{padding:22px 20px;border-radius:17px}
.panel h2{font-size:24px}
.panel h3{font-size:20px}
.exercise .case{padding:18px;font-size:14px}
.grid2,.split{grid-template-columns:1fr}
input[type=text],input[type=password],input[type=url],textarea,select{font-size:16px}
.choice{padding:13px;font-size:14px}
.btn{font-size:13px;padding:12px 15px;min-height:44px}
.status{font-size:12px}
#journeyToggle{padding:18px;font-size:15px}
#journeyToggle span{font-size:12px}
#journeyNav{grid-template-columns:1fr;padding:0 22px}
.journey-step{min-height:78px}
.journey-step::before{display:block}
.journey-step:last-child::before{display:none}
.step-title{font-size:14px}
.step-copy small{font-size:12px}
.journey-step .step-node{width:44px;height:44px}
.cards{grid-template-columns:1fr}
.admin-page main{padding-top:18px}
.studio-top{margin-bottom:20px}
.studio-wordmark{font-size:14px}
.studio-tools .icon-button span{display:none}
.studio-tabs{width:100%;gap:3px;padding:4px;margin-bottom:28px;border-radius:11px}
.studio-tabs button{flex:1;flex-direction:column;gap:6px;padding:10px 5px;font-size:12px;line-height:1.4}
.studio-tabs .tab-number{display:none}
.studio-tabs .icon{width:17px;height:17px}
.studio-heading{display:block;margin-bottom:22px}
.studio-heading h1{font-size:30px;margin:9px 0 12px}
.studio-heading .sub{font-size:11px}
.studio-heading p{font-size:13px;line-height:1.8}
.studio-message{max-width:none;margin-top:12px}
.session-stats{gap:12px;margin-bottom:23px}
.session-stats>div{padding:17px 13px;gap:10px}
.stat-icon{width:30px;height:30px;border-radius:9px}
.stat-icon .icon{width:16px;height:16px}
.session-stats p>b{font-size:24px}
.session-stats p>b>small{font-size:14px}
.session-stats p>span{font-size:11px}
.session-stats .session-guidance{padding:17px 18px}
.session-guidance p>span{font-size:12px}
.session-grid{grid-template-columns:1fr;gap:18px}
.session-card{padding:23px}
.session-card>h2{min-height:0;font-size:23px;margin-bottom:20px}
.session-card-head .sub{font-size:12px}
.session-card-head{margin-bottom:17px}
.chapter-gate{padding:17px 12px}
.chapter-gate b{font-size:14px}
.chapter-gate small{font-size:12px}
.activity-row{min-height:66px}
.activity-row b{font-size:14px}
.activity-row small{font-size:12px}
.access-switch{width:47px;height:28px;min-width:47px;padding:3px}
.access-switch>span{height:20px;width:20px}
.access-switch[aria-checked=true]>span{transform:translateX(18px)}
.small-switch{transform:scale(.9)}
.adminlayout{display:flex;flex-direction:column}
.editor-sidebar{position:static;width:100%;padding:18px 14px}
.editor-sidebar .tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.tabs button{font-size:12px;padding:11px 9px;gap:7px}
.adminlayout>div{width:100%}
.editor-exercise-heading{align-items:flex-start}
.editor-exercise-heading .hint{font-size:12px}
.admin-login{margin:15px auto;padding:32px 24px}
.admin-login h1{font-size:35px}
.admin-login .sub{font-size:11px}
.toolbar{gap:8px}
.toolbar select{flex-basis:100%}
.toolbar .btn{flex-grow:1}
.reauth{padding:24px}
#notice,#adminError,#draftRecovery{margin:12px 16px;padding:16px}
}

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

@media print{.site-header,.site-footer,nav,.toolbar,.sidebar,.btn,.save-status,.studio-tabs,.studio-tools{display:none!important}
.layout,.adminlayout{display:block}
body{background:white}
main{max-width:none;margin:0;padding:0}
.exercise,.panel{break-inside:avoid;box-shadow:none}
.hero{background:#eee;color:#13263f}
.hero p,.hero .sub{color:#13263f}
}

.add-chapter{margin:16px 0 20px}
