:root {
  --brand: #0f766e; --brand-2: #14b8a6; --brand-soft: #e6f4f2;
  --bg: #f6f8f7; --surface: #ffffff; --ink: #1c2321; --mute: #66726f; --line: #e2e8e6;
  --danger: #b4321f; --danger-soft: #fdece8; --warn: #9a6200; --warn-soft: #fff4dc; --ok: #15803d;
  --radius: 16px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --tabbar: 64px;
}
:root[data-theme="dark"] {
  --bg: #0b1211; --surface: #141d1c; --ink: #e6efed; --mute: #93a3a0; --line: #24302e;
  --danger: #f48b78; --danger-soft: #3a1c17; --warn: #f2c063; --warn-soft: #33290f; --ok: #4ade80;
  --shadow: none; color-scheme: dark;
}
:root { --on-brand: #fff; color-scheme: light; }
:root[data-theme="dark"] { --on-brand: #0b1211; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tabbar) + var(--safe-b)); -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic.big { width: 56px; height: 56px; color: var(--brand); opacity: .8; }
.mute { color: var(--mute); } .small { font-size: .85rem; } .m0 { margin-top: 0; }
code { font-size: .85em; background: var(--brand-soft); padding: 1px 5px; border-radius: 4px; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 12px 10px; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar h1 { flex: 1; margin: 0; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .logo { color: var(--brand); display: grid; place-items: center; width: 40px; height: 40px; }
.topbar .logo .ic { width: 26px; height: 26px; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.iconbtn:active { background: var(--brand-soft); }
.iconbtn.ok { color: var(--ok); border: 1.5px solid var(--line); }

.wrap { max-width: 720px; margin: 0 auto; padding: 14px 16px 24px; }
.h2 { font-size: 1.05rem; margin: 22px 0 10px; } .h3 { font-size: .95rem; margin: 20px 0 8px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* Tarjetas y listas */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 12px; }
.list { display: grid; gap: 8px; }
.row-item, .remmain { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.row-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 56px; }
.row-item > .ic:first-child { color: var(--brand); }
.row-item span, .remmain span { flex: 1; min-width: 0; }
.row-item small, .remmain small { display: block; color: var(--mute); font-size: .85rem; overflow-wrap: anywhere; }
.row-item .chev { color: var(--mute); }
.row-item.closed { opacity: .6; }
.rem { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 12px; }
.rem.overdue { border-left-color: var(--danger); } .rem.soon { border-left-color: var(--warn); } .rem.later { border-left-color: var(--brand); }
.rem.overdue small { color: var(--danger); }
.remmain { flex: 1; min-width: 0; }

/* Avatares */
.avatar { border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand); flex: none; }
.avatar.ph { display: inline-grid; place-items: center; }
.avatar.sm { width: 36px; height: 36px; vertical-align: middle; } .avatar.sm .ic { width: 18px; height: 18px; }
.avatar.md { width: 48px; height: 48px; }
.avatar.lg { width: 84px; height: 84px; } .avatar.lg .ic { width: 38px; height: 38px; }
.avatar.xl { width: 96px; height: 96px; border: 3px solid var(--surface); box-shadow: var(--shadow); } .avatar.xl .ic { width: 44px; height: 44px; }

/* Rejilla de mascotas */
.pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pet { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow); }
.pet .pname { font-weight: 650; font-size: 1.05rem; } .pet .pmeta { color: var(--mute); font-size: .85rem; }
.pet.add { justify-content: center; border-style: dashed; color: var(--brand); box-shadow: none; background: transparent; min-height: 150px; }
.pet.add .ic { width: 32px; height: 32px; }

.hero { display: flex; gap: 16px; align-items: center; margin: 4px 0 14px; }
.hero h2 { margin: 0; font-size: 1.5rem; } .hero p { margin: 2px 0; }

.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: 1; text-align: center; padding: 9px 10px; border-radius: 10px; color: var(--mute); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.tabs a.active { background: var(--brand); color: var(--on-brand); }

.dl { display: grid; grid-template-columns: minmax(100px, 38%) 1fr; gap: 6px 12px; margin: 0 0 12px; }
.dl dt { color: var(--mute); font-size: .9rem; } .dl dd { margin: 0; overflow-wrap: anywhere; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 12px;
  border: 1.5px solid var(--brand); background: var(--brand); color: var(--on-brand); font-weight: 650; cursor: pointer; text-align: center; }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--danger); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: .9rem; }
.btn.block { width: 100%; margin-top: 12px; } .btn.grow { flex: 1; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.busy, .action.busy { position: relative; color: transparent !important; }
.btn.busy::after, .action.busy::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid var(--brand-2); border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .88rem; border: 0; cursor: pointer; min-height: 38px; }
.chip .ic { width: 16px; height: 16px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; color: var(--mute); font-size: .9rem; }

.actionsgrid { display: grid; gap: 10px; margin-top: 14px; }
.action { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); place-items: center start; }
.action .ic { grid-row: span 2; width: 28px; height: 28px; color: var(--brand); }
.action small { color: var(--mute); }
.action:disabled { opacity: .5; }

