:root{
  --deep:#0b3f4a; --teal:#1f7a8c; --ink:#14272d; --mute:#6b7c82; --chalk:#f3f6f5;
  --line:#dde6e5; --amber:#d9822b; --rise:#c4452d; --fall:#2a8a6a; --card:#fff;
}
*{box-sizing:border-box}
html,body,#map{margin:0;width:100%;height:100%}
body{font-family:"Instrument Sans",system-ui,sans-serif;color:var(--ink);overflow:hidden;background:var(--chalk);font-variant-numeric:tabular-nums}
button{font:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
p{font-size:13px;color:var(--mute);line-height:1.5;margin:6px 0}
h1{font-size:25px;margin:5px 0}
h2{font-size:22px;margin:8px 0 2px}

/* Header */
header{position:absolute;z-index:1000;top:16px;left:16px;right:16px;height:60px;background:#fffffff2;border:1px solid var(--line);border-radius:15px;display:flex;align-items:center;padding:0 14px 0 18px;box-shadow:0 8px 30px #17323a18;backdrop-filter:blur(8px)}
.brand b{display:block;font-size:17px;color:var(--deep)}
.brand small{display:block;color:#78868c;font-size:11px}
#status{margin-left:28px;color:var(--mute);font-size:12px}
#status:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--fall);margin-right:6px}
header button{border:0;background:#eef4f5;border-radius:9px;padding:9px 12px;font-weight:600;color:#31545c;margin-left:7px;transition:background .15s}
header button:hover{background:#e1ecee}
header #dashboardBtn{margin-left:auto;background:var(--deep);color:#fff}
header #dashboardBtn:hover{background:#0f4e5c}

/* Side panel */
#panel{position:absolute;z-index:900;left:16px;top:92px;bottom:16px;width:390px;background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:0 12px 40px #17323a20;padding:22px;overflow:auto}
#close{float:right;border:0;background:#f0f4f5;border-radius:50%;width:30px;height:30px;font-size:20px;color:#66757b}
.eyebrow{font-size:12px;font-weight:600;color:#66838b;margin:0}
.pill{display:inline-block;background:#edf5f6;color:#246a77;border-radius:20px;padding:5px 10px;font-size:11px;font-weight:600;margin:14px 0 0}
.titleRow{display:flex;align-items:center}
.titleRow h2{flex:1}
.star{border:0;background:none;font-size:30px;color:#c9b27a;transition:transform .15s,color .15s}
.star:hover{transform:scale(1.15)}
.star.on{color:var(--amber)}
.level{margin:16px 0 10px;padding:15px;border:1px solid #dfeaec;background:#f3f8f8;border-radius:14px;position:relative}
.level span{display:block;color:#7a878d;font-size:11px}
.level strong{display:block;font-size:32px;margin-top:2px;letter-spacing:-.5px}
.level small{color:#78858b;font-size:11px}
.level b{position:absolute;right:15px;top:18px;font-size:12px;color:var(--mute)}
[data-t=up]{color:var(--rise)!important}
[data-t=down]{color:var(--fall)!important}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.stats div{background:#fafcfc;border:1px solid #e8edef;border-radius:9px;padding:9px}
.stats small{display:block;color:#7a878d;font-size:11px}
.stats b{display:block;font-size:12px;margin-top:3px}
.stats.meta{margin-top:12px}
.chart{height:240px;border:1px solid #e5ebed;border-radius:13px;margin-top:10px;padding:10px 8px 6px;position:relative}
.chart canvas{width:100%!important;height:100%!important}
.chart #loading{position:absolute;inset:0;display:grid;place-items:center;color:#829097;font-size:12px;background:#fffc;border-radius:13px}
#alert{width:100%;border:0;background:var(--deep);color:#fff;border-radius:10px;padding:13px;font-weight:700;margin-top:14px;transition:background .15s}
#alert:hover{background:#0f4e5c}
#assign{width:100%;border:1px solid #d6e0e2;background:#fff;color:var(--deep);border-radius:10px;padding:11px;font-weight:700;margin-top:8px}
#assign:hover{background:#eef4f5}
#source{display:block;text-align:center;color:#52727a;font-size:12px;margin-top:11px;text-decoration:none}

/* Range chips */
.ranges{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;margin-top:14px;padding-bottom:2px}
.ranges::-webkit-scrollbar{display:none}
.ranges button{border:0;background:#edf3f3;color:#3c5c63;padding:6px 11px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .15s,color .15s}
.ranges button:hover{background:#dfeaea}
.ranges button.on{background:var(--deep);color:#fff}

/* Search + legend */
.search{position:absolute;z-index:1000;right:16px;top:92px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:5px;display:flex;box-shadow:0 7px 25px #17323a18}
.search input{border:0;outline:0;padding:8px;width:210px;font:inherit;font-size:13px}
.search button{border:0;border-radius:7px;padding:0 12px;background:#edf5f6;font-weight:600;color:#315861}
.legend{position:absolute;z-index:800;right:18px;bottom:22px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font-size:11px;color:#68777e}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--teal);margin-right:4px;vertical-align:-1px}
.dot.fav{background:var(--amber)}

/* Modal */
.modal{position:fixed;z-index:3000;inset:0;background:#0b2a3188;display:grid;place-items:center;padding:20px}
.modal[hidden]{display:none}
.modalCard{width:min(460px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:0 30px 80px #0b2a3155}
.modalCard>button{float:right;border:0;border-radius:50%;width:30px;height:30px;background:#f0f4f5}
.formGrid{display:grid;gap:10px;margin-top:12px}
.formGrid input,.formGrid select,.formGrid button{padding:11px;border:1px solid #d6e0e2;border-radius:9px;font:inherit;font-size:14px;background:#fff}
.formGrid .check{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink)}
.formGrid .check input{width:auto}
.primary{background:var(--deep)!important;color:#fff!important;border:0!important;font-weight:700}
.row{display:flex;gap:8px;margin-top:12px}
.row button{padding:11px 14px;border:1px solid #d6e0e2;border-radius:9px;background:#fff}
.notice{padding:10px;background:#fff6dd;border-radius:9px;font-size:12px;color:#7a5a12}

/* Toast */
#toast{position:fixed;z-index:4000;left:50%;bottom:28px;transform:translate(-50%,20px);background:var(--deep);color:#fff;padding:10px 18px;border-radius:999px;font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#toast.show{opacity:1;transform:translate(-50%,0)}

/* Dashboard */
.dash{position:fixed;z-index:2000;inset:0;overflow:auto;background:var(--chalk)}
.dash[hidden]{display:none}
.dashBand{position:sticky;top:0;z-index:5;background:linear-gradient(160deg,#0b3f4a,#0f5663);color:#fff;box-shadow:0 10px 30px #0b3f4a33}
.dashBandIn{max-width:1240px;margin:0 auto;padding:22px 28px 16px}
.dashTitle{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.dashTitle h2{font-size:34px;letter-spacing:-.8px;margin:0}
.dashTitle p{color:#a9cdd3;margin:4px 0 0;font-size:14px}
#dashClose{border:0;background:#ffffff1f;color:#fff;border-radius:50%;width:38px;height:38px;font-size:22px;transition:background .15s}
#dashClose:hover{background:#ffffff38}
.dash .ranges button{background:#ffffff1a;color:#d3e8ea}
.dash .ranges button:hover{background:#ffffff2e}
.dash .ranges button.on{background:#fff;color:var(--deep)}
.dashBody{max-width:1240px;margin:0 auto;padding:24px 28px 48px}
.dashGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(470px,1fr));gap:20px}
.dcard{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px 20px 14px;box-shadow:0 1px 2px #17323a0d}
.dTop{display:flex;justify-content:space-between;gap:12px}
.dTop h3{margin:0;font-size:18px;letter-spacing:-.2px}
.dTop p{margin:2px 0 0}
.dBtns{display:flex;gap:6px;align-items:flex-start;flex-shrink:0}
.dBtns button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600;color:#31545c}
.dBtns button:hover{background:#f1f6f6}
.dBtns .ghost{border-color:transparent;color:#98a5a9}
.dBtns .ghost:hover{color:var(--rise);background:#fbeeeb}
.dNow{display:flex;align-items:baseline;gap:12px;margin:16px 0 12px;flex-wrap:wrap}
.dLevel{font-size:44px;letter-spacing:-1.5px;line-height:1}
.dTrend{font-size:13px;font-weight:700;color:var(--mute)}
.dTime{color:#8a999e;font-size:12px;margin-left:auto}
.dStats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dStats div{background:var(--chalk);border-radius:10px;padding:9px 11px}
.dStats small{display:block;color:#7a878d;font-size:11px}
.dStats b{display:block;font-size:14px;margin-top:2px}
.dAlert{display:grid;grid-template-columns:1fr auto;gap:6px 10px;margin-top:12px;padding:10px 12px;border-radius:10px;background:#fdf4e6;font-size:12px;color:#6d4a14}
.dAlert .gap{font-style:normal;font-weight:700}
.dAlert .bar{grid-column:1/-1;height:5px;border-radius:9px;background:#f0ddbd;overflow:hidden}
.dAlert .bar i{display:block;height:100%;width:0;background:var(--amber);border-radius:9px;transition:width .5s}
.dAlert.hit{background:#fbeae6;color:#8a2a18}
.dAlert.hit .bar{background:#f2c9c0}
.dAlert.hit .bar i{background:var(--rise)}
.dAlert.paused{background:#eef2f2;color:#6b7c82}
.dAlert.paused .bar i{background:#a8b6b9}
.dAlert.none{display:block;background:transparent;border:1px dashed var(--line);color:#8a999e}
.dChart{position:relative;height:230px;margin-top:14px}
.dChart canvas{width:100%!important;height:100%!important}
.skel{position:absolute;inset:0;display:grid;place-items:center;font-size:12px;color:#829097;border-radius:12px;background:linear-gradient(100deg,#f1f5f5 30%,#f8fbfb 50%,#f1f5f5 70%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}
@keyframes shimmer{to{background-position:-200% 0}}
.empty{grid-column:1/-1;text-align:center;padding:70px 20px;background:#fff;border:1px dashed #c8d6d6;border-radius:18px}
.empty h3{margin:0 0 4px;font-size:20px}
.empty .primary{padding:11px 18px;border-radius:10px;margin-top:10px}

@media(prefers-reduced-motion:reduce){.skel{animation:none}*{transition:none!important}}

@media(max-width:700px){
  #panel{width:calc(100% - 32px);height:52%;top:auto}
  .search{left:16px;right:16px}
  .search input{width:100%}
  .legend,#status{display:none}
  header button{padding:8px 9px;font-size:12px}
  .dashBandIn,.dashBody{padding-left:16px;padding-right:16px}
  .dashTitle h2{font-size:26px}
  .dashGrid{grid-template-columns:1fr}
  .dLevel{font-size:36px}
  .dBtns{flex-direction:column}
}

/* Countries */
.sources{position:absolute;z-index:1000;right:16px;top:148px;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:330px}
.srcChip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:600;color:var(--ink);box-shadow:0 4px 14px #17323a14;transition:opacity .15s}
.srcChip i{width:10px;height:10px;border-radius:50%;display:inline-block}
.srcChip small{color:var(--mute);font-size:11px;font-weight:500}
.srcChip.off{opacity:.45}
.srcChip.off i{background:#b5c0c3!important}
.srcChip.loading small{animation:pulse 1s ease-in-out infinite}
.srcChip.fail{border-color:#e7b9b0;color:#8a2a18}
@keyframes pulse{50%{opacity:.3}}
.histNote{font-size:11px;color:#8a6a1f;background:#fff6dd;border-radius:8px;padding:6px 9px;margin:8px 0 0}
.histNote:empty,.dNote:empty{display:none}
.dNote{font-size:11px;color:#8a6a1f;background:#fff6dd;border-radius:8px;padding:6px 9px;margin:8px 0 0}
.attrib{font-size:10.5px;line-height:1.45;color:#8a999e;margin:10px 0 0;text-align:center}
.cdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:0}
@media(max-width:700px){.sources{top:144px;left:16px;right:16px;max-width:none;justify-content:flex-start}}

/* ===== GlobalRiverWatch brand + polish ===== */
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit}
.brand img{display:block}
.brand b{font-family:Fraunces,Georgia,serif;font-size:19px;font-weight:700;letter-spacing:-.3px;color:var(--deep)}
.brand small{font-size:11px;color:#78868c}
header nav{margin-left:auto}
header nav a{color:#31545c;text-decoration:none;font-weight:600;font-size:14px;padding:9px 12px;border-radius:9px}
header nav a:hover{background:#eef4f5}
header #dashboardBtn{margin-left:7px}
h1,h2{font-family:Fraunces,Georgia,serif;letter-spacing:-.4px}
#intro a,.mineEmpty a{color:var(--teal);font-weight:600;font-size:13px}
.dot.sq{border-radius:3px;transform:rotate(45deg);background:var(--deep);width:9px;height:9px}
.cdot.sq{border-radius:2px;transform:rotate(45deg)}
.dashTitle h2{font-family:Fraunces,Georgia,serif}
.secHead{grid-column:1/-1;margin:14px 0 -4px;font-size:15px;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:8px}
.secHead:first-child{margin-top:0}
.secHead span{background:#e3ecec;color:#3c5c63;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:600}
.dcard.mine{border-color:#b9d3d8;box-shadow:0 0 0 3px #1f7a8c14,0 1px 2px #17323a0d}
.dMeta{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0}
.dMeta span{font-size:11px;font-weight:600;color:#3c5c63;background:#eaf2f3;border-radius:999px;padding:3px 9px}
.mineEmpty{grid-column:1/-1;background:linear-gradient(160deg,#0b3f4a,#0f5663);color:#fff;border-radius:18px;padding:22px 24px}
.mineEmpty h3{margin:0 0 4px;font-family:Fraunces,Georgia,serif;font-size:20px}
.mineEmpty p{color:#bcd7db;margin:0 0 8px}
.mineEmpty a{color:#fff}
.fcBox{margin-top:10px;padding:11px 12px;border-radius:10px;background:#eef4f5;font-size:13px;color:#31545c;line-height:1.45}
.fcBox button{display:block;width:100%;margin-top:8px;border:1px solid #cfdfe2;background:#fff;color:var(--deep);border-radius:9px;padding:10px;font:inherit;font-weight:700;cursor:pointer}
.fcBox button:hover{background:#f6fafa}
.fcBox button:disabled{opacity:.6;cursor:default}
.dFc{margin-top:10px}
.stale{margin-top:10px;padding:10px 12px;border-radius:10px;background:#FBEAE6;color:#8A2A18;font-size:13px;line-height:1.45}
.dTime.stale{display:block;margin:6px 0 0;padding:6px 10px;font-size:12px}

/* Normal range */
.normal{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#e3f2ec;color:#1f6b52;vertical-align:1px}
.normal[hidden]{display:none}
.normal[data-k=high]{background:#fdeedd;color:#9a5410}
.normal[data-k=record]{background:#fbe2dc;color:#8a2a18}
.normal[data-k=low]{background:#e8eef6;color:#3a5680}
.dNow .normal{margin-left:0}
#normal{display:inline-block;margin-left:8px}
#normal[hidden]{display:none}
.legend{right:62px}
.osm{display:none}
.rangeNote{font-size:11.5px;color:#4d6a62;background:#eef7f3;border-radius:8px;padding:6px 9px;margin:8px 0 0}

/* Official flood warnings */
.legend .tri,.warnChip .tri{display:inline-block;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:10px solid #d0442b;border-radius:0;background:none!important;vertical-align:-1px;margin-right:4px}
.warnChip .tri{margin-right:0}
.warnBox{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fdf1e3;border-left:4px solid #e39a17;font-size:13px;color:#5f3d0c}
.warnBox[hidden]{display:none}
.warnBox.s2{background:#fbeae6;border-left-color:#d0442b;color:#7d2414}
.warnBox.s1{background:#f7dede;border-left-color:#8f1d1d;color:#6b1414}
.warnBox.info{background:#eef4f5;border-left-color:#1f7a8c;color:#31545c}
.warnBox a{color:inherit}
.warnHead{margin:0 0 4px;font-size:13px;font-weight:700;color:inherit}
.warnItem{display:flex;gap:8px;align-items:flex-start;padding:4px 0;text-decoration:none;line-height:1.35}
.warnItem i{flex:none;width:9px;height:9px;border-radius:2px;margin-top:4px;transform:rotate(45deg)}
.warnItem span{text-decoration:underline;text-decoration-color:#0003;text-underline-offset:2px}
.warnBox small{display:block;font-size:11px;opacity:.8;margin-top:2px}
.dWarn{margin-top:0;margin-bottom:10px}
.wPop{font-family:"Instrument Sans",system-ui,sans-serif;font-size:13px;line-height:1.45}
.wPop>b{font-size:14px}
.wPop h4{margin:6px 0 0;font-size:14px;color:var(--ink)}
.wPop p{margin:4px 0;font-size:12.5px;color:#41545a}
.wPop .wWhat{margin:0;font-weight:600;color:#41545a}
.wPop .wSub{color:#7a878d;font-size:11.5px}
.wPop a{display:inline-block;margin-top:4px;font-weight:700;color:var(--teal)}
.notOfficial{background:#fff6dd;border-radius:9px;padding:8px 10px;color:#6d5214!important}
.notOfficial a{color:inherit;font-weight:600}
.fine{font-size:11.5px}
.fine a{color:var(--teal)}

/* Phone and small tablet */
.narrow{display:none}
@media(max-width:700px){
  .wide{display:none}
  .narrow{display:inline}
  svg.narrow{display:block}
  header{top:10px;left:10px;right:10px;height:54px;padding:0 8px 0 12px;border-radius:14px}
  header nav{display:none}
  header #dashboardBtn{margin-left:auto}
  header #locate{padding:8px}
  .brand img{width:30px;height:30px}
  .brand small{display:none}
  .search{top:72px;left:10px;right:10px}
  .search input{font-size:16px;padding:7px 8px}
  .sources{top:120px;left:10px;right:10px;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;scrollbar-width:none;padding:2px 2px 8px}
  .sources::-webkit-scrollbar{display:none}
  .srcChip{flex:none}
  .leaflet-control-zoom{display:none}
  .leaflet-bottom{z-index:850}
  .osm{display:block;font-size:10.5px;color:#8a999e;text-align:center;margin:12px 0 0}
  #panel{left:0;right:0;bottom:0;top:auto;width:auto;height:auto;max-height:62vh;max-height:62dvh;border-radius:20px 20px 0 0;border-bottom:0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px #17323a2a;overscroll-behavior:contain}
  #panel:before{content:"";display:block;width:40px;height:4px;border-radius:9px;background:#d5dfe1;margin:-8px auto 8px}
  #panel.shut{display:none}
  #intro h1{font-size:21px}
  #intro p{margin:4px 0}
  .pill{margin-top:4px}
  .level strong{font-size:28px}
  .chart{height:210px}
  .modal{padding:12px;align-items:end}
  .modalCard{padding:20px 18px;max-height:85vh;max-height:85dvh}
  .formGrid input,.formGrid select{font-size:16px}
  .row{flex-wrap:wrap}
  .dashBandIn{padding-top:16px;padding-bottom:12px}
  .dashBody{padding-top:16px}
  .dcard{padding:16px 14px 12px;border-radius:16px}
  .dTop{flex-direction:column;gap:8px}
  .dBtns{flex-direction:row;flex-wrap:wrap}
  .dTime{margin-left:0;width:100%}
  .dChart{height:200px}
  #toast{bottom:calc(20px + env(safe-area-inset-bottom));max-width:calc(100% - 32px);text-align:center}
}
@media(max-width:400px){
  .brand span{display:none}
}

/* Height above sea level */
.level .aod{display:block;margin-top:3px;color:#3c5c63;font-size:12px;font-weight:600}
.level .aod[hidden]{display:none}
.dAod{color:#5d7176;font-size:12px;font-weight:600}
.dAod[hidden]{display:none}

/* 3D scans */
.scanPin{position:relative;width:30px;height:30px;border-radius:9px;background:#5b3fa0;border:2px solid #fff;display:grid;place-items:center;box-shadow:0 2px 8px #0005}
.wPop .scanTag{color:#5b3fa0}

/* Railways: ELR & mileage */
.railChip .rail,.legend .rail{display:inline-block;width:14px;height:4px;border-radius:2px;background:#4a3f6b;vertical-align:2px}
.elrLabel{display:inline-block;transform:translate(-50%,-50%);background:#4a3f6b;color:#fff;font:700 11px/1 "Instrument Sans",system-ui,sans-serif;padding:3px 6px;border-radius:5px;white-space:nowrap;box-shadow:0 1px 3px #0003}
.mileMark{display:inline-block;transform:translate(-50%,-50%);background:#fff;color:#4a3f6b;border:1.5px solid #4a3f6b;font:700 10px/1 "Instrument Sans",system-ui,sans-serif;padding:2px 4px;border-radius:9px;white-space:nowrap}
.qMark{display:block;width:5px;height:5px;border-radius:50%;background:#4a3f6b;transform:translate(-50%,-50%)}
.wPop .railTag{color:#4a3f6b}
.mileMark i{font-style:normal;font-weight:600;opacity:.75}

/* Main rivers */
.mainChip .mainr{display:inline-block;width:14px;height:4px;border-radius:2px;background:#1c5fd0;vertical-align:2px}
.wPop .mainTag{color:#1c5fd0}
.scanCount{position:absolute;top:-8px;right:-8px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ffb300;color:#3a2600;font:700 11px/18px "Instrument Sans",system-ui,sans-serif;text-align:center;border:2px solid #fff}
.wPop .scanItem{border-top:1px solid #e3e9ea;margin-top:8px;padding-top:6px}
.wPop .scanItem:first-of-type{border-top:0;margin-top:2px;padding-top:0}
.wPop .scanLinks{display:flex;gap:14px;flex-wrap:wrap;margin:6px 0 0}
.obsChip .obs{display:inline-block;width:10px;height:10px;border-radius:50%;background:#d9480f;border:1.5px solid #fff;box-shadow:0 0 0 1px #d9480f;vertical-align:-1px}
.wPop .obsTag{text-transform:none}
.obsTable{border-collapse:collapse;font-size:12.5px;margin:6px 0;width:100%}
.obsTable td{padding:2px 6px 2px 0;vertical-align:top}
.obsTable td:first-child{color:#5f7178;white-space:nowrap}
.obsKey{background:#fffffff2;border-radius:10px;padding:7px 10px;box-shadow:0 4px 16px #0003;font:12px "Instrument Sans",system-ui,sans-serif;color:#24474f;display:grid;grid-template-columns:1fr 1fr;gap:2px 10px;max-width:230px}
.obsKey b{grid-column:1/-1;font-size:12px;color:#0b3f4a}
.obsKey span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.obsKey i{width:9px;height:9px;border-radius:50%;border:1.5px solid #fff;box-shadow:0 0 0 1px #0002}
@media(max-width:700px){.obsKey{display:none}}
.nearBtn{border:0;background:#0b3f4a;color:#fff;font:700 13px "Instrument Sans",system-ui,sans-serif;padding:9px 13px;border-radius:10px;box-shadow:0 4px 16px #0004;cursor:pointer}
.nearBtn.on{background:#ffb300;color:#3a2600}
.leaflet-container.picking{cursor:crosshair}
.nearPanel{position:absolute;z-index:1000;left:16px;bottom:16px;width:380px;max-height:min(70vh,620px);display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 14px 44px #0005;font:14px "Instrument Sans",system-ui,sans-serif;color:#14272d;overflow:hidden}
.nearHead{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;background:#0b3f4a;color:#fff}
.nearHead b{font-size:16px;display:block}
.nearHead small{color:#c4dde1;font-size:12.5px}
.nearHead select{font:inherit;font-size:12.5px;border-radius:6px;border:0;padding:1px 4px}
.nearHead button{border:0;background:#ffffff22;color:#fff;border-radius:8px;width:30px;height:30px;font-size:18px;cursor:pointer}
.nearMsg{padding:14px;margin:0}
.nearCounts{display:flex;flex-wrap:wrap;gap:4px 10px;padding:10px 14px;border-bottom:1px solid #dde6e5;font-size:12.5px}
.nearCounts span,.nearList li{display:flex;align-items:center;gap:6px}
.nearCounts i,.nearList i{flex:none;width:10px;height:10px;border-radius:50%;border:1.5px solid #fff;box-shadow:0 0 0 1px #0003}
.nearList{list-style:none;margin:0;padding:4px 6px;overflow:auto;flex:1}
.nearList li{padding:7px 8px;border-radius:9px;cursor:pointer}
.nearList li:hover{background:#f1f6f7}
.nearList li span{flex:1;min-width:0}
.nearList li b{text-transform:capitalize}
.nearList li small{display:block;color:#5f7178;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nearList li em{font-style:normal;font-weight:700;color:#0b3f4a;font-size:12.5px;white-space:nowrap}
.nearList .nearNone{cursor:default;color:#5f7178}
.nearActs{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid #dde6e5;font-size:12px;color:#5f7178}
.nearActs button{border:1px solid #cfe0e3;background:#f3f8f9;color:#163f48;border-radius:9px;padding:7px 11px;font:700 13px "Instrument Sans",system-ui,sans-serif;cursor:pointer}
@media(max-width:700px){.nearPanel{left:0;right:0;bottom:0;width:auto;border-radius:18px 18px 0 0;max-height:55vh}}
.nearPin{display:block;width:26px;height:26px;background:#0b3f4a;border:3px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 3px 10px #0006;cursor:grab}
.nearPin::after{content:"";position:absolute;left:6px;top:6px;width:8px;height:8px;border-radius:50%;background:#ffb300}
.resMark{display:inline-block;width:12px;height:12px;background:#1c7ed6;border:2px solid #fff;border-radius:3px;box-shadow:0 0 0 1px #0b3f4a88,0 1px 4px #0005}
.resMark.high{box-shadow:0 0 0 2px #e03131,0 1px 4px #0005}
.obsKey .resKey i.resMark{width:9px;height:9px;border-radius:2px}
.nearList i.resMark{flex:none;width:10px;height:10px}
.resHigh{color:#e03131}
