/*
 * Dispyro seller dashboard (dashboard.dispyro.com).
 * Builds on public.css tokens (--dsp-*), so brand colors and fonts from the Customizer apply here too.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.dash {
	margin: 0; min-height: 100vh; font: 400 15px/1.55 var(--dsp-font); color: var(--dsp-ink);
	background: var(--dsp-bg); -webkit-font-smoothing: antialiased;
}
.dash a { color: inherit; }
.dash h1, .dash h2, .dash h3 { font-family: var(--dsp-display); letter-spacing: -.01em; color: var(--dsp-ink); }
.dash-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--dsp-ink); color: var(--dsp-surface) !important; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.dash-skip:focus { top: 12px; }
.dash-icon { flex: none; display: block; }
.dash :focus-visible { outline: 3px solid var(--dsp-ember); outline-offset: 2px; }

/* ---------- Layout ---------- */
.dash-app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--dsp-surface) 251px, var(--dsp-line) 251px 252px, transparent 252px); }
.dash-main {
	min-width: 0; position: relative; isolation: isolate;
	background:
		radial-gradient(900px 420px at 92% -120px, var(--dsp-ember-soft) 0%, transparent 70%),
		radial-gradient(760px 420px at 10% -160px, var(--dsp-peri-soft) 0%, transparent 70%);
	background-repeat: no-repeat;
}
.dash-content { max-width: 1200px; margin: 0 auto; padding: 26px 32px 64px; outline: 0; }

/* ---------- Sidebar ---------- */
.dash-side {
	position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px;
	padding: 18px 14px; background: var(--dsp-surface); border-right: 1px solid var(--dsp-line);
}
.dash-side__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 6px; }
.dash-iconbtn.dash-side__close { display: none; }
.dash-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--dsp-display); color: var(--dsp-ink); }
.dash-brand svg { width: 28px; height: 28px; color: var(--dsp-ink); }
.dash-brand img { height: var(--logo-h, 30px); width: auto; max-width: 180px; display: block; }
.dash-brand .brand__logo--dark { display: none; }
:root[data-theme="dark"] .dash-brand .brand__logo--light { display: none; }
:root[data-theme="dark"] .dash-brand .brand__logo--dark { display: block; }

.dash-nav { display: grid; gap: 2px; }
.dash-nav a {
	display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border-radius: 10px;
	text-decoration: none; color: var(--dsp-slate); font-weight: 500; position: relative;
}
.dash-nav a:hover { background: var(--dsp-surface-2); color: var(--dsp-ink); }
.dash-nav a.is-active { background: var(--dsp-ember-soft); color: var(--dsp-ember-text); font-weight: 600; }
.dash-nav a.is-active .dash-icon { color: var(--dsp-ember); }
.dash-nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-nav__group { margin: 14px 12px 4px; font-size: .78rem; font-weight: 600; color: var(--dsp-slate); }
.dash-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--dsp-crimson); color: #fff; font: 700 .74rem/22px var(--dsp-font); text-align: center; }
.dash-side__foot { margin-top: auto; display: grid; gap: 12px; }
.dash-nav--quiet a { min-height: 36px; font-size: .92rem; }
.dash-plan {
	display: grid; gap: 6px; padding: 14px; border-radius: 12px; text-decoration: none;
	background: linear-gradient(135deg, var(--dsp-ember-soft), var(--dsp-peri-soft)); border: 1px solid var(--dsp-line);
}
.dash-plan__name { font: 700 .98rem var(--dsp-display); color: var(--dsp-ink); }
.dash-plan__use { font-size: .82rem; color: var(--dsp-slate); }
.dash-meter { display: block; height: 6px; border-radius: 999px; background: var(--dsp-surface); overflow: hidden; }
.dash-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--dsp-ember); }
.dash-meter.is-full > span { background: var(--dsp-crimson); }
.dash-kpi .dash-meter, .dsp-panel .dash-meter { background: var(--dsp-surface-2); }

