/* Home Base Search — one stylesheet.
   Layout: light top bar; Map view is three columns on wide screens (filters | map | places), map + filters on mid widths
   (places list under the map), and map-first on phones with filters in a full-height sheet.
   Palette: cool neutral page, white panels, one accent (Tide Guide blue #2a67a5), navy #17254b for the brand and "must" state.
   The map has its own quiet basemap tokens and a five-step data ramp (--m1 worst, orange … --m5 best, blue). No green UI accents. */
:root{
  --bg:#eef2f7; --surface:#ffffff; --mapbg:#f4f7fb; --sc-ink:#1f5288; --surface-2:#eef1f5; --sunk:#f3f5f8; --fg:#172033; --muted:#5a6477; --faint:#687184;
  --line:#e2e6ec; --line-strong:#c4cbd6; --accent:#2a67a5; --accent-strong:#1f5288; --accent-soft:#e4edf7; --accent-ink:#ffffff; --navy:#17254b; --navy-ink:#ffffff;
  --warn:#9a5c0b; --warn-soft:#fbefd9; --bad:#b23d2e; --bad-soft:#f8e3df; --ok:#2a67a5; --orange:#d9772b;
  --water:#d6e4f0; --land:#f7f6f2; --nland:#ebebe6; --cline:#e4e3dd; --sline:#7f8a9c; --mline:#3d4a63; --river:#7eaad3; --road:#bf9f72; --park:rgba(80,140,70,.30); --park-line:rgba(86,116,76,.55); --label:#2c3546; --label-halo:rgba(255,255,255,.92); --town:#6a7385; --forest:rgba(104,150,90,.24); --park-text:#4c6b44; --state-text:#5f6b80;
  --hatch-bg:#f0eeeb; --hatch:#d9aaa1; --nodata-bg:#eef0f3; --nodata-dot:#a9b1bf;
  --m1:#d2694f; --m2:#efb27c; --m3:#f1e1b4; --m4:#8db8d8; --m5:#2a67a5;
  --shadow:0 10px 30px rgba(23,32,51,.14); --shadow-sm:0 1px 3px rgba(23,32,51,.10);
  --display:"Bricolage Grotesque","Avenir Next","Helvetica Neue",Arial,sans-serif;
  --body:"Source Sans 3","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --topH:64px; --fW:340px; --pW:390px; --r:12px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0b111d; --surface:#151f33; --mapbg:#111a2b; --sc-ink:#9cc2ec; --surface-2:#1d2a42; --sunk:#121b2d; --fg:#e8edf6; --muted:#a2adc2; --faint:#8f9bb2;
  --line:#26334d; --line-strong:#3a4a6a; --accent:#76a9e0; --accent-strong:#9cc2ec; --accent-soft:#1f3557; --accent-ink:#0b1426; --navy:#c9d8f0; --navy-ink:#0e1523;
  --warn:#e6b05a; --warn-soft:#3a2d17; --bad:#ef8a7b; --bad-soft:#3d2224; --ok:#76a9e0; --orange:#f09a52;
  --water:#13223a; --land:#1d283d; --nland:#18213a; --cline:#26324a; --sline:#7787a3; --mline:#c9d3e6; --river:#3f6a96; --road:#6d5f4c; --park:rgba(120,160,110,.14); --park-line:rgba(130,170,120,.45); --label:#dfe6f2; --label-halo:rgba(14,21,35,.9); --town:#9aa6bc; --forest:rgba(120,165,110,.16); --park-text:#9cc092; --state-text:#97a3ba;
  --hatch-bg:#2a2a35; --hatch:#a3665d; --nodata-bg:#222c40; --nodata-dot:#56627a;
  --m1:#e07a60; --m2:#eeb07a; --m3:#e6d9ab; --m4:#7fb0dc; --m5:#5b97e6;
  --shadow:0 12px 36px rgba(0,0,0,.5); --shadow-sm:0 1px 3px rgba(0,0,0,.4); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0b111d; --surface:#151f33; --mapbg:#111a2b; --sc-ink:#9cc2ec; --surface-2:#1d2a42; --sunk:#121b2d; --fg:#e8edf6; --muted:#a2adc2; --faint:#8f9bb2;
  --line:#26334d; --line-strong:#3a4a6a; --accent:#76a9e0; --accent-strong:#9cc2ec; --accent-soft:#1f3557; --accent-ink:#0b1426; --navy:#c9d8f0; --navy-ink:#0e1523;
  --warn:#e6b05a; --warn-soft:#3a2d17; --bad:#ef8a7b; --bad-soft:#3d2224; --ok:#76a9e0; --orange:#f09a52;
  --water:#13223a; --land:#1d283d; --nland:#18213a; --cline:#26324a; --sline:#7787a3; --mline:#c9d3e6; --river:#3f6a96; --road:#6d5f4c; --park:rgba(120,160,110,.14); --park-line:rgba(130,170,120,.45); --label:#dfe6f2; --label-halo:rgba(14,21,35,.9); --town:#9aa6bc; --forest:rgba(120,165,110,.16); --park-text:#9cc092; --state-text:#97a3ba;
  --hatch-bg:#2a2a35; --hatch:#a3665d; --nodata-bg:#222c40; --nodata-dot:#56627a;
  --m1:#e07a60; --m2:#eeb07a; --m3:#e6d9ab; --m4:#7fb0dc; --m5:#5b97e6;
  --shadow:0 12px 36px rgba(0,0,0,.5); --shadow-sm:0 1px 3px rgba(0,0,0,.4); color-scheme:dark}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:15px;line-height:1.45;margin:0;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3,h4{font-family:var(--display);font-weight:700;letter-spacing:-.01em;text-wrap:balance;margin:0}
a{color:var(--accent)}
.num{font-variant-numeric:tabular-nums}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.note,.hint{color:var(--muted);font-size:13.5px;margin:0}
.small{font-size:13.5px}
.only-phone{display:none!important}
svg{flex:none}
.iconbtn{width:38px;height:38px;border-radius:10px;border:1px solid transparent;background:transparent;display:inline-grid;place-items:center;color:var(--muted)}
.iconbtn:hover{background:var(--surface-2);color:var(--fg)}
.iconbtn svg,.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn{border:1px solid var(--line-strong);background:var(--surface);padding:8px 14px;border-radius:10px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:38px}
.btn:hover{border-color:var(--accent)}
.btn.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.btn.small{padding:4px 10px;font-size:13.5px;min-height:32px;border-radius:8px}
.btn.wide{width:100%}
.btn[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--fg)}
.link{border:0;background:none;color:var(--accent);font-weight:600;padding:4px 2px;font-size:14px}
.badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:700}
.check{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}
.check input{width:16px;height:16px;accent-color:var(--accent);margin:0}

