/* ---------------------------------------------------------------------
   US air traffic density — chrome styled after an aeronautical chart legend
   panel. Light theme is sectional paper: buff ground, black ink, the FAA's
   own magenta and blue. Dark theme is a night cockpit panel: the same two
   inks raised for a dark ground.

   Every colour is declared as a token on bare :root first, so the un-stamped
   (system-theme) document renders correctly; the media block and the
   [data-theme] block each redefine only tokens.
   --------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --bg:            #e9e2d3;
  --panel:         #f7f3ea;
  --panel-2:       #efe9dc;
  --panel-3:       #e4dccb;
  --rule:          #d3cab4;
  --rule-soft:     #e0d8c6;
  --ink:           #17150f;
  --ink-2:         #4e4a40;
  --ink-3:         #857f70;
  --accent:        #a4235a;
  --accent-soft:   rgba(164, 35, 90, 0.12);
  --accent-2:      #1c5c99;
  --focus:         #a4235a;
  --shadow:        0 1px 2px rgba(23, 21, 15, 0.07), 0 8px 24px rgba(23, 21, 15, 0.09);

  --map-water:         #c7d6de;
  --map-land:          #f4efe3;
  --map-land2:         #ece5d6;
  --map-border:        #c1b7a0;
  --map-border-strong: #a3977c;
  --map-coast:         #877c66;
  --map-ink:           #17150f;
  --map-ink-2:         #3e3a32;
  --map-ink-3:         #6b6454;
  --map-panel:         #f7f3ea;
  --map-accent:        #a4235a;
  --map-accent-2:      #1c5c99;
  --map-hex-edge:      rgba(23, 21, 15, 0.20);
  --map-halo:          rgba(247, 243, 234, 0.88);
  --map-runway:        #2b2721;

  --font-ui:      "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label:   "Barlow Condensed", "Arial Narrow", ui-sans-serif, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --panel-w: 344px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:          #07090c;
    --panel:       #10151b;
    --panel-2:     #161d25;
    --panel-3:     #1d2630;
    --rule:        #26313d;
    --rule-soft:   #1c242e;
    --ink:         #e9f0f6;
    --ink-2:       #a5b4c2;
    --ink-3:       #71808e;
    --accent:      #f0568c;
    --accent-soft: rgba(240, 86, 140, 0.16);
    --accent-2:    #4fa6e8;
    --focus:       #f0568c;
    --shadow:      0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.55);

    --map-water:         #05080b;
    --map-land:          #151c25;
    --map-land2:         #1b232d;
    --map-border:        #2a3542;
    --map-border-strong: #3b4959;
    --map-coast:         #51637a;
    --map-ink:           #e9f0f6;
    --map-ink-2:         #a5b4c2;
    --map-ink-3:         #7d8c9b;
    --map-panel:         #10151b;
    --map-accent:        #f0568c;
    --map-accent-2:      #4fa6e8;
    --map-hex-edge:      rgba(233, 240, 246, 0.18);
    --map-halo:          rgba(5, 8, 11, 0.82);
    --map-runway:        #cfe0ef;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #07090c;
  --panel:       #10151b;
  --panel-2:     #161d25;
  --panel-3:     #1d2630;
  --rule:        #26313d;
  --rule-soft:   #1c242e;
  --ink:         #e9f0f6;
  --ink-2:       #a5b4c2;
  --ink-3:       #71808e;
  --accent:      #f0568c;
  --accent-soft: rgba(240, 86, 140, 0.16);
  --accent-2:    #4fa6e8;
  --focus:       #f0568c;
  --shadow:      0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.55);

  --map-water:         #05080b;
  --map-land:          #151c25;
  --map-land2:         #1b232d;
  --map-border:        #2a3542;
  --map-border-strong: #3b4959;
  --map-coast:         #51637a;
  --map-ink:           #e9f0f6;
  --map-ink-2:         #a5b4c2;
  --map-ink-3:         #7d8c9b;
  --map-panel:         #10151b;
  --map-accent:        #f0568c;
  --map-accent-2:      #4fa6e8;
  --map-hex-edge:      rgba(233, 240, 246, 0.18);
  --map-halo:          rgba(5, 8, 11, 0.82);
  --map-runway:        #cfe0ef;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- shell ---------------------------------------------------------- */

.app {
  display: grid;
  grid-template-columns: var(--panel-w) 1fr;
  height: 100dvh;
}

