@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./assets/fonts/switzer-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./assets/fonts/switzer-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./assets/fonts/switzer-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./assets/fonts/switzer-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Switzer';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./assets/fonts/switzer-800.woff2') format('woff2');
}
:root { color-scheme: light; --ground: #f5f5f1; --ink: #25282b; --muted: #5e6266; --surface: #eaeae6; --plate: #e9eef3; --paper: #fbfbf8; --accent: #0065bd; --selected: #e0ebf5; --line: #dcdedc; --radius: 28px; --font-body:'Switzer',sans-serif; --font-heading:var(--font-body); --font-numbers:var(--font-heading); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.45 var(--font-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, label, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { font-family: var(--font-heading); }
.total-value, .count, .item-price, #option-status, .day-date { font-family: var(--font-numbers); font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
.shell { max-width: 1264px; margin: 0 auto; padding: 0 48px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; }
.brand { font-size: 28px; font-weight: 700; letter-spacing: -.055em; text-decoration: none; }
.brand span { color: var(--accent); }
.location { color: var(--muted); font-size: 16px; }
main { padding: 32px 0 0; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
h1 { font-size: clamp(40px, 4vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.055em; }
.date { display: block; color: inherit; font: inherit; }
.day-strip { display: flex; gap: 8px; }
.day-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 64px; min-height: 70px; padding: 10px 12px; border: 0; border-radius: 20px; background: transparent; color: var(--muted); font-size: 14px; }
.day-button[aria-pressed='true'] { background: var(--ink); color: var(--ground); }
.day-button:hover:not([aria-pressed='true']) { background: var(--surface); }
.day-date { font-size: 20px; line-height: 1; }
/* 4 equal control columns: 3 goals in the first 3, independent diet in the fourth. */
.controls { display: grid; grid-template-columns: 3fr 1fr; gap: 16px; margin-bottom: 32px; }
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.goals button, .vegan-face { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; min-height: 116px; padding: 16px; border: 2px solid transparent; border-radius: 24px; background: var(--surface); font-size: 24px; font-weight: 500; letter-spacing: -.035em; }
.goals .artwork, .vegan-face .artwork { flex: none; width: min(88px, calc(72px * var(--art-aspect))); }
.goals button[aria-pressed='true'] { border-color: var(--accent); background: var(--selected); color: var(--accent); }
.goals button:hover:not([aria-pressed='true']), .toggle:hover .vegan-face { background: var(--plate); }
.goal-check { position: absolute; top: 9px; right: 13px; font-size: 16px; visibility: hidden; }
.goal-check::after { content: ''; display: block; width: 5px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.goals button[aria-pressed='true'] .goal-check { visibility: visible; }
.toggle { position: relative; cursor: pointer; }
.toggle input { position: absolute; z-index: 1; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vegan-face { gap: 12px; }
.vegan-face .artwork { width: min(64px, calc(72px * var(--art-aspect))); }
.switch { display: inline-flex; align-items: center; flex-shrink: 0; width: 32px; height: 20px; border-radius: 100px; background: var(--muted); padding: 3px; }
.switch-knob { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--ground); }
.toggle input:checked + .vegan-face { border-color: var(--accent); background: var(--selected); color: var(--accent); }
.toggle input:checked + .vegan-face .switch { background: var(--accent); }
.toggle[data-vegan='true'] .switch-knob { transform: translateX(12px); }
.toggle input:focus-visible { outline: 0; }
.toggle input:focus-visible + .vegan-face { outline: 3px solid var(--accent); outline-offset: 5px; }
.receipt { padding: 32px 40px 24px; border-radius: var(--radius); background: var(--plate); touch-action: pan-y pinch-zoom; }
.plate-overview { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; min-height: 316px; }
.plate-art { width: 100%; }
.plate-summary { padding-block: 24px; }
h2 { max-width: 24ch; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
h2.is-long { font-size: clamp(28px, 2.6vw, 36px); }
.plate-side { margin-top: 14px; font-size: 20px; color: var(--muted); line-height: 1.35; }
.plate-counter { display: inline-flex; margin-top: 14px; padding: 6px 10px; border-radius: 8px; background: var(--selected); color: var(--accent); font-size: 14px; font-weight: 600; }
.plate-counter + .plate-side { margin-top: 10px; }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; font-variant-numeric: tabular-nums; }
.total-value { display: block; font-size: 32px; line-height: 1.1; font-weight: 400; letter-spacing: -.04em; white-space: nowrap; }
.total-price { color: var(--accent); font-weight: 600; }
.total-label { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.plate-actions { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; }
.alternatives { display: flex; align-items: center; gap: 20px; }
#option-status { font-size: 16px; font-variant-numeric: tabular-nums; }
.arrow { display: grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 100px; background: var(--ground); font-size: 24px; line-height: 1; }
.arrow:hover { background: var(--paper); }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 8px 0; border: 0; background: transparent; font-size: 16px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.report-button { display: block; color: var(--muted); font-weight: 400; margin-top: 12px; }
.report-sheet { width: min(560px, calc(100% - 40px)); max-height: 85dvh; overflow-y: auto; margin: auto auto 24px; padding: 28px; border: 0; border-radius: var(--radius); color: var(--ink); background: var(--paper); }
.report-sheet::backdrop { background: var(--scrim); }
.report-sheet h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.035em; }
.report-dishes { display: grid; gap: 8px; margin-top: 24px; }
.report-dish { min-height: 48px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); font-size: 16px; text-align: left; }
.report-dish:hover { background: var(--selected); }
.report-dish:disabled { cursor: wait; opacity: .65; }
#report-error:not(:empty) { margin-top: 16px; }
.report-sheet > .text-button { color: var(--muted); margin-top: 12px; }
:root { --scrim: rgb(0 0 0 / .35); }
@media (prefers-color-scheme: dark) {
  .report-sheet { color-scheme: dark; --ink: #f2f2ef; --muted: #b3b5b7; --surface: #303030; --paper: #222222; --accent: #73b9f5; --selected: #253b4e; --scrim: rgb(0 0 0 / .65); }
}
@media (max-width: 760px) {
  .report-sheet { width: 100%; max-height: 85dvh; margin: auto 0 0; padding: 24px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
}
.secondary-actions { display: flex; flex-direction: column; align-items: stretch; gap: 24px; margin-top: 24px; }
.ingredient-panel { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.ingredients-title { font-size: 24px; letter-spacing: -.035em; }
.ingredient-content { margin-top: 8px; }
.disclosure { min-width: 0; border-radius: 24px; background: var(--surface); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; min-height: 76px; list-style: none; font-size: 18px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
.disclosure-mark { font-size: 24px; line-height: 1; font-weight: 400; }
details[open] .disclosure-mark { transform: rotate(45deg); }
.disclosure-content { padding: 0 28px 28px; }
.disclosure:not([open]) .disclosure-content { display: none; }
.items { list-style: none; padding: 0; margin: 0; }
/* Keep white-backed icons blended while the item list fades between options. */
#items { mix-blend-mode: multiply; }
.item { display: grid; grid-template-columns: 112px 54px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 0; }
.item-icon { display: grid; place-items: center; width: 112px; height: 112px; }
.item-icon .artwork { width: min(100%, calc(112px * var(--art-aspect))); }
.item + .item { border-top: 1px solid var(--line); }
.serving { color: var(--accent); font-size: 14px; }
.count { display: block; font-size: 32px; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.dish-name { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.english { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.meta, .diet-tag { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.diet-tag:empty { display: none; }
.item-price { font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reason, .details { color: var(--muted); font-size: 14px; line-height: 1.5; }
.reason { padding-top: 12px; }
.relaxed-note { margin-top: 20px; }
.extra-chips { display: flex; flex-direction: column; gap: 12px; }
.extra-chip { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 16px; border: 2px solid transparent; border-radius: 16px; background: var(--ground); color: var(--ink); font-size: 15px; text-align: left; }
.extra-chip[aria-pressed='true'] { border-color: var(--accent); background: var(--selected); }
.extra-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; }
.extra-icon .artwork { width: min(100%, calc(56px * var(--art-aspect))); }
.extra-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.extra-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.extra-add { min-width: 20px; color: var(--accent); font-size: 20px; text-align: center; }
.empty h3 { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.empty p { margin-top: 16px; font-size: 16px; color: var(--muted); }
.receipt.is-empty .plate-summary > h2 { display: none; }
.receipt.is-empty .plate-art { --dish-height: 180px; opacity: .65; }
.notice { margin-top: 24px; color: var(--muted); font-size: 14px; }
.notice:empty { display: none; }
footer { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 40px 0 32px; font-size: 13px; color: var(--muted); }
footer a { white-space: nowrap; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 1050px) {
  .shell { padding-inline: 32px; }
  .goals button, .vegan-face { gap: 12px; padding-inline: 10px; font-size: 20px; }
  .goals .artwork { width: min(64px, calc(72px * var(--art-aspect))); }
  .vegan-face .artwork { width: min(48px, calc(72px * var(--art-aspect))); }
  .plate-overview { gap: 32px; }
  .receipt { padding-inline: 28px; }
  .totals { gap: 14px; }
  .total-value { font-size: 28px; }
}
@media (max-width: 760px) {
  .shell { padding-inline: 20px; }
  header { padding: 24px 0; }
  .brand { font-size: 24px; }
  .location { font-size: 14px; }
  main { padding-top: 16px; }
  .heading { align-items: end; gap: 20px; margin-bottom: 24px; }
  h1 { font-size: 44px; }
  .date { font-size: 14px; margin-top: 10px; }
  .day-strip { gap: 2px; }
  .day-button { min-width: 44px; min-height: 64px; padding: 8px; border-radius: 16px; }
  .day-date { font-size: 18px; }
  .controls { gap: 10px; margin-bottom: 24px; }
  .goals { gap: 10px; }
  .goals button, .vegan-face { min-height: 108px; flex-direction: column; gap: 6px; border-radius: 20px; padding: 12px 4px; font-size: 18px; }
  .goals .artwork, .vegan-face .artwork { width: min(64px, calc(48px * var(--art-aspect))); }
  .goal-check { top: 4px; right: 7px; font-size: 13px; }
  .vegan-face .switch { position: absolute; top: 8px; right: 8px; width: 24px; height: 15px; padding: 2px; }
  .vegan-face .switch-knob { width: 11px; height: 11px; }
  .toggle[data-vegan='true'] .switch-knob { transform: translateX(9px); }
  .vegan-face .artwork { margin-top: 8px; width: min(64px, calc(40px * var(--art-aspect))); }
  .receipt { padding: 20px 24px 20px; }
  .plate-overview { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .plate-art { --dish-height: 210px; max-width: 430px; margin: 0 auto; }
  .plate-summary { padding: 4px 0 0; }
  h2 { font-size: 32px; max-width: 24ch; }
  h2.is-long { font-size: 28px; }
  .plate-side { margin-top: 12px; font-size: 18px; }
  .totals { margin-top: 28px; gap: 16px; }
  .total-value { font-size: 30px; }
  .total-label { margin-top: 8px; font-size: 13px; }
  .plate-actions { margin-top: 28px; }
  .alternatives { gap: 12px; }
  .arrow { min-width: 44px; min-height: 44px; }
  .text-button { gap: 10px; font-size: 14px; }
  .secondary-actions { gap: 12px; margin-top: 16px; }
  summary { padding: 20px; font-size: 16px; min-height: 68px; }
  .disclosure { border-radius: 20px; }
  .ingredient-panel { padding: 24px; border-radius: 20px; }
  .disclosure-content { padding: 0 20px 24px; }
  .item { grid-template-columns: 80px minmax(0, 1fr); gap: 12px 20px; }
  .item-icon { grid-column: 1; grid-row: 1; width: 80px; height: 96px; align-self: start; }
  .item-icon .artwork { width: min(100%, calc(96px * var(--art-aspect))); }
  .item-description { grid-column: 2; grid-row: 1; }
  .serving { grid-column: 1; grid-row: 2; align-self: baseline; }
  .count { display: inline; font-size: 24px; margin-right: 6px; }
  .item-price { grid-column: 2; grid-row: 2; align-self: baseline; }
  footer { font-size: 12px; gap: 16px; padding-top: 28px; }
}
@media (max-width: 520px) {
  .heading { flex-wrap: wrap; }
  .day-strip { width: 100%; justify-content: space-between; margin-top: 4px; }
  .day-button { min-width: 52px; }
  .controls { gap: 8px; }
  .goals { gap: 8px; }
  .goals button, .vegan-face { font-size: 16px; }
  .goals .artwork { width: min(56px, calc(48px * var(--art-aspect))); }
  .vegan-face .artwork { width: min(56px, calc(40px * var(--art-aspect))); }
  .plate-art { max-width: 330px; }
}
@media (max-width: 360px) {
  .shell { padding-inline: 16px; }
  .location { font-size: 13px; }
  .receipt { padding-inline: 20px; }
  h2 { font-size: 28px; }
  h2.is-long { font-size: 24px; }
  .total-value { font-size: 26px; }
  .total-label { font-size: 12px; }
  .ingredient-panel { padding: 20px; }
  .item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; }
  .item-icon { width: 64px; }
  .extra-chip { flex-wrap: wrap; }
  footer { align-items: start; flex-direction: column; gap: 10px; }
}
/* Dietary controls share the menu's blue selection state and supplied artwork. */
.heading-actions { display:flex; align-items:center; gap:16px; }
.filter-control { position:relative; flex:none; }
.filter-toggle { position:relative; display:grid; place-items:center; width:64px; height:64px; padding:0; border:0; border-radius:50%; background:transparent; }
.filter-toggle img { grid-area:1 / 1; width:64px; mix-blend-mode:multiply; transition:opacity 180ms ease; }
.filter-on { opacity:0; }
.filter-toggle[data-active='true'] .filter-on { opacity:1; }
.filter-toggle[data-active='true'] .filter-off { opacity:0; }
.filter-count { position:absolute; right:0; top:0; min-width:20px; padding:1px 5px; border-radius:50%; background:var(--accent); color:white; font-size:12px; }
.filter-panel { position:absolute; top:calc(100% + 12px); right:0; z-index:10; width:280px; padding:22px; border-radius:24px; background:var(--paper); box-shadow:0 10px 36px #25282b24; }
.filter-panel h2 { font-size:22px; margin-bottom:12px; }
.filter-panel label { display:flex; align-items:center; gap:10px; min-height:48px; cursor:pointer; }
.filter-panel label span { color:var(--muted); font-size:14px; }
.filter-panel input { width:20px; height:20px; accent-color:var(--accent); }
.filter-panel .text-button { color:var(--accent); }
:root { --motion-ease:cubic-bezier(.22,1,.36,1); }
button, .vegan-face, .switch, .disclosure-mark { transition:transform 140ms var(--motion-ease),background-color 180ms ease,border-color 180ms ease,color 180ms ease; }
.switch-knob { transition:none; }
button:active:not(:disabled), .toggle:active .vegan-face { transform:scale(.97); }
.goals .artwork, .vegan-face .artwork { transition:transform 240ms var(--motion-ease); }
.goals button[aria-pressed='true'] .artwork, .toggle input:checked + .vegan-face .artwork { transform:translateY(-2px); }
.goal-check { visibility:visible; opacity:0; transition:opacity 180ms ease; }
.goals button[aria-pressed='true'] .goal-check { opacity:1; }
.receipt { transition:background-color 180ms ease; }

@keyframes panel-arrive { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.filter-panel:not([hidden]), .disclosure[open] .disclosure-content, dialog[open] { animation:panel-arrive 220ms var(--motion-ease); }
@media (max-width:760px) { .heading-actions { gap:8px; } .filter-toggle,.filter-toggle img { width:48px; height:48px; } }
@media (max-width:520px) { .heading-actions { width:100%; } .heading-actions .day-strip { flex:1; min-width:0; width:auto; margin:0; gap:2px; } .heading-actions .day-button { min-width:40px; padding-inline:4px; } .filter-panel { right:0; width:min(280px,calc(100vw - 48px)); } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation:none!important; transition:none!important; } }

/* The tray stays fixed. View-transition snapshots belong only to its contents. */
.receipt { position:relative; isolation:isolate; height:560px; display:flex; flex-direction:column; background:var(--plate); transition:none; }
.receipt > :not(.tray-tints) { position:relative; z-index:1; }
.plate-overview { flex:1; min-height:0; }
.plate-actions { flex:none; }
.tray-tints { position:absolute; inset:0; border-radius:inherit; overflow:hidden; z-index:0; }
.tray-tints span { position:absolute; inset:0; opacity:0; }
[data-tint='bulk'] { background:#e9eef3; }
[data-tint='cut'] { background:#e8efea; }
[data-tint='budget'] { background:#f0ede4; }
.day-strip,.goals { position:relative; isolation:isolate; }
.day-button { position:relative; z-index:1; }
.day-button[aria-pressed='true'] { background:transparent; }
.day-indicator,.mode-indicator,.pager-indicator { position:absolute; top:0; left:0; pointer-events:none; z-index:0; transform-origin:top left; }
.day-indicator { border-radius:20px; background:var(--ink); }
.mode-indicator { border:2px solid var(--accent); border-radius:24px; background:var(--selected); }
.goals button { z-index:auto; background:transparent; }
.goals button::before { content:''; position:absolute; inset:-2px; border-radius:inherit; background:var(--surface); z-index:-2; }
.goals button:hover:not([aria-pressed='true']) { background:transparent; }
.goals button:hover:not([aria-pressed='true'])::before { background:var(--plate); }
.mode-indicator { z-index:-1; }
.goals button[aria-pressed='true'] { border-color:transparent; background:transparent; }
.pager-dots { display:flex; align-items:center; gap:4px; position:relative; isolation:isolate; }
.pager-dot { position:relative; width:20px; height:32px; padding:0; border:0; background:transparent; }
.pager-dot::after { content:''; display:block; width:7px; height:7px; margin:auto; border-radius:50%; background:var(--muted); opacity:.35; }
.pager-dot[aria-pressed='true']::after { opacity:0; }
.pager-indicator { background:transparent; display:grid; place-items:center; }
.pager-indicator::after { content:''; width:20px; height:7px; border-radius:9px; background:var(--accent); }
.arrow:disabled { opacity:.35; cursor:default; }
.number-digits { display:inline-flex; vertical-align:bottom; }
.digit-cell { display:inline-block; width:.6em; height:1.15em; line-height:1.15; overflow:hidden; text-align:center; }
.digit-separator { display:inline-block; height:1.15em; line-height:1.15; }
#plate-art { touch-action:pan-y; cursor:grab; user-select:none; }
#plate-art:active { cursor:grabbing; }

::view-transition,::view-transition-group(*),::view-transition-image-pair(*),::view-transition-old(*),::view-transition-new(*) { pointer-events:none; }
::view-transition-group(*) { animation:none; transform-origin:top left; }
::view-transition-old(*),::view-transition-new(*) { animation:none; mix-blend-mode:normal; }
::view-transition-old(*) { opacity:0; }
::view-transition-new(*) { opacity:1; }
::view-transition-image-pair(*) { isolation:isolate; }
::view-transition-group(root) { animation:none; }
::view-transition-image-pair(digit-price-0),::view-transition-image-pair(digit-price-1),::view-transition-image-pair(digit-price-2),::view-transition-image-pair(digit-price-3),::view-transition-image-pair(digit-price-4),::view-transition-image-pair(digit-price-5),::view-transition-image-pair(digit-kcal-0),::view-transition-image-pair(digit-kcal-1),::view-transition-image-pair(digit-kcal-2),::view-transition-image-pair(digit-kcal-3),::view-transition-image-pair(digit-protein-0),::view-transition-image-pair(digit-protein-1),::view-transition-image-pair(digit-protein-2) { overflow:clip; }
@media(max-width:760px) {
  .receipt { height:650px; }
  .plate-overview { display:grid; grid-template-rows:240px 1fr; align-content:start; }
  .plate-summary { align-self:start; }
  .day-indicator { border-radius:16px; }
  .mode-indicator { border-radius:20px; }
}
@media(prefers-reduced-motion:reduce) {
  .tray-tints span,.switch-knob { transition:none; }
}

:root { view-transition-name:none; }

.has-view-transitions .tray-tints span { transition:opacity 300ms var(--motion-ease); }
@media(max-width:760px) {
  .plate-actions { gap:8px; }
  .alternatives { gap:6px; }
  .pager-dot { width:14px; }
  .pager-dots { gap:2px; }
  .pager-indicator::after { width:14px; }
}
@media(max-width:360px) { .alternatives .arrow { min-width:40px; } }
@media(prefers-reduced-motion:reduce) { .has-view-transitions .tray-tints span { transition:opacity 120ms ease!important; } }

/* Align the menu header and keep the selected lunch in the tray's center. */
.heading > h1 { flex:1; min-width:0; }
.heading-actions { justify-content:flex-end; flex:none; }
.heading .day-strip { margin:0; width:auto; }
.receipt { height:500px; }
.plate-overview { align-items:center; }
.plate-summary { align-self:center; }
.plate-actions { display:grid; grid-template-columns:1fr auto 1fr; }
.alternatives { grid-column:2; justify-content:center; }

@media (max-width:1050px) and (min-width:761px) {
  .heading { gap:24px; }
  .heading h1 { font-size:40px; }
  .heading-actions { gap:8px; }
  .day-button { min-width:48px; padding-inline:8px; }
}
@media (max-width:760px) {
  .heading { flex-wrap:wrap; align-items:center; }
  .heading > h1 { flex-basis:100%; }
  .heading-actions { width:100%; justify-content:space-between; }
  .heading .day-strip { flex:0 1 auto; justify-content:flex-start; gap:4px; }
  .receipt { height:650px; }
  .plate-overview { grid-template-rows:240px 1fr; }
  .plate-summary { align-self:center; }
  .plate-actions { grid-template-columns:1fr auto; }
  .alternatives { grid-column:1; justify-self:start; }

}
/* Blend the supplied white-backed food artwork into the tray surface. */
.plate-overview { mix-blend-mode:multiply; }
.report-button { align-self:flex-start; }

/* Diet is the fourth peer tile; every dietary constraint lives in its popover. */
.diet-control { min-width:0; }
.diet-tile { height:100%; }
.diet-copy { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.diet-summary { margin-top:4px; font-size:14px; line-height:1.25; letter-spacing:0; white-space:nowrap; }
.diet-tile[data-active='true'] { border-color:var(--accent); background:var(--selected); color:var(--accent); }
.diet-tile:hover { background:var(--plate); }
.diet-tile[data-active='true']:hover { background:var(--selected); }
.diet-tile .artwork { transition:transform 240ms var(--motion-ease); }
.diet-tile[aria-expanded='true'] .artwork { transform:translateY(-2px); }
.heading-actions { margin-left:auto; }
.heading .day-strip { justify-content:flex-end; }
@media(max-width:1050px) and (min-width:761px) {
  .diet-tile { gap:8px; }
  .diet-summary { font-size:12px; }
}
@media(max-width:760px) {
  .heading-actions { justify-content:flex-end; }
  .heading .day-strip { flex:0 1 auto; justify-content:flex-end; }
  .diet-copy { align-items:center; }
  .diet-summary { font-size:12px; margin-top:2px; }
  .diet-tile .artwork { margin-top:0; }
  .diet-control .filter-panel { width:min(280px,calc(100vw - 40px)); }
}
@media(prefers-reduced-motion:reduce) {
  .diet-tile .artwork { transition:none; transform:none; }
}
.controls { grid-template-columns:repeat(4,minmax(0,1fr)); }
.goals { grid-column:span 3; column-gap:inherit; }
@media(max-width:360px) { .diet-summary { font-size:11px; letter-spacing:-.02em; } }

@media(max-width:760px) {
  /* Flatten each icon against its tile before mobile scrolling composites it.
     A row-wide blend and transparent tiles can expose the source's white matte. */
  .goals button, .diet-tile {
    --tile-surface:var(--surface);
    isolation:isolate;
    background:var(--tile-surface);
    transition:transform 140ms var(--motion-ease),color 180ms ease;
  }
  .goals button::before { content:none; }
  .goals button[aria-pressed='true'], .diet-tile[data-active='true'] {
    --tile-surface:var(--selected);
    background:var(--tile-surface);
    border-color:var(--accent);
  }
  .goals button:hover:not([aria-pressed='true']), .diet-tile:hover {
    background:var(--tile-surface);
  }
  .mode-indicator { display:none; }
  .controls .artwork {
    isolation:isolate;
    mix-blend-mode:normal;
    background:var(--tile-surface);
  }
  .controls .artwork > img { mix-blend-mode:multiply; }
  header { padding-block:20px 12px; }
  main { padding-top:12px; }
  .heading { gap:14px; margin-bottom:18px; }
  .heading h1 { font-size:26px; line-height:1.15; letter-spacing:-.035em; }
  .heading .heading-actions { width:100%; margin-left:0; }
  .heading .day-strip { width:100%; flex:1; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; }
  .heading .day-button { width:100%; min-width:0; min-height:64px; padding:10px 4px; }
  .controls { margin-bottom:18px; }
  .goals button, .diet-tile { height:112px; min-height:112px; padding-block:10px; }
  .receipt { height:570px; }
  .plate-overview { grid-template-rows:210px 1fr; gap:8px; }
  .plate-art { --dish-height:190px; }
  .plate-summary { padding-top:0; }
}

/* Campus selection uses the same in-page surface as the Diet popover. */
.location-picker { position:relative; flex:none; }
.campus-toggle { display:inline-flex; align-items:center; gap:16px; max-width:160px; min-height:44px; padding:8px 12px; border:0; border-radius:12px; background:transparent; color:var(--muted); font:inherit; cursor:pointer; }
.campus-toggle:hover,.campus-toggle[aria-expanded='true'] { background:var(--surface); color:var(--ink); }
.campus-chevron { width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-4px; }
.campus-toggle[aria-expanded='true'] .campus-chevron { transform:rotate(225deg); margin-top:4px; }
.campus-panel { width:248px; }
.campus-panel [role='menuitemradio'] { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:48px; padding:12px; border:0; border-radius:12px; background:transparent; text-align:left; }
.campus-panel [role='menuitemradio']:hover { background:var(--surface); }
.campus-panel [aria-checked='true'] { background:var(--selected); color:var(--accent); }
.campus-check { width:6px; height:11px; margin-right:4px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); visibility:hidden; }
[aria-checked='true'] > .campus-check { visibility:visible; }
@media(max-width:760px) { header { gap:12px; } .campus-toggle { max-width:145px; font-size:14px; gap:12px; } }
@media(max-width:520px) { .location-picker .campus-panel { width:min(280px,calc(100vw - 40px)); } }
@media(max-width:760px) {
  /* Long published station names and multi-item meals must not collide with actions. */
  .receipt { height:auto; min-height:570px; }
  .plate-overview { grid-template-rows:210px auto; }
}

/* The Classic meal stays the same size; alternatives rest just behind it. */
.deck-navigation { display:flex; justify-content:center; margin:12px 0 0; }
.deck-navigation .alternatives { justify-content:center; }
.deck-stage { padding-top:36px; overflow:clip; }
.meal-deck { position:relative; isolation:isolate; }
.meal-deck > .receipt { transform-origin:50% 0; }
.meal-deck > #plate { z-index:3; cursor:grab; }
.meal-deck > #plate:active { cursor:grabbing; }
.meal-deck[data-stacked='true'] > .receipt { outline:2px solid var(--ground); }
.meal-deck > .deck-preview, .meal-deck > .deck-departing { position:absolute; inset:0; height:100%; min-height:0; margin:0; pointer-events:none; }
.deck-preview[data-depth='1'] { z-index:2; transform:translateY(-14px) scale(.97) rotate(-.7deg); }
.deck-preview[data-depth='2'] { z-index:1; transform:translateY(-28px) scale(.94) rotate(.7deg); }
.meal-deck > .deck-revealed { height:500px; bottom:auto; }
.deck-departing { z-index:4; }
.ingredient-panel { padding-inline:0; border-radius:0; background:transparent; }
.details-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 24px; }
.details-actions { display:flex; align-items:center; gap:24px; }
.details-actions .report-button { margin:0; }
@media(max-width:760px) {
  .meal-deck > .deck-revealed { height:auto; min-height:570px; }
  .details-heading { align-items:flex-start; }
  .details-heading .ingredients-title { flex-basis:100%; }
  .details-actions { width:100%; justify-content:space-between; gap:12px; }
}
@media(prefers-reduced-motion:reduce) {
  .deck-preview[data-depth='1'] { transform:translateY(-14px) scale(.97); }
  .deck-preview[data-depth='2'] { transform:translateY(-28px) scale(.94); }
}
