:root {
  --bg: #f1f3f4;
  --surface: #ffffff;
  --ink: #17212b;
  --ink-2: #44505c;
  --muted: #5b6773;
  --line: #dde2e7;
  --line-2: #eceff2;
  --primary: #0e5a52;
  --primary-d: #0a433d;
  --primary-t: #e3f0ee;
  --saffron: #f2b544;
  --danger: #b3261e;
  --danger-t: #fbeceb;
  --warn: #8f5208;
  --warn-t: #fcf1df;
  --ok: #176b3c;
  --ok-t: #e2f3e9;
  --s-free: #7d8994;
  --line-strong: #7d8994;
  --s-seated: #2f6fb5;
  --s-cooking: #c77a10;
  --s-ready: #1b8f4e;
  --s-dining: #5e6f80;
  --s-bill: #8a3fb0;
  --side: #10231f;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Nirmala UI", "Noto Sans Bengali", "Helvetica Neue", Arial, sans-serif;
  --r-s: 6px;
  --r-m: 8px;
  --r-l: 12px;
  --tap: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font: 15px/1.4 var(--font);
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.side :focus-visible, .kds :focus-visible, .login-brand :focus-visible { outline-color: var(--saffron); }
.kds .ticket :focus-visible { outline-color: var(--primary); }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 2147483600; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-m); font-weight: 700; }
.skip-link:focus { top: 8px; }
.focus-h1 { display: none; }
.req { font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.field-err { color: var(--danger); font-size: 13px; font-weight: 700; margin: -6px 0 12px; grid-column: 1 / -1; }
[aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 1px var(--danger); }
.linkbtn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 4px; border: 0; background: none; color: var(--primary); text-decoration: underline; font: inherit; font-weight: 600; cursor: pointer; }
:lang(bn) { letter-spacing: 0; text-transform: none; line-height: 1.55; }
:lang(bn) :is(.cgroup h3, .dt th, .strip span, .kcol h2, .ticket .tl, .plist .ph, .brandmark, .tname, .r-title, .tk-no, .late) { letter-spacing: 0; text-transform: none; }
.tname, .icard b, .cl-t b, .ticket li b, .receipt td, .receipt dl div, .receipt h3, .receipt p { overflow-wrap: anywhere; }
.tile-top > .tname { min-width: 0; }
:root :lang(bn) { line-height: 1.55; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.ic { flex: none; }
.mob-only { display: none; }

#app { height: 100dvh; }

.btn {
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-m);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: #f6f8f9; border-color: #c9d0d6; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.btn.big { min-height: 52px; width: 100%; font-size: 16px; }
.btn.xl { min-height: 56px; width: 100%; font-size: 17px; }
.btn.grow { flex: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { width: var(--tap); height: var(--tap); display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-m); color: var(--ink-2); }
.icon-btn:hover { background: var(--line-2); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  min-height: var(--tap);
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-m);
  background: #fff;
  width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--primary); outline: 3px solid var(--primary); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.span2 { grid-column: span 2; }
