:root {
  --page: #fffaf4;
  --surface: #fff;
  --cream: #f8efe2;
  --food-surface: #fcf7f0;
  --ink: #29221e;
  --muted: #6d5c51;
  --accent: #ad422c;
  --accent-dark: #893020;
  --accent-soft: #fae8dd;
  --line: #eaddd0;
  --shadow: 0 10px 28px #462c1811;
  --radius-card: 19px;
  --radius-feature: 26px;
  --radius-pill: 999px;
  --control-height: 44px;
  --type-control: 13px;
  --space-section: 24px;
  --shell: 760px;
  --nav-bottom-padding: max(7px, env(safe-area-inset-bottom));
  --nav-height: calc(53px + var(--nav-bottom-padding));
  color: var(--ink);
  background: var(--page);
  font: 16px/1.4 system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent-dark); }
.icon-library { position: absolute; width: 0; height: 0; }
.icon { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { width: min(100%, var(--shell)); margin: auto; padding: 0 18px calc(var(--nav-height) + 16px); }
.topbar { min-height: calc(58px + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .location { display: inline-flex; align-items: center; gap: 8px; }
.brand { min-height: var(--control-height); border: 0; padding: 0; background: none; text-align: left; font-size: 15px; letter-spacing: .035em; }
.brand img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; }
.location { border-radius: 30px; background: var(--cream); padding: 7px 10px; font-size: 12px; font-weight: 700; }
.location .icon { width: 15px; height: 15px; color: var(--accent); }
#screen:focus { outline: none; }
.preview-banner { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.hero { display: grid; align-items: center; overflow: hidden; border-radius: var(--radius-feature); background: var(--accent-dark); color: var(--page); }
.hero-with-photo { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.hero-copy { min-width: 0; padding: 16px 14px; }
.hero h1 { margin: 0; font-size: clamp(26px, 8vw, 56px); font-weight: 850; line-height: .98; letter-spacing: -.055em; }
.hero p { margin: 6px 0 0; font-size: 12px; }
.hero-photo { display: block; align-self: stretch; width: 100%; height: 100%; object-fit: contain; background: #faf5ed; }
.hero-button, .primary-button { min-height: var(--control-height); border: 0; border-radius: var(--radius-pill); background: var(--accent); color: white; padding: 10px 17px; font-size: var(--type-control); font-weight: 760; transition: background-color .16s ease; }
.hero-button { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding-inline: 11px; margin-top: 9px; background: var(--page); color: var(--accent-dark); }
.hero-button:hover { background: var(--cream); }
.hero-button:focus-visible { outline-color: var(--page); }
.primary-button:hover:not(:disabled) { background: var(--accent-dark); }
.hero-button .icon, .text-button .icon { width: 16px; height: 16px; }
.primary-button { width: 100%; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: var(--space-section) 0 10px; }
.section-head h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; line-height: 1.15; }
.text-button { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; border: 0; padding: 5px 0; background: none; color: var(--accent-dark); font-size: 13px; font-weight: 750; text-align: left; }
.page-head { padding: 5px 0 15px; }
.page-title { margin: 0; font-size: clamp(30px, 7vw, 40px); letter-spacing: -.047em; line-height: 1.12; overflow-wrap: anywhere; }
.subtle, .screen-note { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.screen-note { font-size: 12px; margin: 12px 0; }
.catalog-heading { padding-bottom: 6px; }
.menu-tools { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; padding: 8px 0; background: var(--page); }
.menu-search { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); color: var(--muted); }
.menu-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.menu-search input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 0; background: none; border: 0; color: var(--ink); }
.menu-search input:focus { outline: 0; }
.menu-search input::-webkit-search-cancel-button { display: none; }
.menu-search input::placeholder { color: var(--muted); }
.menu-search .icon { width: 19px; height: 19px; }
.search-clear { display: grid; place-items: center; flex: 0 0 var(--control-height); min-height: var(--control-height); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--accent-dark); }
.search-clear:hover { background: var(--accent-soft); }
.search-clear[hidden] { display: none; }
.category-grid, .category-strip { display: flex; gap: 7px; overflow-x: auto; padding: 3px 2px 9px; margin: 0 -2px 9px; scrollbar-width: thin; scrollbar-color: #d2b7a2 transparent; }
.category-chip, .category-tile { flex: 0 0 auto; min-height: var(--control-height); padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--type-control); font-weight: 690; }
.category-chip.selected { color: var(--accent-dark); background: var(--accent-soft); border-color: #edb9a5; }
.menu-tools .category-grid { padding: 4px 4px 8px; margin: 0 -4px; overscroll-behavior-x: contain; }
.category-tile { background: var(--cream); border-color: transparent; white-space: nowrap; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.category-tile:hover { border-color: var(--accent); }
.category-tile[aria-pressed="true"] { color: var(--surface); background: var(--accent-dark); border-color: var(--accent-dark); }
.menu-empty { padding-block: 30px; }
.menu-empty h2 { margin: 0 0 6px; font-size: 21px; }
.menu-empty .text-button { margin-top: 8px; padding-inline: 12px; }
.home-section .section-head { margin: 15px 0 6px; }
.home-section .section-head h2 { font-size: 19px; }
.home-categories { display: flex; gap: 6px; overflow-x: auto; padding: 3px 4px 6px; margin: 0 -4px; scrollbar-width: thin; scrollbar-color: #d2b7a2 transparent; overscroll-behavior-x: contain; }
.home-categories .category-chip { padding-inline: 12px; }
.home-categories .category-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.home-builders .builder-links { margin-top: 8px; }
.home-builders .builder-tile-photo { aspect-ratio: 1.8; }
.builder-links, .menu-products, .builder-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.builder-links { margin: 10px 0 15px; }
.builder-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 79px; border: 1px solid #f2d4c3; border-radius: 17px; padding: 8px; text-align: left; background: var(--accent-soft); color: #64291e; }
.builder-tile:nth-child(2) { border-color: #e4e4d2; background: #f0f0e3; color: #434927; }
.builder-tile-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; background: #fffaf5; }
.builder-tile-icon .icon { width: 19px; height: 19px; }
.builder-tile b, .builder-tile small { display: block; font-size: 12px; line-height: 1.18; }
.builder-tile small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.builder-tile-with-photo, .builder-tile-with-photo:nth-child(2) { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-color: var(--line); border-radius: var(--radius-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.builder-tile-with-photo:hover { border-color: var(--accent); }
.builder-tile-photo { position: relative; display: block; overflow: hidden; aspect-ratio: 1.55; border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0; background: var(--food-surface); }
.builder-tile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.builder-tile-photo small { position: absolute; right: 5px; bottom: 4px; padding: 2px 5px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 9px; }
.builder-tile-with-photo .builder-tile-copy { display: flex; flex: 1; flex-direction: column; justify-content: space-between; padding: 9px 10px 11px; }
.builder-tile-with-photo b { font-size: 14px; }
.menu-product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); }
.menu-product-link { width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.menu-product-link>span { display: block; padding: 10px 10px 2px; font-size: 14px; font-weight: 740; line-height: 1.23; overflow-wrap: anywhere; }
.product-photo { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4/3; background: #fffaf4; }
.photo-placeholder { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--cream); color: #9c7059; }
.photo-placeholder .icon { width: 27px; height: 27px; }
.product-photo:has(img) .photo-placeholder { visibility: hidden; }
.product-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo-original img { inset: 7%; width: 86%; height: 86%; object-fit: cover; border-radius: 13px; filter: brightness(1.12) saturate(1.08) contrast(1.04); }
.photo-studio { background: #fff7f0; }
.photo-reference img { object-fit: cover; }
.photo-caption { position: absolute; right: 6px; bottom: 6px; padding: 3px 6px; border-radius: 20px; background: #fff9; color: #231a15; font-size: 9px; font-weight: 720; backdrop-filter: blur(5px); }
.menu-product-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px; margin-top: auto; padding: 6px 10px 10px; font-size: 14px; }
.menu-product-footer .text-button { min-height: 35px; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; }
.menu-product-footer .text-button:hover { background: #f6d3c2; }
#menu-results { padding-top: 6px; }
#menu-results .menu-products { gap: 12px; }
#menu-results .menu-product { border-color: transparent; min-width: 0; }
#menu-results .menu-product-link:focus-visible { outline-offset: -3px; }
#menu-results .product-photo { aspect-ratio: 1.16; }
#menu-results .photo-reference img { object-fit: contain; }
#menu-results .photo-caption, .product-panel .photo-caption { background: var(--surface); }
#menu-results .menu-product-link>span { padding: 10px 10px 0; font-size: 15px; font-weight: 760; }
.catalog-description { margin: 5px 10px 2px; color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
#menu-results .menu-product-footer { gap: 5px 6px; padding: 10px; font-size: 15px; }
#menu-results .menu-product-footer .text-button { justify-content: center; min-height: var(--control-height); padding-inline: 11px; font-size: 12px; transition: background-color .16s ease, transform .16s ease; }
#menu-results .menu-product-footer [data-add] { color: var(--surface); background: var(--accent); }
#menu-results .menu-product-footer [data-add]:hover { background: var(--accent-dark); }
#menu-results button:active, .product-panel button:active, .category-tile:active { transform: scale(.97); }
#menu-results button:focus-visible { scroll-margin-top: 120px; }
.product-panel { min-height: calc(100dvh - var(--nav-height) - 100px - env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; }
.product-back { align-self: flex-start; min-height: var(--control-height); padding-inline: 7px 12px; margin-bottom: 8px; }
.product-back .icon { transform: rotate(180deg); }
.product-layout { display: grid; gap: 11px; margin-bottom: 14px; }
.product-media, .product-copy { min-width: 0; }
.product-media { position: relative; }
.product-back-icon.icon-button { position: absolute; z-index: 1; top: 8px; left: 8px; background: var(--surface); }
.product-back-icon .icon { width: 19px; height: 19px; transform: rotate(180deg); }
.product-media .screen-note { margin: 4px 3px 0; font-size: 11px; overflow-wrap: anywhere; }
.product-panel .product-photo { border-radius: var(--radius-card); aspect-ratio: 1.82; max-height: 248px; background: var(--food-surface); }
.product-panel .photo-reference img { object-fit: contain; }
.product-category { margin: 0 0 5px; color: var(--accent-dark); font-size: var(--type-control); font-weight: 730; }
.product-description { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.product-variants { min-width: 0; margin: 13px 0 0; padding: 0; border: 0; }
.product-variants legend { margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 750; }
.product-variants>div { display: flex; flex-wrap: wrap; gap: 8px; }
.product-variants .category-chip { flex: 0 1 auto; max-width: 100%; overflow-wrap: anywhere; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.product-variants .category-chip.selected { border-color: var(--accent); }
.product-copy .info-card { margin-top: 14px; }
.product-purchase { position: sticky; bottom: var(--nav-height); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.product-purchase strong { flex: 1 1 auto; font-size: 19px; overflow-wrap: anywhere; }
.product-purchase .primary-button { width: auto; flex: 0 1 auto; min-width: 0; }
:root:has(.product-purchase) { scroll-padding-bottom: calc(var(--nav-height) + 112px); }
.empty-card, .info-card, .status-card { border: 1px solid var(--line); border-radius: 21px; padding: 17px; background: white; box-shadow: var(--shadow); }
.empty-card { text-align: center; padding: 25px 16px; }
.empty-symbol, .avatar { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); }
.empty-symbol { margin: 0 auto 10px; }
.empty-card h3, .info-card h3, .status-card h3 { margin: 0 0 6px; font-size: 16px; }
.empty-card p, .status-card p { margin: 0; color: var(--muted); font-size: 13px; }
.status-card { display: flex; gap: 11px; align-items: flex-start; margin-top: 14px; }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.cart-list { display: grid; gap: 8px; }
.cart-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; gap: 3px 8px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cart-thumb .product-photo { aspect-ratio: 1; border-radius: 10px; }
.cart-thumb .photo-placeholder { width: 40px; height: 40px; }
.cart-thumb .photo-caption { right: 2px; bottom: 2px; padding: 1px 3px; text-align: center; }
.cart-copy h2 { margin: 3px 0; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.cart-copy p { margin: 4px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.cart-remove.icon-button { background: transparent; }
.cart-remove .icon { width: 17px; height: 17px; }
.cart-remove:hover { background: var(--accent-soft); }
.cart-row-controls { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.cart-line-price strong, .cart-purchase strong { display: block; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line-price small, .cart-purchase span { display: block; color: var(--muted); font-size: 11px; }
.qty { display: inline-flex; align-items: center; gap: 2px; border-radius: var(--radius-pill); background: var(--cream); }
.qty button { min-width: var(--control-height); min-height: var(--control-height); padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; font-size: 19px; }
.qty button:hover { background: var(--accent-soft); }
.qty b { min-width: 16px; text-align: center; font-size: 13px; }
.cart-panel { display: flex; flex-direction: column; min-height: calc(100dvh - var(--nav-height) - 100px - env(safe-area-inset-top, 0px)); }
.cart-purchase { position: sticky; bottom: var(--nav-height); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-top: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cart-purchase strong { font-size: 19px; }
.cart-purchase .primary-button { width: auto; }
.cart-empty .primary-button { margin-top: 10px; }
.checkout-note { margin: 0 0 10px; }
.checkout-note h2, .checkout-summary h2 { margin: 0 0 4px; font-size: 16px; }
.checkout-summary .line-item { gap: 8px; }
.checkout-summary .line-item div { min-width: 0; overflow-wrap: anywhere; }
.checkout-summary small { display: block; color: var(--muted); }
.checkout-summary strong { white-space: nowrap; }
.line-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.line-item { min-height: 44px; padding: 7px 1px; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item span:last-child { color: var(--muted); }
.profile-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 13px; border-radius: var(--radius-card); background: var(--cream); }
.profile-card h2 { margin: 0; font-size: 18px; line-height: 1.2; }
.profile-card p { margin: 4px 0 0; }
.avatar { width: 50px; height: 50px; flex: 0 0 auto; background: var(--surface); }
.avatar .icon { width: 24px; height: 24px; }
.profile-details, .profile-about { margin: 0; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.profile-details { list-style: none; }
.profile-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 7px 0; }
.profile-row + .profile-row { border-top: 1px solid var(--line); }
.profile-row-icon { display: grid; flex: 0 0 32px; place-items: center; height: 32px; border-radius: 10px; background: var(--cream); color: var(--accent-dark); }
.profile-row .icon { width: 18px; height: 18px; }
.profile-row strong { display: block; font-size: 14px; }
.profile-row small, .profile-about p { color: var(--muted); font-size: 12px; }
.profile-row small { display: block; margin-top: 2px; }
.profile-about { margin-top: 8px; }
.profile-about summary { list-style: none; cursor: pointer; }
.profile-about summary::-webkit-details-marker { display: none; }
.profile-about summary>.icon { margin-left: auto; transform: rotate(90deg); }
.profile-about[open] summary>.icon { transform: rotate(-90deg); }
.profile-about p { margin: 0 0 12px 42px; }
.builder-intro { display: grid; overflow: hidden; }
.builder-intro .product-photo { aspect-ratio: 1.5; background: var(--food-surface); }
.builder-intro .photo-caption { background: var(--surface); }
.builder-studio { --dish-height: clamp(165px, 49vw, 236px); margin-top: 8px; }
.builder-dish { min-width: 0; margin: 0; padding: 4px 10px 8px; border-radius: var(--radius-card); background: var(--cream); }
.builder-dish-svg, #builder-dish-example .product-photo { display: block; width: 100%; height: var(--dish-height); }
#builder-dish-example .product-photo img { object-fit: contain; }
#builder-dish-example .photo-caption { background: var(--surface); }
.builder-dish-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: min(100%, 270px); margin: 0 auto 5px; }
.builder-dish-modes button { min-height: var(--control-height); padding: 5px 8px; border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 720; }
.builder-dish-modes button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--line); }
.builder-dish-modes button:hover { border-color: var(--accent); }
.builder-dish figcaption { color: var(--muted); font-size: 11px; text-align: center; }
.ingredient-layer { opacity: 0; transition: opacity .18s ease; }
.ingredient-layer.is-selected { opacity: 1; }
.builder-intro-copy { min-width: 0; padding: 0 0 4px; }
.builder-intro-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: var(--type-control); }
.builder-intro-meta strong { padding: 6px 10px; border-radius: var(--radius-pill); color: var(--accent-dark); background: var(--accent-soft); }
.builder-tools { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; padding: 4px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); background: var(--page); }
.builder-tools button { display: flex; align-items: center; gap: 4px; min-height: var(--control-height); padding: 0 7px; border: 0; border-radius: 12px; background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 740; }
.builder-tools button:hover { background: var(--accent-soft); }
.builder-tools svg { width: 42px; height: 40px; }
.builder-group { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.builder-groups .builder-group:first-child { margin-top: 0; }
.builder-group legend { padding: 0; font-size: 20px; font-weight: 780; letter-spacing: -.025em; }
.builder-group-count { margin: 1px 0 7px; color: var(--muted); font-size: var(--type-control); }
.builder-options { gap: 7px; }
.builder-option { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; gap: 2px 5px; align-items: center; min-height: 54px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.builder-option:hover { border-color: var(--accent); }
.builder-option:active { transform: scale(.98); }
.builder-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.builder-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.builder-option input { position: absolute; width: 1px; height: 1px; margin: 0; clip-path: inset(50%); }
.builder-option-name { align-self: end; font-size: 14px; line-height: 1.2; font-weight: 730; overflow-wrap: anywhere; }
.builder-option small { grid-column: 1; color: var(--muted); font-size: 12px; }
.builder-option-mark { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--cream); color: var(--accent-dark); font-size: 18px; line-height: 1; transition: background-color .16s ease, color .16s ease; }
.builder-option-mark span:last-child, .builder-option:has(input:checked) .builder-option-mark span:first-child { display: none; }
.builder-option:has(input:checked) .builder-option-mark { background: var(--accent-dark); color: var(--surface); }
.builder-option:has(input:checked) .builder-option-mark span:last-child { display: block; font-size: 15px; }
:root:has(#builder-summary) { scroll-padding-top: calc(56px + env(safe-area-inset-top, 0px)); scroll-padding-bottom: calc(var(--nav-height) + var(--builder-space, 62px) + 12px); }
.app-shell:has(#builder-summary) { padding-bottom: calc(var(--nav-height) + var(--builder-space, 62px) + 14px); }
#builder-summary { position: fixed; z-index: 4; inset-inline: 0; bottom: var(--nav-height); width: min(var(--shell), 100%); margin-inline: auto; padding: 8px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-card) var(--radius-card) 0 0; background: var(--surface); box-shadow: 0 -8px 25px #472d1d18; }
.builder-summary-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.builder-summary-row .primary-button { width: auto; min-width: 124px; }
.builder-total { display: grid; line-height: 1.2; gap: 2px; }
.builder-total span { color: var(--muted); font-size: 12px; }
.builder-total strong { font-size: 21px; }
.icon-button { display: inline-grid; place-items: center; min-width: var(--control-height); min-height: var(--control-height); padding: 6px; border: 0; border-radius: var(--radius-pill); background: var(--cream); color: var(--accent-dark); }
.builder-dialog { width: min(calc(100% - 24px), 490px); max-height: min(84dvh, 650px); padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--page); color: var(--ink); }
.builder-dialog::backdrop { background: #29221e75; }
.builder-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.builder-dialog h2 { margin: 0; font-size: 20px; }
.builder-dialog .subtle { margin-bottom: 8px; }
.builder-selection-dialog { width: min(100%, 490px); margin: auto auto 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-radius: var(--radius-card) var(--radius-card) 0 0; }
.builder-large-preview svg { display: block; width: 100%; max-height: 54dvh; }
.builder-selected { display: grid; }
.builder-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--control-height); padding: 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--accent-dark); text-align: left; font-size: 14px; font-weight: 700; }
.builder-chip small { margin-left: 3px; color: var(--muted); white-space: nowrap; }
.builder-chip:hover { background: var(--accent-soft); }
.builder-chip:focus-visible { outline-offset: -2px; }
.builder-chip .icon { width: 17px; height: 17px; }
.bottom-nav { position: fixed; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); width: min(var(--shell), 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 4px 8px var(--nav-bottom-padding); background: var(--surface); border-top: 1px solid var(--line); }
.bottom-nav button { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 48px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 11px; font-weight: 680; padding: 3px 2px; }
.bottom-nav button.active { color: var(--accent-dark); font-weight: 800; }
.nav-icon { display: grid; place-items: center; width: 28px; height: 21px; }
.nav-icon .icon { width: 21px; height: 21px; }
.bottom-nav button.active .icon { stroke-width: 2.15; }
.bottom-nav i { position: absolute; top: 2px; left: calc(50% + 7px); min-width: 17px; padding: 1px 4px; border-radius: 14px; background: var(--accent); color: white; font-size: 10px; font-style: normal; }
#toast { position: fixed; right: max(12px, calc((100% - var(--shell)) / 2 + 12px)); bottom: calc(var(--nav-height) + 7px); z-index: 10; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); padding: 7px 8px 7px 11px; border-radius: 18px; background: #30231c; color: white; box-shadow: 0 6px 18px #39231538; font-size: 12px; font-weight: 680; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .16s, transform .16s; }
#toast.show { opacity: 1; transform: none; }
.app-shell:has(#builder-summary) #toast { bottom: calc(var(--nav-height) + var(--builder-space, 62px) + 7px); }
.app-shell:has(.product-purchase) #toast { bottom: calc(var(--nav-height) + 94px); }
.app-shell:has(.cart-purchase) #toast { bottom: calc(var(--nav-height) + 84px); }
#toast .icon { width: 17px; height: 17px; }
.toast-price { padding: 4px 8px; border: 1px solid #f1c7aa; border-radius: 999px; white-space: nowrap; }
@media (min-width: 600px) {
  .app-shell { padding-inline: 24px; }
  .hero-with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-photo { min-height: 190px; aspect-ratio: 1.85; }
  .hero-copy { padding: 22px 28px; }
  .hero h1 { font-size: clamp(38px, 6vw, 55px); }
  .menu-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; }
  .builder-tile:not(.builder-tile-with-photo) { padding: 12px; }
  .builder-tile b { font-size: 14px; }
  .builder-tile-photo { aspect-ratio: 2; }
  .builder-tile-photo img { object-fit: contain; }
  .builder-intro-with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .builder-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .app-shell { padding-inline: 12px; }
  .hero-copy { padding-inline: 12px; }
  .builder-tile:not(.builder-tile-with-photo) { gap: 5px; }
  .builder-tile-icon { width: 25px; height: 25px; }
  #menu-results .menu-product-footer .text-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Premium 3.0: warm editorial storefront, with food as the focal point. */
:root { --page: #faf7f2; --cream: #f1e9dd; --ink: #2c251f; --muted: #736458; --accent: #ab432e; --accent-dark: #853322; --line: #e9e1d7; --shadow: 0 5px 18px #3b261009; --radius-card: 22px; }
.topbar { min-height: calc(72px + env(safe-area-inset-top, 0px)); gap: 8px; }
.brand { font-size: 16px; letter-spacing: -.035em; }
.brand img { width: 38px; height: 38px; }
.header-actions { display: flex; gap: 4px; }
.header-actions .icon-button { background: transparent; }
.header-cart { position: relative; }
.header-cart i { position: absolute; top: 1px; right: 0; min-width: 17px; padding: 1px 4px; border-radius: 10px; background: var(--accent); color: white; font-size: 10px; font-style: normal; }
.hero { position: relative; isolation: isolate; display: block; min-height: 280px; background: #eee0ce; color: var(--ink); border-radius: 26px; }
.hero-copy { position: relative; z-index: 1; padding: 24px 20px 105px; pointer-events: none; }
.hero-copy button { pointer-events: auto; }
.eyebrow { display: block; color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .15em; margin-bottom: 9px; }
.hero h1 { font-size: clamp(32px, 8.7vw, 46px); line-height: 1.01; letter-spacing: -.06em; max-width: 330px; }
.hero p { font-size: 13px; margin-top: 9px; }
.hero-button { margin-top: 18px; background: var(--accent-dark); color: white; padding-inline: 16px; box-shadow: 0 4px 12px #7e3a2320; }
.hero-button:hover { background: var(--accent); }
.hero-photo { position: absolute; z-index: -1; width: 74%; height: 210px; right: -11%; bottom: -29px; object-fit: contain; background: transparent; mix-blend-mode: multiply; transform: rotate(-12deg); }
.home-section .section-head { margin: 25px 0 12px; }
.home-section .section-head h2 { font-size: 22px; letter-spacing: -.045em; }
.home-categories { gap: 10px; padding-bottom: 8px; scroll-snap-type: x proximity; }
.home-category { flex: 0 0 88px; padding: 0; border: 0; background: transparent; text-align: center; scroll-snap-align: start; }
.home-category .product-photo, .category-art { display: grid; place-items: center; aspect-ratio: 1; border-radius: 23px; background: var(--cream); }
.home-category .product-photo img { mix-blend-mode: multiply; object-fit: contain; }
.home-category b { display: block; margin-top: 8px; font-size: 12px; }
.home-category .photo-caption { inset: auto 2px 3px; padding: 2px; font-size: 8px; }
.home-builders .section-head { margin-bottom: 5px; }
.section-description { font-size: 13px; line-height: 1.45; margin: 0 0 13px; color: var(--muted); }
.home-builders .builder-links { gap: 12px; }
.home-builders .builder-tile { background: #f3e1d5; border: 0; box-shadow: none; overflow: hidden; }
.home-builders .builder-tile:nth-child(2) { background: #e9ecdc; }
.home-builders .builder-tile-photo { aspect-ratio: 1.28; border-radius: 0; background: transparent; }
.home-builders .builder-tile-photo img { object-fit: contain; mix-blend-mode: multiply; }
.home-builders .builder-tile-copy { padding: 12px 14px 16px; gap: 8px; }
.home-builders .builder-tile b { font-size: 17px; line-height: 1.12; letter-spacing: -.025em; }
.home-builders .builder-tile-copy small { font-size: 12px; color: var(--ink); }
.home-showcase .menu-products { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scroll-snap-type: x proximity; }
.home-showcase .menu-product { flex: 0 0 185px; box-shadow: none; border: 0; scroll-snap-align: start; }
.home-showcase .product-photo { aspect-ratio: 1.15; }
.home-showcase .catalog-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.home-showcase .text-button { min-height: 44px; }
.preview-info { margin-top: 22px; padding: 0 4px; color: var(--muted); font-size: 12px; }
.preview-info summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.preview-info summary::-webkit-details-marker { display: none; }
.preview-info summary .icon { width: 16px; height: 16px; }
.preview-info summary .icon:last-child { margin-left: auto; transform: rotate(90deg); }
.preview-info p { margin: 0 0 12px 24px; }
@media (min-width: 600px) {
 .hero { min-height: 310px; }
 .hero-copy { padding: 36px; }
 .hero h1 { font-size: 49px; }
 .hero-photo { right: -2%; bottom: -25px; width: 60%; height: 290px; }
 .home-category { flex-basis: 100px; }
 .home-builders .builder-tile-photo { aspect-ratio: 1.9; }
}
@media (max-width: 350px) {
 .hero-copy { padding: 21px 16px 110px; }
 .hero-photo { right: -15%; bottom: -31px; width: 78%; height: 195px; }
 .hero h1 { font-size: 31px; }
 .home-section .section-head h2 { font-size: 20px; }
}
.hero-photo { mask-image: radial-gradient(ellipse 65% 42% at 50% 53%, #000 57%, transparent 88%); }
.home-builders .builder-tile-photo img { mask-image: radial-gradient(ellipse 70% 58% at center, #000 55%, transparent 95%); }
/* Catalogue: an open grid, generous food media and consistent purchase actions. */
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 10px; }
.catalog-heading .eyebrow { margin-bottom: 5px; }
.preview-label { padding: 5px 8px; border-radius: 8px; background: var(--cream); color: var(--muted); font-size: 10px; }
.menu-tools { padding-top: 10px; }
.menu-search { border-color: transparent; background: #eee8df; border-radius: 16px; margin-bottom: 7px; }
.category-tile { background: transparent; padding: 8px 15px; }
.category-tile[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); box-shadow: 0 3px 7px #2c251f12; }
#menu-results .menu-products { gap: 24px 14px; }
#menu-results .menu-product { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#menu-results .product-photo { border-radius: 21px; aspect-ratio: 1.07; background: #f1e7db; }
#menu-results .photo-studio img { mix-blend-mode: multiply; }
#menu-results .menu-product-link>span { padding: 11px 1px 0; font-size: 15px; line-height: 1.25; font-weight: 750; letter-spacing: -.025em; }
#menu-results .catalog-description { margin: 5px 1px 0; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-option-note { margin: 5px 1px 0; color: var(--muted); font-size: 11px; }
#menu-results .menu-product-footer { padding: 10px 0 0; gap: 7px; align-items: stretch; }
#menu-results .menu-product-footer strong { flex-basis: 100%; font-size: 17px; letter-spacing: -.025em; }
#menu-results .menu-product-footer .text-button { width: 100%; border-radius: 13px; background: #eedbcf; color: var(--accent-dark); font-size: 13px; }
#menu-results .menu-product-footer .text-button:hover { background: #e6c7b6; }
.menu-empty { border: 0; box-shadow: none; background: var(--cream); margin-top: 15px; }
.menu-empty .empty-symbol { background: var(--surface); }
/* Product: a large food stage, readable composition and a quiet purchase dock. */
.product-layout { gap: 20px; }
.product-panel .product-photo { aspect-ratio: 1.25; max-height: 310px; border-radius: 25px; background: #f1e7db; }
.product-panel .photo-studio img { mix-blend-mode: multiply; }
.product-back-icon.icon-button { top: 12px; left: 12px; box-shadow: 0 2px 10px #38231410; }
.product-copy { padding-inline: 3px; }
.product-category { margin-bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.product-copy .page-title { font-size: clamp(27px, 7vw, 35px); line-height: 1.1; }
.product-composition { margin-top: 20px; }
.product-composition h2 { margin: 0; font-size: 14px; font-weight: 750; }
.product-description { margin-top: 7px; font-size: 14px; line-height: 1.6; }
.product-variants { margin-top: 21px; }
.product-variants>div { padding: 5px; border-radius: 17px; background: var(--cream); gap: 4px; }
.product-variants .category-chip { flex: 1 1 90px; padding: 9px 10px; border-radius: 12px; border-color: transparent; background: transparent; }
.product-variants .category-chip.selected { background: white; color: var(--accent-dark); border-color: transparent; box-shadow: 0 2px 7px #442b1512; }
.product-purchase { margin-top: 18px; padding: 12px 0; border: 0; border-radius: 0; background: var(--page); gap: 8px; }
.purchase-price { flex: 1; min-width: 0; }
.purchase-price small { display: block; font-size: 11px; color: var(--muted); }
.product-purchase strong { font-size: 23px; letter-spacing: -.035em; }
.product-purchase .primary-button { min-height: 48px; border-radius: 15px; padding-inline: 18px; }
@media (min-width: 600px) { .product-panel .product-photo { aspect-ratio: 1; } }
@media (max-width: 350px) { .product-purchase .primary-button { padding-inline: 12px; font-size: 12px; } }
.product-purchase { margin-top: auto; }
.photo-studio img { mask-image: radial-gradient(ellipse 75% 75% at center, #000 60%, transparent 95%); }
/* Builders: an illustration studio and compact, tactile ingredient tiles. */
.builder-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.builder-heading .product-back { margin: 0; padding: 8px; }
.builder-heading .eyebrow { margin: 0; }
.builder-intro-copy .page-title { max-width: 360px; font-size: 29px; }
.builder-intro-meta { margin-top: 10px; }
.builder-intro-meta strong { background: transparent; padding: 0; font-size: 13px; }
.builder-studio { --dish-height: clamp(180px, 53vw, 250px); margin-top: 15px; }
.builder-dish { position: relative; background: radial-gradient(ellipse at 50% 40%, #fffaf0 10%, #eee1ce 95%); border-radius: 26px; padding-block: 7px 11px; }
.builder-dish figcaption { font-size: 10px; line-height: 1.4; }
.builder-tools { border-bottom: 0; padding-block: 7px; margin-bottom: 12px; gap: 5px; }
.builder-tools button { padding-inline: 8px; border-radius: 14px; background: var(--cream); font-size: 11px; }
.builder-tools button:first-child { flex: 1; }
.builder-tools button:last-child { background: var(--accent-soft); }
.builder-group legend { font-size: 22px; }
.builder-group-count { font-size: 11px; margin-top: 3px; margin-bottom: 10px; }
.builder-options { gap: 9px; }
.builder-option { grid-template-columns: 30px minmax(0,1fr) 21px; min-height: 69px; padding: 9px 7px; gap: 3px 5px; border: 1px solid transparent; border-radius: 16px; box-shadow: 0 2px 8px #38251505; }
.ingredient-art { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; }
.ingredient-swatch { width: 30px; height: 30px; }
.builder-option-name { grid-column: 2; font-size: 12px; align-self: end; }
.builder-option small { grid-column: 2; font-size: 11px; align-self: start; }
.builder-option-mark { grid-column: 3; width: 21px; height: 21px; font-size: 16px; }
.builder-option:has(input:checked) { background: #f8e8dc; border-color: #bb745a; box-shadow: none; }
#builder-summary { border: 0; border-radius: 22px 22px 0 0; padding-block: 10px; box-shadow: 0 -4px 22px #3b26100d; }
.builder-summary-row .primary-button { border-radius: 14px; min-height: 46px; }
.builder-dialog { border: 0; box-shadow: 0 18px 70px #25170d25; }
.builder-preview-dialog, .builder-large-preview { background: radial-gradient(ellipse, #fffaf0, #f1e6d5); border-radius: 20px; }
@media (max-width: 350px) {
 .builder-option { grid-template-columns: 22px minmax(0,1fr) 18px; gap: 2px 4px; padding-inline: 6px; }
 .ingredient-swatch { width: 24px; height: 24px; }
 .builder-option-mark { width: 18px; height: 18px; }
 .builder-tools button { font-size: 10px; padding-inline: 5px; }
 .builder-intro-copy .page-title { font-size: 27px; }
}
/* Cart: clear rows and a receipt, without pretending to submit an order. */
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.cart-count-label { border-radius: 12px; background: var(--cream); padding: 7px 10px; font-size: 13px; }
.cart-list { gap: 0; padding: 0 12px; background: white; border-radius: 23px; }
.cart-row { grid-template-columns: 76px minmax(0,1fr) 32px; padding: 16px 0; gap: 5px 10px; border: 0; border-radius: 0; background: none; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-thumb .product-photo { border-radius: 16px; background: var(--page); }
.cart-thumb .photo-reference img { object-fit: contain; }
.cart-copy h2 { font-size: 15px; line-height: 1.25; letter-spacing: -.02em; }
.cart-copy p { font-size: 11px; line-height: 1.5; }
.cart-remove.icon-button { min-width: 32px; width: 32px; min-height: 44px; padding: 5px; color: var(--muted); }
.cart-line-price strong { font-size: 16px; }
.cart-row-controls { gap: 5px; margin-top: 6px; }
.qty { gap: 0; background: #f3eee7; border-radius: 12px; }
.qty button { min-width: 38px; min-height: 44px; border-radius: 12px; }
.qty b { min-width: 18px; }
.custom-recipe-label { display: inline-block; margin: 3px 0 0; font-size: 10px; font-weight: 700; color: var(--accent-dark); }
.cart-receipt { margin-top: 20px; padding: 16px; background: #eee5d9; border-radius: 20px; }
.cart-receipt>div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.cart-receipt>div:last-child { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #c5b7a4; font-size: 20px; letter-spacing: -.025em; }
.cart-demo-note { display: flex; gap: 8px; padding: 0 5px; margin: 14px 0 22px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.cart-demo-note .icon { width: 16px; height: 16px; margin-top: 1px; }
.cart-purchase { padding: 12px 0; border: 0; border-radius: 0; background: var(--page); }
.cart-purchase strong { font-size: 23px; letter-spacing: -.03em; }
.cart-purchase .primary-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border-radius: 15px; }
.cart-purchase .icon { width: 17px; height: 17px; }
.cart-empty .empty-card { margin-top: 15px; padding-block: 42px; background: var(--cream); border: 0; box-shadow: none; }
.cart-empty .primary-button { border-radius: 16px; margin-top: 16px; }
.checkout-note { background: var(--accent-soft); border: 0; box-shadow: none; border-radius: 20px; }
.checkout-summary { margin-top: 20px; border: 0; box-shadow: none; }
.checkout-summary .line-item { padding-block: 14px; font-size: 13px; }
.checkout-summary .line-item:last-child { font-size: 19px; }
@media (max-width: 350px) { .cart-list { padding-inline: 10px; } .cart-row { grid-template-columns: 56px minmax(0,1fr) 28px; gap: 5px 7px; } .cart-copy h2 { font-size: 13px; } }
.qty button { min-width: 44px; }
.cart-remove.icon-button { min-width: 44px; width: 44px; }
.cart-row { grid-template-columns: 76px minmax(0,1fr) 44px; }
@media (max-width: 350px) { .cart-row { grid-template-columns: 52px minmax(0,1fr) 44px; } }
/* Guest profile: finished presentation with explicit unavailable states. */
.profile-heading { padding-top: 12px; padding-bottom: 20px; }
.profile-card { padding: 22px 18px; border-radius: 24px; background: #ebddcb; gap: 15px; }
.profile-card .avatar { width: 60px; height: 60px; background: #faf3e8; color: var(--accent-dark); }
.profile-card .avatar .icon { width: 29px; height: 29px; }
.guest-badge { display: block; color: var(--accent-dark); font-size: 9px; letter-spacing: .12em; font-weight: 800; margin-bottom: 6px; }
.profile-card h2 { font-size: 21px; letter-spacing: -.04em; }
.profile-card .subtle { font-size: 12px; }
.profile-signin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 5px 12px; }
.profile-signin>div { flex: 1 1 180px; }
.profile-signin h2 { font-size: 14px; margin: 0 0 4px; }
.profile-signin p { font-size: 12px; line-height: 1.5; margin: 0; color: var(--muted); }
.coming-label { display: inline-block; padding: 5px 8px; background: var(--cream); color: var(--muted); border-radius: 8px; font-size: 10px; }
.profile-section-title { font-size: 11px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .1em; margin: 18px 4px 8px; }
.profile-details, .profile-about { border: 0; border-radius: 18px; padding-inline: 14px; }
.profile-row { min-height: 65px; gap: 12px; padding-block: 12px; }
.profile-row-icon { flex-basis: 36px; height: 36px; border-radius: 12px; background: var(--page); }
.profile-row strong { font-size: 14px; }
.profile-row small { font-size: 11px; line-height: 1.4; margin-top: 4px; }
.profile-about { margin-top: 7px; }
.profile-about p { font-size: 12px; line-height: 1.65; margin: 0 0 0 48px; padding-bottom: 17px; }
.profile-footer { display: grid; gap: 4px; padding: 30px 5px 12px; text-align: center; color: var(--muted); }
.profile-footer span { font-size: 12px; font-weight: 850; letter-spacing: .07em; }
.profile-footer small { font-size: 11px; }
@media (max-width: 350px) { .profile-card { padding: 17px 12px; gap: 10px; } .profile-card h2 { font-size: 18px; } .profile-card .avatar { width: 48px; height: 48px; } }
/* Motion and navigation polish. Keep touch targets stable during feedback. */
button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease; }
button:active:not(:disabled) { transform: scale(.97); }
.bottom-nav { box-shadow: 0 -3px 20px #38231306; border-top-color: #e9e1d780; }
.nav-icon { width: 42px; border-radius: 9px; transition: background-color .18s ease; }
.bottom-nav button.active .nav-icon { background: var(--accent-soft); }
#screen { animation: screen-enter .2s ease-out; }
#screen[data-view]>* { animation: content-enter .2s ease-out; }
#screen .menu-tools, #screen #builder-summary { animation: none; }
.builder-dialog[open] { animation: dialog-enter .2s ease-out; }
.profile-about[open] p, .preview-info[open] p { animation: content-enter .18s ease-out; }
@keyframes content-enter { from { opacity: .45; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }
@keyframes screen-enter { from { opacity: .75; } to { opacity: 1; } }
@keyframes dialog-enter { from { opacity: .4; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
 button:active:not(:disabled) { transform: none !important; }
}
/* UX 4.0: one bottom purchase dock at a time. */
.floating-cart { position: fixed; z-index: 4; bottom: calc(var(--nav-height) + 8px); left: 50%; translate: -50% 0; width: min(calc(100% - 28px), calc(var(--shell) - 36px)); display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border: 0; border-radius: 18px; color: #fff; background: var(--accent-dark); box-shadow: 0 5px 22px #32180f28; animation: content-enter .18s ease-out; }
.floating-cart[hidden] { display: none; }
.floating-cart>span { flex: 1; text-align: left; font-size: 13px; font-weight: 750; }
.floating-cart small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; }
.floating-cart strong { white-space: nowrap; font-size: 16px; font-variant-numeric: tabular-nums; }
.app-shell.has-floating-cart { padding-bottom: calc(var(--nav-height) + var(--floating-space, 74px) + 14px); }
:root:has(.has-floating-cart) { scroll-padding-bottom: calc(var(--nav-height) + var(--floating-space, 74px) + 14px); }
.has-floating-cart #toast { bottom: calc(var(--nav-height) + var(--floating-space, 74px) + 8px); }
@media (prefers-reduced-motion: reduce) { .floating-cart { animation: none; } }
.catalog-control { width: 100%; }
.catalog-control>.text-button { justify-content: center; width: 100%; min-height: 44px; }
.catalog-qty { display: flex; width: 100%; min-height: 44px; justify-content: space-between; border-radius: 13px; background: var(--accent-soft); }
.catalog-qty button { flex: 0 0 44px; min-width: 44px; color: var(--accent-dark); }
.catalog-qty b { align-self: center; }
.profile-link { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; width: 100%; border: 0; border-radius: 18px; background: var(--surface); text-align: left; }
.profile-link>span:nth-child(2) { flex: 1; }
.profile-link strong { display: block; font-size: 14px; }
.profile-link small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.profile-link>.icon { width: 18px; height: 18px; }
.secondary-button { min-height: 44px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 15px; background: var(--surface); color: var(--accent-dark); font-size: 14px; font-weight: 750; }
.save-build { width: 100%; margin-top: 22px; }
.storage-warning { color: var(--accent-dark); background: var(--accent-soft); padding: 12px; border-radius: 12px; font-size: 13px; overflow-wrap: anywhere; }
.saved-list { display: grid; gap: 14px; }
.saved-build { min-width: 0; padding: 17px; border-radius: 22px; background: var(--surface); }
.saved-build-title { display: flex; gap: 10px; align-items: center; }
.saved-build-title>div { min-width: 0; }
.saved-build small { font-size: 11px; color: var(--muted); }
.saved-build h2 { margin: 3px 0 0; font-size: 19px; overflow-wrap: anywhere; }
.saved-build p { color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.saved-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.saved-actions .primary-button { border-radius: 14px; }
.saved-actions .text-button { min-height: 44px; }
.recipe-dialog label { display: block; margin-top: 20px; font-size: 14px; font-weight: 650; }
.recipe-dialog input { width: 100%; min-height: 48px; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 16px; }
#recipe-error { color: var(--accent-dark); font-size: 13px; }
.menu-product { position: relative; }
.favorite-toggle.icon-button { position: absolute; z-index: 1; top: 7px; right: 7px; width: 44px; height: 44px; background: var(--surface); color: var(--accent-dark); box-shadow: 0 2px 8px #38251b0d; }
.favorite-toggle .icon { width: 21px; height: 21px; }
.favorite-toggle[aria-pressed="true"] .icon { fill: currentColor; }
.product-media .favorite-toggle { top: 12px; right: 12px; }
.missing-favorite { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--cream); font-size: 13px; }
.missing-favorite .text-button { min-height: 44px; }
/* Theme tokens: food media retains its natural colours in either theme. */
:root { --action-bg: #ab432e; --action-hover: #853322; --on-action: #fff; --feature: #eee0ce; --secondary-feature: #e9ecdc; --food-light: #f1e7db; }
.theme-picker { min-width: 0; margin: 20px 0; padding: 0; border: 0; }
.theme-picker legend { font-size: 14px; font-weight: 750; margin-bottom: 8px; padding: 0 4px; }
.theme-picker>div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; padding: 4px; background: var(--cream); border-radius: 15px; }
.theme-picker button { min-width: 0; min-height: 44px; padding: 8px 3px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.theme-picker button[aria-pressed="true"] { background: var(--surface); color: var(--accent-dark); box-shadow: var(--shadow); }
:root[data-theme="dark"] {
 --page: #1d1a17; --surface: #28231f; --cream: #352d26; --food-surface: #f1e7db;
 --ink: #f5ede5; --muted: #c2b2a3; --accent: #e5a285; --accent-dark: #f0b99c; --accent-soft: #493126;
 --line: #514236; --shadow: 0 5px 18px #0002; --feature: #3b2d24; --secondary-feature: #303628;
 --action-bg: #b74b32; --action-hover: #9b3f29; --on-action: #fff;
}
[data-theme="dark"] .primary-button, [data-theme="dark"] .hero-button, [data-theme="dark"] .floating-cart { background: var(--action-bg); color: var(--on-action); }
[data-theme="dark"] .primary-button:hover:not(:disabled), [data-theme="dark"] .hero-button:hover { background: var(--action-hover); }
[data-theme="dark"] .hero { background: var(--feature); color: var(--ink); }
[data-theme="dark"] .hero-photo, [data-theme="dark"] .photo-studio img, [data-theme="dark"] .home-category .product-photo img, [data-theme="dark"] .home-builders .builder-tile-photo img { mix-blend-mode: normal; }
[data-theme="dark"] .home-builders .builder-tile, [data-theme="dark"] .builder-tile { background: var(--feature); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .home-builders .builder-tile:nth-child(2), [data-theme="dark"] .builder-tile:nth-child(2) { background: var(--secondary-feature); color: var(--ink); }
[data-theme="dark"] .builder-tile-icon { background: var(--surface); }
[data-theme="dark"] .home-builders .builder-tile-copy small { color: var(--ink); }
[data-theme="dark"] .menu-search, [data-theme="dark"] .cart-receipt, [data-theme="dark"] .qty { background: var(--cream); }
[data-theme="dark"] .menu-product-footer .text-button, [data-theme="dark"] #menu-results .menu-product-footer .text-button { color: var(--accent-dark); background: var(--accent-soft); }
[data-theme="dark"] #menu-results .menu-product-footer .catalog-qty [data-add] { background: var(--action-bg); color: var(--on-action); }
[data-theme="dark"] .home-category .product-photo, [data-theme="dark"] .product-photo, [data-theme="dark"] #menu-results .product-photo, [data-theme="dark"] .product-panel .product-photo { background: var(--food-light); }
[data-theme="dark"] .photo-caption { color: var(--ink); background: var(--surface); }
[data-theme="dark"] .product-variants .category-chip.selected { background: var(--surface); }
[data-theme="dark"] .empty-card, [data-theme="dark"] .info-card, [data-theme="dark"] .status-card, [data-theme="dark"] .cart-list { background: var(--surface); }
[data-theme="dark"] .checkout-note { background: var(--accent-soft); }
[data-theme="dark"] .cart-receipt>div:last-child { border-color: var(--line); }
[data-theme="dark"] .profile-card { background: var(--feature); }
[data-theme="dark"] .profile-card .avatar { background: var(--cream); }
[data-theme="dark"] .builder-option:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
[data-theme="dark"] .builder-option:has(input:checked) .builder-option-mark { background: var(--accent-dark); color: var(--page); }
[data-theme="dark"] .builder-dish figcaption { color: #665344; }
[data-theme="dark"] .builder-dish-modes button { color: #743e29; }
[data-theme="dark"] .builder-dish-modes button[aria-pressed="true"] { background: #eed5bd; border-color: #c49d7a; }
[data-theme="dark"] .builder-tools button:last-child { background: var(--accent-soft); }
[data-theme="dark"] .bottom-nav { border-top-color: var(--line); }
[data-theme="dark"] .category-tile[aria-pressed="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
[data-theme="dark"] #toast { background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
[data-theme="dark"] .toast-price { border-color: var(--accent); }
/* Light food stages avoid colour inversion and halos around the source photos. */
[data-theme="dark"] .hero { background: #ddc9af; color: #2c251f; }
[data-theme="dark"] .hero .eyebrow { color: #783323; }
[data-theme="dark"] .hero-photo { mix-blend-mode: multiply; }
[data-theme="dark"] .home-builders .builder-tile-photo { background: var(--food-light); }
[data-theme="dark"] .home-builders .builder-tile-photo img { mix-blend-mode: multiply; }
[data-theme="dark"] .header-cart i, [data-theme="dark"] .bottom-nav i { color: var(--page); }
.account-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 12px; }
.account-panel h2 { font-size: 1.15rem; margin: 0 0 8px; }
.account-panel p { color: var(--muted); font-size: .875rem; line-height: 1.55; margin: 6px 0 12px; overflow-wrap: anywhere; }
.account-panel form { display: grid; gap: 9px; margin-block: 12px; }
.account-panel label { font-size: .875rem; font-weight: 650; }
.account-panel input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); }
.account-panel .account-consent { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; line-height: 1.4; }
.account-consent input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--action-bg); }
.account-consent a { color: var(--accent-dark); }
.account-person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; overflow-wrap: anywhere; }
.account-person .avatar { flex: 0 0 auto; color: var(--accent-dark); background: var(--cream); font-weight: 750; }
.account-person p { margin: 0; }
.account-panel .secondary-button { margin: 2px 6px 2px 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.account-panel .account-error { color: var(--accent-dark); margin-bottom: 0; }
.account-error:empty { display: none; }
.account-dialog { max-width: min(400px, calc(100vw - 32px)); }
.account-dialog h2 { margin-bottom: 16px; }
.account-logout { width: 100%; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.recommendation-section { min-width: 0; }
.recommendation-section .section-head { flex-wrap: wrap; }
.recommendation-section .text-button { min-height: 44px; }
.recommendation-section .menu-product { scroll-margin-inline: 6px; }
@media (min-width: 700px) {
  .recommendation-section .menu-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cart-panel .recommendation-section { margin-block: 8px 16px; }
@media (max-width: 699px) {
  .cart-panel .recommendation-section .menu-product { flex-basis: 155px; }
}
.recipe-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: 10px; }
.recipe-shortcut { min-width: 0; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.recipe-shortcut small, .recipe-shortcut p { color: var(--muted); }
.recipe-shortcut h3 { margin: 6px 0; font-size: 1rem; }
.recipe-shortcut p { margin: 6px 0 10px; font-size: .875rem; }
.recommendation-toggle { display: flex; gap: 9px; align-items: center; min-height: 44px; }
.recommendation-toggle input { width: 20px; height: 20px; accent-color: var(--action-bg); flex: 0 0 auto; }
#recommendation-storage-note:empty { display: none; }
.cart-panel .recommendation-section .product-photo { aspect-ratio: 1.65; }
.cart-panel .recommendation-section .catalog-description { display: none; }
.app-shell[hidden], .beta-gate[hidden] { display: none; }
.beta-gate {
  display: grid; align-items: center; justify-items: center;
  min-height: 100svh;
  padding: calc(22px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 12% 8%, var(--accent-soft), transparent 54%), var(--page);
}
.beta-card {
  width: min(100%, 450px); padding: clamp(20px, 6vw, 36px); overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
}
.beta-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; font-weight: 800; }
.beta-brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.beta-card h1 { margin: 0 0 10px; font-size: clamp(1.65rem, 6vw, 2.3rem); line-height: 1.08; letter-spacing: -.045em; }
.beta-card p { line-height: 1.5; color: var(--muted); margin: 0 0 13px; }
.beta-card form { display: grid; gap: 9px; margin: 18px 0 13px; }
.beta-card label { font-size: .9rem; font-weight: 700; }
.beta-card input { width: 100%; min-width: 0; min-height: 50px; border-radius: 13px; border: 1px solid var(--line); padding: 10px 12px; background: var(--page); color: var(--ink); font-size: 16px; }
.beta-card button { min-height: 46px; }
.beta-card .beta-kicker { color: var(--accent-dark); font-size: .8rem; font-weight: 750; }
.beta-card .beta-number { font-weight: 750; color: var(--ink); }
.beta-card .beta-note { margin-top: 12px; font-size: .83rem; }
.beta-card .account-error { margin-top: 12px; color: var(--accent-dark); font-size: .9rem; }
.beta-card .account-error:empty { display: none; }
@media (max-width: 480px) {
  .beta-gate {
    min-height: 100dvh;
    padding-block: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-bottom));
  }
  .beta-card { padding: clamp(16px, 5vw, 24px); border-radius: 21px; }
  .beta-brand { margin-bottom: 15px; }
  .beta-brand img { width: 42px; height: 42px; }
  .beta-card form { margin-block: 13px 10px; }
  .beta-card .secondary-button { width: 100%; }
  .beta-card input { scroll-margin-block: 14px; }
}
@media (max-height: 510px) {
  .beta-gate { align-items: start; }
  .beta-brand { margin-bottom: 10px; }
  .beta-card h1 { font-size: clamp(1.45rem, 5vw, 1.85rem); }
}

.draft-notice { margin: 0; padding: 10px 16px; text-align: center; background: var(--accent-soft); }
.draft-notice a { color: inherit; }
