:root {
  --accent: #dc2626;
  --bg: color-mix(in srgb, var(--accent) 5%, #ffffff);
  --surface: #ffffff;
  --surface-2: color-mix(in srgb, var(--accent) 3%, #fafafa);
  --ink: #2a0a0a;
  --ink-2: #4b3434;
  --muted: #64566a;
  --line: color-mix(in srgb, var(--accent) 14%, #ececec);
  --line-2: color-mix(in srgb, var(--accent) 22%, #d9d9d9);
  --gold: #a16207; --gold-soft: #fef6e2;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, white);
  --accent-line: color-mix(in srgb, var(--accent) 35%, white);
  --green: #16a34a; --green-soft: #ecfdf3;
  --amber: #d97706; --amber-soft: #fff7e6;
  --blue: #2563eb; --blue-soft: #eef4ff;
  --red: #dc2626; --red-soft: #fef2f2;
  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .35);
  --font: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display SC", Georgia, "Times New Roman", serif;
  --topbar-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-brand="chilli"]  { --accent: #dc2626; --accent-ink: #fff; }
:root[data-brand="berry"]   { --accent: #d6246e; --accent-ink: #fff; }
:root[data-brand="saffron"] { --accent: #f2a007; --accent-ink: #1f1300; }
:root[data-brand="emerald"] { --accent: #059669; --accent-ink: #fff; }
:root[data-brand="ocean"]   { --accent: #2563eb; --accent-ink: #fff; }
:root[data-brand="coral"]   { --accent: #ea580c; --accent-ink: #fff; }
:root[data-brand="plum"]    { --accent: #7c3aed; --accent-ink: #fff; }

/* ---------- Clinicpoint's brand. data-app="orbyt" marks Clinicpoint's own screens (website, platform, staff and
   driver apps): Clinicpoint's type, neutrals and chrome. data-brand still sets the accent, so the staff and
   driver apps keep each restaurant's colour after sign-in. Patient pages and clinic sites use neither. */
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
:root[data-brand="orbyt"] { --accent: #f04e14; --accent-ink: #17110d; --accent-text: #b83a0c; --accent-soft: #ffe7da; }
:root[data-app="orbyt"] {
  --accent-line: #17110d;
  --bg: #fff7ec; --surface: #ffffff; --surface-2: #fff1e0;
  --ink: #17110d; --ink-2: #4a3d33; --muted: #6a5b4e;
  --line: #e9dccb; --line-2: #9c8a7a;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-app="orbyt"] h1, :root[data-app="orbyt"] h2 { font-weight: 700; letter-spacing: -.02em; }
:root[data-app="orbyt"] .topbar:not(.topbar--staff) { background: rgba(255, 247, 236, .9); }
:root[data-app="orbyt"] .topbar--staff { background: #17110d; border-bottom-color: #2c221b; }
:root[data-app="orbyt"] .topbar--staff .wordmark > span:not(.logo) > span { color: #d9cbbb; }
:root[data-app="orbyt"] .topbar--staff .tabs, :root[data-app="orbyt"] .topbar--staff .signout { background: #2c221b; }
:root[data-app="orbyt"] .topbar--staff .topbar__ctl .input { background-color: #2c221b; border-color: #4a3d33; }
:root[data-app="orbyt"] .tabs, :root[data-app="orbyt"] .seg { background: #f3e8da; }
:root[data-app="orbyt"] .btn:hover { border-color: var(--ink-2); }
:root[data-app="orbyt"] .btn--primary { box-shadow: none; }
:root[data-app="orbyt"] .btn--dark:hover { background: #2c221b; }
:root[data-app="orbyt"] .notice { color: #d9cbbb; }
:root[data-brand="orbyt"] .btn--primary:hover { background: #ff6a33; border-color: #ff6a33; }
:root[data-brand="orbyt"] .linkish:hover { color: var(--accent-text); }
.appmark { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #fff7ec; padding-right: 14px; border-right: 1px solid #3a2e26; }
.appmark svg { display: block; overflow: visible; }
img.logo { padding: 0; background: none; }
.logo > img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.brandlogo { display: block; height: 30px; width: auto; flex-shrink: 0; color: var(--ink); overflow: visible; }
.topbar--staff .brandlogo { color: #fff7ec; }
.orb-dot { fill: var(--accent); }
.wordmark:has(.brandtag) { gap: 14px; align-items: center; }
.brandtag { font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 22px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--ink); }
.orbmark { color: var(--ink); overflow: visible; }
/* the living logo: the bite does a lap of the ring, then rests */
.brandlogo .orb { transform-origin: 35px 65px; animation: orbyt-lap 7s cubic-bezier(.65, 0, .35, 1) 1.2s infinite; }
.orbmark .orb { transform-origin: 35px 35px; animation: orbyt-lap 3.2s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes orbyt-lap { 0%, 72% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .brandlogo .orb, .orbmark .orb { animation: none; } }
@media (max-width: 520px) { .brandtag { display: none; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; min-height: 100dvh; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.15; font-weight: 700; }
h1, h2, .hero h1, .menu-sec > h2 { font-family: var(--font-display); letter-spacing: 0; font-weight: 700; }
h1 { font-weight: 400; }
h1 { font-size: 28px; } h2 { font-size: 19px; } h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
h1::first-letter, h2::first-letter, legend::first-letter, .lbl::first-letter, th::first-letter, .field > label::first-letter { text-transform: uppercase; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 900; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus-visible { top: 8px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 300; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 20px; height: var(--topbar-h); max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; min-width: 0; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.02em; flex-shrink: 0; }
.wordmark b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark > span:not(.logo) { display: block; min-width: 0; color: var(--ink); }
.wordmark > span:not(.logo) > span { display: block; font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 2px; padding: 4px; background: #eef0f3; border-radius: 999px; margin: 0 auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s, color .15s; position: relative; }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab[aria-current="page"] svg.i { color: var(--accent); }
.tab small { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.tab small:empty { display: none; }
.topbar__ctl { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.topbar__ctl .input { height: 38px; min-height: 38px; border-radius: 999px; background-color: var(--surface); font-size: 14px; font-weight: 600; padding-right: 32px; width: auto; max-width: 13rem; }
.notice { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.notice p { max-width: 1440px; margin: 0 auto; padding: 7px 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice .linkish { color: #fff; }

main { max-width: 1440px; margin: 0 auto; padding: 28px 24px 64px; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.view-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; height: auto; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--surface-2); border-color: #c4c9d2; }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); border-color: transparent; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; }
.btn--block { width: 100%; height: 50px; font-size: 15px; border-radius: 14px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; position: relative; }
.btn--sm::after, .btn--icon::before { content: ""; position: absolute; inset: -5px; }
.btn--icon { width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; position: relative; }
.btn--icon svg.i { width: 16px; height: 16px; }
.btn--add { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--surface); border: 0; box-shadow: var(--shadow); color: var(--ink); }
.btn--add:hover { background: var(--accent); color: var(--accent-ink); }
.linkish { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.linkish:hover { color: var(--accent); }

.field { display: grid; gap: 6px; }
.field > label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; transition: border-color .15s, box-shadow .15s; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea.input { height: auto; min-height: 84px; padding: 10px 14px; resize: vertical; }
.input::placeholder { color: #9aa3b2; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.help { min-height: 1lh; font-size: 13px; color: var(--muted); }
.help--error { color: var(--red); }
.help--ok { color: var(--green); }
.row { display: flex; gap: 8px; align-items: center; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #eef0f3; }
.seg button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background-color .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: #b8bec8; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: color-mix(in srgb, var(--accent) 80%, black); }
.chip:disabled { opacity: .4; cursor: not-allowed; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: 999px; background: #d4d8df; position: relative; cursor: pointer; margin: 0; flex-shrink: 0; transition: background-color .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.stepper .btn--icon { border: 0; width: 36px; height: 36px; background: var(--surface-2); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; font-size: 11px; font-weight: 700; border-radius: 999px; background: var(--green-soft); color: var(--green); text-transform: uppercase; letter-spacing: .02em; }
.tag--gf { background: var(--amber-soft); color: var(--amber); }
.tag--gold { background: var(--gold-soft); color: var(--gold); text-transform: none; letter-spacing: 0; }
.tag--sample { background: #eef0f3; color: var(--muted); text-transform: none; letter-spacing: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--red { background: var(--red-soft); color: var(--red); }
.badge--amber { background: var(--amber-soft); color: var(--amber); }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.readout { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.fill { padding: 1px 8px; border-radius: 999px; background: #eef0f3; color: var(--muted); font-size: 12px; font-weight: 600; }

/* ---------- surfaces ---------- */
.well { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pad { padding: 20px; }
.blueprint { background-color: #fbfcfd; background-image: radial-gradient(#dfe3e9 1px, transparent 1px); background-size: 22px 22px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.stack > * + * { margin-top: 16px; }
.stack-s > * + * { margin-top: 10px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.t th:first-child { border-top-left-radius: 10px; } .t th:last-child { border-top-right-radius: 10px; }
.t td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; }
.t-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.well .t-wrap { border: 0; border-radius: 0; }
.skel { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eceff3 0%, #f5f7f9 50%, #eceff3 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel + .skel { margin-top: 12px; }
.skel--row { height: 84px; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 36px 20px; text-align: center; }
.empty .empty__ic { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.empty h3, .empty .empty__t { font-size: 15px; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 14px; margin: 0 auto 14px; max-width: 36ch; }
.error-box { display: flex; gap: 10px; align-items: flex-start; background: var(--red-soft); color: #991b1b; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.error-box b { font-weight: 700; }

/* ---------- order (patient) ---------- */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; margin-bottom: 20px; background: #1f1720; color: #fff; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 8, 14, .05) 0%, rgba(10, 8, 14, .35) 45%, rgba(10, 8, 14, .85) 100%); }
.hero__in { padding: 28px; width: 100%; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.hero h1 { font-size: 46px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .88); align-items: center; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .badge--green { background: rgba(22, 163, 74, .9); color: #fff; }
.hero .badge--red { background: rgba(220, 38, 38, .9); color: #fff; }
.hero .badge::before { background: #fff; }
.hero .fill { background: rgba(255, 255, 255, .18); color: #fff; }
.hero .seg { background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); }
.hero .seg button { color: #fff; }
.hero .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.venue { display: none; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cats { position: sticky; top: var(--topbar-h); z-index: 50; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0; margin-bottom: 4px; background: var(--bg); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex-shrink: 0; height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.cats a::first-letter { text-transform: uppercase; }
.cats a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.menu-sec { scroll-margin-top: calc(var(--topbar-h) + 70px); }
.menu-sec + .menu-sec { margin-top: 32px; }
.menu-sec > h2 { font-size: 26px; margin-bottom: 14px; color: var(--ink); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 16px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s, border-color .2s; cursor: pointer; }
.item { animation: itemIn .32s cubic-bezier(.23, 1, .32, 1) both; animation-delay: calc(min(var(--i, 0), 12) * 30ms); }
.item:hover { box-shadow: var(--shadow); border-color: var(--accent-line); transform: translateY(-2px); }
.item:hover h3 { color: var(--accent); }
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } }
.item h3 { font-size: 15.5px; }
.item p { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.item__foot .price { font-size: 15px; margin-right: 4px; }
.item__img { position: relative; width: 128px; height: 128px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--accent-soft), #f1f3f6); }
.item__img img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.item__ph { position: absolute; inset: 0; display: grid; place-items: start; padding: 12px 14px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: color-mix(in srgb, var(--accent) 45%, #9aa1ab); }
.item__img img + .item__ph { display: none; }
.item__img .btn--add { position: absolute; right: 8px; bottom: 8px; }
.item--out { opacity: .55; cursor: default; }
.item--out:hover { transform: none; box-shadow: none; border-color: var(--line); }
.item__out { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 23, 42, .55); color: #fff; font-size: 12px; font-weight: 700; }
.menu-note { margin-top: 24px; color: var(--muted); font-size: 13px; }
.cart { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100dvh - var(--topbar-h) - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.cart h2 { font-size: 20px; margin-bottom: 4px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.line > span:first-child { font-weight: 600; }
.line__mods { grid-column: 1 / 2; color: var(--muted); font-size: 12.5px; }
.line .stepper { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; margin: 16px 0 8px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .grand { color: var(--ink); font-size: 18px; font-weight: 800; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.mobile-cart { display: none; }
.pay-wallets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pay-wallets .btn { height: 46px; border-radius: 12px; background: var(--ink); border-color: var(--ink); color: #fff; }
.pay-wallets .btn:hover { background: #1e293b; }
.card-el { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; }
.card-el .input { border: 0; border-radius: 0; box-shadow: none; }
.card-el .input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.card-el .input + .input { border-left: 1px solid var(--line); }
.stripe-note { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* order tracker */
.track-head { display: flex; gap: 14px; align-items: center; }
.track-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.track-ic svg.i { width: 26px; height: 26px; }
.trail { list-style: none; padding: 0; margin: 24px 0; }
.trail li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-bottom: 22px; position: relative; font-size: 14.5px; color: var(--muted); }
.trail li::before { content: ""; width: 20px; height: 20px; margin: 1px 4px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); position: relative; z-index: 1; box-sizing: border-box; }
.trail li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 24px; bottom: 2px; width: 2px; background: var(--line); border-radius: 2px; }
.trail li.done { color: var(--ink); font-weight: 600; }
.trail li.done::before { background: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.trail li.done:not(:last-child)::after { background: var(--accent); }
.trail li.now { color: var(--ink); font-weight: 600; }
.trail li.now::before { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.trail time { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- book ---------- */
.book-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.day { flex-direction: column; height: 64px; min-width: 64px; padding: 0 10px; border-radius: 14px; line-height: 1.15; flex-shrink: 0; }
.day span { font-size: 12px; font-weight: 600; color: var(--muted); }
.day span::first-letter { text-transform: uppercase; }
.day b { font-size: 14px; font-weight: 700; color: var(--ink); }
.day[aria-pressed="true"] span { color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.info-list { display: grid; gap: 14px; margin-top: 16px; }
.info-list div { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.info-list svg.i { color: var(--accent); margin-top: 2px; }
.success-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.success-ic svg.i { width: 28px; height: 28px; stroke-width: 2.5; }

/* ---------- pos ---------- */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.floor-wrap { overflow-x: auto; border-radius: var(--radius); }
.floor { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.zone { position: absolute; border: 1.5px dashed #d1d6de; border-radius: 18px; background: rgba(255, 255, 255, .5); }
.zone span { position: absolute; left: 12px; top: 8px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tbl { position: absolute; display: grid; place-items: center; align-content: center; gap: 1px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 800; font-size: 14px; line-height: 1.1; transform: translate(-50%, -50%); box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), box-shadow .15s; }
.tbl small { font-weight: 600; font-size: 10.5px; color: var(--muted); }
.tbl--round { border-radius: 50%; }
.tbl--sq { border-radius: 14px; }
.tbl:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: var(--shadow); }
.tbl[data-state="seated"] { background: var(--blue-soft); border-color: var(--blue); }
.tbl[data-state="seated"] small { color: var(--blue); }
.tbl[data-state="ordered"] { background: var(--amber-soft); border-color: var(--amber); }
.tbl[data-state="ordered"] small { color: var(--amber); }
.tbl[data-state="bill"] { background: var(--red-soft); border-color: var(--red); }
.tbl[data-state="bill"] small { color: var(--red); }
.tbl[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--ink); }
.legend[hidden] { display: none !important; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--line-2); background: var(--surface); }
.legend i.seated { border-color: var(--blue); background: var(--blue-soft); }
.legend i.ordered { border-color: var(--amber); background: var(--amber-soft); }
.legend i.bill { border-color: var(--red); background: var(--red-soft); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 8px; margin-top: 10px; }
.quick button { min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: left; font-weight: 600; font-size: 13px; line-height: 1.25; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.quick button:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.quick button:active { transform: scale(.97); }
.quick button:disabled { opacity: .45; cursor: not-allowed; }
.quick button span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 4px; }
.pos-side { position: sticky; top: calc(var(--topbar-h) + 16px); }
.pos-side h2 { font-size: 22px; }
.bookings-list { margin-top: 20px; }
.bookings-list h2 { margin-bottom: 12px; }

/* ---------- kitchen (dark display) ---------- */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; background: #0b1220; padding: 16px; border-radius: var(--radius-lg); }
.kds-col { min-height: 60vh; min-height: 60dvh; padding: 0; background: transparent; border: 0; box-shadow: none; }
.kds-col > header { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 14px; color: #e2e8f0; }
.kds-col > header h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.kds-col > header h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, #94a3b8); }
.kds-col > header .readout { color: #0b1220; background: #e2e8f0; border-radius: 999px; padding: 1px 9px; font-weight: 700; font-family: var(--font); }
.kds-col[data-col="new"] { --c: #60a5fa; }
.kds-col[data-col="cooking"] { --c: #fbbf24; }
.kds-col[data-col="ready"] { --c: #4ade80; }
.ticket { background: #fff; border-radius: 14px; overflow: hidden; border-top: 5px solid var(--c, #94a3b8); }
.ticket + .ticket { margin-top: 12px; }
.ticket > *:not(.ticket__act) { padding-left: 14px; padding-right: 14px; }
.ticket header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; }
.ticket header b { font-weight: 800; font-size: 18px; }
.ticket .timer { font-family: var(--font); font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.ticket--late { border-top-color: var(--red); }
.ticket--late .timer { background: var(--red-soft); color: var(--red); }
.ticket .src { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.ticket ul { list-style: none; padding-top: 10px; padding-bottom: 12px; margin: 0; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.ticket li { padding: 3px 0; font-weight: 600; }
.ticket li small { display: block; color: var(--red); font-size: 12px; font-weight: 600; }
.ticket__act { padding: 10px 12px 12px; }
.ticket__act .btn { width: 100%; height: 44px; border-radius: 10px; }
.kds-col .empty { color: #94a3b8; padding: 28px 10px; border: 1.5px dashed #24324a; border-radius: 14px; }
.kds-col .empty p { color: #94a3b8; margin-bottom: 0; }

/* ---------- hq ---------- */
.subtabs { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subtabs a::first-letter { text-transform: uppercase; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 12px; }
.figures > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.figures dt { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.figures dt::first-letter { text-transform: uppercase; }
.figures dt svg.i { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.figures dd { margin: 12px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--surface); cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.sw-chilli { background: #dc2626; } .sw-berry { background: #d6246e; } .sw-saffron { background: #f2a007; } .sw-emerald { background: #059669; }
.sw-ocean { background: #2563eb; } .sw-coral { background: #ea580c; } .sw-plum { background: #7c3aed; }
.hq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.preview { padding: 0; overflow: hidden; }
.preview__bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.preview__body { padding: 18px; }
.preview .wordmark b { font-size: 16px; }

/* ---------- voice ---------- */
.voice-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px; }
.path .node { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.path .node svg.i { width: 16px; height: 16px; color: var(--muted); }
.path .node--ours { background: var(--accent-soft); border-color: var(--accent-line); color: var(--ink); }
.path .node--ours svg.i { color: var(--accent); }
.path .wire { width: 18px; height: 2px; background: var(--line-2); border-radius: 2px; }
.path .wire--ours { background: var(--accent); }
.call-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.call-head .input { width: auto; height: 40px; }
.transcript { min-height: 22rem; max-height: 30rem; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.say { display: flex; gap: 8px; align-items: flex-end; max-width: 85%; animation: pop .25s var(--ease) both; }
.say .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.say p { padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.say--agent .av { background: var(--accent); color: var(--accent-ink); }
.say--agent p { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.say--caller { align-self: flex-end; flex-direction: row-reverse; }
.say--caller .av { background: #e2e8f0; color: var(--ink-2); }
.say--caller p { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.say--sys { align-self: center; max-width: 95%; }
.say--sys p { display: inline-flex; gap: 8px; align-items: center; background: var(--green-soft); color: #166534; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.say--sys p svg.i { width: 14px; height: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.live { color: var(--green); font-weight: 600; }

/* ---------- dialog & toast ---------- */
dialog { padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); width: calc(100% - 32px); max-width: 30rem; max-height: calc(100dvh - 32px); box-shadow: var(--shadow-lg); overflow: auto; }
dialog::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(3px); }
dialog[open] { animation: rise .25s var(--ease); }
.dlg-img { height: 200px; background: var(--accent-soft); }
.dlg-img img { width: 100%; height: 100%; object-fit: cover; }
dialog form { display: grid; gap: 18px; padding: 22px; }
dialog h2 { font-size: 22px; }
.dialog-foot { display: flex; gap: 10px; justify-content: flex-end; position: sticky; bottom: 0; background: var(--surface); padding-top: 4px; }
.dialog-foot .btn--primary { flex: 1; height: 48px; border-radius: 14px; }
.toasts { pointer-events: none;  position: fixed; left: 24px; bottom: 24px; z-index: 600; display: grid; gap: 8px; max-width: min(24rem, calc(100vw - 48px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 14px; font-size: 14px; box-shadow: var(--shadow-lg); animation: rise .25s var(--ease) both; }
.toast svg.i { color: #4ade80; }
.toast a { color: #fff; font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.credits { max-width: 1440px; margin: 0 auto; padding: 0 24px 40px; font-size: 12px; color: var(--muted); }
.credits a { color: var(--ink-2); }

.mobile-only { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tab span.tl { display: none; }
  .order-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --topbar-h: 60px; }
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  .topbar__in { padding: 0 16px; gap: 10px; }
  .topbar__ctl .input { max-width: 9.5rem; font-size: 13px; }
  .wordmark > span:not(.logo) > span { display: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 320; border-radius: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tab { flex-direction: column; height: 52px; padding: 0 6px; gap: 3px; font-size: 11px; flex: 1; border-radius: 12px; }
  .tab span.tl { display: block; }
  .tab[aria-current="page"] { background: var(--accent-soft); box-shadow: none; color: var(--ink); }
  .tab small { position: absolute; top: 2px; right: calc(50% - 22px); }
  body { padding-bottom: 72px; }
  main { padding: 16px 16px 40px; }
  .hero { min-height: 220px; border-radius: 20px; }
  .hero__in { padding: 18px; }
  .hero h1 { font-size: 28px; }
  .order-layout, .book-layout, .pos-layout, .voice-layout, .hq-split { grid-template-columns: minmax(0, 1fr); }
  .cart { display: none; position: fixed; inset: auto 0 0 0; top: auto; max-height: 88dvh; z-index: 400; border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .cart.is-open { display: block; animation: rise .25s var(--ease); }
  .mobile-only { display: inline-flex; }
  .mobile-cart { display: flex; position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 310; }
  .mobile-cart .btn { width: 100%; height: 54px; justify-content: space-between; border-radius: 16px; padding: 0 18px; }
  .order-view { padding-bottom: 80px; }
  .toasts { left: 16px; right: 16px; bottom: 150px; max-width: none; }
  .kds { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .kds-col { min-height: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .floor { min-width: 44rem; }
  .pos-side { position: static; }
  .say { max-width: 92%; }
}
@media (max-width: 560px) {
  h1 { font-size: 24px; }
  .wordmark > span:not(.logo) { display: none; }
  .topbar__in:has(#branch-sel[hidden]) .wordmark > span:not(.logo) { display: block; }
  .topbar__in:has(#branch-sel[hidden]) .wordmark > span:not(.logo) > span { display: none; }
  .topbar__ctl { flex: 1; justify-content: flex-end; }
  .topbar__ctl .input { max-width: none; flex: 1; min-width: 0; }
  .topbar__ctl .input { padding-left: 12px; }
  .item { grid-template-columns: minmax(0, 1fr) 104px; }
  .item__img { width: 104px; height: 104px; }
  .card-el { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card-el .input:first-child { grid-column: 1 / -1; }
  .card-el .input:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .card-el .input:nth-child(3) { border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .t-stack thead { display: none; }
  .t-stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .t-stack td { border: 0; padding: 0; }
  .t-stack td:last-child { margin-left: auto; }
  .pl td:first-child { flex: 1 1 100%; }
  .pl td[data-l] { display: flex; align-items: center; gap: 8px; }
  .pl td[data-l]::before { content: attr(data-l); font-size: 13px; font-weight: 600; color: var(--muted); }
  .pl .inline-price { max-width: 96px; }
  .hero .seg button { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- staff app ---------- */
.topbar--staff { background: #1c1012; border-bottom-color: #2e1c1f; color: #fff; }
.topbar--staff .wordmark > span:not(.logo) { color: #fff; }
.topbar--staff .wordmark > span:not(.logo) > span { color: #c9b4b6; }
.topbar--staff .tabs { background: #2e1c1f; }
.topbar--staff .tab { color: #e2d3d5; }
.topbar--staff .tab:hover { color: #fff; }
.topbar--staff .tab[aria-current="page"] { background: #fff; color: var(--ink); }
.topbar--staff .topbar__ctl .input { background-color: #2e1c1f; border-color: #4a3034; color: #fff; }
.topbar--staff .signout { background: #2e1c1f; border-color: #4a3034; color: #fff; }
.gate { position: fixed; inset: 0; z-index: 800; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #1c1012, #3a1416); }
.gate__card { width: 100%; max-width: 24rem; display: grid; gap: 16px; padding: 28px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-align: left; }
.gate__card .logo { width: 48px; height: 48px; font-size: 18px; }
.gate__card .input { font-size: 22px; letter-spacing: .4em; text-align: center; height: 56px; }
@media (max-width: 900px) {
  .topbar--staff { background: #1c1012; }
  .topbar--staff .tabs { background: rgba(28, 16, 18, .96); border-top-color: #2e1c1f; }
  .topbar--staff .tab[aria-current="page"] { background: #fff; color: var(--ink); }
}

/* ---------- receipts and sales tags ---------- */
.rcpt-wrap { background: var(--surface-2); border-radius: 14px; padding: 16px; display: grid; place-items: center; }
.rcpt { width: 100%; max-width: 302px; background: #fff; color: #111; padding: 18px 16px; font: 13px/1.45 ui-monospace, "SF Mono", Menlo, Consolas, monospace; box-shadow: var(--shadow-sm); border-radius: 4px; }
.rcpt hr { border: 0; border-top: 1px dashed #999; margin: 10px 0; }
.rcpt__c { text-align: center; }
.rcpt__name { display: block; font-size: 15px; margin-bottom: 2px; }
.rcpt__title { margin: 10px 0 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rcpt__row { display: flex; justify-content: space-between; gap: 12px; }
.rcpt__row span:last-child { text-align: right; white-space: nowrap; }
.rcpt__mod { color: #555; font-size: 12px; padding-left: 14px; }
.rcpt__total { font-weight: 700; font-size: 14px; margin-top: 4px; }
.rcpt .fill { background: #eee; color: #555; }
#print-area { display: none; }
.tagger summary { list-style: none; margin-top: 8px; cursor: pointer; display: inline-flex; }
.tagger summary::-webkit-details-marker { display: none; }
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body { background: #fff; padding: 0; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block; }
  #print-area .rcpt { box-shadow: none; max-width: none; padding: 0; }
}

/* ---------- live platform additions ---------- */
.banner { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--amber-soft); color: #7c4a03; font-size: 14px; margin-bottom: 16px; }
.banner--red { background: var(--red-soft); color: #991b1b; }
.banner--green { background: var(--green-soft); color: #166534; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.login-wrap { min-height: calc(100dvh - var(--topbar-h)); display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 26rem; }
.hours-grid { display: grid; grid-template-columns: 5rem 1fr 1fr auto; gap: 8px; align-items: center; }
.hours-grid .input { height: 40px; }
.inline-price { width: 7rem; height: 38px; text-align: right; }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.topbar__in .tabs { flex-wrap: nowrap; }

/* ---------- platform: POS, kitchen extras, loyalty, gift cards ---------- */
.pos-area { margin: 18px 0; }
.pos-area h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.pos-floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 12px; }
.ptbl { position: relative; min-height: 88px; display: grid; place-items: center; align-content: center; gap: 2px; border: 2px solid var(--line-2); border-radius: 18px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: var(--shadow-sm); }
.ptbl b { font-size: 18px; }
.ptbl small { color: var(--muted); font-weight: 600; }
.ptbl:hover, .ptbl:focus-visible { box-shadow: var(--shadow); outline: none; border-color: var(--ink); }
.ptbl[data-state="seated"] { background: var(--blue-soft); border-color: var(--blue); }
.ptbl[data-state="ordered"] { background: var(--amber-soft); border-color: var(--amber); }
.ptbl[data-state="bill"] { background: var(--red-soft); border-color: var(--red); }
.ptbl .dot { position: absolute; top: 8px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.pos-tab { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 1fr); gap: 20px; align-items: start; }
.pos-cats { margin-bottom: 12px; }
.pos-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 10px; }
.pitem { min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.pitem b { font-size: 14px; line-height: 1.25; }
.pitem span { color: var(--muted); font-weight: 700; }
.pitem:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.pitem:disabled { opacity: .45; cursor: not-allowed; }
.pos-bill { position: sticky; top: calc(var(--topbar-h) + 12px); }
.pos-lines { list-style: none; margin: 0; padding: 0; }
.pos-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pos-lines li.void { opacity: .45; text-decoration: line-through; }
.pos-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pos-actions .btn { min-height: 48px; }
.gc-code { font: 700 26px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; padding: 14px; background: var(--surface-2); border-radius: 12px; text-align: center; user-select: all; }
.allday { margin: 0 0 14px; }
.allday .chip { min-height: 34px; }
.call-row { margin-bottom: 10px; }
.call-row summary { cursor: pointer; }
.pin-input { font-size: 28px; letter-spacing: .4em; text-align: center; }
.loy summary { cursor: pointer; }
@media (max-width: 900px) { .pos-tab { grid-template-columns: 1fr; } .pos-bill { position: static; } }
@media print { .topbar, .tabs, .dialog-foot { display: none !important; } }

/* ---------- Stage 3: patient accounts, favourites, tips, reviews, waitlist ---------- */
.fav { position: absolute; top: 22px; right: 22px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); color: var(--ink-3, #6b7280); }
.fav svg.i { width: 18px; height: 18px; }
.fav[aria-pressed="true"] { color: var(--red); }
.fav[aria-pressed="true"] svg.i { fill: currentColor; }
.item { position: relative; }
.table-badge { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; }
.stars { display: flex; gap: 4px; }
.stars button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--line-2); display: grid; place-items: center; border-radius: 8px; }
.stars button svg.i { width: 30px; height: 30px; }
.stars button[aria-pressed="true"] { color: #f5a524; }
.stars button[aria-pressed="true"] svg.i { fill: currentColor; }
.stars button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.acct-grid > .span-2 { grid-column: 1 / -1; }
.hist { display: grid; gap: 10px; }
.hist__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist__row:last-child { border-bottom: 0; }
.hist__row .small { grid-column: 1 / -1; }
.refbox { display: flex; gap: 8px; align-items: center; padding: 12px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--accent-soft); }
.refbox code { font-size: 20px; font-weight: 800; letter-spacing: .12em; flex: 1; }
.wait-pos { font-size: 56px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 760px) { .acct-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Stage 4: maps, dispatch, driver app ---------- */
.map { height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9eef3; z-index: 0; }
.map--sm { height: 260px; }
.mk { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); color: #fff; font: 800 12px/1 Karla, system-ui, sans-serif; }
.mk--store { background: #111; border-radius: 8px; }
.mk--wait { background: var(--red); }
.mk--assigned { background: #d97706; }
.mk--road { background: #2563eb; }
.mk--done { background: #16a34a; opacity: .6; }
.mk--driver { background: #7c3aed; width: 32px; height: 32px; }
.mk--driver.off { background: #9ca3af; }
.mk--me { background: #2563eb; box-shadow: 0 0 0 8px rgba(37,99,235,.18); }
.disp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.disp .map { height: calc(100vh - 220px); height: calc(100dvh - 220px); min-height: 420px; position: sticky; top: 84px; }
.job { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); display: grid; gap: 6px; }
.job + .job { margin-top: 8px; }
.job__top { display: flex; gap: 8px; align-items: center; }
.job__top b { flex: 1; }
.drv-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drv-row:last-child { border-bottom: 0; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; }
.st-dot.available { background: #16a34a; } .st-dot.busy { background: #d97706; }
@media (max-width: 960px) { .disp { grid-template-columns: minmax(0, 1fr); } .disp .map { position: static; height: 360px; } }

/* driver app: big targets, one-handed */
.drv { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.drv .btn { min-height: 52px; font-size: 17px; }
.drv-shift { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.drv-shift .grow { flex: 1; }
.drv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.drv-card h2 { font-size: 22px; }
.drv-card .addr { font-size: 18px; font-weight: 700; line-height: 1.3; }
.drv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drv-actions .wide { grid-column: 1 / -1; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.kpi b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; color: var(--ink-2); }
.code-input { font-size: 32px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.proof-img { max-width: 100%; border-radius: 12px; }

/* ---------- Stage 5: platform, modules, POS connect ---------- */
.acct-bar { background: #fff7e6; color: #7c4a03; border-bottom: 1px solid #f3d7a6; padding: 10px 24px; font-size: 14px; text-align: center; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mod { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; background: var(--surface); cursor: pointer; }
.mod input { margin-right: 6px; }
.mod[data-on="true"] { border-color: var(--accent); background: var(--accent-soft); }
.mod small { color: var(--ink-2); }
.price-big { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.code-box { font-family: ui-monospace, Menlo, monospace; background: #111; color: #e5e7eb; padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 13px; word-break: break-all; }

.off-bar { background: #eef2ff; color: #1e3a8a; border-bottom-color: #c7d2fe; }

/* ---------- Accessibility: WCAG AA contrast for small text on tinted backgrounds ---------- */
.badge--green, .tag { color: #15803d; }
.badge--amber, .tag--gf { color: #92400e; }
.badge--blue { color: #1d4ed8; }
.badge--red { color: #b91c1c; }
.hero .badge--green { color: #fff; background: #15803d; }
.hero .badge--red { color: #fff; background: #b91c1c; }
.mk--done { background: #15803d; opacity: 1; filter: saturate(.6); }
.leaflet-container .leaflet-control-attribution a { text-decoration: underline; }

/* ---------- Stage 7: insights charts ---------- */
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ibars { display: flex; align-items: flex-end; gap: 2px; height: var(--h, 140px); border-bottom: 1px solid var(--line); padding-top: 8px; }
.ibar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; }
.ibar i { display: block; width: 100%; min-height: 1px; background: var(--accent); border-radius: 4px 4px 0 0; }
.ibar:hover i, .ibar:focus-visible i { filter: brightness(.85); }
.ibar:hover::after, .ibar:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 8px; border-radius: 8px; z-index: 5; pointer-events: none; }
.ibars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.share { display: inline-block; width: 60px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--accent); }
@media (max-width: 760px) { .kpis--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Web interface guidelines pass ---------- */
button, a, .chip, .pitem, .ptbl, input, select, textarea, label { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(0, 0, 0, .06); }
dialog { overscroll-behavior: contain; }
h1, h2, h3 { text-wrap: balance; }
p, .help { text-wrap: pretty; }
.price, .num, .readout, .timer, .kpi b, .t td.num { font-variant-numeric: tabular-nums; }
.item__img img { aspect-ratio: 1 / 1; }
[id] { scroll-margin-top: 88px; }

/* ---------- staff nav "More" service list ---------- */
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary.is-on, .topbar--staff .more > summary.is-on { background: #fff; color: var(--ink); }
.more > summary.is-on svg.i { color: var(--accent); }
.more__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 400; min-width: 15rem; max-height: 70dvh; overflow-y: auto; padding: 8px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.more__h { margin: 8px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.more__a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.more__a:hover, .more__a:focus-visible { background: var(--bg); }
.more__a[aria-current="page"] { background: var(--accent-soft, #fde8e8); color: var(--ink); }
.more__a[aria-current="page"] svg.i { color: var(--accent); }
.more__a small { margin-left: auto; }
@media (max-width: 900px) {
  .more { flex: 1; display: flex; }
  .more > summary { width: 100%; }
  .more__menu { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); min-width: 0; max-height: calc(100dvh - 150px); }
}

/* ---------- website builder ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tpl-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-2); border-radius: 14px; cursor: pointer; background: var(--surface); }
.tpl-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tpl-card input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.tpl-card span { display: grid; gap: 2px; }
.tpl-card small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tpl-card a { font-size: 13px; font-weight: 700; margin-top: 2px; }
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 10px; }
.stock { position: relative; display: block; border-radius: 10px; overflow: hidden; cursor: pointer; border: 3px solid transparent; }
.stock:has(input:checked) { border-color: var(--accent); }
.stock:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.stock input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.stock img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--line); }
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.setup-list li { display: flex; gap: 10px; align-items: center; }
.setup-list li > span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.setup-list li.done > span { background: var(--green); border-color: var(--green); color: #fff; }
.setup-list li.done a { color: var(--muted); text-decoration: line-through; }
@media (max-width: 900px) { .web-status { order: -1; } }

/* ---------- "Powered by Clinicpoint" on the patient ordering page ---------- */
.guest-foot { max-width: 1440px; margin: 0 auto; padding: 0 24px 32px; display: flex; justify-content: center; }
.guest-foot .powered { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 8px; color: var(--muted); text-decoration: none; font-size: 13px; }
.guest-foot .powered b { color: var(--ink); font-weight: 700; }
.guest-foot .powered svg { color: var(--ink); flex: none; }
.guest-foot .powered:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Back to top */
.totop { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 300; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; background: var(--ink); color: var(--bg); box-shadow: 0 8px 24px rgba(23, 17, 13, .22);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease; }
.totop--on { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s ease, visibility 0s, background .2s ease; }
.totop:hover { background: var(--accent); color: var(--accent-ink, #17110d); }
.totop:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .totop, .totop--on { transition: none; transform: none; } }
@media print { .totop { display: none; } }

/* ======================================================================================================
   Internal apps (staff, platform admin, driver): body.app. Operate-mode refinement of the shared
   components: one spacing scale (4px base), quieter controls, denser tables with aligned numbers,
   consistent figures and filters. Patient pages, clinic websites and Clinicpoint's marketing pages are
   untouched (they don't carry body.app).
   ====================================================================================================== */
body.app {
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;
  --ctl-h: 40px; --ctl-h-sm: 32px;
  --line-ctl: #d9c8b4;
  --row-hover: color-mix(in srgb, var(--surface-2) 70%, transparent);
  font-size: 15px;
}
body.app ::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
body.app main { padding: var(--sp-6) var(--sp-6) 72px; }

/* page heading */
body.app .view-head { align-items: center; margin-bottom: var(--sp-5); gap: var(--sp-3) var(--sp-4); }
body.app .view-head h1 { font-size: 26px; }
body.app .view-head p { margin-top: var(--sp-1); font-size: 14px; }
body.app h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }

/* buttons: same pill family, lighter weight and a fixed control height */
body.app .btn { min-height: var(--ctl-h); padding: 0 14px; gap: 6px; border-color: var(--line-ctl); font-size: 14px; }
body.app .btn:hover { border-color: var(--ink-2); background: var(--surface); }
body.app .btn--primary, body.app .btn--primary:hover { border-color: var(--accent); }
body.app .btn--primary:hover { background: color-mix(in srgb, var(--accent) 90%, black); }
body.app .btn--sm { min-height: var(--ctl-h-sm); padding: 0 12px; font-size: 13px; }
body.app .btn--sm svg.i { width: 16px; height: 16px; }
body.app .btn--icon { width: var(--ctl-h-sm); height: var(--ctl-h-sm); min-height: var(--ctl-h-sm); padding: 0; }
body.app .btn svg.i { width: 17px; height: 17px; }
body.app .linkish { font-size: 13px; }

/* inputs */
body.app .input { height: var(--ctl-h); border-color: var(--line-ctl); border-radius: 10px; font-size: 14px; }
body.app textarea.input { height: auto; }
body.app .input:hover:not(:focus) { border-color: var(--ink-2); }
body.app .field > label, body.app .lbl { font-size: 13px; }

/* segmented controls and chips */
body.app .seg button { height: 32px; padding: 0 14px; font-size: 13px; }
body.app .chip { min-height: 36px; padding: 0 12px; border-color: var(--line-ctl); font-size: 13px; }
body.app .chip--sm { min-height: 28px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
body.app .chip .muted { font-weight: 600; }
body.app .chip[aria-pressed="true"] .muted { color: inherit; }

/* surfaces */
body.app .well, body.app .t-wrap { border-radius: var(--radius); box-shadow: none; }
body.app .pad { padding: var(--sp-5); }
body.app .stack > * + * { margin-top: var(--sp-4); }
body.app .stack-s > * + * { margin-top: var(--sp-3); }
body.app .fill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

/* tables: denser rows, aligned numbers, quiet header */
body.app table.t { font-size: 14px; }
body.app .t th { padding: 10px var(--sp-4); background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 600; }
body.app .t td { padding: 10px var(--sp-4); }
body.app .t tbody tr { transition: background-color .12s; }
body.app .t tbody tr:hover { background: var(--row-hover); }
body.app .t td.num, body.app .t th.num { text-align: right; white-space: nowrap; }
body.app .t td b { font-weight: 600; }
body.app .t td .small { margin-top: 2px; }
body.app .well:has(> .t-wrap), body.app .well:has(> details > .t-wrap) { overflow: hidden; }
body.app .well .t-wrap { margin-inline: calc(-1 * var(--sp-5)); width: calc(100% + 2 * var(--sp-5)); border-top: 1px solid var(--line); border-radius: 0; }
body.app .well .t-wrap .t th:first-child, body.app .well .t-wrap .t th:last-child { border-radius: 0; }
body.app .well .t-wrap .t th { background: transparent; }
body.app .well.pad > .t-wrap:last-child, body.app .well.pad > details:last-child .t-wrap { margin-bottom: calc(-1 * var(--sp-5)); }
.row-actions { display: inline-flex; gap: var(--sp-2); justify-content: flex-end; align-items: center; }

/* figures: one KPI pattern for Sales, Insights and Operations */
body.app .figures { gap: var(--sp-3); margin: 0 0 var(--sp-4); }
body.app .figures > div { padding: var(--sp-4); box-shadow: none; border-radius: var(--radius); }
body.app .figures dt { font-size: 13px; color: var(--ink-2); gap: var(--sp-2); }
body.app .figures dt svg.i { width: 26px; height: 26px; padding: 5px; border-radius: 8px; }
body.app .figures dd { margin-top: var(--sp-3); font-size: 26px; font-weight: 700; line-height: 1.1; }

/* sales: tag filters as a compact panel, toolbar above the table */
.filters { padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-3); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: var(--sp-2) var(--sp-6); }
.filters__row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--sp-3); align-items: center; }
.filters__row .lbl { color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-2) var(--sp-3); margin: var(--sp-4) 0 var(--sp-3); }
.t--sales td:nth-child(2) { white-space: nowrap; }
.t--sales td:nth-child(3) { width: 48%; }
.t--sales .pill-row { gap: 4px; }
.tagger { display: inline-block; margin-left: 2px; vertical-align: middle; }
body.app .tagger summary { margin-top: 0; }
.tagger__btn { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 7px; border: 1px dashed var(--line-ctl, var(--line-2)); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; list-style: none; }
.tagger__btn::-webkit-details-marker { display: none; }
.tagger__btn svg.i { width: 11px; height: 11px; stroke-width: 2.5; }
.tagger__btn:hover { border-style: solid; color: var(--ink); }
.tagger[open] .tagger__btn { border-style: solid; background: var(--surface-2); }
.tagger__menu { margin-top: var(--sp-2); }
.t--sales .tagger { display: inline-block; }
.t--sales td:nth-child(3) .pill-row { display: inline-flex; vertical-align: middle; }
body.app .tag--sample { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); height: 22px; font-size: 12px; font-weight: 600; }
body.app .tag--gold { height: 22px; font-size: 12px; }

/* menu: section heads and columns that line up across every category */
.sec + .sec { margin-top: var(--sp-6); }
.sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); min-height: var(--ctl-h-sm); }
.sec__head h2 { margin-right: var(--sp-1); }
.sec__count { margin-left: auto; margin-right: var(--sp-2); }
.t--menu { table-layout: fixed; }
.t--menu th:nth-child(2), .t--menu td:nth-child(2) { width: 9rem; }
.t--menu th:nth-child(3), .t--menu td:nth-child(3) { width: 11rem; }
.t--menu.t--mgr th:nth-child(4), .t--menu.t--mgr td:nth-child(4) { width: 7rem; }
.t--menu.t--mgr th:nth-child(5), .t--menu.t--mgr td:nth-child(5) { width: 6rem; }
.t--menu.t--extra th:nth-child(3), .t--menu.t--extra td:nth-child(3) { width: 7rem; }
.t--menu.t--extra th:nth-child(4), .t--menu.t--extra td:nth-child(4) { width: 11rem; }
.t--menu.t--extra.t--mgr th:nth-child(5), .t--menu.t--extra.t--mgr td:nth-child(5) { width: 7rem; }
.t--menu.t--extra.t--mgr th:nth-child(6), .t--menu.t--extra.t--mgr td:nth-child(6) { width: 6rem; }
.t--menu td:first-child .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.app .inline-price { width: 100%; max-width: 7rem; height: var(--ctl-h-sm); margin-left: auto; display: block; border-radius: 8px; font-weight: 600; }
body.app .switch { gap: var(--sp-2); }

/* POS floor: lighter tiles, state shown by tint and a 1.5px edge */
body.app .pos-area { margin: var(--sp-4) 0; }
body.app .pos-area h2 { font-size: 12px; font-weight: 700; letter-spacing: .06em; margin-bottom: var(--sp-2); font-family: var(--font); }
body.app .pos-floor { grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr)); gap: var(--sp-3); }
body.app .ptbl { min-height: 80px; border: 1.5px solid var(--line-ctl); border-radius: var(--radius); box-shadow: none; }
body.app .ptbl b { font-size: 17px; }
body.app .ptbl small { font-size: 12.5px; }
body.app .ptbl:hover, body.app .ptbl:focus-visible { border-color: var(--ink); box-shadow: none; }
body.app .ptbl[data-state="seated"] { border-color: var(--blue); }
body.app .ptbl[data-state="ordered"] { border-color: var(--amber); }
body.app .ptbl[data-state="bill"] { border-color: var(--red); }
body.app .ptbl[data-state="ordered"] small { color: #92400e; }
body.app .legend i { border-width: 1.5px; }

/* kitchen: all-day counts as a compact strip that scrolls instead of stacking on phones */
body.app .allday { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: var(--sp-3); }
body.app .allday::-webkit-scrollbar { display: none; }
body.app .allday .chip { min-height: 30px; flex: none; cursor: default; font-size: 13px; }
body.app .allday .chip b { color: var(--accent-text, var(--ink)); }
body.app .kds { border-radius: var(--radius-lg); }

/* banners */
body.app .acct-bar { padding: var(--sp-2) var(--sp-6); font-size: 13px; }

/* empty states */
body.app .empty { padding: var(--sp-8) var(--sp-5); }

@media (max-width: 900px) {
  body.app main { padding: var(--sp-4) var(--sp-4) 48px; }
  body.app .well .t-wrap { margin-inline: calc(-1 * var(--sp-5)); }
}
@media (max-width: 560px) {
  body.app .view-head h1 { font-size: 22px; }
  body.app .acct-bar { padding: var(--sp-2) var(--sp-4); text-align: left; }
  .filters__row { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
  .sec__count { display: none; }
  .sec__head .btn { margin-left: auto; }
  .t--menu { table-layout: auto; }
  .t--menu td { width: auto !important; }
  body.app .inline-price { margin-left: 0; }
  body.app .figures dd { font-size: 22px; }
  .t--sales td:nth-child(3) { width: auto; flex: 1 1 100%; order: 3; }
}
body.app .view-head .pill-row { align-items: center; }
body.app .view-head select.input { width: auto; min-width: 12rem; }
body.app form.well.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--sp-3) var(--sp-4); }
body.app .well.pad > h2 + p { margin-top: var(--sp-1); }
body.app .well.pad > h2 + p + * { margin-top: var(--sp-3); }
body.app .btn--primary { box-shadow: none; }

/* ======================================================================================================
   Design techniques, shared by every Mainpoint product (Clinicpoint, Clinicpoint, Salonpoint, Clinicpoint,
   Dentalpoint, the store) on their staff apps, admin, ordering pages and marketing pages.
   1 concentric radius · 2 alpha borders · 3 OKLCH palettes · 4 OKLCH gradients · 5 matched icon weight
   6 masked edges · 7 blurred icon swaps · 8 dark mode depth · 9 dynamic viewport · 10 multiply blending
   Each one is a progressive enhancement: browsers without support keep the line above it.
   ====================================================================================================== */

/* 2. Alpha borders: hairlines are the ink at low alpha, so one value reads right on cream, white,
      tinted rows and photos instead of a fixed hex that looks heavy on one and vanishes on another. */
:root { --hair: rgb(23 17 13 / .1); --hair-2: rgb(23 17 13 / .18); --hair-strong: rgb(23 17 13 / .32); --hair-dark: rgb(255 255 255 / .1); }
:root[data-app="orbyt"] { --line: var(--hair); }
body.app { --line-ctl: var(--hair-2); }
:root[data-app="orbyt"] .topbar:not(.topbar--staff) { border-bottom-color: var(--hair); }
/* photos get an inner hairline so their edge stays crisp on any background */
.item__img img, .tpl img, .heroimg img, .shot img, .r-hero img { outline: 1px solid rgb(0 0 0 / .08); outline-offset: -1px; }

/* 3. OKLCH palettes: tints derived from each restaurant's accent are mixed in OKLCH, so saffron, plum
      and ocean all get the same perceived lightness instead of muddy or washed-out sRGB mixes. */
@supports (color: color-mix(in oklch, red, blue)) {
  :root {
    --bg: color-mix(in oklch, var(--accent) 5%, #ffffff);
    --surface-2: color-mix(in oklch, var(--accent) 3%, #fafafa);
    --line: color-mix(in oklch, var(--accent) 12%, var(--hair));
    --line-2: color-mix(in oklch, var(--accent) 20%, var(--hair-strong));
  }
  :root[data-app="orbyt"] { --line: var(--hair); --line-2: var(--hair-strong); }
  body.app { --row-hover: color-mix(in oklch, var(--accent) 6%, transparent); }
  body.app .btn--primary:hover { background: color-mix(in oklch, var(--accent) 88%, black); }
  body.app ::selection { background: color-mix(in oklch, var(--accent) 30%, transparent); }
}

/* 4. OKLCH gradients: interpolated in OKLCH so the middle doesn't go grey. */
@supports (background: linear-gradient(in oklch, red, blue)) {
  .skel { background-image: linear-gradient(in oklch 90deg, #eceff3 0%, #f5f7f9 50%, #eceff3 100%); }
  .hero::after { background: linear-gradient(in oklch 180deg, rgb(10 8 14 / .05) 0%, rgb(10 8 14 / .35) 55%, rgb(10 8 14 / .78) 100%); }
  .item__img { background: linear-gradient(in oklch 135deg, var(--accent-soft, var(--surface-2)), var(--surface-2)); }
}

/* 1. Concentric radius: an element nested inside a rounded one with padding p gets radius R - p, so
      the curves stay parallel. --r is the container's radius, --p its padding. */
body.app .seg { --r: 999px; padding: 3px; }
body.app .seg button { border-radius: calc(var(--r) - 3px); }
.kds { --r: 28px; --p: 16px; border-radius: var(--r); }
body.app .kds { border-radius: var(--r); }
.kds .ticket { border-radius: calc(var(--r) - var(--p)); }
@media (max-width: 760px) { .kds { --r: 24px; --p: 12px; } }
body.app .figures > div { --r: var(--radius); }
body.app .figures dt svg.i { border-radius: calc(var(--r) - var(--sp-4) + 2px); }
.topbar--staff .nav-pill, .topbar--staff nav.tabs { --r: 999px; }
body.app .well.pad .well { border-radius: calc(var(--radius) - var(--sp-5) + 8px); }
body.app .ptbl small { border-radius: 6px; }

/* 5. Matched icon weight: stroke follows the weight of the text beside it. */
svg.i { stroke-width: 1.85; }
.btn svg.i, .chip svg.i, .tab svg.i, nav svg.i, .seg svg.i, b svg.i, h1 svg.i, h2 svg.i, h3 svg.i { stroke-width: 2.1; }
.btn--sm svg.i, .small svg.i, .tag svg.i { stroke-width: 2.3; }
.figures dt svg.i, .empty svg.i, .success-ic svg.i { stroke-width: 1.75; }

/* 6. Masked edges: rows that scroll sideways fade at the edge instead of cutting a chip in half,
      which also tells people there is more. Scroll-driven where supported, so the fade appears only
      on the side that still has content. */
.cats, .days, .subtabs, body.app .allday, .hscroll {
  --fade: 28px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
  padding-inline-end: var(--fade);
}
@supports (animation-timeline: scroll(self inline)) {
  @property --fade-l { syntax: "<length>"; inherits: false; initial-value: 0px; }
  @property --fade-r { syntax: "<length>"; inherits: false; initial-value: 28px; }
  .cats, .days, .subtabs, body.app .allday, .hscroll {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
    animation: edge-fade linear both; animation-timeline: scroll(self inline);
  }
  @keyframes edge-fade { 0% { --fade-l: 0px; --fade-r: 28px; } 8% { --fade-l: 28px; } 92% { --fade-r: 28px; } 100% { --fade-l: 28px; --fade-r: 0px; } }
}

/* 7. Blurred icon swaps: two icons stacked in .swap; toggling .is-on cross-fades them through a blur
      and a small scale instead of a hard cut (copy -> check, sound off -> on). */
.swap { position: relative; display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; flex: none; }
.swap > svg { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity .22s cubic-bezier(.2, 0, 0, 1), filter .22s cubic-bezier(.2, 0, 0, 1), transform .22s cubic-bezier(.2, 0, 0, 1); }
.swap > svg:last-child { opacity: 0; filter: blur(4px); transform: scale(.5); }
.is-on > .swap > svg:first-child, .swap.is-on > svg:first-child { opacity: 0; filter: blur(4px); transform: scale(.5); }
.is-on > .swap > svg:last-child, .swap.is-on > svg:last-child { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .swap > svg { transition: opacity .15s linear; filter: none !important; transform: none !important; } }

/* 8. Dark mode depth: on dark surfaces, elevation comes from lighter layers and a 1px top highlight,
      not from shadows (which disappear on dark). */
:root { --lift-1: rgb(255 255 255 / .04); --lift-2: rgb(255 255 255 / .07); --lift-3: rgb(255 255 255 / .11); --edge-hi: inset 0 1px 0 rgb(255 255 255 / .07); }
.kds { background: #0b1220; box-shadow: var(--edge-hi); }
.kds-col > header { background: var(--lift-1); border-radius: calc(var(--r, 28px) - var(--p, 16px)); padding: 10px 12px; margin-bottom: 12px; box-shadow: var(--edge-hi); }
.kds-col .empty { background: var(--lift-1); border-color: var(--hair-dark); border-radius: calc(var(--r, 28px) - var(--p, 16px)); }
.topbar--staff .nav-pill, .topbar--staff nav.tabs { background: var(--lift-2); box-shadow: var(--edge-hi); }
.topbar--staff .branch-select, .topbar--staff select { background-color: var(--lift-2); border-color: var(--hair-dark); }
.gate .well, .gate form { box-shadow: var(--edge-hi), var(--shadow-lg); }

/* 9. Dynamic viewport: full-height areas use the visible height on phones (address bar in or out). */
.sheet, .drawer, dialog.modal { max-height: 90vh; max-height: 90dvh; }
.gate { min-height: 100vh; min-height: 100dvh; }

/* 10. Multiply blending: logos and illustrations on white backgrounds take on the page tint instead of
       sitting in a white box. Never on photos. */
.blend, img.logo-img, .r-logo img, .brand-logo img { mix-blend-mode: multiply; }
.deepb .blend, .topbar--staff img.logo-img { mix-blend-mode: normal; }

/* ======================================================================================================
   Motion system, shared by every Mainpoint product. Fast, quiet, no bounce on everyday UI.
   Entrances ease out, on-screen moves ease in-out, exits run 20% shorter than entrances, popovers grow
   from their trigger at 0.95, list rows stagger by 30 ms only when a screen first opens.
   ====================================================================================================== */
:root {
  --ease-out: cubic-bezier(.23, 1, .32, 1);        /* entrances */
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);    /* things moving on screen */
  --ease-exit: cubic-bezier(.4, 0, 1, 1);          /* exits */
  --d-1: 150ms; --d-2: 200ms; --d-3: 250ms;        /* dropdowns and popovers live in 150 to 250 ms */
  --d-exit: 160ms;                                 /* 20% shorter than --d-2 */
}

/* press feedback: scale to 0.97, applied instantly while held, eased on release */
.btn, .chip, .tab, .seg button, .ptbl, .quick button, .cat, .days button, .tpl a, .sign {
  transition-property: transform, background-color, border-color, color, box-shadow, opacity;
  transition-duration: var(--d-2); transition-timing-function: var(--ease-out);
}
.btn:active, .chip:active, .tab:active, .seg button:active, .ptbl:active, .quick button:active, .days button:active { transform: scale(.97); transition-duration: 40ms; }
.btn:disabled:active, .chip[disabled]:active { transform: none; }

/* switches: the knob stretches 12% while pressed, then settles where it lands */
.switch input::after { transition: transform var(--d-2) var(--ease-in-out), width var(--d-1) var(--ease-out); }
.switch input { transition: background-color var(--d-2) var(--ease-out); }
.switch input:active::after { width: 20px; transition-duration: 40ms, 40ms; }
.switch input:checked:active::after { transform: translateX(14px); }

/* popovers and dropdowns: start at 0.95 and grow out of the button that opened them */
.more[open] > .more__menu { transform-origin: top right; animation: pop-in var(--d-2) var(--ease-out) both; }
.tagger[open] > .tagger__menu { transform-origin: top left; animation: pop-in var(--d-1) var(--ease-out) both; }
@media (max-width: 760px) { .more[open] > .more__menu { transform-origin: bottom center; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.95); } }

/* dialogs enter from slightly smaller, toasts rise in and leave faster than they came */
dialog[open] { animation: dlg-in var(--d-3) var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.toast { animation: rise var(--d-2) var(--ease-out) both; }
.toast--out { animation: toast-out var(--d-exit) var(--ease-exit) both; }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }
/* success confirms with one soft pulse */
.toast--ok > svg.i, .is-on > .swap, .pulse { animation: ok-pulse 520ms var(--ease-out) 1; }
@keyframes ok-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* list rows and figures stagger in by 30 ms, only when a screen opens (not on live refreshes) */
.entering .t tbody tr, .entering .figures > div, .entering .kds .ticket, .entering .ptbl, .entering .sec, .entering .well {
  animation: row-in 280ms var(--ease-out) both;
}
.entering .t tbody tr:nth-child(2), .entering .figures > div:nth-child(2), .entering .ptbl:nth-child(2) { animation-delay: 30ms; }
.entering .t tbody tr:nth-child(3), .entering .figures > div:nth-child(3), .entering .ptbl:nth-child(3) { animation-delay: 60ms; }
.entering .t tbody tr:nth-child(4), .entering .figures > div:nth-child(4), .entering .ptbl:nth-child(4) { animation-delay: 90ms; }
.entering .t tbody tr:nth-child(5), .entering .ptbl:nth-child(5) { animation-delay: 120ms; }
.entering .t tbody tr:nth-child(6), .entering .ptbl:nth-child(6) { animation-delay: 150ms; }
.entering .t tbody tr:nth-child(7), .entering .ptbl:nth-child(7) { animation-delay: 180ms; }
.entering .t tbody tr:nth-child(8), .entering .ptbl:nth-child(8) { animation-delay: 210ms; }
.entering .t tbody tr:nth-child(n+9), .entering .ptbl:nth-child(n+9) { animation-delay: 240ms; }
@keyframes row-in { from { opacity: 0; transform: translateY(4px); } }

/* switching screens: old and new overlap in a short crossfade, and the active nav pill glides to the new
   tab as one shared element (View Transitions, where the browser has them) */
.tab[aria-current="page"], .more > summary.is-on { view-transition-name: nav-active; }
::view-transition-group(nav-active) { animation-duration: var(--d-3); animation-timing-function: var(--ease-in-out); }
::view-transition-old(root) { animation: vt-out var(--d-exit) var(--ease-exit) both; }
::view-transition-new(root) { animation: vt-in var(--d-2) var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .entering *, .toast, .toast--out, dialog[open], .more[open] > .more__menu, .tagger[open] > .tagger__menu, .pulse, .toast--ok > svg.i, .is-on > .swap { animation: none !important; }
  .btn:active, .chip:active, .tab:active, .seg button:active, .ptbl:active { transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ======================================================================================================
   Backgrounds with a little tooth, for marketing pages only (staff screens stay clean):
   grain on dark gradient bands, a faint paper texture on cream, a square-dot grid behind diagrams.
   ====================================================================================================== */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle at center, rgb(255 255 255 / .09) 1px, transparent 1.5px);
  --dots-ink: radial-gradient(circle at center, rgb(23 17 13 / .1) 1px, transparent 1.5px);
}
.gate { background-image: var(--grain), linear-gradient(160deg, #1c1012, #3a1418); background-blend-mode: soft-light, normal; }