.money-in { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #fff; }
.money-in b { padding-left: 14px; color: var(--muted); font-size: 18px; }
.money-in input { border: 0 !important; outline: 0 !important; min-height: 52px; font-size: 22px; font-weight: 600; padding: 0 12px; }
.money-in:focus-within, .search:focus-within { border-color: var(--primary); outline: 3px solid var(--primary); outline-offset: 1px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }

.switch { position: relative; display: inline-block; width: 48px; height: 28px; }
.switch::before { content: ""; position: absolute; inset: -10px -6px; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line-strong); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.col { flex-direction: column; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip.big { min-height: 48px; border-radius: var(--r-m); justify-content: flex-start; font-size: 15px; padding: 0 16px; }
.chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.warn { color: var(--danger); }
.chip.ok { color: var(--ok); border-color: #b8dec8; background: var(--ok-t); }

.seg { display: inline-flex; background: #e4e8eb; border-radius: var(--r-m); padding: 3px; gap: 2px; max-width: 100%; }
.seg.scroll-x, .scroll-x { overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: transparent; min-height: 44px; padding: 0 14px; border-radius: 6px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg button.on { background: var(--ink); color: #fff; }

.stepper { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); border-radius: var(--r-m); }
.stepper button:hover { background: var(--line-2); }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
.stepper.big button { width: 56px; height: 56px; }
.stepper.big output { font-size: 32px; min-width: 64px; }

.status { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .01em; background: var(--line-2); color: var(--ink-2); }
.status.s-new, .status.s-draft { background: #e5eef8; color: #1f5a98; }
.status.s-held { background: var(--warn-t); color: #8f5208; }
.status.s-cooking { background: var(--warn-t); color: #8f5208; }
.status.s-ready { background: var(--ok-t); color: #176b3c; }
.status.s-served { background: var(--ok-t); color: #176b3c; }
.status.s-void { background: var(--danger-t); color: var(--danger); }
.status.s-bill { background: #f1e6f7; color: #6d2d8f; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--s-free); flex: none; }
.dot.s-seated { background: var(--s-seated); }
.dot.s-cooking { background: var(--s-cooking); }
.dot.s-ready { background: var(--s-ready); }
.dot.s-dining { background: var(--s-dining); }
.dot.s-bill { background: var(--s-bill); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty p { font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }

.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); height: 100dvh; }
.side { background: var(--side); color: #cfe0dc; display: flex; flex-direction: column; padding: 18px 12px; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: #fff; padding: 0 8px 18px; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-m); font-weight: 600; color: #b5cbc6; position: relative; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--saffron); }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--saffron); color: #2a1d00; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.who { flex: 1; min-width: 0; }
.who b, .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b { color: #fff; font-size: 14px; }
.who span { font-size: 12px; color: #8fb0a8; }
.side-foot .icon-btn { color: #b5cbc6; }
.side-foot .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: 60px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-l { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.top h1 { font-size: 20px; font-weight: 800; }
.top-sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); }
.net { padding: 3px 10px; border-radius: 99px; font-weight: 600; font-size: 12px; }
.net.on { background: var(--ok-t); color: var(--ok); }
.net.off { background: var(--warn-t); color: var(--warn); }
.view { flex: 1; min-height: 0; overflow: auto; }
.tabs { display: none; }

.page { padding: 20px 24px 40px; max-width: 1280px; margin: 0 auto; width: 100%; }
.page.narrow { max-width: 860px; }
.floor { padding: 20px 24px 40px; }
.floor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.floor-actions { display: flex; align-items: center; gap: 12px; }
.sect { font-size: 15px; font-weight: 800; margin: 26px 0 10px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; font-size: 13px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend b { color: var(--ink); }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.tile { text-align: left; padding: 12px 14px; min-height: 108px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--s-free); border-radius: var(--r-l); display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s, transform .08s; }
.tile:hover { box-shadow: 0 4px 14px rgba(20,35,45,.1); }
.tile:active { transform: scale(.985); }
.tile.s-seated { border-top-color: var(--s-seated); }
.tile.s-cooking { border-top-color: var(--s-cooking); }
.tile.s-ready { border-top-color: var(--s-ready); background: #f4fbf7; box-shadow: 0 0 0 2px rgba(27,143,78,.25); }
.tile.s-dining { border-top-color: var(--s-dining); }
.tile.s-bill { border-top-color: var(--s-bill); background: #faf5fc; }
.tile-top { display: flex; justify-content: space-between; align-items: center; }
.tname { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.seats { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tstate { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tmeta { margin-top: auto; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.tmeta span:last-child { font-weight: 500; color: var(--muted); }
.tmeta.muted { font-weight: 500; color: var(--muted); }
.tile.s-ready .tstate { color: #16773f; }
.tile.s-ready { animation: nudge 2.4s ease-in-out 3; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 2px rgba(27,143,78,.25); } 50% { box-shadow: 0 0 0 5px rgba(27,143,78,.12); } }
.tk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tk { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); text-align: left; }
.tk span { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; }
.tk small { grid-column: 1 / -1; color: var(--muted); }

.order { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; }
.menu-pane { display: flex; flex-direction: column; min-height: 0; padding: 14px 20px 0; min-width: 0; }
.order-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.oh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oh-t b { font-size: 17px; }
.oh-t span { font-size: 13px; color: var(--muted); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #fff; color: var(--muted); margin-bottom: 10px; }
.search input { flex: 1; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--ink); min-width: 0; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; flex: none; }
.cats button { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; color: var(--ink-2); }
.cats button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.igrid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; align-content: start; padding-bottom: 24px; }
.icard { text-align: left; padding: 12px 14px; min-height: 88px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); display: flex; flex-direction: column; gap: 6px; position: relative; transition: border-color .1s, box-shadow .1s; }
.icard:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(14,90,82,.12); }
.icard:active { background: var(--primary-t); }
.icard b { font-size: 15px; line-height: 1.25; }
.icard .ip { margin-top: auto; font-weight: 700; color: var(--primary); }
.icard.off { background: #eceff1; border-style: dashed; border-color: var(--line-strong); }
.icard.off .ip { color: var(--ink-2); }
.icard.off:hover { border-color: var(--line-strong); box-shadow: none; }
.tag { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; }
.tag.low { background: var(--warn-t); color: var(--warn); }
.tag.out { background: var(--danger-t); color: var(--danger); }

.cart-pane { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.cart-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 17px; flex: 1; }
.cart-body { flex: 1; overflow: auto; padding: 4px 16px 12px; }
.cgroup h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.cline { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.cl-main { display: flex; align-items: flex-start; gap: 10px; }
.cl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-t span { font-size: 13px; color: var(--muted); }
.cl-t em { font-size: 13px; font-style: normal; color: var(--warn); font-weight: 600; }
.cl-p { font-weight: 700; white-space: nowrap; padding-top: 8px; }
.qty { min-width: 30px; padding-top: 8px; font-weight: 700; color: var(--ink-2); }
.cl-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-left: 0; align-items: center; }
.cline.st-void .cl-t b { text-decoration: line-through; }
.cart-foot { border-top: 1px solid var(--line); padding: 12px 16px calc(14px + var(--safe-b)); background: #fafbfb; }
.mini > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 2px 0; }
.mini .tot { font-size: 18px; font-weight: 800; color: var(--ink); padding-top: 6px; margin-top: 4px; border-top: 1px dashed var(--line-strong); }
.foot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.foot-btns .primary { grid-column: 1 / -1; min-height: 52px; font-size: 16px; order: 3; }
.foot-btns #bill, .foot-btns #reqbill { grid-column: 1 / -1; }
.foot-btns #fire ~ #bill, .foot-btns #fire ~ #reqbill { grid-column: auto; }
.cartbar { display: none; }

.kds { background: #161d23; min-height: 100%; padding: 16px 20px 32px; color: #e8edf1; }
.kds .floor-bar .muted { color: #8fa0ae; }
.kds .seg { background: #263038; }
.kds .seg button { color: #aab8c3; }
.kds .seg button.on { background: var(--saffron); color: #2a1d00; }
.kcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #aab8c3; padding: 4px 2px 12px; }
.kcol h2 b { background: #2c3843; color: #fff; border-radius: 99px; padding: 1px 9px; font-size: 13px; }
.k-new h2 { box-shadow: inset 0 -3px 0 #4b8fd6; }
.k-cooking h2 { box-shadow: inset 0 -3px 0 #e0962d; }
.k-ready h2 { box-shadow: inset 0 -3px 0 #3bb273; }
.klist { display: flex; flex-direction: column; gap: 12px; }
.kempty { color: #93a3b1; text-align: center; padding: 28px 0; }
.ticket { background: #fff; color: var(--ink); border-radius: var(--r-l); overflow: hidden; border-top: 6px solid #4b8fd6; }
.k-cooking .ticket { border-top-color: #e0962d; }
.k-ready .ticket { border-top-color: #3bb273; }
.ticket[data-level="1"] { border-top-color: #e0962d; border-top-style: dashed; box-shadow: 0 0 0 2px #e0962d; }
.ticket[data-level="2"] { border-top-color: #d6382d; border-top-style: double; border-top-width: 8px; box-shadow: 0 0 0 3px #d6382d; }
.ticket .late { margin: 0 14px 4px; display: inline-block; font-weight: 800; font-size: 14px; padding: 2px 10px; border-radius: 4px; background: var(--warn-t); color: #8f5208; border: 2px solid #8f5208; }
.ticket[data-level="2"] .late { background: var(--danger-t); color: var(--danger); border-color: var(--danger); }
.ticket.fresh { animation: flash 1s ease-out 3; }
@keyframes flash { from { box-shadow: 0 0 0 6px var(--saffron); } to { box-shadow: 0 0 0 0 transparent; } }
.ticket header { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 6px; }
.ticket header h3 { font-size: 28px; line-height: 1.1; }
.tk-no { color: var(--muted); font-size: 13px; flex: 1; }
.timer { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket[data-level="1"] .timer { color: var(--warn); }
.ticket[data-level="2"] .timer { color: var(--danger); }
.ticket ul { padding: 4px 14px 10px; }
.ticket li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 22px; line-height: 1.3; }
.ticket li:last-child { border: 0; }
.ticket .q { font-weight: 800; min-width: 34px; font-size: 26px; }
.ticket li div { display: flex; flex-direction: column; gap: 2px; }
.km { font-size: 17px; color: var(--ink-2); }
.kn { font-size: 20px; font-weight: 800; color: #b3261e; display: inline-flex; align-items: center; gap: 5px; }
.ticket li.void b { text-decoration: line-through; color: var(--muted); }
.ticket footer { padding: 0 14px 14px; }

.billpage { display: grid; grid-template-columns: minmax(0, 1fr) 400px; height: 100%; }
.bill-l { padding: 14px 20px 24px; overflow: auto; }
.bill-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; max-width: 640px; }
.mode { display: flex; background: #e4e8eb; border-radius: var(--r-m); padding: 3px; gap: 2px; margin-bottom: 12px; }
.mode button { flex: 1; border: 0; background: transparent; min-height: 44px; border-radius: 6px; font-weight: 600; color: var(--ink-2); }
.mode button.on { background: var(--ink); color: #fff; }
.eq { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; }
.eq b { margin-left: auto; }
.bl li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.bl .q { color: var(--muted); min-width: 28px; }
.bl .n { font-weight: 600; }
.bl .n small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.bl .dots { flex: 1; border-bottom: 1px dotted #b8c1c9; transform: translateY(-4px); min-width: 12px; }
.bl .p { font-weight: 600; }
.bl li.paid .n, .bl li.paid .q, .bl li.paid .p { color: var(--ink-2); }
.bl li .rowlabel { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: var(--tap); padding: 6px 0; cursor: pointer; }
.bl li .rowlabel input { width: 24px; height: 24px; margin: 0; align-self: center; accent-color: var(--primary); flex: none; }
.bl li:has(.rowlabel) { padding: 0; }
.sums { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.sums > div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); }
.sums small { color: var(--muted); }
.sums .grand { font-size: 22px; font-weight: 800; color: var(--ink); border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px; }
.sums .due { font-weight: 800; color: var(--danger); }
.sums .disc { color: var(--ok); }
.bill-r { background: #fff; border-left: 1px solid var(--line); padding: 18px 20px 24px; overflow: auto; }
.bill-r h2 { font-size: 17px; margin-bottom: 12px; }
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.methods button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-m); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.methods button.on { border: 2px solid var(--primary); background: var(--primary-t); color: var(--primary-d); }
.buyer { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.buyer h2 { font-size: 14px; margin-bottom: 8px; }
.change { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: var(--line-2); margin: 14px 0; color: var(--muted); }
.change b { font-size: 22px; }
.change.on { background: var(--ok-t); color: var(--ok); }
.bill-r .chips { margin-top: -4px; }
.plist { margin-top: 20px; border-top: 1px solid var(--line); }
.plist li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.plist .ph { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: auto; }
.dt { width: 100%; border-collapse: collapse; }
.dt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fafbfb; white-space: nowrap; }
.dt td { padding: 10px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.dt tr:last-child td { border-bottom: 0; }
.dt td small { display: block; color: var(--muted); font-size: 12px; }
.dt .num { text-align: right; }
.dt .act { text-align: right; white-space: nowrap; }
.dt .act .btn + .btn { margin-left: 6px; }
.bar { width: 120px; height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-bottom: 4px; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.bar.low i { background: #b07a12; }
.bar.neg { background: var(--danger-t); }
.bar.crit i { background: var(--danger); }
.bar-t { font-size: 13px; font-weight: 600; }
.callout { display: flex; gap: 12px; padding: 12px 16px; border-radius: var(--r-m); margin-bottom: 14px; }
.callout.warn { background: var(--warn-t); color: var(--warn); }
.callout.bad { background: var(--danger-t); color: var(--danger); }
.callout .btn { align-self: flex-start; margin-top: 8px; }
.callout div { display: flex; flex-direction: column; }
.callout span { color: var(--ink-2); font-size: 14px; }

.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 14px; }
.strip > div { padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.strip > div:last-child { border: 0; }
.strip span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.strip b { font-size: 24px; letter-spacing: -.02em; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; margin-bottom: 14px; }
.rgrid .panel { margin: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { font-size: 15px; margin-bottom: 12px; }
.panel-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-h h2 { margin: 0; }
.hchart { width: 100%; height: auto; }
.hchart .grid { stroke: var(--line); stroke-width: 1; }
.hchart .axis { font-size: 12px; fill: var(--ink-2); }
.hchart { min-width: 620px; }
.chart-scroll { overflow-x: auto; }
.bar-r { fill: var(--primary); }
.bar-r:hover { fill: var(--primary-d); }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.pm li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pm i { width: 10px; height: 10px; border-radius: 2px; }
.pm span { flex: 1; }
.pm small { width: 38px; text-align: right; color: var(--muted); }
.tops li { padding: 6px 0; }
.tops li > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.tb { height: 5px; background: var(--line-2); border-radius: 99px; margin: 5px 0 2px; }
.tb i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.tops small { color: var(--muted); }
.alog li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.alog li span:nth-child(2) { flex: 1; }
.alog small { color: var(--muted); }

.datenav { display: flex; align-items: center; gap: 4px; }
.datenav input { min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 0 10px; background: #fff; }
.rlist { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.res { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); border-left: 4px solid var(--s-seated); }
.res.seated { border-left-color: var(--ok); }
.res.noshow, .res.cancelled { border-left-color: var(--line-strong); }
.res-t { font-size: 20px; font-weight: 800; }
.res-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-m span { color: var(--muted); font-size: 14px; }
.res-m em { font-style: normal; color: var(--warn); font-size: 13px; font-weight: 600; }
.res-a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.slist { display: flex; flex-direction: column; gap: 8px; }
.staff { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--side); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.smeta { flex: 1; display: flex; flex-direction: column; }
.smeta span { color: var(--muted); font-size: 13px; }
.roles > div { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.roles dt { width: 100px; font-weight: 700; }
.roles dd { color: var(--ink-2); }
.form h2 { margin-top: 6px; }
.form h2:not(:first-child) { margin-top: 20px; }
.form-f { margin-top: 16px; }
.tsec { padding: 10px 0; border-top: 1px solid var(--line-2); }
.tsec b { display: block; margin-bottom: 8px; font-size: 14px; }
.sub { margin: 18px 0 8px; font-size: 14px; }
.sub small { font-weight: 400; color: var(--muted); }
.mrow { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 12px 4px; margin-bottom: 10px; }
.mrow-f { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding-bottom: 8px; }
.rrow { display: grid; grid-template-columns: 1fr 100px 44px; gap: 8px; margin-bottom: 8px; }
.rrow select, .rrow input { min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 0 10px; background: #fff; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.mini-grid .btn { flex-direction: column; gap: 0; min-height: 60px; }
.mini-grid small { font-weight: 400; color: var(--muted); }
.mini-grid .primary small { color: #cfe8e4; }

dialog.sheet { border: 0; padding: 0; border-radius: 16px; width: min(480px, calc(100vw - 24px)); max-height: min(88dvh, 760px); background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(10,20,30,.35); overflow: hidden; flex-direction: column; animation: pop .18s ease-out; }
dialog.sheet[open] { display: flex; }
dialog.sheet.wide { width: min(680px, calc(100vw - 24px)); }
dialog.sheet::backdrop { background: rgba(15,25,32,.5); animation: fade .18s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--line); flex: none; }
.sheet-h h3 { font-size: 17px; }
.sheet-b { padding: 16px 20px; overflow: auto; flex: 1; min-height: 0; }
.sheet-b.center { text-align: center; }
.sheet-b.center .stepper { margin: 16px 0 6px; }
.sheet-b.scroll { background: #eef0f2; }
.sheet-f { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); flex: none; }
.sheet-f.split-f { justify-content: space-between; }
.mgroup { border: 0; padding: 0; margin: 0 0 18px; }
.mgroup legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.mgroup legend small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.mopts { display: flex; flex-wrap: wrap; gap: 8px; }
.mopt { min-height: 46px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #fff; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.mopt small { color: var(--muted); font-weight: 500; }
.mopt.on { border: 2px solid var(--primary); background: var(--primary-t); color: var(--primary-d); padding: 0 17px; }
.more-list a { display: flex; align-items: center; gap: 14px; min-height: 54px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.more-list a span { flex: 1; }

.receipt { background: #fff; width: 300px; max-width: 100%; margin: 0 auto; padding: 18px 16px; font: 12.5px/1.45 "SF Mono", ui-monospace, Menlo, Consolas, "Noto Sans Bengali", "Nirmala UI", "Kohinoor Bangla", "Bangla Sangam MN", "Kalpurush", monospace; color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.r-head { text-align: center; display: flex; flex-direction: column; margin-bottom: 8px; }
.r-head b { font-size: 15px; }
.r-mush { text-align: center; font-weight: 800; font-size: 14px; letter-spacing: .08em; margin-bottom: 2px; }
.r-sign { margin-top: 26px; border-top: 1px solid #111; padding-top: 4px; font-size: 11px; text-align: center; }
.receipt th:nth-child(3), .receipt td:nth-child(3) { text-align: right; width: 44px; }
.r-title { text-align: center; font-weight: 700; letter-spacing: .14em; border-top: 1px dashed #111; border-bottom: 1px dashed #111; padding: 4px 0; margin-bottom: 8px; }
.r-meta { display: flex; flex-direction: column; margin-bottom: 8px; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt th { text-align: left; border-bottom: 1px solid #111; padding: 2px 0; }
.receipt th:last-child, .receipt td:last-child { text-align: right; }
.receipt th:nth-child(2), .receipt td:nth-child(2) { text-align: center; width: 28px; }
.receipt td { padding: 3px 0; vertical-align: top; }
.receipt td small { display: block; font-size: 11px; color: #555; }
.receipt dl { border-top: 1px dashed #111; margin-top: 6px; padding-top: 6px; }
.receipt dl div { display: flex; justify-content: space-between; }
.receipt dl .g { font-weight: 800; font-size: 14px; border-top: 1px solid #111; margin-top: 4px; padding-top: 4px; }
.r-pay { border-top: 1px dashed #111; margin-top: 8px; padding-top: 6px; }
.r-pay div { display: flex; justify-content: space-between; }
.r-foot { text-align: center; margin-top: 12px; font-size: 11px; }

#overlays { position: fixed; z-index: 2147483000; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px 24px; pointer-events: none; }
#overlays > * { pointer-events: auto; }
#toasts { display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: pop .2s; transition: opacity .35s; max-width: calc(100vw - 32px); }
.toast.ok { background: var(--primary-d); }
.toast.warn { background: #7a4607; }
.toast.out { opacity: 0; }
.idle-warn, .update-bar { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-width: min(560px, calc(100vw - 32px)); }
.idle-warn { border: 2px solid var(--saffron); }
.update-bar .btn, .idle-warn .btn { flex: none; }
.save-banner { position: fixed; top: 0; left: 0; right: 0; background: var(--danger); color: #fff; padding: 12px 16px; font-weight: 700; text-align: center; }

.login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-brand { background: var(--side); color: #cfe0dc; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.login-brand .brandmark { padding: 0 0 36px; font-size: 24px; }
.login-brand h1 { font-size: 38px; color: #fff; letter-spacing: -.02em; }
.login-brand > p { font-size: 17px; color: #8fb0a8; margin-bottom: 28px; }
.login-points li { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: #b5cbc6; }
.login-points .ic { color: var(--saffron); }
.login-card { padding: 40px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); }
.login-card h2 { font-size: 22px; margin-bottom: 20px; }
.pin-dots { display: flex; gap: 14px; margin-bottom: 8px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); }
.pin-dots i.on { background: var(--primary); border-color: var(--primary); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pin-err { color: var(--danger); min-height: 22px; font-size: 14px; margin: 8px 0; }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; margin-top: 12px; }
.pad button { height: 64px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-l); font-size: 24px; font-weight: 600; display: grid; place-items: center; }
.pad button:hover { background: var(--line-2); }
.pad button:active { background: var(--primary-t); }
.pad button.soft { font-size: 14px; color: var(--muted); background: #f6f8f9; }
.demo { margin-top: 12px; width: 100%; max-width: 280px; font-size: 14px; }
.demo summary { cursor: pointer; color: var(--muted); text-align: center; padding: 12px 8px; min-height: var(--tap); }
.demo-list { display: flex; flex-direction: column; gap: 4px; }
.demo-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--tap); border: 1px solid var(--line-strong); background: #fff; border-radius: var(--r-m); padding: 9px 12px; text-align: left; }
.demo-list span { color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .order, .billpage { grid-template-columns: minmax(0, 1fr) 340px; }
  .strip b { font-size: 20px; }
}

@media (max-width: 860px) {
  .mob-only { display: inline-grid; }
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .side { display: none; }
  .main { grid-row: 1; }
  .top { height: 54px; padding: 0 8px 0 16px; }
  .top-sub, .clock { display: none; }
  .top h1 { font-size: 18px; }
  .tabs { display: flex; grid-row: 2; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  .tabs a, .tabs button { flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); border: 0; background: transparent; position: relative; }
  .tabs .on { color: var(--primary); }
  .tabs .badge { position: absolute; top: 5px; left: 50%; margin-left: 8px; min-width: 18px; height: 18px; font-size: 11px; }
  body[data-route="focus"] .tabs { display: none; }
  body[data-route="focus"] .top { display: none; }
  body[data-route="focus"] .shell { grid-template-rows: minmax(0, 1fr); }
  .page, .floor { padding: 14px 14px 28px; }
  .floor-bar { gap: 10px; }
  .tgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { min-height: 100px; padding: 10px 12px; }
  .order { grid-template-columns: 1fr; position: relative; }
  .menu-pane { padding: 10px 12px 0; }
  .igrid { grid-template-columns: repeat(2, 1fr); padding-bottom: 90px; }
  .cart-pane { position: fixed; inset: 0; z-index: 20; transform: translateX(100%); transition: transform .22s ease; border: 0; }
  .order.cart-open .cart-pane { transform: none; }
  .cartbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 10; min-height: 56px; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; border-radius: var(--r-l); background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 6px 20px rgba(10,60,54,.4); }
  .cartbar span { display: inline-flex; gap: 8px; align-items: center; }
  .billpage { grid-template-columns: 1fr; overflow: auto; display: block; }
  .bill-l { overflow: visible; padding: 10px 12px; }
  .bill-r { border-left: 0; border-top: 1px solid var(--line); overflow: visible; padding-bottom: 40px; }
  .kcols { grid-template-columns: 1fr; }
  .kds { padding: 12px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div { border-bottom: 1px solid var(--line); }
  .strip > div:nth-child(2n) { border-right: 0; }
  .strip > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .rgrid { grid-template-columns: 1fr; }
  .hide-s { display: none; }
  .res { grid-template-columns: 58px 1fr; }
  .res-a { grid-column: 1 / -1; justify-content: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 24px 24px 20px; }
  .login-brand h1 { font-size: 26px; }
  .login-brand .brandmark { padding-bottom: 14px; }
  .login-brand > p { margin-bottom: 10px; }
  .login-points { display: none; }
  .login-card { padding: 20px 16px 28px; justify-content: flex-start; }
  dialog.sheet { margin: auto 0 0 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; max-height: 92dvh; animation: up .22s ease-out; }
  dialog.sheet.wide { width: 100%; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  #overlays { padding-bottom: 90px; }
  body[data-route="focus"] .focus-h1 { display: block; position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

@media print {
  body { background: #fff; }
  #app, #overlays, .skip-link { display: none !important; }
  dialog.sheet { position: static !important; display: block !important; box-shadow: none; width: auto; max-height: none; overflow: visible; animation: none; border-radius: 0; }
  dialog.sheet::backdrop { display: none; }
  .sheet-h, .sheet-f { display: none !important; }
  .sheet-b.scroll { background: #fff; padding: 0; overflow: visible; }
  .receipt { box-shadow: none; width: 72mm; padding: 0; }
  @page { size: 80mm auto; margin: 4mm; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.cartbar { gap: 8px; padding: 0; background: transparent; box-shadow: none; }
.guest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.guest-grid .btn { min-height: 64px; font-size: 24px; }
.sheet-f.stack-f { flex-direction: column; }
.kbar-r { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) {
  .cartbar { display: flex; }
  .cartbar #cartbar { flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; border: 0; border-radius: var(--r-l); background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 6px 20px rgba(10,60,54,.4); }
  .cartbar #cartbar span { display: inline-flex; gap: 8px; align-items: center; }
  .cartbar .send { min-width: 104px; min-height: 56px; border: 0; border-radius: var(--r-l); background: var(--saffron); color: #2a1d00; font-weight: 800; font-size: 16px; box-shadow: 0 6px 20px rgba(80,55,0,.35); }
}
@media (min-width: 861px) { .cartbar { display: none; } }
.ticket .tl { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.guest-grid + .other-n, .other-n { margin-top: 14px; }
.form-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.setup, .recover { height: 100%; overflow: auto; background: var(--bg); display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px 48px; }
.setup-card, .recover-card { width: min(640px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.setup-card h1, .recover-card h1 { font-size: 26px; }
.setup-card h2 { font-size: 15px; margin-top: 18px; }
.recover-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.brandmark.dark { color: var(--ink); padding-bottom: 6px; }
@media (max-width: 860px) {
  .setup-card, .recover-card { padding: 18px; }
}

button.net { border: 0; cursor: pointer; min-height: 28px; font-family: inherit; }
.sync-tick { display: inline-block; width: 12px; height: 12px; margin-left: 8px; border-radius: 50%; vertical-align: -1px; box-sizing: border-box; }
.sync-tick.wait { border: 2px solid var(--muted); background: transparent; }
.sync-tick.ok { border: 2px solid var(--ok); background: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.sync-banner { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: min(560px, calc(100vw - 32px)); }
.sync-banner.bad { background: var(--danger); }
.sync-banner[hidden] { display: none; }
.pair-code { font-size: 44px; font-weight: 800; letter-spacing: .18em; text-align: center; padding: 14px 0; font-variant-numeric: tabular-nums; }
.unsent-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.staff-pick { max-width: 320px; }
.lg-body { display: flex; flex-direction: column; align-items: center; width: 100%; }
.lg-body .btn { margin-top: 8px; }

.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 520px; }
.role-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; min-height: 132px; padding: 16px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-l); cursor: pointer; }
.role-card:hover { border-color: var(--primary); background: var(--primary-t); }
.role-card:active { background: var(--primary-t); }
.role-card:disabled { opacity: .6; cursor: progress; }
.role-card .rc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-m); background: var(--primary-t); color: var(--primary); flex: none; }
.role-card .rc-t { display: flex; flex-direction: column; gap: 4px; }
.role-card b { font-size: 17px; letter-spacing: -.01em; }
.role-card small { font-size: 13px; line-height: 1.35; color: var(--muted); }
.demo-welcome .pin-err { text-align: center; max-width: 520px; }
@media (max-width: 520px) {
  .role-cards { grid-template-columns: 1fr; }
  .role-card { flex-direction: row; align-items: center; min-height: 76px; }
}

.demo-bar { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 0 24px; min-height: 44px; background: var(--saffron); color: #2a1d00; font-size: 14px; }
.demo-bar p { margin: 0; font-weight: 700; flex: 1 1 auto; }
.demo-bar .linkbtn, .demo-bar .demo-get { color: #2a1d00; font-size: 14px; min-height: 44px; }
.demo-bar .demo-get { display: inline-flex; align-items: center; font-weight: 700; text-decoration: underline; }
.demo-bar :focus-visible { outline-color: #2a1d00; }
@media (max-width: 860px) {
  .demo-bar { padding: 0 8px 0 16px; gap: 0 12px; }
  .demo-bar p { flex-basis: 100%; padding-top: 6px; line-height: 1.2; }
  .demo-bar .linkbtn, .demo-bar .demo-get { min-height: 44px; }
}

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts div { display: contents; }
.facts dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.facts dd { margin: 0; }