/* ---------- Top bar ---------- */
.dash-top {
	position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 32px;
	background: color-mix(in srgb, var(--dsp-bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--dsp-line);
}
.dash-iconbtn.dash-menu { display: none; }
.dash-search { position: relative; flex: 1; max-width: 480px; display: flex; align-items: center; }
.dash-search .dash-icon { position: absolute; left: 12px; color: var(--dsp-slate); pointer-events: none; }
.dash-search input {
	width: 100%; height: 40px; padding: 0 40px 0 40px; border-radius: 10px; border: 1px solid var(--dsp-line);
	background: var(--dsp-surface); color: var(--dsp-ink); font: 400 .95rem var(--dsp-font);
}
.dash-search input::placeholder { color: var(--dsp-slate); }
.dash-search kbd { position: absolute; right: 10px; font: 600 .75rem var(--dsp-font); color: var(--dsp-slate); border: 1px solid var(--dsp-line); border-radius: 6px; padding: 1px 7px; background: var(--dsp-surface-2); }
.dash-search input:focus + kbd { display: none; }
.dash-top__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dash-iconbtn {
	width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--dsp-line);
	background: var(--dsp-surface); color: var(--dsp-ink); cursor: pointer; padding: 0;
}
.dash-iconbtn:hover { background: var(--dsp-surface-2); }
.dash-mode__moon { display: none; }
:root[data-theme="dark"] .dash-mode__sun { display: none; }
:root[data-theme="dark"] .dash-mode__moon { display: block; }
.dash-scope { font-size: .82rem; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--dsp-line-strong); color: var(--dsp-slate); }
.dash-scope.is-all { border-style: solid; border-color: var(--dsp-ember); color: var(--dsp-ember-text); background: var(--dsp-ember-soft); }
.dash-user { position: relative; }
.dash-user summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--dsp-line); background: var(--dsp-surface); }
.dash-user summary::-webkit-details-marker { display: none; }
.dash-avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--dsp-font); color: #fff; background: linear-gradient(135deg, var(--dsp-ember), var(--dsp-accent-2)); }
.dash-user__name { font-weight: 600; font-size: .92rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user__menu {
	position: absolute; right: 0; top: calc(100% + 8px); width: 248px; padding: 8px; display: grid; gap: 2px;
	background: var(--dsp-surface); border: 1px solid var(--dsp-line); border-radius: 12px; box-shadow: var(--dsp-shadow);
}
.dash-user__menu p { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--dsp-line); margin-bottom: 4px; font-size: .9rem; overflow-wrap: anywhere; }
.dash-user__menu p span { color: var(--dsp-slate); font-size: .85rem; }
.dash-user__menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; font-size: .93rem; }
.dash-user__menu a:hover { background: var(--dsp-surface-2); }

/* ---------- Page head and messages ---------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 22px; }
.dash-head h1 { margin: 0; font-size: 1.85rem; line-height: 1.15; letter-spacing: -.02em; }
.dash-head p { margin: 6px 0 0; color: var(--dsp-slate); max-width: 68ch; }
.dash-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-head__actions .dsp-btn { padding: 9px 14px; font-size: .93rem; }
.dash-msg { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.dash-msg.is-ok { background: var(--dsp-green-soft); color: var(--dsp-green); }
.dash-msg.is-error { background: var(--dsp-crimson-soft); color: var(--dsp-crimson); }
.dash-preview { margin: 0 0 14px; padding: 9px 14px; border-radius: 10px; font-size: .88rem; background: var(--dsp-amber-soft); color: var(--dsp-ink); }
.dash-preview--all { background: var(--dsp-ember-soft); }
.dash-hint { margin: -6px 0 12px; color: var(--dsp-slate); font-size: .92rem; }
.dash-link { color: var(--dsp-ember-text); font-weight: 600; font-size: .92rem; }

/* Panels in the dashboard */
.dash .dsp-panel { margin: 0 0 18px; padding: 22px; gap: 12px; }
.dash .dsp-panel h2 { font-size: 1.12rem; margin: 0; }
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-count { min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--dsp-surface-2); font: 700 .8rem/24px var(--dsp-font); text-align: center; color: var(--dsp-ink); }

