/* ─────────────────────────────────────────────────────────────────────────
   Moradia Design System — chassi compartilhado (concept sprint v1)
   Nenhum valor de cor aqui. Todo tom deriva dos 6 tokens definidos
   no :root de cada arquivo-conceito, via color-mix(in oklab, …).
   Camadas: 01 Foundations · 02 Primitives · 03 Data · 04 Geo
   ───────────────────────────────────────────────────────────────────────── */

/* ═══ 01 FOUNDATIONS ═══════════════════════════════════════════════════ */
:root {
  /* par fg/bg do acento — o acento vivo serve de preenchimento;
     o texto pequeno usa a variante escura para não cair abaixo de 4.5:1 */
  --on-accent:   var(--bg);
  --accent-text: var(--accent);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 42%, transparent);
  --fg-soft:     color-mix(in oklab, var(--fg) 6%, transparent);
  --fg-line:     color-mix(in oklab, var(--fg) 14%, transparent);

  --gap-xs: 6px; --gap-sm: 10px; --gap-md: 18px; --gap-lg: 28px;
  --gap-xl: 48px; --gap-2xl: 88px;
  --container: 1180px; --gutter: 28px;

  --fs-h1: clamp(38px, 4.4vw, 60px);
  --fs-h2: clamp(26px, 2.8vw, 38px);
  --fs-h3: 19px;
  --fs-lead: 18px;
  --fs-body: 15px;
  --fs-meta: 12px;

  /* rampa quantitativa — 5 degraus derivados do único accent */
  --q1: color-mix(in oklab, var(--accent) 10%, var(--map-land));
  --q2: color-mix(in oklab, var(--accent) 26%, var(--map-land));
  --q3: color-mix(in oklab, var(--accent) 46%, var(--map-land));
  --q4: color-mix(in oklab, var(--accent) 70%, var(--map-land));
  --q5: color-mix(in oklab, var(--accent) 96%, var(--map-land));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 7vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-sm); }
.row-wrap { display: flex; align-items: center; gap: var(--gap-sm); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
}

/* tipografia */
.h1, h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.05; letter-spacing: var(--track-display, -0.02em); margin: 0; font-weight: var(--weight-display, 600); }
.h2, h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.12; letter-spacing: var(--track-display, -0.015em); margin: 0; font-weight: var(--weight-display, 600); }
.h3, h3 { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.005em; margin: 0; font-weight: 600; }
.h4 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 var(--gap-md);
}
.eyebrow-quiet { color: var(--muted); }
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.02em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--fg); margin: 0; }
.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;
}

