/* MAPABEER 0.9 · Estilos de la app.
   Identidad del manual v1.0: amarillo #FFC400, negro #111111, blanco y gris #F4F4F4; Arial.
   Blanco para leer, negro para el texto, amarillo para acciones y detalles de marca. */

:root {
  --y: #FFC400;
  --y-soft: #FFF3C4;
  --k: #111111;
  --w: #FFFFFF;
  --g: #F4F4F4;
  --line: #E4E4E4;
  --muted: #5C5C5C;
  --ok: #1B7F3A;
  --ok-soft: #E6F4EA;
  --err: #B3261E;
  --err-soft: #FCE8E6;
  --warn: #6E4B00;
  --font: Arial, "Helvetica Neue", Helvetica, "DejaVu Sans", sans-serif;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--k);
  background: var(--w);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; border-radius: 6px; }
/* El título recibe el foco al cambiar de pantalla (lectores de pantalla); no necesita marco visible. */
h1[tabindex="-1"]:focus, #view:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--k); color: var(--w); padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { top: 8px; }

/* ---------- Estructura ---------- */
#app { min-height: 100vh; min-height: 100dvh; }
#view { padding: 0 16px calc(var(--tab-h) + var(--safe-b) + 28px); max-width: 760px; margin: 0 auto; }
body[data-view="map"] #view { padding: 0; max-width: none; }
body[data-view="bare"] #view { padding-bottom: 32px; }
body[data-view="bare"] .tabbar { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: 56px; padding: calc(6px + var(--safe-t)) 0 6px;
  margin: 0 -16px 8px; padding-left: 8px; padding-right: 8px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title:first-child { padding-left: 8px; }
.topbar-actions { display: flex; gap: 4px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--w); border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; font-size: 12px; color: var(--muted); position: relative;
}
.tab .tab-icon { display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; }
.tab[aria-current="page"] { color: var(--k); font-weight: bold; }
.tab[aria-current="page"] .tab-icon { background: var(--y); }
.tab .dot { position: absolute; top: 6px; left: calc(50% + 10px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: var(--w); font-size: 11px; font-weight: bold; display: grid; place-items: center; }

@media (min-width: 900px) {
  .tabbar { top: 0; right: auto; width: 96px; height: auto; grid-template-columns: 1fr; grid-auto-rows: 84px; align-content: start; padding-top: 16px; border-top: 0; border-right: 1px solid var(--line); }
  .tabbar::before { content: ""; height: 8px; }
  #view, .toast-wrap { padding-left: 96px; }
  #view { max-width: calc(760px + 96px); padding-right: 16px; padding-bottom: 48px; }
  body[data-view="map"] #view { padding-left: 96px; padding-right: 0; }
  .topbar { margin-left: -16px; }
  body[data-view="bare"] #view { padding-left: 16px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 18px; border-radius: 12px;
  border: 2px solid var(--y); background: var(--y); color: var(--k);
  font-weight: bold; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.dark { background: var(--k); border-color: var(--k); color: var(--w); }
.btn.ghost { background: var(--w); border-color: var(--k); }
.btn.light { background: var(--g); border-color: var(--g); }
.btn.danger { background: var(--w); border-color: var(--err); color: var(--err); }
.btn.block { width: 100%; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.btn.tiny { min-height: 34px; padding: 5px 11px; font-size: 14px; border-radius: 9px; border-width: 1.5px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 22px; background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--g); }
.icon-btn.on-image { background: rgba(255,255,255,.94); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.link { background: none; border: 0; padding: 4px 0; font-weight: bold; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.muted { font-weight: normal; color: var(--muted); }

.actions4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px;
  border: 0; background: none; text-decoration: none; font-size: 13px; cursor: pointer; border-radius: var(--r-s);
}
.action .ring { width: 48px; height: 48px; border-radius: 24px; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--w); }
.action[aria-pressed="true"] .ring { background: var(--y); border-color: var(--y); }
.action:disabled { opacity: .45; }

/* ---------- Formularios ---------- */
.stack { display: grid; gap: 14px; }
.stack.tight { gap: 8px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
/* 0.9.7: enlaces discretos en fila (Avisar · Bloquear) que bajan de línea en pantallas estrechas */
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: bold; font-size: 15px; }
.field-hint { color: var(--muted); font-size: 14px; }
input:not([type]), input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="url"], input[type="tel"], input[type="time"], input[type="date"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1.5px solid #CFCFCF; border-radius: 12px; background: var(--w);
  font-size: 16px; /* evita el zoom de iOS */
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--k); box-shadow: 0 0 0 3px var(--y); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; accent-color: var(--k); flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check span { padding-top: 1px; }
.form-msg { min-height: 0; font-size: 15px; }
.form-msg.error { color: var(--err); font-weight: bold; }
.form-msg.ok { color: var(--ok); font-weight: bold; }

.search {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 14px; border-radius: 26px; background: var(--g);
}
.search input { border: 0; background: transparent; min-height: 50px; padding: 0; box-shadow: none !important; }
.search svg { flex: none; color: var(--muted); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: #D6D6D6; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: var(--w); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--y); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button, .chip {
  min-height: 40px; padding: 8px 14px; border-radius: 10px; border: 0;
  background: var(--g); font-size: 15px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--y); font-weight: bold; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border-radius: 20px; flex: none; }