/* top bar */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;background:var(--surface);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:18px;height:var(--topH);padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.brand{display:flex;align-items:center;gap:10px;color:var(--fg);text-decoration:none;font-family:var(--display);font-weight:700;font-size:19px;white-space:nowrap}
.brand .mark{width:30px;height:30px}
.brand .mark rect{fill:var(--navy)} .brand .mark path{fill:var(--surface)}
.tabs{display:flex;gap:4px;margin-left:12px;min-width:0;overflow-x:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{border:0;background:transparent;padding:8px 12px;border-radius:9px;font-weight:600;color:var(--muted);white-space:nowrap;display:inline-flex;gap:6px;align-items:center}
.tabs button:hover{color:var(--fg);background:var(--surface-2)}
.tabs button[aria-selected="true"]{color:var(--fg);background:var(--accent-soft)}
.top-acts{margin-left:auto;display:flex;gap:4px}

/* explore: three columns */
.explore{display:grid;grid-template-columns:var(--fW) minmax(0,1fr) var(--pW);height:calc(100% - var(--topH));min-height:520px}
.filters{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;min-width:0}
.f-head{padding:18px 20px 12px;border-bottom:1px solid var(--line);position:relative}
.countline{font-family:var(--display);font-size:16px;color:var(--muted);display:flex;align-items:baseline;gap:8px}
.countline b{font-size:34px;line-height:1;color:var(--fg);font-variant-numeric:tabular-nums}
.f-head .sub{margin:4px 0 0;color:var(--muted);font-size:13.5px}
.f-head .iconbtn{position:absolute;right:10px;top:12px}
.f-scroll{overflow-y:auto;flex:1;min-height:0;padding:14px 16px 24px;display:flex;flex-direction:column;gap:16px}
.money{border:1px solid var(--line);border-radius:var(--r);background:var(--sunk)}
.money-sum{width:100%;text-align:left;border:0;background:none;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;border-radius:var(--r)}
.money-sum .lbl{font-size:12.5px;font-weight:600;color:var(--muted);grid-column:1}
.money-sum .you-text{grid-column:1;font-weight:600;font-size:15px}
.money-sum .edit{grid-column:2;grid-row:1/3;color:var(--accent);font-weight:600;font-size:14px}
.you-form{padding:2px 14px 14px;display:grid;gap:10px}
.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:3px;font-weight:600}
.field input,.field select{width:100%;padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);min-height:38px}
.field.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sec-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.sec-h h2{font-size:15px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line-strong);background:var(--surface);border-radius:999px;padding:4px 6px 4px 11px;font-size:13.5px;font-weight:600;line-height:1.2;color:var(--fg)}
.chip .x{width:20px;height:20px;border-radius:50%;display:inline-grid;place-items:center;color:var(--muted);font-size:15px;line-height:1}
.chip:hover .x{background:var(--surface-2);color:var(--fg)}
.chip.must{background:var(--navy);border-color:var(--navy);color:var(--navy-ink)}
.chip.must .x{color:inherit;opacity:.8}
.chip.must:hover .x{background:rgba(255,255,255,.18)}
.chip .lock{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2}
.chip.plain{padding:4px 11px}
.chip[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--accent)}

/* category groups */
.cat{border-top:1px solid var(--line)}
.cat summary{list-style:none;display:grid;grid-template-columns:22px minmax(0,1fr) auto 16px;gap:10px;align-items:center;padding:13px 2px;cursor:pointer;border-radius:8px}
.cat summary::-webkit-details-marker{display:none}
.cat summary:hover .cn{color:var(--accent)}
.cat .ci{width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cat .cn{font-weight:700;font-size:15.5px}
.cat .cs{grid-column:2/4;grid-row:2;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:-6px}
.cat[open] .cs{display:none}
.cat .cc{font-size:12.5px;color:var(--muted);font-weight:600}
.cat .cc.on{color:var(--accent)}
.cat .chev{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2;transition:transform .15s}
.cat[open] .chev{transform:rotate(180deg)}
.cb{display:grid;gap:10px;padding:0 0 14px}

/* filter card */
.rule{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);padding:12px 13px 11px;display:grid;gap:8px;box-shadow:var(--shadow-sm)}
.rule.must{border-color:var(--navy);box-shadow:inset 3px 0 0 var(--navy)}
.rule .r1{display:flex;align-items:center;gap:4px}
.rule .t{font-weight:700;font-size:15px;flex:1;min-width:0}
.rule .mini{width:28px;height:28px;border:0;background:none;border-radius:7px;display:inline-grid;place-items:center;color:var(--muted)}
.rule .mini:hover{background:var(--surface-2);color:var(--fg)}
.rule .mini svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.rule .mini[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft)}
.rule .val{font-size:14.5px;color:var(--fg)}
.rule .val b{font-variant-numeric:tabular-nums}
.hist{display:block;width:100%;height:30px}
.hist rect{fill:var(--line-strong)} .hist rect.in{fill:var(--accent)}
.rule.must .hist rect.in{fill:var(--navy)}
.r2{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:-4px}
.r2 .end{font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:99px;background:var(--line);outline-offset:4px;margin:0}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:var(--surface);border:2px solid var(--accent);box-shadow:var(--shadow-sm)}
input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--surface);border:2px solid var(--accent)}
.rule.must input[type=range]::-webkit-slider-thumb{border-color:var(--navy)}
.r3{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted)}
.r3 .pass{font-variant-numeric:tabular-nums}
.switch{white-space:nowrap;display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:2px 0;font-weight:600;font-size:13.5px;color:var(--fg)}
.switch .tr{width:34px;height:20px;border-radius:99px;background:var(--line-strong);position:relative;transition:background .15s}
.switch .tr::after{content:"";position:absolute;left:2px;top:2px;width:16px;height:16px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.switch[aria-checked="true"] .tr{background:var(--navy)}
.switch[aria-checked="true"] .tr::after{left:16px}
.r4{display:grid;grid-template-columns:auto minmax(0,1fr) 22px;gap:8px;align-items:center;font-size:13px;color:var(--muted)}
.nodata{font-size:13px;color:var(--warn);background:var(--warn-soft);border-radius:8px;padding:6px 9px}
.addrow{display:flex;align-items:center;gap:10px;width:100%;border:1px dashed var(--line-strong);background:none;border-radius:10px;padding:9px 12px;text-align:left;color:var(--fg);font-size:14.5px}
.addrow:hover{border-color:var(--accent);background:var(--accent-soft)}
.addrow .plus{width:22px;height:22px;border-radius:50%;background:var(--surface-2);display:inline-grid;place-items:center;font-weight:700;color:var(--accent);flex:none}
.addrow .ad{color:var(--muted);font-size:12.5px;margin-left:auto;text-align:right}
.f-foot{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:14px}
.saved{font-size:12.5px;color:var(--faint);margin:0;min-height:1em}
.f-done{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--surface)}

/* map */
.mapwrap{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg)}
.maptools{display:flex;gap:10px;align-items:center;padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--line);min-width:0}
.layerbar{display:flex;flex-wrap:wrap;gap:6px;min-width:0;align-items:center}
.layerbar .lbl{font-size:13px;color:var(--muted);font-weight:600;white-space:nowrap;margin-right:2px}
.layerbar button.chip{padding:4px 11px;white-space:nowrap;font-size:13.5px}
.layerbar select{border:1px solid var(--line-strong);border-radius:999px;padding:5px 10px;background:var(--surface);font-size:13.5px;font-weight:600;max-width:200px}
.layerbar select.on{background:var(--accent-soft);border-color:var(--accent)}
.mapbox{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none}
.mapmove{position:absolute;inset:0;transform-origin:0 0}
.mapmove.moving{will-change:transform}
#map{width:100%;height:100%;display:block;cursor:grab}
.mapmove.moving #map{cursor:grabbing}
#map:active{cursor:grabbing}
#map .ocean{fill:var(--mapbg)}
#map .nland{fill:var(--nland);stroke:var(--line-strong);stroke-width:.5}
#map .county{stroke:none;fill:var(--land)}
#map .cmesh{fill:none;stroke:var(--cline);stroke-width:.35}
#map .county.out{fill:url(#hatch)}
#map .county.unk{fill:url(#dots)}
#map .county.dim{fill:var(--land)}
#map .county.hit:hover{filter:brightness(1.06)}
#map .lake{fill:var(--water);stroke:var(--river);stroke-width:.4}
#map .river{fill:none;stroke:var(--river);stroke-width:1.1;stroke-linecap:round}
#map .river.minor{stroke-width:.7;opacity:.85}
#map .road{fill:none;stroke:var(--road);stroke-width:1.1;opacity:.85;stroke-linecap:round}
#map .park{fill:var(--park);stroke:var(--park-line);stroke-width:.4}
#map .stateline{fill:none;stroke:var(--sline);stroke-width:.9;stroke-linejoin:round}
#map .nation{fill:none;stroke:var(--sline);stroke-width:1.1}
#map .metro{fill:none;stroke:var(--mline);stroke-width:.9;stroke-opacity:.55;stroke-linejoin:round;pointer-events:none}
#map .metro.hl{stroke:var(--fg);stroke-width:2.4;stroke-opacity:1}
#map path,#map circle{vector-effect:non-scaling-stroke}
#map .dot{stroke:var(--surface);stroke-width:1.4}
#map .dot.out{fill:url(#hatch)}
#map .anchor{fill:none;stroke:var(--orange);stroke-width:2}
#map .pin{fill:var(--fg);stroke:var(--surface);stroke-width:1.2}
#map text{font-family:var(--body);paint-order:stroke;stroke:var(--label-halo);stroke-width:3px;stroke-linejoin:round;pointer-events:none}
#map .lbl{font-size:12px;font-weight:700;fill:var(--label)}
#map .lbl.anch{fill:var(--orange)}
#map .town{font-size:10.5px;fill:var(--town);font-weight:600}
#map .towndot{fill:var(--town)}
#map .parklbl{font-size:10px;fill:var(--park-text);font-style:italic;font-weight:600}
#map .forest{fill:var(--forest);stroke:none}
#map .stlbl{font-size:12px;font-weight:600;letter-spacing:.14em;fill:var(--state-text)}
#map .waterlbl{font-size:10.5px;fill:var(--river);font-style:italic;font-weight:600}
.zoom{position:absolute;right:max(14px,env(safe-area-inset-right,0px));top:14px;display:grid;background:var(--surface);border-radius:10px;box-shadow:var(--shadow-sm);border:1px solid var(--line);overflow:hidden}
.zoom button{width:38px;height:38px;border:0;background:none;font-size:20px;line-height:1;display:grid;place-items:center;color:var(--fg)}
.zoom button+button{border-top:1px solid var(--line)}
.zoom button:hover{background:var(--surface-2)}
.zoom svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.legend{position:absolute;left:14px;bottom:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-sm);padding:10px 12px;font-size:13px;max-width:min(380px,calc(100% - 28px));display:grid;gap:7px}
.legend .lt{font-weight:700;font-size:14px;display:flex;align-items:center;gap:6px}
.legend .ramp{height:10px;border-radius:99px;background:linear-gradient(90deg,var(--m1),var(--m2),var(--m3),var(--m4),var(--m5))}
.legend .ends{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:12.5px}
.legend .keys{display:flex;flex-wrap:wrap;gap:4px 12px;color:var(--muted);font-size:12.5px}
.legend .sw{display:inline-block;width:14px;height:11px;border-radius:3px;vertical-align:-1px;margin-right:5px;border:1px solid var(--line-strong)}
.legend .scope{color:var(--muted);font-size:12.5px;border-top:1px solid var(--line);padding-top:6px}
.legend .info{border:0;background:none;color:var(--accent);padding:0;font-size:12.5px;font-weight:600;justify-self:start}
.onmap{position:absolute;right:max(14px,env(safe-area-inset-right,0px));bottom:14px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:7px 11px;box-shadow:var(--shadow-sm);font-size:13.5px}

