/* Approved Solid Free presentation. Role gates, media and data remain in their existing modules. */
body[data-portal=student]{--ink:var(--bloom-ink);--muted:var(--bloom-muted);--line:var(--bloom-line);--paper:var(--bloom-background);--accent:var(--bloom-primary);--lavender:var(--bloom-tint);font-family:var(--bloom-font);background:var(--bloom-surface);color:var(--bloom-ink);letter-spacing:normal}
body[data-portal=student] :is(button,input,select,textarea){font-family:var(--bloom-font)}
body[data-portal=student] ::selection{background:var(--bloom-selection);color:var(--bloom-ink)}
body[data-portal=student] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--bloom-primary);outline-offset:3px}
body[data-portal=student] :is(input,textarea){caret-color:var(--bloom-primary)}
body[data-portal=student] h1{font-size:30px;line-height:1.35;letter-spacing:-.025em;font-weight:700}
body[data-portal=student] h2{letter-spacing:-.02em;font-weight:700}
body[data-portal=student] p{line-height:1.8;color:var(--bloom-muted)}
body[data-portal=student] .eyebrow{display:none}
body[data-portal=student] :is(button,.primary){border-radius:10px;min-height:44px;font-size:14px;letter-spacing:normal}
body[data-portal=student] :is(.primary,button.primary){background:var(--bloom-primary);color:var(--bloom-surface)}
body[data-portal=student] .primary:hover:not(:disabled){background:var(--bloom-primary-hover);color:var(--bloom-surface)}
body[data-portal=student] :is(.secondary,.text-button){color:var(--bloom-secondary);background:var(--bloom-surface);border-color:var(--bloom-line)}
body[data-portal=student] .danger{background:#b42332;color:var(--bloom-surface)}
body[data-portal=student] :is(input:not([type=checkbox]):not([type=range]),select,textarea){border:1px solid var(--bloom-line);background:var(--bloom-surface);color:var(--bloom-ink);border-radius:8px;min-height:44px;max-width:100%}
body[data-portal=student] .card{border-radius:14px;border-color:var(--bloom-line);box-shadow:none;background:var(--bloom-surface)}
body.solid-student .portal{display:block;min-height:100svh}
body.solid-student .rail{position:relative;top:auto;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:24px;height:90px;max-width:1280px;padding:18px 34px;margin:auto;background:var(--bloom-surface);border:0;overflow:visible;z-index:40}
body.solid-student .rail .brand{font-family:var(--bloom-font);font-style:normal;font-size:30px;font-weight:700;letter-spacing:-.035em;color:var(--bloom-ink);white-space:nowrap;gap:0}
body.solid-student .rail .brand>span{display:inline;font-family:inherit;font-size:inherit;font-style:normal;font-weight:inherit;letter-spacing:inherit;color:var(--bloom-primary)}
body.solid-student :is(.rail-label,.rail-note,.navigation-toggle){display:none}
body.solid-student .rail nav{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;width:auto;margin:0;gap:20px;overflow:visible}
body.solid-student .rail nav>button{background:transparent;color:var(--bloom-muted);border:0;border-radius:0;min-height:48px;padding:10px 4px;gap:6px;white-space:nowrap}
body.solid-student .rail nav>button>svg{display:none}
body.solid-student .rail nav>button.selected{background:transparent;color:var(--bloom-primary);font-weight:700;box-shadow:inset 0 -3px 0 currentColor}
body.solid-student .rail nav>button[aria-current=page] .navigation-text{font-weight:700}
body.solid-student .rail nav>button .navigation-text{font-size:14px;line-height:1.5;display:block}
/* Top bar actions: notification bell and user menu, 48px targets. */
body.solid-student .student-rail-actions{display:flex;align-items:center;gap:6px;flex:none}
body.solid-student :is(.student-bell,.student-user-menu>summary){position:relative;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;min-height:48px;padding:0;border:0;border-radius:24px;background:transparent;color:var(--bloom-secondary);cursor:pointer}
body.solid-student :is(.student-bell,.student-user-menu>summary):hover{background:var(--bloom-tint)}
body.solid-student :is(.student-bell,.student-user-menu>summary) svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.solid-student .student-bell.selected{background:var(--bloom-tint);color:var(--bloom-primary)}
body.solid-student .student-bell .bell-count{position:absolute;top:5px;right:3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bloom-primary);color:var(--bloom-surface);font-size:11px;font-weight:700;line-height:18px;text-align:center}
body.solid-student .student-bell .bell-count[hidden]{display:none}
body.solid-student .student-user-menu{position:relative}
body.solid-student .student-user-menu>summary{list-style:none}
body.solid-student .student-user-menu>summary::-webkit-details-marker{display:none}
body.solid-student .solid-menu-panel{position:absolute;top:54px;right:0;width:280px;display:grid;gap:4px;padding:16px;background:var(--bloom-surface);border:1px solid var(--bloom-line);border-radius:14px;max-height:min(650px,80svh);overflow:auto;z-index:55}
body.solid-student .student-user-menu:not([open]) .solid-menu-panel{display:none}
/* Links to secondary destinations inside a tab. */
body.solid-student .tab-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
body.solid-student .tab-links>button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 16px;border:1px solid var(--bloom-line);border-radius:22px;background:var(--bloom-surface);color:var(--bloom-secondary);font-size:14px;font-weight:600}
body.solid-student .tab-links>button:hover{background:var(--bloom-tint)}
body.solid-student .tab-links>button>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.solid-student .lesson-choices{margin-bottom:32px}
/* Lessons tab: split control, today's recommendation, two choices, goals row. Text sizes in rem so zoom grows the boxes. */
body.solid-student [data-page=lessons] .lessons-retired{display:none!important}
body.solid-student .lessons-split{display:flex;gap:4px;margin:0 0 24px;padding:4px;border-radius:26px;background:var(--bloom-tint)}
body.solid-student .lessons-split>[role=tab]{flex:1 1 0;min-width:0;min-height:48px;padding:10px 12px;border:0;border-radius:22px;background:transparent;color:var(--bloom-secondary);font-size:1rem;font-weight:500;line-height:1.3;white-space:normal;overflow-wrap:anywhere;box-shadow:none;transform:none}
body.solid-student .lessons-split>[role=tab][aria-selected=true]{background:var(--bloom-surface);color:var(--bloom-ink);font-weight:700;box-shadow:inset 0 -3px 0 var(--bloom-primary)}
body.solid-student .lessons-panel{display:grid;gap:24px;min-width:0}
body.solid-student .lessons-panel[hidden]{display:none}
body.solid-student .lessons-recommend{display:grid;gap:8px;min-width:0;padding:24px;border-radius:24px;background:var(--bloom-primary);color:var(--bloom-surface)}
body.solid-student .lessons-recommend :is(h2,p){margin:0;color:var(--bloom-surface);overflow-wrap:anywhere}
body.solid-student .lessons-recommend-eyebrow{font-size:.875rem;font-weight:600;letter-spacing:0}
body.solid-student .lessons-recommend-balance{justify-self:start;padding:4px 12px;border:1px solid var(--bloom-surface);border-radius:16px;font-size:.875rem;font-weight:600}
body.solid-student .lessons-recommend-title{font-size:1.5rem;font-weight:700;line-height:1.3}
body.solid-student .lessons-recommend-topic{font-size:1rem;line-height:1.45}
body.solid-student .lessons-recommend-action{justify-self:stretch;min-height:52px;margin-top:8px;padding:12px 20px;border:0;border-radius:16px;background:var(--bloom-surface);color:var(--bloom-primary);font-size:1rem;font-weight:700;line-height:1.35;white-space:normal;box-shadow:none;transform:none}
body.solid-student .lessons-recommend-action:hover{background:var(--bloom-tint)}
body.solid-student .lessons-recommend-action:focus-visible{outline-color:var(--bloom-surface)}
body.solid-student .lessons-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.solid-student .lessons-choice{display:flex;align-items:center;gap:8px;min-width:0;min-height:88px;padding:16px;border:1px solid var(--bloom-line);border-radius:20px;background:var(--bloom-surface);color:var(--bloom-ink);text-align:left;white-space:normal;box-shadow:none;transform:none}
body.solid-student .lessons-choice:hover{background:var(--bloom-tint)}
body.solid-student .lessons-choice-text{display:grid;gap:4px;flex:1 1 auto;min-width:0}
body.solid-student .lessons-choice-title{font-size:1.0625rem;line-height:1.3;overflow-wrap:anywhere}
body.solid-student .lessons-choice-balance{color:var(--bloom-secondary);font-size:.875rem;line-height:1.4;overflow-wrap:anywhere}
body.solid-student .lessons-choice-chevron{flex:none;color:var(--bloom-secondary);font-size:1.25rem}
body.solid-student .lessons-goals{display:grid;gap:8px;min-width:0}
body.solid-student .lessons-goals-heading{margin:0;font-size:1.125rem}
body.solid-student .lessons-goals :is(button,select,summary){min-height:48px;box-sizing:border-box}
body.solid-student .lessons-panel .tab-links{margin:0}
body.solid-student .tab-links>button[hidden]{display:none}
@media (max-width:359.98px){body.solid-student .lessons-choice-grid{grid-template-columns:1fr}}
body.solid-student .solid-menu-panel .rail-user{display:flex;padding:8px 10px;border-bottom:1px solid var(--bloom-line);margin-bottom:4px}
body.solid-student .solid-menu-panel .role-links{display:flex;margin:4px 8px;font-size:13px}
body.solid-student .solid-menu-panel #logout{display:block;text-align:left;padding:10px 12px;color:var(--bloom-secondary);background:var(--bloom-surface);border:0}
body.solid-student .portal>main{padding:0 34px 36px;margin:auto;max-width:1280px;background:var(--bloom-background);border-radius:20px 20px 0 0;min-height:calc(100svh - 90px)}
body.solid-student .topbar{height:58px;margin-bottom:26px;border:0;color:var(--bloom-muted)}
body.solid-student .topbar .status-pill{display:none}
body.solid-student .topbar #today{font-size:12px}
body.solid-student .page-heading{margin-bottom:28px}
body.solid-student #homeAction{background:transparent;color:var(--bloom-primary);border:1px solid var(--bloom-line);font-size:13px}
body.solid-student .page-heading p{font-size:15px;max-width:66ch}
body.solid-student .student-home-grid{grid-template-columns:minmax(0,1fr) 290px;gap:28px}
body.solid-student .daily-learning{background:var(--bloom-tint);border:1px solid var(--bloom-line);border-radius:14px;padding:30px;margin-bottom:30px}
body.solid-student .daily-learning{display:flex;flex-direction:column}
body.solid-student .daily-heading{order:0}
body.solid-student .daily-intro{order:1}
body.solid-student .daily-footer{order:2}
body.solid-student .daily-progress{order:3;margin:25px 0 14px}
body.solid-student .daily-step-details{order:4}
body.solid-student .daily-privacy{order:5}
body.solid-student .daily-heading h2{font-size:28px;letter-spacing:-.025em;margin:0 0 14px}
body.solid-student .daily-count{background:var(--bloom-surface);color:var(--bloom-secondary);font-size:12px}
body.solid-student .daily-intro{font-size:15px;color:var(--bloom-secondary)}
body.solid-student .daily-footer>.primary{border-radius:26px;padding:14px 24px;background:var(--bloom-primary)}
body.solid-student .daily-progress{border-color:var(--bloom-line)}
body.solid-student .daily-progress li{border:0;padding-top:0;gap:9px}
body.solid-student .daily-progress li>span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:12px;background:var(--bloom-line);color:var(--bloom-secondary)}
body.solid-student .daily-progress li :is(strong,span){color:var(--bloom-secondary)}
body.solid-student .daily-progress li.done span{color:var(--bloom-surface);background:#26734e}
body.solid-student .daily-progress li.current span{background:var(--bloom-primary);color:var(--bloom-surface)}
body.solid-student .daily-step{border-color:var(--bloom-line)}
body.solid-student .daily-step p,body.solid-student .daily-privacy{color:var(--bloom-secondary)}
body.solid-student .daily-state{color:var(--bloom-secondary)}
body.solid-student .daily-privacy p{font-size:13px}
body.solid-student .student-context-column>.card{padding:24px}
body.solid-student .student-context-column .learning-card{background:var(--bloom-surface)}
body.solid-student .student-context-column .level-badge{background:var(--bloom-tint);color:var(--bloom-primary)}
body.solid-student .student-context-column :is(p,.helper){font-size:14px}
body.solid-student .mode-grid{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
body.solid-student .mode-card{padding:22px;border-radius:14px;border-color:var(--bloom-line);background:var(--bloom-surface);min-height:190px}
body.solid-student .mode-card:hover:not(:disabled){border-color:var(--bloom-accent-soft);background:var(--bloom-tint)}
body.solid-student .mode-card .mode-icon{color:var(--bloom-primary)!important}
body.solid-student .mode-card .mode-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.solid-student .mode-action{color:var(--bloom-primary)}
body.solid-student .mode-card small{color:var(--bloom-muted);font-size:13px}
body.solid-student :is(.booking-card,.onboarding-home,.review-home,.result-hero,.assessment-home){background:var(--bloom-tint);border-color:var(--bloom-line)}
body.solid-student :is(.booking-time,.pass-balance,.shop-price){color:var(--bloom-ink)}
body.solid-student .segmented{background:var(--bloom-tint)}
body.solid-student .segmented button{color:var(--bloom-muted);background:transparent;font-size:13px}
body.solid-student .segmented button.selected{background:var(--bloom-surface);color:var(--bloom-primary)}
body.solid-student .room-shell{border-radius:16px;border-color:var(--bloom-line)}
body.solid-student .room-heading{padding:22px 26px;background:var(--bloom-surface);border-color:var(--bloom-line)}
body.solid-student .voice-layout{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);min-height:540px}
body.solid-student .voice-stage{background:var(--bloom-tint);padding:30px;gap:14px}
body.solid-student .voice-stage h2{font-size:26px;letter-spacing:-.02em}
body.solid-student .voice-stage :is(p,small){color:var(--bloom-secondary)}
body.solid-student .voice-orb{border-radius:16px;box-shadow:none;background:var(--bloom-line);color:var(--bloom-primary-hover);width:76px;height:76px;font-size:32px}
body.solid-student .voice-orb svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.solid-student .voice-stage label{font-size:14px;max-width:100%;width:100%}
body.solid-student .voice-stage select{margin-left:0}
body.solid-student .voice-stage .device-settings{width:100%;max-width:430px;background:var(--bloom-surface);border:1px solid var(--bloom-line);border-radius:10px;padding:12px 18px}
body.solid-student .voice-stage .check-row{display:flex;align-items:start;gap:10px;text-align:left;line-height:1.7}
body.solid-student .voice-stage .check-row input{margin-top:4px;flex-shrink:0}
body.solid-student .voice-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%}
body.solid-student .voice-conversation{padding:28px;background:var(--bloom-surface);min-width:0}
body.solid-student .voice-conversation h3{font-size:18px}
body.solid-voice-active .voice-stage{background:var(--bloom-stage);color:var(--bloom-surface);justify-content:center}
body.solid-voice-active .voice-stage :is(h2,p,small,#voiceTime){color:var(--bloom-line)}
body.solid-voice-active .voice-stage h2{color:var(--bloom-surface)}
body.solid-voice-active .voice-stage :is(label,.device-settings,#voiceStart,#voiceTextStart){display:none}
body.solid-voice-active .voice-stage .voice-orb{background:var(--bloom-secondary);color:var(--bloom-surface)}
body.solid-voice-active .voice-stage #voiceMemory{background:var(--bloom-secondary);color:var(--bloom-line)}
body.solid-voice-active [data-page=room]>.page-heading{display:none}
body.solid-voice-active .voice-stage .voice-actions{background:transparent}
body.solid-student #voiceTranscript{min-height:200px;max-height:420px;overflow:auto;overflow-wrap:anywhere}
body.solid-student #voiceTranscript p{font-size:15px}
body.solid-student #voiceTranscript small{font-size:12px;color:var(--bloom-muted)}
body.solid-student #voiceForm input{min-width:0}
body.solid-student .human-workspace{padding:24px;background:var(--bloom-background)}
body.solid-student .video-grid{background:var(--bloom-stage);border-radius:14px}
body.solid-student .video-tile{background:var(--bloom-stage);color:var(--bloom-line)}
body.solid-student .call-toolbar{gap:10px;flex-wrap:wrap}
body.solid-student #avatarFrame{background:var(--bloom-background);border-radius:0 0 14px 14px;height:980px}
body.solid-avatar-active :is(.topbar,[data-page=room]>.page-heading){display:none}
body.solid-avatar-active #avatarFrame{height:calc(100svh - 160px);min-height:480px}
body.solid-avatar-active .room-footnote{display:none}
body.solid-student .room-footnote{font-size:13px}
body.solid-student #lessonDetail{background:var(--bloom-background);border-color:var(--bloom-line)}
body.solid-student #lessonDetail :is(.result-card,.result-next){background:var(--bloom-surface);border-color:var(--bloom-line)}
body[data-portal=student] .auth-story{background:var(--bloom-tint)}
body[data-portal=student] .auth-story .brand{font-family:var(--bloom-font);font-style:normal;color:var(--bloom-ink);letter-spacing:-.035em}
body[data-portal=student] .auth-form :is(h1,h2){color:var(--bloom-ink)}
body[data-portal=student] .auth-form{background:var(--bloom-surface)}
@media(max-width:1050px){body.solid-student .rail{gap:16px;padding:18px 28px}body.solid-student .rail nav{gap:12px}body.solid-student .student-home-grid{grid-template-columns:minmax(0,1fr) 250px}body.solid-student .mode-grid{grid-template-columns:1fr}body.solid-student .mode-card{min-height:0;display:grid;grid-template-columns:32px 1fr;gap:8px 14px;padding:20px}body.solid-student .voice-layout{grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr)}}
@media(max-width:800px){body.solid-student .rail{position:sticky;top:0;height:72px;padding:14px 20px;gap:0}body.solid-student .rail .brand{font-size:28px}body.solid-student .rail nav{display:flex;position:fixed;left:0;right:0;bottom:0;width:100%;margin:0;flex:none;gap:0;justify-content:space-around;padding:8px 6px max(8px,env(safe-area-inset-bottom));background:var(--bloom-surface);border-top:1px solid var(--bloom-line);z-index:45}body.solid-student .rail nav>button{flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:6px 2px;min-width:0;min-height:52px}body.solid-student .rail nav>button>svg{display:block;width:21px;height:21px}body.solid-student .rail nav>button>.navigation-text{display:block;font-size:12px}body.solid-student .rail nav>button.selected{box-shadow:inset 0 3px 0 currentColor}body.solid-student .solid-menu-panel{position:fixed;left:16px;right:16px;top:76px;bottom:auto;width:auto;max-height:calc(100svh - 165px);padding:16px;z-index:55;grid-template-columns:1fr 1fr;gap:6px}body.solid-student .solid-menu-panel .rail-user,body.solid-student .solid-menu-panel .role-links{grid-column:1/-1}body.solid-student .solid-menu-panel #logout{grid-column:1/-1}body.solid-student .portal>main{padding:0 20px 108px;border-radius:0;min-height:calc(100svh - 72px)}body.solid-student .topbar{height:48px;margin-bottom:20px}body.solid-student .topbar>div{font-size:12px}body.solid-student .student-home-grid{grid-template-columns:1fr;gap:24px}body.solid-student .student-context-column{grid-template-columns:1fr 1fr}body.solid-student .page-heading{gap:16px}body.solid-student .page-heading h1{font-size:26px}body.solid-student .page-heading p{font-size:14px}body.solid-student .daily-learning{padding:24px}body.solid-student .daily-heading h2{font-size:26px}body.solid-student .voice-layout{grid-template-columns:1fr}body.solid-student .voice-stage{padding:24px}body.solid-student .voice-conversation{padding:24px}body.solid-student #avatarFrame{height:1260px}body.solid-student .room-heading{padding:18px 20px}body.solid-student .room-heading small{display:none}body.solid-student .classroom-view .room-shell{overflow:visible}body.solid-student.classroom-view .voice-actions{position:sticky;bottom:80px;z-index:20;padding:10px 0;background:var(--bloom-tint)}body.solid-student .room-footnote{font-size:12px}}
@media(max-width:540px){body.solid-student .portal>main{padding:0 18px 106px}body.solid-student .student-context-column{grid-template-columns:1fr}body.solid-student .daily-learning{padding:24px 20px}body.solid-student .daily-heading h2{font-size:24px}body.solid-student .daily-intro{font-size:14px}body.solid-student .daily-footer>.primary{width:100%;padding:13px 18px}body.solid-student .daily-progress{grid-template-columns:1fr 1fr;gap:12px}body.solid-student .daily-progress li strong{font-size:12px}body.solid-student .mode-card{padding:20px}body.solid-student .voice-stage{padding:24px 20px}body.solid-student .voice-stage h2{font-size:24px}body.solid-student .voice-actions button{flex:1 1 42%;min-height:46px}body.solid-student #voiceForm{display:flex;flex-wrap:nowrap}body.solid-student #voiceForm input{flex:1 1 0;min-width:0}body.solid-student #voiceForm button{flex-shrink:0;font-size:13px}body.solid-student .room-heading{padding:16px}body.solid-student .human-workspace{padding:18px}body.solid-student #avatarFrame{height:1390px}}
@media(max-width:800px){body.solid-avatar-active .portal>main{padding-bottom:0}body.solid-avatar-active .rail nav{padding:0;border:0;background:transparent}body.solid-avatar-active .rail nav>button{display:none}body.solid-avatar-active #avatarFrame{height:calc(100svh - 132px);min-height:400px}}

/* Student voice setup and in-call controls share the same media elements. */
body.solid-student:not(.solid-voice-active) [data-page=room]:has(#voiceRoom:not([hidden])) > .page-heading :is(.eyebrow,p),
body.solid-student:not(.solid-voice-active) .room-shell:has(#voiceRoom:not([hidden])) > .room-heading,
body.solid-student:not(.solid-voice-active) #voiceRoom :is(.voice-conversation,.voice-orb,#voiceMute,#voiceStop,#voiceTime,#voiceMemory,.voice-stage > .eyebrow,.voice-stage > small),
body.solid-voice-active #voiceRoom :is(#voiceStartNotice,#voiceShop,#voiceConsentHelp,.voice-stage > small){display:none}
body.solid-student:not(.solid-voice-active) #voiceRoom .voice-layout{display:block;min-height:0}
body.solid-student:not(.solid-voice-active) #voiceRoom .voice-stage{align-items:stretch;max-width:640px;margin-inline:auto;padding:24px clamp(18px,5vw,36px);gap:10px;text-align:left;background:var(--bloom-surface)}
body.solid-student:not(.solid-voice-active) #voiceRoom :is(h2,p){margin:0}
body.solid-student:not(.solid-voice-active) #voiceRoom h2{font-size:clamp(21px,4vw,27px);line-height:1.25}
body.solid-student:not(.solid-voice-active) #voiceRoom .voice-stage > :is(p,label){overflow-wrap:anywhere}
body.solid-student:not(.solid-voice-active) #voiceRoom .voice-stage > .check-row{margin-top:4px;min-height:44px;align-items:center;padding:8px 12px;background:var(--bloom-tint);border-radius:10px}
body.solid-student:not(.solid-voice-active) #voiceRoom .check-row input{margin-top:0;accent-color:var(--bloom-primary)}
body.solid-student:not(.solid-voice-active) #voiceRoom .voice-actions{position:static;justify-content:flex-start;padding:2px 0;background:transparent}
body.solid-student:not(.solid-voice-active) #voiceRoom .voice-actions > button{min-height:46px}
body.solid-student:not(.solid-voice-active) #voiceRoom :is(#voiceStatus,.helper,#voiceStartNotice){font-size:13px;line-height:1.45}
body.solid-student:not(.solid-voice-active) #voiceRoom #voiceStartNotice{color:var(--bloom-ink);font-weight:600}
body.solid-student:not(.solid-voice-active) #voiceRoom #voiceShop{align-self:flex-start}
body.solid-student:not(.solid-voice-active) #voiceRoom .device-settings{max-width:none;padding:10px 12px}
@media(max-width:800px){
 body.solid-student:not(.solid-voice-active) [data-page=room]:has(#voiceRoom:not([hidden])) > .page-heading{gap:10px;margin-bottom:12px}
 body.solid-student:not(.solid-voice-active) [data-page=room]:has(#voiceRoom:not([hidden])) > .page-heading h1{margin:0;font-size:22px}
 body.solid-student:not(.solid-voice-active) #voiceRoom .voice-stage{padding-block:17px}
}
@media(max-width:360px){
 body.solid-student:not(.solid-voice-active) #voiceRoom .voice-stage{gap:8px;padding:14px}
 body.solid-student:not(.solid-voice-active) #voiceRoom .voice-actions{gap:6px}
 body.solid-student:not(.solid-voice-active) #voiceRoom .voice-actions > button{font-size:13px;padding-inline:7px}
}

.student-auth-tagline{display:none}
body[data-portal=student] #authView .social-buttons .provider-naver img{height:20px}
@media(min-width:801px){
 body[data-portal=student] #authView .auth-story{
  display:flex;flex-direction:column;align-items:flex-start;
  position:sticky;top:0;height:100svh;
  padding:clamp(28px,4vw,58px);
  background:
   linear-gradient(180deg,rgb(28 22 36 / .82),rgb(28 22 36 / .71) 32%,transparent 55%,rgb(28 22 36 / .12) 72%,rgb(28 22 36 / .86)),
   #302935 url('/assets/auth/student-login-pexels-12912121.webp') center 50% / cover no-repeat;
  color:#fff;
 }
 body[data-portal=student] #authView .auth-story > .brand{
  display:inline-flex;align-items:center;color:#fff;margin-bottom:clamp(24px,5vh,50px);
 }
 body[data-portal=student] #authView .auth-story > .brand img{filter:brightness(0) invert(1)}
 body[data-portal=student] #authView .auth-story > :is(.eyebrow,.story-orb){display:none}
 body[data-portal=student] #authView .auth-story h1{color:#fff;font-size:clamp(34px,3.6vw,56px);line-height:1.16;margin:0 0 14px;letter-spacing:-.035em}
 body[data-portal=student] #authView .auth-story p{color:#fff;line-height:1.55;margin:0}
 body[data-portal=student] #authView .auth-story > small:not(.student-auth-tagline){display:none}
 body[data-portal=student] #authView .auth-story > .student-auth-tagline{display:block;color:#fff;margin:auto 0 0;font-size:clamp(14px,1.25vw,18px);font-weight:600;line-height:1.45}
}

/* Very narrow screens (375px at 200% zoom is about 188 CSS px): the top bar wraps to two lines and nothing pushes the page wider than the viewport. */
@media(max-width:360px){
 body.solid-student .rail{flex-wrap:wrap;height:auto;min-height:72px;padding:8px 12px;row-gap:0;column-gap:8px}
 body.solid-student .rail .brand{font-size:24px;min-width:0}
 body.solid-student .student-rail-actions{margin-left:auto}
 body.solid-student .rail nav{padding-inline:2px}
 body.solid-student :is(.student-context-column,.student-main-column){grid-template-columns:minmax(0,1fr)}
 body.solid-student .portal>main{padding-inline:12px}
 body.solid-student .portal>main>.topbar{grid-template-columns:minmax(0,1fr);height:auto}
 body.solid-student .portal>main>.topbar>*{grid-column:1;grid-row:auto;min-width:0}
 body.solid-student .topbar :is(#learningLanguageControl,#learningLanguage,.ui-language-picker select){flex:1 1 auto;width:100%;min-width:0}
 body.solid-student .portal>main>.topbar select{min-height:48px;height:auto}
 body.solid-student .portal>main :is(p,h1,h2,h3,strong,small,span,a,label,blockquote){overflow-wrap:anywhere}
 body.solid-student .rail nav>button{padding-inline:0}
 body.solid-student .rail nav>button>.navigation-text{max-width:100%;font-size:11px;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.25}
}
@media(max-width:200px){
 body.solid-student .rail nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
 body.solid-student .rail nav>button{flex-direction:row;gap:6px;min-height:48px;padding-block:2px}
 body.solid-student .rail nav>button>svg{width:18px;height:18px}
}
@media(min-width:801px){body.solid-student .rail nav>button{min-width:48px;justify-content:center}}
/* My tab (Task 6): profile row, growth card, passes and settings. Existing panels are moved in; ids stay. */
body.solid-student [data-page=my]{display:grid;gap:20px;min-width:0;max-width:760px}
body.solid-student [data-page=my][hidden]{display:none}
body.solid-student [data-page=my].my-has-passes>.tab-links{display:none}
body.solid-student [data-page=my]>.tab-links{margin:0}
body.solid-student [data-page=my] :is(h2,p){overflow-wrap:anywhere}
body.solid-student .my-profile{display:flex;align-items:center;gap:16px;min-width:0;scroll-margin-top:24px}
@media(max-width:800px){body.solid-student .my-profile{scroll-margin-top:96px}}
body.solid-student .my-initial{display:grid;place-items:center;flex:none;width:56px;height:56px;border-radius:50%;background:var(--bloom-primary);color:var(--bloom-surface);font-size:1.375rem;font-weight:700}
body.solid-student .my-profile-text{flex:1 1 auto;min-width:0}
body.solid-student .my-name{margin:0;font-size:1.25rem;line-height:1.3}
body.solid-student .my-goal{margin:4px 0 0;color:var(--bloom-secondary);font-size:.9375rem;line-height:1.45}
body.solid-student :is(.my-edit,.my-link,.my-diagnose,.my-retry,.my-buy,.my-setting-row){min-height:48px;box-sizing:border-box;white-space:normal;box-shadow:none;transform:none;font-size:1rem;line-height:1.35}
body.solid-student :is(.my-edit,.my-link){flex:none;padding:10px 12px;border:0;border-radius:16px;background:transparent;color:var(--bloom-primary);font-weight:700}
body.solid-student :is(.my-edit,.my-link):hover{background:var(--bloom-tint)}
body.solid-student .my-profile-edit[hidden]{display:none}
body.solid-student .my-profile-edit>.card{margin:0}
body.solid-student .my-growth{display:grid;gap:12px;min-width:0;padding:24px;border-radius:24px;background:var(--bloom-ink);color:var(--bloom-surface)}
body.solid-student .my-growth h2{margin:0;color:var(--bloom-surface);font-size:1.125rem}
body.solid-student .my-level{display:grid;gap:10px}
body.solid-student .my-level-current{margin:0;color:var(--bloom-surface);font-size:1.375rem;font-weight:700}
body.solid-student .my-steps{display:flex;gap:8px;margin:0;padding:0;list-style:none}
body.solid-student .my-step{display:flex;flex:1 1 0;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;color:var(--bloom-on-ink-muted);font-weight:500}
body.solid-student .my-step::before{content:"";align-self:stretch;height:4px;border-radius:2px;background:var(--bloom-progress-upcoming)}
body.solid-student .my-step-code{display:flex;align-items:center;gap:4px;white-space:nowrap}
body.solid-student .my-step-code::before{content:"";flex:none;width:10px;height:10px;border:2px solid var(--bloom-on-ink-muted);border-radius:50%;box-sizing:border-box}
body.solid-student .my-step.is-current{color:var(--bloom-surface);font-weight:700}
body.solid-student .my-step.is-current::before{background:var(--bloom-surface)}
body.solid-student .my-step.is-current .my-step-code::before{width:12px;height:12px;border-color:var(--bloom-surface);background:var(--bloom-surface)}
body.solid-student .my-diagnose{justify-self:start;padding:10px 0;border:0;background:transparent;color:var(--bloom-surface);font-weight:700;text-decoration:underline;text-underline-offset:4px}
body.solid-student .my-diagnose[hidden]{display:none}
body.solid-student .my-diagnose:focus-visible,body.solid-student .my-growth .my-retry:focus-visible{outline-color:var(--bloom-surface)}
body.solid-student .my-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr));gap:12px;margin:4px 0 0}
body.solid-student .my-stat{display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px;border-radius:16px;background:var(--bloom-progress-upcoming)}
body.solid-student .my-stat dt{color:var(--bloom-on-ink-muted);font-size:.875rem;overflow-wrap:anywhere}
body.solid-student .my-stat dd{margin:0;color:var(--bloom-surface);font-size:1.25rem;font-weight:700;overflow-wrap:anywhere}
body.solid-student .my-growth .my-note{margin:0;color:var(--bloom-on-ink-muted)}
body.solid-student .my-growth .my-retry{width:100%;padding:10px 0;border:0;background:transparent;color:var(--bloom-surface);font-weight:700;text-align:left;text-decoration:underline;text-underline-offset:4px}
body.solid-student :is(.my-passes,.my-settings){display:grid;gap:12px;min-width:0;padding:20px;border:1px solid var(--bloom-line);border-radius:24px;background:var(--bloom-surface)}
body.solid-student .my-passes[hidden]{display:none}
body.solid-student :is(.my-passes,.my-settings) h2{margin:0;font-size:1.125rem}
body.solid-student .my-section-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px}
body.solid-student .my-link[hidden]{display:none}
body.solid-student .my-pass-body{display:grid;gap:12px}
body.solid-student :is(.my-pass-list,.my-setting-list){display:grid;margin:0;padding:0;list-style:none}
body.solid-student .my-pass{display:grid;gap:4px;padding:12px 0;border-top:1px solid var(--bloom-line)}
body.solid-student .my-pass:first-child{border-top:0;padding-top:0}
body.solid-student .my-pass-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px}
body.solid-student .my-pass-kind{font-weight:700}
body.solid-student .my-pass-remaining{color:var(--bloom-primary);font-weight:700}
body.solid-student .my-pass-meta,body.solid-student .my-passes .my-note{margin:0;color:var(--bloom-secondary);font-size:.875rem;line-height:1.45}
body.solid-student .my-pass-error{display:grid;gap:4px}
body.solid-student .my-pass-error p{margin:0}
body.solid-student .my-passes .my-retry{justify-self:start;padding:10px 16px;border:1px solid var(--bloom-line);border-radius:16px;background:var(--bloom-surface);color:var(--bloom-primary);font-weight:700}
body.solid-student .my-buy{justify-self:stretch;padding:12px 20px;border:0;border-radius:16px;background:var(--bloom-primary);color:var(--bloom-surface);font-weight:700}
body.solid-student .my-buy:hover{background:var(--bloom-primary-hover)}
body.solid-student .my-setting-list>li{border-top:1px solid var(--bloom-line)}
body.solid-student .my-setting-list>li:first-child{border-top:0}
body.solid-student .my-setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 4px;border:0;border-radius:12px;background:transparent;color:var(--bloom-ink);font-weight:500;text-align:left;cursor:pointer;list-style:none}
body.solid-student .my-setting-row::-webkit-details-marker{display:none}
body.solid-student .my-setting-row:hover{background:var(--bloom-tint)}
body.solid-student .my-setting-title{min-width:0;overflow-wrap:anywhere}
body.solid-student .my-chevron{flex:none;color:var(--bloom-secondary);font-size:1.25rem;transition:transform .15s}
body.solid-student .my-setting[open]>summary .my-chevron{transform:rotate(90deg)}
body.solid-student .my-setting>:not(summary){margin:4px 0 16px;min-width:0}
body.solid-student .my-logout{color:var(--bloom-danger)}
body.solid-student .my-setting [data-page=profile]>.page-heading{display:none}
body.solid-student .my-setting [data-page=profile]{display:grid;gap:16px;min-width:0}
body.solid-student .my-setting .profile-layout{grid-template-columns:minmax(0,1fr);gap:16px}
body.solid-student .my-setting .card{margin:0;min-width:0}
body.solid-student .my-language .learning-language-control{flex-wrap:wrap}
body.solid-student .my-language .learning-language-control>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}
body.solid-student .my-language .learning-language-control select{width:100%;max-width:100%;min-height:48px}
body.solid-student [data-page=my] :is(button,select,summary,input:not([type=checkbox]):not([type=radio])){min-height:48px;box-sizing:border-box}
body.solid-student [data-page=my] summary{display:flex;align-items:center}
body.solid-student [data-page=my] .my-setting a{display:inline-flex;align-items:center;min-height:48px}
@media (max-width:359.98px){body.solid-student .my-growth{padding:16px}body.solid-student .my-steps{flex-wrap:wrap;gap:6px}body.solid-student .my-step{flex:1 0 auto}body.solid-student :is(.my-passes,.my-settings){padding:16px}body.solid-student .my-profile{flex-wrap:wrap}}
@media (prefers-reduced-motion:reduce){body.solid-student .my-chevron{transition:none}}
/* Student lesson result: key correction first, native folds, sticky daily bar (Task 7). */#lessonDetail.student-result{--result-pad:28px;padding-bottom:0;scroll-padding-bottom:120px}#lessonDetail.student-result .result-meta{margin:4px 0 6px;font-size:.8125rem;color:var(--bloom-muted);line-height:1.6}#lessonDetail.student-result .result-title{margin:0 0 8px;font-size:1.5rem;line-height:1.35;color:var(--bloom-ink)}#lessonDetail.student-result .result-summary{margin:0 0 16px}#lessonDetail.student-result .result-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:10px;margin:0 0 16px}#lessonDetail.student-result .result-tile{padding:14px 16px;border:1px solid var(--bloom-line);border-radius:16px;background:var(--bloom-surface);min-width:0}#lessonDetail.student-result .result-tile-label{font-size:.8125rem;color:var(--bloom-muted)}#lessonDetail.student-result .result-tile-value{margin:4px 0 0;font-size:1.25rem;font-weight:700;color:var(--bloom-ink);overflow-wrap:anywhere}#lessonDetail.student-result .result-key{margin:0 0 16px;padding:22px;border:2px solid var(--bloom-primary);border-radius:22px;background:var(--bloom-surface);min-width:0;overflow-wrap:anywhere}#lessonDetail.student-result .result-empty{border-width:1px;border-color:var(--bloom-line)}#lessonDetail.student-result .result-key-eyebrow{margin:0 0 12px;font-size:.8125rem;font-weight:700;color:var(--bloom-primary)}#lessonDetail.student-result .result-empty-title{margin:0 0 12px;font-size:1rem;font-weight:700;color:var(--bloom-ink);line-height:1.6}#lessonDetail.student-result .result-label{display:block;font-size:.75rem;color:var(--bloom-muted)}#lessonDetail.student-result .result-original{margin:2px 0 12px;font-size:.9375rem;color:var(--bloom-muted)}#lessonDetail.student-result .result-removed{text-decoration:line-through;text-decoration-thickness:2px;color:var(--bloom-muted)}#lessonDetail.student-result .result-improved{margin:2px 0 8px;font-size:1.375rem;font-weight:700;line-height:1.45;color:var(--bloom-primary)}#lessonDetail.student-result .result-explanation{margin:0;font-size:.875rem}#lessonDetail.student-result .result-key-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}#lessonDetail.student-result :is(.result-key,.result-folds,.result-daily) button{min-height:48px}#lessonDetail.student-result .result-key-actions button{flex:1 1 12rem;max-width:100%;white-space:normal}#lessonDetail.student-result .result-folds{display:grid;gap:10px;margin:0 0 16px}#lessonDetail.student-result .result-fold{padding:0 18px;border:1px solid var(--bloom-line);border-radius:16px;background:var(--bloom-surface);min-width:0;overflow-wrap:anywhere}#lessonDetail.student-result .result-fold>summary{display:flex;align-items:center;min-height:48px;margin:0 -18px;padding:8px 18px;font-weight:600;cursor:pointer;color:var(--bloom-ink)}#lessonDetail.student-result .result-fold[open]{padding-bottom:16px}#lessonDetail.student-result .result-fold>summary::-webkit-details-marker{display:none}#lessonDetail.student-result .result-fold>summary::after{content:"+" / "";margin-left:auto;padding-left:12px;font-size:1.25rem;line-height:1;color:var(--bloom-muted)}#lessonDetail.student-result .result-fold[open]>summary::after{content:"\2212" / ""}#lessonDetail.student-result .result-daily-info:focus{outline:none}#lessonDetail.student-result .result-fold .result-correction+.result-correction{margin-top:14px;padding-top:14px;border-top:1px solid var(--bloom-line)}#lessonDetail.student-result .result-fold-note{padding:14px 18px}#lessonDetail.student-result .result-fold-note h4{margin:0 0 6px;font-size:1rem;color:var(--bloom-ink)}#lessonDetail.student-result .result-fold-note p{margin:0}#lessonDetail.student-result .result-media :is(audio,video){width:100%}#lessonDetail.student-result .result-daily{position:sticky;bottom:0;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:20px calc(-1*var(--result-pad)) 0;padding:12px var(--result-pad) 16px;border-top:1px solid var(--bloom-line);background:var(--bloom-background)}#lessonDetail.student-result .result-daily-info{flex:1 1 10rem;display:grid;gap:2px;min-width:0}#lessonDetail.student-result .result-daily-count{font-size:.9375rem;color:var(--bloom-ink)}#lessonDetail.student-result .result-daily-next{font-size:.8125rem;color:var(--bloom-muted)}#lessonDetail.student-result .result-daily-retry{width:100%;padding:8px 0;border:0;background:transparent;color:var(--bloom-primary);font-weight:700;text-align:left;text-decoration:underline;text-underline-offset:4px;white-space:normal}#lessonDetail.student-result .result-daily-home{flex:0 0 auto;padding:12px 20px;background:var(--bloom-ink);color:var(--bloom-surface)}@media (max-width:650px){#lessonDetail.student-result{--result-pad:18px}}@media (max-width:420px){#lessonDetail.student-result{--result-pad:12px;width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px)}#lessonDetail.student-result .result-key{padding:16px}#lessonDetail.student-result .result-daily-home{flex:1 1 auto}}/* Very short viewports (200% zoom on a phone): the bar scrolls with the content instead of taking a third of the screen. */@media (max-height:440px){#lessonDetail.student-result .result-daily{position:static}#lessonDetail.student-result{scroll-padding-bottom:0}}
/* Student load failures (Task 8 fix): boot page, refresh notice and the lessons pass retry. 48px targets, existing variables only. */
body.solid-student .student-boot-error{display:grid;gap:16px;justify-items:start;max-width:560px;margin:15vh auto 0;padding:0 24px}
body.solid-student .student-boot-error[hidden]{display:none}
body.solid-student .student-boot-error h1{margin:0;color:var(--bloom-ink);font-size:1.5rem;line-height:1.3}
body.solid-student .student-boot-error p{margin:0;color:var(--bloom-muted);line-height:1.5}
body.solid-student .student-boot-error button{min-height:48px;padding:12px 20px;border-radius:16px}
body.solid-student .student-refresh-retry{display:flex;align-items:center;width:100%;min-height:48px;margin:0 0 16px;padding:10px 16px;border:1px solid var(--bloom-line);border-radius:16px;background:var(--bloom-surface);color:var(--bloom-primary);font-weight:700;line-height:1.4;text-align:left;white-space:normal}
body.solid-student .lessons-recommend .lessons-retry{justify-self:start;min-height:48px;padding:10px 16px;border:1px solid var(--bloom-line);border-radius:16px;background:var(--bloom-surface);color:var(--bloom-primary);font-weight:700}
/* 2026-11-20 layout pass: one content width for every tab, a full-width top bar aligned to it, one dark card per tab. */
html:has(body.solid-student){scrollbar-gutter:stable}
body.solid-student .portal>main>.topbar{display:none}
body.solid-student .portal>main{padding-top:28px}
@media(min-width:801px){
 body.solid-student .rail{max-width:none;margin:0;padding-inline:max(34px,calc((100% - 1212px) / 2));border-bottom:1px solid var(--bloom-line)}
}
@media(max-width:800px){body.solid-student .portal>main{padding-top:20px}}
body.solid-student .solid-menu-panel .ui-language-picker{grid-column:1/-1;margin:4px 0;padding:4px 10px}
/* Every tab uses the full content width. */
body.solid-student [data-page=my]{max-width:none}
body.solid-student [data-page=review] .review-home{max-width:none;margin:0 0 24px}
/* White cards: one surface, one line, one radius. Dark (ink) is reserved for the lead card of a tab. */
body.solid-student :is(.review-home,.my-passes,.my-settings,.practice-goals){background:var(--bloom-surface);border:1px solid var(--bloom-line);border-radius:16px}
body.solid-student .lessons-recommend{background:var(--bloom-ink)}
body.solid-student .lessons-recommend-action{color:var(--bloom-ink)}
@media(min-width:1024px){
 body.solid-student [data-page=my]:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
 body.solid-student [data-page=my]>:is(.my-profile,.my-profile-edit){grid-column:1/-1}
 body.solid-student [data-page=my]>:is(.my-growth,.my-settings){grid-column:1}
 body.solid-student [data-page=my]>.my-passes{grid-column:2;grid-row:span 2}
 body.solid-student [data-page=my]>.tab-links{grid-column:1/-1;order:10}
 body.solid-student [data-page=review] .review-home{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);column-gap:40px;align-items:start}
 body.solid-student [data-page=review] .review-home>*{grid-column:1}
 body.solid-student [data-page=review] .review-home>.review-rows{grid-column:2;grid-row:1/span 6;margin-top:0}
}
