/* Till: full-screen checkout for a 15" touch register (1366x768), from the approved prototype.
   Everything is scoped under .tl so the back office styles never leak in or out. */
.tl{
  --bg:#eef2ee;--surface:#fff;--surface-2:#f5f7f4;--sunk:#e4e9e3;--fg:#16201a;--muted:#5a665f;--line:#d6ddd5;
  --accent:var(--brand);--accent-hover:var(--brand-deep);--on-accent:#fff;--accent-soft:var(--brand-tint);
  --hl:var(--brand-2);--on-hl:#2a1704;--spice:var(--brand-2-ink);--spice-soft:var(--brand-2-tint);--danger:#b3261e;--danger-soft:#fbe3df;--ok:#2e7d32;--lot:#7357a8;
  --paper:#fffdf6;--ink:#1d1d1b;--r:10px;
  --mono:"JetBrains Mono",ui-monospace,Consolas,monospace;
  position:fixed;inset:0;background:var(--bg);color:var(--fg);
  font:15px/1.4 "Segoe UI","Nirmala UI","Noto Sans","Noto Sans Devanagari","Noto Sans Gurmukhi","Noto Sans Gujarati",system-ui,sans-serif;
  -webkit-tap-highlight-color:transparent;overflow:hidden}
@media (prefers-color-scheme:dark){.tl{
  --bg:#0f1512;--surface:#18201c;--surface-2:#1d2621;--sunk:#121915;--fg:#e6ece8;--muted:#9aa89f;--line:#2b3630;
  --accent:var(--brand-light);--accent-hover:var(--brand-lighter);--on-accent:#08130d;--accent-soft:color-mix(in oklab,var(--brand) 30%,#18201c);
  --hl:var(--brand-2);--on-hl:#2a1704;--spice:var(--brand-2-light);--spice-soft:color-mix(in oklab,var(--brand-2) 22%,#18201c);--danger:#f07b70;--danger-soft:#3b1d1a;--ok:#6cc779;--lot:#a493d6;color-scheme:dark}}
.tl *{box-sizing:border-box}
.tl button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;touch-action:manipulation;padding:0;border-radius:0}
.tl button:focus-visible,.tl input:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.tl input{font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-width:0}
.tl h1,.tl h2,.tl h3{margin:0;line-height:1.15}
.tl h1{font-size:26px}.tl h2{font-size:19px}.tl h3{font-size:13px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em}
.tl .muted{color:var(--muted)}.tl .small{font-size:12.5px}
.tl .num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.tl .err{color:var(--danger);min-height:1.2em;margin:0;font-weight:600}
.tl .err.pad{padding:0 18px 12px}
.tl .sr{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tl .grow{flex:1;min-width:0}
.tl .row{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}
.tl .col{display:flex;flex-direction:column;gap:12px;min-width:0}

/* buttons, chips */
.tl .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);font-weight:600;font-size:14px}
.tl .btn:hover{background:var(--surface-2)}
.tl .btn.pri{background:var(--accent);color:var(--on-accent);border-color:transparent}
.tl .btn.pri:hover{background:var(--accent-hover)}
.tl .btn.warn{color:var(--danger)}
.tl .btn.big{min-height:60px;font-size:17px}
.tl .btn.mini{min-height:32px;padding:0 10px;font-size:12.5px}
.tl .btn[disabled],.tl button[disabled]{opacity:.45;cursor:not-allowed}
.tl .badge{background:var(--spice);color:#fff;font:600 11px/1 var(--mono);padding:3px 6px;border-radius:99px}
.tl .chip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;padding:5px 9px;border-radius:999px;background:var(--sunk);white-space:nowrap}
.tl .chip.warn{background:var(--spice-soft);color:var(--spice);font-weight:600}
.tl .tax{font:600 10px/1 var(--mono);padding:3px 5px;border-radius:4px;border:1px solid var(--line);color:var(--muted)}
.tl .seg{display:inline-flex;background:var(--sunk);border-radius:10px;padding:3px;gap:2px}
.tl .seg button{min-height:38px;min-width:46px;padding:0 10px;border-radius:8px;font-size:14px;font-weight:600;color:var(--muted)}
.tl .seg button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.12)}