input[type="range"] { width: 100%; accent-color: var(--y); height: 32px; }

/* ---------- Secciones y listas ---------- */
.section { margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.section-head .link { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.bold { font-weight: bold; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.mt2 { margin-top: 24px; }

.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; min-height: 64px;
}
.item:last-child { border-bottom: 0; }
button.item { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; }
.item-main { flex: 1; min-width: 0; }
/* Filas con varias acciones (administración): si no caben al lado, las acciones bajan a su propia línea. */
.item.wrap { flex-wrap: wrap; }
.item.wrap > .item-main { flex: 1 1 260px; }
.item.wrap > .row-end { margin-left: auto; }
.item-title { display: block; font-weight: bold; overflow-wrap: anywhere; }
.item-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.item-side { text-align: right; flex: none; }
.item .chev { color: #9A9A9A; flex: none; }

.logo-dot {
  width: 44px; height: 44px; border-radius: 22px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--g); font-weight: bold; font-size: 15px; border: 1px solid var(--line);
}
.logo-dot img { width: 100%; height: 100%; object-fit: cover; }
.logo-dot.big { width: 64px; height: 64px; border-radius: 32px; font-size: 20px; }

.thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex: none; background: var(--g); display: grid; place-items: center; color: #9A9A9A; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.brands { display: flex; gap: 14px; overflow-x: auto; padding: 4px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.brands::-webkit-scrollbar { display: none; }
.brand { display: grid; justify-items: center; gap: 6px; width: 74px; flex: none; text-decoration: none; font-size: 13px; text-align: center; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 74px; }

.stars { display: inline-flex; gap: 1px; vertical-align: -2px; }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; }
.rating b { font-size: 15px; }

/* Procedencia del dato: quién lo dice y cuándo */
.src { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.src::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #BDBDBD; flex: none; }
.src.local::before { background: var(--k); }
.src.brand::before { background: var(--y); box-shadow: 0 0 0 1px var(--k); }
.src.comm::before { background: #8C8C8C; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; font-size: 13px; font-weight: bold; background: var(--g); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--y-soft); color: var(--warn); }
.badge.err { background: var(--err-soft); color: var(--err); }
.badge.dark { background: var(--k); color: var(--w); }
.state { width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.state.ok { background: var(--ok); color: var(--w); }
.state.pending { border: 2px solid #B5B5B5; color: #8C8C8C; }

.price { font-weight: bold; font-size: 16px; white-space: nowrap; }
.prices { display: grid; gap: 2px; justify-items: end; }
.price-line { font-size: 13px; color: var(--muted); white-space: nowrap; }

.note { padding: 12px 14px; border-radius: var(--r-m); background: var(--g); font-size: 15px; }
.note.warn { background: var(--y-soft); }
.note.err { background: var(--err-soft); color: var(--err); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.note.dark { background: var(--k); color: var(--w); }

.card { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px; background: var(--w); }
/* Fusionar (0.9.3): cuál se queda y cuál desaparece */
.merge-intro:focus { outline: none; }
.merge-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: start; }
.merge-row > .badge { justify-self: start; margin-top: 1px; }
@media (max-width: 360px) { .merge-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }
.empty.card { color: var(--k); }

.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px 0; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--k); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 12px 10px; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { border-bottom-color: var(--y); color: var(--k); font-weight: bold; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--g); border-radius: var(--r-m); padding: 12px; }
.kpi b { display: block; font-size: 24px; }
.kpi span { font-size: 13px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; color: var(--muted); font-weight: bold; }
.scroll-x { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }

/* ---------- Inicio ---------- */
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--safe-t)) 0 10px; }
.city-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font-size: 18px; font-weight: bold; padding: 8px 4px; cursor: pointer; min-width: 0; }
.city-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: var(--w); font-size: 11px; font-weight: bold; display: grid; place-items: center; }

