@charset "UTF-8";
/* public/app.css — one stylesheet. Tokens first, then components.
   Paper ledger + bank statement, Corduroy navy ink, gold as the one
   decorative accent. Light only — see docs/design/README.md. */

:root {
  color-scheme: light;

  /* Corduroy brand (site palette, 2026-09-08): navy is the ink, gold is decorative, rose is unused in-app */
  --brand:      #1A2238;   /* navy — same as --ink; primary buttons, active nav, links, focus */
  --gold:       #C5A059;   /* decorative only: topbar rule, stamp border, grand-total double rule */
  --gold-ink:   #7A5C1C;   /* gold darkened for the stamp's text — >= 5:1 on paper */
  --brand-tint: color-mix(in srgb, var(--brand) 6%, var(--paper));   /* selected row only */

  /* paper and ink */
  --paper:      #f7f4ee;   /* cream ground */
  --paper-2:    #f1ede5;   /* toolbar / header ground */
  --row-tint:   rgba(26, 34, 56, 0.035);
  --ink:        #1A2238;   /* navy ink — 14:1 on paper */
  --ink-2:      #3F465C;   /* secondary text */
  --muted:      #686E7F;   /* labels, hints — 4.6:1 on paper (darkened from the spec's #6B7183, which measured 4.43:1) */
  --rule:       #D6D3CB;   /* hairlines */
  --rule-ink:   #1A2238;   /* header / total rules */

  /* the only semantic colours */
  --ledger-red: #9b2c1f;   /* negatives, rejected, void, errors */
  --pending:    #b7791f;   /* amber underline on pending rows */
  --ok-ink:     var(--ink);/* approved is plain ink, on purpose */

  /* type */
  --font-text:  "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-wordmark: "Playfair Display", Georgia, serif;
  --fs-body: 13px; --lh-body: 18px;
  --fs-small: 12px; --fs-label: 11px; --fs-h1: 18px; --fs-h2: 14px;

  /* rhythm */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px;
  --row-h: 28px; --control-h: 32px; --toolbar-h: 40px;
  --radius: 2px;
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px var(--brand);
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans/IBMPlexSans-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono/IBMPlexMono-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-display/PlayfairDisplay-Bold.woff2") format("woff2");
}

/* ── reset ────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--fs-body) / var(--lh-body) var(--font-text);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 var(--sp-3); }
strong, b { font-weight: 600; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); }
[hidden] { display: none !important; }

/* ── dev-login banner (docs/runbook.md "Run it locally in five minutes") ── */
.tb-dev-banner {
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--sp-1) var(--sp-2);
  color: var(--ledger-red);
  background: var(--paper-2);
  border-bottom: 1px solid var(--ledger-red);
}

/* ── wordmark ─────────────────────────────────────────────────────────── */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }

/* ── topbar ───────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 48px;
  padding: 0 var(--sp-4);
  background: var(--paper-2);
  border-bottom: 2px solid var(--gold);
}
.topbar-switcher {
  border: none;
  background: transparent;
  color: var(--ink-2);
  font: var(--fs-body) / 1 var(--font-text);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) 0;
  max-width: 220px;
}
.topbar-switcher:focus-visible { box-shadow: var(--focus); border-radius: var(--radius); }
.topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.topbar-nav a {
  color: var(--ink-2);
  font-size: var(--fs-body);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.topbar-nav a:hover { text-decoration: none; color: var(--ink); }
.topbar-nav a.active { color: var(--ink); font-weight: 500; border-bottom-color: var(--brand); }
.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.topbar-signout {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font: var(--fs-small) / 1 var(--font-text);
  padding: 0;
}
.topbar-signout:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; height: auto; padding: var(--sp-2) var(--sp-4); }
  .topbar-nav { display: none; }
}

/* ── page frame ───────────────────────────────────────────────────────── */
main {
  padding: var(--sp-6) var(--sp-4) 64px;
  max-width: 1080px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 56px;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--rule-ink);
  flex-wrap: wrap;
}
.page-head h1 {
  font-family: var(--font-wordmark);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--ink);
}
.page-meta {
  display: block;
  color: var(--muted);
  font-size: var(--fs-small);
  margin-top: 2px;
}
.page-head-actions { display: flex; gap: var(--sp-2); align-self: center; }
main.narrow { max-width: 420px; }

/* ── section (replaces cards: a rule and a small-caps label, no box) ────── */
.section { margin-top: var(--sp-6); }
.section:first-child { margin-top: 0; }
/* A .section rendered into its own placeholder <div> (dynamic content that
   sits beside another such placeholder, e.g. intake.html's targets/drive)
   is structurally its wrapper's first child even when it visually follows
   another section — .section-follows says "no, something real precedes
   this," so its section keeps the normal gap instead of colliding with it. */
