/* =====================================================================
   Design system: tokens, app shell and shared components.
   Page styles (waiter.css, kitchen.css, cashier.css, admin.css) build on this.
   ===================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }

:root {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Neutrals */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f4f9;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #e6eaf1;
  --border-strong: #d6dce6;

  /* Brand */
  --primary: #1f6feb;
  --primary-600: #1a5fd0;
  --primary-700: #154eb0;
  --primary-50: #eef4ff;
  --primary-100: #dce8ff;
  --primary-ring: rgba(31, 111, 235, .22);

  /* Status */
  --available: #15925a;
  --available-bg: #e7f7ee;
  --occupied: #d97706;
  --occupied-bg: #fef3e2;
  --ready: #7c3aed;
  --ready-bg: #f2ecff;
  --danger: #dc2626;
  --danger-bg: #fef1f1;
  --selected: var(--primary);

  /* Sidebar */
  --sb-bg: #0b1324;
  --sb-bg-2: #111b31;
  --sb-text: #aab6cb;
  --sb-text-strong: #f1f5f9;
  --sb-hover: rgba(255, 255, 255, .05);
  --sb-active: rgba(31, 111, 235, .16);
  --sb-border: rgba(255, 255, 255, .07);

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, .18), 0 6px 16px rgba(15, 23, 42, .08);

  --sidebar-w: 264px;
  --header-h: 64px;
  --gutter: 1rem;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 1.5rem; } }
@media (min-width: 1280px) { :root { --gutter: 2rem; } }

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--text); letter-spacing: -.01em; line-height: 1.3; }
h1 { font-size: 1.3rem; font-weight: 600; margin: 0; }
h2 { font-size: 1.02rem; font-weight: 600; margin: 1.5rem 0 .75rem; }
h3 { font-size: .95rem; font-weight: 600; }
a { color: var(--primary); }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: var(--text); }
strong { font-weight: 600; }
::selection { background: var(--primary-100); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Thin, brand-tinted scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(31, 111, 235, .28) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(31, 111, 235, .24); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(31, 111, 235, .45); }
::-webkit-scrollbar-corner { background: transparent; }
.sidebar * { scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.sidebar ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); }

/* Icons (from /img/icons.svg) */
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.i.lg { width: 1.35em; height: 1.35em; }

/* =====================================================================
   App shell: pinned sidebar + header on desktop, drawer below 1024px
   ===================================================================== */
.app { min-height: 100vh; min-height: 100dvh; }
.app-main { min-width: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60;
  width: var(--sidebar-w); max-width: 86vw;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--sb-bg-2) 0%, var(--sb-bg) 100%);
  color: var(--sb-text);
  transform: translateX(-100%);
  transition: transform .28s var(--ease), box-shadow .28s;
  padding-bottom: env(safe-area-inset-bottom);
}
.sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 55; background: rgba(8, 13, 26, .5);
  backdrop-filter: blur(2px); animation: fade .2s ease;
}

/* Phones & tablets: menu button in the top-right corner, drawer slides in from the right */
@media (max-width: 1023px) {
  .hamburger { order: 99; }
  .sidebar { inset: 0 0 0 auto; transform: translateX(100%); }
  .sidebar.open { transform: none; }
}

@media (min-width: 1024px) {
  .sidebar { transform: none; }
  .app-main { margin-left: var(--sidebar-w); }
  .drawer-backdrop, .hamburger, .sb-close { display: none !important; }
}

