/* Lex Mentis — 311 Map. Fonts served from this site. SIL Open Font License. */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("/fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Full-bleed map with floating glass instruments; the timeline dock is the hero. Single committed dark look, as on Attorney Check. */
:root {
  color-scheme: dark;
  --ink: #07080a;
  --ink-2: #0d0f13;
  --glass: rgba(12, 13, 17, 0.66);
  --glass-hi: rgba(18, 19, 24, 0.84);
  --line: rgba(236, 232, 222, 0.10);
  --line-hi: rgba(200, 164, 93, 0.45);
  --text: #ece8de;
  --muted: #9a968c;
  --faint: #6b6861;
  --brass: #c8a45d;
  --brass-soft: rgba(200, 164, 93, 0.16);
  --brass-glow: rgba(200, 164, 93, 0.55);
  --red: #f0524f;
  --bar: rgba(236, 232, 222, 0.17);
  --bar-hover: rgba(236, 232, 222, 0.32);
  --bar-on: rgba(200, 164, 93, 0.62);
  --bar-sel: #e3c27e;
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --blur: blur(22px) saturate(140%);
  --dock-h: 200px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--text); overflow: hidden; }
body { font: 400 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

.app { position: fixed; inset: 0; display: flex; flex-direction: column; }

/* ---------- top bar (same as Attorney Check) */
.bar {
  position: relative; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 13px) max(16px, env(safe-area-inset-right, 0px)) 13px max(16px, env(safe-area-inset-left, 0px));
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.wordmark { text-decoration: none; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; min-width: 0; }
.wordmark b { font: 600 20px/1 var(--f-display); letter-spacing: 0.02em; }
.wordmark span { font: 500 11px/1 var(--f-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.tm { font-size: .45em; vertical-align: super; margin-left: 1px; font-family: var(--f-body); font-weight: 500; letter-spacing: 0; }
.bar nav { display: flex; gap: 22px; font-size: 14px; align-items: center; }
.bar nav a, .navbtn { text-decoration: none; color: var(--muted); transition: color .2s; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.bar nav a:hover, .navbtn:hover, .navbtn[aria-expanded="true"] { color: var(--text); }

/* ---------- viewer */
.viewer { position: relative; flex: 1; min-height: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: #0a0b0d; }
.leaflet-container { font-family: var(--f-body); background: #0a0b0d; }
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) grayscale(.55) sepia(.32) brightness(.78) contrast(1.05); }
.leaflet-overlay-pane { transition: opacity .35s var(--ease); }
.viewer.loading .leaflet-overlay-pane { opacity: .38; }

.progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 700; overflow: hidden; pointer-events: none; }
.progress i { position: absolute; top: 0; bottom: 0; width: 30%; left: -30%; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: 0; }
.viewer.loading .progress i { opacity: 1; animation: sweep 1.1s var(--ease) infinite; }
@keyframes sweep { to { left: 100%; } }

/* glass */
.seg, .tbtn, .status, .banner, .place, .legend, .dock, .sheet, .leaflet-bar a {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line);
}

/* ---------- top instruments */
.top {
  position: absolute; z-index: 800; top: 12px; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  display: flex; gap: 10px; align-items: center; justify-content: space-between; pointer-events: none;
}
.top > * { pointer-events: auto; }
.seg {
  position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; min-width: 0; flex: 0 1 auto;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer;
  font: 600 12.5px/1 var(--f-body); letter-spacing: .08em; padding: 10px 14px; border-radius: 999px; white-space: nowrap;
  transition: color .3s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg .ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--brass);
  box-shadow: 0 0 22px rgba(200, 164, 93, .35); transition: transform .5s var(--ease), width .5s var(--ease);
}
.tbtn {
  flex: none; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 15px; cursor: pointer;
  font: 600 12.5px/1 var(--f-body); letter-spacing: .08em; color: var(--text); transition: border-color .25s, background .25s;
}
.tbtn:hover, .tbtn[aria-expanded="true"] { border-color: var(--line-hi); background: var(--glass-hi); }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--brass); color: var(--ink); font: 700 11px/18px var(--f-body); text-align: center; padding: 0 5px; letter-spacing: 0; }

