:root {
  --ink: #1c2a22;
  --muted: #5a6b61;
  --bg: #dce8df;
  --panel: #f3f7f3;
  --paper: #fbfcf9;
  --line: rgba(42, 74, 60, 0.16);
  --teal: #2a4a3c;
  --sand: #9a5a28;
  --flare: #d4e3b8;
  --deal: #1f7a4a;
  --good: #6a8f2e;
  --market: #3d6f8a;
  --high: #c45c3a;
  --warn: #a07a2e;
  --dock: 64px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { color-scheme: light; }
body {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(42, 74, 60, 0.12);
}
h1, h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 600;
  text-wrap: balance;
}
.shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(260px, 320px) 1fr minmax(300px, 380px);
  height: 100%;
  min-height: 0;
}
.panel {
  border-right: 1px solid var(--line);
  background:
    radial-gradient(900px 280px at 0 -10%, rgba(46, 196, 182, 0.16), transparent 55%),
    var(--panel);
  overflow: auto;
  padding: 14px 14px 80px;
  min-height: 0;
}
.list-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 22, 30, 0.35), transparent 80px),
    #0a1a23;
  padding: 16px 12px 16px;
}
.list-rail .block-head {
  flex: 0 0 auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.list-rail .block-head h2 { margin: 0; }
.list-rail #listCount {
  color: var(--muted);
  font-size: 12px;
}
.list-rail .list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}
.list-loading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 2px 4px;
}
.list-loading-title {
  font-family: Newsreader, Georgia, serif;
  font-size: 18px;
  margin: 4px 0 0;
}
.list-loading-copy {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 8px;
  line-height: 1.4;
}
.list-loading-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.55);
  animation: load-pulse 1.4s ease-out infinite;
}
.list-banner {
  margin: 0 0 4px;
  padding: 8px 10px;
  border: 1px solid rgba(46, 196, 182, 0.28);
  border-radius: 12px;
  background: rgba(46, 196, 182, 0.08);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}
.card-skel {
  height: 90px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(46, 196, 182, 0.08) 45%, rgba(255,255,255,0.03) 100%),
    rgba(7, 16, 24, 0.55);
  background-size: 180% 100%;
  animation: load-shimmer 1.6s ease-in-out infinite;
}
.map-loading {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100% - 88px));
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 22, 30, 0.9);
  color: var(--ink);
  font-size: 13px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.map-loading[hidden] { display: none; }
