/* Shared palette: blue navigation, purple supporting surfaces, amber progress. */
:root{--primary:#3563d6;--secondary:#7761b4;--accent:#e6ad42;--ink:#24324c;--blue:var(--primary);--cyan:var(--secondary);--yellow:var(--accent);--paper:#f7f8fc;--muted:#69758b;--line:#dfe4ef}
html,body,button,input,select,textarea,.game-shell,.world-3d-hud,.world-3d-hud button,.world-3d-hud select,.world-is-3d .hotspot:after,.world-is-3d .interaction-tip,.school-sprint{font-family:"Poppins",sans-serif}
body{background:#eef1f8;color:var(--ink)}
button,a,summary{ -webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.game-topbar{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:0 4px 18px #24324c08;border-radius:16px}
.game-brand>span{background:#f1f3fa;border:1px solid var(--line);box-shadow:none}
.game-brand small{color:var(--muted);letter-spacing:.02em;text-transform:none}
.game-brand strong{font-weight:600}
.game-stats{gap:7px}
.game-stats span,.game-stats button,.game-stats a{background:#f2f4fa;border:1px solid var(--line);color:var(--ink);font-weight:600;gap:6px}
.game-stats>a:last-child{background:var(--primary);border-color:var(--primary);color:white}
.game-stats button:hover,.game-stats .notification-link:hover{background:#e9e5f6;color:var(--secondary)}
.game-layout{grid-template-columns:220px minmax(0,1fr)}
.quest-panel{padding:19px 14px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 18px #24324c06}
.quest-panel .eyebrow{color:var(--muted);font-weight:600;font-size:10px;letter-spacing:.07em}
.quest-panel ol{gap:6px;margin:15px 0}
.quest-panel li{padding:11px 8px;border-color:transparent;background:#f7f8fc}
.quest-panel li b{font-size:11px;font-weight:600}
.quest-panel li>span{background:#eaf0ff;color:var(--primary);border-radius:9px;font-weight:600}
.quest-panel li:hover{background:#eef0fa;border-color:#d7ddf1;cursor:pointer}
.quest-panel li.done{background:#f0edf8;border-color:#ded6ef}
.quest-panel li.done>span{background:var(--secondary)}
.quest-help{display:block;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;line-height:1.8}
.quest-help summary,.sprint-footer summary{cursor:pointer;color:var(--primary);font-weight:600}
.quest-help p{margin:8px 0 0}
.world-frame,.world-frame:has(>.world-is-3d){border:1px solid #b9bdd5;background:#dce0ef;border-radius:18px;box-shadow:0 8px 26px #24324c12}
.world.world-is-3d{border:0;border-radius:17px}
.world-3d-hud button,.world-3d-hud select{border:1px solid var(--line);background:#fffffff5;color:var(--primary);box-shadow:0 2px 7px #24324c0a;font-weight:500}
.world-3d-hud button .mdi{font-size:20px}
.world-is-3d .hotspot span{background:#fffffff5;color:var(--primary);border:1px solid #dfe4ef;box-shadow:0 3px 10px #24324c20}
.world-is-3d .hotspot:hover span,.world-is-3d .hotspot.near span,.world-is-3d .hotspot:focus-visible span{outline-color:var(--accent)}
.world-is-3d .hotspot:after{background:#fff;color:var(--ink);font-size:10px;font-weight:500}
.day-phase{background:#f0edf8!important;border-color:#ded7ee!important;color:var(--secondary)!important}
.lesson-now{border-color:var(--line)!important;background:#f7f8fc!important;color:var(--ink)!important}
.lesson-now small{color:var(--muted)!important}
.lesson-pulse{background:var(--secondary)!important;box-shadow:none!important}
.dialog-box{background:var(--paper);border:1px solid var(--line);box-shadow:0 20px 70px #17255430}
.dialog-box h2{font-size:24px;font-weight:600}
.dialog-box>.dialog-icon{background:#eaf0ff;color:var(--primary)}
.dialog-box>small{display:none}
.dialog-box p{line-height:1.8}
.dialog-close,.book-reader-close{background:#eaf0ff;color:var(--primary)}
.character-picker{background:#edf0f8f5}
.character-picker-panel{border:1px solid var(--line);background:#fff;box-shadow:0 20px 70px #24324c20}
.character-picker-panel h1{font-weight:600;letter-spacing:-.03em}
.character-options button{border-color:var(--line);background:#f7f8fc;color:var(--ink);box-shadow:none}
.character-options button:hover{border-color:var(--primary);background:#eaf0ff}
.school-sprint{background:#f7f8fc;color:var(--ink);border:1px solid var(--line)}
.sprint-header{background:#fff;border-bottom:1px solid var(--line);color:var(--ink)}
.sprint-header small{color:var(--muted);letter-spacing:.05em}
.sprint-header h2{color:var(--ink);font-weight:600}
.sprint-header h2 span{color:var(--secondary)}
.sprint-header button{background:#f0f3fa;color:var(--primary);border:1px solid var(--line);font-weight:600}
.sprint-card{background:#fffffff5;border:1px solid var(--line);box-shadow:0 16px 60px #24324c25;color:var(--ink)}
.sprint-card h3{font-size:clamp(25px,3vw,37px);font-weight:600;line-height:1.25;letter-spacing:-.03em;color:var(--ink)}
.sprint-card>p{color:var(--muted);font-size:12px;line-height:1.8}
.sprint-primary{background:var(--primary);color:#fff;border:0;box-shadow:none;font-weight:600}
.sprint-secondary{background:#ede9f7;color:#59468d;border:1px solid #dcd3ee;box-shadow:none}
.sprint-levels button{background:#f5f6fa;color:var(--ink);border:1px solid var(--line);font-weight:500}
.sprint-levels button[aria-pressed=true]{background:#ece8f7;border-color:var(--secondary);color:#59468d}
.sprint-levels small{color:var(--secondary)}
.sprint-best{color:var(--muted)}
.sprint-credit{font-size:9px!important;opacity:.8}
.sprint-credit a{color:var(--secondary)}
.sprint-hud>span{background:#fffffff2;color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 8px #24324c10}
.sprint-hud>span:first-child .mdi{color:#ad7418}
.sprint-hud>span:nth-child(2) .mdi{color:var(--secondary)}
.sprint-hud>span:nth-child(3) .mdi{color:var(--primary)}
.sprint-footer{display:block;background:#fff;color:var(--muted);border-top:1px solid var(--line);font-size:10px;padding:10px 16px}
.sprint-footer p{margin:8px 0;line-height:1.8}
.sprint-touch button{background:#fffffff0;color:var(--primary);border:1px solid #dbe2f2;box-shadow:0 3px 10px #24324c20}
.sprint-touch .sprint-jump{background:var(--primary);color:#fff;border-color:var(--primary)}
@media(max-width:1000px){.game-layout{grid-template-columns:190px minmax(0,1fr)}.game-brand small{max-width:160px}}
@media(max-width:900px){.game-layout{grid-template-columns:1fr}.quest-panel{display:none}.game-topbar{flex-wrap:wrap;gap:10px}.game-stats{margin-left:auto}}
@media(max-width:560px){.game-shell{padding:8px}.game-topbar{padding:10px}.game-brand small{font-size:8px}.game-brand strong{font-size:14px}.game-stats span,.game-stats button,.game-stats a{padding:8px;font-size:10px;min-height:35px}.game-stats{gap:5px}.live-class-strip{order:3;width:100%}.sprint-header h2{font-size:17px}.sprint-card{padding:20px}.sprint-credit{font-size:8px!important}}
.sprint-card .sprint-credit{color:var(--muted)}
.sprint-header button:hover{background:#eaf0ff}

.sprint-levels button small{color:var(--secondary)}
.sprint-header h2 span{background:#ece8f7;color:#59468d}

/* Information surfaces have explicit foreground/background pairs, including night mode. */
:root{--muted:#56647a}
.room-content{color:var(--ink)}
.room-content>h2{color:#fff}
.classroom-toolbar{padding:12px 14px;border:1px solid #dfe4ef;border-radius:14px;background:#f7f8fc;color:#24324c}
.classroom-toolbar small,.classroom-toolbar .classroom-schedule-heading{color:#56647a}
.classroom-toolbar .classroom-schedule-heading strong{color:#24324c}
.classroom-lesson{padding:5px 9px;border-radius:8px;background:#f7f8fc;color:#43536a}
.classroom-footer{padding:5px 9px;border-radius:7px;background:#f7f8fc;color:#56647a}
.classroom-weather,.classroom-weather-source{background:#f7f8fc;color:#43536a}
.room-stage .student-classroom.is-3d.classroom-night{background:radial-gradient(ellipse at center,#293d50,#111e30)}
.classroom-night .classroom-toolbar{background:#202d43;border-color:#526078;color:#f4f6fc}
.classroom-night .classroom-toolbar small,.classroom-night .classroom-schedule-heading{color:#cbd5e6}
.classroom-night .classroom-schedule-heading strong{color:#f4f6fc}
.classroom-night .classroom-lesson,.classroom-night .classroom-footer,.classroom-night .classroom-weather,.classroom-night .classroom-weather-source{background:#202d43;color:#d7dfed}
.classroom-label.compact{opacity:1}
.ceremony-kicker,.ceremony-counter,.ceremony-status,.ceremony-card nav span{color:#645332}
.ceremony-award{color:#805b13}
.classroom-night .ceremony-kicker,.classroom-night .ceremony-counter,.classroom-night .ceremony-status,.classroom-night .ceremony-card nav span{color:#e4d5ac}
.classroom-night .ceremony-award{color:#ffe09c}
.dialog-box small,.finance-game-grid small,.info-tabs article small,.schedule-game-board small,.game-book-button small,.student-game-grid small,.podium-list li em,.competition-list article small,.teacher-empty,.empty-game-state{color:#56647a}
.schedule-game-board time span{color:#56647a}
.competition-list article strong{color:#805b13}
.teacher-game-grid a{background:#18734e;color:#fff}
.character-picker-panel>small{color:#59468d}
.museum-gallery.open .museum-card b:after{color:#56647a}
.penalty-pitch.goal strong{background:#126647;color:#fff}
.penalty-pitch.saved strong{background:#a6342b;color:#fff}
.family-note{color:#d2c6df}
.sprint-credit{opacity:1}
.sprint-credit a{color:#59468d}
.piano-key small{opacity:1}
.game-topbar .day-phase small,.game-topbar .day-phase strong{color:#59468d}
/* Solid fallback colors also preserve contrast while decorative gradients load. */
.virtual-piano{background-color:#182c63}
.piano-key.white{background-color:#fff}
.piano-key.black{background-color:#080c19}
.penalty-game{background-color:#173d82}
.family-gate{background-color:#30283f}
.family-preview{background-color:#30283f}
.museum-feature,.student-map-profile{background-color:#f7f8fc}
.ceremony-card{background-color:#fff8e9}
.classroom-night .ceremony-card{background-color:#233a46}
.sprint-levels button small{color:#59468d}
.museum-zone{opacity:1;background:#20355be8;color:#fff}
.museum-exit-zone,.student-map-exit{opacity:1}

/* Museum diorama keeps the original DOM gallery and its keyboard controls. */
.room-stage .museum-shell:has(.museum-is-3d){display:block;width:100%;height:auto;overflow:hidden;background:#e1e6f2;border:1px solid #c4ccde;border-radius:18px}
.room-stage .museum-world.museum-is-3d{position:relative;display:block;width:100%;height:clamp(480px,calc(100dvh - 120px),900px);max-width:none;aspect-ratio:auto;padding:0;isolation:isolate}
.museum-render{position:absolute;inset:0;width:100%;height:100%;z-index:0;touch-action:pan-y;cursor:pointer}
.museum-is-3d>img,.museum-is-3d>.museum-player,.museum-is-3d>.cat-companion{display:none}
.museum-shell:has(.museum-is-3d):after{display:none}
.museum-is-3d .museum-zone{z-index:3;transform:translate(-50%,-50%);width:140px;min-height:0;padding:7px 10px;border:1px solid #d5dcef;border-radius:11px;background:#fffffff5;color:#24324c;box-shadow:0 4px 15px #24324c18;backdrop-filter:none}
.museum-is-3d .museum-zone span{font-size:20px;color:#59468d}

.museum-is-3d .museum-zone b{white-space:normal;font-size:9px;line-height:1.5;font-weight:600}
.museum-is-3d .museum-zone:hover,.museum-is-3d .museum-zone.near,.museum-is-3d .museum-zone.active{background:#ece8f7;border-color:#7761b4;box-shadow:0 0 0 3px #e6ad4240}
.museum-is-3d .museum-exit-zone{left:50%;bottom:14px;width:auto;min-height:0;padding:9px 16px;background:#3563d6;color:#fff;border:1px solid #3563d6;border-radius:11px}
.museum-is-3d .museum-exit-zone b{font-size:10px}
.museum-is-3d .museum-gallery.open{bottom:65px}
.museum-is-3d .museum-feature{top:45%;border:1px solid #dfe4ef;box-shadow:0 16px 50px #17255430}
@media(max-width:900px){.room-stage .museum-world.museum-is-3d{height:65dvh;min-height:480px}.museum-shell:has(.museum-is-3d) .museum-mobile-pad{position:relative;margin:12px auto;background:#e1e6f2}.museum-is-3d .museum-zone{width:110px;padding:5px 7px}.museum-is-3d .museum-zone b{font-size:8px}.museum-is-3d .museum-gallery.open{bottom:60px}}
@media(max-width:560px){.room-stage .museum-world.museum-is-3d{min-height:450px}.museum-is-3d .museum-zone{width:88px}.museum-is-3d .museum-zone b{font-size:7px}}

/* Museum toolbar lives outside the rendered room to keep portraits unobstructed. */
.museum-experience{position:relative;display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 62px 10px 18px;box-sizing:border-box;background:#13223a;color:#ecf4ff;font-family:inherit}
.museum-bar-title{font-size:13px;font-weight:600;letter-spacing:.03em}
.museum-tools{display:flex;gap:6px;align-items:center}
.museum-tools button{font:inherit;font-size:12px;font-weight:600;min-width:36px;min-height:36px;padding:7px 11px;border:1px solid #7791bd66;border-radius:10px;background:#213450;color:#e6f4ff;cursor:pointer}
.museum-tools button:first-child{background:#a0e0dc;color:#143348;border-color:#a0e0dc}
.museum-tools button:hover{filter:brightness(1.15)}
.museum-tools button:disabled{opacity:.5;cursor:default}
.museum-tools button:focus-visible,.museum-is-3d .museum-zone:focus-visible{outline:3px solid #f3c76e;outline-offset:3px}
.museum-passport{margin-left:auto;display:flex;align-items:center;gap:8px;min-width:85px}
.museum-passport [data-progress]{color:#b5cfde;font-size:11px;white-space:nowrap}
.museum-passport progress{width:48px;height:4px;accent-color:#80d4cb;border:0;border-radius:5px;overflow:hidden}
.museum-passport [data-tour-status]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.museum-is-3d .museum-zone{background:#162a43ed;color:#effbff;border-color:#83b3bf88;border-radius:10px;box-shadow:0 4px 14px #07172c33;backdrop-filter:blur(8px)}
.museum-is-3d .museum-zone span{display:none}
.museum-is-3d .museum-zone:hover,.museum-is-3d .museum-zone.near,.museum-is-3d .museum-zone.active{background:#294763;color:#fff;border-color:#8cceca;box-shadow:0 0 0 2px #8cceca22}
.museum-is-3d .museum-zone.museum-visited:after{content:'✓';position:absolute;right:-4px;top:-5px;background:#a2dace;color:#153645;border-radius:50%;width:16px;height:16px;font-size:10px;line-height:16px}
@media(max-width:560px){.museum-experience{gap:8px;padding:8px 52px 8px 10px;min-height:54px}.museum-bar-title{font-size:11px}.museum-tools{gap:4px}.museum-tools button{padding:6px 8px;font-size:11px}.museum-passport{min-width:0;gap:5px}.museum-passport progress{width:28px}}

/* Compact achievement markers: names only appear within the visitor's range. */
.museum-is-3d .museum-zone{display:grid;place-items:center;width:30px;height:30px;min-width:0;min-height:0;padding:0;border-radius:50%;overflow:visible;line-height:1;gap:0}
.museum-is-3d .museum-zone span{display:block;font-size:15px;line-height:1;color:#b3e4df}
.museum-is-3d .museum-zone b{display:none;position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);width:max-content;max-width:140px;padding:6px 9px;border:1px solid #83b3bf88;border-radius:7px;background:#162a43f5;color:#effbff;font-size:10px;line-height:1.4;white-space:normal;pointer-events:none;box-shadow:0 3px 10px #07172c33}
.museum-is-3d .museum-zone.near b{display:block}
.museum-is-3d .museum-zone.museum-visited:after{width:11px;height:11px;right:-2px;top:-2px;font-size:8px;line-height:11px}
@media(pointer:coarse){.museum-is-3d .museum-zone{width:34px;height:34px}}

/* Camera and school weather share the toolbar, outside the portrait wall. */
.museum-camera{display:flex;align-items:center;gap:4px;padding-left:10px;border-left:1px solid #8ca2be44}
.museum-camera button{display:grid;place-items:center;width:34px;height:36px;padding:0;border:1px solid #7791bd66;border-radius:9px;background:#213450;color:#e6f4ff;font:600 19px/1 sans-serif;cursor:pointer}
.museum-camera button:hover{background:#304c6e}
.museum-camera button:disabled{opacity:.35;cursor:default}
.museum-camera button:focus-visible,.museum-weather:focus-visible{outline:3px solid #f3c76e;outline-offset:3px}
.museum-weather{display:flex;align-items:center;gap:9px;margin-left:auto;padding:7px 12px;border:1px solid #89bfc74d;border-radius:12px;background:linear-gradient(120deg,#244355,#253454);color:#f0faff;text-decoration:none;white-space:nowrap}
.museum-weather>.mdi{font-size:25px;color:#a5e1d7}
.museum-weather strong{display:block;font-size:18px;line-height:1.1;font-weight:600;letter-spacing:-.03em}
.museum-weather small{display:block;margin-top:3px;font-size:9px;color:#bfd4e1}
.museum-weather.is-stale{border-color:#ccae7488}
.museum-weather.is-stale small{color:#e6cea0}
.museum-experience .museum-passport{margin-left:0}
@media(max-width:900px){.museum-experience{flex-wrap:wrap;gap:8px}.museum-weather{margin-left:auto}.museum-camera{padding-left:8px}.museum-camera button{width:32px}.museum-experience .museum-passport{margin-left:auto}.museum-world.museum-is-3d .museum-zone b{max-width:120px}}
@media(max-width:560px){.museum-experience{padding-right:48px;gap:7px}.museum-bar-title{display:none}.museum-tools button{min-width:30px;min-height:34px;padding:6px}.museum-camera{gap:3px;padding-left:6px}.museum-camera button{width:29px;height:34px;font-size:17px}.museum-weather{margin-left:0;padding:6px 9px;gap:6px}.museum-weather>.mdi{font-size:22px}.museum-weather strong{font-size:16px}.museum-weather small{font-size:8px}.museum-experience .museum-passport{margin-left:auto}}

.museum-portrait-prompt{position:absolute;z-index:5;transform:translate(-50%,-50%);display:flex;align-items:center;gap:7px;padding:6px 9px;border:1px solid #8cceca;border-radius:9px;background:#142940f5;color:#f1fcff;font-family:inherit;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap;cursor:pointer;box-shadow:0 4px 14px #07172c44}
.museum-portrait-prompt[hidden]{display:none}
.museum-portrait-prompt kbd{display:grid;place-items:center;width:22px;height:22px;border:1px solid #b9ede3;border-bottom-width:3px;border-radius:5px;background:#d0ede8;color:#183c46;font:700 12px sans-serif}
.museum-portrait-prompt:focus-visible{outline:3px solid #f3c76e;outline-offset:3px}
.museum-is-3d .museum-feature small{font-size:12px;line-height:1.5;letter-spacing:.04em}
.museum-is-3d .museum-feature p{font-weight:700;color:#334564}
.museum-is-3d .museum-feature{max-height:calc(100% - 24px);box-sizing:border-box;overflow:auto}
.museum-is-3d .museum-feature h3,.museum-is-3d .museum-feature [data-feature-fullname]{text-transform:uppercase}

/* Budget the toolbar inside the museum viewport, rather than above a full-height canvas. */
.room-stage .museum-shell:has(.museum-is-3d){display:flex;flex-direction:column;height:clamp(360px,calc(100dvh - 112px),900px);min-height:0}
.museum-shell:has(.museum-is-3d)>.museum-experience{flex:0 0 auto}
.room-stage .museum-world.museum-is-3d{flex:1 1 0;height:auto;min-height:0;width:100%}
@media(max-width:900px){.room-stage .museum-shell:has(.museum-is-3d){height:clamp(320px,calc(100dvh - 230px),900px)}}

/* A hidden/sliding gallery must never create a scroll offset in the 3D viewport. */
.room-stage .museum-shell:has(.museum-is-3d),.room-stage .museum-world.museum-is-3d{overflow:clip}
.museum-is-3d .museum-feature{overscroll-behavior:contain}

/* The class treasury: sculptural data objects with an accessible numeric ledger. */
.finance-room{border:1px solid #3e5c6b;border-radius:22px;overflow:hidden;background:#101f2e;color:#f0f5f1;font-family:inherit}
.finance-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px;background:#142737;border-bottom:1px solid #39525d}
.finance-header span,.finance-kicker{font-size:9px;letter-spacing:.15em;font-weight:700;color:#9ac9bf}
.finance-header h2{font-size:24px;font-weight:500;line-height:1.2;margin:6px 0 0;letter-spacing:-.03em}
.finance-header button,.finance-view button,.finance-stations button{font:inherit;color:#e4efeb;background:#233b4b;border:1px solid #52717c;border-radius:10px;padding:9px 13px;cursor:pointer;font-size:11px}
.finance-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:560px}
.finance-stage{position:relative;min-width:0;min-height:560px;background:radial-gradient(ellipse at 50% 50%,#2a4b58,#102333 70%)}
.finance-scene{position:absolute;inset:45px 0 65px;min-height:0}
.finance-scene canvas{display:block;width:100%;height:100%;touch-action:pan-y;cursor:grab}
.finance-scene canvas:active{cursor:grabbing}
.finance-view{position:absolute;top:16px;right:18px;display:flex;gap:5px}
.finance-view button{width:32px;height:32px;padding:0;font-size:17px}
.finance-stage-caption{position:absolute;top:65px;left:26px;pointer-events:none}
.finance-stage-caption>span{font-size:8px;letter-spacing:.19em;color:#a3c4cc}
.finance-stage-caption p{font-size:12px;color:#e4efeb;margin:6px 0}
.finance-stage-caption small{font-size:9px;color:#a3bbc6}
.finance-stations{position:absolute;bottom:20px;left:16px;right:16px;display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.finance-stations button{border-radius:20px;background:#172f40;padding:9px 14px}
.finance-stations button[aria-pressed=true]{background:#c5e8dc;border-color:#c5e8dc;color:#183b3f}
.finance-stations i{font-size:15px;margin-right:4px}
.finance-summary{padding:30px 24px;background:#f1f3eb;color:#223d40;display:flex;flex-direction:column;min-width:0}
.finance-summary [hidden]{display:none}
.finance-summary .finance-kicker{color:#4a726d}
.finance-summary h3{font-size:28px;font-weight:500;line-height:1.2;letter-spacing:-.04em;margin:12px 0 26px}
.finance-balance{padding:18px;border-radius:15px;background:#e6dfc9;border:1px solid #d8ceb1;margin-bottom:18px}
.finance-balance.mint{background:#d5e8df;border-color:#bdd6ca}
.finance-balance small{display:block;color:#4f6260;font-size:11px;margin-bottom:7px}
.finance-balance strong{display:block;font-size:clamp(19px,2vw,27px);letter-spacing:-.04em;font-weight:600;overflow-wrap:anywhere}
.finance-stat{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #ced8ce;font-size:11px}
.finance-stat span{color:#536b67}.finance-stat b{text-align:right;overflow-wrap:anywhere}
.finance-summary p{font-size:11px;line-height:1.7;color:#5b706a;margin-top:20px}
.finance-summary footer{margin-top:auto;padding-top:30px;font-size:9px;line-height:1.5;color:#5b706a}
.finance-summary progress{display:block;margin-top:14px;width:100%;height:6px;accent-color:#327e6c}
.finance-room button:focus-visible{outline:3px solid #d8b971;outline-offset:3px}
.finance-view button[aria-pressed=false]{opacity:.6}
.finance-room button:hover{filter:brightness(1.12)}
@media(max-width:1000px){.finance-layout{grid-template-columns:minmax(0,1fr) 280px}.finance-summary{padding:24px 18px}.finance-stage-caption{left:18px}.finance-header h2{font-size:22px}}
@media(max-width:720px){.finance-layout{grid-template-columns:1fr}.finance-stage{min-height:400px}.finance-header{padding:17px}.finance-header h2{font-size:19px}.finance-summary{padding:24px}.finance-summary h3{font-size:24px;margin-bottom:18px}.finance-summary footer{padding-top:22px}.finance-stage-caption{top:58px}.finance-scene{inset:75px 0 65px}.finance-stations{gap:5px;bottom:15px}.finance-stations button{font-size:10px;padding:9px 11px}}
.finance-room:not(.finance-has-3d) .finance-stage{min-height:180px}
.finance-room:not(.finance-has-3d) .finance-view,.finance-room:not(.finance-has-3d) .finance-stage-caption small{display:none}
.hotspot.attendance{left:63%;top:47%}.hotspot.attendance>span{background:#528e79}
.attendance-dialog-icon{background:#dcefe7;color:#43856b}.attendance-map-date{font-size:12px;color:#607568}.attendance-map-counts{display:flex;gap:10px;margin:18px 0}.attendance-map-counts>span{flex:1;padding:13px;border:1px solid #d9e6df;border-radius:12px;background:#f1f7f3;color:#547264;font-size:12px}.attendance-map-counts b{font-size:23px;margin-right:6px;color:#305948}.attendance-map-list{max-height:320px;overflow:auto}.attendance-map-list article{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #e2e9e4}.attendance-map-list article>span{width:28px;height:28px;display:grid;place-items:center;background:#e7efea;border-radius:9px;font-size:11px;color:#426455}.attendance-map-list article strong{font-size:13px}.attendance-map-list article>b{margin-left:auto;font-size:10px;padding:4px 9px;border-radius:20px;background:#f1e7d6;color:#896a35}.attendance-map-list>p,.attendance-map-sync{font-size:11px;color:#65766b;line-height:1.7}.attendance-manage-link{display:block;margin-top:18px;padding:12px;border:1px solid #bcd2c5;border-radius:11px;text-align:center;color:#386c54;font-size:11px;text-decoration:none}.student-seat.is-absent .student-seat-character{display:none}

.dialog-box>[data-dialog-content]>.attendance-map-date,.dialog-box>[data-dialog-content]>.attendance-map-sync{display:block}

/* Keep weather beside camera controls on narrow screens; progress gets its own row. */
@media(max-width:560px){
  .museum-experience{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:6px;padding:8px;min-width:0}
  .museum-tools{grid-column:1;grid-row:1;gap:3px}
  .museum-tools button{min-width:26px;width:26px;min-height:34px;padding:4px;font-size:11px}
  .museum-tools button:first-child{width:38px;white-space:nowrap}
  .museum-camera{grid-column:2;grid-row:1;justify-content:center;gap:3px;padding-left:5px;min-width:0}
  .museum-camera button{width:clamp(24px,6.5vw,30px);height:34px;flex-shrink:0}
  .museum-weather{grid-column:3;grid-row:1;justify-content:center;min-height:34px;margin:0;padding:5px 7px;gap:0;border-radius:9px;box-sizing:border-box}
  .museum-weather strong{font-size:14px;line-height:1.2}
  .museum-weather>.mdi,.museum-weather small{display:none}
  .museum-experience .museum-passport{grid-column:1/-1;grid-row:2;justify-self:end;margin:0;min-height:10px}
}

/* Compact summaries keep long announcements inside the separate detail dialog. */
.agenda-intro{max-width:52ch;line-height:1.65}
.agenda-card-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
.agenda-card-columns>section{min-width:0}.agenda-card-columns h3{margin:0 0 12px;font-size:14px;color:#334e70}
.agenda-card-list{display:grid;gap:12px;align-content:start}
.agenda-summary-card{display:flex;flex-direction:column;min-width:0;padding:15px;border:1px solid #dbe4ef;border-radius:15px;background:#fff;box-shadow:0 4px 14px #243b5710}
.agenda-card-category,.agenda-detail-category{color:#537594;font-size:10px;font-weight:600;overflow-wrap:anywhere}
.agenda-summary-card h4{margin:10px 0;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.agenda-summary-card time{display:block;font-size:10px;line-height:1.7;color:#65758a}
.agenda-detail-button,.agenda-detail-back{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;margin-top:16px;padding:9px 12px;border:1px solid #cddceb;border-radius:10px;background:#edf4fa;color:#31597e;font-family:inherit;font-size:11px;font-weight:600;line-height:1.4;cursor:pointer}
.agenda-detail-button:hover,.agenda-detail-back:hover{background:#dfeef8;border-color:#9cbad4}
.agenda-detail-button:focus-visible,.agenda-detail-back:focus-visible{outline:3px solid #72a4cc;outline-offset:3px}
.agenda-empty{padding:15px;border:1px dashed #cbd8e5;border-radius:12px;line-height:1.6}
.agenda-detail-dialog{width:min(92vw,680px)}.agenda-detail-dialog .dialog-box{padding:30px;max-height:85dvh;overscroll-behavior:contain}
.agenda-detail-dialog h2{padding-right:30px;font-size:24px;line-height:1.4;overflow-wrap:anywhere}
.agenda-detail-dialog .agenda-detail-meta{margin:12px 0;color:#60758b;font-size:11px;line-height:1.8}
.agenda-detail-location{padding:10px 12px;background:#edf3f8;border-radius:9px}
.agenda-detail-body{margin-top:20px;padding-top:18px;border-top:1px solid #e0e8f0;font-size:13px;color:#33465d;line-height:1.8}
.agenda-detail-body p{font-size:inherit;line-height:inherit;color:inherit}.agenda-detail-body h2{font-size:21px}.agenda-detail-body h3{font-size:18px}
.agenda-detail-back{justify-content:center;width:100%;margin-top:24px}
@media(max-width:600px){.agenda-card-columns{grid-template-columns:1fr;gap:22px}.agenda-summary-card{padding:16px}.agenda-detail-dialog .dialog-box{padding:25px 18px}.agenda-detail-dialog h2{font-size:21px}}
