@layer components {
  /* ── Buttons ─────────────────────────────────────────── */
  .btn {
    --bg: var(--orange); --fg: #fff; --bd: transparent;
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px;
    border-radius: var(--r-pill); border: 2px solid var(--bd);
    background: var(--bg); color: var(--fg);
    font-weight: 700; font-size: var(--t-l); letter-spacing: -.005em; line-height: 1;
    white-space: nowrap;
    transition: transform var(--t-med) var(--spring), background var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out), color var(--t-fast);
    touch-action: manipulation;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.97); transition-duration: 80ms; }
  .btn--primary { box-shadow: var(--glow); }
  .btn--primary:hover { --bg: var(--orange-deep); }
  .btn--dark { --bg: var(--bottle); --fg: #fff; }
  .btn--dark:hover { --bg: var(--bottle-2); }
  .btn--light { --bg: #fff; --fg: var(--bottle); box-shadow: var(--sh-2); }
  .btn--ghost { --bg: transparent; --fg: var(--bottle); --bd: var(--line-strong); }
  .btn--ghost:hover { --bd: var(--bottle); }
  .on-orange .btn--ghost, .on-dark .btn--ghost { --fg: #fff; --bd: rgb(255 255 255 / .5); }
  .on-orange .btn--ghost:hover, .on-dark .btn--ghost:hover { --bd: #fff; background: rgb(255 255 255 / .08); }
  .btn--block { width: 100%; }
  .btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--t-s); }
  .btn[disabled], .btn[aria-disabled='true'] { --bg: #E9E1DB; --fg: var(--ink-faint); box-shadow: none; transform: none; cursor: not-allowed; }
  .btn svg { width: 20px; height: 20px; flex: none; }
  .btn__split { display: flex; width: 100%; justify-content: space-between; align-items: center; }

  .icon-btn {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 14px;
    color: inherit;
    transition: background var(--t-fast) var(--ease-out), transform var(--t-med) var(--spring);
  }
  .icon-btn:hover { background: rgb(11 64 36 / .07); }
  .icon-btn:active { transform: scale(.9); }
  .topbar[data-tone='over'] .icon-btn:hover { background: rgb(255 255 255 / .16); }
  .icon-btn svg { width: 24px; height: 24px; }

  .link { color: var(--ember); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

  /* ── Status pill + bag button (top bar) ─────────────── */
  .status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 14px 0 12px; border-radius: var(--r-pill);
    background: var(--blush); color: var(--bottle);
    font-size: var(--t-xs); font-weight: 700;
    transition: background var(--t-fast);
  }
  .status-pill:hover { background: var(--peach-soft); }
  .status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; box-shadow: 0 0 0 3px rgb(46 158 91 / .2); }
  .status-pill[data-open='false'] i { background: var(--ember); box-shadow: 0 0 0 3px rgb(196 70 26 / .18); }
  .topbar[data-tone='over'] .status-pill { background: rgb(255 255 255 / .16); color: #fff; }
  .topbar[data-tone='over'] .status-pill i { background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .3); }
  @media (max-width: 420px) { .status-pill .status-pill__long { display: none; } }

  .bag-btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; border-radius: 14px;
    font-weight: 700; font-variant-numeric: tabular-nums;
    transition: background var(--t-fast);
  }
  .bag-btn:hover { background: rgb(11 64 36 / .07); }
  .topbar[data-tone='over'] .bag-btn:hover { background: rgb(255 255 255 / .16); }
  .bag-btn svg { width: 24px; height: 24px; }
  .bag-btn__total { display: none; }
  .bag-btn .count {
    position: absolute; top: 3px; left: 26px;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--orange); color: #fff; font-size: 11px; line-height: 19px; text-align: center;
    box-shadow: 0 0 0 2px #fff;
  }
  .topbar[data-tone='over'] .bag-btn .count { background: #fff; color: var(--orange); box-shadow: none; }
  .bag-btn .count:empty, .tabbar .count:empty { display: none; }
  @media (min-width: 1024px) {
    .bag-btn { padding: 0 16px 0 12px; background: var(--bottle); color: #fff; height: 48px; border-radius: var(--r-pill); }
    .bag-btn:hover { background: var(--bottle-2); }
    .topbar[data-tone='over'] .bag-btn { background: #fff; color: var(--bottle); }
    .topbar[data-tone='over'] .bag-btn:hover { background: #fff; }
    .bag-btn__total { display: inline; }
    .bag-btn .count { position: static; box-shadow: none; }
  }
  .is-bumping { animation: bump 520ms var(--spring); }
  @keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.22) rotate(-6deg); } 100% { transform: scale(1); } }

  .search-field {
    display: none; align-items: center; gap: 10px;
    height: 46px; width: 260px; padding: 0 16px; border-radius: var(--r-pill);
    background: var(--blush); color: var(--ink-soft); font-size: var(--t-s);
    transition: background var(--t-fast), width var(--t-med) var(--ease-out);
  }
  .search-field:hover { background: var(--peach-soft); }
  .search-field svg { width: 20px; height: 20px; color: var(--bottle); }
  .topbar[data-tone='over'] .search-field { background: rgb(255 255 255 / .16); color: rgb(255 255 255 / .85); }
  .topbar[data-tone='over'] .search-field svg { color: #fff; }
  @media (min-width: 1024px) { .search-field { display: inline-flex; } .topbar .search-btn { display: none; } }
  @media (min-width: 1280px) { .search-field { width: 300px; } }

  /* ── Chips & tags ───────────────────────────────────── */
  .chip {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    height: 40px; padding: 0 16px; border-radius: var(--r-pill);
    background: var(--blush); color: var(--bottle);
    font-weight: 600; font-size: var(--t-s); white-space: nowrap;
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast), transform var(--t-med) var(--spring);
  }
  .chip:hover { background: var(--peach-soft); }
  .chip:active { transform: scale(.95); }
  .chip[aria-pressed='true'], .chip[aria-current='true'] { background: var(--bottle); color: #fff; }
  .chip svg { width: 18px; height: 18px; }

  .tag {
    display: inline-flex; align-items: center; gap: 4px;
    height: 22px; padding: 0 8px; border-radius: 7px;
    background: var(--blush); color: var(--bottle);
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  }
  .tag--signature { background: var(--bottle); color: #fff; }
  .tag--light { background: #E6F0E3; color: var(--olive); }
  .tag--veg { background: #EEF3E2; color: #3B5A1E; }
  .tag--spicy { background: #FDE2D8; color: #A3360F; }
  .tag--sharing { background: var(--peach-soft); color: var(--ember); }
  .tag--hours { background: #FFF0D6; color: #7A4B00; text-transform: none; letter-spacing: 0; font-size: 12px; }

  /* ── Photos & branded placeholders ──────────────────── */
  .photo {
    position: relative; overflow: hidden;
    background-color: var(--c, var(--orange));
    background-size: cover; background-position: center;
  }
  .photo img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 420ms var(--ease-out), transform 900ms var(--ease-out);
  }
  .photo img.is-in { opacity: 1; }
  /* No photo yet: the dish name as a typographic tile on the tonal brand stripes. */
  .photo--ph {
    background-color: #EA5530;
    background-image: url('../assets/brand/stripe-tile.svg');
    background-size: 240px;
    display: grid; place-items: center;
  }
  .photo--ph::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(closest-side, var(--orange) 0 58%, rgb(243 97 56 / 0) 100%);
  }
  .photo--ph span {
    position: relative; z-index: 1; display: block; max-width: 84%;
    font-family: var(--font-display); font-variation-settings: var(--puff); font-weight: 700;
    color: #fff; font-size: clamp(14px, 12.5cqi, 44px); line-height: .95; text-align: center; text-wrap: balance;
    -webkit-text-stroke: .02em #fff; paint-order: stroke fill; overflow-wrap: break-word;
  }
  .photo-box { container-type: inline-size; }
  @container (max-width: 90px) {
    .photo--ph span { font-size: 0; -webkit-text-stroke: 0; }
    .photo--ph span::first-letter { font-size: 28px; -webkit-text-stroke: .02em #fff; }
  }

  /* ── Add button + stepper ───────────────────────────── */
  .add {
    display: inline-grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--orange); color: #fff;
    box-shadow: 0 8px 18px -8px rgb(243 97 56 / .9);
    transition: transform var(--t-med) var(--spring), background var(--t-fast);
  }
  .add:hover { background: var(--orange-deep); transform: rotate(90deg); }
  .add:active { transform: scale(.86); }
  .add svg { width: 22px; height: 22px; }

  .stepper {
    display: inline-flex; align-items: center; flex: none;
    height: 42px; border-radius: var(--r-pill);
    background: var(--bottle); color: #fff;
    box-shadow: 0 8px 18px -10px rgb(11 64 36 / .8);
  }
  .stepper button { display: grid; place-items: center; width: 40px; height: 42px; border-radius: 50%; transition: transform var(--t-med) var(--spring); }
  .stepper button:active { transform: scale(.82); }
  .stepper button svg { width: 18px; height: 18px; }
  .stepper output { min-width: 20px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
  .stepper--light { background: var(--blush); color: var(--bottle); box-shadow: none; }
  .stepper--lg { height: 52px; } .stepper--lg button { width: 48px; height: 52px; }

  /* ── Dish (one component, row on narrow containers, card on wide) ── */
  /* The query container is the wrapper: a container query can't restyle its own container. */
  .msec, .sbody, [data-saved] { container-type: inline-size; }
  .dishes { display: grid; gap: 0; }
  .dish {
    position: relative;
    display: grid; grid-template-columns: 1fr 112px; grid-template-areas: 'body media';
    gap: var(--s-4); padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
  }
  .dish__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r-m); }
  .dish__body { grid-area: body; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 2px; }
  .dish__name { font-size: var(--t-m); font-weight: 650; color: var(--ink); line-height: 1.25; }
  .dish__desc { font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .dish__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 4px; }
  .pricebox { display: inline-flex; align-items: baseline; gap: 5px; }
  .pricebox .from { font-size: var(--t-2xs); font-weight: 600; color: var(--ink-faint); }
  .dish__meta .price { font-size: var(--t-m); }
  .dish__media { grid-area: media; position: relative; }
  .dish__media .photo { aspect-ratio: 1; border-radius: var(--r-m); }
  .dish__media .photo img { transform: scale(1.01); }
  .dish__act { position: absolute; z-index: 2; right: -6px; bottom: -8px; }
  .dish[data-unavailable] .dish__media .photo { filter: saturate(.55); }

  @container (min-width: 620px) {
    .dishes { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: var(--s-6) var(--s-5); }
    .dish {
      grid-template-columns: 1fr; grid-template-areas: 'media' 'body';
      gap: var(--s-3); padding: 0; border: 0;
    }
    .dish__media .photo { border-radius: var(--r-l); box-shadow: var(--sh-1); transition: box-shadow var(--t-med) var(--ease-out); }
    .dish__act { right: 12px; bottom: 12px; }
    .dish__body { padding: 0 4px; }
    .dish:hover .dish__media .photo { box-shadow: var(--sh-2); }
    .dish:hover .dish__media .photo img { transform: scale(1.07); }
    .dish__desc { -webkit-line-clamp: 1; }
  }

  /* ── Section header ─────────────────────────────────── */
  .shead { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
  .shead h2 { font-size: var(--t-h2); }
  .shead p { color: var(--ink-soft); margin-top: var(--s-2); max-width: 46ch; }
  .shead__more { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; color: var(--ember); padding: 8px 0; }
  .shead__more svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--spring); }
  .shead__more:hover svg { transform: translateX(4px); }

  /* ── Horizontal rails ───────────────────────────────── */
  .rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: var(--col, 74%);
    gap: var(--s-4); overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    padding: 4px var(--gutter) var(--s-4); margin-inline: calc(-1 * var(--gutter));
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .rail-wrap { position: relative; }
  .rail-nav { display: none; gap: var(--s-2); }
  @media (min-width: 1024px) {
    .rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
    .rail-nav { display: flex; }
  }
  .rail-nav button {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--line-strong); color: var(--bottle);
    transition: border-color var(--t-fast), transform var(--t-med) var(--spring), opacity var(--t-fast);
  }
  .rail-nav button:hover { border-color: var(--bottle); }
  .rail-nav button:active { transform: scale(.9); }
  .rail-nav button[disabled] { opacity: .35; pointer-events: none; }
  .rail-nav svg { width: 20px; height: 20px; }

  /* ── Sheet / dialog ─────────────────────────────────── */
  .sheet { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; overflow: hidden; background: transparent; }
  .sheet::backdrop { background: transparent; }
  .sheet__scrim {
    position: absolute; inset: 0; background: rgb(8 30 18 / .5);
    opacity: 0; transition: opacity 360ms var(--ease-out);
  }
  .sheet[data-state='open'] .sheet__scrim { opacity: 1; }
  .sheet__panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: calc(100dvh - 28px - var(--safe-t));
    display: flex; flex-direction: column;
    background: var(--paper); border-radius: 28px 28px 0 0;
    box-shadow: var(--sh-3);
    transform: translateY(104%);
    transition: transform 520ms var(--spring-soft, var(--ease-out));
    overflow: hidden;
    overflow: clip;
    will-change: transform;
  }
  .sheet[data-state='open'] .sheet__panel { transform: translateY(var(--drag, 0px)); }
  .sheet.is-dragging .sheet__panel { transition: none; }
  .sheet__grab { position: absolute; z-index: 3; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgb(255 255 255 / .85); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
  .sheet__close {
    position: absolute; z-index: 4; top: 14px; right: 14px;
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    background: rgb(255 255 255 / .95); color: var(--bottle); box-shadow: var(--sh-2);
    transition: transform var(--t-med) var(--spring);
  }
  .sheet__close:hover { transform: rotate(90deg); }
  .sheet__close svg { width: 20px; height: 20px; }
  .sheet__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; -webkit-overflow-scrolling: touch; }
  .sheet__foot {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: var(--s-3);
    padding: var(--s-3) var(--s-4) calc(var(--s-3) + var(--safe-b));
    background: var(--paper); box-shadow: 0 -1px 0 var(--line);
  }
  .sheet__foot .btn { flex: 1; min-width: 0; padding-inline: 22px; }
  .btn__split { gap: 14px; }
  .btn__split > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .btn__split > span:last-child { flex: none; }

  @media (min-width: 900px) {
    .sheet__panel {
      left: 50%; right: auto; top: 50%; bottom: auto;
      width: min(960px, calc(100vw - 64px)); max-height: min(720px, calc(100dvh - 64px));
      border-radius: 32px;
      transform: translate(-50%, calc(-50% + 40px)) scale(.96); opacity: 0;
      transition: transform 480ms var(--spring-soft, var(--ease-out)), opacity 240ms var(--ease-out);
    }
    .sheet[data-state='open'] .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
    .sheet__grab { display: none; }
  }

  /* Drawer variant (bag on desktop) */
  @media (min-width: 1024px) {
    .sheet--drawer .sheet__panel {
      left: auto; right: 0; top: 0; bottom: 0; width: min(460px, 100vw); max-height: none; height: 100%;
      border-radius: 28px 0 0 28px; transform: translateX(104%); opacity: 1;
    }
    .sheet--drawer[data-state='open'] .sheet__panel { transform: translateX(0); }
  }

  /* ── Form controls ──────────────────────────────────── */
  .field { display: grid; gap: 8px; }
  .field > span { font-size: var(--t-s); font-weight: 650; color: var(--ink); }
  .field > span small { font-weight: 500; color: var(--ink-faint); margin-left: 6px; }
  .input {
    width: 100%; min-height: 54px; padding: 14px 16px;
    border-radius: 16px; border: 2px solid var(--line-strong); background: var(--paper);
    font-size: 16px; color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
  }
  textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
  .input::placeholder { color: #9AA39C; }
  .input:hover { border-color: #D3BFB2; }
  .input:focus { border-color: var(--bottle); box-shadow: 0 0 0 4px rgb(11 64 36 / .1); outline: none; }
  .field[data-invalid] .input { border-color: var(--ember); }
  .field__err { font-size: var(--t-xs); font-weight: 600; color: var(--ember); }
  .input-group { display: flex; align-items: stretch; border-radius: 16px; border: 2px solid var(--line-strong); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
  .input-group:focus-within { border-color: var(--bottle); box-shadow: 0 0 0 4px rgb(11 64 36 / .1); }
  .field[data-invalid] .input-group { border-color: var(--ember); }
  .input-group .input { border: 0; box-shadow: none; }
  .input-group__pre { display: grid; place-items: center; padding: 0 4px 0 16px; font-weight: 700; color: var(--ink-soft); }

  .segmented {
    position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 5px; border-radius: 18px; background: var(--blush);
  }
  .segmented label { position: relative; z-index: 1; }
  .segmented input { position: absolute; opacity: 0; pointer-events: none; }
  .segmented span {
    display: grid; place-items: center; gap: 2px; min-height: 48px; padding: 6px 10px; border-radius: 14px;
    font-weight: 700; color: var(--ink-soft); text-align: center; cursor: pointer;
    transition: color var(--t-fast);
  }
  .segmented span small { font-size: var(--t-2xs); font-weight: 600; opacity: .8; }
  .segmented input:checked + span { color: var(--bottle); }
  .segmented input:focus-visible + span { outline: 3px solid var(--bottle); outline-offset: 2px; }
  .segmented__thumb {
    position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
    width: calc((100% - 10px) / var(--n, 2)); border-radius: 14px; background: #fff; box-shadow: var(--sh-2);
    transform: translateX(calc(var(--i, 0) * 100%));
    transition: transform 460ms var(--spring);
  }

  .choice { position: relative; display: block; }
  .choice input { position: absolute; opacity: 0; pointer-events: none; }
  .choice__box {
    display: flex; align-items: center; gap: 12px;
    min-height: 54px; padding: 12px 16px; border-radius: 16px;
    border: 2px solid var(--line); background: var(--paper); cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-med) var(--spring);
  }
  .choice__box:hover { border-color: var(--line-strong); }
  .choice:active .choice__box { transform: scale(.98); }
  .choice__mark {
    display: grid; place-items: center; flex: none; width: 22px; height: 22px;
    border: 2px solid #C9B9AE; border-radius: 50%; transition: all var(--t-fast);
  }
  .choice__mark svg { width: 14px; height: 14px; color: #fff; opacity: 0; transform: scale(.4); transition: all var(--t-med) var(--spring); }
  .choice input[type='checkbox'] + .choice__box .choice__mark { border-radius: 7px; }
  .choice__name { flex: 1; font-weight: 600; }
  .choice__name small { display: block; font-weight: 500; font-size: var(--t-xs); color: var(--ink-soft); }
  .choice__price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: var(--t-s); }
  .choice input:checked + .choice__box { border-color: var(--bottle); background: #F6FAF6; }
  .choice input:checked + .choice__box .choice__mark { background: var(--bottle); border-color: var(--bottle); }
  .choice input:checked + .choice__box .choice__mark svg { opacity: 1; transform: scale(1); }
  .choice input:focus-visible + .choice__box { outline: 3px solid var(--bottle); outline-offset: 2px; }
  .choice input:disabled + .choice__box { opacity: .45; cursor: not-allowed; }

  .choices { display: grid; gap: 10px; }
  .choices--grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  /* ── Toasts ─────────────────────────────────────────── */
  .toasts {
    position: fixed; z-index: 80; left: 12px; right: 12px;
    bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
    display: grid; justify-items: center; gap: 8px; pointer-events: none;
  }
  .toast {
    pointer-events: auto;
    display: flex; align-items: center; gap: 12px; max-width: 520px; width: max-content;
    min-height: 52px; padding: 8px 8px 8px 18px; border-radius: 18px;
    background: var(--ink); color: #fff; box-shadow: var(--sh-3);
    font-weight: 600; font-size: var(--t-s);
    animation: toast-in 520ms var(--spring) both;
  }
  .toast.is-out { animation: toast-out 260ms var(--ease-in-out) both; }
  .toast__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); flex: none; }
  .toast__icon svg { width: 16px; height: 16px; }
  .toast__msg { flex: 1; }
  .toast__act { padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / .12); font-weight: 700; color: #fff; }
  .toast__act:hover { background: rgb(255 255 255 / .2); }
  @media (max-width: 1023px) { body:has(.bagbar[data-state='shown']) .toasts { bottom: calc(var(--tabbar-h) + var(--safe-b) + 80px); } }
  @keyframes toast-in { from { transform: translateY(24px) scale(.96); opacity: 0; } }
  @keyframes toast-out { to { transform: translateY(16px); opacity: 0; } }
  @media (min-width: 1024px) { .toasts { left: auto; right: 28px; bottom: 28px; justify-items: end; } }

  /* ── Empty states ───────────────────────────────────── */
  .empty { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding: var(--s-16) var(--s-4); }
  .empty h2 { font-size: var(--t-h3); }
  .empty p { color: var(--ink-soft); max-width: 36ch; }
  .empty__art { width: 132px; height: 132px; border-radius: 50%; overflow: hidden; }

  /* ── Marquee ────────────────────────────────────────── */
  .marquee { overflow: hidden; background: var(--bottle); color: var(--peach); padding: 18px 0; }
  .marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
  .marquee__track span {
    font-family: var(--font-display); font-variation-settings: var(--puff); font-weight: 700;
    font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); line-height: 1; white-space: nowrap; padding-right: .6em;
    -webkit-text-stroke: .02em currentColor; paint-order: stroke fill;
  }
  .marquee__track span:nth-child(even) { color: var(--orange); }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* ── Skeleton shimmer ───────────────────────────────── */
  .skel { background: linear-gradient(100deg, var(--blush) 30%, #fff 50%, var(--blush) 70%); background-size: 300% 100%; animation: skel 1.4s linear infinite; border-radius: 12px; }
  @keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

  /* ── Offline banner ─────────────────────────────────── */
  .offline {
    position: fixed; z-index: 70; top: calc(var(--topbar-h) + var(--safe-t) + 10px); left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill);
    background: var(--ink); color: #fff; font-size: var(--t-xs); font-weight: 700; box-shadow: var(--sh-2);
  }
  .offline svg { width: 16px; height: 16px; }
}
