/* Honkster's stylesheet: the Industry design system's tokens and component
   classes (see the handoff's readme.md for the system itself), plus a thin
   layout layer for this app's own shell and screens. Take colors, fonts,
   spacing and radii from the variables below -- never a hex literal or a
   raw px value the tokens already carry.

   Fonts are self-hosted (fonts.css, linked from layout.html's <head>), not
   Google's CDN: the design system's own styles.css imports fonts.googleapis.com
   directly, which would be this app's only external network request on every
   page load. That import is deliberately not reproduced here. */

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-accent-2: #728fab;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  /* Tonal ramps, generated in OKLCH on one shared lightness scale so the
     same step of any role carries the same visual weight. */
  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  /* The one deliberate exception to the single-accent rule: an error needs
     to read as an error at a glance, which the steel accent alone doesn't
     do. Kept muted (a dusty brick, not an alarm red) and used nowhere but
     .flash-error, so it stays the exception rather than a second palette. */
  --color-error: #b3564b;
  --color-error-text: #8a3d33;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  /* Page-level rhythm, one notch above the --space-* scale (docs/PROMPT.md
     section 3 and 6: content gutter 34px, top inset 47.6px). */
  --page-x: 34px;
  --page-top: 47.6px;
  --page-bottom: 54px;

  --radius-sm: 2px;
  --radius-md: 4px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
/* h1 defaults to the mockup's 44px everywhere -- .page-head h1 used to be
   the only place that set it, which left every h1 outside .page-head (nine
   templates: org_settings, invoice_form, deposits, client_form, wallet_form,
   schedule_form, org_new, admin_organizations, admin_tariffs) falling back
   to the browser's ~30px default instead. .landing-hero h1 and
   public_invoice.html's inline style both have higher specificity and
   still win over this. */
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

/* Muted text is always this one solid color, never color-mix() with
   transparency on top of the page background -- a lighter opacity there
   measured under the 4.5:1 contrast a body-text color needs. */
.text-muted, .field > label, .field-hint, figcaption {
  color: var(--color-neutral-700);
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
[data-numeric], .tabular-nums { font-variant-numeric: tabular-nums; }
.ml-auto { margin-left: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider);
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 0;
}
button.btn { font: inherit; font-family: var(--font-heading); font-weight: var(--font-heading-weight); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); border-color: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); border-color: var(--color-accent-700); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); border-color: transparent; padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 34px; height: 34px; padding: 0; font-size: 16px; line-height: 1; }
.btn-block { width: 100%; }
/* The one size used beside a page <h1> or a hero CTA -- everything else
   (table-row actions, inline card actions) stays the base .btn size. */
.btn-lg { padding: 10px 18px; font-size: 15px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 12px; }
.field-hint { font-size: 12px; margin-top: 5px; }
.field.span-2 { grid-column: 1 / -1; }

.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; font-family: inherit; }
select.input { cursor: pointer; }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6);
  max-width: 900px;
}
.form-actions {
  display: flex; gap: var(--space-3); padding-top: var(--space-2);
  border-top: 1px solid var(--color-divider);
}

