/* BETA Centre shop desk preview. Light, theme locked (an internal tool). Tokens mirrored in DESIGN.md. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Red Hat Mono'; src: url('/fonts/redhat-mono.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F1F2F3;
  --surface: #FFFFFF;
  --surface-2: #F6F7F8;
  --line: #E2E4E7;
  --line-2: #C8CCD2;
  --ink: #17181A;
  --ink-2: #3A3D42;
  --ink-3: #5C6168;
  --char: #262626;
  --char-2: #343434;
  --accent: #E96738;
  --accent-hi: #F07A4E;
  --accent-ink: #A6421A;
  --accent-wash: rgba(233, 103, 56, 0.09);
  --accent-wash-2: rgba(233, 103, 56, 0.16);
  --ok: #1D6B3A; --ok-bg: #E2F1E7;
  --warn: #8A4B00; --warn-bg: #FBEFD9;
  --bad: #B3261E; --bad-bg: #FCE7E5;
  --r-tag: 4px;
  --r-ctl: 8px;
  --r-card: 12px;
  --shadow: 0 1px 2px rgba(23, 24, 26, 0.05), 0 12px 28px -22px rgba(23, 24, 26, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-top: 20; --z-tabs: 25; --z-badge: 45; --z-scrim: 50; --z-drawer: 51; --z-modal: 60; --z-toast: 70;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 'Archivo', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: 'Red Hat Mono', ui-monospace, monospace; font-weight: 500; font-size: 0.92em; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.strong { font-weight: 650; }
.bad { color: var(--bad); }
.ok { color: var(--ok); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-ctl); font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .2s, box-shadow .2s, transform .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hi); }
.btn--dark { background: var(--char); color: #fff; }
.btn--dark:hover { background: #3C3C3C; }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink-3); }
.btn--wa { background: #1D7A44; color: #fff; }
.btn--wa:hover { background: #176538; }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn--lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.link { color: var(--accent-ink); font-weight: 650; font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }

/* chips: square tags */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-tag); font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip--demo { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.chip--ok { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.chip--warn { background: var(--warn-bg); color: var(--warn); box-shadow: none; }
.chip--bad { background: var(--bad-bg); color: var(--bad); box-shadow: none; }
.chip--accent { background: var(--accent-wash-2); color: var(--accent-ink); box-shadow: none; }

/* swatches: the paint colour itself, always with its code next to it */
.sw { display: block; flex: none; width: 36px; height: 36px; border-radius: var(--r-ctl); background: var(--c); box-shadow: inset 0 0 0 1px rgba(23, 24, 26, 0.14); }
.sw--sm { width: 22px; height: 22px; border-radius: var(--r-tag); }
.sw--lg { width: 100%; height: 96px; border-radius: var(--r-card); }
.colour { display: flex; align-items: center; gap: 10px; min-width: 0; }
.colour__txt { display: grid; min-width: 0; line-height: 1.3; }
.colour__txt b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.colour__txt small { font-size: 12px; color: var(--ink-3); }

/* ---------- intro ---------- */
.intro { min-height: 100dvh; display: grid; grid-template-columns: minmax(300px, 0.78fr) 1.22fr; background: var(--surface); }
.intro__brand { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 4.5vw, 60px); background: var(--char); color: #fff; overflow: hidden; }
.intro__logo { width: min(100%, 260px); height: auto; }
.intro__tag { margin: 22px 0 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; font-weight: 700; font-stretch: 110%; max-width: 18ch; }
.intro__shop { margin: 28px 0 0; border-radius: var(--r-card); overflow: hidden; max-width: 340px; aspect-ratio: 4 / 3; background: var(--char-2); }
.intro__shop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.intro__facts { margin: auto 0 0; padding: 32px 0 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 420px; }
.intro__facts dt { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.intro__facts dd { margin: 2px 0 0; font-size: 15px; }
.intro__facts b { font-weight: 700; }
.intro__band { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--accent); }
.intro__main { padding: clamp(28px, 4.5vw, 64px) clamp(20px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.intro__title { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 800; font-stretch: 108%; margin: 0; max-width: 19ch; }
.intro__sub { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); max-width: 50ch; margin: 18px 0 0; }
.intro__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.intro__note { font-size: 14px; color: var(--ink-3); }
.fan { margin: clamp(28px, 4vw, 44px) 0 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; max-width: 920px; align-items: stretch; }
.fan__photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--r-card); }
.fan__chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fan__chips li { display: grid; grid-template-rows: 1fr auto; border-radius: var(--r-ctl); overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); min-height: 64px; }
.fan__chips i { display: block; background: var(--c); min-height: 30px; }
.fan__chips span { padding: 5px 8px 6px; font-size: 12px; line-height: 1.25; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fan__chips b { font-family: 'Red Hat Mono', ui-monospace, monospace; font-weight: 600; color: var(--ink); margin-right: 5px; }
@media (max-width: 1100px) { .fan { grid-template-columns: 1fr; max-width: 560px; } .fan__photo { aspect-ratio: 3 / 2; height: auto; min-height: 0; } .fan__chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .intro__brand { padding: 24px 20px 30px; display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: start; }
  .intro__logo { width: 170px; }
  .intro__tag { grid-column: 1; margin-top: 14px; font-size: 17px; max-width: none; }
  .intro__shop { grid-column: 2; grid-row: 1 / span 2; margin: 0; width: 112px; aspect-ratio: 1; }
  .intro__facts { grid-column: 1 / -1; padding: 20px 0 0; gap: 12px; }
  .intro__facts dd { font-size: 14px; }
  .intro__main { padding: 28px 20px 110px; justify-content: flex-start; }
}
@media (max-width: 520px) { .fan__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- app shell ---------- */
.top { position: sticky; top: 0; z-index: var(--z-top); background: var(--char); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.top__bar { display: flex; align-items: center; gap: 18px; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px) 3px; min-height: 67px; }
.top__brand { flex: none; }
.top__brand img { width: 112px; height: auto; }
.top__nav { display: flex; align-items: stretch; gap: 2px; align-self: stretch; margin-left: 10px; }
.top__nav a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 13px; text-decoration: none; font-weight: 550; font-size: 14px; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }
.top__nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.top__nav a[aria-current="page"] { color: #fff; font-weight: 700; background: rgba(255, 255, 255, 0.08); }
.top__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: #fff; }
.count { min-width: 20px; padding: 0 6px; border-radius: var(--r-tag); background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.count:empty { display: none; }
.top .chip--demo { margin-left: auto; }
.top__new { flex: none; }
.main { max-width: 1440px; margin: 0 auto; }
.pagehead { padding: 26px clamp(16px, 3vw, 32px) 4px; }
.pagehead__title { margin: 0; font-size: 27px; font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; }
.pagehead__sub { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; max-width: 72ch; }
.view { padding: 18px clamp(16px, 3vw, 32px) 24px; outline: none; }
.foot { padding: 8px clamp(16px, 3vw, 32px) 32px; font-size: 13px; color: var(--ink-3); }
.foot p { margin: 2px 0; }
.foot b { color: var(--ink-2); font-weight: 650; }
.tabs { display: none; }
@media (max-width: 1100px) { .top__nav a { padding: 0 10px; } }
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__bar { min-height: 57px; gap: 10px; }
  .top__brand img { width: 96px; }
  .top__new span { display: none; }
  .top__new { padding: 0 11px; }
  .chip--demo { font-size: 11px; padding: 2px 7px; }
  .pagehead { padding-top: 18px; }
  .pagehead__title { font-size: 22px; }
  .foot { padding-bottom: 150px; }
  .tabs { position: fixed; inset: auto 0 0; z-index: var(--z-tabs); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); }
  .tabs a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 650; border-radius: var(--r-ctl); }
  .tabs a svg { width: 22px; height: 22px; }
  .tabs a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-wash); }
  .dot-count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-tag); background: var(--accent); color: var(--ink); font-size: 10px; font-style: normal; font-weight: 800; line-height: 17px; text-align: center; }
  .dot-count:empty { display: none; }
}

