/* Layout: GIS workbench. Indicator rail | map canvas | analysis panel; stacks to one column on phones. */
:root {
  --bg: #eef2f1;
  --surface: #ffffff;
  --surface-2: #f6f8f8;
  --ink: #15201f;
  --muted: #5a6866;
  --line: #d6dedc;
  --accent: #0d6b66;
  --accent-ink: #ffffff;
  --accent-soft: #dcefed;
  --select: #e0561a;
  --nodata: #c9d0cf;
  --map-bg: #e4e9e8;
  --shadow: 0 1px 2px rgb(20 40 38 / 0.08), 0 4px 14px rgb(20 40 38 / 0.08);
  --font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1413; --surface: #141d1c; --surface-2: #192423; --ink: #e3eae9; --muted: #93a3a0;
    --line: #26332f; --accent: #52b8b0; --accent-ink: #062120; --accent-soft: #173533;
    --select: #ff8a4c; --nodata: #3a4644; --map-bg: #1a2322;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 18px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1413; --surface: #141d1c; --surface-2: #192423; --ink: #e3eae9; --muted: #93a3a0;
  --line: #26332f; --accent: #52b8b0; --accent-ink: #062120; --accent-soft: #173533;
  --select: #ff8a4c; --nodata: #3a4644; --map-bg: #1a2322;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 6px 18px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.45 var(--font-ui);
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app {
  height: 100%;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 400px;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "top top top" "rail map panel";
}

/* ---------- top bar ---------- */
.topbar {
  grid-area: top; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding-block: 10px; padding-inline: 16px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark {
  width: 28px; height: 28px; flex: none; border-radius: 4px;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--surface) 48% 52%, transparent 52%),
    conic-gradient(from 90deg, var(--accent) 0 25%, color-mix(in srgb, var(--accent) 55%, var(--surface)) 0 50%,
      color-mix(in srgb, var(--accent) 30%, var(--surface)) 0 75%, color-mix(in srgb, var(--accent) 75%, var(--surface)) 0);
}
.brand-text { min-width: 0; }
.brand h1 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.sub { margin: 0; font-size: 12px; color: var(--muted); }
.badge {
  font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); border: 1px solid currentColor; border-radius: 3px; padding: 1px 6px;
}
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 10px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface-2); font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.local-note { font-size: 12px; color: var(--muted); }

