:root{--sheet:#fffefa;--sheet-low:#f2eee8;--glass-sheet:rgba(255,253,248,.88);--field:#fffdfa}
.btn{--lens-tint:rgba(28,28,30,.82)}
body{transition:background-color .22s,color .22s}
.exam-tools,dialog{background:linear-gradient(140deg,#ffffff45,transparent 58%),var(--glass-sheet);border:1px solid rgba(255,255,255,.5);box-shadow:inset 0 1px 1px rgba(255,255,255,.75),inset 0 -1px 2px rgba(0,0,0,.08),0 14px 42px #25201920;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%)}
.exam-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;margin:16px 0;padding:10px;border-radius:20px}
.exam-tools button{font-size:.84rem;padding:7px 12px}
.exam-tools [aria-pressed=true]{background:#473c30;color:white}
.choice.eliminated{text-decoration:line-through;opacity:.6}
.passage{white-space:pre-line;user-select:text}
mark.yellow{background:#f3d878;color:#211d15}mark.blue{background:#a4d4ff;color:#182031}
dialog{max-height:90svh;overflow:auto;width:min(94vw,600px)}
dialog.tutor-drawer{inset:0 0 0 auto;margin:auto 8px;width:min(440px,calc(100vw - 16px));height:calc(100dvh - 16px);max-height:none;padding:24px;border-radius:24px}
.tutor-mode{display:block;margin:12px 0}
#transcript{overflow:auto;max-height:45svh}
#transcript article{padding:12px 14px;background:var(--sheet-low);border-radius:14px;margin-bottom:10px}
#transcript p{white-space:pre-line;line-height:1.5;margin:4px 0 0}
#tutor-form textarea{resize:vertical}
.legal-footer{margin-left:var(--rail);display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:center;padding:20px 18px 32px;color:var(--muted);border-top:1px solid var(--line)}
.legal-footer button{color:inherit;text-decoration:underline;text-underline-offset:3px;font-size:.875rem;padding:5px}
.guest .legal-footer{margin:0}
.auth-extras{display:grid;justify-items:center;gap:8px;margin:12px 0 0}
.auth-extras small{color:var(--muted);text-align:center}
.recovery{display:block;padding:16px;overflow-wrap:anywhere;user-select:all;background:var(--sheet-low);border-radius:12px;margin:14px 0}
.book-entry{border-bottom:1px solid var(--line);padding:18px 0}.book-entry:last-child{border:0}.book-entry p{margin:7px 0}
.heatmap,.section-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.heat{padding:6px 10px;border-radius:9px;font-size:.82rem;color:#292721}
.heat.red{background:#f3c7bb}.heat.yellow{background:#f0dea7}.heat.green{background:#bde2c5}.heat.none{background:#e4e1dc}
.score-estimate{display:block;font-size:clamp(1.5rem,3vw,2.7rem);line-height:1.2}
.focus-mode .rail,.focus-mode .topbar,.focus-mode .legal-footer{display:none}.focus-mode main{margin-inline:auto}
[data-theme=dark]{color-scheme:dark;--ink:#f4f0e9;--muted:#c2bcb2;--line:#46423e;--paper:#141415;--sheet:#222224;--sheet-low:#303032;--glass-sheet:rgba(32,32,35,.91);--field:#272729;--violet:#ead9c2;--lens-ink:#f4efe9;--glass:linear-gradient(140deg,#383739ed,#242426e8);--lens-face:linear-gradient(145deg,#ffffff20,#ffffff04 52%,#c9c2b014);--lens-tint:#323234bd}
[data-theme=dark] body,[data-theme=dark] body.guest{background:radial-gradient(ellipse at 12% 0,#343033 0,transparent 34rem),#141415;color:var(--ink)}
[data-theme=dark] :is(.panel,.guide,.card,.assignment-sheet,.pack-card,.side-link,.assignment-list,.auth-layout,.week-card,.coach-builder,.auth-field input,.filter,.input,.select,.choice,.tools select,.account-tabs,.signin-sheet){background-color:var(--sheet);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.week-card,.coach-builder,.account-tabs,.auth-layout){background:linear-gradient(145deg,#302d2b,#222224 70%)}
[data-theme=dark] :is(.auth-field input,.select,.input,.choice){background-color:var(--field)}
[data-theme=dark] :is(.sub,.meta,.muted,.crumb,.row-title small,.side-link small,.date,.week-day,.account-tabs a,.auth-alternate,.field-help,.auth-description,.coach-builder p,.coach-reason p){color:var(--muted)}
[data-theme=dark] :is(.brand,.nav a,.rail-tools a,.crumb strong,.phase .link,.goal-main i,.reveal,.source-line a,.back,.guide,.pack-copy,.card-body,.pack-copy .meta,.outline,.coach-tip,.coach-reason,.hint,.example,.passage,.chip,.pill,.entry,.row-duration,.choice b){color:var(--ink)}
[data-theme=dark] :is(.hint,.example,.passage,.coach-tip,.coach-reason,.tile,.goal-edit,.goal-ring span,.guide:nth-child(even) .tile,.choice[aria-pressed=true],.assignment-row:hover,.side-link:hover,.guide:hover,.nav a:hover){background:#39342f;color:#fff0dc}
[data-theme=dark] :is(.auth-story,.hero,.btn){color:white}
[data-theme=dark] :is(.nav a.active,.filter.on,.account-tabs a[aria-current=page]){--lens-tint:#62584bd4;color:white}
[data-theme=dark] .btn{--lens-ink:white;--lens-tint:rgba(28,28,30,.82)}
[data-theme=dark] .date,[data-theme=dark] .track{background-color:#3e3b39}
[data-theme=dark] .goal-ring{background:conic-gradient(#dfab7b var(--goal),#534b43 0)}
[data-theme=dark] .auth-story p,[data-theme=dark] .hero p{color:#f5eee4}
[data-theme=dark] .library-art-label{color:#282521}
@media(max-width:960px){.legal-footer{padding-bottom:100px}.guest .legal-footer{padding-bottom:20px}.nav{width:min(500px,calc(100% - 16px))}.nav a{font-size:clamp(.65rem,2.6vw,.8rem)}}
@media(max-width:460px){.theme-btn{padding:7px 9px;font-size:.77rem}.topbar .tools{gap:5px}.exam-tools{gap:5px}.auth-extras{margin:7px 0}.guest-brand .row{gap:3px}.guest-brand .guest-switch{font-size:.75rem}.book-entry .row{align-items:end}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.exam-tools,dialog{background:var(--sheet);backdrop-filter:none;-webkit-backdrop-filter:none}}

.public-document{display:block;background:#f5f3ef;color:#24221f}.public-document main{max-width:46rem;margin:0 auto;padding:clamp(1.4rem,5vw,4rem) 1.4rem}.public-document header,.public-document footer{position:static;padding:1.4rem 0}.public-document article{padding:clamp(1.4rem,4vw,3rem);border-radius:1.5rem;background:#fffdf8;line-height:1.65}.public-document h1{font-size:clamp(2rem,6vw,3.25rem);line-height:1.1}.public-document h2{margin-top:1.5rem}.public-document details{padding:.8rem 0;border-bottom:1px solid #d5d1c9}.public-document summary{cursor:pointer}.demo-link{color:inherit;text-decoration:underline;text-underline-offset:.25em}.legal-footer a{color:inherit;text-decoration:underline}.field-help meter{vertical-align:middle}form[hidden]{display:none}
.tutor-thinking{color:var(--ink);animation:tutor-breathe 1.3s ease-in-out infinite alternate}
@keyframes tutor-breathe{to{opacity:.58}}
@media(prefers-reduced-motion:reduce){.tutor-thinking{animation:none}}
#tutor-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

#graph-dialog{width:min(900px,calc(100vw - 24px));max-width:900px;height:75vh;height:75dvh;max-height:calc(100dvh - 20px);padding:18px;overflow:hidden;box-sizing:border-box}
#graph-dialog[open]{display:flex;flex-direction:column;gap:10px}
#graph-dialog h2,#graph-dialog form{margin:0}
#graph-dialog summary{cursor:pointer}
.graph-question{max-height:16dvh;overflow:auto;white-space:pre-line;margin:6px 0}
.graph-surface{flex:1;min-width:0;min-height:0;width:100%;color:#222;background:white;overflow:hidden;border-radius:10px}
.graph-fallback{font-size:.875rem;align-self:flex-start}
#graph-dialog:has(.graph-surface[hidden]){height:auto}
@media(max-width:600px){#graph-dialog{width:calc(100vw - 8px);height:calc(100dvh - 12px);padding:10px;gap:6px}}

.graph-surface iframe{display:block;width:100%;height:100%;border:0}

.release-label{position:relative}
.release-dot{position:absolute;right:-13px;top:50%;margin-top:-3px;width:6px;height:6px;border-radius:50%;background:#FF3B30;opacity:0;transform:scale(.65);transition:opacity .34s ease,transform .34s ease}
.release-dot.is-unread{opacity:1;transform:scale(1)}
.release-dot::after{content:"";position:absolute;inset:-3px;border-radius:inherit;background:#FF3B30;opacity:0}
.release-dot.is-unread::after{animation:release-glow 2.8s ease-in-out infinite}
@keyframes release-glow{0%,100%{opacity:.08;transform:scale(.78)}50%{opacity:.28;transform:scale(1.12)}}
.releases{max-width:850px}
.release-timeline,.release-changes{list-style:none;margin:0;padding:0}
.release-timeline{margin:26px 0 40px 6px;border-inline-start:1px solid var(--line)}
.release-stop{position:relative;padding:0 0 22px 25px}
.release-stop:last-child{padding-bottom:0}
.release-stop::before{content:"";position:absolute;top:30px;left:-5px;width:9px;height:9px;border-radius:50%;background:var(--ink);box-shadow:0 0 0 4px var(--paper)}
.release-card{border:1px solid var(--line);border-radius:24px;padding:clamp(19px,3.6vw,38px);background:linear-gradient(145deg,rgba(246,224,192,.18),transparent 58%),var(--sheet);box-shadow:inset 0 1px 0 #fff5,0 9px 24px #30251a0b}
.release-meta{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.875rem}
.release-version,.release-tag{display:inline-flex;align-items:center;justify-content:center;border:1px solid #ffffff65;border-radius:99px;box-shadow:inset 0 1px 1px #ffffff80,inset 0 -1px 2px #0001,0 2px 6px #18130c0a;backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);font-weight:650}
.release-version{background:rgba(28,28,30,.82);color:white;padding:4px 13px;letter-spacing:.02em}
.release-card h2{font-size:clamp(1.45rem,3.6vw,2.35rem);letter-spacing:-.04em;line-height:1.15;margin:16px 0 10px}
.release-changes li{display:grid;grid-template-columns:5.1rem 1fr;gap:14px;border-top:1px solid var(--line);padding:15px 0}
.release-changes li:first-child{border:0}
.release-changes li:last-child{padding-bottom:0}
.release-changes p{color:var(--muted);margin:4px 0 0;line-height:1.5}
.release-tag{justify-self:start;align-self:start;padding:3px 9px;font-size:.78rem;line-height:1.45}
.release-tag[data-category=New]{background:#9bd8aa50;color:#245a38}
.release-tag[data-category=Improved]{background:#9dcaf450;color:#204f79}
.release-tag[data-category=Fixed]{background:#edc78260;color:#704612}
[data-theme=dark] .release-tag{border-color:#ffffff26;box-shadow:inset 0 1px 1px #ffffff25}
[data-theme=dark] .release-tag[data-category=New]{background:#32584380;color:#b8eaca}
[data-theme=dark] .release-tag[data-category=Improved]{background:#304e7080;color:#badcff}
[data-theme=dark] .release-tag[data-category=Fixed]{background:#654c2880;color:#ffdcaa}
@media(max-width:960px){.nav a[href="#whats-new"]{position:relative}.release-label{position:static}.release-dot{top:9px;right:calc(50% - 17px);margin:0}.nav{width:min(510px,calc(100% - 14px))}}
@media(max-width:480px){.nav a{padding-inline:1px;font-size:.68rem}.release-stop{padding-inline-start:14px}.release-changes li{grid-template-columns:1fr;gap:6px}.release-card{border-radius:18px}}
@media(prefers-reduced-motion:reduce){.release-dot{transition:none}.release-dot.is-unread::after{animation:none}}
@media(min-width:360px) and (max-width:480px){.nav a{white-space:nowrap;letter-spacing:-.02em}}

.owner-badge,.owner-tag{display:inline-flex;width:fit-content;padding:3px 9px;border-radius:99px;border:1px solid var(--line);background:linear-gradient(135deg,#fff6,#dbba8b38),var(--sheet-low);color:var(--ink);box-shadow:inset 0 1px 1px #fff8;font-size:.75rem;font-weight:650;line-height:1.35}
.account-name .owner-badge{margin-top:3px;color:var(--ink)}.owner-short{display:none}
.owner-dashboard{max-width:1050px}.owner-dashboard .panel{margin-bottom:20px;padding:clamp(16px,3vw,30px)}.owner-dashboard h2{margin:0 0 10px}.owner-dashboard .field{max-width:28rem}
.owner-dashboard small{display:block;color:var(--muted);font-size:.82rem}.owner-scroll{overflow:auto}
.owner-dashboard table{border-collapse:collapse;width:100%;text-align:left;font-variant-numeric:tabular-nums}
.owner-dashboard th,.owner-dashboard td{border-bottom:1px solid var(--line);padding:11px 9px;vertical-align:middle}.owner-dashboard thead{font-size:.83rem;color:var(--muted)}
.owner-dashboard .owner-pager,.owner-preview{margin-top:15px}.owner-dashboard .outline{font-size:.85rem;white-space:nowrap}
.owner-activity{margin:10px 0 18px;color:var(--muted)}.owner-activity strong{font-size:2.1rem;letter-spacing:-.05em;color:var(--ink)}
.owner-traffic figure{margin:18px 0}.owner-traffic figcaption{font-size:.88rem;font-weight:650}
.owner-chart{display:flex;gap:6px;min-height:94px;align-items:flex-end}.owner-chart>div{flex:1;text-align:center;font-size:.8rem}.owner-chart i{display:block;margin:4px auto;width:65%;border-radius:5px 5px 1px 1px;background:linear-gradient(150deg,#bc9870,#866144)}
.owner-report,.owner-system{border-bottom:1px solid var(--line);padding:13px 0}.owner-report p{white-space:pre-wrap;overflow-wrap:anywhere}.owner-system{display:flex;align-items:center;justify-content:space-between;gap:12px}.owner-system span{color:var(--muted)}
.owner-report select{padding:5px 9px;border-radius:10px;color:var(--ink);background:var(--field);border:1px solid var(--line)}.owner-tag[data-status=Resolved]{background:#80b98d38}.owner-tag[data-status=Reviewed]{background:#679ed238}
@media(max-width:960px){.owner-long{display:none}.owner-short{display:inline}.nav:has(.owner-nav){overflow-x:auto;justify-content:flex-start}.nav:has(.owner-nav) a{flex:1 0 auto}}

.owner-dashboard .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