.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); }
.seg-opt { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.seg-opt .count { opacity: 0.55; margin-left: 4px; }

/* ==========================================================================
   Blueprint frame -- the wireframe treatment every card/summary/empty-state
   wears: square, transparent, hairline-bordered, with four crosshair marks.
   ========================================================================== */
.blueprint { position: relative; border: 1px solid var(--color-divider); }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.blueprint > .corner::before, .blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* ==========================================================================
   Tables
   ========================================================================== */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-700);
  padding: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.table td { padding-block: 11px; padding-inline: var(--space-2); border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.table .num { text-align: right; }
.table .empty-row td { padding-block: var(--space-6); color: var(--color-neutral-700); }

/* ==========================================================================
   Status: a square dot plus a word, never a colored badge pill.
   ========================================================================== */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.status-dot { display: block; flex: none; width: 7px; height: 7px; }
.status--overdue { color: var(--color-accent-800); }
.status--overdue .status-dot { background: var(--color-accent); }
.status--partial .status-dot { background: linear-gradient(90deg, var(--color-accent) 50%, transparent 50%); border: 1px solid var(--color-accent); }
.status--sent .status-dot { background: var(--color-accent-300); }
.status--draft { color: var(--color-text); }
.status--draft .status-dot { border: 1px solid var(--color-neutral-500); }
.status--paid { color: var(--color-neutral-700); }
.status--paid .status-dot { background: var(--color-neutral-500); }
.status--cancelled { color: var(--color-neutral-700); }
.status--cancelled .status-dot { border: 1px solid var(--color-neutral-500); }
.status--on .status-dot { background: var(--color-accent); }
.status--off { color: var(--color-neutral-700); }
.status--off .status-dot { border: 1px solid var(--color-neutral-500); }
/* Bigger dot for a page-level status line (invoice view header, public page
   eyebrow) rather than a table row. */
.status-lg .status-dot { width: 8px; height: 8px; }
.status-lg { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ==========================================================================
   Brand mark: an 18x18 square with a small accent triangle "beak". The one
   circus tell that's always on screen (docs/PROMPT.md section 4).
   ========================================================================== */
.brand-mark {
  position: relative; display: block; flex: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--color-text);
}
.brand-mark::after {
  content: ""; position: absolute; right: -1.5px; top: 5px;
  width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 7px solid var(--color-accent);
}
.brand-word {
  font-family: var(--font-heading); font-weight: 600; font-size: 19px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
/* The public payment page shows the invoicing organization's own name here
   instead of "HONKSTER" -- a real business name set its own casing, so this
   drops the brand wordmark's uppercase treatment rather than shouting it. */
.brand-word--org { font-size: 17px; letter-spacing: normal; text-transform: none; }

/* The striped "circus tent" plate -- exactly twice on the whole site (landing
   hero, empty states). Never used anywhere else; see docs/PROMPT.md section 4. */
.circus-plate {
  width: 64px; height: 5px;
  background: repeating-linear-gradient(45deg, var(--color-accent) 0 3px, transparent 3px 6px);
}

/* ==========================================================================
   Header / footer shell
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--color-divider); }
.nav {
  display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-4) var(--page-x);
}
.nav-brand {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-text); text-decoration: none;
}
.nav-org-mark {
  display: block; flex: none; width: 20px; height: 20px;
  background: var(--color-neutral-300);
  object-fit: cover;
}
.nav-links { display: flex; align-items: center; gap: var(--space-6); flex: 1; min-width: 0; }
.nav-links a { color: var(--color-text); text-decoration: none; font-size: 13.5px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-accent); }
.nav-links a[aria-current="page"] { border-bottom: 1.5px solid var(--color-accent); padding-bottom: 2px; }
.nav-links form { display: contents; }
.nav-links button.btn-ghost { font-size: 13px; color: var(--color-neutral-700); font-family: var(--font-body); font-weight: 400; padding: 0; border: 0; }
.nav-links button.btn-ghost:hover { color: var(--color-accent); background: none; }
/* Everything from here to the end of the nav block sits on the far right:
   the current org, Settings, Sign out -- pushed off from the primary links
   by the flex:1 .nav-links container they share. */
.nav-right { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.nav-org { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--color-text); text-decoration: none; }
.nav-settings, .nav-signout { font-size: 13px; color: var(--color-neutral-700); text-decoration: none; }
.nav-settings:hover, .nav-signout:hover { color: var(--color-accent); }
.nav-public-note { margin-left: auto; font-size: 12px; color: var(--color-neutral-700); }

.site-footer { border-top: 1px solid var(--color-divider); }
.footer-bar {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6);
  padding: var(--space-6) var(--page-x);
  font-size: 12px; color: var(--color-neutral-700);
}

/* ==========================================================================
   Flash messages -- square, hairline, left tick in the message's own color
   rather than a filled colored banner (keeps the "one solid fill on screen
   is .btn-primary" rule from PLAN's design system).
   ========================================================================== */
.flash {
  margin: var(--space-6) var(--page-x) 0;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-neutral-500);
  font-size: 13.5px;
}
.flash-error { border-left-color: var(--color-error); color: var(--color-error-text); }
.flash-success { border-left-color: var(--color-neutral-700); }
.flash-info { border-left-color: var(--color-accent-400); }

/* ==========================================================================
   Page skeleton -- docs/PROMPT.md section 6's recipe for every screen that
   isn't one of the explicitly mocked ones, and the mocked list/form/view
   screens alike.
   ========================================================================== */
.page {
  padding: var(--page-top) var(--page-x) var(--page-bottom);
  display: flex; flex-direction: column; gap: var(--space-8);
}
/* The invoice form's sticky .action-bar supplies its own bottom border and
   padding, so the page itself carries none -- avoids a double gap. */
