/* Base styles, shared primitives and prototype chrome. Uses tokens from tokens.css only (D-078).
   Shared by the prototype (every surface) and the Merchant Dashboard; the Verified Capture Client has its own
   stylesheet on the same tokens (client/src/ui/styles.css). */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font: var(--type-body); color: var(--color-text); background: var(--color-ground); -webkit-text-size-adjust: 100%; font-feature-settings: "ss01" 0; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--color-link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
/* Headings take focus programmatically on each new screen (for screen readers); they are not controls, so no ring. */
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--color-primary-soft); }

.t-display { font: var(--type-display); letter-spacing: var(--tracking-tight); }
.t-title { font: var(--type-title); letter-spacing: var(--tracking-tight); }
.t-heading { font: var(--type-heading); letter-spacing: -0.01em; }
.t-body { font: var(--type-body); }
.t-label { font: var(--type-label); }
.t-caption { font: var(--type-caption); }
.t-overline { font: var(--type-overline); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); }
.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); }

/* State switching (prototype). */
[data-state] { display: none; }
[data-state].is-active { display: block; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px;
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-input); border: 1px solid transparent;
  font: var(--type-label); font-size: 1rem; text-decoration: none; cursor: pointer; color: var(--color-text);
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary-edge, transparent); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.btn-primary:hover { background: var(--color-primary-hover, var(--color-primary)); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); box-shadow: var(--elevation-1); }
.btn-secondary:hover { border-color: var(--color-border-strong); }
.btn-quiet { background: transparent; color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-border-strong); text-underline-offset: 4px; padding-inline: var(--space-2); }
.btn-quiet:hover { text-decoration-color: currentColor; }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 36px; padding: var(--space-2) var(--space-4); font: var(--type-label); }
.btn-danger { background: var(--color-surface); color: var(--color-critical); border-color: var(--color-critical); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Page transitions: calm, short, never bouncy ---------- */
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { @keyframes page-in { from { opacity: 0; } to { opacity: 1; } } }

/* ===================== Surface C (prototype mirror of the client) ===================== */
.claimant { min-height: 100vh; min-height: 100dvh; background: var(--color-surface); color: var(--color-text); }
.claimant-page { position: relative; max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: var(--space-4) var(--space-5) 0; animation: page-in var(--duration-slow) var(--ease-out) both;
  background: radial-gradient(120% 220px at 50% -60px, color-mix(in srgb, var(--color-accent) 9%, transparent), transparent 70%); }
.claimant-page::before { content: ""; position: absolute; left: var(--space-5); right: var(--space-5); top: 0; height: 3px; border-radius: 0 0 var(--radius-pill) var(--radius-pill); background: var(--color-accent); }
.claimant-body { flex: 1; display: flex; flex-direction: column; gap: var(--space-5); padding-block: var(--space-6) var(--space-5); }
.claimant-body h1.t-display { font-size: 1.875rem; line-height: 2.375rem; }
.claimant-actions { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4) 0 var(--space-2); background: linear-gradient(to bottom, transparent, var(--color-surface) 22%); }
.claimant-actions .btn { min-height: 52px; border-radius: 14px; }
.fact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.fact-list li { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-3); align-items: center; }
.fact-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface)); }
.secured-by { display: flex; align-items: center; justify-content: center; gap: 6px; padding: var(--space-2) 0 calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); font: var(--type-caption); color: var(--color-text-subtle); }
.secured-by img { width: 16px; height: auto; display: block; }

/* Loading placeholder. */
.skeleton { background: var(--color-surface-sunken); border-radius: var(--radius-input); }
.spinner { width: 32px; height: 32px; border-radius: var(--radius-pill); border: 3px solid var(--color-border); border-top-color: var(--color-primary);
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* MerchantBrandHeader (D-046: the Merchant's logo and colour). */
.merchant-brand { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-3) 0; }
.merchant-brand__plate { display: inline-flex; align-items: center; padding: var(--space-1) var(--space-2); border-radius: var(--radius-input); background: var(--color-logo-plate); }
.merchant-brand__logo { display: block; max-height: 32px; max-width: 160px; width: auto; }
.merchant-brand__name { font: var(--type-label); color: var(--color-text); }

/* ---------- Prototype chrome. Not part of the design. ---------- */
.proto-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: #111; color: #eee; font: 12px/1.3 ui-monospace, Menlo, monospace; z-index: 9999; }
.proto-bar a { color: #eee; text-decoration: none; padding: 3px 7px; border: 1px solid #444; border-radius: 4px; }
.proto-bar a[aria-current="true"] { background: #eee; color: #111; }
.proto-bar .proto-id { font-weight: 700; margin-right: 6px; }
body.has-proto-bar .claimant-actions { bottom: var(--proto-bar-h, 0px); }
body.has-proto-bar .claimant-page { padding-bottom: var(--proto-bar-h, 0px); }
.proto-note { border: 1px dashed var(--color-border-strong); border-radius: var(--radius-input); padding: var(--space-4); font: var(--type-label); color: var(--color-text-muted); }

/* ---------- Result State marker: colour plus a shape, never colour alone (D-044 stands, D-078) ---------- */
.result-state { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--space-3) 3px 6px;
  border-radius: var(--radius-pill); font: var(--type-label); white-space: nowrap; }
.result-state svg { width: 16px; height: 16px; flex: none; }
.result-state--verified { color: var(--color-verified); background: var(--color-verified-bg); }
.result-state--needs-review { color: var(--color-needs-review); background: var(--color-needs-review-bg); }
.result-state--unable-to-verify { color: var(--color-unable-to-verify); background: var(--color-unable-to-verify-bg); }

/* ===================== Shared primitives ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.pill { display: inline-flex; align-items: center; gap: 6px; word-spacing: 0.12em; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); border: 1px solid var(--color-border); font: var(--type-caption); font-weight: 600; color: var(--color-text-muted); white-space: nowrap; vertical-align: middle; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill--strong { border-color: var(--color-border-strong); color: var(--color-text); }
.pill--ok { color: var(--color-verified); background: var(--color-verified-bg); border-color: transparent; }
.pill--live { color: var(--color-link); background: var(--color-primary-soft); border-color: transparent; }
.spinner--sm { width: 20px; height: 20px; border-width: 2px; }
.disclosure summary { cursor: pointer; font: var(--type-label); color: var(--color-text); list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--duration-base) var(--ease-out); opacity: .7; }
.disclosure[open] summary::before { transform: rotate(45deg); }
.disclosure[open] summary { margin-bottom: var(--space-3); }
.notice { border: 1px solid var(--color-border); background: var(--color-surface-sunken); border-radius: var(--radius-input); padding: var(--space-3) var(--space-4); }
.notice--critical { border-color: var(--color-critical); color: var(--color-critical); background: var(--color-surface); }
.notice--critical a { color: inherit; }
.field { display: flex; flex-direction: column; gap: var(--space-1); border: 0; padding: 0; margin: 0; }
.field--inline { gap: 2px; }
.field--grow { flex: 1; min-width: 12rem; }
.field-error { color: var(--color-critical); }
.input { font: var(--type-body); color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-input); padding: var(--space-2) var(--space-3); width: 100%;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.input:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.input--sm { font: var(--type-label); padding: 6px var(--space-2); }
.input--auto { width: auto; }
.input--mono { font-family: var(--font-mono); font-size: .8125rem; background: var(--color-surface-sunken); border-color: var(--color-border); }
.input.is-invalid { border-color: var(--color-critical); border-width: 2px; }
textarea.input { resize: vertical; }
.choice-group { border: 0; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.choice { display: flex; gap: var(--space-2); align-items: flex-start; cursor: pointer; }
.choice--card { border: 1px solid var(--color-border); border-radius: var(--radius-input); padding: var(--space-3); margin-top: var(--space-2); }
.switch { display: inline-flex; align-items: center; gap: var(--space-2); font: var(--type-label); }
.kv { display: grid; grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: var(--space-3) var(--space-5); margin: var(--space-2) 0 0; }
.kv dt { color: var(--color-text-subtle); font: var(--type-label); font-weight: 500; }
.kv dd { margin: 0; overflow-wrap: anywhere; font: var(--type-label); }
.kv--tight { gap: var(--space-1) var(--space-3); font: var(--type-label); font-weight: 400; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .8125rem; }

/* ===================== Surface C components ===================== */
.claimant-body--center { align-items: center; justify-content: center; text-align: center; }
.status { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
.status--start { align-items: flex-start; text-align: left; }
.status__icon { display: inline-flex; }
.status__icon svg { width: 64px; height: 64px; padding: 14px; border-radius: 20px; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface)); }
.status__tip { background: var(--color-surface-sunken); border-radius: var(--radius-input); padding: var(--space-3) var(--space-4); text-align: left; }
.primer { display: flex; flex-direction: column; gap: var(--space-4); }
.primer__icon svg { width: 64px; height: 64px; padding: 14px; border-radius: 20px; color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface)); }
.challenge-instruction { display: flex; flex-direction: column; gap: var(--space-1); }
.challenge-instruction h1, .challenge-layout h1 { font: var(--type-title); letter-spacing: var(--tracking-tight); }
.challenge-layout { flex: 1; display: flex; flex-direction: column; gap: var(--space-4); padding-block: var(--space-3) var(--space-4); }
.stepper { display: flex; flex-direction: column; gap: 6px; }
.stepper__segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.stepper__seg { height: 4px; border-radius: var(--radius-pill); background: var(--color-border); transition: background-color var(--duration-slow) var(--ease-out); }
.stepper__seg.is-done { background: color-mix(in srgb, var(--color-accent) 45%, var(--color-border)); }
.stepper__seg.is-current { background: var(--color-accent); }
.stepper__track { height: 6px; border-radius: var(--radius-pill); background: var(--color-border); overflow: hidden; }
.stepper__fill { height: 100%; background: var(--color-primary); transition: width var(--duration-slow) var(--ease-out); }
.viewfinder { position: relative; flex: 1; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(circle at 40% 35%, #6d6253, #2f2a24 62%, #171512); color: #fff; box-shadow: var(--elevation-2); }
.viewfinder::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.28)); }
.viewfinder__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.vf-guide { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 3; }
.viewfinder__plate { position: absolute; z-index: 2; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); margin: 0; padding: var(--space-3) var(--space-4); border-radius: 14px;
  background: var(--color-scrim); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); color: #fff; font: var(--type-label); text-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; animation: fade-in var(--duration-base) var(--ease-out) both; }
.viewfinder__proto { position: absolute; z-index: 2; top: var(--space-2); right: var(--space-2); font: var(--type-caption); background: rgba(0,0,0,.5); padding: 2px var(--space-2); border-radius: var(--radius-pill); }
.viewfinder__rec { position: absolute; z-index: 2; top: var(--space-3); left: var(--space-3); display: inline-flex; gap: var(--space-2); align-items: center; font: var(--type-caption); font-weight: 600; background: var(--color-scrim); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 3px var(--space-3); border-radius: var(--radius-pill); }
.viewfinder__rec span { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: breathe 2.4s var(--ease-in-out) infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.capture-btn { align-self: center; width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--color-text); background: var(--color-primary); display: block; }
.capture-btn--recording { background: var(--color-surface); box-shadow: inset 0 0 0 14px var(--color-primary); }
.sheet-body { display: flex; flex-direction: column; gap: var(--space-5); }
.sheet-section { display: flex; flex-direction: column; gap: var(--space-2); }
.sheet-brand { display: flex; align-items: center; gap: var(--space-2); }
.sheet-brand img { height: 22px; width: auto; }

