/* The pupil's desk uses the same illustrated, cream-and-teal cards as the explorers. */
#student-app {background:#f7f7ee;color:#173f41}
#student-app .student-main {max-width:1120px;padding:clamp(16px,3vw,34px) clamp(12px,4vw,48px) 52px}
#student-app [hidden] {display:none!important}
#student-nav {margin-bottom:10px}
#student-nav button {padding:5px 0;border:0;background:transparent;color:#116469;cursor:pointer;font-family:inherit;font-size:.92rem;line-height:1.35;font-weight:750;min-height:40px;text-align:left}
#student-app .student-context {display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #cfdbd1;padding-bottom:10px}
#student-grade-text {font-size:1rem;font-weight:800;color:#486365}
.week-stepper {display:inline-flex;align-items:center;gap:3px;background:#fffdf6;border:1px solid #b8d1c6;border-radius:14px;padding:0 2px}
.week-stepper label,.week-stepper input {font:750 1rem/1.15 Nunito,system-ui,sans-serif;color:#1b5658}
.week-stepper button {width:44px;height:44px;min-width:0;border:0;border-radius:12px;background:transparent;color:#12686c;cursor:pointer;font:650 1.6rem/1 system-ui}
.week-stepper button:disabled {color:#a1b4ae;cursor:default}
.week-stepper input {appearance:textfield;text-align:center;width:2.2em;height:38px;border:0;padding:0;background:transparent}
.week-stepper input::-webkit-inner-spin-button,.week-stepper input::-webkit-outer-spin-button {-webkit-appearance:none;margin:0}
#student-section-title,#student-content>.learning-panel>h2 {margin:20px 0 10px;font:900 clamp(1.35rem,2.5vw,1.9rem)/1.15 Nunito,system-ui,sans-serif;letter-spacing:-.025em;color:#193f42}
#student-section-title:focus:not(:focus-visible) {outline:none}
#student-content>.student-week-card {border:0;box-shadow:none;background:none;padding:0;border-radius:0;margin:0}
#student-content .learning-panel>[role=status]:empty {display:none}
#student-app .learning-panel>.learning-list {margin-top:0;gap:12px}
#student-app .adventure-card {display:grid;grid-template-columns:clamp(92px,30%,145px) minmax(0,1fr);background:#fffdf7;border:1px solid #c4d7ca;border-radius:18px;box-shadow:0 2px 0 #d8e5d9}
#student-app .adventure-art {width:100%;height:100%;min-height:78px;border:0;border-right:1px solid #d1ddd1;padding:0;background:var(--skill-cover,url('/skill-entrance/theme1.webp')) center 38%/cover no-repeat}
#student-app .adventure-art>* {display:none}
#student-app .adventure-copy {justify-content:center;padding:clamp(10px,2.1vw,18px);gap:4px;min-width:0;overflow-wrap:anywhere}
#student-app .adventure-copy h4 {font-size:clamp(1.02rem,2vw,1.3rem);line-height:1.2}
#student-app .adventure-meta {font-size:.73rem;line-height:1.25;flex-wrap:wrap;gap:2px 6px}
#student-app .adventure-progress {margin:2px 0;gap:5px;flex-wrap:wrap}
#student-app .adventure-progress progress {min-width:30px;max-width:100%}
#student-app .adventure-actions>.action-button {width:fit-content;max-width:100%;min-height:42px;margin:0;padding:7px 13px}
#student-app button:focus-visible,#student-app input:focus-visible,#student-app a:focus-visible {outline:3px solid #247f83;outline-offset:2px}
@media(max-width:640px){
 #student-app .student-main {padding:12px 14px 36px}
 #student-section-title {margin:15px 0 9px}
}

#student-app .adventure-actions {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid #d9e3d6}
#student-app .adventure-actions .adventure-progress {display:grid;grid-template-columns:1fr;min-width:42px;max-width:110px;flex:1;gap:3px}
#student-app .adventure-actions progress {width:100%;height:6px}
#student-app .adventure-card>.adventure-feedback,#student-app .adventure-card>.adventure-accuracy {grid-column:1/-1;margin:0 12px 8px}
@media (max-height:500px) and (orientation:landscape) {
 #student-app .student-main {padding-top:6px}
 #student-section-title {margin:9px 0}
}
body:has(#student-app:not([hidden]))>.preview-ribbon {display:none}
@media (max-height:500px) and (orientation:landscape) {
 #student-app .student-topbar {height:48px;min-height:48px;padding-block:0}
 #student-app .student-topbar .header-brand img {max-height:36px}
}

#student-app[data-view=world] #student-section-title {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#student-app .student-main {width:min(100%,920px);margin-inline:auto;box-sizing:border-box}
#student-content .explorer-pockets {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
#student-content .learning-panel:not([hidden])+.explorer-pockets {margin-top:24px}
.explorer-pockets .explorer-pocket {--wash:#e7f3e9;--edge:#bfd9c8;position:relative;display:flex;align-items:center;gap:clamp(10px,2vw,19px);min-height:94px;min-width:0;padding:4px 16px 4px 8px;border:1px solid var(--edge);border-radius:19px;border-inline-start:4px solid var(--edge);color:#193e41;background:#fffdf6;text-decoration:none;box-shadow:0 2px 0 var(--edge);transition:background .15s}
.explorer-pockets .pocket-reading {--wash:#fff0d7;--edge:#e2cb9d}
.explorer-pockets .pocket-listening {--wash:#e0f3f3;--edge:#a8cecf}
.explorer-pockets .pocket-writing {--wash:#f0e9fa;--edge:#d2c0e4}
.explorer-pockets .pocket-speaking {--wash:#ffebe2;--edge:#e4c7ba}
.explorer-pocket img {width:84px;height:84px;flex:0 0 auto;object-fit:contain;background:radial-gradient(ellipse at 50% 65%,var(--wash) 49%,transparent 72%)}
.explorer-pocket strong {font:850 clamp(1.05rem,1.9vw,1.3rem)/1.16 Nunito,system-ui,sans-serif;overflow-wrap:break-word}
.explorer-pocket small {font:800 .73rem/1.2 Nunito,system-ui,sans-serif;letter-spacing:.02em;margin-inline-start:auto;background:#fbe4bd;color:#644616;border-radius:8px;padding:4px 7px}
.explorer-pocket:hover {background:var(--wash)}
#student-menu .student-menu-frames {display:grid;gap:9px;margin-block:10px}
#student-menu .student-menu-frame {min-height:49px;padding:10px 16px;border:1px solid #68a99d;border-inline-start-width:5px;border-radius:12px;background:#225b5c;color:#fff9e4}
#student-menu .menu-progress {background:#44405e;border-color:#ac98c6}
#student-menu .student-menu-frame[aria-current=page] {outline:2px solid #fff4bb;outline-offset:1px}
#student-menu .menu-camp {display:block;max-width:195px;width:80%;height:auto;margin:10px auto 0}
#student-app .student-topbar {display:flex;align-items:center;gap:10px}
#student-app .student-topbar .header-brand {margin-inline-end:auto;min-width:0}
#student-search-open {display:flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #b6cfc4;border-radius:13px;background:#f6fcf6;color:#205657;font:750 1rem/1 Nunito,system-ui,sans-serif;cursor:pointer}
.search-glass {display:inline-block;box-sizing:border-box;width:17px;height:17px;border:2px solid currentColor;border-radius:50%;position:relative;margin:-2px 2px 0 0}
.search-glass::after {content:"";position:absolute;right:-5px;bottom:-3px;width:7px;height:2px;background:currentColor;transform:rotate(45deg);border-radius:2px}
#student-search {box-sizing:border-box;width:min(90vw,480px);max-height:80dvh;overflow:auto;margin:auto;padding:20px;border:1px solid #b9cebf;border-radius:20px;background:#fffdf6;color:#193f40;box-shadow:0 15px 65px #143e4233}
#student-search::backdrop {background:#173e49a6}
#student-search .search-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
#student-search h2 {font-size:1.5rem;margin:0}
#student-search button {width:44px;height:44px;border:1px solid #c5d5c9;background:#f2f7ef;color:#205456;font-size:1.6rem;border-radius:12px}
#student-search label {display:block;font-size:.92rem;font-weight:750;margin-bottom:6px}
#student-search input {box-sizing:border-box;display:block;width:100%;padding:11px 12px;font:inherit;background:#fff;border:1px solid #779e96;border-radius:10px}
#student-search ul {padding:0;margin:10px 0 0;list-style:none}
#student-search li+li {border-top:1px solid #d6e2d8}
#student-search li a {display:flex;flex-direction:column;justify-content:center;min-height:44px;padding:6px;color:#195b5e;text-decoration:none;font-weight:800}
#student-search li a:hover {background:#eef5ec}
#student-search li small {font-weight:600;color:#536b66}
#student-search [role=status] {margin:9px 0;font-size:.9rem}
#student-search [role=status]:empty {display:none}
#student-app .adventure-art {background-image:var(--skill-cover,url('/skill-entrance/theme1.webp'))}
#student-app .adventure-art.reading {--skill-cover:url('/skill-entrance/entry.webp')}
#student-app .adventure-art.listening {--skill-cover:url('/listening/covers/g2-t1-meet-explorers.webp')}
#student-app .adventure-art.writing {--skill-cover:url('/writing/art/2bfdc9feabf5a9afb5.webp')}
#student-app .adventure-art.vocabulary {--skill-cover:url('/listening/covers/g2-t2-supply-machine.webp')}
@media(max-width:600px){
 #student-content .explorer-pockets {grid-template-columns:1fr;gap:9px}
 .explorer-pockets .explorer-pocket {min-height:72px;gap:13px;padding:2px 14px 2px 6px;border-radius:15px}
 .explorer-pocket img {width:69px;height:69px}
 #student-app .student-topbar {gap:6px;padding-inline:10px}
 #student-search-open {width:44px;padding:0}
 #student-search-open span+span {display:none}
}
@media(max-width:365px){#student-app .student-topbar .header-brand small {display:none}}
@media(prefers-reduced-motion:reduce){.explorer-pockets .explorer-pocket {transition:none}}