.page--flush-bottom { padding-bottom: 0; }
.form-stack { display: flex; flex-direction: column; gap: var(--page-x); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: var(--space-2); }
.page-lead { font-size: 13.5px; margin: 4px 0 0; color: var(--color-neutral-700); }
.section-head { display: flex; align-items: baseline; gap: var(--space-3); margin-bottom: var(--space-4); }
.section-head h4 { margin: 0; }
.section-head .hint { font-size: 12px; color: var(--color-neutral-700); }
.back-link { font-size: 13px; }
.action-row { display: flex; gap: var(--space-3); align-items: center; }
.side-stack { display: flex; flex-direction: column; gap: var(--space-6); }

/* ==========================================================================
   Empty state -- a blueprint plate, the one other spot the circus stripe
   is allowed (docs/PROMPT.md section 4).
   ========================================================================== */
.empty-state { padding: 68px var(--space-6); text-align: center; }
.empty-state .circus-plate { margin: 0 auto var(--space-6); }
.empty-state h4 { font-size: 24px; margin: 0 0 6px; }
.empty-state p { font-size: 14.5px; margin: 0 0 var(--space-6); color: var(--color-neutral-700); }
.empty-state .actions { display: flex; gap: var(--space-3); justify-content: center; }

/* ==========================================================================
   Summary / total blueprint blocks (invoice form, invoice view, public page).
   ========================================================================== */
.summary-box { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--color-neutral-700); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.summary-total .label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); }
.summary-total .value { font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.summary-total--lg .value { font-size: 34px; }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat-cell {
  display: block; padding: var(--space-6);
  color: inherit; text-decoration: none;
  border-right: 1px solid var(--color-divider);
}
.stat-grid > :last-child { border-right: none; }
.stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: var(--space-2); }
.stat-label--accent { color: var(--color-accent-700); }
.stat-value { font-family: var(--font-heading); font-size: 46px; line-height: 1; }
.stat-value--accent { color: var(--color-accent); }
.stat-sub { font-size: 12px; color: var(--color-neutral-700); margin-top: var(--space-1); }

.needs-you { border-top: 1px solid var(--color-divider); }
.needs-you-row {
  display: grid; grid-template-columns: 8px 1fr auto auto; gap: var(--space-4); align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--color-divider);
}
.needs-you-row .status-dot { width: 8px; height: 8px; background: var(--color-accent); }
.needs-you-row .desc { font-size: 14.5px; }
.needs-you-row .desc a { font-weight: 500; }

.info-banner {
  display: flex; align-items: center; gap: var(--space-6);
  padding: 17px var(--space-6); border: 1px solid var(--color-divider);
}
.info-banner .body { flex: 1; }
.info-banner .title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.info-banner .detail { font-size: 13px; color: var(--color-neutral-700); }

/* ==========================================================================
   Invoice form -- line items grid, live total, sticky action bar.
   ========================================================================== */
.line-items-head, .line-item-row {
  display: grid; grid-template-columns: 28px 1fr 90px 170px 170px 34px; gap: var(--space-4); align-items: center;
}
.line-items-head {
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-divider);
}
.line-item-row { padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.line-item-row[hidden] { display: none; }
.line-item-row .num { font-family: var(--font-heading); font-size: 15px; color: var(--color-neutral-700); }
.line-item-row .amount { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.line-item-row .input { text-align: right; }
.line-item-row .input.desc { text-align: left; }
.line-items-foot { margin-top: var(--space-3); }

.invoice-form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.notes-and-total { display: grid; grid-template-columns: 1fr 360px; gap: var(--page-x); align-items: start; }

.action-bar {
  position: sticky; bottom: 0; z-index: 1;
  display: flex; align-items: center; gap: var(--space-4);
  padding: 17px var(--page-x);
  border-top: 1px solid var(--color-text);
  background: var(--color-bg);
}
.action-bar .note { font-size: 13px; color: var(--color-neutral-700); margin-right: auto; }

/* ==========================================================================
   Invoice view / public payment page
   ========================================================================== */
.invoice-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  padding: 17px 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider);
}
.invoice-meta-grid .k { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 4px; }
.invoice-meta-grid .v { font-size: 14.5px; }
.invoice-meta-grid .sub { font-size: 12.5px; color: var(--color-neutral-700); }
.invoice-body-grid { display: grid; grid-template-columns: 1fr 400px; gap: var(--page-x); align-items: start; }

.history-list { border-top: 1px solid var(--color-divider); }
.history-row {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4);
  padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  font-size: 13.5px;
}
.history-row .when { color: var(--color-neutral-700); font-variant-numeric: tabular-nums; white-space: nowrap; }

