:root {
  color-scheme: light;
  --purple: #6923ec;
  --purple-hover: #5317cd;
  --purple-text: #591ac9;
  --tint: #f4edff;
  --tint-strong: #ede1ff;
  --white: #fff;
  --ink: #191525;
  --muted: #655d73;
  --line: #e9e4f0;
  --soft: #faf8fd;
  --error: #a22240;
  --radius: 14px;
  --header: 68px;
  --dock: 65px;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header) + 14px); }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
svg { display: block; width: 20px; height: 20px; flex: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; line-height: 1.58; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 11px 15px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
#contenido:focus { outline: none; }

.app-header {
  position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line);
  background: var(--white);
}
.header {
  max-width: 1376px; margin: auto; min-height: var(--header); padding: 0 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; min-height: 48px; align-items: center; gap: 11px; font-size: 14px; font-weight: 760; white-space: nowrap; }
.monogram {
  display: grid; grid-auto-flow: column; place-content: center; width: 43px; height: 43px;
  border-radius: 12px; color: white; background: var(--purple); font-weight: 850;
  font-size: 21px; letter-spacing: -.075em; line-height: 1;
}
.monogram > span { color: #dac7ff; }
.brand small { display: block; margin-top: 2px; color: var(--muted); letter-spacing: .13em; font-size: 9px; font-weight: 710; }

.shell {
  display: grid; grid-template-columns: 186px minmax(0, 1fr); column-gap: 35px;
  max-width: 1376px; margin: auto; padding: 0 34px;
}
.nav {
  grid-column: 1; grid-row: 1 / 3; position: sticky; top: calc(var(--header) + 27px);
  display: grid; align-content: start; align-self: start; gap: 7px; padding: 4px 13px 4px 0;
}
.nav a {
  display: flex; gap: 11px; align-items: center; min-height: 48px; padding: 9px 13px;
  border-radius: 10px; font-size: 14px; font-weight: 690; color: var(--muted);
  transition: background-color .15s, color .15s;
}
.nav a:hover { background: var(--soft); color: var(--purple-text); }
.nav a[aria-current="page"] { color: var(--purple-text); background: var(--tint-strong); }
.nav a[aria-current="page"] svg { stroke-width: 2.2; }
main { grid-column: 2; padding: 34px 0 0; min-width: 0; min-height: 70vh; }
.footer {
  grid-column: 2; margin-top: 24px; display: flex; gap: 12px; align-items: center;
  justify-content: space-between; padding: 12px 0 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px;
}

.button, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border-radius: 10px; font-size: 14px; font-weight: 720;
  transition: background-color .14s, color .14s, transform .10s;
}
.button { border: 1px solid transparent; background: var(--purple); color: white; padding: 10px 15px; }
.button:hover { background: var(--purple-hover); }
.button:active, .filter:active, .shop-switch button:active { transform: scale(.96); }
.button.small { padding: 8px 12px; font-size: 13px; }
.button-outline { border-color: #ded0f7; background: white; color: var(--purple-text); }
.button-outline:hover { background: var(--tint); }
.button svg, .text-button svg { width: 17px; height: 17px; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--purple-text); text-align: left; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.text-button:disabled { color: var(--muted); opacity: .55; }
.screen-heading { margin-bottom: 22px; }
h1 { font-size: clamp(29px, 3.5vw, 46px); line-height: 1.08; letter-spacing: -.048em; font-weight: 800; }
h2 { font-size: 23px; line-height: 1.18; letter-spacing: -.025em; font-weight: 770; }
h3 { font-size: 15px; line-height: 1.35; }
.lede { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 66ch; }
.eyebrow { margin-bottom: 10px; font-size: 12px; font-weight: 760; color: var(--purple-text); }

.shop-summary {
  display: grid; grid-template-columns: 51px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 17px 20px; background: var(--purple); color: white; border-radius: var(--radius);
  box-shadow: 0 2px 4px #38108415, 0 8px 24px #48109919;
}
.summary-icon { width: 51px; height: 51px; display: grid; place-items: center; background: #ffffff26; border-radius: 11px; }
.summary-icon svg { width: 26px; height: 26px; }
.summary-main { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; align-items: center; max-width: 480px; }
.summary-main strong { font-size: 16px; line-height: 1.25; }
.summary-main span { font-size: 13px; line-height: 1.25; color: #f4edff; font-variant-numeric: tabular-nums; }
.summary-main progress {
  grid-column: 1 / -1; width: 100%; height: 5px; margin-top: 4px;
  appearance: none; overflow: hidden; border: 0; border-radius: 10px; background: #ffffff4a;
}
.summary-main progress::-webkit-progress-bar { background: #ffffff4a; }
.summary-main progress::-webkit-progress-value { border-radius: inherit; background: white; transition: width .18s ease-out; }
.summary-main progress::-moz-progress-bar { border-radius: inherit; background: white; }
.people-control { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 690; }
select, .field input { min-height: 46px; border: 1px solid #d8cee7; border-radius: 9px; background: white; color: var(--ink); padding: 7px 10px; }
.people-control select { color: var(--purple-text); font-size: 14px; font-weight: 730; padding-right: 8px; }
.people-control select:focus-visible { outline-color: white; }
.shop-switch { display: none; }
.shop-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(17px, 2.4vw, 34px); margin-top: 17px; align-items: start; }
.basket-panel, .menu-panel { min-width: 0; }
.basket-heading, .menu-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 51px; }
.basket-heading { margin-bottom: 6px; }
.basket-heading .text-button { font-size: 13px; }
.menu-panel {
  position: sticky; top: calc(var(--header) + 17px); max-height: calc(100dvh - var(--header) - 30px);
  overflow: auto; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: 0 2px 4px #24104105;
}
.menu-title { padding-bottom: 9px; align-items: start; }
.menu-copy { margin-top: 4px; color: var(--muted); font-size: 13px; }
.menu-count { display: inline-grid; place-items: center; min-width: 25px; min-height: 25px; border-radius: 8px; padding-inline: 5px; background: var(--tint-strong); color: var(--purple-text); font-size: 12px; font-weight: 760; font-variant-numeric: tabular-nums; }
.menu-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; border-top: 1px solid var(--line); }
.menu-row label { display: flex; align-items: center; min-height: 52px; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; line-height: 1.35; font-weight: 630; }
input[type="checkbox"] {
  appearance: none; width: 19px; height: 19px; margin: 0; flex: none; display: grid; place-items: center;
  border: 1.5px solid #a098b0; border-radius: 5px; background: white; cursor: pointer;
}
input[type="checkbox"]:checked { background: var(--purple); border-color: var(--purple); }
input[type="checkbox"]:checked::before {
  content: ''; width: 8px; height: 4px; margin-top: -1px;
  border: solid white; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
@media (forced-colors: active) { input[type="checkbox"] { appearance: auto; } }
.recipe-shortcut { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; color: var(--purple-text); }
.recipe-shortcut:hover { background: var(--tint); }
.recipe-shortcut svg { width: 17px; height: 17px; }
.more-menu { border-top: 1px solid var(--line); }
.more-menu summary, .technique summary, .method summary { min-height: 44px; align-content: center; color: var(--purple-text); font-size: 14px; font-weight: 710; cursor: pointer; }

.basket-aisle { overflow: clip; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 13px; }
.basket-aisle h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--tint);
  min-height: 39px; padding: 8px 13px; color: var(--purple-text); font-size: 13px;
}
.basket-aisle h3 span { font-variant-numeric: tabular-nums; }
.basket-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.basket-row + .basket-row { border-top: 1px solid var(--line); }
.basket-row:hover { background: var(--soft); }
.shop-item { display: grid; grid-template-columns: 19px 43px minmax(0, 1fr) max-content; align-items: center; min-height: 64px; gap: 10px; padding: 8px 12px; cursor: pointer; }
.basket-row:has(.product-preview) .shop-item { align-items: start; padding-top: 11px; }
.product-image { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 8px; overflow: hidden; color: var(--purple-text); background: var(--white); outline: 1px solid #00000012; outline-offset: -1px; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.shop-item input { align-self: center; }
.shop-item .name, .shop-item .qty { overflow-wrap: anywhere; align-self: center; font-size: 14px; line-height: 1.25; font-weight: 690; }
.qty { color: var(--purple-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.basket-row:has(.product-preview) .shop-item .name, .basket-row:has(.product-preview) .shop-item .qty { align-self: start; padding-top: 2px; }
.shop-item:has(input:checked) .name { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.shop-item:has(input:checked) .qty { color: var(--muted); }
.product-preview {
  display: flex; align-items: center; gap: 4px; min-height: 44px; width: fit-content;
  max-width: calc(100% - 106px); margin: -16px 12px 2px 94px;
  position: relative; z-index: 1; padding: 2px 0; color: var(--muted); font-size: 12px; line-height: 1.25;
}
.product-caption { display: grid; gap: 3px; min-width: 0; }
.product-title { color: var(--ink); font-weight: 635; font-size: 12px; }
.product-preview svg { width: 14px; height: 14px; color: var(--purple-text); }
.product-preview:hover { color: var(--purple-text); text-decoration: underline; text-underline-offset: 3px; }
.product-preview:focus-visible { outline-offset: 1px; }
.catalog-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.pdf-base { font-size: 13px; }
.basket-empty { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.basket-empty strong { font-size: 17px; }
.basket-empty p { color: var(--muted); margin: 7px 0 14px; }

.recipe-filters, .guide-index { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.filter, .guide-index a {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 13px; border: 1px solid #e2d8ef; border-radius: 9px; background: white; color: var(--ink);
  font-size: 14px; font-weight: 680; transition: background-color .14s, color .14s, transform .10s;
}
.filter:hover, .guide-index a:hover { background: var(--tint); color: var(--purple-text); }
.filter[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: white; }
.recipe-count { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.recipe-row {
  display: grid; grid-template-columns: 51px minmax(0, 1fr) 20px; gap: 12px; align-items: center;
  min-height: 81px; padding: 10px 8px 10px 0; border-top: 1px solid var(--line); transition: background-color .14s;
}
.recipe-row:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.recipe-row:hover { background: var(--tint); }
.recipe-symbol { display: grid; place-items: center; width: 51px; height: 51px; border-radius: 11px; overflow: hidden; color: var(--purple-text); background: var(--tint); }
.recipe-symbol svg { width: 21px; height: 21px; }
.recipe-symbol img { width: 100%; height: 100%; object-fit: cover; object-position: 67% 66%; outline: 1px solid #0000001a; outline-offset: -1px; }
.recipe-copy h2 { font-size: 16px; line-height: 1.28; letter-spacing: -.015em; }
.recipe-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.recipe-meta svg { width: 14px; height: 14px; }
.recipe-in-menu {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 3px; color: var(--purple-text); font-weight: 670; font-size: 11px;
}
.recipe-in-menu svg { width: 13px; height: 13px; }
.recipe-arrow, .guide-originals b { color: var(--purple-text); }

.guide-section { margin: 0 0 18px; padding: 23px 0; border-top: 1px solid var(--line); }
.guide-section .blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin-top: 19px; }
.guide-section .blocks h3 { color: var(--purple-text); margin-bottom: 4px; }
.guide-section p { font-size: 14px; }
.plate-section {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 21px; margin: 0 0 19px; padding: 20px;
  background: var(--tint); border-radius: var(--radius);
}
.plate-explainer > p:not(.eyebrow) { margin: 8px 0 1px; color: var(--muted); font-size: 14px; }
.plate-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.plate-parts div { padding: 10px; border-radius: 8px; background: white; }
.plate-parts dt { color: var(--purple-text); font-size: 14px; font-weight: 760; }
.plate-parts dd { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.technique, .method { padding: 6px 14px; border: 1px solid var(--line); border-radius: 11px; }
.technique div, .method p { margin: 10px 0 15px; }
.technique p, .method p { margin-top: 5px; font-size: 14px; }
.guide-originals { margin-top: 25px; }
.guide-originals h2 { margin-bottom: 9px; }
.guide-originals a { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; min-height: 48px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.guide-originals a:hover b { text-decoration: underline; }
.guide-originals span { color: var(--muted); }

.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 18px; margin-bottom: 20px; }
.calc-form { display: grid; gap: 15px; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; min-width: 0; align-content: start; gap: 6px; font-size: 14px; font-weight: 710; }
.field input, .field select { width: 100%; min-width: 0; font-size: 16px; font-weight: 500; }
.field small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.5; padding: 5px 0; cursor: pointer; }
.consent input { margin-top: 2px; }
.error { color: var(--error); font-size: 13px; font-weight: 650; }
.error:empty { display: none; }
.calc-result { align-self: start; background: var(--tint); border-radius: var(--radius); padding: 24px; }
.calc-result p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.calc-result .eyebrow { margin: 0; color: var(--purple-text); }
.calc-result .big { font-size: 43px; color: var(--purple-text); line-height: 1.2; font-weight: 800; font-variant-numeric: tabular-nums; }
.result-step { margin-top: 18px; padding-top: 12px; border-top: 1px solid #dfd0fa; }
.empty-icon { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 13px; background: var(--purple); color: white; border-radius: 11px; font-size: 24px; }

.contact-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  margin-top: 28px; padding: 20px; background: var(--tint); border-radius: var(--radius);
}
.contact-cta .contact-eyebrow, .contact-cta .contact-hint { display: none; }
.contact-copy p { margin-top: 7px; max-width: 58ch; color: var(--muted); font-size: 14px; }
.whatsapp-button { white-space: nowrap; }

dialog { color: var(--ink); width: min(640px, calc(100% - 28px)); max-height: 90dvh; padding: 26px; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 16px 65px #32136535; overscroll-behavior: contain; }
dialog::backdrop { background: #20133375; }
dialog .close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; color: var(--purple-text); background: var(--tint); z-index: 2; }
dialog .close:hover { background: var(--tint-strong); }
dialog h2 { padding-right: 41px; font-size: clamp(24px, 4vw, 32px); }
dialog h2 + p { margin-top: 8px; }
dialog:has(.recipe-scroll) { padding: 0; overflow: hidden; }
#dialog-body:has(.recipe-scroll) { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: 89dvh; }
.recipe-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px 24px 17px; }
.recipe-servings { display: flex; gap: 10px; align-items: center; margin: 15px 0; font-size: 14px; font-weight: 710; }
.ingredient-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; font-size: 14px; border-bottom: 1px solid var(--line); }
.ingredient-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.steps-title { margin-top: 17px; }
.recipe-steps { margin: 8px 0 15px; padding-left: 24px; }
.recipe-steps li { margin: 0 0 9px; font-size: 14px; line-height: 1.55; }
.recipe-steps li::marker { color: var(--purple-text); font-weight: 730; }
.recipe-detail-note { padding: 13px; background: var(--tint); border-radius: 11px; }
.recipe-detail-note p { font-size: 13px; margin: 0 0 8px; }
.recipe-detail-note p:last-child { margin: 0; }
.recipe-tip, .smallprint { color: var(--muted); font-size: 13px; margin-top: 11px; }
.recipe-actions { display: flex; justify-content: flex-end; padding: 10px 24px; border-top: 1px solid var(--line); background: white; }
.source-item { margin-top: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.source-item a, dialog .smallprint a { color: var(--purple-text); text-decoration: underline; }
.source-item p { font-size: 13px; margin-top: 3px; }
.loading { padding: 20px 0; color: var(--muted); }
#toast {
  position: fixed; z-index: 11; bottom: 20px; left: 50%; transform: translateX(-50%);
  max-width: calc(100vw - 24px); width: max-content; padding: 10px 15px; border-radius: 10px;
  background: var(--ink); color: white; font-size: 13px;
}
#toast:empty { display: none; }

@media (min-width: 900px) {
  .basket-row { grid-template-columns: minmax(0, 1fr) minmax(118px, 30%); align-items: center; }
  .basket-row:has(.product-preview) .shop-item { align-items: center; padding-block: 7px; }
  .basket-row:has(.product-preview) .shop-item .name, .basket-row:has(.product-preview) .shop-item .qty { align-self: center; padding: 0; }
  .basket-row:not(:has(.product-preview)) .shop-item { grid-column: 1 / -1; }
  .product-preview { max-width: none; margin: 0 10px 0 3px; }
  .product-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}

@media (max-width: 899px) {
  :root { --header: 59px; }
  .header, .shell { padding-inline: 18px; }
  .shell { display: block; max-width: 710px; }
  main { padding-top: 19px; }
  .screen-heading { margin-bottom: 16px; }
  h1 { font-size: clamp(27px, 6vw, 39px); }
  .lede { margin-top: 6px; font-size: 14px; }
  .nav {
    position: fixed; z-index: 6; top: auto; bottom: 0; left: 0; right: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; align-items: center;
    min-height: calc(var(--dock) + env(safe-area-inset-bottom)); padding: 4px max(9px, calc((100vw - 520px) / 2)) calc(4px + env(safe-area-inset-bottom));
    background: white; border-top: 1px solid var(--line); box-shadow: 0 -3px 18px #2410410b;
  }
  .nav a { min-height: 51px; flex-direction: column; justify-content: center; gap: 4px; font-size: 11px; padding: 5px 2px; }
  .nav a svg { width: 21px; height: 21px; }
  .nav a[aria-current="page"] { background: var(--tint); }
  .footer { padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom) + 12px); }
  .shop-summary { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .summary-icon { width: 36px; height: 36px; border-radius: 9px; align-self: center; }
  .summary-icon svg { width: 21px; height: 21px; }
  .summary-main { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .summary-main strong { font-size: 13px; }
  .summary-main span { font-size: 12px; }
  .summary-main progress { margin-top: 2px; }
  .people-control > span { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .people-control select { min-height: 44px; font-size: 16px; padding-inline: 6px; }
  .shop-switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 13px;
    padding: 3px; background: var(--tint); border-radius: 11px;
  }
  .shop-switch button {
    display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
    color: var(--purple-text); font-weight: 730; font-size: 14px; border: 0; background: transparent; border-radius: 8px;
  }
  .shop-switch svg { width: 17px; height: 17px; }
  .shop-switch [aria-pressed="true"] { background: white; color: var(--purple-text); box-shadow: 0 1px 3px #3b126622; }
  .shop-switch .menu-count { min-width: 20px; min-height: 20px; border-radius: 6px; font-size: 11px; }
  .shop-workspace { display: block; margin-top: 8px; }
  .shop-workspace[data-shop="lista"] .menu-panel, .shop-workspace[data-shop="menu"] .basket-panel { display: none; }
  .menu-panel { position: static; margin-top: 14px; max-height: none; overflow: visible; }
  .basket-heading { min-height: 47px; margin-bottom: 3px; }
  .basket-heading h2 { font-size: 20px; }
  .basket-heading .text-button { font-size: 12px; }
  .recipe-grid { display: block; }
  .recipe-row:nth-last-child(2) { border-bottom: 0; }
  .recipe-row { min-height: 72px; }
  #toast { bottom: calc(var(--dock) + env(safe-area-inset-bottom) + 11px); }
}

@media (max-width: 520px) {
  .header, .shell { padding-inline: 15px; }
  .monogram { width: 36px; height: 36px; border-radius: 10px; font-size: 18px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand small { font-size: 8px; }
  .shop-item { gap: 8px; grid-template-columns: 19px 38px minmax(0, 1fr) max-content; }
  .product-image { width: 38px; height: 38px; }
  .product-preview { margin-left: 85px; max-width: calc(100% - 97px); }
  .calc-layout, .guide-section .blocks, .plate-section { grid-template-columns: 1fr; }
  .calc-form, .calc-result { padding: 15px; }
  .contact-cta { flex-direction: column; align-items: stretch; padding: 16px; }
  .whatsapp-button { width: 100%; }
  .recipe-scroll { padding: 21px 15px 13px; }
  .recipe-actions { padding: 9px 15px; }
  .recipe-actions .button { width: 100%; }
  dialog { padding: 19px; }
}

@media (max-width: 360px) {
  .shop-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .summary-icon { display: none; }
  .filter, .guide-index a { padding-inline: 9px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

@media print {
  .app-header, .nav, .footer, .menu-panel, .shop-switch, .contact-cta, .pdf-base { display: none; }
  .shell, .shop-workspace { display: block; padding: 0; }
  .shop-workspace[data-shop] .basket-panel { display: block; }
}
