/* Receipts design system v2 (2026). One accent (--seal, set by the operator), neutral canvas, green/red only for P&L. */

:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --sunk: #eeeef0;
  --hover: rgba(9, 9, 11, 0.04);
  --line: rgba(9, 9, 11, 0.08);
  --line-2: rgba(9, 9, 11, 0.14);
  --ink: #09090b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --pos: #059669;
  --pos-soft: rgba(5, 150, 105, 0.1);
  --neg: #e11d48;
  --neg-soft: rgba(225, 29, 72, 0.09);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, 0.12);
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 10px 30px -14px rgba(9, 9, 11, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(9, 9, 11, 0.28);
  --glass: rgba(255, 255, 255, 0.72);
  --grid: rgba(9, 9, 11, 0.045);
  --display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --body: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --r: 14px;
  --r-sm: 10px;
  --r-xs: 7px;
  --side-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #09090b;
    --surface: #111114;
    --surface-2: #17171b;
    --sunk: #0c0c0e;
    --hover: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.075);
    --line-2: rgba(255, 255, 255, 0.13);
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --muted: #8e8e97;
    --faint: #5e5e66;
    --pos: #34d399;
    --pos-soft: rgba(52, 211, 153, 0.11);
    --neg: #fb7185;
    --neg-soft: rgba(251, 113, 133, 0.11);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, 0.11);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
    --glass: rgba(12, 12, 14, 0.7);
    --grid: rgba(255, 255, 255, 0.035);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #17171b;
  --sunk: #0c0c0e;
  --hover: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #8e8e97;
  --faint: #5e5e66;
  --pos: #34d399;
  --pos-soft: rgba(52, 211, 153, 0.11);
  --neg: #fb7185;
  --neg-soft: rgba(251, 113, 133, 0.11);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.11);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --glass: rgba(12, 12, 14, 0.7);
  --grid: rgba(255, 255, 255, 0.035);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 14.5px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}