/* ---------- panels ---------- */
.panel { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); padding: 18px; min-width: 0; }
.panel--flush { padding: 6px; }
.panel__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.panel__head h2 { margin: 0; font-size: 16px; font-weight: 750; }
.panel__head .link, .panel__head > .muted { margin-left: auto; }
.panel__head--pad { padding: 12px 12px 0; }
.sub-h { margin: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.sub-h svg { width: 17px; height: 17px; color: var(--accent-ink); }

/* stat strip */
.stats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.stat { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r-card); text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s; }
.stat:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.stat__label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.stat__n { font-size: 30px; font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.1; }
.stat__sub { font-size: 12px; color: var(--ink-3); }
.stat--lead { background: var(--char); box-shadow: inset 0 -4px 0 var(--accent); color: #fff; }
.stat--lead:hover { background: #333; box-shadow: inset 0 -4px 0 var(--accent); }
.stat--lead .stat__label, .stat--lead .stat__sub { color: rgba(255, 255, 255, 0.78); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .stats li:first-child { grid-column: 1 / -1; } .stat__n { font-size: 26px; } }

/* dashboard layout */
.dash { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-areas: "tint tint van" "quotes low act"; gap: 16px; }
.dash__tint { grid-area: tint; } .dash__van { grid-area: van; } .dash__quotes { grid-area: quotes; } .dash__low { grid-area: low; } .dash__act { grid-area: act; }
@media (max-width: 1180px) { .dash { grid-template-columns: 1fr 1fr; grid-template-areas: "tint tint" "van quotes" "low act"; } }
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; grid-template-areas: "tint" "van" "quotes" "low" "act"; } }
.van-photo { margin: -18px -18px 14px; height: 132px; border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.van-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.slot { flex: none; width: 36px; height: 36px; border-radius: var(--r-ctl); display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--accent-wash-2); color: var(--accent-ink); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.list > li:first-child > .row, .list > li.row:first-child { border-top: 0; }
.list > li + li > .row--btn { border-top: 1px solid var(--line); }
.row--btn { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--r-ctl); padding: 10px 8px; }
.row--btn:hover { background: var(--surface-2); }
.row__main { min-width: 0; flex: 1; }
.row__btn { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.row__btn:hover .row__title { color: var(--accent-ink); }
.row__title { font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__meta { font-size: 13px; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ico { flex: none; width: 36px; height: 36px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); }
.ico svg { width: 18px; height: 18px; }
.thumb { flex: none; width: 44px; height: 44px; border-radius: var(--r-ctl); object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 3px; }
.thumb--none { display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); padding: 0; }
.thumb--none svg { width: 20px; height: 20px; }
.empty { padding: 26px 12px; text-align: center; color: var(--ink-3); display: grid; justify-items: center; gap: 10px; }
.empty svg { width: 30px; height: 30px; color: #9AA0A8; }
.empty p { margin: 0; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.timeline li { display: flex; gap: 10px; }
.timeline li::before { content: ""; width: 3px; border-radius: 2px; background: var(--accent-wash-2); flex: none; }
.timeline small { color: var(--ink-3); display: block; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; min-width: 0; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-ctl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 11px; border-radius: 6px; font-weight: 650; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button:hover { background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--char); color: #fff; }
.seg__n { font-size: 11px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.search { position: relative; flex: 1; min-width: 0; max-width: 360px; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; min-height: 40px; padding: 0 12px 0 38px; border: 0; border-radius: var(--r-ctl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.search input::placeholder { color: #6A6F76; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ink); }
@media (max-width: 640px) { .search { max-width: none; flex-basis: 100%; } }

/* tinting board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--surface-2); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); padding: 10px; min-width: 0; }
.col__head { display: flex; align-items: baseline; gap: 8px; padding: 4px 4px 10px; }
.col__head h2 { margin: 0; font-size: 15px; font-weight: 750; }
.col__head .muted { margin-left: auto; font-size: 13px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tcard { display: grid; grid-template-columns: 58px minmax(0, 1fr); width: 100%; padding: 0; border: 0; border-radius: var(--r-ctl); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tcard:hover { box-shadow: var(--shadow), inset 0 0 0 1px var(--ink-3); }
.tcard__sw { background: var(--c); box-shadow: inset -1px 0 0 rgba(23, 24, 26, 0.1); }
.tcard__body { display: grid; gap: 2px; padding: 10px 12px; min-width: 0; }
.tcard__top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-3); }
.tcard__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard__meta { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tcard__cust { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 960px) { .board { grid-template-columns: 1fr; } }

/* job rows (orders, quotes) */
.jrow { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: var(--r-ctl); }
.list > li + li > .jrow { border-top: 1px solid var(--line); border-radius: 0; }
.jrow:hover { background: var(--surface-2); }
.jrow__id { color: var(--accent-ink); }
.jrow__title { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow__meta { display: block; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow__end { display: flex; align-items: center; gap: 12px; }
.jrow__amt { font-weight: 650; min-width: 86px; text-align: right; }
@media (max-width: 640px) {
  .jrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .jrow__id { grid-column: 1; grid-row: 1; font-size: 12px; }
  .jrow__main { grid-column: 1 / -1; grid-row: 2; }
  .jrow__end { grid-column: 2; grid-row: 1; }
  .jrow__amt { min-width: 0; }
}

/* visits strip on quotes */
.visits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.visit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; }
.visit:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.visit__day { flex: none; width: 50px; padding: 4px 0; border-radius: var(--r-ctl); background: var(--char); color: #fff; text-align: center; line-height: 1.15; }
.visit__day b { display: block; font-size: 18px; font-weight: 800; }
.visit__day small { font-size: 11px; color: rgba(255, 255, 255, 0.75); }
.visit > span:last-child { min-width: 0; display: grid; }
.visit strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit em { font-style: normal; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; font-weight: 650; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr[data-cust] { cursor: pointer; }
.t tbody tr:hover td { background: var(--surface-2); }
.t .r { text-align: right; }
.t small { display: block; color: var(--ink-3); font-size: 12px; }
.cust { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cust__ico { flex: none; width: 34px; height: 34px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.cust__ico svg { width: 18px; height: 18px; }
.swrow { display: flex; gap: 4px; }
.swrow > span { display: block; }
@media (max-width: 1060px) { .hide-md { display: none; } }
@media (max-width: 700px) { .hide-sm { display: none; } .t td, .t th { padding: 9px 6px; } .cust__ico { display: none; } }
.sumline { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-bottom: 16px; padding: 14px 18px; background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); border-left: 4px solid var(--accent); }
.sumline div { display: grid; }
.sumline span { font-size: 13px; }
.sumline b { font-size: 22px; font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: rgba(20, 20, 22, 0.42); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(580px, 100%); background: var(--bg); box-shadow: -20px 0 60px -20px rgba(20, 20, 22, 0.5); display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--surface); box-shadow: 0 1px 0 var(--line); border-top: 4px solid var(--accent); }
.drawer__titles { flex: 1; min-width: 0; }
.drawer__head h2 { margin: 0; font-size: 18px; font-weight: 750; outline: none; }
.drawer__head h2 .mono { color: var(--accent-ink); margin-right: 6px; }
.drawer__head p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 18px; display: grid; gap: 14px; align-content: start; }
.drawer__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.steps li { padding-top: 8px; font-size: 11px; font-weight: 650; color: var(--ink-3); border-top: 4px solid var(--line-2); line-height: 1.25; }
.steps li.is-done { border-color: var(--char); color: var(--ink-2); }
.steps li.is-now { border-color: var(--accent); color: var(--ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; }
.big-sw { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; }
.big-sw .sw--lg { height: 120px; }
.big-sw h3 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; }
.big-sw p { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.lines th { text-align: left; font-size: 12px; font-weight: 650; color: var(--ink-3); padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines .r { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines td b { font-weight: 650; }
.lines small { color: var(--ink-3); display: block; font-size: 12px; }
.totals { display: grid; gap: 4px; font-size: 14px; margin-top: 10px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-size: 18px; font-weight: 800; padding-top: 6px; border-top: 2px solid var(--ink); margin-top: 4px; }
.totals + .muted { margin: 8px 0 0; }
.note { padding: 10px 12px; border-radius: var(--r-ctl); background: var(--accent-wash); color: var(--accent-ink); font-size: 13px; font-weight: 550; display: flex; gap: 8px; align-items: flex-start; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note--warn { background: var(--warn-bg); color: var(--warn); }
.note--bad { background: var(--bad-bg); color: var(--bad); }
.history { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.history button { display: grid; grid-template-rows: 54px auto; width: 100%; padding: 0; border: 0; border-radius: var(--r-ctl); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; }
.history button:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.history i { background: var(--c); }
.history button > span { display: grid; padding: 6px 9px 8px; font-size: 13px; line-height: 1.3; min-width: 0; }
.history b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history small { color: var(--ink-3); font-size: 12px; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 20px; background: rgba(20, 20, 22, 0.45); }
.modal__box { width: min(700px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--r-card); box-shadow: 0 30px 80px -20px rgba(20, 20, 22, 0.6); border-top: 4px solid var(--accent); }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.modal__head h2 { margin: 0; font-size: 18px; font-weight: 750; flex: 1; }
.modal__body { padding: 14px 20px; display: grid; gap: 14px; min-width: 0; }
.modal__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -1px 0 var(--line); }
@media (max-width: 640px) {
  .modal { place-items: end stretch; padding: 0; }
  .modal__box { width: 100%; border-radius: var(--r-card) var(--r-card) 0 0; max-height: 94dvh; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field label .muted { font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: var(--r-ctl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6A6F76; }
.field input:focus, .field select:focus, .field textarea:focus, .qty:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ink); }
.field__help { margin: 0; font-size: 12px; color: var(--ink-3); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 12px; }
@media (max-width: 560px) { .two, .three { grid-template-columns: 1fr; } }
.err { margin: 0; color: var(--bad); font-size: 13px; font-weight: 550; }
.err:empty { display: none; }
.qty { width: 72px; min-height: 38px; padding: 4px 8px; border: 0; border-radius: var(--r-ctl); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); text-align: right; font-variant-numeric: tabular-nums; }

/* colour picker in the tint composer */
.picked { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-card); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.picked .sw { width: 88px; height: 72px; border-radius: var(--r-ctl); }
.picked b { display: block; font-size: 18px; font-weight: 800; font-stretch: 106%; }
.picked small { color: var(--ink-3); font-size: 13px; }
.picked--none { grid-template-columns: 1fr; color: var(--ink-3); font-size: 14px; padding: 18px 14px; }
.fanpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; padding: 2px; }
.fanpick button { display: grid; grid-template-rows: 40px auto; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; text-align: left; }
.fanpick button:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.fanpick button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.fanpick i { background: var(--c); }
.fanpick span { padding: 3px 6px 5px; font-size: 11px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fanpick b { display: block; font-family: 'Red Hat Mono', ui-monospace, monospace; font-weight: 600; }
.fanpick__more { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); padding: 4px 2px; }
.fans { display: flex; flex-wrap: wrap; gap: 6px; }
.fans button { border: 0; border-radius: var(--r-tag); padding: 4px 9px; font-size: 12px; font-weight: 650; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; color: var(--ink-2); }
.fans button[aria-pressed="true"] { background: var(--char); color: #fff; box-shadow: none; }
.attach { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.attach svg { width: 22px; height: 22px; color: var(--bad); flex: none; }
.attach span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.attach small { color: var(--ink-3); font-size: 12px; }
.bubble { align-self: flex-start; max-width: 92%; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: #DCF5DF; font-size: 14px; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); }
.phone-prev { padding: 14px; border-radius: var(--r-ctl); background: #ECE5DA; display: flex; flex-direction: column; }
.rooms { display: grid; gap: 8px; }
.room { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 8px; align-items: center; }
.room input { min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--r-ctl); background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); width: 100%; }
.room input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent-ink); }
.po { display: grid; gap: 8px; }
.po__row { display: flex; align-items: center; gap: 10px; }
.po__name { flex: 1; min-width: 0; display: grid; font-size: 14px; line-height: 1.3; }
.po__name b { font-weight: 650; }
.po__name small { color: var(--ink-3); font-size: 12px; }
.po__row .thumb { width: 38px; height: 38px; }
.oline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }

/* toasts */
.toasts { position: fixed; z-index: var(--z-toast); left: 24px; bottom: 24px; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--char); color: #fff; font-size: 14px; box-shadow: 0 16px 40px -12px rgba(20, 20, 22, 0.6); border-left: 4px solid var(--accent); }
.toast svg { width: 18px; height: 18px; color: var(--accent-hi); flex: none; }
@media (max-width: 960px) { .toasts { left: 16px; top: 12px; bottom: auto; } }

/* badge */
.badge { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-badge); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px -14px rgba(20, 20, 22, 0.4); font-size: 13px; color: var(--ink-2); }
.badge a { text-decoration: none; }
.badge strong { color: var(--ink); }
.badge__close { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: var(--surface-2); cursor: pointer; }
.badge__close svg { width: 14px; height: 14px; }
.badge.is-hidden { display: none; }
body.in-app .badge { left: auto; right: 16px; }
@media (max-width: 960px) { body.in-app .badge { bottom: 84px; } }
@media (prefers-reduced-transparency: reduce) { .badge, .tabs { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
