@font-face{font-family:OpenDyslexic;src:url('/fonts/OpenDyslexic-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
:root{--paper:#fbfcff;--surface:#fff;--surface-2:#f0f5fa;--ink:#172d42;--muted:#536879;--border:#d6e0e8;--accent:#176b61;--accent-ink:#fff;--accent-soft:#e5f1ed;--gold:#f1c85b;--gold-soft:#fff4ce;--danger:#ad3131;--danger-soft:#fff0ed;--nav:#15374b;--nav-ink:#f3f8fc;--shadow:0 14px 40px #17374b10;--reading-size:20px;--reading-line:1.8;--reading-width:68ch;--reading-font:Georgia,'Times New Roman',serif;--ui-font:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light}
[data-theme=dark]{--paper:#111e2b;--surface:#1b2c3d;--surface-2:#22374a;--ink:#eff5fb;--muted:#b6c8d6;--border:#3b5265;--accent:#96d9c7;--accent-ink:#102c29;--accent-soft:#1e403b;--gold:#f3ce6f;--gold-soft:#514426;--danger:#ffb5aa;--danger-soft:#4b2b2b;--nav:#0c1925;--nav-ink:#f3f8fc;--shadow:0 14px 40px #0002;color-scheme:dark}
[data-contrast=true]{--muted:var(--ink);--border:var(--ink)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--ui-font);font-size:16px;line-height:1.5}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:var(--accent);text-underline-offset:.2em}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,.table-scroll:focus-visible{outline:3px solid #3f8fda;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15}h1{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.035em}h2{font-size:1.5rem;letter-spacing:-.02em}h3{font-size:1.1rem}p+p{margin-top:.8em}small,.small{font-size:.86rem}.muted{color:var(--muted)}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip-link{position:fixed;top:-10rem;left:1rem;z-index:100;background:var(--surface);padding:.75rem}.skip-link:focus{top:.5rem}.initial-loading{max-width:640px;margin:12vh auto;padding:2rem}.initial-loading>*+*{margin-top:1rem}.app-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--nav);color:var(--nav-ink);padding:26px 18px;display:flex;flex-direction:column;gap:26px;overflow:auto}.brand{color:inherit;text-decoration:none;display:flex;align-items:center;gap:11px;font-size:.92rem;line-height:1.25;font-weight:650}.studio-brand-mark{background:#f1c85b;color:#15374b;position:relative;display:grid;place-items:center;width:42px;height:48px;flex-shrink:0;border-radius:3px 10px 10px 3px;font:700 23px Georgia}.studio-brand-mark span{font-size:13px;position:absolute;bottom:4px;right:5px}.nav-list{display:flex;flex-direction:column;gap:5px}.nav-list a{display:flex;align-items:center;gap:12px;padding:11px 12px;color:#d8e6ef;text-decoration:none;border-radius:7px;font-size:.94rem}.nav-list a:hover{background:#ffffff0b}.nav-list a[aria-current=page]{background:#fff;color:#17374b;font-weight:650}.nav-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.nav-group-label{font-size:.75rem;color:#a9bdcc;margin:6px 12px 9px}.sidebar-bottom{margin-top:auto;font-size:.8rem;color:#b8ccda;padding:14px 8px 0;border-top:1px solid #ffffff20}.sidebar-bottom button{padding:0;background:none;border:0;color:#eaf3f9;text-decoration:underline;margin-bottom:12px}.workspace{min-width:0}.topbar{min-height:78px;padding:12px 38px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface)}.topbar-title{font-size:.88rem;color:var(--muted)}.topbar-actions{display:flex;align-items:center;gap:10px}.icon-button,.quiet-button{background:transparent;border:1px solid var(--border);border-radius:7px;color:var(--ink);padding:8px 10px;display:inline-flex;align-items:center;justify-content:center;gap:7px}.icon-button:hover,.quiet-button:hover{background:var(--surface-2)}.icon-button{min-width:39px;min-height:39px}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-size:.8rem;font-weight:700}.account-button{display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--ink);font-size:.87rem}.mobile-menu{display:none}.main-content{padding:32px 38px 50px;max-width:1536px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:25px}.page-heading p{margin-top:9px;color:var(--muted);max-width:66ch}.page-heading h1{font-size:clamp(1.75rem,3vw,2.5rem)}.button{border:1px solid transparent;background:var(--accent);color:var(--accent-ink);display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:7px;padding:11px 17px;font-weight:600;text-decoration:none;font-size:.93rem;line-height:1.35;min-height:44px}.button:hover{filter:brightness(.94)}.button.secondary{background:var(--surface);color:var(--ink);border-color:var(--border)}.button.small{min-height:36px;padding:7px 11px;font-size:.86rem}.button.gold{background:#f1c85b;color:#172d42}.text-button{border:0;background:transparent;color:var(--accent);padding:8px 0;font-weight:600;text-decoration:underline;text-underline-offset:4px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.notice{background:var(--surface-2);padding:12px 16px;border-radius:7px;font-size:.88rem;color:var(--muted);margin-bottom:20px}.notice.error{background:var(--danger-soft);color:var(--danger)}.notice.success{background:var(--accent-soft);color:var(--accent)}.notice.warning{background:var(--gold-soft);color:var(--ink)}.hero{position:relative;display:grid;grid-template-columns:1.15fr 1fr;isolation:isolate;overflow:hidden;border-radius:14px;background:#183b50;color:#fff;min-height:330px}.hero-copy{padding:36px 0 36px 34px;position:relative;z-index:1;align-self:center}.hero-copy>p{font-size:.95rem;color:#c9e0eb;max-width:38ch;margin-top:14px}.hero-copy h2{font-family:Georgia,serif;font-size:clamp(2.8rem,4.8vw,4.4rem);line-height:.99;letter-spacing:-.045em;max-width:8ch;margin-top:14px}.hero-meta{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;color:#e3f0f5}.hero-copy .actions{margin-top:24px}.hero-art{position:absolute;width:54%;height:100%;right:0;bottom:0}.hero-art svg{width:100%;height:100%}.home-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:18px}.home-intro h1{font-size:clamp(1.8rem,3vw,2.6rem)}.home-intro p{color:var(--muted);margin-top:6px}.resume-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border:1px solid var(--border);border-radius:9px;background:var(--surface);margin:20px 0}.resume-strip p{font-size:.86rem;color:var(--muted);margin-top:3px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:30px 0 15px}.section-heading h2{font-size:1.25rem}.book-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.book-link{display:flex;gap:15px;align-items:center;text-decoration:none;color:var(--ink);padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:10px;transition:border-color .15s}.book-link:hover{border-color:var(--accent)}.book-spine{height:89px;width:63px;flex:0 0 63px;border-radius:2px 6px 6px 2px;box-shadow:inset 4px 0 #ffffff25,5px 5px #152d4210;display:grid;place-items:center;overflow:hidden;background:#375a74;color:#f3db9a}.book-spine .nav-icon{width:34px;height:34px;stroke-width:1.1}.book-link:nth-child(2) .book-spine{background:#ad6249;color:#fff2d0}.book-link:nth-child(3) .book-spine{background:#656487;color:#efdfd3}.book-link h3{font:600 1.15rem Georgia;line-height:1.2}.book-link p{font-size:.8rem;color:var(--muted);margin-top:7px}.path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.learning-path{display:block;text-decoration:none;color:var(--ink);border-top:2px solid var(--border);padding:18px 0}.learning-path:hover{border-color:var(--accent)}.learning-path .path-icon{color:var(--accent);margin-bottom:12px}.learning-path .path-icon svg{width:26px;height:26px}.learning-path p{font-size:.88rem;color:var(--muted);margin-top:7px}.eyeline{font-size:.85rem;color:var(--muted);margin-bottom:10px}.empty-state{padding:36px;text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:12px}.empty-state h2{font-size:1.3rem;margin-bottom:10px}.empty-state p{color:var(--muted);max-width:55ch;margin:0 auto 20px}.activity-list{display:flex;flex-direction:column;gap:10px}.activity-card{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:18px 20px;display:flex;align-items:center;gap:16px;text-decoration:none;color:var(--ink)}.activity-card:hover{border-color:var(--accent)}.activity-card .activity-icon{width:39px;height:39px;display:grid;place-items:center;color:var(--accent);background:var(--accent-soft);border-radius:8px;flex-shrink:0}.activity-card>div:nth-child(2){flex:1;min-width:0}.activity-card h3{font-size:1rem}.activity-card p{font-size:.83rem;color:var(--muted);margin-top:5px}.badge{font-size:.76rem;display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;background:var(--surface-2);color:var(--muted);white-space:normal}.badge.good{background:var(--accent-soft);color:var(--accent)}.badge.attention{background:var(--gold-soft);color:var(--ink)}.badge.error{background:var(--danger-soft);color:var(--danger)}.back-link{display:inline-flex;align-items:center;gap:6px;font-size:.88rem;text-decoration:none;margin-bottom:20px}.reader-layout{display:grid;grid-template-columns:215px minmax(0,1fr);gap:25px;align-items:start}.chapter-nav{position:sticky;top:20px}.chapter-nav h2{font-size:1rem;margin-bottom:14px}.chapter-nav a{display:block;padding:10px 12px;border-radius:6px;color:var(--muted);font-size:.88rem;text-decoration:none;margin-bottom:4px}.chapter-nav a small{display:block;font-size:.72rem;color:var(--muted);margin-bottom:3px}.chapter-nav a[aria-current=page]{background:var(--accent-soft);color:var(--accent);font-weight:600}.chapter-nav .button{margin-top:16px}.reading-page{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:38px 44px;min-height:500px;box-shadow:var(--shadow)}[data-soft=true] .reading-page,[data-soft=true] .reading-field{background:#faf4e4;color:#28323b}[data-theme=dark][data-soft=true] .reading-page,[data-theme=dark][data-soft=true] .reading-field{background:#2d302d;color:#efefdc}.reading-content,.reading-field,.reading-prompt,.feedback-content{font-family:var(--reading-font);font-size:var(--reading-size);line-height:var(--reading-line);letter-spacing:normal}.reading-content{max-width:var(--reading-width);margin:0 auto}.reading-content p{margin:0 0 1.05em;white-space:pre-wrap}.reading-page h1{font-family:var(--reading-font);font-size:clamp(1.8rem,3.5vw,2.6rem);line-height:1.2;margin:10px 0 28px}.reader-page-top{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:18px;margin-bottom:25px;font-size:.8rem;color:var(--muted)}.reader-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;flex-wrap:wrap}.reader-controls .page-position{font-size:.84rem;color:var(--muted)}.reader-title-page{min-height:540px;text-align:left;display:flex;flex-direction:column;justify-content:center;background:#183b50;color:white;position:relative;overflow:hidden}.reader-title-page>*{position:relative;z-index:1}.reader-title-page h1{font-family:Georgia;font-size:clamp(3rem,5vw,4.5rem);max-width:8ch;line-height:1.02;margin:20px 0}.reader-title-page .title-art{position:absolute;inset:0;opacity:.32}.reader-title-page p{max-width:36ch;color:#d1e2ea}.reader-title-page .actions{margin-top:25px}.reading-progress{height:3px;border-radius:3px;background:var(--border);overflow:hidden;margin:16px 0}.reading-progress span{display:block;height:100%;background:var(--accent)}.activity-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}.panel{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:24px}.panel h2{font-size:1.2rem;margin-bottom:14px}.panel h3{margin:18px 0 8px}.panel+.panel{margin-top:18px}.reading-prompt{white-space:pre-wrap;margin-bottom:24px;max-width:var(--reading-width)}.reading-field{width:100%;min-height:270px;padding:18px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--ink);resize:vertical;display:block}.save-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.8rem;color:var(--muted);padding:10px 0 16px}.save-state[data-state=synced]{color:var(--accent)}.save-state[data-state=error],.save-state[data-state=conflict]{color:var(--danger)}.choice-list{border:0;padding:0;display:grid;gap:12px;margin:0 0 20px}.choice-option{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--border);border-radius:8px;padding:15px;cursor:pointer;font-family:var(--reading-font);font-size:var(--reading-size);line-height:var(--reading-line)}.choice-option:has(input:checked){background:var(--accent-soft);border-color:var(--accent)}.choice-option input{width:19px;height:19px;accent-color:var(--accent);margin:6px 0 0;flex-shrink:0}.feedback-box{border-left:3px solid var(--accent);padding:18px 20px;margin-top:24px;background:var(--accent-soft);border-radius:0 8px 8px 0}.feedback-box h2{font-size:1.15rem;margin-bottom:12px}.feedback-content{font-size:calc(var(--reading-size)*.9)}.feedback-content ul{padding-left:22px}.source-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.standards-details{font-size:.85rem}.standards-details summary{cursor:pointer;font-weight:600;color:var(--accent);padding:10px 0}.standard-item{padding:12px 0;border-bottom:1px solid var(--border)}.standard-item:last-child{border:0}.standard-item p{color:var(--muted);margin-top:5px}.model-answer{white-space:pre-wrap;border-top:1px solid var(--border);padding-top:15px;margin-top:15px}.filter-bar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:16px 0 22px}.field{display:flex;flex-direction:column;gap:6px;font-size:.86rem}.field label,.field-label{font-weight:600}.field input,.field select,.field textarea{padding:10px 12px;border:1px solid var(--border);border-radius:6px;color:var(--ink);background:var(--surface);min-width:0;max-width:100%}.field select{min-width:165px}.field input[type=range]{padding:0;accent-color:var(--accent)}.field input[type=checkbox]{accent-color:var(--accent)}.teacher-tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:22px;overflow:auto}.teacher-tabs a{color:var(--muted);text-decoration:none;padding:12px 18px;white-space:nowrap}.teacher-tabs a[aria-current=page]{color:var(--accent);box-shadow:inset 0 -3px var(--accent);font-weight:600}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:4px 0 24px}.metric{display:block;text-decoration:none;color:var(--ink);border:1px solid var(--border);border-radius:8px;padding:18px;background:var(--surface)}.metric strong{display:block;font-size:2rem;font-weight:650;letter-spacing:-.04em;line-height:1.2}.metric span{display:block;font-size:.84rem;color:var(--muted);margin-top:6px}.teacher-columns{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;align-items:start}.queue-list{list-style:none;padding:0;margin:0}.queue-list li{border-bottom:1px solid var(--border);padding:14px 0}.queue-list li:last-child{border:0}.queue-item{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}.queue-item>div{flex:1}.queue-item p{font-size:.83rem;color:var(--muted);margin-top:3px}.queue-item strong{font-size:.91rem}.table-scroll{overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:8px;background:var(--surface)}table{width:100%;border-collapse:collapse;font-size:.85rem;text-align:left}caption{text-align:left;padding:14px 16px;color:var(--muted);font-size:.82rem}th,td{padding:13px 16px;border-top:1px solid var(--border);vertical-align:top}thead th{background:var(--surface-2);color:var(--muted);font-weight:600;border-top:0;font-size:.78rem}th:first-child{position:sticky;left:0;background:var(--surface);z-index:1}thead th:first-child{background:var(--surface-2)}tbody th{font-weight:600}td{min-width:135px}td .badge{text-decoration:none;font-size:.72rem}.table-note{font-size:.8rem;color:var(--muted);padding:12px 0}.profile-summary{display:flex;gap:20px;align-items:center;margin:10px 0 25px}.profile-summary .avatar{width:58px;height:58px;font-size:1.3rem}.review-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr);gap:22px;align-items:start}.response-text{white-space:pre-wrap;font-family:var(--reading-font);font-size:var(--reading-size);line-height:var(--reading-line);overflow-wrap:anywhere}.rubric-row{padding:14px 0;border-bottom:1px solid var(--border)}.rubric-row label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:600;font-size:.9rem}.rubric-row input{width:65px;padding:8px;border:1px solid var(--border);border-radius:5px;background:var(--surface);color:var(--ink)}.rubric-row p{font-size:.82rem;color:var(--muted);margin-top:7px}.check-label{display:flex;align-items:flex-start;gap:9px;font-size:.87rem;margin:14px 0}.check-label input{margin-top:4px;accent-color:var(--accent);width:16px;height:16px}.learning-evidence{padding:15px 0;border-bottom:1px solid var(--border)}.learning-evidence p{color:var(--muted);font-size:.84rem;margin-top:7px}.learning-evidence .actions{margin-top:10px}.coverage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.coverage-card h3{font-size:1rem}.coverage-card p{font-size:.85rem;color:var(--muted);margin-top:8px}.coverage-card details{font-size:.85rem;margin-top:14px}.coverage-card li{margin:8px 0}.app-footer{border-top:1px solid var(--border);margin-top:40px;padding-top:18px;font-size:.78rem;color:var(--muted);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:14px;padding:0;width:min(590px,calc(100vw - 32px));max-height:90dvh;box-shadow:0 25px 100px #0004}dialog::backdrop{background:#0e223789;backdrop-filter:blur(3px)}.dialog-head{padding:22px 24px 17px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-head h2{font-size:1.3rem}.dialog-body{padding:24px}.dialog-body>p{color:var(--muted);font-size:.91rem;margin-bottom:20px}.dialog-body .field+.field{margin-top:16px}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 24px;border-top:1px solid var(--border)}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.settings-grid .field{min-width:0}.settings-grid .field select{width:100%;min-width:0}.dialog-body .settings-grid .field+.field{margin-top:0}.reading-preview{margin-top:22px;background:var(--surface-2);padding:15px;border-radius:8px;font-family:var(--reading-font);font-size:var(--reading-size);line-height:var(--reading-line)}.dialog-error{color:var(--danger);font-size:.85rem;margin-top:12px}.tour-step{font-size:.85rem;color:var(--accent);margin-bottom:12px}.tour-body h3{font-family:Georgia;font-size:1.8rem;margin-bottom:16px}.tour-body p{font-size:1rem;line-height:1.7}.export-preview{background:var(--surface-2);padding:16px;margin:20px 0;border-radius:8px}.export-preview strong{font-size:1.2rem}.export-preview p{font-size:.85rem;margin-top:5px}.prompt-box{white-space:pre-wrap;font:13px/1.6 var(--ui-font);max-height:180px;overflow:auto;padding:15px;background:var(--surface-2);border:1px solid var(--border);border-radius:6px}.history-row{border-top:1px solid var(--border);padding:14px 0}.history-row h3{font-size:.9rem}.history-row p{font-size:.82rem;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:min(90vw,550px);padding:0;z-index:100;font-size:.9rem}#toast:not(:empty){padding:12px 18px;border:1px solid var(--border);border-radius:8px;background:var(--ink);color:var(--paper);box-shadow:var(--shadow)}.dialog-body input[type=password]{font-family:var(--ui-font)}.book-title-small{font-family:Georgia;font-size:1.15rem}.section-spacer{margin-top:30px}.count-tag{font-size:.78rem;color:var(--muted);padding:4px 8px;border:1px solid var(--border);border-radius:5px}.loading-spinner{display:inline-block;border:2px solid var(--border);border-top-color:var(--accent);width:18px;height:18px;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){.main-content{padding-left:55px;padding-right:55px}.topbar{padding-left:55px;padding-right:55px}}
@media(max-width:1150px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:24px 12px}.main-content{padding:28px}.topbar{padding:12px 28px}.hero-copy{padding:30px}.hero-copy h2{font-size:3.6rem}.hero-art{width:51%}.book-shelf{gap:10px}.book-link{padding:13px;gap:10px}.book-spine{width:45px;flex-basis:45px;height:74px}.activity-layout{grid-template-columns:minmax(0,1fr) 245px}.reading-page{padding:30px}.reader-layout{grid-template-columns:180px minmax(0,1fr)}.teacher-columns{grid-template-columns:1fr}.metrics{gap:10px}.review-layout{grid-template-columns:1fr}}
@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;z-index:40;transform:translateX(-100%);transition:transform .2s}.app-shell.menu-open .sidebar{transform:translateX(0);box-shadow:5px 0 40px #0004}.app-shell.menu-open:after{content:'';position:fixed;inset:0;background:#102f4260;z-index:35;pointer-events:none}.mobile-menu{display:inline-flex}.topbar{min-height:65px;padding:12px 20px}.topbar-title{margin-right:auto}.main-content{padding:24px 20px}.hero{min-height:310px}.hero-copy h2{font-size:3.5rem}.hero-art{width:49%;opacity:.85}.activity-layout{grid-template-columns:1fr}.activity-sidebar{order:2}.reader-layout{grid-template-columns:minmax(0,1fr)}.chapter-nav{position:static}.chapter-nav h2{margin-bottom:10px}.chapter-links{display:flex;gap:5px;overflow:auto;max-width:100%;padding-bottom:5px}.chapter-nav a{min-width:130px;font-size:.8rem;border:1px solid var(--border)}.chapter-nav a small{font-size:.7rem}.chapter-nav>.button{margin-top:8px}.reader-title-page{min-height:440px}.reading-page{min-height:350px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.book-shelf{grid-template-columns:1fr}.book-link{padding:14px 18px}.book-spine{width:47px;height:62px;flex-basis:47px}.book-link h3{font-size:1.1rem}.coverage-grid{grid-template-columns:1fr}.settings-label{display:none}.reader-controls{gap:8px}.reader-controls>.button{padding:10px 12px}}
@media(max-width:540px){.topbar-actions{gap:6px}.topbar{padding:12px 14px}.topbar-title{font-size:.77rem;max-width:125px;line-height:1.25}.account-button{font-size:0}.account-button .avatar{font-size:.8rem}.account-button .sign-in-label{font-size:.8rem}.main-content{padding:22px 14px 40px}.home-intro{align-items:flex-start}.home-intro .quiet-button{font-size:0;min-width:40px;min-height:40px}.home-intro .quiet-button svg{display:block}.home-intro h1{font-size:1.7rem}.home-intro p{font-size:.88rem}.hero{min-height:355px;display:block}.hero-copy{padding:27px 22px;max-width:100%}.hero-copy h2{font-size:3.4rem}.hero-copy p{max-width:25ch;font-size:.87rem}.hero-art{width:90%;opacity:.43;right:-19%;bottom:-3%;height:83%}.hero-copy .actions{margin-top:20px}.hero-copy .button{font-size:.83rem;padding:10px 12px}.resume-strip{padding:14px;align-items:flex-start;flex-direction:column;gap:10px}.path-grid{grid-template-columns:1fr;gap:0}.learning-path{display:grid;grid-template-columns:34px 1fr;padding:16px 0;gap:4px 10px}.learning-path .path-icon{grid-row:1/3;margin:0}.learning-path p{grid-column:2;margin-top:1px}.learning-path h3{font-size:1rem}.page-heading{flex-direction:column;gap:15px}.page-heading h1{font-size:1.85rem}.reading-page{padding:23px 20px}.reader-title-page h1{font-size:3rem}.reader-controls{justify-content:center}.reader-controls .page-position{order:3;width:100%;text-align:center;margin-top:5px}.reader-page-top{align-items:flex-start;font-size:.75rem}.reader-page-top .quiet-button{font-size:.76rem;padding:7px}.panel{padding:19px}.activity-card{padding:15px 13px;gap:11px;flex-wrap:wrap}.activity-card>.badge{margin-left:50px}.activity-card h3{font-size:.95rem}.activity-card .activity-icon{width:36px;height:36px}.teacher-tabs a{padding:11px 14px}.metric{padding:15px}.metric strong{font-size:1.8rem}.teacher-tabs{margin-left:-4px}.dialog-body{padding:20px}.dialog-head,.dialog-footer{padding:18px 20px}.settings-grid{grid-template-columns:1fr}.filter-bar .field{width:100%}.filter-bar .field select{width:100%}.save-row{align-items:flex-start}.activity-layout .actions .button{flex:1}.app-footer{font-size:.72rem}.review-layout{grid-template-columns:minmax(0,1fr)}.chapter-links{margin-right:-4px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.app-footer,.reader-controls,.chapter-nav,.actions,.back-link{display:none!important}.app-shell{display:block}.main-content{padding:0}.reading-page,.panel{box-shadow:none;border:0}body{background:white;color:black}.reader-layout{display:block}}

.sidebar-close{display:none}.sidebar-close:focus-visible{outline-color:#f1c85b}@media(max-width:850px){.sidebar-close{display:flex;position:absolute;right:12px;top:13px;background:transparent;border-color:#ffffff50;color:white}.sidebar .brand{padding-right:35px}}

.review-navigation{margin-bottom:18px}

.reader-layout>*{min-width:0}.chapter-links{max-width:100%}.teacher-columns>*,.review-layout>*{min-width:0}.reading-field{max-width:var(--reading-width)}

/* Teacher scope and evidence details. Keep filters readable at every width. */
.filter-bar .field{min-width:150px;max-width:100%;flex:1 1 170px}.filter-bar .field select,.filter-bar .field input{width:100%;min-width:0}.due-attention{color:var(--danger);font-weight:600}.coverage-card details li{margin:16px 0}.coverage-card details li p{margin-top:6px}.rubric-row details p{margin:8px 0}.standard-item details{margin-top:8px}.history-row .response-text{color:var(--ink)}.activity-sidebar .source-links{flex-wrap:wrap}

.class-picker{display:flex;gap:6px;align-items:center;font-size:13px}.class-picker select{max-width:180px;min-height:40px;background:var(--surface);color:inherit;border:1px solid var(--line);border-radius:7px;padding:6px}@media(max-width:650px){.class-picker{max-width:130px}.class-picker select{max-width:100px}}

.reading-page .continued-chapter-title{font-size:1.35rem;line-height:1.4;margin-bottom:1.5rem}

/* Whole-Studio editorial homepage; novel artwork remains in the library. */
.studio-welcome{align-items:center}.studio-eyebrow{display:block;font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:.7rem}.studio-welcome .studio-eyebrow{margin:0}.studio-editorial-hero{position:relative;isolation:isolate;background:#f2e9d8;overflow:hidden;border-radius:16px;min-height:490px;margin-bottom:28px;color:#172d42}.studio-editorial-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-2}.studio-editorial-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f3ecdf 0%,#f3ecdfed 23%,#f3ecdf88 42%,transparent 62%);z-index:-1}.studio-editorial-copy{padding:66px 42px;max-width:570px}.studio-editorial-copy .studio-eyebrow{color:#435467}.studio-editorial-copy h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:clamp(2.7rem,4.5vw,4.7rem);line-height:1.05;letter-spacing:-.045em}.studio-editorial-copy p{margin:24px 0 28px;font-size:1.05rem;line-height:1.7;color:#34495b}.studio-ink-button{background:#193b55!important;color:white!important;border-color:#193b55!important}.studio-text-link{color:#193b55;font-weight:650;text-decoration:underline;text-underline-offset:5px}.studio-area-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);margin:28px 0 38px;overflow:hidden}.studio-area-strip a{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:23px 18px;text-decoration:none;color:var(--ink);border-right:1px solid var(--border)}.studio-area-strip a:last-child{border:0}.studio-area-strip a:hover{background:var(--surface-2)}.studio-area-strip a>span{color:var(--accent);margin-bottom:5px}.studio-area-strip strong{font-size:.92rem}.studio-area-strip small{font-size:.77rem;color:var(--muted)}.studio-full-shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.studio-full-shelf .book-shelf{display:contents}.studio-full-shelf .book-link{padding:23px 18px;min-height:145px;flex-direction:column;align-items:flex-start;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.studio-full-shelf .book-link h3{font-size:1rem}.studio-full-shelf .book-link p{font-size:.8rem}.studio-full-shelf .book-spine{height:40px;width:32px}.studio-full-shelf .book-link:nth-child(2){background:var(--surface-2)}
@media(min-width:1500px){.studio-editorial-hero{min-height:560px}.studio-editorial-copy{padding-top:90px}}
@media(max-width:1100px){.studio-area-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-area-strip a{border-bottom:1px solid var(--border)}.studio-full-shelf{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-editorial-copy{padding:48px 28px;max-width:470px}.studio-editorial-hero{min-height:440px}}
@media(max-width:600px){.studio-editorial-hero{padding-top:215px;min-height:0;border-radius:12px}.studio-editorial-hero>img{height:250px;object-position:75% center}.studio-editorial-hero:after{background:linear-gradient(0deg,#f3ecdf 0%,#f3ecdf 50%,transparent 69%)}.studio-editorial-copy{padding:20px 24px 30px}.studio-editorial-copy h1{font-size:2.85rem}.studio-editorial-copy p{margin:17px 0 22px}.studio-area-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.studio-area-strip a{padding:18px 15px}.studio-area-strip a:last-child{grid-column:1/-1}.studio-welcome .studio-eyebrow{font-size:.6rem}.studio-full-shelf{gap:10px}.studio-full-shelf .book-link{padding:18px 12px}}

/* Grok Imagine page family: generated artwork, live accessible HTML headings. */
.studio-page-hero{position:relative;isolation:isolate;overflow:hidden;min-height:250px;padding:36px 40px;margin-bottom:28px;border-radius:18px;background:var(--surface);align-items:center;gap:24px}
.studio-page-hero>.studio-page-art{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 53%}
.studio-page-hero:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 40%,color-mix(in srgb,var(--surface) 85%,transparent) 62%,transparent 100%)}
.studio-page-hero>div{max-width:62%;min-width:0}.studio-page-hero h1{font-size:clamp(1.7rem,3.2vw,2.8rem);line-height:1.14;text-wrap:balance}.studio-page-hero p{max-width:46ch}.studio-page-hero>.button{align-self:flex-end;flex-shrink:0}
.studio-page-hero-compact{min-height:170px;padding:24px 32px}.studio-page-hero-compact h1{font-size:clamp(1.5rem,2.6vw,2.2rem)}
.studio-reading-banner{height:116px;overflow:hidden;border-radius:14px;margin-bottom:22px;background:var(--surface)}.studio-reading-banner img{width:100%;height:100%;object-fit:cover;object-position:center 55%}
.studio-novel-art{width:100%;height:100%;object-fit:cover;display:block}.hero-art:has(.studio-novel-art){overflow:hidden}.title-art:has(.studio-novel-art){overflow:hidden;border-radius:12px}
html[data-theme=dark] .studio-page-hero>.studio-page-art{filter:brightness(.65) saturate(.8)}html[data-theme=dark] .studio-reading-banner img{filter:brightness(.72)}
html[data-contrast=true] .studio-page-hero:before{background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 60%,transparent 100%)}
@media(max-width:700px){.studio-page-hero{padding:24px;min-height:230px;display:block}.studio-page-hero>div{max-width:78%}.studio-page-hero>.button{margin-top:16px}.studio-page-hero-compact{min-height:175px}.studio-page-hero:before{background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 45%,color-mix(in srgb,var(--surface) 85%,transparent) 70%,transparent 100%)}.studio-page-hero>.studio-page-art{object-position:64% center}.studio-reading-banner{height:90px}}
@media(max-width:450px){.studio-page-hero{padding:22px 18px}.studio-page-hero>div{max-width:100%;padding-right:15%}.studio-page-hero:before{background:linear-gradient(90deg,var(--surface) 0%,var(--surface) 60%,color-mix(in srgb,var(--surface) 85%,transparent) 85%,transparent 100%)}.studio-page-hero h1{font-size:1.8rem}.studio-page-hero-compact h1{font-size:1.5rem}}
@media print{.studio-page-art,.studio-reading-banner{display:none}.studio-page-hero{min-height:0;padding:0;background:none}.studio-page-hero:before{display:none}.studio-page-hero>div{max-width:100%}}

/* Original illustrated bookshelf: each spine is a real navigation link. */
.illustrated-shelf{margin:28px 0 24px}.illustrated-shelf .section-heading{margin-bottom:14px}.reading-shelf-scene{display:block;width:100%;height:auto;border-radius:18px;box-shadow:var(--shadow)}.shelf-volume{cursor:pointer;outline:none}.shelf-volume>g{transition:transform .18s ease,filter .18s ease;transform-box:fill-box;transform-origin:50% 100%}.shelf-volume:hover>g,.shelf-volume:focus-visible>g{transform:translateY(-8px);filter:drop-shadow(0 9px 5px #0008)}.shelf-volume:focus-visible rect:nth-child(2){stroke:#fff;stroke-width:5}.shelf-volume text{pointer-events:none}@media(prefers-reduced-motion:reduce){.shelf-volume>g{transition:none}.shelf-volume:hover>g,.shelf-volume:focus-visible>g{transform:none}}@media(max-width:600px){.reading-shelf-scene{min-height:300px;object-fit:cover}.illustrated-shelf .section-heading{align-items:flex-start}.illustrated-shelf .section-heading>a{font-size:.85rem}}

.studio-editorial-hero>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none}.hero-motion-button{position:absolute;right:16px;bottom:16px;z-index:2;border:1px solid #d5cbb8;border-radius:999px;padding:9px 14px;background:#fffdf5ed;color:#193b55;font-size:.85rem;box-shadow:0 2px 10px #0002}

/* Owner-selected Grok option 3, displayed from the preserved original board. */
.studio-brand-mark.studio-fox-logo{width:48px;height:60px;border-radius:9px;background:#eee9dd;overflow:hidden}

/* Realistic shelf: preserve title readability while containing narrow-screen overflow. */
.shelf-viewport{overflow-x:auto;border-radius:18px;scroll-padding-inline:24px;overscroll-behavior-x:contain}
.shelf-viewport:focus-visible{outline:3px solid #3f8fda;outline-offset:4px}
.shelf-viewport .reading-shelf-scene{min-width:900px;min-height:0;object-fit:initial}
.shelf-volume:focus-visible .shelf-focus-ring{stroke:#fff;stroke-width:5}
.shelf-volume image{pointer-events:none}
.shelf-scroll-hint{font-size:.85rem;margin-bottom:10px}
@media(min-width:1280px){.shelf-scroll-hint{display:none}}

/* Keep the animation control in the image area on phones, away from learning links. */
@media(max-width:600px){.studio-editorial-hero .hero-motion-button{top:14px;right:14px;bottom:auto;min-height:44px}}

/* Complete-book library, using the established navy/teal/gold Studio tokens. */
.library-volumes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8rem;margin:1.5rem 0 2.8rem}
.library-volume{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:20px;overflow:hidden}
.library-cover{display:block;aspect-ratio:16/9;overflow:hidden;background:#16364b}
.library-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.library-cover:hover img{transform:scale(1.025)}
.library-volume-copy{padding:1.4rem}.library-volume-copy h2{font-size:1.65rem;margin:.5rem 0}.library-volume-copy h2 a{color:inherit;text-decoration:none}.library-volume-copy p{max-width:60ch}.library-volume-copy .actions{margin-top:1.2rem}
.new-library-books{margin-top:2.5rem}.book-source-actions{margin:1rem 0}.book-source-note{line-height:1.65}.source-passage{white-space:pre-line}
@media(max-width:650px){.library-volumes{grid-template-columns:1fr;gap:1.4rem}.library-volume-copy{padding:1.2rem}.library-volume-copy h2{font-size:1.45rem}.reader-title-page h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.library-cover img{transition:none}.library-cover:hover img{transform:none}}

.learning-book-filter{display:flex;gap:.6rem;flex-direction:column;max-width:40rem;margin:1rem 0 1.6rem;font-weight:600}.learning-book-filter select{width:100%;min-height:44px;padding:.7rem;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:8px}

/* Shared learning feedback, original lessons and Studio activity pages. */
.evidence-feedback,.component-feedback,.follow-up-support,.model-reflection{margin-block:1.25rem;padding-block:1rem;border-top:1px solid var(--line,#c4bba6)}
.evidence-feedback blockquote{margin:.5rem 0;padding:.65rem 1rem;border-inline-start:3px solid var(--gold,#b39150);white-space:pre-wrap;overflow-wrap:anywhere}
.evidence-feedback .badge{display:inline-block;font-size:.78rem;margin-inline-start:.6rem}.evidence-feedback .standard-item{margin-block:1rem}
.writing-checkpoints{margin-block:1rem}.writing-checkpoints summary{cursor:pointer;font-weight:700}.writing-checkpoints .field,.model-reflection .field{display:grid;gap:.45rem;margin-block:1rem}
.writing-checkpoints textarea,.model-reflection textarea{width:100%;box-sizing:border-box;min-height:5rem;font:inherit;line-height:1.6;color:inherit;background:var(--panel,#fffdf6);border:1px solid var(--line,#c4bba6);border-radius:.7rem;padding:.75rem;resize:vertical}
.support-summary{line-height:1.6}.follow-up-support fieldset{margin-block:1rem}.follow-up-support .choice-option{display:flex;gap:.65rem;align-items:flex-start;margin:.4rem 0;padding:.65rem}.follow-up-support input{margin-top:.35rem;flex-shrink:0}

.reading-content .source-passage{position:relative}.source-passage[data-paragraph]::before{content:attr(data-paragraph);position:absolute;left:-2em;width:1.5em;text-align:right;font:400 .65em/2 var(--ui-font);color:inherit;opacity:.55}.source-passage-target{outline:1px solid #b89b5960;outline-offset:7px;border-radius:2px}@media(max-width:600px){.source-passage[data-paragraph]::before{left:-1.4em;width:1em}}

/* Guided product demonstration: keep the actual page visible beside the tour. */
.tour-coach{position:fixed;z-index:80;right:20px;top:94px;width:340px;max-height:calc(100dvh - 115px);overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-top:4px solid #bda264;border-radius:18px;box-shadow:0 18px 55px #001b2930;padding:20px;font-size:15px;line-height:1.6}.tour-coach h2{font-size:1.45rem;line-height:1.25;margin:8px 0 14px}.tour-coach-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;font-weight:700;letter-spacing:.1em}.tour-coach button{cursor:pointer;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:inherit;padding:8px 10px;min-height:42px;font:inherit;font-size:13px}.tour-coach button:disabled{opacity:.4;cursor:default}.tour-coach-head button{font-size:24px;line-height:1;min-width:42px}.tour-jump{display:block;margin-top:14px;font-size:12px}.tour-jump select{display:block;max-width:100%;width:100%;margin-top:5px;padding:8px;border:1px solid var(--border);background:var(--surface);color:inherit;border-radius:7px}.tour-chapter{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin:18px 0 4px}.tour-coach-actions{display:flex;justify-content:space-between;gap:7px;margin-top:20px}.tour-coach .tour-next{background:#173f46;color:#fff;border-color:#173f46;font-weight:700}.studio-touring .workspace{padding-right:375px}.tour-demo{max-width:1000px;margin:auto}.tour-demo h1{font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.15}.tour-demo-label{font-size:11px;font-weight:700;letter-spacing:.09em;padding:12px 16px;border:1px solid var(--border);border-radius:8px}.tour-demo-lead{font-size:18px;max-width:65ch;line-height:1.6}.tour-source{background:#f7f0df;color:#202c30;padding:26px;border-radius:12px;margin:24px 0;border-left:4px solid #bda264}.tour-source p{font:22px/1.7 Georgia,serif}.tour-source h2,.tour-example-card h2{font-size:1.1rem;margin:0 0 12px}.tour-example-card{padding:24px;margin:18px 0;border:1px solid var(--border);border-radius:14px;background:var(--surface);line-height:1.8;overflow:auto}.tour-example-card p:last-child{margin-bottom:0}.tour-example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.tour-demo .metric{padding:20px}.tour-demo table{width:100%;border-collapse:collapse;text-align:left}.tour-demo td,.tour-demo th{padding:12px;border-bottom:1px solid var(--border)}
@media(max-width:1100px){.studio-touring .workspace{padding-right:0}.studio-touring .main-content{padding-bottom:440px}.tour-coach{top:auto;bottom:12px;right:12px;width:min(430px,calc(100vw - 24px));max-height:45dvh}.tour-coach h2{font-size:1.2rem}.tour-minimized .main-content{padding-bottom:150px}}
@media print{.tour-coach{display:none}.studio-touring .workspace{padding-right:0}}
.tour-demo h1{margin:18px 0 12px}.tour-source-details{margin:20px 0}.tour-source-details summary{cursor:pointer;color:var(--accent);font-weight:600}.tour-demo .tour-example-grid .tour-example-card{margin-top:0}.tour-coach h2:focus{outline:none}
.tour-coach{display:flex;flex-direction:column;overflow:hidden}.tour-copy{overflow:auto;min-height:0}.tour-coach-head,.tour-coach-actions{flex-shrink:0}.tour-coach-actions{padding-top:10px;margin-top:10px;border-top:1px solid var(--border)}

/* Activity workbook: chapter groups and persistent submission progress. */
.activity-board{margin-top:32px}.board-progress{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;border-block:1px solid var(--border);margin-bottom:32px}.board-progress h2{font:600 1.6rem Georgia,serif}.board-progress p{margin-top:8px;color:var(--accent);font-weight:650}.board-progress p span{display:block;font-size:.78rem;color:var(--muted);font-weight:400;margin-top:5px}.board-progress progress{width:200px;max-width:100%;height:10px;accent-color:var(--accent);border:0;border-radius:20px;overflow:hidden}.board-progress progress::-webkit-progress-bar{background:var(--surface-2)}.board-progress progress::-webkit-progress-value{background:var(--accent)}.activity-chapter{margin:0 0 36px;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:0 5px 0 var(--surface-2)}.activity-chapter>header{display:flex;gap:16px;align-items:center;margin-bottom:20px}.activity-chapter>header>div{flex:1}.activity-chapter>header p{font-size:.78rem;color:var(--muted);margin-bottom:6px}.activity-chapter>header h2{font-size:1.25rem;line-height:1.35}.activity-chapter>header a{display:flex;gap:7px;align-items:center;font-size:.8rem}.chapter-count{font-size:.8rem;color:var(--muted);white-space:nowrap}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.activity-tile{position:relative;display:grid;grid-template-columns:42px 1fr;align-items:start;gap:14px;padding:20px;min-height:170px;border-radius:12px;background:var(--paper);border-top:3px solid var(--border);transition:border-color .15s,box-shadow .15s}.activity-tile:hover{box-shadow:0 5px 14px #0001}.activity-tile .activity-icon{width:42px;height:42px;border-radius:50%;background:var(--surface-2);color:var(--accent)}.activity-tile .activity-icon svg{width:24px;height:24px;stroke-width:1.5}.activity-tile h3{font-size:1rem;line-height:1.45}.activity-tile .activity-type{margin:0 0 6px;font-size:.72rem;color:var(--muted)}.activity-tile>.badge{grid-column:1/3;justify-self:start;align-self:end;margin:4px 24px 0 0;font-size:.72rem}.activity-open{position:absolute;bottom:20px;right:16px;color:var(--muted)}.activity-done{background:var(--accent-soft);border-color:var(--accent)}.activity-done .activity-icon{background:var(--accent);color:var(--accent-ink)}.activity-done>.badge{background:transparent;padding-left:0;font-weight:700}.activity-revision{border-top-color:var(--gold)}
@media(max-width:1150px){.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.activity-grid{grid-template-columns:1fr}.activity-chapter{padding:16px}.activity-chapter>header{flex-wrap:wrap}.activity-chapter>header>div{flex-basis:100%}.board-progress{align-items:flex-start;flex-direction:column;gap:14px}.activity-tile{min-height:145px}.activity-tile>.badge{margin-left:0}}

.next-learning-step{display:flex;gap:16px;align-items:center;padding:20px 24px;background:var(--gold-soft);border-left:4px solid var(--gold);border-radius:10px;margin:20px 0}.next-learning-step>div{flex:1}.next-learning-step p{font-size:.85rem;margin-top:6px;color:var(--muted)}.board-tools{display:flex;gap:18px;margin-bottom:12px}.board-tools label{display:grid;gap:7px;font-size:.82rem;font-weight:600;flex:1}.board-tools input,.board-tools select{width:100%;min-height:44px;border:1px solid var(--border);border-radius:8px;padding:10px 12px;color:var(--ink);background:var(--surface);font:inherit}.board-results{margin-bottom:20px}.activity-tile[hidden],.activity-chapter[hidden]{display:none!important}.activity-tile[data-progress=save]{border-color:var(--danger)}@media(max-width:600px){.board-tools{flex-direction:column}.next-learning-step{flex-wrap:wrap}.next-learning-step>div{min-width:70%}}

.rws-legacy{--legacy-reading-font:var(--reading-font);--surface:var(--panel);--surface-2:var(--raised);--border:var(--line);--accent:var(--gold);--reading-size:var(--legacy-reading-size,18px);--reading-line:var(--legacy-line-height,1.7);--reading-width:var(--legacy-line-width,68ch);--reading-font:Georgia,'Times New Roman',serif}
.rws-legacy[data-legacy-font=dyslexic]{--reading-font:OpenDyslexic,sans-serif}
.rws-legacy .rs-paper-surface .para p{font-family:var(--reading-font);font-size:var(--reading-size);line-height:var(--reading-line)}
/* Lightweight paper: no raster downloads, animated texture or layout-changing word popovers. */
[data-rs-paper=true] :is(.reading-page:not(.reader-title-page),.rs-paper-surface){background-color:#f8f0df;background-image:radial-gradient(#7d67400c .55px,transparent .75px),linear-gradient(96deg,#b79a5c0a,transparent 8%,transparent 94%,#b79a5c12);background-size:5px 7px,100% 100%;color:#28251f;border-color:#d6c8ad;box-shadow:0 1px 0 #fffaf0 inset,0 10px 25px #172a3b0b}
[data-rs-paper=true][data-theme=dark] .reading-page:not(.reader-title-page),[data-rs-paper=true][data-legacy-theme=dark] .rs-paper-surface{background-color:#272a29;background-image:radial-gradient(#eee4ce08 .55px,transparent .75px);color:#f3ecdf;border-color:#4c524e}
[data-rs-paper=true] :is(.reading-content,.rs-paper-surface .para p){color:inherit}
[data-rs-paper=true][data-contrast=true] .reading-page:not(.reader-title-page),[data-rs-paper=true][data-legacy-contrast=true] .rs-paper-surface{background-image:none}
[data-rs-paper=false] .rs-paper-surface{background:var(--surface,#fff);color:var(--ink,#223745)}
.rs-paper-surface{border:1px solid var(--border,#d6c8ad);border-radius:9px;padding:clamp(18px,3vw,35px)}
.rs-introduction{margin:20px 0 24px;padding:22px 24px;border-left:3px solid #c6a454;background:var(--surface,#f9f8f3);border-radius:0 9px 9px 0;color:var(--ink,#243847)}
.rs-introduction h2{font:600 1.1rem var(--ui-font,system-ui,sans-serif);margin:0 0 10px}
.rs-introduction p{font-family:var(--reading-font,var(--ui-font,system-ui,sans-serif));font-size:var(--reading-size,18px);line-height:var(--reading-line,1.75);max-width:70ch;margin:0;color:inherit}
.rs-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 22px;font:400 .8rem/1.4 var(--ui-font,system-ui,sans-serif)}
.rs-controls button,.rs-check{font:inherit;min-height:36px;padding:7px 12px;border:1px solid var(--border,#9caaad);border-radius:6px;background:var(--surface,#fffaf2);color:var(--ink,#243847);cursor:pointer}
.rs-controls button[aria-pressed=true]{border-color:var(--accent,#2c6b65)}
.rs-support-save{flex-basis:100%;font-size:.8rem}
.rs-support-save:empty{display:none}
.rs-word{appearance:none;display:inline;background:none!important;color:inherit!important;border:0!important;border-radius:2px;padding:0!important;margin:0!important;min-height:0!important;font:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;text-align:inherit;vertical-align:baseline;box-shadow:none!important;text-decoration:underline dotted #5d7e73;text-underline-offset:.22em;cursor:help}
.rs-word strong{font-weight:700;color:inherit}
.rs-word:focus-visible{outline:2px solid #267aaa;outline-offset:3px}
.rs-word:disabled{opacity:1!important;cursor:text;text-decoration:none}
.rs-word:disabled strong{font-weight:inherit}
.rs-glossary{margin-top:28px;padding-top:22px;border-top:1px solid var(--border,#c9baa0);color:inherit}
.rs-glossary[hidden]{display:none!important}
.rs-glossary h2{font:600 1.15rem var(--ui-font,system-ui,sans-serif);margin:0 0 8px;color:inherit}
.rs-small{font-size:.86rem!important;line-height:1.6!important;color:inherit;opacity:.87;margin:8px 0}
.rs-glossary dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px 28px;margin:18px 0 0;font-family:var(--reading-font,Georgia,serif);font-size:max(16px,calc(var(--reading-size,18px)*.9));line-height:1.6}
.rs-glossary dt{font-weight:700;margin:0 0 3px}
.rs-glossary dd{margin:0}
.rs-pronunciation{font:400 .85rem/1.5 var(--ui-font,system-ui,sans-serif);opacity:.8}
.rs-example{font-size:.9em!important;margin:7px 0 0!important;line-height:1.6!important}
.rs-word-dialog{color:var(--ink,#233646);background:var(--surface,#fffaf2);border:1px solid var(--border,#b4c3c4);border-radius:12px;width:min(440px,calc(100% - 32px));max-height:80vh;padding:24px;box-shadow:0 20px 80px #0005;overflow:auto;font:400 var(--reading-size,18px)/var(--reading-line,1.7) var(--reading-font,Georgia,serif)}
.rs-word-dialog::backdrop{background:#10253166}
.rs-word-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:12px}
.rs-word-dialog h2{font:700 1.5rem/1.3 var(--reading-font,Georgia,serif);margin:0}
.rs-word-dialog button{min-height:40px;border:1px solid var(--border,#b4c3c4);border-radius:5px;padding:6px 12px;background:transparent;color:inherit;font:400 .85rem system-ui,sans-serif;cursor:pointer}
.rs-word-dialog p{margin:8px 0}
.rs-definition{font-size:1.1em}
.rs-refresher{margin:20px 0;border:1px solid var(--border,#d1dcdd);border-radius:8px;padding:14px 18px;background:var(--surface,#fff);color:var(--ink,#243847)}
.rs-refresher>summary{cursor:pointer;font-weight:650;font-size:1rem;min-height:30px;list-style-position:outside;margin-left:16px}
.rs-mini-lesson{border-top:1px solid var(--border,#d1dcdd);padding:14px 0;margin-top:12px}
.rs-mini-lesson>summary{cursor:pointer;font-weight:600;margin-left:16px}
.rs-mini-lesson p{margin-top:12px;line-height:var(--reading-line,1.7);font-size:var(--reading-size,18px)}
.rs-standard{font-size:.78rem!important;letter-spacing:.01em;opacity:.8}
.rs-worked{margin:15px 0;padding:16px;background:var(--surface-2,#edf3f0);border-left:2px solid #47877b;border-radius:0 6px 6px 0}
.rs-worked p{margin-top:6px}
.rs-mini-lesson fieldset{border:0;margin:14px 0;padding:0}
.rs-mini-lesson legend{font-weight:600;line-height:1.5;padding:0;margin:0 0 10px;font-size:var(--reading-size,18px)}
.rs-mini-lesson label{display:flex;align-items:baseline;gap:10px;cursor:pointer;padding:8px 0;font-size:var(--reading-size,18px);line-height:1.6}
.rs-mini-lesson input{flex-shrink:0;accent-color:var(--accent,#28675e)}
.rs-check-feedback{padding:0 12px;border-left:2px solid #b48a39}
.rs-check-feedback:empty{display:none}
.rs-check-feedback[data-correct=true]{border-color:#47877b}
@media(max-width:600px){.rs-introduction{padding:18px}.rs-glossary dl{grid-template-columns:1fr}.rs-paper-surface{padding:17px 12px}.rs-refresher{padding:12px}.rs-word-dialog{padding:20px}}
@media print{.rs-controls,.rs-refresher,.rs-word-dialog{display:none!important}.rs-word{text-decoration:none}[data-rs-paper=true] :is(.reading-page:not(.reader-title-page),.rs-paper-surface){background:white;color:black;box-shadow:none}.rs-glossary dl{display:block}.rs-glossary dl>div{break-inside:avoid;margin-bottom:10px}}