h1 {
  font-size: clamp(28px, 3.4vw, 38px);
}
h2 {
  font-size: 17px;
  letter-spacing: -0.015em;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
code,
.mono,
.num {
  font-family: var(--mono);
}
.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
code {
  font-size: 0.88em;
  background: var(--sunk);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 5px;
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
::selection {
  background: color-mix(in srgb, var(--seal) 30%, transparent);
}
:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- text helpers */
.label {
  font: 500 11px/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 70ch;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.mut {
  color: var(--muted);
}
.pos {
  color: var(--pos);
}
.neg {
  color: var(--neg);
}
.warn-t {
  color: var(--warn);
}
.link {
  color: var(--seal);
  text-decoration: none;
  font-weight: 500;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lede {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 58ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------- layout primitives */
.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.spread {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: grid;
  gap: 14px;
  align-content: start;
}
.stack-sm {
  display: grid;
  gap: 8px;
  align-content: start;
}
.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.grid-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.grid-side.wide {
  grid-template-columns: minmax(0, 1fr) 420px;
}
.grid-doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.grid-doc > nav {
  position: sticky;
  top: 90px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.section {
  margin-top: 88px;
}
.mt {
  margin-top: 16px;
}
.mt-lg {
  margin-top: 28px;
}
.mb {
  margin-bottom: 16px;
}
@media (max-width: 960px) {
  .two,
  .grid-main,
  .grid-side,
  .grid-side.wide,
  .grid-doc {
    grid-template-columns: 1fr;
  }
  .grid-doc {
    gap: 20px;
  }
  .grid-doc > nav {
    position: static;
  }
}
@media (max-width: 620px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- surfaces */
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-h,
.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  min-height: 52px;
  flex-wrap: wrap;
}
.panel-h h2,
.card-h h2 {
  font-size: 14.5px;
}
.panel-b,
.card-b {
  padding: 18px;
}
.panel-f {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--r) var(--r);
}
.inset {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px;
}
.kv {
  display: grid;
  gap: 0;
}
.kv > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}
.kv > div:last-child {
  border-bottom: 0;
}
.kv > div > span:first-child {
  color: var(--muted);
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 4px 0;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: 500 13.5px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.08s,
    box-shadow 0.15s,
    filter 0.15s;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.btn:hover {
  background: var(--surface-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}
.btn.primary {
  background: var(--seal);
  color: var(--seal-ink);
  border-color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 20px -10px var(--seal);
}
.btn.primary:hover {
  filter: brightness(1.08);
}
.btn.ink {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}
.btn.ink:hover {
  filter: brightness(1.15);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--hover);
}
.btn.danger {
  color: var(--neg);
}
.btn.danger:hover {
  background: var(--neg-soft);
  border-color: color-mix(in srgb, var(--neg) 40%, transparent);
}
.btn.good {
  color: var(--pos);
}
.btn.good:hover {
  background: var(--pos-soft);
}
.btn.sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
}
.btn.lg {
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 12px;
}
.btn.icon {
  width: 36px;
  padding: 0;
}
.btn.sm.icon {
  width: 30px;
}
.btn.block {
  width: 100%;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.kbd,
kbd {
  font: 500 11px/1 var(--mono);
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
}

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font: 500 12px/1 var(--body);
  white-space: nowrap;
  text-decoration: none;
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.chip.seal {
  background: var(--seal-soft);
  color: var(--seal);
  border-color: color-mix(in srgb, var(--seal) 28%, transparent);
}
.chip.up {
  background: var(--pos-soft);
  color: var(--pos);
  border-color: color-mix(in srgb, var(--pos) 25%, transparent);
}
.chip.down {
  background: var(--neg-soft);
  color: var(--neg);
  border-color: color-mix(in srgb, var(--neg) 25%, transparent);
}
.chip.warn {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 28%, transparent);
}
.chip.live .dot {
  animation: pulse 1.6s ease-in-out infinite;
}
.chip.sm {
  height: 20px;
  padding: 0 7px;
  font-size: 11px;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.side {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.04em;
}
.side.long {
  background: var(--pos-soft);
  color: var(--pos);
}
.side.short {
  background: var(--neg-soft);
  color: var(--neg);
}
.lock {
  font: 500 12px/1 var(--mono);
  color: var(--muted);
}
.badge-n {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--seal);
  color: var(--seal-ink);
  font: 600 10.5px/1 var(--mono);
}

/* ---------------------------------------------------------------- forms */
.form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
}
.field > label,
.field > .flabel {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: 400 14px/1.4 var(--body);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
textarea.input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 76px;
}
select.input {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 16px,
    calc(100% - 12px) 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.input:focus {
  outline: none;
  border-color: var(--seal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--seal) 22%, transparent);
}
.input.mono {
  font-family: var(--mono);
  font-size: 13.5px;
}
.input[disabled] {
  background: var(--sunk);
  color: var(--muted);
}
div.input {
  display: flex;
  align-items: center;
  background: var(--sunk);
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group > .input {
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
.input-group > .addon {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-left: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 12.5px/1 var(--mono);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  margin-top: 3px;
  accent-color: var(--seal);
  width: 16px;
  height: 16px;
  flex: none;
}
.switch {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.switch:last-child {
  border-bottom: 0;
}
.switch .t {
  font-weight: 500;
  font-size: 14px;
}
.switch .d {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.switch input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line-2);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin: 2px 0 0;
}
.switch input::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.switch input:checked {
  background: var(--seal);
}
.switch input:checked::after {
  transform: translateX(16px);
}
.switch input:disabled {
  opacity: 0.5;
}
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  gap: 3px;
  border-radius: 11px;
  background: var(--sunk);
  border: 1px solid var(--line);
}
.seg label {
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}
.seg span {
  display: grid;
  place-items: center;
  height: 32px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--muted);
  transition: all 0.15s;
}
.seg input:checked + span {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.seg .long input:checked + span {
  color: var(--pos);
}
.seg .short input:checked + span {
  color: var(--neg);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--seal);
}

/* ---------------------------------------------------------------- notices, toasts, empty */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.notice::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: currentColor;
}
.notice.ok {
  color: var(--pos);
  background: var(--pos-soft);
  border-color: color-mix(in srgb, var(--pos) 25%, transparent);
}
.notice.err {
  color: var(--neg);
  background: var(--neg-soft);
  border-color: color-mix(in srgb, var(--neg) 25%, transparent);
}
.notice.warn {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 25%, transparent);
}
.notice.demo {
  color: var(--seal);
  background: var(--seal-soft);
  border-color: color-mix(in srgb, var(--seal) 25%, transparent);
}
.notice a {
  color: inherit;
  font-weight: 600;
}
.toasts {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100% - 36px));
}
.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  animation: toast-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast .ic {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px/1 var(--mono);
}
.toast.ok .ic {
  background: var(--pos-soft);
  color: var(--pos);
}
.toast.err .ic {
  background: var(--neg-soft);
  color: var(--neg);
}
.toast button {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}
.toast.out {
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 44px 20px;
  color: var(--muted);
  font-size: 13.5px;
}
.empty .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--faint);
  margin-bottom: 4px;
}
.empty .ic svg {
  width: 20px;
  height: 20px;
}
.empty b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.empty .row {
  justify-content: center;
  margin-top: 6px;
}
.announce {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  padding: 7px 16px;
  background: var(--seal-soft);
  color: var(--seal);
  border-bottom: 1px solid color-mix(in srgb, var(--seal) 20%, transparent);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
}
.demo-bar a {
  color: inherit;
  font-weight: 600;
}

