:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1b1f1d;
  --muted: #66706b;
  --line: #e3dfd6;
  --brand: #1d3b2f;
  --brand-ink: #ffffff;
  --accent: #e9c46a;
  --good: #2a7d4f;
  --warn: #b5562d;
  --upi: #5b3bb5;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514; --card: #1b201e; --ink: #ecefed; --muted: #9aa39f; --line: #2c3330;
    --brand: #3f7a62; --good: #4fb27c; --warn: #e07a50; --upi: #9b83e6;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: var(--bg); color: var(--ink);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--brand); color: var(--brand-ink);
}
.brand { color: var(--brand-ink); text-decoration: none; font-weight: 800; letter-spacing: .18em; }
.who { font-size: 14px; opacity: .9; }
.who button { margin-left: 8px; }
main { max-width: 880px; margin: 0 auto; padding: 16px; }
h1 { font-size: 22px; margin: 4px 0 12px; }
h2 { font-size: 17px; margin: 20px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 160px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .btn {
  font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 10px; padding: 10px 14px; min-height: 44px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px;
}
button.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
button.cash { background: var(--good); border-color: var(--good); color: #fff; }
button.upi { background: var(--upi); border-color: var(--upi); color: #fff; }
button.danger { color: var(--warn); border-color: var(--warn); }
button.block { width: 100%; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.link { border: 0; background: none; padding: 4px; min-height: 0; color: inherit; text-decoration: underline; font-weight: 500; }
.tile { text-align: left; display: block; padding: 14px; min-height: 84px; }
.tile.busy { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.tile b { display: block; font-size: 17px; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.pill.paid { color: var(--good); border-color: var(--good); }
.pill.open { color: #9a7a1b; border-color: var(--accent); }
.pill.void { color: var(--warn); border-color: var(--warn); }
.pill.cash { color: var(--good); }
.pill.upi { color: var(--upi); }
.veg, .nonveg { display: inline-block; width: 10px; height: 10px; border: 1.5px solid; border-radius: 2px; margin-right: 6px; position: relative; }
.veg { color: #2a7d4f; } .nonveg { color: #a33; }
.veg::after, .nonveg::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: currentColor; }
.items { list-style: none; padding: 0; margin: 0; }
.items li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { min-width: 40px; padding: 6px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.totals { width: 100%; border-collapse: collapse; }
.totals td { padding: 4px 0; }
.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals tr.grand td { font-size: 20px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .k { font-size: 13px; color: var(--muted); }
.bar { height: 10px; border-radius: 99px; overflow: hidden; display: flex; background: var(--line); margin-top: 8px; }
.bar i { display: block; height: 100%; }
table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.qrbox { text-align: center; }
.qrbox svg { width: min(280px, 80vw); height: auto; background: #fff; padding: 8px; border-radius: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.chips button { white-space: nowrap; min-height: 36px; padding: 6px 12px; }
.chips button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); z-index: 5;
}
.tabs a { flex: 1; text-align: center; padding: 12px 4px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.tabs a.on { color: var(--brand); }
.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; z-index: 10; max-width: calc(100vw - 32px);
}
.toast.err { background: var(--warn); color: #fff; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 12px auto; }
.pinpad button { font-size: 22px; min-height: 60px; }
.pindots { text-align: center; font-size: 28px; letter-spacing: 10px; min-height: 40px; }
.sticky-foot { position: sticky; bottom: 72px; background: var(--bg); padding: 10px 0; }
.print-only { display: none; }

@media print {
  body { background: #fff; color: #000; padding: 0; }
  .topbar, .tabs, main, .toast { display: none !important; }
  .print-only { display: block; width: 72mm; margin: 0 auto; font: 12px/1.35 ui-monospace, Menlo, Consolas, monospace; }
  .print-only h3 { text-align: center; margin: 0; font-size: 15px; }
  .print-only .c { text-align: center; }
  .print-only table { width: 100%; border-collapse: collapse; }
  .print-only td { padding: 1px 0; vertical-align: top; }
  .print-only td.r { text-align: right; }
  .print-only hr { border: 0; border-top: 1px dashed #000; }
}

/* dish suggestions */
.suggest { position: relative; }
.suggest-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14);
  max-height: 320px; overflow-y: auto;
}
.suggest-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.suggest-list li.on, .suggest-list li:hover { background: var(--bg); }
.suggest-list li.custom { border-top: 1px solid var(--line); color: var(--brand); font-weight: 600; }
#addItem .suggest { flex: 1 1 100%; }

/* test-mode warning and pairing code */
.testbanner { background: #fff4d6; color: #6b4e00; border: 1px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
@media (prefers-color-scheme: dark) { .testbanner { background: #3a3010; color: #f3dc94; } }
.paircode { text-align: center; font-size: 40px; font-weight: 800; letter-spacing: 10px; margin: 16px 0 4px; font-variant-numeric: tabular-nums; }

/* =====================================================================
   MOTION — SLYDE's "sliding" feel. Only transform/opacity are animated
   (smooth on cheap phones). Everything stops for "reduce motion".
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);     /* fast start, soft landing */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* slight overshoot */
}

/* --- top bar: a gold sliver slides across once on load --- */
.topbar { overflow: hidden; }
.topbar::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: sliver 1.6s var(--ease-out) .2s both;
}
@keyframes sliver { from { transform: translateX(-100%); } to { transform: translateX(260%); opacity: 0; } }

/* --- screen entrance: slide in, then the parts cascade --- */
main.enter.from-right { animation: inRight .42s var(--ease-out) both; }
main.enter.from-left  { animation: inLeft  .42s var(--ease-out) both; }
main.enter.from-up    { animation: inUp    .45s var(--ease-out) both; }
main.enter [style*="--i"]:not(.bar) { animation: rise .5s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms + 60ms); }
@keyframes inRight { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inLeft  { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inUp    { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise    { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- bottom tabs: the underline glides to the chosen tab --- */
.tabs { position: fixed; }
.tab-links { display: flex; width: 100%; }
.tab-ink {
  position: absolute; top: 0; left: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
  transition: transform .38s var(--ease-out), width .3s var(--ease-out), opacity .2s;
}
.tabs a { transition: color .25s; }

/* --- touch feedback --- */
button, .btn, .tile { transition: transform .12s var(--ease-out), box-shadow .2s, background-color .2s, border-color .2s; }
button:active:not(:disabled), .btn:active { transform: scale(.96); }
.tile:active { transform: scale(.97); }
@media (hover: hover) {
  .tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
}
.tile.busy { position: relative; overflow: hidden; }
.tile.busy::after { /* a slow shine sliding over running tables */
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(233,196,106,.22) 50%, transparent 70%);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* --- quantity pop, collect button nudge, total roll --- */
.qty span.bump { animation: bump .35s var(--ease-spring); color: var(--brand); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.55); } 100% { transform: scale(1); } }
.nudge { animation: nudge .45s var(--ease-spring); }
@keyframes nudge { 0% { transform: scale(1); } 35% { transform: scale(1.04); } 100% { transform: scale(1); } }
.totals tr.grand td:last-child { font-variant-numeric: tabular-nums; }

/* --- category chips slide --- */
.chips button { transition: background-color .25s, color .25s, transform .12s; }

/* --- toast springs up --- */
.toast.pop { animation: toastIn .42s var(--ease-spring); }
@keyframes toastIn { from { transform: translate(-50%, 24px) scale(.96); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* --- suggestions drop down --- */
.suggest-list:not([hidden]) { animation: drop .22s var(--ease-out); transform-origin: top; }
@keyframes drop { from { transform: translateY(-6px) scaleY(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* --- PIN: dots pop, wrong PIN shakes --- */
.pindots .dot { display: inline-block; }
.pindots .dot.new { animation: bump .3s var(--ease-spring); }
.shake { animation: shake .42s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }

/* --- QR: appears with a pop, pulsing ring + scan line while waiting --- */
.qrframe { position: relative; display: inline-block; border-radius: 14px; animation: qrIn .45s var(--ease-spring); }
.qrframe svg { display: block; }
@keyframes qrIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.qrframe.waiting::before {
  content: ""; position: absolute; inset: -6px; border-radius: 18px; border: 3px solid var(--upi);
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.97); opacity: .7; } 100% { transform: scale(1.08); opacity: 0; } }
.qrframe .scan { display: none; }
.qrframe.waiting .scan {
  display: block; position: absolute; left: 8px; right: 8px; top: 8px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--upi), transparent); box-shadow: 0 0 12px var(--upi);
  animation: scan 2.2s ease-in-out infinite alternate;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(calc(min(280px, 80vw) - 4px)); } }

/* --- report: cash/UPI bar wipes in --- */
.bar { animation: wipe .9s var(--ease-out) .2s both; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* --- loading shimmer --- */
.skeleton { display: grid; gap: 12px; }
.skeleton i {
  display: block; height: 72px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--card) 25%, var(--line) 50%, var(--card) 75%); background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
.skeleton i:first-child { height: 34px; width: 50%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --- welcome hero: logo draws itself, letters slide in, lanes glide --- */
.hero { position: relative; isolation: isolate; text-align: center; padding: 28px 0 10px; overflow: hidden; }
.hero-logo { width: 88px; height: 88px; animation: logoIn .7s var(--ease-spring) both; }
.hero-logo rect { fill: var(--brand); }
.hero-logo path {
  fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1s var(--ease-out) .35s forwards;
}
@keyframes logoIn { from { transform: translateY(18px) rotate(-8deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-word { font-size: 40px; letter-spacing: .22em; margin: 10px 0 2px; padding-left: .22em; overflow: hidden; }
.hero-word span { display: inline-block; animation: letter .6s var(--ease-out) both; animation-delay: calc(.5s + var(--l) * 70ms); }
@keyframes letter { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-tag { color: var(--muted); margin: 0; font-weight: 600; animation: inUp .6s var(--ease-out) 1s both; }
.hero-lanes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-lanes i {
  position: absolute; left: 0; height: 2px; width: 45%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .5;
  animation: lane 4.5s linear infinite;
}
.hero-lanes i:nth-child(1) { top: 22%; animation-delay: 0s; }
.hero-lanes i:nth-child(2) { top: 50%; animation-delay: 1.5s; animation-duration: 5.5s; }
.hero-lanes i:nth-child(3) { top: 78%; animation-delay: 3s; animation-duration: 4s; }
@keyframes lane { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* --- payment success sheet --- */
.celebrate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  background: rgba(16, 30, 24, .55); backdrop-filter: blur(3px); animation: fadeIn .25s ease both;
}
.celebrate.leave { animation: fadeOut .4s ease both; }
.celebrate.leave .celebrate-card { animation: sheetOut .4s var(--ease-out) both; }
.celebrate-card {
  position: relative; background: var(--card); color: var(--ink); border-radius: 24px; padding: 28px 36px; text-align: center;
  min-width: 240px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: sheetIn .5s var(--ease-spring) both;
}
.tick { width: 92px; height: 92px; }
.tick circle { fill: none; stroke: var(--good); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s var(--ease-out) .1s forwards; }
.tick path { fill: none; stroke: var(--good); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s var(--ease-out) .6s forwards; }
.celebrate.upi .tick circle, .celebrate.upi .tick path { stroke: var(--upi); }
.celebrate-amt { font-size: 30px; font-weight: 800; margin-top: 6px; animation: inUp .4s var(--ease-out) .55s both; }
.celebrate-sub { color: var(--muted); font-weight: 600; animation: inUp .4s var(--ease-out) .65s both; }
.burst { position: absolute; left: 50%; top: 74px; width: 0; height: 0; }
.burst i {
  position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
  transform: rotate(var(--a)) translateY(0); opacity: 0; animation: burst .8s var(--ease-out) .55s both;
}
.burst i:nth-child(3n) { background: var(--good); }
.burst i:nth-child(3n+1) { background: var(--upi); }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.5); } }
@keyframes sheetIn { from { transform: translateY(60px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetOut { to { transform: translateX(120%) rotate(6deg); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* --- respect "reduce motion" --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-logo path, .tick circle, .tick path { stroke-dashoffset: 0 !important; }
}
@media print { .celebrate { display: none !important; } }

/* public demo banner */
.demobar { background: var(--accent); color: #2b2205; text-align: center; font-size: 13px; padding: 6px 16px; }

/* long or non-English item names wrap instead of widening the page */
.items li > span:first-child, .totals td:first-child, table.list td { overflow-wrap: anywhere; word-break: break-word; }
.items li > span:last-child { flex-shrink: 0; }
details.card summary { cursor: pointer; min-height: 32px; }
details.card[open] summary { margin-bottom: 6px; }

/* iPhone notch / home bar when opened from the home screen */
.topbar { padding-top: max(12px, env(safe-area-inset-top)); }

/* =====================================================================
   SLYDE look v2: dark, bold, glowing. Data-forward, in SLYDE green + gold.
   ===================================================================== */
:root {
  --night: #0c1712;            /* deep green-black for hero panels */
  --night-2: #16302a;
  --chart-cash: #2a7d4f;       /* validated pair (light) */
  --chart-upi: #5b3bb5;
  --chart-grid: rgba(27, 31, 29, .08);
  --chart-ink: #66706b;
}
@media (prefers-color-scheme: dark) {
  :root { --chart-cash: #3f9c69; --chart-upi: #8a70d8; --chart-grid: rgba(236, 239, 237, .08); --chart-ink: #9aa39f; }
}

/* bolder type */
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 15px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }
.card { border-radius: 16px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 8px 24px -18px rgba(12, 23, 18, .35); }
.topbar { background: linear-gradient(100deg, var(--night) 0%, var(--brand) 70%, #24503d 100%); }

/* hero panel (Today) */
.hero-card {
  position: relative; overflow: hidden; isolation: isolate; color: #f3f6f4;
  background: radial-gradient(120% 140% at 100% 0%, #24503d 0%, var(--night-2) 45%, var(--night) 100%);
  border-radius: 22px; padding: 18px 18px 16px; margin-bottom: 14px; box-shadow: 0 18px 40px -24px rgba(12, 23, 18, .8);
}
.hero-card .glow {
  position: absolute; z-index: -1; width: 260px; height: 260px; right: -70px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 196, 106, .45), rgba(233, 196, 106, 0) 65%);
  animation: drift 9s ease-in-out infinite alternate;
}
.hero-card::after { /* fine lines sliding across */
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
  animation: slidelines 12s linear infinite;
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
@keyframes slidelines { from { background-position: 0 0; } to { background-position: 220px 0; } }
.hero-top { align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 246, 244, .7); font-weight: 700; }
.hero-card input[type=date] {
  width: auto; min-height: 36px; padding: 4px 10px; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color-scheme: dark;
}
.hero-card .big { font-size: clamp(38px, 11vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.hero-sub { color: rgba(243, 246, 244, .72); font-size: 14px; }
.closed-pill { display: inline-block; padding: 1px 8px; border-radius: 99px; background: rgba(233, 196, 106, .18); color: var(--accent); font-weight: 700; }
.split { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: rgba(243, 246, 244, .8); }
.split b { color: #fff; font-size: 17px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.cash { background: var(--chart-cash); }
.sw.upi { background: var(--chart-upi); }
.hero-card .sw.cash { background: #4fb27c; }
.hero-card .sw.upi { background: #a48ff0; }
.hero-bar { margin-top: 12px; background: rgba(255,255,255,.1); height: 8px; gap: 2px; }
.hero-bar i.cash { background: #4fb27c; border-radius: 99px 0 0 99px; }
.hero-bar i.upi { background: #a48ff0; border-radius: 0 99px 99px 0; }

/* owner quick billing */
.quick { display: flex; gap: 10px; margin: 4px 0 6px; }
.quick > * { flex: 1; }
.btn.upi-btn { background: var(--upi); border-color: var(--upi); color: #fff; }

/* hourly chart */
.chart-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chart-wrap { position: relative; }
.hchart { width: 100%; height: auto; display: block; overflow: visible; }
.hchart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.hchart .axis { stroke: var(--line); stroke-width: 1; }
.hchart .tick { fill: var(--chart-ink); font-size: 12px; }
.hchart .seg.cash { fill: var(--chart-cash); }
.hchart .seg.upi { fill: var(--chart-upi); }
.hchart .hit { fill: transparent; cursor: pointer; }
.hchart .hbar .seg { transform-box: fill-box; transform-origin: bottom; animation: grow .7s var(--ease-out) both; animation-delay: calc(var(--b) * 30ms + 150ms); }
.hchart .hbar.on .seg, .hchart .hbar:hover .seg { filter: brightness(1.12); }
.hchart .hbar.on .hit { fill: var(--chart-grid); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-tip {
  position: absolute; top: -6px; transform: translateY(-100%); min-width: 140px; pointer-events: none; z-index: 3;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 13px;
  box-shadow: 0 10px 28px -12px rgba(0,0,0,.35);
}
.chart-tip .tip-total { margin-top: 4px; font-weight: 800; }
details summary { cursor: pointer; color: var(--muted); margin-top: 8px; }

/* close the day */
.closed-box { background: color-mix(in srgb, var(--good) 8%, transparent); border: 1px solid color-mix(in srgb, var(--good) 35%, transparent); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.good-text { color: var(--good); font-weight: 700; }
.warn-text { color: var(--warn); font-weight: 700; }

/* welcome: dark hero */
.hero {
  color: #f3f6f4; border-radius: 26px; padding: 34px 16px 24px; margin-bottom: 18px;
  background: radial-gradient(120% 120% at 50% 0%, #24503d 0%, var(--night-2) 45%, var(--night) 100%);
  box-shadow: 0 24px 50px -28px rgba(12, 23, 18, .9);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(40% 40% at 80% 10%, rgba(233, 196, 106, .35), transparent 70%), radial-gradient(35% 35% at 10% 90%, rgba(79, 178, 124, .25), transparent 70%);
  animation: drift 10s ease-in-out infinite alternate;
}
.hero-logo rect { fill: #1d3b2f; stroke: rgba(233, 196, 106, .5); stroke-width: 1; }
.hero-word { color: #fff; font-size: 46px; }
.hero-tag { color: var(--accent); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.hero-lanes i { opacity: .8; }
.hero + p.muted { margin-bottom: 14px; }

/* network banner */
.netbar { text-align: center; font-size: 13px; padding: 7px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.netbar.off { background: #3a1f12; color: #ffd9c4; border-color: transparent; }
.netbar.ok { background: color-mix(in srgb, var(--good) 18%, var(--card)); color: var(--good); }
@media (prefers-color-scheme: dark) { .netbar.off { background: #4a2414; } }

/* bill: kitchen + discount */
.sent-tag { font-size: 12px; color: var(--good); font-weight: 600; }
.kot-btn { margin-top: 10px; background: #2b1a0c; color: #ffcf8a; border-color: #2b1a0c; }
@media (prefers-color-scheme: dark) { .kot-btn { background: #3a240f; border-color: #3a240f; } }
.totals tr.disc td { color: var(--good); }
.disc-panel { margin-top: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }

/* kitchen screen */
.kot-cols { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .kot-cols { grid-template-columns: 1fr 1fr; } }
.kot { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.kot.ready { border-left-color: var(--good); }
.kot.served { opacity: .6; border-left-color: var(--line); }
.kot.late { border-left-color: var(--warn); box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 35%, transparent); }
.kot.late .age { color: var(--warn); font-weight: 800; }
.kot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.kot-head b { font-size: 18px; }
.kot-table { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.kot-meta { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.kot-note { font-size: 13px; font-weight: 700; color: var(--warn); margin-bottom: 4px; }
.kot-items { list-style: none; padding: 0; margin: 6px 0 10px; font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
.kot-items .cancel { color: var(--warn); font-weight: 800; text-decoration: line-through; text-decoration-thickness: 2px; }

/* printed KOT */
@media print {
  .print-only .big-line { font-size: 18px; font-weight: 800; margin: 4px 0; }
  .print-only td.kq { width: 1%; white-space: nowrap; font-weight: 800; padding-right: 6px; }
  .print-only td.kn { font-size: 14px; }
}
