/* QuickStore — shared stylesheet for the merchant app (and later the portal and ops).
   Tokens and components come from design/ui-kit.html (SPEC §20). Phone first; desktop from 1024px. */
:root{
  color-scheme: light;
  --ink:#10141c; --ink-2:#394152; --mute:#586072; --line:#d1d5de; --line-strong:#b3b9c6; --wash:#f1f2f6; --bg:#ffffff; --surface:#ffffff; --surface-2:#f7f8fa;
  --copper:#c8582a; --copper-soft:#fbeee7; --paid:#13855f; --paid-soft:#e5f4ee;
  --warn:#b7791f; --warn-soft:#fbf3e3; --danger:#c2362f; --danger-soft:#fbe9e8; --on-ink:#ffffff;
  --inv:#10141c; --on-inv:#ffffff; --on-inv-2:rgba(255,255,255,.72); --on-inv-soft:rgba(255,255,255,.14); --inv-hover:#262c38; --dark:#10141c; --ring:rgba(16,20,28,.12);
  --f-display:"Bricolage Grotesque","Helvetica Neue",Arial,sans-serif;
  --f-body:"Instrument Sans","Segoe UI",Roboto,system-ui,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --shadow-1:0 1px 2px rgba(16,20,28,.08),0 12px 24px -12px rgba(16,20,28,.25);
  --shadow-2:0 1px 2px rgba(16,20,28,.08),0 18px 36px -12px rgba(16,20,28,.22),0 60px 110px -30px rgba(16,20,28,.45);
  --canvas:#eceef3;
  /* Text shades of the accent colours: WCAG AA (≥ 4.5:1) on white and on their soft fills. */
  --paid-ink:#0e6e4e; --copper-ink:#a8461f; --warn-ink:#8a5a12; --copper-strong:#b04a20;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3{margin:0;font-family:var(--f-display);font-weight:800;letter-spacing:-.03em;line-height:1.1;text-wrap:balance}
.shopcard .shopname{margin:0;font-family:var(--f-display);font-weight:800;line-height:1.1;text-wrap:balance}
.chat-head h1.nm{font-family:var(--f-body)}
p{margin:0}
a{color:inherit}
img{max-width:100%;display:block}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* ---------- icons ---------- */
.ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic.s{width:16px;height:16px}.ic.l{width:24px;height:24px}

/* ---------- type ---------- */
.qs{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-display);font-weight:800;font-size:18px;letter-spacing:-.03em;text-decoration:none}
.mark{width:26px;height:26px;border-radius:7px;background:var(--inv);position:relative;flex:none;display:inline-block}
.mark::before{content:"";position:absolute;left:7px;top:5px;width:12px;height:15px;border-radius:6px 6px 1px 1px;background:var(--copper)}
.h-xl{font-family:var(--f-display);font-weight:800;font-size:32px;letter-spacing:-.035em;line-height:1.06}
.h-l{font-family:var(--f-display);font-weight:800;font-size:28px;letter-spacing:-.03em;line-height:1.1}
.h-m{font-size:18px;font-weight:700;line-height:1.25}
.lbl{font-size:14px;font-weight:600;color:var(--ink)}
.sub{font-size:14px;color:var(--mute);line-height:1.45}
.cap-u{font-family:var(--f-mono);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--mute)}
.mono{font-family:var(--f-mono);font-variant-numeric:tabular-nums}
.price{font-family:var(--f-mono);font-weight:600;font-size:14px;white-space:nowrap}
.link{color:var(--copper-ink);font-weight:700;text-decoration:none}
.link:hover{text-decoration:underline}

/* ---------- layout helpers ---------- */
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.stack{display:flex;flex-direction:column;gap:10px}
.stack.l{gap:16px}
.grow{flex:1;min-width:0}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}

/* ---------- components ---------- */
.card{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--surface)}
.card.soft{background:var(--wash);border-color:transparent}
.card.ok{background:var(--paid-soft);border-color:transparent;color:var(--paid-ink)}
.card.wn{background:var(--warn-soft);border-color:transparent;color:var(--warn-ink)}
.card.er{background:var(--danger-soft);border-color:transparent;color:var(--danger)}
.note{display:flex;gap:10px;align-items:flex-start;font-size:14px;font-weight:400;line-height:1.4}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 18px;border-radius:12px;background:var(--inv);color:var(--on-inv);
  font-weight:700;font-size:15px;letter-spacing:.02em;border:0;width:100%;cursor:pointer;text-decoration:none;font-family:var(--f-body)}
.btn:hover{background:var(--inv-hover)}
.btn.cu{background:var(--copper-strong)}.btn.cu:hover{background:#9c4019}
.btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}.btn.ghost:hover{background:var(--wash)}
.btn.alt{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.btn.alt:hover{background:var(--wash)}
.btn.dg{background:var(--surface);color:var(--danger);border:1px solid var(--line)}
.btn.sm{min-height:40px;font-size:14px;border-radius:10px;width:auto;padding:0 14px}
.btn[disabled],.btn.dis{opacity:.4;pointer-events:none}
.btn.loading{color:transparent;position:relative}
.btn.loading::after{content:"• • •";color:#fff;position:absolute;letter-spacing:.2em;animation:pulse 1.2s infinite}
@keyframes pulse{50%{opacity:.4}}
.chip{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--wash);color:var(--ink-2);white-space:nowrap;border:0}
.chip.ok{background:var(--paid-soft);color:var(--paid-ink)}
.chip.cu{background:var(--copper-soft);color:var(--copper-ink)}
.chip.wn{background:var(--warn-soft);color:var(--warn-ink)}
.chip.er{background:var(--danger-soft);color:var(--danger)}
.chip .ic{width:13px;height:13px;stroke-width:2.2}
button.chip{cursor:pointer;height:36px;padding:0 14px;font-size:13px}
button.chip:hover{background:var(--line)}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.av{width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:700;font-size:14px;color:#fff}
.thumb{width:48px;height:48px;border-radius:10px;flex:none;background:var(--wash);object-fit:cover;display:grid;place-items:center;color:var(--mute)}
.li{display:flex;gap:12px;align-items:center}
.li b{display:block;font-size:15px}
.bar{height:6px;border-radius:3px;background:var(--wash);overflow:hidden}.bar i{display:block;height:100%;background:var(--copper);border-radius:3px}

/* ---------- form fields ---------- */
.fld{display:flex;flex-direction:column;gap:6px}
.fld > label,.fld > .lbl{font-size:14px;font-weight:600}
.fld .hint{font-size:13px;color:var(--mute)}
.fld .err{font-size:13px;font-weight:600;color:var(--danger)}
.in{width:100%;min-height:52px;border:1px solid var(--line-strong);border-radius:12px;padding:12px 14px;background:var(--surface);font-size:16px;font-weight:600}
.in::placeholder{color:var(--mute);font-weight:400}
.in:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px var(--ring)}
.in.bad{border-color:var(--danger)}
textarea.in{min-height:88px;resize:vertical;font-weight:400}
select.in{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--ink-2) 50%),linear-gradient(135deg,var(--ink-2) 50%,transparent 50%);
  background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:40px}
.affix{display:flex;align-items:stretch;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);overflow:hidden}
.affix:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px var(--ring)}
.affix.bad{border-color:var(--danger)}
.affix > span{display:flex;align-items:center;padding:0 0 0 14px;color:var(--mute);font-weight:600;white-space:nowrap}
.affix > span.r{padding:0 14px 0 0}
.affix .in{border:0;box-shadow:none;min-width:0;flex:1}
/* The one thing a screen asks you to type is its largest element. */
.affix.xl{min-height:68px}
.affix.xl > span{font-family:var(--f-mono);font-size:20px;color:var(--ink-2)}
.affix.xl .in{font-family:var(--f-mono);font-size:26px;letter-spacing:.02em;padding-left:10px}
.otp{width:100%;height:64px;border:1.5px solid var(--line-strong);border-radius:12px;font-family:var(--f-mono);font-weight:600;font-size:30px;
  letter-spacing:.5em;text-indent:.5em;text-align:center;background:var(--surface)}
.otp:focus{outline:none;border-color:var(--copper);box-shadow:0 0 0 3px var(--copper-soft)}
.check{display:flex;align-items:center;gap:12px;cursor:pointer}

/* Option cards (radio) — O2 */
.opt{position:relative;display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--surface);cursor:pointer}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt b{display:block;font-size:16px}
.opt .sub{display:block}
.opt .icb{width:44px;height:44px;border-radius:12px;background:var(--wash);display:grid;place-items:center;flex:none}
.opt .tick{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--line-strong);flex:none;display:grid;place-items:center;color:#fff}
.opt .tick .ic{width:15px;height:15px;stroke-width:2.6;opacity:0}
.opt:has(input:checked){border:1.5px solid var(--ink);box-shadow:0 0 0 3px rgba(16,20,28,.06)}
.opt:has(input:checked) .icb{background:var(--copper-soft);color:var(--copper)}
.opt:has(input:checked) .tick{background:var(--paid);border-color:var(--paid)}
.opt:has(input:checked) .tick .ic{opacity:1}
.opt:has(input:focus-visible){outline:2px solid var(--copper);outline-offset:2px}

/* Toggle rows — O3 */
.tgrow{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface)}
.tgrow.rec{border-color:var(--copper)}
.tgrow b{font-size:15px}
.tg{appearance:none;width:48px;height:28px;border-radius:999px;background:var(--line-strong);position:relative;flex:none;cursor:pointer;transition:background .15s;margin:0}
.tg::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.tg:checked{background:var(--paid)}.tg:checked::after{left:23px}
.tg:disabled{opacity:.55;cursor:default}

/* Segmented control (radio) — O8 */
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px}
.seg label{position:relative;border:1px solid var(--line);border-radius:12px;padding:12px 6px;text-align:center;font-weight:700;font-size:15px;background:var(--surface);cursor:pointer}
.seg label small{display:block;font-weight:400;font-size:12px;opacity:.75}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label:has(input:checked){background:var(--inv);color:var(--on-inv);border-color:var(--inv)}
.seg label:has(input:focus-visible){outline:2px solid var(--copper);outline-offset:2px}

/* Day chips (checkbox) — O4, O7 */
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.days label{position:relative;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:700;font-size:14px;background:var(--wash);color:var(--ink-2);cursor:pointer}
.days input{position:absolute;opacity:0;pointer-events:none}
.days label:has(input:checked){background:var(--inv);color:var(--on-inv)}
.days label:has(input:focus-visible){outline:2px solid var(--copper);outline-offset:2px}

.cover{position:relative;height:150px;border-radius:14px;background:var(--wash);overflow:hidden;display:grid;place-items:center;color:var(--mute)}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cover .chip{position:absolute;right:10px;bottom:10px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow-1);height:34px;font-size:13px}

.qr{aspect-ratio:1;border-radius:14px;background:var(--surface);border:1px solid var(--line);padding:10px}
.qr svg{display:block;width:100%;height:100%}

