@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("./fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("./fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("./fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --paper: #0e0e10;
  --rail: #0b0b0d;
  --sheet: #161619;
  --inset: #141416;
  --control: #1c1c20;
  --raised: #202024;
  --line: #2c2c31;
  --line-soft: color-mix(in srgb, var(--line) 67%, var(--paper));
  --ink: #f5f2ee;
  --ink-soft: #d8d3cc;
  --muted: #a8a29b;
  --quiet: #8b867f;
  --brand: #ff6a1a;
  --brand-hover: #ff8c42;
  --brand-press: #e5550c;
  --brand-light: #ffb07a;
  --brand-soft: color-mix(in srgb, var(--brand) 15%, var(--sheet));
  --bar: color-mix(in srgb, var(--brand) 39%, var(--sheet));
  --bar-hover: color-mix(in srgb, var(--brand) 63%, var(--sheet));
  --focus: var(--brand-hover);
  --success: #6ec08a;
  --success-bg: color-mix(in srgb, var(--success) 12%, var(--sheet));
  --success-mark: var(--success);
  --pending: #e8a93b;
  --pending-bg: color-mix(in srgb, var(--pending) 13%, var(--sheet));
  --pending-mark: var(--pending);
  --review: var(--brand-hover);
  --review-bg: var(--brand-soft);
  --review-mark: var(--review);
  --neutral: var(--muted);
  --neutral-bg: var(--raised);
  --neutral-mark: var(--quiet);
  --refund: #f0574e;
  --refund-bg: #2a1211;
  --refund-mark: var(--refund);
  --radius-panel: 20px;
  --radius-btn: 16px;
  --radius-field: 14px;
  --radius-tile: 12px;
  --radius-badge: 6px;
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --rail-width: 224px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--bar-hover) var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; font-size: 14px; line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: var(--brand-soft); color: var(--brand); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
input, select, button { font: inherit; }
input { caret-color: var(--brand); }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
svg { display: inline-block; flex: none; vertical-align: middle; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; inset: 12px auto auto 12px; z-index: 10; padding: 12px; background: var(--sheet); }
.mono { font-family: var(--mono); font-size: .78rem; }
.muted { color: var(--muted); font-size: .8125rem; }
.no-script { margin: 24px; }

.shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; min-height: 370px;
  display: flex; flex-direction: column; padding: 24px 16px 18px;
  background: var(--rail); border-inline-end: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 2px 0 29px 8px; }