/* C3f: placeholder for the scene lit by the phone's rear torch pulsing (D-053). Steps of at least 400 ms, under three flashes per second. */
.viewfinder__torch { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255,250,235,.55), rgba(255,250,235,0) 70%); opacity: 0; animation: torch-pulse 3s steps(1, end) 1; }
@keyframes torch-pulse { 0% { opacity: 0; } 15% { opacity: 1; } 35% { opacity: 0; } 50% { opacity: 1; } 65% { opacity: 1; } 80% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .viewfinder__torch { animation: none; opacity: .5; } }

/* C3 guidance ring (D-057): fills smoothly as the Challenge's condition is met; white with a soft glow, never red. */
.viewfinder__ring { position: absolute; z-index: 1; left: 50%; top: 50%; width: 132px; height: 132px; transform: translate(-50%, -50%); filter: drop-shadow(0 0 10px rgba(255,255,255,.35)); }
.viewfinder__ring circle { fill: none; stroke-width: 5; }
.viewfinder__ring .bg { stroke: rgba(255,255,255,.28); }
.viewfinder__ring .fg { stroke: #fff; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset var(--duration-slow) var(--ease-out); }

/* ===================== Surface M ===================== */
.dash { background: var(--color-ground); min-height: 100vh; }
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.appnav { background: var(--color-surface); border-right: 1px solid var(--color-border); padding: var(--space-5) var(--space-3); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.appnav__brand { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3) var(--space-2); }
.appnav__logo { height: 34px; width: auto; display: block; }
.appnav__store { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) var(--space-1) var(--space-4); padding: var(--space-2) var(--space-3); border-radius: var(--radius-input); background: var(--color-surface-sunken); color: var(--color-text-muted); font: var(--type-caption); font-weight: 600; }
.appnav__store::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-verified-solid); box-shadow: 0 0 0 3px var(--color-verified-bg); flex: none; }
.wordmark { font: var(--type-heading); letter-spacing: -.01em; }
.appnav__link { display: flex; align-items: center; gap: var(--space-3); padding: 9px var(--space-3); border-radius: var(--radius-input); text-decoration: none; font: var(--type-label); color: var(--color-text-muted); transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.appnav__link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.appnav__link:hover { background: var(--color-surface-sunken); color: var(--color-text); }
.appnav__link.is-active { background: var(--color-primary-soft); color: var(--color-link); }
.appnav__foot { margin-top: auto; padding: var(--space-3); color: var(--color-text-subtle); border-top: 1px solid var(--color-border); }
.main { padding: var(--space-6) var(--space-6) var(--space-8); max-width: 1280px; width: 100%; display: flex; flex-direction: column; gap: var(--space-5); animation: page-in var(--duration-slow) var(--ease-out) both; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.page-head h1 { font: var(--type-display); letter-spacing: var(--tracking-tight); display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.page-head p { margin-top: var(--space-1); }
.crumb { display: inline-flex; align-items: center; gap: 6px; font: var(--type-label); color: var(--color-text-subtle); text-decoration: none; }
.crumb:hover { color: var(--color-text); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--elevation-1); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.card > h2.t-heading:first-child, .card-head h2 { display: flex; align-items: center; gap: var(--space-2); }
.card--flat { box-shadow: none; padding: var(--space-3) var(--space-4); gap: var(--space-1); }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.grid-2 > .stack:last-child { position: sticky; top: var(--space-5); }
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.metric { text-decoration: none; color: inherit; gap: var(--space-1); }
.metric:hover { border-color: var(--color-border-strong); }
.metric__value { font: var(--type-metric); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.metric__value--na { color: var(--color-text-muted); font: var(--type-heading); }
.table-wrap { overflow-x: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--elevation-1); }
.card .table-wrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font: var(--type-label); font-weight: 500; }
.table th { text-align: left; font: var(--type-overline); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); padding: var(--space-3) var(--space-3); background: var(--color-surface-sunken); border-bottom: 1px solid var(--color-border); vertical-align: bottom; }
.table th.num { text-align: right; }
.table th:first-child, .table td:first-child { padding-left: var(--space-4); }
.table th:last-child, .table td:last-child { padding-right: var(--space-4); }
.table td { padding: var(--space-3) var(--space-3); border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.table td.num, .table td.nowrap { white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.row-link { cursor: pointer; transition: background-color var(--duration-fast) var(--ease-out); }
.row-link:hover td { background: color-mix(in srgb, var(--color-primary-soft) 55%, transparent); }
.table a { font-weight: 700; text-decoration: none; color: var(--color-text); }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.empty { text-align: center; padding: var(--space-8) var(--space-5); align-items: center; }
.empty p { max-width: 32rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); text-align: left; }
.checklist li { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-input); }
.checklist .done { color: var(--color-verified); }

/* Claims list cells (M3). */
.cell-order { display: flex; align-items: center; gap: var(--space-3); }
.thumb { width: 40px; height: 40px; border-radius: var(--radius-input); object-fit: cover; background: var(--color-surface-sunken); border: 1px solid var(--color-border); flex: none; }
.thumb--lg { width: 64px; height: 64px; border-radius: 12px; }
.mini-meter { display: inline-flex; align-items: center; gap: var(--space-2); justify-content: flex-end; }
.mini-meter__bar { width: 56px; height: 6px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); overflow: hidden; }
.mini-meter__bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }

/* ---------- VerificationResultCard (M4): the Result readable at a glance ---------- */
.result-card { padding: 0; gap: 0; overflow: hidden; }
.result-card > * { padding-inline: var(--space-5); }
.result-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); padding-block: var(--space-5) var(--space-4); }
.result-card--verified .result-card__head { background: linear-gradient(180deg, var(--color-verified-bg), transparent); }
.result-card--needs-review .result-card__head { background: linear-gradient(180deg, var(--color-needs-review-bg), transparent); }
.result-card--unable-to-verify .result-card__head { background: linear-gradient(180deg, var(--color-unable-to-verify-bg), transparent); }
.result-card__state { display: flex; align-items: center; gap: var(--space-3); }
.result-card__badge { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; box-shadow: var(--elevation-2); }
.result-card__badge svg { width: 26px; height: 26px; }
.result-card--verified .result-card__badge { background: var(--color-verified-solid); }
.result-card--needs-review .result-card__badge { background: var(--color-needs-review-solid); }
.result-card--unable-to-verify .result-card__badge { background: var(--color-unable-to-verify-solid); }
.result-card__name { font: var(--type-title); letter-spacing: var(--tracking-tight); }
.result-card--verified .result-card__name { color: var(--color-verified); }
.result-card--needs-review .result-card__name { color: var(--color-needs-review); }
.result-card--unable-to-verify .result-card__name { color: var(--color-unable-to-verify); }
.result-card__lead { font: var(--type-body); color: var(--color-text); padding-bottom: var(--space-4); max-width: 60ch; }
.result-card__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); padding-block: var(--space-4); border-top: 1px solid var(--color-border); }
.result-card__cols h3 { font: var(--type-overline); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); }
.result-card .subscores { padding-block: var(--space-4); border-top: 1px solid var(--color-border); }
.result-card__foot { padding-block: var(--space-3) var(--space-4); background: var(--color-surface-sunken); border-top: 1px solid var(--color-border); }
.signal-points { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.signal-points li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-2); align-items: start; font: var(--type-label); font-weight: 500; }
.signal-points li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; margin-top: 0; background: center / 12px no-repeat; }
.signal-points--strong li::before { background-color: var(--color-verified-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='%2310B981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.signal-points--weak li::before { background-color: var(--color-surface-sunken); box-shadow: inset 0 0 0 1.5px var(--color-border-strong); background-image: none; transform: scale(.8); }
.signal-points li.muted::before { content: none; }
.signal-points li.muted { display: block; }
.subscore-table { width: 100%; border-collapse: collapse; font: var(--type-label); font-weight: 500; }
.subscore-table th { text-align: left; font-weight: 500; color: var(--color-text-muted); padding: 6px var(--space-4) 6px 0; white-space: nowrap; }
.subscore-table td { padding: 6px var(--space-2); }
.subscore-table td:last-child { white-space: nowrap; }
.subscore-table td:first-of-type { width: 100%; }
.bar { display: block; width: 100%; min-width: 80px; height: 8px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); }
.bar--inverse span { background: var(--color-border-strong); }

/* ---------- Product identity comparison (M4) ---------- */
.identity { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.identity__score { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2) var(--space-4); }
.identity__value { font: var(--type-metric); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.meter { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); overflow: visible; }
.meter__fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--brand-gradient); }
.meter__fill--match { background: linear-gradient(90deg, var(--brand-verify-blue), var(--color-verified-solid)); }
.meter__mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--color-text); }
.meter__scale { display: flex; justify-content: space-between; font: var(--type-caption); color: var(--color-text-subtle); margin-top: var(--space-1); }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-4); align-items: start; }
.compare__pane { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.compare__frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-3); }
.compare figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.compare img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-surface-sunken); display: block; }
.compare__ref img { object-fit: contain; background: #fff; }
.compare .compare__ph { aspect-ratio: 1 / 1; min-height: 0; flex: none; border-radius: 12px; box-shadow: none; }
.score-chip { display: inline-flex; align-items: center; gap: 4px; font: var(--type-caption); font-weight: 700; font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); color: var(--color-text-muted); }
.score-chip--pass { background: var(--color-verified-bg); color: var(--color-verified); }
.live-scores { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Evidence (M4) ---------- */
.status-chip { display: inline-flex; align-items: center; gap: 6px; font: var(--type-caption); font-weight: 600; padding: 2px 10px 2px 8px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); color: var(--color-text-muted); }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip--completed { background: var(--color-verified-bg); color: var(--color-verified); }
.status-chip--incomplete { background: var(--color-needs-review-bg); color: var(--color-needs-review); }
.status-chip--absent { background: var(--color-unable-to-verify-bg); color: var(--color-unable-to-verify); }
.measure { font: var(--type-caption); color: var(--color-text-subtle); font-family: var(--font-mono); font-size: .72rem; line-height: 1.5; }
.media-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-2); }
.media-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border); border-radius: 12px; text-decoration: none; color: var(--color-text); transition: border-color var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); min-width: 0; }
.media-item:hover { border-color: var(--color-border-strong); background: var(--color-surface-sunken); }
.media-item__icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-soft); color: var(--color-link); flex: none; overflow: hidden; }
.media-item__icon img { width: 100%; height: 100%; object-fit: cover; }
.media-item__icon svg { width: 18px; height: 18px; }
.media-item__text { display: flex; flex-direction: column; min-width: 0; }
.media-item__text b { font: var(--type-label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readonly-note { display: flex; align-items: center; gap: var(--space-2); }
.readonly-note svg { width: 14px; height: 14px; flex: none; }

/* Create Claim (M3a). */
.order-card { padding: 0; gap: 0; overflow: hidden; }
.order-card__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); background: var(--color-surface-sunken); border-bottom: 1px solid var(--color-border); }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-5); margin: 0; }
.order-line + .order-line { border-top: 1px solid var(--color-border); }
.order-line__item { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.order-line__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- Agent-first claim page and list (D-087) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tab { display: inline-flex; align-items: center; gap: var(--space-2); padding: 7px var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font: var(--type-label); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out); }
.tab:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.tab.is-active { background: var(--color-primary-soft); color: var(--color-link); border-color: transparent; }
.tab__count { font: var(--type-caption); font-weight: 700; min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); text-align: center; }
.tab.is-active .tab__count { background: var(--color-surface); }
.table--claims td { padding-block: var(--space-3); }
.cell-thumb { width: 56px; }
.cell-stack { display: flex; flex-direction: column; }
.cell-sub { display: block; }
.result-card__next { font: var(--type-label); color: var(--color-text); padding: var(--space-3) var(--space-5) !important; margin: 0 var(--space-5) var(--space-4); border-radius: var(--radius-input); background: var(--color-surface-sunken); }
.waiting .link-copy { margin-top: var(--space-2); }
.outcome__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-2); }
.outcome--done .pill { font: var(--type-label); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 28px 96px minmax(0, 1fr); gap: var(--space-4); align-items: center; padding: var(--space-3) 0; }
.step + .step { border-top: 1px solid var(--color-border); }
.step__mark { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-subtle); background: var(--color-surface-sunken); }
.step__mark svg { width: 16px; height: 16px; }
.step--good .step__mark { color: #fff; background: var(--color-verified-solid); }
.step__frame { display: block; width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--color-surface-sunken); border: 1px solid var(--color-border); }
.step__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step__noframe { display: block; width: 100%; height: 100%; }
.step__body { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.step__ref { margin: 0; display: flex; align-items: center; gap: var(--space-2); }
.step__ref img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--color-border); }
.tech { padding: var(--space-4) var(--space-5); }
.tech > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-muted); }
.tech > summary::-webkit-details-marker { display: none; }
.tech > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform var(--duration-base) var(--ease-out); }
.tech[open] > summary::before { transform: rotate(45deg); }
.tech__body { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); }
.tech__body h3 { margin-top: var(--space-2); }
.tech .signal-points { margin-top: 0; }
@media (max-width: 600px) { .step { grid-template-columns: 28px 72px minmax(0, 1fr); } .step__frame { width: 72px; } }