/* ---------------------------------------------------------------- tables */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
th {
  text-align: left;
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr {
  transition: background 0.12s;
}
tbody tr:hover {
  background: var(--hover);
}
tr.click {
  cursor: pointer;
}
th.r,
td.r {
  text-align: right;
}
td a:not(.btn):not(.chip):not(.link) {
  text-decoration: none;
}
td a:not(.btn):not(.chip):hover {
  color: var(--seal);
}
td.wrap-t {
  white-space: normal;
  min-width: 220px;
}
.tbl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.tbl-tools .input {
  height: 32px;
  width: auto;
  min-width: 160px;
  font-size: 13px;
}
.tbl-tools select.input {
  background-position:
    calc(100% - 15px) 13px,
    calc(100% - 10px) 13px;
  padding-right: 28px;
  min-width: 0;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.who-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.who-cell .n {
  font-weight: 500;
}
.who-cell .e {
  color: var(--muted);
  font-size: 12px;
}

/* ---------------------------------------------------------------- avatars */
.avatar {
  --h: 250;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font: 600 13px/1 var(--display);
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 72% 60%), hsl(calc(var(--h) + 45) 70% 42%));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.avatar.sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
}
.avatar.lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 22px;
}
.avatar.xl {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  font-size: 28px;
}

/* ---------------------------------------------------------------- public top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-in {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 16px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.mark svg {
  flex: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}
.nav a {
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition:
    color 0.15s,
    background 0.15s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--hover);
}
.nav a[aria-current='page'] {
  color: var(--ink);
}
.bar-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none !important;
}
.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 8px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font: 400 13px/1 var(--body);
  cursor: pointer;
  min-width: 190px;
}
.search-btn:hover {
  border-color: var(--line-2);
  color: var(--ink-2);
}
.search-btn svg {
  width: 15px;
  height: 15px;
}
.search-btn .kbd {
  margin-left: auto;
}
.nav .nav-cta {
  display: none;
}
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    margin: 0;
  }
  .nav a {
    padding: 12px 8px;
    font-size: 15px;
  }
  .bar.open .nav {
    display: flex;
  }
  .menu-btn {
    display: inline-flex !important;
  }
  .search-btn {
    min-width: 0;
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .search-btn span,
  .search-btn .kbd {
    display: none;
  }
  .bar-r .hide-m {
    display: none;
  }
  .nav .nav-cta {
    display: block;
  }
}

/* ---------------------------------------------------------------- app shell (sidebar) */
.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
  scrollbar-width: thin;
}
.sidebar .mark {
  padding: 6px 8px 12px;
}
.side-sec {
  margin-top: 14px;
  display: grid;
  gap: 1px;
}
.side-sec > .label {
  padding: 0 10px 6px;
  font-size: 10.5px;
  color: var(--faint);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background 0.12s,
    color 0.12s;
}
.side-link svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}
.side-link:hover {
  background: var(--hover);
  color: var(--ink);
}
.side-link[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    0 0 0 1px var(--line),
    0 1px 3px rgba(0, 0, 0, 0.06);
}
.side-link[aria-current='page'] svg {
  color: var(--seal);
}
.side-link .badge-n,
.side-link .chip {
  margin-left: auto;
}
.side-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  min-width: 0;
}
.me:hover {
  background: var(--hover);
}
.me .n {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
}
.me .e {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs b {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .bar-r {
  margin-left: auto;
}
.content {
  padding: 26px 28px 70px;
  width: 100%;
  max-width: 1360px;
}
.page-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-h h1 {
  font-size: 26px;
}
.page-h p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
  max-width: 72ch;
}
.side-toggle {
  display: none !important;
}
.scrim {
  display: none;
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    z-index: 60;
    left: 0;
    top: 0;
    width: min(290px, 86vw);
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }
  .shell.open .sidebar {
    transform: none;
  }
  .shell.open .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.45);
  }
  .side-toggle {
    display: inline-flex !important;
  }
  .topbar {
    padding: 0 12px;
  }
  .content {
    padding: 20px 16px 60px;
  }
}