.brand strong { display: block; font-size: 1.33rem; font-weight: 700; letter-spacing: -.038em; line-height: 1.05; }
.wordmark-pay { color: #a0948c; font-weight: 500; letter-spacing: -.028em; }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: .71rem; line-height: 1.3; margin-top: 2px; }
.topbar-brand { display: none; }
.side-nav { display: grid; gap: 25px; }
.nav-group { display: grid; gap: 3px; }
.nav-caption { padding: 0 10px 5px; color: var(--muted); font-size: .6875rem; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 10px; border-radius: var(--radius-tile);
  color: var(--ink-soft); font-size: .87rem; font-weight: 550;
}
.nav-link:hover { background: var(--line-soft); color: var(--ink); }
.nav-link.is-current { background: var(--brand-soft); color: var(--brand-hover); font-weight: 650; }
.nav-indicator { margin-inline-start: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.rail-foot { margin-top: auto; padding-top: 18px; }
.sandbox-note { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 16px 4px 0; }
.sandbox-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: var(--radius-tile); color: var(--brand); background: var(--paper);
}
.sandbox-note strong { display: block; color: var(--ink-soft); font-size: .76rem; }
.sandbox-note small { display: block; color: var(--muted); font-size: .68rem; white-space: nowrap; }

.workspace { min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 62px; padding: 0 34px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.topbar-start, .topbar-end, .breadcrumb { display: flex; align-items: center; }
.topbar-start { min-width: 0; gap: 10px; }
.breadcrumb { gap: 10px; white-space: nowrap; color: var(--muted); font-size: .81rem; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 650; }
.topbar-end { flex: none; gap: 14px; }
.environment {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 4px 8px;
  font-size: .71rem; font-weight: 600; color: var(--pending); border: 1px solid color-mix(in srgb, var(--pending) 28%, var(--sheet)); border-radius: var(--radius-badge); background: var(--pending-bg);
}
.environment i { width: 6px; height: 6px; background: var(--pending-mark); border-radius: 50%; flex: none; }
.header-divider { width: 1px; height: 24px; background: var(--line); }
.workspace-picker { position: relative; display: flex; align-items: center; min-height: 44px; }
.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 29px; height: 29px; border-radius: 50%; color: var(--brand-light); background: var(--brand-soft);
  font-size: .68rem; font-weight: 720;
}
.workspace-picker select {
  position: relative; z-index: 1; min-height: 44px; max-width: 184px;
  appearance: none; background: transparent; border: 0; border-radius: 6px; margin-inline-start: -29px;
  padding: 0 19px 0 37px; cursor: pointer; font-size: .81rem; font-weight: 650;
}
.workspace-picker:has(.avatar:not([class*="tone-"])) select { width: 119px; }
.select-caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.workspace-picker .select-caret { right: 2px; }
.mobile-toggle { display: none !important; }

.content { width: min(100%, 1440px); margin: 0 auto; padding: 31px 34px 40px; }
.content:focus { outline: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.page-heading h1 { font-size: 2.25rem; line-height: 1.1; font-weight: 720; letter-spacing: -.036em; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: .875rem; }
.page-actions { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }
.button, .icon-button, .select-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--control); color: var(--ink); font-size: .82rem; line-height: 1.2; font-weight: 650;
}
.button { padding: 0 15px; white-space: nowrap; }
.button:hover, .icon-button:hover, .select-button:hover { background: var(--raised); border-color: var(--quiet); }
.button:active:not(:disabled), .icon-button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled, .icon-button:disabled { opacity: .43; background: var(--inset); border-color: var(--line); }
.button-primary { background: var(--brand); color: var(--paper); border-color: var(--brand); }
.button-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button-primary:active:not(:disabled) { background: var(--brand-press); border-color: var(--brand-press); }
.button-small { min-height: 40px; padding-inline: 11px; border-radius: var(--radius-tile); }
.icon-button { width: 42px; padding: 0; flex: none; }
.select-button { position: relative; padding: 0; background: var(--control); }
.select-button > svg { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.select-button select {
  max-width: 260px; min-height: 42px; appearance: none; background: transparent; cursor: pointer;
  padding: 0 31px 0 13px; border: 0; border-radius: var(--radius-btn); font-weight: 650;
}
.select-button > svg + label + select { padding-left: 34px; }
.text-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; border: 0; padding: 0;
  background: transparent; color: var(--brand-hover); font-size: .84rem; font-weight: 650; white-space: nowrap;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 29%;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-panel);
  overflow: hidden;
}
.volume { min-width: 0; padding: 20px 23px 15px; }
.volume-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.volume h2, .distribution h2 { font-size: .95rem; font-weight: 670; line-height: 1.3; }
.volume-number {
  margin-top: 4px; color: var(--ink); font-variant-numeric: tabular-nums;
  font-size: 2.35rem; font-weight: 720; line-height: 1.13; letter-spacing: -.039em; white-space: nowrap;
}
.comparison { margin-top: 5px; color: var(--muted); display: flex; gap: 7px; font-size: .75rem; flex-wrap: wrap; }
.comparison strong { font-variant-numeric: tabular-nums; }
.positive { color: var(--success); }
.negative { color: var(--refund); }
.chart-reading {
  flex: none; display: grid; gap: 1px; border-inline-start: 1px solid var(--line);
  padding: 3px 0 3px 13px; min-width: 108px;
}
.chart-reading span { color: var(--muted); font-size: .73rem; }
.chart-reading strong { font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--brand-light); white-space: nowrap; }
.chart-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.chart-axis {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  height: 121px; min-width: 36px; text-align: end; color: var(--muted); font-size: .66rem; font-variant-numeric: tabular-nums;
}
.chart-axis span { line-height: 0; }
.chart-plot { position: relative; height: 121px; }
.chart-rules { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.chart-rules i { border-top: 1px dashed var(--line); }
.chart-rules i:last-child { border-top-style: solid; }
.chart-bars, .chart-ticks { display: flex; justify-content: space-between; }
.chart-bars { position: absolute; inset: 0; align-items: stretch; }
.chart-hit {
  display: flex; align-items: flex-end; justify-content: center; flex: 1; min-width: 0; padding: 0;
  border: 0; border-radius: 4px; background: transparent;
}
.chart-hit:focus-visible { outline-offset: -2px; }
.chart-bar {
  display: block; width: 61%; max-width: 52px; height: var(--bar-height);
  border-radius: 4px 4px 0 0; background: var(--bar);
}
.chart-hit:hover .chart-bar { background: var(--bar-hover); }
.chart-hit.is-selected .chart-bar { background: var(--brand); }
.chart-ticks span { flex: 1; text-align: center; color: var(--muted); font-size: .66rem; font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 7px; }
.distribution { background: var(--inset); border-inline-start: 1px solid var(--line); padding: 20px 19px 15px; }
.distribution-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.distribution-heading > span { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.status-strip { display: flex; gap: 3px; height: 7px; border-radius: 3px; overflow: hidden; background: var(--line); margin: 15px 0 10px; }
.status-strip i { min-width: 3px; }
.fill-success { background: var(--success-mark); }
.fill-pending { background: var(--pending-mark); }
.fill-review { background: var(--review-mark); }
.fill-neutral { background: var(--neutral-mark); }
.fill-refund { background: var(--refund-mark); }
.status-breakdown { display: grid; }
.status-line {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 3px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: transparent; color: var(--ink-soft); text-align: start; font-size: .79rem;
}
.status-line:last-child { border-bottom: 0; }
.status-line:hover { background: var(--brand-soft); border-radius: 4px; }
.status-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; }

.recent { margin-top: 23px; }
.section-heading { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 7px; }
.section-heading h2 { font-size: 1.21rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.table-frame { border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; background: var(--sheet); }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th {
  background: var(--inset); color: var(--muted); padding: 10px 16px;
  font-size: .73rem; font-weight: 650; white-space: nowrap;
}
td { padding: 8px 16px; border-top: 1px solid var(--line-soft); height: 55px; font-size: .84rem; vertical-align: middle; }
.payment-table tbody tr { cursor: pointer; }
.payment-table tbody tr:hover, .payment-table tbody tr:focus-within { background: var(--raised); }
.payment-link {
  display: block; border: 0; padding: 0; background: transparent; color: var(--brand-light);
  font: 650 .78rem/1.4 var(--mono); white-space: nowrap; text-align: start;
}
.payment-link:hover { text-decoration: underline; text-underline-offset: 3px; }
td small, .project-line small { display: block; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.order-ref { max-width: 17ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity { display: inline-flex; min-width: 0; gap: 9px; align-items: center; }
.identity strong { display: block; line-height: 1.3; }
.identity-text { min-width: 0; }
.merchant-icon {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 7px; font-size: .66rem; font-weight: 750; letter-spacing: -.01em;
}
.tone-cream { background: color-mix(in srgb, #ede7de 14%, var(--sheet)); color: #ede7de; }
.tone-ember { background: var(--brand-soft); color: var(--brand-light); }
.tone-stone { background: var(--raised); color: var(--ink-soft); }
.table-date { display: block; white-space: nowrap; }
.amount-column { text-align: right; white-space: nowrap; }
.amount-column strong { font-size: .875rem; }
.row-end { color: var(--muted); width: 38px; padding-inline: 0 13px; text-align: end; }
.status {
  display: inline-flex; align-items: center; gap: 5px; border-radius: var(--radius-badge);
  padding: 3px 7px; font-size: .70rem; font-weight: 650; line-height: 1.3; white-space: nowrap;
}
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.status-success { color: var(--success); background: var(--success-bg); }
.status-pending { color: var(--pending); background: var(--pending-bg); }
.status-review { color: var(--review); background: var(--review-bg); }
.status-neutral { color: var(--neutral); background: var(--neutral-bg); }
.status-refund { color: var(--refund); background: var(--refund-bg); }

.filter-bar { display: flex; align-items: stretch; gap: 8px; margin-bottom: 13px; }
.search-field {
  display: flex; flex: 1; align-items: center; gap: 8px; max-width: 410px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-field); padding-left: 11px; background: var(--control); color: var(--muted);
}
.search-field:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-field input { min-width: 0; width: 100%; min-height: 40px; border: 0; padding: 0 8px 0 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder, .form-input::placeholder { color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding-top: 11px; color: var(--muted); font-size: .8rem; }
.pagination > div { display: flex; gap: 6px; }
.page-prev svg { transform: rotate(180deg); }
.empty-state { display: grid; justify-items: center; padding: 48px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--sheet); text-align: center; }
.empty-state svg { color: var(--success); margin-bottom: 8px; }
.empty-state h3 { font-size: 1rem; }
.empty-state p { margin-top: 4px; color: var(--muted); }
.empty-state button { margin-top: 13px; }
.empty-state button svg { margin: 0; }

.merchant-directory { max-width: 1000px; }
.directory-group { border-top: 1px solid var(--line); padding: 15px 0 21px; }
.directory-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 11px; }
.directory-heading h2 { font-size: 1.12rem; letter-spacing: -.015em; }
.project-list { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--sheet); }
.project-line {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(72px, 104px) minmax(80px, 126px) auto;
  gap: 12px; align-items: center; min-height: 66px; padding: 9px 13px;
}
.project-line + .project-line { border-top: 1px solid var(--line-soft); }
.project-line .status { justify-self: start; }
.project-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.project-amount small { margin-top: 2px; }
.reconcile-summary {
  display: grid; grid-template-columns: 1fr 1fr 1fr; border-block: 1px solid var(--line);
  padding: 18px 0; margin-bottom: 19px;
}
.reconcile-summary > div { display: grid; gap: 4px; padding-inline: 18px; }
.reconcile-summary > div:first-child { padding-left: 0; }
.reconcile-summary > div + div { border-inline-start: 1px solid var(--line); }
.reconcile-summary span { color: var(--muted); font-size: .78rem; }
.reconcile-summary strong { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.reconcile-link { margin-top: 9px; }
.integration-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 24px; }
.integration-guide { border-top: 1px solid var(--line); padding-top: 13px; }
.integration-guide h2 { font-size: 1.2rem; letter-spacing: -.018em; margin-bottom: 14px; }
.guide-steps { margin: 20px 0 0; padding-left: 23px; }
.guide-steps li { padding-left: 4px; margin-bottom: 15px; }
.guide-steps li::marker { color: var(--brand); font-family: var(--mono); font-weight: 650; }
.guide-steps p { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.code-panel { align-self: start; min-width: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.code-header { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.example-switch { display: inline-flex; gap: 3px; }
.example-switch button { min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: .79rem; }
.example-switch button[aria-pressed="true"], .example-switch button:hover { background: var(--brand-soft); color: var(--brand); }
.example-switch button[aria-pressed="true"] { font-weight: 650; }
.code-panel pre { margin: 0; padding: 17px 14px; overflow: auto; color: var(--brand-light); background: var(--inset); }
.code-panel code { font: .8rem/1.65 var(--mono); }
.code-foot { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

dialog {
  color: var(--ink); background: var(--sheet); border: 0; padding: 0;
  max-width: none; max-height: none;
}
dialog::backdrop { background: rgb(0 0 0 / 55%); }
dialog[open] { animation: enter-drawer 195ms var(--ease-out); }
@keyframes enter-drawer { from { opacity: .7; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.detail-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 462px); height: 100dvh; overflow-y: auto; border-inline-start: 1px solid var(--line); }
.dialog-heading { display: flex; justify-content: space-between; gap: 12px; padding: 22px 21px 16px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 1.47rem; font-weight: 720; letter-spacing: -.025em; }
.dialog-heading p { color: var(--muted); font-size: .86rem; }
.dialog-body { padding: 18px 21px; }
.receipt {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px;
  padding: 15px 13px; margin-bottom: 12px; background: var(--inset); border-bottom: 1px dashed var(--line);
  border-radius: var(--radius-tile) var(--radius-tile) 0 0;
}
.receipt > span:first-child { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.receipt > strong { font-size: 1.65rem; line-height: 1.12; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payment-facts { margin: 0; }
.payment-facts > div { display: grid; grid-template-columns: minmax(95px, .7fr) 1.3fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .83rem; }
.payment-facts dt { color: var(--muted); }
.payment-facts dd { text-align: right; margin: 0; overflow-wrap: anywhere; }
.timeline-heading { font-size: 1rem; margin-top: 19px; }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; }
.timeline li { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: baseline; padding: 8px 0; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; }
.timeline strong { font-size: .85rem; }
.timeline p, .timeline time { color: var(--muted); font-size: .73rem; }
.timeline time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dialog-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 13px 21px; border-top: 1px solid var(--line); background: var(--inset); }
.field-label { display: block; color: var(--ink-soft); font-size: .83rem; font-weight: 650; margin-bottom: 4px; }
.form-input { display: block; width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-field); padding: 8px 10px; color: var(--ink); background: var(--control); }
.form-input + .field-label { margin-top: 13px; }
.form-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); margin-top: 16px; font-size: .8rem; }
.form-note svg { margin-top: 2px; color: var(--brand-hover); }
.toast {
  position: fixed; bottom: 16px; right: 16px; z-index: 4; max-width: min(390px, calc(100% - 32px));
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 7px;
  background: var(--raised); color: var(--ink); border: 1px solid var(--line); font-size: .83rem;
}
.toast svg { color: var(--brand-hover); }
.nav-drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(84vw, 288px); height: 100dvh; background: var(--rail); border-inline-end: 1px solid var(--line); padding: 15px 13px; }
.nav-drawer[open] { animation-name: enter-navigation; }
@keyframes enter-navigation { from { opacity: .7; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
.drawer-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-brand .brand { margin: 0; }

@media (max-width: 1130px) {
  :root { --rail-width: 200px; }
  .content { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .summary { grid-template-columns: minmax(0, 1fr) minmax(204px, 30%); }
  th, td { padding-inline: 12px; }
  .row-end { padding-inline: 0 9px; width: 27px; }
}
@media (max-width: 915px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-toggle { display: inline-flex !important; background: transparent; border-color: transparent; }
  .topbar-brand { display: inline-flex; align-self: center; margin: 0; }
  .topbar-brand strong { font-size: 1.05rem; }
  .topbar-brand small { font-size: .6rem; margin-top: 1px; }
  .breadcrumb { display: none; }
  .topbar { padding-inline: 18px; }
}
@media (max-width: 650px) {
  .content { padding: 22px 14px 28px; }
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 4px 14px 4px 9px; min-height: 88px; }
  .topbar-start { grid-column: 1; grid-row: 1; gap: 3px; }
  .topbar-end { display: contents; }
  .topbar .environment { grid-column: 2; grid-row: 1; justify-self: end; }
  .workspace-picker { grid-column: 1 / -1; grid-row: 2; justify-self: end; min-height: 36px; }
  .workspace-picker .avatar { display: none; }
  .workspace-picker select { max-width: 250px; min-height: 36px; font-size: .75rem; text-overflow: ellipsis; }
  .workspace-picker:has(.avatar:not([class*="tone-"])) select { width: 108px; }
  .crumb-home, #crumb-divider, .header-divider { display: none; }
  .breadcrumb { font-size: .77rem; }
  .environment { font-size: .65rem; padding-inline: 5px; }
  .page-heading { display: grid; gap: 13px; align-items: start; margin-bottom: 16px; }
  .page-heading h1 { font-size: 1.85rem; }
  .page-heading p { font-size: .81rem; }
  .page-actions:empty { display: none; }
  .button, .icon-button { min-height: 44px; }
  .summary { grid-template-columns: minmax(0, 1fr); }
  .volume, .distribution { padding-inline: 14px; }
  .volume { padding-top: 14px; }
  .distribution { border-inline-start: 0; border-top: 1px solid var(--line); padding-top: 13px; padding-bottom: 10px; }
  .volume-number { font-size: 1.95rem; }
  .comparison { gap: 4px; }
  .chart-reading { min-width: 76px; padding-left: 7px; }
  .chart-reading strong { font-size: .81rem; }
  .chart-axis { min-width: 29px; }
  .chart-wrap { gap: 6px; }
  .chart-ticks span { font-size: .59rem; }
  .status-line { min-height: 40px; }
  .recent { margin-top: 16px; }
  .section-heading h2 { font-size: 1.07rem; }
  .text-link { font-size: .77rem; }
  .filter-bar { flex-wrap: wrap; }
  .search-field { flex: 0 0 100%; max-width: none; }
  .filter-bar .select-button { flex: 1 1 120px; min-width: 0; }
  .filter-bar select { width: 100%; }
  .payment-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
  .payment-table, .payment-table tbody { display: block; }
  .payment-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
  .payment-table tbody tr:last-child { border-bottom: 0; }
  .payment-table td { display: block; height: auto; border: 0; padding: 0; }
  .payment-table td:first-child { grid-column: 1; grid-row: 2; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .payment-link { position: relative; }
  .payment-link::after { content: ""; position: absolute; inset: -11px -1px; }
  .payment-table td.project-column { grid-column: 1; grid-row: 1; }
  .payment-table td.date-column, .payment-table td.row-end { display: none; }
  .payment-table td:nth-child(4) { grid-column: 2; grid-row: 2; justify-self: end; }
  .payment-table td.amount-column { grid-column: 2; grid-row: 1; align-self: center; }
  .payment-table .merchant-icon { width: 26px; height: 26px; }
  .payment-table .order-ref { max-width: 13ch; }
  .payment-table .status { font-size: .64rem; }
  .project-line { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  .project-line .status { grid-row: 2; }
  .project-amount { grid-column: 2; grid-row: 1; }
  .project-line .button { justify-self: end; }
  .integration-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .reconcile-summary > div { padding-inline: 8px; }
  .reconcile-summary span { font-size: .69rem; }
  .reconcile-summary strong { font-size: 1.05rem; }
  .settlement-table { min-width: 470px; }
  .reconcile .table-frame { overflow-x: auto; }
  .dialog-heading, .dialog-body, .dialog-actions { padding-inline: 15px; }
}
@media (max-width: 365px) {
  .workspace-picker select { max-width: 240px; }
  .topbar-brand { gap: 5px; }
  .topbar-brand img { width: 17px; height: 17px; }
  .topbar-brand strong { font-size: .9rem; }
  .volume-number { font-size: 1.7rem; }
  .payment-table .order-ref { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open] { animation: none; }
  .button:active, .icon-button:active { transform: none; }
}
