/* FUEL: look A. White, ink, one orange. Instrument Sans. */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --page: #F6F6F3;
  --stone: #F1F1EE;
  --stone-2: #E9E9E4;
  --line: #E4E4DF;
  --line-2: #EFEFEA;
  --ink: #18181B;
  --ink-2: #3A3A36;
  --muted: #62625C;
  --soft: #8A8A83;
  --accent: #F26A21;
  --accent-text: #B8470F;
  --accent-soft: #FDF0E8;
  --green: #1E6B3A;
  --green-soft: #E8F4EC;
  --red: #B3261E;
  --red-soft: #FCECEA;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 12px 28px rgba(24, 24, 27, 0.16);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: #8F370B; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.ic { flex-shrink: 0; }
.mark { width: 14px; height: 14px; flex-shrink: 0; vertical-align: -2px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #CFCFC8; color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; border-color: #000; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #E45F18; border-color: #E45F18; color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--stone); }
.btn-danger { color: var(--red); }
.btn-danger:hover { border-color: var(--red); color: var(--red); }
.btn-wa { background: #E7F6EC; border-color: #CBEBD6; color: #0F5132; }
.btn-wa:hover { color: #0F5132; border-color: #9FD9B3; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn:disabled { opacity: .55; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.icon-btn:hover { background: var(--stone); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--stone); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip-accent { background: var(--accent-soft); color: #8F370B; }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-red { background: var(--red-soft); color: var(--red); }
.chip-ink { background: var(--ink); color: #fff; }
.chip-sm { height: 24px; padding: 0 9px; font-size: 12.5px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 13px; font-weight: 400; }
.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid #D6D6D0; background: #fff; font-size: 16px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .08); }
textarea.input { min-height: 84px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2318181B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin: 4px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.error { color: var(--red); background: var(--red-soft); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* segmented choices */
.opt-group { margin: 18px 0 0; }
.opt-group > h3, .opt-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.seg-btn { min-height: 48px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font-size: 15px; font-weight: 600; display: flex; flex-direction: column; justify-content: center; gap: 2px; line-height: 1.25; }
.seg-btn small { font-size: 13px; font-weight: 500; color: var(--muted); }
.seg-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg-btn[aria-pressed="true"] small { color: #D4D4CE; }
.seg-btn:disabled { opacity: .5; }
.seg-btn .mark { margin-right: 4px; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; background: none; padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.switch .track { width: 42px; height: 26px; border-radius: 999px; background: #D6D6D0; position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch[aria-checked="true"] .track { background: #1E8A44; }
.switch[aria-checked="true"] .track::after { transform: translateX(16px); }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 44px; }
.qty button { width: 44px; height: 42px; border: 0; background: none; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.qty button:hover { background: var(--stone); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }

/* ---------- notices, toast ---------- */
.notice { display: block; width: 100%; text-align: left; border: 0; margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--stone); font-size: 14px; font-weight: 500; color: var(--ink); }
.notice-accent { background: var(--accent-soft); color: #7A2E08; }
.notice-green { background: var(--green-soft); color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

/* ---------- sheet (bottom sheet on phones, modal on wide screens) ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(24, 24, 27, .45); }
.sheet-panel { position: relative; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .22s ease-out; overscroll-behavior: contain; }
.sheet-wide .sheet-panel { max-width: 760px; }
@media (min-width: 700px) {
  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { border-radius: 24px; max-height: 88vh; }
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { margin: 6px 0 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.3px; display: flex; gap: 8px; align-items: baseline; }
.sheet-head h2 .mark { align-self: center; }
.sheet-close { flex-shrink: 0; }
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; margin: 20px -20px calc(-20px - env(safe-area-inset-bottom)); padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line-2); }
.sheet-foot .btn-primary { flex: 1; min-height: 52px; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .sheet-panel { animation: none; } }

/* =====================================================================
   CUSTOMER PAGE
   ===================================================================== */
.shop { max-width: 760px; margin: 0 auto; min-height: 100vh; padding-bottom: 120px; }
.top { padding: 18px 20px 4px; display: flex; flex-direction: column; gap: 6px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; line-height: 1; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.brand:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 8px; }
.top-sub { margin: 0; font-size: 14px; color: var(--muted); }
.top-sub b { color: var(--green); font-weight: 600; }
.top-sub b.closed { color: var(--red); }
.shop-notices { padding: 8px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.shop-notices:empty { display: none; }

/* last order */
.again { margin: 12px 20px 0; padding: 14px 16px; border-radius: var(--r-lg); background: var(--stone); display: flex; align-items: center; gap: 14px; }
.again-main { flex: 1; min-width: 0; }
.again-main h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.again-main p { margin: 2px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.again-main small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* tabs */
.tabs-bar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-2); margin-top: 10px; }
.tabs-row { display: flex; align-items: center; gap: 4px; }
.cat-nav { flex: 1; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 0 20px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { display: flex; align-items: center; min-height: 48px; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--muted); border-bottom: 2px solid transparent; }
.cat-nav a:hover { color: var(--ink); }
.cat-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.veg-only { padding: 0 16px 0 10px; flex-shrink: 0; border-left: 1px solid var(--line-2); }
.veg-only .switch { font-size: 14px; gap: 8px; }
.veg-only .switch .track { width: 36px; height: 22px; }
.veg-only .switch .track::after { width: 16px; height: 16px; }
.veg-only .switch[aria-checked="true"] .track::after { transform: translateX(14px); }

/* sections and dish cards */
.cat { padding: 24px 20px 0; scroll-margin-top: 56px; }
.cat-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.cat-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; } }
.card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); background: var(--stone); overflow: hidden; }
.card-open { position: absolute; inset: 0; border: 0; padding: 0; background: none; width: 100%; height: 100%; border-radius: var(--r-lg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #9A9A92; }
.ph-mono { font-size: 34px; font-weight: 700; letter-spacing: -1px; color: #C8C8C1; }
.pill-p { position: absolute; top: 10px; left: 10px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; pointer-events: none; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.pill-tag { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--ink); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; pointer-events: none; }
.add-btn { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.add-btn:hover { background: #000; }
.stepper { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 44px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.stepper span { font-size: 16px; font-weight: 700; }
.sold-label { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.card.is-off .card-img img, .card.is-off .ph { filter: grayscale(1); opacity: .55; }
.card.is-off .card-name, .card.is-off .card-price { color: var(--soft); }
.card-name { margin: 0; display: flex; gap: 7px; align-items: flex-start; font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-name .mark { margin-top: 3px; }
.card-name button { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; line-height: 1.3; }
.card-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.card-price { font-size: 15px; font-weight: 700; }
.card-macro { font-size: 13px; color: var(--muted); }
.sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: var(--stone); border-radius: 13px; padding: 3px; }
.sizes button { height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.2; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sizes button span { font-weight: 500; }
.sizes button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* plans section on the customer page */
.plans { padding: 32px 20px 0; scroll-margin-top: 56px; }
.builder { margin-top: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--stone); }
.builder .opt-group:first-child { margin-top: 0; }
.builder .seg-btn { background: #fff; border-color: #fff; }
.builder .seg-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.plan-read { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--stone-2); }
.plan-read .big { font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.plan-read .big small { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.plan-read .lbl { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.plan-read .r { text-align: right; }
.pr-note { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.pay-note { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* footer */
.foot { padding: 36px 20px 20px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.foot p { margin: 0 0 4px; }

/* cart bar */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); pointer-events: none; }
.cart-btn { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; height: 64px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 0 10px 0 24px; box-shadow: var(--shadow); text-align: left; }
.cart-btn .cb-l { display: flex; flex-direction: column; line-height: 1.2; }
.cart-btn .cb-l small { font-size: 13px; color: #C9C9C2; }
.cart-btn .cb-l b { font-size: 19px; }
.cart-btn .cb-r { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px 0 20px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 15px; font-weight: 700; }
.cart-btn.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .cart-btn.bump { animation: none; } }

/* dish details sheet */
.dish-hero { margin: 14px -20px 0; aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.dish-hero img { width: 100%; height: 100%; object-fit: cover; }
.dish-hero .ph { aspect-ratio: auto; }
.macros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 14px 0 0; }
.macros div { background: var(--stone); border-radius: var(--r-md); padding: 10px 8px; text-align: center; }
.macros b { display: block; font-size: 18px; font-weight: 700; }
.macros span { font-size: 12.5px; color: var(--muted); }
.macros .hi { background: var(--accent-soft); }
.macros .hi span { color: #8F370B; }

/* cart */
.line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.line-main { flex: 1; min-width: 0; }
.line-main b { display: block; font-weight: 600; line-height: 1.3; }
.line-main small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.line .price { font-weight: 700; min-width: 56px; text-align: right; }
.totals { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.total-row.big { font-size: 20px; font-weight: 700; margin-top: 6px; }
.order-macros { display: flex; gap: 6px; margin: 14px 0 0; }
.order-macros div { flex: 1; background: var(--stone); border-radius: var(--r-md); padding: 10px; text-align: center; }
.order-macros b { display: block; font-size: 18px; }
.order-macros span { font-size: 12.5px; color: var(--muted); }

/* order status */
.status { text-align: center; padding: 6px 0 0; }
.order-no { font-size: 64px; font-weight: 700; letter-spacing: -2px; line-height: 1; margin: 8px 0 6px; }
.order-no.stamp { animation: stamp .45s cubic-bezier(.2,.9,.3,1.3); }
@keyframes stamp { from { transform: scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .order-no.stamp { animation: none; } }
.progress { height: 8px; border-radius: 999px; background: var(--stone); overflow: hidden; margin: 18px 0 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .8s ease-out; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 13px; color: var(--soft); font-weight: 600; }
.steps .on { color: var(--ink); }
.steps .step:nth-child(2) { text-align: center; }
.steps .step:nth-child(3) { text-align: right; }
.status-msg { font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.fuel-line { font-size: 15px; color: var(--ink-2); margin: 6px 0 0; }
.track-bar { margin: 10px 20px 0; width: auto; }
.pop { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 90; width: calc(100% - 24px); max-width: 520px; border: 0; border-radius: var(--r-lg); background: var(--ink); color: #fff; padding: 14px 18px; text-align: left; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.pop b { font-size: 16px; }
.pop span { font-size: 14px; color: #D4D4CE; }
.pop-ready { background: var(--accent); color: var(--ink); }
.pop-ready span { color: #3A1A08; }
.pop-bad { background: var(--red); }
.pop-in { animation: popIn .3s ease-out; }
@keyframes popIn { from { transform: translate(-50%, -16px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* plan page */
.plan-page { padding: 8px 20px 0; }
.plan-hi { font-size: 30px; letter-spacing: -0.6px; margin: 10px 0 4px; }
.plan-what { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.plan-card { margin-top: 18px; padding: 20px; border-radius: var(--r-lg); background: var(--stone); }
.plan-card .left { font-size: 56px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.plan-card .left small { font-size: 18px; letter-spacing: 0; font-weight: 600; margin-left: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.cal-h { text-align: center; font-size: 12px; color: var(--soft); font-weight: 700; }
.cal-d { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 600; background: var(--stone); }
.cal-d.got { background: var(--ink); color: #fff; }
.cal-d.got2 { background: var(--accent); color: var(--ink); }
.cal-d.off { background: transparent; color: var(--soft); }
.cal-d.missed { background: #fff; border: 1px solid var(--line); color: var(--soft); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-pad { background: transparent; }
.cal-key { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.cal-key i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; background: var(--stone); }
.cal-key i.got { background: var(--ink); }
.cal-key i.missed { background: #fff; border: 1px solid var(--line); }
.sec-title { font-size: 19px; margin: 28px 0 8px; }

/* =====================================================================
   DASHBOARD
   ===================================================================== */
body.admin { background: var(--page); }
.login { max-width: 400px; margin: 10vh auto 0; padding: 28px 24px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); }
.login h1 { margin: 0 0 4px; font-size: 32px; letter-spacing: -1px; }
.login h1 span { color: var(--accent); }
.admin-top { position: sticky; top: 0; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.admin-brand { display: flex; align-items: baseline; gap: 10px; }
.admin-brand .brand { font-size: 26px; }
.admin-brand small { font-size: 14px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 15px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; }
.nav button:hover { background: var(--stone); }
.nav button[aria-selected="true"] { background: var(--ink); color: #fff; }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.badge-soft { background: var(--stone-2); color: var(--ink); }
.nav button[aria-selected="true"] .badge-soft { background: #3A3A36; color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #C8C8C1; }
.live.on { color: var(--green); }
.live.on::before { background: #1E8A44; }
.view { max-width: 1440px; margin: 0 auto; padding: 22px 24px 60px; }
@media (max-width: 600px) { .view { padding: 16px 14px 60px; } .admin-top { padding: 10px 14px; } }
@media (max-width: 760px) { .admin-top { position: static; } .pos-bill { position: static; } }
.view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 16px; }
.view-head h1 { margin: 0; font-size: 24px; letter-spacing: -0.4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
.panel > h2, .panel-title { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.2px; }
.panel > p.muted:first-of-type { margin-top: -4px; }
.empty { border: 1px dashed #D6D6D0; border-radius: var(--r-lg); padding: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: #7A2E08; font-size: 14px; margin-bottom: 8px; }
.alert-bad { background: var(--red-soft); color: var(--red); }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.list .r { text-align: right; white-space: nowrap; }
table.list tr.row-low td { background: #FFF8F2; }
table.list tr.row-bad td { background: var(--red-soft); }
.qty-in { color: var(--green); font-weight: 600; }
.qty-out { color: var(--red); font-weight: 600; }
.pct { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 999px; font-weight: 700; text-align: center; }
.pct-good { background: var(--green-soft); color: var(--green); }
.pct-ok { background: var(--accent-soft); color: #8F370B; }
.pct-bad { background: var(--red-soft); color: var(--red); }

/* order board */
.board { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.col-head { margin: 0 0 2px; display: flex; align-items: center; gap: 10px; font-size: 19px; }
.col-head .count { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.ticket.is-late { border-color: #F2B48F; }
.t-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.t-no { font-size: 30px; font-weight: 700; letter-spacing: -0.8px; line-height: 1; }
.t-who { font-size: 15px; color: var(--muted); margin-top: 4px; }
.t-who a { color: var(--muted); }
.t-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.t-time { font-size: 14px; color: var(--muted); }
.t-time.late { color: var(--accent-text); font-weight: 600; }
.t-items { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.t-items li { display: flex; gap: 10px; font-size: 16px; line-height: 1.35; }
.t-items li b { min-width: 26px; }
.t-items small { display: block; font-size: 14px; color: var(--muted); }
.t-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: #7A2E08; font-size: 14px; font-weight: 600; }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.t-total { font-size: 20px; font-weight: 700; }
.t-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.t-actions .btn-primary { flex: 1; min-height: 48px; }
.paid-toggle { border: 0; }
.readyby { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* counter billing */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .pos { grid-template-columns: minmax(0, 1fr); } }
.pos-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.pos-cats button { flex-shrink: 0; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; }
.pos-cats button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pos-tile { min-height: 86px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.pos-tile:hover { border-color: var(--ink); }
.pos-tile .pt-name { display: flex; gap: 6px; font-weight: 600; line-height: 1.25; }
.pos-tile .pt-name .mark { margin-top: 3px; }
.pos-tile .pt-sub { font-size: 13px; color: var(--muted); }
.pos-tile:disabled { opacity: .5; }
.pos-tile.added { animation: added .4s ease-out; }
@keyframes added { 30% { background: var(--accent-soft); border-color: var(--accent); } }
.pos-bill { position: sticky; top: 84px; }
.bill-head { display: flex; justify-content: space-between; align-items: center; }
.bill-head h2 { margin: 0; font-size: 18px; }
.pos-sumbar { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 30; min-height: 56px; box-shadow: var(--shadow); }
@media (min-width: 981px) { .pos-sumbar { display: none !important; } }
.channel .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* meal plans */
.plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pcard h3 { margin: 0; font-size: 17px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pcard .portion { font-weight: 600; }
.pcard .meta { font-size: 14px; color: var(--muted); }
.pcard .meta a { color: var(--muted); }
.meals-left { display: flex; align-items: baseline; gap: 8px; }
.meals-left .n { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; }
.bar { height: 6px; border-radius: 999px; background: var(--stone); overflow: hidden; }
.bar div { height: 100%; background: var(--ink); }
.pcard.done-today { background: #FBFBF9; }
.pcard .t-actions .btn-primary { flex: 0 1 auto; }

/* stock */
.stock-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .stock-grid { grid-template-columns: minmax(0, 1fr); } }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.count-row span { display: flex; flex-direction: column; }
.count-row small { color: var(--muted); font-size: 13px; }
.count-row .input { max-width: 130px; min-height: 44px; }
.count-result { padding-left: 18px; }

/* menu manager */
.mm-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 14px; overflow: hidden; }
.mm-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.mm-sec-head h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mm-sec-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.mm-sec.is-hidden .mm-sec-head h2 { color: var(--soft); }
.mm-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.mm-row:last-child { border-bottom: 0; }
.mm-thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--stone); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #A3A39B; }
.mm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-main { flex: 1; min-width: 0; }
.mm-main b { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.mm-main small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.mm-row.is-hidden .mm-main b, .mm-row.is-hidden .mm-thumb { opacity: .5; }
.mm-acts { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mm-acts .icon-btn { width: 40px; height: 40px; border-color: transparent; }
.mm-acts .icon-btn:hover { border-color: var(--line); }
@media (max-width: 600px) { .mm-row { flex-wrap: wrap; } .mm-acts { width: 100%; justify-content: flex-end; } }
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ing { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.ing b { display: block; font-size: 15px; }
.ing small { display: block; font-size: 12.5px; color: var(--muted); }
.ing.is-out { background: var(--red-soft); border-color: #F3C6C1; }

/* item editor */
.ed-photo { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.ed-photo .mm-thumb { width: 96px; height: 96px; border-radius: 16px; }
.ed-sizes { display: flex; flex-direction: column; gap: 12px; }
.ed-size { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.ed-size-head { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 10px; }
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 46px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.rec-unit { font-size: 14px; font-weight: 600; color: var(--muted); }
.rec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rec-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.rec-list li:last-child { border-bottom: 0; }
.rec-list li.not-counted { color: var(--muted); }
.rec-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rec-size { font-size: 13px; font-weight: 700; color: var(--muted); margin: 10px 0 2px; }
.rec-row .input { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.rec-row select.input { padding-right: 32px; }
.calc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.calc div { background: var(--stone); border-radius: 12px; padding: 8px; text-align: center; }
.calc b { display: block; font-size: 16px; }
.calc span { font-size: 12px; color: var(--muted); }
.calc .cost-good { background: var(--green-soft); }
.calc .cost-bad { background: var(--red-soft); }
.override { margin-top: 10px; }
.override summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.override .form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 8px; }
@media (max-width: 520px) { .override .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ed-opts { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ed-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.ed-section > h3 { margin: 0 0 10px; font-size: 16px; }
.hint { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }

/* today */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat .n { font-size: 28px; font-weight: 700; letter-spacing: -0.6px; }
.stat .sub { font-size: 13px; color: var(--muted); }
.backup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.backup-text { flex: 1 1 320px; min-width: 0; }
.backup-text p { margin: 0; max-width: 70ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.cust-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 10px; }

/* staff can't see owner-only things */
body.role-staff .owner-only { display: none !important; }