/* ---------------------------------------------------------------- tabs */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs a {
  position: relative;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover {
  color: var(--ink);
}
.tabs a[aria-current='page'] {
  color: var(--ink);
}
.tabs a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--seal);
}
.subnav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.subnav a {
  padding: 7px 12px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
}
.subnav a:hover {
  color: var(--ink);
  background: var(--hover);
}
.subnav a[aria-current='page'] {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------- KPIs */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.kpi {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  min-width: 0;
  text-decoration: none;
  display: block;
}
a.kpi:hover {
  border-color: var(--line-2);
}
.kpi .k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}
.kpi .k svg {
  width: 14px;
  height: 14px;
}
.kpi .v {
  font: 600 26px/1.1 var(--display);
  letter-spacing: -0.03em;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.kpi .s {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 4px;
}
.kpi .spark {
  position: absolute;
  right: 12px;
  top: 14px;
  width: 80px;
  height: 28px;
}
.kpi.feat {
  background: radial-gradient(120% 140% at 0% 0%, var(--seal-soft), transparent 60%), var(--surface);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  background: var(--surface);
  padding: 16px 18px;
  min-width: 0;
}
.stat .v {
  font: 600 22px/1.15 var(--display);
  letter-spacing: -0.03em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.stat .s {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.tiles > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: var(--shadow);
}
.tiles .v {
  font: 600 24px/1.1 var(--display);
  letter-spacing: -0.03em;
  margin-top: 8px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 130px;
  padding: 6px 0 0;
}
.bars > i {
  flex: 1;
  min-width: 2px;
  border-radius: 3px 3px 1px 1px;
  background: var(--seal);
  opacity: 0.8;
  min-height: 2px;
}
.bars > i.z {
  background: var(--line-2);
  opacity: 1;
}
.bars > i:hover {
  opacity: 1;
}
.bars-axis {
  display: flex;
  justify-content: space-between;
  font: 400 11px/1 var(--mono);
  color: var(--faint);
  margin-top: 8px;
}
.meter {
  height: 6px;
  border-radius: 99px;
  background: var(--sunk);
  overflow: hidden;
}
.meter > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--seal);
}

