body[data-screen="menu"]{background:#f5f8fc;color:#24384c}
body[data-screen="menu"] .practice-shell{display:none}
body[data-screen="menu"] #app{width:100%;max-width:1240px;padding:22px 24px;line-height:1.5}
.lab-hero{background:#152e4b;color:#fff;border:0;border-radius:14px;padding:24px 30px}
.lab-brand{display:flex;align-items:center;gap:12px}
.lab-brand h1{font-size:30px;letter-spacing:.04em}
.lab-brand small{margin-left:auto;font-size:13px;color:#bacde2}
.lab-brand svg{width:32px;height:32px;flex:none}
.lab-hero p{margin-top:8px;color:#c4d8ee;font-size:15px}
.lab-subjects{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:20px 0 12px}
.lab-menu button{background:#edf2f8;color:#344c65;border:1px solid transparent;border-radius:8px;padding:9px 8px;font-weight:600;min-width:0;min-height:44px;position:relative}
.lab-menu button[aria-pressed="true"]{background:#245b94;color:#fff}
.lab-menu button[aria-pressed="true"]::after{content:"";width:.53em;height:.3em;position:absolute;right:6px;top:6px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.lab-menu :focus-visible{outline:3px solid #97520c;outline-offset:2px}
.lab-subjects button{display:flex;flex-direction:column;align-items:center;gap:5px}
.lab-subjects svg{width:25px;height:25px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lab-schools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;background:#edf2f8;border-radius:9px;padding:4px}
.lab-schools button{background:transparent}
.lab-filters{display:flex;gap:7px;flex-wrap:wrap;border-top:1px solid #dce4ec;padding:14px 0 4px;margin-top:18px}
.lab-filters button{border-color:#cbd8e7;border-radius:999px;background:#fff;padding:7px 13px;min-height:44px;font-size:13px}
.lab-filters button[aria-pressed="true"]{border-color:#245b94;padding-right:24px}
.lab-filters button[aria-pressed="true"]::after{top:calc(50% - 4px);right:9px}
.lab-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0}
.lab-heading h2{font-size:22px}
.lab-count{flex:none;font-size:13px;color:#526d8d}
.lab-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.lab-card{display:flex;flex-direction:column;min-width:0;border:1px solid #dce4ec;border-radius:12px;overflow:hidden;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 6px #152e4b08}
@media(hover:hover){.lab-card:hover{border-color:#3977b3;box-shadow:0 4px 12px #152e4b18}.lab-card:hover h3{text-decoration:underline}}
.lab-thumb{aspect-ratio:12/7;background:#eaf3fc;display:grid;place-items:center}
.lab-thumb[data-subject="english"]{background:#eef5ec}
.lab-thumb svg{width:91%;height:91%}
.lab-info{padding:13px 14px 16px}
.lab-meta{font-size:11px;color:#526d8d}
.lab-info h3{font-size:17px;margin:7px 0 4px;line-height:1.4;overflow-wrap:anywhere}
.lab-info p{font-size:13px;color:#526d8d;line-height:1.6;overflow-wrap:anywhere}
.lab-empty{grid-column:1/-1;text-align:center;padding:45px 12px;color:#526d8d;background:#edf2f8;border-radius:12px}
.lab-footer{text-align:center;color:#526d8d;font-size:12px;margin-top:30px;padding:18px 0;border-top:1px solid #dce4ec}
@media(max-width:1023px){.lab-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){
 body[data-screen="menu"] #app{padding:12px}
 .lab-hero{padding:18px 15px}
 .lab-brand h1{font-size:24px}.lab-brand small{font-size:11px}
 .lab-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .lab-info{padding:10px}.lab-info h3{font-size:15px}.lab-info p{font-size:12px}
 .lab-subjects{gap:4px}.lab-subjects button,.lab-schools button{font-size:13px;padding:8px 2px}
 .lab-subjects button[aria-pressed="true"]::after,.lab-schools button[aria-pressed="true"]::after{top:4px;right:4px}
 .lab-heading h2{font-size:18px}
}
@media(max-width:320px){.lab-cards{grid-template-columns:minmax(0,1fr)}.lab-brand{gap:8px}.lab-brand h1{font-size:21px}}
