/* VyaparBoss UI
   Layout: one calm centered column. The Buy screen is a conversation with Bhai where each answer reveals the next
   question, then quotes, then approval. */
/* Kraft-paper beige with soft-orange headings: the colour of a corrugated box and its printed mark.
   Body text is a deep cocoa (readable); soft orange carries headings, the brand and highlights.
   Teal (--art) survives only inside the illustrations, as truck-art contrast. */
:root{
  --bg:#F1E4CC; --surface:#FBF5EA; --sunk:#EADBC0; --ink:#3E2615; --muted:#7A5132; --line:#E0CBA6;
  --head:#C25E1A; --brand:#B4501A; --brand-deep:#8F3F12; --brand-tint:#F8DFC4; --on-brand:#FFF8EE; --brand-text:#A54A10;
  --accent:#F2A33A; --accent-lite:#FFC965; --accent-deep:#9A5A06; --accent-tint:#FCE9C6; --on-accent:#3E2615;
  --art:#2C6E6A; --art-deep:#1F524F; --art-tint:#D9E8E2;
  --kraft:#DDBF8E; --kraft-dark:#B8925D; --glass:#CFE6EC;
  --good:#2E7A4C; --good-lite:#5CC08F; --good-tint:#E1F0DF; --warn:#9A5A06; --warn-tint:#FCE9C6; --bad:#B23A2B; --bad-tint:#F9DDD5;
  --skin:#C98B5E; --skin-shade:#A8704A; --hair:#2A2233; --blush:#E58E73; --white:#FFFFFF;
  --paper:.07;
  --lift:0 1px 2px rgba(98,52,16,.07),0 8px 22px rgba(98,52,16,.09);
  --f-display:"Baloo 2","Trebuchet MS",system-ui,sans-serif;
  --f-body:"Mukta","Segoe UI",system-ui,-apple-system,sans-serif;
  --r-lg:22px; --r:14px; --r-sm:10px;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}
:root[data-look="dark"]{
  --bg:#1C140E; --surface:#271C14; --sunk:#33251A; --ink:#F3E3CC; --muted:#C2A283; --line:#433122;
  --head:#F2A65A; --brand:#E8823A; --brand-deep:#F5A160; --brand-tint:#3D2616; --on-brand:#1C140E; --brand-text:#F2A65A;
  --accent:#FFB23A; --accent-lite:#FFCF7A; --accent-deep:#E08F12; --accent-tint:#3A2A0E; --on-accent:#2B1C00;
  --art:#4FA39D; --art-deep:#7AD3CF; --art-tint:#1E3533;
  --kraft:#C9A774; --kraft-dark:#9E7A48; --glass:#2D5560;
  --good:#6FCF97; --good-lite:#7FDCAE; --good-tint:#16301F; --warn:#FFAE55; --warn-tint:#3A260F; --bad:#FF8C7A; --bad-tint:#3E1C1A;
  --hair:#1B1622; --white:#FFFFFF;
  --paper:.05;
  --lift:0 1px 2px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.3);
  color-scheme:dark}

/* drawing fills */
.f-brand{fill:var(--art)}.f-brand-deep{fill:var(--art-deep)}.f-brand-tint{fill:var(--art-tint)}
.f-accent{fill:var(--accent)}.f-accent-lite{fill:var(--accent-lite)}.f-accent-deep{fill:var(--accent-deep)}.f-accent-tint{fill:var(--accent-tint)}
.f-kraft{fill:var(--kraft)}.f-kraft-dark{fill:var(--kraft-dark)}.f-glass{fill:var(--glass)}
.f-good{fill:var(--good)}.f-good-lite{fill:var(--good-lite)}
.f-skin{fill:var(--skin)}.f-sun{fill:#FFE7A6}.f-sun-core{fill:#FFC93F;opacity:.55}.f-shirt{fill:#1E1F25}.f-shirt-lite{fill:#34363F}.f-tee{fill:#2A2B33}
.f-gold{fill:#F2B33D}.s-gold{stroke:#F2B33D}.s-gold-deep{stroke:#B97E0E}.f-lens{fill:#D92E46;opacity:.92}.f-stubble{fill:#2A2233;opacity:.2}.s-skin-shade{stroke:var(--skin-shade)}.f-skin-shade{fill:var(--skin-shade)}.f-hair{fill:var(--hair)}.f-blush{fill:var(--blush);opacity:.55}
.f-ink{fill:#13232A}.f-white{fill:var(--white)}.f-surface{fill:var(--surface)}.f-sunk{fill:var(--sunk)}
.s-brand-deep{stroke:var(--art-deep)}.s-hair{stroke:var(--hair)}.s-ink{stroke:#13232A}.s-good{stroke:var(--good)}.s-muted{stroke:var(--muted)}
.s-line{stroke:var(--line)}.s-accent{stroke:var(--accent)}.s-accent-deep{stroke:var(--accent-deep)}.s-white{stroke:var(--white)}.s-on-brand{stroke:var(--on-brand)}

*{box-sizing:border-box}
html{background:var(--bg)}
body{background:transparent}
body{margin:0;color:var(--ink);font-family:var(--f-body);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
@media(min-width:760px){body{padding-bottom:0}}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:6px}
h1,h2,h3{font-family:var(--f-display);font-weight:700;line-height:1.15;margin:0;text-wrap:balance;letter-spacing:-.01em}
h1{font-size:clamp(28px,4.4vw,40px)}
h2{font-size:24px}
h3{font-size:19px}
p{margin:0}
.muted{color:var(--muted)}
.num{font-variant-numeric:tabular-nums}
.wrap{max-width:1040px;margin:0 auto;padding-inline:16px}
.ic{width:20px;height:20px;flex:none}
[hidden]{display:none!important}

/* ---------- header ---------- */
header.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.topbar{display:flex;align-items:center;gap:20px;padding-block:10px}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink)}
.logo{width:40px;height:40px}
.boss{color:var(--accent-deep)}
:root[data-look="dark"] .boss{color:var(--accent)}
.wordmark{font-family:var(--f-display);font-weight:800;font-size:23px;letter-spacing:-.02em;line-height:1}
.lockup{display:flex;flex-direction:column;gap:1px}
.tagline{font-size:13px;font-weight:600;color:var(--muted);line-height:1.1;white-space:nowrap}
@media(max-width:380px){.tagline{display:none}}
.tabs{display:none;gap:4px;margin-left:12px}
@media(min-width:760px){.tabs{display:flex}}
.tabs button{display:flex;align-items:center;gap:7px;border:0;background:none;padding:8px 14px;border-radius:999px;cursor:pointer;color:var(--muted);font-weight:600;font-size:16px}
.tabs button svg{width:19px;height:19px}
.tabs button:hover{color:var(--ink);background:var(--sunk)}
.tabs button[aria-current="page"]{color:var(--brand-text);background:var(--brand-tint)}
.count{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:700;display:inline-grid;place-items:center}
.bhai-status{margin-left:auto;display:flex;align-items:center;gap:7px;font-weight:600;font-size:15px;color:var(--muted);padding:4px 12px 4px 4px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.avatar-xs{width:28px;height:28px}
.bhai-status i{width:8px;height:8px;border-radius:50%;background:var(--muted)}
.bhai-status.live i{background:var(--good)}
.bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border-top:1px solid var(--line);padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px))}
@media(min-width:760px){.bottomnav{display:none}}
.bottomnav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px;font-weight:600;color:var(--muted);padding:6px 0;border-radius:12px;cursor:pointer}
.bottomnav svg{width:24px;height:24px}
.bottomnav button[aria-current="page"]{color:var(--brand-text);background:var(--brand-tint)}