/* ---------------------------------------------------------------- hero (landing) */
.hero-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -280px;
  width: 1000px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--seal) 24%, transparent), transparent);
  pointer-events: none;
}
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 72px 0 64px;
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  letter-spacing: -0.045em;
  line-height: 1;
  font-weight: 600;
  margin-top: 22px;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--seal);
  letter-spacing: -0.02em;
  padding-right: 0.05em;
}
.hero .lede {
  margin-top: 22px;
}
.hero .row {
  margin-top: 28px;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--glass);
  font-size: 12.5px;
  color: var(--ink-2);
  text-decoration: none;
  backdrop-filter: blur(8px);
  max-width: 100%;
}
.pill-link > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill-link .chip {
  height: 22px;
  flex: none;
}
.pill-link:hover {
  border-color: var(--seal);
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted);
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust svg {
  width: 15px;
  height: 15px;
  color: var(--seal);
}
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.hero-stats > div {
  padding: 20px 0;
}
.hero-stats > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.hero-stats .v {
  font: 600 26px/1.1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stats .k {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .hero-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
.ticker {
  display: flex;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font: 500 12.5px/1 var(--mono);
  color: var(--muted);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-in {
  display: flex;
  gap: 32px;
  padding-right: 32px;
  animation: marquee 60s linear infinite;
  flex: none;
}
.ticker:hover .ticker-in {
  animation-play-state: paused;
}
.ticker a {
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.ticker a:hover {
  color: var(--ink);
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 0 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-in {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------------------------------------------------------------- bento + sections */
.sec-h {
  max-width: 700px;
  margin-bottom: 30px;
}
.sec-h h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.035em;
  margin-top: 12px;
  line-height: 1.05;
}
.sec-h h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--seal);
}
.sec-h p {
  margin-top: 14px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.bento > .cell {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento > .cell.w3 {
  grid-column: span 3;
}
.bento > .cell.w4 {
  grid-column: span 4;
}
.bento > .cell.w6 {
  grid-column: span 6;
}
.bento .cell h3 {
  font-size: 17px;
}
.bento .cell p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.bento .cell .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}
.bento .cell .a {
  font: 500 11.5px/1 var(--mono);
  color: var(--seal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bento .cell .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--seal-soft);
  color: var(--seal);
}
.bento .cell .ic svg {
  width: 18px;
  height: 18px;
}
.bento .cell .viz {
  margin-top: auto;
}
.bento .cell.accent {
  background: radial-gradient(100% 120% at 100% 0%, var(--seal-soft), transparent 55%), var(--surface);
}
@media (max-width: 960px) {
  .bento > .cell,
  .bento > .cell.w3,
  .bento > .cell.w4 {
    grid-column: span 6;
  }
}
@media (min-width: 620px) and (max-width: 960px) {
  .bento > .cell {
    grid-column: span 3;
  }
  .bento > .cell.w6,
  .bento > .cell.w4 {
    grid-column: span 6;
  }
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: s;
}
.steps > div {
  counter-increment: s;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.steps > div::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  font: 500 12px/1 var(--mono);
  color: var(--seal);
  margin-bottom: 14px;
}
.steps h3 {
  margin-bottom: 6px;
}
.steps p {
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 56px 24px;
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--seal) 22%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.035em;
}
.cta h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--seal);
}
.cta p {
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 56ch;
}
.cta .row {
  justify-content: center;
  margin-top: 26px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--muted);
  font: 400 20px/1 var(--mono);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 72ch;
}

/* ---------------------------------------------------------------- live feed rows */
.feed-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 13.5px;
  transition: background 0.12s;
}
.feed-row:last-child {
  border-bottom: 0;
}
.feed-row:hover {
  background: var(--hover);
}
.feed-row .h {
  font: 400 12px/1 var(--mono);
  color: var(--faint);
}
.feed-row .who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.feed-row .who > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .feed-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .feed-row .h,
  .feed-row > .num {
    display: none;
  }
}

