/* Dine: one stylesheet for every shell (customer app, back office, partner app, console, sign-in).
   The restaurant's own colours arrive as --brand / --accent (theme.js); everything else is these tokens.
   Surfaces are off-white (#fbf8f3), never pure white; white is only for text on dark or coloured buttons. */

:root {
  --brand: #b4472b; --brand-ink: #ffffff; --brand-soft: color-mix(in srgb, var(--brand) 12%, #fbf8f3);
  --accent: #b4472b;
  --bg: #f3eee6; --surface: #fbf8f3; --surface-2: #f6f1e8; --hover: #efe8dc;
  --ink: #2a211b; --muted: #7a6c61; --border: #e6dccd; --border-strong: #d4c6b2;
  --ok: #2f7d4f; --ok-soft: #e4f1e8; --warn: #a8690c; --warn-soft: #faedd2; --bad: #b3261e; --bad-soft: #f7dedb; --info: #2b5f9e; --info-soft: #dfe9f6;
  --veg: #1e8f3e; --nonveg: #b3261e; --egg: #c58a00;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(42,33,27,.06), 0 6px 18px rgba(42,33,27,.07);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-head: var(--font-body);
  --nav-bg: #2a211b; --nav-ink: #e9dfd2;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #17120f; --surface: #221b17; --surface-2: #2a221d; --hover: #332a24; --ink: #f1e8dc; --muted: #a39587; --border: #3a2f28; --border-strong: #4d4036;
  --brand-soft: color-mix(in srgb, var(--brand) 22%, #221b17); --ok-soft: #1d3326; --warn-soft: #3a2c10; --bad-soft: #3d1f1c; --info-soft: #1b2c42;
  --nav-bg: #120e0c; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0 0 .75rem; } a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; } small, .muted { color: var(--muted); } .small { font-size: .85rem; }
.hidden { display: none !important; } .right { text-align: right; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .row.tight { gap: .3rem; } .spread { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: .75rem; } .grid { display: grid; gap: .8rem; } .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 640px) { .grid.cols-2, .grid.cols-3:not(.keep3) { grid-template-columns: 1fr; } }
.loading { display: grid; place-items: center; padding: 3rem 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

/* ─── buttons: every class on a real <button> resets the native chrome first ─── */
button, .btn { background: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; appearance: none; -webkit-appearance: none; cursor: pointer; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding: .5rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid transparent; font-weight: 600; font-size: .92rem; line-height: 1.2; transition: transform .06s, background .15s, border-color .15s; user-select: none; text-decoration: none !important; }
.btn:active { transform: scale(.97); } .btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); } .btn-primary:hover { filter: brightness(1.07); }
.btn-dark { background: #2a211b; color: #fff; } :root[data-theme="dark"] .btn-dark { background: #f1e8dc; color: #17120f; }
.btn-outline { border-color: var(--border-strong); color: var(--ink); background: var(--surface); } .btn-outline:hover { background: var(--hover); }
.btn-ghost { color: var(--brand); } .btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: var(--bad); color: #fff; } .btn-danger-outline { border-color: var(--bad); color: var(--bad); background: var(--surface); }
.btn-ok { background: var(--ok); color: #fff; } .btn-sm { min-height: 34px; padding: .3rem .7rem; font-size: .84rem; } .btn-lg { min-height: 50px; font-size: 1rem; width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--border); position: relative; flex: none; }
.icon-btn:hover { background: var(--hover); } .icon-btn svg { width: 20px; height: 20px; }

/* ─── cards, badges, alerts ─── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: .9rem; } .card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--hover); color: var(--muted); white-space: nowrap; }
.badge-success { background: var(--ok-soft); color: var(--ok); } .badge-warning { background: var(--warn-soft); color: var(--warn); } .badge-danger { background: var(--bad-soft); color: var(--bad); } .badge-primary { background: var(--info-soft); color: var(--info); }
.alert { padding: .65rem .85rem; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid var(--border); background: var(--surface-2); }
.alert-danger { background: var(--bad-soft); border-color: transparent; color: var(--bad); } .alert-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); } .alert-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); } .alert-info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.grid.keep3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; } .kpi b { font-family: var(--font-body); display: block; font-size: 1.5rem; font-family: var(--font-head); } .kpi span { color: var(--muted); font-size: .82rem; }

/* ─── forms: rounded outlined fields ─── */
label.field { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); } label.field > .ctl { margin-top: .25rem; }
input#code:not(:placeholder-shown) { text-transform: uppercase; }
input, textarea, .input { width: 100%; min-height: 44px; padding: .55rem .8rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; appearance: none; -webkit-appearance: none; }
textarea { min-height: 80px; resize: vertical; } input:focus, textarea:focus, .dd-btn:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--brand); appearance: auto; -webkit-appearance: auto; flex: none; }
input[type=file] { padding: .4rem; } input[type=color] { padding: 2px; height: 44px; min-width: 56px; cursor: pointer; }
.check { display: flex; align-items: center; gap: .55rem; font-size: .92rem; min-height: 32px; cursor: pointer; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
/* The app's own dropdown (never the browser's select popup). */
.dd { position: relative; } .dd-btn { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .8rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-align: left; }
.dd-btn::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); flex: none; } .dd-btn .ph { color: var(--muted); }
.dd-list { position: absolute; z-index: 700; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .25rem; }
.dd-list.up { top: auto; bottom: calc(100% + 4px); } .dd-opt { display: block; width: 100%; padding: .55rem .7rem; border-radius: 7px; text-align: left; } .dd-opt:hover, .dd-opt.on { background: var(--brand-soft); } .dd-opt.on { font-weight: 700; }
.dd-search { margin: .2rem; width: calc(100% - .4rem); min-height: 38px; }
.seg { display: inline-flex; background: var(--hover); border-radius: 99px; padding: 3px; gap: 2px; flex-wrap: wrap; } .seg button { padding: .3rem .85rem; border-radius: 99px; font-weight: 600; font-size: .85rem; color: var(--muted); } .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chips { display: flex; gap: .45rem; overflow-x: auto; padding: .15rem 0 .35rem; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .38rem .85rem; border-radius: 99px; border: 1.5px solid var(--border-strong); background: var(--surface); font-size: .85rem; font-weight: 600; white-space: nowrap; } .chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.food-mark { width: 16px; height: 16px; border: 1.5px solid var(--veg); border-radius: 3px; display: inline-grid; place-items: center; flex: none; background: #fff; } .food-mark::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--veg); }
.food-mark.non_veg { border-color: var(--nonveg); } .food-mark.non_veg::after { background: var(--nonveg); } .food-mark.egg { border-color: var(--egg); } .food-mark.egg::after { background: var(--egg); }

/* ─── tables: search + filters above, bounded height, sticky header, aligned cells, numbers right ─── */
.tbl-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; } .tbl-tools input[type=search], .tbl-tools .search { max-width: 280px; }
.tbl-scroll { max-height: min(62vh, 640px); overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; } table.tbl th, table.tbl td { padding: .55rem .7rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; } table.tbl tr:last-child td { border-bottom: 0; } table.tbl tbody tr:hover { background: var(--hover); } table.tbl tr.click { cursor: pointer; }