main{padding-block:24px 40px}
.view{animation:none}
.foot{font-size:13px;color:var(--muted);padding-block:8px 28px;max-width:720px}
.foot b{font-family:var(--f-display);font-size:15px;color:var(--ink)}

/* ---------- buttons, chips, fields ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:10px 18px;font-weight:600;font-size:16px;cursor:pointer;text-decoration:none;color:var(--ink);white-space:nowrap}
.btn:hover{border-color:var(--brand)}
.btn.primary{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.btn.primary:hover{background:var(--brand-deep);border-color:var(--brand-deep)}
:root[data-look="dark"] .btn.primary:hover{background:var(--brand-deep)}
.btn.marigold{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.big{padding:14px 24px;font-size:18px}
.btn.sm{padding:6px 12px;font-size:14px}
.btn.ghost{background:transparent;border-color:transparent;color:var(--brand-text)}
.btn.ghost:hover{background:var(--brand-tint)}
.btn.danger{color:var(--bad);border-color:var(--bad)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.link{border:0;background:none;padding:0;color:var(--brand-text);font-weight:600;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 15px;font-size:15.5px;font-weight:500;cursor:pointer}
.chip:hover{border-color:var(--brand);background:var(--brand-tint)}
.chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.field{display:flex;flex-direction:column;gap:5px;min-width:0}
.field label{font-size:14px;font-weight:600;color:var(--muted)}
.field input,.field select,.field textarea,.toolbar input{border:1.5px solid var(--line);background:var(--surface);border-radius:var(--r-sm);padding:10px 12px;min-width:0;width:100%}
.field input:focus,.field select:focus,.toolbar input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--brand-tint)}
.field.narrow{max-width:360px;margin-bottom:14px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.pad{padding:20px}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:13.5px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--sunk);color:var(--muted);white-space:nowrap}
.pill svg{width:15px;height:15px}
.pill.good{background:var(--good-tint);color:var(--good)}
.pill.warn{background:var(--warn-tint);color:var(--warn)}
.pill.bad{background:var(--bad-tint);color:var(--bad)}
.pill.brand{background:var(--brand-tint);color:var(--brand-text)}
.pill.gold{background:var(--accent-tint);color:var(--accent-deep)}
:root[data-look="dark"] .pill.gold{color:var(--accent)}

/* ---------- Buy: start screen ---------- */
.hero{display:grid;gap:24px;align-items:center;padding-block:8px 20px}
@media(min-width:860px){.hero{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:40px;padding-block:28px 28px}}
.hero-art{order:-1;justify-self:start;display:flex;flex-direction:row-reverse;align-items:center;gap:12px}
@media(min-width:860px){.hero-art{order:1;justify-self:center;flex-direction:column;gap:14px}}
.bhai-says{position:relative;background:var(--surface);border:1.5px solid var(--line);border-radius:18px;padding:10px 16px;font-family:var(--f-display);font-weight:700;font-size:18px;line-height:1.2;box-shadow:var(--lift);max-width:220px}
.bhai-says::after{content:"";position:absolute;width:14px;height:14px;background:var(--surface);border:1.5px solid var(--line);border-top:0;border-right:0;left:-8px;top:50%;transform:translateY(-50%) rotate(45deg)}
@media(min-width:860px){.bhai-says{font-size:21px;max-width:260px;text-align:center}.bhai-says::after{left:50%;top:auto;bottom:-8px;transform:translateX(-50%) rotate(-45deg)}}
.bhai-xl{width:clamp(104px,24vw,290px);height:auto;aspect-ratio:1}
@media(max-width:859px){.bhai-xl{width:104px}.hero{gap:14px}}
.hello{font-family:var(--f-display);font-weight:700;font-size:20px;color:var(--accent-deep);margin-bottom:6px}
:root[data-look="dark"] .hello{color:var(--accent)}
.hero h1{font-size:clamp(34px,6vw,58px);font-weight:800;line-height:1.02;letter-spacing:-.02em}
.lede{font-size:19px;color:var(--muted);margin-top:14px;max-width:46ch}
.askbox{display:flex;gap:8px;margin-top:22px;background:var(--surface);border:2px solid var(--brand);border-radius:999px;padding:6px 6px 6px 20px;box-shadow:var(--lift);max-width:620px}
.askbox input{flex:1;min-width:0;border:0;background:none;font-size:18px;padding:8px 0;outline:none}
.askbox:focus-within{box-shadow:0 0 0 4px var(--brand-tint),var(--lift)}
.try{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;font-size:15px;color:var(--muted);align-items:center}
@media(max-width:600px){.try{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px}.try::-webkit-scrollbar{display:none}.try button{flex:none}}
.try button{border:0;background:var(--sunk);border-radius:999px;padding:4px 12px;font-size:14.5px;cursor:pointer;color:var(--ink)}
.try button:hover{background:var(--brand-tint)}
.cats-title{margin:34px 0 12px;font-weight:600;color:var(--muted)}
.cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:620px}
.cat{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1.5px solid var(--line);background:var(--surface);border-radius:var(--r);cursor:pointer;text-align:left}
.cat:hover{border-color:var(--brand);transform:translateY(-2px)}
.cat svg{width:46px;height:46px}
.cat b{font-family:var(--f-display);font-weight:700;font-size:18px;line-height:1.1}
.cat span{font-size:14px;color:var(--muted);line-height:1.3}
@media(max-width:480px){.cat{padding:12px 10px}.cat span{display:none}.cat b{font-size:16px}}
.how{display:grid;gap:12px;margin-top:40px;padding-top:24px;border-top:1px dashed var(--line)}
@media(min-width:760px){.how{grid-template-columns:repeat(3,1fr)}}
.how div{display:flex;gap:12px;align-items:flex-start}
.how .n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--accent-tint);color:var(--accent-deep);font-family:var(--f-display);font-weight:800;display:grid;place-items:center}
:root[data-look="dark"] .how .n{color:var(--accent)}
.how b{display:block;font-family:var(--f-display);font-size:18px;font-weight:700}
.how span{font-size:15px;color:var(--muted)}