.section-follows > .section:first-child { margin-top: var(--sp-6); }
.section-label {
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-bottom: var(--sp-1);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule);
}
.hint { color: var(--muted); font-size: var(--fs-small); }
p.hint { margin: var(--sp-1) 0 var(--sp-2); }
.empty { color: var(--muted); font-size: var(--fs-body); padding: var(--sp-4) 0; }

/* A lone action button (or link) right after form fields needs breathing
   room above it — inputs/labels carry no bottom margin, so without this a
   "Save" button sits flush against the control above it. */
p:has(> button:only-child), p:has(> a:only-child) { margin-top: var(--sp-3); }

/* ── tabs (TB spec 7: admin.html is the one page with top-level tabs —
   plain buttons, the same active-indicator language as .topbar-nav a.active,
   no new visual language) ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: var(--sp-4);
  border-bottom: 1px solid var(--rule-ink);
  margin-bottom: var(--sp-4);
}
.tabs button {
  height: auto;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--sp-2) 0;
  background: none;
  color: var(--ink-2);
  font: 500 var(--fs-body) / 1 var(--font-text);
}
.tabs button:hover { background: none; color: var(--ink); }
.tabs button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--brand); }

/* ── toolbar ──────────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--toolbar-h);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.toolbar-count {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.toolbar-filter { display: flex; flex-direction: column; gap: 2px; }
.toolbar-filter label { margin: 0; }

/* ── form layout helpers ──────────────────────────────────────────────── */
.row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: flex-end; }
.grow { flex: 1; min-width: 180px; }
label {
  display: block;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: var(--sp-3) 0 var(--sp-1);
}
label.inline {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-transform: none;
  letter-spacing: normal;
  font-size: var(--fs-body);
  color: var(--ink);
  margin: var(--sp-2) 0;
}
label.inline input[type="checkbox"] { margin: 0; }

/* ── inputs ───────────────────────────────────────────────────────────── */
input, select, textarea {
  font: var(--fs-body) / 1.3 var(--font-text);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0 var(--sp-2);
  height: var(--control-h);
  max-width: 100%;
}
textarea { height: auto; padding: var(--sp-2); min-height: calc(var(--control-h) * 2); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--brand);
  outline: none;
  box-shadow: var(--focus);
}
input[type="checkbox"] { width: 14px; height: 14px; padding: 0; accent-color: var(--brand); }
input::placeholder { color: var(--muted); }

/* A file input is a button plus a filename, not a text field: no box around
   the pair, and the browser's own grey picker button restyled as the
   secondary button so it matches every other control on the page. */
input[type="file"] {
  border: 0;
  padding: 0;
  height: auto;
  background: none;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--control-h);
}
input[type="file"]:hover { border: 0; }
input[type="file"]:focus-visible { box-shadow: none; }
input[type="file"]::file-selector-button {
  display: inline-flex;
  align-items: center;
  height: var(--control-h);
  margin: 0 var(--sp-2) 0 0;
  padding: 0 var(--sp-3);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: 500 var(--fs-body) / 1 var(--font-text);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--row-tint); }
input[type="file"]:focus-visible::file-selector-button { box-shadow: var(--focus); }

/* ── buttons ──────────────────────────────────────────────────────────── */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 var(--sp-3);
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 500 var(--fs-body) / 1 var(--font-text);
  cursor: pointer;
}
button:hover, .btn:hover { background: var(--row-tint); }
button:focus-visible, .btn:focus-visible { box-shadow: var(--focus); }
button:disabled, .btn:disabled { opacity: 0.5; cursor: default; background: none; }
.btn-primary, button.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-danger, button.btn-danger {
  border-color: var(--ledger-red);
  color: var(--ledger-red);
  background: transparent;
}
.btn-danger:hover { background: rgba(155, 44, 31, 0.08); }
.btn-quiet, button.btn-quiet {
  border-color: transparent;
  color: var(--ink-2);
  background: transparent;
  font-weight: 500;
}
.btn-quiet:hover { background: var(--row-tint); }
.btn-compact { height: 26px; padding: 0 var(--sp-2); font-size: var(--fs-small); }

/* A target's settings fold away behind their section label: most visits
   to the Intake page are to import or export, not to change an account name. */
.target-settings { margin-top: var(--sp-3); }
.target-settings > summary { cursor: pointer; list-style: none; }
.target-settings > summary::-webkit-details-marker { display: none; }
.target-settings > summary::before { content: '▸ '; }
.target-settings[open] > summary::before { content: '▾ '; }
.target-settings .row > .grow { min-width: 220px; }

