/* CompliAgent visual contract. Keep brand colors and the warm workspace. */
:root {
  color-scheme: light;
  --ink: #064e3b;
  --text: #28463b;
  --muted: #69665c;
  --faint: #777267;
  --line: #e8e5d8;
  --line-strong: #d5d0bd;
  --table-line: #e5e3d9;
  --soft: #fffdf0;
  --soft-emerald: #e7f7ef;
  --panel: #ffffff;
  --brand: #064e3b;
  --brand-dark: #043f32;
  --brand-deep: #032e26;
  --brand-accent: #059669;
  --phase-card: #4f8f72;
  --phase-card-border: #3f7a60;
  --accent: #2563eb;
  --warn: #925e14;
  --risk: #b03832;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --radius-control: 6px;
  --radius-card: 8px;
  --radius-dialog: 12px;
  --shadow-soft: 0 1px 2px rgb(3 46 38 / 4%);
  --shadow: 0 6px 20px rgb(3 46 38 / 7%);
  --shadow-overlay: 0 18px 60px rgb(3 46 38 / 22%);
  --font-caption: .78rem;
  --font-label: .84rem;
  --font-body: .92rem;
  --font-section: 1.125rem;
  --control-height: 40px;
  --sidebar-width: 256px;
  --sidebar-surface: #05825c;
  --content-width: 1360px;
  --focus-ring: 0 0 0 3px rgb(5 150 105 / 20%);
  --motion-fast: 140ms;
}

/* Dark surfaces retain the emerald identity; semantic colors keep their meaning. */
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #e6f1ec;
  --text: #c7d9d0;
  --muted: #a6b8ae;
  --faint: #99aca1;
  --line: #30463c;
  --line-strong: #496154;
  --table-line: #30463c;
  --soft: #111c18;
  --soft-emerald: #203e30;
  --panel: #1a2a22;
  --surface-subtle: #20332a;
  --surface-hover: #293e32;
  --brand: #8cdbb3;
  --brand-deep: #b2e8cb;
  --brand-accent: #57ce96;
  --solid-brand: #205c43;
  --solid-brand-hover: #28734f;
  --sidebar-surface: #102e23;
  --select-arrow: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25 7 8.75l3.5-3.5' fill='none' stroke='%238cdbb3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --phase-card: #285b43;
  --phase-card-border: #407657;
  --accent: #94baff;
  --warn: #f2cb81;
  --risk: #ffada5;
  --success-surface: #203f30;
  --success-text: #9be1b7;
  --success-line: #46795b;
  --warning-surface: #413620;
  --warning-text: #f2cb81;
  --warning-line: #8a7040;
  --error-surface: #462b2a;
  --error-text: #ffb5ad;
  --error-line: #9e635d;
  --info-surface: #23394a;
  --info-text: #acd3f6;
  --neutral-surface: #30372f;
  --neutral-text: #c0c8bb;
  --shadow-soft: 0 1px 2px rgb(0 0 0 / 16%);
  --shadow: 0 6px 20px rgb(0 0 0 / 22%);
  --shadow-overlay: 0 18px 60px rgb(0 0 0 / 40%);
  --focus-ring: 0 0 0 3px rgb(87 206 150 / 30%);
}