/* ---------------------------------------------------------------- provider cards + profile */
.pcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.pcard:hover {
  border-color: color-mix(in srgb, var(--seal) 45%, var(--line));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.pcard .top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pcard .top > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.pcard .name {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcard .rankno {
  margin-left: auto;
  font: 600 13px/1 var(--mono);
  color: var(--muted);
}
.pcard .spark-wrap {
  height: 56px;
}
.pcard .spark-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pcard .foot-r {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.minis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.minis .v {
  font: 600 15px/1.2 var(--mono);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.minis .label {
  font-size: 10px;
}
.prov-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.prov-id {
  display: flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.prov-id h1 {
  font-size: clamp(26px, 3.6vw, 40px);
}
.price {
  font: 600 30px/1.1 var(--display);
  letter-spacing: -0.03em;
}
.price small {
  font: 400 14px/1 var(--body);
  color: var(--muted);
  letter-spacing: 0;
}
.plan-opt {
  display: grid;
  gap: 8px;
}
.plan-opt label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.plan-opt label:hover {
  background: var(--hover);
}
.plan-opt input {
  accent-color: var(--seal);
  margin: 0;
}
.plan-opt label:has(input:checked) {
  border-color: var(--seal);
  background: var(--seal-soft);
}
.plan-opt .p {
  margin-left: auto;
  font: 600 15px/1 var(--mono);
}
.plan-opt label > svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.filters .input {
  height: 34px;
  width: auto;
  font-size: 13px;
}
.filters select.input {
  background-position:
    calc(100% - 15px) 14px,
    calc(100% - 10px) 14px;
  padding-right: 28px;
}
.filters .grow {
  flex: 1;
  min-width: 180px;
}
.blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.blk {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--seal);
  opacity: 0.9;
}
.blk.open {
  background: transparent;
  border: 1.5px dashed var(--seal);
}
.blk.w {
  background: var(--pos);
}
.blk.l {
  background: var(--neg);
}
.blk.z {
  background: var(--faint);
}
.heat {
  display: grid;
  grid-template-columns: 44px repeat(12, minmax(0, 1fr));
  gap: 3px;
  font: 500 11px/1 var(--mono);
  min-width: 520px;
}
.heat > span {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 5px;
  color: var(--muted);
}
.heat > i {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 5px;
  font-style: normal;
  background: var(--sunk);
  color: var(--ink-2);
  font-size: 10.5px;
}

/* ---------------------------------------------------------------- the receipt */
.receipt {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  font: 400 13px/1.5 var(--mono);
}
.receipt::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--seal) 70%, transparent),
    transparent 40%,
    transparent 70%,
    color-mix(in srgb, var(--seal) 35%, transparent)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.r-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-2);
}
.r-head .who {
  font: 600 14px/1.2 var(--body);
  color: var(--ink);
  text-decoration: none;
}
.r-title {
  padding: 14px 100px 12px 0;
  min-height: 96px;
}
.r-title .label {
  font-size: 10.5px;
}
.r-big {
  font: 600 22px/1.2 var(--display);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.r-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: var(--muted);
}
.r-row > span:last-child {
  color: var(--ink);
  text-align: right;
}
.r-sep {
  border-top: 1px dashed var(--line-2);
  margin: 10px 0;
}
.r-hash {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-2);
  word-break: break-all;
}
.r-hidden {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 12px;
  text-align: center;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, var(--sunk) 0 8px, transparent 8px 16px);
  color: var(--ink-2);
}
.stamp {
  position: absolute;
  top: 56px;
  right: 16px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px solid var(--seal);
  color: var(--seal);
  transform: rotate(-12deg);
  font: 700 10px/1.25 var(--mono);
  letter-spacing: 0.08em;
  background: color-mix(in srgb, var(--seal) 6%, transparent);
}
.stamp::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed currentColor;
  opacity: 0.6;
}
.stamp b {
  display: block;
  font-size: 14px;
  letter-spacing: 0;
}
.stamp.bad {
  color: var(--neg);
  border-color: var(--neg);
}
.stamp.anim {
  animation: stamp 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) both 0.3s;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-30deg) scale(1.8);
  }
}
.rv {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .rv {
    grid-template-columns: 1fr;
  }
  .receipt {
    margin-inline: auto;
  }
}
@media (max-width: 420px) {
  .stamp {
    width: 74px;
    height: 74px;
    top: 56px;
    right: 10px;
    font-size: 8.5px;
  }
  .stamp b {
    font-size: 12px;
  }
  .r-title {
    padding-right: 84px;
  }
}