/* The add-item dialog, opened in place beneath the row it came from. A
   left rule ties it to that row; no box, no shadow (spec 6). */
.tb-inline-dialog {
  margin: var(--sp-2) 0 var(--sp-3);
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-3);
  border-left: 2px solid var(--brand);
  max-width: 480px;
}
.tb-inline-dialog input, .tb-inline-dialog select { width: 100%; }

/* ── tag (role / status / scope; no colour, ink only) ────────────────── */
.chip {
  display: inline-block;
  font-size: var(--fs-small);
  line-height: 18px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink-2);
  white-space: nowrap;
}
/* Decision 3: pending is a muted amber UNDERLINE, never the text colour —
   the glyphs stay ink-2 (which passes AA text contrast; --pending itself
   does not) and only the decoration and border carry the amber. */
.chip-pending {
  color: var(--ink-2);
  border-color: var(--pending);
  text-decoration: underline;
  text-decoration-color: var(--pending);
  text-underline-offset: 2px;
}
.chip-bad { color: var(--ledger-red); border-color: var(--ledger-red); }

/* ── identifiers ──────────────────────────────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  word-break: break-all;
}

/* ── status marks (decision 8c) ──────────────────────────────────────── */
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  color: var(--ink);
}
.mark-ai { border-style: dotted; }

/* ── stamp (decision 8a) ──────────────────────────────────────────────── */
.stamp {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-ink);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px var(--sp-2);
  transform: rotate(-6deg);
  opacity: 0.6;
}

/* ── ledger table ─────────────────────────────────────────────────────── */
.scroll { overflow-x: auto; }
table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}
.ledger thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  text-align: left;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: var(--sp-2) var(--sp-2) var(--sp-2) 0;
  border-bottom: 1px solid var(--rule-ink);
  white-space: nowrap;
}
.ledger td {
  height: var(--row-h);
  padding: var(--sp-1) var(--sp-2) var(--sp-1) 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.ledger tbody tr:hover { background: var(--row-tint); }
.ledger tbody tr:nth-child(even) { background: var(--row-tint); }
.ledger tbody tr:nth-child(even):hover { background: var(--row-tint); }
.ledger .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ledger .neg { color: var(--ledger-red); }
.ledger tr.pending td:first-child { border-left: 2px solid var(--pending); padding-left: calc(var(--sp-2) - 2px); }
.ledger tr.pending td.num {
  text-decoration: underline;
  text-decoration-color: var(--pending);
  text-underline-offset: 2px;
}
.ledger tr.rejected td, .ledger tr.voided td { color: var(--muted); }
.ledger tr.rejected .num, .ledger tr.voided .num { text-decoration: line-through; }
.ledger tr.total td { font-weight: 600; border-top: 1px solid var(--rule-ink); }
.ledger tr.grand-total td { font-weight: 600; border-top: 3px double var(--gold); }
.ledger .empty-row td { color: var(--muted); padding: var(--sp-4) 0; }

/* ── one-line rows (design round 2, review queue): fixed column widths so
   a long vendor/description truncates with an ellipsis instead of
   wrapping the row past --row-h ─────────────────────────────────────── */
table.queue-table { table-layout: fixed; }
table.queue-table th:nth-child(1), table.queue-table td:nth-child(1) { width: 3%; }
table.queue-table th:nth-child(2), table.queue-table td:nth-child(2) { width: 32%; }
table.queue-table th:nth-child(3), table.queue-table td:nth-child(3) { width: 11%; }
table.queue-table th:nth-child(4), table.queue-table td:nth-child(4) { width: 9%; }
table.queue-table th:nth-child(5), table.queue-table td:nth-child(5) { width: 18%; }
table.queue-table th:nth-child(6), table.queue-table td:nth-child(6) { width: 27%; }
table.queue-table td.row-item,
table.queue-table td:nth-child(3),
table.queue-table td:nth-child(5) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* secondary muted line under a review row's main text, and the full facts of a charge */
.row-sub { margin-left: var(--sp-2); color: var(--muted); font-size: var(--fs-small); }   /* inline: rows stay one line */
.row-sub.row-sub-block { display: block; margin-left: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* a question's charge, on its own line */
dl.charge-context { display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--sp-3); margin: 0 0 var(--sp-2); padding-left: var(--sp-2); border-left: 2px solid var(--rule); font-size: var(--fs-small); }
dl.charge-context dt { color: var(--muted); }
dl.charge-context dd { margin: 0; }

/* ── proposal row actions ─────────────────────────────────────────────── */
.proposal-actions { display: flex; gap: var(--sp-2); align-items: center; white-space: nowrap; }

/* ── TB spec 11 addendum: bulk approval on the review queue ──────────────── */
.run-banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-2);
  border: 1px solid var(--rule); border-left: 3px solid var(--gold); background: var(--paper-2);
}
.run-banner { flex-wrap: wrap; }
.run-banner .run-banner-text { min-width: 0; flex: 1 1 16rem; overflow-wrap: anywhere; }
.run-banner .btn-primary, .run-banner .hint { flex: none; white-space: nowrap; }
/* a question is read in full on its own row: wrap instead of ellipsizing */
table.queue-table tr[data-kind="question"] td.row-item { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
table.queue-table tr[data-kind="question"] .row-sub.row-sub-block { white-space: normal; overflow: visible; }
.run-banner.run-result { justify-content: flex-start; border-left-color: var(--brand); }
.bulk-bar { margin: var(--sp-3) 0; }
table.queue-table td.sel, table.queue-table th.sel { padding-right: 0; }
table.queue-table td.sel input { margin: 0; display: block; }
.ledger tr.row-failed td { background: rgba(155, 44, 31, 0.06); }
.row-failed-msg { color: var(--ledger-red); white-space: normal; }
.check-option { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); font-size: var(--fs-small); text-transform: none; letter-spacing: normal; color: var(--ink); }
.check-option input { margin: 0; }