/* sign-in, pairing, open shift */
.tl-center{position:absolute;inset:0;display:grid;place-items:center;padding:16px;overflow:auto}
.tl-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:14px;width:min(420px,100%)}
.tl-card.wide{width:min(720px,100%)}
.tl-card label,.tl .field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.tl .pinbox{text-align:center;align-items:stretch}
.tl .pinbox .langs{align-self:center}
.tl .pinout{display:flex;justify-content:center;gap:12px;padding:8px 0}
.tl .pinout i{width:16px;height:16px;border-radius:50%;border:2px solid var(--line);display:inline-block}
.tl .pinout i.on{background:var(--accent);border-color:var(--accent)}
.tl .countgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.tl .countgrid label{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 8px;align-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:13px;color:var(--fg)}
.tl .countgrid span{font-weight:600}
.tl .countgrid input{grid-row:span 2;width:100%;text-align:right;font:600 18px var(--mono);padding:6px 8px}
.tl .countgrid small{color:var(--muted);font-size:11px}

/* till layout */
.tl .till{display:grid;grid-template-columns:minmax(0,1fr) 420px;height:100%;min-height:0}
.tl .t-left{display:flex;flex-direction:column;min-height:0;min-width:0}
.tl .topbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.tl .topbar .store{display:flex;flex-direction:column;line-height:1.15;margin-right:auto;min-width:0}
.tl .topbar .store b{font-size:16px}
.tl .topbar .store span{font-size:12px;color:var(--muted)}
.tl .who{display:flex;align-items:center;gap:8px;font-size:13px}
.tl .avatar{width:34px;height:34px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-weight:700;font-size:13px}
.tl .searchrow{padding:12px 16px 8px}
.tl .search{display:flex;align-items:center;gap:10px;background:var(--surface);border:2px solid var(--line);border-radius:12px;padding:0 8px 0 14px;min-height:56px}
.tl .search:focus-within{border-color:var(--accent)}
.tl .search input{flex:1;border:0;background:none;font-size:17px;outline:none;padding:12px 0}
.tl .search .kbd{font:600 11px var(--mono);color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:3px 6px}
.tl .cats{display:flex;gap:8px;padding:4px 16px 10px;overflow-x:auto;scrollbar-width:thin;flex:none}
.tl .cats button{flex:none;min-height:46px;padding:0 14px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-weight:600;font-size:14px;display:flex;align-items:center;gap:8px;white-space:nowrap}
.tl .cats button i{width:10px;height:10px;border-radius:3px;display:inline-block}
.tl .cats button[aria-pressed="true"]{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.tl .gridwrap{flex:1;overflow:auto;padding:0 16px 16px;min-height:0}
.tl .pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tl .tile{position:relative;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 12px 10px;min-height:96px;display:flex;flex-direction:column;gap:2px;overflow:hidden}
.tl .tile::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:var(--cc,var(--accent))}
.tl .tile:hover{border-color:var(--cc,var(--accent))}
.tl .tile:active{transform:scale(.98)}
.tl .tile.editing{border-style:dashed}
.tl .tile .n{font-weight:600;font-size:14.5px;line-height:1.2;max-width:calc(100% - 20px)}
.tl .tile .s{font-size:12px;color:var(--muted);line-height:1.25}
.tl .tile .f{margin-top:auto;display:flex;align-items:center;gap:6px;padding-top:6px;flex-wrap:wrap}
.tl .tile .pr{font:600 14px var(--mono)}
.tl .tile .u{font-size:11.5px;color:var(--muted)}
.tl .star{position:absolute;top:8px;right:9px;font-size:18px;line-height:1;color:var(--spice)}
.tl .empty{padding:40px 24px;text-align:center;color:var(--muted);display:flex;flex-direction:column;gap:6px;align-items:center}

