/* JOY Energy — JOY's design language (GIMIMI design/DESIGN.md) on a full page.
   One signature: the blue line = the site being worked on, and the one primary action. */

:root {
  --paper: #FFFFFF;
  --sheet: #F4F6F8;
  --ink: #1D2939;
  --muted: #667085;
  --line: #E4E7EC;
  --line-strong: #D0D5DD;
  --blue: #2046E0;
  --blue-deep: #1A3BC4;
  --blue-soft: #EEF2FE;
  /* verdict colours: data only (dots, the verdict chip, map fills) */
  --red: #C4320A;
  --yellow: #B54708;
  --green: #0E7A55;
  --unchecked: #98A2B3;
  --r-chip: 4px;
  --r-panel: 8px;
  --hit: 32px;
  --header-h: 48px;
  --foot-h: 28px;
  --panel-w: 420px;
  --font: "IBM Plex Sans Hebrew", "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font: 13px/1.5 var(--font); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
[hidden] { display: none !important; }
.num, .tabular { font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
/* focus is the blue line: a 2 px ring on controls and fields */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- header ---------------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--header-h); padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand .mark { flex: none; }
.brand .name { font-size: 15px; font-weight: 600; white-space: nowrap; }
.brand .tagline { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who-text { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------------- buttons: three looks only ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: var(--r-chip); padding: 6px 16px; min-height: var(--hit);
  cursor: pointer; background: var(--blue); color: #fff; font-weight: 500; line-height: 1.4;
}
.btn:hover { background: var(--blue-deep); }
.btn:disabled { opacity: .45; cursor: default; background: var(--blue); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--sheet); border-color: var(--line-strong); }
.btn.ghost:disabled { background: var(--paper); }
.link {
  display: inline-flex; align-items: center; gap: 4px; min-height: var(--hit);
  border: 0; background: none; padding: 4px 8px; cursor: pointer; color: var(--ink);
  border-radius: var(--r-chip); font-weight: 500;
}
.link:hover { background: var(--sheet); }
.link:disabled { color: var(--muted); cursor: default; background: none; }

/* ---------------- fields ---------------- */
.field { margin-bottom: 12px; }
.field > label, .field > .label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=password], input[type=email], select, textarea {
  width: 100%; min-height: var(--hit); padding: 6px 10px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-chip);
}
textarea { resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 1px var(--blue); }
input:disabled, select:disabled { background: var(--sheet); color: var(--muted); }
/* an error says what happened in ink, marked by one red dot (data colour on the dot only) */
.err { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--ink); margin-top: 8px; }
.err::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  transform: translateY(-1px);
}
.err:empty { display: none; }
/* a notice about the page: a quiet sheet with one data dot, never a coloured stripe */
.notice {
  display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; margin-top: 8px;
  background: var(--sheet); border-radius: var(--r-panel); font-size: 12px;
}
.notice::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow);
  transform: translateY(-1px);
}
.notice:empty { display: none; }

/* ---------------- sign-in ---------------- */
.signin {
  min-height: calc(100vh - var(--header-h) - var(--foot-h)); display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; background: var(--sheet);
}
.signin-card {
  width: 100%; max-width: 360px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-panel); padding: 24px;
}
.signin-card h1 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.signin-card .lead { color: var(--muted); margin-bottom: 16px; }
.signin-card form > .btn { margin-top: 4px; }
.signin-card .notice { margin: 0 0 16px; }

.signin-card .legal-links { margin-top: 16px; font-size: 12px; color: var(--muted); }
.signin-card .legal-links a, .foot a { color: var(--muted); }

/* ---------------- footer and the terms-acceptance screen ---------------- */
.foot {
  height: var(--foot-h); display: flex; align-items: center; justify-content: center; gap: 16px;
  border-top: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--muted);
}
.terms-view {
  min-height: calc(100vh - var(--header-h) - var(--foot-h)); display: flex; align-items: flex-start;
  justify-content: center; padding: 48px 16px; background: var(--sheet);
}
.terms-card {
  width: 100%; max-width: 440px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-panel); padding: 24px;
}
.terms-card h1 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.terms-card .lead { color: var(--muted); margin-bottom: 16px; }
.terms-card ul { margin: 0 0 16px; padding-inline-start: 20px; }
.terms-card .agree { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; cursor: pointer; }
.terms-card .agree input { margin-top: 3px; }

