/* MyPalette: warm, appetising, quiet. One accent (paprika), herb green for good news, system fonts. */
:root {
  --bg: #fbf7f2; --surface: #ffffff; --surface-2: #f5ede4; --plate: #fffdf9;
  --ink: #2a211c; --ink-2: #5c4f47; --ink-3: #8a7a6f;
  --line: #eaded3; --line-strong: #d8c7b8;
  --accent: #c4472b; --accent-ink: #ffffff; --accent-soft: #fbe6df;
  --herb: #2f7a4d; --herb-soft: #e2f1e7; --saffron: #e0a526;
  --warn: #a8261c; --warn-soft: #fde8e5;
  --shadow: 0 1px 2px rgba(60, 35, 20, .06), 0 4px 14px rgba(60, 35, 20, .06);
  --radius: 14px; --tap: 48px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120f; --surface: #211a16; --surface-2: #2a211c; --plate: #2a211c;
    --ink: #f5ede6; --ink-2: #cdbdb1; --ink-3: #9d8d82;
    --line: #3a2f29; --line-strong: #4d3f37;
    --accent: #ff7f5e; --accent-ink: #1d0f0a; --accent-soft: #3d221a;
    --herb: #74c795; --herb-soft: #1d3326; --saffron: #f0bd4a;
    --warn: #ff8f84; --warn-soft: #3f1d1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 var(--sans); min-height: 100vh; overflow-x: hidden;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.pad { padding: 32px 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 680px; margin: 0 auto; padding: 12px 16px 4px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 600 21px/1 var(--serif); }
.mark { width: 30px; height: 30px; }
.sync { font-size: 13px; color: var(--ink-3); text-align: right; }

/* bottom tabs: within thumb reach */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; min-height: 58px; font-size: 12px; color: var(--ink-2); text-decoration: none; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.foot { display: flex; gap: 18px; justify-content: center; padding-top: 28px; padding-bottom: 24px; font-size: 14px; }
.foot a { color: var(--ink-3); }

/* cards and buttons */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .section + .section { margin-top: 16px; }
.section { margin-top: 24px; }
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.big { min-height: 60px; font-size: 18px; width: 100%; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--accent); padding-left: 8px; padding-right: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: grid; gap: 10px; }
label.btn { cursor: pointer; }
label.btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.btn:focus-within { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* hero */
.hero { padding: 18px 0 6px; }
.hero p { font-size: 18px; color: var(--ink-2); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 15px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: 15px; color: var(--ink); }
.chip.good { background: var(--herb-soft); color: var(--herb); }
.chip.bad { background: var(--warn-soft); color: var(--warn); }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chips label { position: relative; }
.pick-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 15px; }
.pick-chips input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.pick-chips input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 4px; border-radius: 12px; border: 1.5px solid var(--line-strong); font-size: 14px; line-height: 1.2; background: var(--surface); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* forms */
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 650; font-size: 17px; margin-bottom: 4px; padding: 0; }
.hint { font-size: 14px; color: var(--ink-3); margin: 0 0 10px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 16px/1.4 var(--sans);
}
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* training round */
.roundhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 12px 0 2px; }
.roundhead .muted { font-size: 14px; white-space: nowrap; }
.course { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 22px 0 8px; }
.dishes { display: grid; gap: 8px; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 12px 12px 14px; }
.dish .tap { all: unset; display: block; cursor: pointer; border-radius: 10px; min-height: 44px; }
.dish .tap:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; }
.dish .name { font-weight: 650; font-size: 17px; }
.dish .desc { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.dish .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.dish.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.dish.no { border-style: dashed; }
.dish.blocked { opacity: .55; }
.dish .side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.dish.on .tick { background: var(--accent); border-color: var(--accent); }
.tick svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-ink); stroke-width: 3; opacity: 0; }
.dish.on .tick svg { opacity: 1; }
.never { all: unset; font-size: 13px; color: var(--ink-3); padding: 8px 4px; cursor: pointer; border-radius: 8px; min-height: 28px; }
.never[aria-pressed="true"] { color: var(--warn); font-weight: 600; }
.never:focus-visible { outline: 3px solid var(--saffron); }
.heat { display: inline-flex; align-items: center; gap: 1px; }
.heat svg { width: 13px; height: 13px; fill: var(--accent); }
.heat svg.off { fill: var(--line-strong); }
.bar {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 19;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
}
.bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.bar .count { font-size: 15px; color: var(--ink-2); flex: 1; }
.has-bar { padding-bottom: 84px; }