/* places list */
.places{background:var(--surface);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;min-width:0}
.p-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 10px;border-bottom:1px solid var(--line)}
.p-head h2{font-size:18px}
.p-head select{border:1px solid var(--line-strong);border-radius:8px;padding:6px 8px;background:var(--surface);font-size:13.5px;font-weight:600}
.plist{list-style:none;margin:0;padding:8px;overflow-y:auto;flex:1;min-height:0;display:grid;gap:6px;align-content:start}
.pc{border:1px solid transparent;border-radius:var(--r);padding:11px 12px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:2px 10px;cursor:pointer;background:var(--surface)}
.pc:hover,.pc.hl,.pc:focus-visible{border-color:var(--line-strong);background:var(--sunk)}
.pc .rk{grid-row:1/4;font-family:var(--display);font-weight:700;color:var(--faint);font-size:15px;padding-top:1px;font-variant-numeric:tabular-nums}
.pc .nm{font-weight:700;font-size:15.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pc .nm small{font-weight:600;color:var(--muted);font-size:12px;margin-left:5px}
.pc .sw{width:12px;height:12px;border-radius:3px;align-self:center;border:1px solid rgba(0,0,0,.08)}
.pc .mt{grid-column:2/4;font-size:13.5px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pc .mt .ok{color:var(--fg);font-weight:600}
.pc .facts{grid-column:2/4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:6px}
.pc .facts div{min-width:0}
.pc .facts b{display:block;font-size:14.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.pc .facts span{font-size:12px;color:var(--muted);white-space:nowrap}
.pc.out .nm{color:var(--muted)}
.pc .outtag{font-size:12px;font-weight:700;color:var(--bad);background:var(--bad-soft);border-radius:99px;padding:1px 8px}
.p-foot{padding:10px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);display:grid;gap:10px}
.empty{padding:28px 16px;color:var(--muted);text-align:center;font-size:14px}
.dots{display:inline-flex;gap:3px;vertical-align:middle}
.dots i{width:8px;height:8px;border-radius:2px;background:var(--accent)}
.dots i.near{background:var(--m3);box-shadow:inset 0 0 0 1px var(--warn)}
.dots i.miss{background:var(--bad)}
.dots i.unk{background:none;box-shadow:inset 0 0 0 1px var(--line-strong)}

/* other pages */
.page{max-width:1200px;margin:0 auto;padding-block:24px 48px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:14px}
.pg-h h2{font-size:26px}
.pg-h .sub{color:var(--muted);margin:4px 0 0}
.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.toolbar input[type=search],.toolbar select{border:1px solid var(--line-strong);border-radius:9px;padding:8px 11px;background:var(--surface);min-height:38px}
.toolbar input[type=search]{min-width:min(260px,100%)}
.tablewrap{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:auto;max-height:72vh}
table{border-collapse:collapse;width:100%;font-size:14px}
.cmpt{width:auto;min-width:min(100%,560px)}
th,td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap;vertical-align:top}
#tbl th{position:sticky;top:0;background:var(--surface);z-index:2;font-size:13px;color:var(--muted);cursor:pointer;font-weight:600}
#tbl th .u{display:block;font-weight:400;font-size:11.5px;color:var(--faint)}
#tbl th[aria-sort]{color:var(--accent)}
#tbl td.num{text-align:right;font-variant-numeric:tabular-nums}
#tbl td:first-child{position:sticky;left:0;background:var(--surface);font-weight:600}
#tbl tbody tr{cursor:pointer}
#tbl tbody tr:hover td{background:var(--sunk)}
#tbl tr.out td{color:var(--muted)}
#tbl td input{margin-right:8px;accent-color:var(--accent)}
.st{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:1px}
.st.Interested{background:var(--accent)} .st.Maybe{background:var(--warn)} .st.No{background:var(--bad)}
.nd{color:var(--faint)}
.pill{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:700}
.pill.out{background:var(--bad-soft);color:var(--bad)}
.pill.anchor{background:var(--surface-2);color:var(--muted)}
.pill.ex{background:var(--warn-soft);color:var(--warn)}
.bar{display:inline-block;width:60px;height:6px;background:var(--surface-2);border-radius:99px;overflow:hidden;vertical-align:middle}
.bar i{display:block;height:100%;background:var(--accent)}

/* compare */
.cmpwrap{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:auto;width:fit-content;max-width:100%}
.cmpt th,.cmpt td{white-space:normal;vertical-align:top;min-width:160px;max-width:280px;padding:10px 12px}
.cmpt thead th{position:sticky;top:0;background:var(--surface);z-index:1;font-family:var(--display);font-size:17px;border-bottom:2px solid var(--line)}
.cmpt thead th small{display:block;font-family:var(--body);font-size:12.5px;color:var(--muted);font-weight:600;margin-top:2px}
.cmpt th:first-child,.cmpt td:first-child{min-width:170px;color:var(--muted);font-size:13.5px;position:sticky;left:0;background:var(--surface)}
.cmpt td.best{background:var(--accent-soft);font-weight:700}
.cmpt td .s{display:block;color:var(--muted);font-size:12.5px;font-weight:400}
.cmpt tr.grp td{background:var(--sunk);font-weight:700;color:var(--fg);font-size:13px;letter-spacing:.04em;text-transform:uppercase}
.cmpt .rm{border:0;background:var(--surface-2);border-radius:50%;width:24px;height:24px;font-size:14px;margin-left:6px;vertical-align:2px}
.cmpt .mk{font-weight:700}
.mk.yes{color:var(--accent)} .mk.no{color:var(--bad)} .mk.near{color:var(--warn)} .mk.unk{color:var(--faint)}
.cmpempty{background:var(--surface);border:1px dashed var(--line-strong);border-radius:var(--r);padding:28px;display:grid;gap:12px;justify-items:start}
details.more>summary{cursor:pointer;color:var(--accent);font-weight:600;padding:6px 0}

/* sources and about */
.srcs{display:grid;gap:8px}
.src{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px}
.src .n{font-weight:700}
.src .m{color:var(--muted);font-size:13.5px}
.src .uses{font-size:13px;color:var(--muted);grid-column:1/-1}
.lab{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;align-self:start;background:var(--surface-2);color:var(--muted)}
.lab.verified,.lab.verified_math{background:var(--accent-soft);color:var(--fg)}
.lab.estimate,.lab.opinion{background:var(--warn-soft);color:var(--warn)}
.stt{font-size:12px;padding:1px 8px;border-radius:99px;background:var(--sunk);color:var(--muted);margin-left:8px;font-weight:600}
.stt.have{background:var(--accent-soft);color:var(--fg)}.stt.to_pull{background:var(--warn-soft);color:var(--warn)}.stt.blocked{background:var(--bad-soft);color:var(--bad)}
.prose{max-width:68ch;display:flex;flex-direction:column;gap:12px;font-size:16px}
.prose p,.prose li{margin:0}
.prose h2{font-size:26px}
.prose h3{font-size:19px;margin-top:14px}
.prose ul{margin:0;padding-left:20px;display:grid;gap:6px}
.prose details{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);padding:10px 14px}
.prose details summary{cursor:pointer;font-weight:700}
.prose details>*:not(summary){margin-top:8px}

