/* === tokens: pasted from docs/design/tokens.css === */
/* Menu Lens design tokens — source: Claude Design canvas https://claude.ai/artifact/Y1bQ9sxGSVYotZYSxtrXai
   Warm, appetite-led, photo-first. One accent. Light by default, dark follows the system. */
:root {
  --bg: #FBF7F2;
  --fg: #1E1714;
  --fg-muted: #6F635B;
  --surface: #FFFFFF;
  --surface-2: #F1EAE2;
  --line: #E6DDD3;
  --accent: #C2411F;
  --accent-soft: #FBE4DC;
  --on-accent: #FFFFFF;
  --danger: #B3261E;
  --danger-soft: #F9DEDC;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(30, 23, 20, 0.06), 0 4px 12px rgba(30, 23, 20, 0.06);
  --shadow-accent: 0 8px 24px rgba(194, 65, 31, 0.25);
  --font-display: 'Fraunces', Georgia, serif;
  --font-text: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --nav-h: 84px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15110F;
    --fg: #F3ECE4;
    --fg-muted: #A89A8F;
    --surface: #221C18;
    --surface-2: #2C2420;
    --line: #3A302A;
    --accent: #F07550;
    --accent-soft: #4A2419;
    --on-accent: #1E1714;
    --danger: #FF8A80;
    --danger-soft: #4A1F1C;
    --shadow-sm: none;
    --shadow-accent: none;
  }
}
:root[data-theme="dark"] {
  --bg: #15110F;
  --fg: #F3ECE4;
  --fg-muted: #A89A8F;
  --surface: #221C18;
  --surface-2: #2C2420;
  --line: #3A302A;
  --accent: #F07550;
  --accent-soft: #4A2419;
  --on-accent: #1E1714;
  --danger: #FF8A80;
  --danger-soft: #4A1F1C;
  --shadow-sm: none;
  --shadow-accent: none;
}

/* === base === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-text); font-size: 15px; line-height: 1.45; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
h1 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; font-weight: 600; letter-spacing: -0.5px; margin: 0 0 8px; }
h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.15; font-weight: 600; margin: 24px 0 12px; }
h3 { font-family: var(--font-display); font-size: 18px; line-height: 1.15; font-weight: 600; margin: 0; }
p { margin: 0 0 8px; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; color: var(--fg); }
.view { padding: 16px 20px; padding-bottom: calc(var(--nav-h) + 16px); max-width: 640px; margin: 0 auto; }
.view-fullscreen { padding: 0; max-width: none; }
[hidden] { display: none !important; }
.muted, .meta { color: var(--fg-muted); font-size: 13px; }
.local { font-family: var(--font-display); font-weight: 600; }
.tagline { color: var(--fg-muted); font-size: 15px; margin: 0 0 20px; }
.footnote { color: var(--fg-muted); font-size: 13px; margin: 16px 0 0; text-align: center; }

/* === bottom nav === */
#nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h); display: flex; justify-content: space-around; align-items: flex-start;
       padding: 10px 0 env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line); }
#nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--fg-muted); text-decoration: none; font-size: 12px; font-weight: 500; padding: 4px 16px; min-width: 64px; text-align: center; }
#nav a svg { width: 24px; height: 24px; display: block; }
#nav a.active { color: var(--accent); font-weight: 600; }

/* === buttons === */
.btn-primary { display: block; width: 100%; min-height: 56px; border: 0; border-radius: var(--radius-md);
               background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600; box-shadow: var(--shadow-accent); }
.btn-secondary { min-height: 48px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: var(--radius-md); padding: 0 16px; font-size: 15px; font-weight: 600; }
.btn-ink { display: block; width: 100%; min-height: 56px; border: 0; border-radius: var(--radius-md); background: var(--fg); color: var(--bg); font-size: 17px; font-weight: 600; }
.btn-primary:active, .btn-secondary:active, .btn-ink:active { transform: scale(.98); transition: transform 80ms; }
.btn-primary:disabled, .btn-ink:disabled { opacity: .5; box-shadow: none; }

