/* Stable navigation; compact mode does not reveal rows on hover. */
#modeCourse,#menuSettingsV26{display:none!important}
body:not(.menu-pinned) #appMenu .menu-group-label-v47{display:none!important}
body.menu-pinned #appMenu .menu-group-label-v47{display:block;color:#b7d0cf}
.print-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:stretch}
.print-actions button{margin:0!important;min-height:48px;width:100%;white-space:normal}
#printCount,#quota-print-v46{min-height:24px;margin:8px 0;font-size:14px}
.print-settings{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.print-settings .print-page-mode461{flex-basis:100%;display:flex;align-items:center;gap:8px}
.print-page-mode461 small{font-size:12px;max-width:480px}
@media(max-width:650px){.print-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.print-page-mode461{flex-wrap:wrap}.print-page-mode461 small{flex-basis:100%}}
/* Shared navigation on standalone reference pages. */
body.reference-v48{padding-left:78px;transition:none}
body.reference-v48.menu-pinned{padding-left:246px}
.reference-v48 #appMenu{position:fixed;inset:0 auto 0 0;width:78px;z-index:80;background:linear-gradient(170deg,#143f4d,#10332f);color:#eaf7ed;padding:14px 9px;overflow-y:auto;overflow-x:hidden;border-right:1px solid #244e54;display:flex;flex-direction:column;gap:6px;scrollbar-width:none}
.reference-v48 #appMenu::-webkit-scrollbar{display:none}
.reference-v48.menu-pinned #appMenu{width:246px}
.reference-v48 #appMenu .menu-item{display:flex;align-items:center;gap:12px;width:100%;min-height:49px;padding:8px 9px;border:0;border-radius:11px;background:transparent;color:#e6f2f3;text-decoration:none;font:650 14px/1.35 system-ui;text-align:left;overflow:hidden;margin:0}
.reference-v48 #appMenu .menu-item:hover{background:#ffffff15}
.reference-v48 #appMenu .active{background:#f9e6bc;color:#224936}
.reference-v48 #appMenu .menu-icon{width:38px;min-width:38px;display:grid;place-items:center;font-size:23px}
.reference-v48 #appMenu svg{width:25px;height:25px}
.reference-v48 #appMenu .menu-text{display:none}
.reference-v48.menu-pinned #appMenu .menu-text{display:block}
.reference-v48 #appMenu .menu-group-label-v47{padding:12px 10px 5px;font-size:10px;letter-spacing:.08em}
.reference-v48 .reference-account-v48{display:flex;align-items:center;gap:7px;text-decoration:none;color:inherit;font-size:13px;white-space:nowrap;margin-left:auto;padding:8px;border:1px solid #c7d5cb;border-radius:22px}
.reference-account-v48 svg{width:23px;height:23px}
.reference-v48 .site-menu,.reference-v48 .account-link,.reference-v48 .site-return{display:none!important}
.reference-v48>header{gap:12px;position:relative;top:auto}
.reference-v48 .actions{left:78px}
.reference-v48.menu-pinned .actions{left:246px}
@media(max-width:760px){body.reference-v48,body.reference-v48.menu-pinned{padding-left:0}.reference-v48 #appMenu{left:8px;top:10px;bottom:auto;width:48px;height:48px;padding:0;border-radius:10px;overflow:hidden}.reference-v48 #appMenu #pinMenu{height:48px;padding:4px}.reference-v48:not(.menu-pinned) #appMenu>:not(#pinMenu){display:none!important}.reference-v48.menu-pinned #appMenu{inset:0 auto 0 0;height:100dvh;width:min(286px,calc(100vw - 36px));padding:12px 8px;border-radius:0;overflow-y:auto}.reference-v48>header{padding-left:65px;height:auto;min-height:76px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px}.reference-v48>header .brand b{font-size:14px}.reference-v48>header .brand small{display:none}.reference-v48>header .draft{display:none}.reference-v48>header .header-home{order:3;flex-basis:100%;margin:0;text-align:left}.reference-v48 .reference-account-v48 span{display:none}.reference-v48 .actions,.reference-v48.menu-pinned .actions{left:0}.reference-v48 .shell{padding-top:14px}}
/* Theme applies throughout the learning app, dialogs and static pages. Exported worksheets stay white. */
html[data-theme=dark]{color-scheme:dark;--ink:#e6eee9;--muted:#b6c6c1;--paper:#152322;--line:#425b55;--green:#73c9aa;--lime:#304e3f;--orange:#ffb27d;--white:#20332f}
html[data-theme=dark] body{background:#152322!important;color:#e6eee9!important}
html[data-theme=dark] :is(main,section,article,.platform-panel,.platform-actions,.kanji-card-v18,.study,.panel,.focus-content,.surface,.home-hero,.home-card,.print-controls,.example,.reading-list,.story-block,.meaning,.connect,.node,.chain-card,.result,.notice,.actions,.card-top,.srs-answer-v31,.review-session,dialog,.on45-dialog,.on45-top,.on45-card,.rad-card,.rule-card,.workspace,.selection,.stage,.sidebar,.book-letters){background-color:#20332f!important;color:#e6eee9!important;border-color:#425b55!important;background-image:none!important}
html[data-theme=dark] :is(h1,h2,h3,h4,p,label,small,summary,.muted,.eyebrow,.translation,.row-value,.row-name,.metric-label){color:inherit}
html[data-theme=dark] :is(input,select,textarea,button,.btn,.small-button,.filter){background:#29443c;color:#eef7f1;border-color:#557468}
html[data-theme=dark] :is(.primary,.btn-primary,.btn.primary){background:#21795d!important;color:#fff!important}
html[data-theme=dark] :is(.chip,.tag,.badge,.node.active,.topic.active,.metric){background:#304e3f!important;color:#c4eedb!important}
html[data-theme=dark] body>header{background:#1c302c!important;color:#e6eee9;border-color:#425b55}
html[data-theme=dark] .account-v48{--bg:#20332f;--text:#e6eee9;--muted:#b6c6c1;--border:#425b55;--line:#425b55;--page:#152322}
html[data-theme=dark] :is(.print-page-v46,.print-page-v46 article,.print-page-v46 header,.print-page-v46 small,.print-page-v46 footer,.worksheet-cell){background:white!important;color:#203b42!important}
@media print{html[data-theme=dark],html[data-theme=dark] body{color-scheme:light;background:white!important;color:#203b42!important}}

.reference-v48>header{position:sticky;top:0;z-index:60;background:var(--white,#fffefa)}
.account-v48 .text-link{border:0;background:transparent;padding:8px;cursor:pointer}.account-v48 .setting-row{min-width:0}
