/*
 * Sellpin — app styles.
 *
 * Identity: indigo-dye ink + market marigold. The ink comes from the indigo
 * cloth stacked in Makola and Kejetia; the marigold from mobile money kiosks
 * and kente gold. Marigold is the ONE accent: primary actions, the "Paid"
 * stamp, the woven band. Everything else stays quiet.
 *
 * Type: Bricolage Grotesque (display: headings, money) + the phone's own
 * system font for body text (Roboto on Android, zero download).
 *
 * This file is only loaded on Sellpin pages, which never load theme CSS.
 */

@font-face {
	font-family: "Bricolage Grotesque";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--paper: #F6F3EE;
	--surface: #FFFFFF;
	--surface-2: #EFEBE3;
	--line: #E2DCD0;
	--line-strong: #CFC7B8;
	--ink: #1E1C33;           /* indigo ink */
	--ink-2: #4E4B66;
	--ink-3: #6E6A84;
	--accent: #E9A21B;        /* market marigold */
	--accent-strong: #C98400;
	--accent-ink: #1E1C33;    /* text on marigold */
	--accent-soft: #FBEBC8;
	--chart-bar: #A86F00;
	--good: #1E7A50;
	--good-soft: #DDF0E6;
	--warn: #9A5300;
	--warn-soft: #FCE9D4;
	--bad: #B3261E;
	--bad-soft: #FADCD9;
	--focus: #2F3AA8;
	--side: #1E1C33;
	--side-ink: #F3EFE6;
	--shadow-1: 0 1px 0 rgba(30, 28, 51, .06), 0 1px 3px rgba(30, 28, 51, .08);
	--shadow-2: 0 10px 30px rgba(30, 28, 51, .18);
	--radius-s: 8px;
	--radius: 14px;
	--radius-l: 22px;
	--display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--bnav-h: 64px;
	--wax: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 7 0l7 14z' fill='%23E9A21B'/%3E%3Cpath d='M14 14 21 4l7 10z' fill='%23E9A21B' opacity='.55'/%3E%3Ccircle cx='21' cy='2' r='1.4' fill='%23E9A21B'/%3E%3C/svg%3E");
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #15142A;
		--surface: #1F1E38;
		--surface-2: #282744;
		--line: #34335A;
		--line-strong: #47466F;
		--ink: #F3EFE6;
		--ink-2: #C9C4D8;
		--ink-3: #A29DB7;
		--accent: #F0B03A;
		--accent-strong: #F6C25E;
		--accent-ink: #1A1830;
		--accent-soft: #3B3320;
		--chart-bar: #B98018;
		--good: #5CC795;
		--good-soft: #1C3A30;
		--warn: #F2A65A;
		--warn-soft: #3D2C1E;
		--bad: #F28B82;
		--bad-soft: #43242A;
		--focus: #9DA8FF;
		--side: #100F22;
		--side-ink: #F3EFE6;
		--shadow-1: 0 1px 0 rgba(0, 0, 0, .3);
		--shadow-2: 0 14px 40px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #15142A;
	--surface: #1F1E38;
	--surface-2: #282744;
	--line: #34335A;
	--line-strong: #47466F;
	--ink: #F3EFE6;
	--ink-2: #C9C4D8;
	--ink-3: #A29DB7;
	--accent: #F0B03A;
	--accent-strong: #F6C25E;
	--accent-ink: #1A1830;
	--accent-soft: #3B3320;
	--chart-bar: #B98018;
	--good: #5CC795;
	--good-soft: #1C3A30;
	--warn: #F2A65A;
	--warn-soft: #3D2C1E;
	--bad: #F28B82;
	--bad-soft: #43242A;
	--focus: #9DA8FF;
	--side: #100F22;
	--side-ink: #F3EFE6;
	--shadow-1: 0 1px 0 rgba(0, 0, 0, .3);
	--shadow-2: 0 14px 40px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	min-height: 100vh;
	min-height: 100dvh;
}
img, svg { display: block; max-width: 100%; }
/* Default size for inline icons; zero specificity so component rules win. */
:where(svg[aria-hidden="true"]) { width: 20px; height: 20px; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper);
	padding: 10px 14px; border-radius: var(--radius-s); text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

