:root{--ink:#182f40;--blue:#006e80;--muted:#536575;--line:#e3e9ec;--bg:#f4f7f9}*{box-sizing:border-box}body{margin:0;font:16px/1.55 'Noto Sans Thai',system-ui,sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:44px;border:0;border-radius:10px;background:white;color:var(--ink);padding:10px 16px}button:hover{filter:brightness(.96)}button:focus-visible,a:focus-visible{outline:3px solid #058baf;outline-offset:3px}header{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 32px;gap:24px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:23px;font-weight:700;line-height:1.2}.brand-icon{background:var(--blue);color:white;font:44px/50px Georgia;width:50px;text-align:center;border-radius:14px}.brand-sub{display:block;font-size:11px;letter-spacing:2.4px;margin-top:6px}.header-note{font-size:14px;color:var(--muted);flex:1}.demo{font-size:13px;font-weight:600;color:#8b620a;background:#fff5d9;padding:8px 13px;border-radius:7px}main{height:calc(100dvh - 88px);display:grid;grid-template-columns:390px 1fr}aside{background:white;display:flex;flex-direction:column;border-right:1px solid var(--line);min-height:0;z-index:2}.intro{padding:27px 25px 15px}.eyebrow{color:var(--blue);font-size:12px;font-weight:700;letter-spacing:1.5px}h1{font-size:25px;letter-spacing:-.7px;line-height:1.4;margin:9px 0}p{margin:8px 0}.intro p{font-size:14px;color:var(--muted)}.summary{margin:0 25px 22px;display:flex;gap:18px;border-bottom:1px solid var(--line);padding-bottom:20px}.summary div{flex:1}.summary strong{display:block;font-size:29px;line-height:1.4}.summary div:nth-child(2) strong{color:#ce5430}.summary div:nth-child(3) strong{color:#16746a}.summary span{font-size:12px;color:var(--muted);white-space:nowrap}.search{margin:0 25px;display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:var(--bg);gap:8px}.search span{font-size:24px}.search input{border:0;padding:11px 0;background:transparent;min-width:0;width:100%;font-size:14px}.filters{display:flex;gap:7px;padding:13px 25px 17px}.filters button{font-size:14px;padding:7px 12px;border:1px solid var(--line)}.filters .active{background:#e5f3f4;color:#006778;border-color:#acd2d7}.list-head{display:flex;align-items:center;justify-content:space-between;padding:0 25px 10px}.list-head h2{font-size:16px;margin:0}.list-head select{font-size:13px;border:0;background:white;color:var(--muted)}.reports{overflow:auto;flex:1;min-height:110px}.report{padding:17px 25px;width:100%;border-radius:0;text-align:left;border-top:1px solid var(--line);display:flex;gap:14px}.level{min-width:57px;height:61px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:700;font-size:22px;background:#fff0e6;color:#b94711}.level small{font-size:11px;font-weight:500}.report-text{flex:1;min-width:0}.report-text b{font-size:15px;display:block}.report-text p{color:var(--muted);font-size:13px;margin:3px 0 5px}.report-text span{font-size:12px;color:var(--muted)}.report-text .status{display:inline;color:#a9442d;margin-right:7px}.report .chevron{color:#8b9aa3;align-self:center}.side-foot{font-size:12px;color:var(--muted);padding:13px 25px;border-top:1px solid var(--line);background:#f9fbfc}.map-wrap{position:relative;min-height:0;overflow:hidden}#map{height:100%;background:#e8eff1}.map-title,.locate,.map-note,.legend,.map-bottom{position:absolute;z-index:500}.map-title{left:25px;top:24px;background:white;box-shadow:0 4px 20px #16354614;border-radius:12px;padding:12px 17px;display:flex;align-items:center;gap:10px;font-size:14px}.map-title>span:last-child{color:var(--muted);border-left:1px solid var(--line);padding-left:10px}.pin-dot{width:8px;height:8px;background:var(--blue);border-radius:50%}.locate{right:22px;top:24px;font-size:24px;width:48px;padding:2px;box-shadow:0 3px 16px #1232}.map-note{top:89px;left:25px;right:75px;width:fit-content;font-size:12px;background:#fff9e9ed;color:#78541a;border-radius:7px;padding:7px 11px}.legend{left:25px;bottom:125px;display:flex;gap:13px;align-items:center;background:#fffefc;padding:11px 14px;border-radius:10px;box-shadow:0 4px 20px #1231;font-size:12px;flex-wrap:wrap}.legend b{font-size:12px}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:9px;height:9px;border-radius:50%}.green{background:#168778}.amber{background:#b98012}.orange{background:#dc672b}.red{background:#cb3b49}.map-bottom{left:25px;right:25px;bottom:32px;padding:16px 19px;background:#fff;border-radius:14px;box-shadow:0 8px 35px #15344322;display:flex;align-items:center;justify-content:space-between;gap:15px}.map-bottom b{font-size:14px;display:block}.map-bottom span{font-size:12px;color:var(--muted);display:block;margin-top:3px}.primary{background:var(--blue);color:#fff;font-weight:600;white-space:nowrap}.flood-marker{background:transparent}.marker{height:38px;min-width:49px;border:3px solid white;border-radius:12px;box-shadow:0 3px 12px #1f3c4a44;color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;position:relative}.marker:after{content:'';position:absolute;bottom:-8px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid white}.mobile-nav{display:none}dialog{border:0;border-radius:20px;padding:25px;width:min(480px,calc(100% - 24px));max-height:90dvh;box-shadow:0 20px 100px #18304055;color:var(--ink)}dialog::backdrop{background:#102f4366;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.close{font-size:25px;padding:0;width:44px}dialog h2{font-size:23px;margin:12px 0}.muted{color:var(--muted);font-size:13px}form>label,.coords label{display:block;font-size:14px;font-weight:600;margin-top:17px}form input,form textarea,form select{display:block;width:100%;border:1px solid #cfdbe0;border-radius:9px;padding:10px;margin-top:7px;background:#fff;color:var(--ink)}.coords{display:flex;gap:10px}.coords label{width:50%}.secondary{border:1px solid #a8cbd2;color:var(--blue);margin-top:10px;width:100%}.depth-presets{display:flex;gap:6px;margin-top:9px}.depth-presets button{font-size:13px;flex:1;padding:7px;background:var(--bg)}.submit{width:100%;margin-top:20px}#photo-preview,.detail-photo{max-height:230px;width:100%;object-fit:cover;border-radius:10px;margin-top:12px}#toast{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);background:#173b49;color:white;padding:13px 20px;border-radius:12px;z-index:5000;display:none;width:max-content;max-width:90%;font-size:14px}.detail-grid{display:flex;gap:20px;padding:16px 0;border-block:1px solid var(--line);margin:20px 0}.detail-grid strong{font-size:26px}.detail-grid span{display:block;font-size:13px;color:var(--muted)}.detail-warning{background:#fff5dd;padding:13px;border-radius:9px;font-size:14px}.empty{padding:30px;color:var(--muted)}
@media(min-width:1500px){main{grid-template-columns:430px 1fr}.intro{padding-top:35px}.report{padding-block:22px}}
@media(max-width:900px){main{grid-template-columns:340px 1fr}.map-bottom{align-items:stretch;flex-direction:column}.legend{bottom:181px}.header-note{display:none}.demo{margin-left:auto}}
@media(max-width:680px){header{height:72px;padding:0 16px;gap:10px}.brand{font-size:19px;gap:9px}.brand-icon{width:39px;font-size:34px;line-height:41px;border-radius:11px}.brand-sub{font-size:9px;letter-spacing:1.8px}.demo{font-size:11px;padding:6px 8px}main{height:calc(100dvh - 144px);display:block}aside{display:none;height:100%}.map-wrap{height:100%}.mobile-nav{display:flex;gap:7px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));height:auto;min-height:72px;background:#fff;border-top:1px solid var(--line)}.mobile-nav button{flex:1;font-size:14px;padding:10px 7px}.mobile-nav .active{background:#e7f2f4;color:var(--blue)}.map-title{top:16px;left:14px;padding:10px 12px}.map-note{top:73px;left:14px;right:14px;font-size:11px}.locate{top:16px;right:14px}.map-bottom{bottom:27px;left:14px;right:14px;padding:12px 14px}.map-bottom .primary{display:none}.map-bottom span{font-size:11px}.legend{bottom:115px;left:14px;right:14px;gap:10px;padding:10px;justify-content:center}.list-mode aside{display:flex}.list-mode .map-wrap{display:none}.intro{padding:21px 23px 12px}.summary{margin-bottom:15px}.report{padding:15px 23px}dialog{padding:20px}.eyebrow{font-size:11px;letter-spacing:.8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Road-oriented reference adaptation */
.view-toggle{margin:0 25px 16px;display:flex;padding:4px;border-radius:10px;background:#edf2f5;gap:4px}.view-toggle button{flex:1;font-size:14px;min-height:38px;background:transparent;padding:7px}.view-toggle .active{background:#fff;box-shadow:0 2px 5px #17344712;color:var(--blue);font-weight:600}.road-card{border:1px solid var(--line);border-left:5px solid var(--severity);border-radius:10px;margin:0 16px 12px;padding:13px 13px 9px;background:#fff}.road-heading{display:flex;gap:9px;align-items:center}.road-heading h3{font-size:16px;margin:0;line-height:1.5}.road-number{min-width:25px;height:25px;border-radius:50%;background:var(--severity);color:white;text-align:center;font-size:14px;font-weight:700;line-height:25px}.road-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0;font-size:12px;color:var(--muted)}.road-summary b{color:var(--severity);font-size:13px}.road-point{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;background:#f5f8fa;padding:10px;min-height:65px;border-radius:7px;margin-top:7px}.road-point b{font-size:14px;font-weight:500;display:block}.road-point small{font-size:12px;color:var(--muted);display:block;margin-top:5px}.road-point strong{font-size:14px;white-space:nowrap}.extent{font-size:12px;color:var(--muted);margin:10px 0 0}.road-locate{display:block;margin-left:auto;font-size:13px;color:var(--blue);padding:5px 0;min-height:37px}.sources{display:flex;flex-wrap:wrap;gap:5px 12px;padding:10px 20px;font-size:12px;border-top:1px solid var(--line);color:var(--muted)}.source-live{color:var(--blue)}.source-tag{display:inline-block;background:#edf5f7;color:var(--blue);font-size:13px;padding:5px 9px;border-radius:5px;margin-top:10px}.marker-index{position:absolute;top:-13px;left:-12px;background:#183747;color:white;border:2px solid #fff;border-radius:50%;min-width:23px;height:23px;font-size:12px;line-height:19px}.list-head h2{font-size:14px}.summary{margin-bottom:15px;padding-bottom:14px}.intro{padding-top:20px}.filters{padding-bottom:12px}
@media(max-width:680px){.road-card{margin-inline:16px}.side-foot{display:none}.intro{padding-top:15px}.intro h1{font-size:23px}.view-toggle{margin-bottom:12px}.sources{font-size:11px}}

.team-credit{display:block;font-size:12px;font-weight:500;letter-spacing:0;line-height:1.5;margin-top:5px;color:var(--muted)}.brand-sub{display:inline;font-size:18px;letter-spacing:0;margin-left:4px}.locate{width:auto;display:flex;align-items:center;gap:7px;padding:8px 12px;font-size:22px}.locate span{font-size:14px}.location-status{position:absolute;z-index:500;right:22px;top:80px;max-width:270px;background:white;padding:10px 12px;border-radius:9px;font-size:13px;box-shadow:0 4px 15px #1232}.location-status[hidden]{display:none}button:disabled{opacity:.65;cursor:wait}
@media(max-width:680px){header{height:90px;padding:0 12px}.brand{font-size:17px;gap:8px}.brand-sub{font-size:15px}.team-credit{font-size:11px}.demo{font-size:10px;max-width:75px;text-align:center}.brand-icon{width:32px;line-height:37px}main{height:calc(100dvh - 162px)}.locate{top:109px;right:14px;min-height:44px}.location-status{top:162px;right:14px;max-width:245px}}

/* Azure Maps overlays */
.flood-marker{cursor:pointer}
.picked-marker{width:19px;height:19px;border:3px solid #006e80;border-radius:50%;background:#b4f1f1;box-shadow:0 0 0 5px #006e8033}
.user-marker{width:18px;height:18px;border:3px solid white;border-radius:50%;background:#007cba;box-shadow:0 0 0 5px #007cba44,0 2px 8px #1235}
#map .azure-maps-control-container{margin-top:86px;margin-right:12px}
@media(max-width:680px){#map .azure-maps-control-container{margin-top:165px;margin-right:4px}}
.report-thumb{width:52px;height:52px;flex:0 0 52px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.report-photo{margin:14px 0}.report-photo .detail-photo{display:block;max-height:300px;margin:0}.report-photo figcaption{margin-top:7px;color:var(--muted);font-size:12px;line-height:1.5}.road-point>span:first-child{min-width:0;flex:1}.road-point small{line-height:1.35}
.report-count{font-style:normal;font-size:11px;font-weight:700;color:#006e80;background:#e4f3f4;border-radius:6px;padding:3px 6px;white-space:nowrap}.marker-count{display:block;position:absolute;left:50%;top:39px;transform:translateX(-50%);white-space:nowrap;color:#173747;background:#fff;border:1px solid #d8e3e8;box-shadow:0 2px 8px #1233;border-radius:7px;padding:1px 5px;font-size:10px;font-weight:700}.flood-marker{position:relative}.detail-subhead{font-size:16px;margin:20px 0 6px}.photo-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.gallery-photo{padding:0;overflow:hidden;border:1px solid var(--line);border-radius:9px;text-align:left;min-width:0}.gallery-photo img{width:100%;height:92px;object-fit:cover;display:block}.gallery-photo span{display:block;font-size:12px;padding:4px 7px}.individual-reports{list-style:none;padding:0;margin:8px 0 20px;border-top:1px solid var(--line)}.individual-reports li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 2px;border-bottom:1px solid var(--line);font-size:13px}.individual-reports li span{min-width:0}.individual-reports li b,.individual-reports li small{display:block}.individual-reports li small{color:var(--muted)}.individual-reports li strong{white-space:nowrap;color:#b45a21}#detail{overflow:auto}#photo-dialog{width:min(760px,calc(100% - 24px));overflow:auto}#photo-full{display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain;border-radius:10px;margin-top:14px}@media(max-width:680px){.gallery-photo img{height:76px}.road-point strong{font-size:12px}.report-thumb{width:44px;height:44px;flex-basis:44px}}
#gps-status{background:#edf5f7;border-radius:8px;padding:9px 11px;line-height:1.55;margin-top:10px}
.photo-consent{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.45;font-weight:500}.photo-consent input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0}.pilot-tag{display:inline-block;margin-left:5px;color:#006e80;background:#e4f3f4;border-radius:5px;padding:1px 5px;font-size:10px;font-style:normal;font-weight:700}.pilot-notice{background:#e9f6f7;border-left:4px solid #006e80;padding:10px 12px;border-radius:7px;font-size:13px;margin:12px 0}#submit-status.error{color:#a13027;background:#fff0ed;padding:8px 10px;border-radius:7px}

/* Share controls */
.share-header{border:1px solid #a8cbd2;color:var(--blue);font-weight:700;white-space:nowrap}
#share-dialog{width:min(440px,calc(100% - 24px))}
.share-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:20px 0 14px}
.share-options a{min-height:50px;display:flex;align-items:center;justify-content:center;border:1px solid #cbdde2;border-radius:10px;color:var(--blue);text-decoration:none;font-weight:700}
.share-options a:hover{background:#edf5f7}
.share-options a:focus-visible{outline:3px solid #058baf;outline-offset:3px}
.share-url-label{display:block;font-size:13px;font-weight:600;margin:16px 0 7px}
#share-url{width:100%;padding:10px;border:1px solid #cbdde2;border-radius:9px;color:var(--ink);background:#f8fafb;font-size:13px}
.share-actions{display:flex;gap:9px;margin-top:12px}
.share-actions button{flex:1;border:1px solid #a8cbd2;color:var(--blue);font-weight:700}
.share-actions .primary{border:0;color:#fff}
.share-actions [hidden]{display:none}
#share-status{min-height:22px;margin-top:10px;color:var(--blue);font-size:13px}
@media(max-width:680px){.share-header{display:none}.mobile-nav button{min-width:0;font-size:13px;padding:10px 4px}}

/* Let the mobile footer include the device safe area without pushing it below the viewport. */
@media(max-width:680px){
  body{height:100dvh;display:flex;flex-direction:column;overflow:hidden;-webkit-text-size-adjust:100%}
  header{flex:0 0 90px;min-width:0}
  .brand{min-width:0;flex:1}
  .brand>span:last-child{min-width:0}
  .demo{flex:0 0 auto;max-width:min(75px,25vw)}
  main{height:auto;min-height:0;flex:1}
  .mobile-nav{flex:0 0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .mobile-nav button{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.25;font-size:clamp(11px,3vw,13px)}
}
.osm-icon{background:none;border:0}.osm-anchor{position:absolute;left:0;top:0;transform:translate(-50%,-50%)}.leaflet-container{font:inherit;background:#e9eef0}
.map-wrap .leaflet-top.leaflet-right{top:58px}
@media(max-width:680px){.map-wrap .leaflet-control-zoom{display:none}}
.turnstile{margin:6px 0 10px;min-height:65px}.turnstile[hidden]{display:none}.privacy-note a{color:var(--blue)}
.doc-page{background:#fff}.doc{max-width:720px;margin:0 auto;padding:24px 16px 48px;line-height:1.7}.doc h1{font-size:26px;margin:16px 0 4px}.doc h2{font-size:18px;margin:24px 0 6px}.doc a{color:var(--blue)}
.admin{max-width:900px}.admin-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.admin-bar input[type=password]{margin-left:6px;padding:8px;border:1px solid var(--line);border-radius:8px}.admin-bar button{padding:0 14px;border-radius:9px;background:#eef3f5}.admin-card{display:grid;grid-template-columns:minmax(0,220px) 1fr;gap:14px;border:1px solid var(--line);border-radius:12px;padding:12px;margin:10px 0}.admin-card:not(:has(img)){grid-template-columns:1fr}.admin-card img{width:100%;border-radius:8px;background:#eef3f5;min-height:120px;object-fit:cover}.admin-card h3{margin:0 0 4px;font-size:17px}.admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.admin-actions button{padding:0 12px;border-radius:9px;background:#eef3f5}.admin-actions .primary,.admin-bar .primary{background:var(--blue);color:#fff}.tag{font-size:12px;border-radius:6px;padding:1px 6px;background:#eef3f5;margin-left:4px}.pending-tag{background:#fff1d6;color:#8a5a00}.hidden-tag{background:#fde4e6;color:#a0212f}@media(max-width:680px){.admin-card{grid-template-columns:1fr}}
main.doc{display:block;height:auto;grid-template-columns:none}.admin-bar[hidden],#admin-login[hidden]{display:none}
[hidden]{display:none!important}
.flag-report{background:none;border:0;padding:0;min-height:0;color:var(--muted);font-size:13px;text-decoration:underline;cursor:pointer}span.flag-report{text-decoration:none;cursor:default}
.route-open{position:absolute;top:64px;left:20px;z-index:450;background:#fff;border:1px solid var(--line);border-radius:12px;padding:0 14px;box-shadow:0 2px 8px #163e4e18;color:var(--blue);font-weight:700}
.route-pick-status{position:absolute;top:116px;left:20px;right:60px;z-index:450;background:#245bc0;color:#fff;border-radius:10px;padding:10px;font-size:14px;text-align:left}
.route-pin{background:#245bc0;color:#fff;border:2px solid #fff;border-radius:50%;text-align:center;line-height:24px;font-weight:700;box-shadow:0 1px 5px #0005}
.road-key{padding:14px 0;font-size:12px;color:var(--muted);border-top:1px solid var(--line);line-height:1.7}.road-key label{color:var(--ink);font-weight:600}.road-key input,.route-consent input{width:auto;flex:none}
#route-dialog{max-width:560px}#route-dialog>label{display:block;margin:12px 0 6px}#route-dialog>input{width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;background:#f5f8f9}
#route-dialog button:not(.close){border:1px solid var(--line);border-radius:10px;padding:0 12px;margin:8px 0;min-height:44px;background:#eff4f6;color:var(--ink)}#route-dialog button.primary{background:var(--blue);color:#fff;border:0;width:100%}
.route-actions{display:flex;gap:8px;flex-wrap:wrap}#route-dialog .route-consent{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.7}#route-dialog .detail-warning{margin:14px 0;font-size:13px;line-height:1.7}#route-dialog .detail-warning p{margin-bottom:0}
#route-status{font-size:14px;color:var(--blue);line-height:1.7}#route-roads{overflow-wrap:anywhere;font-size:13px}#route-summary{font-size:17px}
@media(max-width:680px){.route-open{left:12px;top:60px;font-size:13px}.route-pick-status{left:12px;right:12px;top:111px}#route-dialog{max-height:calc(100dvh - 28px);padding:20px}#route-dialog h2{font-size:22px}}

/* Keep long lists/documents scrollable on short mobile viewports. */
aside{overflow:auto}
.intro,.summary,.search,.filters,.list-head,.view-toggle,.road-key,.sources,.side-foot{flex-shrink:0}
.doc-page{height:auto;min-height:100dvh;display:block;overflow:auto}
.map-wrap:has(.route-pick-status:not([hidden])) .locate{display:none}
/* Loading/error notices must not cover the route controls. */
.map-note{top:119px}
.route-pick-status{top:174px}
@media(max-width:680px){.map-note{top:220px}.route-pick-status{top:111px}}
.photo-metadata{margin-top:12px;padding:12px;border:1px solid #c9dde3;border-radius:10px;background:#edf5f7;font-size:13px;overflow-wrap:anywhere}
.photo-metadata p{line-height:1.65}.photo-metadata .secondary{background:white;white-space:normal}
.report-pick-status{position:absolute;top:174px;left:20px;right:60px;z-index:600;background:var(--blue);color:white;text-align:left;font-size:14px;white-space:normal;box-shadow:0 3px 15px #1233}
.map-wrap:has(.report-pick-status:not([hidden])) .locate,.map-wrap:has(.report-pick-status:not([hidden])) .route-open{display:none}
@media(max-width:680px){.report-pick-status{top:111px;left:12px;right:12px}}
.sample-link{display:inline-block;color:var(--blue);margin-top:6px;text-decoration:underline}
.sample-page header{border-bottom:3px solid #d7a32f}.sample-page .map-title{background:#fff3cb;color:#704d0c}
.sample-notice{position:absolute;z-index:500;top:84px;left:25px;right:75px;max-width:500px;background:#fff3cbea;border:1px solid #e2bd68;border-radius:10px;padding:12px 15px;font-size:13px;box-shadow:0 3px 15px #1232;line-height:1.6}
.sample-notice>b,.sample-notice>span{display:block}.sample-notice a{display:inline-block;color:#705010;margin-top:4px;font-weight:700}.sample-page .map-note{top:240px}
.sample-notice button{background:#fff8e5;border:1px solid #d8bb72;color:#705010;font-size:12px;min-height:36px;margin-top:6px;margin-right:10px;padding:5px 10px}
@media(max-width:680px){.sample-notice{top:68px;left:12px;right:12px;padding:10px 12px;font-size:12px}.sample-page .map-note{top:216px}.sample-page .map-bottom{display:none}.sample-page .demo{font-weight:700;color:#705010}}

.list-pages{display:flex;gap:8px;margin:8px 0 16px}.list-pages button{flex:1}.list-pages [hidden]{display:none}

.community-filters{display:flex;gap:10px;margin-top:12px}.community-filters label{flex:1;min-width:0;font-size:13px}.community-filters select{width:100%;min-height:44px;margin-top:4px}.zone-note{font-size:12px}.community-help,.depth-guide,.trend-panel{padding:14px;border:1px solid #d9e4e8;border-radius:12px;margin:12px 0;background:#f4f8fa}.community-help summary,.depth-guide summary{cursor:pointer;font-weight:700;min-height:28px}.community-help>a{display:block;padding:10px 0}.community-help p,.depth-guide p,.trend-panel p{font-size:14px}.depth-guide svg{width:100%;max-height:210px}.depth-guide text{font-size:14px;fill:#173344}.trend-panel h3{margin-top:0}.trend-panel small{color:#536570}
.language-label{margin-left:auto}.language-label select{min-height:40px;width:72px;padding:6px;border:1px solid #b8cbd3;border-radius:8px;background:white;color:#183943}.depth-key{margin:12px 0;padding:12px;background:#f4f8fa;border:1px solid #dce5ea;border-radius:12px;font-size:13px}.depth-key label{display:flex;gap:8px;align-items:center;font-weight:700}.depth-key p{margin:6px 0}.depth-key small{color:#536974}.depth-guide svg,.depth-detail svg{width:100%;max-height:230px}.depth-guide input{max-width:100px}.depth-presets{flex-wrap:wrap}.depth-detail{background:#f4f8fa;border-radius:12px;padding:12px}.depth-detail p{font-size:12px;color:#536974}html[lang=en] .brand,html[lang=zh-Hans] .brand{font-size:15px}@media(max-width:600px){header{gap:7px}.language-label select{width:62px;min-height:36px}.brand{max-width:235px}.depth-presets button{flex:1 0 28%}}

/* Six compact depth pictures keep reporting quick on small phones. */
.depth-quick{margin:18px 0}.depth-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}.depth-cards .depth-choice{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:8px 3px;border:1px solid #d6e2e9;border-radius:12px;background:#fff;line-height:1.3}.depth-choice svg{display:block;width:62px;height:69px;margin-bottom:4px}.depth-choice b{font-size:13px;overflow-wrap:anywhere}.depth-choice small{font-size:12px;color:var(--muted);margin-top:4px}.depth-cards .depth-choice.selected{border-color:#006e80;background:#e8f5f5;box-shadow:inset 0 0 0 1px #006e80}.depth-choice.selected:after{content:"✓";position:absolute;right:5px;top:3px;color:#006e80;font-weight:700}.depth-quick>p{font-size:12px;line-height:1.5}.depth-quick>label{margin-top:12px}.depth-scale-note{color:var(--muted)}

/* Sample focuses on street colours; markers can be restored with one tap. */
.legend>small{flex-basis:100%;font-size:11px;line-height:1.5;color:#536575}.sample-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}.sample-actions a,.sample-actions button{margin:0;padding:5px 8px;border:1px solid #d8bb72;border-radius:7px;font-size:12px;min-height:32px;background:#fff8e5;text-decoration:none}.sample-actions a.active{background:#795818;color:white;border-color:#795818}.sample-pins-label{display:inline-flex;align-items:center;gap:5px;margin:6px 12px 0 0;font-size:12px}.sample-pins-label input{width:auto;min-height:0;margin:0}.sample-page .map-note{top:270px}@media(max-width:680px){.sample-page .legend{bottom:92px;left:12px;right:12px;gap:6px;padding:8px 10px}.sample-page .map-note{top:248px}.sample-notice{background:#fff3cbf2}}

/* QA: keep evidence text legible and provide comfortable touch/focus targets. */
.field-error{display:block;margin:5px 0 0;color:#a13027;font-size:13px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
[aria-invalid=true]{border-color:#a13027!important;box-shadow:0 0 0 1px #a13027}
input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #058baf;outline-offset:2px}
.photo-consent{flex-wrap:wrap}.photo-consent .field-error{flex-basis:100%}
#age{min-height:44px;max-width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;color:#536575}
.list-head{flex-wrap:wrap;gap:8px}.language-label select{min-height:44px}
.road-number{color:var(--severity-ink,#fff)}.road-summary b{color:var(--severity-text,var(--ink))}
.report-thumb{opacity:1}.flood-marker .marker{box-shadow:0 3px 12px #1f3c4a44}
.flood-marker .marker:before{content:'';position:absolute;inset:-5px;border:2px solid #182f40;border-radius:15px;opacity:var(--age-opacity,1);pointer-events:none}
.legend{display:block;max-width:calc(100% - 50px)}
.legend>summary{cursor:pointer;min-height:44px;padding:8px 0;font-size:12px;font-weight:700}
.legend-items{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.legend:not([open]) .legend-items{display:none}
.legend-items>small{flex-basis:100%;font-size:11px;line-height:1.5;color:#536575}
@media(max-width:680px){.legend{max-width:none}.language-label select{min-height:44px}}
/* Short landscape screens reserve the upper area for location/route controls. */
@media(max-height:520px){
 .map-bottom{display:none}
 .legend,.sample-page .legend{bottom:24px;left:12px;right:12px;max-width:none;max-height:min(100px,30%);overflow:auto;padding:4px 10px}
 .legend>summary{min-height:44px}
 .map-title{top:12px;left:12px;padding:8px 10px;max-width:calc(100% - 180px);font-size:12px}
 .locate{top:12px;right:12px}
 .map-note,.sample-page .map-note{top:116px;left:12px;right:12px;max-height:40px;overflow:auto}
 .route-pick-status,.report-pick-status{top:116px;left:12px;right:12px}
 .sample-notice{top:68px;left:12px;right:12px;max-height:85px;overflow:auto;padding:6px 10px}
}
.admin-stats{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:12px 0;position:relative;background:#fcfcfb}.admin-stats[hidden]{display:none}.st-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.st-head h2{margin:0 auto 0 0;font-size:18px}.st-head button,.st-head select{padding:4px 12px;border-radius:9px;background:#eef3f5;border:1px solid var(--line);font:inherit}.st-note{font-size:13px;margin:6px 0}.st-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:10px 0}.st-tile{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;display:flex;flex-direction:column}.st-tile span{font-size:13px;color:#52514e}.st-tile b{font-size:26px;line-height:1.2;color:#0b0b0b;font-variant-numeric:tabular-nums}.st-tile small{font-size:12px;color:#52514e}.st-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:10px}.st-card{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;min-width:0}.st-card h3{margin:0;font-size:15px}.st-chart{width:100%;height:auto;display:block;touch-action:pan-y}.st-bar{fill:#2a78d6}.st-hit{fill:transparent;cursor:default}.st-hit.on{fill:rgba(42,120,214,.08)}.st-grid{stroke:#e8e7e3;stroke-width:1}.st-base{stroke:#9a9993;stroke-width:1}.st-gap{stroke:#c9c8c2;stroke-width:2;stroke-dasharray:2 2}.st-axis{font-size:11px;fill:#52514e;font-variant-numeric:tabular-nums}.st-split{display:flex;gap:2px;height:14px;margin:12px 0 6px}.st-seg{border-radius:4px;min-width:4px}.st-c1{background:#2a78d6}.st-c2{background:#eb6834}.st-c3{background:#1baf7a}.st-legend{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:14px}.st-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px}.st-table{margin-top:10px}.st-table table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.st-table th,.st-table td{text-align:left;padding:4px 6px;border-bottom:1px solid #eee}.st-table{overflow-x:auto}.st-tip{position:absolute;pointer-events:none;background:#0b0b0b;color:#fff;font-size:12px;padding:4px 8px;border-radius:6px;white-space:nowrap;z-index:2}.st-tip[hidden]{display:none}