/* ---------- rail ---------- */
.rail {
  grid-area: rail; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.rail-block { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.search {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2);
}
.ind-list { display: flex; flex-direction: column; gap: 2px; max-height: 42vh; overflow-y: auto; margin-inline: -6px; }
.ind-cat { font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 8px 6px 2px; }
.ind {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: baseline;
  text-align: left; border: 0; background: none; cursor: pointer; padding: 6px; border-radius: 5px;
}
.ind:hover { background: var(--surface-2); }
.ind[aria-selected="true"] { background: var(--accent-soft); }
.ind[aria-selected="true"] .ind-name { color: var(--accent); font-weight: 600; }
.ind-name { font-size: 13px; }
.ind-tbl { font: 11px var(--font-data); color: var(--muted); }
.ind-unit { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.empty { font-size: 12.5px; color: var(--muted); padding: 6px; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.field label, .label-like { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.field select { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); width: 100%; }
.field-row { display: flex; gap: 10px; }
.field output { font: 11.5px var(--font-data); color: var(--ink); }
input[type="range"] { accent-color: var(--accent); width: 100%; }
.field .check, .check { font-size: 12.5px; display: flex; justify-content: flex-start; gap: 6px; align-items: center; color: var(--ink); }
.check input { accent-color: var(--accent); }
.ramps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ramp {
  height: 22px; border-radius: 4px; border: 2px solid transparent; cursor: pointer; padding: 0;
  outline-offset: 1px;
}
.ramp[aria-checked="true"] { border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- map ---------- */
.mapwrap { grid-area: map; position: relative; overflow: hidden; background: var(--map-bg); min-height: 0; }
#map { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#map.dragging { cursor: grabbing; }
.map-tools { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.tool {
  width: 32px; height: 32px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); cursor: pointer; font-size: 17px; line-height: 1; color: var(--ink);
}
.tool:hover { background: var(--surface-2); }
.tool[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.net-status {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 4; max-width: min(460px, calc(100% - 120px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--select); border-left-width: 4px; border-radius: var(--r);
  box-shadow: var(--shadow); padding: 8px 12px; font-size: 13px;
}
.map-help {
  position: absolute; top: 12px; right: 52px; z-index: 3; width: min(300px, calc(100% - 64px)); max-height: calc(100% - 24px);
  overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 10px 12px; font-size: 12.5px;
}
.map-help .mh-head { display: flex; justify-content: space-between; align-items: center; }
.map-help h3 { margin: 0; font-size: 13px; font-weight: 600; }
.map-help .mh-close { border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; padding: 0 4px; }
.map-help dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 8px 0; align-items: baseline; }
.map-help dt { white-space: nowrap; }
.map-help dd { margin: 0; }
.map-help p { margin: 0; color: var(--muted); }
.map-help kbd {
  font-family: var(--font-data); font-size: 11px; padding: 1px 5px; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 4px; background: var(--bg);
}
.legend {
  position: absolute; left: 12px; bottom: 28px; max-width: min(300px, calc(100% - 24px));
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.legend h2 { margin: 0; font-size: 13px; font-weight: 600; }
.legend .meta { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.lg-row {
  display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center;
  font: 11.5px var(--font-data); font-variant-numeric: tabular-nums;
}
.lg-sw { width: 16px; height: 12px; border-radius: 2px; border: 1px solid rgb(0 0 0 / 0.12); }
.lg-n { color: var(--muted); }
.filterbar {
  position: absolute; top: 12px; left: 12px; right: 60px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none;
}
.fpill {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 3px 4px 3px 10px;
}
.fpill b { font-weight: 600; }
.fpill button { border: 0; background: var(--surface-2); border-radius: 999px; width: 20px; height: 20px; cursor: pointer; line-height: 1; }
.tip {
  position: absolute; pointer-events: none; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  border-radius: var(--r); padding: 7px 10px; font-size: 12px; max-width: 240px; z-index: 5;
}
.tip .t-name { font-weight: 600; }
.tip .t-val { font: 13px var(--font-data); }
.tip .t-moe { color: var(--muted); font: 11px var(--font-data); }
.attrib {
  position: absolute; right: 0; bottom: 0; font-size: 10.5px; color: var(--muted);
  background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 2px 6px; border-top-left-radius: 4px;
}

/* ---------- analysis panel ---------- */
.panel { grid-area: panel; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); padding-inline: 8px; gap: 2px; flex: none; overflow-x: auto; }
.tab {
  border: 0; background: none; padding: 10px 10px 9px; font-size: 13px; font-weight: 500; color: var(--muted);
  border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { padding: 14px 16px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.chart-controls { display: flex; gap: 10px; }
.chart { width: 100%; min-height: 260px; flex: 1; }
.chart svg { display: block; width: 100%; height: 100%; user-select: none; touch-action: none; }
.chart .axis text { fill: var(--muted); font: 10.5px var(--font-data); }
.chart .axis line, .chart .axis path { stroke: var(--line); }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 3; }
.chart .alabel { fill: var(--muted); font: 11px var(--font-ui); }
.chart .brush { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-dasharray: 3 2; }
.chart .fit { stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 5 4; fill: none; opacity: 0.7; }
.stat-line { margin: 0; font: 12px var(--font-data); color: var(--muted); font-variant-numeric: tabular-nums; }
.stat-line b { color: var(--ink); font-weight: 500; }

.prof-head h3 { margin: 0; font-size: 16px; }
.prof-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.prof-head code { font: 12px var(--font-data); }
.prof-head { position: relative; }
.clear-sel {
  position: absolute; top: 0; right: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--r); padding: 4px 8px; font-size: 12px; cursor: pointer;
}
.clear-sel:hover { background: var(--surface-2); }
.prof-cat { font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.prof-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.prof-row:hover .pr-label { color: var(--accent); }
.prof-row.on .pr-label { color: var(--accent); font-weight: 600; }
.pr-label { font-size: 13px; }
.pr-val { font: 13px var(--font-data); text-align: right; font-variant-numeric: tabular-nums; }
.pr-val small { color: var(--muted); font-size: 11px; }
.pr-strip { grid-column: 1 / -1; position: relative; height: 14px; }
.pr-strip .band { position: absolute; top: 6px; height: 3px; border-radius: 2px; background: var(--line); }
.pr-strip .mk { position: absolute; top: 2px; width: 2px; height: 11px; transform: translateX(-1px); }
.pr-strip .mk.region { background: var(--muted); }
.pr-strip .mk.county { background: var(--ink); opacity: 0.55; }
.pr-strip .mk.me { top: 1px; width: 9px; height: 9px; border-radius: 50%; transform: translateX(-4.5px); top: 3px; background: var(--select); }
.pr-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); }
.pr-key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sum-card { background: var(--surface-2); border-radius: var(--r); padding: 10px; }
.sum-card .n { font: 600 17px var(--font-data); font-variant-numeric: tabular-nums; }
.sum-card .l { font-size: 11.5px; color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); margin: 0; }
.src { font-size: 11.5px; color: var(--muted); margin: 0; }
.src a { color: var(--accent); }

.table-wrap { overflow: auto; flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: var(--r); }
.grid { border-collapse: collapse; width: 100%; font-size: 12px; }
.grid th, .grid td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.grid th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; cursor: pointer; z-index: 1; }
.grid th[aria-sort] { color: var(--accent); }
.grid td.num { font-family: var(--font-data); text-align: right; font-variant-numeric: tabular-nums; }
.grid tr { cursor: pointer; }
.grid tbody tr:hover { background: var(--surface-2); }
.grid tr.on { background: var(--accent-soft); }

/* ---------- small screens ---------- */
@media (max-width: 1180px) {
  .app { grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto minmax(420px, 1fr) auto;
         grid-template-areas: "top top" "rail map" "panel panel"; height: auto; min-height: 100%; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .chart { min-height: 300px; }
  .table-wrap { max-height: 420px; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 62vh auto;
         grid-template-areas: "top" "rail" "map" "panel"; }
  .rail { border-right: 0; }
  .ind-list { max-height: 220px; }
  .topbar, .rail-block, .tabpanel { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- navigation, menus, uploads (v2) ---------- */
.appnav { display: flex; gap: 2px; flex-wrap: wrap; }
.appnav a {
  font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none;
  padding: 6px 10px; border-radius: var(--r);
}
.appnav a:hover { color: var(--ink); background: var(--surface-2); }
.appnav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 6px; display: flex; flex-direction: column;
}
.menu-note { margin: 6px 8px 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); max-width: 260px; }
.menu-h { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }
.menu button { text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.menu button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.menu button:disabled { color: var(--muted); opacity: 0.6; cursor: not-allowed; }
.dropzone {
  display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1.5px dashed var(--line); border-radius: var(--r);
  background: var(--surface-2); cursor: pointer; font-size: 12px; color: var(--muted);
}
.dropzone strong { color: var(--accent); font-size: 13px; }
.dropzone.over, .dropzone:hover { border-color: var(--accent); }
.upload-msg { margin: 0; font-size: 12px; color: var(--ink); }
.upload-msg:empty { display: none; }
.upload-msg.err { color: var(--select); }
.ov-list { display: flex; flex-direction: column; gap: 4px; }
.ov-list:empty { display: none; }
.ov-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 12.5px; }
.ov-row .check { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.linkbtn { border: 0; background: none; color: var(--accent); font-size: 12px; cursor: pointer; padding: 0; }
.fine { margin: 0; font-size: 11.5px; color: var(--muted); }
.fpill.solo { padding-right: 10px; }
.pr-key i { background: var(--muted); }
.pr-key i.k-me { background: var(--select); }
.pr-key i.k-county { background: var(--ink); opacity: 0.55; border-radius: 0; width: 2px; }
.pr-key i.k-region { background: var(--muted); border-radius: 0; width: 2px; }
.pr-strip .band { left: 10%; width: 80%; }
.chart .dlabel { fill: var(--ink); font: 10.5px var(--font-ui); }
@media (max-width: 1180px) { .appnav { order: 3; width: 100%; } }

/* ---------- large catalogs: collapsible groups, data tray (v3) ---------- */
.ind-list { gap: 0; }
.ind-group { border-bottom: 1px solid var(--line); }
.ind-group > summary, .prof-group > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 8px 6px; font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.ind-group > summary::-webkit-details-marker, .prof-group > summary::-webkit-details-marker { display: none; }
.ind-group > summary::before, .prof-group > summary::before { content: "▸"; color: var(--muted); margin-right: 6px; transition: transform .15s; }
.ind-group[open] > summary::before, .prof-group[open] > summary::before { transform: rotate(90deg); }
.ind-group > summary span:first-child { flex: 1; }
.ind-n { font: 11px var(--font-data); color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 7px; }
.ind-count { font-size: 11.5px; color: var(--muted); padding: 6px; }
.ind-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px; }
.tray-add {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; padding: 0;
}
.tray-add:hover { border-color: var(--accent); color: var(--accent); }
.tray-add[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tray { display: flex; flex-wrap: wrap; gap: 6px; }
.tray-chip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 2px 4px 2px 10px;
}
.tray-chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; }
.prof-group { border-bottom: 0; }
.prof-group > summary.prof-cat { padding: 10px 0 4px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* ---------- Ask the data ---------- */
.ask-btn { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.ask-btn[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink); }
.ask-panel {
  position: fixed; z-index: 50; top: 64px; right: 16px; width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 80px); overflow-y: auto; padding: 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.ask-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ask-head h2 { margin: 0; font-size: 15px; }
.ask-close { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.ask-close:hover { color: var(--ink); }
.ask-form label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ask-form textarea {
  width: 100%; box-sizing: border-box; resize: vertical; font: inherit; font-size: 13.5px; padding: 8px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2, var(--surface)); color: var(--ink);
}
.ask-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.ask-count { font-size: 11.5px; color: var(--muted); font-family: var(--font-data); }
.ask-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ask-go:hover { color: var(--accent-ink); filter: brightness(1.08); }
.ask-go:disabled { opacity: 0.6; cursor: progress; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.ask-examples .chip { text-align: left; white-space: normal; line-height: 1.3; }
.ask-status { font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.ask-status.busy { color: var(--muted); }
.ask-status.err { color: var(--select); }
.ask-answer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.ask-answer p { margin: 0 0 8px; }
.ask-tag { display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ask-unverified { background: color-mix(in srgb, var(--select) 25%, transparent); color: inherit; border-bottom: 2px solid var(--select); }
.ask-warn { font-size: 12.5px; color: var(--select); }
.ask-sources h3 { margin: 10px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ask-sources ul { margin: 0 0 10px; padding-left: 18px; font-size: 13px; }
.ask-sources span { color: var(--muted); }
.ask-note { margin: 12px 0 0; font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .ask-panel { top: auto; bottom: 0; right: 0; left: 0; width: auto; max-height: 75dvh; border-radius: var(--r) var(--r) 0 0; } }
@media print { .ask-btn, .ask-panel, .map-tools, .map-help { display: none !important; } }
