*, *::before, *::after { box-sizing: border-box; }
  :root {
    --app-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --app-font-headline: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --warm-primary: #F27126;
    --warm-primary-pressed: #D95E1B;
    --warm-surface: #FFF9F4;
    --warm-surface-strong: #FFF0E3;
    --warm-border: #F0CDB3;
    --warm-text: #6F3A22;
    --warm-divider: #EFDACA;
  }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: clip;
    font-family: var(--app-font-body);
  }
  body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--app-font-body);
  }
  html.home-page-active,
  body.home-page-active {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: #FAF8F4;
  }
  body.home-page-active { padding-bottom: 0; }
  html {
    height: 100%;
    height: 100dvh;
    height: var(--bw-app-height, 100dvh);
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
  }
  body {
    height: 100%;
    height: 100dvh;
    height: var(--bw-app-height, 100dvh);
    min-height: 0;
    max-height: 100%;
    max-height: var(--bw-app-height, 100dvh);
    overflow: hidden;
    overscroll-behavior: none;
    padding-bottom: 0;
    color: #F7F4EF;
    background: #080808;
    -webkit-tap-highlight-color: transparent;
  }
  .pb-safe-page {
    padding-bottom: max(2.5rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
  }
  .material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
  .font-body { font-family: var(--app-font-body); }
  .font-headline { font-family: var(--app-font-headline); }
  #dining-credits-mount { font-family: var(--app-font-body); }
  #dining-credits-mount .font-headline,
  #dining-credits-mount .dc-header-title,
  #dining-credits-mount .dc-my-header-title,
  #dining-credits-mount .dc-hero-title,
  #dining-credits-mount .dc-section-title,
  #dining-credits-mount .dc-partners-section-heading,
  #dining-credits-mount .dc-terms-heading,
  #dining-credits-mount .dc-my-hero-account,
  #dining-credits-mount .dc-qr-header-title,
  #dining-credits-mount .dc-pay-sheet-label,
  #dining-credits-mount .dc-pay-sheet-amount,
  #dining-credits-mount .acct-tx-header-title,
  #dining-credits-mount .acct-tx-detail-section-label,
  #dining-credits-mount .acct-tx-detail-hero-amount {
    font-family: var(--app-font-headline);
  }
  .mic-glow { box-shadow: 0 0 48px 8px rgba(240, 128, 60, 0.2); }
  .no-scrollbar::-webkit-scrollbar { display: none; }
  .no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
  select option { background: #ffffff; color: #16211D; }
  .page { display: none; opacity: 0; transition: opacity 0.3s ease; min-height: 100dvh; font-family: var(--app-font-body); }
  .page.active { display: flex; flex-direction: column; opacity: 1; }

  /* 2026 immersive dark refresh (final overrides live in dark-refresh.css) */
  :root {
    --dark-bg: #080808;
    --dark-surface: #151515;
    --dark-surface-2: #202020;
    --dark-line: rgba(255,255,255,.11);
    --dark-text: #F7F4EF;
    --dark-muted: #AAA49C;
    --dark-orange: #F2762E;
    --dark-green: #78B987;
  }
  .app-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
    display: none; align-items: flex-start; justify-content: space-around;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 7px 8px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--dark-line);
    background: rgba(8,8,8,.92); color: var(--dark-muted);
    backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  }
  body.app-main-tab-active .app-tabbar { display: flex; }
  .app-tabbar-item { width: 25%; display: flex; flex-direction: column; align-items: center; gap: 1px; color: inherit; font-size: 10px; font-weight: 650; }
  .app-tabbar-item .material-symbols-outlined { font-size: 25px; }
  .app-tabbar-item.is-active { color: var(--dark-orange); }
  .app-tabbar-item.is-active .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 500; }

  html.home-page-active, body.home-page-active { background: #000; }
  #page-home.page.active { background: #000 !important; color: #fff; }
  #page-home > header { background: transparent !important; border: 0 !important; }
  #page-home > header > div { height: 70px; padding: env(safe-area-inset-top, 0px) 16px 0; }
  #page-home .home-header-brand { color: #fff; letter-spacing: .1em; }
  #page-home .home-header-logo { display: none; }
  #page-home #home-lang-btn, #page-home #home-settings-btn { color: #fff !important; border-color: rgba(255,255,255,.22) !important; background: rgba(0,0,0,.28); }
  #page-home #home-lang-menu { background: #181818 !important; border-color: var(--dark-line) !important; color: #fff; }
  #page-home #home-lang-menu button { color: #fff !important; }
  #page-home .home-main { max-width: none; margin: 0; padding: 0 0 calc(62px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
  #page-home .home-top-banner { display: none; }
  #page-home .home-discovery, #page-home .home-example-track { width: 100%; height: 100%; min-height: 0; }
  #page-home .home-example-track { gap: 0; padding: 0; scroll-snap-type: y mandatory; overflow-x: hidden; overflow-y: auto; }
  #page-home .home-recommendation-unit { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
  #page-home .home-example-card { position: relative; width: 100%; height: 100%; border: 0; border-radius: 0; background: #000; overflow: hidden; box-shadow: none; }
  #page-home .home-example-video-button { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
  #page-home .home-example-video { width: 100%; height: 100% !important; object-fit: cover; }
  #page-home .home-video-offer { top: 138px; left: 16px; background: #fa4f0a; color: #fff; }
  #page-home .home-video-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,rgba(0,0,0,.5) 0%,transparent 28%,transparent 48%,rgba(0,0,0,.38) 66%,rgba(0,0,0,.94) 100%); }
  #page-home .home-creator-bar { position: absolute; z-index: 5; top: 82px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; padding: 0; background: transparent; border: 0; }
  #page-home .home-creator-avatar { width: 45px; height: 45px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; object-fit: cover; }
  #page-home .home-creator-identity { display: grid; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 0 5px; min-width: 0; color: #fff; }
  #page-home .home-creator-identity strong { font-size: 15px; }
  #page-home .home-creator-identity small { grid-column: 1 / -1; color: rgba(255,255,255,.7); font-size: 10px; }
  #page-home .home-creator-verified { width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: var(--dark-orange); font-size: 9px; }
  #page-home .home-creator-follow { margin-left: auto; min-height: 32px; padding: 5px 14px; border: 0; border-radius: 999px; background: #fff; color: #111; font-size: 12px; font-weight: 750; }
  #page-home .home-creator-follow.is-following { background: rgba(255,255,255,.16); color: #fff; }
  #page-home .home-example-primary-actions { position: absolute; z-index: 6; right: 10px; bottom: 218px; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
  #page-home .home-example-primary-actions button { width: 48px; height: 54px; display: flex; flex-direction: column; gap: 2px; padding: 0; color: #fff; filter: drop-shadow(0 2px 5px rgba(0,0,0,.6)); }
  #page-home .home-example-primary-actions .material-symbols-outlined { font-size: 31px; }
  #page-home .home-example-primary-actions small { font-size: 9px; }
  #page-home .home-example-primary-actions .is-selected, #page-home .home-example-primary-actions .is-saved { color: var(--dark-orange); }
  #page-home .home-video-copy { position: absolute; z-index: 5; left: 16px; right: 66px; bottom: 14px; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
  #page-home .home-video-copy button { pointer-events: auto; }
  #page-home .home-example-summary { display: block; opacity: 0; transform: translateY(10px); transition: .28s ease; }
  #page-home .is-reveal-summary .home-example-summary { opacity: 1; transform: none; }
  #page-home .home-example-dish-name { margin: 0; color: #fff; font-size: 24px; font-weight: 850; line-height: 1.18; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
  #page-home .home-example-summary p { margin: 5px 0 0; color: rgba(255,255,255,.8); font-size: 12px; }
  #page-home .home-restaurant-card { position: relative; width: 100%; min-height: 75px; display: flex; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--dark-line); border-radius: 14px; background: rgba(20,20,20,.72); color: #fff; text-align: left; backdrop-filter: blur(16px); opacity: 0; transform: translateY(10px); transition: .28s ease .08s; }
  #page-home .is-reveal-summary .home-restaurant-card { opacity: 1; transform: none; }
  #page-home .home-restaurant-thumb { width: 55px; height: 55px; flex: 0 0 55px; border-radius: 9px; overflow: hidden; }
  #page-home .home-restaurant-thumb img { width: 100%; height: 100%; object-fit: cover; }
  #page-home .home-restaurant-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  #page-home .home-restaurant-info strong { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  #page-home .home-restaurant-info span { color: var(--dark-muted); font-size: 9px; }
  #page-home .home-restaurant-info b { color: #FFA053; }
  #page-home .home-restaurant-card em { position: absolute; top: 8px; right: 8px; padding: 3px 7px; border-radius: 999px; background: rgba(120,185,135,.22); color: #A1D3AA; font-size: 9px; font-style: normal; }
  #page-home .home-restaurant-cta { margin-left: auto; align-self: flex-end; padding: 5px 8px; border: 1px solid rgba(242,118,46,.7); border-radius: 999px; color: #F58A4B; font-size: 9px; white-space: nowrap; }
  #page-home .home-example-ai-reason { position: absolute; left: 0; bottom: 184px; width: min(285px, calc(100vw - 90px)); display: flex; gap: 8px; padding: 12px; border: 1px solid var(--dark-line); border-left: 1px solid var(--dark-line); border-radius: 15px; background: rgba(32,29,26,.72); color: #fff; text-align: left; backdrop-filter: blur(18px); opacity: 0; transform: translateY(10px); transition: .28s ease; }
  #page-home .is-reveal-reason .home-example-ai-reason { opacity: 1; transform: none; }
  #page-home .home-example-ai-mark { color: var(--dark-green); }
  #page-home .home-example-ai-reason > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; }
  #page-home .home-example-ai-reason b { font-size: 12px; }
  #page-home .home-example-ai-reason strong { color: var(--dark-green); font-size: 17px; }
  #page-home .home-example-ai-reason small { max-height: 0; overflow: hidden; color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.55; transition: .2s ease; }
  #page-home .home-example-ai-reason.is-expanded small { max-height: 100px; }
  #page-home .home-example-ai-reason > .material-symbols-outlined { margin-left: auto; font-size: 18px; transition: transform .2s; }
  #page-home .home-example-ai-reason.is-expanded > .material-symbols-outlined { transform: rotate(180deg); }
  #page-home .home-video-conversation { opacity: 0; transform: translateY(10px); transition: .28s ease; }
  #page-home .is-reveal-conversation .home-video-conversation { opacity: 1; transform: none; }
  #page-home .home-video-chips { display: flex; gap: 6px; margin-bottom: 7px; overflow: hidden; }
  #page-home .home-video-chips button { min-width: 0; flex: 1; padding: 7px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(10,10,10,.58); color: #eee; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #page-home .home-video-composer { width: 100%; height: 46px; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid var(--dark-line); border-radius: 999px; background: rgba(18,18,18,.8); color: var(--dark-muted); }
  #page-home .home-video-composer img { width: 34px; height: 34px; border-radius: 50%; }
  #page-home .home-video-composer span:nth-child(2) { flex: 1; text-align: left; font-size: 12px; }
  #page-home .home-video-composer .material-symbols-outlined { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--dark-orange); color: #fff; }
  #page-home .home-bottom-area, #page-home .home-example-feedback { display: none !important; }

  /* Dark surfaces across secondary pages and overlays */
  body .page:not(#page-home), body .acct-sub-page, body #acct-main,
  body #voice-overlay, body .chat-detail-sheet, body .bottom-sheet { background: var(--dark-bg) !important; color: var(--dark-text); }
  body .page nav, body .page > header, body .acct-sub-page nav,
  body .chat-shell-header, body .chat-detail-header { background: rgba(12,12,12,.96) !important; border-color: var(--dark-line) !important; color: var(--dark-text); }
  body .page main, body .acct-sub-page > div, body #chat-messages { background-color: transparent !important; }
  body .bg-white, body [style*="background:#fff"], body [style*="background: #fff"],
  body [style*="background:#F7FAF8"], body [style*="background: #F7FAF8"],
  body [style*="background:#fcf9f8"], body [style*="background: #fcf9f8"],
  body [style*="background:#f5f5f5"], body [style*="background: #f5f5f5"] { background-color: var(--dark-surface) !important; }
  body .text-\[\#16211D\], body .text-on-surface, body .text-gray-900,
  body [style*="color:#16211D"], body [style*="color: #16211D"],
  body [style*="color:#2C1810"], body [style*="color: #2C1810"] { color: var(--dark-text) !important; }
  body .text-\[\#5C6B63\], body .text-on-surface-variant, body .text-gray-500,
  body [style*="color:#5C6B63"], body [style*="color: #5C6B63"] { color: var(--dark-muted) !important; }
  body .border-\[\#E8F0EB\], body .border-\[\#F0F5F2\], body .border-surface-variant\/30 { border-color: var(--dark-line) !important; }
  body input, body textarea, body select { background: var(--dark-surface-2) !important; color: var(--dark-text) !important; border-color: var(--dark-line) !important; }
  body .app-confirm-dialog { background: var(--dark-surface); }
  body .app-confirm-dialog-title { color: var(--dark-text); }
  body .favorite-list-card, body .dietary-section-card, body .reservation-card { background: var(--dark-surface) !important; border-color: var(--dark-line) !important; color: var(--dark-text); }
  body .favorite-list-meta, body .acct-section-label { color: var(--dark-muted) !important; }
  body #voice-overlay .chat-bottom-area { background: #101010 !important; border-color: var(--dark-line) !important; }
  body #voice-overlay .chat-text-field { background: transparent !important; }
  body .chat-detail-body { background: #0C0C0C !important; }
  body #page-settings main { padding-bottom: calc(86px + env(safe-area-inset-bottom,0px)); }
  body[data-app-tab="profile"] #page-settings > #acct-main { visibility: visible !important; opacity: 1 !important; }
  body[data-app-tab="profile"] #page-settings > #acct-main > nav button { visibility: hidden; width: 0; padding: 0; }

  #dining-credits-mount:has(> .page.active), #dining-credits-mount:has(#page-dining-my-credits.active), #dining-credits-mount:has(#page-dining-credits.active) { background: var(--dark-bg) !important; }
  #page-dining-credits, #page-dining-my-credits {
    --dc-text-primary: var(--dark-text) !important; --dc-text-secondary: var(--dark-muted) !important;
    --dc-text-tertiary: #777 !important; --dc-bg-base: var(--dark-bg) !important;
    --dc-bg-surface: var(--dark-surface) !important; --dc-border: var(--dark-line) !important;
    background: var(--dark-bg) !important; color: var(--dark-text) !important;
  }
  #page-dining-credits .dc-main, #page-dining-my-credits .dc-my-shell { background: var(--dark-bg) !important; }
  body[data-app-tab="benefits"] #page-dining-credits .dc-bottom-bar { bottom: calc(62px + env(safe-area-inset-bottom,0px)); background: rgba(16,16,16,.96); }
  body[data-app-tab="benefits"] #page-dining-credits .dc-main { padding-bottom: calc(138px + env(safe-area-inset-bottom,0px)); }

  @media (min-width: 768px) {
    .app-tabbar { width: 430px; left: 50%; right: auto; transform: translateX(-50%); }
    #page-home .home-example-ai-reason { width: 285px; }
  }
  .spinner { width: 36px; height: 36px; border: 3px solid rgba(240,128,60,0.15); border-top-color: #F0803C; border-radius: 50%; animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes fadeSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes chipIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
  @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
  @keyframes dotBounce { 0%, 80%, 100% { transform: scale(0); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
  @keyframes checkDraw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
  @keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
  @keyframes pulseGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,128,60, 0); } 50% { box-shadow: 0 0 0 4px rgba(240,128,60, 0.12); } }
  .email-chip { animation: chipIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
  .email-dropdown { animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; transform-origin: top center; }
  .email-dropdown-item:hover { background-color: rgba(240,128,60,0.06); }
  .email-dropdown-item.active { background-color: rgba(240,128,60,0.1); }
  .email-input-wrapper { transition: all 0.2s ease; }
  .email-input-wrapper:focus-within { outline: 2px solid rgba(240,128,60,0.3); outline-offset: 1px; }
  .loading-dot { width: 6px; height: 6px; border-radius: 50%; background-color: currentColor; display: inline-block; animation: dotBounce 1.4s infinite ease-in-out both; }
  .loading-dot:nth-child(1) { animation-delay: -0.32s; }
  .loading-dot:nth-child(2) { animation-delay: -0.16s; }
  .loading-dot:nth-child(3) { animation-delay: 0s; }
  .check-icon svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: checkDraw 0.4s 0.2s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
  .progress-bar { background: linear-gradient(90deg, #F0803C, #D96E2A, #F0803C); background-size: 200% 100%; animation: shimmer 1.5s infinite linear; }
  .magic-link-pulse { animation: pulseGlow 2s infinite; }
  .param-card { cursor: pointer; transition: all 0.18s ease; }
  .param-card:hover { border-color: rgba(240,128,60,0.35); }
  .param-card .edit-icon { opacity: 0.6; transition: all 0.18s; }
  .param-card:hover .edit-icon { opacity: 1; transform: translateX(2px); }
  .bottom-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.32); z-index: 120; display: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .bottom-sheet-backdrop.active { display: block; }
  .bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 121; background: #FFFCF9; border-radius: 18px 18px 0 0; box-shadow: none; transform: translateY(100%); transition: transform 0.25s ease; padding: 20px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .bottom-sheet.active { transform: translateY(0); box-shadow: 0 -8px 24px rgba(0,0,0,0.14); }
  #reservation-filter-backdrop { z-index: 220; }
  #reservation-filter-sheet.bottom-sheet { z-index: 221; }
  #reservation-backdrop { z-index: 320; }
  #reservation-sheet.bottom-sheet { z-index: 321; }
  #editSheetBackdrop { z-index: 270; }
  #confirmEditSheet.bottom-sheet { z-index: 271; }
  .app-confirm-backdrop {
    position: fixed; inset: 0; z-index: 280;
    background: rgba(0,0,0,0.45);
    display: none; align-items: center; justify-content: center;
    padding: 24px; -webkit-tap-highlight-color: transparent;
  }
  .app-confirm-backdrop.active { display: flex; }
  .app-confirm-dialog {
    width: 100%; max-width: 300px;
    background: #fff; border-radius: 16px;
    padding: 20px 18px 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    box-sizing: border-box;
    overflow: visible;
  }
  .app-confirm-dialog-title {
    font-size: 17px;
    font-weight: 700;
    color: #16211D;
    text-align: center;
    line-height: 1.35;
    margin: 0 0 16px;
  }
  .app-confirm-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .app-confirm-actions .app-confirm-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.15s ease;
  }
  .app-confirm-actions .app-confirm-btn:active { transform: scale(0.98); }
  .app-confirm-actions .app-confirm-btn-keep {
    color: var(--warm-text);
    background: var(--warm-surface-strong);
    border: 1px solid var(--warm-border);
  }
  .warm-secondary-action {
    color: var(--warm-text) !important;
    background: var(--warm-surface-strong) !important;
    border: 1px solid var(--warm-border) !important;
  }
  .warm-secondary-action:active { background: #FBE2CF !important; }
  .app-confirm-actions .app-confirm-btn-cancel {
    color: #fff;
    background: #E53E3E;
    border: 1px solid #E53E3E;
  }

  /* ── Mobile adaptation ── */
  button, [role="button"], a, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  input, select, textarea {
    font-size: 16px;
  }
  /* Prevent iOS input-focus zoom in reservation sheet */
  #reservation-sheet input[type="text"],
  #reservation-sheet input[type="tel"],
  #reservation-sheet input[type="email"],
  #reservation-sheet input[type="number"],
  #reservation-sheet textarea {
    font-size: 16px !important;
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
  }
  #reservation-sheet.bottom-sheet {
    max-height: min(92dvh, 92vh);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  img, video, svg { max-width: 100%; height: auto; }
  .page { width: 100%; max-width: 100%; }
  .page main, .page > main { width: 100%; max-width: 100%; min-width: 0; }

  /* OTP — flex so 6 digits fit narrow screens */
  #otpContainer,
  #waOtpContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(6px, 2.2vw, 12px);
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2px;
    box-sizing: border-box;
  }
  .otp-input,
  .wa-otp-input {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: 3rem;
    height: 3.5rem;
    padding: 0;
    font-size: clamp(1.125rem, 4.8vw, 1.25rem);
    text-align: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(92, 107, 99, 0.25);
    background: #fff;
    outline: none;
    box-sizing: border-box;
  }
  .otp-input:focus { border-color: #F0803C; box-shadow: 0 0 0 2px rgba(240, 128, 60, 0.2); }
  .wa-otp-input:focus { border-color: #25D366; box-shadow: 0 0 0 2px rgba(37, 140, 126, 0.2); }

  /* Safe area — headers & bottom sheets */
  #page-home > header,
  #page-settings nav.fixed,
  .acct-sub-page > nav {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .bottom-sheet {
    padding-bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  }
  #home-lang-menu {
    top: calc(3.5rem + env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .app-confirm-backdrop {
    padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .app-toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background: #16211D;
    color: #fff;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.45;
    z-index: 400;
    pointer-events: none;
    max-width: min(320px, calc(100vw - 40px));
    width: max-content;
    text-align: center;
    white-space: normal;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  }
  .app-toast-center { top: 50%; transform: translate(-50%, -50%); }
  .app-toast-bottom {
    bottom: max(80px, calc(env(safe-area-inset-bottom, 0px) + 64px));
    top: auto;
    transform: translateX(-50%);
  }

  /* Home — fill browser layout viewport (top+bottom), not visualViewport offset */
  #page-home.page.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    overscroll-behavior: none;
    background: #FAF8F4;
  }
  body.bw-keyboard-open #page-home.page.active,
  body.home-inline-keyboard-open #page-home.page.active {
    bottom: auto;
    height: var(--home-viewport-height, var(--bw-app-height, 100dvh));
    max-height: var(--home-viewport-height, var(--bw-app-height, 100dvh));
  }
  #page-home > header {
    border-bottom-color: rgba(111, 98, 88, .08) !important;
    background: #FAF8F4 !important;
  }
  .home-top-banner {
    flex-shrink: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .bitewise-logo {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
  }
  .bitewise-logo--sm { width: 36px; height: 36px; }
  .bitewise-logo--md { width: 52px; height: 52px; }
  .bitewise-logo--lg { width: 68px; height: 68px; }
  .bitewise-logo--xl { width: 96px; height: 96px; }
  .bitewise-logo--xxl { width: 108px; height: 108px; }
  .home-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E96328;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: none;
  }
  .home-header-logo { width: 26px; height: 26px; }
  #page-home .home-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding: clamp(0.5rem, 1.5vh, 0.8rem) 1rem max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    box-sizing: border-box;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  #page-home .home-main::-webkit-scrollbar { display: none; }
  @media (max-height: 680px) {
    #page-home .home-main {
      justify-content: flex-start;
      padding-top: 0.25rem;
    }
  }
  .home-bottom-area {
    width: 100%;
    min-width: 0;
    margin: -8px 0 0;
    padding: 0 0 max(8px, calc(env(safe-area-inset-bottom, 0px) + 6px));
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    overflow: visible;
    border: 0;
    background: #FAF8F4;
    box-shadow: none;
  }
  .home-bottom-area .home-prompt-suggestions { margin-bottom: 0; }
  /* dining-credits: see modules/dining-credits/dining-credits.css */
  .home-hero { width: 100%; text-align: left; }
  .home-hero-title {
    margin: 0;
    color: #3B2A23;
    font-size: clamp(24px, 6.8vw, 29px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.22;
  }
  .home-hero-title > span { display: block; }
  .home-hero-title-accent { color: #F36B2A; }
  .home-subtitle-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-width: none;
    margin: 14px 0 0;
  }
  .home-subtitle-lead {
    margin: 0;
    color: #5F5149;
    text-align: left;
    font-size: 13px;
    font-weight: 620;
    line-height: 1.8;
  }
  .home-prompt-suggestions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }
  .home-prompt-label,
  .home-discovery-title {
    margin: 0 0 2px;
    color: #4D4A46;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
    text-align: left;
  }
  .home-prompt-label {
    padding-left: 0;
    color: #817A74;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
  }
  .home-prompt-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .home-prompt-chip {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 9px 4px 9px 27px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #4C4641;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
  }
  .home-prompt-chip::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    width: 20px;
    height: 14px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none'%3E%3Cpath d='M2 2v2.6C2 9 5.2 11 9.1 11H21M17 7l4 4-4 4' stroke='%23D76528' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    opacity: .9;
    transform: translateY(-52%);
  }
  .home-prompt-chip + .home-prompt-chip { border-top: 1px solid rgba(87, 72, 63, .045); }
  .home-prompt-chip:hover { color: #2D2824; background: transparent; }
  .home-prompt-chip:active { color: var(--warm-primary-pressed); background: transparent; }
  .home-prompt-chip:focus-visible { outline: 2px solid rgba(233,121,54,.32); outline-offset: 0; border-radius: 5px; }
  .home-discovery {
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .home-discovery-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; }
  .home-discovery-title {
    margin-bottom: 3px;
    color: #2D2824;
  }
  .home-discovery-question {
    margin: 0 0 7px;
    padding: 0;
    color: #6E7872;
    font-size: 13px;
    line-height: 1.4;
  }
  .home-example-track {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 2px 2px 8px;
    margin: 0 -2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .home-example-track::-webkit-scrollbar { display: none; }
  .home-example-card {
    position: relative;
    flex: 0 0 172px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #E2DDD7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(53, 37, 26, 0.06);
    scroll-snap-align: start;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  .home-recommendation-unit { width: 100%; }
  .home-creator-bar { display: flex; align-items: center; gap: 9px; margin: 0 2px 8px; }
  .home-creator-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: block; border-radius: 50%; object-fit: cover; object-position: center 34%; background: #E8DED7; box-shadow: 0 3px 10px rgba(84,48,29,.16); }
  .home-creator-identity { min-width: 0; display: flex; align-items: center; gap: 5px; flex: 1; }
  .home-creator-identity strong { overflow: hidden; color: #27221F; font-size: 13px; font-weight: 820; text-overflow: ellipsis; white-space: nowrap; }
  .home-creator-verified { width: 14px; height: 14px; flex: 0 0 14px; display: grid; place-items: center; border-radius: 50%; background: #2F8DE4; color: #fff; font-size: 8px; font-weight: 900; }
  .home-example-card:hover { border-color: #E7B896; box-shadow: 0 5px 14px rgba(53, 37, 26, 0.1); }
  .home-example-video-button {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #EEE9E4;
    cursor: pointer;
  }
  .home-example-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }
  .home-example-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-example-video-button.is-image-fallback {
    cursor: pointer;
  }
  .home-example-video-button.is-static-image {
    cursor: default;
  }
  .home-example-video-button.is-image-fallback .home-example-video-play,
  .home-example-video-button.is-image-fallback .home-example-duration,
  .home-example-video-button.is-image-fallback::after { display: none; }
  .home-example-video-play {
    position: absolute;
    z-index: 4;
    inset: 50% auto auto 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(.92);
    transition: opacity 0.14s ease, transform 0.14s ease;
  }
  .home-example-video-play .material-symbols-outlined {
    font-size: 48px;
    font-variation-settings: 'FILL' 1, 'wght' 500;
    margin-left: 3px;
  }
  .home-example-video-play::before { content: none; display: none; }
  .home-example-video-pause { display: none !important; }
  .home-example-video-button.is-playing .home-example-video-play { opacity: 0; }
  .home-example-video-button.is-paused .home-example-video-play { opacity: 1; transform: scale(1); }
  .home-example-duration {
    position: absolute;
    right: 7px;
    bottom: 7px;
    z-index: 3;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(28, 23, 20, .68);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
  }
  .home-example-duration.is-visible { opacity: 1; }
  .home-example-video-button::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 42px;
    background: linear-gradient(transparent, rgba(25,20,17,.58));
    pointer-events: none;
  }
  .home-example-video-button:focus-visible,
  .home-example-cta:focus-visible { outline: 2px solid rgba(233,121,54,0.42); outline-offset: 2px; }
  .home-example-content {
    padding: 8px 9px 8px;
    border-top: 1px solid #EEE9E4;
  }
  .home-example-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    background: #fff;
    text-align: left;
  }
  .home-example-cuisine {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 247, 240, 0.94);
    color: #D76528;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
  }
  .home-example-dish-name {
    margin: 0;
    color: #16211D;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-example-price { display: flex; align-items: baseline; gap: 3px; margin: 3px 0 0; color: #7C746E; font-size: 10px; line-height: 1.25; }
  .home-example-price strong { color: #1E1B19; font-size: 12px; font-weight: 760; }
  .home-example-reason {
    min-height: 28px;
    margin: 4px 0 0;
    overflow: hidden;
    color: #756E68;
    font-size: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .home-example-restaurant {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .home-example-why-label {
    margin: 4px 0 0;
    color: #D76528;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
  }
  .home-example-hook {
    min-height: 32px;
    margin: 1px 0 6px;
    color: #756E68;
    font-size: 11px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .home-example-meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    min-width: 0;
    margin: 5px 0 0;
    color: #827A73;
    font-size: 9px;
    font-weight: 550;
    line-height: 1.35;
  }
  .home-example-meta > span { display: inline-flex; align-items: center; gap: 3px; }
  .home-example-pin { width: 12px; height: 12px; flex: 0 0 12px; }
  .home-example-pin svg { display: block; width: 100%; height: 100%; }
  .home-example-meta-dot { flex: 0 0 auto; }
  .home-example-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 30px;
    margin-top: 4px;
    padding: 4px 8px;
    border: 1px solid var(--warm-primary);
    border-radius: 8px;
    background: var(--warm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
  }
  .home-example-cta:hover { background: var(--warm-primary-pressed); border-color: var(--warm-primary-pressed); }
  .home-example-cta:active { transform: scale(.985); }
  .home-example-cta .material-symbols-outlined { font-size: 16px; }

  /* Home — three full creator recommendations, horizontal swipe */
  .home-example-track {
    display: flex;
    gap: 12px;
    width: 100%;
    padding: 0 0 4px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .home-example-track::-webkit-scrollbar { display: none; }
  .home-recommendation-unit { width: auto; min-width: 0; flex: 0 0 calc(100% - 24px); scroll-snap-align: start; scroll-snap-stop: always; }
  .home-example-card {
    width: 100%;
    overflow: hidden;
    border-color: #E9DED5;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(65, 43, 30, .08);
  }
  .home-example-video-button {
    height: var(--home-video-height, clamp(280px, 44dvh, 400px));
    aspect-ratio: auto;
  }
  @supports not (height: 1dvh) {
    .home-example-video-button { height: var(--home-video-height, clamp(280px, 44vh, 400px)); }
  }
  .home-example-video-button::after { height: 46px; }
  .home-video-offer { position: absolute; z-index: 3; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 5px 12px; border: 0; border-radius: 999px; background: #fa4f0a; color: #fff; font-size: 11px; font-weight: 750; line-height: 1; letter-spacing: .01em; text-shadow: none; box-shadow: 0 4px 14px rgba(250,79,10,.28); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .home-video-offer-mark { display: none; }
  .home-video-offer-text { color: #fff; white-space: nowrap; }
  .home-video-offer .material-symbols-outlined { display: inline-block; font-size: 15px; font-variation-settings: 'FILL' 1, 'wght' 580; }
  .home-example-duration { right: 8px; bottom: 8px; }
  .home-example-content { padding: 7px 11px 7px; }
  .home-creator-follow { flex: 0 0 auto; min-height: 29px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border: 0; border-radius: 999px; background: #FF720B; color: #fff; font-size: 10px; font-weight: 800; }
  .home-creator-follow.is-following { border-color: #DDD6D0; background: #F6F3F0; color: #706760; }
  .home-example-summary { align-items: flex-start; gap: 12px; }
  .home-example-summary > div { min-width: 0; }
  .home-example-dish-name { font-size: 13px; font-weight: 800; line-height: 1.25; }
  .home-example-reason { min-height: 0; margin-top: 3px; font-size: 12px; -webkit-line-clamp: 2; }
  .home-example-price { flex: 0 0 auto; margin-top: 0; }
  .home-example-price strong { color: #F36B12; font-size: 13px; }
  .home-example-meta { position: relative; margin-top: 5px; color: #81776F; font-size: 9px; white-space: nowrap; }
  .home-example-restaurant { color: #3A322D; font-size: 11px; font-weight: 760; }
  .home-example-distance { flex: 0 0 auto; white-space: nowrap; }
  .home-meta-navigation {
    width: 44px;
    height: 40px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #DB6A2E;
  }
  .home-meta-navigation svg { display: block; width: 22px; height: 22px; }
  .home-meta-navigation:active { color: #B94E19; transform: scale(.94); }
  .home-example-ai-reason {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 6px;
    padding: 8px 10px 8px 12px;
    border-radius: 11px;
    border-left: 3px solid #FF720B;
    background: linear-gradient(90deg,#FFF6ED,#FFF9F4);
    color: #5F5149;
    font-size: 12px;
    line-height: 1.45;
  }
  .home-example-ai-mark { color: #FF720B; font-size: 17px; line-height: 1.2; }
  .home-example-ai-label { margin: 0 0 2px; color: #B55220; font-size: 11px; font-weight: 800; }
  .home-example-ai-reason p:last-child { margin: 0; }
  .home-example-feedback { margin: 0 2px; }
  .home-example-feedback-prompt { margin: 0 0 6px; color: #746C66; font-size: 10px; font-weight: 700; text-align: center; }
  .home-example-feedback-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .home-example-feedback-btn {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #E4DDD7;
    border-radius: 10px;
    background: #fff;
    color: #514A45;
    font-size: 10px;
    font-weight: 750;
  }
  .home-example-feedback-btn .material-symbols-outlined { font-size: 15px; }
  .home-example-feedback-btn.is-positive { border-color: #BFDCCB; color: #27704D; background: #F5FBF7; }
  .home-example-feedback-btn.is-negative { border-color: #E7D2C5; color: #8B4C2B; background: #FFF9F5; }
  .home-example-feedback-reasons { margin-top: 2px; padding: 8px 4px 3px; border: 0; background: transparent; }
  .home-example-feedback-reasons[hidden] { display: none; }
  .home-feedback-question { margin: 0 0 8px; color: #4F4742; font-size: 13px; font-weight: 760; }
  .home-feedback-choice-list { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
  .home-example-feedback-reasons button {
    width: auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid #E7E1DC;
    border-radius: 999px;
    background: #fff;
    color: #554D48;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
  }
  .home-example-feedback-reasons button:active { border-color: #E8C9B4; color: #B9531F; background: #FFF7F1; }
  .home-example-feedback-ack { min-height: 0; margin: 0; color: #2D7B55; font-size: 12px; font-weight: 700; line-height: 1.45; text-align: left; }
  .home-example-feedback.is-submitted .home-example-feedback-actions,
  .home-example-feedback.is-submitted .home-example-feedback-reasons,
  .home-example-feedback.is-submitted .home-example-feedback-prompt { display: none; }
  .home-example-feedback.is-submitted .home-example-feedback-ack { margin-top: 5px; padding-left: 4px; }
  .home-example-primary-actions { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 4px; padding: 4px 0; border: 0; }
  .home-example-primary-actions button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 0;
    font-weight: 780;
  }
  .home-example-primary-actions .material-symbols-outlined { font-size: 22px; }
  .home-action-like,.home-action-dislike,.home-example-save { border: 0; background: transparent; color: #5E554F; }
  .home-action-like { color: #5E554F; }
  .home-action-dislike { color: #795B4B; }
  .home-example-save.is-saved { border: 0; background: transparent; color: #C65D24; }
  .home-example-primary-actions .home-example-reserve {
    width: auto;
    min-width: 66px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 5px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: var(--warm-primary);
    font-size: 13px;
    font-weight: 760;
    line-height: 1;
  }
  .home-example-primary-actions .home-example-reserve .material-symbols-outlined {
    font-size: 19px;
    font-variation-settings: 'FILL' 0, 'wght' 430, 'GRAD' 0, 'opsz' 24;
  }
  .home-example-primary-actions button:active { background: #F7F3EF; }
  .home-example-cta { min-height: 42px; margin-top: 12px; border-radius: 12px; font-size: 12px; }
  .home-control-panel {
    gap: 6px;
    padding: 0 2px 2px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .home-control-panel.is-awaiting { display: none; }
  .home-control-panel.is-awaiting .home-control-copy,
  .home-control-panel.is-awaiting .home-context-chips { display: none; }
  .home-control-panel.is-awaiting .home-control-mic { display: none; }
  .home-control-panel.is-ready { display: flex; }
  .home-control-panel.is-ready .home-control-copy,
  .home-control-panel.is-ready .home-context-chips,
  .home-control-panel.is-ready .home-control-mic { animation: homeControlsReveal .28s ease both; }
  @keyframes homeControlsReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .home-control-intro { display: flex; align-items: center; gap: 9px; min-height: 40px; }
  .home-control-copy { min-width: 0; flex: 1; }
  .home-control-heading { min-width: 0; display: flex; align-items: baseline; gap: 6px; margin: 0; line-height: 1.25; }
  .home-control-intro .home-prompt-label { min-width: 0; margin: 0; color: #332D29; font-size: 13px; font-weight: 760; line-height: 1.25; }
  .home-control-hint { margin: 3px 0 0; color: #7E756E; font-size: 11px; font-weight: 560; line-height: 1.35; }
  .home-control-mic {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #645C56;
  }
  .home-control-mic .material-symbols-outlined { font-size: 24px; font-variation-settings: 'FILL' 0, 'wght' 350; }
  .home-control-mic:active { color: #F36B12; background: rgba(243,107,18,.07); }
  .home-control-mic.is-listening { color: #F36B12; background: rgba(243,107,18,.08); }
  .home-control-mic.is-listening .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 450; }
  .home-context-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 6px; width: 100%; padding: 0; overflow: visible; }
  .home-control-panel.is-listening .home-context-chips { display: none; }
  .home-inline-voice { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 10px; min-height: 48px; padding: 5px 0 2px; }
  .home-inline-voice[hidden] { display: none; }
  .home-inline-voice-status { display: inline-flex; align-items: center; gap: 6px; color: #F36B12; font-size: 10px; font-weight: 760; }
  .home-inline-voice-dot { width: 7px; height: 7px; border-radius: 50%; background: #F36B12; animation: homeVoicePulse 1.05s ease-in-out infinite; }
  .home-inline-transcript { grid-column: 1; min-height: 20px; margin: 0; color: #332D29; font-size: 13px; font-weight: 580; line-height: 1.45; word-break: break-word; }
  .home-inline-voice-cancel { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 6px 2px; border: 0; background: transparent; color: #8A817A; font-size: 10px; font-weight: 680; }
  .home-inline-voice-cancel:active { color: #B9531F; }
  @keyframes homeVoicePulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
  .home-context-chip {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #3E3834;
    font-size: 11px;
    font-weight: 720;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
    box-shadow: 0 1px 3px rgba(83,54,35,.055);
  }
  .home-context-chip > span:first-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .home-context-chip:active { background: #FFF0E4; color: #B9531F; }
  .chat-text-form { flex: 1; min-width: 0; margin: 0; }
  .chat-text-form .chat-text-field { width: 100%; font-size: 16px; }
  #home-recording-panel { border-radius: 16px; margin-top: 0; box-shadow: none; }

  /* Account sub-pages — full viewport + scroll */
  .acct-sub-page {
    position: fixed;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    width: 100%;
    max-width: 100%;
  }

  /* Narrow screens */
  @media (max-width: 380px) {
    .app-confirm-dialog { padding: 20px 16px 16px; }
    .app-confirm-actions .app-confirm-btn { font-size: 13px; padding: 12px 8px; }
    #page-home h2.font-headline { font-size: 1.625rem; }
    .page main:not(.result-page-main), .page > main:not(.result-page-main) { padding-left: 1rem; padding-right: 1rem; }
  }

  /* Desktop preview — phone-width shell (tablet+ only; keep phones full-width in landscape) */
  @media (min-width: 768px) {
    body {
      max-width: 430px;
      margin-left: auto;
      margin-right: auto;
      box-shadow: 0 0 0 1px rgba(232, 240, 235, 0.9);
    }
    .bottom-sheet-backdrop.active,
    .app-confirm-backdrop.active,
    #voice-overlay,
    #voice-modal {
      left: 0;
      right: 0;
      width: 100%;
      max-width: 430px;
      margin-left: auto;
      margin-right: auto;
    }
    .bottom-sheet {
      left: 0;
      right: 0;
      width: 100%;
      max-width: 430px;
      margin-left: auto;
      margin-right: auto;
      transform: translateY(100%);
    }
    .bottom-sheet.active {
      transform: translateY(0);
    }
  }

  .dietary-chip { border: 1px solid #C2DDD1; color: #5C6B63; background: #fff; transition: all 0.15s; }
  .dietary-chip.chip-selected { border: 2px solid #F0803C; color: #F0803C; background: rgba(240,128,60,0.08); }
  /* Account language picker */
  #acct-language .lang-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    padding: 0 24px;
    border: none;
    border-bottom: 1px solid #F0F5F2;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }
  #acct-language .lang-row:last-child { border-bottom: none; }
  #acct-language .lang-row:active { background: #F0F8F4; }
  #acct-language .lang-row.is-selected { background: #F0F8F4; }
  #acct-language .lang-row .lang-label {
    font-size: 17px;
    font-weight: 500;
    color: #16211D;
    line-height: 1.25;
  }
  #acct-language .lang-row .lang-check {
    font-size: 20px;
    color: #F0803C;
    opacity: 0;
    flex-shrink: 0;
  }
  #acct-language .lang-row.is-selected .lang-check { opacity: 1; }
  /* Preference list — circle / check indicator */
  .pref-select-indicator {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .pref-select-circle {
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #C2DDD1;
    border-radius: 50%;
    box-sizing: border-box;
  }
  .pref-select-check {
    display: none;
    position: absolute;
    inset: 0;
    font-size: 22px;
    line-height: 22px;
    color: #F0803C;
  }
  .pref-select-indicator.is-checked .pref-select-circle { display: none; }
  .pref-select-indicator.is-checked .pref-select-check { display: block; }
  #acct-allergies.acct-allergies-page {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #acct-allergies .acct-allergies-nav {
    flex-shrink: 0;
    z-index: 10;
  }
  #acct-allergies .acct-allergies-page-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #16211D;
    letter-spacing: -0.02em;
  }
  #acct-allergies .acct-allergies-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 20px;
  }
  #acct-allergies .acct-allergies-footer {
    flex-shrink: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #F7FAF8;
    border-top: 1px solid #E8F0EB;
    box-shadow: 0 -4px 16px rgba(22, 33, 29, 0.06);
  }
  #acct-allergies .acct-allergies-footer .acct-allergies-save {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    background: #F0803C;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #acct-allergies .acct-allergies-footer .acct-allergies-save:active { transform: scale(0.98); }
  #acct-allergies .allergy-intro {
    margin-bottom: 20px;
  }
  #acct-allergies .allergy-intro p {
    font-size: 15px;
    line-height: 1.5;
    color: #5C6B63;
  }
  #acct-allergies .allergy-intro p + p { margin-top: 8px; }
  #acct-allergies .allergy-section {
    margin-bottom: 20px;
  }
  #acct-allergies .allergy-section:last-child {
    margin-bottom: 8px;
  }
  #acct-allergies .allergy-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #5C6B63;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 8px 4px;
  }
  #acct-allergies .allergy-section-card {
    background: #fff;
    border: 1px solid #E8F0EB;
    border-radius: 16px;
    overflow: hidden;
  }
  #acct-allergies .allergy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    padding: 0 20px;
    border: none;
    border-bottom: 1px solid #F0F5F2;
    background: transparent;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }
  #acct-allergies .allergy-row:last-child { border-bottom: none; }
  #acct-allergies .allergy-row:active { background: #F0F8F4; }
  #acct-allergies .allergy-row[data-active="true"] { background: #F0F8F4; }
  #acct-allergies .allergy-label {
    font-size: 17px;
    font-weight: 500;
    color: #16211D;
    line-height: 1.25;
  }
  /* Dietary needs page */
  #acct-dietary.acct-dietary-page {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #acct-dietary .acct-dietary-nav { flex-shrink: 0; z-index: 10; }
  #acct-dietary .acct-dietary-page-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #16211D;
    letter-spacing: -0.02em;
  }
  #acct-dietary .acct-dietary-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 20px;
  }
  #acct-dietary .acct-dietary-footer {
    flex-shrink: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #F7FAF8;
    border-top: 1px solid #E8F0EB;
    box-shadow: 0 -4px 16px rgba(22, 33, 29, 0.06);
  }
  #acct-dietary .acct-dietary-save {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    background: #F0803C;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  #acct-dietary .acct-dietary-save:active { transform: scale(0.98); }
  #acct-dietary .dietary-intro {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #5C6B63;
  }
  #acct-dietary .dietary-section { margin-bottom: 20px; }
  #acct-dietary .dietary-section:last-child { margin-bottom: 8px; }
  #acct-dietary .dietary-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #5C6B63;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 0 0 8px 4px;
  }
  #acct-dietary .dietary-section-card {
    background: #fff;
    border: 1px solid #E8F0EB;
    border-radius: 16px;
    overflow: hidden;
  }
  #acct-dietary .dietary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    padding: 0 20px;
    border: none;
    border-bottom: 1px solid #F0F5F2;
    background: transparent;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }
  #acct-dietary .dietary-row--with-sub {
    min-height: 72px;
    padding: 12px 20px;
  }
  #acct-dietary .dietary-section-card .dietary-row:last-child { border-bottom: none; }
  #acct-dietary .dietary-row:active { background: #F0F8F4; }
  #acct-dietary .dietary-row[data-active="true"] { background: #F0F8F4; }
  #acct-dietary .dietary-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    padding-right: 12px;
  }
  #acct-dietary .dietary-label {
    font-size: 17px;
    font-weight: 500;
    color: #16211D;
    line-height: 1.25;
  }
  #acct-dietary .dietary-sublabel {
    font-size: 13px;
    font-weight: 400;
    color: #5C6B63;
    line-height: 1.35;
  }
  #acct-main .acct-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #5C6B63;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 20px 0 8px 4px;
  }
  #acct-main .acct-section-label:first-child { margin-top: 0; }
  #acct-main .acct-credits-row-amount {
    font-size: 14px;
    font-weight: 500;
    color: #16211D;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
  }
  #acct-main .acct-credits-card {
    display: block;
    width: 100%;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(227, 190, 183, 0.35);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
  }
  #acct-main .acct-credits-card:active {
    transform: scale(0.98);
  }
  #acct-main .acct-credits-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }
  #acct-main .acct-credits-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1c1b1b;
    line-height: 1.3;
  }
  #acct-main .acct-credits-card-icon {
    color: #b3290b;
    font-size: 24px;
    flex-shrink: 0;
  }
  #acct-main .acct-credits-card-amount {
    margin: 0 0 4px;
    font-size: 32px;
    font-weight: 800;
    color: #b3290b;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  #acct-main .acct-credits-card-value-label {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #5a413b;
    line-height: 1.35;
  }
  #acct-main .acct-credits-card-meta {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #5a413b;
    line-height: 1.35;
  }
  #acct-main .acct-credits-card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e3beb7;
  }
  #acct-main .acct-credits-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: #b3290b;
    line-height: 1.35;
  }
  #acct-payment-history.acct-activity-page {
    background: #f5f5f5;
  }
  .acct-activity-page .acct-activity-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f5f5f5;
    padding: calc(env(safe-area-inset-top, 0px) + 8px) 20px 12px;
  }
  .acct-activity-page .acct-activity-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0 4px -8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #1c1b1b;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .acct-activity-page .acct-activity-back:active {
    background: rgba(0, 0, 0, 0.05);
  }
  .acct-activity-page .acct-activity-title {
    margin: 0 0 6px;
    font-family: var(--app-font-headline);
    font-size: clamp(28px, 7vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #1c1b1b;
    text-transform: none;
  }
  .acct-activity-page .acct-activity-subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: #666666;
  }
  #acct-main .acct-pay-history-group,
  .acct-tx-page .acct-pay-history-group {
    margin-bottom: 24px;
  }
  .acct-activity-page .acct-pay-history-group.has-divider {
    padding-top: 0;
    border-top: none;
  }
  #acct-payment-history {
    background: #f5f5f5;
  }
  .acct-tx-page .acct-tx-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fcf9f8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  .acct-tx-page .acct-tx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
  }
  .acct-tx-page .acct-tx-header-title,
  .acct-tx-detail-page .acct-tx-header-title {
    margin: 0;
    font-family: var(--app-font-headline);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    color: #D85A30;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .acct-tx-page .acct-tx-header-btn,
  .acct-tx-detail-page .acct-tx-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #D85A30;
    border-radius: 999px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .acct-tx-page .acct-tx-header-btn:active,
  .acct-tx-detail-page .acct-tx-header-btn:active {
    transform: scale(0.95);
  }
  .acct-tx-page .acct-tx-header-spacer,
  .acct-tx-detail-page .acct-tx-header-spacer {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  #acct-payment-history-body,
  #acct-consumption-history-body {
    padding: 8px 20px 32px;
  }
  #acct-consumption-history,
  #acct-consumption-detail {
    background: #fcf9f8;
  }
  #acct-consumption-detail-body {
    padding: 24px 20px 32px;
  }
  .acct-tx-page .acct-tx-icon.is-consumption {
    background: rgba(240, 128, 60, 0.12);
    color: #E8561A;
  }
  .acct-activity-page .acct-pay-history-date {
    margin: 0 0 12px;
    padding: 0 2px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666666;
  }
  .acct-tx-page .acct-pay-history-date {
    margin: 0 0 10px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8e7069;
  }
  .acct-activity-page .acct-tx-list {
    gap: 12px;
  }
  .acct-activity-page .acct-tx-card {
    align-items: center;
    min-height: 76px;
    padding: 14px 16px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .acct-activity-page .acct-tx-card-main {
    align-items: center;
  }
  .acct-activity-page .acct-tx-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .acct-activity-page .acct-tx-icon .material-symbols-outlined {
    font-size: 22px;
  }
  .acct-activity-page .acct-tx-icon.is-credits-added {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
  }
  .acct-activity-page .acct-tx-icon.is-refund-completed {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
  }
  .acct-activity-page .acct-tx-icon.is-refund-pending {
    background: rgba(251, 146, 60, 0.12);
    color: #ea580c;
  }
  .acct-activity-page .acct-tx-icon.is-refund-failed {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
  }
  .acct-activity-page .acct-tx-title {
    font-size: 16px;
    font-weight: 700;
    color: #1c1b1b;
  }
  .acct-activity-page .acct-tx-title-date {
    font-size: 14px;
    font-weight: 600;
    color: #8a8580;
  }
  .acct-activity-page .acct-tx-detail {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
  }
  .acct-activity-page .acct-tx-card-tail {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .acct-activity-page .acct-tx-card-tail.has-badge {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    width: auto;
  }
  .acct-activity-page .acct-tx-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #1c1b1b;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .acct-activity-page .acct-tx-value.is-positive {
    color: #16a34a;
  }
  .acct-activity-page .acct-tx-chevron {
    font-size: 20px;
    color: #b0b0b0;
  }
  .acct-tx-page .acct-tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .acct-tx-page .acct-tx-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 88px;
    padding: 16px;
    border: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    box-sizing: border-box;
  }
  .acct-tx-page .acct-tx-card.is-static {
    cursor: default;
  }
  .acct-tx-page .acct-tx-card.is-static:active {
    transform: none;
  }
  .acct-tx-page .acct-tx-card:active {
    transform: scale(0.98);
  }
  .acct-tx-page .acct-tx-card-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
  }
  .acct-tx-page .acct-tx-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .acct-tx-page .acct-tx-icon .material-symbols-outlined {
    font-size: 24px;
  }
  .acct-tx-page .acct-tx-icon.is-refund-completed {
    background: rgba(0, 164, 178, 0.1);
    color: #006972;
  }
  .acct-tx-page .acct-tx-icon.is-purchase {
    background: rgba(90, 65, 59, 0.05);
    color: #1c1b1b;
  }
  .acct-tx-page .acct-tx-icon.is-refund-pending {
    background: rgba(252, 140, 115, 0.1);
    color: #9d422f;
  }
  .acct-tx-page .acct-tx-icon.is-refund-failed {
    background: rgba(255, 218, 214, 0.5);
    color: #ba1a1a;
  }
  .acct-tx-page .acct-tx-copy {
    min-width: 0;
  }
  .acct-tx-page .acct-tx-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1c1b1b;
  }
  .acct-tx-page .acct-tx-amount {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #1c1b1b;
  }
  .acct-tx-page .acct-tx-detail {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #5a413b;
  }
  .acct-tx-page .acct-tx-detail.is-italic {
    margin-top: 2px;
    font-style: italic;
    font-weight: 500;
    color: #9d422f;
  }
  .acct-tx-page .acct-tx-card-tail.is-dual-amount {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .acct-tx-page .acct-tx-dual-amounts {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .acct-tx-page .acct-tx-value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #1c1b1b;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .acct-tx-page .acct-tx-value.is-paid {
    font-size: 13px;
    font-weight: 600;
    color: #5a413b;
  }
  .acct-tx-page .acct-tx-card-tail {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
  }
  .acct-tx-page .acct-tx-card-tail.has-badge {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    width: 76px;
  }
  .acct-tx-page .acct-tx-card-tail.is-chevron-only {
    width: 24px;
  }
  .acct-tx-page .acct-tx-badge-slot {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }
  .acct-tx-page .acct-tx-chevron {
    font-size: 20px;
    color: #5a413b;
    line-height: 1;
  }
  .acct-tx-page .acct-tx-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .acct-tx-page .acct-tx-badge.is-completed {
    background: rgba(0, 164, 178, 0.14);
    color: #006972;
  }
  .acct-tx-page .acct-tx-badge.is-pending {
    background: rgba(252, 140, 115, 0.14);
    color: #9d422f;
  }
  .acct-tx-page .acct-tx-badge.is-failed {
    background: rgba(255, 218, 214, 0.55);
    color: #93000a;
  }
  .acct-tx-page .acct-tx-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0 16px;
    opacity: 0.4;
    text-align: center;
  }
  .acct-tx-page .acct-tx-end .material-symbols-outlined {
    font-size: 32px;
    color: #5a413b;
    margin-bottom: 8px;
  }
  .acct-tx-page .acct-tx-end p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #5a413b;
  }
  .acct-tx-page .acct-pay-history-empty {
    margin: 0;
    font-size: 14px;
    color: #5a413b;
    text-align: center;
    padding: 48px 0;
  }
  .acct-tx-page .acct-pay-history-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 24px 40px;
    gap: 6px;
  }
  .acct-tx-page .acct-pay-history-empty-icon {
    font-size: 44px;
    color: #B0BDBA;
    margin-bottom: 8px;
    font-variation-settings: 'FILL' 0, 'wght' 300;
  }
  .acct-tx-page .acct-pay-history-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #16211D;
    line-height: 1.3;
  }
  .acct-tx-page .acct-pay-history-empty-desc {
    font-size: 14px;
    color: #5C6B63;
    line-height: 1.5;
    max-width: 260px;
    margin: 4px auto 0;
  }
  .acct-tx-detail-page .acct-tx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
  }
  .acct-tx-detail-page .acct-tx-detail-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }
  .acct-tx-detail-page .acct-tx-header-btn {
    color: #D85A30;
  }
  #acct-transaction-detail {
    background: #fcf9f8;
  }
  #acct-transaction-detail-body {
    padding: 20px 16px 48px;
    max-width: 42rem;
    margin: 0 auto;
  }
  .acct-tx-detail-page .acct-tx-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 28px;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-icon-wrap.is-completed {
    background: #dcfce7;
    color: #15803d;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-icon-wrap.is-pending {
    background: rgba(240, 128, 60, 0.16);
    color: #D96E2A;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-icon-wrap.is-failed {
    background: #fee2e2;
    color: #dc2626;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-icon-wrap.is-purchase {
    background: rgba(240, 128, 60, 0.1);
    color: #1c1b1b;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-icon-wrap .material-symbols-outlined {
    font-size: 28px;
  }
  .acct-tx-detail-page .acct-tx-detail-check-svg {
    width: 32px;
    height: 32px;
  }
  .acct-tx-detail-page .acct-tx-detail-check-stroke {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: acctTxCheckDraw 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  @keyframes acctTxCheckDraw {
    to { stroke-dashoffset: 0; }
  }
  .acct-tx-detail-page .acct-tx-detail-hero-amount {
    margin: 0 0 4px;
    font-family: var(--app-font-headline);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-sub {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #5a413b;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-sub.is-purchase-sub {
    color: #5a413b;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-sub.is-refund-return {
    color: #5a413b;
    font-weight: 500;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-sub.is-refund-failed-msg {
    color: #5a413b;
    font-weight: 400;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-date {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #5a413b;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-dates {
    margin-top: 24px;
    width: 100%;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-date-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-date-label {
    font-size: 14px;
    line-height: 20px;
    color: #5a413b;
  }
  .acct-tx-detail-page .acct-tx-detail-hero-date-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #1c1b1b;
  }
  .acct-tx-detail-page .acct-tx-detail-section {
    margin-bottom: 0;
  }
  .acct-tx-detail-page .acct-tx-detail-section-label {
    margin: 0 0 10px;
    padding: 0 4px;
    font-family: var(--app-font-headline);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #0F172A;
  }
  .acct-tx-detail-page .acct-tx-detail-glass-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  }
  .acct-tx-detail-page .acct-tx-detail-glass-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .acct-tx-detail-page .acct-tx-detail-glass-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0edec;
  }
  .acct-tx-detail-page .acct-tx-detail-glass-row.is-last {
    padding-bottom: 0;
    border-bottom: none;
  }
  .acct-tx-detail-page .acct-tx-detail-row-label {
    font-size: 15px;
    line-height: 1.4;
    color: #64748B;
    flex-shrink: 0;
  }
  .acct-tx-detail-page .acct-tx-detail-row-value {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #0F172A;
    text-align: right;
  }
  .acct-tx-detail-page .acct-tx-detail-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
  }
  .acct-tx-detail-page .acct-tx-detail-status-pill.is-completed {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
  }
  .acct-tx-detail-page .acct-tx-detail-status-pill.is-pending {
    background: rgba(240, 128, 60, 0.14);
    color: #D96E2A;
  }
  .acct-tx-detail-page .acct-tx-detail-status-pill.is-failed {
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
  }
  .acct-tx-detail-page .acct-tx-detail-payment {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1c1b1b;
    margin-left: auto;
  }
  .acct-tx-detail-page .acct-tx-detail-payment .material-symbols-outlined {
    font-size: 18px;
    color: #5a413b;
  }
  .acct-tx-detail-page .acct-tx-detail-link-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: transparent;
    padding: 0;
    margin-left: auto;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .acct-tx-detail-page .acct-tx-detail-link-row .material-symbols-outlined {
    font-size: 18px;
    color: #9a8f8b;
  }
  .acct-tx-detail-page .acct-tx-detail-link-row:active {
    opacity: 0.7;
  }
  .acct-tx-detail-page .acct-tx-detail-ref-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #1c1b1b;
    cursor: pointer;
    margin-left: auto;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
  }
  .acct-tx-detail-page .acct-tx-detail-ref-copy .material-symbols-outlined {
    font-size: 18px;
    color: #8e7069;
    opacity: 0.7;
  }
  .acct-tx-detail-page .acct-tx-detail-ref-copy:active {
    opacity: 0.7;
  }
  .acct-tx-detail-page .acct-tx-detail-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    background: #1c1b1b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    z-index: 220;
    pointer-events: none;
    animation: acctTxToastIn 0.2s ease;
  }
  @keyframes acctTxToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
  #acct-privacy .acct-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #5C6B63;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 20px 0 8px 4px;
  }
  #acct-privacy .acct-section-label:first-child { margin-top: 0; }
  #acct-privacy .privacy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }
  #acct-privacy .privacy-row:active { background: #F0F8F4; }
  #acct-privacy .privacy-delete-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }
  #acct-privacy .privacy-delete-row:active { background: #FEF2F2; }
  /* Account sub-page toggles */
  .notif-track { transition: background 0.2s; }
  .notif-thumb { transition: transform 0.2s; }
  /* Onboarding — fluid viewport, scroll only when needed */
  #page-onboarding.page.active {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    min-height: 100svh;
    background: #FEF5EA;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  #page-onboarding .onboarding-skip-bar {
    flex-shrink: 0;
    padding: max(10px, env(safe-area-inset-top, 0px)) 16px 0;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    box-sizing: border-box;
  }
  #page-onboarding .onboarding-container {
    flex: 1 1 auto;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
  }
  #page-onboarding .onboarding-slide {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 1.2dvh, 16px) 0 clamp(8px, 2dvh, 20px);
    text-align: center;
    box-sizing: border-box;
  }
  #page-onboarding .ob-logo {
    width: clamp(68px, 12dvh, 96px);
    height: clamp(68px, 12dvh, 96px);
    margin-bottom: clamp(8px, 1.8dvh, 16px);
  }
  #page-onboarding .ob-title {
    font-size: clamp(20px, 4.2dvh, 32px);
    line-height: 1.2;
    margin-bottom: clamp(6px, 1.2dvh, 10px);
    letter-spacing: -0.02em;
    max-width: 20rem;
  }
  #page-onboarding .ob-tagline {
    font-size: clamp(14px, 2.6dvh, 18px);
    line-height: 1.35;
    margin-bottom: clamp(6px, 1.2dvh, 10px);
    max-width: 18rem;
  }
  #page-onboarding .ob-subtitle {
    font-size: clamp(12px, 2.2dvh, 15px);
    line-height: 1.45;
    margin-bottom: clamp(10px, 2dvh, 16px);
    max-width: 20rem;
  }
  #page-onboarding .ob-preview-card {
    width: 100%;
    max-width: 22rem;
    border-radius: clamp(16px, 3dvh, 22px);
    border: 1px solid #F0E6DC;
    background: #fff;
    box-shadow: 0 2px 12px rgba(44, 24, 16, 0.05);
    padding: clamp(10px, 2dvh, 14px) clamp(12px, 2.4dvh, 16px);
    text-align: left;
    box-sizing: border-box;
  }
  #page-onboarding .ob-preview-hint {
    font-size: clamp(10px, 1.8dvh, 11px);
    font-weight: 600;
    color: #5B7B6B;
    margin-bottom: 6px;
  }
  #page-onboarding .ob-preview-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
  }
  #page-onboarding .ob-preview-tags span {
    font-size: clamp(9px, 1.6dvh, 10px);
    padding: 3px 8px;
  }
  #page-onboarding .ob-preview-hero {
    width: 100%;
    height: clamp(80px, 15dvh, 112px);
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 14px;
  }
  #page-onboarding .ob-preview-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  #page-onboarding .ob-preview-name {
    font-size: clamp(15px, 2.8dvh, 18px);
    line-height: 1.25;
    margin-bottom: 2px;
  }
  #page-onboarding .ob-preview-meta {
    font-size: clamp(11px, 2dvh, 13px);
    margin-bottom: 8px;
  }
  #page-onboarding .ob-preview-dishes {
    display: flex;
    gap: 8px;
  }
  #page-onboarding .ob-preview-dishes img {
    width: clamp(36px, 7dvh, 44px);
    height: clamp(36px, 7dvh, 44px);
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }
  #page-onboarding .onboarding-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.6dvh, 12px);
    padding: clamp(8px, 1.6dvh, 12px) 20px max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(254, 245, 234, 0.72) 0%, #FEF5EA 36%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  #page-onboarding .onboarding-footer .ob-cta {
    width: 100%;
    max-width: 18rem;
    min-height: clamp(44px, 8dvh, 52px);
    padding: clamp(10px, 2dvh, 14px) 20px;
    font-size: clamp(15px, 2.6dvh, 17px);
  }
  @media (min-width: 640px) {
    #page-onboarding .onboarding-container { padding-left: 24px; padding-right: 24px; }
    #page-onboarding .ob-title { font-size: clamp(26px, 4dvh, 32px); }
  }
  .onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: #C2DDD1; transition: all 0.3s ease; }
  .onboarding-dot.active { width: 24px; border-radius: 4px; background: #F0803C; }
  /* Voice overlay — warm chat */
  #voice-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #FEF5EA;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    box-sizing: border-box;
  }
  #voice-overlay.active { opacity: 1; pointer-events: all; }
  #voice-overlay > div {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
  }
  #chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .voice-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(240,128,60,0.22); animation: voiceRing 2s ease-out infinite; }
  .voice-ring:nth-child(2) { animation-delay: 0.5s; }
  .voice-ring:nth-child(3) { animation-delay: 1s; }
  @keyframes voiceRing { 0% { width: 56px; height: 56px; opacity: 0.8; } 100% { width: 140px; height: 140px; opacity: 0; } }
  .wave-bar { width: 3px; border-radius: 3px; background: #F0803C; animation: waveAnim 0.8s ease-in-out infinite alternate; transform-origin: bottom; }
  .wave-bar:nth-child(1) { animation-delay: 0s; height: 8px; }
  .wave-bar:nth-child(2) { animation-delay: 0.1s; height: 14px; }
  .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 20px; }
  .wave-bar:nth-child(4) { animation-delay: 0.3s; height: 12px; }
  .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 18px; }
  .wave-bar:nth-child(6) { animation-delay: 0.1s; height: 10px; }
  @keyframes waveAnim { from { transform: scaleY(0.3); opacity: 0.5; } to { transform: scaleY(1); opacity: 1; } }
  .wave-bars-idle .wave-bar { animation-play-state: paused; transform: scaleY(0.3); opacity: 0.3; }
  /* Chat bubbles */
  .chat-bubble { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.55; animation: fadeSlideUp 0.25s ease; word-break: break-word; }
  .chat-bubble.user { align-self: flex-end; background: #F0803C; color: #fff; border-bottom-right-radius: 4px; }
  .chat-bubble.ai { align-self: flex-start; background: #fff; color: #2C1810; border: 1px solid #E8D5C4; border-bottom-left-radius: 4px; }
  .chat-bubble.typing { align-self: flex-end; background: #FFF0E3; color: #D96E2A; border-bottom-right-radius: 4px; font-style: italic; }
  .chat-bubble .param-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .chat-bubble .param-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; background: #FFF0E3; color: #D96E2A; border: 1px solid rgba(232,213,196,0.8); }
  .chat-home-video-context { width: min(88%, 340px); align-self: flex-start; animation: fadeSlideUp .25s ease; }
  .chat-home-video-eyebrow { margin: 0 0 6px 2px; color: #8B6D5A; font-size: 11px; font-weight: 700; }
  .chat-home-video-card { width: 100%; min-width: 0; display: grid; grid-template-columns: 74px minmax(0,1fr); align-items: center; gap: 10px; padding: 7px; border: 1px solid #E8D5C4; border-radius: 15px; background: #fff; color: #2C1810; text-align: left; box-shadow: 0 4px 14px rgba(73,48,34,.06); }
  .chat-home-video-media { position: relative; width: 74px; height: 82px; overflow: hidden; border-radius: 10px; background: #EAE4DE; }
  .chat-home-video-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .chat-home-video-play { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: transparent; color: rgba(255,255,255,.82); font-size: 18px; font-variation-settings: 'FILL' 1; text-shadow: 0 1px 4px rgba(0,0,0,.42); box-shadow: none; }
  .chat-home-video-copy { min-width: 0; }
  .chat-home-video-copy strong,.chat-home-video-copy small { display: block; overflow: hidden; text-overflow: ellipsis; }
  .chat-home-video-copy strong { color: #2E2824; font-size: 14px; font-weight: 800; white-space: nowrap; }
  .chat-home-video-copy small { margin-top: 6px; color: #7C716A; font-size: 11px; line-height: 1.45; white-space: normal; }
  #chat-messages { gap: 14px; }
  .chat-flow-block { margin-top: 6px; }
  .chat-search-card + .chat-recommendation-batch,
  .chat-flow-block + .chat-flow-block { margin-top: 10px; }
  .chat-confirm-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 20px; border-radius: 9999px; background: #F0803C; color: #fff; font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s; }
  .chat-confirm-btn:active { transform: scale(0.97); }
  .chat-redo-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 16px; border-radius: 9999px; background: transparent; color: #7A6558; font-size: 13px; font-weight: 500; border: 1.5px solid #E8D5C4; cursor: pointer; transition: all 0.15s; }

  /* Conversation-first recommendation flow */
  .chat-shell-header {
    min-height: 58px;
    padding: max(8px, env(safe-area-inset-top, 0px)) 16px 8px;
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid #EEE8E1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .chat-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 112px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #F6F3EF;
    color: #625B55;
    font-size: 11px;
    font-weight: 650;
  }
  .chat-location-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #chat-messages {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 16px 32px;
    gap: 14px;
    background: #FAF8F5 !important;
  }
  .chat-bubble { max-width: min(82%, 520px); font-size: 15px; line-height: 1.48; }
  .chat-bubble.ai { border-color: #E7E1DA; box-shadow: 0 1px 2px rgba(31,24,18,0.03); }
  .chat-bubble.user { background: #E97936; }
  .chat-flow-block {
    align-self: stretch;
    width: 100%;
    animation: fadeSlideUp 0.28s ease;
  }
  .chat-intent-card,
  .chat-search-card,
  .chat-recommendation-batch {
    width: 100%;
    background: #fff;
    border: 1px solid #E7E1DA;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(38,31,25,0.05);
  }
  .chat-intent-card { padding: 18px; }
  .chat-intent-eyebrow,
  .chat-batch-eyebrow {
    color: #B85B25;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  .chat-intent-title { margin-top: 5px; color: #211D19; font-size: 17px; font-weight: 750; line-height: 1.35; }
  .chat-intent-copy { margin-top: 5px; color: #6C645D; font-size: 13px; line-height: 1.5; }
  .chat-intent-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  .chat-intent-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #DED7CF;
    border-radius: 999px;
    background: #FAF8F5;
    color: #403A35;
    font-size: 12px;
    font-weight: 650;
    text-align: left;
  }
  .chat-intent-chip:active { background: #F2EEE9; }
  .chat-intent-warning {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 11px;
    border-radius: 12px;
    background: #FFF6E8;
    color: #7C4B14;
    font-size: 12px;
    line-height: 1.45;
  }
  .chat-intent-actions { display: flex; gap: 9px; margin-top: 16px; }
  .chat-intent-primary,
  .chat-intent-secondary {
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
  }
  .chat-intent-primary { flex: 1; background: #E97936; color: #fff; }
  .chat-intent-secondary { padding: 0 15px; background: #F6F3EF; color: #4D4640; }
  .chat-search-card { padding: 16px; }
  .chat-search-row { display: flex; align-items: center; gap: 12px; }
  .chat-search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #F1D5C2;
    border-top-color: #E97936;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
  }
  .chat-search-card.is-complete .chat-search-spinner { animation: none; border: none; }
  .chat-search-card.is-complete .chat-search-spinner::before { content: '✓'; color: #2D8A5E; font-size: 18px; font-weight: 800; }
  .chat-search-title { color: #27221E; font-size: 14px; font-weight: 750; }
  .chat-search-step { margin-top: 2px; color: #777069; font-size: 12px; }
  .chat-recommendation-batch { overflow: hidden; }
  .chat-batch-header { padding: 17px 17px 13px; }
  .chat-batch-subtitle { margin-top: 5px; color: #6C645D; font-size: 12px; line-height: 1.5; }
  .chat-batch-body { display: grid; gap: 12px; padding: 0 12px 12px; }
  .chat-recommendation-batch.is-superseded .chat-batch-body { display: none; }
  .chat-recommendation-batch.is-superseded { box-shadow: none; background: #F8F6F3; }
  .chat-recommendation-batch.is-superseded .chat-batch-header { padding-bottom: 17px; }
  .chat-batch-history-btn { display: none; margin-top: 10px; color: #9A522A; font-size: 12px; font-weight: 700; }
  .chat-recommendation-batch.is-superseded .chat-batch-history-btn { display: inline-flex; }
  .chat-recommendation-batch.is-expanded .chat-batch-body { display: grid; }
  .chat-result-card {
    position: relative;
    padding: 15px;
    border: 1px solid #E8E2DB;
    border-radius: 15px;
    background: #fff;
  }
  .chat-result-name { margin-top: 4px; padding-right: 76px; color: #1F1B18; font-size: 17px; font-weight: 780; line-height: 1.25; }
  .chat-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; color: #716A63; font-size: 12px; }
  .chat-result-meta .material-symbols-outlined { color: #E97936; font-size: 14px; }
  .chat-credit-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #F7F2ED;
    color: #8B5A3C;
    font-size: 11px;
    font-weight: 680;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }
  .chat-credit-tag.is-20 {
    background: #FFF1E7;
    color: #A9582C;
  }
  .chat-result-reason { margin-top: 10px; color: #504A44; font-size: 13px; line-height: 1.5; }
  .chat-dish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
  .chat-dish-card { min-width: 0; }
  .chat-dish-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #EEEAE5; }
  .chat-dish-name { margin-top: 2px; min-height: 34px; color: #2D2824; font-size: 12px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .chat-dish-price { margin-top: 3px; color: #6C645D; font-size: 12px; font-weight: 650; }
  .chat-safety-note { display: flex; gap: 7px; margin-top: 12px; padding: 9px 10px; border-radius: 10px; background: #FFF7EA; color: #735020; font-size: 11px; line-height: 1.4; }
  .chat-card-actions { display: grid; grid-template-columns: 42px 42px 1fr 1fr; gap: 7px; margin-top: 13px; }
  .chat-card-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 9px;
    border-radius: 10px;
    border: 1px solid #E4DED7;
    background: #fff;
    color: #514A44;
    font-size: 11px;
    font-weight: 750;
  }
  .chat-card-action .material-symbols-outlined { font-size: 17px; }
  .chat-card-action.is-active,
  .chat-card-action.is-saved { border-color: #E97936; background: #FFF6EF; color: #C36129; }
  .chat-card-feedback { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid #EEE8E1; }
  .chat-card-feedback.is-open { display: block; }
  .chat-card-feedback p { color: #625B55; font-size: 11px; font-weight: 700; }
  .chat-card-feedback.is-positive .chat-feedback-reason.is-selected { background: #EAF7F0; color: #23724C; box-shadow: inset 0 0 0 1px #58A67C; }
  .chat-card-feedback.is-positive .chat-feedback-apply { background: #2F8B5D; }
  .chat-card-feedback.is-positive .chat-feedback-apply:disabled { background: #E1E9E4; color: #87958C; }
  .chat-feedback-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .chat-feedback-reason { padding: 7px 9px; border-radius: 999px; background: #F6F3EF; color: #5C554F; font-size: 10px; font-weight: 650; }
  .chat-feedback-reason.is-selected { background: #FFF0E5; color: #A94E1F; box-shadow: inset 0 0 0 1px #E97936; }
  .chat-feedback-apply { width: 100%; min-height: 38px; margin-top: 10px; border-radius: 10px; background: #E97936; color: #fff; font-size: 12px; font-weight: 760; }
  .chat-feedback-apply:disabled { background: #E9E4DE; color: #9A938C; }
  .chat-feedback-ack { margin-top: 9px; color: #2D8A5E; font-size: 11px; font-weight: 650; }
  .chat-card-feedback.is-submitted .chat-feedback-apply { display: none; }
  .chat-card-feedback.is-submitted .chat-feedback-reason.is-selected::after { content: ' ✓'; font-weight: 850; }
  .feedback-reward-toast {
    position: fixed;
    left: 50%;
    bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 76px));
    z-index: 420;
    width: min(358px, calc(100vw - 48px));
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(46,45,44,.96), rgba(78,77,75,.9));
    color: #fff;
    box-shadow: 0 12px 30px rgba(26,23,21,.22);
    transform: translate(-50%, 12px);
    opacity: 0;
    animation: feedbackRewardIn .24s ease forwards;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .feedback-reward-icon { font-size: 17px; }
  .feedback-reward-copy { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .feedback-reward-value { color: #FFC8AE; font-size: 12px; font-weight: 820; white-space: nowrap; }
  @keyframes feedbackRewardIn { to { opacity: 1; transform: translate(-50%, 0); } }
  .chat-bottom-area {
    border-top: 1px solid #ECE6DF;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .chat-bottom-area > * { max-width: 760px; margin-left: auto; margin-right: auto; }
  .chat-text-field,
  .chat-hold-btn { border: 1px solid #DED8D1; box-shadow: none; }
  .chat-mode-btn { background: #E97936; }
  .chat-quick-replies-block { margin-top: -8px; }
  .chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; max-width: min(82%, 520px); margin-top: 0; padding-left: 16px; }
  .chat-quick-reply {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid #E4B899;
    border-radius: 999px;
    background: #FFF8F3;
    color: #A24D20;
    font-size: 12px;
    font-weight: 720;
    transition: transform .15s ease, background .15s ease;
  }
  .chat-quick-reply:active { transform: scale(.97); background: #FDEDDD; }
  .chat-detail-backdrop { position: fixed; inset: 0; z-index: 260; display: none; background: rgba(24,20,17,0.42); }
  .chat-detail-backdrop.active { display: block; }
  .chat-detail-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 261;
    max-height: 92dvh;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.2,0.8,0.2,1);
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -18px 50px rgba(30,24,19,0.18);
  }
  .chat-detail-sheet.active { transform: translateY(0); }
  .chat-detail-handle { width: 38px; height: 4px; margin: 9px auto 3px; border-radius: 999px; background: #D9D3CC; }
  .chat-detail-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 12px; background: rgba(255,255,255,0.96); border-bottom: 1px solid #EEE8E1; backdrop-filter: blur(12px); }
  .chat-detail-close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #F5F2EE; color: #4D4640; }
  .chat-detail-body { max-width: 680px; margin: 0 auto; padding: 20px 18px max(26px, env(safe-area-inset-bottom, 0px)); }
  .chat-detail-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #6C645D; font-size: 12px; }
  .chat-detail-summary .chat-credit-tag { position: static; }
  .chat-detail-address { margin-top: 9px; color: #4F4943; font-size: 13px; line-height: 1.45; }
  .chat-detail-reason { margin-top: 14px; padding: 14px 15px; border: 1px solid #EDE5DD; border-radius: 16px; background: #FFF9F5; }
  .chat-detail-reason-title { display: flex; align-items: center; gap: 6px; color: #8F4722; font-size: 12px; font-weight: 800; }
  .chat-detail-reason-title .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }
  .chat-detail-reason-copy { margin-top: 6px; color: #514A44; font-size: 13px; line-height: 1.55; }
  .chat-detail-section-title { margin: 20px 0 9px; color: #27221E; font-size: 14px; font-weight: 780; }
  .chat-detail-video { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; object-fit: cover; background: #171412; }
  .chat-detail-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .chat-detail-video-grid .chat-detail-video { aspect-ratio: 4 / 5; }
  .chat-detail-video-label { margin-top: 5px; color: #6C645D; font-size: 11px; line-height: 1.35; }
  .chat-detail-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .chat-detail-action { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; background: #F6F3EF; color: #403A35; font-size: 12px; font-weight: 750; }
  .chat-detail-action.is-primary { background: #E97936; color: #fff; }
  @media (min-width: 720px) {
    .chat-detail-sheet { left: 50%; right: auto; width: min(680px, 100%); transform: translate(-50%, 100%); }
    .chat-detail-sheet.active { transform: translate(-50%, 0); }
  }

  /* Dish-first recommendation carousel */
  .chat-recommendation-batch {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .chat-batch-header { padding: 4px 2px 12px; }
  .chat-batch-eyebrow { margin: 0; color: #C36129; font-size: 12px; font-weight: 760; letter-spacing: 0.04em; text-transform: uppercase; }
  .chat-batch-subtitle { margin-top: 6px; max-width: 560px; color: #2C2621; font-size: 15px; font-weight: 650; line-height: 1.45; }
  .chat-batch-header .chat-batch-footnote { margin-top: 7px; }
  .chat-batch-body {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-right: -4px;
    padding: 0 10px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .chat-batch-body::-webkit-scrollbar { display: none; }
  .chat-recommendation-batch.is-expanded .chat-batch-body { display: flex; }
  .chat-result-card {
    flex: 0 0 calc(100% - 48px);
    width: calc(100% - 48px);
    max-width: 340px;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #E5DED6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(37,29,22,0.08);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
  }
  .chat-card-heading { position: relative; padding: 12px 48px 10px 14px; }
  .chat-card-heading .chat-credit-tag { position: static; }
  .chat-result-name { margin-top: 0; padding-right: 0; font-size: 17px; font-weight: 780; line-height: 1.25; }
  .chat-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: #6B645D; font-size: 12px; line-height: 1.3; }
  .chat-card-save {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid #E8E2DB;
    border-radius: 50%;
    background: #fff;
    color: #544D47;
  }
  .chat-card-save .material-symbols-outlined { font-size: 18px; }
  .chat-card-save.is-saved { border-color: #E97936; background: #FFF6EF; color: #C36129; }
  .chat-card-save.is-saved .result-save-icon { font-variation-settings: 'FILL' 1; }
  .chat-card-media,
  .chat-dish-collage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    height: auto;
    padding: 0 12px 10px;
    background: #fff;
  }
  .chat-creator-video,
  .chat-media-dish,
  .chat-dish-photo {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    background: transparent;
    color: #2F2925;
    text-align: left;
  }
  .chat-media-visual {
    position: relative;
    width: 100%;
    height: 104px;
    overflow: hidden;
    border-radius: 10px;
    background: #EAE5DE;
  }
  .chat-media-visual video,
  .chat-media-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .chat-media-visual video { pointer-events: none; }
  .chat-video-play { position: absolute; inset: 6px 6px auto auto; z-index: 2; display: grid; place-items: center; }
  .chat-video-play-icon { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: transparent; color: rgba(255,255,255,.82); text-shadow: 0 1px 5px rgba(0,0,0,.46); box-shadow: none; }
  .chat-video-play-icon .material-symbols-outlined { font-size: 17px !important; }
  .chat-dish-photo-copy {
    min-height: 47px;
    padding: 6px 2px 0;
    color: #3A342F;
  }
  .chat-media-dish-copy { min-height: 47px; padding: 6px 2px 0; color: #3A342F; }
  .chat-media-dish-name,
  .chat-dish-photo-name {
    display: block;
    min-height: 28.6px;
    overflow: visible;
    font-size: 11px;
    font-weight: 730;
    line-height: 1.3;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .chat-media-dish-price,
  .chat-dish-photo-price { display: block; min-height: 12px; margin-top: 3px; color: #6D655E; font-size: 10px; font-weight: 680; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .chat-media-visual img { transition: transform .2s ease; }
  .chat-media-dish:active .chat-media-visual img,
  .chat-dish-photo:active .chat-media-visual img { transform: scale(1.025); }
  .chat-card-content { flex: 1; display: flex; flex-direction: column; padding: 9px 14px 12px; }
  .chat-dish-list { display: none; }
  .chat-result-reason {
    margin-top: 0;
    overflow: visible;
    color: #5C554F;
    font-size: 13px;
    line-height: 1.45;
  }
  .chat-result-reason-copy { display: block; color: #514A44; font-size: 12px; line-height: 1.55; }
  .chat-result-reason-label { display: block; margin: 0 0 3px; color: #A75529; font-size: 11px; font-weight: 780; }
  .chat-card-footer { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #EEE8E1; }
  .chat-card-detail-link {
    flex: 1.15 1 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid #E97936;
    background: #E97936;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }
  .chat-card-detail-link .material-symbols-outlined { font-size: 16px; color: currentColor; }
  .chat-card-vote {
    flex: 0 0 42px;
    width: 42px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #E5DED6;
    border-radius: 12px;
    background: #fff;
    color: #4F4842;
  }
  .chat-card-vote .material-symbols-outlined { font-size: 19px; }
  .chat-card-vote-label { display: none; }
  .chat-card-vote.is-active { border-color: #E97936; background: #FFF6EF; color: #C36129; }
  .chat-card-vote:disabled { cursor: not-allowed; opacity: .36; }
  .chat-card-vote.is-active:disabled { opacity: 1; }
  .chat-batch-footnote {
    margin: 7px 2px 0;
    color: #8A827A;
    font-size: 11px;
    line-height: 1.45;
  }
  .chat-card-feedback { padding-top: 9px; }
  .chat-feedback-summary { display: none; align-items: flex-start; gap: 6px; margin-top: 9px; padding: 9px 10px; border-radius: 11px; background: #ECF7F0; color: #276847; font-size: 11px; font-weight: 680; line-height: 1.45; }
  .chat-feedback-summary.is-visible { display: flex; }
  .chat-feedback-summary .material-symbols-outlined { flex: 0 0 auto; margin-top: 1px; font-size: 15px; font-variation-settings: 'FILL' 1; }
  .chat-replacement-note { max-height: 120px; margin: 10px 0 0; padding: 11px 12px; overflow: hidden; border: 1px solid #DDEBE3; border-radius: 13px; background: #F2F9F5; color: #315F48; font-size: 11px; font-weight: 650; line-height: 1.5; opacity: 1; transition: opacity .2s ease, max-height .25s ease, margin .25s ease, padding .25s ease, border-width .25s ease; }
  .chat-replacement-note.is-leaving { max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; }
  .chat-batch-position { display: flex; align-items: center; justify-content: center; padding: 4px 0 2px; }
  .chat-batch-count { min-width: 82px; color: #777069; font-size: 12px; font-weight: 680; text-align: center; }
  .chat-recommendation-batch.is-superseded { overflow: hidden; border-radius: 16px; background: #F8F6F3; }
  .chat-recommendation-batch.is-superseded .chat-batch-header { padding: 14px 15px; }
  .chat-recommendation-batch.is-superseded .chat-batch-position,
  .chat-recommendation-batch.is-superseded .chat-batch-footnote { display: none; }

  /* Enlarged dish gallery */
  .chat-gallery-backdrop { position: fixed; inset: 0; z-index: 280; display: none; background: rgba(16,13,11,.84); }
  .chat-gallery-backdrop.active { display: block; }
  .chat-gallery {
    position: fixed;
    inset: 0;
    z-index: 281;
    display: none;
    flex-direction: column;
    background: #171411;
    color: #fff;
  }
  .chat-gallery.active { display: flex; }
  .chat-gallery-header {
    min-height: 64px;
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 44px;
    align-items: center;
    gap: 8px;
    padding: max(10px, env(safe-area-inset-top,0px)) 14px 8px;
  }
  .chat-gallery-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
  .chat-gallery-title { overflow: hidden; font-size: 13px; font-weight: 720; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .chat-gallery-count { font-size: 12px; font-weight: 700; text-align: right; opacity: .72; }
  .chat-gallery-track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .chat-gallery-track::-webkit-scrollbar { display: none; }
  .chat-gallery-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: start; scroll-snap-stop: always; }
  .chat-gallery-image-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px 0; }
  .chat-gallery-image { width: 100%; max-height: 64dvh; object-fit: contain; }
  .chat-gallery-copy { padding: 16px 20px max(24px, env(safe-area-inset-bottom,0px)); background: linear-gradient(to bottom, rgba(23,20,17,0), #171411 18%); }
  .chat-gallery-dish-name { margin-top: 5px; font-size: 20px; font-weight: 780; line-height: 1.25; }
  .chat-gallery-price { margin-top: 5px; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 650; }

  /* Mobile-friendly recommendation detail sheet */
  .chat-detail-sheet { height: min(94dvh, 860px); max-height: min(94dvh, 860px); display: flex; flex-direction: column; overflow: hidden; overscroll-behavior-y: contain; }
  .chat-detail-close { width: 44px; height: 44px; }
  .chat-detail-header { padding: 10px 16px 12px; }
  .chat-detail-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: #FCFAF7; -webkit-overflow-scrolling: touch; }
  .chat-detail-overview { position: relative; overflow: hidden; padding: 17px; border: 1px solid #E8DED4; border-radius: 20px; background: linear-gradient(145deg,#FFFDFB 0%,#F7F0E9 100%); box-shadow: 0 8px 22px rgba(63,43,28,.07); }
  .chat-detail-overview::after { content: ''; position: absolute; right: -42px; top: -48px; width: 128px; height: 128px; border-radius: 50%; background: rgba(232,121,54,.09); pointer-events: none; }
  .chat-detail-overview-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .chat-detail-overview-title { color: #8B4C28; font-size: 10px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
  .chat-detail-restaurant-name { margin-top: 5px; color: #241F1B; font-size: 20px; font-weight: 820; line-height: 1.18; }
  .chat-detail-badges { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
  .chat-detail-badges .chat-credit-tag { position: static; margin: 0; white-space: nowrap; }
  .chat-detail-rating-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 6px 9px; border-radius: 999px; background: #fff; color: #2F2924; box-shadow: 0 3px 12px rgba(51,36,25,.09); font-size: 12px; font-weight: 800; }
  .chat-detail-rating-chip .material-symbols-outlined { color: #E8873E; font-size: 15px; font-variation-settings: 'FILL' 1; }
  .chat-detail-summary { position: relative; z-index: 1; margin-top: 8px; }
  .chat-detail-distance { display: inline-flex; align-items: center; gap: 3px; }
  .chat-detail-distance .material-symbols-outlined { color: #A75A31; font-size: 14px; }
  .chat-detail-rating-inline { display: inline-flex; align-items: center; gap: 3px; color: #3D3732; font-weight: 760; }
  .chat-detail-rating-inline .material-symbols-outlined { color: #E8873E; font-size: 15px; font-variation-settings: 'FILL' 1; }
  .chat-detail-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
  .chat-detail-fact { min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 8px; padding: 9px; border: 1px solid rgba(226,215,204,.86); border-radius: 13px; background: rgba(255,255,255,.72); }
  .chat-detail-fact.is-wide { grid-column: 1 / -1; }
  .chat-detail-fact.is-location { grid-column: 1 / -1; }
  .chat-detail-fact-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #FCEBDF; color: #A85124; }
  .chat-detail-fact-icon .material-symbols-outlined { font-size: 17px; }
  .chat-detail-fact-label { display: block; color: #8A8179; font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
  .chat-detail-fact-value { display: block; margin-top: 2px; color: #35302B; font-size: 12px; font-weight: 720; line-height: 1.35; white-space: normal; }
  .chat-detail-fact.is-location .chat-detail-fact-value { white-space: normal; }
  .chat-detail-hours-trigger { width: 100%; grid-template-columns: 30px minmax(0,1fr) 18px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
  .chat-detail-hours-trigger:hover { border-color: #E7B896; background: #FFF9F5; }
  .chat-detail-hours-trigger:focus-visible { outline: 2px solid rgba(233,121,54,.42); outline-offset: 2px; }
  .chat-detail-fact-chevron { justify-self: end; color: #A49A91; font-size: 18px; }

  .chat-hours-backdrop { position: fixed; inset: 0; z-index: 290; display: none; background: rgba(24,20,17,.42); }
  .chat-hours-backdrop.active { display: block; }
  .chat-hours-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 291; transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -18px 50px rgba(30,24,19,.18); }
  .chat-hours-sheet.active { transform: translateY(0); }
  .chat-hours-handle { width: 38px; height: 4px; margin: 9px auto 3px; border-radius: 999px; background: #D9D3CC; }
  .chat-hours-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 14px; border-bottom: 1px solid #EEE8E1; }
  .chat-hours-title { color: #241F1B; font-size: 17px; font-weight: 800; line-height: 1.3; }
  .chat-hours-restaurant { margin-top: 3px; color: #766E67; font-size: 12px; font-weight: 620; }
  .chat-hours-close { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #F5F2EE; color: #4D4640; }
  .chat-hours-close .material-symbols-outlined { font-size: 20px; }
  .chat-hours-body { padding: 18px 18px max(24px, calc(env(safe-area-inset-bottom,0px) + 18px)); }
  .chat-hours-today-row { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 52px; padding: 13px 14px; border: 1px solid #E4DDD5; border-radius: 14px; background: #FCFAF7; }
  .chat-hours-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2F9B64; box-shadow: 0 0 0 3px rgba(47,155,100,.12); }
  .chat-hours-today { color: #3A342F; font-size: 14px; font-weight: 760; }
  .chat-hours-value { color: #2F7E57; font-size: 13px; font-weight: 780; text-align: right; }
  .chat-hours-note { margin: 11px 2px 0; color: #8A8179; font-size: 11px; line-height: 1.5; }
  @media (min-width: 680px) {
    .chat-hours-sheet { left: 50%; right: auto; width: min(680px,100%); transform: translate(-50%,100%); }
    .chat-hours-sheet.active { transform: translate(-50%,0); }
  }
  .chat-detail-credit-banner { position: relative; width: 100%; overflow: hidden; margin-top: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(125deg,#39251C 0%,#7E3C20 62%,#D56E32 100%); color: #fff; text-align: left; box-shadow: 0 12px 28px rgba(99,48,24,.2); }
  .chat-detail-body > div > .chat-detail-credit-banner:first-child { margin-top: 0; }
  .chat-detail-credit-banner + .chat-detail-overview { margin-top: 14px; }
  .chat-detail-credit-banner::before,.chat-detail-credit-banner::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
  .chat-detail-credit-banner::before { width: 112px; height: 112px; right: -28px; top: -56px; }
  .chat-detail-credit-banner::after { width: 72px; height: 72px; right: 24px; bottom: -46px; }
  .chat-detail-credit-copy { position: relative; z-index: 1; display: block; max-width: calc(100% - 92px); }
  .chat-detail-credit-copy > span { display: block; }
  .chat-detail-credit-eyebrow { color: #FFD5BC; font-size: 9px; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
  .chat-detail-credit-title { margin-top: 5px; font-size: 17px; font-weight: 820; line-height: 1.28; }
  .chat-detail-credit-desc { margin-top: 5px; color: rgba(255,255,255,.76); font-size: 11px; line-height: 1.4; }
  .chat-detail-credit-cta { position: absolute; z-index: 1; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 2px; padding: 7px 9px; border-radius: 999px; background: #fff; color: #7A381E; font-size: 10px; font-weight: 820; }
  .chat-detail-credit-cta .material-symbols-outlined { font-size: 14px; }
  .chat-detail-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 21px 0 10px; }
  .chat-detail-section-heading .chat-detail-section-title { margin: 0; }
  .chat-detail-section-hint { color: #92877E; font-size: 10px; font-weight: 620; }
  .chat-detail-dishes { display: grid; gap: 10px; }
  .chat-detail-dish {
    display: grid;
    grid-template-columns: 82px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #EAE2DA;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(52,38,28,.04);
  }
  .chat-detail-dish-media { position: relative; width: 82px; height: 82px; overflow: hidden; border-radius: 12px; background: #EEE9E3; }
  .chat-detail-dish-image-button { display: block; width: 100%; height: 100%; }
  .chat-detail-dish-image { width: 82px; height: 82px; display: block; object-fit: cover; transition: transform .2s ease; }
  .chat-detail-dish-media:active .chat-detail-dish-image { transform: scale(.97); }
  .chat-detail-dish-video-play { position: absolute; inset: 6px 6px auto auto; z-index: 2; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: transparent; color: rgba(255,255,255,.82); text-shadow: 0 1px 5px rgba(0,0,0,.46); box-shadow: none; backdrop-filter: none; }
  .chat-detail-dish-video-play .material-symbols-outlined { font-size: 15px; font-variation-settings: 'FILL' 1; }
  .chat-detail-media-zoom { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(28,23,20,.7); color: #fff; backdrop-filter: blur(6px); }
  .chat-detail-media-zoom .material-symbols-outlined { font-size: 14px; }
  .chat-detail-dish-name { margin-top: 4px; color: #2B2622; font-size: 14px; font-weight: 760; line-height: 1.32; }
  .chat-detail-dish-price { align-self: start; padding-top: 4px; color: #4E4842; font-size: 13px; font-weight: 760; }
  .chat-detail-video-grid { gap: 10px; }
  .chat-detail-video-card { min-width: 0; }
  .chat-detail-video-button { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: #171412; box-shadow: 0 7px 18px rgba(31,24,20,.12); }
  .chat-detail-video-grid .chat-detail-video { display: block; width: 100%; border-radius: 0; pointer-events: none; }
  .chat-detail-video-play { position: absolute; inset: 9px 9px auto auto; z-index: 3; display: grid; place-items: center; color: #fff; }
  .chat-detail-video-play > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: transparent; text-shadow: 0 1px 5px rgba(0,0,0,.46); backdrop-filter: none; }
  .chat-detail-video-play .material-symbols-outlined { font-size: 17px; font-variation-settings: 'FILL' 1; }
  .chat-detail-actions {
    flex-shrink: 0;
    z-index: 3;
    margin: 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom,0px));
    background: rgba(255,255,255,.96);
    border-top: 1px solid #EEE8E1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .chat-detail-action { min-height: 48px; }
  @media (max-width: 370px) {
    .chat-media-visual { height: 92px; }
    .chat-card-vote { min-width: 42px; padding: 0; }
    .chat-detail-action { flex-direction: column; gap: 1px; font-size: 10px; }
  }
  @media (min-width: 720px) {
    .chat-batch-body { margin-right: -8px; padding-right: 8px; }
    .chat-result-card { flex-basis: 340px; width: 340px; }
    .chat-gallery { inset: 50% auto auto 50%; width: min(520px, 92vw); height: min(780px, 92dvh); transform: translate(-50%,-50%); border-radius: 22px; overflow: hidden; }
  }

  /* Restaurant detail — video-first editorial layout */
  .chat-detail-sheet {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior-y: none;
    border-radius: 0;
    background: #F7F4F1;
  }
  .chat-detail-handle { display: none; }
  .chat-detail-header {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    min-height: 92px;
    padding: max(10px, calc(env(safe-area-inset-top,0px) + 8px)) 14px 10px;
    border: 0;
    background: #FFF4EA;
    color: #31251F;
    backdrop-filter: none;
  }
  .chat-detail-header-copy { width: 100%; min-width: 0; }
  .chat-detail-eyebrow { min-height: 34px; margin: 0 44px; color: #30231D; font-size: 16px; font-weight: 800; line-height: 34px; text-align: center; }
  .chat-detail-title { margin-top: 6px; color: #30231D; font-size: 16px; font-weight: 800; line-height: 1.25; text-align: left; overflow-wrap: anywhere; }
  .chat-detail-header-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 7px; color: #76655A; font-size: 11px; font-weight: 650; }
  .chat-detail-header-meta:empty { display: none; }
  .chat-detail-header-rating { display: inline-flex; align-items: center; gap: 3px; }
  .chat-detail-header-rating .material-symbols-outlined { color: #F2A12E; font-size: 14px; font-variation-settings: 'FILL' 1; }
  .chat-detail-close { position: absolute; top: max(9px, calc(env(safe-area-inset-top,0px) + 7px)); left: 14px; right: auto; width: 34px; height: 34px; background: #F0DFD2; color: #56443A; }
  .chat-detail-close:focus-visible { outline: 2px solid rgba(242,113,38,.5); outline-offset: 2px; }
  .chat-detail-body { flex: 1; min-height: 0; max-width: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior-y: contain; touch-action: pan-y; background: #F7F4F1; -webkit-overflow-scrolling: touch; }
  .chat-detail-layout { min-height: 100%; }
  .chat-detail-media-hero { padding: 5px 0 20px; border-bottom: 1px solid #F0DED0; background: #FFF4EA; color: #352820; }
  .chat-detail-media-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px 10px; }
  .chat-detail-media-heading h3 { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 780; }
  .chat-detail-media-heading h3 .material-symbols-outlined { color: #F4772D; font-size: 16px; font-variation-settings: 'FILL' 1; }
  .chat-detail-media-heading > span { color: #8F7B6E; font-size: 10px; white-space: nowrap; }
  .chat-detail-media-hero .chat-detail-video-grid { display: flex; gap: 10px; padding: 0 14px 1px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .chat-detail-media-hero .chat-detail-video-grid::-webkit-scrollbar { display: none; }
  .chat-detail-media-hero .chat-detail-video-card { flex: 0 0 min(46vw, 180px); overflow: hidden; border: 1px solid #EBCFBB; border-radius: 15px; background: #fff; box-shadow: 0 6px 16px rgba(111,65,38,.08); scroll-snap-align: start; }
  .chat-detail-media-hero .chat-detail-video-button { display: block; aspect-ratio: 4 / 5; border-radius: 0; box-shadow: none; }
  .chat-detail-media-hero.is-single .chat-detail-video-grid { justify-content: stretch; overflow-x: hidden; }
  .chat-detail-media-hero.is-single .chat-detail-video-card { flex: 0 0 100%; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .chat-detail-media-hero.is-single .chat-detail-video-button { aspect-ratio: 2 / 1; overflow: hidden; border-radius: 15px; }
  .chat-detail-media-hero.is-single .chat-detail-video-source { min-height: 36px; padding: 7px 2px 0; }
  .chat-detail-media-hero .chat-detail-video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .chat-detail-video-duration { position: absolute; z-index: 2; right: 9px; bottom: 9px; display: none; padding: 4px 7px; border-radius: 999px; background: rgba(30,22,17,.72); color: #fff; font-size: 10px; font-weight: 780; line-height: 1.2; backdrop-filter: blur(6px); }
  .chat-detail-video-duration.is-visible { display: inline-flex; }
  .chat-detail-media-hero .chat-detail-video-play { z-index: 3; }
  .chat-detail-media-hero .chat-detail-video-play > span { width: 28px; height: 28px; background: transparent; color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.62); }
  .chat-detail-video-source { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 7px 9px; color: #40342D; }
  .chat-detail-video-source > .material-symbols-outlined { flex: 0 0 auto; font-size: 27px; color: #D88958; }
  .chat-detail-video-source span:last-child { min-width: 0; }
  .chat-detail-video-source strong,.chat-detail-video-source small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-detail-video-source strong { font-size: 12px; font-weight: 760; }
  .chat-detail-video-source small { margin-top: 3px; color: #97877D; font-size: 9px; }
  .chat-detail-content { padding: 16px 9px 24px; }
  .chat-detail-content .chat-detail-reason { margin: 0; padding: 16px; border-color: #F0D8C7; border-radius: 17px; background: #FFF9F4; box-shadow: none; }
  .chat-detail-content .chat-detail-reason-title { color: #B45624; font-size: 12px; }
  .chat-detail-content .chat-detail-reason-copy { margin-top: 10px; color: #544B44; font-size: 12px; line-height: 1.7; }
  .chat-detail-reason-list { display: grid; gap: 9px; margin-top: 11px; }
  .chat-detail-reason-list li { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: start; gap: 7px; color: #544B44; font-size: 12px; line-height: 1.5; }
  .chat-detail-reason-list .material-symbols-outlined { margin-top: 1px; color: #D96B2E; font-size: 16px; font-variation-settings: 'FILL' 1; }
  .chat-detail-section-heading { margin: 20px 4px 9px; }
  .chat-detail-section-title { color: #2D2723; font-size: 14px; font-weight: 820; }
  .chat-detail-dishes { gap: 10px; }
  .chat-detail-dish { grid-template-columns: 64px minmax(0,1fr) auto; gap: 10px; min-height: 76px; padding: 9px 10px; border: 0; border-radius: 17px; box-shadow: none; }
  .chat-detail-dish-media,.chat-detail-dish-image { width: 64px; height: 58px; border-radius: 12px; }
  .chat-detail-media-zoom { right: 50%; bottom: 50%; width: 24px; height: 24px; transform: translate(50%,50%); background: rgba(31,23,18,.68); }
  .chat-detail-media-zoom.is-video { background: rgba(35,24,18,.68); }
  .chat-detail-dish-copy { min-width: 0; }
  .chat-detail-dish-name { margin: 0; color: #2B2622; font-size: 13px; font-weight: 780; line-height: 1.35; overflow-wrap: anywhere; }
  .chat-detail-dish-price { align-self: center; padding: 0; color: #433D38; font-size: 12px; }
  .chat-detail-info-card { overflow: hidden; padding: 0 16px; border-radius: 18px; background: #fff; }
  .chat-detail-facts-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(82px,1fr)); gap: 8px; padding: 14px 0; border-bottom: 1px solid #EEE8E2; }
  .chat-detail-fact { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 8px; border-radius: 11px; background: #FBF7F3; }
  .chat-detail-fact > .material-symbols-outlined { flex: 0 0 auto; color: #E97936; font-size: 17px; font-variation-settings: 'FILL' 1; }
  .chat-detail-fact > span:last-child { min-width: 0; }
  .chat-detail-fact small,.chat-detail-fact strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-detail-fact small { color: #A0958D; font-size: 9px; font-weight: 620; }
  .chat-detail-fact strong { margin-top: 2px; color: #3C3631; font-size: 11px; font-weight: 720; }
  .chat-detail-info-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0,1fr) 20px; align-items: center; gap: 9px; min-height: 68px; padding: 12px 0; color: #3C3631; text-align: left; }
  .chat-detail-info-row + .chat-detail-info-row { border-top: 1px solid #EEE8E2; }
  .chat-detail-info-row:not(button) { grid-template-columns: 34px minmax(0,1fr); }
  .chat-detail-info-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #D98B57; }
  .chat-detail-info-icon .material-symbols-outlined { font-size: 18px; }
  .chat-detail-info-row small,.chat-detail-info-row strong { display: block; }
  .chat-detail-info-row small { color: #A0958D; font-size: 10px; font-weight: 620; }
  .chat-detail-info-row strong { margin-top: 3px; color: #3C3631; font-size: 12px; font-weight: 680; line-height: 1.45; overflow-wrap: anywhere; }
  .chat-detail-info-chevron { justify-self: end; color: #B0A69E; font-size: 18px; }
  .chat-detail-content > .chat-detail-credit-banner,
  .chat-detail-layout > .chat-detail-credit-banner {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #F5CFB1;
    border-radius: 18px;
    background: linear-gradient(135deg,#FFF7EF 0%,#FFE8D3 100%);
    color: #4A2A1C;
    box-shadow: 0 7px 20px rgba(175,85,35,.1);
  }
  .chat-detail-layout > .chat-detail-credit-banner { width: calc(100% - 28px); margin: 10px 14px 12px; }
  .chat-detail-content > .chat-detail-credit-banner::before,
  .chat-detail-content > .chat-detail-credit-banner::after,
  .chat-detail-layout > .chat-detail-credit-banner::before,
  .chat-detail-layout > .chat-detail-credit-banner::after { display: none; }
  .chat-detail-credit-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #F4772D; color: #fff; box-shadow: 0 5px 12px rgba(244,119,45,.22); }
  .chat-detail-credit-icon .material-symbols-outlined { font-size: 22px; font-variation-settings: 'FILL' 1; }
  .chat-detail-layout .chat-detail-credit-copy { max-width: none; }
  .chat-detail-layout .chat-detail-credit-eyebrow { color: #B45B2D; font-size: 9px; }
  .chat-detail-layout .chat-detail-credit-title { margin-top: 3px; color: #3D251A; font-size: 15px; line-height: 1.25; }
  .chat-detail-layout .chat-detail-credit-desc { margin-top: 4px; color: #7D5A47; font-size: 10px; line-height: 1.45; }
  .chat-detail-layout .chat-detail-credit-cta { position: static; align-self: center; padding: 7px 9px; border: 1px solid rgba(216,98,39,.22); background: rgba(255,255,255,.78); color: #C45C27; font-size: 10px; white-space: nowrap; }
  .chat-detail-actions { display: grid; grid-template-columns: 128px minmax(0,1fr); gap: 10px; margin: 0; padding: 10px 9px max(10px, env(safe-area-inset-bottom,0px)); border-top-color: var(--warm-divider); background: rgba(255,249,244,.97); }
  .chat-detail-action { min-height: 46px; border: 1px solid var(--warm-border); border-radius: 999px; background: var(--warm-surface-strong); color: var(--warm-text); font-size: 13px; }
  .chat-detail-action.is-primary { border-color: var(--warm-primary); background: var(--warm-primary); color: #fff; box-shadow: 0 5px 14px rgba(242,113,38,.2); }
  .chat-detail-action.is-primary:active { background: var(--warm-primary-pressed); border-color: var(--warm-primary-pressed); }
  @media (min-width: 680px) {
    .chat-detail-sheet { width: min(430px,100%); height: min(92dvh,860px); max-height: min(92dvh,860px); border-radius: 24px 24px 0 0; }
    .chat-detail-media-hero .chat-detail-video-card { flex-basis: 180px; }
    .chat-detail-media-hero.is-single .chat-detail-video-card { flex-basis: 100%; }
  }
  /* Restaurant detail is a full page, not a bottom drawer. */
  .chat-detail-backdrop { display: none !important; }
  .chat-detail-sheet {
    position: fixed;
    inset: 0;
    z-index: 261;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s;
    border-radius: 0;
    background: #F7F4F1;
    box-shadow: none;
  }
  .chat-detail-sheet.active {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }
  @media (min-width: 680px) {
    .chat-detail-sheet,
    .chat-detail-sheet.active { left: 50%; right: auto; width: min(430px,100%); height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .chat-detail-sheet { transform: translateX(calc(-50% + 100vw)); }
    .chat-detail-sheet.active { transform: translateX(-50%); }
  }
  /* Chat bottom: one familiar text + live voice composer */
  .chat-bottom-area { flex-shrink: 0; position: relative; background: #FEF3E8; padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  #voice-overlay.keyboard-visible #chat-messages { padding-bottom: 72px; scroll-padding-bottom: 72px; }
  #voice-overlay.keyboard-visible .chat-bottom-area { padding-bottom: 10px; }
  .chat-input-row { display: flex; align-items: center; gap: 10px; }
  .chat-input-row.hidden { display: none; }
  .chat-unified-composer {
    min-height: 52px;
    padding: 3px 5px 3px 15px;
    border: 1px solid #DED8D1;
    border-radius: 27px;
    background: #fff;
    box-shadow: none;
  }
  .chat-live-mic-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #242424;
    box-shadow: none;
    transition: color .16s ease, background .16s ease, transform .16s ease;
  }
  .chat-live-mic-btn:active { transform: scale(.94); }
  .chat-live-mic-btn.is-listening { background: #FFF0E6; color: #E75F2B; animation: pulse-mic 1.2s infinite; }
  .chat-composer-mic-icon { display: block; width: 24px; height: 24px; }
  .chat-live-controls { display: none; width: 100%; min-width: 0; align-items: center; gap: 12px; }
  .chat-unified-composer.is-listening { padding: 4px 6px; }
  .chat-unified-composer.is-listening .chat-text-form,
  .chat-unified-composer.is-listening > .chat-live-mic-btn { display: none; }
  .chat-unified-composer.is-listening .chat-live-controls { display: flex; }
  .chat-live-cancel-btn,
  .chat-live-pause-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F3F3F3;
    color: #171717;
  }
  .chat-live-cancel-btn svg { width: 24px; height: 24px; }
  .chat-live-pause-btn { margin-left: auto; }
  .chat-live-pause-btn span { width: 13px; height: 13px; border-radius: 2px; background: currentColor; }
  .chat-live-cancel-btn:active,
  .chat-live-pause-btn:active { background: #E9E9E9; transform: scale(.95); }
  .chat-live-wave { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; justify-content: center; gap: 3px; overflow: hidden; }
  .chat-live-wave i { width: 3px; height: 4px; flex: 0 0 3px; border-radius: 999px; background: #A8A8A8; animation: chatLiveWave .95s ease-in-out infinite alternate; }
  .chat-live-wave i:nth-child(3n+1) { animation-delay: -.15s; }
  .chat-live-wave i:nth-child(3n+2) { animation-delay: -.4s; }
  .chat-live-wave i:nth-child(4n) { animation-delay: -.65s; }
  @keyframes chatLiveWave { from { height: 4px; opacity: .48; } to { height: 20px; opacity: 1; background: #777; } }
  .chat-hold-btn { flex: 1; height: 50px; background: var(--warm-surface); border: 1px solid var(--warm-border); border-radius: 25px; font-size: 16px; font-weight: 600; color: var(--warm-text); box-shadow: 0 1px 6px rgba(112,66,37,0.07); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; transition: background 0.15s, color 0.15s, height 0.15s, box-shadow 0.15s; }
  .chat-hold-btn:active { background: var(--warm-surface-strong); }
  .chat-hold-btn.cancel-pending { color: #E03131; }
  .chat-bottom-area.has-results {
    background: #FBF6F0;
    padding-top: 8px;
    border-top: 1px solid rgba(232, 213, 196, 0.55);
  }
  .chat-bottom-area.has-results .chat-hold-btn {
    height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--warm-text);
    background: var(--warm-surface);
    border: 1px solid var(--warm-border);
    box-shadow: none;
  }
  .chat-bottom-area.has-results .chat-unified-composer { border-color: #E5B995; background: #fff; }
  .chat-bottom-area.has-results .chat-text-field { background: transparent; box-shadow: none; font-size: 16px; }
  .chat-bottom-area.has-results .chat-text-field::placeholder { color: #9D5B34; opacity: .78; }
  .chat-bottom-area.has-results .chat-mode-btn { width: 44px; height: 44px; }
  .chat-text-field { flex: 1; height: 44px; background: transparent; border: 0; border-radius: 0; padding: 0; font-size: 16px; font-weight: 500; color: #292929; outline: none; box-shadow: none; -webkit-text-size-adjust: 100%; }
  .chat-text-field::placeholder { color: rgba(122,101,88,0.4); }
  .chat-mode-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--warm-primary); border: none; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.15s, opacity 0.15s; box-shadow: 0 4px 11px rgba(242,113,38,.2); }
  .chat-mode-btn:active { transform: scale(0.94); }
  .chat-mode-btn:disabled { opacity: 0.45; pointer-events: none; }
  .ai-voice-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
    color: #fff;
  }
  #chat-recording-panel, #home-recording-panel { display: none; flex-direction: column; align-items: stretch; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 14px 14px; box-shadow: 0 -6px 28px rgba(44,24,16,0.1); animation: recPanelIn 0.2s ease; }
  #chat-recording-panel.active, #home-recording-panel.active { display: flex; }
  @keyframes recPanelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  .chat-rec-hint { text-align: center; font-size: 14px; color: #9A8578; margin-bottom: 14px; transition: color 0.15s; }
  .chat-rec-hint.cancel-pending { color: #E03131; }
  .chat-rec-waves { display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; margin-bottom: 14px; }
  .chat-rec-dot { border-radius: 50%; background: #F0803C; animation: recDot 0.55s ease-in-out infinite alternate; }
  .chat-rec-dot:nth-child(1) { width: 5px; height: 5px; animation-delay: 0s; }
  .chat-rec-dot:nth-child(2) { width: 7px; height: 7px; animation-delay: 0.1s; }
  .chat-rec-dot:nth-child(3) { width: 9px; height: 9px; animation-delay: 0.2s; }
  .chat-rec-dot:nth-child(4) { width: 7px; height: 7px; animation-delay: 0.12s; }
  .chat-rec-dot:nth-child(5) { width: 5px; height: 5px; animation-delay: 0.05s; }
  .chat-rec-dot:nth-child(6) { width: 8px; height: 8px; animation-delay: 0.18s; }
  .chat-rec-dot:nth-child(7) { width: 6px; height: 6px; animation-delay: 0.08s; }
  @keyframes recDot { from { transform: scaleY(0.5); opacity: 0.45; } to { transform: scaleY(1.2); opacity: 1; } }
  .chat-rec-actions { display: flex; align-items: center; gap: 10px; }
  .chat-release-btn { flex: 1; height: 50px; background: #fff; border: 1px solid #F0E6DC; border-radius: 25px; font-size: 16px; font-weight: 600; color: #2C1810; user-select: none; touch-action: none; }
  .chat-release-btn.cancel-pending { color: #E03131; border-color: rgba(224,49,49,0.25); }
  .chat-mic-active { background: #E03131 !important; animation: pulse-mic 1.2s infinite; }
  @keyframes pulse-mic { 0%,100% { box-shadow: 0 0 0 0 rgba(224,49,49,0.3); } 50% { box-shadow: 0 0 0 8px rgba(224,49,49,0); } }
  .voice-eq-bar { animation: eqBounce 0.6s ease-in-out infinite alternate; transform-origin: bottom; }
  .voice-eq-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
  .voice-eq-bar:nth-child(2) { height: 14px; animation-delay: 0.15s; }
  .voice-eq-bar:nth-child(3) { height: 11px; animation-delay: 0.3s; }
  .voice-eq-bar:nth-child(4) { height: 16px; animation-delay: 0.1s; }
  @keyframes eqBounce { 0% { transform: scaleY(0.35); } 100% { transform: scaleY(1); } }
  .chat-stt-interim { opacity: 0.6; font-style: italic; }
  @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
  .typing-cursor { display: inline-block; width: 2px; height: 14px; background: #F0803C; margin-left: 2px; vertical-align: text-bottom; animation: blink 0.8s infinite; }

  /* ── Voice status bar ── */
  #voice-status-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 16px; background: #FDF6EE;
    border-bottom: 1px solid #EDD9C8;
    min-height: 36px; flex-shrink: 0;
    overflow: hidden;
    transition: min-height 0.25s ease, padding 0.25s ease, opacity 0.25s ease;
  }
  #voice-status-bar.bar-hidden { min-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; pointer-events: none; }
  /* waveform – listening */
  .sb-wave { display: flex; align-items: center; gap: 2.5px; height: 18px; }
  .sb-wave-bar { width: 2.5px; border-radius: 2px; background: #E03131; transform-origin: center;
    animation: sbWave 0.7s ease-in-out infinite alternate; }
  .sb-wave-bar:nth-child(1){ height: 6px;  animation-delay: 0s; }
  .sb-wave-bar:nth-child(2){ height: 13px; animation-delay: 0.12s; }
  .sb-wave-bar:nth-child(3){ height: 18px; animation-delay: 0.24s; }
  .sb-wave-bar:nth-child(4){ height: 10px; animation-delay: 0.08s; }
  .sb-wave-bar:nth-child(5){ height: 15px; animation-delay: 0.18s; }
  @keyframes sbWave { from { transform: scaleY(0.25); opacity: 0.55; } to { transform: scaleY(1); opacity: 1; } }
  /* dot pulse – processing */
  .sb-dot { width: 8px; height: 8px; border-radius: 50%;
    animation: sbDotPulse 1.1s ease-in-out infinite; }
  .sb-dot-yellow { background: #F6A623; }
  @keyframes sbDotPulse { 0%,100% { transform: scale(0.8); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 1; } }
  .sb-label { font-size: 12.5px; font-weight: 500; color: #5C6B63; }

  /* ── Live transcript card (text-mode) ── */
  #live-transcript-card {
    margin: 0 12px 6px;
    padding: 9px 13px;
    background: #FFF0E3;
    border: 1.5px dashed rgba(240,128,60,0.45);
    border-radius: 12px;
    display: none;
    flex-shrink: 0;
  }
  #live-transcript-card.ltc-visible { display: flex; align-items: baseline; gap: 3px; animation: fadeSlideUp 0.2s ease; }
  #live-transcript-text { font-size: 13.5px; color: #D96E2A; font-style: italic; line-height: 1.5; flex: 1; word-break: break-word; }

  /* ── Full-voice modal ── */
  #voice-modal { position: fixed; inset: 0; z-index: 210; background: #FEF5EA;
    display: flex; flex-direction: column; opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease; }
  #voice-modal.active { opacity: 1; pointer-events: all; }
  .voice-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(240,128,60,0.22); animation: voiceRing 2s ease-out infinite; }
  .voice-ring:nth-child(2) { animation-delay: 0.5s; }
  .voice-ring:nth-child(3) { animation-delay: 1s; }
  @keyframes voiceRing { 0% { width: 56px; height: 56px; opacity: 0.8; } 100% { width: 140px; height: 140px; opacity: 0; } }
  .ai-typing-dots { display: inline-flex; gap: 3px; padding: 4px 0; }
  .ai-typing-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: #F0803C; animation: dotBounce 1.4s infinite ease-in-out both; }
  .ai-typing-dots .dot:nth-child(1) { animation-delay: -0.32s; }
  .ai-typing-dots .dot:nth-child(2) { animation-delay: -0.16s; }
  .ai-typing-dots .dot:nth-child(3) { animation-delay: 0s; }
  /* Loading step fade */
  .loading-step { transition: opacity 0.4s ease, transform 0.4s ease; }
  .loading-step.fade-out { opacity: 0; transform: translateY(-6px); }
  .loading-step.fade-in { opacity: 1; transform: translateY(0); }
  /* dish scroll — name + price stacked, left-aligned (reference) */
  .dish-scroll {
    display: flex;
    gap: clamp(12px, 3.5vw, 16px);
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    max-width: 100%;
    min-width: 0;
  }
  .dish-scroll::-webkit-scrollbar { display: none; }
  .dish-scroll { -ms-overflow-style: none; scrollbar-width: none; }
  .dish-card { flex-shrink: 0; width: clamp(100px, 30vw, 120px); scroll-snap-align: start; }
  .dish-card img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; display: block; border-radius: 16px; }
  .dish-card .dish-info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 0 0; width: 100%; }
  .dish-card .dish-name { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.3; width: 100%; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; word-break: break-word; }
  .dish-card .dish-price { font-size: 14px; font-weight: 700; color: #1a1a1a; line-height: 1.25; }

  .favorite-list-card { background: #fff; border-radius: 18px; border: 1px solid #E8F0EB; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; cursor: pointer; transition: transform 0.15s ease; }
  .fav-swipe-wrap .favorite-list-card { border: none; box-shadow: none; }
  .favorite-list-card:active { transform: scale(0.99); }
  .favorite-dish-row { display: flex; gap: 10px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0 2px; margin: 0; max-width: 100%; }
  .favorite-dish-row::-webkit-scrollbar { display: none; }
  .favorite-dish-thumb { flex-shrink: 0; width: 132px; display: flex; flex-direction: column; align-items: center; }
  .favorite-dish-thumb img { width: 124px; height: 112px; border-radius: 12px; object-fit: cover; display: block; flex-shrink: 0; }
  .favorite-dish-thumb .favorite-dish-copy { width: 132px; margin-top: 8px; text-align: center; }
  .favorite-dish-thumb .dish-name { font-size: 12px; font-weight: 700; color: #1a1a1a; line-height: 1.25; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; word-break: normal; overflow-wrap: normal; hyphens: none; }
  .favorite-dish-thumb .dish-price { font-size: 12px; font-weight: 600; color: #5C6B63; margin: 4px 0 0; line-height: 1.25; white-space: nowrap; }
  .favorite-list-layout { display: flex; align-items: center; }
  .favorite-list-body { flex: 1; min-width: 0; padding: 16px 0 16px 16px; }
  .favorite-list-top { display: flex; align-items: flex-start; gap: 4px; }
  .favorite-list-title-block { flex: 1; min-width: 0; padding-right: 4px; }
  .favorite-list-title-block .favorite-list-meta { margin-top: 4px; }
  .favorite-credits-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
  }
  .favorite-credits-tag.is-10 {
    background: #FFF0E8;
    color: #C8621C;
  }
  .favorite-credits-tag.is-20 {
    background: #E8561A;
    color: #FFFFFF;
  }
  .favorite-credits-tag-emoji {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
  }
  .favorite-credits-tag-text {
    min-width: 0;
  }
  #acct-favorite-detail { background: #F7FAF8 !important; }
  #acct-favorite-detail .acct-favorite-detail-banner-wrap {
    margin-bottom: 16px;
  }
  #acct-favorite-detail .acct-favorite-detail-credits-banner {
    width: 100%;
  }
  .favorite-list-chevron-wrap { flex-shrink: 0; display: flex; align-items: center; justify-content: center; align-self: stretch; padding: 0 14px 0 6px; }
  .favorite-list-chevron-wrap .favorite-list-chevron { color: #E5EBE8; font-size: 18px; line-height: 1; opacity: 0.85; }
  .fav-card-menu-wrap { position: relative; flex-shrink: 0; }
  .fav-card-menu-btn { width: 32px; height: 32px; border: none; background: transparent; color: #9CA3AF; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
  .fav-card-menu-btn:active { background: #F0F5F2; }
  .fav-card-menu-btn .material-symbols-outlined { font-size: 22px; }
  .fav-card-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 200px; max-width: 220px; background: #fff; border: 1px solid #E8F0EB; border-radius: 10px; box-shadow: 0 4px 14px rgba(22,33,29,0.08); z-index: 30; overflow: hidden; padding: 4px 0; }
  .fav-card-menu.fav-card-menu--up { top: auto; bottom: calc(100% + 6px); }
  .fav-card-menu.hidden { display: none; }
  .fav-card-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: none; background: transparent; color: #E53E3E; font-size: 13px; font-weight: 600; line-height: 1.35; cursor: pointer; white-space: nowrap; }
  .fav-card-menu button:active { background: #FEF2F2; }
  .favorite-list-meta { font-size: 12px; color: #888; margin-top: 6px; line-height: 1.4; }
  .fav-swipe-wrap { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 10px; }
  .fav-swipe-delete { position: absolute; right: 0; top: 0; bottom: 0; width: 80px; background: #E53E3E; color: #fff; border: none; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; z-index: 0; cursor: pointer; }
  .fav-swipe-delete .material-symbols-outlined { font-size: 22px; }
  .fav-swipe-track { position: relative; z-index: 1; will-change: transform; transition: transform 0.28s cubic-bezier(.4,0,.2,1); touch-action: pan-y; }
  .fav-swipe-track.is-dragging { transition: none; }
  .fav-swipe-tip { text-align: center; font-size: 12px; color: #9CA3AF; margin: 4px 0 16px; }
  .favorite-staff-card { background: #fff; border-radius: 18px; border: 1px solid #E8F0EB; box-shadow: 0 2px 12px rgba(22,33,29,0.06); overflow: hidden; }
  .favorite-staff-card .staff-card-header { padding: 20px 20px 16px; border-bottom: 1px solid #F0F5F2; }
  .favorite-staff-card .staff-card-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .favorite-staff-card .staff-card-logo { flex-shrink: 0; display: block; }
  .favorite-staff-card .staff-card-brand-text { font-size: 13px; font-weight: 600; color: #F0803C; line-height: 1.35; letter-spacing: 0.01em; }
  .favorite-staff-card .staff-card-name { font-size: 20px; font-weight: 700; color: #16211D; line-height: 1.3; letter-spacing: -0.02em; flex: 1; min-width: 0; }
  .favorite-staff-card .staff-dish-primary { font-size: 17px; font-weight: 600; color: #16211D; line-height: 1.35; }
  .favorite-staff-card .staff-card-meta { font-size: 13px; font-weight: 600; color: #5C6B63; margin-top: 8px; line-height: 1.4; }
  .favorite-staff-card .staff-card-address { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 500; color: #5C6B63; margin-top: 8px; line-height: 1.45; }
  .favorite-staff-card .staff-card-name-note { font-size: 12px; font-weight: 500; color: #9CA3AF; margin-top: 10px; line-height: 1.45; }
  .favorite-staff-card .staff-card-address .material-symbols-outlined { font-size: 18px; color: #C2DDD1; flex-shrink: 0; margin-top: 1px; }
  .favorite-staff-card .staff-dish-list { padding: 6px 16px 12px; }
  .favorite-staff-card .staff-dish-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; }
  .favorite-staff-card .staff-dish-row + .staff-dish-row { border-top: 1px solid #F0F5F2; }
  .favorite-staff-card .staff-dish-photo { flex-shrink: 0; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #F0F5F2; }
  .favorite-staff-card .staff-dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .favorite-staff-card .staff-dish-photo.is-empty { display: flex; align-items: center; justify-content: center; color: #C2DDD1; }
  .favorite-staff-card .staff-dish-photo.is-empty .material-symbols-outlined { font-size: 24px; }
  .favorite-staff-card .staff-dish-copy { flex: 1; min-width: 0; }
  .favorite-staff-card .staff-dish-zh { font-size: 17px; font-weight: 600; color: #16211D; line-height: 1.35; }
  .favorite-staff-card .staff-dish-es { font-size: 15px; font-weight: 500; color: #6B7280; margin-top: 2px; line-height: 1.35; }
  .favorite-staff-card .staff-dish-price { font-size: 16px; font-weight: 600; color: #5C6B63; margin-top: 5px; line-height: 1.25; }
  .favorite-staff-card .staff-card-hint { margin: 0 16px 16px; padding: 12px 14px; background: #F0F8F4; border-radius: 12px; font-size: 13px; font-weight: 500; color: #5C6B63; line-height: 1.5; }
  .bilingual-block .line-zh { font-size: 15px; font-weight: 700; color: #16211D; line-height: 1.45; }
  .bilingual-block .line-es { font-size: 13px; font-weight: 500; color: #6B7280; line-height: 1.45; margin-top: 4px; }
  .bilingual-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #F0803C; margin-bottom: 6px; }
  /* Result card — creator video */
  .result-video-section {
    margin-bottom: 10px;
    border-radius: clamp(12px, 3.5vw, 16px);
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
    max-height: min(220px, 52vw);
    cursor: pointer;
  }
  .result-video-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .result-video-overlay {
    position: absolute;
    z-index: 3;
    inset: 8px 8px auto auto;
    display: flex;
    background: transparent;
    transition: opacity 0.3s;
  }
  .result-video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
  }
  .result-play-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  }
  .result-play-btn::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #F0803C;
    margin-left: 3px;
  }
  .result-video-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .result-video-duration.visible { opacity: 1; }
  .result-creator-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 8px 0 14px;
    margin-bottom: 0;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
  }
  .result-creator-link:hover { color: #666; }
  .result-creator-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }
  .result-creator-block.hidden { display: none !important; }
  .result-creator-link.hidden { display: none !important; }
  /* Result video — enlarged playback layer */
  .result-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: #000;
    display: none;
    flex-direction: column;
    touch-action: pan-y;
    overscroll-behavior: none;
  }
  .result-video-lightbox[data-source="agent"] {
    touch-action: none;
  }
  .result-video-lightbox[data-source="profile"],
  .result-video-lightbox[data-profile-video-preview="true"] {
    touch-action: none;
  }
  .result-video-lightbox[data-source="chat"] {
    touch-action: none;
  }
  .result-video-lightbox[data-source="agent"] .result-video-lightbox-inner,
  .result-video-lightbox[data-source="agent"] .result-video-lightbox-inner video {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .result-video-lightbox[data-source="profile"] .result-video-lightbox-inner,
  .result-video-lightbox[data-source="profile"] .result-video-lightbox-inner video,
  .result-video-lightbox[data-profile-video-preview="true"] .result-video-lightbox-inner,
  .result-video-lightbox[data-profile-video-preview="true"] .result-video-lightbox-inner video,
  .result-video-lightbox[data-source="chat"] .result-video-lightbox-inner,
  .result-video-lightbox[data-source="chat"] .result-video-lightbox-inner video {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  .result-video-lightbox.active { display: flex; }
  .result-video-lightbox-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: auto 44px 1fr;
    align-items: center;
    padding: max(10px, env(safe-area-inset-top)) 12px 8px;
    pointer-events: none;
  }
  .result-video-lightbox-close {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
    justify-self: start;
  }
  .result-video-lightbox-back-chat.hidden,
  .result-video-lightbox-close.hidden { display: none !important; }
  .result-video-lightbox[data-source="agent"] .result-video-lightbox-top,
  .result-video-lightbox[data-source="profile"] .result-video-lightbox-top,
  .result-video-lightbox[data-profile-video-preview="true"] .result-video-lightbox-top {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .result-video-lightbox[data-source="agent"] .result-video-lightbox-close,
  .result-video-lightbox[data-source="profile"] .result-video-lightbox-close,
  .result-video-lightbox[data-profile-video-preview="true"] .result-video-lightbox-close {
    display: none !important;
  }
  .result-video-lightbox-back-chat {
    pointer-events: auto;
    justify-self: start;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.28);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }
  .result-video-lightbox-back-chat .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
  }
  .bito-feed-badge {
    justify-self: center;
    margin: 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.38);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .02em;
    pointer-events: none;
    white-space: nowrap;
  }
  .bito-feed-badge.hidden { display: none !important; }
  .result-video-lightbox.is-agent-dialog-over {
    pointer-events: auto !important;
  }
  .result-video-lightbox.is-agent-dialog-over .result-video-lightbox-top,
  .result-video-lightbox.is-agent-dialog-over .result-video-lightbox-actions,
  .result-video-lightbox.is-agent-dialog-over .result-video-lightbox-footer,
  .result-video-lightbox.is-agent-dialog-over .result-video-lightbox-creator,
  .result-video-lightbox.is-agent-dialog-over .result-video-lightbox-why,
  .result-video-lightbox.is-agent-dialog-over .video-swipe-hint,
  .result-video-lightbox.is-agent-dialog-over .ai-precision-feed-hint,
  .result-video-lightbox.is-agent-dialog-over .result-video-lightbox-play {
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .result-video-lightbox.is-agent-dialog-over .result-video-lightbox-inner {
    pointer-events: auto !important;
  }
  .ai-precision-feed-hint {
    position: absolute;
    left: 50%;
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 84px));
    z-index: 4;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    pointer-events: none;
    animation: aiPrecisionHintIn .24s ease both;
  }
  .ai-precision-feed-hint.hidden { display: none; }
  @keyframes aiPrecisionHintIn {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }
  .result-video-lightbox-original {
    pointer-events: auto;
    justify-self: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 4px;
  }
  .result-video-lightbox-original:hover { color: #fff; }
  .result-video-lightbox-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 48px 0 72px;
  }
  .result-video-lightbox-inner video {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
  }
  .result-video-lightbox-image {
    display: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .result-video-lightbox.is-image-preview .result-video-lightbox-inner video { display: none; }
  .result-video-lightbox.is-image-preview .result-video-lightbox-image { display: block; }
  .result-video-lightbox-actions {
    position: absolute;
    right: 12px;
    bottom: max(118px, calc(env(safe-area-inset-bottom) + 108px));
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: auto;
  }
  .result-video-lightbox-actions[hidden] { display: none !important; }
  .result-video-lightbox-actions button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.55));
    cursor: pointer;
  }
  .result-video-lightbox-actions .material-symbols-outlined { font-size: 32px; }
  .result-video-lightbox-actions .home-action-like.is-selected,
  .result-video-lightbox-actions .home-example-save.is-saved {
    color: #ff5a12;
  }
  .result-video-lightbox-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 20px 20px max(28px, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    pointer-events: none;
    text-align: center;
  }
  .result-video-lightbox-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
  }
  .result-video-lightbox-source {
    display: none !important;
  }
  .result-video-lightbox.is-dragging .result-video-lightbox-inner { transition: none; }
  .result-video-lightbox-inner { transition: transform 0.22s ease, opacity 0.22s ease; }
  .result-video-lightbox.is-switching .result-video-lightbox-inner {
    opacity: 0.35;
    transform: translateY(-28px);
    transition: opacity 0.18s ease, transform 0.22s ease;
  }
  .video-swipe-hint {
    position: absolute;
    left: 50%;
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px));
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  .video-swipe-hint.is-visible { opacity: 1; }
  .video-swipe-hint-arrow {
    color: rgba(255, 255, 255, 0.42);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    animation: videoSwipeHintFloat 1.2s ease-in-out infinite;
  }
  .video-swipe-hint-label {
    color: rgba(255, 255, 255, 0.38);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    animation: videoSwipeHintFloat 1.2s ease-in-out infinite;
  }
  @keyframes videoSwipeHintFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
  .video-swipe-arrow {
    display: none !important;
  }
  #page-login {
    background: #FFF8F0;
    color: #201D1A;
    overflow-y: auto;
  }
  #page-login .login-page-main {
    flex: 1 0 auto;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: max(44px, calc(env(safe-area-inset-top, 0px) + 30px)) 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #page-login .login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 38px;
    text-align: center;
  }
  #page-login .login-brand-logo {
    width: 116px;
    height: 116px;
    filter: drop-shadow(0 12px 24px rgba(143, 86, 38, 0.09));
  }
  #page-login .login-brand-title {
    margin-top: 22px;
    color: #201D1A;
    font-family: var(--app-font-headline);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
  }
  #page-login .login-brand-tagline {
    margin-top: 10px;
    color: #4E4944;
    font-size: 16px;
    font-weight: 450;
    letter-spacing: 0.015em;
  }
  #page-login #step1 { width: 100%; }
  #page-login .login-auth-list { display: flex; flex-direction: column; gap: 11px; width: 100%; }
  #page-login .login-btn-primary,
  #page-login .login-btn-whatsapp,
  #page-login .login-btn-wechat {
    position: relative;
    width: 100%;
    min-height: 58px;
    padding: 14px 54px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 3px 14px rgba(62, 42, 27, 0.035);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.2;
  }
  #page-login .login-btn-primary > svg,
  #page-login .login-btn-primary > .login-email-icon,
  #page-login .login-btn-primary > .login-btn-wechat-icon-slot,
  #page-login .login-btn-primary > .login-btn-whatsapp-icon {
    position: absolute;
    left: 22px;
    width: 24px;
    height: 24px;
  }
  #page-login .login-btn-apple > svg { width: 27px; height: 27px; }
  #page-login .login-btn-google,
  #page-login .login-btn-whatsapp,
  #page-login .login-btn-wechat {
    border: 1px solid rgba(74, 60, 48, 0.08);
    background: #fff;
    color: #211E1B;
  }
  #page-login .login-btn-email {
    border: 1.5px solid #E97936;
    background: rgba(255,255,255,0.62);
    color: #D96E2D;
    box-shadow: none;
  }
  #page-login .login-btn-email .login-email-icon { color: #E97936; }
  #page-login .login-or-divider { gap: 14px; margin: 5px 0; }
  #page-login .login-or-divider .login-or-line { background: rgba(80, 61, 46, 0.09); }
  #page-login .login-or-divider .login-or-label {
    color: #5E5750;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
  }
  #page-login .login-guest-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    color: #35312D;
    font-size: 16px;
    font-weight: 650;
  }
  #page-login .login-guest-btn:active { background: rgba(62,49,39,0.05); }
  #page-login .login-guest-icon { width: 21px; height: 21px; flex-shrink: 0; }
  #page-login .login-btn-wechat-icon-slot svg { width: 25px; height: 25px; }
  #page-login .login-legal {
    flex: 0 0 auto;
    padding: 8px 24px max(24px, calc(env(safe-area-inset-bottom, 0px) + 18px));
    text-align: center;
  }
  #page-login .login-legal p { color: #514A44; font-size: 12px; line-height: 1.5; }
  #page-login .login-legal a { color: #D96E2D; text-underline-offset: 3px; }
  @media (max-height: 760px) {
    #page-login .login-page-main { padding-top: 24px; }
    #page-login .login-brand { margin-bottom: 24px; }
    #page-login .login-brand-logo { width: 88px; height: 88px; }
    #page-login .login-brand-title { margin-top: 14px; font-size: 32px; }
    #page-login .login-brand-tagline { margin-top: 6px; font-size: 14px; }
    #page-login .login-btn-primary,
    #page-login .login-btn-whatsapp,
    #page-login .login-btn-wechat { min-height: 52px; }
    #page-login .login-guest-btn { margin-top: 16px; }
  }
  .login-btn-whatsapp {
    background-color: #fff;
    border-color: #dadce0;
    color: #1f1f1f;
  }
  .login-btn-whatsapp .login-btn-whatsapp-icon,
  .login-btn-whatsapp .login-btn-whatsapp-icon path {
    fill: #25D366;
  }
  .login-btn-wechat {
    background-color: #fff;
    border-color: #dadce0;
    color: #1f1f1f;
  }
  .login-btn-wechat-icon-slot,
  .wx-auth-icon-slot { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
  .wechat-icon-svg path { fill: #07C160; }
  .wx-auth-hero { margin-bottom: 24px; }
  .wx-auth-icon-wrap {
    width: 72px; height: 72px; border-radius: 18px; background: #07C16014;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  }
  .wx-app-hint { text-align: center; margin: 2px 0 24px; font-size: 13px; color: #5C6B63; line-height: 1.45; }
  .wx-authorize-btn:not(:disabled) { background-color: #07C160; color: #fff; }
  .wx-authorize-btn:disabled { background-color: #E8ECE9; color: #9AA8A0; cursor: not-allowed; }
  .wx-authorize-btn.is-loading { pointer-events: none; opacity: 0.88; }
  .wx-privacy { font-size: 11px; color: rgba(92,107,99,0.65); line-height: 1.5; margin-top: auto; padding-top: 24px; text-align: center; }
  .login-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.15s ease, opacity 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
  }
  .login-btn-primary:active { transform: scale(0.98); }
  .login-btn-apple {
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
  }
  .login-btn-google {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
  }
  .login-btn-email {
    background: #f7faf8;
    color: #1f1f1f;
    border: 1px solid #e0e7eb;
  }
  .login-btn-email .material-symbols-outlined { color: #5c6b63; }
  .login-more-trigger {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 12px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #5C6B63;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .login-more-trigger:active { color: #16211D; }
  #login-more-backdrop { z-index: 130; }
  #login-more-sheet.bottom-sheet { z-index: 131; padding: 0; border-radius: 1.25rem 1.25rem 0 0; max-height: min(70vh, 520px); }
  #login-more-sheet .login-more-sheet-inner {
    padding: 0 20px max(20px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  }
  #login-more-sheet-content { display: flex; flex-direction: column; gap: 12px; }
  .login-more-sheet-cancel {
    width: 100%;
    border: none;
    background: transparent;
    padding: 14px 12px 4px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #5C6B63;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }
  .login-more-sheet-cancel:active { color: #16211D; }
  .login-or-divider { display: flex; align-items: center; gap: 16px; margin: 8px 0; }
  .login-or-divider .login-or-line { flex: 1; height: 1px; background: rgba(0,0,0,0.08); }
  .login-or-divider .login-or-label {
    font-size: 12px; font-weight: 600; color: #9CA3AF;
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  .wa-send-code-btn:not(:disabled) {
    background-color: #25D366;
    color: #fff;
  }
  .wa-send-code-btn:disabled {
    background-color: #E8ECE9;
    color: #9AA8A0;
    cursor: not-allowed;
  }
  .wa-send-code-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
  }
  .wa-resend-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
  }
  .wa-change-number {
    color: #128C7E;
    font-size: 14px;
    font-weight: 600;
  }
  .wa-phone-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  @media (min-width: 380px) {
    .wa-phone-row { flex-direction: row; align-items: flex-end; gap: 0.625rem; }
  }
  .wa-country-field { flex-shrink: 0; }
  @media (min-width: 380px) {
    .wa-country-field { width: 10.5rem; max-width: 42%; }
  }
  .wa-field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #5C6B63;
    margin-bottom: 0.375rem;
    margin-left: 0.125rem;
  }
  .wa-field {
    width: 100%;
    height: 52px;
    padding: 0 1rem;
    box-sizing: border-box;
    border: none;
    border-radius: 12px;
    background: #F3F4F3;
    font-size: 16px;
    font-weight: 500;
    color: #16211D;
    box-shadow: none;
    transition: background 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
  }
  .wa-field::placeholder { color: #9AA8A0; font-weight: 400; }
  .wa-field:focus,
  .wa-field:focus-visible {
    outline: none;
    background: #ECEEEC;
  }
  .wa-country-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    padding-right: 0.75rem;
    cursor: pointer;
    text-align: left;
  }
  .wa-country-trigger.is-placeholder { color: #9AA8A0; }
  .wa-country-trigger .wa-chevron {
    font-size: 20px;
    color: #9AA8A0;
    flex-shrink: 0;
  }
  .wa-country-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wa-phone-input-wrap { flex: 1; min-width: 0; }
  #wa-country-sheet.bottom-sheet {
    max-height: min(72vh, 640px);
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 1.125rem 1.125rem 0 0;
    z-index: 200;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }
  #wa-country-sheet.bottom-sheet.is-dragging { transition: none; }
  #wa-country-backdrop { z-index: 199; }
  .wa-country-sheet-drag {
    flex-shrink: 0;
    padding: 0.625rem 1.25rem 0.25rem;
    touch-action: none;
    cursor: grab;
  }
  .wa-country-sheet-handle {
    width: 2.25rem;
    height: 0.25rem;
    margin: 0 auto;
    background: #D8EAE0;
    border-radius: 999px;
  }
  .wa-country-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 1rem 0.75rem 1.25rem;
    flex-shrink: 0;
  }
  .wa-country-sheet-title {
    font-family: var(--app-font-headline);
    font-weight: 700;
    font-size: 1.0625rem;
    color: #16211D;
    margin: 0;
    flex: 1;
    min-width: 0;
  }
  .wa-country-sheet-done {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #128C7E;
    font-size: 17px;
    font-weight: 600;
    padding: 0.5rem 0.625rem;
    cursor: pointer;
    border-radius: 8px;
  }
  .wa-country-sheet-done:active { background: #F0F5F2; }
  .wa-country-sheet-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1.25rem 0.75rem;
    padding: 0 1rem;
    height: 44px;
    background: #F3F4F3;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .wa-country-sheet-search-wrap .material-symbols-outlined {
    font-size: 20px;
    color: #9AA8A0;
  }
  .wa-country-sheet-search {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #16211D;
    outline: none;
  }
  .wa-country-sheet-search::placeholder { color: #9AA8A0; }
  .wa-country-sheet-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
  .wa-country-row {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto 2rem;
    align-items: center;
    gap: 0;
    width: 100%;
    min-height: 48px;
    padding: 0 1.25rem;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #EBEFEC;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
  }
  .wa-country-row:last-child { border-bottom: none; }
  .wa-country-row:active { background: #F5F8F6; }
  .wa-country-row-flag {
    font-size: 1.375rem;
    line-height: 1;
    text-align: center;
    padding-right: 0.625rem;
  }
  .wa-country-row-name {
    font-size: 16px;
    font-weight: 500;
    color: #16211D;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.75rem;
  }
  .wa-country-row-dial {
    font-size: 16px;
    font-weight: 500;
    color: #5C6B63;
    text-align: right;
    font-variant-numeric: tabular-nums;
    padding: 0.75rem 0.75rem 0.75rem 0.875rem;
    border-left: 1px solid #E3EAE6;
    min-width: 3.5rem;
  }
  .wa-country-row-check {
    font-size: 22px;
    color: #25D366;
    opacity: 0;
    justify-self: center;
    font-variation-settings: 'FILL' 1, 'wght' 600;
    padding-left: 0.25rem;
  }
  .wa-country-row.is-selected { background: #F8FBF9; }
  .wa-country-row.is-selected .wa-country-row-check { opacity: 1; }
  .wa-country-row.is-selected .wa-country-row-name { font-weight: 600; }
  .wa-country-sheet-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 15px;
    color: #9AA8A0;
  }
  .wa-country-sheet-empty.hidden { display: none; }

  /* Home offer — friendly, lightweight and consistent with the warm discovery UI */
  #page-home .home-top-banner .home-dining-credits {
    gap: 8px;
    min-height: 48px;
    padding: 7px 10px;
    border: 1px solid #E9E1DA;
    border-radius: 13px;
    background: #FBF7F3;
    box-shadow: 0 2px 8px rgba(72,58,48,.035);
    color: #352820;
  }
  #page-home .home-top-banner .home-dining-credits:active {
    background: #F7F1EB;
    transform: scale(.99);
  }
  .home-dining-credits-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #E9783A;
    color: #fff;
    box-shadow: none;
  }
  .home-dining-credits-icon .material-symbols-outlined { font-size: 16px; font-variation-settings: 'FILL' 1; }
  #page-home .home-top-banner .home-dining-credits-title {
    color: #352820;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #page-home .home-top-banner .home-dining-credits-desc {
    color: #806B5E;
    font-size: 9px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #page-home .home-top-banner .home-dining-credits-cta {
    min-height: 26px;
    padding: 0;
    color: #C75B24;
    font-size: 10px;
    font-weight: 760;
  }
  #page-home .home-top-banner .home-dining-credits-cta .material-symbols-outlined { color: #C75B24; }

  /* Detail creator byline and the separate more-videos view */
  .chat-detail-more-videos {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    min-height: 30px;
    padding: 0 1px 0 8px;
    color: #C55A24;
    font-size: 11px;
    font-weight: 760;
  }
  .chat-detail-more-videos .material-symbols-outlined { font-size: 17px; }
  .chat-creator-avatar {
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg,#F7A267,#E66C2C);
    color: #fff;
    font-size: 11px;
    font-weight: 820;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  }
  .chat-detail-video-source { gap: 8px; }
  .chat-detail-video-source strong { color: #352C27; font-size: 12px; }
  .chat-detail-video-source small { color: #9A8171; font-size: 9px; }
  .chat-creator-list-backdrop {
    position: fixed;
    inset: 0;
    z-index: 294;
    display: none;
    background: rgba(38,28,22,.34);
    backdrop-filter: blur(2px);
  }
  .chat-creator-list-backdrop.active { display: block; }
  .chat-creator-list-sheet {
    position: fixed;
    inset: 0;
    z-index: 295;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #F8F4F0;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.2,.8,.2,1);
  }
  .chat-creator-list-sheet.active { transform: translateX(0); }
  .chat-creator-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 86px;
    padding: max(16px,calc(env(safe-area-inset-top,0px) + 10px)) 14px 12px;
    border-bottom: 1px solid #F0DFD2;
    background: #FFF4EA;
  }
  .chat-creator-list-restaurant { color: #9B6D51; font-size: 10px; font-weight: 680; }
  .chat-creator-list-title { margin-top: 4px; color: #30231D; font-size: 20px; font-weight: 820; }
  .chat-creator-list-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #F0DFD2;
    color: #56443A;
  }
  .chat-creator-list-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    align-content: start;
    gap: 11px;
    overflow-y: auto;
    padding: 14px 12px max(24px,env(safe-area-inset-bottom,0px));
    -webkit-overflow-scrolling: touch;
  }
  .chat-creator-list-card { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(73,48,34,.07); }
  .chat-creator-list-video { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #241B16; }
  .chat-creator-list-video video { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
  .chat-creator-list-play { position: absolute; inset: 7px 7px auto auto; display: grid; place-items: center; color: #F27126; }
  .chat-creator-list-play .material-symbols-outlined { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.62); border-radius: 50%; background: transparent; color: rgba(255,255,255,.82); font-size: 19px; font-variation-settings: 'FILL' 1; text-shadow: 0 1px 5px rgba(0,0,0,.46); }
  .chat-creator-list-source { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px; }
  .chat-creator-list-source > span:last-child { min-width: 0; }
  .chat-creator-list-source strong,.chat-creator-list-source small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chat-creator-list-source strong { color: #372D27; font-size: 10px; font-weight: 780; }
  .chat-creator-list-source small { margin-top: 2px; color: #9B8578; font-size: 9px; }
  @media (min-width: 720px) {
    .chat-creator-list-sheet { left: 50%; right: auto; width: 430px; transform: translateX(calc(-50% + 430px)); }
    .chat-creator-list-sheet.active { transform: translateX(-50%); }
  }
@font-face {
  font-family: 'Material Symbols Outlined';
  src: url('./material-symbols-outlined.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined' !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