/* ---------- Claim page at a glance (D-092): Lucide icons, bands, gauge, motion ---------- */
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ico--sm { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; opacity: .8; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bar-in { from { width: 0; } }
@keyframes ring-in { from { stroke-dashoffset: var(--c); } }
.rise { animation: rise var(--duration-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.claim-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; margin-top: var(--space-3); }
.claim-layout > aside { position: sticky; top: var(--space-5); }

/* Result badge and status pill, shared by M3, M4 and the sidebar. */
.rbadge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 8px; border-radius: var(--radius-pill); font: var(--type-label); white-space: nowrap; }
.rbadge .ico { width: 16px; height: 16px; }
.rbadge--verified { color: var(--color-verified); background: var(--color-verified-bg); }
.rbadge--needs-review { color: var(--color-needs-review); background: var(--color-needs-review-bg); }
.rbadge--unable-to-verify { color: var(--color-unable-to-verify); background: var(--color-unable-to-verify-bg); }
.spill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--radius-pill); font: var(--type-caption); font-weight: 600; white-space: nowrap; color: var(--color-text-muted); background: var(--color-surface-sunken); border: 1px solid var(--color-border); }
.spill .ico { width: 14px; height: 14px; }
.spill--verification_requested, .spill--verification_in_progress { color: var(--color-link); background: var(--color-primary-soft); border-color: transparent; }
.spill--verification_complete { color: var(--color-verified); background: var(--color-verified-bg); border-color: transparent; }

/* Hero. */
.hero { position: relative; overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--elevation-2); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; pointer-events: none; background: linear-gradient(180deg, var(--hero-tint, var(--color-primary-soft)), transparent); }
.hero > * { position: relative; }
.hero--verified { --hero-tint: var(--color-verified-bg); --hero-solid: var(--color-verified-solid); --hero-text: var(--color-verified); }
.hero--needs-review { --hero-tint: var(--color-needs-review-bg); --hero-solid: var(--color-needs-review-solid); --hero-text: var(--color-needs-review); }
.hero--unable-to-verify { --hero-tint: var(--color-unable-to-verify-bg); --hero-solid: var(--color-unable-to-verify-solid); --hero-text: var(--color-unable-to-verify); }
.hero--waiting { --hero-solid: var(--color-primary); --hero-text: var(--color-link); }
.hero__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.hero__state { display: flex; align-items: center; gap: var(--space-4); }
.hero__badge { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--hero-solid); box-shadow: var(--elevation-2); flex: none; }
.hero__badge .ico { width: 32px; height: 32px; }
.hero__name { font: 800 2.25rem/1.1 var(--font-sans); letter-spacing: -0.03em; color: var(--hero-text, var(--color-text)); }
.hero__meaning { font-size: 1.0625rem; line-height: 1.6; max-width: 46rem; }
.hero__next { display: flex; gap: var(--space-2); align-items: flex-start; font: var(--type-label); padding: var(--space-3) var(--space-4); border-radius: var(--radius-input); background: var(--color-surface-sunken); }
.hero__next .ico { margin-top: 1px; color: var(--hero-text, var(--color-link)); }
.hero__meta { display: flex; gap: var(--space-4); align-items: center; padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.hero__item { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 1px solid var(--color-border); background: #fff; flex: none; }
.hero__item--empty { display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-subtle); background: var(--color-surface-sunken); }
.hero__product { font: var(--type-heading); }
.hero__line { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--color-text-muted); font: var(--type-label); font-weight: 500; margin-top: 4px; }
.hero__line span { display: inline-flex; align-items: center; gap: 6px; }
.hero__line .ico { width: 16px; height: 16px; color: var(--color-text-subtle); }
.hero__actions { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-2); }
.outcome-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.obtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: var(--space-3); border-radius: 14px; border: 1px solid transparent; background: var(--color-primary); color: var(--color-on-primary); font: var(--type-label); cursor: pointer; text-align: center;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-primary) 22%, transparent); transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out); }
.obtn .ico { width: 24px; height: 24px; }
.obtn:hover { background: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 10px 22px color-mix(in srgb, var(--color-primary) 30%, transparent); }
.obtn:active { transform: translateY(0) scale(0.98); }
.hero__outcome-done { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-input); background: var(--color-verified-bg); color: var(--color-verified); }
.hero__outcome-done .ico { width: 24px; height: 24px; }
.hero__foot { padding-top: var(--space-2); }

/* Gauge: checks passed out of those that apply (a count, not a probability). */
.gauge { position: relative; margin: 0; width: 150px; height: 150px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge__track { stroke: var(--color-surface-sunken); }
.gauge__fill { stroke: var(--hero-solid, var(--color-primary)); stroke-linecap: round; animation: ring-in 1.1s var(--ease-out) both .15s; }
.gauge figcaption { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge__value { font: 800 1.9rem/1 var(--font-sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gauge__label { font: 600 0.6875rem/1.2 var(--font-sans); color: var(--color-text-subtle); text-align: center; max-width: 76px; }

/* Sections and checks. */
.csec { display: flex; flex-direction: column; gap: var(--space-3); }
.csec__head { display: flex; align-items: center; gap: var(--space-3); }
.csec__head h2 { flex: 1; }
.csec__icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-link); background: var(--color-primary-soft); flex: none; }
.csec__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); }
.band { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--radius-pill); font: var(--type-caption); font-weight: 700; white-space: nowrap; }
.band--strong { color: var(--color-verified); background: var(--color-verified-bg); }
.band--good { color: var(--color-link); background: var(--color-primary-soft); }
.band--weak { color: var(--color-needs-review); background: var(--color-needs-review-bg); }
.band--neutral { color: var(--color-text-muted); background: var(--color-surface-sunken); }
.check { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--elevation-1); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); scroll-margin-top: var(--space-5);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); }
.check:hover, .card:hover, .vtl__item a:hover { border-color: var(--color-border-strong); }
.check:hover { transform: translateY(-2px); box-shadow: var(--elevation-2); }
.check:target { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.check__head { display: flex; align-items: center; gap: var(--space-3); }
.check__titles { flex: 1; min-width: 0; }
.check__icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-muted); background: var(--color-surface-sunken); flex: none; }
.check--strong .check__icon { color: var(--color-verified); background: var(--color-verified-bg); }
.check--good .check__icon { color: var(--color-link); background: var(--color-primary-soft); }
.check--weak .check__icon { color: var(--color-needs-review); background: var(--color-needs-review-bg); }
.check__line { font: var(--type-label); font-weight: 500; }
.check__media { display: flex; gap: var(--space-3); align-items: flex-end; }
.frame { position: relative; display: block; width: 132px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: var(--color-surface-sunken); cursor: zoom-in; flex: none; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--duration-slow) var(--ease-out); }
.frame:hover img { transform: scale(1.06); }
.frame__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: radial-gradient(circle, rgba(0,0,0,.35), transparent 65%); }
.frame__play .ico { width: 26px; height: 26px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.frame--empty { cursor: default; display: flex; align-items: center; justify-content: center; padding: var(--space-2); color: var(--color-text-subtle); text-align: center; }
.shopphoto { margin: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.shopphoto img { width: 76px; height: 76px; object-fit: contain; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; }
.sbar-wrap { display: flex; flex-direction: column; gap: 6px; }
.sbar { position: relative; height: 10px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); }
.sbar__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; animation: bar-in 1s var(--ease-out) both .2s; }
.sbar--strong .sbar__fill { background: linear-gradient(90deg, color-mix(in srgb, var(--color-verified-solid) 70%, var(--brand-capture-sky)), var(--color-verified-solid)); }
.sbar--good .sbar__fill { background: linear-gradient(90deg, var(--brand-capture-sky), var(--color-primary)); }
.sbar--weak .sbar__fill { background: var(--color-needs-review-solid); }
.sbar__mark { position: absolute; top: -4px; bottom: -4px; left: 66.67%; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--color-text); opacity: .55; }
.pass { display: inline-flex; align-items: center; gap: 6px; font: var(--type-label); }
.pass--yes { color: var(--color-verified); }
.pass--no { color: var(--color-needs-review); }
.pass--neutral { color: var(--color-text-subtle); }