/* ---------- Order pipeline (the overview's signature strip) ---------- */
.dash-flow {
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 18px;
	background: var(--dsp-surface); border: 1px solid var(--dsp-line); border-radius: 16px; box-shadow: var(--dsp-shadow); overflow: hidden;
}
.dash-flow__step {
	--tone: var(--dsp-line-strong);
	position: relative; display: grid; gap: 2px; padding: 18px 22px 16px; text-decoration: none; color: var(--dsp-slate);
	border-top: 3px solid transparent;
}
.dash-flow__step + .dash-flow__step { border-left: 1px solid var(--dsp-line); }
.dash-flow__step:not(:last-child)::after {
	content: ""; position: absolute; right: -8px; top: 50%; width: 14px; height: 14px; z-index: 1;
	background: var(--dsp-surface); border-top: 1px solid var(--dsp-line); border-right: 1px solid var(--dsp-line);
	transform: translateY(-50%) rotate(45deg);
}
.dash-flow__step:hover { background: var(--dsp-surface-2); }
.dash-flow__step:hover::after { background: var(--dsp-surface-2); }
.dash-flow__n { font: 700 2rem/1.1 var(--dsp-display); color: var(--dsp-line-strong); font-variant-numeric: tabular-nums; }
.dash-flow__label { font-size: .88rem; font-weight: 500; }
.dash-flow__step.has-items { border-top-color: var(--tone); color: var(--dsp-ink); }
.dash-flow__step.has-items .dash-flow__n { color: var(--dsp-ink); }
.dash-flow__step--unsigned { --tone: #D9A21B; }
.dash-flow__step--hold { --tone: var(--dsp-ember); }
.dash-flow__step--ready { --tone: var(--dsp-green); }
.dash-flow__step--shipped { --tone: #7B83FF; }
.dash-flow__step--delivered { --tone: var(--dsp-ink); }
.dash-flow__step--hold.has-items .dash-flow__n { color: var(--dsp-ember-text); }
.dash-flow__step--ready.has-items .dash-flow__n { color: var(--dsp-green); }

/* ---------- Numbers ---------- */
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-kpi {
	display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: 14px; text-decoration: none;
	background: var(--dsp-surface); border: 1px solid var(--dsp-line); box-shadow: var(--dsp-shadow);
}
a.dash-kpi:hover { border-color: var(--dsp-line-strong); }
.dash-kpi.is-alert { border-color: var(--dsp-crimson); box-shadow: 0 0 0 3px var(--dsp-crimson-soft); }
.dash-kpi__label { font-size: .86rem; color: var(--dsp-slate); font-weight: 500; }
.dash-kpi__value { font: 700 1.75rem/1.1 var(--dsp-display); font-variant-numeric: tabular-nums; color: var(--dsp-ink); }
.dash-kpi__value small { font-size: .95rem; font-weight: 600; color: var(--dsp-slate); }
.dash-kpi__note { font-size: .82rem; color: var(--dsp-slate); }
.dash-kpi__note.is-warn { color: var(--dsp-crimson); font-weight: 600; }
.dash-big { font: 700 2rem/1 var(--dsp-display); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-grid > .dsp-panel { margin: 0; }
.dash-grid--even { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.dash-grid + .dsp-panel { margin-top: 18px; }

/* Needs you */
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--dsp-line); }
.dash-item:first-child { border-top: 0; padding-top: 4px; }
.dash-item > i { width: 10px; height: 10px; border-radius: 50%; background: var(--dsp-slate); align-self: start; margin-top: 6px; }
.dash-item--urgent > i { background: var(--dsp-crimson); box-shadow: 0 0 0 4px var(--dsp-crimson-soft); }
.dash-item--warn > i { background: #D9A21B; box-shadow: 0 0 0 4px var(--dsp-amber-soft); }
.dash-item--good > i { background: var(--dsp-green); box-shadow: 0 0 0 4px var(--dsp-green-soft); }
.dash-item strong { display: block; font-weight: 600; }
.dash-item p { margin: 2px 0 0; color: var(--dsp-slate); font-size: .9rem; }
.dash-allclear { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.dash-allclear > .dash-icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--dsp-green-soft); color: var(--dsp-green); }
.dash-allclear p { margin: 2px 0 0; color: var(--dsp-slate); }

/* Activity feed */
.dash-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-feed__item { position: relative; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; }
.dash-feed__item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 24px; bottom: -6px; width: 2px; background: var(--dsp-line); }
.dash-feed__item > i { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--dsp-surface); border: 2px solid var(--dsp-line-strong); }
.dash-feed__item--signed > i, .dash-feed__item--ready > i, .dash-feed__item--delivered > i { border-color: var(--dsp-green); background: var(--dsp-green-soft); }
.dash-feed__item--shipped > i { border-color: #7B83FF; background: var(--dsp-peri-soft); }
.dash-feed__item--dispute > i, .dash-feed__item--void > i, .dash-feed__item--warn > i { border-color: var(--dsp-crimson); background: var(--dsp-crimson-soft); }
.dash-feed__item--new > i { border-color: var(--dsp-ember); background: var(--dsp-ember-soft); }
.dash-feed a { text-decoration: none; min-width: 0; }
.dash-feed a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.dash-feed strong { display: block; font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }
.dash-feed span { display: block; font-size: .84rem; color: var(--dsp-slate); }
.dash-feed time { font-size: .8rem; color: var(--dsp-slate); white-space: nowrap; padding-top: 2px; }

/* Chart */
.dash-chart__plot { position: relative; }
.dash-chart__plot svg { display: block; width: 100%; height: 210px; overflow: visible; }
.dash-chart__grid { stroke: var(--dsp-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash-chart__base { stroke: var(--dsp-line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash-chart__axis { fill: var(--dsp-slate); font: 500 11px var(--dsp-font); }
.dash-chart__bar { fill: var(--dsp-ember); }
.dash-chart__hit { fill: transparent; }
.dash-chart__day { outline: 0; cursor: default; }
.dash-chart__day:hover .dash-chart__hit, .dash-chart__day:focus .dash-chart__hit { fill: var(--dsp-surface-2); }
.dash-chart__day:hover .dash-chart__bar, .dash-chart__day:focus .dash-chart__bar { fill: var(--dsp-ember-deep); }
.dash-chart__table summary { cursor: pointer; font-size: .88rem; color: var(--dsp-slate); }
.dash-tip {
	position: fixed; z-index: 50; pointer-events: none; padding: 7px 10px; border-radius: 8px; font-size: .84rem; font-weight: 500;
	background: var(--dsp-ink); color: var(--dsp-surface); box-shadow: var(--dsp-shadow); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap;
}

/* Onboarding */
.dash-onboard ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: ob; }
.dash-onboard li { counter-increment: ob; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; background: var(--dsp-surface); border: 1px solid var(--dsp-line); }
.dash-onboard li::before { content: counter(ob); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--dsp-display); background: var(--dsp-ember-soft); color: var(--dsp-ember-text); }
.dash-onboard li:first-child::before { background: var(--dsp-ember-deep); color: #fff; }
.dash-onboard p { margin: 2px 0 0; color: var(--dsp-slate); font-size: .92rem; }

/* ---------- Orders ---------- */
.dash-tabs { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.dash-tabs a {
	display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
	text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--dsp-slate); background: var(--dsp-surface); border: 1px solid var(--dsp-line);
}
.dash-tabs a span { font-weight: 700; font-size: .78rem; color: var(--dsp-slate); background: var(--dsp-surface-2); border-radius: 999px; padding: 1px 8px; }
.dash-tabs a:hover { color: var(--dsp-ink); border-color: var(--dsp-line-strong); }
.dash-tabs a.is-active { background: var(--dsp-ink); border-color: var(--dsp-ink); color: var(--dsp-surface); }
.dash-tabs a.is-active span { background: color-mix(in srgb, var(--dsp-surface) 22%, transparent); color: var(--dsp-surface); }
.dash-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.dash-filters input, .dash-filters select {
	height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--dsp-line-strong); background: var(--dsp-surface);
	color: var(--dsp-ink); font: 400 .93rem var(--dsp-font);
}
.dash-filters input { flex: 1 1 260px; max-width: 420px; }
.dash-filters .dsp-btn { padding: 9px 14px; font-size: .92rem; }
.dash-tablecard { padding: 6px 6px 0 !important; gap: 0 !important; }
.dash-tablecard > .dash-panel-head { padding: 14px 14px 6px; }
.dash-tablecard > p { padding: 0 14px 16px; }
.dash-table th { padding: 12px 14px; }
.dash-table td { padding: 13px 14px; vertical-align: middle; }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tr[data-href] { cursor: pointer; }
.dash-table tbody tr:hover td { background: var(--dsp-surface-2); }
.dash-table a { text-decoration: none; }
.dash-table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dash-sub { display: block; font-size: .82rem; color: var(--dsp-slate); margin-top: 2px; }
.dash-num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.dash-risk { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--dsp-slate); }
.dash-risk i { width: 8px; height: 8px; border-radius: 50%; background: var(--dsp-green); }
.dash-risk--medium i { background: #D9A21B; }
.dash-risk--high { color: var(--dsp-crimson); }
.dash-risk--high i { background: var(--dsp-crimson); }
.dash-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--dsp-line); font-size: .88rem; color: var(--dsp-slate); }
.dash-pager__links { display: flex; gap: 8px; }
.dash-empty { justify-items: start; }
.dash-due { font-weight: 600; }
.dash-due.is-soon { color: #A66A00; }
.dash-due.is-urgent { color: var(--dsp-crimson); }
:root[data-theme="dark"] .dash-due.is-soon { color: #F5C66A; }

/* ---------- One order ---------- */
.dash-steps {
	list-style: none; margin: 0 0 18px; padding: 18px 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	background: var(--dsp-surface); border: 1px solid var(--dsp-line); border-radius: 14px; box-shadow: var(--dsp-shadow);
}
.dash-steps li { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding: 0 4px; }
.dash-steps li:not(:first-child)::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--dsp-line); z-index: 0; }
.dash-steps li.is-done:not(:first-child)::before, .dash-steps li.is-now:not(:first-child)::before { background: var(--dsp-green); }
.dash-steps li.is-now:not(:first-child)::before { background: linear-gradient(90deg, var(--dsp-green), var(--dsp-line)); }
.dash-steps__dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--dsp-surface); border: 2px solid var(--dsp-line-strong); }
.dash-steps__dot .dash-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.dash-steps li.is-done .dash-steps__dot { background: var(--dsp-green); border-color: var(--dsp-green); color: #fff; }
.dash-steps li.is-now .dash-steps__dot { border-color: var(--dsp-ember); box-shadow: 0 0 0 4px var(--dsp-ember-soft); }
.dash-steps__label { font-weight: 600; font-size: .88rem; }
.dash-steps li.is-next .dash-steps__label { color: var(--dsp-slate); font-weight: 500; }
.dash-steps time { font-size: .76rem; color: var(--dsp-slate); }
.dash-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-next { border-left: 4px solid var(--dsp-line-strong); }
.dash-next--urgent { border-left-color: var(--dsp-crimson); background: linear-gradient(90deg, var(--dsp-crimson-soft), var(--dsp-surface) 60%); }
.dash-next--good { border-left-color: var(--dsp-green); background: linear-gradient(90deg, var(--dsp-green-soft), var(--dsp-surface) 60%); }
.dash-next h2 { font-size: 1.2rem !important; }
.dash-next p { max-width: 70ch; }
.dash-blockers { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 500; }
.dash-inline { display: inline; margin: 0; }
.dash-shipform .dsp-grid-2 { gap: 12px; }
.dash-shipform .dsp-grid-2 > div { display: grid; gap: 6px; }
.dash-quote { margin: 0; padding: 12px 14px; border-left: 3px solid var(--dsp-crimson); background: var(--dsp-surface-2); border-radius: 0 10px 10px 0; }
.dash-dl { margin: 0; display: grid; }
.dash-dl > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--dsp-line); }
.dash-dl > div:first-child { border-top: 0; padding-top: 0; }
.dash-dl dt { color: var(--dsp-slate); font-size: .9rem; }
.dash-dl dd { margin: 0; overflow-wrap: anywhere; }
.dash-riskcard--high { border-color: var(--dsp-crimson); }
.dash-riskcard--medium { border-color: #E3B341; }
.dash-flags { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.dash-stack { display: grid; gap: 8px; }
.dash-stack .dsp-btn { justify-self: stretch; }
.dash-timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.dash-timeline li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--dsp-line); font-size: .92rem; }
.dash-timeline li:first-child { border-top: 0; }
.dash-timeline time { color: var(--dsp-slate); font-size: .84rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-quiet { box-shadow: none !important; background: transparent !important; border-style: dashed !important; }
.dash-quiet h2 { font-size: 1rem !important; }

/* Disputes explainer */
.dash-howto { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--dsp-slate); }
.dash-howto strong { color: var(--dsp-ink); }