/* ---------------- legal pages (terms.html, privacy.html) ---------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; line-height: 1.7; font-size: 14px; }
.legal h1 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.legal h2 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.legal ul { margin: 0 0 8px; padding-inline-start: 22px; }
.legal li { margin-bottom: 4px; }
.legal .draft {
  margin: 0 0 16px; padding: 8px 12px; border: 1px solid var(--yellow); border-radius: var(--r-chip);
  background: #FFF8EB; color: var(--yellow); font-weight: 600;
}
.legal .meta { color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.legal .prelim { padding: 8px 12px; background: var(--blue-soft); border-radius: var(--r-chip); margin-bottom: 16px; }
.legal a { color: var(--blue); }

/* ---------------- app layout: panel on the right (RTL start), map beside it ---------------- */
.app {
  display: grid; grid-template-columns: var(--panel-w) minmax(0, 1fr); grid-template-areas: "panel map";
  height: calc(100vh - var(--header-h) - var(--foot-h)); min-height: 0;
}
.panel {
  grid-area: panel; min-width: 0; overflow-y: auto; border-inline-end: 1px solid var(--line);
  padding: 16px; background: var(--paper);
}
.map { grid-area: map; min-width: 0; min-height: 0; background: var(--sheet); }

/* below 900 px the panel stacks under the map and the page scrolls (never sideways) */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "map" "panel"; height: auto; }
  .map { height: 56vh; min-height: 300px; }
  .panel { overflow: visible; border-inline-end: 0; border-top: 1px solid var(--line); }
  .brand .tagline { display: none; }
}
@media (max-width: 420px) {
  .top { padding: 0 12px; }
  .panel { padding: 16px 12px; }
}