/* Vertical timeline: the checks in the customer's order. */
.vtl-card h2 { display: flex; align-items: center; gap: var(--space-2); }
.vtl { list-style: none; margin: 0; padding: 0; position: relative; }
.vtl::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--color-border), var(--color-border)); }
.vtl__item a { position: relative; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2); margin: 0 calc(var(--space-2) * -1); border: 1px solid transparent; border-radius: var(--radius-input); text-decoration: none; color: var(--color-text); transition: background-color var(--duration-fast) var(--ease-out); }
.vtl__item a:hover { background: var(--color-surface-sunken); }
.vtl__dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--color-surface); flex: none; color: var(--color-text-subtle); background: var(--color-surface-sunken); }
.vtl__item--yes .vtl__dot { color: #fff; background: var(--color-verified-solid); }
.vtl__item--no .vtl__dot { color: #fff; background: var(--color-needs-review-solid); }
.vtl__text { display: flex; flex-direction: column; }

/* Lightbox for clips and photos. */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 960px); max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 8, 18, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: rise var(--duration-base) var(--ease-out) both; }
.lightbox__body video, .lightbox__body img { display: block; max-width: min(92vw, 960px); max-height: 82vh; border-radius: var(--radius-card); background: #000; box-shadow: var(--elevation-3); }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--color-surface); color: var(--color-text); box-shadow: var(--elevation-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 1100px) { .claim-layout { grid-template-columns: 1fr; } .claim-layout > aside { position: static; } .outcome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hero { padding: var(--space-4); } .hero__top { flex-wrap: wrap; } .hero__name { font-size: 1.75rem; } .gauge { width: 108px; height: 108px; } }
@media (prefers-reduced-motion: reduce) {
  .rise, .lightbox[open] { animation: none; }
  .sbar__fill, .gauge__fill { animation: none; }
  .check, .obtn, .frame img { transition: none; }
  .check:hover, .obtn:hover { transform: none; }
  .frame:hover img { transform: none; }
}

/* ---------- Existing M components ---------- */
.timeline-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.timeline__item { display: grid; grid-template-columns: 3rem 1fr auto; gap: var(--space-3); align-items: start; padding: var(--space-2) var(--space-3); border-radius: var(--radius-input); }
.timeline__item.is-current { background: var(--color-primary-soft); box-shadow: inset 3px 0 0 var(--color-primary); }
.timeline__t { font: var(--type-caption); font-family: var(--font-mono); color: var(--color-text-subtle); padding-top: 2px; }
.media-viewer { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.media-viewer__frame { position: relative; display: flex; aspect-ratio: 4 / 3; }
.media-viewer__frame .viewfinder { min-height: 0; border-radius: var(--radius-card); }
.media-viewer__play { position: absolute; z-index: 2; inset: 0; display: flex; align-items: center; justify-content: center; }
.media-viewer__play svg { width: 56px; height: 56px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.media-viewer figcaption svg { width: 14px; height: 14px; vertical-align: -2px; }
.signal-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }
.signal-group { border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.link-copy { display: flex; flex-direction: column; gap: var(--space-2); }
.link-copy__row { display: flex; gap: var(--space-2); }
.policy-row { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.policy-row:last-child { border-bottom: 0; }
.integration__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.integration--soon { box-shadow: none; opacity: .75; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 15, 30, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: var(--space-4); z-index: 50; animation: fade-in var(--duration-base) var(--ease-out) both; }
.modal { background: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--elevation-3); padding: var(--space-6); width: 100%; max-width: 32rem; display: flex; flex-direction: column; gap: var(--space-4); max-height: 90vh; overflow: auto; animation: page-in var(--duration-base) var(--ease-out) both; }
.modal--wide { max-width: 40rem; }
.modal__actions { display: flex; justify-content: flex-end; gap: var(--space-3); flex-wrap: wrap; }
.wizard { max-width: 40rem; margin: 0 auto; padding: var(--space-7) var(--space-4); display: flex; flex-direction: column; gap: var(--space-5); }
.wizard-steps { display: flex; gap: var(--space-2); list-style: none; padding: 0; margin: 0; counter-reset: s; flex-wrap: wrap; }
.wizard-steps li { font: var(--type-label); color: var(--color-text-muted); display: flex; align-items: center; gap: var(--space-2); }
.wizard-steps li::before { counter-increment: s; content: counter(s); display: inline-flex; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--color-border-strong); align-items: center; justify-content: center; font: var(--type-caption); }
.wizard-steps li.is-current { color: var(--color-text); }
.wizard-steps li.is-current::before { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.wizard-steps li.is-done::before { content: "✓"; color: var(--color-verified); border-color: var(--color-verified); }
.wizard-steps li + li::after { content: none; }
.logo-light, .logo-dark { display: block; }
[data-theme="dark"] .logo-light, :root:not([data-theme="dark"]) .logo-dark { display: none; }
@media (max-width: 1100px) { .compare { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .appnav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; } .appnav__foot { display: none; } .grid-2, .timeline-wrap { grid-template-columns: 1fr; } .grid-2 > .stack:last-child { position: static; } .main { padding: var(--space-5) var(--space-4); } }

/* ===================== Surface G: mock helpdesk ticket and native widget (D-049) ===================== */
.hd { font: 14px/1.45 var(--font-sans); background: #EEF0F3; min-height: 100vh; display: grid; grid-template-columns: 56px minmax(0, 1fr) var(--sidebar-w, 340px); color: #1d2433; }
.hd__rail { background: #1E2433; }
.hd__ticket { background: #fff; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #DADFE6; }
.hd__ticket-head { padding: 16px 24px; border-bottom: 1px solid #E3E6EB; }
.hd__ticket-head h1 { font-size: 18px; font-weight: 600; }
.hd__msgs { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.hd__msg { max-width: 560px; padding: 12px 14px; border-radius: 8px; background: #F4F5F7; }
.hd__msg--agent { align-self: flex-end; background: #E9F0FF; }
.hd__msg--note { align-self: stretch; max-width: none; background: #FFF8E1; border: 1px dashed #E0C36A; }
.hd__msg-meta { font-size: 12px; color: #67718a; margin-bottom: 4px; }
.hd__msg p { white-space: pre-wrap; }
.hd__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hd__tag { font-size: 12px; background: #E8EAEE; border-radius: 4px; padding: 1px 6px; }
.hd__reply { border-top: 1px solid #E3E6EB; padding: 14px 24px; color: #67718a; }
.hd__side { background: #F7F8FA; overflow: auto; position: relative; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.hd__resize { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; cursor: col-resize; background: transparent; border-left: 2px solid #DADFE6; }
.hd__resize:hover { border-left-color: #8EA0C8; }
.hd__width { font: 11px/1.3 var(--font-mono); color: #67718a; }
.gw-card { background: #fff; border: 1px solid #DADFE6; border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.gw-card__title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.gw-card__title img { width: 16px; height: 16px; }
.gw-card__title a { color: #2350c7; }
.gw-fields { display: flex; flex-direction: column; gap: 6px; }
.gw-field { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; align-items: start; }
.gw-label { color: #67718a; font-size: 13px; }
.gw-value { overflow-wrap: anywhere; }
.gw-list { margin: 0; padding-left: 16px; }
.gw-actions { display: flex; flex-direction: column; gap: 6px; }
.gw-action-row { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-btn { font-size: 13px; padding: 4px 10px; border: 1px solid #C7CDD8; border-radius: 4px; background: #fff; color: #1d2433; text-decoration: none; cursor: pointer; display: inline-block; }
.gw-btn--primary { background: #2350c7; border-color: #2350c7; color: #fff; }
.gw-hint { font-size: 12px; color: #67718a; }
.gw-input { width: 100%; font: 13px/1.45 var(--font-sans); border: 1px solid #C7CDD8; border-radius: 4px; padding: 6px 8px; }
.gw-form { display: flex; flex-direction: column; gap: 6px; }
.gw-pen { font-size: 12px; color: #67718a; }
.gw-error { color: #A3362B; font-size: 13px; }
.gw-ok { color: #0B6B5F; font-size: 13px; }
.gw-dialog-backdrop { position: fixed; inset: 0; background: rgba(20, 24, 33, .4); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 16px; }
.gw-dialog { background: #fff; border-radius: 6px; width: 100%; max-width: 520px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.gw-dialog h2 { font-size: 16px; font-weight: 600; }
.gw-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.proto-callout { font: var(--type-caption); color: #67718a; border: 1px dashed #B9C0CC; border-radius: 4px; padding: 6px 8px; }


/* ===================== Merchant Dashboard pass (D-095) ===================== */
.dash [hidden] { display: none !important; }
/* Depth: a soft brand gradient behind everything, layered cards with elevation. */
body.dash { background:
  radial-gradient(1200px 520px at 100% -10%, color-mix(in srgb, var(--brand-pulse-lavender) 14%, transparent), transparent 70%),
  radial-gradient(900px 480px at -10% 0%, color-mix(in srgb, var(--brand-capture-sky) 14%, transparent), transparent 65%),
  linear-gradient(180deg, color-mix(in srgb, var(--brand-cloud) 60%, var(--color-ground)), var(--color-ground) 420px);
  background-attachment: fixed; }
[data-theme="dark"] body.dash { background:
  radial-gradient(1200px 520px at 100% -10%, color-mix(in srgb, var(--brand-pulse-lavender) 10%, transparent), transparent 70%),
  radial-gradient(900px 480px at -10% 0%, color-mix(in srgb, var(--brand-verify-blue) 12%, transparent), transparent 65%), var(--color-ground); background-attachment: fixed; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--color-surface); padding: 8px 12px; border-radius: var(--radius-input); }
.skip:focus { left: 8px; }
.appnav { background: color-mix(in srgb, var(--color-surface) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.appnav__brand { text-decoration: none; }
.appnav__badge { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: var(--radius-pill); font: var(--type-caption); font-weight: 700; text-align: center; line-height: 20px; color: var(--color-needs-review); background: var(--color-needs-review-bg); }
.appnav__foot { display: flex; align-items: center; gap: 4px; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.main { margin: 0 auto; padding-top: var(--space-5); }
.card { transition: box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); }
.card--raised { box-shadow: var(--elevation-2); }
.card--glass { background: color-mix(in srgb, var(--color-surface) 82%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--elevation-2); }
.card--accent { border-color: color-mix(in srgb, var(--color-primary) 35%, var(--color-border)); background: linear-gradient(180deg, var(--color-primary-soft), var(--color-surface) 70%); }
.stack--tight { gap: var(--space-2); }
.cluster--center { justify-content: center; }
.cluster--end { justify-content: flex-end; }
.link-quiet { color: var(--color-link); text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }
.btn .ico, .btn svg { width: 16px; height: 16px; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--color-border); border-top-color: var(--color-primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-danger:hover { background: color-mix(in srgb, var(--color-critical) 8%, var(--color-surface)); }
label.btn.is-disabled { opacity: .45; pointer-events: none; }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--color-border); border-bottom-width: 2px; background: var(--color-surface); font: 600 .6875rem/1 var(--font-sans); color: var(--color-text-subtle); }
.kbd-group { display: inline-flex; gap: 3px; margin-left: auto; }
.pill--warn { color: var(--color-needs-review); background: var(--color-needs-review-bg); border-color: transparent; }
.notice { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.notice > .ico { flex: none; }
.notice--warn { border-color: color-mix(in srgb, var(--color-needs-review-solid) 45%, var(--color-border)); background: var(--color-needs-review-bg); color: var(--color-needs-review); }
.notice--warn a { color: inherit; font-weight: 700; }
.notice--ok { border-color: color-mix(in srgb, var(--color-verified-solid) 40%, var(--color-border)); background: var(--color-verified-bg); }

/* Top bar: search (Cmd+K), notifications, help, account. */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-6); background: color-mix(in srgb, var(--color-ground) 72%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); }
.searchbox { flex: 1; max-width: 560px; display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-input); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-subtle); font: var(--type-label); font-weight: 500; cursor: pointer; box-shadow: var(--elevation-1); transition: border-color var(--duration-fast) var(--ease-out); }
.searchbox:hover { border-color: var(--color-border-strong); }
.topbar__tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-input); border: 1px solid transparent; background: transparent; color: var(--color-text-muted); cursor: pointer; text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out); }
.iconbtn:hover, .iconbtn[aria-expanded="true"] { background: var(--color-surface); border-color: var(--color-border); color: var(--color-text); }
.iconbtn .ico { width: 20px; height: 20px; }
.iconbtn.is-disabled { opacity: .35; pointer-events: none; }
.iconbtn__dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--radius-pill); background: var(--brand-verify-blue); color: #fff; font: 700 .625rem/17px var(--font-sans); text-align: center; box-shadow: 0 0 0 2px var(--color-ground); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--brand-gradient); color: #fff; font: 700 .75rem/1 var(--font-sans); cursor: pointer; flex: none; box-shadow: var(--elevation-1); }
.avatar .ico { width: 18px; height: 18px; }
.avatar--lg { width: 40px; height: 40px; cursor: default; }
.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; z-index: 30; display: flex; flex-direction: column; padding: var(--space-2); border-radius: var(--radius-card); border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--elevation-3); animation: pop var(--duration-base) var(--ease-out); }
.menu__panel[hidden] { display: none; }
.menu__panel--wide { width: min(380px, 92vw); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu__head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-1); }
.menu__head--account > span:last-child { display: flex; flex-direction: column; }
.menu__panel a, .menu__panel button[role="menuitem"] { display: flex; align-items: center; gap: var(--space-3); padding: 9px var(--space-3); border-radius: var(--radius-input); border: 0; background: none; color: var(--color-text); font: var(--type-label); font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.menu__panel a:hover, .menu__panel button[role="menuitem"]:hover { background: var(--color-surface-sunken); }
.menu__panel form { margin: 0; }
.menu__note { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-top: 1px solid var(--color-border); margin-top: var(--space-1); }
.menu__list { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.menu__empty { padding: var(--space-5) var(--space-3); text-align: center; }
.nitem { align-items: flex-start !important; }
.nitem__icon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--color-surface-sunken); color: var(--color-text-muted); }
.nitem__icon .ico { width: 16px; height: 16px; }
.nitem--verified .nitem__icon { background: var(--color-verified-bg); color: var(--color-verified); }
.nitem--review .nitem__icon { background: var(--color-needs-review-bg); color: var(--color-needs-review); }
.nitem--unable .nitem__icon { background: var(--color-unable-to-verify-bg); color: var(--color-unable-to-verify); }
.nitem--attn .nitem__icon { background: var(--color-primary-soft); color: var(--color-link); }
.nitem__text { display: flex; flex-direction: column; min-width: 0; }
.nitem.is-unread .nitem__text .t-label::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--brand-verify-blue); vertical-align: 2px; }

/* Command palette. */
.palette { padding: 0; border: 0; background: transparent; width: min(640px, 94vw); margin: 12vh auto auto; overflow: visible; }
.palette::backdrop, .sheet-dialog::backdrop, .lightbox::backdrop { background: color-mix(in srgb, var(--brand-midnight) 45%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.palette__box { border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--elevation-3); overflow: hidden; animation: pop var(--duration-base) var(--ease-out); }
.palette__search { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); color: var(--color-text-subtle); }
.palette__search input { flex: 1; border: 0; outline: 0; background: none; font: var(--type-body); font-size: 1.0625rem; color: var(--color-text); }
.palette__search .ico { width: 20px; height: 20px; }
.palette__results { max-height: 52vh; overflow-y: auto; padding: var(--space-2); }
.palette__group { font: var(--type-overline); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); padding: var(--space-3) var(--space-3) var(--space-1); }
.palette__none { padding: var(--space-5); text-align: center; }
.palette__foot { display: flex; gap: var(--space-4); padding: var(--space-2) var(--space-5); border-top: 1px solid var(--color-border); background: var(--color-surface-sunken); }
.palette__foot span { display: inline-flex; align-items: center; gap: 4px; }
.pitem { display: flex; align-items: center; gap: var(--space-3); padding: 8px var(--space-3); border-radius: var(--radius-input); text-decoration: none; color: var(--color-text); }
.pitem.is-active, .pitem[href]:hover { background: var(--color-primary-soft); }
.pitem__img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--color-surface-sunken); flex: none; }
.pitem__icon { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-sunken); color: var(--color-link); flex: none; }
.pitem__icon .ico { width: 18px; height: 18px; }
.pitem__text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 4px; }
.pitem__text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-dialog { border: 0; padding: 0; background: transparent; width: min(460px, 94vw); }
.sheet-dialog > .card { box-shadow: var(--elevation-3); }
.kv--keys dt { display: flex; gap: 4px; align-items: center; }

/* Toasts. */
.toasts { position: fixed; z-index: 60; right: var(--space-5); bottom: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--space-3); max-width: min(440px, 92vw); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: 14px; background: var(--brand-midnight); color: #F1F5FF; font: var(--type-label); font-weight: 500; box-shadow: var(--elevation-3); animation: toast-in var(--duration-slow) var(--ease-out) both; }
[data-theme="dark"] .toast { background: #1B2640; border: 1px solid var(--color-border); }
.toast > .ico { width: 20px; height: 20px; flex: none; }
.toast--ok > .ico { color: var(--brand-fair-mint); }
.toast--info > .ico { color: var(--brand-capture-sky); }
.toast--error > .ico { color: #FCA5A5; }
.toast__x { margin-left: auto; display: inline-flex; padding: 4px; border: 0; border-radius: 6px; background: none; color: inherit; opacity: .7; cursor: pointer; }
.toast__x:hover { opacity: 1; background: rgba(255,255,255,.1); }
.toast__act { border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: none; color: #fff; font: var(--type-label); padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.toast.is-leaving { animation: toast-out .2s var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* Page and section headers, each with an icon. */
.page-head { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); }
.page-head__main { display: flex; align-items: center; gap: var(--space-4); }
.page-head__main > div { flex: 1; min-width: 0; }
.page-head__icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--brand-verify-blue), var(--brand-pulse-lavender)); box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-verify-blue) 28%, transparent); }
.page-head__icon .ico { width: 24px; height: 24px; }
.page-head { position: relative; }
.page-head__actions { position: absolute; right: 0; top: 4px; display: flex; gap: var(--space-2); flex-wrap: wrap; }
.page-head h1 { font-size: 1.75rem; line-height: 2.25rem; }
.sec-head { display: flex; align-items: center; gap: var(--space-3); }
.sec-head__icon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--color-primary-soft); color: var(--color-link); }
.sec-head__icon .ico { width: 17px; height: 17px; }
.sec-head h2, .sec-head h3 { flex: 1; min-width: 0; }
.sec-head__extra { display: flex; align-items: center; gap: var(--space-2); }
.count-chip { min-width: 24px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--color-needs-review-bg); color: var(--color-needs-review); font: var(--type-caption); font-weight: 700; line-height: 22px; text-align: center; }

/* Empty states. */
.empty { gap: var(--space-3); }
.illo { width: 168px; height: auto; margin-bottom: var(--space-2); }

/* Skeletons. */
.skel { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--color-surface-sunken) 0%, color-mix(in srgb, var(--color-surface-sunken) 40%, var(--color-surface)) 50%, var(--color-surface-sunken) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel--thumb { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.skel--dot { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.skel--title { width: 40%; height: 16px; }
.skel--short { width: 55%; }
.skel-row td { padding-block: var(--space-4); }
.skel-list { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-3); }
.skel-line { display: flex; align-items: center; gap: var(--space-3); }
.skel-line .skel:last-child { flex: 1; }
.skel-card { gap: var(--space-3); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
img.thumb, .line-tile__img img, .frame img, .hero__item { background: var(--color-surface-sunken); }
[aria-busy="true"] { cursor: progress; }

/* Home. */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: var(--space-4); border-radius: var(--radius-card); border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--elevation-2); text-decoration: none; color: inherit; overflow: hidden; transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out); }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--elevation-3); }
.stat::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-gradient); opacity: .8; }
.stat--review::after { background: var(--color-needs-review-solid); }
.stat__icon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-soft); color: var(--color-link); margin-bottom: var(--space-2); }
.stat--review .stat__icon { background: var(--color-needs-review-bg); color: var(--color-needs-review); }
.stat__icon .ico { width: 16px; height: 16px; }
.stat__label { font: var(--type-caption); color: var(--color-text-subtle); font-weight: 600; }
.stat__value { font: 700 1.75rem/2.1rem var(--font-sans); letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.stat__sub { font: var(--type-caption); color: var(--color-text-subtle); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.attn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.attn__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: 12px; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.attn__item:hover { background: var(--color-surface-sunken); border-color: var(--color-border-strong); }
.attn__icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.attn__icon .ico { width: 17px; height: 17px; }
.attn__item--review .attn__icon { background: var(--color-needs-review-bg); color: var(--color-needs-review); }
.attn__item--expiring .attn__icon, .attn__item--unopened .attn__icon { background: var(--color-primary-soft); color: var(--color-link); }
.attn__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.attn__go { color: var(--color-text-subtle); }
.allclear { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-4); border-radius: 12px; background: var(--color-verified-bg); }
.allclear > .ico { width: 28px; height: 28px; color: var(--color-verified); flex: none; }
.progress { height: 8px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); animation: bar-in var(--duration-slow) var(--ease-out) both; }
.setup__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.setup__step { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: 12px; border: 1px solid var(--color-border); }
.setup__step.is-done { background: var(--color-surface-sunken); border-color: transparent; }
.setup__step.is-done .setup__text .t-label { color: var(--color-text-muted); text-decoration: line-through; text-decoration-color: var(--color-border-strong); }
.setup__mark { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--color-primary-soft); color: var(--color-link); }
.setup__step.is-done .setup__mark { background: var(--color-verified-solid); color: #fff; }
.setup__mark .ico { width: 16px; height: 16px; }
.setup__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.setup__done { color: var(--color-verified); font-weight: 700; }
.chart { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.chart svg { width: 100%; height: 170px; display: block; }
.chart rect { transition: opacity var(--duration-fast); }
.chart g:hover rect { opacity: .75; }
.c-verified { fill: var(--color-verified-solid); background: var(--color-verified-solid); }
.c-review { fill: var(--color-needs-review-solid); background: var(--color-needs-review-solid); }
.c-unable { fill: var(--color-unable-to-verify-solid); background: var(--color-unable-to-verify-solid); }
.c-pending { fill: color-mix(in srgb, var(--brand-verify-blue) 35%, var(--color-border)); background: color-mix(in srgb, var(--brand-verify-blue) 35%, var(--color-border)); }
.c-zero { fill: var(--color-border); }
.chart__ticks text { font: 500 10px var(--font-sans); fill: var(--color-text-subtle); }
.chart__legend { display: flex; flex-wrap: wrap; gap: var(--space-4); font: var(--type-caption); color: var(--color-text-muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-6) var(--space-4); color: var(--color-text-subtle); text-align: center; }
.chart-empty .ico { width: 32px; height: 32px; }

/* Claims list. */
.views { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.views__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); flex: 1; }
.vchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font: var(--type-label); text-decoration: none; box-shadow: var(--elevation-1); }
.vchip a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.vchip .ico { width: 15px; height: 15px; }
.vchip:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.vchip.is-active { background: var(--color-primary-soft); border-color: transparent; color: var(--color-link); }
.vchip--saved { padding-right: 4px; }
.vchip--saved form { display: inline; margin: 0; }
.vchip__x { display: inline-flex; border: 0; background: none; color: inherit; opacity: .6; padding: 2px; border-radius: 50%; cursor: pointer; }
.vchip__x:hover { opacity: 1; background: var(--color-surface-sunken); }
.vchip__x .ico { width: 13px; height: 13px; }
.savebox { position: relative; }
.savebox > summary { list-style: none; }
.savebox > summary::-webkit-details-marker { display: none; }
.savebox__form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 15; width: 300px; box-shadow: var(--elevation-3); }
.filters { gap: var(--space-3); padding: var(--space-4); }
.searchfield { position: relative; display: flex; align-items: center; }
.searchfield > .ico { position: absolute; left: 14px; color: var(--color-text-subtle); pointer-events: none; }
.searchfield .input { padding-left: 42px; padding-right: 44px; min-height: 46px; border-color: var(--color-border); }
.searchfield .kbd { position: absolute; right: 12px; }
.filters__row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; }
.filters__row .field { min-width: 0; }
.filters__row select.input { max-width: 13rem; }
.field--num .input { width: 6.5rem; }
.bulkbar { position: sticky; top: 72px; z-index: 12; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); margin-bottom: var(--space-3); border-radius: var(--radius-input); background: var(--brand-midnight); color: #fff; box-shadow: var(--elevation-3); animation: pop var(--duration-base) var(--ease-out); }
.bulkbar .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); box-shadow: none; }
.bulkbar .btn-quiet { color: #fff; }
.table-wrap--elevated { box-shadow: var(--elevation-2); }
.cell-check { width: 36px; }
.check-input { width: 17px; height: 17px; accent-color: var(--color-primary); cursor: pointer; }
.table tr.is-selected td { background: color-mix(in srgb, var(--color-primary-soft) 70%, transparent); }
.thumb--empty { display: inline-flex; align-items: center; justify-content: center; color: var(--color-text-subtle); }
.thumb--empty .ico { width: 18px; height: 18px; }
.cell-src { width: 32px; }
.src { display: inline-flex; width: 28px; height: 28px; border-radius: 8px; align-items: center; justify-content: center; background: var(--color-surface-sunken); color: var(--color-text-muted); }
.src .ico { width: 15px; height: 15px; }
.cell-qa { width: 1%; white-space: nowrap; }
.qa-group { display: flex; gap: 4px; justify-content: flex-end; opacity: 0; transform: translateX(4px); transition: opacity var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
tr:hover .qa-group, tr:focus-within .qa-group { opacity: 1; transform: none; }
@media (hover: none) { .qa-group { opacity: 1; transform: none; } }
.qa { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); cursor: pointer; text-decoration: none; box-shadow: var(--elevation-1); }
.qa:hover { color: var(--color-link); border-color: var(--color-primary); }
.qa .ico { width: 15px; height: 15px; }
.qa.is-busy::after { width: 12px; height: 12px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-3); }
.pager__links { display: flex; gap: 4px; align-items: center; }
.pager__n { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: var(--type-label); text-decoration: none; }
.pager__n:hover { border-color: var(--color-border-strong); }
.pager__n.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.pager__n .ico { width: 16px; height: 16px; }
.pager__gap { color: var(--color-text-subtle); padding: 0 4px; }