/* Reused account pieces */
.dash-reuse { max-width: none; }
.dash-reuse > .dsp-panel:last-child { margin-bottom: 0; }
.dash-plans .dsp-pricing { margin-top: 4px; }
.dash-plans .dsp-plan__price { font-size: 2rem; }
@media (max-width: 1280px) { .dash-plans .dsp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .dash-plans .dsp-plans { grid-template-columns: minmax(0, 1fr); } }
.dash-planname { font-size: 2rem !important; }

/* ---------- Agreements ---------- */
.dash-section { margin: 0 0 22px; }
.dash-section__head { margin: 0 0 12px; }
.dash-section__head h2 { margin: 0; font-size: 1.15rem; }
.dash-section__head p { margin: 4px 0 0; color: var(--dsp-slate); font-size: .92rem; }
.dash-starters, .dash-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.dash-starters .dsp-panel, .dash-tpls .dsp-panel { margin: 0; }
.dash-starter h3, .dash-tpl h3 { margin: 0; font-size: 1.02rem; }
.dash-starter { align-content: start; }
.dash-starter .dsp-btn { margin-top: auto; }
.dash-starter--blank { border-style: dashed; box-shadow: none; }
.dash-tpl__top { display: flex; gap: 12px; align-items: flex-start; }
.dash-tpl__top > .dash-icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--dsp-ember-soft); color: var(--dsp-ember-text); }
.dash-tpl__top p { margin: 2px 0 0; }
.dash-tpl__facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .88rem; color: var(--dsp-slate); }
.dash-tpl__facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dsp-line-strong); margin: 0 8px 2px 0; }
.dash-tpl--add { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 170px; border: 1.5px dashed var(--dsp-line-strong); border-radius: var(--dsp-radius); color: var(--dsp-slate); text-decoration: none; font-weight: 600; }
.dash-tpl--add span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--dsp-surface); border: 1px solid var(--dsp-line); }
.dash-tpl--add:hover { border-color: var(--dsp-ember); color: var(--dsp-ember-text); }
.dash-proof { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 22px; }
.dash-proof li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--dsp-ember); }
.dash-proof span { color: var(--dsp-slate); font-size: .9rem; }

