/* ==========================================================================
   letsbuywith — single stylesheet for every surface.
   Served statically (no build step). Linked from all four layouts:
   marketing (homepage), auth (signup wizard + login), app (buyer pages),
   admin (back office).

   Section 1 holds the design tokens. Sections 2-4 are shared primitives.
   Sections 5-7 are surface-specific. Legacy component names are preserved
   exactly so buyer/admin views keep working unchanged.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */

:root {
    /* Brand — carried over unchanged from the original app. */
    --brand-primary: #da1c11;
    --brand-primary-hover: #b81409;
    --brand-secondary: #2f3c93;
    --brand-dark: #03254c;

    /* Warm neutrals (new). The page ground is cream, not grey. */
    --paper: #fbf7f1;
    --surface: #ffffff;
    --surface-warm: #fcfaf6;
    --line-warm: #ede6da;
    --line-warm-2: #e8e1d6;
    --line-warm-3: #ddd5c7;
    --dot: #d8cfc0;

    /* Text */
    --ink: #1f2733;
    --body: #4a5462;
    --muted: #667085;
    --muted-warm: #6e6553;

    /* Cool neutrals (retained — tables, buyer pages, admin chrome) */
    --border: #e2e5ea;
    --bg-cool: #f6f7f9;

    /* Status */
    --ok-bg: #e6f4ea;
    --ok-fg: #1b7a3d;
    --ok-line: #bfe3c9;
    --bad-bg: #fdecea;
    --bad-fg: #b71c1c;
    --bad-line: #f5c6c2;

    /* Type */
    --font-body: 'Instrument Sans', -apple-system, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: 'Bricolage Grotesque', var(--font-body);
    --font-brand: 'Gabarito', var(--font-body);
    /* Display headings are tightened in Latin; Han glyphs are not. */
    --display-tracking: -.03em;

    /* Shape */
    --r-sm: 8px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --pill: 999px;
    --shadow-sm: 0 1px 2px rgba(3, 37, 76, .16);
    --shadow-lg: 0 22px 44px -18px rgba(3, 37, 76, .45);
}

/* Chinese: keep the Latin faces first so digits, $ and ref codes keep the
   brand look, then the system Simplified faces every SG phone already has. */
html[lang^="zh"] {
    --display-tracking: 0;
    --font-body: 'Instrument Sans', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', -apple-system, system-ui, sans-serif;
    --font-display: 'Bricolage Grotesque', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', var(--font-body);
}

/* The language menu: a globe pill naming the language you are in, opening
   a two-item list. Status-neutral colours on purpose. */
.lang-toggle { position: relative; display: inline-block; margin: 0; }
.lang-toggle summary {
    list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 32px;
    padding: 0 10px 0 9px; border: 1px solid var(--line-warm-3); border-radius: var(--pill);
    background: var(--surface); color: var(--brand-dark); cursor: pointer;
    font: 600 12.5px var(--font-body); letter-spacing: 0; line-height: 1; white-space: nowrap;
}
.lang-toggle summary::-webkit-details-marker { display: none; }
.lang-toggle summary:hover, .lang-toggle[open] summary { border-color: var(--brand-dark); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px;
    display: flex; flex-direction: column; gap: 2px; padding: 6px; margin: 0;
    background: var(--surface); border: 1px solid var(--line-warm-3); border-radius: 12px;
    box-shadow: 0 8px 24px -12px rgba(3, 37, 76, .35);
}
.lang-menu button {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left;
    font: 500 14px var(--font-body); letter-spacing: 0; color: var(--brand-dark); cursor: pointer;
}
.lang-menu button:hover { background: var(--bg-cool); }
.lang-menu button[aria-current] { background: var(--bg-cool); font-weight: 700; }
.ahead-nav .lang-toggle summary { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; opacity: .85; }
.ahead-nav .lang-toggle summary:hover, .ahead-nav .lang-toggle[open] summary { opacity: 1; border-color: #fff; }
.ahead-nav .lang-menu { color: var(--brand-dark); }
.ahead-nav .lang-menu button { color: var(--brand-dark); opacity: 1; border-bottom: 0; }
.bhead-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* 2. Base --------------------------------------------------------------- */

* { box-sizing: border-box; }

/* The hidden attribute is how every disclosure in the app is toggled, and a
   component's own display value would otherwise win over it. */
[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg-cool);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
body.site { background: var(--paper); line-height: 1.55; }

a { color: var(--brand-secondary); }
img { max-width: 100%; }

h1 { font-size: 1.6rem; margin: 6px 0; color: var(--brand-dark); }
.muted { color: var(--muted); }
small { color: var(--muted); }

/* 3. Layout primitives -------------------------------------------------- */

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }
main.container { padding-top: 18px; padding-bottom: 40px; }

.site-header { background: var(--brand-dark); color: #fff; padding: 14px 0; }
.site-header .container { font-weight: 700; font-size: 1.05rem; }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; margin: 12px 0;
}

.notice { padding: 10px 14px; border-radius: var(--r-sm); margin: 12px 0; font-size: .95rem; }
.notice.error { background: var(--bad-bg); color: var(--bad-fg); border: 1px solid var(--bad-line); }
.notice.success { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }

/* 4. Forms and buttons -------------------------------------------------- */

.btn {
    display: inline-block; border: 1px solid transparent; border-radius: var(--r-sm);
    padding: 11px 18px; font-family: inherit; font-size: 1rem; font-weight: 600;
    cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn.primary { background: var(--brand-primary); color: #fff; }
.btn.primary:hover { background: var(--brand-primary-hover); }
.btn.secondary { background: var(--brand-secondary); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--brand-dark); border-color: var(--border); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.small { padding: 6px 10px; font-size: .85rem; }

label.field { display: block; margin: 12px 0 4px; font-weight: 600; font-size: .95rem; }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=datetime-local], textarea, select {
    padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm);
    font-size: 1rem; font-family: inherit; color: inherit; background: #fff;
}
textarea { min-height: 70px; }

/* Full-width inputs on the public/auth surfaces only. The admin toolbar and
   delivery-form rely on auto width, so this must NOT be global. */
.site input[type=text], .site input[type=tel], .site input[type=email],
.site input[type=password], .site input[type=number], .site input[type=date],
.site input[type=datetime-local], .site textarea, .site select { width: 100%; }

.hp { position: absolute; left: -9999px; }

/* 5. Buyer pages (layouts/app) ------------------------------------------ */

.sales-period { font-size: .9rem; color: var(--brand-secondary); font-weight: 600; margin: 2px 0 14px; }

.product { display: flex; gap: 14px; align-items: flex-start; }
.product img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-md); flex: 0 0 auto; }
.product .body { flex: 1; min-width: 0; }
.product .name { font-weight: 700; color: var(--brand-dark); }
.product .qty-col { flex: 0 0 auto; }

.price { color: var(--brand-primary); font-weight: 700; }
.was { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; font-size: .9rem; }
.stock-low { color: var(--brand-primary); font-size: .85rem; font-weight: 600; }
.stock-out { color: var(--muted); font-size: .85rem; font-weight: 600; }