/* Claim page additions. */
.claim-top { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.claim-top .crumb .ico { width: 16px; height: 16px; }
.claim-nav { display: flex; gap: 2px; }
.claim-top__actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.claim-top__actions form { margin: 0; }
.tech summary { display: flex; align-items: center; gap: var(--space-2); }
.link-copy__row { align-items: center; }
.link-copy__row .input { flex: 1; min-width: 0; }
/* Outcome buttons: outlined until hovered (D-096). */
.obtn { background: var(--color-surface); color: var(--color-link); border: 1.5px solid color-mix(in srgb, var(--color-primary) 55%, var(--color-border)); box-shadow: none; }
.obtn:hover, .obtn:focus-visible { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.activity { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.activity::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--color-border); }
.activity__item { position: relative; display: flex; gap: var(--space-3); align-items: flex-start; }
.activity__dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-text-muted); }
.activity__dot .ico { width: 15px; height: 15px; }
.activity__item--yes .activity__dot { border-color: var(--color-verified-solid); color: var(--color-verified); }
.activity__item--result .activity__dot { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }
.activity__item--outcome .activity__dot { background: var(--color-verified-solid); border-color: var(--color-verified-solid); color: #fff; }
.activity__text { display: flex; flex-direction: column; padding-top: 5px; min-width: 0; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.note { padding: var(--space-3); border-radius: 12px; background: color-mix(in srgb, var(--brand-capture-sky) 12%, var(--color-surface)); border: 1px solid color-mix(in srgb, var(--brand-capture-sky) 30%, var(--color-border)); display: flex; flex-direction: column; gap: 4px; }
.note p:first-child { font: var(--type-label); font-weight: 500; }
.note-form { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.note-form textarea { resize: vertical; font: var(--type-label); font-weight: 500; }
.others { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.others__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: 10px; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); }
.others__item:hover { background: var(--color-surface-sunken); }
.others__text { display: flex; flex-direction: column; min-width: 0; }

/* Create Claim. */
.create-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--space-5); align-items: start; margin: 0; }
.create-side { position: sticky; top: 84px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--color-surface-sunken); border: 1px solid var(--color-border); align-self: flex-start; }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented__opt span { display: inline-flex; padding: 6px 14px; border-radius: 9px; font: var(--type-label); color: var(--color-text-muted); }
.segmented__opt input:checked + span { background: var(--color-surface); color: var(--color-text); box-shadow: var(--elevation-1); }
.segmented__opt input:focus-visible + span { outline: 2px solid var(--color-focus); }
.segmented__opt input:disabled + span { opacity: .5; }
.order-card { padding: 0; }
.order-card__head .ico--sm { margin-left: 2px; }
.line-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); padding: var(--space-4); }
.line-tile { position: relative; display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); border-radius: 14px; border: 1.5px solid var(--color-border); background: var(--color-surface); cursor: pointer; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.line-tile:hover { border-color: var(--color-border-strong); transform: translateY(-1px); }
.line-tile input { position: absolute; opacity: 0; pointer-events: none; }
.line-tile:has(input:checked), .line-tile.is-picked { border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-primary-soft); }
.line-tile:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.line-tile__img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface-sunken); color: var(--color-text-subtle); }
.line-tile__img img { width: 100%; height: 100%; object-fit: cover; }
.line-tile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.line-tile__tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: var(--color-on-primary); transform: scale(0); transition: transform var(--duration-base) var(--ease-out); }
.line-tile__tick .ico { width: 13px; height: 13px; }
.line-tile:has(input:checked) .line-tile__tick, .line-tile.is-picked .line-tile__tick { transform: scale(1); }
.msg-preview { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-sunken); padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); max-height: 340px; overflow-y: auto; }
.msg-preview__subject { padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.msg-preview__body { font: var(--type-label); font-weight: 450; color: var(--color-text-muted); display: flex; flex-direction: column; gap: var(--space-2); }
.msg-preview__body a { color: var(--color-link); text-decoration: underline; word-break: break-all; }
.msg-preview--mail { background: var(--color-surface); box-shadow: inset 0 3px 0 var(--brand-verify-blue); max-height: none; }
.choice--card { align-items: flex-start; gap: var(--space-3); transition: border-color var(--duration-fast) var(--ease-out); }
.choice--card > span { display: flex; flex-direction: column; gap: 2px; }
.choice--card:has(input:checked) { border-color: var(--color-primary); background: var(--color-primary-soft); }
.choice--card.is-disabled { opacity: .6; cursor: not-allowed; }
.choice--card input { margin-top: 3px; accent-color: var(--color-primary); }

/* Integrations. */
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.integration__head { align-items: flex-start; }
.integration__head > div { flex: 1; min-width: 0; }
.itile { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--color-surface-sunken); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.itile .ico { width: 24px; height: 24px; }
.itile--shopify { background: color-mix(in srgb, var(--brand-fair-mint) 18%, var(--color-surface)); color: var(--color-verified); border-color: transparent; }
.itile--gorgias { background: var(--color-primary-soft); color: var(--color-link); border-color: transparent; }
.integration__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding-top: var(--space-2); border-top: 1px solid var(--color-border); }
.integration__actions form { margin: 0; }
.integration--soon { opacity: 1; background: repeating-linear-gradient(135deg, var(--color-surface), var(--color-surface) 12px, var(--color-surface-sunken) 12px, var(--color-surface-sunken) 13px); }
.requested { display: flex; align-items: center; gap: var(--space-2); color: var(--color-verified); }
.connect-form { max-width: 32rem; }

