/* Common home only: neither study theme nor existing learning controls are restyled. */
body[data-workspace=student]:not(.learning-shell){background:#f7f9f5;color:#243e36}
.mini-home,.mini-list{max-width:1180px;margin:auto;color:#243e36;--mini-green:#25634e;--mini-border:#e0e8df}
.mini-welcome{display:grid;grid-template-columns:minmax(0,1fr) 37%;align-items:center;gap:24px;margin-bottom:20px;min-height:178px}
.mini-welcome-art{height:178px;overflow:hidden;border-radius:65px 20px 55px 20px;background:#e1eeeb}.mini-welcome-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:34% 50%;opacity:.93}
.mini-eyebrow{font-size:.78rem;font-weight:700;letter-spacing:.09em;color:#477664;margin:0 0 10px}
.mini-welcome h2{font-size:clamp(1.65rem,4vw,2.4rem);line-height:1.25;letter-spacing:-.045em;margin:0 0 12px;font-weight:750}
.mini-welcome-copy{color:#58706a;margin:0;line-height:1.7}
.mini-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 30px}
.mini-button{min-height:44px;padding:9px 16px;border:1px solid var(--mini-border,#dce7dd);border-radius:12px;background:#fff;color:#254b43;font:inherit;font-weight:650;cursor:pointer;line-height:1.4;overflow-wrap:anywhere}
.mini-button:hover{background:#edf5ee;border-color:#8db6a1}.mini-button:focus-visible,.mini-track:focus-visible,.mini-menu summary:focus-visible{outline:3px solid #d49436;outline-offset:3px}
.mini-primary{background:#2f6449;color:white;border-color:#2f6449}.mini-primary:hover{background:#214e38;color:white}
.mini-section-heading{display:flex;align-items:center;gap:10px;margin:22px 0 10px;min-width:0}.mini-section-heading h2{font-size:1.45rem;margin:0}.mini-section-heading h3{font-size:1.06rem;margin:0;overflow-wrap:anywhere}
.mini-count{font-size:.8rem;color:#637b70;background:#ebf0e7;border-radius:99px;padding:2px 8px}.mini-scroll-controls{margin-left:auto;display:flex;gap:5px}.mini-scroll-controls button{font-size:1.5rem;min-width:44px;padding:0 8px}
.mini-carousel{margin:0 0 18px;min-width:0}.mini-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding:6px 3px 14px;scrollbar-width:thin;overscroll-behavior-x:contain;min-width:0}
.mini-card{flex:0 0 248px;scroll-snap-align:start;position:relative;background:#fff;border:1px solid var(--mini-border,#dce7dd);border-radius:18px;padding:15px;display:flex;flex-direction:column;min-width:0;box-shadow:0 3px 10px #214a3710}
.mini-card h3{font-size:1.04rem;font-weight:700;line-height:1.55;overflow-wrap:anywhere;margin:3px 0 12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.mini-card p{overflow-wrap:anywhere;line-height:1.55}.mini-card .mini-primary{margin-top:auto;align-self:stretch}.mini-card progress{height:6px;width:100%;accent-color:#759755;margin:0 0 14px}
.mini-card-head{display:flex;justify-content:space-between;align-items:start;gap:6px;min-height:40px}.mini-badge{font-size:.75rem;color:#527268;background:#edf4ed;border-radius:6px;padding:3px 7px}.is-active .mini-badge{color:#1b6c5d;background:#dff2e9}.is-done .mini-badge{color:#5d64a2;background:#ededfb}.is-expired .mini-badge{color:#7d6252;background:#f4ece6}
.mini-subject{font-size:.73rem;letter-spacing:.04em;font-weight:650;color:#729584;margin:0}.mini-meta{font-size:.8rem;color:#60776f}.mini-expired,.mini-rejected{font-size:.82rem;color:#8b5940}.mini-pending{font-size:.8rem;color:#826620;background:#fff5d8;padding:7px;border-radius:7px}
.mini-menu{position:relative}.mini-menu summary{list-style:none;cursor:pointer;min-width:44px;min-height:44px;line-height:30px;text-align:center;border-radius:8px;font-weight:bold}.mini-menu summary::-webkit-details-marker{display:none}.mini-menu[open] summary{background:#edf4ed}.mini-menu-actions{position:absolute;z-index:5;right:0;top:38px;width:190px;max-width:70vw;padding:10px;background:white;border:1px solid #cadbcf;border-radius:12px;box-shadow:0 8px 24px #163b3126}.mini-menu-actions p{font-size:.8rem}.mini-menu-actions button{width:100%;margin:3px 0}
.mini-resume{border:1px solid #d4e3b8;border-radius:20px;background:#eaf2d9;padding:4px 18px 6px}.mini-resume .mini-card{background:#f5f9eb;flex-basis:min(400px,90%)}.mini-resume .mini-section-heading{margin-top:12px}.mini-empty{padding:18px;margin:0;color:#788a7f;font-size:.9rem}.mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:14px}.mini-approvals{margin-top:24px}.mini-approvals article{padding:16px;gap:8px}
@media(max-width:600px){.mini-welcome{padding:24px 20px;border-radius:18px}.mini-shortcuts{gap:6px;margin-bottom:22px}.mini-shortcuts .mini-button{font-size:.83rem;padding:8px 11px}.mini-card{flex-basis:calc(100% - 42px);max-width:280px}.mini-resume{padding-left:12px;padding-right:12px}.mini-section-heading h2{font-size:1.25rem}.mini-grid{grid-template-columns:1fr}.mini-grid .mini-card{max-width:none}.mini-track{gap:10px}.mini-menu-actions{right:0}}

.mini-dialog{border:1px solid #cdded3;border-radius:20px;padding:24px;max-width:min(440px,92vw);color:#263c39}.mini-dialog::backdrop{background:#183a345c}.mini-dialog h2{font-size:1.1rem;line-height:1.7;overflow-wrap:anywhere}.mini-dialog label{display:block}.mini-dialog input{display:block;width:100%;min-height:44px;margin:12px 0;padding:10px;border:1px solid #aac7b6;border-radius:9px}.mini-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.mini-board{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:26px;align-items:start}.mini-board-main,.mini-board-side{min-width:0}.mini-board-side{padding-top:22px}.mini-summary{padding:24px 22px;border:1px solid #dae4d0;border-radius:18px;background:#eef3e8}.mini-summary h2,.mini-review-link h2{font-size:1rem}.mini-summary-count strong{font-size:2.6rem;font-weight:600;color:#3b603f}.mini-summary-count span{font-size:.75rem;color:#61775b}.mini-summary progress{height:7px;width:100%;accent-color:#8ba96d}.mini-summary .mini-button,.mini-review-link .mini-button{background:transparent;border:0;padding-left:0}.mini-review-link{padding:26px 20px;border-bottom:1px solid #e0e7da}.mini-review-link p{font-size:.83rem;color:#7d8772;line-height:1.8}
body[data-workspace=student]:not(.learning-shell) #app-sidebar{background:#f0f4ed;border-color:#e0e8df}body[data-workspace=student]:not(.learning-shell) #app-sidebar .nav-link{color:#45664c;border-radius:12px;min-height:48px}body[data-workspace=student]:not(.learning-shell) #app-sidebar .nav-link.active{background:#fff;color:#28593e}
.learning-shell #back .study-home-well{display:block;width:56px;height:56px;object-fit:contain}.learning-shell #back:has(.study-home-well){width:70px;height:70px;padding:4px;flex:none}
@media(max-width:1100px){.mini-board{grid-template-columns:minmax(0,1fr)}.mini-board-side{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:0}.mini-review-link{border:1px solid #e0e7da;border-radius:18px}}
@media(max-width:600px){.mini-welcome{grid-template-columns:minmax(0,1fr);padding:12px 0}.mini-welcome-art{height:124px;border-radius:40px 14px 35px 14px}.mini-welcome h2{font-size:1.7rem}.mini-board-side{grid-template-columns:1fr}.mini-resume .mini-card{flex-basis:calc(100% - 24px)}.mini-section-heading{flex-wrap:wrap}.mini-section-heading .mini-scroll-controls{flex-wrap:nowrap}.mini-dialog{box-sizing:border-box}.learning-shell #back .study-home-well{width:48px;height:48px}.learning-shell #back:has(.study-home-well){width:60px;height:60px}}

.learning-journey{max-width:980px;margin:auto;padding:20px;color:#e8e4dc;background:#1d201e;border-radius:14px}.learning-journey h2{font-size:1.5rem}.learning-journey p{line-height:1.7;color:#c9c5bc}.journey-card{background:#252627;border:1px solid #454541;border-radius:12px;margin:12px 0;padding:20px}.journey-card h4,.journey-card h3{margin:0 0 10px;font-size:1.1rem;overflow-wrap:anywhere}.journey-card label{display:flex;align-items:center;gap:12px;min-height:44px}.journey-card small{color:#c2beb2}.learning-journey button,.journey-card button{min-height:44px;max-width:100%}.learning-journey button{background:#2b3028;color:#eee8dc;border:1px solid #777d68;border-radius:9px;padding:10px 14px}.learning-journey button:focus-visible{outline:3px solid #d4a46c;outline-offset:3px}@media(max-width:600px){.learning-journey{padding:12px}.journey-card{padding:16px}.journey-card p{font-size:14px}}
/* v9: student presentation only. Reader, learning engine and teacher styles are excluded. */
body[data-student-v9][data-workspace=student]:not(.learning-shell){background:#101214;color:#e9e5db}
body[data-student-v9][data-workspace=student]:not(.learning-shell) .app-layout{display:grid!important;grid-template-columns:216px minmax(0,1fr);background:#101214!important;min-height:calc(100vh - 64px)}
body[data-student-v9][data-workspace=student]:not(.learning-shell) #app-sidebar{display:block!important;background:#131518!important;border-right:1px solid #30353a!important;padding:20px 12px}
body[data-student-v9][data-workspace=student]:not(.learning-shell) #app-sidebar .nav-link{display:flex;align-items:center;gap:10px;color:#c4c9bd;background:transparent;border:1px solid transparent;min-height:46px;padding:10px 12px;font-size:13px;border-radius:8px}
body[data-student-v9][data-workspace=student]:not(.learning-shell) #app-sidebar .nav-link.active{background:#262b2a;color:#eee9d9;border-color:#4d5747}
body[data-student-v9][data-workspace=student]:not(.learning-shell) #app-sidebar .nav-link:disabled{color:#858c82;opacity:1;cursor:not-allowed}
body[data-student-v9] .v9-nav-symbol{width:20px;text-align:center;color:#b2b99b}
body[data-student-v9] #app-sidebar small{margin-left:auto;font-size:10px;color:#9caa95}
body[data-student-v9][data-workspace=student]:not(.learning-shell) #main-content{max-width:1300px!important;width:100%!important;margin:0 auto!important;padding:24px 32px 70px!important;min-width:0;box-sizing:border-box}
body[data-student-v9][data-workspace=student]:not(.learning-shell) :is(#home,#home-overview){background:transparent!important;border:0!important;padding:0!important;min-width:0;box-shadow:none}
body[data-student-v9][data-workspace=student]:not(.learning-shell) :is(#home-title,main>.notice){display:none!important}
body[data-student-v9][data-workspace=student]:not(.learning-shell)>header{display:flex!important;background:#131518!important;border-bottom:1px solid #30353a;color:#e4decd;padding:10px 180px 10px 24px!important;min-height:64px;box-sizing:border-box;gap:12px}
body[data-student-v9][data-workspace=student]:not(.learning-shell)>header h1{font-size:17px!important;margin:0}
body[data-student-v9][data-workspace=student]:not(.learning-shell)>header p{display:none}
.v9-fullscreen{display:none}
body[data-student-v9][data-workspace=student] .v9-fullscreen{display:block;position:absolute;top:10px;right:18px;z-index:40;min-height:44px;padding:8px 14px;border:1px solid #44494c;border-radius:8px;background:#22262a;color:#eee9de;font-size:12px}
body[data-student-v9].learning-shell .v9-fullscreen{position:fixed;top:auto;bottom:14px;right:18px}
body[data-student-v9].rs-open .v9-fullscreen{display:none}
body[data-student-v9] #home-overview :is(button,summary,[tabindex]):focus-visible,.v9-confirm :focus-visible,.v9-fullscreen:focus-visible{outline:2px solid #dfae77!important;outline-offset:3px}
body[data-student-v9] #home-overview :is(.mini-scroll-controls,.pl-arrows){display:none!important}
body[data-student-v9] #home-overview :is(.mini-track,.pl-track){display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:8px 0 14px;scroll-snap-type:x proximity;touch-action:pan-x pan-y;cursor:grab}
body[data-student-v9] #home-overview :is(.mini-track,.pl-track)::-webkit-scrollbar{display:none}
body[data-student-v9] #home-overview .v9-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
body[data-student-v9] #home-overview .v9-task{flex:0 0 218px;width:218px;max-width:218px;height:auto;min-height:154px;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:#1b1e1c!important;color:#f0eee8;border:1px solid #3a403c!important;border-radius:10px;box-shadow:none;scroll-snap-align:start}
body[data-student-v9] #home-overview .v9-task h3{font-size:14px!important;font-weight:650!important;line-height:1.45!important;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;min-height:40.6px;color:#eeeae3}
body[data-student-v9] #home-overview .v9-card-head{display:flex;align-items:center;justify-content:space-between;min-height:28px}
body[data-student-v9] #home-overview .v9-subject{font-size:10px;color:#aeb6a8;letter-spacing:.06em}
body[data-student-v9] #home-overview .v9-card-tools{display:flex;align-items:center;position:relative;z-index:3;margin:-8px -10px -5px 0}
body[data-student-v9] #home-overview .v9-card-tools :is(button,summary){min-width:44px;min-height:44px;border:0;background:transparent;color:#bfc4b9;border-radius:7px;line-height:28px;padding:8px}
body[data-student-v9] #home-overview .mini-menu-actions{background:#1d2024;color:#ede8dc;border:1px solid #44494c;top:40px;z-index:8}
body[data-student-v9] #home-overview .mini-menu-actions p{color:#c4cbb8}
body[data-student-v9] #home-overview .v9-card-open{position:absolute;inset:0;border:0;background:transparent!important;border-radius:9px;cursor:pointer;z-index:2;min-width:44px;min-height:44px}
body[data-student-v9] #home-overview .v9-card-open:hover{box-shadow:inset 0 0 0 1px #9a9f79}
body[data-student-v9] #home-overview .v9-card-stats{display:flex;align-items:center;gap:7px;font-size:12px;margin-top:0;color:#d2d5d0;min-height:20px}
body[data-student-v9] #home-overview .v9-state-dot{width:8px;height:8px;border-radius:50%;background:#bd7973;flex-shrink:0}
body[data-student-v9] #home-overview .is-active .v9-state-dot{background:#d7b463}
body[data-student-v9] #home-overview .is-done .v9-state-dot{background:#7aa2c5}
body[data-student-v9] #home-overview .is-expired .v9-state-dot{background:#8c8c83}
body[data-student-v9] #home-overview .v9-repeat{font-size:11px;margin-left:auto;color:#bec6af}
body[data-student-v9] #home-overview :is(.v9-essential,.v9-card-note){font-size:12px;margin:0;line-height:1.5;color:#d3c4a5;overflow-wrap:anywhere}
body[data-student-v9] #home-overview .v9-essential{color:#e4b398}
body[data-student-v9] #home-overview .v9-page-head{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;gap:12px}
body[data-student-v9] #home-overview .v9-page-head h2{font-size:24px;font-weight:500;margin:4px 0;color:#f0eee8}
body[data-student-v9] #home-overview .v9-eyebrow{color:#9ba88d;font-size:10px;letter-spacing:.16em;margin:0}
body[data-student-v9] #home-overview .v9-button,.v9-confirm .v9-button{color:#d8ddcd;background:#22262a;border:1px solid #44494c;min-height:44px;padding:9px 14px;border-radius:8px;font-size:12px}
body[data-student-v9] #home-overview .v9-week{padding:18px;border:1px solid #30353a;border-radius:12px;background:#181b1e;margin-bottom:26px}
body[data-student-v9] #home-overview :is(.v9-week,.v9-section-heading) h3{font-size:16px;line-height:1.5;font-weight:500;margin:0;color:#f0eee8}
body[data-student-v9] #home-overview .v9-muted{color:#a4aaa5;font-size:12px;line-height:1.7;margin:8px 0 12px}
body[data-student-v9] #home-overview .v9-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
body[data-student-v9] #home-overview .v9-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:66px;padding:8px 2px;border:1px solid #353a3e;border-radius:7px;background:#1d2024;color:#cdd1cd;font-size:12px}
body[data-student-v9] #home-overview .v9-day small{font-size:11px;color:#a4a8a5}
body[data-student-v9] #home-overview .v9-day[aria-pressed=true]{background:#30372d;border-color:#9ba779;color:#f2efda}
body[data-student-v9] #home-overview .v9-week-status{font-size:11px;color:#a4aaa5;margin:12px 0 0}
body[data-student-v9] #home-overview .v9-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 8px}
body[data-student-v9] #home-overview .v9-tabs{display:flex;gap:4px;padding:3px;background:#181b1e;border:1px solid #353a3e;border-radius:9px}
body[data-student-v9] #home-overview .v9-tabs button{border:0;background:transparent;min-height:40px;padding:8px 12px;font-size:12px}
body[data-student-v9] #home-overview .v9-tabs button[aria-pressed=true]{background:#363f32;color:#f0ebd7}
body[data-student-v9] #home-overview .v9-count{font-size:12px;color:#a4aaa5}
body[data-student-v9] #home-overview .v9-empty{padding:24px;border:1px dashed #44494c;color:#b8c2a9;border-radius:10px;font-size:13px}
body[data-student-v9] #home-overview .v9-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px;padding-top:16px;border-top:1px solid #30353a}
body[data-student-v9] #home-overview .pl-page{max-width:none;padding:0;background:transparent}
body[data-student-v9] #home-overview .pl-title{font-size:24px!important;font-weight:500!important}
body[data-student-v9] #home-overview .pl-description{display:none}
body[data-student-v9] #home-overview .pl-card{background:#1b1e1c;border-color:#3a403c;box-shadow:none;height:auto;min-height:186px;padding:12px 14px;border-radius:10px;gap:8px}
body[data-student-v9] #home-overview .pl-card :is(h3,h4){font-size:14px!important;line-height:1.45;font-weight:650}
body[data-student-v9] #home-overview .pl-hero{padding:18px;background:#1b1e1c;border:1px solid #3a403c;min-height:0}
body[data-student-v9] #home-overview .pl-archive{display:block;padding:12px 0 18px;background:none;border:0;min-height:0}body[data-student-v9] #home-overview :is(.pl-archive-art,.pl-archive-description){display:none}body[data-student-v9] #home-overview .pl-heading h2{font-size:24px;font-weight:500;color:#f0eee8}
body[data-student-v9] #world-places.wp-frame{padding:0;max-width:none;background:transparent}
body[data-student-v9] #world-places.wp-frame .wp-student-banner{padding:8px 0 0;margin:0 0 23px;min-height:0;background:none;border:0;border-radius:0;box-shadow:none}
body[data-student-v9] #world-places.wp-frame .wp-banner-name{font-size:23px;font-weight:500;color:#f0eee8}
body[data-student-v9] #world-places.wp-frame .wp-student-banner p{display:none}
body[data-student-v9] #world-places.wp-frame .wp-directory{display:none}
body[data-student-v9] #world-places.wp-frame .wp-place-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
body[data-student-v9] #world-places.wp-frame .wp-portal{background:#1b1e1c!important;border:1px solid #3a403c!important;box-shadow:none!important;border-radius:12px;min-height:153px;padding:21px 20px 17px;justify-content:flex-start}
body[data-student-v9] #world-places.wp-frame .wp-portal.is-locked,body[data-student-v9] #world-places.wp-frame .wp-portal:disabled{background:#181b1e!important;border-color:#30353a!important}
.v9-confirm{width:min(440px,calc(100vw - 32px));box-sizing:border-box;background:#1c1f22;color:#e9e5d6;border:1px solid #52585a;border-radius:14px;padding:24px;box-shadow:0 24px 70px #0008}
.v9-confirm::backdrop{background:#070b09aa}
.v9-confirm h2{font-size:20px;font-weight:500;margin:0 0 16px}.v9-confirm p{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.v9-confirm .v9-muted{font-size:12px;color:#b7c0a8}.v9-confirm .v9-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.v9-confirm .v9-primary{background:#a77d50;color:#fff7e9;border-color:#c69967}.v9-confirm dt{font-size:12px;color:#aebc99;margin-top:12px}.v9-confirm dd{margin:3px 0 0;font-size:14px;overflow-wrap:anywhere}
@media(max-width:1100px){body[data-student-v9][data-workspace=student]:not(.learning-shell) .app-layout{grid-template-columns:180px minmax(0,1fr)}body[data-student-v9][data-workspace=student]:not(.learning-shell) #main-content{padding:22px 20px 60px!important}body[data-student-v9] #world-places.wp-frame .wp-place-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body[data-student-v9][data-workspace=student]:not(.learning-shell) .app-layout{display:block!important}body[data-student-v9][data-workspace=student]:not(.learning-shell) #app-sidebar{padding:6px 12px!important;border-right:0!important;border-bottom:1px solid #30353a}body[data-student-v9] #app-sidebar>:not(nav){display:none}body[data-student-v9] #app-sidebar nav{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:4px}body[data-student-v9] #app-sidebar nav::-webkit-scrollbar{display:none}body[data-student-v9][data-workspace=student]:not(.learning-shell) #app-sidebar .nav-link{flex:0 0 auto;padding:8px 10px;min-height:44px;white-space:nowrap;font-size:12px}body[data-student-v9] #app-sidebar small{display:none}body[data-student-v9][data-workspace=student]:not(.learning-shell) #main-content{padding:20px 16px 48px!important}body[data-student-v9][data-workspace=student]:not(.learning-shell)>header{padding:10px 142px 10px 16px!important;gap:8px}body[data-student-v9][data-workspace=student]:not(.learning-shell)>header h1{font-size:14px!important}body[data-student-v9] .v9-fullscreen{right:10px;font-size:11px;padding:8px 10px}body[data-student-v9] #world-places.wp-frame .wp-place-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body[data-student-v9] #home-overview .v9-week{padding:14px 12px}body[data-student-v9] #home-overview .v9-days{gap:4px}body[data-student-v9] #home-overview .v9-day{min-height:64px}body[data-student-v9] #home-overview .v9-page-head h2,body[data-student-v9] #home-overview .pl-title{font-size:21px!important}body[data-student-v9] #home-overview .v9-section-heading{gap:8px}body[data-student-v9] #home-overview .v9-tabs button{padding:8px 10px;font-size:11px}body[data-student-v9] #home-overview .v9-task{flex-basis:218px;max-width:218px}body[data-student-v9] #home-overview .pl-card{flex-basis:265px}}
/* Override rev59's place-page sidebar suppression only in the v9 student shell. */
body[data-student-v9][data-workspace=student]:not(.learning-shell):has(#home-overview) #app-sidebar{display:block!important}
body[data-student-v9][data-workspace=student]:not(.learning-shell):has(#home-overview) #main-content{grid-column:2;min-width:0}
@media(max-width:760px){body[data-student-v9][data-workspace=student]:not(.learning-shell):has(#home-overview) #main-content{grid-column:auto}}
body[data-student-v9][data-workspace=student]:not(.learning-shell):has(#home #home-overview) #app-sidebar{display:block!important;visibility:visible}
body[data-student-v9][data-workspace=student]:not(.learning-shell):has(#home #home-overview) #main-content{min-width:0;width:100%!important;max-width:1300px!important;grid-column:2}
@media(max-width:760px){body[data-student-v9][data-workspace=student]:not(.learning-shell):has(#home #home-overview) #main-content{grid-column:auto}}
body[data-student-v9] #home-overview .v9-page-head{background:transparent;border:0;box-shadow:none;padding:0}
body[data-student-v9][data-workspace=student]:not(.learning-shell) #logout{min-height:44px;background:#22262a;color:#e6e7d6;border:1px solid #44494c;border-radius:8px;font-size:12px}
body[data-student-v9] #home-overview .pl-heading{background:transparent;border:0;padding:8px 0 20px;box-shadow:none}
body[data-student-v9] #home-overview .pl-heading>p{display:none}
body[data-student-v9] #home-overview .pl-page :is(.pl-primary,.pl-secondary,.pl-back){background:#272b27;border-color:#51564a;color:#e8e6d7;min-height:44px}
@media(max-width:420px){body[data-student-v9] #home-overview .v9-week{padding:14px 6px}body[data-student-v9] #home-overview .v9-days{gap:2px;grid-template-columns:repeat(7,minmax(44px,1fr));overflow-x:auto;scrollbar-width:none}}
/* Keep the extra fullscreen control out of existing answer/navigation hit areas. */
body[data-student-v9].learning-shell .v9-fullscreen{position:static;display:block;inset:auto;margin:14px auto;width:max-content}
body[data-student-v9].learning-shell.rs-open .v9-fullscreen{display:none}

/* Match the approved v9 font stack without inheriting it into the actual reader. */
body[data-student-v9][data-workspace=student]:not(.learning-shell):not(.rs-open){background:#101214!important}
body[data-student-v9][data-workspace=student]:not(.learning-shell) :is(#home-overview,#app-sidebar),
body[data-student-v9][data-workspace=student]:not(.learning-shell)>header,
.v9-confirm{font-family:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif}
body[data-student-v9] #home-overview :is(#world-places,.pl-page){font-family:inherit;--student-font:Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif}
body[data-student-v9] #home-overview :is(button,select,summary),body[data-student-v9] #app-sidebar button{font-family:inherit}
body[data-student-v9] #world-places.wp-frame .wp-place-name{font-size:15px;font-weight:650;line-height:1.45;letter-spacing:-.03em}
body[data-student-v9] #world-places.wp-frame :is(.wp-open-label,.wp-seal){font-size:12px;color:#a4aaa5}
body[data-student-v9] #world-places.wp-frame .wp-portal:enabled{border-color:#535d49!important}
body[data-student-v9] #world-places.wp-frame .wp-portal:enabled:hover{background:#222623!important;border-color:#78816c!important}
body[data-student-v9] #home-overview .pl-card.v9-task{min-height:154px;height:auto}
body[data-student-v9] #home-overview .pl-card-actions{margin-top:8px;gap:6px}
body[data-student-v9] #home-overview .pl-card-actions>button{border-radius:8px;min-height:44px;font-size:12px;padding:8px 12px}
body[data-student-v9] #home-overview .pl-card:not(.v9-task) .pl-card-top{min-height:24px}
body[data-student-v9] #home-overview .pl-card:not(.v9-task) h3{min-height:40.6px}
body[data-student-v9] #home-overview .pl-card:not(.v9-task) .pl-detail{height:auto;min-height:0}
body[data-student-v9] #home-overview :is(.pl-filters,.mini-section-heading,.pl-subject-heading){font-family:inherit}
body[data-student-v9] #home-overview .pl-filter:not(.active),body[data-student-v9] #home-overview .pl-state-filter select{background:#22262a;border-color:#44494c;color:#d2d5d0}
@media(max-width:1180px){body[data-student-v9] #world-places.wp-frame .wp-place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){body[data-student-v9] #world-places.wp-frame .wp-portal{padding:13px;min-height:146px}body[data-student-v9] #world-places.wp-frame .wp-place-name{font-size:13px}body[data-student-v9] #world-places.wp-frame .wp-place-grid{gap:8px}}
@media(max-width:760px){body[data-student-v9][data-workspace=student]:not(.learning-shell)>header{flex-wrap:nowrap}body[data-student-v9][data-workspace=student]:not(.learning-shell)>header>span{display:none}}
/* The reference exposes part of the next card instead of navigation arrows. */
body[data-student-v9] #home-overview :is(.v9-task,.pl-card){flex:0 0 min(30%,326px);width:auto;min-width:245px;max-width:326px}
@media(max-width:1180px){body[data-student-v9] #home-overview :is(.v9-task,.pl-card){flex-basis:min(44%,325px)}}
@media(max-width:920px){body[data-student-v9] #home-overview :is(.v9-task,.pl-card){flex-basis:min(65%,326px)}}
@media(max-width:620px){body[data-student-v9] #home-overview :is(.v9-task,.pl-card){flex-basis:85%}}
/* v9 ROOM palette: shape is shared; confirmed room identity stays on edges/icons. */
body[data-student-v9] #world-places .wp-portal[data-place=yard]{--v9-room-ink:#bfab80;--v9-room-edge:#bfab8066}
body[data-student-v9] #world-places .wp-portal[data-place=concept]{--v9-room-ink:#c4a575;--v9-room-edge:#c4a57566}
body[data-student-v9] #world-places .wp-portal[data-place=practice]{--v9-room-ink:#a3b491;--v9-room-edge:#a3b49166}
body[data-student-v9] #world-places .wp-portal[data-place=advanced]{--v9-room-ink:#b2b5bd}
body[data-student-v9] #world-places .wp-portal[data-place=exam]{--v9-room-ink:#91adc8}
body[data-student-v9] #world-places .wp-portal[data-place=marsh]{--v9-room-ink:#b19bc9}
body[data-student-v9] #world-places .wp-portal[data-place=sea]{--v9-room-ink:#87b5ad}
body[data-student-v9] #world-places .wp-place-art{color:var(--v9-room-ink,#a4a5a0)}
body[data-student-v9] #world-places.wp-frame .wp-portal:enabled{border-color:var(--v9-room-edge,#535d49)!important}
body[data-student-v9] #home-overview[data-v9-page=yard] .v9-task{border-color:#bfab8066!important}
body[data-student-v9] #home-overview[data-v9-page=memory] .v9-task{border-color:#a3b49166!important}
body[data-student-v9] #home-overview[data-v9-page=cave] .pl-card{border-color:#c4a57566}
/* Do not invent marsh origin from a title; retain the existing room rule until explicit origin metadata is connected. */
body[data-student-v9] #home-overview .pl-marsh-page .pl-card{border-color:var(--pl-line)}
/* Memory: one outer frame for every subject, title length, state and tool count. */
body[data-student-v9] #home-overview .v9-card-notices{display:contents}
body[data-student-v9] #home-overview[data-v9-page=memory] .v9-task{
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:31px 40.6px 20px minmax(0,1fr);
 align-content:stretch;align-items:stretch;gap:8px;height:180px;min-height:180px;max-height:180px;padding:12px 14px;
}
body[data-student-v9] #home-overview[data-v9-page=memory] .v9-card-head{grid-row:1;min-height:0;height:31px}
body[data-student-v9] #home-overview[data-v9-page=memory] .v9-task>h3{grid-row:2;height:40.6px;min-height:0;margin:0}
body[data-student-v9] #home-overview[data-v9-page=memory] .v9-card-stats{grid-row:3;height:20px;min-height:0;margin:0}
body[data-student-v9] #home-overview[data-v9-page=memory] .v9-card-notices{
 grid-row:4;display:block;min-height:0;overflow:auto;position:relative;z-index:3;overscroll-behavior:contain;
}