.noscript { padding: 24px 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------------- panel steps ---------------- */
.step { padding-bottom: 16px; }
.step + .step { padding-top: 16px; border-top: 1px solid var(--line); }
.step-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------------- site input ---------------- */
/* empty: the drop target is drawn as what it asks for, a dashed blue line;
   with a site: the blue line on its start edge = "this is what you are working on" */
.site-box {
  border: 1px dashed var(--blue); border-radius: var(--r-panel); padding: 12px;
  background: var(--paper);
}
.site-box.drag { background: var(--blue-soft); border-style: solid; }
.site-box.has-site {
  border: 1px solid var(--line); border-inline-start: 3px solid var(--blue);
  border-start-start-radius: 0; border-end-start-radius: 0;
  border-start-end-radius: var(--r-chip); border-end-end-radius: var(--r-chip); background: var(--blue-soft);
}
.drop-invite { margin-bottom: 8px; }
.site-current { font-weight: 500; margin-bottom: 8px; overflow-wrap: anywhere; }
.site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.picker { margin-top: 12px; }
.picker-title { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.picker-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.picker-list li { border-bottom: 1px solid var(--line); }
.picker-row {
  display: block; width: 100%; min-height: var(--hit); padding: 6px 8px; text-align: start;
  border: 0; background: none; cursor: pointer; overflow-wrap: anywhere;
}
.picker-row:hover, .picker-row:focus-visible { background: var(--blue-soft); }
.picker-row:focus-visible { outline-offset: -2px; }

/* ---------------- map ---------------- */
.map:focus-visible { outline-offset: -2px; }
.leaflet-container { font: 12px/1.5 var(--font); background: var(--sheet); }
.leaflet-container a { color: var(--ink); }
.leaflet-control-attribution { font-size: 11px; }
.leaflet-bar a, .leaflet-control-layers { color: var(--ink); border-radius: var(--r-chip); }
.leaflet-touch .leaflet-bar, .leaflet-touch .leaflet-control-layers { border: 1px solid var(--line-strong); box-shadow: none; }
.leaflet-control-layers-expanded { padding: 8px 12px; direction: rtl; text-align: start; }
.leaflet-control-layers label { min-height: 24px; display: block; }
.leaflet-control-layers input { accent-color: var(--ink); margin: 0; margin-inline-end: 6px; }
/* numbers and Latin credits read left to right inside the RTL page */
.leaflet-control-scale, .leaflet-control-attribution { direction: ltr; }
.leaflet-control-layers-separator { border-top-color: var(--line); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { box-shadow: 0 1px 4px rgba(16, 24, 40, .16); }
.leaflet-popup-content-wrapper { border-radius: var(--r-panel); }
.leaflet-popup-content { margin: 12px 16px; }
.iec-pop { min-width: 200px; }
.iec-pop-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.iec-pop dl { display: grid; grid-template-columns: auto auto; gap: 2px 12px; margin: 0; }
.iec-pop dt { color: var(--muted); }
.iec-pop dd { margin: 0; font-variant-numeric: tabular-nums; }
.iec-pop-src { font-size: 11px; color: var(--muted); margin-top: 6px; }
.map-legend {
  direction: rtl; text-align: start; background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--r-chip); padding: 8px 12px; max-width: 220px;
}
.legend-title { font-weight: 500; margin-bottom: 4px; }
.map-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.swatch {
  width: 12px; height: 12px; border-radius: 2px; flex: none;
  background: color-mix(in srgb, var(--c) 24%, white); border: 1px solid var(--c);
}
.legend-note { font-size: 11px; color: var(--muted); margin-top: 4px; }
.leaflet-pm-tooltip, .leaflet-tooltip { font: 12px var(--font); direction: rtl; }
/* Geoman's vertex markers default to Leaflet blue (#3388ff): the site is our one blue */
.marker-icon { border-color: var(--blue); }
@media (max-width: 900px) {
  .map-legend { max-width: 180px; padding: 6px 8px; }
}

/* ---------------- project step ---------------- */
.inline { display: flex; align-items: baseline; gap: 8px; }
fieldset.seg { border: 0; margin: 0 0 4px; padding: 0; min-width: 0; }
fieldset.seg legend { padding: 0; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.seg-row { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-chip); overflow: hidden; }
.seg-opt { position: relative; display: inline-flex; align-items: center; min-height: var(--hit); padding: 0 14px; cursor: pointer; }
.seg-opt + .seg-opt { border-inline-start: 1px solid var(--line); }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt:has(input:checked) { background: var(--sheet); font-weight: 600; }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---------------- run ---------------- */
.step.run { padding-top: 16px; }
.run-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.run-note:empty { display: none; }

/* ---------------- results ---------------- */
.results { padding-top: 16px; border-top: 1px solid var(--line); }
/* a stale result is drawn in the muted colour: still readable, plainly not current */
.results.is-stale :is(.verdict, .verdict-note, .result-kind, .numbers, .check-title, .finding, .src, .status, .next) { color: var(--muted); }
.results.is-stale :is(.check:not(.s-unchecked), .verdict:not(.v-unchecked)) .dot { background: var(--muted); }
.results .stale { margin: 0 0 12px; }
.verdict-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.verdict {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; min-height: var(--hit);
  border: 1px solid currentColor; border-radius: var(--r-chip); font-size: 15px; font-weight: 600; background: var(--paper);
}
.verdict:focus { outline: none; }
.verdict:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.verdict .dot { width: 10px; height: 10px; }
.v-red { color: var(--red); }
.v-yellow { color: var(--yellow); }
.v-green { color: var(--green); }
.v-unchecked { color: var(--muted); }
.result-kind { font-size: 12px; color: var(--muted); }
.verdict-note { font-size: 12px; font-weight: 500; color: var(--ink); }
.countdown { font-size: 12px; color: var(--muted); margin-top: 4px; }
.countdown:empty { display: none; }
.numbers { font-size: 13px; font-weight: 500; margin-bottom: 12px; }

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-red .dot { background: var(--red); }
.s-yellow .dot { background: var(--yellow); }
.s-green .dot { background: var(--green); }
/* not checked: an empty grey ring, never a colour that could read as a pass */
.s-unchecked .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); } /* ring >= 3:1 */
.v-red .dot, .v-yellow .dot, .v-green .dot { background: currentColor; }
.v-unchecked .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check { padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.check-head {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 28px; padding: 0;
  border: 0; background: none; text-align: start; font-weight: 500;
}
button.check-head { cursor: pointer; border-radius: var(--r-chip); }
button.check-head:hover .check-title { text-decoration: underline; text-underline-offset: 3px; }
button.check-head::after {
  content: ""; flex: none; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg); margin-inline-start: 4px;
}
button.check-head[aria-expanded="true"]::after { transform: rotate(135deg); }
.check-title { flex: 1; min-width: 0; }
.status { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.finding { margin: 2px 0 0; margin-inline-start: 16px; overflow-wrap: anywhere; }
.src { margin: 2px 0 0; margin-inline-start: 16px; font-size: 12px; color: var(--muted); }
.src bdi { unicode-bidi: isolate; }
.next { margin: 6px 0 0; margin-inline-start: 16px; padding: 6px 10px; background: var(--sheet); border-radius: var(--r-chip); }
.next-label { font-weight: 500; }
.s-unchecked .finding, .s-unchecked .check-title { color: var(--muted); }

.disclaimers { margin-top: 12px; }
.disclaimers .notice { margin-top: 0; }
.disclaimers .fine { font-size: 12px; color: var(--muted); margin-top: 8px; }
.result-meta { font-size: 11px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 16px 0; border-top: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.print-head { display: none; }

/* ---------------- sheet (previous analyses) ---------------- */
dialog.sheet {
  width: min(560px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 64px)); padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-panel); color: var(--ink); background: var(--paper);
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 120ms ease-out; }
dialog.sheet::backdrop { background: rgba(16, 24, 40, .32); }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px; padding-inline-start: 16px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 15px; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 8px 16px 16px; }
.history-status { font-size: 12px; color: var(--muted); padding: 4px 0 8px; }
.history-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history-list li { border-bottom: 1px solid var(--line); }
.history-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px;
  border: 0; background: none; text-align: start; cursor: pointer;
}
.history-row:hover, .history-row:focus-visible { background: var(--blue-soft); }
.history-row:focus-visible { outline-offset: -2px; }
.history-row[aria-busy="true"] { opacity: .6; }
.h-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.h-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-meta { font-size: 12px; color: var(--muted); }