/* Billing. */
.plan__top { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; flex-wrap: wrap; }
.plan__price { font: 800 2.5rem/1.1 var(--font-sans); letter-spacing: var(--tracking-tight); margin-top: var(--space-2); }
.plan__price span { font: var(--type-body); color: var(--color-text-muted); }
.plan__badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--brand-gradient); color: #fff; font: var(--type-label); }
.plan__badge .ico { width: 15px; height: 15px; }
.plan__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }
.plan__facts li { display: flex; gap: var(--space-2); align-items: flex-start; font: var(--type-label); font-weight: 500; }
.plan__facts .ico { color: var(--color-verified); margin-top: 1px; }
.trial { flex-direction: row; align-items: center; gap: var(--space-4); }
.trial__ring { --size: 64px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--brand-verify-blue) calc(var(--f) * 360deg), var(--color-surface-sunken) 0); }
.trial__ring span { width: calc(var(--size) - 14px); height: calc(var(--size) - 14px); border-radius: 50%; background: var(--color-surface); display: grid; place-items: center; font: 800 1.25rem/1 var(--font-sans); }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
/* M8 plan picker (D-122): the three plans side by side, each choice at the foot of its card. */
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; margin-top: var(--space-4); }
.plans-grid .plan > div:last-child { margin-top: auto; }
.plan__facts--one { grid-template-columns: 1fr; }
.usage__big { font: var(--type-body); }
.usage__big b { font: 800 2rem/1 var(--font-sans); letter-spacing: var(--tracking-tight); margin-right: 6px; }
.meter--usage { height: 12px; }

