  :root{
    --ink:#12291d; --ink-2:#3d5c4a; --ink-3:#6b8577;
    --paper:#f6f4ee; --card:#ffffff; --line:#e3e0d6;
    --green:#1b4332; --green-2:#2d6a4f; --leaf:#52b788;
    --amber:#d97706; --amber-soft:#fef3e2;
    --radius:14px; --shadow:0 2px 10px rgba(18,41,29,.10), 0 8px 28px rgba(18,41,29,.06);
  }
  *{box-sizing:border-box}
  /* Without this, a later rule such as ".instbar{display:flex}" or
     ".banner{display:flex}" always beats the browser's default [hidden] rule
     (same specificity, but author CSS always wins over the built-in style) —
     the result being a bar that stays visible after .hidden=true. One
     !important here prevents that everywhere in the app. */
  [hidden]{display:none !important}
  html,body{height:100%;margin:0}
  body{
    font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    color:var(--ink); background:var(--paper); overflow:hidden;
    -webkit-font-smoothing:antialiased;
  }
  #map{position:absolute;inset:0}

  /* ---------- topbar ---------- */
  .topbar{
    position:absolute; top:0; left:0; right:0; z-index:5;
    display:flex; gap:8px; align-items:center;
    padding:12px 12px 0; pointer-events:none;
  }
  .topbar > *{pointer-events:auto}
  .brand{
    display:flex; align-items:center; gap:9px;
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:8px 14px 8px 9px; font-weight:650; letter-spacing:-.01em;
  }
  .brand .mark{
    width:30px;height:auto;border-radius:0;background:none;
    display:block;object-fit:contain;
  }
  .spacer{flex:1}
  .iconbtn{
    width:42px;height:42px;border:0;border-radius:12px;background:var(--card);
    box-shadow:var(--shadow); cursor:pointer; font-size:17px; color:var(--ink-2);
    display:grid;place-items:center;
  }
  .iconbtn:hover{color:var(--green)}
  .iconbtn[aria-expanded="true"]{background:var(--green);color:#fff}

  .counts{
    position:absolute; z-index:5; top:64px; left:12px;
    background:var(--card); border-radius:999px; box-shadow:var(--shadow);
    padding:6px 14px; font-size:13px; color:var(--ink-2);
  }
  .counts b{color:var(--ink); font-weight:650}

  /* ---------- panels ---------- */
  .pop{
    position:absolute; z-index:6; top:64px; right:12px; width:236px;
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:14px; display:none;
  }
  .pop.open{display:block}
  .pop h4{
    margin:0 0 9px; font-size:11px; letter-spacing:.09em; text-transform:uppercase;
    color:var(--ink-3); font-weight:650;
  }
  .pop + .pop{top:64px; right:262px}
  .opt{
    display:flex; align-items:center; justify-content:space-between; gap:10px;
    padding:8px 10px; border-radius:9px; cursor:pointer; font-size:14px;
  }
  .opt:hover{background:var(--paper)}
  .opt.on{background:#e8f3ec; color:var(--green); font-weight:600}
  .sw{
    width:36px;height:21px;border-radius:999px;background:#d8d4c8;position:relative;
    flex:0 0 auto; transition:background .15s;
  }
  .sw::after{
    content:"";position:absolute;top:2px;left:2px;width:17px;height:17px;border-radius:50%;
    background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2); transition:transform .15s;
  }
  .sw.on{background:var(--leaf)}
  .sw.on::after{transform:translateX(15px)}
  .hint{margin:8px 2px 0;font-size:12px;color:var(--ink-3)}
  /* Used for "this country's boundaries are on board": the one hint that
     reports something good rather than explaining something. */
  .hint.good{color:var(--green-2)}
  /* And its opposite: a position too coarse to be trusted. Not red — nothing
     is broken, it is simply not good enough to draw a conclusion from. */
  .hint.warn{color:#b45309}

  /* ---------- search ---------- */
  .search{
    position:absolute; z-index:6; top:64px; left:12px; width:min(320px,calc(100% - 24px));
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:10px; display:none;
  }
  .search.open{display:block}
  body.searching .counts{display:none}
  .search input{
    width:100%; border:1px solid var(--line); border-radius:10px; padding:10px 12px;
    font:inherit; color:inherit; background:var(--paper);
  }
  .search input:focus{outline:2px solid var(--leaf); outline-offset:1px; background:#fff}
  .results{max-height:min(46vh,340px); overflow:auto; margin-top:8px}
  .res{padding:9px 10px;border-radius:9px;cursor:pointer;display:flex;gap:10px;align-items:baseline}
  .res:hover{background:var(--paper)}
  .res .r{font:12px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--green-2);flex:0 0 auto}
  .res .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .res .p{font-size:12px;color:var(--ink-3);flex:0 0 auto}

  /* ---------- detail sheet ---------- */
  .sheet{
    position:absolute; z-index:7; left:0; right:0; bottom:0;
    background:var(--card); border-radius:20px 20px 0 0; box-shadow:0 -6px 30px rgba(18,41,29,.16);
    padding:10px 16px calc(18px + env(safe-area-inset-bottom));
    transform:translateY(102%); transition:transform .22s cubic-bezier(.3,.8,.3,1);
    max-height:72vh; overflow:auto;
  }
  .sheet.open{transform:none}
  /* The spot sheet leaves at least a strip of map above it, below the top bar,
     for the spot itself: on a small phone 72vh left none, and a spot opened
     from the list sat behind its own sheet. What does not fit scrolls. */
  #spotSheet{max-height:min(72vh, calc(100vh - var(--nav-h, 62px) - 200px))}
  /* That strip is for the spot: the GPS message that would otherwise sit
     right there waits until the spot is closed again. */
  body.spot-view .status:not(.top){visibility:hidden}
  @supports (height:100dvh){
    #spotSheet{max-height:min(72dvh, calc(100dvh - var(--nav-h, 62px) - 200px))}
  }
  .grip{width:38px;height:4px;border-radius:99px;background:var(--line);margin:2px auto 12px}
  .badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
  .pill{
    font:12px/1 ui-monospace,SFMono-Regular,Menlo,monospace; padding:6px 9px; border-radius:7px;
    background:var(--amber-soft); color:#92400e; font-weight:600;
  }
  .pill.grey{background:var(--paper);color:var(--ink-3);font-family:inherit;font-weight:500}
  .sheet h2{margin:2px 0 14px;font-size:23px;letter-spacing:-.02em}
  .facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .fact{background:var(--paper);border-radius:11px;padding:10px 12px}
  .fact .k{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);font-weight:650}
  .fact .v{margin-top:3px;font-weight:600;color:var(--green)}
  .fact.wide{grid-column:1/-1}
  /* "More info" on the spot sheet: the directory's website for the reference.
     Same colour as every other value, with a small globe, so it reads as one
     more fact that happens to be tappable. */
  .fact.site .v a{display:inline-flex;align-items:center;gap:6px;color:var(--green);
    text-decoration:none;overflow-wrap:anywhere;min-height:24px}
  .fact.site .v a:hover,.fact.site .v a:focus-visible{text-decoration:underline}
  .fact.site .v svg{flex:none}
  /* ATNO in the spot sheet, the same red as next to the call in the list. */
  .fact.qso .v .atno{color:#b91c1c;font-weight:650}
  /* "<- Back to Spots" at the top of a spot opened from the list. */
  .btn.spback{width:auto;font-size:13px;padding:7px 12px;margin:0 44px 10px 0}

  /* Nearby > Info (nearinfo.js). Its own grid rather than .facts, which drops
     to one column on a phone: two or three short numbers side by side are
     exactly what fits there. */
  .infotiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .infotiles.three{grid-template-columns:repeat(3,1fr)}
  .infotiles .fact{padding:9px 10px;min-width:0}
  .fact .v.big{font-size:21px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .fact .s{font-size:11.5px;color:var(--ink-3);margin-top:2px;line-height:1.35}
  .fact .s.edge{color:#b45309}
  .infocoord{margin:10px 2px 0;font-size:13.5px;font-variant-numeric:tabular-nums}
  .infocoord span{color:var(--ink-3);font-size:12.5px}
  .infonote{font-size:12.5px;color:#b45309;margin:8px 2px 0}
  .infosrc{margin:10px 2px 0}
  .note{margin-top:12px;font-size:12.5px;color:var(--ink-3)}
  .note:empty{display:none}
  /* Other areas at the tapped point (since 2.2.10): a button each. */
  .also{margin-top:12px}
  .also .lbl{font-size:12.5px;color:var(--ink-3);margin-bottom:2px}
  .alsobtn{display:flex;align-items:center;gap:9px;width:100%;margin-top:7px;padding:10px 12px;min-height:46px;
    border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);font:inherit;
    font-size:14px;text-align:left;cursor:pointer}
  .alsobtn .pill{flex:none}
  .alsobtn .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .alsobtn .ha{flex:none;font-size:12px;color:var(--ink-3)}
  .closex{position:absolute;top:14px;right:14px;border:0;background:none;font-size:20px;color:var(--ink-3);cursor:pointer}

  /* ---------- spots ---------- */
  .pop.wide{width:300px}
  .segs{display:flex;gap:4px;background:var(--paper);padding:3px;border-radius:10px;margin-bottom:10px}
  .seg{
    flex:1;border:0;background:none;padding:7px 0;border-radius:8px;font:inherit;font-size:13px;
    color:var(--ink-2);cursor:pointer;
  }
  .seg.on{background:var(--green);color:#fff;font-weight:600}
  .langs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:var(--paper);padding:3px;border-radius:10px}
  .langs .seg{padding:8px 0}
  .spotlist{max-height:min(50vh,380px);overflow:auto;margin:0 -4px}
  .spot{
    display:flex;gap:10px;align-items:center;padding:9px 8px;border-radius:10px;cursor:pointer;
  }
  .spot:hover{background:var(--paper)}
  .spot.stale{opacity:.5}
  .spot .sig{
    width:34px;height:34px;border-radius:10px;background:var(--amber-soft);color:#b45309;
    display:grid;place-items:center;font-size:14px;flex:0 0 auto;
  }
  .spot .who{flex:1;min-width:0}
  .spot .c{font-weight:650;letter-spacing:-.01em}
  .spot .f{font-size:12.5px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .spot .c .qso,.spot .c .atno{margin-left:7px;font-size:12px;letter-spacing:0;white-space:nowrap}
  .spot .c .qso{font-weight:400;color:var(--ink-3)}
  .spot .c .atno{color:#b91c1c;font-weight:650}
  .spot .d{text-align:right;flex:0 0 auto;font-size:12.5px;color:var(--ink-3);line-height:1.35}
  .spot .d b{display:block;color:var(--green-2);font-size:13px}
  .spothead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
  .call{font-size:24px;font-weight:700;letter-spacing:-.02em}
  .ago{font-size:12.5px;color:var(--ink-3);margin-top:2px}
  .bearing{
    display:flex;align-items:center;gap:14px;margin-top:10px;background:var(--paper);
    border-radius:12px;padding:12px 14px;
  }
  .compass{
    width:52px;height:52px;border-radius:50%;border:1.5px solid var(--line);background:#fff;
    position:relative;flex:0 0 auto;
  }
  .compass .needle{
    position:absolute;left:50%;top:50%;width:2px;height:20px;background:var(--amber);
    transform-origin:50% 100%;border-radius:2px;
  }
  .compass .n{position:absolute;top:2px;left:50%;transform:translateX(-50%);font-size:8px;color:var(--ink-3)}
  .bearing .bg{font-size:19px;font-weight:700;color:var(--green)}
  .bearing .bs{font-size:12.5px;color:var(--ink-3);margin-top:1px}

  /* ---------- bottom bar & full screens ---------- */
  .nav{
    position:absolute;z-index:9;left:0;right:0;bottom:0;display:flex;
    background:var(--card);border-top:1px solid var(--line);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .nav button{font-size:10.5px;
    flex:1;border:0;background:none;cursor:pointer;padding:6px 2px;border-radius:10px;
    display:flex;flex-direction:column;align-items:center;gap:3px;
    font:inherit;font-size:11px;color:var(--ink-3);
  }
  /* Fixed height for the icon box: the spots icon ((·)) is set smaller than the
     rest, and with line-height:1 alone that box shrank along with it — which left
     that one label a few pixels higher than the others. Now all labels line up. */
  .nav button .ic{
    font-size:17px; line-height:1; height:18px;
    display:flex; align-items:center; justify-content:center;
  }
  .nav button[data-view="viewSpots"] .ic{font-size:12px;font-weight:700}
  .nav button.on{color:var(--green);font-weight:650}
  /* Same fixed-guess problem as .ver above, same fix: track the bar's real
     height through --nav-h instead of the number that happened to be true on
     whichever phone these were last measured on. */
  body.has-nav .sheet{bottom:var(--nav-h, 62px)}
  body.has-nav .status{bottom:calc(var(--nav-h, 62px) + 16px)}
  body.has-nav .maplibregl-ctrl-bottom-right{margin-bottom:calc(var(--nav-h, 62px) + 4px)}

  .view{
    position:absolute;z-index:8;inset:0 0 62px;background:var(--paper);
    overflow:auto;padding:16px 16px 28px;display:none;
  }
  .view.on{display:block}
  /* The heatmap is not a separate screen but a panel over the map — otherwise you
     cannot see the shaded areas, and seeing them is the entire point. */
  .view.panel{
    inset:auto 0 62px 0; max-height:52vh; background:var(--card);
    border-radius:20px 20px 0 0; box-shadow:0 -6px 30px rgba(18,41,29,.16);
    padding:8px 16px 18px;
  }
  .view.panel h1{font-size:19px}
  /* Gets out of the way as soon as the zone sheet opens — otherwise the two overlap on a phone. */
  .view.panel.tucked{display:none}
  /* Swiping down tucks the panel away, but does not switch the heatmap off: those
     colours are exactly what you want to look at. A strip stays behind to bring it
     back, and the tab stays on Heatmap. Only tapping Map returns you to the plain
     map. */
  .view.panel{transition:transform .22s ease}
  .view.panel.minimized{
    transform:translateY(calc(100% - 40px));
    overflow:hidden;cursor:pointer;
  }
  .view.panel .peek{display:none;text-align:center;font-size:12.5px;color:var(--ink-3);margin:-4px 0 0}
  .view.panel.minimized .peek{display:block}
  .view.panel .sub{margin-bottom:10px}
  .view h1{font-size:22px;letter-spacing:-.02em;margin:4px 0 2px}
  /* What's new (releases.js): one card per version. */
  .rel .relhead{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
  .rel .relhead b{font-size:16px;color:var(--green)}
  .rel .relhead .reldate{margin-left:auto;font-size:12.5px;color:var(--ink-3)}
  .rel ul{margin:8px 0 0;padding-left:18px}
  .rel li{margin:0 0 5px;line-height:1.45}
  .rel.current{box-shadow:var(--shadow), inset 3px 0 0 var(--amber)}
  .view .sub{color:var(--ink-3);font-size:13.5px;margin:0 0 16px}
  .card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;margin-bottom:12px}
  .btn{
    width:100%;border:0;border-radius:12px;padding:14px;font:inherit;font-weight:650;
    cursor:pointer;background:var(--green);color:#fff;font-size:15px;
  }
  .btn.amber{background:var(--amber)}
  .btn.ghost{background:var(--paper);color:var(--ink-2);border:1px solid var(--line)}
  .btn.danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
  .btn[disabled]{opacity:.45;cursor:not-allowed}
  .btn + .btn{margin-top:8px}

  /* admin */
  .ch{margin:0 0 10px;font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3)}
  .chk{display:flex;align-items:center;gap:8px;font-size:13.5px;margin:2px 0 8px;cursor:pointer}
  .code{background:#12291d;color:#d7e6dc;border-radius:10px;padding:11px 12px;font:12px/1.5 ui-monospace,
        SFMono-Regular,Menlo,monospace;white-space:pre-wrap;word-break:break-all;margin:4px 0 10px}
  .steps{margin:6px 0 12px;font-size:13px}
  .step{display:flex;gap:9px;align-items:baseline;padding:3px 0;color:var(--ink-3)}
  .step .mk{width:16px;flex:0 0 auto;text-align:center}
  .step.done{color:var(--green-2)} .step.now{color:var(--ink);font-weight:600}
  .step.err{color:#b91c1c}
  .nav button[data-view="viewAdmin"]{display:none}
  body.admin .nav button[data-view="viewAdmin"]{display:flex}

  /* self-spotting */
  /* minmax(0, 1fr): a field never makes its column wider than half the row
     (a plain 1fr lets a field with a wide minimum, such as a date, push the
     second column out of the card). */
  .fgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  /* Date and time fields: side by side when both fit at their full width
     (about 212 px in Chrome), otherwise one under the other. The browser
     decides on the real width, so a phone held upright stacks them and a
     wider screen keeps them next to each other. */
  .fgrid.fdates{grid-template-columns:repeat(auto-fit,minmax(min(100%,216px),1fr))}
  .fld{display:block;margin-bottom:10px}
  /* Fields side by side keep their boxes on one line (since 2.2.10). A label
     that runs over two lines, in a longer language or with a larger font set
     on the phone, used to push its own box down, out of line with the one
     next to it. Now the label grows upwards instead: every field in a grid
     row is as tall as the row, with its box at the bottom. */
  .fgrid > .fld{display:flex;flex-direction:column;justify-content:flex-end}
  .fld > span{display:block;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);font-weight:650;margin-bottom:4px}
  .fld input, .fld select{
    width:100%;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;
    font:inherit;color:inherit;background:var(--paper);
  }
  .fld input:focus, .fld select:focus{outline:2px solid var(--leaf);outline-offset:1px;background:#fff}
  .fld input.bad{border-color:#dc2626;background:#fef2f2}
  .fld input.good{border-color:var(--leaf)}
  .fb{font-size:12.5px;margin:-4px 0 10px;min-height:16px;color:var(--ink-3)}
  .fb.bad{color:#b91c1c}
  .fb.good{color:var(--green-2)}
  /* Something is off, but not so certainly that it should stop you — the file
     check uses this for "I found nothing in here", which may equally be my
     reading of the file that is at fault. */
  .fb.warn{color:#b45309}
  #admCurrent .admland{padding:4px 0; border-bottom:1px solid var(--line)}
  #admCurrent .admland:last-child{border-bottom:0; color:var(--ink-3)}
  .chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}
  .chip{border:1px solid var(--line);background:var(--card);border-radius:99px;padding:6px 11px;
        font:inherit;font-size:12.5px;color:var(--ink-2);cursor:pointer}
  .chip:hover{border-color:var(--leaf);color:var(--green)}
  /* The way to Settings, deliberately quieter than the words themselves. */
  .chip.gear{color:var(--ink-3);padding:6px 9px}
  .chip.on{background:var(--green);border-color:var(--green);color:#fff;font-weight:600}
  .warn{font-size:12.5px;color:#92400e;background:#fdf6e3;border-radius:10px;padding:10px 12px;margin:12px 0 0}

  /* banners and privacy notes */
  .banner{border-radius:12px;padding:12px 14px;display:flex;gap:11px;align-items:center;margin-bottom:12px}
  .banner.in{background:#e8f3ec;color:var(--green-2)}
  .banner.out{background:var(--paper);color:var(--ink-3)}
  .banner .b1{font-weight:650}
  .banner .b2{font-size:12.5px;opacity:.85}
  .privacy{font-size:12px;color:var(--ink-3);margin-top:10px;display:flex;gap:7px}
  .privlist{margin:0;padding-left:20px;color:var(--ink-2)}
  .privlist li{margin-bottom:8px;line-height:1.5}
  .privlist li:last-child{margin-bottom:0}

  /* band plan */
  .band{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:9px;background:var(--card)}
  .band.here{border-color:var(--leaf);background:#f2f9f4}
  .band .bh{display:flex;justify-content:space-between;align-items:baseline}
  .band .bn{font-weight:700;font-size:16px}
  .bar{position:relative;height:12px;border-radius:6px;background:var(--paper);margin:10px 0 9px;overflow:visible}
  .bar .sg{position:absolute;top:0;height:12px;border-radius:3px}
  .bar .mk{position:absolute;top:-3px;width:2px;height:18px;border-radius:2px;transform:translateX(-1px)}
  .bar .mk.mkw{background:var(--amber)}
  .bar .mk.ft8{background:#7c3aed}
  .sgrows{display:grid;gap:3px}
  .sgrow{display:flex;align-items:center;gap:8px;font-size:12.5px}
  .sgrow .dot{width:9px;height:9px;border-radius:2px;flex:0 0 auto}
  .sgrow .m{width:38px;font-weight:600;color:var(--ink-2)}
  .sgrow .r{color:var(--ink-3);font-variant-numeric:tabular-nums}
  .band .br{font-size:12.5px;color:var(--ink-3)}
  .modes{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
  .mode{font-size:11.5px;padding:4px 9px;border-radius:99px;background:var(--paper);color:var(--ink-2)}
  .wwff{margin-top:8px;background:#fdf6e3;color:#92400e;border-radius:8px;padding:7px 10px;font-size:12.5px;font-weight:600}

  /* heatmap */
  .legend{display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--ink-3);margin-top:10px}
  .ramp{height:9px;border-radius:99px;flex:1;
    background:linear-gradient(90deg,#dc2626,#f59e0b,#facc15,#84cc16,#16a34a)}
  .neg{display:flex;justify-content:space-between;gap:10px;padding:9px 2px;border-bottom:1px solid var(--line);font-size:13.5px}
  .neg:last-child{border:0}
  .neg .nr{color:var(--ink-3);font-size:12.5px;flex:0 0 auto}

  /* The little version badge, bottom left. Small enough to forget, big enough to
     read out over the phone when something goes wrong. The map controls and the
     attribution sit bottom right, so: left.
     Sits just above the bottom bar via --nav-h (see nav.js) rather than a fixed
     guess at the bar's height — a guess that used to land the badge half UNDER
     the bar the moment a phone's own gesture-navigation inset, or a larger
     system text size, made the real bar taller than assumed. */
  .ver{
    position:absolute; z-index:6; left:10px;
    bottom:calc(var(--nav-h, 62px) + 8px);
    font:11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
    color:var(--ink-3); background:rgba(255,255,255,.72);
    border-radius:7px; padding:4px 7px; cursor:pointer;
    backdrop-filter:blur(4px); border:0; max-width:60vw;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  .ver:hover{color:var(--ink)}
  /* Gone as soon as a panel or screen covers it — otherwise it shines through the
     map in a place where nobody is looking for it. */
  body.sheet-open .ver, body.embed .ver{display:none}

  /* ---------- gps status ---------- */
  .status{
    position:absolute; z-index:6; left:12px; right:12px; bottom:16px;
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:12px 14px; display:none; gap:12px; align-items:center;
  }
  .status.show{display:flex}
  /* Most messages belong to the map and stay under the full screens (z-index 8)
     — a confirmation that covered the buttons of the form you just used would
     be worse than no confirmation. The exception is a message about the app
     itself: "a new version is ready" is asked for from Settings, and used to
     appear behind that very screen, showing itself only once you wandered back
     to the map. Those rise above everything. */
  .status.top{z-index:9}
  .status .txt{flex:1;min-width:0}
  .status .stx{
    flex:0 0 auto; border:0; background:transparent; cursor:pointer;
    font-size:22px; line-height:1; color:var(--ink-3); padding:2px 2px 6px; margin:-4px -4px 0 0;
  }
  .status .stx:hover{color:var(--ink)}
  .status .dot{width:11px;height:11px;border-radius:50%;flex:0 0 auto}
  .status.in  .dot{background:var(--leaf)}
  .status.near .dot{background:var(--amber)}
  .status.out .dot{background:var(--ink-3)}
  .status .txt{flex:1;min-width:0}
  .status .t1{font-weight:650}
  .status .t2{font-size:12.5px;color:var(--ink-3);margin-top:1px}
  .status.in .t1{color:var(--green-2)}
  .status.near .t1{color:#b45309}

  /* The detail sheet must not cover the map controls and the GPS message —
     those slide up along with it for as long as it is open. */
  .maplibregl-ctrl-bottom-right, .status{
    transition:transform .22s cubic-bezier(.3,.8,.3,1);
  }
  body.sheet-open .maplibregl-ctrl-bottom-right,
  body.sheet-open .status{ transform:translateY(calc(-1 * var(--sheet-h, 0px))) }
  /* ---------- splash screen ----------
     The illustration fills the screen, a signal sweep runs across it and expanding
     rings sit above the mast: the image transmits while the data comes in. */
  .splash{
    position:fixed; inset:0; z-index:60; overflow:hidden;
    /* One directory up: this file moved into css/, start.jpg did not. */
    background:#16281c url("../start.jpg") center/cover no-repeat;
    display:flex; align-items:flex-end; justify-content:center;
    transition:opacity .5s ease, visibility .5s;
  }
  .splash.gone{opacity:0; visibility:hidden; pointer-events:none}
  /* Scripts blocked (since 2.2.11): shown by the stylesheet alone after 20 s
     (10 s until 2.2.12: on a very weak connection a first visit can take that
     long just to fetch the scripts, and the box then showed for nothing),
     hidden for good as soon as the app's own scripts run. */
  .splash-help{
    position:absolute; z-index:3; left:50%; top:16px; transform:translateX(-50%);
    width:calc(100% - 32px); max-width:460px; max-height:calc(100% - 200px); overflow:auto;
    background:#fff; color:var(--ink); border-radius:14px; padding:16px 18px;
    box-shadow:0 8px 28px rgba(0,0,0,.35); font-size:14px; line-height:1.45; text-align:left;
    opacity:0; visibility:hidden; animation:splashhelp .4s ease 20s forwards;
  }
  .splash-help .sh-t{display:block; font-size:16px; margin-bottom:6px; color:#92400e}
  .splash-help p{margin:8px 0 0}
  .splash-help a{color:var(--green-2); font-weight:600}
  .js-ok .splash-help{display:none}
  .js-nomap .splash-help{animation:none; opacity:1; visibility:visible}
  @keyframes splashhelp{to{opacity:1; visibility:visible}}
  /* readability at the bottom, without flattening the illustration */
  .splash::after{
    content:""; position:absolute; inset:auto 0 0 0; height:58%;
    background:linear-gradient(to top, rgba(10,22,15,.94) 12%, rgba(10,22,15,.72) 42%, transparent);
  }
  /* the sweep: a narrow band that slowly descends across the image */
  .splash .sweep{
    position:absolute; left:-20%; right:-20%; height:32%; top:-32%;
    background:linear-gradient(to bottom, transparent,
      rgba(130,220,170,.16) 42%, rgba(200,255,225,.30) 50%, rgba(130,220,170,.16) 58%, transparent);
    animation:dsweep 3.4s linear infinite;
  }
  @keyframes dsweep{ from{transform:translateY(0)} to{transform:translateY(420%)} }

  /* expanding rings at the top of the antenna mast in the illustration */
  .splash .tx{position:absolute; left:17.5%; top:7.5%; width:0; height:0}
  .splash .tx i{
    position:absolute; left:0; top:0; width:26vmin; height:26vmin; margin:-13vmin;
    border:2px solid rgba(190,245,215,.7); border-radius:50%;
    opacity:0; animation:dtx 2.7s ease-out infinite;
  }
  .splash .tx i:nth-child(2){animation-delay:.9s}
  .splash .tx i:nth-child(3){animation-delay:1.8s}
  @keyframes dtx{
    0%  {transform:scale(.12); opacity:.85}
    70% {opacity:.22}
    100%{transform:scale(1.6); opacity:0}
  }

  .splash .sfoot{position:relative; z-index:2; width:100%; max-width:460px; padding:0 26px 42px; text-align:center}
  .splash .sbrand{
    color:#f2f7f3; font-size:30px; font-weight:700; letter-spacing:-.02em;
    display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:6px;
    text-shadow:0 2px 14px rgba(0,0,0,.55);
  }
  .splash .sbrand .mark{width:62px;height:auto;filter:drop-shadow(0 2px 10px rgba(0,0,0,.5))}
  .splash .sload{color:#cfe3d6; font-size:13.5px; min-height:19px; letter-spacing:.01em}
  .splash .sbar{
    height:3px; border-radius:3px; background:rgba(255,255,255,.16);
    overflow:hidden; margin:12px auto 8px; max-width:230px;
  }
  .splash .sbar i{
    display:block; height:100%; width:8%; border-radius:3px;
    background:linear-gradient(90deg,#52b788,#c08b4e);
    transition:width .45s cubic-bezier(.4,0,.2,1);
  }
  .splash .sver{color:#8fae9d; font-size:11.5px; letter-spacing:.06em}
  @media (prefers-reduced-motion:reduce){
    .splash .sweep, .splash .tx i{animation:none; opacity:.25}
  }

  /* ---------- first-launch consent ----------
     Sits above the splash screen (z-index 60), so it is what remains once the
     splash has done its job. Both choices are the same button, same size, same
     weight: neither one is the "recommended" one. */
  .consent{
    position:fixed; inset:0; z-index:65;
    background:rgba(10,22,15,.7);
    display:flex; align-items:center; justify-content:center;
    padding:20px;
  }
  .consent .ccard{
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:22px 20px; max-width:420px; width:100%; max-height:88vh; overflow:auto;
  }
  .consent .cbrand{
    display:flex; align-items:center; gap:9px; font-size:19px; font-weight:700;
    letter-spacing:-.02em; margin-bottom:14px; color:var(--ink);
  }
  .consent .cbrand .mark{width:34px;height:auto}
  .consent p{margin:6px 0 12px}
  /* The reassurance about the location permission (since 2.2.6): its own
     tinted box with a bar on the left, so it is read before the button. */
  .locscope{
    display:flex; gap:10px; align-items:flex-start;
    background:#e8f5ee; border:1px solid #b7dfc8; border-left:5px solid var(--green-2);
    border-radius:10px; padding:11px 12px; margin:4px 0 14px;
    font-size:14.5px; line-height:1.45; color:var(--ink);
  }
  .locscope .lsic{font-size:18px; line-height:1.2}
  .locscope b{display:block; color:var(--green); font-weight:700; margin-bottom:3px}

  /* Location state line: welcome screen and privacy page (privacy.js). */
  .locstate{margin:8px 0 10px;font-size:13px}
  .locstate:empty{display:none}
  .locstate .locmsg{color:var(--ink-2)}
  .locstate .locmsg.good{color:var(--green-2)}
  .locstate .locmsg.warn{color:#b45309}
  .locstate .locmsg.bad{color:#b91c1c}
  .locstate .locstep{margin-top:6px;font-size:12.5px;color:var(--ink-3);line-height:1.45}

  /* ---------- install bar ---------- */
  .instbar{
    position:absolute; left:10px; right:10px; z-index:7;
    /* --nav-h is now actually kept in sync (nav.js) — it was referenced here
       before that was true, always falling back to the bare "62px" below, so
       the explicit + env(safe-area-inset-bottom) term used to be doing the
       one job that mattered: covering a gesture-navigation inset the fallback
       knew nothing about. The bar's real height already includes that inset
       (it is part of its own bottom padding), so adding it again here now
       would double it. */
    bottom:calc(var(--nav-h, 62px) + 10px);
    display:flex; align-items:center; gap:8px;
    background:var(--green); color:#fff; border-radius:var(--radius);
    padding:10px 12px; box-shadow:var(--shadow); font-size:13.5px;
  }
  .instbar .t{flex:1;line-height:1.35}
  .instbar button{border:0;border-radius:9px;font:inherit;font-weight:600;cursor:pointer;padding:8px 12px}
  .instbar .go{background:var(--amber);color:#fff}
  .instbar .no{background:transparent;color:#cfe3d6;padding:8px 6px;font-weight:500}
  body.embed .instbar{display:none}
  /* One thing at a time along the bottom: an open sheet takes precedence. */
  body.sheet-open .instbar{display:none}

  /* ---------- accuracy-permission hint ----------
     Same shape and spot as the install bar above, deliberately: it is the
     established "dismiss it and it's gone for good" bottom banner in this
     app, and a second, differently-built one would just be a second thing to
     get right. Amber rather than green — this one is a heads-up, not an
     offer. */
  .acchint{
    position:absolute; left:10px; right:10px; z-index:7;
    bottom:calc(var(--nav-h, 62px) + 10px);
    display:flex; align-items:center; gap:8px;
    background:var(--amber-soft); color:var(--ink); border:1px solid var(--amber);
    border-radius:var(--radius); padding:10px 12px; box-shadow:var(--shadow); font-size:13.5px;
  }
  .acchint .t{flex:1;line-height:1.35}
  .acchint .ahx{border:0;border-radius:9px;background:transparent;color:var(--ink-2);
    font:inherit;font-weight:700;cursor:pointer;padding:8px 10px}
  body.embed .acchint{display:none}
  body.sheet-open .acchint{display:none}
  /* The rare moment both bottom banners have something to say: stack instead
     of the second one sitting exactly on top of the first. */
  #instBar:not([hidden]) ~ #accHint{bottom:calc(var(--nav-h, 62px) + 66px)}

  body.embed .nav, body.embed .brand, body.embed .counts{display:none}
  body.embed .topbar{padding-top:8px}
  @media (max-width:520px){
    .pop{right:12px;left:12px;width:auto}
    .pop + .pop{right:12px;top:64px}
    .facts{grid-template-columns:1fr}
  }

  /* ---------- Veldinfo > Condities (conditions.js) ---------- */
  .kpgauge{display:block;width:100%;max-width:240px;margin:2px auto 0}
  .condkpval{text-align:center;margin-top:-2px}
  .condkpval b{font-size:28px;color:var(--ink)}
  .condword{font-weight:600;margin-left:8px}
  .condkpnow{text-align:center;margin:2px 0 0}
  .condnums,.condsun{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px;text-align:center}
  .condsun{grid-template-columns:1fr 1fr;margin-top:0}
  .condnums .k,.condsun .k{font-size:12px;color:var(--ink-3)}
  .condnums .v,.condsun .v{font-size:18px;font-weight:600;color:var(--ink)}
  .condutc{display:block;color:var(--ink-3);font-size:12px;font-weight:400}
  .condstrip{display:flex;flex-direction:column;gap:9px;margin-top:4px}
  .condrow{display:flex;flex-direction:column;gap:3px}
  .condtop{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
  .condband{font-size:13px;font-weight:700;color:var(--ink)}
  .condband small{font-size:11px;font-weight:500;color:var(--ink-3);margin-left:4px}
  .condnowword{font-size:12px;color:var(--ink-3);white-space:nowrap}
  .condnowword b{font-weight:700}
  .condlabels{display:flex}
  .condlabels span{flex:1;text-align:center;font-size:11px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .condlabels span.now{color:var(--green);font-weight:700}
  .condbar{position:relative;display:flex;height:20px;border-radius:11px;overflow:hidden}
  .condseg{flex:1;border:0;margin:0;padding:0;background:transparent;cursor:pointer}
  .condseg:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
  .condnow{position:absolute;top:0;bottom:0;width:3px;margin-left:-1.5px;background:var(--ink);border-radius:2px;box-shadow:0 0 0 1.5px var(--card);pointer-events:none}
  .condlegend{display:flex;gap:14px;margin:10px 0 0;font-size:12px;color:var(--ink-2)}
  .condlegend i{display:inline-block;width:12px;height:12px;border-radius:4px;margin-right:5px;vertical-align:-2px}
  .hint.condold{color:var(--amber)}

  /* ---------- Regels > Regels (rules-text.js) ---------- */
  .rgroup{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-3);margin:18px 2px 8px;font-weight:700}
  .rule{padding:14px 16px}
  .rhead{display:flex;align-items:baseline;gap:10px;margin-bottom:6px}
  .rnum{flex:0 0 auto;font-size:11.5px;font-weight:700;color:var(--green-2);background:#e8f3ec;border-radius:6px;padding:2px 7px;font-variant-numeric:tabular-nums}
  .rule h4{margin:0;font-size:15px;line-height:1.3;color:var(--ink)}
  .rule p{margin:6px 0 0;font-size:14px;line-height:1.55;color:var(--ink-2)}
  .rule p b{color:var(--ink)}
  .rule a{color:var(--green-2);font-weight:600;white-space:nowrap}
  .rulex{display:flex;flex-wrap:wrap;align-items:flex-start;margin:10px 0 4px;padding:10px 12px;background:var(--paper);border:1px dashed var(--leaf);border-radius:10px}
  .rxp{display:flex;flex-direction:column;align-items:center}
  .rxp code{font:600 15px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ink);padding:2px 1px;border-bottom:2px solid transparent}
  .rxp.c code{border-color:#52b788}
  .rxp.r code{border-color:#d97706}
  .rxp.d code{border-color:#2d6a4f}
  .rxp.sp code{background:#fef3e2;border-radius:3px;min-width:9px}
  .rxp small{font-size:10.5px;color:var(--ink-3);margin-top:2px;white-space:nowrap}
  .rsrc{margin-top:14px}
  .rsrc a{color:var(--green-2);font-weight:600}

  /* ---------- setup wizard and tour (js/wizard.js) ----------
     The wizard sits where the welcome screen sat (z-index 65) and just above
     it, so it is what remains once that one is answered. The tour is a card
     above the bottom bar with a clear layer over the rest: the real screen
     stays fully visible as the preview, but cannot be tapped by accident. */
  .wizard{
    position:fixed; inset:0; z-index:66;
    background:rgba(10,22,15,.7);
    display:flex; align-items:center; justify-content:center; padding:20px;
  }
  .wizard .wcard{
    background:var(--card); border-radius:var(--radius); box-shadow:var(--shadow);
    padding:20px; max-width:440px; width:100%; max-height:90vh; overflow:auto;
  }
  .wizard .whead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
  .wizard .cbrand{display:flex;align-items:center;gap:9px;font-size:19px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
  .wizard .cbrand .mark{width:34px;height:auto}
  .wstep{font-size:12px;color:var(--ink-3);white-space:nowrap}
  .wizard .wstep{margin-left:auto}
  .wizard .wx{border:0;background:none;font-size:24px;line-height:1;color:var(--ink-3);cursor:pointer;padding:0 2px 2px 6px}
  .wizard h2{margin:0 0 8px;font-size:18px;letter-spacing:-.01em}
  .wizard p{margin:6px 0 12px}
  .wizard .why{font-size:13px;color:var(--ink-2);background:var(--paper);border-radius:10px;padding:9px 11px;margin:4px 0 12px}
  .wizard .langs{margin:4px 0 6px}
  .wizard select{width:100%}
  .wizard .wnav{display:flex;gap:8px;margin-top:14px}
  .wizard .wnav .btn{flex:1;margin:0}
  .wizard .wnav .btn[hidden]{display:none}
  .wizard .wnav .btn + .btn{margin-top:0}
  .wizard .wgps{font-size:13.5px;padding:10px}
  .wizard .chipsbtn{font-size:13.5px;padding:10px;margin-top:4px}
  .wizard .wstack .btn + .btn{margin-top:8px}
  .wizard .privacy{margin-top:12px}

  .wtour{position:fixed; inset:0; z-index:66; background:transparent}
  .wtour .tcard{
    position:absolute; left:10px; right:10px;
    bottom:calc(74px + env(safe-area-inset-bottom));
    max-width:480px; margin:0 auto; max-height:52vh; overflow:auto;
    background:var(--card); border-radius:var(--radius);
    box-shadow:0 6px 30px rgba(18,41,29,.28); border:1px solid var(--line);
    padding:14px 16px;
  }
  .wtour .thead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:6px}
  .wtour .thead b{font-size:16px}
  .wtour ul{margin:0 0 10px;padding-left:18px;font-size:13.5px;line-height:1.45;color:var(--ink-2)}
  .wtour li + li{margin-top:5px}
  .wtour .tnav{display:flex;gap:8px}
  .wtour .tnav .btn{flex:1;margin:0;padding:11px}
  .wtour .tnav .btn + .btn{margin-top:0}
  .nav button.wzhl{outline:2px solid var(--amber); outline-offset:-2px; background:var(--amber-soft)}