/* ─── modal, sheet, toast ─── */
.modal-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(23,18,15,.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-box { background: var(--surface); border-radius: var(--radius); width: 100%; max-height: 92vh; overflow: auto; padding: 1.1rem 1.2rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.modal-title { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: .8rem; } .modal-close { font-size: 1.6rem; line-height: 1; color: var(--muted); width: 36px; height: 36px; }
.sheet-overlay { position: fixed; inset: 0; z-index: 800; background: rgba(23,18,15,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; animation: rise .22s ease-out; } @keyframes rise { from { transform: translateY(40px); opacity: .4; } }
.toast-wrap { position: fixed; z-index: 900; left: 0; right: 0; bottom: 84px; display: flex; flex-direction: column; align-items: center; gap: .4rem; pointer-events: none; padding: 0 1rem; }
.toast { background: #2a211b; color: #fff; padding: .6rem 1rem; border-radius: 99px; font-size: .88rem; box-shadow: var(--shadow); animation: rise .2s ease-out; max-width: 100%; } .toast.bad { background: var(--bad); }

/* ─── back office shell ─── */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--nav-bg); color: var(--nav-ink); padding: .9rem .6rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; }
.side .brand { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem .9rem; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; }
.side .brand img, .side .brand .logo-ph { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.side a.nav { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; color: var(--nav-ink); opacity: .82; font-weight: 500; text-decoration: none; font-size: .92rem; }
.side a.nav:hover { background: rgba(255,255,255,.08); opacity: 1; } .side a.nav.active { background: var(--brand); color: var(--brand-ink); opacity: 1; font-weight: 700; }
.side a.nav svg { width: 18px; height: 18px; flex: none; } .side .nav-badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: .7rem; padding: 0 .45rem; min-width: 20px; text-align: center; font-weight: 700; }
.side .nav-sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; opacity: .5; padding: .8rem .7rem .2rem; } .side .foot { margin-top: auto; padding-top: .8rem; font-size: .78rem; opacity: .6; }
.main { min-width: 0; display: flex; flex-direction: column; } .top { display: flex; align-items: center; gap: .6rem; padding: .6rem 1.2rem; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.top .title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; } #content { padding: 1.2rem; max-width: 1400px; width: 100%; margin: 0 auto; }
.store-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 99px; font-weight: 700; font-size: .82rem; border: 1.5px solid var(--border-strong); background: var(--surface); } .store-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); } .store-pill.open i { background: var(--ok); }
.burger { display: none; }
.page-actions { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; } .tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; } .tabs button { padding: .6rem .9rem; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; } .tabs button.on { color: var(--brand); border-color: var(--brand); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 600; transform: translateX(-102%); transition: transform .2s; } .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
  .burger { display: inline-grid; } #content { padding: .9rem; } .top { padding: .5rem .8rem; }
}