.map-wrap {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  background: var(--map-water);
}

#map {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
#map.is-dragging { cursor: grabbing; }

/* --- panel ---------------------------------------------------------- */

.panel {
  grid-column: 1;
  grid-row: 1;
  background: var(--panel);
  border-right: 1px solid var(--rule);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.panel__head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.panel__title {
  margin: 0;
  font-family: var(--font-label);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.panel__sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  max-width: 42ch;
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge svg { flex: none; }

/* --- sections ------------------------------------------------------- */

.section {
  padding: 15px 18px 17px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.section__title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}
.section__title .hint {
  margin-left: auto;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

.section__note {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  max-width: 44ch;
}

/* --- readout -------------------------------------------------------- */

.readout {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.readout__value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.readout__unit {
  font-size: 12px;
  color: var(--ink-2);
}
.readout__share {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* --- filter rows ---------------------------------------------------- */

.rows { display: flex; flex-direction: column; gap: 1px; }

.row {
  display: grid;
  grid-template-columns: 15px 1fr 54px;
  align-items: center;
  gap: 9px;
  padding: 4px 5px 4px 4px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.row:hover { background: var(--panel-2); }
.row.is-off .row__label,
.row.is-off .row__value { color: var(--ink-3); }
.row.is-off .row__bar-fill { opacity: 0.3; }

.tick {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--ink-3);
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex: none;
}
.row:not(.is-off) .tick {
  background: var(--accent);
  border-color: var(--accent);
}
.tick svg { display: none; }
.row:not(.is-off) .tick svg { display: block; }

.row__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.row__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 0 1px var(--panel);
}

.row__bar {
  height: 4px;
  background: var(--panel-3);
  border-radius: 2px;
  overflow: hidden;
}
.row__bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--ink-2);
  min-width: 2px;
}

.row__value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  text-align: right;
}

.row__solo {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 1px 5px;
  cursor: pointer;
  opacity: 0;
}
.row:hover .row__solo, .row__solo:focus-visible { opacity: 1; }
.row__solo:hover { color: var(--accent); border-color: var(--accent); }

.row-actions {
  display: flex;
  gap: 12px;
  padding-top: 2px;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
}
.linkish:hover { color: var(--accent); }

/* --- segmented control ---------------------------------------------- */

.seg {
  display: flex;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--panel-2);
}
.seg button {
  flex: 1;
  padding: 6px 4px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: none;
  color: var(--ink-2);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--panel-3); color: var(--ink); }
.seg button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

/* --- layers --------------------------------------------------------- */

.layer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 2px;
  cursor: pointer;
  font-size: 12.5px;
}
.layer input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: var(--panel-3);
  border: 1px solid var(--rule);
  position: relative;
  flex: none;
  transition: background 0.12s ease;
}
.switch::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 10px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: transform 0.12s ease, background 0.12s ease;
}
.layer input:checked + .switch { background: var(--accent); border-color: var(--accent); }
.layer input:checked + .switch::after { transform: translateX(12px); background: #fff; }
.layer input:focus-visible + .switch { outline: 2px solid var(--focus); outline-offset: 2px; }
.layer__sub { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }

select, input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12.5px;
}
input[type="text"] { font-family: var(--font-mono); font-size: 11.5px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field__label {
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.field__label span { font-family: var(--font-mono); letter-spacing: 0; text-transform: none; }

.notice {
  border-left: 2px solid var(--accent);
  padding: 7px 0 7px 10px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.notice code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--panel-3);
  padding: 1px 4px;
  border-radius: 2px;
}

/* --- small multiples ------------------------------------------------ */

.mults {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mult {
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--map-water);
  cursor: pointer;
  padding: 0;
  display: block;
  position: relative;
}
.mult canvas { display: block; width: 100%; height: auto; }
.mult__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3px 5px;
  background: linear-gradient(to top, var(--map-halo), transparent);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--map-ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
}
.mult__cap em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0;
  color: var(--map-ink-2);
}
.mult:hover { border-color: var(--accent); }
.mult.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* --- inspector ------------------------------------------------------ */