/* ---------------- batches (M3) ---------------- */
/* the table needs room: the panel widens while it is open (the map keeps the rest) */
.app.batch-open { --panel-w: min(760px, 58vw); }

.batch-offer-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.batch-offer-row .btn { width: 100%; }
.batch-offer-row .hint:empty { display: none; }

.batch-back { margin: -8px 0 8px; }
.batch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; }
.batch-title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.batch-title:focus { outline: none; }
.batch-title:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.batch-progress { font-size: 13px; font-weight: 500; margin: 4px 0 8px; }
.batch-progress:empty { display: none; }
.batch-paused { margin-bottom: 8px; }
.batch-paused .notice { margin-top: 0; }
.batch-paused-row { margin-top: 8px; }

/* filter chips: toggle buttons; the pressed one is ink on the sheet */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip {
  min-height: 28px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); cursor: pointer; font-size: 12px; font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--line-strong); background: var(--sheet); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* the ranked table: scrolls inside its own box on a narrow screen, never the page */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.batch-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.batch-table th, .batch-table td {
  padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top;
}
.batch-table thead th { font-weight: 500; color: var(--muted); white-space: nowrap; background: var(--paper); }
.batch-table .tabular, .batch-table .c-rank, .batch-table .c-area, .batch-table .c-free_mw { white-space: nowrap; }
.batch-table td.c-rank { font-weight: 600; text-align: center; width: 1%; }
.batch-table th.c-rank { text-align: center; }
.batch-table tbody th { font-weight: 500; }
.batch-table .c-name { min-width: 96px; overflow-wrap: anywhere; }
.batch-table .c-barrier { min-width: 120px; overflow-wrap: anywhere; }
.batch-table tr.openable { cursor: pointer; }
.batch-table tr.openable:hover { background: var(--blue-soft); }
.batch-table tr:is(.k-failed, .k-unchecked, .k-pending, .k-running) :is(.c-name, .c-barrier) { color: var(--muted); }
.sort {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 2px; margin: 0 -2px;
  border: 0; background: none; color: inherit; font-weight: inherit; cursor: pointer; border-radius: var(--r-chip);
}
.sort:hover { color: var(--ink); }
th[aria-sort] .sort { color: var(--ink); font-weight: 600; }
.sort-ind { font-size: 9px; min-width: 9px; }
.row-open {
  border: 0; background: none; padding: 0; text-align: start; cursor: pointer; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere;
}
.row-open:hover { text-decoration-color: var(--ink); }
.vchip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; }
.vnote { font-size: 11px; color: var(--ink); white-space: nowrap; }
.batch-none { color: var(--muted); padding: 12px 0; }
.batch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.batch-view .result-meta { margin-top: 4px; }

/* a site open from the batch: the batch fills are context only, clicks pass through */
.leaflet-batch-pane.passive .leaflet-interactive { pointer-events: none; cursor: default; }

/* history: the two groups */
.history-group { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 4px; }
.history-group:first-of-type { margin-top: 4px; }
