
/* Layout: one phone-width column, a scrolling screen per view, floating glass tab bar.
   Green feeds you (Fresh Pickens), red teaches you (The Cooking Nurse), orange is the one action colour. */
:root {
  --bg: #FAF7F1; --surface: #FFFFFF; --raise: #FFFDF9; --sunk: #F3EEE6;
  --fg: #1A1A17; --fg2: #3D382F; --muted: #5C564C; --line: #E6DFD3; --line2: #EFE8DC;
  --chilli: #C53735; --chilli-2: #A82B21; --chilli-soft: #FBE7E4; --chilli-ink: #A82B21;
  --forest: #1D3A1C; --leaf: #2E5A2B; --leaf-2: #2F6B3A; --leaf-soft: #E5F0DC; --leaf-ink: #2E5A2B;
  --mango: #F2B12B; --tangerine: #E8711C; --mango-soft: #FFF1D6; --amber-ink: #9A4A0E;
  --on-accent: #1A1A17; --glass: rgba(255,255,255,.82); --glass-line: rgba(255,255,255,.9);
  --shadow: 0 1px 2px rgba(26,26,23,.05), 0 8px 24px rgba(26,26,23,.07);
  --raise-shadow: 5px 5px 14px rgba(120,95,60,.14), -4px -4px 12px rgba(255,255,255,.95), inset 0 1px 0 #fff;
  --sunk-shadow: inset 2px 2px 6px rgba(110,90,60,.16), inset -2px -2px 6px rgba(255,255,255,.95);
  --scrim: rgba(20,14,10,.45);
  --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.23,1,.32,1); --drawer: cubic-bezier(.32,.72,0,1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --dot: rgba(255,255,255,.28); --bg: #14120F; --surface: #1E1B17; --raise: #24201B; --sunk: #191612;
  --fg: #F3EEE6; --fg2: #DDD5C8; --muted: #B5AC9E; --line: #3A342C; --line2: #2E2924;
  --chilli: #E0574A; --chilli-2: #C53735; --chilli-soft: #3A1A16; --chilli-ink: #FF8A7C;
  --forest: #12240F; --leaf: #6FAE5A; --leaf-2: #3F7A3A; --leaf-soft: #1E2C19; --leaf-ink: #9BD07F;
  --mango-soft: #3A2E14; --amber-ink: #F5B866; --glass: rgba(36,32,27,.82); --glass-line: rgba(255,255,255,.08);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --raise-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  --sunk-shadow: inset 2px 2px 6px rgba(0,0,0,.45), inset -1px -1px 3px rgba(255,255,255,.04);
  --scrim: rgba(0,0,0,.6); color-scheme: dark } }
:root[data-theme="dark"] {
  --dot: rgba(255,255,255,.28); --bg: #14120F; --surface: #1E1B17; --raise: #24201B; --sunk: #191612;
  --fg: #F3EEE6; --fg2: #DDD5C8; --muted: #B5AC9E; --line: #3A342C; --line2: #2E2924;
  --chilli: #E0574A; --chilli-2: #C53735; --chilli-soft: #3A1A16; --chilli-ink: #FF8A7C;
  --forest: #12240F; --leaf: #6FAE5A; --leaf-2: #3F7A3A; --leaf-soft: #1E2C19; --leaf-ink: #9BD07F;
  --mango-soft: #3A2E14; --amber-ink: #F5B866; --glass: rgba(36,32,27,.82); --glass-line: rgba(255,255,255,.08);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --raise-shadow: 0 6px 16px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  --sunk-shadow: inset 2px 2px 6px rgba(0,0,0,.45), inset -1px -1px 3px rgba(255,255,255,.04);
  --scrim: rgba(0,0,0,.6); color-scheme: dark }