/* reveal */
.verdict { border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.verdict.hit { background: var(--herb-soft); }
.verdict.miss { background: var(--surface-2); }
.verdict h2 { margin: 0 0 4px; }
.learned { font-family: var(--serif); font-size: 20px; line-height: 1.35; margin: 8px 0 4px; }
.guess { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.guess li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.guess li.match { border-color: var(--herb); }
.guess .n { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.guess li.match .n { background: var(--herb); color: var(--surface); }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; background: var(--herb); border-radius: inherit; }
.stat { font-size: 32px; font-weight: 700; font-family: var(--serif); }

/* reading a menu */
.capture { display: grid; gap: 10px; }
.reading { text-align: center; padding: 28px 12px; }
.spinner { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; border: 5px solid var(--surface-2); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { list-style: none; padding: 0; margin: 16px auto 0; max-width: 320px; text-align: left; display: grid; gap: 8px; color: var(--ink-3); }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.done { color: var(--herb); }
.preview { max-height: 180px; border-radius: 12px; border: 1px solid var(--line); margin: 0 auto 12px; display: block; }
.notice { border-radius: var(--radius); padding: 14px 16px; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: 15px; }
.notice strong { color: var(--warn); }
.notice.info { background: var(--surface-2); border-color: var(--line); }
.top3 { display: grid; gap: 12px; counter-reset: t; }
.pick { position: relative; padding-left: 58px; }
.pick::before { counter-increment: t; content: counter(t); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.pick .name { font-weight: 700; font-size: 19px; }
.pick .alt { color: var(--ink-3); font-size: 15px; }
.pick .why { margin-top: 6px; font-size: 15px; }
.pick .why b { color: var(--herb); }
.price { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.flag { color: var(--warn); font-weight: 600; }
.rate { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rate .btn { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.rate .btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li + li { border-top: 1px solid var(--line); }
.list-plain a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px; text-decoration: none; color: var(--ink); min-height: var(--tap); align-items: center; }

.toast { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.toast.show { opacity: 1; }

/* chip inputs (likes, dislikes, allergies, cuisines) */
.qtitle { font-family: var(--serif); font-size: clamp(26px, 7vw, 34px); font-weight: 600; margin: 0 0 4px; }
.q fieldset { margin-bottom: 18px; }
.stepper { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 10px; }
.stepper .dots { display: flex; gap: 6px; }
.stepper .dots i { width: 28px; height: 6px; border-radius: 999px; background: var(--line); }
.stepper .dots i.done { background: var(--herb); }
.stepper .dots i.now { background: var(--accent); }
.navrow { margin-top: 8px; }
.chipbox .entry { display: flex; gap: 8px; }
.chipbox .entry input { flex: 1 1 auto; min-width: 0; }
.chipbox .entry .btn { flex: none; }
.ce-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ce { display: inline-flex; align-items: stretch; border-radius: 999px; background: var(--surface-2); border: 1.5px solid transparent; max-width: 100%; }
.ce-main { all: unset; cursor: pointer; display: inline-flex; flex-direction: column; justify-content: center; padding: 6px 4px 6px 14px; min-height: 32px; line-height: 1.15; min-width: 0; }
.ce-main:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 999px; }
.ce-label { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ce-note { font-size: 11.5px; color: var(--ink-3); }
.ce-x { all: unset; cursor: pointer; width: 36px; display: grid; place-items: center; font-size: 19px; color: var(--ink-3); border-radius: 999px; }
.ce-x:hover { color: var(--warn); }
.ce-x:focus-visible { outline: 3px solid var(--saffron); }
.ce.fixed { background: color-mix(in srgb, var(--saffron) 16%, var(--surface)); }
.ce.unknown { background: var(--surface); border-style: dashed; border-color: var(--line-strong); }
.ce.unknown .ce-label { font-weight: 500; font-style: italic; }
.ce.allergy { background: var(--warn-soft); }
.ce.allergy .ce-label { color: var(--warn); }
.ce.open { border-color: var(--accent); border-style: solid; }
.fix { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.fix p { margin: 0; }
.chip.pickable { border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font: 600 15px/1.2 var(--sans); min-height: 36px; }
.chip.pickable:hover { border-color: var(--accent); }
.chip.rule { background: var(--warn-soft); color: var(--warn); }
.chip.unknown { font-style: italic; }
.btn.small-btn { min-height: 38px; padding: 6px 12px; font-size: 14px; }

/* training round */
.progressbar { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 2px 0 12px; }
.progressbar i { display: block; height: 100%; background: var(--accent); }
.menutitle { font-size: clamp(28px, 7.5vw, 38px); margin: 0 0 4px; }
.tier { font: 600 15px/1 var(--sans); color: var(--herb); letter-spacing: .04em; vertical-align: middle; margin-left: 4px; }
.scoreline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-2); margin: 4px 0 12px; }
.dotsrow { display: inline-flex; gap: 3px; }
.dotsrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dotsrow i.d1 { background: color-mix(in srgb, var(--herb) 45%, var(--surface)); }
.dotsrow i.d2 { background: color-mix(in srgb, var(--herb) 75%, var(--surface)); }
.dotsrow i.d3 { background: var(--herb); }
.guesscard { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 14px 12px; box-shadow: var(--shadow); }
.small-h { font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 10px; }
.guesscard .guess li { padding: 8px 10px; }
.pickhead { margin: 24px 0 8px; font-size: 22px; }
.itspick { font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; }
.tick { font-weight: 800; color: var(--accent-ink); font-size: 15px; }
.caution { color: var(--ink); background: color-mix(in srgb, var(--saffron) 18%, var(--surface)); border-radius: 8px; padding: 4px 8px; margin-top: 6px; font-weight: 500; }
.dish .flag { margin-top: 6px; }
.verdict { display: flex; gap: 14px; align-items: center; }
.score-big { font: 700 44px/1 var(--serif); color: var(--herb); flex: none; }
.score-big span { font-size: 22px; color: var(--ink-3); }
.verdict.miss .score-big { color: var(--ink-3); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin: 8px 0 6px; }
.bars i { flex: 1 1 0; max-width: 22px; background: var(--herb); border-radius: 4px 4px 0 0; opacity: .85; }
.offer { margin-top: 4px; }
.guess .chip { white-space: nowrap; flex: none; font-size: 13px; padding: 3px 10px; }

@media (min-width: 760px) {
  .tabs { left: 50%; right: auto; transform: translateX(-50%); width: 680px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
  .tabs a { flex-direction: row; justify-content: center; min-height: 52px; font-size: 15px; gap: 8px; }
  .bar { left: 50%; right: auto; transform: translateX(-50%); width: 680px; bottom: 52px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spinner { animation: none; border-top-color: var(--accent); }
}

/* ───────── printed menus (js/menu-view.js) ───────── */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(../assets/fonts/fraunces-latin-opsz-italic.woff2) format('woff2'); }
:root { --menu-serif: 'Fraunces', ui-serif, Georgia, serif; }

.sheet {
  --paper: #fffdf8; --pink: #2a211c; --pink-2: #5a4c43; --pacc: #8c2f1b; --prule: #d9cbbb; --ptint: rgba(140, 47, 27, .07);
  position: relative; margin: 18px -4px 0; padding: 26px 14px 18px; border-radius: 6px;
  background: var(--paper); color: var(--pink); border: 1px solid var(--prule);
  box-shadow: 0 1px 1px rgba(60, 35, 20, .05), 0 10px 30px rgba(60, 35, 20, .08);
}
.sheet[data-style="trattoria"] { --paper: #fbf6ea; --pacc: #9e2a1d; --prule: #dccfb5; --ptint: rgba(158, 42, 29, .07); }
.sheet[data-style="bistro"] { --paper: #fbf8f1; --pacc: #1f3a5f; --prule: #d5cfc2; --ptint: rgba(31, 58, 95, .07); }
.sheet[data-style="taqueria"] { --paper: #fdf5e7; --pacc: #0b6158; --prule: #e3d2b2; --ptint: rgba(11, 97, 88, .08); }
.sheet[data-style="bodega"] { --paper: #faf3e6; --pacc: #8a3b12; --prule: #dfcdb1; --ptint: rgba(138, 59, 18, .08); }
.sheet[data-style="izakaya"] { --paper: #f7f4ee; --pink: #1b1b1b; --pacc: #b0261c; --prule: #d6d0c4; --ptint: rgba(176, 38, 28, .07); }
.sheet[data-style="teahouse"] { --paper: #fdf7ec; --pacc: #9c1c20; --prule: #e0caa5; --ptint: rgba(156, 28, 32, .07); }
.sheet[data-style="taverna"] { --paper: #fbfaf6; --pacc: #1d4f8c; --prule: #cfd6df; --ptint: rgba(29, 79, 140, .07); }
.sheet[data-style="tiffin"] { --paper: #fdf6e9; --pacc: #8f3f06; --prule: #e6d0ab; --ptint: rgba(143, 63, 6, .08); }
.sheet[data-style="diner"] { --paper: #fffaf2; --pacc: #a8222a; --prule: #e5d3c3; --ptint: rgba(168, 34, 42, .07); }
.sheet[data-style="noodle"] { --paper: #fbf9f3; --pacc: #1b6449; --prule: #d4d9cc; --ptint: rgba(27, 100, 73, .08); }
.sheet[data-style="island"] { --paper: #fcf6ea; --pacc: #1d6136; --prule: #dfd3b6; --ptint: rgba(29, 97, 54, .08); }
.sheet[data-style="garden"] { --paper: #f9faf4; --pacc: #3b6326; --prule: #d5dbc8; --ptint: rgba(59, 99, 38, .08); }
.sheet[data-style="chophouse"] { --paper: #1f1b18; --pink: #f1e8dc; --pink-2: #cbbfb0; --pacc: #d6b27a; --prule: #4a4038; --ptint: rgba(214, 178, 122, .1); }
@media (prefers-color-scheme: dark) {
  .sheet, .sheet[data-style]:not([data-style="chophouse"]) { --paper: #241d19; --pink: #f3eadf; --pink-2: #cdbfb3; --prule: #43372f; --pacc: #f09a7f; --ptint: rgba(240, 154, 127, .1); box-shadow: none; }
  .sheet[data-style="trattoria"]:not(#x) { --pacc: #f29a86; } .sheet[data-style="bistro"]:not(#x) { --pacc: #9ec0ea; } .sheet[data-style="taqueria"]:not(#x) { --pacc: #6fd1c3; }
  .sheet[data-style="bodega"]:not(#x) { --pacc: #ecac7c; } .sheet[data-style="izakaya"]:not(#x) { --pacc: #ff8c80; } .sheet[data-style="teahouse"]:not(#x) { --pacc: #f0a07e; }
  .sheet[data-style="taverna"]:not(#x) { --pacc: #93bdf0; } .sheet[data-style="tiffin"]:not(#x) { --pacc: #f2b26a; } .sheet[data-style="diner"]:not(#x) { --pacc: #ff8f95; }
  .sheet[data-style="noodle"]:not(#x) { --pacc: #7fd1ad; } .sheet[data-style="island"]:not(#x) { --pacc: #86d39f; } .sheet[data-style="garden"]:not(#x) { --pacc: #a9d58b; }
  .sheet[data-style="chophouse"] { --paper: #1a1613; }
}
.sheet::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--prule); border-radius: 3px; pointer-events: none; }
.sheet[data-style="trattoria"]::before, .sheet[data-style="chophouse"]::before { border-style: double; border-width: 3px; }
.sheet[data-style="izakaya"]::before, .sheet[data-style="garden"]::before, .sheet[data-style="noodle"]::before { display: none; }

.sheet-head { text-align: center; padding: 0 8px; }
.sheet-kicker { font: 700 11.5px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--pacc); margin: 0 0 8px; }
.sheet-name { font: 600 clamp(28px, 8.4vw, 38px)/1.08 var(--menu-serif); font-optical-sizing: auto; letter-spacing: -.01em; margin: 0; color: var(--pink); }
.sheet-tag { font: italic 400 16px/1.35 var(--menu-serif); color: var(--pink-2); margin: 8px 0 0; }
.orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 4px; max-width: 220px; }
.orn i { flex: 1; height: 1px; background: var(--prule); }
.orn b { width: 7px; height: 7px; transform: rotate(45deg); background: var(--pacc); }
.sheet[data-style="izakaya"] .orn b { transform: none; width: 10px; height: 10px; border-radius: 2px; }
.sheet[data-style="diner"] .orn b, .sheet[data-style="garden"] .orn b { border-radius: 50%; transform: none; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font: 12.5px/1.4 var(--sans); color: var(--pink-2); margin: 10px 0 4px; }
.legend b { color: var(--pacc); font-weight: 700; }
.legend .chili { width: 12px; height: 12px; fill: var(--pacc); vertical-align: -1px; margin-right: 3px; }

.msec { margin-top: 24px; }
.msec-h { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 8px; text-align: center; }
.msec-k { font: italic 400 15px/1.2 var(--menu-serif); color: var(--pacc); }
.msec-t { display: flex; align-items: center; gap: 12px; width: 100%; font: 700 13px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.msec-t::before, .msec-t::after { content: ""; flex: 1; height: 1px; background: var(--prule); }
.sheet[data-style="bistro"] .msec-t { font: italic 500 21px/1.2 var(--menu-serif); letter-spacing: 0; text-transform: none; }
.sheet[data-style="izakaya"] .msec-h { align-items: flex-start; text-align: left; }
.sheet[data-style="izakaya"] .msec-t::before { content: ""; flex: 0 0 10px; height: 10px; background: var(--pacc); border-radius: 2px; }
.sheet[data-style="diner"] .msec-t { color: var(--pacc); font-weight: 800; }

.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.entry { position: relative; border-radius: 12px; }
.entry-tap, .entry-body { display: block; width: 100%; text-align: left; padding: 10px 10px 10px 12px; border-radius: 12px; color: inherit; }
.entry-tap { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 12px 10px 12px 46px; min-height: 64px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .entry-tap:hover { background: var(--ptint); } }
.entry-tap:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; }
.entry-tap:active { transform: scale(.995); }
.entry.on > .enote:first-of-type { margin-top: 8px; }
.check { position: absolute; left: 12px; top: 14px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--prule); display: grid; place-items: center; font: 800 14px/1 var(--sans); color: #fff; background: var(--paper); }
.line { display: flex; align-items: baseline; align-items: last baseline; gap: 6px; }
.dname { font: 560 18.5px/1.25 var(--menu-serif); font-optical-sizing: auto; color: var(--pink); }
.leader { flex: 1 1 16px; min-width: 16px; border-bottom: 2px dotted var(--prule); transform: translateY(-5px); }
.dprice { font: 600 17px/1.2 var(--menu-serif); font-variant-numeric: tabular-nums lining-nums; color: var(--pink); white-space: nowrap; }
.dsub { display: block; font: italic 15px/1.3 var(--menu-serif); color: var(--pink-2); margin-top: 1px; }
.ddesc { display: block; font: 14.5px/1.42 var(--sans); color: var(--pink-2); margin-top: 3px; }
.marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.mk { font: 700 11px/1 var(--sans); letter-spacing: .04em; color: var(--pacc); border: 1.25px solid currentColor; border-radius: 4px; padding: 3px 4px 2px; text-decoration: none; }
.mk-heat { display: inline-flex; gap: 1px; }
.chili { width: 15px; height: 15px; fill: var(--pacc); }
.ours-tag { display: inline-flex; align-items: center; gap: 5px; font: 800 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--pacc); border: 1.5px solid var(--pacc); border-radius: 999px; padding: 4px 9px 3px; margin-bottom: 6px; background: var(--paper); }
.ours-tag::before { content: "★"; font-size: 11px; letter-spacing: 0; }
.entry.ours .entry-tap, .entry.ours .entry-body { box-shadow: inset 3px 0 0 var(--pacc); border-radius: 4px 12px 12px 4px; }
.entry.on .entry-tap { background: var(--ptint); border-color: var(--pacc); }
.entry.on .check { background: var(--pacc); border-color: var(--pacc); color: var(--paper); }
.yours { display: block; font: 800 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--pacc); margin-top: 6px; }
.yours:empty { display: none; }
.entry.on .entry-body { background: var(--ptint); }
.entry.blocked .dname, .entry.blocked .ddesc, .entry.blocked .dprice, .entry.blocked .marks { opacity: .72; }
.entry.blocked .entry-body { padding-left: 46px; }
.enote { font: 13.5px/1.42 var(--sans); margin: -2px 10px 10px 46px; padding: 1px 0 1px 10px; border-left: 3px solid var(--prule); color: var(--pink); }
.enote.n-leave { border-left-color: var(--herb); }
.enote.n-firm { border-left-color: var(--pink-2); color: var(--pink-2); }
.enote.n-warn { border-left-color: var(--saffron); color: var(--pink-2); }
.enote.n-flag { color: var(--warn); font-weight: 600; border-left-color: var(--warn); }
.enote.n-muted { color: var(--pink-2); }
.sheet[data-style="chophouse"] .enote.n-flag { color: #ff9e96; border-left-color: #ff9e96; }
.sheet[data-style="chophouse"] .enote.n-leave { border-left-color: #74c795; }
.sheet .rate { margin: 0 10px 10px 46px; }
.sheet .rate .btn { min-height: 44px; }

/* our top 3 (training) */
.guesscard .guess li { align-items: flex-start; }
.guesscard .n { background: var(--accent); color: var(--accent-ink); margin-top: 2px; }
.gline { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.gname { font: 600 17.5px/1.25 var(--menu-serif); }
.why { font-size: 14.5px; line-height: 1.4; margin: 4px 0 0; color: var(--ink-2); }
.why b { color: var(--herb); }
.guesscard .enote { margin: 6px 0 0; --prule: var(--line-strong); --pink: var(--ink); --pink-2: var(--ink-2); }

/* our top 3 (a menu from a photo) */
.top3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pickcard { --paper: var(--surface); --pink: var(--ink); --pink-2: var(--ink-2); --pacc: var(--accent); --prule: var(--line-strong); --ptint: var(--accent-soft);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 14px 12px; box-shadow: var(--shadow); }
.pickcard .dname { font-size: 20px; font-weight: 620; }
.pickcard .enote { margin: 8px 0 0; }
.pickcard .dsub { margin-top: 0; }

/* dishes we skipped and why */
.skipped { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.skipped summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 16px; font-weight: 650; color: var(--accent); }
.skipped summary::-webkit-details-marker { display: none; }
.skipped summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font-weight: 700; flex: none; }
.skipped[open] summary::before { content: "−"; }
.skipped summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: -3px; border-radius: var(--radius); }
.skiplist { list-style: none; margin: 0; padding: 0 16px 12px; display: grid; gap: 10px; }
.skiplist li { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.skiplist b { font: 600 16.5px/1.25 var(--menu-serif); }
.skiplist span { color: var(--ink-2); }
.skiplist li.blocked span { color: var(--warn); }
