/* Same app look as the Barista library: dark panels, gold, left sidebar with profile. */
:root {
  color-scheme: dark;
  --ink: #0d0c0b; --ink-2: #191613; --ink-3: #211c17; --line: #413326;
  --cream: #f6efe4; --muted: #b6a895; --gold: #d3ad76; --gold-2: #e4c396;
  --good: #8fc79a; --bad: #e07a6a; --warn: #e0b36a;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 17px/1.6 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
[hidden], .hide { display: none !important; }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.muted { color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.big { gap: 22px; }
.sample { display: inline-block; font: 600 .72rem/1 var(--body); color: var(--ink); background: var(--gold); padding: 4px 7px; border-radius: 2px; }

.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; background: var(--gold); color: var(--ink); border: 1px solid var(--gold); border-radius: 2px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn.ghost { background: transparent; color: var(--gold-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.danger { background: transparent; color: var(--bad); border-color: #5a3a30; }
.link { background: none; border: 0; padding: 0; color: var(--gold-2); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.x { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; width: 36px; height: 36px; }
.x:hover { color: var(--cream); }

/* Public header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ink) 94%, transparent); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; flex-wrap: wrap; }
.brand { font: italic 500 1.15rem var(--display); text-decoration: none; color: var(--gold-2); }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--muted); padding: 6px 0; }
.nav a:hover, .nav a.on { color: var(--cream); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); padding: 7px 14px; border-radius: 2px; cursor: pointer; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 68px 56px; }
.hero h1 { font-size: clamp(3.1rem, 8.4vw, 6.6rem); line-height: .98; letter-spacing: -.01em; margin-block: 12px 24px; }
.hero-title { font: italic 400 1.3rem var(--display); color: var(--gold-2); }
.lede { font-size: 1.14rem; max-width: 58ch; color: #d9cfbf; margin-bottom: 26px; }
.medal { position: relative; width: min(100%, 390px); aspect-ratio: 1; justify-self: center; border-radius: 50%; padding: 12px; border: 1px solid var(--gold); }
.medal::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--line); }
.medal img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.medal.small { width: 200px; flex: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; padding-bottom: 60px; }
.tile { display: grid; gap: 2px; padding: 22px 24px 24px 0; text-decoration: none; border-top: 1px solid var(--gold); }
.tile + .tile { padding-left: 24px; border-left: 1px solid var(--line); }
.tile i { color: var(--gold); font-style: normal; }
.tile strong { font: 500 1.5rem var(--display); }
.tile span { color: var(--muted); font-size: .95rem; }
.tile:hover strong { color: var(--gold-2); }

.sec { padding-block: 40px 60px; }
.sec > h2 { margin-bottom: 26px; }
.band { background: var(--ink-2); padding-block: 56px; }
.band h2 { margin-bottom: 26px; }
h1.page { font-size: clamp(2.5rem, 6vw, 4.2rem); margin-bottom: 22px; }

.slide { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.slide-img { display: block; aspect-ratio: 4/3; overflow: hidden; }
.slide-img img, .cover img, .dish-hero img { width: 100%; height: 100%; object-fit: cover; }
.slide-text { display: grid; gap: 12px; justify-items: start; }
.slide-text i { font-family: var(--display); color: var(--gold-2); }
.slide-text h3 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.slide-text h3 a { text-decoration: none; }
.slide-text p { color: #d9cfbf; }
.slide-nav { display: flex; gap: 14px; align-items: center; margin-top: 20px; }
.slide-nav button { width: 44px; height: 44px; background: none; border: 1px solid var(--line); color: var(--cream); font-size: 1.4rem; cursor: pointer; border-radius: 50%; }
.slide-nav button:hover { border-color: var(--gold); }
.count { font-variant-numeric: tabular-nums; color: var(--muted); }
.art, .art svg { display: block; width: 100%; height: 100%; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button { min-height: 40px; padding: 7px 16px; background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--muted); }
.filters button.on { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 38px 26px; }
.dish { display: grid; gap: 8px; align-content: start; text-decoration: none; }
.cover { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--ink-3); margin-bottom: 6px; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font: italic 400 .95rem var(--display); color: var(--gold-2); }
.dish-meta .fav { color: var(--muted); }
.dish strong { font: 500 1.35rem/1.2 var(--display); }
.dish:hover strong { color: var(--gold-2); }
.dish-story { color: var(--muted); font-size: .95rem; }
.more { display: inline-block; color: var(--gold-2); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.back-link { color: var(--muted); font-size: .95rem; }
.empty { color: var(--muted); padding-block: 26px; }

.dish-page .back-link { display: inline-block; margin-bottom: 20px; }
.dish-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.dish-hero { display: block; aspect-ratio: 4/3; overflow: hidden; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 8px; }
.thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.dish-head { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.dish-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.dish-head .lede { margin: 0; }
.label { font: italic 400 1.05rem var(--display); color: var(--gold-2); }
.small { font-size: 1.2rem; margin-bottom: 4px; }
.facts { margin: 0; display: grid; gap: 0; width: 100%; }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts.big { max-width: 640px; font-size: 1.1rem; }
.recipe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 44px; margin-top: 54px; padding-top: 34px; border-top: 1px solid var(--gold); }
.recipe h2 { margin-bottom: 14px; }
.ings { list-style: none; margin: 14px 0 0; padding: 0; }
.ings li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ings b { font-weight: 600; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper span { color: var(--muted); }
.stepper button { width: 38px; height: 38px; border: 1px solid var(--line); background: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper input { width: 84px; }

.menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.menu { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 38px 26px; border: 1px solid var(--gold); outline: 1px solid var(--line); outline-offset: -8px; }
.menu > i { font-family: var(--display); color: var(--gold-2); }
.menu ol { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 16px; }
.menu li { display: grid; }
.menu small { color: var(--muted); }
.menu li a, .menu li { font: 500 1.1rem/1.3 var(--display); text-decoration: none; }
.menu li small, .menu li em { font-family: var(--body); font-size: .85rem; font-weight: 400; }
.menu .price { color: var(--gold-2); font-weight: 600; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.photos button { position: relative; padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos .sample { position: absolute; left: 8px; top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(10, 9, 7, .96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.lightbox > .x { position: absolute; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); font-size: 2rem; }
.lb-img { width: min(100%, 1000px); max-height: 76vh; display: flex; justify-content: center; }
.lb-img img { max-height: 76vh; object-fit: contain; }
.lb-img .art { aspect-ratio: 4/3; max-height: 76vh; }

.chef-top { display: flex; gap: 44px; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.chef-top > div:last-child { flex: 1 1 340px; min-width: 0; }
.chef-top .lede { margin-block: 12px 18px; }
.chef-top .page { margin-bottom: 4px; }
.timeline { list-style: none; margin: 24px 0 44px; padding: 0; border-top: 1px solid var(--gold); }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.when { color: var(--gold-2); font-variant-numeric: tabular-nums; }
.timeline i { font-family: var(--display); color: var(--muted); }
.timeline p { margin-top: 6px; max-width: 66ch; }
.expertise { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-bottom: 44px; }
.expertise p { color: var(--muted); margin-top: 6px; }
.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.plain { list-style: none; margin: 10px 0 0; padding: 0; color: #d9cfbf; display: grid; gap: 5px; }
.contact .lede { margin-bottom: 30px; }

.foot { border-top: 1px solid var(--line); margin-top: 30px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 34px; align-items: start; }
.foot-in strong { font: 500 1.15rem var(--display); }
.foot-in p, .studio-link { color: var(--muted); font-size: .92rem; }
.foot-in > div:nth-child(2) { display: flex; gap: 18px; flex-wrap: wrap; }

/* Studio */
.in-studio { font-size: 16px; }
.studio { display: grid; grid-template-columns: 214px minmax(0, 1fr); min-height: 100vh; }
.snav { background: var(--ink-2); padding: 22px 16px; position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; border-right: 1px solid var(--line); }
.snav nav { display: grid; gap: 2px; margin-top: 18px; }
.snav nav a { text-decoration: none; padding: 9px 12px; color: var(--muted); border-radius: 2px; }
.snav nav a:hover { color: var(--cream); }
.snav nav a.on { background: var(--ink-3); color: var(--gold-2); }
.smain { padding-block: 26px 90px; padding-left: max(26px, env(safe-area-inset-left, 0px)); padding-right: max(26px, env(safe-area-inset-right, 0px)); min-width: 0; max-width: 1240px; }
.smain h1 { font-size: 2.2rem; margin-bottom: 12px; }
.smain h2 { font-size: 1.3rem; }
.preview-note { background: var(--ink-3); border: 1px solid var(--line); padding: 8px 12px; color: var(--gold-2); font-size: .9rem; margin-bottom: 18px; }
.head-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.head-row h1 { margin: 0; }
.panel { background: var(--ink-2); border: 1px solid var(--line); padding: 18px; min-width: 0; }
.panel.flush { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-block: 14px 20px; }
.stats div { border-top: 1px solid var(--gold); padding-top: 8px; display: grid; }
.stats strong { font: 500 2rem/1.1 var(--display); font-variant-numeric: tabular-nums lining-nums; }
.stats span { color: var(--muted); font-size: .9rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.todo, .lines { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.todo li { display: grid; grid-template-columns: 22px minmax(0, 1fr); }
.todo li span { color: var(--gold); }
.todo .ok { color: var(--muted); }
.lines li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block: 12px; }
.tools input[type=search] { flex: 1 1 240px; }
.tools select { width: auto; }
.list { display: grid; gap: 6px; margin-top: 8px; }
.rowcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; flex-wrap: wrap; }
.rowcard:hover { border-color: var(--gold); }
.rowcard .grow { flex: 1 1 220px; min-width: 0; display: grid; }
.rowcard small { color: var(--muted); }
.star { width: 16px; color: var(--gold); }
.num { font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.rowcard .num { display: grid; }
.pill { display: inline-block; font-size: .82rem; font-weight: 600; padding: 3px 9px; border: 1px solid var(--line); color: var(--muted); border-radius: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.good { color: var(--good); border-color: #41533c; }
.pill.bad { color: var(--bad); border-color: #5a3a30; }

.field { display: grid; gap: 4px; min-width: 0; }
.field > span { font-size: .88rem; color: var(--muted); }
.field small { color: var(--muted); font-size: .82rem; }
input[type=text], input[type=number], input[type=search], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 2px; color: var(--cream); font-size: 16px; font-variant-numeric: tabular-nums;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.check { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.check input { width: 19px; height: 19px; accent-color: var(--gold); flex: none; }
.cols2, .cols3 { display: grid; gap: 12px; min-width: 0; }
.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 5px 11px; min-height: 34px; background: none; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; color: var(--muted); font-size: .88rem; }
.chips button.on { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.edit-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.side { position: sticky; top: 14px; display: grid; gap: 16px; min-width: 0; }
.ing-lines { display: grid; gap: 10px; }
.ing-line { display: grid; grid-template-columns: minmax(0, 2.2fr) 76px 76px minmax(0, 1.3fr) 92px 34px; gap: 6px; align-items: center; }
.ing-line .num { font-size: .9rem; white-space: nowrap; }
.ing-line .warn { grid-column: 1 / -1; color: var(--warn); }
.ing-line .warn:empty { display: none; }
.ing-line .link { grid-column: 1 / -1; justify-self: start; }
.calc { margin: 0; display: grid; }
.calc div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.calc dt { color: var(--muted); }
.calc dd { margin: 0; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.calc .strong dt, .calc .strong dd { color: var(--cream); font-weight: 600; }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; background: var(--ink-3); border-left: 3px solid var(--good); margin-top: 12px; }
.verdict.bad { border-left-color: var(--bad); }
.verdict div { display: grid; min-width: 0; }
.verdict strong { font: 500 1.35rem/1.15 var(--display); font-variant-numeric: lining-nums; }
.verdict span { color: var(--muted); font-size: .8rem; }
.warns { margin: 10px 0 0; padding-left: 18px; color: var(--warn); font-size: .9rem; }
.savebar { position: fixed; z-index: 6; right: 0; left: 214px; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 26px calc(9px + env(safe-area-inset-bottom, 0px)); background: var(--ink-2); border-top: 1px solid var(--line); }
.savebar.dirty { border-top-color: var(--gold); }
.mini { font-variant-numeric: tabular-nums lining-nums; color: var(--muted); }
.trial { border: 1px solid var(--line); padding: 12px; display: grid; gap: 10px; justify-items: stretch; }
.trial .link { justify-self: start; }
.course { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 36px; align-items: end; }
.thumb-row { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 112px; height: 112px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 2px; right: 2px; background: var(--ink); border-radius: 50%; width: 28px; height: 28px; }
.thumb .sample { position: absolute; left: 4px; bottom: 4px; }
.upload { width: 112px; height: 112px; display: grid; place-items: center; border: 1px dashed var(--line); color: var(--gold-2); cursor: pointer; text-align: center; font-size: .9rem; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.lane { display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--gold); padding-top: 10px; }
.lane small { color: var(--muted); font-family: var(--body); font-weight: 400; }
.lab-card { display: grid; gap: 3px; padding: 12px; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; }
.lab-card:hover { border-color: var(--gold); }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.pa { padding: 0; background: none; border: 0; text-align: left; cursor: pointer; display: grid; gap: 4px; }
.pa img, .ph { aspect-ratio: 1; width: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; background: var(--ink-3); color: var(--muted); }
.pa small { color: var(--muted); overflow-wrap: anywhere; }
.por { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: .85rem; white-space: nowrap; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; color: var(--muted); }
tfoot td { color: var(--cream); font-weight: 600; border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--ink-3); }
.th { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }

.gate { max-width: 420px; margin: 8vh auto; padding-inline: 20px; display: grid; gap: 14px; }
.gate h1 { font-size: 2.6rem; }
.form-err { color: var(--bad); min-height: 1.2em; }

.back { position: fixed; inset: 0; z-index: 20; background: rgba(10, 9, 7, .78); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(100%, 480px); background: var(--ink-2); border: 1px solid var(--gold); padding: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h2 { font-size: 1.4rem; }
.toast { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom, 0px)); background: var(--cream); color: var(--ink); padding: 10px 18px; border-radius: 2px; font-weight: 500; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); }

#print { display: none; }
/* ---- App shell ---- */
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.app-side { background: #100f0d; border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.profile { text-align: center; padding: 4px 8px 16px; border-bottom: 1px solid var(--line); }
.avatar { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold); padding: 3px; margin-inline: auto; }
.profile h3 { font: 700 1.25rem/1.2 var(--display); letter-spacing: .02em; margin-top: 10px; }
.profile p { color: var(--muted); font-size: .76rem; }
.navlist { display: grid; gap: 3px; }
.navlabel { color: var(--muted); font-size: .72rem; padding: 12px 12px 3px; }
.navlist a, .side-login { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-size: .95rem; }
.navlist a:hover, .side-login:hover { color: var(--gold); }
.navlist a.active { background: linear-gradient(90deg, #2b241b, #1c1712); border-color: #4b3925; color: var(--gold-2); }
.ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.navlist a.active .ic { background: var(--gold); border-color: var(--gold); color: #20160c; }
.side-login { margin-top: auto; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); border-radius: 0; padding-top: 12px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.mast { min-height: 176px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden; isolation: isolate; background: #15100b; }
.mast::before { content: ""; position: absolute; inset: -6%; z-index: -2; background: url('/assets/samples/dining-room.jpg') center/cover; }
.mast::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #15100bee, #15100b88); }
.spices { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mast .spices { z-index: 0; }
.mast-text, .mast-tools { position: relative; z-index: 1; }
.eyebrow { font-size: .68rem; letter-spacing: .2em; color: var(--gold); }
.wordline { display: flex; align-items: center; gap: 16px; }
.wordmark { font: 700 clamp(2.5rem, 5.4vw, 4.2rem)/1.1 var(--display); letter-spacing: .03em; color: var(--gold-2); }
.hat { position: relative; display: block; width: 58px; height: 58px; color: var(--gold); flex: none; }
.hat svg { width: 100%; height: 100%; }
.mast p { color: #dfcdb5; }
.mast-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line); background: #100f0dcc; border-radius: 99px; padding: 8px 16px; font-size: .88rem; text-decoration: none; }
.pill:hover { border-color: var(--gold); }
.content { padding: 22px 24px 30px; width: 100%; max-width: 1400px; margin-inline: auto; flex: 1; }
.foot { text-align: center; padding: 22px 16px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.welcome { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 18px; }
.welcome-banner { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; padding: 24px; min-height: 170px; display: grid; align-content: center; gap: 6px;
  background: linear-gradient(90deg, #15100bf0, #15100b88), url('/assets/samples/chopping.jpg') center/cover; }
.welcome-banner > :not(canvas) { position: relative; z-index: 1; }
.welcome-banner h2 { font-size: 2rem; font-weight: 700; }
.welcome-banner p { color: #e2d4c0; max-width: 60ch; }
.content .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stat { display: grid; align-content: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #201b16, #151310); text-decoration: none; border-top: 1px solid var(--line); }
.stat:hover { border-color: #6a5136; }
.stat b { color: var(--gold); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .8rem; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: linear-gradient(145deg, #201b16, #151310); text-decoration: none; margin-bottom: 8px; }
.feature:hover { border-color: #6a5136; }
.feature-text { padding: 26px; display: grid; align-content: center; justify-items: start; gap: 9px; }
.feature-tag { color: var(--gold); font-size: .82rem; }
.feature-text strong { font: 700 clamp(1.8rem, 3.2vw, 2.6rem)/1.15 var(--display); color: var(--gold-2); }
.rule { width: 46px; height: 1px; background: var(--gold); }
.feature-pic { position: relative; display: block; overflow: hidden; min-width: 0; }
.feature-img { display: block; min-height: 290px; height: 100%; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
h2.sub { font-size: 1.25rem; font-family: var(--body); font-weight: 600; margin: 26px 0 12px; padding-left: 10px; border-left: 3px solid var(--gold); }
.section-head { margin: 4px 0 16px; }
.section-head h1 { font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.section-head p { color: var(--muted); }
.grid.r { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.card { background: linear-gradient(145deg, #201b16, #151310); border: 1px solid var(--line); border-radius: 14px; }
.rcard { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform .15s, border-color .15s; }
.rcard:hover { transform: translateY(-2px); border-color: #6a5136; }
.rthumb { position: relative; display: block; aspect-ratio: 4/3; background: #100f0d; overflow: hidden; }
.rthumb-in, .rthumb-in img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #ff7d6b; background: #0d0c0bcc; border: 1px solid #ff7d6b66; font-size: .95rem; }
.badge { position: absolute; bottom: 8px; left: 8px; font-size: .72rem; background: #0d0c0bd9; border: 1px solid var(--line); color: var(--gold); border-radius: 99px; padding: 1px 9px; }
.sample.at { position: absolute; top: 8px; left: 8px; }
.rbody { padding: 12px 14px 14px; display: grid; gap: 4px; }
.rbody strong { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.rstory { color: var(--muted); font-size: .86rem; line-height: 1.5; }
.kv { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.kv span { font-size: .72rem; background: #100f0d; border: 1px solid var(--line); border-radius: 7px; padding: 1px 8px; }
.content .chips { margin-bottom: 14px; }
.content .chips button { border-radius: 99px; }
.chips button.on { background: #2b241b; color: var(--gold); border-color: var(--gold); }
.empty { border: 1px dashed var(--line); border-radius: 12px; padding: 25px; text-align: center; }
.photos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.photos button { border-radius: 12px; }
.photos .sample { z-index: 1; }
.dish-hero, .thumbs img { border-radius: 14px; overflow: hidden; }
.dish-head h1 { color: var(--gold-2); font-weight: 700; }
.chef-top .page { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--gold-2); }
.medal.small img { border-radius: 50%; }
.menu { border-radius: 14px; outline: 0; background: linear-gradient(145deg, #201b16, #151310); border-color: var(--line); }
.timeline { border-color: var(--line); }
.smain { padding-block: 22px 90px; padding-left: 24px; padding-right: 24px; }
.smain h1 { color: var(--gold); font-weight: 700; }
.panel { border-radius: 14px; background: linear-gradient(145deg, #201b16, #151310); }
.panel.flush { overflow: hidden; }
.rowcard, .lab-card, .trial { border-radius: 12px; }
.rowcard, .lab-card { background: linear-gradient(145deg, #201b16, #151310); }
.btn, input[type=text], input[type=number], input[type=search], input[type=email], input[type=password], input[type=date], select, textarea { border-radius: 9px; }
.smain .stats div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: linear-gradient(145deg, #201b16, #151310); }
.smain .stats strong { color: var(--gold); font-size: 1.6rem; font-family: var(--body); font-weight: 600; }
.savebar { left: 236px; }
.modal { border-radius: 14px; }
.gate { background: linear-gradient(145deg, #201b16, #151310); border: 1px solid var(--line); border-radius: 16px; padding: 26px; width: calc(100% - 32px); }
.gate h1 { color: var(--gold-2); font-weight: 700; }
.splash { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle, #241c13, #0d0c0b 70%); display: grid; place-content: center; justify-items: center; gap: 10px; pointer-events: none; animation: splash-out .45s ease 1.2s forwards; }
.splash .hat { width: 84px; height: 84px; }
.sname { font: 600 2.5rem var(--display); letter-spacing: .1em; color: var(--gold-2); }
.sline { width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
.quote { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; color: var(--gold); font: italic 500 1rem/1.3 var(--display); min-height: 72px; display: grid; place-items: center; transition: opacity .6s; }
.quote.qout { opacity: 0; }
.quote + .side-login { margin-top: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Slow, quiet and gold: light moves, nothing bounces. */
  .mast::before { animation: drift 40s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.02) translate(var(--px, 0), var(--py, 0)); } to { transform: scale(1.1) translate(calc(var(--px, 0px) - 1.2%), calc(var(--py, 0px) - .8%)); } }
  .mast::after { background: radial-gradient(420px 240px at var(--lx, 72%) var(--ly, 30%), #d3ad7626, transparent 70%), linear-gradient(100deg, #15100bf0, #15100b8c); }
  .mast-text { overflow: visible; }
  .sheen { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
  .sheen::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -30%; width: 22%; transform: rotate(18deg); background: linear-gradient(90deg, transparent, #e4c39622, #fff4dc33, #e4c39622, transparent); animation: sweep 11s cubic-bezier(.45, 0, .55, 1) infinite; }
  @keyframes sweep { 0%, 55% { left: -30%; } 100% { left: 125%; } }
  .wordmark { background: linear-gradient(100deg, #b98f55 0%, #e4c396 28%, #fff1d2 48%, #e4c396 62%, #b98f55 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 12s ease-in-out infinite alternate; }
  @keyframes foil { from { background-position: 100% 0; } to { background-position: 0 0; } }
  .hat path { stroke-dasharray: 1; animation: draw 2.4s ease both; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .avatar { animation: halo 7s ease-in-out infinite; }
  @keyframes halo { 0%, 100% { box-shadow: 0 0 0 0 #d3ad7600; } 50% { box-shadow: 0 0 30px 2px #d3ad7638; } }
  .feature-img img { animation: slowzoom 34s ease-in-out infinite alternate; }
  @keyframes slowzoom { from { transform: scale(1.01); } to { transform: scale(1.09); } }
  .rthumb-in img, .photos img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
  .rcard:hover .rthumb-in img, .photos button:hover img { transform: scale(1.05); }
  .rcard { transition: border-color .6s, box-shadow .6s; }
  .rcard:hover { transform: none; border-color: #a9844f; box-shadow: 0 0 26px -6px #d3ad7640; }
  .feature, .stat { transition: border-color .6s, box-shadow .6s; }
  .feature:hover, .stat:hover { border-color: #a9844f; box-shadow: 0 0 34px -10px #d3ad7640; }
  .navlist a { transition: color .4s, background .4s, border-color .4s; }
  .enter > div > *, .enter > div > section > .grid > * { animation: settle 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .enter > div > *:nth-child(2) { animation-delay: .12s; }
  .enter > div > *:nth-child(3) { animation-delay: .24s; }
  .enter .grid.r > *:nth-child(2) { animation-delay: .1s; }
  .enter .grid.r > *:nth-child(3) { animation-delay: .2s; }
  .enter .grid.r > *:nth-child(n+4) { animation-delay: .3s; }
  @keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  h2.sub { border-left-color: transparent; position: relative; }
  h2.sub::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 3px; background: var(--gold); transform-origin: top; animation: rule 1.2s .3s ease both; }
  @keyframes rule { from { transform: scaleY(0); } to { transform: none; } }
  .splash { animation: splash-out .9s ease 2.5s forwards; }
  .splash .hat { width: 92px; height: 92px; position: relative; z-index: 1; }
  .splash .hat path { animation-duration: 1.8s; }
  .sname { position: relative; z-index: 1; background: linear-gradient(100deg, #b98f55, #fff1d2 50%, #b98f55); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reveal 1.5s .5s cubic-bezier(.2, .7, .2, 1) both, foil 2.6s ease .5s both; }
  @keyframes reveal { from { letter-spacing: .32em; opacity: 0; } to { letter-spacing: .14em; opacity: 1; } }
  .sline { position: relative; z-index: 1; animation: line-in 1.4s .9s ease both; }
  @keyframes line-in { from { width: 0; opacity: 0; } to { width: 220px; opacity: 1; } }
  .ssub { position: relative; z-index: 1; animation: settle 1.2s 1.2s ease both; }
}
.ssub { color: var(--muted); font-size: .72rem; letter-spacing: .34em; text-transform: uppercase; }
.splash { background: radial-gradient(circle at 50% 45%, #1e170f, #0a0908 72%); }
.sline { width: 220px; }
.fav { color: var(--gold); border-color: #d3ad7666; }
.quote { transition: opacity .9s; }

/* Kitchen tools */
.smain .chips { margin-block: 12px 16px; }
.smain .chips button.on { background: var(--gold); color: #20160c; border-color: var(--gold); }
.smain .grid2 { align-items: start; }
.narrow { max-width: 680px; }
.big-result { font: 600 1.45rem/1.3 var(--display); color: var(--gold-2); }
.cols3.end { align-items: end; }
.timers { display: grid; gap: 8px; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.timer strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--gold); margin-left: auto; }
.timer.done strong { color: var(--bad); }
.matrix th:not(:first-child), .matrix td.dot { text-align: center; }
.matrix td.dot { color: var(--gold); }
.matrix td:first-child { white-space: nowrap; }
input.sold { width: 74px; min-height: 34px; padding: 4px 6px; text-align: right; }
.quad { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 12px; }
.quad .mini { white-space: nowrap; }
.quad h3 { font-weight: 700; color: var(--gold-2); }
.quad .lines a { overflow-wrap: anywhere; }
.q-good { border-top: 2px solid var(--good); }
.q-warn { border-top: 2px solid var(--warn); }
.q-bad { border-top: 2px solid var(--bad); }
.cost-note { margin-top: 14px; }
.smain .stack table input[type=text] { min-width: 200px; }

@media (max-width: 1040px) {
  .edit-grid { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 34px 44px; gap: 34px; }
  .medal { grid-row: 1; width: min(68%, 260px); justify-self: start; margin: 14px; }
  .slide, .dish-top, .recipe { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .menu-btn { display: block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 2px; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .tile + .tile { padding-left: 0; border-left: 0; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .layout { display: block; }
  .app-side { position: static; height: auto; padding: 12px var(--gutter-r) 8px var(--gutter-l); border-right: 0; border-bottom: 1px solid var(--line); gap: 6px; }
  .profile { display: flex; align-items: center; gap: 12px; text-align: left; padding: 2px 0 10px; }
  .avatar { width: 58px; height: 58px; margin: 0; }
  .profile h3 { margin: 0; }
  .navlist { display: flex; overflow-x: auto; scrollbar-width: none; }
  .navlabel { display: none; }
  .navlist a { flex: none; white-space: nowrap; }
  .side-login, .quote { display: none; }
  .mast { min-height: 130px; padding: 18px var(--gutter-r) 18px var(--gutter-l); }
  .hat { width: 42px; height: 42px; }
  .content { padding: 14px var(--gutter-r) 24px var(--gutter-l); }
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-img { min-height: 0; aspect-ratio: 4/3; height: auto; }
  .smain { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .savebar { left: 0; padding-inline: 16px; }
  .grid.r { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .cols3, .lanes { grid-template-columns: minmax(0, 1fr); }
  .course { grid-template-columns: minmax(0, 1fr) 36px; }
  .course .field:first-child { grid-column: 1 / -1; }
  .ing-line { grid-template-columns: minmax(0, 1fr) 72px 72px 34px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .ing-line > input:first-child { grid-column: 1 / -1; }
  .ing-line > input:nth-child(4) { grid-column: 1 / 3; }
  .ing-line > .num { grid-column: 3 / 5; }
  .ing-line > .x { grid-row: 2; grid-column: 3 / 4; display: none; }
  .ing-line > input:nth-child(2) { grid-column: 1 / 2; }
  .ing-line > select { grid-column: 2 / 4; }
  .ing-line > .x { display: block; grid-column: 4; grid-row: 2; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .medal::after { animation: ring 1.1s ease-out both; }
  @keyframes ring { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media print {
  body.printing { background: #fff; color: #111; font-size: 11pt; }
  body.printing #app, body.printing .toast { display: none; }
  body.printing #print { display: block; }
  body.printing .cv { color: #111; }
  .cv h1 { font-size: 26pt; }
  .cv h2 { font-size: 13pt; border-bottom: 1px solid #a8843f; margin: 14pt 0 6pt; padding-bottom: 2pt; }
  .cv header { display: flex; gap: 16pt; align-items: center; }
  .cv header img { width: 90pt; height: 90pt; border-radius: 50%; object-fit: cover; }
  .cv-role { font-style: italic; color: #7d5f25; }
  .cv-contact { font-size: 9.5pt; margin-top: 5pt; }
  .cv-job { margin-bottom: 7pt; break-inside: avoid; }
  .cv-job > div { display: flex; flex-wrap: wrap; gap: 4pt; }
  .cv-job span { margin-left: auto; }
  .cv-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14pt; }
  .cv ul, .cv ol { margin: 0; padding-left: 14pt; }
  @page { margin: 14mm; }
}
