/* ALMA Ledger — selected by the owner on 2026-11-06.
   Semantic source of truth for web/PWA and marketing. Legacy names are aliases;
   success/attention/danger/information retain their existing financial meaning. */
@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('/brand/fonts/instrument-serif-regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400;
  font-display: swap; src: url('/brand/fonts/instrument-serif-italic.ttf') format('truetype');
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/brand/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/brand/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  /* Primitive type/material roles. Financial numbers always use the UI family. */
  --font-display: 'Instrument Serif', Georgia, serif;
  --alma-font-sans: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: var(--alma-font-sans);
  --z-navigation: 60; --z-command: 70; --z-modal: 80;
  --z-popup: 90; --z-feedback: 100; --z-boot: 9999;
  --app-bg: #f5f0e6;
  --surface: #ffffff;
  --surface-subtle: #e8ebdf;
  --surface-raised: #fffdf7;
  --surface-overlay: #fffdf7;
  --border: #d5d3c4;
  --border-strong: #858b77;
  --text-primary: #293c30;
  --text-secondary: #455343;
  --text-muted: #62685c;
  --alma-brand: #354e39;
  --alma-favorite: #b42c57;
  --alma-favorite-hover: #922043;
  --alma-document: #245ac4;
  --alma-document-badge: #245ac4;
  --alma-receipt: #137447;
  --alma-receipt-badge: #137447;
  --alma-on-notice: #ffffff;
  --alma-brand-hover: #263c2c;
  --alma-brand-strong: #263c2c;
  --alma-on-brand: #fffdf7;
  --alma-brand-soft: #e6ecdf;
  --alma-brand-border: #8a9c7e;
  --focus-ring: #354e39;
  --selected-row: #e6ecdf;
  --hover-row: #edf0e7;
  --input-surface: #ffffff;
  --input-border: #858b77;
  --input-placeholder: #62685c;
  --success-bg: #e8f3e8;
  --success-text: #356138;
  --success-border: #8db18d;
  --warning-bg: #fff3da;
  --warning-text: #795000;
  --warning-border: #b8954d;
  --danger-bg: #fbeceb;
  --danger-text: #a12e35;
  --danger-border: #cc898d;
  --info-bg: #eaf0fa;
  --info-text: #365c98;
  --info-border: #8ca5cb;
  --disabled-surface: #e8e9e0;
  --disabled-text: #697260;
  --border-rgb: 213 211 196;
  --alma-sidebar-bg: #e8ebdf;
  --alma-topbar-bg: #fffdf7;
  --ledger-note-bg: #e5cf91;
  --ledger-note-ink: #3e432a;
  --ledger-stage: #e9e6da;
  --ledger-contrast: #293c30;
  --ledger-on-contrast: #f5f0e6;
  --background: 40.00 42.86% 93.14%;
  --foreground: 142.11 18.81% 19.80%;
  --card: 0.00 0.00% 100.00%;
  --card-foreground: 142.11 18.81% 19.80%;
  --popover: 45.00 100.00% 98.43%;
  --popover-foreground: 142.11 18.81% 19.80%;
  --primary: 129.60 19.08% 25.69%;
  --primary-foreground: 45.00 100.00% 98.43%;
  --secondary: 75.00 23.08% 89.80%;
  --secondary-foreground: 142.11 18.81% 19.80%;
  --muted: 75.00 23.08% 89.80%;
  --muted-foreground: 90.00 6.12% 38.43%;
  --accent: 87.69 25.49% 90.00%;
  --accent-foreground: 129.60 19.08% 25.69%;
  --input: 78.00 7.94% 50.59%;
  --ring: 129.60 19.08% 25.69%;
  --alma-orange: var(--alma-brand);
  --alma-orange-hover: var(--alma-brand-hover);
  --alma-orange-strong: var(--alma-brand-strong);
  --alma-orange-soft: var(--alma-brand-soft);
  --alma-orange-border: var(--alma-brand-border);
  --alma-primary: var(--alma-brand);
  --alma-primary-hover: var(--alma-brand-hover);
  --alma-accent: var(--alma-brand);
  --accent-hover: var(--alma-brand-hover);
  --alma-focus: var(--focus-ring);
  --alma-focus-ring: var(--focus-ring);
  --alma-sidebar-active-bg: var(--selected-row);
  --alma-sidebar-active-text: var(--alma-brand);
  --alma-sidebar-text: var(--text-primary);
  --alma-sidebar-text-muted: var(--text-muted);
  --alma-sidebar-border: var(--border);
  --alma-sidebar-hover: var(--surface-subtle);
  --alma-topbar-border: var(--border);
  --alma-table-header: var(--surface-subtle);
  --alma-table-row: var(--surface);
  --alma-table-row-hover: var(--hover-row);
  --alma-table-border: var(--border);
  --alma-border-soft: var(--surface-subtle);
  --alma-bg: var(--app-bg);
  --alma-bg-soft: var(--surface-subtle);
  --alma-surface: var(--surface);
  --alma-surface-soft: var(--surface-subtle);
  --alma-surface-strong: var(--surface-raised);
  --alma-card: var(--surface);
  --alma-card-elevated: var(--surface-raised);
  --alma-border: var(--border);
  --alma-border-strong: var(--border-strong);
  --alma-text: var(--text-primary);
  --alma-text-soft: var(--text-secondary);
  --alma-muted: var(--text-muted);
  --alma-muted-light: var(--text-muted);
  --alma-success: var(--success-text);
  --alma-success-soft: var(--success-bg);
  --alma-success-border: var(--success-border);
  --alma-warning: var(--warning-text);
  --alma-warning-soft: var(--warning-bg);
  --alma-warning-border: var(--warning-border);
  --alma-danger: var(--danger-text);
  --alma-danger-soft: var(--danger-bg);
  --alma-danger-border: var(--danger-border);
  --alma-info: var(--info-text);
  --alma-info-soft: var(--info-bg);
  --alma-info-border: var(--info-border);
  --alma-receivable: var(--success-text);
  --alma-payable: var(--warning-text);
  --alma-overdue: var(--danger-text);
  --alma-review: var(--info-text);
  --alma-surface-muted: var(--surface-subtle);
  --alma-text-muted: var(--text-muted);
  --grad-primary: linear-gradient(var(--alma-brand), var(--alma-brand));
  --grad-primary-hover: linear-gradient(var(--alma-brand-hover), var(--alma-brand-hover));
  --glow-primary: none; --glow-primary-strong: none;
  --alma-shadow: 0 1px 2px rgb(41 60 48 / .035);
  --alma-shadow-strong: 0 8px 24px rgb(41 60 48 / .08);
  --alma-nav-material: color-mix(in srgb, var(--surface) 92%, transparent);
  --alma-nav-material-strong: color-mix(in srgb, var(--surface) 96%, transparent);
  color-scheme: light;
}
.dark {
  --app-bg: #151f19;
  --surface: #1c2b22;
  --surface-subtle: #24352a;
  --surface-raised: #2c3f31;
  --surface-overlay: #2c3f31;
  --border: #40523f;
  --border-strong: #81917f;
  --text-primary: #f3f2e9;
  --text-secondary: #d2d9c8;
  --text-muted: #b4bfab;
  --alma-brand: #b9d0aa;
  --alma-favorite: #fb8bad;
  --alma-favorite-hover: #ffb2c7;
  --alma-document: #90baff;
  --alma-document-badge: #315fd3;
  --alma-receipt: #79d7a4;
  --alma-receipt-badge: #206747;
  --alma-on-notice: #ffffff;
  --alma-brand-hover: #d1e2c2;
  --alma-brand-strong: #d1e2c2;
  --alma-on-brand: #203324;
  --alma-brand-soft: #30482f;
  --alma-brand-border: #7c9770;
  --focus-ring: #d1e2c2;
  --selected-row: #30482f;
  --hover-row: #2b3e2d;
  --input-surface: #1c2b22;
  --input-border: #81917f;
  --input-placeholder: #b4bfab;
  --success-bg: #253c2b;
  --success-text: #b8dcb1;
  --success-border: #779d72;
  --warning-bg: #40351f;
  --warning-text: #ecd093;
  --warning-border: #b8954d;
  --danger-bg: #43292e;
  --danger-text: #f0a6ac;
  --danger-border: #bf777e;
  --info-bg: #29374b;
  --info-text: #b1c9ef;
  --info-border: #779acb;
  --disabled-surface: #293b2b;
  --disabled-text: #b1bda6;
  --border-rgb: 64 82 63;
  --alma-sidebar-bg: #1a281f;
  --alma-topbar-bg: #1c2b22;
  --ledger-note-bg: #443e29;
  --ledger-note-ink: #efe0b3;
  --ledger-stage: #243127;
  --ledger-contrast: #101b14;
  --ledger-on-contrast: #f3f2e9;
  --background: 144.00 19.23% 10.20%;
  --foreground: 54.00 29.41% 93.33%;
  --card: 144.00 21.13% 13.92%;
  --card-foreground: 54.00 29.41% 93.33%;
  --popover: 135.79 17.76% 20.98%;
  --popover-foreground: 54.00 29.41% 93.33%;
  --primary: 96.32 28.79% 74.12%;
  --primary-foreground: 132.63 22.89% 16.27%;
  --secondary: 141.18 19.10% 17.45%;
  --secondary-foreground: 54.00 29.41% 93.33%;
  --muted: 141.18 19.10% 17.45%;
  --muted-foreground: 93.00 13.51% 70.98%;
  --accent: 117.60 21.01% 23.33%;
  --accent-foreground: 96.32 28.79% 74.12%;
  --input: 113.33 7.56% 53.33%;
  --ring: 91.88 35.56% 82.35%;
  color-scheme: dark;
}
/* Unconfigured informational pages retain their system appearance contract.
   The application and homepage explicitly set .light/.dark before rendering. */
