:root{--ink:#142c35;--green:#247665;--green-dark:#19594d;--bg:#f6f5ef;--paper:#fffefa;--muted:#65746f;--line:#e1e4db;--soft:#eaf0e6;--coral:#c87d67;--radius:20px;--shadow:0 12px 40px #142c3508;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;line-height:1.55;-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:var(--green);text-underline-offset:3px}button,select{touch-action:manipulation}svg{display:block;max-width:100%}button svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,h4,p{margin:0}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-.035em;line-height:1.16}h1{font-size:clamp(2rem,3.3vw,3rem)}h2{font-size:clamp(1.65rem,2.4vw,2.2rem)}h3{font-size:1.13rem;line-height:1.35;letter-spacing:-.018em}h4{font-size:1rem}p+p{margin-top:1em}strong{font-weight:650}small{font-size:.79rem}ul,ol{padding-left:1.35em}li+li{margin-top:.45em}hr{border:0;border-top:1px solid var(--line);margin:24px 0}::selection{background:#d6e8d7;color:var(--ink)}:focus-visible{outline:3px solid #b55b41;outline-offset:4px}main:focus{outline:none}[hidden]{display:none!important}.skip-link{position:fixed;z-index:100;top:10px;left:10px;padding:12px 18px;background:var(--ink);color:white;transform:translateY(-160%);border-radius:9px}.skip-link:focus{transform:none}
.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh;min-height:100dvh}.sidebar{position:sticky;top:0;height:100vh;height:100dvh;display:flex;flex-direction:column;padding:38px 22px 24px;background:var(--paper);border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;padding:0 7px;color:var(--ink);text-decoration:none;font-size:1.6rem;font-weight:700;letter-spacing:-1.1px;line-height:1.15}.brand-number{font-weight:400;color:var(--green);letter-spacing:-1.5px;margin-left:1px}.brand small{display:block;font-size:.52rem;font-weight:600;letter-spacing:1.25px;margin-top:10px}.brand-mark{display:grid;place-items:center;width:41px;height:45px;flex-shrink:0;background:var(--ink);border-radius:12px;color:#ecf2d7}.brand-mark svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.sidebar-label{color:#88918b;font-size:.64rem;font-weight:650;letter-spacing:1.9px;margin:54px 17px 16px}.main-nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:14px;width:100%;min-height:49px;padding:12px 16px;background:transparent;border:1px solid transparent;border-radius:10px;color:var(--muted);text-align:left;font-size:.91rem;font-weight:550}.nav-item svg{width:20px;height:20px;flex-shrink:0}.nav-item:hover{background:#f1f3ed;color:var(--ink)}.nav-item.active,.nav-item[aria-current="page"]{background:var(--soft);color:var(--green-dark);font-weight:650}.nav-item.active:after,.nav-item[aria-current="page"]:after{content:"";width:5px;height:5px;border-radius:50%;background:var(--green);margin-left:auto}.sidebar-bottom{margin-top:auto;padding:40px 13px 0}.practice-note{border-top:1px solid var(--line);padding-top:22px}.practice-note>span{font-size:2rem;color:var(--green);line-height:1}.practice-note p{font-size:.78rem;line-height:1.8;margin:10px 0 22px;color:var(--muted)}.practice-note strong{font-weight:500;color:var(--ink)}.local-note{font-size:.67rem;line-height:1.65;color:#7b8580}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{height:87px;display:flex;justify-content:space-between;align-items:center;margin:0 46px;border-bottom:1px solid var(--line);gap:16px}.topbar-label{font-size:.78rem;color:var(--muted);letter-spacing:.02em}.topbar-actions{display:flex;gap:18px;align-items:center}.preview-badge{display:flex;gap:7px;align-items:center;font-size:.69rem;color:#66756b;white-space:nowrap}.preview-badge>span{width:6px;height:6px;background:#82a184;border-radius:50%}.icon-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:50%}.icon-button:hover{background:var(--soft)}.mobile-brand{display:none}#main{width:100%;max-width:1250px;flex:1;padding:39px 46px 50px;margin:0 auto;min-width:0}.page-footer{display:flex;justify-content:space-between;gap:16px;margin:0 46px;padding:21px 0 28px;border-top:1px solid var(--line);font-size:.67rem;color:#7d8780}.page-footer span{font-size:.63rem}
.page-intro{margin-bottom:28px}.page-intro .eyebrow{margin-bottom:10px}.page-intro h1+p{margin-top:11px;font-size:.93rem}.eyebrow{font-size:.65rem;letter-spacing:2px;font-weight:650;text-transform:uppercase;color:var(--green);line-height:1.5}.muted{color:var(--muted)}.hero{display:grid;grid-template-columns:1.25fr .75fr;background:var(--ink);color:#f7f5ed;border-radius:var(--radius);padding:35px 38px;min-height:275px;overflow:hidden;position:relative;margin-bottom:29px;gap:20px}.hero-copy{position:relative;z-index:1;align-self:center}.hero .eyebrow{color:#bfd0b5;font-size:.6rem}.hero h2{font-size:clamp(2rem,3.7vw,3.3rem);line-height:1.06;max-width:530px;margin:14px 0 15px}.hero p{max-width:390px;color:#bfcec9;font-size:.86rem;line-height:1.8}.hero .button{margin-top:24px}.hero .button.primary{background:#e5edc9;color:var(--ink);border-color:#e5edc9}.hero .button.primary:hover{background:#f0f5dc}.hero-art{align-self:center;justify-self:center;width:230px;height:230px;position:relative;flex-shrink:0;display:grid;place-items:center}.book-orbit{position:absolute;inset:3px;border:1px solid #ffffff16;border-radius:50%}.book-orbit:before,.book-orbit:after{content:"";position:absolute;inset:23px;border:1px solid #ffffff0d;border-radius:50%}.book-orbit:after{inset:-22px}.book-shape{display:flex;width:164px;height:125px;transform:rotate(-12deg);filter:drop-shadow(0 14px 14px #08181d4d)}.book-page{flex:1;background:#f4efdf;border:1px solid #c8d1bc;border-radius:6px 16px 7px 7px;padding:21px 13px;transform:skewY(-6deg);box-shadow:0 5px 0 #b2c2b1,0 9px 0 #739789}.book-page+.book-page{border-radius:16px 6px 7px 7px;transform:skewY(6deg);background:#e3e9d7;box-shadow:0 5px 0 #b2c2b1,0 9px 0 #739789}.book-page i{display:block;height:2px;width:100%;background:#94a58f75;margin:0 0 10px}.book-page i:nth-child(3){width:70%}.book-page i:last-child{width:85%}.art-star{position:absolute;right:10px;top:28px;color:#d5937d;font-size:31px}.art-caption{position:absolute;bottom:0;font-size:.64rem;letter-spacing:.03em;color:#a9bcb3}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;padding:12px 20px;border:1px solid var(--line);border-radius:9px;text-decoration:none;font-weight:600;font-size:.84rem;line-height:1.4;text-align:center;max-width:100%;color:var(--ink);background:var(--paper)}.button>span[aria-hidden]{font-size:1.15rem;line-height:1}.button.primary{background:var(--green);color:white;border-color:var(--green)}.button.primary:hover{background:var(--green-dark)}.button.secondary{border-color:#cdd8c9;background:transparent;color:var(--green-dark)}.button.secondary:hover{background:var(--soft)}.button.ghost{background:transparent;border-color:transparent;color:var(--green);padding-left:7px;padding-right:7px}.button.ghost:hover{background:#eaf0e680}.button.danger{color:#a24935;border-color:#ddbeb2;background:#fff8f4}.button.small{min-height:44px;padding:9px 14px;font-size:.78rem}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid-2+.section-head,.grid-3+.section-head{margin-top:34px}.card{padding:25px;border:1px solid var(--line);border-radius:16px;background:var(--paper);min-width:0;box-shadow:var(--shadow)}.card h3+p,.card h2+p{margin-top:10px}.card p{font-size:.86rem;line-height:1.7}.card .button{margin-top:18px}.card .eyebrow{margin-bottom:12px}.card-icon{display:grid;place-items:center;width:41px;height:41px;border-radius:12px;color:var(--green);background:#edf2e9;margin-bottom:18px;font-size:1.25rem}.card-icon.coral{background:#f7ece5;color:#aa624c}.card-icon svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.card-number{font-family:Georgia,serif;font-size:1.7rem;color:var(--green);line-height:1.2}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:27px 0 15px}.section-head h2{font-size:1.45rem}.section-head h3{font-size:1rem}.section-head p{font-size:.78rem}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.row.between{justify-content:space-between}.stack{display:flex;flex-direction:column;gap:16px;min-width:0}.stack.compact{gap:9px}.badge{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;padding:5px 9px;border-radius:5px;background:var(--soft);color:var(--green-dark);font-size:.64rem;font-weight:600;line-height:1.35}.badge.coral{background:#f6eae3;color:#9a5b46}.badge.neutral{background:#efefe7;color:var(--muted)}.stat{padding:22px 24px;background:var(--paper);border:1px solid var(--line);border-radius:14px;min-width:0}.stat strong,.stat-value{display:block;font-family:Georgia,serif;font-weight:400;font-size:2.1rem;line-height:1.15;letter-spacing:-.05em;margin:8px 0;color:var(--ink);font-variant-numeric:tabular-nums}.stat span,.stat-label{font-size:.73rem;color:var(--muted)}.stat small{display:block;color:var(--muted);font-size:.69rem}.empty-state{text-align:center;padding:34px 24px;border:1px dashed #cfd9c8;border-radius:14px;background:#f9faf5;color:var(--muted)}.empty-state h3{color:var(--ink);margin-bottom:9px}.empty-state p{max-width:480px;margin-left:auto;margin-right:auto;font-size:.83rem}.empty-state .button{margin-top:18px}.empty-state svg{width:35px;height:35px;margin:0 auto 15px;stroke:#8a9b87;fill:none;stroke-width:1.2}.progress-track{height:6px;border-radius:100px;background:#e5eadd;overflow:hidden;margin:14px 0}.progress-fill{height:100%;background:var(--green);border-radius:inherit;min-width:0;max-width:100%}.routine-step{display:flex;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.routine-step:last-child{border-bottom:0}.routine-step>span{font-family:Georgia,serif;font-size:1.3rem;line-height:1.25;color:#91a28b;width:25px;flex-shrink:0}.routine-step p{font-size:.8rem;color:var(--muted)}.routine-step strong{font-size:.86rem;display:block;color:var(--ink)}
.reader{background:var(--paper);border:1px solid var(--line);border-radius:18px;overflow:visible}.reader-toolbar{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 24px;background:#fffefaee;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line);border-radius:18px 18px 0 0;font-size:.8rem}.reader-toolbar .button{min-height:44px;padding:9px 15px}.reader-toolbar .timer,.timer{font-variant-numeric:tabular-nums;font-weight:650;letter-spacing:.03em}.passage{max-width:760px;padding:35px 42px 42px;margin:0 auto;font-family:Georgia,"Times New Roman",serif;font-size:1.2rem;line-height:1.95;letter-spacing:0;overflow-wrap:break-word}.passage h2{font-size:1.9rem;line-height:1.3;margin-bottom:24px}.passage p+p{margin-top:1.25em}.passage .highlight,.passage mark{background:#e6edc9;color:inherit;border-radius:2px}.passage.guided p{opacity:.55}.passage.guided p.current{opacity:1}.quiz-question{padding:23px 0;border-bottom:1px solid var(--line)}.quiz-question:first-child{padding-top:0}.quiz-question:last-child{border-bottom:0}.quiz-question h3,.quiz-question legend{font-size:1rem;font-weight:600;line-height:1.55;margin-bottom:15px}.quiz-question fieldset,fieldset.quiz-question{min-width:0;border-left:0;border-right:0;border-top:0;margin:0}.options{display:grid;gap:9px}.option{display:flex;align-items:flex-start;gap:11px;border:1px solid var(--line);border-radius:10px;min-height:48px;padding:13px 15px;background:var(--paper);text-align:left;color:var(--ink);width:100%;font-size:.87rem;line-height:1.55;cursor:pointer}.option:hover{background:#f2f5ec}.option.selected,.option:has(input:checked){border-color:var(--green);background:#edf4eb}.option input{margin:4px 0 0;width:17px;height:17px;flex-shrink:0;accent-color:var(--green)}.option.correct{border-color:#85b89b;background:#edf6ed}.option.incorrect{border-color:#d3a699;background:#fbf0e9}.feedback{padding:17px 20px;border:1px solid #d4decf;background:#eef2e7;border-radius:11px;font-size:.86rem;line-height:1.7;margin-top:18px;overflow-wrap:anywhere}.feedback h3{margin-bottom:7px}.feedback.success,.success{color:#1c644c;background:#edf5e9;border-color:#b9d5ad}.feedback.error,.error{color:#974b36;background:#fbefe8;border-color:#e1bdad}.result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:23px 0}.memory-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:25px 0}.word-chip{padding:22px 12px;border:1px solid #d2dfc8;border-radius:12px;background:#f0f5e8;text-align:center;font-family:Georgia,serif;font-size:1.3rem;overflow-wrap:anywhere}.memory-number{font-variant-numeric:tabular-nums;font-size:3rem;letter-spacing:.1em;text-align:center;padding:30px 0}.lesson{padding:27px 30px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}.lesson+.lesson{margin-top:16px}.lesson h2,.lesson h3{margin-bottom:13px}.lesson h2{font-size:1.65rem}.lesson p,.lesson li{font-size:.92rem;line-height:1.85}.lesson .eyebrow{margin-bottom:12px}.lesson .button{margin-top:18px}.lesson details{margin-top:16px;border-top:1px solid var(--line);padding-top:15px}.lesson summary{cursor:pointer;min-height:44px;color:var(--green);font-weight:600;font-size:.87rem}.lesson summary:focus-visible{outline-offset:2px}.lesson a{overflow-wrap:anywhere}.history-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;border-bottom:1px solid var(--line);padding:17px 0;font-size:.85rem;min-width:0}.history-row:last-child{border-bottom:0}.history-row strong{display:block}.history-row small{color:var(--muted)}.history-row>div:last-child{text-align:right}.history-metrics{display:flex;gap:18px;flex-wrap:wrap}
.modal-backdrop{position:fixed;inset:0;z-index:40;background:#10282f80;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.modal{width:100%;max-width:510px;max-height:calc(100dvh - 48px);overflow:auto;background:var(--paper);padding:30px;border-radius:20px;box-shadow:0 24px 100px #10282f40}.modal h2{font-size:1.9rem;margin-bottom:10px}.modal p{font-size:.87rem;color:var(--muted)}.modal>.row:first-child{justify-content:space-between;align-items:flex-start}.modal .field{margin-top:20px}.modal .row:last-child{margin-top:25px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label,.field>span{font-size:.8rem;font-weight:600}.field small{font-size:.72rem;color:var(--muted);line-height:1.6}input:not([type=radio]):not([type=checkbox]):not([type=range]),select,textarea{display:block;width:100%;min-height:46px;border:1px solid #ccd7c8;border-radius:9px;background:white;color:var(--ink);padding:11px 13px;line-height:1.5;max-width:100%;font-size:16px}textarea{min-height:130px;resize:vertical}input[type=range]{width:100%;accent-color:var(--green);min-height:44px}input[type=checkbox]{accent-color:var(--green);width:18px;height:18px}input::placeholder,textarea::placeholder{color:#89928b}output{font-variant-numeric:tabular-nums}.toast{position:fixed;z-index:60;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border:1px solid #2c4d51;border-radius:12px;box-shadow:0 8px 30px #142c3526;max-width:calc(100% - 30px);width:max-content;padding:13px 20px;font-size:.84rem;line-height:1.6}.mobile-label{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.topbar,.page-footer{max-width:1158px;width:calc(100% - 92px);margin-left:auto;margin-right:auto}}
@media(max-width:1150px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:30px 16px 22px}.brand{font-size:1.4rem;gap:9px}.brand-mark{width:35px;height:40px}.brand small{font-size:.46rem;letter-spacing:1px}.topbar{margin:0 28px}#main{padding:32px 28px 40px}.page-footer{margin:0 28px}.hero{padding:30px;grid-template-columns:1.3fr .7fr;gap:10px}.hero-art{width:190px;height:190px}.book-shape{width:143px;height:110px}.book-page{padding:17px 12px}.art-caption{font-size:.58rem}.grid-3{gap:12px}.stat{padding:18px}.card{padding:22px}}
@media(max-width:850px){.hero{grid-template-columns:1fr}.hero-art{display:none}.hero h2{font-size:2.5rem}.grid-3{grid-template-columns:1fr}.grid-2{gap:15px}.result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.result-grid .stat{padding:17px 13px}.stat strong,.stat-value{font-size:1.8rem}.page-footer{display:block}.page-footer span{display:block;margin-top:6px}.card{padding:20px}.passage{padding:28px;font-size:1.12rem}}
@media(max-width:700px){.app-shell{display:block}.sidebar{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:20;height:auto;padding:7px 9px calc(8px + env(safe-area-inset-bottom));background:#fffefaf5;border:0;border-top:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.sidebar>.brand,.sidebar-label,.sidebar-bottom{display:none}.main-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.nav-item{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:53px;padding:7px 2px 5px;font-size:.61rem;border-radius:9px;font-weight:500;line-height:1.2}.nav-item svg{width:21px;height:21px;stroke-width:1.6}.nav-item.active,.nav-item[aria-current="page"]{background:#edf2e6}.nav-item.active:after,.nav-item[aria-current="page"]:after{display:none}.workspace{min-height:100dvh;padding-bottom:calc(77px + env(safe-area-inset-bottom))}.topbar{height:74px;margin:0 22px;gap:9px}.topbar-label{display:none}.mobile-brand{display:block;color:var(--ink);text-decoration:none;letter-spacing:-1px;font-size:1.35rem;font-weight:750}.mobile-brand span{font-weight:400;color:var(--green)}.topbar-actions{gap:11px}.preview-badge{font-size:.6rem;gap:5px}.icon-button{width:44px;height:44px}.icon-button svg{width:20px;height:20px}#main{padding:27px 22px 35px}.page-intro{margin-bottom:23px}.page-intro .eyebrow{font-size:.6rem;letter-spacing:1.8px}.page-intro h1{font-size:2rem;line-height:1.18}.page-intro h1+p{font-size:.85rem;line-height:1.65;margin-top:12px}.hero{padding:28px 25px;min-height:0;border-radius:16px;margin-bottom:24px;gap:0}.hero h2{font-size:2.35rem;line-height:1.08;margin:13px 0 14px}.hero p{font-size:.82rem;line-height:1.75}.hero .eyebrow{font-size:.56rem;letter-spacing:1.6px}.hero .button{margin-top:22px;font-size:.81rem;width:100%}.hero-art{display:none}.grid-2,.grid-3{grid-template-columns:1fr;gap:14px}.card{padding:23px;border-radius:14px}.card p{font-size:.83rem}.section-head{margin:25px 0 14px;gap:10px}.section-head h2{font-size:1.45rem}.section-head p{font-size:.7rem}.section-head .button{font-size:.73rem;padding:8px 9px}.badge{font-size:.61rem}.stat{padding:19px}.stat strong,.stat-value{font-size:2rem}.result-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.result-grid .stat{padding:15px 11px;border-radius:10px}.result-grid .stat strong,.result-grid .stat-value{font-size:1.7rem}.result-grid .stat span,.result-grid .stat-label{font-size:.62rem;line-height:1.45;display:block}.result-grid .stat small{font-size:.59rem;line-height:1.5}.reader{margin-left:-8px;margin-right:-8px;border-radius:13px}.reader-toolbar{padding:11px 14px;border-radius:13px 13px 0 0;gap:8px;font-size:.73rem}.reader-toolbar .row{gap:8px}.reader-toolbar .button{font-size:.73rem;padding:10px 11px}.passage{padding:25px 22px 32px;font-size:1.12rem;line-height:1.9}.passage h2{font-size:1.65rem;margin-bottom:20px}.quiz-question{padding:21px 0}.quiz-question h3,.quiz-question legend{font-size:.94rem}.option{padding:13px;font-size:.84rem}.feedback{padding:16px;font-size:.82rem}.memory-words{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.word-chip{padding:19px 10px;font-size:1.22rem}.lesson{padding:23px}.lesson h2{font-size:1.5rem}.lesson p,.lesson li{font-size:.87rem}.history-row{gap:12px;font-size:.78rem;grid-template-columns:minmax(0,1fr) auto}.history-row small{font-size:.66rem}.history-metrics{gap:8px}.empty-state{padding:28px 20px}.empty-state p{font-size:.8rem}.page-footer{margin:0 22px;font-size:.64rem;padding:20px 0 14px}.page-footer span{font-size:.59rem}.modal-backdrop{padding:16px;align-items:center}.modal{padding:24px;max-height:calc(100dvh - 32px);border-radius:16px}.modal h2{font-size:1.65rem}.modal .row:last-child .button{flex:1}.toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:.78rem;padding:12px 16px}.mobile-label{display:inline}}
@media(max-width:360px){.topbar{margin:0 16px}#main{padding:25px 16px 30px}.page-intro h1{font-size:1.85rem}.hero{padding:25px 21px}.hero h2{font-size:2.15rem}.preview-badge{font-size:.55rem}.topbar-actions{gap:5px}.page-footer{margin:0 16px}.result-grid .stat{padding:13px 8px}.result-grid .stat strong{font-size:1.5rem}.nav-item{font-size:.57rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.sidebar,.topbar,.page-footer,.toast,.button{display:none!important}.app-shell{display:block}.workspace{padding:0}#main{padding:0;max-width:none}.hero,.card,.stat,.lesson{break-inside:avoid}.hero{background:white;color:black;border:1px solid #aaa}.hero p,.hero .eyebrow{color:black}.reader-toolbar{position:static}}

/* Integrated exercise layouts. */
#main>section+section,#main>.grid-2+section,#main>.grid-3+section,#main>.row+.grid-3{margin-top:24px}
#main>.row{margin:20px 0}.small{font-size:.76rem;line-height:1.7}.home-stats{margin-bottom:30px}.stat p{font-size:.73rem;color:var(--muted);line-height:1.6}.stat strong small{display:inline;font-family:inherit;font-size:.85rem;letter-spacing:0}.step-number{display:block;font-family:Georgia,serif;font-size:1.7rem;color:var(--green);margin-bottom:14px}.text-link{padding:12px 0;border:0;background:transparent;color:var(--green);font-size:.84rem;font-weight:600;min-height:44px}.home-note{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:25px}.home-note .button{flex-shrink:0;margin:0}.home-note .eyebrow{margin-bottom:6px}.hero .hero-note{font-size:.7rem;margin-top:13px}.book-stack{width:180px;transform:rotate(-11deg);display:flex;flex-direction:column;gap:10px}.book-stack span{display:block;background:#e5edc9;border-radius:5px 10px 10px 5px;padding:18px 20px;border-left:9px solid #a5bf99;box-shadow:0 5px 0 #749083;font-size:.76rem;font-weight:600;letter-spacing:2px;color:var(--ink)}.book-stack span:nth-child(2){background:#cbded3;margin-left:17px;margin-right:-17px}.book-stack span:nth-child(3){background:#dcaa93;border-left-color:#b77b64}.reader>h1,.reader>.eyebrow{padding-left:40px;padding-right:40px}.reader>.eyebrow{padding-top:30px;margin-bottom:10px}.reader>h1{font-size:2.2rem}.reader.card{padding:28px;max-width:850px}.reader.card>.eyebrow{padding:0}.reader-end{padding:0 40px 35px}.reader-end .button{margin-top:18px}.reader>.empty-state{margin:25px}.reader-toolbar{border:1px solid var(--line);margin-bottom:12px}.quiz-question.card{padding:22px;border:1px solid var(--line);margin-bottom:18px;background:var(--paper)}.quiz-question legend{padding:0 8px;max-width:100%}.quiz-question legend span{display:block}.quiz-question legend .eyebrow{margin:0 0 5px}.reader#quiz-form{padding:22px;background:transparent;border:0}.personal-note{white-space:pre-wrap;overflow-wrap:anywhere}details summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--green);font-weight:600;gap:10px}details summary:before{content:'+'}details[open] summary:before{content:'−'}details p{margin-top:12px}.practice{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.grid-2 .lesson+.lesson{margin-top:0}.history-row{grid-template-columns:minmax(0,1fr) auto auto}.history-row>div:last-child{text-align:left}.history-row p{margin:4px 0 0}.result-grid .stat{overflow-wrap:anywhere}.result-grid .stat strong{font-size:1.9rem}
@media(max-width:700px){.home-note{align-items:flex-start;flex-direction:column}.home-note .button{width:100%}.reader>h1,.reader>.eyebrow{padding-left:22px;padding-right:22px}.reader>h1{font-size:1.8rem}.reader.card{padding:23px}.reader-end{padding:0 22px 28px}.reader#quiz-form{padding:0;margin:0}.quiz-question.card{padding:16px}.result-grid{grid-template-columns:1fr}.result-grid .stat{padding:20px}.result-grid .stat span{font-size:.8rem}.result-grid .stat strong{font-size:2rem}.result-grid .stat small{font-size:.8rem}.history-row{grid-template-columns:minmax(0,1fr) auto}.history-row>*:nth-child(3){grid-column:1/-1}.section-head{flex-wrap:wrap}.card details .passage{padding-left:0;padding-right:0}.book-stack{display:none}}

/* Daily practice and personal library */
.routine-list{display:grid;gap:10px;margin:18px 0}.routine-step{display:flex;gap:16px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:20px;background:var(--paper);color:var(--ink);text-align:left;width:100%;min-height:85px}.routine-step:hover{border-color:var(--green)}.routine-step>span:nth-child(2){flex:1}.routine-step small{display:block;color:var(--muted);margin-top:4px;font-size:.8rem}.routine-step>span:last-child{color:var(--green);font-size:.78rem;white-space:nowrap}.routine-check{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border-radius:50%;background:var(--soft);color:var(--green)}.home-stats{margin-top:25px}.reader-size{display:flex;gap:6px;align-items:center}.reader-size select{min-width:65px;width:65px;padding:6px}.reader-toolbar{flex-wrap:wrap}.field+.field{margin-top:18px}form>.button{margin-top:18px}#import-status{margin-top:14px;font-size:.85rem}.preview-badge>#save-status{width:auto;height:auto;border-radius:0;background:none}.card.stack h2{font-size:1.8rem}.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:var(--bg)}.login-panel{max-width:440px;width:100%;background:var(--paper);border:1px solid var(--line);padding:40px;border-radius:24px;box-shadow:var(--shadow)}.login-panel h1{margin:24px 0 12px}.login-panel form{margin-top:28px}.login-panel .button{width:100%}.login-panel .brand{justify-content:center}.login-panel .muted{font-size:.88rem}.login-error{color:#974b36;min-height:24px;margin-top:15px;font-size:.87rem}@media(max-width:700px){.routine-step{padding:16px;gap:10px}.routine-step>span:last-child{font-size:.66rem}.routine-step strong{font-size:.84rem}.routine-step small{font-size:.72rem}.routine-check{width:28px;height:28px}.login-panel{padding:28px}.reader-size{font-size:.73rem}}
