:root{--bg:#f6f7f9;--card:#fff;--text:#1b1f27;--muted:#5b6475;--faint:#8a93a3;--line:#d9dde4;--accent:#1f2a44;--accentSoft:#e6ecf8;--focus:#3866d6;--warn:#9a5b00;--danger:#b42318;--ok:#137a3a;--r:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:17px;line-height:1.4;-webkit-text-size-adjust:100%}
main{max-width:1100px;margin:0 auto;padding:16px 16px 96px;padding-top:max(16px,env(safe-area-inset-top))}
header h1{margin:8px 0 4px;font-size:28px}header p{margin:0 0 12px;color:var(--muted)}
section{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;margin:14px 0}
h2{font-size:20px;margin:0 0 12px}.cap{color:var(--muted);font-size:14px;margin:-6px 0 10px}
.grid{display:grid;gap:12px;margin:6px 0}.g90{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}.g100{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.g140{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.g170{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.g200{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.g220{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.g230{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.tile{position:relative;min-height:72px;padding:14px 16px;border-radius:var(--r);border:2px solid var(--line);background:var(--card);color:var(--text);text-align:left;display:flex;flex-direction:column;justify-content:center;gap:4px;cursor:pointer;font:inherit;width:100%;-webkit-tap-highlight-color:transparent}
.tile.sel{border-color:var(--focus);background:var(--accentSoft)}.tile:disabled{color:var(--faint);cursor:default}
.tl{font-weight:600}.ts{font-size:14px;color:var(--muted)}
.badge{align-self:flex-start;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;margin-top:2px}.badge.list{background:#e8f3ec;color:var(--ok)}.badge.live{background:#e6ecf8;color:var(--focus)}.badge.est{background:#fdf1dc;color:var(--warn)}
.btn{min-height:56px;min-width:120px;padding:12px 22px;border-radius:var(--r);border:1px solid #b7bec9;background:var(--card);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.btn.primary{background:var(--accent);color:#fff;border:none}.btn:disabled{opacity:.45;cursor:default}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.row.between{justify-content:space-between}.row.nowrap{flex-wrap:nowrap}.row.nowrap .tile{flex:1}
.nav{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;border-top:1px solid var(--line);padding-top:16px;margin-top:20px}
.big{min-width:120px;text-align:center;font-size:40px;font-weight:600}
.field{display:flex;flex-direction:column;gap:4px;flex:1 1 240px;margin:6px 0}.field span{font-size:14px;color:var(--muted)}
input{font:inherit;font-size:18px;min-height:52px;padding:10px 14px;border:1px solid #b7bec9;border-radius:10px;background:#fff;width:100%}
input:focus{outline:2px solid var(--focus);border-color:var(--focus)}
.lbl{font-size:14px;color:var(--muted);margin-top:10px}.note{font-size:14px;color:var(--muted);margin:8px 0}
.col{display:flex;flex-direction:column;gap:8px}.t1{font-weight:600}.t2{color:var(--muted);font-size:15px}.t3{font-size:14px;color:var(--muted)}.muted{color:var(--faint)}
.price{font-size:30px;font-weight:700}.danger{color:var(--danger)}.warn{color:var(--warn);font-size:15px}.warnc{color:var(--warn)}.ok{color:var(--ok)}.src{font-weight:600}
.item{border-top:1px solid var(--line);padding:12px 0;display:flex;flex-direction:column;gap:6px}
.callout{background:#fdf1dc;border:1px solid #f0d49b;color:#6b4100;border-radius:10px;padding:12px;margin:8px 0}
table{width:100%;border-collapse:collapse;margin:10px 0;font-size:15px}th,td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.r{text-align:right}
dl{display:grid;grid-template-columns:1fr auto;gap:6px 16px;max-width:420px;margin:10px 0 10px auto}dt{color:var(--muted)}dd{margin:0;text-align:right}
textarea{width:100%;min-height:200px;font-family:ui-monospace,Menlo,monospace;font-size:14px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center;gap:6px}
.floating{position:fixed;right:16px;bottom:max(16px,env(safe-area-inset-bottom));background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:10px 16px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
input.search{font-size:20px;min-height:60px;padding:12px 18px;border-radius:14px;border:2px solid #b7bec9;margin:6px 0 2px}
input.search:focus{border-color:var(--focus);outline:none}
.note.soft{color:var(--faint);font-size:13px;margin-top:14px}
/* images (Nov 2026): category photos, style thumbnails, color photos. Bigger iPad targets. */
.tbody{display:flex;flex-direction:column;gap:4px;min-width:0}
.tl,.ts{overflow-wrap:anywhere}
.gcat{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.tile.photo{padding:0;overflow:hidden;justify-content:flex-start;min-height:0}
.tile.photo .tphoto{width:100%;height:170px;object-fit:contain;background:#fff;border-bottom:1px solid var(--line)}
.tile.photo .tbody{padding:14px 18px 16px}.tile.photo .tl{font-size:21px}.tile.photo .ts{font-size:15px}
.tile.withthumb{flex-direction:row;align-items:center;gap:14px;min-height:84px}
.tthumb{width:48px;height:48px;flex:0 0 48px;object-fit:contain;background:#fff;border-radius:8px}
.gcolor{grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:12px}
.gcolor .tile{min-height:92px;padding:12px 14px}.gcolor .tthumb{width:72px;height:72px;flex-basis:72px}
.gcolor .tl{font-size:17px}
.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{display:inline-block;padding:4px 10px;border-radius:999px;background:#f1f3f6;border:1px solid var(--line);font-weight:600;font-size:15px}
.chip b{font-weight:500;color:var(--muted)}
.colorphoto{margin:8px 0 14px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:var(--card);border:2px solid var(--focus);border-radius:var(--r);padding:12px}
.cbig{width:300px;max-width:100%;height:300px;object-fit:contain;background:#fff;border-radius:8px}
.colorphoto figcaption{flex:1;min-width:200px;font-size:18px}.nophoto{width:300px;height:120px;display:flex;align-items:center;justify-content:center;color:var(--muted);background:#f6f7f9;border-radius:8px}
/* auto-advance: brief confirmation on the picked tile */
.tile.sel.flash{animation:pickflash .15s ease-out}
@keyframes pickflash{0%{transform:scale(.97);background:var(--focus);color:#fff}100%{transform:scale(1)}}
/* keep the floating total from covering the bottom of the page (nav, hint, Next) */
body{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.nav .hint{align-self:center;color:var(--muted);font-size:15px}
.floating{transition:opacity .15s,transform .15s}.floating.tucked{opacity:0;transform:translateY(12px);pointer-events:none}

/* Fybrs logo header: centered, sticky, outside #app so re-renders never touch it */
.brandbar{position:sticky;top:0;z-index:30;background:var(--card);box-shadow:0 1px 0 var(--line),0 2px 8px rgba(20,30,50,.06);padding:calc(6px + env(safe-area-inset-top)) 16px 6px;display:flex;justify-content:center}
.brandbar .logo{display:block;height:56px;width:auto}
@media (min-width:700px){.brandbar .logo{height:68px}}
.brandbar + main{padding-top:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#step-h{scroll-margin-top:calc(var(--hdr,80px) + 12px)}
/* Brand step: logo grid (2 columns on iPhone) */
.gbrand{grid-template-columns:repeat(auto-fill,minmax(138px,1fr));gap:10px}
.brandtile{align-items:center;text-align:center;justify-content:flex-start;padding:10px 8px;min-height:0}
.brandtile .tbody{display:flex;flex-direction:column;align-items:center;gap:4px}
.tlogo{display:flex;align-items:center;justify-content:center;width:120px;height:48px;background:#fff;border-radius:6px;overflow:hidden}
.tlogo img{width:120px;height:48px;object-fit:contain;display:block}
.tword{font-weight:800;font-size:17px;letter-spacing:.02em;color:#334;line-height:1.1;text-transform:uppercase;padding:0 4px}
.brandtile .badge{position:static;margin-top:2px;align-self:center}

/* Landing: one big button */
.landing{display:flex;justify-content:center;align-items:center;min-height:50vh;background:transparent;border:none;box-shadow:none}
.landing .btn{font-size:22px;min-height:76px;padding:18px 36px;width:min(100%,420px)}
h3{margin:18px 0 8px;font-size:18px}

/* Color type-ahead: more than ~12 matches scroll inside the box */
.gcolor.cscroll{max-height:min(62vh,1150px);overflow-y:auto;-webkit-overflow-scrolling:touch;padding:2px;border:1px solid var(--line);border-radius:var(--r)}
.linkbtn{background:none;border:none;color:var(--focus);text-decoration:underline;min-height:44px;min-width:0;padding:8px 4px;font-weight:600}

/* Final screen: Text / Invoice segmented control */
.seg{display:inline-flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:14px 0 6px;background:var(--bg)}
.segb{min-height:44px;min-width:110px;padding:8px 18px;border:none;background:transparent;font:inherit;font-weight:600;color:var(--muted);cursor:pointer}
.segb.on{background:var(--accent);color:#fff}
.sendrow{margin:10px 0}
.hint2{color:var(--muted);font-size:15px;margin:10px 0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.chipbtn{min-height:36px;min-width:0;padding:4px 12px;border-radius:999px;font-size:14px}
.warn.soft{background:#fdf6e7;border-color:#f1d9a8}
a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
/* Invoice document */
.invoice{background:#fff;color:#111;border:1px solid var(--line);border-radius:10px;padding:22px;margin:10px 0;font-size:15px;line-height:1.35}
.ihead{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:2px solid #222;padding-bottom:12px;margin-bottom:14px}
.ilogo{height:56px;width:auto}.ititle{text-align:right}.iname{font-weight:700;font-size:18px}.idoc{letter-spacing:.18em;font-weight:800;font-size:20px}
.imeta{display:flex;justify-content:space-between;gap:16px;margin-bottom:14px;flex-wrap:wrap}.ilbl{color:#666;font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.itable{width:100%;border-collapse:collapse}.itable th{background:#f2f4f7;text-align:left;font-size:13px;padding:8px 6px}.itable td{padding:9px 6px;border-bottom:1px solid #e3e6eb;vertical-align:top}
.itable .r,.itot .r{text-align:right;white-space:nowrap}.idet{color:#555;font-size:13px;margin-top:2px}.isub{color:#555;font-size:13px;padding-left:10px}.isub span{white-space:nowrap}
.itot{margin:12px 0 0 auto;min-width:240px;border-collapse:collapse}.itot td{padding:4px 6px}.igrand td{border-top:2px solid #222;font-weight:800;font-size:17px;padding-top:8px}
.inote{font-style:italic;color:#555;font-size:13px}.ifoot{margin-top:18px;border-top:1px solid #e3e6eb;padding-top:10px;font-size:14px}.ithanks{margin-top:8px;font-style:italic}
@media (max-width:480px){.invoice{padding:14px;font-size:14px}.ilogo{height:44px}.itable th:nth-child(3),.itable td:nth-child(3){display:none}}
.invbar{margin-top:10px}
/* Print / Save PDF: only the invoice, Letter, sensible margins */
@page{size:letter;margin:0.6in}
@media print{
  body{background:#fff;padding:0}
  .brandbar,.floating,.noprint,.seg,.nav,.btn,.callout,#chk{display:none!important}
  main{padding:0!important;max-width:none}
  #app section{border:none!important;box-shadow:none!important;padding:0!important;margin:0!important;background:#fff}
  #app section > :not(.invoice){display:none!important}
  .invoice{border:none;padding:0;margin:0;font-size:12pt}
  .itable th:nth-child(3),.itable td:nth-child(3){display:table-cell!important}
  .itable tr{break-inside:avoid}
}
/* Final screen: total first, customer link, collapsible extras */
.bigtotal{font-size:20px;margin:6px 0 4px}.bigtotal b{font-size:26px}
.linkbox{border:1px dashed var(--line);border-radius:var(--r);padding:12px;margin:10px 0;display:flex;flex-direction:column;gap:8px}
.clink{font-family:ui-monospace,Menlo,monospace;font-size:13px;word-break:break-all;color:var(--focus)}
details.extras{margin:10px 0;border:1px solid var(--line);border-radius:var(--r);padding:10px 12px}details.extras summary{font-weight:700;cursor:pointer;min-height:32px}
/* Recent quotes (landing) */
.recent h2{font-size:19px}.stat{font-weight:700}.st-quote{color:var(--focus)}.st-invoice{color:var(--warn)}.st-paid{color:var(--ok)}.st-void{color:var(--danger)}
/* Customer page (/q/<id>) */
body.cust main{max-width:820px}.cpanel{background:var(--card);border-radius:var(--r);padding:16px;margin:12px 0}
.ctitle{font-size:22px;margin:4px 0 10px}.cactions{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.btn.big{min-height:64px;font-size:20px;padding:14px 30px}
.cpay{border:1px solid var(--line);border-radius:10px;padding:12px 14px;line-height:1.5}
.paynow{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.paynow .cap{margin:0}
.invoice{position:relative}.istamp{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%) rotate(-14deg);border:5px solid #137a3a;color:#137a3a;font-weight:900;font-size:56px;letter-spacing:.12em;padding:4px 24px;border-radius:12px;opacity:.75;pointer-events:none}
.ilink{margin-top:6px;font-size:13px;word-break:break-all}.inote2{margin-top:8px;font-style:italic}
@media print{body.cust .cpanel{padding:0;margin:0}body.cust .ctitle,body.cust .cap{display:none}}
.istamp.s-void{border-color:#b42318;color:#b42318}

/* Letterhead contact block under the logo */
.ibrand{display:flex;flex-direction:column;gap:4px}.icontact{font-size:12px;color:#444;line-height:1.35}
@media print{.icontact{font-size:9.5pt}}

/* Logo = Home button (same look) */
.homebtn{background:none;border:none;padding:4px 10px;margin:0;cursor:pointer;min-height:48px;min-width:120px;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;border-radius:10px}
.homebtn:focus-visible{outline:3px solid var(--focus)}
.landing{flex-direction:column;gap:16px}

/* Garment size grid (polo preview) */
.szgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;margin:6px 0 10px}
.szcell{border:1px solid var(--line,#d9d9d9);border-radius:12px;padding:6px;background:#fff}
.szcell.on{border-color:var(--accent,#0a6);box-shadow:0 0 0 1px var(--accent,#0a6) inset}
.szl{font-weight:700;display:flex;justify-content:space-between;align-items:baseline;gap:4px;margin-bottom:4px}.szu{font-weight:500;font-size:11px;color:#8a5a00}
.szrow{display:flex;align-items:center;gap:4px}.szrow .btn{min-width:32px;min-height:40px;padding:0 6px}
.szin{width:100%;min-width:0;text-align:center;font-size:18px;min-height:40px;border:1px solid #ccc;border-radius:8px;padding:0 2px}
.szcount{font-size:18px;font-weight:700;margin:6px 0 10px}
.pbadge{display:inline-block;font-size:11px;font-weight:700;line-height:1.2;padding:2px 7px;border-radius:999px;background:#fff3cd;color:#7a4b00;border:1px solid #f0c36d;vertical-align:middle;white-space:nowrap}
.badge.soon{background:#eee;color:#555}
@media print{.pbadge{border:1px solid #999;background:none;color:#000}}

/* v31: subtle Fybrs logo accents. Colors sampled from public/img/brand/fybrs-logo.png: orange #ff6600, navy #1e0537.
   #ff6600 is decoration only (thin stripes/underlines, 2.9:1 on white). States that must be seen (focus, selected)
   use the deeper #d95700 (3.95:1 on white, >= 3:1 for UI components). Text colors are unchanged (AA). */
:root{--brandOrange:#ff6600;--brandOrangeUI:#d95700;--brandNavy:#1e0537;--accent:#1e0537;--accentSoft:#fff4ec}
.brandbar{border-bottom:3px solid var(--brandOrange)}
.btn.primary{box-shadow:inset 0 -3px 0 var(--brandOrange)}
.tile.sel{border-color:var(--brandOrangeUI);background:var(--accentSoft)}
.colorphoto{border-color:var(--brandOrangeUI)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--brandOrangeUI);border-color:var(--brandOrangeUI)}
input.search:focus{border-color:var(--brandOrangeUI);outline:none}
.btn:focus-visible,.tile:focus-visible,.segb:focus-visible,.homebtn:focus-visible,a:focus-visible{outline:3px solid var(--brandOrangeUI);outline-offset:2px}
.segb.on{box-shadow:inset 0 -3px 0 var(--brandOrange)}
#step-h{border-left:4px solid var(--brandOrange);padding-left:10px}
.bigtotal b{color:var(--brandNavy)}
/* Invoice logo: natural proportions (it sat in a flex column and was stretched to the contact block's width). */
.ilogo{height:56px;width:auto;max-width:100%;align-self:flex-start;object-fit:contain}
@media (max-width:480px){.ilogo{height:44px}}
@media print{#step-h{border-left:none;padding-left:0}.ilogo{height:56px;width:auto}}

/* v34 Jobs preview tag */
.ptag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#fff4ec;border:1px solid #d95700;color:#1e0537;font-size:13px;font-weight:700;vertical-align:middle}
/* v35 patch options: embroidery add-on tucked in a disclosure */
details.patchemb{margin-top:14px;border:1px solid var(--line);border-radius:var(--r);padding:10px 14px;background:#fff}
details.patchemb summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
/* v40 Email quote */
.eqbox { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.eqbox .reason, .eqsheet .reason { color: #8a3b00; font-size: 14px; font-weight: 600; }
.eqsheet { width: 100%; border: 1px solid #ddd5e6; border-radius: 12px; padding: 12px; background: #faf8fc; }
.eqsheet .field { width: 100%; } .eqsheet input { width: 100%; }
.ei-why { color: #8a3b00; font-size: 14px; font-weight: 600; flex-basis: 100%; margin-top: 6px; }
/* v41 texting (public/sms-ui.js) */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted, #555); margin: 8px 0 4px; line-height: 1.4; }
.consent input { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.txbox { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.txbox .reason { color: #8a3b00; font-size: 14px; font-weight: 600; }
.txsheet .tpls { flex-wrap: wrap; gap: 8px; }
.txprev { width: 100%; box-sizing: border-box; background: #eef6ff; border: 1px solid #cfe0f5; border-radius: 14px; padding: 10px 12px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.smsterms a { color: inherit; }
.legalfoot { text-align: center; font-size: 13px; color: var(--faint, #888); padding: 18px 0 28px; } .legalfoot a { color: inherit; }
.txbox .field { flex: none; }

/* v45 hat style search (first hat step) */
.hsrow{display:flex;gap:8px;align-items:stretch}.hsrow .hsearch{flex:1;min-width:0;font-size:22px;min-height:64px}.kbtog{min-width:72px;min-height:64px;font-size:18px;margin:6px 0 2px}

/* v48: quantity editor on the price/review step */
.revqty{margin:8px 0 12px}
.revqty .row{align-items:center;gap:8px}
.revqty .field{flex:0 0 96px;margin:0;min-width:96px}
.revqty .field input{text-align:center;font-size:22px;min-height:48px;font-weight:700}

/* v50 tumbler color swatches */
.tswatch{display:inline-block;width:48px;height:48px;flex:0 0 48px;border-radius:50%;border:2px solid var(--line);box-shadow:inset 0 0 0 3px #fff}
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}label.btn{cursor:pointer;display:inline-flex;align-items:center}

/* v56: more navy + orange (Vanessa, Nov 10 2026). Same brand colors as v31: navy #1e0537, orange #ff6600 (decoration only),
   deeper orange #d95700 (UI states, >= 3:1), orange text #8a3b00 (about 7:1 on white). Tints: navy #faf8fc / #f3eff8 / #ddd5e6,
   orange #fff4ec / #ffd9bf. Text stays AA: navy on white 17:1, white on navy 17:1, #8a3b00 on #fff4ec 6.6:1.
   Kept separate on purpose: Tax exempt tag (green), warnings (amber #fdf6e7 / #f0c36d), errors (red). */
:root{--navyTint:#f3eff8;--navyFaint:#faf8fc;--navyLine:#ddd5e6;--orangeTint:#fff4ec;--orangeLine:#ffd9bf;--orangeText:#8a3b00}
/* top bar: navy band over the existing orange underline */
.brandbar{border-top:4px solid var(--brandNavy)}
/* section cards: navy top bar, navy titles */
section:not(.landing){border-top:4px solid var(--brandNavy)}
h2,h3{color:var(--brandNavy)}
#step-h{border-left-color:var(--brandOrange)}
h3{padding-bottom:4px;border-bottom:2px solid var(--orangeLine)}
/* step progress bar under the step title (wizard) */
.stepbar{height:6px;border-radius:999px;background:var(--navyTint);margin:-4px 0 14px;overflow:hidden}
.stepbar i{display:block;height:100%;background:linear-gradient(90deg,var(--brandNavy),var(--brandNavy) 70%,var(--brandOrange));border-radius:999px;transition:width .2s}
/* tiles: navy-tinted outline, orange when chosen */
.tile{border-color:var(--navyLine)}
.tile:not(:disabled):hover{border-color:#b9aacb}
.tile.sel{border-color:var(--brandOrangeUI);background:var(--orangeTint);box-shadow:inset 0 0 0 1px var(--brandOrangeUI)}
.tile.sel .tl{color:var(--brandNavy)}
.tile.sel::after{content:"";position:absolute;top:10px;right:10px;width:12px;height:12px;border-radius:50%;background:var(--brandOrangeUI);box-shadow:0 0 0 3px #fff}
.tile.photo .tphoto{background:var(--navyFaint);border-bottom-color:var(--navyLine)}
/* buttons: secondary buttons get navy text and a navy-tint border; primary keeps navy + orange */
.btn:not(.primary){color:var(--brandNavy);border-color:#b9aacb}
.btn:not(.primary):not(:disabled):active{background:var(--navyTint)}
.btn.primary:not(:disabled):active{background:#2d0b52}
/* tabs (Text / Invoice) */
.seg{border-color:var(--navyLine);background:var(--navyFaint)}.segb{color:var(--brandNavy)}
/* disclosures (Extras and discounts, Tax exempt, Pricing check) */
details.extras{border-color:var(--navyLine);background:var(--navyFaint)}
details.extras[open]{border-left:4px solid var(--brandOrange);background:#fff}
details.extras summary{color:var(--brandNavy)}
/* dividers, tables, totals */
.nav{border-top-color:var(--navyLine)}
.item{border-top-color:var(--navyLine)}
th{color:var(--brandNavy);border-bottom:2px solid var(--brandNavy)}
dl dt:last-of-type,dl dd:last-of-type{border-top:2px solid var(--brandNavy);padding-top:6px;color:var(--brandNavy)}
.bigtotal{background:var(--navyTint);border-left:4px solid var(--brandOrange);border-radius:10px;padding:10px 12px}
.linkbox{border-color:#b9aacb;background:var(--navyFaint)}
/* floating total: navy pill with the orange underline, like the main buttons */
.floating{background:var(--brandNavy);color:#fff;border-color:var(--brandNavy);box-shadow:inset 0 -3px 0 var(--brandOrange),0 4px 16px rgba(30,5,55,.25)}
.floating b{color:#fff}
/* inputs and focus (focus ring stays deeper orange) */
input,select,textarea{border-color:#b9aacb}
input[type=checkbox],input[type=radio]{accent-color:var(--brandNavy)}
/* badges and chips */
.badge.live{background:var(--navyTint);color:var(--brandNavy)}
.chip{background:var(--navyTint);border-color:var(--navyLine);color:var(--brandNavy)}
.ptag{border-color:var(--brandOrangeUI)}
/* warnings stay amber and visibly different from the orange accents */
.warn.soft{border-left:4px solid #f0c36d}
.callout{border-left:4px solid #f0c36d}
@media print{section:not(.landing){border-top:1px solid var(--line)}h3{border-bottom:none}.bigtotal{background:none;border-left:none;padding:0}th{border-bottom:1px solid #999}}

/* v59 owner-priced custom item box (Price step) */
.opbox{margin:12px 0;padding:12px 14px;border:1px solid var(--navyLine,#ddd5e6);border-left:4px solid #2d0b52;border-radius:12px;background:var(--navyFaint,#faf8fc)}
.opbox .row{gap:8px;flex-wrap:wrap;margin-top:10px}
.opbox .field{margin:8px 0}
.oplogwrap{overflow-x:auto}.oplog{width:100%;border-collapse:collapse;font-size:14px}.oplog th,.oplog td{padding:6px 8px;border-bottom:1px solid var(--navyLine,#ddd5e6);text-align:left;vertical-align:top}.oplog .r{text-align:right}
.oplog th{background:var(--navyTint,#f3eff8);color:#2d0b52}.oplogtop{margin:4px 0 12px;padding-left:20px}

/* v63 Extras and discounts step (navy / orange) */
.xstep{border-top:4px solid var(--brandOrange)}
.xstep #step-h{color:var(--brandNavy)}
.xstep .xh{margin:16px 0 6px;padding-left:10px;border-left:4px solid var(--brandOrange);color:var(--brandNavy);font-size:1.05rem}
.xchosen{margin:16px 0 4px;padding:10px 12px;border-radius:12px;background:var(--navyFaint,#faf8fc);border:1px solid var(--navyLine,#ddd5e6);color:var(--brandNavy)}
.xsum{margin:10px 0;padding:10px 12px;border:1px solid var(--navyLine,#ddd5e6);border-left:4px solid var(--brandOrange);border-radius:var(--r);background:#fff}
.xsum .t1{color:var(--brandNavy);font-weight:700}
.jpaid{background:#f3eff8;border:1px solid #ddd5e6;border-left:4px solid #1e0537;color:#1e0537;border-radius:10px;padding:8px 12px}.jcampaign h3{margin-top:14px}

/* v81.8 handheld quote builder (/hand/quote on the Sunmi V3H, ~360 px wide): bigger taps, one column, Back/Next stuck to the bottom */
body.hand main{padding-left:10px;padding-right:10px}
body.hand .brandbar .logo{height:40px}
body.hand section{padding-left:12px;padding-right:12px}
body.hand .btn{min-height:60px;font-size:18px;min-width:0}
body.hand .tile{min-height:76px}
body.hand .grid.g200,body.hand .grid.g220,body.hand .grid.g170{grid-template-columns:1fr}
body.hand .nav{position:sticky;bottom:0;z-index:20;background:var(--card);margin:16px -12px 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 12px rgba(20,30,50,.10);flex-wrap:nowrap;gap:8px;align-items:stretch}
body.hand .nav .row{flex-wrap:nowrap;gap:8px;flex:1 1 auto}
body.hand .nav .btn{flex:1 1 0;padding:10px 8px}
body.hand .nav .hint{display:none}
body.hand .landing .btn{width:100%}
body.hand .legalfoot{display:none}

/* v97 product detail sheet + catalog search + tile View control */
.tilewrap{position:relative}
.tdetail{position:absolute;top:8px;right:8px;z-index:2;min-height:36px;padding:4px 10px;border-radius:999px;border:1px solid var(--navyLine,#ddd5e6);background:#fff;color:var(--brandNavy);font-size:13px;font-weight:700;box-shadow:0 1px 4px rgba(20,30,50,.12)}
.tdetail:focus,.tdetail:hover{background:var(--navyTint,#f3eff8)}
.catsearch{margin:0 0 18px}
.dsheet{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center}
.dsheet-back{position:absolute;inset:0;background:rgba(20,10,30,.45)}
.dsheet-card{position:relative;z-index:1;width:min(720px,100%);max-height:min(92vh,920px);overflow:auto;-webkit-overflow-scrolling:touch;background:#fff;border-radius:18px 18px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -8px 28px rgba(20,30,50,.2)}
.dbig{margin:12px 0;background:#f6f3f9;border-radius:12px;min-height:220px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.dbig img{width:100%;height:auto;max-height:70vh;object-fit:contain}
.dviews{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.dswatches{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.dswatch{width:48px;height:48px;padding:0;border-radius:50%;border:2px solid #ddd5e6;overflow:hidden;background:#fff}
.dswatch img{width:100%;height:100%;object-fit:cover}
.dswatch.on{border-color:var(--brandNavy);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--brandNavy)}
@media (min-width:700px){
  .dsheet{align-items:center}
  .dsheet-card{border-radius:18px;max-height:88vh}
}
body.hand .tdetail{min-height:44px;font-size:16px}
body.hand .dsheet-card{padding:14px 12px calc(14px + env(safe-area-inset-bottom))}

/* v98.2 (TEST): drawings when there is no photo, SanMar stock per size, quote line pictures */
img.art{background:#f6f7f9}
.badge.low{background:#fff3cd;color:#7a5200;border:1px solid #e6c34d}
.szs{font-size:13px;color:#2f6f3e;margin:2px 0 4px}.szs.low{color:#8a5a00;font-weight:600}.szs.out{color:#b3261e;font-weight:600}
.szcell.lowstk{border-color:#e6c34d}
.item.withpic{display:grid;grid-template-columns:56px 1fr;column-gap:12px}.item.withpic>*:not(.ithumb){grid-column:2}
.ithumb{grid-row:1 / span 4;grid-column:1}.ithumb .tthumb{width:56px;height:56px;flex-basis:56px}
.dbig img.art{width:60%;max-width:320px}
/* Nov 20 2026: View for every product; tap the big photo for full screen (fit / 2.5x). */
.dbig.zoomable{cursor:zoom-in;position:relative}
.dbig img{max-height:min(72vh,900px)}
.dzoomhint{position:absolute;right:10px;bottom:10px;background:rgba(20,10,30,.7);color:#fff;font-size:13px;font-weight:700;padding:4px 10px;border-radius:999px;pointer-events:none}
.dcolor{margin:-4px 0 8px}
.viewrow{margin:0 0 8px}
.dzoom{position:fixed;inset:0;z-index:120;background:#111;display:flex;flex-direction:column}
.dzoom-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#fff}
.dzoom-cap{flex:1;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dzoom-scroll{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;display:flex;align-items:center;justify-content:center;touch-action:pan-x pan-y pinch-zoom}
.dzoom.z1 .dzoom-scroll img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in}
.dzoom.z2 .dzoom-scroll{display:block}
.dzoom.z2 .dzoom-scroll img{width:250%;max-width:none;height:auto;cursor:zoom-out}
body.hand .dzoom-bar .btn{min-height:48px}
/* Nov 20 2026: Continue on phone */
.wipbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;padding:8px 10px;border:1px dashed var(--navyLine,#ddd5e6);border-radius:12px;background:#faf8fc}
.wipbar .row{margin:0}
.wipqr{width:min(280px,80vw);margin:8px auto}
.wipqr svg{width:100%;height:auto;display:block}
.wiplink{text-align:center;font-size:18px;font-weight:700;word-break:break-all;margin:6px 0 10px}
/* Nov 20 2026 (Vanessa: "a footer that keeps the cancel back and next button on a non movable footer like the handheld"):
   the desk builder's nav row is pinned to the bottom of the window on every step (fixed, so it stays put even on short
   steps), styled like body.hand .nav (card background, top shadow), centered at the page width (main max-width 1100px).
   z-index 20 sits under the View sheet (80), the full-screen photo (120), the Continue-on-phone dialog (80) and the TEST
   banner. The page gets extra bottom padding so nothing ends up hidden behind it; the total pill moves to the top right. */
@media screen{
  body:not(.hand):not(.cust) #app .nav{position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:20;width:min(1068px,calc(100% - 32px));box-sizing:border-box;margin:0;background:var(--card);border:1px solid var(--navyLine,#ddd5e6);border-bottom:none;border-radius:var(--r) var(--r) 0 0;padding:12px 18px calc(12px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px rgba(20,30,50,.12);align-items:center}
  body:not(.hand):not(.cust):has(#app .nav){padding-bottom:calc(124px + env(safe-area-inset-bottom))}
  html:has(body:not(.hand):not(.cust) #app .nav){scroll-padding-bottom:110px}
  body:not(.hand):not(.cust):has(#app .nav) .floating{top:calc(56px + env(safe-area-inset-top));bottom:auto;z-index:31} /* the total pill moves to the top right (below the TEST banner) so the footer buttons are never covered */
  body:not(.hand):not(.cust):has(#app .nav) .floating.tucked{opacity:1;transform:none;pointer-events:auto} /* the footer is always visible now, so the pill no longer tucks away for it */
}
/* v82.6: sticky header/footer in the product View sheet (ported from TEST v98) */
.dsheet-card.dflex{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:min(92vh,920px,100%)}
@media (min-width:700px){.dsheet-card.dflex{max-height:min(88vh,920px,100%)}}
.dsheet-card.dflex .dhead{flex:0 0 auto;padding:14px 16px 10px;border-bottom:1px solid var(--navyLine,#ddd5e6);background:#fff}
.dsheet-card.dflex .dhead .t1{font-size:17px;line-height:1.3}
.dsheet-card.dflex .dbody{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:4px 16px 16px}
.dsheet-card.dflex .dfoot{flex:0 0 auto;display:flex;gap:10px;justify-content:space-between;align-items:center;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--navyLine,#ddd5e6);background:#fff;box-shadow:0 -6px 16px rgba(20,30,50,.08)}
.dsheet-card.dflex .dfoot .btn{flex:0 1 auto}
.dsheet-card.dflex .dfoot .btn.primary{flex:1 1 auto;max-width:360px}
.dsheet-card.dflex .dbig img{max-height:min(58vh,760px)}
body.hand .dsheet-card.dflex{padding:0}
body.hand .dsheet-card.dflex .dhead{padding:12px 12px 8px}
body.hand .dsheet-card.dflex .dbody{padding:4px 12px 12px}
body.hand .dsheet-card.dflex .dfoot{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
body.hand .dsheet-card.dflex .dfoot .btn{min-height:48px;flex:1 1 0}
/* v82.7 Admin button count (desk landing + handheld tile), Void owner note, Mark paid method chooser */
.acount{display:inline-block;min-width:22px;margin-left:8px;padding:1px 8px;border-radius:999px;background:var(--brandOrangeUI,#d95700);color:#fff;font-size:14px;font-weight:800;line-height:1.5;text-align:center;vertical-align:middle}
.tile .acount{align-self:flex-start;margin:4px 0 0;font-size:15px}
.tile .acount[hidden]{display:none}
.ownernote{display:inline-block;font-size:14px;color:#5b4a6b;background:#f3eff8;border:1px solid #ddd5e6;border-radius:8px;padding:6px 10px;margin:4px 0}.ownernote a{font-weight:700}
.paypick{display:inline-flex;flex-wrap:wrap;gap:6px;align-items:center}.paypick .btn{min-height:44px;min-width:0;padding:8px 14px}
/* v82.8 Reorder reference card (Find customer > Reorder) */
.reorder{background:#f3eff8;border:1px solid #ddd5e6;border-radius:12px;padding:10px 14px;margin:8px 0}.reorder summary{cursor:pointer}.reorder ul{margin:8px 0;padding-left:20px}.reorder li{margin:4px 0}

/* v82.9 leftover on-hand badge (staff desk and /hand only; hidden on print so invoices stay clean) */
.onhand{display:inline-block;margin-top:4px;padding:2px 8px;border-radius:999px;background:#e8f6ec;border:1px solid #9fd3ae;color:#1d5c2e;font-size:13px;font-weight:700;line-height:1.3}
@media print{.onhand,[data-onhand]{display:none!important}}