/* Formularios */
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
.field { display: grid; gap: 5px; }
.field > span { font-size: .88rem; color: var(--mute); font-weight: 600; }
.field small { color: var(--mute); font-size: .8rem; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 16px; /* evita zoom en iOS */ appearance: none; -webkit-appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type="date"] { min-width: 0; display: block; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
textarea { resize: vertical; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.sec > summary { padding: 14px 16px; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.sec[open] > summary::after { content: "–"; }
.sec > .grid2 { padding: 0 16px 16px; }
.sec.flat { border: 0; background: transparent; margin-top: 12px; } .sec.flat > summary { padding: 8px 0; font-size: .92rem; color: var(--brand); }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 16px; }
.photo { width: 132px; height: 132px; border-radius: 50%; border: 2px dashed var(--brand); display: grid; place-items: center; text-align: center;
  color: var(--brand); cursor: pointer; overflow: hidden; background: var(--brand-soft); font-size: .85rem; font-weight: 600; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ic { width: 30px; height: 30px; display: block; margin: 0 auto 4px; }
.sticky-actions { position: sticky; bottom: calc(var(--tabbar) + var(--safe-b) + 8px); display: flex; gap: 8px; margin-top: 16px; padding: 8px; background: var(--bg); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; }
.row { display: flex; gap: 10px; align-items: center; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.wrapr { flex-wrap: wrap; }

/* Avisos */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; margin: 0 0 10px; font-size: .92rem; color: var(--ink); position: relative; }
.banner .ic { color: var(--brand); margin-top: 1px; }
.banner.demo, .banner.info { background: var(--brand-soft); }
.banner.warn { background: var(--warn-soft); } .banner.warn .ic { color: var(--warn); }
.banner.danger { background: var(--danger-soft); } .banner.danger .ic { color: var(--danger); }
.banner .x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.4rem; color: var(--mute); cursor: pointer; width: 34px; height: 34px; }
.banner.info span { padding-right: 24px; }

.empty { text-align: center; padding: 36px 16px; color: var(--mute); }
.empty.small { padding: 18px; }

.chart { margin: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.chart svg { width: 100%; height: auto; display: block; } .chart .tl { fill: var(--mute); font-size: 10px; }

.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); } .switch input:checked + span::before { transform: translateX(20px); }
.okc { color: var(--ok); }
.warnc { color: var(--warn, #b45309); }

/* Barra inferior */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around; height: calc(var(--tabbar) + var(--safe-b));
  padding-bottom: var(--safe-b); background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--mute); font-size: .72rem; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--brand); }

