/* Storefront and classroom portals. All product data continues to come from the original views. */
.mq-portal .wrap { max-width:1200px; padding:64px 32px; }
.mq-portal .mq-header { padding:16px max(24px,calc((100vw - 1200px)/2)); gap:20px; background:#fff; border-bottom:1px solid #d1e0e7; }
.mq-portal .mq-header .logo { font-size:1.75rem; letter-spacing:-.05em; }
.mq-portal .mq-header nav { gap:8px 16px; }
.mq-portal .mq-header nav a { font-size:.875rem; min-height:44px; }
.mq-portal .nav-student { background:white; border-color:#8faebb; color:var(--mq-ocean); }
.mq-portal .nav-teacher { background:white; color:var(--mq-ocean); border-color:#8faebb; }
.mq-portal .nav-plan { background:var(--mq-ocean); color:white; padding:10px 14px; border-radius:8px; font-weight:750; }
.mq-portal .hero { min-height:0; background:#eaf6f8; position:relative; border-bottom:1px solid #c2dade; }
.mq-portal .hero:before { display:none; }
.mq-portal .hero-grid { grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr); gap:48px; padding-block:64px; align-items:center; }
.mq-portal .hero h1 { font-size:clamp(2.4rem,4vw,3.8rem); line-height:1.1; max-width:720px; margin:18px 0 24px; }
.mq-portal .hero h1 span { color:var(--mq-ocean); }
.mq-portal .hero .intro { font-size:1.125rem; line-height:1.7; max-width:550px; margin:0 0 28px; }
.mq-portal .hero-note { margin:20px 0 8px; font-size:.9375rem; font-weight:650; color:var(--mq-navy); }
.mq-portal .student-entry { font-size:.9375rem; color:var(--mq-ocean); font-weight:700; text-underline-offset:4px; }
.mq-portal .hero-window { border-radius:45% 45% 24px 24px; background:#bee8ee url('/assets/migo-landscape.webp') center/cover; padding:24px 20px 0; border:8px solid white; box-shadow:0 10px 32px #15344b15; position:relative; }
.mq-portal .hero-art { width:100%; height:auto; max-height:430px; object-fit:contain; filter:drop-shadow(0 14px 6px #12394325); display:block; margin:auto; }
.mq-portal .hero-window-caption { position:relative; margin:0 -20px; padding:16px 20px; background:white; border-radius:0 0 16px 16px; color:var(--mq-navy); }
.mq-portal .hero-window-caption span { display:block; font-size:.75rem; font-weight:750; letter-spacing:.07em; }
.mq-portal .hero-window-caption strong { display:block; font-family:var(--mq-head); font-size:1.5rem; }
.mq-portal .trail-strip { background:var(--mq-navy); color:white; border:0; }
.mq-portal .trail-strip .wrap { gap:20px; padding-block:20px; justify-content:space-between; font-size:.9375rem; }
.mq-portal .trail-strip b { color:#ffe49b; margin-right:5px; }
.mq-portal .section-head { display:flex; justify-content:space-between; align-items:end; gap:32px; margin-bottom:32px; }
.mq-portal .section-head h2 { margin:10px 0 0; }
.mq-portal .section-head>p { max-width:360px; margin:0; }
.mq-portal .worlds { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.mq-portal .world { padding:0; border:1px solid var(--mq-line); border-radius:20px; background:white; box-shadow:var(--mq-shadow); text-decoration:none; display:flex; flex-direction:column; }
.mq-portal .world>div { padding:24px; }
.mq-portal .world .eyebrow { font-size:.75rem; }
.mq-portal .world h3 { font-size:1.4rem; margin:12px 0; }
.mq-portal .world p { font-size:1rem; min-height:0; margin:0 0 24px; }
.mq-portal .world b { color:var(--mq-ocean); font-size:.9375rem; }
.mq-portal .destination-art { display:block; aspect-ratio:1.6; margin:12px 12px 0; border-radius:12px; background-color:#e6f3f5; background-size:contain; }
.mq-portal .march-feature { background:#dff1ef; border-block:1px solid #a6cdc6; }
.mq-portal .feature-split { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); align-items:center; gap:64px; }
.mq-portal .feature-split h2 { font-size:clamp(2rem,3.4vw,3rem); }
.mq-portal .feature-split p { font-size:1.0625rem; }
.mq-portal .journey-rhythm { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:0; margin:32px 0; gap:12px; }
.mq-portal .journey-rhythm li { border-top:3px solid var(--mq-ocean); padding-top:14px; }
.mq-portal .journey-rhythm :is(span,b,small) { display:block; }
.mq-portal .journey-rhythm span { font-size:.8125rem; color:var(--mq-ocean); font-weight:800; }
.mq-portal .journey-rhythm b { margin:6px 0; }
.mq-portal .expedition-art { text-align:center; padding:24px; border-radius:24px; background:#fff9e8; border:1px solid #d6c895; }
.mq-portal .expedition-art img { max-width:100%; height:auto; object-fit:contain; }
.mq-portal .expedition-art p { margin:8px 0 0; color:var(--mq-navy); }
.mq-portal .feature-duo { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; }
.mq-portal .feature-duo article { padding:24px 0 0; border-top:1px solid #809cab; }
.mq-portal .feature-index { font-size:.8125rem; font-weight:750; letter-spacing:.075em; color:var(--mq-ocean); }
.mq-portal .feature-duo h3 { font-size:1.5rem; margin:20px 0 16px; }
.mq-portal .price-band { background:#edf4f8; border-block:1px solid #c6d9e4; }
.mq-portal .price-card { border:1px solid #708e9e; border-radius:24px; box-shadow:0 8px 0 #d4e5ec; background:white; }
.mq-portal .price-label { background:var(--mq-navy); color:#d9f8fb; padding:16px; border-radius:22px 22px 0 0; font-size:.8125rem; }
.mq-portal .price-content { padding:28px; }
.mq-portal .price-content .price-number { color:var(--mq-navy); font-size:4rem; letter-spacing:-.04em; }
.mq-portal .price-capacity { background:#e6f3f5; border:1px solid #c6dfe4; border-radius:10px; }
.mq-portal .price-intro h2,.mq-portal .price-intro h1 { font-size:clamp(2rem,3vw,2.8rem); }
.mq-portal .plan-features li::before { color:var(--mq-success); }
.mq-portal .launch-faq { max-width:900px; }
.mq-portal .launch-faq details { border-bottom:1px solid #b6cad6; padding:20px 0; }
.mq-portal .launch-faq summary { font-weight:750; font-size:1.0625rem; }
.mq-portal .launch-faq details p { margin:16px 0 0; }
.mq-portal .launch-faq>p { margin-top:24px; }
.mq-portal .mq-footer { background:var(--mq-navy); border:0; color:#e7f1f8; padding:40px max(24px,calc((100vw - 1200px)/2)); gap:24px; }
.mq-portal .mq-footer :is(a,p,small,.logo) { color:#e7f1f8; }
.mq-portal .mq-footer .gold { color:var(--mq-gold); }
.mq-portal .mq-footer a { text-underline-offset:4px; }
.mq-portal .signin-grid { align-items:center; gap:48px; }
.mq-portal .signin-grid h1 { font-size:clamp(2rem,4vw,3.5rem); }
.mq-portal .signin-grid .mascot { background:#e2f3f2; border:1px solid #bfdbd8; border-radius:30% 30% 24px 24px; padding:24px; }
.mq-portal .login-panel { padding:28px; margin:24px 0; }
.mq-portal .button.google { background:white; color:#243746; box-shadow:none; border:1px solid #8eaab9; }
.mq-portal .google-mark { color:#4285f4; }
.mq-portal .class-input { letter-spacing:.1em; }
.mq-portal .account-wrap { max-width:1400px; padding-block:32px; }
.mq-portal .account-head { border-bottom:1px solid #bacfd9; padding-bottom:24px; margin-bottom:28px; }
.mq-portal .account-head h1 { font-size:2.2rem; }
.mq-portal .account-head .actions { gap:8px; }
.mq-portal .account-head .button { font-size:.875rem; padding:10px 12px; }
.mq-portal .dash-stats { gap:16px; margin:24px 0; }
.mq-portal .stat { border:1px solid #b8ced9; border-top:4px solid var(--mq-ocean); border-radius:12px; box-shadow:none; padding:20px; background:white; }
.mq-portal .stat strong { font-family:var(--mq-text); font-size:2rem; color:var(--mq-navy); }
.mq-portal .stat span { font-size:.875rem; color:var(--mq-slate); }
.mq-portal .dash-layout { grid-template-columns:minmax(0,1fr) 300px; }
.mq-portal .dash-layout .panel { margin-bottom:24px; }
.mq-portal .class-header h2 { margin-bottom:8px; }
.mq-portal .code-display { background:#e7f4f5; color:var(--mq-ocean); border:1px solid #a7cbd0; border-radius:10px; padding:12px; letter-spacing:.1em; text-align:center; }
.mq-portal .side-panel { border-top:4px solid var(--mq-ocean); }
.mq-portal .report-grid { gap:4px; }
.mq-portal .student-hub { grid-template-columns:minmax(0,1fr) 260px; max-width:1320px; }
.mq-portal .student-hub .account-head { display:block; }
.mq-portal .student-hub .account-head .actions { margin-top:24px; }
.mq-portal .student-hub .panel { border-top:5px solid var(--mq-ocean); }
.mq-portal .student-hub .panel>.button { margin:8px 4px 0 0; }
.mq-portal .student-hub .mascot { height:auto; }
.mq-portal .game-demo { background:white; border:1px solid #88a9b9; border-top:6px solid var(--mq-ocean); border-radius:20px; box-shadow:var(--mq-shadow); }
.mq-portal .demo-top { border-bottom:1px solid #cadce4; padding-bottom:16px; }
.mq-portal .demo-mascot { height:110px; width:110px; object-fit:contain; }
.mq-portal .prose { max-width:960px; }
.mq-portal .prose h1 { font-size:clamp(2rem,3.3vw,3rem); }
.mq-portal .teacher-guide { max-width:1160px; }
.mq-portal .guide-head { background:var(--mq-navy); color:white; border-radius:20px; padding:32px; }
.mq-portal .guide-head :is(h1,p) { color:white; }
.mq-portal .guide-head .eyebrow { color:#a4ebee; }
.mq-portal .guide-section { border:1px solid var(--mq-line); background:white; border-radius:16px; padding:28px; margin:24px 0; }
.mq-portal .guide-section h2 { font-size:1.75rem; }
.mq-portal .guide-contents { background:#eaf4f7; border:1px solid #b6cad6; border-radius:12px; padding:24px; }
/* Class discovery and the two distinct teacher/student party roles. */
.mq-portal .zone-layout { grid-template-columns:minmax(260px,320px) minmax(0,1fr); gap:24px; }
.mq-portal .zone-create { border-top:5px solid var(--mq-ocean); }
.mq-portal .zone-live-head { border-bottom:1px solid #b6cad6; margin-bottom:20px; padding-bottom:16px; }
.mq-portal .zone-game { background:white; border:1px solid #a5bdcb; border-radius:16px; box-shadow:var(--mq-shadow); padding:20px; }
.mq-portal .zone-game-top { align-items:start; }
.mq-portal .zone-game h3 { font-size:1.25rem; }
.mq-portal .zone-game-icon { background:#e4f2f4; border:1px solid #b7d9de; color:var(--mq-ocean); border-radius:12px; }
.mq-portal .zone-seats { background:#e6f4ec; color:#166244; border:1px solid #9ec4ac; font-size:.875rem; }
.mq-portal .zone-status { font-size:.875rem; font-weight:700; }
.mq-portal .zone-players { border-block:1px solid #d4e2e8; padding:12px 0; font-size:.9375rem; }
.mq-portal .migo-party { border:1px solid #8eb6b4; border-top:5px solid var(--mq-ocean); background:#eff8f7; box-shadow:var(--mq-shadow); }
.mq-portal .party-heading h2 { font-size:1.75rem; }
.mq-portal .party-setup { gap:24px; }
.mq-portal .party-setup form { border:1px solid #a5c5c4; padding:24px; border-radius:12px; }
.mq-portal .party-instructions { padding-left:22px; }
.mq-portal .party-instructions li { padding-left:4px; margin:12px 0; }
.mq-portal .party-instructions li::marker { color:var(--mq-ocean); font-weight:800; }
.mq-portal .party-code,.mq-portal .party-clock { background:var(--mq-navy); }
.mq-portal .party-classes li { border:1px solid #a5c5c4; padding:16px; }
.mq-portal .party-classes li:first-child { border-left:5px solid var(--mq-ocean); }
.mq-portal .party-classes .party-open-slot { border:2px dashed #83a5a4; background:transparent; }
@media(max-width:1100px) {
 .mq-portal .hero-grid { gap:32px; }
 .mq-portal .dash-layout { grid-template-columns:minmax(0,1fr); }
 .mq-portal .dash-layout>aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
}
@media(max-width:960px) {
 .mq-portal .worlds { grid-template-columns:minmax(0,1fr); }
 .mq-portal .world { display:grid; grid-template-columns:220px minmax(0,1fr); align-items:center; }
 .mq-portal .destination-art { aspect-ratio:1; margin:12px; }
 .mq-portal .feature-split { gap:32px; }
}
@media(max-width:760px) {
 .mq-portal .wrap { padding:40px 20px; }
 .mq-portal .hero-grid,.mq-portal .feature-split,.mq-portal .student-hub { grid-template-columns:minmax(0,1fr); }
 .mq-portal .hero h1 { font-size:clamp(2.3rem,7.8vw,3.4rem); }
 .mq-portal .hero-window { max-width:420px; width:100%; margin:auto; }
 .mq-portal .hero-art { max-height:280px; }
 .mq-portal .hero-copy { max-width:600px; }
 .mq-portal .hero .actions { align-items:stretch; }
 .mq-portal .hero .actions>.button { flex:1 1 210px; }
 .mq-portal .section-head { display:block; }
 .mq-portal .section-head>p,.mq-portal .section-head>.button { margin-top:20px; }
 .mq-portal .feature-duo { grid-template-columns:minmax(0,1fr); gap:24px; }
 .mq-portal .expedition-art { max-width:420px; margin:auto; width:100%; }
 .mq-portal .expedition-art img { max-height:220px; width:auto; }
 .mq-portal .signin-grid .mascot { height:170px; max-width:240px; margin:auto; padding:12px; }
 .mq-portal .student-hub .mascot { order:1; }
 .mq-portal .zone-layout { grid-template-columns:minmax(0,1fr); }
 .mq-portal .guide-head { padding:24px; }
}
@media(max-width:540px) {
 .mq-portal .mq-header { padding:14px 16px; }
 .mq-portal .mq-header nav { gap:6px; }
 .mq-portal .nav-plan { grid-column:1/-1; }
 .mq-portal .world { display:flex; }
 .mq-portal .destination-art { aspect-ratio:1.7; }
 .mq-portal .world>div { padding:20px; }
 .mq-portal .dash-layout>aside { display:block; }
 .mq-portal .trail-strip .wrap { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
 .mq-portal .party-setup form,.mq-portal .login-panel { padding:18px; }
 .mq-portal .guide-head,.mq-portal .guide-section { padding:20px 16px; }
 .mq-portal .price-content { padding:22px 18px; }
 .mq-portal .account-head h1 { font-size:1.9rem; }
 .mq-portal .mq-footer { padding:32px 20px; }
}

/* Four equally sized destinations keep student choice fast and predictable. */
.mq-portal .student-home{max-width:1080px;padding-block:32px 40px}
.student-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.student-welcome h1{font-size:clamp(1.6rem,3vw,2.35rem);margin:6px 0 8px;line-height:1.2}
.student-welcome p{margin:0}.student-welcome .eyebrow{font-size:.875rem}
.student-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.student-destination{--tile:#d6f1ec;--edge:#54b6a6;position:relative;display:grid;grid-template-columns:140px minmax(0,1fr);align-items:center;gap:22px;min-height:228px;padding:24px 38px 24px 20px;background:white;border:2px solid var(--edge);border-radius:22px;box-shadow:0 5px 0 var(--tile);text-decoration:none;color:var(--mq-navy);transition:transform .15s,box-shadow .15s}
.student-destination:hover{transform:translateY(-3px);box-shadow:0 8px 0 var(--tile)}
.student-destination:focus-visible{outline:4px solid #153e59;outline-offset:5px}
.destination-practice{--tile:#e1eeff;--edge:#76a4db}.destination-arcade{--tile:#f0e5ff;--edge:#ae88d2}.destination-center{--tile:#fff0c9;--edge:#e0b13d}
.destination-picture{border-radius:24px;background:var(--tile);aspect-ratio:1;display:grid;place-items:center;overflow:hidden}
.destination-picture img{width:100%;height:100%;object-fit:contain}
.destination-copy h2{font-size:clamp(1.3rem,2.2vw,1.75rem);line-height:1.15;margin:0 0 10px}
.destination-copy p{font-size:1rem;line-height:1.5;margin:0;color:#365567}
.destination-arrow{position:absolute;right:17px;top:14px;font-size:1.35rem;color:#365567}
.student-secondary{display:flex;flex-wrap:wrap;gap:24px;justify-content:center;margin-top:28px}
.student-secondary a{font-size:.9375rem;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
.student-dashboard .mq-footer{padding-block:22px}.student-dashboard .mq-footer>div,.student-dashboard .mq-footer>p{display:none}
@media(max-width:800px){.student-destination{grid-template-columns:100px minmax(0,1fr);gap:16px;padding:24px 28px 24px 16px;min-height:210px}}
@media(max-width:580px){.mq-portal .student-home{padding:24px 16px}.student-destinations{gap:14px}.student-destination{grid-template-columns:1fr;gap:12px;padding:20px 13px;min-height:280px;text-align:center}.destination-picture{width:92px;margin:auto}.destination-copy h2{font-size:1.25rem}.destination-copy p{font-size:1rem}.student-welcome{align-items:flex-start}.student-welcome h1{font-size:1.6rem}.student-welcome .signout{font-size:.875rem;padding:10px}.student-welcome>div{min-width:0}}
@media(max-width:340px){.student-destinations{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.student-destination{transition:none}}

.mq-portal .zone-overhaul{grid-template-columns:minmax(300px,1fr) minmax(0,1.25fr)}
.zone-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:30rem;overflow:auto;padding:3px 5px 8px 3px;scrollbar-gutter:stable}
.zone-picker .zone-pick{display:grid;grid-template-rows:1.8rem 1fr auto;gap:6px;align-items:start;align-content:stretch;min-width:0;min-height:138px;padding:14px;text-align:left;white-space:normal;font-size:1rem}
.zone-pick strong{font-size:1rem;line-height:1.3;overflow-wrap:anywhere}.zone-pick small{font-size:.875rem;font-weight:500}.zone-picker .zone-pick[aria-pressed=true]{background:#0b5368;color:white;border-color:#0b5368}.zone-picker .zone-pick:disabled{opacity:.45}.zone-host-settings{display:grid;gap:12px}.zone-host-settings .move-facts-options{margin:0}.zone-host-settings small{font-size:.875rem;line-height:1.45;font-weight:400}.zone-host-settings .move-facts-options p{display:none}#class-game-form{margin-top:22px}#class-game-form[hidden]{display:none}.zone-host-settings [hidden]{display:none!important}.zone-games{align-items:stretch}.zone-game{display:flex;flex-direction:column}.zone-game .actions{margin-top:auto}.zone-game .actions>*{min-height:48px}.zone-picker+form h3{scroll-margin-top:20px}
@media(max-width:900px){.mq-portal .zone-overhaul{grid-template-columns:minmax(0,1fr)}.zone-overhaul .zone-live{grid-row:auto}.zone-picker{max-height:22rem;grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.zone-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.zone-host-settings{grid-template-columns:minmax(0,1fr)}.zone-picker .zone-pick{min-height:132px}}

/* Keep the last room setting as readable as the timer and mistake controls. */
.zone-host-settings .move-facts-options{display:grid;gap:8px;min-width:0}
.zone-host-settings .move-facts-options select{display:block;width:100%;min-width:0;min-height:46px;padding:10px 12px;background:#fff;color:var(--mq-navy);border:2px solid #829eaf;border-radius:var(--mq-r-sm);font-size:1rem}
#class-game-form>button[type=submit]{margin-top:24px}

/* Put party entry before the class list, where children can see it. */
.mq-portal .migo-party.party-needs-join{border:3px solid #126c94;border-top:8px solid #f5c542;background:#effaff}.party-student-entry{margin-bottom:20px}.party-student-entry h2{font-size:clamp(26px,3.5vw,36px);line-height:1.2;margin:0 0 12px}.party-student-entry p{font-size:18px;line-height:1.5;max-width:850px}.mq-portal .party-join-big{display:block;width:100%;min-height:80px;padding:20px 24px;margin:16px 0;background:#ffd34f;color:#102d50;border:3px solid #102d50;border-radius:16px;font-size:clamp(22px,3vw,30px);font-weight:850;line-height:1.3;white-space:normal;box-shadow:0 5px 0 #102d50}.mq-portal .party-join-big:hover{background:#ffe58d}.mq-portal .party-join-big:focus-visible{outline:4px solid #087ca6;outline-offset:5px}.mq-portal .party-join-big:disabled{opacity:.65;cursor:wait}.party-scope{display:block;font-size:18px;font-weight:800}.party-scope:empty{display:none}.party-student-details{margin-top:16px}.party-student-details>summary{padding:12px 0;min-height:44px;font-size:16px;font-weight:750;cursor:pointer}

/* A single wide Learning destination sits below the four activities. */
.student-learning{grid-column:1 / -1;--tile:#fff0c9;--edge:#d4a43a;min-height:144px;grid-template-columns:88px minmax(0,1fr);background:#fffcf3}
.student-learning .destination-picture{width:88px}
@media(max-width:580px){.student-destination{min-height:218px;padding:16px 12px;gap:8px}.destination-picture{width:76px}.destination-copy p{font-size:.875rem}.student-learning{grid-template-columns:64px minmax(0,1fr);min-height:122px;text-align:left;padding:18px 32px 18px 18px;gap:16px}.student-learning .destination-picture{width:64px}.student-learning .destination-copy h2{font-size:1.5rem}}

@media(max-width:580px){.student-home-dashboard .student-destination:not(.student-learning){min-height:148px;padding:16px 12px;gap:10px}.student-home-dashboard .student-destination:not(.student-learning) .destination-picture{width:64px}.student-home-dashboard .student-destination:not(.student-learning) h2{font-size:1.2rem;margin:0}.student-home-dashboard .student-destination:not(.student-learning) .destination-copy p{display:none}}

/* Teacher home: one task grid, with the last unpaired card spanning both columns. */
.mq-portal .teacher-dashboard-wrap{max-width:1120px;padding-block:30px 48px}
.teacher-dashboard-wrap .teacher-title{margin:0 0 22px;padding:0}
.teacher-dashboard-wrap .teacher-title h1{font-size:clamp(1.75rem,3.5vw,2.4rem);line-height:1.2;margin:5px 0 8px}
.teacher-dashboard-wrap .teacher-title p{margin:0}
.teacher-class-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 20px;color:#466574}
.teacher-class-summary p{margin:0}.teacher-class-summary .eyebrow{min-width:0;max-width:100%;overflow-wrap:anywhere;font-size:1rem;letter-spacing:0;text-transform:none;color:#173c4c}
.teacher-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:18px}
.teacher-task-card{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;min-height:140px;padding:22px;border:2px solid #a6c7cb;border-radius:18px;background:#fff;color:#153a4b;box-shadow:0 4px 0 #dcecee;text-decoration:none}
.teacher-task-card:last-child:nth-child(odd){grid-column:1 / -1;background:#e8f5f3;border-color:#5fa69e}
.teacher-task-card:hover{border-color:#096b78;background:#f0f8f8}.teacher-task-card:focus-visible{outline:4px solid #c38b16;outline-offset:4px}
.teacher-task-card h2{font-size:clamp(1.15rem,2vw,1.5rem);line-height:1.25;margin:0 0 8px}
.teacher-task-card p{font-size:1rem;line-height:1.5;color:#46616e;margin:0;max-width:45ch}
.teacher-task-arrow{flex:none;font-size:1.7rem;color:#0b6774}
.teacher-task-badge{display:inline-block;font-size:.85rem;line-height:1.4;font-weight:750;margin-top:10px;padding:4px 9px;border-radius:8px;background:#fff0bf;color:#66470c}
.teacher-students-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}
.teacher-students-layout .panel{margin-top:0}.teacher-roster-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.teacher-roster-tools>:first-child{grid-column:1 / -1}.teacher-roster-tools>:is(a,button){margin:0;display:flex;align-items:center;justify-content:center;min-height:54px;width:100%;padding:10px;text-align:center;font-size:.95rem}
.teacher-code-options{margin-top:18px}.teacher-code-options summary{min-height:44px;cursor:pointer;padding:10px 0;font-weight:700}
@media(max-width:900px){.teacher-students-layout{grid-template-columns:1fr}.teacher-students-layout aside{max-width:none}}
@media(max-width:580px){.mq-portal .teacher-dashboard-wrap{padding:24px 16px 40px}.teacher-task-grid{gap:12px}.teacher-task-card{min-height:148px;padding:18px 14px;gap:6px;position:relative;align-items:flex-start}.teacher-task-card>div{min-width:0}.teacher-task-card h2{font-size:1.1rem}.teacher-task-card p{font-size:.875rem;line-height:1.4}.teacher-task-arrow{display:none}.teacher-task-badge{font-size:.8rem}.teacher-class-summary{margin-bottom:16px}}
@media(max-width:340px){.teacher-task-grid{grid-template-columns:1fr}.teacher-task-card{min-height:120px}.teacher-task-card:last-child:nth-child(odd){grid-column:auto}}

/* A focused student entry, with the complete code form above secondary options. */
.mq-portal .student-signin-wrap{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);align-items:center;gap:24px 64px;max-width:1040px;margin:0 auto;padding:36px 24px 24px}
.mq-portal .student-signin-card{min-width:0;background:#fff;border:1px solid #bad0db;border-radius:20px;box-shadow:0 8px 28px #1233470c;padding:28px 32px}
.mq-portal .student-signin-card .eyebrow{font-size:.875rem;margin:0 0 8px}
.mq-portal .student-signin-card h1{font-size:clamp(1.8rem,3vw,2.3rem);line-height:1.15;margin:0 0 12px}
.mq-portal .student-signin-intro{font-size:1rem;line-height:1.5;margin:0 0 24px;color:#456170}
.mq-portal .student-signin-card .field{font-size:1rem;gap:7px;margin-bottom:18px}
.mq-portal .student-signin-card .class-input{min-height:52px;font-size:1.125rem;letter-spacing:.08em;border:1px solid #7d9eac;padding:12px 14px}
.mq-portal .student-signin-card #student-code-form>button{min-height:52px;font-size:1.0625rem;background:#086778;color:#fff;border:1px solid #086778;border-radius:10px;box-shadow:0 2px 0 #064b5b}
.mq-portal .student-signin-card #student-code-form>button:hover{background:#064b5b;color:#fff}
.mq-portal .student-signin-help{font-size:.875rem;line-height:1.5;color:#456170;margin:16px 0 0}
.mq-portal .student-google-option{margin-top:22px;padding:16px 0 0;border:0;border-top:1px solid #d2e1e7}
.mq-portal .student-google-option summary{font-size:1rem;line-height:1.4;color:#105365;min-height:44px;padding:10px 0;font-weight:700}
.mq-portal .student-google-option summary:hover{color:#064b5b}
.mq-portal .student-google-option p{font-size:.875rem;line-height:1.5;margin:0 0 14px;padding:0}
.mq-portal .student-signin-welcome{text-align:center;min-width:0}
.mq-portal .student-signin-welcome img{display:block;width:min(100%,320px);height:auto;margin:0 auto 16px}
.mq-portal .student-signin-welcome p{font:500 1.75rem/1.3 var(--mq-head);color:#105365;margin:0}
.mq-portal .student-signin-welcome strong{color:#102a43}
.mq-portal .student-signin-footer{grid-column:1/-1;max-width:680px;text-align:center;justify-self:center;color:#48616e}
.mq-portal .student-signin-footer p{font-size:.875rem;line-height:1.5;margin:0 0 4px}
.mq-portal .student-signin-footer nav{display:flex;justify-content:center;flex-wrap:wrap;gap:0 20px}
.mq-portal .student-signin-footer a{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem;font-weight:650;text-decoration:underline;color:#105365}
@media(max-width:760px){.mq-portal .student-signin-wrap{grid-template-columns:minmax(0,480px);justify-content:center;padding:24px 16px;gap:20px}.mq-portal .student-signin-welcome{display:none}.mq-portal .student-signin-card{padding:24px}.mq-portal .student-signin-footer{grid-column:1}}
@media(max-width:380px){.mq-portal .student-signin-card{padding:22px 18px}.mq-portal .student-signin-wrap{padding:20px 12px}}
.student-lab-today{margin:0 0 1.5rem;border-left:5px solid #087b87;background:#fff}.student-lab-today h2{font-size:1.5rem;margin:.3rem 0}.student-lab-today .button{min-height:44px}.student-lab-today .small{margin-top:1rem}

/* Matching math adventures sit together, followed by full-width Learning. */
.student-destinations .student-learning{grid-column:1/-1;min-width:0}
.student-destinations .student-math-card{grid-column:auto}
.student-expeditions{--tile:#cef5ed;--edge:#159a96;background:#f0fbf9}
@media(max-width:700px){.student-destinations .student-math-card{grid-column:1/-1}}

/* The next-grade hub introduces roads without creating new learning sessions. */
.mq-portal .next-grade-hub{max-width:980px;padding-block:28px 48px}
.next-grade-back{display:inline-flex;align-items:center;min-height:44px;gap:6px;font-weight:700;color:#13596a;text-underline-offset:4px}
.next-grade-welcome{display:grid;grid-template-columns:minmax(0,1fr) 170px;align-items:center;gap:24px;margin:16px 0 26px}
.next-grade-welcome h1{font-size:clamp(1.9rem,4vw,3rem);line-height:1.13;margin:8px 0 14px;max-width:620px}
.next-grade-welcome p{margin:0;color:#365567;line-height:1.5;max-width:540px}
.next-grade-welcome .eyebrow{color:#087a78;font-size:.8125rem;letter-spacing:.12em}
.next-grade-welcome img{width:100%;height:auto;object-fit:contain}
.next-grade-roads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.next-grade-ready{grid-column:1/-1;display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:28px;padding:30px;border:2px solid #159a96;border-radius:24px;background:#f0fbf9;box-shadow:0 5px 0 #cef5ed;color:var(--mq-navy);text-decoration:none;transition:transform .15s,box-shadow .15s}
.next-grade-ready:hover{transform:translateY(-3px);box-shadow:0 8px 0 #cef5ed}
.next-grade-ready:focus-visible,.next-grade-back:focus-visible{outline:4px solid #153e59;outline-offset:5px}
.next-grade-road-number{display:grid;place-items:center;width:100px;height:116px;border:2px solid #159a96;border-radius:24px;background:#cef5ed;color:#10596a;font-size:3.5rem;font-weight:800;transform:rotate(-4deg)}
.next-grade-hub .next-grade-badge{display:inline-block;margin:0 0 10px;border-radius:100px;padding:5px 11px;background:#d7f0e8;color:#155647;font-size:.8125rem;font-weight:750}
.next-grade-ready h2{font-size:clamp(1.6rem,3vw,2.1rem);line-height:1.2;margin:0 0 6px}
.next-grade-ready p{margin:0 0 10px;line-height:1.5;color:#365567}
.next-grade-ready .next-grade-for{font-weight:750;color:#153e59}
.next-grade-cta{display:inline-flex;gap:12px;align-items:center;min-height:44px;margin-top:6px;color:#10596a;font-weight:800;text-decoration:underline;text-underline-offset:4px}
.next-grade-coming{min-width:0;padding:24px;border:1px solid #cbd7db;border-radius:20px;background:#f5f7f7}
.next-grade-coming h2{font-size:1.35rem;line-height:1.25;margin:0 0 8px;color:#365567}
.next-grade-coming p{margin:0;color:#48616e;line-height:1.5}
.next-grade-coming .next-grade-badge{background:#e4eaed;color:#48616e}
.next-grade-unavailable{grid-column:1/-1;padding:24px;border:1px solid #cbd7db;border-radius:20px;background:#f5f7f7}
.next-grade-unavailable h2{font-size:1.5rem;margin:0 0 8px}
.next-grade-unavailable p{margin:0;color:#48616e}
@media(max-width:580px){.mq-portal .next-grade-hub{padding:18px 16px 32px}.next-grade-welcome{grid-template-columns:minmax(0,1fr) 78px;gap:12px;margin:10px 0 22px}.next-grade-welcome h1{font-size:1.85rem}.next-grade-welcome .eyebrow{font-size:.7rem}.next-grade-roads{grid-template-columns:minmax(0,1fr);gap:16px}.next-grade-ready{grid-template-columns:minmax(0,1fr);gap:18px;padding:24px}.next-grade-road-number{width:64px;height:70px;font-size:2.4rem;border-radius:16px}.next-grade-coming{padding:20px}}
@media(prefers-reduced-motion:reduce){.next-grade-ready{transition:none}}