/* Recorrido: la línea discontinua y el marcador son el recurso gráfico de la marca */
.route-hero { position: relative; margin: 18px 0 6px; padding: 18px 18px 18px 64px; border-radius: var(--r-l); background: var(--y); overflow: hidden; }
.route-hero h2 { font-size: 21px; max-width: 18ch; }
.route-hero p { margin-top: 6px; max-width: 34ch; font-size: 15px; }
.route-hero .btn { margin-top: 14px; background: var(--k); color: var(--w); border-color: var(--k); }
.route-hero svg.route { position: absolute; left: 14px; top: 10px; bottom: 10px; height: calc(100% - 20px); width: 40px; }
/* 0.9.9: «Explorar el mapa» y, debajo, «¿Cómo funciona?», los dos del mismo ancho */
.route-hero .hero-actions { display: grid; grid-template-columns: minmax(0, max-content); gap: 10px; margin-top: 14px; }
.route-hero .hero-actions .btn { margin-top: 0; }
.route-hero .hero-actions .btn.ghost { background: transparent; color: var(--k); border-color: var(--k); }

/* ---------- 0.9.9 · Cómo funciona: cinco pasos con su icono y su número ---------- */
.how-page { display: grid; gap: 18px; padding-top: 14px; max-width: 640px; }
.how-lead { font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: paso; }
.how li { counter-increment: paso; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.how .how-ico { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--y); color: var(--k); display: grid; place-items: center; }
.how .how-ico::after { content: counter(paso); position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--k); color: var(--w); font: bold 12px/22px var(--font); text-align: center; border: 2px solid var(--w); }
.how h2 { font-size: 18px; line-height: 1.25; margin: 4px 0 4px; }
.how p { margin: 0; line-height: 1.45; }
.how .link { display: inline-block; margin-top: 6px; }
.how-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.how-actions .btn { flex: 1 1 200px; }
.how-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Ficha ---------- */
.hero { position: relative; margin: 0 -16px; height: 230px; background: var(--g); overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #A0A0A0; }
.hero .hero-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: calc(10px + var(--safe-t)) 10px 10px; }
.hero .logo-dot { position: absolute; left: 16px; bottom: -26px; width: 64px; height: 64px; border-radius: 32px; border: 3px solid var(--w); background: var(--w); }
.place-head { padding-top: 16px; }
.place-head.has-logo { padding-top: 36px; }
.place-head h1 { font-size: 24px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--muted); font-size: 15px; align-items: center; }
.meta .ico { display: inline-flex; align-items: center; gap: 5px; }
.st-open { color: var(--ok); font-weight: bold; }
.st-closed { color: var(--err); font-weight: bold; }
.closed-banner { margin-top: 12px; }

.beer-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.beer-row:last-child { border-bottom: 0; }
.beer-row .item-main { cursor: pointer; }
.beer-row button.beer-open { border: 0; background: none; padding: 0; text-align: left; display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; cursor: pointer; }

.crit { display: grid; gap: 8px; }
.crit-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 15px; }
.bar { height: 8px; border-radius: 4px; background: var(--g); overflow: hidden; grid-column: 1 / -1; }
.bar i { display: block; height: 100%; background: var(--y); border-radius: 4px; }

.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours tr.today td { font-weight: bold; }
.hours td:last-child { text-align: right; }

.review { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 18px; background: var(--y); display: grid; place-items: center; font-weight: bold; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 76px; height: 76px; border-radius: 38px; font-size: 28px; }