/* ---------- Buy: conversation ---------- */
.flow{max-width:720px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.flowtop{display:flex;justify-content:space-between;align-items:center;gap:10px}
.stepper{display:flex;gap:6px;align-items:center;font-size:14px;font-weight:600;color:var(--muted)}
.stepper span{display:flex;align-items:center;gap:6px}
.stepper span::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--line)}
.stepper span.on{color:var(--ink)}
.stepper span.on::before{background:var(--accent)}
.stepper span.done::before{background:var(--brand)}
.stepper .sep{width:16px;height:2px;background:var(--line)}
@media(max-width:480px){.stepper span:not(.on){font-size:0;gap:0}}
.msg{display:flex;gap:10px;align-items:flex-end;max-width:92%}
.msg.u{align-self:flex-end;flex-direction:row-reverse}
.msg .av{width:38px;height:38px;flex:none}
.bubble{padding:10px 15px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16.5px}
.msg.b .bubble{background:var(--surface);border:1px solid var(--line);border-bottom-left-radius:6px}
.msg.u .bubble{background:var(--brand);color:var(--on-brand);border-bottom-right-radius:6px}
.msg .by{display:block;font-size:13px;font-weight:700;color:var(--accent-deep);margin-bottom:1px}
:root[data-look="dark"] .msg .by{color:var(--accent)}
.typing .bubble{display:flex;gap:4px;padding:14px 16px}
.typing .bubble i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1s infinite}
.typing .bubble i:nth-child(2){animation-delay:.15s}.typing .bubble i:nth-child(3){animation-delay:.3s}
@keyframes blink{50%{opacity:.25}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:14px;margin-left:48px}
@media(max-width:560px){.card{margin-left:0}}
.reqpills{display:flex;gap:8px;flex-wrap:wrap}
.req{display:inline-flex;align-items:center;gap:6px;border:1.5px dashed var(--line);background:var(--bg);border-radius:12px;padding:5px 10px;font-size:15px;cursor:pointer;text-align:left}
.req small{display:block;font-size:12px;color:var(--muted);line-height:1.1}
.req b{font-weight:600;line-height:1.2}
.req svg{width:15px;height:15px;color:var(--muted)}
.req:hover{border-color:var(--brand);border-style:solid}
.req.filled{border-style:solid;background:var(--brand-tint);border-color:transparent}
.q-title{font-family:var(--f-display);font-weight:700;font-size:20px}
.ptiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.ptile{border:1.5px solid var(--line);background:var(--surface);border-radius:var(--r);padding:11px 12px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.ptile:hover{border-color:var(--brand);background:var(--brand-tint)}
.ptile b{font-weight:600;line-height:1.25}
.ptile span{font-size:13.5px;color:var(--muted);line-height:1.3}
.cats.small{grid-template-columns:repeat(3,minmax(0,1fr))}
.cats.small .cat{padding:10px}
.cats.small .cat svg{width:36px;height:36px}
.cats.small .cat span{display:none}
.qtyrow{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.qtyin{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--surface);overflow:hidden}
.qtyin:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}
.qtyin input{border:0;outline:none;padding:10px 12px;width:140px;font-size:18px;background:none}
.qtyin span{padding:0 12px;color:var(--muted);font-weight:600;border-left:1px solid var(--line);align-self:stretch;display:grid;place-items:center;background:var(--sunk)}
.hint{font-size:14px;color:var(--muted)}
.back{display:inline-flex;align-items:center;gap:4px;border:0;background:none;color:var(--muted);font-weight:600;cursor:pointer;padding:0;font-size:15px}
.back svg{width:18px;height:18px}