/* ═══ 02 PRIMITIVES ════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .14s ease, border-color .14s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 84%, black); border-color: color-mix(in oklab, var(--accent) 84%, black); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { background: var(--fg-soft); border-color: var(--fg-line); color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 10px; }
.btn-ghost:hover { background: var(--fg-soft); color: var(--fg); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn-arrow::after { content: '→'; transition: transform .15s ease; }
.btn-arrow:hover::after { transform: translateX(2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--card-pad, 22px);
}
.card-flat { background: transparent; border: 0; padding: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); border-radius: 0; padding: 20px 0 0; }
.card-link { display: block; transition: border-color .14s ease, background .14s ease; }
.card-link:hover { border-color: var(--fg-line); background: color-mix(in oklab, var(--surface) 94%, var(--fg)); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 78%, var(--fg));
  border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.tag {
  display: inline-flex; align-items: center; padding: 3px 9px;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; font-size: 12px; white-space: nowrap;
}
.badge {
  display: inline-flex; align-items: center; padding: 2px 7px;
  border: 1px solid var(--fg-line); border-radius: 4px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; color: var(--muted); }
.input, .select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); color: var(--fg); font-size: 14px;
}
.input:focus, .select:focus { outline: 2px solid var(--accent-soft); outline-offset: 0; border-color: var(--accent); }

/* seletor de peso — 3 estados, usado no painel de contexto */
.weight { display: flex; flex-direction: column; gap: 7px; padding: 10px 0; border-top: 1px solid var(--border); }
.weight:first-of-type { border-top: 0; }
.weight-name { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.weight-opts { display: flex; width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.weight-opts button {
  flex: 1 1 0; min-width: 0; min-height: 32px; padding: 5px 4px; border: 0; background: var(--surface);
  color: var(--muted); font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .06em; text-transform: uppercase;
  border-left: 1px solid var(--border); transition: background .12s ease, color .12s ease;
}
.weight-opts button:first-child { border-left: 0; }
.weight-opts button:hover { background: var(--fg-soft); color: var(--fg); }
.weight-opts button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.weight-opts button[aria-pressed="true"]:hover { background: color-mix(in oklab, var(--accent) 84%, black); color: var(--on-accent); }

.ds-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ds-table th, .ds-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.ds-table th {
  color: var(--muted); font-weight: 500; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.ds-table td.num-col, .ds-table th.num-col { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.ds-table tbody tr { cursor: pointer; }
.ds-table tbody tr:hover { background: var(--fg-soft); }
.ds-table tbody tr[aria-selected="true"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }

/* ═══ 03 DATA ══════════════════════════════════════════════════════════ */
/* Metric — dado bruto + unidade + rótulo */
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-value {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 27px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 600;
}
.metric-unit { font-size: .5em; color: var(--muted); margin-left: 3px; letter-spacing: 0; font-weight: 400; }
.metric-label { font-size: 12.5px; color: var(--muted); }
.metric-row .metric-value { font-size: 21px; }
.metric-row .metric-label { font-size: 11.5px; line-height: 1.3; }
.metric-context { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* Score — número + trilha + rótulo semântico (padrão Walk Score) */
.score { display: flex; flex-direction: column; gap: 8px; }
.score-head { display: flex; align-items: baseline; gap: 9px; }
.score-value {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 44px; line-height: .95; letter-spacing: -0.035em; font-weight: 600;
  color: var(--accent);
}
.score-max { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.score-word { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.score-track { height: 6px; border-radius: 999px; background: var(--fg-soft); overflow: hidden; }
.score-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.score-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .04em; }

/* Trend — reservado; sem série histórica nesta versão do dado */
.trend { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11.5px; }
.trend-up::before { content: '↑'; }
.trend-down::before { content: '↓'; }
.trend-flat::before { content: '→'; }

/* Comparison — barras proporcionais entre localidades */
.comparison { display: flex; flex-direction: column; gap: 10px; }
.cmp-row { display: grid; grid-template-columns: 96px 1fr 66px; gap: var(--gap-sm); align-items: center; font-size: 13px; }
.cmp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-track { display: block; height: 14px; background: var(--fg-soft); border-radius: 3px; overflow: hidden; }
.cmp-bar { display: block; height: 100%; background: var(--accent); opacity: .55; border-radius: 3px; transition: width .3s ease; }
.cmp-row.is-focus .cmp-bar { opacity: 1; }
.cmp-val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; font-size: 12.5px; }
.cmp-median { border-left: 1px dashed var(--fg-line); }

/* Insight — a frase que traduz o dado em decisão */
.insight { display: flex; flex-direction: column; gap: 7px; }
.insight-line { display: grid; grid-template-columns: 92px 1fr; gap: var(--gap-sm); align-items: baseline; }
.insight-key { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.insight-val { font-size: 14px; }
.insight-val strong { font-weight: 600; }
.insight-final { font-family: var(--font-display); font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }

/* Evidence — o que sustenta a leitura */
.evidence { display: flex; flex-direction: column; }
.ev-row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--gap-sm); align-items: center; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.ev-row:first-child { border-top: 0; }
.ev-name { display: flex; align-items: center; gap: 7px; }
.ev-count { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.ev-rank { font-family: var(--font-mono); font-size: 11px; color: var(--muted); min-width: 76px; text-align: right; }
.ev-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* DataSource + Lacuna — proveniência e limite explícitos (P10/P11) */
.datasource { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
.datasource b { color: var(--fg); font-weight: 500; }
.lacuna {
  border: 1px dashed var(--fg-line); border-radius: var(--radius);
  padding: 12px 14px; font-size: 12.5px; color: var(--muted);
}
.lacuna h4 { color: var(--fg); margin-bottom: 5px; }
.lacuna-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }

/* Legend — chave da camada quantitativa */
.legend { display: flex; flex-direction: column; gap: 6px; }
.legend-ramp { display: flex; height: 9px; border-radius: 2px; overflow: hidden; border: 1px solid var(--border); }
.legend-ramp span { flex: 1; }
.legend-ends { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.legend-swatch { width: 11px; height: 11px; border-radius: 2px; border: 1px solid var(--fg-line); flex: none; }
.legend-items { display: flex; flex-direction: column; gap: 4px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ═══ 04 GEO ═══════════════════════════════════════════════════════════ */
.map-shell {
  position: relative; background: var(--map-water);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; flex: 1 1 auto; align-self: stretch; min-height: 380px;
}
.map-svg { width: 100%; height: 100%; display: block; }
.bairro {
  fill: var(--map-land); stroke: var(--map-line);
  stroke-width: var(--map-stroke, .8); vector-effect: non-scaling-stroke;
  cursor: pointer; transition: fill .18s ease;
}
.bairro:hover { stroke: var(--fg); stroke-width: calc(var(--map-stroke, .8) + 1.2); }
.bairro.is-muted { fill: var(--map-land); opacity: var(--map-mute-op, .38); }
.bairro.is-selected { stroke: var(--fg); stroke-width: calc(var(--map-stroke, .8) + 1.8); }
.bairro.is-shortlist { stroke: var(--accent); stroke-width: calc(var(--map-stroke, .8) + 1.6); }
.map-park { fill: var(--map-park); stroke: none; pointer-events: none; }
.poi-dot { pointer-events: none; }
.map-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em;
  fill: var(--fg); pointer-events: none; text-anchor: middle;
  paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round;
}
.map-marker { pointer-events: none; }
.map-overlay {
  position: absolute; z-index: 2;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px;
}
.map-legend { bottom: 14px; left: 14px; min-width: 208px; }
.map-badge { top: 14px; left: 14px; }
.map-attr {
  position: absolute; bottom: 6px; right: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--muted);
}
.map-tip {
  position: absolute; z-index: 4; pointer-events: none;
  background: var(--fg); color: var(--bg);
  border-radius: var(--radius); padding: 7px 10px; font-size: 12.5px;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--fg) 22%, transparent);
  opacity: 0; transform: translate(-50%, -125%); transition: opacity .12s ease;
  white-space: nowrap;
}
.map-tip.is-on { opacity: 1; }
.map-tip .num { color: color-mix(in oklab, var(--bg) 74%, var(--accent)); }

/* PlaceCard / PlaceSelector */
.place-card { display: flex; flex-direction: column; gap: var(--gap-sm); }
.place-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--gap-sm); }
.place-name { font-family: var(--font-display); font-size: 26px; line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: var(--weight-display, 600); }
.place-sub { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.place-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.place-photo img { width: 100%; height: auto; display: block; }
.place-photo figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: color-mix(in oklab, var(--surface) 90%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px color-mix(in oklab, var(--fg) 16%, transparent);
  border-radius: 6px; padding: 5px 9px;
  font-family: var(--font-mono); font-size: 10px; color: var(--fg); letter-spacing: .03em;
  max-width: calc(100% - 20px);
}
.place-selector { display: flex; flex-wrap: wrap; gap: 6px; }
.place-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font-size: 12.5px; color: var(--fg);
  transition: background .12s ease, border-color .12s ease;
}
.place-chip:hover { background: var(--fg-soft); border-color: var(--fg-line); color: var(--fg); }
.place-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: color-mix(in oklab, var(--accent) 74%, var(--fg)); }
.place-chip .x { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ═══ CHROME DE PÁGINA (documento, não app) ══════════════════════════ */
.topnav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); padding-block: 13px; }
.topnav nav a:hover { color: var(--fg); }
.pagefoot { padding-block: 44px; border-top: 1px solid var(--border); color: var(--muted); }
.hero { padding-block: clamp(56px, 8vw, 110px); }
.hero-center { text-align: center; max-width: 36ch; margin-inline: auto; }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; }