/* ── TB spec 10: match suggestions, in a line_match row's detail area ───── */
.suggestions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin-bottom: var(--sp-2); }
.suggestions-label { color: var(--muted); font-size: var(--fs-small); }
.bulk-bar { display: flex; align-items: center; gap: var(--sp-3); }

/* ── inline detail row (design round 2): the funding-account picker and
   note field for the one row being acted on, collapsed everywhere else ── */
.ledger tr.detail-row { background: var(--paper-2); }
.ledger tr.detail-row td { height: auto; padding: var(--sp-3) var(--sp-2); }
.ledger tr.detail-row .row { align-items: flex-end; }

/* ── drawer ───────────────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  padding: var(--sp-4);
  overflow-y: auto;
  z-index: 20;
}
.drawer table.ledger { font-size: var(--fs-small); }

/* ── flash ────────────────────────────────────────────────────────────── */
.tb-flash {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--sp-4);
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-body);
  max-width: 90vw;
}
.tb-flash-error { background: var(--ledger-red); }
.tb-flash-ok { background: var(--ink); }

/* ── print (decision 9) ───────────────────────────────────────────────── */
@media print {
  .topbar, .toolbar, .page-head-actions, .tb-flash, button, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .ledger { font-size: 11px; }
  .ledger .neg { color: #000; }
  .section-label { break-after: avoid; page-break-after: avoid; }
  .section { break-inside: avoid-page; }
  h1, h2 { break-after: avoid; page-break-after: avoid; }
}
/* Review page: a visible picker line under a transaction row that is missing
   its category and/or funding account. */
tr.fix-row td { padding-top: 0; }
.picker-group { align-items: flex-end; }

/* ── payroll page: payee editor, adjust-amounts disclosure, preview ─────── */
.payee-editor > td { padding-top: 0; }
.payee-editor form { border-left: 2px solid var(--brand); padding: var(--sp-2) 0 var(--sp-2) var(--sp-3); margin: var(--sp-2) 0; }
.payee-editor .row > .grow { min-width: 150px; }
.payee-editor fieldset, .adjust-amounts { border: 0; padding: 0; margin: var(--sp-3) 0 0; }
.payee-editor legend { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 0; }
.adjust-amounts { margin-top: var(--sp-3); }
.adjust-amounts > summary { cursor: pointer; list-style: none; font-size: var(--fs-small); color: var(--muted); }
.adjust-amounts > summary::-webkit-details-marker { display: none; }
.adjust-amounts > summary::before { content: '▸ '; }
.adjust-amounts[open] > summary::before { content: '▾ '; }
.adjust-amounts .row > .grow { min-width: 150px; }
.run-actions { margin-top: var(--sp-3); display: flex; gap: var(--sp-2); }
.run-preview { margin-top: var(--sp-3); max-width: 480px; }
.run-preview .ledger td:first-child { color: var(--muted); }
.run-preview tr.total td { font-weight: 600; }
.run-note { display: block; font-size: var(--fs-small); color: var(--muted); }

/* fixed-width inputs in rows (state, ZIP, PIN, year) */
.field-xs { width: 4rem; }
.field-sm { width: 6rem; }
.field-md { width: 7rem; }