/* quotes */
.best{border:2px solid var(--brand);border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:12px;position:relative;background:var(--surface)}
.best .tag{position:absolute;top:-13px;left:16px;background:var(--accent);color:var(--on-accent);font-family:var(--f-display);font-weight:700;font-size:14px;padding:2px 12px;border-radius:999px;display:flex;align-items:center;gap:6px}
.best .tag svg{width:20px;height:20px}
.who{display:flex;gap:12px;align-items:center}
.mono{flex:none;width:44px;height:44px;border-radius:12px;background:var(--brand-tint);color:var(--brand-text);font-family:var(--f-display);font-weight:800;font-size:18px;display:grid;place-items:center}
.who h3{font-size:20px}
.who .where{font-size:15px;color:var(--muted);display:flex;align-items:center;gap:4px}
.who .where svg{width:15px;height:15px}
.trust{display:flex;gap:6px;flex-wrap:wrap}
.price{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.price .total{font-family:var(--f-display);font-weight:800;font-size:clamp(32px,6vw,42px);line-height:1;letter-spacing:-.02em}
.price .sub{font-size:14.5px;color:var(--muted);margin-top:4px}
.eta{display:flex;align-items:center;gap:6px;font-weight:600}
.eta svg{width:20px;height:20px;color:var(--brand-text)}
.eta.late{color:var(--bad)}.eta.late svg{color:var(--bad)}
.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.note{font-size:15px;background:var(--accent-tint);border-radius:var(--r-sm);padding:10px 12px}
.breakdown{width:100%;border-collapse:collapse;font-size:15.5px}
.breakdown td{padding:6px 0;border-bottom:1px dashed var(--line)}
.breakdown td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;padding-left:10px}
.breakdown tr.tot td{border-bottom:0;border-top:2px solid var(--ink);font-weight:700;padding-top:9px}
.others{display:flex;flex-direction:column;gap:8px}
.orow{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px 14px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg)}
.orow b{display:block;font-weight:600;line-height:1.2}
.orow small{color:var(--muted);font-size:13.5px}
.orow .amt{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.orow .amt small{display:block;font-weight:500}
@media(max-width:480px){.orow{grid-template-columns:minmax(0,1fr) auto}.orow .btn{grid-column:1/-1}}
details.more{border-top:1px solid var(--line);padding-top:10px}
details.more>summary{cursor:pointer;font-weight:600;color:var(--brand-text);list-style:none;display:flex;align-items:center;gap:6px}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary svg{width:18px;height:18px;transition:transform .2s}
details.more[open]>summary svg{transform:rotate(180deg)}
details.more>div{margin-top:12px;display:flex;flex-direction:column;gap:12px}
.tablewrap{overflow-x:auto}
.cmp{width:100%;border-collapse:collapse;font-size:14.5px;min-width:560px}
.cmp th{text-align:left;font-weight:600;color:var(--muted);padding:6px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.cmp td{padding:8px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums;white-space:nowrap}
.cmp td:first-child{white-space:normal}
.cmp th:not(:first-child),.cmp td:not(:first-child){text-align:right}
.excl{margin:0;padding-left:18px;font-size:14.5px;color:var(--muted);display:flex;flex-direction:column;gap:3px}
.negbox{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.negbox .field{flex:1;min-width:160px}
.negres{display:flex;flex-direction:column;gap:3px;font-size:15px}

/* confirm + done */
.summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 18px;font-size:16px}
.summary dt{color:var(--muted)}
.summary dd{margin:0;font-weight:600}
.approve{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r);background:var(--brand-tint);cursor:pointer}
.approve input{width:20px;height:20px;margin-top:3px;accent-color:var(--brand)}
.done{align-items:center;text-align:center;padding:26px 18px}
.done svg.art{width:200px;height:auto;aspect-ratio:220/160}
.done .po{font-variant-numeric:tabular-nums;font-weight:700;background:var(--sunk);padding:2px 10px;border-radius:8px}

/* composer */
.composer{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom,0px));z-index:5;max-width:720px;margin:6px auto 0;width:100%}
@media(min-width:760px){.composer{bottom:16px}}
.composer form{display:flex;gap:8px;align-items:center;background:var(--surface);border:1.5px solid var(--line);border-radius:999px;padding:5px 5px 5px 8px;box-shadow:var(--lift)}
.composer form:focus-within{border-color:var(--brand)}
.composer .av{width:34px;height:34px;flex:none}
.composer input{flex:1;min-width:0;border:0;outline:none;background:none;font-size:16.5px;padding:8px 2px}
.iconbtn{width:42px;height:42px;border-radius:50%;border:0;background:var(--brand);color:var(--on-brand);display:grid;place-items:center;cursor:pointer;flex:none}
.iconbtn svg{width:20px;height:20px}

/* ---------- page heads, empty states ---------- */
.pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.pagehead p{margin-top:4px;max-width:60ch}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:34px 18px}
.empty svg{width:220px;max-width:70%;height:auto;aspect-ratio:260/150}
.empty h2{font-size:22px}
.empty p{color:var(--muted);max-width:44ch}
.seg{display:inline-flex;background:var(--sunk);border-radius:999px;padding:4px}
.seg button{border:0;background:none;border-radius:999px;padding:7px 16px;font-weight:600;cursor:pointer;color:var(--muted)}
.seg button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--lift)}
.lede-sm{max-width:62ch;margin-bottom:14px}

