.category-tabs[hidden],button[hidden]{display:none!important}
.category-tabs>span{padding:10px 22px;color:var(--mp-accent-ink);font-weight:600;font-size:13px}
.hub-hero{position:relative;display:flex;align-items:center;justify-content:space-between;overflow:hidden;margin:18px 0 22px;padding:26px 36px;border-radius:28px;background:var(--mp-card);box-shadow:var(--mp-shadow);min-height:230px}
.hub-hero-copy{position:relative;z-index:1;max-width:60%}.hero-tag{font-size:12px;font-weight:700;color:var(--mp-accent-ink);background:var(--mp-accent-soft);border-radius:999px;padding:5px 12px}.hub-hero h1{font:500 29px/1.5 var(--mp-display);margin:12px 0 6px;color:var(--mp-ink)}.hub-hero p{font-size:13px;color:var(--mp-muted);margin:0 0 12px}.hero-room{font-size:12px;background:var(--mp-soft-2);border-radius:999px;padding:4px 10px;color:var(--mp-muted)}.school-art{width:43%;max-width:480px;flex-shrink:0}
.hub-menu-heading{display:flex;justify-content:space-between;align-items:center;margin:0 4px 12px}.hub-menu-heading h2{font:500 18px var(--mp-display);margin:0}.hub-menu-heading>span{font-size:12px;color:var(--mp-muted)}
.hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.hub-tile{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:204px;padding:24px 16px 20px;background:var(--mp-card);border:2px solid transparent;border-radius:24px;box-shadow:var(--mp-shadow);transition:transform .15s,border-color .15s}.hub-tile:hover{transform:translateY(-3px);border-color:var(--mp-accent)}.hub-icon{display:grid;place-items:center;width:64px;height:64px;background:var(--mp-accent-soft);color:var(--mp-accent-ink);border-radius:20px;flex-shrink:0}.hub-icon svg{width:35px;height:35px}.blue .hub-icon{background:var(--mp-k-water-soft);color:#327bc5}.green .hub-icon{background:var(--mp-k-fan-soft);color:#1b9872}.purple .hub-icon{background:var(--mp-blue-soft);color:#6c60cb}.pink .hub-icon{background:var(--mp-bad-soft);color:#c86c82}.hub-tile h2{font:500 16px/1.5 var(--mp-display);margin:14px 0 6px}.hub-tile p{font-size:11.5px;color:var(--mp-muted);margin:0}.tile-number{position:absolute;top:14px;left:17px;font-size:11px;color:var(--mp-muted);opacity:.7}.tile-arrow{position:absolute;right:17px;top:12px;font-size:20px;color:var(--mp-muted)}.hub-foot{text-align:center;margin:18px 0}
.feature-card,.guide-card{background:var(--mp-card);border-radius:24px;padding:24px;box-shadow:var(--mp-shadow);margin-bottom:16px}.feature-card{display:flex;gap:24px;align-items:flex-start}.guide-card h2,.feature-card h2{font:500 19px var(--mp-display);margin:0 0 12px}.guide-card h3{font:500 16px var(--mp-display);margin:20px 0 12px}.guide-card p,.feature-card p,.guide-card li{font-size:13px;line-height:1.9;color:var(--mp-muted)}.guide-card ol{padding-left:24px}.action-link{display:inline-flex;align-items:center;gap:20px;padding:11px 20px;background:var(--mp-accent);border-radius:999px;font-size:13px;font-weight:700;margin:10px 0}.live-frame{width:100%;height:660px;border:0;border-radius:24px;background:var(--mp-bg)}.live-frame.switches{height:620px}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.activity-number{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--mp-accent-soft);color:var(--mp-accent-ink);font-size:11px;margin-bottom:16px}.guide-card form{display:flex;flex-direction:column;gap:10px;margin-top:16px}.guide-card label{font-size:12px;font-weight:600}.guide-card textarea{font:inherit;color:var(--mp-ink);resize:vertical;padding:12px;background:var(--mp-soft);border:1px solid var(--mp-line);border-radius:14px;min-height:120px;width:100%}.guide-card form button{background:var(--mp-accent)}.note-status{margin:0!important;color:var(--mp-ok)!important}.manual-list{max-width:1100px}.manual-list summary{cursor:pointer;font:500 16px var(--mp-display)}.manual-list details{padding:20px 24px}.report-controls{display:flex;align-items:flex-end;gap:16px;background:var(--mp-card);padding:20px;border-radius:24px;margin-bottom:16px}.report-controls label{display:flex;flex-direction:column;gap:8px;font-size:12px}.report-controls select{font:inherit;font-size:14px;border:1px solid var(--mp-line);padding:9px 14px;border-radius:12px;background:var(--mp-soft);color:var(--mp-ink)}.report-controls button{background:var(--mp-accent)}.report-empty{text-align:center;padding:50px}.report-empty svg{height:60px;width:60px;color:var(--mp-accent);margin-bottom:12px}.report-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.report-heading span{font-size:11px;color:var(--mp-muted)}.table-scroll{overflow-x:auto}.report-table{border-collapse:collapse;text-align:left;width:100%;font-size:12px}.report-table th,.report-table td{border-bottom:1px solid var(--mp-line);padding:12px 8px}.report-table thead{color:var(--mp-muted)}.report-list{padding:0;list-style:none}.report-list li{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--mp-line)}.report-list strong{font-size:12px;font-weight:500}
@media(min-width:1500px){.hub-tile{min-height:220px}.hub-hero{min-height:250px}}
@media(max-width:1050px){.hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.activity-grid{grid-template-columns:1fr}.hub-hero h1{font-size:25px}.hub-hero{padding:26px}.hub-tile{min-height:188px}}
@media(max-width:650px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hub-tile{padding:20px 10px 16px;border-radius:20px;min-height:190px}.hub-tile h2{font-size:14px}.hub-icon{width:52px;height:52px;border-radius:16px}.hub-icon svg{width:29px;height:29px}.hub-tile p{font-size:11px}.hub-menu-heading>span{display:none}.hub-hero{padding:22px;min-height:210px}.hub-hero-copy{max-width:100%}.hub-hero h1{font-size:23px}.school-art{position:absolute;opacity:.16;width:75%;right:-20px;bottom:0}.hub-hero p{max-width:240px}.hero-tag{font-size:10px}.feature-card{gap:12px;padding:18px}.feature-card>.hub-icon{display:none}.guide-card{padding:18px}.report-heading{display:block}.report-list li{display:block}.report-list strong{display:block}.report-controls{gap:10px}.category-tabs>span{padding:10px 12px;font-size:12px}.live-frame{height:700px}}
@media(min-width:1051px) and (max-height:850px){.hub-hero{height:180px;min-height:0;padding:18px 30px;margin:14px 0}.school-art{height:155px;width:auto}.hub-hero h1{font-size:25px;line-height:1.35;margin:8px 0 4px}.hub-hero p{margin-bottom:8px}.hub-tile{min-height:164px;padding:18px 12px 14px}.hub-icon{width:52px;height:52px;border-radius:17px}.hub-icon svg{width:30px;height:30px}.hub-tile h2{margin:9px 0 4px;font-size:15px}.hub-grid{gap:12px}.hub-menu-heading{margin-bottom:10px}.hub-foot{margin:12px 0}}
/* Document scrolling: never trap long pages in a viewport-sized body. */
html{min-height:100%;overflow-y:auto;scrollbar-gutter:stable;scroll-padding-top:20px}
body.category-page{position:static;inset:auto;height:auto;min-height:100vh;overflow:visible;background:radial-gradient(ellipse at 8% 0%,#dbeaff 0,transparent 45%),radial-gradient(ellipse at 95% 25%,#e9e3ff 0,transparent 42%),#f1f6fd;background-attachment:fixed}
.category-shell{min-height:100vh;padding-bottom:36px}
.category-header{border:1px solid #ffffffb3;box-shadow:0 6px 24px #314d8310}
.brand-icon{background:linear-gradient(145deg,#ffac5f,#f57c30);box-shadow:0 4px 10px #f58b3930}
.category-intro h1{color:#233453}.category-intro p{color:#62738d}
.category-tabs{border:1px solid #fff}.category-tabs a[aria-current]{background:linear-gradient(120deg,#ffab58,#ff8a3d);box-shadow:0 3px 8px #ed893b25}
.hub-hero{background:linear-gradient(115deg,#203854 0%,#2c5074 58%,#4c7798 100%);border:1px solid #ffffff50;box-shadow:0 12px 30px #203b6024;isolation:isolate}
.hub-hero:before,.hub-hero:after{content:'';position:absolute;border-radius:50%;z-index:-1;pointer-events:none}
.hub-hero:before{width:430px;height:430px;right:-60px;top:-230px;background:#c6e3ff12;border:1px solid #ffffff12}.hub-hero:after{width:260px;height:260px;right:20%;bottom:-220px;background:#ffb86b26}
.hub-hero h1{color:#fff}.hub-hero p{color:#d6e5f2}.hero-tag{background:#ffffff14;color:#ffd8b0;border:1px solid #ffffff24;letter-spacing:.3px}.hero-room{background:#ffffff14;color:#deebf9}.school-art{filter:drop-shadow(0 12px 12px #122b4830)}
.hub-tile{--tile-color:#e88b35;--tile-light:#fff3e6;--tile-border:#f3dcc0;background:linear-gradient(160deg,var(--tile-light),var(--mp-card) 68%);border:1px solid var(--tile-border);box-shadow:0 5px 15px #28436207;text-align:left;align-items:flex-start;padding-left:22px;padding-right:22px;overflow:hidden}
.hub-tile.blue{--tile-color:#3684ca;--tile-light:#e9f4ff;--tile-border:#cce2f6}.hub-tile.green{--tile-color:#239681;--tile-light:#e6f6ef;--tile-border:#c4e8dc}.hub-tile.purple{--tile-color:#7a68cb;--tile-light:#f0edff;--tile-border:#ddd5f6}.hub-tile.pink{--tile-color:#d36a8a;--tile-light:#fff0f4;--tile-border:#f4d4df}
.hub-tile .hub-icon{color:#fff;background:var(--tile-color);box-shadow:0 5px 12px color-mix(in srgb,var(--tile-color) 23%,transparent)}
.hub-tile .tile-number{left:auto;right:56px;top:16px;color:var(--tile-color);font-size:10px;font-weight:700;opacity:.8}
.hub-tile .tile-arrow{top:12px;right:13px;display:grid;place-items:center;border-radius:50%;width:26px;height:26px;background:#ffffffb3;color:var(--tile-color);font-size:16px}
.hub-tile h2{color:#263953}.hub-tile p{color:#64738b;font-size:11.5px;line-height:1.6}.hub-tile:hover{border-color:var(--tile-color);box-shadow:0 12px 26px #28436216;transform:translateY(-4px)}
.hub-menu-heading h2{color:#273d58}.hub-menu-heading h2:before{content:'';display:inline-block;width:5px;height:18px;border-radius:4px;background:#ff974d;margin-right:10px;vertical-align:middle}
.guide-card,.feature-card,.chart-card{border:1px solid #dee8f3;box-shadow:0 5px 18px #294a7510}
.manual-list{max-width:1180px}.manual-list details{--guide-color:#438bc7;border-left:4px solid var(--guide-color);padding:0;overflow:hidden;transition:box-shadow .15s,border-color .15s}
.manual-list details:nth-child(3n+2){--guide-color:#e89647}.manual-list details:nth-child(3n){--guide-color:#7c72c7}
.manual-list summary{list-style:none;position:relative;padding:20px 58px 20px 22px;color:#314661;background:linear-gradient(100deg,#edf5fd80,#fff);line-height:1.5}
.manual-list summary::-webkit-details-marker{display:none}.manual-list summary:after{content:'+';position:absolute;right:18px;top:18px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#edf3fa;color:var(--guide-color);font:400 22px/1 'Anuphan',sans-serif}
.manual-list details[open]{border-color:#b6cde5;border-left-color:var(--guide-color);box-shadow:0 8px 24px #31598312}.manual-list details[open] summary{color:var(--guide-color);border-bottom:1px solid #e4edf6}.manual-list details[open] summary:after{content:'−'}.manual-list details>p{padding:18px 22px;margin:0;color:#586b82;line-height:2}
.action-link,.report-controls button,.guide-card form button,.water-entry button{background:linear-gradient(120deg,#ffad61,#ff8a3d);box-shadow:0 3px 10px #ed914025}
.activity-grid .guide-card{border-top:4px solid #438bc7}.activity-grid .guide-card:nth-child(2){border-top-color:#e89647}.activity-grid .guide-card:nth-child(3){border-top-color:#8d77c8}
.report-table thead{background:#edf4fc}.report-table tbody tr:nth-child(even){background:#f6f9fd}.report-controls{border:1px solid #d9e6f4}.report-list li strong{color:#93621a;background:#fff4dd;padding:2px 9px;border-radius:8px}
html.dark body.category-page{background:radial-gradient(ellipse at 10% 0%,#203451,transparent 50%),#0f1424}.dark .category-header,.dark .category-tabs{border-color:var(--mp-line)}.dark .category-intro h1,.dark .hub-menu-heading h2,.dark .hub-tile h2{color:var(--mp-ink)}.dark .hub-tile{background:linear-gradient(150deg,color-mix(in srgb,var(--tile-color) 18%,#1a2135),#1a2135);border-color:color-mix(in srgb,var(--tile-color) 35%,#2e3853)}.dark .hub-tile p{color:var(--mp-muted)}.dark .guide-card,.dark .feature-card,.dark .chart-card,.dark .report-controls{border-color:var(--mp-line)}.dark .manual-list summary{background:var(--mp-card);color:var(--mp-ink)}.dark .manual-list summary:after{background:var(--mp-soft)}.dark .manual-list details>p{color:var(--mp-muted)}.dark .manual-list details[open] summary{border-color:var(--mp-line)}.dark .report-table thead,.dark .report-table tbody tr:nth-child(even){background:var(--mp-soft)}
@media(max-width:650px){.hub-tile{padding:20px 14px 16px}.hub-tile .tile-number{display:none}.manual-list summary{font-size:14px;padding:18px 54px 18px 16px}.manual-list details>p{padding:16px}.school-art{opacity:.26}.hub-hero{border-radius:24px}}
@media(prefers-reduced-motion:reduce){.hub-tile,.category-shortcuts a{transition:none}.hub-tile:hover{transform:none}}
/* Friendly mascot hero; the PNG alpha exposes the card underneath. */
.hub-hero{height:266px;min-height:266px;padding:24px 40px;overflow:hidden}
.hub-hero-copy{max-width:61%}.hub-hero h1{font-size:32px;line-height:1.45;letter-spacing:.1px;margin:12px 0 8px}.hero-warm{color:#ffd59a}.hub-hero p{font-size:14px;line-height:1.8;max-width:470px}.hero-tag{font-size:11px}.hero-room{display:inline-block;margin-top:5px}
.mascot-stage{position:relative;display:flex;justify-content:center;align-items:flex-end;align-self:stretch;flex:0 0 35%;min-width:240px;isolation:isolate}
.mascot-stage:before{content:'';position:absolute;bottom:-20px;width:245px;height:245px;border-radius:50%;background:radial-gradient(circle,#aedbff24,transparent 70%);z-index:-1}
.hero-mascot{position:absolute;right:12%;bottom:-15px;height:258px;width:auto;max-width:85%;object-fit:contain;background:transparent;filter:drop-shadow(0 8px 8px #112b4033)}
.mascot-speech{position:absolute;top:10px;left:-55px;z-index:2;padding:10px 15px;border-radius:17px 17px 4px 17px;background:#fff4de;color:#72542b;font:500 12px 'Mitr',sans-serif;box-shadow:0 5px 15px #142c4120;transform:rotate(-4deg)}
.mascot-spark{position:absolute;color:#ffdb92;font-size:26px;line-height:1;pointer-events:none}.spark-one{top:66px;right:8%}.spark-two{left:2%;bottom:26px;font-size:32px;color:#b8e8f1}
.hub-tile{padding-top:22px;padding-bottom:20px}.hub-tile .hub-icon{border-radius:19px 23px 18px 23px;transform:rotate(-4deg);border:2px solid #ffffffaa;box-shadow:0 5px 0 color-mix(in srgb,var(--tile-color) 17%,transparent),0 8px 15px color-mix(in srgb,var(--tile-color) 13%,transparent)}.hub-tile .hub-icon svg{transform:rotate(4deg);stroke-width:1.9}.hub-tile:hover .hub-icon{transform:rotate(3deg)}.hub-tile h2{font-weight:500;line-height:1.6}.hub-tile .tile-arrow{background:#fff;border:1px solid var(--tile-border)}
@media(min-width:1051px) and (max-height:850px){.hub-hero{height:246px;min-height:246px;padding:20px 32px}.hub-hero h1{font-size:29px;line-height:1.4}.hero-mascot{height:238px;bottom:-14px}.mascot-speech{top:10px;left:-62px}.hub-tile{min-height:170px}.hub-tile h2{font-size:15px}}
@media(max-width:850px){.hub-hero{padding:24px;height:280px;min-height:280px}.hub-hero h1{font-size:27px}.hub-hero-copy{max-width:58%}.hub-hero p{font-size:12px}.mascot-stage{min-width:180px;flex-basis:36%}.hero-mascot{right:-5%;height:242px;max-width:100%;bottom:-16px}.mascot-speech{left:-32px;top:12px;font-size:10px;padding:7px 10px}.spark-one{right:-10%;top:88px}.spark-two{left:-5%;bottom:20px}}
@media(max-width:540px){.hub-hero{height:300px;min-height:300px;padding:20px;align-items:flex-start}.hub-hero-copy{max-width:75%}.hub-hero h1{font-size:23px;margin-top:12px}.hub-hero p{max-width:195px;font-size:12px}.hero-room{margin-top:8px}.hero-tag{font-size:9px;padding:5px 8px}.mascot-stage{position:absolute;right:3px;bottom:0;width:155px;height:190px;min-width:0}.hero-mascot{height:185px;right:8px;bottom:0;max-width:100%}.mascot-speech{top:-18px;left:10px;font-size:9px;padding:6px 8px}.spark-one{right:5px;top:48px;font-size:20px}.spark-two{left:0;bottom:25px;font-size:23px}.hub-tile h2{font-size:14px}}
@media(prefers-reduced-motion:reduce){.hub-tile:hover .hub-icon{transform:rotate(-4deg)}}
/* Air-quality view: clear hierarchy and a friendly, data-aware advice area. */
.weather-page .category-intro{margin:24px 4px 10px}.weather-page .category-intro h1{font-size:26px}
.air-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:26px;align-items:center;background:linear-gradient(125deg,#deeffc,#ebedff 65%,#fff1e2);border:1px solid #cbdff3;border-radius:28px;padding:26px 30px;margin:18px 0 26px;box-shadow:0 10px 24px #30477808}
.air-kicker{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.3px;border-radius:99px;background:#ffffffb0;color:#417491;padding:5px 12px}.air-hero h2{font:500 24px/1.5 var(--mp-display);color:#304562;margin:12px 0 8px}.air-hero-copy>p{font-size:13px;color:#5c718b;margin:0 0 14px;max-width:490px}.air-fresh{font-size:11px;color:#546888;background:#ffffff90;padding:5px 10px;border-radius:8px}
.air-pm{border-radius:22px;background:#ffffffd9;border:1px solid #fff;padding:22px 26px;box-shadow:0 6px 20px #415b8310}.air-pm>span{font-size:13px;font-weight:600;color:#718198}.air-pm strong{display:block;font:500 45px/1.3 var(--mp-display);color:#b87838;margin:5px 0}.air-pm strong small{font:600 13px Anuphan,sans-serif;color:#8291a6}.air-pm p{font-size:12px;color:#66748b;margin:3px 0 7px}.air-pm>small{font-size:10px;color:#8995a6}.air-pm.normal strong{color:#298978}.air-pm.high strong{color:#c76b33}
.air-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 3px 12px}.air-section-title h2{font:500 18px var(--mp-display);margin:0}.air-section-title>span{font-size:11px;color:var(--mp-muted)}
.weather-page .measure{background:var(--mp-card);border:1px solid #dce7f2;box-shadow:0 5px 15px #38507c06;border-radius:22px;padding:18px 20px}.weather-page .measure.out-of-range{border-color:#f0c8bd;background:linear-gradient(145deg,#fff7f3,#fff)}.weather-page .measure strong{font-size:31px;color:#344d69}.weather-page .measure.out-of-range strong{color:#b76745}.sensor-title{display:flex;align-items:center;gap:8px;min-height:34px}.sensor-symbol{display:inline-grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:11px;background:#eaf2ff;color:#5683b4;font:600 14px 'Anuphan',sans-serif}.weather-page .sun .sensor-symbol{color:#c28c38;background:#fff0d6}.weather-page .water .sensor-symbol{color:#3688aa;background:#e3f5f8}.weather-page .out-of-range .sensor-symbol{color:#c48154;background:#fff0e4}.weather-page .badge.old{background:#fff2d7;color:#977228}.weather-page .reading-time{font-size:10px;color:#8290a3}
.air-advice{margin:28px 0 0;padding:22px;border-radius:28px;background:#ffffffa6;border:1px solid #ffffff}.air-advice>.air-section-title{margin-top:0}.advice-welcome{display:flex;align-items:center;gap:20px;padding:8px 24px;margin:16px 0;background:linear-gradient(110deg,#fff1dd,#fff8ed 60%,#f3edff);border-radius:20px;min-height:112px}.advice-welcome img{height:108px;width:72px;object-fit:contain;align-self:flex-end}.advice-welcome strong{font:500 18px var(--mp-display);color:#705738}.advice-welcome p{font-size:12px;color:#8b7962;margin:5px 0}.advice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.advice-card{padding:20px;border:1px solid #ecdfc9;border-radius:20px;background:#fffcf5}.advice-card.blue{background:#f3f8fe;border-color:#d7e7f6}.advice-card.green{background:#f1faf5;border-color:#d8eadf}.advice-card>span{display:grid;place-items:center;width:29px;height:29px;font-size:11px;font-weight:700;border-radius:10px;background:#f5e6c9;color:#8c7047}.advice-card.blue>span{background:#dcecfb;color:#4d7caa}.advice-card.green>span{background:#ddefe4;color:#458b6a}.advice-card h3{font:500 15px/1.6 var(--mp-display);margin:12px 0 8px;color:#354d63}.advice-card p{font-size:12.5px;line-height:1.95;color:#6a7988;margin:0}.air-advice a{text-decoration:underline;text-underline-offset:3px}
.dark .air-hero{background:linear-gradient(120deg,#223c50,#34324e);border-color:#3a4a60}.dark .air-hero h2,.dark .advice-card h3{color:var(--mp-ink)}.dark .air-hero-copy>p,.dark .air-pm p,.dark .advice-card p{color:var(--mp-muted)}.dark .air-pm,.dark .air-advice{background:var(--mp-card);border-color:var(--mp-line)}.dark .weather-page .measure,.dark .weather-page .measure.out-of-range{background:var(--mp-card);border-color:var(--mp-line)}.dark .advice-card,.dark .advice-card.blue,.dark .advice-card.green{background:var(--mp-soft);border-color:var(--mp-line)}.dark .advice-welcome{background:#393326}.dark .advice-welcome strong{color:#f1d7b5}
@media(max-width:850px){.air-hero{grid-template-columns:1fr 1fr;padding:22px;gap:18px}.air-hero h2{font-size:21px}.advice-grid{grid-template-columns:1fr}.air-section-title>span{display:none}}
@media(max-width:540px){.air-hero{grid-template-columns:1fr;padding:18px;gap:16px}.air-hero h2{font-size:21px}.air-pm{padding:16px 20px}.air-pm strong{font-size:37px}.weather-page .category-intro h1{font-size:22px}.weather-page .measure{padding:14px}.sensor-title{flex-wrap:wrap;font-size:12px!important}.air-advice{padding:14px}.advice-welcome{gap:12px;padding:10px 14px}.advice-welcome strong{font-size:15px}.advice-welcome img{width:56px;height:90px}.air-section-title h2{font-size:16px}}
/* Strong sensor-card colors with accessible status badges and playful line icons. */
.weather-page .measure{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(140deg,#dcecff,#cbdff8);border:1px solid #b7d2ef;box-shadow:0 6px 15px #36577c0b;transition:transform .18s ease,box-shadow .18s ease;min-height:228px}
.weather-page .measure.stale{background:linear-gradient(135deg,#fff0c9,#ffe3a2);border-color:#efd38b}
.weather-page .measure.out-of-range{background:linear-gradient(135deg,#ffe1d9,#ffcbbc);border-color:#edb3a3}
.weather-page .measure:after{content:'';position:absolute;width:106px;height:106px;border:16px solid #ffffff35;border-radius:50%;right:-43px;top:-43px;z-index:-1;pointer-events:none}
.weather-page .measure:before{content:'';position:absolute;right:18px;top:69px;width:6px;height:6px;background:#ffffff8c;border-radius:50%;box-shadow:-12px 12px 0 -1px #ffffff8c,8px 18px 0 -2px #ffffff8c;pointer-events:none}
.weather-page .sensor-title{color:#3b4257;font-size:13px;gap:10px}
.weather-page .sensor-symbol{width:42px;height:42px;border-radius:14px 17px 13px 17px;background:#588aba;color:white;border:2px solid #ffffffae;box-shadow:0 4px 0 #36577c12;transform:rotate(-4deg);transition:transform .2s ease}
.weather-page .sensor-symbol svg{width:25px;height:25px;transform:rotate(4deg)}
.weather-page .stale .sensor-symbol{background:#c79738;color:white}
.weather-page .out-of-range .sensor-symbol{background:#cc7154;color:white}
.weather-page .measure strong{font-size:34px;margin:12px 0 5px;color:#373d51}.weather-page .measure.out-of-range strong{color:#a4462d}
.weather-page .measure p,.weather-page .measure .reading-time{color:#635e5c}.weather-page .measure strong small{color:#696566}
.weather-page .badge.old{background:#ffffffcb;color:#7e5a26;border:1px solid #ffffff80}.weather-page .out-of-range .badge.old{color:#92492f}
.weather-page .measure:hover{transform:translateY(-3px);box-shadow:0 12px 22px #36577c17}.weather-page .measure:hover .sensor-symbol{transform:rotate(5deg) scale(1.06)}
.dark .weather-page .measure{background:linear-gradient(135deg,#23364c,#1c2b41);border-color:#385270}.dark .weather-page .measure.stale{background:linear-gradient(135deg,#493c24,#3b321f);border-color:#66512c}.dark .weather-page .measure.out-of-range{background:linear-gradient(135deg,#54352e,#422822);border-color:#754a3d}.dark .weather-page .sensor-title,.dark .weather-page .measure strong{color:#f8e6c7}.dark .weather-page .measure.out-of-range strong{color:#ffb49e}.dark .weather-page .measure p,.dark .weather-page .measure .reading-time,.dark .weather-page .measure strong small{color:#dac8b6}
@media(max-width:540px){.weather-page .sensor-symbol{width:35px;height:35px}.weather-page .sensor-symbol svg{width:22px;height:22px}.weather-page .measure{min-height:238px}.weather-page .sensor-title{gap:7px}.weather-page .measure strong{font-size:28px}}
@media(prefers-reduced-motion:reduce){.weather-page .measure,.weather-page .sensor-symbol{transition:none}.weather-page .measure:hover{transform:none}.weather-page .measure:hover .sensor-symbol{transform:rotate(-4deg)}}
/* Clear normal-state green, independent of the timestamp badge. */
.weather-page .measure.in-range{background:linear-gradient(135deg,#d9f4de,#afe3c2);border-color:#94cfaa}.weather-page .measure.in-range strong{color:#246e4d}.weather-page .in-range .sensor-symbol{background:#388f65;color:#fff}.weather-page .in-range .range-label{color:#286b48;font-weight:600}.weather-page .in-range .badge.good{background:#e8fff0;color:#256344}
.air-advice{background:linear-gradient(140deg,#dbeaf8,#dcdff6);border:1px solid #becde6;box-shadow:0 8px 24px #334c7710}.air-advice>.air-section-title h2{color:#263d60}.air-advice>.air-section-title>span{color:#53698b}
.advice-welcome{background:linear-gradient(110deg,#286974,#39598d);border:1px solid #ffffff44;min-height:155px;padding:10px 26px;gap:26px;box-shadow:0 6px 16px #2549701a;position:relative;overflow:hidden}.advice-welcome:after{content:'';position:absolute;right:-40px;top:-75px;width:210px;height:210px;border:25px solid #ffffff0c;border-radius:50%;pointer-events:none}.advice-welcome img{height:142px;width:100px;object-fit:contain;filter:drop-shadow(0 5px 5px #15344933);flex-shrink:0}.advice-welcome strong{color:#fff0cc;font-size:19px}.advice-welcome p{color:#d9e9f4;font-size:13px}
.advice-card{background:linear-gradient(135deg,#ffe9bb,#f9d69a);border:1px solid #e7bf7f;box-shadow:0 4px 12px #4859750a}.advice-card.blue{background:linear-gradient(135deg,#d2e7ff,#b6d7f4);border-color:#98bfdf}.advice-card.green{background:linear-gradient(135deg,#d3f0dd,#acdcbf);border-color:#8ec6a6}.advice-card>span{background:#b27e32;color:#fff9ed;box-shadow:0 3px 0 #9c6c2820}.advice-card.blue>span{background:#487eb0;color:#fff}.advice-card.green>span{background:#3c8d65;color:#fff}.advice-card h3{color:#2e4259}.advice-card p{color:#485769}.air-advice>.footnote{color:#506281}
.dark .weather-page .measure.in-range{background:linear-gradient(135deg,#234835,#1b3d2e);border-color:#3f7255}.dark .weather-page .measure.in-range strong,.dark .weather-page .in-range .range-label{color:#a6e6bc}.dark .air-advice{background:linear-gradient(135deg,#21344b,#2b314b);border-color:#3b4c64}.dark .air-advice>.air-section-title h2{color:var(--mp-ink)}.dark .advice-welcome{background:linear-gradient(110deg,#24535e,#30446a)}.dark .advice-welcome strong{color:#fff0cc}.dark .advice-welcome p{color:#d9e9f4}.dark .advice-card{background:#493d27;border-color:#6a5530}.dark .advice-card.blue{background:#243e59;border-color:#385775}.dark .advice-card.green{background:#284837;border-color:#3d6650}.dark .advice-card h3{color:#f0e9dd}.dark .advice-card p{color:#d5dce4}
@media(max-width:540px){.advice-welcome{padding:10px 15px;gap:14px;min-height:145px}.advice-welcome img{width:80px;height:125px}.advice-welcome strong{font-size:15px}.advice-welcome p{font-size:11px}}
/* Resource dashboard shares weather card structure; colors identify resource, not thresholds. */
.utility-page .utility-stats .measure{position:relative;overflow:hidden;border-radius:24px;padding:24px;min-height:200px;border:1px solid #3e6380;background:linear-gradient(135deg,#284760,#355c78);box-shadow:0 8px 22px #254a7020;color:#fff}.utility-page .utility-stats .measure.sun{background:linear-gradient(135deg,#69502a,#896634);border-color:#a1854c}.utility-page .utility-stats .measure.water{background:linear-gradient(135deg,#205775,#2b7891);border-color:#4b92a7}.utility-page .utility-stats .sensor-title{display:flex;align-items:center;gap:11px;font-weight:600;font-size:14px;color:#fff}.utility-page .utility-stats .sensor-symbol{display:grid;place-items:center;width:42px;height:42px;padding:9px;border-radius:14px;background:#ffffff1c;flex-shrink:0}.utility-page .utility-stats svg{width:25px;height:25px}.utility-page .utility-stats .measure strong{color:#fff3d6;font-size:38px;display:block;margin:18px 0 10px}.utility-page .utility-stats .water strong{color:#d3f4ff}.utility-page .utility-stats .measure strong small{font-size:14px;color:#fff9}.utility-page .utility-stats .measure p{color:#e5edf3;font-size:12px;line-height:1.7}.utility-page .chart-card{border:1px solid var(--mp-line);box-shadow:var(--mp-shadow);border-radius:24px}.utility-page .charts-grid{gap:18px;margin-top:20px}.utility-page .empty-chart{background:var(--mp-soft);border:1px dashed var(--mp-line);border-radius:20px;min-height:240px}.utility-page .empty-chart>span{font-size:34px;color:var(--mp-k-water)}.utility-page .utility-advice{margin-top:24px}.utility-page .water-entry{margin-top:24px}.utility-page .air-advice .footnote{color:var(--mp-muted)}@media(max-width:650px){.utility-page .utility-stats .measure{padding:19px;min-height:185px}.utility-page .utility-stats .measure strong{font-size:32px}.utility-page .utility-stats .sensor-title{font-size:13px}.utility-page .charts-grid{grid-template-columns:1fr}}
.utility-page .utility-stats .sensor-symbol{color:#fff0bf}.utility-page .utility-stats .water .sensor-symbol{color:#c8f4ff}
/* Mustard electricity and soft sky-blue water cards. */
.utility-page .utility-stats .measure.sun{background:linear-gradient(135deg,#eed478,#dbb847);border-color:#c8a43a}
.utility-page .utility-stats .measure.water{background:linear-gradient(135deg,#d6edfb,#acd6ee);border-color:#93c5e0}
.utility-page .utility-stats .sensor-title,.utility-page .utility-stats .measure strong{color:#493d1e}
.utility-page .utility-stats .measure p,.utility-page .utility-stats .measure strong small{color:#61512d}
.utility-page .utility-stats .sensor-symbol{color:#755b16;background:#fff5cc80}
.utility-page .utility-stats .water .sensor-title,.utility-page .utility-stats .water strong{color:#244c68}
.utility-page .utility-stats .water p,.utility-page .utility-stats .water strong small{color:#3b607b}
.utility-page .utility-stats .water .sensor-symbol{color:#337698;background:#effaff99}
.switch-reference-page .switch-hero{position:relative;min-height:155px;padding:30px 340px 24px 26px;margin:12px 0 0;background:linear-gradient(115deg,#e0f2ff,#f4faff 65%,#e1efff);border:1px solid #dcebf9;border-radius:26px 26px 0 0;overflow:hidden}.switch-reference-page .switch-hero h1{font-size:28px;color:#17345e}.switch-hero-art{position:absolute;right:28px;bottom:0;display:flex;align-items:center;gap:16px;height:155px}.switch-hero-art img{height:150px;width:108px;object-fit:contain;filter:drop-shadow(0 4px 4px #375e7920)}.switch-hero-art span{font:400 15px/1.8 Mitr,sans-serif;color:#4779a4;transform:rotate(-5deg)}.switch-reference-page .live-frame.switches{border:0;border-radius:0 0 24px 24px;background:#edf6ff}
@media(max-width:700px){.switch-reference-page .switch-hero{padding:22px 105px 20px 18px;min-height:148px}.switch-reference-page .switch-hero h1{font-size:21px}.switch-hero-art{right:3px;height:125px}.switch-hero-art img{width:92px;height:122px}.switch-hero-art span{display:none}}
/* AI-Kid's smart-classroom control banner. */
.switch-reference-page .switch-hero{min-height:228px;padding:34px 450px 28px 32px;background:radial-gradient(circle at 85% 50%,#d5e7ff 0,transparent 34%),linear-gradient(110deg,#e1f4ff,#f5f9ff 54%,#e8e5ff);border-color:#d1e3f6;isolation:isolate}.switch-reference-page .switch-hero:before{content:'';position:absolute;width:280px;height:280px;right:30px;top:0;border:1px dashed #a4c6e0;border-radius:50%;z-index:-1}.switch-reference-page .switch-hero:after{content:'✦';position:absolute;right:270px;top:32px;color:#e6b348;font-size:30px;z-index:-1}.switch-reference-page .switch-hero h1{font-size:30px;margin:8px 0 9px}.switch-reference-page .switch-hero p{font-size:14px;line-height:1.8;color:#557394}.switch-hero-chips{display:flex;gap:9px;margin-top:21px;flex-wrap:wrap}.switch-hero-chips span{display:inline-block;padding:7px 13px;border:1px solid #fff;border-radius:99px;background:#fff2ba;color:#796126;font-size:12px;font-weight:600;box-shadow:0 3px 8px #52779909}.switch-hero-chips span:nth-child(2){background:#dfefdf;color:#37725a}.switch-hero-chips span:nth-child(3){background:#dbeefe;color:#376d91}.switch-hero-art{right:22px;bottom:0;height:226px;gap:0;align-items:center}.switch-hero-art img{height:218px;width:218px;object-fit:contain;filter:drop-shadow(0 6px 7px #36558220);align-self:flex-end}.switch-hero-art .switch-speech{font:400 13px/1.8 Anuphan,sans-serif;background:#ffffffdc;border:1px solid #d5e5f5;box-shadow:0 6px 16px #4b6a9010;color:#507398;border-radius:20px 20px 4px 20px;padding:13px 17px;transform:rotate(-4deg);margin-right:3px;margin-bottom:36px}.switch-speech b{color:#315580;font-weight:600}
@media(max-width:1000px){.switch-reference-page .switch-hero{padding:28px 300px 24px 25px}.switch-reference-page .switch-hero h1{font-size:26px}.switch-hero-art .switch-speech{display:none}.switch-hero-art img{height:215px;width:215px}.switch-hero-art{right:20px}}
@media(max-width:650px){.switch-reference-page .switch-hero{padding:22px 130px 22px 17px;min-height:232px}.switch-reference-page .switch-hero h1{font-size:21px;line-height:1.5}.switch-reference-page .switch-hero p{font-size:11px}.switch-hero-art{right:-13px;height:158px;bottom:5px}.switch-hero-art img{height:157px;width:157px}.switch-hero-chips{gap:5px;margin-top:12px}.switch-hero-chips span{font-size:10px;padding:4px 9px}.switch-reference-page .switch-hero:before{width:190px;height:190px;right:-55px;top:55px}.switch-reference-page .switch-hero:after{right:20px;top:25px;font-size:23px}}
/* Home typography scales with the available space, with equal-height menu rows. */
.home-page .back strong{font-size:22px;line-height:1.4}
.home-page .back small{font-size:14px}
.home-page #refresh{font-size:15px;padding:12px 20px}
.home-page .hub-hero{height:auto;min-height:310px;padding:30px 40px;gap:28px}
.home-page .hub-hero-copy{max-width:65%;flex:1}
.home-page .hub-hero h1{font-size:clamp(32px,2.8vw,48px);line-height:1.35;margin:16px 0 12px}
.home-page .hub-hero p{font-size:18px;line-height:1.7;max-width:660px;margin-bottom:14px}
.home-page .hero-tag{font-size:13px}
.home-page .hero-room{font-size:14px;padding:5px 12px}
.home-page .hero-mascot{height:292px;bottom:-20px}
.home-page .mascot-speech{font-size:15px;left:-35px;top:12px}
.home-page .hub-menu-heading{margin:24px 4px 16px;gap:16px}
.home-page .hub-menu-heading h2{font-size:23px}
.home-page .hub-menu-heading>span{font-size:14px}
.home-page .hub-grid{gap:18px;grid-auto-rows:1fr}
.home-page .hub-tile{min-height:234px;padding:26px 24px;justify-content:flex-start}
.home-page .hub-tile h2{font-size:clamp(19px,1.35vw,23px);line-height:1.5;margin:17px 0 8px}
.home-page .hub-tile p{font-size:15px;line-height:1.7}
.home-page .hub-tile .tile-number{font-size:12px}
.home-page .hub-foot{font-size:14px;line-height:1.7}
@media(max-width:1050px){
 .home-page .hub-hero{padding:28px;min-height:320px}
 .home-page .hub-hero p{font-size:16px}
 .home-page .mascot-speech{font-size:12px;left:-25px}
 .home-page .hub-tile{padding:24px 20px}
}
@media(max-width:650px){
 .home-page .back strong{font-size:18px}.home-page .back small{font-size:12px}
 .home-page #refresh{font-size:12px;padding:10px 12px}
 .home-page .hub-hero{padding:24px 20px;min-height:340px;align-items:flex-start}
 .home-page .hub-hero-copy{max-width:100%}
 .home-page .hub-hero h1{font-size:30px}
 .home-page .hub-hero p{font-size:15px;max-width:210px}
 .home-page .hero-tag{font-size:10px}.home-page .hero-room{font-size:12px}
 .home-page .mascot-stage{position:absolute;right:0;bottom:0;width:140px;height:180px;min-width:0}
 .home-page .hero-mascot{height:180px;bottom:0;right:3px}
 .home-page .mascot-speech{display:none}
 .home-page .hub-menu-heading h2{font-size:20px}
 .home-page .hub-grid{gap:12px}
 .home-page .hub-tile{min-height:230px;padding:24px 16px 20px}
 .home-page .hub-tile h2{font-size:17px;margin-top:16px}
 .home-page .hub-tile p{font-size:14px}
 .home-page .hub-foot{font-size:12px}
}
/* Switch page heading matches the larger control labels. */
.switch-reference-page .switch-hero{min-height:270px;padding:34px 420px 30px 32px}
.switch-reference-page .switch-hero h1{font-size:clamp(30px,2.6vw,42px);line-height:1.4}
.switch-reference-page .switch-hero p{font-size:18px;line-height:1.7}
.switch-reference-page .switch-hero-chips span{font-size:15px;padding:8px 15px}
.switch-reference-page .switch-hero-art{height:264px}
.switch-reference-page .switch-hero-art img{width:260px;height:260px}
.switch-reference-page .switch-hero-art .switch-speech{font-size:15px}
@media(max-width:1000px){.switch-reference-page .switch-hero{padding-right:280px}.switch-reference-page .switch-hero-art img{width:240px;height:240px}}
@media(max-width:650px){.switch-reference-page .switch-hero{padding:24px 135px 24px 20px;min-height:270px}.switch-reference-page .switch-hero h1{font-size:26px}.switch-reference-page .switch-hero p{font-size:15px}.switch-reference-page .switch-hero-art{height:180px}.switch-reference-page .switch-hero-art img{width:170px;height:170px}.switch-reference-page .switch-hero-chips span{font-size:12px;padding:5px 10px}}

/* Home masthead: clear identity, grouped actions, and a separate mobile action row. */
.home-page .home-header{position:relative;display:flex;align-items:center;gap:28px;min-height:106px;padding:18px 24px;border:1px solid #fff;border-radius:26px;background:linear-gradient(105deg,#fff 0%,#fff 62%,#f2f7ff 100%);box-shadow:0 8px 30px #27466b0c;font-family:Tahoma,sans-serif}
.home-page .home-header .back{flex:1;gap:16px;min-width:0;max-width:390px}
.home-page .home-brand-mark{position:relative;width:62px;height:62px;border-radius:14px;background:#fff;box-shadow:none;overflow:hidden}
.home-page .home-brand-mark img{display:block;width:100%;height:100%;object-fit:contain;transform:scale(1.4)}
.home-page .home-brand-copy{min-width:0}
.home-page .home-header .back strong{display:block;font-family:Tahoma,sans-serif;font-size:32px;font-weight:800;line-height:1.2;letter-spacing:-1px;color:#1c3d63}
.home-page .home-header .back strong>span{color:#236cb0}
.home-page .home-header .back strong>i{font-style:normal;color:#ed8b37}
.home-page .home-header .back small{font-size:15px;line-height:1.5;font-weight:400;color:#5d718a;margin-top:5px}
.home-header-welcome{flex:1;min-width:190px;border-left:1px solid #dfe8f3;padding-left:26px}
.home-header-welcome>span{display:block;color:#284c73;font-size:20px;font-weight:bold;line-height:1.5}
.home-header-welcome i{display:inline-block;font-size:22px;font-style:normal;color:#eaa238;margin-left:6px}
.home-header-welcome small{display:block;font-size:14px;line-height:1.6;color:#6a7e94;margin-top:3px}
.home-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0;margin-left:auto}
.home-page .home-header-actions .home-teacher-link,.home-page .home-header #refresh{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:14px 20px;margin:0;border:1px solid #d6e3f1;border-radius:16px;background:#f0f6fd;color:#264c75;box-shadow:none;font:700 17px/1.5 Tahoma,sans-serif;text-align:center;text-decoration:none;transition:background .16s,box-shadow .16s,transform .16s}
.home-page .home-header-actions svg{width:23px;height:23px;flex-shrink:0}
.home-page .home-header #refresh{background:#246ab0;border-color:#246ab0;color:#fff;box-shadow:0 4px 0 #174a7d}
.home-page .home-header #refresh[data-authenticated="true"]{background:#fff;border-color:#d6e3f1;color:#556b82;box-shadow:none}
.home-page .home-header-actions .home-teacher-link:hover{background:#e2effe;transform:translateY(-1px)}
.home-page .home-header #refresh:hover{background:#1c548e;border-color:#1c548e;transform:translateY(-1px)}
.home-page .home-header #refresh[data-authenticated="true"]:hover{background:#eef3f9;border-color:#b9cee4;color:#284c73}
.home-page .home-header a:focus-visible,.home-page .home-header button:focus-visible{outline:3px solid #e89630;outline-offset:4px}
@media(max-width:1100px){.home-header-welcome{display:none}.home-page .home-header{gap:20px}.home-page .home-header .back{max-width:none}}
@media(max-width:760px){
 .home-page .home-header{flex-wrap:wrap;gap:18px;padding:20px;border-radius:24px}
 .home-page .home-header .back{flex:1 1 100%}
 .home-header-actions{display:grid;grid-template-columns:1fr 1.25fr;align-items:stretch;gap:10px;width:100%;padding-top:16px;border-top:1px solid #e3ecf6;margin-left:0}
 .home-page .home-header-actions .home-teacher-link,.home-page .home-header #refresh{width:100%;min-width:0;min-height:60px;padding:12px;font-size:16px;border-radius:14px}
}
@media(max-width:420px){
 .home-page .home-header{padding:16px;gap:16px}
 .home-page .home-header .back{gap:14px}
 .home-page .home-brand-mark{width:54px;height:54px;border-radius:16px}
 .home-page .home-header .back strong{font-size:30px}
 .home-page .home-header .back small{font-size:14px}
 .home-header-actions{gap:8px;padding-top:14px}
 .home-page .home-header-actions .home-teacher-link,.home-page .home-header #refresh{gap:7px;padding:10px 8px;min-height:64px}
 .home-page .home-header-actions svg{width:20px;height:20px}
}
.dark .home-page .home-header{background:linear-gradient(105deg,#1a263b,#202f48);border-color:#364763;box-shadow:none}
.dark .home-page .home-header .back strong,.dark .home-header-welcome>span{color:#edf4ff}
.dark .home-page .home-header .back strong>span{color:#8ec5ff}
.dark .home-page .home-header .back small,.dark .home-header-welcome small{color:#b1c2d7}
.dark .home-header-welcome,.dark .home-header-actions{border-color:#3b4d69}
.dark .home-page .home-header-actions .home-teacher-link,.dark .home-page .home-header #refresh[data-authenticated="true"]{background:#2c3e59;border-color:#455d7a;color:#dceaff}
.dark .home-page .home-header-actions .home-teacher-link:hover,.dark .home-page .home-header #refresh[data-authenticated="true"]:hover{background:#354f72}
@media(prefers-reduced-motion:reduce){.home-page .home-header-actions a,.home-page .home-header #refresh{transition:none;transform:none}}

/* Live sensor entry and water-level strip on the home dashboard. */
.home-live-strip{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.8fr);gap:0;margin:16px 0 0;border:1px solid #cfdfef;border-radius:24px;background:linear-gradient(120deg,#f7fbff,#fff 65%);box-shadow:0 6px 22px #254b700b;overflow:hidden;font-family:Tahoma,sans-serif}
.home-page .home-sensor-status{display:flex;align-items:center;gap:16px;width:100%;min-height:116px;text-align:left;padding:22px;border:0;border-radius:0;background:transparent;color:#234d78;box-shadow:none;transition:background .16s}
.home-page .home-sensor-status:hover{background:#eaf4ff;transform:none}
.home-status-icon,.home-water-icon{display:grid;place-items:center;flex-shrink:0;width:54px;height:54px;border-radius:17px;background:#dfedff;color:#2771b3}
.home-status-icon svg,.home-water-icon svg{width:30px;height:30px}
.home-sensor-status>span:nth-child(2){flex:1;min-width:0}.home-sensor-status strong{display:block;font-size:21px;line-height:1.5}.home-sensor-status small{display:block;font-size:14px;font-weight:400;line-height:1.5;margin-top:4px;color:#5b7592}.home-status-arrow{font-size:25px;color:#3e7ab3}
.home-water-status{display:flex;align-items:center;gap:18px;min-width:0;padding:20px 24px;border:0;border-left:1px solid #dfebf4;border-radius:0;background:transparent;box-shadow:none}
.home-water-icon{background:#e0f4fb;color:#197b9c}
.home-water-main{flex:1;min-width:0}.home-water-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.home-water-heading h2{font-size:20px;line-height:1.4;margin:0;color:#24556b}
.home-water-main p{margin:8px 0 0;font-size:13px;line-height:1.5;color:#5f7a89}.home-water-status>strong{flex-shrink:0;font-size:30px;line-height:1.5;color:#22779c;max-width:170px;overflow-wrap:anywhere}
.home-water-gauge{position:relative;min-height:30px;border:1px dashed #bad3df;border-radius:9px;background:repeating-linear-gradient(135deg,#eaf2f6 0,#eaf2f6 7px,#f5f9fb 7px,#f5f9fb 14px);overflow:hidden}
.home-water-fill{position:absolute;inset:0 auto 0 0;width:0;background:#9bdcf1;transition:width .45s ease-out}.home-water-gauge.has-reading{border:1px solid #b7dbe5;background:#edf7fa}.home-water-gauge[data-band="normal"] .home-water-fill{background:#97ddbf}.home-water-gauge[data-band="low"] .home-water-fill{background:#ffd489}.home-water-gauge[data-band="high"] .home-water-fill{background:#f6b5b4}
.home-water-placeholder{position:relative;z-index:1;display:block;text-align:center;font-size:13px;line-height:28px;color:#355c70}
.sensor-state{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:999px;padding:5px 10px;font:600 13px/1.5 Tahoma,sans-serif;white-space:nowrap}.sensor-state:before{content:'';height:7px;width:7px;border-radius:50%;background:currentColor;flex-shrink:0}.sensor-state.neutral{color:#65788c;background:#edf2f7}.sensor-state.fresh,.sensor-state.normal{color:#256947;background:#e3f5eb}.sensor-state.stale,.sensor-state.low{color:#936220;background:#fff1d8}.sensor-state.high{color:#a13d3c;background:#ffe7e5}
.home-sensor-dialog{width:min(820px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);padding:0;border:1px solid #dce7f3;border-radius:26px;background:#f8fbff;color:#203b5a;box-shadow:0 24px 90px #10294244;font:16px/1.6 Tahoma,sans-serif;overflow:auto;overscroll-behavior:contain}
.home-sensor-dialog::backdrop{background:#162d4c80;backdrop-filter:blur(4px)}
.home-sensor-dialog>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px;background:#f8fbfff5;border-bottom:1px solid #e1ebf6;backdrop-filter:blur(10px)}
.home-sensor-dialog>header span{font-size:12px;letter-spacing:.6px;color:#5c7fa4}.home-sensor-dialog h2{font-size:28px;line-height:1.4;margin:4px 0 0}
.home-page .sensor-dialog-close{flex-shrink:0;display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#e9f0f9;color:#365b83;font-size:24px;padding:0}
.sensor-dialog-body{padding:22px 26px 26px}.sensor-dialog-intro{margin:0 0 18px;color:#586e88}.sensor-dialog-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.sensor-dialog-summary>span{font-weight:bold;color:#285b88;font-size:17px}
.home-page .sensor-status-refresh{flex-shrink:0;min-height:52px;padding:12px 18px;font:600 16px/1.5 Tahoma,sans-serif;background:#246ab0;color:#fff;border-radius:14px}.home-page .sensor-status-refresh:hover{background:#1b5289}.home-page .sensor-status-refresh:disabled,.home-page .sensor-status-refresh[aria-busy="true"]{opacity:.55;cursor:wait}
.sensor-status-message{font-size:14px;margin:0 0 14px;padding:12px 16px;border-radius:13px;background:#fff3dc;color:#86612b}.sensor-status-message:empty{display:none}.sensor-status-login{display:block;background:#246ab0;color:white!important;padding:12px 18px;border-radius:14px;margin-bottom:16px;text-align:center}.sensor-status-login[hidden]{display:none}
.sensor-status-list{display:grid;gap:8px}.sensor-status-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,auto) 144px;align-items:center;gap:16px;padding:16px 18px;border:1px solid #e0e9f4;border-radius:16px;background:white}.sensor-status-row h3{font-size:17px;line-height:1.5;overflow-wrap:anywhere;margin:0}.sensor-status-row>div>small{font-size:12px;color:#70829a;line-height:1.5}.sensor-status-row>strong{font-size:23px;line-height:1.4;overflow-wrap:anywhere;text-align:right}.sensor-status-row>strong>small{display:block;font-size:12px;color:#687f98;font-weight:400}.sensor-status-row>.sensor-state{justify-self:end}
.sensor-water-detail{display:flex;align-items:center;gap:14px;border:1px solid #cce6ec;background:#edf9fc;border-radius:16px;padding:16px;margin-top:18px}.sensor-water-detail h3{font-size:17px;margin:0 0 4px}.sensor-water-detail p{font-size:14px;color:#527582;line-height:1.6;margin:0}.sensor-status-footnote{font-size:12px;line-height:1.7;color:#6b7e94;margin:16px 0 0}
@media(max-width:850px){.home-live-strip{grid-template-columns:1fr}.home-page .home-sensor-status{min-height:96px;padding:18px 22px}.home-water-status{padding:18px 22px}}
@media(max-width:540px){
 .home-live-strip{gap:0;margin-top:12px;border-radius:20px}.home-page .home-sensor-status{padding:16px;gap:12px}.home-sensor-status strong{font-size:20px}.home-status-icon,.home-water-icon{width:46px;height:46px;border-radius:14px}.home-status-icon svg,.home-water-icon svg{width:27px;height:27px}
 .home-water-status{display:grid;grid-template-columns:46px minmax(0,1fr);padding:16px;gap:12px}.home-water-status>.home-water-icon{grid-column:1;grid-row:1}.home-water-main{grid-column:2;grid-row:1/3}.home-water-heading{display:block;margin-bottom:8px}.home-water-heading h2{font-size:20px;margin-bottom:6px}.home-water-status>strong{grid-column:1;grid-row:2;font-size:20px;text-align:center;max-width:100%;align-self:start}.home-water-main p{font-size:12px}
 .home-sensor-dialog{width:calc(100% - 20px);max-width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.home-sensor-dialog>header{padding:16px;gap:10px}.home-sensor-dialog h2{font-size:24px}.home-page .sensor-dialog-close{width:48px;height:48px;border-radius:13px}.sensor-dialog-body{padding:16px}.sensor-dialog-summary{align-items:stretch;flex-direction:column;gap:12px}.sensor-status-row{grid-template-columns:minmax(0,1fr) minmax(64px,auto);padding:14px;gap:8px 12px}.sensor-status-row h3{font-size:17px}.sensor-status-row>.sensor-state{grid-column:1/-1;justify-self:start}.sensor-status-row>strong{font-size:24px}.sensor-water-detail{align-items:flex-start;padding:14px;gap:10px}.sensor-water-detail .home-water-icon{display:none}
}
.dark .home-page .home-sensor-status,.dark .home-water-status,.dark .home-sensor-dialog,.dark .home-sensor-dialog>header{background:#202f48;border-color:#3d5370;color:#edf4ff}.dark .home-sensor-status small,.dark .home-water-main p,.dark .sensor-dialog-intro,.dark .sensor-status-footnote,.dark .sensor-status-row>div>small{color:#b4c7dd}.dark .home-water-heading h2,.dark .home-water-status>strong,.dark .sensor-dialog-summary>span{color:#b3dcf9}.dark .home-page .home-sensor-status:hover{background:#2c4262}.dark .sensor-status-row{background:#253852;border-color:#405775}.dark .sensor-water-detail{background:#223f50;border-color:#3b6175}.dark .sensor-water-detail p{color:#bad8e2}.dark .home-page .sensor-dialog-close{background:#3a506f;color:#fff}
@media(prefers-reduced-motion:reduce){.home-page .home-sensor-status,.home-water-fill{transition:none;transform:none}}

.sensor-device-section{margin:18px 0 24px}.sensor-device-section>h3,.sensor-readings-heading{font-size:18px;margin:0 0 12px}.sensor-device-list{display:grid;gap:8px}.sensor-device-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 18px;border:1px solid #d5e6f3;border-radius:16px;background:#edf6ff}.sensor-device-row>div{flex:1;min-width:180px}.sensor-device-row strong{display:block;font-size:17px}.sensor-device-row small{display:block;font-size:13px;color:#56738e;margin-top:4px}.sensor-simulation-tag{display:inline-block;font-size:12px;font-weight:600;color:#765095;background:#f0e7fb;border-radius:6px;padding:2px 7px;vertical-align:middle}.sensor-source-note{display:block}.home-page .sensor-status-refresh:disabled{cursor:not-allowed}.dark .sensor-device-row{background:#253852;border-color:#405775}.dark .sensor-device-row small{color:#b4c7dd}

/* Temperatures read locally from the computer running this kiosk. */
.home-page .home-computer-status{grid-column:1/-1;display:grid;grid-template-columns:minmax(280px,1.6fr) minmax(150px,1fr) minmax(150px,1fr) auto;gap:24px;align-items:center;width:100%;padding:20px 24px;text-align:left;border:0;border-top:1px solid #dfe5f2;border-radius:0;background:linear-gradient(110deg,#f7f6ff80,#ffffff00);color:#304365;box-shadow:none;font-family:Tahoma,sans-serif;cursor:pointer}
.home-page .home-computer-status:hover{background:#f0efff}.home-computer-status:focus-visible,.computer-refresh:focus-visible{outline:3px solid #7974d5;outline-offset:4px}
.computer-card-title{display:flex;align-items:center;gap:16px}.computer-card-title strong{display:block;font-size:20px;line-height:1.5}.computer-card-title small{display:block;color:#728097;font-size:13px;font-weight:400;line-height:1.6;margin-top:3px}.computer-status-icon{display:grid;place-items:center;width:54px;height:54px;flex-shrink:0;border-radius:17px;background:#e8e3ff;color:#7162b9}.computer-status-icon svg{width:30px;height:30px}
.computer-card-reading{border-left:1px solid #e0e1ef;padding-left:24px}.computer-card-reading>span{display:block;font-size:15px;line-height:1.5;font-weight:700;color:#546787}.computer-card-reading small{font-size:12px;font-weight:400;margin-left:4px}.computer-card-reading>strong{display:block;font-size:30px;line-height:1.5;letter-spacing:-.5px;color:#554d92}.computer-card-more{display:flex;align-items:center;gap:16px}.computer-card-more small{display:block;line-height:1.6;font-size:13px;color:#6d7792;font-weight:400}.computer-card-more>span:last-child{font-size:26px;color:#8276c1}
.computer-temperature-detail{scroll-margin-top:130px;margin:20px 0 24px;padding:18px;border:1px solid #dcddf2;border-radius:18px;background:#f5f4ff}.computer-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.computer-detail-heading h3{font-size:20px;line-height:1.5;margin:0;color:#414571;scroll-margin:120px}.computer-detail-heading p{font-size:13px;line-height:1.6;color:#6c7892;margin:4px 0 0}.home-page .computer-refresh{flex-shrink:0;min-height:48px;border-radius:12px;padding:10px 14px;background:#e5e0f8;color:#594d8f;font:600 14px/1.5 Tahoma,sans-serif}.computer-refresh[aria-busy="true"]{opacity:.6;cursor:wait}.computer-temperature-readings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.computer-temperature-readings article{min-width:0;background:#fff;border:1px solid #e5e5f1;border-radius:14px;padding:16px}.computer-temperature-readings h4{font-size:16px;line-height:1.5;margin:0 0 6px;color:#536583}.computer-temperature-readings strong{display:block;font-size:32px;line-height:1.5;color:#554d92}.computer-temperature-readings strong small{font-size:18px}.computer-temperature-readings p{font-size:14px;line-height:1.6;margin:4px 0;overflow-wrap:anywhere}.computer-temperature-readings article>small{display:block;color:#788398;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.computer-temperature-note{font-size:12px;line-height:1.7;color:#737f97;margin:12px 0 0}
@media(max-width:1000px){.home-page .home-computer-status{grid-template-columns:minmax(240px,1.5fr) 1fr 1fr;gap:16px}.computer-card-more{grid-column:1/-1;justify-content:space-between}.computer-card-reading{padding-left:16px}}
@media(max-width:600px){.home-page .home-computer-status{grid-template-columns:1fr 1fr;padding:16px;gap:14px}.computer-card-title{grid-column:1/-1;gap:12px}.computer-status-icon{width:46px;height:46px;border-radius:14px}.computer-card-title strong{font-size:19px}.computer-card-reading{border:0;background:#eeebfa;border-radius:12px;padding:12px 14px}.computer-card-reading small{display:block;margin:0}.computer-card-reading>strong{font-size:28px}.computer-temperature-detail{padding:14px}.computer-detail-heading{flex-wrap:wrap}.computer-detail-heading h3{font-size:19px}.computer-temperature-readings{grid-template-columns:1fr}.computer-refresh{width:100%}}
.dark .home-page .home-computer-status,.dark .computer-temperature-detail{background:#2b304b;border-color:#484c71;color:#e6e8ff}.dark .computer-temperature-readings article,.dark .computer-card-reading{background:#30364e;border-color:#484c71}.dark .computer-card-title small,.dark .computer-card-reading>span,.dark .computer-detail-heading p,.dark .computer-temperature-note,.dark .computer-temperature-readings article>small,.dark .computer-card-more small{color:#b5bfd9}.dark .computer-card-reading>strong,.dark .computer-temperature-readings strong,.dark .computer-detail-heading h3,.dark .computer-temperature-readings h4{color:#d7ceff}

.home-live-strip>.home-sensor-status:focus-visible,.home-live-strip>.home-computer-status:focus-visible{outline:3px solid #597fbd;outline-offset:-4px}
@media(max-width:850px){.home-live-strip>.home-water-status{border-left:0;border-top:1px solid #dfebf4}}
.dark .home-live-strip{background:#202f48;border-color:#3d5370;box-shadow:0 6px 22px #10213930}.dark .home-page .home-live-strip>.home-sensor-status,.dark .home-live-strip>.home-water-status,.dark .home-page .home-live-strip>.home-computer-status{background:transparent;border-color:#3d5370}.dark .home-page .home-live-strip>button:hover{background:#2b3c58}

/* Compact overview: one row on desktop; two short rows on small screens. */
.home-page .home-live-strip{grid-template-columns:minmax(205px,.85fr) minmax(265px,1.4fr) auto;gap:0;margin-top:12px;border-radius:18px}
.home-page .home-live-strip>.home-sensor-status,.home-page .home-live-strip>.home-water-status,.home-page .home-live-strip>.home-computer-status{min-height:82px;padding:12px 16px;gap:12px}
.home-page .home-live-strip>.home-sensor-status{min-width:0}.home-live-strip .home-sensor-status strong{font-size:18px;line-height:1.4}.home-live-strip .home-sensor-status small{font-size:12px;line-height:1.4;margin-top:3px}.home-live-strip .home-status-arrow{font-size:20px}
.home-live-strip .home-status-icon,.home-live-strip .home-water-icon,.home-live-strip .computer-status-icon{width:34px;height:34px;border-radius:11px}.home-live-strip .home-status-icon svg,.home-live-strip .home-water-icon svg,.home-live-strip .computer-status-icon svg{width:22px;height:22px}
.home-page .home-live-strip>.home-water-status{display:flex;border-top:0;border-left:1px solid #dfebf4}.home-live-strip .home-water-heading{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 7px}.home-live-strip .home-water-heading h2{font-size:18px;margin:0}.home-live-strip .sensor-state{font-size:11px;padding:2px 7px}.home-live-strip .home-water-gauge{min-height:6px;height:6px;border-radius:4px}.home-live-strip .home-water-placeholder,.home-live-strip #home-water-note{display:none}.home-live-strip .home-water-status>strong{font-size:24px;max-width:90px;line-height:1.3}
.home-page .home-live-strip>.home-computer-status{display:flex;grid-column:auto;align-items:center;justify-content:center;border-top:0;border-left:1px solid #dfe5f2;background:transparent;gap:22px}
.home-live-strip .computer-card-reading{display:flex;align-items:baseline;gap:8px;padding:0;border:0;background:transparent;min-width:0}.home-live-strip .computer-card-reading>span{font-size:13px;line-height:1.3}.home-live-strip .computer-card-reading>strong{font-size:23px;line-height:1.4;white-space:nowrap;letter-spacing:-.3px}
@media(max-width:850px){.home-page .home-live-strip{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}.home-page .home-live-strip>.home-computer-status{grid-column:1/-1;min-height:50px;padding:8px 16px;border-left:0;border-top:1px solid #dfe5f2}.home-page .home-live-strip>.home-sensor-status,.home-page .home-live-strip>.home-water-status{min-height:72px}}
@media(max-width:600px){.home-page .home-live-strip{grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-radius:16px}.home-page .home-live-strip>.home-sensor-status,.home-page .home-live-strip>.home-water-status{padding:10px 12px;gap:8px;min-height:76px}.home-live-strip .home-status-icon,.home-live-strip .home-water-icon,.home-live-strip .home-status-arrow{display:none}.home-live-strip .home-sensor-status strong,.home-live-strip .home-water-heading h2{font-size:16px}.home-live-strip .home-water-heading{display:block;margin-bottom:5px}.home-live-strip .home-water-heading .sensor-state{margin-top:3px;font-size:11px}.home-live-strip .home-water-status>strong{font-size:20px;max-width:65px;overflow-wrap:anywhere}.home-live-strip .computer-card-reading>strong{font-size:22px}}
.dark .home-page .home-live-strip>.home-water-status,.dark .home-page .home-live-strip>.home-computer-status{border-color:#3d5370}

/* Group the home menu by purpose; every destination stays available. */
.home-menu-group{margin:20px 0 28px}.home-menu-group>header{display:flex;align-items:baseline;gap:16px;margin:0 4px 12px}.home-menu-group>header h2{margin:0;font:600 21px/1.5 var(--mp-display);color:var(--mp-ink)}.home-menu-group>header p{margin:0;font-size:15px;color:var(--mp-muted)}
.home-menu-group .hub-tile{align-items:flex-start;justify-content:flex-start;text-align:left;padding:22px;min-height:216px;gap:0}.home-menu-group .hub-tile h3{font:600 20px/1.5 var(--mp-display);margin:12px 0 5px;color:var(--mp-ink)}.home-menu-group .hub-tile p{font-size:16px;line-height:1.65;color:var(--mp-muted);margin:0}.home-menu-group .hub-icon{width:52px;height:52px;border-radius:16px}.home-menu-group .hub-icon svg{width:30px;height:30px}.home-mode-label{display:inline-block;margin-top:17px;padding:3px 9px;border-radius:7px;background:var(--mp-card);color:var(--mp-muted);font-size:13px;font-weight:600}.home-menu-group .home-mode-label+h3{margin-top:7px}
.home-learning-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.home-device-grid{grid-template-columns:1.45fr 1fr 1fr}.home-device-grid>.school-data-card{transform:none;cursor:default}.school-data-card nav{display:flex;flex-direction:column;gap:7px;width:100%;margin-top:15px}.school-data-card nav a{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid var(--mp-line);border-radius:12px;background:var(--mp-card);font-size:16px;font-weight:600;color:var(--mp-ink)}.school-data-card nav a:hover{background:var(--mp-k-water-soft)}.school-data-card nav a svg{width:22px;height:22px;color:#267dc0;flex-shrink:0}.school-data-card nav a span:last-child{margin-left:auto;color:#267dc0}
.home-help-links{display:flex;gap:12px;flex-wrap:wrap;margin:4px 0 20px}.home-help-links a{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:10px 18px;border:1px solid var(--mp-line);border-radius:14px;background:var(--mp-card);color:var(--mp-ink);font-size:16px;font-weight:600}.home-help-links svg{width:22px;height:22px}.home-help-links span{color:#267dc0}.home-menu-group a:focus-visible,.home-help-links a:focus-visible,.results-page a:focus-visible,.results-page button:focus-visible,.teacher-tools a:focus-visible{outline:3px solid #2485d4;outline-offset:4px}
.category-tabs.school-data-nav{flex-wrap:wrap;gap:6px;padding:6px}.school-data-nav a{min-height:48px;display:flex;align-items:center;justify-content:center;font-size:16px!important;flex:1;white-space:normal;text-align:center}
.results-page{max-width:1280px;margin-inline:auto;padding-bottom:45px}.results-heading{margin:28px 0 20px}.results-kicker{color:#397eb9;font-size:14px;font-weight:700}.results-heading h1{font:600 clamp(28px,3vw,38px)/1.4 var(--mp-display);margin:6px 0;color:var(--mp-ink)}.results-heading p{font-size:17px;color:var(--mp-muted);margin:6px 0}.results-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.results-tabs a{display:flex;align-items:center;min-height:48px;padding:10px 18px;border:1px solid var(--mp-line);background:var(--mp-card);border-radius:13px;font-size:16px;color:var(--mp-ink);font-weight:600}.results-section{scroll-margin-top:24px;background:var(--mp-card);border:1px solid var(--mp-line);border-radius:24px;padding:26px;margin:20px 0;box-shadow:var(--mp-shadow)}.results-section>header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.results-section h2{font:600 24px/1.5 var(--mp-display);margin:5px 0;color:var(--mp-ink)}.results-section>header p{font-size:16px;line-height:1.6;margin:0;color:var(--mp-muted)}.results-page .action-link{min-height:48px;font-size:16px;white-space:normal;flex-shrink:0;cursor:pointer}
.results-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.results-stats>div{padding:18px;background:var(--mp-soft);border:1px solid var(--mp-line);border-radius:16px}.results-stats span{display:block;font-size:15px;color:var(--mp-muted)}.results-stats strong{font:600 32px/1.7 var(--mp-display);color:var(--mp-ink)}.results-stats small{font-size:15px;font-weight:400;color:var(--mp-muted)}.results-progress{list-style:none;padding:0;margin:20px 0}.results-progress progress{width:100%;height:9px;grid-column:1/-1;border:0;border-radius:999px;overflow:hidden;background:var(--mp-soft);accent-color:#308ccf}.results-progress progress::-webkit-progress-bar{background:var(--mp-soft);border-radius:999px}.results-progress progress::-webkit-progress-value{background:#308ccf;border-radius:999px}
.results-note{font-size:14px;line-height:1.7;color:var(--mp-muted);margin:16px 0 0}.results-empty{padding:20px;border:1px dashed var(--mp-line);background:var(--mp-soft);border-radius:16px;font-size:17px;line-height:1.7;color:var(--mp-ink);margin:18px 0}.results-empty p{margin:0 0 14px}.results-table-wrap{overflow:auto;margin:18px 0;max-width:100%}.results-table-wrap table{width:100%;min-width:850px;border-collapse:collapse;font-size:16px;text-align:left}.results-table-wrap th,.results-table-wrap td{padding:12px;border-bottom:1px solid var(--mp-line)}.results-table-wrap thead{background:var(--mp-soft)}.result-state{display:inline-block;white-space:nowrap;border-radius:8px;padding:4px 8px;font-size:14px;font-weight:600}.result-state.passed{background:#e5f7ee;color:#187754}.result-state.ended{background:#fff1d6;color:#855a12}.teacher-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.teacher-tools>a{display:block;padding:24px;color:var(--mp-ink)}.teacher-tools svg{height:38px;width:38px;color:#267dc0}.teacher-tools h2{font-size:22px}.teacher-tools p{font-size:17px;line-height:1.7;color:var(--mp-muted)}.teacher-tools span{display:block;font-size:17px;font-weight:600;color:#267dc0;margin-top:20px}
.results-progress-list{margin:20px 0}.results-progress-list article{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,35%);align-items:center;gap:18px;padding:15px 0;border-bottom:1px solid var(--mp-line)}.results-progress-list h3{font-size:18px;font-weight:600;margin:0 0 4px;color:var(--mp-ink)}.results-progress-list article>div>span{font-size:14px;color:var(--mp-muted)}.results-progress-list .results-progress{display:flex;align-items:center;gap:12px;margin:0}.results-progress-list b{font-size:16px;white-space:nowrap;color:var(--mp-ink)}
@media(max-width:1050px){.home-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-device-grid>.school-data-card{grid-column:1/-1}.school-data-card nav{flex-direction:row}.school-data-card nav a{flex:1}.teacher-tools{grid-template-columns:1fr}}
@media(max-width:650px){.home-menu-group>header{display:block}.home-menu-group>header p{margin-top:5px}.home-menu-group .hub-tile{padding:18px;min-height:210px}.home-menu-group .hub-tile h3{font-size:19px}.home-menu-group .hub-tile p{font-size:16px}.school-data-card nav{flex-direction:column}.results-section{padding:18px;border-radius:20px}.results-section>header{align-items:flex-start;flex-direction:column}.results-stats{grid-template-columns:1fr;gap:8px}.results-stats>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px}.results-stats strong{font-size:27px}.results-section h2{font-size:22px}.results-tabs a{flex:1}.school-data-nav a{flex-basis:100%}.home-help-links a{flex:1}}
@media(max-width:460px){.home-learning-grid,.home-device-grid{grid-template-columns:1fr}.home-menu-group .hub-tile{min-height:0}.home-help-links{flex-direction:column}.results-progress-list article{grid-template-columns:1fr;gap:10px}}

/* AI-KID SMART NOTIFICATIONS: generated by build-notifications.cjs */
.ak-notifications{font-family:Anuphan,sans-serif;color:#213958}
.ak-toast-stack{position:fixed;z-index:10000;top:20px;right:20px;width:min(390px,calc(100vw - 24px));display:flex;flex-direction:column;gap:12px;pointer-events:none}
.ak-toast{box-sizing:border-box;position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:10px;padding:18px 14px 20px;border:1px solid var(--ak-border);border-radius:18px;background:var(--ak-bg);box-shadow:0 8px 30px #192f4924;pointer-events:auto;overflow:hidden;animation:ak-slide-in .25s ease-out;--ak-bg:#fff8e5;--ak-border:#e7b347;--ak-color:#a96809}
.ak-warning{--ak-bg:#fff0f0;--ak-border:#ee9b9b;--ak-color:#bc303c}
.ak-recovery{--ak-bg:#edfbf2;--ak-border:#8dccaa;--ak-color:#237c4c}
.ak-toast strong{font-size:16px;color:var(--ak-color)}
.ak-toast p{margin:5px 0;line-height:1.5;overflow-wrap:anywhere;font-size:14px}
.ak-toast small{font-size:12px;color:#52677c;overflow-wrap:anywhere}
.ak-alert-icon{font-size:24px;color:var(--ak-color)}
.ak-toast button{font:inherit;font-size:23px;background:transparent;border:0;color:#52677c;width:28px;height:32px;padding:0;cursor:pointer}
.ak-toast button:focus-visible,.ak-critical button:focus-visible,.ak-details:focus-visible{outline:3px solid #217ed0;outline-offset:3px}
.ak-toast-progress{position:absolute;bottom:0;left:0;height:4px;width:100%;background:var(--ak-color);transform-origin:left;animation:ak-countdown 6s linear forwards}
.ak-toast.ak-leaving{animation:ak-slide-out .25s ease-in forwards}
.ak-critical{box-sizing:border-box;border:0;border-radius:20px;width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 24px);padding:0;color:#24374c;background:#fff;box-shadow:0 22px 70px #10223955;font:inherit;overflow:auto}
.ak-critical[open]{animation:ak-modal-in .2s ease-out}
.ak-critical::backdrop{background:rgba(10,19,34,.48)}
.ak-critical header{padding:18px 22px;background:#d33149;color:white}
.ak-critical header h2{margin:0;font-size:20px;line-height:1.45;color:white}
.ak-critical-content{padding:24px}
.ak-critical-summary{display:flex;align-items:center;gap:16px}
.ak-critical-icon{flex:0 0 65px;display:grid;place-items:center;height:65px;background:#ffe6e9;color:#cb2a43;border-radius:50%;font-size:32px}
.ak-critical-summary h3{margin:0;font-size:19px;line-height:1.4}
.ak-critical-summary p{margin:6px 0;color:#64748b}
.ak-critical-value{display:block;color:#cb2a43;font-size:34px;line-height:1.3;overflow-wrap:anywhere}
.ak-critical-message{padding:14px;border-radius:12px;background:#fff0f1;line-height:1.65;font-size:15px}
.ak-mq-note{font-size:12px;line-height:1.5;color:#64748b}
.ak-critical-count{font-size:13px;color:#ad3146;min-height:1em}
.ak-critical .ak-ack{display:block;width:100%;padding:13px 10px;border:0;border-radius:12px;background:#d33149;color:white;font:inherit;font-weight:700;cursor:pointer}
.ak-details{display:block;text-align:center;padding:12px;color:#335c92;text-decoration:underline}
.ak-alert-status{font-size:12px;color:#61758d;text-align:center;margin:10px 0}
.ak-sound-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 12px;margin:12px 0;font-family:Anuphan,sans-serif}.weather-page .ak-sound-controls{justify-content:flex-start}.ak-sound-controls button{min-height:44px;padding:8px 15px;border:1px solid #bad7ef;border-radius:12px;background:#f4faff;color:#205783;font:600 16px/1.4 Anuphan,sans-serif;cursor:pointer}.ak-sound-controls button:focus-visible{outline:3px solid #2485d4;outline-offset:3px}.ak-sound-controls button:disabled{opacity:.55;cursor:default}.ak-sound-controls[data-state=ready] .ak-sound-toggle{background:#e8f7ee;border-color:#9cd2b1;color:#216b44}.ak-sound-controls small{font-size:14px;line-height:1.5;color:#536c80}.dark .ak-sound-controls small{color:var(--mp-muted)}
@keyframes ak-slide-in{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:translateX(0)}}
@keyframes ak-slide-out{to{opacity:0;transform:translateX(28px)}}
@keyframes ak-countdown{to{transform:scaleX(0)}}
@keyframes ak-modal-in{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@media(max-width:520px){.ak-toast-stack{left:12px;right:12px;top:12px;width:auto}.ak-critical-content{padding:18px}.ak-critical-summary{gap:12px}.ak-critical-value{font-size:29px}.ak-critical-icon{flex-basis:50px;height:50px;font-size:25px}}
@media(prefers-reduced-motion:reduce){.ak-toast,.ak-toast.ak-leaving,.ak-critical[open]{animation-duration:.01ms}.ak-toast-progress{animation:none}}

/* Camera events have their own visual identity, separate from sensor readings. */
.ak-camera-alert{max-width:540px;border:1px solid #cbd1ee;border-radius:24px;background:#f7f8fd}
.ak-camera-alert header{padding:24px 26px;background:linear-gradient(125deg,#182541,#393367);border-bottom:4px solid #ef6579}
.ak-camera-eyebrow{display:block;color:#bfc9ed;font-size:11px;letter-spacing:2px;font-weight:700;margin-bottom:8px}
.ak-camera-alert header h2{font-size:25px}
.ak-camera-priority{display:inline-block;margin-top:14px;padding:5px 10px;border-radius:7px;background:#ffffff16;color:#ffd2db;font-size:12px}
.ak-camera-alert .ak-critical-content{padding:26px}
.ak-camera-alert .ak-critical-summary{align-items:flex-start;padding:18px;background:white;border:1px solid #e1e5f2;border-radius:16px}
.ak-camera-alert .ak-critical-icon{background:#eeedff;color:#5145a4;border-radius:15px;flex-basis:54px;height:54px;font-size:27px}
.ak-camera-alert .ak-critical-summary h3{font-size:12px;color:#747b94;font-weight:500}
.ak-camera-alert .ak-critical-summary p{font-size:21px;font-weight:700;color:#202e4c;margin:5px 0 12px}
.ak-camera-alert .ak-critical-value{display:inline-block;font-size:13px;color:#5145a4;background:#eeedff;padding:4px 10px;border-radius:7px;font-weight:600}
.ak-camera-alert .ak-critical-message{background:#fff1f3;border-left:3px solid #d74762;border-radius:0 10px 10px 0;color:#6c3543}
.ak-camera-alert .ak-ack{background:#29385a;border-radius:10px}
.ak-camera-alert .ak-details{color:#574e98;font-size:14px}
.ak-camera-toast{--ak-bg:#f6f5ff;--ak-border:#bcb6e1;--ak-color:#50458d;border-left:5px solid #6c5bb4;border-radius:10px}
.ak-camera-toast .ak-alert-icon{background:#e9e5fa;border-radius:8px;height:32px;text-align:center;font-size:20px}
.ak-camera-toast.ak-warning{--ak-border:#e4a4b1;--ak-color:#a43750;border-left-color:#ce526d}

/* Selected camera design: event still, never a live snapshot. */
.ak-camera-alert header{background:#172b35;border-bottom:0}
.ak-camera-alert{background:#f5faf9}
.ak-camera-alert .ak-critical-summary{border:0;background:transparent;padding:0}
.ak-camera-alert .ak-ack{background:#1b665f}
.ak-event-photo{margin:0 0 18px;aspect-ratio:16/9;background:#1b3940;border-radius:12px;overflow:hidden;display:grid;place-items:center;color:#d5e7e6;font-size:14px}
.ak-event-photo img{display:block;width:100%;height:100%;object-fit:contain;min-height:0}
.ak-camera-toast .ak-event-photo{grid-column:1/-1;margin:0;max-height:190px}

/* Blue camera palette; red is reserved for critical severity. */
.ak-camera-alert{background:#f5faff;border-color:#c8dff3}
.ak-camera-alert header{background:linear-gradient(120deg,#e7f4ff,#d5eaff);border-bottom:1px solid #bad8f2;color:#154b7b}
.ak-camera-alert header h2{color:#154b7b}
.ak-camera-alert .ak-camera-eyebrow{color:#4c7398}
.ak-camera-alert .ak-camera-priority{background:#fff0f1;color:#b52d43;border:1px solid #f0bec7}
.ak-camera-alert .ak-critical-icon{background:#e0efff;color:#2369a7}
.ak-camera-alert .ak-critical-summary p{color:#193e62}
.ak-camera-alert .ak-critical-value{background:#e2f0ff;color:#24669f}
.ak-camera-alert .ak-critical-message{background:#eaf4ff;border-left-color:#4e96cf;color:#315b7e}
.ak-camera-alert .ak-ack{background:#246db0;color:#fff}
.ak-camera-alert .ak-ack:hover{background:#19578f}
.ak-camera-alert .ak-details{color:#2469a5}
.ak-camera-alert .ak-event-photo{background:#e4eff9;color:#527492;border:1px solid #c8ddec}
.ak-camera-toast{--ak-bg:#f3f9ff;--ak-border:#b8d7f0;--ak-color:#24669f;border-left-color:#3988c8}
.ak-camera-toast .ak-alert-icon{background:#e0efff;color:#24669f}
.ak-camera-toast.ak-warning{--ak-bg:#f3f9ff;--ak-border:#b8d7f0;--ak-color:#24669f;border-left-color:#3988c8}

/* Approved white/navy camera card. */
.ak-critical.ak-camera-alert{max-width:520px;background:#fff;border:1px solid #d7e0eb;border-radius:24px;color:#182b45}
.ak-camera-alert .ak-design-top{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;background:white;border-bottom:1px solid #e8edf4}
.ak-design-brand{display:flex;gap:10px;align-items:center;font-size:14px;font-weight:700}
.ak-design-brand>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf1fc;color:#285ba3}
.ak-design-tag{font-size:11px;font-weight:700;color:#bc3049;background:#fff0f3;border:1px solid #f3d1d8;border-radius:7px;padding:4px 9px}
.ak-design-photo{position:relative;background:#17283e}
.ak-camera-alert .ak-design-photo .ak-event-photo{margin:0;aspect-ratio:16/9;border:0;border-radius:0;background:#17283e;color:#b8c7da}
.ak-design-photo-label{position:absolute;z-index:1;top:14px;left:16px;background:#0d192bcc;border:1px solid #ffffff28;color:#e7edf8;border-radius:6px;padding:4px 9px;font-size:11px;pointer-events:none}
.ak-camera-alert .ak-critical-content{padding:24px}
.ak-design-eyebrow{font-size:11px;color:#6a7d98;letter-spacing:1px}
.ak-camera-alert h2#ak-critical-title{font-size:27px;line-height:1.4;margin:7px 0 14px;color:#182b45}
.ak-design-confidence{display:flex;gap:10px;align-items:center;font-size:12px;color:#546b88}
.ak-camera-alert .ak-design-confidence .ak-critical-value{background:none;border-radius:0;padding:0;font-size:12px;color:#244b7c}
.ak-design-bar{width:86px;height:5px;border-radius:4px;background:#e4ecf6;overflow:hidden}
.ak-design-bar i{display:block;height:100%;background:#467bc0}
.ak-design-meta{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:22px 0;padding:17px 0;border-top:1px solid #e8edf4;border-bottom:1px solid #e8edf4}
.ak-design-meta small{display:block;color:#7a8a9e;font-size:11px;margin-bottom:4px}
.ak-design-meta span{font-size:13px;overflow-wrap:anywhere}
.ak-design-advice{background:#f4f7fb;padding:13px 14px;border-radius:10px;font-size:13px;color:#526780;line-height:1.6}
.ak-design-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px;align-items:stretch}
.ak-camera-alert .ak-design-actions .ak-details{display:grid;place-items:center;margin:0;background:white;border:1px solid #d4dfed;border-radius:10px;padding:14px 10px;color:#2c507c;font-size:14px;font-weight:600;text-decoration:none}
.ak-camera-alert .ak-design-actions .ak-ack{background:#244e82;color:#fff;border:1px solid #244e82;border-radius:10px;padding:14px 10px;font-size:14px}
.ak-design-foot{text-align:center;font-size:11px;color:#8a98ab;margin-top:13px}
.ak-camera-alert .ak-critical-count:empty{display:none}
@media(max-width:480px){.ak-camera-alert .ak-critical-content{padding:20px}.ak-camera-alert h2#ak-critical-title{font-size:24px}.ak-camera-alert .ak-design-top{padding:14px 18px}}

.ak-camera-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.ak-camera-options button{font:500 12px/1.5 Tahoma,sans-serif;padding:10px 8px;border:1px solid #dce3ed;background:#f7f9fc;color:#53667e;border-radius:9px;cursor:pointer}
.ak-camera-options .ak-false-positive{color:#9b4456;background:#fff8f9;border-color:#eed9df}
.ak-camera-pause-banner{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:11000;display:flex;align-items:center;gap:16px;max-width:calc(100vw - 24px);width:max-content;padding:14px 18px;background:#193b60;color:white;border:1px solid #6584a5;border-radius:13px;box-shadow:0 8px 30px #132b4933;font:13px/1.5 Tahoma,sans-serif}
.ak-camera-pause-banner[hidden]{display:none}
.ak-camera-pause-banner button{border:1px solid #b9d2ed;background:white;color:#244e82;border-radius:8px;padding:8px 12px;font:inherit;cursor:pointer;white-space:nowrap}
@media(max-width:480px){.ak-camera-options{grid-template-columns:1fr}.ak-camera-pause-banner{flex-direction:column;gap:8px;text-align:center}}

