@font-face { font-family: "Bricolage"; src: url(fonts/bricolage.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url(fonts/literata.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }

:root {
  --paper: #F2F3EE;
  --surface: #FFFFFF;
  --ink: #23192A;
  --muted: #6E6572;
  --line: #E1E0D9;
  --pimenton: #C4321F;
  --pimenton-ink: #FFFFFF;
  --pimenton-soft: #F7E2DD;
  --oliva: #5D6B26;
  --azafran: #E3A21A;
  --shadow: 0 1px 2px rgba(35,25,42,.06), 0 8px 24px -12px rgba(35,25,42,.25);
  --ui: "Bricolage", system-ui, sans-serif;
  --read: "Literata", Georgia, serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 26px;
  --gutter: clamp(16px, 4vw, 32px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17131A; --surface: #221C25; --ink: #F3EDF1; --muted: #A99FAC; --line: #3A313D;
    --pimenton: #E2513B; --pimenton-soft: #3E2220; --oliva: #A6B85E; --azafran: #F0B53A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ui); font-size: 17px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--azafran); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.page { min-height: 100dvh; padding-bottom: calc(110px + var(--safe-b)); }
@media (prefers-reduced-motion: no-preference) {
  .page { animation: enter .22s ease-out; }
  @keyframes enter { from { opacity: 0; transform: translateY(8px); } }
}

/* ---------- Lista ---------- */
.home-head { padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--gutter) 6px; display: flex; align-items: flex-end; gap: 12px; }
.home-head h1 { margin: 0; font-weight: 750; font-size: clamp(34px, 6.4vw, 54px); line-height: .95; letter-spacing: -.035em; font-variation-settings: "opsz" 96; }
.home-head h1 span { display: block; font-size: .42em; font-weight: 500; letter-spacing: -.01em; color: var(--muted); margin-bottom: 6px; }
.home-head .tools { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .15s; }
.icon-btn:hover, .icon-btn:active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.icon-btn.on { color: var(--pimenton); }

.searchbar { position: sticky; top: 0; z-index: 10; padding: 12px var(--gutter) 10px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.search { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 18px; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search svg { color: var(--muted); }
.search .clear { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter) 2px; margin: 0 calc(var(--gutter) * -1); scroll-padding: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 550; font-size: 15.5px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.chip svg.i { width: 18px; height: 18px; }
.chip small { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.chip.fav[aria-pressed="true"] { background: var(--pimenton); border-color: var(--pimenton); color: #fff; }

.list-meta { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter) 6px; color: var(--muted); font-size: 15px; }
.sort { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 550; padding: 6px 4px; }
.sort svg.i { width: 18px; height: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px 18px; padding: 8px var(--gutter) 0; }
.card { position: relative; display: block; color: inherit; text-decoration: none; }
.card .ph { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:active .ph img { transform: scale(1.03); }
.card h3 { margin: 10px 2px 2px; font-size: 19px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; text-wrap: pretty; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.card .meta { margin: 4px 2px 0; color: var(--muted); font-size: 14.5px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg.i { width: 17px; height: 17px; }
.card .heart { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #23192A; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.card .heart.on { color: #C4321F; }
.heart.on svg.i { fill: currentColor; }

.rows { display: flex; flex-direction: column; padding: 4px var(--gutter) 0; }
.row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.row .ph { width: 96px; height: 96px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--line); }
.row .ph img { width: 100%; height: 100%; object-fit: cover; }
.row .tx { flex: 1; min-width: 0; }
.row h3 { margin: 0 0 4px; font-size: 19px; font-weight: 650; line-height: 1.2; }
.row .heart { width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.row .heart.on { color: var(--pimenton); }

.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255,255,255,.95); background: radial-gradient(120% 90% at 30% 20%, color-mix(in srgb, var(--c, #6B6170) 78%, #fff), var(--c, #6B6170) 60%, color-mix(in srgb, var(--c, #6B6170) 80%, #000)); position: relative; overflow: hidden; }
.placeholder::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 18px 18px, rgba(255,255,255,.14) 2.5px, transparent 3px) 0 0 / 28px 28px; }
.placeholder svg.i { width: 34%; height: 34%; stroke-width: 1.3; position: relative; }

.empty { text-align: center; padding: 64px var(--gutter); color: var(--muted); }
.empty svg.i { width: 64px; height: 64px; stroke-width: 1.2; color: var(--pimenton); }
.empty h2 { color: var(--ink); font-size: 24px; margin: 14px 0 6px; letter-spacing: -.01em; }
.empty p { margin: 0 auto 22px; max-width: 34ch; }

.fab { position: fixed; z-index: 20; right: var(--gutter); bottom: calc(22px + var(--safe-b)); display: inline-flex; align-items: center; gap: 10px; height: 62px; padding: 0 26px 0 20px; border-radius: 999px; background: var(--pimenton); color: #fff; font-weight: 650; font-size: 18px; box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--pimenton) 75%, transparent), 0 2px 6px rgba(0,0,0,.15); transition: transform .15s; }
.fab:active { transform: scale(.96); }
.fab svg.i { width: 26px; height: 26px; stroke-width: 2.4; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 650; font-size: 17px; background: var(--pimenton); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .45; }

/* ---------- Detalle ---------- */
.hero { position: relative; background: #1c161f; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; max-height: 62vh; width: 100%; }
.slides::-webkit-scrollbar { display: none; }
.slides > * { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.slides img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.hero .dots { position: absolute; left: 0; right: 0; bottom: 46px; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.dots i.on { width: 22px; background: #fff; }
.hero .count { position: absolute; right: 14px; bottom: 44px; color: #fff; background: rgba(0,0,0,.45); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.topbar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 0; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar .sp { flex: 1; }
.glass { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #23192A; box-shadow: 0 2px 10px rgba(0,0,0,.2); backdrop-filter: blur(8px); }
.glass.on { color: #C4321F; }
.glass.on svg.i { fill: currentColor; }

.sheet { position: relative; margin-top: -30px; background: var(--paper); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 30px var(--gutter) 0; }
.wrap { max-width: 760px; margin: 0 auto; }
.title { margin: 0; font-size: clamp(32px, 5.6vw, 46px); line-height: 1.02; letter-spacing: -.03em; font-weight: 750; text-wrap: balance; font-variation-settings: "opsz" 96; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.tag svg.i { width: 17px; height: 17px; }

.times { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 26px 0 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.times div { padding: 12px 0 14px; }
.times div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.times dt { font-size: 14px; color: var(--muted); }
.times dd { margin: 2px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.times .total dd { color: var(--pimenton); }

.section-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 38px 0 12px; }
.section-h h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; font-weight: 700; }
.section-h .aside { color: var(--muted); font-size: 15px; }

.people { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.people button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.people button svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
.people output { min-width: 98px; text-align: center; font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; }
.people output.changed { color: var(--pimenton); }

.ingredients { list-style: none; margin: 0; padding: 0; font-family: var(--read); font-size: 19px; }
.ingredients li { border-bottom: 1px dashed var(--line); }
.ingredients label { display: flex; align-items: flex-start; gap: 14px; padding: 12px 2px; cursor: pointer; }
.ingredients input { appearance: none; flex: none; width: 26px; height: 26px; margin: 1px 0 0; border-radius: 8px; border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.ingredients input::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ingredients input:checked { background: var(--oliva); border-color: var(--oliva); }
.ingredients input:checked::after { opacity: 1; }
.ingredients input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.ingredients b { font-weight: 650; }
.ingredients b.scaled { color: var(--pimenton); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 26px 62px; font-family: var(--read); font-size: 19.5px; line-height: 1.62; cursor: pointer; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ui); font-weight: 700; font-size: 19px; background: var(--pimenton-soft); color: var(--pimenton); transition: background .2s, color .2s; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 50px; bottom: 6px; width: 2px; background: var(--line); }
.steps li.done { color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--oliva); color: #fff; }
.timer-chip { display: inline-flex; align-items: center; gap: 6px; vertical-align: 2px; margin-left: 4px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--azafran); color: #2a1d02; font-family: var(--ui); font-size: 14.5px; font-weight: 650; line-height: 1; }
.timer-chip svg.i { width: 17px; height: 17px; stroke-width: 2.2; }

.cook-cta { display: flex; justify-content: center; margin: 18px 0 8px; }
.cook-cta .btn { height: 60px; padding: 0 30px; font-size: 18px; }
.detail-foot { display: flex; justify-content: center; gap: 12px; margin: 36px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Modo cocina ---------- */
.cook { position: fixed; inset: 0; z-index: 60; background: #1A141D; color: #F6F0F3; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) calc(18px + var(--safe-b)); }
.cook header { display: flex; align-items: center; gap: 12px; }
.cook header .t { flex: 1; min-width: 0; font-weight: 600; color: #BDB1C0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cook .x { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.cook .bar { display: flex; gap: 5px; margin: 16px 0 0; }
.cook .bar i { flex: 1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.16); }
.cook .bar i.on { background: #E2513B; }
.cook main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 820px; width: 100%; margin: 0 auto; overflow-y: auto; }
.cook .n { font-size: 20px; font-weight: 650; color: #E2513B; margin-bottom: 14px; }
.cook .txt { font-family: var(--read); font-size: clamp(26px, 4.6vw, 40px); line-height: 1.38; text-wrap: pretty; }
.cook .timer-chip { height: 44px; font-size: 18px; padding: 0 18px 0 14px; margin: 22px 0 0; vertical-align: 0; }
.cook nav { display: flex; gap: 12px; max-width: 820px; width: 100%; margin: 0 auto; }
.cook nav .btn { flex: 1; height: 64px; font-size: 19px; }
.cook nav .btn.ghost { color: #F6F0F3; border-color: rgba(255,255,255,.22); }
.cook .wake { font-size: 13px; color: #8F8494; text-align: center; margin-top: 10px; }

/* ---------- Editor ---------- */
.ed-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top, 0px) + 10px) calc(var(--gutter) - 8px) 10px; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.ed-bar h1 { flex: 1; margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.ed-bar .btn { height: 46px; padding: 0 22px; }
.form { padding: 18px var(--gutter) 0; }
.field { margin: 0 0 26px; }
.field > label, .field > .lbl { display: block; font-weight: 650; font-size: 16px; margin: 0 0 8px; }
.field .hint { font-weight: 450; color: var(--muted); font-size: 14.5px; margin-left: 6px; }
.input, .area { width: 100%; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; font-size: 18px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.input:focus, .area:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent); }
.input.big { font-size: 24px; font-weight: 650; letter-spacing: -.015em; padding: 16px 18px; }
.area { font-family: var(--read); font-size: 18px; line-height: 1.6; resize: none; min-height: 150px; overflow: hidden; }
.input.err { border-color: var(--pimenton); }
.err-msg { color: var(--pimenton); font-size: 15px; margin-top: 6px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .rm { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,14,22,.72); color: #fff; }
.photo .rm svg.i { width: 18px; height: 18px; stroke-width: 2.4; }
.photo .cover { position: absolute; left: 6px; bottom: 6px; height: 28px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 650; background: rgba(20,14,22,.72); color: #fff; }
.photo .cover.is { background: var(--azafran); color: #2a1d02; }
.photo.busy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%) 0 0 / 200% 100%; animation: shimmer 1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.add-photo { aspect-ratio: 1; border-radius: var(--r-md); border: 2px dashed color-mix(in srgb, var(--ink) 28%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 15px; background: transparent; }
.add-photo svg.i { width: 30px; height: 30px; color: var(--pimenton); }
.photo-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.photo-actions .btn { height: 46px; font-size: 16px; padding: 0 18px; }

.cat-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-pick .chip { height: 46px; padding: 0 18px 0 14px; font-size: 16.5px; }
.cat-pick .chip svg.i { width: 21px; height: 21px; color: var(--c); }
.cat-pick .chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.cat-pick .chip[aria-pressed="true"] svg.i { color: #fff; }

.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 560px) { .time-grid { grid-template-columns: repeat(2, 1fr); } }
.time-grid label { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 6px; font-weight: 550; }
.with-unit { position: relative; }
.with-unit .input { padding-right: 48px; font-variant-numeric: tabular-nums; }
.with-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.total-auto { font-size: 13.5px; color: var(--oliva); margin-top: 5px; min-height: 18px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.stepper input { width: 64px; text-align: center; border: 0; background: none; font-size: 22px; font-weight: 700; outline: 0; font-variant-numeric: tabular-nums; }
.stepper .u { padding-right: 14px; color: var(--muted); }
.danger { color: var(--pimenton); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; }

/* ---------- Visor de fotos ---------- */
.viewer { position: fixed; inset: 0; z-index: 70; background: #000; }
.viewer .slides { aspect-ratio: auto; max-height: none; height: 100%; }
.viewer .slides > div { display: grid; place-items: center; overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.viewer img { width: 100%; height: 100%; object-fit: contain; cursor: default; }
.viewer .x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; }
.viewer .dots { position: absolute; bottom: calc(24px + var(--safe-b)); left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }

/* ---------- Diálogos, menú, avisos ---------- */
dialog { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--ink); width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(20,14,22,.5); backdrop-filter: blur(3px); }
.dlg { padding: 26px 24px 20px; }
.dlg h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.01em; }
.dlg p { margin: 0 0 20px; color: var(--muted); }
.dlg .acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dlg .acts .btn { height: 48px; }
.menu { padding: 10px; }
.menu button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px; border-radius: 12px; text-align: left; font-weight: 550; }
.menu button:hover, .menu button:active { background: var(--paper); }
.menu button small { display: block; color: var(--muted); font-weight: 450; font-size: 14px; }
.menu .on svg.i { color: var(--pimenton); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--paper); padding: 13px 20px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.timers { position: fixed; z-index: 65; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top, 0px) + 10px); display: flex; flex-direction: column; gap: 8px; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.tmr { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--azafran); color: #2a1d02; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); font-weight: 650; }
.tmr .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.tmr .clock { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tmr button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(42,29,2,.12); }
.tmr button svg.i { width: 20px; height: 20px; stroke-width: 2.3; }
.tmr.ring { background: var(--pimenton); color: #fff; animation: ring .5s ease-in-out infinite alternate; }
.tmr.ring button { background: rgba(255,255,255,.2); }
@keyframes ring { to { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .tmr.ring { animation: none; } * { scroll-behavior: auto !important; } }
@media (prefers-color-scheme: dark) { .tag { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 28%, transparent); } }