/* ---------- Valorar ---------- */
.rate-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rate-block:last-of-type { border-bottom: 0; }
.rate-q { display: grid; gap: 8px; padding: 10px 0; }
.rate-q .q-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rate-q .q-hint { color: var(--muted); font-size: 14px; }
.star-input { display: flex; gap: 4px; }
.star-input button { width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--g); display: grid; place-items: center; cursor: pointer; padding: 0; }
.star-input button[aria-checked="true"] { background: var(--y-soft); }
.star-input.big button { width: 54px; height: 54px; }
details.more { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
details.more summary { cursor: pointer; font-weight: bold; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 20px; margin-left: auto; }
details.more[open] summary::after { content: "–"; }

.presence { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: var(--g); }
.presence.ok { background: var(--ok-soft); }

/* ---------- Mapa ---------- */
.map-wrap { position: fixed; inset: 0 0 calc(var(--tab-h) + var(--safe-b)) 0; }
@media (min-width: 900px) { .map-wrap { left: 96px; bottom: 0; } }
#map { position: absolute; inset: 0; background: #EDEDED; }
.map-top { position: absolute; top: calc(10px + var(--safe-t)); left: 10px; right: 10px; z-index: 500; display: flex; gap: 8px; align-items: center; }
.map-top .search { flex: 1; background: var(--w); box-shadow: 0 2px 8px rgba(0,0,0,.18); min-height: 48px; }
.map-top .search input { min-height: 46px; }
.map-fab { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--w); box-shadow: 0 2px 8px rgba(0,0,0,.2); display: grid; place-items: center; cursor: pointer; position: relative; }
.map-fab .dot { position: absolute; top: -3px; right: -3px; width: 20px; height: 20px; border-radius: 10px; background: var(--y); border: 2px solid var(--k); font-size: 11px; font-weight: bold; display: grid; place-items: center; }
.map-side { position: absolute; right: 10px; bottom: 14px; z-index: 500; display: grid; gap: 10px; }
.map-status { position: absolute; top: calc(66px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 500; background: var(--k); color: var(--w); padding: 8px 14px; border-radius: 18px; font-size: 14px; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.map-card { position: absolute; left: 10px; right: 70px; bottom: 14px; z-index: 600; background: var(--w); border-radius: var(--r-l); box-shadow: 0 4px 18px rgba(0,0,0,.22); padding: 12px; max-width: 520px; }
.map-card-main { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.map-card .thumb { width: 84px; height: 84px; }
/* 0.9.8: atajos de administración en la tarjeta del mapa y barra para mover la chincheta */
.map-card-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.map-move { position: absolute; left: 10px; right: 10px; top: calc(66px + var(--safe-t)); z-index: 650; max-width: 560px; background: var(--k); color: var(--w); border-radius: var(--r-m); padding: 12px; display: grid; gap: 10px; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.map-move p { margin: 0; font-size: 14px; }
.map-move .btn.ghost { background: transparent; color: var(--w); border-color: var(--w); }
.pin.moving svg { transform: scale(1.25); transform-origin: 50% 100%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.pin { background: none; border: 0; }
.pin svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.pin.sel svg { transform: scale(1.18); transform-origin: 50% 100%; }
.cluster { width: 40px; height: 40px; border-radius: 20px; background: var(--k); color: var(--y); font-weight: bold; display: grid; place-items: center; border: 3px solid var(--y); font-size: 14px; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 11px; }
.me-dot { width: 18px; height: 18px; border-radius: 9px; background: #1A73E8; border: 3px solid var(--w); box-shadow: 0 0 0 6px rgba(26,115,232,.2); }

/* ---------- Hojas, avisos y bienvenida ---------- */
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(17,17,17,0); display: flex; align-items: flex-end; justify-content: center; transition: background-color .18s ease; }
.sheet.open { background: rgba(17,17,17,.45); }
.sheet-panel {
  width: 100%; max-width: 620px; max-height: calc(100dvh - 40px); overflow: auto;
  background: var(--w); border-radius: var(--r-l) var(--r-l) 0 0; padding: 6px 16px calc(20px + var(--safe-b));
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain;
}
.sheet.open .sheet-panel { transform: none; }
.sheet-panel.wide { max-width: 860px; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: #D0D0D0; margin: 6px auto 4px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 10px; position: sticky; top: -6px; background: var(--w); z-index: 1; }
.sheet-head h2 { font-size: 19px; }
@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: var(--r-l); max-height: calc(100dvh - 80px); padding-bottom: 20px; transform: translateY(16px); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
  .sheet.open .sheet-panel { opacity: 1; }
}

.toast-wrap { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b) + 12px); z-index: 1100; display: flex; justify-content: center; pointer-events: none; padding: 0 16px; }
.toast { background: var(--k); color: var(--w); padding: 12px 16px; border-radius: 12px; font-size: 15px; max-width: 520px; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: none; }
.toast.error { background: var(--err); }
.toast.ok { border-left: 6px solid var(--y); }

.consent { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 900; background: var(--w); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 4px 18px rgba(0,0,0,.16); padding: 14px; display: grid; gap: 10px; max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .consent { left: 112px; } }

.welcome { min-height: 100dvh; display: grid; align-content: center; gap: 22px; padding: 32px 4px calc(32px + var(--safe-b)); max-width: 440px; margin: 0 auto; }
.welcome .logo { width: 300px; max-width: 100%; margin: 0 auto; }
.welcome .claim { text-align: center; font-size: 17px; }
.welcome .age { text-align: center; color: var(--muted); font-size: 14px; }

.auth { max-width: 440px; margin: 0 auto; }
.auth .logo { width: 300px; max-width: 100%; margin: 12px auto 6px; }

.profile-head { display: flex; gap: 16px; align-items: center; padding: 18px 0 8px; }
.profile-head a { text-decoration: none; flex: none; }
.level { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 8px; background: var(--y); font-weight: bold; font-size: 14px; }

.menu { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; text-align: left; font-size: 16px; cursor: pointer; }
.menu .grow { flex: 1; }
.menu .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--err); color: var(--w); font-size: 12px; font-weight: bold; display: grid; place-items: center; }

.qr-box { display: grid; justify-items: center; gap: 10px; padding: 16px; border: 2px solid var(--k); border-radius: var(--r-l); }
.qr-box img, .qr-box canvas { width: 220px; height: 220px; image-rendering: pixelated; }

.chart { width: 100%; height: 160px; }
.chart rect.b { fill: var(--k); }
.chart rect.b.alt { fill: var(--y); }
.chart text { font-size: 10px; fill: var(--muted); font-family: var(--font); }

.module { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.module .badge { grid-row: span 2; align-self: start; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }

/* ---------- Páginas informativas ---------- */
.prose p { max-width: 68ch; }
.prose .section p + p, .prose .section p + ul, .prose .section ul + p { margin-top: 10px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { max-width: 68ch; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 10px; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(paso); width: 30px; height: 30px; border-radius: 50%; background: var(--y); color: var(--k); font-weight: bold; display: grid; place-items: center; }
.about-brand { display: grid; justify-items: center; gap: 10px; padding: 20px 16px 22px; border-radius: var(--r-l); background: var(--w); border: 1px solid var(--line); }
.about-brand img { width: 300px; height: auto; }
.about-brand .claim { font-size: 18px; font-weight: bold; }

@media print {
  .tabbar, .topbar, .toast-wrap, .consent, .no-print { display: none !important; }
  #view { padding: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Carga inicial y sin conexión ---------- */
.splash { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 32px 16px; text-align: center; background: var(--w); }
.splash img { width: 300px; height: auto; }
.splash p { max-width: 36ch; color: var(--muted); }
.splash h1 { font-size: 22px; }
.noscript { margin: 24px 16px; padding: 14px; border-radius: var(--r-m); background: var(--y-soft); text-align: center; }

/* ---------- 0.9.1 · Textos legales y consentimientos ---------- */
.page-title { font-size: 24px; line-height: 1.2; margin: 4px 0 0; text-wrap: balance; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.legal-links.center { justify-content: center; }
.legal-links a { color: var(--k); text-decoration: underline; text-underline-offset: 2px; min-height: 32px; display: inline-flex; align-items: center; }
.data-info { border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 12px; font-size: 14px; }
.data-info summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.data-info ul { margin: 4px 0 6px; padding: 0; list-style: none; display: grid; gap: 4px; }
.legal-holder { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 8px 0; padding: 12px 14px; background: var(--g); border-radius: var(--r-m); }
.legal-holder dt { font-weight: 700; }
.legal-holder dd { margin: 0; overflow-wrap: anywhere; }
.prose code { background: var(--g); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
@media (max-width: 380px) { .legal-holder { grid-template-columns: minmax(0, 1fr); gap: 2px; } .legal-holder dd { margin-bottom: 8px; } }

/* ---------- 0.9.4 · Ordenador: logo en el menú, Inicio con el mapa al lado y listas en tarjetas ---------- */
.rail-logo { display: none; }
.home-map { display: none; }
@media (min-width: 900px) {
  .tabbar { grid-template-rows: 112px; }
  .tabbar::before { content: none; }
  .rail-logo { display: grid; place-items: center; align-self: center; justify-self: center; width: 84px; height: 96px; border-radius: var(--r-m); text-decoration: none; }
  .rail-logo img { width: 76px; height: auto; }
  .rail-logo:hover { background: var(--g); }
  .tab:hover:not([aria-current="page"]) .tab-icon { background: var(--g); }
  .tabbar { overflow-y: auto; scrollbar-width: none; }
  /* La foto de la ficha, con márgenes y esquinas como el resto de la página */
  .hero { margin: 16px 0 0; border-radius: var(--r-l); }
}
@media (min-width: 1100px) {
  body[data-wide="full"] #view { max-width: none; margin: 0; padding-right: 0; padding-bottom: 0; }
  .home-desk { display: grid; grid-template-columns: minmax(0, clamp(560px, 42vw, 720px)) minmax(0, 1fr); align-items: start; }
  .home-main { min-width: 0; padding: 0 36px 40px; }
  .home-map { display: block; position: sticky; top: 0; height: 100vh; height: 100dvh; border-left: 1px solid var(--line); background: #EDEDED; }
  .hm-map { position: absolute; inset: 0; }
  .hm-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 500; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
  .hm-top > * { pointer-events: auto; }
  .hm-status { background: var(--w); padding: 9px 14px; border-radius: 20px; font-size: 14px; font-weight: bold; box-shadow: 0 2px 8px rgba(0,0,0,.16); max-width: 60%; }
  .hm-open { flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
  .home-map .map-card { left: 16px; right: 64px; bottom: 16px; }
  .home-main .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-main .cards > li { display: flex; min-width: 0; }
  .home-main .cards > li:only-child { grid-column: 1 / -1; display: block; }
  .home-main .cards .item, .home-main .cards .item:last-child { flex: 1; min-width: 0; min-height: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); align-items: flex-start; }
  .home-main .cards .item:hover { background: var(--g); border-color: #D2D2D2; }
  .home-main .cards .chev { display: none; }
  .home-main .cards .thumb { width: 56px; height: 56px; border-radius: 10px; }
  .home-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; align-items: start; }
}
/* Pantallas anchas pero bajas (un móvil girado): sin logo, para que quepan las cuatro secciones */
@media (min-width: 900px) and (max-height: 560px) {
  .tabbar { grid-template-rows: none; padding-top: 8px; }
  .rail-logo { display: none; }
}
/* Ficha del local en el ordenador: la información al lado de la carta */
@media (min-width: 1200px) {
  body[data-wide="two"] #view { max-width: calc(1140px + 112px); }
  .place-desk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; align-items: start; }
  .place-desk > .hero { grid-column: 1 / -1; height: 280px; }
  .place-main { min-width: 0; }
  .place-side { min-width: 0; padding-top: 20px; display: grid; gap: 16px; }
  .place-side > .section { margin-top: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-l); }
  .place-side > .stack { margin-top: 0; }
}
/* Una casilla que no se puede marcar se ve apagada (fallos e ideas sin el correo confirmado) */
.check input:disabled { opacity: .45; cursor: default; }
.check:has(input:disabled) { cursor: default; }
.check:has(input:disabled) > span { color: var(--muted); }

/* ---------- 0.9.5 · La versión a la vista (al pie del menú en el ordenador y de Perfil) ---------- */
.rail-version { display: none; }
.version-line { margin: 22px 0 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; }
.version-line a { color: inherit; text-decoration: none; font-weight: bold; }
.update-bar {
  position: fixed; z-index: 1050; top: calc(10px + var(--safe-t)); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px;
  padding: 8px 6px 8px 14px; border-radius: var(--r-m); background: var(--k); color: var(--w);
  box-shadow: 0 4px 18px rgba(0,0,0,.25); font-size: 15px;
}
.update-bar span { flex: 1; min-width: 0; }
.update-bar .icon-btn { color: var(--w); }
.update-bar .icon-btn:hover { background: rgba(255,255,255,.12); }
@media (min-width: 900px) {
  .rail-version { display: grid; justify-items: center; gap: 6px; position: absolute; left: 0; right: 0; bottom: 14px; padding: 0 4px; text-align: center; font-size: 12px; line-height: 1.25; }
  .rail-version a { display: grid; gap: 2px; justify-items: center; color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: 8px; }
  .rail-version a:hover { background: var(--g); }
  .rail-version b { color: var(--k); font-size: 12px; letter-spacing: .02em; }
  .rail-version .ok { display: inline-flex; align-items: center; gap: 4px; }
  .rail-version .ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
  .rail-version .warn { color: var(--warn); }
  .rail-version .upd { border: 0; border-radius: 8px; background: var(--y); color: var(--k); font: inherit; font-weight: bold; padding: 4px 8px; cursor: pointer; }
  .update-bar { left: calc(50% + 48px); width: min(560px, calc(100% - 132px)); }
}
@media (min-width: 900px) and (max-height: 560px) { .rail-version { display: none; } }

/* ---------- 0.9.5 · Bienvenida: crear cuenta a la vista, con lo que ya da tener cuenta ---------- */
.welcome { gap: 18px; }
.join { display: grid; gap: 14px; padding: 18px 16px 14px; border-radius: var(--r-l); background: var(--g); }
.join h2 { margin: 0; font-size: 21px; line-height: 1.2; text-align: center; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perks li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 15px; line-height: 1.3; }
.perks li > svg { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: var(--y); }
.join .small { margin: 0; }
.join .small a { font-weight: bold; }
/* El recuadro de los premios (Administración › Ajustes): negro con el trofeo amarillo, para que se vea sin gritar */
.promo { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-radius: var(--r-m); background: var(--k); color: var(--w); text-decoration: none; }
.promo b { font-size: 17px; line-height: 1.25; }
.promo > svg:first-child { color: var(--y); }
.promo:hover, .promo:focus-visible { background: #2A2A2A; }
.auth .promo { margin: 4px 0; }
@media (max-height: 700px) { .welcome .logo { width: 230px; } .welcome { gap: 14px; padding-top: 20px; } }

/* ---------- 0.9.5 · «Ver los que tengo cerca» en el Inicio: un botón que se ve ---------- */
.section-head:has(.near-btn) { flex-wrap: wrap; align-items: center; row-gap: 8px; }
.section-head:has(.near-btn) h2 { min-width: 0; }
.near-btn { flex: none; min-height: 40px; }
.near-btn svg { flex: none; }

/* ---------- 0.9.8 · Lápices de edición en la ficha (quien la gestiona) ---------- */
.pen { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 8px; border-radius: 15px; background: var(--y); color: var(--k); vertical-align: middle; text-decoration: none; flex: none; }
.pen:focus-visible { outline: 3px solid var(--k); outline-offset: 2px; }
h1 .pen { position: relative; top: -2px; }
/* ---------- 0.9.8 · Encuadre de las fotos ---------- */
.frame-stage { position: relative; max-width: 560px; margin: 0 auto; background: var(--g); border-radius: var(--r-m); overflow: hidden; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.frame-stage:focus-visible { outline: 3px solid var(--k); outline-offset: 3px; }
.frame-stage img { display: block; width: 100%; height: auto; pointer-events: none; }
.frame-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 17px; border: 3px solid var(--w); background: rgba(255,196,0,.55); box-shadow: 0 0 0 2px var(--k), 0 2px 8px rgba(0,0,0,.4); pointer-events: none; }
.frame-previews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; align-items: end; }
.frame-prev { display: grid; gap: 4px; min-width: 0; }
.frame-box { position: relative; overflow: hidden; border-radius: 10px; background: var(--g); border: 1px solid var(--line); }
.frame-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-box.phone { aspect-ratio: 390 / 230; }
.frame-box.desk { aspect-ratio: 1140 / 280; }
.frame-box.thumb-prev { aspect-ratio: 1; width: 76px; }
.photo-tile { position: relative; }
.photo-tile .badge { position: absolute; left: 6px; top: 6px; }

/* ---------- 0.9.10 · Premios del mes y del año ---------- */
.prize-lead { font-size: 17px; line-height: 1.45; margin: 14px 0 4px; text-wrap: pretty; }
.prize-area, .prize-join { margin-top: 14px; }
.prize-area .btn { flex: none; }
.prize-join h2 { font-size: 18px; margin: 0; }
.prize-card { display: grid; gap: 10px; }
.prize-card.off { background: var(--g); border-color: var(--g); }
.prize-zone { font-size: 18px; }
.prize-what { display: flex; gap: 8px; align-items: flex-start; margin: 0; line-height: 1.4; }
.prize-what svg { flex: none; margin-top: 1px; color: var(--warn); }
.progress { height: 8px; border-radius: 4px; background: var(--g); overflow: hidden; }
.progress > span { display: block; height: 100%; min-width: 4px; background: var(--y); border-radius: 4px; }
.prize-card .progress { background: var(--line); }
.rank .item.me { background: var(--y-soft); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.rank-pos { width: 38px; text-align: center; font-size: 16px; flex: none; }

/* ---------- 0.9.11 · Administración › Estadísticas ---------- */
@media (min-width: 900px) { body[data-wide="stats"] #view { max-width: calc(1180px + 96px); } }
.st { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 6px; }
.st-body > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.st-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.st-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.st-row > * { min-width: 0; }
.st-card { flex: 1 1 300px; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; background: var(--w); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-card.wide { flex: 3 1 520px; }
.st-card h2 { font-size: 17px; }
.st-card .sub { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.st-card.small { gap: 6px; }
.st-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.ink { color: var(--k); }
.st-live { flex: 1 1 260px; box-sizing: border-box; border-radius: var(--r-l); background: var(--k); color: var(--w); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.st-live p { margin: 0; }
.st-live-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: bold; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px rgba(255, 196, 0, .25); }
.st-now { display: flex; align-items: baseline; gap: 10px; }
.st-now b { font-size: 64px; line-height: 1; color: var(--y); }
.st-now span { font-size: 16px; line-height: 1.3; }
.st-meta { font-size: 14px; color: #D6D6D6; }
.st-live-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid #3A3A3A; display: grid; gap: 4px; font-size: 14px; color: #D6D6D6; }
.st-live-foot b { color: var(--w); }
.st-tiles { flex: 3 1 520px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.st-tile { background: var(--g); border-radius: var(--r-m); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-tile > span { font-size: 14px; color: var(--muted); }
.st-tile .v { font-size: 28px; line-height: 1.15; }
.st-tile small { font-size: 13px; color: var(--muted); }
.st-up { color: var(--ok); }
.st-down { color: var(--err); }
.st-plot { position: relative; height: 230px; }
.st-plot.cols { height: 200px; }
.st-y { position: absolute; left: 0; top: 8px; bottom: 28px; width: 40px; font-size: 12px; color: var(--muted); }
.st-y span { position: absolute; right: 6px; transform: translateY(50%); }
.st-area { position: absolute; left: 44px; right: 4px; top: 8px; bottom: 28px; }
.st-grid { position: absolute; left: 0; right: 0; height: 1px; background: #EDEDED; }
.st-grid.base { background: #CFCFCF; }
.st-area svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-fill { fill: var(--y-soft); }
.st-line { fill: none; stroke: var(--k); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.st-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(17, 17, 17, .35); pointer-events: none; }
.st-mark { position: absolute; width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 2px var(--w); pointer-events: none; }
.st-tip { position: absolute; top: 0; z-index: 2; white-space: nowrap; background: var(--k); color: var(--w); border-radius: 10px; padding: 7px 11px; font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.st-hits { position: absolute; inset: 0; display: flex; }
.st-hits button { flex: 1 1 0; min-width: 0; padding: 0; border: 0; background: transparent; cursor: crosshair; }
.st-hits button:focus-visible { outline: 2px solid var(--k); outline-offset: -2px; }
.st-x { position: absolute; left: 0; right: 0; top: calc(100% + 8px); font-size: 12px; color: var(--muted); }
.st-x span { position: absolute; white-space: nowrap; }
.st-cols { position: absolute; inset: 0; display: flex; }
.st-col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.st-col b { font-size: 13px; margin-bottom: 4px; white-space: nowrap; }
.st-col i { display: block; width: 24px; max-width: 70%; border-radius: 4px 4px 0 0; background: var(--k); }
.st-col.now i, .st-sw.now { background: var(--y); }
.st-col span { position: absolute; top: calc(100% + 6px); font-size: 12px; color: var(--muted); white-space: nowrap; }
.st-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.st-list { display: grid; gap: 10px; }
.st-li { display: grid; gap: 5px; }
.st-li .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.st-li .top > span { min-width: 0; }
.st-li .top > b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-li small { display: block; font-size: 12px; color: var(--muted); font-weight: normal; }
.st-li small.inline { display: inline; }
.st-track { flex: 1; height: 8px; border-radius: 4px; background: var(--g); }
.st-track i { display: block; height: 8px; min-width: 3px; max-width: 100%; border-radius: 4px; background: var(--k); }
.st-track i.soft { background: #A3A3A3; }
.st-seg { display: flex; gap: 2px; height: 28px; }
.st-seg i { flex: 1 1 0; display: flex; align-items: center; padding-left: 8px; border-radius: 4px; font-style: normal; font-size: 13px; font-weight: bold; white-space: nowrap; min-width: 0; }
.st-seg .c1, .st-key .c1 { background: var(--k); color: var(--w); }
.st-seg .c2, .st-key .c2 { background: var(--muted); color: var(--w); }
.st-seg .c3, .st-key .c3 { background: #A3A3A3; color: var(--k); }
.st-seg .c4, .st-key .c4 { background: var(--line); color: var(--k); }
.st-key { display: grid; gap: 8px; }
.st-key > div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.st-key i { flex: 0 0 12px; height: 12px; border-radius: 3px; }
.st-key span { flex: 1; min-width: 0; }
.st-key b { font-variant-numeric: tabular-nums; }
.st-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.st-group > h2 { font-size: 17px; }
.st-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.st-big { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.st-big > b:first-child { font-size: 26px; line-height: 1.1; }
.st-big > b + b { font-size: 13px; }
.st-mini { display: flex; align-items: flex-end; gap: 2px; height: 64px; margin-top: 4px; border-bottom: 1px solid #CFCFCF; }
.st-mini.dense { gap: 1px; }
.st-mini i { flex: 1 1 0; min-width: 0; border-radius: 2px 2px 0 0; background: var(--k); }
.st-mini i:last-child { background: var(--y); }
.st-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.st-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 14px; }
.st-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: normal; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.st-table td { padding: 9px 8px; border-bottom: 1px solid #F0F0F0; vertical-align: middle; }
.st-table th:first-child, .st-table td:first-child { padding-left: 0; }
.st-table th:last-child, .st-table td:last-child { padding-right: 0; }
.st-table td a { font-weight: bold; color: var(--k); }
.st-table td small { display: block; font-size: 12px; color: var(--muted); }
.st-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.st-table td:nth-child(2) { width: 36%; }
.st-meter { display: flex; align-items: center; gap: 8px; }
.st-meter b { min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.st-foot { max-width: 80ch; }
.st .scroll-x { overflow-x: auto; }
@media (max-width: 600px) { .st-x span:nth-child(even):not(:last-child) { display: none; } }