.sb-brand {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 1.1rem 1rem;
  border-bottom: 1px solid var(--sb-border);
}
.sb-logo {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #3b82f6, var(--primary-700));
  box-shadow: 0 6px 16px rgba(31, 111, 235, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.sb-logo .i { width: 21px; height: 21px; }
.sb-name { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.sb-name strong { color: var(--sb-text-strong); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-name small { font-size: .74rem; color: var(--sb-text); letter-spacing: .02em; }
.sb-close { color: var(--sb-text); }

.sb-section { padding: 1rem .75rem .25rem; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.sb-nav { flex: 1; overflow-y: auto; padding: .25rem .75rem .75rem; display: grid; align-content: start; gap: 2px; }

.nav-item {
  position: relative;
  display: flex; align-items: center; gap: .75rem; width: 100%;
  min-height: 44px; padding: .55rem .8rem;
  border: 0; border-radius: 11px; background: transparent;
  color: var(--sb-text); font-weight: 500; font-size: .9rem; text-align: left;
  transition: background .15s, color .15s;
}
.nav-item .i { width: 19px; height: 19px; opacity: .85; }
.nav-item:hover { background: var(--sb-hover); color: var(--sb-text-strong); }
.nav-item.active { background: var(--sb-active); color: #fff; }
.nav-item.active .i { opacity: 1; color: #7fb0ff; }
.nav-item.active::before {
  content: ""; position: absolute; left: -.75rem; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--primary);
}
.nav-item > span:not(.nav-badge) { flex: 1; min-width: 0; }
.nav-badge {
  min-width: 22px; height: 22px; padding: 0 .45rem; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .09); color: var(--sb-text-strong);
  font-size: .72rem; font-weight: 600;
}
.nav-item.active .nav-badge { background: var(--primary); color: #fff; }
.nav-badge.alert { background: var(--ready); color: #fff; }

.sb-foot { padding: .75rem; border-top: 1px solid var(--sb-border); display: grid; gap: 2px; }
.user-card { display: flex; align-items: center; gap: .7rem; padding: .6rem .6rem .7rem; }
.avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #334155, #1e293b); color: #e2e8f0;
  font-size: .82rem; font-weight: 600; border: 1px solid rgba(255, 255, 255, .1);
}
.uc-text { min-width: 0; display: grid; line-height: 1.25; }
.uc-text strong { color: var(--sb-text-strong); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-text small { font-size: .74rem; color: var(--sb-text); }
.nav-item.install { color: #9cc2ff; }

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .75rem;
  min-height: var(--header-h);
  padding: .6rem var(--gutter);
  padding-top: calc(.6rem + env(safe-area-inset-top));
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.hd-title { flex: 1; min-width: 0; }
.hd-title h1 { font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-sub { margin: 0; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-actions { display: flex; align-items: center; gap: .5rem; }
@media (min-width: 768px) { .hd-title h1 { font-size: 1.2rem; } }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text-2);
  transition: background .15s, border-color .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn .i { width: 19px; height: 19px; }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.ghost:hover { background: var(--surface-3); }
.sidebar .icon-btn { background: transparent; border-color: transparent; }
.sidebar .icon-btn:hover { background: var(--sb-hover); }
.icon-btn .badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--ready); color: #fff; font-size: .68rem; font-weight: 700;
  border: 2px solid #fff;
}

/* Live connection status */
.live {
  display: inline-flex; align-items: center; gap: .4rem;
  height: 30px; padding: 0 .7rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live.on { background: var(--available-bg); color: var(--available); border-color: #cdeedb; }
.live.on::before { box-shadow: 0 0 0 0 rgba(21, 146, 90, .5); animation: pulse 2s infinite; }
.live.off { background: var(--danger-bg); color: var(--danger); border-color: #fbd5d5; }
@media (max-width: 480px) { .live { width: 30px; padding: 0; justify-content: center; font-size: 0; gap: 0; } }

/* Page body */
.content { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 1.25rem var(--gutter) 1.5rem; }
.content.narrow { max-width: 1100px; }

.credit {
  padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
  text-align: center; font-size: .76rem; color: var(--faint);
}
.credit a { color: var(--muted); font-weight: 600; text-decoration: none; }
.credit a:hover { color: var(--primary); }
/* Under the credit on every screen: DineLedger guides billing; the legal bill is made in the shop's own software. */
.credit-note { display: block; max-width: 40rem; margin: .35rem auto 0; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.auth-aside .credit-note { margin-left: 0; color: #94a3b8; }

/* Notice banners under the header */
.banner {
  display: flex; align-items: flex-start; gap: .6rem;
  margin: 1rem var(--gutter) 0; padding: .7rem 1rem;
  border-radius: var(--radius-sm); font-size: .85rem;
  background: #fffaeb; color: #8a5a00; border: 1px solid #fde7b0;
}
.banner .i { margin-top: .15em; }
@media (max-width: 640px) { .banner { margin-top: .75rem; padding: .55rem .8rem; font-size: .78rem; } }
.banner.danger { background: var(--danger-bg); color: #991b1b; border-color: #fbd5d5; }
.banner ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.banner > div { min-width: 0; }

/* =====================================================================
   Components
   ===================================================================== */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.05rem;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font-weight: 500; font-size: .9rem; line-height: 1.2; text-align: center; text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s, color .15s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: #c7cfdb; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .i { width: 18px; height: 18px; }
.btn.primary {
  background: linear-gradient(180deg, #2b7af0, var(--primary)); border-color: var(--primary-600); color: #fff;
  box-shadow: 0 1px 2px rgba(31, 111, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, var(--primary), var(--primary-600)); border-color: var(--primary-700); }
.btn.dark { background: #0f172a; border-color: #0f172a; color: #fff; }
.btn.dark:hover:not(:disabled) { background: #1e293b; border-color: #1e293b; }
.btn.danger { background: var(--danger); border-color: #c81e1e; color: #fff; }
.btn.danger:hover:not(:disabled) { background: #c81e1e; }
.btn.soft { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-700); box-shadow: none; }
.btn.soft:hover:not(:disabled) { background: var(--primary-100); border-color: var(--primary-100); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); }
.btn.big { width: 100%; min-height: 50px; font-size: .98rem; font-weight: 600; border-radius: 14px; }
.btn.small { min-height: 36px; padding: .35rem .8rem; font-size: .84rem; border-radius: 10px; }
.btn.small .i { width: 16px; height: 16px; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .card { padding: 1.25rem 1.35rem; } }
.card h2 { margin-top: 0; }

/* Section headings inside a page */
.view-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.view-head h1, .view-head h2 { flex: 1; min-width: 0; margin: 0; }
.panel-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem; }
.panel-head h1 { flex: 1; min-width: 12rem; }
.hint { color: var(--muted); margin: .25rem 0 1rem; font-size: .86rem; }
.center { text-align: center; }
.label { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: .45rem; letter-spacing: .02em; text-transform: uppercase; }
.empty {
  display: grid; justify-items: center; gap: .35rem;
  color: var(--muted); text-align: center; padding: 2rem 1rem; font-size: .9rem;
}
.empty .i { width: 30px; height: 30px; color: var(--faint); }
.empty strong { color: var(--text-2); }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  height: 24px; padding: 0 .6rem; border-radius: 999px;
  font-size: .7rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  background: var(--surface-3); color: var(--muted);
}
.pill.AVAILABLE, .pill.PAID { background: var(--available-bg); color: var(--available); }
.pill.OCCUPIED, .pill.PREPARING, .pill.PENDING { background: var(--occupied-bg); color: var(--occupied); }
.pill.NEW { background: var(--primary-50); color: var(--primary); }
.pill.READY { background: var(--ready-bg); color: var(--ready); }
.pill.SERVED { background: #e8f8f2; color: #047857; }
.pill.CANCELLED { background: var(--danger-bg); color: var(--danger); }
.pill.PARCEL { background: #fff7ed; color: #9a3412; } /* dine-in parcel order: packed at the parcel counter */
.pill.SELF { background: #eef2ff; color: #3730a3; } /* the customer ordered it from the table's QR link */

/* Chips (filters, seats, categories) */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
/* Sideways chip rows (menu categories): a visible thin brand scrollbar shows there is more to the right. */
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .55rem; margin-bottom: .6rem; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(31, 111, 235, .45) rgba(31, 111, 235, .08); }
.chips.scroll::-webkit-scrollbar { height: 6px; }
.chips.scroll::-webkit-scrollbar-track { background: rgba(31, 111, 235, .08); border-radius: 999px; }
.chips.scroll::-webkit-scrollbar-thumb { background: rgba(31, 111, 235, .45); border-radius: 999px; }
.chips.scroll .chip { flex: none; scroll-snap-align: start; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 38px; padding: .4rem .95rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2);
  font-weight: 500; font-size: .85rem; white-space: nowrap; scroll-snap-align: start;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: #0f172a; border-color: #0f172a; color: #fff; }
.chip .count {
  min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 600;
}
.chip.active .count { background: #fff; color: #0f172a; }

/* Form fields */
.field { display: grid; gap: .4rem; margin: 0 0 1rem; }
.field label { font-weight: 500; font-size: .85rem; color: var(--text-2); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 46px; padding: .65rem .9rem;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:disabled, .field select:disabled { background: var(--surface-3); color: var(--muted); border-color: var(--border); cursor: not-allowed; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .search:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring);
}
.field .hint, .field small.hint { margin: 0; font-size: .78rem; }
.error-text { color: var(--danger); min-height: 1.2em; font-size: .85rem; margin: 0 0 .75rem; font-weight: 500; }
.error-text:empty { min-height: 0; margin: 0; }

.search {
  width: 100%; min-height: 46px; padding: .65rem .9rem .65rem 2.6rem;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat .85rem 50%;
  margin-bottom: 1rem; transition: border-color .15s, box-shadow .15s;
}
.search.plain { padding-left: .9rem; background-image: none; }

.check { display: flex; align-items: center; gap: .6rem; font-weight: 500; margin: .5rem 0 1rem; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }

/* Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--available); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Segmented control (e.g. All / In stock / Out of stock) */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-3); flex: none; gap: 2px; }
.seg-btn {
  border: none; background: transparent; min-width: 44px; min-height: 40px; padding: 0 .8rem; border-radius: 9px;
  font-weight: 500; font-size: .86rem; color: var(--muted); display: inline-grid; place-items: center; white-space: nowrap;
  transition: background .15s, color .15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn .i { width: 17px; height: 17px; }
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); font-weight: 600; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; gap: .15rem; padding: 3px; border-radius: 12px; background: var(--surface-3); }
.qty button {
  width: 34px; height: 34px; border: 0; border-radius: 9px;
  display: grid; place-items: center; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-xs); transition: background .15s;
}
.qty button:hover { background: var(--primary-50); color: var(--primary); }
.qty button .i { width: 16px; height: 16px; }
.qty .n { min-width: 1.9rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Veg / non-veg mark */
.food-type { width: 14px; height: 14px; border: 1.5px solid; border-radius: 3px; display: inline-grid; place-items: center; margin-right: .45rem; vertical-align: -1px; flex: none; }
.food-type::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.food-type.VEG { color: #15803d; }
.food-type.NON_VEG { color: #b91c1c; }
.food-type.EGG { color: #ca8a04; }

/* Menu item rows (waiter order + parcel) */
.menu-list { display: grid; gap: .6rem; }
@media (min-width: 640px) { .menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .menu-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.menu-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem .85rem .75rem 1rem; box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.menu-item:hover { border-color: var(--border-strong); }
.menu-item.in-cart { border-color: #bcd3fb; background: linear-gradient(0deg, var(--primary-50), var(--primary-50)), var(--surface); }
.menu-item.unavailable { opacity: .55; }
.menu-item .info { flex: 1; min-width: 0; }
.menu-item .name { font-weight: 500; display: flex; align-items: center; line-height: 1.35; }
.menu-item .price { color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.menu-item .add-btn { min-width: 76px; }

/* Stat tiles */
.summary { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 1.25rem; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .85rem 1rem; box-shadow: var(--shadow);
}
.stat small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.stat strong { display: block; font-size: 1.2rem; font-weight: 600; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat.accent { background: linear-gradient(135deg, #0f1b33, #16284a); border-color: #0f1b33; }
.stat.accent small { color: #9fb0cc; }
.stat.accent strong { color: #fff; }

/* Data tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -.25rem; padding: 0 .25rem; }
.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data th {
  text-align: left; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .6rem .75rem; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data th:first-child { border-top-left-radius: 10px; }
.data th:last-child { border-top-right-radius: 10px; }
.data td { padding: .7rem .75rem; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.data tbody tr:last-child td { border-bottom: 0; }
.data.clickable tbody tr { cursor: pointer; transition: background .12s; }
.data.clickable tbody tr:hover { background: var(--surface-2); }
.data tr.inactive td { opacity: .5; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Service timer pill (order -> served): green, orange last minute, red when late */
.timer {
  display: inline-flex; align-items: center; gap: .3rem;
  height: 26px; padding: 0 .6rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  border: 1px solid transparent;
}
.timer .i { width: 14px; height: 14px; }
.timer.ok { background: var(--available-bg); color: var(--available); border-color: #c9ecd8; }
.timer.warn { background: #fff1e0; color: #c2410c; border-color: #fdd2a6; }
.timer.late { background: var(--danger-bg); color: var(--danger); border-color: #fbc9c9; animation: late-pulse 1.6s ease-in-out infinite; }
.timer.done { background: var(--surface-3); color: var(--muted); }
.timer.done.late { background: var(--danger-bg); color: #b91c1c; border-color: transparent; animation: none; }
@keyframes late-pulse { 50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); } }

/* Pagination */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border);
}
.card .pager { margin-top: .75rem; }
.pager-info { color: var(--muted); font-size: .82rem; }
.pager-info strong { color: var(--text-2); font-weight: 600; }
.pager-nav { display: flex; align-items: center; gap: 4px; }
.pager-btn {
  min-width: 36px; height: 36px; padding: 0 .6rem;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text-2); font-size: .84rem; font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background .15s, border-color .15s, color .15s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-2); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-btn .i { width: 17px; height: 17px; }
.pager-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-gap { min-width: 20px; text-align: center; color: var(--faint); }
.pager-compact { display: none; min-width: 64px; text-align: center; font-size: .84rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .pager { justify-content: center; }
  .pager-info { width: 100%; text-align: center; }
  .pager-btn.num, .pager-gap { display: none; }
  .pager-compact { display: inline-block; }
  .pager-btn { min-width: 44px; height: 42px; }
}

/* Payment method picker */
.methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 420px) { .methods { grid-template-columns: 1fr 1fr; } }
.method {
  display: grid; justify-items: center; gap: .3rem;
  min-height: 70px; padding: .6rem .4rem;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface);
  font-weight: 500; font-size: .84rem; color: var(--text-2);
  transition: border-color .15s, background .15s, color .15s;
}
.method .i { width: 22px; height: 22px; color: var(--muted); }
.method:hover { border-color: var(--border-strong); }
.method.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); box-shadow: 0 0 0 3px var(--primary-ring); }
.method.active .i { color: var(--primary); }

/* Callouts */
.warn {
  display: flex; gap: .6rem; align-items: flex-start;
  background: #fff8ed; color: #9a3412; border: 1px solid #fed7aa;
  border-radius: 12px; padding: .75rem .9rem; margin: .75rem 0; font-weight: 500; font-size: .88rem;
}
.warn .i { margin-top: .1em; }
.success-note {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--available-bg); color: var(--available); border-radius: 12px;
  padding: .7rem .9rem; margin: 0 0 1rem; font-weight: 600; font-size: .9rem; text-align: center;
}

/* =====================================================================
   Pop-ups: modal sheets, confirm dialog, toasts
   ===================================================================== */
.sheet-backdrop, .modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
  padding: .75rem; padding-bottom: calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(8, 13, 26, .52); backdrop-filter: blur(3px);
  animation: fade .18s ease;
}
.sheet, .modal {
  width: 100%; max-width: 640px; max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow-lg);
  animation: rise .26s var(--ease);
}
.sheet.wide { max-width: 760px; }
@media (min-width: 640px) {
  .sheet-backdrop, .modal-backdrop { align-items: center; padding: 1.5rem; }
  .sheet, .modal { padding: 1.5rem 1.6rem; border-radius: 22px; }
}
.sheet > .view-head, .modal > .view-head {
  position: sticky; top: -1.25rem; z-index: 2;
  margin: -1.25rem -1.25rem 1rem; padding: 1.1rem 1.25rem .9rem;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) {
  .sheet > .view-head, .modal > .view-head { top: -1.5rem; margin: -1.5rem -1.6rem 1.1rem; padding: 1.2rem 1.6rem 1rem; }
}
.sheet > .view-head h1, .modal > .view-head h1 { font-size: 1.08rem; }
.form-actions, .dialog-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .5rem; }
.form-actions .btn, .dialog-actions .btn { min-width: 110px; }
@media (max-width: 480px) { .form-actions .btn, .dialog-actions .btn { flex: 1; } }

/* Confirm dialog */
.confirm { max-width: 460px; text-align: center; padding: 1.75rem 1.5rem 1.4rem; }
.confirm-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 18px;
  display: grid; place-items: center; background: var(--primary-50); color: var(--primary);
}
.confirm-icon .i { width: 26px; height: 26px; }
.confirm.danger .confirm-icon { background: var(--danger-bg); color: var(--danger); }
.confirm.warning .confirm-icon { background: var(--occupied-bg); color: var(--occupied); }
.confirm h2 { margin: 0 0 .4rem; font-size: 1.12rem; }
.confirm p { margin: 0 0 1.4rem; color: var(--muted); font-size: .9rem; }
.confirm .dialog-actions { justify-content: stretch; }
.confirm .dialog-actions .btn { flex: 1; }

/* Toasts */
#toasts {
  position: fixed; z-index: 120; display: grid; gap: .6rem;
  top: calc(var(--header-h) + .6rem + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(calc(100vw - 1.5rem), 400px); pointer-events: none;
}
@media (min-width: 768px) { #toasts { left: auto; right: 1.5rem; transform: none; } }
.toast {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .8rem .8rem .8rem .9rem; border-radius: 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: .88rem; font-weight: 500;
  animation: toast-in .3s var(--ease);
  position: relative; overflow: hidden;
}
.toast.leaving { animation: toast-out .22s ease forwards; }
.toast-icon { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.toast-icon .i { width: 17px; height: 17px; }
.toast-text { flex: 1; min-width: 0; padding-top: .28rem; line-height: 1.4; }
.toast-close { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--faint); display: grid; place-items: center; flex: none; }
.toast-close:hover { background: var(--surface-3); color: var(--text); }
.toast-close .i { width: 15px; height: 15px; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .18; transform-origin: left; animation: toast-timer var(--life, 3.2s) linear forwards; }
.toast.success .toast-icon { background: var(--available-bg); color: var(--available); }
.toast.success::after { color: var(--available); opacity: .35; }
.toast.error .toast-icon { background: var(--danger-bg); color: var(--danger); }
.toast.error::after { color: var(--danger); opacity: .35; }
.toast.ready .toast-icon { background: var(--ready-bg); color: var(--ready); }
.toast.ready::after { color: var(--ready); opacity: .35; }

/* ----- Change password dialog ----- */
.pw-card { max-width: 480px; }
.pw-card .hint { margin-top: 0; }

/* ----- Animations ----- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-timer { to { transform: scaleX(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(21, 146, 90, .45); } 70% { box-shadow: 0 0 0 7px rgba(21, 146, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(21, 146, 90, 0); } }
@keyframes flash { 50% { box-shadow: 0 0 0 5px rgba(31, 111, 235, .35); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Sign-in page
   ===================================================================== */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; background: var(--surface); }
@media (min-width: 1024px) { .auth { grid-template-columns: minmax(420px, 1.05fr) 1fr; } }

.auth-aside {
  position: relative; overflow: hidden; display: none;
  padding: 3rem clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(900px 500px at -10% -10%, rgba(59, 130, 246, .35), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(124, 58, 237, .25), transparent 60%),
    linear-gradient(160deg, #0f1b33 0%, #0b1324 60%);
  color: #cbd5e1;
}
@media (min-width: 1024px) { .auth-aside { display: flex; flex-direction: column; } }
.auth-aside::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.auth-brand .sb-logo { width: 46px; height: 46px; border-radius: 14px; }
.auth-brand strong { font-size: 1.1rem; display: block; line-height: 1.2; }
.auth-brand small { color: #94a3b8; font-size: .8rem; }
.auth-hero { margin: auto 0; max-width: 470px; }
.auth-hero h2 { color: #fff; font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 1rem; }
.auth-hero h2 span { display: block; background: linear-gradient(90deg, #7fb0ff, #b79cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: #94a3b8; margin: 0 0 2rem; font-size: .98rem; }
.auth-points { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.auth-points li { display: flex; align-items: center; gap: .8rem; color: #dbe4f0; font-size: .9rem; }
.auth-points .pt { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #9cc2ff; flex: none; }
.auth-points .pt .i { width: 18px; height: 18px; }
.auth-aside .credit { padding: 0; text-align: left; color: #64748b; }
.auth-aside .credit a { color: #94a3b8; }

.auth-main {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 1.5rem var(--gutter) 0;
  background: radial-gradient(700px 360px at 50% -12%, rgba(31, 111, 235, .12), transparent 70%), var(--surface);
}
@media (min-width: 1024px) { .auth-main { background: var(--surface); } }
.auth-form-wrap { flex: 1; display: grid; place-items: center; padding: 1.5rem 0; }
.auth-form { width: min(100%, 400px); }
.auth-mobile-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 2.25rem; }
.auth-mobile-brand strong { display: block; line-height: 1.2; }
.auth-mobile-brand small { color: var(--muted); font-size: .8rem; }
@media (min-width: 1024px) { .auth-mobile-brand { display: none; } }
.auth-form h1 { font-size: 1.65rem; letter-spacing: -.02em; margin-bottom: .35rem; }
.auth-form .lead { color: var(--muted); margin: 0 0 1.75rem; font-size: .92rem; }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; pointer-events: none; }
.input-icon input { padding-left: 2.7rem; }
.input-icon .reveal { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--faint); display: grid; place-items: center; }
.input-icon .reveal:hover { color: var(--text-2); background: var(--surface-3); }
.input-icon .reveal .i { width: 18px; height: 18px; }
.input-icon.has-reveal input { padding-right: 3rem; }
.auth-foot-note { display: flex; align-items: center; gap: .5rem; justify-content: center; color: var(--faint); font-size: .8rem; margin-top: 1.5rem; }
.auth-foot-note .i { width: 15px; height: 15px; }
.auth-main > .credit { padding-left: 0; padding-right: 0; }
@media (min-width: 1024px) { .auth-main > .credit { display: none; } }

/* =====================================================================
   Launch splash screen
   ===================================================================== */
.splash {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(700px 420px at 15% 0%, rgba(59, 130, 246, .32), transparent 60%),
    radial-gradient(600px 420px at 100% 100%, rgba(124, 58, 237, .22), transparent 60%),
    linear-gradient(160deg, #0f1b33 0%, #0b1324 65%);
  color: #fff; text-align: center;
  transition: opacity .45s ease, visibility .45s;
}
.no-splash .splash { display: none; }
.splash.hide { opacity: 0; visibility: hidden; }
.splash-inner { display: grid; justify-items: center; }
.splash-logo {
  width: 84px; height: 84px; border-radius: 26px; margin-bottom: 1.4rem;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #3b82f6, var(--primary-700));
  box-shadow: 0 18px 44px rgba(31, 111, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  animation: splash-pop .7s var(--ease) both;
}
.splash-logo .i { width: 42px; height: 42px; }
.splash-name {
  font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  background: linear-gradient(90deg, #fff 30%, #b8cffc); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: splash-up .6s .15s var(--ease) both;
}
.splash-client { margin-top: .45rem; color: #9fb0cc; font-size: .95rem; font-weight: 500; letter-spacing: .02em; animation: splash-up .6s .25s var(--ease) both; }
.splash-bar { width: 140px; height: 3px; margin-top: 2rem; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; animation: splash-up .6s .35s var(--ease) both; }
.splash-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b9bff, #a78bfa); animation: splash-load 1.1s ease-in-out infinite; }
.splash-credit { position: absolute; left: 0; right: 0; bottom: calc(1.5rem + env(safe-area-inset-bottom)); color: #64748b; font-size: .76rem; letter-spacing: .03em; }
@keyframes splash-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes splash-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes splash-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Add items to a bill (waiter + cashier) */
.ba-list { max-height: min(52vh, 460px); overflow-y: auto; padding: 2px; margin: 0 -2px; }
.ba-foot {
  position: sticky; bottom: -1.25rem; margin: 1rem -1.25rem -1.25rem; padding: .9rem 1.25rem calc(.9rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 1rem; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .ba-foot { bottom: -1.5rem; margin: 1rem -1.6rem -1.5rem; padding: 1rem 1.6rem; } }
.ba-sum { flex: 1; display: grid; line-height: 1.3; }
.ba-sum small { color: var(--muted); font-size: .76rem; }
.ba-foot .btn { min-width: 140px; }
/* Make it now / Already served: two big choices, none picked at first */
.ba-mode { border: 0; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ba-mode legend { grid-column: 1 / -1; padding: 0; margin-bottom: .5rem; font-weight: 600; font-size: .9rem; }
.ba-mode-opt { position: relative; display: block; cursor: pointer; }
.ba-mode-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ba-mode-opt span { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; height: 100%; padding: .7rem .85rem;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color 140ms, background-color 140ms; }
.ba-mode-opt .i { grid-row: span 2; width: 22px; height: 22px; color: var(--muted); }
.ba-mode-opt small { color: var(--muted); font-size: .76rem; line-height: 1.3; }
.ba-mode-opt input:checked + span { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--primary-ring); }
.ba-mode-opt input:checked + span b { color: var(--primary-700); }
.ba-mode-opt input:checked + span .i { color: var(--primary); }
.ba-mode-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 420px) { .ba-mode { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ba-mode-opt span { transition: none; } }

/* Refresh button (installed app only) */
#refreshAppBtn.spinning .i { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Side menu: "Keep screen on" switch (kitchen screen, waiter app) */
.nav-item.keep-awake { cursor: pointer; }
.nav-item.keep-awake .switch { flex: none; }
.nav-item.keep-awake:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* Sound is on but waits for one tap after a reload (browser rule) */
.sound-btn.waiting { background: #fff7ed; border-color: #fed7aa; color: #9a3412; animation: sound-wait 1.6s ease-in-out infinite; }
@keyframes sound-wait { 50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .25); } }
@media (prefers-reduced-motion: reduce) { .sound-btn.waiting { animation: none; } }

/* "DineLedger has been updated" (common.js showUpdateBanner): bottom centre, above everything, until refreshed or put off. */
.update-banner {
  position: fixed; z-index: 1000; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: .7rem; width: min(560px, calc(100vw - 1.5rem));
  padding: .6rem .6rem .6rem 1rem; border-radius: 14px; background: #0f172a; color: #e2e8f0; box-shadow: var(--shadow-lg); font-size: .88rem;
}
.update-banner > .i { flex: none; color: #9cc2ff; }
.update-banner > span { flex: 1; min-width: 0; }
.update-banner strong { color: #fff; }
.update-banner .btn { flex: none; }
.update-banner .icon-btn { flex: none; background: transparent; border-color: rgba(255, 255, 255, .18); color: #cbd5e1; }
.update-banner .icon-btn:hover { background: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: no-preference) {
  .update-banner { animation: update-in 220ms var(--ease); }
  @keyframes update-in { from { opacity: 0; transform: translate(-50%, 10px); } }
}
