/* Workbench: a clean app-style receipt built from tiles, with a bold total. */
@font-face{font-family:'Geist';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist.woff2) format('woff2')}
@font-face{font-family:'Geist Mono';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/geist-mono.woff2) format('woff2')}
/* Logo size knobs, read by every header and look. Square marks use --logo-h; wide ones --logo-w and --logo-wh (max height).
   The vendor's Logo size (body.logo-s / -l / -xl) swaps the set; phones scale by --logo-k. Sizes are caps: a small upload never grows past its own size. */
:root{--logo-h:96px;--logo-w:260px;--logo-wh:110px;--logo-k:1}
body.logo-s{--logo-h:64px;--logo-w:180px;--logo-wh:76px}
body.logo-l{--logo-h:128px;--logo-w:340px;--logo-wh:144px}
body.logo-xl{--logo-h:160px;--logo-w:420px;--logo-wh:176px}
@media(max-width:600px){:root{--logo-k:.75}}
:root{--ink:#14161a;--mute:#6a707a;--line:#e3e5e8;--bg:#f3f4f6;--tile:#fff;--wb-pad:12px}
/* For the optional header styles (t/headers.css), which read the shared document variables. */
:root{--accent:#14161a;--paper:#fff;--muted:#6a707a;--ground:#f3f4f6;--display:'Geist',sans-serif;--sans:'Geist',sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{padding:16px;background:#e3e5e9;color:var(--ink);font:400 15px/1.45 Geist,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
/* US letter: the app ground becomes the 816px sheet, the tiles sit on it. */
.wrap{max-width:816px;margin:0 auto;padding:var(--wb-pad) var(--wb-pad) 28px;display:grid;gap:8px;align-content:start;background:var(--bg);border:1px solid #d3d6dc}
@media(min-width:601px){:root{--wb-pad:32px}.wrap{gap:10px}}
@media(min-width:861px){:root{--wb-pad:56px}body{padding:36px 24px 40px}.wrap{min-height:1056px}}
.t{background:var(--tile);border:1px solid var(--line);border-radius:4px;padding:16px;min-width:0}
.lbl{font:500 10.5px 'Geist Mono',monospace;color:var(--mute);text-transform:uppercase;letter-spacing:.04em}
.vend{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.vend>div:not(.logo){flex:1 1 140px;min-width:0}
.logo{flex:none;width:44px;height:44px;border-radius:3px;background:var(--bg);border:1px solid var(--line);display:grid;place-items:center;font-weight:700;font-size:18px}
img.logo{width:auto;height:auto;max-width:min(calc(var(--logo-w) * var(--logo-k)),100%);max-height:calc(var(--logo-h) * var(--logo-k));object-fit:contain;width:auto;height:auto;background:#fff}
.name{font-weight:700;font-size:18px;letter-spacing:-.015em;line-height:1.15;overflow-wrap:anywhere}
.sub{font-size:13px;color:var(--mute);overflow-wrap:anywhere}
h1{font-weight:600;font-size:26px;letter-spacing:-.03em;line-height:1.1;margin-top:16px;overflow-wrap:anywhere}
.for,.pre{color:var(--mute);font-size:14px;margin-top:4px}
.pre{white-space:pre-line}
.for b{color:var(--ink);font-weight:600}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stats .t{padding:12px 14px}
.stats .v{font-weight:600;font-size:15px;margin-top:3px;overflow-wrap:anywhere}
.stats .wide{grid-column:1/-1}
.items .row{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:12px 0;border-top:1px solid var(--line)}
.items .nm{font-weight:600;min-width:0;overflow-wrap:anywhere}
.items .m{font-size:13px;color:var(--mute);white-space:pre-line}
.t.items .row .m{grid-column:1}
.items .m.math{font:400 12px 'Geist Mono',monospace}
.items .a{font:500 14px 'Geist Mono',monospace;text-align:right;grid-row:1/3;grid-column:2;align-self:center;white-space:nowrap}
.items .a small{display:block;font-size:11px;color:var(--mute);font-weight:400}
.items .hd{display:flex;justify-content:space-between;gap:12px;margin-bottom:4px}
.items .row.ph{grid-template-columns:56px 1fr auto;column-gap:12px}
.items .row.ph img{grid-row:1/3;width:56px;height:56px;object-fit:cover;border-radius:3px;display:block}
.items .row.ph .nm,.items .row.ph .m{grid-column:2}
.items .row.ph .a{grid-column:3}
.sum .l{display:flex;justify-content:space-between;font-size:14px;color:var(--mute);padding:3px 0}
.sum .l b{font:500 14px 'Geist Mono',monospace;color:var(--ink)}
.total{background:var(--ink);color:#fff;border-color:var(--ink);display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.total .lbl{color:#9aa1ab}
.total b{font-weight:600;font-size:40px;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
.total small{display:block;font:400 11px 'Geist Mono',monospace;color:#9aa1ab;margin-top:6px}
.note p{margin-top:6px;font-size:14px;white-space:pre-line}
.fine{font:400 12px 'Geist Mono',monospace;color:var(--mute);text-align:center;padding:6px}
.foot{display:flex;justify-content:center;margin-top:10px}
.badge{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);font:500 12px Geist,sans-serif;background:#fff;border:1px solid var(--line);border-radius:4px;padding:5px 10px 5px 5px;transition:border-color .2s}
.badge i{width:20px;height:20px;border-radius:3px;background:#0b7a55;color:#fff;font:600 9px 'Geist Mono',monospace;font-style:normal;display:grid;place-items:center}
.badge span{color:var(--mute);transition:transform .2s}
.badge:hover,.badge:focus-visible{border-color:#0b7a55}
.badge:hover span{transform:translateX(2px);color:#0b7a55}
/* Big screens: the whole letter sheet scales up like zooming a document to fit. Client documents only; print has its own scale. */
@media screen and (min-width:1500px){.wrap{zoom:1.15}}
@media screen and (min-width:1800px){.wrap{zoom:1.25}}
@media screen and (min-width:2200px){.wrap{zoom:1.4}}
/* Past valid-until: a plain notice at the top of the page; the quote below stays whole. */
.eq-expired{margin:0 0 16px;padding:12px 16px;border:1px solid #a63a2c;border-left-width:4px;border-radius:2px;background:#fdf0ed;color:#68180d;font:500 15px/1.5 Geist,system-ui,sans-serif;overflow-wrap:anywhere}
.eq-expired b{font-weight:700}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Phones: the price column is capped (a long unit wraps under the price), a photo row puts its amount under the item
   instead of beside it, and the total drops under its label and steps down with the screen when it can't share the line. */
@media(max-width:600px){.items .row{grid-template-columns:minmax(0,1fr) fit-content(45%)}.items .a small{white-space:normal}.items .row.ph{grid-template-columns:56px minmax(0,1fr)}.items .row.ph img{grid-row:1/4}.items .row.ph .nm{grid-row:1}.items .row.ph .m{grid-row:2}.items .row.ph .a{grid-column:2;grid-row:3;justify-self:end;margin-top:6px}.total{flex-wrap:wrap;row-gap:8px}.total b{margin-left:auto;font-size:clamp(28px,calc((100vw - 92px) / 5.4),40px)}}
@page{size:letter;margin:.5in}
@media print{body{background:#fff;padding:0;print-color-adjust:exact;-webkit-print-color-adjust:exact}.wrap{max-width:none;min-height:0;padding:0;border:0;background:#fff}.t,.items .row,.total,.sum,.stats{break-inside:avoid}.total{background:#fff;color:#000;border:2px solid #000}.total .lbl,.total small{color:#555}}
/* A light (white) logo would vanish on the paper: a small dark plate behind it. */
img.logo.on-ink{box-sizing:border-box;background:var(--ink);border-color:var(--ink);padding:5px}
