/* Student-wide rhythm. No teacher selectors; scoring and navigation structure unchanged. */
body[data-student-ui]{--student-bg:#eef4fb;--student-card:var(--learn-surface,#fff);--student-ink:var(--learn-text,#193654);--student-muted:var(--learn-muted,#566f8a);--student-line:var(--learn-line,#dbe6f2);--student-radius:22px;--student-shadow:0 10px 32px #12365d08;background:var(--student-bg);color:var(--student-ink)}
body[data-student-ui] .student-shell{display:block}
body[data-student-ui] .student-shell .side{position:fixed;display:flex;flex-direction:column;inset:14px auto 14px 12px;width:94px;height:calc(100dvh - 28px);padding:15px 7px;border:1px solid #dbe6f2;border-radius:24px;background:#fafdfff5;color:#476582;overflow-y:auto;overflow-x:hidden;box-shadow:var(--student-shadow)}
body[data-student-ui] .student-shell .side .brand{padding:6px 0 18px;margin:0 0 4px;min-height:64px;display:grid;place-items:center;border:0}
body[data-student-ui] .student-shell .side :is(.brand-logo,.brand-name,.nav-grp-l,.who){display:none}
body[data-student-ui] .student-shell .side .nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:65px;margin:3px 0;padding:10px 3px;border-radius:14px;font-size:12px;line-height:1.4;font-weight:500;color:inherit;white-space:normal;transform:none}
body[data-student-ui] .student-shell .side .nav-item.on{color:#076adc;background:#e6f1ff;box-shadow:none}
body[data-student-ui] .student-shell .side .nav-item:hover{background:#ecf4fe;transform:none}
body[data-student-ui] .student-shell .side .nav-ico{margin:0;width:auto;height:21px;display:block}
body[data-student-ui] .student-shell .side .nav-ico svg{width:21px;height:21px}
body[data-student-ui] .student-shell .main{margin-left:118px;width:calc(100% - 118px);padding:28px 30px 40px;min-height:100dvh}
body[data-student-ui] .student-shell:not(.route-shell) .main:not(:has(.study-workspace,.study-completion)){background:radial-gradient(ellipse at 92% 0%,#dcecff80,transparent 45%),var(--student-bg)}
body[data-student-ui] .topbar{min-height:56px;margin-bottom:24px;gap:16px;align-items:center}
body[data-student-ui] .topbar h1{font-size:25px;line-height:1.4;font-weight:700;letter-spacing:.02em;margin:0}
body[data-student-ui] .crumb{font-size:12px;line-height:1.7;margin-top:5px}
body[data-student-ui] .tb-l{min-width:0;gap:14px}
body[data-student-ui] :is(.btn,.mini-tabs button,.filter-tabs button){min-height:42px;padding:10px 16px;font-size:13px;line-height:1.5;border-radius:11px;letter-spacing:0}
body[data-student-ui] .btn:hover{transform:none}
body[data-student-ui] :is(.btn,.side .nav-item):focus-visible{outline:3px solid #389dee;outline-offset:3px}
body[data-student-ui] :is(.card,.product-card,.home-board,.section-intro){border-radius:var(--student-radius);box-shadow:var(--student-shadow);border-color:var(--student-line)}
body[data-student-ui] .student-view>.card{padding:26px;margin-bottom:22px}
body[data-student-ui] .student-view :is(.page-title,h3){line-height:1.5}
body[data-student-ui] .student-view .page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:16px;font-size:17px}
body[data-student-ui] .student-view .muted{color:var(--student-muted);line-height:1.75}
body[data-student-ui] :is(.home-board,.section-intro) p{line-height:1.8}
body[data-student-ui] .student-view .stat-strip{border-radius:16px;gap:0;overflow:hidden;margin:0}
body[data-student-ui] .student-view .stat-strip .si{padding:18px 20px;line-height:1.5}
body[data-student-ui] .student-view .stat-strip .si>b{font-size:25px;line-height:1.3;display:block;margin-bottom:6px}
body[data-student-ui] .student-view .stat-strip .si>span{font-size:12px;color:#526d87}
body[data-student-ui] .student-view .stat-strip .si>b i{font-size:13px;font-weight:500}
body[data-student-ui] .home-hero{padding:26px 30px;min-height:220px;border-radius:22px 22px 0 0}
body[data-student-ui] .home-hero .hh-hi{font-size:25px;line-height:1.6}
body[data-student-ui] .home-hero .hh-sub{font-size:12px;line-height:1.8}
body[data-student-ui] .home-hero .hh-meta{font-size:12px;line-height:1.75;white-space:normal}
body[data-student-ui] .home-hero .hh-scan{display:none}
body[data-student-ui] .hb-body{padding:26px}
body[data-student-ui] .hb-grid{gap:24px}
body[data-student-ui] .t-sec{font-size:17px;line-height:1.6;margin-bottom:16px}
body[data-student-ui] .sec-note{font-size:12px;line-height:1.8;margin:12px 0;color:#59728d}
body[data-student-ui] .ov-chg{min-height:76px;padding:17px 20px;border-radius:16px}
body[data-student-ui] .hh-me{min-height:40px;display:inline-flex;align-items:center;padding:8px 12px}
body[data-student-ui] .mini-tabs{padding:4px;border-radius:12px}
body[data-student-ui] .mini-tabs button{padding:8px 12px;min-height:36px;font-size:12px}
body[data-student-ui] .hb-col{min-width:0}
.student-page-heading{display:flex;align-items:center;gap:16px;padding:24px 26px;background:linear-gradient(115deg,#fff,#f5faff);border:1px solid var(--student-line);border-radius:22px;margin-bottom:22px}
.student-page-icon{width:50px;height:50px;display:grid;place-items:center;flex:none;border-radius:15px;background:#e9f3ff;color:#0876df}
.student-page-heading h2{font-size:22px;line-height:1.5;margin:0 0 6px}.student-page-heading p{margin:0;font-size:13px;line-height:1.75;color:var(--student-muted)}
.student-heading-action{margin-left:auto;flex-shrink:0}.student-filter-card{margin-bottom:22px}.student-filter-card .filter-panel{margin:0;padding:20px 24px;border-radius:18px;gap:20px}
.student-filter-count{font-size:13px;color:var(--student-muted);padding-bottom:11px;white-space:nowrap}
body[data-student-ui] .filter-panel input,body[data-student-ui] .filter-panel select{font-size:14px;line-height:1.5;min-height:44px}
.student-question-list{display:grid;gap:20px}.student-question-list .wrong-question{margin:0;padding:26px}.student-question-list .quiz-stem{font-size:17px;line-height:1.9;margin:20px 0}
.student-question-list .wrong-answer{border-radius:13px;padding:16px 18px;background:#f4f8fd;margin:0;line-height:1.85;font-size:15px}
.student-question-list .wrong-answer>span{display:block;font-size:12px;color:var(--student-muted);margin-bottom:8px}.student-question-list .quiz-actions{justify-content:flex-end;margin-top:20px;padding-top:18px}
.student-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:46px 26px;background:linear-gradient(135deg,#fff,#f7fbff);border:1px solid var(--student-line);border-radius:22px;text-align:center;min-height:270px}
.student-empty>span{width:64px;height:64px;border-radius:20px;display:grid;place-items:center;background:#eaf4ff;color:#3786cf;margin-bottom:18px}.student-empty h3{font-size:18px;line-height:1.5;margin:0 0 10px}.student-empty p{font-size:13px;line-height:1.8;color:var(--student-muted);margin:0 0 22px}
body[data-student-ui] .feedback-list{gap:20px}.feedback-list>.empty-state{grid-column:1/-1}body[data-student-ui] .feedback-card{padding:24px;margin:0}
body[data-student-ui] .metric-cards article{padding:22px;border-radius:18px}body[data-student-ui] .metric-cards strong{line-height:1.4}
body[data-student-ui] .filter-tabs{margin:20px 0;gap:10px}
body[data-student-ui] .profile-identity{gap:20px;align-items:center}body[data-student-ui] .profile-identity h2{margin:0 0 6px;line-height:1.5}body[data-student-ui] .profile-identity p{margin:0 0 10px;line-height:1.75}
body[data-student-ui] .profile-identity .muted{color:#c1dcf5}
body[data-student-ui] .profile-actions{gap:10px;display:flex;flex-wrap:wrap}.student-profile-intro{padding:18px 24px!important}.student-profile-intro .section-emblem{width:44px;height:44px;border-radius:13px}.student-profile-intro h2{font-size:19px;margin:0 0 5px}.student-profile-intro .section-eyebrow{display:none}
body[data-student-ui] .achievement-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body[data-student-ui] .achievement{padding:24px 14px;min-height:166px;gap:8px;border-radius:16px;line-height:1.6}
body[data-student-ui] .achievement b{font-size:14px}body[data-student-ui] .achievement small{font-size:12px;line-height:1.75;color:#59728d}body[data-student-ui] .achievement>span{font-size:11px}
body[data-student-ui] .subject-progress-row{gap:16px;padding:20px 0}body[data-student-ui] .subject-progress-row p{line-height:1.8;margin:6px 0 12px}
body[data-student-ui] .rank-hero{min-height:160px}.rank-hero h2{line-height:1.5}.rank-hero p{margin:8px 0 0}
body[data-student-ui] .podium{padding:24px 16px;gap:12px;border-radius:18px}.podium b{line-height:1.6;overflow-wrap:anywhere}body[data-student-ui] .rank-podium{margin:24px 0}
body[data-student-ui] .map-hero{border-radius:22px;padding:26px}.map-hero .mh-s,.map-hero .mh-nums{line-height:1.8}
body[data-student-ui] #modal{border-radius:22px;padding:28px;max-width:680px}body[data-student-ui] #modal .product-form{gap:20px}
body[data-student-ui] #modal h2{line-height:1.5;margin-bottom:22px}body[data-student-ui] #modal label{gap:9px;line-height:1.5}
body[data-student-ui] #modal :is(input,textarea){font-size:16px;line-height:1.6;border-radius:12px;padding:12px 14px}body[data-student-ui] .modal-close{width:40px;height:40px;min-height:40px}
body[data-student-ui][data-learning-theme=dark] .student-shell .side{background:#07172beF;border-color:#305273;color:#c6d9ef}
body[data-student-ui][data-learning-theme=dark] .student-shell .side .nav-item.on,body[data-student-ui][data-learning-theme=dark] .student-shell .side .nav-item:hover{background:#173653;color:#b6dbff}
body[data-student-ui] .study-ai .ai-message{font-size:14px;line-height:1.85}.study-ai .ai-message small{line-height:1.7}.study-ai .ai-compose textarea{margin-top:0}
body[data-student-ui] .core-ai-capabilities small{font-size:12px;line-height:1.7}body[data-student-ui] .core-lock-card p{font-size:13px;line-height:1.85}
body[data-student-ui] .study-question-summary .quiz-head{align-items:start}.study-workspace .study-selection-tip{line-height:1.8}
body[data-student-ui] .study-feedback :is(h3,p,small){overflow-wrap:anywhere}
body[data-student-ui] .ink-workspace .ink-toolbar button{min-height:44px}
body[data-student-ui] .study-ai .study-followups button{min-height:40px;line-height:1.6;font-size:12px}
body[data-student-ui] .study-standard,body[data-student-ui] .analysis{overflow-wrap:anywhere}
body[data-student-ui] .katex-display{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:5px 0}
@media(max-width:1250px){body[data-student-ui] .home-hero{flex-wrap:wrap;gap:24px}body[data-student-ui] .home-hero .hh-div{display:none}body[data-student-ui] .home-hero .hh-today{width:100%;max-width:none}body[data-student-ui] .hb-grid{grid-template-columns:minmax(0,1fr)}body[data-student-ui] .hb-col+.hb-col{border-left:0;border-top:1px solid var(--student-line);padding-top:22px}}
@media(max-width:1000px){body[data-student-ui] .student-shell .side{display:none}body[data-student-ui] .student-shell .main{margin:0;width:100%;padding:22px 22px 110px}body[data-student-ui] .mobile-nav{display:flex;position:fixed;inset:auto 12px 12px;z-index:95;gap:4px;justify-content:space-around;overflow-x:auto;padding:6px;border:1px solid var(--student-line);border-radius:20px;background:var(--student-card);box-shadow:0 6px 30px #0e27452b}body[data-student-ui] .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:transparent;color:var(--student-muted);border:0;min-width:70px;min-height:62px;padding:8px 6px;font-size:11px;line-height:1.4;white-space:nowrap;border-radius:14px}body[data-student-ui] .mobile-nav button.on{background:var(--learn-selected,#e6f1ff);color:var(--learn-accent,#076adc)}body[data-student-ui] .mobile-nav svg{width:20px;height:20px}body[data-student-ui] .mobile-nav>button:last-child{display:none}body[data-student-ui] .achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-student-ui] .student-page-heading{flex-wrap:wrap;padding:22px}.student-heading-action{margin-left:0;width:100%}.student-page-heading h2{font-size:21px}body[data-student-ui] .student-view>.card{padding:22px}body[data-student-ui] .profile-actions{margin-left:0!important}body[data-student-ui] .feedback-list{grid-template-columns:minmax(0,1fr)}body[data-student-ui] .topbar .tb-l{flex-basis:auto}body[data-student-ui] .topbar{flex-wrap:wrap}.student-filter-count{width:100%;padding-bottom:0}}
@media(prefers-reduced-motion:reduce){body[data-student-ui] *,body[data-student-ui] *:before,body[data-student-ui] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Route uses the same navigation geometry against its existing deep-space scene. */
body[data-student-view=route] .student-shell .side{background:#07172bef;border-color:#305273;color:#c6d9ef}
body[data-student-view=route] .student-shell .side .nav-item.on,body[data-student-view=route] .student-shell .side .nav-item:hover{background:#173653;color:#b6dbff}
body[data-student-view=route] .mobile-nav{background:#0b2037;color:#c6d9ef;border-color:#305273}
body[data-student-view=route] .mobile-nav button{color:#c6d9ef}body[data-student-view=route] .mobile-nav button.on{background:#173653;color:#b6dbff}
body[data-student-ui] .tree-hd:focus-visible{outline:3px solid #389dee;outline-offset:3px}
body[data-student-ui] .tree-node .name{line-height:1.6}
body[data-student-ui] #notice{line-height:1.7}
@media(max-width:1000px){body[data-student-ui] #notice{bottom:100px}}
body[data-student-ui][data-learning-theme]{--student-bg:var(--learn-bg);background:var(--learn-bg)}
body[data-student-ui] .ink-workspace .ink-toolbar button{font-size:12px}
body[data-student-ui] .ink-heading p{font-size:12px;line-height:1.8}
body[data-student-ui] .study-ai :is(#ai-status,.study-followups>span){font-size:11px;line-height:1.7}
body[data-student-ui] .study-my-answer{margin-top:0;padding-top:0;border-top:0}

body[data-student-ui] .study-ai.has-conversation .assistant-intro{display:none}
body[data-student-ui] .study-ai.has-conversation .ai-messages{min-height:270px}
body[data-student-ui] .study-feedback{align-items:flex-start}
body[data-student-ui] .study-feedback>span{margin-top:3px;flex:none}
body[data-student-ui][data-learning-theme=light] .topbar .crumb{color:#284b70;text-shadow:0 1px 5px #ffffffed}

/* Knowledge map: content-sized nodes, without the legacy fixed-coordinate canvas. */
body[data-student-view=map] .map-hero{padding:26px 30px;gap:18px;background:linear-gradient(110deg,#092847ee,#135b9dcc),url('/assets/route-space.png') center 42%/cover;box-shadow:0 12px 30px #12365d12}
body[data-student-view=map] .map-hero .mh-t{font-size:23px;line-height:1.5;letter-spacing:0}
body[data-student-view=map] .map-hero .mh-ring{flex:none}
body[data-student-view=map] .map-hero .mh-bar{margin:0}
body[data-student-view=map] .map-legend{box-shadow:none;padding:14px 18px;gap:24px;border-radius:14px;color:#59718a}
body[data-student-view=map] .tree-ch{border:1px solid #dce7f1;border-radius:20px;box-shadow:0 4px 20px #193c6006;margin-bottom:18px;animation:none;background:#fff}
body[data-student-view=map] .tree-ch:hover{border-color:#b8d3ed;box-shadow:0 6px 24px #193c600a}
body[data-student-view=map] .tree-hd{padding:20px 24px;gap:16px;background:#fff;border-color:#edf2f8}
body[data-student-view=map] .tree-hd .lv{width:46px;height:46px;border-radius:13px;background:#edf5ff;color:#2872b9;box-shadow:none;font-size:16px;padding:0 0 8px}
body[data-student-view=map] .tree-hd .lv em{bottom:6px;color:#6f8dad}
body[data-student-view=map] .tree-hd .ti b{font-size:17px;line-height:1.6;letter-spacing:0;color:#193654}
body[data-student-view=map] .tree-hd .ti i{display:block;margin-top:3px;font-size:12px;line-height:1.7;color:#6b8299}
body[data-student-view=map] .tree-hd .pb{width:140px}
body[data-student-view=map] .tree-hd .pb .lb{font-size:12px;line-height:1.6;margin-top:6px}
body[data-student-view=map] .tree-hd .fold{width:32px;height:32px;background:#f0f5fb;color:#59718a}
body[data-student-view=map] .tree-bd{height:auto!important;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px;padding:0 24px 24px;background:#fff;overflow:visible}
body[data-student-view=map] :is(.tree-svg,.tree-tools){display:none}
body[data-student-view=map] .mnode{position:relative;left:auto!important;top:auto!important;transform:none;width:auto;min-width:0;min-height:140px;display:grid;grid-template-columns:76px minmax(0,1fr) 20px;grid-template-rows:auto auto auto;column-gap:22px;row-gap:5px;align-content:center;text-align:left;padding:24px;border:1px solid #e0eaf5;border-radius:16px;background:linear-gradient(115deg,#f4f8ff,#fbfdff);transition:border-color .18s,box-shadow .18s}
body[data-student-view=map] .mnode:hover{border-color:#83b9ec;box-shadow:0 4px 18px #2868a410}
body[data-student-view=map] .mnode:focus-visible{outline:3px solid #389dee;outline-offset:3px}
body[data-student-view=map] .mnode:after{content:'→';grid-column:3;grid-row:1/4;align-self:center;color:#4689c8;font-size:21px}
body[data-student-view=map] .mnode .ball{grid-column:1;grid-row:1/4;align-self:center;width:68px;height:68px;margin:0;border:1px solid #d8e7f6;background:linear-gradient(145deg,#f9fcff,#e9f2fc);color:#4e88c0;font-size:17px;font-weight:650;box-shadow:none;animation:none;transform:none}
body[data-student-view=map] .mnode.doing .ball{background:linear-gradient(145deg,#247ed6,#1755a1);border-color:#347cc1;color:white}
body[data-student-view=map] .mnode.weak .ball{background:#fceeee;border-color:#f4d8d8;color:#bd5760}
body[data-student-view=map] .mnode.done .ball{background:#fff5dd;border-color:#efdba5;color:#a97821}
body[data-student-view=map] .mnode .ball:before,body[data-student-view=map] .mnode .ball:after{display:none}
body[data-student-view=map] .mnode .rv{width:78px;height:78px;left:-6px;top:-6px}
body[data-student-view=map] .mnode .nm{grid-column:2;grid-row:1;display:block;overflow:visible;white-space:normal;overflow-wrap:anywhere;margin:0;font-size:17px;line-height:1.65;font-weight:600;letter-spacing:0;color:#193654}
body[data-student-view=map] .mnode .sb{grid-column:2;grid-row:2;margin:0;font-size:13px;line-height:1.7;color:#6b8198}
body[data-student-view=map] .mnode .st{grid-column:2;grid-row:3;margin:0;height:auto;line-height:1.5;font-size:13px;letter-spacing:3px;color:#b18a3c}
body[data-student-view=map] .mnode.todo .st{color:#aabdd0}
body[data-student-view=map] .mnode.cur .tag{right:14px;top:10px;padding:2px 8px;background:#e7f1ff;color:#2672b9;box-shadow:none;font-size:10px;line-height:1.5}
@media(max-width:1000px){body[data-student-view=map] .tree-hd{padding:18px;gap:12px}body[data-student-view=map] .tree-hd .pb{display:none}body[data-student-view=map] .tree-bd{padding:0 18px 18px;grid-template-columns:1fr}body[data-student-view=map] .mnode{padding:22px;column-gap:18px}body[data-student-view=map] .map-hero{padding:24px}body[data-student-view=map] .tree-hd .ti b{font-size:16px}}
/* Render whole math expressions before visually shortening recent-question previews. */
body[data-student-ui] .home-recent-stem{display:block;white-space:normal;font-size:13px;line-height:1.9;margin:5px 0 0;max-height:110px;overflow:auto;color:#607b96}
body[data-student-view=rank] .rank-podium{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}
body[data-student-view=rank] .rank-podium .podium{flex:1 1 220px;max-width:340px}

/* Keep the input visible while conversation and quotation share the remaining height. */
body[data-student-ui] .study-ai{min-height:0;overflow:auto}
body[data-student-ui] .study-ai .ai-messages,
body[data-student-ui] .study-ai.has-conversation .ai-messages{min-height:60px;flex:1 1 0}
body[data-student-ui] .study-ai .quote-chip{max-height:min(145px,20dvh)}
body[data-student-ui] .study-ai .ai-compose{flex:0 0 auto}
/* The 244px artwork extends below its 160px sphere: reserve that space for labels. */
body[data-student-ui] .orbit-node .orbit-sphere{margin-bottom:64px}
body[data-student-ui] .orbit-track{height:620px!important}
body[data-student-ui] .route-bridge>.space-callout{display:none}
#modal:has(.route-level-dialog){width:min(520px,calc(100vw - 32px));padding:28px;background:radial-gradient(ellipse at top,#173f69,#081a31 70%);border:1px solid #6dbce36b;border-radius:24px;color:#e5f4ff;box-shadow:0 24px 90px #020d22aa}
.route-level-dialog{text-align:center;padding:0 12px 12px}
.route-dialog-art .planet-model{width:180px;height:180px;margin:0 auto 8px}
.route-dialog-eyebrow{font-size:13px;color:#8fdaff;letter-spacing:1px}
.route-level-dialog h2{font-size:25px;line-height:1.5;margin:12px 0}
.route-level-dialog p{color:#b7cbe1;line-height:1.8;font-size:14px}
.route-dialog-actions{display:grid;gap:12px;margin-top:24px}
.route-dialog-actions .btn{min-height:48px;border-radius:14px}
#modal:has(.route-level-dialog) .modal-close{color:#c9e8ff;background:#193a58;border:1px solid #6dbce34d}