.num, .money { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- App shell ---------- */
.sp-app { min-height: 100dvh; display: block; }
.sp-body { min-width: 0; }

.sp-side { display: none; }

.sp-top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; gap: 10px;
	padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
	background: color-mix(in srgb, var(--paper) 92%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid transparent;
}
.sp-top.is-scrolled { border-bottom-color: var(--line); }
.sp-top__brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; }
.sp-top__name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }

.logo { width: 34px; height: 34px; flex: none; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
	border-radius: 50%; border: 0; background: transparent; color: var(--ink-2);
	transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

.sp-main {
	padding: 4px 16px calc(var(--bnav-h) + 96px + env(safe-area-inset-bottom));
	max-width: 760px; margin: 0 auto;
}
.view { animation: view-in .28s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 12px 0 16px; }
.h1 { font-family: var(--display); font-weight: 750; font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.08; letter-spacing: -.025em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.2; }
.h3 { font-family: var(--display); font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; }
.lead { color: var(--ink-2); font-size: .98rem; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.section { margin-top: 28px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--end { justify-content: flex-end; }
.row--between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* Bottom navigation (mobile) */
.bnav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	height: calc(var(--bnav-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: var(--surface); border-top: 1px solid var(--line);
}
.bnav a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	text-decoration: none; color: var(--ink-3); font-size: .72rem; font-weight: 600; min-height: 48px;
	position: relative;
}
.bnav a svg { width: 24px; height: 24px; }
.bnav a[aria-current="page"] { color: var(--ink); }
.bnav a[aria-current="page"]::before {
	content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
}
.bnav__spacer { pointer-events: none; }

/* Floating "New order" */
.fab {
	position: fixed; z-index: 31; left: 50%; transform: translateX(-50%);
	bottom: calc(var(--bnav-h) - 26px + env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 8px;
	height: 58px; padding: 0 22px 0 18px; border-radius: 29px; border: 0;
	background: var(--accent); color: var(--accent-ink);
	font-family: var(--display); font-weight: 700; font-size: 1.02rem; text-decoration: none;
	box-shadow: 0 0 0 5px var(--paper), var(--shadow-2);
	transition: transform .2s var(--ease), background .2s;
}
.fab svg { width: 24px; height: 24px; }
.fab:hover { background: var(--accent-strong); }
.fab:active { transform: translateX(-50%) scale(.96); }
.fab[aria-current="page"] { display: none; }

/* Desktop shell */
@media (min-width: 960px) {
	.sp-app { display: grid; grid-template-columns: 248px 1fr; }
	.sp-side {
		display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
		background: var(--side); color: var(--side-ink); padding: 22px 14px 18px;
	}
	.sp-side::after {
		content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
		background: var(--wax) repeat-x; opacity: .9;
	}
	.sp-side__brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; text-decoration: none; color: inherit; }
	.sp-side__name { font-family: var(--display); font-weight: 750; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.1; }
	.sp-side__biz { font-size: .82rem; opacity: .7; display: block; font-family: var(--body); font-weight: 500; letter-spacing: 0; }
	.sp-side nav { display: flex; flex-direction: column; gap: 2px; }
	.sp-side nav a {
		display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 46px; border-radius: 12px;
		text-decoration: none; color: color-mix(in srgb, var(--side-ink) 78%, transparent); font-weight: 600;
	}
	.sp-side nav a svg { width: 22px; height: 22px; }
	.sp-side nav a:hover { background: rgba(255, 255, 255, .07); color: var(--side-ink); }
	.sp-side nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: var(--side-ink); box-shadow: inset 3px 0 0 var(--accent); }
	.sp-side .btn-primary { margin: 18px 4px 6px; }
	.sp-side__foot { margin-top: auto; padding: 0 4px 22px; display: flex; flex-direction: column; gap: 2px; }
	.sp-side__foot a, .sp-side__foot button {
		display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 42px; border-radius: 12px; border: 0; background: none;
		color: color-mix(in srgb, var(--side-ink) 70%, transparent); text-decoration: none; font-size: .92rem; font-weight: 500; text-align: left;
	}
	.sp-side__foot a:hover, .sp-side__foot button:hover { background: rgba(255, 255, 255, .07); color: var(--side-ink); }
	.sp-side__foot svg { width: 20px; height: 20px; }
	.sp-side :focus-visible { outline-color: var(--accent); }
	.sp-top, .bnav, .fab { display: none; }
	.sp-main { padding: 26px 40px 60px; max-width: 1180px; width: 100%; }
	.sp-main--wide { max-width: none; }
}

/* ---------- Buttons ---------- */
.btn {
	--b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-strong);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 18px; border-radius: 12px;
	background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
	font-weight: 650; font-size: .95rem; text-decoration: none; line-height: 1.1; white-space: nowrap;
	transition: background .15s, border-color .15s, transform .12s, opacity .15s;
	position: relative; user-select: none;
}
.btn:hover { --b-bd: var(--ink-3); }
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); font-family: var(--display); font-weight: 700; }
.btn-primary:hover { --b-bg: var(--accent-strong); --b-bd: var(--accent-strong); }
.btn-ink { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink); }
.btn-ink:hover { --b-bd: var(--ink); opacity: .9; }
.btn-wa { --b-bg: #1F7A4C; --b-fg: #fff; --b-bd: #1F7A4C; }
.btn-wa:hover { --b-bd: #1F7A4C; opacity: .92; }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; color: var(--ink-2); }
.btn-ghost:hover { --b-bg: var(--surface-2); --b-bd: transparent; color: var(--ink); }
.btn-danger { --b-fg: var(--bad); --b-bd: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-danger:hover { --b-bg: var(--bad-soft); --b-bd: var(--bad); }
.btn-sm { min-height: 44px; padding: 0 12px; font-size: .88rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 1.05rem; padding: 0 22px; border-radius: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
	content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
	border: 2.5px solid var(--b-fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.label .opt { font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.input, .textarea, .select {
	width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
	border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
	font-size: 16px; /* prevents iOS zoom */ transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .85; }
.hint { color: var(--ink-3); font-size: .84rem; margin-top: 5px; }
.err { color: var(--bad); font-size: .86rem; margin-top: 5px; font-weight: 550; }
.field.has-error .input, .field.has-error .textarea { border-color: var(--bad); }
.field.is-flag .input, .field.is-flag .textarea { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.flag {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
	background: var(--accent-soft); color: var(--warn); font-size: .76rem; font-weight: 700;
}
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .93rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.prefix { position: relative; }
.prefix > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.prefix > .input { padding-left: 52px; }

/* Paste box — the heart of order capture */
.paste {
	position: relative; border-radius: var(--radius-l); background: var(--surface);
	border: 1.5px dashed var(--line-strong); padding: 6px; transition: border-color .15s;
}
.paste:focus-within { border-style: solid; border-color: var(--ink); }
.paste .textarea { border: 0; min-height: 210px; background: transparent; font-size: 16px; box-shadow: none; padding: 12px; }
.paste__bar { display: flex; gap: 8px; padding: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card--flat { box-shadow: none; }
.card + .card { margin-top: 12px; }

/* Receipt: order confirmation and payment cards get a torn-paper edge */
.receipt {
	background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; padding: 18px 16px 22px; position: relative;
	border: 1px solid var(--line); border-bottom: 0;
	margin-bottom: 10px;
}
.receipt::after {
	content: ""; position: absolute; left: -1px; right: -1px; bottom: -10px; height: 10px;
	background:
		linear-gradient(135deg, var(--surface) 5px, transparent 0) 0 0 / 10px 10px repeat-x,
		linear-gradient(-135deg, var(--surface) 5px, transparent 0) 0 0 / 10px 10px repeat-x;
	filter: drop-shadow(0 1px 0 var(--line));
}
.receipt__rule { border: 0; border-top: 1.5px dashed var(--line-strong); margin: 14px 0; }

/* Insight strip */
.insight {
	display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ink-3);
}
.insight--warn { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.insight--good { border-left-color: var(--good); }
.insight__text { flex: 1; font-weight: 550; }
.insight svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }

/* Today numbers */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; min-width: 0; }
.stat__label { color: var(--ink-2); font-size: .86rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat__value { font-family: var(--display); font-weight: 750; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__value small { font-size: .55em; font-weight: 600; color: var(--ink-3); margin-right: 3px; letter-spacing: 0; }
.stat--hero { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-color: var(--ink); position: relative; overflow: hidden; }
.stat--hero .stat__label { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.stat--hero .stat__value { font-size: 2.6rem; }
.stat--hero .stat__value small { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.stat--hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--wax) repeat-x; background-size: 20px 10px; opacity: .85; }
.stat__dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@media (min-width: 640px) {
	.stats { grid-template-columns: repeat(4, 1fr); }
	.stat--hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
}

/* Weekly chart */
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 12px; }
.chart__plot { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 160px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; border: 0; background: none; padding: 0; color: inherit; }
.bar__fill { width: min(100%, 34px); background: var(--chart-bar); border-radius: 4px 4px 0 0; min-height: 2px; transform-origin: bottom; animation: grow .6s var(--ease) both; }
.bar--empty .bar__fill { background: var(--line-strong); }
.bar--today .bar__fill { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--chart-bar); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.bar__val { position: absolute; top: -20px; font-size: .74rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .15s; }
.bar--label .bar__val, .bar:hover .bar__val, .bar:focus-visible .bar__val { opacity: 1; }
.chart__axis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; text-align: center; font-size: .76rem; color: var(--ink-3); }
.chart__axis .is-today { color: var(--ink); font-weight: 700; }
.chart__counts { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .72rem; color: var(--ink-3); }

/* ---------- Badges, readiness ---------- */
.badge {
	display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
	font-size: .76rem; font-weight: 700; white-space: nowrap; border: 1.5px solid transparent;
}
.badge svg { width: 13px; height: 13px; }
.pay-unpaid { color: var(--ink-2); border-color: var(--line-strong); background: transparent; }
.pay-partial { color: var(--warn); background: var(--warn-soft); }
.pay-paid { color: var(--good); background: var(--good-soft); }
.badge-demo { color: var(--ink-3); border: 1.5px dashed var(--line-strong); }
.badge-stage { background: var(--surface-2); color: var(--ink-2); }

.ready { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.ready__dots { display: inline-flex; gap: 3px; }
.ready__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.ready--ready .ready__dots i { background: var(--good); }
.ready--almost .ready__dots i.on { background: var(--accent-strong); }
.ready--not .ready__dots i.on { background: var(--bad); }
.ready--vague { color: var(--warn); }

.checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ok { color: var(--good); }
.checklist .no { color: var(--bad); }
.checklist svg { width: 20px; height: 20px; flex: none; }

.warnbox { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.warnbox > svg { width: 22px; height: 22px; flex: none; color: var(--warn); }
.demo-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--line-strong); color: var(--ink-2); font-size: .9rem; }
.demo-note strong { color: var(--ink); }
.demo-note svg { width: 22px; height: 22px; flex: none; }

/* ---------- Pipeline board ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 220px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 42px; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 650; font-size: .9rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px 14px; padding-left: 16px; padding-right: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { text-decoration: none; flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .count { font-variant-numeric: tabular-nums; opacity: .7; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: thin; }
.col { min-width: 0; scroll-snap-align: start; background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 200px; display: flex; flex-direction: column; transition: background .15s, box-shadow .15s; }
.col.is-over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.col__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; padding: 4px 6px 10px; }
.col__title { font-family: var(--display); font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.col__count { font-size: .82rem; color: var(--ink-3); font-weight: 650; font-variant-numeric: tabular-nums; }
.col__sum { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.col__list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.col__empty { color: var(--ink-3); font-size: .86rem; text-align: center; padding: 18px 8px; border: 1.5px dashed var(--line-strong); border-radius: 12px; }
.stage-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--ink-3); transform: rotate(45deg); }
.stage-new .stage-dot { background: var(--ink-3); }
.stage-paid .stage-dot { background: var(--good); }
.stage-packed .stage-dot { background: var(--focus); }
.stage-out .stage-dot { background: var(--accent-strong); }
.stage-delivered .stage-dot { background: var(--ink); }
.stage-failed .stage-dot { background: var(--bad); }
@media (min-width: 960px) {
	.board { grid-auto-flow: initial; grid-template-columns: repeat(6, minmax(224px, 1fr)); grid-auto-columns: initial; margin: 0; padding: 0 0 12px; scroll-snap-type: none; overflow-x: auto; }
	.chips { margin: 0 0 14px; padding-left: 0; padding-right: 0; }
}

.ocard {
	min-width: 0;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px;
	box-shadow: var(--shadow-1); transition: transform .25s var(--ease), box-shadow .2s, opacity .2s;
	position: relative;
}
.ocard[draggable="true"] { cursor: grab; }
.ocard.is-dragging { opacity: .45; transform: rotate(-1.5deg); }
.ocard.is-moving { animation: card-move .45s var(--ease); }
@keyframes card-move { 0% { transform: translateX(14px) scale(.98); opacity: .2; } 100% { transform: none; opacity: 1; } }
.ocard__open { all: unset; display: block; box-sizing: border-box; width: 100%; min-width: 0; cursor: pointer; border-radius: 8px; }
.ocard__open:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.ocard__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ocard__name { min-width: 0; font-weight: 700; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard__amt { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ocard__items { color: var(--ink-2); font-size: .86rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocard__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.ocard__ref { color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
.ocard__actions { display: flex; gap: 6px; margin-top: 10px; }
.ocard__actions .btn { flex: 1; }

/* List view */
.olist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.olist li + li { border-top: 1px solid var(--line); }
.orow { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; width: 100%; cursor: pointer; min-height: 64px; }
.orow:hover { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.orow:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.orow__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow__amt { font-family: var(--display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.orow__sub { color: var(--ink-3); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow__badges { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.filters .field + .field { margin-top: 0; }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sheets (bottom sheet on phones, side panel on desktop) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(15, 13, 30, .5); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
	position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-height: 92dvh;
	background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-2);
	display: flex; flex-direction: column; animation: sheet-up .32s var(--ease) both;
	padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 8px auto 0; flex: none; }
.sheet__head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; flex: none; }
.sheet__title { flex: 1; min-width: 0; }
.sheet__body { overflow-y: auto; padding: 4px 18px 22px; overscroll-behavior: contain; flex: 1; }
.sheet__foot { padding: 12px 18px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex: none; background: var(--paper); }
.sheet__foot .btn { flex: 1; }
@media (min-width: 960px) {
	.sheet { left: auto; top: 0; width: 480px; max-height: none; border-radius: 22px 0 0 22px; animation-name: sheet-in; }
	.sheet--narrow { width: 420px; }
	.sheet__grab { display: none; }
	@keyframes sheet-in { from { transform: translateX(100%); } to { transform: none; } }
}

/* Stage stepper inside order sheet */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0 4px; }
.stepper span { height: 6px; border-radius: 3px; background: var(--line); }
.stepper span.on { background: var(--ink); }
.stepper.is-failed span.on { background: var(--bad); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .95rem; }
.kv dt { color: var(--ink-3); }
.kv dd { font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.items-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.items-table td { padding: 6px 0; vertical-align: top; }
.items-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.items-table tr.total td { border-top: 1.5px dashed var(--line-strong); padding-top: 10px; font-family: var(--display); font-weight: 750; font-size: 1.15rem; }

.tpl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tpl-btn { min-height: 54px; text-align: left; justify-content: flex-start; white-space: normal; font-size: .9rem; }
.msg-preview { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: .95rem; line-height: 1.45; }

/* Draft item rows on confirmation card */
.item-row { display: grid; grid-template-columns: 1fr 1fr 44px; grid-template-areas: "name name name" "qty price del"; gap: 6px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.item-row > :nth-child(1) { grid-area: name; }
.item-row > :nth-child(2) { grid-area: qty; }
.item-row > :nth-child(3) { grid-area: price; }
.item-row > :nth-child(4) { grid-area: del; }
.item-row + .item-row { margin-top: 8px; }
.item-row .input { min-height: 44px; padding: 8px 10px; }
.item-row .prefix > .input { padding-left: 46px; }
.item-row .prefix > span { left: 10px; font-size: .8rem; }
@media (min-width: 560px) { .item-row .prefix > span { display: none; } .item-row .prefix > .input { padding-left: 10px; } }
.item-row.is-flag .input { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
.item-head { display: none; }
@media (min-width: 560px) {
	.item-row { grid-template-columns: 1fr 72px 100px 44px; grid-template-areas: "name qty price del"; padding-bottom: 0; border-bottom: 0; }
	.item-head { display: grid; grid-template-columns: 1fr 72px 100px 44px; gap: 6px; font-size: .78rem; color: var(--ink-3); font-weight: 650; margin-bottom: 4px; }
}
.unread { border-radius: 12px; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); padding: 12px; }
.unread li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; flex-wrap: wrap; }
.unread li + li { border-top: 1px dashed var(--line-strong); }
.unread q { quotes: "“" "”"; font-size: .93rem; flex: 1 1 180px; }
.unread .row { gap: 6px; }
.unread .btn { min-height: 38px; padding: 0 10px; font-size: .8rem; }
details.chatter summary { cursor: pointer; color: var(--ink-3); font-size: .86rem; min-height: 40px; display: flex; align-items: center; }
details.chatter li { color: var(--ink-3); font-size: .86rem; padding: 2px 0; }

/* Customer list */
.clist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.clist li + li { border-top: 1px solid var(--line); }
.crow { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; width: 100%; cursor: pointer; }
.crow:hover { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.crow:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.avatar--repeat { background: var(--accent-soft); color: var(--warn); }

/* ---------- Toasts and progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; overflow: hidden; }
.progress.is-on::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--accent); animation: prog 1s ease-in-out infinite; }
@keyframes prog { from { left: -40%; } to { left: 100%; } }
.toasts { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(var(--bnav-h) + 46px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
	pointer-events: auto; max-width: 480px; width: 100%; display: flex; gap: 10px; align-items: center;
	background: var(--side); color: var(--side-ink); border-radius: 14px; padding: 12px 12px 12px 16px; box-shadow: var(--shadow-2);
	animation: toast-in .3s var(--ease) both; font-weight: 550;
}
.toast--error { background: var(--bad); color: #fff; }
.toast__text { flex: 1; }
.toast button { background: transparent; border: 0; color: var(--accent); font-weight: 750; min-height: 40px; padding: 0 8px; }
.toast--error button { color: #fff; text-decoration: underline; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) { .toasts { bottom: 24px; left: auto; right: 24px; align-items: flex-end; width: 420px; } }

/* ---------- Paid stamp (the one big moment) ---------- */
.stamp-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; pointer-events: none; }
.stamp {
	font-family: var(--display); font-weight: 800; font-size: 3.4rem; letter-spacing: -.02em; line-height: 1;
	color: var(--accent-ink); background: var(--accent); padding: 18px 30px 16px; border-radius: 18px;
	box-shadow: 0 0 0 6px var(--paper), 0 0 0 9px var(--accent), var(--shadow-2);
	transform: rotate(-8deg); animation: stamp 1.3s var(--ease) both; text-align: center;
}
.stamp small { display: block; font-size: 1rem; font-weight: 650; letter-spacing: 0; margin-top: 6px; }
@keyframes stamp {
	0% { transform: rotate(-8deg) scale(2.2); opacity: 0; }
	22% { transform: rotate(-8deg) scale(.92); opacity: 1; }
	32% { transform: rotate(-8deg) scale(1.04); }
	42%, 78% { transform: rotate(-8deg) scale(1); opacity: 1; }
	100% { transform: rotate(-8deg) scale(1); opacity: 0; }
}
.ripple { position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--accent); animation: ripple 1s ease-out .2s both; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(40); opacity: 0; } }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 34px 20px; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-l); }
.empty__art { width: 120px; height: 84px; margin: 0 auto 14px; }
.empty .h2 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); max-width: 36ch; margin: 0 auto 16px; }
.empty .row { justify-content: center; }

/* ---------- Tour ---------- */
.tour { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; padding: 16px; background: rgba(15, 13, 30, .55); animation: fade .2s both; }
.tour__card { width: 100%; max-width: 440px; background: var(--paper); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow-2); animation: sheet-up .35s var(--ease) both; margin-bottom: env(safe-area-inset-bottom); }
.tour__art { height: 132px; border-radius: 16px; margin-bottom: 18px; background: var(--ink); position: relative; overflow: hidden; display: grid; place-items: center; }
.tour__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--wax) repeat-x; }
.tour__art svg { width: 76%; max-width: 280px; height: auto; }
.tour__steps { display: flex; gap: 6px; }
.tour__steps i { width: 24px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.tour__steps i.on { background: var(--ink); }
@media (min-width: 640px) { .tour { place-items: center; } }

/* ---------- Settings ---------- */
.set-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.set-list > li { padding: 14px 16px; }
.set-list > li + li { border-top: 1px solid var(--line); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }

/* Offline banner */
.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 85; background: var(--ink); color: var(--paper); text-align: center; font-size: .86rem; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; font-weight: 600; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.auth__band { height: 14px; background: var(--ink) var(--wax) repeat-x; }
.auth__wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: 28px 20px 40px; }
.auth__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 26px; }
.auth__brand span { font-family: var(--display); font-weight: 750; font-size: 1.35rem; letter-spacing: -.02em; }
.auth__title { font-family: var(--display); font-weight: 750; font-size: 2.1rem; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 8px; }
.auth__lead { color: var(--ink-2); margin-bottom: 22px; }
.auth__form .btn-primary { margin-top: 20px; }
.auth__alt { margin-top: 22px; text-align: center; color: var(--ink-2); font-size: .95rem; }
.auth__alt a { font-weight: 700; color: var(--ink); }
.auth__notice { padding: 12px 14px; border-radius: 12px; background: var(--good-soft); color: var(--ink); margin-bottom: 18px; font-weight: 550; }
.auth__errors { padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--ink); margin-bottom: 18px; }
.auth__errors li + li { margin-top: 4px; }
.auth__foot { text-align: center; padding: 18px; color: var(--ink-3); font-size: .85rem; }
.auth__foot a { color: var(--ink-2); }
.auth__foot a + a { margin-left: 18px; }
.auth__perks { margin: 0 0 24px; display: grid; gap: 10px; }
.auth__perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .94rem; }
.auth__perks svg { width: 20px; height: 20px; flex: none; color: var(--good); margin-top: 1px; }
.pw { position: relative; }
.pw .input { padding-right: 62px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--ink-2); font-weight: 650; font-size: .86rem; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 22px 0 6px; letter-spacing: -.01em; }
.prose p { color: var(--ink-2); }

