:root {
  color-scheme: light;
  --canvas: #f3f6f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #172b32;
  --muted: #64767d;
  --line: #dce5e8;
  --brand: #117963;
  --brand-dark: #0d5b4b;
  --rail: #102b32;
  --rail-soft: #193a42;
  --rail-ink: #e8f3f1;
  --danger: #b63d35;
  --warning: #9a6b15;
  --success-bg: #e4f4ed;
  --danger-bg: #fff0ee;
  --warning-bg: #fff5df;
  --shadow: 0 12px 32px rgba(21, 48, 56, .07);
  --font: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.55 var(--font); }
h1, h2, h3 { margin: 0 0 .55rem; font-weight: 680; letter-spacing: -.025em; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.05rem; }
p { margin: .45rem 0; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 3px solid #e9b949; outline-offset: 2px; }

/* Controls */
label { display: block; color: var(--muted); font-size: .82rem; font-weight: 620; margin: .8rem 0 .3rem; }
input, select, textarea {
  width: 100%; min-height: 42px; padding: .58rem .7rem; color: var(--ink); font: inherit;
  background: var(--surface); border: 1px solid #cbd7db; border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #9aadb3; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(17, 121, 99, .12); }
button {
  min-height: 38px; padding: .52rem .9rem; border: 1px solid #b9cfca; border-radius: 8px;
  background: var(--surface); color: var(--brand-dark); font: inherit; font-weight: 620; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
button:hover { background: #eff8f5; border-color: #8eb8ac; }
button:active:not(:disabled) { transform: translateY(1px); }
button.primary { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 8px rgba(17, 121, 99, .15); }
button.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.danger { color: var(--danger); border-color: #e9beba; }
button.danger:hover { background: var(--danger-bg); }
button.small { min-height: 31px; padding: .28rem .62rem; font-size: .81rem; }
button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.error { color: var(--danger); min-height: 1.3em; margin: .5rem 0; }

/* Sign-in */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(ellipse at 20% 5%, #dceee8 0, transparent 40%), var(--canvas); }
.login-card { width: min(410px, 100%); padding: 2.25rem; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: 16px; box-shadow: var(--shadow); }
.login-card h1 { color: var(--rail); font-size: 2rem; letter-spacing: -.04em; }
.login-card > .muted { margin: .2rem 0 1.5rem; }
.login-card button { width: 100%; margin-top: 1rem; }

/* Application frame */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; min-height: 620px; padding: 1.35rem 1rem 1rem; color: var(--rail-ink); background: var(--rail); }
.brand { display: flex; align-items: center; gap: .65rem; margin: .1rem .55rem 1.8rem; font-size: 1.32rem; font-weight: 760; letter-spacing: -.04em; }
.brand::before { content: "L"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #1d8b72; color: #fff; font-size: 1rem; }
#nav { display: flex; flex-direction: column; gap: .28rem; flex: 1; }
#nav button { min-height: 42px; padding: .6rem .8rem; text-align: left; color: #c6d8d7; background: transparent; border: 1px solid transparent; border-radius: 9px; font-weight: 540; }
#nav button:hover { color: #fff; background: rgba(255,255,255,.07); }
#nav button[aria-current="page"] { color: #fff; background: var(--rail-soft); border-color: rgba(255,255,255,.08); box-shadow: inset 3px 0 #58c2a4; font-weight: 680; }
.rail-foot { padding-top: .8rem; border-top: 1px solid rgba(230,243,241,.16); }
.role-banner { margin-bottom: .9rem; padding: .55rem .65rem; color: #ffedc1; background: rgba(154,107,21,.2); border: 1px solid rgba(255,237,193,.2); border-radius: 8px; font-size: .76rem; }
.proof { margin-bottom: .9rem; font-variant-numeric: tabular-nums; font-size: .82rem; }
.proof-title { margin-bottom: .25rem; color: #a9c2c0; font-size: .73rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.proof-row { display: flex; justify-content: space-between; gap: .5rem; padding: .11rem 0; }
.proof-cr { padding-bottom: .35rem; border-bottom: 1px solid rgba(230,243,241,.5); }
.proof-state { margin-top: .38rem; color: #92dfbd; font-weight: 700; }
.proof-state.bad { color: #ffd0c9; }
.whoami { overflow-wrap: anywhere; margin-bottom: .55rem; color: #aec4c2; font-size: .76rem; }
button.ghost { width: 100%; color: #e6f2ee; background: transparent; border-color: rgba(230,243,241,.32); }
button.ghost:hover { background: rgba(255,255,255,.08); }
#view { min-width: 0; padding: 2rem clamp(1rem, 3vw, 2.7rem) 3rem; outline: none; }
#view[aria-busy="true"] { cursor: progress; }
.head { display: flex; align-items: center; justify-content: space-between; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.head h2 { margin: 0; }
.head .actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.head select { width: auto; min-width: 145px; }

/* Panels, tables and status */
.panel { margin-bottom: 1.2rem; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px rgba(21,48,56,.025); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th { padding: .72rem .7rem; color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 720; text-align: left; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
th.num { text-align: right; }
td { padding: .72rem .7rem; border-bottom: 1px solid #edf1f3; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfd; }
tr.total td { background: var(--surface-soft); border-top: 1px solid #a9babe; border-bottom: 3px double #a9babe; font-weight: 720; }
.lines div { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .84rem; }
.lines .cr { padding-left: 1.1rem; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .58rem; border-radius: 100px; background: #edf2f4; color: #4a5d64; font-size: .74rem; font-weight: 680; white-space: nowrap; }
.chip.PAID, .chip.OPEN, .chip.ok { color: #176b50; background: var(--success-bg); }
.chip.OVERDUE, .chip.VOID, .chip.CLOSED, .chip.bad { color: #a3332c; background: var(--danger-bg); }
.chip.PARTIALLY_PAID, .chip.REVERSAL, .chip.warn { color: #91620c; background: var(--warning-bg); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: .9rem; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.kpi { min-width: 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px rgba(21,48,56,.025); }
.kpi .label { color: var(--muted); font-size: .79rem; font-weight: 650; }
.kpi .value { margin-top: .25rem; color: var(--rail); font-size: 1.55rem; font-weight: 760; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chart { display: block; max-width: 100%; }
.chart text { font-size: 11px; fill: var(--muted); }
.chart .axis { stroke: var(--line); }
.bar-rev { fill: var(--brand); }
.bar-exp { fill: #a9b7bf; }
.legend { display: flex; gap: 1rem; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.swatch { display: inline-block; width: .8rem; height: .8rem; margin-right: .3rem; border-radius: 2px; vertical-align: -1px; }
.swatch.rev { background: var(--brand); }
.swatch.exp { background: #a9b7bf; }

/* Forms and dialogs */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: .9rem; align-items: end; }
.grid label { margin-top: 0; }
.line-row { display: grid; grid-template-columns: minmax(190px, 2.2fr) minmax(100px, 1fr) minmax(100px, 1fr) auto; gap: .55rem; margin-bottom: .55rem; }
.balance-line { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; margin: .9rem 0; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs button[aria-pressed="true"] { color: #fff; background: var(--brand); border-color: var(--brand); }
dialog { width: min(450px, 92vw); padding: 1.4rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(13,35,41,.52); backdrop-filter: blur(3px); }
dialog .buttons { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.1rem; }
#toasts { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50; display: grid; gap: .5rem; }
.toast { max-width: min(420px, calc(100vw - 2rem)); padding: .75rem 1rem; color: #fff; background: var(--rail); border-radius: 10px; box-shadow: var(--shadow); }
.toast.bad { background: var(--danger); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 215px minmax(0, 1fr); }
  .rail { padding-inline: .75rem; }
  .line-row { grid-template-columns: 1.5fr 1fr 1fr auto; }
}
@media (max-width: 700px) {
  .shell { display: flex; flex-direction: column; }
  .rail { position: static; height: auto; min-height: 0; padding: .8rem .85rem .75rem; }
  .brand { margin: 0 .2rem .7rem; font-size: 1.15rem; }
  #nav { display: flex; flex-direction: row; flex-wrap: nowrap; gap: .35rem; overflow-x: auto; padding: .15rem 0 .45rem; scrollbar-width: thin; }
  #nav button { flex: 0 0 auto; min-height: 36px; padding: .42rem .7rem; font-size: .8rem; white-space: nowrap; }
  #nav button[aria-current="page"] { box-shadow: inset 0 -3px #58c2a4; }
  .rail-foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .45rem .9rem; padding-top: .55rem; }
  .role-banner { grid-column: 1 / -1; margin: 0; }
  .proof { grid-row: span 2; margin: 0; }
  .whoami { margin: 0; text-align: right; }
  button.ghost { min-height: 32px; padding: .25rem .6rem; font-size: .78rem; }
  #view { padding: 1.25rem .9rem 2rem; }
  .panel { padding: .95rem; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .kpi { padding: .8rem; }
  .kpi .value { font-size: 1.25rem; }
  .line-row { grid-template-columns: 1fr 1fr; }
  .line-row select { grid-column: 1 / -1; }
  .line-row button { justify-self: start; }
  .head { align-items: flex-start; }
  .pager { justify-content: space-between; }
}
@media (max-width: 390px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .proof { font-size: .76rem; }
  .head .actions { width: 100%; }
  .head select { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Premium dashboard primitives and mobile navigation. */
[hidden] { display: none !important; }
#workspace-main { min-width: 0; }
.app-toolbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.5rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumb { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .82rem; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.toolbar-actions { display: flex; align-items: center; gap: .65rem; }
.command-button, .refresh-view { display: inline-flex; align-items: center; gap: .6rem; min-height: 34px; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface); cursor: pointer; font-size: .78rem; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.command-button:hover, .refresh-view:hover { border-color: var(--accent); background: var(--surface-soft); }
.command-button kbd { border: 1px solid var(--line); border-radius: 5px; padding: .12rem .3rem; color: var(--muted); font-size: .68rem; }
.last-updated { color: var(--muted); font-size: .72rem; }
.toolbar-icon { display: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); min-height: 36px; min-width: 38px; }
.nav-icon { width: 17px; height: 17px; flex: 0 0 17px; }
#nav button { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; transition: color .16s ease, background .16s ease, border-color .16s ease; }
#nav button[aria-current="page"] { box-shadow: none; border-left: 3px solid var(--accent); padding-left: .55rem; }
.account-menu { position: relative; margin-top: .6rem; }
.account-menu > summary { list-style: none; display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .45rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu[open] > summary, .account-menu > summary:hover { border-color: var(--accent); }
.account-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: var(--rail-ink); background: var(--accent); font-weight: 750; font-size: .72rem; }
.account-copy { min-width: 0; flex: 1; display: grid; gap: .12rem; }
.account-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.account-copy small { color: var(--muted); font-size: .67rem; }
.account-chevron { color: var(--muted); }
.account-popover { padding-top: .5rem; }
.account-popover #logout { width: 100%; }
.dashboard-context { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.context-pill { padding: .24rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: .7rem; }
.dashboard-head .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.kpi { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(16, 40, 45, .055); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.kpi:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(16, 40, 45, .09); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: rgba(88,194,164,.12); font-size: 1.1rem; font-weight: 750; }
.kpi .value { font-variant-numeric: tabular-nums; }
.kpi-detail { margin: .35rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.kpi.warning { border-color: #e6a09a; background: #fff8f6; }
.kpi.warning .label, .kpi.warning .value { color: #a83228; }
.kpi.warning .kpi-icon { color: #b43b31; background: #fde5e1; }
.chart-axis-label { fill: var(--muted); font-size: 10px; }
.swatch.exp { background: #d97745; }
.bar-exp { fill: #d97745; }
.chart-empty-state { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 2rem 1rem; text-align: center; }
.chart-empty-state strong { font-size: 1rem; }
.chart-empty-state p { max-width: 360px; margin: 0; font-size: .82rem; }
.chart-empty-state .primary { margin-top: .25rem; }
.ledger-summary { padding: .75rem .9rem; border: 1px solid #9bd3bd; border-radius: 10px; color: #23684c; background: #eefaf4; font-size: .82rem; }
.ledger-summary.bad { border-color: #e3a09a; color: #9c2f28; background: #fff4f2; }
.proof-review { display: block; margin: .35rem 0 0; padding: .15rem .4rem; border: 1px solid currentColor; border-radius: 6px; color: inherit; background: transparent; font-size: .68rem; font-weight: 650; cursor: pointer; }
.onboarding { margin-bottom: 1.2rem; }
.onboarding-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.onboarding-progress { white-space: nowrap; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .72rem; }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.setup-step { display: flex; gap: .65rem; align-items: flex-start; min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.setup-step.complete { border-color: #9bd3bd; }
.setup-number { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--line); font-size: .75rem; font-weight: 750; }
.setup-step.complete .setup-number { color: #23684c; background: #d8f4e6; }
.setup-copy { min-width: 0; }
.setup-copy strong { font-size: .8rem; }
.setup-copy p { margin: .28rem 0; font-size: .72rem; line-height: 1.4; }
.step-complete { color: #23684c; font-size: .7rem; font-weight: 700; }
.text-action { margin-top: .2rem; padding: 0; border: 0; color: var(--accent); background: transparent; font-size: .73rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.step-restricted { font-size: .68rem; }
.loading-skeletons { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; padding: .5rem 0; }
.loading-skeleton { min-height: 130px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg, var(--surface-soft) 25%, var(--surface) 45%, var(--surface-soft) 65%); background-size: 220% 100%; animation: ledger-shimmer 1.5s ease-in-out infinite; }
@keyframes ledger-shimmer { to { background-position: -120% 0; } }
.quick-search { width: min(480px, calc(100vw - 28px)); padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.quick-search::backdrop { background: rgba(13,35,41,.5); backdrop-filter: blur(2px); }
.quick-search-heading { margin-bottom: .65rem; font-size: .78rem; font-weight: 750; }
.quick-search input { width: 100%; margin-bottom: .7rem; }
.quick-search-results { display: grid; gap: .25rem; max-height: 48vh; overflow-y: auto; }
.quick-search-item { padding: .65rem .7rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.quick-search-item:hover, .quick-search-item:focus-visible { background: var(--surface-soft); }
.nav-overlay { position: fixed; inset: 0; z-index: 39; border: 0; background: rgba(9,24,29,.5); }
@media (max-width: 700px) {
  .shell { display: block; min-height: 100vh; }
  .rail { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(290px, 86vw); height: 100dvh; padding: 1rem .85rem; overflow-y: auto; transform: translateX(-105%); transition: transform .18s ease; box-shadow: 12px 0 35px rgba(0,0,0,.18); }
  .rail.mobile-open { transform: translateX(0); }
  .brand { margin: .2rem .2rem 1rem; }
  #nav { display: flex; flex-direction: column; gap: .75rem; overflow: visible; padding: .25rem 0; }
  #nav button { width: 100%; min-height: 42px; justify-content: flex-start; padding: .65rem .7rem; }
  #nav button[aria-current="page"] { box-shadow: none; }
  .rail-foot { display: block; padding-top: .8rem; }
  .role-banner { margin: 0 0 .7rem; }
  .proof { margin: .7rem 0; }
  .toolbar-icon { display: inline-grid; place-items: center; }
  .app-toolbar { position: sticky; top: 0; z-index: 20; min-height: 58px; padding: .55rem .8rem; }
  .command-button { width: 36px; height: 36px; justify-content: center; overflow: hidden; font-size: 0; }
  .command-button kbd { font-size: .65rem; }
  .last-updated { display: none; }
  #view { padding: 1.2rem .85rem 2rem; }
  .kpis { grid-template-columns: 1fr; }
  .setup-steps { grid-template-columns: 1fr; }
  .loading-skeletons { grid-template-columns: 1fr; }
  .onboarding-head { align-items: flex-start; flex-direction: column; }
  .dashboard-head { align-items: flex-start; }
  .dashboard-head .actions { width: 100%; }
}
@media (max-width: 390px) {
  .kpis { grid-template-columns: 1fr; }
  .dashboard-head .actions button { flex: 1 1 100%; }
  .toolbar-actions { gap: .3rem; }
  .breadcrumb { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { .loading-skeleton, .rail { animation: none; transition: none; } }

/* LedgerCore visual consistency */
.nav-heading { display:flex; align-items:center; gap:.55rem; padding:.25rem .65rem; margin:0 0 .4rem; }
.nav-heading-icon { width:14px; height:14px; flex:0 0 auto; color:#7d9295; }
.nav-group { margin:0 0 1.25rem; }
#nav button { min-height:40px; padding:.58rem .72rem; gap:.72rem; }
#nav button[aria-current="page"] { color:#0f6259; background:#e5f4f0; box-shadow:inset 3px 0 #2b9b87; font-weight:750; }
.kpi-icon svg { width:18px; height:18px; display:block; }
.kpi .value, .proof-row, .proof-state { font-variant-numeric:tabular-nums; }
.kpi-detail { color:#667b80; }
.nav-heading { color:#72888b; }
.chart-empty-state { min-height:250px; border:1px dashed #d7e1df; border-radius:10px; background:linear-gradient(180deg,#fbfdfc,#f7faf9); }
.proof-state { display:flex; align-items:center; gap:.35rem; color:#147653; }
.proof-state.bad { color:#b42318; background:#fff1f0; border-radius:6px; padding:.35rem .45rem; }
@media (max-width:760px) { .nav-heading { padding-left:.55rem; } }

.proof-state:not(.bad)::before { content:"✓"; font-weight:900; }
.proof-state.bad::before { content:"⚠"; font-weight:900; }

.nav-heading { gap:.72rem; padding-left:.72rem; }
.amount, .money, .numeric, td.numeric { font-variant-numeric:tabular-nums; }