.status {
  position: absolute; z-index: 750; top: 64px; left: max(12px, env(safe-area-inset-left, 0px)); max-width: calc(100% - 24px);
  display: flex; align-items: center; gap: 9px; border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--muted);
}
.status b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: #5cc08e; box-shadow: 0 0 10px #5cc08e; flex: none; }
.viewer.loading .status .dot { background: var(--brass); box-shadow: 0 0 10px var(--brass); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.banner {
  position: absolute; z-index: 750; top: 108px; left: max(12px, env(safe-area-inset-left, 0px)); max-width: min(560px, calc(100% - 24px));
  border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--muted); border-color: var(--line-hi);
}
.banner b { color: var(--text); font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brass); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- sheets */
.sheet { position: absolute; z-index: 850; border-radius: 16px; padding: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.filters { top: 64px; right: max(12px, env(safe-area-inset-right, 0px)); width: min(340px, calc(100% - 24px)); display: grid; gap: 14px; background: var(--glass-hi); }
.field { display: grid; gap: 6px; }
.field > span { font: 500 11px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
select, input[type=text] {
  width: 100%; font: 400 15px/1.2 var(--f-body); color: var(--text); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-width: 0;
}
select option { background: var(--ink-2); }
select:focus, input:focus { outline: none; border-color: var(--line-hi); }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; }
.btn { font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; padding: 12px 16px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: none; color: var(--muted); }
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn.primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn.primary:hover { filter: brightness(1.08); }

.about, .nethelp {
  top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100% - 24px)); max-height: calc(100% - 24px);
  overflow: auto; background: var(--glass-hi); display: grid; gap: 16px; animation: fade .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.about .x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.about .x:hover { color: var(--text); }
.prose { font-size: 15px; color: var(--muted); max-width: 64ch; }
.prose h2, .nethelp h2 { font: 400 28px/1.15 var(--f-display); color: var(--text); margin: 0 0 10px; }
.prose p { margin: 0 0 12px; }
.prose a { color: var(--brass); }
.fine { font-size: 12.5px; color: var(--faint); }
.nethelp p { margin: 0; color: var(--muted); }
.nethelp b { color: var(--text); }
.nethelp .btn { justify-self: start; }

