      :root {
        color-scheme: light;
        text-autospace: normal;
        font-family: Helvetica, Tahoma, Arial, STXihei, "华文细黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
        --page-bg: #f8f6f6;
        --bg-card: #ffffff;
        --glass-card: rgba(255, 255, 255, 0.82);
        --primary: #0d9488;
        --primary-dark: #0f766e;
        --accent: #f97316;
        --surface: #ffffff;
        --border-soft: rgba(13, 148, 136, 0.12);
        --border-strong: rgba(31, 26, 44, 0.14);
        --text-strong: #1f1a2c;
        --text-muted: #5b6070;
        --shadow-card: 0 18px 48px rgba(31, 26, 44, 0.1);
        --shadow-soft: 0 12px 28px rgba(13, 148, 136, 0.14);
        --radius-card: 20px;
        --radius-pill: 999px;
        --spacing: 22px;
        --text-secondary: rgba(72, 80, 102, 0.92);
        --border-divider: rgba(31, 26, 44, 0.08);
        --bg-subtle: rgba(245, 245, 245, 0.9);
        --bg-hover: rgba(13, 148, 136, 0.04);
        --bg-active: rgba(13, 148, 136, 0.08);
        --icon-button-bg: rgba(255, 255, 255, 0.92);
        --icon-button-border: rgba(31, 26, 44, 0.08);
        --overlay-bg: rgba(0, 0, 0, 0.5);
        --input-bg: #ffffff;
        --skeleton-base: rgba(196, 204, 216, 0.35);
        --skeleton-shine: rgba(196, 204, 216, 0.7);
        --sticky-bar-bg: rgba(255, 255, 255, 0.96);
        background-color: var(--page-bg);
      }

      @media (prefers-color-scheme: dark) {
        :root {
          color-scheme: dark;
          --page-bg: #121212;
          --bg-card: #1e1e1e;
          --glass-card: rgba(30, 30, 30, 0.85);
          --surface: #1e1e1e;
          --bg-subtle: rgba(255, 255, 255, 0.08);
          --bg-hover: rgba(13, 148, 136, 0.15);
          --bg-active: rgba(13, 148, 136, 0.2);
          --input-bg: #2a2a2a;
          --icon-button-bg: rgba(40, 40, 40, 0.92);
          --icon-button-border: rgba(255, 255, 255, 0.1);
          --sticky-bar-bg: rgba(20, 20, 20, 0.96);
          --text-strong: #f5f5f5;
          --text-muted: #a0a0a0;
          --text-secondary: rgba(200, 200, 200, 0.9);
          --border-soft: rgba(255, 255, 255, 0.1);
          --border-strong: rgba(255, 255, 255, 0.2);
          --border-divider: rgba(255, 255, 255, 0.08);
          --primary: #14b8a6;
          --primary-dark: #0d9488;
          --accent: #fb923c;
          --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.3);
          --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.2);
          --overlay-bg: rgba(0, 0, 0, 0.7);
          --skeleton-base: rgba(60, 60, 60, 0.5);
          --skeleton-shine: rgba(80, 80, 80, 0.7);
        }
      }

      * {
        box-sizing: border-box;
      }

      body {
        margin: 0;
        min-height: 100vh;
        background: var(--page-bg);
        color: var(--text-strong);
        font-family: inherit;
      }

      .app-frame {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--page-bg);
        position: relative;
      }

      /* Video background */
      .bg-video {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 45vh;
        object-fit: cover;
        object-position: center bottom;
        opacity: 0.5;
        pointer-events: none;
        z-index: 0;
        mask-image: linear-gradient(to bottom, transparent 0%, black 35%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%);
      }

      /* Static image fallback (shown while video loads or if unsupported) */
      .app-frame::after {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 45vh;
        background:
          linear-gradient(to bottom, var(--page-bg) 0%, transparent 35%),
          url('/static/images/beach-bg.jpg') center bottom / cover no-repeat;
        opacity: 0.5;
        pointer-events: none;
        z-index: -1;
      }

      /* Respect reduced motion preference */
      @media (prefers-reduced-motion: reduce) {
        .bg-video {
          display: none;
        }
        .app-frame::after {
          z-index: 0;
        }
      }

      .top-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 24px;
        border-bottom: 1px solid var(--border-divider);
        background: var(--icon-button-bg);
        backdrop-filter: blur(14px);
        position: sticky;
        top: 0;
        z-index: 20;
      }
      .top-bar.is-hidden {
        display: none;
      }

      .top-brand {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .brand-name {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: var(--text-strong);
      }

      .brand-name-highlight {
        color: var(--primary);
      }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .language-switcher {
    position: relative;
  }
  .language-switcher .language-button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-divider);
    background: var(--icon-button-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .language-switcher .language-button img {
    width: 24px;
    height: 24px;
    display: block;
  }
  .language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--surface);
    border-radius: 14px;
    box-shadow: 0 18px 32px rgba(31, 26, 44, 0.16);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border-divider);
    z-index: 60;
  }
  .language-menu[hidden] {
    display: none;
  }
  .language-menu-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
  }
  .language-menu-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .language-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-strong);
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease;
  }
  .language-menu-item[data-active="true"] {
    border-color: rgba(13, 148, 136, 0.24);
    background: rgba(13, 148, 136, 0.1);
    font-weight: 600;
  }
  .language-menu-item:not([data-active="true"]):hover,
  .language-menu-item:not([data-active="true"]):focus-visible {
    background: rgba(31, 26, 44, 0.05);
  }

      .icon-button {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 1px solid var(--border-divider);
        background: var(--icon-button-bg);
        color: var(--text-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        position: relative;
        overflow: visible;
      }

      .icon-button:hover,
      .icon-button:focus-visible {
        transform: translateY(-1px);
        box-shadow: var(--shadow-soft);
        color: var(--primary);
      }

      .icon-button[data-highlight="true"]::after {
        content: "";
        position: absolute;
        inset: -6px;
        border-radius: 50%;
        border: 2px solid rgba(13, 148, 136, 0.48);
        opacity: 0.85;
        animation: feedback-ring 1.6s ease-out infinite;
        pointer-events: none;
      }

      @keyframes feedback-ring {
        0% {
          transform: scale(0.9);
          opacity: 0.7;
        }
        70% {
          transform: scale(1.45);
          opacity: 0;
        }
        100% {
          transform: scale(1.6);
          opacity: 0;
        }
      }

      /* Feedback dialog styling */
      dialog.feedback-dialog {
        border: none;
        border-radius: 24px;
        width: min(420px, calc(100% - 32px));
        padding: 0;
        margin: 0 auto;
        background: var(--bg-card);
        box-shadow: 0 24px 64px rgba(31, 26, 44, 0.22);
      }

      .feedback-dialog-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
      }

      .feedback-dialog-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .feedback-dialog-title {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 700;
      }

      .feedback-dialog-close {
        appearance: none;
        border: none;
        background: none;
        font-size: 1.4rem;
        cursor: pointer;
        color: var(--text-muted);
      }

      .feedback-textarea {
        width: 100%;
        min-height: 120px;
        border-radius: 14px;
        border: 1px solid var(--border-strong);
        background: var(--input-bg);
        color: var(--text-strong);
        padding: 12px 14px;
        font-family: inherit;
        font-size: 1rem;
        resize: vertical;
      }

      .feedback-actions {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
      }

      .app-shell {
        flex: 1;
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        padding: 24px 24px 160px;
        display: flex;
        flex-direction: column;
        gap: 32px;
        position: relative;
        z-index: 1;
      }

      .top-back {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--border-divider);
        background: var(--icon-button-bg);
        color: var(--text-secondary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      }

      .top-back:hover,
      .top-back:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(31, 26, 44, 0.14);
        background: var(--surface);
      }


      .capture-card-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
      }

      .capture-eyebrow {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.22em;
        color: var(--primary);
        font-weight: 700;
      }

      h1.capture-title {
        margin: 0;
        font-size: clamp(2.25rem, 6vw, 3rem);
        letter-spacing: -0.02em;
      }

      p.capture-tagline {
        margin: 0;
        font-size: 1.05rem;
        color: var(--text-muted);
        max-width: 420px;
      }

      .card {
        background: var(--bg-card);
        border-radius: var(--radius-card);
        padding: 36px 32px;
        box-shadow: var(--shadow-card);
        border: 1px solid var(--border-divider);
        display: flex;
        flex-direction: column;
        gap: var(--spacing);
      }

      .capture-card h2 {
        margin: 0;
        font-size: 1.5rem;
      }

      .capture-card p {
        margin: 0;
        color: var(--text-muted);
        line-height: 1.55;
      }

      .language-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 4px 0;
        justify-content: center;
      }

      .language-chip {
        appearance: none;
        border: 1px solid rgba(13, 148, 136, 0.14);
        background: rgba(13, 148, 136, 0.06);
        color: var(--primary-dark);
        border-radius: var(--radius-pill);
        padding: 10px 18px;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease,
          color 0.18s ease, box-shadow 0.18s ease;
        white-space: nowrap;
      }

      .language-chip[data-active="true"] {
        border-color: transparent;
        background: var(--primary);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(13, 148, 136, 0.22);
      }

      .dropzone {
        position: relative;
        border-radius: 22px;
        border: 2px dashed rgba(160, 170, 192, 0.5);
        background: rgba(245, 247, 252, 0.86);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 32px 24px;
        min-height: 200px;
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        text-align: center;
      }

      .dropzone[data-mode="empty"] {
        padding: 44px 28px;
        min-height: 240px;
      }

      .dropzone[data-mode="compact"] {
        border-radius: 18px;
        padding: 16px;
        min-height: 0;
      }

      .dropzone[data-active="true"] {
        border-color: rgba(136, 148, 176, 0.6);
        background: rgba(241, 244, 252, 0.98);
        box-shadow: 0 16px 32px rgba(31, 26, 44, 0.08);
      }

      .dropzone-trigger {
        width: 100%;
        min-height: 200px;
        border: none;
        background: transparent;
        padding: 0;
        border-radius: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
        font-weight: 600;
        color: var(--text-muted);
        cursor: pointer;
      }

      .dropzone-trigger:focus-visible {
        outline: 2px solid rgba(136, 148, 176, 0.6);
        outline-offset: 6px;
      }

      .dropzone[data-mode="compact"] .dropzone-trigger {
        min-height: 140px;
        border-radius: 16px;
        aspect-ratio: 1 / 1;
      }

      .dropzone-icon {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(96, 104, 126, 0.88);
      }

      .dropzone-icon img {
        display: block;
        width: 100%;
        height: 100%;
      }

      .dropzone-text {
        font-size: 1rem;
        color: var(--text-secondary);
      }

      .dropzone .note {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.92rem;
      }

      .dropzone[data-mode="compact"] .note {
        display: none;
      }

      .preview-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 16px;
      }

      .preview-grid[data-state="empty"] {
        grid-template-columns: 1fr;
      }

      .preview-tile {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        background: var(--bg-active);
        box-shadow: 0 12px 24px rgba(31, 26, 44, 0.12);
      }

      .preview-tile img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
      }

      .preview-remove {
        position: absolute;
        top: 6px;
        right: 6px;
        border: none;
        background: none;
        color: rgba(15, 27, 57, 0.72);
        width: auto;
        height: auto;
        padding: 4px;
        font-size: 1.05rem;
        line-height: 1;
        cursor: pointer;
      }

      .preview-remove:hover,
      .preview-remove:focus-visible {
        color: rgba(15, 27, 57, 0.9);
      }

      .warning {
        border-radius: 14px;
        padding: 12px 16px;
        background: rgba(255, 131, 96, 0.12);
        color: var(--accent);
        font-weight: 500;
      }

      .capture-card {
        gap: 32px;
        padding: 48px 44px;
      }

      .capture-card form {
        display: flex;
        flex-direction: column;
        gap: 28px;
      }

      .capture-language {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
      }

      .capture-language-title {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-strong);
      }

      .sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
        background: var(--sticky-bar-bg);
        border-top: 1px solid var(--border-divider);
        backdrop-filter: blur(12px);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        z-index: 10;
      }

      .sticky-bar button.primary {
        flex: 1;
      }

      button {
        appearance: none;
        border-radius: 16px;
        border: 1px solid transparent;
        background: var(--surface);
        padding: 14px 18px;
        font-size: 0.98rem;
        font-weight: 600;
        color: var(--text-strong);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
          border-color 0.18s ease, color 0.18s ease;
      }

      button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
      }

      button.primary {
        border-color: transparent;
        background: var(--primary);
        color: #ffffff;
        box-shadow: 0 18px 32px rgba(13, 148, 136, 0.26);
      }

      button.primary:not(:disabled):hover,
      button.primary:not(:disabled):focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 20px 36px rgba(13, 148, 136, 0.32);
      }

      button.secondary {
        background: rgba(13, 148, 136, 0.08);
        color: var(--primary-dark);
        border-color: rgba(13, 148, 136, 0.16);
      }

      button.secondary:not(:disabled):hover,
      button.secondary:not(:disabled):focus-visible {
        background: rgba(13, 148, 136, 0.14);
        border-color: rgba(13, 148, 136, 0.24);
      }

      button.ghost {
        border: none;
        background: none;
        color: var(--primary-dark);
        padding: 10px 12px;
      }

      .screen[hidden] {
        display: none !important;
      }

      .processing-card {
        align-items: center;
        justify-content: center;
        text-align: left;
        gap: clamp(24px, 4vw, 32px);
      }

      .processing-slideshow {
        width: min(980px, 100%);
        display: grid;
        gap: clamp(24px, 5vw, 48px);
        align-items: center;
      }

      .processing-photo-frame {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 2;
        border-radius: 28px;
        overflow: hidden;
        background: radial-gradient(
          circle at center,
          rgba(13, 148, 136, 0.18),
          rgba(31, 26, 44, 0.12)
        );
      }

      .processing-photo-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
        transition: opacity 400ms ease;
        opacity: 0;
      }

      .processing-photo-image[data-loaded="true"] {
        opacity: 1;
      }

      .processing-slide {
        display: contents;
        margin: 0;
      }

      .processing-caption {
        display: flex;
        flex-direction: column;
        gap: 18px;
        color: var(--text-muted);
      }

      .processing-status {
        margin: 0;
        font-size: 0.79rem;
        font-weight: 600;
        color: var(--text-muted);
      }

      .processing-status-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
      }

      .processing-spinner {
        flex: 0 0 auto;
        display: inline-block;
        width: 12px;
        height: 12px;
        min-width: 12px;
        min-height: 12px;
        border: 1.5px solid var(--text-muted);
        border-top-color: transparent;
        border-radius: 50%;
        animation: processing-spin 0.9s linear infinite;
      }

      @keyframes processing-spin {
        to {
          transform: rotate(360deg);
        }
      }

      .processing-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        color: var(--text-muted);
      }

      .processing-line {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 0.74rem;
        color: var(--text-muted);
      }

      .processing-line img {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
      }

      .processing-line a {
        color: inherit;
        text-decoration: underline;
        word-break: break-word;
      }

      @media (max-width: 767px) {
        .processing-card {
          text-align: left;
        }

        .processing-caption {
          align-items: flex-start;
        }

        .processing-info {
          align-items: flex-start;
        }

        .processing-line {
          justify-content: flex-start;
          text-align: left;
          width: 100%;
        }
      }

      @media (min-width: 768px) {
        .processing-slideshow {
          grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        }
      }

      @media (max-width: 640px) {
        .top-bar {
          padding: 14px 18px;
        }

        .app-shell {
          padding: 16px 18px 140px;
        }
        .section-nav {
          margin: 0;
          padding: 6px 8px 6px 0;
        }

        .capture-card {
          padding: 32px 20px;
          gap: 28px;
        }

        h1.capture-title {
          font-size: clamp(1.9rem, 7vw, 2.4rem);
        }

        p.capture-tagline {
          font-size: 0.95rem;
        }

        .language-row {
          justify-content: center;
        }

        .dropzone[data-mode="empty"] {
          padding: 32px 18px;
        }

        .dish-search-dialog {
          width: calc(100% - 24px);
          border-radius: 20px;
        }

        .dish-search-body {
          max-height: min(65vh, 440px);
        }
      }

      .tip-rail {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
      }

      .tip-card {
        display: flex;
        gap: 20px;
        padding: 26px;
        border-radius: 22px;
        background: var(--glass-card);
        border: 1px solid rgba(29, 91, 219, 0.12);
        box-shadow: 0 18px 36px rgba(17, 42, 110, 0.16);
        text-align: left;
        min-height: 240px;
      }

      .tip-card-figure {
        flex: 0 0 180px;
        height: 180px;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        background: rgba(47, 123, 255, 0.12);
      }

      .tip-card-figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }

      .tip-card-figure[data-visible="false"] img {
        display: none;
      }

      .tip-card-figure[data-visible="false"]::before {
        content: "🍽️";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        font-size: 2.2rem;
        color: rgba(29, 91, 219, 0.65);
      }

      .tip-card-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

      .tip-card-label {
        margin: 0;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(17, 42, 110, 0.65);
      }

      .tip-card-title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text-strong);
      }

      .tip-card-body {
        margin: 0;
        color: var(--text-muted);
        line-height: 1.55;
        font-size: 0.95rem;
      }

      .tip-card-source {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--primary-dark);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
      }

      .tip-card-source::after {
        content: "↗";
        font-size: 0.8rem;
      }

      .tip-card-source[hidden] {
        display: none;
      }

      @media (max-width: 620px) {
        .tip-card {
          flex-direction: column;
          align-items: center;
          text-align: center;
          padding: 22px;
          min-height: auto;
        }

        .tip-card-figure {
          width: 100%;
          height: 260px;
          margin: 0 0 18px;
        }

        .tip-card-content {
          align-items: center;
        }

        .tip-card-label,
        .tip-card-title,
        .tip-card-body {
          text-align: center;
        }

      }

      .menu-results {
        display: flex;
        flex-direction: column;
        gap: 28px;
      }

      .menu-header {
        position: sticky;
        top: 0;
        z-index: 15;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 4px 12px;
        padding-top: calc(18px + env(safe-area-inset-top, 0px));
        background: var(--page-bg);
        border-bottom: 1px solid var(--border-divider);
      }

      .menu-filter-bar {
        display: flex;
        gap: 6px;
        padding: 2px 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }

      .menu-filter-bar::-webkit-scrollbar {
        display: none;
      }

      .menu-filter-pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 5px 10px;
        border-radius: 16px;
        border: 1px solid var(--border-divider);
        background: var(--bg-subtle);
        color: var(--text-strong);
        font-size: 0.9rem;
        white-space: nowrap;
        cursor: pointer;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
      }

      .menu-filter-pill[data-active="true"] {
        background: var(--text-strong);
        color: #fff;
        border-color: var(--text-strong);
      }

      .menu-filter-pill:hover {
        background: rgba(230, 230, 230, 0.95);
      }

      .menu-filter-pill[data-active="true"]:hover {
        background: rgba(30, 30, 30, 0.9);
      }

      .menu-title {
        margin: 0;
        font-size: 1.5rem;
        letter-spacing: -0.01em;
      }

      .menu-title.menu-title--processing {
        color: transparent;
        background-image: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-shine) 45%, var(--skeleton-base) 90%);
        background-size: 220% 100%;
        background-clip: text;
        -webkit-background-clip: text;
        animation: skeleton-shimmer 1.4s ease-in-out infinite;
      }

      .menu-header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .menu-retry-button {
        padding: 0;
      }

      .menu-icon-button {
        position: relative;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid var(--border-divider);
        background: var(--icon-button-bg);
        color: var(--text-secondary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      }

      .menu-icon-button:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
      }

      .menu-icon-button:hover,
      .menu-icon-button:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(31, 26, 44, 0.14);
        background: var(--surface);
      }

      .menu-icon-button svg {
        width: 22px;
        height: 22px;
      }

      .menu-icon-button span {
        font-size: 22px;
      }

      .menu-cart-button {
        display: none;
        padding: 0;
        gap: 8px;
      }

      .menu-cart-icon {
        display: block;
      }

      .menu-cart-count {
        position: static;
        min-width: 0;
        height: auto;
        border-radius: 0;
        background: none;
        color: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
      }

      .menu-cart-count[hidden] {
        display: none;
      }

      .menu-cart-button .menu-cart-label,
      .menu-cart-button .menu-cart-count {
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: -0.01em;
      }

      .menu-cart-label {
        display: none;
      }

      .menu-cart-button[data-count] {
        display: inline-flex;
        position: fixed;
        left: 50%;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        transform: translateX(-50%);
        z-index: 40;
        width: auto;
        height: 40px;
        padding: 0 14px;
        border-radius: 999px;
        background: #101114;
        border: none;
        color: #ffffff;
        box-shadow: 0 16px 28px rgba(16, 17, 20, 0.22);
      }

      .menu-cart-button[data-preparing="true"] {
        background: #6b7280;
        color: rgba(255, 255, 255, 0.92);
        box-shadow: none;
        cursor: not-allowed;
      }

      .menu-cart-button[data-preparing="true"] .menu-cart-count::before {
        color: rgba(255, 255, 255, 0.6);
      }

      .menu-cart-button[data-count]:hover,
      .menu-cart-button[data-count]:focus-visible {
        background: #1a1c20;
        box-shadow: 0 18px 32px rgba(16, 17, 20, 0.26);
        transform: translateY(-1px);
      }

      .menu-cart-button[data-preparing="true"]:hover,
      .menu-cart-button[data-preparing="true"]:focus-visible {
        background: #6b7280;
        box-shadow: none;
        transform: translateY(0);
      }

      .menu-cart-button[data-count] .menu-cart-label {
        display: inline-flex;
        align-items: center;
      }

      .menu-cart-button[data-count] .menu-cart-count {
        display: inline-flex;
      }

      .menu-cart-button[data-count] .menu-cart-count::before {
        content: "·";
        margin: 0 6px;
        color: rgba(255, 255, 255, 0.7);
      }

      .share-fab {
        padding: 0;
        border: none;
      }

      .share-fab[data-loading="true"] {
        opacity: 0.6;
        pointer-events: none;
      }

      .share-fab[data-copied="true"] {
        background: rgba(47, 185, 136, 0.14);
        border-color: rgba(47, 185, 136, 0.28);
        color: rgba(34, 145, 103, 0.92);
      }

      .share-fab-panel {
        position: fixed;
        top: calc(120px + env(safe-area-inset-top, 0px));
        right: calc(20px + env(safe-area-inset-right, 0px));
        width: min(320px, calc(100% - 40px));
        background: var(--surface);
        border-radius: 20px;
        border: 1px solid rgba(160, 170, 192, 0.24);
        box-shadow: 0 28px 64px rgba(31, 26, 44, 0.18);
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        z-index: 30;
      }

      .share-fab-panel[hidden] {
        display: none;
      }

      .share-fab-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .share-fab-heading {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
      }

      .share-fab-message {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.92rem;
        line-height: 1.45;
      }

      .share-fab-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: var(--border-divider);
        color: var(--text-secondary);
        cursor: pointer;
      }

      .share-fab-qr {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        border-radius: 14px;
        background: var(--bg-subtle);
      }

      .share-fab-qr img {
        width: 160px;
        height: 160px;
      }

      .menu-results-layout {
        display: flex;
        flex-direction: column;
        gap: 28px;
      }

      .menu-results-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
      }

      .menu-results-split {
        display: grid;
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
      }

      .menu-results-main {
        display: flex;
        flex-direction: column;
        gap: 24px;
        min-width: 0;
      }

      .section-nav {
        position: sticky;
        top: calc(70px + env(safe-area-inset-top, 0px));
        z-index: 12;
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0;
        padding: 6px 8px 6px 0;
        border-right: 1px solid var(--border-divider);
        background: transparent;
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        scrollbar-width: none;
      }

      .section-nav::-webkit-scrollbar {
        display: none;
      }

      .section-nav button {
        display: block;
        padding: 0.95em 0.85em 0.95em 1.9em;
        border: none;
        background: none;
        font-weight: 600;
        color: var(--text-muted);
        cursor: pointer;
        position: relative;
        transition: color 0.18s ease;
        text-align: left;
        border-radius: 14px;
        font-size: 0.9rem;
        line-height: 1.5;
        min-height: 3.8em;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
      }

      .section-nav button::after {
        content: "";
        position: absolute;
        left: 0.7em;
        top: 0.7em;
        bottom: 0.7em;
        width: 0.22em;
        background: transparent;
        transition: background 0.18s ease;
        border-radius: 999px;
      }

      .section-nav button[data-active="true"] {
        color: var(--text-strong);
        background: var(--bg-active);
      }

      .section-nav button[data-active="true"]::after {
        background: var(--primary);
      }

      .section-nav button:focus-visible {
        outline: 3px solid rgba(13, 148, 136, 0.3);
        outline-offset: 2px;
      }

      .sections {
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0 0 40px;
      }

      .section-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .section-card[hidden] {
        display: none;
      }

      .section-title {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: -0.01em;
      }

      .dish-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
      }

      .dish-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px 0;
        width: 100%;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid var(--border-divider);
        box-shadow: none;
        transition: background 0.2s ease;
      }

      .dish-card:hover {
        background: var(--bg-hover);
      }

      .dish-card:last-child {
        border-bottom: none;
      }

      .dish-card[hidden] {
        display: none;
      }

      /* Skeleton placeholder cards shown during streaming */
      .dish-card.skeleton {
        pointer-events: none;
      }

      .dish-card.skeleton .translated-name,
      .dish-card.skeleton .original-name,
      .dish-card.skeleton .dish-description,
      .dish-card.skeleton .price-tag {
        background: linear-gradient(
          90deg,
          rgba(31, 26, 44, 0.06) 25%,
          rgba(31, 26, 44, 0.12) 50%,
          rgba(31, 26, 44, 0.06) 75%
        );
        background-size: 200% 100%;
        animation: skeleton-shimmer 1.4s ease-in-out infinite;
        border-radius: 6px;
        color: transparent !important;
        user-select: none;
      }

      .dish-card.skeleton .translated-name {
        width: 55%;
        min-height: 1.1em;
      }

      .dish-card.skeleton .original-name {
        width: 35%;
        min-height: 0.85em;
      }

      .dish-card.skeleton .dish-description {
        width: 80%;
        min-height: 1.3em;
      }

      .dish-card.skeleton .price-tag {
        width: 40px;
        min-height: 1em;
        display: inline-block;
      }

      .dish-card.skeleton .learn-more-button,
      .dish-card.skeleton .dish-actions,
      .dish-card.skeleton .dish-emoji-row {
        visibility: hidden;
      }

      @keyframes skeleton-shimmer {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
      }

      /* Fade-in for streamed dishes */
      .dish-card.stream-in {
        animation: dish-stream-in 0.35s ease-out both;
      }

      @keyframes dish-stream-in {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .dish-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
        width: 100%;
      }

      .dish-headline {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }

      .dish-name {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .dish-name-header {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .translated-name {
        font-weight: 700;
        font-size: 1.02rem;
        letter-spacing: -0.01em;
      }

      .original-name {
        font-size: 0.8rem;
        color: var(--text-muted);
        font-weight: 500;
      }

      .dish-emoji-row {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.95rem;
        line-height: 1;
        margin-top: 2px;
      }

      .price-tag {
        font-weight: 600;
        color: var(--text-strong);
        font-size: 0.95rem;
      }

      .dish-description {
        margin: 6px 0 0;
        color: var(--text-muted);
        line-height: 1.45;
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }


      .dish-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: auto;
      }

      .dish-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
      }

      .dish-action-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
      }

      .learn-more-button {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: none;
        background: var(--border-divider);
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        line-height: 0;
        transition: transform 0.18s ease, background 0.18s ease;
        /* display: none; */
      }

      .learn-more-button img {
        width: 16px;
        height: 16px;
        display: block;
      }

      .learn-more-button:hover,
      .learn-more-button:focus-visible {
        transform: scale(1.08);
        background: rgba(31, 26, 44, 0.14);
      }

      .learn-more-button:focus-visible {
        outline: 3px solid rgba(13, 148, 136, 0.28);
        outline-offset: 3px;
      }

      .add-button {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid var(--border-strong);
        padding: 0;
        background: var(--surface);
        color: var(--text-secondary);
        cursor: pointer;
        transition: transform 0.12s ease, box-shadow 0.12s ease;
        box-shadow: 0 10px 20px rgba(31, 26, 44, 0.14);
      }

      .add-button:hover {
        transform: translateY(-1px);
      }

      .add-button:active {
        transform: translateY(0);
      }

      .add-button svg {
        pointer-events: none;
        display: block;
      }

      .quantity-controls {
        display: none;
        align-items: center;
        gap: 8px;
        border-radius: 999px;
        background: var(--border-divider);
        padding: 6px 10px;
        border: none;
      }

      .quantity-controls[data-active="true"] {
        display: inline-flex;
      }

      .quantity-display {
        min-width: 20px;
        text-align: center;
        font-weight: 600;
        color: var(--text-strong);
      }

      .quantity-controls button {
        border: none;
        background: var(--surface);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-strong);
        cursor: pointer;
        box-shadow: 0 8px 16px rgba(31, 26, 44, 0.08);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
      }

      .quantity-controls button:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(31, 26, 44, 0.12);
      }

      @media (max-width: 520px) {
        .menu-results-split {
          grid-template-columns: 120px minmax(0, 1fr);
          gap: 12px;
        }
      }

      @media (orientation: landscape) {
        .menu-results {
          -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
        }

        .menu-results-split {
          grid-template-columns: 200px minmax(0, 1fr);
          gap: 18px;
        }

        .section-nav {
          max-height: calc(100vh - 140px);
        }

        .section-nav button {
          line-height: 1.55;
          min-height: 4.3em;
        }
      }

      .quantity-controls button:focus-visible,
      .add-button:focus-visible {
        outline: 3px solid rgba(13, 148, 136, 0.28);
        outline-offset: 2px;
      }

      .summary-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }

      .summary-actions button {
        flex: 1 1 160px;
      }

      .summary-actions button[disabled] {
        opacity: 0.45;
      }

      .order-card {
        gap: 16px;
      }

      .order-note {
        border-radius: 18px;
        padding: 16px 14px;
        background: var(--bg-card);
        border: 1.5px solid var(--border-strong);
        min-height: 160px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-family: inherit;
        box-shadow: 0 12px 32px rgba(31, 26, 44, 0.08);
      }

      .order-note-title {
        font-size: 1.05rem;
        font-weight: 700;
        text-align: center;
        line-height: 1.35;
        letter-spacing: 0.02em;
        color: var(--text-muted);
      }

      .order-note-items {
        display: flex;
        flex-direction: column;
        gap: 0;
      }

      .order-note-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 6px;
        border-bottom: 2px solid rgba(31, 26, 44, 0.32);
      }

      .order-note-row:last-child {
        border-bottom: none;
      }

      .order-note-qty {
        min-width: 72px;
        text-align: right;
        font-weight: 800;
        font-size: 2rem;
        line-height: 1;
        letter-spacing: -0.03em;
      }

      .order-note-name {
        flex: 1;
        font-weight: 700;
        font-size: 1.6rem;
        line-height: 1.25;
        letter-spacing: -0.01em;
      }

      @media (max-width: 520px) {
        .order-note {
          padding: 14px 12px;
        }

        .order-note-name {
          font-size: 1.35rem;
        }

        .order-note-qty {
          font-size: 1.7rem;
          min-width: 64px;
        }
      }

      footer.app-footer {
        text-align: center;
        color: var(--text-muted);
        font-size: 0.85rem;
      }

      dialog::backdrop {
        background: radial-gradient(circle at 20% 20%, rgba(12, 25, 45, 0.55), rgba(6, 12, 20, 0.78));
        backdrop-filter: blur(2px);
      }

      dialog.how-dialog {
        border: none;
        border-radius: 24px;
        width: min(420px, calc(100% - 32px));
        padding: 0;
        margin: auto;
        position: fixed;
        inset: 0;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
        border: 1px solid rgba(255, 255, 255, 0.28);
        backdrop-filter: blur(22px) saturate(140%);
        box-shadow:
          0 22px 60px rgba(8, 16, 28, 0.35),
          inset 0 1px 0 rgba(255, 255, 255, 0.35);
      }

      .how-dialog-content {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 28px;
      }

      .how-dialog-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
      }

      .how-dialog-title {
        margin: 0;
        font-size: 1.3rem;
        letter-spacing: -0.01em;
        color: rgba(255, 255, 255, 0.96);
        text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
      }

      .how-dialog-subtitle {
        margin: 0;
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.95rem;
        line-height: 1.5;
      }

      .how-dialog-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .how-dialog-item {
        display: flex;
        gap: 12px;
        align-items: center;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.97rem;
        line-height: 1.5;
      }

      .how-dialog-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
        flex: 0 0 36px;
      }

      .how-dialog-icon svg {
        width: 20px;
        height: 20px;
        stroke: rgba(255, 255, 255, 0.9);
        stroke-width: 1.6;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .how-dialog-close {
        border: none;
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.86);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.22);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
      }

      .how-dialog-close:hover,
      .how-dialog-close:focus-visible {
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
        transform: translateY(-1px);
      }

      dialog.cart-dialog {
        border: none;
        border-radius: 18px;
        width: min(520px, calc(100% - 24px));
        max-width: 560px;
        padding: 0;
        margin: 0;
        position: fixed;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        box-shadow: 0 -12px 48px rgba(31, 26, 44, 0.22);
        background: var(--surface);
      }

      dialog.confirm-dialog {
        border: none;
        border-radius: 20px;
        width: min(360px, calc(100% - 32px));
        max-width: 400px;
        padding: 0;
        margin: 0 auto;
        background: var(--surface);
        box-shadow: 0 24px 64px rgba(31, 26, 44, 0.22);
      }

      dialog.confirm-dialog::backdrop {
        background: rgba(17, 15, 23, 0.5);
      }

      .confirm-dialog-content {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 24px;
      }

      .confirm-dialog-title {
        margin: 0;
        font-size: 1.12rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: var(--text-strong);
      }

      .confirm-dialog-text {
        margin: 0;
        color: var(--text-secondary);
        font-size: 0.96rem;
        line-height: 1.5;
      }

      .confirm-dialog-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      @media (min-width: 520px) {
        .confirm-dialog-actions {
          flex-direction: row;
        }
      }

      .confirm-dialog-button {
        flex: 1;
        border-radius: 16px;
        padding: 12px 16px;
        font-weight: 600;
        font-size: 1rem;
        cursor: pointer;
        border: none;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
      }

      .confirm-dialog-button:focus-visible {
        outline: 3px solid rgba(13, 148, 136, 0.32);
        outline-offset: 2px;
      }

      .confirm-dialog-button[data-variant="secondary"] {
        background: rgba(247, 249, 255, 0.92);
        color: rgba(72, 80, 102, 0.94);
        box-shadow: inset 0 0 0 1px rgba(31, 26, 44, 0.08);
      }

      .confirm-dialog-button[data-variant="secondary"]:hover,
      .confirm-dialog-button[data-variant="secondary"]:focus-visible {
        background: rgba(241, 244, 255, 0.96);
      }

      .confirm-dialog-button[data-variant="primary"] {
        background: rgba(13, 148, 136, 0.92);
        color: #ffffff;
        box-shadow: 0 10px 18px rgba(13, 148, 136, 0.28);
      }

      .confirm-dialog-button[data-variant="primary"]:hover,
      .confirm-dialog-button[data-variant="primary"]:focus-visible {
        background: rgba(13, 148, 136, 1);
      }

      .cart-dialog-content {
        display: grid;
        grid-template-rows: auto 1fr auto;
        gap: 18px;
        padding: 24px 22px 28px;
        max-height: min(82vh, 640px);
      }

      .cart-dialog-header {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 16px;
        align-items: flex-start;
      }

      .cart-dialog-close {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: var(--border-divider);
        color: var(--text-muted);
        font-size: 1.4rem;
        line-height: 1;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background 0.18s ease, color 0.18s ease;
      }

      .cart-dialog-close:hover,
      .cart-dialog-close:focus-visible {
        background: rgba(13, 148, 136, 0.12);
        color: var(--primary);
      }

      .cart-dialog-heading {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
      }

      .cart-dialog-label {
        margin: 0;
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--primary);
        font-weight: 700;
      }

      .cart-dialog-title {
        margin: 0;
        font-size: 1.45rem;
        letter-spacing: -0.02em;
      }

      .cart-dialog-summary {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.92rem;
      }

      .cart-dialog-body {
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .cart-dialog-empty {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.95rem;
      }

      .cart-dialog-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .cart-dialog-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
        background: rgba(247, 248, 250, 0.95);
        box-shadow: inset 0 0 0 1px rgba(31, 26, 44, 0.06);
      }

      .cart-dialog-thumb {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        position: relative;
        display: grid;
        place-items: center;
        overflow: hidden;
        background: linear-gradient(
          140deg,
          hsl(var(--thumb-hue) 72% 92%),
          hsl(var(--thumb-hue) 62% 84%)
        );
        color: rgba(31, 26, 44, 0.6);
        font-weight: 600;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }

      .cart-dialog-thumb::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.6), transparent 60%);
        opacity: 0.8;
      }

      .cart-dialog-thumb::after {
        content: attr(data-initial);
        position: relative;
        z-index: 1;
      }

      .cart-dialog-details {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
      }

      .cart-dialog-details strong {
        font-weight: 600;
        font-size: 1rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
      }

      .cart-dialog-original {
        font-size: 0.82rem;
        color: var(--text-muted);
        font-weight: 500;
      }

      .cart-dialog-meta {
        color: var(--text-muted);
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      .cart-dialog-controls {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 10px;
        border-radius: 999px;
        background: var(--border-divider);
      }

      .cart-qty-button {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: var(--surface);
        color: var(--text-strong);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 8px 16px rgba(31, 26, 44, 0.08);
        transition: transform 0.15s ease, box-shadow 0.15s ease;
      }

      .cart-qty-button img {
        width: 16px;
        height: 16px;
        display: block;
      }

      .cart-qty-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(31, 26, 44, 0.12);
      }

      .cart-qty-button:focus-visible {
        outline: 3px solid rgba(13, 148, 136, 0.28);
        outline-offset: 2px;
      }

      .cart-dialog-quantity {
        min-width: 20px;
        text-align: center;
        font-weight: 600;
        color: var(--text-strong);
      }

      .cart-dialog-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid rgba(160, 170, 192, 0.24);
        padding-top: 8px;
      }

      .cart-dialog-total {
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.95rem;
      }

      .cart-dialog-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
      }

      .cart-dialog-actions button {
        min-width: 0;
        flex: 1 1 160px;
        border-radius: 999px;
        padding: 12px 20px;
        font-size: 0.98rem;
        box-shadow: none;
        border: none;
        background: rgba(31, 26, 44, 0.08);
        color: rgba(31, 26, 44, 0.92);
        min-height: 48px;
      }

      .cart-dialog-actions button.secondary {
        background: rgba(31, 26, 44, 0.08);
        color: rgba(31, 26, 44, 0.92);
      }

      .cart-dialog-actions button.secondary:not(:disabled):hover,
      .cart-dialog-actions button.secondary:not(:disabled):focus-visible {
        background: rgba(31, 26, 44, 0.12);
      }

      .cart-dialog-actions button.primary {
        background: var(--primary);
        color: #ffffff;
        box-shadow: none;
      }

      .cart-dialog-actions button.primary:not(:disabled):hover,
      .cart-dialog-actions button.primary:not(:disabled):focus-visible {
        background: var(--primary-dark);
      }

      .dialog-close {
        border: none;
        background: none;
        color: var(--text-muted);
        font-weight: 600;
        cursor: pointer;
        padding: 6px 0;
      }

      .dish-search-dialog {
        border: none;
        border-radius: 24px;
        padding: 0;
        width: min(520px, calc(100% - 32px));
        max-width: 560px;
        max-height: 85vh;
        background: var(--surface);
        box-shadow: 0 24px 64px rgba(31, 26, 44, 0.26);
        overflow: hidden;
      }

      .dish-search-dialog::backdrop {
        background: rgba(17, 15, 23, 0.5);
        backdrop-filter: blur(4px);
      }

      .dish-search-content {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 24px;
        max-height: inherit;
      }

      .dish-search-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
      }

      .dish-search-heading {
        flex: 1;
        min-width: 0;
      }

      .dish-search-label {
        margin: 0;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(13, 148, 136, 0.85);
      }

      .dish-search-title {
        margin: 6px 0 0;
        font-size: 1.35rem;
        letter-spacing: -0.01em;
      }

      .dish-search-subtitle {
        margin: 4px 0 0;
        color: rgba(96, 104, 126, 0.8);
        font-size: 0.92rem;
      }

      .dish-search-close {
        border: none;
        background: rgba(13, 148, 136, 0.1);
        color: var(--primary);
        border-radius: 14px;
        padding: 6px 12px;
        font-size: 1.1rem;
        line-height: 1;
        cursor: pointer;
        transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
      }

      .dish-search-close:hover,
      .dish-search-close:focus-visible {
        background: rgba(13, 148, 136, 0.18);
        transform: translateY(-1px);
        box-shadow: var(--shadow-soft);
      }

      .dish-search-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: min(60vh, 420px);
      }

      .dish-search-hint {
        margin: 0;
        color: rgba(96, 104, 126, 0.78);
        font-size: 0.88rem;
      }

      .dish-search-results {
        flex: 1;
        border-radius: 18px;
        border: 1px solid var(--border-divider);
        overflow: auto;
        background: rgba(247, 249, 255, 0.78);
      }

      .dish-search-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }

      .dish-search-link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.95rem;
      }

      .dish-search-link::after {
        content: "↗";
        font-size: 0.9rem;
      }

      .dish-search-link:hover,
      .dish-search-link:focus-visible {
        text-decoration: underline;
      }

      .dish-search-attribution {
        font-size: 0.8rem;
        color: rgba(96, 104, 126, 0.78);
      }


      .menu-celebration {
        position: fixed;
        left: 50%;
        bottom: calc(96px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        pointer-events: none;
        z-index: 50;
      }

      .menu-celebration[data-active="false"] {
        display: none;
      }

      .menu-celebration[data-active="true"] {
        display: block;
        animation: celebration-fade 1.8s ease-out forwards;
      }

      .menu-celebration::before {
        content: "";
        position: absolute;
        inset: -26px -30px -36px -30px;
        background: radial-gradient(circle at 50% 30%, rgba(47, 123, 255, 0.22), transparent 78%);
        filter: blur(8px);
        opacity: 0;
      }

      .menu-celebration[data-active="true"]::before {
        animation: celebration-glow 1.2s ease-out forwards;
      }

      .celebration-tube {
        width: 40px;
        height: 58px;
        border-radius: 12px 12px 20px 20px;
        background: repeating-linear-gradient(
          135deg,
          rgba(255, 200, 87, 0.95) 0 16px,
          rgba(255, 131, 96, 0.95) 16px 32px,
          rgba(70, 130, 255, 0.92) 32px 48px
        );
        position: relative;
        box-shadow: 0 18px 34px rgba(15, 27, 57, 0.22);
        opacity: 0;
        transform: translateY(16px) scale(0.82) rotate(-18deg);
      }

      .celebration-tube::before {
        content: "";
        position: absolute;
        inset: 8px 6px 12px 6px;
        border-radius: 10px 10px 16px 16px;
        background: linear-gradient(140deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1));
      }

      .celebration-tube::after {
        content: "";
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%) rotate(12deg);
        width: 44px;
        height: 20px;
        border-radius: 999px;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(47, 123, 255, 0.22));
        box-shadow: 0 8px 14px rgba(47, 123, 255, 0.18);
        opacity: 0.9;
      }

      .menu-celebration[data-active="true"] .celebration-tube {
        animation: tube-pop 0.65s cubic-bezier(0.36, 1, 0.3, 1) forwards;
      }

      .celebration-sparkles {
        position: absolute;
        left: 50%;
        bottom: 54px;
        transform: translateX(-50%);
        width: 0;
        height: 0;
      }

      .celebration-sparkles span {
        --tx: 0px;
        --ty: -80px;
        --delay: 0ms;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 70%);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
        opacity: 0;
        transform: translate(0, 0) scale(0.35);
      }

      .menu-celebration[data-active="true"] .celebration-sparkles span {
        animation: sparkle-burst 1.2s ease-out forwards;
        animation-delay: var(--delay);
      }

      .celebration-sparkles span:nth-child(1) {
        --tx: -56px;
        --ty: -110px;
        --delay: 60ms;
        background: radial-gradient(circle, rgba(66, 133, 244, 0.95), rgba(66, 133, 244, 0));
      }

      .celebration-sparkles span:nth-child(2) {
        --tx: -32px;
        --ty: -138px;
        --delay: 0ms;
        background: radial-gradient(circle, rgba(255, 171, 0, 0.95), rgba(255, 171, 0, 0));
      }

      .celebration-sparkles span:nth-child(3) {
        --tx: -2px;
        --ty: -148px;
        --delay: 80ms;
        background: radial-gradient(circle, rgba(250, 250, 250, 0.95), rgba(250, 250, 250, 0));
      }

      .celebration-sparkles span:nth-child(4) {
        --tx: 26px;
        --ty: -134px;
        --delay: 110ms;
        background: radial-gradient(circle, rgba(52, 211, 153, 0.95), rgba(52, 211, 153, 0));
      }

      .celebration-sparkles span:nth-child(5) {
        --tx: 54px;
        --ty: -108px;
        --delay: 160ms;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.95), rgba(168, 85, 247, 0));
      }

      @keyframes tube-pop {
        0% {
          opacity: 0;
          transform: translateY(18px) scale(0.75);
        }
        60% {
          opacity: 1;
          transform: translateY(-6px) scale(1.04);
        }
        100% {
          opacity: 1;
          transform: translateY(0) scale(1) rotate(-12deg);
        }
      }

      @keyframes celebration-fade {
        0% {
          opacity: 1;
        }
        75% {
          opacity: 1;
        }
        100% {
          opacity: 0;
        }
      }

      @keyframes celebration-glow {
        0% {
          opacity: 0;
          transform: scale(0.55);
        }
        55% {
          opacity: 1;
          transform: scale(1);
        }
        100% {
          opacity: 0;
          transform: scale(1.1);
        }
      }

      @keyframes sparkle-burst {
        0% {
          opacity: 0;
          transform: translate(0, 0) scale(0.35);
        }
        35% {
          opacity: 1;
        }
        100% {
          opacity: 0;
          transform: translate(var(--tx), var(--ty)) scale(0.85);
        }
      }

      /* ========================================
         CAPTURE SCREEN - NEW DESIGN
         ======================================== */

      /* Full-screen video when on capture screen */
      .app-frame:has(.capture-screen:not([hidden])) .bg-video {
        height: 100vh;
        height: 100dvh;
        opacity: 0.75;
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
      }

      .app-frame:has(.capture-screen:not([hidden]))::after {
        height: 100vh;
        height: 100dvh;
        opacity: 0.75;
      }

      /* Hide top-bar on capture screen */
      .app-frame:has(.capture-screen:not([hidden])) .top-bar {
        display: none;
      }

      /* Capture screen - full bleed over video */
      .capture-screen {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 24px;
        padding-top: calc(24px + env(safe-area-inset-top));
        background: transparent;
        position: relative;
        z-index: 1;
      }

      /* Override card styles for capture */
      .capture-screen.card {
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 24px;
        padding-top: calc(24px + env(safe-area-inset-top));
      }

      /* ---- Frosted Glass Buttons ---- */
      .glass-button {
        appearance: none;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        color: rgba(31, 26, 44, 0.85);
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
        position: relative;
      }

      .glass-button img {
        filter: none;
        opacity: 0.7;
      }

      .glass-button:hover,
      .glass-button:focus-visible {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
      }

      .glass-button:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
      }

      .glass-button.icon-only {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
      }

      .glass-button.primary {
        background: rgba(255, 255, 255, 0.82);
        color: rgba(31, 26, 44, 0.85);
        border-color: rgba(255, 255, 255, 0.5);
      }

      .glass-button.primary img {
        filter: none;
        opacity: 0.7;
      }

      .glass-button.primary:hover,
      .glass-button.primary:focus-visible {
        background: rgba(255, 255, 255, 0.95);
      }

      .glass-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
      }

      .glass-button.language-dropdown {
        overflow: visible;
      }

      .glass-button.language-dropdown.ring-hint::after {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: inherit;
        border: 2.5px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.5);
        animation: ring-pulse 1.8s ease-out 3;
        pointer-events: none;
      }

      @keyframes ring-pulse {
        0% {
          opacity: 1;
          transform: scale(1);
        }
        50% {
          opacity: 0.6;
          transform: scale(1.2);
        }
        100% {
          opacity: 0;
          transform: scale(1.35);
        }
      }

      /* language-dropdown and top-bar imgs inherit base .glass-button img styles (white icons) */

      /* ---- Capture Top Bar ---- */
      .capture-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
      }

      /* ---- Language Dropdown ---- */
      .capture-language-switcher {
        position: relative;
      }

      .capture-language-menu {
        position: absolute;
        bottom: calc(100% + 8px);
        right: 0;
        min-width: 200px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
        z-index: 50;
        border: 1px solid rgba(255, 255, 255, 0.3);
      }

      .capture-language-menu[hidden] {
        display: none;
      }

      .capture-language-menu-title {
        margin: 0 0 12px 0;
        font-size: 0.85rem;
        font-weight: 600;
        color: rgba(31, 26, 44, 0.6);
      }

      .capture-language-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .capture-language-menu-item {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        text-decoration: none;
        color: rgba(31, 26, 44, 0.9);
        font-size: 0.95rem;
        transition: background 0.15s;
      }

      .capture-language-menu-item:hover,
      .capture-language-menu-item:focus-visible {
        background: rgba(13, 148, 136, 0.1);
      }

      .capture-language-menu-item[data-active="true"] {
        background: rgba(13, 148, 136, 0.15);
        font-weight: 600;
        color: var(--primary-dark);
      }

      /* ---- Hero Content ---- */
      .capture-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 0;
        margin-top: auto;
      }

      .capture-hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
        font-weight: 700;
        color: #ffffff;
        margin: 0;
        text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
        letter-spacing: -0.02em;
      }

      .capture-hero-subtitle {
        font-size: 1.05rem;
        color: rgba(255, 255, 255, 0.85);
        margin: 16px 0 0;
        max-width: 300px;
        line-height: 1.5;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
      }

      /* ---- Action Buttons Stack ---- */
      .capture-actions-stack {
        display: grid;
        grid-template-columns: 3fr 2fr;
        gap: 14px;
        width: 100%;
        max-width: 360px;
        margin: 24px auto auto;
        padding-bottom: env(safe-area-inset-bottom);
      }

      .capture-actions-stack .glass-button {
        width: 100%;
      }

      /* Language switcher inside actions grid */
      .capture-actions-stack .capture-language-switcher {
        position: relative;
      }

      .capture-actions-stack .capture-language-switcher .glass-button {
        width: 100%;
        height: 100%;
      }

      /* ---- Photo Count Badge ---- */
      .photo-count-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 22px;
        height: 22px;
        border-radius: 11px;
        background: rgba(31, 26, 44, 0.9);
        color: #ffffff;
        font-size: 0.8rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 6px;
        cursor: pointer;
        border: 2px solid rgba(255, 255, 255, 0.3);
        transition: transform 0.15s, background 0.15s;
      }

      .photo-count-badge[hidden] {
        display: none;
      }

      .photo-count-badge:hover {
        background: rgba(31, 26, 44, 1);
        transform: scale(1.1);
      }

      /* ---- Photo Preview Dialog ---- */
      .photo-preview-dialog {
        border: none;
        border-radius: 24px;
        padding: 0;
        width: min(400px, calc(100% - 32px));
        max-height: 70vh;
        background: var(--surface);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
        overflow: hidden;
      }

      .photo-preview-dialog::backdrop {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
      }

      .photo-preview-content {
        display: flex;
        flex-direction: column;
        max-height: 70vh;
      }

      .photo-preview-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 20px 12px;
        border-bottom: 1px solid var(--border-divider);
      }

      .photo-preview-title {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
      }

      .photo-preview-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: var(--border-divider);
        color: var(--text-muted);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s;
      }

      .photo-preview-close:hover {
        background: rgba(31, 26, 44, 0.15);
      }

      .photo-preview-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 16px;
        overflow-y: auto;
      }

      .photo-preview-tile {
        position: relative;
        aspect-ratio: 1;
        border-radius: 12px;
        overflow: hidden;
        background: rgba(31, 26, 44, 0.08);
      }

      .photo-preview-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .photo-preview-tile .preview-remove {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: none;
        background: rgba(31, 26, 44, 0.8);
        color: #ffffff;
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.15s;
        padding: 0;
      }

      .photo-preview-tile:hover .preview-remove,
      .photo-preview-tile .preview-remove:focus-visible {
        opacity: 1;
      }

      @media (max-width: 640px) {
        .capture-screen,
        .capture-screen.card {
          padding: 18px;
          padding-top: calc(18px + env(safe-area-inset-top));
        }

        .capture-hero-title {
          font-size: clamp(1.8rem, 10vw, 2.5rem);
        }

        .capture-hero-subtitle {
          font-size: 0.95rem;
        }

        .capture-actions-stack {
          max-width: 100%;
        }

        .glass-button {
          padding: 12px 20px;
          font-size: 0.95rem;
        }

        .glass-button.icon-only {
          width: 44px;
          height: 44px;
        }
      }

      /* ========================================
         DARK MODE – Element-specific overrides
         ======================================== */
      @media (prefers-color-scheme: dark) {
        /* Video background dimming */
        .bg-video {
          opacity: 0.25;
          filter: brightness(0.7);
        }
        .app-frame::after {
          opacity: 0.2;
          filter: brightness(0.6);
        }
        .app-frame:has(.capture-screen:not([hidden])) .bg-video {
          opacity: 0.45;
          filter: brightness(0.6);
        }
        .app-frame:has(.capture-screen:not([hidden]))::after {
          opacity: 0.45;
          filter: brightness(0.6);
        }

        /* Cart page video */
        .cart-page .bg-video {
          opacity: 0.25;
          filter: brightness(0.7);
        }
        .cart-page::after {
          opacity: 0.2;
          filter: brightness(0.6);
        }

        /* Invert black icons to white */
        .icon-button img,
        .menu-icon-button img,
        .top-back img,
        .share-fab img,
        .learn-more-button img,
        .cart-qty-button img,
        .language-switcher .language-button img,
        .processing-line img {
          filter: invert(1);
        }

        /* Dropzone */
        .dropzone {
          border-color: rgba(255, 255, 255, 0.2);
          background: rgba(30, 30, 30, 0.6);
        }
        .dropzone[data-active="true"] {
          border-color: rgba(255, 255, 255, 0.3);
          background: rgba(30, 30, 30, 0.98);
        }
        .dropzone-icon {
          color: var(--text-muted);
        }

        /* Skeleton shimmer */
        .dish-card.skeleton .translated-name,
        .dish-card.skeleton .original-name,
        .dish-card.skeleton .dish-description,
        .dish-card.skeleton .price-tag {
          background: linear-gradient(
            90deg,
            var(--skeleton-base) 25%,
            var(--skeleton-shine) 50%,
            var(--skeleton-base) 75%
          );
          background-size: 200% 100%;
        }

        /* Tip card */
        .tip-card {
          border-color: rgba(255, 255, 255, 0.08);
          box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
        }
        .tip-card-figure {
          background: rgba(255, 255, 255, 0.08);
        }
        .tip-card-label {
          color: var(--text-muted);
        }

        /* Cart dialog item */
        .cart-dialog-item {
          background: rgba(255, 255, 255, 0.06);
          box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        }

        /* Cart dialog actions */
        .cart-dialog-actions button {
          background: rgba(255, 255, 255, 0.08);
          color: var(--text-strong);
        }
        .cart-dialog-actions button.secondary {
          background: rgba(255, 255, 255, 0.08);
          color: var(--text-strong);
        }
        .cart-dialog-actions button.secondary:not(:disabled):hover,
        .cart-dialog-actions button.secondary:not(:disabled):focus-visible {
          background: rgba(255, 255, 255, 0.14);
        }

        /* Cart dialog footer */
        .cart-dialog-footer {
          border-top-color: var(--border-divider);
        }

        /* Confirm dialog */
        .confirm-dialog-button[data-variant="secondary"] {
          background: rgba(255, 255, 255, 0.08);
          color: var(--text-secondary);
          box-shadow: inset 0 0 0 1px var(--border-divider);
        }
        .confirm-dialog-button[data-variant="secondary"]:hover,
        .confirm-dialog-button[data-variant="secondary"]:focus-visible {
          background: rgba(255, 255, 255, 0.14);
        }

        /* Dish search results */
        .dish-search-results {
          background: rgba(255, 255, 255, 0.04);
        }
        .dish-search-subtitle {
          color: var(--text-muted);
        }
        .dish-search-hint {
          color: var(--text-muted);
        }

        /* Photo preview */
        .photo-preview-close:hover {
          background: rgba(255, 255, 255, 0.15);
        }
        .photo-preview-tile {
          background: rgba(255, 255, 255, 0.08);
        }

        /* Preview remove button */
        .preview-remove {
          color: var(--text-muted);
        }
        .preview-remove:hover,
        .preview-remove:focus-visible {
          color: var(--text-strong);
        }

        /* Warning */
        .warning {
          background: rgba(251, 146, 60, 0.15);
        }

        /* Language menu hover */
        .language-menu-item:not([data-active="true"]):hover,
        .language-menu-item:not([data-active="true"]):focus-visible {
          background: rgba(255, 255, 255, 0.08);
        }

        /* Order note */
        .order-note-row {
          border-bottom-color: var(--border-strong);
        }

        /* Menu filter pill hover */
        .menu-filter-pill:hover {
          background: rgba(255, 255, 255, 0.12);
        }
        .menu-filter-pill[data-active="true"]:hover {
          background: rgba(230, 230, 230, 0.9);
        }

        /* Button secondary */
        button.secondary {
          background: var(--bg-active);
          border-color: rgba(20, 184, 166, 0.16);
        }
        button.secondary:not(:disabled):hover,
        button.secondary:not(:disabled):focus-visible {
          background: rgba(20, 184, 166, 0.2);
          border-color: rgba(20, 184, 166, 0.24);
        }

        /* Language chip */
        .language-chip {
          border-color: rgba(20, 184, 166, 0.2);
          background: rgba(20, 184, 166, 0.1);
        }

        /* Share fab QR - keep white bg for readability */
        .share-fab-qr {
          background: rgba(255, 255, 255, 0.95);
        }

        /* Glass buttons on capture screen */
        .glass-button {
          background: rgba(255, 255, 255, 0.12);
          border-color: rgba(255, 255, 255, 0.18);
          color: rgba(255, 255, 255, 0.95);
        }
        .glass-button img {
          filter: invert(1);
          opacity: 0.9;
        }
        .glass-button.primary {
          background: rgba(255, 255, 255, 0.15);
          color: rgba(255, 255, 255, 0.95);
          border-color: rgba(255, 255, 255, 0.2);
        }
        .glass-button.primary:hover,
        .glass-button.primary:focus-visible {
          background: rgba(255, 255, 255, 0.25);
        }
        .glass-button.primary img {
          filter: invert(1);
          opacity: 0.9;
        }

        /* Capture language menu */
        .capture-language-menu {
          background: rgba(30, 30, 30, 0.95);
          border-color: rgba(255, 255, 255, 0.15);
        }
        .capture-language-menu-title {
          color: var(--text-muted);
        }
        .capture-language-menu-item {
          color: var(--text-strong);
        }
        .capture-language-menu-item:hover,
        .capture-language-menu-item:focus-visible {
          background: rgba(255, 255, 255, 0.08);
        }
        .capture-language-menu-item[data-active="true"] {
          background: var(--bg-active);
        }
      }

      /* ========================================
         HELP ME ORDER – Card-based concierge flow
         ======================================== */

      /* Full-bleed video background when HMO screen is active */
      .app-frame:has(.hmo-screen:not([hidden])) .bg-video {
        height: 100vh;
        height: 100dvh;
        opacity: 0.55;
      }

      .app-frame:has(.hmo-screen:not([hidden]))::after {
        height: 100vh;
        height: 100dvh;
        opacity: 0.55;
      }

      .app-frame:has(.hmo-screen:not([hidden])) .top-bar {
        display: none;
      }

      .hmo-screen {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        background: transparent;
        position: relative;
        z-index: 2;
        padding: 0;
        border: none;
        box-shadow: none;
        border-radius: 0;
      }

      /* Bottom gradient – grounds the floating controls */
      .hmo-screen::after {
        content: '';
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 160px;
        background: linear-gradient(
          to bottom,
          transparent 0%,
          color-mix(in srgb, var(--page-bg) 25%, transparent) 45%,
          color-mix(in srgb, var(--page-bg) 50%, transparent) 100%
        );
        pointer-events: none;
        z-index: 5;
      }

      /* ---- HMO Header ---- */
      .hmo-header {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: 16px 18px;
        padding-top: calc(16px + env(safe-area-inset-top));
        position: sticky;
        top: 0;
        z-index: 10;
        background: linear-gradient(
          to bottom,
          color-mix(in srgb, var(--page-bg) 25%, transparent) 0%,
          color-mix(in srgb, var(--page-bg) 8%, transparent) 70%,
          transparent 100%
        );
        border-bottom: none;
      }

      .hmo-back-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--border-divider);
        background: var(--bg-subtle);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.18s ease, transform 0.18s ease;
      }

      .hmo-back-button img {
        opacity: 0.9;
      }

      .hmo-back-button:hover,
      .hmo-back-button:focus-visible {
        background: var(--bg-subtle);
        filter: brightness(0.95);
        transform: translateY(-1px);
      }

      .hmo-header-center {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .hmo-header-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-strong);
        letter-spacing: 0.01em;
      }

      .hmo-menu-button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid var(--border-divider);
        background: var(--bg-subtle);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text-strong);
        transition: background 0.18s ease, transform 0.18s ease;
        justify-self: end;
      }

      .hmo-menu-button:hover,
      .hmo-menu-button:focus-visible {
        background: var(--bg-subtle);
        filter: brightness(0.95);
        transform: translateY(-1px);
      }

      .hmo-overflow-menu {
        position: absolute;
        top: calc(env(safe-area-inset-top) + 68px);
        right: 18px;
        z-index: 20;
        background: var(--glass-card);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid var(--border-divider);
        border-radius: 14px;
        padding: 6px;
        min-width: 180px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
        animation: hmo-menu-in 0.18s ease both;
      }

      @keyframes hmo-menu-in {
        from { opacity: 0; transform: translateY(-6px) scale(0.95); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
      }

      .hmo-overflow-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 11px 14px;
        border: none;
        background: transparent;
        border-radius: 10px;
        color: var(--text-strong);
        font-size: 0.9rem;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.15s ease;
      }

      .hmo-overflow-item:hover {
        background: var(--bg-subtle);
      }

      .hmo-overflow-item svg {
        flex-shrink: 0;
        opacity: 0.7;
      }

      /* ---- HMO Body ---- */
      .hmo-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow-y: auto;
        padding: 8px 18px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
      }

      /* ---- Intro (persistent greeting) ---- */
      .hmo-intro {
        width: 100%;
        max-width: 340px;
        align-self: stretch;
        text-align: left;
        color: var(--text-muted);
        font-size: 0.9rem;
        line-height: 1.55;
        padding: 8px 0 12px;
        white-space: pre-wrap;
        animation: hmo-fade-in 0.4s ease both;
      }

      /* ---- Loading indicator ---- */
      .hmo-loading {
        display: flex;
        gap: 8px;
        align-items: center;
        padding: 20px 0;
        animation: hmo-fade-in 0.3s ease both;
      }

      .hmo-typing-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--text-muted);
        animation: hmo-typing-pulse 1.5s ease-in-out infinite;
        flex-shrink: 0;
      }

      .hmo-typing-text {
        font-size: 0.82rem;
        color: var(--text-muted);
        font-weight: 500;
        letter-spacing: 0.01em;
      }

      @keyframes hmo-typing-pulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
      }

      /* ---- Question Phase ---- */
      .hmo-question-phase {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 340px;
        gap: 16px;
        padding: 4px 0 24px;
      }

      /* Question card */
      .hmo-question-card {
        width: 100%;
        padding: 22px 20px;
        border-radius: 20px;
        background: var(--glass-card);
        backdrop-filter: blur(32px);
        -webkit-backdrop-filter: blur(32px);
        border: 1px solid var(--border-divider);
        text-align: center;
        animation: hmo-card-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
      }

      .hmo-question-text {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.5;
        color: var(--text-strong);
      }

      /* Option grid */
      .hmo-option-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
      }

      .hmo-option-card {
        appearance: none;
        border: 1px solid var(--border-divider);
        border-radius: 16px;
        background: var(--bg-subtle);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 16px 12px;
        text-align: center;
        color: var(--text-strong);
        font-size: 0.9rem;
        font-weight: 500;
        font-family: inherit;
        line-height: 1.4;
        cursor: pointer;
        transition: all 0.2s ease;
        animation: hmo-option-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
      }

      .hmo-option-card:hover {
        background: var(--bg-subtle);
        filter: brightness(0.96);
        transform: translateY(-2px);
      }

      .hmo-option-card[data-selected="true"] {
        border-color: var(--primary);
        background: color-mix(in srgb, var(--primary) 10%, var(--bg-subtle));
        box-shadow: 0 0 20px color-mix(in srgb, var(--primary) 15%, transparent);
        color: var(--text-strong);
        font-weight: 600;
      }

      .hmo-option-card[data-selected="true"]:hover {
        background: color-mix(in srgb, var(--primary) 16%, var(--bg-subtle));
      }

      /* Odd last child spans full width */
      .hmo-option-grid > .hmo-option-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
      }

      /* ---- Question card note mode (reuses card for streaming note) ---- */
      .hmo-question-card--note {
        text-align: left;
        max-height: 50vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      /* Streamed note text */
      .hmo-note-text {
        white-space: pre-wrap;
        font-size: 0.95rem;
        line-height: 1.6;
      }

      .hmo-note-cursor {
        display: inline-block;
        width: 2px;
        height: 1.1em;
        background: var(--text-strong);
        margin-left: 2px;
        vertical-align: text-bottom;
        animation: hmo-cursor-blink 0.8s step-end infinite;
      }

      @keyframes hmo-cursor-blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
      }

      /* ---- Post-note instruction prompt ---- */
      .hmo-post-note-prompt {
        text-align: center;
        color: var(--text-muted);
        font-size: 0.8rem;
        line-height: 1.5;
        padding: 4px 0;
        animation: hmo-fade-in 0.3s ease both;
      }

      /* ---- Compose Row (inside question-phase) ---- */
      .hmo-compose-row {
        width: 100%;
        margin-top: 12px;
      }

      /* ---- Compose ---- */
      .hmo-compose {
        display: flex;
        gap: 6px;
        align-items: center;
        background: var(--bg-subtle);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-divider);
        border-radius: 999px;
        padding: 5px 5px 5px 0;
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
      }

      .hmo-free-text {
        flex: 1;
        appearance: none;
        border: none;
        border-radius: 999px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        color: var(--text-strong);
        padding: 11px 14px;
        font-size: 0.86rem;
        font-family: inherit;
        outline: none;
        transition: background 0.2s ease;
      }

      .hmo-free-text::placeholder {
        color: var(--text-muted);
        font-size: 0.82rem;
      }

      .hmo-free-text:focus {
        background: transparent;
      }

      .hmo-send {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: var(--primary);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
      }

      .hmo-send svg {
        width: 24px;
        height: 24px;
      }

      .hmo-send:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
      }

      .hmo-send:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        transform: none;
      }

      /* ---- Animations ---- */
      @keyframes hmo-fade-in {
        from { opacity: 0; }
        to   { opacity: 1; }
      }

      @keyframes hmo-bubble-in {
        from {
          opacity: 0;
          transform: translateY(12px) scale(0.96);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      @keyframes hmo-card-in {
        from {
          opacity: 0;
          transform: translateX(40px);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      @keyframes hmo-card-out {
        from {
          opacity: 1;
          transform: translateX(0);
        }
        to {
          opacity: 0;
          transform: translateX(-40px);
        }
      }

      @keyframes hmo-option-in {
        from {
          opacity: 0;
          transform: scale(0.9);
        }
        to {
          opacity: 1;
          transform: scale(1);
        }
      }

      /* ---- Responsive ---- */
      @media (max-width: 420px) {
        .hmo-body {
          padding: 4px 14px 16px;
        }

        .hmo-question-phase {
          max-width: 300px;
          gap: 12px;
        }

        .hmo-question-card {
          padding: 18px 16px;
        }

        .hmo-question-text {
          font-size: 0.95rem;
        }

        .hmo-option-card {
          padding: 14px 10px;
          font-size: 0.85rem;
          border-radius: 14px;
        }

        .hmo-option-grid {
          gap: 10px;
        }

        .hmo-compose {
          padding: 4px 4px 4px 0;
        }

        .hmo-screen::after {
          height: 120px;
        }

        .hmo-overflow-menu {
          right: 14px;
          min-width: 160px;
        }
      }

      /* ========================================
         DARK MODE – Help Me Order overrides
         ======================================== */
      @media (prefers-color-scheme: dark) {
        .app-frame:has(.hmo-screen:not([hidden])) .bg-video {
          opacity: 0.35;
          filter: brightness(0.55);
        }
        .app-frame:has(.hmo-screen:not([hidden]))::after {
          opacity: 0.3;
          filter: brightness(0.5);
        }

        .hmo-screen::after {
          background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.40) 45%,
            rgba(0, 0, 0, 0.65) 100%
          );
        }

        .hmo-header {
          background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.08) 70%,
            transparent 100%
          );
        }

        .hmo-header-title {
          color: rgba(255, 255, 255, 0.92);
          text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
        }

        .hmo-back-button {
          border-color: rgba(255, 255, 255, 0.18);
          background: rgba(255, 255, 255, 0.1);
        }

        .hmo-back-button img {
          filter: brightness(0) invert(1);
        }

        .hmo-back-button:hover,
        .hmo-back-button:focus-visible {
          background: rgba(255, 255, 255, 0.2);
          filter: none;
        }

        .hmo-menu-button {
          border-color: rgba(255, 255, 255, 0.18);
          background: rgba(255, 255, 255, 0.1);
          color: rgba(255, 255, 255, 0.9);
        }

        .hmo-menu-button:hover,
        .hmo-menu-button:focus-visible {
          background: rgba(255, 255, 255, 0.2);
          filter: none;
        }

        .hmo-overflow-menu {
          background: rgba(15, 15, 15, 0.9);
          border-color: rgba(255, 255, 255, 0.08);
          box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
        }

        .hmo-overflow-item {
          color: rgba(255, 255, 255, 0.9);
        }

        .hmo-overflow-item:hover {
          background: rgba(255, 255, 255, 0.1);
        }

        .hmo-intro {
          color: rgba(255, 255, 255, 0.72);
          text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
        }

        .hmo-typing-dot {
          background: rgba(255, 255, 255, 0.7);
        }

        .hmo-typing-text {
          color: rgba(255, 255, 255, 0.55);
        }

        .hmo-question-card {
          background: rgba(255, 255, 255, 0.10);
          border-color: rgba(255, 255, 255, 0.12);
        }

        .hmo-question-text {
          color: rgba(255, 255, 255, 0.97);
          text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
        }

        .hmo-option-card {
          background: rgba(255, 255, 255, 0.06);
          border-color: rgba(255, 255, 255, 0.10);
          color: rgba(255, 255, 255, 0.92);
        }

        .hmo-option-card:hover {
          background: rgba(255, 255, 255, 0.16);
          border-color: rgba(255, 255, 255, 0.28);
          filter: none;
        }

        .hmo-option-card[data-selected="true"] {
          border-color: rgba(96, 165, 250, 0.5);
          background: rgba(96, 165, 250, 0.10);
          box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
          color: rgba(255, 255, 255, 0.98);
        }

        .hmo-option-card[data-selected="true"]:hover {
          background: rgba(96, 165, 250, 0.18);
        }

        .hmo-note-cursor {
          background: rgba(255, 255, 255, 0.7);
        }

        .hmo-post-note-prompt {
          color: rgba(255, 255, 255, 0.6);
        }

        .hmo-compose {
          background: rgba(255, 255, 255, 0.06);
          border-color: rgba(255, 255, 255, 0.08);
        }

        .hmo-free-text {
          color: rgba(255, 255, 255, 0.95);
        }

        .hmo-free-text::placeholder {
          color: rgba(255, 255, 255, 0.4);
        }

        .hmo-free-text:focus {
          background: rgba(255, 255, 255, 0.05);
        }

        .hmo-send {
          background: rgba(255, 255, 255, 0.15);
          color: rgba(255, 255, 255, 0.9);
        }

        .hmo-send:hover {
          background: rgba(255, 255, 255, 0.25);
        }
      }