.dash-editor { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.dash-editor__side { position: sticky; top: 84px; }
.dash-editor__save { margin-bottom: 18px; }
.dash-field { display: grid; gap: 6px; align-content: start; }
.dash-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dash-var { font: 600 .8rem var(--dsp-font); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--dsp-line-strong); background: var(--dsp-surface); color: var(--dsp-ink); cursor: pointer; }
.dash-var:hover { border-color: var(--dsp-ember); color: var(--dsp-ember-text); background: var(--dsp-ember-soft); }
.dash .dsp-panel input[type="url"], .dash .dsp-panel input[type="search"], .dash .dsp-panel input[type="tel"] {
	width: 100%; font: 400 1rem var(--dsp-font); padding: 11px 12px; border: 1px solid var(--dsp-line-strong);
	border-radius: var(--dsp-radius-sm); background: var(--dsp-surface); color: var(--dsp-ink); min-height: 44px;
}
.dash .dash-terms { font: 400 .95rem/1.6 var(--dsp-font); min-height: 260px; }
.dash-tplpreview { max-height: 460px; }
.dash-tplpreview mark { background: var(--dsp-amber-soft); color: inherit; padding: 0; border-radius: 3px; box-shadow: 0 0 0 2px var(--dsp-amber-soft); }
.dash-dl--tight > div { grid-template-columns: 90px minmax(0, 1fr); padding: 6px 0; }
.dash-checks { display: grid; gap: 8px; }
.dash .dsp-panel .dash-select-sm { height: auto; padding: 6px 30px 6px 10px; border-radius: 8px; border: 1px solid var(--dsp-line-strong); background: var(--dsp-surface); color: var(--dsp-ink); font: 500 .9rem var(--dsp-font); max-width: 60%; min-height: 0 !important; width: auto !important; }
.dash-sendcard { gap: 10px !important; }
.dash-sendcard label { font-weight: 600; font-size: .93rem; }
.dash-delete { margin: -4px 0 0; }
.dash-link--danger { background: none; border: 0; padding: 0; cursor: pointer; color: var(--dsp-crimson); font: 600 .9rem var(--dsp-font); text-decoration: underline; text-underline-offset: 3px; }