html { height: 100%; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body { height: 100%; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.5; overscroll-behavior: none; }
* { box-sizing: border-box; }
button, a, [role="button"], .tap { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; font-size: 16px; color: var(--fg); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -.3px; }
p { margin: 0; }
img { display: block; }
:focus-visible { outline: 3px solid #1C6DD0; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

#app { position: relative; max-width: 480px; height: 100%; margin: 0 auto; background: var(--bg); overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)); }
.screen.no-tabs { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
.screen.flush { padding-top: 0; }
.enter { animation: enter 280ms var(--ease); }
.enter-back { animation: enterBack 240ms var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* Surfaces */
.card { background: var(--surface); box-shadow: var(--shadow); border-radius: 22px; }
.raise { background: var(--raise); box-shadow: var(--raise-shadow); border: 0; }
.sunk { background: var(--sunk); box-shadow: var(--sunk-shadow); border: 0; }
.glass { background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); border: 1px solid rgba(255,255,255,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 24px rgba(0,0,0,.14); color: #FFFFFF; }
.press { transition: transform 160ms var(--ease), box-shadow 160ms ease, background-color 160ms ease; }
.press:active { transform: scale(.97); }

/* Type */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.h1 { font-size: 28px; font-weight: 800; line-height: 1.08; }
.h2 { font-size: 21px; font-weight: 800; line-height: 1.15; }
.h3 { font-size: 17px; font-weight: 800; line-height: 1.2; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.price { font-family: var(--display); font-weight: 800; color: var(--leaf-ink); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { min-height: 52px; border-radius: 18px; border: 0; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px; text-decoration: none; }
.btn-cta { background: linear-gradient(135deg, #F7C04A 0%, #F08A2A 55%, #E8711C 100%); color: #1A1A17; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.08), 0 8px 20px rgba(232,113,28,.32); }
.btn-forest { background: linear-gradient(150deg, #2F6B3A, #1D3A1C); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px rgba(29,58,28,.28); }
.btn-chilli { background: linear-gradient(150deg, #E2533F, #A82B21); color: #FFFFFF; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 18px rgba(197,55,53,.3); }
.btn-ghost { background: var(--sunk); box-shadow: var(--sunk-shadow); color: var(--fg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; border: 0; padding: 0; position: relative; flex-shrink: 0; color: var(--fg); }
.icon-btn.round { border-radius: 24px; }
.badge-count { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; color: #FFFFFF; border: 2px solid var(--raise); }
.chip { height: 42px; padding: 0 16px; border-radius: 21px; border: 0; white-space: nowrap; font-weight: 800; font-size: 14px; flex-shrink: 0; background: var(--sunk); box-shadow: var(--sunk-shadow); color: var(--fg2); transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: linear-gradient(150deg, #2F2B26, #1A1A17); color: #FFFFFF; box-shadow: 0 6px 14px rgba(26,26,23,.22); }
.chip.green[aria-pressed="true"], .chip.green[aria-selected="true"] { background: linear-gradient(150deg, #2F6B3A, #1D3A1C); }
.scroller { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.scroller::-webkit-scrollbar { display: none; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 800; }
.input { min-height: 50px; border-radius: 16px; border: 0; padding: 12px 14px; background: var(--sunk); box-shadow: var(--sunk-shadow); width: 100%; outline: none; }
.input:focus { box-shadow: var(--sunk-shadow), 0 0 0 2px var(--tangerine); }
textarea.input { resize: none; line-height: 1.45; }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 13px; color: var(--chilli-ink); font-weight: 700; }
.opt { min-height: 56px; border-radius: 16px; border: 2px solid transparent; background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; padding: 8px 14px; text-align: left; width: 100%; }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--tangerine); background: var(--mango-soft); }
.tick { width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--sunk); box-shadow: var(--sunk-shadow); color: transparent; font-weight: 800; }
[aria-pressed="true"] > .tick, [aria-checked="true"] > .tick { background: linear-gradient(150deg, #4F8A3E, #1D3A1C); color: #FFFFFF; box-shadow: none; }
.stepper { display: flex; align-items: center; border-radius: 16px; height: 52px; }
.stepper button { width: 46px; height: 52px; border: 0; background: transparent; font-size: 22px; font-weight: 800; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Tab bar */
.tabbar { position: absolute; z-index: 40; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: 72px; border-radius: 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 30px rgba(27,46,34,.16); }
.tab { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); border-radius: 20px; }
.tab[aria-current="page"] { color: #FFFFFF; font-weight: 800; background: linear-gradient(150deg, #E2533F, #A82B21); box-shadow: 0 6px 14px rgba(197,55,53,.32); }
.tab.shop { position: relative; }
.tab.shop .orb { width: 60px; height: 60px; margin-top: -30px; border-radius: 30px; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #2F6B3A, #1D3A1C); color: #F7C04A; box-shadow: 0 10px 22px rgba(29,58,28,.38), inset 0 1px 0 rgba(255,255,255,.25); border: 4px solid var(--bg); }
.tab.shop[aria-current="page"] { background: transparent; box-shadow: none; color: var(--leaf-ink); }
.tab.shop[aria-current="page"] .orb { background: linear-gradient(150deg, #F9CC62, #E8711C); color: #1A1A17; }

/* Top bar for inner screens */
.topbar { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.topbar .title { font-family: var(--display); font-weight: 800; font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero media */
.media { position: relative; overflow: hidden; background: var(--sunk); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fade-b::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.bleed { margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); }

/* Product tiles */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: 22px; padding: 8px; display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.tile .ph { position: relative; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tile .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .name { font-size: 14px; font-weight: 800; line-height: 1.25; padding: 0 4px; overflow-wrap: anywhere; }
.tag { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #FFFFFF; display: flex; align-items: center; z-index: 1; }
.heart { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 17px; border: 0; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.add { width: 44px; height: 44px; border-radius: 16px; border: 0; display: flex; align-items: center; justify-content: center; padding: 0; background: linear-gradient(150deg, #F9CC62, #F2B12B); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(150,90,0,.18), 0 4px 10px rgba(242,177,43,.38); color: #1A1A17; }
.add.sm { width: 36px; height: 36px; border-radius: 18px; }

/* Banner */
.banner { position: relative; height: 212px; border-radius: 26px; overflow: hidden; box-shadow: 0 14px 30px rgba(27,46,34,.18); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; border-radius: 26px; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; height: 212px; border-radius: 26px; overflow: hidden; }
.slide img { position: absolute; right: 0; top: 0; width: 60%; height: 100%; object-fit: cover; }
.slide .copy { position: relative; width: 64%; height: 100%; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.slide .t { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.02; color: #FFFFFF; text-transform: uppercase; white-space: pre-line; letter-spacing: -.3px; }
.dots { display: flex; justify-content: center; gap: 2px; }
.dot { width: 24px; height: 20px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.dot span { display: block; height: 7px; width: 7px; border-radius: 4px; background: var(--dot, rgba(29,58,28,.24)); transition: width 220ms var(--ease), background-color 220ms ease; }
.dot[aria-selected="true"] span { width: 22px; background: var(--tangerine); }

/* Category circles: size follows screen width so ~4.5 show, with a peek of the next */
.hero-group { display: flex; flex-direction: column; gap: 6px; }
.circles { --cs: clamp(64px, calc((min(100vw, 480px) - 32px - 48px) / 4.5), 80px); display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; }
.circles::-webkit-scrollbar { display: none; }
.circle { display: flex; flex-direction: column; align-items: center; gap: 6px; width: var(--cs); flex-shrink: 0; border: 0; background: transparent; padding: 0; font-size: 13px; line-height: 16px; font-weight: 700; color: var(--fg); text-align: center; scroll-snap-align: start; }
.circle .ring { width: var(--cs); height: var(--cs); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--raise); box-shadow: var(--raise-shadow); }
.circle .ring img, .circle .ring .ico { width: calc(var(--cs) - 6px); height: calc(var(--cs) - 6px); border-radius: 50%; object-fit: cover; }
.circle .ring .ico { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #F9CC62, #E8711C); }
.circle.on .ring { background: linear-gradient(150deg, #FCE3CC, #F7C04A); box-shadow: 0 8px 18px rgba(232,113,28,.3); }

/* Sheets, drawer, toast */
.scrim { position: absolute; inset: 0; z-index: 60; background: var(--scrim); border: 0; padding: 0; animation: fadeIn 200ms ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 88%; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-radius: 30px 30px 0 0; padding: 10px max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); box-shadow: 0 -16px 40px rgba(0,0,0,.2); animation: sheetUp 320ms var(--drawer); display: flex; flex-direction: column; gap: 14px; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; flex-shrink: 0; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 84%); z-index: 61; background: var(--surface); padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); animation: drawerIn 300ms var(--drawer); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; box-shadow: 16px 0 40px rgba(0,0,0,.2); }
.menu-item { min-height: 52px; border: 0; background: transparent; display: flex; align-items: center; gap: 14px; padding: 0 8px; border-radius: 14px; font-size: 15px; font-weight: 700; text-align: left; width: 100%; color: var(--fg); text-decoration: none; }
.menu-item:active { background: var(--sunk); }
.toast { position: absolute; left: 16px; right: 16px; z-index: 80; top: calc(10px + env(safe-area-inset-top, 0px)); min-height: 52px; border-radius: 18px; padding: 12px 16px; background: #1A1A17; color: #FFFFFF; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.25); animation: toastIn 260ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes drawerIn { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.spin { width: 22px; height: 22px; border-radius: 11px; border: 3px solid rgba(0,0,0,.15); border-top-color: currentColor; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Lists and timeline */
.list { border-radius: 22px; padding: 4px 14px; }
.li { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line2); width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--fg); text-decoration: none; }
.li:last-child { border-bottom: 0; }
.step-dot { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.pill { height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.empty { border-radius: 22px; padding: 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bar { height: 8px; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #E2533F, #C53735); transform-origin: left; }

/* Bottom action bar for inner screens */
.actionbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }

@media (hover: hover) and (pointer: fine) {
  .chip:hover { filter: brightness(.98); }
  .menu-item:hover { background: var(--sunk); }
  .li:hover { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .enter, .enter-back, .sheet, .drawer, .toast, .scrim { animation: fadeIn 160ms ease; }
  .press:active, .chip:active { transform: none; }
  .dot span { transition: none; }
}

/* v6: swipe pages, books, reader, celebration, clearer leads */
[hidden] { display: none !important; }
.snap { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.snap::-webkit-scrollbar { display: none; }
.snap > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.segs { display: flex; gap: 6px; }
.segs i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); transition: background-color 200ms ease; }
.segs i[aria-selected="true"] { background: #FFFFFF; }
.cover { position: relative; display: block; flex-shrink: 0; border-radius: 4px 12px 12px 4px; overflow: hidden; box-shadow: 6px 10px 22px rgba(40,25,10,.28); }
.cover::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6%; background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(0,0,0,.12)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .sh { position: absolute; inset: 0; }
.cover .k { position: absolute; top: 8%; left: 12%; right: 8%; font-size: .5em; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; color: #F7C04A; line-height: 1.2; }
.cover .t { position: absolute; left: 12%; right: 8%; bottom: 8%; font-family: var(--display); font-weight: 800; line-height: 1.05; color: #FFFFFF; }
.rp { display: block; width: 100%; border: 0; background: none; padding: 8px 0; margin: 0; text-align: left; font: inherit; font-size: var(--rf, 19px); line-height: 1.6; color: var(--fg); transition: opacity 250ms ease; user-select: text; -webkit-user-select: text; }
.reading .rp { opacity: .4; }
.reading .rp[aria-current="true"] { opacity: 1; }
.lead { position: relative; overflow: hidden; }
.lead::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.confetti i { position: absolute; top: -24px; width: 8px; height: 14px; border-radius: 2px; opacity: .95; animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(560deg); } }
.pop { animation: pop 520ms var(--ease) both; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.mini { position: absolute; z-index: 39; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); min-height: 60px; border-radius: 20px; background: var(--surface); box-shadow: 0 10px 26px rgba(20,20,10,.22); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; }
.sheet.still, .scrim.still { animation: none; }
.soc { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--fg); font-size: 11px; font-weight: 800; text-align: center; min-height: 44px; }
.soc span { width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px rgba(0,0,0,.16); }
.linkbtn { border: 0; background: none; min-height: 44px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--leaf-ink); }
.feeico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.radio { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--line); flex-shrink: 0; }
[aria-checked="true"] > .radio { border: 7px solid var(--tangerine); }
.addtog { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--sunk); color: var(--fg); }
[aria-pressed="true"] > .addtog { background: linear-gradient(150deg, #4F8A3E, #1D3A1C); color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .lead::after, .confetti { display: none; } .pop { animation: none; } .rp { transition: none; } }

/* v7: skeleton loaders */
.sk-b { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--sunk) 30%, var(--raise) 50%, var(--sunk) 70%); background-size: 300% 100%; animation: skmove 1.3s ease-in-out infinite; flex-shrink: 0; }
.sk::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, var(--sunk) 30%, var(--raise) 50%, var(--sunk) 70%); background-size: 300% 100%; animation: skmove 1.3s ease-in-out infinite; }
.sk-img { opacity: 0; transition: opacity 260ms ease; }
.sk-img.in { opacity: 1; }
.sk-fail { background: var(--sunk) !important; }
@keyframes skmove { from { background-position: 100% 0; } to { background-position: 0 0; } }
.netbar { position: absolute; z-index: 70; left: 12px; right: 12px; top: calc(8px + env(safe-area-inset-top, 0px)); min-height: 40px; border-radius: 14px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; background: #3A2E12; color: #FFE8B0; font-size: 12px; font-weight: 700; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: reduce) { .sk-b, .sk::before { animation: none; } .sk-img { transition: none; } }

/* v8: staff screens (wide on desktop), tables, kitchen board */
#app.wide { max-width: 1200px; }
#app.wide .actionbar { max-width: 1200px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.kcols { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
@media (max-width: 760px) { .kcols { grid-template-columns: repeat(5, 82%); scroll-snap-type: x mandatory; } .kcols > * { scroll-snap-align: start; } }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; }
.atable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 800; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.atable td { padding: 8px; border-bottom: 1px solid var(--line2); vertical-align: top; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
button[disabled] { cursor: not-allowed; }

/* website: loading screen */
.boot{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:var(--muted);font:600 15px var(--body)}.boot img{width:120px;height:auto;border-radius:24px}.boot .spin{color:var(--tangerine)}