/* Settings. */
.tabs--underline { gap: 0; border-bottom: 1px solid var(--color-border); flex-wrap: nowrap; overflow-x: auto; }
.tabs--underline .tab { border: 0; border-radius: 0; background: none; padding: var(--space-3) var(--space-4); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs--underline .tab .ico { width: 16px; height: 16px; }
.tabs--underline .tab.is-active { background: none; color: var(--color-link); border-bottom-color: var(--color-primary); }
.settings-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-5); align-items: start; }
.settings-narrow { max-width: 46rem; }
.logo-drop { display: flex; gap: var(--space-4); align-items: center; }
.logo-drop__img { width: 120px; height: 72px; border-radius: 12px; border: 1px dashed var(--color-border-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; color: var(--color-text-subtle); overflow: hidden; }
.logo-drop__img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.swatch { width: 48px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--color-border); background: var(--color-surface); cursor: pointer; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.var { border: 1px dashed color-mix(in srgb, var(--color-primary) 50%, var(--color-border)); border-radius: 8px; background: var(--color-primary-soft); color: var(--color-link); font: 600 .75rem/1 var(--font-mono); padding: 6px 8px; cursor: pointer; }
.var:hover { border-style: solid; }
.steps-cfg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.steps-cfg li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: 12px; border: 1px solid var(--color-border); }
.steps-cfg li > .t-label { flex: 1; }
.steps-cfg__ic { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary-soft); color: var(--color-link); }
.steps-cfg__ic .ico { width: 16px; height: 16px; }
.toggle { position: relative; display: inline-flex; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.toggle__ui { width: 42px; height: 24px; border-radius: var(--radius-pill); background: var(--color-border-strong); position: relative; transition: background-color var(--duration-base) var(--ease-out); }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--elevation-1); transition: transform var(--duration-base) var(--ease-out); }
.toggle input:checked + .toggle__ui { background: var(--color-primary); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.toggle input:disabled + .toggle__ui { opacity: .5; }
.switchrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: 12px; border: 1px solid var(--color-border); cursor: pointer; }
.switchrow > span:first-child { display: flex; flex-direction: column; }
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.member { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: 12px; border: 1px solid var(--color-border); }
.member .avatar { cursor: default; }
.member__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.member form { margin: 0; }
/* The customer's phone screens, live (Settings → Branding). */
.phones { --brand: #2B4BC4; --brand-btn: var(--brand); --brand-on: #fff; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.phone { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.phone__screen { width: 100%; aspect-ratio: 9 / 18.5; border-radius: 26px; border: 6px solid var(--brand-midnight); background: #fff; color: #0F172A; padding: 12px 10px 8px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; box-shadow: var(--elevation-3); font-family: var(--font-sans); position: relative; }
.pp__brand { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.pp__plate img { display: block; max-height: 20px; max-width: 70px; object-fit: contain; }
.pp__name { font: 700 .62rem/1.2 var(--font-sans); }
.pp__bar { height: 2px; border-radius: 2px; background: var(--brand); }
.pp__title { font: 800 .82rem/1.15 var(--font-sans); letter-spacing: -.01em; margin-top: 4px; }
.pp__muted { font: 500 .56rem/1.35 var(--font-sans); color: #475069; }
.pp__facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font: 600 .54rem/1.25 var(--font-sans); }
.pp__facts li { display: flex; gap: 6px; align-items: center; }
.pp__ic { width: 18px; height: 18px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); }
.pp__ic .ico { width: 11px; height: 11px; }
.pp__btn { margin-top: auto; display: block; text-align: center; padding: 7px; border-radius: 9px; background: var(--brand-btn); color: var(--brand-on); font: 700 .6rem/1 var(--font-sans); }
.pp__secured { display: flex; align-items: center; justify-content: center; gap: 4px; font: 600 .45rem/1 var(--font-sans); color: #5F6A86; }
.pp__secured img { width: 9px; height: auto; }
.pp__step { font: 700 .5rem/1 var(--font-sans); color: #5F6A86; text-transform: uppercase; letter-spacing: .06em; }
.pp__segs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.pp__segs i { height: 3px; border-radius: 2px; background: #E1E6F2; }
.pp__segs i.on { background: color-mix(in srgb, var(--brand) 45%, #E1E6F2); }
.pp__segs i.cur { background: var(--brand); }
.pp__vf { flex: 1; border-radius: 12px; background: radial-gradient(circle at 50% 45%, #5d6b86, #1d2536 70%); position: relative; display: grid; place-items: center; }
.pp__ring { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-right-color: #fff; }
.pp__plate2 { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px; border-radius: 7px; background: rgba(15,23,42,.6); color: #fff; font: 600 .5rem/1 var(--font-sans); text-align: center; }
.pp__done { margin: 18px auto 0; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); }
.pp__done .ico { width: 24px; height: 24px; }
.pp__center { text-align: center; }

/* Sign-in. */
.dash--login { min-height: 100vh; display: grid; place-items: center; }
.login { width: min(420px, 92vw); display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-7) 0; }
.login__brand { display: flex; justify-content: center; }
.login__card { gap: var(--space-4); }
.login__card h1 { display: flex; align-items: center; gap: var(--space-2); }

@media (max-width: 1200px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .home-grid, .create-layout, .settings-split, .integration-grid, .billing-grid, .plans-grid { grid-template-columns: 1fr; } .create-side { position: static; } }
@media (max-width: 900px) { .appnav__foot { display: none !important; } .topbar { padding: var(--space-2) var(--space-4); } .searchbox span:not(.kbd-group):not(.kbd) { display: none; } .searchbox { flex: 0; } .page-head__actions { position: static; } .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan__facts { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .main { padding-inline: var(--space-4); } .phones { grid-template-columns: 1fr; max-width: 220px; margin: 0 auto; } .toasts { left: var(--space-3); right: var(--space-3); align-items: stretch; } }
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; } .toast, .toast.is-leaving, .menu__panel, .palette__box, .bulkbar { animation: none; }
  a.stat:hover, .line-tile:hover { transform: none; } .qa-group { transition: none; } .progress span { animation: none; }
  .btn.is-busy::after { animation-duration: 3s; }
}

/* ===================== Dashboard atmosphere and sidebar (D-103) ===================== */
/* Three large, heavily blurred brand glows drifting slowly behind everything, and a faint dot grain, so the ground is
   never a flat fill. Cards stay solid surfaces on top. Motion is off for reduced-motion users. */
body.dash, [data-theme="dark"] body.dash { background: var(--color-ground); }
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.app { position: relative; z-index: 1; }
.atmos__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .7; will-change: transform; }
.atmos__glow--a { width: 58vw; height: 58vw; left: -12vw; top: -22vw; background: radial-gradient(circle, color-mix(in srgb, var(--brand-verify-blue) 55%, transparent), transparent 68%); animation: drift-a 70s var(--ease-in-out) infinite alternate; }
.atmos__glow--b { width: 50vw; height: 50vw; right: -14vw; top: 8vh; background: radial-gradient(circle, color-mix(in srgb, var(--brand-pulse-lavender) 60%, transparent), transparent 68%); animation: drift-b 85s var(--ease-in-out) infinite alternate; }
.atmos__glow--c { width: 46vw; height: 46vw; left: 28vw; bottom: -24vw; background: radial-gradient(circle, color-mix(in srgb, var(--brand-capture-sky) 55%, transparent), transparent 68%); animation: drift-c 95s var(--ease-in-out) infinite alternate; }
:root:not([data-theme="dark"]) .atmos__glow { opacity: .45; }
.atmos__grain { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--color-text) 9%, transparent) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
[data-theme="dark"] .atmos__grain { background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px); }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-12vw, 16vh) scale(.92); } }
@keyframes drift-c { to { transform: translate(-16vw, -12vh) scale(1.08); } }
/* The main area's top bar lets the atmosphere through; the sidebar is its own darker frosted surface with a brand edge. */
.topbar { background: color-mix(in srgb, var(--color-ground) 55%, transparent); }
.appnav { background: color-mix(in srgb, #DCE4F8 74%, transparent); border-right: 0; -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: 1px 0 0 color-mix(in srgb, var(--color-border) 80%, transparent), 8px 0 32px rgba(37, 56, 120, .06); }
[data-theme="dark"] .appnav { background: color-mix(in srgb, #060A16 78%, transparent); box-shadow: 1px 0 0 rgba(255,255,255,.04), 8px 0 40px rgba(0,0,0,.35); }
.appnav::after { content: ""; position: absolute; top: 0; right: -1px; bottom: 0; width: 2px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--brand-verify-blue) 22%, var(--brand-pulse-lavender) 55%, var(--brand-capture-sky) 82%, transparent);
  opacity: .7; box-shadow: 0 0 18px 1px color-mix(in srgb, var(--brand-pulse-lavender) 45%, transparent); }
.appnav__store, .appnav__link:hover { background: color-mix(in srgb, var(--color-surface) 55%, transparent); }
.appnav__link.is-active { background: var(--color-surface); color: var(--color-link); box-shadow: var(--elevation-1); }
[data-theme="dark"] .appnav__link.is-active { background: color-mix(in srgb, var(--brand-verify-blue) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-verify-blue) 35%, transparent); }
.appnav__foot { border-top-color: color-mix(in srgb, var(--color-border) 70%, transparent); }
/* Cards keep contrast on the glows: solid surfaces, the glass ones a little more opaque. */
.card--glass { background: color-mix(in srgb, var(--color-surface) 90%, transparent); }
@media (max-width: 900px) { .appnav::after { top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 2px; background: linear-gradient(90deg, var(--brand-verify-blue), var(--brand-pulse-lavender), var(--brand-capture-sky)); } }
@media (prefers-reduced-motion: reduce) { .atmos__glow { animation: none; } }

/* ===================== Claims toolbar and Filters panel (D-103) ===================== */
.toolbar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); flex-direction: row; position: relative; z-index: 5; }
.toolbar__form { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.toolbar .searchfield { flex: 1; min-width: 0; }
.toolbar .btn { min-height: 46px; }
.fpanel { position: relative; }
.fpanel > summary { list-style: none; }
.fpanel > summary::-webkit-details-marker { display: none; }
.fpanel[open] > summary { border-color: var(--color-primary); color: var(--color-link); }
.fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-on-primary); font: 700 .6875rem/20px var(--font-sans); text-align: center; }
.fpanel__body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: min(560px, 90vw); box-shadow: var(--elevation-3); gap: var(--space-4); animation: pop var(--duration-base) var(--ease-out); }
.fpanel__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-4); }
.fpanel__grid .field select.input { max-width: none; width: 100%; }
.fpanel__pair { grid-column: span 1; border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-2); }
.fpanel__pair legend { padding: 0; margin-bottom: 2px; float: left; grid-column: 1 / -1; }
.fpanel__pair .input { width: 100%; min-width: 0; }
.fpanel__foot { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.fchips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: var(--radius-pill); background: var(--color-primary-soft); color: var(--color-link); font: var(--type-label); text-decoration: none; border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent); }
.fchip .ico { width: 14px; height: 14px; opacity: .7; }
.fchip:hover { border-color: var(--color-primary); }
.fchip:hover .ico { opacity: 1; }
.fchip--clear { background: none; border-color: transparent; color: var(--color-text-muted); padding-right: 12px; }
.views { display: block; }
@media (max-width: 760px) { .toolbar { flex-wrap: wrap; } .toolbar__form { flex-basis: 100%; } .toolbar__label { display: none; } .fpanel__grid { grid-template-columns: 1fr; } .fpanel__body { right: -60px; } }
@media (prefers-reduced-motion: reduce) { .fpanel__body { animation: none; } }

/* ===================== Toned down (D-104) ===================== */
/* The atmosphere is a faint ambient tint seen at the edges, never a coloured blob behind content: about a third of
   D-103's strength, glows held near the corners, smaller drift. */
.atmos__glow { opacity: .23; }
:root:not([data-theme="dark"]) .atmos__glow { opacity: .15; }
.atmos__glow--c { left: auto; right: -20vw; bottom: -30vw; }
@keyframes drift-a { to { transform: translate(4vw, 3vh) scale(1.05); } }
@keyframes drift-b { to { transform: translate(-3vw, 5vh) scale(.96); } }
@keyframes drift-c { to { transform: translate(-4vw, -3vh) scale(1.04); } }
.atmos__grain { opacity: .35; }
/* The Result hero sits on the normal card surface. The state colour stays on the badge, the gauge ring and the
   state's name; the top of the card carries at most a very faint tint. */
.hero::before { height: 120px; background: linear-gradient(180deg, color-mix(in srgb, var(--hero-tint, var(--color-primary-soft)) 30%, transparent), transparent); }
[data-theme="dark"] .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--hero-tint, var(--color-primary-soft)) 25%, transparent), transparent); }
.hero__next .ico { color: var(--color-text-muted); }
.hero__outcome-done { background: var(--color-surface-sunken); color: var(--color-text); }
.hero__outcome-done > .ico { color: var(--color-text-muted); }

/* ===================== Compact Result hero, hairline sidebar edge (D-105) ===================== */
/* One slim row: a smaller badge tile, the state's name at about 28px, and a 64px ring with "checks passed" beside it. */
.hero { padding: var(--space-5) var(--space-6); gap: var(--space-3); }
.hero::before { height: 72px; }
.hero__top { gap: var(--space-3); }
.hero__state { gap: var(--space-3); }
.hero__state .t-overline { line-height: 1; margin-bottom: 2px; }
.hero__badge { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--elevation-1); }
.hero__badge .ico { width: 22px; height: 22px; }
.hero__name { font-size: 1.75rem; line-height: 2rem; letter-spacing: -0.02em; }
.hero__score { display: flex; align-items: center; gap: var(--space-2); }
.gauge { width: 64px; height: 64px; }
.gauge circle { stroke-width: 9; }
.gauge__value { font-size: 1rem; }
.hero__score .gauge__label { max-width: 4.5rem; text-align: left; line-height: 1.25; }
.hero__meaning { margin: 0; line-height: 1.5; }
.hero__next { padding: var(--space-2) var(--space-3); }
.hero__meta { padding-top: var(--space-3); }
.hero__actions { padding-top: 0; }
@media (max-width: 600px) { .hero { padding: var(--space-4); } .hero__top { flex-wrap: nowrap; } .hero__name { font-size: 1.5rem; } .gauge { width: 56px; height: 56px; } .hero__score .gauge__label { display: none; } }
/* The sidebar edge: a 1px brand hairline at low opacity, just enough to separate the two panels. */
.appnav::after { width: 1px; right: 0; opacity: 1; box-shadow: none; background: color-mix(in srgb, var(--brand-verify-blue) 16%, transparent); }
[data-theme="dark"] .appnav::after { background: color-mix(in srgb, var(--brand-pulse-lavender) 14%, transparent); }
.appnav, [data-theme="dark"] .appnav { box-shadow: none; }
@media (max-width: 900px) { .appnav::after { width: auto; height: 1px; } }