/* Signing evidence and signature replay */
.dash-replay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-replay__pad { flex: 1 1 260px; max-width: 420px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--dsp-line); color: #121A26; }
.dsp-replay { display: block; width: 100%; height: auto; max-height: 130px; }
.dsp-replay path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.dash-replay.is-playing .dsp-replay path { animation: dsp-draw var(--d) linear var(--b) both; }
@keyframes dsp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .dash-replay.is-playing .dsp-replay path { animation: none; } }
@media (max-width: 1100px) {
	.dash-editor { grid-template-columns: minmax(0, 1fr); }
	.dash-editor__side { position: static; }
}

/* ---------- Login ---------- */
.dash--auth { background: var(--dsp-bg); }
.dash-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.dash-auth__story {
	display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 56px clamp(28px, 6vw, 88px);
	background:
		radial-gradient(80% 70% at 100% 0%, var(--dsp-ember-soft) 0%, transparent 65%),
		radial-gradient(70% 70% at 0% 100%, var(--dsp-peri-soft) 0%, transparent 65%),
		var(--dsp-surface);
	border-right: 1px solid var(--dsp-line);
}
.dash-auth__brand { margin-bottom: 18px; }
.dash-auth__story h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; max-width: 15ch; }
.dash-auth__story > p { margin: 0; color: var(--dsp-slate); max-width: 42ch; }
.dash-auth__file { list-style: none; margin: 0; padding: 8px; max-width: 380px; background: var(--dsp-surface); border: 1px solid var(--dsp-line); border-radius: 14px; box-shadow: var(--dsp-shadow); }
.dash-auth__file li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 500; }
.dash-auth__file li + li { border-top: 1px solid var(--dsp-line); }
.dash-auth__file b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--dsp-green-soft); color: var(--dsp-green); }
.dash-auth__file b .dash-icon { width: 16px; height: 16px; stroke-width: 2.4; }
.dash-auth__file li.is-file b { background: var(--dsp-ember-soft); color: var(--dsp-ember-text); }
.dash-auth__form { display: flex; flex-direction: column; justify-content: center; padding: 48px 24px; }
.dash-auth__form .dsp-account { width: 100%; max-width: 440px; margin: 0 auto; }
.dash-auth__back { text-align: center; margin: 18px 0 0; }
.dash-auth__back a { display: inline-flex; gap: 8px; align-items: center; color: var(--dsp-slate); font-size: .9rem; text-decoration: none; }
.dash-auth__back a:hover { color: var(--dsp-ink); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
	.dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dash-grid, .dash-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.dash-app { grid-template-columns: minmax(0, 1fr); background: none; }
	.dash-side {
		position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; transform: translateX(-102%);
		transition: transform .2s ease, visibility 0s linear .2s; visibility: hidden; box-shadow: 0 0 40px rgba(0, 0, 0, .25);
	}
	.dash-side.is-open { transform: none; visibility: visible; transition: transform .2s ease; }
	.dash-iconbtn.dash-side__close { display: inline-grid; }
	.dash-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(10, 14, 22, .45); }
	.dash-scrim[hidden] { display: none; }
	.dash-iconbtn.dash-menu { display: inline-grid; }
	.dash-top { padding: 0 16px; gap: 10px; }
	.dash-content { padding: 20px 16px 56px; }
	.dash-user__name, .dash-search kbd { display: none; }
	.dash-user summary { padding: 4px; }
	.dash-auth { grid-template-columns: minmax(0, 1fr); }
	.dash-auth__story { padding: 28px 20px 8px; border-right: 0; background: transparent; gap: 0; }
	.dash-auth__story > :not(.dash-auth__brand) { display: none; }
	.dash-auth__brand { margin: 0; text-align: center; }
	.dash-auth__form { justify-content: flex-start; padding: 20px 16px 40px; }
}
@media (max-width: 720px) {
	.dash-head h1 { font-size: 1.5rem; }
	.dash-kpis, .dash-kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dash-grid--even { grid-template-columns: minmax(0, 1fr); }
	.dash-kpi { padding: 14px; }
	.dash-kpi__value { font-size: 1.35rem; }
	.dash-flow__step { padding: 12px 8px 10px; text-align: center; }
	.dash-flow__step:not(:last-child)::after { display: none; }
	.dash-flow__n { font-size: 1.4rem; }
	.dash-flow__label { font-size: .7rem; line-height: 1.25; }
	.dash-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 14px 8px; }
	.dash-steps__label { font-size: .74rem; }
	.dash-steps time { display: none; }
	.dash-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.dash-filters input { max-width: none; }
	.dash-filters select, .dash-filters .dsp-btn { flex: 1 1 auto; }
	.dash-item { grid-template-columns: 10px minmax(0, 1fr); }
	.dash-item > .dsp-btn { grid-column: 2; justify-self: start; }
	.dash-onboard li { grid-template-columns: 36px minmax(0, 1fr); }
	.dash-onboard li .dsp-btn { grid-column: 2; }
	/* Tables become stacked cards. */
	.dash-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.dash-table, .dash-table tbody, .dash-table tr, .dash-table td { display: block; width: 100%; }
	.dash-table tr { padding: 12px 10px; border-bottom: 1px solid var(--dsp-line); }
	.dash-table tbody tr:last-child { border-bottom: 0; }
	.dash-table td { position: relative; padding: 4px 4px 4px 104px; border: 0; min-height: 28px; }
	.dash-table td::before { content: attr(data-label); position: absolute; left: 4px; top: 6px; width: 92px; color: var(--dsp-slate); font-size: .8rem; font-weight: 600; }
	.dash-table td:empty { display: none; }
	.dash-table tbody tr:hover td { background: none; }
	.dash-table .dsp-pill { justify-self: start; }
}
@media (max-width: 380px) {
	.dash-kpis, .dash-kpis--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.dash-side { transition: none; }
}
@media print {
	.dash-side, .dash-top, .dash-head__actions, .dash-tip { display: none !important; }
	.dash-app { display: block; }
	.dash-main { background: none; }
}