/* drawer: place profile */
.scrim{position:fixed;inset:0;background:rgba(10,16,30,.35);z-index:44}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(600px,100%);background:var(--bg);z-index:45;box-shadow:var(--shadow);transform:translateX(105%);transition:transform .22s ease;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px)}
.drawer.open{transform:none}
.dh{display:flex;gap:10px;align-items:flex-start;padding:18px 18px 12px;padding-right:max(18px,env(safe-area-inset-right,0px));background:var(--surface)}
.dh-t{flex:1;min-width:0}
.dh h2{font-size:23px;line-height:1.15}
.d-match{margin-top:6px;font-size:14px;color:var(--muted)}
.dtabs{display:flex;gap:2px;padding:0 14px;border-bottom:1px solid var(--line);background:var(--surface);overflow-x:auto;scrollbar-width:none}
.dtabs button{border:0;background:none;padding:10px 10px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap}
.dtabs button[aria-selected="true"]{color:var(--fg);border-bottom-color:var(--accent)}
.db{overflow-y:auto;flex:1;padding:18px;padding-right:max(18px,env(safe-area-inset-right,0px));padding-bottom:calc(28px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:20px}
.dgroup{display:grid;gap:8px}
.dgroup>h3{font-size:16px}
.dgroup>h3 small{font-family:var(--body);font-weight:400;color:var(--muted);font-size:13px;margin-left:6px}
.facts-g{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fact{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:11px 13px;display:grid;gap:1px;min-width:0}
.fact .fl{font-size:13px;color:var(--muted);font-weight:600}
.fact .fv{font-family:var(--display);font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2}
.fact .fv.na{font-family:var(--body);font-size:15px;color:var(--faint);font-weight:600}
.fact .fs{font-size:12px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fact .fx{font-size:13px;color:var(--muted)}
.fact.wide{grid-column:1/-1}
.checks{display:grid;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.ck{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;padding:9px 12px;align-items:center;font-size:14px;border-top:1px solid var(--line)}
.ck:first-child{border-top:0}
.ck .ic{font-weight:700;text-align:center}
.ck .v{font-variant-numeric:tabular-nums;color:var(--muted);text-align:right}
.ck .mustt{font-size:11px;font-weight:700;background:var(--navy);color:var(--navy-ink);border-radius:99px;padding:0 6px;margin-left:6px;vertical-align:1px}
.ck.yes .ic{color:var(--accent)} .ck.no .ic{color:var(--bad)} .ck.near .ic{color:var(--warn)} .ck.unk .ic{color:var(--faint)}
.kv{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 14px;font-size:14px}
.kv .k{color:var(--muted);min-width:0}
.kv .v{text-align:right;font-variant-numeric:tabular-nums}
.kv .v small{color:var(--muted);margin-left:4px}
.towns{display:grid;gap:6px}
.receipt{display:grid;font-size:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:4px 12px}
.receipt div{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);align-items:center}
.receipt div:last-child{border-bottom:0}
.receipt .amt{text-align:right;font-variant-numeric:tabular-nums}
.receipt .tot{font-weight:700}
.receipt .sub{display:block;font-size:12.5px;color:var(--muted)}
.lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.line{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;display:grid;gap:2px}
.line .l{font-size:13px;color:var(--muted);font-weight:600}
.line .v{font-family:var(--display);font-size:24px;font-weight:700}
.line .s{font-size:12.5px;color:var(--muted)}
.line.ok{border-color:var(--accent)} .line.no .v{color:var(--bad)}
.needs{display:grid;gap:8px}
.need{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:11px 13px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center}
.need .l{font-weight:700}
.need .v{font-family:var(--display);font-size:22px;font-weight:700;grid-row:1/3;grid-column:2;text-align:right}
.need .s{font-size:13px;color:var(--muted)}
.need .tag{justify-self:start}
.hosp{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px 12px;font-size:14px}
.hosp .k{min-width:0}
.hosp .n{text-align:right;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
.tbl{overflow-x:auto}
table.grid{font-size:13.5px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
table.grid th,table.grid td{white-space:normal}
.rolet{width:100%;font-size:13.5px}
.rolet th,.rolet td{white-space:normal;padding:6px}
.tag{display:inline-block;font-size:11.5px;font-weight:700;padding:1px 7px;border-radius:99px;background:var(--surface-2);color:var(--muted);white-space:nowrap;vertical-align:1px}
.tag.real{background:var(--accent-soft);color:var(--accent-strong)} .tag.ex{background:var(--warn-soft);color:var(--warn)} .tag.gap{border:1px dashed var(--line-strong);background:none}
.tag.metro{background:var(--surface-2);color:var(--muted)}
.warnbox{border-left:3px solid var(--warn);padding:8px 12px;background:var(--warn-soft);border-radius:0 8px 8px 0;font-size:14px}
textarea,.db select{width:100%;padding:9px 11px;border:1px solid var(--line-strong);border-radius:9px;background:var(--surface)}
textarea{min-height:120px;resize:vertical}

.tip{position:fixed;z-index:60;background:var(--surface);color:var(--fg);border:1px solid var(--line);padding:10px 12px;border-radius:10px;font-size:13.5px;pointer-events:none;width:max-content;max-width:300px;box-shadow:var(--shadow);line-height:1.4}
.tip .tt{font-weight:700;font-size:15px}
.tip .tv{font-family:var(--display);font-size:19px;font-weight:700;margin-top:2px}
.tip .k{color:var(--muted)}
.tip .ts{font-size:12px;color:var(--faint)}
.tip .bad{color:var(--bad);font-weight:600}
.pop{position:fixed;z-index:61;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:12px 14px;font-size:13.5px;max-width:320px;display:grid;gap:6px}
.pop b{font-size:14.5px}
.pop .ps{color:var(--muted);font-size:12.5px}
.toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:10px 15px;border-radius:10px;font-size:14px;z-index:70;box-shadow:var(--shadow)}

/* ===== Version 16: the look of the ChatGPT mockup Lawrence picked (15 Oct 2026) =====
   Panels are white cards floating on a pale blue-gray page; the place profile docks under the map on wide screens.
   Match states stay Tide Guide blue (his no-green rule); the map keeps its multi-colour ramp. */
.top{background:var(--bg);border-bottom:0}
.top-in{gap:20px}
.brand{font-size:22px;gap:12px}
.brand .mark{width:34px;height:34px}
.tabs{margin-left:28px;gap:6px}
.tabs button{padding:9px 16px;font-size:15.5px;border-radius:10px}
.tabs button[aria-selected="true"]{background:var(--surface);color:var(--accent-strong);box-shadow:var(--shadow-sm)}
.search{position:relative;margin-left:auto;width:min(330px,30vw);display:flex;align-items:center}
.search>svg{position:absolute;left:13px;width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.9;stroke-linecap:round;pointer-events:none}
.search input{width:100%;height:42px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 14px 0 40px;font-size:14.5px;box-shadow:var(--shadow-sm)}
.search input::placeholder{color:var(--faint)}
.search input:focus{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
.search-list{position:absolute;top:48px;left:0;right:0;list-style:none;margin:0;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);z-index:60;max-height:60vh;overflow:auto}
.search-list li{padding:8px 10px;border-radius:8px;display:grid;cursor:pointer}
.search-list li span{font-size:12.5px;color:var(--muted)}
.search-list li[aria-selected="true"],.search-list li:hover{background:var(--accent-soft)}
.search-list li.none{color:var(--muted);cursor:default;font-size:13.5px}
.top-acts{margin-left:0;align-items:center;gap:6px}
.themeseg{display:flex;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:3px;box-shadow:var(--shadow-sm)}
.themeseg button{width:34px;height:34px;border:0;border-radius:9px;background:none;display:grid;place-items:center;color:var(--muted)}
.themeseg button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.themeseg button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent-strong)}

/* the three cards */
.explore{--gap:10px;grid-template-columns:var(--fW) minmax(0,1fr) var(--pW);grid-template-rows:minmax(0,1fr) auto;gap:var(--gap);padding:0 var(--gap) var(--gap);padding-left:max(var(--gap),env(safe-area-inset-left,0px));padding-right:max(var(--gap),env(safe-area-inset-right,0px));height:calc(100dvh - var(--topH))}
.filters,.mapwrap,.places{border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm)}
.filters{grid-row:1/3;border-right:1px solid var(--line)}
.places{border-left:1px solid var(--line)}
.mapwrap{background:var(--mapbg);position:relative}

/* preferences */
.f-head{padding:22px 22px 14px;border-bottom:0}
.fh1{display:flex;align-items:center;gap:10px}
.fh1 h2{font-size:22px;flex:1}
.f-head .iconbtn{position:static}
.btn.soft{background:var(--accent-soft);border-color:transparent;color:var(--accent-strong)}
.btn.soft:hover{border-color:var(--accent)}
.you-pill{margin-top:12px;width:100%;display:flex;align-items:center;gap:8px;border:1px solid transparent;background:var(--accent-soft);border-radius:12px;padding:11px 14px;text-align:left;font-weight:700;font-size:15px;color:var(--fg)}
.you-pill:hover{border-color:var(--accent)}
.you-pill .you-text{flex:1;min-width:0}
.you-pill svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;transition:transform .15s}
.you-pill[aria-expanded="true"] svg{transform:rotate(90deg)}
.f-scroll{padding:4px 22px 24px;gap:0}
.you-form{padding:12px 14px 14px;margin-bottom:10px;border:1px solid var(--line);border-radius:12px;background:var(--sunk)}
.cat{border-top:1px solid var(--line)}
.cat:first-of-type{border-top:0}
.cat summary{grid-template-columns:34px minmax(0,1fr) 18px;gap:4px 12px;padding:16px 0;align-items:start}
.cat .ci{width:26px;height:26px;stroke:var(--cc,var(--accent));stroke-width:1.9;margin-top:1px}
.cat .cn{font-size:17px;line-height:1.3}
.cat .mustn{font-family:var(--body);font-size:11.5px;font-weight:700;background:var(--navy);color:var(--navy-ink);border-radius:99px;padding:1px 7px;margin-left:6px;vertical-align:2px}
.cat .chev{margin-top:4px;width:18px;height:18px}
.cat .cs{grid-column:2/3;margin-top:0;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14.5px;line-height:1.45}
.cat[open] .cs{display:none}
.cb{gap:0;padding:0 0 12px 46px}
.rule{border:0;border-radius:0;box-shadow:none;padding:10px 0 12px;gap:7px;border-top:1px dashed var(--line)}
.rule:first-child{border-top:0;padding-top:0}
.rule.must{box-shadow:inset 3px 0 0 var(--navy);padding-left:10px;border-color:var(--line)}
.rule .t{font-size:15px}
.rule .val{font-size:14.5px;color:var(--muted)}
.rule .val b{color:var(--fg)}
input[type=range]::-webkit-slider-thumb{background:var(--accent);border:3px solid var(--surface);box-shadow:0 0 0 1px var(--accent),var(--shadow-sm);width:20px;height:20px}
input[type=range]::-moz-range-thumb{background:var(--accent);border:3px solid var(--surface)}
.rule.must input[type=range]::-webkit-slider-thumb{background:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.addrow{margin-top:8px;padding:8px 10px;font-size:14px}
.f-foot{margin-top:6px;padding-top:16px}

/* map card */
.maptools{position:relative;z-index:3;background:var(--mapbg);border:0;padding:12px 12px 6px}
.layerbar{gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px 2px 4px}
.layerbar::-webkit-scrollbar{display:none}
.layerbar button.chip{padding:6px 11px;font-size:13.5px;flex:none;background:var(--surface);border-color:var(--line);box-shadow:var(--shadow-sm);display:inline-flex;gap:7px}
.layerbar button.chip svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.layerbar button.chip[aria-pressed="true"]{background:var(--navy);border-color:var(--navy);color:var(--navy-ink)}
.layerbar select{flex:none;padding:6px 8px;font-size:13.5px;border-color:var(--line);box-shadow:var(--shadow-sm);max-width:180px}
.layerbar select.on{background:var(--navy);color:var(--navy-ink);border-color:var(--navy)}
.mapbox{background:var(--mapbg)}
.onmap{top:12px;bottom:auto;right:12px;display:grid;gap:6px;padding:9px 12px;border-radius:12px;font-weight:600}
.zoom{top:auto;bottom:14px;right:12px;border-radius:12px}
.zoom button{width:40px;height:40px}
.legend{left:12px;bottom:12px;grid-template-columns:minmax(220px,auto) auto;gap:0;padding:12px 14px;border-radius:14px;box-shadow:var(--shadow);max-width:min(560px,calc(100% - 80px))}
.legend .lg-main{display:grid;gap:6px;padding-right:16px;min-width:0}
.legend .lg-keys{display:grid;gap:6px;align-content:center;padding-left:16px;border-left:1px solid var(--line);color:var(--muted);font-size:13px}
.legend .lt{font-size:14.5px}
.legend .segs{display:flex;height:11px;border-radius:99px;overflow:hidden}
.legend .segs span{flex:1}
.legend .ticks{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.legend .ends{font-size:12px}
.legend .info svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;vertical-align:-3px;margin-right:3px}
.legend .lg-keys>span{display:flex;align-items:center;gap:0;white-space:nowrap}
/* callouts on the map: white card with a colored pin, like the mockup */
#map g.co text{stroke:none}
#map .cobox{fill:var(--surface);stroke:var(--line-strong);stroke-width:1;filter:drop-shadow(0 2px 4px rgba(23,32,51,.18))}
#map .copin{stroke:var(--surface);stroke-width:2.2}
#map .copin-in{fill:var(--surface)}
#map .con{font-size:13px;font-weight:700;fill:var(--fg)}
#map .cos{font-size:11.5px;font-weight:600;fill:var(--muted)}

/* places card */
.p-head{padding:18px 18px 12px;border-bottom:0;align-items:flex-start}
.p-head .countline{flex-direction:column;gap:2px;align-items:flex-start}
.p-head h2{font-size:24px;display:flex;align-items:baseline;gap:6px}
.p-head h2 b{font-size:inherit}
.p-head h2 span{font-size:inherit}
.p-head .sub{font-size:13.5px;color:var(--muted);margin:0}
.sortlab{display:grid;border:1px solid var(--line-strong);border-radius:10px;padding:4px 10px 5px;min-width:130px}
.sortlab span{font-size:11.5px;color:var(--muted)}
.sortlab select{border:0;padding:0;background:none;font-weight:600;font-size:14px;width:100%}
.plist{padding:0 10px 10px;gap:0;overflow-x:hidden}
.pc{grid-template-columns:20px 64px minmax(0,1fr) auto 14px;grid-template-rows:auto auto auto;gap:3px 12px;padding:14px 8px;border:0;border-top:1px solid var(--line);border-radius:0;align-items:center}
.pc:first-child{border-top:0}
.pc:hover,.pc.hl,.pc:focus-visible{background:var(--sunk);border-color:var(--line);border-radius:10px}
.pc.sel{background:var(--accent-soft);border-radius:10px}
.pc .rk{grid-row:1;align-self:start;font-family:var(--body);font-size:14px;font-weight:600;color:var(--muted);padding-top:2px}
.pc .th{grid-row:1/4;grid-column:2;width:64px;height:64px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;overflow:hidden;align-self:start}
.pc .th svg{width:56px;height:56px}
.pc .nm{grid-column:3;font-size:16px}
.pc .score{grid-column:4;grid-row:1}
.pc .mt{grid-column:3/5;font-size:13.5px;display:block;line-height:1.4}
.pc .facts{grid-column:3/5;grid-template-columns:repeat(3,auto);justify-content:start;gap:4px 16px;margin-top:6px}
.pc .facts span{display:grid;grid-template-columns:18px auto;column-gap:4px;font-size:13.5px;color:var(--fg);white-space:nowrap;min-width:0}
.pc .facts b{display:block;font-size:14px;grid-column:2}
.pc .facts i{grid-column:2;font-style:normal;font-size:11.5px;color:var(--muted)}
.pc .facts .ic{grid-row:1/3;margin-top:1px;width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pc .go{grid-column:5;grid-row:1/4;width:16px;height:16px;fill:none;stroke:var(--faint);stroke-width:2}
.badtxt{color:var(--bad);font-weight:600}

/* match score badge: the number on a tint of its map color */
.score{display:inline-grid;place-items:center;min-width:34px;height:26px;padding:0 7px;border-radius:8px;font-weight:700;font-size:14px;font-variant-numeric:tabular-nums;color:var(--fg);background:color-mix(in srgb,var(--sc,var(--accent)) 26%,var(--surface));border:1px solid color-mix(in srgb,var(--sc,var(--accent)) 55%,var(--surface))}
.score.big{min-width:44px;height:32px;font-size:17px;border-radius:9px}
.score.out{background:repeating-linear-gradient(45deg,var(--hatch) 0 1.5px,var(--hatch-bg) 1.5px 5px);border-color:var(--hatch);color:var(--bad);font-size:12.5px}
.score.na{background:var(--nodata-bg);border:1px dashed var(--line-strong);color:var(--faint)}

/* place profile */
.dh .d-thumb{width:96px;height:96px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;flex:none}
.dh .d-thumb svg{width:84px;height:84px}
.d-tr{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.d-acts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.d-nav{display:flex;align-items:center;gap:2px;font-size:14px;color:var(--muted);white-space:nowrap}
.d-nav .iconbtn{width:32px;height:32px}
.d-nav .iconbtn:disabled{opacity:.35;cursor:default}
#d-cmp{color:var(--accent-strong);border-color:var(--accent)}
.dtabs button[aria-selected="true"]{color:var(--accent-strong)}
.facts-g{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.fact.hasic{grid-template-columns:30px minmax(0,1fr);column-gap:10px;align-items:start}
.fact.hasic>*:not(.ic){grid-column:2}
.fact.hasic .ic{grid-row:1/5;width:26px;height:26px;fill:none;stroke:var(--fc,var(--accent));stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;margin-top:2px}
.fact .fv small{font-family:var(--body);font-size:13px;font-weight:600;color:var(--muted)}
.why{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;background:var(--accent-soft);border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:14px;padding:14px 16px}
.why .ic{width:24px;height:24px;fill:var(--accent);stroke:var(--surface);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.why b{font-size:15px}
.why p{margin:4px 0 0;font-size:14.5px;color:var(--fg);line-height:1.5}
.why.out{background:var(--bad-soft);border-color:color-mix(in srgb,var(--bad) 30%,transparent)}
.why.out .ic{fill:var(--bad)}

/* wide screens: the profile docks under the map and the places list, like the mockup */
@media (min-width:861px){
  .explore .drawer{position:relative;grid-column:2/4;grid-row:2;width:auto;height:clamp(250px,calc(100dvh - 540px),370px);transform:none;transition:none;box-shadow:var(--shadow-sm);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);display:none;padding-top:0;
    grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr)}
  .explore .drawer.open{display:grid}
  .drawer .dh{display:contents}
  .drawer .d-thumb{grid-column:1;grid-row:1/3;margin:16px 0 0 18px;width:112px;height:104px}
  .drawer .dh-t{grid-column:2;grid-row:1;padding:16px 370px 0 18px}
  .drawer .d-acts{position:absolute;top:14px;right:14px}
  .drawer .dh h2{font-size:26px}
  .drawer .dtabs{grid-column:2;grid-row:2;padding:6px 18px 0;border-bottom:1px solid var(--line);background:none}
  .drawer .dtabs button{padding:8px 12px;border:1px solid transparent;border-radius:9px 9px 0 0;border-bottom:2px solid transparent}
  .drawer .db{grid-column:1/3;grid-row:3;padding:14px 18px 18px;gap:14px;background:var(--surface)}
  .drawer .fact{border:0;border-left:1px solid var(--line);border-radius:0;padding:4px 14px;background:none}
  .drawer .facts-g{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 0}
  .drawer .fact{align-content:start}
  .drawer .fact .fs{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .drawer .fact .fx{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .drawer .fact .fv{font-size:21px}
  .drawer .facts-g .fact:first-child,.drawer .facts-g .fact:nth-child(7){border-left:0;padding-left:0}
}

/* mid widths: places list moves under the map's filters column as a toggle-free stack */
@media (max-width:860px){
  :root{--fW:320px}
  .explore{grid-template-columns:var(--fW) minmax(0,1fr);grid-template-rows:minmax(0,1fr) 250px}
  .p-head{padding:10px 16px 8px}
  .p-foot{grid-template-columns:auto 1fr;align-items:center;padding-block:8px}
  .p-foot .btn{width:auto;justify-self:start}
  .legend{max-width:300px}
  .filters{grid-row:1/3}
  .places{border-left:0;border-top:1px solid var(--line)}
  .plist{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
}
/* phones and small tablets: map first, list below, filters in a sheet */
@media (max-width:860px){
  .only-phone{display:revert!important}
  .tabs{margin-left:0;flex:1}
  .brand span{display:none}
  .top-in{gap:8px}
  .tabs button{padding:8px 9px;font-size:14.5px}
  .explore{display:flex;flex-direction:column;height:auto}
  .mapwrap{height:min(62vh,560px)}
  .maptools{flex-direction:column;align-items:stretch;gap:8px;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
  .phonebar{display:flex!important;gap:12px}
  .layerbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .layerbar::-webkit-scrollbar{display:none}
  .filters{position:fixed;inset:0;z-index:50;transform:translateY(102%);transition:transform .22s ease;border:0;padding-top:env(safe-area-inset-top,0px)}
  .filters.open{transform:none}
  .f-done{display:block!important}
  .places{border:0}
  .plist{display:grid;grid-template-columns:1fr;overflow:visible;padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}
  .legend{left:10px;bottom:10px;padding:8px 10px;max-width:calc(100% - 20px)}
  .onmap{top:10px;bottom:auto;left:10px;right:auto;font-size:13px}
  .zoom{top:auto;bottom:10px;right:10px}
  .lines{grid-template-columns:1fr}
  .d-match .dots{display:none}
  .drawer{top:auto;height:92%;width:100%;border-radius:16px 16px 0 0;transform:translateY(102%)}
  .drawer.open{transform:none}
  .field.two{grid-template-columns:1fr}
  .pg-h h2{font-size:22px}
}
@media (max-width:420px){ .pc .facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px} .pc .facts b{font-size:14px} .facts-g{grid-template-columns:1fr 1fr} .fact .fv{font-size:19px} }
@media (prefers-reduced-motion:reduce){ *{transition:none!important;animation:none!important} }
.phonecount{align-self:center;color:var(--muted);font-size:14px}
.phonecount b{color:var(--fg);font-family:var(--display);font-size:18px}

@media (min-width:861px) and (max-width:1480px){
  :root{--fW:310px;--pW:350px}
  .drawer .facts-g{grid-template-columns:repeat(3,minmax(0,1fr))}
  .drawer .facts-g .fact:nth-child(4){border-left:0;padding-left:0}
  .drawer .facts-g .fact:nth-child(7){border-left:1px solid var(--line);padding-left:14px}
  .drawer .facts-g .fact:nth-child(3n+1){border-left:0;padding-left:0}
  .legend{grid-template-columns:minmax(190px,auto) auto}
}
@media (max-width:860px){
  .top-in{flex-wrap:wrap;height:auto;row-gap:8px;padding-top:8px;padding-bottom:8px}
  .search{order:5;width:100%;margin:0}
  .search input{height:40px}
  #dl{display:none}
  .tabs{margin-left:4px}
  .tabs button{padding:7px 9px;font-size:14.5px}
  .explore{padding:0 8px 8px;gap:8px;height:auto}
  .mapwrap{height:min(64vh,540px)}
  .legend{left:8px;right:8px;bottom:8px;max-width:none;grid-template-columns:1fr;padding:8px 10px;gap:6px;box-shadow:var(--shadow-sm)}
  .legend .lg-main{padding-right:0;gap:4px}
  .legend .lt{font-size:13px}
  .legend .ticks{display:none}
  .legend .lg-keys{border-left:0;padding-left:0;display:flex;flex-wrap:wrap;gap:2px 12px;font-size:12px}
  .onmap{top:8px;left:8px;right:auto;padding:6px 9px;font-size:13px}
  .zoom{top:8px;bottom:auto;right:8px}
  .zoom button{width:36px;height:36px}
  .pc{grid-template-columns:18px 56px minmax(0,1fr) auto 12px;gap:3px 10px}
  .pc .th{width:56px;height:56px}
  .pc .th svg{width:48px;height:48px}
  .drawer{background:var(--surface)}
  .drawer .dh{padding-right:14px}
  .drawer .d-thumb{display:none}
  .drawer .d-acts{gap:4px}
}
@media (min-width:861px) and (max-width:1480px){ .legend .ticks{display:none} .legend{padding:10px 12px} }
.cat[data-t="Careers"] .ci{stroke:var(--navy)}
@media (max-width:860px){
  .drawer .dh{flex-wrap:wrap;gap:6px}
  .drawer .d-acts{order:-1;width:100%;justify-content:space-between}
  .drawer .dh-t{flex-basis:100%}
  .drawer .dh h2{font-size:24px}
}
.fact .fs{white-space:normal}
@media (max-width:1240px){
  .search{width:min(240px,24vw)}
  .tabs{margin-left:8px}
  .tabs button{padding:8px 11px}
  .legend{grid-template-columns:1fr;gap:6px;max-width:300px;padding:9px 11px}
  .legend .lg-main{padding-right:0;gap:4px}
  .legend .ticks{display:none}
  .legend .lg-keys{border-left:0;padding-left:0;display:flex;flex-wrap:wrap;gap:2px 12px;font-size:12px}
}
@media (max-width:1240px) and (min-width:861px){ .brand{font-size:18px} .brand .mark{width:30px;height:30px} .top-in{gap:12px} }

/* ===== Round two (15 Oct): bigger map, honest ranking, plain filters, richer cards ===== */
:root{--fW:300px;--pW:340px}
@media (min-width:861px) and (max-width:1480px){ :root{--fW:280px;--pW:320px} }
@media (min-width:861px) and (max-width:1240px){ :root{--fW:250px;--pW:280px} }
.maptools .mapopts{display:flex;gap:12px;margin-left:auto;flex:none;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.maptools .mapopts .check{display:flex;align-items:center;gap:5px}
.maptools .layerbar{flex:1 1 auto;min-width:0}
/* calmer basemap at country scale: parks, forests and roads come up as you zoom in */
#map.far .forest{opacity:.35}
#map.far .park{opacity:.55}
#map.far .road{opacity:.3}
#map.far .river.minor{opacity:.4}
/* a score built on incomplete data */
.score.gap{background:var(--surface);border:1.5px dashed var(--warn);color:var(--muted)}
.score.gap sup{font-size:.7em;color:var(--warn);margin-left:1px;top:-.35em}
.gapw{color:var(--warn)}
.pc .mt .short{color:var(--faint)}
.pill.grow{display:inline-flex;align-items:center;gap:4px;margin-left:6px;background:var(--accent-soft);color:var(--accent-strong);font-weight:600;vertical-align:1px}
.pill.grow .ic{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.why.gap{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 35%,transparent)}
.why.gap .ic{fill:var(--warn)}
.growlink{color:var(--accent);font-weight:600}
/* filters: a plain explanation, and an unmistakable Must have / Preference line */
.rule .hint{font-size:12.5px;color:var(--faint);line-height:1.4;margin-top:-2px}
.rule .mustline{font-size:12.5px;line-height:1.4;color:var(--muted);background:var(--sunk);border-radius:8px;padding:6px 9px}
.rule .mustline b{color:var(--fg)}
.rule.must .mustline{background:var(--navy);color:var(--navy-ink)}
.rule.must .mustline b{color:var(--navy-ink)}
@media (max-width:860px){ .maptools .mapopts{margin-left:0} }
/* cards: smaller outline picture so names and facts have room; facts run under the picture */
.pc{grid-template-columns:20px 52px minmax(0,1fr) auto 14px;gap:3px 10px}
.pc .th{width:52px;height:52px;grid-row:1/3}
.pc .th svg{width:46px;height:46px}
.pc .facts{grid-column:2/6;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 10px}
.pc .facts span{overflow:hidden}
.pc .mt{line-height:1.38}
.layerbar button.chip{padding:6px 10px}
.pc .go{grid-row:1;align-self:center}
.pc .mt{grid-column:3/6}
.pc .facts{grid-template-columns:repeat(3,auto);justify-content:space-between}
.pc .facts span{overflow:visible}
.fh1 h2{font-size:20px;white-space:nowrap}
.score.gap{display:inline-flex;align-items:center;justify-content:center;gap:1px}
.score.gap sup{top:-.3em;position:relative;line-height:1}
/* docked profile: shorter, so the map keeps most of the height */
@media (min-width:861px){
  .explore .drawer{height:clamp(230px,calc(100dvh - 610px),330px)}
  .drawer .d-thumb{width:76px;height:76px;margin:14px 0 0 16px}
  .drawer .d-thumb svg{width:64px;height:64px}
}
.rule .r1 .t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r3{flex-wrap:wrap;row-gap:4px}
.r3 .pass{text-align:right;flex:1 1 120px}
@media (max-width:860px){ .search{width:100%} }

/* ---------- live map (js/map/): sits under the legend, zoom buttons and labels box ---------- */
/* the map library sets position:relative on its container; keep it filling the box */
.mapbox .glmap{position:absolute;inset:0}
.glmap canvas{outline:none}
.glco{display:flex;align-items:center;gap:5px;padding:2px 3px 2px 1px;border:1px solid var(--line-strong);border-radius:99px;background:color-mix(in srgb,var(--surface) 92%,transparent);color:var(--fg);font:inherit;box-shadow:0 1px 3px rgba(23,32,51,.18);cursor:pointer;text-align:left;line-height:1.1;white-space:nowrap}
.glco i{width:10px;height:10px;border-radius:50%;border:2px solid var(--surface);box-shadow:0 0 0 1px var(--line-strong);flex:none}
.glco b{font-size:12px;font-weight:650}
.glco small{font-size:11px;font-weight:700;color:var(--accent);background:var(--surface-2);border-radius:99px;padding:1px 5px}
.glco:hover,.glco:focus-visible{border-color:var(--accent)}
.mapbox .mapboxgl-ctrl-attrib,.mapbox .maplibregl-ctrl-attrib{font-size:10.5px}

/* compact key: title, colour bar and its two ends only, with a button to open the full key */
.legend .lg-tog{margin-left:auto;border:1px solid var(--line);background:var(--surface-2);color:var(--accent);border-radius:99px;padding:1px 9px;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer}
.legend .lg-tog:hover{border-color:var(--accent)}
.legend.mini{grid-template-columns:minmax(0,1fr)!important;gap:0!important;max-width:230px!important;width:230px;min-width:0;padding:7px 10px!important;right:auto!important;box-sizing:border-box}
.legend.mini .lg-main{min-width:0}
.legend.mini .lt{gap:6px;min-width:0}
.legend.mini .lt span{flex:1;min-width:0}
.legend.mini .lg-main{padding-right:0;gap:4px}
.legend.mini .lt{font-size:12.5px}
.legend.mini .lt span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.legend.mini .lg-keys,.legend.mini .ticks{display:none!important}
.legend.mini .segs{height:8px}
.legend.mini .ends{font-size:11.5px}

/* ---------- filters, layout 4: one compact row per category, coloured icons, settings on request ---------- */
.f-head{padding:16px 18px 10px}
.fh1 h2{font-size:20px}
.you-pill{margin-top:10px;padding:8px 12px;font-size:14px;border-radius:10px}
.f-live{margin:8px 0 0;font-size:13px;color:var(--muted)}
.f-live b{color:var(--fg);font-variant-numeric:tabular-nums}
.f-scroll{padding:0 0 16px;gap:0}
.f-scroll .you-form{margin:8px 14px}
.f-foot{margin:0;padding:10px 18px 0;gap:4px;font-size:13px}
.fx-cat{border-top:1px solid var(--line)}
.fx-head{width:100%;display:grid;grid-template-columns:30px minmax(0,1fr) auto 16px;gap:10px;align-items:center;padding:9px 16px 9px 18px;border:0;background:none;text-align:left;color:var(--fg);cursor:pointer}
.fx-head:hover{background:var(--sunk)}
.fx-ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:color-mix(in srgb,var(--cc) 14%,transparent)}
.fx-ic svg{width:18px;height:18px;fill:none;stroke:var(--cc);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fx-tt{min-width:0;display:block}
.fx-nm{display:block;font-weight:700;font-size:14.5px;line-height:1.25}
.fx-sm{display:block;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.fx-tag{font-size:11px;font-weight:700;border-radius:5px;padding:2px 6px;background:var(--surface-2);color:var(--muted);white-space:nowrap}
.fx-tag.prefer{background:var(--accent-soft);color:var(--accent-strong)}
.fx-tag.require{background:var(--navy);color:var(--navy-ink)}
.fx-head .chev{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2;transition:transform .15s}
.fx-cat.open .fx-head .chev{transform:rotate(180deg)}
.fx-body{padding:2px 16px 12px 18px;display:grid;gap:8px}
.fx-seg{display:flex;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden;background:var(--surface)}
.fx-seg button{flex:1;border:0;border-right:1px solid var(--line-strong);background:none;padding:6px 4px;font-size:13px;font-weight:600;color:var(--fg);min-height:32px}
.fx-seg button:last-child{border-right:0}
.fx-seg button:hover{background:var(--sunk)}
.fx-seg button[aria-checked="true"]{background:var(--accent);color:var(--accent-ink)}
.fx-seg button.must[aria-checked="true"]{background:var(--navy);color:var(--navy-ink)}
.fx-seg.sm{flex:none;border-radius:6px}
.fx-seg.sm button{padding:2px 6px;font-size:11.5px;min-height:24px;flex:none}
.fx-presets{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.fx-pre{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:6px 8px;text-align:left;display:grid;gap:1px;color:var(--fg);cursor:pointer}
.fx-pre b{font-size:13px}
.fx-pre .n{font-size:11.5px;color:var(--muted)}
.fx-pre i{font-style:normal;font-size:11.5px;color:var(--muted);line-height:1.3}
.fx-pre:hover{border-color:var(--accent)}
.fx-pre.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}
.fx-ref{display:flex;flex-wrap:wrap;gap:4px}
.fx-ref span{font-size:11.5px;background:var(--sunk);border-radius:6px;padding:2px 6px;white-space:nowrap;color:var(--muted)}
.fx-ref span b{color:var(--fg);font-variant-numeric:tabular-nums}
.fx-ref span.mid{background:none;border:1px dashed var(--line-strong)}
.fx-note{font-size:12.5px;color:var(--muted);line-height:1.4;margin:0}
.fx-note b{color:var(--fg)}
.fx-rule{display:grid;gap:4px;padding:6px 0 4px;border-top:1px dashed var(--line)}
.fx-rule.off .val,.fx-rule.off .r2{opacity:.6}
.fx-rule.must{box-shadow:inset 3px 0 0 var(--navy);padding-left:8px}
.fx-r1{display:flex;align-items:center;gap:2px}
.fx-r1 .t{font-weight:700;font-size:13.5px;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fx-rule .mini{width:26px;height:26px;border:0;background:none;border-radius:6px;display:inline-grid;place-items:center;color:var(--muted)}
.fx-rule .mini:hover{background:var(--surface-2);color:var(--fg)}
.fx-rule .mini svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fx-rule .mini[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft)}
.fx-rule .val{font-size:13px;color:var(--muted)}
.fx-rule .val b{color:var(--fg);font-variant-numeric:tabular-nums}
.fx-rule .r2{margin-top:0}
.fx-rule.must input[type=range]::-webkit-slider-thumb{background:var(--navy);box-shadow:0 0 0 1px var(--navy)}
.fx-r3{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--faint)}
.fx-r3 .link{font-size:12px}
.fx-nodata{font-size:12px;color:var(--warn);background:var(--warn-soft);border-radius:6px;padding:4px 8px}
.fx-adv,.fx-sub{border:1px solid var(--line);border-radius:8px;padding:0 10px}
.fx-adv>summary,.fx-sub>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--accent);padding:7px 0;list-style:none;display:flex;justify-content:space-between;gap:8px}
.fx-adv>summary::-webkit-details-marker,.fx-sub>summary::-webkit-details-marker{display:none}
.fx-adv>summary span{color:var(--muted);font-weight:500}
.fx-adv[open],.fx-sub[open]{padding-bottom:8px}
.fx-sub{display:grid;gap:6px}
.fx-area{display:grid;grid-template-columns:minmax(0,1fr) 90px 30px;gap:8px;align-items:center;font-size:12.5px}
.fx-area b{font-variant-numeric:tabular-nums;text-align:right}
.fx-check{display:flex;gap:8px;align-items:flex-start;font-size:13px}
.fx-check input{margin-top:2px}
.fx-pend{display:grid;gap:4px;font-size:12px;color:var(--muted);line-height:1.35}
.fx-pend b{color:var(--warn)}
.fx-pend .fx-when{color:var(--faint);white-space:nowrap}
.fx-coming{font-size:12px;color:var(--muted);border:1px dashed var(--line-strong);border-radius:8px;padding:6px 9px;display:grid;gap:3px;line-height:1.35}
.fx-coming>b{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--faint)}
.fx-coming span{color:var(--fg);font-weight:600}
.pill.lawflag{background:var(--warn-soft);color:var(--warn)}
.lawsides{display:grid;gap:10px}
.lawsides .ls{display:grid;gap:2px;font-size:13.5px}
.pendline{color:var(--warn);font-size:13px}
.harea{display:grid;gap:6px}
.ha{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13px}
.ha b{font-weight:600;font-size:12.5px;color:var(--muted);white-space:nowrap}
.hbar{height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.hbar i{display:block;height:100%;background:var(--accent)}
@media (max-width:860px){ .fx-head{padding:11px 16px} .fx-presets{grid-template-columns:1fr 1fr} }
.f-scroll{overflow-x:hidden}
.fx-body,.fx-sub,.fx-adv{min-width:0}
.fx-area input{width:100%;min-width:0}
.fx-rule,.fx-rule>*{min-width:0}
.fx-r1{flex-wrap:wrap;row-gap:4px}
.fx-r1 .fx-seg.sm{margin-left:auto}
.fx-adv .fx-r1 .t{flex:1 1 140px}
.fx-rule.off input[type=range]::-webkit-slider-thumb{background:var(--surface);border-color:var(--line-strong);box-shadow:0 0 0 1px var(--line-strong)}
@media (pointer:coarse),(max-width:860px){
  input[type=range]{margin:6px 0}
  input[type=range]::-webkit-slider-thumb{width:26px;height:26px}
  input[type=range]::-moz-range-thumb{width:24px;height:24px}
}
/* the slider shares the old .line class name; keep it a bare track */
.fx-rule input[type=range]{padding:0;border:0;display:block;margin:8px 0;height:6px}
@media (pointer:coarse),(max-width:860px){ .fx-rule input[type=range]{margin:12px 0} }