/* ===================== Dashboard light mode (D-107) ===================== */
/* Light mirrors dark: every brand and status fill keeps its dark-mode value (primary #6E97FF with dark ink on it, the
   status solids #34D399, #F2A922 and #8D93E6, the brand gradient and glows); only the neutrals swap. Charcoal text,
   white cards on a very light grey ground with soft neutral shadows, light grey hairlines. Status and link text that
   would fail AA on white uses the same hue, darkened until it passes (contrast in 07, D-107). Scoped to the dashboard:
   the customer pages and the website keep their own tokens. */
[data-theme="light"] body.dash {
  --color-ground: #F5F6F8;
  --color-surface: #FFFFFF;
  --color-surface-sunken: #F1F3F6;
  --color-text: #1F2329;
  --color-text-muted: #4A5059;
  --color-text-subtle: #5E6570;
  --color-border: #E3E6EB;
  --color-border-strong: #8A919C;
  --color-primary: #6E97FF;
  --color-primary-hover: #8AACFF;
  --color-primary-soft: #E9EFFF;
  --color-on-primary: #0A0F1E;
  --color-link: #2B57D6;
  --color-focus: #5B85F5;
  --color-critical: #C0352B;
  --color-verified: #0B7A55;
  --color-verified-bg: #E2F7EE;
  --color-verified-solid: #34D399;
  --color-needs-review: #8A5A00;
  --color-needs-review-bg: #FFF3D9;
  --color-needs-review-solid: #F2A922;
  --color-unable-to-verify: #4B50A8;
  --color-unable-to-verify-bg: #EEEFFC;
  --color-unable-to-verify-solid: #8D93E6;
  --color-accent: #6E97FF;
  --elevation-1: 0 1px 2px rgba(31, 35, 41, 0.06), 0 1px 3px rgba(31, 35, 41, 0.05);
  --elevation-2: 0 4px 14px rgba(31, 35, 41, 0.07), 0 1px 3px rgba(31, 35, 41, 0.05);
  --elevation-3: 0 18px 40px rgba(31, 35, 41, 0.14), 0 4px 10px rgba(31, 35, 41, 0.06);
  color-scheme: light;
}
/* An even fainter tint of the same glows; the grain in charcoal. */
[data-theme="light"] .atmos__glow { opacity: .08; }
[data-theme="light"] .atmos__grain { opacity: .28; }
/* The sidebar mirrors dark mode's darker panel: a light grey frosted surface, a hairline edge. */
[data-theme="light"] .appnav { background: color-mix(in srgb, #E9ECF1 82%, transparent); box-shadow: none; }
[data-theme="light"] .appnav::after { background: color-mix(in srgb, var(--brand-verify-blue) 14%, transparent); }
[data-theme="light"] .appnav__link.is-active { background: color-mix(in srgb, var(--brand-verify-blue) 12%, #FFFFFF); color: var(--color-link); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-verify-blue) 22%, transparent); }
[data-theme="light"] .topbar { background: color-mix(in srgb, var(--color-ground) 70%, transparent); }
[data-theme="light"] .card--glass { background: color-mix(in srgb, #FFFFFF 92%, transparent); }

/* Appearance switch in the account menu. */
.theme-pick { display: flex; flex-direction: column; gap: 6px; padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-1); }
.theme-pick__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; border-radius: 10px; background: var(--color-surface-sunken); }
.menu__panel .theme-pick__opt { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 0; border-radius: 8px; background: none; color: var(--color-text-muted); font: var(--type-caption); font-weight: 600; cursor: pointer; width: auto; }
.theme-pick__opt .ico { width: 16px; height: 16px; }
.theme-pick__opt[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--elevation-1); }
/* Partner marks on the Open in buttons. */
.pmark { width: 16px; height: 16px; flex: none; }
.pmark--sm { width: 15px; height: 15px; }
.btn-partner { gap: var(--space-2); }

/* ===================== Check insights and grouped Activity (D-109) ===================== */
.check__line { font: var(--type-label); font-weight: 600; color: var(--color-text); }
.check__why { font: var(--type-caption); font-size: .8125rem; line-height: 1.45; color: var(--color-text-muted); }
.check__why-label { display: block; font: var(--type-overline); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-text-subtle); margin-bottom: 2px; }
.activity__group { list-style: none; position: relative; z-index: 1; }
.activity__attempt { margin: var(--space-2) 0 var(--space-2); }
.activity__prev { border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface-sunken); }
.activity__prev > summary { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); cursor: pointer; list-style: none; }
.activity__prev > summary::-webkit-details-marker, .activity__more > summary::-webkit-details-marker { display: none; }
.activity__prev > summary .t-caption { margin-left: auto; }
.activity__prev > .activity { padding: var(--space-2) var(--space-3) var(--space-3); }
.activity__more > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.activity__chev { width: 15px; height: 15px; color: var(--color-text-subtle); transition: transform var(--duration-fast) var(--ease-out); flex: none; }
details[open] > summary .activity__chev { transform: rotate(180deg); }
.activity__steps { list-style: none; margin: var(--space-2) 0 var(--space-1); padding: var(--space-2) var(--space-3); border-radius: 10px; background: var(--color-surface-sunken); display: flex; flex-direction: column; gap: 6px; }
.activity__step { display: flex; align-items: center; gap: var(--space-2); font: var(--type-caption); font-size: .8125rem; color: var(--color-text); }
.activity__step .ico--sm { margin: 0; opacity: 1; }
.activity__step time { margin-left: auto; font-variant-numeric: tabular-nums; }
.activity__step--yes .ico { color: var(--color-verified); }
.activity__step--no .ico { color: var(--color-needs-review); }
.activity__step--none { color: var(--color-text-subtle); }
@media (prefers-reduced-motion: reduce) { .activity__chev { transition: none; } }

/* ===================== Why-it-matters tooltip and the Integrations tile grid (D-110) ===================== */
.check__line { display: flex; align-items: flex-start; gap: 6px; }
.check__line > span:first-child { flex: 1; min-width: 0; }
.tip { position: relative; display: inline-flex; flex: none; }
.tip__btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-top: -1px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--color-text-subtle); cursor: help; }
.tip__btn .ico { width: 17px; height: 17px; }
.tip__btn:hover, .tip.is-open .tip__btn, .tip__btn:focus-visible { color: var(--color-link); background: var(--color-primary-soft); }
.tip__bubble { position: absolute; z-index: 30; right: -8px; bottom: calc(100% + 8px); width: min(280px, 72vw); padding: var(--space-3); border-radius: 12px;
  background: var(--color-surface); color: var(--color-text-muted); border: 1px solid var(--color-border); box-shadow: var(--elevation-3);
  font: var(--type-caption); font-size: .8125rem; line-height: 1.45; font-weight: 500;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out), visibility 0s linear var(--duration-base); pointer-events: none; }
.tip__bubble::after { content: ""; position: absolute; right: 13px; top: 100%; width: 10px; height: 10px; margin-top: -5px; background: inherit; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); transform: rotate(45deg); }
.tip__label { display: block; font: var(--type-overline); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--color-link); margin-bottom: 4px; }
.tip:hover .tip__bubble, .tip:focus-within .tip__bubble, .tip.is-open .tip__bubble { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .tip__bubble { transition: opacity 0s, visibility 0s; transform: none; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-muted); font: var(--type-label); cursor: pointer; box-shadow: var(--elevation-1); }
.chip:hover { color: var(--color-text); border-color: var(--color-border-strong); }
.chip.is-active { background: var(--color-primary-soft); color: var(--color-link); border-color: transparent; }
.pill--soon { color: var(--color-text-subtle); background: var(--color-surface-sunken); border-color: transparent; }
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-3); align-items: start; }
.ctile { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--elevation-1); overflow: hidden; transition: box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); animation: rise var(--duration-slow) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
.ctile:hover { border-color: var(--color-border-strong); }
.ctile.is-open { box-shadow: var(--elevation-3); border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); }
.ctile__head { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-content: start; grid-template-rows: auto; align-items: center; gap: var(--space-3); padding: var(--space-4); min-height: 88px; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; font: inherit; }
.ctile__head:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; border-radius: var(--radius-card); }
.ctile__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctile__text .t-caption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctile__status { margin-top: 6px; display: flex; }
.ctile__head { align-items: start; }
.ctile__head .ctile-logo, .ctile__head .ctile__chev { margin-top: 2px; }
.ctile { min-height: 0; }
.ctile__head .pill { white-space: nowrap; }
.ctile__asked { display: none; }
.ctile__chev { width: 16px; height: 16px; color: var(--color-text-subtle); transition: transform var(--duration-base) var(--ease-out); }
.ctile.is-open .ctile__chev { transform: rotate(180deg); }
.ctile-logo { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #FFFFFF; border: 1px solid var(--color-border); overflow: hidden; flex: none; }
.ctile-logo img { width: 30px; height: 30px; object-fit: contain; }
.ctile-logo--icon { background: var(--color-primary-soft); color: var(--color-link); border-color: transparent; }
.ctile-logo--icon .ico { width: 22px; height: 22px; }
.ctile--soon .ctile-logo img { filter: saturate(.85); }
/* Smooth height: the body's single grid row animates from 0fr to 1fr, so the tiles below move down naturally. */
.ctile__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration-slow) var(--ease-out); }
.ctile.is-open .ctile__body { grid-template-rows: 1fr; }
.ctile__inner { overflow: hidden; min-height: 0; }
.ctile__content { display: flex; flex-direction: column; gap: var(--space-3); padding: 0 var(--space-4) var(--space-4); border-top: 1px solid transparent; opacity: 0; transition: opacity var(--duration-base) var(--ease-out); }
.ctile.is-open .ctile__content { opacity: 1; border-top-color: var(--color-border); padding-top: var(--space-4); }
.ctile__content .kv { margin: 0; }
.ctile__content .connect-form { max-width: none; }
@media (prefers-reduced-motion: reduce) { .ctile, .ctile__body, .ctile__content, .ctile__chev { transition: none; animation: none; } }
.ctile__head { min-height: 116px; }

/* D-113: deterministic columns. The breakpoint sets the column count (--cols); the script puts visible tile i in column
   i % --cols, and each column is its own vertical stack, so opening a tile moves only the tiles beneath it in that
   column. Without the script the plain grid above applies. */
.ctiles { --cols: 3; }
@media (max-width: 1279px) { .ctiles { --cols: 2; } }
@media (max-width: 759px) { .ctiles { --cols: 1; } }
.ctiles.is-cols { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.ctiles__col { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }

/* Verilo admin (D-120). */
.admin-tick { width: 64px; }
.admin-name { display: inline-flex; align-items: center; gap: var(--space-3); }
.admin-logo { width: 32px; height: 32px; border-radius: 9px; }
.admin-logo img { width: 22px; height: 22px; }

/* D-133: the small Verilo logo heading the capture pages. */
.merchant-brand__verilo img { display: block; height: 24px; width: auto; }