/* ---------------------------------------------------------------- proof steps + timeline */
.proof-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.proof-steps > div {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.proof-steps > div:last-child {
  border-right: 0;
}
.proof-steps .t {
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.proof-steps .d {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.proof-steps .st {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-2);
  font-size: 10px;
  color: transparent;
  flex: none;
}
.proof-steps .done .st {
  background: var(--pos);
  border-color: var(--pos);
  color: #fff;
}
.proof-steps .wait .st {
  border-color: var(--warn);
  border-style: dashed;
}
@media (max-width: 760px) {
  .proof-steps {
    grid-template-columns: 1fr 1fr;
  }
  .proof-steps > div:nth-child(2) {
    border-right: 0;
  }
  .proof-steps > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
.timeline {
  position: relative;
  display: grid;
  margin: 4px 0 18px;
}
.timeline .ev {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
}
.timeline .ev::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 20px;
  bottom: 0;
  width: 1.5px;
  background: var(--line-2);
}
.timeline .ev:last-child::before {
  display: none;
}
.timeline .ev i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--seal);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline .ev.fill i {
  border-color: var(--ink-2);
}
.timeline .ev.good i {
  border-color: var(--pos);
  background: var(--pos);
}
.timeline .ev.bad i {
  border-color: var(--neg);
  background: var(--neg);
}
.timeline .ev.wait i {
  border-style: dashed;
  border-color: var(--warn);
}
.timeline .t {
  font-weight: 600;
  font-size: 14px;
}
.timeline .d {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  font-family: var(--mono);
  word-break: break-word;
}
.timeline .d a {
  color: var(--seal);
  text-decoration: none;
}

/* ---------------------------------------------------------------- charts */
.chart {
  padding: 10px 14px 6px;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.tv-chart {
  height: 400px;
  position: relative;
}
.tv-chart .tv-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}
.legend i {
  display: inline-block;
  width: 12px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.legend a {
  margin-left: auto;
  color: var(--faint);
  text-decoration: none;
}

/* ---------------------------------------------------------------- verify */
.vf {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .vf {
    grid-template-columns: 1fr;
  }
}
textarea.code {
  display: block;
  width: 100%;
  min-height: 440px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 12px/1.6 var(--mono);
  resize: vertical;
  border-radius: 0 0 var(--r) var(--r);
}
textarea.code:focus {
  outline: none;
  background: var(--hover);
}
.verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.verdict::before {
  content: '';
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px dashed var(--line-2);
}
.verdict.ok {
  background: var(--pos-soft);
  border-color: color-mix(in srgb, var(--pos) 30%, transparent);
}
.verdict.ok::before {
  border: 0;
  background: var(--pos)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center/18px no-repeat;
}
.verdict.bad {
  background: var(--neg-soft);
  border-color: color-mix(in srgb, var(--neg) 30%, transparent);
}
.verdict.bad::before {
  border: 0;
  background: var(--neg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")
    center/16px no-repeat;
}
.verdict .big {
  font-weight: 600;
  font-size: 16px;
}
.verdict .small {
  color: var(--muted);
  font-size: 13px;
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.checks li {
  display: flex;
  gap: 10px;
}
.checks li > span:first-child {
  font-family: var(--mono);
  font-weight: 700;
  width: 14px;
  flex: none;
}
.hashbox {
  font: 400 12px/1.6 var(--mono);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sunk);
  border: 1px solid var(--line);
  word-break: break-all;
  color: var(--ink-2);
}
.codeline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: 10px;
  background: var(--sunk);
  border: 1px solid var(--line);
  min-width: 0;
}
.codeline code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  scrollbar-width: none;
}
pre.code-block {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--sunk);
  border: 1px solid var(--line);
  font: 400 12px/1.6 var(--mono);
  overflow-x: auto;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- auth */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}
.auth {
  width: 100%;
  max-width: 440px;
}
.auth .panel-b {
  padding: 28px;
}
.auth h1 {
  font-size: 26px;
}
.demo-logins {
  display: grid;
  gap: 8px;
}
.demo-logins form {
  margin: 0;
}
.demo-logins button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.demo-logins button:hover {
  border-color: var(--seal);
  background: var(--seal-soft);
}
.demo-logins .t {
  font-weight: 600;
  font-size: 14px;
}
.demo-logins .d {
  color: var(--muted);
  font-size: 12.5px;
}
.demo-logins .go {
  margin-left: auto;
  color: var(--muted);
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 12px;
}
.or::before,
.or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------------------------------------------------------------- command palette */
.cmdk {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
}
.cmdk.open {
  display: flex;
  animation: fade 0.15s;
}
.cmdk-box {
  width: min(620px, 100%);
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}
.cmdk-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.cmdk-in svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex: none;
}
.cmdk-in input {
  flex: 1;
  height: 54px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 16px/1 var(--body);
  outline: none;
  min-width: 0;
}
.cmdk-list {
  max-height: 56vh;
  overflow-y: auto;
  padding: 8px;
}
.cmdk-g {
  padding: 10px 10px 6px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}