/* ---------- onboarding shell ---------- */
.ob{min-height:100dvh;display:flex;flex-direction:column}
.ob-aside{display:none}
.ob-main{flex:1;display:flex;flex-direction:column;width:100%;max-width:560px;margin:0 auto;padding:12px 16px 0}
.ob-top{display:flex;align-items:center;gap:10px;min-height:44px}
.ob-top .count{margin-left:auto;font-size:13px;color:var(--mute);font-weight:600}
.ib{width:40px;height:40px;border-radius:50%;background:var(--wash);display:grid;place-items:center;flex:none;color:var(--ink);text-decoration:none}
.ob-body{display:flex;flex-direction:column;gap:14px;padding:14px 0 20px}
.ob-foot{position:sticky;bottom:0;margin-top:auto;background:linear-gradient(transparent,var(--surface) 24%);padding:20px 0 calc(14px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px}
.ob-foot .sub{text-align:center;font-size:13px}

@media (min-width:1024px){
  body:has(.ob){background:linear-gradient(90deg,var(--ink) 380px,var(--canvas) 380px)}
  .ob-aside .mark{background:#fff}
  .ob-card .ob-top > .qs{display:none}
  .ob{flex-direction:row;align-items:stretch}
  .ob-aside{display:flex;flex-direction:column;gap:28px;width:380px;flex:none;background:var(--dark);color:#fff;padding:40px 36px;position:sticky;top:0;height:100dvh}
  .ob-aside .qs{color:#fff}
  .ob-aside h2{font-size:34px;letter-spacing:-.035em}
  .ob-aside p{color:rgba(255,255,255,.72)}
  .ob-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
  .ob-steps li{display:flex;align-items:center;gap:12px;padding:9px 0;color:rgba(255,255,255,.55);font-weight:600;font-size:15px}
  .ob-steps li i{width:26px;height:26px;border-radius:50%;border:1.5px solid rgba(255,255,255,.3);display:grid;place-items:center;font-style:normal;font-family:var(--f-mono);font-size:12px;flex:none}
  .ob-steps li.done{color:rgba(255,255,255,.85)}
  .ob-steps li.done i{background:var(--paid);border-color:var(--paid)}
  .ob-steps li.now{color:#fff}
  .ob-steps li.now i{border-color:var(--copper);background:var(--copper)}
  .ob-aside .priv{margin-top:auto;display:flex;gap:10px;font-size:14px;color:rgba(255,255,255,.75)}
  .ob-main{max-width:none;padding:48px 64px;align-items:center;justify-content:flex-start}
  .ob-card{width:100%;max-width:560px;background:var(--surface);border-radius:20px;box-shadow:var(--shadow-1);padding:28px 32px}
  .ob-top{min-height:40px}
  .ob-foot{position:static;background:none;padding:12px 0 0}
  .h-xl{font-size:40px}
  .h-l{font-size:32px}
}

/* ---------- simple pages ---------- */
.page{max-width:560px;margin:0 auto;padding:20px 16px 40px;display:flex;flex-direction:column;gap:16px}
@media (min-width:1024px){.page{padding-top:56px}}
.center{text-align:center;align-items:center}

/* ---------- customer portal (SPEC §7, UI kit P02–P04, P24) ---------- */
.save-data{--f-display:"Helvetica Neue",Arial,sans-serif;--f-body:system-ui,"Segoe UI",Roboto,sans-serif}
.portal .price{font-family:var(--f-body);font-variant-numeric:tabular-nums;font-weight:700;font-size:15px}
.portal .mono{font-family:var(--f-body);font-variant-numeric:tabular-nums}
.pt{max-width:520px;margin:0 auto;padding:8px 16px 28px;display:flex;flex-direction:column;gap:18px;min-height:100dvh}
.pt-head{display:flex;align-items:center;gap:10px;min-height:48px}
.pt-head .t{font-weight:700;font-size:16px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pt-head .sp{flex:1}
.pt-head > .chip:not(.me-chip){display:block;flex:0 1 auto;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;line-height:26px}
.pt-grid,.pt-side,.pt-main{display:flex;flex-direction:column;gap:18px;min-width:0}
@media (max-width:1023px){.desk-only{display:none!important}}
.pt-list{display:flex;flex-direction:column;gap:16px}
.pdp{display:flex;flex-direction:column;gap:18px}
@media (max-width:1023px){.tiles > :last-child:nth-child(odd){grid-column:1/-1;min-height:76px}}
.shopcard{display:flex;gap:14px;align-items:center}
.shopcard .logo{width:64px;height:64px;border-radius:18px;overflow:hidden;background:var(--wash);flex:none;display:grid;place-items:center;color:var(--mute)}
.shopcard .logo img{width:100%;height:100%;object-fit:cover}
.shopcard h1,.shopcard .shopname{font-size:22px}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{position:relative;border:1px solid var(--line);border-radius:16px;padding:16px;min-height:104px;display:flex;flex-direction:column;gap:2px;background:var(--surface);text-decoration:none;color:var(--ink)}
.tile b{font-size:16px;margin-top:auto}
.tile .sub{font-size:13px}
a.tile:hover{border-color:var(--line-strong)}
.tile.on{background:var(--inv);border-color:var(--inv);color:var(--on-inv)}
.tile.on .sub{color:var(--on-inv-2)}
.tile.off{opacity:.45}
.paytile{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:16px;padding:16px;background:var(--copper-soft);text-decoration:none;color:var(--ink)}
.paytile b{font-size:16px;display:block}
.paytile .sub{color:var(--ink-2)}
.mini{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding:0 var(--pad,16px);scrollbar-width:none;margin:0 calc(var(--pad,16px) * -1);padding:2px var(--pad,16px) 6px}
.mini::-webkit-scrollbar{display:none}
.mini a{display:flex;flex-direction:column;gap:8px;flex:0 0 148px;scroll-snap-align:start;text-decoration:none;min-width:0;color:var(--ink)}
.mini a:hover img{transform:scale(1.03)}
.mini img,.mini .ph{width:100%;height:auto;aspect-ratio:1;border-radius:16px;object-fit:cover;flex:none;background:var(--wash);display:grid;place-items:center;color:var(--mute);transition:transform .25s ease}
.mini .ph{height:auto}
.mini a{overflow:hidden}
.mini .grow{display:flex;flex-direction:column;gap:2px}
.mini b{display:block;font-size:14px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}
.pcard{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);min-width:0}
.pcard .im{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--wash);display:grid;place-items:center;color:var(--mute)}
.pcard .im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pcard .im .chip{position:absolute;left:8px;top:8px;background:var(--surface)}
.pcard b{font-size:15px;line-height:1.3;margin-top:4px}
.pcard.out{color:var(--mute)}.pcard.out .im{opacity:.55}
.scrollchips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 calc(var(--pad,16px) * -1);padding:0 var(--pad,16px)}
.scrollchips::-webkit-scrollbar{display:none}
a.chip{text-decoration:none;height:36px;padding:0 14px;font-size:13px}
.chip.on{background:var(--inv);color:var(--on-inv)}
.more{grid-column:1/-1;display:flex;justify-content:center;padding:8px 0}
.gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 calc(var(--pad,16px) * -1);scrollbar-width:none;background:var(--wash)}
.gallery::-webkit-scrollbar{display:none}
.gallery img,.gallery .ph{flex:none;width:100%;aspect-ratio:1;object-fit:cover;scroll-snap-align:start;display:grid;place-items:center;color:var(--mute)}
.pdp-top{position:relative}
@media (max-width:1023px){.pdp-top:first-child{margin-top:-8px}}
.pdp-top .over{position:absolute;top:10px;left:0;right:0;display:flex;justify-content:space-between}
.pdp-top .over .ib{background:var(--surface);box-shadow:var(--shadow-1)}
.count-dots{position:absolute;bottom:10px;left:0;right:0;text-align:center}
.count-dots span{background:rgba(16,20,28,.6);color:#fff;font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px}
.vchips{display:flex;flex-wrap:wrap;gap:8px}
.vchips label{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:56px;min-height:48px;padding:6px 14px;border:1px solid var(--line);border-radius:12px;font-weight:700;font-size:15px;cursor:pointer;background:var(--surface)}
.vchips label small{font-size:12px;font-weight:600;color:var(--warn-ink)}
.vchips input{position:absolute;opacity:0;pointer-events:none}
.vchips label:has(input:checked){background:var(--inv);color:var(--on-inv);border-color:var(--inv)}
.vchips label:has(input:checked) small{color:#ffd9a0}
.vchips label:has(input:disabled){opacity:.45;text-decoration:line-through;cursor:default}
.vchips label:has(input:focus-visible){outline:2px solid var(--copper);outline-offset:2px}
.pt-foot{margin-top:auto;padding-top:20px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px;font-size:14px;color:var(--ink-2)}
.pt-foot .row{justify-content:flex-start}
.pt-foot a{color:inherit}
.hours{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;font-size:14px}
.hours .today{font-weight:700;color:var(--ink)}
.offline-note{display:none}
.offline .offline-note{display:flex}
.svc{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:12px;text-decoration:none;color:var(--ink)}
.svc img,.svc .ph{width:56px;height:56px;border-radius:12px;object-fit:cover;flex:none;background:var(--wash);display:grid;place-items:center;color:var(--mute)}
.svc b{display:block;font-size:15px}
.cta{position:sticky;bottom:0;background:linear-gradient(transparent,var(--surface) 22%);padding:18px 0 calc(12px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:10px;margin-top:auto}
.hero{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:16/10;background:var(--wash)}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.marketing{max-width:640px;margin:0 auto;padding:40px 16px;display:flex;flex-direction:column;gap:20px;min-height:100dvh;justify-content:center}

@media (min-width:1024px){
  .portal{background:var(--canvas)}
  .pt{max-width:1200px;padding:20px 32px 40px;gap:24px}
  .phone-only{display:none!important}
  .pt-grid{display:grid;grid-template-columns:380px minmax(0,1fr);gap:36px;align-items:start}
  .pt-side{position:sticky;top:20px;background:var(--surface);border-radius:20px;box-shadow:var(--shadow-1);padding:20px;gap:16px}
  .pt-main{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-1);padding:28px 32px}
  .tiles{grid-template-columns:repeat(4,1fr)}
  .tiles.three{grid-template-columns:repeat(3,1fr)}
  .tile{min-height:132px;padding:20px}
  .mini{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding:0;overflow:visible}
  .mini a{flex:none}
  .pgrid{grid-template-columns:repeat(4,1fr);gap:24px 18px}
  .scrollchips{margin:0;padding:0;flex-wrap:wrap}
  .pdp{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:40px;align-items:start;background:var(--surface);border-radius:20px;box-shadow:var(--shadow-1);padding:28px}
  .pdp .gallery{margin:0;border-radius:16px}
  .cta{position:static;background:none;padding:8px 0 0}
  .pt-foot{border-top:0;background:var(--surface);border-radius:20px;padding:20px 24px;box-shadow:var(--shadow-1);flex-direction:row;flex-wrap:wrap;justify-content:space-between}
  .pt-list{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-1);padding:24px 28px;display:flex;flex-direction:column;gap:18px}
}

/* ---------- ops console (UI kit D3: dark sidebar marks a different place) ---------- */
.ops{min-height:100dvh;display:flex;flex-direction:column;background:var(--canvas)}
.ops-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;background:var(--dark);color:#fff}
.ops-top .qs{color:#fff}.ops-top .mark{background:#fff}.ops-top .mark::before{background:var(--copper)}
.ops-top .burger{background:rgba(255,255,255,.12);color:#fff}
.ops-side{position:fixed;inset:0 auto 0 0;width:min(86vw,320px);z-index:30;background:var(--dark);color:#fff;padding:14px 12px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;overflow-y:auto;transform:translateX(-102%);visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
.ops-side.open{transform:none;visibility:visible;transition:transform .2s ease;box-shadow:var(--shadow-2)}
.ops-brand{display:flex;align-items:center;justify-content:space-between;padding:2px 8px}
.ops-side .qs{color:#fff}
.ops-side .mark{background:#fff}
.ops-side .mark::before{background:var(--copper)}
.ops-side .m-close{background:rgba(255,255,255,.12);color:#fff;border:0;cursor:pointer}
.ops-nav{display:flex;flex-direction:column;gap:2px;flex:1}
.ops-nav a,.ops-nav button{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 12px;border-radius:10px;color:rgba(255,255,255,.78);font-weight:600;font-size:15px;text-decoration:none;background:none;border:0;cursor:pointer;width:100%;text-align:left}
.ops-nav a.on{background:rgba(255,255,255,.14);color:#fff}
.ops-nav a.on .ic{stroke:var(--copper)}
.ops-nav a:hover,.ops-nav button:hover{color:#fff;background:rgba(255,255,255,.08)}
.ops-nav .chip{background:var(--copper);color:#fff;height:20px;padding:0 7px;margin-left:auto}
.ops-nav form{margin-top:auto;padding-top:12px;border-top:1px solid rgba(255,255,255,.12)}
.ops-main{flex:1;width:100%;max-width:980px;margin:0 auto;padding:20px 16px 40px;display:flex;flex-direction:column;gap:16px}
.ops-card{background:var(--surface);border-radius:16px;box-shadow:var(--shadow-1);padding:20px}
.ops-card h2{font-size:22px}
.setrow{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px 0;border-top:1px solid var(--line)}
.setrow:first-of-type{border-top:0}
.setrow .lbl{font-size:15px}
.setrow .sub{font-size:13px}
.setactions{display:flex;justify-content:flex-end;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.setactions .btn{width:auto;min-height:44px}
.req{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.req:first-of-type{border-top:0}
.req form{display:flex;gap:8px;flex-wrap:wrap}
.req form .in{flex:1;min-width:180px;min-height:44px}
.req .btn{width:auto;min-height:44px}
.ops-login{min-height:100dvh;display:grid;place-items:center;background:var(--dark);padding:16px}
.ops-login .ops-card{width:100%;max-width:420px;display:flex;flex-direction:column;gap:16px}
@media (min-width:1024px){
  .ops{flex-direction:row}
  .ops-top,.ops-side .m-close{display:none}
  .ops-side{position:sticky;top:0;width:248px;flex:none;height:100dvh;transform:none;visibility:visible;transition:none;padding:22px 14px;gap:22px;box-shadow:none}
  .ops-side .qs{margin:0}
  .ops-main{padding:36px 40px;max-width:1120px}
  .setrow{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:24px;align-items:start}
  .req{grid-template-columns:minmax(0,1fr) auto;align-items:center}
}

/* ---------- merchant app shell (UI kit D1: light sidebar, active item a white raised pill) ---------- */
.mapp{min-height:100dvh;display:flex;flex-direction:column;background:var(--canvas)}
.m-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;background:color-mix(in srgb,var(--surface) 94%,transparent);border-bottom:1px solid var(--line);backdrop-filter:saturate(1.4) blur(8px)}
.m-top-shop{flex:1;min-width:0;font-weight:700;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-top-chat{position:relative;background:var(--wash)}
.m-top-chat .cnt{position:absolute;top:-5px;right:-5px;height:20px;min-width:20px;padding:0 5px;font-size:12px;border:2px solid var(--surface);box-sizing:border-box}
.burger{width:44px;height:44px;border-radius:12px;border:0;background:var(--wash);display:grid;place-items:center;cursor:pointer;color:var(--ink);flex:none}
.burger:active{transform:scale(.96)}
.scrim{position:fixed;inset:0;z-index:25;background:rgba(16,20,28,.5);animation:fadein .2s ease}
@keyframes fadein{from{opacity:0}}
html.nav-open{overflow:hidden}
.m-side{position:fixed;inset:0 auto 0 0;width:min(86vw,320px);z-index:30;background:var(--surface);padding:14px 12px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-102%);visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
.m-side.open{transform:none;visibility:visible;transition:transform .2s ease;box-shadow:var(--shadow-2)}
.m-brand{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;padding:2px 8px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.m-brand .shop{grid-column:1;font-weight:700;font-size:14px;color:var(--mute);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-brand .m-close{grid-column:2;grid-row:1 / span 2;border:0;cursor:pointer}
.m-nav{display:flex;flex-direction:column;gap:2px;flex:1}
.m-grp{font-family:var(--f-mono);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);padding:14px 12px 4px}
.m-grp:first-child{padding-top:6px}
.m-nav a,.m-nav .m-out{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 12px;border-radius:10px;color:var(--ink-2);font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap;background:none;border:0;cursor:pointer;width:100%;text-align:left}
.m-nav a:hover,.m-nav .m-out:hover{background:var(--wash)}
.m-nav a.on{background:var(--inv);color:var(--on-inv)}
.m-nav a.on .ic{stroke:var(--copper)}
.m-nav .chip.cnt{margin-left:auto}
.m-nav form{margin-top:auto;padding-top:10px;border-top:1px solid var(--line)}
.m-main{flex:1;width:100%;max-width:960px;margin:0 auto;padding:18px 16px 40px;display:flex;flex-direction:column;gap:16px}
.m-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.m-head .btn{width:auto}
.m-list > *{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.m-list > *:first-child{border-top:0}
.m-list .thumb{width:52px;height:52px}
.m-list b{display:block;font-size:15px}
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.photos .ph{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;background:var(--wash)}
.photos .ph img{width:100%;height:100%;object-fit:cover}
.photos .ph form{position:absolute;top:6px;right:6px}
.photos .ph .ib{background:var(--surface);box-shadow:var(--shadow-1);border:0;cursor:pointer;width:34px;height:34px}
.photos label.add{aspect-ratio:1;border-radius:12px;border:1.5px dashed var(--line-strong);display:grid;place-items:center;text-align:center;color:var(--copper);cursor:pointer;font-weight:700;font-size:13px}
.vtable{width:100%;border-collapse:collapse}
.vtable th{text-align:left;font-size:12px;color:var(--mute);font-weight:600;padding:6px 6px 6px 0}
.vtable td{padding:6px 6px 6px 0;border-top:1px solid var(--line);vertical-align:middle}
.vtable .in{min-height:44px;padding:8px 10px}
.vtable td:first-child{font-weight:600}
.statuscard{display:flex;gap:14px;align-items:center}
@media (min-width:1024px){
  .mapp{flex-direction:row}
  .m-top,.m-brand .m-close,.scrim{display:none!important}
  .m-side{position:sticky;top:0;width:248px;flex:none;height:100dvh;transform:none;visibility:visible;transition:none;border-right:1px solid var(--line);background:var(--surface-2);padding:20px 12px;gap:6px;box-shadow:none;z-index:5}
  .m-brand{grid-template-columns:1fr;padding:0 8px 14px;gap:4px}
  .m-nav a{min-height:38px;font-size:14px}
  .m-grp{padding:12px 12px 3px}
  .m-nav a.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(16,20,28,.08),0 0 0 1px var(--line)}
  .m-main{padding:32px 40px 48px;max-width:1240px}
  .photos{grid-template-columns:repeat(4,1fr)}
}

/* ---------- chat (UI kit P18/P19, M06–M08) ---------- */
.av.a1{background:#b04a20}.av.a2{background:#13855f}.av.a3{background:#5b5bd6}.av.a4{background:#966312}.av.a5{background:#3d4554}.av.a6{background:#b0306a}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}
.kpi b{font-size:22px;font-family:var(--f-display)}
.chip.cnt{background:var(--copper-strong);color:#fff;height:20px;min-width:20px;padding:0 6px;justify-content:center}
.chat-head{display:flex;align-items:center;gap:10px;min-height:56px}
.chat-head b,.chat-head h1.nm{margin:0;font-family:inherit;font-weight:700;letter-spacing:0;line-height:1.3;display:block;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.presence{display:flex;align-items:center;gap:6px;font-size:13px}
.presence i{width:8px;height:8px;border-radius:50%;background:var(--line-strong);flex:none}
.presence.on i{background:var(--paid)}
.chat-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:600;color:var(--ink-2);background:var(--wash);border-radius:10px;padding:8px}
.chat-note .ic{width:16px;height:16px}
.ctxcard{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:8px 10px}
.ctxcard img,.ctxcard .ph{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none;background:var(--wash);display:grid;place-items:center;color:var(--mute)}
.ctxcard b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ctxcard .sub{font-size:12px}
.thread{display:flex;flex-direction:column;gap:4px;overflow-y:auto;flex:1;min-height:0;padding:6px 2px;overscroll-behavior:contain}
.msg{display:flex;flex-direction:column;max-width:82%;gap:2px}
.msg.inc{align-self:flex-start;align-items:flex-start}
.msg.out{align-self:flex-end;align-items:flex-end}
.msg + .msg{margin-top:4px}
.bub{padding:9px 13px;border-radius:18px;font-size:15px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--wash);color:var(--ink)}
.msg.inc .bub{border-bottom-left-radius:5px}
.msg.out .bub{background:var(--inv);color:var(--on-inv);border-bottom-right-radius:5px}
.bub.del{background:none!important;color:var(--mute)!important;border:1px dashed var(--line);font-style:italic;font-size:14px}
.bub.pic{padding:3px;display:block;background:var(--wash)!important}
.bub.pic img{border-radius:15px;max-height:280px;width:auto;height:auto;max-width:min(240px,64vw)}
.bub.cardmsg{display:flex;flex-direction:column;background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)}
.msg .meta{font-size:12px;color:var(--mute);display:flex;gap:4px;align-items:center;padding:0 4px}
.tick{font-weight:700;letter-spacing:-.15em;margin-left:2px}
.tick.read{color:var(--paid)}
.tick.wait{letter-spacing:0}
.msg.failed .bub{opacity:.6}
.msg.failed .meta{color:var(--danger)}
.typing{font-size:13px;color:var(--mute);font-style:italic;padding:0 4px;min-height:18px}
.chat-empty{margin:auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;padding:20px 0}
.chat-empty .av,.convo-empty .av{width:64px;height:64px;background:var(--wash);color:var(--ink)}
.chat-empty .sub{max-width:28ch}
.namecard{display:flex;flex-direction:column;gap:8px;padding:12px}
.namecard .row .in{min-height:48px}
.namecard .link{background:none;border:0;cursor:pointer;padding:8px}
.leave{display:flex;flex-direction:column;gap:8px;padding:12px;font-size:14px}
.leave .row{justify-content:flex-start;flex-wrap:wrap;gap:8px}
.leave .chip{height:34px;cursor:pointer;font-size:13px}
.leave .sub{font-size:13px}
.savebox{display:flex;flex-direction:column;gap:8px}
.savebox .row{flex-wrap:nowrap}
.savebox .in{min-height:44px;font-size:14px;font-family:var(--f-mono)}
.composer{display:flex;gap:8px;align-items:flex-end;padding-bottom:env(safe-area-inset-bottom,0px)}
.composer .in{flex:1;min-height:52px;max-height:140px;border-radius:26px;padding:14px 18px;resize:none;font-weight:400;line-height:1.35}
.composer .ib{width:52px;height:52px;cursor:pointer}
.send{width:52px;height:52px;border-radius:50%;background:var(--inv);color:var(--on-inv);display:grid;place-items:center;flex:none;border:0;cursor:pointer}
.send .ic{stroke:var(--on-inv)}
.chat-err{font-size:13px;font-weight:600;color:var(--danger);margin:0}
.quick{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.quick .chip{height:34px;font-size:13px;cursor:pointer;flex:none}

/* customer chat page: the conversation fills the screen on phones */
.chatpage .pt{padding:0 12px;gap:0;min-height:0}
.chatbox{display:flex;flex-direction:column;gap:10px;height:100dvh;padding:4px 0 10px}

/* merchant chats */
.m-main.wide{max-width:none}
.chats{display:flex;flex-direction:column;gap:14px}
.inbox{display:flex;flex-direction:column;gap:12px}
.isearch{position:relative}
.isearch > .ic{position:absolute;left:14px;top:16px;color:var(--mute)}
.isearch .in{padding-left:42px;min-height:48px;font-weight:400}
.ilist{display:flex;flex-direction:column;background:var(--surface);border-radius:16px;box-shadow:var(--shadow-1);overflow:hidden}
.irow{display:flex;gap:12px;align-items:center;padding:12px 14px;text-decoration:none;color:var(--ink);border-top:1px solid var(--line)}
.irow:first-child{border-top:0}
.irow:hover{background:var(--surface-2)}
.irow.on{background:var(--wash)}
.irow b{display:flex;align-items:center;gap:6px;font-size:15px;overflow:hidden;white-space:nowrap}
.irow b .chip{height:18px;font-size:12px;padding:0 6px}
.irow .sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.irow.unread .sub{color:var(--ink);font-weight:600}
.irow .when{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.irow .when .sub{font-size:12px}
.iempty{padding:24px 16px;text-align:center;display:flex;flex-direction:column;gap:6px}
.convo{display:flex;flex-direction:column;gap:10px;background:var(--surface);border-radius:16px;box-shadow:var(--shadow-1);padding:4px 12px 12px;height:calc(100dvh - 140px);min-height:420px}
.cpanel{display:flex;flex-direction:column;gap:14px;background:var(--surface);border-radius:16px;box-shadow:var(--shadow-1);padding:16px}
.cp-top{display:flex;gap:12px;align-items:center}
.cp-top .av{width:56px;height:56px;font-size:20px}
.cp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px}
.tgbtn{appearance:none;width:48px;height:28px;border-radius:999px;background:var(--line-strong);position:relative;flex:none;cursor:pointer;border:0}
.tgbtn::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.25)}
.tgbtn.on{background:var(--paid)}.tgbtn.on::after{left:23px}
.convo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;background:var(--surface);border-radius:16px;box-shadow:var(--shadow-1);padding:40px}
@media (max-width:1023px){
  .chats.has-conv .inbox{display:none}
  .chats.has-conv{margin:-18px -16px -40px}
  .chats.has-conv .convo{border-radius:0;box-shadow:none;height:100dvh;min-height:0}
  .chats.has-conv .cpanel{border-radius:0;box-shadow:none}
  .mapp:has(.chats.has-conv) .m-top{display:none}
}
@media (min-width:1024px){
  .chatpage .pt{padding:20px 32px}
  .chatpage .pt-grid{grid-template-columns:320px minmax(0,1fr)}
  .chatbox{height:calc(100dvh - 40px);padding:8px 28px 20px}
  .chatbox .chat-head > a.ib{display:none}
  .chats{display:grid;grid-template-columns:340px minmax(0,1fr) 300px;gap:20px;align-items:start}
  .chats:not(.has-conv){grid-template-columns:340px minmax(0,1fr)}
  .inbox .ilist{max-height:calc(100dvh - 230px);overflow-y:auto}
  .convo{height:calc(100dvh - 64px);padding:4px 20px 16px;position:sticky;top:32px}
  .convo-empty{height:calc(100dvh - 64px)}
  .cpanel{position:sticky;top:32px}
  .cpanel-link{display:none}
  .m-main.wide{padding:32px 28px}
}
.tile.hasnew .sub{color:var(--copper-ink);font-weight:700}
.leave > .row:first-child{justify-content:space-between;flex-wrap:nowrap}
.leave .ib.x{width:32px;height:32px;border:0;cursor:pointer;background:transparent}
.msg.sys{align-self:center;max-width:100%;margin:6px 0}
.sysnote{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--ink-2);background:var(--wash);border-radius:999px;padding:5px 12px}
.sysnote .ic{width:14px;height:14px}
.callbtn{border:0;cursor:pointer;background:var(--paid-soft);color:var(--paid-ink)}
.callbox{position:fixed;inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px));z-index:50;display:flex;justify-content:center}
.cb-in{width:100%;max-width:420px;background:var(--dark);color:#fff;border-radius:22px;box-shadow:var(--shadow-2);padding:20px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.cb-in .av{width:64px;height:64px;background:rgba(255,255,255,.12);color:#fff}
.cb-name{font-size:18px}
.cb-state{font-size:14px;color:rgba(255,255,255,.75);font-variant-numeric:tabular-nums;min-height:20px}
.cb-btns{display:flex;gap:10px;margin-top:10px;width:100%}
.cbtn{flex:1;min-height:52px;border-radius:14px;border:0;font-weight:700;font-size:15px;cursor:pointer;background:rgba(255,255,255,.14);color:#fff}
.cbtn.ok{background:var(--paid)}
.cbtn.dg{background:var(--danger)}
@media (min-width:1024px){.callbox{inset:auto 32px 32px auto}.cb-in{width:360px}}

/* ---------- buying (UI kit P05–P12) ---------- */
.buy.narrow{max-width:520px}
.buy-grid{display:flex;flex-direction:column;gap:18px}
.cline{gap:12px;align-items:center}
.cline .thumb{width:52px;height:52px;border-radius:10px;object-fit:cover}
.cline b{display:block;font-size:15px}
.cline .err{display:block;font-size:13px;font-weight:600;color:var(--danger)}
.cl-r{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.stepper{display:flex;align-items:center;gap:8px}
.stepper .ib{width:36px;height:36px;border:0;cursor:pointer}
.stepper .ib .ic{width:16px;height:16px}
.stepper b{min-width:18px;text-align:center}
.totals{gap:8px}
.totals hr,.buy section hr{border:0;border-top:1px solid var(--line);margin:2px 0;width:100%}
.ful-choose:has(input[value=pickup]:checked) [data-when=delivery],
.ful-choose:has(input[value=delivery]:checked) [data-when=pickup],
.ful-delivery [data-when=pickup],.ful-pickup [data-when=delivery]{display:none!important}
.amount{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px}
.amount b{font-size:32px;margin:4px 0;letter-spacing:-.02em}
.otp.four{letter-spacing:.8em;text-indent:.8em;max-width:280px}
.wait{align-items:center;text-align:center;padding-top:40px}
.phone-ring{width:96px;height:96px;border-radius:28px;background:var(--wash);display:grid;place-items:center;position:relative}
.phone-ring .ic{width:44px;height:44px}
.phone-ring::after{content:"";position:absolute;inset:-8px;border-radius:34px;border:3px solid var(--copper);border-right-color:transparent;border-bottom-color:transparent;animation:spin 1.1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.donecheck{width:72px;height:72px;border-radius:50%;background:var(--paid);color:#fff;display:grid;place-items:center;margin:14px auto 0;box-shadow:0 0 0 10px var(--paid-soft)}
.donecheck .ic{width:30px;height:30px;stroke-width:2.4}
.tl{display:flex;flex-direction:column}
.tl > div{display:flex;flex-direction:column;padding:0 0 16px 28px;font-size:15px;font-weight:600;position:relative}
.tl > div::before{content:"";position:absolute;left:0;top:3px;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--line-strong);background:var(--surface);z-index:1}
.tl > div::after{content:"";position:absolute;left:7.25px;top:19px;bottom:0;width:1.5px;background:var(--line)}
.tl > div:last-child::after{display:none}
.tl > div.d::before{background:var(--paid);border-color:var(--paid);box-shadow:inset 0 0 0 3px var(--surface)}
.tl > div.d::after{background:var(--paid)}
.tl small{font-weight:400;color:var(--mute);font-size:13px}
@media (min-width:1024px){
  .buy .buy-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:start;background:var(--surface);border-radius:20px;box-shadow:var(--shadow-1);padding:28px}
  .buy.narrow > form,.buy.narrow > .stack,.buy.narrow > section{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-1);padding:28px}
  .buy.narrow{gap:20px}
}
.odetail{display:flex;flex-direction:column;gap:16px}
hr.sep{border:0;border-top:1px solid var(--line);margin:4px 0;width:100%}
.codecard{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.codecard b{font-size:40px;letter-spacing:.25em}
.slip{background:var(--surface)}
.slipbox{max-width:380px;margin:24px auto;padding:20px;border:1px dashed var(--line-strong);border-radius:12px;display:flex;flex-direction:column;gap:8px;font-size:15px}
.slipbox hr{border:0;border-top:1px dashed var(--line-strong);width:100%}
.slipcode{display:flex;flex-direction:column;align-items:center;border:2px solid var(--ink);border-radius:12px;padding:12px;margin-top:8px}
.slipcode b{font-size:44px;letter-spacing:.3em}
.slipcode small{color:var(--mute);text-align:center}
@media print{.slipbox{border:0;margin:0}}
@media (min-width:1024px){.odetail{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start}}
.toast{position:fixed;left:50%;transform:translateX(-50%);top:12px;z-index:60;background:var(--dark);color:#fff;border-radius:14px;padding:14px 18px;font-weight:700;font-size:14px;box-shadow:var(--shadow-2);text-decoration:none;max-width:calc(100vw - 24px)}
.balance .kpi b{font-size:22px}
/* booking (UI kit P15–P17) */
.staffpick{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.staffpick a{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--ink-2);text-decoration:none;opacity:.7;flex:none}
.staffpick a.on{opacity:1;color:var(--ink)}
.staffpick a.on .av{box-shadow:0 0 0 3px var(--surface),0 0 0 5px var(--ink)}
.staffpick .av.any{background:var(--dark)}
.datestrip{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px}
.datestrip > *{flex:none;width:56px;border:1px solid var(--line);border-radius:12px;padding:8px 0;display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--ink);background:var(--surface)}
.datestrip small{font-size:12px;color:var(--mute);font-weight:600}
.datestrip b{font-size:18px}
.datestrip .on{background:var(--inv);color:var(--on-inv);border-color:var(--inv)}
.datestrip .on small{color:var(--on-inv-2)}
.datestrip .off{opacity:.35}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.slots form{display:contents}
.slots .chip{height:48px;justify-content:center;font-size:16px;cursor:pointer;width:100%;font-family:var(--f-mono)}
.slots .chip:hover{background:var(--inv);color:var(--on-inv)}
.holdbar{justify-content:space-between;color:var(--copper-ink);background:var(--copper-soft);border-color:transparent}
.summary .row b{text-align:right}
@media (min-width:1024px){.slots{grid-template-columns:repeat(4,1fr)}}
.daynav{gap:8px}
.daynav .flip .ic{transform:rotate(180deg)}
.calcols{display:flex;flex-direction:column;gap:14px}
.calcol{display:flex;flex-direction:column;gap:10px}
.bk{display:flex;gap:12px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-left:4px solid var(--paid);border-radius:10px;text-decoration:none;color:var(--ink)}
.bk b{display:block;font-size:15px}
.bk .sub{display:block;font-size:13px}
.bk.cancelled_by_customer,.bk.cancelled_by_merchant,.bk.no_show{opacity:.55}
@media (min-width:1024px){.calcols{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start}}
.msgline{border-left:3px solid var(--line);padding:2px 0 2px 10px}
.msgline p{font-size:14px}
.inboxrow{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.inboxrow:first-of-type{border-top:0}
.inboxrow small{color:var(--mute);font-size:12px}
.inboxrow.new b::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--copper);margin-right:6px;vertical-align:middle}
.g3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bars{display:flex;align-items:flex-end;gap:6px;height:160px;padding-top:10px}
.bars > div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.bars i{display:block;width:100%;background:var(--copper);border-radius:6px 6px 2px 2px;min-height:2px}
.bars small{font-size:12px;color:var(--mute);white-space:nowrap}
.printpage{background:var(--surface)}
.qrcard{width:105mm;min-height:148mm;margin:16px auto;border:1px dashed var(--line-strong);border-radius:6mm;padding:10mm;display:flex;flex-direction:column;align-items:center;gap:6mm;text-align:center}
.qrbrand{display:flex;align-items:center;gap:8px;font-family:var(--f-display);font-size:20px}
.qrimg{width:70mm}
.qrimg svg{width:100%;height:auto}
.qrline{font-family:var(--f-display);font-weight:800;font-size:22px;letter-spacing:-.02em}
.qrlink{font-size:14px}
.qrfoot{font-size:12px;color:var(--mute)}
.qrcard.strip{min-height:0;border-radius:3mm;padding:4mm;gap:3mm}
.qrcard.strip.s80{width:72mm}.qrcard.strip.s58{width:48mm}
.qrcard.strip .qrimg{width:100%}
.qrcard.strip .qrbrand{font-size:15px}.qrcard.strip .qrline{font-size:16px}.qrcard.strip .qrlink{font-size:11px;word-break:break-all}.qrcard.strip .qrfoot{font-size:10px}
@media print{.noprint{display:none}.qrcard{border:0;margin:0}.qrcard.strip{margin:0 auto;page-break-inside:avoid}}
@media (min-width:1024px){.kpis{grid-template-columns:repeat(4,1fr)}}
.followcard{border-color:var(--copper)}
.followcard .ic{color:var(--copper)}
.bars > div{min-width:0}
.bars small{overflow:hidden;max-width:100%}
@media (max-width:1023px){.bars > div:not(:nth-child(3n)) small{visibility:hidden}.bars small{overflow:visible}}
.insgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media (min-width:1024px){.insgrid{grid-template-columns:1fr 1fr}}

.cb-meters{display:flex;gap:14px;margin-top:12px;color:#fff;font-size:12px;font-weight:600}
.cb-meters label{flex:1;display:flex;align-items:center;gap:8px}
.cb-meters label>span{display:block;flex:1;min-width:60px;height:8px;padding:0;border-radius:4px;background:rgba(255,255,255,.22);overflow:hidden}
.cb-meters i{display:block;height:100%;width:0;background:var(--paid);transition:width .1s linear}
.cb-dev{display:grid;gap:4px;margin-top:12px;width:100%;text-align:left;font-size:12px;font-weight:600;color:var(--on-inv-2)}
.cb-dev[hidden]{display:none}
.cb-mic{width:100%;min-height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#fff;font-size:14px;padding:0 10px}
.cb-mic option{color:#10141c}

/* ---------- merchant home: one column on a phone, two columns from 1024px ---------- */
.home{display:flex;flex-direction:column;gap:16px}
.home-l,.home-r{display:contents}
.h-link{order:1}.h-note{order:2}.h-bal{order:3}.h-needs{order:4}.h-qr{order:5}.h-links{order:6}
@media (min-width:1024px){
  .home{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:20px;align-items:start}
  .home-l,.home-r{display:flex;flex-direction:column;gap:20px}
  .h-links{grid-column:1 / -1;grid-template-columns:repeat(4,minmax(0,1fr))}
  .h-link{padding:22px 24px}
  .h-link a.mono{font-size:22px!important}
  .home .kpi{padding:16px 18px}
  .home .kpi b{font-size:28px}
}

/* ---------- public website (home) ---------- */
body.site{background:var(--canvas)}
.site-head{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--surface) 90%,transparent);backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}
.site-bar{max-width:1180px;margin:0 auto;height:60px;padding:0 16px;display:flex;align-items:center;gap:16px}
.site-bar .site-theme{margin-left:auto}
.site-bar .burger{margin-left:0}
.site-links,.site-cta{display:none}
.site-links a{padding:8px 12px;border-radius:9px;font-weight:600;font-size:14px;color:var(--ink-2);text-decoration:none}
.site-links a:hover{background:var(--wash)}
.site-drawer .m-nav{flex:none}
.hero-s{max-width:1180px;margin:0 auto;padding:28px 16px 36px;display:grid;gap:36px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.hero-copy h1{font-size:clamp(40px,10.5vw,68px);letter-spacing:-.045em;line-height:1}
.hero-copy h1 em{font-style:normal;color:var(--copper-ink)}
.lede{font-size:18px;line-height:1.5;color:var(--ink-2);max-width:34em}
.hero-cta{display:flex;flex-direction:column;gap:10px;width:100%;max-width:420px}
.hero-art{position:relative;display:flex;justify-content:center;padding:12px 0 28px}
.hero-art::before{content:"";position:absolute;inset:6% 4% 0;border-radius:44px;background:radial-gradient(60% 60% at 50% 40%,var(--copper-soft),transparent 72%)}
.phone{position:relative;width:min(300px,78vw);background:var(--surface);border:1px solid var(--line);border-radius:34px;padding:16px 14px;box-shadow:var(--shadow-2);display:flex;flex-direction:column;gap:12px;transform:rotate(2deg)}
.ph-bar{display:flex;align-items:center;justify-content:space-between}
.ph-shop{display:flex;gap:10px;align-items:center}
.ph-shop b{display:block;font-family:var(--f-display);font-size:16px;letter-spacing:-.02em}
.ph-shop span{font-size:12px;color:var(--mute)}
.ph-logo{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#4a3328,#9b6a45);flex:none}
.ph-tiles{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px}
.ph-tiles span{border:1px solid var(--line);border-radius:12px;padding:10px;font-size:12px;color:var(--mute);display:flex;flex-direction:column;gap:2px}
.ph-tiles span b{font-size:14px;color:var(--ink)}
.ph-tiles .on{background:var(--dark);border-color:var(--dark);color:rgba(255,255,255,.7)}.ph-tiles .on b{color:#fff}
.ph-prod{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:8px}
.ph-prod i{width:38px;height:38px;border-radius:9px;flex:none}
.ph-prod b{flex:1;font-size:14px}
.ph-prod em{font-style:normal;font-family:var(--f-mono);font-weight:600;font-size:13px}
.qr-badge{position:absolute;left:50%;bottom:0;transform:translateX(-30%);display:flex;align-items:center;gap:10px;background:var(--dark);color:#fff;border-radius:14px;padding:10px 14px;box-shadow:var(--shadow-1);font-size:12px;white-space:nowrap}
.qr-badge b{display:block;font-size:13px}
.qr-badge .ic{stroke:var(--copper)}
.sec{max-width:1180px;margin:0 auto;padding:44px 16px;display:flex;flex-direction:column;gap:22px;scroll-margin-top:64px}
.sec h2{font-size:clamp(28px,6vw,40px);letter-spacing:-.04em}
.sec-sub{margin-top:-14px}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.steps li,.feat>div,.plan{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:8px}
.steps li p,.feat p{color:var(--mute);font-size:14px}
.steps li b,.feat b{font-size:18px;font-family:var(--f-display);letter-spacing:-.02em}
.n{width:34px;height:34px;border-radius:10px;background:var(--inv);color:var(--on-inv);display:grid;place-items:center;font-family:var(--f-display);font-weight:800}
.feat{display:grid;gap:12px}
.feat .ic{width:26px;height:26px;color:var(--copper-ink)}
.plans{display:grid;gap:12px}
.plan{align-items:flex-start;padding:24px}
.plan.hot{border-color:var(--ink);box-shadow:var(--shadow-1)}
.amt{font-family:var(--f-display);font-size:48px;font-weight:800;letter-spacing:-.045em;line-height:1}
.plan ul{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--ink-2)}
.plan li::before{content:"✓";color:var(--paid-ink);font-weight:800;margin-right:8px}
.faq{display:flex;flex-direction:column;gap:10px;max-width:760px}
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 18px}
.faq summary{cursor:pointer;min-height:56px;display:flex;align-items:center;gap:12px;font-weight:700;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";margin-left:auto;font-size:22px;color:var(--mute)}
.faq details[open] summary::after{content:"–"}
.faq p{padding:0 0 18px;color:var(--ink-2)}
.band{width:calc(100% - 32px);max-width:1148px;margin:20px auto 56px;background:var(--dark);color:#fff;border-radius:24px;padding:44px 24px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center}
.band h2{font-size:clamp(28px,6vw,40px)}
.band p{color:rgba(255,255,255,.75);max-width:30em}
.band .btn{width:auto;padding:0 30px;margin-top:8px}
.site-foot{border-top:1px solid var(--line);padding:24px 16px calc(24px + env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:center;font-size:14px;color:var(--mute)}
@media (min-width:900px){
  .site-bar{padding:0 24px}
  .site-links{display:flex;gap:2px;margin-left:20px;flex:1}
  .site-cta{display:flex;gap:8px}
  .site-bar .burger,.site-drawer,.site-head ~ .scrim{display:none!important}
  .site-bar .site-theme{margin-left:0}
  .hero-s{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);padding:72px 24px 80px;gap:48px}
  .hero-cta{flex-direction:row;max-width:none}
  .hero-cta .btn{width:auto;padding:0 26px}
  .sec{padding:72px 24px}
  .steps,.feat{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .plans{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
  .band{padding:64px 24px}
}

/* ---------- shop page polish (portal) ---------- */
.hero{aspect-ratio:16/8;border-radius:22px}
@media (max-width:1023px){
  .pt-side .hero{margin:0 calc(var(--pad,16px) * -1);border-radius:0 0 26px 26px;aspect-ratio:16/7}
  .pt-side .hero + .shopcard{position:relative;z-index:1;margin-top:-34px;padding:0 4px;align-items:flex-end}
  .pt-side .hero + .shopcard .logo{border:3px solid var(--surface);box-shadow:var(--shadow-1)}
  .pt-side .hero + .shopcard h1{text-shadow:none}
}
.shopcard .logo{width:68px;height:68px;border-radius:20px}
.shopcard h1,.shopcard .shopname{font-size:22px;letter-spacing:-.035em}
.tile{border-radius:18px;gap:4px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.tile > .ic{width:40px;height:40px;padding:9px;border-radius:12px;background:var(--wash);margin-bottom:10px;flex:none}
.tile.on > .ic{background:var(--on-inv-soft);stroke:var(--on-inv)}
a.tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-1)}
a.tile:active{transform:scale(.98)}
.tile.hasnew > .ic{background:var(--copper-soft);stroke:var(--copper-ink)}
.paytile{border-radius:18px}
.pcard .im{border-radius:18px;border:1px solid var(--line);transition:transform .2s ease,box-shadow .2s ease}
.pcard:hover .im{transform:translateY(-2px);box-shadow:var(--shadow-1)}
.pcard .im img{transition:transform .3s ease}
.pcard:hover .im img{transform:scale(1.04)}
.pcard b{margin-top:6px;font-size:15px}
.pcard .price{font-size:15px;font-weight:800}
.svc{border-radius:18px;padding:12px 14px;gap:14px;transition:border-color .15s,box-shadow .15s,transform .15s}
.svc:hover{border-color:var(--line-strong);box-shadow:var(--shadow-1);transform:translateY(-1px)}
.svc img,.svc .ph{width:64px;height:64px;border-radius:14px}
.svc b{font-size:16px}
.svc .ic{color:var(--mute);width:18px;height:18px}
.svc .price{font-weight:800}
@media (max-width:1023px){
  .gallery{border-radius:0 0 26px 26px}
  .pdp .h-l{font-size:28px}
  .pt-foot{font-size:13px;gap:8px;padding-top:16px}
}
@media (min-width:1024px){
  .pt-side .hero{aspect-ratio:16/10}
  .pdp .gallery{position:sticky;top:20px}
  .pdp-top{align-self:start}
  .pt-list h1.h-l{font-size:32px}
}

/* ---------- sign-up polish (onboarding) ---------- */
.trust{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;font-weight:600;color:var(--ink-2)}
.trust li{display:flex;align-items:center;gap:6px}
.trust .ic{width:16px;height:16px;stroke:var(--paid-ink);stroke-width:2.4}
.ob-card .bar{height:6px;border-radius:3px}
@media (min-width:1024px){
  .ob-aside{background:radial-gradient(120% 60% at 0% 100%,rgba(200,88,42,.28),transparent 60%),var(--ink);overflow:hidden}
  .ob-aside .stack{gap:10px}
  .ob-steps{position:relative;gap:0}
  .ob-steps li{position:relative;padding:11px 0}
  .ob-steps li:not(:last-child)::after{content:"";position:absolute;left:12.5px;top:37px;bottom:-11px;width:1.5px;background:rgba(255,255,255,.16)}
  .ob-steps li.done:not(:last-child)::after{background:var(--paid)}
  .ob-steps li.now i{box-shadow:0 0 0 5px rgba(200,88,42,.25)}
  .ob-main{justify-content:center}
  .ob-card{padding:36px 40px;border-radius:24px;box-shadow:var(--shadow-2)}
}

/* ---------- dark theme: follows the device, and the toggle (data-theme) overrides it ---------- */
@media screen and (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  color-scheme: dark;
  --ink:#eef0f4; --ink-2:#c6cbd6; --mute:#98a0b0; --line:#2e3441; --line-strong:#4a5263; --wash:#1d222c; --bg:#12151b; --surface:#181c25; --surface-2:#141820;
  --copper:#e2703c; --copper-soft:#3a2216; --paid:#2fb98a; --paid-soft:#0f2b22;
  --warn:#d9a13a; --warn-soft:#33270f; --danger:#ef6a62; --danger-soft:#3a1816; --on-ink:#10141c;
  --inv:#eef0f4; --on-inv:#10141c; --on-inv-2:rgba(16,20,28,.72); --on-inv-soft:rgba(16,20,28,.12); --inv-hover:#ffffff; --dark:#090b0f; --ring:rgba(255,255,255,.16);
  --shadow-1:0 1px 2px rgba(0,0,0,.5),0 12px 24px -12px rgba(0,0,0,.7);
  --shadow-2:0 1px 2px rgba(0,0,0,.5),0 18px 36px -12px rgba(0,0,0,.6),0 60px 110px -30px rgba(0,0,0,.8);
  --canvas:#0c0f14;
  --paid-ink:#4fd1a2; --copper-ink:#f08a5c; --warn-ink:#e8b960; --copper-strong:#b04a20;
}}
:root[data-theme="dark"]{
  color-scheme: dark;
  --ink:#eef0f4; --ink-2:#c6cbd6; --mute:#98a0b0; --line:#2e3441; --line-strong:#4a5263; --wash:#1d222c; --bg:#12151b; --surface:#181c25; --surface-2:#141820;
  --copper:#e2703c; --copper-soft:#3a2216; --paid:#2fb98a; --paid-soft:#0f2b22;
  --warn:#d9a13a; --warn-soft:#33270f; --danger:#ef6a62; --danger-soft:#3a1816; --on-ink:#10141c;
  --inv:#eef0f4; --on-inv:#10141c; --on-inv-2:rgba(16,20,28,.72); --on-inv-soft:rgba(16,20,28,.12); --inv-hover:#ffffff; --dark:#090b0f; --ring:rgba(255,255,255,.16);
  --shadow-1:0 1px 2px rgba(0,0,0,.5),0 12px 24px -12px rgba(0,0,0,.7);
  --shadow-2:0 1px 2px rgba(0,0,0,.5),0 18px 36px -12px rgba(0,0,0,.6),0 60px 110px -30px rgba(0,0,0,.8);
  --canvas:#0c0f14;
  --paid-ink:#4fd1a2; --copper-ink:#f08a5c; --warn-ink:#e8b960; --copper-strong:#b04a20;
}
.theme-btn{border:0;cursor:pointer;position:relative}
.theme-btn > span{display:inline-flex;align-items:center;gap:12px}
.theme-btn .i-sun{display:none}
:root[data-theme="dark"] .theme-btn .i-sun{display:inline-flex}
:root[data-theme="dark"] .theme-btn .i-moon{display:none}
@media screen and (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .theme-btn .i-sun{display:inline-flex}
  :root:not([data-theme="light"]) .theme-btn .i-moon{display:none}
}
/* light mode: clearer outlines and edges */
.card{box-shadow:0 1px 2px rgba(16,20,28,.05)}
.in,.affix{border-color:var(--line-strong)}
.in:focus,.affix:focus-within{border-color:var(--ink)}
.ib.theme-btn{width:40px;height:40px;border-radius:50%;background:var(--wash);color:var(--ink);display:grid;place-items:center}
.ib.theme-btn > span{gap:0}
.linkbtn{background:none;border:0;padding:0;color:inherit;font:inherit;text-decoration:underline;cursor:pointer}
.ops-side .theme-btn,.ops-nav .theme-btn{color:rgba(255,255,255,.78)}

/* ---------- type system: one scale (12 13 14 15 16 18 22 28/32) and four weights (400 600 700 800) ---------- */
.lead,.sub.lead{font-size:15px;line-height:1.5;color:var(--ink-2)}
.price.l{font-size:22px;font-weight:700}
.price.s{font-size:13px}
.h-link a.mono{font-size:16px;font-weight:600}
.note b,.note strong{font-weight:700}
.cpanel .h-m{font-size:18px;font-weight:700}
.cpanel .sub,.cpanel .note,.cpanel .hint{font-size:13px}
.cpanel .note{font-weight:400}
.cpanel .kpi .sub{font-size:12px;font-weight:600;text-transform:none;color:var(--mute)}
.cpanel .kpi b{font-size:22px;font-weight:800}
.cpanel .fld > label,.cpanel .cp-row .lbl{font-size:14px;font-weight:600}
.cpanel .btn{font-size:15px;font-weight:600}
@media (min-width:1024px){.h-l{font-size:32px}}

/* ---------- opening hours grid: each day has its own times ---------- */
.hgrid{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;min-width:0}
.hlegend{padding:0 0 8px}
.hq{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:6px}
.hq .chip{cursor:pointer;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink)}
.hq .chip:hover{background:var(--wash)}
.hrow{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px 12px;padding:8px 0;border-top:1px solid var(--line)}
.hrow:first-of-type{border-top:0}
.hday{display:flex;align-items:center;gap:12px;font-weight:600;min-width:84px;cursor:pointer}
.hday > span{font-size:15px;font-weight:600;width:34px}
.htimes{display:flex;align-items:center;gap:6px;justify-content:flex-end;min-width:0}
.htimes .in{min-height:44px;padding:8px 6px 8px 12px;width:auto;flex:1;min-width:0;max-width:120px;font-family:var(--f-mono);font-size:15px}
.htimes i{font-style:normal;color:var(--mute)}
.hnote{display:none;justify-self:end;font-size:14px;color:var(--mute);padding-right:8px}
.hrow:has(.tg:not(:checked)) .htimes{display:none}
.hrow:has(.tg:not(:checked)) .hnote{display:block}
.hours-block{padding:16px 0;border-top:1px solid var(--line)}
@media (min-width:1024px){
  .hours-block .hgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:24px;align-items:start}
  .hours-block .hlegend{grid-column:1;grid-row:1}
  .hours-block .hgrid > *:not(.hlegend){grid-column:2}
}
@media (min-width:1024px){
  .hrow{grid-template-columns:150px minmax(0,1fr)}
  .htimes{justify-content:flex-start}
  .hnote{justify-self:start}
  .htimes .in{max-width:108px}
}
}

/* ---------- compact density for the shop app and the admin console ----------
   Customer-facing pages and sign-up keep their large type boxes; here the owner works through many
   fields, so controls are shorter, spacing is tighter and lists use two columns on desktop. */
.mapp .in,.ops .in{min-height:44px;padding:9px 12px;border-radius:10px;font-size:16px}
.mapp textarea.in,.ops textarea.in{min-height:72px}
.mapp .btn,.ops .btn{min-height:44px;border-radius:10px}
.mapp .btn.sm,.ops .btn.sm{min-height:36px}
.mapp .fld,.ops .fld{gap:4px}
.mapp .fld > label,.ops .fld > label,.mapp .fld > .lbl{font-size:13px}
.mapp .ops-card,.ops .ops-card{padding:14px 16px;border-radius:14px}
.mapp .setrow,.ops .setrow{padding:10px 0;gap:6px}
.mapp .setactions,.ops .setactions{padding-top:10px}
.m-main{gap:12px;padding:14px 14px 32px}
.mapp .h-l{font-size:24px}
@media (min-width:1024px){
  .mapp .in,.ops .in{min-height:38px;padding:6px 10px;font-size:14px}
  .mapp textarea.in,.ops textarea.in{min-height:64px}
  .mapp .btn,.ops .btn{min-height:40px;font-size:14px}
  .mapp .btn.sm,.ops .btn.sm{min-height:34px}
  .mapp .ops-card,.ops .ops-card{padding:16px 20px}
  .m-main{padding:24px 32px 40px;gap:14px}
  .mapp .h-l{font-size:28px}
  .htimes .in{min-height:36px}
}

/* ---------- staff page ---------- */
.staff-list{display:flex;flex-direction:column;gap:10px}
.staff-card{padding:0!important;overflow:hidden}
.staff-card summary{display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;list-style:none;min-height:56px}
.staff-card summary::-webkit-details-marker{display:none}
.staff-card summary .grow b{font-size:15px}
.staff-card summary .grow .sub{display:block;font-size:13px}
.staff-card summary > .ic{color:var(--mute);transition:transform .15s}
.staff-card[open] summary > .ic{transform:rotate(90deg)}
.staff-card[open] summary{border-bottom:1px solid var(--line)}
.staff-form,.staff-access,.staff-remove{padding:12px 14px}
.staff-form{display:flex;flex-direction:column;gap:12px}
.staff-access{border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.staff-remove{display:flex;justify-content:flex-end;padding-top:0}
.staff-remove .btn{width:auto}
.invite-form{display:grid;grid-template-columns:minmax(0,1fr) 104px auto;gap:8px;align-items:center}
.invite-form .hint{grid-column:1 / -1}
.invite-form .btn{width:auto}
.trow{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}
.trow > span{display:flex;flex-direction:column}
.add-staff{padding:12px 14px!important}
.add-staff .row{gap:8px}
.add-staff .btn{width:auto}
@media (min-width:1024px){
  .staff-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}
  .add-staff{grid-column:1 / -1}
}

/* ---------- tighter customer pages and sign-up ----------
   The value people type on a phone (their number, the code) stays large; everything around it is
   closer together so a screen shows more before scrolling. */
.portal .in,.ob .in,.page .in{min-height:46px;padding:10px 12px}
.affix.xl{min-height:60px}
.affix.xl .in{font-size:24px}
.otp{height:56px;font-size:28px}
.portal .btn,.ob .btn,.page .btn{min-height:48px}
.portal .btn.sm,.ob .btn.sm{min-height:38px}
.composer .in{min-height:44px;padding:10px 16px;border-radius:22px}
.composer .ib,.send{width:44px;height:44px}
.opt{padding:12px 14px;gap:12px}
.opt .icb{width:38px;height:38px}
.seg label{padding:9px 6px}
.days label{height:38px}
.ob-main{padding:8px 14px 0}
.ob-body{gap:12px;padding:8px 0 14px}
.ob-foot{padding:14px 0 calc(10px + env(safe-area-inset-bottom,0px));gap:8px}
.h-xl{font-size:28px}
.portal .h-l,.ob .h-l{font-size:24px}
.pt{padding:6px 14px 22px;gap:14px;--pad:14px}
.pt-list,.pt-main,.pt-side,.pdp,.pt-grid{gap:12px}
.tile{min-height:88px;padding:14px;border-radius:16px}
.tile > .ic{width:36px;height:36px;padding:8px;margin-bottom:4px}
.paytile{padding:12px 14px}
.pgrid{gap:14px 10px}
.svc{padding:10px 12px;gap:12px}
.svc img,.svc .ph{width:56px;height:56px}
.cta{padding:12px 0 calc(10px + env(safe-area-inset-bottom,0px));gap:8px}
.pt-foot{padding-top:14px;gap:8px}
.mini a{flex-basis:132px}
.page{padding:14px 14px 32px;gap:12px;--pad:14px}
@media (min-width:1024px){
  .portal .in,.ob .in,.page .in{min-height:40px;padding:8px 12px;font-size:15px}
  .portal .btn,.ob .btn,.page .btn{min-height:44px}
  .h-xl{font-size:32px}
  .portal .h-l,.ob .h-l{font-size:28px}
  .pt{padding:14px 28px 30px;gap:16px}
  .pt-grid{grid-template-columns:340px minmax(0,1fr);gap:24px}
  .pt-side{padding:16px;gap:12px}
  .pt-main,.pt-list{padding:20px 24px}
  .pdp{padding:20px;gap:28px}
  .pt-foot{padding:14px 20px}
  .tile{min-height:104px;padding:16px}
  .ob-main{padding:28px 48px}
  .ob-card{padding:24px 28px}
  .ob-aside{padding:28px 30px;gap:20px}
  .ob-steps li{padding:8px 0}
  .ob-steps li:not(:last-child)::after{top:34px;bottom:-8px}
  .page{padding-top:32px}
}

/* booking times: four to a row on a phone, shorter buttons */
.slots{grid-template-columns:repeat(4,1fr);gap:6px}
.slots .chip{height:40px;font-size:15px}
.g2 .fld{min-width:0}
.pinnow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:13px}
.pinclear{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-2);cursor:pointer}
.me-link{position:relative}
.me-chip{gap:6px;white-space:nowrap;text-decoration:none}
.me-chip.on::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--paid)}
@media (max-width:420px){.pt-head{gap:6px}.pt-head .me-chip{padding:0 10px;gap:4px}}
.signup{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;font-size:14px}
.signup .btn{flex:none}
.me-link.on::after{content:"";position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:var(--paid);border:2px solid var(--surface);box-sizing:content-box}
.chk{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--ink-2);cursor:pointer}
.chk input{width:18px;height:18px;accent-color:var(--ink)}
.reorder{margin:-4px 0 4px}
.btn.dg-solid{background:var(--danger);color:#fff}
.btn.dg-solid:hover{background:#a02c26}
ul.plain{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:15px;color:var(--ink-2)}

/* ---------- legal pages ---------- */
.legal{max-width:760px}
.legal-tabs{margin:0}
.legal-body{display:flex;flex-direction:column;gap:12px;line-height:1.65;font-size:16px;color:var(--ink-2)}
.legal-body h2{font-size:22px;margin-top:14px;color:var(--ink)}
.legal-body h3{font-size:18px;margin-top:6px;color:var(--ink)}
.legal-body ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.legal-body strong{color:var(--ink)}
.legal-body a{color:var(--copper-ink);font-weight:600}
.legal-edit{min-height:420px;line-height:1.5;font-size:14px}
@media (min-width:1024px){.legal{padding-top:24px}.legal-body{font-size:17px}}
.claimline{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:6px}
.claimline form{display:inline}
.claimline .link{background:none;border:0;padding:0;cursor:pointer;font-size:13px}

/* Plans comparison table (ops): parameters down the side, one column per plan. */
.cmp-wrap{overflow-x:auto;margin:10px -4px 0;padding:0 4px}
.cmp{border-collapse:collapse;width:100%;min-width:520px;font-size:14px}
.cmp th,.cmp td{padding:10px 12px;border-top:1px solid var(--line);text-align:left;vertical-align:middle}
.cmp thead th{border-top:0;font-size:15px;vertical-align:top}
.cmp thead th .chip{display:block;width:max-content;margin-top:4px}
.cmp tbody th{font-weight:600;color:var(--ink-2);position:sticky;left:0;background:var(--surface);min-width:150px}
.cmp td{min-width:110px}
.cmp .yes{color:var(--paid-ink);display:inline-flex}
.cmp .no{color:var(--mute)}
.cmp-act td,.cmp-act th{padding-top:14px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ---- photo crop dialog (static/crop.js) ---- */
.crop{position:fixed;inset:0;z-index:200;background:rgba(16,20,28,.66);display:grid;place-items:center;padding:12px;overflow:auto}
.crop[hidden]{display:none}
.crop-open{overflow:hidden}
.crop-card{background:var(--surface);color:var(--ink);border-radius:16px;box-shadow:var(--shadow-2);width:min(100%,460px);padding:16px;display:grid;gap:12px}
.crop-h{font-family:var(--f-display);font-weight:800;font-size:22px;letter-spacing:-.02em;line-height:1.15;margin:0}
.crop-help{margin:0}
.crop-frame{position:relative;overflow:hidden;border-radius:12px;background:#111;touch-action:none;cursor:grab;margin:0 auto;width:min(100%,calc(44vh * var(--r,1)));aspect-ratio:var(--r,1);outline-offset:3px}
.crop-frame.grab{cursor:grabbing}
.crop-frame img{position:absolute;left:0;top:0;max-width:none;user-select:none;-webkit-user-drag:none;pointer-events:none}
.crop-frame::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:12px;box-shadow:inset 0 0 0 2px rgba(255,255,255,.9);
  background:linear-gradient(to right,transparent calc(33.33% - .5px),rgba(255,255,255,.35) 0 calc(33.33% + .5px),transparent 0 calc(66.66% - .5px),rgba(255,255,255,.35) 0 calc(66.66% + .5px),transparent 0),
             linear-gradient(to bottom,transparent calc(33.33% - .5px),rgba(255,255,255,.35) 0 calc(33.33% + .5px),transparent 0 calc(66.66% - .5px),rgba(255,255,255,.35) 0 calc(66.66% + .5px),transparent 0)}
.crop-zoom{display:flex;align-items:center;gap:12px;min-height:44px;font-weight:600;font-size:14px}
.crop-zoom input{flex:1;min-height:44px;accent-color:var(--copper)}
.crop-actions{display:grid;gap:8px}
.crop-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:210;background:var(--inv);color:var(--on-inv);padding:12px 18px;border-radius:12px;font-weight:600;font-size:14px;box-shadow:var(--shadow-1)}
.crop-toast[hidden]{display:none}
@media (min-width:600px){.crop-actions{grid-template-columns:1fr 1fr}.crop-actions .btn:first-child{order:2}}
.up-text{margin:0;color:var(--ink-2);font-size:15px;min-height:22px}
.up-bar{height:12px;border-radius:99px;background:var(--wash);overflow:hidden}
.up-bar[hidden]{display:none}
.up-bar span{display:block;height:100%;width:0;background:var(--copper);border-radius:99px;transition:width .15s ease}
@media (prefers-reduced-motion:reduce){.up-bar span{transition:none}}

/* Stock page and history (ADR 026) */
.stocktable{overflow-x:auto}
.stocktable .vtable td:first-child{min-width:150px}
.stocktable .vtable td .sub{display:block;margin-top:2px}
.stocktable input.in{width:84px;min-width:0}
.st-out td:first-child b,.st-low td:first-child b{color:var(--ink)}
.shist{display:flex;flex-direction:column}
.shist .srow{display:grid;grid-template-columns:92px 1fr auto 72px;gap:8px;align-items:baseline;padding:10px 0;border-top:1px solid var(--line);font-size:14px}
.shist .srow:first-child{border-top:0}
.shist .when{color:var(--mute);font-size:13px}
.shist .qty{font-family:var(--mono,ui-monospace,monospace);font-weight:600;color:var(--paid-ink)}
.shist .qty.neg{color:var(--danger)}
.shist .left{color:var(--mute);font-size:13px;text-align:right}
@media (max-width:600px){.shist .srow{grid-template-columns:1fr auto;grid-template-areas:"w q" "x l"}.shist .when{grid-area:w}.shist .qty{grid-area:q;text-align:right}.shist .what{grid-area:x}.shist .left{grid-area:l}}

/* ---------- customer shop, compact phone layout (SPEC §20: phone first) ----------
   Smaller type, icon-led actions, hairline lists instead of boxed cards. Desktop is unchanged. */
.openline{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mute);margin:1px 0 0;line-height:1.3}
.openline .dot{width:7px;height:7px;border-radius:50%;background:var(--mute);flex:none}
.openline.ok{color:var(--paid-ink)}.openline.ok .dot{background:var(--paid-ink)}
@media (max-width:1023px){
  .portal{font-size:14px}
  .portal .sub{font-size:12.5px;line-height:1.35}
  .portal .lbl{font-size:13px}
  .portal .h-l{font-size:20px}
  .portal .h-m{font-size:15px}
  .portal .btn{min-height:44px;font-size:14px;border-radius:10px}
  .portal .btn.sm{min-height:36px;font-size:13px}
  .portal .in{min-height:40px;padding:8px 12px;font-size:14px;border-radius:10px}
  .pt{gap:10px;padding:4px 14px 18px}
  .pt-list,.pt-main,.pt-side,.pdp,.pt-grid{gap:10px}
  /* header: quiet icon buttons, no filled circles */
  .pt-head{min-height:40px;gap:4px}
  .pt-head .ib,.pt-head .ib.theme-btn{width:36px;height:36px;background:none;margin:0 -2px}
  .pt-head .ib .ic{width:20px;height:20px}
  .pt-head .t{font-size:15px}
  .pt-head .me-chip{height:28px;padding:0 9px;font-size:12px;background:var(--wash)}
  .pt-head .me-chip .ic{width:14px;height:14px}
  /* shop identity */
  .pt-side .hero{aspect-ratio:16/6;border-radius:0 0 14px 14px}
  .pt-side .hero + .shopcard{margin-top:-18px;align-items:flex-start}
  .shopcard{gap:10px}
  .shopcard .logo,.pt-side .hero + .shopcard .logo{width:52px;height:52px;border-radius:14px}
  .pt-side .hero + .shopcard .logo{border-width:2px;box-shadow:none}
  .shopcard h1,.shopcard .shopname{font-size:18px;letter-spacing:-.02em;line-height:1.2}
  .pt-side .hero + .shopcard .grow{padding-top:22px}
  .pt-main > h2.h-m{font-size:13px;font-weight:600;color:var(--mute)}
  /* actions: a row of icons with short labels, not big boxes */
  .tiles,.tiles.three{display:flex;gap:4px;justify-content:space-between}
  .tile,.tile.on{flex:1 1 0;min-width:0;min-height:0;padding:4px 0;border:0;border-radius:10px;background:none;color:var(--ink);align-items:center;text-align:center;gap:3px;box-shadow:none;transform:none}
  .tiles > :last-child:nth-child(odd){grid-column:auto;min-height:0}
  .tile > .ic,.tile.on > .ic{width:42px;height:42px;padding:10px;margin:0;border-radius:50%;background:var(--wash);stroke:var(--ink)}
  .tile.on > .ic{background:var(--inv);stroke:var(--on-inv)}
  .tile b{font-size:12.5px;margin:0;font-weight:700}
  .tile .sub,.tile.on .sub{display:none}
  .tile.hasnew .sub{display:block;font-size:11px;color:var(--copper-ink);font-weight:700}
  .tile.hasnew > .ic{background:var(--copper-soft);stroke:var(--copper-ink)}
  .tile.off{opacity:.4}
  .paytile{padding:8px 12px;border-radius:10px;gap:8px}
  .paytile b{font-size:13px}
  .paytile .sub{display:none}
  .paytile .chip{height:22px;font-size:11px;padding:0 8px}
  /* featured strip */
  .mini{gap:10px}
  .mini a{flex-basis:104px;gap:5px}
  .mini img,.mini .ph{border-radius:10px}
  .mini b{font-size:12.5px}
  .price.s{font-size:12px}
  /* shop: search, filters, 3-up grid */
  .affix{border-radius:10px}
  .affix > span{padding-left:10px}
  .affix .in{min-height:38px}
  .scrollchips{gap:6px}
  .portal .chip{height:26px;font-size:12px;padding:0 10px}
  .pgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
  .pcard{gap:2px}
  .pcard .im{border-radius:10px}
  .pcard .im .chip{left:4px;top:4px;height:20px;font-size:10px;padding:0 6px}
  .pcard b{font-size:12.5px;font-weight:600;line-height:1.25;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .pcard .price{font-size:13px}
  /* services: hairline list, no boxes */
  .pt-list > .h-l{margin:2px 0 0}
  .svc{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:8px 0;gap:10px;box-shadow:none;transform:none}
  .svc:hover{box-shadow:none;transform:none}
  .svc img,.svc .ph{width:44px;height:44px;border-radius:10px}
  .svc b{font-size:14px}
  .svc .ic{width:16px;height:16px}
  /* product page */
  .pdp .gallery{aspect-ratio:4/3}
  .pdp .h-l{font-size:19px}
  .pdp .price.l{font-size:18px}
  .vchips{gap:6px}
  .vchips label{min-width:44px;min-height:36px;padding:3px 12px;font-size:13px;border-radius:10px}
  .vchips label small{font-size:10px}
  /* footer: one quiet block */
  .pt-foot{padding-top:10px;gap:4px;font-size:12px;line-height:1.4}
  .pt-foot .ic{width:14px;height:14px}
}

/* phone: cart, booking and chat in the same compact style as the shop */
@media (max-width:1023px){
  /* cart and checkout: hairline lines, no boxes */
  .buy .card.li,.buy .card.li.cline{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:none;padding:8px 0;gap:10px}
  .cline .thumb,.cline img.thumb{width:44px;height:44px;border-radius:10px}
  .cline b,.buy .li b{font-size:14px;font-weight:600}
  .cline .price{font-size:13.5px}
  .cl-r{gap:2px}
  .stepper{gap:2px}
  .stepper .ib{width:30px;height:30px;background:var(--wash)}
  .stepper .ib .ic{width:14px;height:14px}
  .stepper b{font-size:13px;min-width:16px}
  .buy .stack.l{gap:10px}
  .buy .fld{gap:4px}
  .buy .card.note{padding:8px 10px;font-size:13px;gap:8px;border-radius:10px}
  .buy .card.note .ic{width:16px;height:16px}
  .seg{gap:6px}
  .seg label{padding:7px 6px;font-size:13.5px;border-radius:10px}
  .seg label small{font-size:11px}
  .buy .card.soft.totals{background:none;border:0;box-shadow:none;padding:2px 0;gap:4px;font-size:13.5px}
  .buy .cta{padding:8px 0 calc(8px + env(safe-area-inset-bottom,0px));gap:6px}
  .buy .cta .sub{font-size:12px}
  .buy .chk{font-size:13px}
  .buy .g2{gap:8px}
  /* booking: smaller day strip and times, plain summary */
  .lbl{font-size:13px}
  .staffpick{gap:12px}
  .staffpick a{font-size:11.5px;gap:3px}
  .staffpick .av{width:36px;height:36px;font-size:14px}
  .datestrip{gap:5px}
  .datestrip > *{width:46px;padding:5px 0;border-radius:10px}
  .datestrip small{font-size:11px}
  .datestrip b{font-size:15px}
  .slots{gap:5px}
  .slots .chip{height:36px;font-size:14px}
  .cap-u{font-size:11px}
  .buy .card.summary{border:0;box-shadow:none;background:none;padding:0;gap:0}
  .buy .summary .row{padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px}
  .buy .card.soft.stack{padding:8px 10px;border-radius:10px;font-size:13px}
  .buy .holdbar{padding:8px 12px;border-radius:10px}
  .donecheck{width:52px;height:52px}
  /* chat: tighter head, bubbles, composer */
  .chatbox{gap:6px;padding:2px 0 8px}
  .chat-head{min-height:44px;gap:6px}
  .chat-head .ib{width:36px;height:36px;background:none}
  .chat-head b,.chat-head h1.nm{font-size:15px}
  .chat-head .sub{font-size:12px}
  .chat-note{font-size:12px;padding:5px;background:none;color:var(--mute);font-weight:500}
  .chat-note .ic{width:14px;height:14px}
  .ctxcard{padding:6px 8px;border-radius:10px;gap:8px}
  .ctxcard img,.ctxcard .ph{width:36px;height:36px;border-radius:8px}
  .ctxcard b{font-size:13px}
  .thread{padding:2px}
  .msg{max-width:86%}
  .bub{padding:7px 11px;font-size:14px;border-radius:16px}
  .msg .meta{font-size:11px}
  .chat-empty{padding:12px 0;gap:4px}
  .chat-empty .av{width:44px;height:44px}
  .chat-empty .av .ic{width:22px;height:22px}
  .namecard,.leave{padding:8px 10px;gap:6px;border-radius:10px}
  .namecard .row .in{min-height:40px}
  .leave .chip{height:30px}
  .composer{gap:4px}
  .composer .in{min-height:40px;padding:9px 14px;border-radius:20px;font-size:14px}
  .composer .ib,.send{width:40px;height:40px}
  .composer .ib{background:none}
  .chat-pt .signup{padding:6px 10px;font-size:13px}
}

/* phone: the sticky action bar fades into the page colour (a lighter band showed in dark mode) */
@media (max-width:1023px){.pt .cta{background:linear-gradient(transparent,var(--bg) 22%)}}

/* tablet (700-1023px): use the width, still the compact phone styling */
@media (min-width:700px) and (max-width:1023px){
  .pt{max-width:880px;padding:6px 24px 24px;--pad:24px}
  .pgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 12px}
  .mini a{flex-basis:132px}
  .tile > .ic,.tile.on > .ic{width:46px;height:46px}
  .pt-side .hero{aspect-ratio:16/5;margin-left:0;margin-right:0;border-radius:14px}
  .pt-side .hero + .shopcard{margin-top:-14px;padding-left:12px}
  .pdp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px}
  .pdp .gallery{aspect-ratio:1/1;margin:0;border-radius:14px}
  .pdp-top:first-child{margin-top:0}
  .buy{max-width:880px}
  .buy .buy-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
  .buy.narrow{max-width:620px}
  .slots{grid-template-columns:repeat(6,1fr)}
  .datestrip > *{width:56px}
  .pt-list > .svc{padding:10px 0}
  .chat-pt{max-width:720px}
  .msg{max-width:72%}
}

/* phone and tablet: a hairline ring keeps a white or pale logo visible on the page */
@media (max-width:1023px){.shopcard .logo,.pt-side .hero + .shopcard .logo{box-shadow:0 0 0 1px var(--line)}}

/* phone and tablet: orders, issue, follow, /me and pay pages in the compact style */
@media (max-width:1023px){
  .buy .h-l{font-size:19px;line-height:1.2}
  .buy .stack.l > .av,.buy .av[style*="64px"]{width:44px!important;height:44px!important}
  .buy .av[style*="64px"] .ic{width:22px;height:22px}
  .donecheck{width:48px;height:48px;margin:6px auto 0;box-shadow:0 0 0 6px var(--paid-soft)}
  .donecheck .ic{width:22px;height:22px}
  .buy .sub.lead{font-size:13px}
  /* /me: sections are plain blocks with a hairline, not boxes */
  .buy section.card.stack,.buy section.card{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;padding:4px 0 12px;gap:6px}
  .buy section.card .lbl{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--mute)}
  .buy section.card .row{font-size:13.5px}
  .buy section.card .btn.alt.sm{min-height:32px;font-size:12.5px;padding:0 12px}
  .buy section.card .btn{min-height:40px}
  .inboxrow{padding:8px 0}
  .reorder .link{font-size:12.5px;padding:3px 10px;border-radius:8px;border:1px solid var(--line);background:none}
  .buy form > .btn.alt:only-child{min-height:40px}
  /* order page */
  .tl > div{font-size:14px;padding-bottom:12px}
  .tl small{font-size:12px}
  .buy .card.followcard{padding:8px 12px;border-radius:10px}
  .buy .card.stack{padding:10px 12px;border-radius:10px;gap:6px}
  .buy .card.soft{padding:8px 12px;border-radius:10px;font-size:13.5px!important}
  /* issue reasons */
  .opt{padding:10px 12px;gap:10px;border-radius:10px}
  .opt b{font-size:14px}
  .opt .tick{width:22px;height:22px}
  .opt .icb{width:34px;height:34px;border-radius:10px}
  textarea.in{min-height:88px}
  /* pay a shop: smaller amount field */
  .affix.xl{min-height:50px}
  .affix.xl .in{font-size:22px}
  .otp{height:48px;font-size:24px}
  /* receipt */
  .receipt,.slip{font-size:13.5px}
}

/* phone and tablet: booking confirmation page */
@media (max-width:1023px){
  .buy .card.summary.stack{padding:0;border:0;background:none;box-shadow:none;gap:0}
  .buy .summary .row{justify-content:space-between;gap:12px}
  .buy .summary .row b{text-align:right;font-size:13.5px}
  .buy .card.soft.stack{padding:6px 0;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;gap:4px}
  .buy .card.soft.stack > .sub:empty,.buy .card.soft.stack > span:empty{display:none}
  .buy .g2:has(> :only-child){grid-template-columns:1fr}
  .buy .g2 .btn{min-height:40px}
  .buy .btn.alt{min-height:40px}
}

/* QR codes list: name and link on top, the download buttons wrap underneath */
.m-list > .qrrow{flex-wrap:wrap;align-items:flex-start}
.qrrow .grow{flex:1 1 100%;min-width:0}
.qrrow .grow .sub{display:block;overflow-wrap:anywhere}
.qrbtns{display:flex;flex-wrap:wrap;gap:6px;flex:1 1 100%}
.qrbtns .btn.sm{flex:0 0 auto;white-space:nowrap}
@media (max-width:1023px){.qrbtns .btn.sm{min-height:34px;padding:0 10px;font-size:12.5px}.qrbtns .btn .ic{width:15px;height:15px}}

/* merchant app on phone and tablet: tighter bars, cards, rows and type */
@media (max-width:1023px){
  .m-top{height:48px;padding:0 10px;gap:8px}
  .burger{width:36px;height:36px;border-radius:10px;background:none}
  .m-top-chat{background:none}
  .m-top-shop{font-size:14px}
  .m-nav a,.m-nav .m-out{min-height:42px;font-size:14px;gap:10px}
  .m-grp{font-size:11px;padding:10px 12px 2px}
  .m-main{padding:12px 14px 28px;gap:10px}
  .mapp{font-size:14px}
  .mapp .h-l{font-size:20px;line-height:1.2}
  .mapp .h-m{font-size:15px}
  .mapp .sub{font-size:12.5px;line-height:1.35}
  .mapp .lbl{font-size:13px}
  .mapp .btn{min-height:40px;font-size:14px;border-radius:10px}
  .mapp .btn.sm{min-height:34px;font-size:13px}
  .mapp .in,.mapp select.in{min-height:40px;padding:7px 12px;font-size:14px;border-radius:10px}
  .mapp .chip{height:26px;font-size:12px;padding:0 10px}
  .mapp .card{padding:10px 12px;border-radius:12px}
  .mapp .card.row b{font-size:14px}
  .mapp .card.note{padding:8px 10px;font-size:13px}
  .ops-card{padding:12px;border-radius:12px}
  .ops-card h2{font-size:17px}
  .setrow{padding:10px 0;gap:6px}
  .setrow .lbl{font-size:14px}
  .setrow .sub{font-size:12.5px}
  .m-list > *{padding:8px 0;gap:10px}
  .m-list .thumb{width:44px;height:44px}
  .m-list b{font-size:14px}
  .m-head{gap:8px}
  .h-needs{gap:6px}
  .h-needs .card.row{padding:8px 12px}
  .kpi{padding:10px 12px;gap:2px}
  .kpi b{font-size:21px}
  .h-qr .qr{width:72px!important}
  .statuscard{gap:10px}
  .vtable .in{min-height:38px}
  .photos{gap:8px}
  .req{padding:10px 0;gap:8px}
}

@media (max-width:1023px){
  /* switches sit on the right of their label, not underneath */
  .setrow:has(> div > .tg){grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
  /* the unread badge stays a small dot on the chat icon */
  .m-top-chat .cnt{height:18px;min-width:18px;padding:0 4px;font-size:11px;top:-3px;right:-3px}
}

/* ---------- shop pages, round 2: trust, more from the shop, calmer footer ---------- */
.assure{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:10px}
.assure li{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.4;color:var(--ink-2)}
.assure b{color:var(--ink);font-weight:700}
.assure .ic{width:18px;height:18px;flex:none;margin-top:1px;stroke:var(--paid-ink)}
.more-from{display:flex;flex-direction:column;gap:12px;margin-top:28px}
.more-from .h-m{font-size:19px}
.more-from .pgrid{grid-template-columns:repeat(2,1fr)}
@media (min-width:700px){.more-from .pgrid{grid-template-columns:repeat(4,1fr)}}
/* the footer: links in one quiet row */
.pt-foot{gap:10px;font-size:13px}
.pt-foot .flinks{display:flex;flex-wrap:wrap;gap:6px 16px}
.pt-foot .flinks a,.pt-foot .flinks .linkbtn{color:var(--ink-2);text-decoration:none;font-size:13px}
.pt-foot .flinks a:hover,.pt-foot .flinks .linkbtn:hover{color:var(--ink);text-decoration:underline}
.pt-foot .addr{display:flex;align-items:center;gap:8px}
.pt-foot .powered{color:var(--mute);font-size:12px}
@media (min-width:1024px){.pt-foot .powered{margin-left:auto}}
/* phone: about, hours, address on the shop page */
.info-m{display:flex;flex-direction:column;gap:12px;margin-top:6px;padding-top:16px;border-top:1px solid var(--line)}
.info-m .lead{margin:0;font-size:15px;line-height:1.45;color:var(--ink-2)}
.info-m .hrs summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;min-height:36px}
.info-m .hrs summary::-webkit-details-marker{display:none}
.info-m .hrs[open] summary .link{display:none}
.info-m .hrs .hours{margin-top:6px}
.info-m .where{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink-2)}
.info-m .where > span{flex:1;min-width:0}
.info-m .where .ic{flex:none;width:18px;height:18px}
.info-m .priv{display:flex;gap:8px;align-items:center;margin:0;font-size:13px;color:var(--mute)}
.info-m .priv .ic{width:16px;height:16px;flex:none}
@media (max-width:699px){
  .more-from .pgrid{display:flex;overflow-x:auto;gap:12px;padding:0 0 4px;scroll-snap-type:x proximity;scrollbar-width:none}
  .more-from .pgrid::-webkit-scrollbar{display:none}
  .more-from .pcard{flex:0 0 132px;scroll-snap-align:start}
}
@media (min-width:1024px){.more-from .pgrid{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}}

/* ---------- catalogue overhaul: sticky search and categories, result bar, sorting ---------- */
.cat-tools{display:flex;flex-direction:column;gap:8px}
@media (max-width:1023px){
  .cat-tools{position:sticky;top:0;z-index:5;background:var(--bg);margin:0 calc(var(--pad,16px) * -1);padding:8px var(--pad,16px) 8px;border-bottom:1px solid var(--line)}
  .cat-tools .scrollchips{margin:0;padding:0}
}
.resbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 12px}
.resbar .count{font-size:13px;font-weight:700;color:var(--ink-2)}
.resbar .sorts{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.resbar .sorts::-webkit-scrollbar{display:none}
.chip.sm{height:28px;padding:0 11px;font-size:12px;white-space:nowrap}
.pcard .price{display:inline-flex;align-items:baseline;gap:4px}

/* ---------- service page overhaul ---------- */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px;margin:0}
.facts > div{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.facts .ic{grid-row:1/3;width:20px;height:20px;stroke:var(--ink-2)}
.facts dt{font-size:11px;font-weight:700;color:var(--mute);margin:0;line-height:1.2}
.facts dd{margin:0;font-size:14px;font-weight:800;line-height:1.25}
.how{margin:0;padding:0 0 0 18px;display:grid;gap:6px;font-size:13px;color:var(--ink-2);line-height:1.4}
.how li::marker{font-weight:800;color:var(--ink)}
.cta.buybar{flex-direction:row;flex-wrap:wrap;align-items:center}
.cta.buybar .bar-info{display:flex;flex-direction:column;line-height:1.2;min-width:0}
.cta.buybar .bar-info b{font-size:17px}
.cta.buybar .bar-info span{font-size:12px;color:var(--mute)}
.cta.buybar > .btn:not(.alt){flex:1}
.cta.buybar > .btn.alt:not(.ico){flex:1 1 100%}
.svc-list{display:flex;flex-direction:column;gap:8px}
@media (min-width:1024px){.svc-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- shop header overhaul ---------- */
.shopcard h1,.shopcard .shopname{font-size:25px;letter-spacing:-.04em;line-height:1.1}
.shopcard .openline{display:inline-flex;width:fit-content;padding:3px 10px 3px 8px;border-radius:999px;background:var(--wash);margin-top:7px;font-weight:600}
.shopcard .openline.ok{background:var(--paid-soft)}
.shop-actions{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 4px}
.shop-actions .btn{flex:0 0 auto;width:auto;min-height:36px;padding:0 14px;font-size:13px;gap:6px}
.shop-actions .btn .ic{width:16px;height:16px}
@media (max-width:1023px){.shop-actions{margin-top:4px}}
.pt > .cta{flex:none}
.cta.buybar > .btn.alt.ico{flex:0 0 44px;width:44px;min-width:44px;padding:0}
.cta.buybar > .btn.alt.ico span{display:none}
.cta.buybar > .btn.alt.ico.alt{flex:0 0 44px}
@media (min-width:1200px){.pt-list .pgrid{grid-template-columns:repeat(5,1fr);gap:24px 18px}}

/* ---------- round 3: gallery dots + thumbnails, tinted photo placeholders, booking card ---------- */
.dots{position:absolute;left:0;right:0;bottom:12px;display:flex;justify-content:center;gap:6px;pointer-events:none}
.dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 0 0 1px rgba(16,20,28,.18);transition:width .2s,background .2s}
.dots i.on{width:20px;border-radius:4px;background:#fff}
.thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.thumbs button{width:64px;height:64px;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:var(--wash);cursor:pointer;opacity:.7;transition:opacity .15s,border-color .15s}
.thumbs button img{width:100%;height:100%;object-fit:cover;display:block}
.thumbs button.on,.thumbs button:hover{opacity:1}
.thumbs button.on{border-color:var(--ink)}
.thumbs button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (min-width:1024px){
  .pdp .gallery{position:static}
  .pdp-top{position:sticky;top:20px}
}
/* photo placeholders get a soft tint instead of grey */
.pcard .im:not(:has(img)),.mini .ph,.svc .ph{background:var(--tint,var(--wash))}
.pcard:nth-child(5n+1) .im:not(:has(img)),.mini a:nth-child(5n+1) .ph{--tint:color-mix(in srgb,#3b6fd4 16%,var(--wash))}
.pcard:nth-child(5n+2) .im:not(:has(img)),.mini a:nth-child(5n+2) .ph{--tint:color-mix(in srgb,#2f7d5b 16%,var(--wash))}
.pcard:nth-child(5n+3) .im:not(:has(img)),.mini a:nth-child(5n+3) .ph{--tint:color-mix(in srgb,#c9582a 16%,var(--wash))}
.pcard:nth-child(5n+4) .im:not(:has(img)),.mini a:nth-child(5n+4) .ph{--tint:color-mix(in srgb,#7a4fa0 16%,var(--wash))}
.pcard:nth-child(5n) .im:not(:has(img)),.mini a:nth-child(5n) .ph{--tint:color-mix(in srgb,#b8892a 16%,var(--wash))}
.pcard .im:not(:has(img)) .ic{width:34px;height:34px;opacity:.55}
.buy .card.li .thumb{overflow:hidden}
.buy .card.li .thumb img{width:100%;height:100%;object-fit:cover}
.staffpick{padding:6px 6px 4px}
@media (min-width:1024px){.dots{display:none}}

/* ---------- brand colour picker (merchant profile) ---------- */
.swatches{display:flex;flex-wrap:wrap;gap:10px}
.sw{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--mute);cursor:pointer;width:64px}
.sw > input[type=radio]{position:absolute;opacity:0;pointer-events:none}
.sw > i{display:block;width:40px;height:40px;border-radius:50%;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line-strong);overflow:hidden;position:relative}
.sw > input:checked + i{box-shadow:0 0 0 3px var(--ink)}
.sw > input:focus-visible + i{outline:2px solid var(--copper);outline-offset:3px}
.sw > input:checked ~ span{color:var(--ink);font-weight:700}
.sw .pick input{position:absolute;inset:-6px;width:60px;height:60px;border:0;padding:0;opacity:0;cursor:pointer}
.sw .pick{background:conic-gradient(#e0483f,#e8b030,#3fae62,#2f8fd6,#7b4fd1,#d0407e,#e0483f)}

/* ---------- shop brand colour: primary buttons follow the shop's colour (variables set per shop) ---------- */
body.branded .btn:not(.alt):not(.ghost):not(.dg){background:var(--copper-strong);color:#fff}
body.branded .btn:not(.alt):not(.ghost):not(.dg):hover{background:var(--brand-hover)}
body.branded .btn.cu:hover{background:var(--brand-hover)}
body.branded .chip.on{background:var(--copper-strong);color:#fff}

/* Long product names: two lines on every card, the full name is on the product page. */
.pcard b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* "More from this shop": six on a computer, four on a tablet; a phone scrolls the row. */
@media (min-width:700px) and (max-width:1023px){.more-from .pcard:nth-child(n+5){display:none}}
.facts [hidden]{display:none}
/* Four facts (with "Next free"): two by two on a phone so the times do not wrap awkwardly. */
@media (max-width:699px){.facts:has(> div:nth-child(4):not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- plain spots ---------- */
/* Empty cart: a friendly start, with a few products. */
.empty-cart{display:flex;flex-direction:column;gap:28px;padding:28px 0 8px}
.empty-cart .stack{align-items:center;text-align:center;max-width:420px;margin:0 auto;width:100%}
.empty-cart .av{width:72px;height:72px;border-radius:50%;background:var(--wash);color:var(--ink);display:grid;place-items:center}
.empty-cart .av .ic{width:28px;height:28px}
.empty-cart .ec-actions{display:flex;flex-direction:column;gap:10px;width:100%}
.empty-cart .more-from{margin-top:0}
.empty-cart .more-from .pgrid{grid-template-columns:repeat(2,minmax(0,1fr));display:grid;overflow:visible}
.empty-cart .more-from .pcard{flex:none}
@media (min-width:700px){.empty-cart .ec-actions{flex-direction:row}.empty-cart .more-from .pgrid{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Full cart: "Add more" under the items; on a computer the item column stays in view beside the form. */
.add-more{align-self:flex-start}
@media (min-width:1024px){.buy .buy-grid > section.stack{position:sticky;top:24px}}
/* The merchant home's link card is dark on dark in the dark theme: lift it and outline it. */
.empty-cart .ec-actions .btn{width:auto;white-space:nowrap;padding:0 22px}
@media (max-width:699px){.empty-cart .ec-actions .btn{width:100%}}
.empty-cart .more-from{max-width:760px;margin:0 auto;width:100%}

/* Cart on a computer: more from the shop fills the item column; the booking "no free times" card. */
.cart-more{display:flex;flex-direction:column;gap:12px;margin-top:8px}
.cart-more .pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;overflow:visible}
.cart-more .pcard{flex:none}
.cart-more .h-s{font-size:16px;margin:0}
.nofree{align-items:flex-start}

/* Shop landing + chat, calmer and tighter (live review of a shop with no logo and a long name). */
.shopcard .logo .ini{font:800 22px/1 var(--f-head,inherit);letter-spacing:-.02em;color:var(--copper-ink);background:var(--copper-soft);width:100%;height:100%;display:grid;place-items:center}
.shopcard h1,.shopcard .shopname{font-size:clamp(18px,5vw,22px);line-height:1.15;overflow-wrap:anywhere}
.tiles.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.mini.few{display:grid;grid-template-columns:1fr;gap:8px;margin:0;padding:0;overflow:visible}
.mini.few a{flex-direction:row;align-items:center;gap:12px;flex:none;padding:8px;border:1px solid var(--line);border-radius:14px}
.mini.few img,.mini.few .ph{width:56px;height:56px;aspect-ratio:1;border-radius:10px;flex:none}
@media (min-width:1024px){.mini.few{grid-template-columns:repeat(2,minmax(0,1fr))}}
.back-shop{display:inline-flex;align-items:center;gap:6px;font-weight:600;text-decoration:none}
.back-shop .ic{width:16px;height:16px}
.chat-note{flex-wrap:wrap;justify-content:center;text-align:center;gap:2px 6px;padding:6px 8px;font-weight:500;font-size:13px;background:none;color:var(--mute)}
.chat-note .link{font-weight:600}
.namecard{padding:0;border:0;background:none;box-shadow:none}
.namecard .row{gap:8px}
.namecard .row .in{min-height:44px;flex:1}

.mini.one{grid-template-columns:1fr !important}
.quick{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px;max-width:420px}
.quick .chip{cursor:pointer;font-size:14px;min-height:38px}

/* A shop with no cover gets a quiet band in its own colour instead of nothing. */
.hero.bare{aspect-ratio:auto !important;height:56px;background:linear-gradient(120deg,var(--copper-soft),var(--wash) 70%)}
@media (min-width:1024px){.hero.bare{height:72px;border-radius:16px}}
@media (max-width:1023px){.pt-side .hero.bare{border-radius:0 0 22px 22px}}
/* Tablet: the icon row keeps together on the left and Featured rows sit two across. */
@media (min-width:700px) and (max-width:1023px){
  .tiles,.tiles.three{justify-content:flex-start;gap:36px}
  .tile,.tile.on{flex:0 0 auto;min-width:84px}
  .mini.few{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mini.one{grid-template-columns:1fr}
}

/* UX audit: touch targets reach 44px without changing how things look, and Featured rows read at body size. */
@media (pointer:coarse){
  .portal .chip,.pt-head .me-chip,.pt-head .ib,.portal .btn.sm,.paytile,.mini.few a,.quick .chip,.namecard .link,.composer .ib,.composer .send,.composer .in{position:relative}
  .portal .chip::after,.pt-head .me-chip::after,.pt-head .ib::after,.portal .btn.sm::after,.paytile::after,.quick .chip::after,.namecard .link::after,.composer .ib::after,.composer .send::after,.composer .in::after{content:"";position:absolute;left:-3px;right:-3px;top:50%;height:max(100%,44px);transform:translateY(-50%)}
  .portal .link{position:relative}
  .portal .link::after{content:"";position:absolute;left:-6px;right:-6px;top:50%;height:44px;transform:translateY(-50%)}
  .pt-foot .flinks a,.pt-foot .flinks .linkbtn{display:inline-flex;align-items:center;min-height:44px}
}
.mini.few b{font-size:15px;white-space:normal}
.mini.few .price.s{font-size:14px}
.tile.hasnew .sub{font-size:12px !important}
.namecard .lbl{font-size:13px;font-weight:600;margin:0 0 6px;display:block}
@media (pointer:coarse){
  .pt-head .ib::after,.chat-head .ib::after{left:-4px;right:-4px}
  .chat-head .ib{position:relative}
  .chat-head .ib::after{content:"";position:absolute;top:50%;height:44px;transform:translateY(-50%)}
  .composer .in{min-height:44px}
  .pt-foot .flinks a,.pt-foot .flinks .linkbtn{min-width:44px;justify-content:center}
}

/* ===== Shop identity: the shop's own colour carries the page (masthead, actions, chat bubbles). ===== */
.mast{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;align-items:center;padding:22px 18px 18px;border-radius:22px;background:var(--copper-strong);color:#fff}
.mast .wm{position:absolute;z-index:-1;right:-6px;bottom:-30px;font:800 148px/1 var(--f-head,inherit);letter-spacing:-.07em;color:#fff;opacity:.11;pointer-events:none;user-select:none;white-space:nowrap}
.mast .av{width:56px;height:56px;border-radius:16px;background:rgba(255,255,255,.18);display:grid;place-items:center;overflow:hidden;font-size:21px;letter-spacing:-.02em}
.mast .av img{width:100%;height:100%;object-fit:cover}
.mast .who{min-width:0}
.mast h1{color:#fff;font-size:clamp(22px,6.2vw,28px);line-height:1.08;letter-spacing:-.03em;overflow-wrap:anywhere}
.mast .who p{margin:3px 0 0;font-size:14px;color:#fff;opacity:.92}
.mast .state{grid-column:1/-1;display:inline-flex;align-items:center;gap:8px;width:fit-content;margin:8px 0 0;padding:5px 12px 5px 10px;border-radius:999px;background:rgba(255,255,255,.17);color:#fff;font-size:13px;font-weight:600}
.mast .state .dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.65);flex:none}
.mast .state.ok .dot{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.28)}
@media (max-width:1023px){.pt-side .mast{margin:0 calc(var(--pad,16px) * -1);border-radius:0 0 26px 26px;padding:20px calc(var(--pad,16px) + 4px) 18px}}
@media (max-width:767px){.pt-side .mast{margin:0 -14px;padding:18px 18px 16px}.mast .wm{font-size:120px;bottom:-24px}}
/* actions: real buttons, the first in the shop's colour */
.tile.on{background:var(--copper-strong);border-color:transparent;color:#fff}
.tile.on .sub{color:#fff;opacity:.9}
.tile.on > .ic{background:rgba(255,255,255,.18);stroke:#fff}
@media (max-width:1023px){
  .tiles,.tiles.two,.tiles.three{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;justify-content:stretch}
  .tiles > :last-child:nth-child(odd){grid-column:1/-1;min-height:52px}
  .tile,.tile.on{flex:none;flex-direction:row;align-items:center;text-align:left;gap:10px;min-width:0;min-height:52px;padding:0 14px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface);color:var(--ink)}
  .tile.on{background:var(--copper-strong);border-color:transparent;color:#fff}
  .tile > .ic,.tile.on > .ic{width:34px;height:34px;padding:8px;margin:0;border-radius:10px;background:var(--wash);stroke:var(--ink);flex:none}
  .tile.on > .ic{background:rgba(255,255,255,.18);stroke:#fff}
  .tile b{font-size:15px;margin:0}
  .pt-main > h2.h-m{display:none}
}
@media (min-width:700px) and (max-width:1023px){.tile,.tile.on{min-width:0}}
/* chat: the shop's avatar in the header, the visitor's own messages in the shop's colour */
.av-s{width:36px;height:36px;border-radius:11px;background:var(--copper-soft);color:var(--copper-ink);display:grid;place-items:center;font-weight:800;font-size:13px;overflow:hidden;flex:none}
.av-s img{width:100%;height:100%;object-fit:cover}
.chat-pt .msg.out .bub{background:var(--copper-strong);color:#fff}

.chat-pt .composer .send{background:var(--copper-strong);color:#fff}

/* ===== Shop profile: quiet, text-led sections with hairlines (no boxes) ===== */
.pf-actions{display:flex;flex-wrap:wrap;gap:8px}
.pf-actions .btn{min-height:38px;padding:0 14px;font-size:14px;font-weight:600;border-radius:10px;gap:6px}
.pf-actions .btn .ic{width:16px;height:16px}
.pf-actions .pf-main{background:var(--copper-strong);color:#fff;border-color:transparent}
.pf-off{font-size:13px;color:var(--mute);align-self:center}
.pf-note{margin:0;font-size:14px;color:var(--ink-2);padding:10px 0;border-bottom:1px solid var(--line)}
.pf{display:flex;flex-direction:column;gap:10px;padding:18px 0;border-top:1px solid var(--line);min-width:0}
.pf:first-of-type{border-top:0;padding-top:6px}
.pf-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pf-h{font-family:var(--f-body,inherit);font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.3;margin:0;color:var(--ink)}
.pf-text{margin:0;font-size:15px;line-height:1.6;color:var(--ink-2);max-width:68ch;white-space:pre-line}
.pf-text.clamp{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
#about-more:checked ~ .pf-text.clamp{-webkit-line-clamp:unset;display:block}
.pf-more{cursor:pointer;width:fit-content;font-size:14px}
.pf-more .l,#about-more:checked ~ .pf-more .m{display:none}
#about-more:checked ~ .pf-more .l{display:inline}
#about-more:focus-visible ~ .pf-more{outline:2px solid var(--copper);outline-offset:3px;border-radius:4px}
.pf-list{list-style:none;margin:0;padding:0}
.pf-list li{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.pf-list li:first-child{border-top:0;padding-top:2px}
.pf-row{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none;color:var(--ink)}
.pf-row .th{width:44px;height:44px;border-radius:10px;overflow:hidden;background:var(--wash);flex:none}
.pf-row .th img{width:100%;height:100%;object-fit:cover}
.pf-row .grow{display:flex;flex-direction:column;gap:1px;min-width:0}
.pf-row b{font-size:15px;font-weight:600;line-height:1.3}
.pf-row .sub{font-size:13px;color:var(--mute)}
.pf-row .price{font-size:14px;font-weight:600;white-space:nowrap;color:var(--ink)}
.pf-book{flex:none;font-size:14px;font-weight:700;color:var(--copper-ink);text-decoration:none;padding:6px 2px;position:relative}
.pf-book::after{content:"";position:absolute;inset:-8px -8px}
.pf-book:hover{text-decoration:underline}
.pf-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:14px 12px !important}
@media (min-width:700px){.pf-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important}}
.pf-hours summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:15px;color:var(--ink-2);padding:2px 0}
.pf-hours summary::-webkit-details-marker{display:none}
.pf-hours .hours{margin-top:8px}
.pf-where{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:15px;color:var(--ink-2)}
.pf-where .ic{width:18px;height:18px;flex:none;margin-top:2px;color:var(--mute)}
.pf-pay{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.pf-pay b{display:block;font-size:15px;font-weight:600}
.pf-pay .sub{font-size:13px;color:var(--mute)}
.pf-pay .ic{width:18px;height:18px;color:var(--mute);flex:none}
.pf-priv{display:flex;gap:8px;align-items:center;margin:0;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:var(--mute)}
.pf-priv .ic{width:16px;height:16px;flex:none}
@media (max-width:1023px){.pt-side .pf-actions{margin-top:2px}}
@media (min-width:1024px){.pt-main{gap:0}}
@media (max-width:480px){.pf-actions .pf-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.pf-actions button.btn{padding:0 11px}.pf-actions{gap:6px}.pf-actions .btn{padding-inline:12px}}

/* Shop detail pages in the quiet profile style: rows and hairlines, not boxes */
.pdp .facts{display:block;margin:0;border-bottom:1px solid var(--line)}
.pdp .facts > div{display:grid;grid-template-columns:20px 1fr auto;column-gap:10px;align-items:center;padding:10px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.pdp .facts .ic{grid-row:auto;width:18px;height:18px;stroke:var(--mute)}
.pdp .facts dt{font-size:14px;font-weight:500;color:var(--mute)}
.pdp .facts dd{font-size:15px;font-weight:600;text-align:right}
.pf-fine{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:14px;line-height:1.45;color:var(--ink-2)}
.pf-fine .ic{width:16px;height:16px;flex:none;margin-top:2px;color:var(--mute)}
.pdp .how{font-size:14px;color:var(--ink-2)}
.gallery.wide img,.gallery.wide .ph{aspect-ratio:16/10}
@media (min-width:1024px){.gallery.wide img,.gallery.wide .ph{aspect-ratio:4/3}}
.pf-cta{flex-direction:row !important;flex-wrap:wrap;align-items:center;gap:8px}
.pf-cta > .btn:not(.alt){flex:1 1 160px}
.pf-cta > .btn.alt:not(.ico){flex:0 0 auto !important;min-height:44px;padding:0 16px;font-size:14px;font-weight:600}
.pf-cta > .card{flex:1 1 100%}
.pf-cta .bar-info{flex:0 0 auto}
.more-from.pf{gap:10px;margin-top:22px}
.more-from.pf .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:700px){.more-from.pf .pgrid.four{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1024px){.pt-list .pf-list li{padding:12px 0}}
.pt-list h1.h-l{font-size:20px;letter-spacing:-.01em}
.pt-list .pf-list{margin-top:2px}
.pt-list .pf-row .ic{width:18px;height:18px;color:var(--mute);flex:none}
.resbar .sorts .chip{background:none;border-color:transparent;color:var(--mute);font-weight:600}
.resbar .sorts .chip.on{background:none;color:var(--ink);box-shadow:inset 0 -2px 0 var(--copper-strong);border-radius:0}
.scrollchips .chip.on{background:var(--copper-soft);color:var(--copper-ink);border-color:transparent}
.pcard b{font-size:14px;font-weight:600}
.pcard .price{font-size:14px;font-weight:700}
.pcard .im{border-radius:12px}
.pcard:hover .im{transform:none;box-shadow:none}
.pf-cta > .btn.alt:not(.ico){width:auto !important}
.pf-cta > .btn:not(.alt){width:auto}
@media (min-width:1024px){.more-from.pf .pgrid.four{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Cart and booking in the quiet profile style */
.buy .btn:not(.alt):not(.dg):not(.cu){background:var(--copper-strong);color:#fff}
.buy .btn:not(.alt):not(.dg):not(.cu):hover{background:var(--brand-hover,var(--copper-strong))}
.seg label:has(input:checked){background:var(--copper-soft);color:var(--copper-ink);border-color:var(--copper-strong);box-shadow:inset 0 0 0 1px var(--copper-strong)}
.datestrip .on{background:var(--copper-strong);border-color:var(--copper-strong);color:#fff}
.datestrip .on small{color:#fff;opacity:.85}
.slots .chip{font-family:inherit;font-variant-numeric:tabular-nums;font-weight:600;background:var(--surface);border:1px solid var(--line)}
.slots .chip:hover{background:var(--copper-soft);color:var(--copper-ink);border-color:var(--copper-strong)}
.buy .card.ok.note{background:none;border:0;padding:0;color:var(--paid-ink)}
.add-more{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:14px;padding:4px 0;width:fit-content}
.add-more .ic{width:16px;height:16px}
.pf-acts{display:flex;flex-wrap:wrap;gap:8px}
.pf-acts .btn{min-height:40px;font-size:14px;font-weight:600;padding:0 14px}
.pf-cancel{margin:0}
.pf-cancel .linkbtn{font-size:14px;color:var(--danger);text-decoration:none;font-weight:600;padding:8px 0;min-height:36px}
.pf-cancel .linkbtn:hover{text-decoration:underline}
.pf-follow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.pf-follow b{display:block;font-size:15px}
.pf-follow .sub{display:block;font-size:13px;color:var(--mute)}
.pf-follow .ic{width:18px;height:18px;color:var(--copper-ink);flex:none}
.buy .summary{border:0;border-radius:0;box-shadow:none;background:none;padding:0}
.buy .summary .row{padding:9px 0;border-top:1px solid var(--line)}
.buy .summary .row:last-child{border-bottom:1px solid var(--line)}
.pf-acts .btn{width:auto;flex:0 0 auto}
.buy .card.li,.buy .card.li.cline{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;background:none;padding:10px 0}
.buy .totals.card.soft{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0 0}

/* Shop front: compact bar, one grid of products and services */
.sh{display:flex;flex-direction:column;gap:12px;max-width:1120px;margin-inline:auto}
.sh-bar{display:flex;align-items:center;gap:10px;min-height:44px}
.sh-av{width:36px;height:36px;border-radius:10px;overflow:hidden;flex:none;background:var(--copper-soft);color:var(--copper-ink);display:grid;place-items:center;font-size:13px;font-weight:800}
.sh-av img{width:100%;height:100%;object-fit:cover}
.sh-id{flex:1;min-width:0;line-height:1.2}
.sh-id h1{margin:0;font-size:16px;font-weight:700;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-id p{margin:0;font-size:12.5px;color:var(--mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sh-cover{border-radius:14px;overflow:hidden;background:var(--wash);aspect-ratio:4/1}
.sh-cover img{width:100%;height:100%;object-fit:cover;display:block}
.sh-strip{display:flex;align-items:center;gap:4px;position:relative;flex-wrap:wrap}
.sh-strip .sp{flex:1}
.sh-open{position:relative}
.sh-open summary{display:inline-flex;align-items:center;gap:7px;cursor:pointer;list-style:none;font-size:13.5px;font-weight:600;color:var(--ink-2);padding:7px 10px 7px 4px;min-height:36px;border-radius:999px}
.sh-open summary::-webkit-details-marker{display:none}
.sh-open summary .dot{width:8px;height:8px;border-radius:50%;background:var(--mute);flex:none}
.sh-open summary.ok{color:var(--paid-ink)}
.sh-open summary.ok .dot{background:var(--paid-ink)}
.sh-open summary .ic{width:15px;height:15px;color:var(--mute)}
.sh-pop{position:absolute;z-index:5;top:100%;left:0;width:min(300px,calc(100vw - 32px));background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-1);padding:14px;display:flex;flex-direction:column;gap:8px}
.sh-addr{display:flex;gap:8px;align-items:flex-start;margin:4px 0 0;font-size:13.5px;color:var(--ink-2)}
.sh-addr .ic{width:16px;height:16px;flex:none;margin-top:2px;color:var(--mute)}
.sh-act{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:0;background:none;border-radius:999px;font:inherit;font-size:13.5px;font-weight:600;color:var(--ink-2);text-decoration:none;cursor:pointer}
.sh-act:hover{background:var(--wash);color:var(--ink)}
.sh-act .ic{width:17px;height:17px}
@media (max-width:560px){.sh-act span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.sh-act{width:40px;justify-content:center;padding:0}.sh-strip{gap:0;flex-wrap:nowrap}.sh-open summary{padding-right:6px}.sh-open summary span{white-space:nowrap}.sh-chat{background:var(--copper-strong);color:#fff}.sh-chat:hover{background:var(--brand-hover,var(--copper-strong));color:#fff}}
@media (min-width:561px){.sh-chat{background:var(--copper-strong);color:#fff}.sh-chat:hover{background:var(--brand-hover,var(--copper-strong));color:#fff}}
@media (max-width:1023px){.sh-grid .im{aspect-ratio:4/3}}
.sh-about .pf-text{font-size:14px;line-height:1.5}
.sh-cat{display:flex;flex-direction:column;gap:12px}
.sh-tools{display:flex;flex-direction:column;gap:10px}
.sh-tabs{display:flex;gap:6px}
.sh-tabs label{padding:7px 14px;border-radius:999px;font-size:14px;font-weight:600;color:var(--ink-2);background:var(--wash);cursor:pointer;min-height:36px;display:inline-flex;align-items:center}
.sh-tabs input:checked + label{background:var(--copper-strong);color:#fff}
.sh-tabs input:focus-visible + label{outline:2px solid var(--copper);outline-offset:2px}
.sh-cat:has(#t-prod:checked) .sh-grid [data-k=Service],.sh-cat:has(#t-svc:checked) .sh-grid [data-k=Product]{display:none}
.sh-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:16px 12px !important}
@media (min-width:700px){.sh-grid{grid-template-columns:repeat(4,minmax(0,1fr)) !important}.sh-tools{flex-direction:row;align-items:center;justify-content:space-between}.sh-search{flex:0 1 340px}}
@media (min-width:1024px){.sh-grid{grid-template-columns:repeat(5,minmax(0,1fr)) !important}}
.pcard .kind{position:absolute;left:8px;top:8px;font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--surface);color:var(--ink-2);box-shadow:0 0 0 1px var(--line)}
.kind-Service .kind{background:var(--copper-soft);color:var(--copper-ink);box-shadow:none}
.pcard .meta{font-size:12.5px;color:var(--mute);margin-top:-2px}
.pcard .foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.pcard .foot .act{font-size:13px;font-weight:700;color:var(--copper-ink)}
.pcard.out .foot .act{display:none}
.sh-more{display:flex;gap:18px;flex-wrap:wrap;margin:0}

/* Shop front polish: readable tags, 44px taps, few-item layout, focus */
.pcard .kind,.pcard .im .chip{font-size:12px;height:auto;padding:3px 8px;line-height:1.3}
.sh-act:focus-visible,.sh-open summary:focus-visible{outline:2px solid var(--copper-strong);outline-offset:2px}
@media (pointer:coarse){.sh-act,.sh-open summary,.sh-tabs label{position:relative}.sh-act::after,.sh-open summary::after{content:"";position:absolute;inset:-4px -2px}.sh-search .in{min-height:44px}.sh-tabs label{min-height:44px}}
@media (max-width:420px){.sh-bar .me-t{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.sh-bar .me-chip{padding:0 10px}}
.sh-grid.few{grid-template-columns:1fr !important;gap:0 !important}
.sh-grid.few .pcard{display:grid;grid-template-columns:84px 1fr;grid-template-rows:auto auto auto;column-gap:14px;row-gap:2px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.sh-grid.few .pcard:first-child{border-top:0}
.sh-grid.few .pcard .im{grid-row:1/4;aspect-ratio:1 !important;border-radius:12px}
.sh-grid.few .pcard .kind{display:none}
.sh-grid.few .pcard b{margin:0;font-size:15px}
.sh-grid.few .pcard .meta{margin:0}
@media (min-width:700px){.sh-grid.few{grid-template-columns:repeat(2,minmax(0,1fr)) !important;column-gap:32px !important}.sh-grid.few .pcard:nth-child(2){border-top:0}}
@media (min-width:700px){.sh-cover{aspect-ratio:auto;height:170px}}

/* Chat: the message box is the main thing; quiet chrome around it */
.chat-pt .chat-head{border-bottom:1px solid var(--line);padding-bottom:8px}
.chat-pt .namecard{margin:0}
.chat-pt .namecard .row .in{font-size:15px}
.chat-pt .leave{background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;padding:10px 0 4px;gap:4px}
.chat-pt .leave > .row:first-child b{font-size:14px;font-weight:600}
.chat-pt .leave .chip{background:none;border:0;padding:0;height:auto;min-height:32px;color:var(--copper-ink);font-weight:700}
.chat-pt .leave .sub{font-size:12.5px}
.chat-pt .quick .chip{background:var(--surface);border:1px solid var(--line);font-weight:600;min-height:40px}
.chat-pt .quick .chip:hover{background:var(--copper-soft);border-color:var(--copper-strong);color:var(--copper-ink)}
.chat-pt .chat-empty .av{width:44px;height:44px}
.chat-pt .back-shop{min-height:44px}
.chat-pt .shopcard{padding:14px 16px;gap:12px;align-items:center}
.chat-pt .shopcard .logo{width:44px;height:44px;border-radius:12px;flex:none}
.chat-pt .shopcard .logo .ini{font-size:15px}
.chat-pt .shopcard h1,.chat-pt .shopcard .shopname{font-size:17px}
.chat-pt .chat-note .link{display:inline-flex;align-items:center;min-height:32px}
@media (max-width:1023px){.chat-pt .chat-head .ib{width:44px;height:44px}}
.chat-pt .composer .in:focus-visible,.chat-pt .namecard .in:focus-visible{outline:2px solid var(--copper-strong);outline-offset:1px}

/* Merchant home and sign-up tools in the quiet style: rows and hairlines, not stacks of boxes */
.home .h-link{display:flex;flex-direction:column;gap:2px;padding:0 0 14px !important;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none !important;color:var(--ink)}
.home .h-link .sub{font-size:13px;color:var(--mute)}
.home .h-link a.mono{font-size:17px !important;font-weight:700;color:var(--copper-ink);text-decoration:none;overflow-wrap:anywhere}
.home .h-link a.mono:hover{text-decoration:underline}
.h-needs{gap:0 !important}
.h-needs .lbl{margin-bottom:2px}
.h-needs .card.row{border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;padding:12px 0 !important}
.h-needs .card.row .ic{color:var(--mute)}
.h-needs .card.row:hover{background:var(--wash)}
.home .h-qr.statuscard{border:0;border-radius:0;background:none;box-shadow:none;padding:0;border-top:1px solid var(--line);padding-top:14px}
.h-links{display:flex !important;flex-direction:column;gap:0 !important;margin-top:6px}
.h-links .card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:baseline;border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;padding:12px 0}
.h-links .card b{font-size:15px}
.h-links .card .sub{margin:0;font-size:13px}
.h-links .card:hover{background:var(--wash)}
@media (min-width:1024px){.h-links{grid-column:1 / -1}}
.tgrow{border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:13px 0}
.tgrow.rec{border-color:var(--line);border-top-color:var(--line)}
.tgrow.rec b{color:var(--ink)}
.tgrow .sub{font-size:13px}

/* Billing, money, insights: quiet rows instead of boxed cards */
.fin .ops-card{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--line);padding:16px 0 4px}
.fin .ops-card h2{font-size:15px;font-weight:600;color:var(--mute)}
.fin .kpis,.fin .balance{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.fin .kpi{background:none;border:0;border-radius:0;padding:14px 0}
.fin .kpis .kpi:nth-child(even),.fin .balance .kpi:nth-child(even){padding-left:16px;border-left:1px solid var(--line)}
.fin .kpis .kpi:nth-child(n+3){border-top:1px solid var(--line)}
.fin .kpi b{font-size:24px}
.fin .kpi .sub{font-size:13px}
.fin .opt{border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:12px 0;box-shadow:none}
.fin .opt:has(input:checked){border:0;border-top:1px solid var(--line);box-shadow:none}
.fin .opt:has(input:checked) b{color:var(--copper-ink)}
.fin .opt:has(input:checked) .tick{background:var(--copper-strong);border-color:var(--copper-strong)}
.fin-pick{border:0;padding:0;margin:0}
.fin-pick .lbl{margin-bottom:4px}
.fin .btn:not(.alt):not(.dg):not(.ib){background:var(--copper-strong);color:#fff}
.fin .btn:not(.alt):not(.dg):disabled{background:var(--wash);color:var(--mute)}
.fin .m-list>*{padding:12px 0}
.fin .bars{height:140px;gap:8px}
.fin .bars i{border-radius:3px 3px 0 0}
.fin .insgrid{gap:0}
.fin .insgrid .ops-card .row{padding:7px 0;border-top:1px solid var(--line)}
.fin .insgrid .ops-card .row:first-of-type{border-top:0}
.fin .chip.on{background:var(--copper-strong);color:#fff}
@media (min-width:1024px){.fin .insgrid{grid-template-columns:1fr 1fr;column-gap:32px}}
.fin .kpis,.fin .balance{margin-top:12px}
.fin .insgrid .ops-card .row{padding:4px 0;min-height:0}
.fin .insgrid .ops-card{padding-bottom:12px}
.fin .btn:disabled{border:1px solid var(--line)}

/* Chats, orders, products, services, calendar: quiet lists and rows */
.qm .ilist{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.qm .irow{padding:12px 2px;gap:12px}
.qm .irow .av{width:36px;height:36px;font-size:14px}
.qm .irow.on{background:var(--copper-soft)}
.qm .irow:hover{background:var(--surface-2)}
.qm .irow .chip.cnt{background:var(--copper-strong);color:#fff}
.qm .isearch > .ic{top:50%;transform:translateY(-50%);left:12px;width:18px;height:18px;pointer-events:none}
.qm .isearch .in{padding-left:40px !important;min-height:44px}
.qm .chips{gap:6px}
.qm .chip.on{background:var(--copper-strong);color:#fff;border-color:var(--copper-strong)}
.qm .m-list>*:hover{background:var(--surface-2)}
.qm .m-list .thumb{width:44px;height:44px;border-radius:8px}
.qm .m-head .btn.sm{min-height:40px}
/* order and booking detail */
.qm .odetail{gap:0}
.qm .odetail > section.stack{gap:10px;padding-top:16px}
.qm form.ops-card{border-top:0;padding:0}
.qm .odetail form.ops-card .btn{width:100%}
.qm .codecard{border-top:1px solid var(--line);padding-top:14px}
.qm .card.note{border-radius:10px}
.qm .odetail .ops-card .row{padding:4px 0}
.qm .m-head .link{font-size:14px;display:inline-block;margin-bottom:4px}
/* calendar: one row per person, bookings beneath */
.qm .calcols{gap:0;border-bottom:1px solid var(--line)}
.qm .calcol{gap:8px;padding:12px 0}
.qm .calcol > .row .av{width:28px !important;height:28px !important;font-size:13px}
.qm .calcol:has(> p.sub){flex-direction:row;align-items:center;justify-content:space-between}
.qm .calcol > p.sub{margin:0;font-size:13px}
.qm .bk{border:0;border-left:3px solid var(--paid);border-radius:0;background:var(--surface-2);padding:8px 12px}
.qm details.ops-card{padding:14px 0;border-top:0}
.qm details.ops-card > summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:6px;color:var(--copper-ink)}
/* product and service edit */
.qm .setrow:first-child{border-top:0}
.qm .setactions{padding:14px 0}
.qm form.ops-card.row{border-top:1px solid var(--line);padding:14px 0}
/* merchant chat: flat customer panel */
.qm .cpanel{box-shadow:none;border-radius:0;background:none;border-left:1px solid var(--line)}
.qm .cpanel .kpi{background:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:10px 0}
.qm .quick .chip{background:none;border:1px solid var(--line-strong)}
@media (max-width:1023px){.qm .cpanel{border-left:0;border-top:1px solid var(--line)}}
@media (min-width:1024px){.qm .calcols{border-bottom:0;column-gap:24px}.qm .calcol{border-top:1px solid var(--line)}}
.qm .m-head{margin-bottom:8px}
@media (max-width:1023px){.chats.has-conv{margin-left:-14px !important;margin-right:-14px !important}}
.qm .convo{box-shadow:none;border:1px solid var(--line);border-radius:12px}
.qm form.ops-card.row .btn{white-space:nowrap;flex:none}
@media (max-width:1023px){.qm .chats.has-conv .convo{border:0;border-radius:0}}
.qm-service .opt{border-top:0 !important;padding:8px 0}
@media (min-width:1024px){.qm .odetail{column-gap:40px}}

/* ---------- audit pass: 44px targets, AA contrast, calm locked switches, desktop density ---------- */
/* Switches keep their look; the tap area grows to 44px tall. */
.tg::before{content:"";position:absolute;inset:-8px}
.chip.lk{background:var(--wash);color:var(--ink-2)}
.chip.lk.ok{background:var(--paid-soft);color:var(--paid-ink)}
.home .h-link a.mono,.m-head .link{display:inline-flex;align-items:center;min-height:44px}
.m-brand .qs{min-height:44px;display:inline-flex;align-items:center}
.daynav .ib,.m-top .ib,.m-top-chat{width:44px;height:44px}
.m-top .qs{min-width:44px;min-height:44px;display:grid;place-items:center}
.home .link{display:inline-flex;align-items:center;min-height:44px}
@media (max-width:1023px){
  .setrow:has(> div > .chip.lk){grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
  /* the last axis label ends at the bar's right edge instead of poking past the card */
  .bars > div:last-child small{align-self:flex-end;max-width:none;width:max-content}
  .qm .m-head .btn.sm,.mapp .seg label{min-height:44px}
  .burger{width:44px;height:44px}
  .m-top{height:52px}
  .m-nav a,.m-nav .m-out{min-height:46px}
  .mapp .btn,.mapp .btn.sm,.qrbtns .btn.sm{min-height:44px}
  .mapp .in,.mapp select.in,.vtable .in{min-height:44px}
  /* filter and range chips: 32px pill, 44px tap area; rows are spaced so the areas never overlap */
  .mapp a.chip,.mapp button.chip{height:32px;font-size:13px;padding:0 12px;position:relative}
  .mapp a.chip::after,.mapp button.chip::after{content:"";position:absolute;inset:-6px -2px}
  .mapp nav.chips{row-gap:12px}
  /* a wrapped filter row fills its width, so no chip sits alone on a second line */
  .mapp nav.chips > .chip{flex:1 1 auto;justify-content:center}
  .m-top-chat .cnt{height:20px;min-width:20px;font-size:12px;padding:0 5px;top:-4px;right:-4px}
}
/* Desktop: use the width instead of one long column */
@media (min-width:1024px){
  .fin-money,.fin-billing,.qm-calendar{display:grid;column-gap:40px;row-gap:16px;align-items:start}
  .fin-money{grid-template-columns:minmax(0,1fr) minmax(320px,440px)}
  .fin-money > *{grid-column:1}
  .fin-money > div:first-child,.fin-money > .note,.fin-money > .card{grid-column:1 / -1}
  .fin-money > form{grid-column:2;grid-row:2 / span 3}
  .fin-billing{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .fin-billing > div:first-child{grid-column:1 / -1}
  .fin-billing > section:nth-of-type(1){grid-column:1;grid-row:2 / span 3}
  .fin-billing > section:nth-of-type(n+2){grid-column:2}
  .qm-calendar{grid-template-columns:minmax(0,1fr) 340px}
  .qm-calendar > .m-head{grid-column:1 / -1}
  .qm-calendar > .calcols{grid-column:1}
  .qm-calendar > details{grid-column:2;grid-row:2}
}

/* Home at 1024-1279px: the balance figures scale with the column so the pair never pushes the grid wider than the screen */
@media (min-width:1024px){
  .home .kpi{min-width:0}
  .home .kpi b{font-size:clamp(20px,2.1vw,28px);overflow-wrap:anywhere}
  .home .kpi{padding:16px clamp(12px,1.4vw,18px)}
}

/* The delivery code is the one thing the customer types on that screen: full width and the biggest element */
.otp.four{max-width:none;height:64px;font-size:36px;letter-spacing:.7em;text-indent:.7em;text-align:center}

/* Customer booking and payment pages: 44px targets, readable day strip, header title is the h1 */
.pt-head h1.t{font-family:var(--f-body);letter-spacing:0;line-height:1.2}
.buy .summary a.link{padding:14px 4px;margin:0 -4px}
@media (max-width:1023px){
  .slots .chip{height:44px}
  .cap-u{font-size:12px}
  .staffpick a{min-width:48px;padding:2px 0}
  .datestrip small{font-size:12px}
  .datestrip > *{min-height:48px;padding:6px 0}
  .buy .btn,.buy .btn.sm,.buy .g2 .btn{min-height:44px}
  .buy .in,.buy select.in{min-height:44px}
  .buy .seg label,.buy .linkbtn{min-height:44px}
}

/* Ops console: readable count chip (white on a dark copper), 44px logo link, inline shop links, 12px captions */
.ops-nav .chip{background:#a8461f;color:#fff}
.ops-top .qs{min-height:44px;display:inline-flex;align-items:center}
.ops .sub a.link{padding:13px 4px;margin:0 -4px}
.seg label small{font-size:12px}
@media (max-width:1023px){.ops .btn,.ops .btn.sm{min-height:44px}.ops .in,.ops select.in{min-height:44px}}
.ops a.link.back{display:inline-flex;align-items:center;gap:4px;min-height:44px}

/* Ops plans: a card per plan on phones (a table of any number of plans cannot fit), the comparison table from 700px */
.plancards{display:none}
.plancard{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.plancard h3{font-size:18px}
.plancard dl{display:grid;grid-template-columns:1fr auto;gap:6px 12px;margin:0;font-size:14px}
.plancard dt{color:var(--ink-2)}.plancard dd{margin:0;text-align:right}
@media (max-width:699px){.cmp-wrap{display:none}.plancards{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:10px}}

/* Portal pass: 44px targets on phones, a calm shop action row, readable sold-out text */
@media (max-width:700px){
  .qs{display:inline-flex;align-items:center;min-height:44px}
  .site-foot a:not(.qs){display:inline-block;padding:13px 6px;margin:-13px -6px}
  .site-theme,.pdp-top .over .ib{width:44px;height:44px}
  .vchips label{min-height:44px;padding:3px 14px}
  .vchips label small{font-size:12px}
  .btn{min-height:44px}
  .sh-search .in{min-height:44px}
  .sh-tabs label{min-height:44px;min-width:44px;justify-content:center}
  .sh-strip{flex-wrap:wrap}
  .sh-open{flex:1 1 100%}
  .sh-strip .sp{display:none}
  .sh-act{flex:none;width:44px;min-height:44px}
}
.btn.cu{color:#fff}
@media (max-width:700px){
  .ib.theme-btn{width:44px;height:44px}
  .chip.me-chip{min-width:44px;min-height:44px;justify-content:center}
  .affix.sh-search .in,.sh-search input.in{min-height:44px;height:44px}
  .sh-tabs label{min-width:48px}
  .empty-cart .ec-actions .btn{min-height:44px}
}
@media (max-width:700px){
  .affix[role=search]{min-height:44px}
  .affix[role=search] .in{min-height:44px;height:auto}
  .scrollchips .chip{min-height:44px;min-width:48px;justify-content:center}
}

/* Customer pass: one h1 on receipt, 44px stepper and checkbox rows, 12px message times */
.slipbox h1.qs{font-family:inherit;font-size:inherit;font-weight:700;letter-spacing:inherit;margin:0}
.msg .meta{font-size:12px}
@media (max-width:700px){
  .stepper{gap:0}
  .stepper .ib{width:44px;height:44px}
  .chk{min-height:44px}
}
button.link{background:none;border:0;cursor:pointer;font:inherit;font-weight:700}
@media (max-width:700px){
  .btn.sm{min-height:44px}
  a.row,.me-orders a.row{min-height:44px}
  .reorder .link{min-height:44px;padding:0 12px}
  .leave .ib.x{width:44px;height:44px}
}
@media (max-width:700px){
  .pt .btn,.pt a.btn,.pt button.btn,.pt-main .btn{min-height:44px}
}
@media (max-width:700px){
  .buy section.card .btn,.buy form > .btn.alt:only-child,.buy .btn.alt,.buy .btn.sm,.buy .g2 .btn,.portal .btn.sm{min-height:44px}
}

/* Call box: same readable colours in light and dark; 44px switch area */
.cbtn.ok{background:#0e6e4e;color:#fff}
.cbtn.dg{background:#b42f29;color:#fff}
.cb-dev{color:rgba(255,255,255,.8)}
.tgbtn::before{content:"";position:absolute;inset:-8px -2px}