.payment-box { padding: var(--space-6); }
.payment-box .k { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 3px; }
.payment-box .k--required { color: var(--color-accent-700); }
.payment-box .v { margin-bottom: var(--space-4); }
.payment-box .copy-row { display: flex; align-items: center; gap: 10px; }
.payment-box .copy-row .v { flex: 1; margin-bottom: 0; }
.qr-box img { width: 100%; aspect-ratio: 1; }
.qr-caption { font-size: 11px; text-align: center; color: var(--color-neutral-700); margin-top: 6px; }
.side-card { border: 1px solid var(--color-divider); padding: 17px var(--space-6); }
.side-card .k { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 6px; }
.side-card .actions { display: flex; gap: 8px; }
.side-card .actions .btn { flex: 1; }

.public-shell { max-width: 660px; margin: 0 auto; padding: 54px var(--space-8) 0; display: flex; flex-direction: column; gap: var(--space-8); }
.public-hero p { font-size: 14.5px; margin: 0; color: var(--color-neutral-700); }
.public-amount-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6);
  padding: var(--space-6) 0; border-top: 1px solid var(--color-text); border-bottom: 1px solid var(--color-divider);
}
.public-amount-grid .k { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 4px; }
.public-amount-grid .value { font-family: var(--font-heading); font-weight: 600; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.public-pay-grid { padding: var(--space-6); display: grid; grid-template-columns: 1fr 150px; gap: var(--space-6); align-items: center; }
.public-footnote { font-size: 12px; margin: var(--space-4) 0 0; color: var(--color-neutral-700); border-top: 1px solid var(--color-divider); padding-top: 17px; }

/* ==========================================================================
   Deposits
   ========================================================================== */
.deposit-row {
  display: grid; grid-template-columns: 1fr 340px; gap: var(--page-x); align-items: center;
  padding: var(--space-6) 0; border-bottom: 1px solid var(--color-divider);
}
.deposit-row .amount-line { display: flex; align-items: baseline; gap: var(--space-4); margin-bottom: 6px; }
.deposit-row .amount { font-family: var(--font-heading); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.deposit-row .into { font-size: 13px; color: var(--color-neutral-700); }
.deposit-row .from { font-size: 12.5px; color: var(--color-neutral-700); margin-bottom: 3px; }
.deposit-row .comment { font-size: 13px; }
.deposit-row .comment em { color: var(--color-neutral-700); font-style: normal; }
.deposit-actions { display: flex; gap: var(--space-3); align-items: center; }
.deposit-actions .input { flex: 1; }

/* ==========================================================================
   Landing
   ========================================================================== */
.landing-hero {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 68px;
  padding: 88px var(--page-x) 68px; align-items: start;
}
.landing-hero .kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: var(--space-4); }
.landing-hero h1 { font-size: 76px; line-height: 0.94; letter-spacing: -0.02em; margin: 0 0 var(--space-6); max-width: 12ch; }
.landing-hero .lede { font-size: 17px; line-height: 1.5; max-width: 46ch; margin: 0 0 var(--space-8); color: var(--color-neutral-700); }
.landing-hero .actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.landing-hero .aside { margin: 34px 0 0; font-size: 12.5px; color: var(--color-neutral-700); }
.how-it-goes { padding: var(--space-8); }
.how-it-goes .kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: var(--space-6); }
.how-it-goes ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.how-it-goes li { display: grid; grid-template-columns: 34px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); }
.how-it-goes li:last-child { border-bottom: none; }
.how-it-goes .step { font-family: var(--font-heading); font-size: 20px; color: var(--color-accent); }
.how-it-goes .text { font-size: 14.5px; }

/* ==========================================================================
   Small screens: the shell still works, even though this app is mainly used
   at a desk -- links wrap instead of overflowing, grids collapse to one
   column rather than clipping.
   ========================================================================== */
/* The nav's own breakpoint is wider than the content grids below it on
   purpose: a super-admin's row (8 links + brand + org switcher + Settings +
   Sign out) measured wider than .nav-links' available width anywhere from
   ~900-1000px wide, and below ~950px that overflowed the page outright
   (Sign out pushed off-screen, not just squeezed) rather than just wrapping
   -- checked live with a real super-admin session, not assumed. 1200px
   leaves real headroom for a longer organization name than the one tested. */
@media (max-width: 1200px) {
  .nav { flex-wrap: wrap; }
  .nav-links { flex: 1 1 100%; order: 3; flex-wrap: wrap; }
  .nav-right { margin-left: 0; }
}
@media (max-width: 900px) {
  .stat-grid, .landing-hero, .invoice-body-grid, .notes-and-total, .public-pay-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--color-divider); }
  .invoice-form-grid, .form-grid { grid-template-columns: 1fr; }
  .invoice-meta-grid, .public-amount-grid { grid-template-columns: 1fr 1fr; }
}
