/* Business Plus Business (B+B) — brand: green #2BD47D, plus-yellow #FFC93C, navy #0F172A.
   Themes: <html data-theme="light|dark"> is set before the page draws (see index.html). */
:root{
  --pink:#FF8FB1; --pink-soft:#FFE4EC; --pink-ink:#A3214F;
  --green:#2BD47D; --yellow:#FFC93C; --navy:#0F172A;
  --bg:#F3F6F4; --surface:#FFFFFF; --sunk:#EEF2EF; --ink:#0F172A; --muted:#475569; --line:#E2E8F0; --line-2:#CBD5E1;
  --brand:var(--green); --on-brand:var(--navy); --brand-text:#0B7A47; --brand-soft:#E8F7EF;
  --plus:var(--yellow); --on-plus:var(--navy); --plus-soft:#FFF4D6;
  --deliv:#0B7A47; --deliv-soft:#E8F7EF;
  --office:#1A62BA; --office-soft:#E3EEFC;
  --lms:#7A4CC9; --lms-soft:#EFE7FB;
  --warn:#8A5C00; --warn-soft:#FFF4D6;
  /* error red (Phase 0): only for error text, error outlines, problem messages and Delete. --bad is the same red for the older status colours. */
  --err:#B42318; --err-soft:#FEF3F2; --err-icon:#F97066; --bad:var(--err); --bad-soft:var(--err-soft);
  --wa:#1FA855; --gold:#C98A00;
  --bar:#0F172A; --bar-ink:#E8EEF7; --bar-line:#1E293B;
  --scrim:rgb(15 23 42 / .5);
  --shadow:0 18px 50px rgb(15 23 42 / .18);
  /* charts */
  --c1:#16A362; --c2:#1F6FD1; --c3:#E0A100; --c4:#E8663A; --c5:#C65AA0;
  --h1:#D4F5E3; --h2:#A6E9C6; --h3:#6FD9A3; --h4:#2BBF74; --h5:#14975A; --h6:#0B6B3F;
  /* brand type: Inter everywhere (Noto Sans Sinhala and Tamil for those letters) */
  --f-display:"Inter","Liberation Sans",Arial,sans-serif;
  --f-body:"Inter","Liberation Sans",Arial,sans-serif;
  --f-mono:"Inter","Liberation Sans",Arial,sans-serif;
  --r:14px; --nav-h:0px; --bar-h:60px;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --pink-soft:#3B2230; --pink-ink:#FFB3C9;
  --bg:#0F172A; --surface:#1E293B; --sunk:#172235; --ink:#F1F5F9; --muted:#94A3B8; --line:#334155; --line-2:#475569;
  --brand-text:#2BD47D; --brand-soft:#123A31; --plus-soft:#3A3218;
  --deliv:#2BD47D; --deliv-soft:#123A31;
  --office:#6EA8FF; --office-soft:#172C4D;
  --lms:#B79CF5; --lms-soft:#2A2248;
  --warn:#FFC93C; --warn-soft:#3A3218;
  --err:#FF8A80; --err-soft:#3D1C24; --err-icon:#F97066;
  --wa:#3FD17A; --gold:#FFC93C;
  --bar:#0F172A; --bar-ink:#F1F5F9; --bar-line:#1E293B;
  --scrim:rgb(2 6 16 / .62);
  --shadow:0 18px 50px rgb(0 0 0 / .5);
  --c1:#2BD47D; --c2:#6EA8FF; --c3:#FFC93C; --c4:#FF8A5C; --c5:#E67BC2;
  --h1:#143A31; --h2:#16573F; --h3:#1A7650; --h4:#21965F; --h5:#2BBF74; --h6:#7BE8AE;
  color-scheme:dark;
}
/* --nav-h: the measured bar height is set by navshell.js; this is only the starting value on phones (Phase 2) */
@media (max-width:599px){ :root{ --nav-h:64px; } }

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:15px/1.5 var(--f-body);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
h1,h2,h3{font-family:var(--f-display);margin:0;text-wrap:balance;line-height:1.15;font-weight:800;letter-spacing:-.02em}
h3{font-weight:700;letter-spacing:-.01em}
h2{font-size:24px} h3{font-size:18px}
p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
/* iPhone and iPad app (October 2026): the 16 px text boxes are the general iPhone/iPad rule at the end of this file (html[data-ios], which the app also sets) */
button{cursor:pointer}
a{color:var(--office)}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
[hidden]{display:none!important}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums;font-size:.92em}
.muted{color:var(--muted)}
.small{font-size:13px}
.tnum{font-variant-numeric:tabular-nums}
.boot{padding:48px 16px;text-align:center;color:var(--muted)}
/* "Loading your account…" with Rich Clay: the ring mark centred, the words under it, on the pack's cream (navy in dark) */
.boot-rich{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:0 24px;background:#F5EFE6;color:#1F1A17;font-weight:600;font-size:16px}
.boot-rich .boot-ring{width:96px;height:96px;border-radius:50%;display:block}
:root[data-theme="dark"] .boot-rich{background:#0F172A;color:#F6F1EA}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .boot-rich{background:#0F172A;color:#F6F1EA} }
.stack{display:grid;gap:14px}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.spread{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.panel>*,.board-cols>*,.stack>*{min-width:0}

/* ---------- app bar ---------- */
.appbar{position:sticky;top:0;z-index:20;background:var(--bar);color:var(--bar-ink);border-bottom:1px solid var(--bar-line);padding-top:env(safe-area-inset-top,0px)}
.appbar-in{max-width:1240px;margin:0 auto;height:var(--bar-h);padding:0 max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));display:flex;align-items:center;gap:14px}
.brandmark{display:flex;align-items:center;gap:10px;min-width:0;flex:0 1 auto;background:none;border:0;color:inherit;padding:0}
.brandmark img{width:34px;height:34px;flex:none;object-fit:contain}
.brandmark img.biz{border-radius:9px;object-fit:cover;width:30px;height:30px}
.brandmark h1{font-size:19px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brandmark .bm-s{display:none}
@media (max-width:400px){ .brandmark .bm-l{display:none} .brandmark .bm-s{display:inline} }   /* QA ios-ux-1: on a small phone the name is B+B, not 'Business Plus Busi…' */
.topnav{display:flex;gap:2px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;margin-left:10px}
.topnav button{background:none;border:0;color:var(--bar-ink);opacity:.72;padding:7px 13px;border-radius:99px;font-weight:500;white-space:nowrap;font-size:14px}
.topnav button:hover{opacity:1;background:rgb(255 255 255 / .06)}
.topnav button[aria-current="page"]{opacity:1;background:var(--brand);color:var(--on-brand);font-weight:600}
.bar-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex:none}
.icon-btn{width:40px;height:40px;border-radius:50%;border:0;background:none;color:inherit;display:inline-grid;place-items:center;padding:0}
.icon-btn:hover{background:rgb(255 255 255 / .08)}
.icon-btn svg{width:22px;height:22px}
.acct{display:flex;align-items:center;gap:8px;border:1px solid var(--bar-line);background:none;color:inherit;border-radius:99px;padding:3px 10px 3px 3px;font-size:13px;max-width:220px}
.acct .avatar{width:32px;height:32px;font-size:12px;background:var(--brand);color:var(--on-brand);border:0}
.acct span.nm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1023px){ .acct{padding:3px;border:0} .acct span.nm{display:none} }   /* P2-QA-6: the computer top bar starts at 1024 px (was 1100) */

/* ---------- bottom bar, tablet rail and top menu: see "Phase 2 nav shell" at the end of this file ---------- */

main{max-width:1240px;margin:0 auto;padding-inline:max(16px,env(safe-area-inset-left,0px)) max(16px,env(safe-area-inset-right,0px));padding-block:20px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom,0px))}
@media (min-width:720px){ main{padding-inline:max(24px,env(safe-area-inset-left,0px)) max(24px,env(safe-area-inset-right,0px))} }
.page-h{display:grid;gap:4px;margin-bottom:6px}
.page-h h2{font-size:26px}
.page-h p{max-width:62ch}
.banner{background:var(--warn-soft);color:var(--warn);border-radius:var(--r);padding:10px 14px;font-size:14px}
.banner b{color:inherit}
.banner.info{background:var(--office-soft);color:var(--office)}
.banner.ok{background:var(--deliv-soft);color:var(--deliv)}

/* ---------- buttons ---------- */
.btn{border:1px solid var(--line-2);background:var(--surface);border-radius:99px;padding:8px 16px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:var(--ink);font-size:14px;line-height:1.3;min-height:38px}
.btn:hover{border-color:var(--muted)}
.btn.primary,.btn.deliv{background:var(--brand);color:var(--on-brand);border-color:var(--brand);font-weight:700}
.btn.primary:hover,.btn.deliv:hover{filter:brightness(1.05);border-color:var(--brand)}
.btn.plus{background:var(--plus);color:var(--on-plus);border-color:var(--plus);font-weight:700}
.btn.office{background:var(--office);border-color:var(--office);color:#fff;font-weight:600}
:root[data-theme="dark"] .btn.office{color:var(--navy)}
.btn.wa{background:#15803D;border-color:#15803D;color:#fff}
:root[data-theme="dark"] .btn.wa{color:var(--navy)}
.btn.ghost{background:none;border-color:transparent}
.btn.ghost:hover{background:var(--sunk)}
.btn.danger{color:var(--bad)}
.btn.danger-solid{background:var(--bad);border-color:var(--bad);color:#fff;font-weight:600}
:root[data-theme="dark"] .btn.danger-solid{color:var(--navy)}
.btn.sm{padding:5px 12px;font-size:13px;min-height:32px}
.btn.lg{padding:12px 20px;font-size:16px;min-height:48px}
.btn.block{width:100%}
.btn[disabled]{opacity:.45;cursor:not-allowed}
@media (pointer:coarse){ .btn{min-height:42px} .btn.sm{min-height:36px} }

/* pills */
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 10px;border-radius:99px;white-space:nowrap}
.pill.lms{background:var(--lms-soft);color:var(--lms)}
.pill.deliv{background:var(--deliv-soft);color:var(--deliv)}
.pill.office{background:var(--office-soft);color:var(--office)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.pill.plain{background:var(--sunk);color:var(--muted)}
.pill.dr-asked{white-space:normal;max-width:100%}   /* P2-QA-3: the driver's "Asked for … · waiting for the business" wraps on a narrow phone instead of widening the page */
.pill.sc-stage{white-space:normal;max-width:100%}   /* the Store Creator home stage ("Selected: send your documents") wraps on a 320 px phone in Tamil instead of widening the page */
.dot{width:7px;height:7px;border-radius:50%;background:currentColor}

/* forms */
label.f{display:grid;gap:5px;font-size:13px;color:var(--muted);font-weight:500;min-width:0}
div.fld{display:grid;gap:5px;font-size:13px;color:var(--muted);font-weight:500;min-width:0}
.i{width:100%;padding:10px 12px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface);color:var(--ink);min-width:0;min-height:42px}
.i:focus{border-color:var(--brand);outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 25%,transparent)}
textarea.i{resize:vertical;min-height:72px}
select.i{appearance:none;-webkit-appearance:none;padding-right:38px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position:right 11px center;background-size:16px 16px;background-repeat:no-repeat}
input.i[type=date],input.i[type=time],input.i[type=datetime-local]{min-height:42px;line-height:1.2;max-width:100%}
/* Mobile UX hotfix (26 Oct 2026, #1): on iPhone and iPad, WebKit's own look for date and time boxes forces content-box sizing and a minimum
   width whenever the width is a percentage, so "width:100%" came out about 20 px wider than its column ("Arrive on", From and To ran past
   the card and over each other). Without that look the box is sized like every other box; tapping it still opens the iPhone's wheel picker.
   (-webkit-touch-callout is only supported by iOS WebKit, so Android and computers keep their own date boxes.) */
/* the date and time field (kit.js DateTimeField, OA18): the visible box is a field like .i; the real input lies over it, invisible */
.dtbox{position:relative;display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;min-height:42px;padding:0 12px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface);color:var(--ink);overflow:hidden;box-sizing:border-box;font-size:15px;cursor:pointer}
.dtbox>.ico{flex:none;color:var(--muted)}
.dtbox .dt-val{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.dtbox.dt-empty .dt-val{color:var(--muted);font-weight:400}
.dtbox .dt-ov{position:absolute;inset:0;width:100%;height:100%;min-width:0;max-width:none;margin:0;padding:0;border:0;opacity:0;-webkit-appearance:none;appearance:none;box-sizing:border-box;cursor:pointer;z-index:1;font:inherit;font-size:max(16px,1em);color:transparent;background:transparent}   /* 16 px: iPhone Safari zooms into a smaller box when it is tapped (IOS-1) */
.dtbox .dt-ov::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
.dtbox:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 25%,transparent)}
.fe-wrap:has(.fe-msg) .dtbox,.dtbox:has(.dt-ov[aria-invalid="true"]){border-color:var(--err)}
@media (pointer:coarse){ .dtbox{min-height:44px} }
@supports (-webkit-touch-callout:none){
  input.i:is([type=date],[type=time],[type=datetime-local],[type=month]){-webkit-appearance:none;appearance:none;box-sizing:border-box;min-width:0;max-width:100%;display:block;text-align:left}
  input.i:is([type=date],[type=time],[type=datetime-local],[type=month])::-webkit-date-and-time-value{text-align:left;margin:0;min-height:1.2em}
}
input[type=checkbox]{accent-color:var(--brand);width:17px;height:17px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;align-items:end}
.grid2.two{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:479px){ .grid2.two{grid-template-columns:minmax(0,1fr)} }
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:479px){ .grid3{grid-template-columns:minmax(0,1fr);gap:10px} }
.form{display:grid;gap:10px;background:var(--sunk);border-radius:var(--r);padding:12px;margin-top:8px}
.seg{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;border:1px solid var(--line-2);border-radius:99px;overflow:hidden;background:var(--surface);padding:3px;gap:3px}
.seg button{border:0;background:none;padding:7px 16px;font-weight:500;color:var(--muted);border-radius:99px;white-space:nowrap}
.seg button[aria-pressed="true"]{background:var(--ink);color:var(--surface);font-weight:600}
.err{color:var(--bad);font-size:14px}

/* panels & cards */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:18px;display:grid;gap:14px;align-content:start}
@media (max-width:599px){ .panel{padding:16px;border-radius:16px} }
.narrow{max-width:760px}
.empty{background:var(--surface);border:1px dashed var(--line-2);border-radius:16px;padding:28px 18px;text-align:center;color:var(--muted);display:grid;gap:8px;justify-items:center}
.empty h3{color:var(--ink);font-size:18px}

/* settings-style list rows (open a sheet) */
.rows{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.rowlink{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;width:100%;text-align:left;background:none;border:0;border-top:1px solid var(--line);padding:14px 16px;color:var(--ink)}
.rowlink:first-child{border-top:0}
.rowlink:hover{background:var(--sunk)}
.rowlink .ri{width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand-text);display:grid;place-items:center}
.rowlink .ri svg{width:20px;height:20px}
.rowlink b{display:block;font-weight:600}
.rowlink .sub{font-size:13px;color:var(--muted)}
.rowlink .chev{color:var(--muted)}

/* auth */
/* QA ios-ux-1: no navy strip behind the status bar on the welcome / sign-in pages (the page colour runs to the very top, like the theme-color the app reads) */
.auth{min-height:100vh;display:grid;place-items:center;padding:calc(24px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));background:radial-gradient(1200px 600px at 50% -10%,color-mix(in srgb,var(--brand) 14%,transparent),transparent 60%),var(--bg)}
.auth-card{width:100%;max-width:420px;display:grid;gap:18px}
.auth-back{display:flex;justify-content:flex-start;margin:-4px 0 -2px}
.auth-back .btn{padding-left:6px;text-decoration:none}
.auth-logo{display:grid;justify-items:center;gap:6px;text-align:center}
.auth-logo img{width:84px;height:84px}
.auth-logo b{font-family:var(--f-display);font-size:26px;font-weight:600}
.auth-card .grid2{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.gbtn{background:var(--surface);border:1px solid var(--line);color:var(--ink);gap:10px;display:inline-flex;align-items:center;justify-content:center}
.gbtn:hover{background:var(--sunk)}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-card .panel>.small.muted{display:block}
.auth-card .logo{font-family:var(--f-display);font-weight:600;font-size:28px}

/* ---------- order queue workspace ---------- */
.work{display:grid;gap:18px;grid-template-columns:1fr}
@media (min-width:920px){ .work{grid-template-columns:minmax(330px,400px) 1fr;align-items:start} .work .detail{position:sticky;top:calc(var(--bar-h) + 16px);max-height:calc(100vh - var(--bar-h) - 32px);overflow:auto} }
.queue{display:flex;flex-direction:column;gap:12px;min-width:0}
.chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px;margin:0 -2px}
@media (min-width:920px){ .queue .chips{flex-wrap:wrap;overflow:visible} }
.chip{flex:none;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);border-radius:99px;padding:6px 13px;font-size:13.5px;font-weight:500;white-space:nowrap;justify-content:center;line-height:1.4}
/* a chip with a number bubble: less space on the bubble's side so it sits evenly inside the round end */
.chip:has(> .n){padding-right:7px}
.chip .n{min-width:22px;height:22px;border-radius:99px;background:var(--sunk);display:inline-grid;place-items:center;font-size:12px;font-weight:600;padding:0 6px;font-variant-numeric:tabular-nums}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.chip[aria-pressed="true"] .n{background:var(--brand);color:var(--on-brand)}
.chip.zero{color:var(--muted)}
.searchbar{display:flex;gap:8px;align-items:center}
.searchbar .i{flex:1;min-width:0}
/* old KPI-tile stats (still used in places) */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.stat{background:var(--surface);padding:10px 12px;border:0;text-align:left}
.stat b{display:block;font-family:var(--f-display);font-size:24px;font-weight:600;line-height:1.1}
.stat span{font-size:12px;color:var(--muted)}
.stat.on{background:var(--sunk);box-shadow:inset 0 -3px 0 var(--brand)}
.list{display:flex;flex-direction:column;gap:8px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:13px 15px;text-align:left;display:grid;gap:6px;width:100%;min-width:0;color:var(--ink)}
.card .l1>:last-child{flex:none}
button.card:hover{border-color:var(--line-2);background:color-mix(in srgb,var(--surface) 92%,var(--brand))}
.unbtn{all:unset;cursor:pointer;display:grid;gap:6px;width:100%}
.unbtn:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:6px}
.card.sel{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.card .l1{display:flex;justify-content:space-between;gap:10px;align-items:center}
.card .who{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .l2{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.card .l2>span:first-child{min-width:0}
.ticks{display:flex;gap:3px}
.ticks i{width:16px;height:5px;border-radius:2px;background:var(--line)}
.ticks.deliv i.f{background:var(--deliv)} .ticks.office i.f{background:var(--office)} .ticks.lms i.f{background:var(--lms)}

.detail{background:var(--surface);border:1px solid var(--line);border-radius:18px;min-width:0}
.drawer .detail{border:0;border-radius:0;background:none}
.d-head{padding:18px;border-bottom:1px solid var(--line);display:grid;gap:10px}
.d-head h2{font-size:22px}
.d-body{padding:18px;display:grid;gap:22px}
.drawer .d-head{padding:4px 0 16px}
.drawer .d-body{padding:16px 0 0}
.sec h3{font-size:14px;font-family:var(--f-body);font-weight:600;color:var(--muted);margin-bottom:10px;display:flex;align-items:center;gap:8px}
.sec h3 .no{font-family:var(--f-mono);display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--ink);color:var(--surface);font-size:12px}
.bubble{background:var(--brand-soft);border-radius:4px 14px 14px 14px;padding:10px 14px;max-width:520px;white-space:pre-wrap;font-size:14px}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:14px;margin:0}
.kv dt{color:var(--muted)} .kv dd{margin:0;min-width:0;overflow-wrap:anywhere}
.items{width:100%;border-collapse:collapse;font-size:14px}
.items td{padding:7px 0;border-bottom:1px solid var(--line)}
.items td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:10px}
.items tr.total td{border-bottom:0;font-weight:600}
.checks{display:grid;gap:8px;list-style:none;margin:0;padding:0}
.checks li{display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:start;font-size:14px}
.ic{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;margin-top:1px}
.ic.ok{background:var(--deliv-soft);color:var(--deliv)} .ic.warn{background:var(--warn-soft);color:var(--warn)} .ic.bad{background:var(--bad-soft);color:var(--bad)}
.checks small{display:block;color:var(--muted);font-size:13px}
details.more>summary{cursor:pointer;color:var(--muted);font-size:13px;font-weight:500;list-style:none;display:inline-flex;align-items:center;gap:6px}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary::before{content:"+";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--sunk);font-weight:700}
details.more[open]>summary::before{content:"−"}
details.more[open]>summary{margin-bottom:10px}
.track{list-style:none;margin:0;padding:0}
.step{display:grid;grid-template-columns:30px 1fr;gap:12px;position:relative;padding-bottom:16px}
.step:not(:last-child)::before{content:"";position:absolute;left:14px;top:30px;bottom:2px;width:2px;background:var(--line)}
.step.done:not(:last-child)::before{background:var(--c)}
.step .num{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:13px;border:2px solid var(--line);background:var(--surface);color:var(--muted)}
.step.done .num{background:var(--c);border-color:var(--c);color:var(--surface)}
.step.now .num{border-color:var(--c);color:var(--c)}
.step .t{font-weight:600;padding-top:4px}
.step .s{font-size:13px;color:var(--muted)}
.step.todo .t{color:var(--muted)}
.track.deliv{--c:var(--deliv)} .track.office{--c:var(--office)} .track.lms{--c:var(--lms)}
.msg{white-space:pre-wrap;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--wa);border-radius:8px;padding:10px 12px;font-size:14px}
.hist{list-style:none;margin:0;padding:0;font-size:13px;display:grid;gap:6px}
.hist li{display:grid;grid-template-columns:110px 1fr;gap:10px}
.hist time{color:var(--muted);font-size:12px}
.back{display:none}

/* ---------- shop ---------- */
.shop{display:grid;gap:18px;grid-template-columns:1fr}
@media (min-width:920px){ .shop{grid-template-columns:1fr 340px;align-items:start} .shop .cart{position:sticky;top:calc(var(--bar-h) + 16px)} }
.products{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.prod{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.prod>.spread{min-height:24px}
.prod-price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:0;margin-top:auto}
.prod-price .unit{color:var(--muted);font-size:13px}
.prod-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;min-height:24px}
.prod-act{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;padding-top:4px}
.prod-act>.btn{flex:1}
.prod h3{font-size:17px}
.prod .price{font-family:var(--f-display);font-weight:600;font-size:19px}
@media (max-width:599px){
  .products,.products.compact{grid-template-columns:1fr;gap:8px}
  .prod{padding:12px}
  .prod:has(>.thumb){grid-template-columns:76px 1fr;column-gap:12px;row-gap:5px}
  .prod>.thumb{grid-row:1 / span 8;aspect-ratio:1;align-self:start;border-radius:12px}
  .prod>.thumb.empty{font-size:0}
  .prod>.thumb.empty::after{content:"";width:26px;height:26px;border-radius:8px;background:var(--line)}
  .prod h3{font-size:16px}
  .prod .price{font-size:17px}
}
.stepper{display:inline-grid;grid-template-columns:38px 44px 38px;border:1px solid var(--line-2);border-radius:99px;overflow:hidden;background:var(--surface)}
.stepper button{border:0;background:var(--sunk);font-size:18px;font-weight:600;padding:5px 0;color:var(--ink)}
.stepper input{border:0;text-align:center;width:44px;background:var(--surface);font-variant-numeric:tabular-nums;-moz-appearance:textfield}
.stepper input::-webkit-inner-spin-button{display:none}
.cart{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;gap:12px}
.cart-lines{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.cart-lines li{display:grid;grid-template-columns:52px 1fr auto;gap:10px;align-items:start;border-bottom:1px solid var(--line);padding-bottom:10px;font-size:14px}
.cart-thumb{width:52px;height:52px;border-radius:10px;object-fit:cover;background:var(--sunk);display:block}
.cart-body{display:grid;gap:12px}
.cart-fab{position:fixed;right:16px;bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom,0px));z-index:19;background:var(--ink);color:var(--surface);border:0;border-radius:99px;padding:12px 18px 12px 12px;font-weight:600;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px}
.cart-count{background:var(--plus);color:var(--on-plus);border-radius:99px;min-width:26px;height:26px;display:inline-grid;place-items:center;font-size:13px;padding:0 7px;font-weight:700}
.prod.in-cart{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.products.compact{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.products.compact .prod h3{font-size:15px}

.progress{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:4px}
.progress i{height:6px;border-radius:3px;background:var(--line)}
.progress i.f{background:var(--brand)}
.progress.office i.f{background:var(--office)}
.progress.lms i.f{background:var(--lms)}

/* ---------- reports & tables ---------- */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
@media (max-width:599px){ .kpis{grid-template-columns:repeat(2,1fr)} }
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.kpi b{display:block;font-family:var(--f-display);font-size:24px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}
.kpi span{font-size:12.5px;color:var(--muted)}
.legend{display:flex;gap:14px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.tw{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
table.t{border-collapse:collapse;width:100%;font-size:13.5px;min-width:640px}
table.t th,table.t td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:middle}
table.t th{font-size:12.5px;color:var(--muted);background:var(--sunk);font-weight:700}
table.t tr:last-child td{border-bottom:0}
/* long names and emails: wrap to 2 lines, then "…"; the full text is in the title. Put class="clip" on the td and class="cl" (+ title) on the text. */
table.t td.clip{white-space:normal;min-width:130px;max-width:240px}
table.t td.clip .cl{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:normal;line-height:1.35}
table.t td.clip.wide{max-width:300px}
table.t td.clip .btn.cl{height:auto;min-height:32px;max-width:100%;text-align:left;padding-block:0;line-height:1.3;box-sizing:border-box;max-height:calc(2.6em + 12px);border-block:6px solid transparent;background-clip:padding-box}
/* class "tight": wide admin tables that must fit a 1024 px screen. Phone links and action buttons wrap instead of pushing the last column off screen. */
table.t.tight th,table.t.tight td{padding-left:8px;padding-right:8px}
@media (min-width:700px){ table.t.tight.wrapall th,table.t.tight.wrapall td{white-space:normal} table.t.tight.wrapall .pill{white-space:nowrap} table.t.tight.wrapall{font-size:13px} table.t.tight.wrapall th,table.t.tight.wrapall td{padding-left:6px;padding-right:6px} table.t.tight.wrapall td.clip{min-width:100px;max-width:200px} table.t.tight .sc-phone{flex-wrap:wrap!important;gap:0 8px} table.t.tight .acts{flex-wrap:wrap!important;gap:6px} }
table.t .i{padding:6px 8px;min-height:34px}

/* messages: see "Phase 0" at the end of this file (.toast holds the bars, .tst is one bar) */

.avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--sunk);border:1px solid var(--line);flex:none;display:inline-grid;place-items:center;font-weight:600;color:var(--muted);font-size:14px;overflow:hidden;font-family:var(--f-display)}
.avatar.lg{width:64px;height:64px;font-size:22px}
.avatar.sq{border-radius:12px}
/* letters instead of a photo: the shape grows to fit them (a circle for 2 letters, a pill for 3), never cut off */
span.avatar{width:auto;min-width:40px;padding:0 7px;white-space:nowrap;line-height:1;letter-spacing:.02em;border-radius:99px}
span.avatar.sq{border-radius:12px}
span.avatar.lg{width:auto;min-width:64px;padding:0 12px}
.acct span.avatar{width:auto;min-width:32px;padding:0 6px}
.thumb{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:var(--sunk);max-width:100%;display:block}
.thumb.empty{display:grid;place-items:center;color:var(--muted);font-size:13px}
.biz-chip{display:grid;justify-items:center;gap:6px;width:88px;text-align:center;font-size:12px;font-weight:500;background:none;border:0;padding:6px 4px;border-radius:14px;color:var(--ink);flex:none}
.biz-chip[aria-pressed="true"]{background:var(--surface);box-shadow:0 0 0 2px var(--brand)}
.biz-chip span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hscroll{display:flex;gap:8px;overflow-x:auto;padding:3px 3px 6px;scrollbar-width:none}
.hscroll>*{flex:none;white-space:nowrap}
.stars{color:var(--gold);letter-spacing:1px;white-space:nowrap}
.stars .muted{color:var(--line-2)}
.star-input{display:inline-flex;gap:2px}
.star-input button{border:0;background:none;font-size:28px;line-height:1;padding:2px;color:var(--line-2)}
.star-input button.on{color:var(--gold)}
.price-old{text-decoration:line-through;color:var(--muted);font-size:14px;font-weight:400;font-family:var(--f-body)}
.deal{background:var(--plus);color:var(--on-plus);border-radius:99px;padding:2px 8px;font-size:12px;font-weight:700;white-space:nowrap}
.nudge{position:sticky;bottom:calc(var(--nav-h) + 10px + env(safe-area-inset-bottom,0px));z-index:8;background:var(--brand-soft);border:1px solid color-mix(in srgb,var(--wa) 40%,transparent);border-radius:16px;padding:10px 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.drawer .nudge,.modal .nudge{bottom:0}
.choice{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.choice button{border:1px solid var(--line-2);background:var(--surface);border-radius:14px;padding:12px;text-align:left;display:grid;gap:4px;color:var(--ink)}
.choice button[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:color-mix(in srgb,var(--surface) 90%,var(--brand))}
.choice button[disabled]{opacity:.5}
.choice b{font-size:15px}
.drv{border:1px solid var(--line-2);border-radius:14px;padding:10px 12px;background:var(--surface);text-align:left;display:grid;gap:4px;width:100%;color:var(--ink)}
.drv[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.drv .busy{font-size:12px;color:var(--muted)}
.drv .clash{color:var(--bad);font-weight:600}
.qr-box{background:#fff;padding:14px;border-radius:16px;display:inline-grid;justify-items:center;gap:8px;color:var(--navy);border:1px solid var(--line)}
.qr-box canvas,.qr-box img{width:220px;height:220px;image-rendering:pixelated}
.board-cols{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.tile-row{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.toggle{display:inline-flex;align-items:center;gap:8px;font-size:14px}
.photo-row{display:flex;gap:8px;flex-wrap:wrap}
.photo-row img{width:96px;height:96px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.checklist{display:grid;gap:10px;list-style:none;padding:0;margin:0}
.checklist li{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

/* ---------- charts ---------- */
.vchart{display:grid;gap:6px}
.vbars{display:flex;align-items:flex-end;gap:2px;height:160px;border-bottom:1px solid var(--line);position:relative}
.vbar{flex:1;display:flex;flex-direction:column-reverse;gap:2px;height:100%;cursor:default;min-width:0}
.vbar i{display:block;border-radius:4px 4px 0 0;min-height:0}
.vbar:hover i{filter:brightness(1.12)}
.vbar i.s1{background:var(--c1)} .vbar i.s2{background:var(--c2)} .vbar i.s3{background:var(--c3)}
.vticks{display:flex;gap:2px;font-size:10px;color:var(--muted)}
.vticks span{flex:1;text-align:center;min-width:0;overflow:hidden}
.hbars{display:grid;gap:8px}
.hbar{display:grid;grid-template-columns:minmax(90px,1fr) 2fr auto;gap:10px;align-items:center;font-size:13px}
.hbar .track{height:12px;border-radius:0 6px 6px 0;background:var(--sunk);overflow:hidden}
.hbar .fill{height:100%;background:var(--c1);border-radius:0 6px 6px 0}
.chart-tip{position:fixed;z-index:80;pointer-events:none;background:var(--ink);color:var(--surface);font-size:12px;padding:6px 10px;border-radius:8px;white-space:nowrap}
.legend .s1{background:var(--c1)} .legend .s2{background:var(--c2)} .legend .s3{background:var(--c3)} .legend .s4{background:var(--c4)} .legend .s5{background:var(--c5)}
.donut-wrap{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.donut-legend{display:grid;gap:6px;font-size:13px}
.donut-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.line-svg{width:100%;height:180px;display:block;overflow:visible}
.line-svg text{fill:var(--muted);font-size:10px;font-family:var(--f-body)}
.heat{display:grid;grid-template-columns:40px repeat(24,minmax(14px,1fr));gap:2px;font-size:10px;color:var(--muted);min-width:520px}
.heat span.cell{aspect-ratio:1;border-radius:3px;background:var(--sunk)}
.heat .lab{display:flex;align-items:center}
.heat-scale{display:flex;gap:2px;align-items:center;font-size:11px;color:var(--muted)}
.heat-scale span{width:18px;height:10px;border-radius:2px}

/* ---------- driver calendar ---------- */
.cal{display:grid;grid-template-columns:52px repeat(7,minmax(110px,1fr));border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);min-width:820px}
.cal .hd{padding:8px;font-size:12px;font-weight:600;border-bottom:1px solid var(--line);background:var(--sunk);text-align:center}
.cal .hd.today{color:var(--brand-text)}
.cal .hours{display:grid;grid-template-rows:repeat(15,48px);font-size:11px;color:var(--muted)}
.cal .hours span{padding:2px 6px;border-top:1px solid var(--line)}
.cal .day{position:relative;border-left:1px solid var(--line);background:repeating-linear-gradient(to bottom,transparent 0,transparent 47px,var(--line) 47px,var(--line) 48px)}
.cal .ev{position:absolute;left:3px;right:3px;border-radius:8px;padding:4px 6px;font-size:11px;line-height:1.25;overflow:hidden;border-left:3px solid var(--c);background:color-mix(in srgb,var(--c) 18%,var(--surface));color:var(--ink);text-align:left;border-top:0;border-right:0;border-bottom:0}
.agenda{display:grid;gap:8px}
@media (max-width:719px){ .cal-wrap{display:none} }
@media (min-width:720px){ .agenda-only{display:none} }

/* ---------- inputs: combobox, address, scanner ---------- */
.combo{position:relative}
.combo-list{position:absolute;z-index:60;left:0;right:0;top:calc(100% + 4px);max-height:240px;overflow:auto;margin:0;padding:4px;list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.combo-list li{padding:9px 10px;border-radius:8px;cursor:pointer;font-size:14px;color:var(--ink)}
.combo-list li.hi,.combo-list li:hover{background:var(--sunk)}
.addr-picked{display:flex;gap:8px;align-items:center;justify-content:space-between;background:var(--sunk);border:1px solid var(--line);border-radius:10px;padding:8px 10px;font-size:14px}
.gplace{min-height:42px}
.gplace gmp-place-autocomplete{width:100%}
/* Mobile UX hotfix (#3): Google's search box looks like every other box here (it was solid black in dark mode: it followed the phone's
   light/dark setting through "color-scheme: light dark" and kept Google's own dark colours). It now takes the app's theme (the page's
   color-scheme, inherited) and the field look of .i: background, border, corners, text colour and the focus ring. */
.gplace>*{background-color:var(--surface);color:var(--ink);border:1px solid var(--line-2);border-radius:10px;min-height:42px;box-sizing:border-box;overflow:hidden}
.gplace>*:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 25%,transparent)}
/* address picker (AddressInput): Google's search box has a wide intrinsic size, so the column must be allowed to shrink (minmax(0,1fr)) and the box clipped to it */
.addr-f{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
.addr-f>*{min-width:0;max-width:100%}
.gplace{min-width:0;max-width:100%;overflow-x:clip}   /* clip sideways only, so the suggestion list can still drop down */
.gplace>*{display:block;min-width:0;max-width:100%;box-sizing:border-box}
.addr-hint{display:block;overflow-wrap:anywhere;white-space:normal}
.addr-hint .linkbtn.mine{display:inline-flex;max-width:100%;text-align:left;white-space:normal}
.addr-picked>span{min-width:0;overflow-wrap:anywhere}
.addr-picked .btn{flex:none}
.scanner{max-width:460px}
.scan-video{width:100%;max-width:100%;aspect-ratio:1;object-fit:cover;border-radius:16px;background:#000}
.scan-frame{position:relative;overflow:hidden;border-radius:16px}   /* the dark shade round the frame stays on the camera picture (it used to darken the whole pop-up) */
.scan-corners{position:absolute;inset:18%;border:3px solid var(--brand);border-radius:16px;box-shadow:0 0 0 999px rgb(0 0 0 / .3);pointer-events:none}

/* ---------- pop-ups (centre on large screens, bottom sheet on phones) and side sheets ---------- */
body.no-scroll{overflow:hidden}
.ico{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.overlay{position:fixed;inset:0;z-index:50;background:var(--scrim);display:grid;place-items:center;padding:16px;animation:fade .15s ease-out}
.modal{background:var(--surface);color:var(--ink);border-radius:20px;width:min(480px,100%);max-height:calc(100dvh - 32px);overflow:auto;box-shadow:var(--shadow);display:grid;align-content:start}
.modal.wide{width:min(720px,100%)}
.modal-head{padding:14px 16px 12px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:2;flex-wrap:nowrap!important}
.modal-head h3{font-size:18px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal-body{padding:18px 20px 20px}
.modal-x{width:36px;height:36px;padding:0!important;border-radius:50%!important;min-height:0!important}
@media (max-width:599px){
  .overlay:not(.drawer-wrap){place-items:end stretch;padding:0}
  .overlay:not(.drawer-wrap) .modal{width:100%;max-width:none;border-radius:22px 22px 0 0;max-height:92dvh;padding-bottom:env(safe-area-inset-bottom,0px);animation:sheet-up .3s cubic-bezier(.2,.8,.2,1)}
  .overlay:not(.drawer-wrap) .modal-head::before{content:"";position:absolute;left:50%;top:6px;width:40px;height:4px;border-radius:4px;background:var(--line-2);transform:translateX(-50%)}
  .overlay:not(.drawer-wrap) .modal-head{padding-top:18px}
}
/* Phone sheet standard (fix/phone-sheets, 4 Nov 2026): on a phone EVERY pop-up is a bottom sheet, whatever page or look it opens on: edge to edge, on the bottom edge, no gutter, no bottom corners.
   The rules above lose to a later, more specific rule (the Rich shop's `html[data-rich] .overlay` gave the QR scanner and every other pop-up on the shop page a 16 px gutter and floated it)
   and to a pop-up's own inline max-width (the visitor's join card), so the geometry is pinned here with !important; the top corners, colours and shadow stay with each look. Wider than a phone nothing changes. */
@media (max-width:599px){
  html .overlay:not(.drawer-wrap){padding:0!important;place-items:end stretch!important}
  html .overlay:not(.drawer-wrap)>.modal{width:100%!important;max-width:none!important;margin:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
  html .drawer-wrap:not(:has(.pagefull)) .drawer:not(.pagefull){transition-duration:.3s}
  /* the Store's own sheets (All categories, the basket, Buy again): flush with the bottom edge too (All categories stood 2 px up) */
  html .k-scr.s5-allwrap{justify-content:flex-end}   /* the wrapper is a column on phones and centred the sheet 1.8 px off the bottom */
  html .k-scr.s5-allwrap>.k-sheet{align-self:stretch;margin-bottom:0}
}
/* Mobile UX hotfix (#4): sheets close when pulled down (swipe.js). The grab handle on every sheet that can be pulled; no animation while the finger moves it */
.sw-drag{transition:none !important;animation:none !important;-webkit-user-select:none;user-select:none}
@media (max-width:599px){
  }
@media (max-width:639px){
  .ask-panel.sheet .ask-head{position:relative;padding-top:16px}
  .ask-panel.sheet .ask-head::before{content:"";position:absolute;left:50%;top:6px;width:40px;height:4px;border-radius:4px;background:rgb(255 255 255 / .38);transform:translateX(-50%)}
}
.drawer-wrap{place-items:stretch end;grid-template-rows:100%;grid-template-columns:100%;padding:0;visibility:hidden;background:transparent;transition:background .2s,visibility .2s;animation:none}
.drawer-wrap.open{visibility:visible;background:var(--scrim)}
.drawer{background:var(--surface);color:var(--ink);width:min(440px,100vw);height:100%;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow);transform:translateX(100%);transition:transform .26s cubic-bezier(.2,.8,.2,1);padding-bottom:env(safe-area-inset-bottom,0px)}
.drawer.wide{width:min(680px,100vw)}
.drawer-wrap.open .drawer{transform:none}
.drawer .modal-head{padding-top:calc(12px + env(safe-area-inset-top,0px))}
.drawer-body{padding:16px 20px 28px;overflow:auto;flex:1;min-height:0;overscroll-behavior:contain}
/* ---------- the sheet standard (1 Nov 2026, board R15-P2) ----------
   Side sheet on tablets and computers. On a phone every Drawer is a bottom sheet: a grab handle, 16 px gutters, the safe areas kept clear,
   it opens FITTED to its content (at most 60% of the screen; .tall lists such as the cart or Messages at most 90%) and scrolls inside when longer,
   a drag up on the handle or title lifts it to full height (.up), a swipe down closes it (swipe.js). It never opens full-screen by itself. */
.sheet-handle{display:none}
html:has(body.no-scroll){overscroll-behavior-y:none}
body.no-scroll{overscroll-behavior:none}
@media (max-width:599px){
  .drawer-wrap:not(:has(.pagefull)){place-items:end stretch;grid-template-rows:auto}
  .drawer:not(.pagefull){width:100%;max-width:none;height:auto;max-height:min(60dvh,calc(100dvh - env(safe-area-inset-top,0px) - 24px));border-radius:22px 22px 0 0;transform:translateY(100%);overscroll-behavior:contain}
  .drawer.tall:not(.pagefull){max-height:min(90dvh,calc(100dvh - env(safe-area-inset-top,0px) - 24px))}
  .drawer.up:not(.pagefull){height:calc(100dvh - env(safe-area-inset-top,0px) - 8px);max-height:none}
  .drawer-wrap.open .drawer:not(.pagefull){transform:none}
  .drawer:not(.pagefull) .sheet-handle{display:block;position:absolute;left:50%;top:0;width:72px;height:24px;transform:translateX(-50%);touch-action:none;z-index:3}
  .drawer:not(.pagefull) .sheet-handle::before{content:"";position:absolute;left:16px;top:8px;width:40px;height:4px;border-radius:4px;background:var(--line-2)}
  .drawer:not(.pagefull){position:relative}
  .drawer:not(.pagefull) .modal-head{padding:22px 16px 10px 16px;touch-action:none;flex:none}
  .drawer:not(.pagefull) .drawer-body{padding:12px 16px 24px}
  .drawer:not(.pagefull) .modal-x{width:44px;height:44px}
}
/* lifted to full height by a drag up (swipe.js startLift): pop-ups such as Menu, and the Store's sheets such as All categories */
@media (max-width:599px){
  .overlay:not(.drawer-wrap)>.modal.up{height:calc(100dvh - env(safe-area-inset-top,0px) - 8px);max-height:none}
  .overlay:not(.drawer-wrap)>.modal .modal-head{touch-action:none}
  .k-scr .s5-sheet.up{height:calc(100dvh - env(safe-area-inset-top,0px) - 8px);max-height:none;margin-top:0}
  .k-scr .s5-sheet.up .s5-sheetbody{flex:1;min-height:0}
  .k-scr .s5-sheet .s5-allhead{touch-action:none}
}
.sheet-list{display:grid;gap:4px}
.sheet-list button{display:flex;align-items:center;gap:14px;width:100%;background:none;border:0;padding:12px 10px;border-radius:12px;color:var(--ink);font-size:15px;text-align:left}
.sheet-list button:hover{background:var(--sunk)}
.sheet-list button[aria-current="page"]{background:var(--brand-soft);color:var(--brand-text);font-weight:600}
.sheet-list svg{width:22px;height:22px;flex:none}
.who-card{display:flex;align-items:center;gap:12px;padding:4px 2px 14px}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes sheet-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes rise{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
@media (prefers-reduced-motion:no-preference){ .card,.btn,.chip{transition:border-color .15s,background .15s,box-shadow .15s} }
@media (prefers-reduced-motion:reduce){ *{animation:none!important} .drawer,.drawer-wrap,.botnav .ind{transition:none} }
@media (max-width:520px){ .stats{grid-template-columns:repeat(2,1fr)} .hist li{grid-template-columns:1fr;gap:0} }

/* ---------- payment methods ---------- */
.cards{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr))}   /* IOS-4: never wider than the page (the same as before from 282 px wide) */
.paycard{border-radius:16px;padding:16px;color:#fff;display:grid;gap:14px;min-height:150px;position:relative;overflow:hidden;background:linear-gradient(135deg,#0F172A,#1c3b56)}
.paycard::after{content:"";position:absolute;right:-40px;bottom:-60px;width:170px;height:170px;border-radius:50%;border:22px solid rgb(43 212 125 / .22)}
.paycard.MASTER{background:linear-gradient(135deg,#1a1f3a,#5b3fa8)}
.paycard.VISA{background:linear-gradient(135deg,#0F172A,#1F4FA0)}
.paycard .num{font-family:var(--f-mono);font-size:18px;letter-spacing:2px}
.paycard .brand{font-family:var(--f-display);font-weight:700;font-size:18px}
.paycard .meta{display:flex;justify-content:space-between;font-size:12px;opacity:.9;letter-spacing:.03em}
.paycard .tag{position:absolute;top:12px;right:12px;background:rgb(255 255 255 / .18);border-radius:99px;padding:2px 9px;font-size:11px}
.pay-opt{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* ===== orders: tabs, cards, tracking ===== */
.otabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.otabs button{flex:none;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:10px 9px;color:var(--muted);font-weight:500;font-size:14px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.otabs button[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--brand);font-weight:600}
.otabs .n{min-width:20px;height:20px;border-radius:99px;background:var(--sunk);color:var(--muted);font-size:11.5px;font-weight:600;display:inline-grid;place-items:center;padding:0 6px}
.otabs .n.hot{background:var(--plus);color:var(--on-plus)}
.otools{display:grid;gap:10px}
.isearch{display:flex;align-items:center;gap:8px;border:1px solid var(--line-2);border-radius:99px;background:var(--surface);padding:0 14px;min-height:42px;color:var(--muted)}
.isearch:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 25%,transparent)}
.isearch input{flex:1;min-width:0;border:0;background:none;outline:0;color:var(--ink);padding:9px 0}
.oday{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--muted);margin:10px 2px 0}
.oday:first-child{margin-top:0}
.oday span{font-weight:500;opacity:.8}
.oday::after{content:"";flex:1;height:1px;background:var(--line)}
.oday.late{color:var(--bad)}
.ocard{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px 12px;text-align:left;display:grid;gap:6px;width:100%;min-width:0;color:var(--ink)}
.ocard:hover{border-color:var(--line-2)}
.ocard.sel{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.oc-1{display:flex;justify-content:space-between;align-items:center;gap:10px}
.oc-1 .who{font-weight:600;font-size:15.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.oc-1 b{flex:none;font-weight:600}
.oc-2{font-size:13.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oc-3{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:13px}
.oc-3 .st{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.oc-3 .st.warn{color:var(--warn)} .oc-3 .st.office{color:var(--office)} .oc-3 .st.deliv{color:var(--deliv)} .oc-3 .st.lms{color:var(--lms)} .oc-3 .st.bad{color:var(--bad)} .oc-3 .st.plain{color:var(--muted)}
.oc-3 .meta{color:var(--muted)}
.oc-4{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin-top:2px}
.oc-4 .mono{font-size:11.5px;color:var(--muted)}
.trk-bar{display:grid;gap:3px}
.trk-bar i{height:4px;border-radius:4px;background:var(--line)}
.trk-bar i.f{background:var(--brand)}
.trk-bar i.n{background:linear-gradient(90deg,var(--brand) 50%,var(--line) 50%)}
.trk{list-style:none;margin:4px 0 0;padding:0;display:grid}
.trk li{position:relative;display:grid;justify-items:center;text-align:center;gap:3px;font-size:12px;color:var(--muted);padding:0 2px}
.trk li::before{content:"";position:absolute;top:11px;left:-50%;width:100%;height:2px;background:var(--line);z-index:0}
.trk li:first-child::before{display:none}
.trk li.done::before,.trk li.now::before{background:var(--brand)}
.trk i{position:relative;z-index:1;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;font-weight:700;background:var(--surface);border:2px solid var(--line-2);color:var(--on-brand)}
.trk li.done i{background:var(--brand);border-color:var(--brand)}
.trk li.now i{background:var(--brand);border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 28%,transparent)}
.trk li span{font-weight:500;line-height:1.2}
.trk li.done span,.trk li.now span{color:var(--ink)}
.trk li.now span{font-weight:700}
.trk small{font-size:11px;line-height:1.2}
.trk-x{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--ink)}
.trk-x .ic.plain{background:var(--sunk);color:var(--muted)}
.nextstep{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border-radius:16px;padding:14px 16px;background:var(--brand-soft);border:1px solid color-mix(in srgb,var(--brand) 35%,transparent)}
.nextstep>div:first-child{display:grid;gap:2px;min-width:0}
.nextstep>div.row:first-child{display:flex;flex-wrap:nowrap;gap:12px}
.nextstep .side{display:grid;gap:1px;text-align:right}
.nextstep b{font-weight:600}
.nextstep span{font-size:13px;color:var(--muted)}
.nextstep.warn{background:var(--plus-soft);border-color:color-mix(in srgb,var(--plus) 55%,transparent)}
.nextstep.soft{background:var(--sunk);border-color:var(--line)}
.nextstep .row div{display:grid;gap:1px}
.actions-2{border-top:1px solid var(--line);padding-top:14px}
.tcard{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:16px;display:grid;gap:12px;min-width:0}
.tcard>.unbtn{gap:14px;min-width:0;box-sizing:border-box}
.tcard .oc-1>span{min-width:0}
.tcard .who{font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tcard .small.muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* a bank receipt checked on the order card wraps its line ("LKR 1,750 · Fri 23 Oct · Commercial Bank · to …"): it made the page 466 px wide on a phone (QD-QA-17) */
.tcard .slipres .small.muted{white-space:normal;overflow:visible;text-overflow:clip}.slipres .spread>span{min-width:0}
.next-line{font-size:13.5px;font-weight:500;color:var(--brand-text)}
@media (max-width:420px){ .trk small{display:none} .trk li{font-size:11px} }

/* ===== shop directory ===== */
.shop-h{font-size:15px;font-family:var(--f-body);font-weight:600;color:var(--muted)}
.bizgrid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr))}
.bizcard{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start}
.bizcard:hover{border-color:var(--line-2)}
.bizcard .unbtn{gap:10px;min-width:0}
.bizcard .nm{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bizcard .added{font-size:12.5px;font-weight:600;color:var(--brand-text);padding:6px 4px;white-space:nowrap}
/* single-column cards never grow wider than their box, even with long one-line text */
.unbtn,.ocard,.tcard,.card{grid-template-columns:minmax(0,1fr)}

/* ===== empty screens ===== */
.emptyst{display:grid;justify-items:center;text-align:center;gap:8px;padding:40px 20px;border:1px dashed var(--line-2);border-radius:20px;background:var(--surface);color:var(--muted)}
.emptyst.compact{padding:24px 16px;gap:6px}
.emptyst .es-ic{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-text);margin-bottom:6px;position:relative}
.emptyst .es-ic::after{content:"";position:absolute;right:-2px;top:-2px;width:14px;height:14px;border-radius:50%;background:var(--plus);border:3px solid var(--surface)}
.emptyst.compact .es-ic{width:48px;height:48px}
.emptyst h3{color:var(--ink);font-size:18px}
.emptyst p{max-width:44ch;font-size:14px}
.emptyst .row{margin-top:8px}
/* saved address picker */
.addr-opts{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr))}
.addr-opts button{border:1px solid var(--line-2);background:var(--surface);border-radius:14px;padding:11px 13px;text-align:left;display:grid;gap:2px;color:var(--ink);min-width:0}
.addr-opts button span{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.addr-opts button[aria-checked="true"]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:color-mix(in srgb,var(--surface) 90%,var(--brand))}

/* ===== page heads, home dashboard ===== */
.pagehead{margin-bottom:2px}
.emptyst.inline{border:0;background:none;padding:16px 8px}
.home-h{display:grid;gap:2px;margin-bottom:4px}
.home-h h2{font-size:28px}
.tiles{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr))}
@media (max-width:599px){ .tiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
.tile{display:grid;gap:4px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px;color:var(--ink);min-width:0}
.tile:hover{border-color:var(--line-2)}
.tile .tl{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);font-weight:500}
.tile b{font-family:var(--f-display);font-size:26px;font-weight:600;line-height:1.15;overflow-wrap:anywhere}
.tile .ts{font-size:12.5px;color:var(--muted)}
.tile.hot{border-color:color-mix(in srgb,var(--plus) 70%,transparent);background:color-mix(in srgb,var(--surface) 82%,var(--plus))}
.tile.warn b{color:var(--warn)}
.tile.bad .ts{color:var(--bad);font-weight:600}
.mini{all:unset;cursor:pointer;display:grid;gap:5px;grid-template-columns:minmax(0,1fr);padding:10px 12px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.mini:hover{border-color:var(--line-2)}
.mini:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.mini .m1{display:flex;justify-content:space-between;gap:10px;align-items:center}
.mini .m1 b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini .st{font-size:12.5px;font-weight:600;white-space:nowrap}
.mini .st.warn{color:var(--warn)} .mini .st.office{color:var(--office)} .mini .st.deliv{color:var(--deliv)} .mini .st.lms{color:var(--lms)} .mini .st.bad{color:var(--bad)} .mini .st.plain{color:var(--muted)}
.mini .m2{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.getting{background:linear-gradient(135deg,var(--brand-soft),var(--surface) 70%)}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.steps li{display:flex;align-items:center;gap:10px;font-size:14.5px}
.steps .ck{width:24px;height:24px;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center;font-size:12px;font-weight:700;flex:none;color:var(--on-brand)}
.steps li.done .ck{background:var(--brand);border-color:var(--brand)}
.steps li.done span:last-child{color:var(--muted);text-decoration:line-through}
.linkish{all:unset;cursor:pointer;color:var(--brand-text);font-weight:600}
.linkish:hover{text-decoration:underline}
.lowstock{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.lowstock li{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:14px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.lowstock li:last-child{border-bottom:0;padding-bottom:0}

/* ===== unread badges ===== */
.nbadge{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:99px;background:var(--plus);color:var(--on-plus);font-size:11px;font-weight:700;padding:0 5px;margin-left:6px;vertical-align:1px}
.sheet-list .nbadge{margin-left:auto}

/* ===== messages ===== */
.threads{display:grid;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.thread{all:unset;cursor:pointer;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--line)}
.thread:first-child{border-top:0}
.thread:hover{background:var(--sunk)}
.thread:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.t-main{display:grid;gap:2px;min-width:0}
.t-top{display:flex;align-items:center;gap:8px;min-width:0}
.t-top b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.t-top time{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.t-last{font-size:13.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;gap:4px;align-items:center}
.thread.unread .t-top b,.thread.unread .t-last{color:var(--ink);font-weight:600}
.t-n{min-width:22px;height:22px;border-radius:99px;background:var(--brand);color:var(--on-brand);font-size:12px;font-weight:700;display:grid;place-items:center;padding:0 6px}
.drawer:has(.chat) .drawer-body{display:flex;flex-direction:column;padding:0}
.chat{display:flex;flex-direction:column;flex:1;min-height:0}
.chat-who{display:flex;align-items:center;gap:10px;padding:12px 20px;border-bottom:1px solid var(--line)}
.chat-log{flex:1;overflow:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:6px;background:color-mix(in srgb,var(--bg) 70%,var(--surface))}
.chat-day{text-align:center;margin:8px 0 4px}
.chat-day span{font-size:11.5px;font-weight:600;color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:2px 10px}
.chat-update{align-self:center;display:flex;align-items:center;gap:6px;max-width:92%;font-size:12.5px;color:var(--muted);background:var(--surface);border:1px dashed var(--line-2);border-radius:12px;padding:6px 10px}
.chat-update svg{color:var(--brand-text);flex:none}
.chat-update time{font-size:11px;opacity:.8}
.bubble-row{display:flex}
.bubble-row.me{justify-content:flex-end}
.bub{max-width:80%;background:var(--surface);border:1px solid var(--line);border-radius:16px 16px 16px 4px;padding:8px 12px 6px;font-size:14.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.bubble-row.me .bub{background:var(--brand);border-color:var(--brand);color:var(--on-brand);border-radius:16px 16px 4px 16px}
.bub time{display:block;text-align:right;font-size:10.5px;opacity:.7;margin-top:2px}
.chat-send{border-top:1px solid var(--line);padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));display:grid;gap:6px;background:var(--surface)}
.chat-row{display:flex;gap:8px;align-items:flex-end}
.chat-row textarea{min-height:44px;max-height:140px;resize:none;border-radius:22px;padding:11px 16px}
.chat-go{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;flex:none}
.chat-about{display:inline-flex;align-items:center;gap:6px;justify-self:start;font-size:12.5px;font-weight:600;background:var(--brand-soft);color:var(--brand-text);border-radius:99px;padding:3px 4px 3px 10px}
.chat-about button{border:0;background:none;color:inherit;width:20px;height:20px;border-radius:50%;padding:0}

/* ===== orders page (no split view) ===== */
.orders-page{display:grid;gap:14px}
.otabs.full{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0}
.otabs.full button{justify-content:center;padding:12px 6px;min-width:0}
.otabs.full button>span:first-child{overflow:hidden;text-overflow:ellipsis}
.otools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.otools .chips{flex:1 1 auto;min-width:0}
.otools .isearch{flex:0 1 340px;min-width:200px}
@media (max-width:719px){ .otools .isearch{flex:1 1 100%} }
.osec{display:grid;gap:8px}
.ogrid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr))}
.trk-bar{display:block;height:4px;border-radius:4px;background:var(--line);overflow:hidden}
.trk-bar i{display:block;height:100%;border-radius:4px;background:var(--brand)}

/* ===== remember options, card payment status, chat extras ===== */
.remember{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--sunk);cursor:pointer}
.remember input{margin-top:2px;flex:none}
.remember>span{display:grid;gap:1px;min-width:0}
.remember b{font-size:14px;font-weight:600}
.remember>span>span{font-size:12.5px;color:var(--muted)}
.paystatus{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.howto{margin:0;padding-left:18px;display:grid;gap:4px;color:var(--muted)}
.bub .by{display:block;font-size:11px;font-weight:600;opacity:.75;margin-bottom:2px}
.who-txt{display:grid;text-align:left;min-width:0}
.t-last>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
/* order cards: fixed two-column lines */
.ocard{align-content:start;gap:7px}
.oc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;font-size:13px}
.oc-row.muted{color:var(--muted)}
.oc-row .who{font-weight:600;font-size:15.5px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oc-row b{flex:none;font-weight:600;font-size:15px}
.oc-row .ell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oc-row .code{flex:none;font-size:11.5px}
.oc-row .st{display:inline-flex;align-items:center;gap:6px;font-weight:600;flex:none;white-space:nowrap}
.oc-row .st.warn{color:var(--warn)} .oc-row .st.office{color:var(--office)} .oc-row .st.deliv{color:var(--deliv)} .oc-row .st.lms{color:var(--lms)} .oc-row .st.bad{color:var(--bad)} .oc-row .st.plain{color:var(--muted)}
.oc-row .when{color:var(--muted);display:inline-flex;align-items:center;gap:5px;justify-content:flex-end}
.oc-row .when svg{flex:none}
.oc-row .trk-bar{flex:1;max-width:60%}
.nowrap{white-space:nowrap}
/* tracker: labels line up whether or not a step has a date */
.trk li{align-content:start;grid-template-rows:auto auto auto}
.orders-page>*,.osec>*,.otools>*{min-width:0}
.ogrid>*{min-width:0}
.oc-row .when{display:block;text-align:right}
.oc-row .when svg{vertical-align:-2px;margin-right:5px}
/* Tabs with counts: the name and its count always sit side by side on one line, on every screen size, so tabs with and
   without a count line up. Tabs share the width when they fit; when they don't, each keeps its full name and the row scrolls sideways. */
.otabs.full{grid-auto-columns:minmax(max-content,1fr);overflow-x:auto;scrollbar-width:none}
.otabs.full::-webkit-scrollbar{display:none}
.otabs.full button>span:first-child{overflow:visible}
@media (max-width:480px){
  .otabs.full button{padding:10px 10px;font-size:13.5px;gap:5px}
  .otabs.full .n{min-width:18px;height:18px;font-size:11px;padding:0 5px}
}
.line-end{display:grid;justify-items:end;gap:6px;align-self:stretch}
.linkbtn{border:0;background:none;padding:2px 0;color:var(--muted);font-size:12.5px;text-decoration:underline;text-underline-offset:2px}
.linkbtn:hover{color:var(--ink);text-decoration:underline}
.prod .price span{white-space:nowrap}
.prod .price{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px}
.lnk{text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.unbtn:hover .lnk{text-decoration-color:var(--brand)}
/* driver join requests */
.req-card{display:grid;gap:10px}
.req-rates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.req-rates>div{background:var(--sunk);border-radius:12px;padding:8px 12px;display:grid;gap:2px}
.req-rates b{font-size:16px}
.req-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:10px;align-items:end}
.req-btns{flex-wrap:nowrap}
@media (max-width:640px){ .req-form{grid-template-columns:repeat(2,minmax(0,1fr))} .req-btns{grid-column:1/-1} .req-btns .btn{flex:1} }
.combo>.i{padding-right:36px}
.combo-chev{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:30px;height:30px;border:0;background:none;color:var(--muted);display:grid;place-items:center;border-radius:8px;cursor:pointer}
.combo-chev svg{transform:rotate(90deg);transition:transform .15s}
.combo:has([aria-expanded="true"]) .combo-chev svg{transform:rotate(-90deg)}
.combo-chev:hover{background:var(--sunk);color:var(--ink)}
/* label / value list (business and product details) */
.dl{margin:0;display:grid;gap:0}
.dl>div{display:grid;grid-template-columns:minmax(120px,34%) 1fr;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.dl>div:last-child{border-bottom:0}
.dl dt{color:var(--muted);font-size:13px}
.dl dd{margin:0;overflow-wrap:anywhere;font-size:14px}
@media (max-width:479px){ .dl>div{grid-template-columns:1fr;gap:2px} }
#bo-tabs{margin:0 -2px}
/* bulk product upload */
.steps3{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:st}
.steps3 li{counter-increment:st;display:grid;grid-template-columns:32px 1fr;column-gap:12px;row-gap:2px;align-items:start;background:var(--sunk);border-radius:14px;padding:12px 14px}
.steps3 li::before{content:counter(st);grid-row:span 3;width:28px;height:28px;border-radius:50%;background:var(--brand);color:#0F172A;font-weight:700;display:grid;place-items:center;font-size:14px}
.steps3 li>span{color:var(--muted);font-size:13px}
.steps3 li>.btn{justify-self:start;margin-top:8px}
.dropzone{position:relative;display:grid;justify-items:center;gap:6px;text-align:center;border:2px dashed var(--line-2);border-radius:16px;padding:22px 16px;cursor:pointer;color:var(--ink);background:var(--surface);transition:border-color .15s,background .15s}
.dropzone:hover,.dropzone.on{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,var(--surface))}
.dropzone input{position:absolute;width:1px;height:1px;opacity:0}
.dropzone .ico{color:var(--brand)}
.bulk-tw{max-height:46vh;overflow:auto}
tr.bad-row td{background:color-mix(in srgb,var(--bad) 6%,transparent)}
.prod>.spread:last-child{margin-top:auto}
/* social media links */
.social{display:grid;gap:8px}
.social-t{font-size:13px;color:var(--muted);font-weight:500}
.social-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@container (min-width:860px){ .social-row{grid-template-columns:repeat(4,minmax(0,1fr))} }
.social-a{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);text-decoration:none;min-width:0;transition:border-color .15s,background .15s}
.social-a:hover{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,var(--surface))}
.social-i{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-text)}
.social-n{display:grid;min-width:0}
.social-n b{font-size:14px}
.social-n span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.social.compact{justify-items:center}
.social.compact .social-row{display:flex;gap:10px}
.social.compact .social-a{padding:0;border-radius:50%;width:40px;height:40px;justify-content:center}
.social.compact .social-i{background:none;width:auto;height:auto}
@media (max-width:520px){ .social:not(.compact) .social-row{grid-template-columns:1fr} }
.home-foot{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
/* maps */
.linkbtn.mine{display:inline-flex;align-items:center;gap:4px;color:var(--brand-text);text-decoration:none;font-weight:500;justify-self:start}
.linkbtn.mine:hover{color:var(--brand-text);text-decoration:underline}
.gmap{position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:var(--sunk)}
.gmap-in{position:absolute;inset:0}
.gmap-load{position:absolute;inset:0;display:grid;place-items:center}
.map-fail{display:flex;gap:8px;align-items:center;padding:12px 14px;border:1px dashed var(--line-2);border-radius:14px}
.ordermap{display:grid;gap:8px}
.map-line{display:flex;gap:8px;align-items:center}
/* the live dot's ring: a copy of the dot that grows to 3× (the old 10 px glow) and fades, animated with transform and
   opacity only, so the phone's graphics chip draws it instead of the processor restyling the page 60 times a second (ARCH-FE-16) */
.dotlive{position:relative;flex:none;width:10px;height:10px;border-radius:50%;background:var(--line-2)}
.dotlive.on{background:var(--brand)}
.dotlive.on::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--brand);opacity:0;pointer-events:none;animation:livepulse 1.8s infinite}
@keyframes livepulse{0%{transform:scale(1);opacity:.55}70%{transform:scale(3);opacity:0}100%{transform:scale(1);opacity:0}}
@media (prefers-reduced-motion:reduce){ .dotlive.on::after{animation:none} }
.mpin{display:flex;flex-direction:column;align-items:center;gap:3px;transform:translateY(4px)}
.mpin-dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:3px solid #fff;box-shadow:0 2px 8px rgba(15,23,42,.35)}
.mpin-dot .ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mpin-l{font:600 11.5px/1.2 var(--f-body,system-ui);background:#0F172A;color:#fff;padding:2px 7px;border-radius:99px;white-space:nowrap;max-width:140px;overflow:hidden;text-overflow:ellipsis}
.pin-shop .mpin-dot{background:#0F172A;color:#2BD47D}
.pin-home .mpin-dot{background:#FFC93C;color:#0F172A}
.pin-driver .mpin-dot{background:#2BD47D;color:#0F172A;width:40px;height:40px}
.pin-me .mpin-dot{background:#3B82F6;color:#fff}
.sharebar{position:sticky;top:var(--appbar-h,60px);z-index:30;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:9px 14px;margin:0 0 12px;border-radius:14px;
  background:var(--brand-soft);color:var(--ink);border:1px solid color-mix(in srgb,var(--brand) 35%,transparent)}
.sharebar.denied{background:color-mix(in srgb,var(--bad) 10%,var(--surface));border-color:color-mix(in srgb,var(--bad) 35%,transparent)}
.sharebar .toggle{margin-left:auto}
/* checkout: steps on the left, summary on the right (one column on phones) */
.checkout{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);max-width:1180px;margin:0 auto;align-items:start}
.co-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.co-main{display:grid;gap:14px;min-width:0}
.co-side{display:grid;gap:12px;min-width:0}
.co-sec h3{display:flex;align-items:center;gap:10px;font-size:17px}
.co-n{width:26px;height:26px;border-radius:50%;background:var(--brand-soft);color:var(--brand-text);display:inline-grid;place-items:center;font-size:13px;font-weight:700}
@media (min-width:980px){
  .checkout{grid-template-columns:minmax(0,1fr) 380px}
  .co-head{grid-column:1/-1}
  .co-side{position:sticky;top:76px}
}
/* date + time window: the two times always side by side */
.timewin{display:grid;gap:12px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);align-items:end}
@media (max-width:599px){ .timewin{grid-template-columns:repeat(2,minmax(0,1fr))} .timewin .tw-date{grid-column:1/-1} }
.timewin input[type=time],.timewin input[type=date]{min-width:0;width:100%}
@media (max-width:359px){ .timewin{grid-template-columns:minmax(0,1fr)} }      /* Mobile UX hotfix (OA18): From and To stack under 360 px */
/* payment options: same-size rows with a radio dot */
.payopts{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-auto-rows:1fr}
.payopt{display:flex !important;align-items:center;gap:12px;min-height:64px}
.payopt .radio{flex:none;width:20px;height:20px;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center}
.payopt[aria-pressed="true"] .radio{border-color:var(--brand)}
.payopt[aria-pressed="true"] .radio::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--brand)}
.po-t{display:grid;gap:2px;min-width:0}
.po-t b{font-size:15px;white-space:normal;overflow-wrap:anywhere}      /* a name wraps ("Choose a backup" was cut to "Choose a ba...") */
.po-t span{font-size:12.5px;color:var(--muted)}
@media (max-width:599px){ .payopts{grid-template-columns:1fr} }
/* phones: two compact product cards per row */
@media (max-width:599px){
  .products,.products.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .prod{padding:10px;gap:6px}
  .prod>.thumb{aspect-ratio:4/3;height:auto}
  .prod h3{font-size:14.5px;line-height:1.25}
  .prod .price{font-size:16px}
  .prod-act{min-height:38px}
  .prod-act .small{display:none}
  .prod-act .stepper{grid-template-columns:32px minmax(28px,1fr) 32px;width:100%}
  .prod-act .stepper input{width:100%}
  .prod-act>.btn{min-height:38px;padding:8px 10px;font-size:14px}
}
/* the side column is narrow: date on its own row, times side by side */
.timewin.narrowside{grid-template-columns:repeat(2,minmax(0,1fr))}
.timewin.narrowside .tw-date{grid-column:1/-1}
/* earnings */
.tile.warn{border-color:color-mix(in srgb,var(--warn) 45%,var(--line));background:color-mix(in srgb,var(--warn) 8%,var(--surface))}
.moneygrp{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:12px}
.mlines{list-style:none;margin:0;padding:0;display:grid;gap:0}
.mlines li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.mlines li:last-child{border-bottom:0}
.mlines.rates li{grid-template-columns:minmax(0,1fr) auto;padding:9px 0;font-size:14px}
.mlines .ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
@media (min-width:900px){ .board-cols.wide-first{grid-template-columns:minmax(0,2fr) minmax(0,1fr)} }
.cardgrid{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));align-items:start}
/* full-screen in-app map */
body.mapscreen-open{overflow:hidden}
.mapscreen{position:fixed;inset:0;z-index:200;background:var(--bg)}
.gmap.full{border:0;border-radius:0;position:absolute;inset:0;height:100% !important}
.ms-top{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));left:12px;right:12px;display:flex;gap:10px;align-items:center;pointer-events:none}
.ms-top>*{pointer-events:auto}
.ms-title{background:var(--surface);color:var(--ink);border-radius:14px;padding:8px 14px;box-shadow:var(--shadow);display:grid;min-width:0;max-width:min(560px,100%)}
.ms-title b{font-size:15px}
.ms-title span{font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ms-btn{width:44px;height:44px;flex:none;border-radius:14px;border:0;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);display:grid;place-items:center;cursor:pointer}
.ms-btn.on{background:var(--brand);color:#0F172A}
.ms-side{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:grid;gap:8px}
.ms-turn{position:absolute;top:calc(70px + env(safe-area-inset-top,0px));left:12px;right:12px;max-width:560px;background:#0F172A;color:#fff;border-radius:16px;padding:12px 16px;display:flex;gap:14px;align-items:center;box-shadow:var(--shadow)}
.ms-turn b{display:block;font-size:16px;line-height:1.3}
.ms-turn span{font-size:13px;color:#A7F3D0}
.ms-arrow{flex:none;width:44px;height:44px;border-radius:12px;background:#2BD47D;color:#0F172A;display:grid;place-items:center;font-size:24px;font-weight:700}
.ms-arrow.sm{width:28px;height:28px;font-size:16px;border-radius:8px}
.ms-sheet{position:absolute;left:0;right:0;bottom:0;background:var(--surface);color:var(--ink);border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 24px rgba(15,23,42,.18);display:grid;gap:12px;max-height:55vh;overflow:auto}
@media (min-width:760px){ .ms-sheet{left:16px;right:auto;bottom:16px;width:400px;border-radius:20px} }
.ms-eta{display:flex;gap:12px;align-items:center}
.ms-eta b{font-family:var(--f-display);font-size:22px;display:block}
.ms-steps{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.ms-steps li{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 6px;border-radius:10px;font-size:14px}
.ms-steps li.cur{background:var(--brand-soft)}
.navrow .btn.primary{flex:1 1 220px;justify-content:center}
/* one page width everywhere: pages start at the left edge of the content area and use its full width */
.checkout{max-width:none;margin:0}
.cardgrid.wide{grid-template-columns:repeat(auto-fill,minmax(min(460px,100%),1fr))}
.stack>.isearch{max-width:480px}
@media (min-width:900px){
  .rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .rows>.rowlink{border-top:1px solid var(--line)}
  .rows>.rowlink:nth-child(-n+2){border-top:0}
  .rows>.rowlink:nth-child(odd){border-right:1px solid var(--line)}
  .rows>.rowlink:last-child:nth-child(odd){grid-column:1/-1;border-right:0}
}
/* bento grid: rows always filled edge to edge (12 columns on wide screens, 2 on tablets, 1 on phones) */
.bento{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
.bento>*{min-width:0}
@media (min-width:700px){ .bento{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (min-width:1100px){ .bento{grid-template-columns:repeat(12,minmax(0,1fr))} .bento>.b3{grid-column:span 3} .bento>.b4{grid-column:span 4} .bento>.b6{grid-column:span 6} .bento>.b8{grid-column:span 8} .bento>.b12{grid-column:span 12} }
/* number tiles: 2 / 3 / 6 per row so no row is left half empty */
.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:600px){ .kpis{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (min-width:1100px){ .kpis{grid-template-columns:repeat(6,minmax(0,1fr))} }
.kpis.four{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:760px){ .kpis.four{grid-template-columns:repeat(4,minmax(0,1fr))} }
/* stat tiles size to the space they're in (page or side sheet) and never leave a half-empty row */
main,.drawer-body{container-type:inline-size}
.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.tiles>:last-child:nth-child(odd){grid-column:1/-1}
@container (min-width:620px){
  .tiles:has(>:nth-child(3):last-child),.tiles:has(>:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  .tiles:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
  .tiles>:last-child:nth-child(odd){grid-column:auto}
  .tiles:has(>:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
  .tiles:has(>:nth-child(5):last-child)>*{grid-column:span 2}
  .tiles:has(>:nth-child(5):last-child)>:nth-child(n+4){grid-column:span 3}
}
@container (min-width:1000px){
  .tiles:has(>:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}
  .tiles:has(>:nth-child(5):last-child)>:nth-child(n){grid-column:auto}
  .tiles:has(>:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}
}
/* brand icons: shown once the icon set loads, otherwise the app's own line icons */
.sico{position:relative;display:inline-grid;place-items:center;width:var(--s);height:var(--s)}
.sico>*{grid-area:1/1}
.brand-ico{display:none;width:var(--s);height:var(--s);background:currentColor;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.brand-icons .brand-ico{display:block}
.brand-icons .plain-ico{display:none}
.social-a.brand-instagram .social-i{color:#C13584}
.social-a.brand-facebook .social-i{color:#1877F2}
.social-a.brand-tiktok .social-i{color:var(--ink)}
.social-a.brand-linkedin .social-i{color:#0A66C2}
:root[data-theme="dark"] .social-a.brand-linkedin .social-i{color:#5AA9FF}
:root[data-theme="dark"] .social-a.brand-instagram .social-i{color:#F77FBE}
:root[data-theme="dark"] .social-a.brand-facebook .social-i{color:#6EA8FF}
.social-a[class*="brand-"] .social-i{background:var(--sunk)}
/* support */
.sup-contact{display:grid;gap:10px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:759px){ .sup-contact{grid-template-columns:minmax(0,1fr)} }
.sup-card{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);text-decoration:none;min-width:0}
.sup-card>span:last-child{display:grid;min-width:0}
.sup-card>span:last-child>span{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-card:hover{border-color:var(--brand)}
.sup-card.call{background:#0F172A;color:#fff;border-color:#0F172A}
.sup-card.call>span:last-child>span{color:#A7F3D0;font-size:15px;font-weight:600}
.sup-ic{flex:none;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-text)}
.sup-card.call .sup-ic{background:#2BD47D;color:#0F172A}
.sup-grid{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);align-items:start}
@media (min-width:1000px){ .sup-grid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)} .sup-grid.even{grid-template-columns:repeat(2,minmax(0,1fr))} }
.faqs{display:grid;gap:6px}
.faq{border:1px solid var(--line);border-radius:14px;background:var(--surface);overflow:hidden}
.faq.open{border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border:0;background:none;text-align:left;color:var(--ink);font-weight:600;font-size:14.5px;cursor:pointer}
.faq-q .ico{flex:none;transform:rotate(90deg);transition:transform .15s;color:var(--muted)}
.faq.open .faq-q .ico{transform:rotate(-90deg)}
.faq-a{padding:0 14px 14px;display:grid;gap:10px}
.faq-a p{margin:0;line-height:1.55;color:var(--ink)}
.sup-none{display:grid;gap:6px;justify-items:start;padding:14px;border:1px dashed var(--line-2);border-radius:14px}
.chips.wrap{flex-wrap:wrap;overflow:visible}
.sup-shot img{width:72px;height:54px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.sup-done{justify-items:center;text-align:center}
.sup-ok{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#0F172A}
.sup-list{display:grid}
.sup-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border:0;border-top:1px solid var(--line);background:none;text-align:left;color:var(--ink);cursor:pointer;min-width:0}
.sup-item:first-child{border-top:0}
.sup-item>span:first-child{display:grid;min-width:0}
.sup-item .ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-msg{white-space:pre-wrap}
.sup-img{max-width:100%;border-radius:12px;border:1px solid var(--line)}
.sup-reply{background:var(--brand-soft);border-radius:12px;padding:12px 14px}
tr.clickrow{cursor:pointer}
tr.clickrow:hover td{background:var(--sunk)}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sup-cards{display:none;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:4px 14px}
@media (max-width:719px){ .sup-wide{display:none} .sup-cards{display:grid} }
:root[data-theme="dark"] .sup-card.call{background:#123A31;border-color:#1F5A47}

/* home: "needs attention" to-do rows and simple share bars */
.todo{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.todo li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.todo li.hot{border-color:color-mix(in srgb,var(--plus) 60%,var(--line));background:color-mix(in srgb,var(--surface) 88%,var(--plus))}
.todo li.warn{border-color:color-mix(in srgb,var(--warn) 45%,var(--line));background:color-mix(in srgb,var(--warn) 7%,var(--surface))}
.todo .ti{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--sunk);color:var(--ink)}
.todo .tt{display:grid;gap:2px;min-width:0}
.todo .tt b{font-weight:600;font-size:14.5px}
.todo .tt span{font-size:12.5px;color:var(--muted)}
@media (max-width:480px){ .todo li{grid-template-columns:auto minmax(0,1fr)} .todo li .btn{grid-column:1/-1;justify-self:start} }
.bars{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.bars li{display:grid;gap:6px}
.bars .bl{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.bars .bt{height:8px;border-radius:99px;background:var(--sunk);overflow:hidden}
.bars .bt>span{display:block;height:100%;border-radius:inherit;background:var(--brand)}
/* getting-started checklist */
.getting .gs-bar{height:6px;border-radius:99px;background:var(--sunk);overflow:hidden}
.getting .gs-bar>span{display:block;height:100%;background:var(--brand);border-radius:inherit;transition:width .3s}
.steps .gs-t{display:grid;gap:1px;min-width:0}
.steps .gs-t .linkish{justify-self:start;text-align:left}
/* first-login welcome tour */
.tour-ov{z-index:80}
.modal.tour{width:min(440px,100%);position:relative;overflow:hidden;padding:0}
.tour-x{position:absolute;top:10px;right:10px;z-index:2}
.tour-art{display:grid;place-items:center;padding:34px 20px 18px;background:linear-gradient(135deg,var(--brand-soft),var(--surface) 75%)}
.tour-art>span{width:76px;height:76px;border-radius:24px;display:grid;place-items:center;background:var(--brand);color:#0F172A;box-shadow:0 10px 30px color-mix(in srgb,var(--brand) 40%,transparent)}
.tour-art .ico{stroke:currentColor}
.tour-body{display:grid;gap:8px;padding:18px 24px 6px;text-align:center;justify-items:center}
.tour-body h2{font-size:22px;margin:0}
.tour-body p{margin:0;color:var(--muted);line-height:1.55;font-size:15px}
.tour-dots{display:flex;justify-content:center;gap:6px;padding:14px 0 4px}
.tour-dots button{all:unset;cursor:pointer;width:8px;height:8px;border-radius:99px;background:var(--line-2);transition:width .2s,background .2s}
.tour-dots button[aria-selected="true"]{width:22px;background:var(--brand)}
.tour-dots button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.tour-foot{display:flex;justify-content:space-between;gap:10px;padding:12px 20px 20px}
.tour-foot .btn{min-width:110px;justify-content:center}

/* compact order rows (super user home) */
.olist{list-style:none;margin:0;padding:0;display:grid}
.olist li+li{border-top:1px solid var(--line)}
.olist .unbtn{all:unset;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;padding:10px 4px;width:calc(100% - 8px)}
.olist .unbtn:hover .ol-1 b{text-decoration:underline}
.olist .unbtn:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:8px}
.olist .ol-1,.olist .ol-2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.olist .ol-1{grid-column:1}.olist .ol-2{grid-column:1}
.olist .ol-3{grid-column:2;grid-row:1/3;display:grid;justify-items:end;gap:4px;align-content:center}

/* deleted account screen */
#deleted-account{text-align:center;justify-items:center}
#deleted-account .del-ic{width:60px;height:60px;border-radius:18px;display:grid;place-items:center;background:var(--warn-soft);color:var(--warn)}
#deleted-account p{line-height:1.55}

.acc-log{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.acc-log li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.acc-log li:last-child{border-bottom:0}

/* first sign-in tour: highlight the real menu item with a tooltip */
.coach{position:fixed;inset:0;z-index:90}
.coach-block{position:absolute;inset:0}
.coach-dim{position:absolute;inset:0;background:rgba(15,23,42,.55)}
.coach-spot{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px rgba(15,23,42,.55),0 0 0 3px var(--brand);pointer-events:none;transition:left .25s,top .25s,width .25s,height .25s}
.coach-tip{position:fixed;display:grid;gap:6px;background:var(--surface);color:var(--ink);border-radius:16px;padding:14px 16px 12px;box-shadow:0 18px 50px rgba(0,0,0,.28);border:1px solid var(--line);transition:left .25s,top .25s;box-sizing:border-box}
.coach-tip.above{transform:translateY(-100%)}
.coach-tip.center{left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 24px))}
.coach-tip::before{content:"";position:absolute;left:calc(var(--ax) - 8px);width:16px;height:16px;background:var(--surface);border:1px solid var(--line);transform:rotate(45deg)}
.coach-tip.below::before{top:-9px;border-right:0;border-bottom:0}
.coach-tip.above::before{bottom:-9px;border-left:0;border-top:0}
.coach-tip.center::before{display:none}
.coach-h{display:flex;align-items:center;gap:8px}
.coach-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--brand);color:#0F172A}
.coach-tip b{font-size:16px}
.coach-tip p{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.coach-more{color:var(--ink)!important}
.coach-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:6px}

/* ---------- Ask B+B: floating help button and mini chat ---------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.ask-fab{position:fixed;z-index:45;width:56px;height:56px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
  background:var(--green);color:var(--navy);box-shadow:0 10px 26px rgb(23 168 99 / .38),0 0 0 4px #FFFFFF;transition:top .25s cubic-bezier(.2,.8,.2,1),left .25s,right .25s,transform .15s,background .15s}
:root[data-theme="dark"] .ask-fab{background:var(--green);color:var(--navy);box-shadow:0 10px 28px rgb(0 0 0 / .5),0 0 0 4px #0F172A}
.ask-fab::after{content:"";position:absolute;top:2px;right:2px;width:14px;height:14px;background:linear-gradient(#FFC93C,#FFC93C) center/4.6px 14px no-repeat,linear-gradient(#FFC93C,#FFC93C) center/14px 4.6px no-repeat;border-radius:2px;pointer-events:none}
.ask-fab:hover{transform:scale(1.05)}
.ask-fab.on{background:var(--navy);color:var(--green)}
.ask-fab.dragging{cursor:grabbing;transition:none;transform:scale(1.1);box-shadow:0 18px 40px rgb(15 23 42 / .4),0 0 0 3px var(--yellow) inset}
.ask-fab .ico{stroke-width:2}
.coach ~ .ask-root{display:none}
.ask-hint{position:fixed;z-index:44;max-width:250px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow);display:grid;gap:4px;font-size:14px;animation:askin .25s ease-out}
.ask-hint{translate:0 -100%} .ask-hint.right{right:84px} .ask-hint.left{left:84px}
.ask-hint span{color:var(--muted)}
.ask-hint .btn{justify-self:start;margin-top:4px;padding-inline:0}
.ask-panel{position:fixed;z-index:46;width:380px;max-width:calc(100vw - 32px);display:flex;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden;animation:askin .2s cubic-bezier(.2,.8,.2,1)}
@keyframes askin{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.ask-panel.sheet{left:0;right:0;bottom:0;width:auto;max-width:none;height:min(78dvh,640px);border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);z-index:61;animation:asksheet .25s cubic-bezier(.2,.8,.2,1)}
@keyframes asksheet{from{transform:translateY(100%)}to{transform:none}}
.ask-scrim{position:fixed;inset:0;z-index:60;background:var(--scrim);animation:fade .15s ease-out}
.ask-head{display:flex;align-items:center;gap:10px;padding:10px 8px 10px 14px;border-bottom:1px solid var(--line);background:var(--bar);color:var(--bar-ink)}
.ask-av{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:var(--navy);flex:none}
.ask-tt{display:grid;flex:1;min-width:0;line-height:1.25}
.ask-tt b{font-family:var(--f-display);font-size:16px}
.ask-tt span{font-size:12.5px;opacity:.75}
.ask-head .icon-btn{width:36px;height:36px;color:inherit}
.ask-head .icon-btn:hover{background:rgb(255 255 255 / .1)}
.ask-body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:12px;overscroll-behavior:contain}
.ask-hello p{font-size:15px;line-height:1.5}
.ask-sugg{display:grid;gap:8px;margin-top:12px}
.ask-chip{text-align:left;font:500 14px var(--f-body);color:var(--ink);background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px 12px;cursor:pointer}
.ask-chip:hover{border-color:var(--brand);background:var(--brand-soft)}
.ask-msg{display:grid;gap:6px;max-width:92%}
.ask-msg.me{justify-self:end;align-self:flex-end}
.ask-msg.bot{align-self:flex-start}
.ask-bub{padding:10px 13px;border-radius:16px;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere}
.ask-msg.me .ask-bub{background:var(--navy);color:#fff;border-bottom-right-radius:6px;white-space:pre-wrap}
:root[data-theme="dark"] .ask-msg.me .ask-bub{background:var(--brand);color:var(--navy)}
.ask-msg.bot .ask-bub{background:var(--sunk);border-bottom-left-radius:6px}
.ask-bub p{margin:0} .ask-bub p + p,.ask-bub p + ol,.ask-bub p + ul,.ask-bub ol + p,.ask-bub ul + p{margin-top:6px}
.ask-bub ol,.ask-bub ul{margin:4px 0 0;padding-left:20px;display:grid;gap:3px}
.ask-typing{display:flex;gap:4px;padding:14px 16px}
.ask-typing i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:askdot 1s infinite ease-in-out}
.ask-typing i:nth-child(2){animation-delay:.15s} .ask-typing i:nth-child(3){animation-delay:.3s}
@keyframes askdot{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.ask-src{display:grid;gap:6px}
.ask-art{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font-size:13.5px;font-weight:500;border:1px solid var(--line);border-radius:10px;padding:7px 10px;background:var(--surface)}
.ask-art:hover{border-color:var(--brand)}
.ask-art .ico{color:var(--brand-text);flex:none}
.ask-art .n{font-family:var(--f-mono);font-size:12px;color:var(--brand-text);flex:none}
.ask-hand{display:grid;gap:6px;font-size:13.5px;color:var(--muted);border:1px dashed var(--line-2);border-radius:12px;padding:10px}
.ask-rate{display:flex;align-items:center;gap:2px;font-size:12.5px;color:var(--muted)}
.ask-rate span{margin-right:4px}
.ask-rate .icon-btn{width:30px;height:30px}
.ask-rate .icon-btn:hover{background:var(--sunk);color:var(--ink)}
.ask-in{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid var(--line)}
.ask-in textarea{flex:1;resize:none;font:15px/1.4 var(--f-body);color:var(--ink);background:var(--sunk);border:1px solid var(--line);border-radius:14px;padding:10px 12px;max-height:120px;min-height:42px}
.ask-in textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.ask-send{width:42px;height:42px;min-height:42px;padding:0;border-radius:50%;flex:none}
.ask-foot{font-size:11.5px;color:var(--muted);padding:0 14px 10px;margin:0}
@media (prefers-reduced-motion:reduce){ .ask-fab,.ask-panel,.ask-hint{transition:none;animation:none} }
@media print{ .ask-root{display:none} }

/* ---------- languages: Sinhala and Tamil letters come from Noto Sans (loaded only when chosen) ---------- */
html[data-lang="si"]{ --f-display:"Inter","Noto Sans Sinhala","Iskoola Pota",Arial,sans-serif; --f-body:"Inter","Noto Sans Sinhala","Iskoola Pota",Arial,sans-serif; }
html[data-lang="ta"]{ --f-display:"Inter","Noto Sans Tamil","Latha",Arial,sans-serif; --f-body:"Inter","Noto Sans Tamil","Latha",Arial,sans-serif; }
html[data-lang="si"] body,html[data-lang="ta"] body{line-height:1.55}
/* Sinhala and Tamil words are longer: let labels wrap instead of spilling */
html:not([data-lang="en"]) .btn{white-space:normal;text-align:center;line-height:1.25}
html:not([data-lang="en"]) .seg button{white-space:normal;line-height:1.2}
@media (max-width:399px){ #usage-page .seg button{padding-inline:8px} }   /* P2-QA-3: the Usage 7 / 30 / 90 days switch fits a 320 px phone in Tamil */
html:not([data-lang="en"]) .trk li{min-width:0;font-size:11px}
html:not([data-lang="en"]) .trk li span{overflow-wrap:anywhere;hyphens:manual}
.langsw button[lang="si"]{font-family:"Noto Sans Sinhala","Iskoola Pota",var(--f-body)}
.langsw button[lang="ta"]{font-family:"Noto Sans Tamil","Latha",var(--f-body)}
.langsw.compact{justify-self:center}
.langsw.compact button{padding:5px 12px;font-size:13px}
/* "What do you offer?" choice on business setup */
.offer-choice{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:600px){ .offer-choice{grid-template-columns:minmax(0,1fr)} }

/* ---------- several businesses: switcher, overview, management ---------- */
.biz-switch{width:32px;height:32px;margin-left:-8px;flex:none;color:inherit;opacity:.85}
.biz-switch:hover{opacity:1;background:rgba(255,255,255,.08)}
.bizrow[aria-current="true"]{background:var(--brand-soft)}
#biz-switcher .rows{display:block}
#biz-switcher .rows>.rowlink{border-right:0;border-top:1px solid var(--line)}
#biz-switcher .rows>.rowlink:first-child{border-top:0}
.bizrow .ri,.bizrow .avatar{flex:none}
.bizover{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.bizov{display:grid;gap:8px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;color:var(--ink);min-width:0}
.bizov.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.bizov:not(.on):hover{border-color:var(--line-2);background:var(--sunk)}
.bizov .nm{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.bo-nums{display:grid;gap:2px;font-size:13px;color:var(--muted)}
.bo-nums b{color:var(--ink)}
.bad-t{color:var(--bad);font-weight:600}
.bizcard-m.off{opacity:.75}

/* ---------- categories, specials, options, availability ---------- */
.pill.special{background:var(--plus);color:var(--on-plus)}
.prod.na{background:var(--sunk)}
.prod.na h3,.prod.na .price,.prod.na .thumb{opacity:.68}
.cat-tabs{position:sticky;top:calc(var(--bar-h) + 6px);z-index:5;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:6px;margin:0 -6px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(6px);border-radius:14px}
.cat-sec{display:grid;gap:10px;scroll-margin-top:calc(var(--bar-h) + 64px)}
.cat-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cat-h h3{font-size:18px}
.cat-row.off{opacity:.7}
.cat-form{border-top:1px solid var(--line);padding-top:10px;margin-top:6px}
.sees{color:var(--muted)}
.sees.bad b{color:var(--bad)} .sees.plain b{color:var(--muted)}
.copy-list{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.optgrp{border:1px solid var(--line);border-radius:12px;padding:8px 12px 10px;margin:0;display:grid;gap:2px}
.optgrp legend{padding:0 4px}
.optrow{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:7px 2px;border-top:1px solid var(--line);cursor:pointer}
.optrow:first-of-type{border-top:0}
.optrow input{width:18px;height:18px;accent-color:var(--brand)}
.optrow.off{opacity:.55;cursor:default}
.opt-choice{display:grid;grid-template-columns:minmax(0,1fr) 110px auto auto;gap:8px;align-items:center}
.opt-price{display:flex;align-items:center;gap:4px}
@media (max-width:560px){ .opt-choice{grid-template-columns:minmax(0,1fr) 92px auto} .opt-choice .toggle{grid-column:1/2} }
.cart-lines li.na{opacity:.85}
.cart-lines li.na b{text-decoration:line-through;text-decoration-thickness:1px}

/* ---------- drivers calendar (owners) ---------- */
.dot-c{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px;flex:none}
.cal .ev.busy{background:repeating-linear-gradient(135deg,var(--sunk) 0 6px,var(--surface) 6px 12px);color:var(--muted)}
.chip .dot-c{margin-right:0}

/* ---------- Excel upload: what to fill in ---------- */
details.more.fieldguide>summary{font-size:14px;font-weight:600;color:var(--ink)}
.fg{display:grid;gap:10px;margin-top:10px}
.fg section{border:1px solid var(--line);border-radius:14px;padding:10px 14px}
.fg .fg-req{border-color:var(--line-2);background:var(--sunk)}
.fg h4{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--muted);margin:0 0 6px}
.fg ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.fg li{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;font-size:13px;line-height:1.4}
.fg li span{color:var(--muted)}
.fg .fg-opt ul{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));column-gap:18px}
@media (max-width:480px){ .fg li{grid-template-columns:minmax(0,1fr);gap:0} }

/* ---------- super user: every business's QR code ---------- */
.sticky-act{position:sticky;bottom:-1px;background:var(--surface);padding:10px 0 4px;border-top:1px solid var(--line);z-index:2}
.aq-row .l1{align-items:center}

/* ---------- delivery fees ---------- */
.fee-nudge{margin:6px 0 0;color:var(--brand-text);font-weight:500}
#fee-nudge,#bank-nudge,#pm-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#fee-nudge>span,#bank-nudge>span,#pm-summary>span{flex:1;min-width:200px}
.df-dist{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:560px){ .df-dist{grid-template-columns:minmax(0,1fr)} }
.df-extra{border:1px solid var(--line);border-radius:14px;padding:10px 14px;display:grid;gap:10px}
.df-extra.on{border-color:color-mix(in srgb,var(--brand) 45%,var(--line));background:color-mix(in srgb,var(--brand-soft) 40%,transparent)}
.df-extra .toggle{align-items:flex-start}
.df-fields{padding-left:28px}
.df-preview .t td,.df-preview .t th{padding:8px 10px}

/* ---------- payment methods and bank transfers ---------- */
.methods{display:grid;gap:10px}
.method{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 14px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:var(--surface)}
.method.on{border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}
.method .mi{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--sunk);color:var(--muted)}
.method.on .mi{background:var(--brand-soft);color:var(--brand-text)}
.method .mt{display:grid;gap:2px;min-width:0}
.method .mx{grid-column:2 / -1;padding-top:10px;border-top:1px dashed var(--line);margin-top:8px}
@media (max-width:479px){ .method .mx{grid-column:1 / -1} }
.switch{position:relative;display:inline-block;width:46px;height:28px;flex:none;cursor:pointer}
.switch input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.switch span{position:absolute;inset:0;border-radius:99px;background:var(--line-2);transition:background .15s;pointer-events:none}
.switch span::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgb(15 23 42 / .3);transition:transform .15s}
.switch input:checked+span{background:var(--brand)}
.switch input:checked+span::after{transform:translateX(18px)}
.switch input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}
.switch input:disabled+span{opacity:.5}
.switch input:disabled{cursor:not-allowed}
.accts{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr))}
.bank-acct{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--sunk)}
.bank-acct.off{opacity:.65}
.bankpay{display:grid;gap:12px}
.bsteps{margin:0;padding:0;list-style:none;display:grid;gap:16px}
.bsteps>li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start}
.bsteps .bn{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:600;background:var(--sunk);color:var(--muted);border:1px solid var(--line)}
.bstep{display:grid;gap:8px;min-width:0}
.bankacc{display:grid;gap:0;border:1px solid var(--line);border-radius:14px;background:var(--sunk);overflow:hidden}
.copyrow{display:grid;grid-template-columns:minmax(96px,auto) minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 6px 6px 12px;border-top:1px solid var(--line)}
.copyrow:first-child{border-top:0}
.copyrow .cv{font-weight:600;overflow-wrap:anywhere}
.btn.icon{padding:0;width:34px;min-height:34px;justify-content:center}
.slipup{display:grid;gap:8px}
.dropbox{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:1.5px dashed var(--line-2);border-radius:14px;background:var(--surface);padding:14px 16px;color:var(--ink)}
.dropbox:hover:not(:disabled){border-color:var(--brand);background:color-mix(in srgb,var(--surface) 92%,var(--brand))}
.dropbox>span{display:grid;gap:1px;min-width:0}
.dropbox>span>*,.tcard .dropbox .small.muted{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.dropbox:disabled{cursor:progress;opacity:.8}
.slipres{border-radius:14px;padding:12px 14px;display:grid;gap:6px;border:1px solid var(--line)}
.slipres.ok{background:var(--deliv-soft);border-color:color-mix(in srgb,var(--deliv) 35%,transparent)}
.slipres.warn{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 35%,transparent)}
.flags{margin:0;padding-left:18px;display:grid;gap:2px;font-size:13px;color:var(--warn)}
.rthumb{display:grid;place-items:center;width:72px;height:72px;border-radius:10px;border:1px solid var(--line);overflow:hidden;background:var(--sunk);flex:none;text-decoration:none;color:var(--muted);font-size:12px;gap:2px}
.rthumb img{width:100%;height:100%;object-fit:cover}
.rthumb.big{width:120px;height:150px}
.rthumb.pdf{color:var(--office)}
.slipcheck{display:flex;gap:14px;align-items:flex-start;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px}
.checkpay{display:grid;gap:12px}
.checkpay>.row{justify-content:flex-start}
.slips{display:grid;gap:10px}
.slipline{display:flex;gap:12px;align-items:flex-start}
.pmbox{display:grid;gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--sunk)}
@media (max-width:479px){ .copyrow{grid-template-columns:minmax(0,1fr) auto} .copyrow>.small{grid-column:1 / -1;margin-bottom:-6px} .slipcheck{flex-direction:column} .rthumb.big{width:100%;height:200px} }

/* ---------- long text: cut to a few lines, "More" opens the whole thing ---------- */
.clamp-wrap{display:grid;gap:2px;justify-items:start;min-width:0}
.clamp{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.linkbtn{background:none;border:0;padding:0;color:var(--office);font-weight:600;cursor:pointer}
.linkbtn:hover{text-decoration:underline}
.prod h3.pname{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.thumb-btn{display:block;width:100%;padding:0;border:0;background:none;border-radius:12px;cursor:zoom-in}
.pd-img{width:100%;max-height:340px;object-fit:cover;border-radius:14px;background:var(--sunk)}
.pd-desc{white-space:pre-line;overflow-wrap:anywhere;line-height:1.55}
.prod-price ~ .prod-act{margin-top:0}

/* a newer release is out: small notice under the top bar */
.updbar{position:fixed;left:50%;transform:translateX(-50%);top:calc(var(--bar-h) + 10px + env(safe-area-inset-top,0px));z-index:65;display:flex;align-items:center;gap:10px;
  background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:6px 6px 6px 16px;box-shadow:var(--shadow);font-size:14px;
  width:max-content;max-width:calc(100% - 32px);animation:rise .2s ease-out}
.updbar span{min-width:0}
.updbar .btn{flex:none}
.updx{flex:none;width:32px;height:32px;border-radius:50%;border:0;background:none;color:var(--muted);cursor:pointer;font-size:14px}
.updx:hover{background:var(--sunk);color:var(--ink)}
#boot-fail .btn{margin-top:12px}

/* ---------- Shop for customers (market.js): a personal high street ---------- */
.t-g{background:var(--deliv-soft);color:var(--deliv)}
.t-y{background:var(--plus-soft);color:var(--warn)}
.t-yy{background:var(--yellow);color:var(--navy)}
.t-b{background:var(--office-soft);color:var(--office)}
.t-p{background:var(--lms-soft);color:var(--lms)}
.t-r{background:var(--sunk);color:var(--muted)}
.t-m{background:color-mix(in srgb,var(--brand) 16%,var(--surface));color:var(--brand-text)}
.t-s{background:var(--sunk);color:var(--muted)}
.market{display:grid;gap:30px;min-width:0}
.mk-top{display:grid;gap:12px}
.mk-toprow{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.mk-where{flex:1 1 240px;min-width:0;display:flex;align-items:center;gap:10px;border:1px solid var(--line-2);border-radius:14px;background:var(--surface);padding:6px 14px;color:var(--ink);text-align:left;min-height:52px;font:inherit}
.mk-where>span{display:grid;min-width:0;flex:1;line-height:1.3}
.mk-where b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.mk-where>.ico:first-child{color:var(--brand-text)}
.mk-qr,.mk-bk-top{min-height:52px;border-radius:14px}
.mk-bk-top{background:var(--ink);color:var(--surface);border-color:var(--ink);font-weight:600}
.mk-search{min-height:52px;border-radius:14px;background:var(--surface)}
.mk-search input{font-size:15.5px}
.mk-x{border:0;background:none;color:var(--muted);width:32px;height:32px;display:grid;place-items:center;border-radius:50%}
@media (max-width:600px){ .mk-qrt{display:none} .mk-qr{width:52px;padding:0} }
@media (max-width:1023px){ .mk-bk-top{display:none} }   /* P2-QA-6: basket button at the top with the top menu, from 1024 px */
.mk-cats{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px}
@media (max-width:1100px){ .mk-cats{grid-template-columns:repeat(5,minmax(0,1fr))} }
.mk-cat{border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:14px 4px 12px;display:grid;justify-items:center;align-content:start;gap:8px;color:var(--ink);font:inherit;font-weight:600;font-size:13px;text-align:center;line-height:1.2;cursor:pointer}
.mk-cat:hover{border-color:var(--line-2)}
.mk-cat-ic{width:52px;height:52px;border-radius:16px;display:grid;place-items:center}
@media (max-width:600px){ .mk-cats{gap:14px 4px} .mk-cat{border:0;background:none;padding:0;font-size:12px;font-weight:500} .mk-cat-ic{width:54px;height:54px;border-radius:18px} }
.mk-sec{display:grid;gap:12px;min-width:0;align-content:start}
.mk-sh{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.mk-sh h3{font-size:20px}
.mk-sub{margin:-8px 0 0;color:var(--muted);font-size:13.5px}
.mk-more{color:var(--brand-text);text-decoration:none;font-weight:600;font-size:14px}
.mk-more:hover{color:var(--brand-text);text-decoration:underline}
.mk-hs{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding:2px 16px 6px;scroll-snap-type:x proximity}
.mk-hs>*{flex:none;width:162px;scroll-snap-align:start}
@media (min-width:1000px){ .mk-deals{display:grid;grid-template-columns:repeat(var(--n,6),minmax(0,1fr));overflow:visible;margin:0;padding:0}
  .mk-deals>*{width:auto} .mk-deals>:nth-child(n+7){display:none} }
.mk-pc{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:4px;min-width:0}
.mk-thumb{position:relative;display:grid;place-items:center;border-radius:12px;overflow:hidden;flex:none}
.mk-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mk-pc .mk-thumb{width:100%;aspect-ratio:4/3;max-height:150px;margin-bottom:4px}
.mk-badge{position:absolute;top:6px;left:6px;background:var(--yellow);color:var(--navy);font-weight:700;font-size:11.5px;border-radius:99px;padding:2px 8px;max-width:calc(100% - 12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:1}
.mk-nm{font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mk-shoplink{background:none;border:0;padding:0;text-align:left;color:var(--muted);font:inherit;font-size:12.5px;cursor:pointer;justify-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-shoplink:hover{color:var(--ink);text-decoration:underline}
.mk-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto;padding-top:2px}
.mk-price{display:grid;line-height:1.2}
.mk-price b{font-family:var(--f-display);font-size:16px;font-weight:600}
.mk-price s{font-size:12px;color:var(--muted)}
.mk-add{flex:none;width:40px;height:40px;border-radius:50%;border:0;background:var(--yellow);color:var(--navy);display:grid;place-items:center;cursor:pointer}
.mk-add:hover{filter:brightness(.95)}
.mk-save{font-size:12px;font-weight:600;color:var(--brand-text)}
/* grids that never leave a half-empty row: 3 across, fewer items share the row, 2 across on tablets (an odd last one takes the row), 1 on phones */
.mk-grid3{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
.mk-grid3.n1{grid-template-columns:1fr}
.mk-grid3.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:999px){ .mk-grid3,.mk-grid3.n2{grid-template-columns:repeat(2,minmax(0,1fr))} .mk-grid3>:last-child:nth-child(odd){grid-column:1/-1} .mk-grid3.n1{grid-template-columns:1fr} }
@media (max-width:640px){ .mk-grid3,.mk-grid3.n2{grid-template-columns:1fr} }
.mk-shop{grid-template-columns:1fr auto}
.mk-shopbtn{display:flex;align-items:center;gap:12px;text-align:left;min-width:0;width:100%;color:var(--ink)}
.mk-shopmid{display:grid;gap:3px;min-width:0;flex:1}
.mk-shopmid b,.mk-shopmid>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-shophead{display:flex;justify-content:space-between;gap:8px;align-items:baseline;min-width:0}
.mk-star{font-size:13px;font-weight:600;white-space:nowrap}
.mk-dl{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mk-dl>*{flex:none}
.mk-free{color:var(--brand-text);font-weight:600}
.mk-far{color:var(--warn);font-weight:500}
/* two sections side by side, the same height; one alone takes the row */
.mk-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.mk-pair>:only-child{grid-column:1/-1}
.mk-pair>.mk-sec{grid-template-rows:auto auto 1fr}
@media (max-width:900px){ .mk-pair{grid-template-columns:1fr} }
.mk-fill{height:100%;margin:0}
.mk-list{list-style:none;padding:2px 14px;display:flex;flex-direction:column;justify-content:space-around}
.mk-list>li+li{border-top:1px solid var(--line)}
.mk-qrow{display:flex;align-items:center;gap:12px;width:100%;padding:12px 0;text-align:left;color:var(--ink)}
.mk-eta{font-family:var(--f-display);font-weight:600;font-size:17px;color:var(--brand-text);white-space:nowrap}
.mk-again{padding:14px;display:flex;flex-direction:column;gap:6px}
.mk-reorder{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:var(--deliv-soft);color:var(--ink)}
.mk-reorder>.ico{color:var(--brand-text);flex:none}
.btn.dark{background:var(--ink);color:var(--surface);border-color:var(--ink);font-weight:600}
.mk-plist{list-style:none;margin:0;padding:2px 14px;display:flex;flex-direction:column;justify-content:space-between}
.mk-plist.flat{padding:0;flex:1}
.mk-prow{display:flex;align-items:center;gap:12px;padding:10px 0;min-width:0}
.mk-prow+.mk-prow{border-top:1px solid var(--line)}
.mk-prow .mk-thumb{width:64px;height:64px}
.mk-prow .mk-badge{font-size:10.5px;top:4px;left:4px;padding:1px 6px}
.mk-pmid{flex:1;min-width:0;display:grid;gap:3px}
.mk-pend{display:flex;align-items:center;gap:10px;flex:none}
.mk-pend .mk-price{text-align:right}
.mk-rank{width:22px;text-align:center;font-family:var(--f-display);font-weight:700;font-size:18px;color:var(--brand-text);flex:none}
.mk-why{font-size:12.5px;font-weight:600;color:var(--brand-text)}
.mk-results{display:grid;gap:14px}
.mk-rtitle{font-size:22px;margin:0}
.mk-tabs{justify-self:start}
.mk-results .mk-plist{background:var(--surface);border:1px solid var(--line);border-radius:16px}
@media (min-width:1000px){ .mk-results .mk-plist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;padding:4px 18px}
  .mk-results .mk-prow:nth-child(2){border-top:0} .mk-results .mk-plist>:last-child:nth-child(odd){grid-column:1/-1} }
.mk-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:700px){ .mk-tiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
.mk-tile{border:0;border-radius:18px;padding:16px;text-align:left;display:grid;gap:4px;min-height:92px;align-content:start;font:inherit;cursor:pointer}
.mk-tile b{font-family:var(--f-display);font-size:19px;font-weight:600;color:var(--ink)}
.mk-tile.t-yy b{color:var(--navy)}
.mk-tile span{font-size:13px}
.mk-newcard{display:flex;gap:12px;align-items:center;padding:14px;text-align:left;color:var(--ink);font:inherit;cursor:pointer}
.mk-yours{display:grid;gap:6px;margin-top:-10px}
.mk-showall{justify-self:center}
.mk-bkbar{position:fixed;left:12px;right:12px;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom,0px));z-index:15;display:flex;align-items:center;gap:12px;border:0;border-radius:16px;
  background:var(--navy);color:#fff;padding:8px 8px 8px 16px;min-height:58px;box-shadow:var(--shadow);text-align:left;max-width:640px;margin:0 auto;font:inherit;cursor:pointer}
:root[data-theme="dark"] .mk-bkbar{background:#1E2A44}
.mk-bkbar .mk-shopmid>span{color:#B8C2D3;font-size:12px}
.mk-bkgo{background:var(--green);color:var(--navy);border-radius:12px;padding:10px 14px;font-weight:600;flex:none}
@media (min-width:1024px){ .mk-bkbar{display:none} }
.market:has(.mk-bkbar){padding-bottom:72px}
.mk-baskets{max-width:720px}
.mk-bkgrid{display:grid;gap:16px}
.mk-bkcard{gap:12px}
.choice.one{grid-template-columns:1fr}
.area-note{display:flex;gap:8px;align-items:flex-start;margin:0;padding:8px 10px;border-radius:10px;background:var(--warn-soft);color:var(--warn);font-size:12.5px;line-height:1.4}
.area-note .ico{flex:none;margin-top:1px}
/* offers in baskets and on orders */
.offer-line td{color:var(--brand-text);font-weight:600}
.offer-txt{color:var(--brand-text);font-weight:600}
.offer-nudge{display:flex;gap:6px;align-items:center;margin:0;padding:8px 10px;border-radius:10px;background:var(--plus-soft);color:var(--ink);font-weight:500}
.offer-nudge .ico{color:var(--warn);flex:none}
/* Promo codes (3 Nov 2026): the basket chip, the accepted line and the little form */
.promo-chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:1px dashed var(--brand-text);border-radius:999px;background:transparent;color:var(--brand-text);font:inherit;font-weight:600;cursor:pointer;justify-self:start}
.promo-chip:disabled{opacity:.5;cursor:default}
.promo-on{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 12px;border-radius:12px;background:var(--plus-soft);color:var(--ink)}
.promo-tag{display:inline-flex;align-items:center;gap:6px;color:var(--brand-text)}
.promo-on .linkbtn{min-height:44px;margin-left:auto}
.promo-form{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px}
.promo-form .i{min-width:0;flex:1;text-transform:uppercase}
.promo-form .i::placeholder{text-transform:none}
.promo-form .btn{flex:none}
/* a long title (Tamil) wraps instead of being cut off */
.modal:has(#go-few) .modal-head h3{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.cart-lines li.free-line{border-bottom-style:dashed}
/* Products → Offers */
.offer-row{display:grid;gap:10px}
.offer-row .l1{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.kindopts{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}
.picker{display:grid;gap:8px}
.f-l{font-weight:600;font-size:14px}
.tagchip{display:inline-flex;align-items:center;gap:4px;height:30px;border-radius:99px;background:var(--deliv-soft);color:var(--deliv);padding:0 4px 0 12px;font-size:13px;font-weight:500}
.tagchip button{border:0;background:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:inherit;cursor:pointer}
.pick-box{border:1px solid var(--line-2);border-radius:12px;overflow:hidden;background:var(--surface)}
.pick-q{display:flex;align-items:center;gap:8px;padding:0 12px;height:44px;border-bottom:1px solid var(--line);color:var(--muted)}
.pick-q input{flex:1;border:0;background:none;font:inherit;color:var(--ink);outline:none;min-width:0}
.pick-list{max-height:240px;overflow:auto}
.pick-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line);cursor:pointer;font-size:14px}
.pick-row:last-child{border-bottom:0}
.pick-row>span:nth-of-type(1){flex:1;min-width:0}
.offer-preview{background:color-mix(in srgb,var(--surface) 82%,var(--yellow))}
.prev-card{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px}
.prev-thumb{width:56px;height:56px;border-radius:12px;background:var(--plus-soft);flex:none}
.offer-form .stepper{grid-template-columns:38px 52px 38px}
.offer-form .stepper input{width:52px}
/* delivery areas */
.area-pick{display:grid;gap:10px}
.area-pick .pick-box{border-color:var(--line-2)}
.area-pick .pick-box.open{border-color:var(--brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 22%,transparent)}
.area-pick .pick-q{border-bottom:0}
.area-pick .pick-box.open .pick-q{border-bottom:1px solid var(--line)}
.pick-add{width:100%;border:0;background:none;font:inherit;color:var(--brand-text);font-weight:600;text-align:left}

/* ---------- selling by weight or size, price changes, Needs you, the bill (phase 1, October 2026) ---------- */
.stepper.big{grid-template-columns:48px 76px 48px}
.stepper.big button{font-size:22px;padding:9px 0}
.stepper.big input{width:76px;font-size:18px;font-weight:600}
#mp-amount .row:last-child{align-items:center}
.cart-measure{color:var(--muted)}
/* the customer's "agree to the new price" screen: before and after side by side, the difference loud */
.pc-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pc-compare>div{border:1px solid var(--line-2);border-radius:14px;padding:12px 14px;display:grid;gap:2px}
.pc-compare>div.now{border-color:var(--navy);background:var(--sunk)}
.pc-compare b{font-size:22px;font-variant-numeric:tabular-nums}
.pc-diff{font-size:24px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;margin:0}
.pc-diff.down{color:var(--brand-text)}
.pc-lines{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.pc-lines li{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.pc-lines li.changed{font-weight:600}
.pc-photo{max-width:100%;max-height:260px;border-radius:12px;object-fit:contain;background:var(--sunk)}
/* "Needs you": everything waiting for this person, one button each */
.needs{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.needs li{display:flex;align-items:center;gap:12px;justify-content:space-between;border:1px solid var(--line-2);border-radius:14px;padding:12px 14px;background:var(--surface)}
.needs li.loud{border-color:var(--bad)}
.needs li>span{min-width:0;display:grid;gap:2px}
.needs li .btn{flex:none}
/* the bill: plain and printable */
.bill{display:grid;gap:12px;color:var(--ink)}
.bill-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.bill table{width:100%;border-collapse:collapse;font-size:14px}
.bill td,.bill th{padding:6px 4px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.bill td:last-child,.bill th:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.bill tr.total td{font-weight:700;border-bottom:0;font-size:16px}
@media print{
  body.printing-bill>*:not(.overlay){display:none!important}
  body.printing-bill .overlay{position:static;background:none;padding:0}
  body.printing-bill .modal{box-shadow:none;border:0;max-width:none;width:100%}
  body.printing-bill .modal-head,body.printing-bill .no-print{display:none!important}
}
/* setup by questions: one question per screen, big answers */
.qs{display:grid;gap:16px;max-width:560px;margin:0 auto}
.qs h2{font-size:24px;line-height:1.25}
.qs{grid-template-rows:auto 1fr auto;min-height:min(640px,calc(100vh - 150px));width:100%}
.qs-body{display:grid;gap:16px;align-content:start}
.qs-foot{padding-top:6px;border-top:1px solid var(--line)}
.qs-steps{display:grid;gap:10px}
.qs-steps ol{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px}
.qs-steps li{display:grid;gap:6px;font-size:12px;color:var(--muted);text-align:center;min-width:0}
.qs-steps li i{display:block;height:6px;border-radius:99px;background:var(--sunk)}
.qs-steps li.done i{background:var(--brand)}
.qs-steps li.on i{background:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 35%,transparent)}
.qs-steps li.on{color:var(--ink);font-weight:600}
.qs-steps li span{line-height:1.25;overflow-wrap:anywhere}
@media (max-width:560px){.qs-steps li span{display:none}.qs{min-height:calc(100vh - 170px)}}
.golive .sc-req{margin:0}
.qs-prog{height:6px;border-radius:99px;background:var(--sunk);overflow:hidden}
.qs-prog i{display:block;height:100%;background:var(--brand);border-radius:99px;transition:width .25s}
.qs-opts{display:grid;gap:10px}
.qs-opts button{display:grid;gap:3px;text-align:left;border:1.5px solid var(--line-2);border-radius:14px;padding:14px 16px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.qs-opts button b{font-size:17px}
.qs-opts button span{color:var(--muted);font-size:14px}
.qs-opts button[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}
.qs-nav{display:flex;justify-content:space-between;gap:10px;align-items:center}
.qs .i{font-size:17px;padding:13px 14px}
/* the product questions in a side panel: no stretched rows */
#qp.qs{grid-template-rows:none;min-height:0;align-content:start;gap:14px}
#qp .qs-q{display:grid;gap:4px}
#qp .qs-q h2{margin:0}
#qp .qs-q p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}
#qp .qs-count{font-size:12.5px;font-weight:600;color:var(--muted);letter-spacing:.2px}
#qp .qs-photo{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.starter{display:grid;gap:8px}
.starter label{display:grid;grid-template-columns:auto 1fr 130px;gap:10px;align-items:center;border:1px solid var(--line-2);border-radius:12px;padding:10px 12px}
@media (max-width:560px){.starter label{grid-template-columns:auto 1fr}.starter label .i{grid-column:2}}

/* ---------- bookings and calendars (phase 3) ---------- */
.dur-pick{display:grid;gap:8px}
.dur-pick>span:first-child{font-weight:600;font-size:14px}
.booktime{display:grid;gap:12px}
.bt-days{padding-bottom:2px}
.bt-times{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.bt-times .chip{min-height:44px;font-size:15px}
.bt-full{margin-top:8px}
.bt-busy{display:grid;gap:0;justify-items:center;border:1px dashed var(--line-2);border-radius:12px;padding:6px 4px;color:var(--muted);font-size:13px;text-align:center}
.bt-busy b{color:var(--ink);font-weight:600;font-size:14px}
.bt-busy.on{border-color:var(--navy);border-style:solid}
.stepper.big{grid-template-columns:48px 60px 48px}
.stepper.big button{font-size:22px;padding:8px 0}
.stepper.big input{width:60px;font-size:17px}
.cs-list{margin:0;padding:0 0 0 22px;display:grid;gap:6px;max-height:280px;overflow:auto}
.cs-list li{padding:2px 0}
.cs-list li>b{font-weight:600}
.cs-list li.moved>b{color:var(--warn)}
.cs-list li .small{display:block;color:var(--warn)}
.cs-list.lessons{padding:0;list-style:none;max-height:none}
.cs-list.lessons button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface)}
.course-line .pill{display:inline-flex;gap:4px}
.needs li>span.need-2{display:flex;flex:none;gap:6px;flex-wrap:nowrap}
@media (max-width:560px){.needs li:has(.need-2){flex-wrap:wrap}.need-2{width:100%}.need-2 .btn{flex:1}}
.bk-line{gap:6px}
.bk-settings .sec{display:grid;gap:10px}
.bk-settings .bk-name{flex:1}
.bkcal{display:grid;gap:14px}
.bk-daynav,.bk-weeknav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bk-daynav b{font-family:var(--f-display);font-size:20px;min-width:120px;text-align:center}
.bk-weeknav{justify-content:space-between}
.bk-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.bk-item{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-left:6px solid var(--line-2);border-radius:14px;padding:10px 14px}
.bk-item.green{border-left-color:var(--deliv)} .bk-item.amber{border-left-color:var(--plus)} .bk-item.blue{border-left-color:var(--office)}
.bk-item.done{opacity:.7} .bk-item.gone{opacity:.7;border-left-color:var(--bad)}
.bk-item.block{background:repeating-linear-gradient(135deg,var(--sunk) 0 8px,var(--surface) 8px 16px)}
.bk-item.over{outline:2px solid var(--bad);outline-offset:-2px}
.bk-open{display:flex;align-items:center;gap:14px;flex:1;min-width:220px;text-align:left}
.bk-time{display:grid;min-width:76px;font-variant-numeric:tabular-nums}
.bk-time b{font-size:18px;font-family:var(--f-display)}
.bk-time span{font-size:13px;color:var(--muted)}
.bk-who{display:grid;gap:3px;min-width:0}
.bk-who b{font-size:16px}
.bk-pill{display:inline-flex;align-items:center;font-size:12px;font-weight:600;padding:2px 9px;border-radius:99px;white-space:nowrap;border:1.5px solid transparent}
.bk-pill.green{background:var(--deliv-soft);color:var(--deliv)} .bk-pill.amber{background:var(--warn-soft);color:var(--warn)}
.bk-pill.blue{background:var(--office-soft);color:var(--office)} .bk-pill.done,.bk-pill.block{background:var(--sunk);color:var(--muted)}
.bk-pill.gone{background:var(--bad-soft);color:var(--bad)} .bk-pill.over{border-color:var(--bad);color:var(--bad);background:var(--surface)}
.bk-legend{display:flex;flex-wrap:wrap;gap:6px}
.bk-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.bk-wd{display:grid;justify-items:center;gap:0;border:1px solid var(--line-2);border-radius:14px;padding:6px 2px;background:var(--surface);color:var(--ink);min-height:62px}
.bk-wd span{font-size:12px;color:var(--muted)}
.bk-wd b{font-size:18px;font-family:var(--f-display)}
.bk-wd i{font-style:normal;font-size:11px;font-weight:600;color:var(--office);min-height:15px}
.bk-wd.today b{color:var(--brand-text)}
.bk-wd[aria-pressed="true"]{background:var(--ink);border-color:var(--ink)}
.bk-wd[aria-pressed="true"] span,.bk-wd[aria-pressed="true"] b,.bk-wd[aria-pressed="true"] i{color:var(--surface)}
.bk-gridwrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.bk-grid{display:grid;grid-template-columns:48px repeat(var(--cols),minmax(118px,1fr));min-width:min-content}
.bk-hd{position:sticky;top:0;z-index:2;padding:8px 6px;font-size:13px;font-weight:600;background:var(--sunk);border-bottom:1px solid var(--line);border-left:1px solid var(--line);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bk-hd.bk-corner{border-left:0}
.bk-hours{display:grid;grid-template-rows:repeat(var(--rows),var(--row));font-size:11px;color:var(--muted)}
.bk-hours span{padding:2px 4px;border-top:1px solid var(--line)}
.bk-col{position:relative;display:grid;grid-template-rows:repeat(var(--rows),var(--row));border-left:1px solid var(--line)}
.bk-slot{border:0;border-top:1px solid var(--line);background:none;padding:0;min-height:0}
.bk-slot:hover{background:var(--brand-soft)}
.bk-ev{position:absolute;display:grid;align-content:start;gap:1px;border:0;border-left:4px solid var(--line-2);border-radius:9px;padding:4px 6px;font-size:12px;line-height:1.25;text-align:left;overflow:hidden;background:var(--sunk);color:var(--ink);z-index:1}
.bk-ev b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-ev span{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-ev.green{background:var(--deliv-soft);border-left-color:var(--deliv)} .bk-ev.amber{background:var(--warn-soft);border-left-color:var(--plus)}
.bk-ev.blue{background:var(--office-soft);border-left-color:var(--office)} .bk-ev.done,.bk-ev.gone{opacity:.65}
.bk-ev.block{background:repeating-linear-gradient(135deg,var(--sunk) 0 6px,var(--surface) 6px 12px);border-left-color:var(--muted)}
.bk-ev.over{box-shadow:inset 0 0 0 2px var(--bad)}
@media (max-width:560px){.bk-open{min-width:0}.bk-item>.row,.bk-item>.btn{width:100%}.bk-item>.row .btn{flex:1}.bk-daynav b{min-width:0;font-size:18px}}
/* price offers (bids.js): "open to offers", "make an offer", and the business's answer */
.bid-price .bid-open{flex-basis:100%;font-size:13px;font-weight:600;color:var(--brand-text)}
.bid-price .bid-ask{color:var(--brand-text)}
.prod-act:has(.bid-make){flex-wrap:wrap}
.prod-act .bid-make{flex:1 1 100%}
.bid-mk b{color:var(--ink)}
.bid-mk .bid-open-s{text-decoration:none;color:var(--brand-text);font-weight:600}
.bid-box .bid-input{font-size:20px;font-weight:600;padding:14px}
.bid-line{display:inline-block}
.prod>.bid-pill{justify-self:start;align-self:flex-start;width:max-content}
.bid-review{flex-direction:column;align-items:stretch}
.bid-review .bid-head{display:grid;gap:2px}
.bid-review .pc-compare>div:last-child{border-color:var(--line-2);background:var(--surface)}
.bid-review .bid-btns .btn{min-height:46px}
.bid-review .bid-form .i{font-size:17px}
.bid-alt .btn{width:100%}
.bid-contact{gap:8px}
@media (max-width:560px){.bid-review .bid-btns{display:grid;grid-template-columns:1fr;width:100%}}

/* "Help improve B+B": asked once, sits above the bottom bar */
.consent-card{position:fixed;left:12px;right:12px;top:calc(var(--bar-h) + 12px + env(safe-area-inset-top,0px));z-index:40;max-width:560px;margin:0 auto;display:grid;grid-template-columns:auto 1fr;gap:12px 14px;align-items:start;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:var(--shadow);animation:cc-in .45s cubic-bezier(.2,.8,.2,1) both}
.consent-card .cc-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-text)}
.consent-card .cc-text{display:grid;gap:4px;font-size:14px;line-height:1.45}
.consent-card .cc-text span{color:var(--muted)}
.consent-card .cc-btns{grid-column:1 / -1;display:flex;gap:8px;justify-content:flex-end}
@keyframes cc-in{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.consent-card{animation:none}}
/* REL-QA-6 (26 Oct 2026): at 250 × 444 (iPhone SE at 150 % text) the "Help improve B+B" card was 378 px tall and covered the bottom bar,
   so More couldn't be tapped until it was answered. It now always ends above the bar (its text scrolls inside it if it must), and on a
   very narrow screen the picture goes so the words get the whole width. */
.consent-card{max-height:calc(100dvh - var(--bar-h) - env(safe-area-inset-top,0px) - var(--nav-h,0px) - var(--bs-safe,0px) - 28px);overflow:auto;overscroll-behavior:contain}      /* 28: the New look's floating bar sits 14 px above the screen edge */
@media (max-width:299px){ .consent-card{grid-template-columns:minmax(0,1fr);padding:12px;gap:10px} .consent-card .cc-ico{display:none} .consent-card .cc-btns{flex-wrap:wrap} }

/* look around without an account (phone apps) */
.visitor main{max-width:900px;margin:0 auto;padding:16px max(16px,env(safe-area-inset-right,0px)) 16px max(16px,env(safe-area-inset-left,0px))}
.vis-shops{display:grid;gap:10px}
.vis-shop{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;text-align:left;width:100%;border:1px solid var(--line);cursor:pointer;color:var(--ink);font:inherit}
.vis-shop img,.vis-ph{width:52px;height:52px;border-radius:14px;object-fit:cover;flex:none}
.vis-ph{display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-text);font-weight:700;font-size:22px}
.vis-ph.sq{width:100%;height:auto;aspect-ratio:4/3;border-radius:12px}
.vis-txt{display:grid;gap:2px;min-width:0}
.vis-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.vis-prod{display:grid;gap:6px;align-content:start}
.vis-prod img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px}

/* the phone app's welcome slides */
.welcome .auth-card{gap:16px;text-align:center}
.wl-stage{position:relative;min-height:290px;overflow:hidden}
.wl-slide{position:absolute;inset:0;display:grid;align-content:center;justify-items:center;gap:12px;opacity:0;transform:translateX(40px);transition:opacity .45s ease,transform .45s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.wl-slide.past{transform:translateX(-40px)}
.wl-slide.on{opacity:1;transform:none;pointer-events:auto}
.wl-slide h2{margin:6px 0 0;font-size:26px;line-height:1.2}
.wl-slide p{margin:0;max-width:340px}
.wl-ico{width:104px;height:104px;border-radius:32px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand-text);box-shadow:0 18px 40px color-mix(in srgb,var(--brand) 25%,transparent)}
.wl-slide.on .wl-ico{animation:wl-pop .6s cubic-bezier(.34,1.56,.64,1) both}
@keyframes wl-pop{from{transform:scale(.7)}to{transform:none}}
.wl-dots{display:flex;gap:8px;justify-content:center}
.wl-dots button{width:8px;height:8px;border-radius:99px;border:0;padding:0;background:var(--line-2);transition:width .3s,background .3s;cursor:pointer}
.wl-dots button[aria-selected=true]{width:24px;background:var(--brand)}
@media (prefers-reduced-motion:reduce){.wl-slide,.wl-dots button{transition:none}.wl-slide.on .wl-ico{animation:none}}

/* Accessibility (WCAG 2.2): everything you can tap is at least 24 × 24 everywhere, and at least 44 × 44 on touch screens
   (phones, tablets, the Android app), so buttons are easy to hit for everyone, including older people and anyone with shaky hands.
   Checked by the "a11y" browser test (tests/ui/a11y.mjs). */
.linkish,.linkbtn,.mk-shoplink,.mk-more,summary{min-height:24px}
.linkish{display:inline-block}
label.toggle,label.remember{min-height:24px}
td>input[type=checkbox]{width:24px;height:24px}
.oday span{opacity:1}
@media (pointer:coarse){
  :root .btn,:root .btn.sm,:root .chip,:root .i,:root select.i,:root table.t .i,:root .brandmark,:root .acct,:root .seg button,:root .topnav button,:root [role=tab],:root .unbtn,:root input.i[type=date],:root input.i[type=time],:root input.i[type=datetime-local]{min-height:44px}
  :root .btn{min-width:44px}
  :root .btn.sm{padding-top:8px;padding-bottom:8px}
  :root .icon-btn,:root .mk-add,:root .modal-x,:root .btn.icon{min-width:44px;width:44px;height:44px}
  :root .acct{min-width:44px}
  :root .social.compact .social-a{width:44px;height:44px}
  :root .linkish,:root .linkbtn,:root .mk-shoplink,:root .mk-more,:root label.toggle{min-height:44px}
  :root .mk-shoplink{min-width:44px}
  :root .isearch{min-height:46px} :root .isearch input{min-height:44px}
  summary{min-height:44px;line-height:44px}
}
:root[data-theme="dark"] .btn.wa{background:var(--wa);border-color:var(--wa)}

/* Slider dots (welcome slides, app tour): small, calm dots, while the part you can tap stays big enough.
   The tap area is the button; the dot itself is drawn inside it. */
.wl-dots,.tour-dots{gap:0}
:root .wl-dots button,:root .tour-dots button{all:unset;box-sizing:border-box;cursor:pointer;width:24px;height:24px;min-width:24px;min-height:24px;display:grid;place-items:center;border-radius:99px;transition:width .3s}
:root .wl-dots button::before,:root .tour-dots button::before{content:"";display:block;width:8px;height:8px;border-radius:99px;background:var(--line-2);transition:width .3s,background .3s}
:root .wl-dots button[aria-selected=true],:root .tour-dots button[aria-selected=true]{width:36px}
:root .wl-dots button[aria-selected=true]::before,:root .tour-dots button[aria-selected=true]::before{width:22px;background:var(--brand)}
:root .wl-dots button:focus-visible,:root .tour-dots button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
@media (pointer:coarse){ :root .wl-dots button,:root .tour-dots button{height:44px;min-height:44px} }
@media (prefers-reduced-motion:reduce){ :root .wl-dots button,:root .tour-dots button,:root .wl-dots button::before,:root .tour-dots button::before{transition:none} }

/* Button groups on phones: a row made only of buttons becomes a tidy two-column grid, so buttons line up instead of
   wrapping raggedly. The main action (yellow "add", green, or primary) goes first across the full width; if the rest
   leave one button on its own, that one spans the full width too. Filter buttons (pressed / not pressed)
   never move when one is chosen. Rows that must stay in a line (week arrows) and
   segmented controls aren't affected. */
@media (max-width:640px){
  .row:has(> .btn ~ .btn):not(:has(> :not(.btn))):not(.weeknav):not(.pr-acts):not(td .row){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
  .pagehead:has(> .row > .btn){flex-wrap:wrap}
  .pagehead > .row:has(> .btn){width:100%}
  .row:has(> .btn ~ .btn):not(:has(> :not(.btn))):not(.weeknav):not(.pr-acts):not(td .row) > .btn{min-width:0;width:100%;justify-content:center;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.25}   /* a long label wraps onto a second line, it is not cut with "..." */
  /* the main action leads */
  .row:has(> .btn ~ .btn):not(:has(> :not(.btn))):not(.weeknav):not(.pr-acts):not(td .row) > .btn:is(.plus,.primary,.deliv):not([aria-pressed]){order:-1;grid-column:1/-1}
  /* one main action + an odd number of others (an even total): the last of the others fills its row */
  .row:has(> .btn:is(.plus,.primary,.deliv):not([aria-pressed])):has(> .btn:last-child:nth-child(even)):not(:has(> :not(.btn))):not(.weeknav):not(td .row) > .btn:nth-last-child(1 of :not(.plus,.primary,.deliv)){grid-column:1/-1}
  /* no main action and an odd number of buttons: the first fills its row */
  .row:not(:has(> .btn:is(.plus,.primary,.deliv):not([aria-pressed]))):has(> .btn:last-child:nth-child(odd)):not(:has(> :not(.btn))):not(.weeknav):not(td .row) > .btn:first-child{grid-column:1/-1}
  /* two main actions (rare): both share the top row */
  .row:has(> .btn:is(.plus,.primary,.deliv):not([aria-pressed]) ~ .btn:is(.plus,.primary,.deliv):not([aria-pressed])):not(:has(> :not(.btn))) > .btn:is(.plus,.primary,.deliv):not([aria-pressed]){grid-column:auto}
  /* empty pages: the buttons stack, all the same width */
  .emptyst .row:has(> .btn){display:grid;grid-template-columns:1fr;width:min(100%,320px)}
  .emptyst .row > .btn{grid-column:auto;width:100%}
}
.pm-tick{display:flex;align-items:center;gap:6px;margin-top:6px;min-height:32px;cursor:pointer;white-space:nowrap}
.bsheet .pm-tick,.rs .pm-tick,#dp .pm-tick,.rl-pane .pm-tick{flex-wrap:wrap;white-space:normal;align-items:flex-start}   /* P1-BUG-7: the help sentence wraps */
.bsheet .pm-tick .small,.rs .pm-tick .small,#dp .pm-tick .small,.rl-pane .pm-tick .small{flex:1 1 100%;padding-left:24px}
.pm-tick input{width:18px;height:18px;accent-color:var(--green-deep,#17A863)}

/* ---------- Store Creator portal (website only) ---------- */
.sc-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;counter-reset:s}
.sc-steps li{display:grid;justify-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--muted);text-align:center;position:relative}
.sc-steps li::before{content:"";position:absolute;top:13px;left:-50%;width:100%;height:2px;background:var(--line);z-index:0}
.sc-steps li:first-child::before{display:none}
.sc-steps li.on{color:var(--ink)}
.sc-steps li.on::before{background:var(--green)}
.sc-steps .dot{width:28px;height:28px;border-radius:50%;background:var(--surface);border:2px solid var(--line-2);display:grid;place-items:center;position:relative;z-index:1;color:var(--navy)}
.sc-steps li.on .dot{background:var(--green);border-color:var(--green)}
.sc-bar{height:10px;border-radius:10px;background:var(--sunk);overflow:hidden}
.sc-bar i{display:block;height:100%;background:var(--green);border-radius:10px;transition:width .4s}
.sc-mod-h{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer;min-height:44px}
.sc-tick{width:28px;height:28px;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center;flex:none;color:var(--navy)}
.sc-tick.on{background:var(--green);border-color:var(--green)}
.sc-items{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sc-items li{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sc-dl li{justify-content:space-between;border:1px solid var(--line,#E2E8F0);border-radius:12px;padding:10px 12px}
.sc-dl-t{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.sc-q{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0;display:grid;gap:4px}
.sc-q legend{font-weight:600;padding:0 4px}
.sc-q .chk{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.sc-q .chk input{width:20px;height:20px;accent-color:var(--brand-text)}
.sc-tile{display:grid;gap:6px;justify-items:start;text-align:left;cursor:pointer;font:inherit;color:inherit;min-height:96px}
.sc-tile:hover{border-color:var(--green)}
.sc-cert{background:#FFFFFF;color:#0F172A;border:1px solid #E2E8F0;border-radius:18px;padding:48px 40px 0;text-align:center;display:grid;justify-items:center;gap:10px;max-width:760px;margin:0 auto;width:100%;overflow:hidden;font-family:"Inter",system-ui,sans-serif}
.sc-cert-logo{height:56px}
.sc-cert-over{font-size:12px;font-weight:800;letter-spacing:3px;text-transform:uppercase;background:#FFC93C;border-radius:30px;padding:6px 14px}
.sc-cert h2{margin:6px 0 0;font-size:34px;font-weight:800;letter-spacing:-.8px}
.sc-cert p{margin:0;color:#475569;max-width:30em}
.sc-cert-name{font-size:30px;font-weight:800;color:#0B7A47;border-bottom:2px solid #E2E8F0;padding:6px 24px 10px;margin:4px 0}
.sc-cert-meta{display:flex;gap:48px;justify-content:center;margin:14px 0 28px;font-size:13px;color:#475569}
.sc-cert-meta span{display:grid;gap:2px}.sc-cert-meta b{color:#0F172A;font-size:15px}
.sc-strip{display:grid;grid-template-columns:repeat(4,1fr);height:8px;width:calc(100% + 80px);margin:0 -40px}
.sc-strip i:nth-child(1){background:#2BD47D}.sc-strip i:nth-child(2){background:#FFC93C}.sc-strip i:nth-child(3){background:#FF8FB1}.sc-strip i:nth-child(4){background:#0F172A}
.sc-bcard{width:340px;max-width:100%;aspect-ratio:85/55;background:#FFFFFF;color:#0F172A;border:1px solid #E2E8F0;border-radius:12px;padding:16px 18px 0;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto 1fr auto;gap:6px 14px;overflow:hidden;font-family:"Inter",system-ui,sans-serif}
.sc-bcard img{height:40px;grid-row:1}
.sc-bcard > div:nth-of-type(1){display:grid;align-content:center}.sc-bcard b{font-size:17px}.sc-bcard > div:nth-of-type(1) span{font-size:12px;color:#0B7A47;font-weight:700}
.sc-bcard > div:nth-of-type(2){grid-column:1/-1;display:grid;gap:1px;color:#475569;font-size:11.5px;align-content:end}
.sc-bcard .sc-strip{grid-column:1/-1;width:calc(100% + 36px);margin:4px -18px 0;height:6px}
@media (max-width:640px){.sc-steps li{font-size:11px}.sc-cert{padding:32px 18px 0}.sc-cert h2{font-size:26px}.sc-cert-name{font-size:24px}.sc-strip{width:calc(100% + 36px);margin:0 -18px}}
@media print{
  body.printing-sc *{visibility:hidden}
  body.printing-sc .sc-cert,body.printing-sc .sc-cert *,body.printing-sc .sc-bcard,body.printing-sc .sc-bcard *,body.printing-sc .sc-idcard,body.printing-sc .sc-idcard *{visibility:visible}
  body.printing-sc .sc-cert,body.printing-sc .sc-bcard,body.printing-sc .sc-idcard{position:absolute;left:0;top:0;border:0;-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
.sc-row{display:flex;gap:8px;align-items:center}
.sc-row .i{flex:1;min-width:0}
.sc-row select.i{flex:0 0 120px}
@media (max-width:640px){.sc-row{flex-wrap:wrap}.sc-row select.i{flex:1 1 100%}}
.sc-job{display:flex;align-items:center;gap:12px;justify-content:space-between;font:inherit;color:inherit;cursor:pointer;width:100%}
.sc-job > div{display:grid;gap:2px}
button.sc-job:hover{border-color:var(--green)}
.sc-money .panel{gap:4px;margin:0}.sc-money b{font-size:22px}
/* Store Creators: applicant photo, requirement ticks, numbered training */
.sc-who{display:flex;gap:14px;align-items:center}
.sc-photo{border-radius:14px;object-fit:cover;flex:none;background:var(--sunk);border:1px solid var(--line)}
.sc-photo.none{display:grid;place-items:center;color:var(--muted)}
.sc-req{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.sc-req li{display:flex;align-items:center;gap:6px;color:var(--bad)}
.sc-req li.on{color:var(--ink)}
.sc-req li.on .ico{color:var(--brand-text)}
.sc-ol li{gap:8px}
.sc-doc-step{display:grid;gap:10px}
.sc-file{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sc-slot{display:grid;gap:6px;justify-items:start}
/* desktop top bar: five pages, then More (opens the account menu with the rest) */
.topnav .topmore{display:inline-flex;align-items:center;gap:4px}
.nbadge.dot{min-width:8px;width:8px;height:8px;padding:0;margin-left:2px}
/* training modules: icon picker and module names */
.sc-icons{display:flex;flex-wrap:wrap;gap:6px}
.sc-icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.sc-icon-btn.on{border-color:var(--brand-text);background:var(--brand-soft);color:var(--brand-text)}
.sc-mod-name{display:flex;align-items:center;gap:10px}
.sc-mod-ico{width:36px;height:36px;border-radius:10px;background:var(--brand-soft);color:var(--brand-text);display:grid;place-items:center;flex:none}
.sc-yt{position:relative;width:100%;max-width:720px;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.sc-yt iframe,.sc-yt>div{position:absolute;inset:0;width:100%;height:100%;border:0}
.sc-video{width:100%;max-width:720px;border-radius:12px;background:#000}
.sc-item{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}
.sc-item:last-child{border-bottom:0}
.sc-item-h{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sc-idcard{width:340px;max-width:100%;aspect-ratio:55/85;background:#FFFFFF;color:#0F172A;border:1px solid #E2E8F0;border-radius:14px;padding:18px 18px 0;display:grid;justify-items:center;align-content:start;gap:8px;text-align:center;overflow:hidden;font-family:"Inter",system-ui,sans-serif}
.sc-idcard img.logo{height:36px}
.sc-idcard .ph{width:120px;height:120px;border-radius:14px;object-fit:cover;background:#EEF2F7}
.sc-idcard b{font-size:19px}.sc-idcard .role{font-size:12px;font-weight:700;color:#0B7A47}
.sc-idcard .meta{font-size:11.5px;color:#475569;display:grid;gap:1px}
.sc-idcard{grid-template-rows:repeat(5,auto) 1fr}.sc-idcard .sc-strip{width:calc(100% + 36px);margin:0 -18px;height:8px;align-self:end}
.sc-me{position:relative;flex:none}
.sc-me img,.sc-me .ph{width:56px;height:56px;border-radius:50%;object-fit:cover;background:var(--sunk);display:grid;place-items:center}
.sc-badge{position:absolute;right:-4px;bottom:-4px;width:24px;height:24px;border-radius:50%;background:var(--green);color:var(--navy);display:grid;place-items:center;border:2px solid var(--surface)}
/* People Manager tables: the next action on each row; the panel a row button opened is briefly highlighted */
.sc-acts .btn{white-space:nowrap}
@keyframes sc-flash{0%{box-shadow:0 0 0 3px var(--brand)}100%{box-shadow:0 0 0 0 transparent}}
.sc-flash{animation:sc-flash 1.6s ease-out}
.sc-pay-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
.sc-pay{gap:14px}
.sc-filters{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:center}
.bill-card.bad{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}

/* Create the owner's account: line up the boxes, helper text sits under its box */
.sco-grid{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr))}
.sco-grid .sco-wide{grid-column:1/-1}
@media (max-width:479px){ .sco-grid{grid-template-columns:minmax(0,1fr)} }
.sco-grid .f-help{font-weight:400;line-height:1.4}
/* Store Creator money tiles: stay side by side on phones, just smaller */
@media (max-width:479px){ .grid3.sc-money{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px} .sc-money .panel{padding:10px 12px} .sc-money b{font-size:16px;overflow-wrap:anywhere} }
/* Documents step: each upload is a card that turns green once a file is added */
.sc-slot{border:1px solid var(--line);border-radius:14px;padding:12px 14px;gap:6px}
.sc-slot.done{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,transparent)}
.sc-slot-h{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.sc-slot-h .pill{display:inline-flex;align-items:center;gap:4px}
/* Store Creator bank accounts */
.sc-banks{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sc-bankcard{border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:grid;gap:4px}
.sc-bankcard.main{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 6%,transparent)}
.sc-bank-no{font-variant-numeric:tabular-nums;letter-spacing:.5px;font-weight:600}
.sc-bankform{display:grid;gap:12px;border:1px dashed var(--line-2);border-radius:14px;padding:14px}
/* the owner chooses which Store Creator account to pay */
.pa-list{border:0;margin:0;padding:0;display:grid;gap:8px}
.pa-list legend{font-weight:600;margin-bottom:6px;padding:0}
.pa-acc{display:flex;gap:12px;align-items:flex-start;border:1.5px solid var(--line-2);border-radius:14px;padding:12px 14px;cursor:pointer}
.pa-acc.on{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 7%,transparent)}
.pa-acc input{width:20px;height:20px;accent-color:var(--brand-deep,#17A863);margin-top:2px;flex:none}
.pa-acc>span{display:grid;gap:2px;min-width:0}
.pa-no{font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.3px}
/* People Managers: counts on each Store Creators tab and the live alert */
.otabs .tcount{min-width:20px;height:20px;border-radius:99px;background:var(--sunk);color:var(--ink);font-size:11.5px;font-weight:700;display:inline-grid;place-items:center;padding:0 7px}
.otabs .tcount.wait{background:#FFC93C;color:#0F172A;font-weight:800}
.nbadge.warn{background:#FFC93C;color:#0F172A}
.pm-alert{position:fixed;right:24px;bottom:100px;z-index:60;width:min(380px,calc(100vw - 32px));background:#0F172A;color:#fff;border-radius:14px;padding:16px;display:grid;gap:8px;box-shadow:0 12px 32px rgba(15,23,42,.28)}
.pm-alert .small{color:#CBD5E1}
.pm-alert-k{background:#FFC93C;color:#0F172A;border-radius:30px;padding:3px 9px;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase}
.pm-alert-x{background:none;border:0;color:#fff;font-size:20px;min-width:36px;min-height:36px;cursor:pointer}
.pm-alert .btn{justify-self:start}
@media (max-width:899px){ .pm-alert{bottom:calc(150px + env(safe-area-inset-bottom));right:16px} }
/* People Managers: Store Creator overview */
.sc-ovtiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sc-ovtiles .panel{gap:4px;margin:0}.sc-ovtiles b{font-size:22px}
.sc-ovtiles .warnish,.sc-ov.warnish{background:var(--plus-soft);border-color:color-mix(in srgb,var(--yellow) 55%,transparent);color:var(--ink)}
.sc-ovtiles .warnish b,.sc-ov.warnish b{color:var(--ink)}
@media (max-width:899px){ .sc-ovtiles{grid-template-columns:repeat(2,minmax(0,1fr))} }
.sc-ovgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sc-ov{background:var(--sunk);border-radius:12px;padding:12px;display:grid;gap:2px;border:1px solid transparent}
.sc-ov b{font-size:20px}
.sc-recent{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sc-recent li{display:flex;justify-content:space-between;gap:10px;align-items:center}
td.num{white-space:nowrap;font-variant-numeric:tabular-nums}
/* opening hours picker */
.hp{display:grid;gap:12px;border:1px solid var(--line);border-radius:14px;padding:14px}
.hp-l{color:var(--muted);font-weight:500}
.hp-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.hp-days button{min-height:44px;border-radius:10px;border:1px solid var(--line-2);background:var(--surface);color:var(--muted);font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:0}
.hp-days button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:var(--navy);font-weight:700}
.hp-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hp-check{display:flex;gap:10px;align-items:center;font-size:14px;min-height:44px;cursor:pointer}
.hp-check input{width:20px;height:20px;accent-color:#17A863}
.hp-special{display:grid;grid-template-columns:52px minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center;font-size:14px}
.hp-special .hp-span{grid-column:span 2}
.hp-special .i{padding:8px;font-size:14px}
.hp-lunch{display:grid;gap:8px}
.hp-add{justify-self:start;min-height:40px}
.hp-see{background:var(--brand-soft);border-radius:12px;padding:10px 12px;font-size:13.5px;line-height:1.5}
/* the store build guide */
.bg{display:grid;gap:10px}
.bg-head{display:grid;gap:8px}
.bg-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bg-steps li{border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;gap:12px;align-items:flex-start;background:var(--surface)}
.bg-steps li.here{border:2px solid var(--brand-deep,#17A863)}
.bg-steps li.opt:not(.done){border-style:dashed}
.bg-dot{width:26px;height:26px;flex:none;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--muted);box-sizing:border-box}
.bg-steps li.done .bg-dot{background:var(--green);border-color:var(--green);color:var(--navy)}
.bg-steps li.here .bg-dot{border-color:#17A863;background:var(--brand-soft);color:var(--brand-text)}
.bg-txt{display:grid;gap:4px;min-width:0;flex:1}
.bg-txt b{font-size:14px}
.bg-opt{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.5px;text-transform:uppercase}
.bg-go{justify-self:start;margin-top:2px}
.sc-bar.thin{height:6px}
/* ---------- certificate, ID card and business card (always light, brand colours, artwork; printed at real size) ---------- */
.sc-sheet{width:100%;display:flex;justify-content:center}
.bb-fit{position:relative;overflow:hidden;flex:none}
.bb-fit-in{transform-origin:0 0;position:absolute;left:0;top:0}
.bb-strip{display:grid;grid-template-columns:repeat(4,1fr);flex:none}
.bb-strip i:nth-child(1){background:#2BD47D}.bb-strip i:nth-child(2){background:#FFC93C}.bb-strip i:nth-child(3){background:#FF8FB1}.bb-strip i:nth-child(4){background:#0F172A}
.bb-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.bb-cert,.bb-id,.bb-bc{font-family:Inter,Arial,sans-serif;color:#0F172A;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.bb-brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:17px;letter-spacing:-.2px}
.bb-brand img{width:54px;height:54px}
.bb-tick{position:absolute;right:4px;bottom:6px;border-radius:50%;background:#2BD47D;border:3px solid #fff;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.bb-face{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;background:#E8F7EF}
.bb-noface{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.bb-noface svg{position:absolute;inset:0;width:100%;height:100%}
.bb-noface b{position:relative;color:#17A863;font-weight:800;letter-spacing:-1px;font-size:40px}
/* certificate: A4 landscape */
.bb-cert{width:1123px;height:794px;background:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column}
.bb-cert-body{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;padding:44px 120px 0;text-align:center;gap:10px}
.bb-cert-body .bb-brand{align-self:flex-start}
.bb-over{font-size:13px;font-weight:800;letter-spacing:6px;color:#17A863;text-transform:uppercase;margin-top:4px}
.bb-cert h2{font-size:40px;font-weight:800;letter-spacing:-1px;margin:0;color:#0F172A}
.bb-cert-who{display:flex;align-items:center;gap:26px;margin-top:18px}
.bb-ring{position:relative;width:132px;height:132px;flex:none;border-radius:50%;padding:6px;box-sizing:border-box;background:conic-gradient(#2BD47D 0 25%,#FFC93C 0 50%,#FF8FB1 0 75%,#0F172A 0)}
.bb-ring>.bb-face{border:4px solid #fff;box-sizing:border-box;border-radius:50%}
.bb-cert-name{text-align:left;display:flex;flex-direction:column;gap:6px}
.bb-cert-name span{font-size:15px;color:#475569}.bb-cert-name b{font-size:44px;font-weight:800;letter-spacing:-1px;line-height:1.05;max-width:620px}
.bb-cert-name i{width:120px;height:5px;border-radius:9px;background:#2BD47D}
.bb-cert p{font-size:16px;line-height:1.6;color:#334155;max-width:640px;margin:18px 0 0}
.bb-meta{display:flex;gap:48px;margin-top:22px;font-size:13px;color:#475569}
.bb-meta span{display:flex;flex-direction:column;gap:4px}.bb-meta b{font-size:17px;color:#0F172A}
.bb-seal{position:absolute;right:86px;bottom:120px;width:132px;height:132px;border-radius:50%;background:#0F172A;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 0 0 6px #fff,0 0 0 9px #2BD47D;text-transform:uppercase}
.bb-seal span{font-size:9.5px;font-weight:800;letter-spacing:1.4px}.bb-seal span:first-child{color:#2BD47D;font-size:10px;letter-spacing:2px}
.bb-seal b{font-size:26px;font-weight:800;letter-spacing:-.5px;text-transform:none}.bb-seal small{font-size:9px;color:#CBD5E1}
/* ID card front and back: CR80 at 1.67× */
.bb-cards{display:flex;gap:48px}.bb-cards.col{flex-direction:column;gap:30px}
.bb-id{width:342px;height:540px;border-radius:22px;overflow:hidden;background:#fff;display:flex;flex-direction:column;position:relative;box-shadow:0 0 0 1px #E2E8F0}
.bb-id-top{height:200px;background:#0F172A;position:relative;overflow:hidden;flex:none}
.bb-id-brand{position:relative;display:flex;align-items:center;gap:10px;padding:18px 20px;color:#fff;font-size:14px;line-height:1.2}
.bb-id-brand span{width:40px;height:40px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center}.bb-id-brand img{width:32px;height:32px}
.bb-id-role{position:absolute;left:20px;bottom:18px;background:#2BD47D;color:#0F172A;border-radius:30px;padding:5px 11px;font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}
.bb-id>.bb-face.ph{position:absolute;top:140px;right:24px;width:128px;height:156px;border-radius:16px;border:5px solid #fff;box-sizing:border-box;box-shadow:0 6px 16px rgba(15,23,42,.18)}
.bb-id>.bb-noface.ph b{font-size:38px}
.bb-id-body{padding:22px 20px 0;display:flex;flex-direction:column;gap:6px;flex:1;position:relative}
.bb-id-cert{font-size:11px;font-weight:700;color:#17A863;letter-spacing:1px;text-transform:uppercase}
.bb-id-body>b{font-size:24px;letter-spacing:-.5px;line-height:1.1;max-width:170px}
.bb-id-body dl,.bb-bc dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:12.5px;margin:76px 0 0}
.bb-id-body dt,.bb-bc dt{color:#475569}.bb-id-body dd,.bb-bc dd{margin:0;font-weight:700}
.bb-site{font-size:11.5px;color:#475569;margin-top:auto;padding-bottom:12px}
.bb-id-dots{position:absolute;right:18px;bottom:30px;width:120px;height:70px}
.bb-id.back{background:#E8F7EF}
.bb-id-backin{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:28px;text-align:center}
.bb-id-backin img{width:96px;height:96px}.bb-id-backin b{font-size:18px}.bb-id-backin span{font-size:13px;line-height:1.55;color:#334155}.bb-id-backin small{font-size:12px;line-height:1.5;color:#475569}
/* business card: 3.5 × 2 in at 1.88× */
.bb-bc{width:630px;height:360px;border-radius:16px;overflow:hidden;background:#fff;position:relative;display:flex;flex-direction:column;box-shadow:0 0 0 1px #E2E8F0}
.bb-bc-in{position:relative;flex:1;padding:34px 38px 0;display:flex;flex-direction:column;gap:4px}
.bb-bc-in .bb-brand{font-size:14px}.bb-bc-in .bb-brand img{width:44px;height:44px}
.bb-bc-in>b{font-size:32px;letter-spacing:-.8px;margin-top:34px}
.bb-bc-role{font-size:15px;color:#17A863;font-weight:700}
.bb-bc dl{font-size:13.5px;margin-top:22px}
.bb-bc.back{background:#0F172A;color:#fff}
.bb-bc-backin{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}
.bb-bc-backin span{width:92px;height:92px;border-radius:24px;background:#fff;display:flex;align-items:center;justify-content:center}.bb-bc-backin img{width:76px;height:76px}
.bb-bc-backin b{font-size:22px;letter-spacing:-.3px}.bb-bc-backin small{font-size:14px;color:#CBD5E1}
@media print{
  body.printing-sc .bb-fit,body.printing-sc .bb-fit *{visibility:visible}
  body.printing-sc .bb-fit{position:absolute;left:0;top:0;width:auto!important;height:auto!important;overflow:visible}
  body.printing-sc .bb-fit-in{transform:scale(var(--print,1))!important}
  body.printing-sc .bb-id,body.printing-sc .bb-bc{box-shadow:0 0 0 1px #CBD5E1}
}
/* Store Creator Home header: artwork band, their photo (or initials on artwork), change photo */
.sc-head{display:grid;gap:10px}
.sc-hero{height:120px;border-radius:18px;background:#0F172A;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end}
.sc-hero svg{position:absolute;inset:0;width:100%;height:100%}
.sc-hero .bb-strip{position:relative}
.sc-head .sc-who{margin:-58px 0 0 16px;align-items:flex-end;position:relative;gap:12px}
.sc-head .sc-me img,.sc-head .sc-ini{width:96px;height:96px;border-radius:50%;object-fit:cover;border:4px solid var(--bg);box-sizing:border-box;display:block}
.sc-ini{position:relative;background:#E8F7EF;display:flex!important;align-items:center;justify-content:center;overflow:hidden}
.sc-ini svg{position:absolute;inset:0;width:100%;height:100%}
.sc-ini b{position:relative;font-size:30px;font-weight:800;color:#17A863}
.sc-head .sc-badge{right:2px;bottom:6px;width:28px;height:28px;border:3px solid var(--bg)}
.sc-photo-btn{margin-bottom:8px;cursor:pointer}
/* next step and journey */
.sc-next{gap:8px;border:2px solid var(--green);box-shadow:0 8px 24px color-mix(in srgb,var(--green) 18%,transparent)}
.sc-eyebrow{justify-self:start;background:var(--plus);color:var(--on-plus);border-radius:30px;padding:3px 10px;font-size:11px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}
.sc-next-t{font-size:19px;letter-spacing:-.3px}
.sc-next-d{color:var(--muted);line-height:1.5}
.sc-journey{gap:10px}
.sc-jsteps{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.sc-jsteps li{display:flex;gap:12px;align-items:flex-start;padding:8px 0;position:relative}
.sc-jsteps li:not(:last-child)::after{content:"";position:absolute;left:13px;top:38px;bottom:-6px;width:2px;background:var(--line)}
.sc-jsteps li.done:not(:last-child)::after{background:var(--green)}
.sc-jdot{width:28px;height:28px;flex:none;border-radius:50%;border:2px solid var(--line-2);display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--muted);box-sizing:border-box;background:var(--surface);position:relative;z-index:1}
.sc-jsteps li.done .sc-jdot{background:var(--green);border-color:var(--green);color:var(--navy)}
.sc-jsteps li.here .sc-jdot{border-color:#17A863;background:var(--brand-soft);color:var(--brand-text)}
.sc-jtxt{display:grid;gap:2px}.sc-jtxt b{font-size:14.5px}
.sc-jsteps li:not(.done):not(.here) .sc-jtxt b{color:var(--muted);font-weight:600}
.sc-here{color:var(--brand-text);font-weight:700}
/* pop-up when something changes */
.sc-pop{display:grid;gap:12px;max-width:440px;padding:0 24px 24px;overflow:hidden}
.sc-pop>.bb-strip{height:8px;margin:0 -24px 8px}
.sc-pop h2{font-size:22px;letter-spacing:-.4px;margin:0}
.sc-pop-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.sc-pop-steps li{display:flex;gap:12px;align-items:flex-start;background:var(--sunk);border-radius:12px;padding:12px}
.sc-pop-steps li>span:last-child{display:grid;gap:2px}
.sc-pop-steps .sc-jdot{border-color:#17A863;color:var(--brand-text);background:var(--brand-soft)}
.sc-pop-foot{display:grid;gap:8px}
.sc-pop-foot .btn{width:100%;justify-content:center}
.bb-cert,.bb-id,.bb-bc,.bb-cert h2,.bb-cert *,.bb-id *,.bb-bc *{font-family:Inter,"Segoe UI",Arial,sans-serif}
/* plans: Turnover plan / Fixed plan */
.pill.planpill.turnover{background:var(--brand-soft);color:var(--brand-text)}
.pill.planpill.fixed{background:#0F172A;color:#fff}
:root[data-theme="dark"] .pill.planpill.fixed{background:#E8EEF7;color:#0F172A}
.planopts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.planopt{display:grid;gap:3px;text-align:left;border:1.5px solid var(--line-2);border-radius:14px;padding:12px 14px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.planopt b{font-size:15px}.planopt span{color:var(--muted);font-size:13px}
.planopt[aria-pressed="true"]{border:2px solid #17A863;background:var(--brand-soft)}
.plan-box{display:grid;gap:12px;border:1px solid var(--line);border-radius:14px;padding:16px}
#bs-fixed.plan-box{border:2px solid #17A863}
/* Exclusive (members-only) stores */
.ex-hero{position:relative;overflow:hidden;height:128px;border-radius:18px;background:#0F172A;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:16px 18px;box-sizing:border-box}
.ex-hero>svg,.ex-locked>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ex-hero h2{position:relative;color:#fff;font-size:24px;margin:0}
:root[data-theme="dark"] .ex-hero{border:1px solid var(--line-2)}
.ex-filters{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -2px;padding:2px}
.ex-filters::-webkit-scrollbar{display:none}
.ex-filters .btn{flex:none;white-space:nowrap}
.ex-eyebrow{position:relative;display:inline-flex;gap:6px;align-items:center;color:#FFC93C;font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}
.ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.ex-card{gap:10px;margin:0}
.ex-name{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ex-lock,.members-pill{justify-self:start;display:inline-flex;gap:4px;align-items:center;background:#0F172A;color:#fff;border-radius:30px;padding:3px 9px;font-size:11.5px;font-weight:700}
:root[data-theme="dark"] .ex-lock,:root[data-theme="dark"] .members-pill{background:#E8EEF7;color:#0F172A}
.ex-locked{position:relative;overflow:hidden;border:1.5px dashed var(--line-2);border-radius:14px;background:var(--surface);padding:28px 20px;display:grid;justify-items:center;gap:10px;text-align:center}
.ex-locked>*:not(svg){position:relative;max-width:440px}
.ex-locked>svg{opacity:.55}
.ex-lockicon{width:56px;height:56px;border-radius:50%;background:#0F172A;color:#FFC93C;display:grid;place-items:center}
.ex-locked b{font-size:18px}
/* REL-QA-3 (26 Oct 2026): at 250 px (an iPhone with Safari text at 150 %) and real data, Shop was 291 px wide and Exclusive 316 px.
   Shop: the top block's column sized itself to its widest child (the "Deliver to" card's 240 px basis, the search box), and five
   54 px category pictures need 286 px. Now the column is the screen's width, and below 300 px the pictures shrink to fit their column.
   Exclusive: each store card had a 300 px minimum and the filter buttons stayed on one line; now a card is at most the screen's width
   and the buttons wrap. From 300 px up nothing changes. */
.mk-top{grid-template-columns:minmax(0,1fr)}
.mk-toprow>*{min-width:0}
.mk-where{flex-basis:min(240px,100%)}
.ex-grid{grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}
@media (max-width:299px){
  .mk-cats{gap:12px 2px}
  .mk-cat{min-width:0}
  .mk-cat-ic{width:100%;max-width:54px;height:auto;aspect-ratio:1}
  .mk-cat-ic svg,.mk-cat-ic img{max-width:70%;height:auto}
  .ex-filters{flex-wrap:wrap;overflow-x:visible}
  .ex-filters .btn{white-space:normal}
  .mk-prow{flex-wrap:wrap;gap:8px 10px}                       /* a product row: price and + go under the name when they don't fit beside it */
  .mk-prow .mk-thumb{width:48px;height:48px}
  .mk-prow .mk-pmid{flex:1 1 120px;min-width:0}
  .mk-prow .mk-pend{margin-left:auto}
}
.mem-list{overflow:hidden}
.mem-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px;border-top:1px solid var(--line)}
.mem-row:first-child{border-top:0}
@media (max-width:599px){ .mem-row{grid-template-columns:auto minmax(0,1fr)} .mem-row>.row{grid-column:1/-1;justify-content:flex-start!important} }

/* ===== Products and services, Choose your bar, calendar Day/Week/Month (October 2026, 4) ===== */
.pill.svc{background:var(--sunk);color:var(--ink)}
.svc-meta{flex-wrap:wrap;align-items:center}
.kind-seg{width:100%;max-width:460px}
.kind-seg .n,.seg .n{font-weight:500;opacity:.75;margin-left:4px}
.kind-row{gap:10px;align-items:center}
.qs-sub{margin:6px 0 0;font-size:17px}
.where-opts .where-opt{display:flex;gap:12px;align-items:flex-start;text-align:left}
.where-opt .tickbox{width:24px;height:24px;flex:none;border-radius:8px;border:1.5px solid var(--line-2);display:grid;place-items:center;font-weight:800;background:var(--surface)}
.where-opt[aria-pressed="true"]{border-color:var(--brand)}
.where-opt[aria-pressed="true"] .tickbox{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.where-opt > span:last-child{display:grid;gap:3px}
.visit-note{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.visit-note > span{display:grid;gap:3px}
.tpl-pick{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-top:8px}
.tpl-opt{display:grid;gap:3px;text-align:left;border:1.5px solid var(--line-2);border-radius:14px;padding:12px 14px;background:var(--surface);color:var(--ink);font:inherit;cursor:pointer}
.tpl-opt[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft)}
.tpl-opt span{font-size:13px;color:var(--muted)}
/* Choose your bar */
.nav-card{display:flex;align-items:center;gap:12px;background:var(--brand-soft);border-radius:18px;padding:12px 14px;margin:12px 0 4px}
.nav-card > span:nth-child(2){display:grid;gap:2px;flex:1;min-width:0}
.nav-mark{display:grid;grid-template-columns:repeat(2,12px);gap:3px;flex:none}
.nav-mark i{height:12px;border-radius:4px}
.nav-mark i:nth-child(1){background:#2BD47D}.nav-mark i:nth-child(2){background:#FFC93C}.nav-mark i:nth-child(3){background:#FF8FB1}.nav-mark i:nth-child(4){background:#0F172A}
:root[data-theme="dark"] .nav-mark i:nth-child(4){background:#F8FAFC}
.nav-h{font-size:13px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--brand-text)}
.nav-h.muted{color:var(--muted)}
.nav-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.nav-row{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:8px 10px;min-height:52px;box-sizing:border-box}
.nav-row > span:not(.nav-n):not(.nav-btns),.nav-row > b{flex:1;min-width:0}
.nav-row.fixed{background:var(--sunk);color:var(--muted)}
.nav-row.empty{justify-content:center}
.nav-n{width:26px;height:26px;border-radius:50%;background:var(--brand);color:var(--on-brand);display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.nav-btns{display:flex;gap:6px}
.icon-btn.sm{width:36px;height:36px;min-width:36px;border:1px solid var(--line-2);border-radius:99px;background:var(--surface);color:var(--ink);font-weight:800;display:grid;place-items:center}
.icon-btn.sm:disabled{opacity:.35}
.nav-act{justify-content:flex-end}
/* Home: services setup card and Next up */
.svc-card{background:var(--surface);border:1px solid var(--line);border-radius:22px;overflow:hidden}
.strip4{display:grid;grid-template-columns:repeat(4,1fr);height:5px}
.strip4 i:nth-child(1){background:#2BD47D}.strip4 i:nth-child(2){background:#FFC93C}.strip4 i:nth-child(3){background:#FF8FB1}.strip4 i:nth-child(4){background:#0F172A}
.svc-in{padding:16px 18px;display:grid;gap:8px}
.svc-in .pill{justify-self:start}
.svc-in h3{margin:0;font-size:19px}
.svc-in p{margin:0}
.svc-prog{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}
.svc-prog i{height:6px;border-radius:6px;background:var(--line)}
.svc-prog i.on{background:var(--brand)}
.svc-checks{list-style:none;margin:0;padding:0;display:grid}
.svc-checks li{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.svc-checks li > span:nth-child(2){display:grid;gap:2px;flex:1;min-width:0}
.svc-checks li.done b{text-decoration:line-through;color:var(--muted)}
.svc-tick{width:26px;height:26px;border-radius:50%;flex:none;border:2px solid var(--line-2);display:grid;place-items:center;font-weight:800;font-size:13px;box-sizing:border-box}
.svc-checks li.done .svc-tick{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.next-up{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.next-up li{display:flex;gap:10px;align-items:center}
.next-up li > b{width:64px;flex:none;font-size:14px}
.next-up li > span{flex:1;min-width:0;border-left:3px solid var(--deliv);background:var(--deliv-soft);border-radius:8px;padding:8px 10px;font-size:13.5px}
.next-up li.visit > span{border-left-color:var(--pink);background:var(--pink-soft)}
.next-up li.wait > span{border-left-color:var(--office);background:var(--office-soft)}
/* calendar */
.bk-item.visit{border-left-color:var(--pink)}
.bk-item.free{background:var(--surface);border:1.5px dashed var(--brand);border-left-width:1.5px}
.bk-item.free .bk-who b{color:var(--brand-text)}
.bk-plus{margin-left:auto;background:var(--brand);color:var(--on-brand);border-radius:99px;padding:4px 12px;font-size:13px;font-weight:700}
.bk-visit{display:inline-flex;gap:4px;align-items:center;color:var(--pink-ink)}
.bk-ev.visit{background:var(--pink-soft);border-left-color:var(--pink)}
.bk-pill.visit{background:var(--pink-soft);color:var(--pink-ink)}
.bk-pill.free{border:1.5px dashed var(--brand);color:var(--brand-text);background:var(--surface)}
.bk-dayas{display:flex;justify-content:flex-end}
.bk-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.bk-stat{display:grid;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 14px}
.bk-stat b{font-size:20px;font-family:var(--f-display)}
.bk-stat span{font-size:12.5px;color:var(--muted)}
.bk-stat.visit{background:var(--pink-soft)} .bk-stat.blue{background:var(--office-soft)} .bk-stat.green{background:var(--deliv-soft)}
.bk-grid.days{grid-template-columns:48px repeat(7,minmax(104px,1fr))}
.bk-dayhd{display:grid;gap:1px;cursor:pointer;color:var(--ink);font:inherit;font-size:13px}
.bk-dayhd i{font-style:normal;font-size:11px;font-weight:700;color:var(--brand-text)}
.bk-dayhd.today{background:var(--ink);color:var(--surface)}
.bk-dayhd.today i{color:var(--brand)}
.bk-col.closed{background:repeating-linear-gradient(135deg,var(--sunk) 0 6px,var(--surface) 6px 12px)}
.bk-closed{position:absolute;top:8px;left:8px;font-size:12px;font-weight:700;color:var(--muted)}
.bk-free{position:absolute;left:3px;right:3px;border:1.5px dashed var(--brand);border-radius:9px;font-size:11.5px;font-weight:700;color:var(--brand-text);padding:4px 6px;pointer-events:none;box-sizing:border-box}
.bk-monthwrap{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}
@media (max-width: 900px){ .bk-monthwrap{grid-template-columns:1fr} }
.bk-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.bk-mhd{text-align:center;font-size:12.5px;font-weight:700;color:var(--muted)}
.bk-mday{display:grid;align-content:start;gap:4px;min-height:92px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:6px 8px;color:var(--ink);font:inherit;cursor:pointer;min-width:0;overflow:hidden}
.bk-mday.pad{background:var(--sunk);border-color:transparent;cursor:default}
.bk-mday.closed{background:repeating-linear-gradient(135deg,var(--sunk) 0 6px,var(--surface) 6px 12px)}
.bk-mday.today{border:2px solid var(--ink)}
.bk-full{font-size:11px;font-weight:800;color:var(--warn)}
.bk-dots{display:inline-flex;gap:3px;min-height:7px}
.bk-dots i{width:7px;height:7px;border-radius:50%;background:var(--deliv)}
.bk-dots i.visit{background:var(--pink)}
.bk-bar{display:block;height:5px;border-radius:5px;background:var(--line);overflow:hidden;margin-top:auto}
.bk-bar i{display:block;height:100%;background:var(--brand)}
.bk-bar.full i{background:var(--warn)}
.bk-mside{display:grid;gap:12px}
.bk-mside .panel{gap:8px}
.bk-busiest{list-style:none;margin:0;padding:0;display:grid}
.bk-busiest li{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
@media (max-width: 560px){ .bk-mday{min-height:64px;padding:4px 5px} .bk-mday .small{font-size:11px} .bk-month{gap:4px} }
.who-go .drv{text-align:left}

/* ---------- signing in the app (Store Creators) ---------- */
.es-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.es-steps li{display:grid;gap:6px;font-size:12px;font-weight:600;color:var(--muted)}
.es-steps li i{height:5px;border-radius:5px;background:var(--line)}
.es-steps li.on{color:var(--ink)}
.es-steps li.on i{background:var(--green,#2BD47D)}
.es-doc{display:grid;gap:10px;max-height:min(70vh,760px);overflow:auto;background:var(--sunk);border-radius:14px;padding:10px;border:1px solid var(--line)}
.es-page{background:#fff;border-radius:6px;box-shadow:0 1px 3px rgba(15,23,42,.12);display:grid;place-items:center;overflow:hidden;width:100%}
.es-page canvas{display:block}
.es-end{text-align:center;padding:8px 0 4px}
.es-locked{display:grid;gap:2px;background:var(--sunk);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.es-note{background:var(--mint,#E8F7EF);border-radius:12px;padding:10px 12px;color:var(--ink)}
[data-theme="dark"] .es-note{background:color-mix(in srgb,var(--surface) 80%,#2BD47D)}
.es-pad{position:relative;height:180px;border:1.5px dashed var(--line-2);border-radius:14px;background:#fff;touch-action:none}
.es-pad canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none}
.es-pad-line{position:absolute;left:24px;right:24px;bottom:46px;height:1.5px;background:#CBD5E1;pointer-events:none}
.es-pad-hint{position:absolute;left:24px;bottom:24px;pointer-events:none;color:#64748B}
.es-pad-clear{position:absolute;right:8px;top:8px;color:#0F172A}
.es-thumb{display:grid;gap:4px}
.es-thumb .es-page{max-width:220px}
.es-id{display:grid;gap:4px;justify-items:center;text-align:center;border:1.5px dashed var(--line-2);border-radius:14px;padding:14px 10px;cursor:pointer;background:var(--surface)}
.es-id.done{border:1px solid var(--green,#2BD47D);background:var(--mint,#E8F7EF);color:#0F172A}
.es-id:focus-within{outline:2px solid var(--ink);outline-offset:2px}
.es-sigshow{background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px;width:max-content;max-width:100%}
.es-sigshow img{display:block;max-height:70px;max-width:100%}
.es-spot{display:grid;gap:4px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}

/* ---------- messages between B+B and Store Creators ---------- */
.scm{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:760px){ .scm{grid-template-columns:minmax(0,1fr)} }
.scm-list{gap:8px;max-height:640px;overflow:auto}
.scm-conv{display:flex;gap:10px;align-items:center;border:0;background:none;text-align:left;padding:10px;border-radius:12px;color:var(--ink);width:100%}
.scm-conv:hover{background:var(--sunk)}
.scm-conv.on{background:var(--mint,#E8F7EF);color:#0F172A}
.scm-ini{width:38px;height:38px;border-radius:50%;background:var(--navy,#0F172A);color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.scm-c{display:grid;gap:1px;min-width:0;flex:1}
.scm-last{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.scm-chat{gap:10px;min-height:420px;display:grid;grid-template-rows:auto 1fr auto}
.scm-chat.solo{grid-template-rows:1fr auto;min-height:360px}
.scm-head{display:grid;gap:2px;border-bottom:1px solid var(--line);padding-bottom:8px}
.scm-msgs{display:flex;flex-direction:column;gap:10px;overflow:auto;max-height:520px;padding:4px 2px;background:var(--sunk);border-radius:12px;padding:12px}
.bub-row{display:flex;flex-direction:column;gap:3px;align-items:flex-start;max-width:78%}
.bub-row.me{align-self:flex-end;align-items:flex-end}
.bub{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:9px 13px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.bub-row.me .bub{background:var(--navy,#0F172A);color:#fff;border-color:transparent}
[data-theme="dark"] .bub-row.me .bub{background:#2BD47D;color:#0F172A}
.scm-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.scm-k{font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:11.5px}
.ann{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px}
@media (max-width:760px){ .ann{grid-template-columns:minmax(0,1fr)} }
.ann-chips{gap:6px}
.ann-side{background:var(--sunk);border-radius:14px;padding:14px;align-content:start}
.ann-card{display:grid;gap:4px;border-left:4px solid #FFC93C;background:var(--surface);border-radius:12px;padding:12px 14px}
.ann-card.new{border-left-color:#2BD47D}
.ann-k{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ann-sent{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ann-sent li{display:flex;justify-content:space-between;gap:10px;background:var(--surface);border-radius:10px;padding:8px 10px}
.ann-sent li > span:first-child{display:grid;gap:2px;min-width:0}

/* ---------- follow-ups and ratings ---------- */
.fu-card{gap:10px}
.fu-stats{gap:14px;color:var(--muted)}
.fu-stats b{color:var(--ink)}
.fu-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.fu-steps li{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:9px 10px}
.fu-steps li > span:nth-child(2){flex:1}
.fu-steps li.due{border-color:#FFC93C;background:color-mix(in srgb,var(--surface) 85%,#FFC93C)}
.fu-steps li.done .sc-jdot{background:#2BD47D;border-color:#2BD47D;color:#0F172A}
.fu-rating{gap:4px}
.rate-card{gap:10px;position:relative;overflow:hidden}
.rate-card .strip4{display:grid;grid-template-columns:repeat(4,1fr);height:5px;margin:-18px -18px 4px}
.rate-card .strip4 i:nth-child(1){background:#2BD47D} .rate-card .strip4 i:nth-child(2){background:#FFC93C} .rate-card .strip4 i:nth-child(3){background:#FF8FB1} .rate-card .strip4 i:nth-child(4){background:#0F172A}
.rate-stars{display:flex;gap:4px}
.rate-stars button{border:0;background:none;font-size:34px;line-height:1;padding:2px 4px;color:var(--line-2);min-width:44px;min-height:44px}
.rate-stars button.on{color:#FFC93C}
.es-thumbs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.es-opens{display:flex;flex-wrap:wrap;gap:8px;align-items:center}

/* ===== Ratings for every order (October 2026, 6) ===== */
.rate-body{gap:16px}
.rt-target{display:grid;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.rt-target:last-of-type{border-bottom:0}
.rt-who{display:flex;align-items:center;gap:12px;min-width:0}
.rt-whot{display:grid;gap:2px;min-width:0;flex:1}
.rt-stars{display:grid;justify-items:center;gap:4px}
.rt-word{font-size:15px;min-height:22px}
.star-pick{display:inline-flex;gap:4px}
.star-pick button{border:0;background:none;font-size:30px;line-height:1;padding:4px;color:var(--line-2);min-width:44px;min-height:44px;border-radius:12px;transition:transform .12s}
.star-pick.big button{font-size:38px}
.star-pick button.on{color:var(--yellow);text-shadow:0 1px 0 #E0A100}
.star-pick button:active{transform:scale(1.2)}
.thumbs{display:inline-flex;gap:8px;flex:none}
.thumbs .th{width:48px;height:44px;border-radius:99px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);display:grid;place-items:center;transition:transform .12s}
.thumbs .th.up.on{background:var(--green);border-color:var(--green);color:var(--navy)}
.thumbs .th.down.on{background:var(--sunk);border-color:var(--ink);color:var(--ink)}
.thumbs .th:active{transform:scale(1.12)}
.rt-tags .chip[aria-pressed="true"]{background:var(--brand-soft);color:var(--brand-text);border-color:var(--green)}
.rt-tags .chip.bad[aria-pressed="true"]{background:var(--sunk);color:var(--ink);border-color:var(--ink)}
.rt-items{gap:6px}
.rt-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px}
.rt-actions .btn.primary{flex:1}
.rt-note{display:flex;gap:6px;align-items:center;background:var(--sunk);border-radius:12px;padding:10px 12px;margin:0}
.rt-privacy{margin:0}
.rt-reply{display:grid;gap:2px;border-left:3px solid var(--green);padding:2px 0 2px 10px}
.rate-panel{gap:12px;position:relative;overflow:hidden}
.rate-panel .strip4,.rate-card .strip4{display:grid;grid-template-columns:repeat(4,1fr);height:5px;margin:-18px -18px 4px}
.rate-panel .strip4 i:nth-child(1){background:#2BD47D} .rate-panel .strip4 i:nth-child(2){background:#FFC93C} .rate-panel .strip4 i:nth-child(3){background:#FF8FB1} .rate-panel .strip4 i:nth-child(4){background:#0F172A}
.rt-done{gap:6px}
/* thank-you: stars pop in turn, a burst in the four brand colours (under 1 second; none with reduced motion) */
.rate-thanks{display:grid;justify-items:center;text-align:center;gap:8px;padding:8px 0}
.rate-thanks h3{font-size:22px;margin:4px 0 0}
.rate-thanks p{margin:0}
.rt-until{background:var(--brand-soft);color:var(--ink);border-radius:12px;padding:10px 14px;justify-self:stretch;text-align:left}
.rt-burst{position:relative;height:96px;width:100%;display:grid;place-items:center}
.rt-bigstars span{font-size:40px;color:var(--line-2);display:inline-block}
.rt-bigstars span.on{color:var(--yellow);text-shadow:0 1px 0 #E0A100;animation:rtpop .32s cubic-bezier(.3,1.6,.6,1) both;animation-delay:calc(var(--i) * 70ms)}
.rt-burst i{position:absolute;left:50%;top:50%;width:9px;height:9px;border-radius:3px;opacity:0;animation:rtburst .55s ease-out .4s both;animation-delay:calc(.4s + var(--d))}
.rt-burst i.c0{background:#2BD47D} .rt-burst i.c1{background:#FFC93C} .rt-burst i.c2{background:#FF8FB1} .rt-burst i.c3{background:#0F172A}
:root[data-theme="dark"] .rt-burst i.c3{background:#F1F5F9}
@keyframes rtpop{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.35);opacity:1}100%{transform:scale(1)}}
@keyframes rtburst{0%{opacity:1;transform:translate(-50%,-50%) rotate(var(--a)) translateY(0)}100%{opacity:0;transform:translate(-50%,-50%) rotate(var(--a)) translateY(-70px)}}
.rate-thanks.calm .rt-bigstars span,.rate-thanks.calm .rt-burst i{animation:none}
.rate-thanks.calm .rt-burst i{display:none}
@media (prefers-reduced-motion:reduce){.rt-bigstars span,.rt-burst i,.star-pick button,.thumbs .th{animation:none!important;transition:none!important}.rt-burst i{display:none}}
/* scores and badges */
.score{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.score .ico{color:var(--deliv)}
.top-pill{background:var(--yellow);color:var(--navy)}
.new-pill{background:var(--brand-soft);color:var(--brand-text)}
.chip.static{cursor:default}
.chip.static.good{background:var(--brand-soft);color:var(--brand-text);border-color:transparent}
.chip.static.bad{background:var(--sunk);color:var(--ink);border-color:var(--line-2)}
/* reviews */
.rv-sum{grid-template-columns:auto 1fr;align-items:center;gap:16px}
.rv-sum .rv-tags{grid-column:1/-1}
.rv-big{display:grid;justify-items:center;gap:2px;min-width:110px}
.rv-big>b{font-size:44px;line-height:1;font-weight:800}
.rv-big .stars,.rv-card .stars{color:#9A6700}
:root[data-theme="dark"] .rv-big .stars,:root[data-theme="dark"] .rv-card .stars{color:var(--gold)}
.rv-big .stars .muted,.rv-card .stars .muted{color:var(--muted)}
.rv-new{font-size:28px!important}
.rv-bars{display:grid;gap:6px}
.rv-row{display:grid;grid-template-columns:14px 1fr 34px;align-items:center;gap:10px;font-size:13px}
.rv-bar{height:8px;border-radius:99px;background:var(--sunk);overflow:hidden}
.rv-bar i{display:block;height:100%;background:var(--gold);border-radius:99px}
.rv-card{display:grid;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.rv-text{margin:0}
.rv-good{color:var(--brand-text)} .rv-bad{color:var(--ink)}
.rv-replybox .i{flex:1 1 100%;min-width:0}
.rv-grid{display:grid;grid-template-columns:minmax(260px,1fr) 2fr;gap:12px;align-items:start}
@media (max-width:899px){.rv-grid{grid-template-columns:1fr}}
.rv-link{display:inline-flex;align-items:center;gap:6px}
/* my rating */
.my-score{grid-template-columns:auto 1fr;align-items:center;gap:16px}
.ring{--p:0;width:96px;height:96px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) calc(var(--p) * 1%),var(--sunk) 0)}
.ring b{width:76px;height:76px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:22px}
.ring.stars-ring{background:conic-gradient(var(--yellow) 100%,var(--sunk) 0)}
.cust-score{display:flex;flex-wrap:wrap;align-items:center;gap:6px;background:var(--sunk);border-radius:10px;padding:6px 10px}
/* the bell list */
.alerts{display:grid;gap:8px}
.alerts h3{display:flex;align-items:center;gap:8px}
.alert-list{display:grid;gap:8px}
.alert{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;text-align:left;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;color:var(--ink);font:inherit}
.alert.unread{border-color:var(--green);background:var(--brand-soft)}
.al-ic{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--plus-soft);color:var(--gold)}
.al-ic.up{background:var(--green);color:var(--navy)}
.al-ic.chat{background:var(--office-soft);color:var(--office)}
.al-main{display:grid;gap:2px;min-width:0}
.drv .top-pill,.drv .score{margin-left:4px}
.kpis.rv-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.kpis.rv-kpis3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:599px){.kpis.rv-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.kpis.rv-kpis3{grid-template-columns:1fr}}

/* ---------- Share links and Blogs (October 2026, 7) ---------- */
.sh-card{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--surface)}
.sh-card img,.sh-noimg{width:64px;height:64px;object-fit:cover;flex:none;background:var(--brand-soft);display:flex;align-items:center;justify-content:center}
.sh-card>span{display:grid;gap:2px;min-width:0}.sh-url{color:var(--brand-text);overflow-wrap:anywhere}
.sh-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 6px}
.sh-opt{display:grid;justify-items:center;gap:6px;background:none;border:0;padding:4px;font-size:12.5px;font-weight:600;color:var(--ink);min-height:44px;border-radius:12px}
.sh-opt:disabled{opacity:.55}.sh-opt:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.sh-ico{width:52px;height:52px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px}
.bfeed{display:grid;gap:18px;max-width:560px;width:100%;margin:0 auto}
.bpost-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;scroll-snap-align:start;scroll-margin-top:calc(var(--bar-h) + 8px)}
.bp-head{display:flex;align-items:center;gap:10px;padding:10px 12px}
.bp-ava{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;background:var(--brand-soft)}.bp-ava.ini{display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--navy)}
.bp-who{flex:1;display:grid;min-width:0}.bp-who b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bp-acts{display:flex;align-items:center;gap:6px;padding:8px 10px 2px}
.bp-act{display:inline-flex;align-items:center;gap:5px;background:none;border:0;color:var(--ink);font-weight:700;font-size:14px;min-height:44px;min-width:44px;padding:0 6px;border-radius:10px}
.bp-act:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.bp-shop{margin-left:auto}
.bp-cap{margin:0;padding:2px 12px 12px;font-size:14px;line-height:1.5;white-space:pre-line}
.bp-mi{display:flex;gap:12px;align-items:center;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:12px 2px;color:var(--ink);min-height:52px}
.bp-mi span{display:grid;gap:2px}.bp-mi small{color:var(--muted);font-size:13px}.bp-mi.danger,.bp-mi.danger b{color:var(--bad)}
.mp-tpl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mp-tpl button{display:grid;gap:2px;text-align:left;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);border-radius:12px;padding:10px 12px;min-height:56px}
.mp-tpl button[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.mp-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;margin-top:8px}
.mp-item{display:flex;gap:10px;align-items:center;text-align:left;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:12px;padding:8px;min-height:56px}
.mp-item[aria-checked="true"]{border-color:var(--brand);background:var(--brand-soft);box-shadow:inset 0 0 0 1px var(--brand)}
.mp-item:disabled{opacity:.55}.mp-item img,.mp-noimg{width:46px;height:46px;object-fit:cover;flex:none;background:var(--sunk);font-size:10px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted)}
.mp-item>span{display:grid;min-width:0}.mp-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mp-prev{max-width:420px;width:100%;margin:0 auto;border:1px solid var(--line)}
.mp-row,.bl-rev{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:start}
.bl-rev{grid-template-columns:220px minmax(0,1fr)}
.mp-thumb{width:100%;border:1px solid var(--line)}
.mp-nums{color:var(--muted)}
.bl-all{display:grid;gap:8px}
.ask-post{gap:8px;border-color:var(--brand);background:var(--brand-soft)}
@media (max-width:599px){.bl-rev{grid-template-columns:1fr}.mp-tpl{grid-template-columns:1fr}.sh-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.mp-nopic{display:grid;gap:6px}.mp-warn{color:var(--warn);font-weight:600}

/* QA environment: a ribbon on every screen (set by config.qa.js) */
:root[data-env="qa"] body::after{content:"QA · test data";position:fixed;z-index:9999;left:50%;bottom:calc(var(--nav-h, 0px) + 6px);transform:translateX(-50%);background:#FFC93C;color:#0F172A;font:800 11px/1 Inter,system-ui,sans-serif;letter-spacing:.08em;padding:5px 10px;border-radius:20px;pointer-events:none;box-shadow:0 2px 6px rgb(15 23 42 / .25)}
/* Mobile UX hotfix (#6): --nav-h is the bar's measured height WITHOUT the home-bar gap (the bar's bottom padding), so on an iPhone the
   ribbon landed inside the bar, over "Orders". It now sits 6 px above the whole bar, gap included (P2-T-142: above the bar, using its
   measured height), and goes while the keyboard is open or a sheet is up. With no bar (tablet rail, computer) it stays 6 px above the
   home-bar gap. */
:root[data-env="qa"] body::after{bottom:calc(var(--nav-h, 0px) + var(--bs-safe, 0px) + 6px)}
:root[data-env="qa"].typing body::after{display:none}
:root[data-env="qa"] body:has(.overlay,.ask-panel.sheet)::after{display:none}   /* and while a pop-up or sheet is open (it sat on the sheet's buttons, e.g. "Show 1 shop") */

/* ---------- Read and agree (Store Creator consent, 12 October 2026) ---------- */
@font-face{font-family:"BB Signature";src:url(../../vendor/fonts/NothingYouCouldDo-Regular.ttf) format("truetype");font-display:swap}
.cs{display:grid;gap:14px;padding-bottom:84px;min-width:0}
.cs-hello,.cs-again{display:grid;gap:4px;border-radius:14px;padding:12px 14px}
.cs-hello{background:var(--brand-soft);color:var(--ink);border-left:5px solid var(--green)}
.cs-again{background:var(--warn-soft);color:var(--ink);border-left:5px solid var(--yellow)}
.cs-dashes{display:flex;gap:6px}.cs-dashes i{flex:1;height:5px;border-radius:5px;background:var(--line)}.cs-dashes i.on{background:var(--green)}
.cs-card{gap:10px;padding:14px}
.cs-card-h{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;padding:0;color:var(--ink);min-height:44px}
.cs-card-h .pill{margin-left:auto;flex:none}
.cs-num{width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.cs-t{display:grid;gap:1px;min-width:0;overflow-wrap:anywhere}
/* pages one under the other with their real height (a grid with a fixed-height box would squash the rows, CS-1) */
.cs-doc{display:flex;flex-direction:column;max-height:min(46vh,520px)}.cs-doc.tall{max-height:min(72vh,820px)}
.cs-doc .cs-page{flex:none;width:100%}.cs-doc .cs-end{flex:none}
.cs-foot{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.cs-bar{flex:1 1 80px;height:4px;border-radius:4px;background:var(--line);overflow:hidden;min-width:60px}.cs-bar i{display:block;height:100%;background:var(--green)}
.cs-fullscreen{position:fixed;inset:0;z-index:60;background:var(--bg);display:grid;grid-template-rows:auto 1fr auto;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}
.cs-fullscreen .cs-doc{max-height:none;height:100%;touch-action:pan-x pan-y pinch-zoom}
.cs-pagefail{display:block;padding:24px 10px;text-align:center;color:#0F172A;background:repeating-linear-gradient(45deg,#FFF4D6,#FFF4D6 8px,#fff 8px,#fff 16px);width:100%}
.cs-tick{display:flex;align-items:flex-start;gap:12px;min-height:60px;padding:12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:var(--surface)}
.cs-tick input{width:26px;height:26px;flex:none;margin:0;accent-color:var(--brand-text)}
.cs-tick.locked{border-style:dashed;cursor:not-allowed}
.cs-tick.glow{border-color:var(--yellow);box-shadow:0 0 0 3px color-mix(in srgb,var(--yellow) 45%,transparent)}
.cs-tick.on{border-color:var(--green);background:var(--brand-soft);color:var(--ink)}
.cs-lock{color:var(--muted);font-size:12px;margin-top:-4px}.cs-lock.ok{color:var(--brand-text);font-weight:600}
.cs-card.folded{gap:8px}
.cs-warnbox{display:grid;gap:6px;background:var(--warn-soft);color:var(--ink);border-left:5px solid var(--yellow);border-radius:12px;padding:12px 14px}
.cs-rows{display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.cs-rows b{overflow-wrap:anywhere}
.cs-paper{position:relative;background:#fff;color:#172554;border:1px solid var(--line);border-radius:12px;padding:12px 16px 8px;min-height:96px;display:grid;align-content:end;gap:4px;overflow:hidden}
.cs-sigtext{font-family:"BB Signature",cursive;color:#172554;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.cs-sigline{height:1.5px;background:#CBD5E1}
.cs-sigfoot{display:flex;justify-content:space-between;font-size:12px;color:#64748B}
.cs-ok{color:var(--brand-text);font-weight:600;display:flex;gap:6px;align-items:center}
.cs-namefix{display:grid;gap:6px;color:var(--bad)}
.cs-copy{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--bad-soft);border-radius:10px;padding:8px 10px;color:var(--ink)}
.cs-amber{background:var(--warn-soft);color:var(--ink);border-radius:10px;padding:10px 12px;display:grid;gap:4px}
.cs-draw{border:1px solid var(--line);border-radius:12px;padding:4px 12px 12px;display:grid;gap:10px}
.cs-draw-h{display:grid;grid-template-columns:1fr auto;gap:2px 10px;text-align:left;background:none;border:0;padding:8px 0 0;color:var(--ink);min-height:44px}
.cs-draw-h svg{grid-row:1 / span 2;grid-column:2;align-self:center}
.cs-privacy{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface)}
.cs-shield{width:30px;height:30px;border-radius:50%;background:var(--sunk);color:var(--ink);display:grid;place-items:center;flex:none}
.cs-sentence{line-height:1.5}
.cs-esign{color:var(--muted);text-align:center;margin-bottom:-4px}
.cs-bottom{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:15;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:8px 8px 8px 10px;box-shadow:0 6px 24px rgba(15,23,42,.14)}
@media (min-width:1024px){ .cs-bottom{bottom:12px} }
.cs-miss{flex:1 1 150px;display:flex;align-items:center;gap:8px;background:none;border:0;text-align:left;color:var(--ink);font-size:13.5px;font-weight:500;min-height:44px;min-width:0;padding:0}
.cs-miss span:last-child{overflow-wrap:anywhere}
.cs-miss-n{width:26px;height:26px;border-radius:50%;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.cs-miss.bad .cs-miss-n{background:var(--bad);color:#fff}
.cs-miss.ready .cs-miss-n{background:var(--green);color:var(--navy)}
.cs-bottom .btn{flex:1 1 auto;min-height:44px}
#cs-updated{position:sticky;top:8px;z-index:16;box-shadow:0 6px 24px rgba(15,23,42,.18)}   /* SCJ-5: the warning stays in view */
.cs-receipt{justify-items:center;text-align:center;gap:10px}
.cs-bigtick{width:72px;height:72px;border-radius:50%;background:var(--green);color:var(--navy);display:grid;place-items:center;position:relative}
.cs-bigtick::after{content:"";position:absolute;right:2px;top:4px;width:14px;height:14px;border-radius:50%;background:var(--yellow)}
.cs-strip{display:grid;grid-template-columns:repeat(4,1fr);width:min(260px,80%);height:5px}
.cs-strip i:nth-child(1){background:#2BD47D}.cs-strip i:nth-child(2){background:#FFC93C}.cs-strip i:nth-child(3){background:#FF8FB1}.cs-strip i:nth-child(4){background:#0F172A}
:root[data-theme="dark"] .cs-strip i:nth-child(4){background:#F1F5F9}
.cs-viewer{min-width:min(720px,84vw)}
@media (max-width:760px){ .cs-viewer{min-width:0} }
/* the message that goes with a decision; decision messages in Messages */
.sc-msgbox{display:grid;gap:8px;border:1px solid var(--line-2);border-radius:14px;padding:12px;background:var(--sunk)}
.sc-msgbox textarea{min-height:120px}
.sc-msg-goes{display:flex;gap:6px;align-items:center}
.sc-internal{border:1.5px dashed var(--line-2);border-radius:12px;padding:10px}
.sc-dmsg{display:grid;gap:8px;max-width:min(560px,88%);background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--green);border-radius:14px;padding:10px 12px;font-size:14.5px;overflow-wrap:anywhere}
.sc-dmsg.warn{border-left-color:var(--yellow)}.sc-dmsg.bad{border-left-color:var(--bad)}.sc-dmsg.plain{border-left-color:var(--line-2)}
.bub-row.dmsg-row{align-items:flex-start}
.bub-row.me .sc-dmsg{margin-left:auto}
.sc-bell{position:relative}.sc-bell .nbadge{position:absolute;top:2px;right:0;margin:0}
/* People Managers: the consent record and its flags */
.sc-flag{display:grid;gap:2px;border-radius:10px;padding:8px 12px;border-left:5px solid var(--yellow);background:var(--warn-soft);color:var(--ink)}
.sc-flag.bad{border-left-color:var(--bad);background:var(--bad-soft)}
.sc-recgrid{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.sc-rec{display:grid;gap:6px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.dl.sm>div{padding:5px 0;font-size:13px;grid-template-columns:minmax(100px,40%) 1fr}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px;overflow-wrap:anywhere}
/* Settings → Messages to Store Creators */
.sc-tpl-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sc-tpl-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--ink);min-height:44px}
.sc-tpl-row:hover{border-color:var(--line-2)}
.tpl-chips{gap:6px}
.sc-ver{display:grid;gap:6px;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.warn-text{color:var(--warn)}
/* longer Sinhala and Tamil words: the ID choice and the top line wrap instead of widening the page */
.cs .seg{width:100%!important;max-width:100%}
.cs .seg button{white-space:normal;padding:7px 8px;min-height:40px}
.cs .spread{flex-wrap:wrap;gap:4px 10px}
/* QA fixes (13 October 2026): buttons that wrap on phones instead of being cut off (CS-6, CS-8) */
#cs-privacy .row .btn,#sc-pdocs .row .btn{white-space:normal;text-align:center;max-width:100%}

/* ---------- Welcome pop-up (.wp) and first-order call card (.fo) (13 October 2026; docs/features/2026-10-welcome-popup/design) ---------- */
.modal.wp,.modal.fo{padding:0;display:flex;flex-direction:column;overflow:hidden;position:relative;width:min(440px,100%)}
.wp>.strip4,.fo>.strip4{flex:none}
.wp-band{flex:none;display:flex;align-items:center;justify-content:space-between;padding:18px 60px 4px 24px;background:linear-gradient(180deg,var(--brand-soft),var(--surface) 92%)}
.wp-band img{width:36px;height:36px;display:block}
.wp-x,.fo-x{position:absolute;top:11px;right:10px;width:44px;height:44px;min-height:44px!important;min-width:44px;padding:0!important;border-radius:50%!important;z-index:3;background:var(--sunk)!important;color:var(--ink)}
.wp-x .ico,.fo-x .ico{width:20px;height:20px}
.wp-main{flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:6px 24px 14px;display:grid;gap:10px;justify-items:start;background:var(--surface)}
.wp-tile{width:52px;height:52px;border-radius:17px;background:var(--brand);color:#0F172A;display:grid;place-items:center}
.wp-tile .ico{width:28px;height:28px;stroke:currentColor}
.wp h2{font-size:22px;line-height:1.2;margin:2px 0 0;overflow-wrap:anywhere;max-width:100%}
.wp p{color:var(--ink);font-size:15px;line-height:1.55;margin:0;overflow-wrap:anywhere}
.wp-pm{display:flex;gap:10px;align-items:flex-start;background:var(--brand-soft);border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.5;color:var(--ink)}
.wp-pm .ico{width:20px;height:20px;color:var(--brand-text);margin-top:1px;flex:none}
.wp-act,.fo-act{flex:none;position:relative;box-shadow:0 -10px 12px -10px rgb(15 23 42/.16);background:var(--surface);display:grid;margin-top:auto}
.wp-act{padding:12px 24px calc(14px + env(safe-area-inset-bottom,0px));gap:2px}
.wp-act .btn.lg,.fo-act .btn.lg{min-height:52px;font-size:16px;min-width:0}
.wp-tour{all:unset;box-sizing:border-box;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--brand-text);font-weight:600;font-size:14.5px;text-align:center;padding:0 12px}
.wp-tour:hover{text-decoration:underline}
.wp-tour:focus-visible,.wp-x:focus-visible,.fo-x:focus-visible,.fo .btn:focus-visible,.wp .btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.wp-tour .ico{width:16px;height:16px;flex:none}
.fo-band{flex:none;display:flex;align-items:center;gap:12px;padding:18px 64px 4px 24px;background:linear-gradient(180deg,var(--brand-soft),var(--surface) 92%)}
.fo-tile{width:48px;height:48px;border-radius:16px;background:var(--brand);color:#0F172A;display:grid;place-items:center;flex:none}
.fo-tile .ico{width:24px;height:24px;stroke:currentColor}
.fo-biz{min-width:0;font-size:13px;font-weight:600;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fo-main{flex:0 1 auto;min-height:0;overflow:auto;padding:8px 24px 14px;display:grid;gap:10px;background:var(--surface)}
.fo-added{justify-self:start;display:inline-flex;align-items:center;gap:6px;background:var(--brand-soft);color:var(--brand-text);border-radius:99px;font-size:13px;font-weight:600;padding:4px 12px 4px 8px;min-height:28px}
.fo-added .ico{width:16px;height:16px}
.fo-added{max-width:100%;box-sizing:border-box;white-space:normal;line-height:1.35;border-radius:16px;overflow-wrap:anywhere}
.fo-added .ico{flex:none}
.fo h2{font-size:21px;line-height:1.2;margin:0;overflow-wrap:anywhere}
.fo p{color:var(--ink);font-size:15px;line-height:1.55;margin:0;overflow-wrap:anywhere}
.fo-act{padding:10px 24px calc(18px + env(safe-area-inset-bottom,0px));gap:8px}
.fo-act .btn .lbl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fo-act .btn .ico{width:20px;height:20px;flex:none}
.fo-ph{user-select:all;-webkit-user-select:all}
.fo-num{text-align:center;font-size:14px;color:var(--muted);margin-top:-2px;font-variant-numeric:tabular-nums;letter-spacing:.01em;display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap}
.fo-num a{color:var(--brand-text);font-weight:600;display:inline-flex;align-items:center;min-height:44px}
.fo-line{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;line-height:1.5;color:var(--muted);padding:2px 2px 0}
.fo-line>.ico{width:18px;height:18px;flex:none;margin-top:2px;color:var(--brand-text)}
.fo-line .linkish{min-height:44px;display:inline-flex;align-items:center;white-space:nowrap;margin-left:2px}
.fo-line-t{min-width:0}
/* on phones the cards are bottom sheets, like the app's other pop-ups */
@media (max-width:599px){
  .overlay:not(.drawer-wrap) .modal.wp,.overlay:not(.drawer-wrap) .modal.fo{padding-bottom:0}
  .wp-band,.fo-band{position:relative}
  .wp-band{padding-top:28px}.fo-band{padding-top:26px}
  .wp-band::before,.fo-band::before{content:"";position:absolute;left:50%;top:12px;width:40px;height:4px;border-radius:4px;background:var(--line-2);transform:translateX(-50%)}
}
/* Sinhala and Tamil: about 10% bigger, 1.7 line height (Brand Guidelines p.21) */
html[data-lang=si] .wp h2,html[data-lang=ta] .wp h2{font-size:24px;line-height:1.4;font-weight:700;letter-spacing:0}
html[data-lang=si] .wp p,html[data-lang=ta] .wp p,html[data-lang=si] .fo p,html[data-lang=ta] .fo p{font-size:16.5px;line-height:1.7}
html[data-lang=si] .fo h2,html[data-lang=ta] .fo h2{font-weight:700;letter-spacing:0;line-height:1.4}
html[data-lang=si] .fo-line,html[data-lang=ta] .fo-line{font-size:14.5px;line-height:1.7}

/* Ask B+B never sits on the Place order / Pay button or the first-order Call link: at checkout on a phone it waits at the top, under the title bar */
@media (max-width:760px){
  body:has(#co-place) .ask-fab:not(.on):not(.dragging){top:calc(var(--bar-h,56px) + env(safe-area-inset-top,0px) + 8px) !important;bottom:auto !important}
  /* Mobile UX hotfix (#5): at the top it covered "Empty cart", the cart's heading and the "1 thing to fix" box. At checkout on a phone
     it is not shown at all; it is back on every other screen. */
  body:has(#co-place) .ask-fab:not(.on),body:has(#co-place) .ask-hint{display:none !important}
  /* and on the "Order placed" screen, where it sat on "Let the shop know on WhatsApp" */
  body:has(#ok-screen) .ask-fab:not(.on),body:has(#ok-screen) .ask-hint{display:none !important}
}

/* ---------- Read and agree: the checklist and the two ID boxes (14 October 2026) ---------- */
.cs-need{gap:8px}
.cs-need-l{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.cs-need-i{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;text-align:left;background:none;border:0;border-radius:10px;padding:4px 6px;color:var(--ink);font-size:14.5px;font-weight:500}
.cs-need-i:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.cs-need-n{width:26px;height:26px;border-radius:50%;background:var(--yellow);color:var(--navy);display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.cs-need-i.done .cs-need-n{background:var(--green)}
.cs-need-i.done{color:var(--muted)}
.cs-idgrid{align-items:stretch}
.es-id{min-width:0;overflow-wrap:anywhere}
.es-id.bad{border-color:var(--bad)}
.es-id .btn,.es-id .linkbtn{justify-self:center;min-height:36px;display:inline-flex;align-items:center}
.es-id .err{text-align:center}

/* Store Creators lists: bigger touch areas for the call and WhatsApp links on phones; the word WhatsApp beside the icon (17 Oct 2026) */
.sc-phone .sc-wa-word{margin-left:4px;font-size:13px}
.sc-phone .sc-wa-icon{display:inline-flex;align-items:center}
.sc-phone a.sc-tel{display:inline-flex;align-items:center;min-height:24px}
@media (pointer:coarse),(max-width:700px){ .sc-phone{gap:8px} .sc-phone a{display:inline-flex;align-items:center;min-height:44px;min-width:44px} .sc-phone a.sc-tel{padding:0 4px;min-height:44px} }

/* ---------- Tables (October 2026): one look for every list. Built in js/table.js ---------- */
.tb-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.tb-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tb-tabs::-webkit-scrollbar{display:none}
.tb-tab{flex:none;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;padding:9px 12px;min-height:40px;color:var(--muted);font-weight:500;font-size:14px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;border-radius:8px 8px 0 0}
.tb-tab:hover{color:var(--ink);background:var(--sunk)}
.tb-tab[aria-pressed="true"],.tb-tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--brand);font-weight:700}
.tb-tab-in{display:block;white-space:nowrap}
.tb-n{min-width:22px;height:20px;line-height:20px;border-radius:99px;background:var(--sunk);color:var(--muted);font-size:11.5px;font-weight:700;display:inline-block;vertical-align:middle;text-align:center;padding:0 7px;margin-left:7px;font-variant-numeric:tabular-nums}
.tb-tab[aria-pressed="true"] .tb-n,.tb-tab[aria-selected="true"] .tb-n{background:var(--brand);color:var(--on-brand)}
.tb-n.hot{background:var(--plus);color:var(--on-plus)}
.tb-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tb-tools-r{margin-left:auto;display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}
.tb-tools-r>.btn,.tb-tools-r>button{white-space:nowrap}
@media (max-width:480px){ .tb-tools-r{margin-left:0;width:100%} .tb-tools-r>.btn,.tb-tools-r>button.btn{flex:1 1 100%;justify-content:center} }
.tb-search{position:relative;flex:1 1 220px;max-width:380px;min-width:0}
.tb-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.tb-search input.i{width:100%;padding-left:34px;border-radius:99px}
.tb-fwrap{position:relative;display:inline-flex}
.tb-fbtn.on{border-color:var(--brand-text);color:var(--brand-text)}
.tb-fbtn .tb-n{background:var(--brand);color:var(--on-brand);height:18px;line-height:18px;min-width:18px;margin-left:4px}
.tb-fpanel{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:min(330px,calc(100vw - 32px));background:var(--surface);color:var(--ink);border:1px solid var(--line-2);border-radius:14px;box-shadow:var(--shadow);padding:14px;display:grid;gap:12px}
.tb-ff{border:0;margin:0;padding:0;display:grid;gap:4px;min-width:0}
.tb-ff legend{padding:0;font-size:13px;font-weight:600;margin-bottom:4px}
.tb-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tb-chip{display:inline-flex;align-items:center;gap:6px;background:var(--brand-soft);color:var(--brand-text);border:1px solid transparent;border-radius:99px;padding:4px 10px 4px 12px;min-height:30px;font:inherit;font-size:13px;font-weight:600}
.tb-chip:hover{border-color:var(--brand-text)}
.tb-chip-clear{background:none;border:0;color:var(--muted);font:inherit;font-size:13px;font-weight:600;text-decoration:underline;padding:4px 6px;min-height:30px}
.tb-empty{display:grid;justify-items:center;gap:10px;padding:28px 16px;border:1px dashed var(--line-2);border-radius:14px;color:var(--muted);text-align:center}
/* the table itself */
table.t.tb th{font-size:12px;font-weight:600;color:var(--muted);letter-spacing:.01em;background:var(--sunk);padding-top:6px;padding-bottom:6px}
table.t.tb td{height:56px}
table.t.tb tbody tr{transition:background .12s}
table.t.tb tbody tr:hover td{background:var(--sunk)}
table.t.tb tbody tr.tb-on td{background:var(--brand-soft)}
table.t th.tb-r,table.t td.tb-r{text-align:right}
table.t td.num{font-variant-numeric:tabular-nums}
table.t.tb .pill{min-height:24px;font-size:12px;font-weight:600;padding:3px 10px}
.tb-sort{background:none;border:0;padding:6px 0;min-height:32px;min-width:24px;font:inherit;color:inherit;display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:normal;text-align:left;border-radius:6px}
.tb-sort:hover,.tb-sort.on{color:var(--ink)}
.tb-arrow{flex:none}
th.tb-r .tb-sort{justify-content:flex-end}
table.t th.tb-sel,table.t td.tb-sel{width:44px;min-width:44px;padding-left:8px;padding-right:0}
.tb-ck{display:inline-grid;place-items:center;min-width:28px;min-height:28px;cursor:pointer}
.tb-ck input{width:20px;height:20px;margin:0;accent-color:var(--brand-text);cursor:pointer}
table.t th.tb-act-h,table.t td.tb-act{width:1%;white-space:nowrap;text-align:right;padding-left:4px}
.tb-acts{display:inline-flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
.tb-mwrap{position:relative;display:inline-flex}
.tb-more{width:32px;height:32px;border-radius:99px;border:1px solid transparent;background:none;color:var(--muted);display:inline-grid;place-items:center;cursor:pointer;padding:0}
.tb-more:hover,.tb-more.open{background:var(--sunk);color:var(--ink);border-color:var(--line-2)}
/* the menu (a sheet from the bottom on phones) */
.tb-menu{text-align:left;white-space:normal;position:fixed;top:0;left:0;z-index:70;min-width:200px;max-width:min(320px,calc(100vw - 16px));background:var(--surface);color:var(--ink);border:1px solid var(--line-2);border-radius:12px;box-shadow:var(--shadow);padding:6px;display:grid;gap:2px}
.tb-mi{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 12px;border:0;background:none;border-radius:8px;font:inherit;font-size:14px;font-weight:500;color:inherit;text-align:left;text-decoration:none;cursor:pointer;box-sizing:border-box}
.tb-mi:hover,.tb-mi:focus-visible{background:var(--sunk)}
.tb-mi.danger{color:var(--bad)}
.tb-mi:disabled{opacity:.45;cursor:not-allowed}
.tb-scrim{position:fixed;inset:0;z-index:69;background:var(--scrim)}
.tb-menu.sheet{top:auto;left:0;right:0;bottom:0;max-width:none;width:auto;border-radius:20px 20px 0 0;padding:6px 12px calc(12px + env(safe-area-inset-bottom,0px));gap:0}
.tb-menu.sheet .tb-mi{min-height:48px;font-size:16px;border-radius:10px}
.tb-sheet-h{padding:12px 4px 8px;font-size:14px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the dark bar for ticked rows */
.tb-bar{position:fixed;z-index:47;left:12px;right:12px;margin-inline:auto;max-width:780px;bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom,0px));background:#0F172A;color:#E8EEF7;border:1px solid #334155;border-radius:16px;padding:10px 10px 8px 6px;display:flex;align-items:center;gap:4px 8px;flex-wrap:wrap;box-shadow:0 14px 40px rgb(15 23 42 / .38)}
:root[data-theme="dark"] .tb-bar{background:#020817;border-color:#475569;box-shadow:0 14px 40px rgb(0 0 0 / .6)}
.tb-strip{position:absolute;left:16px;right:16px;top:0;height:3px;border-radius:0 0 3px 3px;overflow:hidden}
.tb-bar-x{width:40px;height:40px;border-radius:99px;border:0;background:none;color:#E8EEF7;display:inline-grid;place-items:center;flex:none;cursor:pointer}
.tb-bar-x:hover,.tb-bar-b:hover{background:rgb(255 255 255 / .12)}
.tb-bar-n{font-size:14px;font-weight:700;margin-right:auto;white-space:nowrap}
.tb-bar-acts{display:inline-flex;gap:2px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tb-bar-b{background:none;border:0;color:#E8EEF7;font:inherit;font-size:14px;font-weight:600;min-height:40px;padding:0 12px;border-radius:99px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;white-space:nowrap}
.tb-bar-b.danger{color:#FF8A80}
.tb-bar-b:disabled{opacity:.5;cursor:not-allowed}
.tb-bar .tb-menu{background:#1E293B;color:#E8EEF7;border-color:#475569}
.tb-bar .tb-mi:hover,.tb-bar .tb-mi:focus-visible{background:#334155}
@media (max-width:520px){ .tb-bar-n{flex:1 1 calc(100% - 52px)} .tb-bar-acts{flex:1 1 100%;justify-content:space-between} }
@media (max-width:699px){
  .tb-fpanel{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;border-radius:20px 20px 0 0;z-index:70;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 40px rgb(15 23 42 / .3)}
}
@media (pointer:coarse){
  .tb-tab,.tb-sort,.tb-fbtn,.tb-chip,.tb-chip-clear,.tb-bar-b,.tb-bar-x{min-height:44px}
  .tb-more{width:44px;height:44px}
  .tb-bar-x{width:44px}
  .tb-ck{min-width:44px;min-height:44px}
  .tb-mi{min-height:44px}
}
@media (prefers-reduced-motion:reduce){ table.t.tb tbody tr{transition:none} }
.tb-strip i:nth-child(4){background:#FFFFFF}
.tb-tabs,.tb-box{position:relative}   /* so the hidden helper words inside them are clipped with the box, not placed past the edge of the page */
@media (min-width:700px){ table.t.tb.tight:not(.wrapall) td.clip{min-width:110px} }
table.t th.tb-sel,table.t td.tb-sel{width:36px;min-width:36px;padding-left:4px}
.tb-sep{display:inline-block;width:0;overflow:hidden;white-space:pre;vertical-align:bottom}   /* the " · " between a tab's name and its count: not drawn, but read out and copied */
.tb-sort{position:relative}
.tb-sort:not(.on):hover::after,.tb-sort:not(.on):focus-visible::after{content:"\2195";position:absolute;right:-14px;top:50%;margin-top:-8px;font-size:12px;line-height:16px;opacity:.55}
@media (min-width:700px){ table.t.tb.tight.wrapall td.clip{min-width:88px} }
.tb-thumb{width:40px;height:40px;border-radius:8px;object-fit:cover;flex:none;background:var(--sunk)}
span.tb-thumb{display:inline-block}
@media (max-width:1099px){ .tb-wrap{padding-bottom:64px} }   /* room under the last row so the round Ask button never sits on its ⋯ */
@media (pointer:coarse){ .tb-sort{min-width:44px;padding-inline:4px} }

/* TB-2: while the selection bar shows, the Ask B+B button sits above it and the last row stays reachable */
body.tb-has-bar .ask-fab:not(.on):not(.dragging){top:auto !important;bottom:calc(var(--nav-h) + 14px + var(--tb-bar-h,56px) + 12px + env(safe-area-inset-bottom,0px)) !important}
body.tb-has-bar .tb-wrap{padding-bottom:calc(var(--tb-bar-h,56px) + 28px)}

/* TB-9: the Cards | Table switch is a small pill, never a full-width bar */
#pr-layout,#ob-layout{width:fit-content;max-width:100%;justify-self:start;align-self:flex-start}

/* TB-10: a row with no ⋯ keeps the column aligned with a blank of the same size */
.tb-more-ph{display:inline-block;width:32px;height:32px;flex:none}
@media (pointer:coarse){ .tb-more-ph{width:44px;height:44px} }
/* TB-10: the name button in Documentation lines up with its column title */
table.t.tb .sc-person{padding-inline-start:0;justify-content:flex-start;text-align:left}
/* TB-6: the business name column keeps room and never breaks inside a word */
#ab-list td.clip:nth-child(2){min-width:130px}

/* TSG-1: on phones and tablets the actions column stays in view (sticky at the right edge) */
.tb-ghost{visibility:hidden;pointer-events:none}
@media (max-width:1099px){
  table.t.tb th.tb-act-h,table.t.tb td.tb-act{position:sticky;right:0;z-index:2}
  table.t.tb th.tb-act-h{background:var(--sunk);z-index:3}
  table.t.tb tbody td.tb-act{background:var(--surface);box-shadow:-10px 0 10px -10px rgb(15 23 42 / .28)}
  table.t.tb tbody tr:hover td.tb-act{background:var(--sunk)}
  table.t.tb tbody tr.tb-on td.tb-act{background:var(--brand-soft)}
  table.t.tb td.tb-act:has(.tb-menu){z-index:80}   /* the open menu (and its scrim) must sit above the page, not inside the sticky cell */
}
/* TSG-5: the Orders table in the business overview drawer fits without sideways scrolling */
#bo-orders td.clip{min-width:72px}
#bo-orders td,#bo-orders th{padding-inline:6px}
#bo-orders .pill{white-space:normal;max-width:130px}
#bo-orders td:not(.tb-r){white-space:normal}
#bo-orders{min-width:0}

/* TB-12: below 1100 px the one-item Delete is icon-only, and Users keeps a readable Name and Role */
@media (max-width:1099px){
  .tb-acts .tb-lbl{display:none}
  #us-list td.clip:nth-child(2){min-width:150px}
  #us-list td:nth-child(5) select{min-width:132px}
}

/* every row action is in the ⋯ menu: the actions column is one narrow sticky cell */
table.t th.tb-act-h,table.t td.tb-act{width:1%;min-width:44px;padding-inline:4px;text-align:center}
.tb-acts{justify-content:center}
.tb-more.attn{position:relative;color:var(--ink)}
.tb-more.attn::after{content:"";position:absolute;top:3px;right:3px;width:9px;height:9px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 2px var(--surface)}
/* long text: one line with an ellipsis on phones, two lines on wider screens; the full text is in the popover */
@media (max-width:599px){ table.t.tb td.clip .cl{-webkit-line-clamp:1;line-clamp:1} table.t.tb td.clip .btn.cl{max-height:none} }
table.t.tb td.clip .cl:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
@media (pointer:coarse){ .tb-box td.clip .cl{-webkit-touch-callout:none} }
.tb-pop{position:fixed;z-index:90;max-width:min(320px,calc(100vw - 16px));padding:8px 12px;border-radius:10px;background:#0F172A;color:#E8EEF7;border:1px solid #334155;box-shadow:0 10px 30px rgb(15 23 42 / .35);font-size:13.5px;line-height:1.4;overflow-wrap:anywhere;pointer-events:none}
:root[data-theme="dark"] .tb-pop{background:#020817;border-color:#475569}
/* TB-16: the name button in the Store Creators lists shows its full first letter and up to two lines (one on phones) */
table.t.tb td.clip .btn.sc-person{display:-webkit-box;-webkit-box-orient:vertical;width:100%;min-width:112px;height:auto;min-height:32px;max-height:none;padding:3px 6px;border-block:0;text-align:left;line-height:1.35;overflow:hidden}


/* =====================================================================================================================
   Phase 0 (October 2026): messages, form errors, sheets and confirm, error pages, success screen, loading and empty
   states, and the shared card list / filter / sort / more sheets (used from Phase 1). Navy toast, a separate error red.
   ===================================================================================================================== */
/* ---------- messages (toast) ---------- */
.toast{position:fixed;left:0;right:0;margin-inline:auto;width:min(480px,calc(100% - 32px));bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom,0px));z-index:75;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.toast.at-top{bottom:auto;top:calc(12px + env(safe-area-inset-top,0px));flex-direction:column-reverse}
.tst{pointer-events:auto;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;background:#0F172A;color:#fff;border:1px solid #334155;border-radius:14px;padding:4px 4px 4px 12px;min-height:48px;font-size:14px;line-height:1.35;box-shadow:0 10px 30px rgb(15 23 42 / .35),0 0 0 1px rgb(255 255 255 / .06)}
:root[data-theme="dark"] .tst{border-color:#64748B;box-shadow:0 10px 30px rgb(0 0 0 / .6),0 0 0 1px #64748B}
@media (prefers-reduced-motion:no-preference){ .tst{animation:tst-in .18s ease-out} }
@keyframes tst-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tst-ic{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:none;color:#0F172A;background:#2BD47D}
.tst-k-problem .tst-ic{background:var(--err-icon)}
.tst-k-info .tst-ic{background:#FFC93C}
.tst-tx{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;padding-block:6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}   /* QA batch 2: a bar is compact: at most two lines of words (three for a problem or a note, which stay until closed), the button on the same line */
.tst-k-problem .tst-tx,.tst-k-info .tst-tx{-webkit-line-clamp:3}
.tst-w{display:inline;margin-inline-end:8px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--err-icon)}
.tst-k-info .tst-w{color:#FFC93C}
.tst-acts{display:flex;flex-wrap:nowrap;gap:4px;align-items:center;flex:none;max-width:44%;margin-inline-start:0}
.tst-btn{min-height:44px;min-width:44px;padding:0 10px;white-space:normal;line-height:1.2;text-align:center;border:0;border-radius:99px;background:none;font:inherit;font-weight:700;font-size:14px;cursor:pointer;color:#FFC93C}
.tst-undo{color:#2BD47D}
.tst-btn:hover{background:rgb(255 255 255 / .1)}
.tst-btn:focus-visible,.tst-x:focus-visible{outline:2px solid #fff;outline-offset:1px}
.tst-x{order:2;width:44px;height:44px;margin:0;border:0;border-radius:50%;background:none;color:#fff;display:grid;place-items:center;flex:none;cursor:pointer}
.tst-x:hover{background:rgb(255 255 255 / .1)}
/* Retry and View under the words when there is a close button */
.tst-k-problem .tst-acts,.tst-k-info .tst-acts{order:1}

/* ---------- form errors ---------- */
.fe-summary{border:1px solid var(--err);background:var(--err-soft);color:var(--ink);border-radius:var(--r);padding:12px 14px;display:grid;gap:6px;max-height:min(40vh,260px);overflow:auto;scroll-margin-top:calc(var(--bar-h) + 12px)}
.fe-summary{scroll-margin-top:calc(var(--bar-h) + env(safe-area-inset-top,0px) + 12px)}   /* Mobile UX hotfix (#8): the title bar is taller by the notch on an iPhone; never behind it */
.fe-summary h4{margin:0;font-size:15px;font-weight:700;color:var(--err);display:flex;gap:8px;align-items:center}
.fe-summary ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.fe-item{display:flex;gap:8px;align-items:flex-start;width:100%;min-height:44px;padding:6px 4px;background:none;border:0;border-radius:8px;text-align:left;color:var(--ink);font:inherit;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.fe-item:hover{background:rgb(180 35 24 / .08)}
.fe-more{font-size:13px;color:var(--muted);padding-inline:4px}
.fe-msg{display:flex;gap:6px;align-items:flex-start;color:var(--err);font-size:13.5px;line-height:1.45;font-weight:500;overflow-wrap:anywhere;min-width:0}
.fe-msg svg{flex:none;margin-top:2px}
.i[aria-invalid="true"],.fe-bad{border-color:var(--err);box-shadow:0 0 0 1px var(--err)}
.i[aria-invalid="true"]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--err) 28%,transparent)}
.err{color:var(--err);font-size:14px;overflow-wrap:anywhere}

/* ---------- sheets and confirm ---------- */
.bs-foot{position:sticky;bottom:0;z-index:2;background:var(--surface);border-top:1px solid var(--line);padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px))}
.modal.bsheet{padding-bottom:0}
.cf .modal-body{display:grid;gap:10px;font-size:15px;line-height:1.5}
.cf .modal-body p{overflow-wrap:anywhere}
.cf-item{font-size:16px}
.cf-restore{color:var(--muted);font-size:14px}
.cf-irrev{color:var(--err)}
.cf-btns{display:flex;flex-direction:row-reverse;gap:8px;justify-content:flex-start;flex-wrap:wrap}
.cf-btns .btn{min-height:48px}
@media (max-width:599px){ .cf-btns{flex-direction:column} .cf-btns .btn{width:100%} }
.spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;display:inline-block;flex:none}
@media (prefers-reduced-motion:no-preference){ .spin{animation:spin .7s linear infinite} }
@keyframes spin{to{transform:rotate(360deg)}}
.fe-wrap{display:grid;gap:5px;min-width:0}
.fe-wrap:has(.fe-msg) .i,.fe-wrap:has(.fe-msg) .gplace,.fe-wrap:has(.fe-msg) .choice{border-color:var(--err)}
.fe-wrap:has(.fe-msg) .choice{outline:1px solid var(--err);outline-offset:2px;border-radius:12px}

/* ---------- error pages and the offline banner ---------- */
.errpage{display:grid;justify-items:center;text-align:center;gap:12px;padding:40px 16px 32px;max-width:520px;margin:0 auto}
.errpage.standalone{min-height:100dvh;align-content:center}
.errpage:focus,.errpage h2:focus{outline:none}
.err-ic{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:var(--err-soft);color:var(--err)}
.errpage h2{font-size:24px;overflow-wrap:anywhere}
.err-tx{color:var(--muted);max-width:42ch;overflow-wrap:anywhere}
.err-code{margin:0}
.err-btns{display:grid;gap:10px;width:100%;max-width:340px;margin-top:8px}
.err-btns .btn{width:100%;min-height:48px;text-align:center}
.off-banner{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;background:var(--warn-soft);color:var(--ink);border:1px solid var(--line-2);border-radius:var(--r);padding:8px 8px 8px 14px;margin-bottom:12px;font-size:14px}
.off-tx{min-width:0;overflow-wrap:anywhere}

/* ---------- success screen ---------- */
.okscreen{display:grid;justify-items:center;text-align:center;gap:14px;max-width:520px;margin:0 auto;padding:28px 0 12px}
.okscreen h2{font-size:26px;overflow-wrap:anywhere}
.okscreen h2:focus{outline:none}
.ok-tick{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:var(--on-brand)}
.ok-sum{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:grid;gap:10px;text-align:center;justify-items:center;overflow-wrap:anywhere;min-width:0}
.ok-sum p{max-width:44ch}
.okscreen>.btn.wa{width:100%;max-width:340px}
.ok-btns{display:grid;gap:8px;width:100%;max-width:340px}
.ok-btns .btn{width:100%}

/* ---------- loading, empty and no-results states ---------- */
.skel-list{display:grid;gap:10px}
.skel-card{display:flex;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px}
.skel{display:block;background:var(--line);border-radius:8px}
:root[data-theme="dark"] .skel{background:#334155}
.skel-av{width:40px;height:40px;border-radius:50%;flex:none}
.skel-tx{display:grid;gap:8px;flex:1;min-width:0}
.skel-l1{height:14px;width:60%} .skel-l2{height:12px;width:85%} .skel-l3{height:12px;width:40%}
@media (prefers-reduced-motion:no-preference){ .skel{animation:skel 1.4s ease-in-out infinite} }
@keyframes skel{0%,100%{opacity:1}50%{opacity:.5}}
.nores{display:grid;justify-items:center;text-align:center;gap:8px;padding:32px 16px;border:1px dashed var(--line-2);border-radius:20px;background:var(--surface)}
.nores h3{overflow-wrap:anywhere}
.nr-ic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--sunk);color:var(--muted)}
.lm{display:grid;justify-items:center;gap:8px;padding:8px 0}
.lm-count{text-align:center;margin:0}
.inerr,.slow{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;justify-content:space-between;border:1px solid var(--err);background:var(--err-soft);color:var(--ink);border-radius:var(--r);padding:10px 12px;font-size:14px}
.inerr-tx{display:flex;gap:8px;align-items:flex-start;min-width:0;overflow-wrap:anywhere}
.inerr-tx svg{color:var(--err);flex:none;margin-top:2px}
.slow{border-color:var(--line-2);background:var(--sunk)}
.plain-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sg h3{font-size:16px}
.sg-demo{border:1px dashed var(--line-2);border-radius:var(--r);padding:8px}

/* ---------- card list ---------- */
.cl-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;grid-template-columns:minmax(0,1fr)}
@media (min-width:600px){ .cl-list{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr))} }   /* two columns only when each card is at least 330 px, beside the rail or not (P2-T-077) */
.cl-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;min-width:0}
.cl-body{display:grid;gap:3px;min-width:0}
.cl-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere;line-height:1.35;font-size:15px}
.cl-email{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
.cl-acts{grid-column:1 / -1;display:flex;gap:8px;justify-content:flex-end;margin-top:4px}
.cl-call,.cl-more{min-height:44px;min-width:44px}
.cl-call{flex:1 1 auto;max-width:200px}
.cl-more{padding-inline:10px}

/* ---------- filter sheet, sort sheet, more sheet ---------- */
.fs-group{border:0;margin:0 0 14px;padding:0;display:grid;gap:8px;min-width:0}
.fs-group legend{font-weight:600;font-size:14px;padding:0;margin-bottom:6px}
.fs-chips{display:flex;flex-wrap:wrap;gap:8px}
.fs-chip{min-height:44px;padding:0 16px;border-radius:99px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font:inherit;font-size:14px;overflow-wrap:anywhere}
.fs-chip.on{background:var(--ink);color:var(--surface);border-color:var(--ink);font-weight:600}
.fs-toggle{display:flex;gap:10px;align-items:center;min-height:44px}
.fs-btns{display:flex;gap:8px;flex-wrap:wrap}
.fs-btns .btn{flex:1 1 140px;min-height:48px}
.fs-applied{display:flex;flex-wrap:wrap;gap:8px}
.fs-applied .chip{display:inline-flex;align-items:center;gap:2px;border:1px solid var(--line-2);background:var(--sunk);border-radius:99px;padding:0 4px 0 12px;min-height:36px;font-size:13.5px;max-width:100%}
.chip-x{width:36px;height:36px;border:0;background:none;color:var(--ink);border-radius:50%;font-size:14px;cursor:pointer}
@media (pointer:coarse){ .chip-x{width:44px;height:44px} }
.ss-list{display:grid;gap:4px}
.ss-opt{display:flex;gap:12px;align-items:center;min-height:48px;padding:0 10px;border-radius:12px;cursor:pointer}
.ss-opt.on{background:var(--brand-soft);font-weight:600}
.ss-opt input{width:20px;height:20px;accent-color:var(--brand)}
.ss-done{width:100%}
.ms-head{margin:-6px 0 8px;overflow-wrap:anywhere}
.ms-list{display:grid;gap:2px}
.ms-row{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;padding:0 10px;border:0;border-radius:12px;background:none;color:var(--ink);font:inherit;font-size:16px;text-align:left;text-decoration:none;cursor:pointer}
.ms-row:hover,.ms-row:focus-visible{background:var(--sunk)}
.ms-delete{color:var(--err);margin-top:6px;border-top:1px solid var(--line);border-radius:0 0 12px 12px}

/* Phase 0: the first-run help bubble never blocks the buttons under it (it lets taps through; only "Got it" takes them) */
.ask-hint{pointer-events:none}
.ask-hint .btn{pointer-events:auto;min-height:44px}

/* Phase 0: room at the end of the page while a message is showing, so no button is stuck under it */
body.tst-on{padding-bottom:calc(var(--tst-h,0px) + 16px)}
/* Phase 0: the deals strip scrolls inside its own box and never widens the page */
.mk-hs{min-width:0;max-width:100%;overscroll-behavior-x:contain}
.boot.boot-skel{padding:8px 0;min-height:120px;text-align:left}

/* Phase 0: labels under an icon (shop categories, my businesses, share options, steps, tiles) stay inside their tile:
   at most 2 balanced lines, broken or hyphenated if a long word needs it, a little more line height for Sinhala and Tamil,
   and slightly smaller text only on the narrowest phones. Nothing runs under the next tile. */
.mk-cat,.biz-chip,.sh-opt,.sc-steps li,.tile,.tile-row>*{min-width:0}
.mk-cat>span:last-child,.biz-chip>span:last-child,.sh-opt>span:last-child,.sc-steps li>span:last-child,.tile .tl,.tile .ts{
  display:block;max-width:100%;min-width:0;overflow-wrap:anywhere;word-break:normal;hyphens:auto;text-wrap:balance}
:root[data-lang="si"] .mk-cat,:root[data-lang="ta"] .mk-cat,
:root[data-lang="si"] .biz-chip,:root[data-lang="ta"] .biz-chip,
:root[data-lang="si"] .sh-opt,:root[data-lang="ta"] .sh-opt,
:root[data-lang="si"] .sc-steps li,:root[data-lang="ta"] .sc-steps li{line-height:1.5}
@media (max-width:379px){
  .mk-cat{font-size:11px}
  .mk-cat>span:last-child,.biz-chip>span:last-child,.sh-opt>span:last-child{font-size:.92em}
}
@media (max-width:600px){
  :root[data-lang="si"] .mk-cats,:root[data-lang="ta"] .mk-cats{grid-template-columns:repeat(4,minmax(0,1fr))}
  :root[data-lang="si"] .mk-cat,:root[data-lang="ta"] .mk-cat{font-size:11.5px}
}
@media (max-width:600px){ :root[data-lang="ta"] .mk-cat>span:last-child{letter-spacing:-.025em;font-size:.94em} }
@media (max-width:379px){ :root[data-lang="si"] .mk-cats,:root[data-lang="ta"] .mk-cats{grid-template-columns:repeat(3,minmax(0,1fr))} }

/* ===== Redesign Phase 1: the super user's lists as cards (phone, tablet, list and pane), see rl.js ===== */
.rl{display:block;min-width:0}
.rl-list{display:flex;flex-direction:column;gap:12px;min-width:0;align-content:flex-start}
.rl-list>*{min-width:0}
.rl .cl-list{gap:12px}
.rl .cl-card{position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.rl .cl-card:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.rl .cl-card.noav{grid-template-columns:minmax(0,1fr)}
.rl .cl-list.busy{pointer-events:none}   /* a double tap on Load more must not open the card that slides under the finger */
.rl .cl-card.picked{border-color:var(--brand);background:var(--brand-soft);box-shadow:0 0 0 2px var(--brand) inset}
.rl .cl-card.on{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink) inset}
.cl-tick{position:absolute;top:10px;right:10px;width:24px;height:24px;border-radius:50%;border:2px solid var(--line-2);background:var(--surface);display:grid;place-items:center;color:var(--on-brand)}
.cl-tick.on{background:var(--brand);border-color:var(--brand)}
.rl .cl-body{padding-right:2px}
.cl-line{color:var(--muted);font-size:13px;overflow-wrap:anywhere;line-height:1.4}
.cl-thumb img,.cl-thumb .rthumb{width:56px;height:56px;border-radius:10px;object-fit:cover}
.cl-thumb .rthumb{display:grid;place-items:center}
.cl-pending{color:var(--warn);font-weight:600}
.rl .cl-call,.rl .cl-more,.rl .cl-main{min-height:48px !important;min-width:48px}      /* !important: the New look's .btn.sm (44 px) is more specific */
.rl .cl-main{flex:1 1 auto;max-width:200px}
.rl .cl-call.wa{background:var(--wa);color:#0F172A;border-color:transparent}
.cl-calltx{overflow-wrap:anywhere}
@media (max-width:339px){ .rl .cl-call .cl-calltx{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)} .rl .cl-call{flex:0 0 auto;padding-inline:12px} .rl .cl-main{padding-inline:12px} }   /* P1-SUG-4: a main button keeps its word (Review) even at 320 px; only Call and WhatsApp shrink to an icon */
.rl-tools{display:grid;gap:8px}
.rl-search{position:relative}
.rl-search>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.rl-q{width:100%;padding-left:38px;padding-right:44px;border-radius:99px;min-height:48px}
.rl-q::-webkit-search-cancel-button,.rl-q::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}   /* P1-BUG-11: one clear button only */
.rl-q-x{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:none;color:var(--muted);display:grid;place-items:center;border-radius:50%;cursor:pointer}
.rl-btns{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px;align-items:center}   /* a grid, so the buttons make even rows (2 across on a phone) and never one stray button */
.rl-btns .btn{min-height:44px;width:100%;justify-content:center}
.rl-btns .btn.on{border-color:var(--ink);font-weight:600}
.rl-badge{min-width:20px;height:20px;border-radius:99px;background:var(--ink);color:var(--surface);font-size:12px;font-weight:700;display:inline-grid;place-items:center;padding:0 6px}
.rl-sort span{max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rl-chips{position:sticky;top:var(--bar-h);z-index:6;background:var(--bg);padding:6px 0}
.rl-loading{display:grid;gap:12px}
.rl-seltop{position:sticky;top:var(--bar-h);z-index:7;display:flex;align-items:center;gap:8px;background:#0F172A;color:#E8EEF7;border:1px solid #334155;border-radius:14px;padding:6px 8px}
.rl-selx{width:44px;height:44px;border:0;background:none;color:#E8EEF7;display:grid;place-items:center;border-radius:50%;cursor:pointer;flex:none}
.rl-seltext{flex:1;min-width:0;font-size:15px}
.rl-selall{border:0;background:rgb(255 255 255 / .14);color:#E8EEF7;font:inherit;font-weight:600;font-size:14px;min-height:44px;padding:0 14px;border-radius:99px;cursor:pointer}
.rl-selbar{position:fixed;z-index:47;left:12px;right:12px;margin-inline:auto;max-width:780px;bottom:calc(var(--nav-h) + 14px + env(safe-area-inset-bottom,0px));background:#0F172A;color:#E8EEF7;border:1px solid #334155;border-radius:16px;padding:8px 6px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;box-shadow:0 14px 40px rgb(15 23 42 / .38)}
:root[data-theme="dark"] .rl-selbar{background:#020817;border-color:#475569;box-shadow:0 14px 40px rgb(0 0 0 / .6)}
.rl-selbar .tb-strip{position:absolute;left:14px;right:14px;top:-1px}
.rl-sb{border:0;background:none;color:#E8EEF7;font:inherit;font-size:12.5px;font-weight:600;min-height:52px;border-radius:12px;display:grid;justify-items:center;align-content:center;gap:2px;padding:4px 2px;cursor:pointer;min-width:0}
.rl-sb span{display:block;max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.25}
.rl-sb:hover,.rl-sb:focus-visible{background:rgb(255 255 255 / .12)}
.rl.sel{padding-bottom:calc(var(--tb-bar-h,64px) + 28px)}
/* the pane: list (380 px) and detail side by side from 1024 px to 1279 px */
.rl[data-layout="pane"]{display:grid;grid-template-columns:380px minmax(0,1fr);margin-inline:-24px;align-items:start}
.rl[data-layout="pane"] .rl-list{padding-inline:24px 16px;width:380px}
.rl[data-layout="pane"] .cl-list{grid-template-columns:minmax(0,1fr)}
.rl-pane{position:sticky;top:calc(var(--bar-h) + 8px);max-height:calc(100dvh - var(--bar-h) - 16px);overflow:auto;border-left:1px solid var(--line);background:var(--surface);min-width:0}
.dp-empty{margin:0;padding:48px 24px;text-align:center}
/* the detail: a full page under 1024 px, the pane from 1024 px */
#dp{position:fixed;inset:0;z-index:40;background:var(--bg);display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain}
.dp-bar{display:flex;align-items:center;gap:8px;padding:8px 8px 8px 8px;background:var(--surface);border-bottom:1px solid var(--line);flex:none}
#dp .dp-bar{padding-top:calc(8px + env(safe-area-inset-top,0px))}
.dp-title{flex:1;min-width:0;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dp-bar-r{display:inline-flex;gap:4px;flex:none}
.dp-back,.dp-more,.dp-x{min-height:48px}
.dp-more,.dp-x{min-width:48px}
.dp-scroll{display:grid;gap:16px;align-content:start;padding:16px 16px 40px;min-width:0}
#dp .dp-scroll{flex:1;overflow:auto;width:100%;max-width:860px;margin-inline:auto;padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))}
.dp-head{display:flex;gap:14px;align-items:center;min-width:0}
.dp-id{display:grid;gap:5px;min-width:0}
.dp-name{font-size:19px;line-height:1.3;overflow-wrap:anywhere}
.dp-pills{display:flex;flex-wrap:wrap;gap:6px}
.dp-sub{overflow-wrap:anywhere}
.dp-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px}
.dp-tile{display:grid;justify-items:center;align-content:center;gap:4px;min-height:64px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);padding:10px 6px;font:inherit;font-size:13.5px;text-decoration:none;cursor:pointer;overflow-wrap:anywhere;text-align:center}
.dp-tile.dp-wa{color:var(--wa-ink,var(--ink))}
.dp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dp-stat{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:10px 8px;text-align:center;display:grid;gap:2px;min-width:0}
.dp-stat b{font-size:20px}
.dp-stat span{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.dp-stat-skel{border-radius:14px;min-height:62px;background:var(--line)}
:root[data-theme="dark"] .dp-stat-skel{background:#334155}
.dp-det{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:6px 14px;gap:0}
.dp-det>div{padding:9px 0;border-bottom:1px solid var(--line);display:grid;gap:2px}
.dp-det>div:last-child{border-bottom:0}
.dp-det dd{overflow-wrap:anywhere}
.dp-body{min-width:0}   /* the page scrolls as one; only a wide table inside gets its own sideways box (P1-BUG-2) */
.dp-body .tw{max-width:100%;overflow-x:auto}
.rl-pane .dp-bar{position:sticky;top:0;z-index:2}
.rl-pane .dp-scroll{padding:16px 20px 32px}
/* Lowest rated: short cards under 1280 px (nothing to open) */
.rl-lowrated{list-style:none;margin:0;padding:0;display:grid;gap:8px}
@media (min-width:600px){ .rl-lowrated{grid-template-columns:repeat(2,minmax(0,1fr))} }
.rl-lowrated li{display:flex;justify-content:space-between;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;min-width:0}
.rl-lowrated b{overflow-wrap:anywhere}
.rl-sumtiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fs-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fs-dates input{width:100%;min-width:0}
:root[data-lang="si"] .rl .cl-card,:root[data-lang="ta"] .rl .cl-card,:root[data-lang="si"] #dp,:root[data-lang="ta"] #dp,:root[data-lang="si"] .rl-pane,:root[data-lang="ta"] .rl-pane{line-height:1.5}
@media (prefers-reduced-motion:reduce){ .rl-selbar,.dp,#dp{animation:none!important;transition:none!important} }

/* ---------- Overflow sweep (October 2026, QA report OV-1 to OV-21): rows and labels may shrink and wrap, they no longer push the page wider than the phone ---------- */
.card .l1{min-width:0}                                     /* OV-5: a long note in a card row wraps */
.card .l1>*{min-width:0}
.card .l1>.l1-main{flex:1 1 0}
.l1-main>span:not(.avatar){flex:1 1 0;min-width:0}
.seg.full{display:grid;width:100%;grid-auto-columns:minmax(0,1fr)}   /* OV-8: "Reply by" options share the width */
.seg.full button{white-space:normal;line-height:1.2;padding-inline:6px;min-width:0;overflow-wrap:anywhere}
.fx-row{flex-wrap:nowrap;min-width:0}                      /* OV-7: currency rows shrink with the card */
.fx-row .i{width:auto!important;min-width:0;flex:1 1 90px}
.fx-row .muted,.fx-row .btn{flex:none}
.kpi b,.tile b{overflow-wrap:break-word;word-break:normal}   /* OV-13: break between words ("LKR" / "3,500"), never in the middle of a number */
@media (max-width:420px){ .kpi b{font-size:21px} .tile b{font-size:23px} .brandmark h1{font-size:15.5px;letter-spacing:-.01em} }   /* OV-14: the app name fits the bar at 360 */
.sc-phone{min-width:0}                                      /* OV-18 */
.tb-mwrap{flex:none}
@media (max-width:700px){ .sc-phone{flex-wrap:wrap} }
.btn{min-width:0;max-width:100%;overflow-wrap:anywhere}     /* OV-15: a long label wraps onto a second line instead of being cut */
.btn,.linkbtn{white-space:normal;text-overflow:clip}
.trk li{min-width:0}                                        /* OV-17 */
.trk li span{overflow-wrap:break-word}
@media (max-width:420px){ .trk li{font-size:11px} .trk li{padding:0} }
body:has(input:focus,textarea:focus) .ask-fab{opacity:0;pointer-events:none}   /* OV-12: the help button steps aside while you type */
@media (max-width:479px){ .cs-bottom{padding:6px 6px 6px 8px;gap:6px} .cs-bottom .btn{min-height:40px} }   /* OV-19 */
@media (min-width:700px){ .chips{flex-wrap:wrap;overflow:visible} }   /* OV-21: the question chips wrap instead of being cut */
.ask-hint .btn{min-height:40px;padding-inline:10px}          /* OV-20: "Got it" is easy to tap */
@media (max-width:420px){ .trk li span{font-size:10.5px;letter-spacing:-.01em} }   /* OV-17: "Scheduled" and "Completed" fit their step */
/* Re-test fixes: progress step names may wrap inside their column (long Tamil words), they no longer widen the page */
.sc-steps li{min-width:0;overflow-wrap:break-word}
@media (max-width:640px){ html:not([data-lang="en"]) .sc-steps li{font-size:10.5px;letter-spacing:-.01em;overflow-wrap:anywhere} }
.slab-row .i{min-width:104px}                                 /* OV-7: slab digits stay readable; the row wraps instead of squeezing the box */
.fx-row .i{min-width:84px}
.sc-phone .sc-wa-word{white-space:nowrap}
@media (max-width:640px){ .sc-phone a.sc-wa-icon{white-space:nowrap;flex:none} }   /* N-1: the WhatsApp word stays; the phone cell wraps so the icon and word drop under the number */
@media (max-width:479px){ .cs-miss{font-size:12.5px;line-height:1.25} }   /* OV-19: a smaller sentence; the bar still wraps so the sentence keeps its room */
.top-pill{white-space:normal;max-width:100%;text-align:center;line-height:1.25}   /* the "Top rated" pill wraps rather than being clipped in Tamil/Sinhala */
.chip,.tile{min-width:0;max-width:100%}
.tile>*{overflow-wrap:break-word}
html:not([data-lang="en"]) .trk li span{font-size:10px;letter-spacing:-.02em;line-height:1.2}   /* OV-17: long Sinhala and Tamil step names fit their step; they split inside a word only as a last resort */
html:not([data-lang="en"]) .trk li small{font-size:9.5px}
@media (min-width:700px) and (max-width:1100px){ .trk li span{font-size:10.5px} html:not([data-lang="en"]) .trk li span{font-size:9.5px} }
/* REL-QA-9 (26 Oct 2026): Tamil and Sinhala tracker step names broke inside words ("வைக்கப்பட்ட / து", "திட்டமிடப்பட் / டது") because every
   step had an equal fifth of the width. On screens from 360 px a step is now never narrower than its longest word (the other steps
   share the rest), and words stay whole (measured: the five Tamil names need about 250 px at 10 px, the tracker has about 296 px at
   360). The line between the steps is drawn in two halves (from each step's edge to its circle) so it still joins the circles when the
   steps are not all the same width. Narrower screens (and 150 % text): as before. */
@media (min-width:360px){
  html:is([data-lang="ta"],[data-lang="si"]) .trk{grid-template-columns:none !important;grid-auto-flow:column;grid-auto-columns:minmax(min-content,1fr)}
  html:is([data-lang="ta"],[data-lang="si"]) .trk li span{overflow-wrap:normal;word-break:normal}
  html:is([data-lang="ta"],[data-lang="si"]) .trk li::before{left:0;width:50%}
  html:is([data-lang="ta"],[data-lang="si"]) .trk li::after{content:"";position:absolute;top:11px;right:0;width:50%;height:2px;background:var(--line);z-index:0}
  html:is([data-lang="ta"],[data-lang="si"]) .trk li:last-child::after{display:none}
  html:is([data-lang="ta"],[data-lang="si"]) .trk li:has(+ li:is(.done,.now))::after{background:var(--brand)}
}
html:not([data-lang="en"]) .tile{overflow-wrap:anywhere}
.tile .tl{min-width:0}
.tile .tl>span,.tile .ts{min-width:0;overflow-wrap:anywhere}

/* Redesign P1 QA round 1 (October 2026) */
/* P1-BUG-6: the invoice lines fit a phone: label left, amount right, nothing wider than the screen */
table.t.inv-t{min-width:0;table-layout:auto}
table.t.inv-t td{white-space:normal;overflow-wrap:anywhere}
table.t.inv-t td.tnum{white-space:nowrap;text-align:right}
/* P1-SUG-3: a card whose only button is the three dots keeps it at the top right, not on a row of its own */
.rl .cl-card.only-more{grid-template-columns:auto minmax(0,1fr) auto}
.rl .cl-card.only-more.noav{grid-template-columns:minmax(0,1fr) auto}
.rl .cl-card.only-more .cl-acts{grid-column:-2;grid-row:1;margin:-4px 0 0;align-self:start}
.rl .cl-card.only-more .cl-body{padding-right:2px}
/* P1-SUG-7: room under the list for the Ask B+B button, and a lighter Call pill on wide phones */
@media (max-width:1279px){ .rl-list{padding-bottom:84px} }
@media (min-width:420px) and (max-width:599px){ .rl .cl-call{flex:0 0 auto;padding-inline:18px} }
.sc-helpfold{margin:0;font-size:13px}
.sc-helpfold summary{cursor:pointer;color:var(--muted);min-height:32px;display:flex;align-items:center}
/* Phase 0 QA: on the success screen the main button is the green one; WhatsApp is the second choice */
.ok-btns .btn.wa{background:var(--surface);color:var(--ink);border:1.5px solid var(--line-2)}
.ok-btns .btn.wa:hover{border-color:var(--green)}

/* Phase 0 QA: the first-run help bubble stays away from error pages and the Order placed screen */
body:has(#err-page) .ask-hint,body:has(#ok-screen) .ask-hint{display:none}
.tst-many{background:none;border:0;color:inherit;font:inherit;font-weight:600;text-decoration:underline;padding:0;min-height:44px;cursor:pointer}

/* Phase 0 QA: "N things to fix" for forms that used the browser's own bubble (autoform.js): the box sits at the top of the form */
.afe-summary{margin-bottom:12px}
.afe-msg{margin-top:4px}
/* P1-BUG-15: a sheet never grows past the screen because of a long option in a drop-down (Sinhala role names) */
.modal.bsheet{grid-template-columns:minmax(0,1fr)}
.modal.bsheet select.i,.modal.rs select.i{width:100%;max-width:100%;min-width:0;text-overflow:ellipsis}
.modal.bsheet .modal-head h3{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}   /* a long translated sheet title wraps instead of being cut */
/* Redesign P1 QA round 2 */
/* P1-SUG-9: the round Ask B+B button never covers the end of a detail page on a phone or tablet */
#dp .dp-scroll,.rl-pane .dp-scroll{padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
/* P1-SUG-10: invoice detail: the status shows once (in the page head), and the buttons are full-size touch targets on a tablet */
.dp-scroll #bill-inv .inv-pill{display:none}
@media (max-width:1279px){ #bill-inv .btn.sm{min-height:44px} }


/* ===== Phase 2 nav shell (Developer A) =====
   <html data-nav="bar|rail|top">; --nav-h = measured bar height (0 on rail and top); --rail-w = rail width (0 elsewhere); --nav-fs = label size.
   Bar and rail share one item design (icon in a 56 x 32 pill, label under it). Only the menu that shows is in the page. */
:root{--nav-fs:12px;--rail-w:0px;--focus:#0F172A}
:root[data-theme="dark"]{--focus:#2BD47D}
html:not([data-lang="en"]){--nav-fs:13px}
/* skip link: first stop for a keyboard, hidden until it has focus */
.skip:not(:focus){position:fixed;left:16px;top:-120px;height:44px;padding:0 18px;white-space:nowrap}
.skip:focus{position:fixed;left:16px;top:8px;z-index:1000;height:44px;padding:0 18px;border-radius:22px;border:0;background:#FFFFFF;color:#0F172A;font:700 15px/1 var(--f-body);outline:2px solid #2BD47D;outline-offset:2px}
main:focus{outline:none}
/* bottom bar (phones, and phones held sideways) */
.botnav{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);padding:0 max(4px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(4px,env(safe-area-inset-left,0px))}
.botnav-in{max-width:600px;margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.botnav button,.sidenav button{position:relative;background:none;border:0;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;min-height:68px;min-width:0;border-radius:14px;font:500 var(--nav-fs,12px)/1.35 var(--f-body);-webkit-tap-highlight-color:transparent}
.botnav .ind,.sidenav .ind{position:relative;flex:none;width:56px;height:32px;border-radius:16px;display:grid;place-items:center;transition:background .15s}
.botnav svg,.sidenav svg{width:24px;height:24px}
.botnav .lb,.sidenav .lb{display:block;max-width:100%;width:100%;text-align:center;white-space:normal;word-break:keep-all;overflow-wrap:normal;hyphens:none;font-size:var(--nav-fs,12px);line-height:1.35}
html:not([data-lang="en"]) .botnav .lb,html:not([data-lang="en"]) .sidenav .lb{line-height:1.4}
.botnav .lb.lb-clamp,.sidenav .lb.lb-clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}   /* last resort: a word too long for its column wraps inside it, never over the next one (SV2-QA-23) */
@media (max-width:400px){ html[data-lang="en"] .botnav .lb{font-size:min(var(--nav-fs,12px),11px);letter-spacing:-.01em} }   /* QA ios-ux-1: on a 375 phone five words (Deliveries, Businesses, Payments, Messages) keep a clear gap */
.botnav.lb-tight{padding-left:max(1px,env(safe-area-inset-left,0px));padding-right:max(1px,env(safe-area-inset-right,0px))}   /* set by fitLabels only when a one-word name is too wide */
.botnav.lb-tight button{padding-left:0;padding-right:0}
.botnav.lb-grow .botnav-in{grid-template-columns:repeat(5,minmax(min-content,1fr))}   /* P2-QA-1: set by fitLabels only when a one-word name still doesn't fit; its column grows, the others share the rest */
.sidenav button.lb-wide{width:72px;margin-left:-4px;margin-right:-4px}   /* P2-QA-5: set by fitLabels on the item of a one-word name that is too wide; the icon stays where it was, the item stays inside the 81 px rail */
.botnav button[aria-current="page"],.sidenav button[aria-current="page"]{color:var(--ink)}
.botnav button[aria-current="page"] .lb,.sidenav button[aria-current="page"] .lb{font-weight:700}
.botnav button[aria-current="page"] .ind,.sidenav button[aria-current="page"] .ind{background:var(--brand);color:var(--on-brand)}
.botnav button[aria-expanded="true"]:not([aria-current="page"]) .ind,.sidenav button[aria-expanded="true"]:not([aria-current="page"]) .ind{background:var(--brand-soft)}
.botnav button:active .ind,.sidenav button:active .ind{background:var(--brand-soft)}
.botnav button[aria-current="page"]:active .ind,.sidenav button[aria-current="page"]:active .ind{background:#17A863;color:#0F172A}
@media (hover:hover){ .botnav button:hover .ind,.sidenav button:hover .ind{background:var(--brand-soft)} .botnav button[aria-current="page"]:hover .ind,.sidenav button[aria-current="page"]:hover .ind{background:var(--brand)} }
.botnav button:focus-visible,.sidenav button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;border-radius:14px}
/* badges and the More dot */
.botnav .ind .nbadge,.sidenav .ind .nbadge{position:absolute;top:-3px;left:31px;margin:0;display:block;min-width:20px;height:18px;padding:0 5px;border:0;border-radius:9px;font:700 11px/18px var(--f-body);text-align:center;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--surface);background:var(--plus);color:var(--on-plus)}
.botnav .ind .nbadge.dot,.sidenav .ind .nbadge.dot{top:2px;left:35px;width:10px;min-width:10px;height:10px;padding:0;border-radius:5px;border:1.5px solid #0F172A;box-shadow:0 0 0 2px var(--surface)}
/* tablet rail (600 to 1023 px wide, and at least about 450 px high) */
.sidenav{position:fixed;z-index:20;left:0;top:calc(var(--bar-h) + env(safe-area-inset-top,0px));bottom:0;width:calc(81px + env(safe-area-inset-left,0px));background:var(--surface);border-right:1px solid var(--line);overflow-y:auto;scrollbar-width:none}
.sidenav::-webkit-scrollbar{display:none}
.sidenav-in{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 0 12px calc(8px + env(safe-area-inset-left,0px))}
.sidenav button{width:64px;min-height:66px;padding:6px 0 8px}
.rail-sep{display:block;width:40px;height:1px;background:var(--line);margin:4px 12px}
@media (max-height:620px){ .sidenav-in{padding-top:6px;padding-bottom:6px;gap:2px} }
html[data-nav="rail"] main{margin-left:var(--rail-w);margin-right:auto}
/* IOS-3: the rail already sits over the left inset, so the page beside it keeps its own left padding */
html[data-nav="rail"] main{padding-left:16px}
@media (min-width:720px){ html[data-nav="rail"] main{padding-left:24px} }
/* top menu (1024 px and up): as many pages as fit, the rest under More; it never scrolls sideways */
.topnav{overflow:hidden;position:relative}
.topnav button{min-height:48px;padding:0;display:inline-flex;align-items:center;background:none!important;color:var(--bar-ink);opacity:.72;border-radius:99px}
.topnav .tl{display:inline-flex;align-items:center;gap:4px;padding:7px 13px;border-radius:99px}
.topnav button:hover{opacity:1}
.topnav button:hover .tl{background:rgb(255 255 255 / .06)}
.topnav button[aria-current="page"]{opacity:1;color:var(--on-brand);font-weight:600}
.topnav button[aria-current="page"] .tl{background:var(--brand)}
.topnav button:focus-visible{outline-offset:-2px}
.topnav .fit-off{position:absolute;left:0;top:0;visibility:hidden;pointer-events:none}
.topnav .nbadge:not(.dot){margin-left:6px}
.appbar-in[data-nonm] .acct span.nm{display:none}
.appbar-in[data-brand="200"] .brandmark h1{max-width:200px}
.appbar-in[data-brand="120"] .brandmark h1{max-width:120px}
.appbar-in[data-tight] .topnav .tl{padding-left:6px!important;padding-right:6px!important}
/* the Menu */
.menu-strip{display:flex;gap:3px;height:4px;margin:0 20px 8px;border-radius:2px;overflow:hidden}
.menu-strip i{flex:1}
.menu-strip i:nth-child(1){background:#2BD47D}.menu-strip i:nth-child(2){background:#FFC93C}.menu-strip i:nth-child(3){background:#FF8FB1}.menu-strip i:nth-child(4){background:#0F172A}
:root[data-theme="dark"] .menu-strip i:nth-child(4){background:#F8FAFC}
.menu-pages button{min-height:52px;padding:0 12px;gap:14px;font-size:16px;line-height:1.35;font-weight:500}
.menu-pages svg{color:var(--muted)}
.menu-pages button[aria-current="page"]{font-weight:700}
.menu-pages button[aria-current="page"] svg{color:var(--brand-text)}
.menu-sep{display:block;height:1px;background:var(--line);margin:6px 12px}
.menu-pages .nbadge{margin-left:auto;min-width:24px;height:22px;padding:0 7px;border-radius:11px;font-size:12px;line-height:22px}
/* a long Menu (8 or more pages in it: the super user and owners): tighter rows, still 46 px to tap, so User manual is on the first screen of a phone (GM-6) */
.menu-pages.compact{gap:2px}
.menu-pages.compact button{min-height:46px}
.menu-pages.compact .menu-sep{margin:4px 12px}
/* 14 Nov batch 7 (GM-6): ten pages or more (the super user) is 2 px tighter per row, still 44 px to tap, so User manual shows on a 390 x 844 phone; the sheet itself scrolls (overflow:auto, 92dvh) so User manual and Sign out are always reachable on small phones */
.menu-pages.tight button{min-height:44px}
.menu-pages.tight .menu-sep{margin:3px 12px}
.modal:has(.menu-pages){overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.modal:focus{outline:none}
@media (prefers-reduced-motion:reduce){ .botnav .ind,.sidenav .ind{transition:none!important} }
body.selecting .botnav{display:none}   /* Select mode on a phone: the selection bar (Developer B) takes the bar's place */

/* ===== Phase 2, Developer C: content that sits next to the tablet rail ===== */
/* The rail takes about 81 px from the page. Cards sit side by side only when each can be 330 px wide (decision 6), so the home boards
   (auto-fit columns of 300 px) use 330 px beside the rail. (The overflow test "tracker labels fit" at 768 caught "Completed" 52 px wide in
   a 50 px step of the order tracker when two boards were squeezed side by side.) */
html[data-nav="rail"] .board-cols{grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr))}
/* ===== Phase 2 bottom stack (Developer B) =====
   Bottom up on a phone: the bottom bar (or the docked selection bar) -> cart button / checkout bar / sticky bars -> messages (toasts) -> Ask B+B.
   Everything uses --nav-h, the bar's MEASURED height (set by the shell: 0 on the rail and the top menu; the bar already includes the phone's safe area).
   --bs-safe is the safe-area gap to add when there is no bar (so a tablet or computer is still clear of the home indicator). Never a fixed 64 px. */
:root{--bs-safe:env(safe-area-inset-bottom,0px)}
html[data-nav="bar"].sel-docked{--bs-safe:0px}   /* the docked selection bar already includes its own safe-area padding */
.toast{bottom:calc(var(--nav-h) + var(--bs-safe) + 12px)}
.cart-fab{bottom:calc(var(--nav-h) + var(--bs-safe) + 14px)}
.mk-bkbar{bottom:calc(var(--nav-h) + var(--bs-safe) + 12px)}
.nudge{bottom:calc(var(--nav-h) + var(--bs-safe) + 10px)}
.cs-bottom{bottom:calc(var(--nav-h) + var(--bs-safe) + 8px)}
.tb-bar,.rl-selbar{bottom:calc(var(--nav-h) + var(--bs-safe) + 14px)}
body.tb-has-bar .ask-fab:not(.on):not(.dragging){bottom:calc(var(--nav-h) + var(--bs-safe) + 14px + var(--tb-bar-h,56px) + 12px) !important}

/* tablet: the left rail is 81 px wide; messages, the checkout bar and the selection bars sit in the content area next to it */
html[data-nav="rail"] .toast{left:calc(81px + env(safe-area-inset-left,0px));width:min(480px,calc(100% - 81px - env(safe-area-inset-left,0px) - 32px))}
html[data-nav="rail"] .mk-bkbar,html[data-nav="rail"] .tb-bar,html[data-nav="rail"] .rl-selbar{left:calc(81px + env(safe-area-inset-left,0px) + 12px)}

/* phone Select mode: the Phase 1 selection bar takes the bottom bar's place (body.selecting hides the bar; --nav-h becomes the selection bar's height) */
html[data-nav="bar"] body.selecting .botnav{display:none}
html[data-nav="bar"].sel-docked{--nav-h:var(--sel-h,64px) !important}
html[data-nav="bar"] .rl-selbar{left:0;right:0;bottom:0;max-width:none;margin-inline:0;border-width:1px 0 0;border-radius:16px 16px 0 0;box-shadow:none;padding:10px 6px calc(8px + env(safe-area-inset-bottom,0px))}
html[data-nav="bar"] .rl-selbar .rl-sb{min-height:56px}
html[data-nav="bar"] body.tb-has-bar.selecting .ask-fab:not(.on):not(.dragging){bottom:calc(var(--nav-h) + 16px) !important}
/* P2-QA-4: while a message shows above a selection bar, Ask B+B moves above the message (--tst-up is set by toasts.js), as it does everywhere else */
html:root body.tb-has-bar.tst-on .ask-fab:not(.on):not(.dragging){bottom:calc(var(--tst-up,0px) + 12px) !important}

/* hiding while typing (phones only: html.typing is set by keyboard.js when a text box has focus and the on-screen keyboard is open).
   Messages stay, above the keyboard. No animation. */
html.typing{--nav-h:0px !important}
html.typing .botnav,html.typing .cart-fab,html.typing .mk-bkbar,html.typing .ask-fab,html.typing .ask-hint,html.typing .rl-selbar{display:none !important}
html.typing body::after{display:none !important}   /* Mobile UX hotfix (#2): the "QA · test data" ribbon too */
/* the fallback for phones that don't report the keyboard: a focused box is scrolled to just above the bar, never under it */
html[data-nav="bar"] input,html[data-nav="bar"] textarea,html[data-nav="bar"] select,html[data-nav="bar"] [contenteditable="true"]{scroll-margin-bottom:calc(var(--nav-h,0px) + var(--bs-safe) + 16px)}
.modal{grid-template-columns:minmax(0,1fr)}   /* a Menu row can never push the pop-up wider than the screen (200 % text) */
html[data-nav="rail"] .cl-list{grid-template-columns:repeat(auto-fill,minmax(min(330px,100%),1fr))}   /* beside the rail: two columns only when each card is at least 330 px */
.modal .seg{width:100%;grid-auto-columns:minmax(0,1fr)}
.modal .seg button{min-width:0;padding-inline:6px;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.modal .who-card .pill{max-width:100%;white-space:normal}
/* beside the rail the order tracker has less room (owner Home at 768 px) */
html[data-nav="rail"] .trk li span{font-size:9.5px;letter-spacing:-.2px}
html[data-nav="rail"][data-lang="ta"] .trk li span,html[data-nav="rail"][data-lang="si"] .trk li span{font-size:9px}

/* P2-QA-7: tap areas inside pages at least 44 x 44 on touch screens; what they look like stays the same (only the invisible tap area grows) */
@media (pointer:coarse){
  .bp-cap .linkbtn{min-width:44px;min-height:44px;text-align:left}                          /* Feed: "more" in a post */
  :root .chip{min-width:44px}                                                                /* Messages and Support: the short "All" filter chip */
  .combo>.i{padding-right:44px}
  .combo-chev{width:44px;height:44px;right:0}                                                /* Settings: a search box's drop-down arrow */
  #sc-notify{padding-block:6px !important}
  #sc-notify>.sc-mod-h{min-height:44px !important}                                           /* Store Creator: "Notify me about new activities" (same panel height: 6 + 44 + 6) */
  .cs .seg button{min-height:44px}                                                           /* Read and agree: NIC / Licence / Passport */
}

/* ===================== Store page re-design (Order flexibility Part A, 22 October 2026; store.js, boards A01 to A16) ===================== */
.market.st{display:grid;gap:16px;min-width:0}
.st-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.st-tile{display:flex;align-items:center;gap:10px;min-height:72px;min-width:0;padding:10px 12px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;font:inherit;text-align:left;cursor:pointer}
.st-tile:hover{border-color:var(--line-2)}
.st-alltile{border-style:dashed;border-color:var(--line-2);background:transparent}
.st-ic{width:40px;height:40px;flex:none;border-radius:12px;display:grid;place-items:center}
.st-tt{display:grid;min-width:0;gap:2px}
.st-tt b{font-size:14px;line-height:1.25;font-weight:600;overflow-wrap:normal;word-break:keep-all;hyphens:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.st-tt span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (min-width:600px){
  .st-tiles{grid-template-columns:repeat(5,minmax(0,1fr))}
  .st-tile{flex-direction:column;align-items:flex-start;min-height:128px;padding:14px}
  .st-alltile{display:none}
}
.st-offbar{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;border:0;border-radius:14px;background:var(--yellow);color:var(--navy);padding:10px 14px;font:inherit;cursor:pointer;text-align:left}
.st-offbar b{flex:1;font-size:15px}
.st-offbar span{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.st-sec .mk-sh h3,.st-group .mk-sh h3{font-size:16px}
.st-hs>*{width:170px}
.st-pc{gap:3px}
.st-pc .mk-thumb{border-radius:0}
.st-nm{min-height:2.6em}
.st-shopnm{font-size:12px}
.st-trust{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:1.3em}
.st-prow{min-height:44px}
.st-prow .mk-add{width:44px;height:44px}
.st-pgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:600px){ .st-pgrid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))} }
.st-list{display:grid;gap:10px}
@media (min-width:768px){ .st-list2{grid-template-columns:repeat(2,minmax(0,1fr))} }
.st-shop{display:flex;align-items:center;gap:10px;min-height:76px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-width:0}
.st-shopbtn{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-align:left;color:inherit;font:inherit;background:none;border:0;padding:0;cursor:pointer}
.st-shopbtn .avatar{border-radius:0}
.st-mid{display:grid;gap:3px;min-width:0;flex:1}
.st-one{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-mid b.st-one{font-size:14px}
.st-st{justify-self:start;font-size:12px}
.st-book{flex:none;min-height:44px;min-width:76px}
.st-head{display:flex;align-items:center;gap:6px;min-width:0}
.st-head h2{font-size:24px;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.st-head .st-search{flex:1}
.st-back{width:44px;height:44px;flex:none}
.st-page{gap:14px}
.st-chips .chip,.st-filters .chip{min-height:44px;padding-inline:16px}
.st-filters .chip:not([aria-pressed="true"]){background:var(--brand-soft);border-color:transparent}
.st-gh{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.st-note{display:flex;gap:10px;align-items:flex-start;background:var(--brand-soft);border-radius:14px;padding:14px;color:var(--ink)}
.st-note>span{display:grid;gap:6px;min-width:0}
.st-note .btn{justify-self:start}
.st-err{display:grid;gap:6px;justify-items:start;border:1px solid #B42318;background:color-mix(in srgb,#B42318 7%,var(--surface));border-radius:14px;padding:14px}
.st-err b{color:#B42318}
:root[data-theme="dark"] .st-err b{color:#FCA5A5}
.st-allsec{display:grid;gap:8px}
.st-allh{display:flex;align-items:center;gap:10px;min-height:52px;border:0;background:none;padding:0;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.st-allh b{flex:1;font-size:16px}
.st-allsec .chips{flex-wrap:wrap;overflow:visible}
.st-allsec .chip{min-height:44px}
.st-tabs{display:grid;width:100%}
.st-tabs button{min-height:44px}
.st-count{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:99px;background:var(--yellow);color:var(--navy);font-size:12px;font-weight:700;padding:0 6px}
.st-offers{display:grid;gap:10px}
.st-offer{display:flex;gap:12px;align-items:flex-start;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;color:var(--ink);font:inherit;cursor:pointer;min-width:0}
.st-offer .avatar{border-radius:0}
.st-badge{position:static;justify-self:start}
.st-left{display:inline-flex;align-items:center;gap:6px;justify-self:start;background:var(--plus-soft);color:var(--ink);border-radius:99px;padding:4px 10px;font-size:12.5px;font-weight:600}
.st-skel{min-height:220px}
.st-booknote{margin:0}
@media (min-width:420px) and (max-width:600px){ .st-top .mk-qrt{display:inline} .st-top .mk-qr{width:auto;padding:0 14px;min-height:52px} .st-top .mk-where{flex-basis:180px} }
.st-top .mk-toprow{flex-wrap:nowrap}
.st-top .mk-where{flex:1 1 auto}
.st-tile{overflow:hidden}
@media (max-width:359px){ .st-tile{gap:8px;padding:10px} .st-ic{width:32px;height:32px} }
.market.st,.st-top,.st-page{grid-template-columns:minmax(0,1fr)}
.st-alllink{display:none;justify-self:end;min-height:44px;margin-top:-10px}
@media (min-width:600px){ .st-alllink{display:inline-flex;align-items:center} }
/* QA fixes, 23 October 2026 (STORE-QA-1 to 8 and the two suggestions) */
.st-head .st-bk-top{margin-left:auto;flex:none}                                   /* STORE-QA-1: the basket button (from 1024 px, like Classic) */
.st-head .st-search{flex:1 1 auto;min-width:0}                                    /* STORE-QA-2: the search page fits 320 px */
.st-head .st-search input{min-width:0;width:100%}
.st .mk-x,.s2 .mk-x{width:44px;height:44px;flex:none}                                       /* STORE-QA-6: one clear button, 44 × 44 */
.st input[type=search]::-webkit-search-cancel-button,.st input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.st-tt span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}   /* STORE-QA-4 */
.st-trust{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.6em;line-height:1.3}
.st-two{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.st-filters{flex-wrap:wrap;overflow:visible}                                      /* STORE-QA-5: all four quick filters on screen */
.stack:has(> .market.st > .st-page) > .pagehead,.stack:has(> .market.st > .stack > #mk-baskets) > .pagehead,.stack:has(> .market.st > #mk-baskets) > .pagehead{display:none}   /* STORE-QA-8: one title on sub-pages */
html[data-store-first] #nav-news,html[data-store-first] .ask-hint{display:none}  /* suggestion 2: first-visit hints wait until after the first visit to the new Store */
.st-offbar span{white-space:normal;text-align:right;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}   /* the deal count is never cut (si / ta) */
.st-chips .chip{max-width:100%;white-space:normal;text-align:center}
.st-top .mk-where b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}   /* the address is never cut on a 320 px phone */
.st-shop b.st-two{font-size:14px}

/* ===================== Store v2, Part 1 (24 October 2026; storev2.js, boards S01 to S29) =====================
   Navy header that continues the app bar, a white sheet with all the colour in the pictures, yellow sub-page headers with navy text.
   Red only for errors and Delete. Every tap target 44 px. Full-bleed bands use margin-inline calc(50% - 50vw); the page clips sideways. */
/* Brand colours only (Ashan, 24 Oct 2026): every shade below is mixed from a brand token, defined once here. Banners keep their own (light)
   colours in dark mode, so their green words use the light brand-text value. */
:root{ --s2-tile:var(--sunk); --s2-hmuted:color-mix(in srgb,var(--bar-ink) 72%,var(--bar)); --s2-hline:color-mix(in srgb,var(--bar-ink) 22%,var(--bar)); --s2-sheet:var(--surface);
  --s2-cream:#FFF4D6; --s2-mint:#D4F5E3; --s2-pinkp:#FFE4EC; --s2-mintsoft:#E8F7EF;      /* the palette's yellow, green and pink tints and mint (05-design), fixed so banners keep them in dark mode */
  --s2-skel:var(--line); --s2-green-ink:#0B7A47; --s2-white:#FFFFFF; --s2-muted-light:#475569 }   /* the light theme's brand-text and muted, kept on light panels in both themes */
:root[data-theme="dark"]{ --s2-sheet:var(--bg) }
html[data-store-v2]{overflow-x:clip}
html[data-store-v2] #off-banner{display:none}                      /* the Store's own offline line is in its header (S13) */
html[data-store-v2] #nav-news,html[data-s5cap] #nav-news{display:none}                        /* the bar hint waits for another page: nothing above the Store's header (05-design 6.6 rule 7) */
html[data-ask-top] #ask-fab,html[data-ask-top] .ask-hint{display:none}   /* Ask B+B is in the top bar on Store pages (decision 13) */
.stack:has(> .market.s2) > .pagehead{display:none}                  /* the greeting replaces the big "Shop" heading */
.s2{display:block}
.s2-askbox{display:contents}
.s2-ask{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:0;border-radius:99px;background:var(--green);color:var(--navy);font-weight:700;font-size:14px;cursor:pointer;margin-right:4px;flex:none}
@media (max-width:359px){ .s2-ask span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)} .s2-ask{padding:0 10px} }
@media (max-width:479px){ html[lang="ta"] .s2-ask span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)} html[lang="ta"] .s2-ask{padding:0 10px} }   /* the Tamil words (222 px) fit from 480 px; on phones the pill is the icon, its name stays (SV2-QA-1) */
/* ===================== Store v2 redesign round 2 (25 October 2026): 05-design "Round 2" (R2-1 to R2-7) over "Redesign" (R1 to R20) =====================
   The column: 16 / 24 / 32 px sides, up to 1376 px. Phones: a navy band, the white sheet, sideways rows. Tablets and computers: the
   address in the greeting row, the search across the column, the offer stage, full grid rows and, from 1200 px, a 320 px side panel.
   Brand colours only (the palette and the shades in R6); strong colours stay in dark mode, tints switch to their dark tints. */
.s2{--s2-ring:#17A863;--s2-gtext:#0B7A47;--s2-mintd:#E8F7EF}
:root[data-theme="dark"] .s2{--s2-ring:#2BD47D;--s2-gtext:#2BD47D}
@media (min-width:600px){ html[data-store-v2] main{padding-inline:max(24px,env(safe-area-inset-left,0px)) max(24px,env(safe-area-inset-right,0px))} }   /* iPhone sideways: clear of the notch (IOS-3) */
@media (min-width:1024px){ html[data-store-v2] main{padding-inline:max(32px,env(safe-area-inset-left,0px)) max(32px,env(safe-area-inset-right,0px));max-width:1440px} }
html[data-store-v2] .visitor main{max-width:1440px}
/* ---- the address as words (R2-1): no fill, no line, no pin square; one link at least 44 px tall ---- */
.s2-loc{display:flex;align-items:center;gap:8px;min-height:44px;min-width:0;max-width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer;font:inherit}
.s2-loc .s2-pin{flex:none;display:grid;place-items:center;width:24px;height:24px;color:var(--green);background:none}
.s2-loct{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.s2-loct small{font-size:12px;font-weight:500;opacity:.8;white-space:nowrap;color:inherit}
.s2-loct b{font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-chev{flex:none;display:grid;place-items:center;margin-left:-2px}
.s2-qri{width:44px;height:44px;display:grid;place-items:center;flex:none;border:0;border-radius:22px;background:none;color:inherit;cursor:pointer}
/* ---- phones: the navy band and the sheet (R2-01, R2-02) ---- */
.s2-head{position:relative;background:#0F172A;color:#FFFFFF;margin:-20px calc(50% - 50vw) 0;padding:4px 16px 40px}
.s2-offline{position:relative;background:rgb(255 255 255 / .14);color:inherit;font-size:13px;border-radius:10px;padding:8px 12px;margin:4px 0 8px}
.s2-greet{font-size:24px;font-weight:800;line-height:1.2;letter-spacing:-.02em;margin:0 0 12px;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[lang="si"] .s2-greet,html[lang="ta"] .s2-greet{font-size:20px}
.s2-locrow{display:flex;align-items:center;gap:4px;margin:0 -4px 0 -2px}
.s2-locrow .s2-loc{flex:1}
.s2-search{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;border-radius:14px;border:1px solid transparent;background:#FFFFFF;color:#475569;padding:0 14px;font:inherit;font-size:15px;text-align:left;cursor:pointer;margin-top:8px}
.s2-search span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-theme="dark"] .s2-head .s2-search{background:#1E293B;color:#94A3B8;border-color:#334155}
.s2-sheet{position:relative;background:var(--bg);margin:-24px -16px 0;padding:16px 16px 24px;border-radius:24px 24px 0 0;display:grid;grid-template-columns:minmax(0,1fr);gap:24px;min-width:0}
/* ---- tablets and computers: the greeting row with the address, the search across the column (R2-2) ---- */
.s2-whead{display:grid;gap:14px;padding-top:4px}
.s2-wtop{display:flex;align-items:center;gap:16px;min-width:0}
.s2-wtop .s2-greet{flex:1;margin:0;font-size:28px;color:var(--ink)}
.s2-wtop .s2-loc{flex:none;max-width:44%;color:var(--ink)}
.s2-wtop .s2-loct small{color:var(--muted);opacity:1}
.s2-wsearch{display:flex;align-items:center;width:100%;height:52px;border-radius:16px;background:var(--surface);border:1px solid var(--line);color:var(--muted);min-width:0}
@media (min-width:1024px){ .s2-wsearch{height:56px} }
.s2-wsq{flex:1;display:flex;align-items:center;gap:12px;height:100%;padding:0 12px 0 18px;min-width:0;border:0;background:none;color:inherit;font:inherit;font-size:16px;text-align:left;cursor:pointer;border-radius:16px}
.s2-wsq span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-wsearch .s2-qri{width:48px;height:44px;border-radius:0;border-left:1px solid var(--line);color:var(--ink);margin-right:4px}
.s2-wbody{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;padding:24px 0 16px;min-width:0}
/* ---- the 8 tiles (R5): brand tints, the drawing at 112 % clipped by the corners ---- */
.s2-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 12px}
.s2-tile{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;font:inherit}
.s2-tbox{position:relative;display:block;width:100%;aspect-ratio:1/1;border-radius:20px;overflow:hidden}
.s2-tart{position:absolute;left:-6%;top:-4%;width:112%;height:112%;display:block}
.s2-art{display:block;width:100%;height:100%} .s2-art svg{width:100%;height:100%;display:block}
.s2-tlab{font-size:12.5px;font-weight:600;line-height:1.2;letter-spacing:-.01em;text-align:center;min-height:2.4em;max-width:100%;word-break:keep-all;overflow-wrap:normal;hyphens:none;text-wrap:balance}
.s2-tshort{display:none}
html[lang="si"] .s2-tlab,html[lang="ta"] .s2-tlab{font-size:11.5px;line-height:1.25;letter-spacing:0;overflow:hidden}
@media (max-width:359px){ html[lang="si"] .s2-tfull,html[lang="ta"] .s2-tfull{display:none} html[lang="si"] .s2-tshort,html[lang="ta"] .s2-tshort{display:inline} .s2-tiles{gap:14px 8px} }
.s2-tb{position:absolute;top:-8px;right:-4px;border-radius:99px;padding:2px 9px;font-size:11.5px;font-weight:700;z-index:2;color:#0F172A}
.s2-tb.y{background:#FFC93C} .s2-tb.p{background:#FF8FB1}
.s2-tile .s2-tbox{overflow:hidden} .s2-tile>.s2-tbox>.s2-tb{position:absolute}
.s2-tile{overflow:visible} .s2-tbox:has(.s2-tb){overflow:visible} .s2-tbox:has(.s2-tb) .s2-tart{clip-path:inset(3.6% 5.4% round 18px)}
@media (min-width:600px){ .s2-tiles{grid-template-columns:repeat(8,minmax(0,1fr))} }
@media (min-width:1024px){ .s2-tiles{gap:16px} .s2-tbox{border-radius:24px} }
.s2-tiles-sm{grid-template-columns:repeat(4,minmax(0,1fr))}
/* ---- sections ---- */
.s2-sec{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.s2-sh{display:flex;align-items:flex-end;gap:10px;min-width:0}
.s2-sht{flex:1;display:flex;flex-direction:column;min-width:0}
.s2-sh h3{font-size:20px;font-weight:800;letter-spacing:-.01em;line-height:1.2;margin:0}
html[lang="si"] .s2-sh h3,html[lang="ta"] .s2-sh h3{font-size:18px}
.s2-ssub{font-size:13px}
.s2-sht .s2-timer{align-self:flex-start;margin-top:6px}
.s2-more{display:inline-flex;align-items:center;gap:2px;min-height:44px;color:var(--s2-gtext);font-weight:700;font-size:14.5px;white-space:nowrap;flex:none}
@media (max-width:599px){ html[lang="si"] .s2-sh .s2-more .s2-moret,html[lang="ta"] .s2-sh .s2-more .s2-moret{display:none} html[lang="si"] .s2-sh .s2-more,html[lang="ta"] .s2-sh .s2-more{width:44px;justify-content:center;border-radius:22px;background:var(--surface);border:1px solid var(--line)} }
.s2-sh .s2-timer{margin-bottom:10px}
.s2-arw{width:44px;height:44px;border-radius:22px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:grid;place-items:center;flex:none;cursor:pointer}
.s2-arw:disabled{opacity:.4;cursor:default}
.s2-dots{display:flex;justify-content:center;gap:6px;margin-top:2px}
.s2-dots i{width:6px;height:6px;border-radius:3px;background:var(--line-2)} .s2-dots i.on{width:20px;background:var(--ink)}
/* ---- the phone carousel (R7, R15 to R17): 156 px slides, the next one peeks; under 360 px one slide the full width ---- */
.s2-car{position:relative;display:grid;gap:10px;min-width:0}
.s2-track{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-right:-16px;padding-right:16px;scroll-padding-inline:0;overscroll-behavior-x:contain}
.s2-track::-webkit-scrollbar{display:none}
.s2-slide{position:relative;flex:0 0 calc(100% - 16px);height:156px;border:0;border-radius:16px;overflow:hidden;padding:0;cursor:pointer;scroll-snap-align:start;text-align:left;color:#0F172A;font:inherit;container-type:inline-size;background:#FFF4D6}
@media (max-width:359px){ .s2-slide{flex-basis:100%} .s2-track{margin-right:0;padding-right:0} }
.s2-car.one .s2-slide{flex-basis:100%}
.s2-slide.tone-cream{background:#FFF4D6} .s2-slide.tone-mint,.s2-slide.tone-green{background:#D4F5E3} .s2-slide.tone-mintsoft{background:#E8F7EF} .s2-slide.tone-yellow{background:#FFC93C}
.s2-slide.tone-pink{background:#FFE4EC} .s2-slide.tone-navy{background:#0F172A;color:#FFFFFF}
:root[data-theme="dark"] .s2-slide.tone-navy{background:#1E293B;box-shadow:inset 0 0 0 1px rgb(255 255 255 / .10)}
.s2-sart.full{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.s2-stx{position:absolute;left:0;top:0;bottom:0;width:58%;padding:14px 8px 14px 16px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;z-index:1}
.s2-stx>*{flex:none}
.s2-who,.chipw{display:inline-flex;align-items:center;gap:6px;background:#FFFFFF;color:#0F172A;border-radius:99px;padding:2px 10px 2px 2px;font-size:11.5px;font-weight:700;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-who .avatar,.chipw .avatar{width:20px;height:20px;font-size:8.5px;flex:none}
.chipw i{width:20px;height:20px;border-radius:10px;font:800 8.5px/20px var(--f-body);text-align:center;font-style:normal;flex:none;display:grid;place-items:center}
.s2-who.bb,.chipw:has(img){padding-left:8px} .s2-who img,.chipw img{width:16px;height:16px}
.s2-who span{overflow:hidden;text-overflow:ellipsis}
.s2-big{display:flex;flex-direction:column;width:100%;font-weight:900;line-height:1;letter-spacing:-.02em;flex:none}
.s2-big span,.s2-big em{font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:clip}
.s2-big em{color:#0B7A47}
html[lang="si"] .s2-big,html[lang="ta"] .s2-big{line-height:1.18;letter-spacing:0}
.tone-navy .s2-big span{color:#FFC93C} .tone-navy .s2-big em{color:#FFFFFF} .tone-yellow .s2-big em,.tone-pink .s2-big em{color:#0F172A}
.s2-slide .s2-small{font-size:12.5px;font-weight:500;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}
.s2-cta{margin-top:auto!important;display:inline-flex;align-items:center;gap:4px;background:#0F172A;color:#FFFFFF;border-radius:99px;padding:0 14px;height:34px;font-weight:700;font-size:13.5px;white-space:nowrap}
.tone-navy .s2-cta,.s2-slide.ownpic .s2-cta{background:#FFC93C;color:#0F172A}
.s2-slide:not(.auto) .s2-zone{width:44%}
.s2-frame.d .s2-fd{display:grid;place-items:center;width:100%;height:100%;background:#FFF4D6} .s2-frame.d:nth-child(3) .s2-fd{background:#FFE4EC} .s2-frame.d:nth-child(4) .s2-fd{background:#D4F5E3}
.s2-fd .s2-art{width:92%;height:92%}
.bbz{overflow:hidden} .s2-bbdisc{position:absolute;right:-14%;top:-6%;height:118%;aspect-ratio:1/1;border-radius:50%;background:rgb(43 212 125 / .22)} .s2-bbart{position:absolute;right:2%;top:10%;height:86%;max-width:96%;aspect-ratio:1/1}
.s2-stimer{position:absolute;right:8px;top:8px;z-index:2}
.s2-skban{display:block;flex:0 0 calc(100% - 16px);height:156px;border-radius:16px;background:var(--s2-skel)}
.s2-skdots{display:flex;justify-content:center;gap:5px} .s2-skdots i{width:6px;height:6px;border-radius:99px;background:var(--s2-skel)}
/* ---- the offer stage on tablets and computers (R2-3; storescene.js) ---- */
.s2-stagewrap{min-width:0}
.s2-stage{display:grid;gap:16px;min-width:0}
.s2-stagerow{display:flex;gap:16px} .s2-stack{display:flex;flex-direction:column;gap:16px;min-width:0}
.s2-scene{position:relative;overflow:hidden;border-radius:20px;border:0;padding:0;margin:0;display:block;color:#0F172A;isolation:isolate;cursor:pointer;text-align:left;font:inherit;flex:none}
.s2-scene .ly{position:absolute;display:block;pointer-events:none}
.s2-scene .art svg,.s2-scene .art .s2-art{width:100%;height:100%;display:block}
.s2-scene .bw{font-weight:900;letter-spacing:-.04em;line-height:.8;white-space:nowrap}
.s2-scene .tx{position:absolute;left:0;top:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;z-index:5;min-width:0}
.s2-scene .tx>*{flex:none;max-width:100%}
.s2-scene .big{display:flex;flex-direction:column;font-weight:900;line-height:1;letter-spacing:-.02em}
html[lang="si"] .s2-scene .big,html[lang="ta"] .s2-scene .big{line-height:1.18;letter-spacing:0}
.s2-scene .big>*{white-space:nowrap;overflow:visible} .s2-scene .big em{font-style:normal}
.s2-scene .big em .hl{display:inline-block;padding:.02em .14em .06em;margin-left:-.14em;transform:rotate(-2deg);border-radius:6px}
.s2-scene .stk{position:absolute;z-index:6;border-radius:50%;display:grid;place-items:center;text-align:center;font-weight:900;line-height:.95;letter-spacing:-.02em;color:#0F172A;box-shadow:0 6px 14px rgb(15 23 42 / .18)}
.s2-scene .pill{position:absolute;z-index:6;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:15px;font-size:13px;font-weight:700;white-space:nowrap}
.s2-scene .price{position:absolute;z-index:6;background:#FFFFFF;color:#0F172A;border-radius:12px;padding:6px 12px;display:flex;flex-direction:column;line-height:1.15;box-shadow:0 6px 14px rgb(15 23 42 / .16)}
.s2-scene .price small{font-size:11.5px;font-weight:600;color:#475569} .s2-scene .price b{font-size:17px;font-weight:900}
.s2-scene .small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.25}
.s2-scene .meta{font-size:13.5px;font-weight:500;opacity:.85}
.s2-scene .cta{margin-top:auto!important;display:inline-flex;align-items:center;gap:4px;border-radius:99px;font-weight:700;white-space:nowrap}
.s2-sframe{display:block;width:100%;height:100%;background:#FFFFFF;padding:5%;box-shadow:0 4px 12px rgb(15 23 42 / .22)} .s2-sframe img{width:100%;height:100%;object-fit:cover;display:block}
.s2-scenepic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.s2-skscene{position:relative;flex:none;border-radius:20px;overflow:hidden;background:var(--s2-sk2);border:1px solid var(--line)}
.s2-skscene.on{background:rgb(255 255 255 / .22);border-color:transparent}
.s2-skscene i,.s2-skw i{display:block;border-radius:8px;background:var(--s2-skel)} .s2-skscene.on i{background:rgb(255 255 255 / .35)}
.s2-skw{position:absolute;display:flex;flex-direction:column;gap:10px} .s2-skb{position:absolute;border-radius:22px!important} .s2-skd{position:absolute;border-radius:50%!important}
/* ---- the main column and the side panel (R2-6) ---- */
.s2-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;min-width:0}
.s2-cols.has-side{grid-template-columns:minmax(0,1fr) 320px}
.s2-main{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;min-width:0}
@media (max-width:599px){ .s2-main{gap:24px} }
.s2-side{display:flex;flex-direction:column;gap:16px;min-width:0;position:sticky;top:calc(var(--bar-h, 64px) + 16px)}
.s2-pan{border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--line);min-width:0;position:relative;overflow:hidden;color:var(--ink)}
.s2-pan h4{margin:0;flex:1;font-size:17px;font-weight:800;letter-spacing:-.01em}
.s2-panh{display:flex;align-items:center;gap:8px;min-width:0}
.s2-panh .s2-more{min-height:44px}
.s2-panavy{background:#0F172A;border-color:#0F172A;color:#FFFFFF}
:root[data-theme="dark"] .s2-panavy{background:#1E293B;border-color:#334155}
.s2-panavy .s2-timer{background:#FFC93C;color:#0F172A} .s2-panavy .s2-timer b{color:#0F172A}
.s2-panavy .s2-mtt span{color:#CBD5E1} .s2-panavy .s2-more{color:#2BD47D}
.s2-panmint{background:#E8F7EF;border-color:transparent;color:#0F172A}
.s2-panmint .s2-panh b{font-size:16px;line-height:1.25;flex:1}
.s2-panbtn{align-self:flex-start;min-height:44px;gap:6px}
.s2-mrow{display:flex;align-items:center;gap:10px;min-width:0;width:100%}
.s2-pan .s2-mrow+.s2-mrow{border-top:1px solid var(--line);padding-top:10px}
.s2-panavy .s2-mrow+.s2-mrow{border-top-color:rgb(255 255 255 / .12)}
.s2-mlink{border:0;background:none;padding:0;color:inherit;text-align:left;font:inherit;cursor:pointer;min-height:44px}
.s2-pan .s2-mrow.s2-mlink+.s2-mrow.s2-mlink{padding-top:10px}
.s2-mth{width:56px;height:56px;flex:none;display:grid;place-items:center;overflow:hidden;background:var(--sunk)}
.s2-mth img{width:100%;height:100%;object-fit:cover} .s2-mth .s2-art{width:88%;height:88%} .s2-mthw{background:#FFFFFF}
.s2-mtt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.s2-mtt b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-mtt span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-mtt .s2-mpr{font-size:14px;font-weight:800;color:inherit} .s2-mpr s{font-weight:500;font-size:12px;opacity:.7}
.s2-rk{width:24px;flex:none;font-weight:900;font-size:18px;color:var(--s2-gtext);text-align:center}
.s2-lg2{width:44px;height:44px;border-radius:22px;flex:none;display:grid;place-items:center;font:800 13px/1 var(--f-body);overflow:hidden}
.s2-lg2 .avatar{width:44px;height:44px} .s2-lg2.g{background:#2BD47D;color:#0F172A}
.s2-lg2.p-yellow{background:#FFC93C;color:#0F172A} .s2-lg2.p-green{background:#2BD47D;color:#0F172A} .s2-lg2.p-pink{background:#FF8FB1;color:#0F172A} .s2-lg2.p-navy{background:#0F172A;color:#FFC93C}
:root[data-theme="dark"] .s2-lg2.p-navy{background:#1E293B}
.s2-panmore{align-self:flex-start}
.s2-skpan i{display:block;height:12px;border-radius:8px;background:var(--s2-skel)} .s2-skth{width:56px!important;height:56px!important;border-radius:0!important;flex:none}
/* ---- grids: full rows only, a See all tile fills a short row (R10) ---- */
.s2-pgrid{display:grid;gap:16px;min-width:0}
@media (max-width:359px){ .s2-reorder{flex-wrap:wrap} .s2-reorder .s2-rmid{flex-basis:calc(100% - 56px)} .s2-reo{margin-left:56px} }      /* R20: Reorder drops under the order */
/* REL-QA-4 (26 Oct 2026): Safari's 150 % text lays an iPhone SE out 250 px wide; with Inter and the Sinhala / Tamil fonts these
   rows were wider than that (Insights, Payments, Settings). Only under 300 px: from 300 px everything is as before. */
@media (max-width:299px){
  .kpis,.kpis.four,.kpis.rv-kpis,.kpis.rv-kpis3{grid-template-columns:minmax(0,1fr)}
  .kpi span,.page-h p,.page-h h2{overflow-wrap:anywhere}
  .page-h h2{font-size:22px}
  main h2,main h3,main h4,main p,main .small{overflow-wrap:anywhere}   /* one long Sinhala / Tamil word in a heading (Settings: the driver's location section) */
  main .small{min-width:0}
  .es-pad{min-width:0;max-width:100%} .es-pad-hint{right:24px;white-space:normal}   /* the e-sign pad (Settings)'s hint in Tamil */
  /* the Safari hotfix's 250 px block (hotfix/ios-safari d67f11a, IOS-4), copied as it is so this branch fits on its own too */
  .botnav.lb-grow .botnav-in{grid-template-columns:repeat(5,minmax(0,1fr))}   /* five equal columns: a long one-word name ends in … instead of widening the bar */
  .botnav .ind{width:100%;max-width:56px}
  .botnav .lb{overflow:hidden;text-overflow:ellipsis}
  .mk-cats,:root[data-lang="si"] .mk-cats,:root[data-lang="ta"] .mk-cats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tiles{grid-template-columns:minmax(0,1fr)}
  .mk-tiles{grid-template-columns:minmax(0,1fr)}
  .market,.mk-pair{grid-template-columns:minmax(0,1fr)}   /* Shop: one wide row can't widen the whole page */
  .mk-prow .mk-thumb{width:44px;height:44px}
  .mk-pend{gap:6px}
  .tiles>:last-child:nth-child(odd){grid-column:auto}
  .fx-row{flex-wrap:wrap}
  /* one-line rows that Sinhala and Tamil words make too wide: the words may wrap (rows that scroll sideways, like Shop's chips, still scroll) */
  .pill,.chip{white-space:normal}
  .oc-row{flex-wrap:wrap}
  .oc-row .nowrap{white-space:normal}
  .sc-tpl-list{grid-template-columns:minmax(0,1fr)}
  .sc-tpl-row>*{min-width:0;overflow-wrap:anywhere}
  .seg{width:100%!important}
  .seg button{white-space:normal;padding-inline:8px}
  .spread>*{min-width:0;max-width:100%}
  .vchart{grid-template-columns:minmax(0,1fr)} .vbars,.vticks{min-width:0}
  .prod .sees{min-width:0;overflow-wrap:anywhere}
  .oc-row .st,.oc-3 .st,.mini .st,.pill{white-space:normal;flex:0 1 auto;max-width:100%;min-width:0;overflow-wrap:anywhere}   /* one long Tamil word: an order's status ('New time suggested'), 'Waiting for approval' */
  .skip:not(:focus),.skip:focus{left:8px;max-width:calc(100vw - 16px);height:auto;min-height:44px;white-space:normal;line-height:1.3}
}
/* REL-QA-4: 250 px (Safari's 150 % text on an iPhone SE): the Store v2 rows fit; from 300 px nothing changes */
@media (max-width:299px){
  html[data-ask-top] .bar-actions>.icon-btn:not(.sc-bell){display:none}   /* the owner's bar: Ask B+B, the shop switcher and the account; the theme is in the menu */
  html[data-store-v2] .s2-reo{margin-left:0;width:100%;justify-content:center;white-space:normal}
  html[data-store-v2] .s2-pgrid.two{grid-template-columns:minmax(0,1fr)}
  html[data-store-v2] .s2-hcta{white-space:normal;max-width:100%;text-align:left}
  html[data-store-v2] .s2-sh{flex-wrap:wrap;row-gap:4px}
  html[data-store-v2] .s2-tlab{font-size:11px;overflow-wrap:anywhere}
}
.s2-pgrid.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.s2-seeall{border-radius:16px;border:1px dashed var(--line-2);background:var(--surface);display:flex;align-items:center;justify-content:center;gap:12px;font:inherit;font-weight:700;font-size:16px;color:var(--s2-gtext);min-height:200px;cursor:pointer;padding:16px;text-align:center}
.s2-seeall.s2-seeall1{flex-direction:column;gap:10px;font-size:15px;padding:12px;min-height:0}   /* 26 Oct: one column wide, never a panel across a gap */
.s2-topup{display:contents}
.s2-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.s2-pair>*{min-width:0}
.s2-seeallic{width:44px;height:44px;border-radius:22px;border:1px solid var(--line);display:grid;place-items:center;flex:none}
.s2-hs>*{width:156px} .s2-hs.s2-shoprow>*{width:268px}
.s2-pc .s2-nm{min-height:2.6em}
.s2-thumb{border-radius:0!important;display:grid;place-items:center;position:relative;overflow:hidden}
.s2-thumb>.s2-art{width:78%;height:96%}
.s2-nowas{visibility:hidden}
.s2-pbadge{max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s2-listw{min-width:0}
.s2-skrow{display:flex;gap:12px;overflow:hidden}
.s2-skpc{flex:none;width:156px;padding:8px;display:flex;flex-direction:column;gap:8px;border-radius:16px;background:var(--s2-sk2);border:1px solid var(--line)}
.s2-pgrid .s2-skpc{width:auto}
.s2-skpc i{display:block;height:14px;border-radius:8px;background:var(--s2-skel)} .s2-skpc .s2-skimg{aspect-ratio:4/3;height:auto;border-radius:0} .s2-skpc .s2-skplus{width:44px;height:44px;border-radius:22px;margin-left:auto}
.s2-skpage{display:grid;gap:14px;padding:12px 0}   /* QA ios-ux-1: while the Store's code arrives, grey shapes (search, banner, tiles, a card) instead of a blank gap under the header */
.s2-sksearch{height:48px;border-radius:24px;background:var(--s2-skel)} .s2-skband{height:150px;border-radius:18px;background:var(--s2-skel)}
.s2-skrow{display:grid;grid-template-columns:repeat(4,1fr);gap:10px} .s2-skrow .skel{height:84px;border-radius:16px;background:var(--s2-skel)}
.s2-skshops{display:grid;gap:12px} .s2-skcard{display:block;height:230px;border-radius:16px;background:var(--s2-skel)}
.s2{--s2-skel:#E2E8F0;--s2-sk2:#F8FAF9} :root[data-theme="dark"] .s2{--s2-skel:#334155;--s2-sk2:#243247}
.s2-shopgrid.one{grid-template-columns:1fr}
.s2-shop.s2-shopwide{display:flex;flex-direction:row;align-items:stretch;gap:20px;padding:8px;cursor:default}
.s2-shopwl{flex:0 0 40%;border:0;background:none;padding:0;cursor:pointer;display:block;min-width:0}
.s2-shopwr{flex:1;display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
.s2-shopwr .s2-name{font-size:20px} .s2-shopwr .s2-l2{font-size:14px} .s2-openshop{min-height:44px;gap:4px}
.s2-plogo{background:#FFFFFF} :root[data-theme="dark"] .s2-plogo{background:#172235} .s2-plogo .s2-art{width:86%;height:96%}
.s2-panel.p-navy{background:#0F172A} :root[data-theme="dark"] .s2-panel.p-navy{background:#1E293B}
/* ---- the no-address prompt (R8) ---- */
.s2-addrp{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 12px 12px 14px;border-radius:16px;background:#E8F7EF;color:#0F172A}
:root[data-theme="dark"] .s2-addrp{background:#123A31;color:#F1F5F9}
.s2-addrpi{width:44px;height:44px;border-radius:22px;background:#2BD47D;color:#0F172A;display:grid;place-items:center;flex:none}
.s2-addrpt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3} .s2-addrpt b{font-size:15.5px} .s2-addrpt span{font-size:13px;opacity:.82}
.s2-addrpb{min-height:44px;flex:none;border-radius:22px;padding:0 18px}
/* ---- Popular in <category>: circles at every width, mint discs (R2-4) ---- */
.s2-rail{display:grid;gap:12px;min-width:0}
.s2-railgrid{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding:4px 16px 2px}
.s2-railgrid::-webkit-scrollbar{display:none}
.s2-railbtn{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;width:78px;border:0;background:none;padding:0;cursor:pointer;color:var(--ink);font:inherit;min-width:0}
html[lang="si"] .s2-railbtn,html[lang="ta"] .s2-railbtn{width:104px}
.s2-disc{position:relative;width:72px;height:72px;border-radius:50%;display:grid;place-items:center;overflow:hidden;flex:none;background:#E8F7EF}
.s2-disc>.s2-art{width:80%;height:80%;position:static}
.s2-railbtn[aria-pressed="true"] .s2-disc{box-shadow:0 0 0 3px var(--bg),0 0 0 6px var(--s2-ring)}
.s2-raill{font-size:12.5px;font-weight:600;line-height:1.2;text-align:center;max-width:100%;min-height:2.4em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:keep-all}
.s2-raill small{display:block;font-size:12px;font-weight:500;color:var(--muted)}
.s2-railgrid.wide{display:grid;overflow:visible;margin:0;padding:4px 0 0}
.s2-railgrid.wide .s2-railbtn{width:auto;gap:8px}
.s2-railgrid.wide .s2-raill{font-size:13.5px;min-height:2.5em}
.s2-railgrid.wide .s2-railshop .s2-raill{-webkit-line-clamp:3;min-height:3.6em}
.s2-sdisc.p-yellow{background:#FFC93C} .s2-sdisc.p-green{background:#2BD47D} .s2-sdisc.p-pink{background:#FF8FB1} .s2-sdisc.p-navy{background:#0F172A} :root[data-theme="dark"] .s2-sdisc.p-navy{background:#1E293B;box-shadow:inset 0 0 0 1px rgb(255 255 255 / .12)}
.s2-sdin{position:absolute;inset:11%;border-radius:50%;background:#FFFFFF;display:grid;place-items:center} .s2-sdin .s2-art{width:78%;height:78%}
.s2-sini{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);background:#FFFFFF;color:#0F172A;border-radius:99px;padding:2px 8px;font-weight:900;letter-spacing:-.02em;box-shadow:0 1px 3px rgb(15 23 42 / .18)}
/* ---- a category page: one colour from the top, a soft curve into the page (R1, R3, R2-1, R2-3) ---- */
@media (max-width:599px){ html[data-s2-hero] .appbar{display:none} }
.s2-cat{gap:0}
.s2-hero:not(.s2-prevhero){position:relative;display:block;margin:-20px calc(50% - 50vw) 0;color:var(--hink);padding:0 0 62px}
@media (min-width:600px){ .s2-hero:not(.s2-prevhero){padding-bottom:72px;margin-top:-20px} }
@media (min-width:1024px){ .s2-hero:not(.s2-prevhero){padding-bottom:88px} }
.s2-hin{position:relative;z-index:1;margin:0 auto;display:flex;flex-direction:column;padding:calc(8px + env(safe-area-inset-top,0px)) 16px 0}
@media (min-width:600px){ .s2-hin{width:calc(100vw - 2 * max(24px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px)));padding:20px 0 0} }
@media (min-width:1024px){ .s2-hin{width:min(1376px, calc(100vw - 2 * max(32px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))))} }
.s2-herotop{display:flex;align-items:center;gap:8px;min-width:0}
.s2-herotop.wide{gap:12px;margin-top:4px}
.s2-herot{flex:1;min-width:0;margin:0;font-size:20px;font-weight:800;line-height:1.2;letter-spacing:-.01em;color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-herotop.wide .s2-herot{font-size:28px;letter-spacing:-.02em}
@media (min-width:1024px){ .s2-herotop.wide .s2-herot{font-size:32px} }
.s2-herotop.wide .s2-loc{flex:none;max-width:44%}
.s2-hero:not(.s2-prevhero) .s2-loc{margin-top:6px}
.s2-herotop.wide .s2-loc{margin-top:0}
.s2-fround{position:relative;width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;flex:none;cursor:pointer;color:#0F172A;background:rgb(255 255 255 / .86);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:0}
.s2-hero.inv .s2-fround{background:rgb(255 255 255 / .14);color:#FFFFFF}
.s2-bkn{box-shadow:none}
.s2-ysearch{display:flex;align-items:center;gap:10px;background:#FFFFFF;color:#475569;border-radius:14px;min-height:48px;padding:0 14px;margin-top:6px;box-shadow:0 1px 2px rgb(15 23 42 / .08);border:0;width:100%;font:inherit;text-align:left;cursor:text}
.s2-ysearch input{flex:1;min-width:0;border:0;outline:0;background:none;color:#0F172A;font:inherit;font-size:15px;text-overflow:ellipsis;min-height:44px}
.s2-ysearch.s2-wsearch{height:52px;border-radius:16px;margin-top:14px;padding:0 18px;gap:12px;border:0}
@media (min-width:1024px){ .s2-ysearch.s2-wsearch{height:56px} }
.s2-ysbtn{cursor:pointer;font-size:15px} .s2-ysbtn span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-hero .s2-stagewrap{margin-top:20px}
.s2-deal{position:relative;display:flex;align-items:stretch;gap:8px;min-width:0;width:100%;min-height:168px;margin-top:14px;border:0;background:none;padding:0;color:inherit;text-align:left;font:inherit;cursor:pointer}
.s2-cathero{cursor:default}
.s2-dt{flex:0 0 58%;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;z-index:1}
.s2-hbig{display:flex;flex-direction:column;width:100%;font-weight:900;line-height:.96;letter-spacing:-.02em;flex:none}
.s2-hbig>*{white-space:nowrap;overflow:hidden;text-overflow:clip} .s2-hbig em{font-style:normal;color:var(--hacc)}
html[lang="si"] .s2-hbig,html[lang="ta"] .s2-hbig{line-height:1.18;letter-spacing:0}
.s2-dsmall{font-size:14px;font-weight:500;line-height:1.3;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.s2-dsmall.b{font-weight:600;opacity:.88;white-space:normal}
.s2-hcta{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0 16px;border-radius:20px;font:inherit;font-weight:700;font-size:14.5px;white-space:nowrap;margin-top:6px;background:#0F172A;color:#FFFFFF;border:0;cursor:pointer}
.s2-hcta.y{background:#FFC93C;color:#0F172A}
.s2-dart{position:relative;flex:1;min-width:0;height:168px;align-self:center}
.s2-dart.cat>.s2-art{position:absolute;inset:0}
.s2-dartpic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right center;border-radius:14px}   /* a banner picture keeps its words side plain: show its picture side */
.s2-dframe{position:absolute;aspect-ratio:1/1;background:#FFFFFF;padding:5px;box-shadow:0 4px 12px rgb(15 23 42 / .22)}
.s2-dframe img,.s2-dframe>span{display:grid;place-items:center;width:100%;height:100%;object-fit:cover}
.s2-dframe.d>span{background:#FFF4D6} .s2-dframe.d.f1>span{background:#FFE4EC} .s2-dframe.d.f2>span{background:#E8F7EF}
.s2-dframe.f0{left:18%;top:0;width:60%;transform:rotate(-3deg);z-index:1} .s2-dframe.f1{left:0;top:50%;width:44%;transform:rotate(-5deg);z-index:2} .s2-dframe.f2{left:52%;top:48%;width:44%;transform:rotate(4deg);z-index:2}
.s2-dframe.f02{left:4%;top:4%;width:62%;transform:rotate(-4deg)} .s2-dframe.f12{left:36%;top:38%;width:60%;transform:rotate(3deg)}
.s2-dframe.f1:only-child{left:8%;top:4%;width:84%;transform:none}
.s2-dskel i{display:block;border-radius:8px;background:rgb(255 255 255 / .55)} .s2-hero.inv .s2-dskel i{background:rgb(255 255 255 / .16)} .s2-dskel .s2-skb{width:120px;height:40px;border-radius:20px;position:static}
/* the soft curve (R3, "Banner edge geometry"): one page-colour shape with a soft shadow, no bands */
.s2-edge{position:absolute;left:0;right:0;bottom:-1px;width:100%;display:block;z-index:2;pointer-events:none;filter:drop-shadow(0 -6px 12px rgb(15 23 42 / .10))}
:root[data-theme="dark"] .s2-edge{filter:drop-shadow(0 -6px 12px rgb(0 0 0 / .35))}
.s2-edge .e-bg{fill:var(--bg)}
.s2-catbody{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;min-width:0;padding-top:4px}
@media (min-width:600px){ .s2-catbody{gap:28px;padding-top:8px} }
/* scrolled: the top turns solid (S47); search and the chip row stay in reach */
.s2-solid{position:fixed;left:0;right:0;top:0;z-index:19;display:flex;align-items:center;gap:8px;padding:calc(6px + env(safe-area-inset-top,0px)) 16px 6px;background:var(--surface);border-bottom:1px solid var(--line);transform:translateY(-120%);transition:transform .18s ease-out}
.s2-solid.on{transform:none}
.s2-solid .s2-fround{background:var(--sunk);color:var(--ink)}
.s2-solidt{flex:1;min-width:0;font-size:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (min-width:600px){ .s2-solid{top:calc(var(--bar-h) + env(safe-area-inset-top,0px))} }
.s2-pin-chips{position:sticky;top:56px;z-index:5;background:var(--bg);padding-block:6px;margin-inline:-16px;padding-inline:16px}
@media (min-width:600px){ .s2-pin-chips{top:calc(var(--bar-h) + 56px);margin-inline:0;padding-inline:0} }
@media (prefers-reduced-motion: reduce){ .s2-solid{transition:none} }
@media (min-width:600px){ .s2-askhero{display:none} }
/* the Offers page's kind tabs: chips with counts (R2-60) */
.s2-ktabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;background:none;border:0;padding:2px 0;border-radius:0}
.s2-tabs.s2-ktabs button{flex:none;min-height:44px;padding:0 16px;border-radius:22px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font-weight:600;font-size:14px;white-space:nowrap}
.s2-ktabs button[aria-selected="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.s2-ktabs .st-count{opacity:.7;font-weight:500;background:none;color:inherit;padding:0;min-width:0;height:auto;border-radius:0;margin-left:4px;display:inline}
@media (min-width:600px){ .s2 .s2-showmore{width:360px;max-width:100%} }
/* the empty category (R12) */
.s2-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:24px 16px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.s2-emptyart{width:120px;height:96px;display:block} .s2-empty b{font-size:18px} .s2-empty p{font-size:14px;color:var(--muted);max-width:420px;margin:0}
.s2-empty .row{flex-wrap:wrap;justify-content:center;gap:8px} .s2-empty .btn{min-height:44px;gap:6px}
/* the owner's preview keeps its own small hero (offers.js) */
.s2-prevhero.s2-hero{position:relative;display:grid;gap:10px;align-content:start;color:#0F172A;background:#FFF4D6}
.s2-prevhero.tone-cream{background:#FFF4D6} .s2-prevhero.tone-mint,.s2-prevhero.tone-green{background:#D4F5E3} .s2-prevhero.tone-mintsoft{background:#E8F7EF} .s2-prevhero.tone-yellow{background:#FFC93C} .s2-prevhero.tone-pink{background:#FFE4EC}
.s2-prevhero.tone-navy{background:#0F172A;color:#FFFFFF}
.s2-prevhero .s2-stx.static{position:relative;width:58%;height:auto;gap:6px;padding:0}
.s2-prevhero .s2-big em{color:#0B7A47} .s2-prevhero.tone-navy .s2-big span{color:#FFC93C} .s2-prevhero.tone-navy .s2-big em{color:#FFFFFF}
:root{--s2-edge:56px} @media (min-width:600px){ :root{--s2-edge:64px} } @media (min-width:1024px){ :root{--s2-edge:80px} }
/* ---- carried over from Part 1, unchanged ---- */
/* ---- the timer ---- */
.s2-timer{display:inline-flex;align-items:center;gap:5px;background:var(--navy);color:var(--bar-ink);border-radius:99px;padding:4px 10px;font-size:12.5px;font-weight:600;white-space:nowrap}
.s2-timer b{color:var(--yellow);font-weight:800}
:root[data-theme="dark"] .s2-timer{background:var(--yellow);color:var(--navy)} :root[data-theme="dark"] .s2-timer b{color:var(--navy)}
.s2-reorder{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);min-width:0}
.s2-rmid{flex:1;min-width:0;display:grid}
.s2-ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s2-ell2{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.s2-reo{flex:none;min-height:44px}
.s2-chips{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}      /* one row at every width: it scrolls sideways (the shared .chips rule wraps from 700 px) */
.s2-chips .chip{min-height:44px;padding:8px 16px}
.s2-chips .chip[aria-pressed="true"],.s2-opt[aria-pressed="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
/* shop card (refined, decision 5): the shop's cover (16:7, square photo corners) or a brand-colour panel with its name, two lines */
.s2-shopgrid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:768px){ .s2-shopgrid{grid-template-columns:repeat(2,minmax(0,1fr))} .s2-pgrid{grid-template-columns:repeat(4,minmax(0,1fr))} }
@media (min-width:1024px){ .s2-shopgrid{grid-template-columns:repeat(3,minmax(0,1fr))} .s2-pgrid{grid-template-columns:repeat(6,minmax(0,1fr))} }
.s2-shop{position:relative;display:grid;gap:8px;width:100%;padding:8px 8px 10px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);text-align:left;cursor:pointer;font:inherit;min-width:0}
.s2-cover{position:relative;display:flex;aspect-ratio:16/7;overflow:hidden;background:var(--s2-cream);container-type:inline-size}
.s2-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.s2-panel{position:relative;z-index:1;flex:0 0 56%;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:10px 12px;min-width:0}
.s2-panel.p-yellow{background:var(--yellow);color:var(--navy)} .s2-panel.p-green{background:var(--green);color:var(--navy)}
.s2-panel.p-pink{background:var(--pink);color:var(--navy)} .s2-panel.p-navy{background:var(--navy);color:var(--yellow)}
.s2-pname{font-weight:900;font-size:clamp(17px,8cqw,30px);line-height:.95;letter-spacing:-.02em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.s2-ptag{font-size:clamp(10px,3.4cqw,13px);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s2-panel.p-navy .s2-ptag{color:var(--s2-white)}
.s2-ppic{flex:1;min-width:0;height:100%;object-fit:cover}
.s2-plogo{flex:1;display:grid;place-items:center}
.s2-shop.closed .s2-cover{filter:grayscale(1);opacity:.7}
.s2-tag{position:absolute;left:8px;top:8px;z-index:2;display:inline-flex;align-items:center;gap:4px;background:var(--s2-white);color:var(--navy);font-size:12px;font-weight:700;padding:3px 10px;border-radius:99px;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 3px rgb(15 23 42 / .15)}
.s2-yours{position:absolute;right:8px;top:8px;z-index:2;background:var(--navy);color:var(--bar-ink);font-size:11.5px;font-weight:700;padding:2px 9px;border-radius:99px}
.s2-lines{display:grid;gap:1px;padding:0 4px;min-width:0}
.s2-name{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.s2-name .muted{font-weight:400}
.s2-l2{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}
.s2-l2 b{color:var(--ink)}
.s2-star{color:var(--ink);font-weight:600;display:inline-flex;align-items:center;gap:2px} .s2-star .ico{color:var(--yellow)}
.s2-new{color:var(--ink);font-weight:600;background:var(--plus-soft);border-radius:6px;padding:0 6px}
.s2-closed{color:var(--ink);font-weight:600}
.s2-unset{font-size:11.5px;padding:1px 8px}
/* ---- states (S10 to S16) ---- */
.s2-state{display:grid;gap:8px;justify-items:start;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.s2-state.warn,.s2-vnote,.s2-onote{background:var(--plus-soft);border-color:color-mix(in srgb,var(--yellow) 55%,transparent)}
.s2-state.warn,.s2-vnote,.s2-onote{display:flex;align-items:flex-start;gap:12px}
.s2-state.warn>span:not(.s2-sticon),.s2-vnote>span:not(.s2-sticon),.s2-onote>span:not(.s2-sticon){display:grid;gap:6px;min-width:0;flex:1}      /* the text, never the round icon (SV2-QA-10) */
.s2-vnote,.s2-onote{padding:14px;border:1px solid;border-radius:16px;align-items:center}
.s2-vnote{background:var(--brand-soft);border-color:color-mix(in srgb,var(--green) 40%,transparent)}
.s2-sticon{width:36px;height:36px;border-radius:50%;background:var(--surface);display:grid;place-items:center;flex:none;color:var(--brand-text)}
.s2-state .row{gap:8px}
.s2-noq{overflow-wrap:anywhere}
.s2-bkn{position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;border-radius:99px;background:var(--navy);color:var(--bar-ink);font-size:11.5px;font-weight:700;display:grid;place-items:center;padding:0 5px}
.s2-tabs{display:flex;width:100%;overflow-x:auto;scrollbar-width:none}
.s2-tabs button{min-height:44px;flex:1 0 auto}
/* ---- the Sort and filter sheet ---- */
.s2-fsheet{display:grid;gap:10px}
.s2-fsheet .chips{flex-wrap:wrap;overflow:visible}
.s2-fsheet .chip{min-height:44px;padding:8px 16px}
.s2-fh{margin-top:6px}
.s2-fbar{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:10px;position:sticky;bottom:0;background:var(--surface);padding-top:10px;border-top:1px solid var(--line)}
.s2-fbar .btn{min-height:48px}
/* ---- search ---- */
.s2-findhead{display:flex;align-items:center;gap:6px;min-width:0}
.s2-fq{flex:1 1 auto;min-width:0} .s2-fq input{min-width:0;width:100%;text-overflow:ellipsis}
.s2-find input[type=search]::-webkit-search-cancel-button{display:none}
.s2-poplist{display:grid;gap:2px}
.s2-pop{display:flex;justify-content:space-between;gap:10px;min-height:48px;align-items:center;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);text-align:left;padding:0 2px;font:inherit;cursor:pointer}
.s2-plist{display:grid}
.s2-prow{display:grid;grid-template-columns:76px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.s2-prthumb{width:76px;height:76px;display:grid;place-items:center;background:var(--s2-tile);overflow:hidden}
.s2-prthumb img{width:100%;height:100%;object-fit:cover}
.s2-prmid{display:grid;gap:2px;min-width:0;text-align:left}
.s2-prmid mark{background:var(--plus-soft);color:inherit;border-radius:3px;padding:0 1px}
.s2-towns{display:flex;flex-wrap:wrap;gap:8px} .s2-towns .chip{min-height:44px}
.s2-allart{position:relative;overflow:hidden;width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--s2-tile)}   /* the tile drawing (.s2-tart, absolute at 112 %) stays in its box */ .s2-allart .s2-art{width:90%;height:90%}
/* the basket bar sits above the bottom bar (as New) */
.s2 .mk-bkbar{z-index:15}
/* Store v2: Feature this offer (S25) and the banner status on each offer (S26) */
.s2-feature{border:2px solid var(--green)}
.s2-fprev{max-width:380px} .s2-fprev .s2-slide{width:100%;display:block;cursor:default}
.s2-fnote,.of-v2note{display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 12px;border-radius:12px;background:var(--plus-soft)}
.of-v2note{background:var(--brand-soft)}
.of-banner-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.of-banner-status .pill{display:inline-flex;align-items:center;gap:4px;white-space:normal}
.s2-pinkpill{background:var(--pink-soft);color:var(--pink-ink)}
/* Store v2: the super users' Store banners page (S27 to S29); on a phone the rows are cards */
.s2-adm{gap:16px}
.s2-admlist{display:grid;gap:10px}
.s2-admrow,.s2-picrow{display:grid;grid-template-columns:auto 144px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.s2-picrow{grid-template-columns:144px minmax(0,1fr) auto}
.s2-admthumb{width:144px;height:68px;border-radius:8px;overflow:hidden;background:var(--sunk);display:grid;place-items:center}
.s2-admthumb img,.s2-picrow img{width:144px;height:68px;object-fit:cover;border-radius:8px}
.s2-admmid{display:grid;gap:3px;min-width:0} .s2-admmid .pill{justify-self:start}
.s2-admact{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.s2-admact .btn{min-height:44px}
.s2-grip{color:var(--muted);cursor:grab}
.s2-admpanels{display:grid;gap:14px}
@media (min-width:1024px){ .s2-admpanels{grid-template-columns:1.4fr 1fr} .s2-admpanels #adm-holidays{grid-column:2} }
.s2-kv{display:grid;grid-template-columns:1fr auto;gap:6px 12px;font-size:14px} .s2-kv span{color:var(--muted)}
.s2-overdue{color:var(--err);font-weight:600}
.s2-admedit{display:grid;gap:16px}
@media (min-width:1024px){ .s2-admedit{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start} .s2-previews{position:sticky;top:calc(var(--bar-h) + 16px)} }
.s2-upgrid{display:grid;gap:12px} @media (min-width:600px){ .s2-upgrid{grid-template-columns:1fr 1fr} }
.s2-drop{display:grid;justify-items:center;gap:4px;padding:18px;border:2px dashed var(--line-2);border-radius:14px;cursor:pointer;text-align:center}
.s2-checks{display:grid;gap:8px;align-content:start}
.s2-check{display:flex;gap:8px;align-items:flex-start;font-size:14px} .s2-check .ico{flex:none;border-radius:50%;padding:2px}
.s2-check.ok .ico{background:var(--green);color:var(--navy)} .s2-check.bad .ico{background:var(--warn-soft);color:var(--warn)}
.s2-seg4{display:grid;grid-template-columns:repeat(4,1fr);width:100%} .s2-seg4 button{min-height:44px;padding:7px 6px;white-space:normal}
.s2-crop{max-width:320px;overflow:hidden}
@media (max-width:767px){
  .s2-admrow{grid-template-columns:96px minmax(0,1fr);align-items:start} .s2-admrow .s2-grip{display:none}
  .s2-admthumb,.s2-admthumb img{width:96px;height:46px}
  .s2-admact{grid-column:1 / -1;justify-content:flex-start}
  .s2-picrow{grid-template-columns:96px minmax(0,1fr)} .s2-picrow img{width:96px;height:46px} .s2-picrow .s2-admact{grid-column:1 / -1}
}
.s2-star .ico,.s2-star .ico path{fill:currentColor}
/* Store v2 tablets (option A, 600 to 1023 px, only while Store layout is v2): the menu as icon tabs inside the navy top bar; no rail */
.tabnav{display:flex;align-items:stretch;gap:2px;margin-left:8px;min-width:0;flex:0 1 auto}
.tabnav button{position:relative;background:none;border:0;color:var(--bar-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px 2px;min-height:56px;min-width:60px;max-width:84px;border-radius:12px;font:500 11.5px/1.2 var(--f-body);cursor:pointer}
.tabnav .ind{position:relative;width:48px;height:28px;border-radius:14px;display:grid;place-items:center}
.tabnav .lb{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tabnav button[aria-current="page"] .ind{background:var(--brand);color:var(--on-brand)}
.tabnav button[aria-current="page"] .lb{font-weight:700}
@media (hover:hover){ .tabnav button:hover .ind{background:color-mix(in srgb,var(--bar-ink) 14%,var(--bar))} .tabnav button[aria-current="page"]:hover .ind{background:var(--brand)} }
html[data-nav="tabs"] .appbar .brandmark h1{display:none} html[data-nav="tabs"] .appbar .brandmark{min-width:44px;justify-content:center}
html[data-nav="tabs"] #ask-fab,html[data-nav="tabs"] .ask-hint{display:none}
.s2-barbk{position:relative;color:var(--bar-ink)} .s2-barbk .nbadge{position:absolute;top:2px;right:2px}
/* phones: Store v2 sub-pages have no navy top bar (decision 21); the page starts below the phone's own status area */
@media (max-width:599px){ html[data-s2-hero] main{padding-top:calc(20px + env(safe-area-inset-top,0px))} html[data-s2-hero] .s2-hero,html[data-s2-hero] .s2-yhead{margin-top:calc(-20px - env(safe-area-inset-top,0px))} }
.tabnav .ind .nbadge{position:absolute;top:-3px;left:28px;margin:0;display:block;min-width:20px;height:18px;padding:0 5px;border:0;border-radius:9px;font:700 11px/18px var(--f-body);text-align:center;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--bar);background:var(--plus);color:var(--on-plus)}
.tabnav .ind .nbadge.dot{top:2px;left:32px;width:10px;min-width:10px;height:10px;padding:0;border-radius:5px;box-shadow:0 0 0 2px var(--bar)}
/* Store v2: the top bar keeps to the screen with Ask B+B in it (the business name gives way on phones; the account name on tablets) */
@media (max-width:1023px){ html[data-ask-top] .appbar .brandmark h1{display:none} html[data-ask-top] .appbar .brandmark{min-width:44px;justify-content:center} }   /* logo only: still a 44 px target */
html[data-nav="tabs"] .appbar .acct .nm{display:none}
.s2-ask{min-height:44px;min-width:44px;justify-content:center}      /* icon-only too: 44 × 44 (SV2-QA-18) */
.s2-ysearch input,.s2-fq input{min-height:44px}
.s2-fmore summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}

/* Store v2 auto-built banners, Part A (decisions 25 to 32): the right-40 % photo zone, frames, the white plate, the logo layout */
.s2-slide.tone-mintsoft,.s2-hero.tone-mintsoft{background:var(--s2-mintsoft)}
.s2-slide.auto .s2-stx{left:0;top:0;bottom:0;width:60%;padding:12px 8px 13px 16px}
.s2-zone{position:absolute;right:0;top:0;width:40%;height:100%;display:grid;place-items:center;z-index:0;overflow:visible}
.s2-zin{position:relative;height:100%;max-width:100%;aspect-ratio:137/162}
.s2-zin>*{position:absolute;display:block;aspect-ratio:1/1}
.s2-zdot{border-radius:50%;background:var(--yellow);opacity:.3}
.tone-mint .s2-zdot,.tone-mintsoft .s2-zdot{background:var(--green);opacity:.22} .tone-pink .s2-zdot{background:var(--pink);opacity:.35} .tone-yellow .s2-zdot{background:var(--s2-white);opacity:.35}
.tone-navy .s2-zdot{background:var(--green);opacity:.22}
.s2-frame{background:var(--s2-white);box-shadow:0 4px 12px rgba(15,23,42,.22);box-sizing:border-box}
.s2-frame img,.s2-cut img{display:block;width:100%;height:100%;object-fit:cover}
.s2-cut img{object-fit:contain}
.s2-plate{border-radius:50%;background:var(--s2-white)}
.s2-zlogo{display:grid;place-items:center;border-radius:50%;overflow:hidden}
.s2-zlogo .avatar{width:100%;height:100%;border:0;font-size:clamp(14px,6cqw,28px);background:var(--yellow);color:var(--navy)}
.s2-plate+.s2-zlogo{box-shadow:none}
.s2-zin>.s2-plate:first-of-type:not(:only-of-type){}
.s2-slide.auto .s2-stimer{right:10px}
html[lang="si"] .s2-slide.auto .s2-big,html[lang="ta"] .s2-slide.auto .s2-big{line-height:1.18;font-size:clamp(16px,6.2cqw,24px)}
.s2-hero .s2-zone{top:auto;bottom:calc(var(--s2-edge) + 16px);height:min(60%,260px)}
.s2-plate.lg{box-shadow:0 4px 12px rgba(15,23,42,.12)}
/* the owner's Feature this offer with auto-built banners (S25, S25b, S25c) */
.s2-prevhero.s2-hero{margin:0;border-radius:12px;padding:12px 12px calc(var(--s2-edge) + 12px)!important;min-height:212px;container-type:inline-size;overflow:hidden}
.s2-prevhero .s2-zone{bottom:calc(var(--s2-edge) + 16px);top:8px;height:auto}
.s2-prevhero .s2-big{font-size:clamp(20px,8cqw,30px)}
.s2-layouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.s2-lay{position:relative;display:grid;justify-items:center;gap:4px;padding:16px 6px 10px;border:1.5px solid var(--line-2);border-radius:14px;background:var(--surface);color:var(--ink);cursor:pointer;font:inherit;text-align:center;min-height:44px}
.s2-lay[aria-pressed="true"]{border:2px solid var(--navy);background:var(--sunk)}
:root[data-theme="dark"] .s2-lay[aria-pressed="true"]{border-color:var(--yellow)}
.s2-lay:disabled{opacity:.45;cursor:default}
.s2-picked{position:absolute;top:-10px;left:50%;translate:-50% 0;white-space:nowrap;background:var(--yellow);color:var(--navy);font-size:11px;font-weight:700;padding:1px 8px;border-radius:99px}
.s2-layic{position:relative;width:44px;height:32px}
.s2-layic i{position:absolute;background:var(--yellow);border:2px solid var(--s2-white);box-shadow:0 1px 3px rgb(15 23 42 / .25)}
.s2-layic.l-one i:nth-child(1){inset:2px 8px} .s2-layic.l-one i:nth-child(n+2){display:none}
.s2-layic.l-two i:nth-child(1){left:2px;top:2px;width:22px;height:22px} .s2-layic.l-two i:nth-child(2){left:18px;top:8px;width:22px;height:22px} .s2-layic.l-two i:nth-child(3){display:none}
.s2-layic.l-three i:nth-child(1){left:10px;top:0;width:22px;height:20px} .s2-layic.l-three i:nth-child(2){left:2px;top:18px;width:14px;height:13px} .s2-layic.l-three i:nth-child(3){left:24px;top:18px;width:14px;height:13px}
.s2-choose{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.s2-chp{display:grid;gap:4px;align-content:start;border:0;background:none;padding:0;text-align:left;color:var(--ink);cursor:pointer;font:inherit;min-width:0}
.s2-chpic{position:relative;display:grid;place-items:center;aspect-ratio:1/1;background:var(--sunk);border:3px solid transparent;overflow:hidden}
.s2-chpic img{width:100%;height:100%;object-fit:cover}
.s2-chp[aria-pressed="true"] .s2-chpic{border-color:var(--green)}
.s2-tick{position:absolute;top:4px;right:4px;width:26px;height:26px;border-radius:50%;background:var(--green);color:var(--navy);display:grid;place-items:center}
.s2-chp:disabled{cursor:default} .s2-chp:disabled .s2-chpic{opacity:.55}
.s2-bad{color:var(--err)}
.s2-fok{display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 12px;border-radius:12px;background:var(--brand-soft)} .s2-fok .ico{color:var(--brand-text);flex:none}
.s2-fmore{display:grid;gap:8px} .s2-fmore summary{display:flex;gap:6px}
.s2-cardwrap{display:grid;min-width:0} .s2-fresh{pointer-events:none}

/* ===== iPhone and iPad in Safari (hotfix 24 October 2026, docs/hotfix-2026-10-24-ios-safari.md) =====
   <html data-ios> is set by index.html on iPhones and iPads only (any browser there is Apple's WebKit), so nothing here reaches
   Android, the Android app or a computer. */
/* IOS-1: Safari zooms the page in when a text box under 16 px is tapped (and leaves it zoomed). Boxes are at least 16 px there.
   :where() keeps this rule as weak as "html[data-ios] input", so it beats the small sizes (label.f 13 px inherited, .i, .ask-in textarea,
   search boxes) but a bigger box's own rule still wins (.qs .i 17 px, .stepper.big input 18 px, .bid-box .bid-input 20 px).
   max(16px,1em): 1em is the size the box would have inherited. The one small rule stronger than this one is listed after it. */
html[data-ios] :where(input:not([type=checkbox],[type=radio],[type=range],[type=button],[type=submit],[type=reset],[type=file],[type=color],[type=image]),select,textarea){font-size:max(16px,1em)}
html[data-ios] .hp-special .i{font-size:16px}
/* iPhone and iPad: the New look and the Store v2 draw these two boxes at 14-15 px, which makes Safari zoom in on a tap; 16 px stops that (the Classic look is gone, so every iPhone now meets them) */
html[data-ios] .stepper input,html[data-ios] .k-scr .s5-findfield input{font-size:16px !important}
/* IOS-11: 100vh on an iPhone is the height with Safari's bars hidden, taller than what shows; dvh is what shows (vh above stays for older iPhones) */
html[data-ios] .auth{min-height:100dvh}
html[data-ios] .qs{min-height:min(640px,calc(100dvh - 150px))}
@media (max-width:560px){ html[data-ios] .qs{min-height:calc(100dvh - 170px)} }
@media (min-width:920px){ html[data-ios] .work .detail{max-height:calc(100dvh - var(--bar-h) - 32px)} }
/* IOS-14: pulling down at the top shows navy above the navy bar (device.js sets data-attop while the page is at the top); the page itself
   keeps its colour because <body> then covers the whole screen */
html[data-ios] body{min-height:100vh;min-height:100dvh}
html[data-ios][data-attop]:has(.appbar){background:var(--bar)}
/* IOS-4: Safari's text size (aA) 150 % is page zoom: an iPhone SE then lays the page out 250 px wide (213 px for the first SE). No phone is
   under 300 px wide at normal size, so these only change the page at that zoom (or a computer zoomed in a lot): rows wrap, fixed widths shrink. */
@media (max-width:299px){
  .botnav.lb-grow .botnav-in{grid-template-columns:repeat(5,minmax(0,1fr))}   /* five equal columns: a long one-word name ends in … instead of widening the bar */
  .botnav .ind{width:100%;max-width:56px}
  .botnav .lb{overflow:hidden;text-overflow:ellipsis}
  .mk-cats,:root[data-lang="si"] .mk-cats,:root[data-lang="ta"] .mk-cats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tiles{grid-template-columns:minmax(0,1fr)}
  .mk-tiles{grid-template-columns:minmax(0,1fr)}
  .market,.mk-pair{grid-template-columns:minmax(0,1fr)}   /* Shop: one wide row can't widen the whole page */
  .mk-prow .mk-thumb{width:44px;height:44px}
  .mk-pend{gap:6px}
  .tiles>:last-child:nth-child(odd){grid-column:auto}
  .fx-row{flex-wrap:wrap}
  /* one-line rows that Sinhala and Tamil words make too wide: the words may wrap (rows that scroll sideways, like Shop's chips, still scroll) */
  .pill,.chip{white-space:normal}
  .oc-row{flex-wrap:wrap}
  .oc-row .nowrap{white-space:normal}
  .sc-tpl-list{grid-template-columns:minmax(0,1fr)}
  .sc-tpl-row>*{min-width:0;overflow-wrap:anywhere}
  .seg{width:100%!important}
  .seg button{white-space:normal;padding-inline:8px}
}
/* ===================== Store v2 round 5 (26 Oct 2026, approved): the live app's additions to store5.css (the boards' stylesheet, made by
   tools/store/port-r5.mjs). store5.css draws the boards; these lines make the same parts work with live data: buttons where the boards
   have links, rows that scroll sideways, full-width colour bands, the wave boxes, and the app's own top bar on the Store home. ===================== */
#sv2 .k-scr.s5{overflow:visible;background:transparent;display:block}
.k-scr .k-raw,.k-scr .s5-art,.k-scr .s5-cov,.k-scr .s5-pic,.k-scr .s5-circ,.k-scr .k-tart{display:contents}
.k-scr .k-tbox>svg.k-fit,.k-scr .k-tbox .k-tart>svg{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.k-scr .k-dk2 svg{width:100%;height:100%;display:block}
/* full-width colour bands under the main column's padding (the home wash, the category colour) */
.s5-bleed{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-left:calc(50vw - 50%);padding-right:calc(50vw - 50%)}
/* with the tablet rail the page is not centred in the window: the band is the page's own width plus its side padding, not the window's (it used to run 41 px past the right edge at 1024 to 1100) */
html[data-nav="rail"] .s5-bleed{margin-left:calc(50% - 50vw + var(--rail-w)/2);margin-right:calc(50% - 50vw + var(--rail-w)/2);padding-left:calc(50vw - 50% - var(--rail-w)/2);padding-right:calc(50vw - 50% - var(--rail-w)/2)}
/* rows that scroll sideways on phones: the next card peeks; snapping; no bar */
.k-scr .k-hrow.s5-hs{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:16px;scrollbar-width:none;margin-inline:-16px;padding:2px 16px 6px;overscroll-behavior-x:contain}
/* buttons centre their content: the tiles' words start at the top as on the boards (their links) */
.k-scr button.k-dl5,.k-scr button.k-subc{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:0}
.k-scr button.k-bn5{padding:0}
.k-scr .k-hrow.s5-hs::-webkit-scrollbar{display:none}
.k-scr .k-hrow.s5-hs>*{scroll-snap-align:start;flex:none}
.k-scr .k-chips.s5-chips{overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px}
.k-scr .k-chips.s5-chips::-webkit-scrollbar{display:none}
/* buttons where the boards draw links */
.k-scr .k-loc4{text-align:left;cursor:pointer}
.k-scr .k-srch4{padding:0 4px 0 14px}
.k-scr .k-srch4.k-big{padding:0 4px 0 18px}
.k-scr .k-srchb{display:flex;align-items:center;gap:10px;flex:1;min-width:0;height:100%;color:inherit;font:inherit;text-align:left}
.k-scr .k-srchb>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.k-scr .k-srch4:not(.k-big) .k-qin{display:none}
.k-scr .s5-cov-btn{display:block;width:100%;text-align:left}
.k-scr .s5-pimg{display:block}
.k-scr .s5-shopname{display:block;text-align:left;font-size:12.5px;color:var(--muted);max-width:100%}
.k-scr .k-bn5{text-align:left;font:inherit}
.k-scr .k-dl5{text-align:left;font:inherit}
.k-scr .k-place{cursor:pointer}
/* the wave in its box (05-design R5: the page colour, 1 px into the content below, never in the way of a tap) */
.s5-wavebox{position:absolute;left:0;right:0;bottom:-1px;display:block;line-height:0;pointer-events:none;z-index:4}
.s5-wavebox .k-wave{position:static;display:block;width:100%}
.s5-cardwave{z-index:2}
/* the Store home on phones: the app's top bar sits on the mint wash (R4 note 6), so the top row reads as one header */
@media (max-width:599px){
  html[data-s5home] .appbar{background:var(--s5-top,#E8F7EF);color:#0F172A;border-bottom-color:transparent;--bar:var(--s5-top,#E8F7EF);--bar-ink:#0F172A;--bar-line:transparent}
  :root[data-theme="dark"][data-s5home] .appbar{--s5-top:#123A31;color:#F1F5F9;--bar-ink:#F1F5F9}
  :root[data-theme="dark"][data-s5home]{--s5-top:#123A31}     /* the colour behind the status bar on the home (the cap), as the top bar's */
  html[data-s5home] .appbar .bar-actions>.icon-btn:not(.sc-bell){display:none}
  html[data-s5home] main{padding-top:0}
}
.s5-barbox{display:flex;align-items:center;gap:6px}     /* Scan QR and the bag side by side (a plain block stacked them, and the bag sat on the Scan QR button) */
.s5-qr{width:44px;height:44px;border-radius:22px;display:grid;place-items:center;background:rgba(255,255,255,.72);color:#0F172A;flex:none;border:0;cursor:pointer}
:root[data-theme="dark"] .s5-qr{background:rgba(30,41,59,.72);color:#F1F5F9}
/* the category headers' discs and search field (05-design "Category headers in dark mode") are the designer's tokens --hbF --hbR --hbI --sfF --sfS --sfT --sfI in store5.css */
/* ===================== end of Store v2 round 5 ===================== */
.k-scr .s5-showmore{width:100%;height:48px;margin-top:8px}
@media (min-width:600px){ .k-scr .s5-showmore{width:360px;align-self:center;margin:8px auto 0;display:flex} }
.k-scr.s5 .k-band{margin-left:-16px;margin-right:-16px}
.s5-wait{min-height:60vh}
/* Store v2 round 5: the category pages (store5pages.js) */
.k-scr .s5-ctop{overflow:hidden}
.k-scr .s5-par{transform:translateY(var(--s5-par,0px));will-change:transform}
.k-scr .s5-herocar{position:relative}
.k-scr .s5-herotrack{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.k-scr .s5-herotrack::-webkit-scrollbar{display:none}
.k-scr .s5-herotrack>*{flex:none;scroll-snap-align:start;scroll-snap-stop:always}
.k-scr .s5-heroskel{background:rgba(255,255,255,.18)}
.k-scr .s5-ctopw{overflow:hidden}
.k-scr .s5-ctopw .k-wrap{display:flex;flex-direction:column}
.k-scr .s5-body{position:relative;display:flex;flex-direction:column}
/* ===== the pinned header (26 Oct 2026, Ashan after Grab; 05-design "Sticky header (26 Oct)") =====
   The big header scrolls away; this compact bar is then pinned at the top (attribute s5pin on <html>), with its wave and the kinds chips once the page's
   top edge has met it (s5dock). It moves with transform and opacity only; the scroll listener sets two attributes and two variables, never a layout value. */
html[data-s5cap]::before{content:"";position:fixed;left:0;right:0;top:0;height:env(safe-area-inset-top,0px);background:var(--s5-cap,var(--bg));z-index:35;pointer-events:none}   /* the notch / Dynamic Island never sits over scrolling content */
.k-scr .s5-ctop{padding-top:env(safe-area-inset-top,0px)}     /* the colour runs up behind the status bar; Back, the title, Scan QR start below it */
.k-scr .s5-dock{position:fixed;left:0;right:0;top:0;z-index:30;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-6px);
  transition:opacity 140ms ease-out,transform 180ms cubic-bezier(.2,.8,.2,1),visibility 0s linear 180ms}
html[data-s5pin] .k-scr .s5-dock{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition:opacity 140ms ease-out,transform 180ms cubic-bezier(.2,.8,.2,1),visibility 0s}
@media (min-width:600px){ .k-scr .s5-dock{top:calc(var(--bar-h) + env(safe-area-inset-top,0px))} }
.k-scr .s5-dock{background:transparent}
.k-scr .s5-dockbars{padding:env(safe-area-inset-top,0px) 12px 12px;background:var(--cc)}
.k-scr .s5-dr1,.k-scr .s5-dr2{max-width:1240px;margin-inline:auto}
@media (min-width:600px){ .k-scr .s5-dockbars{padding-top:6px} }
.k-scr .s5-dockhome .s5-dockbars{background:var(--bg)}
.k-scr .s5-dr1{display:flex;align-items:center;gap:2px;height:52px}
.k-scr .s5-dr2{padding:0 4px}
.k-scr .s5-dloc{flex:1;min-width:0;display:flex;align-items:center;gap:6px;height:48px;padding:0 6px;text-align:left;color:var(--onc,var(--ink))}
.k-scr .s5-dlt{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.2}
.k-scr .s5-dlt b{font-size:16px;font-weight:700;letter-spacing:-.01em}
.k-scr .s5-dsub{font-size:12.5px;font-weight:600;opacity:.9}
.k-scr .s5-dsub small{font-size:inherit;font-weight:500;opacity:.8}
.k-scr .s5-dpin{display:grid;place-items:center;flex:none;width:28px;color:var(--gtext,#17A863)}
.s5-setloc{flex:none;font-size:13px;font-weight:700;color:var(--gtext,#17A863);padding:4px 2px;white-space:nowrap}
.k-scr .k-ctop .k-loc4 .s5-setloc,.k-scr .s5-dloc .s5-setloc{color:var(--onc,var(--gtext,#17A863))}
.k-scr .k-loc4[data-none] .k-t b{font-weight:600}
/* the home's compact bar: the page colour, not a category colour; the app's top bar scrolls away with the greeting so nothing is pinned twice */
.k-scr .k-ctop.s5-dockhome{background:transparent;color:var(--ink);--onc:var(--ink);--hbF:var(--field,#F1F5F4);--hbR:transparent;--hbI:var(--ink);--sfF:var(--field,#F1F5F4);--sfS:var(--line);--sfT:var(--muted);--sfI:var(--ink)}
.k-scr .s5-dockhome .s5-dockbars{border-bottom:1px solid var(--line)}
.k-scr.k-dk .k-ctop.s5-dockhome{--hbF:var(--field,#1E293B);--hbR:transparent;--hbI:var(--ink);--sfF:var(--field,#1E293B);--sfS:var(--line);--sfT:var(--muted);--sfI:var(--ink)}
@media (max-width:599px){ html[data-s5home] .appbar{position:relative} }
.k-scr .s5-dock .s5-wavebox{position:relative;bottom:auto;margin-top:-11px;opacity:0;transition:opacity 140ms ease-out}
html[data-s5dock] .k-scr .s5-dock .s5-wavebox{opacity:1}
.k-scr .s5-dockchips{background:var(--bg);padding:6px 16px 0;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity 120ms ease-in,transform 120ms ease-in,visibility 0s linear 120ms}
html[data-s5dock] .k-scr .s5-dockchips{opacity:1;visibility:visible;transform:none;transition:opacity 180ms cubic-bezier(.2,.8,.2,1),transform 180ms cubic-bezier(.2,.8,.2,1),visibility 0s}
.k-scr .s5-dockhome .s5-wavebox{display:none}
/* the filter / kinds chips pin under the pinned bar, on the page colour */
.k-scr .s5-stickychips{position:sticky;top:var(--s5-bar,0px);z-index:24;background:var(--bg);margin-inline:-16px;padding-inline:16px;padding-bottom:6px}
@media (min-width:600px){ .k-scr .s5-stickychips{margin-inline:0;padding-inline:0} }
/* Back to top (Grab f09): after about two screens of scrolling */
.k-scr .s5-totop{position:fixed;left:50%;bottom:calc(var(--nav-h) + 16px + env(safe-area-inset-bottom,0px));z-index:28;display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-radius:20px;background:var(--ink);color:var(--surface);font-size:13.5px;font-weight:700;
  box-shadow:0 6px 18px rgba(15,23,42,.28);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,10px);transition:opacity 160ms ease-out,transform 200ms cubic-bezier(.2,.8,.2,1),visibility 0s linear 200ms}
html[data-s5top] .k-scr .s5-totop{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0);transition:opacity 160ms ease-out,transform 200ms cubic-bezier(.2,.8,.2,1),visibility 0s}
body:has(.mk-bkbar) .k-scr .s5-totop{bottom:calc(var(--nav-h) + 84px + env(safe-area-inset-bottom,0px))}
@media (prefers-reduced-motion:reduce){ .k-scr .s5-dock,html[data-s5pin] .k-scr .s5-dock,.k-scr .s5-dock .s5-wavebox,.k-scr .s5-dockchips,html[data-s5dock] .k-scr .s5-dockchips,.k-scr .s5-totop,html[data-s5top] .k-scr .s5-totop{transition:none} }
html[data-motion="reduce"] .k-scr .s5-dock,html[data-motion="reduce"] .k-scr .s5-dock .s5-wavebox,html[data-motion="reduce"] .k-scr .s5-dockchips,html[data-motion="reduce"] .k-scr .s5-totop{transition:none}
html[data-s5home][data-s5pin]::before{background:var(--bg)}      /* the home's compact bar is on the page colour: so is the strip behind the status bar once it is pinned */
@media (min-width:600px){ html[data-s5cap]::before{display:none} }     /* the top bar of a tablet or computer already clears the notch */
/* loading: a gentle shimmer on the skeleton blocks (a light band sliding across, transform only); none with Reduce motion (05-design R11) */
.k-scr .k-sk{position:relative;overflow:hidden}
.k-scr .k-sk::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);transform:translateX(-100%);animation:s5-shim 1.5s ease-in-out infinite}
.k-scr.k-dk .k-sk::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent)}
@keyframes s5-shim{to{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){ .k-scr .k-sk::after{animation:none;display:none} }
html[data-motion="reduce"] .k-scr .k-sk::after{animation:none;display:none}
/* pages and sheets: the same short ease everywhere (160 to 240 ms, cubic-bezier(.2,.8,.2,1)); only transform and opacity */
@keyframes s5-pagein{from{opacity:0;transform:translateY(8px)}}
.k-scr.s5-catpage,.k-scr.s5-find,#sv2-home.k-scr{animation:s5-pagein 200ms cubic-bezier(.2,.8,.2,1) backwards}
.k-scr .s5-sheet,.k-scr .s5-dlg{animation:sheet-up .3s cubic-bezier(.2,.8,.2,1)}
.k-scr.s5-allwrap .s5-dim{animation:fade .2s ease-out}
@media (min-width:600px){ .k-scr .s5-sheet,.k-scr .s5-dlg{animation:s5-pagein 200ms cubic-bezier(.2,.8,.2,1)} }
@media (prefers-reduced-motion:reduce){ .k-scr.s5-catpage,.k-scr.s5-find,#sv2-home.k-scr,.k-scr .s5-sheet,.k-scr .s5-dlg,.k-scr.s5-allwrap .s5-dim{animation:none} }
html[data-motion="reduce"] .k-scr.s5-catpage,html[data-motion="reduce"] .k-scr.s5-find,html[data-motion="reduce"] #sv2-home.k-scr,html[data-motion="reduce"] .k-scr .s5-sheet,html[data-motion="reduce"] .k-scr .s5-dlg{animation:none}
.k-scr .s5-seeall{width:100%;height:48px;margin:20px 0 8px;display:flex;align-items:center;justify-content:center;gap:6px}
@media (min-width:600px){ .k-scr .s5-seeall{width:360px;align-self:center} }
.k-scr .s5-addrp,.k-scr .s5-empty,.k-scr .s5-note{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:24px 8px}
.k-scr .s5-findhead{position:sticky;top:0;z-index:5;background:var(--bg);padding-top:calc(8px + env(safe-area-inset-top,0px))!important}   /* below the notch / Dynamic Island */
@media (min-width:600px){ .k-scr .s5-findhead{top:calc(var(--bar-h) + env(safe-area-inset-top,0px));padding-top:8px!important} }
.k-scr .s5-findfield{display:flex;align-items:center;gap:8px}
.k-scr .s5-findfield input{flex:1;min-width:0;border:0;background:none;font:inherit;color:inherit;outline:none;height:40px}
.k-scr .s5-findfield input::-webkit-search-cancel-button,.k-scr .s5-findfield input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}   /* QA ios-ux-1: one clear button only (the page's own x), not also the browser's round one */
.k-scr .s5-seen{display:flex;flex-direction:column;align-items:center;gap:6px;width:76px}
.k-scr .s5-seen .k-ell{max-width:76px;font-size:12.5px}
.k-scr .s5-rank{width:20px;text-align:center;color:var(--gtext)}
.k-scr.s5-allwrap{position:fixed;inset:0;z-index:60;display:flex;align-items:flex-end;justify-content:center}
.k-scr.s5-allwrap .s5-dim{position:absolute;inset:0;background:rgba(15,23,42,.45)}
.k-scr .s5-sheet{position:relative;width:100%;max-height:92vh;display:flex;flex-direction:column;background:var(--sheet);border-radius:24px 24px 0 0}
@media (min-width:600px){ .k-scr.s5-allwrap{align-items:center} .k-scr .s5-dlg{position:relative;max-width:calc(100vw - 48px);max-height:88vh;display:flex;flex-direction:column;background:var(--sheet);border-radius:24px} }
.k-scr .s5-sheetbody{overflow-y:auto;padding:4px 16px 24px;display:flex;flex-direction:column;gap:18px}
@media (min-width:600px){ .k-scr .s5-sheetbody{padding:4px 24px 28px} }
.k-scr .s5-allhead{display:flex;align-items:center;gap:10px;padding:8px 16px 12px}
.k-scr .s5-cath{display:flex;align-items:center;gap:12px;width:100%;text-align:left;margin-bottom:10px}
.k-scr .s5-body{background:var(--bg)}
.k-scr .s5-herocar .k-dotsov{z-index:5}
#sv2 .k-scr.s5.s5-allwrap{display:flex;z-index:80;background:transparent}
.k-scr .s5-sheet{margin-top:64px}
.k-scr .s5-allsec+.s5-allsec,.k-scr .s5-quick+.s5-allsec{border-top:1px solid var(--line);padding-top:16px}
.k-scr .s5-qcard{display:flex;align-items:center;gap:10px;min-height:64px;border-radius:16px;padding:8px 12px;text-align:left}
.k-scr .s5-qcard .s5-qart{width:52px;height:48px;position:relative;flex:none}
.k-scr .s5-qcard b{font-size:16px;font-weight:700;display:block}
.k-scr .s5-qcard small{font-size:12.5px;color:var(--muted);font-weight:500}
.k-scr .s5-cath .s5-chev{width:34px;height:34px;border-radius:17px;background:var(--field);display:grid;place-items:center;flex:none}
html[data-s5page] main{padding-top:0}
/* QA live bug 1 (3 Nov 2026): "My orders to other shops" (admin, owner, driver) belongs to the Store home only. Above a category page, Offers, Open now or Search it pushed the whole page down by about 65 px and its card edge showed above the header */
html[data-s5page] #own-orders-wrap{display:none}
#sv2 .k-scr.s5.s5-find{background:var(--bg);margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:0 calc(50vw - 50%) 24px;min-height:70vh}
@media (min-width:600px){ #sv2 .k-scr.s5.s5-find{padding-inline:max(24px,calc(50vw - 50%))} }
.k-scr .k-join .k-btn{padding:0 14px;gap:6px;font-size:14px;height:44px}
/* Store v2 round 5: the owner's "Add a photo of your shop" card (R5-84) */
.cover-nudge{background:#FFF4D6;border-color:#FFE7A3;display:grid;gap:12px}
:root[data-theme="dark"] .cover-nudge{background:#3A3218;border-color:#4A3F1C}
.cover-nudge .cn-ico{width:40px;height:40px;border-radius:20px;background:#FFC93C;color:#0F172A;display:grid;place-items:center;flex:none}
.k-scr .s5-par{margin-inline:calc(50% - 50vw)}
html[data-nav="rail"] .k-scr .s5-par{margin-inline:calc(50% - 50vw + var(--rail-w)/2)}
.k-scr.k-dk .sv2-deal[data-navy]{background:#1E293B!important;box-shadow:inset 0 0 0 1px #334155}
/* round 5 checks (26 Oct): tile names never break inside a word; the shop name under a product is a 24 px target; a section heading
   with a timer and See all wraps on very narrow screens instead of pushing the page wider; the price pill stays inside its panel */
.k-scr .k-tlab{word-break:keep-all;overflow-wrap:normal}
.k-scr .s5-shopname{min-height:24px;display:flex;align-items:center}
.k-scr .k-sh{flex-wrap:wrap}
.k-scr .k-sh>.k-sp{min-width:min(140px,100%)}
.k-scr .k-bn5 .k-ptg2{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.k-scr .k-meta i{margin:0 2px}
.k-scr .k-meta b{margin-right:0}
/* round 5 checks: Sinhala and Tamil cards already split the line in two, so each stays one line (SV2-071); prices wrap at 250 px (REL-QA-4) */
#sv2 .k-scr.k-si .k-shop .k-meta,#sv2 .k-scr.k-ta .k-shop .k-meta{white-space:nowrap}
.k-scr .k-pp{flex-wrap:wrap;row-gap:0}
@media (max-width:299px){ html[data-s5home] .appbar .bar-actions{gap:2px} html[data-s5home] .s2-ask{margin-right:0} }
/* 250 px (iPhone SE with 150 % text): a tile name that cannot fit its tile may break as a last resort, never pushing the page wider (REL-QA-4) */
@media (max-width:299px){ #sv2 .k-scr .k-tlab{overflow-wrap:anywhere;hyphens:auto} }
/* round 5: the Store pages sit on white (the boards' page colour), so the bands and the waves read as on R5; dark stays navy */
:root:not([data-theme="dark"])[data-store-v2] body{background:#FFFFFF}
#sv2 .k-scr .s5-findfield:focus-within{border-color:#2BD47D;box-shadow:0 0 0 1px #2BD47D}
.k-scr .k-meta .k-star{color:#FFC93C;margin-right:2px;font-size:13px}

/* a cart line without a picture shows a small bag, not an empty box */
.cart-thumb-ph{display:grid;place-items:center;color:var(--muted);background:var(--sunk)}
/* QA copy only: the "test data" ribbon sits in the very bottom edge (under the home indicator), never on the bottom bar or on content */
:root[data-env="qa"] body::after{top:calc(env(safe-area-inset-top,0px) + 1px) !important;bottom:auto !important;left:auto !important;right:6px !important;transform:none !important;z-index:30;font-size:9px;padding:2px 7px;opacity:.85;pointer-events:none}   /* QA STR-45: at the top, never over the bottom bar or the pages' buttons */

/* Ask B+B steps aside while it would cover a button, a link or a field (assistant.js; Rich Clay phones) */
.ask-fab[data-clash]{opacity:0;pointer-events:none;transition:opacity 150ms ease-out}

/* Address search hotfix (31 Oct 2026): our own box and suggestion list, in the page flow so a pop-up can never hide it */
.ps{display:grid;gap:4px;min-width:0}
.ps-list{margin:0;padding:4px;list-style:none;max-height:40vh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.ps-list li{display:flex;flex-direction:column;justify-content:center;gap:1px;min-height:48px;touch-action:manipulation;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:14px;color:var(--ink);overflow-wrap:anywhere}
.ps-list li.hi,.ps-list li:hover{background:var(--sunk)}
.ps-list li:active{background:color-mix(in srgb,var(--brand) 18%,var(--sunk))}
.ps-list li[aria-selected=true]{box-shadow:inset 3px 0 0 var(--brand)}
.ps-list li b{font-weight:600}
.ps-status{min-height:0}.ps-status:empty{display:none}
.gplace>.ps{background:none;border:0;box-shadow:none;overflow:visible;min-height:0}
.gplace>.ps:focus-within{box-shadow:none}

/* ---------- Exclusive Plus, step 1 (31 Oct 2026). All new classes are .exp-*; nothing here draws while the switch is off.
   Partner colour (--exp-c, --exp-on) is used only on the banner, the booster cards and the card's banner strip. ---------- */
.exp-banner{position:relative;height:84px;border-radius:14px;overflow:hidden;background:var(--exp-c,var(--sunk));margin:-4px -4px 0}
.exp-banner.exp-tall{height:auto;aspect-ratio:8/3;margin:0}
.exp-banner img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.exp-card .exp-banner{margin:-14px -14px 0;border-radius:14px 14px 0 0;height:64px}
.exp-rule{font-size:12px}
.exp-open{background:var(--brand-soft);color:var(--brand-text)}
.exp-top{display:grid;gap:12px;min-width:0}
.exp-offers{display:grid;gap:10px}
.exp-live{font-size:12px}
.exp-eyebrow{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.exp-follow{display:grid;gap:8px}
.exp-boosters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.exp-booster{display:grid;grid-template-rows:auto 1fr;overflow:hidden;border-radius:14px;background:var(--surface);color:var(--ink);border:1px solid var(--line);min-width:0}
.exp-bpic{aspect-ratio:16/10;background:var(--exp-c,var(--sunk));color:var(--exp-on,var(--muted));display:grid;place-items:center;overflow:hidden}
.exp-bpic img{width:100%;height:100%;object-fit:cover;display:block}
.exp-bt{display:grid;gap:2px;padding:10px 12px;align-content:start}
.exp-bt b{font-size:15px;overflow-wrap:anywhere}
.exp-links{display:flex;flex-wrap:wrap;gap:8px}
.exp-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:99px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font-size:14px;font-weight:600;text-decoration:none}
.exp-h{font-size:17px;margin:0}
.exp-edit{padding-top:6px;border-top:1px solid var(--line)}
.exp-note{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:var(--warn-soft);color:var(--ink)}
.exp-slots{display:grid;gap:8px}
.exp-slot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;min-height:56px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface)}
.exp-slot-btn,.exp-edit .btn.sm{min-height:44px}
.exp-linkrow{display:grid;grid-template-columns:minmax(0,130px) minmax(0,1fr) auto;gap:8px;align-items:center}
.exp-swatch{width:44px;height:44px;padding:2px;border:1px solid var(--line-2);border-radius:10px;background:var(--surface)}
.exp-preview{border:1px dashed var(--line-2)}
.exp-bimg{width:100%;max-height:160px;object-fit:cover;border-radius:12px}
@media (max-width:420px){.exp-linkrow{grid-template-columns:minmax(0,1fr) auto}.exp-linkrow select{grid-column:1/-1}}
.exp-card .btn.sm,.exp-card .linkbtn{min-height:44px}
.exp-card .exp-join{min-width:88px}
.exp-swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:260px}
.exp-sw{min-height:44px;border-radius:50%;aspect-ratio:1;border:2px solid transparent;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}
.exp-sw[aria-pressed="true"]{outline:3px solid var(--ink);outline-offset:2px}
/* ===== Notifications list and bell (31 October 2026): the same in both looks ===== */
.notif-bell{position:relative}
.notif-dot{position:absolute;top:8px;right:9px;width:10px;height:10px;border-radius:50%;background:var(--plus);border:2px solid var(--surface)}
.notif-dot.static{position:static;display:inline-block}
.notif-row.unread b{font-weight:800}
.notif-row .sub{display:block}
/* ===== Order status as a full page on phones (31 October 2026, switch order_status_page) ===== */
@media (max-width:599px){
  .drawer.pagefull{width:100vw;max-width:none;height:100dvh;border-radius:0}
  .drawer.pagefull .modal-head::before{display:none}
  .drawer.pagefull .modal-head{padding-top:calc(8px + env(safe-area-inset-top,0px))}
  .drawer.pagefull .modal-head h3{font-size:20px}
}

/* QA int-1 (1 Nov 2026): the "Send with fewer than 5 products" button is a full 44 px tap target (and wraps rather than runs off the screen) */
#sc-submit-few,#sc-submit,#sc-building{min-height:44px}
#sc-submit-few{white-space:normal;text-align:center;max-width:100%}

/* ---------- Settings page (19 Nov 2026, the approved accordion canvas): search + On right now + jump list, six accordion sections ----------
   Phone and tablet: one column (search, On right now, then the sections). From 1100 px: the sections on the left, a side column on the right.
   Inside an open section: one column on phones, two from 768 px; an item alone in its row takes the whole width (setlayout.js marks it .span). */
.set-wrap{display:grid;gap:14px;grid-template-columns:minmax(0,1fr);align-items:start}
.set-wrap [hidden]{display:none!important}
.set-rail,.set-main{display:grid;gap:14px;min-width:0;align-content:start}
.set-jump{display:none}
@media (min-width:1100px){
  .set-wrap{grid-template-columns:minmax(0,1fr) 360px;gap:24px}
  .set-rail{grid-column:2;grid-row:1;position:sticky;top:calc(var(--bar-h, 64px) + 12px)}
  .set-main{grid-column:1;grid-row:1}
  .set-jump{display:grid;padding:6px;gap:2px}
  .set-jump a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 12px;border-radius:12px;color:var(--ink);text-decoration:none;font-weight:600;font-size:14px}
  .set-jump a span{font-size:12.5px;font-weight:400;color:var(--muted);text-align:right}
  .set-jump a[aria-current="true"]{background:var(--brand-soft)}
}
.set-search{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 6px 0 16px;border-radius:26px;border:1px solid var(--line);background:var(--surface);color:var(--muted)}
.set-search:focus-within{outline:2px solid var(--focus);outline-offset:2px}
.set-search input,.set-search input:focus,.set-search input:focus-visible{flex:1;min-width:0;border:0;background:transparent;box-shadow:none;font-size:16px;color:var(--ink);outline:none;min-height:44px;padding:0}
.set-search input::-webkit-search-cancel-button{display:none;-webkit-appearance:none}
.set-clear{width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
#set-q-count{margin:-4px 4px 0}
.set-onnow{padding:18px 20px 8px;display:grid;gap:8px}
.set-onnow h2{margin:0;font-size:15px;display:flex;align-items:center;gap:8px}
.set-onnow p{margin:0}
.set-onlist{list-style:none;margin:0;padding:0;display:grid;column-gap:20px}
@media (min-width:600px) and (max-width:1099px){ .set-onlist{grid-template-columns:repeat(2,minmax(0,1fr))} .set-onlist li:last-child:nth-child(odd){grid-column:1 / -1} }
.set-onlist li{display:flex;align-items:center;gap:16px;min-height:64px;padding:10px 0;border-top:1px solid var(--line)}
.set-onname{flex:1;min-width:0;display:grid;gap:4px;justify-items:start;font-size:14px;line-height:1.35}
.set-onname b{font-weight:600}
.set-onname .pill{font-size:11.5px;padding:2px 8px}
.set-offbtn.btn{flex:none;min-height:44px;padding:0 16px;background:transparent;border:1px solid var(--line-2)}
.card.set-sec{padding:0;display:block;border-radius:20px}
.set-h{margin:0;font-size:inherit}
.set-head{display:flex;align-items:center;gap:12px;width:100%;min-height:68px;padding:12px 16px;border:0;background:none;color:var(--ink);text-align:left;font:inherit;cursor:pointer;border-radius:20px}
.set-head:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.set-ic{flex:none;width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand-text);display:inline-flex;align-items:center;justify-content:center}
.set-tt{flex:1;min-width:0;display:grid;gap:2px}
.set-tt b{font-size:16px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.set-tt>span{font-weight:400}
.set-chev{flex:none;color:var(--muted);display:inline-flex;transition:transform .15s}
.set-chev.up{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){ .set-chev{transition:none} }
.pill.set-unsaved{background:var(--err-soft);color:var(--err)}
.pill.set-carepill{background:var(--warn-soft);color:var(--warn)}
.set-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:4px 12px 16px}
@media (min-width:768px){ .set-body{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:4px 20px 22px} .set-item.span{grid-column:1 / -1} }
@media (max-width:767px){ .set-body .set-item .panel{padding:18px} }
@media (max-width:399px){ .set-body{padding:0 6px 10px} .set-body .set-item .panel{padding:14px} }   /* small phones: the panels keep the room they had before the accordion */
.set-item{position:relative;display:flex;flex-direction:column;gap:12px;min-width:0}
/* roomier panels (Ashan, 20 Nov 2026): field names clear and on their own line, help in plain text under them, fields in roomy columns */
.set-item .panel{gap:18px;padding:22px;line-height:1.5}
.set-item label.f,.set-item div.fld{gap:6px;font-size:14px;font-weight:700;color:var(--ink)}
.set-item label.f .small,.set-item div.fld .small,.set-item label.f .muted,.set-item div.fld>span.small{font-size:13px;font-weight:400;color:var(--muted);line-height:1.45}
.set-item .grid2:not(.es-settings){grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:22px 28px;align-items:end}
.set-item .row{row-gap:10px}
.set-item:not(:has(.panel)){display:none}
.set-item>.panel,.set-item>form.panel,.set-item>.grid2{flex:1 1 auto}
.set-item:has(>.set-care)>:nth-last-child(3){border-bottom-left-radius:0;border-bottom-right-radius:0}
.set-item .switch input{inset:-8px -2px;width:calc(100% + 4px);height:calc(100% + 16px)}   /* a 44 px tap area around the switch */
.set-item .btn{min-height:44px}
.set-tools{position:absolute;top:6px;right:6px;display:flex;align-items:center;gap:4px}
.set-info{width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.set-info:hover{background:var(--line)}
.set-info:focus-visible{outline:2px solid var(--focus)}
.set-item>.panel:first-child>h3:first-child,.set-item>.panel:first-child>b:first-child,.set-item>form.panel:first-child>h3:first-child,
.set-item>.panel:first-child>.spread:first-child,.set-item>.grid2:first-child>.panel:first-child>b:first-child{padding-right:48px}
.set-item[data-careful="1"]>.panel:first-child>h3:first-child,.set-item[data-careful="1"]>.panel:first-child>.spread:first-child{padding-right:124px}
.set-care{display:flex;gap:8px;align-items:flex-start;margin-top:-13px;padding:12px 22px;border:1px solid var(--line);border-top:0;border-radius:0 0 14px 14px;background:var(--warn-soft);color:var(--warn);font-size:13px;line-height:1.4}
.set-care svg{flex:none;margin-top:1px}
.set-care-box{margin:0;border:0;border-radius:14px;font-size:14px}
.set-care-box b{display:block;margin-bottom:2px}
.set-infobody{display:grid;gap:12px}
.set-infobody h4{margin:4px 0 0;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.set-infobody p{margin:0;line-height:1.5}
.set-who{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.set-who li{display:flex;gap:12px;padding:12px 14px;align-items:flex-start}
.set-who li+li{border-top:1px solid var(--line)}
.set-who li>span:last-child{display:grid;gap:2px;min-width:0}
.set-whoic{flex:none;width:36px;height:36px;border-radius:12px;background:var(--brand-soft);color:var(--brand-text);display:inline-flex;align-items:center;justify-content:center}
.set-off{padding:12px 14px;border-radius:14px;background:var(--bg)}
.set-note{margin:0 4px}
.set-body>.set-note{grid-column:1 / -1}
.set-item .pill{white-space:nowrap}
.es-settings{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));align-items:stretch}   /* B+B's agreement details: one column on phones (was squashed) */
#sc-settings label.f{font-weight:600}

/* ===== What's new card (3 November 2026): top of the Menu and once on Home for customers; Classic look, light and dark ===== */
.wn-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:18px;padding:14px 16px;margin:0 0 12px}
.wn-art{width:112px;height:auto;flex:none}
.wn-body{display:grid;gap:6px;min-width:0}
.wn-body h3{margin:0;font-size:17px;overflow-wrap:anywhere}
.wn-body p{margin:0;overflow-wrap:anywhere;line-height:1.5}
.wn-tag{justify-self:start;max-width:100%;white-space:normal}
.wn-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.wn-btns .btn{min-height:44px;min-width:44px;white-space:normal;text-align:center;line-height:1.25}
@media (max-width:430px){.wn-card{grid-template-columns:minmax(0,1fr);padding:12px 14px}.wn-art{width:96px}.wn-btns .btn{flex:1 1 130px}}
.modal .wn-card{margin:0 0 10px}
@media (min-width:600px){.wn-card.wn-home{max-width:560px}}   /* no empty stretch on tablet and laptop: as wide as it needs, left edge with the cards beside it */
/* owner Products: a product card's buttons (Not today, Share, Edit) wrap as whole buttons, never one letter to a line (Sinhala Share at 360) */
.pr-acts .btn{white-space:nowrap;overflow-wrap:normal;word-break:keep-all}

/* ===== QA batch 1 (10 Nov 2026): the welcome screen fits an iPhone SE (375 x 667) without scrolling ===== */
@media (max-height:720px){
  .auth.welcome{padding-top:calc(14px + env(safe-area-inset-top,0px));padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
  .welcome .auth-card{gap:10px}
  .welcome .wl-stage{min-height:236px}
  .welcome .wl-ico{width:72px;height:72px;border-radius:24px}
  .welcome .wl-slide{gap:8px}
  .welcome .wl-slide h2{font-size:23px;margin-top:2px}
  .welcome .wl-slide p{font-size:15px}
  .welcome .btn.lg{min-height:46px}
}
@media (max-height:600px){
  .welcome .wl-stage{min-height:204px}
  .welcome .wl-ico{width:56px;height:56px;border-radius:18px}
  .welcome .wl-ico svg{width:30px;height:30px}
  .welcome .auth-card>img{width:32px!important}
  .welcome .wl-slide h2{font-size:21px}
}

/* QA batch 2 (11 Nov 2026): the floating bars (bottom tab bar, Checkout bar, cart button, selection bars, Back to top) never cover the end of a page.
   barspace.js measures how much of the screen's bottom they take (--bars-h, from the screen edge to the top of the highest bar) and the page leaves that room, plus a gap. */
html{scroll-padding-bottom:var(--bars-h,0px)}
html[data-bars] main{padding-bottom:max(calc(var(--bars-h,0px) + 24px),calc(96px + env(safe-area-inset-bottom,0px))) !important}

/* QA batch 6 (12 Nov 2026): a closed shop's row in the older Store list is grey, still readable and tappable (text stays at 4.5:1 or better) */
.st-shop.closed{background:#E7E7E5}
.st-shop.closed .avatar{filter:grayscale(1)}
:root[data-theme="dark"] .st-shop.closed{background:#202327}

/* ===== B+B Plus Card, new look (16 Nov 2026). Look only. Boards: docs/features/2026-11-plus-card/design/new-look/ (V3: W*.dc.html, v3.css) =====
   One smooth gradient and one soft sheen per tier, no pattern. Sizes are written in --u (1 unit = 1/358 of the card width), so the same face
   scales from a 288 px phone card to a 540 px computer card. Tier looks are driven by the class t1..t4 (bronze, silver, gold, platinum). */
.pcn-card,.pcn-shop{--u:calc(100cqw / 358);position:relative;width:100%;max-width:540px;aspect-ratio:358 / 226;border-radius:18px;overflow:hidden;container-type:inline-size;isolation:isolate;
  font-family:var(--f-body);box-shadow:var(--edge,inset 0 1px 0 rgba(255,255,255,.4)),0 12px 24px -8px rgba(15,23,42,.35),0 2px 5px rgba(15,23,42,.12)}
.pcn-card{--sheen:.26;--sheenx:62%;color:var(--ink);background:var(--g);--edge:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(15,23,42,.12)}
.pcn-card.t1{--g:linear-gradient(100deg,#74421F 0%,#864F2B 40%,#8F5730 70%,#935A32 100%);--ink:#FFFFFF;--sheen:.12;--sheenx:62%;--m1:#F6C79A;--m2:#D9915C;--mm:#EBA977;--e-hi:rgba(0,0,0,.3)}
.pcn-card.t2{--g:linear-gradient(100deg,#A5B0BF 0%,#E8EDF3 36%,#C2CBD7 62%,#9DA9B9 100%);--ink:#0F172A;--sheenx:40%;--m1:#FFFFFF;--m2:#B9C3D1;--mm:#E3E8EF;--e-hi:rgba(255,255,255,.6)}
.pcn-card.t3{--g:linear-gradient(100deg,#D9A21A 0%,#FFE27A 38%,#F2BE2E 64%,#DAA11A 100%);--ink:#0F172A;--sheenx:42%;--m1:#FFE08A;--m2:#E3A812;--mm:#F5C542;--e-hi:rgba(255,255,255,.55)}
.pcn-card.t4{--g:linear-gradient(100deg,#26355A 0%,#111B33 46%,#0A1020 100%);--ink:#FFFFFF;--sheen:.12;--sheenx:58%;--m1:#FFFFFF;--m2:#C9D3E3;--mm:#EEF3FA;--e-hi:rgba(0,0,0,.45)}
.pcn-card::after,.pcn-shop::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(105deg,transparent calc(var(--sheenx) - 24%),rgba(255,255,255,var(--sheen)) var(--sheenx),transparent calc(var(--sheenx) + 20%))}
.pcn-in{position:absolute;left:0;right:0;top:0;bottom:calc(var(--u) * 6);z-index:1;padding:calc(var(--u) * 16);display:flex;flex-direction:column;justify-content:space-between;gap:calc(var(--u) * 6);min-width:0}
.pcn-tp{display:flex;align-items:flex-start;justify-content:space-between;gap:calc(var(--u) * 10);min-height:calc(var(--u) * 36)}
/* the B+B mark: one colour, drawn straight on the card (a mask of the logo file), never on a white tile */
.pcn-mk{display:block;flex:none;width:calc(var(--u) * 34);height:calc(var(--u) * 34);background:var(--ink,var(--sf));-webkit-mask:url(../../assets/logo.png) center/contain no-repeat;mask:url(../../assets/logo.png) center/contain no-repeat}
.pcn-bd{height:calc(var(--u) * 36);background:linear-gradient(180deg,#1B2740,#0F172A);border-radius:calc(var(--u) * 10);padding:0 calc(var(--u) * 10);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--u) * 3);flex:none;min-width:calc(var(--u) * 72);box-shadow:0 0 0 1px rgba(255,255,255,.18),0 2px 4px rgba(15,23,42,.28)}
.pcn-bd .tn{font:800 calc(var(--u) * 12)/1 var(--f-body);background:linear-gradient(180deg,var(--m1),var(--m2));-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:.02em}
.pcn-ps{display:flex;gap:calc(var(--u) * 3)}
.pcn-ps i{display:block;width:calc(var(--u) * 11);height:calc(var(--u) * 11);border-radius:calc(var(--u) * 1.5);background:linear-gradient(var(--mm),var(--mm)) center/calc(var(--u) * 3.4) 100% no-repeat,linear-gradient(var(--mm),var(--mm)) center/100% calc(var(--u) * 3.4) no-repeat}
.pcn-ps i.o{opacity:.26}
.pcn-md{display:flex;flex-direction:column;min-width:0}
.pcn-md .k{font:500 calc(var(--u) * 11)/1.3 var(--f-body);letter-spacing:.08em;text-transform:uppercase;opacity:.9}
.pcn-md .big{font:600 calc(var(--u) * 30)/1.2 var(--f-body);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 1px 0 var(--e-hi,transparent)}
.pcn-bm{display:flex;align-items:flex-start;justify-content:space-between;gap:calc(var(--u) * 12);min-width:0}
.pcn-bm .l{display:flex;flex-direction:column;min-width:0;flex:1}
.pcn-bm .nm{font:300 calc(var(--u) * 15)/calc(var(--u) * 20) var(--f-body);letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 0 var(--e-hi,transparent)}
.pcn-bm .no{font:300 calc(var(--u) * 15)/calc(var(--u) * 20) var(--f-body);letter-spacing:.16em;font-variant-numeric:tabular-nums;white-space:nowrap;text-shadow:0 1px 0 var(--e-hi,transparent)}
.pcn-bm .sn{font:300 calc(var(--u) * 13)/calc(var(--u) * 20) var(--f-body);letter-spacing:.06em;white-space:nowrap;flex:none}
.pcn-strip{position:absolute;left:0;right:0;bottom:0;height:calc(var(--u) * 6);z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.pcn-strip i:nth-child(1){background:#2BD47D}.pcn-strip i:nth-child(2){background:#FFC93C}.pcn-strip i:nth-child(3){background:#FF8FB1}.pcn-strip i:nth-child(4){background:#0F172A}
.pcn-card.t4 .pcn-strip i:nth-child(4),.pcn-shop.dk .pcn-strip i:nth-child(4){background:#2A3A5C}
html[data-lang="si"] .pcn-md .k,html[data-lang="ta"] .pcn-md .k,html[data-lang="si"] .pcn-shop .k,html[data-lang="ta"] .pcn-shop .k{text-transform:none;letter-spacing:0}
.pcn-card.mini{width:36px;height:24px;border-radius:6px;flex:none;aspect-ratio:auto}
/* the shop card (co-branded): --sb = the shop's colour (after the contrast check), --sf = text, logo ring, mark (navy or white, picked by contrast) */
.pcn-shop{color:var(--sf);background:linear-gradient(135deg,color-mix(in srgb,var(--sb),#fff 14%),color-mix(in srgb,var(--sb),#000 12%));--sheen:.26;--sheenx:62%}
.pcn-shop.dk{--sheen:.14}
.pcn-shop .pcn-mk{background:var(--sf)}
.pcn-lg{width:calc(var(--u) * 36);height:calc(var(--u) * 36);border-radius:50%;box-shadow:inset 0 0 0 2px var(--sf);display:flex;align-items:center;justify-content:center;font:800 calc(var(--u) * 13)/1 var(--f-body);flex:none;overflow:hidden;color:var(--sf)}
.pcn-lg img{width:100%;height:100%;object-fit:contain;background:#fff;border-radius:50%;padding:2px;box-sizing:border-box;display:block}
.pcn-shop .pcn-tp{align-items:center;justify-content:flex-start;gap:calc(var(--u) * 12)}
.pcn-shop .tn{flex:1;min-width:0;display:flex;flex-direction:column}
.pcn-shop .tn b{font:800 calc(var(--u) * 15)/calc(var(--u) * 18) var(--f-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcn-shop .tn span{font:600 calc(var(--u) * 11)/calc(var(--u) * 14) var(--f-body);opacity:.88;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcn-shop .ct{display:flex;flex-direction:column;min-width:0}
.pcn-shop .ct .k{font:600 calc(var(--u) * 11)/calc(var(--u) * 14) var(--f-body);letter-spacing:.05em;text-transform:uppercase;opacity:.85}
.pcn-shop .ct .big{font:800 calc(var(--u) * 32)/calc(var(--u) * 36) var(--f-body);letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.pcn-shop .ct .sub{font:600 calc(var(--u) * 13)/calc(var(--u) * 16) var(--f-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the slim shop row / strip: a small version of the same card, same colour logic */
.pcn-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-height:56px;padding:10px 16px;border-radius:14px;color:var(--sf);min-width:0;
  background:linear-gradient(135deg,color-mix(in srgb,var(--sb),#fff 12%),color-mix(in srgb,var(--sb),#000 10%));box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 8px -2px rgba(15,23,42,.3)}
.pcn-row .pcn-lg{--u:1px;width:36px;height:36px;font-size:13px}
.pcn-row .pcn-mk{--u:1px;width:26px;height:26px;background:var(--sf)}
.pcn-row .t{display:flex;flex-direction:column;min-width:0;flex:1 1 0}
.pcn-row .pcn-lg,.pcn-row .pcn-mk{flex:none}
.pcn-row .t b{font:700 15px/20px var(--f-body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcn-row .t span{font:500 12px/16px var(--f-body);opacity:.92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcn-row .act{flex:1 1 100%;min-height:44px;border-radius:30px;border:0;font:700 14px/1 var(--f-body);background:var(--sf);color:var(--sb);padding:0 14px;cursor:pointer}
.pcn-row .lnk{background:none;border:0;padding:0 4px;min-height:44px;color:var(--sf);font:700 13px/1 var(--f-body);text-decoration:underline;cursor:pointer;white-space:nowrap}
/* My card screen: 16 px between groups, 8 px inside a group, tiles equal width, odd last item full width. Two columns when the drawer is wide (a computer). */
.pcn-wrap{container-type:inline-size;display:block}
.pcn-grid{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.pcn-col{display:grid;gap:16px;align-content:start;min-width:0}
.pcn-grp{display:grid;gap:8px;min-width:0}
@container (min-width:600px){ .pcn-grid.two{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)} }
.pcn-qr{background:#fff;color:#0F172A;border-radius:14px;padding:16px;display:grid;justify-items:center;gap:8px;text-align:center;border:1px solid var(--line)}
.pcn-qr .btn{min-height:44px}
.pcn-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pcn-tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px;min-width:0;min-height:96px}
.pcn-tile.g{background:var(--brand-soft);border-color:var(--brand)}
.pcn-tile .k{font:600 12px/16px var(--f-body);color:var(--muted)}
.pcn-tile .v{font:800 22px/1.15 var(--f-body);letter-spacing:-.01em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pcn-tile .s{font:400 12px/16px var(--f-body);color:var(--muted)}
.pcn-tile.odd{grid-column:1 / -1}
.pcn-h{margin:0;font:700 16px/1.3 var(--f-body)}
/* owner: Loyalty card */
.pcn-sw{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.pcn-sw button{height:44px;min-width:0;border-radius:12px;border:0;background:var(--c);box-shadow:inset 0 0 0 1px rgba(15,23,42,.22);cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--ci);font:700 12px/1 var(--f-body);position:relative}
.pcn-sw button[aria-pressed=true]{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.pcn-sw button.any{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.pcn-sw button.any[aria-pressed=true]{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--ink)}
.pcn-chk{display:flex;align-items:center;gap:8px;font:600 12px/16px var(--f-body)}
.pcn-chk b{font:800 11px/1 var(--f-body);padding:5px 8px;border-radius:20px;background:var(--brand-soft);color:var(--ink);white-space:nowrap}
.pcn-panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;gap:12px;min-width:0;align-content:start}
.pcn-logo{display:flex;align-items:center;gap:12px}
.pcn-logo .pcn-lg{--u:1px;width:44px;height:44px;font-size:15px;box-shadow:inset 0 0 0 2px var(--line-2);color:var(--ink)}

/* Plus Card look polish (16 Nov 2026) */
/* QR box when the QR library cannot load (offline): a short note instead of a blank white square */
.pcn-qrnote{width:100%;max-width:240px;min-height:120px;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;font:600 14px/1.4 var(--f-body);color:#0F172A}
.pcn-rows{display:grid;gap:8px;min-width:0}
.lc-intro{max-width:52ch}
@media (min-width:700px){ .lc-intro{max-width:none} }
/* computer: My card in two even columns (left: card, then tiles; right: QR), shop cards across the full width in two columns, an odd last one spans both */
@container (min-width:600px){
  .pcn-grid.two.my{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 1fr auto;align-items:start}
  .pcn-grid.two.my>.pcn-col{display:contents}
  .pcn-grid.two.my .pcn-card{grid-column:1;grid-row:1}
  .pcn-grid.two.my .pcn-tiles{grid-column:1;grid-row:2;align-self:stretch}
  .pcn-grid.two.my .pcn-qr{grid-column:2;grid-row:1 / span 2;align-self:stretch;align-content:center}
  .pcn-grid.two.my .pcn-grp{grid-column:1 / -1;grid-row:3}
  .pcn-grid.two.my .pcn-rows{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pcn-grid.two.my .pcn-rows>:last-child:nth-child(odd){grid-column:1 / -1}
}
/* dark mode: a faint light edge so a navy card or strip does not melt into the dark page (colours and the contrast flip are unchanged) */
:root[data-theme="dark"] .pcn-card,:root[data-theme="dark"] .pcn-shop,:root[data-theme="dark"] .pcn-row{outline:1px solid rgba(255,255,255,.18);outline-offset:0}
:root[data-theme="dark"] .pcn-strip i:nth-child(4){box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}

/* ---------- Excel export for super users' lists (export.js, switch admin_xlsx, 20 Nov 2026): a sheet on phones, a box from 600 px ---------- */
.tb-xl{min-height:40px;gap:6px}
.rl-btns .rl-xl{gap:6px}
.modal.xl:not(.bsheet){width:min(1000px,calc(100vw - 32px));max-width:min(1000px,calc(100vw - 32px))}
.xl .modal-body{padding-top:4px}
.xl-body{display:grid;gap:18px;grid-template-columns:minmax(0,1fr)}
.xl-body>section{min-width:0}
.xl-prev{order:1} .xl-cols{order:2}      /* phone: what goes in, the preview, then the columns */
.xl-body h4{font-size:15px;margin:0 0 8px;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.xl-n{font-weight:400;font-size:13px}
.xl-count{margin:0}
.xl-note{margin:6px 0 0}
.xl-which{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.xl-opt{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border:1px solid var(--line-2);border-radius:12px;cursor:pointer;background:var(--surface)}
.xl-opt.on{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.xl-opt input{width:20px;height:20px;margin:0;accent-color:var(--brand-text)}
.xl-colhead{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.xl-colhead h4{margin:0}
.xl-all{display:flex;gap:4px}
.xl-all .linkbtn{min-height:44px;padding:0 10px;font-weight:600}
.xl-list{list-style:none;margin:8px 0 0;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.xl-col{display:flex;align-items:center;gap:8px;padding:0 4px 0 12px;min-height:52px;border-top:1px solid var(--line);background:var(--surface)}
.xl-col:first-child{border-top:0}
.xl-col:not(.on) .xl-tick span{color:var(--muted)}
.xl-tick{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:52px;cursor:pointer}
.xl-tick input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--brand-text)}
.xl-tick span{overflow-wrap:anywhere}
.xl-move{display:flex;flex:none}
.xl-mv{width:44px;height:44px;display:grid;place-items:center;border:0;background:none;color:var(--ink);border-radius:10px;cursor:pointer}
.xl-mv:hover:not(:disabled){background:var(--sunk)}
.xl-mv:disabled{opacity:.3;cursor:default}
.xl-warn{color:var(--err);margin:8px 0 0}
.xl-tw{overflow:auto;max-height:260px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.xl-t{border-collapse:collapse;font-size:13px;min-width:100%}
.xl-t th,.xl-t td{padding:8px 10px;border-bottom:1px solid var(--line);border-right:1px solid var(--line);text-align:left;white-space:nowrap;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.xl-t th{position:sticky;top:0;background:var(--sunk);font-weight:600}
.xl-t td.xl-r{text-align:right;font-variant-numeric:tabular-nums}
.xl-t tr:last-child td{border-bottom:0}
.xl-hint{margin:8px 0 0}
.xl-btns{display:flex;gap:8px;flex-wrap:wrap}
.xl-btns .btn{flex:1 1 140px;min-height:48px;justify-content:center;gap:8px}
.xl-btns .xl-go{flex:2 1 220px}
@media (min-width:900px){
  .xl-body{grid-template-columns:minmax(260px,340px) minmax(0,1fr);grid-template-areas:"what what" "cols prev";align-items:start}
  .xl-what{grid-area:what} .xl-cols{grid-area:cols} .xl-prev{grid-area:prev}
  .xl-list{max-height:min(52vh,440px);overflow:auto}
  .xl-tw{max-height:min(52vh,440px)}
  .xl-btns{justify-content:flex-end} .xl-btns .btn{flex:0 0 auto;min-width:140px}
}