/* ═══ APP SHELL ════════════════════════════════════════════════════════ */
.app { display: flex; flex-direction: column; height: 100vh; min-height: 560px; }
.appbar {
  flex: none; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
}
.appbar-inner { display: flex; align-items: center; gap: var(--gap-md); padding: 10px 18px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 16.5px; font-weight: var(--weight-display, 600); letter-spacing: var(--track-brand, -0.01em); }
.appbar-tabs { display: flex; gap: 2px; margin-left: 6px; }
.appbar-tabs button {
  min-height: 34px; padding: 6px 12px; border: 0; background: transparent;
  color: var(--muted); font-size: 13.5px; border-radius: var(--radius);
  transition: background .12s ease, color .12s ease;
}
.appbar-tabs button:hover { background: var(--fg-soft); color: var(--fg); }
.appbar-tabs button[aria-current="page"] { background: var(--fg-soft); color: var(--fg); font-weight: 500; }
.appbar-tabs button[disabled] { color: color-mix(in oklab, var(--muted) 60%, var(--bg)); }
.appbar-tabs button[disabled]:hover { background: transparent; }

.workspace { flex: 1; display: grid; grid-template-columns: var(--cols, 274px 1fr 340px); min-height: 0; }
.panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.panel-left { border-right: 1px solid var(--border); }
.panel-right { border-left: 1px solid var(--border); background: var(--surface); }
.panel-head { flex: none; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px 16px 20px; }
.panel-body > * + * { margin-top: var(--gap-md); }
.panel-foot { flex: none; padding: 12px 16px; border-top: 1px solid var(--border); }
.panel-center { padding: 14px; overflow: hidden; }
.block-title {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 9px;
}
.layer-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.layer-tabs button {
  min-height: 32px; padding: 5px 11px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12.5px;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.layer-tabs button:hover { background: var(--fg-soft); color: var(--fg); border-color: var(--fg-line); }
.layer-tabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.layer-tabs button[aria-pressed="true"]:hover { background: color-mix(in oklab, var(--fg) 84%, var(--bg)); color: var(--bg); }

.compare-strip { flex: none; border-top: 1px solid var(--border); background: var(--surface); padding: 12px 18px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap-md); }
.compare-empty { color: var(--muted); font-size: 13px; }
.toolbar-right { margin-left: auto; display: flex; align-items: center; gap: var(--gap-sm); }

@media (max-width: 1100px) {
  .app { height: auto; }
  .workspace { grid-template-columns: 1fr; }
  .panel-left, .panel-right { border: 0; border-top: 1px solid var(--border); }
  .map-shell { min-height: 62vh; }
}
