/* =====================================================================
   La Savor — design system
   The food is the star. Public pages and the customer side run on a warm
   night palette (body.night) so dish videos and photos glow; the chef
   studio and admin keep warm ivory for long working sessions.
   One terracotta accent, brass for highlights, espresso for depth.
   ===================================================================== */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary:   #b5582f;
  --primary-d: #93441f;
  --primary-t: rgba(181, 88, 47, .1);
  --brass:     #c9a46a;
  --sage:      #5f8a74;

  --ink:   #15100c;    /* dark sections, studio sidebar */
  --ink-2: #1f1813;
  --ink-3: #2b221b;
  --on-ink:   #f3ebe0;
  --on-ink-2: #b9ab9a;

  --bg:        #f7f2ea;
  --bg-2:      #efe7da;
  --surface:   #fffdf9;
  --surface-2: #faf5ee;
  --line:      #e8ded0;
  --line-2:    #d9cbb8;

  --text:   #1b1511;
  --text-2: #5a4f46;
  --muted:  #8d8277;

  --ok: #3f7d5f;  --ok-bg: #e6f0e9;
  --warn: #946114; --warn-bg: #f7ebd4;
  --bad: #ad3f2d;  --bad-bg: #f7e3dd;
  --info: #3c5f7d; --info-bg: #e5ecf1;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --pad: clamp(16px, 4vw, 56px);
  --top: 72px;
  --side: 256px;
  --shadow-sm: 0 1px 2px rgba(27, 21, 17, .04), 0 2px 10px rgba(27, 21, 17, .04);
  --shadow:    0 10px 30px rgba(27, 21, 17, .08);
  --shadow-lg: 0 24px 60px rgba(27, 21, 17, .16);

  /* legacy aliases still used by a few templates */
  --dark: var(--text); --navy: var(--ink); --secondary: var(--brass); --champagne: var(--brass); --green: var(--sage);
  --surface-3: var(--bg-2); --cream2: var(--line-2);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text-2); font: 400 14.5px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-d); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--text); font-weight: 700; line-height: 1.15; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--primary); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
b, strong { color: var(--text); font-weight: 600; }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.serif { font-family: var(--serif); color: var(--text); }
.gold, .red, .accent { color: var(--primary); }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(27, 21, 17, .18); border-radius: 10px; }
svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; }
[hidden] { display: none !important; }