/* ─── order board ─── */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; min-height: 160px; } .col h3 { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .1rem .2rem .6rem; }
.ocard { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--ok); border-radius: var(--radius-sm); padding: .65rem .75rem; margin-bottom: .55rem; box-shadow: var(--shadow); }
.ocard.age-warn { border-left-color: #d99a2b; } .ocard.age-late { border-left-color: var(--bad); } .ocard.ring { animation: ring 1s ease-in-out infinite; } @keyframes ring { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 35%, transparent); } }
.ocard .num { font-weight: 800; font-family: var(--font-head); font-size: 1.05rem; } .ocard ul { list-style: none; margin: .4rem 0; padding: 0; font-size: .86rem; } .ocard li { display: flex; gap: .35rem; }
.kds { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; } .kds .ocard { border-left-width: 8px; font-size: 1.02rem; } .timer { font-variant-numeric: tabular-nums; font-weight: 800; }

/* ─── customer app ─── */
body.shop { background: var(--bg); } .app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--surface); position: relative; padding-bottom: 76px; box-shadow: 0 0 40px rgba(0,0,0,.08); }
.topbar { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px); }
.topbar .name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; text-align: center; flex: 1; min-width: 0; } .topbar .name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .74rem; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .35rem 0; font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none !important; position: relative; } .bottom-nav a svg { width: 23px; height: 23px; } .bottom-nav a.on { color: var(--brand); }
.bottom-nav .cnt { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.pad { padding: 0 1rem; } .search-bar { display: flex; align-items: center; gap: .6rem; margin: .3rem 1rem .9rem; padding: 0 .9rem; border: 1.5px solid var(--border-strong); border-radius: 99px; background: var(--surface); } .search-bar input { border: 0; background: none; box-shadow: none !important; padding-left: 0; }
.promo { margin: 0 1rem 1.2rem; border-radius: 20px; padding: 1.3rem 1.2rem; min-height: 170px; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)) center/cover; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; position: relative; overflow: hidden; }
.promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.05) 70%); } .promo > * { position: relative; } .promo h2 { margin: 0; font-size: 1.35rem; color: #fff; } .promo .btn { align-self: flex-start; background: #fff; color: #2a211b; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 1rem; margin: 1.1rem 0 .6rem; } .sec-head h2 { margin: 0; font-size: 1.15rem; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem .4rem; padding: 0 1rem; text-align: center; } .cat { background: none; font-size: .78rem; font-weight: 600; display: grid; justify-items: center; gap: .35rem; } .cat .ic { width: 62px; height: 62px; border-radius: 50%; background: var(--brand-soft) center/cover; display: grid; place-items: center; font-size: 1.5rem; border: 1px solid var(--border); }
.hscroll { display: flex; gap: .8rem; overflow-x: auto; padding: 0 1rem .4rem; scroll-snap-type: x proximity; scrollbar-width: none; } .hscroll::-webkit-scrollbar { display: none; }
.spec { flex: none; width: 170px; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); text-align: left; } .spec .ph { height: 120px; background: var(--hover) center/cover; display: grid; place-items: center; font-size: 2rem; } .spec .tx { padding: .5rem .65rem .65rem; } .spec b { display: block; font-size: .9rem; line-height: 1.25; }
.icard { display: flex; gap: .8rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); } .icard .tx { flex: 1; min-width: 0; } .icard h3 { margin: .2rem 0 .1rem; font-size: 1rem; } .icard .desc { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.icard .pic { width: 112px; flex: none; position: relative; } .icard .pic .img { width: 112px; height: 100px; border-radius: 14px; background: var(--hover) center/cover; display: grid; place-items: center; font-size: 1.8rem; } .icard.off { opacity: .55; }
.add-btn { position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); min-width: 84px; height: 34px; border-radius: 9px; background: var(--surface); border: 1.5px solid var(--brand); color: var(--brand); font-weight: 800; font-size: .85rem; box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; gap: .6rem; letter-spacing: .03em; } .add-btn.has { background: var(--brand); color: var(--brand-ink); }
.price { font-weight: 700; } .price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: .3rem; } .tag { font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--brand-soft); padding: .08rem .45rem; border-radius: 6px; margin-right: .25rem; } .rating { font-size: .76rem; font-weight: 700; color: #fff; background: var(--ok); border-radius: 6px; padding: .05rem .4rem; }
.catbar { position: sticky; top: 56px; z-index: 30; background: var(--surface); padding: .4rem 1rem; border-bottom: 1px solid var(--border); }
.cart-bar { position: fixed; bottom: 66px; left: 50%; transform: translateX(-50%); width: calc(100% - 2rem); max-width: 488px; z-index: 55; background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: .7rem 1rem; display: flex; justify-content: space-between; align-items: center; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.bill-row { display: flex; justify-content: space-between; padding: .2rem 0; font-size: .92rem; } .bill-row.total { font-weight: 800; font-size: 1.05rem; border-top: 1.5px dashed var(--border-strong); margin-top: .4rem; padding-top: .55rem; }
.stepper { display: inline-flex; align-items: center; gap: .65rem; border: 1.5px solid var(--brand); border-radius: 9px; padding: 0 .2rem; height: 34px; color: var(--brand); font-weight: 800; } .stepper button { width: 30px; height: 30px; font-size: 1.2rem; font-weight: 800; color: var(--brand); }
.track-map { height: 260px; background: #e8efe4; position: relative; overflow: hidden; } :root[data-theme="dark"] .track-map { background: #1d2a22; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { position: relative; padding: 0 0 1rem 2rem; color: var(--muted); } .timeline li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); } .timeline li::after { content: ''; position: absolute; left: 12px; top: 20px; bottom: 0; width: 2px; background: var(--border); } .timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); } .timeline li.done::before { background: var(--ok); border-color: var(--ok); } .timeline li.now { color: var(--ink); font-weight: 700; } .timeline li.now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.track-card { background: var(--surface); border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; padding: 1.1rem 1.2rem 1.4rem; box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.eta-strip { display: flex; justify-content: space-between; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: .65rem .9rem; margin: .8rem 0; } .eta-strip b { font-size: 1.3rem; font-family: var(--font-head); }
.announce { background: var(--brand); color: var(--brand-ink); text-align: center; padding: .45rem 1rem; font-size: .85rem; font-weight: 600; }
.install { margin: .8rem 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--info-soft); color: var(--info); display: flex; gap: .6rem; align-items: center; justify-content: space-between; font-size: .88rem; }

/* ─── sign-in: full-bleed dark food photo, outlined fields, one solid button in the accent colour ─── */
body.auth { min-height: 100vh; background: #17120f center/cover fixed no-repeat; display: grid; place-items: center; padding: 1.2rem; }
body.auth::before { content: ''; position: fixed; inset: 0; background: linear-gradient(rgba(14,10,8,.72), rgba(14,10,8,.86)); }
.auth-card { position: relative; width: 100%; max-width: 410px; color: #f5ede2; } .auth-card h1 { font-size: 1.9rem; text-align: center; margin-bottom: .3rem; color: #fff; } .auth-card .sub { text-align: center; color: #cdbfae; margin-bottom: 1.4rem; }
.auth-card input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.28); color: #fff; border-radius: 12px; min-height: 50px; } .auth-card input::placeholder { color: #b5a592; } .auth-card input:focus { border-color: var(--accent); }
.auth-card .btn-primary { width: 100%; min-height: 52px; background: var(--accent); border-radius: 12px; } .auth-card .btn-google { width: 100%; min-height: 50px; border: 1.5px solid rgba(255,255,255,.3); border-radius: 12px; color: #fff; }
.auth-card a { color: #f0b48f; } .or { display: flex; align-items: center; gap: .8rem; color: #b5a592; margin: 1rem 0; font-size: .85rem; } .or::before, .or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.auth-card .check, .auth-card label.field { color: #d8cbb9; } .auth-card .alert-danger { background: rgba(179,38,30,.3); color: #ffd7d3; } .auth-logo { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; margin: 0 auto 1rem; display: block; }

@media print { .side, .top, .page-actions, .no-print, .bottom-nav, .toast-wrap { display: none !important; } body { background: #fff; } .shell { display: block; } .card { box-shadow: none; } }
.print-only { display: none; } @media print { .print-only { display: block; } }
.kot { width: 72mm; font: 12px/1.35 monospace; color: #000; } .kot h4 { margin: 0 0 .3rem; font-size: 14px; text-align: center; } .kot hr { border: 0; border-top: 1px dashed #000; margin: .3rem 0; } .kot .l { display: flex; justify-content: space-between; gap: .5rem; }
