@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700;800&display=swap');
:root{--navy:#12365a;--blue:#2879e8;--blue-soft:#eaf3ff;--ink:#182b45;--muted:#6f8197;--line:#e4ebf3;--bg:#f4f7fb;--red:#e5484d;--orange:#ed8a22;--green:#16865b;--shadow:0 10px 30px rgba(22,52,87,.07);--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'Sarabun',Tahoma,Arial,sans-serif;font-size:16px;line-height:1.5}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%}
.site-header{min-height:78px;padding:12px clamp(14px,3vw,42px);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;z-index:10}.brand{display:flex;align-items:center;gap:11px;color:var(--navy);min-width:245px}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#2879e8,#12365a);color:#fff;font-size:32px;font-weight:800;line-height:1;box-shadow:0 5px 14px #2879e82b}.brand strong{display:block;font-size:18px;line-height:1.15;letter-spacing:.15px}.brand em{font-style:normal;color:var(--blue)}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.main-nav{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.main-nav>a,.nav-logout{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:10px;color:#314963;font-size:14px;font-weight:600;white-space:nowrap}.main-nav>a:hover,.nav-logout:hover{background:#f0f5fb;text-decoration:none}.main-nav>a.active{background:var(--blue-soft);color:var(--blue)}.main-nav .nav-join{background:var(--blue);color:#fff}.nav-user{font-size:13px;color:var(--muted);padding:0 5px}.inline-form{display:inline-flex;margin:0}.nav-logout{border:0;background:transparent}.page-shell{max-width:1680px;margin:0 auto;padding:26px clamp(14px,2.5vw,36px) 42px;min-height:65vh}.site-footer{padding:22px clamp(16px,3vw,42px);background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px;color:var(--muted);font-size:12px}.site-footer strong,.site-footer span{display:block}.site-footer strong{color:var(--navy);font-size:14px}.site-footer p{max-width:650px;margin:0;text-align:right}
.welcome-row,.page-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.welcome-row h1,.page-title-row h1{font-size:clamp(25px,3vw,36px);letter-spacing:-.4px;line-height:1.25;margin:6px 0}.welcome-row h1 span{color:var(--blue)}.welcome-row p,.page-title-row p{margin:5px 0 0}.eyebrow{font-size:12px;font-weight:700;color:var(--blue);letter-spacing:.35px;text-transform:uppercase;display:flex;align-items:center;gap:8px}.live-dot{width:8px;height:8px;border-radius:100%;background:#1bb77a;box-shadow:0 0 0 4px #1bb77a20}.muted{color:var(--muted)}
.button{border:1px solid transparent;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;font-weight:700;font-size:14px;text-decoration:none;line-height:1.3;transition:background .15s,transform .15s;white-space:normal}.button:hover{text-decoration:none;transform:translateY(-1px)}.button-primary{background:var(--blue);color:#fff;box-shadow:0 5px 12px #2879e822}.button-primary:hover{background:#1766cf;color:#fff}.button-ghost{background:#fff;border-color:var(--line);color:#38516d}.button-ghost:hover{background:#f4f8fc}.button-soft{background:#edf5ff;color:#1e67c9}.button-danger-outline{background:#fff;border-color:#f3c8c9;color:#c52c32}.button-danger-outline:hover{background:#fff1f1}.button-large{padding:13px 19px;min-height:48px}.button-small{padding:7px 10px;font-size:12px;min-height:32px}.button-full{width:100%}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:flex;align-items:center;gap:13px;box-shadow:0 3px 12px #143c6510;min-width:0}.stat-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:15px;font-size:28px;font-weight:700;flex-shrink:0}.icon-blue{background:#eaf3ff;color:var(--blue)}.icon-red{background:#ffeded;color:var(--red)}.icon-orange{background:#fff2e3;color:var(--orange)}.icon-green{background:#e6f8f0;color:var(--green)}.stat-label{display:block;font-size:13px;color:#5d7188;font-weight:600}.stat-card strong{display:block;font-size:29px;line-height:1.15;color:#142c49}.stat-card small{display:block;color:#94a1b2;font-size:11px;margin-top:3px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(320px,.85fr);gap:18px;align-items:stretch}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.map-panel,.reports-panel{overflow:hidden}.panel-heading{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px}.panel-heading h2{font-size:18px;margin:0;color:var(--navy)}.panel-heading p{font-size:12px;margin:3px 0 0}.map-heading{align-items:flex-start;flex-wrap:wrap}.map-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.map-tools select{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;max-width:155px;color:#435873;font-size:12px;min-height:36px}.flood-map{height:clamp(410px,55vw,680px);width:100%;background:#dce9e6;position:relative;z-index:1}.map-legend{display:flex;align-items:center;flex-wrap:wrap;gap:13px;padding:13px 18px 4px;font-size:12px;color:#62748b}.legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:5px}.legend-dot.red{background:var(--red)}.legend-dot.orange{background:var(--orange)}.legend-dot.yellow{background:#e6b817}.legend-dot.blue{background:var(--blue)}.map-note{margin:7px 18px 16px;font-size:11px;color:#8897a8}.reports-panel{display:flex;flex-direction:column;min-height:550px}.count-pill{min-width:32px;padding:4px 10px;text-align:center;border-radius:20px;background:#edf4fc;color:var(--blue);font-weight:800;font-size:12px}.search-box{display:flex;align-items:center;gap:8px;margin:0 16px 12px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#f9fbfe;color:#6e8299}.search-box span{font-size:24px}.search-box input{border:0;outline:0;background:transparent;width:100%;min-width:0;padding:11px 0;font-size:13px}.report-list{padding:0 12px;display:flex;flex-direction:column;gap:9px;overflow:auto;max-height:640px}.report-item{display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;border:1px solid #e9eef5;border-radius:13px;padding:10px;background:#fff;transition:border-color .15s,background .15s}.report-item:hover{border-color:#b8d5fa;background:#fbfdff}.report-photo{width:70px;height:76px;border-radius:9px;object-fit:cover;background:#edf2f8}.report-photo-placeholder{display:grid;place-items:center;font-size:26px;color:#6d91b6;background:#eaf3ff}.report-item h3{font-size:14px;line-height:1.35;margin:5px 0 4px;color:#203853}.report-item p{font-size:12px;line-height:1.4;color:#71839a;margin:3px 0;overflow-wrap:anywhere}.report-item .report-meta{font-size:11px;color:#9aa7b7}.report-card-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.type-pill,.status-pill{display:inline-flex;align-items:center;border-radius:6px;padding:3px 7px;font-size:10px;font-weight:700;line-height:1.35}.type-pill{background:#edf4fc;color:#3f5c7a}.status-pending{background:#fff3d6;color:#946200}.status-confirmed{background:#e7f1ff;color:#1c65c5}.status-resolved{background:#e3f7ee;color:#16744e}.status-rejected{background:#ffe9e9;color:#b4232b}.status-stale{background:#eef0f4;color:#667085}.report-item .item-open{display:inline-block;margin-top:4px;font-size:11px;font-weight:700;color:var(--blue);background:none;border:0;padding:0}.list-footer{border-top:1px solid var(--line);padding:13px 18px;margin-top:auto;font-size:12px;font-weight:700}.empty-state{padding:28px 15px;text-align:center;color:#8a99aa;font-size:13px}.safety-banner{display:flex;align-items:flex-start;gap:13px;padding:17px 20px;background:#fff9e9;border:1px solid #f4e4b9;border-radius:15px;margin-top:18px}.safety-icon{width:31px;height:31px;display:grid;place-items:center;background:#f7d76d;color:#684d00;font-size:20px;font-weight:800;border-radius:10px;flex-shrink:0}.safety-banner strong{color:#725600}.safety-banner p{margin:3px 0 0;color:#87764a;font-size:13px}
.flash{padding:12px 15px;border-radius:10px;margin:0 0 15px;font-size:14px}.flash-success{background:#e7f8ef;border:1px solid #c5eed7;color:#176c47}.flash-error{background:#fff0f0;border:1px solid #f6cccc;color:#b4232b}.auth-wrap{max-width:500px;margin:25px auto}.auth-card{padding:clamp(22px,4vw,38px)}.auth-symbol{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-size:31px;font-weight:700}.auth-card h1{font-size:27px;margin:14px 0 4px;color:var(--navy)}.auth-card>p{margin:0 0 23px;font-size:14px}.form-stack{display:flex;flex-direction:column;gap:15px}.form-stack label,.report-form label{display:flex;flex-direction:column;gap:6px;color:#314861;font-weight:600;font-size:13px;min-width:0}.form-stack input,.report-form input:not([type=file]),.report-form select,.report-form textarea{width:100%;min-height:45px;border:1px solid #dce5ef;border-radius:10px;padding:10px 12px;color:#203750;background:#fff;outline:0}.form-stack input:focus,.report-form input:focus,.report-form select:focus,.report-form textarea:focus{border-color:#6aa4f2;box-shadow:0 0 0 3px #2879e817}.form-stack small,.field-help{font-size:11px;font-weight:400;color:#8796a8}.required{color:#e5484d}.auth-bottom{text-align:center;font-size:13px;margin:20px 0 0!important;color:#6f8197}.auth-bottom a{font-weight:700}
.page-title-row{align-items:flex-end}.report-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.report-form{padding:clamp(18px,3vw,30px)}.form-section{padding-bottom:25px;margin-bottom:24px;border-bottom:1px solid var(--line)}.form-section h2{font-size:18px;color:var(--navy);margin:0 0 18px;display:flex;align-items:center;gap:10px}.step-number{width:29px;height:29px;display:inline-grid;place-items:center;border-radius:9px;background:var(--blue-soft);color:var(--blue);font-size:14px}.form-section>label,.form-section>.two-col,.form-section>.vehicle-grid{margin-bottom:14px}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gps-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.gps-actions .muted{font-size:12px}.report-map{height:330px;width:100%;border-radius:12px;border:1px solid var(--line);overflow:hidden;background:#e4edf2;margin-bottom:10px}.field-help{display:block;line-height:1.5;margin:8px 0 0}.vehicle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upload-box{display:flex!important;align-items:center;justify-content:center;min-height:130px;border:1px dashed #a8bfd8;border-radius:13px;background:#f8fbff;padding:20px;text-align:center;cursor:pointer;gap:6px!important}.upload-box input{max-width:100%;font-size:12px}.upload-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:11px;background:#e4f0ff;color:var(--blue);font-size:25px}.upload-box small{font-size:11px;color:var(--muted);font-weight:400}.form-submit-row{display:flex;align-items:center;justify-content:flex-end;gap:10px}.report-aside{display:flex;flex-direction:column;gap:14px}.aside-card{padding:20px}.aside-icon{width:38px;height:38px;border-radius:12px;background:#e7f7ef;color:var(--green);display:grid;place-items:center;font-size:22px;font-weight:800}.aside-card h3{margin:12px 0 8px;font-size:16px;color:var(--navy)}.aside-card ul{padding-left:19px;margin:0;color:#667b91;font-size:12px}.aside-card li{margin:8px 0}.aside-card p{font-size:12px;color:#697d92;margin:0}.aside-warning{background:#fffaf0;border-color:#f3e5c4}.aside-warning .aside-icon{background:#ffefc7;color:#8a6400}.existing-photo{display:flex;gap:12px;align-items:center;margin-bottom:12px;font-size:12px;color:var(--muted)}.existing-photo img{width:95px;height:75px;object-fit:cover;border-radius:9px}
.my-report-list{display:flex;flex-direction:column;gap:14px}.my-report-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:18px;padding:16px}.report-thumb{width:150px;height:150px;object-fit:cover;border-radius:12px;background:#eaf1f8}.thumb-placeholder{display:grid;place-items:center;color:#6793c2;font-size:42px}.my-report-content h2{font-size:18px;margin:8px 0 4px}.my-report-content p{font-size:13px;margin:4px 0 9px}.private-note{font-size:11px;color:#8b6a12}.card-actions,.admin-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.card-actions form,.admin-actions form{display:inline-flex;margin:0}.empty-large{text-align:center;padding:50px 20px}.empty-illustration{font-size:46px;color:#6fa7e8}.empty-large h2{margin:6px 0;color:var(--navy)}.empty-large p{margin:0 0 20px}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.admin-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 17px;color:#657991}.admin-stat:hover,.admin-stat.selected{border-color:#8ab7f4;background:#f5f9ff;text-decoration:none}.admin-stat span{font-size:13px}.admin-stat strong{font-size:25px;color:var(--navy)}.admin-table-panel{overflow:hidden}.admin-report-list{padding:0 18px 18px}.admin-report-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:15px;padding:18px 0;border-top:1px solid var(--line)}.admin-thumb{width:90px;height:90px;border-radius:10px;object-fit:cover;background:#eaf1f8}.admin-report-info h3{font-size:16px;margin:7px 0 4px;color:var(--navy)}.admin-report-info p{font-size:12px;color:#6d8097;margin:3px 0}.admin-description{max-width:900px}.text-link{font-size:13px;font-weight:700}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.installer-body{background:linear-gradient(150deg,#edf5ff,#f7f9fc 55%,#e8f4f2);min-height:100vh}.installer-wrap{max-width:760px;margin:0 auto;padding:28px 15px 40px}.installer-brand{display:flex;align-items:center;gap:12px;margin:0 0 20px;color:var(--navy)}.installer-brand strong{font-size:20px;display:block}.installer-brand em{font-style:normal;color:var(--blue)}.installer-brand small{display:block;color:var(--muted);font-size:12px}.installer-card{padding:clamp(22px,4vw,36px)}.installer-card h1{margin:5px 0;color:var(--navy);font-size:28px}.installer-card>p{color:var(--muted);font-size:14px}.installer-section-title{font-size:16px;color:var(--navy);border-bottom:1px solid var(--line);padding-bottom:8px;margin:13px 0 0}.notice{background:#f0f7ff;border:1px solid #d5e8ff;border-radius:11px;padding:13px;color:#3e5f82;font-size:12px}.notice p{margin:4px 0 0}.notice-warning{background:#fff8e6;border-color:#f3e1ad;color:#725600;margin:18px 0}.notice ul{padding-left:20px}.success-mark{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#e1f8ec;color:#128152;font-size:30px;font-weight:800}.installer-foot{text-align:center;color:#91a0b2;font-size:12px;margin-top:16px}
@media(max-width:1150px){.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(300px,.9fr)}.stats-grid{gap:10px}.stat-card{padding:14px;gap:10px}.stat-icon{width:41px;height:41px}.map-tools{width:100%}.map-tools select{max-width:none;flex:1}.report-layout{grid-template-columns:minmax(0,1fr) 250px}}
@media(max-width:900px){.site-header{align-items:flex-start;flex-direction:column;gap:10px;padding:12px 16px}.main-nav{width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.main-nav>a,.nav-logout{padding:8px 10px}.nav-user{display:none}.page-shell{padding-top:20px}.dashboard-grid{grid-template-columns:1fr}.flood-map{height:58vh;min-height:390px}.reports-panel{min-height:0}.report-list{max-height:none;overflow:visible}.report-layout{grid-template-columns:1fr}.report-aside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card strong{font-size:25px}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer{align-items:flex-start;flex-direction:column}.site-footer p{text-align:left}}
@media(max-width:600px){body{font-size:15px}.brand{min-width:0}.brand-mark{width:42px;height:42px;font-size:29px}.brand strong{font-size:16px}.brand small{font-size:10px}.main-nav{gap:3px}.main-nav>a,.nav-logout{font-size:12px;padding:8px}.welcome-row,.page-title-row{align-items:flex-start;flex-direction:column;gap:13px}.welcome-row .button{width:100%}.welcome-row h1,.page-title-row h1{font-size:26px}.stats-grid{gap:8px}.stat-card{padding:12px;align-items:flex-start;gap:8px}.stat-icon{width:35px;height:35px;border-radius:11px;font-size:22px}.stat-label{font-size:11px}.stat-card strong{font-size:23px}.stat-card small{font-size:10px}.panel-heading{padding:15px}.map-heading{display:block}.map-tools{margin-top:12px;display:grid;grid-template-columns:1fr 1fr}.map-tools select{width:100%;font-size:12px}.map-tools .button{grid-column:1/-1}.flood-map{height:55vh;min-height:360px}.map-legend{gap:9px;padding:12px 13px 3px;font-size:10px}.map-note{margin:8px 13px 13px;font-size:10px}.report-item{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:9px}.report-photo{width:64px;height:72px}.report-item h3{font-size:13px}.report-item p{font-size:11px}.safety-banner{padding:14px;gap:10px}.safety-banner p{font-size:12px}.two-col{grid-template-columns:1fr;gap:12px}.vehicle-grid{grid-template-columns:1fr}.report-map{height:300px}.gps-actions{align-items:flex-start;flex-direction:column}.report-form{padding:17px}.form-section h2{font-size:16px}.form-submit-row{flex-direction:column-reverse}.form-submit-row .button{width:100%}.report-aside{grid-template-columns:1fr}.my-report-card{grid-template-columns:82px minmax(0,1fr);gap:12px;padding:12px}.report-thumb{width:82px;height:95px}.my-report-content h2{font-size:15px}.my-report-content p{font-size:11px}.card-actions .button{font-size:11px;padding:7px}.admin-report-row{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:14px 0}.admin-thumb{width:64px;height:70px}.admin-report-info h3{font-size:14px}.admin-actions .button{font-size:10px;padding:6px 7px}.admin-stats{gap:8px}.admin-stat{padding:11px}.admin-stat span{font-size:11px}.admin-stat strong{font-size:22px}.site-footer{padding:18px 15px}.installer-brand strong{font-size:16px}.installer-card h1{font-size:24px}}

/* v1.1 additions */
.button-line{background:#06c755;color:#fff;border-color:#06c755}.button-line:hover{background:#05b34c;color:#fff}.line-logo{display:inline-grid;place-items:center;background:#fff;color:#06c755;font-weight:800;font-size:10px;border-radius:6px;padding:3px 5px}.auth-divider{display:flex;align-items:center;gap:12px;color:#98a5b4;font-size:12px;margin:18px 0}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.line-hint{display:block;text-align:center;margin-top:15px}.report-bg-pending{background:#fffaf0;border-color:#f3e4bd}.report-bg-confirmed{background:#f0fbf5;border-color:#c7ecd7}.report-bg-resolved{background:#f4f8fc;border-color:#e0e8f0}.report-bg-pending .status-pill{background:#ffe9ac;color:#805900}.report-bg-confirmed .status-pill{background:#c9f0da;color:#116a45}.confirm-button{display:inline-flex;align-items:center;gap:5px;border:1px solid #b9d7fa;background:#eef6ff;color:#155fb8;border-radius:7px;padding:5px 8px;margin-top:5px;font-size:11px;font-weight:700;cursor:pointer}.confirm-button:hover{background:#dcecff;text-decoration:none}.confirm-button:disabled{opacity:.65;cursor:wait}.confirm-count{display:inline-block;margin-top:6px;font-size:11px;color:#3c7a59;font-weight:700}.vehicle-summary{font-size:10px!important;color:#526b85!important;line-height:1.45!important}.vehicle-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.upload-camera{margin-top:10px}.upload-status{display:flex;align-items:center;gap:9px;padding:10px 12px;margin-top:10px;background:#f3f6fa;border:1px solid #e3eaf2;border-radius:9px;font-size:12px;color:#63778e}.upload-status-wait{background:#fff7df;border-color:#f2dfa1;color:#856000}.upload-status-uploading{background:#eaf3ff;border-color:#bed8ff;color:#155fb8}.upload-state-dot{width:9px;height:9px;border-radius:50%;background:#9aaabd;flex-shrink:0}.upload-status-wait .upload-state-dot{background:#e4ad18}.upload-status-uploading .upload-state-dot{background:#2879e8;animation:pulse-dot 1s infinite alternate}.photo-preview{margin-top:10px}.photo-preview img{max-width:190px;max-height:160px;object-fit:contain;border-radius:10px;border:1px solid var(--line);background:#fff}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-card{padding:20px;display:flex;flex-direction:column;gap:14px}.settings-card-heading{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.settings-card-heading>div{flex:1;min-width:150px}.settings-card-heading h2{font-size:17px;margin:0;color:var(--navy)}.settings-card-heading p{font-size:12px;color:var(--muted);margin:3px 0 0}.settings-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;font-size:14px;font-weight:800;flex-shrink:0}.settings-card label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#304760}.settings-card input:not([type=checkbox]),.settings-card select{width:100%;min-height:43px;border:1px solid #dce5ef;border-radius:9px;padding:9px 11px;background:#fff;color:#203750}.settings-card .check-line{display:flex;flex-direction:row;align-items:center;font-size:12px;font-weight:500;color:#a12b31}.settings-card .check-line input{width:16px;height:16px}.settings-card code{overflow-wrap:anywhere}.settings-submit{grid-column:1/-1;display:flex;justify-content:flex-end}.page-actions{display:flex;gap:7px;flex-wrap:wrap}.upgrade-card{padding:24px}.upgrade-item{display:flex;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}.upgrade-check{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#e4f7ed;color:#138153;font-weight:800;flex-shrink:0}.upgrade-card .notice{margin:18px 0}
@keyframes pulse-dot{from{opacity:.45;transform:scale(.85)}to{opacity:1;transform:scale(1.1)}}
@media(max-width:900px){.settings-grid{grid-template-columns:1fr}.settings-submit{grid-column:auto}.vehicle-grid-three{grid-template-columns:1fr}.page-actions{justify-content:flex-start}}
@media(max-width:600px){.settings-card{padding:16px}.settings-card-heading .status-pill{margin-left:54px}.upload-box{padding:15px}.upload-box input{font-size:11px}.confirm-button{font-size:10px}.vehicle-summary{font-size:10px!important}.page-actions .button{font-size:11px;padding:8px}}

/* v1.2: community road-status updates */
.update-status-link{background:#eef8f3;border-color:#c9ead9;color:#18724d}
.update-status-link:hover{background:#dff4e9;color:#125c3d}
.update-confirm-button{background:#fff6dc;border-color:#f1dfa6;color:#805900}
.update-confirm-button:hover{background:#ffedb9}
.pending-update-inline{margin-top:8px;padding:9px 10px;border:1px solid #f1dfab;border-radius:9px;background:#fff9e8;color:#775700;font-size:11px;line-height:1.55}
.pending-update-inline strong{font-size:11px}
.pending-update-inline small{color:#8e7b4a}
.status-update-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr);gap:18px;align-items:start}
.status-update-form-panel{padding:clamp(18px,3vw,28px)}
.current-report-summary{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--line)}
.current-report-summary h2{font-size:20px;color:var(--navy);margin:9px 0 5px}
.current-report-summary p{font-size:12px;margin:5px 0}
.pending-update-box{border:1px solid #f0dfa8;background:#fff9e8;border-radius:13px;padding:14px;margin:0 0 20px;color:#765700}
.pending-update-box>strong{display:block;margin-top:8px;font-size:15px}
.pending-update-box p{font-size:12px;margin:6px 0}
.pending-update-box .confirm-update-form{margin-top:6px}
.status-update-form{gap:14px}
.status-update-form>h2{font-size:18px;color:var(--navy);margin:0 0 3px}
.status-history-panel{overflow:hidden}
.status-history-list{padding:0 17px 12px}
.status-history-item{padding:14px 0;border-top:1px solid var(--line)}
.status-history-item strong{display:block;color:var(--navy);font-size:13px;margin-top:7px}
.status-history-item p{font-size:11px;color:#71839a;margin:5px 0;line-height:1.55;overflow-wrap:anywhere}
.status-history-item .confirm-count{margin-top:0}
@media(max-width:900px){.status-update-layout{grid-template-columns:1fr}}
@media(max-width:600px){.pending-update-inline{font-size:10px}.status-update-form-panel{padding:16px}.current-report-summary h2{font-size:17px}.status-update-form>h2{font-size:16px}.status-history-list{padding:0 14px 10px}}
.nearby-suggestion{padding:12px 14px;margin:0 0 13px;border:1px solid #f0d996;border-radius:11px;background:#fff9e8;color:#765700;font-size:12px;line-height:1.55}
.nearby-suggestion p{margin:4px 0 6px}
.nearby-suggestion ul{margin:5px 0 0;padding-left:18px}
.nearby-suggestion li{margin:6px 0;overflow-wrap:anywhere}
.nearby-suggestion a{font-weight:800;text-decoration:underline;white-space:nowrap}
/* Readability and touch-target adjustments for a broad age range */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #80b7ff;outline-offset:2px}
@media(max-width:600px){
  .main-nav>a,.nav-logout{min-height:42px}
  .report-item p{font-size:12px}
  .report-item .report-meta{font-size:12px}
  .type-pill,.status-pill{font-size:11px;padding:4px 8px}
  .confirm-button{font-size:12px;min-height:36px;padding:8px 10px}
  .map-legend{font-size:12px}
  .field-help{font-size:12px}
  .form-stack label,.report-form label{font-size:14px}
  .report-item h3{font-size:14px}
}


/* v1.3 — clearer road-update workflow, photo zoom, location tools, contacts and donation */
.map-tools #locateMe{white-space:nowrap}
.report-photo-link{display:block;align-self:start;border-radius:12px;overflow:hidden;line-height:0;cursor:zoom-in}
.report-photo-link:hover{opacity:.92}
.report-photo{cursor:zoom-in}
.status-page-title{margin-bottom:22px}
.status-update-layout-v13{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:22px}
.status-update-main-card{padding:clamp(18px,2.8vw,32px);overflow:hidden}
.current-report-summary-v13{background:linear-gradient(135deg,#f6faff 0%,#fff 75%);border:1px solid #e1ebf7;border-radius:17px;padding:18px;margin-bottom:24px}
.current-report-summary-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.report-id-badge{font-size:11px;color:#60758e;background:#edf3fa;border-radius:999px;padding:5px 10px;font-weight:800}
.current-report-summary-v13 h2{font-size:24px;margin:14px 0 2px;color:var(--navy)}
.current-report-summary-v13 .current-location{font-size:14px;color:#637a94;margin:0 0 14px}
.current-road-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #e4ebf4;border-radius:11px;padding:11px 13px;font-size:12px;color:#63758a}
.current-road-status strong{color:var(--navy);font-size:13px;margin-left:auto}
.status-road-dot{width:10px;height:10px;border-radius:50%;background:#d7a324;flex:none}
.status-road-dot.is-danger{background:#e5484d;box-shadow:0 0 0 4px #ffeded}
.status-road-dot.is-safe{background:#16865b;box-shadow:0 0 0 4px #e4f7ed}
.status-road-dot.is-warning{background:#d7a324;box-shadow:0 0 0 4px #fff6da}
.status-report-date{font-size:12px;margin:10px 0 0}
.status-current-photo{display:flex;align-items:center;gap:12px;margin-top:14px;padding:9px;background:#fff;border:1px solid #e1e9f3;border-radius:12px;color:#526d89;font-size:12px;font-weight:700}
.status-current-photo img{width:92px;height:68px;object-fit:cover;border-radius:8px;cursor:zoom-in}
.status-current-photo:hover{text-decoration:none;border-color:#9abbe5}
.pending-update-box-v13{border-radius:15px;padding:16px;margin-bottom:22px}
.pending-update-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pending-update-title{font-size:18px!important;line-height:1.4;margin:13px 0 8px!important}
.pending-update-meta{color:#8a7440;font-size:11px!important;margin-top:10px!important}
.status-update-form-v13{gap:17px}
.form-section-heading{display:flex;align-items:flex-start;gap:11px;margin:4px 0 0}
.form-section-heading h2{font-size:18px;color:var(--navy);margin:1px 0 3px}
.form-section-heading p{font-size:12px;color:#71839a;margin:0;line-height:1.5}
.compact-heading{margin-top:5px}
.status-update-form-v13 label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:750;color:#29435f;min-width:0}
.status-update-form-v13 input:not([type=file]),.status-update-form-v13 select,.status-update-form-v13 textarea{width:100%;min-height:46px;border:1px solid #d8e3f0;border-radius:11px;padding:11px 13px;background:#fbfdff;color:#193653;font:inherit;font-weight:500;outline:none;transition:border-color .15s,box-shadow .15s}
.status-update-form-v13 textarea{resize:vertical;min-height:90px}
.status-update-form-v13 input:focus,.status-update-form-v13 select:focus,.status-update-form-v13 textarea:focus{border-color:#5a9df2;box-shadow:0 0 0 3px #e5f1ff}
.status-update-form-v13 .two-col{gap:14px}
.status-water-grid{margin-top:0}
.status-vehicle-grid{gap:11px}
.status-vehicle-grid label{background:#f8fbff;border:1px solid #e1eaf5;border-radius:13px;padding:12px}
.status-vehicle-grid label small{font-weight:500;color:#7890aa;font-size:11px;margin-top:-4px}
.vehicle-label-icon{font-size:23px;line-height:1.2}
.status-vehicle-grid select{font-size:12px;padding:9px!important;min-height:42px!important}
.status-photo-section{border:1px solid #e0eaf5;background:#f8fbff;border-radius:15px;padding:16px;display:grid;gap:13px}
.status-photo-section .form-section-heading{margin:0}
.photo-upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.photo-pick-card{position:relative;display:flex!important;align-items:center;justify-content:center;text-align:center;gap:6px!important;min-height:132px;border:1.5px dashed #b6cce5;border-radius:13px;background:#fff;padding:15px!important;cursor:pointer;overflow:hidden}
.photo-pick-card:hover{border-color:#3c86e5;background:#f3f8ff}
.photo-pick-icon{font-size:28px;color:#2776d2;line-height:1}
.photo-pick-card strong{font-size:13px;color:#1c416b}
.photo-pick-card small{font-size:11px;color:#7a8fa7;font-weight:500}
.photo-pick-card input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.status-photo-section .upload-status{margin:0;border-radius:10px}
.status-photo-section .photo-preview{margin-top:0}
.status-community-note{margin:0}
.status-history-panel-v13{position:sticky;top:14px}
.status-history-panel-v13>.panel-heading{padding:20px 20px 14px}
.status-history-item-v13{padding:16px 20px;border-top:1px solid #e8eef6}
.status-history-item-v13 .status-photo-trigger,.pending-update-box-v13 .status-photo-trigger{margin-top:10px}
.status-photo-trigger{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;color:#376a9d;font-size:11px;font-weight:750}
.status-photo-trigger img{width:96px;height:72px;object-fit:cover;border-radius:9px;border:1px solid #d9e5f2;cursor:zoom-in}
.status-photo-trigger:hover{text-decoration:none}
.status-photo-trigger:hover img{border-color:#4a94ed}
.site-footer-v13{padding:22px clamp(16px,3vw,38px) 28px;display:grid;gap:18px;background:#fff;border-top:1px solid var(--line);margin-top:30px}
.footer-brand-row,.footer-contact-row{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.footer-brand-row>div{display:grid;gap:4px}
.footer-brand-row>div strong{font-size:14px;color:var(--navy)}
.footer-brand-row>div span,.footer-contact-row p{font-size:11px;color:#75879c;line-height:1.65;margin:0}
.footer-donate-link{font-size:12px;font-weight:800;padding:10px 13px;border:1px solid #f0d3d9;border-radius:10px;background:#fff7f8;color:#b43b55}
.footer-donate-link:hover{text-decoration:none;background:#ffedf0}
.footer-emergency{border:1px solid #f1d6b7;background:#fffaf3;border-radius:15px;padding:15px 16px}
.footer-emergency-heading{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-bottom:11px}
.footer-emergency-heading strong{font-size:13px;color:#7b451b}
.footer-emergency-heading span{font-size:11px;color:#9b795d}
.footer-emergency-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.footer-emergency-links>a{display:flex;align-items:center;gap:10px;min-width:0;border:1px solid #f1e3d3;border-radius:11px;background:#fff;padding:10px 12px;color:#263d55}
.footer-emergency-links>a:hover{text-decoration:none;border-color:#e6b98c}
.emergency-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#fff0df;color:#a95a16;font-size:17px;font-weight:900;flex:none}
.footer-emergency-links>a>span:last-child{display:grid;gap:2px}
.footer-emergency-links strong{font-size:18px;line-height:1.1;color:#183a5b}
.footer-emergency-links small{font-size:10px;line-height:1.4;color:#71849a}
.footer-line-contact{display:flex;align-items:center;gap:10px;border:1px solid #d9efe1;background:#f5fff8;border-radius:12px;padding:10px 13px;color:#20543a}
.footer-line-contact>span:nth-child(2){display:grid;gap:3px}
.footer-line-contact strong{font-size:12px}
.footer-line-contact small{font-size:11px;color:#4e8969}
.footer-line-contact>span:last-child{color:#579a74;margin-left:8px}
.footer-contact-row p{max-width:620px}
.photo-lightbox{position:fixed;inset:0;z-index:99999;background:rgba(7,17,31,.92);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:60px 22px 26px;gap:12px}
.photo-lightbox[hidden]{display:none}
.photo-lightbox img{display:block;max-width:min(96vw,1400px);max-height:calc(100vh - 115px);width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 20px 70px #0008}
.photo-lightbox p{color:#d6dfeb;font-size:12px;margin:0;text-align:center}
.photo-lightbox-close{position:absolute;top:15px;right:18px;width:46px;height:46px;border:1px solid #ffffff4d;border-radius:50%;background:#ffffff1a;color:#fff;font-size:32px;line-height:1;cursor:pointer}
body.photo-lightbox-open{overflow:hidden}
.donate-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:20px;align-items:start}
.donate-intro-card,.donate-method-card{padding:clamp(20px,3vw,32px)}
.donate-heart{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#fff0f3;color:#d64b6b;font-size:36px;margin-bottom:17px}
.donate-intro-card h2,.donate-method-card h2{font-size:21px;color:var(--navy);margin:0 0 12px}
.donate-intro-card>p{font-size:14px;line-height:1.8;color:#5f748b;margin:0 0 22px}
.donate-uses{display:grid;gap:11px}
.donate-uses>div{display:grid;grid-template-columns:36px 1fr;gap:2px 11px;padding:13px;border:1px solid #e5edf6;border-radius:12px;background:#fbfdff}
.donate-uses>div span{grid-row:span 2;width:34px;height:34px;border-radius:10px;background:#eaf3ff;color:#286fc0;display:grid;place-items:center;font-weight:850;font-size:12px}
.donate-uses strong{font-size:13px;color:#244563}
.donate-uses small{font-size:11px;color:#7a8fa5}
.donate-disclaimer{border-top:1px solid #e5edf6;padding-top:15px!important;margin:20px 0 0!important;font-size:11px!important}
.donate-method-card{display:grid;gap:13px}
.donate-detail{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #e2eaf4;border-radius:11px;background:#f9fbfe}
.donate-detail span{font-size:12px;color:#71849a}
.donate-detail strong{font-size:13px;color:#173d62;text-align:right;overflow-wrap:anywhere}
.donate-qr-link{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid #e1eaf5;border-radius:13px;padding:15px;color:#5b7792;font-size:11px;font-weight:700}
.donate-qr-link:hover{text-decoration:none;border-color:#9cbce0}
.donate-qr{width:min(100%,260px);max-height:300px;object-fit:contain;cursor:zoom-in}
.donate-note{background:#f6faff;border-radius:11px;padding:12px 13px;color:#526c85;font-size:12px;line-height:1.7}
.donate-not-configured{padding:22px 15px;border:1px dashed #cbd9e8;border-radius:13px;text-align:center;background:#f9fbfe}
.donate-empty-icon{display:block;font-size:35px;color:#d15c77;margin-bottom:7px}
.donate-not-configured strong{font-size:15px;color:#294d70}
.donate-not-configured p{font-size:12px;line-height:1.7;color:#73869b;margin:7px auto 0;max-width:340px}
@media(max-width:900px){.status-update-layout-v13{grid-template-columns:1fr}.status-history-panel-v13{position:static}.donate-layout{grid-template-columns:1fr}}
@media(max-width:600px){
  .current-report-summary-v13 h2{font-size:21px}
  .current-road-status{align-items:flex-start}
  .current-road-status strong{width:100%;margin-left:18px}
  .photo-upload-actions{grid-template-columns:1fr 1fr;gap:8px}
  .photo-pick-card{padding:12px 8px!important;min-height:125px}
  .photo-pick-card strong{font-size:12px}
  .status-vehicle-grid{grid-template-columns:1fr}
  .status-vehicle-grid label{display:grid;grid-template-columns:34px 1fr;align-items:center;gap:4px 9px}
  .status-vehicle-grid .vehicle-label-icon{grid-row:span 2}
  .status-vehicle-grid label small{grid-column:2}
  .status-vehicle-grid select{grid-column:1/-1}
  .footer-emergency-links{grid-template-columns:1fr}
  .footer-emergency-links>a{padding:10px}
  .footer-contact-row{align-items:flex-start;flex-direction:column}
  .footer-brand-row{align-items:flex-start}
  .photo-lightbox{padding:65px 10px 22px}
  .donate-intro-card,.donate-method-card{padding:18px}
}

.legend-dot.user-dot{background:#1877f2;box-shadow:0 0 0 3px #dceaff}

/* v1.3.1 GPS location feedback */
.map-gps-status{display:block;flex-basis:100%;width:100%;font-size:12px;line-height:1.45;color:#526c85;padding:2px 3px;min-height:0}
.map-gps-status:empty{display:none}
.map-gps-status.is-error{color:#b42318}
.map-gps-status.is-success{color:#087443}
#locateMe:disabled{opacity:.7;cursor:wait}

@media(max-width:600px){.map-tools .map-gps-status{grid-column:1/-1}}


/* v1.3.2 — clearer report cards, useful map popups, full-width footer, map-first report form */
.report-item-v132{grid-template-columns:78px minmax(0,1fr);gap:12px;padding:12px;border-radius:15px;background:#fff!important;border-color:#e1eaf4!important;box-shadow:0 3px 12px rgba(24,58,91,.035)}
.report-item-v132:hover{background:#fbfdff!important;border-color:#a9cdf7!important;box-shadow:0 7px 18px rgba(24,58,91,.07)}
.report-card-photo-wrap{min-width:0}
.report-item-v132 .report-photo-link{width:78px;height:82px}
.report-item-v132 .report-photo{width:78px;height:82px;display:block;object-fit:cover}
.report-item-v132 .report-photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:78px;height:82px;border:1px solid #e1eaf4;border-radius:10px;font-size:22px}
.report-photo-placeholder small{font-size:10px;color:#8093a8}
.report-item-content{min-width:0}
.report-card-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.report-item-v132 .type-pill,.map-popup-card .type-pill{font-size:10px;padding:4px 7px;background:#eaf3ff;color:#2864a6}
.report-item-v132 .status-pill{font-size:10px;padding:4px 7px}
.report-item-v132 h3{font-size:15px;line-height:1.35;margin:3px 0;color:#173b5e}
.report-location-line{display:flex;align-items:center;gap:5px;color:#70839a;font-size:11px;line-height:1.4;margin:3px 0 7px}
.report-location-line span{color:#2879e8;font-size:16px}
.report-fact-row{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 7px}
.report-road-fact,.report-water-fact{display:inline-flex;align-items:center;border-radius:7px;padding:4px 7px;font-size:10px;font-weight:750;line-height:1.35}
.report-road-fact{background:#fff0ef;color:#b52c32}
.report-bg-confirmed .report-road-fact,.report-bg-resolved .report-road-fact{background:#e6f7ee;color:#176d4c}
.report-water-fact{background:#edf5ff;color:#2b6099}
.report-vehicle-row{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 5px}
.report-vehicle-row span{font-size:10px;line-height:1.35;padding:3px 6px;border-radius:6px;background:#f4f7fb;color:#5b7189}
.report-item-v132 .report-meta{font-size:10px;margin:4px 0 6px}
.report-card-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:7px}
.report-card-actions .confirm-button{margin-top:0;font-size:10px;padding:6px 8px;min-height:29px}
.report-card-actions .item-open{border:1px solid #c9dcf4;border-radius:8px;background:#fff;padding:6px 8px;font-size:10px;font-weight:800;color:#236dc2}
.report-card-actions .item-open:hover{background:#eef6ff}
.pending-update-compact{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0 0;padding:8px 9px;border-radius:10px;background:#fff8e7;border:1px solid #f0dda0}
.pending-update-copy{display:grid;gap:2px;min-width:0}
.pending-update-copy strong{font-size:11px;color:#795500}
.pending-update-copy span{font-size:10px;line-height:1.4;color:#745b23}
.pending-update-copy small{font-size:9px;color:#a28a57}
.pending-update-action{flex:none}
.pending-update-action .confirm-button{margin:0;white-space:nowrap;font-size:10px}
.report-item-v132 .confirm-count{font-size:10px;margin:0}
.map-popup-card{width:min(290px,72vw);font-family:'Sarabun',Arial,sans-serif;color:#1b3048;padding:2px 2px 4px}
.map-popup-photo{display:block;width:100%;height:130px;overflow:hidden;border-radius:10px;margin:0 0 9px;background:#f0f4f8}
.map-popup-photo img{display:block;width:100%;height:130px;object-fit:cover;cursor:zoom-in}
.map-popup-no-photo{height:56px;display:grid;place-items:center;background:#f5f8fc;border:1px dashed #d7e2ef;border-radius:10px;color:#7a8da3;font-size:11px;margin-bottom:9px}
.map-popup-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.map-popup-head .status-pill{font-size:10px;padding:4px 7px}
.map-popup-card h3{font-size:14px;line-height:1.35;margin:7px 0 3px;color:#153b60}
.map-popup-location{font-size:11px;color:#71839a;margin:0 0 7px}
.map-popup-facts{display:flex;flex-direction:column;gap:3px;padding:8px 9px;border-radius:9px;background:#f5f9fe;border:1px solid #e3edf8;font-size:11px}
.map-popup-facts strong{color:#b72e34}
.map-popup-facts span{color:#4f6a85}
.map-popup-vehicles{display:flex;flex-wrap:wrap;gap:4px;margin:7px 0}
.map-popup-vehicles span{font-size:10px;background:#f3f6fa;border-radius:6px;padding:4px 6px;color:#5b7189}
.map-popup-meta{font-size:10px;color:#8292a5;margin:5px 0}
.map-popup-update{display:grid;gap:3px;padding:8px 9px;border:1px solid #f0dfa8;border-radius:9px;background:#fff8e7;font-size:11px;margin:7px 0}
.map-popup-update-label{font-size:10px;font-weight:800;color:#946200}
.map-popup-update strong{color:#795500}
.map-popup-update small{font-size:10px;color:#9a8354}
.map-popup-actions{display:flex;gap:7px;margin-top:9px}
.map-popup-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:35px;padding:7px 10px;border-radius:9px;background:#2879e8;color:#fff;font-size:11px;font-weight:800;text-align:center}
.map-popup-cta:hover{background:#1766cf;color:#fff;text-decoration:none}
.leaflet-popup-content{margin:11px 13px!important}
.leaflet-popup-content-wrapper{border-radius:14px!important;box-shadow:0 10px 30px rgba(20,48,80,.2)!important}
.gm-style .gm-style-iw-c{padding:12px!important;border-radius:14px!important}
.gm-style .gm-style-iw-d{overflow:auto!important;max-height:390px!important}
.report-form .form-section:first-of-type{scroll-margin-top:15px}
.report-form .form-section:first-of-type .report-map{height:clamp(320px,42vw,470px)}
.report-form .form-section:first-of-type .gps-actions{align-items:center}
.report-form .form-section:first-of-type .gps-actions .muted{line-height:1.5}
.site-footer-v132{display:block!important;width:100%;max-width:none;margin:30px 0 0;padding:24px clamp(16px,3vw,42px) 18px;background:#fff;border-top:1px solid #dfe8f2;box-sizing:border-box}
.footer-inner-v132{width:100%;max-width:1680px;margin:0 auto;display:grid;gap:17px}
.site-footer-v132 .footer-brand-row{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.site-footer-v132 .footer-brand-row>div{display:grid;gap:4px}
.site-footer-v132 .footer-brand-row>div strong{font-size:16px;color:#163c61}
.site-footer-v132 .footer-brand-row>div span{font-size:12px;line-height:1.6;color:#71849a}
.footer-grid-v132{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:16px;align-items:stretch}
.site-footer-v132 .footer-emergency{min-width:0}
.footer-help-card{border:1px solid #dce8f4;border-radius:15px;padding:15px;background:#f9fbfe;display:flex;flex-direction:column;gap:9px;justify-content:center}
.footer-help-kicker{font-size:11px;color:#6d8197;font-weight:800;letter-spacing:.3px}
.site-footer-v132 .footer-line-contact{display:flex;align-items:center;gap:10px;border:1px solid #ccebd8;background:#f2fff7;border-radius:12px;padding:12px 13px;color:#20543a}
.site-footer-v132 .footer-line-contact>span:nth-child(2){display:grid;gap:3px}
.site-footer-v132 .footer-line-contact strong{font-size:13px;color:#20543a}
.site-footer-v132 .footer-line-contact small{font-size:12px;color:#4e8969}
.site-footer-v132 .footer-line-contact>span:last-child{margin-left:auto}
.footer-help-card p{font-size:11px;line-height:1.65;color:#71849a;margin:0}
.footer-bottom-v132{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #edf1f6;padding-top:12px;color:#8b9aac;font-size:10px;line-height:1.5}
@media(max-width:900px){.footer-grid-v132{grid-template-columns:1fr}.report-form .form-section:first-of-type .report-map{height:390px}}
@media(max-width:600px){
  .report-item-v132{grid-template-columns:64px minmax(0,1fr);gap:9px;padding:9px}
  .report-item-v132 .report-photo-link,.report-item-v132 .report-photo,.report-item-v132 .report-photo-placeholder{width:64px;height:72px}
  .report-item-v132 h3{font-size:14px}
  .report-vehicle-row{gap:4px}
  .report-vehicle-row span{font-size:9px;padding:3px 4px}
  .report-card-actions .confirm-button,.report-card-actions .item-open{font-size:10px;padding:6px}
  .pending-update-compact{align-items:flex-start;flex-direction:column}
  .pending-update-action{width:100%}
  .report-form .form-section:first-of-type .report-map{height:340px}
  .footer-grid-v132{grid-template-columns:minmax(0,1fr)}
  .site-footer-v132 .footer-emergency-links{grid-template-columns:1fr}
  .site-footer-v132 .footer-emergency-links>a{padding:10px}
  .site-footer-v132 .footer-brand-row{align-items:flex-start}
  .footer-bottom-v132{flex-direction:column}
}


/* v1.4: improved footer, compact homepage reports, and dedicated all reports page */
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.primary-btn,.secondary-btn,.ghost-btn,.header-link,.footer-link-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800;border-radius:12px;min-height:42px;padding:0 16px}
.primary-btn{background:#216ad4;color:#fff}
.primary-btn:hover{background:#1656b7;color:#fff}
.secondary-btn,.footer-link-btn{background:#f2f7fd;color:#1d5ca8;border:1px solid #d6e6f8}
.secondary-btn:hover,.footer-link-btn:hover{background:#e8f1fc;color:#164f93}
.footer-link-btn.accent{background:#fff4f5;color:#bc4860;border-color:#f0ccd5}
.header-link{color:#1e66bd;background:transparent;padding:0;min-height:auto}
.compact-report-list{display:grid;gap:10px}
.all-reports-list{display:grid;gap:12px}
.report-item-v14{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px 12px;border:1px solid #dde8f3;border-radius:16px;background:#fff;box-shadow:0 4px 12px rgba(25,53,83,.04)}
.report-item-v14:hover{border-color:#bed4ee;box-shadow:0 8px 18px rgba(25,53,83,.08)}
.report-item-v14 .report-photo-link,.report-item-v14 .report-photo,.report-item-v14 .report-photo-placeholder{display:block;width:64px;height:64px;border-radius:12px;object-fit:cover}
.report-item-v14 .report-photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f4f7fb;border:1px dashed #d5e1ee;font-size:20px;color:#7d90a6}
.report-item-v14 .report-photo-placeholder small{font-size:9px}
.report-item-v14 .report-card-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.report-item-v14 .type-pill,.report-item-v14 .status-pill,.mini-update-badge{font-size:10px;line-height:1;padding:5px 7px;border-radius:999px}
.report-item-v14 .type-pill{background:#ecf5ff;color:#2367ab}
.report-item-v14 .status-pill{background:#f3f5f8;color:#5f7389}
.report-item-v14 .status-pill.status-pending{background:#fff5d9;color:#8a6700}
.report-item-v14 .status-pill.status-confirmed{background:#e8f8ef;color:#1f7a55}
.report-item-v14 .status-pill.status-resolved{background:#eaf5ff;color:#2667af}
.mini-update-badge{background:#fff6df;color:#906100;font-weight:800}
.report-item-v14 h3{margin:0 0 5px;font-size:15px;line-height:1.35;color:#163b62}
.report-summary-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.report-item-v14 .report-road-fact,.report-item-v14 .report-water-fact{font-size:11px;line-height:1.25;padding:5px 8px;border-radius:9px;font-weight:800}
.report-item-v14 .report-road-fact{background:#fff1ef;color:#b0362f}
.report-item-v14 .report-water-fact{background:#eef5ff;color:#255f9e}
.report-item-v14 .report-vehicle-row{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:4px}
.report-item-v14 .report-vehicle-row span{background:#f5f7fb;border-radius:999px;padding:4px 7px;font-size:10px;color:#586f88}
.report-item-v14 .report-meta{margin:0 0 7px;font-size:10px;color:#8395a8}
.report-item-v14 .report-card-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.report-item-v14 .confirm-button,.report-item-v14 .item-open,.report-more-card{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:6px 10px;font-size:10px;font-weight:800;text-decoration:none}
.report-item-v14 .item-open{border:1px solid #cbdcf0;background:#fff;color:#2367ab}
.report-item-v14 .item-open:hover{background:#eef5ff}
.report-item-v14 .confirm-button{margin:0}
.report-more-card{border:1px dashed #b8cde7;background:#f7fbff;color:#1f67bb;min-height:44px}
.report-item-expanded{grid-template-columns:92px minmax(0,1fr);padding:14px}
.report-item-expanded .report-photo-link,.report-item-expanded .report-photo,.report-item-expanded .report-photo-placeholder{width:92px;height:92px}
.report-item-expanded h3{font-size:16px}
.report-item-expanded .report-meta{font-size:11px}
.reports-overview-grid,.travel-tips-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.travel-tips-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.info-panel,.tip-card{background:#fff;border:1px solid #dfe8f2;border-radius:18px;padding:18px}
.info-panel h2,.tip-card h3{margin:0 0 10px;color:#173c61}
.simple-bullets,.footer-mini-list{margin:0;padding-left:18px}
.simple-bullets li,.footer-mini-list li{margin:6px 0;color:#5f7388;line-height:1.65}
.summary-strip{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border-radius:14px;background:#f6fafe;color:#365470}
.summary-strip strong{color:#184e8b}
.status-guide{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:#5f7388}
.full-reports-panel{margin-top:16px}
.stacked-on-mobile{align-items:flex-end}
.panel-actions.wide{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.inline-search{min-width:min(100%,320px);flex:1 1 280px}
.page-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:16px}
.page-hero h1{margin:6px 0 8px;color:#153c60}
.page-hero p{max-width:860px}
.site-footer-v14{margin-top:34px;padding:0;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border-top:1px solid #deebf7}
.footer-shell{max-width:1360px;margin:0 auto;padding:26px 20px 18px}
.footer-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.footer-brand-block strong{font-size:20px;color:#173c61}
.footer-brand-block p{max-width:720px;margin:7px 0 0;color:#62778f;line-height:1.7}
.footer-top-actions{display:flex;gap:10px;flex-wrap:wrap}
.footer-grid-v14{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}
.footer-card{background:#fff;border:1px solid #dce8f4;border-radius:18px;padding:16px}
.footer-card-title{font-size:15px;font-weight:900;color:#173c61;margin-bottom:6px}
.footer-card-copy{margin:0 0 12px;color:#64798f;line-height:1.65;font-size:12px}
.emergency-grid-v14{display:grid;grid-template-columns:1fr;gap:10px}
.emergency-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:14px;background:#fbfcfe;border:1px solid #e3ebf4;color:#173c61;text-decoration:none}
.emergency-item strong{display:block;font-size:22px;line-height:1}
.emergency-item small{display:block;color:#74879d}
.emergency-badge{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff2df;color:#c27c16;font-size:20px;font-weight:900}
.line-contact-v14{display:flex;align-items:center;gap:10px;border:1px solid #cfead8;background:#f2fff7;border-radius:16px;padding:12px;color:#20563b;text-decoration:none}
.line-pill{display:inline-flex;align-items:center;justify-content:center;width:48px;height:32px;border-radius:999px;background:#11c050;color:#fff;font-weight:900;font-size:12px}
.line-text{display:grid;gap:3px}
.line-text strong{font-size:15px}
.line-text small{font-size:12px;color:#5c826d}
.line-arrow{margin-left:auto;font-size:18px}
.footer-bottom-v14{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid #e7eef6;color:#8294a8;font-size:11px}
@media (max-width: 1080px){
  .footer-grid-v14{grid-template-columns:1fr}
  .travel-tips-grid{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .reports-overview-grid{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .report-item-expanded{grid-template-columns:70px minmax(0,1fr)}
  .report-item-expanded .report-photo-link,.report-item-expanded .report-photo,.report-item-expanded .report-photo-placeholder{width:70px;height:70px}
  .page-hero,.footer-top{flex-direction:column}
}
@media (max-width: 560px){
  .report-item-v14{grid-template-columns:56px minmax(0,1fr);padding:9px}
  .report-item-v14 .report-photo-link,.report-item-v14 .report-photo,.report-item-v14 .report-photo-placeholder{width:56px;height:56px}
  .report-item-v14 h3{font-size:14px}
  .report-item-v14 .type-pill,.report-item-v14 .status-pill,.mini-update-badge{font-size:9px;padding:4px 6px}
  .report-item-v14 .report-road-fact,.report-item-v14 .report-water-fact{font-size:10px}
  .report-item-v14 .report-card-actions{gap:5px}
  .report-item-v14 .confirm-button,.report-item-v14 .item-open,.report-more-card{font-size:9px;padding:6px 8px}
  .panel-actions.wide{align-items:stretch}
  .panel-actions.wide > *{width:100%}
}


/* v1.5: near-real-time map and trip route checker */
.map-heading-v15{align-items:flex-start}
.live-pill{display:inline-flex;align-items:center;gap:6px;margin-left:8px;padding:5px 9px;border-radius:999px;background:#e8f8ef;color:#18754b;font-size:10px;font-weight:900;vertical-align:middle;white-space:nowrap}
.live-pill i{display:block;width:7px;height:7px;border-radius:50%;background:#1da765;box-shadow:0 0 0 3px rgba(29,167,101,.12)}
.live-pill.is-loading{background:#fff6df;color:#8b6500}
.live-pill.is-loading i{background:#e6a600;box-shadow:0 0 0 3px rgba(230,166,0,.12)}
.live-pill.is-error{background:#fff0f0;color:#b4232b}
.live-pill.is-error i{background:#d93d45;box-shadow:0 0 0 3px rgba(217,61,69,.12)}
.live-updated-at{display:block;margin-top:5px;font-size:10px;color:#7b8da2;line-height:1.5}
.route-planner{margin:0 16px 14px;padding:15px;border:1px solid #dce8f4;border-radius:16px;background:linear-gradient(135deg,#f8fbff 0%,#fff 100%)}
.route-planner-heading{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.route-planner-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:#e7f1ff;color:#1f66ba;font-size:22px;font-weight:900}
.route-planner-heading h3{margin:0 0 3px;font-size:15px;color:#163d62}
.route-planner-heading p{margin:0;color:#73859a;font-size:11px;line-height:1.5}
.route-controls{display:grid;grid-template-columns:minmax(220px,1fr) auto auto auto;gap:8px;align-items:end}
.route-destination-wrap{display:grid;gap:5px;min-width:0}
.route-destination-wrap span{font-size:11px;font-weight:800;color:#5b7087}
.route-destination-wrap input{width:100%;min-width:0;box-sizing:border-box;min-height:42px;padding:10px 12px;border:1px solid #d4e1ef;border-radius:11px;background:#fff;color:#213d5b;font:inherit;font-size:13px;outline:none}
.route-destination-wrap input:focus{border-color:#3b82d0;box-shadow:0 0 0 3px rgba(59,130,208,.12)}
.route-primary-btn,.route-secondary-btn{min-height:42px;padding:0 13px;border-radius:11px;border:1px solid #d4e1ef;background:#fff;color:#315574;font-weight:800;font-size:11px;cursor:pointer;white-space:nowrap}
.route-primary-btn{background:#216bd2;color:#fff;border-color:#216bd2}
.route-primary-btn:hover{background:#1757b5}
.route-primary-btn:disabled{opacity:.65;cursor:wait}
.route-secondary-btn:hover{background:#eef5fc}
.route-secondary-btn.is-active{background:#e6f7ed;color:#176d43;border-color:#bde4ce}
.route-status{display:grid;gap:4px;margin-top:10px;padding:11px 12px;border-radius:12px;border:1px solid #dce7f2;background:#f5f8fc;color:#3d5872}
.route-status strong{font-size:12px}
.route-status span{font-size:11px;line-height:1.55}
.route-status.danger{background:#fff0ef;border-color:#f4c6c2;color:#9e2929}
.route-status.warning{background:#fff7e4;border-color:#f0dfac;color:#835900}
.route-status.unknown{background:#f0f5fb;border-color:#d9e5f2;color:#3f5872}
.route-status.loading{background:#eef6ff;border-color:#cfe2f8;color:#225e9d}
.route-alert-list{display:grid;gap:7px;margin-top:8px}
.route-alert-empty{font-size:11px;color:#8293a6;padding:5px 2px}
.route-alert{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:11px;border:1px solid #e0e8f1;background:#fff;text-align:left;cursor:pointer;color:#3b526b}
.route-alert.danger{background:#fff9f8;border-color:#f0d0cd}
.route-alert.old{background:#f7f8fa;border-color:#e3e7ec}
.route-alert-distance{flex:0 0 auto;min-width:46px;font-size:11px;font-weight:900;color:#2166b5}
.route-alert-copy{display:grid;gap:3px;min-width:0;flex:1}
.route-alert-copy strong{font-size:11px;line-height:1.4}
.route-alert-copy small{font-size:10px;color:#75879b;line-height:1.4}
.route-alert-arrow{font-size:16px;color:#7c91a8}
.route-safety-note{margin:9px 0 0;font-size:10px;line-height:1.55;color:#8b7854}
.map-canvas{width:100%;height:clamp(380px,48vw,640px);background:#e6edf3;position:relative;z-index:1}
@media(max-width:1100px){
  .route-controls{grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:stretch}
  .route-destination-wrap{grid-column:1/-1}
}
@media(max-width:600px){
  .route-planner{margin:0 10px 12px;padding:12px}
  .route-controls{grid-template-columns:1fr 1fr}
  .route-destination-wrap{grid-column:1/-1}
  .route-primary-btn,.route-secondary-btn{white-space:normal;padding:8px 9px;line-height:1.3}
  .map-heading-v15 .live-pill{margin-left:3px}
  .map-canvas{height:58vh;min-height:340px}
}

.route-summary-meta{font-size:10px;line-height:1.6;color:#71849a;margin-top:6px;padding:0 3px}


/* v1.5.1 reports_all redesign */
.reports-v151-shell{display:grid;gap:16px}
.reports-v151-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.reports-v151-hero h1{margin:6px 0 8px;color:#163c61}
.reports-v151-hero p{margin:0;max-width:820px;color:#65798f;line-height:1.7}
.reports-v151-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.reports-v151-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.summary-card-v151{background:#fff;border:1px solid #deebf6;border-radius:18px;padding:16px 18px;box-shadow:0 4px 14px rgba(25,53,83,.04);display:grid;gap:6px}
.summary-card-v151 strong{font-size:30px;line-height:1;color:#143e64}
.summary-card-v151 small{color:#7f91a4;line-height:1.45}
.summary-card-v151 .summary-label{font-size:12px;font-weight:900;color:#58708a}
.summary-card-v151.emphasis{background:linear-gradient(135deg,#eef6ff 0%,#ffffff 100%)}
.summary-card-v151.danger{background:linear-gradient(135deg,#fff3f1 0%,#ffffff 100%)}
.summary-card-v151.warning{background:linear-gradient(135deg,#fff9e9 0%,#ffffff 100%)}
.summary-card-v151.success{background:linear-gradient(135deg,#effbf3 0%,#ffffff 100%)}
.reports-v151-toolbar{display:grid;gap:14px}
.reports-v151-toolbar-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.reports-v151-toolbar-head h2{margin:0 0 6px;color:#163c61}
.reports-v151-toolbar-head p{margin:0;color:#73859a}
.reports-v151-guide{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#697d94}
.reports-v151-filters{display:grid;grid-template-columns:minmax(280px,1fr) 190px 220px auto;gap:10px;align-items:center}
.reports-v151-search{min-width:0}
.reports-v151-maplink{min-height:44px}
.all-reports-list-v151{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:14px}
.report-item-all-v151{padding:14px;border-radius:20px;border:1px solid #dce7f2;background:#fff;box-shadow:0 4px 14px rgba(25,53,83,.04);display:grid;gap:12px;align-content:start}
.report-item-all-v151:hover{border-color:#c3d8ee;box-shadow:0 8px 22px rgba(25,53,83,.08)}
.report-item-all-v151-top{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:start}
.report-item-all-v151-photo .report-photo-link,.report-item-all-v151-photo .report-photo,.report-item-all-v151-photo .report-photo-placeholder{display:block;width:112px;height:112px;border-radius:16px;object-fit:cover}
.report-item-all-v151 .report-card-head{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.report-item-all-v151 h3{margin:0 0 8px;font-size:20px;line-height:1.3;color:#163c61}
.report-item-all-v151 .report-summary-row.large{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.report-item-all-v151 .report-road-fact,.report-item-all-v151 .report-water-fact{font-size:12px;padding:7px 10px;border-radius:10px;font-weight:900}
.report-vehicle-grid-v151{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
.report-vehicle-grid-v151 span{display:grid;gap:4px;padding:10px 12px;border:1px solid #e1eaf3;border-radius:12px;background:#f8fbff;color:#567088}
.report-vehicle-grid-v151 b{font-size:11px;color:#284a6d}
.report-vehicle-grid-v151 small{font-size:12px;line-height:1.35;color:#5f7388}
.report-item-all-v151 .report-meta{margin:0;color:#8395a8;font-size:11px}
.report-card-actions-v151{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-top:2px}
.report-card-actions-v151 .confirm-count,.report-card-actions-v151 .confirm-button{margin-right:0}
.report-item-all-v151 .pending-update-inline{margin:0;padding:12px;border-radius:14px;background:#fff9e8;border:1px solid #efd98c}
.report-item-all-v151 .pending-update-copy strong{display:block;color:#8b6500;margin-bottom:4px}
.report-item-all-v151 .pending-update-copy span{display:block;color:#7c6540;font-size:12px;line-height:1.45}
.report-item-all-v151 .pending-update-copy small{display:block;margin-top:4px;color:#9c8a61}
.report-item-all-v151 .pending-update-action{margin-top:8px}
.reports-v151-tips-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tip-card-v151{background:#fff;border:1px solid #deebf6;border-radius:18px;padding:16px 18px}
.tip-card-v151 h3{margin:0 0 8px;color:#163c61;font-size:16px}
.tip-card-v151 p{margin:0;color:#64788f;line-height:1.7}
@media (max-width: 1180px){
  .reports-v151-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-v151-filters{grid-template-columns:minmax(220px,1fr) 1fr 1fr auto}
}
@media (max-width: 900px){
  .all-reports-list-v151{grid-template-columns:1fr}
  .reports-v151-tips-grid{grid-template-columns:1fr}
  .reports-v151-toolbar-head{align-items:flex-start}
}
@media (max-width: 720px){
  .reports-v151-summary-grid{grid-template-columns:1fr 1fr}
  .reports-v151-filters{grid-template-columns:1fr 1fr}
  .reports-v151-search{grid-column:1/-1}
  .reports-v151-maplink{grid-column:1/-1;width:100%}
}
@media (max-width: 560px){
  .reports-v151-summary-grid{grid-template-columns:1fr}
  .report-item-all-v151{padding:12px}
  .report-item-all-v151-top{grid-template-columns:78px minmax(0,1fr);gap:10px}
  .report-item-all-v151-photo .report-photo-link,.report-item-all-v151-photo .report-photo,.report-item-all-v151-photo .report-photo-placeholder{width:78px;height:78px;border-radius:14px}
  .report-item-all-v151 h3{font-size:17px}
  .report-vehicle-grid-v151{grid-template-columns:1fr}
  .reports-v151-filters{grid-template-columns:1fr}
}


/* v1.5.2 compact reports and route UI */
.compact-panel{padding:16px 18px}
.compact-panel .panel-heading{padding:0}
.reports-v152-shell{display:grid;gap:14px}
.reports-v152-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.reports-v152-title h1{margin:6px 0 8px;color:#163c61;font-size:42px}
.reports-v152-title p{margin:0;color:#6c8097;line-height:1.7;max-width:900px}
.reports-v152-actions{display:flex;gap:10px;flex-wrap:wrap}
.reports-v152-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.mini-stat-card{background:#fff;border:1px solid #dde8f3;border-radius:16px;padding:14px 16px;display:grid;gap:6px;box-shadow:0 4px 12px rgba(25,53,83,.04)}
.mini-stat-card span{font-size:12px;font-weight:800;color:#61778f}.mini-stat-card strong{font-size:28px;line-height:1;color:#143d63}.mini-stat-card.danger{background:#fff4f2}.mini-stat-card.warning{background:#fff8e8}.mini-stat-card.success{background:#eefaf2}
.reports-v152-toolbar{display:grid;gap:14px}
.reports-v152-toolbar-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.reports-v152-toolbar-top h2{margin:0 0 6px;color:#163c61}.reports-v152-toolbar-top p{margin:0;color:#73859b}
.reports-v152-guide{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#71839a}
.reports-v152-filters{display:grid;grid-template-columns:minmax(280px,1fr) 180px 210px auto;gap:10px;align-items:center}
.reports-v152-search{margin:0;min-width:0}.reports-v152-maplink{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.all-reports-list-v152{padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:14px;overflow:visible;max-height:none}
.report-item-all-v152{grid-template-columns:1fr !important;padding:14px;border:1px solid #dde8f3;border-radius:18px;background:#fff;box-shadow:0 4px 14px rgba(25,53,83,.04);display:grid;gap:12px}
.report-item-all-v152:hover{border-color:#c4d8ee;box-shadow:0 8px 18px rgba(25,53,83,.08)}
.report-item-all-v152-top{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start}
.report-item-all-v152-photo .report-photo-link,.report-item-all-v152-photo .report-photo,.report-item-all-v152-photo .report-photo-placeholder{display:block;width:96px;height:96px;border-radius:14px;object-fit:cover}
.report-item-all-v152 .report-card-head{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.report-item-all-v152 h3{margin:0 0 8px;font-size:18px;line-height:1.3;color:#163c61}
.report-item-all-v152 .report-summary-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.report-item-all-v152 .report-road-fact,.report-item-all-v152 .report-water-fact{font-size:11px;padding:6px 9px;border-radius:10px;font-weight:900}
.report-vehicle-grid-v152{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}
.report-vehicle-grid-v152 span{display:grid;gap:3px;padding:10px 11px;border:1px solid #e2eaf3;border-radius:12px;background:#f8fbff;color:#59718a}
.report-vehicle-grid-v152 b{font-size:11px;color:#284a6d}.report-vehicle-grid-v152 small{font-size:12px;line-height:1.35}
.report-item-all-v152 .report-meta{margin:0;color:#8395a8;font-size:11px}
.report-card-actions-v152{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.report-card-actions-v152 .confirm-count,.report-card-actions-v152 .confirm-button{margin:0}
.report-item-all-v152 .pending-update-inline{margin:0;padding:11px 12px;border-radius:14px;background:#fff9e9;border:1px solid #efd993}.report-item-all-v152 .pending-update-copy strong{display:block;color:#8b6500;margin-bottom:4px}.report-item-all-v152 .pending-update-copy span{display:block;font-size:12px;line-height:1.45;color:#7c6540}.report-item-all-v152 .pending-update-copy small{display:block;margin-top:4px;color:#9d8b63}
.panel-actions .ghost-btn{min-height:42px;border-radius:12px;padding:0 14px;border:1px solid #d2deea;background:#fff;font-weight:800;color:#234869;box-shadow:0 2px 6px rgba(17,24,39,.04);transition:.15s ease}
.panel-actions .ghost-btn:hover{background:#eef6ff;border-color:#b8d0ea;color:#16599f}.panel-actions .ghost-btn:active{transform:translateY(1px)}
#locateMe{background:linear-gradient(135deg,#edf7ff 0%,#ffffff 100%)}
#mapTypeToggle{background:linear-gradient(135deg,#fff9ee 0%,#ffffff 100%)}
.route-planner{margin:0 16px 14px;padding:14px;border:1px solid #dce8f4;border-radius:18px;background:linear-gradient(180deg,#fbfdff 0%,#ffffff 100%)}
.route-planner-heading{margin-bottom:10px}.route-planner-heading h3{margin:0 0 3px;font-size:16px;color:#163d62}.route-planner-heading p{margin:0;color:#73859a;font-size:12px}
.route-planner-icon{width:42px;height:42px;border-radius:13px;background:#e8f1ff;color:#1f66ba}
.route-controls{grid-template-columns:minmax(260px,1fr) auto auto auto;gap:8px}.route-destination-wrap span{font-size:11px;font-weight:800;color:#55708c}
.route-destination-wrap input{min-height:44px;border-radius:12px}.route-primary-btn,.route-secondary-btn{min-height:44px;border-radius:12px;padding:0 14px;font-size:12px;font-weight:900}
.route-primary-btn{background:#216bd2;border-color:#216bd2}.route-secondary-btn{background:#fff}
.route-secondary-btn.is-active{background:#e7f7ee;border-color:#bce4cc;color:#156d43}
.route-status{border-radius:14px}.route-summary-meta{font-size:11px;color:#6e8298}
.route-alert-list{grid-template-columns:1fr 1fr;display:grid}.route-alert{border-radius:12px}.route-alert.danger{background:#fff4f2;border-color:#efc8c4}.route-alert.normal{background:#f8fbff;border-color:#dce8f2}
@media(max-width:1100px){.reports-v152-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.reports-v152-filters{grid-template-columns:minmax(220px,1fr) 1fr 1fr auto}.route-alert-list{grid-template-columns:1fr}}
@media(max-width:760px){.reports-v152-title h1{font-size:32px}.reports-v152-stats{grid-template-columns:1fr 1fr}.reports-v152-filters{grid-template-columns:1fr 1fr}.reports-v152-search,.reports-v152-maplink{grid-column:1/-1}.all-reports-list-v152{grid-template-columns:1fr}.panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.panel-actions select{width:100%;max-width:none}.panel-actions .ghost-btn{width:100%}.route-controls{grid-template-columns:1fr 1fr}.route-destination-wrap{grid-column:1/-1}}
@media(max-width:560px){.reports-v152-stats{grid-template-columns:1fr}.report-item-all-v152-top{grid-template-columns:74px minmax(0,1fr);gap:10px}.report-item-all-v152-photo .report-photo-link,.report-item-all-v152-photo .report-photo,.report-item-all-v152-photo .report-photo-placeholder{width:74px;height:74px}.report-item-all-v152 h3{font-size:16px}.report-vehicle-grid-v152{grid-template-columns:1fr}.reports-v152-filters{grid-template-columns:1fr}.route-controls{grid-template-columns:1fr}.route-primary-btn,.route-secondary-btn{width:100%}}


/* v1.5.3: consistent vector icons for emergency contacts */
.emergency-badge{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#fff1dd;color:#bd7410;font-size:initial;font-weight:normal;line-height:1}
.emergency-badge .emergency-icon{display:block;width:22px;height:22px;flex:none}
.emergency-item:hover .emergency-badge{background:#ffe7c3;color:#a95f00}
.emergency-item:focus-visible{outline:3px solid #8bbcff;outline-offset:2px}


/* v1.5.5: live community updates and nearby incident grouping */
.all-reports-list-v152{align-items:start;grid-auto-rows:max-content}
.report-item-all-v155{align-self:start;min-width:0;display:flex;flex-direction:column;gap:12px;padding:14px;border:1px solid #dce7f2;border-radius:18px;background:#fff;box-shadow:0 5px 16px rgba(27,57,88,.045);transition:border-color .16s ease,box-shadow .16s ease}
.report-item-all-v155:hover{border-color:#bcd3e8;box-shadow:0 9px 22px rgba(27,57,88,.08)}
.report-item-all-v155-top{display:grid;grid-template-columns:92px minmax(0,1fr);gap:13px;align-items:start}
.report-item-all-v155-photo .report-photo-link,.report-item-all-v155-photo .report-photo,.report-item-all-v155-photo .report-photo-placeholder{position:relative;display:block;width:92px;height:92px;border-radius:14px;object-fit:cover;overflow:hidden}
.report-item-all-v155-photo .report-photo-link img{display:block;width:100%;height:100%;object-fit:cover}
.report-item-all-v155 .report-card-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 7px}
.report-item-all-v155 h3{font-size:17px;line-height:1.35;margin:0 0 8px;color:#143d63}
.report-item-all-v155 .report-summary-row{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 10px}
.report-item-all-v155 .report-road-fact,.report-item-all-v155 .report-water-fact{font-size:11px;line-height:1.4;padding:6px 9px;border-radius:9px;font-weight:800}
.report-vehicle-grid-v155{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:9px}
.report-vehicle-grid-v155 span{display:grid;gap:4px;min-width:0;padding:9px;border:1px solid #e1eaf3;border-radius:11px;background:#f7faff;color:#637b93}
.report-vehicle-grid-v155 b{font-size:10px;line-height:1.35;color:#31506e}.report-vehicle-grid-v155 small{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.report-item-all-v155 .report-meta{font-size:11px;line-height:1.6;margin:0;color:#71869b}
.nearby-group-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;background:#eaf3ff;color:#2463a8;font-size:10px;font-weight:900}
.freshness-pill{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:900}
.freshness-pill.fresh{background:#e9f8ef;color:#197446}.freshness-pill.recent{background:#edf4ff;color:#2b62a5}.freshness-pill.stale{background:#fff2e6;color:#a45b13}
.report-card-actions-v155{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:1px}
.report-card-actions-v155 .confirm-button,.report-card-actions-v155 .item-open{margin:0;min-height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;padding:0 11px;font-size:11px;font-weight:900}
.report-card-actions-v155 .update-status-link{background:#eaf7ef;border-color:#c8e8d3;color:#176b43}
.report-safety-note{margin:0;padding-top:9px;border-top:1px solid #edf2f7;color:#8293a5;font-size:10px;line-height:1.5}
.photo-nearby-tag{position:absolute;left:4px;right:4px;bottom:4px;padding:3px 4px;border-radius:6px;background:rgba(18,45,72,.78);color:#fff;text-align:center;font-size:9px;line-height:1.25}
.map-report-popup{max-width:260px;display:grid;gap:7px;font-family:inherit;color:#24445f}.map-report-popup>strong{font-size:14px;color:#173f64}.map-report-popup>span,.map-report-popup>small{font-size:11px;color:#6e8398}.map-report-popup p{margin:0;font-size:12px;line-height:1.6}.map-popup-photo{display:block;width:100%;max-height:140px;overflow:hidden;border-radius:10px}.map-popup-photo img{display:block;width:100%;max-height:140px;object-fit:cover}.map-popup-update{display:block;text-align:center;background:#eaf7ef;border:1px solid #c8e8d3;color:#176b43;border-radius:9px;padding:8px 10px;font-weight:900;font-size:11px;text-decoration:none}
@media(max-width:900px){.all-reports-list-v152{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}}
@media(max-width:560px){.all-reports-list-v152{grid-template-columns:1fr}.report-item-all-v155-top{grid-template-columns:76px minmax(0,1fr);gap:10px}.report-item-all-v155-photo .report-photo-link,.report-item-all-v155-photo .report-photo,.report-item-all-v155-photo .report-photo-placeholder{width:76px;height:76px}.report-vehicle-grid-v155{grid-template-columns:1fr}.report-item-all-v155 h3{font-size:16px}.report-card-actions-v155 .confirm-button,.report-card-actions-v155 .item-open{flex:1}}


/* v1.5.6 map popup redesign */
.gm-style .gm-style-iw-c{padding:0 !important;border-radius:22px !important;box-shadow:0 16px 38px rgba(14,38,66,.22) !important;overflow:hidden !important}
.gm-style .gm-style-iw-d{overflow:auto !important;max-height:none !important}
.gm-style .gm-ui-hover-effect{top:8px !important;right:8px !important;width:34px !important;height:34px !important;border-radius:999px !important;background:rgba(255,255,255,.96) !important;box-shadow:0 4px 12px rgba(15,36,66,.14)}
.gm-style .gm-ui-hover-effect span{margin:7px !important}
.leaflet-popup-content-wrapper{border-radius:22px;box-shadow:0 16px 38px rgba(14,38,66,.22)}
.leaflet-popup-content{margin:0 !important}
.map-popup-card{width:min(340px,80vw);padding:0;font-family:'Sarabun',Arial,sans-serif;color:#173855;background:#fff}
.map-popup-photo{display:block;width:100%;height:170px;overflow:hidden;background:#eef3f7}
.map-popup-photo img{display:block;width:100%;height:170px;object-fit:cover;cursor:zoom-in}
.map-popup-no-photo{display:grid;place-items:center;height:96px;margin:16px 16px 0;border-radius:16px;background:linear-gradient(135deg,#f5f8fb 0%,#eef3f8 100%);border:1px dashed #d4dfeb;color:#7b8da0;font-size:12px}
.map-popup-head{display:flex;gap:6px;flex-wrap:wrap;padding:14px 16px 0}
.map-popup-card h3{font-size:18px;line-height:1.3;margin:10px 16px 4px;color:#153a5f}
.map-popup-location{margin:0 16px 10px;color:#75899f;font-size:12px;line-height:1.5}
.map-popup-facts{margin:0 16px;padding:12px 13px;border-radius:14px;background:linear-gradient(135deg,#f7fbff 0%,#f3f8fd 100%);border:1px solid #e1ebf5;display:grid;gap:5px}
.map-popup-facts strong{font-size:15px;color:#b43239;line-height:1.35}
.map-popup-facts span{font-size:13px;color:#4b6580;line-height:1.45}
.map-popup-vehicles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 16px 0}
.map-popup-vehicles span{display:grid;gap:4px;padding:10px 10px;border-radius:12px;background:#f8fbff;border:1px solid #e3ebf4;color:#567088;min-width:0}
.map-popup-vehicles b{font-size:11px;color:#274a6d;line-height:1.3}
.map-popup-vehicles small{font-size:11px;line-height:1.35;color:#61758c}
.map-popup-actions{display:grid;grid-template-columns:1fr;gap:8px;padding:14px 16px 0}
.map-popup-cta,.map-popup-focus{display:flex;align-items:center;justify-content:center;min-height:42px;padding:0 12px;border-radius:12px;font-size:12px;font-weight:800;text-decoration:none;text-align:center}
.map-popup-cta{background:#216bd2;color:#fff;border:1px solid #216bd2}
.map-popup-cta:hover{background:#1b5bb2;color:#fff;text-decoration:none}
.map-popup-focus{background:#eff5fb;color:#1f5d9a;border:1px solid #d8e3ef;cursor:pointer}
.map-popup-focus:hover{background:#e5effa}
.map-popup-footnote{display:block;padding:11px 16px 16px;color:#8697a9;font-size:11px;line-height:1.6}
@media(max-width:640px){
  .map-popup-card{width:min(310px,84vw)}
  .map-popup-photo,.map-popup-photo img{height:150px}
  .map-popup-vehicles{grid-template-columns:1fr}
}


/* v1.5.7 compact map popup: smaller, balanced on desktop and mobile */
.gm-style .gm-style-iw-c{
  max-width:292px !important;
  max-height: min(440px, 58vh) !important;
  padding:0 !important;
  border-radius:18px !important;
  box-shadow:0 12px 30px rgba(14,38,66,.18) !important;
  overflow:hidden !important;
}
.gm-style .gm-style-iw-d{
  max-width:270px !important;
  max-height:min(405px, 54vh) !important;
  overflow:auto !important;
}
.gm-style .gm-ui-hover-effect{
  top:5px !important;right:5px !important;width:28px !important;height:28px !important;
  border-radius:50% !important;background:rgba(255,255,255,.96) !important;
  box-shadow:0 2px 8px rgba(15,36,66,.12) !important;
}
.gm-style .gm-ui-hover-effect span{margin:5px !important}
.leaflet-popup-content-wrapper{border-radius:18px;box-shadow:0 12px 30px rgba(14,38,66,.18)}
.leaflet-popup-content{margin:0 !important}
.map-popup-card{
  width:260px;max-width:calc(100vw - 82px);box-sizing:border-box;padding:0;
  font-family:'Sarabun',Arial,sans-serif;color:#173855;background:#fff;
}
.map-popup-photo{display:block;width:100%;height:104px;overflow:hidden;background:#eef3f7;border-radius:0}
.map-popup-photo img{display:block;width:100%;height:104px;object-fit:cover;cursor:zoom-in}
.map-popup-no-photo{display:grid;place-items:center;height:54px;margin:10px 10px 0;border-radius:12px;background:#f5f8fb;border:1px dashed #d4dfeb;color:#7b8da0;font-size:11px}
.map-popup-head{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:10px 11px 0}
.map-popup-head .type-pill,.map-popup-head .status-pill,.map-popup-head .freshness-pill,.map-popup-head .nearby-group-badge{font-size:9px;padding:3px 6px;line-height:1.3}
.map-popup-card h3{font-size:15px;line-height:1.3;margin:7px 11px 2px;color:#153a5f}
.map-popup-location{margin:0 11px 7px;color:#75899f;font-size:10px;line-height:1.4}
.map-popup-facts{margin:0 11px;padding:8px 9px;border-radius:11px;background:#f6faff;border:1px solid #e1ebf5;display:grid;gap:3px}
.map-popup-facts strong{font-size:12px;color:#b43239;line-height:1.35}
.map-popup-facts span{font-size:11px;color:#4b6580;line-height:1.4}
.map-popup-vehicles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:8px 11px 0}
.map-popup-vehicles span{display:grid;gap:3px;min-width:0;padding:7px 6px;border-radius:9px;background:#f8fbff;border:1px solid #e3ebf4;color:#567088}
.map-popup-vehicles b{font-size:9px;color:#274a6d;line-height:1.3;overflow-wrap:anywhere}
.map-popup-vehicles small{font-size:10px;line-height:1.3;color:#61758c;overflow-wrap:anywhere}
.map-popup-actions{display:grid;grid-template-columns:1fr;gap:6px;padding:9px 11px 0}
.map-popup-cta,.map-popup-focus{display:flex;align-items:center;justify-content:center;min-height:34px;padding:6px 9px;border-radius:10px;font-size:11px;font-weight:800;text-decoration:none;text-align:center;line-height:1.35}
.map-popup-cta{background:#216bd2;color:#fff;border:1px solid #216bd2}
.map-popup-cta:hover{background:#1b5bb2;color:#fff;text-decoration:none}
.map-popup-focus{background:#eff5fb;color:#1f5d9a;border:1px solid #d8e3ef;cursor:pointer}
.map-popup-focus:hover{background:#e5effa}
.map-popup-footnote{display:block;padding:7px 11px 10px;color:#8697a9;font-size:9px;line-height:1.45}
@media(max-width:640px){
  .gm-style .gm-style-iw-c{max-width:270px !important;max-height: min(360px, 48vh) !important;border-radius:16px !important}
  .gm-style .gm-style-iw-d{max-width:248px !important;max-height:min(330px, 44vh) !important}
  .map-popup-card{width:238px;max-width:calc(100vw - 86px)}
  .map-popup-photo,.map-popup-photo img{height:88px}
  .map-popup-head{padding:8px 9px 0;gap:4px}
  .map-popup-card h3{font-size:14px;margin:6px 9px 2px}
  .map-popup-location{margin:0 9px 6px;font-size:10px}
  .map-popup-facts{margin:0 9px;padding:7px 8px}
  .map-popup-vehicles{padding:7px 9px 0;gap:4px}
  .map-popup-vehicles span{padding:6px 4px}
  .map-popup-vehicles b{font-size:8.5px}
  .map-popup-vehicles small{font-size:9px}
  .map-popup-actions{padding:8px 9px 0}
  .map-popup-cta,.map-popup-focus{min-height:32px;font-size:10px}
  .map-popup-footnote{padding:6px 9px 9px;font-size:9px}
}


/* v1.5.8 detailed Thai locality fields */
.optional-label{display:inline-block;margin-left:5px;padding:2px 6px;border-radius:999px;background:#edf6ff;color:#316caa;font-size:10px;font-weight:700;vertical-align:middle}
.area-autofill-note{padding:9px 11px;border:1px solid #dce9f6;border-radius:10px;background:#f6faff;color:#5a7590;line-height:1.6}
#reportForm input[name="moo_number"],#reportForm input[name="village_name"],#reportForm input[name="subdistrict"]{min-width:0}


/* v1.6 — separate road reports from mapped flood-area reports */
.stats-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.stat-card.info{background:#f0f7ff;border-color:#d7e8fb}
.panel-actions select,#reportKindFilter{min-height:40px;border:1px solid #d9e5f0;border-radius:10px;padding:0 10px;background:#fff;color:#234563;font-size:12px}
.route-controls{grid-template-columns:minmax(220px,1fr) minmax(130px,170px) auto auto auto}
.route-vehicle-wrap{display:grid;gap:6px;min-width:0}
.route-vehicle-wrap span{font-size:11px;font-weight:800;color:#55708c}
.route-vehicle-wrap select{min-height:42px;border:1px solid #d4e0ec;border-radius:11px;padding:0 10px;background:#fff;color:#244563;font-weight:700}
.report-kind-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.report-kind-option{display:flex;align-items:center;gap:11px;min-width:0;padding:13px;border:1px solid #dce7f2;border-radius:14px;background:#f9fbfe;cursor:pointer;transition:.15s ease}
.report-kind-option input{width:17px;height:17px;accent-color:#216bd2;flex:0 0 auto}
.report-kind-option.is-selected{border-color:#7eb2ee;background:#f0f7ff;box-shadow:0 0 0 2px #dcecff}
.report-kind-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#eaf3ff;font-size:21px;flex:0 0 auto}
.report-kind-option strong,.report-kind-option small{display:block}
.report-kind-option strong{font-size:13px;color:#1c4265}
.report-kind-option small{font-size:10px;color:#72869c;line-height:1.45;margin-top:3px}
.report-kind-fields{padding:14px;border:1px solid #e2ebf4;border-radius:14px;background:#fbfdff;margin:12px 0}
.report-kind-fields[hidden]{display:none !important}
.subsection-title{font-size:14px;color:#1e4a70;margin:0 0 12px}
.report-area-facts{display:grid;gap:4px;padding:10px 12px;border:1px solid #f0dba0;border-radius:12px;background:#fff9e9;margin:8px 0}
.report-area-facts strong{font-size:13px;color:#875900}
.report-area-facts span{font-size:11px;color:#6e7f90;line-height:1.5}
.report-event-caption{font-size:11px;color:#7b8fa4;margin:-2px 0 8px}
.area-map-legend{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:10px;color:#687f96;margin-top:8px}
.area-legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#e58a25;border:1px solid #fff;box-shadow:0 0 0 1px #d9e3ed;vertical-align:middle}
.area-legend-dot.mild{background:#e5bd36}.area-legend-dot.moderate{background:#e58a25}.area-legend-dot.deep{background:#dc4b4f}.area-legend-dot.high{background:#9346c8}.area-legend-dot.fast{background:#2788c7}
.legend-dot.green{background:#16865b}
.flood-area-marker{background:transparent;border:0}
.flood-area-marker span{display:grid;place-items:center;width:28px;height:28px;border:2px solid #fff;border-radius:50%;background:#e58a25;color:#fff;font-size:18px;font-weight:900;line-height:1;box-shadow:0 3px 9px #102c4b40}
.area-popup-facts strong{color:#9a5b09}
.area-popup-facts{background:#fff9ed;border-color:#f1dfb4}
.area-current-summary{display:grid;gap:4px;padding:11px 13px;border:1px solid #f0dba0;border-radius:12px;background:#fff9e9}
.area-current-summary strong{font-size:14px;color:#875900}.area-current-summary span{font-size:11px;color:#6e7f90}
.report-item-area{border-color:#f0dba0;background:#fffdf8}
.report-item-area .report-area-facts{margin:8px 0}
.report-item-area .report-card-photo-wrap .report-photo{border:1px solid #f0e3c5}
@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.route-controls{grid-template-columns:minmax(200px,1fr) minmax(120px,150px) auto auto}.route-controls #startTrip{grid-column:2 / -1}}
@media(max-width:760px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.route-controls{grid-template-columns:1fr 1fr}.route-destination-wrap{grid-column:1 / -1}.route-vehicle-wrap{grid-column:1 / -1}.route-controls #startTrip{grid-column:auto}.report-kind-picker{grid-template-columns:1fr}}
@media(max-width:520px){.stats-grid{grid-template-columns:1fr 1fr}.route-controls{grid-template-columns:1fr}.route-destination-wrap,.route-vehicle-wrap,.route-controls #startTrip{grid-column:auto}.route-primary-btn,.route-secondary-btn{width:100%}.report-kind-option{padding:11px}.report-kind-icon{width:36px;height:36px}}

.reports-v152-filters{grid-template-columns:minmax(220px,1fr) repeat(3,minmax(130px,auto)) auto}
@media(max-width:900px){.reports-v152-filters{grid-template-columns:1fr 1fr}.reports-v152-search{grid-column:1/-1}}
@media(max-width:560px){.reports-v152-filters{grid-template-columns:1fr}.reports-v152-search{grid-column:auto}}

.reports-v152-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.mini-stat-card.info{background:#f0f7ff;border-color:#d7e8fb}
@media(max-width:900px){.reports-v152-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.reports-v152-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

.route-line-legend{display:flex;flex-wrap:wrap;gap:9px 14px;margin:8px 0 4px;color:#71869b;font-size:10px}.route-line-legend span{display:inline-flex;align-items:center;gap:5px}.route-line-swatch{display:inline-block;width:18px;height:4px;border-radius:99px;background:#216bd2}.route-line-swatch.red{background:#d92d35}.route-line-swatch.orange{background:#e58a16}.route-line-swatch.green{background:#16864b}


/* v1.6.2 — clear normal/abnormal report tint */
.report-item-normal{background:linear-gradient(135deg,rgba(235,250,241,.98),rgba(225,246,233,.92))!important;border-color:#b9e4c8!important;box-shadow:0 4px 14px rgba(22,132,74,.07)!important}
.report-item-normal:hover{border-color:#83c99e!important;box-shadow:0 8px 20px rgba(22,132,74,.12)!important}
.report-item-abnormal{background:linear-gradient(135deg,rgba(255,244,243,.98),rgba(253,232,231,.92))!important;border-color:#f0c5c2!important;box-shadow:0 4px 14px rgba(190,48,48,.055)!important}
.report-item-abnormal:hover{border-color:#e6a6a2!important;box-shadow:0 8px 20px rgba(190,48,48,.09)!important}
.report-item-normal .report-road-fact{background:#e0f5e8!important;color:#176b3c!important}
.report-item-abnormal .report-road-fact{background:#ffe3e1!important;color:#a52c2c!important}
.report-normal-state{display:grid;gap:8px;margin:8px 0}
.report-normal-state-heading{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #b9e4c8;border-radius:12px;background:rgba(255,255,255,.62)}
.report-normal-state-heading>span:last-child{display:grid;gap:2px}
.report-normal-state-heading strong{font-size:13px;color:#176b3c}
.report-normal-state-heading small{font-size:11px;color:#4b8061;line-height:1.4}
.report-normal-check{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#1c9856;color:#fff;font-weight:900;font-size:16px}
.report-item-normal .report-vehicle-grid-v155 span{background:rgba(255,255,255,.65);border-color:#d2eddb}
.report-item-normal .report-vehicle-grid-v155 b{color:#276744}
.report-item-normal .status-pill.status-normal{background:#d8f3e2;color:#176b3c;border:1px solid #b8e5c8}
.report-item-abnormal .report-card-head .status-pill{background:#ffe3e1;color:#a52c2c}
.status-pill.status-normal{background:#dcf5e5;color:#176b3c;border:1px solid #b8e5c8}
.map-popup-card.is-normal-popup .map-popup-facts{background:#effaf3;border-color:#bde6ca}
.map-popup-card.is-normal-popup .map-popup-facts strong{color:#176b3c}
.map-popup-card.is-abnormal-popup .map-popup-facts{background:#fff1f0;border-color:#efc7c4}
.map-popup-card.is-abnormal-popup .map-popup-facts strong{color:#a52c2c}
.current-road-status.is-normal{background:#effaf3;border-color:#bde6ca;color:#397451}
.current-road-status.is-normal strong{color:#176b3c}
.current-road-status.is-abnormal{background:#fff2f1;border-color:#efc9c6}
.current-road-status.is-abnormal strong{color:#a52c2c}
.normal-road-update-note{display:grid;gap:4px;padding:11px 13px;border:1px solid #b9e4c8;border-radius:12px;background:#effaf3;color:#286b46}
.normal-road-update-note[hidden],.status-water-grid[hidden]{display:none!important}
.normal-road-update-note strong{font-size:13px;color:#176b3c}
.normal-road-update-note span{font-size:11px;line-height:1.55}
@media(max-width:560px){.report-normal-state-heading{padding:8px 10px}.report-normal-state-heading strong{font-size:12px}.report-normal-state-heading small{font-size:10px}}


/* v1.6.3 footer: consistent emergency icons + LINE/Facebook contacts */
.emergency-badge{width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:#fff2df;color:#b86b16;display:grid;place-items:center;box-sizing:border-box}
.emergency-badge .emergency-icon{display:block;width:23px;height:23px;flex:0 0 23px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.emergency-item:nth-child(2) .emergency-badge{background:#fff1e4;color:#b75b16}
.emergency-item:nth-child(3) .emergency-badge{background:#edf3ff;color:#315f9d}
.emergency-item:hover .emergency-badge{filter:brightness(.97)}
.social-contact-list-v163{display:grid;grid-template-columns:1fr;gap:9px;min-width:0}
.social-contact-v163{display:flex;align-items:center;gap:11px;min-width:0;min-height:62px;padding:10px 12px;border:1px solid #dce8f2;border-radius:15px;background:#fff;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;box-sizing:border-box}
.social-contact-v163:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(23,60,97,.07);text-decoration:none}
.line-social-v163{background:#f3fff7;border-color:#ccebd8;color:#176b42}
.facebook-social-v163{background:#f3f7ff;border-color:#d4e1fb;color:#2057a4}
.social-brand-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:12px;color:#fff;box-sizing:border-box}
.social-brand-icon svg{display:block;width:27px;height:27px}
.line-brand-icon-v163{background:#10b957}
.line-brand-icon-v163 svg{width:31px;height:31px}
.facebook-brand-icon-v163{background:#1877f2}
.facebook-brand-icon-v163 svg{width:25px;height:25px}
.social-contact-copy-v163{display:grid;gap:3px;min-width:0}
.social-contact-copy-v163 strong{font-size:13px;line-height:1.35;color:#173c61;overflow-wrap:anywhere}
.social-contact-copy-v163 small{font-size:11px;line-height:1.45;color:#687f96}
.social-contact-arrow-v163{margin-left:auto;flex:0 0 auto;font-size:18px;line-height:1;color:#7890a8}
.footer-grid-v14{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.footer-grid-v14>.footer-card{min-width:0;box-sizing:border-box}
.footer-card-copy{overflow-wrap:anywhere}
@media(max-width:1080px){.footer-grid-v14{grid-template-columns:minmax(0,1fr)}}
@media(max-width:560px){.footer-shell{padding:22px 14px 16px}.footer-card{padding:14px}.emergency-item{padding:10px}.social-contact-v163{min-height:58px;padding:9px 10px}}


/* v1.6.4 footer fix: compact, fixed-size social marks; avoid SVG intrinsic sizing. */
.footer-grid-v14{align-items:start!important}
.footer-grid-v14>.footer-card{align-self:start!important;height:auto!important;min-height:0!important;min-width:0;}
.footer-card.contact-card{min-width:0;}
.social-contact-list-v164{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%;min-width:0;}
.social-contact-v164{display:grid!important;grid-template-columns:42px minmax(0,1fr) 16px!important;align-items:center!important;column-gap:10px!important;width:100%;min-width:0;min-height:62px!important;height:auto!important;padding:9px 11px!important;border:1px solid #dce8f2;border-radius:13px;box-sizing:border-box;text-decoration:none;}
.social-contact-v164:hover{text-decoration:none;transform:translateY(-1px);box-shadow:0 4px 12px rgba(23,60,97,.07)}
.line-social-v164{background:#f3fff7;border-color:#ccebd8;color:#176b42}
.facebook-social-v164{background:#f3f7ff;border-color:#d4e1fb;color:#2057a4}
.social-brand-icon-v164{display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important;flex:0 0 42px!important;overflow:hidden!important;border-radius:12px!important;box-sizing:border-box!important;color:#fff!important;}
.line-brand-icon-v164{background:#10b957!important}
.facebook-brand-icon-v164{background:#1877f2!important}
.social-wordmark-line-v164{display:block!important;font-family:Arial,sans-serif!important;font-size:10px!important;font-weight:900!important;letter-spacing:-.3px!important;line-height:1!important;color:#fff!important;white-space:nowrap!important;}
.social-wordmark-facebook-v164{display:block!important;font-family:Arial,sans-serif!important;font-size:31px!important;font-weight:900!important;line-height:1!important;color:#fff!important;transform:translateY(3px)}
.social-contact-copy-v164{display:grid!important;gap:3px!important;min-width:0!important;overflow-wrap:anywhere}
.social-contact-copy-v164 strong{display:block;font-size:13px;line-height:1.35;color:#173c61;overflow-wrap:anywhere}
.social-contact-copy-v164 small{display:block;font-size:11px;line-height:1.45;color:#687f96;overflow-wrap:anywhere}
.social-contact-arrow-v164{display:block;margin-left:0!important;justify-self:end;font-size:17px;line-height:1;color:#7890a8}
@media(max-width:1080px){.footer-grid-v14{grid-template-columns:minmax(0,1fr)!important}.footer-grid-v14>.footer-card{width:100%}}
@media(max-width:560px){.footer-shell{padding:20px 14px 16px}.footer-card{padding:13px}.social-contact-v164{min-height:58px!important;padding:8px 9px!important;grid-template-columns:40px minmax(0,1fr) 14px!important}.social-brand-icon-v164{width:40px!important;height:40px!important;min-width:40px!important;max-width:40px!important;min-height:40px!important;max-height:40px!important;flex-basis:40px!important}}


/* v1.7.0 — compact weather layers integrated with the main Google Map */
.map-stage{position:relative;width:100%;isolation:isolate}
.weather-map-widget{position:absolute;top:12px;left:12px;z-index:30;width:min(330px,calc(100% - 24px));font-family:inherit;color:#173a5b;pointer-events:none}
.weather-widget-trigger,.weather-widget-panel{pointer-events:auto;box-shadow:0 8px 26px rgba(18,48,78,.17)}
.weather-widget-trigger{display:flex;align-items:center;gap:9px;width:auto;max-width:100%;min-height:52px;padding:8px 12px;border:1px solid #d8e5f1;border-radius:15px;background:rgba(255,255,255,.97);color:#173a5b;text-align:left;cursor:pointer;backdrop-filter:blur(8px)}
.weather-widget-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#edf6ff;font-size:19px}
.weather-widget-trigger-copy{display:grid;gap:2px;min-width:0;flex:1}
.weather-widget-trigger-copy strong{font-size:12px;line-height:1.3;font-weight:900}
.weather-widget-trigger-copy small{font-size:10px;line-height:1.35;color:#6d8198;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.weather-widget-chevron{font-size:18px;color:#7890a8;transition:transform .18s ease}
.weather-widget-trigger[aria-expanded="true"] .weather-widget-chevron{transform:rotate(180deg)}
.weather-widget-panel{margin-top:7px;padding:12px;border:1px solid #dce7f1;border-radius:16px;background:rgba(255,255,255,.98);backdrop-filter:blur(10px);max-height:min(70vh,520px);overflow:auto}
.weather-widget-panel[hidden]{display:none}
.weather-widget-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.weather-widget-heading strong{font-size:12px;color:#173d62}
.weather-data-status{font-size:9px;color:#168653;background:#eaf8ef;padding:4px 7px;border-radius:99px;white-space:nowrap}
.weather-data-status.is-warning{color:#946200;background:#fff5dc}
.weather-data-status.is-error{color:#a83232;background:#fff0ef}
.weather-current-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.weather-metric{display:grid;grid-template-columns:17px 1fr;align-items:center;column-gap:4px;row-gap:2px;padding:7px 7px;border:1px solid #e5edf5;border-radius:10px;background:#f8fbfe;min-width:0}
.weather-metric>span{font-size:13px;grid-row:span 2}
.weather-metric small{font-size:9px;color:#71869a;line-height:1.2;white-space:nowrap}
.weather-metric strong{font-size:11px;color:#1d466d;line-height:1.25;overflow-wrap:anywhere}
.weather-current-loading{grid-column:1/-1;padding:10px 6px;font-size:10px;color:#8092a5;line-height:1.5}
.weather-layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:9px}
.weather-layer-button,.weather-layer-link{display:flex;align-items:center;justify-content:center;gap:5px;min-height:35px;padding:7px 8px;border:1px solid #dbe6f1;border-radius:10px;background:#fff;color:#315a7f;font-family:inherit;font-size:10px;font-weight:800;text-align:center;text-decoration:none;cursor:pointer;box-sizing:border-box}
.weather-layer-button:hover,.weather-layer-link:hover{background:#f3f8fd;text-decoration:none}
.weather-layer-button.is-active{background:#eaf5ff;border-color:#9fc8ee;color:#155e9e}
.weather-layer-button small{font-size:9px;font-weight:800;color:#7a8da2}
.weather-layer-button.is-active small{color:#1768aa}
.weather-radar-timeline{margin-top:9px;padding:9px 10px;border:1px solid #dce8f3;border-radius:11px;background:#f6faff}
.weather-radar-timeline[hidden]{display:none}
.weather-timeline-top,.weather-timeline-controls{display:flex;align-items:center;gap:8px}
.weather-timeline-top{justify-content:space-between;margin-bottom:7px}
.weather-timeline-top strong{font-size:10px;color:#294e70}
.weather-timeline-top span{font-size:10px;font-weight:900;color:#1766a7;font-variant-numeric:tabular-nums}
.weather-timeline-controls button{flex:0 0 auto;min-width:34px;height:30px;border:1px solid #d2e1ef;border-radius:8px;background:#fff;color:#205c94;font-size:11px;font-weight:900;cursor:pointer}
.weather-timeline-controls button:last-child{padding:0 8px;font-size:9px}
.weather-timeline-controls input{min-width:0;flex:1;accent-color:#2476d2}
.weather-radar-timeline>small{display:block;margin-top:5px;color:#8293a6;font-size:9px;line-height:1.4}
.weather-hourly-block{margin-top:10px}
.weather-hourly-block>strong{display:block;margin-bottom:6px;font-size:10px;color:#345878}
.weather-hourly-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.weather-hour{display:grid;gap:2px;padding:7px 5px;border:1px solid #e5edf5;border-radius:9px;background:#fbfdff;text-align:center;min-width:0}
.weather-hour small{font-size:9px;color:#778ba0}
.weather-hour strong{font-size:12px;color:#2468a5}
.weather-hour span{font-size:8px;color:#8193a6}
.weather-hour em{font-size:9px;font-style:normal;color:#526e88}
.weather-widget-attribution{display:flex;flex-wrap:wrap;gap:10px;margin-top:9px;font-size:9px;color:#7d90a4}
.weather-widget-attribution a{color:#2169aa;text-decoration:underline}
.weather-widget-note{margin:7px 0 0;padding-top:7px;border-top:1px solid #edf1f5;font-size:9px;line-height:1.5;color:#8796a6}
@media(max-width:600px){
  .weather-map-widget{top:9px;left:9px;width:min(300px,calc(100% - 18px))}
  .weather-widget-trigger{min-height:46px;padding:7px 9px;border-radius:13px}
  .weather-widget-icon{width:30px;height:30px;flex-basis:30px;font-size:17px}
  .weather-widget-panel{padding:10px;max-height:62vh}
  .weather-current-grid{gap:5px}
  .weather-metric{padding:6px 5px}
  .weather-layer-actions{grid-template-columns:1fr 1fr}
}


/* v1.7.1 hotfix: reinforce weather overlay placement and compact controls. */
#weatherMapStage{position:relative!important;isolation:isolate!important}
#weatherMapStage>#weatherMapWidget{position:absolute!important;top:12px!important;left:12px!important;z-index:1000!important;width:min(340px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;margin:0!important;pointer-events:none!important}
#weatherMapWidget .weather-widget-trigger,#weatherMapWidget .weather-widget-panel{pointer-events:auto!important;box-sizing:border-box!important}
#weatherMapWidget .weather-widget-panel[hidden],#weatherMapWidget .weather-radar-timeline[hidden]{display:none!important}
#weatherMapWidget .weather-widget-panel{max-height:min(64vh,490px)!important;overflow:auto!important;overscroll-behavior:contain!important}
@media(max-width:600px){#weatherMapStage>#weatherMapWidget{top:8px!important;left:8px!important;width:min(300px,calc(100% - 16px))!important;max-width:calc(100% - 16px)!important}#weatherMapWidget .weather-widget-panel{max-height:58vh!important}}


/* v1.7.2 — Remember Me and first-party cookie consent UI */
.cfw-remember-row{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:10px!important;padding:11px 12px;border:1px solid #dce8f4;border-radius:12px;background:#f7faff;cursor:pointer}
.cfw-remember-row>input{width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:2px 0 0;accent-color:#2879e8}
.cfw-remember-row>span{display:grid;gap:2px}
.cfw-remember-row strong{font-size:13px;color:#244767}
.cfw-remember-row small{font-size:11px;color:#7b8da1;font-weight:400}
.cfw-cookie-banner{position:fixed;z-index:10050;left:18px;right:18px;bottom:18px;max-width:1040px;margin:0 auto;padding:0;border:1px solid #dbe6f1;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 18px 55px rgba(20,45,75,.2);color:#203b59;backdrop-filter:blur(12px)}
.cfw-cookie-banner[hidden],.cfw-cookie-settings[hidden]{display:none!important}
.cfw-cookie-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 22px;align-items:center;padding:17px 19px}
.cfw-cookie-copy{min-width:0}
.cfw-cookie-heading{display:flex;align-items:center;gap:9px;font-size:14px;color:#173d62}
.cfw-cookie-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf5ff;font-size:18px}
.cfw-cookie-copy p{margin:6px 0 4px;font-size:11px;line-height:1.6;color:#6f8298}
.cfw-cookie-copy>a{font-size:11px;font-weight:750;color:#2474ce;text-decoration:underline}
.cfw-cookie-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.cfw-cookie-btn{min-height:38px;padding:8px 12px;border:1px solid #d8e4f1;border-radius:10px;background:#fff;color:#36536f;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.cfw-cookie-primary{background:#2879e8;border-color:#2879e8;color:#fff}
.cfw-cookie-primary:hover{background:#1767cf}
.cfw-cookie-secondary:hover{background:#f3f7fc}
.cfw-cookie-text-btn{border:0;background:transparent;color:#2879e8;font:inherit;font-size:11px;font-weight:800;padding:8px;cursor:pointer}
.cfw-cookie-settings{grid-column:1/-1;border-top:1px solid #e9eff6;padding-top:10px;display:grid;gap:9px}
.cfw-cookie-setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0}
.cfw-cookie-setting-row>span{display:grid;gap:2px}
.cfw-cookie-setting-row strong{font-size:12px;color:#294968}
.cfw-cookie-setting-row small{font-size:10px;color:#7c8da1}
.cfw-cookie-switch{position:relative;display:inline-flex;flex:0 0 40px;width:40px;height:23px}
.cfw-cookie-switch input{position:absolute;opacity:0;width:1px;height:1px}
.cfw-cookie-switch>span{position:absolute;inset:0;border-radius:99px;background:#cbd5e1;transition:.18s}
.cfw-cookie-switch>span:before{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:.18s}
.cfw-cookie-switch input:checked+span{background:#2879e8}
.cfw-cookie-switch input:checked+span:before{transform:translateX(17px)}
.cfw-cookie-switch input:disabled+span{opacity:.65}
.cfw-cookie-reopen{border:0;background:transparent;color:#2879e8;font:inherit;font-size:11px;cursor:pointer;padding:0}
@media(max-width:700px){.cfw-cookie-banner{left:10px;right:10px;bottom:10px;border-radius:15px}.cfw-cookie-inner{grid-template-columns:1fr;padding:13px;gap:10px}.cfw-cookie-actions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}.cfw-cookie-actions .cfw-cookie-text-btn{grid-column:1/-1}.cfw-cookie-btn{min-height:42px}.cfw-cookie-copy p{font-size:10px}}


/* v1.7.3 — community directory and compact mobile navigation */
.mobile-menu-toggle{display:none;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 13px;border:1px solid #d8e4f0;border-radius:12px;background:#fff;color:#173a5b;font-family:inherit;font-size:13px;font-weight:800;line-height:1.2;cursor:pointer;box-shadow:0 2px 7px rgba(20,55,90,.06)}
.mobile-menu-glyph{font-size:20px;line-height:1}
.community-overview{margin-top:18px;padding:clamp(16px,2.2vw,24px);border:1px solid #dce8f3;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f8fbff 100%)}
.community-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.community-eyebrow{display:inline-block;margin-bottom:5px;color:#2673c8;font-size:10px;font-weight:900;letter-spacing:.09em}
.community-overview-heading h2,.members-page-hero h1{margin:0;color:#173a5b;font-size:clamp(19px,2vw,25px);line-height:1.3}
.community-overview-heading p,.members-page-hero p{margin:5px 0 0;color:#71849a;font-size:12px;line-height:1.6}
.community-view-all{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:10px 13px;border:1px solid #cfe0f3;border-radius:11px;background:#fff;color:#1769bd;font-size:12px;font-weight:800;text-decoration:none}
.community-view-all:hover{background:#eff6ff;text-decoration:none}
.community-overview-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.community-stat-card{display:flex;align-items:center;gap:12px;min-width:0;padding:14px;border:1px solid #e0eaf4;border-radius:14px;background:#fff}
.community-stat-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#edf5ff;font-size:20px}
.community-stat-card strong{display:block;color:#173a5b;font-size:23px;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums}
.community-stat-card small{display:block;margin-top:4px;color:#74869a;font-size:11px}
.community-privacy-note,.members-privacy{margin:12px 0 0;color:#8a99a9;font-size:10px;line-height:1.55}
.members-page{display:grid;gap:16px}
.members-page-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(18px,3vw,30px);border:1px solid #dce8f3;border-radius:18px;background:linear-gradient(120deg,#fff 0%,#f2f8ff 100%)}
.members-total{display:grid;justify-items:center;min-width:112px;padding:13px 18px;border:1px solid #d9e8f7;border-radius:15px;background:#fff}
.members-total strong{color:#1769bd;font-size:30px;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums}
.members-total span{margin-top:5px;color:#71849a;font-size:11px}
.members-directory{padding:clamp(16px,2.4vw,25px);border:1px solid #dce8f3;border-radius:18px;background:#fff}
.members-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.members-directory-heading h2{margin:0;color:#173a5b;font-size:19px}
.members-directory-heading p{margin:4px 0 0;color:#7a8da2;font-size:11px}
.members-result-count{padding:6px 10px;border-radius:99px;background:#edf5ff;color:#236db6;font-size:11px;font-weight:800;white-space:nowrap}
.members-search{display:flex;gap:8px;margin:16px 0}
.members-search-field{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 12px;border:1px solid #dce6f0;border-radius:11px;background:#f8fbfe;color:#71849a}
.members-search-field input{width:100%;min-width:0;min-height:42px;border:0;outline:0;background:transparent;color:#173a5b;font:inherit;font-size:13px}
.members-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.member-card{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #e3ebf4;border-radius:13px;background:#fff}
.member-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:linear-gradient(145deg,#2e82e8,#15518e);color:#fff;font-size:17px;font-weight:900}
.member-card-copy{display:grid;gap:4px;min-width:0;flex:1}
.member-card-copy strong{overflow:hidden;color:#1d3e60;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.member-card-copy small{color:#8a99a9;font-size:10px}
.member-role{padding:4px 7px;border-radius:99px;background:#fff5dc;color:#94610b;font-size:9px;font-weight:800;white-space:nowrap}
.members-empty{display:grid;justify-items:center;gap:7px;padding:42px 15px;text-align:center;color:#7b8da0}
.members-empty>span{font-size:32px}
.members-empty strong{color:#294b6d;font-size:14px}
.members-empty p{margin:0;font-size:11px}
.members-empty a{margin-top:5px;color:#1769bd;font-size:12px;font-weight:800}
.members-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px;padding-top:15px;border-top:1px solid #edf1f5;color:#77899d;font-size:11px}
.members-pagination a{padding:8px 11px;border:1px solid #dce7f2;border-radius:9px;color:#1769bd;font-weight:800;text-decoration:none}
.members-pagination a:hover{background:#f1f7ff}
.members-privacy{text-align:center}
@media(max-width:900px){
  .site-header{display:flex;position:relative;z-index:100;align-items:center;flex-direction:row;flex-wrap:wrap;gap:10px;padding:10px 14px}
  .site-header .brand{flex:1 1 auto;min-width:0}
  .mobile-menu-toggle{display:inline-flex;flex:0 0 auto}
  .site-header .main-nav{display:none;position:absolute;top:calc(100% + 5px);right:12px;left:12px;z-index:1002;width:auto;max-height:min(72vh,560px);overflow-y:auto;overflow-x:hidden;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:4px;flex-wrap:nowrap;padding:10px;border:1px solid #dce7f2;border-radius:15px;background:rgba(255,255,255,.99);box-shadow:0 14px 38px rgba(17,48,78,.18);backdrop-filter:blur(12px)}
  .site-header.is-menu-open .main-nav{display:flex}
  .site-header .main-nav>a,.site-header .main-nav .nav-logout{display:flex;width:100%;min-height:44px;justify-content:flex-start;padding:11px 12px;border-radius:10px;font-size:14px;text-align:left}
  .site-header .main-nav .inline-form{display:flex;width:100%;margin:0}
  .site-header .main-nav .nav-user{display:block;width:100%;padding:10px 12px 5px;border-top:1px solid #edf1f5;color:#71849a;font-size:12px}
  .site-header .main-nav .nav-logout{background:#fff7f7;color:#a43b3b}
}
@media(max-width:650px){
  .community-overview{padding:15px;margin-top:14px}
  .community-overview-heading{align-items:flex-start;flex-direction:column;gap:12px}
  .community-view-all{width:100%;justify-content:center;min-height:42px}
  .community-overview-stats{grid-template-columns:1fr;gap:8px}
  .community-stat-card{padding:11px}
  .community-stat-icon{width:38px;height:38px;flex-basis:38px}
  .community-stat-card strong{font-size:20px}
  .members-page-hero{align-items:flex-start;flex-direction:column}
  .members-total{width:100%;box-sizing:border-box;justify-items:start}
  .members-grid{grid-template-columns:1fr}
  .members-search{flex-wrap:wrap}
  .members-search-field{flex-basis:100%}
  .members-search .button{flex:1;justify-content:center}
  .members-directory-heading h2{font-size:17px}
}


/* v1.7.5 — private admin-only member management */
.admin-members-title{margin-bottom:18px}
.admin-member-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.admin-member-stat{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#294766;text-decoration:none;transition:border-color .15s,background .15s}
.admin-member-stat:hover,.admin-member-stat.is-selected{border-color:#8db9ed;background:#f4f9ff;text-decoration:none}
.admin-member-stat-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#edf5ff;color:#246bb3;font-size:19px;font-weight:900}
.admin-member-stat-icon.is-green{background:#eaf8ef;color:#17804e}
.admin-member-stat-icon.is-red{background:#fff0ee;color:#c24136}
.admin-member-stat strong{display:block;color:var(--navy);font-size:22px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums}
.admin-member-stat small{display:block;margin-top:4px;color:#7b8da1;font-size:11px}
.admin-members-panel{padding:clamp(15px,2.2vw,22px);overflow:hidden}
.admin-members-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.admin-members-heading h2{margin:0;color:var(--navy);font-size:19px}
.admin-members-heading p{margin:4px 0 0;color:var(--muted);font-size:12px}
.admin-members-count{padding:6px 10px;border-radius:99px;background:#edf5ff;color:#236db6;font-size:11px;font-weight:800;white-space:nowrap}
.admin-members-search{display:flex;gap:8px;margin:15px 0 16px}
.admin-members-searchbox{display:flex;align-items:center;gap:9px;flex:1;min-width:0;min-height:43px;padding:0 12px;border:1px solid #dce6f0;border-radius:11px;background:#f8fbfe;color:#71849a}
.admin-members-searchbox input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#173a5b;font:inherit;font-size:13px}
.admin-member-list{display:grid;gap:10px}
.admin-member-card{display:grid;gap:12px;padding:14px;border:1px solid #e0e9f2;border-radius:14px;background:#fff}
.admin-member-main{display:flex;align-items:center;gap:12px;min-width:0}
.admin-member-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:linear-gradient(145deg,#2e82e8,#15518e);color:#fff;font-size:18px;font-weight:900}
.admin-member-identity{display:grid;gap:4px;min-width:0;flex:1}
.admin-member-name-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-member-name-row>strong{color:#1c3f61;font-size:14px}
.admin-member-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:99px;font-size:10px;font-weight:800}
.admin-member-status.is-active{background:#e9f8ef;color:#16774a}
.admin-member-status.is-blocked{background:#fff0ed;color:#b93831}
.admin-member-username{color:#3674ad;font-size:11px;font-weight:700}
.admin-member-meta{color:#8191a3;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.admin-member-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:10px;border-top:1px solid #edf1f5}
.admin-member-actions > form{display:inline-flex;margin:0}
.admin-member-edit{flex:1 1 100%;min-width:0}
.admin-member-edit>summary{display:inline-flex;align-items:center;list-style:none;cursor:pointer}
.admin-member-edit>summary::-webkit-details-marker{display:none}
.admin-member-edit[open]>summary{background:#edf5ff;border-color:#c9def5;color:#1c65ad}
.admin-member-edit-form{margin-top:12px;padding:14px;border:1px solid #dce8f3;border-radius:12px;background:#f8fbff}
.admin-member-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-member-edit-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#405a73;font-size:11px;font-weight:700}
.admin-member-edit-grid input{width:100%;min-height:39px;padding:8px 10px;border:1px solid #d8e4ef;border-radius:9px;background:#fff;color:#203b56;font:inherit;font-size:12px;box-sizing:border-box}
.admin-member-edit-grid small{color:#8998a8;font-size:9px;font-weight:400}
.admin-member-password-field{grid-column:1/-1}
.admin-member-edit-footer{display:flex;justify-content:flex-end;margin-top:10px}
.admin-members-empty{display:grid;justify-items:center;gap:7px;padding:42px 15px;text-align:center;color:#8292a4}
.admin-members-empty>span{font-size:30px}
.admin-members-empty strong{color:#294b6d;font-size:14px}
.admin-members-empty p{margin:0;font-size:11px}
.admin-members-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:17px;padding-top:14px;border-top:1px solid #edf1f5;color:#77899d;font-size:11px}
.admin-members-pagination a{padding:8px 11px;border:1px solid #dce7f2;border-radius:9px;color:#1769bd;font-weight:800;text-decoration:none}
.admin-members-pagination a:hover{background:#f1f7ff}
.admin-members-privacy{margin:10px 0 0;text-align:center;color:#8a99a9;font-size:10px}
@media(max-width:700px){
  .admin-member-stats{grid-template-columns:1fr;gap:8px}
  .admin-member-stat{padding:10px 12px}
  .admin-member-stat-icon{width:36px;height:36px;flex-basis:36px}
  .admin-members-heading h2{font-size:17px}
  .admin-members-search{flex-wrap:wrap}
  .admin-members-searchbox{flex-basis:100%}
  .admin-members-search>.button{flex:1;justify-content:center}
  .admin-member-card{padding:12px}
  .admin-member-meta{font-size:10px}
  .admin-member-actions{gap:6px}
  .admin-member-actions>.button,.admin-member-actions form>.button{min-height:37px;font-size:11px}
  .admin-member-edit-grid{grid-template-columns:1fr}
  .admin-member-password-field{grid-column:auto}
}


/* v1.7.6 — balanced admin member editor and public aggregate member statistic */
.admin-member-actions{align-items:center}
.admin-member-edit{flex:0 0 auto;width:auto;min-width:0}
.admin-member-edit[open]{flex:1 1 100%;width:100%;min-width:0}
.admin-member-edit-form{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:12px 0 0!important;
  padding:16px!important;
  box-sizing:border-box!important;
}
.admin-member-edit-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px 14px!important;
  width:100%!important;
  min-width:0!important;
}
.admin-member-edit-grid label{min-width:0!important}
.admin-member-edit-grid input{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.admin-member-edit-grid .admin-member-password-field{grid-column:1/-1!important}
.admin-member-edit-footer{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  width:100%!important;
  margin-top:14px!important;
}
.admin-member-edit-footer button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:132px!important;
  min-height:40px!important;
  height:auto!important;
  padding:9px 18px!important;
  white-space:nowrap!important;
}
.admin-member-actions > form{flex:0 0 auto}
.admin-member-actions > form button{width:auto!important;min-height:36px!important}
.community-membership-strip{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
  margin:-3px 0 18px;
  padding:13px 16px;
  border:1px solid #d9e8f5;
  border-radius:15px;
  background:linear-gradient(100deg,#f5faff 0%,#fff 72%);
  box-shadow:0 3px 12px rgba(25,65,105,.045);
}
.community-membership-icon{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#e8f2ff;
  font-size:21px;
}
.community-membership-copy{display:grid;gap:1px;min-width:0}
.community-membership-copy>span{color:#5f7690;font-size:11px;font-weight:800}
.community-membership-copy>strong{color:#174a79;font-size:23px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums}
.community-membership-copy>small{color:#8192a4;font-size:10px;line-height:1.4}
.community-membership-privacy{
  display:flex;
  align-items:center;
  gap:7px;
  margin-left:auto;
  color:#8293a5;
  font-size:10px;
  text-align:right;
}
.community-membership-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#21a36b}
@media(max-width:760px){
  .admin-member-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-member-edit-grid .admin-member-password-field{grid-column:1/-1!important}
  .community-membership-strip{align-items:flex-start;flex-wrap:wrap;padding:12px}
  .community-membership-privacy{flex-basis:100%;margin:2px 0 0 55px;text-align:left}
}
@media(max-width:520px){
  .admin-member-edit-form{padding:12px!important}
  .admin-member-edit-grid{grid-template-columns:1fr!important}
  .admin-member-edit-grid .admin-member-password-field{grid-column:auto!important}
  .admin-member-edit-footer{justify-content:stretch!important}
  .admin-member-edit-footer button{width:100%!important}
}


/* v1.8.0 — 24/48/72-hour model-based rain forecast on the map */
.weather-forecast-map-block{
  margin-top:10px;
  padding:10px;
  border:1px solid #d8e7f4;
  border-radius:12px;
  background:linear-gradient(145deg,#f6fbff 0%,#fff 80%);
}
.weather-forecast-map-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.weather-forecast-map-heading>strong{font-size:10px;color:#234c70}
.weather-forecast-model-badge{
  display:inline-flex;
  align-items:center;
  padding:3px 7px;
  border-radius:99px;
  background:#edf4ff;
  color:#2869a7;
  font-size:8px;
  font-weight:800;
  white-space:nowrap;
}
.weather-forecast-map-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
}
.weather-forecast-map-actions .weather-layer-button{min-width:0;justify-content:center}
.weather-forecast-horizon-label{
  display:flex;
  align-items:center;
  gap:5px;
  color:#71869a;
  font-size:9px;
  white-space:nowrap;
}
.weather-forecast-horizon-label select{
  min-height:34px;
  max-width:112px;
  padding:0 7px;
  border:1px solid #d8e5f1;
  border-radius:9px;
  background:#fff;
  color:#2a5277;
  font:inherit;
  font-size:9px;
  font-weight:800;
}
.weather-forecast-timeline{
  margin-top:9px;
  padding:9px;
  border:1px solid #dce8f3;
  border-radius:10px;
  background:#fff;
}
.weather-forecast-timeline[hidden]{display:none!important}
.weather-forecast-timeline-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:7px;
}
.weather-forecast-timeline-head strong{color:#2b5277;font-size:9px}
.weather-forecast-timeline-head span{color:#1768a8;font-size:9px;font-weight:900;text-align:right}
.weather-forecast-slider-row{display:flex;align-items:center;gap:8px}
.weather-forecast-slider-row button{
  flex:0 0 32px;
  width:32px;
  height:30px;
  border:1px solid #d4e3f0;
  border-radius:8px;
  background:#f7fbff;
  color:#2167a5;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.weather-forecast-slider-row input{flex:1;min-width:0;accent-color:#2476d2}
.weather-forecast-legend{
  display:flex;
  flex-wrap:wrap;
  gap:6px 9px;
  margin-top:8px;
}
.weather-forecast-legend>span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#6f8297;
  font-size:8px;
  white-space:nowrap;
}
.forecast-swatch{display:inline-block;width:8px;height:8px;border-radius:50%}
.forecast-rain-light{background:#45a8e8}
.forecast-rain-moderate{background:#39a96b}
.forecast-rain-heavy{background:#e8bf35}
.forecast-rain-very-heavy{background:#ef8731}
.forecast-rain-extreme{background:#d83b43}
.weather-forecast-map-summary{
  margin:8px 0 0;
  padding:7px 8px;
  border-radius:8px;
  background:#f4f8fc;
  color:#385c7d;
  font-size:9px;
  line-height:1.5;
}
.weather-forecast-disclaimer{
  display:block;
  margin-top:6px;
  color:#8b9aaa;
  font-size:8px;
  line-height:1.45;
}
.weather-layer-actions{grid-template-columns:1fr 1fr}
@media(max-width:520px){
  .weather-forecast-map-block{padding:8px}
  .weather-forecast-map-actions{grid-template-columns:minmax(0,1fr) auto;gap:5px}
  .weather-forecast-horizon-label{font-size:8px}
  .weather-forecast-horizon-label select{max-width:100px;min-height:32px;font-size:8px}
  .weather-forecast-legend{gap:5px 7px}
}


/* v1.8.1 — unified footer actions and compact member total */
.footer-top{
  align-items:center;
  gap:14px 22px;
}
.footer-brand-block{min-width:0;flex:1 1 480px}
.footer-brand-heading{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px 12px;
}
.footer-brand-heading>strong{
  display:inline-block;
  color:#173c61;
  font-size:20px;
  line-height:1.25;
  letter-spacing:-.25px;
}
.footer-member-count{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:27px;
  padding:4px 9px;
  border:1px solid #d8e8f7;
  border-radius:999px;
  background:#f2f8ff;
  color:#426889;
  font-size:10px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.footer-member-count svg{width:14px;height:14px;flex:0 0 14px;color:#3476b6}
.footer-member-count b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  color:#175d9e;
  font-size:12px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.footer-brand-block p{
  max-width:760px;
  margin:6px 0 0;
  color:#62778f;
  font-size:12px;
  line-height:1.65;
}
.footer-top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex:0 0 auto;
}
.footer-top-actions .footer-link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-sizing:border-box;
  min-height:40px;
  padding:0 14px;
  border:1px solid #d6e6f8;
  border-radius:12px;
  background:#f2f7fd;
  color:#1d5ca8;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(26,76,125,.04);
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.footer-top-actions .footer-link-btn svg{
  display:block;
  width:15px;
  height:15px;
  flex:0 0 15px;
}
.footer-top-actions .footer-reports-btn:hover{
  background:#e8f1fc;
  border-color:#b9d3f1;
  color:#164f93;
  transform:translateY(-1px);
}
.footer-top-actions .footer-donate-btn{
  border-color:#f0d3db;
  background:#fff6f7;
  color:#b64e65;
}
.footer-top-actions .footer-donate-btn:hover{
  border-color:#eab8c5;
  background:#ffedf1;
  color:#a83d56;
  transform:translateY(-1px);
}
.footer-top-actions .footer-link-btn:focus-visible{
  outline:3px solid rgba(39,119,207,.22);
  outline-offset:2px;
}
@media(max-width:760px){
  .footer-top{align-items:flex-start}
  .footer-brand-block{flex:1 1 100%}
  .footer-top-actions{justify-content:flex-start;width:100%;flex-wrap:wrap}
  .footer-top-actions .footer-link-btn{flex:1 1 190px}
}
@media(max-width:420px){
  .footer-brand-heading{align-items:flex-start;gap:7px}
  .footer-brand-heading>strong{font-size:18px}
  .footer-member-count{min-height:25px;font-size:9px}
  .footer-top-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .footer-top-actions .footer-link-btn{width:100%;min-height:42px}
}

/* Keep forecast actions visually aligned with the existing radar controls. */
.weather-forecast-map-heading>strong{
  color:#234c70!important;
  font-family:inherit;
  font-size:11px!important;
  font-weight:900;
  line-height:1.35;
}
.weather-forecast-map-actions .weather-layer-button{
  min-height:36px;
  padding:7px 10px;
  border-radius:10px;
  font-size:10px;
}
.weather-forecast-horizon-label{
  gap:6px;
  color:#627b94;
  font-size:9px;
  font-weight:800;
}
.weather-forecast-horizon-label select{
  appearance:none;
  -webkit-appearance:none;
  min-width:106px;
  min-height:36px;
  padding:0 25px 0 10px;
  border:1px solid #d6e5f3;
  border-radius:10px;
  background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234e7397' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 8px center;
  color:#2a5277;
  font-family:inherit;
  font-size:10px;
  font-weight:800;
  line-height:1;
  box-shadow:0 1px 2px rgba(32,77,119,.04);
}
.weather-forecast-horizon-label select:focus-visible{
  outline:3px solid rgba(39,119,207,.18);
  outline-offset:1px;
}
@media(max-width:520px){
  .weather-forecast-map-actions .weather-layer-button{min-height:36px}
  .weather-forecast-horizon-label select{min-width:100px;min-height:36px;font-size:9px}
}


/* v1.8.2 — footer brand and community stats: compact row under description */
.site-footer-v14 .footer-shell{padding-top:25px;padding-bottom:18px}
.site-footer-v14 .footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px 26px;
  margin-bottom:18px;
}
.site-footer-v14 .footer-brand-block{
  flex:1 1 560px;
  min-width:0;
}
.site-footer-v14 .footer-brand-heading{
  display:block;
  margin:0;
  padding:0;
}
.site-footer-v14 .footer-brand-heading>strong{
  display:block;
  margin:0;
  color:#173c61;
  font-size:20px;
  font-weight:850;
  line-height:1.35;
  letter-spacing:-.2px;
}
.site-footer-v14 .footer-brand-block>p{
  max-width:780px;
  margin:5px 0 0;
  color:#667d94;
  font-size:12px;
  line-height:1.65;
}
.site-footer-v14 .footer-community-stats{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:11px;
}
.site-footer-v14 .footer-stat-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:31px;
  box-sizing:border-box;
  padding:5px 10px;
  border:1px solid #e0eaf4;
  border-radius:10px;
  background:#fff;
  color:#647b91;
  font-size:10px;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(29,66,103,.025);
}
.site-footer-v14 .footer-stat-chip svg{
  display:block;
  width:14px;
  height:14px;
  flex:0 0 14px;
  color:#477eaf;
}
.site-footer-v14 .footer-stat-chip b{
  color:#173f67;
  font-size:12px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
}
.site-footer-v14 .footer-stat-members{
  background:#f5f9ff;
  border-color:#dce9f8;
}
.site-footer-v14 .footer-stat-areas{
  background:#f3fbf7;
  border-color:#d9eee2;
}
.site-footer-v14 .footer-stat-areas svg{color:#32946a}
.site-footer-v14 .footer-stat-reports{
  background:#fffaf1;
  border-color:#f1e6cc;
}
.site-footer-v14 .footer-stat-reports svg{color:#b7832b}
.site-footer-v14 .footer-top-actions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:9px;
  padding-top:1px;
}
.site-footer-v14 .footer-top-actions .footer-link-btn{
  min-height:39px;
  padding:0 13px;
  border-radius:11px;
  font-size:11px;
  font-weight:800;
}
.site-footer-v14 .footer-top-actions .footer-link-btn svg{
  width:14px;
  height:14px;
}
@media(max-width:900px){
  .site-footer-v14 .footer-top{gap:13px 18px}
  .site-footer-v14 .footer-brand-block{flex-basis:100%}
  .site-footer-v14 .footer-top-actions{justify-content:flex-start}
}
@media(max-width:560px){
  .site-footer-v14 .footer-shell{padding:21px 15px 16px}
  .site-footer-v14 .footer-brand-heading>strong{font-size:18px}
  .site-footer-v14 .footer-brand-block>p{font-size:11px;line-height:1.6}
  .site-footer-v14 .footer-community-stats{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:10px;
  }
  .site-footer-v14 .footer-stat-chip{
    min-height:30px;
    gap:5px;
    padding:5px 8px;
    border-radius:9px;
    font-size:9px;
  }
  .site-footer-v14 .footer-stat-chip svg{width:13px;height:13px;flex-basis:13px}
  .site-footer-v14 .footer-stat-chip b{font-size:11px}
  .site-footer-v14 .footer-top-actions{
    display:flex;
    width:100%;
    justify-content:flex-start;
    gap:7px;
  }
  .site-footer-v14 .footer-top-actions .footer-link-btn{
    min-height:37px;
    padding:0 10px;
    font-size:10px;
  }
}
@media(max-width:390px){
  .site-footer-v14 .footer-community-stats{gap:5px}
  .site-footer-v14 .footer-stat-chip{padding:5px 7px;font-size:8.5px}
  .site-footer-v14 .footer-top-actions{display:grid;grid-template-columns:1fr;gap:7px}
  .site-footer-v14 .footer-top-actions .footer-link-btn{width:100%;min-height:39px}
}


/* =========================================================
   CFW Rescue & Relief v1.9.0 — compact, mobile-first UI
   ========================================================= */
.rescue-page-heading{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  margin:8px 0 18px;padding:0 2px;
}
.rescue-page-heading h1{margin:5px 0 5px;color:#173a5b;font-size:clamp(23px,3vw,31px);line-height:1.2;letter-spacing:-.5px}
.rescue-page-heading p{margin:0;color:#6b7f93;font-size:13px;line-height:1.55}
.rescue-page-heading .eyebrow{font-size:10px;font-weight:900;letter-spacing:.9px;color:#2775b8}
.rescue-live-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#e45155;box-shadow:0 0 0 4px rgba(228,81,85,.11);vertical-align:middle}
.rescue-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button-danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#d9434d!important;border:1px solid #d9434d!important;color:#fff!important}
.button-danger:hover{background:#c73540!important;border-color:#c73540!important}
.button-block{display:flex!important;width:100%;box-sizing:border-box;justify-content:center}
.rescue-safety-note{
  display:flex;flex-direction:column;gap:4px;margin:0 0 16px;padding:13px 15px;
  border:1px solid #f0d5d6;border-left:4px solid #d84a50;border-radius:12px;
  background:#fff8f7;color:#7c4245;font-size:12px;line-height:1.55;
}
.rescue-safety-note strong{font-size:13px;color:#a33239}
.rescue-safety-note a{display:inline-flex;margin:5px 6px 0 0;padding:6px 10px;border:1px solid #e8c5c7;border-radius:8px;background:#fff;color:#a33239;text-decoration:none;font-weight:800}
.rescue-safety-note.compact{margin:12px 0 0;font-size:11px}
.rescue-stat-row,.rescue-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 16px}
.rescue-stat,.rescue-admin-stats>div{
  display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px 14px;
  border:1px solid #e2eaf2;border-radius:13px;background:#fff;
}
.rescue-stat span,.rescue-admin-stats span{color:#708399;font-size:11px;font-weight:700}
.rescue-stat strong,.rescue-admin-stats strong{color:#1c466c;font-size:24px;line-height:1;font-variant-numeric:tabular-nums}
.rescue-stat-waiting strong{color:#d17a22}.rescue-stat-verified strong{color:#ce444b}
.rescue-map-section,.rescue-cases-section{margin:0 0 18px;padding:16px;border:1px solid #e1eaf2;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(22,54,84,.035)}
.rescue-section-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.rescue-section-top h2{margin:0 0 3px;color:#1b456a;font-size:17px;line-height:1.3}
.rescue-section-top p{margin:0;color:#7b8da0;font-size:11px;line-height:1.5}
.rescue-map-live{display:inline-flex;align-items:center;gap:6px;color:#25855e;font-size:10px;font-weight:800;white-space:nowrap}
.rescue-map-live i{width:6px;height:6px;border-radius:50%;background:#2da36e;box-shadow:0 0 0 3px rgba(45,163,110,.12)}
.rescue-map-canvas{width:100%;height:310px;min-height:250px;border:1px solid #e0e9f1;border-radius:12px;background:#edf3f8;overflow:hidden}
.rescue-main-map{height:360px}
.rescue-map-legend{display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap;margin:10px 2px 4px;color:#60778e;font-size:10px}
.rescue-map-dot{display:inline-block;width:9px;height:9px;margin-right:5px;border:1.5px solid #fff;border-radius:50%;vertical-align:middle;box-shadow:0 0 0 1px rgba(28,59,86,.13)}
.rescue-map-dot.critical{background:#d83d45}.rescue-map-dot.urgent{background:#e58a25}.rescue-map-dot.normal{background:#2c9b72}.rescue-map-dot.progress{background:#2384c6}
.rescue-map-privacy{margin:5px 2px 0;color:#8191a1;font-size:10px;line-height:1.5}
.rescue-map-popup{width:220px;max-width:220px;color:#173a5b;font-family:inherit;font-size:11px;line-height:1.45}
.rescue-map-popup-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:5px}
.rescue-map-popup-top b{font-size:10px;color:#627b93}
.rescue-map-popup-top span{padding:3px 6px;border-radius:99px;background:#edf4fa;color:#45637f;font-size:9px;font-weight:800}
.rescue-map-popup>strong{display:block;margin-bottom:3px;font-size:13px}
.rescue-map-popup>small{display:block;color:#6f8296;font-size:10px}
.rescue-map-popup-facts{display:flex;flex-direction:column;gap:2px;margin:7px 0;color:#4e6b87;font-size:10px}
.rescue-map-popup>a{display:inline-flex;margin-top:7px;color:#1769b2;font-size:11px;font-weight:900;text-decoration:none}
.rescue-case-count{flex:0 0 auto;padding:5px 9px;border:1px solid #e0e9f1;border-radius:99px;background:#f7fafd;color:#55728d;font-size:10px;font-weight:800}
.rescue-filter-bar{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap;margin:0 0 13px;padding:10px;border:1px solid #e8eef4;border-radius:12px;background:#f8fbfd}
.rescue-filter-bar label{display:flex;flex:1 1 140px;flex-direction:column;gap:4px;color:#61778d;font-size:10px;font-weight:800}
.rescue-filter-bar select{width:100%;min-height:36px;padding:7px 9px;border:1px solid #d9e4ee;border-radius:9px;background:#fff;color:#254b6d;font:inherit;font-size:11px}
.rescue-case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rescue-case-card{min-width:0;padding:13px;border:1px solid #e3ebf2;border-radius:13px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.rescue-case-card:hover{border-color:#c8d9e8;box-shadow:0 5px 15px rgba(24,63,98,.06)}
.rescue-case-card-top{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
.rescue-case-code{color:#75889a;font-size:10px;font-weight:900;letter-spacing:.3px}
.rescue-status-pill,.rescue-urgency-pill{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:99px;font-size:9px;font-weight:900;line-height:1.2}
.rescue-status-open{background:#fff3e5;color:#a65d13}.rescue-status-progress{background:#edf5ff;color:#2367a8}.rescue-status-active{background:#eaf4ff;color:#1f6fac}.rescue-status-resolved{background:#e9f7ef;color:#26774d}.rescue-status-cancelled{background:#f1f3f5;color:#75808a}
.rescue-urgency-pill.critical{background:#fff0f0;color:#c73540}.rescue-urgency-pill.urgent{background:#fff5e8;color:#a96616}.rescue-urgency-pill.normal{background:#edf8f2;color:#287b52}
.rescue-case-title-row{display:flex;align-items:center;gap:10px;margin:12px 0 10px;min-width:0}
.rescue-category-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#edf5fc;color:#2b76b7;font-size:19px;font-weight:900}
.rescue-category-icon.critical{background:#fff0f0;color:#cf4148}.rescue-category-icon.urgent{background:#fff5e8;color:#b87521}
.rescue-case-title-row>div{min-width:0}
.rescue-case-title-row h3{margin:0 0 3px;color:#1c4568;font-size:14px;line-height:1.35}
.rescue-case-title-row p{margin:0;color:#73869a;font-size:10px}
.rescue-case-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 9px;color:#708397;font-size:10px}
.rescue-case-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:9px;border-radius:9px;background:#f7fafc}
.rescue-case-facts span{display:flex;flex-direction:column;gap:3px;color:#8191a0;font-size:9px}
.rescue-case-facts b{color:#365a79;font-size:10px;font-weight:800}
.rescue-case-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:11px}
.rescue-helper-type{display:inline-flex;align-items:center;max-width:100%;padding:5px 8px;border-radius:8px;background:#eef7f2;color:#27754e;font-size:9px;font-weight:800;line-height:1.35}
.rescue-helper-type.verified{background:#fff1f1;color:#b43d46}
.rescue-open-case{color:#1768ad;font-size:11px;font-weight:900;text-decoration:none;white-space:nowrap}
.rescue-open-case span{font-size:15px}
.rescue-empty-state,.rescue-empty-inline{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:28px 16px;border:1px dashed #d8e3ed;border-radius:13px;background:#fafcfe;text-align:center;color:#71859a}
.rescue-empty-state>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eef6fd;color:#2779bc;font-size:22px}
.rescue-empty-state strong{color:#294e70;font-size:14px}.rescue-empty-state p{margin:0 0 5px;font-size:11px}
.rescue-empty-inline{min-height:70px;font-size:11px}
.rescue-form{display:flex;flex-direction:column;gap:13px}
.rescue-form-card,.rescue-detail-card,.rescue-action-card{min-width:0;padding:16px;border:1px solid #e2eaf1;border-radius:15px;background:#fff;box-shadow:0 4px 15px rgba(22,54,84,.03)}
.rescue-section-heading{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px}
.rescue-section-heading>span{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:9px;background:#eaf3fb;color:#2169a8;font-size:12px;font-weight:900}
.rescue-section-heading h2{margin:1px 0 3px;color:#1c466a;font-size:15px;line-height:1.35}
.rescue-section-heading p{margin:0;color:#8191a0;font-size:10px;line-height:1.45}
.rescue-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rescue-field-grid label,.rescue-update-form label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#49647d;font-size:11px;font-weight:800}
.rescue-field-grid label b{color:#d84a50}
.rescue-field-full{grid-column:1/-1}
.rescue-field-grid input,.rescue-field-grid select,.rescue-field-grid textarea,.rescue-update-form textarea,.rescue-update-form input[type=file],.rescue-admin-assign select,.rescue-helper-review-form input{
  width:100%;box-sizing:border-box;min-height:40px;padding:9px 11px;border:1px solid #dce6ef;border-radius:10px;background:#fff;color:#244968;font-family:inherit;font-size:12px;font-weight:500;outline:none
}
.rescue-field-grid textarea,.rescue-update-form textarea{min-height:78px;resize:vertical;line-height:1.5}
.rescue-field-grid input:focus,.rescue-field-grid select:focus,.rescue-field-grid textarea:focus,.rescue-update-form textarea:focus{border-color:#83b6e3;box-shadow:0 0 0 3px rgba(48,126,190,.1)}
.rescue-map-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 9px}
.rescue-map-toolbar #rescueGpsStatus{color:#788da1;font-size:10px}
.rescue-coordinate-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:7px 2px 12px;color:#7a8d9f;font-size:10px}
.rescue-coordinate-row b{color:#355b7d;font-variant-numeric:tabular-nums}
.rescue-location-fields{margin-top:10px}
.rescue-helper-hint{margin-top:11px;padding:10px 12px;border:1px solid #d8e9df;border-radius:10px;background:#f2faf5;color:#28744e;font-size:11px;font-weight:700;line-height:1.5}
.rescue-helper-hint.verified{border-color:#f0d5d6;background:#fff6f5;color:#a83d45}
.rescue-photo-actions{display:flex;gap:8px;flex-wrap:wrap}
.rescue-photo-preview{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;min-height:46px;margin-top:10px;padding:9px;border:1px dashed #d8e4ed;border-radius:10px;background:#fafcfe;color:#8493a2;font-size:10px}
.rescue-photo-preview-item{display:flex;flex-direction:column;gap:4px;width:72px;min-width:0}
.rescue-photo-preview-item img{width:72px;height:58px;object-fit:cover;border-radius:8px;border:1px solid #e1e8ee}
.rescue-photo-preview-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#708397;font-size:9px}
.rescue-photo-count{align-self:center;color:#28764f;font-size:10px;font-weight:800}
.rescue-field-help{display:block;margin-top:7px;color:#8594a3;font-size:9px;line-height:1.5}
.rescue-consent{display:flex;align-items:flex-start;gap:9px;margin-top:13px;color:#60768b;font-size:10px;line-height:1.55}
.rescue-consent input{flex:0 0 auto;width:16px;height:16px;margin:1px 0 0;accent-color:#2476b9}
.rescue-submit-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.rescue-honeypot{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.rescue-detail-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.8fr);align-items:start;gap:14px}
.rescue-detail-main{display:flex;flex-direction:column;gap:13px;min-width:0}
.rescue-detail-side{position:sticky;top:14px;display:flex;flex-direction:column;gap:10px;min-width:0}
.rescue-detail-status-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.rescue-case-created{color:#8493a1;font-size:9px}
.rescue-detail-card h2{margin:10px 0 5px;color:#1b456a;font-size:17px}
.rescue-detail-lead{margin:0;color:#6d8296;font-size:12px}
.rescue-detail-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px}
.rescue-detail-facts>div{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid #e7edf3;border-radius:10px;background:#f9fbfd}
.rescue-detail-facts>div.full{grid-column:1/-1}
.rescue-detail-facts span{color:#8493a2;font-size:9px}
.rescue-detail-facts strong{color:#345a7a;font-size:11px;line-height:1.4}
.rescue-detail-text{margin-top:13px;padding-top:11px;border-top:1px solid #edf1f5}
.rescue-detail-text strong{color:#3c5c78;font-size:11px}
.rescue-detail-text p{margin:5px 0 0;color:#5c7388;font-size:11px;line-height:1.6}
.rescue-member-only-note{padding:11px;border-radius:10px;background:#f5f8fb;color:#74889a;font-size:10px;line-height:1.55}
.rescue-private-location{display:flex;flex-direction:column;gap:6px;margin-top:10px;padding:11px;border:1px solid #dce8f2;border-radius:10px;background:#f7fbff;color:#486780;font-size:11px;line-height:1.5}
.rescue-private-location strong{color:#244d70}
.rescue-private-location p{margin:0;overflow-wrap:anywhere}
.rescue-contact-private{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding:10px;border:1px solid #f0e1c6;border-radius:10px;background:#fffbf4;color:#8d682d;font-size:11px}
.rescue-contact-private a{color:#9b6415;font-weight:900;text-decoration:none}
.rescue-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rescue-photo-item{position:relative;display:block;min-width:0;overflow:hidden;border-radius:10px;background:#edf2f6}
.rescue-photo-item img{display:block;width:100%;height:120px;object-fit:cover}
.rescue-photo-item span{position:absolute;left:5px;right:5px;bottom:5px;padding:4px 6px;border-radius:6px;background:rgba(14,37,57,.72);color:#fff;font-size:9px;text-align:center}
.rescue-timeline{display:flex;flex-direction:column;gap:0;margin:12px 0 0;padding:0;list-style:none}
.rescue-timeline li{position:relative;display:flex;gap:10px;padding:0 0 15px}
.rescue-timeline li:before{position:absolute;left:5px;top:12px;bottom:-1px;width:1px;background:#dce7ef;content:""}
.rescue-timeline li:last-child:before{display:none}
.rescue-timeline-dot{position:relative;z-index:1;flex:0 0 11px;width:11px;height:11px;margin-top:3px;border:2px solid #fff;border-radius:50%;background:#4c91c7;box-shadow:0 0 0 1px #a9c7df}
.rescue-timeline li>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.rescue-timeline strong{color:#315978;font-size:11px}
.rescue-timeline small{color:#8997a4;font-size:9px}
.rescue-timeline p{margin:3px 0 0;color:#647b90;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.rescue-action-card h2{margin:0 0 9px;color:#1c466a;font-size:16px}
.rescue-action-card h3{margin:0 0 8px;color:#315a7b;font-size:12px}
.rescue-action-card>p{margin:8px 0;color:#6b8094;font-size:11px;line-height:1.55}
.rescue-action-divider{height:1px;margin:13px 0;background:#e9eef3}
.rescue-update-form{display:flex;flex-direction:column;gap:10px}
.rescue-update-form label{font-size:10px}
.rescue-update-form textarea{font-size:11px}
.rescue-update-form input[type=file]{padding:8px;font-size:10px}
.rescue-release-form{margin-top:8px}
.rescue-complete-note{margin-top:10px;padding:9px;border-radius:9px;background:#eaf7ef;color:#28774e;font-size:11px;font-weight:800}
.rescue-apply-status{margin:0 0 12px;padding:11px 13px;border-radius:10px;font-size:11px;font-weight:800}
.rescue-apply-status.approved{background:#eaf7ef;color:#27764d}.rescue-apply-status.pending{background:#fff6e8;color:#98651e}.rescue-apply-status.rejected{background:#fff0f0;color:#b43d45}
.rescue-admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.rescue-admin-tabs{display:flex;gap:5px;margin:0 0 14px;padding:4px;border:1px solid #e3ebf2;border-radius:11px;background:#f7fafc}
.rescue-admin-tabs a{flex:1;padding:9px 10px;border-radius:8px;color:#6c8094;font-size:11px;font-weight:800;text-align:center;text-decoration:none}
.rescue-admin-tabs a.active{background:#fff;color:#1e65a2;box-shadow:0 1px 4px rgba(20,57,90,.1)}
.rescue-admin-case-list,.rescue-helper-list{display:flex;flex-direction:column;gap:9px}
.rescue-admin-case,.rescue-helper-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.65fr);gap:14px;padding:13px;border:1px solid #e4ebf2;border-radius:12px;background:#fff}
.rescue-admin-case-main h3,.rescue-helper-card h3{margin:8px 0 4px;color:#254d70;font-size:13px}
.rescue-admin-case-main p,.rescue-helper-card p{margin:4px 0;color:#71859a;font-size:10px;line-height:1.5}
.rescue-admin-assign{display:flex;flex-direction:column;gap:7px;justify-content:center;padding:10px;border-radius:10px;background:#f7fafc}
.rescue-admin-assign label,.rescue-helper-review-form label{display:flex;flex-direction:column;gap:5px;color:#647b90;font-size:10px;font-weight:800}
.rescue-admin-assign select,.rescue-helper-review-form input{min-height:36px;padding:7px 9px;font-size:10px}
.rescue-helper-card{display:block}
.rescue-helper-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rescue-helper-card-top h3{margin:0 0 3px;font-size:14px}
.rescue-helper-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.rescue-helper-info-grid>div{display:flex;flex-direction:column;gap:4px;padding:9px;border-radius:9px;background:#f7fafc}
.rescue-helper-info-grid span{color:#8493a2;font-size:9px}
.rescue-helper-info-grid strong{color:#345a79;font-size:10px}
.rescue-helper-review-form{display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:11px;border-top:1px solid #edf1f5}
.rescue-helper-review-form>div{display:flex;gap:8px;flex-wrap:wrap}
.rescue-not-found{margin:30px auto;max-width:600px;padding:24px}
.rescue-not-found h1{color:#1b456a;font-size:22px}
@media(max-width:760px){
  .rescue-page-heading{align-items:flex-start;flex-direction:column;gap:10px}
  .rescue-heading-actions{width:100%}
  .rescue-heading-actions .button{flex:1 1 auto}
  .rescue-main-map{height:300px}
  .rescue-detail-layout{grid-template-columns:1fr}
  .rescue-detail-side{position:static;grid-row:1}
  .rescue-case-grid{grid-template-columns:1fr}
  .rescue-admin-case{grid-template-columns:1fr}
  .rescue-admin-assign{display:grid;grid-template-columns:1fr auto;align-items:end}
}
@media(max-width:520px){
  .rescue-page-heading h1{font-size:23px}
  .rescue-page-heading p{font-size:11px}
  .rescue-stat-row{gap:6px}
  .rescue-stat{padding:10px 9px;border-radius:11px}
  .rescue-stat span{font-size:9px;line-height:1.35}
  .rescue-stat strong{font-size:20px}
  .rescue-map-section,.rescue-cases-section,.rescue-form-card,.rescue-detail-card,.rescue-action-card{padding:12px;border-radius:12px}
  .rescue-section-top h2{font-size:15px}
  .rescue-section-top p{font-size:10px}
  .rescue-main-map{height:260px;min-height:230px}
  .rescue-map-canvas{height:260px;min-height:220px}
  .rescue-field-grid{grid-template-columns:1fr;gap:10px}
  .rescue-field-full{grid-column:auto}
  .rescue-map-toolbar .button{min-height:38px}
  .rescue-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rescue-admin-tabs a{font-size:10px;padding:8px 5px}
  .rescue-admin-assign{grid-template-columns:1fr}
  .rescue-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rescue-photo-item img{height:110px}
  .rescue-detail-facts{gap:6px}
  .rescue-detail-facts>div{padding:8px}
  .rescue-submit-row{display:grid;grid-template-columns:1fr}
  .rescue-submit-row .button{width:100%}
  .rescue-safety-note{font-size:10px}
}


/* Rescue entry points in the existing Flood Watch shell */
.main-nav .nav-rescue-cta{border:1px solid #f0cfd1;border-radius:9px;background:#fff5f4;color:#b63d45!important;font-weight:900}
.main-nav .nav-rescue-cta:hover{background:#ffebe9}
.rescue-home-strip{
  display:flex;align-items:center;gap:12px;margin:0 0 17px;padding:13px 15px;
  border:1px solid #e7d9d9;border-radius:14px;background:linear-gradient(105deg,#fff8f7 0%,#fff 68%);
}
.rescue-home-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#ffeded;color:#d3454d;font-size:23px;font-weight:900}
.rescue-home-copy{flex:1;min-width:0}
.rescue-home-copy strong{display:block;color:#713b42;font-size:13px}
.rescue-home-copy p{margin:3px 0 0;color:#8b7478;font-size:10px;line-height:1.5}
.rescue-home-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.rescue-home-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 11px;border-radius:9px;font-size:10px;font-weight:900;text-decoration:none;white-space:nowrap}
.rescue-home-primary{background:#d9434d;color:#fff;border:1px solid #d9434d}
.rescue-home-secondary{background:#fff;color:#a34249;border:1px solid #efd1d3}
@media(max-width:700px){
  .rescue-home-strip{align-items:flex-start;flex-wrap:wrap;padding:11px}
  .rescue-home-copy{flex:1 1 calc(100% - 55px)}
  .rescue-home-actions{width:100%;padding-left:52px}
  .rescue-home-actions a{flex:1}
}