/* Diálogos, toast, actualización */
.dlg { border: 0; border-radius: 18px; padding: 20px; width: min(92vw, 420px); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.25); white-space: pre-line; }
.dlg::backdrop { background: rgba(0,0,0,.4); }
.dlg h3 { margin-top: 0; } .dlg .row { margin-top: 16px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 16px); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg);
  padding: 11px 18px; border-radius: 12px; font-size: .92rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.updbar { position: fixed; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: var(--bg); padding: 10px 12px 10px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }
.splash { min-height: 60vh; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Selector de paleta y segmentos */
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-weight: 600; color: var(--mute); cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; display: inline-block; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; -webkit-appearance: none; appearance: none; touch-action: manipulation; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.setrow { display: grid; gap: 8px; margin-bottom: 16px; } .setrow > span { font-size: .88rem; color: var(--mute); font-weight: 600; }

/* QR */
.qrbox { display: grid; gap: 14px; }
@media (min-width: 560px) { .qrbox { grid-template-columns: 220px 1fr; align-items: start; } }
.qrimg { background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--line); max-width: 260px; width: 100%; margin: 0 auto; }
.qrimg svg { display: block; width: 100%; height: auto; }
.checks { display: grid; gap: 4px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .95rem; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--brand); appearance: auto; -webkit-appearance: checkbox; flex: none; }
.qrtext { white-space: pre-wrap; font-size: .82rem; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; color: var(--mute); max-height: 180px; overflow: auto; }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--brand); }
.meter.over i { background: var(--danger); }

