/* Trade reorder portal (Sign Central Online R4, task card SC-20260927-31). The B2B reorder
   reference build's stylesheet, lifted as it was, with its one brand colour turned into tenant
   variables that portal.js sets from GET /api/tenant (brand.colors):
     --accent / --accent-dark   primary buttons, links, the selected delivery option
     --hi / --hi-ink            highlights: the cart badge, the active tab, cards in the order
     --rush / --rush-dark       the rush option (always red, as the reorder portals had it)
   The defaults below are Sign Central's greens, so a new portal with no colours still looks right. */
:root {
  --accent: #0e4423;
  --accent-dark: #082d17;
  --hi: #70bc1f;
  --hi-ink: #0e2a14;
  --rush: #d62828;
  --rush-dark: #a51d1d;
  --ink: #1b1b1f;
  --ink-2: #4a4a52;
  --muted: #6f6f78;
  --line: #e4e4e8;
  --bg: #f4f4f6;
  --card: #ffffff;
  --ok: #1a8f4c;
  --warn: #b7791f;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(20,20,30,.06);
  --shadow-lg: 0 20px 60px rgba(20,20,30,.22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ring: color-mix(in srgb, var(--hi) 35%, transparent);
  --hi-soft: color-mix(in srgb, var(--hi) 16%, #ffffff);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: inherit; }
.muted { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.fineprint { font-size: 12px; color: #a0a0a8; margin-top: 28px; text-align: center; }
[hidden] { display: none !important; }

/* ---- Inputs & buttons ---- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=search], input[type=tel], input:not([type]), textarea, select {
  width: 100%; font: inherit; padding: 11px 13px; border: 1px solid #cfcfd6; border-radius: 9px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
textarea { resize: vertical; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-weight: 700; }
.btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 9px; padding: 11px 18px; cursor: pointer; background: #fff; color: var(--ink); transition: background .15s, transform .05s, box-shadow .15s; text-decoration: none; display: inline-block; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible, .tab:focus-visible, .chip:focus-visible, .tf:focus-visible, .rush-bar:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-ghost { background: transparent; border-color: #cfcfd6; }
.btn-ghost:hover { background: #fff; }
.btn-link { background: none; color: var(--muted); padding: 8px; text-decoration: underline; font-weight: 500; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-own { background: var(--hi); color: var(--hi-ink); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 9px; white-space: nowrap; }
.btn-own:hover { filter: brightness(.96); }
.icon-btn { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.stack > * + * { margin-top: 14px; }
.msg { margin-top: 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; background: #fdecec; color: #9b1c1c; }
.msg.ok { background: #e6f6ec; color: #16693a; }
.msg.warn { background: #fff5dd; color: #7a5200; }

/* ---- Demo ribbon (demo tenants only) ---- */
.demo-ribbon { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: var(--ink); color: #fff; font-size: 13px; padding: 8px 16px; text-align: center; }
.demo-ribbon b { color: var(--hi); }
.demo-ribbon-cta { color: var(--hi); font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ---- Boot / sign in ---- */
.boot-view { min-height: 60vh; display: grid; place-items: center; }
.login-view { min-height: calc(100vh - 36px); display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--hi) 22%, transparent), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 18px; padding: 34px 32px 24px; box-shadow: var(--shadow-lg); }
.login-logo { width: 250px; max-width: 100%; display: block; margin: 0 0 10px; }
.login-line { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.login-card h1 { margin-bottom: 6px; }
.login-card .muted { margin-bottom: 18px; }
.demo-box { border: 2px dashed var(--hi); background: var(--hi-soft); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.demo-box-title { font-weight: 800; margin: 0 0 8px; }
.demo-creds { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 14px; }
.demo-creds dt { color: var(--muted); font-weight: 600; }
.demo-creds dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.demo-code { font-size: 20px; letter-spacing: 4px; font-variant-numeric: tabular-nums; }
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; }
.powered img { height: auto; display: block; }

/* ---- Top bar ---- */
.topbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 40px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 800; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img:not([hidden]) + .brand-text .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand-line { font-size: 12px; font-weight: 600; color: var(--muted); max-width: 150px; line-height: 1.25; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tab { text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tab:hover { background: var(--bg); color: var(--ink); }
.tab.active { color: var(--ink); background: var(--hi-soft); box-shadow: inset 0 -3px 0 var(--hi); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.cart-btn { display: flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; background: var(--ink); color: #fff; border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.user-menu .btn { white-space: nowrap; }
.cart-btn:hover { background: #000; }
.badge { background: var(--hi); color: var(--hi-ink); font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-email { font-size: 13px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Page ---- */
.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .muted { margin: 6px 0 0; max-width: 560px; }
.page-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.filters { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex: 0 1 600px; min-width: 0; }
.filters .tf-toggle { align-self: flex-end; }
.filters input { width: 280px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid #d5d5dc; background: #fff; color: var(--ink-2); cursor: pointer; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- How this works (demo tenants) ---- */
.how-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; margin-bottom: 24px; border-left: 6px solid var(--hi); }
.how-title { margin: 0; font-weight: 800; font-size: 15px; white-space: nowrap; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how-steps li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); padding-left: 36px; position: relative; counter-increment: how; }
.how-steps li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--hi); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.how-steps b { color: var(--ink); font-size: 14px; }

/* ---- Time frame toggle ---- */
.tf-toggle { display: inline-flex; border: 1px solid #cfcfd6; border-radius: 9px; overflow: hidden; background: #fff; }
.tf { font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border: 0; background: #fff; color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.tf small { font-weight: 500; font-size: 11px; color: var(--muted); }
.tf.active { background: var(--ink); color: #fff; }
.tf.active small { color: #ccc; }
.tf[data-tf=rush] { color: var(--rush); }
.tf[data-tf=rush].active { background: var(--rush); color: #fff; }
.cart-tf { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cart-tf .tf-toggle { transform: scale(.92); transform-origin: right center; }
.price-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-hint { font-size: 12px; color: var(--muted); }
.price-hint.break { color: #7a5200; }

/* ---- Rush bar: the 3-day rush option at the top of the list, in red ---- */
.rush-bar { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; cursor: pointer; margin: 0 0 16px; padding: 12px 16px; border: 2px solid var(--rush); border-radius: 12px; background: #fff5f5; color: var(--rush); }
.rush-bar:hover { background: #ffecec; }
.rush-check { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--rush); background: #fff; display: grid; place-items: center; }
.rush-text { display: flex; flex-direction: column; gap: 2px; }
.rush-text b { font-size: 16px; font-weight: 800; }
.rush-text small { font-size: 13px; color: #8f2020; font-weight: 500; }
.rush-bar[aria-pressed=true] { background: var(--rush); color: #fff; }
.rush-bar[aria-pressed=true] .rush-text small { color: #ffe3e3; }
.rush-bar[aria-pressed=true] .rush-check { background: #fff; border-color: #fff; }
.rush-bar[aria-pressed=true] .rush-check::after { content: ''; width: 10px; height: 6px; border-left: 3px solid var(--rush); border-bottom: 3px solid var(--rush); transform: rotate(-45deg) translate(1px, -1px); }
.sample-note { font-size: 13px; color: var(--muted); margin: -6px 0 14px; }

/* ---- Product grid ---- */
.card-img.no-img { cursor: default; background: linear-gradient(135deg, #ececef, #dcdcdf); }
.img-placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; color: #8a8a92; font-weight: 700; letter-spacing: .08em; }
.img-placeholder small { font-weight: 500; letter-spacing: 0; font-size: 12px; }
.img-mini { width: 72px; height: 48px; border-radius: 6px; background: #e4e4e8; }
.review-row .img-mini { width: 64px; height: 42px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.card.in-cart { border-color: var(--hi); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); cursor: zoom-in; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img .sku { position: absolute; top: 10px; left: 10px; background: rgba(27,27,31,.85); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; }
.card-img .zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.9); border-radius: 6px; font-size: 11px; font-weight: 600; padding: 4px 8px; color: var(--ink-2); }
.card-body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.min-hint { font-size: 12px; color: var(--muted); }
.btn-danger { color: var(--rush); border-color: #f0c2c5; }
.card-title { font-weight: 700; font-size: 15px; }
.card-desc { font-size: 12.5px; color: var(--muted); flex: 1; }
.card-price { font-weight: 700; font-size: 15px; }
.card-price small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.card-price.poa { color: var(--muted); font-weight: 500; font-size: 13px; }
.card-price.rush-on { color: var(--rush); }
.card-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.card-foot select { flex: 1; padding: 9px 10px; font-size: 14px; min-width: 0; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid #cfcfd6; border-radius: 9px; overflow: hidden; background: #fff; }
.qty-sel { border: 0; background: none; overflow: visible; gap: 6px; align-items: center; flex: 1 1 100%; }
.qty-sel select { flex: 1; width: auto; min-width: 74px; max-width: 100%; padding: 9px 8px; font-size: 14px; font-weight: 700; }
.qty-sel input[data-qty-custom] { width: 72px; border: 1px solid #cfcfd6; border-radius: 9px; text-align: center; padding: 8px 4px; font-weight: 700; }
.qty button { font: inherit; font-size: 18px; width: 30px; border: 0; background: #fff; cursor: pointer; color: var(--ink-2); }
.qty button:hover { background: var(--bg); }
.qty input { width: 52px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; padding: 8px 4px; font-weight: 700; }
.qty input:focus { box-shadow: none; }
.btn-add { margin-left: auto; flex: 1 1 auto; white-space: nowrap; padding: 10px 12px; font-size: 14px; }
.btn-add.added { background: var(--ok); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* ---- Drawer ---- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,20,30,.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 41; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.cart-total .muted { font-weight: 500; font-size: 13px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--line); }
.cart-line .name { font-weight: 600; font-size: 14px; }
.cart-line .sub { font-size: 12px; color: var(--muted); }
.cart-line .qty input { width: 52px; }
.cart-line .remove { background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }

/* ---- Modals ---- */
.modal { position: fixed; inset: 0; background: rgba(20,20,30,.5); z-index: 50; display: grid; place-items: center; padding: 20px; overflow: auto; }
.modal-card { background: #fff; border-radius: 16px; width: 100%; max-width: 680px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal-card.small { max-width: 460px; padding: 36px 32px; text-align: center; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 22px 22px; overflow: auto; }
.review-items { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.review-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.review-row:last-child { border-bottom: 0; }
.review-row img { width: 64px; height: 42px; object-fit: contain; background: #fff; border-radius: 5px; border: 1px solid var(--line); }
.review-row .q { font-weight: 700; }
.review-row .p { color: var(--muted); min-width: 70px; text-align: right; }
.review-total { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg); font-weight: 700; font-size: 14px; flex-wrap: wrap; }
.review-total .rush { color: var(--rush); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { min-width: 0; }
.field.span-2 { grid-column: span 2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal-actions.center { justify-content: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: #e6f6ec; color: var(--ok); font-size: 32px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 16px; }

/* ---- Delivery options ---- */
.delivery-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #cfcfd6; border-radius: 9px; padding: 10px 12px; cursor: pointer; font-weight: 500; margin: 0; }
.delivery-opt:has(input:checked) { border-color: var(--accent); background: var(--hi-soft); }
.delivery-opt input { margin-top: 3px; accent-color: var(--accent); }
.delivery-opt span { display: flex; flex-direction: column; line-height: 1.3; }
.delivery-opt small { color: var(--muted); font-weight: 500; }
.delivery-note { margin-top: 8px; }
.addr-book { margin-top: 12px; }
.addr-book-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.addr-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #cfcfd6; border-radius: 9px; padding: 10px 12px; cursor: pointer; margin: 0; font-weight: 500; font-size: 13px; line-height: 1.35; }
.addr-card:has(input:checked) { border-color: var(--accent); background: var(--hi-soft); }
.addr-card input { margin-top: 2px; accent-color: var(--accent); }
.addr-card b { display: block; font-size: 14px; }
.addr-card.new { align-items: center; color: var(--ink-2); }
.addr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); }
.addr-grid .field label { margin-bottom: 4px; }
.review-line { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 14px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .addr-book-list, .addr-grid, .delivery-opts { grid-template-columns: 1fr; } .addr-grid .span-2 { grid-column: span 1; } }

/* ---- Orders ---- */
.orders { display: flex; flex-direction: column; gap: 14px; }
.order { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.order-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; }
.order-num { font-weight: 800; font-size: 17px; }
.order-meta { color: var(--muted); font-size: 13px; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #eef0ff; color: #3a43b8; white-space: nowrap; }
.status.s-submitted { background: #eef0ff; color: #3a43b8; }
.status.s-in_production { background: #fff5dd; color: #7a5200; }
.status.s-ready { background: #e6f3ff; color: #0b5cad; }
.status.s-shipped { background: #e6f6ec; color: var(--ok); }
.status.s-collected { background: #f1f1f3; color: var(--muted); }
.order-head .btn { margin-left: auto; }
.order-items { display: flex; flex-wrap: wrap; gap: 10px; }
.order-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 6px 6px; font-size: 13px; min-width: 0; }
.order-item img { width: 56px; height: 36px; object-fit: contain; background: #fff; border-radius: 4px; }
.order-item b { font-size: 14px; }
.order-notes { margin-top: 12px; font-size: 13px; color: var(--ink-2); background: #fff8e1; border-left: 3px solid #f5b400; padding: 8px 12px; border-radius: 6px; white-space: pre-wrap; }
.order-track { margin-top: 10px; font-size: 13px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; }
.rush-tag { color: var(--rush); font-weight: 800; }

/* ---- Live orders board ---- */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board-col { background: #e9e9ee; border-radius: var(--radius); padding: 10px; min-width: 0; }
.board-col h3 { font-size: 14px; display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; }
.board-col h3 .count { background: #fff; border-radius: 999px; font-size: 12px; padding: 2px 9px; color: var(--ink-2); }
.board-col.c-in_production { background: #fbf0d6; }
.board-col.c-ready { background: #ddeefe; }
.board-col.c-shipped { background: #dcf1e3; }
.board-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.board-card:last-child { margin-bottom: 0; }
.board-card .num { font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; gap: 6px; }
.board-card .meta { color: var(--muted); margin-top: 2px; }
.board-card .thumbs { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.board-card .thumbs img { width: 44px; height: 28px; object-fit: contain; background: #fff; border-radius: 4px; border: 1px solid var(--line); }
.board-card .when { margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.board-empty { color: var(--muted); font-size: 13px; padding: 6px 4px; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .board { grid-template-columns: minmax(0, 1fr); } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 14px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: var(--hi); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.timeline b { display: block; }
.timeline span { color: var(--muted); font-size: 13px; }

/* ---- Footer ---- */
.portal-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 24px 28px; text-align: center; }
.portal-footer .powered { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.portal-footer .powered-logo { display: inline-flex; }
.footer-contact { margin: 0; font-size: 13px; color: var(--muted); }
.footer-contact a { color: var(--ink); font-weight: 600; }
.footer-contact .dot { margin: 0 6px; }

/* ---- Lightbox & toast ---- */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,14,.88); z-index: 60; display: grid; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.lightbox-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 36px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; z-index: 70; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }

/* ---- Responsive ---- */
#view-app:not([hidden]) { min-height: 100vh; display: flex; flex-direction: column; }
#view-app > main { flex: 1 0 auto; width: 100%; }
@media (max-width: 1360px) { .user-email { display: none; } }
@media (max-width: 1100px) { .topbar-right .btn-own { display: none; } }
@media (max-width: 1000px) {
  .how-strip { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 10px; }
  .how-strip .btn-own { justify-self: start; }
}
@media (max-width: 860px) {
  .topbar-inner { gap: 10px; padding: 8px 16px; height: auto; flex-wrap: wrap; }
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand img { height: 30px; }
  .brand-line { font-size: 11px; max-width: 170px; }
  .how-strip .btn-own { display: none; }
  .user-email { display: none; }
  .user-menu .btn { padding: 7px 10px; }
  .topbar-right { margin-left: auto; gap: 8px; }
  .topbar-right .btn-own { display: none; }
  .cart-btn { padding: 8px 12px; }
  .cart-btn span:not(.badge) { display: none; }
  .tabs { order: 10; width: 100%; margin-left: 0; }
  .tab { flex: 1; text-align: center; padding: 8px 6px; }
  .page { padding: 18px 16px 60px; }
  .filters { align-items: stretch; width: 100%; }
  .filters input { width: 100%; }
  .chips { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .review-row { grid-template-columns: 56px 1fr auto; }
  .review-row .p { display: none; }
  .login-card { padding: 26px 20px 20px; }
}
@media (max-width: 420px) {
  .tab { font-size: 13px; padding: 8px 2px; }
  .demo-ribbon { font-size: 12px; gap: 6px; padding: 7px 12px; }
  .demo-creds { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .demo-creds dd { margin-bottom: 6px; }
}

/* "Something missing?" tile */
.card-feedback { display: flex; align-items: stretch; cursor: pointer; border: 2px dashed #cfcfd6; background: #fbfbfc; box-shadow: none; }
.card-feedback:hover { border-color: var(--accent); background: #fff; }
.card-feedback .fb-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 18px; }
.card-feedback .fb-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--hi-soft); color: var(--ink); }
.card-feedback .card-desc { flex: 1; }
.card-feedback .btn { pointer-events: none; }
input[type=file] { font-size: 13px; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border: 1px solid #cfcfd6; border-radius: 8px; background: #fff; cursor: pointer; margin-right: 10px; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }
