:root{--ink:#142e4e;--muted:#7b8ca1;--blue:#156be7;--deep:#075acb;--light:#edf5ff;--line:#e3eaf2;--shadow:0 10px 35px #2346770b;--radius:18px}*{box-sizing:border-box}body{margin:0;background:#f6f8fc;color:var(--ink);font:14px 'Manrope','Noto Sans Thai',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button:disabled{cursor:default;opacity:.4}button:hover:not(:disabled){filter:brightness(.96)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #6fb3fb;outline-offset:3px}button,input,select{min-height:44px}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}[hidden]{display:none!important}.app-shell{max-width:1800px;margin:auto;padding:0 40px}.topbar{height:91px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:27px;font-weight:700;line-height:1.1}.brand-mark{width:43px;height:43px;background:var(--blue);color:white;border-radius:13px;display:grid;place-items:center;box-shadow:0 5px 10px #156be725}.brand-mark svg{width:27px;height:27px;stroke-width:2}.brand small{display:block;font-family:Manrope,sans-serif;font-size:8px;letter-spacing:3px;font-weight:700;color:#8597ad;margin-top:7px}.topbar-caption{font-size:10px;letter-spacing:1.9px;color:#617c99;margin-left:20px;margin-right:auto}.topbar-caption span{color:#9eabbb}.top-actions{display:flex;align-items:center;gap:22px}.demo-tag{font-size:11px;color:#7d90a6;display:flex;align-items:center;gap:7px;white-space:nowrap}.demo-tag i{width:6px;height:6px;border-radius:50%;background:#699edd}.help-button{border:1px solid #d3e3f8;background:#fff;color:var(--blue);display:flex;align-items:center;gap:8px;padding:0 17px;border-radius:9px;font-size:12px;font-weight:600}.help-button svg{width:16px;height:16px}.chapter-heading{display:flex;justify-content:space-between;align-items:center;padding:30px 0 25px;gap:20px}.eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:1.8px;font-weight:700;color:#6a8ab0}.eyebrow>span:first-child{display:grid;place-items:center;border:1px solid #caddf5;color:var(--blue);width:25px;height:22px;border-radius:5px;font-size:10px;letter-spacing:0;background:#f8fbff}h1{font-size:36px;letter-spacing:-1px;font-weight:600;line-height:1.4;margin:11px 0 5px}h1 span{color:var(--blue)}.chapter-heading p{color:var(--muted);margin:0;font-size:13px}.heading-note{display:flex;align-items:center;gap:12px;margin-top:15px}.note-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#e8f1fc;color:#70a1d8}.heading-note b{display:block;font-size:12px;font-weight:600}.heading-note small{display:block;font-size:10px;color:#92a2b5;margin-top:6px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);background:#fff;border:1px solid #dce6f0;border-radius:19px;overflow:hidden;box-shadow:var(--shadow);height:calc(100dvh - 398px);min-height:510px;max-height:850px}.sidebar{position:relative;border-right:1px solid var(--line);padding:22px;overflow:auto;scrollbar-width:thin;scrollbar-color:#dde6ef transparent}.sidebar-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.sidebar-title h2{font-size:18px;font-weight:600;letter-spacing:-.4px;margin:0}.sidebar-title .icon{color:#75a1d1;width:19px}.location-field{position:relative;margin-bottom:11px}.location-field label{display:flex;align-items:center;gap:6px;font-size:11px;color:#7e91a7;margin-bottom:6px}.field-number{font-size:9px;color:#a5b2c1}.location-field select{width:100%;padding:0 33px 0 13px;color:#244664;border:1px solid #dce6f0;border-radius:9px;background:#fff;height:43px;min-height:43px;appearance:none;font-size:13px;outline-offset:1px;cursor:pointer}.location-field:after{content:'⌄';position:absolute;right:14px;bottom:12px;color:#7392b1;pointer-events:none;line-height:1}.location-field select:disabled{background:#f5f7fa;color:#a4b2c2;cursor:default}.locate-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:38px;background:#eef5ff;color:#2b7ad5;border-radius:8px;font-size:11px;margin:14px 0 0}.locate-button .icon{width:15px;height:15px}.divider{height:1px;background:var(--line);margin:20px 0}.panel-label{font-size:10px;letter-spacing:1px;color:#8d9eb2;font-weight:600;margin:0 0 11px}.area-summary{display:flex;align-items:flex-start;gap:11px;margin:0 0 15px}.area-summary .area-symbol{width:36px;height:36px;border-radius:10px;background:#edf5ff;display:grid;place-items:center;color:#327edb;flex-shrink:0}.area-summary h3{font-size:17px;line-height:1.4;margin:0;font-weight:600}.area-summary p{font-size:10px;color:#93a1b3;margin:5px 0 0}.summary-stats{display:flex;gap:8px;margin:13px 0}.summary-stats>div{flex:1;background:#f7f9fc;border:1px solid #eef2f7;border-radius:10px;padding:11px 10px}.summary-stats strong{font-size:24px;line-height:1.2;display:block}.summary-stats span{font-size:10px;color:#8d9bb0;display:block;margin-top:4px}.summary-stats small{font-size:11px;font-weight:500}.muted-note{color:#91a0b1;font-size:10px;line-height:1.8;margin:8px 0}.toggle-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;cursor:pointer;padding:7px 0}.switch{appearance:none;width:32px;height:19px;min-height:19px;background:#d9e1eb;border-radius:14px;position:relative;cursor:pointer;margin:0;flex-shrink:0;transition:background .2s}.switch:before{content:'';width:13px;height:13px;position:absolute;top:3px;left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #294b7120;transition:transform .2s}.switch:checked{background:var(--blue)}.switch:checked:before{transform:translateX(13px)}.inline-button{display:flex;align-items:center;justify-content:center;gap:7px;color:#5e8fbd;font-size:10px;width:100%;padding:0;min-height:32px}.inline-button .icon{width:13px;height:13px}.visual-stage{position:relative;min-width:0;background:#eff5fa;overflow:hidden}.scene{width:100%;height:100%;position:relative}#map{position:absolute;inset:0;background:#edf3f8;z-index:1}.leaflet-container{font-family:'Manrope','Noto Sans Thai',sans-serif}.leaflet-tile-pane{filter:saturate(.75)}.leaflet-control-attribution{font-size:8px!important;background:#ffffffbb!important;color:#8298ac!important}.leaflet-control-attribution a{color:#6789a8}.leaflet-control-zoom{border:1px solid #dce6f0!important;box-shadow:0 3px 10px #33577f09!important;border-radius:10px!important;overflow:hidden}.leaflet-control-zoom a{color:#6685a6!important;border-color:#e7edf4!important;width:33px!important;height:33px!important;line-height:33px!important;font-size:19px!important;font-weight:400!important}.leaflet-bottom.leaflet-right .leaflet-control-zoom{margin-bottom:57px;margin-right:20px}.map-topline{position:absolute;top:18px;left:20px;right:20px;z-index:500;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;pointer-events:none}.map-topline>*{pointer-events:auto}.breadcrumb{background:#ffffffed;border:1px solid #e2e9f2;border-radius:9px;box-shadow:0 3px 12px #213e6808;padding:10px 13px;color:#587697;font-size:11px;display:flex;gap:8px;align-items:center;line-height:1.8;max-width:calc(100% - 55px)}.breadcrumb .icon{width:14px;height:14px;color:#4a91dd}.breadcrumb i{font-style:normal;color:#a5b8ca}.map-tool{display:grid;place-items:center;width:39px;height:39px;min-height:39px;border:1px solid #dce6f0;background:#fff;border-radius:9px;color:#7595b5;box-shadow:0 3px 12px #213e6808}.map-tool .icon{width:18px;height:18px}.map-mode{position:absolute;top:70px;left:20px;z-index:500;display:flex;gap:5px}.map-mode button{min-height:32px;border-radius:8px;padding:6px 11px;background:#fffffff2;border:1px solid #dde6ee;color:#65809a;box-shadow:0 2px 8px #2d517609;display:flex;align-items:center;gap:6px;font-size:10px}.map-mode .active{background:#176ee6;color:white;border-color:#176ee6}.map-mode .icon{width:14px;height:14px}.map-legend{position:absolute;bottom:27px;left:20px;z-index:500;display:flex;align-items:center;gap:4px;padding:5px;background:#ffffffed;border:1px solid #dfe8f0;border-radius:10px;box-shadow:0 5px 16px #29466c0b}.map-legend button{display:flex;align-items:center;gap:6px;color:#6c819b;font-size:10px;min-height:31px;padding:5px 8px;border:1px solid transparent;border-radius:6px}.map-legend button[aria-pressed=true]{color:#2b5e99;background:#f0f6fd;border-color:#dce9f8}.risk-dot{width:7px;height:7px;background:var(--risk);border-radius:50%;display:inline-block;flex-shrink:0}.map-bottom-note{position:absolute;bottom:10px;left:22px;font-size:8px;color:#7d94ab;z-index:500;text-shadow:0 1px 2px white}.map-failure{position:absolute;z-index:600;left:20px;right:20px;bottom:85px;background:white;padding:14px;border-radius:10px;box-shadow:var(--shadow);font-size:11px;line-height:1.7}.map-failure button{color:var(--blue);text-decoration:underline}.area-marker{display:flex;flex-direction:column;align-items:center;white-space:nowrap;transform:translate(-50%,-50%);position:absolute;left:0;top:0;cursor:pointer;background:none;border:0;padding:0;min-height:0;font:12px 'Noto Sans Thai',sans-serif}.marker-bubble{display:flex;gap:7px;align-items:center;background:white;border:1px solid #e0e8f0;border-radius:9px;padding:8px 10px;box-shadow:0 4px 15px #2743631f;color:#35536f;font-size:11px;font-weight:500}.marker-bubble strong{color:var(--risk);font-size:12px}.marker-stem{width:1px;height:11px;background:var(--risk)}.marker-dot{width:9px;height:9px;border-radius:50%;background:var(--risk);border:2px solid #fff;box-shadow:0 0 0 4px color-mix(in srgb,var(--risk) 20%,transparent)}.area-marker:hover .marker-bubble,.marker-selected .marker-bubble{border-color:#438fee;box-shadow:0 0 0 3px #2a85ec15}.marker-bubble .icon{width:16px;height:16px;color:var(--risk)}.cluster-marker{border:2px solid white;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;color:white;background:#4d8cde;box-shadow:0 2px 12px #1c50744a;font-size:12px;font-weight:700;position:absolute;left:-18px;top:-18px}.leaflet-popup-content{font-family:'Noto Sans Thai',sans-serif;line-height:1.8;font-size:12px}.water-card{border:1px solid #e3ebf3;border-radius:12px;padding:14px;margin:13px 0;background:linear-gradient(135deg,#fff,#f9fbff)}.water-card-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:500}.risk-pill{color:var(--risk);background:color-mix(in srgb,var(--risk) 11%,white);font-size:9px;padding:4px 6px;border-radius:5px}.water-reading{display:flex;justify-content:space-between;align-items:center;margin:14px 0}.water-reading strong{font-size:36px;line-height:1;font-weight:600}.water-reading small{font-size:11px;color:#8c9db0;margin-left:4px}.human-scale{height:58px;width:32px;background:#edf3fa;border-radius:7px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.human-scale:before{content:'';position:absolute;bottom:0;left:0;right:0;height:var(--water);background:#a9d4ff7a}.human-scale .icon{width:26px;height:45px;color:#7094b9;position:relative;stroke-width:1.4}.water-card-foot{border-top:1px solid #e9eef4;padding-top:9px;font-size:9px;color:#8798ac;display:flex;justify-content:space-between}.empty-state{background:#f5f8fc;padding:16px;border-radius:10px;text-align:center;font-size:12px;line-height:1.8;color:#7c92aa;margin:15px 0}.empty-state .icon{display:block;margin:0 auto 8px;color:#83a5c8}.chapter-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 2px;color:#7e91a9;font-size:10px}.chapter-caption>div{display:flex;align-items:center;gap:16px}.caption-number{color:#2c76c9;font-size:10px;font-weight:700;white-space:nowrap}.chapter-caption button{font-size:10px;color:#8497ae;display:flex;align-items:center;gap:5px;min-height:22px;white-space:nowrap}.chapter-caption .icon{width:13px;height:13px}.bottom-dock{display:flex;align-items:center;gap:20px;min-height:74px;background:#fff;border:1px solid #dce6ef;border-radius:15px;padding:8px 12px 8px 22px;margin:0 0 17px;box-shadow:0 4px 20px #22457106}.dock-brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:16px;padding-right:20px;border-right:1px solid #e7edf4}.dock-brand svg{color:#2a7ce3;width:24px;height:24px}.chapter-tabs{display:flex;gap:5px;flex:1;justify-content:space-around}.chapter-tabs button{display:flex;align-items:center;gap:8px;border-radius:9px;padding:12px 13px;font-size:11px;color:#8192a6;font-weight:500;white-space:nowrap}.chapter-tabs button[aria-selected=true]{background:#eaf3ff;color:#146bdf}.tab-number{font-size:9px;opacity:.7}.chapter-tabs .icon{width:16px;height:16px}.dock-controls{display:flex;align-items:center;gap:9px;border-left:1px solid var(--line);padding-left:18px}.dock-controls>span{font-size:12px;color:#6582a2;white-space:nowrap}.dock-controls i{font-style:normal;color:#bbc5d0;margin-left:4px}.nav-arrow{width:30px;min-height:36px;font-size:24px;color:#869fb9}.next-button{display:flex;gap:10px;align-items:center;justify-content:center;background:var(--blue);color:white;border-radius:9px;padding:11px 15px;font-size:11px}.next-button .icon{width:17px;height:17px}.primary{width:100%;background:var(--blue);color:#fff;min-height:45px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:9px;padding:10px 14px;font-size:12px;font-weight:500}.primary .icon{width:17px;height:17px}.segmented{display:flex;gap:4px;background:#f2f5f9;border-radius:9px;padding:4px;margin:10px 0}.segmented button{flex:1;min-height:34px;font-size:10px;padding:5px;border-radius:6px;color:#7d91a9;white-space:nowrap}.segmented button.active{background:white;box-shadow:0 2px 5px #12355510;color:#2b77cf}.kitchen-list{display:grid;gap:10px;margin-top:13px}.kitchen-card{border:1px solid var(--line);border-radius:11px;padding:13px;background:white}.kitchen-card.selected{border-color:#95bfee;background:#fbfdff}.kitchen-card.unavailable{background:#f8f9fb}.kitchen-title{font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:space-between;gap:7px}.kitchen-title button{font-size:12px;font-weight:600;text-align:left;min-height:25px;padding:0}.halal-tag{font-size:8px;color:#299a81;background:#edf8f4;border-radius:4px;padding:3px 5px;white-space:nowrap}.kitchen-card p{font-size:10px;line-height:1.8;color:#8a9aad;margin:7px 0}.kitchen-card .stock-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.stock-row strong{color:#2386a1}.stock-row small{font-size:9px;color:#8a9cae}.stock-button{margin-top:9px;font-size:10px;background:#f0f5fa;color:#5c82a8;border-radius:6px;min-height:31px;padding:4px 9px;width:100%}.show-more{color:var(--blue);font-size:11px;text-align:center;width:100%;min-height:36px}.route-field label{display:block;font-size:11px;color:#8b9bad;margin:14px 0 7px}.route-field select{border:1px solid #dce6ee;border-radius:9px;width:100%;padding:10px;font-size:12px;color:#35536f;background:#fff}.route-swap{color:#739cc7;font-size:18px;min-height:25px;display:block;margin:1px auto -12px;transform:rotate(90deg)}.vehicle-picks{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0 17px}.vehicle-picks button{border:1px solid var(--line);border-radius:9px;padding:10px 3px;font-size:9px;color:#8ca0b5;min-height:65px;display:flex;flex-direction:column;align-items:center;gap:7px}.vehicle-picks button.active{border-color:#79aeed;background:#f0f6ff;color:#237bd5}.route-result{margin-top:16px}.route-distance{display:flex;gap:20px;margin-bottom:12px}.route-distance strong{font-size:23px}.route-distance small{display:block;font-size:9px;color:#91a1b3;margin-top:2px}.route-warning{border:1px solid #efdfc9;background:#fffbf5;padding:12px;border-radius:9px;color:#a57d47;font-size:11px;line-height:1.8}.route-timeline{margin:17px 0 0 6px;padding-left:17px;border-left:1px dashed #b9cde4;display:grid;gap:14px}.timeline-row{position:relative;font-size:10px;color:#7590a9}.timeline-row:before{content:'';position:absolute;left:-22px;top:4px;width:8px;height:8px;border:2px solid white;border-radius:50%;background:var(--risk,#4a8bdb);box-shadow:0 0 0 1px #d2e0ec}.timeline-row b{color:#3e668b;font-weight:600}.route-overview{position:absolute;bottom:32px;left:22px;right:65px;z-index:500;background:#ffffffee;border:1px solid #dfE7f0;border-radius:12px;padding:15px 18px;font-size:12px;color:#6f8ba4;box-shadow:var(--shadow)}.route-overview strong{color:#37648c}.route-overview p{font-size:10px;margin:5px 0 0;color:#94a5b7}textarea{width:100%;padding:14px;border:1px solid #d6e3f0;border-radius:10px;resize:vertical;min-height:180px;background:#fbfdff;color:#466681;font-size:12px;line-height:1.9}.sample-button{font-size:10px;color:#2e80d7;min-height:32px;padding:0;margin:5px 0 7px}.parser-points{padding:0;list-style:none;margin:21px 0}.parser-points li{display:flex;gap:8px;font-size:11px;color:#6e8ca7;margin:12px 0;align-items:center}.parser-points .icon{width:15px;height:15px;color:#438acb}.parser-canvas{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:40px;background:radial-gradient(ellipse at 50% 30%,#e6f1ff,#f5f9fe 65%);position:relative;overflow:auto}.parser-canvas:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#94b9de45 1px,transparent 1px);background-size:20px 20px;pointer-events:none}.parser-canvas>*{position:relative}.process-flow{display:flex;align-items:center;justify-content:center;gap:24px;margin-bottom:26px;width:100%;color:#94b4d5}.flow-node{width:59px;height:59px;display:grid;place-items:center;background:#fff;border:1px solid #dce7f3;border-radius:16px;box-shadow:0 5px 15px #2b569512}.flow-node.active{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 7px 20px #156be72d}.flow-node .icon{width:26px;height:26px}.terminal{width:100%;max-width:570px;border:1px solid #28456a;background:#132b49;border-radius:13px;box-shadow:0 20px 40px #193c671b;overflow:hidden;color:#b6cee6}.terminal-bar{display:flex;align-items:center;gap:5px;background:#1a3353;border-bottom:1px solid #294262;padding:13px 16px;color:#6f94b9;font:10px Manrope,sans-serif}.terminal-dot{width:6px;height:6px;background:#49627f;border-radius:50%}.terminal-bar>span:last-child{margin-left:auto;font-size:9px;letter-spacing:1px}.terminal-body{min-height:128px;padding:19px 22px;font-family:ui-monospace,monospace;font-size:11px;line-height:2}.terminal-body .prompt{color:#6babff}.terminal-body .success{color:#7accc0}.terminal-body .faint{color:#6687a8}.parser-output{max-width:570px;width:100%;border:1px solid #d8e5f3;border-radius:12px;margin-top:18px;background:#ffffffed;padding:19px 22px;box-shadow:0 10px 25px #325b8110}.parser-output h3{font-size:14px;margin:0 0 15px;font-weight:600;display:flex;align-items:center;gap:8px}.parser-output h3 .icon{width:17px;color:#4ca894}.parsed-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.parsed-grid small{display:block;font-size:9px;color:#92a3b6;margin-bottom:5px}.parsed-grid b{font-size:12px;font-weight:500;color:#4a6b8b}.parser-output .primary{margin-top:17px}.parser-idle{text-align:center;color:#96afc9;font-size:12px;margin:20px 0 0}.architecture-canvas{background:radial-gradient(ellipse at center,#e8f2ff,#f8fbff 75%);padding:20px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}.architecture-canvas svg.blueprint{width:100%;max-width:880px;max-height:100%;overflow:visible}.architecture-canvas .blueprint text{font-family:Manrope,'Noto Sans Thai',sans-serif}.architecture-canvas .architecture-node{cursor:pointer;outline:none}.architecture-node:hover .layer-plane,.architecture-node:focus .layer-plane{stroke:#428bee;stroke-width:2}.architecture-node.active .layer-plane{stroke:#287ee8;stroke-width:2;fill:#dcecff}.architecture-node .layer-plane{transition:fill .2s}.architecture-badge{position:absolute;top:23px;left:24px;font-size:9px;letter-spacing:1.5px;color:#8ca7c1}.arch-step{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:11px;margin:5px 0;border:1px solid transparent;border-radius:10px;font-size:12px;color:#7892ae}.arch-step.active{border-color:#d5e5f8;background:#f1f7ff;color:#2672ca}.arch-step>span{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#fff;border:1px solid #dce6f1;color:#6299cf;font-size:10px}.arch-detail{margin-top:20px;border-top:1px solid var(--line);padding-top:18px}.arch-detail h3{font-size:16px;line-height:1.7;font-weight:600;margin:0 0 8px}.arch-detail p{font-size:11px;line-height:1.9;color:#8297ad}.arch-tags{display:flex;flex-wrap:wrap;gap:5px;margin:13px 0}.arch-tags span{font-size:9px;color:#5a83af;background:#f0f5fb;padding:5px 7px;border-radius:5px}.status-note{font-size:10px;line-height:1.8;color:#538bac;background:#edf7fb;border:1px solid #dceff4;border-radius:9px;padding:10px}.status-note.planned{background:#f7f6fd;border-color:#e7e2f6;color:#9283b0}.loading{padding:25px;text-align:center;color:#81a0bd;line-height:2}dialog{width:min(520px,calc(100vw - 32px));max-height:88dvh;overflow:auto;border:1px solid #dce7f4;border-radius:18px;padding:25px;color:var(--ink);box-shadow:0 30px 100px #17345344}dialog::backdrop{background:#142e4e66;backdrop-filter:blur(5px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.modal-heading h2{font-size:22px;font-weight:600;margin:0}.modal-heading button{width:35px;min-height:35px;font-size:25px;background:#f1f5fa;border-radius:8px;color:#7894b0}.modal-note{padding:13px;border:1px solid #dbe9f8;background:#f0f6fd;border-radius:10px;font-size:12px;line-height:1.8;color:#7090ad;margin-bottom:17px}.modal-body-text{font-size:12px;line-height:1.9;color:#6c89a5}.modal-body-text a{color:var(--blue);text-decoration:underline}.modal-body-text h3{font-size:14px;color:#355d84;margin-bottom:5px}.modal-field{margin:13px 0}.modal-field label{display:block;font-size:12px;color:#6c88a3;margin-bottom:7px}.modal-field input{width:100%;border:1px solid #d7e3ef;border-radius:9px;padding:10px 12px;color:#426582}.modal-field textarea{min-height:90px}.checks{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.checks label{background:#f3f7fb;border-radius:7px;padding:7px 9px;font-size:10px;color:#708aa4;display:flex;gap:5px;align-items:center}.checks input{min-height:0}.toast{position:fixed;left:50%;bottom:105px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#173d63;color:white;padding:13px 20px;border-radius:10px;box-shadow:0 10px 30px #26445d26;max-width:90vw;width:max-content;font-size:12px;z-index:1500;transition:.2s;text-align:center}.toast.show{transform:translate(-50%,0);opacity:1}
@media(min-width:1600px){.app-shell{padding:0 55px}.workspace{grid-template-columns:340px minmax(0,1fr)}.sidebar{padding:26px}.chapter-heading{padding:36px 0 30px}h1{font-size:40px}.workspace{height:calc(100dvh - 420px)}.location-field select{height:47px}.location-field label{font-size:12px}.chapter-tabs button{font-size:12px;padding:14px 19px}.marker-bubble{font-size:12px}}
@media(max-width:1200px){.app-shell{padding:0 25px}.topbar-caption{font-size:8px;letter-spacing:1.1px}.topbar-caption span{display:none}.workspace{grid-template-columns:280px minmax(0,1fr)}.sidebar{padding:18px}.chapter-tabs button{padding:12px 9px;gap:6px;font-size:10px}.chapter-tabs .tab-number{display:none}.dock-brand{display:none}.bottom-dock{gap:7px;padding-left:10px}.dock-controls{padding-left:12px}.heading-note{max-width:260px}.note-icon{width:35px;height:35px}.heading-note b{font-size:11px}.heading-note small{font-size:9px}.map-legend{left:12px;gap:0}.map-legend button{font-size:9px;padding:5px 7px}.parser-canvas{padding:30px}h1{font-size:32px}}
@media(max-width:900px){.topbar-caption{display:none}.heading-note{display:none}.workspace{grid-template-columns:255px minmax(0,1fr)}.sidebar{padding:17px}.map-legend button{font-size:9px;padding:5px}.map-legend button .risk-dot{width:5px;height:5px}.chapter-tabs button{font-size:9px;gap:6px}.dock-controls>span{display:none}.next-button{padding:10px 12px}.bottom-dock{gap:0}.chapter-caption{font-size:9px}.parser-canvas{padding:20px}.parsed-grid{grid-template-columns:1fr}.parser-canvas .terminal-body{font-size:9px;padding:15px}.parser-output{padding:16px}.architecture-canvas{padding:0}}
@media(max-width:680px){.app-shell{padding:0 16px}.topbar{height:73px;gap:10px}.brand{font-size:23px;gap:8px}.brand-mark{width:36px;height:36px;border-radius:11px}.brand-mark svg{width:23px;height:23px}.brand small{font-size:7px;letter-spacing:2.5px;margin-top:5px}.demo-tag{font-size:9px;gap:5px}.top-actions{gap:10px}.help-button{padding:0 9px;min-height:36px;font-size:10px;gap:4px;border-radius:8px}.help-button svg{width:13px;height:13px}.chapter-heading{padding:23px 1px 20px}.eyebrow{font-size:8px;letter-spacing:1.5px}.eyebrow>span:first-child{width:23px;height:20px;font-size:9px}h1{font-size:28px;letter-spacing:-1px;margin:10px 0 6px;line-height:1.45}h1 span{display:block}.chapter-heading p{font-size:11px;line-height:1.8}.workspace{display:flex;flex-direction:column;height:auto;max-height:none;min-height:0;border-radius:15px;overflow:visible}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:17px;overflow:visible;order:0;border-radius:15px 15px 0 0;background:#fff}.sidebar-title{margin-bottom:14px}.sidebar-title h2{font-size:16px}.filters-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.location-field:first-child{grid-column:1/-1}.location-field{margin:0}.location-field label{font-size:10px;margin-bottom:5px}.location-field select{font-size:12px;min-height:44px;height:44px;padding-left:10px}.locate-button{margin-top:12px;min-height:37px;font-size:11px}.divider{margin:15px 0}.area-summary{margin-bottom:10px}.area-summary h3{font-size:16px}.area-summary p{font-size:10px}.area-summary .area-symbol{width:33px;height:33px}.summary-stats{margin:10px 0}.summary-stats>div{padding:10px}.summary-stats strong{font-size:23px}.summary-stats span{font-size:10px}.water-card{margin:10px 0}.water-reading{margin:12px 0}.water-reading strong{font-size:31px}.human-scale{height:42px}.human-scale .icon{height:35px}.toggle-line{font-size:11px}.visual-stage{height:420px;min-height:420px;order:1;border-radius:0 0 15px 15px}.map-topline{left:12px;right:12px;top:13px}.breadcrumb{font-size:10px;padding:9px 10px;gap:5px;max-width:calc(100% - 48px)}.map-tool{width:35px;height:35px;min-height:35px}.map-mode{left:12px;top:64px;gap:4px}.map-mode button{font-size:9px;min-height:32px;padding:6px 8px}.map-legend{left:10px;bottom:29px;right:10px;justify-content:space-between;padding:4px;gap:0}.map-legend button{font-size:9px;padding:5px 6px;gap:4px;min-height:31px}.map-bottom-note{font-size:7px;left:12px;bottom:12px}.leaflet-bottom.leaflet-right .leaflet-control-zoom{margin-right:12px;margin-bottom:85px}.leaflet-control-attribution{font-size:7px!important;max-width:100%;line-height:1.6}.marker-bubble{font-size:10px;padding:7px 9px;gap:5px}.marker-bubble strong{font-size:10px}.chapter-caption{padding:13px 2px 105px;align-items:flex-start;gap:12px;line-height:1.9}.chapter-caption>div{gap:9px;align-items:flex-start}.caption-number{font-size:8px;line-height:2.1}.chapter-caption button{font-size:8px;min-height:20px}.chapter-caption .icon{width:11px;height:11px}.bottom-dock{position:fixed;bottom:0;left:0;right:0;z-index:1000;border-radius:15px 15px 0 0;min-height:76px;margin:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -5px 25px #2147710a;border:1px solid #dce6ef;display:block;background:#fffffffa;backdrop-filter:blur(12px)}.chapter-tabs{gap:3px;justify-content:space-between}.chapter-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:6px;padding:9px 2px;font-size:8px;line-height:1.4;white-space:nowrap;min-height:57px}.chapter-tabs .icon{width:20px;height:20px}.dock-controls{display:none}.toast{bottom:90px;font-size:11px;line-height:1.8}.kitchen-list{max-height:285px;overflow:auto;padding-right:3px}.kitchen-card{padding:12px}.kitchen-title button{font-size:12px}.stock-button{min-height:35px}.segmented button{font-size:11px;min-height:38px}.route-field label{font-size:11px}.route-field select{font-size:12px;height:44px}.vehicle-picks button{min-height:64px;font-size:10px}.workspace[data-chapter="4"] .visual-stage{height:auto;min-height:380px}.parser-canvas{padding:28px 20px;min-height:380px}.terminal-body{font-size:10px!important}.parsed-grid{grid-template-columns:1fr 1fr}.process-flow{margin-bottom:20px;gap:21px}.flow-node{width:48px;height:48px;border-radius:13px}.parser-output{padding:17px}.parser-output h3{font-size:13px}.parser-output .primary{font-size:11px}.workspace[data-chapter="5"] .visual-stage{height:380px;min-height:380px}.architecture-badge{font-size:8px;top:15px;left:15px}.arch-navigation{display:grid;grid-template-columns:1fr 1fr;gap:5px}.arch-step{font-size:10px;padding:9px;margin:0;gap:7px}.arch-step>span{width:23px;height:23px;font-size:9px}.arch-detail{margin-top:13px;padding-top:13px}.arch-detail h3{font-size:16px}.architecture-canvas svg.blueprint{width:115%;max-width:none}.route-overview{left:12px;right:12px;bottom:30px;font-size:11px}.primary{min-height:45px;font-size:12px}.panel-label{font-size:9px}.mobile-compact .summary-stats{display:none}.mobile-compact .area-summary{display:none}.mobile-compact .water-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:12px}.mobile-compact .water-reading{margin:0;gap:12px}.mobile-compact .water-reading strong{font-size:28px}.mobile-compact .human-scale{display:none}.mobile-compact .water-card-foot{grid-column:1/-1}.mobile-compact .water-card-top{display:block}.mobile-compact .risk-pill{display:inline-block;margin-top:5px}.mobile-compact .water-card-top>span:first-child{display:block}.mobile-compact .divider{margin:13px 0}.mobile-compact .toggle-line{padding:3px 0}.mobile-compact .muted-note{font-size:9px;margin-bottom:3px}.mobile-compact #scopeSummary .empty-state{margin:10px 0;padding:10px;font-size:10px}.mobile-compact #scopeSummary>.panel-label{display:none}dialog{padding:21px}.modal-heading h2{font-size:20px}.modal-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.compact-marker{width:24px;height:24px;position:absolute;left:-12px;top:-12px;display:grid;place-items:center}.compact-marker span{width:12px;height:12px;background:var(--risk);border:3px solid white;border-radius:50%;box-shadow:0 2px 8px #33577930}.compact-marker:hover span{box-shadow:0 0 0 4px #5a9edf25}.leaflet-tooltip{font-family:Noto Sans Thai,sans-serif;font-size:11px;border:1px solid #dce7f3;border-radius:7px;box-shadow:0 5px 15px #26415f10;color:#4a7093}

.scope-count{font-size:10px;color:#8b9eb3;margin:0 0 9px;line-height:1.8}.scope-count b{color:#5383b6}.scope-count span{color:#9cabbc}.location-field select{font-size:14px}.water-card-top{font-size:13px}.water-card-foot{font-size:10px}.toggle-line{font-size:12px}.chapter-tabs button{font-size:12px}.map-legend button{font-size:11px}.chapter-description{font-size:14px}.mobile-compact .divider{margin:16px 0}.mobile-compact .water-card{margin:10px 0 9px}.mobile-compact .panel-label{margin-bottom:7px}.mobile-compact .muted-note{font-size:9px}.mobile-compact .inline-button{min-height:28px}
@media(max-width:1200px){.chapter-tabs button{font-size:10px}.map-legend button{font-size:10px}}
@media(max-width:680px){.chapter-tabs button{font-size:9px}.location-field select{font-size:13px}.scope-count{display:none}.water-card-top{font-size:12px}.map-legend button{font-size:9px}.mobile-compact .water-card{margin:0 0 11px}.mobile-compact .divider{margin:12px 0}.mobile-compact .inline-button{margin-bottom:-5px}.mobile-compact .water-card-foot{font-size:9px}.toggle-line{font-size:11px}.mobile-compact .muted-note{font-size:8px}}

.filters-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.location-field{margin-bottom:0;min-width:0}.location-field:first-child{grid-column:1/-1}.location-field select{font-size:13px;text-overflow:ellipsis}.sidebar .filter-block>.sidebar-title{margin-bottom:15px}
@media(max-width:680px){.workspace[data-chapter="1"] .sidebar{display:contents}.workspace[data-chapter="1"] .filter-block{order:0;padding:17px 17px 15px}.workspace[data-chapter="1"] .visual-stage{order:1;border-radius:0;height:400px;min-height:400px}.workspace[data-chapter="1"] .sidebar>.divider{display:none}.workspace[data-chapter="1"] #scopeSummary{order:2;padding:15px 17px 0}.workspace[data-chapter="1"] .sidebar>.toggle-line{order:3;margin:0 17px}.workspace[data-chapter="1"] .sidebar>.muted-note{order:4;margin:5px 17px}.workspace[data-chapter="1"] .sidebar>.inline-button{order:5;margin:0 0 12px;min-height:32px}.workspace[data-chapter="1"]{overflow:hidden}.chapter-heading h1{font-size:26px}.chapter-heading h1 span{display:inline}.chapter-heading{padding-bottom:18px}.location-field label{font-size:11px}.locate-button{min-height:35px;margin-top:11px}}
@media(min-width:681px){.workspace{min-height:300px}.app-shell{padding-bottom:90px}.bottom-dock{position:fixed;bottom:17px;left:40px;right:40px;max-width:1720px;margin:0 auto;z-index:1000}}
@media(min-width:681px) and (max-width:1200px){.bottom-dock{left:25px;right:25px}}
@media(min-width:1600px){.bottom-dock{left:55px;right:55px;max-width:1690px}}

.location-status{font-size:12px;line-height:1.6;color:#58738e;margin:8px 0 0}.location-status:empty{display:none}.locate-button:disabled{opacity:.7;cursor:wait}

.tambon-boundary{transition:fill-opacity .15s,stroke-width .15s}.tambon-boundary:focus{outline:none;stroke:#1763d5;stroke-width:4}.boundary-tooltip{font-family:inherit;border-radius:9px;padding:8px 12px}.boundary-popup{font-family:inherit;display:grid;gap:6px;min-width:180px}.boundary-popup small{font-size:11px;color:#71869a}.boundary-popup b{font-size:19px;color:#1b3958}.boundary-popup span{font-size:12px;color:#58718b}.boundary-popup strong{font-size:18px}.boundary-popup p{font-size:11px;margin:2px 0!important;color:#64798e}.unknown-key{display:flex;align-items:center;gap:6px;font-size:12px;padding:7px;color:#62788f}.map-legend{flex-wrap:wrap;max-width:calc(100% - 28px)}

@media(max-width:680px){.map-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}.map-legend button{font-size:10px;min-height:40px;justify-content:center;padding:5px 3px}.map-legend .unknown-key{grid-column:1/-1}}

#map3d{position:absolute;inset:0;z-index:2;background:#e6f1fa}#map3d[hidden]{display:none}#mapIso{position:absolute;inset:0;z-index:2;background:#bfe3f2}#mapIso[hidden]{display:none}.map-dimension{position:absolute;right:65px;top:20px;z-index:510;display:flex;gap:3px;background:#fff;padding:4px;border:1px solid #dce7f2;border-radius:11px;box-shadow:0 4px 18px #214f7b14}.map-dimension button{min-height:34px;padding:6px 13px;border-radius:7px;font-size:12px;font-weight:600;color:#607894}.map-dimension button[aria-pressed=true]{background:#2675e3;color:white}.three-tools{position:absolute;right:20px;top:71px;z-index:510;display:flex;gap:4px;background:#ffffffee;border:1px solid #dce7f2;border-radius:10px;padding:3px}.three-tools[hidden],.three-status[hidden]{display:none}.three-tools button{min-width:36px;min-height:35px;color:#35648e;font-size:18px;padding:3px 8px}.three-tools #tiltMap{font-size:11px}.three-status{position:absolute;top:118px;left:20px;right:20px;z-index:500;pointer-events:none;font-size:11px;color:#456786;text-shadow:0 1px 3px white;background:#ffffffd9;width:fit-content;max-width:calc(100% - 40px);padding:5px 10px;border-radius:7px}.three-marker{width:0;height:0;padding:0;border:0;background:none;font-family:inherit}.three-marker .area-marker{cursor:pointer}.three-marker:focus-visible{outline:none}.three-marker:focus-visible .marker-bubble{outline:3px solid #1763d5}.maplibregl-popup-content{border-radius:12px;padding:16px;font-family:inherit}.maplibregl-popup-close-button{right:5px;top:4px;min-width:28px;min-height:28px;font-size:20px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group{margin-bottom:60px}.is-3d .map-failure{display:none}.maplibregl-ctrl-attrib{font-size:9px!important}.maplibregl-ctrl button{width:36px;height:36px}.maplibregl-canvas:focus{outline:none}
@media(max-width:680px){.map-dimension{top:62px;right:10px}.map-dimension button{font-size:10px;padding:6px 9px;min-height:34px}.three-tools{top:110px;right:10px}.three-tools button{min-height:36px}.three-status{top:155px;left:10px;font-size:9px;padding:4px 6px;max-width:calc(100% - 20px)}.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group{margin-bottom:145px}}

.three-marker.compact .marker-bubble,.three-marker.compact .marker-stem{display:none}.three-marker.compact .marker-dot{width:9px;height:9px}

.three-marker{width:30px;height:30px;min-height:30px}.three-marker>.area-marker{left:50%;top:50%}.three-marker>.compact-marker{left:50%;top:50%}

@media(max-width:680px){.visual-stage:has(#mapScene.is-3d:not([hidden])){height:480px!important}.three-status{max-width:calc(100% - 80px)}}

#viewBuildings{font-size:11px;font-weight:600;background:#eaf2ff;border-radius:7px;color:#256bdd}.three-marker:not(.compact):before{content:"";position:absolute;width:24px;height:24px;left:3px;top:-23px;background:linear-gradient(135deg,#fff58b,#ffd344);border:2px solid #fff6b9;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:-3px 3px 8px #d3b43530}.three-marker:not(.compact):after{content:"";position:absolute;width:9px;height:9px;left:10.5px;top:-15px;background:#fff9d9;border-radius:50%;box-shadow:inset 0 1px 3px #cab65133}.three-marker:not(.compact)>.area-marker{top:-40px;transform:translate(-50%,-100%)}.three-marker:not(.compact) .marker-stem{display:none}.three-marker:not(.compact) .marker-dot{display:none}.three-marker .marker-bubble{border-radius:8px;box-shadow:0 4px 12px #416daa16}
@media(max-width:360px){.map-mode{left:10px;gap:3px}.map-mode button{padding:6px 5px;gap:3px}.map-mode .icon{width:12px;height:12px}}

/* One collapsible toolbox keeps the map itself clear. */
.map-toolbox{position:absolute;z-index:650;right:16px;top:16px;max-width:calc(100% - 32px)}
.map-toolbox>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:8px;margin-left:auto;width:118px;min-height:44px;background:#fff;color:#2468bf;border:1px solid #d8e5f5;border-radius:12px;box-shadow:0 4px 18px #214f7b0d;cursor:pointer;font-size:13px;font-weight:600}
.map-toolbox>summary::-webkit-details-marker{display:none}.map-toolbox>summary .icon{width:18px;height:18px}.map-toolbox>summary:focus-visible{outline:3px solid #6fb3fb;outline-offset:3px}
.map-toolbox[open]{width:310px;height:calc(100% - 32px)}.map-toolbox[open]>summary{background:#edf5ff;border-color:#9ec5f9}
.map-tools-panel{height:calc(100% - 54px);margin-top:10px;padding:14px;background:#fffffff7;border:1px solid #dbe7f3;border-radius:15px;box-shadow:0 12px 40px #183c6926;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.tools-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.tools-heading strong{font-size:14px}.tools-heading button{font-size:23px;width:38px;min-height:38px;border-radius:9px;background:#f2f6fb;color:#657d97}
.map-tools-panel section+section{border-top:1px solid #e6edf5;margin-top:15px;padding-top:5px}.map-tools-panel h3{font-size:11px;font-weight:500;color:#6c839c;margin:12px 0 8px}.map-tools-panel button{min-height:42px;font-size:12px;border-radius:9px}
.map-toolbox .map-dimension,.map-toolbox .three-tools,.map-toolbox .map-mode,.map-toolbox .map-legend{position:static;inset:auto;max-width:none;width:100%;box-shadow:none;transform:none}
.map-toolbox .map-dimension{padding:3px;background:#f1f6fc;border:0;gap:3px}.map-toolbox .map-dimension button{flex:1;font-size:12px}
.map-zoom-row,.map-toolbox .three-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:7px}.map-zoom-row button,.tools-wide,.map-toolbox .three-tools button{background:#f5f8fc;border:1px solid #e4ebf4;padding:6px;color:#426b96}
.map-toolbox .tools-wide{width:100%;grid-column:1/-1;margin-top:6px}.map-toolbox .three-tools{padding:0;border:0;background:none}.map-toolbox .three-tools button{font-size:12px;min-height:42px}.map-toolbox .three-tools .tools-wide{margin-top:0;color:#246bdd;background:#eaf2ff}
.map-toolbox .map-mode{display:flex;flex-wrap:wrap;gap:6px}.map-toolbox .map-mode button{flex:1;justify-content:center;padding:6px;font-size:11px}.map-toolbox .map-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:9px;padding:0;border:0;background:none}.map-toolbox .map-legend button{justify-content:flex-start;gap:7px;padding:8px;font-size:11px;border:1px solid #e4ebf4}.map-toolbox .map-legend .unknown-key{grid-column:1/-1}.tools-hint{font-size:10px;line-height:1.8;color:#8799ad;margin:14px 0 0}
.map-topline{left:16px;right:16px;top:16px;pointer-events:none}.map-topline .breadcrumb{max-width:calc(100% - 130px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;min-height:44px;line-height:24px;padding:9px 12px}.breadcrumb .icon{width:15px;margin-right:5px}.breadcrumb i{margin:0 5px}
.three-status{top:auto;bottom:42px;left:16px;right:auto;max-width:calc(100% - 32px);font-size:10px;padding:5px 9px;background:#ffffffdc;line-height:1.6}
@media(max-width:680px){.map-toolbox{right:10px;top:12px;max-width:calc(100% - 20px)}.map-toolbox[open]{height:calc(100% - 24px)}.map-toolbox>summary{width:105px;font-size:12px}.map-topline{left:10px;right:10px;top:12px}.map-topline .breadcrumb{max-width:calc(100% - 114px);font-size:10px;padding:9px 8px}.three-status{bottom:44px;left:10px;max-width:calc(100% - 20px);font-size:10px}.visual-stage:has(#mapScene.is-3d:not([hidden])){height:440px!important}}
.map-tools-panel{position:absolute;top:54px;bottom:0;left:0;right:0;height:auto;margin:0}

/* Water filters stay directly available without opening the view tools. */
#mapScene>.map-legend{position:absolute;left:16px;right:16px;bottom:40px;top:auto;transform:none;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;width:calc(100% - 32px);max-width:620px;padding:6px;border:1px solid #dbe6f2;border-radius:13px;background:#fffffff2;box-shadow:0 4px 18px #214f7b0d}
#mapScene>.map-legend button{min-height:42px;justify-content:center;gap:6px;padding:7px 5px;font-size:11px;white-space:nowrap;border-radius:8px}
#mapScene>.map-legend .unknown-key{grid-column:1/-1}
.workspace[data-chapter="1"] .three-status{bottom:106px}
@media(max-width:680px){#mapScene>.map-legend{left:10px;right:10px;bottom:34px;width:calc(100% - 20px);max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:5px}#mapScene>.map-legend button{min-height:40px;font-size:10px;padding:6px 3px}.workspace[data-chapter="1"] .three-status{bottom:136px}}

.open-food-point{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:44px;background:#176de5;color:#fff;border-radius:11px;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 4px 12px #176de51c}.open-food-point .icon{width:18px;height:18px}.food-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;max-height:90vh;overflow-y:auto}.food-demo-note{font-size:12px;line-height:1.8;background:#edf5ff;border:1px solid #d7e7fc;color:#416b96;padding:13px 16px;border-radius:12px;margin-bottom:20px}.food-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.food-form-grid .modal-field small{display:block;color:#8194a9;font-size:10px;margin-top:5px}.food-form-grid select{width:100%;border:1px solid #dce6f1;border-radius:9px;padding:8px;background:#fff;color:#243d59;font-size:12px}.food-map-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px}.food-map-heading strong{font-size:14px;margin-right:auto}.food-map-heading button{background:#edf5ff;color:#246acf;border-radius:8px;min-height:36px;font-size:11px;padding:6px 10px}.food-map-hint,.food-pin-status{font-size:11px;color:#6d849d;line-height:1.8}.food-pin-status{color:#2869b8}#foodPinMap{height:240px;border:1px solid #d9e4f1;border-radius:12px;overflow:hidden}.food-provider-pin{background:#176de5;border:3px solid white;border-radius:50%;box-shadow:0 2px 9px #16396066}.food-provider-pin span{display:block;width:8px;height:8px;margin:7px;background:white;border-radius:50%}.food-form-error{font-size:12px;color:#b7424a}.food-form-error:empty{display:none}.local-food-detail{padding:7px 9px;background:#edf5ff;border-radius:7px}.local-food-remove{font-size:11px;color:#8b6571;border:1px solid #e5d9dc;border-radius:7px;min-height:32px;padding:4px 10px}
@media(max-width:680px){.bottom-dock{display:flex;align-items:stretch;gap:3px}.chapter-tabs{flex:1;min-width:0}.open-food-point{flex:0 0 78px;white-space:normal;display:flex;flex-direction:column;font-size:9px;gap:5px;padding:8px 2px;line-height:1.4;min-height:57px}.open-food-point .icon{width:21px;height:21px}.food-form-grid{grid-template-columns:1fr}.food-dialog{padding:19px;max-height:88vh}.food-dialog .modal-heading h2{font-size:19px}.food-map-heading strong{width:100%}#foodPinMap{height:210px}}

.help-type-picker{border:0;padding:0;margin:0 0 22px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.help-type-picker legend,.help-vehicles legend{font-size:13px;font-weight:600;margin-bottom:10px}.help-type-picker label{position:relative;cursor:pointer}.help-type-picker input{position:absolute;opacity:0;width:1px;height:1px}.help-type-picker span{display:block;text-align:center;background:#f4f8fd;border:1px solid #dce6f1;border-radius:10px;padding:12px 6px;font-size:13px}.help-type-picker input:checked+span{background:#176de5;border-color:#176de5;color:white}.help-type-picker input:focus-visible+span{outline:3px solid #83b6ff;outline-offset:2px}.help-vehicles{grid-column:1/-1;border:1px solid #dce6f1;border-radius:10px;padding:12px;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:14px}.help-vehicles label{display:flex;align-items:center;gap:6px;font-size:13px}.help-vehicles input{width:18px;height:18px}.food-dialog [hidden]{display:none!important}.help-verification{display:inline-block;background:#fff5df;color:#926515;border-radius:6px;padding:3px 7px;font-size:10px;margin-top:6px}.help-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.help-actions button{font-size:12px;padding:8px 10px;min-height:40px;background:#edf5ff;color:#246acf;border-radius:8px}.help-updated{display:block;font-size:10px;color:#72859b;margin-top:6px}
/* Requests: a shared list with owner-only editing. */
.workspace[data-chapter="4"]{height:auto;min-height:570px;max-height:none;align-items:stretch}.workspace[data-chapter="4"] .sidebar{align-self:stretch}.workspace[data-chapter="4"] .visual-stage{display:flex;flex-direction:column;width:100%;height:auto;min-height:570px;background:#f8faff}#requestsScene{display:flex;flex-direction:column;flex:1;height:auto;min-width:0}.requests-board{flex:1;min-width:0}.requests-board{padding:28px;background:#f8faff;min-height:570px}.requests-board-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.requests-eyebrow{font-size:10px;letter-spacing:1px;color:#7292b8}.requests-board h2{font-size:23px;margin:5px 0}.requests-board h2 span{display:inline-block;font-size:14px;padding:4px 10px;border-radius:8px;background:#e6f0ff;color:#176de5;vertical-align:middle}.request-refresh{border:1px solid #dce6f1;background:#fff;border-radius:9px;font-size:12px;padding:8px 13px;white-space:nowrap}.requests-notice,.request-form-note{background:#edf5ff;border:1px solid #d7e7fc;border-radius:12px;padding:13px 16px;color:#476b96;font-size:12px;line-height:1.9;margin:0 0 20px}.request-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.request-card{background:white;border:1px solid #dfe8f3;border-radius:15px;padding:20px;min-width:0}.request-card-top{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.request-code{font-size:10px;color:#8a9bb0;letter-spacing:.3px}.request-status{font-size:10px;border-radius:7px;padding:5px 9px;background:#edf1f5;color:#63758a}.status-waiting{background:#fff1e1;color:#93651e}.status-assisting{background:#e6f0ff;color:#2267c5}.status-resolved{background:#e5f5ee;color:#28755a}.request-card h3{font-size:20px;font-weight:600;margin:17px 0 8px}.request-location{font-size:12px;color:#657f9b;line-height:1.8;margin:0 0 13px}.request-card-meta{display:flex;flex-direction:column;gap:7px;font-size:13px}.request-card-meta time,.request-updated{font-size:10px;color:#8496ac}.request-updated{margin:14px 0 0}.request-card-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #edf1f7;padding-top:13px;margin-top:15px}.request-card-actions button{border-radius:8px;padding:8px 12px;color:#3979bf;background:#edf5ff;font-size:12px}.request-card-actions .request-update{background:#176de5;color:#fff}.request-views{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#f0f5fb;border-radius:10px;padding:4px;margin:20px 0}.request-views button{font-size:12px;border-radius:7px;padding:8px 4px}.request-views button[aria-pressed=true]{background:white;color:#176de5;box-shadow:0 2px 5px #16365d0d}.request-sidebar-note{border-top:1px solid #e3eaf2;margin-top:20px;padding-top:20px;color:#7b90a8;font-size:11px;line-height:1.9}.request-empty{grid-column:1/-1;padding:55px 20px;text-align:center;max-width:600px;margin:auto}.request-empty>span{font-size:42px;color:#5c99e8}.request-empty h3{font-size:21px}.request-empty p{font-size:13px;color:#8195ad;line-height:1.9}.request-empty .primary{width:auto;padding:12px 25px;display:inline-block}.request-pagination{display:flex;justify-content:center;align-items:center;gap:15px;margin-top:24px;font-size:12px}.request-pagination button{background:white;border:1px solid #dce6f1;border-radius:8px;padding:8px 12px}.request-sync{font-size:10px;color:#869ab2;text-align:right;margin:20px 0 0}.requests-loading{padding:60px;text-align:center;color:#6f89a6}.request-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.request-form-grid:has(#sosProvince){grid-template-columns:repeat(3,minmax(0,1fr))}.request-form-grid select{width:100%;border:1px solid #dce6f1;border-radius:9px;background:white;color:#264660;padding:10px;font-size:12px}.request-status-picks{border:0;padding:0;margin:20px 0}.request-status-picks legend{font-size:16px;font-weight:600;margin-bottom:15px}.request-status-picks label{display:flex;align-items:center;gap:12px;border:1px solid #dce6f1;padding:10px 15px;border-radius:10px;margin-bottom:9px;font-size:14px;cursor:pointer}.request-status-picks label:has(:checked){border-color:#3381ed;background:#edf5ff}.request-status-picks input{width:18px;height:18px;min-height:18px;accent-color:#176de5}#sosForm textarea{min-height:100px}#sosForm input{min-width:0}
@media(max-width:1100px){.request-card-list{grid-template-columns:1fr}.requests-board{padding:22px}.request-card h3{font-size:19px}}
@media(max-width:680px){.workspace[data-chapter="4"] .sidebar{border-bottom:1px solid #e3eaf2}.workspace[data-chapter="4"] .visual-stage{height:auto;min-height:300px}.requests-board{padding:18px 12px;min-height:300px}.requests-board h2{font-size:19px}.requests-notice{font-size:11px;padding:12px}.request-card{padding:17px}.request-views{margin:15px 0}.request-sidebar-note{font-size:11px;padding-top:14px;margin-top:12px}.request-form-grid,.request-form-grid:has(#sosProvince){grid-template-columns:1fr}.request-card-actions button{flex:1}.request-empty{padding:30px 15px}.request-form-note{font-size:11px}.request-status-picks label{font-size:13px}.chapter-tabs button[data-chapter="4"]{font-size:9px}}

.request-filters summary{font-size:12px;font-weight:600;color:#477ba9;cursor:pointer;padding:5px 0 15px}.request-filters[open] summary{margin-bottom:5px}@media(max-width:680px){.request-sidebar-note{display:none}.request-filters summary{padding:8px 0}.request-filters[open] summary{margin-bottom:12px}.request-views{margin-bottom:8px}}

/* Larger, saturated water keys remain readable on compact screens. */
#mapScene>.map-legend{max-width:720px}
#mapScene>.map-legend button{gap:8px;font-size:12px;font-weight:600;min-height:44px}
#mapScene>.map-legend .risk-dot{width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 1px #142e4e14}
@media(max-width:700px){
 #mapScene>.map-legend{max-width:none}
 #mapScene>.map-legend button{font-size:11px;gap:7px}
}

/* River Telemetry Stations & Real Situation Water Layer */
.station-marker{position:absolute;left:0;top:0;transform:translate(-50%,-50%);cursor:pointer;white-space:nowrap;display:flex;flex-direction:column;align-items:center;background:none;border:0;padding:0;font-family:'Noto Sans Thai',sans-serif;z-index:400}
.station-bubble{display:flex;align-items:center;gap:7px;background:#ffffff;border:1.5px solid var(--status,#2b77cf);border-radius:10px;padding:6px 9px;box-shadow:0 3px 12px rgba(23,43,77,0.18);font-size:11px}
.station-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:color-mix(in srgb,var(--status,#2b77cf) 12%,white);color:var(--status,#2b77cf)}
.station-icon svg{width:16px;height:16px}
.station-info{display:flex;flex-direction:column;text-align:left}
.station-name{font-weight:600;color:#183654;font-size:11px}
.station-river{font-size:9px;color:#70869d}
.station-reading{font-size:12px;font-weight:700;color:var(--status,#2b77cf);margin-left:4px}
.station-stem{width:1.5px;height:9px;background:var(--status,#2b77cf)}
.station-dot{width:9px;height:9px;border-radius:50%;background:var(--status,#2b77cf);border:2px solid #fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--status,#2b77cf) 25%,transparent)}
.station-marker:hover .station-bubble,.station-marker.marker-selected .station-bubble{box-shadow:0 0 0 3px color-mix(in srgb,var(--status,#2b77cf) 25%,transparent)}

.station-modal-content{display:grid;gap:16px}
.station-modal-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:8px;font-size:13px;background:color-mix(in srgb,var(--badge-color,#2b77cf) 12%,white);color:var(--badge-color,#2b77cf)}
.station-modal-badge .badge-dot{width:8px;height:8px;border-radius:50%;background:var(--badge-color,#2b77cf)}
.station-grid-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.metric-card{background:#f6f9fc;border:1px solid #e1ebf5;border-radius:10px;padding:12px}
.metric-card small{display:block;font-size:10px;color:#788ea5;margin-bottom:4px}
.metric-card strong{font-size:18px;color:#183654}
.metric-card .unit{font-size:11px;font-weight:400;color:#788ea5}
.station-meta-info{background:#fff;border:1px solid #e3edf6;border-radius:10px;padding:12px;font-size:11px;line-height:1.8;color:#556e88}
.station-meta-info p{margin:4px 0}
.station-meta-info a{color:#156be7;text-decoration:underline}

.real-source-tag{display:inline-flex;align-items:center;gap:4px;font-size:9px;padding:2px 6px;border-radius:5px;background:#e7f5ea;color:#1e7e34;font-weight:600;margin-left:6px}
.real-situation-summary{margin:8px 0;font-size:11px;line-height:1.6;color:#35536f;background:#f3f8fd;border-left:3px solid var(--risk);padding:8px 10px;border-radius:0 6px 6px 0}
.real-source-foot{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#788ea5;margin-top:8px}
.real-source-foot a{color:#156be7;text-decoration:underline}

.station-widget-btn{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 12px;margin:10px 0;border:1px solid #dbe6f2;border-radius:9px;background:#f8fbfe;color:#234e78;font-size:11px;cursor:pointer}
.station-widget-btn:hover{background:#eff6fc;border-color:#b8d5f3}
.station-widget-btn strong{color:#156be7}
.card-actions{margin-top:10px}
.kitchen-nav{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;padding:9px 10px;min-height:40px;background:#176de5;color:#fff;border-radius:10px;font-weight:600;text-decoration:none}
.kitchen-nav:hover{background:#0f5cc4}
.kitchen-nav .icon{width:15px;height:15px}