/* Services mode: order type switch, folded options, delivery form */
.dash-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.dash-seg legend { width: 100%; margin-bottom: 6px; color: var(--dsp-slate); }
.dash-seg label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--dsp-line); border-radius: 999px; background: var(--dsp-surface); cursor: pointer; font-weight: 600; font-size: .9rem; }
.dash-seg label:has(input:checked) { border-color: var(--dsp-ember); background: var(--dsp-ember-soft); color: var(--dsp-ember-text); }
.dash-seg input { accent-color: var(--dsp-ember); margin: 0; }
.dash-more { border: 1px dashed var(--dsp-line-strong); border-radius: 10px; padding: 10px 14px; }
.dash-more > summary { cursor: pointer; font-weight: 600; }
.dash-more[open] > summary { margin-bottom: 10px; }
.dash-more[open] { display: grid; gap: 8px; }
.dash-shipform h3 { margin: 8px 0 0; font-size: 1rem; }
.dash-next .dash-shipform { margin-top: 6px; }

/* Recovery kit */
.dash-recover-steps { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.dash-recover-steps li::marker { color: var(--dsp-ember); font-weight: 700; }
.dash-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.dash-inline-form label { font-weight: 600; font-size: .9rem; }
.dash-inline-form select { width: auto; min-width: 220px; }
.dash-guide > div { grid-template-columns: minmax(120px, 170px) 1fr; }
.dash-links { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.dash-links a { color: var(--dsp-ember-text); font-weight: 600; }
.dash-sendbox { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--dsp-surface-2); display: grid; gap: 8px; }
.dash-sendbox h3 { margin: 0; font-size: 1rem; }
.dash-sentlog { margin-top: 12px; }
@media (max-width: 640px) { .dash-guide > div { grid-template-columns: 1fr; } .dash-inline-form select { min-width: 0; width: 100%; } }
