/* Cerca Web — hoja de estilos base. Todo el sitio es un layout de columna
   centrado, máximo 480 px de ancho para que se vea igual en móvil que en
   escritorio (la app está pensada para consulta rápida familiar, no dashboards). */

:root {
  --cerca-blue: #1E88E5;
  --cerca-blue-dark: #1565C0;
  --cerca-bg: #EFEFEF;
  --cerca-fg: #111111;
  --cerca-muted: #666666;
  --cerca-danger: #C62828;
  --cerca-radius: 10px;
  --cerca-space: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cerca-bg);
  color: var(--cerca-fg);
  font-size: 16px;
  line-height: 1.35;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 20px 0 8px; }

.card {
  background: #fff;
  border-radius: var(--cerca-radius);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--cerca-muted);
  margin: 10px 0 4px;
}

input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #DDD;
  border-radius: 8px;
  font-size: 15px;
  background: #FAFAFA;
}
input:focus { outline: 2px solid var(--cerca-blue); background: #fff; }

button {
  background: var(--cerca-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 14px;
}
button:hover { background: var(--cerca-blue-dark); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary {
  background: #fff;
  color: var(--cerca-blue);
  border: 1px solid var(--cerca-blue);
}

.tab-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.tab-toggle button {
  flex: 1;
  margin: 0;
  background: #fff;
  color: var(--cerca-fg);
  border: 1px solid #DDD;
  font-weight: 500;
}
.tab-toggle button.active {
  background: var(--cerca-blue);
  color: #fff;
  border-color: var(--cerca-blue);
}

.error {
  background: #FFEBEE;
  color: var(--cerca-danger);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
}

.muted { color: var(--cerca-muted); font-size: 13px; }
.center { text-align: center; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #DDD;
  margin-bottom: 18px;
}
header.top .brand {
  font-weight: 700;
  color: var(--cerca-blue);
  font-size: 20px;
}

/* Fase 1a — tarjetas de círculo + lista de miembros */

.link-btn {
  background: transparent;
  color: var(--cerca-blue);
  width: auto;
  margin: 0;
  padding: 4px 10px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.link-btn:hover { background: transparent; color: var(--cerca-blue-dark); }

.circle-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px;
  margin: 0 0 12px;
  background: #fff;
  color: var(--cerca-fg);
  font-weight: 400;
  font-size: 15px;
  border-radius: var(--cerca-radius);
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
}
.circle-card:hover { background: #F7F9FC; }
.circle-name { font-weight: 600; font-size: 17px; margin-bottom: 4px; }

.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--cerca-radius);
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cerca-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { color: #fff; font-weight: 600; font-size: 18px; }
.member-info { flex: 1; min-width: 0; }
.member-name { font-weight: 500; }
.me-tag, .owner-tag, .badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.me-tag { background: #E3F2FD; color: var(--cerca-blue-dark); }
.owner-tag { background: #FFF3E0; color: #E65100; }
.badge { background: #F1F1F1; color: var(--cerca-muted); }
.member-row.clickable { cursor: pointer; transition: background 0.12s; }
.member-row.clickable:hover { background: #F7F9FC; }
.ring-btn {
  flex: 0 0 auto; width: auto; padding: 8px 12px; font-size: 13px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.member-chevron {
  flex: 0 0 auto;
  color: var(--cerca-muted);
  font-size: 22px;
  line-height: 1;
  padding-left: 8px;
}

/* Fase 1b — chat */
.chat-subtitle {
  margin: -8px 0 12px;
  font-size: 12px;
  color: var(--cerca-muted);
}
.chat-body {
  background: #fff;
  border-radius: var(--cerca-radius);
  padding: 12px;
  min-height: 320px;
  max-height: calc(100vh - 260px);
  overflow-y: auto;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.chat-empty {
  padding: 40px 12px;
  text-align: center;
  font-size: 14px;
}
.bubble {
  max-width: 82%;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 14px;
  font-size: 14.5px;
  word-wrap: break-word;
  clear: both;
}
.bubble.in {
  background: #F1F3F5;
  color: var(--cerca-fg);
  float: left;
  border-bottom-left-radius: 4px;
}
.bubble.out {
  background: var(--cerca-blue);
  color: #fff;
  float: right;
  border-bottom-right-radius: 4px;
}
.bubble-text { white-space: pre-wrap; }
.bubble-meta {
  font-size: 10.5px;
  opacity: 0.75;
  text-align: right;
  margin-top: 2px;
}
.bubble.in .bubble-meta { color: var(--cerca-muted); opacity: 1; }
.bubble-status { margin-left: 4px; }
.bubble.out .check-read { color: #34B7F1; }
.chat-body::after { content: ""; display: block; clear: both; }
.chat-input {
  display: flex;
  gap: 8px;
  margin: 0;
}
.chat-input input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid #DDD;
  background: #fff;
  font-size: 15px;
}
.chat-input button {
  width: auto;
  margin: 0;
  border-radius: 999px;
  padding: 12px 22px;
}
.btn-attach {
  background: #fff !important;
  color: var(--cerca-blue) !important;
  border: 1px solid #DDD !important;
  width: 44px !important;
  height: 44px;
  padding: 0 !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  flex: 0 0 44px;
}

/* Attach bottom sheet */
.attach-sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.15s ease-out;
}
.attach-sheet {
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px 16px 24px;
  display: flex; flex-direction: column; gap: 6px;
  animation: slideUp 0.2s ease-out;
}
.attach-sheet button {
  width: 100%; margin: 0;
  padding: 14px 16px;
  background: #F5F7FA;
  color: var(--cerca-fg);
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  text-align: left;
}
.attach-sheet button:hover { background: #E9EEF5; }
.attach-sheet .attach-cancel {
  background: transparent;
  color: var(--cerca-danger);
  text-align: center;
  margin-top: 4px;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { transform: translateY(20%) } to { transform: translateY(0) } }

/* Media bubbles */
.media-photo, .media-video {
  position: relative;
  max-width: 220px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #E9EEF5;
}
.media-photo img, .media-video img {
  display: block; width: 100%; height: auto; max-height: 260px;
  object-fit: cover;
}
.media-fallback {
  padding: 40px 20px;
  text-align: center; color: var(--cerca-muted);
  font-size: 13px;
}
.media-tap {
  position: absolute; bottom: 6px; right: 8px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
.media-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55); color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.media-duration {
  position: absolute; bottom: 6px; left: 8px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
}
.media-audio, .media-doc {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.14);
  border-radius: 8px;
  cursor: pointer;
  min-width: 180px;
}
.bubble.in .media-audio, .bubble.in .media-doc {
  background: rgba(0,0,0,0.05);
}
.media-icon { font-size: 22px; }
.media-label { flex: 1; font-size: 14px; line-height: 1.3; }
.media-loading { opacity: 0.6; }

/* Wallapop share card */
.wallapop-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255,255,255,0.14);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 220px;
  max-width: 280px;
}
.bubble.in .wallapop-card { background: rgba(0,0,0,0.05); }
.wp-thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #E9EEF5;
  flex-shrink: 0;
}
.wp-thumb-fallback {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.wp-info {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.wp-title {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wp-price {
  font-weight: 600;
  color: #0B7A0B;
  font-size: 15px;
}
.bubble.out .wp-price { color: #7CFCA6; }
.wp-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  opacity: 0.85;
}
.wp-city { color: inherit; }
.wp-brand { font-size: 10px; opacity: 0.7; }
.wp-caption {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
  white-space: pre-wrap;
}

/* ── Shell con pestañas (v0.6) ─────────────────────────────────────────── */
body.with-shell #app { max-width: none; padding: 0; margin: 0; height: 100%; }
.shell { display: flex; height: 100vh; height: 100dvh; }
.shell-nav {
  width: 200px; flex-shrink: 0; background: #fff; border-right: 1px solid #E3E3E3;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 10px;
}
.shell-brand { font-weight: 700; font-size: 20px; color: var(--cerca-blue); padding: 0 8px 10px; }
.circle-select {
  margin: 0 4px 12px; padding: 8px; border-radius: 8px; border: 1px solid #DDD;
  font-size: 14px; background: #FAFAFA;
}
.nav-tab {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0;
  background: transparent; color: var(--cerca-fg); font-weight: 500; text-align: left;
  padding: 10px 12px;
}
.nav-tab:hover { background: #F0F4FA; }
.nav-tab.active { background: #E3F0FD; color: var(--cerca-blue-dark); font-weight: 700; }
.nav-icon { width: 22px; text-align: center; }
.shell-view { flex: 1; min-width: 0; overflow: auto; position: relative; }
.shell-view.narrow { padding: 20px 16px 40px; }
.shell-view.narrow > * { max-width: 720px; margin-left: auto; margin-right: auto; }

.map-layout { display: flex; height: 100%; }
.map { flex: 1; min-width: 0; height: 100%; }
.map-side { width: 320px; flex-shrink: 0; overflow: auto; background: #fff; border-left: 1px solid #E3E3E3; padding-bottom: 20px; }
.map-side-title { font-weight: 700; font-size: 14px; padding: 16px 16px 6px; color: var(--cerca-muted); text-transform: uppercase; letter-spacing: .03em; }
.flight-side > .muted { padding: 0 16px 12px; margin: 0; }
.flight-search { padding: 8px 16px 14px; border-bottom: 1px solid #E3E3E3; }
.flight-search label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 6px; }
.flight-search-row { display: flex; gap: 8px; }
.flight-search-row input { box-sizing: border-box; width: 100%; min-width: 140px; flex: 1 1 0; border: 1px solid #CCD3DA; border-radius: 8px; padding: 10px; font: inherit; }
.flight-search-row .btn { box-sizing: border-box; width: auto; flex: 0 0 auto; border: 0; border-radius: 8px; padding: 0 14px; background: var(--cerca-blue); color: #fff; font-weight: 650; }
.flight-search small { display: block; margin-top: 6px; line-height: 1.35; }
.flight-route-search { padding: 10px 16px 14px; border-bottom: 1px solid #E3E3E3; }
.flight-route-search label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 650; }
.flight-route-fields { display: flex; gap: 7px; }
.flight-route-fields input { box-sizing: border-box; width: 50%; min-width: 0; border: 1px solid #CCD3DA; border-radius: 8px; padding: 9px; font: inherit; }
.flight-route-search .btn { width: 100%; margin-top: 7px; border: 0; border-radius: 8px; padding: 9px 12px; background: var(--cerca-blue); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.flight-route-search .btn:disabled { opacity: .55; }
.flight-route-search small { display: block; margin-top: 6px; line-height: 1.35; }
.flight-share { padding: 12px 16px; border-bottom: 1px solid #E3E3E3; }
.flight-share > b { color: #18364b; font-size: 13px; }
.flight-share > p { margin: 5px 0 9px; line-height: 1.35; }
.flight-share > .btn { width: 100%; border: 0; border-radius: 8px; padding: 9px 12px; background: var(--cerca-blue); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.flight-share > .btn:disabled { opacity: .6; }
.flight-share #flight-share-status { margin-top: 6px; }
.flight-day { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #D5DCE3; }
.flight-day > b { color: #18364b; font-size: 13px; }
.flight-day > p { margin: 5px 0 8px; line-height: 1.35; }
.flight-day-fields { display: flex; gap: 7px; }
.flight-day-fields input { box-sizing: border-box; width: 50%; min-width: 0; border: 1px solid #CCD3DA; border-radius: 8px; padding: 9px; font: inherit; }
.flight-day .btn { width: 100%; margin-top: 7px; border: 0; border-radius: 8px; padding: 9px 12px; background: var(--cerca-blue); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.flight-day .btn:disabled { opacity: .6; }
.flight-share-empty { padding: 8px 0 2px; }
.flight-share-row { display: flex; align-items: center; gap: 4px; border-top: 1px solid #E8EAED; }
.flight-share-flight { flex: 1; min-width: 0; padding: 8px 2px; border: 0; background: transparent; color: var(--cerca-fg); text-align: left; cursor: pointer; }
.flight-share-flight b, .flight-share-flight span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flight-share-flight b { color: #1769aa; font-size: 12px; }
.flight-share-flight span { margin-top: 2px; font-size: 11px; }
.flight-share-flight--day span { white-space: normal; line-height: 1.35; }
.flight-share-stop { padding: 5px 7px; border: 1px solid #CCD3DA; border-radius: 7px; background: #fff; color: var(--cerca-muted); font-size: 10px; cursor: pointer; }
.flight-status { padding: 12px 16px 6px; font-size: 12px; }
.flight-list { padding: 0 10px; }
.flight-row { display: block; width: 100%; text-align: left; padding: 10px; border: 0; border-bottom: 1px solid #E8EAED; background: transparent; cursor: pointer; color: var(--cerca-fg); }
.flight-row:hover { background: #F2F7FC; }
.flight-row-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.flight-row-top b { color: #1769aa; }
.flight-row > span { display: block; font-size: 12px; margin-top: 3px; }
.flight-row .flight-route { color: #1769aa; font-weight: 700; }
.flight-direction { font-weight: 600; }
.flight-credit { margin: 16px; padding-top: 10px; border-top: 1px solid #E3E3E3; font-size: 11px; color: var(--cerca-muted); }
.flight-credit a { color: var(--cerca-blue); }
.flight-marker { background: transparent; border: 0; }
.flight-marker-content { display: flex; align-items: center; gap: 3px; width: max-content; height: 60px; }
.flight-plane { position: relative; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; color: #0B68A5; filter: drop-shadow(0 1px 2px #fff); transform-origin: center; }
.flight-plane svg { width: 34px; height: 34px; fill: currentColor; }
.flight-label { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1px; max-width: 138px; padding: 4px 7px; border: 1px solid rgba(23, 105, 170, .25); border-radius: 8px; color: #18364b; background: rgba(255,255,255,.96); box-shadow: 0 1px 5px rgba(0,0,0,.25); line-height: 1.15; white-space: nowrap; }
.flight-label b { overflow: hidden; color: #1769aa; font-size: 12px; text-overflow: ellipsis; }
.flight-label span { font-size: 10px; font-weight: 650; }
.flight-marker--compact .flight-label { max-width: 72px; padding: 2px 5px; }
.flight-marker--compact .flight-label b { font-size: 9px; }
.flight-marker--compact .flight-label span,
.flight-marker--icon-only .flight-label { display: none; }
.pad { padding: 10px 16px; }
.pad-x { padding: 4px 16px 0; }
.small { font-size: 12px; }
.center { text-align: center; }

.member-loc, .place-go {
  display: block; width: 100%; margin: 0; text-align: left; background: transparent;
  color: var(--cerca-fg); font-weight: 400; border-radius: 0; padding: 10px 16px;
  border-bottom: 1px solid #F0F0F0;
}
.member-loc:hover, .place-go:hover { background: #F5F8FC; }
.member-loc-name { font-weight: 600; }
.place-row { display: flex; align-items: stretch; }
.place-row .place-go { flex: 1; }
.place-del { width: 44px; margin: 0; background: transparent; color: var(--cerca-danger); border-radius: 0; border-bottom: 1px solid #F0F0F0; }
.place-del:hover { background: #FDECEC; }
.event-row { padding: 8px 16px; font-size: 14px; border-bottom: 1px solid #F5F5F5; }
.primary-inline { width: calc(100% - 32px); margin: 16px 16px 4px; }
.card.compact { margin: 12px 16px; padding: 14px; }
.row-buttons { display: flex; gap: 8px; }
.row-buttons button { margin-top: 12px; }
input[type=range] { width: 100%; }
.place-label { background: rgba(255,255,255,.85); border: none; box-shadow: none; font-weight: 600; }

.member-pin { background: transparent; border: none; }
.member-pin-inner {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; overflow: hidden;
  background: var(--cerca-blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.member-pin-inner img { width: 100%; height: 100%; object-fit: cover; }
.member-pin.stale .member-pin-inner { opacity: .55; filter: grayscale(.6); }

/* Móvil: barra de pestañas abajo, lista bajo el mapa */
@media (max-width: 800px) {
  .shell { flex-direction: column-reverse; }
  .shell-nav {
    width: 100%; flex-direction: row; border-right: none; border-top: 1px solid #E3E3E3;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); gap: 0; align-items: center;
  }
  .shell-brand { display: none; }
  .circle-select { position: absolute; top: 10px; left: 50px; z-index: 1000; margin: 0; max-width: 55vw; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
  .nav-tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px; text-align: center; }
  .nav-icon { font-size: 20px; }
  .map-layout { flex-direction: column; }
  .map { flex: none; height: 55vh; }
  .map-side { width: 100%; border-left: none; }
}
.notice { background: #E8F5E9; color: #1B5E20; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-top: 12px; }
.pin-name { background: rgba(255,255,255,.9); border: none; box-shadow: 0 1px 3px rgba(0,0,0,.25); font-weight: 600; padding: 1px 6px; }
.pin-name::before { display: none; }

/* ── v0.7: datos del móvil ─────────────────────────────────────────────── */
.page { padding: 0; }
.car-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.car-name { font-weight: 700; font-size: 17px; }
.car-km { font-weight: 700; font-size: 17px; text-align: right; white-space: nowrap; }
.car-line { margin-top: 8px; font-size: 14px; }
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--cerca-blue-dark); }
.row-line { font-size: 14px; padding: 6px 0; border-bottom: 1px solid #F2F2F2; }
.badge { background: #E3F0FD; color: var(--cerca-blue-dark); border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.note.pinned { border-left: 4px solid #FB8C00; }
.note-text { white-space: pre-wrap; word-break: break-word; margin-bottom: 6px; }
.note-photo { max-width: 100%; border-radius: 8px; margin-bottom: 8px; }
.place-go.own div:first-child { color: #6A1B9A; }
.pending-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #F0F0F0; }
.pending-row .row-buttons button { margin-top: 0; padding: 8px 12px; width: auto; }
@media (max-width: 800px) {
  .shell-nav { overflow-x: auto; }
  .nav-tab { min-width: 64px; }
}


/* ── v0.8: rutas y herramientas ────────────────────────────────────────── */
.nav-group { font-size: 11px; font-weight: 700; color: var(--cerca-muted); text-transform: uppercase; letter-spacing: .05em; padding: 12px 12px 2px; }
.day-nav { display: flex; gap: 6px; align-items: center; padding: 14px 16px 6px; }
.day-nav input[type=date] { flex: 1; padding: 8px; border: 1px solid #DDD; border-radius: 8px; font-size: 14px; }
.icon-btn { width: 40px; margin: 0; padding: 8px 0; background: #F0F4FA; color: var(--cerca-blue-dark); }
.icon-btn:hover { background: #E3F0FD; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px; }
.chip { width: auto; margin: 0; padding: 6px 12px; border-radius: 16px; background: #F0F0F0; color: var(--cerca-fg); font-weight: 500; font-size: 13px; }
.chip.on { background: var(--cerca-blue); color: #fff; }
.card .chips { padding: 8px 0; }
.seg-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid #F2F2F2; margin: 0; font-size: 14px; color: var(--cerca-fg); cursor: pointer; }
.seg-num { width: 22px; height: 22px; border-radius: 50%; background: #1E88E5; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.seg-info { display: flex; flex-direction: column; flex: 1; }
.seg-zoom { width: auto; margin: 0; padding: 4px 8px; background: transparent; }
.seg-marker div { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-head h1 { margin: 0; }
.loc-select { padding: 8px; border: 1px solid #DDD; border-radius: 8px; font-size: 14px; background: #fff; max-width: 100%; }
.loc-select.full { width: 100%; }
.weather-now { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.now-icon { font-size: 56px; }
.now-temp { font-size: 40px; font-weight: 700; line-height: 1; }
.hours { display: flex; overflow-x: auto; gap: 4px; margin-top: 10px; padding-bottom: 6px; }
.hour { min-width: 56px; text-align: center; }
.big { font-size: 22px; }
.rain { color: #1565C0; }
.day-row { display: grid; grid-template-columns: 80px 32px 1fr auto 70px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #F2F2F2; }
.day-label { font-weight: 600; text-transform: capitalize; }
.temps { text-align: right; }
.windy { width: 100%; height: 420px; border: 0; border-radius: 8px; margin-top: 8px; }
.gas-row { display: flex; justify-content: space-between; gap: 8px; }
.gas-price { font-weight: 700; }
.gas-price.best { color: #2E7D32; }
.price-pin { background: transparent; border: none; }
.price-pin div { background: #fff; border: 2px solid #1E88E5; border-radius: 6px; padding: 1px 5px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.3); transform: translate(-50%, -50%); }
.price-pin div.best { border-color: #2E7D32; background: #E8F5E9; color: #1B5E20; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.search-row button { width: auto; margin: 0; }
.now-playing { margin-top: 12px; padding: 10px; background: #E3F0FD; border-radius: 8px; }
.small-link { font-size: 13px; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F2F2F2; }
.radio-logo { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: #F5F5F5; flex-shrink: 0; }
.radio-info { flex: 1; min-width: 0; }
.radio-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-btn { width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; font-size: 18px; flex-shrink: 0; }
@media (max-width: 800px) {
  .nav-group { display: none; }
  .day-row { grid-template-columns: 64px 28px 1fr 60px; }
  .day-row .rain { display: none; }
  .windy { height: 320px; }
}

.place-edit { width: 40px; margin: 0; background: transparent; color: var(--cerca-blue-dark); border-radius: 0; border-bottom: 1px solid #F0F0F0; font-size: 16px; }
.place-edit:hover { background: #E3F0FD; }
.place-label.own { color: #6A1B9A; }

/* ── v0.9: versión y novedades ─────────────────────────────────────────── */
.nav-version { margin-top: auto; width: 100%; background: transparent; color: var(--cerca-muted); font-size: 12px; font-weight: 500; padding: 10px 12px; text-align: left; }
.nav-version:hover { background: #F0F4FA; color: var(--cerca-blue-dark); }
.nav-version .new-dot { display: none; color: #E65100; font-weight: 700; }
.nav-version.new .new-dot { display: inline; }
ul.changes { margin: 6px 0 4px; padding-left: 20px; font-size: 14px; }
ul.changes li { margin: 4px 0; }
@media (max-width: 800px) { .nav-version { display: none; } }

.pen-sample { vertical-align: middle; margin-right: 2px; }
.seg-num { background: #1976D2; }

.all-row { display: flex; align-items: center; gap: 12px; padding: 6px 16px; }
.all-row label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--cerca-fg); cursor: pointer; }

.two-selects { display: flex; gap: 8px; }
.two-selects select:first-child { flex: 1; }
.gas-stats { padding: 4px 16px 10px; font-size: 14px; border-bottom: 1px solid #F0F0F0; }
.gas-stats:empty { display: none; }
.best-txt, .gas-price.best { color: #2E7D32; }
.worst-txt, .gas-price.worst { color: #C62828; }
.price-pin div.worst { border-color: #C62828; background: #FFEBEE; color: #B71C1C; }

.gas-item { display: flex; align-items: stretch; border-bottom: 1px solid #F0F0F0; }
.gas-item .member-loc { flex: 1; border-bottom: none; }
.cmp-btn { width: auto; margin: 8px 10px 8px 0; padding: 4px 10px; font-size: 12px; font-weight: 600; background: #F0F4FA; color: var(--cerca-blue-dark); border-radius: 14px; align-self: center; }
.cmp-btn.on { background: var(--cerca-blue); color: #fff; }
.gas-cmp { margin: 8px 12px; padding: 12px; background: #F5F9FF; border: 1px solid #CFE3FA; border-radius: 10px; font-size: 14px; }
.cmp-title { font-weight: 700; margin-bottom: 6px; }
.cmp-st { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; }
.cmp-tag { width: 22px; height: 22px; border-radius: 50%; background: var(--cerca-blue); color: #fff; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmp-name { flex: 1; }
.cmp-x { width: auto; margin: 0; padding: 0 6px; background: transparent; color: var(--cerca-muted); }
.cmp-hint { padding: 4px 0 0 30px; }
.cmp-liters { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; font-size: 14px; color: var(--cerca-fg); }
.cmp-liters input { width: 80px; padding: 6px 8px; border: 1px solid #CCC; border-radius: 6px; font-size: 15px; text-align: right; }
.cmp-row { display: flex; justify-content: space-between; padding: 3px 0; }
.cmp-save { margin-top: 6px; padding: 8px; background: #E8F5E9; color: #1B5E20; border-radius: 8px; }

.cmp-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13px; background: #fff; border-radius: 8px; overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 6px 6px; text-align: right; border-bottom: 1px solid #EEF2F7; white-space: nowrap; }
.cmp-table thead th { background: #E3F0FD; color: var(--cerca-blue-dark); font-weight: 700; text-align: right; }
.cmp-table tbody th { text-align: left; font-weight: 600; color: var(--cerca-fg); white-space: normal; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: none; font-weight: 700; }
.cmp-table .cmp-cheap { color: #2E7D32; }
.cmp-table .cmp-diff { color: #1B5E20; background: #F1F8F2; }

/* ── v0.10: coche editable + facturas ──────────────────────────────────── */
.car-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.car-actions button { width: auto; margin: 0; padding: 8px 12px; font-size: 14px; }
.svc-row { display: flex; align-items: flex-start; gap: 8px; }
.svc-main { flex: 1; }
.row-edit { width: 36px; margin: 0; padding: 4px; background: transparent; color: var(--cerca-blue-dark); font-size: 16px; }
.row-edit:hover { background: #E3F0FD; }
.inv-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.inv-chip { display: inline-flex; align-items: center; gap: 4px; width: auto; margin: 0; padding: 4px 10px; font-size: 12px; font-weight: 600;
  background: #FFF3E0; color: #E65100; border-radius: 14px; border: none; cursor: pointer; }
.inv-chip a { cursor: pointer; }
.inv-chip.new { background: #E8F5E9; color: #1B5E20; }
.chip-x { width: auto; margin: 0; padding: 0 2px; background: transparent; color: inherit; font-size: 12px; }
.dlg-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { background: #fff; border-radius: 14px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.dlg-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.dlg select, .dlg input[type=date], .dlg input[type=number], .dlg input[type=text] { width: 100%; padding: 9px 10px; border: 1px solid #DDD; border-radius: 8px; font-size: 15px; background: #FAFAFA; }
.dlg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.dlg-buttons { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.dlg-buttons button { width: auto; margin: 0; }
.dlg-buttons .spacer { flex: 1; }
button.danger { color: var(--cerca-danger); border-color: var(--cerca-danger); }
.dlg-error { margin-top: 10px; }
.file-btn { display: inline-block; margin-top: 8px; padding: 9px 14px; background: #F0F4FA; color: var(--cerca-blue-dark); border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; }
.inv-view { background: #fff; border-radius: 12px; max-width: 95vw; max-height: 92vh; overflow: auto; padding: 10px; }
.inv-view img { max-width: 90vw; max-height: 80vh; display: block; margin: 8px auto 0; }
.inv-pdf { width: 85vw; height: 80vh; border: 0; }
.inv-bar { display: flex; gap: 14px; align-items: center; padding: 4px 6px; font-size: 14px; }
.inv-bar span { flex: 1; font-weight: 600; }
.inv-close { width: auto; margin: 0; padding: 4px 10px; }

.primary-small { width: auto; margin: 0; padding: 8px 14px; font-size: 14px; }
.check-line { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: var(--cerca-fg); }
.check-line input { margin-top: 3px; }
.car-name .row-edit { width: 28px; padding: 0; font-size: 14px; vertical-align: middle; }

.due-box { margin-top: 10px; padding: 8px 10px; background: #FAFAFA; border-radius: 8px; font-size: 13px; }
.due-title { font-weight: 700; color: var(--cerca-muted); margin-bottom: 4px; }
.due-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.due-row span:last-child { text-align: right; color: var(--cerca-muted); }
.due-row.over span:last-child { color: #C62828; font-weight: 600; }
.due-row.soon span:last-child { color: #E65100; font-weight: 600; }
.file-row { display: flex; flex-wrap: wrap; gap: 8px; }
button.file-btn { width: auto; margin-top: 8px; border: none; }
button.file-btn:hover { background: #E3F0FD; }

.num-input { width: 72px; text-align: right; }

.svc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; max-height: 240px; overflow: auto;
  padding: 6px 8px; border: 1px solid #DDD; border-radius: 8px; background: #FAFAFA; }
.svc-check { display: flex; align-items: center; gap: 6px; margin: 0; padding: 5px 2px; font-size: 14px; color: var(--cerca-fg); cursor: pointer; }

/* El atributo hidden gana siempre (p. ej. sobre .dlg-grid { display: grid }) */
[hidden] { display: none !important; }

.date-field { display: flex; position: relative; }
.date-field input[type=text] { flex: 1; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.date-field .date-btn { width: 42px; margin: 0; padding: 0; border-radius: 0 8px 8px 0; background: #F0F4FA; color: var(--cerca-blue-dark); border: 1px solid #DDD; border-left: none; }
.date-field .date-picker { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.day-nav .date-field { flex: 1; }
.day-nav .date-field input[type=text] { padding: 8px; border: 1px solid #DDD; border-radius: 8px; font-size: 14px; width: 100%; }

.ins-line.soon { color: #E65100; }
.ins-line.over { color: #C62828; }
.ins-section { margin-top: 14px; padding: 8px 10px; border: 1px solid #E3E8F0; border-radius: 10px; }
.ins-section summary { font-size: 15px; }

.nodata-box { margin-top: 10px; padding: 8px 10px; background: #FFFDE7; border: 1px solid #FFF3C4; border-radius: 8px; font-size: 13px; }
.link-small { width: auto; margin: 6px 0 0; padding: 5px 10px; font-size: 13px; background: #FFF8E1; color: #E65100; border: 1px solid #FFE0B2; }
.link-small:hover { background: #FFECB3; }
.shell-brand { display: flex; align-items: center; gap: 8px; }
.shell-brand img { border-radius: 7px; }

/* ── v0.12: Coche como página integrada (como los mapas) ──────────────── */
.car-layout { display: flex; height: 100%; }
.car-main { flex: 1; min-width: 0; overflow: auto; }
.car-side { width: 300px; flex-shrink: 0; overflow: auto; background: #fff; border-left: 1px solid #E3E3E3; padding-bottom: 20px; }
.car-page { max-width: 860px; margin: 0 auto; padding: 20px 20px 60px; }
.car-pick { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; text-align: left; background: transparent;
  color: var(--cerca-fg); font-weight: 400; border-radius: 0; padding: 10px 16px; border-bottom: 1px solid #F0F0F0; }
.car-pick:hover { background: #F5F8FC; }
.car-pick.on { background: #E3F0FD; }
.car-pick-main { display: flex; flex-direction: column; gap: 2px; }
.car-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #43A047; }
.car-dot.soon { background: #FB8C00; }
.car-dot.over { background: #E53935; }
.side-act { display: block; width: 100%; margin: 0; text-align: left; background: transparent; color: var(--cerca-blue-dark);
  font-weight: 600; border-radius: 0; padding: 10px 16px; border-bottom: 1px solid #F0F0F0; font-size: 14px; }
.side-act:hover { background: #F0F4FA; }
.side-act.add { color: var(--cerca-blue); }
.car-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.car-hero h1 { margin: 0 0 4px; }
.car-hero .car-km { font-size: 20px; }
.lst { background: #fff; border-radius: var(--cerca-radius); margin-top: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.lst h2 { font-size: 13px; font-weight: 700; color: var(--cerca-muted); text-transform: uppercase; letter-spacing: .03em;
  margin: 0; padding: 12px 16px 8px; }
.lst-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px;
  border-top: 1px solid #F2F2F2; font-size: 14px; }
.lst-row > span:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.lst-row > span:last-child:not(:first-child) { text-align: right; color: var(--cerca-muted); }
.lst-row.over .due-when, .lst-row.over > span:last-child { color: #C62828; font-weight: 600; }
.lst-row.soon .due-when { color: #E65100; font-weight: 600; }
.lst-row.ins-line.over > span:last-child { color: #C62828; }
.lst-row.ins-line.soon > span:last-child { color: #E65100; }
.lst .row-line { padding: 10px 16px; border-top: 1px solid #F2F2F2; border-bottom: none; }
.lst-note { padding: 0 16px 10px; font-size: 13px; color: #5D4037; }
.lst-foot { padding: 10px 16px; border-top: 1px solid #F2F2F2; display: flex; gap: 8px; flex-wrap: wrap; }
.lst.warn { border: 1px solid #FFCDD2; }
.lst.warn h2 { color: #C62828; }
.lst.warn .lst-row.over > span:first-child .muted { color: #C62828; }
.row-btn { width: auto; margin: 0; padding: 6px 10px; font-size: 13px; background: #F0F4FA; color: var(--cerca-blue-dark); white-space: nowrap; }
.row-btn:hover { background: #E3F0FD; }
.secondary-small { width: auto; margin: 0; padding: 7px 12px; font-size: 13px; background: #F0F4FA; color: var(--cerca-blue-dark); }

/* Formularios del coche como página: lista vertical, barra fija abajo */
.form-page { padding-bottom: 0; }
.page-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.page-bar h1 { margin: 0; font-size: 20px; }
.back-btn { width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 50%; background: #F0F4FA; color: var(--cerca-blue-dark); font-size: 20px; flex-shrink: 0; }
.form-page .dlg-body { background: #fff; border-radius: var(--cerca-radius); padding: 8px 16px 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.form-page select, .form-page input[type=date], .form-page input[type=number], .form-page input[type=text], .form-page input[type=tel] {
  width: 100%; padding: 9px 10px; border: 1px solid #DDD; border-radius: 8px; font-size: 15px; background: #FAFAFA; }
.form-sec { font-size: 13px; font-weight: 700; color: var(--cerca-muted); text-transform: uppercase; letter-spacing: .03em; margin: 20px 0 4px; }
.page-buttons { position: sticky; bottom: 0; background: var(--cerca-bg); padding: 12px 0 16px; margin-top: 8px; }
.form-page .svc-checks { display: block; max-height: none; overflow: visible; padding: 0; border: none; background: transparent; margin: 6px -16px 0; }
.form-page .svc-check { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid #F2F2F2; font-size: 14px; }
.form-page .svc-check:hover { background: #F7F9FC; }
.form-page .svc-check:has(input:checked) { background: #EEF5FE; }
.svc-name { flex: 1; }
.svc-hint { font-size: 12px; color: var(--cerca-muted); text-align: right; max-width: 55%; }
.svc-hint.over { color: #C62828; font-weight: 600; }
.svc-hint.soon { color: #E65100; font-weight: 600; }
.svc-more { margin: 0; border-top: 1px solid #F2F2F2; }
.svc-more summary { padding: 10px 16px; font-size: 13px; }
.form-page .ins-section { border: none; padding: 0; margin-top: 20px; }
.form-page .ins-section summary { font-size: 13px; font-weight: 700; color: var(--cerca-muted); text-transform: uppercase; letter-spacing: .03em; }

@media (max-width: 800px) {
  .car-layout { flex-direction: column; height: auto; }
  .car-main { overflow: visible; }
  .car-side { order: -1; width: 100%; border-left: none; border-bottom: 1px solid #E3E3E3; display: flex; flex-wrap: wrap; gap: 6px; padding: 52px 12px 10px; }
  .car-side .map-side-title { width: 100%; padding: 4px 4px 0; }
  .car-side .car-pick, .car-side .side-act { width: auto; border: 1px solid #E3E8F0; border-radius: 18px; padding: 6px 12px; }
  .car-side .notice { width: 100%; margin: 6px 0 0; }
  .car-layout.editing .car-side { display: none; }
  .car-page { padding: 16px 12px 40px; }
  .form-page { padding-top: 56px; }
  .lst-row { flex-wrap: wrap; }
  .lst-row > span:last-child:not(:first-child) { text-align: left; }
  .svc-hint { max-width: 50%; }
}

/* ── v0.13: iconos Material Symbols Rounded (sustituyen a los emojis) ──── */
/* Fuente de iconos servida desde aquí (subset con solo los iconos usados; ver index.html) */
@font-face { font-family: 'Material Symbols Rounded'; font-style: normal; font-weight: 300 500; font-display: block;
  src: url('/cerca/app/fonts/material-symbols-rounded.woff2?v=0.40.0') format('woff2'); }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 1.3em; line-height: 1;
  display: inline-block; vertical-align: -0.25em; letter-spacing: normal; text-transform: none; white-space: nowrap;
  word-wrap: normal; direction: ltr; -webkit-font-smoothing: antialiased; font-feature-settings: 'liga';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; user-select: none; }
.nav-icon .ms { font-size: 22px; vertical-align: middle; }
.nav-tab.active .nav-icon .ms { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.lst-row > span:first-child .ms, .svc-name .ms, .svc-main > .ms:first-child { color: var(--cerca-blue-dark); opacity: .85; }
.car-hero h1 .ms { color: var(--cerca-blue); font-size: 1.1em; }
.lst.warn h2 .ms { color: #C62828; }
.st .ms { font-size: 1.1em; }
.st.ok { color: #2E7D32; } .st.soon { color: #E65100; font-weight: 600; } .st.over { color: #C62828; font-weight: 600; }
.ms.ok { color: #43A047; } .ms.mute { color: #9E9E9E; }
.inv-chip .ms, .chip-x .ms { font-size: 16px; vertical-align: -3px; }
.row-edit .ms, .place-edit .ms, .place-del .ms { font-size: 20px; }
.date-btn .ms { font-size: 20px; vertical-align: middle; }
.check-read .ms, .bubble-meta .ms { font-size: 15px; vertical-align: -3px; }
.play-btn .ms { font-size: 22px; vertical-align: middle; }
.wx { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; }
.wx-sunny { color: #F9A825; } .wx-partly_cloudy_day { color: #FFA000; } .wx-cloud, .wx-foggy { color: #90A4AE; }
.wx-rainy, .wx-rainy_light { color: #1E88E5; } .wx-weather_snowy, .wx-ac_unit { color: #4FC3F7; } .wx-thunderstorm { color: #5E35B1; }
.now-icon .ms { font-size: 1em; vertical-align: middle; }
.big .ms { font-size: 28px; vertical-align: middle; }
/* Icono y texto en la misma línea; subtítulo debajo */
.lst-row > span:first-child { display: block; }
.lst-row > span:first-child > .muted { display: block; margin-top: 2px; }
.lst-row > span:first-child > .badge { margin-left: 6px; }

/* Aviso de versión nueva publicada */
.update-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 6000; display: flex; align-items: center; gap: 14px;
  background: #1F2937; color: #fff; padding: 10px 12px 10px 18px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; max-width: calc(100% - 32px); }
.update-bar button { width: auto; margin: 0; padding: 7px 14px; font-size: 14px; }
@media (max-width: 800px) { .update-bar { bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* Pin en marcha (como el APK): insignia de actividad, rumbo y velocidad */
.member-pin { overflow: visible; }
.member-pin .pin-badge { position: absolute; right: -8px; bottom: -6px; width: 28px; height: 28px; border-radius: 50%;
  background: #1565C0; color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.member-pin .pin-badge .ms { font-size: 18px; vertical-align: 0; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20; }
.member-pin .pin-arrow { position: absolute; left: 0; top: 0; width: 44px; height: 44px; pointer-events: none; }
.member-pin .pin-arrow::before { content: ''; position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid #1565C0; }
.member-pin .pin-speed { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); white-space: nowrap;
  background: #1565C0; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.member-pin.driving .member-pin-inner { border-color: #1565C0; }

/* ── v0.14: reproductor de rutas ─────────────────────────────────────── */
.seg-play { width: 34px; margin: 0; padding: 4px 0; background: transparent; color: var(--cerca-blue); border-radius: 50%; }
.seg-play .ms { font-size: 24px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.seg-play:hover { background: #E3F0FD; }
.play-bar { position: absolute; left: 12px; right: 12px; bottom: 26px; z-index: 1000; background: rgba(255,255,255,.97);
  border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 10px 14px 12px; max-width: 760px; margin: 0 auto; }
.play-row { display: flex; align-items: center; gap: 14px; }
.play-follow { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: auto; z-index: 1000; margin: 0; white-space: nowrap; display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px; background: var(--cerca-blue); color: #fff; font-weight: 600;
  box-shadow: 0 3px 12px rgba(0,0,0,.3); }
.play-follow[hidden] { display: none; }
.play-follow .ms { font-size: 20px; }
.play-row .spacer { flex: 1; }
.play-btn-main { width: 46px; height: 46px; margin: 0; padding: 0; border-radius: 50%; flex-shrink: 0; }
.play-btn-main .ms { font-size: 30px; vertical-align: middle; }
.play-clock, .play-kmh { display: flex; flex-direction: column; line-height: 1.2; }
.play-clock b { font-size: 18px; font-variant-numeric: tabular-nums; }
.play-kmh b { font-size: 26px; font-variant-numeric: tabular-nums; color: var(--cerca-blue-dark); }
.play-kmh.over b { color: #C62828; }
.play-close { width: 36px; margin: 0; padding: 4px; background: transparent; color: var(--cerca-muted); }
.play-seek { width: 100%; margin: 8px 0 4px; accent-color: var(--cerca-blue); }
.play-opts { flex-wrap: wrap; gap: 8px 16px; }
.play-mults { display: flex; gap: 4px; flex-wrap: wrap; }
.play-mults .chip { padding: 4px 9px; font-size: 12px; }
.play-check { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--cerca-fg); cursor: pointer; }
.play-mover { overflow: visible; }
.play-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--cerca-blue); color: #fff; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.play-icon .ms { font-size: 24px; vertical-align: 0; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.play-icon.walk { background: #2E7D32; }
.play-mover.moving .play-icon.walk .ms { animation: play-walk .5s ease-in-out infinite alternate; }
.play-mover.moving .play-icon.car .ms { animation: play-car .35s ease-in-out infinite alternate; }
@keyframes play-walk { from { transform: translateY(-2px) rotate(-6deg); } to { transform: translateY(1px) rotate(6deg); } }
@keyframes play-car { from { transform: translateY(-0.5px); } to { transform: translateY(0.5px); } }
.play-speed { position: absolute; left: 50%; top: -24px; transform: translateX(-50%); white-space: nowrap; background: #0D47A1; color: #fff;
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.play-mover.over .play-speed { background: #C62828; }
.play-mover.over .play-icon { background: #C62828; }
@media (max-width: 800px) {
  .play-bar { left: 6px; right: 6px; bottom: 8px; padding: 8px 10px 10px; }
  .play-kmh b { font-size: 22px; }
}

/* ── v0.14: dibujos del reproductor (sin círculo) ────────────────────── */
.play-mover .play-sprite { position: absolute; left: 0; top: 0; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center;
  transition: transform .12s linear; filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.play-mover .play-speed { bottom: auto; transform: translate(-50%, -50%); }   /* posición: detrás del vehículo (JS) */
.play-mover.over .play-speed { background: #C62828; }
.play-mover.over.is-vehicle .veh-svg { filter: drop-shadow(0 0 3px #FF1744) drop-shadow(0 0 3px #FF1744); }
.walker-svg .w-leg, .walker-svg .w-arm { transform-box: view-box; }
.walker-svg .w-leg { transform-origin: 11px 21px; }
.walker-svg .w-arm { transform-origin: 11px 12px; }
.play-mover.moving .w-leg-f, .play-mover.moving .w-arm-b, .walk-pin.moving .w-leg-f, .walk-pin.moving .w-arm-b { animation: walk-a .55s ease-in-out infinite alternate; }
.play-mover.moving .w-leg-b, .play-mover.moving .w-arm-f, .walk-pin.moving .w-leg-b, .walk-pin.moving .w-arm-f { animation: walk-b .55s ease-in-out infinite alternate; }
.play-mover.moving .walker-svg, .walk-pin.moving .walker-svg { animation: walk-bob .275s ease-in-out infinite alternate; }
/* Mapa en directo: quien anda sale como un muñeco andando (corriendo, más rápido) */
.member-pin.walk-pin .walk-sprite { position: absolute; left: 0; top: 0; width: 44px; height: 56px; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }
.walk-pin.running .w-leg, .walk-pin.running .w-arm { animation-duration: .32s !important; }
.walk-pin.running .walker-svg { animation-duration: .16s !important; }
@keyframes walk-a { from { transform: rotate(28deg); } to { transform: rotate(-28deg); } }
@keyframes walk-b { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
@keyframes walk-bob { from { transform: translateY(0); } to { transform: translateY(-1.2px); } }
.veh-preview { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.veh-preview svg { transform: rotate(90deg) scale(1.3); filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

/* Mapa en directo: quien conduce sale como su vehículo, girado según el rumbo */
.member-pin.drive-pin .drive-sprite { position: absolute; left: 0; top: 0; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); }

/* Seguir a un miembro en el mapa */
.follow-bar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000; background: #0D47A1; color: #fff;
  padding: 7px 14px; border-radius: 18px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.3); white-space: nowrap; pointer-events: none; }
.follow-bar .ms { font-size: 16px; }
@media (max-width: 800px) { .follow-bar { top: 56px; font-size: 12px; } }

.pin-name .tip-speed { margin: 3px auto 0; width: fit-content; background: #0D47A1; color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 9px; }

/* Modo noche del mapa (como el GPS del coche) */
/* «Callejero suave»: el OSM de siempre, pálido, para que las personas destaquen */
.capa-suave { filter: saturate(.3) brightness(1.06) contrast(.88); }
.leaflet-container.night .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.55); transition: filter .6s; }
.leaflet-container.night.sat .leaflet-tile-pane { filter: brightness(.45) saturate(.7); }
.leaflet-container.night { background: #1B1F24; }

/* Interruptor de luz del mapa (Automático / Noche / Día) */
.light-switch { width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 8px; background: #fff; color: #37474F;
  border: 2px solid rgba(0,0,0,.2); background-clip: padding-box; display: flex; align-items: center; justify-content: center; }
.light-switch .ms { font-size: 24px; vertical-align: 0; }
.light-switch:hover { background: #F4F4F4; }
.light-switch[data-mode="night"] { background: #263238; color: #FFF59D; }
.light-switch[data-mode="day"] { color: #F9A825; }

/* Coches de la familia (panel lateral de Coche) */
.fleet-row { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid #F0F0F0; }
.fleet-pic { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fleet-pic svg { transform: rotate(90deg) scale(.62); filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.fleet-name { flex: 1; display: flex; flex-direction: column; }
@media (max-width: 800px) { .car-side #fleet { width: 100%; } }
.fleet-use { width: auto; margin: 2px 0 0; padding: 0; font-size: 12px; text-align: left; }
.fleet-mine { font-size: 11px; font-weight: 700; color: #2E7D32; margin-top: 2px; }

/* Plan de mantenimiento propio del coche */
.h2-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h2-link { width: auto; margin: 0; padding: 0; font-size: 12px; text-transform: none; letter-spacing: 0; }
.int-search { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 4px; }
.int-search .file-btn { align-self: flex-start; text-decoration: none; }
.int-list { margin: 12px -16px 0; }
.int-row { display: grid; grid-template-columns: 1fr 96px 80px auto; gap: 8px; align-items: center; padding: 8px 16px; border-top: 1px solid #F2F2F2; }
.int-row.off .int-name, .int-row.off .int-f { opacity: .45; }
.int-name { display: block; font-size: 14px; }
.int-name .muted { display: block; }
.int-f { display: flex; flex-direction: column; font-size: 11px; color: var(--cerca-muted); margin: 0; }
.form-page .int-f input { padding: 6px 8px; font-size: 14px; }
.int-off { display: flex; align-items: center; gap: 4px; font-size: 12px; margin: 0; color: var(--cerca-fg); white-space: nowrap; }
@media (max-width: 800px) { .int-row { grid-template-columns: 1fr 1fr; } .int-name { grid-column: 1 / -1; } }
.fleet-pending { font-size: 11px; font-weight: 700; color: #E65100; margin-top: 2px; }
/* Reprogramar desde «Hay que programar» */
.row-btns { display: flex; gap: 6px; flex-shrink: 0; }
.row-link { width: auto; margin: 2px 0 0; padding: 0; font-size: 12px; text-align: left; }
.due-when .row-btn { margin-left: 8px; padding: 3px 8px; font-size: 12px; }
.int-row.focus { background: #FFF8E1; }

/* Averías y hoja para el taller */
.badge.warn { background: #FDECEA; color: #C62828; }
.svc-row.fault-open { border-left: 3px solid #C62828; padding-left: 8px; }
.fault-sol { margin-top: 3px; color: var(--cerca-fg); }
.ws-bulk { margin: 6px 0 8px; font-size: 13px; }
.svc-group { padding: 8px 16px 4px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cerca-muted); }
.form-page textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #DDD; border-radius: 8px; background: #FAFAFA; resize: vertical; }
.form-page textarea:focus { outline: 2px solid var(--cerca-blue); background: #fff; }
.ws-bulk .link-btn { font-size: 13px; padding: 0 2px; }
/* Sin señal (en marcha pero >1 min sin posición): atenuado y píldora gris */
.member-pin.lost .drive-sprite, .member-pin.lost .walk-sprite { opacity: .45; }
.pin-name .tip-speed.lost { background: #757575; }
/* Aviso sobre el mapa (capa que no responde) */
.map-note { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; background: rgba(33,33,33,.88); color: #fff;
  padding: 7px 14px; border-radius: 16px; font-size: 13px; pointer-events: none; max-width: 90%; text-align: center; }
/* Llegada andando: el muñeco salta agitando los brazos por encima de la cabeza */
.play-mover.celebrate .walker-svg { animation: party-jump .42s cubic-bezier(.3,0,.4,1) infinite alternate; }
.play-mover.celebrate .w-leg { animation: none; transform: rotate(0deg); }
.play-mover.celebrate .w-leg-f { transform: rotate(12deg); }
.play-mover.celebrate .w-leg-b { transform: rotate(-12deg); }
.play-mover.celebrate .w-arm-f { animation: party-wave-a .21s ease-in-out infinite alternate; }
.play-mover.celebrate .w-arm-b { animation: party-wave-b .21s ease-in-out infinite alternate; }
@keyframes party-jump { from { transform: translateY(0); } to { transform: translateY(-9px); } }
@keyframes party-wave-a { from { transform: rotate(118deg); } to { transform: rotate(150deg); } }
@keyframes party-wave-b { from { transform: rotate(242deg); } to { transform: rotate(210deg); } }

/* ── v0.25: Lector de noticias (RSS) ───────────────────────────────────────
   Tokens propios (--r-*) con tema Sistema/Claro/Oscuro (data-theme en .rss).
   ≥1200 px: fuentes · lista · artículo. 700–1199: fuentes + lista y el artículo
   sustituye a la lista. <700: una columna, cajón de fuentes y artículo a pantalla completa. */
.nav-tab { position: relative; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cerca-blue);
  color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.nav-badge[hidden] { display: none; }
@media (max-width: 800px) {
  .nav-badge { position: absolute; top: 2px; left: calc(50% + 4px); margin: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: 10px; padding: 0 5px; }
  body[data-tab="lector"] .circle-select { display: none; }
}
.shell-view.lector { overflow: hidden; }

.rss {
  --r-bg: #F3F4F6; --r-surface: #FFFFFF; --r-side: #F8F9FA; --r-fg: #15181C; --r-muted: #636B75; --r-faint: #9AA0A8;
  --r-line: #E7E9ED; --r-hover: rgba(30, 136, 229, .07); --r-sel: #E6F1FD; --r-accent: #1E88E5; --r-accent-fg: #FFFFFF;
  --r-accent-soft: #E8F2FD; --r-accent-strong: #1565C0; --r-star: #F59E0B; --r-danger: #C62828; --r-skel: #ECEEF1;
  --r-link: #1565C0; --r-ok: #2E7D32; --r-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  --rss-side-w: 256px; --rss-list-w: clamp(330px, 29vw, 430px);
  color-scheme: light;
  display: flex; height: 100%; position: relative; background: var(--r-surface); color: var(--r-fg); overflow: hidden;
}
.rss[data-theme="dark"] {
  --r-bg: #0F1113; --r-surface: #16191C; --r-side: #121417; --r-fg: #E6E8EB; --r-muted: #9BA3AD; --r-faint: #6B737C;
  --r-line: #262B31; --r-hover: rgba(144, 202, 249, .07); --r-sel: #1A2D42; --r-accent: #64B5F6; --r-accent-fg: #0B1620;
  --r-accent-soft: #1A2D42; --r-accent-strong: #90CAF9; --r-star: #FBBF24; --r-danger: #EF5350; --r-skel: #22272D;
  --r-link: #8AB4F8; --r-ok: #81C784; --r-shadow: 0 12px 40px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .rss[data-theme="auto"] {
    --r-bg: #0F1113; --r-surface: #16191C; --r-side: #121417; --r-fg: #E6E8EB; --r-muted: #9BA3AD; --r-faint: #6B737C;
    --r-line: #262B31; --r-hover: rgba(144, 202, 249, .07); --r-sel: #1A2D42; --r-accent: #64B5F6; --r-accent-fg: #0B1620;
    --r-accent-soft: #1A2D42; --r-accent-strong: #90CAF9; --r-star: #FBBF24; --r-danger: #EF5350; --r-skel: #22272D;
    --r-link: #8AB4F8; --r-ok: #81C784; --r-shadow: 0 12px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
/* Anula los estilos globales de botones/etiquetas de la app dentro del lector */
.rss button { width: auto; margin: 0; padding: 0; background: transparent; color: inherit; font: inherit; border: none; border-radius: 8px; cursor: pointer; }
.rss button:disabled { opacity: .5; cursor: default; }
.rss label { display: block; margin: 0; font-size: inherit; color: inherit; }
.rss .ms { vertical-align: middle; }
.rss img.broken { visibility: hidden; }
.rss .rss-thumb.broken, .rss .rss-hero img.broken { display: none; }
.rss-grow { flex: 1; }
.rss-muted { color: var(--r-muted); font-size: 13px; }
.rss-sep { color: var(--r-faint); }
.rss kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--r-line); border-bottom-width: 2px; border-radius: 6px;
  background: var(--r-bg); font: 600 12px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; text-align: center; color: var(--r-fg); }
.rss :focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; }
@keyframes rss-spin { to { transform: rotate(360deg); } }
.rss .rss-spin { animation: rss-spin .9s linear infinite; }
.rss .busy .ms { animation: rss-spin .9s linear infinite; }

/* Botones */
.rss .rss-ib { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--r-muted); text-decoration: none; transition: background .15s, color .15s; }
.rss .rss-ib:hover { background: var(--r-hover); color: var(--r-fg); }
.rss .rss-ib .ms { font-size: 22px; }
.rss .rss-ib.on { color: var(--r-accent); }
.rss .rss-ib.on .ms { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.rss .rss-star-btn.on { color: var(--r-star); }
.rss .rss-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px;
  border-radius: 10px; background: var(--r-accent); color: var(--r-accent-fg); font-weight: 600; font-size: 14px; text-decoration: none;
  white-space: nowrap; transition: filter .15s, background .15s; }
.rss .rss-btn:hover { filter: brightness(1.07); }
.rss .rss-btn .ms { font-size: 20px; }
.rss .rss-btn.ghost { background: var(--r-accent-soft); color: var(--r-accent-strong); }
.rss .rss-btn.danger { background: transparent; color: var(--r-danger); box-shadow: inset 0 0 0 1px currentColor; }
.rss .rss-btn.danger-fill { background: var(--r-danger); color: #fff; }
@media (pointer: coarse) { .rss .rss-ib { width: 44px; height: 44px; } .rss .rss-btn { min-height: 44px; } }

/* Barra lateral: vistas, carpetas y fuentes */
.rss-side { width: var(--rss-side-w); flex-shrink: 0; display: flex; flex-direction: column; min-height: 0;
  background: var(--r-side); border-right: 1px solid var(--r-line); }
.rss.side-hidden .rss-side { display: none; }
.rss-side-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 8px 4px 18px; }
.rss-side-brand { flex: 1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.rss-side-brand .ms { color: #F57C00; font-size: 24px; }
.rss .rss-side-close { display: none; }
.rss-side-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 16px; overscroll-behavior: contain; }
.rss .rss-nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 6px 10px; margin: 1px 0;
  font-size: 14px; text-align: left; color: var(--r-fg); }
.rss .rss-nav:hover { background: var(--r-hover); }
.rss .rss-nav.on { background: var(--r-sel); color: var(--r-accent-strong); font-weight: 600; }
.rss .rss-nav > .ms { font-size: 20px; color: var(--r-muted); width: 20px; }
.rss .rss-nav.on > .ms { color: var(--r-accent); font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.rss-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rss-cnt { font-size: 12px; font-weight: 600; color: var(--r-muted); font-variant-numeric: tabular-nums; }
.rss .rss-nav.on .rss-cnt { color: var(--r-accent-strong); }
.rss-fav { width: 18px; height: 18px; flex-shrink: 0; border-radius: 4px; object-fit: contain; }
.rss-feed-err .ms { font-size: 16px; color: var(--r-danger); }
.rss-side-title { padding: 18px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--r-muted); }
.rss-side-hint { padding: 6px 10px; font-size: 13px; color: var(--r-muted); }
.rss-nav-row { display: flex; align-items: center; }
.rss-nav-row .rss-nav { flex: 1; min-width: 0; padding-left: 4px; }
.rss .rss-fold { width: 26px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--r-muted); }
.rss .rss-fold .ms { font-size: 20px; transition: transform .15s; }
.rss-folder.folded .rss-fold .ms { transform: rotate(-90deg); }
.rss-folder.folded .rss-folder-feeds { display: none; }
.rss .rss-folder-feeds .rss-nav { padding-left: 30px; }
.rss-side-foot { display: flex; flex-direction: column; gap: 1px; padding: 8px; border-top: 1px solid var(--r-line); }
.rss .rss-side-act { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 10px; font-size: 14px;
  font-weight: 600; color: var(--r-accent-strong); text-align: left; }
.rss .rss-side-act:hover { background: var(--r-hover); }
.rss .rss-side-act .ms { font-size: 20px; }
.rss .rss-kbd-only { display: none; }
@media (hover: hover) and (pointer: fine) { .rss .rss-kbd-only { display: flex; } }
.rss-scrim { display: none; }

/* Lista */
.rss-list { width: var(--rss-list-w); flex-shrink: 0; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: var(--r-surface); border-right: 1px solid var(--r-line); }
.rss-list-head { display: flex; align-items: center; gap: 2px; min-height: 56px; padding: 8px 8px 4px; }
.rss-list-title { flex: 1; min-width: 0; padding: 0 4px; }
.rss-list-title h1 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rss-list-sub { display: block; font-size: 12px; color: var(--r-muted); }
.rss-tools { display: flex; align-items: center; gap: 12px; padding: 2px 12px 10px; border-bottom: 1px solid var(--r-line); }
.rss .rss-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 2px 0 10px;
  border-radius: 10px; background: var(--r-bg); color: var(--r-muted); cursor: text; }
.rss .rss-search:focus-within { box-shadow: inset 0 0 0 2px var(--r-accent); }
.rss .rss-search .ms { font-size: 20px; }
.rss .rss-search input { flex: 1; min-width: 0; width: 100%; height: 100%; border: none; background: transparent; outline: none;
  color: var(--r-fg); font-size: 15px; padding: 0; -webkit-appearance: none; appearance: none; }
.rss .rss-search input::-webkit-search-cancel-button { display: none; }
.rss .rss-search input:focus { outline: none; background: transparent; }
.rss .rss-search-x { width: 34px; height: 34px; }
.rss .rss-search-x[hidden] { display: none; }
.rss .rss-switch { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--r-muted);
  cursor: pointer; user-select: none; min-height: 40px; }
.rss-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rss-switch-ui { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--r-faint); transition: background .15s; flex-shrink: 0; }
.rss-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.rss-switch input:checked + .rss-switch-ui { background: var(--r-accent); }
.rss-switch input:checked + .rss-switch-ui::after { transform: translateX(14px); }
.rss-switch input:focus-visible + .rss-switch-ui { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.rss .rss-newpill { display: block; width: 100%; padding: 10px 16px; background: var(--r-accent-soft); color: var(--r-accent-strong);
  font-weight: 600; font-size: 14px; border-radius: 0; border-bottom: 1px solid var(--r-line); }
.rss .rss-newpill[hidden] { display: none; }
.rss-items { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }

.rss-row { position: relative; border-bottom: 1px solid var(--r-line); overflow: hidden; }
.rss-row-in { position: relative; display: flex; gap: 14px; padding: 13px 16px 14px; background: var(--r-surface); cursor: pointer;
  touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.rss-row-in:hover { background-image: linear-gradient(var(--r-hover), var(--r-hover)); }
.rss-row.sel .rss-row-in { background: var(--r-sel); box-shadow: inset 3px 0 0 var(--r-accent); }
.rss-row-txt { flex: 1; min-width: 0; }
.rss-row-meta { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 5px; font-size: 12.5px; color: var(--r-muted); }
.rss-row-meta .rss-fav { width: 16px; height: 16px; }
.rss-row-feed { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rss-row-meta time { flex-shrink: 0; white-space: nowrap; }
.rss-row-star { display: none; margin-left: auto; color: var(--r-star); flex-shrink: 0; }
.rss-row-star .ms { font-size: 17px; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20; }
.rss-row.starred .rss-row-star { display: inline-flex; }
.rss-row-title { margin: 0; font-size: 15.5px; line-height: 1.32; font-weight: 500; color: var(--r-muted); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rss-row.unread .rss-row-title { font-weight: 700; color: var(--r-fg); }
.rss-row.unread .rss-row-meta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--r-accent); flex-shrink: 0; }
.rss-row-sum { margin: 5px 0 0; font-size: 13.5px; line-height: 1.42; color: var(--r-muted); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rss-thumb { width: 88px; height: 88px; flex-shrink: 0; align-self: flex-start; margin-top: 2px; border-radius: 10px; object-fit: cover; background: var(--r-skel); }
.rss-row:not(.unread) .rss-row-sum, .rss-row:not(.unread) .rss-thumb { opacity: .72; }
.rss-row-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  color: #fff; font-size: 13px; visibility: hidden; }
.rss-row-bg.l { background: var(--r-accent); visibility: visible; }
.rss-row-bg.r { background: #F59E0B; visibility: visible; }
.rss-row-bg span { display: flex; align-items: center; gap: 6px; opacity: .55; transition: opacity .12s, transform .12s; }
.rss-row-bg.l .rss-bg-r, .rss-row-bg.r .rss-bg-l { visibility: hidden; }
.rss-row-bg.armed span { opacity: 1; transform: scale(1.08); }
.rss-row-bg .ms { font-size: 24px; }

.rss-skel { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid var(--r-line); }
.rss-skel-txt { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.rss-skel i, .rss-skel-body i { display: block; height: 12px; border-radius: 6px; background: var(--r-skel); animation: rss-pulse 1.4s ease-in-out infinite; }
.rss-skel-txt i:nth-child(2) { height: 15px; }
.rss-skel .rss-skel-thumb { width: 88px; height: 88px; border-radius: 10px; flex-shrink: 0; }
.rss-skel-body { display: flex; flex-direction: column; gap: 14px; padding: 8px 0; }
.rss-skel-body i { height: 14px; }
@keyframes rss-pulse { 50% { opacity: .45; } }
.rss-loading-more, .rss-end { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 16px;
  color: var(--r-muted); font-size: 13px; flex-wrap: wrap; text-align: center; }
.rss-end .ms { color: var(--r-accent); }
.rss-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 24px; color: var(--r-muted); }
.rss-empty > .ms { font-size: 52px; color: var(--r-faint); margin-bottom: 6px; }
.rss-empty h2 { margin: 0; font-size: 18px; color: var(--r-fg); }
.rss-empty p { margin: 0 0 12px; max-width: 34ch; font-size: 14px; line-height: 1.5; }

/* Artículo */
.rss-reader { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; background: var(--r-surface); }
.rss-reader-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px;
  color: var(--r-muted); text-align: center; background: var(--r-bg); }
.rss-reader-empty > .ms { font-size: 64px; color: var(--r-faint); }
.rss-reader-empty h2 { margin: 0; font-size: 18px; color: var(--r-fg); }
.rss-reader-empty p { margin: 0; font-size: 14px; }
.rss .rss-kbd-hint { display: none; }
@media (hover: hover) and (pointer: fine) { .rss .rss-kbd-hint { display: block; } }
.rss-rd-bar { display: flex; align-items: center; gap: 2px; min-height: 56px; padding: 6px 8px; border-bottom: 1px solid var(--r-line); background: var(--r-surface); }
.rss .rss-rd-back { display: none; }
.rss-rd-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.rss-art { --rss-fs: 18px; max-width: calc(66ch + 56px); margin: 0 auto; padding: 32px 28px 72px; font-size: var(--rss-fs); line-height: 1.65; }
.rss-art[data-font="serif"] .rss-art-title, .rss-art[data-font="serif"] .rss-art-body {
  font-family: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif; }
.rss-art-src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--r-muted); line-height: 1.4; }
.rss-art-author { font-weight: 500; }
.rss-art-title { margin: 12px 0 10px; font-size: 1.62em; line-height: 1.2; font-weight: 700; letter-spacing: -.012em; overflow-wrap: anywhere; }
.rss-art-title a { color: inherit; text-decoration: none; }
.rss-art-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rss-art-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; font-size: 13px; color: var(--r-muted); line-height: 1.4; }
.rss-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: var(--r-accent-soft);
  color: var(--r-accent-strong); font-weight: 600; font-size: 12px; }
.rss-tag .ms { font-size: 15px; }
.rss-hero { margin: 0 0 28px; }
.rss-hero img { display: block; width: 100%; max-height: 62vh; object-fit: cover; border-radius: 12px; background: var(--r-skel); }
.rss-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.5em; border-radius: 12px; overflow: hidden; background: #000; }
.rss-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rss-audio { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 10px 12px; border-radius: 14px; background: var(--r-bg); }
.rss-audio > .ms { color: var(--r-accent); font-size: 28px; }
.rss-audio audio { flex: 1; min-width: 0; width: 100%; }
.rss-video { width: 100%; border-radius: 12px; margin: 0 0 28px; background: #000; }
.rss-art-body { overflow-wrap: break-word; color: var(--r-fg); }
.rss-art-body > :first-child { margin-top: 0; }
.rss-art-body p { margin: 0 0 1.15em; }
.rss-art-body h1, .rss-art-body h2, .rss-art-body h3, .rss-art-body h4, .rss-art-body h5, .rss-art-body h6 { line-height: 1.25; margin: 1.7em 0 .6em; }
.rss-art-body h1 { font-size: 1.4em; } .rss-art-body h2 { font-size: 1.3em; } .rss-art-body h3 { font-size: 1.14em; }
.rss-art-body h4, .rss-art-body h5, .rss-art-body h6 { font-size: 1em; }
.rss-art-body a { color: var(--r-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rss-art-body img, .rss-art-body video { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border-radius: 10px; }
.rss-art-body figure { margin: 1.6em 0; }
.rss-art-body figure img { margin: 0 auto; }
.rss-art-body figcaption { margin-top: 8px; font-size: .78em; line-height: 1.45; color: var(--r-muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.rss-art-body blockquote { margin: 1.4em 0; padding: .1em 0 .1em 1.1em; border-left: 3px solid var(--r-accent); color: var(--r-muted); font-style: italic; }
.rss-art-body ul, .rss-art-body ol { padding-left: 1.4em; margin: 0 0 1.15em; }
.rss-art-body li { margin: .3em 0; }
.rss-art-body hr { border: none; border-top: 1px solid var(--r-line); margin: 2.2em 0; }
.rss-art-body code, .rss-art-body kbd { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; }
.rss-art-body :not(pre) > code { padding: .1em .35em; border-radius: 5px; background: var(--r-bg); }
.rss-art-body pre { overflow-x: auto; padding: 14px 16px; border-radius: 10px; background: var(--r-bg); font-size: .85em; line-height: 1.5; }
.rss-art-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; font-size: .84em; line-height: 1.45; }
.rss-art-body th, .rss-art-body td { border: 1px solid var(--r-line); padding: 6px 10px; text-align: left; vertical-align: top; }
.rss-art-body th { background: var(--r-bg); }
.rss-art-body iframe { max-width: 100%; }
.rss-art-body .rss-muted { font-size: .9em; }
.rss-art-end { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-top: 44px; padding-top: 20px;
  border-top: 1px solid var(--r-line); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Ajustes de lectura */
.rss-pop { position: absolute; z-index: 20; width: 248px; padding: 12px; border-radius: 14px; background: var(--r-surface);
  border: 1px solid var(--r-line); box-shadow: var(--r-shadow); }
.rss-pop-lbl { margin: 10px 2px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-muted); }
.rss-pop-lbl:first-child { margin-top: 0; }
.rss-pop-row { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.rss-pop-fs { font-weight: 700; font-variant-numeric: tabular-nums; }
.rss-seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--r-bg); }
.rss .rss-seg button { flex: 1; min-height: 34px; padding: 4px 6px; font-size: 13px; font-weight: 600; color: var(--r-muted); border-radius: 8px; }
.rss .rss-seg button.on { background: var(--r-surface); color: var(--r-fg); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* Aviso inferior */
.rss-listen { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4500; width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--r-accent-soft);
  color: var(--r-fg); box-shadow: var(--r-shadow); box-sizing: border-box; }
.rss-listen[hidden] { display: none; }
.rss-listen-ic { display: grid; place-items: center; color: var(--r-accent-strong); }
.rss-listen-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; padding: 0 6px; }
.rss-listen-txt b, .rss-listen-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rss-listen-txt b { font-size: 14px; }
.rss-listen-txt span { font-size: 12.5px; color: var(--r-muted); }
.rss-listen-txt span.err { color: var(--r-danger); }
.rss.listening .rss-rd-scroll, .rss.listening .rss-items { padding-bottom: 76px; }
.rss .rss-listen-chip { margin: 0 0 18px; min-height: 36px; padding: 6px 14px; }
.rss .rss-vfield, .rss-vfield { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--r-muted); }
.rss-vfield select { font: inherit; font-size: 15px; color: var(--r-fg); background: var(--r-bg); border: 1px solid var(--r-line); border-radius: 10px; padding: 9px 10px; }
.rss .rss-vcheck, .rss-vcheck { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 14px; line-height: 1.35; }
.rss-vcheck input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--r-accent); flex: none; }
.rss-vnote { font-size: 12.5px; margin: 16px 0 0; }
.rss-seg-wrap { flex-wrap: wrap; }
.rss-analysis { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--r-line); font-family: system-ui, Roboto, sans-serif; font-size: 16px; }
.rss-analysis:empty { display: none; }
.rss-an-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 10px; }
.rss-an-points { margin: 0 0 12px; padding-left: 20px; line-height: 1.5; }
.rss-an-points li { margin: 4px 0; }
.rss-an-talk { margin: 8px 0 12px; }
.rss-an-talk summary { cursor: pointer; color: var(--r-accent-strong); font-weight: 600; }
.rss-an-talk p { margin: 10px 0; line-height: 1.55; }
.rss-an-src { font-size: 13.5px; color: var(--r-muted); line-height: 1.6; }
.rss-an-src a { color: var(--r-link); }
.rss-an-note { font-size: 12.5px; color: var(--r-faint); margin: 12px 0 0; }
.rss-an-wait { display: flex; align-items: center; gap: 8px; color: var(--r-muted); }
.rss-snack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 6000; display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px; min-height: 48px; border-radius: 12px; background: #1F2937; color: #fff;
  font-size: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.3); animation: rss-up .18s ease; }
.rss-snack[hidden] { display: none; }
.rss-snack span { padding: 6px 0; }
.rss .rss-snack button { padding: 8px 12px; color: #90CAF9; font-weight: 700; white-space: nowrap; }
.rss .rss-snack button:hover { background: rgba(255,255,255,.08); }
@keyframes rss-up { from { transform: translate(-50%, 12px); opacity: 0; } }

/* Diálogos */
.rss-dlg-wrap { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .45); animation: rss-fade .15s ease; }
@keyframes rss-fade { from { opacity: 0; } }
.rss-dlg { width: 100%; max-width: 520px; max-height: min(88vh, 920px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: var(--r-surface); color: var(--r-fg); box-shadow: var(--r-shadow); outline: none; }
.rss-dlg.wide { max-width: 760px; }
.rss-dlg.small { max-width: 420px; }
.rss-dlg-head { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--r-line); }
.rss-dlg-head h2 { flex: 1; margin: 0; font-size: 18px; }
.rss-dlg-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 20px 24px; overscroll-behavior: contain; }
.rss-dlg-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; }
.rss-dlg.small .rss-dlg-head { border-bottom: none; }
.rss-dlg.small .rss-dlg-body { padding-top: 0; padding-bottom: 8px; }
.rss-dlg-text { margin: 0; font-size: 15px; line-height: 1.5; }
.rss .rss-lbl { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--r-muted); }
.rss .rss-lbl:first-child { margin-top: 0; }
.rss .rss-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--r-line); border-radius: 10px;
  background: var(--r-bg); color: var(--r-fg); font-size: 15px; }
.rss .rss-input:focus { outline: 2px solid var(--r-accent); outline-offset: -1px; background: var(--r-surface); }
.rss-add-row { display: flex; gap: 8px; }
.rss-add-row .rss-input { flex: 1; min-width: 0; }
.rss-add-folder { margin-top: 14px; max-width: 320px; }
.rss-nowrap { white-space: nowrap; }
.rss-add-res { margin-top: 14px; }
.rss-cand { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--r-line); border-radius: 12px; }
.rss-cand-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rss-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rss-following { display: inline-flex; align-items: center; gap: 4px; color: var(--r-ok); font-weight: 600; font-size: 13px; white-space: nowrap; }
.rss-error { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(198, 40, 40, .08); color: var(--r-danger); font-size: 14px; }
.rss-sec { margin: 26px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-muted); }
.rss-cat-sec h4 { margin: 16px 0 6px; font-size: 15px; }
.rss-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.rss-cat-item { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 4px 4px 12px; border: 1px solid var(--r-line); border-radius: 12px; }
.rss-cat-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rss-cat-item .rss-following { padding-right: 10px; }
.rss .rss-cat-add { color: var(--r-accent); }
.rss .rss-cat-del { width: 36px; height: 36px; }
.rss .rss-cat-del .ms { font-size: 20px; }
/* Buscador de fuentes */
.rss-add-hint { margin: 6px 0 0; }
.rss-sec.rss-sec-first { margin-top: 4px; margin-bottom: 8px; }
.rss-found { align-items: flex-start; }
.rss .rss-found-ic { width: 36px; height: 36px; border-radius: 8px; flex: none; margin-top: 2px; }
.rss-found-desc { font-size: 13px; line-height: 1.45; color: var(--r-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rss-found-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.rss-found-acts .rss-chip { padding: 4px 10px; }
.rss-empty.small { padding: 18px 12px; }
.rss-empty.small > .ms { font-size: 36px; }
.rss-sug-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rss .rss-pill { min-height: 34px; padding: 4px 12px; border: 1px solid var(--r-line); border-radius: 17px; background: transparent;
  color: var(--r-fg); font: inherit; font-size: 13px; cursor: pointer; }
.rss .rss-pill:hover { background: var(--r-hover); }
.rss .rss-pill[aria-pressed="true"] { background: var(--r-accent-soft); border-color: var(--r-accent); color: var(--r-accent-strong); font-weight: 600; }
.rss-keys { width: 100%; border-collapse: collapse; }
.rss-keys td { padding: 9px 4px; border-bottom: 1px solid var(--r-line); font-size: 14px; }
.rss-keys td:first-child { width: 42%; white-space: nowrap; }

/* Gestionar fuentes */
.rss-man-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rss .rss-file { cursor: pointer; }
.rss-man-folder { margin-top: 14px; }
.rss-man-folder > header { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 0 4px; border-bottom: 1px solid var(--r-line); }
.rss-man-folder > header > .ms { color: var(--r-muted); font-size: 20px; }
.rss-man-fname { font-weight: 700; font-size: 15px; }
.rss-man-folder > header .rss-ib { margin-left: auto; }
.rss-man-row { display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 4px; border-bottom: 1px solid var(--r-line); }
.rss-man-main { flex: 1; min-width: 0; }
.rss-man-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rss-man-err { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; color: var(--r-danger); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.rss-man-err .ms { font-size: 17px; }
.rss-man-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rss-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; background: var(--r-accent-soft); color: var(--r-accent-strong); font-size: 12px; font-weight: 600; }
.rss-chip .ms { font-size: 15px; }
.rss-man-edit { margin: 8px 0; padding: 14px 16px 16px; border: 1px solid var(--r-accent); border-radius: 14px; background: var(--r-bg); }
.rss-man-edit .rss-input { background: var(--r-surface); }
.rss-man-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; min-width: 0; }
.rss .rss-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; cursor: pointer; font-size: 14px; color: var(--r-fg); }
.rss-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--r-accent); }
.rss-check > span { display: flex; flex-direction: column; gap: 2px; }
.rss-man-edit-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }

/* Intermedio: fuentes + lista; el artículo ocupa el sitio de la lista */
@media (max-width: 1199px) {
  .rss-list { flex: 1; width: auto; border-right: none; }
  .rss-reader { display: none; }
  .rss.reading .rss-list { display: none; }
  .rss.reading .rss-reader { display: flex; }
  .rss .rss-rd-back { display: inline-flex; }
}
/* Móvil: una columna, cajón de fuentes, artículo a pantalla completa */
@keyframes rss-slide { from { transform: translateX(24px); opacity: .6; } }
@media (max-width: 699px) {
  .rss-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 3000; width: min(86vw, 330px);
    transform: translateX(-104%); transition: transform .22s ease, visibility .22s; box-shadow: var(--r-shadow);
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); visibility: hidden; }
  .rss.side-hidden .rss-side { display: flex; }
  .rss.drawer-open .rss-side { transform: none; visibility: visible; }
  .rss-scrim { display: block; position: fixed; inset: 0; z-index: 2999; background: rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .rss.drawer-open .rss-scrim { opacity: 1; pointer-events: auto; }
  .rss .rss-side-close { display: inline-flex; }
  .rss .rss-nav, .rss .rss-side-act { min-height: 44px; }
  .rss .rss-fold { height: 44px; width: 32px; }
  .rss.reading .rss-list { display: flex; }
  .rss-reader { position: fixed; inset: 0; z-index: 2500; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
  .rss.reading .rss-reader { animation: rss-slide .2s ease; }
  .rss .rss-rd-nav { display: none; }
  .rss-rd-bar { padding: 4px; gap: 0; }
  .rss-art { padding: 20px 18px 56px; }
  .rss-art-title { font-size: 1.45em; }
  .rss-list-head { padding: 6px 4px 2px; }
  .rss-tools { padding: 2px 12px 10px; gap: 10px; }
  .rss-row-in { padding: 12px 14px 13px; gap: 12px; }
  .rss-thumb, .rss-skel .rss-skel-thumb { width: 74px; height: 74px; }
  .rss-dlg-wrap { padding: 0; align-items: stretch; }
  .rss-dlg, .rss-dlg.wide { max-width: none; max-height: none; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top); }
  .rss-dlg-wrap.small { padding: 16px; align-items: center; }
  .rss-dlg.small { height: auto; border-radius: 16px; padding-top: 0; }
  .rss-dlg-body { padding: 14px 16px 24px; }
  .rss-add-folder { max-width: none; }
  .rss-cand { flex-wrap: wrap; }
  .rss-cat-grid { grid-template-columns: 1fr; }
  .rss-man-edit { padding: 12px; }
}
@media (max-width: 800px) {
  .rss-snack { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .rss.reading .rss-snack { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .rss-add-row .rss-btn span { display: none; }
  .rss .rss-switch > span:last-child { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rss *, .rss *::before, .rss *::after { animation: none !important; transition: none !important; }
}

/* Lector como app propia (mueblelab.com/lector/): sin barra de pestañas de Cerca */
body.lector-app .rss-snack { bottom: calc(16px + env(safe-area-inset-bottom)); }
body.lector-app .shell-view.lector { height: 100vh; height: 100dvh; }
.rss .rss-pop-voz { width: 100%; margin-top: 14px; }
@media (max-width: 699px) { body:not(.lector-app) .rss:not(.reading) .rss-listen { bottom: calc(76px + env(safe-area-inset-bottom)); } }
.rss .rss-side-act { text-decoration: none; }
.rss-apk-ver { color: var(--r-muted); font-weight: 400; }
.rss-side-ver { padding: 6px 12px 2px; font-size: 12px; color: var(--r-faint); }

/* ── Aspecto «Mosaico» (opcional, Más → Aspecto; mockups/index.html propuesta 03) ──
   Todo bajo body.look-mosaico: el aspecto clásico no cambia. */
body.look-mosaico {
  --cerca-blue: #2364A4; --cerca-blue-dark: #1B3557;
  --mz-bg: #F0F4F9; --mz-ink: #1B3557; --mz-muted: #8295AD; --mz-strong: #225789;
  --mz-blue-soft: #E4EDF9; --mz-green-soft: #E6F0E9; --mz-card: #FFFFFF;
  background: var(--mz-bg); color: var(--mz-ink);
}
body.look-mosaico .shell-nav { background: var(--mz-card); border-right: 0; box-shadow: 1px 0 0 #DCE5F0; padding: 18px 12px; }
body.look-mosaico .shell-brand { color: var(--mz-ink); letter-spacing: -.04em; }
body.look-mosaico .nav-tab { border-radius: 10px; color: var(--mz-ink); }
body.look-mosaico .nav-tab:hover { background: var(--mz-blue-soft); }
body.look-mosaico .nav-tab.active { background: var(--mz-strong); color: #fff; }
body.look-mosaico .nav-group { color: var(--mz-muted); }
body.look-mosaico .shell-view { background: var(--mz-bg); }
body.look-mosaico .card { border-radius: 14px; }

.mosaic { padding: 22px 28px 40px; max-width: 1180px; margin: 0 auto; color: var(--mz-ink); }
.mosaic-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mz-muted); }
.mosaic-look { width: auto; margin: 0; padding: 7px 12px; border-radius: 9px; border: 1px solid #D5DFEC; background: var(--mz-card);
  color: var(--mz-ink); font-size: 12px; font-weight: 650; letter-spacing: 0; text-transform: none; cursor: pointer; }
.mosaic-title { font-size: 34px; letter-spacing: -.05em; margin: 22px 0 4px; }
.mosaic-sub { color: var(--mz-muted); margin: 0 0 20px; font-size: 14px; }
.mosaic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.mosaic .tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; width: auto; margin: 0;
  padding: 16px; border: 0; border-radius: 16px; background: var(--mz-card); color: var(--mz-ink); font: inherit; cursor: pointer;
  overflow: hidden; box-shadow: 0 1px 2px #1B355712; transition: transform .12s ease, box-shadow .12s ease; }
.mosaic .tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #1B355720; }
.mosaic .tile:focus-visible { outline: 3px solid #7FB0E6; outline-offset: 2px; }
.mosaic .tile h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.mosaic .tile p { margin: 4px 0 0; font-size: 13px; color: var(--mz-muted); line-height: 1.35; }
.mosaic .tile p strong { color: var(--mz-ink); }
.mosaic .tile-arrow { position: absolute; top: 14px; right: 14px; opacity: .55; font-size: 20px; }
.mosaic .tile-map { grid-column: span 2; grid-row: span 2; padding: 0; }
.mosaic .tile-mapbox { position: absolute; inset: 0; z-index: 0; }
.mosaic .tile-label { position: absolute; z-index: 500; top: 12px; left: 12px; display: flex; align-items: center; gap: 6px;
  background: var(--mz-card); color: var(--mz-ink); padding: 8px 11px; border-radius: 10px; font-size: 13px; font-weight: 700; box-shadow: 0 3px 12px #1B355726; }
.mosaic .tile-strong { background: var(--mz-strong); color: #fff; }
.mosaic .tile-strong p { color: #CFE0F2; }
.mosaic .tile-big { font-size: 44px; font-weight: 800; letter-spacing: -.05em; margin-top: auto; line-height: 1; }
.mosaic .tile-family { grid-column: span 2; background: var(--mz-blue-soft); }
.mosaic .tile-people { display: flex; gap: 10px; margin-top: auto; width: 100%; }
.mosaic .tile-person { flex: 1; min-width: 0; background: var(--mz-card); border-radius: 12px; padding: 9px 10px; font-size: 13px; font-weight: 700; }
.mosaic .tile-person b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #C9DAF0; color: var(--mz-strong);
  font-size: 11px; margin-bottom: 6px; }
.mosaic .tile-person small { display: block; font-weight: 400; color: var(--mz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosaic .tile-fuel { background: var(--mz-green-soft); }
.mosaic .tile-fuel b { margin-top: auto; font-size: 26px; letter-spacing: -.04em; }
.mosaic .tile-fuel b .fuel-line { display: block; font-size: 20px; line-height: 1.2; }
.mosaic .tile-fuel b .fuel-line small { font-size: 12px; font-weight: 500; letter-spacing: 0; opacity: .75; }
.mosaic .tile-number { margin-top: auto; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.mosaic .tile-mapbox .leaflet-control-container { display: none; }
.mosaic .tile-places { grid-column: span 2; }
.mosaic .tile-events { margin-top: auto; display: grid; gap: 6px; width: 100%; font-size: 13px; }
.mosaic .tile-events > div { background: var(--mz-bg); border-radius: 10px; padding: 7px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosaic .tile-events span { color: var(--mz-muted); }
.mosaic .tile-bubble { margin-top: auto; background: var(--mz-blue-soft); padding: 8px 11px; border-radius: 12px 12px 12px 4px; font-size: 13px; }
@media (max-width: 1100px) { .mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
  .mosaic { padding: 14px 16px 90px; }
  .mosaic-title { font-size: 27px; margin-top: 16px; }
  .mosaic-grid { grid-auto-rows: 128px; gap: 9px; }
  .mosaic .tile-map { grid-column: span 2; grid-row: span 2; }
  .mosaic .tile-family, .mosaic .tile-strong, .mosaic .tile-places { grid-column: span 2; }
  .mosaic .tile-big { font-size: 34px; }
}

/* Selector de aspecto (Más) */
.look-choice { display: flex; gap: 8px; margin-top: 10px; }
.look-choice button { flex: 1; width: auto; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  padding: 11px 12px; border-radius: 10px; border: 1px solid #D5DCE3; background: #fff; color: var(--cerca-fg); font-weight: 700; cursor: pointer; }
.look-choice button small { font-weight: 400; color: var(--cerca-muted); font-size: 12px; }
.look-choice button[aria-pressed=true] { border-color: var(--cerca-blue); box-shadow: inset 0 0 0 1px var(--cerca-blue); background: #F2F8FE; }


/* ── Nuevo aspecto por defecto «Calma» (propuesta Lovable) ──────────────────
   Fondo cálido (#F8F5F0), tarjetas #FEFDFB radio 24px, verde azulado #004B59,
   coral #F57050 para urgencias y tipografía Manrope + JetBrains Mono.
   Al pulsar «Aspecto clásico» se activa body.look-mosaico (el aspecto anterior). */
body.look-calma {
  --cerca-blue: #004B59;
  --cerca-blue-dark: #003540;
  --cerca-bg: #F8F5F0;
  --cerca-fg: #0D2329;
  --cerca-muted: #5D6C71;
  --mz-bg: #F8F5F0;
  --mz-ink: #0D2329;
  --mz-muted: #5D6C71;
  --mz-strong: #004B59;
  --mz-blue-soft: #C0E7E8;
  --mz-green-soft: #FEFDFB;
  --mz-card: #FEFDFB;
  --calma-secondary: #ECE7DD;
  --calma-secondary-fg: #12333A;
  --calma-muted: #EEEBE4;
  --calma-accent: #C0E7E8;
  --calma-accent-fg: #003540;
  --calma-coral: #F57050;
  --calma-border: #E2DED5;
  background: var(--mz-bg);
  color: var(--mz-ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body.look-calma .shell-nav {
  background: var(--mz-card);
  border-right: 1px solid var(--calma-border);
  box-shadow: none;
  padding: 20px 14px;
}
body.look-calma .shell-brand {
  color: var(--mz-strong);
  font-weight: 800;
  letter-spacing: -.04em;
}
body.look-calma .circle-select {
  background: var(--calma-secondary);
  border: 1px solid var(--calma-border);
  color: var(--mz-ink);
  border-radius: 999px;
  font-weight: 700;
  padding: 9px 14px;
}
body.look-calma .nav-group {
  color: var(--mz-muted);
  font-weight: 800;
  letter-spacing: .12em;
}
body.look-calma .nav-tab {
  border-radius: 999px;
  color: var(--mz-ink);
  font-weight: 650;
  padding: 9px 14px;
}
body.look-calma .nav-tab:hover {
  background: var(--calma-muted);
}
body.look-calma .nav-tab.active {
  background: var(--calma-accent);
  color: var(--calma-accent-fg);
  font-weight: 800;
}
body.look-calma .nav-badge {
  background: var(--calma-coral);
  color: #fff;
}
body.look-calma .shell-view {
  background: var(--mz-bg);
}
body.look-calma .card {
  background: var(--mz-card);
  border-radius: 24px;
  border: 1px solid var(--calma-border);
  box-shadow: 0 8px 30px -12px rgba(13, 35, 41, .14);
}
body.look-calma button:not(.nav-tab):not(.tile):not(.chip):not(.rss button):not(.light-switch):not(.seg-play):not(.play-close) {
  border-radius: 999px;
  font-weight: 700;
}
body.look-calma button.secondary {
  background: var(--calma-secondary);
  color: var(--calma-secondary-fg);
}
body.look-calma .chip {
  background: var(--calma-secondary);
  color: var(--calma-secondary-fg);
  border: 1px solid var(--calma-border);
  border-radius: 999px;
  font-weight: 700;
}
body.look-calma .chip.on, body.look-calma .chip.active, body.look-calma .chip[aria-pressed="true"] {
  background: var(--mz-strong);
  color: #FBF8F1;
  border-color: var(--mz-strong);
}

/* Mosaico «Calma» */
body.look-calma .mosaic-top {
  color: var(--mz-muted);
  font-weight: 700;
  letter-spacing: .08em;
}
body.look-calma .mosaic-look {
  border-radius: 999px;
  border: 1px solid var(--calma-border);
  background: var(--mz-card);
  color: var(--mz-ink);
  font-weight: 700;
  padding: 8px 16px;
  box-shadow: 0 2px 10px -4px rgba(13, 35, 41, .14);
}
body.look-calma .mosaic-look:hover {
  background: var(--calma-secondary);
}
body.look-calma .mosaic-title {
  font-weight: 800;
  color: var(--mz-ink);
  letter-spacing: -.04em;
}
body.look-calma .mosaic .tile {
  border-radius: 24px;
  background: var(--mz-card);
  border: 1px solid var(--calma-border);
  box-shadow: 0 8px 30px -12px rgba(13, 35, 41, .15);
}
body.look-calma .mosaic .tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(13, 35, 41, .24);
}
body.look-calma .mosaic .tile-strong {
  background: var(--mz-strong);
  border-color: var(--mz-strong);
  color: #FBF8F1;
}
body.look-calma .mosaic .tile-strong p {
  color: rgba(251, 248, 241, .78);
}
body.look-calma .mosaic .tile-family {
  background: var(--mz-card);
}
body.look-calma .mosaic .tile-person {
  background: var(--calma-muted);
  border-radius: 16px;
}
body.look-calma .mosaic .tile-fuel {
  background: var(--mz-card);
}
body.look-calma .mosaic .tile-big,
body.look-calma .mosaic .tile-number,
body.look-calma .mosaic .tile-fuel b {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
body.look-calma .mosaic .tile-label {
  border-radius: 999px;
  background: var(--mz-card);
  border: 1px solid var(--calma-border);
  padding: 7px 14px;
}
body.look-calma . mosaic .tile-bubble,
body.look-calma .mosaic .tile-bubble {
  background: var(--calma-accent);
  color: var(--calma-accent-fg);
  font-weight: 600;
  border-radius: 16px 16px 16px 4px;
}
.calma-ic-box {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #E4EDF9;
  color: inherit;
}
body.look-calma .calma-ic-box {
  background: var(--calma-accent);
  color: var(--calma-accent-fg);
}
.calma-avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.calma-av-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid var(--mz-strong);
  margin-left: -7px;
}
.calma-av-dot:first-child {
  margin-left: 0;
}
@media (max-width: 800px) {
  body.look-calma .shell-nav {
    margin: 0 10px 10px;
    border-radius: 999px;
    border: 1px solid var(--calma-border);
    background: var(--mz-card);
    box-shadow: 0 8px 30px -10px rgba(13, 35, 41, .22);
    padding: 6px 10px;
  }
  .look-choice {
    flex-direction: column;
  }
}

/* ── 0.34: Calma de verdad (igual que el APK 2.10+) ───────────────────────── */
.calma-dhead, .calma-bar, .calma-scrim { display: none; }
body.look-calma .member-loc { display: flex; align-items: center; gap: 12px; text-align: left; }
.member-loc-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font: 800 15px/1 "Manrope", system-ui, sans-serif; overflow: hidden; background: var(--cerca-blue); }
.member-loc-av img { width: 100%; height: 100%; object-fit: cover; }
.member-loc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.look-calma .member-loc-name { font-weight: 700; color: var(--mz-ink); }
body.look-calma .member-pin-inner { border-color: #fff; box-shadow: 0 2px 8px rgba(13,35,41,.28); }
body.look-calma .member-pin-inner span { font-family: "Manrope", system-ui, sans-serif; font-weight: 800; color: #fff; }
body.look-calma .avatar-initials { color: #fff; font-family: "Manrope", system-ui, sans-serif; font-weight: 800; }

@media (max-width: 800px) {
  /* Menú lateral (se abre con «Más») en vez de la tira de 14 pestañas */
  body.look-calma .shell { flex-direction: column; }
  body.look-calma .shell-nav {
    position: fixed; inset: 0 auto 0 0; z-index: 3000; width: min(304px, 86vw); margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; overflow-y: auto; overflow-x: hidden;
    padding: 0 12px calc(16px + env(safe-area-inset-bottom)); border: none; border-radius: 0 28px 28px 0;
    background: var(--mz-bg); box-shadow: 0 10px 40px rgba(13,35,41,.25);
    transform: translateX(-110%); transition: transform .25s ease;
  }
  body.look-calma.calma-drawer-open .shell-nav { transform: none; }
  body.look-calma .calma-scrim { display: block; position: fixed; inset: 0; z-index: 2900; background: rgba(13,35,41,.4);
    opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.look-calma.calma-drawer-open .calma-scrim { opacity: 1; pointer-events: auto; }
  body.look-calma .shell-brand { display: none; }
  body.look-calma .shell-nav .circle-select { position: static; max-width: none; margin: 10px 2px 4px; box-shadow: none; }
  body.look-calma .shell-nav .nav-tab { flex-direction: row; min-width: 0; gap: 14px; padding: 11px 14px; font-size: 15px;
    font-weight: 600; text-align: left; border-radius: 999px; }
  body.look-calma .shell-nav .nav-tab .nav-icon { font-size: 22px; }
  body.look-calma .shell-nav .nav-group { padding: 16px 14px 4px; }
  body.look-calma .nav-version { display: block; margin: 12px 14px 0; }
  body.look-calma .calma-dhead { display: block; margin: 0 -12px 6px; padding: calc(18px + env(safe-area-inset-top)) 18px 16px 22px;
    background: var(--mz-strong); color: #FBF8F1; border-radius: 0 28px 0 0; }
  .calma-dbrand { display: flex; align-items: center; justify-content: space-between; font: 800 24px/1.1 "Manrope", system-ui, sans-serif; }
  .calma-dclose { background: none !important; color: #FBF8F1 !important; width: 44px; height: 44px; padding: 0; margin: 0; box-shadow: none !important; }
  .calma-dwho { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
  .calma-dwho b { display: block; font: 700 17px/1.2 "Manrope", system-ui, sans-serif; }
  .calma-dwho small { display: block; opacity: .8; font-size: 13px; margin-top: 3px; }
  .calma-dav { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
    background: #C9593D; color: #fff; font: 800 21px/1 "Manrope", system-ui, sans-serif; border: 2px solid rgba(251,248,241,.35); }
  .calma-dav img { width: 100%; height: 100%; object-fit: cover; }
  .calma-dchips { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
  .calma-dchip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border-radius: 999px;
    background: rgba(255,255,255,.14); font: 600 12.5px/1 "Manrope", system-ui, sans-serif; }
  .calma-dchip i { width: 8px; height: 8px; border-radius: 50%; }

  /* Barra inferior flotante: Resumen, Mapa, Rutas, Chat, Más */
  body.look-calma .calma-bar { display: flex; position: fixed; z-index: 2000; left: 16px; right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom)); height: 66px; padding: 0 8px; align-items: center;
    background: var(--mz-card); border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(13,35,41,.3); }
  .calma-bar button { flex: 1; height: 100%; margin: 0; padding: 0; background: none !important; box-shadow: none !important;
    display: grid; place-items: center; color: var(--mz-muted) !important; }
  .calma-bub { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
  .calma-bub .ms { font-size: 24px; }
  .calma-bar button.active .calma-bub { background: var(--mz-strong); color: #FBF8F1; }
  body.look-calma .shell-view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.look-calma[data-tab="map"] .shell-view, body.look-calma[data-tab="routes"] .shell-view { padding-bottom: 0; }
  body.look-calma[data-tab="map"] .map-side, body.look-calma[data-tab="routes"] .shell-view > :last-child {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.look-calma .update-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

/* Portada Calma (0.34) */
.cz { max-width: 1100px; margin: 0 auto; padding: 22px 28px 32px; display: flex; flex-direction: column; gap: 12px; }
.cz-over { margin: 0; font: 700 11.5px/1.3 "Manrope", system-ui, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--mz-muted); }
.cz-title { margin: 2px 0 6px; font: 800 clamp(28px, 4vw, 40px)/1.1 "Manrope", system-ui, sans-serif; letter-spacing: -.02em; color: var(--mz-ink); }
.cz button { font: inherit; color: inherit; text-align: left; margin: 0; }
.cz-hero { display: block; width: 100%; padding: 0 !important; overflow: hidden; border-radius: 26px !important;
  background: var(--mz-card) !important; box-shadow: 0 2px 10px rgba(32,58,64,.08) !important; cursor: pointer; }
.cz-map { height: 200px; pointer-events: none; }
.cz-hero-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px 18px; }
.cz-hero-row > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cz-hero-row b { font: 700 16.5px/1.2 "Manrope", system-ui, sans-serif; color: var(--mz-ink); }
.cz-hero-row > span:first-child > span { font-size: 13px; color: var(--mz-muted); }
.cz-stack { display: flex; }
.cz-stack .calma-av-dot { width: 34px; height: 34px; font-size: 13px; margin-left: -9px; border: 2px solid var(--mz-card); }
.cz-stack .calma-av-dot:first-child { margin-left: 0; }
.cz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cz-tile { display: flex !important; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 140px; padding: 18px 16px 16px 18px !important;
  border-radius: 24px !important; background: var(--mz-card) !important; box-shadow: 0 2px 10px rgba(32,58,64,.08) !important; cursor: pointer; }
.cz-tile > .ms { font-size: 26px; color: var(--mz-strong); margin-bottom: auto; }
.cz-label { margin-top: 14px; font: 600 13px/1.2 "Manrope", system-ui, sans-serif; color: var(--mz-muted); }
.cz-value { font: 700 23px/1.15 "JetBrains Mono", ui-monospace, monospace; letter-spacing: -.02em; color: var(--mz-ink);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-value .fuel-line { display: block; font-size: 17px; }
.cz-value .fuel-line small { font: 600 11px "Manrope", system-ui, sans-serif; color: var(--mz-muted); }
.cz-sub { font-size: 12px; color: var(--mz-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-wide { display: flex !important; align-items: center; gap: 14px; width: 100%; padding: 16px !important; border-radius: 24px !important;
  background: var(--mz-card) !important; box-shadow: 0 2px 10px rgba(32,58,64,.08) !important; cursor: pointer; }
.cz-bub { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--calma-accent); color: var(--mz-strong); }
.cz-wide-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cz-wide-text b { font: 700 15.5px/1.2 "Manrope", system-ui, sans-serif; color: var(--mz-ink); }
.cz-wide-text > span { font-size: 12.5px; color: var(--mz-muted); }
.cz-wide-text .tile-events div, #mz-events div { font-size: 12.5px; color: var(--mz-muted); }
.cz-wide > .ms:last-child { color: var(--mz-muted); }
@media (max-width: 800px) {
  .cz { padding: 14px 16px 24px; }
  .cz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cz-map { height: 176px; }
}
.cz-map .leaflet-control-container { display: none; }
body.look-calma .member-row .avatar { background: transparent; }
body.look-calma .member-row .avatar-initials { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 16px; }
@media (max-width: 800px) { body.look-calma .member-row .ring-btn .ring-label, body.look-calma .member-row [data-ring] span:not(.ms) { display: none; } }

/* 0.35: «Mis destinos» */
.dst h2 { font-size: 16px; margin: 20px 0 8px; }
.dst-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; flex-wrap: wrap; }
.dst-row.dst-off .dst-main b { opacity: .55; }
.dst-main { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.dst-arrows { display: flex; flex-direction: column; }
.dst-icon { border: 0; background: none; cursor: pointer; padding: 0 4px; color: var(--cerca-blue); line-height: 1; }
.dst-icon:disabled { opacity: .25; cursor: default; }
.dst-link { border: 0; background: none; color: var(--cerca-blue); font: inherit; font-weight: 650; cursor: pointer; padding: 4px 6px; }
.dst-danger { color: #c62828; }
.dst-check { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.dst-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; }
.dst-form select, .dst-form input { font: inherit; padding: 6px 8px; border: 1px solid #ccc; border-radius: 8px; }
.dst-form .dst-wide { flex: 1 1 240px; }
.dst-btn { border: 0; border-radius: 8px; padding: 7px 14px; background: var(--cerca-blue); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.dst-ok { padding: 10px 12px; margin-bottom: 10px; }
/* El tema pone los botones a lo ancho: aquí van en línea */
.dst button.dst-link, .dst button.dst-icon, .dst button.dst-btn { width: auto !important; margin: 0 !important; display: inline-flex; align-items: center; gap: 4px; min-height: 0; flex: 0 0 auto; }
.dst .dst-form select, .dst .dst-form input { width: auto; }
.dst .dst-form input#n-name { flex: 0 1 200px; }
.dst .dst-main.dst-frase { display: block; line-height: 1.4; }
.dst .dst-paso { font-weight: 650; color: var(--cerca-blue); }

/* ── Momentos del círculo (0.40.0) ─────────────────────────────────── */
.mo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.mo-head h2, .mo-head p { margin: 0; }
.mo-add { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: var(--cerca-blue); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.mo-list { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin: 0 auto; }
.mo-card { padding: 14px 0 8px; overflow: hidden; }
.mo-top { display: flex; align-items: center; gap: 12px; padding: 0 14px 10px; }
.mo-av { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mo-av.s { width: 30px; height: 30px; font-size: 12px; }
.mo-who { flex: 1; display: flex; flex-direction: column; }
.mo-cap { margin: 0 16px 10px; white-space: pre-wrap; }
.mo-photos.one img { width: 100%; max-height: 640px; object-fit: cover; display: block; background: #EEF1F6; cursor: zoom-in; }
.mo-photos.many { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px; scroll-snap-type: x mandatory; }
.mo-photos.many img { height: 300px; max-width: 85%; object-fit: cover; border-radius: 14px; flex: none; scroll-snap-align: start; background: #EEF1F6; cursor: zoom-in; }
.mo-photos img.err { min-width: 120px; min-height: 120px; }
.mo-bar { display: flex; gap: 6px; padding: 6px 10px 0; }
.mo-bar .icon-btn { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: transparent; color: inherit; }
.mo-bar .icon-btn.on { color: #E0503C; }
.mo-likers { margin: 2px 16px 4px; }
.mo-comments { padding: 4px 16px 6px; border-top: 1px solid #0000000f; margin-top: 6px; }
.mo-c { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.mo-c > div { flex: 1; }
.mo-c p { margin: 2px 0 0; white-space: pre-wrap; }
.mo-c .icon-btn { width: 32px; padding: 4px 0; background: transparent; }
.mo-cform { display: flex; gap: 8px; margin-top: 6px; }
.mo-cform input { flex: 1; margin: 0; }
.mo-send { width: auto; margin: 0; padding: 8px 14px; }
.mo-lb { position: fixed; inset: 0; background: #000e; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.mo-lb > img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.mo-lb > button { position: absolute; width: 48px; height: 48px; margin: 0; padding: 0; border-radius: 50%; background: #ffffff22; color: #fff; display: flex; align-items: center; justify-content: center; }
.mo-lbx { top: 16px; right: 16px; }
.mo-lbp { left: 16px; top: 50%; }
.mo-lbn { right: 16px; top: 50%; }
.mo-lbc { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; }
.mo-compose form { width: min(520px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; }
.mo-compose h3 { margin-top: 0; }
.mo-compose textarea, .mo-compose input { width: 100%; box-sizing: border-box; }
.mo-compose progress { width: 100%; }
.mo-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; }
.mo-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; }
.mo-row { display: flex; gap: 10px; }
.mo-row button { flex: 1; }
.mo-bar .icon-btn.on .ms { font-variation-settings: 'FILL' 1; }