/* ---------- Layout primitives ---------- */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.split-wide { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.wrap { max-width: 1320px; margin: 0 auto; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split-wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
@media (max-width: 700px) { .hide-sm { display: none !important; } }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; height: var(--top); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 0 var(--pad); background: rgba(247, 242, 234, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(27, 21, 17, .06); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--brass); font: italic 600 19px/1 var(--serif); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font: 700 23px/1 var(--serif); color: var(--text); letter-spacing: -.01em; }
.brand-name b span { color: var(--primary); }
.brand-name .brand-la { font: italic 500 .62em/1 var(--serif); color: var(--brass); margin-right: .28em; letter-spacing: .01em; }
.brand-name small { display: none; }
.nav { display: flex; justify-content: center; gap: 4px; }
.nav a { color: var(--text-2); padding: 9px 16px; border-radius: 999px; font: 500 14px/1 var(--sans); }
.nav a:hover { color: var(--text); background: rgba(27, 21, 17, .05); }
.nav a.active { color: var(--text); background: rgba(27, 21, 17, .07); font-weight: 600; }
.top-actions { display: flex; gap: 8px; align-items: center; justify-self: end; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: transparent; border: 0; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: rgba(27, 21, 17, .06); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.dot-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font: 700 10px/17px var(--sans); text-align: center; border: 2px solid var(--bg); }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .site-head { grid-template-columns: auto 1fr auto; gap: 8px; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  body.nav-open .nav { display: flex; flex-direction: column; position: absolute; top: var(--top); left: 0; right: 0; padding: 10px var(--pad) 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  body.nav-open .nav a { padding: 13px 14px; border-radius: var(--r-sm); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: 600 13.5px/1 var(--sans); transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .1s;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); color: #fff; box-shadow: 0 8px 22px rgba(181, 88, 47, .28); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(27, 21, 17, .05); border-color: transparent; color: var(--text); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(173, 63, 45, .35); color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.btn-ok { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-ok:hover { background: #4b7360; border-color: #4b7360; color: #fff; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 12.5px; }
.btn-lg { height: 52px; padding: 0 30px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; cursor: pointer; }
.link-btn:hover { color: var(--primary-d); }
form.inline { display: inline; }
.go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--text); }
.go svg { width: 15px; height: 15px; transition: transform .2s; }
.go:hover { color: var(--primary); }
.go:hover svg { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) var(--pad); }
.section.tight { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); }
.section.alt, .section.cream { background: var(--bg-2); }
.section.white { background: var(--surface-2); }
.section.dark { background: var(--ink); color: var(--on-ink-2); }
.section.dark h2, .section.dark h3, .section.dark b { color: #fff; }
.eyebrow, .script { display: block; font: 600 11.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section.dark .eyebrow { color: var(--brass); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; max-width: 720px; }
.sec-head p { margin: 10px 0 0; max-width: 560px; }
.sec-title { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-title h2 { margin: 0; }
.sec-title p { margin: 12px auto 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; }
.lead { font-size: 16.5px; line-height: 1.7; color: var(--text-2); max-width: 560px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.card-tight { padding: 14px; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -22px -22px 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 18px; }
.card-gold { border-color: rgba(181, 88, 47, .22); background: linear-gradient(160deg, #fdf3ea, var(--surface) 60%); }
.card-dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink-2); }
.card-dark h2, .card-dark h3, .card-dark b { color: #fff; }
.panel-title { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

/* ---------- Badges, tags, chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11.5px/1 var(--sans); white-space: nowrap; background: var(--bg-2); color: var(--text-2); }
.badge svg { width: 12px; height: 12px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-gold { background: #f3e6cd; color: #7a5a1f; }
.badge-red { background: var(--primary); color: #fff; }
.badge-green { background: var(--sage); color: #fff; }
.badge-dark { background: rgba(21, 16, 12, .72); color: #fff; backdrop-filter: blur(6px); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; background: var(--bg-2); color: var(--text-2); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 13px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: .2s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rating { color: #a8823f; font-size: 13px; white-space: nowrap; font-weight: 600; }
.rating .muted { color: var(--muted); font-weight: 400; }

/* ---------- Forms ---------- */
label, .label { display: block; font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 7px; }
.field { margin-bottom: 18px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field-error { color: var(--bad); font-size: 12.5px; margin: 6px 0 0; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date],
input[type=time], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 15px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); font: 400 14px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(181, 88, 47, .12); }
input::placeholder, textarea::placeholder { color: #b0a597; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, #8d8277 50%), linear-gradient(135deg, #8d8277 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
input[type=file] { width: 100%; padding: 12px; background: var(--surface-2); border: 1.5px dashed var(--line-2); border-radius: var(--r-sm); color: var(--text-2); font-size: 13px; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text-2); font-size: 14px; cursor: pointer; margin: 0; }
.check input { margin-top: 2px; flex: 0 0 auto; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.check-tile { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 500; color: var(--text); font-size: 14px; margin: 0; transition: .2s; }
.check-tile:hover { border-color: var(--text-2); }
.check-tile:has(input:checked) { border-color: var(--primary); background: #fcf2ea; box-shadow: 0 0 0 3px rgba(181, 88, 47, .08); }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { display: grid; gap: 0 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-prefix input { padding-left: 36px; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border-radius: 999px; flex-wrap: wrap; }
.segmented label { margin: 0; }
.segmented input { display: none; }
.segmented span { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; color: var(--text-2); cursor: pointer; font-weight: 600; font-size: 13px; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.rep-row { margin-bottom: 8px; flex-wrap: nowrap; }
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.filter-bar .search { flex: 1 1 260px; position: relative; }
.filter-bar .search input { padding-left: 44px; border-radius: 999px; }
.filter-bar .search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.filter-bar select { width: auto; border-radius: 999px; }

/* ---------- Flash & alerts ---------- */
.flash-stack { position: fixed; top: calc(var(--top) + 12px); right: 18px; z-index: 200; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--ink); box-shadow: var(--shadow-lg); color: #fff; font-weight: 500; font-size: 14px; animation: flashIn .3s ease-out; }
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; background: var(--brass); }
.flash-success::before { background: #7fc29b; }
.flash-error::before { background: #f08a75; }
.flash-info::before { background: #8fb3d4; }
.flash button { margin-left: auto; background: none; border: 0; color: var(--on-ink-2); cursor: pointer; font-size: 20px; line-height: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } }
.alert { padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.alert-warn { background: var(--warn-bg); border-color: #efd7a8; color: #6b4708; }
.alert-bad { background: var(--bad-bg); border-color: #efc4ba; color: #86291b; }
.alert-ok { background: var(--ok-bg); border-color: #c2dfcc; color: #22573b; }
.alert-info { background: var(--info-bg); border-color: #c9d8e5; color: #274b6b; }
.alert a { font-weight: 600; }

/* ---------- Allergy box ---------- */
.allergy-box { border: 1px solid #efc4ba; background: #fcf1ed; border-radius: var(--r); padding: 16px 18px; }
.allergy-box h4 { color: var(--bad); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 700 11.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.allergy-box pre { margin: 0; font: 400 14px/1.7 var(--sans); white-space: pre-wrap; color: var(--text); }
.allergen-warn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--bad-bg); color: var(--bad); font: 600 11.5px/1.2 var(--sans); }
.allergen-warn svg { width: 13px; height: 13px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
.table td b { color: var(--text); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Stats ---------- */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat .k { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat .v { font: 700 30px/1.1 var(--serif); color: var(--text); margin-top: 10px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.stat .s a { font-weight: 600; }
.stat-gold, .stat.w-red, .stat.w-dark { background: var(--ink); border-color: var(--ink); }
.stat.w-green { background: #e9f1ec; border-color: #d3e4da; }
.stat.w-amber { background: #f7eddc; border-color: #ecdcc0; }
.stat-gold .k, .stat.w-red .k, .stat.w-dark .k { color: var(--on-ink-2); }
.stat-gold .v, .stat.w-red .v, .stat.w-dark .v { color: #fff; }
.stat-gold .s, .stat.w-red .s, .stat.w-dark .s { color: var(--on-ink-2); }
.stat-gold .s a, .stat.w-red .s a, .stat.w-dark .s a { color: var(--brass); }
.stat-gold .btn, .stat.w-red .btn, .stat.w-dark .btn { background: #fff; border-color: #fff; color: var(--text); }
.stat .spark { display: none; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 12px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bars .bar .pair { display: flex; gap: 4px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bars .bar i { display: block; width: 100%; max-width: 40px; border-radius: 6px 6px 2px 2px; background: var(--primary); min-height: 3px; }
.bars .bar i.out { background: var(--line-2); }
.bars .bar span { font-size: 12px; color: var(--muted); }
.bars .bar b { font: 600 11px/1 var(--sans); color: var(--text-2); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); margin-right: 6px; vertical-align: -1px; }
.legend i.out { background: var(--line-2); }

/* ---------- Media ---------- */
.cover-img { width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; font: 600 15px/1 var(--sans); color: #fff; background: linear-gradient(135deg, #b5582f, #c9a46a); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 18px; height: 18px; }
.avatar-lg { width: 96px; height: 96px; font-size: 30px; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.dish-thumb { flex: 0 0 auto; object-fit: cover; border-radius: 8px; background: var(--bg-2); display: inline-block; }
.no-photo { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: rgba(21, 16, 12, .7); color: #fff; font: 600 9.5px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ph { display: grid; place-items: center; background: var(--bg-2); color: var(--muted); }
[data-video] video.hover-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity .4s; }
[data-video] video.hover-vid.on { opacity: 1; }
.play-badge { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 16, 12, .6); color: #fff; backdrop-filter: blur(6px); }
.play-badge svg { width: 12px; height: 12px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); min-height: min(86vh, 820px); display: flex; align-items: flex-end; padding: clamp(100px, 14vw, 180px) var(--pad) clamp(40px, 6vw, 72px); }
.hero > video, .hero > img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 11, 8, .86) 0%, rgba(15, 11, 8, .55) 45%, rgba(15, 11, 8, .15) 100%), linear-gradient(0deg, rgba(15, 11, 8, .7), transparent 50%); }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; display: grid; gap: 28px; }
.hero h1 { color: #fff; font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; max-width: 820px; margin: 0; }
.hero h1 em { color: var(--brass); }
.hero .lead { color: var(--on-ink-2); font-size: clamp(15px, 1.4vw, 18px); margin: 0; }
.hero .eyebrow { color: var(--brass); margin: 0; }
.finder { display: flex; align-items: center; gap: 0; background: var(--surface); border-radius: 999px; padding: 6px; max-width: 680px; box-shadow: var(--shadow-lg); }
.finder label { margin: 0; flex: 1; min-width: 0; padding: 4px 18px; border-right: 1px solid var(--line); }
.finder label:last-of-type { border-right: 0; }
.finder small { display: block; font: 600 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.finder select { border: 0; min-height: 28px; padding: 0 26px 0 0; background-color: transparent; font-weight: 600; font-size: 14px; background-position: calc(100% - 10px) 12px, calc(100% - 5px) 12px; }
.finder select:focus { box-shadow: none; }
.finder .btn { height: 52px; padding: 0 26px; }
.hero-facts { display: flex; gap: 32px; flex-wrap: wrap; font-size: 13px; color: var(--on-ink-2); }
.hero-facts b { display: block; font: 700 24px/1.1 var(--serif); color: #fff; }
@media (max-width: 700px) {
  .hero { min-height: 640px; }
  .hero::after { background: linear-gradient(0deg, rgba(15, 11, 8, .94) 30%, rgba(15, 11, 8, .62)); }
  .finder { flex-direction: column; border-radius: var(--r); align-items: stretch; padding: 10px; }
  .finder label { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .finder .btn { margin-top: 8px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink-2); padding: clamp(56px, 8vw, 110px) var(--pad); }
.page-hero > img, .page-hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 11, 8, .92), rgba(15, 11, 8, .35)); }
.page-hero > div { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; }
.page-hero h1 { color: #fff; max-width: 760px; }
.page-hero h1 em { color: var(--brass); }
.page-hero .eyebrow { color: var(--brass); }
.page-hero .lead { color: var(--on-ink-2); }
.page-hero.plain { background: var(--bg-2); color: var(--text-2); }
.page-hero.plain::after { display: none; }
.page-hero.plain h1 { color: var(--text); }
.page-hero.plain .eyebrow { color: var(--primary); }
.page-hero.plain .lead { color: var(--text-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: st; }
.step { counter-increment: st; }
.step::before { content: "0" counter(st); display: block; font: italic 400 44px/1 var(--serif); color: var(--primary); margin-bottom: 14px; }
.section.dark .step::before { color: var(--brass); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Chef cards ---------- */
.chef-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.chef-card { display: flex; flex-direction: column; color: var(--text-2); }
.chef-card:hover { color: var(--text-2); }
.chef-card .pic { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.chef-card .pic > img, .chef-card .pic > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.chef-card:hover .pic > img { transform: scale(1.04); }
.chef-card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 11, 8, .82), rgba(15, 11, 8, 0) 55%); z-index: 1; }
.chef-card .pic .badges { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.chef-card .over { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; gap: 12px; align-items: center; color: #fff; }
.chef-card .over .avatar { width: 46px; height: 46px; border: 2px solid rgba(255, 255, 255, .85); }
.chef-card .over b { display: block; color: #fff; font: 700 21px/1.15 var(--serif); }
.chef-card .over span { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.chef-card .info { padding: 14px 4px 0; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 13px; }
.chef-card .info .from b { font-size: 15px; }
.chef-card .cuisines { padding: 4px 4px 0; font-size: 13px; color: var(--muted); }

/* ---------- Dish cards ---------- */
.dish-grid { display: grid; gap: 30px 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.dish-card { position: relative; display: flex; flex-direction: column; color: var(--text-2); }
.dish-card:hover { color: var(--text-2); }
.dish-card .pic { position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.dish-card .pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.dish-card:hover .pic > img { transform: scale(1.05); }
.dish-card .pic .badges { position: absolute; top: 12px; left: 12px; right: 56px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.dish-card .title { display: block; margin-top: 14px; font: 700 17px/1.3 var(--serif); color: var(--text); }
.dish-card .title:hover { color: var(--primary); }
.dish-card .by { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted); }
.dish-card .by a { color: var(--text-2); font-weight: 600; }
.dish-card .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); }
.dish-card.has-conflict .pic { box-shadow: inset 0 0 0 2px rgba(173, 63, 45, .5); }
.wish-btn { position: absolute; right: 12px; top: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .92); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); transition: .2s; }
.wish-btn:hover, .wish-btn.on { color: var(--primary); }
.wish-btn svg { width: 17px; height: 17px; }
.wish-btn.on svg { fill: currentColor; }
.dish-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dish-rail > * { scroll-snap-align: start; }

/* ---------- Experiences (set menus) ---------- */
.exp-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.exp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text-2); transition: box-shadow .3s, transform .3s; }
.exp-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text-2); }
.exp-card .pic { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.exp-card .pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exp-card .pic .badge { position: absolute; left: 14px; top: 14px; z-index: 2; }
.exp-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.exp-card h3 { margin: 0; }
.exp-card .courses { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.exp-card .courses li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.exp-card .courses li:last-child { border-bottom: 0; }
.exp-card .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.exp-card .who { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.price { font: 700 16px/1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .exp-grid { grid-template-columns: 1fr; } }

/* ---------- Service tiles ---------- */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.way { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 22px; }
.way > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.way::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 11, 8, .85), rgba(15, 11, 8, .05) 60%); }
.way > div { position: relative; z-index: 2; }
.way b { display: block; font: 700 22px/1.2 var(--serif); color: #fff; }
.way span { font-size: 13px; color: rgba(255, 255, 255, .8); }
.way:hover { color: #fff; }
.way:hover > img { transform: scale(1.05); }
@media (max-width: 1000px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ways { grid-template-columns: 1fr; } .way { aspect-ratio: 16 / 10; } }

/* ---------- Feature split (text + picture) ---------- */
.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature-split .pic { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4; position: relative; }
.feature-split .pic img, .feature-split .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li svg { width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }
.section.dark .ticks li svg { color: var(--brass); }
.ticks b { display: block; }
@media (max-width: 900px) { .feature-split { grid-template-columns: 1fr; } }

/* Mock "studio" preview used on the home page */
.mock { background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; box-shadow: var(--shadow-lg); }
.mock .mrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); color: var(--on-ink-2); font-size: 13px; }
.mock .mrow b { color: #fff; }
.mock .mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock .mstat { padding: 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); }
.mock .mstat span { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-2); }
.mock .mstat b { font: 700 22px/1.2 var(--serif); color: #fff; }

/* ---------- Reviews ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.quote p { margin: 0; font: italic 400 18px/1.55 var(--serif); color: var(--text); }
.quote .who { display: flex; gap: 12px; align-items: center; margin-top: auto; font-size: 13px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review .reply { margin-top: 10px; padding: 11px 14px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 14px; }

/* ---------- Chef profile ---------- */
.profile-cover { position: relative; height: clamp(260px, 38vw, 460px); background: var(--ink); overflow: hidden; }
.profile-cover > img, .profile-cover > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 11, 8, .85), rgba(15, 11, 8, .1) 60%); }
.profile-cover .inner { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; z-index: 2; display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; color: var(--on-ink-2); }
.profile-cover .inner .avatar { width: 112px; height: 112px; font-size: 36px; border: 4px solid rgba(255, 255, 255, .9); }
.profile-cover h1 { color: #fff; margin: 0 0 6px; font-size: clamp(32px, 4vw, 52px); }
.profile-cover .inner .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.profile-tabs { display: flex; gap: 4px; padding: 0 var(--pad); background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; position: sticky; top: var(--top); z-index: 20; }
.profile-tabs a { padding: 16px 16px; color: var(--text-2); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.profile-tabs a:hover { color: var(--text); }
.profile-tabs a.active { color: var(--text); border-bottom-color: var(--primary); }
.menu-card { border-radius: var(--r-lg); background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); transition: box-shadow .3s; overflow: hidden; }
.menu-card:hover { box-shadow: var(--shadow); }
.menu-card .menu-pic { position: relative; aspect-ratio: 16 / 9; margin: -24px -24px 6px; overflow: hidden; background: var(--bg-2); }
.menu-card .menu-pic img, .menu-card .menu-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu-card .courses { display: grid; gap: 8px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.menu-card .course { display: grid; grid-template-columns: 86px 1fr; gap: 12px; font-size: 14px; color: var(--text); }
.menu-card .course .c { font: 600 10.5px/1.9 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.menu-card.surprise .menu-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21, 16, 12, .5), transparent 60%); }
.wall { columns: 3 260px; column-gap: 16px; }
.wall-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.wall-item img, .wall-item video { width: 100%; height: auto; }
.wall-item .cap { padding: 14px 16px; font-size: 14px; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; font: 600 13px var(--sans); padding: 0; }
.like-btn.on { color: var(--primary); }
.like-btn.on svg { fill: currentColor; }
.book-cover { position: relative; height: 150px; margin: -22px -22px 16px; overflow: hidden; }
.book-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tutorials ---------- */
.tut-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tut-card { display: flex; flex-direction: column; color: var(--text-2); }
.tut-card:hover { color: var(--text-2); }
.tut-card .pic { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.tut-card .pic > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.tut-card:hover .pic > img { transform: scale(1.04); }
.tut-card .pic .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 253, 249, .92); color: var(--text); display: grid; place-items: center; z-index: 2; box-shadow: var(--shadow); }
.tut-card .pic .play svg { width: 18px; height: 18px; margin-left: 3px; }
.tut-card .title { margin-top: 14px; font: 700 18px/1.3 var(--serif); color: var(--text); }
.tut-card .meta { display: flex; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.player { border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player video, .player img { width: 100%; height: 100%; object-fit: cover; }
.method { list-style: none; counter-reset: m; margin: 0; padding: 0; display: grid; gap: 16px; }
.method li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; color: var(--text); }
.method li::before { content: counter(m); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--brass); font: 600 13px/1 var(--sans); }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--text); font-size: 14px; }
.ing-list li:last-child { border-bottom: 0; }

/* ---------- Dish page ---------- */
.dish-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.dish-stage .pic { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.dish-stage .pic img, .dish-stage .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dish-stage .chef-line { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nutri div { padding: 14px 10px; border-radius: var(--r-sm); background: var(--surface); text-align: center; border: 1px solid var(--line); }
.nutri b { display: block; font: 700 21px/1.1 var(--serif); }
.nutri span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 900px) { .dish-stage { grid-template-columns: 1fr; } }

/* ---------- Dashboard shell ---------- */
body.dash { background: var(--bg); }
.dash-wrap { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.dash-wrap.acc { min-height: calc(100vh - var(--top)); }
.sidebar { background: var(--ink); color: var(--on-ink-2); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; padding: 0 22px; min-height: 72px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sidebar-brand .brand-name b { color: #fff; }
.sidebar-brand .brand-mark { background: var(--brass); color: var(--ink); }
.sidebar .who { display: flex; gap: 12px; align-items: center; margin: 16px 14px 4px; padding: 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); }
.sidebar .who .n { color: #fff; font-weight: 600; line-height: 1.25; font-size: 14px; }
.sidebar .who .r { font-size: 11.5px; color: var(--on-ink-2); }
.side-nav { display: grid; gap: 2px; padding: 6px 12px 24px; }
.side-nav .grp { font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #8a7c6c; padding: 18px 12px 8px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm); color: #d9cdbf; font-weight: 500; font-size: 14px; transition: .15s; }
.side-nav a svg { width: 18px; height: 18px; opacity: .7; }
.side-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-nav a.active { background: rgba(201, 164, 106, .16); color: #fff; }
.side-nav a.active svg { opacity: 1; color: var(--brass); }
.side-nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--primary); color: #fff; font: 700 11px/22px var(--sans); text-align: center; }
.side-nav .signout { color: #b9ab9a; background: none; border: 0; font: 500 14px var(--sans); display: flex; gap: 12px; align-items: center; padding: 9px 12px; cursor: pointer; width: 100%; border-radius: var(--r-sm); }
.side-nav .signout:hover { background: rgba(255, 255, 255, .05); color: #fff; }
/* light sidebar for customers, inside the site layout */
.sidebar.light { background: transparent; color: var(--text-2); position: sticky; top: var(--top); height: calc(100vh - var(--top)); border-right: 1px solid var(--line); }
.sidebar.light .who { background: var(--surface); border: 1px solid var(--line); }
.sidebar.light .who .n { color: var(--text); }
.sidebar.light .who .r { color: var(--muted); }
.sidebar.light .side-nav .grp { color: var(--muted); }
.sidebar.light .side-nav a { color: var(--text-2); }
.sidebar.light .side-nav a:hover { background: rgba(27, 21, 17, .05); color: var(--text); }
.sidebar.light .side-nav a.active { background: var(--ink); color: #fff; }
.sidebar.light .side-nav a.active svg { color: var(--brass); }
.sidebar.light .side-nav .signout { color: var(--text-2); }
.sidebar.light .side-nav .signout:hover { background: rgba(27, 21, 17, .05); color: var(--text); }
.dash-main { min-width: 0; display: flex; flex-direction: column; }
.dash-header { position: sticky; top: 0; z-index: 40; min-height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 var(--pad); background: rgba(247, 242, 234, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dash-header .crumb { font-size: 13px; color: var(--muted); }
.dash-header .crumb b { color: var(--text); font-weight: 600; }
.dash-header .spacer { flex: 1; }
.dash-header .dash-burger { display: none; }
.main { padding: 28px var(--pad) 64px; flex: 1; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.page-head p { margin: 6px 0 0; color: var(--text-2); max-width: 640px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
@media (max-width: 1000px) {
  .dash-wrap { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; width: 280px; z-index: 100; transform: translateX(-100%); transition: transform .25s; }
  body.side-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .dash-header .dash-burger { display: inline-flex; }
  /* customers: the account menu becomes a swipeable row of tabs under the header */
  .sidebar.light { position: sticky; top: var(--top); z-index: 30; width: auto; min-width: 0; height: auto; transform: none; background: rgba(247, 242, 234, .95); backdrop-filter: blur(10px); border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sidebar.light .who, .sidebar.light .side-nav .grp, .sidebar.light .side-nav form { display: none; }
  .sidebar.light .side-nav { display: flex; gap: 6px; padding: 10px var(--pad); overflow-x: auto; scrollbar-width: none; }
  .sidebar.light .side-nav::-webkit-scrollbar { display: none; }
  .sidebar.light .side-nav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
  .sidebar.light .side-nav a svg { width: 15px; height: 15px; }
}
@media (max-width: 640px) {
  .plate { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .plate .ph-img { width: 56px; height: 56px; }
  .plate .acts .icon-btn { width: 34px; height: 34px; }
}

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); max-width: 100%; }
.tabs a { padding: 12px 14px; color: var(--text-2); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: var(--primary); }
.tabs .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bg-2); font-size: 11px; line-height: 20px; text-align: center; color: var(--text); }
.tabs a.active .n { background: var(--primary); color: #fff; }

/* ---------- Lists ---------- */
.list { display: grid; gap: 10px; }
.list-item { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: border-color .2s, box-shadow .2s; }
a.list-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); color: var(--text-2); }
.list-item .thumb { width: 60px; height: 60px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; position: relative; }
.list-item .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.list-item .t { font-weight: 600; color: var(--text); }
.list-item .s { font-size: 12.5px; color: var(--muted); }
.list-item.own { border-left: 3px solid var(--brass); }
.list-item.savor { border-left: 3px solid var(--primary); }
.date-tile { width: 56px; flex: 0 0 auto; text-align: center; border-radius: var(--r-sm); background: var(--surface-2); padding: 8px 0; border: 1px solid var(--line); }
.date-tile .m { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.date-tile .d { font: 700 22px/1.1 var(--serif); color: var(--text); margin-top: 4px; }
.empty { text-align: center; padding: 48px 22px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); background: var(--surface); }
.empty .big { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-t); color: var(--primary); }
.empty .big svg { width: 28px; height: 28px; }
.empty h3 { margin-bottom: 6px; }
.empty p { max-width: 460px; margin-left: auto; margin-right: auto; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 9px; bottom: -4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.timeline li.done::after { background: var(--primary); border-color: var(--primary); }
.timeline .t { font-weight: 600; color: var(--text); }
.timeline .s { font-size: 12.5px; color: var(--muted); }

/* ---------- Summary, key/value ---------- */
.sum { display: grid; gap: 9px; font-size: 14px; }
.sum .r { display: flex; justify-content: space-between; gap: 12px; }
.sum .r span:last-child { font-variant-numeric: tabular-nums; color: var(--text); }
.sum .total { border-top: 1px dashed var(--line-2); padding-top: 14px; margin-top: 4px; font: 700 21px/1.2 var(--serif); color: var(--text); }
.sum .total span:last-child { color: var(--primary); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); }
.paybox { max-width: 540px; margin: 40px auto; }

/* ---------- Messages ---------- */
.thread { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px; }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.msg.mine { margin-left: auto; background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg .m { font-size: 11px; opacity: .7; margin-top: 4px; }

/* ---------- Month calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal .dow { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 6px 4px; }
.cal .day { min-height: 118px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); padding: 8px; display: flex; flex-direction: column; gap: 5px; color: var(--text-2); }
a.day:hover { border-color: var(--line-2); color: var(--text-2); }
.cal .day.out { opacity: .4; }
.cal .day.today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cal .day .n { font: 600 13px/1 var(--sans); color: var(--text); }
.cal .plan { font-size: 12px; padding: 5px 7px; border-radius: 7px; background: var(--surface-2); display: flex; gap: 6px; align-items: center; color: var(--text); overflow: hidden; }
.cal .plan span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .plan.done { opacity: .55; text-decoration: line-through; }
.cal .plan.chef { background: var(--primary); color: #fff; }
.cal .plan.own { background: rgba(201, 164, 106, .28); }
.cal .plan.blocked { background: var(--bg-2); color: var(--muted); }
.cal .plan.req { background: var(--warn-bg); color: var(--warn); box-shadow: inset 2px 0 0 var(--warn); }
.cal .plan a { color: inherit; font-weight: 500; }
@media (max-width: 760px) { .cal { grid-template-columns: 1fr; } .cal .dow, .cal .day.out { display: none; } .cal .day { min-height: 0; } }

/* ---------- My day (customer food calendar) ---------- */
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.day-head h1 { margin: 0; }
.week { display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)) auto; gap: 6px; align-items: stretch; margin-bottom: 26px; }
.week a.d { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; }
.week a.d b { font: 700 20px/1 var(--serif); color: var(--text); }
.week a.d:hover { border-color: var(--line-2); }
.week a.d.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink-2); }
.week a.d.on b { color: #fff; }
.week a.d.today:not(.on) { border-color: var(--primary); }
.week .dots { display: flex; gap: 3px; height: 6px; }
.week .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.week .dots i.c { background: var(--brass); }
.week .nav-d { display: grid; place-items: center; width: 36px; border-radius: var(--r); color: var(--text-2); }
.week .nav-d:hover { background: rgba(27, 21, 17, .05); }
@media (max-width: 640px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); } .week .nav-d { display: none; } .week a.d { padding: 8px 2px; } .week a.d b { font-size: 17px; } }
.slots { display: grid; gap: 14px; }
.slot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.slot-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.slot-head h3 { margin: 0; font-size: 19px; display: flex; gap: 10px; align-items: center; }
.slot-head h3 svg { color: var(--primary); width: 18px; height: 18px; }
.plate { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--surface-2); }
.plate + .plate { margin-top: 8px; }
.plate .ph-img { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.plate .ph-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate .t { font: 700 16px/1.3 var(--serif); color: var(--text); }
.plate .s { font-size: 12.5px; color: var(--muted); }
.plate.done { opacity: .6; }
.plate.done .t { text-decoration: line-through; }
.plate .acts { display: flex; gap: 4px; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.idea { position: relative; display: block; width: 100%; border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--bg-2); color: #fff; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; }
.idea > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.idea:hover > img { transform: scale(1.05); }
.idea::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 11, 8, .82), transparent 60%); }
.idea .cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; }
.idea .cap b { display: block; color: #fff; font: 700 14px/1.25 var(--serif); }
.idea .cap span { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.idea .add { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 253, 249, .92); color: var(--text); }
.idea .add svg { width: 15px; height: 15px; }
.chef-moment { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: var(--on-ink-2); padding: 22px; display: flex; gap: 16px; align-items: center; }
.chef-moment b { color: #fff; }
.chef-moment .avatar { width: 56px; height: 56px; border: 2px solid var(--brass); }
.tempt { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; padding: 26px; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; }
.tempt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tempt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 11, 8, .9), rgba(15, 11, 8, .2)); }
.tempt > div { position: relative; z-index: 2; }
.tempt h3 { color: #fff; margin-bottom: 6px; }
.tempt p { color: rgba(255, 255, 255, .8); font-size: 13.5px; }

/* ---------- Studio ---------- */
.agenda { display: grid; gap: 8px; }
.agenda a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); color: var(--text-2); border-left: 3px solid var(--primary); }
.agenda a.own { border-left-color: var(--brass); }
.agenda a:hover { background: var(--bg-2); color: var(--text-2); }
.agenda .t { font-weight: 600; color: var(--text); }
.agenda .s { font-size: 12.5px; color: var(--muted); }
.key { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.key i { width: 10px; height: 10px; border-radius: 3px; background: var(--primary); display: inline-block; }
.key i.own { background: var(--brass); }
.key i.req { background: var(--warn); }
.key i.blocked { background: var(--line-2); }
.money-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.money-line:last-child { border-bottom: 0; }
.money-line b { font-variant-numeric: tabular-nums; }
.money-line.total { border-top: 1px solid var(--line-2); border-bottom: 0; margin-top: 4px; padding-top: 14px; font: 700 18px/1.2 var(--serif); color: var(--text); }
.amt-in { color: var(--ok); font-weight: 600; font-variant-numeric: tabular-nums; }
.amt-out { color: var(--bad); font-weight: 600; font-variant-numeric: tabular-nums; }
.client-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: box-shadow .2s, border-color .2s; }
.client-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); color: var(--text-2); }
.client-card .n { font-weight: 600; color: var(--text); }
.client-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.recipe-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.recipe-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text-2); transition: box-shadow .2s; }
.recipe-card:hover { box-shadow: var(--shadow); color: var(--text-2); }
.recipe-card .pic { aspect-ratio: 16 / 10; position: relative; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.recipe-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.recipe-card .body { padding: 14px 16px 16px; }
.recipe-card .t { font: 700 17px/1.3 var(--serif); color: var(--text); }
.recipe-card .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.setup { display: grid; gap: 8px; }
.setup a { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); }
.setup a i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-style: normal; }
.setup a.done { color: var(--muted); text-decoration: line-through; }
.setup a.done i { background: var(--sage); border-color: var(--sage); color: #fff; }
.setup a.done i svg { width: 12px; height: 12px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 11, 8, .55); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.modal-box.wide { width: min(860px, 100%); }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.auth-art { position: relative; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-ink-2); background: linear-gradient(180deg, rgba(15, 11, 8, .1), rgba(15, 11, 8, .88)), var(--auth-img, none) center / cover, var(--ink); }
.auth-art h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.08; color: #fff; }
.auth-art h2 em { color: var(--brass); }
.auth-art .script, .auth-art .eyebrow { color: var(--brass); }
.auth-form { padding: clamp(28px, 5vw, 64px); display: flex; align-items: center; background: var(--bg); }
.auth-form > div { width: 100%; max-width: 480px; }
.role-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.role-pick label { margin: 0; }
.role-pick input { display: none; }
.role-pick span { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 16px 10px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--text); }
.role-pick span i { font-style: normal; font-size: 22px; }
.role-pick span small { color: var(--muted); font-weight: 400; font-size: 12px; }
.role-pick input:checked + span { border-color: var(--primary); background: #fcf2ea; box-shadow: 0 0 0 3px rgba(181, 88, 47, .08); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-ink-2); padding: 64px var(--pad) 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; padding-bottom: 44px; max-width: 1320px; margin: 0 auto; }
.footer h4 { font: 600 11px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.footer a { display: block; color: var(--on-ink-2); padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer a.brand { display: inline-flex; padding: 0; }
.footer a.btn { display: inline-flex; padding: 0 15px; }
.footer .brand-name b { color: #fff; }
.footer .brand-mark { background: var(--brass); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; max-width: 1320px; margin: 0 auto; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Errors ---------- */
.error-page { min-height: calc(100vh - var(--top)); display: grid; place-items: center; text-align: center; padding: 40px var(--pad); position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink-2); }
.error-page > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.error-page > div { position: relative; z-index: 2; max-width: 560px; }
.error-page h1 { color: #fff; }

/* =====================================================================
   NIGHT — the customer-facing palette. Same components, darker tokens.
   ===================================================================== */
body.night {
  --primary: #e2733f; --primary-d: #c95d2b; --primary-t: rgba(226, 115, 63, .14);
  --brass: #d9b678; --sage: #7fb096;
  --bg: #0d0a08; --bg-2: #17120e; --surface: #1b1511; --surface-2: #231b15;
  --line: rgba(255, 240, 225, .08); --line-2: rgba(255, 240, 225, .17);
  --text: #f7f0e7; --text-2: #cbbdac; --muted: #8e8172;
  --ok: #7fcaa0; --ok-bg: rgba(127, 202, 160, .13);
  --warn: #e7b768; --warn-bg: rgba(231, 183, 104, .13);
  --bad: #f08a75; --bad-bg: rgba(240, 138, 117, .13);
  --info: #8fb3d4; --info-bg: rgba(143, 179, 212, .13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
body.night ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); }
body.night input::placeholder, body.night textarea::placeholder { color: #75695c; }
body.night .site-head { background: rgba(13, 10, 8, .84); border-bottom-color: var(--line); }
body.night .nav a:hover, body.night .icon-btn:hover, body.night .btn-ghost:hover { background: rgba(255, 255, 255, .07); }
body.night .nav a.active { background: rgba(255, 255, 255, .11); }
body.night .btn-dark { background: var(--text); border-color: var(--text); color: var(--bg); }
body.night .btn-dark:hover { background: #fff; border-color: #fff; color: var(--bg); }
body.night .chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
body.night .badge-gold { background: rgba(217, 182, 120, .15); color: var(--brass); }
body.night .rating { color: var(--brass); }
body.night .check-tile:has(input:checked), body.night .role-pick input:checked + span { background: var(--primary-t); }
body.night .card-gold { border-color: rgba(226, 115, 63, .3); background: linear-gradient(160deg, rgba(226, 115, 63, .14), var(--surface) 60%); }
body.night .card-dark, body.night .stat-gold, body.night .stat.w-dark, body.night .stat.w-red { background: #060504; border-color: var(--line); }
body.night .stat.w-green { background: var(--ok-bg); border-color: transparent; }
body.night .stat.w-amber { background: var(--warn-bg); border-color: transparent; }
body.night .allergy-box { border-color: rgba(240, 138, 117, .35); background: rgba(240, 138, 117, .08); }
body.night .alert-warn { background: var(--warn-bg); border-color: rgba(231, 183, 104, .3); color: #f2d39c; }
body.night .alert-bad { background: var(--bad-bg); border-color: rgba(240, 138, 117, .3); color: #f6b3a5; }
body.night .alert-ok { background: var(--ok-bg); border-color: rgba(127, 202, 160, .3); color: #a9dcbf; }
body.night .alert-info { background: var(--info-bg); border-color: rgba(143, 179, 212, .3); color: #b8cfe3; }
body.night .wish-btn, body.night .idea .add, body.night .tut-card .pic .play { background: rgba(13, 10, 8, .62); color: #fff; backdrop-filter: blur(8px); }
body.night .wish-btn.on { color: var(--primary); }
body.night .sidebar.light .side-nav a:hover { background: rgba(255, 255, 255, .05); }
body.night .sidebar.light .side-nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--primary); }
body.night .sidebar.light .side-nav .signout:hover { background: rgba(255, 255, 255, .05); }
body.night .week a.d.on { background: var(--primary); border-color: var(--primary); color: rgba(255, 255, 255, .8); }
body.night .week .nav-d:hover { background: rgba(255, 255, 255, .06); }
body.night .msg.mine { background: var(--primary); border-color: var(--primary); }
body.night .method li::before { background: var(--surface-2); }
body.night .flash { background: var(--surface-2); border: 1px solid var(--line-2); }
body.night .footer { background: #070504; border-top: 1px solid var(--line); }
body.night .section.dark { background: #070504; }
@media (max-width: 1000px) { body.night .sidebar.light { background: rgba(13, 10, 8, .94); } }
@media (max-width: 980px) { body.night.nav-open .nav { background: var(--bg-2); } }

/* ---------- Phone tab bar (Instagram-style) ---------- */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(9, 7, 5, .94); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font: 600 10.5px/1 var(--sans); }
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { color: var(--primary); }
.tabbar .avatar { width: 25px; height: 25px; font-size: 10px; }
.tabbar a.active .avatar { box-shadow: 0 0 0 2px var(--primary); }
@media (max-width: 980px) {
  .tabbar { display: grid; }
  body.night { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.night .flash-stack { top: calc(var(--top) + 8px); }
}

/* ---------- Shared bits for the food-first pages ---------- */
.badge-instant { background: var(--primary-t); color: var(--primary); }
.badge-glass { background: rgba(10, 8, 6, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.seats { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.seats i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.handle { color: var(--muted); font-weight: 500; }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; vertical-align: -3px; }
.verified svg { width: 11px; height: 11px; stroke-width: 3; }
.count-heart { display: inline-flex; gap: 5px; align-items: center; }
.count-heart svg { width: 15px; height: 15px; fill: currentColor; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.glass { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* =====================================================================
   THE FEED — full-screen dishes you scroll like reels
   ===================================================================== */
body.feed-page { overflow: hidden; }
body.feed-page main { height: calc(100dvh - var(--top)); }
.feed-wrap { position: relative; height: 100%; overflow: hidden; display: grid; grid-template-columns: 250px minmax(0, 1fr) 380px; background: #050403; }
.feed-backdrop { position: absolute; inset: -60px; z-index: 0; background: center / cover no-repeat; filter: blur(46px) saturate(1.35) brightness(.42); transform: scale(1.08); transition: background-image .7s ease; }
.feed-wrap::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(5, 4, 3, .75) 100%); pointer-events: none; }
.feed-side, .feed, .feed-info { position: relative; z-index: 1; min-width: 0; }

.feed-side { padding: 26px 16px 26px 26px; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 4px; }
.feed-side::-webkit-scrollbar { display: none; }
.feed-side .grp { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .45); padding: 16px 12px 8px; }
.feed-side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: rgba(255, 255, 255, .78); font: 600 14px/1.2 var(--sans); }
.feed-side a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.feed-side a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.feed-side a.active svg { color: var(--primary); }
.feed-side a svg { width: 20px; height: 20px; }
.feed-side .safe { margin-top: 10px; padding: 12px; border-radius: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.feed-side .safe b { color: #fff; }
.feed-side .foot { margin-top: auto; padding: 18px 12px 0; font-size: 12px; color: rgba(255, 255, 255, .45); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.feed-side .foot a { display: inline; padding: 0; font: 500 12px var(--sans); color: rgba(255, 255, 255, .55); background: none; }

.feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 16px 0; }
.reel-frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100% - 96px); border-radius: 22px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); isolation: isolate; }
.reel-media { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.reel-media > img, .reel-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-media > img { transform-origin: 50% 40%; }
.reel.active .reel-media > img { animation: savorDrift 14s ease-in-out infinite alternate; }
@keyframes savorDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.reel-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: linear-gradient(0deg, rgba(5, 4, 3, .92) 0%, rgba(5, 4, 3, .55) 28%, rgba(5, 4, 3, 0) 52%), linear-gradient(180deg, rgba(5, 4, 3, .55), rgba(5, 4, 3, 0) 18%); }
.reel-top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.reel-top .sound { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; }
.reel-top .sound svg { width: 18px; height: 18px; }
.reel-caption { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3; color: rgba(255, 255, 255, .82); display: grid; gap: 8px; }
.reel-chef { display: flex; align-items: center; gap: 10px; color: #fff; font: 600 14px/1.2 var(--sans); min-width: 0; }
.reel-chef:hover { color: #fff; }
.reel-chef .avatar { width: 36px; height: 36px; border: 2px solid rgba(255, 255, 255, .9); font-size: 12px; }
.reel-chef span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-chef small { display: block; font: 500 11.5px/1.2 var(--sans); color: rgba(255, 255, 255, .65); }
.reel-caption h2 { margin: 0; color: #fff; font-size: clamp(22px, 2.6vh, 28px); line-height: 1.12; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.reel-caption h2 a { color: #fff; }
.reel-caption p { margin: 0; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.reel-meta b { color: #fff; }
.reel-cta { display: flex; gap: 8px; margin-top: 4px; }
.reel-cta .btn { height: 46px; }
.reel-cta .btn-primary { flex: 1; }
.reel-warn { display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 999px; background: rgba(173, 63, 45, .85); color: #fff; font: 600 11.5px/1.2 var(--sans); }
.reel-warn svg { width: 13px; height: 13px; }
.reel-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: rgba(255, 255, 255, .15); border-radius: 0 0 22px 22px; overflow: hidden; }
.reel-progress i { display: block; height: 100%; width: 0; background: var(--primary); }

.reel-rail { position: absolute; z-index: 4; right: -74px; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; font: 600 12px/1 var(--sans); text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.rail-btn:hover { color: #fff; }
.rail-btn i { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .15s, background .2s; }
.rail-btn:hover i { background: rgba(255, 255, 255, .2); }
.rail-btn:active i { transform: scale(.9); }
.rail-btn svg { width: 25px; height: 25px; }
.rail-btn.on.like svg { fill: var(--primary); stroke: var(--primary); }
.rail-btn.on.save svg { fill: var(--brass); stroke: var(--brass); }
.rail-btn.pop i { animation: savorPop .35s ease-out; }
@keyframes savorPop { 40% { transform: scale(1.25); } }
.rail-chef { position: relative; margin-bottom: 6px; }
.rail-chef .avatar { width: 50px; height: 50px; border: 2px solid #fff; font-size: 15px; }
.rail-chef .plus { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; border: 0; cursor: pointer; }
.rail-chef .plus.on { background: #fff; color: var(--primary); }
.rail-chef .plus svg { width: 13px; height: 13px; stroke-width: 3; }

.burst { position: absolute; left: 50%; top: 45%; z-index: 5; width: 120px; height: 120px; margin: -60px 0 0 -60px; color: var(--primary); pointer-events: none; animation: savorBurst .8s ease-out forwards; }
.burst svg { width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .4)); }
@keyframes savorBurst { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.1) rotate(4deg); opacity: 1; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1.3) translateY(-30px); opacity: 0; } }

/* event card inside the feed */
.reel-ticket { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; }
.reel-ticket .date-tile { background: rgba(255, 255, 255, .92); border: 0; }
.reel-ticket .date-tile .d { color: #15100c; }
.reel-ticket .seats { margin-top: 8px; }
.feed-end { height: 100%; scroll-snap-align: start; display: grid; place-items: center; text-align: center; color: rgba(255, 255, 255, .7); padding: 24px; }
.feed-end h3 { color: #fff; }
.feed-loading { height: 80px; display: grid; place-items: center; color: rgba(255, 255, 255, .5); font-size: 13px; }

/* the dish in focus (wide screens) */
.feed-info { padding: 26px 26px 26px 0; overflow-y: auto; scrollbar-width: none; }
.feed-info::-webkit-scrollbar { display: none; }
.info-card { border-radius: 20px; padding: 22px; color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.info-card h3 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.info-card .panel-title { color: rgba(255, 255, 255, .5); margin: 18px 0 10px; }
.info-card .opt { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; margin-bottom: 8px; font-weight: 600; }
.info-card .opt:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.info-card .opt small { display: block; font-weight: 500; color: rgba(255, 255, 255, .6); }
.info-card .opt .price { color: #fff; }
.info-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.info-card .tags span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 12px; }
.info-card .tags span.bad { background: rgba(240, 138, 117, .2); color: #ffc0b2; }
.info-card .ing { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 16px; }
.info-card .ing li { padding: 3px 0; break-inside: avoid; }
.feed-chips { display: none; }

@media (max-width: 1250px) {
  .feed-wrap { grid-template-columns: 220px minmax(0, 1fr); }
  .feed-info { display: none; }
}
@media (max-width: 980px) {
  body.feed-page main { height: calc(100dvh - var(--top) - 62px - env(safe-area-inset-bottom)); }
  .feed-wrap { grid-template-columns: minmax(0, 1fr); }
  .feed-side { display: none; }
  .feed-chips { display: flex; position: absolute; z-index: 6; top: 10px; left: 0; right: 0; gap: 8px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .feed-chips::-webkit-scrollbar { display: none; }
  .feed-chips a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; color: rgba(255, 255, 255, .85); font: 600 12.5px/1 var(--sans); background: rgba(10, 8, 6, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .feed-chips a.active { background: #fff; color: #15100c; }
  .reel-top { top: 54px; }
}
@media (max-width: 640px) {
  .reel { padding: 0; }
  .reel-frame { max-width: none; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; overflow: hidden; }
  .reel-progress { border-radius: 0; }
  .reel-rail { right: 10px; bottom: 110px; gap: 14px; }
  .rail-btn i { width: 44px; height: 44px; background: rgba(10, 8, 6, .35); }
  .rail-btn svg { width: 24px; height: 24px; }
  .reel-caption { right: 76px; left: 14px; bottom: 14px; }
  .reel-cta { margin-right: -62px; }
}
@media (min-width: 641px) and (max-height: 700px) { .reel-caption p { display: none; } }

/* =====================================================================
   EXPLORE — the dish grid
   ===================================================================== */
.explore-head { padding: 26px var(--pad) 8px; display: grid; gap: 16px; }
.explore-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); }
.explore-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.explore-tools .search { position: relative; flex: 1 1 280px; max-width: 520px; }
.explore-tools .search input { padding-left: 44px; border-radius: 999px; }
.explore-tools .search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px; }
.explore-tools select { width: auto; border-radius: 999px; }
.tile-grid { display: grid; gap: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 14px var(--pad) 48px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); color: #fff; border-radius: 6px; }
.tile:hover { color: #fff; }
.tile > img, .tile > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile:hover > img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 4, 3, .78), rgba(5, 4, 3, 0) 45%); pointer-events: none; z-index: 1; }
.tile .cap { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; }
.tile .cap b { display: block; font: 700 15px/1.25 var(--serif); color: #fff; }
.tile .cap small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .7); }
.tile .cap .count-heart { font: 600 12px var(--sans); color: #fff; flex: 0 0 auto; }
.tile .kind { position: absolute; top: 10px; right: 10px; z-index: 2; color: #fff; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .5)); }
.tile .kind svg { width: 18px; height: 18px; }
.tile .warn { position: absolute; top: 10px; left: 10px; z-index: 2; }
.tile.has-conflict { box-shadow: inset 0 0 0 2px rgba(240, 138, 117, .7); }
.tile video.hover-vid { opacity: 0; transition: opacity .4s; z-index: 0; }
.tile video.hover-vid.on { opacity: 1; }
@media (min-width: 1600px) { .tile-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 10px 0 30px; } .tile { border-radius: 0; } .tile .cap b { font-size: 13.5px; } }

/* =====================================================================
   STAGE — dish and event pages: the media fills one side, the story the other
   ===================================================================== */
.stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 520px); min-height: calc(100dvh - var(--top)); }
.stage-media { position: sticky; top: var(--top); height: calc(100dvh - var(--top)); overflow: hidden; background: #050403; display: grid; place-items: center; }
.stage-media .bg { position: absolute; inset: -60px; background: center / cover no-repeat; filter: blur(44px) saturate(1.3) brightness(.45); }
.stage-media .frame { position: relative; height: calc(100% - 40px); aspect-ratio: 9 / 16; max-width: calc(100% - 40px); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.stage-media .frame.wide { aspect-ratio: 4 / 5; }
.stage-media .frame > img, .stage-media .frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-media .frame .reel-top { top: 14px; }
.stage-media .sound-hint { position: absolute; right: 14px; bottom: 14px; z-index: 3; }
.stage-body { padding: clamp(24px, 3vw, 44px); display: grid; gap: 22px; align-content: start; border-left: 1px solid var(--line); background: var(--bg); }
.stage-body h1 { margin: 0; font-size: clamp(30px, 3vw, 44px); }
.stage-body .lead { margin: 0; }
.who-row { display: flex; gap: 12px; align-items: center; }
.who-row .avatar { width: 48px; height: 48px; }
.who-row .t { color: var(--text); font-weight: 600; }
.who-row .s { font-size: 12.5px; color: var(--muted); }
.who-row .grow + * { flex: 0 0 auto; }
.counts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.counts b { color: var(--text); }
.book-box { border-radius: var(--r-lg); padding: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.book-box .opt { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 13px 15px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.book-box .opt:hover { border-color: var(--primary); color: var(--text); }
.book-box .opt small { display: block; color: var(--muted); font-size: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.facts div { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.facts span { display: block; font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts b { display: block; margin-top: 4px; font: 700 18px/1.2 var(--serif); }
.more-strip { padding: 34px var(--pad) 18px; border-top: 1px solid var(--line); }
@media (max-width: 1000px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage-media { position: relative; top: 0; height: min(78vh, 720px); }
  .stage-media .frame { height: calc(100% - 28px); }
  .stage-body { border-left: 0; }
}
@media (max-width: 640px) {
  .stage-media { height: 72vh; }
  .stage-media .bg { display: none; }
  .stage-media .frame { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
}

/* =====================================================================
   CHEF PROFILE — Instagram-style: who they are, then a wall of their food
   ===================================================================== */
.ig { position: relative; overflow: hidden; }
.ig-cover { position: absolute; inset: 0 0 auto 0; height: 420px; background: center / cover no-repeat; filter: blur(30px) saturate(1.3) brightness(.38); transform: scale(1.15); }
.ig-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 10, 8, 0) 40%, var(--bg) 100%); }
.ig-head { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 52px) var(--pad) 24px; max-width: 1180px; margin: 0 auto; }
.ig-ring { width: clamp(96px, 13vw, 168px); height: clamp(96px, 13vw, 168px); border-radius: 50%; padding: 4px; background: var(--line-2); display: grid; }
.ig-ring.story { background: conic-gradient(from 200deg, var(--primary), var(--brass), #f2d8a8, var(--primary)); }
.ig-ring .avatar { width: 100%; height: 100%; border: 4px solid var(--bg); font-size: 40px; }
.ig-name { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ig-name h1 { margin: 0; font-size: clamp(26px, 3vw, 40px); }
.ig-stats { display: flex; gap: clamp(16px, 3vw, 38px); margin: 14px 0; font-size: 14.5px; flex-wrap: wrap; }
.ig-stats b { color: var(--text); font-size: 17px; margin-right: 4px; }
.ig-bio { max-width: 640px; }
.ig-bio .headline { color: var(--text); font-weight: 600; margin: 0 0 4px; }
.ig-bio p { margin: 0 0 6px; }
.ig-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ig-highlights { position: relative; z-index: 1; display: flex; gap: 22px; padding: 4px var(--pad) 20px; overflow-x: auto; scrollbar-width: none; max-width: 1180px; margin: 0 auto; }
.ig-highlights::-webkit-scrollbar { display: none; }
.ig-highlights a { flex: 0 0 auto; width: 86px; display: grid; justify-items: center; gap: 8px; color: var(--text-2); font-size: 12px; text-align: center; line-height: 1.3; }
.ig-highlights a span.c { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: var(--line-2); display: block; }
.ig-highlights a span.c img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.ig-highlights a:hover { color: var(--text); }
.ig-highlights a:hover span.c { background: var(--primary); }
.ig-tabs { position: sticky; top: var(--top); z-index: 20; display: flex; justify-content: center; gap: clamp(10px, 4vw, 48px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(13, 10, 8, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow-x: auto; scrollbar-width: none; padding: 0 12px; }
.ig-tabs::-webkit-scrollbar { display: none; }
.ig-tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 15px 4px; color: var(--muted); font: 600 12.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid transparent; margin-top: -1px; white-space: nowrap; }
.ig-tabs a svg { width: 16px; height: 16px; }
.ig-tabs a.active { color: var(--text); border-top-color: var(--text); }
.ig-body { padding: 0 0 40px; }
.ig-body .tile-grid { padding-top: 4px; }
.ig-section { padding: 28px var(--pad) 40px; max-width: 1180px; margin: 0 auto; }
@media (max-width: 700px) {
  .ig-head { grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
  .ig-stats { gap: 14px; font-size: 13px; }
  .ig-stats b { font-size: 15px; display: block; }
  .ig-name h1 { font-size: 24px; }
  .ig-actions .btn { flex: 1; }
  .ig-tabs a span { display: none; }
}

/* =====================================================================
   EVENTS & TICKETS
   ===================================================================== */
.event-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; color: #fff; padding: 16px; isolation: isolate; background: #050403; }
.event-card:hover { color: #fff; }
.event-card > img, .event-card > video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.event-card:hover > img { transform: scale(1.05); }
.event-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 4, 3, .92) 0%, rgba(5, 4, 3, .3) 50%, rgba(5, 4, 3, .45) 100%); }
.event-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.event-card .date-tile { background: rgba(255, 255, 255, .94); border: 0; }
.event-card .date-tile .d { color: #15100c; }
.event-card h3 { color: #fff; margin: 0 0 6px; font-size: 22px; }
.event-card .s { font-size: 13px; color: rgba(255, 255, 255, .75); }
.event-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.event-card .foot .price { color: #fff; font-size: 17px; }
.event-card .seats { margin-top: 10px; }
.event-card.soldout .price::after { content: " · Sold out"; color: var(--bad); font-size: 13px; }
.event-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.event-rail::-webkit-scrollbar { display: none; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: transparent; color: var(--text); font-size: 20px; cursor: pointer; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; min-height: 42px; border: 0; padding: 0; text-align: center; background: transparent; font-weight: 700; }
.qty input:focus { box-shadow: none; }
.ticket { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.ticket:hover { color: var(--text-2); border-color: var(--line-2); }
.ticket .pic { position: relative; min-height: 150px; }
.ticket .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticket .body { padding: 18px 20px; display: grid; gap: 4px; align-content: center; }
.ticket .body b { color: var(--text); font: 700 18px/1.25 var(--serif); }
.ticket .stub { padding: 18px 22px; border-left: 2px dashed var(--line-2); display: grid; place-items: center; text-align: center; gap: 4px; min-width: 130px; }
.ticket .stub .code { font: 700 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--text); }
.ticket .stub small { color: var(--muted); }
.ticket.past { opacity: .6; }
.ticket-big { max-width: 560px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.ticket-big .pic { position: relative; aspect-ratio: 16 / 9; }
.ticket-big .pic img, .ticket-big .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ticket-big .body { padding: 24px; display: grid; gap: 14px; }
.ticket-big .tear { position: relative; border-top: 2px dashed var(--line-2); margin: 0 18px; }
.ticket-big .tear::before, .ticket-big .tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); }
.ticket-big .tear::before { left: -31px; }
.ticket-big .tear::after { right: -31px; }
.ticket-big .door { padding: 22px 24px 26px; text-align: center; }
.ticket-big .door .code { font: 700 34px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--text); margin: 6px 0; }
@media (max-width: 640px) {
  .ticket { grid-template-columns: 96px minmax(0, 1fr); }
  .ticket .stub { grid-column: 1 / -1; border-left: 0; border-top: 2px dashed var(--line-2); grid-template-columns: 1fr auto; text-align: left; padding: 12px 18px; }
}

/* =====================================================================
   BOOKING — pick a day the chef is free, lunch or dinner
   ===================================================================== */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.days label { margin: 0; flex: 0 0 auto; position: relative; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { width: 74px; display: grid; justify-items: center; gap: 3px; padding: 10px 4px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 11.5px; color: var(--muted); transition: .15s; }
.days span b { font: 700 21px/1 var(--serif); color: var(--text); }
.days span i { font-style: normal; font-weight: 600; color: var(--ok); }
.days span i.one { color: var(--warn); }
.days label.off span { opacity: .4; cursor: not-allowed; }
.days label.off span i { color: var(--muted); }
.days input:checked + span { border-color: var(--primary); background: var(--primary-t); box-shadow: 0 0 0 3px var(--primary-t); }
.days input:focus-visible + span { outline: 2px solid var(--primary); }
.slot-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-pick button { display: inline-flex; gap: 8px; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
.slot-pick button.active { border-color: var(--primary); background: var(--primary-t); }
.slot-pick button svg { width: 16px; height: 16px; color: var(--primary); }
.instant-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--primary-t); color: var(--text); font-size: 13.5px; }
.instant-note svg { color: var(--primary); width: 20px; height: 20px; margin-top: 1px; }
[data-sound] .i-on { display: none; }
[data-sound].on .i-on { display: inline; }
[data-sound].on .i-off { display: none; }
[data-sound] span { display: inline-grid; }
.btn.on[data-like] { color: var(--primary); border-color: var(--primary); }
.btn.on[data-like] svg { fill: currentColor; }
.btn.on[data-on-text] svg { fill: var(--brass); color: var(--brass); }
body.night .btn[data-chef-follow].on, .btn[data-chef-follow].on { background: transparent; border-color: var(--line-2); color: var(--text); }
.event-card > video.hover-vid { z-index: -2; }
.tile-grid.mini .tile .cap > span:first-child { display: none; }
.tile-grid.mini .tile .cap { justify-content: flex-end; }
.tile-grid.mini .tile .kind svg { width: 15px; height: 15px; }
.agenda a.event { border-left-color: var(--sage); }
.key i.event { background: var(--sage); }
.cal .plan.event { background: var(--sage); color: #fff; }
.tile .warn { right: 40px; max-width: calc(100% - 50px); }
body.night .chef-card .badge-gold, body.night .chef-card .badge { background: rgba(10, 8, 6, .62); color: #f3dcae; backdrop-filter: blur(8px); }

/* =====================================================================
   Growth release: coloured studio/admin heads, rewards, gifts, end cards,
   sponsored campaigns, settings.
   ===================================================================== */

/* Table and panel heads carry the brand colour so long working pages have structure. */
.table th { background: var(--primary); color: #fff; border-bottom-color: var(--primary-d); }
.table th a { color: #fff; }
.table-wrap { border-color: rgba(181, 88, 47, .35); }
.card > .card-head { background: linear-gradient(90deg, var(--primary), var(--primary-d)); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.card > .card-head h2, .card > .card-head h3, .card > .card-head b { color: #fff; }
.card > .card-head, .card > .card-head .muted, .card > .card-head .small { color: rgba(255, 255, 255, .86); }
.card > .card-head a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.card > .card-head .btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; text-decoration: none; }
.card > .card-head .btn:hover { background: #fff; color: var(--primary-d); }
.card > .card-head .badge { background: rgba(255, 255, 255, .2); color: #fff; }
body.dash .panel-title { color: var(--primary); }
body.night .table th { background: rgba(226, 115, 63, .22); color: var(--text); border-bottom-color: rgba(226, 115, 63, .35); }
body.night .card > .card-head { background: linear-gradient(90deg, rgba(226, 115, 63, .28), rgba(226, 115, 63, .1)); }

/* Rewards */
.rw-hero { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 20px; }
.rw-balance { border-radius: var(--r-lg); padding: 26px 28px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #e2733f 0%, #b5582f 45%, #2b1a10 100%); box-shadow: var(--shadow); }
.rw-balance .k { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.rw-balance .v { font: 700 54px/1.05 var(--serif); margin-top: 10px; font-variant-numeric: tabular-nums; color: #fff; }
.rw-balance .s { font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 6px; }
.rw-level { border-radius: var(--r-lg); padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rw-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--brass); font: 600 13px/1 var(--sans); }
.rw-badge svg { width: 14px; height: 14px; }
.rw-bar { height: 10px; border-radius: 10px; background: var(--bg-2); overflow: hidden; margin: 14px 0 12px; }
.rw-bar.sm { height: 5px; margin: 8px 0 10px; }
.rw-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brass), var(--primary)); }
.rw-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.rw-steps div { font-size: 12px; color: var(--muted); border-top: 3px solid var(--line-2); padding-top: 6px; }
.rw-steps div b { display: block; color: var(--muted); font-weight: 600; }
.rw-steps div.on { border-top-color: var(--primary); }
.rw-steps div.on b { color: var(--text); }
.rw-earn { list-style: none; margin: 0 0 12px; padding: 0; }
.rw-earn li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.rw-earn li:last-child { border-bottom: 0; }
.rw-earn b { color: var(--primary); white-space: nowrap; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 13px; }
.gift-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gift { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.gift.ready { border-color: rgba(181, 88, 47, .45); box-shadow: 0 0 0 1px rgba(181, 88, 47, .2), var(--shadow-sm); }
.gift-img { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2); }
.gift-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-img .ph { height: 100%; display: grid; place-items: center; color: var(--primary); background: radial-gradient(circle at 50% 40%, var(--primary-t), transparent 70%); }
.gift-img .ph svg { width: 54px; height: 54px; }
.gift-img .badge { position: absolute; left: 10px; top: 10px; }
.gift.locked .gift-img img, .gift.locked .gift-img .ph { filter: grayscale(.55) brightness(.85); }
.gift-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.gift-body .t { font: 700 17px/1.25 var(--serif); color: var(--text); }
.gift-body p { margin: 4px 0 6px; }
.gift-body .pts { font: 700 18px/1 var(--serif); color: var(--primary); }
.gift-body .mt-auto { margin-top: auto; }
.locked-why { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.locked-why svg { width: 14px; height: 14px; }
details.claim > summary { list-style: none; }
details.claim > summary::-webkit-details-marker { display: none; }
details.claim textarea, details.claim input[type=text], details.claim input[type=tel] { width: 100%; }
.amt-in { color: var(--ok); }
.amt-out { color: var(--bad); }
@media (max-width: 760px) { .rw-hero { grid-template-columns: 1fr; } .rw-balance .v { font-size: 44px; } }

/* La Savor end card: plays after every video (like TikTok). Videos branded on the server carry it inside the file. */
/* The card sits over the video's own box: .player, the dish/event .frame and the feed .reel-media are all positioned already. */
.player { position: relative; }
.endcard { position: absolute; inset: 0; z-index: 4; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at 50% 35%, #2b1d14, #0d0a08 70%); color: #f3ebe0; text-align: center; animation: ecIn .35s ease; border-radius: inherit; }
[data-endcard].ended .endcard { display: flex; }
[data-endcard="loop"] .ec-replay { display: none; }
.ec-mark { width: 74px; height: 74px; border-radius: 50%; background: var(--brass); color: #15100c; display: grid; place-items: center; font: italic 600 40px/1 var(--serif); }
.ec-name { font: 700 46px/1.1 var(--serif); color: #f3ebe0; }
.ec-name span { color: #e2733f; }
.ec-name i { font: italic 500 .55em/1 var(--serif); color: #d9b678; margin-right: .1em; }
.ec-handle { font: 600 15px/1.3 var(--sans); color: #f3ebe0; margin-top: 4px; }
.ec-cta { font: 600 13px/1 var(--sans); color: var(--brass); letter-spacing: .06em; }
.ec-replay { margin-top: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: 8px 18px; font: 600 13px/1 var(--sans); cursor: pointer; }
@keyframes ecIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* Sponsored content */
.sponsor-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(217, 182, 120, .16); color: var(--brass); font: 600 11.5px/1 var(--sans); letter-spacing: .02em; }
.sponsor-tag svg { width: 12px; height: 12px; }
.shop-list { list-style: none; margin: 10px 0 0; padding: 0; }
.shop-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-list li:last-child { border-bottom: 0; }
.campaign-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: inherit; }
.campaign-card:hover { border-color: var(--primary); color: inherit; }
.campaign-card .cimg { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; background: var(--bg-2); display: grid; place-items: center; }
.campaign-card .cimg img { width: 100%; height: 100%; object-fit: cover; }
.campaign-card .fee { font: 700 22px/1 var(--serif); color: var(--primary); }
@media (max-width: 560px) { .campaign-card { grid-template-columns: 76px 1fr; } }

/* Notification settings */
.pref-table td:nth-child(n+2), .pref-table th:nth-child(n+2) { text-align: center; width: 90px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 24px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: .45; cursor: not-allowed; }

/* Studio growth checklist */
.growth-list { list-style: none; margin: 0; padding: 0; }
.growth-list li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.growth-list li:last-child { border-bottom: 0; }
.growth-list .tick { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.growth-list li.done .tick { background: var(--ok); border-color: var(--ok); }
.growth-list li.done .lbl { color: var(--muted); text-decoration: line-through; }
.growth-list .tick svg { width: 13px; height: 13px; }
.growth-list .lbl { font-weight: 600; color: var(--text); }
.legal { max-width: 820px; }
.legal h2 { font-size: 24px; margin-top: 30px; }
.card > .card-head .key, .card > .card-head .legend span { color: rgba(255, 255, 255, .9); }
.card > .card-head .key i, .card > .card-head .legend i { outline: 1px solid rgba(255, 255, 255, .5); }
a.card.card-dark { color: var(--on-ink-2); }
a.card.card-dark:hover { color: var(--on-ink-2); border-color: var(--primary); }
a.card.card-dark b { color: #fff; }
a.card:hover { border-color: var(--line-2); }

/* =====================================================================
   SAVOR RESTAURANTS — our dining rooms, chef nights, tables, the line
   ===================================================================== */
.venue-hero { padding-top: clamp(70px, 9vw, 130px); padding-bottom: clamp(60px, 8vw, 110px); }
.venue-hero.tall { min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.venue-hero.tall > div { width: 100%; }
.venue-hero::after { background: linear-gradient(90deg, rgba(10, 8, 6, .94) 0%, rgba(10, 8, 6, .6) 55%, rgba(10, 8, 6, .35) 100%), linear-gradient(0deg, rgba(10, 8, 6, .85), transparent 45%); }
.venue-hero h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.crumbs.light, .crumbs.light a { color: rgba(255, 255, 255, .65); }
.venue-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.venue-strip a { display: grid; gap: 2px; color: #fff; }
.venue-strip a b { font: 600 17px/1.2 var(--serif); }
.venue-strip a span { font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.venue-strip a:hover b { color: var(--brass); }

.venue-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.venue-card { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate; background: #050403; }
.venue-grid.small .venue-card { aspect-ratio: 4 / 3; }
.venue-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.venue-card:hover > img { transform: scale(1.05); }
.venue-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 4, 3, .94) 0%, rgba(5, 4, 3, .25) 55%, rgba(5, 4, 3, .1) 100%); }
.venue-card .txt { padding: 20px; display: grid; gap: 6px; }
.venue-card h3 { color: #fff; margin: 4px 0 0; font-size: 26px; }
.venue-card p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.venue-card .badge { justify-self: start; }
.venue-card .go { color: var(--brass); font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.venue-card .go svg { width: 14px; height: 14px; }
.venue-card:hover { color: #fff; }

.night-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.night-grid.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.night-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: border-color .2s, transform .2s; }
.night-card:hover { border-color: rgba(217, 182, 120, .45); color: var(--text-2); transform: translateY(-2px); }
.night-card .pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.night-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.night-card .pic .date-tile { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .95); border: 0; }
.night-card .pic .date-tile .d { color: #15100c; }
.date-tile .w { font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #6d6155; margin-top: 3px; }
.night-card .body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.night-card .where { font: 600 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.night-card h3 { margin: 0; font-size: 21px; color: var(--text); }
.night-card .chef { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.night-card .chef b { color: var(--text); }
.night-card .courses { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.night-card .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); }
.night-card .price { font: 700 19px/1 var(--serif); color: var(--text); }
.night-card .price small { font: 500 12px var(--sans); color: var(--muted); }
.night-card .state { font-size: 12.5px; font-weight: 600; color: var(--ok); }
.night-card .state.soon { color: var(--brass); }
.night-card .state.bad { color: var(--bad); }
.event-rail .night-card { min-width: 0; }

.split-venue { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.venue-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.venue-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.prose { line-height: 1.7; }


.sittings { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.sitting { position: relative; display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; text-align: center; }
.sitting input { position: absolute; opacity: 0; pointer-events: none; }
.sitting b { font: 700 19px/1.1 var(--serif); color: var(--text); }
.sitting small { font-size: 12px; color: var(--muted); }
.sitting:has(input:checked) { border-color: var(--primary); background: var(--primary-t); }
.sitting.full { opacity: .45; cursor: not-allowed; }
.sitting.full small { color: var(--bad); }

.line-box { border-radius: var(--r-lg); padding: 22px; border: 1px solid rgba(217, 182, 120, .3); background: linear-gradient(160deg, rgba(217, 182, 120, .12), var(--surface) 65%); display: grid; gap: 12px; }
.line-box h3 { margin: 0; font-size: 22px; }
.line-box .eyebrow { margin: 0; color: var(--brass); }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 64px; padding: 10px 6px; border-radius: var(--r); background: rgba(0, 0, 0, .25); text-align: center; }
.countdown b { display: block; font: 700 26px/1 var(--serif); color: var(--text); }
.countdown span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.menu-courses { border-radius: var(--r-lg); padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); }
.menu-courses ol { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; gap: 0; }
.menu-courses li { counter-increment: c; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font: 500 16px/1.4 var(--serif); color: var(--text); }
.menu-courses li:last-child { border-bottom: 0; }
.menu-courses li::before { content: counter(c, upper-roman); font: 600 11.5px/2 var(--sans); letter-spacing: .1em; color: var(--brass); }
.menu-courses.compact li { font-size: 14.5px; padding: 8px 0; }
.menu-courses p { margin-top: 10px; }

.venue-banner { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); margin-bottom: 20px; background: linear-gradient(110deg, rgba(10, 8, 6, .94), rgba(10, 8, 6, .6)), url('../img/cover-table-wine.jpg') center / cover; color: var(--on-ink-2, #cbbdac); }
.venue-banner h1 { color: #fff; margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); }
.venue-banner .eyebrow { color: var(--brass); margin-bottom: 8px; }
.venue-banner p { margin: 0; max-width: 760px; color: rgba(255, 255, 255, .78); }
.venue-banner b { color: #fff; }
.pitch { padding: 16px 22px; border-top: 1px solid var(--line); }
.pitch ol { margin: 6px 0 8px; padding-left: 20px; }
.chef-nights { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.ig .chef-nights { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 var(--pad) 18px; }
.chef-night-pill { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(217, 182, 120, .35); background: rgba(217, 182, 120, .08); color: var(--text-2); }
.chef-night-pill:hover { color: var(--text-2); border-color: var(--brass); }
.chef-night-pill b { color: var(--text); }
.chef-night-pill .date-tile { background: rgba(255, 255, 255, .95); border: 0; }
.chef-night-pill .date-tile .d { color: #15100c; }

@media (max-width: 1000px) { .split-venue { grid-template-columns: 1fr; } .split-venue aside { position: static !important; } }
@media (max-width: 640px) { .venue-gallery { grid-template-columns: 1fr 1fr; } .countdown div { min-width: 54px; } .night-grid { grid-template-columns: 1fr; } }

/* Same-day: "Available today" */
.badge-today { background: #2f6b4f; color: #fff; }
.badge-today svg { width: 13px; height: 13px; }
.chip-today svg { width: 14px; height: 14px; vertical-align: -2px; }
.chip-today.active { background: #2f6b4f; border-color: #2f6b4f; color: #fff; }
.days label.today input:not(:checked) + span { border-color: #2f6b4f; }
.days label.today i { color: #2f6b4f; }
body.night .badge-today { background: rgba(127, 202, 160, .2); color: #a9e3c3; }
body.night .chip-today.active { background: rgba(127, 202, 160, .25); border-color: #7fcaa0; color: #d8f3e4; }

/* Costing calculator: each ingredient is a small tile — name and cost on top, quantity and price below */
.cost-rows { display: grid; gap: 10px; }
.cost-row { display: grid; grid-template-columns: 84px 92px minmax(90px, 1fr) 112px 34px; grid-template-areas: "name name name cost x" "qty unit price punit ."; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cost-row .cr-name { grid-area: name; } .cost-row .cr-qty { grid-area: qty; } .cost-row .cr-unit { grid-area: unit; }
.cost-row .cr-price { grid-area: price; } .cost-row .cr-punit { grid-area: punit; } .cost-row .cr-cost { grid-area: cost; } .cost-row .cr-x { grid-area: x; }
.cost-row input, .cost-row select { min-height: 40px; width: 100%; min-width: 0; }
.cost-row .input-prefix { width: 100%; min-width: 0; }
.cost-row .cr-cost { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-row .cr-x { width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.cost-row .cr-x:hover { background: var(--bg-2); color: var(--bad); }
.cost-row .cr-x svg { width: 16px; height: 16px; }
.cost-sum .sum .r span:last-child { white-space: nowrap; }
@media (max-width: 520px) {
  .cost-row { grid-template-columns: 1fr 1fr 34px; grid-template-areas: "name name x" "qty unit unit" "price punit punit" "cost cost cost"; }
  .cost-row .cr-cost { text-align: left; }
}
.text-warn { color: var(--warn); }

/* =====================================================================
   HOME — the business first: what we do, what you can book, why trust it,
   where to start. Editorial: open space and hairlines, few boxes.
   The one bold element is the bone-coloured search bar on the dark hero.
   ===================================================================== */
.home-page main { overflow-x: clip; }
.hm-wrap { max-width: 1240px; margin: 0 auto; }
.hm-hero { position: relative; min-height: min(86vh, 800px); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad); background: var(--ink); isolation: isolate; }
.hm-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; z-index: -2; filter: saturate(.85) contrast(1.05); }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 10, 8, .92) 0%, rgba(13, 10, 8, .72) 38%, rgba(13, 10, 8, .18) 72%, rgba(13, 10, 8, .05) 100%), linear-gradient(0deg, rgba(13, 10, 8, .85) 0%, rgba(13, 10, 8, 0) 42%); }
.hm-hero-copy { width: 100%; max-width: 1240px; margin: 0 auto; padding: 96px 0 44px; }
.hm-hero h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: 1.01; letter-spacing: -.02em; max-width: 11.5ch; margin: 0 0 22px; color: #f7f0e7; }
.hm-hero-copy p { max-width: 50ch; font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.65; color: #d8cbbb; margin: 0; }
.hm-search { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto -48px; display: grid; grid-template-columns: 1fr 1fr auto auto; align-items: stretch; background: #f4ece1; border-radius: 16px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); padding: 8px; gap: 0; }
.hm-field { display: grid; gap: 2px; padding: 12px 22px; margin: 0; cursor: pointer; border-right: 1px solid #ddd0bf; }
.hm-field span { font: 600 12.5px/1.2 var(--sans); color: #6b5d50; }
.hm-search select { border: 0; background-color: transparent; color: #1b1511; font: 500 17px/1.3 var(--sans); padding: 2px 32px 2px 0; height: auto; min-height: 0; box-shadow: none; background-position: calc(100% - 12px) 11px, calc(100% - 7px) 11px; }
.hm-search select:focus-visible { outline: 2px solid #b5582f; outline-offset: 4px; border-radius: 4px; }
.hm-search option { color: #1b1511; background: #fff; }
.hm-tonight { display: flex; align-items: center; gap: 10px; padding: 0 22px; margin: 0; color: #1b1511; font: 600 15px var(--sans); cursor: pointer; border-right: 1px solid #ddd0bf; }
.hm-tonight span { display: inline-flex; align-items: center; gap: 6px; }
.hm-tonight svg { width: 16px; height: 16px; color: #2f6b4f; }
.hm-search .btn { height: auto; min-height: 58px; margin-left: 8px; border-radius: 11px; padding: 0 34px; font-size: 15px; }
.hm-trust { padding: calc(48px + 40px) var(--pad) 40px; border-bottom: 1px solid var(--line); }
.hm-trust-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.hm-trust p { display: flex; gap: 14px; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.hm-trust p svg { flex: none; width: 22px; height: 22px; color: var(--brass); margin-top: 1px; }
.hm-trust b { color: var(--text); font-weight: 600; }

.hm-sec { padding: clamp(72px, 9vw, 128px) var(--pad); }
.hm-tint { background: var(--bg-2); }
.hm-sec h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin: 0; }
.hm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.hm-more { color: var(--text-2); font-weight: 500; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.hm-more:hover { color: var(--text); text-decoration-color: var(--brass); }
.hm-empty { color: var(--text-2); font-size: 17px; max-width: 60ch; }
.hm-empty a { color: var(--brass); text-decoration: underline; text-underline-offset: 4px; }

/* Chefs: portraits, no boxes */
.hm-chefs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.hm-chef { display: grid; align-content: start; color: var(--text); }
.hm-portrait { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--surface); margin-bottom: 16px; }
.hm-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: saturate(.9) contrast(1.04); transition: transform .5s ease; }
.hm-chef:hover .hm-portrait img { transform: scale(1.03); }
.hm-chef-name { font: 700 22px/1.2 var(--serif); }
.hm-chef-what { font-size: 14.5px; color: var(--text-2); margin-top: 4px; }
.hm-chef-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.hm-rating { color: var(--brass); font-weight: 600; }

/* What you can book: a list beside one large picture that follows the row you point at */
.hm-exp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.hm-exp-list { margin-top: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line-2); }
.hm-exp-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 24px 0 24px 0; border-top: 1px solid var(--line-2); color: var(--text-2); transition: padding .25s ease; }
.hm-exp-title { font: 700 clamp(21px, 2vw, 26px)/1.2 var(--serif); color: var(--text); }
.hm-exp-text { grid-column: 1; font-size: 15px; line-height: 1.6; max-width: 56ch; }
.hm-exp-from { grid-column: 2; grid-row: 1; align-self: baseline; font-size: 14px; color: var(--brass); font-weight: 600; white-space: nowrap; }
.hm-exp-row.on, .hm-exp-row:hover, .hm-exp-row:focus-visible { padding-left: 18px; box-shadow: inset 2px 0 0 var(--brass); }
.hm-exp-pic { position: sticky; top: calc(var(--top) + 32px); margin: 0; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--surface); }
.hm-exp-pic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.05); transition: opacity .3s ease; }

/* Signature menus: printed-menu typography, columns split by hairlines */
.hm-menus { display: grid; grid-template-columns: repeat(3, 1fr); }
.hm-menu { display: flex; flex-direction: column; gap: 6px; padding: 4px clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line-2); color: var(--text-2); }
.hm-menu:first-child { padding-left: 0; border-left: 0; }
.hm-menu-title { font: 700 24px/1.2 var(--serif); color: var(--text); }
.hm-menu:hover .hm-menu-title { color: var(--brass); }
.hm-menu-by { font-size: 14px; color: var(--muted); }
.hm-menu-courses { display: grid; gap: 7px; margin: 18px 0 20px; font: italic 400 17px/1.4 var(--serif); color: var(--text-2); }
.hm-menu-price { margin-top: auto; font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hm-menu-price b { font: 700 20px var(--serif); color: var(--text); }
.hm-menu-price em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.hm-photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: clamp(48px, 6vw, 80px); }
.hm-photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--surface); }
.hm-photos img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transition: transform .5s ease; }
.hm-photos a:hover img { transform: scale(1.04); }
.hm-photos-foot { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.hm-photos-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 4px; }

/* Reviews */
.hm-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(32px, 4vw, 52px); }
.hm-reviews figure { margin: 0; display: grid; align-content: start; gap: 14px; }
.hm-stars { color: var(--brass); letter-spacing: 3px; font-size: 14px; }
.hm-reviews blockquote { margin: 0; font: italic 400 clamp(19px, 1.6vw, 22px)/1.5 var(--serif); color: var(--text); }
.hm-reviews figcaption { font-size: 14px; color: var(--muted); }
.hm-reviews figcaption a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* How booking works: a real sequence, so it is numbered */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 44px); counter-reset: step; }
.hm-steps li { counter-increment: step; border-top: 1px solid var(--line-2); padding-top: 22px; }
.hm-steps li::before { content: counter(step); display: block; font: 400 44px/1 var(--serif); color: var(--brass); margin-bottom: 18px; }
.hm-steps h3 { font-size: 20px; margin: 0 0 8px; }
.hm-steps p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }

/* For chefs */
.hm-chefband { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-top: 1px solid var(--line); }
.hm-chefband-pic { position: relative; min-height: 560px; }
.hm-chefband-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(.88) contrast(1.05); }
.hm-chefband-copy { padding: clamp(56px, 7vw, 112px) clamp(24px, 6vw, 96px); align-self: center; max-width: 640px; }
.hm-chefband-copy > p { color: var(--text-2); font-size: 17px; line-height: 1.65; margin: 18px 0 30px; }
.hm-facts { margin: 0 0 36px; }
.hm-facts div { border-top: 1px solid var(--line-2); padding: 16px 0; }
.hm-facts dt { font: 700 20px/1.3 var(--serif); color: var(--text); }
.hm-facts dd { margin: 4px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.55; }

@media (max-width: 1080px) {
  .hm-chefs { grid-template-columns: repeat(2, 1fr); }
  .hm-exp { grid-template-columns: 1fr; }
  .hm-exp-pic { display: none; }
  .hm-menus { grid-template-columns: 1fr; gap: 32px; }
  .hm-menu, .hm-menu:first-child { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .hm-photos { grid-template-columns: repeat(3, 1fr); }
  .hm-reviews { grid-template-columns: 1fr; max-width: 680px; }
  .hm-steps { grid-template-columns: repeat(2, 1fr); }
  .hm-chefband { grid-template-columns: 1fr; }
  .hm-chefband-pic { min-height: 380px; }
}
@media (max-width: 720px) {
  .hm-hero { min-height: 0; }
  .hm-hero-copy { padding: 72px 0 32px; }
  .hm-hero::before { background: linear-gradient(0deg, rgba(13, 10, 8, .96) 0%, rgba(13, 10, 8, .78) 55%, rgba(13, 10, 8, .5) 100%); }
  .hm-search { grid-template-columns: 1fr; margin-bottom: -150px; padding: 6px; }
  .hm-field { border-right: 0; border-bottom: 1px solid #ddd0bf; padding: 12px 16px; }
  .hm-tonight { border-right: 0; border-bottom: 1px solid #ddd0bf; padding: 14px 16px; }
  .hm-search .btn { margin: 6px 0 0; min-height: 52px; }
  .hm-trust { padding-top: calc(150px + 32px); }
  .hm-trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .hm-exp-row { grid-template-columns: 1fr; }
  .hm-exp-from { grid-column: 1; grid-row: auto; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-chefband-pic { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-portrait img, .hm-photos img, .hm-exp-row, .hm-exp-pic img { transition: none; }
}

/* Booking progress (guest's booking page) */
.bk-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: bk; }
.bk-steps li { counter-increment: bk; position: relative; padding: 36px 16px 0 0; display: grid; align-content: start; gap: 2px; line-height: 1.5; font-size: 13px; color: var(--muted); }
.bk-steps li::before { content: counter(bk); position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--sans); border: 1.5px solid var(--line-2); color: var(--muted); background: var(--bg); z-index: 1; }
.bk-steps li::after { content: ""; position: absolute; top: 12px; left: 24px; right: 0; height: 1.5px; background: var(--line-2); }
.bk-steps li:last-child::after { display: none; }
.bk-steps b { font-size: 14px; color: var(--text-2); font-weight: 600; }
.bk-steps li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.bk-steps li.done::after { background: var(--ok); }
.bk-steps li.now::before { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px var(--primary-t); }
.bk-steps li.now b, .bk-steps li.done b { color: var(--text); }
@media (max-width: 760px) {
  .bk-steps { grid-template-columns: 1fr; gap: 14px; }
  .bk-steps li { padding: 0 0 0 38px; }
  .bk-steps li::after { display: none; }
}

/* ---------- How would you like to pay? ---------- */
.pay-choose h1 { font-size: clamp(30px, 6vw, 40px); }
.pay-options { display: grid; gap: 12px; margin-top: 18px; }
.pay-options form { margin: 0; }
.pay-option { width: 100%; display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 16px; padding: 18px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-option:hover, .pay-option:focus-visible { border-color: var(--primary); background: var(--surface); }
.pay-option:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-option-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-t); color: var(--primary); }
.pay-option-icon svg { width: 24px; height: 24px; }
.pay-option-copy { display: grid; gap: 3px; }
.pay-option-copy b { font-size: 16.5px; }
.pay-option-copy span { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.pay-option-go { color: var(--muted); }
.pay-option-go svg { width: 18px; height: 18px; }

/* ---------- Sample chef profiles ---------- */
.badge-sample { background: var(--info-bg); color: var(--info); font-weight: 600; }
.chef-card .badge-sample, body.night .chef-card .badge-sample { background: #fff; color: #2c4a63; }
.hm-chef .badge-sample { justify-self: start; }
.sample-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px var(--pad); background: var(--info-bg); color: var(--info); border-bottom: 1px solid var(--line); }
.sample-band p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.5; }
.sample-band .row { gap: 8px; }
.hm-lede { margin: calc(-1 * clamp(20px, 3vw, 36px)) 0 clamp(28px, 3.5vw, 44px); color: var(--text-2); font-size: 15.5px; max-width: 640px; }
.text-ok { color: var(--ok); }
.footer-grid:has(> div:nth-child(5)) { grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 760px) { .footer-grid:has(> div:nth-child(5)) { grid-template-columns: 1fr 1fr; } }

/* ---------- Chef agreement ---------- */
.agreement h2 { font-size: 21px; margin-top: 28px; }
.agreement ul { padding-left: 20px; display: grid; gap: 8px; }
.agreement li, .agreement p { line-height: 1.65; }
.agree-box { border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; background: var(--surface-2); }
@media print {
  .site-head, .tabbar, .footer, .no-print, .sidebar, .dash-header, .flashes, .agree-band { display: none !important; }
  .dash-main { margin: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .agreement, .agreement * { color: #000 !important; }
}

/* ---------- Terms, help centre, support ---------- */
.legal-facts dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 18px; margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); font-size: 14.5px; }
.legal-facts dt { color: var(--muted); }
.legal-facts dd { margin: 0; color: var(--text); }
@media (max-width: 560px) { .legal-facts dl { grid-template-columns: 1fr; gap: 2px; } .legal-facts dd { margin-bottom: 8px; } }
.refund-table td { vertical-align: top; line-height: 1.55; }
.refund-table td:first-child { width: 52%; }
.help { max-width: 1120px; }
.help-lede { font-size: 16px; max-width: 640px; }
.help-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 28px; align-items: start; }
.help-nav { position: sticky; top: calc(var(--top) + 20px); display: grid; gap: 2px; }
.help-nav a { padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; }
.help-nav a:hover { background: var(--surface-2); color: var(--text); }
.help h2 { font-size: 24px; margin: 30px 0 12px; scroll-margin-top: calc(var(--top) + 16px); }
.help h2:first-child { margin-top: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 34px 15px 2px; font-weight: 600; color: var(--text); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 20px; color: var(--muted); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.faq p { margin: 0 0 16px; color: var(--text-2); line-height: 1.65; max-width: 720px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.support-reply { border-left: 3px solid var(--primary); padding: 10px 14px; background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.booking-help { display: grid; gap: 4px; }
.booking-help .row { gap: 10px; padding: 8px 0; color: var(--text); font-size: 14px; }
.booking-help svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.pay-terms { margin-top: 10px; text-align: center; }
@media (max-width: 860px) { .help-grid { grid-template-columns: 1fr; } .help-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .help-nav a { border: 1px solid var(--line); } }

/* =====================================================================
   Phones: everything usable at 360–430px. (Added November 2026.)
   ===================================================================== */
/* Where am I: the current page is marked in the menu. */
.nav a.active { color: var(--primary); background: var(--primary-t); }
body.night .nav a.active { color: var(--primary); background: rgba(226, 115, 63, .14); }
@media (max-width: 980px) {
  body.nav-open .nav a.active { box-shadow: inset 3px 0 0 var(--primary); }
}
.tabbar a.active span { color: var(--text); }
.tabbar a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.tabbar a { position: relative; }

/* Long words and codes never push the page sideways. */
code, kbd, samp { overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.list-item .price, .list-item > .right, .table td.num, .sum .r span:last-child { white-space: nowrap; }

@media (max-width: 700px) {
  /* Dash header: one line, the page name trimmed instead of wrapping. */
  .dash-header { min-height: 56px; gap: 10px; }
  .dash-header .crumb { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-header .spacer { display: none; }

  /* Card headers: the title on its own line, links and legends under it. */
  .card-head { flex-wrap: wrap; gap: 6px 12px; }
  .card-head > h3, .card-head > h2 { flex: 1 1 auto; }

  /* Rows with a date, a picture, text and a status: text gets the width, extras drop below. */
  .list-item { flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; padding: 12px 14px; }
  .list-item:has(> .date-tile) > .avatar, .list-item:has(> .date-tile) > .thumb { display: none; }
  .list-item > .grow { flex: 1 1 calc(100% - 92px); min-width: 0; }
  .list-item > .grow ~ * { margin-left: auto; }
  .list-item > .right { text-align: right; }
  .list-item .t { overflow-wrap: anywhere; }

  /* Label / value lists: label above value. */
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 10px; font-size: 12.5px; }
  .kv dt:first-child { margin-top: 0; }
  .kv dd { overflow-wrap: anywhere; }

  /* Tables become a card per row (labels come from the table header, see app.js). */
  .table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .table-wrap table.table, .table-wrap .table thead, .table-wrap .table tbody, .table-wrap .table tr, .table-wrap .table td { display: block; width: 100%; }
  .table-wrap .table thead { display: none; }
  .table-wrap .table tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 14px; margin-bottom: 10px; }
  .table-wrap .table td { position: relative; border: 0; padding: 8px 0 8px calc(34% + 10px); min-height: 34px; text-align: left; overflow-wrap: anywhere; }
  .table-wrap .table td + td { border-top: 1px dashed var(--line); }
  .table-wrap .table td::before { content: attr(data-label); position: absolute; left: 0; top: 9px; width: 34%; font: 600 10.5px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); overflow-wrap: normal; }
  .table-wrap .table td:not([data-label])::before, .table-wrap .table td[data-label=""]::before { content: none; }
  .table-wrap .table td:not([data-label]), .table-wrap .table td[data-label=""] { padding-left: 0; }
  .table-wrap .table td.num, .table-wrap .table td.right { text-align: left; }
  .table-wrap .table td form, .table-wrap .table td .row { justify-content: flex-start; flex-wrap: wrap !important; }
  .table-wrap .table td input:not([type=checkbox]):not([type=radio]), .table-wrap .table td select { min-width: 0 !important; width: 100%; }
  body.night .table-wrap .table tr { background: var(--surface); }

  /* Tick boxes two to a row instead of one long column. */
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .check-tile { padding: 11px 12px; font-size: 13.5px; }
  label.check + .panel-title, label.check + .field { margin-top: 14px; }

  /* Page heads: buttons wrap under the title, full width when alone. */
  .page-head { flex-wrap: wrap; gap: 14px; }
  .page-head > .btn, .page-head > a.btn { flex: 0 0 auto; }
  .row-between { flex-wrap: wrap; gap: 10px; }

  /* Tabs that don't fit scroll sideways instead of squashing. */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }

  /* Comfortable tap targets. */
  .btn-sm { min-height: 38px; }
  .side-nav a { min-height: 42px; }
}

@media (max-width: 400px) {
  .stat .v { font-size: 26px; }
  .page-head h1, .main > h1 { font-size: 30px; }
}

.money-line b, .money-line .row b { white-space: nowrap; }