/* ---------- legend */
.legend {
  position: absolute; z-index: 700; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(var(--dock-h) + 22px);
  border-radius: 12px; padding: 8px 12px 10px; font-size: 12.5px; color: var(--muted); transition: bottom .45s var(--ease);
}
.legend-toggle { background: none; border: 0; padding: 2px 0 6px; cursor: pointer; font: 500 10.5px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.legend i { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.legend.closed ul { display: none; }
.legend.closed .legend-toggle { padding-bottom: 2px; }

/* ---------- the dock */
.dock {
  position: absolute; z-index: 800; left: 50%; transform: translateX(-50%);
  bottom: max(14px, calc(env(safe-area-inset-bottom, 0px) + 8px)); width: min(1080px, calc(100% - 24px));
  border-radius: 20px; padding: 18px 20px 12px; display: grid; gap: 14px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.read { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.read-l { min-width: 0; }
.read .k { font: 500 11px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.read .d { font: 400 24px/1.15 var(--f-display); margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.read-r { display: flex; align-items: center; gap: 18px; }
.read .v { font: 300 38px/1 var(--f-body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.read .v small { font: 400 13px/1 var(--f-body); color: var(--muted); margin-left: 7px; letter-spacing: .02em; }
.read .v .wait { font-size: 15px; color: var(--faint); font-weight: 400; letter-spacing: .04em; }
.ctl { display: flex; gap: 8px; align-items: center; }
.cbtn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); transition: background .2s, border-color .2s, transform .15s;
}
.cbtn:hover { border-color: var(--line-hi); background: rgba(255, 255, 255, .09); }
.cbtn:active { transform: scale(.94); }
.cbtn.play { width: 46px; height: 46px; background: var(--brass); color: var(--ink); border-color: var(--brass); box-shadow: 0 0 24px rgba(200, 164, 93, .35); }
.cbtn.play:hover { filter: brightness(1.08); background: var(--brass); }
.cbtn .i-pause { display: none; }
.cbtn.playing .i-pause { display: inline; }
.cbtn.playing .i-play { display: none; }

.trow { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; }
.tside { display: grid; gap: 8px; justify-items: start; padding-top: 4px; }
.tlabel { font: 500 10.5px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.allbtn {
  border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 999px; cursor: pointer;
  font: 600 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; transition: all .25s var(--ease);
}
.allbtn:hover { color: var(--text); border-color: var(--muted); }
.allbtn[aria-pressed="true"] { background: var(--brass-soft); border-color: var(--line-hi); color: var(--brass); }

.scrub { position: relative; min-width: 0; }
.track { position: relative; height: 56px; cursor: grab; touch-action: none; border-radius: 8px; outline: none; user-select: none; -webkit-user-select: none; }
.scrub.dragging .track { cursor: grabbing; }
.track:focus-visible { box-shadow: 0 0 0 2px var(--brass); }
.track canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.knob { position: absolute; top: -6px; bottom: -3px; left: 0; width: 0; pointer-events: none; will-change: transform; }
.knob.anim { transition: transform .38s var(--ease); }
.knob::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; border-radius: 2px; background: var(--bar-sel); box-shadow: 0 0 14px var(--brass-glow); }
.knob::after {
  content: ""; position: absolute; top: -8px; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bar-sel);
  box-shadow: 0 0 0 3px rgba(7, 8, 10, .92), 0 0 24px var(--brass-glow); transition: transform .25s var(--ease);
}
.scrub.dragging .knob::after { transform: scale(1.28); }
.tip {
  position: absolute; bottom: calc(100% + 18px); left: 0; white-space: nowrap; pointer-events: none;
  background: var(--text); color: var(--ink); font: 600 12.5px/1 var(--f-body); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  padding: 8px 11px; border-radius: 9px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(5px); transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.scrub.dragging .tip { opacity: 1; transform: none; }
.ticks { position: relative; height: 18px; margin-top: 7px; }
.ticks span { position: absolute; top: 0; transform: translateX(-50%); font: 400 10.5px/1 var(--f-mono); color: var(--faint); white-space: nowrap; letter-spacing: .02em; }
.ticks span.first { transform: none; }
.ticks span.last { transform: translateX(-100%); }

.hourwrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease); margin-top: -14px; }
.hourwrap > div { overflow: hidden; min-height: 0; }
.hourwrap.on { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
.hourwrap.on > div { overflow: visible; }
.hourwrap .trow { padding-top: 12px; border-top: 1px solid var(--line); }
.hourwrap .track { height: 44px; }

/* ---------- map chrome */
.leaflet-top { top: 60px; }
.leaflet-right .leaflet-control { margin-right: max(12px, env(safe-area-inset-right, 0px)); }
.leaflet-bottom { bottom: calc(var(--dock-h) + 22px); transition: bottom .45s var(--ease); }
.leaflet-bar { border: 0 !important; box-shadow: none !important; display: grid; gap: 6px; }
.leaflet-bar a, .leaflet-bar a:hover {
  width: 38px !important; height: 38px !important; line-height: 36px !important; border-radius: 12px !important;
  color: var(--text) !important; font: 300 20px/36px var(--f-body) !important; border: 1px solid var(--line) !important;
}
.leaflet-bar a:hover { border-color: var(--line-hi) !important; background: var(--glass-hi) !important; }
.leaflet-control-attribution { background: rgba(7, 8, 10, .6) !important; color: var(--faint) !important; font-size: 10.5px; border-radius: 6px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-popup-content-wrapper {
  background: rgba(13, 15, 19, .95); color: var(--text); border: 1px solid var(--line-hi); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.leaflet-popup-tip { background: rgba(13, 15, 19, .95); border: 1px solid var(--line-hi); box-shadow: none; }
.leaflet-popup-content { margin: 16px 18px; font-size: 13.5px; line-height: 1.5; min-width: 230px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); font-size: 20px; top: 6px; right: 6px; }
.pp-k { font: 500 10.5px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.pp-k i { width: 7px; height: 7px; border-radius: 50%; }
.pp-t { font: 400 20px/1.15 var(--f-display); margin: 8px 0 4px; }
.pp-s { color: var(--muted); margin-bottom: 10px; }
.pp dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
.pp dt { color: var(--faint); }
.pp dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.pp .res { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.pp .wait { color: var(--faint); font-size: 12px; margin-top: 8px; }

/* ---------- phones */
@media (max-width: 720px) {
  .bar { padding-block: calc(env(safe-area-inset-top, 0px) + 10px) 10px; }
  .wordmark b { font-size: 18px; }
  .wordmark span { font-size: 10px; letter-spacing: .14em; }
  .bar nav { gap: 14px; }
  .bar nav a { display: none; }
  .tbtn span { display: none; }
  .tbtn { padding: 10px 12px; }
  .seg button { padding: 10px 11px; font-size: 12px; }
  .status { top: 60px; font-size: 12px; padding: 7px 12px; }
  .banner { top: 100px; font-size: 12px; }
  .dock { width: calc(100% - 16px); bottom: max(8px, calc(env(safe-area-inset-bottom, 0px) + 4px)); padding: 14px 14px 8px; border-radius: 18px; gap: 10px; }
  .read .d { font-size: 19px; }
  .read .v { font-size: 28px; }
  .read .v small { display: none; }
  .read-r { gap: 12px; width: 100%; justify-content: space-between; }
  .cbtn { width: 38px; height: 38px; }
  .cbtn.play { width: 42px; height: 42px; }
  .trow { grid-template-columns: 1fr; gap: 6px; }
  .tside { grid-auto-flow: column; justify-content: space-between; align-items: center; justify-items: stretch; padding-top: 0; width: 100%; }
  .tside .allbtn { justify-self: end; }
  .track { height: 46px; }
  .hourwrap .track { height: 38px; }
  .legend { bottom: calc(var(--dock-h) + 14px); padding: 6px 10px; }
  .leaflet-bottom { bottom: calc(var(--dock-h) + 14px); }
  .leaflet-control-zoom { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- freshness, search, place chip, interactive key */
.fresh { flex: 1; text-align: right; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fresh b { color: var(--muted); font-weight: 500; }
.top-l { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 0 1 auto; }
.pills { position: absolute; z-index: 750; top: 64px; left: max(12px, env(safe-area-inset-left, 0px)); max-width: calc(100% - 24px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.pills > * { pointer-events: auto; }
.pills .status, .pills .banner { position: static; max-width: 100%; }
.place { display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 5px 5px 5px 14px; font-size: 13px; color: var(--text); border-color: var(--line-hi); max-width: 100%; }
.place span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place b { color: var(--brass); font-weight: 600; }
.place button { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .07); color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; }
.place button:hover { color: var(--text); background: rgba(255, 255, 255, .14); }
.search { top: 64px; left: max(12px, env(safe-area-inset-left, 0px)); width: min(440px, calc(100% - 24px)); display: grid; gap: 16px; background: var(--glass-hi); }
.search .field label span { font: 500 11px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.sugg { list-style: none; margin: 2px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7, 8, 10, .55); max-height: 240px; overflow: auto; }
.sugg button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.sugg button small { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.sugg li[aria-selected="true"] button, .sugg button:hover { background: var(--brass-soft); }
.sugg .msg { padding: 9px 10px; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 8px 12px; cursor: pointer;
  font: 600 12.5px/1 var(--f-body); letter-spacing: .03em; transition: all .25s var(--ease); }
.chips button:hover { color: var(--text); border-color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.mi-custom { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px 0 4px; color: var(--muted); font-size: 12.5px; }
.mi-custom input { width: 62px; border: 0; background: none; padding: 7px 6px; font-size: 13px; }
.mi-custom.on { border-color: var(--brass); color: var(--brass); }
.sheet-note { margin: 0; font-size: 12px; color: var(--faint); }
.legend-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.legend-all { background: none; border: 0; padding: 2px 0 6px; cursor: pointer; font: 600 11px/1 var(--f-body); color: var(--brass); }
.legend ul { gap: 1px; }
.lg { display: flex; align-items: center; gap: 8px; width: calc(100% + 8px); margin: 0 -4px; padding: 4px; border: 0; border-radius: 6px; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: opacity .25s var(--ease), background .2s; }
.lg:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lg .nm { flex: 1; white-space: nowrap; }
.lg .ct { font: 400 11px/1 var(--f-mono); color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 10px; }
.legend.filtering .lg[aria-pressed="false"] { opacity: .38; }
.legend.filtering .lg[aria-pressed="true"] { color: var(--text); }
.legend-hint { margin: 6px 0 0; font-size: 11px; color: var(--faint); }
.legend.closed .legend-hint, .legend.closed .legend-all { display: none; }
@media (max-width: 720px) {
  .fresh { display: none; }
  .top-l { gap: 6px; }
  #searchBtn span { display: none; }
  .pills { top: 60px; }
  .search { top: 60px; width: calc(100% - 16px); left: 8px; }
}