/* sale panel */
.tl .sale{display:flex;flex-direction:column;min-height:0;background:var(--surface);border-left:1px solid var(--line)}
.tl .sale-h{padding:12px 16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.tl .sale-h .row{align-items:center;flex-wrap:nowrap}
.tl .sale-h h2{font-size:18px;margin-right:auto}
.tl .retbar{background:var(--danger-soft);color:var(--danger);font-weight:600;font-size:13px;padding:8px 10px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.tl .lines{flex:1;overflow:auto;min-height:100px}
.tl .line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:10px 16px;border-bottom:1px solid var(--line);text-align:left;width:100%}
.tl .line:hover{background:var(--surface-2)}
.tl .line[aria-selected="true"]{background:var(--accent-soft);box-shadow:inset 4px 0 0 var(--accent)}
.tl .line .ln{font-weight:600;font-size:14.5px;min-width:0}
.tl .line .ln span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.tl .line .lt{font:600 14.5px var(--mono);text-align:right}
.tl .line .ld{font-size:12.5px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tl .line .lx{grid-column:1/-1;font-size:12px;color:var(--muted)}
.tl .line .disc{color:var(--danger)}
.tl .line.neg .lt{color:var(--danger)}
.tl .lineacts{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:8px 12px;border-top:1px solid var(--line);background:var(--surface-2)}
.tl .lineacts button{min-height:46px;border-radius:9px;background:var(--surface);border:1px solid var(--line);font-size:12.5px;font-weight:600;padding:0 4px;line-height:1.1}
.tl .lineacts .q{font:600 15px var(--mono)}
.tl .lineacts .warn{color:var(--danger)}
.tl .totals{margin:8px 12px;padding:12px 14px;border-radius:12px;background:var(--accent-soft);border:2px solid color-mix(in srgb,var(--accent) 35%,transparent);display:flex;flex-direction:column;gap:4px;font-size:15px;font-weight:600}
.tl .totals .r{display:flex;justify-content:space-between;gap:10px}
.tl .totals .r span:last-child{font-family:var(--mono)}
.tl .totals .r.d span:last-child,.tl .totals .r.reb span:last-child{color:var(--danger)}
.tl .totals .r.reb span:first-child{color:var(--accent)}
.tl .totals .r.lot span:first-child{color:var(--lot)}
.tl .totals .grand{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px -6px -4px;padding:10px 12px;border-radius:10px;background:var(--accent);color:var(--on-accent)}
.tl .totals .grand span:first-child{font-weight:750;font-size:22px;letter-spacing:.02em;text-transform:uppercase}
.tl .totals .grand span:last-child{font:700 32px var(--mono)}
.tl .totals .saved{align-self:flex-start;margin-top:4px;font-weight:700;font-size:12.5px;color:#fff;background:var(--spice);padding:4px 10px;border-radius:99px}
.tl .acts{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;padding:0 12px 8px}
.tl .acts .btn{min-height:52px;font-size:12.5px;padding:0 3px;flex-direction:column;gap:2px;line-height:1.1;text-align:center}
.tl .acts .btn small{font:500 10.5px var(--mono);color:var(--muted)}
.tl .qcash{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:0 12px 8px;min-height:52px}
.tl .qcash .btn{min-height:44px;font:600 14px var(--mono);padding:0}
.tl .tenders{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:6px;padding:0 12px 12px}
.tl .tenders .btn{min-height:64px;flex-direction:column;gap:2px;font-size:14px;padding:0 4px}
.tl .tenders .btn small{font:500 11px var(--mono);opacity:.85}

/* dialogs */
.tl .modal-back{position:fixed;inset:0;background:rgba(10,16,13,.55);display:grid;place-items:center;padding:16px;z-index:50}
.tl .modal-back.top{z-index:55}
.tl .modal{background:var(--surface);border-radius:16px;width:100%;max-width:560px;max-height:min(94%,800px);overflow:auto;display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.35);padding:0;gap:0}
.tl .modal.wide{max-width:880px}
.tl .mh{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:1}
.tl .mh h2{font-size:20px;margin-right:auto}
.tl .close{font-size:26px;line-height:1;width:40px;height:40px;border-radius:8px;color:var(--muted)}
.tl .mb{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
.tl .mf{display:flex;gap:8px;justify-content:flex-end;padding:12px 18px 16px;flex-wrap:wrap}
.tl .keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tl .keypad button{min-height:58px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);font:600 20px var(--mono)}
.tl .keypad button:active{background:var(--sunk)}
.tl .readout{font:600 34px var(--mono);text-align:right;padding:10px 14px;background:var(--sunk);border-radius:10px;min-height:62px}
.tl .readout small{font:500 13px "Segoe UI",system-ui,sans-serif;color:var(--muted);display:block}
.tl .opts{display:flex;flex-wrap:wrap;gap:8px}
.tl .opts.col{flex-direction:column;align-items:stretch}
.tl .opt{min-height:46px;padding:0 14px;border-radius:10px;border:1px solid var(--line);font-weight:600;font-size:14px;background:var(--surface);display:inline-flex;align-items:center;gap:8px}
.tl .opt[aria-pressed="true"]{background:var(--accent);color:var(--on-accent);border-color:transparent}
.tl .note{font-size:13px;color:var(--muted);background:var(--surface-2);border-radius:8px;padding:8px 10px}
.tl .note.spice{background:var(--spice-soft);color:var(--fg)}
.tl .group{display:flex;flex-direction:column;gap:8px}
.tl .paygrid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px}
.tl .due{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:16px}
.tl .due span:last-child{font:700 26px var(--mono)}
.tl .due.big span:last-child{font-size:34px}
.tl .plist{display:flex;flex-direction:column;gap:6px;font-size:14px}
.tl .plist>div{display:flex;justify-content:space-between;gap:8px}
.tl .plist.sep{border-top:1px solid var(--line);padding-top:8px}
.tl .custlist{display:flex;flex-direction:column;gap:6px}
.tl .custlist>button,.tl .rowline{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;text-align:left;width:100%}
.tl .custlist small{display:block;color:var(--muted);font-size:12.5px}
.tl .receipt{background:var(--paper);color:var(--ink);font:12.5px/1.45 var(--mono);padding:18px;border-radius:4px;box-shadow:0 6px 18px rgba(0,0,0,.12);max-width:400px;margin:0 auto;width:100%;white-space:pre;overflow-x:auto}
.tl div.receipt{white-space:normal;font-size:13px}
.tl .receipt .rr{display:flex;justify-content:space-between;gap:10px}
.tl .receipt .rr span:first-child{white-space:pre-wrap;font-family:var(--mono),"Nirmala UI","Noto Sans Gujarati","Noto Sans Devanagari","Noto Sans Gurmukhi",sans-serif}
.tl .receipt .rr span:last-child{white-space:nowrap}
.tl .receipt .rr.c{justify-content:center;text-align:center}
.tl .receipt .rr.b{font-weight:700}
.tl .receipt .rr.l{font-size:16px}
.tl .receipt .bc{letter-spacing:.1em;color:#555;margin-top:6px}
.tl .receipt hr{border:0;border-top:1px dashed #999;margin:8px 0}
.tl .toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:var(--fg);color:var(--bg);padding:12px 18px;border-radius:10px;font-weight:600;font-size:14px;z-index:60;max-width:calc(100% - 32px);box-shadow:0 8px 24px rgba(0,0,0,.25)}

@media (max-width:1180px){.tl .till{grid-template-columns:minmax(0,1fr) 370px}.tl .tenders{grid-template-columns:1fr 1fr}}
@media (max-width:860px){
  .tl{overflow:auto}
  .tl .till{display:flex;flex-direction:column;height:auto;min-height:100%}
  .tl .t-left{min-height:60vh}
  .tl .sale{border-left:0;border-top:1px solid var(--line)}
  .tl .paygrid{grid-template-columns:1fr}
}
@media (max-width:480px){.tl .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.tl .lineacts,.tl .acts{grid-template-columns:repeat(3,1fr)}}

/* ---- restaurant: options, orders, pickup ---- */
.tl .line .lx.mods{color:var(--fg)}
.tl .line .lx.note{color:var(--spice);font-weight:600}
.tl .orderbar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:var(--spice-soft);color:var(--spice);font-weight:600;font-size:13.5px;text-align:left;width:100%}
.tl .orderbar small{font-weight:600;text-decoration:underline}
.tl .orderbar.paying{background:var(--accent-soft);color:var(--accent)}
.tl .group{display:flex;flex-direction:column;gap:8px}
.tl .group h3 small{margin-left:8px;text-transform:none;letter-spacing:0;font-weight:500}
.tl .group h3 small.need{color:var(--danger);font-weight:700}
.tl .optwrap{display:inline-flex;gap:2px}
.tl .opt.minus{min-width:40px;justify-content:center;padding:0}
.tl .opt.small{min-height:36px;font-size:13px;font-weight:500}
.tl input.field{width:100%}
.tl .qtyrow{align-items:center}
.tl .qtyrow .q{font:700 22px var(--mono);min-width:40px;text-align:center}
.tl .qtyrow .num{font-size:20px}
.tl .ordernum{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:10px;background:var(--spice-soft);color:var(--spice);font-weight:600;flex-wrap:wrap}
.tl .ordernum b{font:800 34px var(--mono)}
.tl .ordernum small{flex-basis:100%;font-weight:500}
.tl .rowline.order{flex-wrap:wrap}
.tl .rowline.order.ready{border-color:var(--ok);box-shadow:inset 4px 0 0 var(--ok)}
.tl .rowline .onum{font:800 24px var(--mono);min-width:64px}
.tl .rowline small .chip{margin:4px 4px 0 0}
.tl .chip.ok{background:var(--accent-soft);color:var(--accent);font-weight:600}
.tl .oacts{display:flex;gap:6px;flex-wrap:wrap}
.tl .cancelrow{flex-basis:100%;align-items:center}

/* ---- kitchen screen ---- */
.tl .kds{position:absolute;inset:0;display:flex;flex-direction:column;background:var(--bg)}
.tl .kds-top{display:flex;align-items:center;gap:12px;padding:10px 14px;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap}
.tl .kds-top .clock{font:700 22px var(--mono)}
.tl .kds-err{background:var(--danger-soft);color:var(--danger);padding:8px 14px;font-weight:600}
.tl .kds-grid{flex:1;overflow:auto;padding:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;align-content:start}
.tl .ticket{background:var(--paper);color:var(--ink);border-radius:12px;border:2px solid var(--line);display:flex;flex-direction:column;gap:8px;padding:12px;min-width:0}
.tl .ticket.warm{border-color:var(--spice)}
.tl .ticket.late{border-color:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}
.tl .ticket.fresh{animation:kfresh 1.2s ease-out 2}
@keyframes kfresh{0%{box-shadow:0 0 0 6px var(--accent)}100%{box-shadow:0 0 0 0 transparent}}
@media (prefers-reduced-motion:reduce){.tl .ticket.fresh{animation:none;box-shadow:0 0 0 4px var(--accent)}}
.tl .ticket header{display:flex;align-items:baseline;gap:8px}
.tl .ticket .num{font:800 30px var(--mono)}
.tl .ticket .type{font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.tl .ticket .age{margin-left:auto;font:700 18px var(--mono)}
.tl .ticket.late .age{color:var(--danger)}
.tl .ticket .who{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:14px}
.tl .ticket ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;border-top:1px dashed #bbb;padding-top:8px}
.tl .ticket li{display:grid;grid-template-columns:auto 1fr;gap:2px 8px}
.tl .ticket li .q{font:800 20px var(--mono)}
.tl .ticket li .n{font-weight:700;font-size:19px;line-height:1.2}
.tl .ticket li .n small{display:block;font-weight:500;font-size:13px;color:#555}
.tl .ticket li .part,.tl .ticket li .mod,.tl .ticket li .inote{grid-column:2;font-size:15px}
.tl .ticket li .part{color:#666;font-style:italic}
.tl .ticket li .mod{font-weight:600}
.tl .ticket li .inote{color:#a3361f;font-weight:700}
.tl .ticket .onote{background:#fbefd6;padding:6px 8px;border-radius:6px;font-weight:600}
.tl .ticket .wait{font-size:13px;color:#8a5a00;font-weight:600}
.tl .kds-done{display:flex;gap:8px;align-items:center;padding:8px 14px;border-top:1px solid var(--line);background:var(--surface);overflow-x:auto}
.tl .kds-soldout{padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface)}
.tl .kds-soldout p{margin:0 0 8px}
.tl .kds-dishes{display:flex;flex-wrap:wrap;gap:8px}
.tl .kds-dishes .btn small{display:block;font-size:11px}
.tl .kds-top .badge{margin-left:6px;background:var(--warn,#b45309);color:#fff;border-radius:9px;padding:0 6px;font-size:12px}
.tl .empty.big{grid-column:1/-1;font-size:20px;padding:80px 24px}

/* ---- pickup board ---- */
.tl .board{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;background:#101613;color:#f2f5f3}
.tl .board .col{padding:28px;gap:20px;overflow:hidden}
.tl .board .ready{background:#123524}
.tl .board h2{font-size:44px;display:flex;flex-direction:column;gap:6px}
.tl .board h2 small{font-size:20px;font-weight:500;opacity:.8}
.tl .board .nums{display:flex;flex-wrap:wrap;gap:16px;align-content:flex-start}
.tl .board .bn{display:flex;flex-direction:column;align-items:center;min-width:140px;padding:12px 16px;border-radius:14px;background:rgba(255,255,255,.08)}
.tl .board .ready .bn{background:#2e7d32}
.tl .board .bn b{font:800 64px/1 var(--mono)}
.tl .board .bn span{font-size:20px;margin-top:6px}
.tl .board footer{grid-column:1/-1;display:flex;gap:10px;align-items:center;padding:8px 16px;font-size:14px;opacity:.75}
.tl .board footer .btn{margin-left:auto;background:transparent;color:inherit;border-color:rgba(255,255,255,.3)}
@media (max-width:700px){.tl .board{grid-template-columns:1fr;grid-template-rows:1fr 1fr auto}.tl .board .bn b{font-size:44px}}
/* hot-food containers in the weigh dialog */
.tl .boxes{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.tl .boxes button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:52px;padding:6px 12px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);font-weight:600;font-size:14px;text-align:left}
.tl .boxes button small{font-weight:500;font-size:12px;color:var(--muted);font-family:var(--mono,monospace)}
.tl .boxes button[aria-pressed="true"]{border-color:var(--accent,#1f6b4a);background:var(--accent-soft,#e6f2ea)}

/* ---- prototype layout: module rail, status line, photo tiles, customer and order type ---- */
.tl{--veg:#2e7d32;--nonveg:#8a3b12}
@media (prefers-color-scheme:dark){.tl{--veg:#5fc265;--nonveg:#e08a5a}}
.tl .tl-app{display:flex;height:100%;min-height:0}
.tl .tl-main{position:relative;flex:1;min-width:0;min-height:0;height:100%}
.tl .topbar .store .status{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);margin-top:4px;flex-wrap:wrap}
.tl .status i{width:8px;height:8px;border-radius:50%;background:var(--ok);display:inline-block}
.tl .status i.bad{background:var(--danger)}
.tl .status i.wait{background:var(--line)}
.tl .who .wn{display:flex;flex-direction:column;line-height:1.15}
.tl .who .wn small{font-size:12px;color:var(--muted)}
.tl .searchrow{display:flex;flex-direction:column;gap:8px}
.tl .search .ico{width:22px;height:22px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tl .hints{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12.5px;color:var(--muted)}
.tl .hints button{padding:5px 10px;border-radius:99px;border:1px dashed var(--line);font-size:12.5px;color:var(--fg)}
.tl .hints button:hover{border-color:var(--accent);color:var(--accent)}
.tl .gridhead{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:2px 2px 10px;font-size:13px;color:var(--muted)}
.tl .gridhead .btn.mini{min-height:36px}
.tl .tile .n,.tl .tile .s,.tl .tile .f{position:relative;z-index:1}
.tl .tile .pic{position:absolute;inset:0;z-index:0;pointer-events:none}
.tl .tile .pic img{width:100%;height:100%;object-fit:cover;display:block}
.tl .tile.photo{min-height:118px;justify-content:flex-end;border-color:transparent}
.tl .tile.photo::before{z-index:1}
.tl .tile.photo .pic::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 22%,rgba(0,0,0,.55) 55%,rgba(0,0,0,.85))}
.tl .tile.photo .n,.tl .tile.photo .pr{color:#fff}
.tl .tile.photo .s,.tl .tile.photo .u{color:rgba(255,255,255,.85)}
.tl .tile.photo .n,.tl .tile.photo .s,.tl .tile.photo .f{text-shadow:0 1px 2px rgba(0,0,0,.6)}
.tl .tile.photo .f{margin-top:0;padding-top:2px}
.tl .tile.photo .tax{background:#fff;border-color:transparent;text-shadow:none}
.tl .tile.photo .vmark{background:#fff;border-radius:3px}
.tl .tile .scale{position:absolute;top:10px;right:8px;font:600 10px var(--mono);color:var(--fg);background:var(--surface);padding:3px 5px;border-radius:4px;z-index:2}
.tl .tile .star{position:absolute;top:8px;left:9px;right:auto;z-index:2;font-size:20px;color:var(--muted);text-shadow:0 1px 2px rgba(0,0,0,.3)}
.tl .tile .star.on{color:var(--spice)}
.tl .tile.editing .n{padding-left:22px}
.tl .tax.H{color:var(--spice);border-color:color-mix(in srgb,var(--spice) 50%,transparent)}
.tl .tax.P{color:#e06a1b;border-color:color-mix(in srgb,#e06a1b 50%,transparent)}
.tl .vmark{width:13px;height:13px;border:1.6px solid var(--veg);border-radius:2px;display:inline-grid;place-items:center;flex:none}
.tl .vmark::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--veg)}
.tl .vmark.nv{border-color:var(--nonveg)}
.tl .vmark.nv::after{border-radius:0;width:0;height:0;background:none;border-left:3.5px solid transparent;border-right:3.5px solid transparent;border-bottom:6px solid var(--nonveg)}
.tl .line .ln{display:flex;align-items:center;gap:6px}
.tl .line .ln span{min-width:0}
.tl .custchip{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:10px;background:var(--accent-soft);font-size:13px;flex:1;min-width:0;text-align:left;min-height:38px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tl .custchip.none{background:var(--surface-2);color:var(--muted);border:1px dashed var(--line)}
.tl .custchip b{font-weight:600;color:var(--fg)}
.tl .custchip .x{margin-left:auto;font-size:12px;color:var(--muted)}
.tl .sale-h .btn.mini{min-height:38px;white-space:nowrap}
.tl .otype{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tl .otype .muted{font-size:12.5px}
.tl .otype .seg button{min-height:34px;font-size:13px;min-width:0}
.tl .acts .lotto{background:#f5e663;color:#16201a;padding:0 3px;border-radius:2px}
.tl .qcash .btn[disabled]{opacity:.4}
@media (max-width:860px){.tl .tl-app{flex-direction:column;height:auto;min-height:100%}.tl .tl-main{height:auto}}

/* phase 4: linked card terminal and offline selling */
.tl .offbadge{display:inline-flex;align-items:center;gap:6px;border:0;padding:2px 8px;border-radius:99px;background:var(--danger-soft);color:var(--danger);font:600 12px var(--body,inherit);cursor:pointer}
.tl .offbadge.warn{background:var(--spice-soft);color:var(--spice)}
.tl .offbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 12px 0;padding:8px 12px;border-radius:10px;background:var(--danger-soft);color:var(--fg);font-size:13.5px}
.tl .offbar.warn{background:var(--spice-soft)}
.tl .offbar .btn{margin-left:auto}
.tl .tenders .btn.card2{grid-column:span 2}
.tl .terminal{display:flex;flex-direction:column;gap:10px}
.tl .tscreen{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;padding:18px 14px;border-radius:14px;background:#14201a;color:#e7f3ec;border:6px solid #2b3a32;box-shadow:inset 0 0 0 1px #3d5145}
.tl .tscreen small{font:600 11px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:#8fd3ae}
.tl .tscreen b{font:700 30px var(--mono)}
.tl .tscreen span{font-size:14px;min-height:1.3em}
.tl .simgrid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tl .simgrid .btn{min-height:48px}
.tl .due.ok{background:var(--ok)}
.tl .due.bad{background:var(--danger)}
/* deals, customers */
.tl .tile .dealtag{font-weight:700;font-size:11px;line-height:1;padding:4px 6px;border-radius:6px;background:#c0392b;color:#fff;white-space:nowrap}
.tl .tile .pr.sale{color:#c0392b}
.tl .tile .was{font-size:11.5px;color:var(--muted)}
.tl .line .lx.deal{color:#c0392b;font-weight:600}
.tl .custchip.member{border-color:var(--accent);background:var(--accent-soft)}
.tl .custlist{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto}
.tl .custlist .opt{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.tl .custlist .opt small{color:var(--muted);font-weight:400}

/* phase 6: live scale, devices list, cash drop warning */
.tl .scale{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);font-weight:600}
.tl .scale .sdot{width:10px;height:10px;border-radius:50%;background:var(--spice);flex:none}
.tl .scale.ok{background:var(--accent-soft);border-color:transparent}.tl .scale.ok .sdot{background:var(--ok)}
.tl .scale.bad .sdot{background:var(--danger)}
.tl .scale.wait .sdot{animation:afs-pulse 1s ease-in-out infinite}
@keyframes afs-pulse{50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.tl .scale.wait .sdot{animation:none}}
.tl .opts.sim{align-items:center}
.tl .devs{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:14px}
.tl .devs dt{color:var(--muted);font-weight:600}.tl .devs dd{margin:0}
.tl .offbar.drop{background:var(--spice-soft);border:1px solid var(--spice)}

/* scan box suggestions: the list spans the whole search bar */
.tl .search{position:relative}
.tl .search .suggest{flex:1;position:static;min-width:0}
.tl .search .suggest-list{top:calc(100% + 2px);margin-top:0;font-size:16px}
.tl .search .suggest .suggest-list button{padding:12px 16px;min-height:48px}