.map-loading p { margin: 0; }
@keyframes load-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(46, 196, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}
@keyframes load-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .list-loading-pulse, .card-skel { animation: none; }
}
.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--sand);
  margin: 0 0 6px;
}
.brand {
  margin: 0 0 10px;
}
.brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
}
.logo-mark {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--sand);
}
.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: var(--teal);
}
.logo-mark::before {
  left: 50%;
  top: 5px;
  bottom: 5px;
  width: 1.5px;
  transform: translateX(-50%);
}
.logo-mark::after {
  top: 50%;
  left: 5px;
  right: 5px;
  height: 1.5px;
  transform: translateY(-50%);
}
.logo-word {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
}
.brand-tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.brand-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-btn {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(42, 74, 60, 0.28);
  background: rgba(42, 74, 60, 0.06);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.account-btn:hover, .account-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.account-btn.is-on {
  background: var(--teal);
  color: #f7faf6;
  border-color: var(--teal);
}
.account-menu {
  position: fixed;
  z-index: 2400;
  min-width: 248px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(28, 42, 34, 0.18);
}
.account-menu[hidden] { display: none; }
.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.account-menu button:hover,
.account-menu button:focus-visible {
  background: rgba(42, 74, 60, 0.1);
}
.status a.verify-go {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--teal);
  color: #f7faf6;
  text-decoration: none;
  font-weight: 700;
}
.map-account { display: none; }
.info-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(226, 196, 142, 0.45);
  background: rgba(226, 196, 142, 0.1);
  color: var(--sand);
  font-family: Newsreader, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
}
.info-btn:hover, .info-btn:focus-visible {
  background: rgba(226, 196, 142, 0.22);
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}
.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;
}
.lede { color: var(--muted); margin: 10px 0 18px; }
.market-pulse {
  margin: 0 0 16px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(46, 196, 182, 0.08), transparent 42%),
    rgba(8, 22, 30, 0.55);
}
.market-pulse.collapsed .market-types,
.market-pulse.collapsed .market-split,
.market-pulse.collapsed .market-readout,
.market-pulse.collapsed .market-bars,
.market-pulse.collapsed .market-mix,
.market-pulse.collapsed .market-rent,
.market-pulse.collapsed .market-kicker { display: none; }
.market-readout {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
.market-readout b {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 20px;
}
.market-stat {
  flex: 1;
  min-width: 90px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 8px;
}
.market-stat span { display: block; color: var(--muted); font-size: 11px; }
.market-stat.is-up b { color: var(--high); }
.market-stat.is-down b { color: var(--deal); }
.market-bars { display: grid; gap: 5px; margin: 0 0 10px; }
.mbar { display: grid; grid-template-columns: 58px 1fr auto; gap: 6px; align-items: center; font-size: 11px; }
.mbar i {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2ec4b6, #7dffb3);
}
.mbar b { color: var(--muted); font-weight: 500; }
.market-mix { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 0 0 10px; background: rgba(255,255,255,0.04); }
.market-mix i { display: block; height: 100%; }
.market-mix .oportunidad { background: #7dffb3; }
.market-mix .bueno { background: #b7e36d; }
.market-mix .mercado { background: #7eb6d6; }
.market-mix .caro { background: #ff8b6b; }
.market-row .fresh {
  display: inline-block;
  margin-left: 6px;
  color: var(--deal);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.market-kicker {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.market-chart {
  height: 84px;
  margin: 0 0 10px;
}
.market-chart svg { width: 100%; height: 84px; display: block; }
.market-chart .axis {
  fill: var(--muted);
  font-size: 10px;
}
.market-types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.market-type {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
}
.market-type.is-up { color: var(--high); }
.market-type.is-down { color: var(--deal); }
.market-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.fold {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.fold-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 11px 12px;
  font-weight: 700;
  font-size: 13px;
}
.fold-head::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--sand);
  border-bottom: 2px solid var(--sand);
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
}
.fold.is-open .fold-head::after {
  transform: rotate(45deg);
}
.fold-body {
  padding: 0 10px 10px;
}
.fold-body[hidden] { display: none; }
.market-list { display: grid; gap: 6px; }
.market-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: inherit;
  border-radius: 10px;
  padding: 7px 8px;
}
.market-row b { display: block; font-size: 12px; }
.market-row span { display: block; color: var(--muted); font-size: 11px; }
.market-row.is-strong { border-color: rgba(125, 255, 179, 0.35); }
.price-track { margin: 12px 0; }
.price-track ol { margin: 8px 0 0; padding-left: 16px; color: var(--muted); font-size: 12px; }
.price-track li.is-outlier { text-decoration: line-through; opacity: 0.55; }
.price-track li.is-outlier em {
  font-style: normal;
  text-decoration: none;
  margin-left: 4px;
  opacity: 1;
}
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.kpi b { display: block; font-size: 22px; font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 12px; }
.actions { margin-bottom: 8px; }
button, select, input, textarea {
  font: inherit;
  color: var(--ink);
}
button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
}
.primary {
  background: linear-gradient(180deg, #3fe0d0, #1aa394);
  color: #042226;
  font-weight: 600;
  width: 100%;
}
button:disabled { opacity: 0.55; cursor: wait; }
.pipeline-line {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  opacity: 0.8;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin: 0 0 10px;
}
.filters > label {
  min-width: 0;
}
.filters .place-wrap,
.filters .span-2,
.filters .trait-filters,
.filters .size-counts {
  grid-column: 1 / -1;
}
.size-counts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.size-counts label {
  min-width: 0;
}
.size-counts select:disabled {
  opacity: 0.45;
}
.place-wrap { position: relative; }
.place-suggest {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #102632;
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.place-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 9px 12px;
}
.place-suggest button:hover,
.place-suggest button.is-active { background: rgba(46, 196, 182, 0.12); }
.place-suggest small { color: var(--muted); display: block; font-size: 11px; font-weight: 400; }
.place-suggest-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.card-top .kind { flex: 0 1 auto; min-width: 0; }
.card-top .price {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.2;
}
.fav-btn {
  background: transparent;
  color: var(--sand);
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
  min-width: 28px;
}
.card.is-fav { border-color: rgba(226, 196, 142, 0.45); }
.card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(46, 196, 182, 0.65);
  background: rgba(46, 196, 182, 0.08);
}
.card.is-contacted .kind { outline: 1px solid rgba(226, 196, 142, 0.5); }
.note-box {
  width: 100%;
  margin-top: 6px;
  min-height: 42px;
  resize: vertical;
  font-size: 12px;
}
.prop-pin {
  background: transparent;
  border: 0;
}
.prop-pin span {
  display: block;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 2px rgba(7, 20, 28, 0.9);
}
.prop-pin.round span { border-radius: 50%; }
.prop-pin.square span { border-radius: 2px; }
.prop-pin.lost span {
  border-radius: 2px;
  background: transparent !important;
  border: 2px dashed #c4a06c;
  box-shadow: none;
}
.prop-pin.fav span { box-shadow: 0 0 0 2px #e2c48e; }
.zone-pin { background: transparent; border: 0; }
.zone-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px dashed currentColor;
  background: rgba(8, 22, 30, 0.82);
  box-shadow: 0 0 0 8px rgba(126, 182, 214, 0.16);
  font-size: 13px;
  font-weight: 700;
}
.zone-pin.approx span {
  border-radius: 3px;
  border-style: solid;
}
.zone-pin.is-lost span {
  border-style: dashed;
  opacity: 0.78;
}
.zone-pin.is-selected span {
  box-shadow: 0 0 0 8px rgba(46, 196, 182, 0.35);
  background: rgba(46, 196, 182, 0.18);
}
.leaflet-div-icon.pin-hub { background: transparent; border: none; }
.pin-hub span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ec4b6;
  box-shadow: 0 0 0 2px rgba(7, 20, 28, 0.9);
}
.stack-pin span {
  width: 32px;
  height: 32px;
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(126, 182, 214, 0.22);
  font-size: 12px;
}
.stack-pin.is-selected span {
  box-shadow: 0 0 0 5px rgba(46, 196, 182, 0.4);
}
.leaflet-popup.pick-popup .leaflet-popup-content {
  margin: 8px 10px;
}
.pick-popup .zone-popup strong { font-size: 13px; }
.zone-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  padding: 7px 8px;
  margin: 0 0 6px;
  background: rgba(255,255,255,0.05);
}
.zone-item.is-selected { outline: 1px solid #2ec4b6; }
.card.is-approx { opacity: 0.92; }
.card.is-approx img { filter: grayscale(0.15); }
.card.is-noloc {
  outline: 1px dashed rgba(196, 154, 108, 0.6);
}
.barrio-label {
  background: transparent;
  border: 0;
  pointer-events: none;
}
.barrio-label div {
  background: rgba(8, 22, 30, 0.82);
  border: 1px solid rgba(46, 196, 182, 0.28);
  border-radius: 8px;
  padding: 3px 8px;
  text-align: center;
  color: #e8f4f2;
  line-height: 1.15;
}
.barrio-label strong { display: block; font-size: 11px; }
.barrio-label span { display: block; font-size: 10px; color: #9bb8b4; }
.barrio-tip {
  background: #10232d;
  color: #e8f4f2;
  border: 1px solid rgba(184, 214, 208, 0.14);
}
.map-hint {
  position: absolute;
  left: 14px;
  bottom: 38px;
  top: auto;
  z-index: 1000;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 22, 30, 0.82);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
.map-legal {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1000;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
}
.map-legal a { color: var(--teal); }
.stats-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ghost {
  background: transparent;
  color: var(--muted);
  padding: 4px 8px;
}
.stats-card.collapsed .table-wrap,
.stats-card.collapsed .legend { display: none; }
.stats-card.collapsed { max-height: none; width: auto; }
.pin-legend {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #7eb6d6;
  margin-right: 4px;
  vertical-align: middle;
}
.pin-legend.round { border-radius: 50%; }
.pin-legend.square {
  border-radius: 2px;
  width: 10px;
  height: 10px;
}
.pin-legend.lost {
  background: transparent;
  border: 1.5px dashed #c4a06c;
  border-radius: 2px;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
}
.pin-legend.zone {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px dashed #7eb6d6;
  box-sizing: border-box;
}
.filters label, dialog label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
input, select, textarea {
  background: #071018;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
}
.check {
  flex-direction: row !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin-top: 0;
  padding-bottom: 6px;
}
.trait-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.filters .trait-filters label {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  box-shadow: none;
}
.filters .trait-filters label:hover {
  border-color: var(--teal);
  background: #fff;
}
.filters .trait-filters label:has(input:checked) {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--paper);
  font-weight: 700;
}
.trait-filters input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.filters .trait-filters label:focus-within {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.block { margin-top: 8px; }
.leaflet-div-icon.prop-pin,
.leaflet-div-icon.barrio-label {
  background: transparent;
  border: none;
}
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.block-head h2, .stats-card h2 { font-size: 18px; margin: 0 0 8px; }
.list { display: flex; flex-direction: column; gap: 8px; contain: content; }
.list-pad { flex: 0 0 auto; pointer-events: none; }
.card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(7, 16, 24, 0.55);
  content-visibility: auto;
  contain-intrinsic-size: 90px;
}
.card img, .card-ph {
  width: 86px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: #123;
}
.card .meta { color: var(--muted); font-size: 12px; }
.card .price { color: var(--sand); font-weight: 600; }
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
}
.tag.oportunidad { background: rgba(125, 255, 179, 0.15); color: var(--deal); }
.tag.bueno { background: rgba(183, 227, 109, 0.12); color: var(--good); }
.tag.caro { background: rgba(255, 139, 107, 0.14); color: var(--high); }
.tag.revisar, .tag.sin { background: rgba(240, 195, 106, 0.12); color: var(--warn); }
.tag.loteo-fuera-de-mediana { background: rgba(196, 181, 160, 0.16); color: #e6d3bc; }
.tag.rent { background: rgba(46, 196, 182, 0.12); color: var(--teal); }
.rent-strip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.rent-strip b { color: var(--teal); font-weight: 600; }
.rent-estimate {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(46, 196, 182, 0.22);
  border-radius: 12px;
  background: rgba(46, 196, 182, 0.06);
}
.rent-estimate h4 { margin: 0 0 8px; font-size: 14px; }
.rent-row { display: grid; gap: 2px; margin: 0 0 8px; }
.rent-row span { color: var(--muted); font-size: 11px; }
.rent-row b { font-size: 14px; color: var(--teal); }
.rent-row small { color: var(--muted); font-size: 11px; }
.radar-card {
  margin: 10px 0 12px;
  padding: 10px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(120px 80px at 80% 0%, rgba(154, 90, 40, 0.08), transparent 70%),
    var(--paper);
}
.radar-card h4 { margin: 0 0 2px; font-size: 14px; }
.radar-plot {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
.radar-card svg { width: 100%; height: auto; display: block; }
.radar-grid { fill: none; stroke: rgba(42, 74, 60, 0.18); stroke-width: 1; }
.radar-spokes line { stroke: rgba(42, 74, 60, 0.16); stroke-width: 1; }
.radar-spokes line.is-missing { stroke: rgba(42, 74, 60, 0.28); stroke-dasharray: 3 3; }
.radar-fill {
  fill: rgba(154, 90, 40, 0.28);
  stroke: var(--sand);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.radar-dot { fill: var(--sand); stroke: var(--paper); stroke-width: 1; }
.radar-miss { fill: var(--paper); stroke: var(--muted); stroke-width: 1.2; }
.radar-total {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  pointer-events: none;
}
.radar-cap {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8.5px;
  fill: var(--teal);
  letter-spacing: 0.03em;
}
.radar-cap.is-missing { fill: var(--muted); }
.radar-pending {
  margin: 4px 0 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
.radar-notes {
  list-style: none;
  margin: 6px 0 4px;
  padding: 0;
  display: grid;
  gap: 4px;
}
.radar-notes li {
  display: grid;
  grid-template-columns: 118px 28px 1fr;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  align-items: baseline;
}
.radar-notes li.is-missing b { color: var(--muted); }
.radar-notes b { color: var(--ink); font-weight: 700; }
.radar-notes small { color: var(--muted); }
.radar-card.is-mini {
  margin: 6px 0 0;
  padding: 4px;
  background: transparent;
  border: none;
}
.radar-card.is-mini .radar-plot { max-width: 84px; }
.radar-card.is-mini svg { width: 84px; }
.radar-card.is-mini .radar-total { font-size: 13px; }
.ficha-bundle {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
}
.ficha-bundle .radar-card {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ficha-bundle .ficha-fold {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.near-fold .near-list {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.fold {
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.fold:not([open]) > summary::after { content: "▸"; }
.fold > :not(summary) { padding: 0 12px 12px; }
.near-list {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.near-list h4 { margin: 0 0 4px; font-size: 14px; }
.near-list ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.near-list section { margin: 8px 0 0; }
.near-list h5 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.near-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(42, 74, 60, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: start;
}
.near-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #2a4a3c;
}
.near-item.is-health .near-dot { background: #1f7a4a; }
.near-item.is-police .near-dot { background: #9a5a28; }
.near-item.is-transport .near-dot { background: #3d6f8a; }
.near-item.is-beach .near-dot { background: #2a6f8a; }
.near-item.is-plaza .near-dot { background: #5a7a38; }
.near-item.is-shop .near-dot { background: #b5812a; }
.near-item.is-school .near-dot { background: #6b4c9a; }
.near-item.is-subway .near-dot { background: #7a3d6a; }
.near-item.is-train .near-dot { background: #4a4a4a; }
.near-item span { display: grid; gap: 2px; }
.near-item b { font-size: 13px; color: var(--ink); }
.near-item small { font-size: 11px; color: var(--muted); }
.near-item:hover { background: rgba(154, 90, 40, 0.12); }
.market-rent { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
.market-rent .muted { grid-column: 1 / -1; margin: 0; }
.market-stat small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.map-wrap { position: relative; height: 100%; min-height: 0; }
#map { height: 100%; background: #08151c; }
.stats-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: min(520px, calc(100% - 32px));
  max-height: 38vh;
  overflow: auto;
  background: rgba(8, 22, 30, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(10px);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 12px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 4px;
}
.dot.deal { background: var(--deal); }
.dot.good { background: var(--good); }
.dot.market { background: var(--market); }
.dot.high { background: var(--high); }
.fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 500;
  background: #e2c48e;
  color: #1a1408;
  font-weight: 600;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #10232d;
  color: var(--ink);
  width: min(520px, 92vw);
}
dialog::backdrop { background: rgba(0,0,0,0.55); }
.welcome-dialog, .help-dialog {
  width: min(440px, 92vw);
  padding: 0;
  border: 1px solid rgba(226, 196, 142, 0.28);
  background:
    radial-gradient(520px 180px at 0 -20%, rgba(46, 196, 182, 0.18), transparent 60%),
    #10232d;
}
.welcome-dialog::backdrop, .help-dialog::backdrop {
  background: rgba(4, 12, 16, 0.72);
}
.welcome-card { padding: 28px 26px 22px; }
.welcome-card h2, .help-dialog h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  margin: 0 0 12px;
  line-height: 1.15;
}
.welcome-card p, .help-dialog p, .help-list {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.welcome-card strong, .help-rent strong { color: var(--ink); font-weight: 600; }
.welcome-note {
  padding: 8px 10px;
  border-left: 3px solid var(--teal);
  background: rgba(46, 196, 182, 0.08);
  font-size: 13px !important;
}
.welcome-dialog .primary { margin-top: 8px; }
.help-dialog form { padding: 24px 24px 18px; }
.help-list {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.help-list li::marker { color: var(--teal); }
.help-rent {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(46, 196, 182, 0.22);
  border-radius: 12px;
  background: rgba(46, 196, 182, 0.07);
}
.help-rent em { font-style: normal; color: var(--sand); }
.help-dialog .dialog-actions .primary { width: auto; min-width: 120px; }
.help-legal { font-size: 13px; color: var(--muted); }
.help-legal a { color: var(--teal); }
.auth-dialog, .settings-dialog {
  width: min(420px, 92vw);
  padding: 0;
}
.auth-dialog.is-soon { width: min(380px, 92vw); }
.auth-soon {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 20px;
  background:
    linear-gradient(180deg, rgba(212, 227, 184, 0.28), transparent 42%),
    var(--paper);
}
.auth-soon-kicker {
  margin: 0 0 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}
.auth-soon h2 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.05;
}
.auth-soon p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 28ch;
}
.auth-soon-stamp {
  position: absolute;
  top: 22px;
  right: 18px;
  margin: 0;
  padding: 6px 10px 5px;
  border: 2px solid var(--sand);
  color: var(--sand);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-11deg);
  background: rgba(251, 252, 249, 0.86);
}
.auth-soon .dialog-actions { margin: 0; }
.auth-soon .dialog-actions .primary { width: auto; min-width: 132px; }
.auth-dialog form, .settings-dialog form { padding: 22px 22px 18px; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 14px;
}
.auth-tabs button {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
.auth-tabs button.is-on {
  background: var(--teal);
  color: #f7faf6;
}
.status.is-ok { color: var(--deal); }
.settings-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.settings-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  font-size: 14px;
}
.settings-facts dt { color: var(--muted); }
.settings-row { justify-content: space-between; flex-wrap: wrap; }
.danger-zone {
  margin: 16px 0 8px;
  padding: 12px;
  border: 1px solid rgba(196, 92, 58, 0.35);
  border-radius: 12px;
}
.danger-zone legend { color: var(--high); font-weight: 700; }
.danger {
  background: var(--high);
  color: #fff8f0;
  margin-top: 10px;
}
.legal-bar {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.legal-bar a { color: var(--teal); }
.legal-page {
  min-height: 100%;
  background: var(--bg);
}
.legal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.legal-doc h1 { font-family: Newsreader, Georgia, serif; font-size: 36px; margin: 0 0 12px; }
.legal-doc h2 { font-family: Newsreader, Georgia, serif; margin: 28px 0 10px; }
.legal-doc h3 { font-size: 16px; margin: 16px 0 8px; }
.legal-doc p, .legal-doc li { line-height: 1.5; color: var(--ink); }
.legal-doc .eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 8px;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 24px;
  font-size: 14px;
}
.legal-toc a { color: var(--teal); }
.legal-note { margin-top: 28px; color: var(--muted); font-size: 13px; }
.approx-cell { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .welcome-dialog, .help-dialog { animation: none; }
}
.row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.facebook-links a { color: var(--teal); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #10232d;
  color: var(--ink);
}
.leaflet-popup-content { margin: 10px 12px; }
.popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.popup a { color: var(--teal); }
.popup-blurb {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.search-row { display: flex; gap: 8px; }
.search-row .primary { flex: 1; }
.search-row button { width: auto; }
.kind {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.18);
  color: var(--teal);
}
.kind.depto, .kind.departamento { background: rgba(126, 182, 214, 0.2); color: #9fd2ef; }
.kind.ph { background: rgba(226, 196, 142, 0.2); color: var(--sand); }
.kind.casa { background: rgba(125, 255, 179, 0.12); color: var(--deal); }
.kind.credit { background: rgba(226, 196, 142, 0.18); color: #e2c48e; }
.kind.owner { background: rgba(125, 255, 179, 0.12); color: var(--deal); }
.kind.urgent { background: rgba(226, 140, 110, 0.18); color: #f0b49a; }
.kind.lost { background: rgba(196, 154, 108, 0.22); color: #e2c48e; }
.kind.real { background: rgba(46, 196, 182, 0.16); color: #7ee0d4; }
.loc-missing {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px dashed rgba(196, 154, 108, 0.55);
  border-radius: 10px;
  color: #e2c48e;
  font-size: 13px;
}
.headline { font-size: 13px; margin: 2px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.card .chips {
  flex-wrap: nowrap;
  overflow: hidden;
  max-height: 22px;
}
.chip {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.tag.quality { background: rgba(46, 196, 182, 0.12); color: var(--teal); }
.detail {
  margin-top: 0;
  height: 100%;
  overflow: auto;
  padding: 18px 16px 48px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background:
    radial-gradient(700px 240px at 100% -10%, rgba(46, 196, 182, 0.12), transparent 55%),
    var(--panel);
  font-size: 13px;
}
.detail.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.detail-close {
  float: right;
  margin: -6px -6px 8px 8px;
}
.edit-form {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.edit-form.is-locked .edit-fields { display: none; }
.edit-hint { margin: 0; font-size: 12px; }
.detail h3 { margin: 8px 0 4px; font-size: 16px; }
.detail .desc { color: var(--muted); max-height: 42vh; overflow: auto; white-space: pre-wrap; }
.detail-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.detail-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.detail-kicker .kind { flex: 0 1 auto; min-width: 0; }
.detail-price {
  flex: 0 0 auto;
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--sand);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.detail-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-link {
  display: block;
  word-break: break-all;
  color: var(--teal);
  font-size: 12px;
  margin: 6px 0 12px;
}
.detail-photos { margin: 0 0 10px; }
.detail-hero {
  width: 100%;
  height: auto;
  max-height: 280px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
  background: #123;
}
.detail-film {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.detail-film button {
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
}
.detail-film button.is-on { border-color: var(--teal); }
.detail-film img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}
.detail h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
@media (max-width: 1320px) {
  .shell { grid-template-columns: minmax(260px, 320px) minmax(240px, 300px) 1fr; }
  .detail {
    position: fixed;
    right: 0;
    top: 0;
    width: min(400px, 100vw);
    height: 100%;
    z-index: 800;
    box-shadow: -12px 0 40px rgba(0,0,0,0.35);
  }
  .detail.is-empty { display: none; }
  .stats-card { display: none; }
}
@media (max-width: 980px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 48vh 52vh;
  }
  .panel { height: auto; }
  .list-rail { height: auto; }
  .map-wrap { height: auto; grid-column: 1 / -1; }
  .market-split { grid-template-columns: 1fr; }
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0;
}
.fact {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}
.fact span { display: block; color: var(--muted); font-size: 11px; }
.fact b { font-size: 13px; }
.detail h3 { margin: 8px 0 4px; font-size: 16px; }
.detail .desc { color: var(--muted); max-height: 42vh; overflow: auto; white-space: pre-wrap; }
.card .kind { font-size: 12px; }
.headline { font-weight: 500; }
.kind.terreno { background: rgba(196, 154, 108, 0.22); color: #e2c48e; }
.kind.local, .kind.oficina, .kind.galpon { background: rgba(140, 170, 210, 0.18); color: #c5d4ea; }
.dot.warn { background: var(--warn); }
.dot.loteo { background: #c4b5a0; }
.crawl-check { margin: 8px 0 0; }
.map-legend {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1100;
  width: min(300px, calc(100% - 24px));
  max-height: min(70%, 420px);
  overflow: auto;
  background: rgba(8, 22, 30, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px 8px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink);
  pointer-events: auto;
}
.map-legend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.map-legend h3 {
  margin: 0;
  font-size: 13px;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
}
.map-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-legend li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 7px;
}
.map-legend .dot, .map-legend .pin-legend { margin-top: 3px; flex: 0 0 auto; }
.map-legend.collapsed ul { display: none; }
.pin-legend.barrio {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(46, 196, 182, 0.28);
  border: 1px solid rgba(46, 196, 182, 0.75);
  box-sizing: border-box;
}
.deal-block {
  margin: 2px 0 10px;
}
.deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
}
.deal-head > span {
  font-size: 12px;
  color: var(--muted);
}
.deal-help {
  position: relative;
}
.deal-help summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(154, 90, 40, 0.45);
  background: transparent;
  color: var(--sand);
  font-family: Newsreader, Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}
.deal-help summary::-webkit-details-marker,
.deal-help summary::marker { display: none; content: none; }
.deal-help p {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  width: min(260px, calc(100vw - 40px));
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(28, 42, 34, 0.14);
}
.deal-block input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--deal);
}
.deal-track {
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(90deg, #8aa 0%, var(--market) 28%, var(--good) 55%, var(--deal) 82%, var(--warn) 100%);
}
.tag.revisar-outlier, .tag.revisar-se-ales, .tag.revisar-se-ales {
  background: rgba(240, 195, 106, 0.14);
  color: var(--warn);
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 2000;
  padding: 8px 12px;
  background: var(--flare);
  color: #121814;
  border-radius: 8px;
}
.skip-link:focus { top: 8px; }
body:not(.is-admin) .admin-only { display: none !important; }
.searching-banner {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(196, 132, 74, 0.55);
  border-radius: 12px;
  background: rgba(196, 132, 74, 0.1);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}
.searching-banner[hidden] { display: none; }
.survey-frame {
  pointer-events: none;
  position: absolute;
  inset: 10px;
  z-index: 400;
  border: 1px solid rgba(196, 168, 112, 0.28);
}
.survey-frame::before,
.survey-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--sand);
}
.survey-frame::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.survey-frame::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.card { content-visibility: auto; contain-intrinsic-size: 0 120px; }
.dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(18, 24, 20, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}
.dock button {
  flex: 1;
  border-radius: 12px;
  padding: 10px 6px;
  background: transparent;
  color: var(--muted);
}
.dock button[aria-selected="true"] {
  background: rgba(196, 132, 74, 0.18);
  color: var(--flare);
}
.px-beacon {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.analytics { margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.stat-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.stat-row b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}
@media (max-width: 980px) {
  .shell {
    display: block;
    height: 100%;
    padding-bottom: var(--dock);
  }
  .panel, .list-rail, .map-wrap, .detail {
    position: fixed;
    inset: 0 0 var(--dock) 0;
    width: 100%;
    height: auto;
    z-index: 1;
    display: none;
    overflow: auto;
  }
  .map-wrap { display: none; }
  body.tab-map .map-wrap,
  body.tab-list .list-rail,
  body.tab-market .panel,
  body.tab-detail .detail { display: block; }
  body.tab-map .map-wrap { display: block; }
  body.tab-detail .detail.is-empty { display: flex; }
  .detail { box-shadow: none; border-left: 0; }
  .stats-card, .map-legend { display: none; }
  .map-hint { display: none; }
  .map-legal { bottom: calc(var(--dock) + 10px); left: 10px; }
  .map-account {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1100;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(42, 74, 60, 0.28);
    background: rgba(251, 252, 249, 0.94);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .map-account.is-on {
    background: var(--teal);
    color: #f7faf6;
  }
  .dock { display: flex; gap: 6px; }
  .fab { bottom: calc(var(--dock) + 16px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.panel {
  background:
    radial-gradient(900px 280px at 0 -10%, rgba(42, 74, 60, 0.08), transparent 55%),
    var(--panel);
}
.list-rail {
  background:
    linear-gradient(180deg, rgba(42, 74, 60, 0.06), transparent 80px),
    var(--paper);
}
.market-pulse {
  background:
    linear-gradient(180deg, rgba(42, 74, 60, 0.05), transparent 42%),
    var(--paper);
}
.market-stat, .kpi, .market-type, .market-row, .card, .fact {
  background: var(--paper);
}
.card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px rgba(42, 74, 60, 0.35);
  background: rgba(42, 74, 60, 0.06);
}
.card-skel {
  background:
    linear-gradient(90deg, rgba(42, 74, 60, 0.04) 0%, rgba(42, 74, 60, 0.1) 45%, rgba(42, 74, 60, 0.04) 100%),
    var(--paper);
  background-size: 180% 100%;
}
.list-banner {
  border-color: rgba(42, 74, 60, 0.2);
  background: rgba(42, 74, 60, 0.06);
}
.place-suggest {
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(28, 42, 34, 0.12);
}
.place-suggest button:hover,
.place-suggest button.is-active { background: rgba(42, 74, 60, 0.08); }
input, select, textarea {
  background: #fff;
  border-color: rgba(42, 74, 60, 0.22);
}
button {
  background: rgba(42, 74, 60, 0.08);
}
.primary {
  background: linear-gradient(180deg, #3a5c4c, #2a4a3c);
  color: #f7faf6;
}
.fab {
  background: var(--sand);
  color: #fff8f0;
}
.deal-block input[type="range"] { accent-color: var(--deal); }
.deal-track {
  background: linear-gradient(90deg, #8aa 0%, var(--market) 28%, var(--good) 55%, var(--deal) 82%, var(--warn) 100%);
}
.map-loading,
.map-hint,
.map-legal,
.map-legend,
.stats-card {
  background: rgba(251, 252, 249, 0.94);
  color: var(--ink);
}
#map { background: #d7e0d4; }
.zone-pin span {
  background: rgba(251, 252, 249, 0.92);
  box-shadow: 0 0 0 8px rgba(61, 111, 138, 0.12);
}
.prop-pin span { box-shadow: 0 0 0 2px rgba(251, 252, 249, 0.95); }
.pin-hub span {
  background: var(--teal);
  box-shadow: 0 0 0 2px rgba(251, 252, 249, 0.95);
}
.barrio-label div {
  background: rgba(251, 252, 249, 0.92);
  border-color: rgba(42, 74, 60, 0.22);
  color: var(--ink);
}
.barrio-label span { color: var(--muted); }
.barrio-tip {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.zone-popup p { color: var(--muted); }
.zone-item { background: rgba(42, 74, 60, 0.05); }
.zone-item.is-selected { outline: 1px solid var(--teal); }
dialog, .welcome-dialog, .help-dialog {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.welcome-dialog, .help-dialog {
  background:
    radial-gradient(520px 180px at 0 -20%, rgba(42, 74, 60, 0.08), transparent 60%),
    var(--paper);
}
.welcome-card h2, .help-dialog h2 { font-family: Newsreader, Georgia, serif; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--paper);
  color: var(--ink);
}
.kind { background: rgba(42, 74, 60, 0.1); color: var(--teal); }
.kind.depto, .kind.departamento { background: rgba(61, 111, 138, 0.12); color: #2b5670; }
.kind.ph { background: rgba(154, 90, 40, 0.12); color: var(--sand); }
.kind.casa { background: rgba(31, 122, 74, 0.12); color: var(--deal); }
.kind.terreno { background: rgba(160, 122, 46, 0.16); color: #7a5a22; }
.kind.credit { background: rgba(154, 90, 40, 0.12); color: var(--sand); }
.kind.lost { background: rgba(160, 122, 46, 0.16); color: #7a5a22; }
.kind.real { background: rgba(31, 122, 74, 0.14); color: var(--deal); }
.loc-missing {
  color: #7a5a22;
  border-color: rgba(160, 122, 46, 0.45);
}
.tag.loteo-fuera-de-mediana { color: #6b5a42; }
.chip { background: rgba(42, 74, 60, 0.06); }
.rent-estimate, .help-rent, .welcome-note {
  border-color: rgba(42, 74, 60, 0.16);
  background: rgba(42, 74, 60, 0.05);
}
.detail {
  background:
    radial-gradient(700px 240px at 100% -10%, rgba(42, 74, 60, 0.06), transparent 55%),
    var(--panel);
}
.card img, .detail-hero { background: #d7e0d4; }
.dock {
  background: rgba(243, 247, 243, 0.96);
}
.dock button[aria-selected="true"] {
  background: rgba(42, 74, 60, 0.12);
  color: var(--teal);
}
.skip-link { color: var(--ink); }
.survey-frame { border-color: rgba(154, 90, 40, 0.28); }
.map-legend h3 { font-family: Newsreader, Georgia, serif; }
.mbar i { background: linear-gradient(90deg, #3d6f8a, #1f7a4a); }
.market-mix { background: rgba(42, 74, 60, 0.08); }
.market-mix .oportunidad { background: #1f7a4a; }
.market-mix .bueno { background: #6a8f2e; }
.market-mix .mercado { background: #3d6f8a; }
.market-mix .caro { background: #c45c3a; }
a { color: var(--teal); }

.ops-gate {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background:
    radial-gradient(720px 280px at 8% -8%, rgba(42, 74, 60, 0.14), transparent 52%),
    var(--bg);
}
.ops-card {
  position: relative;
  width: min(440px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px 22px;
  box-shadow: 0 16px 40px rgba(28, 42, 34, 0.08);
}
.ops-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 8px;
}
.ops-card h1 { margin: 0 0 8px; font-size: 34px; }
.ops-card form { display: grid; gap: 12px; margin-top: 18px; }
.ops-card label { display: grid; gap: 6px; font-size: 14px; }
.ops-card input[type="password"],
.ops-card input[type="text"],
.ops-card input[inputmode="numeric"] {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}
.ops-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ops-card .err { color: var(--high); margin: 0 0 8px; }
.ops-card .muted { color: var(--muted); font-size: 13px; }

.flujo-page {
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(42, 74, 60, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(42, 74, 60, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  padding: 28px 20px 80px;
}
.flujo-head { max-width: 880px; }
.flujo-head h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 10px;
  line-height: 0.95;
}
.flujo-head p { max-width: 62ch; color: var(--muted); }
.flujo-status { color: var(--muted); }
.flujo-stage {
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: auto;
}
.flujo-stage svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 420px;
}
.flujo-edge {
  fill: none;
  stroke: #2a4a3c;
  stroke-width: 1.55;
  stroke-linejoin: miter;
  opacity: 0.5;
}
.flujo-node rect {
  fill: #fbfcf9;
  stroke: #2a4a3c;
  stroke-width: 1.2;
}
.flujo-node.is-portal rect { fill: #e7f0e3; }
.flujo-node.is-extract rect { fill: #f4ead8; }
.flujo-node.is-transform rect { fill: #dde8ef; }
.flujo-node.is-store rect { fill: #efe6d6; }
.flujo-node.is-serve rect { fill: #e4eee6; }
.flujo-node.is-observe rect { fill: #f3e2d6; }
.flujo-label {
  font-family: Newsreader, Georgia, serif;
  font-size: 14px;
  fill: #1c2a22;
}
.flujo-kind {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: #5a6b61;
}
.flujo-note {
  margin-top: 16px;
  max-width: 520px;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 4px solid var(--teal);
}
.flujo-note p { margin: 6px 0 0; color: var(--muted); }
.flujo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.flujo-tabs button {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
}
.flujo-tabs button[aria-selected="true"] {
  background: #2a4a3c;
  color: #f3f7f3;
}
.flujo-lead {
  max-width: 70ch;
  color: var(--muted);
  margin: 8px 0 0;
}
.flujo-er {
  padding: 16px;
  overflow: auto;
}
.flujo-er svg,
.flujo-er-svg {
  max-width: 100%;
  height: auto;
}
.flujo-src {
  margin: 0;
  padding: 16px;
  overflow: auto;
  font: 12px/1.45 "IBM Plex Mono", ui-monospace, monospace;
  white-space: pre;
}
.flujo-tables {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 12px 16px 16px;
  margin: 0;
}
.flujo-tables button {
  background: #e7f0e3;
  color: var(--ink);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}
.flujo-cols {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
}
.flujo-cols code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.tablero-page {
  min-height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  background:
    linear-gradient(90deg, rgba(42, 74, 60, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(42, 74, 60, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
}
.tablero-page.is-locked {
  display: grid;
  place-items: center;
  min-height: 100%;
  max-width: none;
  padding: 28px 16px;
}
.tablero-gate { margin: 0 auto; }
.tablero-head { max-width: 920px; }
.tablero-head h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  margin: 0 0 8px;
  line-height: 0.95;
}
.tablero-head p { max-width: 64ch; color: var(--muted); }
.tablero-nav { margin-top: 10px; }
.tablero-status { color: var(--muted); }
.tablero-now-lead { margin: 0; font-size: 15px; }
.tablero-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0;
  margin: 0 0 4px;
  border-top: 1px solid var(--line);
}
.tablero-kpis > div {
  padding: 8px 10px 9px 0;
  border-bottom: 1px solid var(--line);
}
.tablero-kpis dt {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.tablero-kpis dd {
  margin: 2px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 18px;
  line-height: 1.15;
}
.tablero-summary {
  margin: 14px 0 20px;
  padding: 16px 18px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
}
.tablero-tiles {
  display: grid;
  /* Seis KPIs: 3 y 3. Con auto-fit quedan columnas de sobra y huecos grises. */
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 12px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .tablero-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .tablero-tiles { grid-template-columns: 1fr; }
}
.tablero-tile {
  padding: 10px 12px 11px;
  background: var(--paper);
}
.tablero-tile dt {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tablero-tile dd {
  margin: 3px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.tablero-tile p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.tablero-alerts {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.tablero-alerts:empty { display: none; }
.tablero-alerts li {
  padding: 5px 10px;
  border-left: 3px solid var(--line);
  background: rgba(42, 74, 60, 0.04);
}
.tablero-alerts li.is-bad { border-left-color: var(--high); }
.tablero-alerts li.is-warn { border-left-color: var(--sand); }
.tablero-alerts li.is-ok { border-left-color: var(--good); }
.tablero-block {
  margin: 0;
  padding: 14px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.tablero-block h2 {
  font-size: 22px;
  margin: 0 0 6px;
}
.tablero-block h3 { margin: 0 0 4px; font-size: 16px; }
.tablero-lead { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.tablero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 0 0 18px;
}
.tablero-hero {
  margin: 0 0 28px;
  padding: 16px 16px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.tablero-hero-copy { margin-bottom: 12px; }
.tablero-hero h2 { margin: 0 0 6px; font-size: 26px; }
.tablero-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
}
.tablero-mix li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.tablero-mix b { font-size: 22px; font-weight: 500; }
.tablero-mix i {
  width: 8px;
  height: 8px;
  border-radius: 1px;
  display: inline-block;
  font-style: normal;
}
.tablero-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.tablero-track {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left-width: 6px;
  padding: 10px 12px;
}
.tablero-track.is-local { border-left-color: var(--teal); }
.tablero-track.is-tor { border-left-color: var(--sand); }
.tablero-track.is-vpn { border-left-color: var(--market); }
.tablero-track.is-otros { border-left-color: var(--good); }
.tablero-track.is-cool { border-color: rgba(160, 122, 46, 0.55); }
.tablero-track.is-local header strong { color: var(--teal); }
.tablero-track.is-tor header strong { color: var(--sand); }
.tablero-track.is-vpn header strong { color: var(--market); }
.tablero-track.is-translate header strong { color: #6a4c8a; }
.tablero-track.is-stealth header strong { color: #8a3d5c; }
.tablero-track.is-otros header strong { color: var(--good); }
.tablero-track.is-translate { border-left-color: #6a4c8a; }
.tablero-track.is-stealth { border-left-color: #8a3d5c; }
.tablero-track.is-now { background: #fff; }
.tablero-track header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}
.tablero-track header span { color: var(--muted); font-size: 13px; }
.tablero-mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.tablero-rail {
  height: 7px;
  background: rgba(42, 74, 60, 0.1);
}
.tablero-rail i {
  display: block;
  height: 100%;
  background: var(--teal);
}
.tablero-track.is-cool .tablero-rail i { background: var(--sand); }
.tablero-tape {
  display: block;
  width: 100%;
  height: 88px;
  margin-top: 12px;
  border: 1px solid var(--line);
}
.tablero-fig {
  margin: 12px 0 0;
}
.tablero-fig figcaption {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tablero-pace {
  font-family: Newsreader, serif;
  font-size: clamp(1.12rem, 2.2vw, 1.5rem);
  line-height: 1.28;
  margin: 0 0 10px;
}
.tablero-pace b,
.tablero-kpis dd {
  font-variant-numeric: tabular-nums;
}
.tablero-sub {
  margin: 12px 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tablero-chart-tall {
  min-height: 148px;
}
.tablero-chart-mid {
  min-height: 130px;
}
.tablero-chart {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}
.tablero-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
}
.tablero-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  vertical-align: -1px;
}
.tablero-stack { margin: 0 0 12px; }
.tablero-stack-bar {
  display: grid;
  width: 100%;
  height: 18px;
  background: rgba(42, 74, 60, 0.1);
  overflow: hidden;
}
.tablero-stack-bar i { display: block; width: 100%; height: 100%; min-width: 0; }
@keyframes tablero-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.tablero-track.is-now header strong::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: tablero-pulse 1.4s ease-in-out infinite;
}
.tablero-bar {
  display: grid;
  grid-template-columns: minmax(80px, 34%) 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  font-size: 13px;
}
.tablero-bar b {
  display: block;
  height: 8px;
  background: rgba(42, 74, 60, 0.12);
  position: relative;
}
.tablero-bar b::after {
  content: "";
  display: block;
  width: var(--w, 0%);
  height: 100%;
  background: var(--teal);
}
.tablero-bar i {
  font-style: normal;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}
.tablero-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tablero-chip {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 4px 8px;
  background: #e7f0e3;
}
.tablero-chip.is-hot { background: #f3e2d6; color: var(--high); }
.tablero-empty { color: var(--muted); }
.tablero-logs {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  max-height: 240px;
  overflow: auto;
}
.tablero-logs li {
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  .tablero-bar { grid-template-columns: 1fr auto; }
  .tablero-bar b { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .tablero-rail i, .tablero-bar b::after { transition: none; }
  .tablero-track.is-now header strong::before { animation: none; }
}

/* Marker pulse effect for map clicks */
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 0 10px rgba(42, 74, 60, 0.5); }
  50% { box-shadow: 0 0 25px rgba(42, 74, 60, 0.8); }
}

@keyframes pulse-border {
  0%, 100% { border-width: 2px; }
  50% { border-width: 4px; }
}

/* Apply pulse effect to selected markers */
.marker-pulsing {
  animation: pulse-scale 1.2s ease-out, pulse-shadow 1.2s ease-out, pulse-border 1.2s ease-out infinite;
  will-change: transform, box-shadow, border-width;
}
