/* Dasher styles. Version 2026-11-12b */
/* Layout: one column on phones (menu, then the order as a bottom sheet); from 1020px the order is a full-height column on the right.
   Look: neutral greys, black for selection and actions, thin 1px rings instead of borders, category colour as a small dot and a light tint. */
:root{
  --bg:#F7F7F8; --surface:#FFFFFF; --surface-2:#F1F1F3; --line:#E7E7EA; --line-2:#D6D6DB;
  --ink:#0B0B0D; --ink-2:#3F3F46; --ink-3:#66666E;
  --accent:#0B0B0D; --accent-soft:#F1F1F3; --on-accent:#FFFFFF;
  --primary:#0B0B0D; --on-primary:#FFFFFF;
  --good:#0E6E4F; --good-soft:#E6F4EE; --warn:#8F4F00; --warn-soft:#FBF0E1; --bad:#C23A2E; --bad-soft:#FDECEA;
  --veg:#1B9A55; --nonveg:#B3471D;
  --scrim:rgba(0,0,0,.35); --shadow:0 10px 30px rgba(0,0,0,.12);
  --f-ui:"Inter","Indic","Mukta",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0A0A0B; --surface:#141416; --surface-2:#1D1D20; --line:#26262A; --line-2:#34343A;
  --ink:#F4F4F5; --ink-2:#C4C4CA; --ink-3:#8B8B93;
  --accent:#F4F4F5; --accent-soft:#1D1D20; --on-accent:#0A0A0B;
  --primary:#F4F4F5; --on-primary:#0A0A0B;
  --good:#3FBF8A; --good-soft:#10291F; --warn:#E3A048; --warn-soft:#2E2210; --bad:#F07A6E; --bad-soft:#3A1714;
  --veg:#3FC27A; --nonveg:#E07A4F; --scrim:rgba(0,0,0,.6); --shadow:0 10px 30px rgba(0,0,0,.5);
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0A0A0B; --surface:#141416; --surface-2:#1D1D20; --line:#26262A; --line-2:#34343A;
  --ink:#F4F4F5; --ink-2:#C4C4CA; --ink-3:#8B8B93;
  --accent:#F4F4F5; --accent-soft:#1D1D20; --on-accent:#0A0A0B;
  --primary:#F4F4F5; --on-primary:#0A0A0B;
  --good:#3FBF8A; --good-soft:#10291F; --warn:#E3A048; --warn-soft:#2E2210; --bad:#F07A6E; --bad-soft:#3A1714;
  --veg:#3FC27A; --nonveg:#E07A4F; --scrim:rgba(0,0,0,.6); --shadow:0 10px 30px rgba(0,0,0,.5);
  color-scheme:dark}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{background:var(--bg);color:var(--ink);font:14px/1.35 var(--f-ui);overflow:hidden;-webkit-font-smoothing:antialiased;font-feature-settings:"tnum"}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button[disabled]{cursor:not-allowed}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.num{font-variant-numeric:tabular-nums}
svg.i{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.grow{flex:1;min-width:0}
.ring{box-shadow:0 0 0 1px var(--line)}

.app{height:100%;min-width:0;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr)}
.main{min-height:0;min-width:0;display:flex;flex-direction:column;padding-top:12px;
  padding-left:max(14px,env(safe-area-inset-left,0px));padding-right:max(14px,env(safe-area-inset-right,0px))}

/* Top bar */
.mark{width:34px;height:34px;border-radius:9px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;flex:none;font-weight:700;font-size:15px}
.shop{min-width:0;display:flex;flex-direction:column;flex:1}
.shop b{font-size:14.5px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shop span{font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pill{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 8px;border-radius:8px;color:var(--ink-3);font-size:12px;white-space:nowrap;flex:none}
.pill:hover{background:var(--surface-2);color:var(--ink)}
.pill i{width:6px;height:6px;border-radius:50%;background:var(--good)}
.pill.closed{color:var(--bad)}
.pill.closed i{background:var(--bad)}
.iconbtn{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;color:var(--ink-3);flex:none}
.iconbtn:hover{background:var(--surface-2);color:var(--ink)}
.seg{display:inline-flex;background:var(--surface-2);border-radius:9px;padding:2px;gap:0;flex:none}
.seg button{height:30px;min-width:32px;padding:0 10px;border-radius:7px;color:var(--ink-3);font-weight:500;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(0,0,0,.05)}
.manage{height:34px;padding:0 12px 0 10px;border-radius:9px;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:13px;background:var(--primary);color:var(--on-primary);flex:none}
.manage svg{width:16px;height:16px}
.manage:hover{opacity:.9}
.avatar{width:34px;height:34px;min-width:34px;padding:0;border-radius:50%;background:var(--surface-2);color:var(--ink);box-shadow:0 0 0 1px var(--line);font-weight:600;font-size:12px;line-height:1;display:inline-flex;align-items:center;justify-content:center;flex:none;letter-spacing:.02em}
@media (min-width:640px){.hide-s{display:inline-flex!important}}
@media (max-width:420px){.manage{padding:0 10px}.manage .lbl2{display:none}}
@media (max-width:420px){.pill .lbl{display:none}}

/* Tabs, search, categories */
.tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;min-width:0;margin-bottom:10px;flex:none;padding:1px}
.tabs::-webkit-scrollbar{display:none}
.tab{flex:none;height:32px;padding:0 4px 0 12px;border-radius:8px;background:var(--surface);box-shadow:0 0 0 1px var(--line);display:inline-flex;align-items:center;gap:6px;font-weight:500;color:var(--ink-3);cursor:pointer}
.tab small{color:var(--ink-3)}
.tab .x{width:24px;height:24px;border-radius:6px;display:grid;place-items:center;color:var(--ink-3)}
.tab .x:hover{background:var(--surface-2);color:var(--ink)}
.tab .x svg{width:13px;height:13px}
.tab[aria-current="true"]{color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.tab.new{background:none;padding-right:12px}
.search{display:flex;align-items:center;gap:8px;height:42px;padding:0 4px 0 12px;border-radius:11px;background:var(--surface);box-shadow:0 0 0 1px var(--line);color:var(--ink-3);flex:none}
.search:focus-within{box-shadow:0 0 0 1.5px var(--ink)}
.search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:15px;height:100%;color:var(--ink)}
.search input::placeholder{color:var(--ink-3)}
.kbd{font:500 11px ui-monospace,monospace;padding:2px 6px;border-radius:5px;box-shadow:0 0 0 1px var(--line);display:none}
@media (min-width:1020px){.kbd{display:inline-block}}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:12px 1px;flex:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;height:32px;padding:0 13px;border-radius:99px;display:inline-flex;align-items:center;gap:7px;font-weight:500;white-space:nowrap;color:var(--ink-2);
  background:color-mix(in srgb,var(--cc,transparent) 12%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--cc,var(--line)) 22%,var(--line))}
.chip i{width:7px;height:7px;border-radius:50%;background:var(--cc)}
.chip:hover{color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);box-shadow:none}
.chip[aria-pressed="true"] i{background:var(--bg)}
.items{flex:1;min-height:0;overflow-y:auto;padding:1px 1px 110px;scrollbar-width:thin}

/* Sections inside "All" */
.sec{display:flex;align-items:baseline;gap:8px;margin:18px 2px 8px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.sec:first-child{margin-top:2px}
.sec small{font-weight:500;letter-spacing:0;text-transform:none}
.sec.pop{color:var(--ink)}

/* Tiles */
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (min-width:640px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:900px){.grid{grid-template-columns:repeat(auto-fill,minmax(168px,1fr))}}
.tile{position:relative;text-align:left;min-height:92px;padding:12px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);display:flex;flex-direction:column;justify-content:space-between;gap:10px;transition:box-shadow .12s,transform .1s}
.tile:hover{box-shadow:0 0 0 1px var(--ink-3)}
.tile:active{transform:scale(.98)}
.tile .nm{font-weight:500;font-size:14px;line-height:1.3;letter-spacing:-.005em;padding-right:26px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--cc);margin-right:7px;vertical-align:2px;flex:none}
.tile .ft{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.tile .vm{position:absolute;top:12px;right:12px}
.price{font-weight:600;font-size:15px;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}
.tile.in{box-shadow:0 0 0 1.5px var(--ink)}
[hidden]{display:none!important}
.badge{position:absolute;top:8px;right:8px;min-width:24px;height:24px;padding:0 7px;border-radius:99px;background:var(--primary);color:var(--on-primary);font-weight:600;font-size:12.5px;display:grid;place-items:center;animation:pop .22s cubic-bezier(.3,1.5,.5,1)}
@keyframes pop{from{transform:scale(.5)}}
.tile.out{opacity:.5;background:var(--surface-2);cursor:not-allowed}
.tag{font-size:12px;font-weight:600;color:var(--ink-3);white-space:nowrap}
.tag.bad{color:var(--bad)}
.stk{font-size:12px;color:var(--ink-3);white-space:nowrap}
.stk.low{color:var(--warn);font-weight:500}
.opt-hint{font-size:12px;color:var(--ink-3)}

/* Veg / non-veg marks (FSSAI symbols) */
.vm{width:14px;height:14px;border:1.5px solid var(--veg);border-radius:3px;display:inline-grid;place-items:center;flex:none}
.vm::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--veg)}
.vm.nv{border-color:var(--nonveg)}
.vm.nv::after{width:0;height:0;border-radius:0;background:none;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-bottom:6px solid var(--nonveg)}

/* List view */
.list{display:flex;flex-direction:column;background:var(--surface);box-shadow:0 0 0 1px var(--line);border-radius:12px;overflow:hidden}
.row{display:flex;align-items:center;gap:12px;min-height:54px;padding:8px 10px 8px 14px;border-top:1px solid var(--line)}
.row:first-child{border-top:0}
.row:hover{background:var(--surface-2)}
.row .nm{flex:1;min-width:0;font-weight:500}
.row .nm small{display:block;font-size:12px;color:var(--ink-3);font-weight:400}
.row.out{opacity:.5}
.add{height:32px;min-width:64px;padding:0 12px;border-radius:8px;box-shadow:0 0 0 1px var(--line-2);font-weight:600;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:4px}
.add:hover{background:var(--surface-2)}
.add svg{width:15px;height:15px}
.step{display:inline-flex;align-items:center;height:32px;border-radius:8px;background:var(--primary);color:var(--on-primary);flex:none}
.step button,.step [role="button"]{width:30px;height:30px;display:grid;place-items:center;color:inherit;cursor:pointer}
.step svg{width:15px;height:15px}
.step span{min-width:20px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.step.soft{background:none;color:var(--ink);box-shadow:0 0 0 1px var(--line);height:28px}
.step.soft [role="button"]{width:26px;height:26px;color:var(--ink-3)}
.step.soft [role="button"]:hover{color:var(--ink)}
.empty-s{padding:50px 12px;text-align:center;color:var(--ink-3)}

/* Order panel: bottom sheet on phones, right column on wide screens */
.cart{position:fixed;left:0;right:0;bottom:0;height:min(94dvh,860px);z-index:30;display:flex;flex-direction:column;background:var(--surface);border-radius:18px 18px 0 0;
  transform:translateY(105%);transition:transform .32s cubic-bezier(.2,.9,.2,1);box-shadow:0 -10px 40px rgba(0,0,0,.2);padding-bottom:env(safe-area-inset-bottom,0px)}
body.cart-open .cart{transform:none}
.pscrim{position:fixed;inset:0;background:var(--scrim);opacity:0;pointer-events:none;transition:opacity .25s;z-index:25}
body.cart-open .pscrim{opacity:1;pointer-events:auto}
.c-head{display:flex;align-items:center;gap:6px;padding:16px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px))}
.c-head h2{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-head h2 span{color:var(--ink-3);font-weight:500}
.c-head p{margin:2px 0 0;font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-body{flex:1;min-height:0;overflow-y:auto;padding:4px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:10px}
.c-foot{padding:6px max(16px,env(safe-area-inset-right,0px)) 14px max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.textbtn{font-weight:500;font-size:13.5px;color:var(--ink-3);padding:6px 8px;border-radius:7px;white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.textbtn:hover{background:var(--surface-2);color:var(--ink)}
.textbtn.warn{height:28px;padding:0 11px;font-weight:600;font-size:12.5px;color:var(--warn);box-shadow:0 0 0 1px var(--warn)}
.textbtn.warn:hover{background:var(--warn-soft)}

/* Customer */
.cust{display:flex;align-items:center;gap:10px;padding:10px;border-radius:11px;box-shadow:0 0 0 1px var(--line);text-align:left;width:100%}
.cust .who{min-width:0;flex:1}
.cust .who b{display:block;font-weight:600}
.cust .who small{display:block;font-size:12px;color:var(--ink-3)}
.cust .owes{color:var(--warn);font-weight:500}
.cust .dep{color:var(--good);font-weight:500}
.cust .iconbtn{width:28px;height:28px}
.csearch{position:relative}
.csearch .search{height:40px}
.cres{position:absolute;left:0;right:0;top:46px;z-index:5;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);border-radius:11px;overflow:hidden}
.cres button{display:flex;width:100%;text-align:left;gap:10px;align-items:center;padding:10px 12px;border-top:1px solid var(--line)}
.cres button:first-child{border-top:0}
.cres button:hover{background:var(--surface-2)}
.cres small{color:var(--ink-3);font-size:12px}
.usual{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none}
.usual .lab{margin-right:2px;text-transform:none;letter-spacing:0;font-weight:400;font-size:12px}
.uchip{flex:none;height:28px;padding:0 11px;border-radius:99px;box-shadow:0 0 0 1px var(--line);font-size:12.5px;font-weight:500;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.uchip:hover{background:var(--surface-2)}
.uchip svg{width:13px;height:13px}

/* Lines */
.lines{display:flex;flex-direction:column}
.line{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);text-align:left;width:100%;cursor:pointer}
.line.on::before{content:"";position:absolute;left:-16px;top:8px;bottom:8px;width:2px;background:var(--ink);border-radius:2px}
.line .ln{min-width:0;display:flex;gap:8px;align-items:flex-start}
.line .ln b{font-weight:500;display:block}
.line .ln small{display:block;font-size:12px;color:var(--ink-3);margin-top:1px}
.line .lt{text-align:right;font-weight:600;font-variant-numeric:tabular-nums;min-width:60px}
.line.ret .lt,.line.ret .ln b{color:var(--bad)}
.off{color:var(--good);font-weight:500}
.kit{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--warn);background:var(--warn-soft);padding:2px 6px;border-radius:5px;margin-left:6px;vertical-align:1px}
.rtag{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--bad);background:var(--bad-soft);padding:2px 6px;border-radius:5px;margin-right:6px;vertical-align:1px}
.c-empty{flex:1;display:grid;place-items:center;text-align:center;color:var(--ink-3);padding:24px 8px;min-height:110px}
.c-empty svg{width:30px;height:30px;stroke-width:1.2;margin-bottom:8px}
.sum{display:flex;flex-direction:column;gap:2px;color:var(--ink-3);padding:0 0 4px}
.sum div{display:flex;justify-content:space-between;gap:12px;padding:1px 0}
.sum .neg{color:var(--good)}
.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.tool{height:34px;border-radius:9px;box-shadow:0 0 0 1px var(--line);font-weight:500;font-size:13px;color:var(--ink-3);display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;padding:0 4px;min-width:0;overflow:hidden}
.tool:hover{color:var(--ink);background:var(--surface-2)}
.tool svg{width:15px;height:15px}
.tool.set{background:var(--primary);color:var(--on-primary);box-shadow:none}
.tool[disabled]{opacity:.45}

/* Keypad (Sri Sri till: pick a line, then type quantity, price or discount) */
.padwrap{display:flex;flex-direction:column;gap:6px}
.padhead{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--ink-3);min-height:28px}
.padhead>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.padhead b{color:var(--ink);font-weight:500}
.padhead .iconbtn{width:28px;height:28px}
.padhead .iconbtn.on{box-shadow:0 0 0 1px var(--ink);color:var(--ink)}
.pad{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.pad button{height:40px;border-radius:9px;background:var(--surface-2);font-weight:500;font-size:16px;font-variant-numeric:tabular-nums;display:flex;align-items:center;justify-content:center;gap:6px;transition:transform .08s}
.pad button:active{transform:scale(.95)}
.pad .md,.pad .rk{background:none;box-shadow:0 0 0 1px var(--line);font-size:12.5px;color:var(--ink-3)}
.pad .md[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);box-shadow:none}
.pad .bk{background:var(--bad-soft);color:var(--bad)}
.pad[aria-disabled="true"] button{opacity:.45}