@media (prefers-color-scheme: dark) {
  :root:not(.light):not(.dark) {
  --app-bg: #151f19;
  --surface: #1c2b22;
  --surface-subtle: #24352a;
  --surface-raised: #2c3f31;
  --surface-overlay: #2c3f31;
  --border: #40523f;
  --border-strong: #81917f;
  --text-primary: #f3f2e9;
  --text-secondary: #d2d9c8;
  --text-muted: #b4bfab;
  --alma-brand: #b9d0aa;
  --alma-favorite: #fb8bad;
  --alma-favorite-hover: #ffb2c7;
  --alma-document: #90baff;
  --alma-document-badge: #315fd3;
  --alma-receipt: #79d7a4;
  --alma-receipt-badge: #206747;
  --alma-on-notice: #ffffff;
  --alma-brand-hover: #d1e2c2;
  --alma-brand-strong: #d1e2c2;
  --alma-on-brand: #203324;
  --alma-brand-soft: #30482f;
  --alma-brand-border: #7c9770;
  --focus-ring: #d1e2c2;
  --selected-row: #30482f;
  --hover-row: #2b3e2d;
  --input-surface: #1c2b22;
  --input-border: #81917f;
  --input-placeholder: #b4bfab;
  --success-bg: #253c2b;
  --success-text: #b8dcb1;
  --success-border: #779d72;
  --warning-bg: #40351f;
  --warning-text: #ecd093;
  --warning-border: #b8954d;
  --danger-bg: #43292e;
  --danger-text: #f0a6ac;
  --danger-border: #bf777e;
  --info-bg: #29374b;
  --info-text: #b1c9ef;
  --info-border: #779acb;
  --disabled-surface: #293b2b;
  --disabled-text: #b1bda6;
  --border-rgb: 64 82 63;
  --alma-sidebar-bg: #1a281f;
  --alma-topbar-bg: #1c2b22;
  --ledger-note-bg: #443e29;
  --ledger-note-ink: #efe0b3;
  --ledger-stage: #243127;
  --ledger-contrast: #101b14;
  --ledger-on-contrast: #f3f2e9;
  --background: 144.00 19.23% 10.20%;
  --foreground: 54.00 29.41% 93.33%;
  --card: 144.00 21.13% 13.92%;
  --card-foreground: 54.00 29.41% 93.33%;
  --popover: 135.79 17.76% 20.98%;
  --popover-foreground: 54.00 29.41% 93.33%;
  --primary: 96.32 28.79% 74.12%;
  --primary-foreground: 132.63 22.89% 16.27%;
  --secondary: 141.18 19.10% 17.45%;
  --secondary-foreground: 54.00 29.41% 93.33%;
  --muted: 141.18 19.10% 17.45%;
  --muted-foreground: 93.00 13.51% 70.98%;
  --accent: 117.60 21.01% 23.33%;
  --accent-foreground: 96.32 28.79% 74.12%;
  --input: 113.33 7.56% 53.33%;
  --ring: 91.88 35.56% 82.35%;
    color-scheme: dark;
  }
}
@media (prefers-contrast: more) {
  :root { --border-strong: #62685c; --input-border: #62685c; --alma-brand-border: #354e39; }
  .dark { --border-strong: #b4bfab; --input-border: #b4bfab; --alma-brand-border: #d1e2c2; }
}
