/* Shared navigation, with distinct parent and child presentation. */
body[data-ui-role="parent"]{--ink:#203b36;--muted:#536961;--line:#d7e2dc;--font-title:var(--font-he);background:#f3f6f3;font-size:17px;line-height:1.65}
body[data-ui-role="parent"] .bg-frame,body[data-ui-role="parent"] .glass-shapes{display:none}
body[data-ui-role="parent"] #app{max-width:1120px}
body[data-ui-role="parent"] #hud{background:#fff;border:1px solid #d7e2dc;border-radius:16px;box-shadow:0 2px 12px #173f3208;padding:10px 16px;margin-bottom:24px}
.hud-top>#hud-who{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:min(240px,30vw);width:auto;min-height:44px;padding:5px 10px;color:#25483e;background:#f3f7f4;border:1px solid #d1ded6;border-radius:10px;font:700 15px/1.3 var(--font-he)}
.hud-top>#hud-who #hud-av{flex:none}
.hud-top>#hud-who #hud-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-ui-role="parent"] .stage-card{background:#fff;border:1px solid #d7e2dc;border-radius:18px;box-shadow:0 6px 24px #173f3207;padding:clamp(20px,4vw,40px);text-align:right}
body[data-ui-role="parent"] h1{font:800 clamp(26px,4vw,34px)/1.3 var(--font-he);letter-spacing:0;text-shadow:none;margin-block:0 16px}
body[data-ui-role="parent"] h2{font:700 22px/1.4 var(--font-he);text-shadow:none}
body[data-ui-role="parent"] h2::after{display:none}
body[data-ui-role="parent"] .btn{background:#246453;color:#fff;border:1px solid #246453;border-radius:10px;box-shadow:none;text-shadow:none;min-height:46px;padding:10px 20px;font:700 17px/1.4 var(--font-he);white-space:normal;transition:background .15s}
body[data-ui-role="parent"] .btn:is(.ghost,.nav,.sky,.sun,.coral){background:#fff;color:#25483e;border-color:#b6cbc1;box-shadow:none}
body[data-ui-role="parent"] .btn:hover:not(:disabled){background:#194d3e;color:#fff;filter:none}
body[data-ui-role="parent"] .btn:active{transform:none;box-shadow:none}
body[data-ui-role="parent"] .btn:disabled{background:#e7ede9;color:#56695f;border-color:#d1dcd5;opacity:1;box-shadow:none;cursor:not-allowed}
body[data-ui-role="parent"] :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select){border-radius:10px;box-shadow:none;border:1px solid #acbfb3;background:#fff;color:#203b36}
body[data-ui-role="parent"] :is(input,select,textarea):disabled{background:#f1f4f1;color:#607167}
body[data-ui-role="parent"] :is(button,summary,input,select,textarea):focus-visible{outline:3px solid #13799a;outline-offset:3px}
.app-menu-panel{width:min(290px,calc(100vw - 32px));max-height:calc(100dvh - 100px);overscroll-behavior:contain;background:#fff;box-shadow:0 12px 32px #183e3320;border-color:#c9d8d0;border-radius:14px;padding:12px}
.app-menu-panel .nav-group{border-bottom:1px solid #e3ebe5}
.app-menu-panel .nav-group-items{display:grid;gap:2px;padding:0 0 6px 8px}
.app-menu-panel .nav-group>summary,.app-menu-panel .nav-account>summary{justify-content:flex-start;border:0;background:transparent;border-radius:8px;color:#25483e;font:700 16px var(--font-he);padding:10px 12px;min-height:44px}
.app-menu-panel .nav-group>summary::before,.app-menu-panel .nav-account>summary::before{content:'+';width:16px;text-align:center}
.app-menu-panel .nav-group[open]>summary::before,.app-menu-panel .nav-account[open]>summary::before{content:'−'}
.app-menu-panel .menu-row{font-size:16px;min-height:44px;border-radius:8px;line-height:1.4}
.app-menu-panel .menu-row:hover{background:#eef5f0}
.app-menu-panel .nav-account{border-top:1px solid #d7e2dc;margin-top:8px;padding-top:6px}
body[data-ui-role="parent"] .app-menu-panel #hud-cloud:not([data-network="offline"]):not([data-network="wait"]){display:none}
body[data-ui-role="parent"] .parent-home{max-width:none}
body[data-ui-role="parent"] .parent-home header{padding-bottom:20px;margin-bottom:24px;border-bottom:1px solid #e3ebe5}
body[data-ui-role="parent"] .parent-eyebrow{font-size:14px;color:#536961;margin:0 0 8px}
body[data-ui-role="parent"] .parent-home header>p:last-child{margin-bottom:0}
body[data-ui-role="parent"] .parent-subject-grid{gap:16px}
body[data-ui-role="parent"] .parent-subject-card{min-height:180px;gap:12px;padding:24px;border:1px solid #c5dacf;border-radius:14px;background:#f5faf7;color:#234d40;position:relative;box-shadow:none}
body[data-ui-role="parent"] .parent-subject-card.math{background:#f3f7fc;color:#28476c;border-color:#c9d7e8}
body[data-ui-role="parent"] .parent-subject-card:hover{border-color:currentColor;background:#edf5f1}
body[data-ui-role="parent"] .parent-subject-card.math:hover{background:#eaf1fb}
body[data-ui-role="parent"] .parent-subject-card strong{font-size:26px;line-height:1.2}
body[data-ui-role="parent"] .parent-subject-card strong::after{content:'←';margin-inline-start:12px;font-weight:400}
body[data-ui-role="parent"] .parent-subject-card span{font-size:16px;line-height:1.5}
body[data-ui-role="parent"] .parent-subject-card .parent-status{font-size:14px;color:#536961}
.parent-utilities{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.parent-utilities .menu-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;color:#25483e;border:1px solid #d1ded6;border-radius:10px;min-height:52px;font:700 16px/1.4 var(--font-he);padding:14px 18px;text-align:right;cursor:pointer}
.parent-utilities .menu-row::after{content:'←';font-weight:400}
.parent-utilities .menu-row:hover{background:#f3f7f4}
body[data-ui-role="parent"] .parent-account{border-top:1px solid #e3ebe5;margin-top:24px;padding-top:14px}
body[data-ui-role="parent"] .parent-account>summary{font-size:16px;min-height:44px;padding:10px 0;color:#536961}
body[data-ui-role="parent"] .parent-menu-list .menu-row{font-size:16px;line-height:1.4;border-bottom:0;border-radius:8px;padding:12px}
body[data-ui-role="parent"] .parent-primary{background:#f4f8f5;border:1px solid #d4e2d9;border-radius:14px;box-shadow:none}
body[data-ui-role="parent"] .parent-shortcuts{gap:12px}
body[data-ui-role="parent"] :is(.draftcard,.setpage .setsec,.pnote){background:#f6f9f6;border:1px solid #d7e2dc;border-radius:12px;box-shadow:none}
body[data-ui-role="parent"] .draftcard.approved{background:#f1f8f3;border-color:#aecdb9}
body[data-ui-role="parent"] .draftcard.archived{background:#f2f4f2;opacity:1}
body[data-ui-role="parent"] .pnote.warn{background:#fff8e7;border-color:#c4a34e}
body[data-ui-role="parent"] .approvebox{border-radius:8px;border:1px solid #bfd4c7;background:#f4faf6;font-size:16px;min-height:44px}
body[data-ui-role="child"]{background:linear-gradient(160deg,#f1fbf8,#f6f4ff 65%,#fff7e7)}
body[data-ui-role="child"] .glass-shapes{display:none}
body[data-ui-role="child"] #hud{border-radius:20px;background:#fff;border:1px solid #cbded4;box-shadow:0 4px 0 #dcebe4}
body[data-ui-role="child"] .stage-card{border-radius:20px;background:#fffdf8;border:1px solid #dddcca;box-shadow:0 5px 0 #e5e4d8}
body[data-ui-role="child"] #stage>.stage-card .btn{border-radius:14px;background:#f5cd60;color:#342709;box-shadow:0 4px 0 #b9902d;text-shadow:none}
body[data-ui-role="child"] #stage>.stage-card .btn:is(.ghost,.nav,.sky,.sun,.coral){background:#fff;color:#315f53;border:1px solid #bed8cb;box-shadow:0 3px 0 #d6e5dd}
body[data-ui-role="child"] #stage>.stage-card .btn:disabled{background:#e8ece8;color:#59685e;border:1px solid #ced8d0;box-shadow:none;opacity:1}
body[data-ui-role="child"] .subjectcard{border-radius:22px;box-shadow:0 5px 0 #d8e7df}
body[data-ui-role="child"] .app-sections button{border-radius:12px;min-height:44px}
@media(max-width:600px){body[data-ui-role="parent"] #hud{padding:8px 10px;margin-bottom:16px}.parent-utilities{grid-template-columns:1fr;gap:10px}body[data-ui-role="parent"] .parent-subject-grid{gap:12px}body[data-ui-role="parent"] .parent-subject-card{min-height:140px;padding:20px}body[data-ui-role="parent"] .stage-card{padding:20px 16px}body[data-ui-role="parent"] #hud .logo{font-size:15px}.app-menu summary span{display:inline}.app-menu-panel{max-width:calc(100vw - 32px)}.hud-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,145px);grid-template-areas:'logo who' 'progress menu';gap:6px}.hud-top .logo{grid-area:logo;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hud-top .hud-progress{grid-area:progress;min-width:0;margin-inline-start:0}.hud-top .app-menu{grid-area:menu;justify-self:end}.hud-top>#hud-who{grid-area:who;max-width:100%;justify-self:end}}
@media(max-width:600px){#hud .app-menu{position:static}#hud .app-menu-panel,#hud.parent-mode .app-menu-panel{inset-inline:8px;top:calc(100% + 8px);width:auto;max-width:none;max-height:calc(100dvh - 160px)}}
@media(prefers-reduced-motion:reduce){body[data-ui-role] *,body[data-ui-role] *::before,body[data-ui-role] *::after{scroll-behavior:auto!important}.parent-subject-card,.btn{transition:none!important}}
