    :root{
      --lime:#84CC16; --navy:#1A2B3C; --ink:#0f172a; --accent:#2563eb;
      --line:#e2e8f0; --muted:#64748b; --bg:#f8fafc;
      --sheet-h: 58vh;
      --mc-shadow: 0 1px 2px rgba(15,23,42,.14), 0 4px 12px rgba(15,23,42,.1);   /* every topbar control */
      /* Where the map's own controls start on a desktop: the floating paper
         card is 12px in, 384px wide, and everything else keeps 12px clear of
         it. ONE number - the topbar, the bottom bar and MapLibre's bottom-left
         controls all read it. */
      --pnl-edge: 408px;
    }
    *{box-sizing:border-box}
    html,body{margin:0;height:100%;font-family:'Inter',system-ui,sans-serif;color:var(--ink);overflow:hidden}
    #map{position:absolute;inset:0}

    /* Zoom + compact "i" attribution are anchored bottom-LEFT so the bottom-RIGHT
       fab column (Spot at the very bottom, shortlist stacked above her) never sits
       on top of them. On desktop, push them past the
       360px sidebar. */
    /* +40px: the loading mark (.mapbusy) takes the first 40px, so the attribution "i"
       sits to ITS right and opens rightwards without covering it. */
    @media(min-width:880px){ .maplibregl-ctrl-bottom-left{ left:calc(var(--pnl-edge) + 40px) } }
    /* Sale/Rent sits dead-centre of the map's top edge on desktop (Brad, 16 Sep
       2026). The topbar spans left:var(--pnl-edge)..right:12px there, so 50% of it is the
       centre of the visible map. Phones keep it in flow, where the bar wraps. */
    @media(min-width:880px){ .topbar #ltSeg{ position:absolute; left:50%; transform:translateX(-50%) } }

    /* Zoom is bottom-RIGHT and the attribution "i" bottom-LEFT (swapped 14 Oct
       2026, Brad). The attribution is collapsed to the "i" by default
       (compact:true) and opens rightwards, across the score key, so on desktop it
       gets a z-index above the key (.botbar is 22). The
       right column only has Spot's fab, when she is switched on, to clear. */
    .maplibregl-ctrl-bottom-right{ bottom:var(--sc-spot-fab-clear, 4px); right:4px; }
    .maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib{ background:rgba(255,255,255,.86); }
    @media(min-width:880px){ .maplibregl-ctrl-bottom-left{ z-index:30 } }
    /* On a phone the collapsed sheet (84px) AND the score card above it (.botbar,
       bottom 96px) cover the bottom edge, so both corners sit above the CARD.
       --botbar-clear is the card's measured top edge, written by
       03_map_status_filters.js, because the card grows when its key wraps on a
       narrow phone; 178px is the unwrapped fallback (96 + a 74px card + 8).
       Until 9 Nov 2026 both corners sat at 92px, UNDER the card: the zoom
       buttons peeked out at its right edge and the attribution "i" - which the
       OSM / Esri / LINZ licences need visible - was hidden entirely. */
    @media(max-width:879px){ .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right{ bottom:var(--botbar-clear, 178px) }
      .maplibregl-ctrl-bottom-left{ left:40px } }

    /* ---- the loading mark: the navy tick circle, three states ----
       30px, bottom-left, left of the attribution "i". The logo is hollow, so a
       white fill sits INSIDE its ring (inset 2px). Behind the whole circle, the
       ring's antialiased edge blended with white and drew a pale fringe on the
       dark map. Loading: the ring plus a turning navy wheel. Done: the logo itself,
       then it fades. Error: the ring plus an amber "!" - the button is the retry. */
    .mapbusy{position:absolute;z-index:31;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:none;
      display:grid;place-items:center;color:var(--navy);pointer-events:none;
      left:calc(var(--pnl-edge) + 10px);bottom:10px;transition:opacity .4s}
    .mapbusy[hidden]{display:none}
    .mapbusy.fade{opacity:0}
    .mapbusy:before{content:"";position:absolute;inset:2px;border-radius:50%;background:#fff}
    .mapbusy img{position:absolute;inset:0;width:100%;height:100%;display:block}
    .mapbusy .mb-ring{position:absolute;inset:0;border-radius:50%;border:2.2px solid var(--navy)}
    .mapbusy svg{position:relative;width:17px;height:17px;fill:none;stroke:var(--navy);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
    .mapbusy[data-state="loading"] svg{animation:mbspin 1s steps(8) infinite}
    .mapbusy[data-state="error"]{pointer-events:auto;cursor:pointer}
    .mapbusy[data-state="error"] svg{stroke:#b45309;stroke-width:2.8}
    .mapbusy:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
    @keyframes mbspin{to{transform:rotate(360deg)}}
    @media(prefers-reduced-motion:reduce){.mapbusy[data-state="loading"] svg{animation-duration:6s}.mapbusy{transition:none}}
    /* Phone: on the same line as the attribution "i", clear of the score card,
       and UNDER the sheet (.panel is z 25, .botbar 22): at z 31 it floated over
       the raised sheet's content, a tick circle sitting on the Rooms heading. */
    @media(max-width:879px){ .mapbusy{left:10px;bottom:var(--botbar-clear, 178px);z-index:24} }
    .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

    /* ---- help menu + guided tour (app parity) ---- */
    /* The lime disc IS the button, exactly like .maphome: the SVG's disc is inset
       ~5% inside its viewBox, so a lime fill under it makes one solid circle and
       the inset blends in. (It was a 10px white square with a 26px disc inside,
       which read as a stray white box in the corner.) */
    .maphelp{display:block;width:40px;height:40px;flex:none;line-height:0;
      border:0;padding:0;border-radius:50%;background:var(--lime);cursor:pointer;
      box-shadow:var(--mc-shadow)}
    .maphelp img{width:40px;height:40px;display:block;border-radius:50%}
    .maphelp:hover{box-shadow:0 3px 14px rgba(15,23,42,.32)}
    .maphelp.on{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--navy)}
    .maphelp:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
    #helpMenu{display:none;position:absolute;z-index:60;background:#fff;border:1px solid var(--line);
      border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.22);overflow:hidden;min-width:250px}
    #helpMenu.show{display:block}
    .hm-item{display:block;width:100%;text-align:left;background:none;border:0;cursor:pointer;
      padding:11px 14px;font:inherit;color:inherit;text-decoration:none;border-bottom:1px solid #f1f5f9}
    .hm-item:last-child{border-bottom:0}
    .hm-item:hover{background:#f8fafc}
    .hm-item b{display:block;font-size:.9rem}
    .hm-item span{display:block;font-size:.78rem;color:var(--muted);margin-top:2px}
    body.dark #helpMenu{background:#0f172a;border-color:#334155}
    body.dark .hm-item{border-color:#1e293b}
    body.dark .hm-item:hover{background:#1e293b}
    /* The scrim is one element with a giant spread shadow punched through by
       #tourHole - the same trick as the app's scrim painter, and it keeps the
       highlighted control genuinely visible rather than a screenshot of it. */
    #tourScrim{display:none;position:fixed;inset:0;z-index:9000}
    #tourScrim.show{display:block}
    #tourHole{position:absolute;border-radius:14px;box-shadow:0 0 0 9999px rgba(8,15,26,.72);
      border:2px solid var(--lime);transition:all .22s ease}
    #tourCard{position:absolute;max-width:340px;background:#fff;border-radius:14px;padding:16px 18px 13px;
      box-shadow:0 18px 44px rgba(2,6,23,.4);transition:all .22s ease}
    #tourCard h4{margin:0 0 6px;font:700 1.02rem/1.3 'Outfit',Inter,sans-serif;color:var(--navy)}
    #tourCard p{margin:0;font-size:.86rem;line-height:1.55;color:#334155}
    #tourX{position:absolute;top:8px;right:9px;border:0;background:none;font-size:1.25rem;line-height:1;
      color:#94a3b8;cursor:pointer}
    .tour-foot{display:flex;justify-content:space-between;align-items:center;margin-top:11px;
      font-size:.74rem;color:var(--muted)}
    body.dark #tourCard{background:#0f172a}
    body.dark #tourCard h4{color:#e2e8f0}
    body.dark #tourCard p{color:#cbd5e1}

    /* ---- top controls ---- */
    /* flex-wrap is load-bearing on phones: these seven controls need ~407px of
       min-content and a 360px screen gives 336px. Without wrapping, and with
       html,body at overflow:hidden, whatever fell off the right edge was
       unreachable rather than scrollable. */
    .topbar{position:absolute;top:12px;left:12px;right:12px;z-index:20;display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;pointer-events:none}
    .topbar > *{pointer-events:auto}
    /* Home button - the same lime house badge as the site header, links back to the
       homepage. Sits at the top-left of the visible map (first item in the topbar). */
    /* Lime (not white) background: the house-circle.svg green disc is inset ~5% inside
       its viewBox, so a white fill shows through as a halo ring. --lime matches the
       disc exactly, so the inset blends in and the badge reads as one solid circle. */
    .maphome{display:block;width:40px;height:40px;flex:none;border-radius:50%;line-height:0;
      background:var(--lime);box-shadow:var(--mc-shadow)}
    .maphome img{width:40px;height:40px;display:block;border-radius:50%}
    .maphome:hover{box-shadow:0 3px 14px rgba(15,23,42,.32)}
    /* flex:none as well as overflow:hidden. overflow:hidden zeroes the flex auto
       minimum (Flexbox 4.5), so in a cramped row the basemap switcher shrank
       toward zero width and vanished instead of overflowing. */
    .seg{display:flex;flex:none;background:#fff;border-radius:10px;box-shadow:0 2px 10px rgba(15,23,42,.14);overflow:hidden}
    .seg button{border:0;background:#fff;padding:9px 13px;font:inherit;font-size:.84rem;font-weight:600;color:var(--muted);cursor:pointer}
    .seg button.on{background:var(--navy);color:#fff}
    /* Topbar base toggle, For Sale / For Rent and the locale (country/lang/currency)
       pill share one height so they line up; each is pinned so they match exactly
       regardless of UA line-height. */
    /* Every topbar control is 40px tall with a 10px radius and the same shadow
       (--mc-shadow); that is the whole kit. Lime = the one main action (Near me),
       navy = what is selected. */
    .topbar #ltSeg{height:40px}
    .topbar #ltSeg button{padding:0 15px}
    /* Buy / Rent as a navy track with a LIME thumb under the chosen word (4 Nov 2026, the
       owner's pick of ten: it was a dark half beside a white half, and nothing said which
       was the choice). The unchosen word sits quietly on the track. */
    .topbar #ltSeg{box-sizing:border-box;padding:3px;background:var(--navy);border-radius:12px}
    .topbar #ltSeg button,.topbar #ltSeg button:first-child,.topbar #ltSeg button:last-child{background:transparent;color:#9fb0c2;border-radius:9px}
    .topbar #ltSeg button.on{background:#84CC16;color:#14210a}
    /* The Commute tab's Off-peak / Peak traffic toggle wears the same navy track and lime thumb
       as Buy / Rent (4 Nov 2026). It is a .seg too, so the old white-and-navy look came from
       the generic .seg rules; these beat them by specificity, in both themes. */
    .ct-m .seg.ct-seg{box-sizing:border-box;padding:3px;background:var(--navy);border-radius:12px}
    .ct-m .seg.ct-seg button,.ct-m .seg.ct-seg button:first-child,.ct-m .seg.ct-seg button:last-child{background:transparent;color:#9fb0c2;border-radius:9px}
    .ct-m .seg.ct-seg button.on{background:#84CC16;color:#14210a}
    /* For Sale / For Rent sits beside the basemap switcher (Brad, 16 Sep 2026). It
       asks the same class of question - what is the map showing - and moving it up
       here leaves the bottom bar holding one card, which can then be centred. It
       takes .seg button's padding and font unchanged, so it is #baseSeg's twin; the
       old bottom-bar sizing (flex:1, 13px padding, .95rem) went with the bar it was
       sized for. nowrap stays: "For Rent" must still not break over two lines. */
    .seg.lt button{white-space:nowrap}
    /* PHONE TOP BAR (3 Nov 2026). Home, market, For Sale / For Rent, Near me and
       Help share ONE row. Near me keeps its lime and its place at the right but
       drops its word - the crosshair says it, and aria-label keeps the name for
       screen readers. Below 480px the market pill sheds its layers icon and
       chevron (the code is the information) and everything tightens; below 380px
       the two round buttons shrink to 36px. Sized so "WORLD", the longest market
       word, still fits 360px: 40+68+120+36+36 plus four 6px gaps = 324 of 336. */
    @media(max-width:879px){
      .topbar{flex-wrap:nowrap}
      .topbar .nearme{width:40px;padding:0;justify-content:center;flex:none}
      .topbar .nearme .nm-t{display:none}
    }
    @media(max-width:480px){
      .topbar{gap:6px}
      .topbar .mc-btn{padding:0 10px;gap:5px}
      .topbar .mc-btn .mc-chev, .topbar .mc-btn > svg:first-child{display:none}
      .topbar .seg.lt button{padding:0 9px}
    }
    @media(max-width:380px){
      .topbar .seg.lt button{padding:0 7px}
      .topbar .nearme, .topbar .maphelp, .topbar .maphelp img{width:36px;height:36px}
      .topbar .nearme{height:36px}
    }
    .nearme{margin-left:auto;border:0;background:var(--lime);color:#15240a;font:inherit;font-weight:800;font-size:.86rem;
      height:40px;padding:0 15px;border-radius:10px;box-shadow:var(--mc-shadow);cursor:pointer;display:flex;gap:7px;align-items:center}

    /* The Watchlist tab's heart: red while anything is on the list, and it flashes
       brighter (with a short glow) for about a second when a home is added. */
    /* Outline when the list is empty, SOLID NAVY once it holds a home (navy is the
       brand ink; on the dark panel it becomes the panel's light ink, which is the
       same "solid" against that ground). The flash lights the heart lime and grows
       it for a second, then it settles back. */
    #pnlSpine .st[data-pane="saved"].has .ic{color:#1A2B3C;fill:currentColor}
    body.dark #pnlSpine .st[data-pane="saved"].has .ic{color:var(--pa-ink)}
    #pnlSpine .st[data-pane="saved"].pulse .ic{animation:wlpulse 1.2s ease-out}
    @keyframes wlpulse{
      0%{transform:scale(1);filter:none}
      25%{transform:scale(1.45);color:#84CC16;filter:drop-shadow(0 0 5px rgba(132,204,22,.95))}
      100%{transform:scale(1);filter:none}}
    @media(prefers-reduced-motion:reduce){
      #pnlSpine .st[data-pane="saved"].pulse .ic{animation-name:wlflash}
      @keyframes wlflash{0%,100%{filter:none}25%{color:#84CC16;filter:drop-shadow(0 0 5px rgba(132,204,22,.95))}}}

    /* The address search above the tabs is the Search tab's, and only shows there
       (openPane() keeps #panel[data-pane] current). */
    #panel:not([data-pane="search"]) .pnl-search{display:none}

    /* ---- Nearby tab: browse by group (NearbyBrowse) ----
       Tiles that open a list of tags, on the panel's own paper palette. */
    .nb-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}   /* the pane's own 14px gap spaces it; no margin on top of that */
    /* Each group tile is a solid block of its own colour with white type and a large
       faint icon cropped into the corner (4 Nov 2026, the owner's pick of ten: "Solid
       with watermark"). The colours follow what the group IS (health red, food orange,
       outdoors green) and are NOT the map pins' colours, which have to stay clear of
       the school-zone reds and violets. --nbc is set per tile from GROUPS below. */
    /* TONED DOWN (4 Nov 2026, the owner's pick: "paper grain"): the group colour is mixed about
       halfway into the panel paper, the type takes a deep shade of the same colour, and a fine
       noise sits over the fill like uncoated card. The tokens below flip with the dark panel. */
    .nb-tile,.nb-chip{--nb-mix:50%;--nb-txt:38%;--nb-txt-to:#000;
      --nb-fill:color-mix(in srgb,var(--nbc) var(--nb-mix),var(--pa-paper));
      --nb-ink:color-mix(in srgb,var(--nbc) var(--nb-txt),var(--nb-txt-to));
      --nb-grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
    body.dark .nb-tile,body.dark .nb-chip,body.map-dark .nb-tile,body.map-dark .nb-chip{--nb-mix:52%;--nb-txt:28%;--nb-txt-to:#fff}
    .nb-tile::before,.nb-chip::before{content:"";position:absolute;inset:0;pointer-events:none;
      background-image:var(--nb-grain);opacity:.18;mix-blend-mode:multiply}
    body.dark .nb-tile::before,body.dark .nb-chip::before,body.map-dark .nb-tile::before,body.map-dark .nb-chip::before{opacity:.2;mix-blend-mode:normal}
    .nb-tile{--nbc:var(--pa-mark);position:relative;overflow:hidden;min-height:84px;display:flex;flex-direction:column;
      align-items:flex-start;gap:6px;padding:12px;border:1px solid color-mix(in srgb,var(--nbc) 55%,var(--pa-paper));border-radius:12px;background-color:var(--nb-fill);
      color:var(--nb-ink);cursor:pointer;text-align:left;font:inherit}
    .nb-tile:hover{filter:brightness(1.05)}
    .nb-tile svg{position:absolute;right:-8px;bottom:-10px;width:70px;height:70px;fill:currentColor;
      color:inherit;opacity:.16;pointer-events:none}
    .nb-tile b{position:relative;font:700 .88rem/1.2 Inter,sans-serif}
    .nb-tile small{position:relative;margin-top:auto;font:500 .72rem Inter,sans-serif;color:inherit;opacity:.85}
    .nb-tile small em{font-style:normal;font-weight:700;opacity:1}
    /* Inside a group (4 Nov 2026): the same solid tiles as the group list, one per place type, in
       the group's own colour; a full-width Back button; a heading with room above and below. A
       picked type keeps its colour and gains a paper-then-colour ring and a tick, so it reads as
       chosen in either theme without changing the tile's colour. --nbc is set on .nb-chips. */
    .nb-sub{display:grid;gap:12px}
    .nb-sub .pane-h{margin:0}
    .nb-back{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:0 14px;
      border:1px solid var(--pa-edge);border-radius:12px;background:var(--pa-field);cursor:pointer;
      font:700 .9rem Inter,sans-serif;color:var(--pa-ink)}
    .nb-back:hover{border-color:var(--pa-mark)}
    .nb-back svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(90deg)}
    .nb-chips{--nbc:var(--pa-mark);display:grid;grid-template-columns:1fr 1fr;gap:8px}   /* the style attribute on the element overrides this with the group colour */
    .nb-chip{position:relative;overflow:hidden;min-height:76px;display:flex;align-items:flex-start;gap:6px;
      padding:11px 12px;border:1px solid color-mix(in srgb,var(--nbc) 55%,var(--pa-paper));border-radius:12px;background-color:var(--nb-fill);color:var(--nb-ink);
      text-align:left;cursor:pointer;font:700 .8rem/1.2 Inter,sans-serif}
    .nb-chip:hover{filter:brightness(1.05)}
    .nb-chip .ci{position:relative;display:grid;place-items:center;flex:none;width:34px;height:34px}
    .nb-chip .ci svg{width:32px!important;height:32px!important;vertical-align:0!important}   /* beats the glyph's inline 15px; the glyph keeps its own fill/stroke */
    .nb-chip .ci img{width:34px;height:26px;object-fit:cover;border-radius:3px;display:block}
    /* Words stay whole: 'anywhere' let flex squeeze the label until 'Community' broke as 'Communi / ty' (6 Nov 2026).
       A smaller icon and label leave it room; a word that still cannot fit hyphenates instead of splitting bare. */
    .nb-chip .lb{position:relative;min-width:0;padding-right:20px;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
    .nb-chip .wm{position:absolute;right:-10px;bottom:-12px;width:72px;height:72px;color:inherit;opacity:.18;pointer-events:none}
    .nb-chip .wm svg{width:100%!important;height:100%!important;vertical-align:0!important}
    .nb-chip .tick{position:absolute;top:7px;right:7px;width:18px;height:18px;border-radius:50%;background:var(--nb-ink);color:var(--nb-fill);
      display:none;place-items:center}
    .nb-chip .tick svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
    .nb-chip.on{box-shadow:0 0 0 2px var(--pa-paper),0 0 0 4px var(--nbc)}
    .nb-chip.on .tick{display:grid}
    /* An empty chip row still took its 9px margin plus a flex gap: that was the dead band under the search box. */
    #tagChips:empty{display:none!important}
    .nb-tile:focus-visible,.nb-chip:focus-visible,.nb-back:focus-visible{outline:2px solid var(--pa-ink);outline-offset:2px}

    /* "Use this as my location": the hand-set dot, its right-click menu, and hiding
       the browser's own dot while a hand-set one exists (see MyLoc). */
    .myloc{width:18px;height:18px;border-radius:50%;background:#2563eb;border:3px solid #fff;box-sizing:border-box;
      box-shadow:0 0 0 1px rgba(15,23,42,.25),0 2px 8px rgba(15,23,42,.35);cursor:grab}
    body.myloc-manual .maplibregl-user-location-dot,
    body.myloc-manual .maplibregl-user-location-dot:before,
    body.myloc-manual .maplibregl-user-location-accuracy-circle{display:none}
    #myLocMenu{display:none;position:fixed;z-index:70;min-width:190px;padding:4px;background:#fff;
      border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px rgba(15,23,42,.22)}
    #myLocMenu button{display:block;width:100%;text-align:left;border:0;background:none;cursor:pointer;
      padding:9px 12px;border-radius:7px;font:600 .86rem Inter,system-ui,sans-serif;color:var(--ink)}
    #myLocMenu button:hover,#myLocMenu button:focus-visible{background:#f1f5f9;outline:0}
    body.dark #myLocMenu{background:#0f172a;border-color:#334155}
    body.dark #myLocMenu button{color:#e2e8f0}
    body.dark #myLocMenu button:hover,body.dark #myLocMenu button:focus-visible{background:#1e293b}

    /* ---- map settings: ONE button holding basemap + market (option C, 14 Oct 2026) ----
       Basemap, and the country/language/currency menu, used to be two separate
       controls in two styles. The button is a layers icon with the market code as
       its badge; the card holds both. #baseSeg is still the element the basemap
       handler reads (its buttons keep data-base), and the market section is the
       site's own locale menu from i18n-core.js, mounted inline: its own button is
       hidden and its dropdown is forced open and static, so nothing in
       i18n-core.js changed. !important is load-bearing - that menu is built with
       inline styles. */
    .mc-wrap{position:relative;flex:none}
    /* The raw country <select> is only the value holder behind the NZ pill (the
       script sets its display:none ~7,900 lines down). Until that line runs it
       was drawn as a second tile beside the pill, so hide it in CSS, from the
       first paint. */
    #countrySel{display:none}
    /* The navy pill (option 10, 14 Oct 2026): layers icon, the market code in bold,
       a chevron that says it opens. Navy like the selected side of For Sale / For
       Rent, so it stands apart from the white Home badge; lime while the card is open. */
    .mc-btn{position:relative;display:flex;align-items:center;gap:7px;height:40px;padding:0 12px;
      border:0;border-radius:10px;background:var(--navy);color:#fff;cursor:pointer;box-shadow:var(--mc-shadow);
      font:700 13px Inter,sans-serif;white-space:nowrap}
    .mc-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
    .mc-btn .mc-chev{width:13px;height:13px;stroke-width:2.4;opacity:.7}
    .mc-btn.on{background:var(--lime);color:#15240a}
    .mc-btn #mapSetBadge{font-weight:800;text-transform:uppercase;min-width:1.6em;text-align:left}
    .mc-card{position:absolute;top:calc(100% + 8px);left:0;z-index:50;width:268px;padding:12px 14px 14px;
      background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.22)}
    .mc-card[hidden]{display:none}
    .mc-lbl{display:block;font:700 11px Inter,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:#94a3b8;margin:0 0 8px}
    .mc-lbl + .mc-tiles + .mc-lbl{margin-top:14px}
    .mc-tiles{display:flex;gap:8px}
    .mc-tiles button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;border:0;background:none;
      padding:0;font:600 .76rem Inter,sans-serif;color:var(--muted);cursor:pointer}
    .mc-tiles i{display:block;width:100%;height:46px;border-radius:8px;border:2px solid transparent;box-shadow:inset 0 0 0 1px rgba(15,23,42,.1)}
    .mc-tiles .a{background:linear-gradient(135deg,#46603a,#6f8a52 45%,#2d4a5a)}
    .mc-tiles .m{background:linear-gradient(135deg,#efe8d6,#c9dde3)}
    .mc-tiles .d{background:linear-gradient(135deg,#1e2a38,#2f4054)}
    .mc-tiles button.on{color:var(--ink)}
    .mc-tiles button.on i{border-color:var(--lime)}
    .mc-btn:focus-visible,.mc-tiles button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
    #mapSet #scLocaleMenu{display:block !important;width:100%}
    #mapSet #scLocaleBtn{display:none !important}
    #mapSet #scLocaleDropdown{display:block !important;position:static !important;width:auto !important;
      border:0 !important;box-shadow:none !important;padding-bottom:0 !important;background:transparent !important}
    #mapSet #scLocaleDropdown > div{padding:0 0 8px !important}
    body.dark .mc-card{background:#0f172a;border-color:#334155}
    body.dark .mc-tiles button.on{color:#e2e8f0}
    body.dark .mc-tiles button{color:#94a3b8}

    /* ---- the paper palette (panel + map key) ----
       The "full spine" study (option 21, 2 Oct 2026): the panel is a sheet of
       warm paper over the map. These are the study's own values with ONE
       deliberate change - its #9A8B70 small text measured 3.1:1 on the sheet,
       so every muted line takes the report's --sc-muted (#6F6154, 5.6:1)
       instead. The report's warm theme and the map's Linen paper are the
       same family (see warm_paper notes); this is the panel's slice of it,
       prefixed --pa- because style.css already owns --pp-*.
       Dark is Deep Water's own paper (static/map/themes/deepwater.json:
       paper #131C26, paper3 #1E2A36, bldgLine #2A3844, ink #9FB6C4) so the
       card sits ON the dark map instead of glowing over it. Body text clears
       WCAG AA 4.5:1 on its own sheet in both themes. */
    :root{
      --pa-paper:#FBF6EC; --pa-field:#FFFDF8; --pa-tab:#EADFC9; --pa-edge:#DCD2BF; --pa-rule:#EDE5D5;
      --pa-ink:#3B3226; --pa-muted:#6F6154; --pa-tabink:#625545; --pa-mark:#8C7A4E;
      --pa-on:#3B3226; --pa-on-ink:#FBF6EC; --pa-trk:#E4DAC6; --pa-fill:#8C7A4E;
      --pa-yes:#3E5C34; --pa-shadow:rgba(90,75,54,.24); --pa-flash:#ECFCCB;
    }
    /* Dark is "Peat" (4 Nov 2026, picked from twelve): a dark brown with an olive
       undertone, the dark twin of the beige paper. The old slate was cool against
       the warm light mode. Toggle tracks are --pa-seg, the one dark brown-black. */
    body.dark,body.map-dark{
      --pa-paper:#272419; --pa-field:#1D1B12; --pa-tab:#1D1B12; --pa-edge:#433D2A; --pa-rule:#342F20;
      --pa-ink:#F1EAD3; --pa-muted:#B5AD8E; --pa-tabink:#B5AD8E; --pa-mark:#C9B77A;
      --pa-on:#EDE4C6; --pa-on-ink:#1D1B12; --pa-trk:#342F20; --pa-fill:#D3BC73;
      --pa-yes:#9CC98A; --pa-shadow:rgba(0,0,0,.55); --pa-flash:#3F6212;
      --pa-seg:#13110A;
    }
    body.dark .topbar #ltSeg,body.dark .ct-m .seg.ct-seg,
    body.map-dark .topbar #ltSeg,body.map-dark .ct-m .seg.ct-seg{background:var(--pa-seg)}
    /* The dark BASEMAP can be picked while the site theme is light (see _darkTiles), and
       a cream sheet over dark tiles is what 4 Nov showed. So the panel's tokens follow
       the ground it sits on: body.map-dark takes the same Peat values as body.dark. */

    /* ---- the bottom bar: score toggles + the map key ----
       The three score switches and the key that says what their colours mean,
       as ONE card on the map. They spent 2-3 Oct 2026 in a panel tab, with only
       the key left here; the owner wanted them back where a press and the dots
       it repaints are in view together (3 Oct 2026). The card is a COLUMN: the
       three toggles in a row, and directly under them the key strip - one
       object on purpose, the control and its legend never apart. Drawn on the
       panel's paper (--pa-*), so the two cards read as one set in both themes.
       Mirrors .topbar: the bar itself is click-through, its children are not. */
    .botbar{position:absolute;bottom:12px;left:12px;right:12px;z-index:22;display:flex;flex-wrap:wrap;
      gap:8px;align-items:center;justify-content:center;pointer-events:none}
    .botbar > *{pointer-events:auto}
    .sctog{display:flex;flex-direction:column;flex:none;background:var(--pa-paper);color:var(--pa-ink);
      border:1px solid var(--pa-edge);border-radius:10px;overflow:hidden;box-shadow:0 6px 18px var(--pa-shadow)}
    /* The three buttons SHARE the card's width. The card is sized by its widest
       child and that is the key strip underneath, so a content-sized button row
       left the three huddled against the left edge (Brad, 16 Sep 2026).
       flex:1 1 0 splits whatever the key needs three ways. */
    .sctog-row{display:flex}
    .sctog-row button{border:0;border-bottom:2px solid transparent;background:var(--pa-paper);padding:9px 13px;
      font:600 .84rem/1.2 Inter,sans-serif;flex:1 1 0;min-height:40px;
      color:var(--pa-tabink);cursor:pointer;display:flex;align-items:center;justify-content:center;
      gap:6px;white-space:nowrap}
    .sctog-row button + button{border-left:1px solid var(--pa-rule)}
    .sctog-row button .ic{width:16px;height:16px;flex:none;color:var(--pa-mark)}
    .sctog-row button:hover{color:var(--pa-ink)}
    /* ON is the espresso fill AND an underline - two signals, because a fill
       alone is one. Every button carries a transparent 2px bottom border, so the
       underline arrives without moving a pixel of anything around it. */
    .sctog-row button.on{background:var(--pa-on);color:var(--pa-on-ink);border-bottom-color:var(--lime)}
    .sctog-row button.on .ic{color:var(--pa-on-ink)}
    .sctog-row button:focus-visible{outline:2px solid var(--pa-ink);outline-offset:-3px}
    /* On the dark sheet the ON fill is pale paper, where lime would vanish, so
       the underline there is the label's own ink. */
    body.dark .sctog-row button.on{border-bottom-color:var(--pa-on-ink)}
    /* The key strip sits a shade apart from the buttons above it (the tab
       colour), so it reads as the card's caption rather than a fourth button. */
    .sckey{border-top:1px solid var(--pa-edge);background:var(--pa-tab);padding:6px 11px 8px}
    /* The key ACKNOWLEDGES a toggle. Its heading rewrites itself either way, but a
       line of 9.5px small caps changing two words is easy to miss when your eye is
       on the button you just pressed - so the strip flashes and fades back.
       Reduced motion gets the text change and no animation at all. */
    @keyframes sckey-flash{from{background:var(--pa-flash)}to{background:var(--pa-tab)}}
    .sckey.flash{animation:sckey-flash .6s ease-out}
    @media(prefers-reduced-motion:reduce){ .sckey.flash{animation:none} }
    .sckey-h{font:700 9.5px/1.3 Inter,sans-serif;letter-spacing:.07em;text-transform:uppercase;
      color:var(--pa-muted);margin-bottom:4px;text-align:center}
    .sckey-row{display:flex;gap:12px;flex-wrap:wrap}
    /* Same reason as .mapstatus[hidden]: an author display:flex outranks the
       UA's [hidden]{display:none}, so hiding the swatches has to say so. */
    /* Hidden, not removed: the box keeps its full height when no score is on. */
    .sckey-row[hidden]{display:flex;visibility:hidden}
    .sckey-row span{display:inline-flex;align-items:center;gap:5px;font:600 11px/1.2 Inter,sans-serif;
      color:var(--pa-ink);white-space:nowrap}
    .sckey-row i{width:11px;height:11px;border-radius:50%;border:1px solid var(--pa-paper);
      box-shadow:0 0 0 1px var(--pa-edge);flex:none}
    @media(min-width:880px){ .botbar{left:var(--pnl-edge)} }
    @media(max-width:879px){
      /* Clear the collapsed bottom sheet (84px). */
      .botbar{bottom:96px;left:8px;right:8px;gap:6px}
      /* The card is flex:none and sized by its widest child, the key strip, which
         never wrapped because nothing capped the card: at 360px and below it ran
         off BOTH edges of the screen. Capped, the key wraps as intended below. */
      .sctog{max-width:100%}
      .sctog-row button{padding:8px 9px;font-size:.78rem}
      /* Four swatches into ~340px. If a narrow phone still wraps them onto a
         second line that is fine - they read as a key either way. */
      .sckey-row{gap:8px}
      .sckey-row span{font-size:10.5px}
    }

    /* ---- the panel: a floating paper card on a desktop, a bottom sheet on a phone (same DOM) ---- */
    .panel{position:absolute;z-index:25;display:flex;flex-direction:column;color:var(--pa-ink)}
    .panel-body{flex:1;min-height:0;display:flex;flex-direction:column}
    /* The address search heads the card, above every tab: it is the one control
       here that is not a filter - it moves the map. */
    .pnl-search{position:relative;flex:none}
    .pnl-search .mag{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;
      color:var(--pa-muted);pointer-events:none}
    .pnl-search .mag svg{width:16px;height:16px;display:block}
    .pnl-search .search{padding-left:33px}
    @media(min-width:880px){
      /* The card floats 12px clear of the top, the bottom and the left edge, with
         the map visible all round it (it was a flush full-height white column
         until 2 Oct 2026). The panel box itself is click-through - the gaps
         between the index tabs are map, not panel - and the paper and the tabs
         take the pointer back. */
      .panel{top:12px;bottom:12px;left:12px;width:384px;pointer-events:none}
      .panel-body{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
      /* The paper itself: ONE box behind the search row and the sheet, so the card
         has one edge and one shadow however those two rows divide it. A grid item
         of its own, painted first, so both rows and the tabs sit on top of it. */
      .panel-body::before{content:'';grid-column:2;grid-row:1 / 3;background:var(--pa-paper);
        border:1px solid var(--pa-edge);border-radius:0 12px 12px 0;
        box-shadow:0 1px 2px var(--pa-shadow),0 16px 36px -10px var(--pa-shadow)}
      .ledger{display:contents}
      .spine{grid-column:1;grid-row:1 / 3}
      /* 3 Nov 2026: the home badge sits in the panel's top-left corner, so the
         tabs start below it. The badge stays in the topbar's markup (phones lay
         it out in the row) and is pulled back over the spine's column here. */
      .topbar .maphome{position:absolute;top:0;left:calc(12px - var(--pnl-edge))}
      #pnlSpine{padding-top:46px}
      .pnl-search{grid-column:2;grid-row:1;padding:14px 15px 4px;pointer-events:auto}
      .sheet{grid-column:2;grid-row:2;pointer-events:auto}
      .grip{display:none}
      .topbar{left:var(--pnl-edge)}
    }
    @media(max-width:879px){
      .panel{left:0;right:0;bottom:0;height:var(--sheet-h);background:var(--pa-paper);
        border-top:1px solid var(--pa-edge);border-top-left-radius:18px;border-top-right-radius:18px;
        box-shadow:0 -6px 28px var(--pa-shadow);transition:height .22s ease;overflow:hidden}
      .panel.collapsed{height:84px}
      .panel.full{height:90vh}
      /* The grip is a real <button> (it is the only way to open and close the
         sheet, so it has to be reachable and announceable). The BAR people see
         is still 42x5, drawn by ::after; the button around it is a full-width,
         24px-tall transparent hit area, comfortably past the 44x24 floor. Its
         own margins are gone because the 24px box already carries the padding
         the old `margin:9px auto 4px` provided - the bar's centre lands at the
         same 12px from the top as before. */
      .grip{display:block;width:100%;height:24px;margin:0;padding:0;border:0;background:none;
        -webkit-appearance:none;appearance:none;cursor:pointer;flex:none;position:relative}
      .grip::after{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
        width:42px;height:5px;border-radius:3px;background:var(--pa-edge)}
      .pnl-search{padding:2px 14px 10px}
    }

    /* ── THE LEDGER SPINE ──────────────────────────────────────────────────
       The panel does several different jobs - it narrows listings, it searches
       an address, it colours the dots, it switches map overlays on and off, it
       tags places nearby and it keeps what you saved - and until 18 Sep 2026 it
       gave them all the same weight in one scrolling column.

       The spine is index tabs on a card file. One job is open at a time, each
       tab carries its own mark and its own word (so no tooltip is needed to
       learn what an icon means), and a tab whose job has something set wears a
       dot - which makes the closed spine a state summary as well as a
       navigation control. 2 Oct 2026: drawn as the study's "full spine"
       (option 21) - paper index tabs bound to a paper sheet. 3 Oct 2026, on
       the owner's review: This search, Price and Rooms became ONE Search tab,
       the Area tab went (its score switches are back on the map), and the five
       tabs that remain share the card's whole edge equally.

       THIS IS PRESENTATIONAL ONLY, and must stay that way. Every control keeps
       the id and the class the JS already rebuilds it by: #addrSearch, #fchips,
       #rngPrice, .minchips[data-room], #zoneLevels, #zoneSearch,
       #tertiaryBtn, #tagSearch, #tagChips, #slNotify. Nothing here
       changes what any of them does - the elements were MOVED, never
       rewritten, and none exists twice. */
    .spine{display:flex;flex-direction:column;gap:5px;padding:6px 0;min-height:0;pointer-events:none}
    /* rotate(180deg) turns the box over, so its PHYSICAL left and right swap on
       screen: the radius and the missing border are written on the left here
       to land on the right-hand, sheet-facing side once drawn (and the open
       tab's shadow, below, is written +x to fall to the left).
       flex:1 1 0 gives every tab the same share of the card's height, however
       many there are and however long each label is; the label and its mark
       sit centred in that share. */
    .st{pointer-events:auto;writing-mode:vertical-rl;transform:rotate(180deg);
      background:var(--pa-tab);color:var(--pa-tabink);border:1px solid var(--pa-edge);border-left:0;
      border-radius:0 9px 9px 0;padding:8px 7px;cursor:pointer;
      font:700 .8rem/1 Inter,system-ui,sans-serif;letter-spacing:.03em;
      display:flex;align-items:center;justify-content:center;gap:8px;flex:1 1 0;min-height:0;
      overflow:hidden;white-space:nowrap}
    .st .ic{width:17px;height:17px;flex:none;transform:rotate(90deg)}
    /* The "this tab is doing something" mark. A dog-ear: an ink triangle folded
       into the tab's top outer corner (4 Nov 2026, replacing the lime-ringed
       dot, which the owner found ugly). The element is still the .dot span
       refreshDots() appends, so the JS is untouched; it is absolute, so it
       takes no room in the label row. Box coordinates are rotated 180deg on
       screen, so box bottom-right lands on the visual top-left. A tab that has
       one also reads in ink rather than the muted tab colour. */
    .st .dot{position:absolute;right:0;bottom:0;width:0;height:0;background:none;
      border-bottom:16px solid var(--pa-ink);border-left:16px solid transparent}
    .st:has(.dot){color:var(--pa-ink)}
    .st:hover{color:var(--pa-ink)}
    /* The open tab is the sheet's own paper and laps 1px over the sheet's
       edge, so the two read as one piece rather than a tab beside a box. */
    .st.on{position:relative;z-index:1;margin-right:-1px;background:var(--pa-paper);color:var(--pa-ink);
      box-shadow:3px 0 10px var(--pa-shadow)}
    .st:focus-visible{outline:2px solid var(--pa-ink);outline-offset:-3px}
    /* A flex column so the count ("2 SET", "1 ON") can sit in the sheet's bottom
       right corner however short the open pane is: the pane grows to fill, and
       the count is its last child with margin-top:auto. */
    .sheet{display:flex;flex-direction:column;min-width:0;overflow-y:auto;padding:12px 15px 18px;scrollbar-width:thin;
      scrollbar-color:var(--pa-edge) transparent}
    .pane{display:none}
    .pane.on{display:flex;flex-direction:column;gap:14px;flex:1 0 auto}
    .sheet .grp, .sheet .rng, .sheet .dm-group{margin:0}
    /* A pane's own heading, so the sheet says which drawer is open even though
       the tab already does - the tab is vertical and easy to miss. Serif, on a
       rule, with the pane's count sitting on the rule at the right. */
    .pane-h{display:flex;align-items:center;gap:9px;margin:0;
      font:600 1.02rem/1.2 Fraunces,serif;color:var(--pa-ink)}
    .pane-h .ic{width:17px;height:17px;flex:none;color:var(--pa-mark)}
    #nbBrowse .pane-h svg.ic{fill:currentColor}
    .pane-h .r{flex:1;min-width:12px;height:1px;background:var(--pa-edge)}
    .pane-h .ct{font:700 .66rem/1 Inter,sans-serif;color:var(--pa-muted);letter-spacing:.06em;white-space:nowrap}
    .pane-h .ct:empty{display:none}
    /* 4 Nov 2026: the count moved out of the heading to the bottom right corner
       of the sheet (the last child of each pane, filled by the spine script), and
       the heading's right-hand end now holds that pane's Reset. The count stays
       pinned to the corner while a long pane scrolls under it. */
    .pane > .ct{margin-top:auto;align-self:flex-end;position:sticky;bottom:0;z-index:2;
      font:700 .66rem/1 Inter,sans-serif;color:var(--pa-muted);letter-spacing:.06em;white-space:nowrap;
      background:var(--pa-paper);padding:5px 0 0 8px;box-shadow:0 0 8px 6px var(--pa-paper)}
    .pane > .ct:empty{display:none}
    .pane-reset{flex:none;font:700 .68rem/1 Inter,sans-serif;letter-spacing:.04em;color:var(--pa-muted);
      background:none;border:1px solid var(--pa-edge);border-radius:999px;padding:5px 10px;cursor:pointer;
      min-height:24px}   /* the type and padding alone came to about 22.9px (B25) */
    .pane-reset:hover{color:var(--pa-ink);border-color:var(--pa-muted)}
    .pane-reset:focus-visible{outline:2px solid var(--pa-ink);outline-offset:2px}
    .pane-reset[hidden]{display:none}
    .pane-sub{margin:-6px 0 0;font-size:.76rem;line-height:1.45;color:var(--pa-muted)}
    .docket-empty{font-size:.8rem;color:var(--pa-muted);line-height:1.5}
    .sheet .muted{color:var(--pa-muted)}
    /* Study option 30, "the spine, laid flat": rotated text a few millimetres
       wide is not a tap target, so on a phone the SAME tabs run along the top
       edge of the sheet as index cards. Same elements, same order, same marks -
       only the binding moves. Five tabs share the sheet's width equally, each
       its mark over its word, so all of them are in view and none scrolls off.
       Written AFTER the spine's base rules on purpose: same specificity, so
       source order decides. */
    @media(max-width:879px){
      .ledger{display:flex;flex-direction:column;flex:1;min-height:0}
      .spine{flex-direction:row;align-items:flex-end;gap:4px;padding:0 8px;flex:none;
        border-bottom:1px solid var(--pa-edge);pointer-events:auto}
      .st{writing-mode:horizontal-tb;transform:none;border:1px solid var(--pa-edge);border-bottom:0;
        border-radius:9px 9px 0 0;padding:7px 2px 6px;min-height:50px;
        /* Adaptive widths (3 Nov 2026): each tab is as wide as its own word, then
           the spare width is shared out equally. A long label ("Watchlist") can no
           longer be cut to "Watch..." while a short one ("Nearby") wastes space.
           min-content is the floor, so the word is never truncated unless the
           row genuinely cannot hold all five, when the ellipsis below still applies.
           The label's size is .spine .st in 02_page_b.css (.88rem here, 1.04rem on
           the desktop spine). */
        flex:1 1 auto;min-width:min-content;
        flex-direction:column;gap:4px;letter-spacing:.01em;position:relative}
      .st .ic{transform:none;width:19px;height:19px}
      .st span{max-width:100%;overflow:hidden;text-overflow:ellipsis}      /* The dog-ear folds into the tab's top-left corner, so it never adds a third row. */
      .st .dot{right:auto;bottom:auto;left:0;top:0;border:0;
        border-top:13px solid var(--pa-ink);border-right:13px solid transparent}
      /* The open tab drops 1px over the rule under the row, so it and the
         sheet read as one sheet of paper. */
      .st.on{margin:0 0 -1px;padding-bottom:9px;box-shadow:0 -2px 8px var(--pa-shadow)}
      .sheet{flex:1;min-height:0}
    }

    .chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}
    .chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-size:.8rem;font-weight:600;
      color:var(--navy);cursor:pointer;white-space:nowrap}
    .chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}

    /* Active-filter chips: WHAT the map is narrowed by, each removable on its
       own. _anyMapFilterSet() only knows THAT something is set; the controls
       themselves sit in other tabs, and on a phone behind a collapsed sheet,
       so a filter set five minutes ago was invisible while it emptied the map.
       `hidden` has to be restated against the flex display or the empty row
       would still take a line. Drawn as the sheet's own SELECTED chip - they
       are every selection there is, gathered on one page. */
    .fchips{display:flex;gap:5px;flex-wrap:wrap}
    .fchips[hidden]{display:none}
    .fchip{display:inline-flex;align-items:center;gap:6px;min-height:28px;border:1px solid var(--pa-on);
      background:var(--pa-on);color:var(--pa-on-ink);border-radius:6px;padding:4px 10px;
      font:600 .78rem Inter,sans-serif;cursor:pointer;white-space:nowrap}
    .fchip span{font-size:13px;line-height:1;opacity:.8}
    .fchip-all{background:transparent;color:var(--pa-ink);border-color:var(--pa-edge)}

    .grp{margin-bottom:18px}
    .grp h3{margin:0 0 9px;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--pa-muted)}
    /* Field labels on the sheet are small and sentence case ("Type",
       "Parking"), the way the study draws them - not the old shouted caps. */
    .sheet .grp > h3{margin:0 0 6px;font:400 .76rem/1.3 Inter,sans-serif;letter-spacing:0;
      text-transform:none;color:var(--pa-muted)}

    /* Chips: rounded rectangles on the sheet, espresso when chosen. One look for
       "N+" minimums (.minchips) and for labelled choices (.pchips). */
    .minchips{display:flex;gap:5px;flex-wrap:wrap}
    .pchips{display:flex;gap:5px;flex-wrap:wrap}
    .minchips .mc, .pchips .mc{border:1px solid var(--pa-edge);background:var(--pa-field);border-radius:6px;
      padding:6px 4px;font:600 .78rem/1.45 Inter,sans-serif;color:var(--pa-ink);cursor:pointer;
      text-align:center;white-space:nowrap}
    .minchips .mc{flex:1 1 0;min-width:34px}
    /* A labelled choice wraps rather than squeezing a multi-word label (Semi-
       Detached, Expressions of interest) to fit a row, and carries the value's
       own mark where it has one (house, apartment, section, lifestyle, auction). */
    .pchips .mc{padding:6px 10px;display:inline-flex;align-items:center;gap:6px}
    .pchips .mc .ic{width:1.15em;height:1.15em;flex:none}
    /* Property type: exactly two rows, every cell filled. The column count is ceil(n/2), set by
       chipRow() as --tcols; an odd count lets the last chip span the cell the row would leave empty. */
    #pfTypeChips{display:grid;grid-template-columns:repeat(var(--tcols,3),minmax(0,1fr));grid-auto-rows:1fr;gap:5px}
    #pfTypeChips .mc{justify-content:center;text-align:center;white-space:normal;line-height:1.2;padding:6px 4px;
      min-height:34px;overflow-wrap:break-word}
    /* One floating bubble for the definition of a type (positioned by JS so the pane's scroll
       container cannot clip it). */
    .pf-tip{position:fixed;z-index:9999;max-width:240px;padding:8px 10px;border-radius:8px;
      background:var(--pa-ink);color:var(--pa-field);font:500 .74rem/1.4 Inter,sans-serif;
      box-shadow:0 4px 14px rgba(0,0,0,.25);pointer-events:none;opacity:0;transition:opacity .12s}
    .pf-tip.show{opacity:1}
    .minchips .mc:hover, .pchips .mc:hover{border-color:var(--pa-mark)}
    .minchips .mc.on, .pchips .mc.on{background:var(--pa-on);border-color:var(--pa-on);color:var(--pa-on-ink)}
    .minchips .mc:focus-visible, .pchips .mc:focus-visible{outline:2px solid var(--pa-ink);outline-offset:1px}
    /* A control the market in view has no data for is not drawn at all. This
       restates [hidden] against the display rules above, which would win. */
    .pane [hidden]{display:none !important}
    .grp h3 .ic{width:15px;height:15px;flex:none}
    /* The "In zone" list under a school level (.sch-sub, one per level): indented under its tile. */
    .sch-sub{display:flex;flex-direction:column;gap:6px;padding:0 0 10px 24px}
    .sch-subh{font:700 .72rem/1.2 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--pa-muted);display:flex;gap:6px;align-items:baseline;padding-top:4px}
    .sch-subh em{font-style:normal;font-weight:500;letter-spacing:0;text-transform:none}
    .sch-sub .zsch-row{margin:0}
    /* Zone-only, a switch (8 Nov 2026, Brad: a toggle, not a tickbox). A full-width row, words left and switch right;
       the switch fills with its school level's colour, so two open levels stay told apart. The real checkbox stays
       underneath, visually hidden but focusable: SchoolPoints still reads .checked and keys still work. */
    .zonly{position:relative;display:flex;align-items:center;gap:12px;margin:0;padding:10px 12px;border:1px solid var(--pa-edge);border-radius:12px;
      background:var(--pa-field);font:600 .76rem/1.3 Inter,sans-serif;color:var(--pa-ink);cursor:pointer}
    .zonly[hidden]{display:none}
    .zonly[data-zonly="primary"]{--c:#dc2626}
    .zonly[data-zonly="intermediate"]{--c:#6d28d9}
    .zonly[data-zonly="secondary"]{--c:#1d4ed8}
    .zonly>span{flex:1;min-width:0}
    .zonly input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
    .zonly .sw{position:relative;flex:none;width:36px;height:20px;border-radius:999px;background:var(--pa-edge);transition:background .15s}
    .zonly .sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;
      box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
    .zonly input:checked ~ .sw{background:var(--c,var(--pa-on,#1A2B3C))}
    .zonly input:checked ~ .sw::after{transform:translateX(16px)}
    .zonly input:focus-visible ~ .sw{outline:2px solid var(--pa-ink);outline-offset:2px}
    /* A note under a control (what a type means, why a layer is empty, what a filter counts): kept,
       because it is the honest half of the control, but set small and quiet. */
    .pf-hint{margin:6px 0 0;font-size:.71rem;line-height:1.4;color:var(--pa-muted)}
    .pf-none{font-size:.8rem;line-height:1.5;color:var(--pa-muted);margin:0}

    /* dual range slider: the study's olive-brown track and white round handles,
       its readout a small muted label sitting on the heading's rule. */
    .rng{margin:0 0 16px}
    .rng .lab{display:flex;align-items:center;gap:9px;margin-bottom:5px;
      font:600 .92rem/1.2 Fraunces,serif;color:var(--pa-ink)}
    .rng .lab .lb{display:inline-flex;align-items:center;gap:8px}
    .rng .lab .lb .ic-ccy{flex:none;min-width:15px;font:800 .9rem/1 Inter,sans-serif;color:var(--pa-mark)}
    .rng .lab .r{flex:1;min-width:12px;height:1px;background:var(--pa-edge)}
    .rng .lab .val{font:700 .68rem/1 Inter,sans-serif;letter-spacing:.03em;color:var(--pa-muted);white-space:nowrap}
    .dual{position:relative;height:30px}
    .dual .track{position:absolute;top:13px;left:0;right:0;height:4px;border-radius:2px;background:var(--pa-trk)}
    .dual .fill{position:absolute;top:13px;height:4px;border-radius:2px;background:var(--pa-fill)}
    .dual input{position:absolute;top:0;left:0;width:100%;height:30px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
    /* The thumb is the ONLY tappable part of a dual slider (the input itself is
       pointer-events:none), so it is the touch target and carries the 24px
       floor. Centring is arithmetic, not luck: the input is 30px tall at top:0,
       so its centre is 15px, and the track above sits at top:13px with
       height:4px - centre 15px too. Both thumbs are centred in the input box by
       the UA, so 24px lands on the track exactly as 18px/16px did. Move the
       track's top and you break that, so it stays at 13px. */
    .dual input::-webkit-slider-thumb{pointer-events:auto;-webkit-appearance:none;height:24px;width:24px;border-radius:50%;
      background:var(--pa-field);border:2px solid var(--pa-ink);box-shadow:0 1px 3px var(--pa-shadow);cursor:pointer}
    .dual input::-moz-range-thumb{pointer-events:auto;height:24px;width:24px;border-radius:50%;background:var(--pa-field);border:2px solid var(--pa-ink);cursor:pointer}
    /* Schools filter panel: chip groups and two single-handle sliders. The
       thumb keeps the 24px touch floor of the dual sliders above. */
    .sf-body{padding-top:6px}
    .sf-grp{margin:0 0 14px}
    .sf-lab{display:flex;align-items:baseline;justify-content:space-between;gap:9px;margin:0 0 6px;
      font:700 .72rem/1.2 Inter,sans-serif;letter-spacing:.03em;color:var(--pa-muted)}
    .sf-lab label{cursor:pointer}
    .sf-val{white-space:nowrap}
    .sf-chips{margin-bottom:8px}
    .sf-chips .chip{padding:7px 11px;min-height:34px}
    .sf-range{display:block;width:100%;height:30px;margin:0;background:none;accent-color:var(--pa-ink)}
    .sf-range::-webkit-slider-thumb{height:24px;width:24px}
    .sf-range::-moz-range-thumb{height:24px;width:24px}
    .sf-sum{margin:0 0 8px;font-size:.78rem;color:var(--pa-ink)}
    .sf-clear[hidden]{display:none}
    .sf-chips .chip:disabled{opacity:.5;cursor:not-allowed}
    .badge{font-size:.62rem;background:#eef2ff;color:#4f46e5;border-radius:5px;padding:1px 6px;margin-left:6px;vertical-align:middle;font-weight:700}

    /* Filter schools is parked (6 Nov 2026): the panel, its options fetch and its filtering all stay in place for later,
       it is only not shown. */
    #schoolFilter{display:none!important}
    /* Every .zlvl is an Education or Nearby tile (.zlvl.nbt below); the old ruled-row ("rung") layout is gone.
       --c is the level's MAP colour, so a tile reads as the same colour as its pins; text stays sheet ink,
       because --c as text fails WCAG AA (teal 1.86:1). --ct is the text-legible shade, --cd the dark sheet's. */
    .zlvl{cursor:pointer}
    .zlvl:focus-visible{outline:2px solid var(--pa-ink);outline-offset:2px}
    /* The Education tiles (6 Nov 2026, Brad's pick T1): the Nearby tab's watermark tile. A label, one line saying
       Hidden, Zoom in to see, or how many pins are in view, and the icon as a large faint watermark that takes
       the colour when the layer is on. The zone checkboxes and lists under each school level sit below the grid. */
    .zlvl.nbt{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;gap:3px;min-height:84px;width:100%;
      padding:11px 12px;border:1.5px solid var(--pa-edge);border-radius:12px;background:var(--pa-field);color:var(--pa-ink);
      font:700 .85rem/1.25 Inter,sans-serif;text-align:left}
    .zlvl.nbt>svg.wm{position:absolute;right:-10px;bottom:-12px;width:76px;height:76px;color:var(--pa-muted);opacity:.14;pointer-events:none;transition:opacity .15s,color .15s}
    .zlvl.nbt>span:first-of-type{position:relative;padding-right:22px}
    .zlvl.nbt .cn{position:relative;margin-top:auto;padding-top:10px;font:600 .7rem/1 Inter,sans-serif;color:var(--pa-muted);font-variant-numeric:tabular-nums}
    .zlvl.nbt .tk{position:absolute;right:8px;top:8px;width:18px;height:18px;border-radius:50%;background:var(--c);color:#fff;display:none;place-items:center}
    .zlvl.nbt .tk svg{width:11px;height:11px}
    .zlvl.nbt.on{background:color-mix(in srgb,var(--c) 16%,var(--pa-field));border-color:var(--c)}
    .zlvl.nbt.on>svg.wm{color:var(--c);opacity:.32}
    body.dark .zlvl.nbt.on>svg.wm{color:var(--cd,var(--c))}
    .zlvl.nbt.on .tk{display:grid}
    /* Show / Hide on a tile, and the list of its pins in view that opens under it (InViewList in
       static/js/discover/06_streets_tertiary_depth.js, 8 Nov 2026). Show is a <button> BESIDE the tile button, in
       the tile's .zlw wrapper, laid over the tile's corner (B25: it was a role=button span nested inside the tile,
       about 21px tall). The wrapper is the tile's box and nothing more; the tile fills it. A hidden tile takes its
       wrapper with it, or the grid would keep an empty cell. The tile's --c/--ct/--cd reach Show through the CSSOM. */
    .zlw{position:relative;display:flex}
    .zlw:has(>.zlvl[hidden]){display:none}
    .zlw>.shw{position:absolute;right:8px;bottom:8px;z-index:1;display:inline-flex;align-items:center;min-height:28px;padding:0 10px;
      border-radius:999px;border:1px solid var(--c);background:var(--pa-field);color:var(--ct,var(--c));font:700 .7rem/1 Inter,sans-serif;cursor:pointer}
    .zlw>.shw[hidden]{display:none}
    .zlw>.shw:hover{background:color-mix(in srgb,var(--c) 14%,var(--pa-field))}
    .zlw>.shw:focus-visible{outline:2px solid var(--pa-ink);outline-offset:2px}
    body.dark .zlw>.shw{color:var(--cd,var(--c));border-color:var(--cd,var(--c))}
    .ivl{grid-column:1 / -1;padding:4px;border:1.5px solid var(--c,var(--pa-edge));border-radius:12px;background:var(--pa-field);
      max-height:280px;overflow:auto}
    .ivl[hidden]{display:none}
    .ivl ul{list-style:none;margin:0;padding:0}
    .ivl li button{display:flex;align-items:baseline;gap:10px;width:100%;padding:7px 8px;border:0;border-radius:8px;background:none;
      color:var(--pa-ink);font:600 .78rem/1.3 Inter,sans-serif;text-align:left;cursor:pointer}
    .ivl li button:hover, .ivl li button:focus-visible{background:color-mix(in srgb,var(--c,var(--pa-edge)) 14%,var(--pa-field));outline:none}
    .ivl .nm{flex:1;min-width:0}
    .ivl .d{flex:none;font:500 .7rem/1 Inter,sans-serif;color:var(--pa-muted);font-variant-numeric:tabular-nums}
    .ivl p{margin:4px 8px 6px;font:500 .7rem/1.35 Inter,sans-serif;color:var(--pa-muted)}
    #schoolPts, .nbgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
    /* :not(a, b) rather than :not(a):not(b): one :not() keeps the old specificity, so #schoolPts>.pubbox's order:0
       below still wins over the order:20 here (B25). */
    #schoolPts>:not(.zlvl, .zlw){grid-column:1 / -1;order:20}
    .nbgrid>:not(.zlvl, .zlw){grid-column:1 / -1}
    /* Public schools (8 Nov 2026, Brad's pick 4): Primary, Intermediate and Secondary sit in one tinted box under their own
       label; Secondary and Private School span the full width like Childcare. The wrapper is presentational only - every
       script reaches these buttons by #schoolPts descendant selectors. The box goes when none of its levels is shown. */
    #schoolPts{gap:10px}
    #schoolPts>.pubbox{order:0;grid-column:1 / -1;padding:12px;border:1px solid var(--pa-edge);border-radius:14px;
      background:color-mix(in srgb,var(--pa-edge) 30%,transparent)}
    .pubbox:not(:has(.zlvl:not([hidden]))){display:none}
    .pubh{margin:0 0 10px 2px;font:700 .78rem/1.3 Inter,sans-serif;color:var(--pa-muted)}
    .pubgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
    .pubgrid>:not(.zlvl, .zlw){grid-column:1 / -1;order:20}
    .pubgrid>.zlw[data-for="secondary"], #schoolPts>.zlw[data-for="schoolPrivKey"]{grid-column:1 / -1}


    /* The Watchlist tab's plain sheet button (Email me new matches), and a saved-search row with its actions. */
    .pa-btn{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 12px;
      border:1px solid var(--pa-edge);border-radius:6px;background:var(--pa-field);color:var(--pa-ink);
      font:600 .8rem/1.2 Inter,sans-serif;cursor:pointer;align-self:flex-start}
    .pa-btn .ic{width:15px;height:15px;flex:none;color:var(--pa-mark)}
    .pa-btn:hover{border-color:var(--pa-mark)}
    .ss-row{display:flex;align-items:center;gap:6px;padding:8px 0;border-bottom:1px solid var(--pa-rule)}
    .ss-row .t{flex:1;min-width:0;font-size:.8rem;line-height:1.35}
    .ss-row .t b{display:block;font-weight:600}
    .ss-row .t span{color:var(--pa-muted);font-size:.72rem}
    .ss-act{border:0;background:none;min-height:24px;padding:0 5px;cursor:pointer;
      font:600 .74rem/1 Inter,sans-serif;color:var(--pa-ink);text-decoration:underline;text-underline-offset:2px}

    /* Search fields and their drop-downs on the sheet. The drop-down rows are
       built with inline colours, so the rule and the meta line are restated. */
    .search{width:100%;border:1px solid var(--pa-edge);border-radius:6px;padding:9px 11px;background:var(--pa-field);
      color:var(--pa-ink);font:inherit;font-size:.84rem;margin:0}
    .search::placeholder{color:var(--pa-muted);opacity:1}
    .search:focus{outline:2px solid var(--pa-mark);outline-offset:0;border-color:var(--pa-mark)}
    /* A search box is a magnifier, a field and a Search button (6 Nov 2026): nobody should have to know to press Enter. */
    .sbox{position:relative;display:flex;gap:6px;align-items:stretch}
    .sbox .mag{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--pa-muted);pointer-events:none}
    .sbox .mag svg{width:16px;height:16px;display:block}
    .sbox .search{flex:1;min-width:0;padding-left:33px}
    .sgo{flex:none;border:0;border-radius:6px;padding:0 14px;background:var(--pa-ink);color:var(--pa-paper);
      font:700 .8rem/1 Inter,sans-serif;cursor:pointer}
    .sgo:hover{filter:brightness(1.18)}
    .sgo:focus-visible{outline:2px solid var(--pa-mark);outline-offset:2px}
    .pa-drop{position:absolute;left:0;right:0;top:calc(100% + 2px);background:var(--pa-field);color:var(--pa-ink);
      border:1px solid var(--pa-edge);border-radius:8px;box-shadow:0 8px 24px var(--pa-shadow);
      max-height:260px;overflow-y:auto}
    .pa-drop > div{border-bottom-color:var(--pa-rule) !important}
    .pa-drop > div > div + div{color:var(--pa-muted) !important}
    .pa-drop > div:hover{background:var(--pa-paper)}

    /* in-zone schools nested under their level pill (size + year levels) */
    .zsch-list[data-level="primary"]{--c:#ef4444;--ct:#dc2626;--cd:#fca5a5}
    .zsch-list[data-level="intermediate"]{--c:#7c3aed;--ct:#6d28d9;--cd:#c4b5fd}
    .zsch-list[data-level="secondary"]{--c:#2563eb;--ct:#1d4ed8;--cd:#93c5fd}
    .zsch-list{display:none;flex-direction:column;gap:5px;margin:-2px 0 2px;padding-left:13px}
    .zsch-list.show{display:flex}
    /* The school's logo comes FIRST in the row and lines up with the top of the name; the text takes the rest. */
    .zsch-row{border-left:2px solid var(--c);padding:2px 0 2px 9px;display:flex;gap:10px;align-items:flex-start}
    .zsch-main{min-width:0;flex:1 1 auto;line-height:1.25}
    /* Boys / Girls / Co-ed pill (school_gender.js): soft sky, soft rose, neutral slate; the WORD is always on it.
       Colours from docs/discover_school_gender_icons_2026-10.html (C2). The popup header is navy in both
       themes, so the pill there always wears the light tint. */
    .sc-gpill{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 7px;border-radius:999px;
      background:var(--pb);color:var(--pi);font:700 12px/1.5 Inter,system-ui,sans-serif;max-width:100%}
    .sc-gpill b{font-weight:700;overflow-wrap:anywhere}
    .sc-gpill .mk{flex:none}
    .sc-gpill.sm{font-size:10.5px;line-height:1.4;padding:1px 8px 1px 6px;gap:4px}
    .sc-g-boys{--pb:#DCEEF9;--pi:#0B4B73}
    .sc-g-girls{--pb:#FBE3EC;--pi:#8A1D4E}
    .sc-g-coed{--pb:#E6EAF0;--pi:#27323F}
    .sc-g-yr{--pb:#E6EAF0;--pi:#27323F}
    .zsch-g{display:flex;flex-wrap:wrap;gap:4px}
    body.dark .sc-g-boys{--pb:#13405E;--pi:#CBE8FA}
    body.dark .sc-g-girls{--pb:#52193A;--pi:#FBD3E2}
    body.dark .sc-g-coed{--pb:#2A3544;--pi:#DDE3EC}
    body.dark .sc-g-yr{--pb:#2A3544;--pi:#DDE3EC}
    body.dark .sch-head .sc-g-boys{--pb:#DCEEF9;--pi:#0B4B73}
    body.dark .sch-head .sc-g-girls{--pb:#FBE3EC;--pi:#8A1D4E}
    body.dark .sch-head .sc-g-coed,body.dark .sch-head .sc-g-yr{--pb:#E6EAF0;--pi:#27323F}
    .zsch-g{margin-top:4px}
    /* Same split as .zlvl: the 2px rule keeps --c (map colour), the school name
       takes the theme-legible shade. */
    .zsch{font:700 .8rem Inter,sans-serif;color:var(--ct,var(--c));cursor:pointer;line-height:1.25}
    body.dark .zsch{color:var(--cd,var(--c))}
    .zsch:hover{text-decoration:underline}

    /* A .dm-group is a collapsible section (the Education tab's #schoolFilter). On
       the paper sheet its summary reads as a section heading - serif, on a rule -
       with the +/- marker kept at the end, so it is still visibly something that
       opens. No overflow:hidden, so a drop-down inside is never clipped. */
    .dm-group{border:0;margin:0}
    .dm-group > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;
      padding:0 0 4px;font:600 .92rem/1.2 Fraunces,serif;color:var(--pa-ink);user-select:none}
    .dm-group > summary::-webkit-details-marker{display:none}
    .dm-group > summary::after{content:"";flex:1;height:1px;background:var(--pa-edge)}
    .dm-group > summary::before{content:"+";order:3;flex:none;width:16px;text-align:center;line-height:1;
      font:400 1.1rem/1 Inter,sans-serif;color:var(--pa-muted)}
    .dm-group[open] > summary::before{content:"\2212"}
    .dm-group > summary .dm-ico{width:15px;height:15px;flex:none;color:var(--pa-mark)}
    .dm-group > .dm-body{padding:2px 0 0}

    /* communities and cultures. On the sheet a tagged place is a SELECTED tag,
       so it wears the espresso chip, with its own mark beside the name. */
    .culture-chip{display:inline-flex;align-items:center;gap:6px;background:var(--pa-on);border:1px solid var(--pa-on);
      border-radius:6px;padding:2px 3px 2px 9px;font:600 .78rem Inter,sans-serif;color:var(--pa-on-ink)}
    .culture-chip > svg{width:1.15em;height:1.15em;flex:none}
    .culture-chip b{font-weight:600}
    /* 24x24 is the floor for a tappable control, so the box grows and the glyph
       is centred in it rather than sitting on a 14px line-height. */
    .culture-chip .x{cursor:pointer;border:0;background:transparent;color:var(--pa-on-ink);border-radius:5px;width:24px;height:24px;
      display:inline-flex;align-items:center;justify-content:center;flex:none;opacity:.8;
      line-height:1;text-align:center;font-size:1rem;padding:0}
    .culture-chip .x:hover{opacity:1}
    .am-pill .am-ico img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 50%;display:block}
    .culture-chip img{height:13px;width:auto;border-radius:1px;vertical-align:-1px}
    .cres img{height:14px;width:auto;border-radius:1px;flex:none}

    /* The one lime call to action: the report order modal's Confirm and order. */
    .cta{display:block;width:100%;border:0;background:var(--lime);color:#15240a;font:inherit;font-weight:800;font-size:.92rem;
      padding:12px;border-radius:11px;cursor:pointer;text-align:center}

    /* The watchlist lives IN the left panel's Watchlist tab (14 Oct 2026). It used to
       be a card that popped up on the right and hid itself on every pan; it never
       appears over the map any more, and adding a home only flashes the tab's heart
       (see the spine script). Same element and ids, so renderShortlist() and the
       sort box are untouched - only where it sits changed. */
    .shortlist{display:flex;flex-direction:column;position:static;background:transparent;border:0;box-shadow:none;overflow:visible}
    .sl-suggest{width:100%;justify-content:center;margin:0 0 12px}
    .sl-suggest:disabled{opacity:.5;cursor:not-allowed}
    .sl-head{display:flex;align-items:center;gap:8px;padding:2px 0 10px;border-bottom:1px solid var(--pa-rule);flex:none}
    .sl-title{display:none}
    .sl-count{font-size:.74rem;color:var(--pa-muted)}
    /* Native select with our own chevron (the traced spotcheck:chevron-down, chevron only), so the
       arrow has room: 11px from the border, 30px of right padding so text never runs under it.
       Still the real <select>: keyboard and the phone's native picker are untouched. Ink colours
       are the panel's own text tokens (--pa-ink) in each theme. */
    .sel-chev{-webkit-appearance:none;appearance:none;padding-right:30px;background-repeat:no-repeat;
      background-position:right 11px center;background-size:13px 13px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%233B3226' d='M13.4%2019.4C13.1%2019.1%2012.4%2018.5%2011.9%2018.0C11.4%2017.5%2010.1%2016.2%209.0%2015.2L7.0%2013.3L7.0%2011.9L7.0%2010.5L8.1%2010.5L9.2%2010.5L11.6%2012.8C12.9%2014.1%2014.0%2015.1%2014.0%2015.1C14.0%2015.1%2015.1%2014.1%2016.4%2012.8L18.8%2010.5L19.9%2010.5L20.9%2010.5L20.9%2011.9L20.9%2013.4L18.3%2015.9C16.8%2017.3%2015.3%2018.8%2014.9%2019.2C14.4%2019.6%2014.1%2020.0%2014.0%2020.0C14.0%2020.0%2013.7%2019.7%2013.4%2019.4Z'/%3E%3C/svg%3E")}
    body.dark .sel-chev{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath fill='%23ECE6DA' d='M13.4%2019.4C13.1%2019.1%2012.4%2018.5%2011.9%2018.0C11.4%2017.5%2010.1%2016.2%209.0%2015.2L7.0%2013.3L7.0%2011.9L7.0%2010.5L8.1%2010.5L9.2%2010.5L11.6%2012.8C12.9%2014.1%2014.0%2015.1%2014.0%2015.1C14.0%2015.1%2015.1%2014.1%2016.4%2012.8L18.8%2010.5L19.9%2010.5L20.9%2010.5L20.9%2011.9L20.9%2013.4L18.3%2015.9C16.8%2017.3%2015.3%2018.8%2014.9%2019.2C14.4%2019.6%2014.1%2020.0%2014.0%2020.0C14.0%2020.0%2013.7%2019.7%2013.4%2019.4Z'/%3E%3C/svg%3E")}
    #slSort{margin-left:auto;border:1px solid var(--pa-edge);border-radius:8px;padding:6px 30px 6px 8px;font:inherit;font-size:.78rem;background-color:var(--pa-field);color:var(--pa-ink)}
    .sl-list{display:flex;flex-direction:column;gap:9px;padding:10px 0 4px}
    /* Score TEXT colours: the STATUS ramp from webapp/static/map/score_palette.json
       (light and dark), read by _scoreColour(). The map ramp is a different
       thing and lives in the golden block. */
    :root{--sc-good:#3E5C34;--sc-mid:#8A5A14;--sc-poor:#8C3A28}
    body.dark{--sc-good:#86EFAC;--sc-mid:#FCD34D;--sc-poor:#FCA5A5}
    /* The SURFACE ramp beside the status one, straight out of the palette
       master. status colours TEXT; surface TINTS THE PANEL the popup's score
       cells are, and the ink on it stays ink - which is why every cell also
       writes its band in words. The ramp's own _doc says so: surface is the
       one use that carries no contrast of its own and has never been measured
       against the dE >= 8 the map's dot ramp holds to. */