/* ---------- orders ---------- */
.olist{display:flex;flex-direction:column;gap:12px;max-width:820px}
.ocard{padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.ohead{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}
.ohead h3{font-size:19px}
.ohead .meta{font-size:14.5px;color:var(--muted)}
.ohead .amt{font-family:var(--f-display);font-weight:800;font-size:24px;text-align:right;line-height:1.1}
.ohead .amt small{display:block;font-family:var(--f-body);font-size:13.5px;font-weight:500;color:var(--good)}
.track{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.track i{height:7px;border-radius:4px;background:var(--sunk)}
.track i.on{background:var(--brand)}
.track i.now{background:var(--accent)}
.ostatus{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:15px}
.ostatus b{font-weight:700}
.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;font-size:13.5px}
.steps div{color:var(--muted);overflow-wrap:anywhere}
.steps div.on{color:var(--ink);font-weight:600}
.issue{background:var(--bad-tint);color:var(--bad);border-radius:var(--r-sm);padding:9px 12px;font-size:15px}

/* ---------- suppliers ---------- */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.toolbar input{flex:1 1 220px;border-radius:999px;padding-inline:16px}
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px;margin-bottom:16px}
.scard{padding:16px;display:flex;flex-direction:column;gap:10px}
.scard .who h3{font-size:18px}
.tags{display:flex;gap:5px;flex-wrap:wrap}
.tag{font-size:13.5px;padding:2px 9px;border-radius:999px;border:1px solid var(--line);color:var(--muted)}
.plist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:15px}
.plist li{display:flex;justify-content:space-between;gap:10px}
.plist li span:last-child{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.toggle{display:inline-flex;gap:8px;align-items:center;font-size:15px;color:var(--muted);cursor:pointer}
.toggle input{width:18px;height:18px;accent-color:var(--brand)}
.stats3{display:flex;gap:16px;font-size:14.5px;color:var(--muted)}
.stats3 b{color:var(--ink);font-variant-numeric:tabular-nums}
.sform{padding:20px;margin-bottom:16px;display:flex;flex-direction:column;gap:16px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.field.wide{grid-column:span 2}
@media(max-width:520px){.field.wide{grid-column:auto}}
.sform .hint.ok{color:var(--good)}.sform .hint.bad{color:var(--bad)}.sform .hint.warn{color:var(--warn)}
.offers{display:flex;flex-direction:column;gap:8px}
.offer{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.6fr) minmax(0,.7fr) auto;gap:8px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:var(--r);background:var(--bg)}
@media(max-width:720px){.offer{grid-template-columns:1fr 1fr}.offer .field.tiers{grid-column:1/-1}}
.errors{margin:0;padding:10px 12px 10px 30px;background:var(--bad-tint);color:var(--bad);border-radius:var(--r-sm);font-size:15px}
.desklist{display:flex;flex-direction:column;gap:12px;max-width:820px}
.inbox{padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.inbox textarea{width:100%;min-height:110px;border:1.5px solid var(--line);border-radius:var(--r-sm);background:var(--bg);padding:10px 12px;resize:vertical}
.facts{display:flex;gap:20px;flex-wrap:wrap;font-size:15px}
.facts small{display:block;color:var(--muted);font-size:13px}

/* ---------- insights ---------- */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:12px}
.kpi{padding:16px 18px}
.kpi span{display:block;font-size:15px;color:var(--muted)}
.kpi b{display:block;font-family:var(--f-display);font-weight:800;font-size:30px;line-height:1.15;font-variant-numeric:tabular-nums}
.kpi small{font-size:13.5px;color:var(--muted)}
.two{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
@media(min-width:860px){.two{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}}
.two h3{margin-bottom:12px}
.bars{display:flex;flex-direction:column;gap:12px}
.bar{display:grid;grid-template-columns:110px minmax(0,1fr) 84px;gap:10px;align-items:center;font-size:15px}
.bar .trackb{height:12px;background:var(--sunk);border-radius:6px;overflow:hidden}
.bar .fill{height:100%;background:var(--brand);border-radius:6px}
.bar span:last-child{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.howcalc{margin-top:14px;font-size:15px;color:var(--muted);max-width:780px}
.howcalc summary{cursor:pointer;font-weight:600;color:var(--brand-text)}
.howcalc ul{padding-left:20px;display:flex;flex-direction:column;gap:4px}
.wahead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:6px}
.wachat{background:var(--sunk);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;min-height:150px;margin-top:10px}
.wachat .b{max-width:90%;padding:7px 11px;border-radius:12px;font-size:14.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.wachat .b.in{align-self:flex-end;background:var(--good-tint)}
.wachat .b.out{align-self:flex-start;background:var(--surface);border:1px solid var(--line)}
.warow{display:flex;gap:8px;margin-top:8px}
.warow input{flex:1;min-width:0;border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 14px}

.toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:10px 18px;border-radius:999px;font-size:15.5px;font-weight:600;z-index:60;box-shadow:var(--lift);max-width:calc(100vw - 32px)}
@media(min-width:760px){.toast{bottom:24px}}

/* one orchestrated moment: Bhai's newest message and card rise in */
@media(prefers-reduced-motion:no-preference){
  .fresh{animation:rise .35s cubic-bezier(.2,.7,.3,1) both}
  .fresh+.fresh{animation-delay:.08s}
  @keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
  .hero .bhai-xl{animation:wave 1.2s ease-out .2s both}
  @keyframes wave{0%{transform:rotate(-7deg) scale(.95)}60%{transform:rotate(3deg)}100%{transform:none}}
  .cat{transition:transform .15s,border-color .15s}
}

/* ===================== GROW: public sign-up + quote pages, ops tools ===================== */
body.public .tabs,body.public .bottomnav,body.public .bhai-status{display:none!important}
body.public{padding-bottom:0}
.foot a{color:var(--brand-text);font-weight:600}
.joinband{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding:16px 18px;border-radius:var(--r-lg);background:var(--accent-tint);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent)}
.joinband div{max-width:560px}
.pubwrap{max-width:680px;margin-inline:auto;display:flex;flex-direction:column;gap:16px;padding-block:8px 24px}
.pubwrap .card{margin-left:0}
.pubhero{display:flex;align-items:center;gap:18px;justify-content:space-between}
.pubhero h1{font-size:clamp(30px,6vw,46px);font-weight:800;line-height:1.05;letter-spacing:-.02em}
.pubhero .lede{margin-top:8px}
.bhai-l{width:clamp(84px,18vw,140px);aspect-ratio:1;flex:none}
.roles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rolecard{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:16px;border-radius:var(--r-lg);border:1.5px solid var(--line);background:var(--surface);cursor:pointer;color:var(--ink);font:inherit}
.rolecard svg{width:64px;height:48px;margin-bottom:6px}
.rolecard b{font-family:var(--f-display);font-size:19px;line-height:1.15}
.rolecard span{font-size:14.5px;color:var(--muted)}
.rolecard:hover{border-color:var(--brand)}
.rolecard[aria-pressed="true"]{border-color:var(--brand);background:var(--brand-tint);box-shadow:var(--lift)}
@media(max-width:420px){.rolecard{padding:12px}.rolecard b{font-size:17px}}
.q-sub{font-weight:600;margin:4px 0 -4px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.pubfoot{text-align:center;color:var(--muted);font-size:14px}
.pubfoot a{color:var(--brand-text)}
.applist{display:grid;gap:12px}
.applist .tag{display:inline-block;margin-right:4px}
.gate{max-width:520px}
.gate .warow{margin-top:10px}
.outbox{display:grid;gap:16px}
.outbox h3{margin-bottom:6px}
.outbox .toolbar{margin-block:10px}
.outbox select{max-width:100%}
table.leads td{vertical-align:top;font-size:14.5px}
table.leads td:first-child,table.leads th:first-child{width:28px}
table.leads select{font-size:13.5px;padding:3px 6px}
.mailprev{background:var(--sunk);border-radius:var(--r-sm);padding:12px 14px}
.mailprev pre{white-space:pre-wrap;font:15px/1.5 var(--f-body);margin:6px 0 0;color:var(--ink)}
.invlist{list-style:none;padding:0;margin:0 0 10px;display:grid;gap:8px}
.invlist li{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.invlist .actions{margin-left:auto;margin-top:0}
.cmp.leads th,.cmp.leads td{text-align:left;white-space:normal}
.linkish{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.linkish b{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.linkish[aria-expanded="true"] b{color:var(--brand-text)}
.reach{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:2px}
tr.leaddetail td{background:var(--sunk)}
.leadbox{display:grid;gap:16px;padding:8px 2px}
@media(min-width:900px){.leadbox{grid-template-columns:1.2fr 1fr}}
.leadbox textarea{width:100%;margin-top:4px}
.script{margin:6px 0 0;padding-left:20px;display:grid;gap:6px;font-size:14.5px}
.script li:last-child{color:var(--muted);font-style:italic}
.joinform .offer select,.joinform .offer input{width:100%}
@media(max-width:560px){.joinform .offer{grid-template-columns:1fr}}

/* Region and language switch (header) */
.regionpick{margin-left:auto;position:relative}
.regionpick+.bhai-status{margin-left:8px}
.regionpick summary{list-style:none;white-space:nowrap;display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:600;font-size:14.5px;color:var(--muted);padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface)}
.regionpick summary::-webkit-details-marker{display:none}
.regionpick summary:hover,.regionpick[open] summary{color:var(--ink);border-color:var(--brand)}
.regionpick summary svg{width:17px;height:17px}
.regionpick .rp-short{display:none}
@media(max-width:560px){.regionpick .rp-long{display:none}.regionpick .rp-short{display:inline}.regionpick summary{padding:6px 10px}}
.rp-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:230px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--lift);padding:8px;display:grid;gap:2px}
.rp-h{margin:8px 8px 2px;font-size:13.5px;font-weight:700;color:var(--muted)}
.rp-menu button{border:0;background:none;text-align:left;padding:8px 10px;border-radius:var(--r-sm);font:inherit;font-weight:600;color:var(--ink);cursor:pointer;display:flex;justify-content:space-between;align-items:center}
.rp-menu button:hover{background:var(--sunk)}
.rp-menu button[aria-checked="true"]{background:var(--brand-tint);color:var(--brand-text)}
.rp-menu button[aria-checked="true"]::after{content:"✓"}
.rp-note{margin:6px 8px 2px;font-size:13px;color:var(--muted);max-width:240px}
.callnext{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:8px 0 4px;padding:10px 14px;border-radius:var(--r);background:var(--accent-tint)}
.callnext span{color:var(--muted);font-size:14.5px;flex:1;min-width:160px}
.usd{font-size:.42em;font-weight:600;color:var(--muted);letter-spacing:0;white-space:nowrap}
.amt small.usd{font-size:12.5px;display:block}

/* ===================== THEME: kraft paper, soft orange, smooth ===================== */
/* Faint paper fibre behind everything, like the face of a carton. */
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:var(--paper);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .08 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E")}
::selection{background:var(--accent-lite);color:var(--ink)}
h1,h2,h3,.q-title,.price .total,.ohead .amt,.kpi b{color:var(--head)}
.hello,.msg .by{color:var(--brand-text)}
:root[data-look="dark"] .hello,:root[data-look="dark"] .msg .by{color:var(--brand-text)}
.wordmark{color:var(--ink)}
header.top{transition:box-shadow .25s var(--ease),background-color .25s}
header.top.scrolled{box-shadow:0 6px 18px rgba(98,52,16,.08)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Every control answers a touch: colour eases, presses sink a little. */
.btn,.chip,.cat,.ptile,.req,.try button,.tabs button,.bottomnav button,.seg button,.iconbtn,.rolecard,.link,.orow,.regionpick summary,.rp-menu button{
  transition:background-color .18s var(--ease),border-color .18s var(--ease),color .18s var(--ease),box-shadow .18s var(--ease),transform .14s var(--ease)}
.btn:active:not(:disabled),.chip:active,.cat:active,.ptile:active,.iconbtn:active,.rolecard:active,.try button:active,.bottomnav button:active{transform:scale(.97)}
.btn.primary{box-shadow:0 2px 0 var(--brand-deep)}
.btn.primary:active:not(:disabled){box-shadow:0 0 0 var(--brand-deep)}
.btn{min-height:44px}.btn.sm{min-height:36px}.chip{min-height:40px}
.iconbtn:hover{background:var(--brand-deep)}
.cat:hover,.rolecard:hover{box-shadow:var(--lift)}
.orow:hover{border-color:var(--brand)}
.field input,.field select,.field textarea,.toolbar input,.qtyin{transition:border-color .18s var(--ease),box-shadow .18s var(--ease)}
.askbox{transition:box-shadow .2s var(--ease)}

/* Expanders open and close smoothly where the browser supports it; elsewhere they simply snap. */
:root{interpolate-size:allow-keywords}
details.more::details-content{block-size:0;overflow-y:clip;transition:block-size .28s var(--ease),content-visibility .28s allow-discrete}
details.more[open]::details-content{block-size:auto}

@media(prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .view.enter{animation:viewIn .24s var(--ease) both}
  @keyframes viewIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
  .toast:not([hidden]){animation:toastIn .25s var(--ease) both}
  @keyframes toastIn{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translateX(-50%)}}
  .rp-menu{animation:viewIn .16s var(--ease) both}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
  details.more::details-content{transition:none}
}
/* Phone header: logo, region and Bhai must fit in one row without pushing the page sideways. */
.topbar{min-width:0}.brand,.lockup{min-width:0}
.tagline{overflow:hidden;text-overflow:ellipsis}
@media(max-width:560px){
  .topbar{gap:10px}
  .bhai-status{padding:3px}.bhai-status span,.bhai-status i{display:none}
  .wordmark{font-size:21px}.logo{width:34px;height:34px}
}
/* The scrolling "Try" row must not widen the hero column on phones. */
.hero{grid-template-columns:minmax(0,1fr)}.hero>div{min-width:0}
@media(min-width:860px){.hero{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}}
/* Tablet: tabs and the header extras share one row, so the extras go compact. */
@media(max-width:1020px){.regionpick .rp-long{display:none}.regionpick .rp-short{display:inline}.bhai-status span{display:none}.bhai-status{padding:3px 8px 3px 3px}}
@media(min-width:760px) and (max-width:1100px){.tagline{display:none}}
@media(min-width:760px) and (max-width:900px){.tabs button{padding:8px 10px}}
.seg{max-width:100%;overflow-x:auto;scrollbar-width:none}.seg::-webkit-scrollbar{display:none}
.seg button{white-space:nowrap}
@media(max-width:480px){.seg button{padding:7px 12px;font-size:15px}}
@media(max-width:430px){.tagline{font-size:11.5px;overflow:visible;text-overflow:clip}}
@media(max-width:350px){.tagline{display:none}}
/* The header row is a fixed width, so the region button always shows its short code (IN / GL); the menu spells it out. */
.regionpick .rp-long{display:none}.regionpick .rp-short{display:inline}
@media(min-width:760px) and (max-width:1100px){.tagline{display:inline}}
@media(min-width:760px) and (max-width:1000px){.tagline{display:none}}

/* ===================== Welcome / sign in ===================== */
body.welcome .tabs,body.welcome .bottomnav,body.welcome .bhai-status{display:none!important}
body.welcome{padding-bottom:0}
.welcomewrap{max-width:620px}
.authcard{margin-left:0;gap:14px}
.authcard .seg{align-self:flex-start}
.providers{display:grid;gap:10px}
.btn.provider{width:100%;justify-content:center;min-height:48px;font-size:16.5px;background:var(--surface)}
.btn.provider:hover{border-color:var(--brand);background:var(--brand-tint)}
.btn.provider.on{border-color:var(--brand);color:var(--brand-text)}
.gsi{min-height:44px;display:flex;justify-content:center}
.authform{display:flex;flex-direction:column;gap:12px;padding-top:4px}
.authform .btn.big{align-self:stretch}
.authalt{text-align:center}
.authcard .errors{list-style:none;padding:10px 12px}

/* Account button in the header */
.acctpick summary{padding:4px 10px}
.acct-av{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--brand);color:var(--on-brand);font-family:var(--f-display);font-weight:800;font-size:13px;letter-spacing:.02em}
.acctpick summary:has(.acct-av){padding:3px}
.acctpick .rp-menu{min-width:240px}
.acctpick .rp-note{max-width:260px}
@media(max-width:560px){.bhai-status{display:none}}

/* ===================== Buyer directory filters ===================== */
.dirbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:10px}
.dirbar input{flex:1 1 240px;border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:10px 16px;min-width:0}
.dirbar input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--brand-tint)}
.btn.on{border-color:var(--brand);color:var(--brand-text);background:var(--brand-tint)}
.sortsel{display:inline-flex;align-items:center;gap:8px;font-size:15px;color:var(--muted);font-weight:600}
.sortsel select{border:1.5px solid var(--line);background:var(--surface);border-radius:999px;padding:9px 12px;color:var(--ink);max-width:62vw}
.dcats{margin-bottom:12px}
.filterpanel{margin-bottom:12px}
.filterpanel select:disabled,.filterpanel input:disabled{opacity:.55}
.field.checks{justify-content:flex-end;gap:8px}
.activef{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.chip.on{background:var(--brand-tint);border-color:var(--brand);color:var(--brand-text);font-weight:600}
#dcount{margin:4px 0 12px}
.dprice{font-size:15px}.dprice b{font-family:var(--f-display);font-size:20px;color:var(--head)}
.sortchips{margin-bottom:4px}

/* ===================== Supplier side ===================== */
.quoteform{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1.6fr) auto;gap:10px;align-items:end;padding-top:10px;border-top:1px dashed var(--line)}
.quoteform .field input{width:100%}
@media(max-width:720px){.quoteform{grid-template-columns:1fr 1fr}.quoteform .grow,.quoteform .btn{grid-column:1/-1}}
/* Header with five or six items: keep tabs on one line, menus side by side on the right. */
.tabs button{white-space:nowrap}
.regionpick+.acctpick{margin-left:0}
.acctpick+.bhai-status{margin-left:0}
.topbar>.regionpick,.topbar>.acctpick,.topbar>.bhai-status{flex:none}
@media(min-width:760px) and (max-width:1200px){.tagline{display:none}.bhai-status span{display:none}.bhai-status{padding:3px}}
.authalt a,.authcard .link{color:var(--brand-text)}
/* The tagline lives in the header only when there are no tabs (welcome, public pages); it's in the footer everywhere. */
@media(min-width:760px){body:not(.welcome):not(.public) .tagline{display:none}}
.brand{flex:none}
@media(min-width:760px) and (max-width:960px){.tabs{margin-left:4px;gap:2px}.tabs button svg{display:none}.tabs button{padding:8px 10px}.bhai-status{display:none!important}}
.scard .actions .btn{white-space:normal;text-align:center;line-height:1.25}
@media(max-width:380px){.tagline{display:none}}
@media(max-width:380px){.topbar{gap:8px}.wordmark{font-size:19px}.logo{width:30px;height:30px}.regionpick summary{padding:5px 8px;gap:4px}.regionpick summary svg{width:15px;height:15px}}

