/* Approved visual directions. Scope to the workspace, leaving account/auth dialogs intact. */
#appShell[data-design]{--bg:#f6f7f2;--card:#fffefa;--ink:#18392f;--muted:#596b61;--line:#dfe6dc;--nav:#173d32;--accent:#2b7955;--green:#2b7955;--accent-dark:#205d40;--accent-soft:#e7efe6;--design-hero:#e4ecdc;--design-hero-ink:#18392f;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}
#appShell[data-design="impulso"]{--bg:#f1f2fb;--card:#fff;--ink:#242442;--muted:#62627b;--line:#e0dfed;--nav:#262642;--accent:#6259c9;--green:#6259c9;--accent-dark:#4e45ac;--accent-soft:#eeebfc;--design-hero:linear-gradient(115deg,#333568,#6c5db0);--design-hero-ink:#fff}
#appShell[data-design] .main-content{background:var(--bg)!important;padding:28px 36px;max-width:1600px;min-width:0;width:100%}
#appShell[data-design] .sidebar{background:var(--nav)!important;border:0;padding:24px 18px;gap:20px;scrollbar-width:thin}
#appShell[data-design] .brand-badge{border-radius:13px;background:var(--accent);box-shadow:none}
#appShell[data-design] .brand-badge:after{display:none}
#appShell[data-design] .brand-badge span{transform:none}
#appShell[data-design] .brand h1{font-family:inherit;font-size:1rem}
#appShell[data-design] .nav-item{border-radius:11px;font-weight:600;min-height:46px;padding:10px 12px;transition:background .15s;color:#edf2ed;transform:none}
#appShell[data-design] .nav-item.active,#appShell[data-design] .nav-item:hover{background:#ffffff20;color:white;transform:none}
#appShell[data-design] .profile-panel{border-radius:14px;border:1px solid #ffffff30;background:#ffffff08;padding:13px}
#appShell[data-design] .profile-panel select{border-radius:8px;max-width:100%}
#appShell[data-design] .topbar{border:0;gap:18px;padding:0 0 22px;margin-bottom:18px;align-items:center}
#appShell[data-design] .topbar h2{font-size:1.4rem;font-family:inherit;letter-spacing:-.02em}
#appShell[data-design] .topbar-actions{flex-wrap:wrap;justify-content:flex-end;gap:7px}
#appShell[data-design] .card{background:var(--card);border:1px solid var(--line);border-radius:17px;box-shadow:none}
#appShell[data-design] :is(h2,h3,h4,.prompt,.option-btn){font-family:inherit;letter-spacing:normal}
#appShell[data-design] .primary-btn{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;box-shadow:none;border-radius:10px;font-weight:700}
#appShell[data-design] .primary-btn:hover{background:var(--accent-dark)!important}
#appShell[data-design] :is(.secondary-btn,.mini-btn,.ghost-light-btn){border-radius:9px;box-shadow:none}
#appShell[data-design] :is(.secondary-btn,.ghost-light-btn){background:var(--card);color:var(--ink);border:1px solid var(--line)}
#appShell[data-design] :is(.pill,.language-topic,.level-control){background:var(--accent-soft);color:var(--ink);border-color:var(--line);border-radius:8px}
#appShell[data-design] :is(.hero,.school-hero,.early-hero){background:var(--design-hero)!important;color:var(--design-hero-ink);border:0!important;border-radius:22px;padding:30px 34px;box-shadow:none}
#appShell[data-design] :is(.hero,.school-hero,.early-hero)::before,#appShell[data-design] :is(.hero,.school-hero,.early-hero)::after{display:none}
#appShell[data-design] :is(.hero,.school-hero,.early-hero) h3{color:inherit;font-family:inherit;font-size:clamp(1.5rem,2.2vw,2.1rem);line-height:1.25;letter-spacing:-.03em}
#appShell[data-design] :is(.hero,.school-hero,.early-hero) p{color:inherit;opacity:.85;line-height:1.7}
#appShell[data-design] .hero-visual{background:none;min-width:140px;min-height:140px;border:1px solid #ffffff50;border-radius:50%;box-shadow:none;font-size:0;display:grid;place-items:center}
#appShell[data-design] .hero-visual .pixel-world,#appShell[data-design] .hero-visual span,#appShell[data-design] .hero-level{display:none}
#appShell[data-design] .hero-visual::after{content:'';display:block;width:90px;height:90px;background:url('../assets/icons/learning-areas-3d.png') 33.333333% 50%/400% 300%;border-radius:17px}
#appShell[data-design="impulso"] :is(.hero,.school-hero) .primary-btn{background:#f7ce7a!important;border-color:#f7ce7a!important;color:#292640!important}
#appShell[data-design] .home-welcome{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:20px}
#appShell[data-design] .home-welcome h3{font-size:clamp(1.65rem,2.6vw,2.25rem);letter-spacing:-.035em;margin:.35rem 0 .5rem}
#appShell[data-design] .home-welcome p{color:var(--muted);margin:0;line-height:1.6}
#appShell[data-design] .home-welcome .eyebrow{font-size:.65rem;letter-spacing:.13em;color:var(--accent)}
#appShell[data-design] .home-session-notice{padding:12px 16px;border-radius:11px;background:var(--accent-soft);color:var(--ink);font-size:.8rem;margin-bottom:22px;border-left:3px solid var(--accent)}
#appShell[data-design] .home-session-notice.independent{border-style:dashed;border-width:1px;border-color:var(--accent)}
#appShell[data-design] :is(.school-area-grid,.early-area-grid){gap:14px}
#appShell[data-design] :is(.school-area-card,.early-area-card){border-radius:15px;padding:20px 16px;border:1px solid var(--line);background:var(--card);box-shadow:none;min-width:0}
#appShell[data-design] :is(.school-area-card,.early-area-card):hover{border-color:var(--accent);transform:translateY(-2px)}
#appShell[data-design] .school-area-card small{color:var(--muted)}
#appShell[data-design] :is(.school-mission-card,.early-mission-card){border-radius:16px;box-shadow:none;border:1px solid var(--line)}
#appShell[data-design] #homeLevels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#appShell[data-design] #homeLevels .level-row{display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px 12px;border:1px solid var(--line);border-radius:14px;padding:15px;min-width:0;background:var(--card);color:var(--ink);text-align:left;cursor:pointer}
#appShell[data-design] #homeLevels .area-illustration{width:40px;height:40px;grid-row:1/4}
#appShell[data-design] #homeLevels .level-row strong{font-size:.9rem;overflow-wrap:anywhere}
#appShell[data-design] #homeLevels .level-tag{font-size:.65rem;color:var(--muted)}
#appShell[data-design] #homeLevels .level-track{width:100%;background:var(--accent-soft)}
#appShell[data-design] #homeLevels .level-track span{background:var(--accent)}
#appShell[data-design] .focus-card{background:var(--accent-soft)!important;color:var(--ink)}
#appShell[data-design] .block-banner{background:var(--card)!important;border:1px solid var(--line);border-bottom:3px solid var(--accent);padding:24px 28px;border-radius:17px}
#appShell[data-design] .block-banner::before{display:none}
#appShell[data-design] #exercise .exercise-card{background:var(--card)!important;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:none}
#appShell[data-design] #exercise .prompt{color:var(--ink)!important;font-size:1.3rem;line-height:1.5;margin:18px 0 22px}
#appShell[data-design] #exerciseVisual .reading-passage{background:var(--accent-soft)!important;border:1px solid var(--line);border-left:3px solid var(--accent)!important;border-radius:13px;color:var(--ink)}
#appShell[data-design] .option-btn{background:var(--card);border:1px solid var(--line);border-radius:11px;box-shadow:none;line-height:1.5;padding:17px 20px;min-height:54px;color:var(--ink)}
#appShell[data-design] .option-btn:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent);transform:none}
#appShell[data-design] :is(#documentModeSwitch,#photoModeSwitch,#interactionKindSwitch,#speedModeSwitch,.language-switch){border-radius:13px;background:var(--card);border:1px solid var(--line);box-shadow:none}
#appShell[data-design] :is(#documentModeSwitch,#photoModeSwitch,#interactionKindSwitch,#speedModeSwitch) button[aria-pressed=true],#appShell[data-design] .language-mode-btn.active{background:var(--accent);color:white;border-radius:9px}
#appShell[data-design] .document-transcript{background:var(--card);border-color:var(--line);border-radius:10px}
#appShell[data-design] .practice-document{margin:1.25rem auto;max-width:850px}
#appShell[data-design] .progress-chart-data{overflow-x:auto}
#appShell[data-design] .progress-chart-data td{white-space:nowrap}
#appShell[data-design] :focus-visible{outline:3px solid var(--accent);outline-offset:3px}
#appShell[data-design] .account-tools{border:1px solid #ffffff28;border-radius:13px;background:#ffffff08;padding:10px 12px;color:#f4f3ff}
#appShell[data-design] .account-tools>summary{font-weight:750;cursor:pointer;list-style:none;padding:5px 2px}
#appShell[data-design] .account-tools>summary::-webkit-details-marker{display:none}
#appShell[data-design] .account-tools>summary::after{content:'⌄';float:right;opacity:.75}
#appShell[data-design] .account-tools[open]>summary::after{content:'⌃'}
#appShell[data-design] .account-tools .profile-panel{margin:10px 0;border:0;padding:10px;background:#ffffff0b}
#appShell[data-design] .account-tools .privacy-panel{padding:4px 2px}
#appShell[data-design] .account-tools .sidebar-footer{margin-top:10px}
#appShell[data-design] .home-progress{margin-top:22px;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:14px 18px}
#appShell[data-design] .home-progress>summary{cursor:pointer;color:var(--muted);font-size:.9rem;font-weight:700}
#appShell[data-design] .home-progress[open]>.dashboard-grid{margin-top:14px}
#appShell[data-design] .home-progress .focus-card{margin-top:12px;padding:16px 20px}
#appShell[data-design] #training .section-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px}
#appShell[data-design] #training .section-intro h3{margin:.35rem 0}
#appShell[data-design] #training .section-intro p{margin:.25rem 0;color:var(--muted)}
#appShell[data-design] .training-area-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,255px),1fr));gap:12px;margin-top:18px}
#appShell[data-design] .training-area-list .level-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:6px 12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:15px;background:var(--card);color:var(--ink);text-align:left;cursor:pointer;min-width:0}
#appShell[data-design] .training-area-list .level-row:hover{border-color:var(--accent);background:var(--accent-soft)}
#appShell[data-design] .training-area-list .area-illustration{width:40px;height:40px;grid-row:1/4}
#appShell[data-design] .training-area-list .level-track{grid-column:2;width:100%;background:var(--accent-soft)}
#appShell[data-design] .training-area-list .level-track span{background:var(--accent)}
#appShell[data-design] .training-area-list .level-tag{font-size:.68rem;color:var(--muted)}
#appShell[data-design] .school-summary{display:flex;align-items:baseline;gap:10px;margin-top:18px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--muted)}
#appShell[data-design] .school-summary strong{font-size:1.3rem;color:var(--ink)}
#appShell[data-design] .school-summary small{margin-left:auto}
#appShell[data-design] .discovery-trail{margin-top:18px}
#appShell[data-design]:is(.school-experience,.early-experience) #home>.home-welcome,
#appShell[data-design]:is(.school-experience,.early-experience) #home>.hero,
#appShell[data-design]:is(.school-experience,.early-experience) #home>.home-session-notice,
.workspace-menu{display:none}
@media(min-width:951px){#appShell[data-design]{grid-template-columns:238px minmax(0,1fr)}#appShell[data-design] .sidebar{overflow-y:auto;position:sticky;height:100vh}}
@media(max-width:950px){#appShell[data-design] .main-content{padding:20px}#appShell[data-design] .sidebar{padding:14px 18px;gap:12px;height:auto;position:relative}#appShell[data-design] .brand{max-width:calc(100% - 150px)}#appShell[data-design] .workspace-menu{display:block;position:absolute;right:18px;top:21px;background:#ffffff18;color:white;padding:10px 13px;border:1px solid #ffffff40;border-radius:9px;font:inherit;font-size:.8rem}#appShell[data-design]:not(.mobile-nav-open) .sidebar :is(.account-tools,.profile-panel,.privacy-panel,.nav-menu,.sidebar-footer,.support-contact){display:none!important}#appShell[data-design].mobile-nav-open .nav-menu{grid-template-columns:repeat(2,minmax(0,1fr))}#appShell[data-design] .topbar{align-items:flex-start;flex-wrap:wrap;gap:12px}#appShell[data-design] .topbar-actions{flex-direction:row;justify-content:flex-start}#appShell[data-design] .home-welcome{align-items:flex-start;flex-direction:column}#appShell[data-design] .hero-visual{display:none}#appShell[data-design] :is(.hero,.school-hero,.early-hero){padding:25px}#appShell[data-design] .school-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){#appShell[data-design] .main-content{padding:18px 14px}#appShell[data-design] .block-banner,#appShell[data-design] #exercise .exercise-card{padding:18px}#appShell[data-design] #exercise .prompt{font-size:1.2rem}#appShell[data-design] .school-area-grid{grid-template-columns:minmax(0,1fr)}#appShell[data-design] #homeLevels{grid-template-columns:minmax(0,1fr)}#appShell[data-design] .home-welcome p{font-size:.9rem}#appShell[data-design] .home-welcome .secondary-btn{width:100%}#appShell[data-design] .options-grid{grid-template-columns:minmax(0,1fr)}}
/* Replace the legacy fixed-sidebar offset as a unit; do not mix both layouts. */
@media(min-width:951px){#appShell[data-design]{display:grid}#appShell[data-design] .sidebar{grid-column:1;width:auto;left:auto;bottom:auto;z-index:10;align-self:start}#appShell[data-design] .main-content{grid-column:2;margin-left:0}}
#appShell[data-design] :is(.school-hero,.early-hero,.hero) .eyebrow{color:inherit!important;opacity:.8}
#appShell[data-design] .focus-card :is(h3,p){color:var(--ink)!important}
#appShell[data-design] .focus-card .eyebrow{color:var(--accent)!important}
#appShell[data-design] #homeLevels :is(strong,.level-tag){color:var(--ink)!important}
#appShell[data-design] :is(.secondary-btn,.ghost-light-btn){background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}
#appShell[data-design].hidden{display:none!important}
/* Preserve the established visibility of spatial-memory targets. */
#appShell[data-design] .spatial-answer-grid .option-btn{border:2px solid var(--accent);background:var(--accent-soft)}
/* Answer states retain their meaning under either palette. */
#appShell[data-design] .option-btn.selected{background:var(--accent-soft);border:2px solid var(--accent)}
#appShell[data-design] .option-btn.correct{background:#e6f4e9;border:2px solid #2c7747;color:#164d29}
#appShell[data-design] .option-btn.wrong{background:#fbeaea;border:2px solid #ad3e46;color:#79262d}
