:root{color-scheme:light;--ink:#35483d;--cream:#fff3dd;--quiet:#807866;--safe-left:max(20px,env(safe-area-inset-left));--safe-right:max(20px,env(safe-area-inset-right));--safe-top:max(16px,env(safe-area-inset-top));--safe-bottom:max(14px,env(safe-area-inset-bottom))}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:#344b3e}body{font-family:ui-rounded,"Avenir Next",Avenir,system-ui,sans-serif;color:var(--ink);touch-action:none;-webkit-user-select:none;user-select:none}button,input{font:inherit}button{cursor:pointer;border:0;min-height:46px;color:inherit}button:focus-visible,input:focus-visible{outline:3px solid #ba684e;outline-offset:4px}button:active{transform:scale(.97)}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#canvas{display:block;width:100vw;height:100vh;height:100dvh;outline:none;touch-action:none}.cover,.rotate-cover,.modal-backdrop{position:fixed;inset:0;z-index:10}.cover{background:linear-gradient(90deg,rgba(26,42,33,.72),rgba(26,42,33,.12) 75%),url('courtyard.png') center/cover}.welcome-copy{position:absolute;left:max(7vw,env(safe-area-inset-left));bottom:max(9vh,env(safe-area-inset-bottom));color:var(--cream);max-width:470px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.23em;margin:0 0 10px}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:400}h1{font-size:clamp(42px,7vw,74px);margin:0;line-height:1.04}.subtitle{font-size:16px;margin:12px 0 24px;opacity:.85}.primary{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:12px 22px;border-radius:100px;background:var(--cream);color:var(--ink);font-size:15px;font-weight:600}.primary:disabled{opacity:.6;cursor:wait}#load-status{font-size:12px;opacity:.85;max-width:380px;margin:15px 0 0}progress{height:3px;width:240px;margin-top:12px;accent-color:#edd5b0}#controls{position:fixed;inset:0;pointer-events:none;z-index:3}#controls button,#joystick{pointer-events:auto}.glass{background:rgba(37,56,43,.56);color:#fff5e0;border:1px solid rgba(255,245,224,.37);box-shadow:0 2px 12px #1c29231a;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}.icon-button{width:46px;height:46px;border-radius:50%;display:grid;place-items:center}#menu-open{position:absolute;right:var(--safe-right);top:var(--safe-top)}#movement{position:absolute;left:calc(var(--safe-left) + 5px);bottom:var(--safe-bottom);display:flex;flex-direction:column;align-items:center;gap:8px}#joystick{width:clamp(96px,29vh,126px);height:clamp(96px,29vh,126px);border:1px solid #fff3ddb3;border-radius:50%;background:rgba(43,58,44,.18);box-shadow:inset 0 0 0 13px #fff3dd0a,0 2px 10px #26372c14;position:relative;touch-action:none;opacity:.65;transition:opacity .25s}#joystick.active{opacity:1}#thumb{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);width:40px;height:40px;border-radius:50%;background:#fff3dd75;border:1px solid #fff5dea6;box-shadow:0 3px 8px #344b3e20;pointer-events:none}.pad-cross{position:absolute;inset:calc(50% - 3px);border-radius:50%;background:#fff3dd90;pointer-events:none}#move-hint{color:#fff8e8;text-shadow:0 1px 4px #25362a;font-size:10px;letter-spacing:.025em;opacity:.8;transition:opacity .5s}body.has-walked #move-hint{opacity:0}#talk{position:absolute;bottom:calc(var(--safe-bottom) + 22px);right:calc(var(--safe-right) + 7px);padding:0 22px;height:52px;border-radius:30px;display:flex;align-items:center;gap:10px;font-size:15px}.modal-backdrop{background:#14251d61;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left)}.menu-card{background:#fff3e3f5;width:min(430px,100%);max-height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;border:1px solid #d0c2a5;border-radius:22px;padding:23px 28px;box-shadow:0 16px 70px #14251d38}.menu-card h2{font-size:29px;margin:0 0 16px}.menu-card .primary{background:#405a46;color:var(--cream);width:100%;margin-bottom:10px}.menu-row{min-height:46px;padding:8px 0;border-bottom:1px solid #decfb5;display:flex;align-items:center;justify-content:space-between;gap:15px;background:none;width:100%;font-size:13px;text-align:left}.menu-row label{flex:1;padding:12px 0;margin:-12px 0}input[role=switch]{appearance:none;-webkit-appearance:none;width:38px;height:24px;border-radius:20px;background:#bdb7a7;position:relative;margin:0;cursor:pointer;flex:none}input[role=switch]:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:var(--cream);transition:transform .2s}input[role=switch]:checked{background:#66805a}input[role=switch]:checked:before{transform:translateX(14px)}.help,.install-help{font-size:12px;line-height:1.5;margin:12px 0 0;color:#6d705e}.install-help{font-size:11px}.offline-status{font-size:10px;color:#6d705e;margin:10px 0 0}.offline-status:empty{display:none}#dialogue{position:fixed;z-index:5;left:calc(var(--safe-left) + 4vw);right:calc(var(--safe-right) + 4vw);bottom:var(--safe-bottom);border-radius:19px;background:#fff0dbf5;box-shadow:0 6px 28px #29392c42;border:1px solid #d4b994;display:flex;min-height:142px;align-items:flex-end;padding:18px 22px 12px 160px}#portrait{position:absolute;bottom:0;left:0;width:153px;height:174px;object-fit:contain;object-position:bottom}.dialogue-copy{flex:1;min-width:0}#speaker{font-family:Georgia,serif;font-size:20px;margin:0 26px 7px 0;color:#435b40}#line{font-size:16px;line-height:1.45;margin:0 13px 3px 0;min-height:46px}.dialogue-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}#page-count{font-size:11px;color:#91836c}#next{font-size:13px;background:none;display:flex;align-items:center;gap:15px;color:#435b40;font-weight:600;padding:4px 0 4px 20px}#dialogue-close{position:absolute;right:2px;top:0;background:none;font-size:23px;color:#91836c}.rotate-cover{z-index:20;background:linear-gradient(#344b3eea,#344b3ef5),url('courtyard.png') center/cover;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--cream);padding:30px}.rotate-cover h2{font-size:32px;margin:25px 0 5px}.rotate-cover p{font-size:14px}.rotate-cover small{font-size:11px;opacity:.65;max-width:220px;line-height:1.5}.phone-outline{height:40px;width:72px;border:2px solid #ecdfc4;border-radius:10px;position:relative;transform:rotate(-9deg)}.phone-outline:after{content:"";position:absolute;right:6px;top:13px;border-right:2px solid #ecdfc4;height:10px}body.in-dialogue #movement,body.in-dialogue #talk{display:none!important}@media(max-height:420px){.menu-card{padding:17px 25px}.menu-card h2{font-size:24px;margin-bottom:10px}.menu-card .eyebrow{margin-bottom:5px}.menu-row{min-height:42px}.help,.install-help{margin-top:8px}.welcome-copy{bottom:9vh}.subtitle{margin-bottom:18px}}@media(min-width:1100px){#dialogue{max-width:850px;margin:auto;bottom:30px}#movement{left:max(35px,env(safe-area-inset-left));bottom:25px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

#scene-control{pointer-events:auto;position:absolute;right:calc(var(--safe-right) + 58px);top:var(--safe-top);display:flex;align-items:center;gap:8px;padding:0 12px;background:#fff3dded;border:1px solid #bca882;border-radius:7px;min-height:46px;font-size:12px}#scene-select{font:inherit;font-size:14px;border:0;background:transparent;color:#35483d;min-height:44px;max-width:160px;outline-offset:1px}#meaning{font-size:13px;line-height:1.4;margin:4px 0;color:#6c665b;white-space:pre-line}#line{white-space:pre-line;min-height:0}#dialogue{max-height:calc(100dvh - 80px);overflow:auto;touch-action:pan-y}#dialogue.without-portrait{padding-left:22px}#portrait{pointer-events:none}#talk{max-width:42vw}#talk span{white-space:nowrap}#dialogue .dialogue-copy{padding-bottom:3px}.menu-card{border-radius:12px}.primary{border-radius:8px}

/* A small paper-and-ink kit shared by guidance, conversation and notebook. */
#notebook-open{position:absolute;left:var(--safe-left);top:var(--safe-top);padding:0 14px;border:1px solid #9a815a;border-radius:7px;background:#f7e9cfef;color:#35483d;display:flex;align-items:center;gap:8px;font-size:13px;box-shadow:0 3px 8px #32281b22}
#guidance{position:absolute;left:var(--safe-left);top:calc(var(--safe-top) + 54px);max-width:280px;pointer-events:auto}#guide-toggle{font:inherit;font-size:12px;text-align:left;min-height:34px;background:#f7e9cfe6;border-left:3px solid #ad8b4c;border-radius:2px;padding:6px 12px;color:#4a513f}#guide-detail{background:#f7e9cff5;font-size:12px;line-height:1.5;margin:4px 0;padding:12px;border-radius:3px}
#lesson{position:fixed;z-index:6;left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:var(--safe-bottom);max-width:980px;margin:auto;background:#f8ecd5fa;border:1px solid #a68b60;border-radius:9px;box-shadow:0 9px 40px #1e271d60;color:#35483d;max-height:calc(100dvh - 42px);display:flex;flex-direction:column;overflow:hidden}
#lesson header{display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #d4c3a3;flex:none;min-height:43px}#lesson-title{font:20px Georgia,serif;margin:0}#lesson-close{font-size:27px;background:none;width:44px;min-height:40px}#lesson footer{font-size:10px;line-height:1.3;color:#80775f;padding:7px 20px;border-top:1px solid #deceb0;flex:none}
#lesson-portrait{position:absolute;left:12px;bottom:35px;width:125px;height:195px;object-fit:contain;object-position:bottom;pointer-events:none}
#lesson-body{overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:14px 22px;min-height:0;font-size:14px;line-height:1.45}.conversation-page{padding-left:150px!important;min-height:210px!important}.jp{font-family:"Hiragino Sans","Noto Sans JP",sans-serif}.spoken-line{font-size:24px;line-height:1.5;margin:5px 0 8px}.intention{font-size:12px;color:#71765e;margin:0}.translation{margin:4px 0 8px}.model-line{padding:7px 12px;border-left:3px solid #ac8c52;background:#ecddbf;margin:7px 0;font-size:16px}.help-tools,.response-options{display:flex;gap:10px;flex-wrap:wrap}.ink-button{background:transparent;padding:4px 8px;min-height:36px;color:#436451;text-decoration:underline;text-underline-offset:4px;font-size:13px}.reply-form{display:flex;gap:8px;margin:6px 0}.reply-form input{min-width:0;flex:1;border:1px solid #bda780;border-radius:4px;background:#fff9ec;color:#35483d;font:inherit;font-size:16px;padding:8px 10px;user-select:text;touch-action:manipulation}.reply-form .primary{min-height:42px;padding:6px 16px;background:#466551;color:#fff4de;font-size:14px}.feedback{font-size:13px;color:#73583d;border-left:2px solid #b99465;padding-left:10px}.evidence-note{font-size:12px;color:#77755e}.book-heading{font:24px Georgia,serif;margin:5px 0 12px}.book-heading.jp{font-family:"Hiragino Sans",sans-serif}
.notebook-pages{display:grid;grid-template-columns:150px minmax(0,1fr);gap:20px;min-height:230px}.entry-index{border-right:1px solid #cbb790;padding-right:15px}.entry-tab{display:block;text-align:left;width:100%;font-size:14px;background:none;border-bottom:1px solid #d5c7a9;padding:8px 3px}.entry-tab[aria-pressed=true]{color:#304c39;font-weight:600}.notebook-page p{margin:6px 0}.notebook-page .primary{margin:10px 0;background:#466551;color:#fff4de;padding:8px 14px;min-height:42px;font-size:13px}.context-note,.save-note{font-size:12px;color:#7c765f}.note-label{display:block;font-size:12px;margin-top:14px}#private-note{display:block;width:100%;font:inherit;font-size:16px;resize:vertical;border:0;border-bottom:1px solid #bda780;background:#fff7e7;padding:7px;user-select:text;touch-action:manipulation}details summary{cursor:pointer;padding:8px 0;color:#436451}body.in-lesson #movement,body.in-lesson #talk,body.in-lesson #guidance{display:none!important}body.in-lesson #scene-control{opacity:.5}body.large-text #lesson-body{font-size:18px}body.large-text .spoken-line{font-size:29px}body.large-text .intention,body.large-text .ink-button,body.large-text .evidence-note{font-size:16px}@media(max-width:700px){#lesson-portrait{width:90px;height:155px}.conversation-page{padding-left:110px!important}.notebook-pages{grid-template-columns:105px minmax(0,1fr);gap:12px}}@media(max-height:420px){#lesson{max-height:calc(100dvh - 28px)}#lesson header{min-height:38px}.conversation-page{min-height:175px!important}#lesson-body{padding-top:9px;padding-bottom:9px}.spoken-line{margin-top:2px;margin-bottom:4px}.help-tools .ink-button{min-height:30px}}
/* An open, plain Japanese notebook. Text and every control remain live. */
#lesson.open-notebook{top:max(20px,env(safe-area-inset-top));bottom:max(18px,env(safe-area-inset-bottom));max-width:980px;max-height:620px;padding:4px 4px 6px;border:1px solid #988872;border-radius:5px 8px 9px 5px;background:#b8a487;box-shadow:0 16px 46px #19241d66,0 2px 0 #786c58;color:#41423d}
#lesson.open-notebook:after{content:"";position:absolute;left:8px;right:8px;bottom:3px;height:3px;border-top:1px solid #d8d0bd;border-bottom:1px solid #eee7d7;pointer-events:none}
#lesson.open-notebook header{position:absolute;z-index:3;top:8px;left:28px;right:22px;background:transparent;border:0;min-height:34px;padding:0;pointer-events:none}#lesson.open-notebook header>*{pointer-events:auto}
#lesson.open-notebook #lesson-title{font:12px "Avenir Next",Avenir,system-ui,sans-serif;letter-spacing:.07em;color:#77766e}
#lesson.open-notebook #lesson-close{font-size:25px;min-height:34px;height:34px;color:#626259}
#lesson.open-notebook footer{display:none}
#lesson-body.notebook-pages{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;flex:1;min-height:0!important;padding:0;overflow:hidden;background:#f6f3e9;color:#41423d;font-family:"Avenir Next",Avenir,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;line-height:1.55}
#lesson-body.notebook-pages:after{content:"";position:absolute;left:50%;top:0;bottom:0;width:28px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#aca69416 23%,#756f6030 49%,#fffdf572 55%,transparent);pointer-events:none;z-index:2}
.open-notebook .entry-index,.open-notebook .notebook-page{min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#c7c1b2 transparent}
.open-notebook .entry-index{padding:46px 32px 20px 26px;border:0;border-radius:5px 0 0 5px;background:linear-gradient(90deg,#faf7ee,#f7f4eb 84%,#e9e5d8)}
.open-notebook .notebook-page{padding:46px 26px 20px 32px;border-radius:0 5px 5px 0;background:linear-gradient(90deg,#ece8db,#f8f5ec 9%,#faf7ee 90%,#f1ede2)}
.notebook-jp-label{font-size:12px;letter-spacing:.13em;color:#7d7d70;margin:0 0 7px}
.notebook-index-title{font-size:20px;font-weight:400;line-height:1.4;margin:0 0 22px;max-width:220px;color:#44463e}
.open-notebook .entry-tab{padding:12px 0 12px 12px;position:relative;border:0;border-bottom:1px solid #979b872b;min-height:58px;color:#77786d;font-size:16px;font-weight:400;line-height:1.5}
.open-notebook .entry-tab:before{content:"";position:absolute;left:0;top:21px;width:3px;height:15px;background:transparent}
.open-notebook .entry-tab[aria-pressed=true]{color:#404e43;font-weight:400}
.open-notebook .entry-tab[aria-pressed=true]:before{background:#73816d}
.entry-japanese,.entry-meaning{display:block}.entry-meaning{font-size:11px;color:#939084;margin-top:3px;line-height:1.4}
.notebook-index-caption,.notebook-empty-index{font-size:11px;color:#918e81;margin:20px 0;line-height:1.6}
.open-notebook .notebook-section{font-size:10px;letter-spacing:.1em;color:#939084;margin:0 0 15px}
.open-notebook .book-heading{font:400 27px/1.5 "Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;letter-spacing:.03em;margin:0 0 7px}
.open-notebook .phrase-meaning{font-size:15px;color:#5e6258;margin:0 0 11px}
.open-notebook .context-note{font-size:12px;color:#888579;line-height:1.6;max-width:340px}
.open-notebook .notebook-reading summary{font-size:12px;color:#69745f;padding:10px 0 4px;min-height:32px;touch-action:manipulation}
.open-notebook .notebook-reading p{font-size:13px;color:#63685b;margin:2px 0 6px}
.open-notebook .evidence-note{font-size:10px;color:#969185;margin:10px 0 0;line-height:1.6}
.open-notebook .book-practice{display:inline-flex;background:none;border:0;border-bottom:1px solid #9aab91;border-radius:0;box-shadow:none;color:#596d55;padding:6px 0;min-height:38px;font:400 12px "Avenir Next",Avenir,sans-serif;margin:5px 0 12px;text-decoration:none}
.notebook-notes{margin-top:9px;padding-top:9px;border-top:1px solid #979b872b}
.open-notebook .note-label{font-size:11px;letter-spacing:.02em;color:#827e73;margin:0 0 5px}
.open-notebook #private-note{background:repeating-linear-gradient(transparent,transparent 27px,#9b9a871c 27px,#9b9a871c 28px);font:14px/28px "Avenir Next",Avenir,"Hiragino Kaku Gothic ProN",sans-serif;border:0;border-radius:0;padding:0 2px;min-height:56px;color:#51594c;resize:vertical}
.open-notebook #private-note::placeholder{font-size:12px;color:#a19c8e}
.notebook-save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:4px;flex-wrap:wrap}
.open-notebook .notebook-save-row .ink-button{font-size:11px;min-height:34px;padding:2px 0;color:#63765b;text-decoration-thickness:1px;text-underline-offset:4px}
.open-notebook .save-note{font-size:10px;color:#969185;margin:0}
.empty-page-copy{font-size:14px;color:#7d8073;max-width:270px}
body.large-text .open-notebook .entry-tab,body.large-text .open-notebook .phrase-meaning{font-size:19px}
body.large-text .open-notebook .entry-meaning,body.large-text .open-notebook .context-note,body.large-text .open-notebook .evidence-note,body.large-text .open-notebook .note-label,body.large-text .open-notebook .book-practice,body.large-text .open-notebook .notebook-reading summary,body.large-text .open-notebook .save-note,body.large-text .open-notebook .notebook-save-row .ink-button{font-size:15px}
body.large-text .open-notebook #private-note{font-size:18px;line-height:30px;background-size:auto}
body.large-text .open-notebook .book-heading{font-size:31px}
@media(max-width:700px){#lesson.open-notebook{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));bottom:max(10px,env(safe-area-inset-bottom))}.open-notebook .entry-index{padding:43px 24px 18px 18px}.open-notebook .notebook-page{padding:43px 18px 18px 24px}.notebook-index-title{font-size:17px;margin-bottom:15px}.open-notebook .book-heading{font-size:24px}.open-notebook .entry-tab{font-size:14px}.notebook-jp-label{font-size:11px}.open-notebook .notebook-section{margin-bottom:8px}}
@media(max-height:420px){#lesson.open-notebook{top:max(9px,env(safe-area-inset-top));bottom:max(9px,env(safe-area-inset-bottom))}#lesson.open-notebook header{min-height:33px}#lesson.open-notebook footer{padding-top:3px;padding-bottom:3px}.open-notebook .entry-index,.open-notebook .notebook-page{padding-top:42px}.open-notebook .notebook-section{margin-bottom:8px}.open-notebook .context-note{margin-top:4px;margin-bottom:4px}}

/* Page edges and the fold extend through the full spread, including the controls. */
.open-notebook .entry-index:after{content:"まちのことば  /  01";display:block;margin-top:26px;font-size:9px;letter-spacing:.1em;color:#a19a8c}
.open-notebook .notebook-page:after{content:"MACHI DAYS  /  02";display:block;margin-top:22px;font-size:9px;letter-spacing:.1em;color:#a19a8c}

/* Near-full viewport spread; open/close motion hinges the left leaf at the spine. */
#lesson.open-notebook{left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-width:1440px;max-height:900px}
#lesson.book-closing{pointer-events:none}
.open-notebook .entry-index{backface-visibility:hidden}
@media(min-height:600px){.open-notebook .entry-index,.open-notebook .notebook-page{padding-top:62px;padding-left:38px;padding-right:38px}.notebook-index-title{max-width:320px;font-size:25px}.open-notebook .book-heading{font-size:34px}}
@media(max-height:420px){#lesson.open-notebook{left:max(7px,env(safe-area-inset-left));right:max(7px,env(safe-area-inset-right));top:max(6px,env(safe-area-inset-top));bottom:max(6px,env(safe-area-inset-bottom))}}
/* Quiet corpus navigation shares one content model with the native notebook. */
#lesson-body.notebook-pages{grid-template-columns:minmax(0,.72fr) minmax(0,1fr)}
#lesson-body.notebook-pages:after{left:41.86%}
.book-index-toggle{display:none;background:none;font-size:11px;min-height:34px;color:#787b6d;margin-left:auto;margin-right:16px}
.open-notebook .book-index-toggle{display:block}
.open-notebook.index-hidden #lesson-body{grid-template-columns:1fr}
.open-notebook.index-hidden .entry-index,.open-notebook.index-hidden #lesson-body:after{display:none}
.book-shortcuts{display:flex;gap:20px;margin:0 0 10px}.book-shortcuts button{padding-left:0;text-decoration:none;color:#858579}
.book-shortcuts button[aria-pressed=true],.book-section-link[aria-pressed=true]{color:#405742;text-decoration:underline;text-underline-offset:7px}
.book-sections{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin:4px 0 18px;border-bottom:1px solid #bbb8a733;padding-bottom:12px}
.book-section-link{font:inherit;font-size:13px;background:none;padding:4px 0;text-align:left;min-height:44px;color:#78796e}
#book-section{display:none;width:100%;min-height:44px;background:transparent;border:0;border-bottom:1px solid #b9b7aa;font:inherit;font-size:14px;color:#4c5648;border-radius:0;margin-bottom:14px}
.book-context{background:none;text-align:left;width:100%;font:inherit;font-size:12px;min-height:44px;padding:6px 0;color:#858173}
.open-notebook .entry-tab{padding-left:15px;min-height:58px;font-size:16px}.book-group{padding-left:8px;border-left:1px solid #a09a8b25;margin-bottom:12px}
.open-notebook .notebook-index-title{margin-bottom:12px}.book-back{padding:0;margin:0 0 8px;font-size:11px;min-height:34px}
.book-subheading{font-size:12px;font-weight:500;color:#777a6a;margin:16px 0 5px}.book-bookmark{font-size:11px;padding:0;min-height:34px}
.book-related .ink-button{display:block;text-align:left;padding-left:0;min-height:40px;font-size:13px}
.book-examples,.book-evidence{font-size:12px;color:#747967;margin:6px 0}.book-examples p{font-size:14px}.book-evidence .context-note{margin-top:8px}
.open-notebook .book-practice{margin-top:0}.open-notebook .book-heading{overflow-wrap:anywhere}
@media(max-width:900px){.book-sections{display:none}#book-section{display:block}.open-notebook .entry-index{padding-left:18px;padding-right:24px}.open-notebook .notebook-page{padding-left:25px;padding-right:20px}.open-notebook .entry-tab{font-size:14px}.book-shortcuts{margin-bottom:0}.open-notebook .book-heading{font-size:25px}}
body.large-text .book-context,body.large-text #book-section,body.large-text .book-related .ink-button,body.large-text .book-examples,body.large-text .book-evidence,body.large-text .book-subheading{font-size:16px}

/* A waiting offline build needs an explicit, discoverable activation action. */
#preview-update{position:fixed;z-index:10000;left:50%;top:max(10px,env(safe-area-inset-top));transform:translateX(-50%);max-width:90vw;min-height:44px;padding:10px 18px;border:1px solid #c8b999;border-radius:12px;background:#f4eedf;color:#344b3e;box-shadow:0 3px 18px #17261f44;font-size:14px;cursor:pointer}
#preview-update[hidden]{display:none}

/* One welcome password opens the preview and its voice session. */
#welcome-form{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.password-label{font-size:12px;letter-spacing:.04em;color:#fff3dfd9}#demo-password{width:min(310px,78vw);min-height:46px;border:1px solid #fff3df80;border-radius:12px;background:#243a32a6;color:#fff8e9;padding:11px 16px;font-size:16px;touch-action:manipulation;user-select:text;-webkit-user-select:text}#demo-password::placeholder{color:#fff3dfa8}#welcome-form .primary{margin-top:3px}@media(max-height:420px){.welcome-copy{bottom:5vh}.subtitle{margin:10px 0 14px}#welcome-form{gap:6px}#load-status{margin-top:10px}h1{font-size:44px}}

/* Keep scene controls out of the world fade while a destination is loading. */
body.in-transition #controls{opacity:0;pointer-events:none}
#controls{transition:opacity .25s ease}