/* === cards, forms === */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 12px; }
.card .small { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--fg-muted); }
label { display: block; font-size: 13px; font-weight: 500; color: var(--fg-muted); margin: 0 0 12px; }
label input, label textarea { display: block; width: 100%; margin-top: 6px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); font-size: 16px; color: var(--fg); }
label textarea { min-height: 200px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
label input:focus, label textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.error { color: var(--danger); font-size: 13px; margin: 12px 0 0; }

/* === login === */
.view-login { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding-bottom: 16px; }
.login-card { width: 100%; max-width: 390px; padding: 24px 20px; }
.login-card .wordmark { font-size: 34px; margin-bottom: 4px; }
.login-card .btn-primary { margin-top: 8px; }

/* === snap === */
.where-label { display: flex; align-items: center; gap: 6px; }
.where-label svg { flex: none; }
#where-main { margin-top: 8px; }
#where-main .local { font-size: 20px; line-height: 1.15; }
#where-main .tr { color: var(--fg-muted); font-size: 13px; }
#where-alts .chip, #pages .chip { cursor: pointer; }
#name-hint { display: block; width: 100%; min-height: 48px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); font-size: 16px; }
#name-hint:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.btn-hero { min-height: 172px; margin-top: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.btn-hero svg { width: 44px; height: 44px; display: block; margin-bottom: 4px; }
.btn-hero .hero-label { font-size: 22px; font-weight: 600; line-height: 1.1; }
.btn-hero .hero-hint { font-size: 13px; font-weight: 500; opacity: .85; }
#pages { margin-top: 12px; }
#pages:empty { margin-top: 0; }
#go-btn { margin-top: 12px; }
#go-hint { margin-top: 8px; }
#snap-status { margin-top: 8px; }
.dish-row { color: inherit; text-decoration: none; }
.dish-row .chevron { color: var(--fg-muted); display: flex; }

/* === stage strip, skeleton === */
.stage-strip { display: flex; gap: 8px; margin: 12px 0; }
.stage { flex: 1; text-align: center; font-size: 12px; font-weight: 600; padding: 7px 0; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--fg-muted); transition: background-color 200ms ease, color 200ms ease; }
.stage.done { background: var(--accent-soft); color: var(--accent); }
.stage.failed { background: var(--danger-soft); color: var(--danger); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: var(--radius-md); min-height: 64px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fadein 160ms ease-out; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* === dishes === */
.dish-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dish-row img, .dish-row .noimg { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-md); background: var(--surface-2); }
.dish-row .local { font-family: var(--font-display); font-size: 17px; }
.dish-row .tr { color: var(--fg-muted); font-size: 14px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); margin-right: 4px; }
.chip-avoid { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chips .chip { padding: 6px 10px; margin: 0; }
.top3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pick { position: relative; display: block; height: 150px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2) center/cover no-repeat; color: #fff; text-decoration: none; }
.pick-hero { grid-column: 1 / -1; height: 200px; }
.pick .badge { position: absolute; top: 10px; left: 10px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; }
.pick-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; background: linear-gradient(180deg, rgba(30,23,20,0) 0%, rgba(30,23,20,.85) 100%); }
.pick-text .local { font-family: var(--font-display); font-size: 18px; } .pick-hero .pick-text .local { font-size: 22px; }
.pick-text .tr { color: #fff; opacity: .9; font-size: 13px; } .pick-text p { margin: 4px 0 0; font-size: 13px; opacity: .85; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dish-card { display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--fg); }
.dish-photo { position: relative; height: 120px; border-radius: var(--radius-md); background: var(--surface-2) center/cover no-repeat; }
.dish-photo .chip { position: absolute; top: 8px; left: 8px; background: var(--surface); margin: 0; }
.dish-card .local { font-family: var(--font-display); font-size: 16px; line-height: 1.15; }
.dish-card .tr { color: var(--fg-muted); font-size: 12px; }

/* === show-waiter === */
.waiter { min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; text-align: center; padding: 20px 24px calc(24px + env(safe-area-inset-bottom)); background: #000; color: #fff; }
.waiter .local { font-family: var(--font-display); font-size: clamp(40px, 12vw, 96px); line-height: 1.02; }
.waiter .phrase { font-size: clamp(22px, 6vw, 40px); font-weight: 500; margin-top: 24px; }
.waiter .phrase.avoid { display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 999px; background: #4A1F1C; color: #FF8A80; font-size: 20px; font-weight: 600; }
.waiter .tr { opacity: .7; margin-top: 16px; font-size: 16px; }
.waiter.flip .inner { transform: rotate(180deg); }

/* === carousel === */
.carousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.carousel img { width: 85%; flex: none; scroll-snap-align: center; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); }

/* === results === */
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--fg-muted); text-decoration: none; font-size: 15px; font-weight: 500; margin: 0 0 12px -6px; min-height: 32px; }
.results-title { font-size: 28px; }
.meta-row { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.meta-row svg { flex: none; }
.chip-lang { margin-left: 2px; }
.hint { margin: 0 0 4px; }
.row-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.row-heading h2 { margin-right: auto; }
.ask-chef { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; min-height: 32px; }
.pick-skel { height: 150px; border-radius: var(--radius-lg); }
.pick-skel.pick-hero { height: 200px; }
.dish-photo.noimg { background-image: none; }
.card.notes { margin-top: 16px; }
.note { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.note + .note { margin-top: 10px; }
.note svg { flex: none; margin-top: 2px; color: var(--fg-muted); }
.pick-card { background: var(--accent-soft); border-color: transparent; }
.pick-card svg { color: var(--accent); }
.nav-fade { position: fixed; left: 0; right: 0; bottom: var(--nav-h); height: 40px; pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg)); z-index: 10; }
.failed { text-align: center; padding-top: 48px; }
.failed-glyph { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%; background: var(--danger-soft); color: var(--danger); display: flex; align-items: center; justify-content: center; }
.failed h1 { font-size: 28px; }
.failed .btn-primary { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 24px; }
.failed .btn-secondary { display: block; width: 100%; margin-top: 10px; }