.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { width: 40px; flex: 0 0 40px; border: 0; background: #f2f4f7; font-size: 1.1rem; cursor: pointer; }
/* Must out-specify the `.site input[type=text] { width:100% }` rule above,
   which would otherwise stretch this and blow up the whole product row. */
.site .stepper input.qty-input,
.stepper input.qty-input {
    width: 52px; flex: 0 0 52px; text-align: center; border: 0; border-radius: 0;
    padding: 10px 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    font-size: 1rem;
}

.total-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.15rem; font-weight: 700; margin: 14px 0; color: var(--brand-dark);
}
table.summary { width: 100%; border-collapse: collapse; }
table.summary td { padding: 5px 0; }
table.summary td.amt { text-align: right; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: .8rem; font-weight: 600; }
.badge.paid { background: var(--ok-bg); color: var(--ok-fg); }
.badge.pending { background: var(--bad-bg); color: var(--bad-fg); }
.badge.voided, .badge.neutral { background: #eceff3; color: var(--muted); }

.qr { text-align: center; margin: 10px 0; }
.qr svg { width: 240px; height: 240px; max-width: 100%; }

/* 5D. Leader store page (buyer/store) ------------------------------------
   A leader's own front door: banner, write-up, then everything running,
   soonest deadline first. Namespaced under body.buyer with the rest.          */

body.buyer .storehead {
    margin: 22px 0 10px; font-family: var(--font-display); font-weight: 600;
    letter-spacing: var(--display-tracking); font-size: 20px; color: var(--brand-dark);
}
body.buyer .storelist { display: flex; flex-direction: column; gap: 10px; }
body.buyer .storecard {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
}
body.buyer .storecard:hover { border-color: var(--brand-primary); }
body.buyer .storecard.is-closed { background: #fcfcfd; box-shadow: none; opacity: .85; }
body.buyer .storecard.is-closed:hover { border-color: var(--border); }
body.buyer .storecard-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.buyer .storecard-title {
    font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking);
    font-size: 18px; color: var(--brand-dark); text-wrap: pretty;
}
body.buyer .storecard-when { font-size: 13px; line-height: 1.5; color: var(--muted); }
body.buyer .storecard-when b { font-weight: 600; color: var(--body); }
body.buyer .storecard-when b.is-soon { color: #b26a00; }
body.buyer .storecard-go { flex: none; display: flex; align-items: center; gap: 9px; color: #98a2b3; font-size: 18px; }

body.buyer .storenone {
    display: flex; flex-direction: column; gap: 4px; padding: 20px;
    background: var(--surface-warm); border: 1px dashed var(--line-warm-3);
    border-radius: var(--r-lg); margin-top: 18px;
}
body.buyer .storenone strong { font-size: 16px; color: var(--brand-dark); }
body.buyer .storenone span { font-size: 14px; color: var(--body); }
body.buyer .storecontact { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* The brand is a link now; it must not look like body copy. */
body.buyer a.bhead-brand { text-decoration: none; color: inherit; }

/* 6. Admin (layouts/admin) ----------------------------------------------
   Event-first back office. Two bars: a dark store-level one that is always
   there, and a white event-level one that only exists once a leader has picked
   an event. On a phone the second bar's jump control goes dark so the two read
   as one stacked header, and store-level navigation moves to the thumb.       */

.amain { max-width: 1120px; margin: 0 auto; padding: 16px 16px 40px; }

/* --- Store bar --------------------------------------------------------- */

.ahead { background: var(--brand-dark); }
.ahead-in {
    max-width: 1120px; margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ahead .logo-word { color: #fff; font-size: 19px; }
.ahead .logo-word em { color: #fff; opacity: .65; }
.ahead-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.ahead-nav a, .ahead-nav button {
    color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 400;
    background: none; border: 0; cursor: pointer; font-family: inherit;
    opacity: .7; padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.ahead-nav a:hover, .ahead-nav button:hover { opacity: 1; }
.ahead-nav a.is-on { opacity: 1; font-weight: 600; border-bottom-color: var(--brand-primary); }
.ahead-sep { width: 1px; height: 15px; background: rgba(255, 255, 255, .28); }
.store-switch select {
    font-size: 13px; color: #fff; background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r-sm); padding: 7px 9px;
}
.store-switch option { color: var(--ink); }

/* --- Event bar --------------------------------------------------------- */

.ebar { position: relative; background: var(--surface); border-bottom: 1px solid var(--border); }
.ebar-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; }

/* On a phone this row continues the dark header rather than starting the page. */
.ebar-jump {
    display: flex; align-items: center; gap: 10px;
    margin: 0 -16px; padding: 10px 14px; background: var(--brand-dark);
}
.ebar-back { color: #fff; opacity: .8; text-decoration: none; font-size: 16px; }
.ebar-name {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; cursor: pointer;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--pill); padding: 8px 12px; text-align: left; font-family: inherit;
}
.ebar-title {
    flex: 1; min-width: 0; font-weight: 600; font-size: 14px; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ebar-name .badge { display: none; }
.ebar-chev { flex: none; font-size: 11px; color: #fff; opacity: .8; }

.ebar-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -16px; }
.ebar-tabs a {
    text-align: center; padding: 12px 4px; font-size: 13.5px; font-weight: 500;
    color: var(--muted); text-decoration: none; border-bottom: 2.5px solid transparent;
}
.ebar-tabs a.is-on { color: var(--brand-dark); font-weight: 600; border-bottom-color: var(--brand-primary); }
/* Kept on a phone: Export CSV lives nowhere else, and a control that is the
   only route to a function must not be hidden by a breakpoint. */
.ebar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid #eef0f3; }

.ejump {
    position: absolute; z-index: 20; left: 16px; right: 16px; top: 100%;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 7px; box-shadow: 0 18px 36px -14px rgba(3, 37, 76, .42);
    display: flex; flex-direction: column;
}
.ejump-head, .ejump-none {
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); padding: 8px 10px 6px;
}
.ejump-none { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.ejump a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 10px; border-radius: var(--r-md); text-decoration: none;
    font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.ejump a:hover { background: var(--bg-cool); }
.ejump a small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.ejump-all { border-top: 1px solid var(--border); color: var(--brand-secondary) !important; }

/* --- Phone navigation -------------------------------------------------- */

.abottom {
    position: sticky; bottom: 0; z-index: 9;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--border);
    padding: 8px 6px 12px; backdrop-filter: blur(10px);
}
.abottom a, .abottom button {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0;
    font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted);
    text-decoration: none; background: none; border: 0; cursor: pointer;
}
.abottom span { font-size: 17px; line-height: 1; opacity: .55; }
.abottom .is-on { color: var(--brand-dark); }
.abottom .is-on span { opacity: 1; }

.asheet { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; }
.asheet-scrim { position: absolute; inset: 0; background: rgba(3, 37, 76, .42); }
.asheet-body {
    position: relative; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 4px;
}
.asheet-grip { align-self: center; width: 38px; height: 4px; border-radius: 9px; background: #d8dbe1; margin-bottom: 8px; }
.asheet-body a, .asheet-body button {
    text-align: left; padding: 14px 12px; border-radius: var(--r-md); text-decoration: none;
    font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink);
    background: none; border: 0; cursor: pointer; width: 100%;
}
.asheet-body a:hover, .asheet-body button:hover { background: var(--bg-cool); }

/* --- Page furniture ---------------------------------------------------- */

.apage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.apage-head h1 { font-family: var(--font-display); font-size: 24px; letter-spacing: var(--display-tracking); margin: 0; }
.astats { font-size: 14px; color: var(--body); margin: 0; }
.astats .ok, .oline.ok { color: var(--ok-fg); }

.chip {
    display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
    background: var(--bg-cool); color: var(--body); border: 1px solid var(--border);
    border-radius: var(--pill); padding: 5px 11px; cursor: pointer;
    font-family: inherit; text-decoration: none;
}
.chip.good { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.chip.bad { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }

.badge.status-open { background: var(--ok-bg); color: var(--ok-fg); }
.badge.status-closed { background: #eef0fa; color: var(--brand-secondary); }
.badge.status-draft, .badge.status-archived { background: var(--bg-cool); color: var(--muted); }

.btn.dark { background: var(--brand-dark); color: #fff; }

/* --- Events landing ---------------------------------------------------- */

.evlist { display: flex; flex-direction: column; gap: 10px; }
.evcard {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 15px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm);
}
.evcard.is-archived { background: #fcfcfd; opacity: .8; box-shadow: none; }
.evcard-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.evcard-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.evcard-title > span:first-child {
    font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking);
    font-size: 19px; color: var(--brand-dark); text-wrap: pretty;
}
.evcard-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.evcard-when { font-size: 12.5px; color: var(--muted); }
.evcard-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.evnum { background: var(--bg-cool); border-radius: var(--r-md); padding: 9px; display: flex; flex-direction: column; gap: 1px; }
.evnum b { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1; color: var(--ink); }
.evnum small { font-size: 11px; color: var(--muted); }
.evnum.is-good { background: var(--ok-bg); }
.evnum.is-good b, .evnum.is-good small { color: var(--ok-fg); }
.evcard-go { display: flex; gap: 7px; }
.evcard-go .btn { border-radius: 12px; padding: 14px 15px; font-size: 14px; }
.evcard-go .btn:first-child { flex: 1; text-align: center; font-size: 15px; }

/* --- Orders ------------------------------------------------------------ */

.otiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
.otile {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 9px 10px; display: flex; flex-direction: column; gap: 1px;
}
.otile b { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1; color: var(--brand-dark); }
.otile small { font-size: 11.5px; color: var(--muted); }
.otile.is-good { background: var(--ok-bg); border-color: var(--ok-line); }
.otile.is-good b, .otile.is-good small { color: var(--ok-fg); }

.ofilter { display: flex; gap: 7px; margin-bottom: 10px; }
.ofilter input[type=text] { flex: 1; min-width: 0; border-radius: 12px; padding: 12px 13px; }
.ofilter .btn { border-radius: 12px; }
.ofilter select { flex: 0 1 240px; min-width: 0; border-radius: 12px; padding: 12px 13px; }
@media (max-width: 720px) { .ofilter { flex-wrap: wrap; } .ofilter select { flex: 1 1 100%; } }

.opills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.opills a {
    flex: none; font-size: 12.5px; font-weight: 600; text-decoration: none;
    background: var(--surface); color: var(--body); border: 1px solid var(--border);
    border-radius: var(--pill); padding: 8px 13px;
}
.opills a.is-on { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

.olist { display: flex; flex-direction: column; gap: 8px; }

/* The rail is the only thing that has to be readable at arm's length:
   grey = not paid, green = done, amber = look at this, red = voided. */
.orow {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
    padding-left: 5px;
}
.orow-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #c9ced6; }
.orow.is-paid .orow-rail { background: var(--ok-fg); }
.orow.is-check .orow-rail { background: #b26a00; }
.orow.is-voided .orow-rail { background: var(--bad-fg); }
.orow.is-voided { background: #fcfcfd; opacity: .75; }
.orow.is-voided .orow-name, .orow.is-voided .orow-total { text-decoration: line-through; color: var(--muted); }

.orow-sum {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 13px;
    background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit;
}
.orow-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.orow-name { font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow.is-check .orow-meta { color: #b26a00; }
.orow-money { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.orow-total { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); }
.orow-state { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.orow.is-paid .orow-state { color: var(--ok-fg); }
.orow.is-check .orow-state { color: #b26a00; }
.orow.is-voided .orow-state { color: var(--bad-fg); }
.orow-chev { flex: none; font-size: 14px; color: #98a2b3; }

.orow-open { border-top: 1px solid #eef0f3; padding: 13px; display: flex; flex-direction: column; gap: 12px; }
.opay { display: flex; flex-direction: column; gap: 8px; }
.opay.is-check { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: 12px; padding: 12px; }
.opay.is-check strong { font-size: 14.5px; color: #7a5a13; }
.ochips { display: flex; flex-wrap: wrap; gap: 6px; }

.ocontact { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 14px; color: var(--body); }
.oicon {
    width: 38px; height: 38px; flex: none; display: flex; align-items: center; justify-content: center;
    font-size: 15px; text-decoration: none; background: var(--bg-cool);
    border: 1px solid var(--border); border-radius: var(--pill);
}
.oicon.is-wa { background: var(--ok-bg); border-color: var(--ok-line); }

.oline { font-size: 13.5px; color: var(--body); }
.oline.is-note { font-style: italic; color: var(--muted); text-wrap: pretty; }

.oitems { background: var(--bg-cool); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 7px; }
.oitems span { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--body); }
.oitems-total { border-top: 1px solid var(--border); padding-top: 7px; font-weight: 600; color: var(--ink) !important; }

.orow-open .btn.block { border-radius: 12px; padding: 16px; font-size: 17px; }
.olink {
    background: none; border: 0; padding: 6px; cursor: pointer; font-family: inherit;
    font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; text-align: left;
}
.olink.is-bad { color: var(--bad-fg); }
.omore { background: var(--bg-cool); border: 1px solid var(--border); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.omore form { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; }
.omore label { display: flex; flex-direction: column; gap: 2px; font-size: .72rem; color: var(--muted); flex: 1; min-width: 150px; }
.omore select { padding: 8px 9px; font-size: .85rem; width: 100%; }

/* --- Summary ------------------------------------------------------------
   This screen exists for one moment: reading a number out to a supplier. So
   the quantity to order is the biggest thing on it, and everything else is
   secondary to that number.                                                  */

.sumcard { padding: 0; overflow: hidden; margin: 0 0 14px; }
.sumcard-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.sumcard-head h2 {
    margin: 0; font-family: var(--font-display); font-weight: 600;
    letter-spacing: var(--display-tracking); font-size: 18px; color: var(--brand-dark);
}
.sumcard-head small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.sumrow { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-bottom: 1px solid #eef0f3; }
.sumrow-head { display: none; }
.sumrow-name { grid-column: 2; font-weight: 600; font-size: 15.5px; color: var(--ink); text-wrap: pretty; }
.sumrow-paid { grid-column: 2; grid-row: 2; font-size: 12.5px; color: var(--muted); }
.sumrow-paid::after { content: ' paid'; }
.sumrow-qty {
    grid-column: 1; grid-row: 1 / span 2; text-align: center;
    font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1;
    color: var(--brand-dark);
}
.sumrow-total { background: var(--bg-cool); border-top: 1px solid var(--border); border-bottom: 0; }
.sumrow-total .sumrow-qty { font-size: 24px; color: var(--ink); }

.sumline { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #eef0f3; font-size: 14.5px; color: var(--body); }
.sumline b { font-weight: 600; font-size: 15px; color: var(--ink); }
.sumline.is-good, .sumline.is-good b { color: var(--ok-fg); }
.sumline.is-bad, .sumline.is-bad b { color: var(--bad-fg); }
.sumline small { font-weight: 400; font-size: 13px; color: var(--muted); }
.sumline-total { background: var(--bg-cool); border-bottom: 0; border-top: 1px solid var(--border); }
.sumline-total b { font-family: var(--font-display); font-size: 22px; }

.sumsplit { display: flex; flex-direction: column; }

/* --- Products + forms --------------------------------------------------- */

.apage-lead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.backlink { font-size: 13.5px; font-weight: 600; color: var(--brand-secondary); text-decoration: none; }

.prodlist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid #eef0f3; }
.prow:last-child { border-bottom: 0; }
.prow-head { display: none; }
.prow.is-off { background: #fcfcfd; }
.prow.is-off .prow-title, .prow.is-off .prow-price { color: var(--muted); }

.prow-tap { grid-row: 1; display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; }
.prow-tap:hover .prow-title { color: var(--brand-secondary); }
.prow-tap img, .prow-nophoto {
    width: 54px; height: 54px; flex: none; border-radius: var(--r-md); object-fit: cover;
    background: #f3ece1; display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: var(--muted-warm);
}
.prow-tap > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prow-title { font-weight: 600; font-size: 15.5px; color: var(--ink); text-wrap: pretty; }
.prow-tap small { font-size: 12.5px; color: var(--muted); }
.prow-price { grid-row: 2; grid-column: 1; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.prow-stock { display: none; }
.prow-live { grid-row: 3; grid-column: 1; display: flex; align-items: center; gap: 7px; }
.prow-stockword { font-size: 12.5px; color: var(--muted); }
.prow-move { grid-row: 1 / span 3; grid-column: 2; display: flex; flex-direction: column; gap: 5px; align-items: center; }
.prow-move button {
    width: 34px; height: 30px; font-size: 13px; font-family: inherit; cursor: pointer;
    background: var(--surface); color: var(--body); border: 1px solid #d8dbe1; border-radius: var(--r-sm);
}
.prow-move button[disabled] { background: var(--bg-cool); color: #c9ced6; border-color: var(--border); cursor: default; }
.prow-go { grid-row: 1 / span 3; grid-column: 2; display: none; }
.prodhint { margin-top: 10px; }

/* Forms: one column on a phone, main + rail on a desktop. */
.formsplit { display: flex; flex-direction: column; gap: 12px; }
.formmain, .formrail { display: flex; flex-direction: column; gap: 12px; }
.formsplit .card { margin: 0; display: flex; flex-direction: column; gap: 13px; }
.stack, .stack-label { display: flex; flex-direction: column; gap: 5px; }
.stack > span:first-child, .stack-label { font-size: 12.5px; font-weight: 600; color: var(--body); }
.stack input[type=text], .stack input[type=email], .stack input[type=date],
.stack input[type=datetime-local], .stack select, .stack textarea {
    width: 100%; border-radius: var(--r-md); padding: 13px 12px; font-size: 15px;
}
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* A date and its time need the full width of a phone; only short paired inputs
   (a price and its "was" price) survive two-across down there. */
.formgrid--when, .formgrid--where, .formgrid--link,
.formgrid--pair, .formgrid--proxy { grid-template-columns: minmax(0, 1fr); }
.formgrid > label:last-child:nth-child(odd) { grid-column: 1 / -1; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.publish { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.publish legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 12.5px; color: var(--muted-warm); }
.publish .check small { font-weight: 400; color: var(--muted); }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; }
.formactions { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #eef0f3; padding-top: 13px; }

.photogrid { display: flex; flex-wrap: wrap; gap: 10px; }
.photogrid label { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.photogrid img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--r-sm); }
.photoadd { border-top: 1px solid #eef0f3; padding-top: 12px; }

.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; cursor: pointer; text-align: center; }
.pick img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--r-sm); border: 2px solid transparent; }
.pick input { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; margin: 0; }
.pick:has(input:checked) img { border-color: var(--brand-primary); }
.pick span { font-size: 11.5px; line-height: 1.3; color: var(--body); max-width: 96px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pick small { font-size: 10.5px; color: var(--muted); }
.pick.is-unused { cursor: default; }
.unusedphotos { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }

.preview { background: var(--surface-warm); border-color: var(--line-warm-2); }
.preview-card { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: flex-start; }
.preview-card img, .preview-card .prow-nophoto { width: 56px; height: 56px; border-radius: var(--r-md); }
.preview-card > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.preview-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.preview-price { display: flex; align-items: baseline; gap: 7px; }
.preview-price b { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--brand-primary); }
.preview-price s { font-size: 12.5px; color: var(--muted); }
.preview-desc { font-size: 12.5px; line-height: 1.45; color: var(--body); }

/* --- Event form --------------------------------------------------------- */

.cardtitle { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 17px; color: var(--brand-dark); }
.stack small { font-size: 12.5px; line-height: 1.5; color: var(--body); }
.stack small.hint, small.hint { font-size: 12.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.whenrow { display: flex; gap: 8px; }
.whenrow input[type=date] { flex: 1; min-width: 0; }
.whenrow select { flex: none; width: 112px; padding: 12px 9px; border-radius: var(--r-md); }
.prefixed { display: flex; align-items: stretch; border: 1px solid #d8dbe1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
/* Hidden on a phone: the host is longer than the field it prefixes, and the
   resulting URL is spelled out underneath anyway. */
.prefixed > span { display: none; }
.prefixed input { flex: 1; min-width: 0; border: 0 !important; border-radius: 0 !important; }
.link-result { word-break: break-all; }
.preview-link { font-size: 13.5px; word-break: break-all; }

/* --- Settings ----------------------------------------------------------- */

.setsplit { display: flex; flex-direction: column; gap: 14px; }
.setnav { display: flex; flex-direction: column; gap: 12px; }
.setnav h1 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 24px; color: var(--brand-dark); }
.setnav nav { display: none; flex-direction: column; gap: 1px; }
.setnav nav a { font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; padding: 11px 13px; border-radius: var(--r-md); }
.setnav nav a:hover { background: var(--surface); }
.setmain { display: flex; flex-direction: column; gap: 14px; }
.setmain .card { margin: 0; display: flex; flex-direction: column; gap: 14px; }

.caution {
    margin: 0; padding: 14px; max-width: 74ch;
    background: #fff7e6; border: 1px solid #ffe1a6; border-left: 5px solid #b26a00;
    border-radius: 12px; font-size: 14px; line-height: 1.6; color: #8a5a00; text-wrap: pretty;
}

.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.swatch {
    display: flex; align-items: center; gap: 11px; padding: 11px 12px;
    background: var(--bg-cool); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
}
.swatch input[type=color] { width: 42px; height: 36px; flex: none; border: 1px solid #d8dbe1; border-radius: 9px; background: #fff; padding: 3px; }
.swatch > span { display: flex; flex-direction: column; }
.swatch > span > span { font-weight: 600; font-size: 14px; color: var(--ink); }
.swatch small { font-size: 12.5px; color: var(--muted); }

.colourgrid { display: flex; flex-direction: column; gap: 16px; }
.colour-preview { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cp-bar { background: var(--d); padding: 10px 13px; font-family: var(--font-brand); font-weight: 700; font-size: 14px; color: #fff; }
.cp-bar em { font-style: normal; opacity: .65; }
.cp-body { background: var(--bg); padding: 15px 13px; display: flex; flex-direction: column; gap: 9px; }
.cp-title { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 17px; color: var(--d); }
.cp-link { font-size: 13.5px; color: var(--s); }
.cp-row { display: flex; align-items: center; gap: 9px; }
.cp-btn { font-size: 13.5px; font-weight: 600; background: var(--p); color: #fff; border-radius: var(--pill); padding: 10px 16px; }
.cp-body small { font-size: 12px; color: var(--muted); }

.imagegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.imagebox {
    height: 92px; border-radius: var(--r-md); background: #f3ece1;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.imagebox img { max-height: 92px; max-width: 100%; object-fit: contain; }
.imagebox small { font-size: 12px; color: var(--muted-warm); }

/* --- Feedback ----------------------------------------------------------- */

.fbpage { display: flex; flex-direction: column; gap: 14px; max-width: 800px; }
.fbpage .card { margin: 0; }
.fbfold summary { font-weight: 600; font-size: 14.5px; color: var(--brand-dark); cursor: pointer; }
.fbfold[open] summary { margin-bottom: 12px; }
.fbform { display: flex; flex-direction: column; gap: 13px; }
.fbtypes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fbtype {
    display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer;
    background: var(--surface); border: 1px solid #d8dbe1; border-radius: 12px;
    font-weight: 600; font-size: 15px; color: var(--ink);
}
.fbtype:has(input:checked) { border: 2px solid var(--brand-dark); padding: 13px; }
.fbtype input { width: 18px; height: 18px; flex: none; }
.fbsend { align-self: stretch; }

.fblist { display: flex; flex-direction: column; gap: 10px; }
.fbcard {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 14px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow-sm);
}
.fbcard.is-done { background: #fcfcfd; box-shadow: none; }
.fbcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fbcard-type { font-weight: 600; font-size: 14px; color: var(--body); }
.fbcard-when { font-size: 12px; color: var(--muted); }
.fbcard-msg { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.fbcard-from { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid #eef0f3; padding-top: 9px; font-size: 13px; color: var(--ink); }
.fbcard-from small { font-size: 12.5px; color: var(--muted); }
.fbcard-set { display: flex; gap: 7px; }
.fbcard-set select { flex: 1; min-width: 0; padding: 11px 10px; border-radius: var(--r-md); }

.gate { max-width: 700px; display: flex; flex-direction: column; gap: 12px; }
.gate p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.gate-pick { display: flex; gap: 9px; flex-wrap: wrap; border-top: 1px solid #eef0f3; padding-top: 14px; }

/* --- Platform, admins, activity ----------------------------------------- */

.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.ptile {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 16px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-sm);
}
.ptile b { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--brand-dark); }
.ptile b.is-money { font-size: 24px; line-height: 1.1; }
.ptile span { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.ptile small { font-size: 12.5px; color: var(--muted); }

.psection { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.psection-head { display: flex; flex-direction: column; gap: 2px; }
.psection-head.is-row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.psection h2 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 20px; color: var(--brand-dark); }
.psection .card { margin: 0; }

.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 6px 14px; align-items: center; }
.funnel-lab { font-weight: 600; font-size: 14px; color: var(--ink); }
.funnel-bar { grid-column: 1 / -1; grid-row: 2; height: 26px; border-radius: var(--r-sm); background: #f0f2f5; overflow: hidden; }
.funnel-bar i { display: block; height: 100%; background: var(--brand-secondary); border-radius: var(--r-sm); }
.funnel-val { grid-column: 2; grid-row: 1; text-align: right; display: flex; flex-direction: column; }
.funnel-val b { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1; color: var(--ink); }
.funnel-val small { font-size: 11.5px; color: var(--muted); }

.chart { display: flex; flex-direction: column; gap: 12px; }
.chart-legend { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--body); }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; }
.chart-legend i.s, .chart-col i.s { background: var(--brand-secondary); }
.chart-legend i.o, .chart-col i.o { background: var(--brand-primary); }
.chart-plot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 160px; border-bottom: 1px solid var(--border); }
.chart-col { display: flex; gap: 3px; align-items: flex-end; justify-content: center; height: 100%; }
.chart-col i { width: 11px; border-radius: 3px 3px 0 0; }
.chart-col i.is-zero { background: var(--border); }
.chart-axis { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; font-size: 10px; color: var(--muted); text-align: center; }

.logday { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.logday h2 { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.logcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.logrow { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 14px; padding: 12px 14px; border-bottom: 1px solid #eef0f3; align-items: baseline; }
.logrow:last-child { border-bottom: 0; }
.logtime { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--muted); }
.logaction { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 13px; color: var(--brand-secondary); }
.logaction.is-destructive { color: var(--bad-fg); }
.logwhat { grid-column: 2; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; color: var(--ink); }
.logwhat small { font-size: 12.5px; color: var(--muted); }
.logpager { margin-top: 14px; }

.arow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px; border-bottom: 1px solid #eef0f3; align-items: center; }
.arow:last-child { border-bottom: 0; }
.arow-head { display: none; }
.arow.is-off { background: #fcfcfd; }
.arow.is-off .arow-who { color: var(--muted); }
.arow-who { font-weight: 600; font-size: 15px; color: var(--ink); word-break: break-all; }
.arow-who small { font-weight: 400; font-size: 13px; color: var(--muted); }
.arow-state { grid-column: 2; grid-row: 1; }
.arow-seen { grid-column: 1 / -1; font-size: 13.5px; color: var(--body); }
.arow-do { grid-column: 1 / -1; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.arow-do form { display: flex; gap: 7px; align-items: center; }
.arow-do input[type=password] { flex: 1; min-width: 132px; padding: 9px 11px; font-size: 13.5px; border-radius: 9px; }
.btn.danger { background: var(--surface); color: var(--bad-fg); border-color: var(--bad-line); }
.addadmin-title { margin: 24px 0 10px; }
.addadmin { max-width: 520px; margin: 0; }
.addadmin form { display: flex; flex-direction: column; gap: 13px; }

/* --- Retained by the screens not yet redesigned ------------------------ */

.deadline-banner { color: var(--muted); font-size: .92rem; margin: 4px 0 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.toolbar form { display: flex; gap: 8px; flex: 1; min-width: 220px; flex-wrap: wrap; }
.toolbar input[type=text] { flex: 1 1 200px; min-width: 160px; }
.toolbar select { min-width: 120px; }

.table-scroll { overflow-x: auto; margin: 12px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
table.data th, table.data td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--bg-cool); color: var(--brand-dark); }
table.data td.num, table.data th.num { text-align: right; }
td form { margin-bottom: 6px; }

.delivery-form { display: flex; flex-wrap: wrap; gap: 4px; align-items: flex-end; margin-top: 6px; }
.delivery-form .field-inline { display: flex; flex-direction: column; font-size: .72rem; color: var(--muted); gap: 2px; }
.delivery-form select { min-width: 150px; max-width: 240px; padding: 6px 8px; font-size: .82rem; }

.auth-card { max-width: 380px; margin: 40px auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.auth-card input { width: 100%; }

.rt-wrap { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.rt-toolbar { display: flex; gap: 2px; background: var(--bg-cool); border-bottom: 1px solid var(--border); padding: 4px; }
.rt-toolbar button { border: 0; background: none; padding: 4px 10px; cursor: pointer; border-radius: 6px; font-size: .95rem; }
.rt-toolbar button:hover { background: #e6e9ee; }
.rt-editor { min-height: 90px; padding: 10px 12px; font-size: 1rem; outline: none; }
.rt-editor:empty:before { content: attr(data-placeholder); color: var(--muted); }

/* --- Desktop ------------------------------------------------------------ */

@media (min-width: 960px) {
    .ahead-nav { display: flex; }
    .abottom, .asheet { display: none; }
    .amain { padding: 24px 16px 48px; }

    .ebar-in { flex-direction: row; align-items: stretch; gap: 24px; }
    .ebar-jump { margin: 0; padding: 12px 0; background: none; flex: none; }
    .ebar-back { color: #98a2b3; font-size: 13px; }
    .ebar-name { background: none; border: 0; padding: 0; gap: 9px; flex: none; }
    .ebar-title {
        font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking);
        font-size: 18px; color: var(--brand-dark); white-space: normal;
    }
    .ebar-name .badge { display: inline-block; }
    .ebar-chev { color: var(--muted); }
    .ebar-tabs { display: flex; margin: 0; flex: 1; }
    .ebar-tabs a { display: flex; align-items: center; padding: 0 14px; font-size: 14.5px; }
    .ebar-actions { padding: 0; border-top: 0; flex-wrap: nowrap; }
    .ejump { left: auto; right: auto; width: 380px; margin-top: 8px; }

    .apage-head h1 { font-size: 26px; }
    .otiles { display: none; }
    .ofilter { max-width: 620px; }

    .evcard { flex-direction: row; align-items: center; gap: 20px; padding: 18px 20px; }
    .evcard-id { flex: 1.6; }
    .evcard-title > span:first-child { font-size: 21px; }
    .evcard-nums { flex: none; display: flex; gap: 26px; background: none; }
    .evnum { background: none; align-items: flex-end; padding: 0; }
    .evnum b { font-size: 24px; }
    .evnum.is-good { background: none; }
    .evcard-go { flex: none; }
    .evcard-go .btn { padding: 12px 15px; }
    .evcard-go .btn:first-child { flex: none; padding: 12px 20px; }

    .sumrow { grid-template-columns: minmax(0, 1fr) 160px 180px; gap: 0; padding: 0; }
    .sumrow-head { display: grid; background: var(--bg-cool); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
    .sumrow-head span { padding: 10px 18px; }
    .sumrow-head span:not(:first-child) { text-align: right; }
    .sumrow-name { grid-column: 1; grid-row: 1; padding: 16px 18px; font-size: 16px; }
    .sumrow-paid { grid-column: 2; grid-row: 1; padding: 14px; text-align: right; font-size: 15px; color: var(--body); }
    .sumrow-paid::after { content: none; }
    .sumrow-qty { grid-column: 3; grid-row: 1; padding: 14px; text-align: right; font-size: 30px; }
    .sumsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
    .sumsplit .sumcard { margin: 0; }

    .prow { grid-template-columns: 96px minmax(0, 1fr) 140px 120px 130px 110px; gap: 0; padding: 0; align-items: center; }
    .prow-head { display: grid; background: var(--bg-cool); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
    .prow-head span { padding: 10px 14px; }
    .prow-head span:first-child { padding-left: 18px; }
    .prow-head span:nth-child(3), .prow-head span:nth-child(4) { text-align: right; }
    .prow-move { grid-row: 1; grid-column: 1; flex-direction: row; gap: 4px; padding: 12px 18px; }
    .prow-move button { width: 30px; }
    .prow-name { grid-row: 1; grid-column: 2; padding: 12px 14px; }
    .prow-tap img, .prow-nophoto { width: 44px; height: 44px; }
    .prow-price { grid-row: 1; grid-column: 3; padding: 12px 14px; text-align: right; }
    .prow-stock { display: block; grid-row: 1; grid-column: 4; padding: 12px 14px; text-align: right; font-size: 15px; color: var(--body); }
    .prow-live { grid-row: 1; grid-column: 5; padding: 12px 14px; }
    .prow-stockword { display: none; }
    .prow-go { display: block; grid-row: 1; grid-column: 6; padding: 12px 18px; }

    .formsplit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
    .formrail { position: sticky; top: 20px; }
    .formgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .formgrid > label:last-child:nth-child(odd) { grid-column: auto; }

    .formgrid--when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Room for the prefix, but never at the expense of the field: it shrinks
       and ellipsises, the input keeps a usable width. */
    .prefixed > span {
        display: flex; align-items: center; flex: 0 1 auto; min-width: 0;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        font-size: 13px; color: var(--muted); background: var(--bg-cool);
        border-right: 1px solid var(--border); padding: 0 11px;
    }
    .prefixed > span { max-width: 50%; }
    .prefixed input { flex: 1 1 20ch; min-width: 18ch; }

    .formgrid--where { grid-template-columns: 200px minmax(0, 1fr); }
    .formgrid--link { grid-template-columns: minmax(0, 1fr) 220px; }
    .formgrid--where > label:last-child:nth-child(odd),
    .formgrid--link > label:last-child:nth-child(odd) { grid-column: auto; }

    .setsplit { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
    .setnav { position: sticky; top: 20px; }
    .setnav nav { display: flex; }
    .setnav .formactions { border-top: 1px solid var(--border); }
    .setmain { gap: 16px; }
    .formgrid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .formgrid--proxy { grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
    .colourgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
    .imagegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .fbtypes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fbsend { align-self: flex-start; }
    .fbcard { display: grid; grid-template-columns: 130px 230px minmax(0, 1fr) 200px; gap: 14px; align-items: center; border-radius: 0; border: 0; border-bottom: 1px solid #eef0f3; box-shadow: none; }
    .fblist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); gap: 0; }
    .fbcard-top { flex-direction: column; align-items: flex-start; gap: 2px; }
    .fbcard-from { border-top: 0; padding-top: 0; }
    .fbcard-msg { font-size: 14px; }

    .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .ptile b { font-size: 40px; }
    .ptile b.is-money { font-size: 30px; }
    .funnel-row { grid-template-columns: 210px minmax(0, 1fr) 92px; gap: 14px; }
    .funnel-bar { grid-column: 2; grid-row: 1; }
    .funnel-val { grid-column: 3; }
    .chart-plot, .chart-axis { gap: 10px; }
    .chart-axis { font-size: 11px; }

    .logrow { grid-template-columns: 78px 210px minmax(0, 1fr); gap: 14px; padding: 12px 18px; }
    .logwhat { grid-column: 3; }

    .arow { grid-template-columns: minmax(0, 1fr) 110px 170px 390px; gap: 0; padding: 0; }
    .arow-head { display: grid; background: var(--bg-cool); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
    .arow-head span { padding: 10px 12px; }
    .arow-head span:first-child { padding-left: 18px; }
    .arow-who { grid-row: 1; padding: 14px 18px; word-break: normal; }
    .arow-state { grid-row: 1; grid-column: 2; padding: 14px 12px; }
    .arow-seen { grid-row: 1; grid-column: 3; padding: 14px 12px; }
    .arow-do { grid-row: 1; grid-column: 4; padding: 14px 18px; flex-wrap: nowrap; }

    /* The rows stay cards rather than becoming a dense table: the same markup
       has to work on a phone, and a leader reads them the same way on both. */
    .olist { gap: 6px; }
    .orow-sum { padding: 14px 16px; gap: 14px; }
    .orow-name { font-size: 15.5px; }
    .orow-open { padding: 16px; }
    .orow-open .btn.block { display: inline-block; width: auto; padding: 10px 20px; font-size: 14px; }
    .ocontact { font-size: 13px; }
    .oicon { width: 30px; height: 30px; font-size: 13px; }
}

/* 7. Brand mark (marketing + auth) -------------------------------------- */

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { position: relative; width: 26px; height: 20px; flex: 0 0 auto; display: block; }
.logo-mark i {
    position: absolute; top: 0; width: 20px; height: 20px;
    border-radius: 50%; display: block; font-style: normal;
}
.logo-mark i:first-child { left: 0; background: var(--brand-dark); }
.logo-mark i:last-child { right: 0; background: var(--brand-primary); mix-blend-mode: multiply; }
.logo-word {
    font-family: var(--font-brand); font-weight: 700; font-size: 22px;
    letter-spacing: -.035em; color: var(--brand-dark); line-height: 1;
}
.logo-word em { font-style: normal; color: var(--brand-primary); }
.logo-tag {
    font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted-warm); align-self: center;
}

/* 8. Marketing homepage -------------------------------------------------- */

.mk-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(251, 247, 241, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-warm);
}
.mk-header .wrap { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.mk-header .logo { margin-right: auto; }
.mk-nav { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 500; }
.mk-nav a { color: var(--body); text-decoration: none; }
.mk-nav a:hover { color: var(--brand-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.hero { padding: 64px 0 24px; }
.hero h1 {
    font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04;
    letter-spacing: -.035em; font-weight: 600; color: var(--brand-dark);
    margin: 0 0 20px; text-wrap: balance;
}
.hero .lede {
    font-size: clamp(17px, 1.9vw, 20px); color: var(--body);
    margin: 0 0 30px; max-width: 560px; text-wrap: pretty;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.btn.lg { font-size: 16.5px; padding: 15px 28px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.btn.lg.ghost { padding: 14px 24px; border-color: var(--line-warm-3); }
.btn.lg.ghost:hover { border-color: var(--brand-dark); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #626a78; }
.trust-row .dot { color: var(--dot); }

/* Phone mockups */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 16px 0 8px; }
.phone-col { flex: 0 1 258px; max-width: 258px; display: flex; flex-direction: column; }
.phone { background: #0f1720; border-radius: 34px; padding: 9px; box-shadow: var(--shadow-lg); flex: 1; display: flex; }
.phone-inner { background: var(--bg-cool); border-radius: 26px; overflow: hidden; flex: 1; display: flex; flex-direction: column; }
.phone-bar { background: var(--brand-dark); color: #fff; padding: 11px 14px; font-weight: 700; font-size: 13px; }
.phone-body { padding: 12px; flex: 1; font-size: 12px; }
.phone-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--brand-dark); line-height: 1.2; }
.phone-sub { font-size: 11px; color: var(--brand-secondary); font-weight: 600; margin: 4px 0 10px; }
.phone-row { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 9px; margin-bottom: 8px; }
.phone-cap { text-align: center; margin-top: 12px; }
.phone-cap b { display: block; font-family: var(--font-display); font-size: 15px; color: var(--brand-dark); }
.phone-cap span { font-size: 13px; color: var(--body); }
.flow { scroll-margin-top: 76px; }
.flow-label { margin: 8px 0 14px; }
.flow-label-2 { margin-top: 34px; }
.phone-strong { font-weight: 600; color: var(--brand-dark); }
.phone-split { display: flex; justify-content: space-between; }
.phone-line { padding: 5px 0; border-bottom: 1px solid var(--border); }
.phone-line:first-child { padding-top: 0; }
.phone-qr {
    width: 84px; height: 84px; margin: 0 auto; border-radius: 4px;
    background: repeating-conic-gradient(var(--brand-dark) 0 25%, #fff 0 50%) 50% / 12px 12px;
}
.phone-ghost {
    text-align: center; border: 1px solid var(--line-warm-3); border-radius: var(--r-sm);
    padding: 6px; color: var(--brand-dark); font-weight: 600;
}

/* Generic marketing section */
.mk-section { padding: 56px 0; }
.mk-section.alt { background: var(--surface-warm); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-warm); margin-bottom: 10px; }
.mk-section h2 {
    font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12;
    letter-spacing: var(--display-tracking); font-weight: 600; color: var(--brand-dark); margin: 0 0 12px; text-wrap: balance;
}
.mk-section .sub { color: var(--body); max-width: 640px; margin: 0 0 28px; }

/* The one dark band: how buyer data is handled. Same tiles, inverted. */
.mk-section.dark { background: var(--brand-dark); color: #fff; scroll-margin-top: 70px; }
.mk-section.dark .eyebrow { color: #9db0c9; }
.mk-section.dark h2 { color: #fff; }
.mk-section.dark .sub { color: #c3cfdd; }
.mk-section.dark .tile { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.mk-section.dark .tile h3 { color: #fff; }
.mk-section.dark .tile p { color: #c3cfdd; }

.grid { display: grid; gap: 18px; }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.tile { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: var(--r-lg); padding: 22px; }
.tile h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--brand-dark); margin: 0 0 8px; }
.tile p { margin: 0; color: var(--body); font-size: 15px; }
.tile .num {
    width: 30px; height: 30px; border-radius: 50%; background: var(--brand-dark); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.tile .instead { font-size: 12.5px; font-weight: 600; color: var(--muted-warm); margin-bottom: 6px; }

.faq h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--brand-dark); margin: 0 0 6px; }

.plan { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: var(--r-xl); padding: 26px; }
.plan .price-name { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--brand-dark); }
.plan .price-note { font-size: 13px; color: var(--muted-warm); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--body); font-size: 15px; }
.ticks li span { color: var(--ok-fg); font-weight: 700; }

.join { background: var(--brand-dark); color: #fff; border-radius: var(--r-xl); padding: 40px; }
.join h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); color: #fff; margin: 0 0 12px; letter-spacing: var(--display-tracking); }
.join p { color: #c3cfdd; max-width: 560px; }
.join .ticks li { color: #c3cfdd; }
.join .eyebrow { color: #9db0c9; }

.mk-footer { border-top: 1px solid var(--line-warm); padding: 28px 0 40px; margin-top: 56px; }
.mk-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.mk-footer nav { display: flex; gap: 18px; font-size: 14px; }
.mk-footer a { color: var(--body); text-decoration: none; }

/* 9. Auth + signup wizard ------------------------------------------------ */

.auth-header { border-bottom: 1px solid var(--line-warm); background: var(--paper); }
.auth-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.auth-header .aside { font-size: 14px; color: var(--body); }

.wiz { max-width: 1000px; margin: 0 auto; padding: 26px 20px 60px; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
    font-family: inherit; font-size: 13.5px; font-weight: 600; border-radius: var(--pill);
    padding: 8px 16px; border: 1px solid var(--line-warm-3); background: var(--surface);
    color: var(--body); text-decoration: none; display: inline-block;
}
.chip.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.chip.done { color: var(--ok-fg); border-color: #cfe3d6; }

.wiz-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 900px) { .wiz-grid { grid-template-columns: 1fr 1fr; gap: 44px; } }

.wiz-step { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-warm); }
.wiz-aside h1 {
    font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1;
    letter-spacing: var(--display-tracking); font-weight: 600; color: var(--brand-dark); margin: 8px 0 12px;
}
.wiz-aside .blurb { color: var(--body); margin: 0 0 20px; }

.why { background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: var(--r-lg); padding: 16px 18px; }
.why h4 { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-warm); margin: 0 0 6px; }
.why p { margin: 0; font-size: 14.5px; color: var(--body); }

.wiz-form { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: var(--r-xl); padding: 24px; }
.wiz-form h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--brand-dark); margin: 0 0 4px; }
.hint { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.foot-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; text-align: center; }

.seg { display: inline-flex; border: 1px solid var(--line-warm-3); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 4px; }
.seg button {
    font-family: inherit; font-size: 14px; font-weight: 600; padding: 8px 18px;
    border: 0; background: var(--surface); color: var(--body); cursor: pointer;
}
.seg button.on { background: var(--brand-dark); color: #fff; }

.qr-check { display: flex; gap: 14px; align-items: center; background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: var(--r-lg); padding: 14px; margin: 18px 0; }
.qr-check svg { width: 96px; height: 96px; display: block; background: #fff; border-radius: 6px; }
.qr-check b { display: block; font-family: var(--font-display); color: var(--brand-dark); font-size: 15px; }
.qr-check span { font-size: 13.5px; color: var(--body); }

.item-row { border: 1px solid var(--line-warm-2); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; background: var(--surface-warm); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.live { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.live .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-fg); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.live b { font-family: var(--font-display); font-size: 20px; color: var(--brand-dark); }

.link-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
    background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: var(--r-md); padding: 12px 14px; margin: 14px 0; }
.link-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; color: var(--brand-dark); word-break: break-all; }

.next-list { list-style: none; padding: 0; margin: 16px 0 0; }
.next-list li { padding: 8px 0; border-top: 1px solid var(--line-warm); color: var(--body); font-size: 14.5px; }

/* 10. Sharing + platform plug ------------------------------------------- */

.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.share-row .btn { border-color: var(--line-warm-3); }
.share-wa:hover { border-color: #25d366; color: #128c3e; }
.share-tg:hover { border-color: #229ed9; color: #1b7fae; }

.plug {
    margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-warm);
    font-size: .82rem; color: var(--muted); text-align: center;
}
.plug a { color: var(--brand-secondary); }

/* 11. Platform dashboard ------------------------------------------------- */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.stat .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--brand-dark); line-height: 1.1; }
.stat .k { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.stat .sub { font-size: .78rem; color: var(--brand-secondary); font-weight: 600; margin-top: 4px; }

.funnel { margin: 8px 0; }
.funnel-row { display: grid; grid-template-columns: 190px 1fr 46px; align-items: center; gap: 10px; padding: 5px 0; }
.funnel-row .lab { font-size: .9rem; color: var(--ink); }
.funnel-bar { background: #eef1f5; border-radius: 6px; height: 26px; overflow: hidden; }
.funnel-bar > span { display: block; height: 100%; background: var(--brand-secondary); border-radius: 6px; min-width: 2px; }
.funnel-row .val { text-align: right; font-weight: 700; color: var(--brand-dark); }
.funnel-row .val small { color: var(--muted); font-weight: 400; }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 8px 0; overflow-x: auto; }
.chart .col { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 30px; flex: 1; }
.chart .bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.chart .bars i { display: block; width: 9px; border-radius: 3px 3px 0 0; }
.chart .bars .s { background: var(--brand-secondary); }
.chart .bars .o { background: var(--brand-primary); }
.chart .wk { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.chart-legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.chart-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

.store-switch { margin: 0; }
.store-switch select {
    background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--r-sm); padding: 6px 10px; font-size: .9rem; font-family: inherit; max-width: 200px;
}
.store-switch select option { color: var(--ink); }

/* 12. Small screens ------------------------------------------------------ */

@media (max-width: 720px) {
    .mk-nav { display: none; }
    .hero { padding: 40px 0 16px; }
    .mk-section { padding: 40px 0; }
    .join { padding: 26px; }
    .two-col { grid-template-columns: 1fr; }
}

/* ==========================================================================
   5B. Buyer surface redesign (scoped to body.buyer)
   Ported from the Claude Design "Buyer Screens" doc. Everything here is
   namespaced under body.buyer so it never touches the admin / marketing /
   auth surfaces, which share body.site. Buyers are on phones, so the surface
   is a single narrow column, centred on desktop.
   ========================================================================== */

body.buyer { background: var(--paper); }
body.buyer h1 { color: var(--brand-dark); }

.bwrap { max-width: 460px; margin: 0 auto; padding: 0 16px; }

/* Sticky store header */
/* The top bar is the store's own Dark colour — what the Settings hint has
   always promised. A logo sits on a white tile (crests are drawn on white);
   a store without one shows its name in white beside the platform mark. */
.bhead {
    position: sticky; top: 0; z-index: 10;
    background: var(--brand-dark); color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.bhead-in { max-width: 460px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; min-height: 56px; }
.bhead-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 4px; border-radius: 12px; background: #fff; }
.bhead-logo img { display: block; height: 48px; width: auto; max-width: 160px; border-radius: 8px; }
.bmark { position: relative; display: inline-block; width: 22px; height: 14px; flex: none; }
.bmark i { position: absolute; top: 0; width: 14px; height: 14px; border-radius: 50%; display: block; }
.bmark i:first-child { left: 0; background: #fff; opacity: .92; }
.bmark i:last-child { left: 8px; background: var(--brand-primary); mix-blend-mode: screen; }
.bstore { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 17px; color: #fff; }
.bhead .lang-toggle summary { border-color: rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.bhead .lang-toggle summary:hover, .bhead .lang-toggle[open] summary { border-color: #fff; }

/* Content column */
body.buyer main.bmain { max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }

/* Notices (buyer-scoped so they sit in the warm palette) */
body.buyer .notice { border-radius: var(--r-md); }

/* Hero */
.bbanner { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line-warm-2); display: block; margin-bottom: 14px; }
.btitle { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: clamp(26px, 7vw, 30px); line-height: 1.08; color: var(--brand-dark); margin: 0 0 6px; text-wrap: pretty; }
.bsales { font-size: 14px; color: var(--body); margin: 0 0 14px; display: block; }

.bnote-edit { background: #fff7e6; border: 1px solid #f0d9a8; border-radius: var(--r-lg); padding: 13px 15px; margin: 0 0 14px; display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: #7a5a13; }
.bnote-edit strong { color: #5c430c; }

.bdesc { background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: var(--r-lg); padding: 14px 15px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--body); }
.bdesc :last-child { margin-bottom: 0; }

/* Social-proof nudges */
.bnudges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.bnudge { font-size: 12.5px; font-weight: 600; border-radius: var(--pill); padding: 7px 12px; border: 1px solid var(--line-warm-2); background: var(--surface-warm); color: var(--body); }
.bnudge.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
/* Urgency/promo accents tint from the store's own primary, so a themed store
   doesn't get a red chip with brand-coloured text. The flat values are the
   fallback for browsers without color-mix. */
.bnudge.hot { background: var(--bad-bg); color: var(--brand-primary-hover); border-color: var(--bad-line); }
.bnudge.hot { background: color-mix(in srgb, var(--brand-primary) 10%, #fff); border-color: color-mix(in srgb, var(--brand-primary) 28%, #fff); }

/* Section headings */
.bsec-h { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 18px; color: var(--brand-dark); margin: 22px 0 11px; }

/* Product rows */
.bprod { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: 16px; padding: 13px; margin-bottom: 11px; display: flex; gap: 13px; align-items: flex-start; }
.bprod.out { background: var(--surface-warm); opacity: .72; align-items: center; }
.bthumb { width: 72px; height: 72px; flex: none; border-radius: 12px; object-fit: cover; background: #f3ece1; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--muted-warm); }
.bprod .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bthumb-btn { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; line-height: 0; }
.bthumb-btn:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.bthumb-btn .bthumb { display: block; }

/* Product photo lightbox: one <dialog> per page, photos in a snap strip. */
.blightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(14, 20, 30, .94); color: #fff; }
.blightbox::backdrop { background: rgba(14, 20, 30, .94); }
.blightbox-strip { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.blightbox-strip { scrollbar-width: none; }
.blightbox-strip::-webkit-scrollbar { display: none; }
.blightbox-strip img { flex: none; width: 100vw; height: 100vh; object-fit: contain; scroll-snap-align: center; cursor: zoom-out; }
.blightbox-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font: 400 26px/44px var(--font-body); cursor: pointer; }
.blightbox-close:hover { background: rgba(255, 255, 255, .3); }
.blightbox-arrow { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font: 400 30px/44px var(--font-body); cursor: pointer; z-index: 1; }
.blightbox-arrow:hover { background: rgba(255, 255, 255, .3); }
.blightbox-arrow.is-prev { left: max(12px, env(safe-area-inset-left)); }
.blightbox-arrow.is-next { right: max(12px, env(safe-area-inset-right)); }
.blightbox-count { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .16); font: 600 13px var(--font-body); }
.bname { font-weight: 600; font-size: 15px; color: var(--brand-dark); display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.bprod.out .bname { color: var(--muted-warm); }
.btag { font-weight: 600; font-size: 11px; background: var(--bad-bg); color: var(--brand-primary-hover); border: 1px solid var(--bad-line); border-radius: var(--pill); padding: 3px 8px; }
.btag { background: color-mix(in srgb, var(--brand-primary) 10%, #fff); border-color: color-mix(in srgb, var(--brand-primary) 28%, #fff); }
.bprice { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--brand-dark); }
.bprod.out .bprice { color: var(--muted-warm); }
.bwas { font-size: 13px; color: var(--muted-warm); text-decoration: line-through; margin-left: 8px; font-family: var(--font-body); font-weight: 400; }
.bpdesc { font-size: 13px; line-height: 1.45; color: var(--body); }
.blow { font-weight: 600; font-size: 12.5px; color: var(--brand-primary-hover); }
.bsold { align-self: flex-start; font-weight: 600; font-size: 12px; background: #efe9df; color: var(--muted-warm); border-radius: var(--pill); padding: 4px 10px; }

/* Quantity stepper (keeps the .qty-input / data-step JS hooks) */
body.buyer .stepper { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; background: var(--surface-warm); border: 1px solid var(--line-warm-3); border-radius: var(--pill); padding: 3px; margin-top: 2px; overflow: visible; }
body.buyer .stepper button { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; background: #fff; color: var(--brand-dark); }
body.buyer .stepper button[data-step="1"] { background: var(--brand-dark); color: #fff; }
body.buyer .stepper button[data-step="1"]:hover { background: var(--brand-secondary); }
body.buyer .stepper button[data-step="-1"]:hover { background: #f3ece1; }
body.buyer .stepper input.qty-input { width: 34px; flex: none; min-width: 34px; text-align: center; border: 0; border-radius: 0; padding: 0; background: transparent; font: 600 15px var(--font-body); color: var(--brand-dark); }

/* Collection options */
.bopt { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line-warm-3); border-radius: var(--r-lg); padding: 14px; margin-bottom: 8px; cursor: pointer; font-weight: 400; }
.bopt:has(input:checked) { border: 2px solid var(--brand-dark); padding: 13px; }
.bopt input { accent-color: var(--brand-dark); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.bopt .lab { display: flex; flex-direction: column; gap: 3px; }
.bopt .lab b { font-weight: 600; font-size: 15px; color: var(--brand-dark); }
.bopt .lab span { font-size: 13px; color: var(--body); }

/* Buyer detail fields */
.bfield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.bfield > span { font-weight: 600; font-size: 12.5px; color: var(--muted-warm); }
/* Returning buyer: the notice under the phone field, and the fields it
   stands in for. Status green, never the brand colour. */
.bsaved {
    display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between;
    background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-fg);
    border-radius: var(--r-md); padding: 10px 12px; font-size: 13.5px; font-weight: 600;
}
.bsaved-alt {
    background: none; border: 0; padding: 0; cursor: pointer; font: 600 13px var(--font-body);
    color: var(--ok-fg); text-decoration: underline; text-underline-offset: 2px;
}
.binput:disabled { background: var(--bg-cool); color: var(--muted); cursor: not-allowed; }

/* Saved-details pages (buyer/profile-save, profile-forget) and the order-page card */
.bconsent { padding-top: 22px; padding-bottom: 40px; }
.bconsent h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 24px; color: var(--brand-dark); }
.bconsent .blede { margin: 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.bkv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14.5px; }
.bkv dt { color: var(--muted-warm); font-weight: 600; }
.bkv dd { margin: 0; color: var(--ink); }
.bcheck { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.bcheck input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; }
.berror { margin: 8px 0 0; font-size: 13.5px; color: var(--bad-fg); font-weight: 600; }
.bconsent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.bconsent-actions .bcta { flex: 0 1 auto; }
.bsavecard-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.bsavecard-links a { color: var(--brand-dark); }
body.buyer .binput { font: 400 15px var(--font-body); color: var(--brand-dark); background: #fff; border: 1px solid var(--line-warm-3); border-radius: 12px; padding: 13px 14px; }
body.buyer .binput:focus { outline: none; border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(47, 60, 147, .12); }
body.buyer textarea.binput { min-height: 74px; resize: vertical; }

/* Sticky order bar */
.bbar { position: sticky; bottom: 0; z-index: 8; margin: 22px -16px 0; padding: 12px 16px 14px; background: rgba(251, 247, 241, .93); backdrop-filter: blur(10px); border-top: 1px solid var(--line-warm-2); display: flex; flex-direction: column; gap: 8px; }
.bbar-row { display: flex; align-items: center; gap: 13px; }
.bbar .tot { display: flex; flex-direction: column; gap: 1px; }
.bbar .tot small { font-size: 12px; color: var(--muted-warm); }
.bbar .tot b { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 24px; color: var(--brand-dark); }
.bcta { flex: 1; font: 600 16px var(--font-body); background: var(--brand-primary); color: #fff; border: 0; border-radius: var(--pill); padding: 15px 18px; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(218, 28, 17, .8); }
.bcta:hover { background: var(--brand-primary-hover); }
.bcta:disabled { opacity: .55; cursor: default; box-shadow: none; }
.bbar-sub { text-align: center; font-size: 12px; color: var(--muted-warm); }

.bplug { padding: 22px 0 6px; text-align: center; font-size: 12.5px; color: var(--muted-warm); }
.bplug a { color: var(--brand-secondary); }

/* ---- Pay / confirm page ---- */
.bhead-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.bhead-row h1 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 27px; }
.bstatus { font-weight: 600; font-size: 12.5px; border-radius: var(--pill); padding: 5px 12px; }
.bstatus.pending { background: #fff7e6; color: #7a5a13; border: 1px solid #f0d9a8; }
.bstatus.paid { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }
.bstatus.cancelled { background: #efe9df; color: var(--muted-warm); border: 1px solid var(--line-warm-3); }
.bthanks { font-size: 14px; line-height: 1.5; color: var(--ok-fg); font-weight: 600; margin: 0 0 4px; }

.bsum { background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: 16px; overflow: hidden; margin: 16px 0 10px; }
.bsum-h { padding: 13px 15px; border-bottom: 1px solid var(--line-warm-2); font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 16px; color: var(--brand-dark); }
.bsum-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 15px; font-size: 14px; color: var(--body); }
.bsum-row span:last-child { color: var(--ink); }
.bsum-row.void span { color: var(--muted-warm); text-decoration: line-through; }
.bsum-total { display: flex; justify-content: space-between; gap: 12px; padding: 13px 15px; background: #fff; border-top: 1px solid var(--line-warm-2); }
.bsum-total .k { font-weight: 600; font-size: 14.5px; color: var(--brand-dark); }
.bsum-total .v { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 19px; color: var(--brand-dark); }
.bsum-total.void .k, .bsum-total.void .v { color: var(--muted-warm); }
.bcollect { display: flex; gap: 7px; align-items: baseline; margin: 0 0 4px; }
.bcollect b { font-weight: 600; font-size: 13.5px; color: var(--muted-warm); }
.bcollect span { font-size: 13.5px; color: var(--body); }

/* PayNow card */
.bpay { background: #fff; border: 2px solid var(--brand-dark); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 34px -18px rgba(3, 37, 76, .5); margin: 18px 0 0; }
.bpay-head { background: var(--brand-dark); padding: 14px 16px; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 18px; color: #fff; }
.bpay-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.bpay-body .pex { font-size: 13.5px; line-height: 1.5; color: var(--body); text-align: center; text-wrap: pretty; }
.bqr { width: 212px; max-width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid var(--line-warm-2); border-radius: 16px; padding: 12px; }
.bqr svg { width: 100%; height: 100%; display: block; }
.bfacts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bfact { background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: 14px; padding: 12px 13px; display: flex; flex-direction: column; gap: 3px; }
.bfact small { font-weight: 600; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-warm); }
.bfact b { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 20px; color: var(--brand-dark); word-break: break-word; }
.bpayee { font-size: 13px; color: var(--muted-warm); text-align: center; }

/* PayNow condensed (order already has a proof) */
.bpay-mini { background: #fff; border: 1px solid var(--line-warm-2); border-radius: 18px; overflow: hidden; margin: 18px 0 0; }
.bpay-mini-h { background: var(--surface-warm); padding: 12px 16px; border-bottom: 1px solid var(--line-warm-2); display: flex; align-items: center; justify-content: space-between; }
.bpay-mini-h h2 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 16px; color: var(--brand-dark); }
.bpay-mini-h span { font-size: 12px; color: var(--muted-warm); }
.bpay-mini-b { padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.bpay-mini-b .mini-qr { width: 88px; height: 88px; flex: none; background: #fff; border: 1px solid var(--line-warm-2); border-radius: 12px; padding: 6px; }
.bpay-mini-b .mini-qr svg { width: 100%; height: 100%; display: block; }

/* Cards on the pay page */
.bcard { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: 16px; padding: 16px; margin: 16px 0 0; }
.bcard.warm { background: var(--surface-warm); }
.bcard h2 { margin: 0 0 11px; font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 16px; color: var(--brand-dark); }
.bcard p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.bupload { border: 1px dashed var(--line-warm-3); display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.bupload input[type=file] { font-size: 13px; }
/* Proof picker: the real file input stays usable without JS; with JS it is
   visually hidden behind the two buttons and the form submits on selection. */
.bproof-form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; width: 100%; }
.bproof-file { font-size: 13px; max-width: 100%; }
.bproof-form.has-js .bproof-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.bproof-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bproof-status { font-size: 13px; color: var(--muted-warm); }
.bproof-ok .bproof-form { margin-top: 10px; }
.bghost-navy { font: 600 15px var(--font-body); background: #fff; color: var(--brand-dark); border: 1.5px solid var(--brand-dark); border-radius: var(--pill); padding: 13px 20px; cursor: pointer; text-decoration: none; display: inline-block; }
.bghost-navy:hover { background: #f3ece1; }
.bghost-soft { font: 600 15px var(--font-body); background: var(--surface-warm); color: var(--brand-dark); border: 1.5px solid var(--line-warm-3); border-radius: var(--pill); padding: 13px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
.bghost-soft:hover { border-color: var(--brand-dark); }
.bwarn { font-size: 13px; line-height: 1.5; color: var(--muted-warm); text-wrap: pretty; }

.bproof-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 16px; padding: 16px; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.bproof-ok .row { display: flex; gap: 13px; align-items: flex-start; }
.bproof-ok img, .bproof-ok .ph { width: 58px; height: 80px; flex: none; border-radius: 10px; object-fit: cover; background: #fff; border: 1px solid var(--ok-line); }
.bproof-ok .row div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bproof-ok b { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 16px; color: var(--ok-fg); }
.bproof-ok .msg { font-size: 13.5px; line-height: 1.5; color: var(--ok-fg); text-wrap: pretty; }
.bproof-ok .replace { align-self: flex-start; font: 600 14.5px var(--font-body); background: #fff; color: var(--ok-fg); border: 1.5px solid var(--ok-line); border-radius: var(--pill); padding: 12px 18px; cursor: pointer; }
.block { display: flex; gap: 11px; align-items: flex-start; }
.block .ic { font-size: 14px; line-height: 1.2; }
.bkeep { background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: 14px; padding: 13px 15px; margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted-warm); }

/* Share card (restyles partials/share buttons) */
body.buyer .share-row { display: flex; gap: 8px; margin: 0; }
body.buyer .share-row .btn { flex: 1; border-radius: var(--pill); padding: 12px 8px; font-size: 13.5px; font-weight: 600; text-align: center; }
body.buyer .share-row .share-wa { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
body.buyer .share-row .share-tg { background: #eef0fa; color: var(--brand-secondary); border-color: #ccd2f0; }
body.buyer .share-row button[data-copy] { background: var(--surface-warm); color: var(--brand-dark); border-color: var(--line-warm-3); }

@media (max-width: 460px) {
    .bqr { width: 190px; }
}

/* ==========================================================================
   5C. Buyer responsive — tablet (>=720) + desktop (>=960)
   Layers a two-column layout (content + sticky rail) on top of the mobile
   base above. Ported from the Claude Design desktop/tablet buyer screens.
   Breakpoint at 960px: the rail unsticks and stacks below.
   ========================================================================== */

/* Header gains a right-side aside (desktop only). */
.bhead-in { justify-content: space-between; }
.bhead-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bhead-aside { display: none; align-items: center; gap: 12px; }
.bhead-copy { font: 600 13.5px var(--font-body); background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--pill); padding: 9px 16px; cursor: pointer; }
.bhead-copy:hover { border-color: #fff; }
.bhead-note { font-size: 13px; color: rgba(255, 255, 255, .78); }

/* Grid wrappers are plain blocks on mobile (everything stacks in source order). */
.bcol-items { min-width: 0; }
.bitems { display: grid; grid-template-columns: 1fr; gap: 11px; }
.bopts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.bfields { display: grid; grid-template-columns: 1fr; gap: 11px; }
.bprod, .bopt, .bfield { margin-bottom: 0; }
.breassure { display: none; }
.bcta-note { display: none; }

/* Pay-page grouping wrappers. bpay-left is display:contents on mobile so its
   children (summary, secondary) interleave with the action block via `order`;
   on desktop it becomes a real flex column that groups them into one stack. */
.blayout--pay { display: flex; flex-direction: column; }
.bpay-left { display: contents; }
.b-summary { order: 1; }
.b-action { order: 2; display: flex; flex-direction: column; }
.b-secondary { order: 3; }

/* --- Tablet: wider column, 2-up grids, CTA becomes an in-flow card --- */
@media (min-width: 720px) {
    .bhead-in, body.buyer main.bmain { max-width: 900px; }
    .bhead-in { padding: 8px 24px; }
    .bhead-logo img { height: 52px; }
    body.buyer main.bmain { padding: 24px 24px 44px; }

    .bbanner { height: 220px; object-fit: cover; }
    .btitle { font-size: 34px; }

    .bitems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .bopts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .bfields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    /* CTA: from sticky bottom bar to a normal card. */
    .bbar {
        position: static; margin: 22px 0 0; padding: 18px;
        background: var(--surface); border: 1px solid var(--line-warm-2);
        border-radius: 18px; backdrop-filter: none; box-shadow: var(--shadow-card);
        flex-direction: row; align-items: center; justify-content: space-between; gap: 20px;
    }
    .bbar-row { flex: 1; }
    .bcta { flex: none; padding: 15px 28px; }
}

/* --- Desktop: two columns with a sticky rail --- */
@media (min-width: 960px) {
    .bhead-in, body.buyer main.bmain { max-width: 1120px; }
    body.buyer main.bmain { padding: 28px 32px 44px; }
    .bhead-aside { display: flex; }

    .btitle { font-size: 44px; }
    .bbanner { height: 300px; }

    /* Order page: content + 380px rail. */
    .blayout:not(.blayout--pay) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
    .bcol-rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
    .bitems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .bopts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bfields { grid-template-columns: 1fr; }   /* narrow rail: single column */

    /* Details becomes a headed card in the rail. */
    .bdetails { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: 18px; box-shadow: var(--shadow-card); overflow: hidden; }
    .bdetails .bsec-h.bdetails-h { margin: 0; padding: 15px 18px; border-bottom: 1px solid var(--line-warm-2); background: var(--surface-warm); font-size: 17px; }
    .bdetails .bfields { padding: 16px 18px; }

    /* CTA: stacked card in the rail — Total on its own row, full-width button below. */
    .bbar { flex-direction: column; align-items: stretch; margin: 0; gap: 12px; }
    .bbar-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .tot { flex-direction: row; align-items: baseline; justify-content: space-between; }
    .bcta { width: 100%; }
    .bcta-note { display: block; text-align: center; line-height: 1.5; font-size: 12.5px; color: var(--muted-warm); }
    .breassure { display: block; background: var(--surface-warm); border: 1px solid var(--line-warm-2); border-radius: 14px; padding: 13px 15px; font-size: 12.5px; line-height: 1.5; color: var(--muted-warm); }

    /* Pay page: a content column + a 420px action rail (only when there's an
       action to take). bpay-left groups summary + secondary so the left side is
       one continuous stack, independent of the taller rail's height. */
    .blayout--pay.has-rail { flex-direction: row; align-items: flex-start; gap: 32px; }
    .blayout--pay.has-rail .bpay-left { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 12px; }
    .blayout--pay.has-rail .b-action { width: 420px; flex: none; position: sticky; top: 92px; gap: 12px; }
    /* Paid / cancelled have no rail — keep them a comfortable reading width. */
    .blayout--pay:not(.has-rail) { max-width: 640px; margin-inline: auto; }

    .bqr { width: 248px; }
    .bpay-head { font-size: 20px; }
}

/* 13. Staging banner ------------------------------------------------------
   Shown only when STAGING_MODE is on. Loud enough that a screenshot from
   staging is never mistaken for the live site, quiet enough to sit above a
   design review without distorting it. */

.staging-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 10px;
    padding: 7px 14px;
    background: #ffe8a3;
    border-bottom: 1px solid #e0bd53;
    color: #4a3a06;
    font-size: .82rem;
    line-height: 1.35;
    text-align: center;
}

.staging-bar strong {
    padding: 2px 8px;
    border-radius: var(--pill);
    background: #4a3a06;
    color: #ffe8a3;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 560px) {
    .staging-bar span { font-size: .78rem; }
}

/* --- Admin: suppliers, price lists, offers ---------------------------------
   Platform-admin screens (admin/suppliers/*). Rows reuse .prodlist; an editable
   row is a <details> whose summary IS the row. */

.supsection { margin: 26px 0 4px; }
.supsection + .hint { margin: 0 0 10px; }
.supcard { margin: 12px 0 0; max-width: 760px; }
.supcard .cardtitle { margin-bottom: 12px; }
.suplist { max-width: 900px; }
.suprow {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 14px; align-items: center;
    padding: 13px 14px; border-bottom: 1px solid #eef0f3; color: var(--ink); text-decoration: none;
}
.suplist > :last-child, .suplist > :last-child > .suprow:last-child { border-bottom: 0; }
.suprow--link:hover { background: var(--bg-cool); }
.suprow-main { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.suprow-main small { font-weight: 400; font-size: 13px; color: var(--muted); }
.suprow-main img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.suprow-meta { font-size: 13.5px; color: var(--body); }
.suprow-head { display: none; }
.supmargin { color: var(--ok-fg); font-weight: 600; }
.supdetails { border-bottom: 1px solid #eef0f3; }
.supdetails > summary { list-style: none; cursor: pointer; border-bottom: 0; }
.supdetails > summary::-webkit-details-marker { display: none; }
.supdetails > summary:hover, .supdetails[open] > summary { background: var(--bg-cool); }
.supdetails.is-off .suprow-main { color: var(--muted); }
.supform { display: flex; flex-direction: column; gap: 13px; align-items: flex-start; }
.supform > .supgrid, .supform > label.stack { align-self: stretch; }
.supform--in { padding: 14px; background: var(--surface-warm); border-top: 1px solid #eef0f3; align-items: stretch; }
.supform--in > form:last-child { align-self: flex-start; }
.supform--row { flex-direction: row; flex-wrap: wrap; align-items: center; }
.supform--row select { flex: 1 1 240px; }
.supgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.supphotos { display: flex; flex-wrap: wrap; gap: 12px; }
.supphotos img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }

@media (min-width: 720px) {
    .suprow { grid-template-columns: minmax(0, 1fr) auto auto; }
    .suprow--prices { grid-template-columns: minmax(0, 1fr) 110px 130px 110px; }
    .suprow--prices > span + span { text-align: right; }
    .suprow-head {
        display: grid; background: var(--bg-cool); font-size: 11.5px; font-weight: 700;
        letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
    }
    .supgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .supgrid-wide { grid-column: 1 / -1; }
}

/* Leader: a supplier offer and its delivery dates (admin/offers/*). */
.offerfacts { font-size: 14px; color: var(--body); margin: 0 0 4px; max-width: 760px; }
.offerterms { margin: 0; white-space: pre-line; color: var(--body); font-size: 14.5px; }
.offerdates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 900px; }
.offerdate { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.offerdate-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-self: stretch; }
.offerdate-head small { font-weight: 400; font-size: 13px; color: var(--muted); }
.offerdate .hint { margin: 0; }
.offertake { align-self: stretch; }
.offertake > summary { list-style: none; display: inline-block; cursor: pointer; }
.offertake > summary::-webkit-details-marker { display: none; }
.offertake[open] > summary { display: none; }
.offertake .supform { margin-top: 6px; }
@media (max-width: 719px) {
    .suprow--prices > [data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: 13px; }
}
@media (min-width: 720px) {
    .offerdates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Purchase order: the Summary card, the tie notices, and the print page. */
.pocard-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pocard-actions a.chip { text-decoration: none; color: inherit; }
.pofacts { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--body); }
.pofacts b { display: inline-block; min-width: 74px; font-weight: 600; color: var(--brand-dark); }
.porow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; padding: 13px 16px; border-bottom: 1px solid #eef0f3; align-items: baseline; }
.porow-head { display: none; }
.porow-name { grid-column: 1 / -1; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.porow-num, .porow-qty, .porow-line { font-size: 14px; color: var(--body); }
.porow [data-label]::before { content: attr(data-label) ' '; color: var(--muted); font-size: 12.5px; }
.porow-qty { font-weight: 700; color: var(--brand-dark); }
.porow-line { font-weight: 600; color: var(--brand-dark); }
.porow-num:empty { display: none; }
.porow-total { background: var(--bg-cool); border-top: 1px solid var(--border); }
.pohint { padding: 0 16px 12px; margin: 0; }
.potie { background: var(--surface-warm); border: 1px solid var(--line-warm-2); color: var(--body); max-width: 900px; }
.prow-cost { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
@media (min-width: 720px) {
    .porow { grid-template-columns: minmax(0, 1fr) 90px 120px 100px 120px; gap: 0 14px; padding: 14px 18px; align-items: center; }
    .porow-head { display: grid; background: var(--bg-cool); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 18px; }
    .porow-head span:not(:first-child), .porow-num, .porow-qty, .porow-line { text-align: right; }
    .porow-name { grid-column: auto; font-size: 16px; }
    .porow [data-label]::before { content: none; }
    .porow-num { font-size: 15px; display: block; }
    .porow-num:empty { display: block; }
    .porow-qty { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
    .porow-line { font-size: 16px; }
    .porow-total .porow-qty { font-size: 22px; }
}
.poprint { background: #fff; color: #111; font-family: var(--font-body); }
.poprint main { max-width: 760px; margin: 0 auto; padding: 28px 22px 40px; }
.poprint h1 { font-family: var(--font-display); font-size: 28px; margin: 0; letter-spacing: var(--display-tracking); }
.poprint-sub { margin: 2px 0 18px; color: #444; }
.poprint-bar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.poprint dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 5px 12px; margin: 0 0 20px; font-size: 15px; }
.poprint dt { font-weight: 600; } .poprint dd { margin: 0; }
.poprint table { width: 100%; border-collapse: collapse; font-size: 15px; }
.poprint th, .poprint td { padding: 9px 8px; border-bottom: 1px solid #ccc; text-align: right; }
.poprint th:first-child, .poprint td:first-child { text-align: left; }
.poprint thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 2px solid #111; }
.poprint tfoot td { font-weight: 700; border-top: 2px solid #111; border-bottom: 0; }
.poprint-foot { margin-top: 18px; font-size: 12.5px; color: #555; }
@media print { .poprint-bar { display: none; } .poprint main { padding: 0; } }

/* Supplier back office (layouts/supplier, supplier/*). */
.ahead-who { color: rgba(255,255,255,.7); font-size: 13.5px; margin-right: 4px; }
.supdate { margin: 0 0 14px; max-width: 900px; }
.supleader { border-top: 1px solid var(--border); }
.supleader:first-of-type { border-top: 0; }
.supleader-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 6px; }
.supleader-head b { font-size: 15.5px; color: var(--brand-dark); }
.supleader-head span { font-size: 13px; color: var(--body); }

/* Purchase order lifecycle: the leader's status card and the supplier's order block. */
.postatus { margin-bottom: 14px; }
.poactions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; }
.poactions .supform { align-items: flex-start; width: 100%; }
.pohint-notice { margin: 10px 16px; }
.poextra { width: 64px; padding: 6px 8px; text-align: right; }
.posend .porow-head span:nth-child(3) { display: block; text-align: right; }
.pohistory { border-top: 1px solid var(--border); }
.pohistory > summary { padding: 10px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.suporder { border-top: 1px dashed var(--border); background: var(--surface-warm); }
.suporder-head { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 6px; }
.suporder-head b { color: var(--brand-dark); font-size: 15px; }
.suporder-head small { font-size: 13px; color: var(--body); }
.suporder-head em { font-style: normal; color: var(--bad-fg); }
@media (max-width: 719px) { .posend .porow-head { display: none; } .poextra { width: 80px; } }

/* A sale with a minimum: the pledge bar (buyer pages) and its admin bits. */
.bgoal { background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.bgoal-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.bgoal-head b { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking); font-size: 16px; color: var(--brand-dark); }
.bgoal-head span { font-size: 13.5px; font-weight: 600; color: var(--body); }
.bgoal-bar { height: 10px; border-radius: 999px; background: #f3ece1; overflow: hidden; }
.bgoal-bar i { display: block; height: 100%; background: var(--brand-primary); border-radius: 999px; transition: width .3s; }
.bgoal.is-reached .bgoal-bar i { background: var(--ok-fg); }
.bgoal p { margin: 0; font-size: 14px; color: var(--body); }
.bgoal small { font-size: 12px; color: var(--muted-warm); }
.bgoal small a { color: inherit; }
.bgoal.is-failed { background: var(--bad-bg); border-color: var(--bad-line); }
.bgoal.is-failed .bgoal-head, .bgoal.is-failed p { color: var(--bad-fg); }
.bgoal-wrap { margin: 0 0 16px; }
.bgoal-nothing { margin: 0 0 10px; font-size: 15px; color: var(--body); }
.bgoal-nothing b { color: var(--brand-dark); }
.minimum .hint.is-good { color: var(--ok-fg); } .minimum .hint.is-bad { color: var(--bad-fg); }
.minimum-help { font-size: 13.5px; color: var(--body); }
.minimum-help > summary { cursor: pointer; color: var(--brand-secondary); font-weight: 600; }
.minimum-help p { margin: 8px 0 0; }
.calloff { margin-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.evgoal { font-size: 13.5px; font-weight: 600; color: var(--body); padding: 6px 0 0; }
.evgoal.is-good { color: var(--ok-fg); } .evgoal.is-bad { color: var(--bad-fg); }

/* --- /suppliers ----------------------------------------------------------
   The supplier recruiting page (resources/views/suppliers.blade.php). Sits on
   the marketing surface and reuses .hero, .mk-section, .tile, .btn, .eyebrow.
   Everything new is prefixed sp-. The order sheet, phone and price list are
   illustrations of the app's own UI with demo data. */

.sp-wa { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; }
.sp-wa.block { display: flex; }
.sp-wa svg { flex: none; }
.sp-header .mk-nav { margin-right: 4px; }
.sp-header-wa { padding: 11px 16px; font-size: 14px; }

.sp-hero { padding: 56px 0 60px; }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.sp-hero h1 { font-size: clamp(34px, 4.4vw, 50px); }
html[lang^="zh"] .sp-hero h1 { letter-spacing: 0; line-height: 1.18; }
.sp-hero .lede { font-size: clamp(16.5px, 1.6vw, 17.5px); margin-bottom: 26px; max-width: none; }
.sp-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }

.sp-show { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sp-show-row { display: flex; align-items: center; gap: 16px; }
.sp-show-row .sp-sheet { flex: 1 1 auto; min-width: 0; }
.sp-caption { font-size: 12.5px; color: var(--muted-warm); text-align: right; }

/* Order sheet: the admin Summary "Bulk order for vendor" card. */
.sp-sheet {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: var(--shadow-lg); color: var(--ink); text-align: left;
}
.sp-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; }
.sp-sheet-head b {
    display: block; font-family: var(--font-display); font-weight: 600;
    letter-spacing: var(--display-tracking); font-size: 15.5px; color: var(--brand-dark);
}
.sp-sheet-head small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.sp-chip {
    flex: none; border: 1px solid var(--line-warm-3); border-radius: var(--pill);
    padding: 6px 11px; font-size: 11px; font-weight: 600; color: var(--brand-dark); white-space: nowrap;
}
.sp-sheet-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 76px 96px; align-items: center;
    padding: 13px 15px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
}
.sp-sheet-row span + span { text-align: right; font-weight: 400; color: var(--body); font-size: 13px; }
.sp-sheet-row .sp-qty { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--brand-dark); }
.sp-sheet-row--head {
    padding: 9px 15px; background: var(--bg-cool); font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.sp-sheet-row--head span + span { font-size: 10px; font-weight: 700; color: var(--muted); }
html[lang^="zh"] .sp-sheet-row--head { letter-spacing: .03em; }
.sp-sheet-row--total { background: var(--bg-cool); border-top-width: 2px; }
.sp-sheet-row--total .sp-qty { font-size: 19px; }
.sp-sheet-drop {
    display: flex; align-items: center; gap: 8px; padding: 11px 15px;
    border-top: 1px solid var(--border); font-size: 11.5px; color: var(--body);
}
.sp-sheet-drop svg { flex: none; color: var(--brand-secondary); }

/* Buyer page in a phone frame. Shown from tablet width up. */
.sp-phone {
    display: none; width: 184px; flex: none; border-radius: 30px; background: var(--brand-dark);
    padding: 7px; box-shadow: 0 22px 44px -18px rgba(3, 37, 76, .55); text-align: left;
}
.sp-phone-screen { border-radius: 24px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.sp-phone-bar { background: var(--brand-dark); color: #fff; padding: 11px 13px; font-size: 12.5px; font-weight: 600; }
.sp-phone-body { padding: 13px; display: flex; flex-direction: column; gap: 9px; }
.sp-phone-title {
    font-family: var(--font-display); font-weight: 600; letter-spacing: var(--display-tracking);
    font-size: 19px; line-height: 1.15; color: var(--brand-dark);
}
.sp-phone-body small { font-size: 10.5px; color: var(--muted-warm); }
.sp-phone-sub { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--brand-dark); margin-top: 3px; }
.sp-phone-item {
    display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line-warm-2);
    border-radius: 12px; padding: 10px;
}
.sp-phone-item i { width: 44px; height: 44px; flex: none; border-radius: 9px; background: #f3ece1; display: block; }
.sp-phone-item > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-phone-name { font-size: 11.5px; font-weight: 600; color: var(--brand-dark); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sp-phone-name em {
    font-style: normal; font-size: 9.5px; font-weight: 600; color: var(--brand-primary-hover);
    background: var(--bad-bg); border: 1px solid var(--bad-line); border-radius: var(--pill); padding: 2px 7px;
    white-space: nowrap;
}
.sp-phone-item b { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--brand-dark); }
.sp-phone-foot { display: flex; align-items: center; gap: 10px; padding: 10px 13px 13px; border-top: 1px solid var(--line-warm-2); }
.sp-phone-foot > span:first-child { display: flex; flex-direction: column; }
.sp-phone-foot small { font-size: 9.5px; color: var(--muted-warm); }
.sp-phone-foot b { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--brand-dark); }
.sp-phone-btn {
    flex: 1 1 auto; text-align: center; background: var(--brand-primary); color: #fff;
    border-radius: var(--pill); padding: 9px 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* Price list: what the supplier hands over. */
.sp-list {
    width: 100%; box-sizing: border-box; background: var(--surface);
    border: 1px solid var(--line-warm-2); border-radius: 10px; padding: 11px 13px; text-align: left;
}
.sp-list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.sp-list-head b { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--brand-dark); }
.sp-list-head small { font-size: 10.5px; color: var(--muted-warm); }
.sp-list-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 34px 60px; gap: 6px; padding: 6px 0;
    border-top: 1px solid var(--line-warm); font-size: 11px; color: var(--ink);
}
.sp-list-row span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-list-row span + span { text-align: right; color: var(--body); }
.sp-list-row span:last-child { font-weight: 600; color: var(--muted-warm); }
.sp-list-row--head {
    border-top: 0; padding: 4px 0; font-size: 9.5px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.sp-list-row--head span:last-child { color: var(--muted); font-weight: 700; }

/* One supplier, many leaders: two small diagrams and three points. */
.sp-many-sub { max-width: 760px; }
.sp-many { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sp-many-panel {
    margin: 0; background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: var(--r-xl);
    padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 10px;
}
.sp-many-panel figcaption b { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: var(--display-tracking); color: var(--muted-warm); }
.sp-many-panel--with { border-color: var(--brand-dark); box-shadow: var(--shadow-sm); }
.sp-many-panel--with figcaption b { color: var(--brand-dark); }
.sp-many-panel p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.sp-diagram { display: block; width: 100%; height: auto; max-width: 460px; margin: 0 auto; }
.sp-d-you { fill: var(--brand-dark); }
.sp-d-leader { fill: var(--surface); stroke: var(--brand-dark); stroke-width: 1.5; }
.sp-d-buyer { fill: #f3ece1; stroke: var(--line-warm-3); stroke-width: 1.5; }
.sp-d-messy { stroke: var(--bad-line); stroke-width: 1.4; }
.sp-d-strong { stroke: var(--brand-primary); stroke-width: 3; stroke-linecap: round; }
.sp-d-thin { stroke: var(--line-warm-3); stroke-width: 1.3; }
.sp-d-label { font: 600 13.5px var(--font-body); fill: var(--brand-dark); }
.sp-d-label--you { fill: #fff; }
.sp-d-caption { font: 500 12.5px var(--font-body); fill: var(--muted-warm); }
.sp-many-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sp-many-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 15.5px; color: var(--brand-dark); }
.sp-many-points svg { flex: none; margin-top: 2px; color: var(--brand-primary); }
@media (min-width: 720px) {
    .sp-many { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .sp-many-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* Step illustrations. */
.sp-steps { margin-top: 14px; }
.sp-illus {
    height: 168px; border-radius: 10px; background: var(--surface-warm); border: 1px solid var(--line-warm);
    display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box;
    overflow: hidden; margin-bottom: 16px;
}
.sp-illus--top { align-items: flex-start; }
.sp-illus--desk { display: none; }
.sp-scale { flex: none; transform-origin: top center; }
.sp-scale--phone { transform: scale(.78); margin-top: 4px; }
.sp-scale--phone .sp-phone { display: block; width: 236px; }
.sp-scale--sheet { width: 440px; transform: scale(.68); margin-top: 2px; }

/* What you get / what it costs. */
.sp-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sp-card {
    background: var(--surface); border: 1px solid var(--line-warm-2); border-radius: var(--r-xl);
    padding: 24px; display: flex; flex-direction: column; gap: 6px;
}
.sp-card .eyebrow { margin-bottom: 8px; }
.sp-card--dark { background: var(--brand-dark); border-color: var(--brand-dark); }
.sp-card--dark .eyebrow { color: #9db0c9; }
.mk-section .sp-card--dark h2 { color: #fff; font-size: clamp(25px, 2.8vw, 32px); }
.sp-card--dark p { margin: 0; color: #c3cfdd; font-size: 16px; line-height: 1.55; }
.sp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--body); }
.sp-checks svg { flex: none; margin-top: 3px; color: var(--brand-primary); }

.sp-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16.5px;
    font-weight: 600; color: var(--brand-secondary); text-underline-offset: 3px;
}
.sp-link:hover { color: var(--brand-dark); }

/* Who's behind it. */
.sp-close { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.sp-who { display: flex; flex-direction: column; gap: 8px; }
.sp-who p { margin: 6px 0 0; font-size: 15.5px; color: var(--body); }
.sp-who p b { color: var(--brand-dark); white-space: nowrap; }
.sp-person { display: flex; align-items: center; gap: 18px; }
.sp-avatar { width: 88px; height: 88px; flex: none; border-radius: 50%; object-fit: cover; display: block; }
.sp-avatar--mark {
    display: flex; align-items: center; justify-content: center; background: var(--surface-warm);
    border: 1px solid var(--line-warm-2); box-sizing: border-box;
}
.sp-avatar--mark .logo-mark { transform: scale(1.5); }
.sp-person-text { display: flex; flex-direction: column; gap: 3px; }
.sp-person-text strong {
    font-family: var(--font-display); font-weight: 600; font-size: 22px;
    letter-spacing: var(--display-tracking); color: var(--brand-dark);
}
.sp-person-text span { font-size: 14.5px; color: var(--body); }
.sp-person-text small { font-size: 13px; color: var(--muted-warm); }
.sp-close-cta { display: flex; flex-direction: column; gap: 12px; }
.sp-foot { font-size: 13px; color: var(--muted-warm); }

@media (max-width: 720px) {
    .sp-header-wa { display: none; }
    .sp-cta { align-items: stretch; }
    .sp-cta .btn { text-align: center; }
    .sp-caption { text-align: center; }
}
@media (min-width: 720px) {
    .sp-phone { display: block; }
    .sp-illus--desk { display: flex; }
    .sp-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .sp-card { padding: 32px; }
    .sp-close { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
}
@media (min-width: 1000px) {
    .sp-hero-grid { grid-template-columns: minmax(0, 1fr) 570px; gap: 40px; }
}

/* 14. Content pages (FAQ, guides, privacy) --------------------------------
   Marketing layout; long-form reading at a comfortable measure. */
.page-hero { padding-bottom: 0; }
.page-hero .lede { max-width: 680px; }
.faq h2 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--brand-dark); margin: 0 0 6px; }
.more-link { margin: 22px 0 0; color: var(--body); }
.more-link a, .prose a { color: var(--brand-secondary); }

.prose { max-width: 720px; padding-top: 56px; padding-bottom: 8px; color: var(--body); font-size: 16.5px; line-height: 1.65; }
.prose h1 {
    font-family: var(--font-display); font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08;
    letter-spacing: -.03em; font-weight: 600; color: var(--brand-dark); margin: 0 0 18px; text-wrap: balance;
}
.prose .lede { font-size: clamp(17px, 1.9vw, 19px); color: var(--ink); margin: 0 0 8px; }
.prose h2 { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--brand-dark); margin: 36px 0 10px; line-height: 1.2; }
.prose h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .muted { color: var(--muted); font-size: 14px; margin: -6px 0 18px; }
.mk-footer nav { flex-wrap: wrap; }
