/* Qhatu — estilos. Sin fuentes externas para cargar rápido en conexiones lentas. */
:root {
  --bg: #FFF8EE;
  --surface: #FFFFFF;
  --ink: #2A211D;
  --muted: #6B5D55;
  --line: #E9DDCD;
  --brand: #9E2B25;       /* rojo terracota */
  --brand-ink: #FFFFFF;
  --brand-soft: #F7E4DF;
  --accent: #F2B544;      /* mostaza */
  --accent-soft: #FDF0D2;
  --ok: #2F6B3B;
  --ok-soft: #E1F0E2;
  --warn-soft: #FDF0D2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42,33,29,.06), 0 4px 14px rgba(42,33,29,.06);
  --nav-h: 64px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1614; --surface: #26201D; --ink: #F5ECE3; --muted: #BBAA9E; --line: #3A312C;
    --brand: #E0645B; --brand-ink: #1B1614; --brand-soft: #3A2421; --accent: #F2B544; --accent-soft: #3A3020;
    --ok: #8BCB96; --ok-soft: #1F3324; --warn-soft: #3A3020; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { line-height: 1.45; font-size: 16px; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra superior y navegación ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -.04em; }
#topbar-extra { flex: 1; min-width: 0; }
/* Franja de aguayo bajo la barra superior. */
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #D81B60 0 14px, #F2B544 14px 22px, #2E9E5B 22px 36px, #23507A 36px 44px, #9E2B25 44px 58px, #F2B544 58px 62px); }
/* Entre tablet y escritorio ancho no cabe todo: se oculta la palabra "Qhatu" (queda el ícono). */
@media (min-width: 900px) and (max-width: 1180px) { .brand span { display: none; } }
.lang select { min-height: 36px; width: auto; max-width: 46vw; padding: 4px 8px; border-radius: 10px; font-size: .85rem; }
.hello { margin: 0 0 12px; font-weight: 700; }
.hello .muted { font-weight: 400; }
.offline { background: var(--accent-soft); padding: 8px 16px; font-size: .9rem; text-align: center; }

.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .72rem; color: var(--muted); text-decoration: none; position: relative; }
.bottomnav a .ico { font-size: 1.35rem; line-height: 1; }
.bottomnav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.bottomnav a.sell .ico { background: var(--brand); color: var(--brand-ink); width: 40px; height: 32px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem; font-weight: 700; }
.badge-dot { position: absolute; top: 6px; left: 55%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-size: .7rem; display: grid; place-items: center; font-weight: 700; }

main { max-width: 960px; margin: 0 auto; padding: 16px; outline: none; }
@media (min-width: 900px) {
  .bottomnav { top: 0; bottom: auto; left: auto; right: 16px; width: 640px; height: 56px; border: 0; background: transparent; padding: 0; }
  .bottomnav a { flex-direction: row; gap: 6px; font-size: .9rem; white-space: nowrap; }
  .bottomnav a.sell .ico { width: 28px; height: 28px; font-size: 1.1rem; }
  .badge-dot { top: 4px; left: auto; right: 4px; }
  body { padding-bottom: 0; }
  .topbar { padding-right: 680px; }
  .lang select { max-width: 150px; }
}

/* ---------- Componentes básicos ---------- */
h1 { font-size: 1.5rem; margin: 4px 0 16px; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 24px 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none;
  color: var(--ink); font-weight: 600; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #2A211D; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: #B3261E; }
.btn.danger-solid { background: #B3261E; border-color: #B3261E; color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.help { font-size: .85rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); }
.error-msg { color: #B3261E; font-weight: 600; margin: 8px 0; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--brand-soft); color: var(--brand); }
.pill.promo { background: var(--accent-soft); color: #7A5200; }
@media (prefers-color-scheme: dark) { .pill.promo { color: var(--accent); } }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.verified { background: var(--ok-soft); color: var(--ok); }
.pill.grey { background: var(--line); color: var(--muted); }

/* ---------- Búsqueda y filtros ---------- */
.search { display: flex; gap: 8px; }
.search input { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; min-height: 40px;
  cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"], a.chip[aria-current="page"] { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
a.chip { display: inline-flex; align-items: center; }
details.filters { margin: 8px 0 12px; }
details.filters summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 8px; }
.filter-grid .full { grid-column: 1 / -1; }
.cond-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cond-list label { font-weight: 500; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; margin: 0; }

/* ---------- Grilla de anuncios ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.lcard { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.lcard a.cover { display: block; color: inherit; text-decoration: none; }
.lcard .img { aspect-ratio: 1; background: var(--line); }
.lcard .img img { width: 100%; height: 100%; object-fit: cover; }
.lcard .body { padding: 8px 10px 10px; }
.lcard .price { font-weight: 800; font-size: 1.05rem; }
.lcard .title { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard .meta { font-size: .78rem; color: var(--muted); }
.lcard .tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.fav { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); font-size: 1.2rem; display: grid; place-items: center; color: #2A211D; }
.fav[aria-pressed="true"] { color: #C0392B; }
.lcard.sold .img, .lcard.paused .img { opacity: .55; }

/* ---------- Detalle ---------- */
.detail { display: grid; gap: 16px; }
@media (min-width: 800px) { .detail { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--line); }
.gallery img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.detail .price-big { font-size: 1.8rem; font-weight: 800; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.seller { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center;
  font-weight: 800; color: #7A5200; flex: none; }
.safety { background: var(--warn-soft); border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Formulario de venta ---------- */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos .ph button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.photos .ph .first { position: absolute; bottom: 4px; left: 4px; }
.add-photo { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center;
  cursor: pointer; color: var(--muted); text-align: center; font-weight: 600; padding: 8px; margin: 0; }
.add-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.add-photo:focus-within { outline: 3px solid var(--accent); }

/* ---------- Mis anuncios / listas ---------- */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px; }
.item .thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: var(--line); }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item a.cover { color: inherit; text-decoration: none; display: flex; gap: 12px; flex: 1; min-width: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.unread { font-weight: 800; }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 160px - var(--nav-h)); min-height: 320px; }
.chat-head { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.msgs { flex: 1; overflow-y: auto; padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.bubble time { display: block; font-size: .7rem; opacity: .75; margin-top: 2px; }
.bubble { position: relative; }
.bubble.offer { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 88%;
  background: var(--accent-soft); color: var(--ink); border: 2px solid var(--accent); }
.bubble.offer.me { align-self: flex-end; background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }
.bubble.offer .amt { font-size: 1.35rem; font-weight: 800; }
.bubble.offer.declined, .bubble.offer.withdrawn { border-style: dashed; opacity: .75; }
.bubble.offer.declined .amt, .bubble.offer.withdrawn .amt { text-decoration: line-through; }
.bubble.offer.accepted { border-color: var(--ok); background: var(--ok-soft); }
.bubble.offer .actions { margin-top: 4px; }
.msg-flag { position: absolute; top: 2px; right: -30px; width: 26px; height: 26px; border: 0; background: transparent;
  color: var(--muted); cursor: pointer; opacity: 0; border-radius: 50%; }
.bubble:hover .msg-flag, .msg-flag:focus-visible { opacity: 1; }
@media (hover: none) { .msg-flag { opacity: .6; } }
.reminder { font-size: .82rem; background: var(--warn-soft); padding: 8px 12px; border-radius: 10px; }
.composer { display: flex; gap: 8px; padding-top: 8px; }
.composer textarea { min-height: 46px; height: 46px; }

/* ---------- Planes ---------- */
.plans { display: grid; gap: 12px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan.current { border: 2px solid var(--brand); }
.plan ul { padding-left: 18px; margin: 10px 0 16px; }
.plan .amt { font-size: 1.5rem; font-weight: 800; }

/* ---------- Diálogo y toast ---------- */
dialog { border: 0; border-radius: 18px; padding: 20px; width: min(520px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(20,14,12,.5); }
.boost-opt { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--line);
  padding: 12px; border-radius: 12px; margin-bottom: 8px; font-weight: 600; cursor: pointer; }
.boost-opt input { accent-color: var(--brand); width: 20px; height: 20px; }
/* ---------- Portada ---------- */
:root { --ridge: #E9DDCD; }
@media (prefers-color-scheme: dark) { :root { --ridge: #3A312C; } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.handle { font-weight: 700; color: var(--brand); }
.hero { display: grid; gap: 20px; align-items: center; padding: 8px 0 4px; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.15fr 1fr; gap: 32px; } }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.02; font-weight: 900; letter-spacing: -.035em; margin: 6px 0 14px; }
.hero .lead { font-size: 1.05rem; color: var(--muted); max-width: 46ch; margin: 0 0 16px; }
.hero .hello { margin: 0; }
.collage { position: relative; height: 300px; }
@media (max-width: 759px) { .collage { height: 230px; } }
.polaroid { position: absolute; width: 46%; background: var(--surface); border-radius: 16px; padding: 8px 8px 10px; box-shadow: 0 8px 28px rgba(42,33,29,.16);
  color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.polaroid > span { display: flex; justify-content: space-between; gap: 6px; font-size: .78rem; align-items: baseline; }
.polaroid .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.polaroid:nth-child(1) { left: 2%; top: 8%; transform: rotate(-6deg); }
.polaroid:nth-child(2) { right: 2%; top: 0; transform: rotate(5deg); }
.polaroid:nth-child(3) { left: 27%; top: 26%; transform: rotate(-1deg); z-index: 1; }
.ridge { margin: 4px -16px 8px; height: 70px; }
.ridge svg { width: 100%; height: 100%; display: block; }
section { margin-top: 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 28px 0 12px; }
.sec-head h2 { margin: 0; font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.sec-head p { margin: 4px 0 0; }
.zones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .zones { grid-template-columns: repeat(4, 1fr); } }
.zone { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; color: inherit; }
/* Raya con el color de la línea del teleférico (--zc viene del HTML). */
.zone::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--zc, var(--line)); margin-bottom: 8px; }
.zone strong { font-size: 1.1rem; }
.zone:hover { border-color: var(--muted); }
.shops { display: grid; gap: 12px; }
@media (min-width: 700px) { .shops { grid-template-columns: repeat(2, 1fr); } }
.shop { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.shop:hover { border-color: var(--muted); }
.shop-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shop-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: step; }
@media (min-width: 700px) { .steps ol { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 8px; }
.steps li p { margin: 4px 0 0; }

/* ---------- Moderación ---------- */
.modcheck { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; background: var(--surface); }
.modcheck p { margin: 4px 0; font-size: .92rem; }
.modcheck .block { color: #B3261E; font-weight: 700; }
.modcheck .review { color: #7A5200; font-weight: 600; }
@media (prefers-color-scheme: dark) { .modcheck .review { color: var(--accent); } }
.modnote { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.modnote.bad { background: var(--brand-soft); color: var(--brand); }
.msg-warn { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 8px; font-size: .8rem; background: var(--accent-soft); color: var(--ink); }
.pill.sev-high, .count.hot, .badge-dot.hot { background: #B3261E; color: #fff; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px;
  background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 800; }
.review-photos { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; }
.review-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--line); }

/* ---------- Panel de administración ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; padding: 12px 14px; min-width: 0; }
.tile strong { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
a.tile:hover { border-color: var(--muted); }
.charts { display: grid; gap: 10px; }
@media (min-width: 700px) { .charts { grid-template-columns: repeat(2, 1fr); } }
.mini-chart { margin: 0; padding: 12px 14px; }
.mini-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mini-chart figcaption strong { font-size: 1.2rem; }
.mini-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.mini-chart .axis { stroke: var(--line); stroke-width: 1; }
.mini-chart .bar path { fill: var(--brand); }
.mini-chart .bar .hit { fill: transparent; }
.mini-chart .bar:hover path { fill: var(--ink); }
.mini-chart .row { margin-top: 4px; }
table.data { border-collapse: collapse; width: 100%; margin-top: 8px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 4px 8px; text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }

/* ---------- Calificaciones ---------- */
.rating { color: #9A6700; font-weight: 700; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .rating, .stars { color: var(--accent); } }
.stars { color: #9A6700; letter-spacing: 1px; }
.stars .off { color: var(--line); }
.star-input { border: 0; padding: 0; margin: 0 0 16px; }
.star-input legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
/* Orden invertido: así "~" pinta la estrella elegida y las de su izquierda. */
.star-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; position: relative; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; color: var(--line); cursor: pointer; margin: 0; padding: 2px; }
.star-input input:checked ~ label { color: var(--accent); }
/* Al pasar el mouse se previsualiza la calificación en lugar de la elegida. */
.star-row:hover label { color: var(--line); }
.star-row label:hover, .star-row label:hover ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); border-radius: 6px; }
.quote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--bg); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px); z-index: 50; background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 2.5rem; }
.skeleton { background: linear-gradient(90deg, var(--line), var(--surface), var(--line)); background-size: 200% 100%; animation: sh 1.2s infinite; border-radius: var(--radius); }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