/* Impresión de placas QR */
#printarea { display: none; }
@media print {
  body > *:not(#printarea) { display: none !important; }
  body { padding: 0; background: #fff; }
  #printarea { display: flex !important; flex-wrap: wrap; gap: 8mm; align-items: flex-end; padding: 10mm; }
  #printarea figure { margin: 0; text-align: center; font: 10pt system-ui, sans-serif; color: #444; }
  #printarea img { display: block; }
}

.banner.install .btn { margin-top: 8px; }
.steps { padding-left: 20px; display: grid; gap: 8px; margin: 8px 0 12px; }
.dlg .steps li { white-space: normal; }

/* Fase 2 */
.online { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; }
.online.on { border-color: var(--brand); background: var(--brand-soft); }
.online .field { margin: 8px 0; }
code.sel, #devid { user-select: all; word-break: break-all; }
.dlg .list .row-item { width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }

/* v1.3: guía de inicio, horas de medicación */
body.wz .tabbar { display: none; }
body.wz { padding-bottom: 0; }
.wizard { max-width: 520px; padding-top: calc(24px + var(--safe-t)); }
.wz-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.wz-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.wz-dots i.on { background: var(--brand); width: 22px; border-radius: 4px; }
.wz-hero { text-align: center; margin: 10px 0 18px; }
.wz-hero h2 { margin: 12px 0 6px; font-size: 1.45rem; }
.wz-hero .avatar.xl { margin: 0 auto; }
.wz-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.wz-list li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.wz-list .ic { color: var(--brand); }
.wz-nav { margin-top: 22px; }
.times-list { display: flex; flex-wrap: wrap; gap: 8px; }
.time-item { display: inline-flex; align-items: center; gap: 2px; background: var(--brand-soft); border-radius: 12px; padding: 2px 2px 2px 8px; }
.time-item input { width: auto; min-height: 40px; padding: 6px 8px; border: 0; background: transparent; }

/* v1.4: soporte, aviso de instalación */
.tabbar a.dot { position: relative; }
.tabbar a.dot::after { content: ""; position: absolute; top: 8px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.row-item.unread { border-color: var(--brand); }
.thread { display: grid; gap: 10px; margin: 8px 0 14px; }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.bubble.user { margin-left: auto; background: var(--brand-soft); border-color: transparent; }
.bubble small { display: block; color: var(--mute); font-size: .78rem; margin-bottom: 2px; }
.installwait { display: flex; gap: 10px; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: 12px; font-size: .92rem; white-space: normal; }
.spin { width: 18px; height: 18px; flex: none; border: 2.5px solid var(--brand); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* Foto ampliada */
.photozoom { padding: 0; border: 0; background: none; border-radius: 50%; cursor: zoom-in; flex: none; }
.photozoom:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; display: grid; place-items: center; cursor: zoom-out; }
dialog.lightbox:not([open]) { display: none; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
dialog.lightbox img { max-width: 100vw; max-height: 100dvh; width: auto; height: auto; object-fit: contain; }
.lbclose { position: fixed; top: calc(env(safe-area-inset-top) + 10px); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
/* Publicidad (solo sin licencia) */
.adslot { margin: 28px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; }
.adslot .adlabel { display: block; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.adslot iframe { width: 100%; border: 0; display: block; background: transparent; border-radius: 12px; }
.adslot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Cerca de ti */
.nearlist { display: grid; gap: 10px; margin-top: 12px; }
.nearitem { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nearitem.off { opacity: .5; pointer-events: none; }
.nearmain { flex: 1; display: flex; align-items: center; gap: 14px; padding: 14px; color: inherit; text-decoration: none; min-height: 64px; }
.nearmain:active { background: var(--brand-soft); }
.nearic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.neartx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .neartx small { color: var(--mute); }
.nearext { width: 18px; height: 18px; color: var(--mute); flex: none; }
.nearalt { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }

[hidden] { display: none !important; }
.cgscore { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; } .cgscore b { font-size: 2.2rem; color: var(--brand); line-height: 1; }

/* Botón central «+» y hoja inferior (si el nicho los activa) */
.tabbar .fab { align-self: center; width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 45%, transparent); cursor: pointer; margin: 0 4px; }
.tabbar .fab svg { width: 26px; height: 26px; }
dialog.sheet { margin: auto auto 0; width: 100%; max-width: 560px; border: 0; border-radius: 24px 24px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(10, 12, 30, .45); }
dialog.sheet h3 { text-align: center; margin: 4px 0 12px; }
.sheetlist { display: grid; gap: 4px; margin-bottom: 12px; }
.sheetitem { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 14px; color: var(--ink); font-weight: 600; text-decoration: none; }
.sheetitem:hover, .sheetitem:active { background: var(--brand-soft); }
.sheetitem svg { width: 24px; height: 24px; color: var(--brand); }
/* Enlaces recomendados (panel › Recomendados) */
.urlline { color: var(--mute); font-size: .75rem !important; opacity: .85; }
.adpill { font-size: .65rem; padding: 2px 8px; vertical-align: 2px; background: var(--line); color: var(--mute); }
details.recsd { margin-top: 14px; } details.recsd > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.recsh { margin: 14px 0 6px; font-weight: 600; }
/* Avisos «la he encontrado» */
.stack { display: grid; gap: 12px; } .stack > .card { margin-bottom: 0; }
.foundcard.new { outline: 2px solid var(--brand); } .foundcard p { overflow-wrap: anywhere; }
.foundcard .fpet { display: inline-flex; align-items: center; gap: 8px; }
.row-item.hot { outline: 2px solid var(--danger); }
/* Mascota / objeto perdido */
.lostcard.on { border: 2px solid var(--danger); }
.lostname { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.lostname small { display: block; color: var(--danger); font-weight: 600; }
.pill.lostpill { background: var(--danger); color: #fff; font-weight: 700; font-size: .7rem; letter-spacing: .03em; }
.pet .pill.lostpill { margin-top: -2px; }
.lostlink { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--mute); margin: 0 0 10px; text-decoration: none; }
.lostlink:hover { color: var(--danger); }
.card.flash { animation: flashc 1.6s ease-out 1; }
@keyframes flashc { 0% { box-shadow: 0 0 0 4px var(--danger); } 100% { box-shadow: 0 0 0 0 transparent; } }
