/* Shared illustrated theme: every working view, sheet, form and account. */
:root{--ink:#123f66;--muted:#718ba6;--line:#dcecfb;--blue:#217bfa;--deep:#0b5adc;--radius:22px;--shadow:0 12px 32px #17507d12}
body{font-family:'Noto Sans Thai','IBM Plex Sans Thai',sans-serif;color:var(--ink)}
button,input,select,textarea{font-family:inherit}button:disabled{cursor:wait}.primary{background:linear-gradient(115deg,#37a5ff,#2374f7);color:white;border:2px solid #ffffffbb;border-radius:15px;box-shadow:0 5px 13px #227bfa20;min-height:46px;font-weight:600;padding:11px 17px}.primary:hover{filter:brightness(1.03)}
.page-eyebrow{font-size:11px;color:#448fc7;font-weight:600;letter-spacing:.2px}.sidebar-title h2{font-size:17px;color:#154975}.sidebar-title>.icon{color:#1d83f9}.sidebar .filter-block{background:linear-gradient(145deg,#fff,#f6fbff);border:1px solid #e2f0fc;border-radius:18px;padding:15px;margin-bottom:12px}.location-field select,.route-field select{background:#f4f9ff;border:1px solid #d9eafb;border-radius:13px;color:#315b80;box-shadow:inset 0 1px 2px #1f649308}.location-field label{color:#7596b0}.locate-button{border:1px solid #badcff;background:#e9f4ff;color:#1677e5;border-radius:12px;font-weight:600}.divider{background:#e8f1f9}.toggle-line{font-size:12px;color:#557b9d}.inline-button{border-radius:12px;color:#2679d2;padding:10px;background:#f2f8ff}.cctv-toggle{background:linear-gradient(120deg,#e6f8ff,#edf4ff);border:1px solid #cae7ff;border-radius:14px;color:#327bb8}.water-card{border:1px solid #e1edf6;border-radius:20px;box-shadow:0 6px 16px #1851790b}.water-card-top{font-size:13px}.water-reading strong{font-family:Manrope,'Noto Sans Thai',sans-serif}.station-widget{display:grid;gap:7px}.station-widget-btn{border:1px solid #deedf8!important;background:linear-gradient(135deg,#fff,#f2f9ff)!important;border-radius:14px!important;padding:12px!important}.real-source-tag{border-radius:7px;font-size:9px}.feed-error{border:1px solid #f4d8a9;border-radius:13px;background:#fff7e8;color:#8c6c33;padding:12px;font-size:12px;line-height:1.7;margin-bottom:12px}.feed-error button{padding:5px 10px;background:white;color:#976827;border-radius:8px;margin-left:7px}.empty-state{border:1px dashed #c4e0f2;border-radius:17px;background:linear-gradient(145deg,#f7fcff,#eef7ff);color:#6c89a5;line-height:1.8}.resource-heading{display:grid;gap:12px;margin:12px 0}.resource-heading h2{font-size:19px;margin:2px 0 0;color:#164c79}.segmented{background:#ebf5ff;padding:4px;border:1px solid #d4e9ff;border-radius:14px;display:flex;gap:3px}.segmented button{flex:1;border-radius:11px;color:#5682a7;padding:9px 5px}.segmented button.active{background:linear-gradient(130deg,#329fff,#237af9);color:#fff;box-shadow:0 3px 9px #1b78ec20}.kitchen-card{border:1px solid #dcebf8;border-radius:20px;background:#fff;box-shadow:0 5px 16px #1b58710a;padding:15px;margin-top:12px}.kitchen-card.selected{border:2px solid #73b8ff;background:#f9fcff}.kitchen-card.unavailable{opacity:1;background:#f7fafc}.kitchen-title button{font-size:15px;font-weight:700;color:#1a527e;text-align:left}.kitchen-card p{font-size:12px;line-height:1.8;color:#62809a}.halal-tag{background:#e8fbf3;color:#309376;border-radius:7px;font-size:9px}.stock-row{padding:10px 0;color:#2285c8;display:flex;align-items:baseline;justify-content:space-between;gap:8px}.stock-row small{font-size:9px;color:#87a0b5}.help-actions{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #e9f1f8;padding-top:11px;margin-top:10px}.help-actions button{padding:7px 9px;min-height:34px;border:1px solid #d5e7f7;border-radius:10px;font-size:10px;color:#347cba;background:#f2f8ff}.help-actions button:last-child{color:#cb5970;background:#fff2f5;border-color:#ffe2ea}.resource-directions{display:flex;justify-content:center;align-items:center;gap:6px;background:#eaf6ff;border:1px solid #cde9fc;padding:9px;border-radius:12px;font-size:12px;color:#2379be}.resource-directions>.icon{width:16px;height:16px}.resource-empty{text-align:center;padding:25px 14px;border-radius:19px;background:linear-gradient(145deg,#f2fbff,#fff);border:1px dashed #c4e5f7;margin-top:12px}.resource-empty img{width:58px;height:58px}.resource-empty h3{font-size:15px;margin:9px 0 6px}.resource-empty p{font-size:12px;line-height:1.8;color:#7294af}.resource-empty .primary{font-size:12px}.help-updated{font-size:10px;line-height:1.9;color:#8aa0b6}.resource-empty~button,.show-more{width:100%;margin-top:12px;border-radius:13px;background:#eaf5ff;color:#2879c9;padding:10px}
.route-field{background:#f6fbff;border:1px solid #e0effb;border-radius:16px;padding:12px;margin-bottom:8px}.route-field label{font-size:12px;color:#5184ab}.route-field select{width:100%;background:white;margin-top:6px;min-height:44px;font-size:12px}.route-swap{display:block;margin:0 0 8px auto;background:#e7f3ff;border:1px solid #bedfff;border-radius:50%;width:36px;height:36px;min-height:36px;color:#2584e6}.vehicle-picks{gap:7px}.vehicle-picks button{border:1px solid #d5e8f7;border-radius:14px;background:#f5faff;min-height:68px;color:#6a90b0}.vehicle-picks button.active{background:#e2f2ff;color:#1678e8;border:2px solid #8cc7ff}.route-clearance{display:grid;gap:7px;margin:12px 0;font-size:11px;color:#6b91ad}.route-clearance input{width:100%;min-height:43px;padding:10px 12px;background:#f6fbff;border:1px solid #d4e7f7;border-radius:12px;color:#315a7e}.route-distance{background:linear-gradient(120deg,#e4f6ff,#f1f8ff);border:1px solid #cfe9ff;border-radius:17px;padding:16px}.route-distance strong{color:#1a7bef}.route-warning{background:#eef7fe;border:1px solid #d3e8f9;border-radius:16px;color:#4a7a9f;line-height:1.7;padding:14px;font-size:12px}.route-warning p{margin:7px 0 0}.route-warning.has-reports{background:#fff5e8;border-color:#f7dab1;color:#936930}.route-timeline{padding:10px 0}.timeline-row{display:grid;gap:4px;color:#3f709b;font-size:12px}.timeline-row small{color:#85a0b8}.timeline-row a{font-size:11px;color:#237cf2}.route-overview{border:2px solid #fff;border-radius:23px;background:#fffffff3;box-shadow:0 12px 35px #155e7a15;max-width:310px;padding:22px;color:#326c95}.route-overview:before{content:'';display:block;width:50px;height:50px;margin:auto auto 12px;background:url('dashboard/map.svg') center/contain no-repeat}.route-overview strong{font-size:17px;color:#185982}.route-overview p{font-size:12px;line-height:1.8}
/* Every sheet shares the same heading, rounded controls and safe scrolling. */
dialog{font-family:'Noto Sans Thai',sans-serif;color:#174b74;border:2px solid white;border-radius:26px!important;box-shadow:0 18px 80px #1745683a}dialog::backdrop{background:#16557455;backdrop-filter:blur(6px)}#modal{padding:0!important;width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - 32px)}#modal[open]{display:flex;flex-direction:column;overflow:hidden}.modal-heading{flex-shrink:0;background:linear-gradient(120deg,#ebf9ff,#f8fcff);padding:17px 19px!important;border-bottom:1px solid #daedfa;margin:0!important;gap:12px}.modal-heading h2{font-size:18px!important;line-height:1.5;color:#174f7b}.modal-heading>button{width:34px;height:34px;min-height:34px;border-radius:50%;background:white;color:#7b9bb5;font-size:24px;flex-shrink:0}#modalBody{padding:18px;overflow-y:auto;overscroll-behavior:contain;min-height:0}#modalBody input:not([type=checkbox]):not([type=radio]),#modalBody select,#modalBody textarea{border:1px solid #d9e9f8;border-radius:13px;background:#f5faff;color:#315a7f;padding:11px 12px;width:100%;font:inherit;font-size:13px;min-height:44px}#modalBody textarea{min-height:100px}#modalBody input:focus,#modalBody select:focus,#modalBody textarea:focus{outline:2px solid #97ceff;outline-offset:2px}#modalBody label{font-size:12px;color:#668baa}.modal-field label{margin-bottom:6px}.modal-field{margin:10px 0}.food-demo-note,.request-form-note,.login-prompt>p{background:#eaf7ff;border:1px solid #d4ecfc;border-radius:15px;padding:12px;font-size:12px;color:#557d9d;line-height:1.8}.food-form-grid,.request-form-grid{gap:10px}.help-type-picker{border:0;margin:12px 0;padding:0}.help-type-picker>legend{font-size:13px;font-weight:600;color:#3f789e;margin-bottom:8px}.help-type-picker>label{background:#f1f8ff;border:1px solid #d7eafa;border-radius:12px;padding:9px}.help-type-picker>label:has(input:checked){background:#e0f2ff;border-color:#80c1ff;color:#177af0}.food-map-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.food-map-heading strong{font-size:13px;color:#477c9f}.food-map-heading button{padding:6px 9px;min-height:34px;font-size:11px;border-radius:10px;background:#eaf5ff;color:#2883c7}#foodPinMap{height:260px;border:2px solid #e1f1fc;border-radius:17px;overflow:hidden}.food-map-hint,.food-pin-status{font-size:11px;line-height:1.8;color:#7799b0}.food-form-error,#deleteResourceError,#accountError{color:#ca5470;font-size:12px}.login-cancel{border-radius:12px;color:#648aac;background:#f0f7fe;padding:10px;margin-top:9px}.md-upload{border-radius:17px!important;background:linear-gradient(135deg,#edfaff,#f1f7ff)!important}.md-report-detail>img{border:3px solid #e5f3fc;border-radius:20px}.md-delete-report{border-radius:12px}.md-report-pagination button{border:1px solid #d7eafb;min-height:37px}.md-menu-list button,.md-province-picker button{border-radius:14px;background:linear-gradient(120deg,#f0f9ff,#fbfdff)}
/* Requests */
.requests-board{background:transparent}.requests-board-head{padding:15px 0}.requests-board-head h2{font-size:21px;color:#174e7b;line-height:1.6}.requests-eyebrow,.request-sync{color:#7298b4}.request-refresh{border:1px solid #cae5fb;border-radius:11px;color:#2d82c4;background:#edf8ff;padding:9px}.requests-notice{background:#edf8ff;border:1px solid #d2eafb;border-radius:16px;color:#6a91ac;padding:13px;font-size:11px;line-height:1.8}.request-card-list{display:grid;gap:12px}.request-card{background:#fff;border:1px solid #dbeefa;border-radius:21px;box-shadow:0 5px 18px #12577c09;padding:16px}.request-code{color:#8da9bf;font-size:10px}.request-status{border-radius:9px;font-size:10px}.request-card h3{color:#205987;font-size:17px}.request-card-meta,.request-updated{font-size:11px;color:#87a0b6}.request-location{font-size:12px;color:#5e89a8}.request-card-actions button{border:1px solid #cde7fc;background:#eef8ff;border-radius:11px;padding:9px 11px;color:#2d84ce;font-size:12px}.request-card-actions .request-update{background:#e4f7ef;color:#2d9870;border-color:#c5e9d9}.request-empty{background:linear-gradient(140deg,#f4fbff,#fff);border:1px dashed #c9e4f8;border-radius:23px;padding:28px 15px;color:#7598b1}.request-empty>span{font-size:44px;color:#ff8da6}.request-empty h3{font-size:18px;color:#235d87}.request-empty p{font-size:12px;line-height:1.8}.request-views{display:flex;background:#ebf5ff;border:1px solid #d4e9fb;padding:4px;border-radius:14px;gap:3px}.request-views button{border-radius:11px;color:#7096b4;padding:8px 9px;flex:1}.request-views button[aria-pressed=true]{background:linear-gradient(120deg,#36a1ff,#2b7dfb);color:white}.request-filters{margin:12px 0;border:1px solid #daecfa;border-radius:15px;padding:12px;background:#f8fcff}.request-filters summary{color:#5d8cac;font-size:12px}.request-sidebar-note{border:1px solid #e2eff8;border-radius:14px;font-size:11px;line-height:1.9;color:#7e9bb2;background:#f6fbff;padding:12px}.request-status-picks{border:1px solid #d8ebf8;border-radius:16px;padding:13px;display:grid;gap:9px}.request-status-picks label{padding:10px;border-radius:11px;background:#f3faff}.request-pagination{display:flex;gap:8px;align-items:center;justify-content:space-between;color:#678caa;font-size:12px}.request-pagination button{padding:8px;border:1px solid #d4e9f8;background:#eff8ff;border-radius:10px}#saveRequest{background:linear-gradient(115deg,#ff7b96,#f14671)}
/* News, forecast and camera dialogs */
#newsDialog,.cctv-dialog{border:2px solid #fff!important;border-radius:26px!important;max-height:calc(100dvh - 28px);background:#f8fcff}.news-header,.cctv-dialog-heading{background:linear-gradient(120deg,#dbf4ff,#eef9ff)!important;border-bottom:1px solid #cfe8fa!important}.news-header h2,.cctv-dialog-heading h2{color:#165782!important;font-size:21px!important}.news-header button,.cctv-dialog-heading button{border-radius:50%;background:#fff!important;color:#7298b5}.news-eyebrow,.news-footer{color:#759bb5}.news-toolbar{background:#f3faff;border-bottom:1px solid #deedf9}.news-area-switch{border-radius:13px;background:#e6f4ff;padding:4px}.news-area-switch button{border-radius:10px;font-size:12px}.news-area-switch button[aria-pressed=true]{background:linear-gradient(130deg,#32a1ff,#247bf5);color:white}.news-selects select{border-radius:11px;border:1px solid #d2e7f8;background:white;color:#467c9f;padding:8px}.news-card{background:#fff;border:1px solid #dfedf8;border-radius:19px;box-shadow:0 4px 14px #155a7c08;margin-bottom:12px}.news-card h3{font-size:16px;color:#205d8a;line-height:1.7}.news-card p{color:#6589a6;line-height:1.9;font-size:12px}.news-card>a,.news-card a{color:#267fcd}.news-unread{border-left:4px solid #57b6ff}.news-empty{background:#edf8ff;border-radius:17px;color:#7197b2}.cctv-card{border-radius:19px;border:1px solid #daecf9;background:white}.cctv-list button{border-radius:14px}.station-details .station-meta-info{background:#f3faff;border-radius:16px;padding:13px;font-size:12px;line-height:1.8}.station-meta-info a{color:#287dcb}.station-meta-info strong{color:#4b7e9f}
/* Account */
.account-hero{display:flex;gap:14px;align-items:center;padding:19px 15px;border:1px solid #d4edfb;background:linear-gradient(120deg,#e6f8ff,#f2fbff);border-radius:21px;margin-bottom:15px}.account-avatar{display:grid;place-items:center;flex-shrink:0;width:57px;height:57px;border-radius:19px;background:linear-gradient(135deg,#ffb1c2,#ff7e9c);color:white;font-size:39px;box-shadow:0 5px 12px #ee7f9f20}.account-hero span:not(.account-avatar){font-size:10px;color:#69a0bd}.account-hero h3{font-size:17px;margin:3px 0;color:#215e87}.account-hero p{font-size:11px;line-height:1.8;color:#7a9db5;margin:4px 0}.account-items{display:grid;gap:9px}.account-items button{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #dcecf9;background:#f9fcff;border-radius:15px;padding:14px 12px;color:#467d9f;font-size:13px}.account-items button b{margin-left:auto;color:#2a88e6;background:#e6f3ff;border-radius:9px;min-width:28px;text-align:center;padding:3px}.account-items button>span:last-child{font-size:22px;color:#8dbbd8}.account-signin{display:block;text-align:center;margin-top:16px}.account-signout{margin-top:16px;width:100%;padding:12px;background:#fff0f4;border:1px solid #f7d9e2;border-radius:13px;color:#c96681;font-size:12px}.account-loading{padding:20px;text-align:center;color:#7e9db5}
@media(min-width:681px){.topbar{background:linear-gradient(90deg,#fffffff5 60%,#ecfaffde),url('dashboard/hero-irrawaddy.webp') right center/400px auto no-repeat;border:2px solid #fff;box-shadow:0 8px 30px #0a608322}.sidebar{border:2px solid #fff!important;background:linear-gradient(#f7fcff,#fff)!important;border-radius:25px!important;box-shadow:0 12px 38px #1c5f8026!important}.chapter-heading{background:#fffffff5;border:2px solid white;border-radius:20px;color:#1b5e8b}.help-button{background:linear-gradient(120deg,#fff0f4,#ffe8ed);border:1px solid #ffd0dd;color:#d64d77}.bottom-dock{background:#fffffff0;border:2px solid #fff;border-radius:30px}.chapter-tabs button[aria-selected=true]{background:#e0f2ff;border-radius:17px;color:#1574eb}.workspace[data-chapter="4"] .visual-stage{padding:180px 25px 120px 380px!important;overflow-y:auto;background:linear-gradient(#ecf9ffd9,#f5fbfff5),url('dashboard/south-map.webp') center/cover!important}.workspace[data-chapter="4"] .scene{position:relative;inset:auto;height:auto;min-height:300px;max-width:1050px;margin:auto;padding:0!important}.workspace[data-chapter="4"] .requests-board{padding:0}.workspace[data-chapter="4"] .chapter-heading{display:none}.request-card-list{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}.topbar .brand-logo{filter:drop-shadow(0 2px 1px #fff)}.map-toolbox>summary{border-radius:15px;background:#fffffff5;border:2px solid #fff;box-shadow:0 5px 18px #195d761a}.map-tools-panel{border-radius:19px;background:#f9fcff}.map-legend{border-radius:19px;border:2px solid white;background:#fffffff2}.map-legend button{border-radius:12px}.map-legend button[aria-pressed=true]{background:#ddecff;color:#1b7cef}}
@media(max-width:680px){body.mobile-detail{background:linear-gradient(#d5f4ff22,#f3f9ffed),url('dashboard/south-map.webp') center top/cover fixed!important}.mobile-detail .md-real-toolbar{display:block;padding:11px 12px 10px;border:0;border-bottom:3px solid #fff;background:linear-gradient(90deg,#dff7ff 20%,#e9f9ffed 65%,#e2f8ff8c),url('dashboard/hero-irrawaddy.webp') right center/300px auto no-repeat;min-height:135px}.md-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:65px}.md-detail-heading>button{background:#ffffffdc!important;border:1px solid #fff!important;box-shadow:0 3px 8px #4784a510;border-radius:12px!important;font-size:10px!important;padding:8px!important;color:#4182b2!important;flex-shrink:0}.md-detail-heading>button:first-child{max-width:85px}.md-detail-heading>button:last-child{height:34px;width:34px;display:grid;place-items:center;min-height:34px}.md-detail-title{display:grid;gap:3px;flex:1;min-width:0}.md-detail-title small{font-size:10px;color:#6e9fba}.md-detail-title b{font-size:17px!important;font-weight:700;line-height:1.5;color:#175780}.md-detail-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:9px}.md-detail-tabs button{display:flex!important;align-items:center;justify-content:center;gap:3px;flex-direction:column;padding:7px 2px!important;font-size:9px!important;border:1px solid #fff!important;border-radius:13px!important;background:#ffffffe3!important;color:#6a94af!important;min-height:48px}.md-detail-tabs button>svg{width:17px;height:17px}.md-detail-tabs button[aria-pressed=true]{background:linear-gradient(130deg,#39a4ff,#2782f7)!important;color:#fff!important;box-shadow:0 4px 11px #297fd829}.md-detail-tabs button:last-child{color:#cb6485!important;background:#fff3f7eb!important}.md-detail-tabs button:last-child[aria-pressed=true]{color:#fff!important;background:linear-gradient(130deg,#ff9bb3,#f4759a)!important}.mobile-detail .app-shell{padding:0 10px 100px!important}.mobile-detail .app-shell main{padding-top:12px}.mobile-detail .workspace{border:2px solid #fff!important;box-shadow:0 8px 22px #155d7914!important;background:#f8fcff!important;border-radius:24px!important;overflow:hidden!important}.mobile-detail .workspace .visual-stage{border-radius:21px!important;min-height:380px!important;height:53dvh!important;max-height:550px}.mobile-detail .workspace .sidebar{padding:14px!important;background:#fbfdff!important;border:0!important;border-radius:0!important}.mobile-detail .workspace .sidebar .filter-block{padding:12px!important;margin-bottom:12px}.mobile-detail .sidebar-title h2{font-size:16px}.mobile-detail .location-field label{font-size:10px}.mobile-detail #sidebar .filters-grid{gap:6px}.mobile-detail .location-field select{height:42px;font-size:11px!important;min-height:42px;padding:7px}.mobile-detail .filter-block .locate-button{font-size:11px;min-height:38px}.mobile-detail .workspace[data-chapter="2"] .sidebar,.mobile-detail .workspace[data-chapter="3"] .sidebar{order:0!important}.mobile-detail .workspace[data-chapter="2"] .visual-stage,.mobile-detail .workspace[data-chapter="3"] .visual-stage{order:1!important;border-top:2px solid #e1f2fc}.mobile-detail .workspace[data-chapter="4"] .sidebar{padding-bottom:0!important}.mobile-detail .workspace[data-chapter="4"] .visual-stage{max-height:none!important;height:auto!important;min-height:240px!important;overflow:visible;border-radius:0!important;background:#f1f9ff!important}.mobile-detail .workspace[data-chapter="4"] .scene{min-height:200px!important}.mobile-detail .requests-board{padding:12px!important}.mobile-detail .requests-board-head{padding-top:5px}.mobile-detail .requests-board-head h2{font-size:19px}.mobile-detail .requests-notice{font-size:10px}.mobile-detail .request-card-list{grid-template-columns:1fr}.mobile-detail .request-views button{font-size:12px}.mobile-detail #newRequest{background:linear-gradient(120deg,#ff91ac,#f3618b);margin-bottom:12px;width:100%}.mobile-detail .request-filters{margin-bottom:10px}.mobile-detail .request-sidebar-note{font-size:10px}.mobile-detail .route-field{margin-bottom:8px}.mobile-detail .route-result{margin-top:12px}.mobile-detail .route-distance strong{font-size:26px}.mobile-detail .vehicle-picks button{font-size:11px}.mobile-detail .map-toolbox{right:10px;top:10px}.mobile-detail .map-toolbox>summary{min-height:38px;border-radius:13px;border:2px solid #fff;background:#fffffff2;color:#3881b2;font-size:11px;width:100px}.mobile-detail .map-legend{border:2px solid #fff;border-radius:17px;box-shadow:0 5px 16px #16527514}.mobile-detail .map-legend button{font-size:9px;border-radius:11px}.mobile-detail .map-legend button[aria-pressed=true]{background:#e1efff;color:#1b7cf0}.mobile-detail .water-card{border-radius:18px}.mobile-detail .water-card-top{flex-wrap:wrap}.mobile-detail .station-widget-btn strong{font-size:16px}.mobile-detail .muted-note{font-size:10px;line-height:1.8}.mobile-detail .inline-button{font-size:11px;width:100%;margin-top:7px}.resource-heading{margin-top:8px}.resource-heading .primary{width:100%;font-size:13px}.mobile-detail .resource-heading h2{font-size:19px}.mobile-detail .kitchen-card{margin-top:9px}.mobile-detail .segmented button{font-size:12px;min-height:39px}.mobile-detail .toggle-line{font-size:11px}.mobile-detail .empty-state{font-size:12px}#modal{max-height:calc(100dvh - 20px);width:calc(100vw - 20px);border-radius:24px!important}.modal-heading{padding:14px 15px!important}.modal-heading h2{font-size:17px!important}#modalBody{padding:15px}.food-form-grid,.request-form-grid{grid-template-columns:1fr!important}.food-form-grid .modal-field{margin:5px 0}.help-type-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.help-type-picker>legend{grid-column:1/-1}.help-type-picker>label{font-size:11px!important;padding:8px 5px!important;display:flex;align-items:center;justify-content:center;gap:5px}.help-type-picker input[type=radio]{min-height:0}.help-type-picker>label>span{font-size:11px}.md-all-reports .md-report-image{height:95px}#newsDialog,.cctv-dialog{width:calc(100vw - 18px)!important;max-height:calc(100dvh - 20px);padding:0}.news-header,.cctv-dialog-heading{padding:17px 15px!important}.news-header h2,.cctv-dialog-heading h2{font-size:19px!important}.news-toolbar{padding:13px!important}.news-options{font-size:10px}.news-options input{min-height:0}.news-selects{gap:7px}.news-selects label{font-size:10px}.news-selects select{min-height:38px}.news-area-switch button{min-height:37px}.news-card h3{font-size:15px}#newsList{padding:12px!important}#newsStatus{padding:0 13px;font-size:11px}.news-footer{font-size:10px;padding:13px}.account-items button{font-size:12px}.md-report-form label{font-size:12px}.md-report-form>p{font-size:12px}.md-report-cards .md-like[aria-pressed=true] svg{fill:#fa6c94}.md-bottom-nav{box-shadow:0 7px 28px #17628d19}}

.station-widget-btn>div{min-width:0}.station-widget-btn>strong{flex-shrink:0}.station-widget-btn>strong small{display:block;font-size:9px;text-align:right}.water-reading small{color:#7398b4}.water-card .real-situation-summary{padding:0 13px;font-size:12px;line-height:1.8}.station-widget-btn small{font-size:10px;line-height:1.5;color:#83a1b9}.station-meta-info:before{content:'ค่าระดับสถานีไม่ใช่ความลึกน้ำท่วมบนถนน';display:block;font-size:11px;color:#6f91ad;margin-bottom:10px}
@media(min-width:681px){body:has(.workspace[data-chapter="4"]) .chapter-heading{display:none}.workspace[data-chapter="4"] .visual-stage{padding-top:96px!important}}

/* Mobile overlays share one direction; native dialog focus and dismissal stay intact. */
@media (max-width:680px) {
  dialog {
    --overlay-duration:360ms;
    --overlay-ease:cubic-bezier(.22,1,.36,1);
    position:fixed;
    inset:0;
    margin:auto;
    height:fit-content;
    box-sizing:border-box;
    transform:none;
    translate:calc(100vw + 24px) 0;
    opacity:0;
    transition:translate var(--overlay-duration) var(--overlay-ease),
      opacity 220ms ease, display var(--overlay-duration) allow-discrete,
      overlay var(--overlay-duration) allow-discrete;
    animation:none;
  }
  dialog[open] { translate:0 0;opacity:1 }
  dialog::backdrop {
    opacity:0;
    transition:opacity 300ms ease, display 360ms allow-discrete, overlay 360ms allow-discrete;
  }
  dialog[open]::backdrop { opacity:1 }
  .news-popup, .md-search-results {
    transform:translateX(0);opacity:1;
    transition:transform 360ms cubic-bezier(.22,1,.36,1),opacity 220ms ease,
      display 360ms allow-discrete;
  }
  .news-popup[hidden], .md-search-results[hidden] {
    transform:translateX(calc(100vw + 24px));opacity:0;
  }
  .toast {
    translate:calc(100vw + 24px) 0;
    transition:translate 360ms cubic-bezier(.22,1,.36,1),opacity 220ms ease;
  }
  .toast.show { translate:0 0 }
  /* Animate content only: map libraries retain their marker positioning transforms. */
  .map-toolbox[open] .map-tools-panel,
  .leaflet-popup-content-wrapper, .maplibregl-popup-content {
    animation:mobile-overlay-in 360ms cubic-bezier(.22,1,.36,1);
  }
  @starting-style {
    dialog[open] { translate:calc(100vw + 24px) 0;opacity:0 }
    dialog[open]::backdrop { opacity:0 }
    .news-popup:not([hidden]), .md-search-results:not([hidden]) {
      transform:translateX(calc(100vw + 24px));opacity:0;
    }
  }
  @supports not (transition-behavior:allow-discrete) {
    dialog[open], .news-popup:not([hidden]), .md-search-results:not([hidden]) {
      animation:mobile-overlay-in 360ms cubic-bezier(.22,1,.36,1);
    }
  }
}
@keyframes mobile-overlay-in {
  from { translate:100vw 0;opacity:0 }
  to { translate:0 0;opacity:1 }
}
@media (max-width:680px) and (prefers-reduced-motion:reduce) {
  dialog, dialog::backdrop, .news-popup, .md-search-results, .toast {
    transition:none!important;
  }
  dialog[open], .news-popup, .md-search-results, .map-toolbox[open] .map-tools-panel,
  .leaflet-popup-content-wrapper, .maplibregl-popup-content { animation:none!important }
}

/* Scroll the app normally; map engines handle their own pinch gestures. */
@media (max-width:680px) {
  html, body, dialog { touch-action:pan-x pan-y }
  .leaflet-container, .maplibregl-canvas-container { touch-action:none }
  /* Prevent iOS from zooming the page when a form field receives focus. */
  body input:not([type=checkbox]):not([type=radio]), body textarea, body select {
    font-size:16px!important;
  }
}

/* Visible province status key, outside the map labels. */
.md-map-key{position:relative;margin:8px 3.2% 10px;padding:12px;background:#f8fcfff5;border:1px solid white;border-radius:17px;color:#174b73;box-shadow:0 5px 15px #155b7412}
.md-map-key-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.md-map-key h2{font-size:13px;line-height:1.6;margin:0;font-weight:700}
.md-map-key-heading button{display:flex;align-items:center;gap:4px;flex-shrink:0;min-height:32px;font-size:11px;color:#1878da;padding:2px}
.md-map-key-heading button svg{width:15px;height:15px}
.md-map-key-colors{list-style:none;display:flex;flex-wrap:wrap;gap:9px 13px;padding:0;margin:9px 0}
.md-map-key-colors li{display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.7}
.md-map-key-colors li:last-child{flex-basis:100%;color:#67849b}
.md-map-key-colors i{display:inline-block;width:9px;height:9px;border-radius:50%;flex-shrink:0;border:1px solid #ffffffb3;box-shadow:0 0 0 1px #65849b25}
.md-map-key-colors [data-risk=green]{background:#35d58f}
.md-map-key-colors [data-risk=yellow]{background:#ffda37}
.md-map-key-colors [data-risk=orange]{background:#ff8a25}
.md-map-key-colors [data-risk=red]{background:#ff285b}
.md-map-key-colors [data-risk=unknown],.md-map-label[data-risk=unknown] .md-risk-dot{background:#91a5b5}
.md-map-key p{font-size:11px;line-height:1.8;color:#67849b;margin:5px 0 0}

.water-demo-setting{background:#fff8e5;border:1px solid #f2ca71;border-radius:18px;padding:16px;margin-bottom:18px;color:#714c10}.water-demo-setting .toggle-line{gap:16px;margin:0}.water-demo-setting small{display:block;font-weight:400;font-size:13px;margin-top:5px}.water-demo-setting p{font-size:12px;line-height:1.6;margin:12px 0 0}.water-demo-setting .switch{flex-shrink:0}.water-demo-banner{position:sticky;top:0;z-index:1500;display:flex;align-items:center;justify-content:center;gap:12px;background:#fff0ba;color:#64420d;padding:9px 12px;font-size:13px;border-bottom:1px solid #e6ba5a}.water-demo-banner[hidden]{display:none}.water-demo-banner button{background:#fff;border:1px solid #d8ac4b;border-radius:10px;padding:7px 10px;white-space:nowrap;color:inherit;font:inherit}.water-demo-banner span{line-height:1.5}@media(max-width:680px){.water-demo-banner{font-size:11px;gap:8px}.water-demo-banner b{display:block}}
