:root{--bg:#f6f7f8;--card:#fff;--ink:#17202a;--muted:#5b6672;--line:#e3e7eb;--brand:#0f766e;--brand-ink:#fff;--accent:#f59e0b;--ok:#15803d;--warn:#b45309;--bad:#b91c1c;--radius:12px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--brand)}
h1{font-size:1.6rem;margin:.2em 0 .5em}
h2{font-size:1.2rem;margin:1.2em 0 .5em}
h3{font-size:1rem;margin:1em 0 .4em}
p{margin:.4em 0 .8em}
.wrap{max-width:860px;margin:0 auto;padding:16px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.top .brand{font-weight:700;color:var(--ink);text-decoration:none;font-size:1.1rem;white-space:nowrap}
.top nav{display:flex;gap:2px;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.top nav::-webkit-scrollbar{display:none}
.top nav a{text-decoration:none;color:var(--ink);padding:6px 8px;border-radius:8px;font-size:.92rem}
.top nav a:hover{background:var(--bg)}
.foot{border-top:1px solid var(--line);color:var(--muted);font-size:.85rem;margin-top:32px;background:var(--card)}
.foot .wrap{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;margin:12px 0}
.card.tint{background:#ecfdf5;border-color:#a7f3d0}
.grid{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:700px){.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:1fr 1fr 1fr}}
.btn{display:inline-block;background:var(--brand);color:var(--brand-ink);border:0;border-radius:10px;padding:11px 16px;font-weight:600;text-decoration:none;cursor:pointer;font-size:1rem;line-height:1.2}
.btn:hover{filter:brightness(.95)}
.btn.small{padding:7px 12px;font-size:.9rem}
.btn.ghost{background:transparent;color:var(--brand);border:1px solid var(--brand)}
.btn.wa{background:#25d366;color:#fff}
.btn.warn{background:var(--warn)}
.btn.bad{background:var(--bad)}
.btn.block{display:block;width:100%;text-align:center}
.btn[disabled]{opacity:.5;cursor:not-allowed}
label{display:block;font-weight:600;font-size:.9rem;margin:10px 0 4px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #c9d1d9;border-radius:10px;font:inherit;background:#fff}
textarea{min-height:80px}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row>*{flex:1 1 140px}
.muted{color:var(--muted)}
.small{font-size:.88rem}
.flash{padding:10px 14px;border-radius:10px;margin:8px 0;border:1px solid}
.flash.ok{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.flash.err{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.flash.info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af}
.pill{display:inline-block;padding:3px 10px;border-radius:999px;font-size:.8rem;font-weight:600;background:#e5e7eb;color:#374151;white-space:nowrap}
.pill.s-quote_requested{background:#fef3c7;color:#92400e}
.pill.s-quoted{background:#dbeafe;color:#1e40af}
.pill.s-payment_submitted{background:#ede9fe;color:#5b21b6}
.pill.s-paid,.pill.s-ordered{background:#d1fae5;color:#065f46}
.pill.s-received_cpt,.pill.s-dispatched{background:#cffafe;color:#155e75}
.pill.s-arrived_hre{background:#dcfce7;color:#166534}
.pill.s-delivered{background:#111827;color:#fff}
.pill.s-exception{background:#fee2e2;color:#991b1b}
.pill.s-cancelled{background:#e5e7eb;color:#6b7280}
table{width:100%;border-collapse:collapse;font-size:.93rem}
th,td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.8rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
.table-wrap{overflow-x:auto}
.item{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--line)}
.item img{width:64px;height:64px;object-fit:cover;border-radius:8px;background:#eee;flex:none}
.item .ph{width:64px;height:64px;border-radius:8px;background:#e5e7eb;flex:none;display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:.7rem}
.item .meta{flex:1;min-width:0}
.item .meta .t{font-weight:600;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.timeline{list-style:none;padding:0;margin:0}
.timeline li{position:relative;padding:0 0 14px 22px;border-left:2px solid var(--line);margin-left:6px}
.timeline li::before{content:"";position:absolute;left:-7px;top:4px;width:12px;height:12px;border-radius:50%;background:var(--line)}
.timeline li.done::before{background:var(--brand)}
.timeline li:last-child{border-color:transparent}
.addr{font-family:ui-monospace,Menlo,Consolas,monospace;background:#f3f4f6;border:1px dashed #cbd5e1;border-radius:10px;padding:12px;white-space:pre-line;font-size:.95rem}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:.95rem}
.kv dt{color:var(--muted)}
.kv dd{margin:0}
.total{font-size:1.3rem;font-weight:700}
.hero{padding:28px 0 8px}
.hero h1{font-size:2rem;line-height:1.15}
.steps{counter-reset:s;list-style:none;padding:0}
.steps li{counter-increment:s;padding:8px 0 8px 40px;position:relative}
.steps li::before{content:counter(s);position:absolute;left:0;top:8px;width:28px;height:28px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.stat{text-align:center}.stat b{display:block;font-size:1.6rem}
form.inline{display:inline}
.hide{display:none}
@media print{.top,.foot,.btn,nav{display:none!important}body{background:#fff}.card{border:0;padding:0}}
/* v4: journey */
.paste textarea{min-height:64px;font-size:1rem}
.opts{margin:8px 0 12px}.opts summary{cursor:pointer;color:var(--brand);font-weight:600;font-size:.92rem;padding:4px 0}
label.radio{font-weight:400;display:flex;gap:8px;align-items:center;margin:6px 0}
label.radio input{width:auto;margin:0}
.top nav a.on{background:var(--bg);font-weight:600}
.bottom{position:fixed;left:0;right:0;bottom:0;display:flex;background:var(--card);border-top:1px solid var(--line);z-index:6;padding-bottom:env(safe-area-inset-bottom)}
.bottom a{flex:1;text-align:center;text-decoration:none;color:var(--muted);font-size:.72rem;padding:8px 2px 6px;line-height:1.2}
.bottom a .ic{display:block;font-size:1.25rem;line-height:1.2}
.bottom a.on{color:var(--brand);font-weight:700}
body.customer main.wrap,body.guest main.wrap{padding-bottom:84px}
body.customer .foot,body.guest .foot{margin-bottom:60px}
.desk-only{display:none}
@media(min-width:700px){.desk-only{display:contents}.bottom{display:none}body.customer main.wrap,body.guest main.wrap{padding-bottom:16px}body.customer .foot,body.guest .foot{margin-bottom:0}}
/* v5: checkout */
.pasterow{display:flex;gap:8px;align-items:stretch}
.pasterow textarea{flex:1;min-height:46px;resize:vertical}
.pasterow .btn{flex:none;white-space:nowrap}
@media(max-width:480px){.pasterow{flex-direction:column}}
.itemform{margin-top:6px}
.row.tight{gap:6px}.row.tight>*{flex:1 1 90px}.row.tight label{margin:6px 0 2px;font-size:.78rem}
.row.tight input,.row.tight select{padding:7px 9px;font-size:.92rem}
.warn-text{color:var(--warn)}
.item .meta .t{font-size:.95rem}