.inspect { display: flex; flex-direction: column; gap: 10px; }
.inspect__coords {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row {
  display: grid;
  grid-template-columns: 92px 1fr 46px;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}
.bar-row span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { height: 7px; background: var(--panel-3); border-radius: 3.5px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 3.5px; min-width: 2px; }
.bar-row em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.panel__foot {
  margin-top: auto;
  padding: 14px 18px 20px;
  border-top: 1px solid var(--rule);
  font-size: 11px;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.panel__foot a { color: var(--ink-2); }

/* --- map chrome ----------------------------------------------------- */

.chrome {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.chrome--tl { top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.chrome--tr { top: 12px; right: 12px; display: flex; gap: 6px; align-items: flex-start; }
.chrome--bl { left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.chrome--br { right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.card {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.chip {
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink-2);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.zoombox { display: flex; flex-direction: column; overflow: hidden; }
.zoombox button {
  width: 32px; height: 30px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: none;
  color: var(--ink-2);
  font-size: 15px;
  cursor: pointer;
}
.zoombox button:last-child { border-bottom: 0; }
.zoombox button:hover { background: var(--panel-2); color: var(--ink); }

.legend { padding: 10px 12px 11px; min-width: 236px; max-width: 300px; }
.legend__title {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.legend__toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; margin: 0; padding: 0;
  background: none; border: 0; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
}
.legend__toggle .legend__title { margin: 0; }
.legend__toggle:hover .legend__title,
.legend__toggle:hover .legend__chev { color: var(--ink); }
.legend__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.legend__chev { flex: none; font-size: 11px; color: var(--ink-3); transition: transform .15s; }
.legend__body { margin-top: 7px; }
.legend.is-collapsed { min-width: 0; padding: 6px 10px; }
.legend.is-collapsed .legend__body { display: none; }
.legend.is-collapsed .legend__chev { transform: rotate(-90deg); }
.legend__strip { display: flex; height: 11px; border-radius: 2px; overflow: hidden; }
.legend__strip i { flex: 1; display: block; }
.legend__ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.legend__keys { display: flex; flex-direction: column; gap: 3px; }
.legend__key {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--ink-2);
}
.legend__key i { width: 11px; height: 11px; border-radius: 2px; flex: none; }
.legend__foot {
  margin-top: 7px; padding-top: 7px;
  border-top: 1px solid var(--rule-soft);
  font-size: 10.5px; color: var(--ink-3);
}

.scalebar { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.scalebar__bar {
  height: 6px;
  border: 1px solid var(--ink-3);
  border-top: 0;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.scalebar__txt {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-2);
  text-shadow: 0 0 3px var(--map-halo), 0 0 3px var(--map-halo);
}

.coords {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 3px var(--map-halo), 0 0 3px var(--map-halo);
}

.tooltip {
  position: absolute;
  z-index: 5;
  min-width: 188px;
  max-width: 244px;
  padding: 9px 11px 10px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-11px);
  transition: opacity 0.08s ease;
}
.tooltip.is-on { opacity: 1; }
.tooltip__head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.tooltip__big {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tooltip__unit { font-size: 11px; color: var(--ink-2); }
.tooltip__list { margin: 7px 0 0; padding: 7px 0 0; border-top: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 2px; }
.tooltip__item { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); }
.tooltip__item i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tooltip__item b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; color: var(--ink); }

.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 9;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.loading[hidden] { display: none !important; }

.panel-toggle { display: none; }

/* --- narrow --------------------------------------------------------- */

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .map-wrap { grid-column: 1; grid-row: 1; }
  .panel {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
    border-top: 1px solid var(--rule);
    max-height: 52dvh;
  }
  .panel__head { padding: 14px 16px 12px; }
  .panel__title { font-size: 23px; }
  .section { padding: 13px 16px 15px; }
  .panel__foot { padding: 12px 16px 18px; }
  .chrome--bl { bottom: 10px; left: 10px; }
  .legend { min-width: 0; max-width: min(64vw, 236px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --- search --------------------------------------------------------- */

.search { position: relative; width: 208px; }
.search input {
  width: 100%;
  padding: 6px 9px;
  background: none;
  border: 0;
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12.5px;
}
.search input::placeholder { color: var(--ink-3); }
.search__results {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 268px;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.search__results[hidden] { display: none !important; }
.hit {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 6px 9px;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--rule-soft);
}
.hit:last-child { border-bottom: 0; }
.hit:hover, .hit.is-on { background: var(--panel-2); }
.hit b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
}
.hit span {
  font-size: 11.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hit em {
  grid-column: 2;
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
}

/* --- resolution chip ------------------------------------------------- */

.res {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 3px 7px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.res.is-loading { color: var(--accent); border-color: var(--accent); }