.cmdk-item svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: none;
}
.cmdk-item .hint {
  margin-left: auto;
  font-size: 12px;
}
.cmdk-item.sel {
  background: var(--seal-soft);
  color: var(--ink);
}
.cmdk-item.sel svg {
  color: var(--seal);
}
.cmdk-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.cmdk-foot {
  display: flex;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

/* ---------------------------------------------------------------- notifications */
.bell {
  position: relative;
}
.bell .badge-n {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  font-size: 9.5px;
  padding: 0 4px;
  box-shadow: 0 0 0 2px var(--bg);
}
.notif {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.notif:last-child {
  border-bottom: 0;
}
.notif:hover {
  background: var(--hover);
}
.notif .u {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--seal);
}
.notif.read .u {
  background: transparent;
}
.notif .t {
  font-weight: 600;
  font-size: 14px;
}
.notif.read .t {
  font-weight: 500;
  color: var(--ink-2);
}
.notif .b {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.notif .w {
  color: var(--faint);
  font: 400 12px/1 var(--mono);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- misc */
.calc {
  display: grid;
  gap: 12px;
}
.calc .out {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.calc .out > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.calc .out .v {
  font: 600 15px/1.2 var(--mono);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
}
.prose {
  color: var(--ink-2);
  line-height: 1.7;
}
.prose p + p {
  margin-top: 12px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}
.status-dot.ok {
  background: var(--pos);
  box-shadow: 0 0 0 3px var(--pos-soft);
}
.status-dot.bad {
  background: var(--neg);
  box-shadow: 0 0 0 3px var(--neg-soft);
}
.status-dot.warn {
  background: var(--warn);
  box-shadow: 0 0 0 3px var(--warn-soft);
}
.setup-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.setup-item:last-child {
  border-bottom: 0;
}
.setup-item:hover {
  background: var(--hover);
}
.setup-item .st {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px dashed var(--line-2);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
}
.setup-item.done .st {
  background: var(--pos);
  border: 0;
}
.setup-item .t {
  font-weight: 600;
  font-size: 14px;
}
.setup-item .d {
  color: var(--muted);
  font-size: 12.5px;
}
.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding: 40px 0 44px;
  color: var(--muted);
  font-size: 13px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}
.foot-grid h4 {
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 12px;
}
.foot-grid a {
  display: block;
  text-decoration: none;
  padding: 4px 0;
  color: var(--muted);
}
.foot-grid a:hover {
  color: var(--ink);
}
.foot-grid a.mark {
  display: inline-flex;
  padding: 0;
  color: var(--ink);
}
.foot .disc {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  max-width: 110ch;
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.err-page {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 0;
}
.err-page .code {
  font: 600 clamp(88px, 15vw, 150px)/1 var(--display);
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--ink) 20%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.err-page h1 {
  margin-top: 8px;
}
.err-page p {
  color: var(--muted);
  margin: 10px auto 0;
  max-width: 50ch;
}
.err-page .row {
  justify-content: center;
  margin-top: 24px;
}
.theme-seg {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border-radius: 9px;
  background: var(--sunk);
  border: 1px solid var(--line);
}
.theme-seg button {
  width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
}
.theme-seg button svg {
  width: 14px;
  height: 14px;
}
.theme-seg button[aria-pressed='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.pwa-card {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ---------------------------------------------------------------- embedded in the Admin Kit console */
body.embed {
  background: var(--bg);
  min-height: 0;
}
body.embed .content {
  max-width: none;
  padding: 20px 24px 40px;
}
body.embed .page-h h1 {
  font-size: 22px;
}