.btn{height:50px;border-radius:12px;font-weight:600;font-size:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px;width:100%}
.btn-p{background:var(--primary);color:var(--on-primary)}
.btn-p[disabled]{background:var(--surface-2);color:var(--ink-3)}
.btn-s{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line-2);justify-content:center}
.btn-s:hover{background:var(--surface-2)}
.btn-s[disabled]{opacity:.45}
.btn-a{background:var(--primary);color:var(--on-primary);justify-content:center}
.btn .amt{font-size:17px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.split{display:grid;grid-template-columns:1fr 1.5fr;gap:8px}

/* Bottom bar on phones */
.bar{position:fixed;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:20}
.bar .btn{height:52px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.bar .btn[disabled]{background:var(--surface);color:var(--ink-3);box-shadow:0 0 0 1px var(--line);cursor:default;font-weight:500}
.bar .meta{display:flex;align-items:baseline;gap:8px}
.bar .meta small{font-weight:500;opacity:.7}

@media (min-width:1020px){
  .app{grid-template-columns:minmax(0,1fr) 400px}
  .main{padding:16px 22px 0}
  .items{padding-bottom:24px}
  .cart{position:static;transform:none;transition:none;height:auto;border-radius:0;box-shadow:-1px 0 0 var(--line);padding:0}
  .c-head,.c-body,.c-foot{padding-left:20px;padding-right:20px}
  .line.on::before{left:-20px}
  .bar,.pscrim,.c-close{display:none!important}
}

/* Sheets */
.scrim{position:fixed;inset:0;z-index:40;background:var(--scrim);display:flex;align-items:flex-end;justify-content:center;opacity:0;pointer-events:none;transition:opacity .18s}
.scrim.on{opacity:1;pointer-events:auto}
.sheet{width:100%;max-height:94%;overflow-y:auto;background:var(--surface);border-radius:18px 18px 0 0;
  padding:8px max(20px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));
  transform:translateY(30px);transition:transform .28s cubic-bezier(.2,.9,.2,1);display:flex;flex-direction:column;gap:14px}
.scrim.on .sheet{transform:none}
.sheet>*{flex-shrink:0}
@media (min-width:640px){.scrim{align-items:center}.sheet{width:min(460px,92vw);border-radius:18px;padding:22px}.grab{display:none}}
.sh{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sh h3{margin:0;font-size:17px;font-weight:600;letter-spacing:-.01em}
.sh p{margin:3px 0 0;color:var(--ink-3);font-size:13px}
.grp{display:flex;flex-direction:column;gap:8px}
.lab{font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.opts{display:flex;flex-wrap:wrap;gap:6px}
.opt{min-height:40px;padding:0 13px;border-radius:9px;box-shadow:0 0 0 1px var(--line);font-weight:500;display:inline-flex;align-items:center;gap:8px}
.opt:hover{background:var(--surface-2)}
.opt small{color:var(--ink-3)}
.opt[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);box-shadow:none}
.opt[aria-pressed="true"] small{color:var(--bg);opacity:.75}
.row2{display:flex;gap:8px}
.row2>*{flex:1;min-width:0}
.note{font-size:12.5px;color:var(--ink-3)}
.warnbox{border-radius:10px;background:var(--warn-soft);color:var(--warn);padding:10px 12px;font-size:13px;font-weight:500}
.field{height:44px;border-radius:10px;border:0;box-shadow:0 0 0 1px var(--line-2);background:var(--surface);padding:0 12px;font-size:16px;width:100%;min-width:0}
.field:focus{outline:0;box-shadow:0 0 0 1.5px var(--ink)}
.big{font-size:38px;font-weight:600;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1.05}

/* Payment (Sri Sri till: each method adds a line with what is left) */
.methods{display:flex;flex-wrap:wrap;gap:6px}
.method{height:40px;padding:0 13px;border-radius:9px;box-shadow:0 0 0 1px var(--line);display:inline-flex;align-items:center;gap:7px;font-weight:500}
.method:hover{background:var(--surface-2)}
.method svg{width:16px;height:16px;color:var(--ink-3)}
.method.acct{box-shadow:0 0 0 1px var(--line-2);border:1px dashed transparent}
.plines{display:flex;flex-direction:column;gap:6px}
.pl{display:flex;align-items:center;gap:10px;height:46px;padding:0 6px 0 14px;border-radius:10px;box-shadow:0 0 0 1px var(--line);cursor:pointer}
.pl.on{box-shadow:0 0 0 1.5px var(--ink)}
.pl span{flex:1;font-weight:500}
.pl b{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.remain{display:flex;justify-content:space-between;align-items:center;padding:11px 12px;border-radius:10px;background:var(--surface-2);font-weight:500}
.remain b{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
.remain.left{background:var(--bad-soft);color:var(--bad)}
.remain.ok{background:var(--good-soft);color:var(--good)}
.remain.owe{background:var(--warn-soft);color:var(--warn)}
.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.quick button{height:36px;border-radius:9px;box-shadow:0 0 0 1px var(--line);font-weight:500;font-variant-numeric:tabular-nums}
.quick button:hover{background:var(--surface-2)}
.qr{display:flex;gap:14px;align-items:center;padding:12px;border-radius:12px;background:var(--surface-2)}
.qr .code{width:124px;height:124px;flex:none;background:#fff;border-radius:10px;padding:8px;display:grid;place-items:center}
.qr .code img,.qr .code canvas{width:108px!important;height:108px!important}
.done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding-top:4px}
.tick{width:56px;height:56px;border-radius:50%;background:var(--good);color:#fff;display:grid;place-items:center;animation:pop .35s cubic-bezier(.3,1.6,.5,1)}
.tick svg{width:28px;height:28px;stroke-width:2.4}
.token{display:flex;flex-direction:column;align-items:center;padding:8px 26px;border-radius:12px;box-shadow:0 0 0 1px var(--line);margin-top:6px}
.token b{font-size:42px;font-weight:700;letter-spacing:-.03em;line-height:1.05;font-variant-numeric:tabular-nums}
.kv{display:flex;flex-direction:column;gap:6px}
.kv div{display:flex;justify-content:space-between;gap:12px}
.kv .num{font-weight:500}
.kv .tot{border-top:1px solid var(--line);padding-top:8px;font-weight:600}

/* Receipt preview (80 mm look) */
.receipt{align-self:center;width:100%;max-width:320px;background:#FFFFFF;color:#151515;border-radius:6px;padding:16px 14px 18px;font-size:12px;line-height:1.45;box-shadow:0 0 0 1px var(--line),0 4px 14px rgba(0,0,0,.06);font-variant-numeric:tabular-nums}
.receipt .c{text-align:center}
.receipt h4{margin:0;font-size:15px;font-weight:700;letter-spacing:.01em}
.receipt .k{display:flex;justify-content:space-between;gap:8px}
.receipt hr{border:0;border-top:1px dashed #9a9a9a;margin:8px 0}
.receipt .t{font-weight:700;font-size:15px}
.receipt .doc{font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:11px}
.receipt .muted{color:#5b5b5b}
.receipt .sample{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#8a8a8a}

.tables{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tbl{height:56px;border-radius:10px;box-shadow:0 0 0 1px var(--line);font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.tbl small{font-weight:400;font-size:11.5px;color:var(--ink-3)}
.tbl.busy{background:var(--warn-soft);box-shadow:none;color:var(--warn)}
.tbl.busy small{color:var(--warn)}

.toast{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:50%;transform:translate(-50%,-80px);z-index:60;background:var(--ink);color:var(--bg);padding:9px 16px;border-radius:99px;font-weight:500;transition:transform .3s;max-width:calc(100% - 32px);text-align:center}
.toast.on{transform:translate(-50%,0)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- Owner pages (bills, menu, settings, staff): same tokens and parts as the counter ---------- */
body.pg{overflow:auto}
.pg .wrap{max-width:1080px;margin:0 auto;padding:16px max(16px,env(safe-area-inset-right,0px)) 40px max(16px,env(safe-area-inset-left,0px))}
.pg .wrap.bare{max-width:1180px}
/* Side menu: fixed on wide screens, a drawer on phones */
.side{position:fixed;top:0;bottom:0;left:0;width:248px;z-index:40;background:var(--surface);box-shadow:1px 0 0 var(--line);display:flex;flex-direction:column;gap:6px;
  padding:calc(16px + env(safe-area-inset-top,0px)) 12px calc(14px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));transform:translateX(-102%);transition:transform .25s cubic-bezier(.2,.9,.2,1)}
.side-h{display:flex;align-items:center;gap:10px;padding:0 6px 12px;border-bottom:1px solid var(--line);margin-bottom:6px}
.side-n{display:flex;flex-direction:column;gap:2px;flex:1;overflow-y:auto}
.side a{display:flex;align-items:center;gap:11px;height:40px;padding:0 10px;border-radius:9px;color:var(--ink-2);font-weight:500;text-decoration:none}
.side a svg{color:var(--ink-3)}
.side a:hover{background:var(--surface-2);color:var(--ink)}
.side a.on{background:var(--primary);color:var(--on-primary)}
.side a.on svg{color:var(--bg)}
.side .side-out{color:var(--bad)}
.side .side-out svg{color:var(--bad)}
.side-scrim{position:fixed;inset:0;background:var(--scrim);z-index:35;opacity:0;pointer-events:none;transition:opacity .2s}
body.side-on .side{transform:none}
body.side-on .side-scrim{opacity:1;pointer-events:auto}
.mtop{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;background:var(--bg);box-shadow:0 1px 0 var(--line);
  padding:calc(10px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px))}
@media (min-width:900px){
  .side{transform:none;transition:none}
  .side-scrim,.mtop{display:none}
  body.has-side .wrap{margin-left:248px;max-width:none;padding-left:36px;padding-right:36px;padding-top:24px}
  body.has-side .wrap>*{max-width:1080px}
}
.ph1{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 14px}
.ph1 h1{margin:0;font-size:20px;font-weight:600;letter-spacing:-.02em}
.ph1 p{margin:4px 0 0;color:var(--ink-3)}
.card{background:var(--surface);border-radius:14px;box-shadow:0 0 0 1px var(--line);padding:16px;margin-bottom:14px}
.card h2{margin:0 0 12px;font-size:15px;font-weight:600}
.card h2 small{color:var(--ink-3);font-weight:400}
.form{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px 14px}
.form .wide{grid-column:1/-1}
.fl{display:flex;flex-direction:column;gap:6px;min-width:0}
.fl>span{font-size:12px;font-weight:500;color:var(--ink-3)}
.fl small{font-size:12px;color:var(--ink-3)}
select.field{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink-3) 50%),linear-gradient(135deg,var(--ink-3) 50%,transparent 50%);background-position:calc(100% - 17px) 19px,calc(100% - 12px) 19px;background-size:5px 5px;background-repeat:no-repeat;padding-right:30px}
textarea.field{height:auto;min-height:70px;padding:10px 12px;resize:vertical;font-family:inherit}
.check{display:flex;align-items:center;gap:8px;min-height:40px;font-weight:500}
.check input{width:18px;height:18px;accent-color:var(--ink)}
.acts2{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.acts2 .btn{width:auto;height:42px;padding:0 16px;border-radius:10px;font-size:14px;justify-content:center}
.flash{border-radius:10px;padding:10px 14px;margin-bottom:14px;font-weight:500;background:var(--good-soft);color:var(--good)}
.flash.bad{background:var(--bad-soft);color:var(--bad)}
.tblw{overflow-x:auto;margin:0 -16px;padding:0 16px}
table.t{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
table.t th{text-align:left;font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-3);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
table.t td{padding:10px;border-bottom:1px solid var(--line);vertical-align:middle}
table.t tr:last-child td{border-bottom:0}
table.t .r{text-align:right}
table.t a{color:inherit;text-decoration:none;font-weight:500}
table.t tr.link{cursor:pointer}
table.t tr.link:hover td{background:var(--surface-2)}
.st{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:99px;font-size:12px;font-weight:500;background:var(--surface-2);color:var(--ink-2);white-space:nowrap}
.st.ok{background:var(--good-soft);color:var(--good)}.st.warn{background:var(--warn-soft);color:var(--warn)}.st.bad{background:var(--bad-soft);color:var(--bad)}
.muted{color:var(--ink-3)}
.swatches{display:flex;gap:6px;flex-wrap:wrap}
.swatches label{position:relative}
.swatches input{position:absolute;opacity:0}
.swatches span{display:block;width:28px;height:28px;border-radius:50%;background:var(--cc);box-shadow:0 0 0 1px var(--line);cursor:pointer}
.swatches input:checked+span{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.swatches input:focus-visible+span{outline:2px solid var(--ink);outline-offset:3px}
.auth{min-height:100%;display:grid;place-items:center;padding:24px 16px}
.auth .card{width:min(420px,100%);padding:24px}
.auth .mark{margin-bottom:14px}
.steps{display:grid;gap:14px}
@media print{.side,.mtop,.side-scrim,.noprint{display:none!important}body.has-side .wrap{margin:0;padding:0}body{background:#fff}.receipt{box-shadow:none;border:0;max-width:80mm;padding:0}}

/* Items list rows */
.ithumb{width:48px;height:48px;border-radius:10px;flex:none;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--cc,#8B8B93) 16%,var(--surface));color:color-mix(in srgb,var(--cc,#8B8B93) 60%,var(--ink));font-weight:600;font-size:17px;text-decoration:none}
.ithumb img{width:100%;height:100%;object-fit:cover;display:block}
.ithumb.big{width:120px;height:120px;border-radius:14px;font-size:40px}
.warn-t{color:var(--warn);font-weight:600}
.iacts{display:flex;align-items:center;gap:6px;flex:none}
.iacts .btn{width:auto;height:34px;padding:0 14px;font-size:13px;border-radius:9px;text-decoration:none}
@media (max-width:520px){.iacts .textbtn{display:none}}

/* Menu page for customers */
.mhead{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:4px 0 6px}
.mhead h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.03em}
.mhead p{margin:4px 0 0;color:var(--ink-3)}
.mhead .seg a{height:30px;padding:0 12px;border-radius:7px;display:inline-flex;align-items:center;color:var(--ink-3);font-weight:500;font-size:13px;text-decoration:none}
.mhead .seg a.on{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.mhead .btn{width:auto;height:38px;padding:0 16px;font-size:14px;border-radius:10px;text-decoration:none}
.mchips{position:sticky;top:0;z-index:4;background:var(--bg);margin:0 -4px;padding:12px 4px}
@media (max-width:899px){body.has-side .mchips{top:64px}}
.mchips a{text-decoration:none}
.msec{margin:18px 0 8px;scroll-margin-top:70px}
.msec h2{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:18px;font-weight:600;letter-spacing:-.01em}
.msec h2 .dot{margin:0;width:8px;height:8px}
.mgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:640px){.mgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1100px){.mgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.mcard{background:var(--surface);border-radius:14px;box-shadow:0 0 0 1px var(--line);overflow:hidden;display:flex;flex-direction:column}
.mimg{position:relative;aspect-ratio:4/3;max-width:100%;background:color-mix(in srgb,var(--cc) 14%,var(--surface));display:grid;place-items:center;overflow:hidden}
.mimg img{width:100%;height:100%;object-fit:cover;display:block}
.mimg span{font-size:42px;font-weight:700;color:color-mix(in srgb,var(--cc) 60%,var(--ink));opacity:.55}
.mimg em{position:absolute;top:10px;left:10px;font-style:normal;font-size:12px;font-weight:600;background:var(--surface);color:var(--bad);padding:3px 8px;border-radius:99px}
.mbody{padding:12px 12px 14px;display:flex;flex-direction:column;gap:4px;flex:1}
.mtitle{display:flex;gap:8px;align-items:flex-start}
.mtitle .vm{margin-top:3px}
.mtitle h3{margin:0;font-size:15px;font-weight:600;line-height:1.3}
.mbody small{font-size:12px;line-height:1.4}
.mprice{margin-top:auto;padding-top:6px;font-size:16px;font-weight:700;letter-spacing:-.01em}
.mcard.out{opacity:.6}

/* Chart colours (validated categorical order, light and dark) and the accent choices */
:root{--c1:#2a78d6;--c2:#eb6834;--c3:#1baf7a;--c4:#eda100;--c5:#e87ba4;--c6:#008300;--c7:#6250d6;--c8:#e34948;--seq-lo:#9ec5f4;--seq-hi:#2a78d6;--info:#2a78d6;--info-soft:#EAF2FC}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--c1:#3987e5;--c2:#d95926;--c3:#199e70;--c4:#c98500;--c5:#d55181;--c6:#008300;--c7:#9085e9;--c8:#e66767;--seq-lo:#1c5cab;--seq-hi:#86b6ef;--info:#86b6ef;--info-soft:#132a45}}
:root[data-theme="dark"]{--c1:#3987e5;--c2:#d95926;--c3:#199e70;--c4:#c98500;--c5:#d55181;--c6:#008300;--c7:#9085e9;--c8:#e66767;--seq-lo:#1c5cab;--seq-hi:#86b6ef;--info:#86b6ef;--info-soft:#132a45}
:root[data-accent="indigo"]{--primary:#4338CA;--accent:#4338CA;--on-primary:#fff}
:root[data-accent="emerald"]{--primary:#047857;--accent:#047857;--on-primary:#fff}
:root[data-accent="indigo"]{--primary:#5E5CE6;--accent:#5E5CE6;--on-primary:#fff}
@media (prefers-color-scheme: dark){
  :root[data-accent="indigo"]:not([data-theme="light"]){--primary:#A5B4FC;--accent:#A5B4FC;--on-primary:#0A0A0B}
  :root[data-accent="emerald"]:not([data-theme="light"]){--primary:#6EE7B7;--accent:#6EE7B7;--on-primary:#0A0A0B}
  :root[data-accent="indigo"]:not([data-theme="light"]){--primary:#A5A3FF;--accent:#A5A3FF;--on-primary:#0A0A0B}}

/* Dashboard */
.daystate{display:inline-flex;align-items:center;gap:6px;color:var(--warn)}
.daystate i{width:7px;height:7px;border-radius:50%;background:currentColor}
.daystate.on{color:var(--good)}
.kpis2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
@media (min-width:900px){.kpis2{grid-template-columns:repeat(4,minmax(0,1fr))}.kpis2 .hero{grid-row:span 2}}
.kpis2 .hero{grid-column:span 2}
.kpi{background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line);padding:16px;display:flex;flex-direction:column;gap:6px;min-width:0;position:relative;overflow:hidden}
.kpi-top{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink-2);font-weight:500;min-width:0}
.kchip{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;color:var(--k);background:color-mix(in srgb,var(--k) 13%,var(--surface))}
.kchip svg.i{width:17px;height:17px}
.kpi>b{font-size:26px;font-weight:700;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}
.kpi>small{font-size:12.5px;color:var(--ink-3)}
.hero{padding:20px 20px 14px;background:linear-gradient(160deg,color-mix(in srgb,var(--c1) 7%,var(--surface)) 0%,var(--surface) 55%)}
.kpi>b.hero-n{font-size:44px;font-weight:700;letter-spacing:-.035em;line-height:1.05;margin-top:8px}
@media (max-width:520px){.kpi>b.hero-n{font-size:36px}}
.hero-sub{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:13px;color:var(--ink-3)}
.hero-sub b{color:var(--ink);font-weight:600}
.delta{margin-left:auto;font-style:normal;font-size:12.5px;font-weight:600;padding:4px 9px;border-radius:99px;white-space:nowrap}
.delta span{font-weight:500;opacity:.8}
.delta.up{color:var(--good);background:var(--good-soft)}
.delta.down{color:var(--bad);background:var(--bad-soft)}
@media (max-width:520px){.delta span{display:none}}
.spark{width:100%;height:64px;margin-top:auto;padding-top:10px;display:block}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-bottom:6px}
.sec-h h2{margin:0}
.tip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);font-size:11.5px;padding:6px 9px;border-radius:8px;white-space:nowrap;display:none;flex-direction:column;align-items:center;z-index:3;pointer-events:none;box-shadow:var(--shadow)}
.tip b{font-size:13px}
/* two independent columns, so opening or closing a section never leaves gaps */
.dcols{display:grid;grid-template-columns:minmax(0,1fr);gap:0 14px;align-items:start}
@media (min-width:1000px){.dcols{grid-template-columns:repeat(2,minmax(0,1fr))}}
.dcol{min-width:0;display:flex;flex-direction:column}
.stack{display:flex;gap:2px;height:14px;border-radius:4px;overflow:hidden;margin-bottom:12px}
.stack i{display:block;min-width:4px}
.legend{display:flex;flex-direction:column}
.lg{display:grid;grid-template-columns:auto minmax(0,1fr) auto 42px;gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.lg:first-child{border-top:0}
.sw-dot{width:10px;height:10px;border-radius:3px}
.lg-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lg b{font-weight:600}
.lg-p{color:var(--ink-3);text-align:right;font-size:12.5px}
.rank{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.rank:first-of-type{border-top:0}
.rnk{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--ink-2)}
.rank:nth-of-type(1) .rnk{background:color-mix(in srgb,var(--c4) 20%,var(--surface));color:color-mix(in srgb,var(--c4) 60%,var(--ink))}
.rnk-b{display:flex;flex-direction:column;gap:6px;min-width:0}
.rnk-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rnk-b i{display:block;height:6px;border-radius:0 4px 4px 0;background:var(--surface-2)}
.rnk-b i b{display:block;height:100%;border-radius:0 4px 4px 0;background:var(--c1)}
.rnk-v{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.rnk-v b{font-weight:600;font-size:13.5px;white-space:nowrap}
.rnk-v small{font-size:12px}
.badge2{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:99px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--ink-2);white-space:nowrap}
.badge2.bad{background:var(--bad-soft);color:var(--bad)}
.badge2.warn{background:var(--warn-soft);color:var(--warn)}
.badge2.info{background:var(--info-soft);color:var(--info)}
.bad-t{color:var(--bad)!important;font-weight:600}
.kvr{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid var(--line)}
.kvr:first-of-type{border-top:0}
.kvr a{color:inherit;text-decoration:none;min-width:0}
.kvr b{font-weight:600;white-space:nowrap}

/* Settings: tabs, autosave, switches, payment methods, accents, permissions */
.tabs2{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:0 0 14px;padding:1px;border-bottom:1px solid var(--line)}
.tabs2::-webkit-scrollbar{display:none}
.tabs2 a{flex:none;padding:10px 12px;color:var(--ink-3);font-weight:500;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs2 a:hover{color:var(--ink)}
.tabs2 a.on{color:var(--ink);border-bottom-color:var(--primary)}
.savebar{display:flex;align-items:center;gap:10px}
.savest{font-size:12.5px;color:var(--ink-3);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.savest::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--line-2)}
.savest.ok::before{background:var(--good)}
.savest.busy::before{background:var(--warn)}
.savest.bad{color:var(--bad);white-space:normal}
.savest.bad::before{background:var(--bad)}
.sw{display:flex;align-items:flex-start;gap:12px;padding:8px 0;cursor:pointer;position:relative}
.sw input{position:absolute;opacity:0;width:1px;height:1px}
.sw i{position:relative;flex:none;width:38px;height:22px;border-radius:99px;background:var(--line-2);transition:background .15s;margin-top:1px}
.sw i::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.sw input:checked+i{background:var(--primary)}
.sw input:checked+i::after{transform:translateX(16px)}
.sw input:focus-visible+i{outline:2px solid var(--ink);outline-offset:2px}
.sw span{display:flex;flex-direction:column;gap:2px}
.sw b{font-weight:500}
.sw small{font-size:12.5px;color:var(--ink-3)}
.sw.solo{padding:0;justify-content:center}
.pmlist{display:flex;flex-direction:column;gap:10px}
.pmrow{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 104px;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.pmrow:first-child{border-top:0}
.pm-end{display:flex;align-items:center;justify-content:space-between;gap:6px;height:44px}
.pm-end .sw{padding:0;align-items:center}
.pm-note{font-size:12.5px;color:var(--ink-3);height:44px;display:flex;align-items:center}
.pm-del{color:var(--ink-3)}
.pm-del:hover{color:var(--bad);background:var(--bad-soft)}
@media (max-width:600px){.pmrow{grid-template-columns:minmax(0,1fr) auto}.pmrow>.field:first-of-type,.pmrow>input.field{grid-column:1/-1}}
.accents{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.accent-opt{position:relative;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;box-shadow:0 0 0 1px var(--line);cursor:pointer}
.accent-opt input{position:absolute;opacity:0}
.accent-opt:has(input:checked){box-shadow:0 0 0 2px var(--a)}
.accent-opt:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.accent-opt[data-a="graphite"]{--a:#0B0B0D}.accent-opt[data-a="emerald"]{--a:#047857}.accent-opt[data-a="indigo"]{--a:#5E5CE6}
.acc-name{font-weight:500}
.pgrid{display:flex;flex-direction:column}
.pg-h,.pg-r{display:grid;grid-template-columns:minmax(0,1fr) 92px 92px;gap:8px;align-items:center}
.pg-h{position:sticky;top:0;background:var(--surface);z-index:1;padding:4px 0 10px;border-bottom:1px solid var(--line)}
.pg-role{text-align:center;font-size:12.5px;font-weight:600;color:var(--ink-2)}
.pg-sec{padding:18px 0 6px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.pg-r{padding:10px 0;border-top:1px solid var(--line)}
.pg-sec+.pg-r{border-top:0}
.pg-l{display:flex;flex-direction:column;gap:2px;min-width:0}
.pg-l b{font-weight:500}
.pg-l small{font-size:12.5px;color:var(--ink-3)}
.pg-c{display:flex;justify-content:center}
@media (max-width:520px){.pg-h,.pg-r{grid-template-columns:minmax(0,1fr) 64px 64px}}

/* Item page: multi-select dropdown, food marks */
.vm.eg{border-color:#C98500}
.vm.eg::after{background:#C98500}
.mtags{display:flex;flex-wrap:wrap;gap:4px}
.mtags span{font-size:11px;font-weight:500;padding:2px 7px;border-radius:99px;background:var(--surface-2);color:var(--ink-2)}
.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
@media (min-width:760px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
.kpi>span{font-size:12.5px;color:var(--ink-3);font-weight:500}
/* Logo */
.mark-img{object-fit:contain;background:var(--surface);box-shadow:0 0 0 1px var(--line);padding:2px}
.rlogo{display:block;max-width:120px;max-height:64px;margin:0 auto 6px;object-fit:contain}
.menu-logo{display:block;max-width:140px;max-height:72px;object-fit:contain;margin-bottom:8px}
.logo-edit{display:flex;gap:16px;align-items:flex-start;margin-bottom:16px}
.logo-box{width:96px;height:96px;border-radius:14px;box-shadow:0 0 0 1px var(--line);background:var(--surface-2);display:grid;place-items:center;flex:none;overflow:hidden}
.logo-box img{max-width:86%;max-height:86%;object-fit:contain}
.logo-box span{font-size:12px;color:var(--ink-3)}
.savelink{color:var(--primary);font-weight:600;margin-left:4px}
/* Reports */
.periods{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 14px;padding:1px}
.periods::-webkit-scrollbar{display:none}
.periods a{flex:none;height:34px;padding:0 14px;border-radius:99px;display:inline-flex;align-items:center;text-decoration:none;color:var(--ink-2);font-weight:500;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.periods a.on{background:var(--primary);color:var(--on-primary);box-shadow:none}
.says{background:linear-gradient(160deg,color-mix(in srgb,var(--c7) 7%,var(--surface)) 0%,var(--surface) 60%)}
.tips{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.tips li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line);font-size:15px;line-height:1.45}
.tips li:first-child{border-top:0;padding-top:2px}
.tips li i{width:8px;height:8px;border-radius:50%;margin-top:7px;flex:none;background:var(--info)}
.tips li.tip-good i{background:var(--good)}.tips li.tip-bad i{background:var(--bad)}.tips li.tip-warn i{background:var(--warn)}
.kpis4{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:900px){.kpis4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.delta.flat{color:var(--ink-3);background:var(--surface-2)}
.dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.dl .btn{text-decoration:none;justify-content:center;margin:0}
/* Customers: tags with soft colours, initials, notes */
.tagp{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:99px;font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;
  --t:var(--c7);background:color-mix(in srgb,var(--t) 13%,var(--surface));color:color-mix(in srgb,var(--t) 60%,var(--ink));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--t) 22%,transparent)}
.tagp.vip{--t:var(--c6)}.tagp.regular{--t:var(--c7)}.tagp.new{--t:var(--c4)}.tagp.lapsed{--t:var(--c8)}.tagp.bday{--t:var(--c5)}.tagp.owes{--t:var(--c2)}
.cava{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;font-weight:700;font-size:14px;color:color-mix(in srgb,var(--k) 60%,var(--ink));background:color-mix(in srgb,var(--k) 16%,var(--surface))}
.cava.big{width:84px;height:84px;border-radius:22px;font-size:28px}

/* Settings: a home of cards, then short groups of rows (label left, control right) */
.shome{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.scard{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line);text-decoration:none;color:inherit;transition:box-shadow .15s,transform .15s}
.scard:hover{box-shadow:0 0 0 1px color-mix(in srgb,var(--k) 45%,var(--line)),0 8px 24px rgba(0,0,0,.06);transform:translateY(-1px)}
.scard .kchip{width:40px;height:40px;border-radius:12px}
.scard .kchip svg.i{width:20px;height:20px}
.sct{display:flex;flex-direction:column;gap:3px;min-width:0}
.sct b{font-size:15.5px;font-weight:600;letter-spacing:-.01em}
.sct small{font-size:13px;color:var(--ink-3);line-height:1.4}
.sct em{font-style:normal;font-size:12.5px;font-weight:500;margin-top:6px;color:color-mix(in srgb,var(--k) 60%,var(--ink));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sph h1{display:flex;align-items:center;gap:12px;margin-top:4px}
.sph .kchip{width:36px;height:36px;border-radius:11px}
.sform{display:flex;flex-direction:column;max-width:860px}
.sgroup h2{margin:0 0 4px}
.rows{display:flex;flex-direction:column}
.srow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,320px);gap:8px 24px;align-items:center;padding:14px 0;border-top:1px solid var(--line);cursor:default}
.rows>.srow:first-child,.rows>div:first-child>.srow:first-child{border-top:0}
.srow.wide{grid-template-columns:1fr}
.sl{display:flex;flex-direction:column;gap:3px;min-width:0}
.sl b{font-weight:500;font-size:14.5px}
.sl small{font-size:12.5px;color:var(--ink-3);line-height:1.4}
.sc{display:flex;justify-content:flex-end;min-width:0}
.sc>.field,.sc>select,.sc>textarea,.sc>.suf{width:100%}
.srow.wide .sc{justify-content:stretch}
.srow .sw.solo{padding:0}
@media (max-width:640px){.srow{grid-template-columns:1fr}.srow:has(.sw.solo){grid-template-columns:minmax(0,1fr) auto}.sc{justify-content:stretch}.srow:has(.sw.solo) .sc{justify-content:flex-end}}
.suf{position:relative;display:flex;align-items:center}
.suf .field{padding-right:30px}
.suf i{position:absolute;right:12px;font-style:normal;color:var(--ink-3);pointer-events:none}
.suf.pre .field{padding-right:12px;padding-left:28px}
.suf.pre i{left:12px;right:auto}
.shelp{margin:0 0 14px;font-size:13px}
.filebtn{position:relative;overflow:hidden;width:max-content}
.filebtn input{position:absolute;inset:0;opacity:0;cursor:pointer}
.pm-note{font-size:12.5px;color:var(--ink-3)}
.pm-note.r{text-align:right}
.pm-end{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.periods a small{font-size:11.5px;opacity:.7;margin-left:4px}

/* AI: a soft violet spark marks everything AI does */
.ai-mark{display:inline-block;width:22px;height:22px;border-radius:7px;flex:none;vertical-align:-5px;margin-right:8px;
  background:linear-gradient(135deg,var(--c7),var(--c5));-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4z'/%3E%3C/svg%3E") center/contain no-repeat}
.ai-card{background:linear-gradient(150deg,color-mix(in srgb,var(--c7) 8%,var(--surface)) 0%,var(--surface) 55%)}
.ai-out{margin-top:12px;padding:14px 16px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--c7) 25%,var(--line));font-size:15px;line-height:1.55}
.ai-out.mini{margin-top:8px;padding:10px 12px;font-size:13.5px}
.ai-out p{margin:0 0 6px}.ai-out p:last-child{margin:0}
.ai-out ul{margin:0;padding-left:18px}.ai-out li{margin:4px 0}
.ai-out.busy{color:var(--ink-3)}
.ai-out.busy:empty::before{content:"Thinking…"}
.ai-spin{display:inline-block;width:14px;height:14px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite;margin-right:4px}
@keyframes spin{to{transform:rotate(360deg)}}
.ai-strip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;text-decoration:none;color:inherit;background:linear-gradient(150deg,color-mix(in srgb,var(--c7) 8%,var(--surface)) 0%,var(--surface) 60%)}
.ai-strip .grow{display:flex;flex-direction:column;gap:2px;min-width:200px}
.ai-strip .ai-mark{margin:0}
.ai-list{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.ai-list li{display:flex;flex-direction:column;gap:3px;padding:12px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.ai-list span{font-size:13px;color:var(--ink-3)}
.howto{list-style:none;counter-reset:s;margin:6px 0 14px;padding:0;display:flex;flex-direction:column;gap:12px}
.howto li{counter-increment:s;display:grid;grid-template-columns:28px 1fr;gap:2px 12px}
.howto li::before{content:counter(s);grid-row:span 2;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:13px;background:color-mix(in srgb,var(--c7) 14%,var(--surface));color:color-mix(in srgb,var(--c7) 60%,var(--ink))}
.howto span{font-size:13px;color:var(--ink-3)}
.howto a{color:var(--primary);font-weight:500}
.ai-lang button{padding:4px 10px;font-size:12.5px}
.ask{display:flex;gap:8px;margin-top:8px}
.ask .field{flex:1}
.ask-chips{margin-top:10px}
.withbtn{display:flex;gap:6px}
.withbtn .field{flex:1;min-width:0}
.withbtn .btn{flex:none;width:auto;padding:0 12px}
.mdesc{color:var(--ink-2)!important}

/* Menu from a photo */
.drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:28px 16px;border-radius:14px;border:1.5px dashed var(--line-2);background:var(--surface-2);cursor:pointer;text-align:center;margin-bottom:14px}
.drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.drop svg.i{width:30px;height:30px;color:var(--c7)}
.drop small{color:var(--ink-3)}
.imp-cat{margin:16px 0 6px;font-size:15px}
.imp-row{display:grid;grid-template-columns:24px 14px minmax(0,1.4fr) 110px minmax(0,1fr);gap:10px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
.imp-on input{width:18px;height:18px;accent-color:var(--primary)}
@media (max-width:640px){.imp-row{grid-template-columns:24px 14px minmax(0,1fr) 96px}.imp-opts{grid-column:3/-1}}

/* Customers: Toast-style guest cards */
.guest-tags{display:flex;flex-wrap:wrap;gap:6px}
@media (max-width:560px){.gstats{grid-template-columns:repeat(2,minmax(0,1fr))}.gstats>div{border-left:0;padding-left:0;border-top:1px solid var(--line)!important}.gstats>div:nth-child(-n+2){border-top:0!important}}
.gnote{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.gnote p{margin:4px 0 0;color:var(--ink-2)}
.glist{display:flex;flex-direction:column;gap:8px}
.gcard{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line);text-decoration:none;color:inherit;transition:box-shadow .15s}
.gcard:hover{box-shadow:0 0 0 1px var(--line-2),0 6px 18px rgba(0,0,0,.05)}
.gc-m{display:flex;flex-direction:column;gap:5px;min-width:0}
.gc-m b{font-size:15.5px;font-weight:600}
.gc-m small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-r{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.gcard .tagp{height:20px;font-size:10.5px;padding:0 8px}
/* back-office buttons outside .acts2 keep their own size */
.sgroup .btn,.ai-strip .btn,.ask .btn,.guest-acts .btn,.withbtn .btn,.srow .btn{width:auto;height:42px;padding:0 16px;border-radius:10px;font-size:14px;justify-content:center}
.ai-strip .btn{flex:none}
.savebar .btn{width:auto;height:36px;padding:0 12px;font-size:13.5px;border-radius:10px;justify-content:center}
[data-if][hidden]{display:none!important}
.csearch .search{padding-right:4px}
.cadd{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;background:var(--primary);color:var(--on-primary)}
.cadd svg.i{width:16px;height:16px}
.cres .addc{color:var(--primary);font-weight:600}
/* Item page: a clear header, then short cards of rows; save stays in reach */
.iform{max-width:860px;display:flex;flex-direction:column}
.iphoto{position:relative;width:96px;height:96px;border-radius:22px;overflow:hidden;flex:none;cursor:pointer;background:var(--surface);box-shadow:0 0 0 1px var(--line);display:grid;place-items:center}
.iphoto img{width:100%;height:100%;object-fit:cover}
.iphoto span{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--ink-3);font-weight:500}
.iphoto span svg.i{width:22px;height:22px}
.iphoto input{position:absolute;inset:0;opacity:0;cursor:pointer}
.iphoto:hover{box-shadow:0 0 0 2px var(--primary)}
.check.mini{min-height:0;font-size:13px;font-weight:400;color:var(--ink-3)}
.avail{position:relative;display:inline-flex;padding:3px;border-radius:99px;background:var(--surface-2);cursor:pointer;font-weight:600;font-size:13px}
.avail input{position:absolute;opacity:0}
.avail span{padding:8px 14px;border-radius:99px;color:var(--ink-3);transition:all .15s}
.avail input:not(:checked)~.av-on{background:var(--good-soft);color:var(--good)}
.avail input:checked~.av-off{background:var(--bad-soft);color:var(--bad)}
.avail input:focus-visible~span{outline:2px solid var(--ink);outline-offset:1px}
.dchips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.dchip{position:relative;cursor:pointer}
.dchip input{position:absolute;opacity:0}
.dchip span{display:inline-flex;align-items:center;height:38px;padding:0 16px;border-radius:99px;font-weight:500;background:var(--surface);box-shadow:0 0 0 1px var(--line-2);color:var(--ink-2);transition:all .12s}
.dchip input:checked+span{--t:var(--c3);background:color-mix(in srgb,var(--t) 14%,var(--surface));box-shadow:0 0 0 1.5px color-mix(in srgb,var(--t) 60%,transparent);color:color-mix(in srgb,var(--t) 60%,var(--ink))}
.dchip.d-nonveg input:checked+span{--t:var(--c8)}.dchip.d-egg input:checked+span{--t:var(--c4)}.dchip.d-fish input:checked+span{--t:var(--c1)}.dchip.d-gf input:checked+span{--t:var(--c7)}
.dchip input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.savedock{position:sticky;bottom:0;z-index:4;display:flex;justify-content:flex-end;gap:8px;padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px));background:linear-gradient(to top,var(--bg) 70%,transparent)}
.savedock .btn{width:auto;height:44px;padding:0 20px;border-radius:12px;font-size:14.5px;justify-content:center;text-decoration:none}
/* Item choices builder */
.chg{padding:14px;border-radius:14px;background:var(--surface-2)}
.chg-h{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.chg-n{flex:1;font-weight:600;background:var(--surface)}
.cho-l{display:flex;flex-direction:column;gap:8px}
.cho-add{margin-top:6px;color:var(--primary);font-weight:600;padding-left:2px}
.chg-x:hover,.cho-x:hover{color:var(--bad);background:var(--bad-soft)}
/* every control in a row is the same width */
.sc>.withbtn{width:100%}
.sc .withbtn .btn{height:44px}
/* Offers */
.ocard{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:16px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.ocard .kchip{width:44px;height:44px;border-radius:13px}
.ocard .kchip svg.i{width:22px;height:22px}
.ocard.paused{opacity:.72}
.ocard.paused .kchip{filter:grayscale(1)}
.o-acts{display:flex;gap:6px}
.obtn{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;border-radius:10px;background:var(--surface-2);font-weight:500;font-size:13.5px;color:var(--ink-2)}
.obtn:hover{background:var(--line)}
.obtn.bad{color:var(--bad);background:var(--bad-soft)}
.obtn svg.i{width:16px;height:16px}
@media (max-width:700px){.ocard{grid-template-columns:44px minmax(0,1fr)}.ocard .tagp{grid-column:2;justify-self:start}.o-acts{grid-column:1/-1}.o-acts .obtn{flex:1;justify-content:center}}
.okind{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line);cursor:pointer;transition:box-shadow .12s}
.okind input{position:absolute;opacity:0}
.okind:hover{box-shadow:0 0 0 1px var(--line-2)}
.okind:has(input:checked){box-shadow:0 0 0 2px var(--k);background:color-mix(in srgb,var(--k) 6%,var(--surface))}
.okind:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.okind small{font-size:12.5px;color:var(--ink-3)}
.daychips{display:flex;flex-wrap:wrap;gap:6px}
.daychips .dchip span{height:36px;padding:0 14px}
.daychips .dchip input:checked+span{--t:var(--primary)}
.opreview{margin-top:16px;padding:14px 16px;border-radius:12px;background:var(--good-soft);color:var(--ink);font-size:14.5px}
.opreview .ai-mark{display:none}
.suf i{white-space:nowrap}
.suf .field[name=min_qty]{padding-right:56px}
/* Practice mode */
.pbar{position:fixed;top:0;left:0;right:0;z-index:70;height:36px;display:flex;align-items:center;justify-content:center;gap:14px;padding:0 12px;
  background:repeating-linear-gradient(135deg,#C98500 0 14px,#B87A00 14px 28px);color:#fff;font-size:13px}
.pbar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pbar button{height:26px;padding:0 12px;border-radius:99px;background:#fff;color:#7A5200;font-weight:600;font-size:12.5px;flex:none}
body:has(.pbar).pg{padding-top:36px}
body:has(.pbar) .side,body:has(.pbar) .mtop{top:36px}
body:has(.pbar) .app{height:calc(100% - 36px);margin-top:36px}
@media (max-width:520px){.pbar span b~*{display:none}.pbar{font-size:12px}}
.side-prac{margin-top:auto;color:var(--ink-2)!important}
.side-prac em{margin-left:auto;font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--warn-soft);color:var(--warn)}
.side .side-prac+.side-out{margin-top:0}
.practice-hero{display:flex;gap:18px;align-items:flex-start;max-width:760px}
.practice-hero .kchip{width:48px;height:48px;border-radius:14px}
.practice-hero h2{margin:2px 0 8px;font-size:19px}
.plist{margin:0;padding-left:18px;color:var(--ink-2);line-height:1.6}
.avail.mini{padding:2px;font-size:12px}
.avail.mini span{padding:5px 10px}
.avail.mini .is.av-on{background:var(--good-soft);color:var(--good)}
.avail.mini .is.av-off{background:var(--bad-soft);color:var(--bad)}
.dup-note{display:none;color:var(--bad);font-size:12.5px;margin-top:6px}
.chg.dup{box-shadow:inset 0 0 0 1.5px var(--bad)}
.chg.dup .dup-note{display:block}
.staffc{display:block;padding:0}
.staffc summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 16px}
.staffc summary::-webkit-details-marker{display:none}
.staffc[open] summary{border-bottom:1px solid var(--line)}
.staffc .staff-edit,.staffc>form{padding:0 16px}
.staffc>form:last-child{padding-bottom:16px}
.staffc.off{opacity:.65}
/* Settings home: sections with space and a line between them */
.sgroup-h{padding:22px 0 26px;border-top:1px solid var(--line)}
.sgroup-h:first-of-type{border-top:0;padding-top:4px}
.sgroup-h>h2{margin:0 0 14px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
.shome{gap:14px}
.scard{align-items:center;padding:20px;box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(0,0,0,.03)}
.scard .chev{margin-left:auto;color:var(--ink-3);flex:none}
.sct small{display:block}
.sct em{margin-top:8px;display:inline-block;width:max-content;max-width:100%;padding:3px 10px;border-radius:99px;background:color-mix(in srgb,var(--k) 11%,var(--surface))}
.btoast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,120px);z-index:80;background:var(--ink);color:var(--bg);padding:11px 18px;border-radius:12px;font-weight:500;box-shadow:var(--shadow);transition:transform .25s;max-width:calc(100% - 32px);text-align:center}
.btoast.on{transform:translate(-50%,0)}
.btoast.bad{background:var(--bad);color:#fff}
/* Choices v2: clean white cards, a dot marks the usual option, a live counter preview */
.chg{background:var(--surface);padding:6px 16px 14px;border-radius:14px;box-shadow:0 0 0 1px var(--line)}
.chg-h{margin:0;padding:8px 0;border-bottom:1px solid var(--line)}
.chg-n{flex:1;border:0;background:transparent;font-size:16px;font-weight:600;padding:8px 0;outline:0;min-width:0}
.chg-n::placeholder{font-weight:500;color:var(--ink-3)}
.cho-l{gap:0}
.cho-n{border:0;background:transparent;padding:9px 0;font-size:14.5px;outline:0;min-width:0}
.cho-n:focus,.chg-n:focus{box-shadow:0 2px 0 var(--primary)}
.cho-p{display:flex;align-items:center;gap:4px;height:36px;padding:0 10px;border-radius:9px;background:var(--surface-2)}
.cho-p i{font-style:normal;color:var(--ink-3);font-size:13px;white-space:nowrap}
.cho-p input{border:0;background:transparent;width:100%;outline:0;font-variant-numeric:tabular-nums}
/* Stock: two clear choices */
.tchoice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:6px}
.tch{position:relative;display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:14px;box-shadow:0 0 0 1px var(--line);cursor:pointer}
.tch input{position:absolute;opacity:0}
.tch small{color:var(--ink-3);font-size:13px}
.tch:has(input:checked){box-shadow:0 0 0 2px var(--primary);background:color-mix(in srgb,var(--primary) 5%,var(--surface))}
.tch:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
@media (max-width:520px){.tchoice{grid-template-columns:1fr}}
.combo-note{font-size:14px}
.ithumb .glyph{width:24px;height:24px;stroke-width:1.5}
.mimg span .glyph{width:52px;height:52px;stroke-width:1.2}
/* Menu: list view */
.mlist{padding:4px 18px}
.mrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.mrow:first-child{border-top:0}
.mrn{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mrn b{font-weight:600}
.mrn small{color:var(--ink-3);font-size:13px}
.mrp{font-size:15.5px}
.mrow.out{opacity:.55}
.mhead .seg a{padding:6px 12px;border-radius:7px;text-decoration:none;color:var(--ink-3);font-weight:500;font-size:13.5px}
.mhead .seg a.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
/* Printed menu: four designs */
.ptpls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}
.ptpl{display:grid;grid-template-columns:34px auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:10px 14px 10px 10px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);text-decoration:none;color:inherit}
.ptpl.on{box-shadow:0 0 0 2px var(--primary)}
.ptpl-sw{grid-row:span 2;width:34px;height:34px;border-radius:9px}
.ptpl small{font-size:12px;color:var(--ink-3)}
.ptpl.t-classic .ptpl-sw{background:#F4ECDD;box-shadow:inset 0 0 0 2px #8A6A3B}
.ptpl.t-chalk .ptpl-sw{background:#24302B;box-shadow:inset 0 0 0 2px #E9E4D4}
.ptpl.t-minimal .ptpl-sw{background:#fff;box-shadow:inset 0 0 0 1px #ccc}
.ptpl.t-cafe .ptpl-sw{background:#F7D9C4;box-shadow:inset 0 0 0 2px #5E5CE6}
.psheet{max-width:820px;margin:0 auto 40px;padding:48px 52px;border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.12);--ink-m:#2a2117;--acc:#8A6A3B;--paper:#FBF6EC;background:var(--paper);color:var(--ink-m)}
.psheet header{text-align:center;margin-bottom:30px}
.psheet header img{max-height:70px;max-width:160px;object-fit:contain;margin-bottom:10px}
.psheet h1{margin:0;font-size:40px;letter-spacing:.02em}
.ptag{margin:8px 0 0;font-style:italic;opacity:.8}
.pcols{columns:2;column-gap:44px}
@media (max-width:640px){.pcols{columns:1}.psheet{padding:28px 22px}}
.psec{break-inside:avoid;margin-bottom:26px}
.psec h2{margin:0 0 4px;font-size:21px;color:var(--acc);letter-spacing:.04em}
.pintro{margin:0 0 10px;font-size:13px;opacity:.75;font-style:italic}
.pitem{margin:9px 0}
.pline{display:flex;align-items:baseline;gap:8px}
.pn{font-weight:600;display:inline-flex;align-items:center;gap:6px}
.pn .vm{transform:scale(.85)}
.pdots{flex:1;border-bottom:1.5px dotted currentColor;opacity:.35;transform:translateY(-4px)}
.pp{font-weight:700;font-variant-numeric:tabular-nums}
.pd{margin:2px 0 0;font-size:13px;opacity:.75}
.psheet footer{margin-top:24px;padding-top:14px;border-top:1px solid currentColor;text-align:center;font-size:12px;opacity:.7}
.psheet.t-classic{font-family:"Playfair Display",Georgia,serif}
.psheet.t-classic h1{text-transform:uppercase;letter-spacing:.12em}
.psheet.t-classic header{border-bottom:3px double var(--acc);padding-bottom:18px}
.psheet.t-chalk{--paper:#24302B;--ink-m:#EFEBDD;--acc:#F2C35B;font-family:"Caveat",cursive;font-size:20px;background:radial-gradient(ellipse at top,#2E3B35,#1F2924)}
.psheet.t-chalk h1{font-size:56px}.psheet.t-chalk .psec h2{font-size:32px}.psheet.t-chalk .pd,.psheet.t-chalk .pintro{font-size:17px}
.psheet.t-minimal{--paper:#fff;--ink-m:#111;--acc:#111;font-family:Inter,sans-serif}
.psheet.t-minimal h1{font-size:30px;font-weight:700;letter-spacing:-.02em}
.psheet.t-minimal .psec h2{font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:600;border-bottom:1px solid #111;padding-bottom:6px;margin-bottom:10px}
.psheet.t-minimal .pdots{opacity:0}
.psheet.t-cafe{--paper:#FFF4EA;--ink-m:#3A2418;--acc:#5E5CE6;font-family:"Fraunces",Georgia,serif}
.psheet.t-cafe header{background:#5E5CE6;color:#FFF4EA;margin:-48px -52px 30px;padding:34px 20px;border-radius:6px 6px 0 0}
.psheet.t-cafe .psec h2{display:inline-block;background:#F7D9C4;padding:3px 12px;border-radius:99px;font-size:17px}
@media print{body.pg{background:#fff}.psheet{box-shadow:none;margin:0;max-width:none;border-radius:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}.wrap.bare{padding:0}}
/* Stock page */
.slist{display:flex;flex-direction:column;gap:8px}
.srow2{display:grid;grid-template-columns:48px minmax(0,1fr) 110px 110px 150px;gap:14px;align-items:center;padding:12px 16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line);text-decoration:none;color:inherit}
.srow2:hover{box-shadow:0 0 0 1px var(--line-2),0 6px 18px rgba(0,0,0,.05)}
.sr-m{display:flex;flex-direction:column;gap:2px;min-width:0}
.sr-m b{font-weight:600}
.sr-m small{font-size:12.5px;color:var(--ink-3)}
.sr-s{display:flex;flex-direction:column;gap:2px}
.sr-s small{font-size:11.5px;color:var(--ink-3)}
.sr-q{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.sr-q b{font-size:22px;font-weight:700}
@media (max-width:760px){.srow2{grid-template-columns:44px minmax(0,1fr) auto}.sr-s{display:none}}
.empty-state{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px;padding:40px 20px}
.empty-state .kchip{width:52px;height:52px;border-radius:16px}
.empty-state h2{margin:6px 0 0}
.sfind{margin:14px 0 6px}
.cnt-list{display:flex;flex-direction:column}
.cnt-row{display:grid;grid-template-columns:minmax(0,1fr) auto 170px;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.cnt-row .suf .field{padding-right:72px}
.cnt-d{font-size:13px;font-weight:600}
.cnt-d.ok{color:var(--good)}.cnt-d.more{color:var(--info)}.cnt-d.less{color:var(--bad)}
.good-t{color:var(--good);font-weight:600}
/* Counter side menu */
.drawer{position:fixed;top:0;bottom:0;left:0;width:300px;max-width:86vw;z-index:65;background:var(--surface);box-shadow:var(--shadow);transform:translateX(-105%);transition:transform .22s ease;display:flex;flex-direction:column;padding:18px 14px calc(14px + env(safe-area-inset-bottom,0px));overflow:auto}
.drawer-on .drawer{transform:none}
.drawer-scrim{position:fixed;inset:0;z-index:64;background:var(--scrim);opacity:0;pointer-events:none;transition:opacity .2s}
.drawer-on .drawer-scrim{opacity:1;pointer-events:auto}
body:has(.pbar) .drawer{top:36px}
.dw-me{display:flex;gap:12px;align-items:center;padding:4px 6px 14px}
.dw-me .avatar{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--surface-2);flex:none}
.dw-me b{display:block;font-size:15.5px}
.dw-me small{color:var(--ink-3);font-size:12.5px}
.dw-today{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px;border-radius:14px;background:linear-gradient(150deg,color-mix(in srgb,var(--c1) 9%,var(--surface)),var(--surface));box-shadow:0 0 0 1px var(--line);margin-bottom:12px}
.dw-today small{display:block;font-size:12px;color:var(--ink-3)}
.dw-today b{font-size:20px;font-weight:700}
.dw-nav{display:flex;flex-direction:column;gap:2px}
.dw-nav a,.dw-nav button,.dw-out{display:flex;align-items:center;gap:12px;height:46px;padding:0 12px;border-radius:11px;color:var(--ink-2);font-weight:500;text-decoration:none;width:100%;text-align:left}
.dw-nav a:hover,.dw-nav button:hover{background:var(--surface-2);color:var(--ink)}
.dw-nav svg,.dw-out svg{color:var(--ink-3)}
.dw-nav em{margin-left:auto;font-style:normal;font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;background:var(--warn-soft);color:var(--warn)}
.dw-bo{margin-top:8px;background:var(--surface-2);color:var(--ink)!important}
.dw-out{margin-top:auto;color:var(--bad)}
.dw-out svg{color:var(--bad)}
.langs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.langs .opt{height:48px;justify-content:center;font-size:15px}
/* Counter customer card, Toast-style */
.ctags i.vip{--t:var(--c6)}.ctags i.regular{--t:var(--c7)}.ctags i.new{--t:var(--c4)}.ctags i.lapsed{--t:var(--c8)}.ctags i.bday{--t:var(--c5)}
.cnote2{display:flex;flex-direction:column;gap:2px;padding:8px 10px;margin-top:6px;border-radius:10px;background:color-mix(in srgb,var(--c4) 9%,var(--surface));font-size:12.5px}
.cnote2 b{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--ink-3)}
.btoast{visibility:hidden}
.btoast.on{visibility:visible}
.ptpls .ai-btn{width:auto;flex:none;height:48px;padding:0 16px;border-radius:12px;justify-content:center}
/* Side menu v2: light, grouped, roomy; the open page is a soft pill with a white icon tile */
.side{width:256px;padding:20px 14px;gap:2px;background:#FCFCFC;box-shadow:1px 0 0 var(--line)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .side{background:var(--surface)}}
.side-h{padding:2px 8px 18px;border-bottom:0}
.side-h .mark{width:38px;height:38px;border-radius:11px}
.side-h .shop b{font-size:16px;font-weight:700;letter-spacing:-.02em}
.side-n{display:flex;flex-direction:column;gap:2px;overflow:auto}
.side-l{display:block;margin:16px 12px 6px;font-size:12px;font-weight:500;color:var(--ink-3)}
.side a{height:46px;gap:12px;padding:0 8px;border-radius:14px;font-size:14.5px;color:var(--ink-2)}
.side-ic{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex:none;color:var(--ink-3);transition:background .15s}
.side a:hover{background:var(--surface-2);color:var(--ink)}
.side a.on{background:var(--surface-2);color:var(--ink);font-weight:600;box-shadow:inset 0 0 0 1px var(--line)}
.side a.on .side-ic{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1),0 0 0 1px var(--line)}
.side a.on svg{color:var(--ink)}
.side .side-out .side-ic,.side .side-out svg{color:var(--bad)}
@media (min-width:900px){body.has-side .wrap{margin-left:256px}}
/* Guest card at the counter (Toast reference): floating white card, big name, soft uppercase tags, a 3 x 2 stats grid, guest notes */
.gcard2{background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line),0 8px 24px rgba(0,0,0,.07);padding:14px 14px 4px}
.g2-top{display:flex;align-items:center;gap:12px}
.g2-av{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;flex:none;font-weight:700;font-size:15px;color:color-mix(in srgb,var(--k) 60%,var(--ink));background:color-mix(in srgb,var(--k) 16%,var(--surface))}
.g2-id{flex:1;min-width:0}
.g2-id b{display:block;font-size:19px;font-weight:700;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g2-id small{font-size:12.5px;color:var(--ink-3)}
.g2-tags{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 2px}
.g2-tags i{font-style:normal;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:4px 10px;border-radius:99px;--t:var(--c7);
  background:color-mix(in srgb,var(--t) 13%,var(--surface));color:color-mix(in srgb,var(--t) 60%,var(--ink));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--t) 24%,transparent)}
.g2-tags i.vip{--t:var(--c6)}.g2-tags i.regular{--t:var(--c7)}.g2-tags i.new{--t:var(--c4)}.g2-tags i.lapsed{--t:var(--c8)}.g2-tags i.bday{--t:var(--c5)}
.g2-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px;border-top:1px solid var(--line)}
.g2-stats>div{display:flex;flex-direction:column;gap:2px;padding:10px 10px 10px 0;min-width:0}
.g2-stats>div:not(:nth-child(3n+1)){padding-left:10px;border-left:1px solid var(--line)}
.g2-stats>div:nth-child(n+4){border-top:1px solid var(--line)}
.g2-stats b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g2-stats span{font-size:11.5px;color:var(--ink-3)}
.g2-owe b{color:var(--warn)}
.g2-owe .textbtn{padding:0;height:auto;font-size:11.5px;color:var(--warn);font-weight:600;text-decoration:underline}
.g2-note{display:flex;flex-direction:column;gap:3px;padding:10px 0 10px;border-top:1px solid var(--line)}
.g2-note b{font-size:12.5px;font-weight:600}
.g2-note span{font-size:13px;color:var(--ink-2)}
/* Dashboard v3 (reference layout) */
:root{--hl:#C6EF5E;--on-hl:#1A1C10;--deep:#1E1F24}
.dhead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.dhead h1{margin:0;font-size:30px;font-weight:700;letter-spacing:-.03em}
.dhead p{margin:4px 0 0;color:var(--ink-3)}
.dlay{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
@media (min-width:1150px){.dlay{grid-template-columns:minmax(0,1fr) 330px}}
.dmain,.dside{display:flex;flex-direction:column;gap:18px;min-width:0}
.dmain>.card,.dside>.card{margin:0}
.tcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:760px){.tcards{grid-template-columns:1fr}}
.tcard{background:var(--surface);border-radius:20px;padding:18px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 0 0 1px var(--line)}
.tc-top{display:flex;gap:12px;align-items:center}
.tc-top b{display:block;font-size:14.5px;font-weight:600}
.tc-top small{font-size:12.5px;color:var(--ink-3)}
.tc-ic{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;flex:none;color:color-mix(in srgb,var(--k) 60%,var(--ink));background:color-mix(in srgb,var(--k) 16%,var(--surface))}
.tc-big{font-size:30px;font-weight:700;letter-spacing:-.03em;margin:14px 0 12px}
.tc-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:12px;border-top:1px dashed var(--line-2)}
.tc-row small{display:block;font-size:11.5px;color:var(--ink-3)}
.tc-row b{font-size:14px;font-weight:600}
.drow{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px}
@media (max-width:900px){.drow{grid-template-columns:1fr}}
.drow .card{margin:0;border-radius:20px}
.wc-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}
.wc-h h2{margin:0;font-size:18px;font-weight:700;letter-spacing:-.02em}
.wc-h p{margin:6px 0 0;font-size:12.5px;color:var(--ink-3);display:flex;align-items:center;gap:6px}
.wc-chip{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:var(--surface-2)}
.wc-chip svg{width:13px;height:13px}
.wc-chip.down svg{transform:rotate(90deg)}
.wc-tot{font-weight:700;font-size:15px}
.wbars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;height:210px;align-items:end;padding-top:40px}
.wbar{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-decoration:none;color:var(--ink-3)}
.wbar i{display:block;width:14px;border-radius:99px;background:var(--deep);transition:transform .15s}
.wbar.fut i{background:var(--line-2)}
.wbar.on i{background:var(--hl);box-shadow:0 0 0 2px color-mix(in srgb,var(--hl) 50%,transparent)}
.wbar:hover i{transform:scaleX(1.25)}
.wbar em{font-style:normal;font-size:12px;margin-top:10px}
.wbar.on em{color:var(--ink);font-weight:700}
.wtip{position:absolute;top:-38px;left:50%;transform:translateX(-50%);background:var(--deep);color:#fff;font-size:12px;font-weight:700;padding:5px 9px;border-radius:9px;white-space:nowrap;display:flex;flex-direction:column;align-items:center;line-height:1.2}
.wtip small{font-weight:400;opacity:.7;font-size:10.5px}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .wbar i{background:#E8E8EC}:root:not([data-theme="light"]) .wbar.on i{background:var(--hl)}}
.bs-row{display:flex;align-items:center;gap:12px;padding:10px 0;text-decoration:none;color:inherit;border-top:1px solid var(--line)}
.bs-row:first-of-type{border-top:0}
.bs-ic{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--c2) 13%,var(--surface));color:color-mix(in srgb,var(--c2) 60%,var(--ink))}
.bs-row:nth-of-type(2) .bs-ic{background:color-mix(in srgb,var(--c7) 13%,var(--surface));color:color-mix(in srgb,var(--c7) 60%,var(--ink))}
.bs-row:nth-of-type(3) .bs-ic{background:color-mix(in srgb,var(--c3) 13%,var(--surface));color:color-mix(in srgb,var(--c3) 60%,var(--ink))}
.bs-row:nth-of-type(4) .bs-ic{background:color-mix(in srgb,var(--c4) 15%,var(--surface));color:color-mix(in srgb,var(--c4) 60%,var(--ink))}
.bs-ic .glyph{width:22px;height:22px}
.bs-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.bs-m b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bs-m small{font-size:12px;color:var(--ink-3)}
.bs-go{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 1px var(--line);color:var(--ink-2)}
.bs-go svg{width:15px;height:15px}
.moneyin{display:flex;flex-direction:column;gap:10px}
.mi-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto 52px;gap:14px;align-items:center;padding:12px 16px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.mi-ic{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;color:color-mix(in srgb,var(--k) 60%,var(--ink));background:color-mix(in srgb,var(--k) 15%,var(--surface))}
.mi-m{display:flex;flex-direction:column;gap:2px}
.mi-m b{font-weight:600}
.mi-m small,.mi-a small{font-size:12px;color:var(--ink-3)}
.mi-a{display:flex;flex-direction:column;align-items:flex-end}
.mi-a b{font-weight:600}
.ring{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--k) calc(var(--p)*1%),var(--surface-2) 0)}
.ring b{width:36px;height:36px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:11px;font-weight:700}
.cashcard{position:relative;overflow:hidden;border-radius:22px;padding:22px;background:var(--deep);color:#fff}
.cashcard::after{content:"";position:absolute;right:-40px;bottom:-60px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--hl) 45%,transparent),transparent 70%)}
.cc-top{display:flex;align-items:center;gap:10px}
.cc-top span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.1)}
.cc-top small{font-size:13px;opacity:.8}
.cashcard>b{display:block;font-size:34px;font-weight:700;letter-spacing:-.03em;margin:14px 0 4px}
.cashcard p{margin:0 0 16px;font-size:13px;opacity:.7}
.cc-btn{position:relative;z-index:1;display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:99px;background:var(--hl);color:var(--on-hl);font-weight:700;text-decoration:none;font-size:14px}
.dcal{border-radius:20px}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.cw{font-size:11.5px;font-weight:600;color:var(--ink-3);padding:4px 0;background:var(--surface-2);border-radius:6px}
.cd{position:relative;height:34px;display:grid;place-items:center;border-radius:50%;font-size:13px;text-decoration:none;color:var(--ink-2)}
.cd:hover{background:var(--surface-2)}
.cd.fut{color:var(--ink-3)}
.cd.has::after{content:"";position:absolute;bottom:3px;width:4px;height:4px;border-radius:50%;background:var(--c3)}
.cd.on{background:var(--hl);color:var(--on-hl);font-weight:700}
.cal-k{font-size:12px;margin:10px 0 0;display:flex;align-items:center;gap:6px}
.cal-k i{width:6px;height:6px;border-radius:50%;background:var(--c3)}
.natt{display:flex;flex-direction:column;gap:8px}
.nat-n{min-width:26px;height:26px;padding:0 8px;border-radius:99px;display:grid;place-items:center;font-weight:700;font-size:13px;background:var(--hl);color:var(--on-hl)}
.na-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line);text-decoration:none;color:inherit}
.na-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--surface-2)}
.na-ic.warn{background:var(--warn-soft);color:var(--warn)}.na-ic.bad{background:var(--bad-soft);color:var(--bad)}.na-ic.info{background:var(--info-soft);color:var(--info)}
.na-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.na-m b{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.na-m small{font-size:12px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Reports v3 (analysis reference): big title, pill tools, a dark headline tile, soft grey bars with the best day highlighted, a busy-times grid */
.rhead{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.rhead h1{margin:0;font-size:34px;font-weight:700;letter-spacing:-.035em;line-height:1.1}
.rhead h1 span{font-weight:400;color:var(--ink-2)}
.rhead p{margin:6px 0 0;color:var(--ink-3)}
.rtools{display:flex;gap:10px;align-items:center}
.rpick{position:relative}
.rpick summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;height:50px;padding:0 18px 0 14px;border-radius:99px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.rpick summary::-webkit-details-marker{display:none}
.rpick summary span{display:flex;flex-direction:column;line-height:1.15}
.rpick summary small{font-size:11px;color:var(--ink-3)}
.rpick summary b{font-size:14px;font-weight:600}
.rpick.dark summary{background:var(--deep);color:#fff;box-shadow:none;padding:0 16px 0 20px}
.rpop{position:absolute;right:0;top:calc(100% + 8px);z-index:10;min-width:220px;padding:6px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);display:flex;flex-direction:column}
.rpop a{padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--ink-2);font-weight:500}
.rpop a:hover,.rpop a.on{background:var(--surface-2);color:var(--ink)}
.rtiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
@media (max-width:760px){.rtiles{grid-template-columns:1fr}}
.rtile{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border-radius:26px;background:var(--surface-2);text-decoration:none;color:inherit;min-height:160px}
.rtile.dark{background:var(--deep);color:#fff}
.rt-top{display:flex;justify-content:space-between;align-items:center}
.rt-top span{font-size:14px;opacity:.85}
.rt-top i{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--ink)}
.rtile.dark .rt-top i{background:#fff;color:#111}
.rtile b{font-size:38px;font-weight:600;letter-spacing:-.035em;margin-top:auto}
.rtile small{font-size:12.5px;opacity:.7;display:flex;align-items:center;gap:8px}
.rchip{font-size:11px;font-weight:700;padding:2px 8px;border-radius:99px;background:rgba(127,127,127,.15)}
.rchip.up{background:var(--hl);color:var(--on-hl)}
.rchip.down{background:var(--bad-soft);color:var(--bad)}
.rcard{background:var(--surface);border-radius:24px;padding:20px 22px;box-shadow:0 0 0 1px var(--line);margin-bottom:16px}
.rc-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.rc-h h2{margin:0;font-size:18px;font-weight:700;letter-spacing:-.02em}
.rc-h small{font-size:12.5px;color:var(--ink-3)}
.rsays h2{margin:0 0 6px;font-size:18px}
.rrow{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px}
@media (max-width:980px){.rrow{grid-template-columns:1fr}}
.fbars{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px;height:220px;align-items:end;padding-top:34px}
.fbar{position:relative;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-decoration:none;color:var(--ink-3)}
.fbar i{display:block;width:100%;max-width:56px;border-radius:14px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.fbar:hover i{background:var(--line)}
.fbar.best i{background:repeating-linear-gradient(135deg,var(--line-2) 0 2px,transparent 2px 7px),var(--surface-2)}
.fbar em{font-style:normal;font-size:11.5px;margin-top:8px;height:14px}
.ftag{position:absolute;top:-30px;background:var(--hl);color:var(--on-hl);font-weight:700;font-size:12px;padding:5px 10px;border-radius:9px;white-space:nowrap}
.heat{display:grid;grid-template-columns:34px repeat(var(--c),minmax(0,1fr));gap:4px;align-items:center}
.heat .hh{font-size:10.5px;color:var(--ink-3);text-align:left;white-space:nowrap}
.heat .hw{font-size:12px;color:var(--ink-3)}
.hc{display:block;aspect-ratio:1;border-radius:7px;background:repeating-linear-gradient(135deg,var(--line) 0 1.5px,transparent 1.5px 5px),var(--surface-2)}
.hc.l1{background:color-mix(in srgb,var(--hl) 28%,var(--surface))}.hc.l2{background:color-mix(in srgb,var(--hl) 52%,var(--surface))}
.hc.l3{background:color-mix(in srgb,var(--hl) 78%,var(--surface))}.hc.l4{background:var(--hl)}
/* Printed menus v2: better fonts, logo spot, Bistro design */
.plogo{display:block;margin:0 auto 12px;max-height:84px;max-width:200px;object-fit:contain}
.plogo-empty{display:inline-flex;align-items:center;justify-content:center;width:180px;height:70px;margin:0 auto 12px;border:1.5px dashed currentColor;border-radius:12px;opacity:.5;font-size:13px;text-decoration:none;color:inherit;font-family:Inter,sans-serif}
.psheet .pn .vm{display:inline-grid;margin-right:6px;vertical-align:-2px;-webkit-print-color-adjust:exact;print-color-adjust:exact}   /* veg / non-veg mark: required on food menus (FSSAI) */
.ptpl.t-bistro .ptpl-sw{background:#EFE9DD;box-shadow:inset 0 0 0 2px #C0563A}
.psheet.t-classic{font-family:"Jost",sans-serif}
.psheet.t-classic h1,.psheet.t-classic .psec h2,.psheet.t-classic .ptag{font-family:"Cormorant Garamond",Georgia,serif}
.psheet.t-classic h1{font-size:46px;font-weight:700}
.psheet.t-classic .psec h2{font-size:26px}
.psheet.t-minimal{font-family:"Jost",sans-serif}
.psheet.t-cafe{font-family:"DM Sans",sans-serif}
.psheet.t-cafe h1,.psheet.t-cafe .psec h2{font-family:"Fraunces",Georgia,serif}
.psheet.t-bistro{--paper:#EFE9DD;--ink-m:#2B2B2B;--acc:#C0563A;font-family:"Josefin Sans",sans-serif;padding:56px 60px}
.psheet.t-bistro header{text-align:left;display:flex;flex-direction:column;align-items:flex-start;margin-bottom:34px}
.psheet.t-bistro header .plogo,.psheet.t-bistro header .plogo-empty{margin:0 0 14px}
.psheet.t-bistro h1{font-size:44px;font-weight:700;text-transform:uppercase;letter-spacing:.14em}
.psheet.t-bistro .ptag{font-style:normal;text-transform:uppercase;letter-spacing:.3em;font-size:12px;margin-top:6px}
.psheet.t-bistro .ptag::before,.psheet.t-bistro .ptag::after{content:" · "}
.psheet.t-bistro .psec{padding-top:12px;border-top:1.5px solid #2B2B2B}
.psheet.t-bistro .psec h2{font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:.14em;margin-bottom:12px}
.psheet.t-bistro .psec:nth-child(3n+2) h2{color:#4F6B7A}.psheet.t-bistro .psec:nth-child(3n) h2{color:#6E7B3A}
.psheet.t-bistro .pintro{font-style:normal;text-transform:uppercase;letter-spacing:.08em;font-size:11px}
.psheet.t-bistro .pitem{margin:12px 0}
.psheet.t-bistro .pn{text-transform:uppercase;letter-spacing:.1em;font-size:14px;font-weight:700}
.psheet.t-bistro .pdots{opacity:0}
.psheet.t-bistro .pp{font-size:13px;letter-spacing:.06em}
.psheet.t-bistro .pd{text-transform:uppercase;letter-spacing:.06em;font-size:11px;opacity:.7;line-height:1.5}
.psheet.t-bistro footer{border-top:1.5px solid #2B2B2B;text-transform:uppercase;letter-spacing:.12em;font-size:10.5px}
/* Counter: a clearer New order button */
.tab.new{background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary);font-weight:600;box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 35%,transparent);padding:0 14px 0 10px;height:34px}
.tab.new:hover{background:var(--primary);color:var(--on-primary)}
/* Items list: food mark lined up with the name */
/* Cash card: light and calm instead of dark */
.cashcard{background:linear-gradient(150deg,color-mix(in srgb,var(--c3) 14%,var(--surface)) 0%,var(--surface) 70%);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.cashcard::after{display:none}
.cc-top span{background:color-mix(in srgb,var(--c3) 18%,var(--surface));color:color-mix(in srgb,var(--c3) 60%,var(--ink))}
.cc-top small,.cashcard p{opacity:1;color:var(--ink-3)}
.cc-btn{background:var(--primary);color:var(--on-primary)}
/* Notes, reminders and to-dos */
.notes{border-radius:20px}
.nt-add{display:flex;flex-direction:column;gap:8px}
.nt-kinds{display:flex;gap:6px}
.nt-kinds label{position:relative;cursor:pointer}
.nt-kinds input{position:absolute;opacity:0}
.nt-kinds span{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:99px;font-size:13px;font-weight:600;background:var(--surface-2);color:var(--ink-3)}
.nt-kinds label:nth-child(1) input:checked+span{background:color-mix(in srgb,var(--c4) 20%,var(--surface));color:color-mix(in srgb,var(--c4) 60%,var(--ink))}
.nt-kinds label:nth-child(2) input:checked+span{background:color-mix(in srgb,var(--c1) 16%,var(--surface));color:color-mix(in srgb,var(--c1) 60%,var(--ink))}
.nt-kinds label:nth-child(3) input:checked+span{background:color-mix(in srgb,var(--c3) 18%,var(--surface));color:color-mix(in srgb,var(--c3) 60%,var(--ink))}
.nt-kinds input:focus-visible+span{outline:2px solid var(--ink);outline-offset:2px}
.nt-add textarea{resize:vertical;min-height:62px}
.nt-due{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--ink-3)}
.nt-add .btn{width:auto;align-self:flex-end;height:38px;padding:0 18px;border-radius:10px;font-size:14px;justify-content:center}
.nt-list{display:flex;flex-direction:column;margin-top:12px}
.nt-f{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.nt-ic,.nt-chk{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none}
.nt-ic svg,.nt-chk svg{width:16px;height:16px}
.nt[data-k=note] .nt-ic{background:color-mix(in srgb,var(--c4) 16%,var(--surface));color:color-mix(in srgb,var(--c4) 60%,var(--ink))}
.nt[data-k=reminder] .nt-ic{background:color-mix(in srgb,var(--c1) 14%,var(--surface));color:color-mix(in srgb,var(--c1) 60%,var(--ink))}
.nt-chk{box-shadow:inset 0 0 0 1.5px var(--line-2);color:#fff}
.nt.is-done .nt-chk{background:var(--c3);box-shadow:none}
.nt-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.nt-t{font-size:14px;line-height:1.4;word-break:break-word}
.nt-m small{font-size:11.5px;color:var(--ink-3)}
.nt-m small .badge2{height:19px;font-size:11px;margin-right:4px}
.nt.is-done .nt-t{text-decoration:line-through;color:var(--ink-3)}
.nt.is-done{opacity:.7}
.nt-x{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:none;color:var(--ink-3)}
.nt-x svg{width:14px;height:14px}
.nt-x:hover{background:var(--bad-soft);color:var(--bad)}
.nt-x.ok:hover{background:var(--good-soft);color:var(--good)}
.nt-empty{font-size:13px;margin:12px 0 2px}
/* Counter panels: open inside the order column (like the Sri Sri till), not as pop-ups */
.cart{position:fixed}
@media (min-width:1020px){.cart{position:relative}}
.cart .scrim{position:absolute;inset:0;z-index:20;background:transparent;display:block;opacity:0;pointer-events:none;transition:opacity .15s}
.cart .scrim.on{opacity:1;pointer-events:auto}
.cart .sheet{position:absolute;inset:0;width:auto;max-height:none;height:100%;border-radius:inherit;box-shadow:none;transform:translateX(18px);transition:transform .2s ease;
  padding:16px 20px calc(18px + env(safe-area-inset-bottom,0px));overflow-y:auto;gap:14px}
.cart .scrim.on .sheet{transform:none}
.cart .sh{align-items:center;gap:8px;position:sticky;top:-16px;margin:-16px -20px 0;padding:14px 16px 12px;background:var(--surface);z-index:2;box-shadow:0 1px 0 var(--line)}
.sh-back{flex:none}
.sh p{margin:2px 0 0;font-size:12.5px;color:var(--ink-3)}
.bigprint{height:60px;font-size:18px;justify-content:center;gap:12px;border-radius:14px}
.tblbtn{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 9px;margin-left:8px;border-radius:8px;background:var(--surface-2);color:var(--ink-2);vertical-align:middle;font-size:13px}
.tblbtn.set{background:color-mix(in srgb,var(--primary) 12%,var(--surface));color:var(--primary)}
.tblbtn svg{width:17px;height:17px}
.tbl.busy small{color:var(--warn)}
.gcard2{padding:12px 12px 2px;border-radius:14px}
.g2-av{width:38px;height:38px;border-radius:11px;font-size:14px}
.g2-id b{font-size:16.5px}
.g2-tags{margin:8px 0 0}
.g2-stats{margin-top:10px}
.g2-stats>div{padding:8px 8px 8px 0}
.g2-note{padding:8px 0}
.chedit{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.cherow{display:grid;grid-template-columns:minmax(0,1fr) 140px 36px;gap:8px;align-items:center}
/* Counter tiles: name first, price quieter; food marks */
.tile .nm{font-size:15.5px;font-weight:600}
.tile .price{font-size:13.5px;font-weight:500;color:var(--ink-2)}
.dmarks{display:inline-flex;align-items:center;gap:3px;flex:none}
.tile .dmarks{position:absolute;top:12px;right:12px}
.tile .dmarks .vm{position:static}
.dmarks i{font-style:normal;font-size:9px;font-weight:700;letter-spacing:.02em;padding:1px 3px;border-radius:3px;line-height:1.2;background:var(--surface-2);color:var(--ink-2)}
.tile .nm{padding-right:30px}
/* Food-type filter */
.chip.fbtn{padding:0 12px;gap:4px;font-weight:600}
.chip.fbtn svg{width:16px;height:16px}
.chip.fbtn.set{background:var(--primary);color:var(--on-primary)}
.dfbar{display:flex;flex-wrap:wrap;gap:6px;margin:-2px 0 10px;padding:10px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.dfc{height:32px;padding:0 12px;border-radius:99px;font-size:13px;font-weight:500;background:var(--surface-2);color:var(--ink-2)}
.dfc[aria-pressed="true"]{background:color-mix(in srgb,var(--good) 16%,var(--surface));color:var(--good);box-shadow:inset 0 0 0 1.5px var(--good)}
.dfc.d-nonveg[aria-pressed="true"]{background:var(--bad-soft);color:var(--bad);box-shadow:inset 0 0 0 1.5px var(--bad)}
/* Item page: food types that cannot go together */
.dchip.off span{opacity:.38;cursor:not-allowed;box-shadow:0 0 0 1px var(--line)}
.dchip.d-df input:checked+span{--t:var(--c1)}
/* Notes v2: one line to write, small pills and tick boxes */
.notes .wc-h{margin-bottom:8px}
.nt-add{gap:8px}
.nt-kinds span{height:26px;padding:0 11px;font-size:12px}
.nt-in{display:flex;gap:6px}
.nt-in .field{flex:1;height:40px;border-radius:12px}
.nt-go{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--primary);color:var(--on-primary)}
.nt-go svg{width:18px;height:18px}
.nt-due{flex-direction:row;align-items:center;gap:8px}
.nt-due .field{height:36px;font-size:13px;flex:1}
.nt-list{margin-top:6px}
.nt-f{gap:10px;padding:9px 2px;align-items:center}
.nt-ic{width:8px;height:8px;border-radius:50%;margin:0 5px;background:var(--c4)}
.nt-ic svg{display:none}
.nt[data-k=reminder] .nt-ic{background:var(--c1)}
.nt-chk{width:18px;height:18px;border-radius:5px;box-shadow:inset 0 0 0 1.5px var(--line-2);margin:0}
.nt-chk svg{width:12px;height:12px}
.nt.is-done .nt-chk{background:var(--good);box-shadow:none}
.nt-t{font-size:13.5px}
.nt-m small{font-size:11px}
.nt-x{width:24px;height:24px;opacity:0;transition:opacity .12s}
.nt:hover .nt-x,.nt-x:focus-visible{opacity:1}
@media (hover:none){.nt-x{opacity:1}}
/* Stock v3 (reports style) */
.stabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 0 16px;padding:4px;border-radius:99px;background:var(--surface);box-shadow:0 0 0 1px var(--line);width:max-content;max-width:100%}
.stabs a{flex:none;height:38px;padding:0 16px;border-radius:99px;display:inline-flex;align-items:center;text-decoration:none;color:var(--ink-2);font-weight:500}
.stabs a.on{background:var(--deep);color:#fff}
.savedbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;margin-bottom:14px;border-radius:16px;background:var(--good-soft);color:var(--ink)}
.draftnote{padding:10px 14px;margin-bottom:12px;border-radius:12px;background:var(--info-soft);font-size:13.5px}
.dlv{max-width:980px}
.dlv-top{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
@media (max-width:760px){.dlv-top{grid-template-columns:1fr}}
.lab2{display:block;font-size:12.5px;font-weight:500;color:var(--ink-3);margin-bottom:6px}
.fld2{display:block}
.fld2 .field{width:100%}
.combo{position:relative}
.combo-in{display:flex;align-items:center;gap:6px;position:relative}
.combo-in .field{flex:1}
.combo-ic{position:absolute;left:12px;color:var(--ink-3);pointer-events:none}
.combo-ic+.field{padding-left:38px}
.combo .cadd{width:40px;height:40px;border-radius:12px}
.combo-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:12;padding:6px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);display:flex;flex-direction:column;max-height:320px;overflow:auto}
.combo-list button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border-radius:10px;text-align:left}
.combo-list button:hover{background:var(--surface-2)}
.combo-list small{font-size:12px;color:var(--ink-3)}
.combo-list .addc{color:var(--primary);font-weight:600}
.supchip{margin-top:8px;padding:8px 12px;border-radius:10px;background:var(--surface-2);font-size:13px;color:var(--ink-2)}
.minif{margin-top:10px;padding:14px;border-radius:14px;background:var(--surface-2);display:flex;flex-direction:column;gap:10px}
.minig{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.minig .field{background:var(--surface)}
.minif .btn{height:38px}
.dl-head,.dl-row{display:grid;grid-template-columns:minmax(0,1.6fr) 130px 130px 84px 110px 34px;gap:10px;align-items:center}
.dl-head{margin-top:14px;padding:0 0 8px;border-bottom:1px solid var(--line);font-size:12px;font-weight:600;color:var(--ink-3)}
.dl-row{padding:10px 0;border-bottom:1px solid var(--line)}
.dl-n{display:flex;flex-direction:column;gap:2px;min-width:0}
.dl-n b{font-weight:600}
.dl-n small{font-size:11.5px;color:var(--ink-3)}
.dl-row .field{height:40px}
.dl-row .suf .field{padding-right:40px}
.dl-a{font-weight:600}
.dl-empty{padding:16px 0;text-align:center}
@media (max-width:760px){.dl-head{display:none}.dl-row{grid-template-columns:1fr 1fr;}.dl-n{grid-column:1/-1}.dl-a{text-align:left}}
@media (max-width:760px){.dl-tot{grid-template-columns:repeat(3,1fr)}.dl-check{grid-column:1/-1}}
.cntcard{max-width:860px}
.cnt-head,.cnt-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 160px 90px;gap:12px;align-items:center}
.cnt-head{padding:8px 0;border-bottom:1px solid var(--line);font-size:12px;font-weight:600;color:var(--ink-3)}
.cnt-row{padding:10px 0;border-top:0;border-bottom:1px solid var(--line)}
.cnt-row .suf .field{padding-right:46px;height:40px}
.cnt-sb{font-weight:600}
@media (max-width:640px){.cnt-head{display:none}.cnt-row{grid-template-columns:1fr 1fr}.cnt-row .sr-m{grid-column:1/-1}}
.price .per{font-size:11px;color:var(--ink-3);font-weight:500;margin-left:1px}
.tile .dmarks{flex-direction:column;align-items:flex-end;gap:3px}
.dlv{padding-bottom:20px}

/* ===== Counter, batch 13 ===== */
/* Order title: the table button sits on the same line, inside the header, never spilling out */
.c-head h2{display:flex;align-items:center;gap:6px;min-width:0;line-height:28px}
.c-head h2>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.c-head .tblbtn{flex:none;margin-left:2px;height:26px;padding:0 8px;line-height:1}
.c-head .tblbtn b{font-size:13px}

/* Item boxes take their category's colour (Settings, Appearance): a coloured border, or a coloured box */
:root[data-tiles] .tile:not(.out){box-shadow:0 0 0 1.5px color-mix(in srgb,var(--cc) 60%,transparent)}
:root[data-tiles] .tile:not(.out):hover{box-shadow:0 0 0 2px var(--cc)}
:root[data-tiles="filled"] .tile:not(.out){background:color-mix(in srgb,var(--cc) 15%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--cc) 35%,transparent)}
:root[data-tiles="filled"] .tile:not(.out):hover{box-shadow:0 0 0 1.5px var(--cc)}
:root[data-tiles] .tile.in{box-shadow:0 0 0 2.5px var(--ink)}
:root[data-tiles] .list .row{box-shadow:inset 4px 0 0 var(--cc)}
:root[data-tiles="filled"] .list .row:not(.out){background:color-mix(in srgb,var(--cc) 9%,var(--surface))}

/* Customer at the counter (the Sri Sri row): name, visits and last visit, dues with Settle */
.ccard{display:flex;align-items:center;gap:12px;padding:10px 4px 10px 2px}
.cc-av{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;background:color-mix(in srgb,var(--k) 16%,var(--surface));color:color-mix(in srgb,var(--k) 60%,var(--ink))}
.cc-id{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.cc-id b{display:flex;align-items:center;gap:6px;font-size:16px;font-weight:650;min-width:0}
.cc-id b>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-wa{flex:none;display:inline-grid;place-items:center;width:22px;height:22px;color:#25D366}
.cc-wa svg{width:18px;height:18px}
.cc-vis{font-size:13px;color:var(--ink-3)}
.cc-due{font-size:13px;font-weight:600;color:var(--warn)}
.cc-dep{font-size:13px;font-weight:600;color:var(--good)}
.cc-settle{flex:none;height:38px;padding:0 16px;border-radius:10px;font-weight:650;background:var(--warn-soft);color:var(--warn)}
.cc-settle:hover{filter:brightness(.97)}
.cmore{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:12px;background:var(--surface-2)}
.cm-row{display:flex;flex-direction:column;gap:5px;min-width:0}
.cm-lab{font-size:11.5px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.04em}
.cm-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.cmore .uchip{background:var(--surface)}
.cmore .uchip small{color:var(--ink-3);font-weight:500}

/* Settle: pick which unpaid bills */
.st-all{display:flex;align-items:center;gap:10px;font-weight:600;padding:4px 2px}
.st-list{display:flex;flex-direction:column;border-radius:12px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.st-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line);cursor:pointer}
.st-row:first-child{border-top:0}
.st-row small{display:block;font-size:12px;color:var(--ink-3)}
.st-all input,.st-row input{width:20px;height:20px;accent-color:var(--primary);flex:none}

/* Today's bills, shown in place of the menu */
body.ord-on .tabs,body.ord-on .main>.search,body.ord-on .chips,body.ord-on .dfbar,body.ord-on .items{display:none!important}
.ordv{flex:1;min-height:0;overflow:auto;padding:4px 0 90px;display:flex;flex-direction:column;gap:10px}
.ov-top{display:flex;align-items:center;gap:8px}
.ov-top h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em}
.ov-top p{margin:2px 0 0;font-size:13px;color:var(--ink-3)}
.ov-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.ov-tabs button{flex:none;height:34px;padding:0 14px;border-radius:99px;box-shadow:0 0 0 1px var(--line);font-weight:500;font-size:13.5px;background:var(--surface)}
.ov-tabs button[aria-pressed="true"]{background:var(--ink);color:var(--surface);box-shadow:none}
.ov-list{display:flex;flex-direction:column;background:var(--surface);border-radius:14px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.ov-row{border-top:1px solid var(--line)}
.ov-row:first-child{border-top:0}
.ov-row.open{background:var(--surface-2)}
.ov-main{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;text-align:left}
.ov-t{flex:none;width:62px;font-size:13px;color:var(--ink-3)}
.ov-who{flex:1;min-width:0;display:flex;flex-direction:column}
.ov-who b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-who small{font-size:12px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-amt{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.ov-pill{font-style:normal;font-size:11px;font-weight:650;padding:2px 8px;border-radius:99px}
.ov-pill.ok{background:var(--good-soft);color:var(--good)}.ov-pill.due{background:var(--warn-soft);color:var(--warn)}
.ov-pill.bad,.ov-pill.ret{background:var(--bad-soft);color:var(--bad)}
.ov-row.gone .ov-who b,.ov-row.gone .ov-amt b{text-decoration:line-through;color:var(--ink-3)}
.ov-more{padding:0 14px 14px 88px;display:flex;flex-direction:column;gap:4px}
.ov-l{display:flex;justify-content:space-between;gap:10px;font-size:13.5px}
.ov-l small{color:var(--ink-3)}
.ov-acts{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.ov-acts .btn{height:40px;text-decoration:none;width:auto;flex:1 1 0;min-width:130px;justify-content:center;gap:6px;padding:0 12px}
.ov-load{padding:30px;text-align:center;color:var(--ink-3)}
@media (max-width:600px){ .ov-more{padding-left:14px} .ov-t{width:auto} }

/* Language picker inside the side menu, English name in grey */
#dwLangNow{background:var(--surface-2);color:var(--ink-2);font-weight:600}
.dw-langs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px 4px 10px}
.dw-langs button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;min-height:52px;padding:6px 12px;border-radius:11px;box-shadow:0 0 0 1px var(--line);text-align:left;font-weight:600}
.dw-langs button small{font-size:11.5px;font-weight:500;color:var(--ink-3);font-family:var(--f-ui)}
.dw-langs button[aria-pressed="true"]{box-shadow:0 0 0 2px var(--primary);background:color-mix(in srgb,var(--primary) 7%,var(--surface))}

/* Settings: accent swatches and item-box styles */
.acc-sw{width:30px;height:30px;border-radius:50%;background:var(--a);box-shadow:inset 0 0 0 3px rgba(255,255,255,.35)}
.tstyles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.tstyle-opt{position:relative;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;box-shadow:0 0 0 1px var(--line);cursor:pointer}
.tstyle-opt input{position:absolute;opacity:0}
.tstyle-opt:has(input:checked){box-shadow:0 0 0 2px var(--primary)}
.ts-prev{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ts-prev i{font-style:normal;display:flex;flex-direction:column;gap:12px;padding:10px;border-radius:10px;background:var(--surface);box-shadow:0 0 0 1.5px color-mix(in srgb,var(--cc) 60%,transparent)}
.ts-filled .ts-prev i{background:color-mix(in srgb,var(--cc) 15%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--cc) 35%,transparent)}
.ts-prev b{font-size:13px}.ts-prev small{font-size:12px;color:var(--ink-2)}

/* Item page: names in other languages */
.langnames{border-radius:12px;box-shadow:0 0 0 1px var(--line);padding:0 14px;margin:6px 0}
.langnames summary{display:flex;flex-direction:column;gap:2px;padding:12px 0;cursor:pointer;list-style:none}
.langnames summary::-webkit-details-marker{display:none}
.langnames summary small{color:var(--ink-3);font-size:12.5px}
.ln-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;padding:0 0 14px}
.ln-grid label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:13.5px}
.ln-grid label small{color:var(--ink-3);font-weight:500}

/* Phones: a clean top bar (menu, shop, day, home). Tiles or list moves into the side menu. */
.dw-phone{display:none!important}
@media (max-width:639px){
  .dw-phone{display:flex!important}
  .shop b{font-size:15px}
  .manage{width:40px;height:40px;padding:0;justify-content:center;border-radius:11px}
  .manage .lbl2{display:none}
  .manage svg{width:20px;height:20px}
}
/* Phones: choosing an item's options shows just that panel over the menu, then goes back to the menu */
@media (max-width:1019px){
  body.solo .cart{height:auto;max-height:88dvh}
  body.solo .cart .c-head,body.solo .cart .c-body,body.solo .cart .c-foot{display:none}
  body.solo .cart .scrim{position:static}
  body.solo .cart .sheet{position:static;height:auto;max-height:88dvh;transform:none}
}
/* Longer names in Indian languages: let item boxes grow to three lines */
:root:not([lang="en"]) .tile .nm{-webkit-line-clamp:3}
:root:not([lang="en"]) .sec{line-height:1.35}

/* Delivery: upload their bill first (AI fills it in), then check each line */
.billdrop{display:flex;align-items:center;gap:16px;padding:20px;margin-bottom:16px;border-radius:18px;border:2px dashed color-mix(in srgb,var(--primary) 45%,var(--line));background:color-mix(in srgb,var(--primary) 5%,var(--surface));cursor:pointer;position:relative}
.billdrop:hover{background:color-mix(in srgb,var(--primary) 9%,var(--surface))}
.billdrop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.billdrop.off{cursor:default;border-color:var(--line);background:var(--surface)}
.billdrop.off input{display:none}
.bd-ic{flex:none;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:var(--surface);color:var(--primary);box-shadow:0 0 0 1px var(--line)}
.bd-ic svg{width:26px;height:26px}
.bd-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.bd-t b{font-size:17px}.bd-t small{color:var(--ink-2);font-size:13.5px}
.bd-b{flex:none;width:auto;height:42px;padding:0 18px;text-decoration:none;position:relative;z-index:1;pointer-events:none}
.billdrop.off .bd-b{pointer-events:auto}
.bd-busy{display:flex;align-items:center;gap:14px;padding:20px;margin-bottom:16px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.bd-busy small{display:block;color:var(--ink-3);font-size:13px}
.bd-res{padding:12px 16px;margin:-4px 0 16px;border-radius:12px;background:var(--good-soft);font-size:14px}
.bd-res.bad{background:var(--warn-soft)}
@media (max-width:640px){.billdrop{flex-wrap:wrap}.bd-b{width:100%;justify-content:center}}
.mpill{align-self:flex-start;font-style:normal;font-size:11px;font-weight:650;padding:2px 8px;border-radius:99px;margin-top:2px;background:var(--surface-2);color:var(--ink-2)}
.mpill.ok{background:var(--good-soft);color:var(--good)}.mpill.warn{background:var(--warn-soft);color:var(--warn)}.mpill.bad{background:var(--bad-soft);color:var(--bad)}
.dl-row.miss{background:color-mix(in srgb,var(--bad) 4%,var(--surface))}
.dl-row.skip{opacity:.6}
.dl-skipped{grid-column:2/5;color:var(--ink-3);font-size:13px}
.dl-fix{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.dl-fix .obtn.ok{background:var(--good-soft);color:var(--good)}
.dl-pick{flex:1;min-width:180px;max-width:300px}
.dl-pick .field{height:36px}
/* Totals: one clear box, like the bottom of a bill */
.dl-sum{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:20px;margin-top:18px;align-items:start}
.ds-box{order:2;display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:14px;background:var(--surface-2)}
.ds-r{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:14px;color:var(--ink-2)}
.ds-r b{color:var(--ink);font-weight:600}
.ds-t{padding-top:10px;border-top:1px solid var(--line);font-size:16px;color:var(--ink);font-weight:650}
.ds-t b{font-size:22px;font-weight:750}
.ds-chk{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13.5px;color:var(--ink-2);padding-top:6px}
.ds-chk .suf{width:150px}.ds-chk .field{height:40px}
.ds-diff{font-size:13px;font-weight:600;padding:8px 10px;border-radius:10px}
.ds-diff.ok{background:var(--good-soft);color:var(--good)}.ds-diff.warn{background:var(--warn-soft);color:var(--warn)}
.ds-note{order:1}.ds-note textarea{height:auto;min-height:96px;padding-top:10px;resize:vertical}
@media (max-width:760px){.dl-sum{grid-template-columns:1fr}.ds-box{order:1}.ds-note{order:2}}
.draftnote{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
/* old totals row no longer used */

/* Phones: back office lists stay tidy */
@media (max-width:600px){
  .card>h2{flex-wrap:wrap;row-gap:2px}
  .card>h2 small{order:3;flex-basis:100%;margin-left:16px}
  table.bt tr:first-child{display:none}
  table.bt tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:12px 0;border-bottom:1px solid var(--line)}
  table.bt tr:last-child{border-bottom:0}
  table.bt td{padding:0;border:0}
  table.bt td:nth-child(2),table.bt td:nth-child(4),table.bt td:nth-child(6){display:none}
  table.bt td:nth-child(1){grid-column:1;grid-row:1;font-size:12.5px}
  table.bt td:nth-child(3){grid-column:1;grid-row:2}
  table.bt td:nth-child(5){grid-column:2;grid-row:1;font-weight:650}
  table.bt td:nth-child(7){grid-column:2;grid-row:2;text-align:right}
  .tblw{margin:0;padding:0}
  .srow2{grid-template-columns:44px minmax(0,1fr) auto;gap:10px}
  .srow2 .sr-q{flex-direction:column;align-items:flex-end;gap:4px}
  .srow2 .sr-m small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
  .stabs a{padding:0 12px;font-size:13.5px}
  .rtiles{gap:10px}
  .ph1{flex-wrap:wrap}
}
.dl-st{display:flex;align-items:center;gap:8px;margin-top:2px}
.dl-st .mpill{margin:0}
.dl-chg{height:auto;padding:0;font-size:12px;color:var(--ink-3);text-decoration:underline}
@media (max-width:600px){
  .rtiles.r3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
  .rtiles.r3 .rtile{min-height:0;padding:12px;border-radius:16px;gap:2px}
  .rtiles.r3 .rt-top i{display:none}
  .rtiles.r3 .rt-top span{font-size:12px}
  .rtiles.r3 .rtile b{font-size:20px}
  .rtiles.r3 .rtile small{font-size:11px;line-height:1.3}
}

/* Food icons: small and light grey next to the veg / non-veg square */
.dic{width:16px;height:16px;fill:none;stroke:var(--ink-3);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none;opacity:.85}
.dmarks{display:inline-flex;align-items:center;gap:4px}
.tile .dmarks{flex-direction:column;align-items:center;gap:5px}
.dmarks i{display:none}
.dfc{display:inline-flex;align-items:center;gap:6px}
.dfc .dic{width:15px;height:15px}
.dfc .vm{transform:scale(.85)}
.ds-inter{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2)}.ds-inter input{width:18px;height:18px;accent-color:var(--primary)}
/* Customer page: the label sits above its value */
/* Stock rows: the number keeps its place whatever the label says */
.srow2{grid-template-columns:48px minmax(0,1fr) 110px 110px 230px}
.sr-q{display:grid;grid-template-columns:minmax(0,1fr) 108px;align-items:center;gap:12px}
.sr-q>b{text-align:right;white-space:nowrap}
.sr-q .badge2{justify-self:start}
@media (max-width:760px){.srow2{grid-template-columns:44px minmax(0,1fr) auto}}
@media (max-width:600px){.sr-q{grid-template-columns:auto;justify-items:end;gap:4px}.sr-q .badge2{justify-self:end}}

/* Autosave: one small pill at the bottom with Undo */
.asv.ok .asv-dot{background:#3FBF8A}.asv.busy .asv-dot{background:#E3A048}.asv.bad .asv-dot{background:#F07A6E}
.asv-undo{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:99px;background:rgba(255,255,255,.14);color:inherit;font-weight:600}
.asv-undo svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.asv-undo[hidden]{display:none}
/* Item photo: fit it in the square */
.crop{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-top:14px;padding:16px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.crop-box{position:relative;width:240px;height:240px;border-radius:16px;overflow:hidden;background:var(--surface-2);cursor:grab;touch-action:none;flex:none}
.crop-box:active{cursor:grabbing}
.crop-box img{position:absolute;left:0;top:0;max-width:none;user-select:none;-webkit-user-drag:none}
.crop-box::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2px rgba(255,255,255,.7);pointer-events:none}
.crop-side{flex:1;min-width:200px;display:flex;flex-direction:column;gap:8px}
.crop-side small{color:var(--ink-3)}
.crop-side input[type=range]{width:100%;accent-color:var(--primary)}
.crop-acts{display:flex;gap:8px}.crop-acts .btn{width:auto;height:40px;padding:0 18px}
.ph-acts{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
/* Counter: each section is one category, one colour; "Most ordered" boxes stay plain so the row is calm */
.sec-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--cc);margin-right:8px;vertical-align:1px}
:root[data-tiles] .popgrid .tile:not(.out){background:var(--surface);box-shadow:0 0 0 1px var(--line),inset 0 3px 0 var(--cc)}
:root[data-tiles] .popgrid .tile.in{box-shadow:0 0 0 2.5px var(--ink)}
:root[data-tiles="filled"] .tile:not(.out){background:color-mix(in srgb,var(--cc) 11%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--cc) 28%,transparent)}
:root[data-tiles="filled"] .popgrid .tile:not(.out){background:var(--surface);box-shadow:0 0 0 1px var(--line),inset 0 3px 0 var(--cc)}
.crop-side input[type=range]{max-width:320px}

/* One page title style everywhere: "Your stock", light first words, bold last word; tabs in a white pill bar, the active one in the shop's accent colour */
.ph1{align-items:flex-end;margin:4px 0 18px}
.ph1 h1,.dhead h1{margin:0;font-size:34px;font-weight:700;letter-spacing:-.035em;line-height:1.1}
.ph1 h1 span:not(.kchip),.dhead h1 span,.rhead h1 span{font-weight:400;color:var(--ink-2)}
.ph1 p,.dhead p{margin:6px 0 0;color:var(--ink-3)}
.ph1.sph h1{font-size:28px}
.stabs a.on{background:var(--primary);color:var(--on-primary)}
.periods{gap:4px;padding:4px;border-radius:99px;background:var(--surface);box-shadow:0 0 0 1px var(--line);width:max-content;max-width:100%}
.periods a{height:36px;padding:0 16px;background:transparent;box-shadow:none}
.periods a:hover{background:var(--surface-2)}
.periods a.on,.periods a.on:hover{background:var(--primary);color:var(--on-primary)}
@media (max-width:600px){.ph1 h1,.dhead h1,.rhead h1{font-size:28px}}

/* ===================== Kitchen screen ===================== */
.kds-body{height:100dvh;overflow:hidden;background:var(--bg)}
.kds{height:100%;display:flex;flex-direction:column}
.kds-h{display:flex;align-items:center;gap:14px;padding:12px 18px;background:var(--surface);box-shadow:0 1px 0 var(--line);flex-wrap:wrap;row-gap:10px}
.kds-home{flex:none}
.kds-title{display:flex;flex-direction:column;line-height:1.15;min-width:0}
.kds-title b{font-size:19px;font-weight:750;letter-spacing:-.02em}
.kds-station{display:inline-flex;align-items:center;gap:2px;height:auto;padding:0;font-size:12.5px;color:var(--ink-3);font-weight:500}
.kds-station svg{width:15px;height:15px}
.kds-tabs{display:flex;gap:4px;padding:4px;border-radius:99px;background:var(--surface-2);margin-left:6px}
.kds-tabs button{height:40px;padding:0 18px;border-radius:99px;font-weight:600;color:var(--ink-2);display:inline-flex;align-items:center;gap:8px;font-size:14.5px}
.kds-tabs button b{min-width:24px;height:24px;padding:0 7px;border-radius:99px;background:var(--surface);display:inline-grid;place-items:center;font-size:12.5px}
.kds-tabs button[aria-selected="true"]{background:var(--primary);color:var(--on-primary)}
.kds-tabs button[aria-selected="true"] b{background:rgba(255,255,255,.22);color:inherit}
.kds-stats{display:flex;gap:18px;margin-left:auto}
.ks{display:flex;flex-direction:column;line-height:1.2}
.ks small{font-size:11.5px;color:var(--ink-3)}
.ks b{font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.ks.bad b{color:var(--bad)}
.kds-tools{display:flex;gap:6px}
.kbtn{height:40px;padding:0 14px;border-radius:12px;display:inline-flex;align-items:center;gap:7px;font-weight:600;font-size:13.5px;color:var(--ink-2);background:var(--surface-2);text-decoration:none}
.kbtn.icon{width:40px;padding:0;justify-content:center}
.kbtn svg{width:19px;height:19px}
.kbtn[aria-pressed="true"]{background:color-mix(in srgb,var(--primary) 14%,var(--surface));color:var(--primary)}
.kbtn[hidden]{display:none}
.kds-off{padding:8px 18px;background:var(--bad-soft);color:var(--bad);font-weight:600;font-size:13.5px}
.kds-main{flex:1;min-height:0;display:flex}
.kds-grid{flex:1;min-width:0;overflow:auto;padding:16px 18px 30px;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;align-content:start;align-items:start}
.kds-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;gap:6px;padding:80px 20px;color:var(--ink-3);text-align:center}
.kds-empty svg{width:46px;height:46px;fill:none;stroke:var(--good);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;padding:10px;border-radius:50%;background:var(--good-soft);box-sizing:content-box}
.kds-empty b{font-size:18px;color:var(--ink)}

/* a ticket: coloured head by order type, timer turns amber then red; items tap to tick */
.tk{--ty:var(--c1);display:flex;flex-direction:column;background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line),0 2px 6px rgba(0,0,0,.04);overflow:hidden;animation:tkIn .35s ease}
@keyframes tkIn{from{transform:translateY(6px);opacity:0}}
.tk.ty-takeaway{--ty:var(--c2)}.tk.ty-online{--ty:var(--c7)}.tk.ty-dinein{--ty:var(--c1)}
.tk-h{padding:10px 14px 10px;background:color-mix(in srgb,var(--ty) 13%,var(--surface));border-bottom:1px solid color-mix(in srgb,var(--ty) 22%,transparent)}
.tk-r1{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-2)}
.tk-no{font-weight:750;color:var(--ink);font-size:15px}
.tk-cust{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tk-cust::before{content:"·";margin-right:6px;color:var(--ink-3)}
.tk-time{margin-left:auto;flex:none;font-variant-numeric:tabular-nums;font-weight:700;font-size:14px;padding:3px 9px;border-radius:99px;background:var(--surface);color:var(--ink)}
.tk-r2{display:flex;align-items:center;gap:6px;margin-top:4px}
.tk-type{font-size:18px;font-weight:750;letter-spacing:-.01em;margin-right:auto;color:color-mix(in srgb,var(--ty) 60%,var(--ink))}
.tk-badge{font-style:normal;font-size:11px;font-weight:700;padding:3px 8px;border-radius:99px;background:var(--surface);color:var(--ink-2)}
.tk-badge.paid{color:var(--good)}.tk-badge.unpaid{color:var(--ink-3)}
.tk-badge.rush{background:var(--bad);color:#fff}
.tk.lv-warn .tk-time{background:var(--warn);color:#fff}
.tk.lv-late{box-shadow:0 0 0 2.5px var(--bad),0 6px 18px rgba(194,58,46,.18)}
.tk.lv-late .tk-time{background:var(--bad);color:#fff;animation:tkPulse 1.6s ease-in-out infinite}
@keyframes tkPulse{50%{opacity:.6}}
.tk.rush{box-shadow:0 0 0 2.5px var(--bad)}
.tk.st-ready{--ty:var(--good)}
.tk.st-done{opacity:.75}
.tk.sel{outline:3px solid var(--primary);outline-offset:3px}
.tk.hl{box-shadow:0 0 0 2.5px var(--primary)}
.tk-items{list-style:none;margin:0;padding:6px 6px 4px}
.tk-it{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 24px;align-items:start;gap:6px;padding:9px 8px;border-radius:10px;text-align:left}
.tk-it:hover{background:var(--surface-2)}
.tk-it.hl{background:color-mix(in srgb,var(--primary) 10%,var(--surface))}
.tk-q{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ink)}
.tk-n{font-size:17px;font-weight:600;line-height:1.3;color:var(--ink)}
.tk-n small{display:block;margin-top:2px;font-size:13.5px;font-weight:600;color:var(--warn)}
.tk-ck{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line);display:grid;place-items:center;margin-top:1px}
.tk-ck svg{width:14px;height:14px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.tk-it.done .tk-ck{background:var(--good);box-shadow:none}
.tk-it.done .tk-ck svg{opacity:1}
.tk-it.done .tk-n,.tk-it.done .tk-q{color:var(--ink-3);text-decoration:line-through;text-decoration-thickness:2px}
.tk-it.done .tk-n small{color:var(--ink-3)}
.tk-note{margin:2px 12px 8px;padding:8px 10px;border-radius:10px;background:var(--warn-soft);color:var(--warn);font-size:14px;font-weight:600}
.tk-note b{margin-right:4px}
.tk-other{margin:0 14px 8px;font-size:12.5px;color:var(--ink-3)}
.tk-f{display:flex;align-items:center;gap:6px;padding:10px 10px;border-top:1px solid var(--line);margin-top:auto}
.kb{height:44px;padding:0 18px;border-radius:12px;font-weight:700;font-size:15px;display:inline-flex;align-items:center;justify-content:center}
.kb.main{background:var(--primary);color:var(--on-primary);min-width:110px}
.kb.main.ok{background:var(--good);color:#fff}
.kb.ghost{background:var(--surface-2);color:var(--ink-2)}
.kb.ghost.wide{flex:1}
.kb.tool{width:44px;padding:0;background:transparent;color:var(--ink-3)}
.kb.tool:hover{background:var(--surface-2)}
.kb.tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kb.tool.on{color:var(--bad);background:var(--bad-soft)}
.tk-key{font-size:11px;font-weight:700;color:var(--ink-3);border:1px solid var(--line);border-radius:6px;padding:1px 6px}
@media (hover:none){.tk-key{display:none}}

/* all day panel */
.kds-all{width:290px;flex:none;overflow:auto;background:var(--surface);box-shadow:-1px 0 0 var(--line);padding:16px}
.ka-h{display:flex;flex-direction:column;margin-bottom:10px}.ka-h b{font-size:17px}.ka-h small{color:var(--ink-3);font-size:12.5px}
.ka-r{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;align-items:start;padding:10px 8px;border-radius:10px;text-align:left;border-bottom:1px solid var(--line)}
.ka-r b{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
.ka-r span{font-weight:600;font-size:15px;line-height:1.3}.ka-r small{display:block;font-size:12.5px;color:var(--warn);font-weight:600}
.ka-r.on{background:color-mix(in srgb,var(--primary) 10%,var(--surface))}
.ka-none{color:var(--ink-3)}
/* station picker */
.kds-pop{position:fixed;z-index:50;width:min(360px,calc(100vw - 16px));padding:14px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);display:flex;flex-direction:column;gap:10px}
.sp-quick{display:flex;flex-wrap:wrap;gap:6px}.sp-quick button{height:34px;padding:0 12px;border-radius:99px;background:var(--surface-2);font-weight:600;font-size:13px}
.sp-cats{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.sp-cats label{display:flex;align-items:center;gap:8px;padding:8px;border-radius:10px;font-size:14px;cursor:pointer}
.sp-cats label:hover{background:var(--surface-2)}
.sp-cats i{width:8px;height:8px;border-radius:50%;background:var(--cc)}
.sp-cats input{width:18px;height:18px;accent-color:var(--primary)}
.kds-pop small{color:var(--ink-3);font-size:12px}
.kds-toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,20px);opacity:0;pointer-events:none;transition:.2s;z-index:60;display:flex;align-items:center;gap:12px;height:48px;padding:0 6px 0 18px;border-radius:99px;background:var(--ink);color:var(--surface);font-weight:600}
.kds-toast.on{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.kds-toast button{height:36px;padding:0 16px;border-radius:99px;background:rgba(255,255,255,.16);color:inherit;font-weight:700}
.kds-toast span:only-child{padding-right:12px}
@media (max-width:900px){.kds-stats{display:none}.kds-tabs{order:3;width:100%;margin:0}.kds-tabs button{flex:1;justify-content:center;padding:0 10px}.kds-tools{margin-left:auto}.kbtn span{display:none}.kbtn{width:40px;padding:0;justify-content:center}.kds-all{position:fixed;right:0;top:0;bottom:0;z-index:40;box-shadow:var(--shadow)}}
@media (max-width:520px){.kds-grid{grid-template-columns:1fr;padding:12px}.kds-h{padding:10px 12px}}

/* ===================== Order screen for customers (TV) ===================== */
.pk-body{background:#0E1110;color:#fff}
.pk{height:100dvh;display:flex;flex-direction:column;padding:28px 36px;gap:22px}
.pk-h{display:flex;align-items:center;gap:16px}
.pk-h b{font-size:30px;font-weight:750;letter-spacing:-.02em}
.pk-logo{height:52px;width:52px;border-radius:12px;object-fit:cover;background:#fff}
.pk-clock{margin-left:auto;font-size:26px;font-weight:600;opacity:.7;font-variant-numeric:tabular-nums}
.pk-cols{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1.25fr;gap:24px}
.pk-col{border-radius:26px;background:#1B1F1D;padding:24px;display:flex;flex-direction:column;min-height:0}
.pk-col h2{margin:0 0 18px;font-size:clamp(22px,2.4vw,36px);font-weight:700;color:#C9CFCC}
.pk-col.ready{background:#0F3B2B}.pk-col.ready h2{color:#7BE3B3}
.pk-list{display:flex;flex-wrap:wrap;gap:14px;align-content:flex-start;overflow:hidden}
.pk-n{min-width:120px;padding:14px 20px;border-radius:18px;background:rgba(255,255,255,.07);display:flex;flex-direction:column;align-items:center}
.pk-n b{font-size:clamp(34px,4.4vw,64px);font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.pk-n small{margin-top:6px;font-size:clamp(14px,1.3vw,20px);opacity:.75}
.ready .pk-n{background:rgba(123,227,179,.14)}
.pk-n.fresh{animation:pkFresh 1s ease-in-out 6;background:#2BB673;color:#04140D}
@keyframes pkFresh{50%{transform:scale(1.08)}}
.pk-none{font-size:40px;opacity:.3;margin:0}
@media (max-width:700px){.pk{padding:16px}.pk-cols{grid-template-columns:1fr}}
/* Kitchen alerts: new or changed tickets blink for a few seconds, then hold a calm blue ring until someone accepts them.
   Late is a steady red ring, never blinking. Ready gets a big green READY band. */
.tk.lv-late .tk-time{animation:none}
.tk.att{box-shadow:0 0 0 3px var(--c1),0 8px 22px color-mix(in srgb,var(--c1) 25%,transparent)}
.tk.att.lv-late{box-shadow:0 0 0 3px var(--c1),0 0 0 6px var(--bad)}
.tk.blink{animation:tkBlink .9s ease-in-out infinite}
@keyframes tkBlink{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--c1) 55%,transparent),0 8px 22px color-mix(in srgb,var(--c1) 30%,transparent)}}
.tk.att .tk-h{cursor:pointer}
.tk-badge.new{background:var(--c1);color:#fff;text-transform:uppercase;letter-spacing:.03em}
.tk-badge.late{background:var(--bad);color:#fff;text-transform:uppercase;letter-spacing:.03em}
.tk-badge.prep{background:var(--surface);color:var(--ink-2)}
.tk-it.added{background:color-mix(in srgb,var(--c1) 10%,var(--surface));box-shadow:inset 3px 0 0 var(--c1)}
.tk-ready{padding:8px 14px;background:var(--good);color:#fff;font-weight:800;letter-spacing:.12em;font-size:15px;text-align:center}
.tk.st-ready{box-shadow:0 0 0 2.5px var(--good)}
.kb.accept{background:var(--c1);color:#fff}
@media (prefers-reduced-motion:reduce){.tk.blink{animation:none}}
/* Counter: orders ready in the kitchen */
.rdy{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border-radius:99px;background:var(--good);color:#fff;font-weight:700;font-size:13px;white-space:nowrap;flex:none;text-transform:uppercase;letter-spacing:.03em}
.rdy[hidden]{display:none}
.rdy i{width:7px;height:7px;border-radius:50%;background:#fff}
.rdy.flash{animation:rdyFlash .7s ease-in-out 4}
@keyframes rdyFlash{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--good) 35%,transparent)}}
.tab.rdy-tab{box-shadow:inset 0 0 0 2px var(--good)}
.tab-rdy{font-style:normal;font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:2px 6px;border-radius:99px;background:var(--good);color:#fff;margin-right:6px}
.rdl{display:flex;flex-direction:column;border-radius:12px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.rdl-r{display:flex;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid var(--line)}
.rdl-r:first-child{border-top:0}
.rdl-no{font-weight:800;font-size:17px;min-width:44px}
.rdl-r small{display:block;color:var(--ink-3);font-size:12.5px}
.rdl-r .btn{width:auto;height:40px;padding:0 16px;background:var(--good)}
@media (prefers-reduced-motion:reduce){.rdy.flash{animation:none}}
/* Shortcodes */
.pcode{font-style:normal;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:600;letter-spacing:.03em;padding:1px 6px;border-radius:6px;background:var(--surface-2);color:var(--ink-2);margin-left:6px;vertical-align:1px}
.codef{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase;letter-spacing:.06em}
.codef.bad{box-shadow:0 0 0 1.5px var(--bad)}
.code-msg{display:block;margin-top:4px;color:var(--bad);font-size:12.5px;font-weight:600}
.code-msg:empty{display:none}
/* Customers: own tags, tag editor, 4-up stats */
.tagp.own{background:color-mix(in srgb,var(--c7) 13%,var(--surface));color:color-mix(in srgb,var(--c7) 60%,var(--ink))}
@media (max-width:560px){.gstats.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.gstats.g4>div{border-left:0!important;padding-left:0!important}}
.tagman summary{display:flex;flex-direction:column;cursor:pointer;list-style:none}
.tagman summary::-webkit-details-marker{display:none}
.tm-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.tm-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tm-row .field{max-width:200px;height:38px}
.tm-row .btn{width:auto;height:38px;padding:0 14px}
.backlink{padding-left:0;display:inline-flex;margin-bottom:6px}
/* Kill switch */
.ks-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;align-items:start}
.ks-card{display:flex;flex-direction:column;gap:12px}
.ks-card h2{margin:0;font-size:20px}
.ks-card>p{margin:-6px 0 0}
.ks-card.danger{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--bad) 45%,transparent)}
.ks-ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center}
.ks-ic.warn{background:var(--warn-soft);color:var(--warn)}.ks-ic.bad{background:var(--bad-soft);color:var(--bad)}
.ks-lists{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px;border-radius:12px;background:var(--surface-2)}
.ks-lists ul{margin:6px 0 0;padding-left:18px;font-size:13.5px;color:var(--ink-2);display:flex;flex-direction:column;gap:4px}
.ks-sure{display:flex;align-items:center;gap:10px;font-weight:600}
.ks-sure input{width:20px;height:20px;accent-color:var(--bad)}
.ks-type{display:flex;flex-direction:column;gap:6px;font-size:14px}
.ks-type .field{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.06em;text-transform:uppercase}
.ks-go{height:48px;background:var(--bad);color:#fff;justify-content:center;font-weight:700}
.ks-go:disabled{background:var(--surface-2);color:var(--ink-3);cursor:not-allowed}
.good-t{color:var(--good);font-weight:600}.bad-t{color:var(--bad)}
@media (max-width:520px){.ks-lists{grid-template-columns:1fr}}
/* Choices picker: the group the arrow keys act on is marked; the chosen option is clear */
.opk{padding:10px;margin:0 -10px;border-radius:14px;transition:background .12s}
.opk.on{background:color-mix(in srgb,var(--primary) 6%,var(--surface));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 25%,transparent)}
.opk .lab small{font-weight:500;color:var(--ink-3);margin-left:4px}
.opk .opt[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);box-shadow:none}
.opk .opt[aria-pressed="true"] small{color:inherit;opacity:.85}
.opk .opt:focus-visible{outline:3px solid color-mix(in srgb,var(--primary) 45%,transparent);outline-offset:2px}
.opk-keys{text-align:center;font-size:12.5px}

/* ===== Item page (redesign): sticky top bar, one main card, choices as tidy bordered lists, stock switch, more details folded ===== */
.ip{max-width:880px;margin:0 auto;padding-bottom:90px}
.ibar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;margin:-8px -24px 18px;padding:14px 24px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.ib-back{display:inline-flex;align-items:center;gap:6px;color:var(--ink-2);text-decoration:none;font-weight:500;flex:none}
.ib-back svg{width:18px;height:18px}
.ib-back:hover{color:var(--ink)}
.ib-name{margin:0;font-size:22px;font-weight:700;letter-spacing:-.02em;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ib-stk{flex:none;font-size:13px;font-weight:600;padding:5px 10px;border-radius:99px;background:var(--surface-2);color:var(--ink-2)}
.ib-stk.low{background:var(--warn-soft);color:var(--warn)}
.ibar .avail{flex:none}
.ip-new{margin:-6px 0 14px;color:var(--ink-3)}
.icard{background:var(--surface);border-radius:20px;box-shadow:0 0 0 1px var(--line);padding:22px;margin-bottom:22px}
.ibasic{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px 26px}
.ib-photo{display:flex;flex-direction:column;align-items:center;gap:8px}
.ib-photo .iphoto{width:180px;height:180px;border-radius:18px}
.ph-link{font-weight:650;color:var(--primary);cursor:pointer}
.ib-photo .ph-acts{justify-content:center;gap:12px;font-size:13px}
.ib-fields{display:flex;flex-direction:column;gap:16px;min-width:0}
.fld{display:flex;flex-direction:column;gap:7px;min-width:0}
.flab{font-size:14px;font-weight:600;color:var(--ink-2)}
.flab small{font-weight:400;color:var(--ink-3)}
.fhelp{font-size:12.5px;color:var(--ink-3)}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ibasic .field{height:48px;font-size:16px}
.ibasic .crop{grid-column:1/-1;margin:0}
.ib-diet{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;padding-top:4px}
.ib-diet .dchips{display:flex;flex-wrap:wrap;gap:8px}
.dchip.off span{opacity:.45;background:var(--surface-2)}
.isec-h{margin:6px 4px 10px;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
/* choices, like the reference: a bordered card per choice, a row per option */
.chb2{display:flex;flex-direction:column;gap:14px;margin-bottom:12px}
.chg2{background:var(--surface);border-radius:18px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.chg2 .chg-h{display:flex;align-items:flex-start;gap:8px;padding:14px 12px 12px 18px;border-bottom:1px solid var(--line)}
.chg2 .chg-n{width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:17px;font-weight:700;color:var(--ink);padding:0}
.chg2 .chg-h small{display:block;margin-top:2px;font-size:12.5px;color:var(--ink-3)}
.chg2 .chg-x{color:var(--ink-3)}.chg2 .chg-x:hover{color:var(--bad);background:var(--bad-soft)}
.cho2{display:flex;align-items:center;gap:12px;min-height:56px;padding:6px 10px 6px 18px;border-bottom:1px solid var(--line)}
.cho-r{flex:none;width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--line-2);background:var(--surface);cursor:pointer}
.cho-r:hover{box-shadow:inset 0 0 0 2px var(--primary)}
.cho2.first .cho-r{background:var(--primary);box-shadow:inset 0 0 0 6px var(--primary),inset 0 0 0 9px #fff;box-shadow:none;position:relative}
.cho2.first .cho-r::after{content:"";position:absolute;inset:7px;border-radius:50%;background:#fff}
.cho2 .cho-n{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15.5px;font-weight:500;color:var(--ink);padding:8px 0}
.cho-def{display:none;font-size:13px;color:var(--ink-3)}
.cho2.first:not(.priced) .cho-def{display:inline}
.cho2 .cho-p{display:inline-flex;align-items:center;height:40px;padding:0 10px;border-radius:12px;background:transparent;font-weight:650;color:var(--ink);opacity:0;transition:opacity .12s}
.cho2 .cho-p i{font-style:normal}
.cho2 .cho-p input{width:52px;border:0;outline:0;background:transparent;font:inherit;text-align:right}
.cho2.priced .cho-p{opacity:1;background:var(--surface-2)}
.cho2:hover .cho-p,.cho2 .cho-p:focus-within{opacity:1;background:var(--surface-2)}
.cho2.first:not(.priced):not(:hover) .cho-p:not(:focus-within){display:none}
.cho2 .cho-x{color:var(--ink-3);width:32px;height:32px}
.cho2 .cho-x:hover{color:var(--bad)}
.chg2 .cho-add{display:block;width:100%;text-align:left;padding:16px 18px;font-weight:650;color:var(--primary)}
.chg2 .cho-add:hover{background:var(--surface-2)}
.chg2 .dup-note{display:none;padding:0 18px 12px;color:var(--bad);font-weight:600}
.chg2.dup .dup-note{display:block}.chg2.dup .chg-n{color:var(--bad)}
.ch-quick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 28px}
.ch-quick span{font-size:14px;color:var(--ink-3);margin-right:4px}
.ch-quick button{height:40px;padding:0 16px;border-radius:99px;background:var(--surface-2);font-weight:600;color:var(--ink-2)}
.ch-quick button:hover{background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary)}
/* stock: one switch; details only when on */
.iswitch b{display:block;font-size:15.5px}.iswitch small{display:block;color:var(--ink-3);font-size:13px;margin-top:2px}
.ist-body{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
/* more details */
.imore{padding:0}
.imore>summary{display:flex;align-items:center;gap:12px;padding:18px 22px;cursor:pointer;list-style:none}
.imore>summary::-webkit-details-marker{display:none}
.imore>summary b{display:block;font-size:15.5px}.imore>summary small{display:block;color:var(--ink-3);font-size:13px;margin-top:2px}
.imore>summary .chev{color:var(--ink-3);transition:transform .15s}
.imore[open]>summary .chev{transform:rotate(90deg)}
.imore>.rows{padding:0 22px 14px;border-top:1px solid var(--line)}
.imore .langnames{margin:10px 0}
@media (max-width:899px){.ibar{top:0;margin:-8px -16px 14px;padding:12px 16px;flex-wrap:wrap}.ib-name{font-size:19px}}
@media (max-width:640px){.ibasic{grid-template-columns:1fr}.ib-photo{flex-direction:row;justify-content:flex-start;gap:14px;flex-wrap:wrap}.ib-photo .iphoto{width:96px;height:96px}.fgrid{grid-template-columns:1fr}
  .ibar .ib-name{order:3;flex-basis:100%}.ibar .avail{margin-left:auto}.icard{padding:16px;border-radius:16px}}
.icard.imore{padding:0}
.cho2 .cho-p{gap:2px}.cho2 .cho-p input{width:44px;text-align:left}
.icard-h{margin:0;font-size:17px;font-weight:700}
.icard-sub{margin:4px 0 14px}
.icard .tchoice{margin:0}

/* Items list: category name above its card, a clean row per item */
.icat{margin:26px 0}
.icat.hid{opacity:.6}
.icat-h{display:flex;align-items:baseline;gap:10px;margin:0 4px 12px;flex-wrap:wrap}
.icat-dot{width:9px;height:9px;border-radius:50%;background:var(--cc);align-self:center;flex:none}
.icat-h h2{margin:0;font-size:22px;font-weight:700;letter-spacing:-.02em}
.icat-h small{color:var(--ink-3);font-size:14px}
.icat-edit{margin-left:auto;font-size:13.5px;font-weight:600;color:var(--ink-2);text-decoration:none;padding:6px 12px;border-radius:99px}
.icat-edit:hover{background:var(--surface-2);color:var(--ink)}
.icat-card{background:var(--surface);border-radius:20px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.icat-none{margin:0;padding:18px 20px}
.irow2{display:flex;align-items:center;gap:16px;padding:14px 18px;border-top:1px solid var(--line)}
.irow2:first-child{border-top:0}
.irow2.off{opacity:.55}
.irow2 .ithumb{width:64px;height:64px;border-radius:14px}
.iname2{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit}
.iname2 b{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:650;min-width:0;flex-wrap:wrap}
.iname2 b>span{min-width:0}
.iname2 b .pcode{margin-left:0}
.iname2 small{font-size:14px;color:var(--ink-3)}
.irow2 .iacts{flex:none}
@media (max-width:600px){.irow2{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px 12px;padding:12px 14px}.irow2 .ithumb{width:52px;height:52px;grid-row:span 2}.irow2 .iacts{grid-column:2}.irow2 .iacts .btn{display:none}.iname2 b{font-size:15.5px}.iname2 small{font-size:13px}.icat-h h2{font-size:19px}}

/* Customer details: big header card, spend as the hero, money lines only when someone owes; "About them" as tidy filled fields */
.cdx{background:var(--surface);border-radius:24px;box-shadow:0 0 0 1px var(--line);padding:28px;margin-bottom:22px}
.cdx-top{display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap}
.cdx-av{flex:none;width:104px;height:104px;border-radius:26px;display:grid;place-items:center;font-size:40px;font-weight:700;background:color-mix(in srgb,var(--k) 18%,var(--surface));color:color-mix(in srgb,var(--k) 60%,var(--ink));box-shadow:0 0 0 6px color-mix(in srgb,var(--k) 8%,var(--surface))}
.cdx-id{flex:1;min-width:220px;display:flex;flex-direction:column;gap:8px}
.cdx-n{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cdx-n h1{margin:0;font-size:34px;font-weight:750;letter-spacing:-.03em;line-height:1.1}
.cdx-stats{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-template-rows:auto auto;gap:14px;margin-top:24px}
.cdx-hero{grid-row:span 2;border-radius:20px;padding:22px;background:var(--primary);color:var(--on-primary);display:flex;flex-direction:column;gap:4px}
.cdx-hero small{font-size:14px;opacity:.85}
.cdx-hero>b{font-size:44px;font-weight:750;letter-spacing:-.03em;line-height:1.1}
.cdx-money{margin-top:auto;padding-top:14px;border-top:1px solid rgba(255,255,255,.22);display:flex;flex-direction:column;gap:6px;font-size:14px}
.cdx-money div{display:flex;justify-content:space-between;gap:10px}
.cdx-t{border-radius:18px;padding:18px 20px;background:var(--surface-2);display:flex;flex-direction:column;gap:6px}
.cdx-t small{font-size:13.5px;color:var(--ink-3)}
.cdx-t b{font-size:26px;font-weight:750;letter-spacing:-.02em;line-height:1.1}
.cdx-t span{font-size:12.5px;color:var(--ink-3)}
.cdx .gnote{margin-top:16px}
.cdx-form h2{margin:0 0 18px;font-size:19px}
.cgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}
.cf{display:flex;flex-direction:column;gap:8px;min-width:0}
.cf.wide{grid-column:1/-1}
.cf>span:first-child{font-size:14px;font-weight:650}
.cf small{font-size:12.5px;color:var(--ink-3)}
.cfi{width:100%;height:50px;padding:0 16px;border:0;border-radius:14px;background:var(--surface-2);font:inherit;font-size:15.5px;color:var(--ink);outline:0;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s}
.cfi:focus{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--primary) 55%,transparent);background:var(--surface)}
textarea.cfi{height:auto;padding:14px 16px;resize:vertical;min-height:92px}
.cfs{position:relative;display:block}.cfs i{position:absolute;right:16px;top:50%;transform:translateY(-50%);font-style:normal;color:var(--ink-3)}
.tagdd{position:relative}
.tagdd-f{display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;height:auto;min-height:50px;padding:8px 12px 8px 14px}
.tagdd-f>svg{margin-left:auto;flex:none;color:var(--ink-3)}
.tagdd-chips{display:flex;flex-wrap:wrap;gap:6px}
.tagdd-ph{color:var(--ink-3)}
.tagdd-p{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:30;padding:10px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow);display:flex;flex-direction:column;gap:8px}
.tagdd-p .cfi{height:44px}
.tagdd-l{display:flex;flex-direction:column;max-height:260px;overflow:auto}
.tagdd-o{display:flex;align-items:center;gap:10px;padding:10px 8px;border-radius:10px;cursor:pointer}
.tagdd-o:hover{background:var(--surface-2)}
.tagdd-o input{width:18px;height:18px;accent-color:var(--primary)}
.tagdd-o small{margin-left:auto;font-size:11.5px;color:var(--ink-3)}
.tagdd-new{text-align:left;padding:10px 8px;border-radius:10px;font-weight:650;color:var(--primary)}
.tagdd-new:hover{background:var(--surface-2)}
.tagdd-none{margin:6px 8px;color:var(--ink-3)}
@media (max-width:720px){.cdx{padding:18px;border-radius:20px}.cdx-av{width:72px;height:72px;font-size:28px;border-radius:20px}.cdx-n h1{font-size:26px}.cdx-acts{width:100%;flex-direction:row}.cdx-acts .btn{flex:1}
  .cdx-stats{grid-template-columns:1fr 1fr}.cdx-hero{grid-column:1/-1;grid-row:auto}.cdx-hero>b{font-size:36px}.cdx-t b{font-size:21px}.cgrid{grid-template-columns:1fr}}
.tagdd-chips .tagp,.tagdd-chips i{font-style:normal;text-transform:none;letter-spacing:0;font-size:13px;padding:4px 10px}

/* Sitewide: the box on the right of every settings-style row is the same width */
.srow .sc>*:not(.sw):not(.btn):not(.check):not(.opts){width:100%}
.srow .sc .field{width:100%}
/* Items list: compact rows (the grouping stays) */
.icat{margin:20px 0}
.icat-h{margin:0 4px 8px}
.icat-h h2{font-size:18px}
.icat-h small{font-size:13px}
.icat-card{border-radius:16px}
.irow2{gap:12px;padding:9px 14px}
.irow2 .ithumb{width:44px;height:44px;border-radius:10px}
.iname2{gap:2px}
.iname2 b{font-size:15px;font-weight:600;gap:6px}
.iname2 small{font-size:12.5px}
.irow2 .iacts .btn{height:32px;padding:0 12px}
@media (max-width:600px){.irow2{grid-template-columns:40px minmax(0,1fr);padding:9px 12px}.irow2 .ithumb{width:40px;height:40px}.iname2 b{font-size:14.5px}}
/* Choices: a plain + Option button at the top right of each choice */
.chg-plus{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 12px;border-radius:99px;background:color-mix(in srgb,var(--primary) 10%,var(--surface));color:var(--primary);font-weight:650;font-size:13.5px;flex:none}
.chg-plus svg{width:16px;height:16px}
.chg-plus:hover{background:color-mix(in srgb,var(--primary) 16%,var(--surface))}
/* Customer details, matched to the rest of the site: normal card size, one row of equal tiles */
.cdx{border-radius:18px;padding:20px 22px;margin-bottom:16px}
.cdx-top{gap:16px;align-items:center}
.cdx-av{width:60px;height:60px;border-radius:16px;font-size:24px;box-shadow:none}
.cdx-id{gap:4px}
.cdx-n h1{font-size:24px}
.cdx-stats{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:auto;gap:10px;margin-top:18px}
.cdx-hero,.cdx-t{grid-row:auto;border-radius:14px;padding:14px 16px;gap:4px}
.cdx-hero small,.cdx-t small{font-size:12.5px}
.cdx-hero>b,.cdx-t b{font-size:20px;font-weight:700;letter-spacing:-.01em}
.cdx-t span{font-size:12px}
.cdx-money{margin-top:6px;padding-top:8px;font-size:12.5px;gap:3px}
.cdx-form h2{font-size:17px;margin-bottom:14px}
.cgrid{gap:14px 18px}
.cfi{height:44px;border-radius:12px;font-size:15px}
@media (max-width:900px){.cdx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cdx-hero{grid-column:1/-1}}
@media (max-width:720px){.cdx-av{width:52px;height:52px;font-size:21px}.cdx-n h1{font-size:22px}.cdx-hero>b{font-size:22px}.cdx-t b{font-size:18px}}
.cdx,.icard,.icat-card,.chg2{border-radius:16px}

/* ===== Customer details (approved picture): light, no boxes, thin lines; follows docs/DESIGN.md ===== */
.cdx{border-radius:16px;padding:26px 28px;box-shadow:0 0 0 1px var(--line)}
.cdx-top{align-items:center;gap:16px}
.cdx-av{width:52px;height:52px;border-radius:50%;font-size:20px;box-shadow:none}
.cdx-n{gap:8px}.cdx-n h1{font-size:24px;font-weight:700}
.cdx-n .tagp{text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:600;padding:3px 10px;border-radius:99px;border:0}
.cdx-ph{font-size:14px;color:var(--ink-3)}.cdx-ph svg{display:none}
.cdx-usual{margin-top:2px}.cdx-usual span{font-size:13px}.cdx-usual i{background:transparent;padding:0;font-size:13px;color:var(--ink-2)}
.cdx-stats{display:flex;gap:0;margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.cdx-hero,.cdx-t{flex:1;min-width:0;background:transparent!important;color:var(--ink)!important;border-radius:0;padding:0 20px;border-left:1px solid var(--line);gap:4px}
.cdx-hero{padding-left:0;border-left:0}
.cdx-hero small,.cdx-t small{font-size:12.5px;color:var(--ink-3);opacity:1}
.cdx-hero>b,.cdx-t b{font-size:22px;font-weight:700;letter-spacing:-.02em}
.cdx-hero>b{color:var(--primary)}
.cdx-money{border:0;margin:2px 0 0;padding:0;font-size:12.5px}.cdx-money div{justify-content:flex-start;gap:6px;color:var(--warn)}.cdx-money span::after{content:":"}
.cdx-t span{font-size:12px;color:var(--ink-3)}
.cdx .gnote{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);background:transparent}
@media (max-width:900px){.cdx-stats{display:grid;grid-template-columns:1fr 1fr;row-gap:18px}.cdx-hero,.cdx-t{padding:0 14px;border-left:0}.cdx-hero{grid-column:1/-1;padding:0}.cdx-t:nth-child(even){padding-left:0}.cdx-t:nth-child(odd){border-left:1px solid var(--line)}}
@media (max-width:720px){.cdx{padding:18px}.cdx-acts{width:100%}}

/* About them: white fields with a thin border; label, then short help, then the field */
.cdx-form h2{font-size:18px;margin:0 0 20px}
.cgrid{gap:22px 24px}
.cf{gap:6px}
.cf>*{order:3}
.cf>span:first-child{order:0;font-size:14px;font-weight:600}
.cf>small{order:1;margin-top:-2px}
.cf>.cfi,.cf>.cfs,.cf>.tagdd,.cf>.opts{margin-top:4px}
.cfi{height:46px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2,var(--line));font-size:15px;padding:0 14px}
.cfi:focus{background:var(--surface);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--primary) 60%,transparent)}
textarea.cfi{padding:12px 14px;min-height:100px}
.tagdd-f{min-height:46px;padding:6px 10px 6px 12px}

/* ===== Items list: the earlier, roomier spacing; a pencil per item (shows "Edit" on hover); follows docs/DESIGN.md ===== */
.icat{margin:28px 0}
.icat-h{margin:0 4px 12px;align-items:center}
.icat-h h2{font-size:19px;font-weight:700}
.icat-h small{font-size:13.5px}
.icat-edit{height:36px;padding:0 14px;border-radius:12px;display:inline-flex;align-items:center;background:var(--surface);box-shadow:0 0 0 1px var(--line);color:var(--ink);font-weight:600}
.icat-edit:hover{background:var(--surface-2)}
.icat-card{border-radius:16px;padding:4px 20px}
.irow2{gap:14px;padding:14px 0;min-height:72px}
.irow2 .ithumb{width:52px;height:52px;border-radius:12px}
.iname2{gap:3px}
.iname2 b{font-size:15.5px;font-weight:600;gap:8px}
.iname2 small{font-size:13.5px}
.irow2 .iacts{gap:10px;align-items:center}
.ipen{position:relative;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--ink-2);box-shadow:0 0 0 1px var(--line);background:var(--surface)}
.ipen svg{width:18px;height:18px}
.ipen:hover{color:var(--ink);background:var(--surface-2)}
.ipen::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:4px 8px;border-radius:8px;background:var(--ink);color:var(--surface);font-size:12px;font-weight:600;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s}
.ipen:hover::after,.ipen:focus-visible::after{opacity:1}
@media (max-width:600px){.icat-card{padding:2px 14px}.irow2{grid-template-columns:44px minmax(0,1fr) auto;padding:12px 0}.irow2 .ithumb{width:44px;height:44px;grid-row:auto}.irow2 .iacts{grid-column:auto}.irow2 .avail.mini{display:none}}
/* customer header: avatar, then name with tags, then one quiet line (phone · usual items); WhatsApp as a round icon, centred */
.cdx-top{flex-wrap:nowrap;align-items:center}
.cdx-id{gap:6px;min-width:0}
.cdx-n h1{line-height:1.2}
.cdx-sub{margin:0;display:flex;flex-wrap:wrap;gap:4px 8px;font-size:14px;color:var(--ink-3)}
.cdx-sub a{color:var(--ink-2);text-decoration:none;font-variant-numeric:tabular-nums}
.cdx-wa2{flex:none;margin-left:auto;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;background:#25D366;box-shadow:0 4px 12px rgba(37,211,102,.28)}
.cdx-wa2 svg{width:22px;height:22px}
.cdx-wa2:hover{filter:brightness(.95)}
@media (max-width:600px){.cdx-top{align-items:flex-start}.cdx-dot{display:none}.cdx-sub{flex-direction:column;gap:2px}
  table.ctb th:nth-child(4),table.ctb td:nth-child(4){display:none}table.ctb td{white-space:nowrap;padding:10px 6px}table.ctb td:first-child{font-size:12.5px}}

/* ===== Offers (reference design): white offer cards with status and actions; editor with numbered steps; follows docs/DESIGN.md ===== */
.ofnew{box-shadow:0 6px 16px color-mix(in srgb,var(--primary) 28%,transparent)}
.ofl{display:flex;flex-direction:column;gap:14px;margin-bottom:28px}
.ofc{display:flex;align-items:center;gap:18px;padding:20px 24px;background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line);min-width:0}
.ofc.editing{box-shadow:0 0 0 1.5px color-mix(in srgb,var(--primary) 55%,transparent),0 6px 18px color-mix(in srgb,var(--primary) 10%,transparent)}
.ofc.paused{background:color-mix(in srgb,var(--surface) 55%,var(--bg))}
.ofc.paused .ofc-m b{color:var(--ink-2)}
.ofc.paused .ofc-ic{background:var(--surface-2);color:var(--ink-3)}
.ofc-none{justify-content:center;color:var(--ink-3)}
.ofc-ic{flex:none;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--k) 14%,var(--surface));color:color-mix(in srgb,var(--k) 60%,var(--ink))}
.ofc-ic svg{width:22px;height:22px}
.ofc-m{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.ofc-m b{font-size:17px;font-weight:650}
.ofc-m span{font-size:14px;color:var(--ink-2)}
.ofc-st{flex:none;font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:5px 12px;border-radius:99px}
.ofc-st.on{background:var(--good-soft);color:var(--good)}
.ofc-st.wait{background:var(--surface-2);color:var(--ink-2)}
.ofc-st.off{background:var(--surface-2);color:var(--ink-3)}
.ofc-acts{display:flex;gap:10px;flex:none}
.ofb{height:42px;padding:0 16px;border-radius:12px;display:inline-flex;align-items:center;gap:8px;background:var(--surface);box-shadow:0 0 0 1px var(--line);color:var(--ink);font-weight:600;font-size:14px;text-decoration:none}
.ofb svg{width:16px;height:16px}
.ofb:hover{background:var(--surface-2)}
.ofb.bad{color:var(--bad)}.ofb.bad:hover{background:var(--bad-soft)}
.ofe{background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line);margin-bottom:30px}
.ofe-h{display:flex;align-items:center;gap:16px;padding:22px 28px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.ofe-h h2{margin:0;font-size:19px;font-weight:500}.ofe-h h2 b{font-weight:700}
.ofe-cancel{font-size:14px;color:var(--ink-2)}
.ofe-auto{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--good);font-weight:500}
.ofe-auto svg{width:18px;height:18px}
.ofe-b{padding:28px}
.ofe-step{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700;margin:6px 0 18px}
.ofe-step i{font-style:normal;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--surface);font-size:13px}
[data-if]>.ofe-step{margin-top:34px;padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:0}
.ofk{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ofk-o{position:relative;display:flex;flex-direction:column;gap:6px;padding:20px 22px;border-radius:16px;background:var(--surface);box-shadow:0 0 0 1px var(--line);cursor:pointer}
.ofk-o input{position:absolute;opacity:0}
.ofk-o .ofc-ic{width:44px;height:44px;border-radius:12px;margin-bottom:22px}
.ofk-o b{font-size:16px}.ofk-o small{font-size:13.5px;color:var(--ink-3);line-height:1.45}
.ofk-o:hover{box-shadow:0 0 0 1px var(--line-2)}
.ofk-o:has(input:checked){box-shadow:0 0 0 2px var(--primary);background:color-mix(in srgb,var(--primary) 5%,var(--surface))}
.ofk-o:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:3px}
.ofr{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:12px 24px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}
.ofr.wide{grid-template-columns:1fr}
.ofr-l{display:flex;flex-direction:column;gap:3px}
.ofr-l b{font-size:15px;font-weight:650}.ofr-l small{font-size:13.5px;color:var(--ink-3)}
.ofr-c{min-width:0;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ofr-pair span{color:var(--ink-3)}
.ofi{height:50px;padding:0 16px;border-radius:12px;border:0;box-shadow:inset 0 0 0 1px var(--line-2);background:var(--surface);font:inherit;font-size:15.5px;color:var(--ink)}
.ofi:focus{outline:0;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--primary) 60%,transparent)}
.ofi.wide{width:100%;max-width:520px}
.ofstep{display:flex;align-items:center;gap:12px}
.ofs-b{width:46px;height:46px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--line-2);background:var(--surface);font-size:22px;line-height:1;color:var(--ink);display:grid;place-items:center}
.ofs-b:hover{background:var(--surface-2)}
.ofs-in{display:inline-flex;align-items:center;height:50px;width:160px;padding:0 16px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line-2);background:var(--surface)}
.ofs-in:focus-within{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--primary) 60%,transparent)}
.ofs-in input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--ink)}
.ofs-in i{font-style:normal;color:var(--ink-3)}
.ofe .daychips{display:flex;flex-wrap:wrap;gap:10px}
.ofe .dchip span{height:44px;padding:0 18px}
.ofpv{margin-top:26px;padding:20px 24px;border-radius:14px;background:color-mix(in srgb,var(--primary) 9%,var(--surface));font-size:16px;color:var(--ink-2)}
.ofpv b{color:var(--ink)}
.ofe-go{margin-top:20px}.ofe-go .btn{width:auto;height:46px;padding:0 24px}
@media (max-width:980px){.ofk{grid-template-columns:1fr 1fr}.ofc{flex-wrap:wrap}.ofc-acts{width:100%}.ofc-acts .ofb{flex:1;justify-content:center}}
@media (max-width:640px){.ofe-h,.ofe-b{padding:18px}.ofr{grid-template-columns:1fr;padding:16px 0}.ofk{grid-template-columns:1fr}.ofc{padding:16px}.ofc-st{order:-1;margin-left:auto}.ofe-auto{margin-left:0;width:100%}}
/* offers: names on the left, every control on the right in one equal-width column */
.ofr{grid-template-columns:minmax(0,1fr) minmax(0,440px)}
.ofr-c{justify-content:flex-end;width:100%}
.ofr-c>*{width:100%}
.ofstep{width:100%}
.ofstep .ofs-in{flex:1;width:auto}
.ofr-pair{flex-wrap:nowrap}
.ofr-pair .ofi{flex:1;min-width:0;width:auto}
.ofr-pair span{flex:none;width:auto}
.ofs-in.solo{width:100%}
.ofi.wide{max-width:none}
.ofe .ofr-c .daychips{justify-content:flex-end}
@media (max-width:640px){.ofr{grid-template-columns:1fr}.ofe .ofr-c .daychips{justify-content:flex-start}}
/* customer: header lines, the About them card can fold */
.cdx-sub2{margin:0;font-size:13.5px;color:var(--ink-3)}
.cdx-fh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.cdx-fh h2{margin:0;font-size:18px}
.cdx-fold{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--ink-2);box-shadow:0 0 0 1px var(--line);background:var(--surface);transition:transform .2s}
.cdx-fold:hover{background:var(--surface-2)}
.cdx-form.closed .cdx-fold{transform:rotate(-90deg)}
.cdx-form.closed .cdx-fh{margin-bottom:0}
.cdx-form.closed .cgrid{display:none}
/* tags look like the other boxes: plain, quiet chips */
.tagdd-f{background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2)}
.tagdd-chips .tagp{background:var(--surface-2)!important;color:var(--ink-2)!important;border:0;font-weight:500}

/* ===== Selected things, per accent colour =====
   Black accent: selected chips are solid black with white text; selected cards keep a white face with a black ring (no grey wash).
   Green / terracotta: a soft tint with the accent's own text colour. */
:root{--sel-bg:#0B0B0D;--sel-fg:#FFFFFF;--sel-ring:#0B0B0D;--sel-card:var(--surface);--tint:#F3F3F5;--tint-fg:#0B0B0D}
:root[data-accent="emerald"]{--sel-bg:color-mix(in srgb,var(--primary) 12%,var(--surface));--sel-fg:#03644A;--sel-ring:var(--primary);--sel-card:color-mix(in srgb,var(--primary) 5%,var(--surface));--tint:color-mix(in srgb,var(--primary) 9%,var(--surface));--tint-fg:#03644A}
:root[data-accent="indigo"]{--sel-bg:color-mix(in srgb,var(--primary) 12%,var(--surface));--sel-fg:#4744C9;--sel-ring:var(--primary);--sel-card:color-mix(in srgb,var(--primary) 5%,var(--surface));--tint:color-mix(in srgb,var(--primary) 9%,var(--surface));--tint-fg:#4744C9}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--sel-bg:#F4F4F5;--sel-fg:#0A0A0B;--sel-ring:#F4F4F5;--tint:#1D1D20;--tint-fg:#F4F4F5}
  :root[data-accent="emerald"]:not([data-theme="light"]),:root[data-accent="indigo"]:not([data-theme="light"]){--sel-bg:color-mix(in srgb,var(--primary) 18%,var(--surface));--sel-fg:var(--primary);--tint:color-mix(in srgb,var(--primary) 12%,var(--surface));--tint-fg:var(--primary)}}
/* chips and pills */
.dchip input:checked+span,.daychips .dchip input:checked+span{background:var(--sel-bg);color:var(--sel-fg);box-shadow:0 0 0 1.5px var(--sel-ring)}
.dchip input:checked+span .dot{box-shadow:0 0 0 2px var(--sel-bg)}
.opk .opt[aria-pressed="true"]{background:var(--sel-bg);color:var(--sel-fg);box-shadow:0 0 0 1.5px var(--sel-ring)}
.dw-langs button[aria-pressed="true"]{background:var(--sel-card);box-shadow:0 0 0 2px var(--sel-ring)}
/* selected cards: white (black accent) or soft tint, with a ring */
.tch:has(input:checked),.ofk-o:has(input:checked),.chopt.on,.tstyle-opt:has(input:checked){background:var(--sel-card);box-shadow:0 0 0 2px var(--sel-ring)}
.opk.on{background:var(--sel-card);box-shadow:inset 0 0 0 1px var(--line-2)}
/* soft accent areas */
.tab.new,.tblbtn.set,.kbtn[aria-pressed="true"],.chg-plus,.ch-quick button:hover,.ofpv,.ka-r.on,.tk-it.hl{background:var(--tint);color:var(--tint-fg)}
.tab.new{box-shadow:0 0 0 1px var(--line)}
.ofpv{color:var(--ink-2)}.ofpv b{color:var(--ink)}
.billdrop{border-color:var(--line-2);background:var(--tint)}
.billdrop:hover{background:var(--surface-2)}

/* ===== Offers: tidy pill grids inside the right column (no ragged wrapping) ===== */
.ofe .ofr-c .daychips{display:grid;width:100%;gap:8px;justify-content:stretch}
.ofe .ofr-c .daychips .dchip span{width:100%;justify-content:center;padding:0 6px;height:44px}
.ofe .ofr-c .daychips:has(#everyDay){grid-template-columns:repeat(7,minmax(0,1fr))}
.ofe .ofr-c .daychips:has(#everyDay) .every{grid-column:1/-1}
.ofe .ofr-c .daychips:has(#allCats){grid-template-columns:repeat(2,minmax(0,1fr))}
.ofe .ofr-c .daychips:has(#allCats) .dchip span{justify-content:flex-start;padding:0 14px}
.ofe .ofr-c .daychips:has(#allCats) .all{grid-column:1/-1}
.ofe .ofr-c .daychips:has(#allCats) .all span{justify-content:center}
.ofr{align-items:start}.ofr-l{padding-top:12px}
@media (max-width:640px){.ofe .ofr-c .daychips:has(#everyDay){grid-template-columns:repeat(4,minmax(0,1fr))}.ofr-l{padding-top:0}}

/* ===== Counter, as asked: bill on the left and items on the right (Settings, Appearance can flip it); phones unchanged ===== */
@media (min-width:1020px){
  :root:not([data-bill="right"]) .app{grid-template-columns:400px minmax(0,1fr)}
  :root:not([data-bill="right"]) .cart{order:-1;box-shadow:1px 0 0 var(--line)}
}
/* Send to kitchen: an outline button with a printer icon */
.kotb{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--ink);font-weight:650;border-radius:14px}
.kotb:hover:not(:disabled){background:var(--surface-2)}
.kotb svg{width:18px;height:18px}
/* Keyboard toggle: icon with its name */
.padtg{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 11px;border-radius:9px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);color:var(--ink-2);font-size:12.5px;font-weight:600;white-space:nowrap}
.padtg:hover{background:var(--surface-2)}
.padtg.on{box-shadow:inset 0 0 0 1px var(--ink-3);color:var(--ink)}
@media (max-width:380px){.padtg span{display:none}.padtg{padding:0 8px}}
/* Categories: rounded boxes in their own colour, a little bigger, not pills */
.chips{gap:8px;padding:12px 1px}
.chips .chip:not(.fbtn){height:44px;min-width:104px;justify-content:center;padding:0 18px;border-radius:12px;font-size:14px;font-weight:600;
  background:color-mix(in srgb,var(--cc,var(--ink-3)) 13%,var(--surface));color:color-mix(in srgb,var(--cc,var(--ink)) 60%,var(--ink));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cc,var(--ink-3)) 22%,transparent)}
.chips .chip:not(.fbtn) i{display:none}
.chips .chip:not(.fbtn):hover{background:color-mix(in srgb,var(--cc,var(--ink-3)) 20%,var(--surface))}
.chips .chip[aria-pressed="true"]:not(.fbtn){background:var(--cc,var(--sel-bg));color:#fff;box-shadow:none}
.chips .chip[data-cat="all"]{--cc:initial;background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.chips .chip[data-cat="all"][aria-pressed="true"]{background:var(--sel-bg);color:var(--sel-fg);box-shadow:none}
.chips .fbtn{height:44px;width:44px;border-radius:12px;justify-content:center}
/* Outline item boxes (reference): white box, a colour bar on the left, soft ring; in the bill: a light tint and the count */
:root[data-tiles="outline"] .tile:not(.out){background:var(--surface);box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(0,0,0,.04),inset 4px 0 0 var(--cc);padding-left:16px}
:root[data-tiles="outline"] .tile:not(.out):hover{box-shadow:0 0 0 1px var(--line-2),0 2px 6px rgba(0,0,0,.06),inset 4px 0 0 var(--cc)}
:root[data-tiles="outline"] .tile.in{background:color-mix(in srgb,var(--cc) 6%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--cc) 40%,transparent),inset 4px 0 0 var(--cc)}
:root[data-tiles="outline"] .popgrid .tile:not(.out){box-shadow:0 0 0 1px var(--line),inset 4px 0 0 var(--cc)}
.tile .badge{top:10px;right:10px;background:var(--cc,var(--primary));color:#fff;box-shadow:0 0 0 2px var(--surface)}
:root[data-tiles="filled"] .tile .badge{background:var(--ink);color:var(--surface)}
/* autosave status at the top right of the page (same as Settings) */
.asv-top{margin-left:auto;flex:none}
.asv-top .asv-undo{width:auto;height:36px;padding:0 14px;border-radius:12px;gap:6px}
.asv-top .asv-undo[hidden]{display:none}
.savest.bad{color:var(--bad)}.savest.bad::before{background:var(--bad)}
.ph1>.asv-top{align-self:flex-start;margin-top:4px}
.ibar .asv-top{margin-left:0}
.asv-float{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));right:max(16px,env(safe-area-inset-right,0px));z-index:70;padding:6px 6px 6px 14px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line),var(--shadow)}
.asv-top .asv-undo{background:var(--surface);color:var(--ink);box-shadow:0 0 0 1px var(--line);font-weight:600;font-size:14px}.asv-top .asv-undo:hover{background:var(--surface-2)}
.chips .chip[data-cat="all"][aria-pressed="true"]{background:var(--primary);color:var(--on-primary)}
.kotb{white-space:nowrap;padding:0 12px;gap:6px;font-size:14px}
.split{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}

/* ===== Counter tidy-up (owner's list) ===== */
/* order header: Order #10 · one table button; Hold sits up here */
.ctype{color:var(--ink-3);font-weight:500}
.c-head .tblbtn{height:28px;padding:0 10px;gap:6px;font-size:13px}
.c-head .tblbtn b{font-weight:600}
.hold-top{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:10px;box-shadow:inset 0 0 0 1px var(--line);background:var(--surface);color:var(--ink-2);font-weight:600;font-size:13px;flex:none}
.hold-top svg{width:15px;height:15px}
.hold-top:hover:not(:disabled){background:var(--surface-2);color:var(--ink)}
.hold-top:disabled{opacity:.45}
.tools{grid-template-columns:repeat(3,minmax(0,1fr))}
/* keypad head: "Options · item" only when there are options; keyboard as an icon */
.padhead{min-height:32px}
.ph-l{min-width:0;flex:1}
.phbtn{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600;color:var(--primary);padding:4px 0}
.padtg{width:32px;height:32px;padding:0;justify-content:center;border-radius:9px}
.padtg span{display:none}
/* item boxes: a little bigger names, a little more room */
.grid{gap:10px}
.tile .nm{font-size:16px;line-height:1.35}
.items .sec{margin:14px 0 8px}
/* Most ordered folds away (folded at first), with a line under it */
.popwrap{padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.pophead{display:flex;align-items:center;gap:6px;width:100%;text-align:left;margin:6px 0;cursor:pointer;background:none}
.pophead svg{width:15px;height:15px;transition:transform .15s}
.popwrap.open .pophead svg{transform:rotate(90deg)}
/* list view: two columns of names, tap to add */
.list2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lrow{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 12px 8px 16px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line),inset 4px 0 0 var(--cc);text-align:left}
.lrow:hover{box-shadow:0 0 0 1px var(--line-2),inset 4px 0 0 var(--cc)}
.lrow.in{background:color-mix(in srgb,var(--cc) 6%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--cc) 40%,transparent),inset 4px 0 0 var(--cc)}
.lrow.out{opacity:.5;cursor:not-allowed}
.lr-n{flex:1;min-width:0;display:flex;flex-direction:column}
.lr-n b{font-size:15px;font-weight:600;line-height:1.3}
.lr-n small{font-size:12px;color:var(--ink-3)}
.lrow .badge{position:static;flex:none;background:var(--cc,var(--primary));color:#fff}
.lrow .dmarks{flex:none}
@media (max-width:520px){.list2{grid-template-columns:1fr}}
/* charges: a list to tick, then "other" typed right there */
.chl{display:flex;flex-direction:column;border-radius:14px;box-shadow:0 0 0 1px var(--line);overflow:hidden}
.chl-r{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 16px;border-top:1px solid var(--line);text-align:left;font-weight:500}
.chl-r:first-child{border-top:0}
.chl-r:hover{background:var(--surface-2)}
.chl-ck{width:22px;height:22px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line-2);display:grid;place-items:center;flex:none}
.chl-ck svg{width:13px;height:13px;opacity:0;stroke-width:3}
.chl-r.on .chl-ck{background:var(--sel-bg);box-shadow:none;color:var(--sel-fg)}
.chl-r.on .chl-ck svg{opacity:1}
.chl-own{display:flex;flex-direction:column;gap:6px}
.chl-in{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:8px}
.chl-in .btn{width:auto;padding:0 16px}
.chl-off{color:var(--bad);align-self:flex-start}
.ofclr{align-self:flex-start;margin-top:6px;padding:0;font-size:13px;font-weight:600;color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}.ofclr:hover{color:var(--ink)}

/* ===== Counter layout, planned as a whole (see docs/DESIGN.md) =====
   Heights: top bar items 40px · search row 44px · order header 32px. Everything in a row is vertically centred. */
.drawer{left:0;right:auto;transform:translateX(-105%)}
.drawer-on .drawer{transform:none}
/* phone: shop line on top; laptop/tablet: the shop sits at the top of the bill column */
.ptop{display:flex;align-items:center;gap:10px;min-width:0;padding-bottom:12px}
.ptop .shop{flex:1}
.cbrand{display:none}
@media (min-width:1020px){
  .ptop{display:none}
  .cbrand{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px 20px;border-bottom:1px solid var(--line)}
  .cbrand .shop{flex:1;min-width:0}
}
.cbrand .mark,.ptop .mark{width:34px;height:34px}
/* items side: open orders on the left; ready, day and back office on the right */
.topbar{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:12px}
.topbar .tabs{flex:1;min-width:0;margin:0}
.topbar .tab{height:40px;border-radius:12px;padding:0 6px 0 14px;font-size:14px}
.topbar .tab.new{padding:0 14px}
.topbar .rdy,.topbar .pill,.topbar .manage{height:40px;flex:none}
.topbar .pill{padding:0 12px;border-radius:12px;box-shadow:0 0 0 1px var(--line);background:var(--surface)}
.topbar .manage{border-radius:12px;padding:0 14px}
@media (min-width:1020px){.topbar{min-height:64px;margin:-16px -22px 12px;padding:12px 22px;border-bottom:1px solid var(--line);background:var(--bg)}}
@media (max-width:1019px){.topbar .pill .lbl{display:none}.topbar .pill{width:40px;justify-content:center;padding:0}}
@media (max-width:639px){.topbar .manage{width:40px;padding:0;justify-content:center}.topbar .manage .lbl2{display:none}}
/* search with the view switch at its end (small icons, so it never looks like an order tab) */
.searchrow{display:flex;align-items:center;gap:8px}
.searchrow .search{flex:1;height:44px;border-radius:12px}
.viewsw{display:inline-flex;gap:2px;height:44px;padding:3px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);flex:none}
.viewsw button{width:38px;border-radius:9px;display:grid;place-items:center;color:var(--ink-3)}
.viewsw button svg{width:18px;height:18px}
.viewsw button[aria-pressed="true"]{background:var(--surface-2);color:var(--ink)}
/* order header: title, table, hold and clear on one centred line; item count under the title */
.c-head{align-items:flex-start;padding-top:16px}
.c-head .grow{min-width:0}
.c-head h2{height:32px;display:flex;align-items:center;gap:8px;font-size:16px}
.c-head .tblbtn{height:32px;margin:0;border-radius:10px}
.c-head .hold-top,.c-head #clearBtn,.c-head .c-close{height:32px;align-self:flex-start;display:inline-flex;align-items:center}
.c-head #clearBtn{padding:0 10px;border-radius:10px}
/* item boxes: real breathing room between rows and columns */
.items .grid{gap:14px}
.items .sec{margin:22px 0 10px}
/* Most ordered: its own light panel, set apart from the menu */
.popwrap{margin:4px 0 8px;padding:6px 14px 14px;border:0;border-radius:16px;background:color-mix(in srgb,var(--primary) 5%,var(--surface-2));box-shadow:inset 0 0 0 1px var(--line)}
.popwrap:not(.open){padding-bottom:6px}
.pophead{margin:4px 0 6px;color:var(--ink-2)}
.popwrap .grid{gap:10px}
.popwrap .tile{min-height:78px}
/* list view: one white card per category, thin lines between items, two columns */
.list2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;padding:4px 16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.lrow{min-height:52px;padding:8px 2px;border-radius:0;background:transparent;box-shadow:none;border-bottom:1px solid var(--line)}
.lrow:hover{box-shadow:none;background:transparent}
.lrow:hover .lr-n b{color:var(--primary)}
.lrow::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--cc)}
.lrow.in{background:transparent;box-shadow:none}
.lrow.in .lr-n b{font-weight:700}
.popwrap .list2{background:var(--surface)}
@media (max-width:520px){.list2{grid-template-columns:1fr}}
/* both top bars share one exact height so their bottom lines meet */
@media (min-width:1020px){.topbar,.cbrand{box-sizing:border-box;height:65px;min-height:0}.topbar .tabs{padding:0}}
.items .popwrap{padding:0 14px}
.items .popwrap.open{padding-bottom:14px}
.items .popwrap .pophead{margin:0;min-height:44px}
@media (min-width:1020px){.topbar .tabs{padding:2px}}
.c-head #clearBtn{box-shadow:inset 0 0 0 1px var(--line);background:var(--surface);color:var(--ink-2);font-weight:600;font-size:13px;padding:0 12px}
.c-head #clearBtn:hover{color:var(--bad,#c0392b)}
.lrow{border-bottom:0;border-top:1px solid var(--line)}
.list2 .lrow:nth-child(-n+2){border-top:0}
@media (max-width:520px){.list2 .lrow:nth-child(2){border-top:1px solid var(--line)}}
.searchrow{min-width:0}
.searchrow .search{min-width:0;width:auto}
.searchrow .search input{min-width:0}
@media (max-width:639px){.searchrow .search kbd{display:none}}
/* item page: name + shortcode on one line; stock as one big number with two clear actions */
.fg-nc{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.fg-nc .withbtn .field{min-width:0;flex:1}
.fg-nc .withbtn .btn{height:46px;flex:none}
.ist-body{display:flex;flex-direction:column;gap:20px;margin-top:20px}
.stk2{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line);background:var(--surface)}
.stk2-n{display:flex;flex-direction:column;gap:2px}
.stk2-n b{font-size:34px;line-height:1.1;font-weight:700;letter-spacing:-.02em}
.stk2-acts{display:flex;gap:8px}
.stk2-acts .btn{height:40px;padding:0 14px;gap:6px}
.stk2-acts .btn svg{width:16px;height:16px}
.stk2-acts .btn[aria-pressed="true"]{box-shadow:inset 0 0 0 1.5px var(--sel-ring,var(--ink));color:var(--ink)}
.stk2-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) auto;gap:16px;align-items:end}
.stk2-form[hidden]{display:none}
.stk2-btns{display:flex;gap:8px}
.stk2-btns .btn{height:46px}
.stk2-f{margin:0}
.stk2-hist summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--ink-2);list-style:none}
.stk2-hist summary::-webkit-details-marker{display:none}
.stk2-hist[open] summary{margin-bottom:10px}
@media (max-width:640px){.fg-nc,.stk2-form{grid-template-columns:1fr}.stk2-acts{width:100%}.stk2-acts .btn{flex:1;justify-content:center}}
.fg-nc{grid-template-columns:1fr 1fr}
.stk2-acts .btn{white-space:nowrap}
.stk2-hist{order:5}
@media (max-width:640px){.fg-nc{grid-template-columns:1fr}}
/* customer privacy: download / delete */
.cpriv .cpriv-row{display:flex;flex-direction:column;gap:12px;align-items:flex-start;margin-top:12px}
.cpriv-del summary{list-style:none;cursor:pointer}
.cpriv-del summary::-webkit-details-marker{display:none}
.cpriv-f{display:flex;flex-direction:column;gap:12px;margin-top:12px;max-width:420px}
.cpriv-f .btn.bad{background:var(--bad,#b42318);color:#fff;align-self:flex-start}
.legal-links{display:flex;gap:18px;justify-content:center;margin-top:18px;font-size:13px}
.legal-links a{color:var(--ink-3)}
.legal-links a:hover{color:var(--ink)}
.badge2.info{color:color-mix(in srgb,var(--info) 65%,var(--ink))}
/* policy pages: one readable column, tabs as quiet pills */
.legal{max-width:820px;margin:0 auto;padding:24px 16px 64px;display:flex;flex-direction:column;gap:16px}
.legal .backlink{align-self:flex-start;text-decoration:none;color:var(--ink-3)}
.legal-tabs{display:flex;flex-wrap:wrap;gap:8px}
.legal-tabs a{height:36px;padding:0 14px;border-radius:99px;display:inline-flex;align-items:center;font-size:14px;font-weight:500;color:var(--ink-2);text-decoration:none;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.legal-tabs a:hover{color:var(--ink)}
.legal-tabs a[aria-current="page"]{background:var(--sel-bg,var(--ink));color:var(--sel-fg,var(--bg));box-shadow:none}
.legal-draft{margin:0;padding:10px 14px;border-radius:12px;background:var(--warn-soft);color:var(--warn);font-size:14px;font-weight:600}
.legal-doc{padding:28px 32px;line-height:1.6}
.legal-doc h1{margin:0;font-size:28px;letter-spacing:-.02em}
.legal-doc h2{margin:28px 0 8px;font-size:17px}
.legal-doc p,.legal-doc li{color:var(--ink-2);font-size:15px}
.legal-doc ul{padding-left:20px;margin:8px 0}
.legal-doc li{margin:4px 0}
.legal-doc a{color:var(--primary)}
.legal-doc .t{margin-top:12px}
@media (max-width:640px){.legal-doc{padding:20px 18px}}
/* customer privacy: two equal buttons side by side, delete opens below */
.cpriv .cpriv-row{flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:8px}
.cpriv-del{flex:1 1 100%;max-width:none}
.cpriv-del>summary{display:inline-flex;width:auto}
.cpriv-row form>.btn,.cpriv-del>summary.btn{height:40px;padding:0 16px}
.cpriv-f .btn.bad{height:44px;padding:0 20px;width:auto}
.cpriv-f{max-width:360px}
.cpriv-row{display:grid!important;grid-template-columns:auto auto;justify-content:start}.cpriv-del{display:contents}.cpriv-del>.cpriv-f,.cpriv-del>p{grid-column:1/-1}
.cpriv-dl .btn,.cpriv-del>summary.btn{width:auto}.cpriv-f{margin-top:4px}
.cpriv-row{display:flex!important;flex-wrap:wrap;gap:8px}.cpriv-del>.cpriv-f,.cpriv-del>p{flex:0 0 100%}
.cpriv-row .btn{width:auto;height:40px;padding:0 16px}.cpriv-msg{margin:12px 0 0}.cpriv-f p{margin:0}
#cprivDel{margin-top:16px}
/* offline pill: same height as the other top-bar items; amber when offline, red when a bill needs a look */
.offp{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:12px;font-size:13.5px;font-weight:600;flex:none;background:var(--surface);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line)}
.offp i{width:8px;height:8px;border-radius:50%;background:var(--primary)}
.offp.off{background:var(--warn-soft);color:var(--warn);box-shadow:none}.offp.off i{background:var(--warn)}
.offp.bad{background:var(--bad-soft,#fdecea);color:var(--bad,#b42318);box-shadow:none}.offp.bad i{background:var(--bad,#b42318)}
.offp[hidden]{display:none}
@media (max-width:639px){.offp span{display:none}.offp{width:40px;justify-content:center;padding:0}}
/* ===== QR menu (customers' phones): one calm column, photos on the right like the delivery apps ===== */
.qm{max-width:640px;margin:0 auto;padding:16px 16px 40px;display:flex;flex-direction:column;gap:12px}
.qm-h{display:flex;align-items:center;gap:12px;padding:8px 0}
.qm-logo,.qm-mark{width:52px;height:52px;border-radius:14px;flex:none;object-fit:contain;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.qm-mark{display:grid;place-items:center;font-weight:700;font-size:22px;background:var(--primary);color:var(--on-primary);box-shadow:none}
.qm-t{flex:1;min-width:0}.qm-t h1{margin:0;font-size:22px;letter-spacing:-.02em;line-height:1.2}.qm-t p{margin:2px 0 0;font-size:13px;color:var(--ink-3)}
.qm-table{flex:none;height:32px;padding:0 12px;border-radius:99px;display:inline-flex;align-items:center;font-size:13px;font-weight:600;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.qm-lang{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.qm-lang a{flex:none;height:32px;padding:0 12px;border-radius:99px;display:inline-flex;align-items:center;font-size:13.5px;color:var(--ink-2);text-decoration:none;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.qm-lang a[aria-current]{background:var(--sel-bg,var(--ink));color:var(--sel-fg,var(--bg));box-shadow:none}
.qm-offer{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;background:var(--good-soft);color:var(--good)}
.qm-offer b{font-size:14.5px}.qm-offer span{font-size:13px}
.qm-bar{display:flex;gap:8px;position:sticky;top:0;z-index:3;background:var(--bg);padding:8px 0 4px}
.qm-search{flex:1;display:flex;align-items:center;gap:8px;height:44px;padding:0 12px;border-radius:12px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.qm-search svg{width:18px;height:18px;color:var(--ink-3);flex:none}
.qm-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--ink)}
.qm-search:focus-within{box-shadow:inset 0 0 0 1.5px var(--ink)}
.qm-veg{flex:none;height:44px;padding:0 14px;border-radius:12px;display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink-2);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.qm-veg[aria-pressed="true"]{background:var(--good-soft);color:var(--good);box-shadow:inset 0 0 0 1.5px var(--good)}
.qm-cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;position:sticky;top:56px;z-index:2;background:var(--bg);padding:4px 0 8px;margin:0 -16px;padding-left:16px;padding-right:16px}
.qm-cats a{flex:none;height:34px;padding:0 14px;border-radius:99px;display:inline-flex;align-items:center;font-size:14px;font-weight:500;color:var(--ink-2);text-decoration:none;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.qm-cats a.on{background:var(--sel-bg,var(--ink));color:var(--sel-fg,var(--bg));box-shadow:none}
.qm-sec{scroll-margin-top:110px;background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line);padding:4px 16px}
.qm-sec h2{margin:12px 0 4px;font-size:17px;letter-spacing:-.01em}.qm-sec h2 small{font-size:13px;font-weight:500;color:var(--ink-3)}
.qm-it{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--line)}
.qm-sec h2+.qm-it{border-top:0}
.qm-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.qm-n{display:flex;align-items:center;gap:8px}.qm-n b{font-size:15.5px;font-weight:600;line-height:1.3}
.qm-en{font-size:12.5px;color:var(--ink-3)}
.qm-p{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.qm-tx p{margin:2px 0 0;font-size:13.5px;line-height:1.45;color:var(--ink-3)}
.qm-di{display:flex;gap:6px;color:var(--ink-3)}
.qm-img{width:96px;height:96px;border-radius:12px;object-fit:cover;flex:none;background:var(--surface-2)}
.qm-it[hidden],.qm-sec[hidden]{display:none}
.qm-none{text-align:center;color:var(--ink-3);padding:24px 0}
.qm-f{font-size:12.5px;color:var(--ink-3);text-align:center;line-height:1.6;padding-top:8px}
.qm-off{max-width:420px;margin:80px auto;text-align:center}
.wrap.bare:has(.qm){padding-left:0;padding-right:0;max-width:none}
.qm-search{min-width:0}
.qm,.qm *{min-width:0}
.qm-veg,.qm-cats a,.qm-lang a,.qm-table{min-width:auto}
html:has(.qm){overflow-x:hidden}
/* back office: QR menu card and the printed table cards */
.qrc{display:flex;flex-direction:column;gap:20px}
.qrc-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.qrc-top h2{margin:0 0 4px}.qrc-top p{margin:0;max-width:560px}
.qrc-top .btn{width:auto;flex:none}
.qrc-main{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.qrc-code{padding:12px;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--line);line-height:0}
.qrc-side{flex:1;min-width:240px;display:flex;flex-direction:column;gap:8px}
.qrc-url{word-break:break-all;color:var(--primary);font-size:14px}
.qrc-acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.qrc-acts .btn{width:auto;height:44px}
.qrc-n .field{width:96px}
.qrprint{display:none}
@media print{
  body:has(.qrprint:not(:empty)) .wrap>*:not(.qrprint),body:has(.qrprint:not(:empty)) .side,body:has(.qrprint:not(:empty)) .mtop,body:has(.qrprint:not(:empty)) .btoast{display:none!important}
  body:has(.qrprint:not(:empty)) .wrap{margin:0;padding:0}
  .qrprint:not(:empty){display:grid;grid-template-columns:repeat(3,1fr);gap:8mm}
  .qcard{break-inside:avoid;border:1px dashed #999;border-radius:4mm;padding:6mm 4mm;display:flex;flex-direction:column;align-items:center;gap:3mm;font-family:Inter,sans-serif;color:#000}
  .qcard-n{font-size:15pt}.qcard-s{font-size:10pt}.qcard-t{font-size:13pt;font-weight:700}
}
@media (max-width:640px){.qrc-top{flex-direction:column}}
/* Getting started: progress and the steps left, each a link to where it is done */
.gs{display:flex;flex-direction:column;gap:14px;margin-bottom:20px}
.gs-h{display:flex;align-items:center;gap:20px}
.gs-h>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:150px}
.gs-h b{font-size:16px}.gs-h small{font-size:13px;color:var(--ink-3)}
.gs-bar{flex:1;height:8px;border-radius:99px;background:var(--surface-2)}
.gs-bar i{display:block;height:100%;border-radius:99px;background:var(--primary)}
.gs-steps{display:flex;flex-wrap:wrap;gap:8px}
.gs-st{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 8px;border-radius:99px;font-size:14px;background:var(--surface);color:var(--ink);text-decoration:none;box-shadow:inset 0 0 0 1px var(--line)}
a.gs-st:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.gs-st i{width:20px;height:20px;border-radius:50%;flex:none;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px var(--line-2)}
.gs-st.ok{color:var(--ink-3)}.gs-st.ok i{background:var(--primary);color:#fff;box-shadow:none}.gs-st.ok svg{width:13px;height:13px;stroke-width:2.6}
@media (max-width:640px){.gs-h{flex-direction:column;align-items:stretch;gap:10px}}
/* explained words: dotted underline; the meaning shows above on hover, focus or tap */
.term{position:relative;text-decoration:underline dotted color-mix(in srgb,currentColor 55%,transparent);text-underline-offset:3px;cursor:help;outline:0}
.term::after{content:attr(data-tip);position:absolute;left:0;bottom:calc(100% + 8px);width:max-content;max-width:min(280px,80vw);padding:8px 12px;border-radius:10px;background:var(--ink);color:var(--bg);font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;text-transform:none;white-space:normal;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .12s,transform .12s;z-index:50;box-shadow:0 6px 20px rgba(0,0,0,.18)}
.term:hover::after,.term:focus::after,.term:focus-visible::after{opacity:1;transform:none}
.term:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:3px}
/* ===== First-time setup: one question per screen ===== */
.wz{max-width:480px;margin:0 auto;padding:8px 0 24px;display:flex;flex-direction:column;gap:18px;min-height:calc(100vh - 80px);min-height:calc(100dvh - 80px)}
.wz-top{display:flex;align-items:center;gap:12px;height:44px}
.wz-back{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);flex:none}
.wz-back svg{width:20px;height:20px}
.wz-prog{flex:1;display:flex;gap:6px}.wz-prog i{flex:1;height:5px;border-radius:9px;background:var(--line)}.wz-prog i.on{background:var(--primary)}
.wz-skip{flex:none;height:44px;padding:0 6px;font-size:14.5px;font-weight:500;color:var(--ink-3)}
.wz-skip[hidden]{display:inline-block;visibility:hidden}
.wz:not(.js) .wz-top{display:none}
.wz-step{display:flex;flex-direction:column;gap:16px}
.wz:not(.js) .wz-step{padding-bottom:28px;border-bottom:1px solid var(--line)}
.wz-q{margin:12px 0 4px}.wz-q small{font-size:12.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.wz-q h1{margin:8px 0 6px;font-size:28px;line-height:1.2;letter-spacing:-.02em}.wz-q p{margin:0;font-size:15px;line-height:1.45;color:var(--ink-3)}
.wz-f{display:flex;flex-direction:column;gap:8px}.wz-f>span{font-size:14.5px;font-weight:600;color:var(--ink-2)}.wz-f>span small{font-weight:400;color:var(--ink-3)}
.wz-f .field{height:54px;font-size:17px;border-radius:14px}
.wz-short .field{width:140px}
.wz-help{font-size:13px;color:var(--ink-3)}
.wz-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wz-tile{position:relative;min-height:96px;border-radius:16px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);display:flex;flex-direction:column;justify-content:center;gap:8px;padding:14px 16px;cursor:pointer}
.wz-tile input,.wz-opt input,.wz-seg input{position:absolute;opacity:0;pointer-events:none}
.wz-tile svg{width:26px;height:26px;color:var(--ink-2)}.wz-tile b{font-size:15.5px}
.wz-tile:has(input:checked){box-shadow:inset 0 0 0 2px var(--primary);background:color-mix(in srgb,var(--primary) 6%,var(--surface))}.wz-tile:has(input:checked) svg{color:var(--primary)}
.wz-tile:has(input:focus-visible),.wz-opt:has(input:focus-visible),.wz-seg label:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
.wz-opts{display:flex;flex-direction:column;gap:10px}
.wz-opt{position:relative;display:flex;gap:14px;align-items:flex-start;padding:16px;border-radius:16px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer}
.wz-opt::before{content:"";width:22px;height:22px;border-radius:50%;flex:none;margin-top:1px;box-shadow:inset 0 0 0 2px var(--line-2)}
.wz-opt:has(input:checked){box-shadow:inset 0 0 0 2px var(--primary)}.wz-opt:has(input:checked)::before{box-shadow:inset 0 0 0 7px var(--primary)}
.wz-opt b,.wz-check b{display:block;font-size:16.5px}.wz-opt small,.wz-check small{display:block;font-size:14px;line-height:1.4;color:var(--ink-3);margin-top:2px}
.wz-check{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:16px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);cursor:pointer}
.wz-check input{width:22px;height:22px;flex:none;margin:1px 0 0;accent-color:var(--primary)}
.wz-note{margin:0;padding:14px 16px;border-radius:14px;background:var(--surface-2);font-size:14.5px;line-height:1.45;color:var(--ink-2)}
.wz-lab{display:block;font-size:14.5px;font-weight:600;color:var(--ink-2);margin:4px 0 8px}
.wz-seg{display:flex;padding:4px;border-radius:14px;background:var(--surface-2);gap:4px}
.wz-seg label{position:relative;flex:1;cursor:pointer}.wz-seg span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;padding:4px 10px;border-radius:11px;font-size:14.5px;color:var(--ink-2)}
.wz-seg input:checked+span{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.wz-logo input{position:absolute;opacity:0;width:1px;height:1px}
.wz-logo-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:200px;border-radius:18px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line-2);cursor:pointer;color:var(--ink-2)}
.wz-logo-box svg{width:30px;height:30px}.wz-logo-box small{color:var(--ink-3)}.wz-logo-box img{max-width:70%;max-height:160px;object-fit:contain}
.wz-logo:focus-within .wz-logo-box{outline:2px solid var(--ink);outline-offset:2px}
.wz-foot{margin-top:auto;position:sticky;bottom:0;padding:12px 0 calc(8px + env(safe-area-inset-bottom,0px));background:linear-gradient(transparent,var(--bg) 30%)}
.wz-next{width:100%;height:56px;border-radius:16px;font-size:17px;justify-content:center}
.wz-next[hidden]{display:none}
.wz:not(.js) #wzNext{display:none}
.wz-step[hidden]{display:none}
.wz .field.bad{box-shadow:inset 0 0 0 2px var(--bad,#b42318)}
/* ===== Settings tabs: sections as titled cards that open and close ===== */
.sform>.sgroup.acc{padding:0;overflow:hidden}
.acc-h{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;column-gap:16px;row-gap:3px;align-items:center;width:100%;text-align:left;padding:18px 20px;background:none;cursor:pointer}
.acc-t{grid-column:1;font-size:16px;font-weight:650;color:var(--ink)}.acc-t small{font-weight:400;color:var(--ink-3)}
.acc-s{grid-column:1;grid-row:2;font-size:13.5px;color:var(--ink-3);min-height:1em}
.acc-c{grid-column:2;grid-row:1/3;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--ink-2);transition:transform .2s}
.acc-c svg{width:16px;height:16px}
.acc.open .acc-c{transform:rotate(180deg)}
.acc.open .acc-s{display:none}
.acc-h:hover .acc-c{background:color-mix(in srgb,var(--ink) 10%,var(--surface-2))}
.acc-h:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;border-radius:16px}
.acc-b{padding:0 20px 8px;border-top:1px solid var(--line)}
.acc-b>.rows,.acc-b>div{margin-top:4px}
/* two or three short choices: buttons side by side */
.seg2{display:inline-flex;padding:3px;border-radius:12px;background:var(--surface-2);gap:2px;flex-wrap:wrap}
.seg2 label{position:relative;cursor:pointer}
.seg2 input{position:absolute;opacity:0;pointer-events:none}
.seg2 span{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border-radius:9px;font-size:14px;color:var(--ink-2);white-space:nowrap}
.seg2 input:checked+span{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.seg2 label:has(input:focus-visible) span{outline:2px solid var(--ink);outline-offset:1px}
.sc:has(>.seg2){justify-content:flex-end;display:flex}
@media (max-width:640px){.sc:has(>.seg2){justify-content:flex-start}}
.sc>.seg2{width:auto;flex:none}
.pg-pre{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0 16px}
.pg-pre>span{font-size:14px;color:var(--ink-3);margin-right:4px}
.pg-pre .btn{width:auto;height:38px;padding:0 14px;border-radius:99px}
.pg-pre small{flex-basis:100%;font-size:12.5px;color:var(--ink-3)}
@media (max-width:640px){.sc>.seg2{width:100%}.seg2 label{flex:1}.seg2 span{justify-content:center;width:100%}}

/* ===== Settings tabs, reference design (the owner's counter-settings reference) =====
   Calm white cards, a small icon and title on each, clear rows: what it is on the left, the control on the right. */
.sph,.sform{max-width:900px;margin-left:auto;margin-right:auto}
.sph{align-items:flex-end;margin-bottom:24px}
.sph h1{font-size:36px;letter-spacing:-.035em;gap:14px}
.sph h1 .kchip{width:48px;height:48px;border-radius:14px}
.sph .savest{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:99px;font-size:14.5px;font-weight:500;color:color-mix(in srgb,var(--primary) 80%,var(--ink));background:color-mix(in srgb,var(--primary) 10%,var(--surface))}
.sph .savest::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--primary)}
.sph #undoBtn{height:40px;border-radius:12px}
.sform>.sgroup.acc{padding:0;border-radius:24px;box-shadow:0 0 0 1px var(--line),0 1px 2px rgba(16,24,20,.04),0 12px 32px rgba(16,24,20,.04);margin-bottom:20px;overflow:hidden}
.acc-h{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:22px 28px;background:none;cursor:pointer}
.acc-ic{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;background:color-mix(in srgb,var(--primary) 11%,var(--surface));color:var(--primary)}
.acc-ic svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.acc-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.acc-t{font-size:20px;font-weight:700;letter-spacing:-.02em;color:var(--ink)}
.acc-t small{font-size:14.5px;font-weight:400;letter-spacing:0;color:var(--ink-3)}
.acc-s{font-size:14px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.acc-s:empty{display:none}
.acc-c{width:34px;height:34px;border-radius:50%;flex:none;display:grid;place-items:center;color:var(--ink-3);transition:transform .2s,background .15s}
.acc-h:hover .acc-c{background:var(--surface-2);color:var(--ink)}
.acc.open .acc-c{transform:rotate(180deg)}
.acc-b{padding:0;border-top:1px solid var(--line)}
.acc-b>.rows{margin:0}
.acc-b>*:not(.rows){padding-left:28px;padding-right:28px}
.acc-b>*:not(.rows):first-child{padding-top:20px}.acc-b>*:not(.rows):last-child{padding-bottom:22px}
/* rows */
.sform .srow{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 32px;padding:20px 28px;border-top:1px solid var(--line);margin:0}
.sform .rows>.srow:first-child,.sform .rows>div:first-child>.srow:first-child{border-top:0}
.sform .srow .sl{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:3px}
.sform .srow .sl b{font-size:16.5px;font-weight:600;letter-spacing:-.01em}
.sform .srow .sl small{font-size:14.5px;line-height:1.45;color:var(--ink-3)}
.sform .srow .sc{flex:0 1 360px;min-width:200px;display:flex;justify-content:flex-end;margin-left:auto}
.sform .srow.srow-stack,.sform .srow.wide{flex-direction:column;align-items:stretch;gap:14px}
.sform .srow.srow-stack .sc,.sform .srow.wide .sc{flex:none;max-width:none;justify-content:stretch;margin:0;width:100%}
/* fields */
.sform .field{height:50px;border-radius:14px;font-size:16.5px;font-weight:500;box-shadow:inset 0 0 0 1.5px var(--line-2);background:var(--surface)}
.sform textarea.field{height:auto;min-height:110px;padding:12px 16px;line-height:1.5}
.sform .field:focus{box-shadow:inset 0 0 0 1.5px var(--primary),0 0 0 4px color-mix(in srgb,var(--primary) 14%,transparent);outline:0}
.sform .sc>.field.num,.sform .sc>.field[inputmode=numeric],.sform .sc>.suf{max-width:200px}
.sform .sc>.field,.sform .sc>.suf{width:100%}
.sform .suf.pre i{font-size:16px}
.sform select.field{padding-right:40px}
/* two or three short choices */
.sform .seg2{padding:4px;border-radius:14px;background:var(--surface-2);gap:4px}
.sform .seg2 span{min-height:44px;padding:0 18px;border-radius:11px;font-size:15px;font-weight:600;color:var(--ink-2)}
.sform .seg2 input:checked+span{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 1.5px var(--primary)}
/* choices that need a few words: cards */
.ocards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.ocard{position:relative;display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:16px;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line-2);cursor:pointer;transition:box-shadow .15s,background .15s}
.ocard:hover{box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ink) 30%,var(--line-2))}
.ocard input{position:absolute;opacity:0;pointer-events:none}
.ocard i{width:22px;height:22px;border-radius:50%;flex:none;margin-top:1px;box-shadow:inset 0 0 0 2px var(--line-2);display:grid;place-items:center}
.ocard b{display:block;font-size:16px;font-weight:600}.ocard small{display:block;font-size:14px;line-height:1.4;color:var(--ink-3);margin-top:2px}
.ocard:has(input:checked){box-shadow:inset 0 0 0 1.5px var(--primary),0 0 0 4px color-mix(in srgb,var(--primary) 10%,transparent);background:color-mix(in srgb,var(--primary) 4%,var(--surface))}
.ocard:has(input:checked) i{background:var(--primary);box-shadow:none}.ocard:has(input:checked) i::after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}
.ocard:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}
/* language chips */
.lchips{display:flex;flex-wrap:wrap;gap:10px}
.lchip{position:relative;cursor:pointer}.lchip input{position:absolute;opacity:0;pointer-events:none}
.lchip span{display:inline-flex;align-items:center;height:44px;padding:0 18px;border-radius:99px;font-size:15px;font-weight:500;background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.lchip input:checked+span{background:color-mix(in srgb,var(--primary) 11%,var(--surface));box-shadow:inset 0 0 0 1.5px var(--primary);color:color-mix(in srgb,var(--primary) 75%,var(--ink));font-weight:600}
.lchip:has(input:focus-visible) span{outline:2px solid var(--ink);outline-offset:2px}
/* switches: bigger, with a quiet On / Off beside them */
.sform .sw.solo{gap:10px;align-items:center}
.sform .sw.solo::before{content:"Off";font-size:13.5px;font-weight:400;color:var(--ink-3);min-width:24px;text-align:right}
.sform .sw.solo:has(input:checked)::before{content:"On"}
.sform .sw i{width:50px;height:30px;margin:0}
.sform .sw i::after{width:24px;height:24px}
.sform .sw input:checked+i::after{transform:translateX(20px)}
.sform .sw:has(input:focus-visible) i{outline:2px solid var(--ink);outline-offset:2px}
/* ready-made charges and ways to pay */
.sform .cherow{grid-template-columns:minmax(0,1fr) 170px auto;gap:10px;margin-bottom:10px}
.sform .cherow .suf{max-width:none}
.sform .ch-del,.sform .pm-del{width:auto;height:44px;padding:0 14px;border-radius:12px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad,#b42318) 25%,transparent);color:var(--bad,#b42318);font-weight:600;font-size:14px;gap:6px;display:inline-flex;align-items:center}
.sform .ch-del::after,.sform .pm-del::after{content:"Remove"}
.sform .ch-del svg,.sform .pm-del svg{width:15px;height:15px}
.sform .shelp,.sform p.muted{font-size:14.5px;line-height:1.5}
@media (max-width:640px){
  .sph h1{font-size:30px}.acc-h{padding:18px 18px}.acc-t{font-size:18px}
  .sform .srow{padding:16px 18px}.acc-b>*:not(.rows){padding-left:18px;padding-right:18px}
  .sform .srow .sc{flex-basis:100%;justify-content:flex-start;min-width:0}
  .sform .cherow{grid-template-columns:minmax(0,1fr) 120px}.sform .cherow .ch-del{grid-column:1/-1;justify-self:start}
}
.sform .srow.srow-stack>*,.sform .srow.wide>*{flex:none}
.sform .srow .sc>.seg2{width:auto;flex:none}
.acc-b>*:not(.rows){padding-left:0;padding-right:0;margin-left:28px;margin-right:28px}
.acc-b>button:not(.rows),.acc-b>.btn{margin-top:4px}
@media (max-width:640px){.acc-b>*:not(.rows){margin-left:18px;margin-right:18px}.sform .srow .sc>.seg2{width:100%}}
.sform .srow .sc>.seg2{width:auto!important}
@media (max-width:640px){.sform .srow .sc>.seg2{width:100%!important}}
.sform .ocards{height:auto!important;min-height:0!important;align-items:start;grid-auto-rows:auto}
.sform .ocard{align-self:start;min-height:0;height:auto}
.sform .acc-b>p,.sform .acc-b>.shelp{margin:10px 28px 22px!important}
@media (max-width:640px){.sform .acc-b>p,.sform .acc-b>.shelp{margin:10px 18px 18px!important}}
.sform .ocards{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
@media (max-width:640px){.sform .ocards{grid-template-columns:1fr}}
/* staff permissions: Manager and Cashier columns, quiet On/Off */
.pg-cols{display:inline-flex;gap:0;margin-left:auto;font-size:14px;font-weight:600;letter-spacing:0;color:var(--ink-2)}
.pg-cols span{width:118px;text-align:center}
.pg-sec2 .acc-t{display:flex;align-items:center;width:100%}
.pg-sec2:not(.open) .pg-cols{visibility:hidden}
.pg-sw{display:flex;flex:none}
.pg-sw .sw.solo{width:118px;justify-content:center}
.sform .pg-row{flex-wrap:nowrap}
.pg-pre3{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.pg-pre3 .ocard{align-items:center}
.pg-top .acc-b>.rows>.srow:first-child,.pg-top .srow{border-top:0}
@media (max-width:640px){.pg-cols span,.pg-sw .sw.solo{width:72px}.pg-cols{font-size:12.5px}.pg-pre3{grid-template-columns:1fr!important}.sform .pg-row .sl{flex:1 1 auto}}
/* ===== Sign in: a calm green panel and a clean form ===== */
.wrap.bare:has(.lgn){max-width:none;padding:0;margin:0}
body:has(.lgn){background:var(--bg)}
.lgn{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100vh;min-height:100dvh}
.lgn-art{position:relative;overflow:hidden;background:#0d3b2b;color:#fff;padding:48px;display:flex;flex-direction:column;justify-content:space-between}
.lgn-art::before{content:"";position:absolute;inset:-20%;background:radial-gradient(40% 35% at 25% 25%,#1f8a62 0,transparent 70%),radial-gradient(45% 40% at 80% 70%,#0f6b4a 0,transparent 70%),radial-gradient(35% 30% at 70% 20%,rgba(63,191,138,.33) 0,transparent 70%);filter:blur(20px)}
.lgn-art>*{position:relative}
.lgn-brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:18px;letter-spacing:-.01em}
.lgn-brand i{width:34px;height:34px;border-radius:10px;background:#fff;color:#0d3b2b;display:grid;place-items:center;font-style:normal;font-weight:800}
.lgn-claim h2{font-size:46px;line-height:1.06;letter-spacing:-.035em;margin:0 0 16px;font-weight:700}
.lgn-claim p{font-size:17px;line-height:1.5;color:#cfe9dc;margin:0;max-width:430px}
.lgn-bill{margin-top:40px;width:340px;max-width:100%;border-radius:18px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);padding:16px 20px}
.lgn-bill div{display:flex;justify-content:space-between;font-size:14px;color:#d8efe4;padding:6px 0}.lgn-bill b{color:#fff}
.lgn-bill .t{border-top:1px solid rgba(255,255,255,.15);margin-top:6px;padding-top:10px;font-size:16px}
.lgn-foot{font-size:13px;color:#a9d3c0}
.lgn-main{display:flex;align-items:center;justify-content:center;padding:48px 24px}
.lgn-form{width:100%;max-width:380px;display:flex;flex-direction:column}
.lgn-shop{display:flex;align-items:center;gap:12px;margin-bottom:36px}
.lgn-shop .m,.lgn-shop img{width:44px;height:44px;border-radius:12px;flex:none;object-fit:contain}
.lgn-shop .m{background:var(--primary);color:var(--on-primary,#fff);display:grid;place-items:center;font-weight:700;font-size:19px}
.lgn-shop b{display:block;font-size:16px}.lgn-shop small{display:block;color:var(--ink-3);font-size:13.5px}
.lgn-form h1{font-size:30px;letter-spacing:-.025em;margin:0 0 6px}
.lgn-sub{margin:0 0 26px;color:var(--ink-3);font-size:15px}
.lgn-form .flash{margin:0 0 16px}
.lgn-f{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.lgn-f>span:first-child{font-size:13.5px;font-weight:600;color:var(--ink-2)}
.lgn-f .field{height:50px;border-radius:12px;font-size:16px;box-shadow:inset 0 0 0 1px var(--line-2),0 1px 2px rgba(0,0,0,.04);background:var(--surface)}
.lgn-f .field:focus{box-shadow:inset 0 0 0 1.5px var(--primary),0 0 0 4px color-mix(in srgb,var(--primary) 14%,transparent);outline:0}
.lgn-pw{position:relative;display:block}.lgn-pw .field{width:100%;padding-right:72px}
.lgn-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:38px;padding:0 12px;border-radius:9px;font-size:13.5px;font-weight:600;color:var(--ink-3);background:none}
.lgn-eye:hover{color:var(--ink);background:var(--surface-2)}
.lgn-go{height:52px;border-radius:12px;font-size:16px;justify-content:center;margin-top:8px;box-shadow:0 6px 16px color-mix(in srgb,var(--primary) 28%,transparent)}
.lgn-help{margin:16px 0 0;font-size:13.5px;color:var(--ink-3);text-align:center}
.lgn-legal{display:flex;gap:18px;justify-content:center;margin-top:40px;font-size:12.5px}
.lgn-legal a{color:var(--ink-3);text-decoration:none}.lgn-legal a:hover{color:var(--ink)}
.cf-turnstile{margin:4px 0 8px}
@media (max-width:900px){.lgn{grid-template-columns:1fr}.lgn-art{display:none}.lgn-main{align-items:flex-start;padding-top:56px}}
body:has(.lgn),body:has(.wzx){margin:0}
/* setup on laptops: steps on the left, the question in the middle, Back / Skip / Continue under it */
.wz-rail,.wz-back2,.wz-skip2,.wz-sp{display:none}
.wz-foot{display:flex;align-items:center;gap:10px}
@media (min-width:900px){
  .wrap.bare:has(.wzx){max-width:none;padding:0;margin:0}
  .wzx{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:100vh}
  .wz-rail{display:flex;flex-direction:column;background:var(--surface);box-shadow:1px 0 0 var(--line);padding:36px 28px;position:sticky;top:0;height:100vh}
  .wz-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;margin-bottom:40px}
  .wz-brand i{width:30px;height:30px;border-radius:9px;background:var(--primary);color:var(--on-primary,#fff);display:grid;place-items:center;font-style:normal;font-weight:800;font-size:15px}
  .wz-rail h3{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);margin:0 0 12px}
  .wz-list{list-style:none;margin:0;padding:0}
  .wz-list li{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:15px;color:var(--ink-3);position:relative}
  .wz-list li i{width:24px;height:24px;border-radius:50%;flex:none;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:700;box-shadow:inset 0 0 0 1.5px var(--line-2);background:var(--surface)}
  .wz-list li:not(:last-child)::after{content:"";position:absolute;left:11.5px;top:36px;width:1px;height:14px;background:var(--line-2)}
  .wz-list li.ok{color:var(--ink-2)}.wz-list li.ok i{background:var(--primary);color:var(--on-primary,#fff);box-shadow:none}
  .wz-list li.on{color:var(--ink);font-weight:600}.wz-list li.on i{box-shadow:inset 0 0 0 2px var(--primary);color:var(--primary)}
  .wz-tip{margin-top:auto;font-size:13px;line-height:1.5;color:var(--ink-3);padding:14px;border-radius:12px;background:var(--surface-2)}
  .wz{max-width:560px;width:100%;margin:0 auto;padding:72px 24px 48px;min-height:0;justify-content:center}
  .wz .wz-top{display:none}
  .wz-q small{color:var(--primary)}.wz-q h1{font-size:34px}
  .wz-foot{position:static;background:none;padding:24px 0 0;margin-top:12px}
  .wz-back2{display:inline-flex;height:48px;padding:0 18px;border-radius:12px;width:auto}
  .wz-sp{display:block;flex:1}
  .wz-skip2{display:inline-flex;height:48px;padding:0 10px;font-size:14.5px;font-weight:500;color:var(--ink-3)}
  .wz-skip2[hidden]{display:none}
  .wz-next{width:auto;height:48px;padding:0 26px;border-radius:12px;font-size:15.5px;box-shadow:0 6px 16px color-mix(in srgb,var(--primary) 28%,transparent)}
}
.wz-skip2{align-items:center}
/* the switch itself sits in the middle of its column, under "Manager" / "Cashier"; On/Off hangs to its left */
.pg-sw .sw.solo{position:relative;justify-content:center}
.pg-sw .sw.solo::before{position:absolute;right:calc(50% + 33px);min-width:0}
/* headers and switches share one right edge: the row keeps the same room the fold arrow takes in the header */
.pg-sec2 .acc-h{position:relative}
.pg-sec2 .pg-cols{position:absolute;right:76px;top:50%;transform:translateY(-50%);margin:0}
.sform .pg-sec2 .pg-row{padding-right:76px}
@media (max-width:640px){.pg-sec2 .pg-cols{right:66px}.sform .pg-sec2 .pg-row{padding-right:66px}.pg-sec2 .acc-t{padding-right:150px}}

/* kitchen: items the counter removed */
.tk-it.gone{opacity:.75}
.tk-it.gone .tk-n,.tk-it.gone .tk-q{color:var(--bad)}.tk-it.gone .tk-q,.tk-it.gone .tk-n s{text-decoration:line-through;text-decoration-thickness:2px}
.tk-it.gone .tk-ck{visibility:hidden}
.tk-n small.tk-gone{color:var(--bad);font-weight:600;text-decoration:none}
.tk-ready.tk-dead{background:var(--bad)}

/* counter: the table button says it can move */
.tblbtn .tblmove{font-size:12px;font-weight:600;color:var(--primary);margin-left:6px}
.onetap{display:grid;grid-template-columns:1fr 1fr;gap:10px}.onetap .btn{justify-content:center;height:52px;font-size:16px}
/* counter: a day left open from an earlier date; the past-days list */
#dayPill.stale{color:var(--bad);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bad) 40%,transparent)}#dayPill.stale i{background:var(--bad)}
.rdl-r.dayrow{width:100%;text-align:left;cursor:pointer}
.rdl-r.dayrow:hover{background:var(--surface-2)}
/* phones: Clear and Done far apart and clearly different (Done is the safe one) */
@media (max-width:760px){
  .c-head{gap:8px}
  .c-head #clearBtn{color:var(--bad);margin-right:14px}
  .c-head .c-close{height:36px!important;padding:0 16px;border-radius:999px;background:var(--ink);color:var(--surface);font-weight:600}
  .c-head #cTitle{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;height:auto;min-height:32px;white-space:normal;overflow:visible}
  .c-head .tblbtn{max-width:100%}
}

.pguide{margin:0 0 14px;padding-left:20px;display:grid;gap:8px;color:var(--ink-2);line-height:1.45}.pguide b{color:var(--ink)}
.pgwrap{padding:16px 20px 20px}.pgwrap .btn{display:inline-flex}
/* ---------- Help: tours and one-time tips (assets/help.js) ---------- */
.dtour-dim{position:fixed;inset:0;background:rgba(17,22,21,.38);z-index:900}
.dtour-ring{position:fixed;z-index:901;border-radius:14px;box-shadow:0 0 0 3px var(--primary);pointer-events:none;transition:all .2s ease}
.dtour-card{position:fixed;z-index:902;background:var(--surface);color:var(--ink);border-radius:16px;padding:16px 18px;box-shadow:0 12px 40px rgba(0,0,0,.18);font-size:16px;line-height:1.45}
.dtour-card h3{margin:2px 0 4px;font-size:17px}.dtour-card p{margin:0;color:var(--ink-2)}
.dtour-n{color:var(--ink-3);font-size:13px;font-weight:600}
.dtour-b{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.dtour-b button{min-height:44px;padding:0 16px;border-radius:12px;font-weight:600;font-size:15px}
.dtour-skip{background:transparent;color:var(--ink-2)}.dtour-skip:hover{background:var(--surface-2)}
.dtour-next{background:var(--primary);color:#fff}
.dtour-ask{position:fixed;z-index:902;right:20px;bottom:20px;width:min(340px,calc(100vw - 32px));background:var(--surface);border-radius:16px;padding:16px 18px;box-shadow:0 12px 40px rgba(0,0,0,.18);display:grid;gap:2px;opacity:0;transform:translateY(8px);transition:all .25s ease}
.dtour-ask.on{opacity:1;transform:none}.dtour-ask b{font-size:16px}.dtour-ask span{color:var(--ink-2);font-size:14.5px}
.dtip{position:fixed;z-index:880;left:50%;bottom:24px;transform:translate(-50%,8px);max-width:calc(100vw - 32px);display:flex;align-items:center;gap:10px;background:var(--ink);color:var(--surface);padding:12px 16px;border-radius:14px;font-size:15px;box-shadow:0 8px 28px rgba(0,0,0,.2);opacity:0;transition:all .25s ease;cursor:pointer}
.dtip.on{opacity:1;transform:translate(-50%,0)}.dtip svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.dtip.still,.dtour-ask.still,.dtour-ring{transition:none}
@media (prefers-reduced-motion:reduce){.dtip,.dtour-ask,.dtour-ring{transition:none}}
.side .side-help{margin-top:auto}.side .side-help+.side-prac{margin-top:0}

.bdsel{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}
@media (min-width:900px) and (max-height:880px){.side a{height:38px}.side .side-l{margin-top:8px}}
/* the one back link (lib/layout.php back_link): top left, above the title */
a.backlink{display:inline-flex!important;align-items:center;gap:4px;margin:0 0 8px -4px;padding:4px 8px 4px 4px;border-radius:8px;font-size:14px;font-weight:500;color:var(--ink-3)!important;text-decoration:none!important;align-self:flex-start}
a.backlink svg{width:16px;height:16px}a.backlink:hover{color:var(--ink)!important;background:var(--surface-2)}
/* every page's "Saves by itself" and Undo look like the Settings ones (assets/autosave.js) */
.asv-top{display:inline-flex;align-items:center;gap:8px}
.asv-top .savest{height:40px;padding:0 16px;border-radius:99px;font-size:14.5px;font-weight:500;color:color-mix(in srgb,var(--primary) 80%,var(--ink));background:color-mix(in srgb,var(--primary) 10%,var(--surface))}
.asv-top .savest::before{width:8px;height:8px;background:var(--primary)}
.asv-top .savest.busy::before{background:var(--warn)}
.asv-top .savest.bad{background:color-mix(in srgb,var(--bad) 10%,var(--surface));color:var(--bad)}.asv-top .savest.bad::before{background:var(--bad)}
.asv-top .asv-undo{height:40px!important}
.imrp{display:flex;gap:10px;align-items:flex-start;margin:14px 0 4px;line-height:1.45;color:var(--ink-2)}.imrp b{color:var(--ink)}.imrp em{font-style:normal;display:block;margin-top:4px}
.imrp input:not(:checked)~span em{display:none!important}
.b2b{margin:4px 0 2px}.b2b summary{cursor:pointer;color:var(--ink-2);font-weight:600;font-size:14px;padding:6px 0}.b2b .grp{display:grid;gap:8px;margin-top:6px}

/* ---------- Help centre (pages/help.php): home → topic → guide. Same cards, type and spacing as the rest of the app ---------- */
[data-page="help"] .wrap{-webkit-user-select:none;user-select:none}[data-page="help"] .wrap input{-webkit-user-select:text;user-select:text}
.hp-top{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start;margin:6px 0 32px}
.hp-hello h1{margin:0;font-size:34px;font-weight:700;letter-spacing:-.035em;line-height:1.1}.hp-hello h1 span{font-weight:400;color:var(--ink-2)}
.hp-hello>p{margin:8px 0 20px;color:var(--ink-3);font-size:15px}
.hp-search{display:flex;align-items:center;gap:10px;height:52px;padding:0 16px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px var(--line-2)}
.hp-search:focus-within{box-shadow:0 0 0 2px var(--primary)}.hp-search svg{width:20px;height:20px;color:var(--ink-3);flex:none}
.hp-search input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:16px;color:var(--ink)}
.hp-res{margin-top:8px}
.hp-side{padding:20px;display:grid;gap:4px;border-radius:20px}.hp-side>b{font-size:16px}.hp-side>small{color:var(--ink-3);font-size:14px;margin-bottom:12px}
.hp-wa{justify-content:center;height:44px;text-decoration:none}.hp-soon{margin:0;color:var(--ink-3);font-size:14px}
.hp-rows{display:grid;margin-top:12px;border-top:1px solid var(--line)}
.hp-rows a{display:flex;align-items:center;justify-content:space-between;height:46px;color:var(--ink);text-decoration:none;font-weight:500;font-size:14.5px;border-bottom:1px solid var(--line)}.hp-rows a:last-child{border-bottom:0}
.hp-chev{width:18px;height:18px;flex:none;color:var(--ink-3)}
.hp-h2{font-size:18px;font-weight:600;letter-spacing:-.01em;margin:0 0 12px}
.hp-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:32px}
.hp-topic{display:flex;align-items:center;gap:14px;padding:16px 16px 16px 18px;border-radius:18px;text-decoration:none;color:var(--ink);transition:box-shadow .15s}
.hp-topic:hover{box-shadow:0 0 0 1px var(--line-2),0 6px 18px rgba(16,24,20,.06)}
.hp-topic>span:not(.hp-ic){display:grid;gap:2px;flex:1;min-width:0}.hp-topic b{font-size:15.5px;font-weight:600}.hp-topic small{color:var(--ink-3);font-size:13.5px}
.hp-ic{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--k) 12%,var(--surface));color:var(--k)}
.hp-ic svg{width:20px;height:20px}.hp-ic.lg{width:48px;height:48px;border-radius:14px}.hp-ic.lg svg{width:24px;height:24px}
.hp-list{padding:0 20px;border-radius:18px;margin-bottom:28px;display:grid}
.hp-list>a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.hp-list>a:first-child{border-top:0}.hp-list>a span{display:grid;gap:3px;min-width:0}.hp-list>a b{font-weight:500;font-size:15px}.hp-list>a small{color:var(--ink-3);font-size:13.5px}
.hp-list>a:hover b{color:var(--primary)}.hp-none{margin:14px 0;color:var(--ink-3)}
.hp-wrap{max-width:760px}
.hp-ah{display:flex;align-items:center;gap:16px;margin:2px 0 18px}.hp-ah h1{margin:2px 0 0;font-size:28px;font-weight:700;letter-spacing:-.03em;line-height:1.15}.hp-ah p{margin:4px 0 0}
.hp-k{font-size:13px;font-weight:600;color:var(--ink-3)}
.hp-lead{font-size:17px;line-height:1.5;color:var(--ink);margin:0 0 18px}
.hp-steps{padding:8px 22px;border-radius:20px;margin-bottom:16px}.hp-steps ol{list-style:none;margin:0;padding:0}
.hp-steps li{position:relative;display:flex;gap:16px;padding:14px 0}
.hp-steps li:not(:last-child)::before{content:"";position:absolute;left:15px;top:46px;bottom:-14px;width:2px;border-radius:2px;background:color-mix(in srgb,var(--primary) calc(25% + 60% * var(--p)),var(--surface))}
.hp-steps li i{position:relative;z-index:1;flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:700;font-size:14px;color:#fff;background:color-mix(in srgb,var(--primary) calc(45% + 55% * var(--p)),#fff)}
.hp-steps li div{display:grid;gap:2px;padding-top:4px}.hp-steps li small{font-size:12px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em}
.hp-steps li span{font-size:16px;line-height:1.5;color:var(--ink-2)}.hp-steps b{color:var(--ink);font-weight:600}
.hp-good{padding:16px 20px;border-radius:18px;background:color-mix(in srgb,var(--c4) 11%,var(--surface));margin-bottom:28px}.hp-good b{font-size:14px}.hp-good p{margin:4px 0 0;font-size:15px;line-height:1.5;color:var(--ink-2)}
.hp-still{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px;border-radius:18px;box-shadow:0 0 0 1px var(--line);margin-bottom:24px;color:var(--ink-2)}
.hp-still .hp-wa{width:auto;padding:0 18px}
@media (max-width:900px){.hp-top{grid-template-columns:1fr;gap:16px}.hp-topics{grid-template-columns:1fr 1fr}.hp-hello h1{font-size:28px}}
@media (max-width:600px){.hp-topics{grid-template-columns:1fr}.hp-ah h1{font-size:23px}.hp-steps{padding:4px 16px}.hp-list{padding:0 16px}}
/* allergy guide */
.al-intro{padding:20px 22px;border-radius:22px;font-size:16.5px;line-height:1.55}.al-intro p{margin:0}
.al-h{font-size:19px;margin:28px 0 12px;letter-spacing:-.01em}
.al-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.al-food{display:grid;gap:6px;align-content:start;padding:16px;border-radius:20px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.al-food b{font-size:15.5px}.al-food small{color:var(--ink-3);font-size:13px;line-height:1.4}
.al-ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--c4) 16%,var(--surface));color:color-mix(in srgb,var(--c4) 70%,var(--ink))}
.al-ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.al-signs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.al-sign{padding:20px;border-radius:22px}.al-sign h3{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:17px}
.al-sign h3 span{min-width:30px;height:30px;padding:0 6px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:14px}
.al-sign ul{margin:0 0 10px;padding-left:20px;display:grid;gap:6px;font-size:15.5px}.al-sign p{margin:0;font-size:14.5px}
.al-sign.warn{background:color-mix(in srgb,var(--c4) 12%,var(--surface))}.al-sign.warn h3 span{background:var(--c4)}
.al-sign.bad{background:color-mix(in srgb,var(--c8) 12%,var(--surface))}.al-sign.bad h3 span{background:var(--c8)}
.al-do{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.al-do li{display:flex;gap:12px;padding:16px;border-radius:20px;background:var(--surface);box-shadow:0 0 0 1px var(--line)}
.al-do li i{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--surface);font-style:normal;font-weight:700}
.al-do b{font-size:16px}.al-do p{margin:4px 0 0;color:var(--ink-2);font-size:14.5px;line-height:1.45}
.al-tips{padding:8px 22px;border-radius:22px}.al-tips ul{list-style:none;margin:0;padding:0}.al-tips li{padding:12px 0;border-top:1px solid var(--line);font-size:15.5px;color:var(--ink-2)}.al-tips li:first-child{border-top:0}.al-tips b{color:var(--ink)}
.al-fine{color:var(--ink-3);font-size:13px;margin:16px 0 0}
@media (max-width:900px){.al-grid{grid-template-columns:1fr 1fr}.al-signs,.al-do{grid-template-columns:1fr}}
/* ---------- Setup on phones: a stacked card, a little playful (desktop keeps the side rail) ---------- */
@media (max-width:899px){
  body:has(.wzx){background:color-mix(in srgb,var(--c3) 9%,#F3F2EC);background-image:repeating-linear-gradient(90deg,transparent 0 calc(25% - 1px),color-mix(in srgb,var(--c3) 14%,transparent) calc(25% - 1px) 25%)}
  .wzx{padding:28px 18px calc(24px + env(safe-area-inset-bottom,0px));min-height:100dvh;display:flex;align-items:flex-start}
  .wz{position:relative;width:100%;min-height:0;gap:14px;margin:12px auto 0;padding:22px 22px 18px;border-radius:30px;background:var(--surface);box-shadow:0 1px 2px rgba(16,24,20,.05),0 24px 50px rgba(16,24,20,.12)}
  .wz::before{content:"";position:absolute;inset:-10px 10px 14px -8px;border-radius:32px;background:color-mix(in srgb,var(--surface) 72%,transparent);transform:rotate(-4deg);z-index:-1;box-shadow:0 10px 30px rgba(16,24,20,.06)}
  .wz::after{content:"";position:absolute;width:64px;height:64px;right:-10px;top:-22px;border-radius:20px;background:var(--c3);transform:rotate(14deg);z-index:-1;opacity:.9}
  .wz-top{gap:10px}.wz-prog{gap:6px}.wz-prog i{height:4px;border-radius:99px}
  .wz-back{width:36px;height:36px;border-radius:50%}
  .wz-q small{font:600 12.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;text-transform:uppercase;color:color-mix(in srgb,var(--c3) 75%,var(--ink));display:inline-flex;align-items:center;gap:8px}
  .wz-q small::before{content:"";width:8px;height:8px;border-radius:3px;background:var(--c3);transform:rotate(45deg)}
  .wz-q h1{font-size:27px;line-height:1.18;letter-spacing:-.025em;font-weight:650;margin:12px 0 6px}
  .wz-q p{font-size:15px}
  .wz-step:not([hidden]){animation:wzIn .38s cubic-bezier(.2,.8,.2,1)}
  @keyframes wzIn{from{opacity:0;transform:translateX(18px) rotate(.6deg)}to{opacity:1;transform:none}}
  .wz-foot{position:static;background:none;padding:10px 0 0;margin-top:8px;border-top:1px solid var(--line)}
  .wz-back2{display:inline-flex;align-items:center;height:48px;padding:0 6px;background:none!important;box-shadow:none!important;font-weight:600;color:var(--ink-2);width:auto}
  .wz-sp{display:block;flex:1}
  .wz-foot .wz-next{width:auto;min-width:132px;height:52px;border-radius:16px;justify-content:center;font-size:16px;background:color-mix(in srgb,var(--c3) 22%,var(--surface));color:color-mix(in srgb,var(--c3) 45%,var(--ink));box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--c3) 45%,transparent)}
  .wz-foot .wz-next:active{transform:scale(.97)}
  #wzDone{background:var(--c3);color:#fff;box-shadow:none}
}
@media (max-width:899px) and (prefers-reduced-motion:reduce){.wz-step:not([hidden]){animation:none}}
@media (max-width:899px){
  .wz-tile:has(input:checked),.wz-opt:has(input:checked){box-shadow:inset 0 0 0 2px var(--c3);background:color-mix(in srgb,var(--c3) 8%,var(--surface))}
  .wz-tile:has(input:checked) svg{color:var(--c3)}.wz-opt:has(input:checked)::before{box-shadow:inset 0 0 0 7px var(--c3)}
  .wz-tile,.wz-opt{border-radius:18px;transition:transform .12s ease}.wz-tile:active,.wz-opt:active{transform:scale(.98)}
}
.tbl.other{opacity:.7;background:repeating-linear-gradient(135deg,var(--surface) 0 6px,var(--surface-2) 6px 12px)}
.hp-topics>.hp-topic,.hp-list.card,.hp-side.card,.hp-steps.card{margin-top:0}.hp-topics>.hp-topic{margin-bottom:0}
.al-h{font-size:18px;font-weight:600;margin:28px 0 12px}.al-intro,.al-tips{margin-top:0}.al-food,.al-do li,.al-sign{margin:0}
/* Reports tabs: Profit, Money leaks, Stock */
.rtabs{display:inline-flex;margin:0 0 18px}
.rtiles.r4{grid-template-columns:repeat(4,minmax(0,1fr))}
.rnote{display:block;padding:14px 18px;border-radius:18px;background:color-mix(in srgb,var(--c4) 11%,var(--surface));margin:0 0 16px;font-size:14.5px;line-height:1.5;color:var(--ink-2)}.rnote b{color:var(--ink)}.rnote a{color:var(--ink)}
table.rt th{font-size:12.5px;font-weight:600;color:var(--ink-3);text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}table.rt td{padding:11px 10px;border-bottom:1px solid var(--line);font-size:14.5px}
table.rt tr:last-child td{border-bottom:0}table.rt th.r,table.rt td.r{text-align:right}table.rt th:first-child,table.rt td:first-child{padding-left:0}table.rt th:last-child,table.rt td:last-child{padding-right:0}
.rfoot{margin:10px 0 0;font-size:13px}
@media (max-width:900px){.rtiles.r4{grid-template-columns:1fr 1fr}.rtabs{display:flex}}
.rnote span{display:block;margin-top:6px}
@media (max-width:600px){.rtiles.r4{gap:10px}.rtiles.r4 .rtile{min-width:0;padding:16px;border-radius:20px;min-height:0}.rtiles.r4 .rtile b{font-size:24px;letter-spacing:-.02em}.rtiles.r4 .rtile small,.rtiles.r4 .rt-top span{font-size:12.5px}}
/* phones: "New order" becomes a square + at the start of the order tabs, so it is never pushed off screen or squeezed */
@media(max-width:600px){.topbar .tab.new{order:-1;width:40px;padding:0;justify-content:center;font-size:0;gap:0}.topbar .tab.new svg{width:18px;height:18px}}
/* ---------- Counter layout button (one button; replaces tiles/list) ---------- */
.vwrap{position:relative;flex:none}
.viewbtn{width:44px;height:44px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);display:grid;place-items:center;color:var(--ink-2)}
.viewbtn svg{width:18px;height:18px}.viewbtn[aria-expanded="true"]{color:var(--ink);box-shadow:0 0 0 1.5px var(--ink)}
.vpop{position:absolute;right:0;top:52px;z-index:40;width:290px;background:var(--surface);border-radius:16px;box-shadow:0 0 0 1px var(--line),0 24px 48px -16px rgba(0,0,0,.28);padding:16px}
.vpop>b{display:block;font-size:15px}.vpop>small{display:block;color:var(--ink-3);font-size:12.5px;margin:2px 0 8px}
.vrow{display:flex;align-items:center;justify-content:space-between;padding:8px 0;font-size:14px;font-weight:600;gap:10px}
.vseg{display:flex;background:var(--surface-2);border-radius:10px;padding:3px}.vseg button{padding:7px 12px;font-size:13px;font-weight:600;border-radius:8px;color:var(--ink-3)}
.vseg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.mbody{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
/* categories down the left (wider screens) */
@media(min-width:760px){
  body.cat-left .mbody{flex-direction:row;gap:14px;padding-top:12px}
  body.cat-left .chips{flex-direction:column;overflow-x:hidden;overflow-y:auto;width:156px;padding:1px 1px 110px;flex:none}
  body.cat-left .chips .chip,body.cat-left .chips .chip:not(.fbtn){width:100%;min-width:0;justify-content:flex-start;flex:none;height:46px}
  body.cat-left .chips .fbtn{width:100%}
  body.cat-left .items{padding-top:1px}
}
/* bigger item boxes */
body.tiles-big .grid:not(.popgrid){grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
body.tiles-big .grid:not(.popgrid) .tile{min-height:124px;padding:16px}
body.tiles-big .grid:not(.popgrid) .tile .nm{font-size:17.5px}
body.tiles-big .grid:not(.popgrid) .tile .price{font-size:15px}
@media(max-width:640px){body.tiles-big .grid:not(.popgrid){grid-template-columns:repeat(2,minmax(0,1fr))}}
/* "Coloured boxes" in Settings: solid colour tiles with white text. The veg mark keeps its colours on a small white chip. */
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out){background:var(--cs,var(--cc));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 6px 14px -9px rgba(0,0,0,.4);color:#fff;border:0}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out):hover{filter:brightness(1.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 8px 18px -9px rgba(0,0,0,.45)}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .nm,:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .price,:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .per,:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .ft{color:#fff}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .vm{background:#fff;box-shadow:0 0 0 2px #fff}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .opt-hint{color:#fff;background:rgba(255,255,255,.2);padding:3px 8px;border-radius:99px;font-weight:600}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .badge{background:#fff;color:var(--ink);box-shadow:0 2px 6px rgba(0,0,0,.25)}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile.in{outline:2px solid var(--ink);outline-offset:2px}
/* "+ options" on a tile opens the choices; a tap anywhere else adds the usual choice */
.opt-hint[data-opts]{cursor:pointer;color:var(--primary);font-weight:600;padding:3px 6px;margin:-3px -6px;border-radius:8px}
.opt-hint[data-opts]:hover{background:var(--surface-2)}
/* an item's own kitchen note in the order */
.lnote{font-style:normal;color:var(--primary);font-weight:600}
.chips.grp{flex-wrap:wrap;overflow:visible;padding:0}
/* quick pay under the order: how they paid, then one tap */
.qpay{display:flex;gap:6px;margin:0 0 10px}
.qpay button{flex:1;height:44px;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-weight:600;font-size:14px;color:var(--ink-2)}
.qpay button[aria-checked="true"]{background:var(--ink);color:var(--surface);box-shadow:none}
.qpay button[data-qm="more"]{flex:.8;color:var(--ink-3)}
/* after a sale: a small bar, no bill preview */
.donebar{position:fixed;left:50%;bottom:20px;transform:translate(-50%,140%);z-index:90;display:flex;align-items:center;gap:14px;padding:10px 10px 10px 18px;border-radius:18px;background:var(--surface);box-shadow:0 0 0 1px var(--line),0 24px 48px -12px rgba(0,0,0,.3);transition:transform .25s ease;max-width:calc(100vw - 24px);flex-wrap:wrap}
.donebar.on{transform:translate(-50%,0)}
.db-t{display:flex;align-items:center;gap:8px}.db-t svg{width:20px;height:20px;color:#fff;background:var(--good,#1F9D6B);border-radius:50%;padding:3px}.db-t b{font-size:16px}.db-t small{color:var(--ink-3);font-size:12.5px;margin-left:4px}
.db-chg,.db-tok{font-size:14px;color:var(--ink-2);padding:6px 12px;border-radius:10px;background:var(--surface-2)}.db-chg b,.db-tok b{font-size:17px;color:var(--ink)}
.donebar .btn{height:42px}
@media(max-width:640px){.donebar{left:12px;right:12px;transform:translateY(140%);bottom:12px}.donebar.on{transform:none}}
.padhead .ph-l{display:flex;gap:8px;flex-wrap:wrap}
.donebar .btn{width:auto;flex:none;padding:0 16px;justify-content:center;gap:8px}
@media(min-width:641px){.donebar{flex-wrap:nowrap;white-space:nowrap}}
.cpick{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 10px;border-radius:99px;background:var(--surface);box-shadow:0 0 0 1px var(--line);color:var(--ink-2);font-weight:600;font-size:13.5px;margin:2px 0 6px}
.cpick svg{width:17px;height:17px;color:var(--ink-3)}.cpick:hover{box-shadow:0 0 0 1px var(--ink-3)}
.cpick{align-self:flex-start;width:auto}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .ft *{color:#fff!important;opacity:.95}
/* ================= Counter, cleaner layout (Nov 2026) ================= */
/* veg / non-veg / egg: the standard square marks on a small white chip, so they read on any tile colour */
.tile .dmarks .vm{width:16px;height:16px;border-width:1.6px;border-radius:4px;background:#fff}
.tile .dmarks .vm::after{width:6px;height:6px}
.vm.nv{border-color:#9B3412}.vm.nv::after{border-bottom-color:#9B3412}
.vm.eg{border-color:#B07A12}.vm.eg::after{background:#B07A12}
.tile .dmarks .dic{width:15px;height:15px}
/* search row: search, filter, layout, ready, day, back office (home) */
.searchrow{gap:8px;flex-wrap:nowrap}
.fslot:empty{display:none}.fslot .fbtn{width:44px;height:44px;padding:0;justify-content:center;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);min-width:0}
.searchrow .rdy,.searchrow .pill,.searchrow .offp{height:44px;border-radius:12px;flex:none}
.searchrow .manage,.ptop .manage{width:44px;height:44px;padding:0;justify-content:center;border-radius:12px;flex:none}
.searchrow .manage span,.searchrow .manage .lbl2,.ptop .manage span,.ptop .manage .lbl2{display:none}
.searchrow .pill .lbl{max-width:120px;overflow:hidden;text-overflow:ellipsis}
/* most ordered: one row of small pills */
.poprow{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 12px;white-space:nowrap}
.poprow>b{font-size:12.5px;color:var(--ink-3);font-weight:600;margin-right:4px;flex:none}
.ppill{flex:none;display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px 0 11px;border-radius:99px;background:var(--surface);box-shadow:0 0 0 1px var(--line);font-weight:600;font-size:13px;color:var(--ink)}
.ppill i{width:7px;height:7px;border-radius:50%;background:var(--cc)}.ppill small{background:var(--ink);color:var(--surface);border-radius:99px;padding:1px 7px;font-size:11.5px}
.ppill:hover{box-shadow:0 0 0 1px var(--ink-3)}
/* categories down the left: a clean sidebar from the edge, each with its colour dot */
@media(min-width:760px){
  body.cat-left .mbody{gap:0;padding-top:0;margin:0 -22px 0 -22px;border-top:1px solid var(--line)}
  body.cat-left .chips{width:172px;background:var(--surface);border-right:1px solid var(--line);padding:8px 0 110px;gap:0}
  body.cat-left .chips .chip,body.cat-left .chips .chip:not(.fbtn){height:46px;border-radius:0;box-shadow:none;background:none;padding:0 16px 0 18px;justify-content:flex-start;gap:10px;font-weight:600;font-size:14px;color:var(--ink-2);border-left:3px solid transparent;min-width:0}
  body.cat-left .chips .chip i{display:block!important;width:8px;height:8px;border-radius:50%;background:var(--cc);flex:none}
  body.cat-left .chips .chip[aria-pressed="true"]{background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--primary);border-left-color:var(--primary)}
  body.cat-left .items{padding:14px 22px 110px 16px}
}
/* order column: open orders on top, then order, then customer icon + order type in one row */
.cart>.tabs{margin:0 0 4px;padding:2px 1px 8px}
.cart>.tabs .tab{height:34px;border-radius:10px;font-size:13px}
.trow{display:flex;gap:8px;align-items:stretch}.trow .seg{flex:1}
.cicon{width:44px;flex:none;border-radius:12px;background:var(--surface);box-shadow:0 0 0 1px var(--line);display:grid;place-items:center;color:var(--ink-2)}
.cicon svg{width:19px;height:19px}.cicon[aria-pressed="true"]{box-shadow:0 0 0 1.5px var(--ink);color:var(--ink)}.cicon.set{background:var(--primary);color:var(--on-primary);box-shadow:none}
/* the total in one line; the arrow opens the breakdown */
.sumline{display:flex;align-items:center;gap:8px;width:100%;padding:10px 0;border-top:1px solid var(--line);font-size:13px;color:var(--ink-3);text-align:left}
.sumline span{flex:1}.sumline b{font-size:17px;color:var(--ink)}.sumline svg{width:16px;height:16px;transition:transform .2s}.sumline[aria-expanded="true"] svg{transform:rotate(180deg)}
/* discount, charges, note: small pills */
.c-foot .tools{display:flex;gap:6px;margin:0 0 10px}
.c-foot .tools .tool{flex:none;height:32px;padding:0 12px;border-radius:99px;font-size:12.5px;font-weight:600;background:var(--surface-2);box-shadow:none;gap:6px}
.c-foot .tools .tool svg{width:14px;height:14px}
.c-foot .split{display:grid;grid-template-columns:1fr 2fr;gap:8px}
.c-foot .split .btn,.c-foot>#qPaid,.c-foot>#payBtn{height:54px;border-radius:14px;font-size:15.5px}
.qpay button{height:44px}
.tile .dmarks .vm.nv::after{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:7px solid #9B3412;background:none;border-radius:0}
@media(min-width:760px){body.cat-left .chips{margin:0!important;align-self:stretch}}
@media(min-width:760px){body.cat-left .mbody{padding-left:0!important;padding-right:0!important}}
@media(max-width:759px){
  .main>.tabs{margin:0 0 10px;padding:1px}
  .chips .chip:not(.fbtn){height:38px;min-width:0;padding:0 16px;font-size:13.5px}
  .grid:not(.popgrid) .tile{min-height:86px}
  .poprow{padding-bottom:10px}.ppill{height:32px}
  .ptop .shop{min-width:0}.ptop .shop b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
  .ptop .rdy,.ptop .pill,.ptop .offp{height:40px;flex:none}
}
/* ================= Dashboard (Nov 2026): dark top bar + glass cards ================= */
.dx{--da:#111114;--db:#FF7A59;--dc:#8B8BFF;--dd:#F5B94A;--de:#3FBF8A;--peak:linear-gradient(180deg,#FF9E7F,#FF6A45);--bart:#E6E6EB;
  --kbg:radial-gradient(520px 220px at 88% -30%,rgba(255,122,89,.22),transparent 70%),radial-gradient(520px 240px at 10% 140%,rgba(139,139,255,.18),transparent 70%),linear-gradient(135deg,#2A2A35,#0E0E12);
  --glow1:rgba(139,139,255,.16);--glow2:rgba(255,122,89,.13)}
:root[data-accent="indigo"] .dx{--da:#5E5CE6;--db:#FF9F0A;--dc:#64D2FF;--dd:#FF375F;--de:#30D158;--peak:linear-gradient(180deg,#8F8DFF,#5E5CE6);--bart:#E9E8FD;
  --kbg:radial-gradient(420px 200px at 92% -20%,rgba(255,55,95,.42),transparent 70%),radial-gradient(520px 240px at 60% 130%,rgba(94,92,230,.65),transparent 70%),radial-gradient(380px 200px at 5% -30%,rgba(100,210,255,.32),transparent 70%),linear-gradient(135deg,#14142B,#07070F);
  --glow1:rgba(125,123,255,.18);--glow2:rgba(255,159,10,.12)}
.dx{position:relative}
.dx::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(600px 460px at 10% 40%,var(--glow1),transparent 70%),radial-gradient(560px 460px at 100% 60%,var(--glow2),transparent 70%)}
.dx .d-a{background:var(--da)}.dx .d-b{background:var(--db)}.dx .d-c{background:var(--dc)}.dx .d-d{background:var(--dd)}.dx .d-e{background:var(--de)}
.dx-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.dx-head h1{font-size:34px;font-weight:700;letter-spacing:-.02em}.dx-head h1 span{font-weight:300}.dx-head p{color:var(--ink-3);margin-top:4px;font-size:14px}
.kbar{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;border-radius:18px;padding:22px 0;margin-bottom:20px;background:var(--kbg);color:#fff;box-shadow:0 20px 40px -22px rgba(10,10,30,.6),inset 0 1px 0 rgba(255,255,255,.14)}
.kx{padding:0 24px;border-left:1px solid rgba(255,255,255,.14);min-width:0}.kx:first-child{border:0}
.kx label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:rgba(255,255,255,.78)}.kx label i{width:8px;height:8px;border-radius:50%}
.kx b{display:block;font-size:30px;font-weight:700;letter-spacing:-.02em;margin:10px 0 4px}.kx:first-child b{font-size:42px}
.kx small{font-size:12.5px;color:rgba(255,255,255,.62)}.kx .up{color:#7EE2B3;font-weight:600}.kx .down{color:#FFB4A8;font-weight:600}
.gx{background:linear-gradient(180deg,rgba(255,255,255,.74),rgba(255,255,255,.5));-webkit-backdrop-filter:blur(24px) saturate(1.5);backdrop-filter:blur(24px) saturate(1.5);border:1px solid rgba(255,255,255,.9);box-shadow:inset 0 1px 0 #fff,0 0 0 1px var(--line),0 16px 40px -26px rgba(20,20,40,.3);border-radius:16px;padding:22px 24px;min-width:0}
.gh{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.gh h2{font-size:18px;font-weight:700}.gh small{color:var(--ink-3);font-size:13px;display:block;margin-top:2px}
.tagx{font-size:12.5px;padding:4px 10px;border-radius:99px;background:color-mix(in srgb,var(--da) 10%,#fff);color:var(--da);font-weight:600;text-decoration:none}
.dx2{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-bottom:20px}.dx3{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:20px;margin-bottom:20px}.dx4{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.dseg{display:flex;background:rgba(11,11,13,.05);border-radius:99px;padding:3px}.dseg button{font-size:13px;font-weight:600;padding:7px 14px;border-radius:99px;color:var(--ink-3)}.dseg button[aria-selected="true"]{background:#fff;color:var(--da);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.dbars{display:flex;align-items:flex-end;gap:8px;height:190px;border-bottom:1px solid var(--line);margin-bottom:30px}
.dbx{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative;min-width:0}
.dbx i{width:100%;max-width:34px;background:var(--bart);border-radius:6px 6px 2px 2px;transition:height .3s}.dbx.dtop i{background:var(--peak)}
.dbx small{position:absolute;bottom:-24px;font-size:11.5px;color:var(--ink-3);white-space:nowrap}
.peak{font-size:13px;color:var(--ink-3)}.peak b{color:var(--da)}
.mbig{display:block;font-size:30px;font-weight:700;letter-spacing:-.02em}
.msplit{display:flex;gap:3px;height:10px;margin:16px 0 14px}.msplit i{border-radius:99px}
.mleg{display:grid;grid-template-columns:1fr auto;row-gap:10px;font-size:14px}.mleg span{display:flex;align-items:center;gap:8px;color:var(--ink-2)}.mleg span i{width:8px;height:8px;border-radius:50%}
.mrow{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:16px;padding-top:14px;text-decoration:none;color:inherit}
.mrow span b{font-size:14px;display:block}.mrow small{color:var(--ink-3);font-size:12.5px}.mrow>b{font-size:21px}
.brow{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.gh+.brow{border:0}
.brow .av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:12.5px;font-weight:700;color:#fff;flex:none}.brow>b{flex:1;font-size:14.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brow .m{color:var(--ink-3);font-size:13px}.brow .v{font-weight:600;min-width:64px;text-align:right}.gfoot{font-size:12px;margin-top:8px}
.otx{padding:10px 0}.otx>div:first-child{display:flex;align-items:baseline;gap:10px;margin-bottom:8px}.otx b{font-size:14.5px}.otx span{flex:1;color:var(--ink-3);font-size:13px}.otx em{font-style:normal;font-weight:700}
.trk{height:8px;background:rgba(11,11,13,.07);border-radius:99px}.trk i{display:block;height:100%;border-radius:99px}
.dx .notes{padding:22px 24px}
@media(max-width:1100px){.dx3{grid-template-columns:1fr 1fr}.dx3>.notes{grid-column:1/-1}}
@media(max-width:900px){.dx2,.dx4{grid-template-columns:1fr}}
@media(max-width:640px){.dx3{grid-template-columns:1fr}.kbar{grid-template-columns:1fr 1fr;row-gap:18px;padding:18px 0}.kx{padding:0 18px}.kx:nth-child(odd){border-left:0}.kx:first-child{grid-column:1/-1}.kx:first-child b{font-size:36px}.kx b{font-size:24px}
  .dx-head h1{font-size:28px}.dbars{gap:4px}.dbx small{font-size:10px}.dseg button{padding:6px 9px;font-size:12px}.gh{flex-wrap:wrap}}
.kbar .kx:first-child label i{background:#FF7A59}:root[data-accent="indigo"] .kbar .kx:first-child label i{background:#64D2FF}
/* dashboard uses the full width */
body.has-side .wrap>.dx{max-width:1480px}
/* best sellers: rank numbers */
.brow .av.rk{background:color-mix(in srgb,var(--da) 12%,#fff);color:var(--da);font-size:14px}
.brow:first-of-type .av.rk{background:var(--da);color:#fff}
/* notes, like the reference: pill tabs, soft round input, round + */
.dx .notes .wc-h h2{font-size:15px;font-weight:600;color:var(--ink-3)}
.dx .notes .nt-kinds{display:flex;gap:0;background:rgba(11,11,13,.05);border-radius:99px;padding:4px;margin:4px 0 14px}
.dx .notes .nt-kinds label{flex:1}
.dx .notes .nt-kinds span{width:100%;justify-content:center;height:38px;border-radius:99px;background:none!important;color:var(--ink-3)!important;font-size:14px}
.dx .notes .nt-kinds input:checked+span{background:#fff!important;color:var(--ink)!important;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.dx .notes .nt-in{display:flex;gap:10px;align-items:center}
.dx .notes .nt-in .field{height:52px;border-radius:99px;border:0;background:#fff;box-shadow:0 0 0 1px rgba(11,11,13,.04),0 2px 8px -4px rgba(0,0,0,.08);padding:0 20px;font-size:15px}
.dx .notes .nt-go{width:52px;height:52px;border-radius:50%;flex:none;background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--da) 70%,#fff),var(--da));color:#fff;box-shadow:0 8px 18px -8px var(--da);display:grid;place-items:center;border:0}
:root:not([data-accent="indigo"]) .dx .notes .nt-go{background:radial-gradient(circle at 35% 30%,#4a4a55,#111114);box-shadow:0 8px 18px -8px rgba(0,0,0,.6)}
.dx .notes .nt-list{margin-top:14px}
.dx .notes .nt{border:0;padding:10px 0;background:none}
.dx .notes .nt-chk{width:24px;height:24px;border-radius:50%;border:2px solid #C9C9CF;background:none;color:transparent}
.dx .notes .nt-t{font-weight:600;font-size:15px}
.dx .notes .nt.is-done .nt-chk{background:var(--da);border-color:var(--da);color:#fff}
/* ---- counter spacing and clean-up (round 2) ---- */
.icol{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.icol>.dfbar{flex:none;margin:12px 22px 0 16px}
@media(max-width:759px){.icol>.dfbar{margin:0 0 10px}}
@media(min-width:760px){.searchrow{padding:6px 0 14px}.search{height:50px}.searchrow .fslot .fbtn,.searchrow .viewbtn,.searchrow .rdy{height:50px}.searchrow .fslot .fbtn,.searchrow .viewbtn{width:50px}}
/* order column: open orders wrap onto lines (all visible), even space above and below */
.cart>.tabs{flex-wrap:wrap;overflow:visible;gap:6px;margin:12px 0 6px;padding:0}
.cart>.tabs .tab{height:36px}
.cart .c-head{padding-top:6px}
/* shop line in the order column: a small day dot and a plain home button */
.cbrand{gap:10px}.cbrand .shop{flex:1;min-width:0}
.cbrand .pill,.ptop .pill{width:36px;height:36px;padding:0;justify-content:center;border-radius:10px;flex:none}
.cbrand .pill .lbl,.ptop .pill .lbl{display:none}
.cbrand .manage,.ptop .manage{width:36px;height:36px;padding:0;justify-content:center;border-radius:10px;background:var(--surface)!important;color:var(--ink)!important;box-shadow:0 0 0 1px var(--line);flex:none}
.cbrand .manage span,.cbrand .manage .lbl2{display:none}
/* categories on the left: easier to tap, and the open one is clearly marked */
@media(min-width:760px){
  body.cat-left .chips .chip,body.cat-left .chips .chip:not(.fbtn){height:54px!important;font-size:15px!important;padding:0 16px 0 20px!important}
  body.cat-left .chips .chip[aria-pressed="true"]{background:color-mix(in srgb,var(--cc,var(--primary)) 16%,var(--surface))!important;color:var(--ink)!important;font-weight:700!important;border-left:4px solid var(--cc,var(--primary))!important}
  body.cat-left .chips .chip[data-cat="all"][aria-pressed="true"]{--cc:var(--primary)}
}
.chips .chip[aria-pressed="true"]:not(.fbtn){outline:2px solid var(--cc,var(--primary));outline-offset:1px}
@media(min-width:760px){body.cat-left .chips .chip[aria-pressed="true"]{outline:0}}
/* options on an order line */
.lopt{display:inline;padding:0;border:0;background:none;color:var(--primary);font-weight:600;font-size:inherit;cursor:pointer}
/* customer: one compact line in the order's own colours */
.ccard{padding:10px 12px!important;gap:10px!important;border-radius:12px!important;background:var(--surface-2)!important;box-shadow:none!important;align-items:center}
.ccard .cc-av{width:34px!important;height:34px!important;font-size:13px!important;background:var(--surface)!important;color:var(--ink)!important;box-shadow:0 0 0 1px var(--line)}
.ccard .cc-id b{font-size:14.5px}.ccard .cc-vis{font-size:12px}
.ccard .cc-due{font-size:12px}.ccard .cc-settle{height:32px!important;padding:0 12px!important;border-radius:9px!important;font-size:13px!important}
.poprow.usual>b{color:var(--ink)}
/* after a sale: a calm note at the top of the order column (not at the bottom of the screen) */
.donebar{position:static!important;transform:none!important;display:none;margin:8px 0;padding:12px 12px 12px 14px;border-radius:14px;background:color-mix(in srgb,var(--good,#1F9D6B) 9%,var(--surface));box-shadow:0 0 0 1px color-mix(in srgb,var(--good,#1F9D6B) 30%,transparent);flex-wrap:wrap!important;gap:10px;max-width:none;white-space:normal!important}
.donebar.on{display:flex}
.donebar .db-t{flex:1 1 100%}
.donebar .btn{height:40px}
.cart>.tabs{padding:0 20px}
.fslot .fbtn svg{width:18px;height:18px;display:block}
.fslot .fbtn[aria-pressed="true"],.fslot .fbtn.set{background:var(--ink);color:var(--surface);box-shadow:none}
/* ===== order column, simple version (Nov 2026) ===== */
.cart>.tabs{background:var(--surface-2);margin:10px 0 0;padding:8px 14px!important;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:4px;align-items:center}
.cart>.tabs .tab{background:none;box-shadow:none;height:34px;border-radius:9px;color:var(--ink-3);font-weight:600}
.cart>.tabs .tab[aria-current="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(0,0,0,.1)}
.cart>.tabs .tab small{opacity:.7}
.cart>.tabs .tab.new{margin-left:auto;background:var(--primary)!important;color:var(--on-primary)!important;padding:0 14px;box-shadow:0 6px 14px -8px var(--primary)!important}
.cart .c-head{align-items:flex-start;gap:8px;padding-top:16px}
.ttl{font-size:22px;font-weight:700;letter-spacing:-.01em;color:var(--ink);padding:0;background:none;border:0;text-align:left;line-height:1.2}
button.ttl:hover{color:var(--primary)}
#cSub{margin-top:3px;font-size:13px;color:var(--ink-3)}
.tsub{display:inline-flex;align-items:center;gap:2px;padding:0;border:0;background:none;color:var(--ink-2);font-weight:600;font-size:13px}.tsub svg{width:14px;height:14px}
.cart .c-head .iconbtn{width:40px;height:40px;border-radius:11px;box-shadow:0 0 0 1px var(--line);display:grid;place-items:center;flex:none}
.cart .c-head .cicon.set{background:var(--primary);color:var(--on-primary);box-shadow:none}
.trow .seg{width:100%}
/* customer: its own clear row */
.ccard{background:none!important;padding:12px 0!important;border-radius:0!important;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ccard .cc-av{width:36px!important;height:36px!important;background:color-mix(in srgb,var(--primary) 12%,var(--surface))!important;color:var(--primary)!important;box-shadow:none!important;font-size:14px!important}
.ccard .cc-id b{font-size:15.5px!important}
.ccard .cc-settle{background:none!important;color:#B07A12!important;padding:0 6px!important;font-weight:700}
/* order lines: quieter */
.lines .line .ln small{color:var(--ink-3)}
.lines .line.on{background:color-mix(in srgb,var(--primary) 6%,var(--surface))}
.lopt{color:var(--ink-2)!important;font-weight:500!important;text-decoration:underline;text-decoration-color:var(--line-2,#ccc);text-underline-offset:3px}
/* item marks: one white box, dot or egg; diet icons white */
.vbx{width:22px;height:22px;border-radius:6px;background:#fff;display:inline-grid;place-items:center;box-shadow:0 1px 4px rgba(0,0,0,.18);flex:none}
.vbx i{width:10px;height:10px;border-radius:50%;background:#1B8A3C}.vbx.nv i{background:#C62828}.vbx svg{width:11px;height:13px;fill:#D49A12}
:root:not([data-tiles="filled"]) .vbx{box-shadow:0 0 0 1px var(--line)}
.tile .dmarks{flex-direction:row!important;align-items:center!important;gap:6px!important}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .dic{color:#fff;stroke:#fff;opacity:1}
:root[data-tiles="filled"] .grid:not(.popgrid) .tile:not(.out) .dic *{stroke:#fff}
.dmarks .vbx i{display:block!important;padding:0!important;width:10px!important;height:10px!important;border-radius:50%!important;background:#1B8A3C!important;font-size:0}.dmarks .vbx.nv i{background:#C62828!important}
/* ---- marks: standard squares everywhere (veg green dot, non-veg red-brown triangle, egg yellow dot) ---- */
.vm{vertical-align:-2px;margin-right:6px}
.vm.eg{border-color:#D49A12!important}.vm.eg::after{background:#D49A12!important;width:6px;height:6px;border-radius:50%;border:0}
.vbx{width:20px;height:20px;border-radius:4px;background:#fff;border:2px solid #1B8A3C;box-shadow:0 1px 3px rgba(0,0,0,.18)!important}
.vbx.nv{border-color:#9B3412}.vbx.eg{border-color:#D49A12}
.dmarks .vbx i{width:8px!important;height:8px!important}
.dmarks .vbx.nv i{width:0!important;height:0!important;border-radius:0!important;background:none!important;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:8px solid #9B3412}
.dmarks .vbx.eg i{background:#D49A12!important}
/* order column spacing */
.cart .cbrand{padding-bottom:12px}
.cart>.tabs{margin-top:0}
.cart .c-head{padding-top:18px;padding-bottom:4px}
.cart .trow{margin:12px 0 6px}
.lines .line .ln{flex:1;min-width:0}.lines .line .ln>span{min-width:0;flex:1}
.lines .line .ln small{display:block;white-space:normal}
.lopt{color:var(--primary)!important;font-weight:600!important;text-decoration:none!important}
/* best sellers with colour: rank circle and a share bar in each row's colour */
.dx .brow .av.rk{background:color-mix(in srgb,var(--k) 16%,#fff)!important;color:var(--k)!important}
.dx .brow:first-of-type .av.rk{background:var(--k)!important;color:#fff!important}
.dx .brow>b{display:flex;flex-direction:column;gap:6px}
.bsh{display:block;height:4px;border-radius:99px;background:var(--k);opacity:.75}
/* needs attention sits in a card like the others, same size; quiet count */
.dx .natt{padding:22px 24px}
.dx .natt .wc-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.dx .natt h2{font-size:18px}
.dx .natt .nat-n{background:color-mix(in srgb,var(--da) 12%,#fff)!important;color:var(--da)!important}
.dx .natt .na-row{box-shadow:none;border-top:1px solid var(--line);border-radius:0;background:none;padding:12px 0}
.dx .dx4{align-items:start}
/* notes: the tick sits on the first line of the text */
.dx .notes .nt-f{align-items:flex-start}.dx .notes .nt-chk{margin-top:0}
/* ===== order column: fine-comb pass ===== */
/* header icons: identical size, side by side */
#cuSlot{display:contents}
.cart .c-head #cOpen,.cart .c-head #clearBtn{width:40px!important;height:40px!important;min-width:40px;padding:0!important;border-radius:11px!important;display:grid!important;place-items:center;box-shadow:0 0 0 1px var(--line)!important;background:var(--surface)!important;color:var(--ink-2)!important}
.cart .c-head #cOpen svg,.cart .c-head #clearBtn svg{width:18px;height:18px}
.cart .c-head #cOpen[aria-pressed="true"]{box-shadow:0 0 0 1.5px var(--ink-3)!important;color:var(--ink)!important}
.cart .c-head #cOpen.set{background:var(--surface-2)!important;color:var(--ink)!important}
/* open orders: wrap evenly, New sits in the flow */
.cart>.tabs{display:flex;flex-wrap:wrap;gap:6px!important;align-items:center;justify-content:flex-start}
.cart>.tabs .tab{padding:0 6px 0 12px;gap:6px}
.cart>.tabs .tab .x{width:22px;height:22px}
.cart>.tabs .tab.new{margin-left:0!important}
/* order lines: the selected highlight runs edge to edge with even padding inside */
.lines .line{margin:0 -20px;padding:12px 20px;width:calc(100% + 40px)}
.lines .line.on{box-shadow:inset 3px 0 0 var(--primary)}
.lines .line.on::before{display:none}
/* tools row: Discount, Charges, Note and the keypad button on one line */
.c-foot .tools{align-items:center}
.c-foot .tools .padtg{margin-left:auto;width:32px;height:32px;border-radius:9px}
.padwrap:empty{display:none}
/* payment screen: methods in an even grid */
.methods{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.methods .method{width:100%;justify-content:center}
.csearch .cres{position:static!important;margin-top:6px}
/* ===== Reports in the dashboard look ===== */
body.has-side .wrap>.rx{max-width:1480px}
.rx .rhead h1 span{font-weight:300}
.rx .rtabs.dseg2{display:inline-flex;background:rgba(11,11,13,.05);border-radius:99px;padding:4px;margin:18px 0 20px;box-shadow:none;border:0}
.rx .rtabs.dseg2 a{padding:9px 18px;border-radius:99px;font-weight:600;font-size:14px;color:var(--ink-3);background:none;text-decoration:none}
.rx .rtabs.dseg2 a.on{background:#fff;color:var(--da);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.rins{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0 26px}
.rin{padding:18px 20px}.rin p{font-size:14.5px;line-height:1.5;margin-top:10px}
.tg{display:inline-block;font-style:normal;font-size:12px;font-weight:700;padding:4px 10px;border-radius:99px}
.tg.t-a{background:color-mix(in srgb,var(--da) 12%,#fff);color:var(--da)}.tg.t-b{background:color-mix(in srgb,var(--db) 16%,#fff);color:color-mix(in srgb,var(--db) 70%,#000)}.tg.t-d{background:color-mix(in srgb,var(--dd) 14%,#fff);color:color-mix(in srgb,var(--dd) 75%,#000)}
.rdh{font-size:18px;margin:0 0 12px}
.rrow2{padding:0;margin-bottom:12px;overflow:hidden}
.rrow2>summary{list-style:none;display:flex;align-items:center;gap:12px;padding:16px 22px;cursor:pointer}
.rrow2>summary::-webkit-details-marker{display:none}
.rrow2>summary span{flex:1}.rrow2>summary b{font-size:15.5px;display:block}.rrow2>summary small{display:block;color:var(--ink-3);font-size:13px;margin-top:2px}
.rrow2>summary svg{width:18px;height:18px;color:var(--ink-3);transition:transform .2s}.rrow2[open]>summary svg{transform:rotate(180deg)}
.rbody{padding:4px 22px 20px}
.rx .fbar.best i{background:var(--peak)}.rx .fbar i{background:var(--bart)}
.ritems{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:start}
.rdead{background:var(--surface-2);border-radius:12px;padding:14px 16px}.rdead b{font-size:14px}.rdead p{color:var(--ink-3);font-size:13px;margin:4px 0 10px}
.rdead a,.rdead span{display:inline-block;font-size:12.5px;padding:5px 10px;border-radius:99px;background:#fff;box-shadow:0 0 0 1px var(--line);margin:0 4px 6px 0;color:var(--ink-2);text-decoration:none}
.rx .rfoot{font-size:12.5px;margin-top:10px}
.rx .rask{margin-top:20px;padding:22px 24px}
@media(max-width:900px){.rins{grid-template-columns:1fr}.ritems{grid-template-columns:1fr}}
@media(max-width:640px){.rx .kbar{grid-template-columns:1fr 1fr}.rrow2>summary{padding:14px 16px}.rbody{padding:4px 16px 16px}}
.rx .ftag{background:var(--da);color:#fff}
/* ===== Laptop: calmer bottom of the order (fewer boxes) ===== */
.c-foot .tools{gap:18px!important;margin:2px 0 12px!important}
.c-foot .tools .tool{background:none!important;height:auto!important;padding:4px 0!important;border-radius:0!important;font-size:13.5px!important;color:var(--ink-2)!important;box-shadow:none!important}
.c-foot .tools .tool.set{color:var(--primary)!important}
.c-foot .tools .padtg{width:auto!important;height:auto!important;box-shadow:none!important;background:none!important;color:var(--ink-3)!important;padding:4px 0!important}
.qpay{background:var(--surface-2);border-radius:12px;padding:3px;gap:0!important}
.qpay button{box-shadow:none!important;background:none!important;height:42px!important;border-radius:10px!important;color:var(--ink-3)!important}
.qpay button[aria-checked="true"]{background:var(--surface)!important;color:var(--ink)!important;box-shadow:0 1px 3px rgba(0,0,0,.12)!important}
.qpay button[data-qm="more"]{flex:1!important}
.c-foot .split{grid-template-columns:56px 1fr!important}
.c-foot .split .kotb{padding:0!important;justify-content:center}
.c-foot .split .kotb span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.c-foot .split .kotb svg{width:22px;height:22px}
/* ===== Phones ===== */
@media(max-width:759px){
  /* menu screen: slim header, ready as a small count, no layout button, no "most ordered" row */
  .ptop{padding:10px 0 8px;gap:8px}
  .ptop .rdy{height:34px!important;padding:0 10px;font-size:12px}
  .ptop .pill,.ptop .manage{width:34px!important;height:34px!important}
  .vwrap,.poprow:not(.usual){display:none!important}
  .main>.tabs .tab{height:32px;font-size:12.5px}
  .main>.tabs .tab.new{background:var(--primary)!important;color:var(--on-primary)!important}
  .searchrow{gap:6px}.search{height:44px}.fslot .fbtn{width:44px;height:44px}
  .grid:not(.popgrid) .tile{min-height:82px!important;padding:12px!important}
  .grid:not(.popgrid) .tile .nm{font-size:14.5px!important}
  /* the order opens full screen with a back arrow; no keypad (the phone has its own) */
  .cart{height:100dvh!important;border-radius:0!important;top:0}
  .c-head{flex-wrap:nowrap}
  .c-head .c-back{order:-1;width:36px;height:36px;margin-left:-8px;box-shadow:none!important;border:0}
  .c-foot .padtg,.padwrap{display:none!important}
  .c-foot{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}
@media(min-width:760px){.c-back{display:none!important}}
@media(max-width:759px){.c-head .c-back{background:none!important;color:var(--ink)!important;padding:0!important}.c-head .c-back svg{width:22px;height:22px}}
@media(max-width:759px){
  .items .grid:not(.popgrid) .tile{min-height:80px!important;height:auto}
  .chips{margin:0 -16px;padding:4px 16px 10px!important}
  .chips .chip:not(.fbtn){height:36px!important;min-width:0!important;padding:0 14px!important;font-size:13px!important;border-radius:99px!important}
  .chips .chip[aria-pressed="true"]:not(.fbtn){outline:0!important}
  .ptop .rdy{font-size:0!important;gap:0;padding:0 12px!important}.ptop .rdy #rdyTxt{font-size:12px}
  .ptop .shop b{font-size:15px}
}
/* reports details: dashboard-style cards */
.rgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.rcard2{padding:22px 24px}.rcard2.wide{grid-column:span 2}
.rcard2 .gh h2{font-size:17px}
@media(max-width:1000px){.rgrid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.rgrid{grid-template-columns:1fr}.rcard2.wide{grid-column:auto}}
/* order type icons beside the customer icon */
.cart .c-head .ticon{width:40px!important;height:40px!important;border-radius:11px!important;display:grid!important;place-items:center;box-shadow:0 0 0 1px var(--line)!important;background:var(--surface)!important;color:var(--ink-3)!important;padding:0!important}
.cart .c-head .ticon svg{width:18px;height:18px}
.cart .c-head .ticon[aria-pressed="true"]{background:var(--ink)!important;color:var(--surface)!important;box-shadow:none!important}
.cart .c-head .hsep{width:1px;height:24px;background:var(--line);margin:8px 2px;flex:none}
#cuSlot{display:flex!important;gap:6px;align-items:center}
/* Ready grabs attention: orange, not the green of New */
.rdy{background:#E8590C!important;color:#fff!important;gap:6px!important}
.rdy i{background:#fff!important}
/* phones: use the full width, sleeker tiles, smaller marks, no usual / most ordered row */
@media(max-width:759px){
  .main{padding-left:14px!important;padding-right:14px!important}
  .items{padding-left:0!important;padding-right:0!important}
  .chips{margin:0 -14px!important;padding:4px 14px 10px!important}
  .poprow{display:none!important}
  .items .grid:not(.popgrid){gap:10px!important}
  .items .grid:not(.popgrid) .tile{min-height:70px!important;padding:11px 12px!important;border-radius:12px!important}
  .items .grid:not(.popgrid) .tile .nm{font-size:14px!important;padding-right:24px}
  .tile .dmarks .vbx{width:16px!important;height:16px!important;border-width:1.6px}
  .dmarks .vbx i{width:6px!important;height:6px!important}
  .dmarks .vbx.nv i{border-left-width:4px;border-right-width:4px;border-bottom-width:6px}
  .ptop .rdy{padding:0 12px!important;font-size:12px!important}
  .ptop .rdy #rdyTxt{font-size:12px}
  .searchrow .search{flex:1}
  .cart .c-head .ticon,.cart .c-head #cOpen,.cart .c-head #clearBtn{width:36px!important;height:36px!important}
}
@media(max-width:759px){
  .cart .c-head{flex-wrap:wrap!important;row-gap:10px}
  .cart .c-head .grow{flex:1;min-width:0}
  .cart .c-head .ttl{font-size:20px}
  .cart .c-head #cuSlot{order:9;width:100%}
}
.cart .c-head{flex-wrap:wrap!important;row-gap:12px}
.cart .c-head .grow{flex:1;min-width:0}
.cart .c-head #cuSlot{order:9;width:100%}
/* order header back on one row: title, then type icons + customer; Clear moves above the items */
.cart .c-head{flex-wrap:nowrap!important}
.cart .c-head #cuSlot{order:0!important;width:auto!important}
.cart .c-head #clearBtn{display:none!important}
.cart .c-head .ttl{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}
.cart .c-head .ticon,.cart .c-head #cOpen{width:36px!important;height:36px!important}
.lhead{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.05em;margin-top:4px}
.lclear{font-size:13px;text-transform:none;letter-spacing:0;color:var(--bad,#C62828);font-weight:600;padding:4px 0}
@media(max-width:759px){.cart .c-head{flex-wrap:nowrap!important}.cart .c-head #cuSlot{order:0!important;width:auto!important}.cart .c-head .ttl{font-size:18px}}
/* home lives in the side menu now; tap the shop name to go home too */
#setupBtn{display:none!important}
a.shop{color:inherit;text-decoration:none;min-width:0}
.dw-me .grow{flex:1;min-width:0}
.dw-home{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;box-shadow:0 0 0 1px var(--line);color:var(--ink);flex:none}
.dw-home svg{width:18px;height:18px}
.dw-l{display:block;font-size:11.5px;font-weight:600;color:var(--ink-3);text-transform:uppercase;letter-spacing:.06em;padding:14px 12px 4px}
.dw-nav .dw-l:first-child{padding-top:4px}
/* Ready: red, a little smaller */
.rdy{background:#D92D20!important;height:38px!important;padding:0 12px!important;font-size:12.5px!important;border-radius:10px!important}
.searchrow .rdy{height:44px!important}
/* phones: content lines up with the search row */
@media(max-width:759px){
  .main{padding-left:12px!important;padding-right:12px!important}
  .mbody{padding-left:0!important;padding-right:0!important}
  .chips{margin:0 -12px!important;padding:4px 12px 10px!important}
  .ptop .rdy{height:32px!important;font-size:12px!important;padding:0 10px!important}
}
/* ===== Help centre home (like the mockup) ===== */
body.has-side .wrap>.hx{max-width:1300px}
.hx-hero{position:relative;border-radius:22px;padding:44px 44px 36px;color:#fff;background:var(--kbg);box-shadow:0 24px 50px -26px rgba(10,10,30,.6),inset 0 1px 0 rgba(255,255,255,.14)}
.hx-hero>small{font-size:13.5px;color:rgba(255,255,255,.65);font-weight:500}
.hx-hero h1{font-size:40px;letter-spacing:-.02em;margin:8px 0 24px;font-weight:700}.hx-hero h1 span{font-weight:300}
.hx-hero .hp-search{max-width:680px;height:58px;border-radius:16px;background:rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);color:#fff}
.hx-hero .hp-search input{color:#fff;font-size:16px;background:none}.hx-hero .hp-search input::placeholder{color:rgba(255,255,255,.65)}.hx-hero .hp-search svg{color:#fff}
.hx-hero .hp-res{max-width:680px;margin-top:8px;color:var(--ink)}
.hx-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.hx-chips a{font-size:13px;padding:7px 14px;border-radius:99px;background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);color:rgba(255,255,255,.9);text-decoration:none}
.hx-chips a:hover{background:rgba(255,255,255,.16)}
.hx-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px;margin-top:30px;align-items:start}
.hx .hp-h2{font-size:19px;margin:0 0 14px}.hx-grid>div>.hp-h2+*+.hp-h2{margin-top:28px}
.hx-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;margin-bottom:28px}
.hx-topic{display:flex;flex-direction:column;padding:20px 18px 16px;min-height:170px;text-decoration:none;color:var(--ink)}
.hx-topic .hp-ic{margin-bottom:16px}.hx-topic b{font-size:15.5px}.hx-topic small{font-size:13px;color:var(--ink-3);margin-top:4px;line-height:1.4}
.hx-topic em{font-style:normal;font-size:12.5px;font-weight:600;color:var(--da);margin-top:auto;padding-top:12px}
.hx-topic:hover{transform:translateY(-2px);transition:transform .15s}
.hx .hp-list{padding:4px 22px}
.hx-side{padding:22px;margin-bottom:16px}.hx-side b{font-size:16px;display:block}.hx-side p{font-size:13.5px;color:var(--ink-3);margin:6px 0 16px;line-height:1.5}
.hx-side .hp-wa{width:100%;justify-content:center;height:46px;border-radius:13px}
.hx-st{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12.5px;color:var(--ink-3);margin-top:12px}.hx-st i{width:8px;height:8px;border-radius:50%;background:#30D158;box-shadow:0 0 0 3px rgba(48,209,88,.2)}
@media(max-width:900px){.hx-grid{grid-template-columns:1fr}.hx-hero{padding:28px 22px}.hx-hero h1{font-size:30px}}
/* Phone: page never moves sideways */
html,body{max-width:100%;overflow-x:hidden;overscroll-behavior-x:none}
.main,.c-body,.cart{overflow-x:hidden}
/* Selected tile: ring drawn inside, so nothing gets cut and the tile keeps its size */
:root[data-tiles] .grid .tile.in,:root[data-tiles="filled"] .grid:not(.popgrid) .tile.in{outline:0!important;box-shadow:inset 0 0 0 2.5px var(--ink),inset 0 0 0 4px rgba(255,255,255,.9)!important}
/* Laptop: search row lines up with the shop name on the left */
@media(min-width:760px){.searchrow{margin-top:-16px!important;height:65px;padding:0!important;box-sizing:border-box}}
