.panel-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:12px;margin:16px 0 20px}
.panel-category,.panel-profile{min-width:0;padding:16px;border:1px solid #b8d2c9;border-radius:18px;background:#fffef7;color:#204c4f}
.panel-category h2{font:750 1rem/1.25 'DM Sans',system-ui,sans-serif;margin:0 0 10px;color:#185459}
.panel-category>div,.panel-profile-actions{display:flex;flex-wrap:wrap;gap:7px}
.panel-category button,.panel-home-link,.option-frame button{font:inherit;color:#174b4d;background:#f2f8f5;border:1px solid #b9d4cc;border-radius:10px;padding:8px 12px;min-height:42px;cursor:pointer}
.panel-category button[aria-current=page],.option-tiles button[aria-pressed=true]{background:#12666a;color:white;border-color:#104d53;font-weight:bold}
.panel-collection,.teacher-collection{margin:16px 0}
.panel-profile{position:relative;width:min(94%,780px);margin:16px auto}
.panel-profile .drawer-heading{display:flex;align-items:center;justify-content:space-between}
.panel-profile .profile-action{width:auto;margin:0}
.panel-profile-actions{margin-top:12px;align-items:start}
#teacher-app .scope-bar.teacher-scope,.student-content-head{align-items:start}
body .student-controls,body .teacher-scope{display:flex;align-items:flex-start;flex-wrap:wrap;gap:14px}
body .student-controls label,body .teacher-scope label,.option-frame{min-width:0;max-width:100%}
body .teacher-scope .teacher-week-field{flex:2 1 280px}.student-controls{width:min(100%,42rem)}
body .student-controls label:has(#student-week){flex:1 1 225px}
body select.framed-select{display:none!important}
.option-frame,.option-pages,.option-tiles{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.option-frame{flex-direction:column;align-items:flex-start;margin:5px 0;letter-spacing:normal;text-transform:none}
.option-frame button{font:650 .9rem/1.25 system-ui,sans-serif;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.option-frame button:disabled{opacity:.55;cursor:default}
.option-pages:empty{display:none}.option-pages button{border:0;background:transparent;text-decoration:underline;font-size:.83rem}
.option-pages span{font-size:.8rem;color:#416264}.fixed-choice{font-weight:750;color:#1a5354}
select[hidden]+.option-frame,.panel-profile[hidden]{display:none!important}
.panel-category button:focus-visible,.option-frame button:focus-visible,.panel-home-link:focus-visible{outline:3px solid #19838a;outline-offset:2px}
.student-hero img.student-hero-characters{object-fit:contain;object-position:center bottom;align-self:end;justify-self:center;max-height:350px;filter:none}
@media(max-width:700px){.panel-categories{grid-template-columns:1fr;gap:8px}.panel-category{padding:12px}.panel-category>div{gap:5px}.student-content-head{display:grid;gap:10px}.student-hero img.student-hero-characters{width:min(100%,430px);max-height:230px}.student-controls label{min-width:0}}
/* Drawer navigation for both workspaces. */
:root:has(.workspace-drawer[open]){overflow:hidden}
#teacher-app .menu-toggle,#student-app .menu-toggle{display:inline-grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #b5d2c8;border-radius:13px;color:#155356;background:#f6fcf6}
.hamburger-lines,.hamburger-lines::before,.hamburger-lines::after{display:block;width:21px;height:2px;border-radius:2px;background:currentColor}
.hamburger-lines{position:relative}.hamburger-lines::before,.hamburger-lines::after{content:"";position:absolute;left:0}.hamburger-lines::before{top:-6px}.hamburger-lines::after{top:6px}
.workspace-drawer{position:fixed;overscroll-behavior:contain}
.workspace-menu-inner{padding: max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.workspace-drawer .drawer-heading{margin:0 0 8px;padding-bottom:10px;border-bottom:1px solid #ffffff32}
.workspace-drawer .drawer-heading h2{color:#fff9e5;font:800 1.35rem/1.2 Nunito,system-ui,sans-serif}
.workspace-drawer [data-drawer-close]{width:44px;height:44px;border:0;border-radius:12px;background:#ffffff18;color:white;font-size:1.6rem;cursor:pointer}
.workspace-drawer .workspace-menu-inner nav{margin:6px 0 12px;gap:12px}
.workspace-menu-inner nav section{display:flex;flex-flow:column;gap:2px}
.workspace-menu-inner nav h3{margin:7px 10px 3px;color:#a9dfd2;font:700 .85rem/1.3 Nunito,system-ui,sans-serif}
.workspace-drawer .workspace-menu-inner nav :is(a,button),.workspace-drawer .menu-entrance{display:flex;align-items:center;width:100%;min-height:44px;margin:0;border:0;border-radius:8px;padding:8px 12px;color:white;background:transparent;text-decoration:none;text-align:left;font:700 1rem/1.3 Nunito,system-ui,sans-serif;cursor:pointer}
.workspace-drawer .workspace-menu-inner nav [aria-current=page]{color:#143d40;background:#bdece1;box-shadow:none}
.workspace-drawer nav :is(button,a):hover,.workspace-drawer .menu-entrance:hover{background:#ffffff21}
.workspace-drawer .menu-entrance{border-top:1px solid #ffffff32;border-radius:0;color:#fff1cb}
.workspace-drawer :is(a,button):focus-visible{outline:2px solid #ffce64;outline-offset:-2px}