/* ===== Standalone pages: privacy, terms, contact, 404 ===== */
.defs{position:absolute}
body.docpage{padding-bottom:0}
.docpage .topbar{justify-content:space-between}
.docpage .doc-back{flex:none}
.legal{max-width:760px;padding-block:28px 40px}
.legal h1{font-family:var(--f-display);color:var(--head);font-size:clamp(30px,6vw,40px);line-height:1.1;margin:0 0 6px}
.legal h2{font-family:var(--f-display);color:var(--head);font-size:22px;margin:30px 0 6px}
.legal p,.legal li{max-width:68ch}
.legal ul{padding-left:22px}.legal li{margin:6px 0}
.legal a{color:var(--brand-text);font-weight:600}
.legal code{background:var(--sunk);padding:1px 6px;border-radius:6px;font-size:.9em}
.legal .small{font-size:14px}
.legal .contactform{margin-top:18px}
.legal textarea,.legal select{width:100%;box-sizing:border-box}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.legal .nf{text-align:center;margin-top:8vh}
.foot a+a{margin-left:0}
@media (max-width:420px){.docpage .tagline{display:none}}

/* ===== Printable purchase order ===== */
#printArea{display:none}
.po{color:#2A1A0E;font-size:14px;line-height:1.45}
.po-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid var(--head);padding-bottom:10px;margin-bottom:14px}
.po-head .logo{width:28px;height:28px;vertical-align:middle;margin-right:6px}
.po-head b{font-family:var(--f-display);font-size:22px}.po-head .boss{color:var(--head)}
.po-head h1{font-family:var(--f-display);font-size:24px;margin:0;text-align:right;color:var(--head)}.po-head p{text-align:right;margin:2px 0 0}
.po small{color:#6B4A2E;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:700}
.po-parties{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px}.po-parties p{margin:2px 0 0}
.po-lines{width:100%;border-collapse:collapse;margin-bottom:14px}
.po-lines th,.po-lines td{border-bottom:1px solid #D9C4A0;padding:8px 6px;text-align:right;vertical-align:top}
.po-lines th:first-child,.po-lines td:first-child{text-align:left}
.po-lines .tot td{font-weight:700;border-top:2px solid #2A1A0E;border-bottom:0}
.po-note{background:#FCE9C6;padding:6px 10px;border-radius:6px}
.po-fine{font-size:12px;color:#6B4A2E;margin-top:22px}
@media print{
  @page{margin:14mm}
  html,body{background:#fff!important}
  body::before{display:none!important}
  body>*:not(#printArea){display:none!important}
  #printArea{display:block}
}
#msgBox h2.sub{font-family:var(--f-display);color:var(--head);font-size:20px;margin:26px 0 10px}
#msgBox .pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
.authcard .consent{margin-top:10px}
.acctmore{margin-top:12px}
.acctmore>summary{cursor:pointer;font-weight:600}
.hint a{color:var(--brand-text);font-weight:600}

/* ===== Team → Setup checklist ===== */
.setup{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:10px;max-width:860px}
.setup-i{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px}
.setup-i b{font-family:var(--f-display);font-size:18px;color:var(--ink)}
.setup-i p{font-size:15px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.setup-i .setup-do{color:var(--ink)}
.setup-i code{background:var(--sunk);padding:1px 6px;border-radius:6px;font-size:.88em}
.setup-i a{color:var(--brand-text);font-weight:600}
.setup-dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:var(--sunk);color:var(--muted)}
.setup-i.ok .setup-dot{background:var(--good-tint);color:var(--good)}
.setup-i.must .setup-dot{background:var(--bad-tint);color:var(--bad)}
.setup-i.must{border-color:var(--bad)}
@media(max-width:560px){.setup-i{grid-template-columns:28px minmax(0,1fr)}.setup-i .pill{grid-column:2;justify-self:start}}
.verifynote{margin-bottom:14px}
.toast{border-radius:18px;text-align:center;width:max-content;line-height:1.35}
