:root {
  --paper: #fdfdfb;
  --ink: #171816;
  --muted: #64655f;
  --rule: #d2d3cc;
  --wash: #f1f2ec;
  --signal: #b63722;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
button, select, input { caret-color: var(--ink); }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, summary, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
button:disabled { cursor: wait; opacity: .5; }
button { transition: background-color 160ms ease-out, color 160ms ease-out; }
button:hover:not(:disabled) { background: var(--wash); }
button:active:not(:disabled) { background: var(--rule); }
svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.shell { width: min(100% - 128px, 1408px); margin: 0 auto; }
.skip { position: absolute; left: 24px; top: -100px; z-index: 5; background: var(--paper); padding: 12px; }
.skip:focus { top: 12px; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 98px; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand strong { font-size: 31px; font-weight: 700; letter-spacing: -.035em; }
.brand span { font-size: 12px; color: var(--muted); }
.workspace { text-align: right; font-size: 13px; }
.workspace span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.nav { display: flex; gap: 36px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.nav a { position: relative; padding: 16px 0; text-decoration: none; font-size: 14px; color: var(--muted); }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.nav a[aria-current]::after { content: ""; position: absolute; height: 3px; background: var(--ink); bottom: -1px; left: 0; right: 0; }
.nav a:hover { color: var(--ink); }
main { padding-top: 42px; }
.page-heading { display: flex; align-items: start; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 44px; line-height: 1.08; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: 23px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 17px; font-weight: 600; }
.subtitle { margin-top: 10px; color: var(--muted); max-width: 68ch; }
.page-meta { text-align: right; font-size: 13px; padding-top: 4px; }
.page-meta span { display: block; margin-top: 5px; }
.signal { color: var(--signal); }
.label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 42px; padding: 10px 16px; background: transparent; border: 1px solid var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; }
.button:hover { background: var(--wash); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover:not(:disabled) { background: #3e403a; }
.button.attention { color: var(--signal); border-color: var(--signal); }
.text-button { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 8px 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; min-height: 40px; }
.coverage { display: grid; grid-template-columns: 1.65fr 1fr; gap: 70px; padding: 12px 0 32px; border-bottom: 1px solid var(--ink); }
.coverage-number { font-size: 96px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.coverage-number .denominator { color: var(--muted); font-size: 58px; letter-spacing: -.035em; }
.coverage-title { display: flex; align-items: baseline; justify-content: space-between; margin: 13px 0 18px; }
.coverage-title p { font-size: 16px; }
.coverage-title span { font-size: 13px; }
.coverage-bar { height: 8px; background: var(--wash); display: flex; gap: 2px; }
.coverage-bar .covered { width: 94.915%; background: var(--ink); }
.coverage-bar .pending { flex: 1; background: var(--signal); }
.coverage-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.totals { margin: 0; padding-top: 6px; }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.totals dt { font-size: 13px; }
.totals dd { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.totals .grand { border-color: var(--ink); padding-top: 0; padding-bottom: 15px; }
.totals .grand dd { font-size: 31px; }
.section { margin-top: 35px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-heading > span { font-size: 12px; color: var(--muted); }
.exceptions { border-top: 1px solid var(--ink); }
.exception { display: grid; grid-template-columns: 50px 1.05fr 1.4fr auto; gap: 20px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--rule); }
.exception-count { font-size: 36px; line-height: 1; color: var(--signal); letter-spacing: -.03em; }
.exception-title { font-size: 16px; font-weight: 500; }
.exception-detail { color: var(--muted); font-size: 13px; }
.exception-detail span { display: block; color: var(--ink); margin-bottom: 3px; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 36px; }
.ledger-lines { margin: 18px 0 0; border-top: 1px solid var(--ink); }
.ledger-lines > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.ledger-lines dt { color: var(--muted); }
.ledger-lines dd { margin: 0; text-align: right; }
.note { margin-top: 13px; font-size: 12px; color: var(--muted); max-width: 65ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 19px; }
.feedback { margin-top: 14px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 13px; max-width: 68ch; }
.feedback:empty { display: none; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; border-top: 1px solid var(--ink); padding: 17px 0 25px; font-size: 12px; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 21px; }
.filters { display: flex; gap: 0; flex-wrap: wrap; }
.filter { padding: 9px 16px; min-height: 42px; border: 1px solid var(--rule); background: transparent; margin-right: -1px; font-size: 13px; }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); position: relative; }
.filter[aria-pressed="true"]:hover { background: #3e403a; }
.filter[aria-pressed="true"] .signal { color: inherit; }
.search-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.search-field input { width: 235px; min-height: 42px; border: 1px solid var(--rule); background: transparent; padding: 9px 12px; font-size: 14px; }
input::placeholder { color: var(--muted); }
.table-caption { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.matches { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); table-layout: fixed; }
.matches th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .055em; font-weight: 500; color: var(--muted); padding: 12px 12px 12px 0; border-bottom: 1px solid var(--ink); }
.matches th:nth-child(1) { width: 7%; }
.matches th:nth-child(2) { width: 25%; }
.matches th:nth-child(3) { width: 12%; text-align: right; }
.matches th:nth-child(4) { width: 8%; }
.matches th:nth-child(5) { width: 30%; }
.matches th:nth-child(6) { width: 18%; }
.matches td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 13px; }
.matches td:nth-child(3) { text-align: right; }
.matches td:nth-child(4) { text-align: center; }
.matches th:last-child, .matches td:last-child { padding-right: 0; }
.matches small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.matches .selected { background: var(--wash); }
.matches tr.selected td:first-child { padding-left: 10px; }
.row-button { padding: 0; border: 0; background: transparent; min-height: 25px; text-align: left; font-weight: 600; font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.status { display: inline-flex; gap: 5px; align-items: center; }
.excluded { color: var(--muted); }
.match-symbol { display: block; width: 20px; margin: 2px auto 0; }
.empty { padding: 30px 0; border-bottom: 1px solid var(--rule); }
.evidence { margin-top: 28px; border-top: 1px solid var(--ink); padding-top: 22px; }
.evidence-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.evidence-head h2 { font-size: 21px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-top: 22px; }
.evidence-value { font-size: 29px; letter-spacing: -.025em; margin: 7px 0; }
.evidence-grid p:last-child { font-size: 12px; color: var(--muted); }
.source-charge { display: flex; align-items: baseline; gap: 25px; padding: 19px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 30px; }
.source-charge strong { font-size: 27px; font-weight: 500; letter-spacing: -.025em; }
.source-charge .charge-meta { margin-left: auto; color: var(--muted); font-size: 12px; }
.teach-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 70px; }
.strategy-intro { color: var(--muted); font-size: 14px; margin: 12px 0 22px; max-width: 60ch; }
.strategies { border: 0; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.strategies legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.strategy { display: grid; grid-template-columns: 25px 1fr; gap: 13px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.strategy input { accent-color: var(--ink); width: 16px; height: 16px; margin: 4px 0 0; }
.strategy strong { display: block; font-size: 15px; font-weight: 500; }
.strategy small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.strategy .recommendation { font-size: 12px; letter-spacing: .06em; font-weight: 600; margin-left: 10px; text-transform: uppercase; }
.strategy:has(input:checked) { background: var(--wash); padding-left: 12px; padding-right: 12px; }
.strategy:hover { background: var(--wash); }
.recipe-header { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; }
.recipe-header span { font-size: 12px; color: var(--muted); }
.recipe-fields { margin-top: 18px; border-top: 1px solid var(--ink); }
.recipe-field { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.recipe-field dt { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.recipe-field dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.form-field { display: block; font-size: 13px; margin-top: 20px; }
.form-field input { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--rule); background: transparent; margin-top: 7px; font-size: 14px; }
.form-field small { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; }
.test-run { margin-top: 29px; border-top: 1px solid var(--ink); padding-top: 20px; }
.test-run h3 { font-size: 20px; font-weight: 500; }
.run-log { list-style: none; padding: 0; margin: 18px 0 0; }
.run-log li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 8px 0; font-size: 12px; }
.run-log time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.test-result { display: flex; justify-content: space-between; gap: 15px; margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink); font-size: 15px; }
.test-result strong { font-weight: 500; }
.test-run.is-running .run-log { opacity: .35; }
.test-run.is-complete .test-result { animation: ledger-mark 250ms ease-out; }
@keyframes ledger-mark { from { background-color: var(--rule); } to { background-color: transparent; } }
[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .coverage, .bottom-grid, .teach-grid { gap: 36px; }
  .exception { grid-template-columns: 40px 1fr 1.1fr auto; gap: 12px; }
  .exception .button { padding: 9px 11px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .shell { width: calc(100% - 44px); }
  .masthead { min-height: 87px; gap: 15px; }
  .brand strong { font-size: 27px; }
  .brand span { display: none; }
  .workspace { font-size: 12px; }
  .workspace span { font-size: 12px; }
  .nav { justify-content: space-between; gap: 12px; }
  .nav a { font-size: 12px; padding: 16px 0; }
  main { padding-top: 31px; }
  h1 { font-size: 36px; }
  h2 { font-size: 22px; }
  .page-heading { display: block; margin-bottom: 26px; }
  .subtitle { font-size: 14px; }
  .page-meta { text-align: left; padding-top: 17px; font-size: 12px; }
  .page-meta span { display: inline; margin: 0 0 0 12px; }
  .coverage, .bottom-grid, .teach-grid { grid-template-columns: 1fr; gap: 30px; }
  .coverage { padding-top: 0; }
  .coverage-number { font-size: 82px; }
  .coverage-number .denominator { font-size: 45px; }
  .coverage-title p { font-size: 15px; }
  .coverage-title { margin-top: 12px; }
  .coverage-foot { font-size: 12px; }
  .totals { padding-top: 2px; }
  .totals dd { font-size: 20px; }
  .totals .grand dd { font-size: 27px; }
  .section { margin-top: 30px; }
  .section-heading { align-items: start; }
  .section-heading > span { max-width: 95px; text-align: right; }
  .exception { grid-template-columns: 35px 1fr; gap: 8px 15px; padding: 20px 0; }
  .exception-count { grid-row: 1 / 3; font-size: 32px; align-self: start; }
  .exception-detail, .exception .button { grid-column: 2; }
  .exception .button { justify-self: start; margin-top: 7px; min-height: 44px; }
  .exception-detail { font-size: 13px; }
  .bottom-grid { margin-top: 30px; }
  .button { min-height: 44px; font-size: 14px; }
  .note { font-size: 13px; }
  footer { display: block; font-size: 12px; margin-top: 36px; }
  footer span { display: block; margin-top: 6px; }
  .toolbar { display: block; }
  .filters { margin-bottom: 18px; }
  .filter { padding: 10px 13px; min-height: 44px; font-size: 13px; }
  .search-field input { width: 100%; font-size: 16px; min-height: 44px; }
  .table-caption { font-size: 12px; }
  .matches, .matches tbody { display: block; }
  .matches thead { display: none; }
  .matches tr { display: grid; grid-template-columns: 1fr auto; padding: 17px 0; border-bottom: 1px solid var(--rule); gap: 7px 10px; }
  .matches td { border: 0; padding: 0 !important; font-size: 14px; }
  .matches td:nth-child(1) { grid-column: 1 / 3; color: var(--muted); font-size: 12px; }
  .matches td:nth-child(2) { grid-column: 1; }
  .matches td:nth-child(3) { grid-column: 2; font-size: 16px; }
  .matches td:nth-child(4) { display: none; }
  .matches td:nth-child(5) { grid-column: 1 / 3; margin-top: 2px; }
  .matches td:nth-child(5)::before { content: "Invoice: "; color: var(--muted); font-size: 12px; }
  .matches td:nth-child(6) { grid-column: 1 / 3; font-size: 12px; }
  .matches .selected { padding-left: 10px; padding-right: 10px; }
  .matches small { font-size: 12px; }
  .row-button { font-size: 14px; min-height: 44px; }
  .evidence-head { align-items: start; }
  .evidence-head > span { font-size: 12px; text-align: right; max-width: 95px; }
  .evidence-grid { grid-template-columns: 1fr; gap: 19px; }
  .evidence-grid > div { padding-bottom: 17px; border-bottom: 1px solid var(--rule); }
  .evidence-value { margin: 5px 0; }
  .evidence-grid p:last-child { font-size: 13px; }
  .source-charge { flex-wrap: wrap; gap: 5px 20px; margin-bottom: 26px; }
  .source-charge strong { font-size: 26px; }
  .source-charge .charge-meta { margin-left: 0; flex-basis: 100%; margin-top: 8px; }
  .strategy-intro { font-size: 14px; }
  .strategy strong { font-size: 16px; }
  .strategy small { font-size: 13px; }
  .strategy .recommendation { display: block; margin: 4px 0 0; font-size: 12px; }
  .form-field input { font-size: 16px; min-height: 44px; }
  .recipe-field dd { font-size: 15px; }
  .run-log li { font-size: 13px; }
  .teach-grid { gap: 35px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Product-wide ledger components. */
.primary-navigation { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.primary-navigation > summary { display: none; }
.primary-navigation .nav { display: flex; align-items: center; gap: 36px; border: 0; }
.primary-navigation .nav a { min-height: 42px; padding: 12px 0; font-size: 13px; }
.primary-navigation .nav a[aria-current]::after { right: auto; width: 36px; height: 2px; }
.overview-lead { display: flex; justify-content: space-between; gap: 50px; align-items: end; padding: 10px 0 30px; border-bottom: 1px solid var(--ink); }
.overview-lead p { max-width: 61ch; font-size: 19px; }
.overview-lead .button { flex-shrink: 0; }
.route-index { border-top: 1px solid var(--ink); }
.route-index > a { display: grid; grid-template-columns: 220px 1fr 20px; gap: 30px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.route-index strong { font-size: 18px; font-weight: 500; }
.route-index span { color: var(--muted); font-size: 14px; }
.route-index a:hover { background: var(--wash); }
.route-index svg { align-self: center; }
.intake-strip { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 25px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0; margin-bottom: 26px; }
.intake-strip strong { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.intake-strip span { font-size: 12px; color: var(--muted); }
.register { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 1px solid var(--ink); margin-top: 18px; }
.register th { padding: 13px 18px 13px 0; text-align: left; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.register td { padding: 15px 18px 15px 0; font-size: 13px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.register th:last-child, .register td:last-child { padding-right: 0; }
.register small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.register td:first-child { font-weight: 500; }
.register code { font-size: 12px; }
@media (min-width: 721px) {
  .inbox-register th:nth-child(1) { width: 20%; }
  .inbox-register th:nth-child(2) { width: 20%; }
  .inbox-register th:nth-child(3) { width: 24%; }
  .inbox-register th:nth-child(4) { width: 10%; text-align: right; }
  .inbox-register td:nth-child(4) { text-align: right; }
  .inbox-register th:nth-child(5) { width: 26%; }
  .vendor-register th:nth-child(1) { width: 29%; }
  .vendor-register th:nth-child(2) { width: 20%; }
  .vendor-register th:nth-child(3) { width: 10%; }
  .vendor-register th:nth-child(4) { width: 18%; }
  .vendor-register th:nth-child(5) { width: 23%; }
}
code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.ledger-lines > div { min-width: 0; }
.ledger-lines dd { max-width: 72%; overflow-wrap: anywhere; }
.hash { display: block; max-width: 33ch; font-size: 12px; }
.disclosure { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.disclosure > summary { font-size: 15px; font-weight: 500; min-height: 27px; }
.disclosure > p { margin-top: 16px; max-width: 70ch; font-size: 14px; }
.checklist { padding: 0; list-style: none; border-top: 1px solid var(--ink); margin: 18px 0 0; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.checklist label { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 14px; cursor: pointer; }
.checklist input { accent-color: var(--ink); width: 16px; height: 16px; }
.invoice-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; }
.document-preview { border-top: 1px solid var(--ink); padding-top: 16px; }
.document-top { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.document-top span:last-child { color: var(--muted); }
.document-title { font-size: 64px; margin-top: 33px; line-height: 1; letter-spacing: -.035em; }
.document-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 29px; font-size: 14px; }
.document-meta .label { margin-bottom: 8px; }
.document-table { width: 100%; border-collapse: collapse; margin-top: 32px; font-size: 14px; }
.document-table th { font-size: 12px; font-weight: 500; text-align: left; color: var(--muted); }
.document-table th, .document-table td { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.document-table td:last-child, .document-table th:last-child { text-align: right; }
.document-table tfoot td { font-size: 27px; }
.document-table tfoot th, .document-table tfoot td { color: var(--ink); border-color: var(--ink); }
.login-grid { margin-top: 0; }
.instruction-list { padding-left: 20px; margin: 20px 0; font-size: 16px; }
.instruction-list li { padding: 7px 0 7px 5px; }
.notification-transcript { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 20px 0; margin-top: 20px; }
.notification-message { margin-top: 16px; font-size: 23px; line-height: 1.35; letter-spacing: -.02em; }
.form-field select { display: block; margin-top: 8px; padding: 10px 12px; width: 100%; min-height: 44px; border: 1px solid var(--rule); background: var(--paper); }
.balance-equation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 22px 0; }
.balance-equation span { display: block; color: var(--muted); font-size: 12px; }
.balance-equation strong { display: block; font-weight: 500; font-size: 26px; margin-top: 10px; letter-spacing: -.025em; white-space: nowrap; }
.failed-check .section-heading > span { color: var(--signal); }
.section-copy { margin-top: 18px; font-size: 16px; max-width: 65ch; }
.setup-steps { list-style: none; padding: 0; margin: 0; counter-reset: setup; }
.setup-steps > li { display: grid; grid-template-columns: 55px 1fr; gap: 25px; counter-increment: setup; border-top: 1px solid var(--ink); padding: 25px 0 32px; }
.setup-steps > li::before { content: counter(setup); font-size: 36px; line-height: 1; letter-spacing: -.03em; }
.setup-steps h2 { margin-bottom: 18px; }
.setup-steps section > p { max-width: 70ch; }
.terminal-transcript { border-top: 1px solid var(--ink); }
.terminal-heading { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); padding: 14px 0; font-size: 12px; border-bottom: 1px solid var(--rule); }
.command-block { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.command-block h2 { font-size: 17px; line-height: 1.6; font-weight: 500; letter-spacing: 0; }
.command-block h2 code { font-size: 16px; }
.command-block pre { font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); margin: 15px 0 0; }
.architecture-flow { margin: 0; }
.architecture-flow figcaption { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.architecture-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.architecture-component { border-top: 1px solid var(--ink); padding-top: 20px; }
.component-location { font-size: 12px; color: var(--muted); margin-top: 8px; }
.flow-stages { list-style: none; padding: 0; margin: 25px 0 0; }
.flow-stages li { padding: 17px 0; border-top: 1px solid var(--rule); }
.flow-stages strong { display: block; font-size: 18px; font-weight: 500; }
.flow-stages span { display: block; font-size: 13px; margin-top: 8px; color: var(--muted); }
.flow-stages .api-stage { border-top-color: var(--ink); }
.flow-connection { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 14px; }
.flow-connection strong { font-weight: 500; }
.flow-connection span:last-child { margin-left: auto; font-size: 12px; color: var(--muted); }
.drive-destination { padding-top: 25px; }
.drive-destination > p { margin-top: 12px; font-size: 14px; }
@media (max-width: 1050px) {
  .primary-navigation .nav { gap: 26px; }
  .invoice-grid, .architecture-lanes { gap: 36px; }
  .balance-equation strong { font-size: 22px; }
}
@media (max-width: 720px) {
  .primary-navigation > summary { display: flex; gap: 12px; align-items: center; min-height: 49px; font-size: 12px; }
  .primary-navigation > summary span { margin-left: auto; font-weight: 600; }
  .primary-navigation > summary svg { flex-shrink: 0; width: 14px; }
  .primary-navigation[open] > summary svg { transform: rotate(180deg); }
  .primary-navigation .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 8px; }
  .primary-navigation .nav a { font-size: 14px; min-height: 44px; }
  .overview-lead { display: block; }
  .overview-lead p { font-size: 17px; }
  .overview-lead .button { margin-top: 20px; }
  .route-index > a { grid-template-columns: 1fr 20px; gap: 7px 20px; padding: 17px 0; }
  .route-index strong { font-size: 18px; }
  .route-index span { grid-row: 2; grid-column: 1; font-size: 14px; }
  .route-index svg { grid-column: 2; grid-row: 1 / 3; }
  .intake-strip strong { font-size: 16px; }
  .register, .register tbody { display: block; }
  .register thead { display: none; }
  .register tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .register td { display: block; position: relative; padding: 7px 0 7px 122px; border: 0; font-size: 14px; }
  .register td::before { content: attr(data-label); position: absolute; left: 0; top: 7px; width: 105px; color: var(--muted); font-size: 12px; font-weight: 400; }
  .register td > * { grid-column: 2; }
  .register td:first-child { display: block; font-size: 16px; padding: 0 0 9px; }
  .register td:first-child::before { display: block; position: static; width: auto; font-size: 12px; margin-bottom: 6px; }
  .register td:first-child > small { margin-top: 6px; }
  .register small { font-size: 12px; }
  .register .button { justify-self: start; }
  .invoice-grid, .architecture-lanes { grid-template-columns: 1fr; gap: 35px; }
  .document-title { font-size: 54px; }
  .document-meta { gap: 20px; font-size: 13px; }
  .document-table { font-size: 13px; }
  .document-table tfoot td { font-size: 25px; }
  .disclosure > summary { min-height: 36px; font-size: 14px; }
  .checklist label { min-height: 44px; }
  .balance-equation { grid-template-columns: 1fr 1fr; gap: 20px; }
  .balance-equation strong { font-size: 22px; }
  .setup-steps > li { grid-template-columns: 30px minmax(0, 1fr); gap: 15px; }
  .setup-steps > li::before { font-size: 28px; }
  .setup-steps h2 { font-size: 22px; }
  .setup-steps .register td { padding-left: 85px; }
  .setup-steps .register td::before { width: 75px; }
  .setup-steps .register td:first-child { padding-left: 0; }
  .terminal-heading { display: block; }
  .terminal-heading span { display: block; margin-bottom: 4px; }
  .command-block h2 code { font-size: 15px; }
  .command-block pre { font-size: 12px; }
  .flow-connection { gap: 12px; }
  .flow-connection span:last-child { margin-left: 0; flex-basis: 100%; }
  .form-field select { font-size: 16px; }
}

/* App destinations, contextual paths and concept documentation have distinct roles. */
.header-tools { display: flex; align-items: center; gap: 28px; }
.header-link { font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.header-link[aria-current] { font-weight: 600; text-decoration: underline; }
.attention-count { color: var(--signal); margin-left: 6px; font-weight: 600; }
.breadcrumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; margin: -13px 0 25px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb svg { width: 13px; height: 13px; }
.concept-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; border-top: 1px solid var(--ink); margin-top: 48px; padding-top: 17px; font-size: 12px; }
.concept-links > span { color: var(--muted); margin-right: auto; }
footer.page-footer { margin-top: 14px; border-top: 0; padding-top: 0; }
@media (max-width: 720px) {
  .masthead { flex-wrap: wrap; gap: 0 20px; padding: 19px 0 10px; }
  .header-tools { flex: 1; flex-wrap: wrap; justify-content: flex-end; gap: 0 18px; }
  .header-link { font-size: 12px; min-height: 32px; }
  .workspace { flex-basis: 100%; }
  .primary-navigation .nav a[aria-current]::after { width: 36px; }
  .breadcrumb { margin: -8px 0 23px; font-size: 13px; }
  .concept-links { margin-top: 36px; gap: 14px 22px; }
  .concept-links > span { flex-basis: 100%; }
  .concept-links a { min-height: 32px; }
}

/* Locale is carried by the document; code and financial values retain their shape. */
.language-switch { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.language-switch a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.language-switch a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; }
.language-switch > span { color: var(--rule); }
.language-note { margin: -12px 0 24px; font-size: 13px; }
html:lang(de) { hyphens: auto; }
html:lang(de) code, html:lang(de) pre, html:lang(de) .mono, html:lang(de) .amount,
html:lang(de) .coverage-number, html:lang(de) .evidence-value, html:lang(de) .balance-equation strong { hyphens: none; }
html:lang(de) .page-heading > div, html:lang(de) .section-heading h2 { min-width: 0; }
html:lang(de) .run-log { grid-template-columns: 1fr; }
html:lang(de) .run-log li { grid-template-columns: 88px minmax(0, 1fr); }
@media (max-width: 720px) {
  .header-tools { gap: 0 14px; }
  .language-switch a { min-height: 32px; }
  html:lang(de) .section-heading { align-items: start; gap: 15px; }
  html:lang(de) .section-heading > span { flex-shrink: 0; max-width: 105px; text-align: right; }
  html:lang(de) .matches td:nth-child(5)::before { content: "Rechnung: "; }
}
/* Live forms and evidence use the approved concept's type, spacing and rules. */
.cloud-form { margin-top: 18px; display: grid; gap: 14px; }
.cloud-form label { display: grid; gap: 6px; font-size: 13px; }
.cloud-form input:not([type=hidden]), .cloud-form select, .cloud-form textarea { background: transparent; border: 1px solid var(--rule); min-height: 42px; padding: 9px 12px; max-width: 100%; width: 100%; }
.cloud-form input[type=checkbox], .cloud-form input[type=radio] { width: 16px; min-height: 16px; }
.cloud-form textarea { min-height: 100px; font-family: var(--mono); font-size: 12px; }
.cloud-form .button { justify-self: start; }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 0; }
.inline-form label { max-width: 260px; }
.month-filter { display: flex; align-items: end; gap: 12px; margin-bottom: 24px; }
.month-filter label { display: grid; gap: 5px; font-size: 12px; }
.month-filter input { padding: 9px 12px; background: transparent; border: 1px solid var(--rule); min-height: 42px; }
.empty-state { padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); color: var(--muted); }
.cloud-coverage { display: block; width: 100%; height: 8px; border: none; border-radius: 0; appearance: none; background: var(--signal); }
.cloud-coverage::-webkit-progress-bar { background: var(--signal); }
.cloud-coverage::-webkit-progress-value { background: var(--ink); }
.cloud-coverage::-moz-progress-bar { background: var(--ink); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.issued-token { display: block; padding: 20px 0; overflow-wrap: anywhere; }
.register td .cloud-form { margin-top: 10px; }
.register th.amount, .register td.amount { text-align: right; }
.exception-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }
.approval { margin-top: 24px; border-top: 1px solid var(--ink); padding-top: 20px; }
.approval label { margin: 6px 0; }
.register .button { margin: 4px 0; }
.register .inline-form { display: inline-flex; }
.summary-preview { padding: 24px; border: 1px solid var(--rule); }
@media (max-width: 720px) { .inline-form { display: grid; } .inline-form label { max-width: none; } .register .cloud-form { width: 100%; } }