/* Theme toggle in auth */
.theme-toggle { position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 14px; }


/* ---------- Public rider + tracking pages ---------- */
.job .auth__title { margin-bottom: 10px; }
.job__from { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 650; margin-bottom: 14px; }
.job__from .logo { width: 28px; height: 28px; }
.job__status { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 750; font-size: .9rem; background: var(--surface-2); color: var(--ink); margin-bottom: 16px; }
.job__status--picked { background: var(--accent); color: var(--accent-ink); }
.job__status--delivered { background: var(--good-soft); color: var(--good); }
.job__status--failed { background: var(--bad-soft); color: var(--bad); }
.job__collect { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.job__collect strong { font-size: 1.7rem; font-weight: 800; }
.job__collect--paid { background: var(--good-soft); color: var(--good); font-weight: 700; }
.job__card { margin-bottom: 22px; }
.job__card .h3 { margin-bottom: 4px; color: var(--ink-2); font-size: .92rem; }
.job__place { font-size: 1.1rem; font-weight: 650; }
.job__da { font-family: var(--display); font-weight: 750; font-size: 1.3rem; letter-spacing: .02em; margin-top: 4px; }
.job__who { margin-top: 8px; font-weight: 650; }
.job__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.job__actions .btn { padding: 0 8px; }
.job__items li { padding: 3px 0; }
.job__form { margin-top: 12px; }
.job__cod { padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); margin-bottom: 10px; font-weight: 650; }
.job__fail { margin-top: 18px; }
.job__fail summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 650; color: var(--ink-2); }
.track { margin: 8px 0 22px; position: relative; }
.track li { display: flex; gap: 14px; align-items: flex-start; padding: 0 0 18px; position: relative; color: var(--ink-3); font-weight: 600; }
.track li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line-strong); }
.track li:last-child::before { display: none; }
.track li.is-done { color: var(--ink); }
.track li.is-done::before { background: var(--ink); }
.track__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); flex: none; margin-top: 2px; position: relative; z-index: 1; }
.track li.is-done .track__dot { background: var(--ink); border-color: var(--ink); }
.track li.is-now .track__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.track li span .muted { display: block; font-weight: 500; }

/* Rider + pay code in the app */
.paycode { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--surface); border: 1.5px dashed var(--line-strong); font-weight: 650; }
.paycode strong { font-family: var(--display); font-size: 1.15rem; letter-spacing: .04em; }
.paycode .btn { min-height: 36px; padding: 0 10px; }
.badge-rider { background: var(--accent-soft); color: var(--warn); }
.rider-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rider-pick .chip { min-height: 44px; }
.timeline li { display: flex; gap: 10px; padding: 6px 0; font-size: .92rem; }
.timeline li span:first-child { color: var(--ink-3); min-width: 74px; font-variant-numeric: tabular-nums; }
.match-exact { border: 2px solid var(--good); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.stamp { animation: stamp-calm 1.4s linear both !important; }
	@keyframes stamp-calm { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
	.progress.is-on::before { left: 0; width: 100%; animation: none; opacity: .6; }
}

@media (forced-colors: active) {
	.btn, .chip, .input, .textarea, .card, .ocard { border: 1px solid CanvasText; }
	.bar__fill { background: CanvasText; }
}

@media print {
	.sp-side, .sp-top, .bnav, .fab, .toasts { display: none !important; }
	body { background: #fff; color: #000; }
}