/* === dish detail === */
.dish-hero { position: relative; height: 300px; margin: -16px -20px 0; background: var(--surface-2); overflow: hidden; }
.dish-hero .carousel { height: 100%; gap: 0; scrollbar-width: none; }
.dish-hero .carousel::-webkit-scrollbar { display: none; }
.dish-hero .carousel img { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.dish-hero .noimg { height: 100%; }
.dots { position: absolute; left: 0; right: 0; bottom: 36px; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.55); transition: width 160ms; }
.dots span.active { width: 18px; background: #fff; }
.back-circle { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--fg); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.sheet { position: relative; margin: -24px -20px 0; padding: 16px 20px 0; background: var(--bg); border-radius: 24px 24px 0 0; }
.photo-note { font-size: 12px; margin: 0 0 10px; }
.dish-title { font-size: 28px; margin-bottom: 4px; }
.sheet .tr { color: var(--fg-muted); margin: 0 0 10px; }
.sheet .chips { margin: 0 0 16px; }
.sheet .chips:empty { display: none; }
.sheet .card { margin-top: 12px; }
.sheet #waiter { margin-top: 24px; }
#order-box { margin-top: 12px; }
.btn-wide { display: block; width: 100%; }
.rate-row { display: flex; gap: 10px; }
.rate { width: 56px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.rate.selected, .rate:disabled.selected { background: var(--accent-soft); color: var(--accent); border-color: transparent; opacity: 1; }
.rate:disabled:not(.selected) { opacity: .4; }

/* === show-waiter chrome === */
.waiter .top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.waiter .label { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: rgba(255,255,255,.6); }
.flip-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; }
.waiter .inner { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px 0; transition: transform 200ms; }
.waiter.chef .local { font-size: clamp(34px, 9vw, 56px); line-height: 1.05; }
.waiter.chef .phrase { font-size: clamp(20px, 5.5vw, 26px); }
.waiter .bottom { display: flex; gap: 10px; }
.waiter .bottom .btn-secondary { flex: 1; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-dark { background: #1E1714; color: #fff; border-color: #3A302A; }
.btn-white { background: #fff; color: #1E1714; border-color: #fff; }

/* === motion === */
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; background: var(--surface-2); }
  .fade-in { animation: none; }
  .stage { transition: none; }
  .btn-primary:active, .btn-secondary:active, .btn-ink:active { transform: none; }
}

/* === history === */
.date-label { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--fg-muted); margin: 20px 0 10px; }
.hist-card { display: block; color: inherit; text-decoration: none; }
.hist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hist-head .local { font-size: 19px; line-height: 1.15; }
.hist-card .tr { color: var(--fg-muted); font-size: 13px; }
.hist-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.hist-row .local { font-size: 15px; }
.hist-empty { margin: 10px 0 0; }
.thumb { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--fg-muted); }
.thumb.up { background: var(--accent-soft); color: var(--accent); }
.thumb.down { background: var(--danger-soft); color: var(--danger); }

/* === profile === */
.profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.profile-head h1 { margin-bottom: 2px; }
.profile-head .meta { margin: 0; }
.btn-edit { flex: none; min-height: 44px; }
.profile-intro { margin: 0 0 12px; }
.profile-label { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.profile-label.accent { color: var(--accent); }
.profile-label.danger { color: var(--danger); }
.profile-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
#profile-ta { display: block; width: 100%; min-height: 60vh; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 15px; line-height: 1.45; resize: vertical; }
#profile-ta:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
#profile-form .btn-primary { margin-top: 12px; }

/* === notes === */
.note-link { display: inline-block; font-size: 13px; color: var(--fg-muted); margin: 0 0 12px; text-decoration: none; border-bottom: 1px dashed var(--line); }
#note-ta { display: block; width: 100%; min-height: 110px; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 16px; line-height: 1.45; resize: vertical; }
#note-ta:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
#note-list { margin-top: 20px; }
.note-card .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.note-card .meta .chip { margin-left: auto; }
.note-card.done { opacity: .7; }
.chip-done { background: var(--accent-soft); color: var(--accent); }
.note-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.note-reply { margin: 8px 0 0; padding-left: 10px; border-left: 2px solid var(--accent); color: var(--fg-muted); font-size: 14px; white-space: pre-wrap; }
