/* Direction: professional PCS firm — navy, white, light grey; a serif display for authority */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f2f5fa;
  --surface: #ffffff;
  --surface-2: #e6e9ee;
  --border: #d3dbe8;
  --border-strong: #abaeb4;
  --ink: #0e1b36;
  --muted: #526078;
  --accent: #1b3a6b;
  --accent-hover: #17315b;
  --accent-ink: #ffffff;
  --accent-text: #1b3a6b;
  --accent-strong: #1b3a6b;
  --accent-soft: #d4dbe6;
  --accent-border: #91a1ba;
  --success: #17703f;
  --success-ink: #ffffff;
  --success-soft: #d8e5e4;
  --success-strong: #17703f;
  --warning: #8f5200;
  --warning-ink: #ffffff;
  --warning-soft: #e6e1dc;
  --warning-strong: #8f5200;
  --danger: #b0261e;
  --danger-ink: #ffffff;
  --danger-soft: #eadce0;
  --danger-strong: #b0261e;
  --chart-1: #1b3a6b;
  --chart-2: #713780;
  --chart-3: #86262f;
  --chart-4: #5b4d03;
  --chart-5: #106d5b;
  --chart-6: #2062a8;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-input: 8px;
  --x-navy: #12264a;
  --x-navy-2: #23417c;
  --x-on-navy: #ffffff;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #04080f;
  --surface: #1d2127;
  --surface-2: #11141b;
  --border: #272b31;
  --border-strong: #4f5257;
  --ink: #f2f5fa;
  --muted: #93969c;
  --accent: #1b3a6b;
  --accent-hover: #3d5881;
  --accent-ink: #ffffff;
  --accent-text: #7f90ac;
  --accent-strong: #7486a5;
  --accent-soft: #091323;
  --accent-border: #0e1e38;
  --success: #17703f;
  --success-ink: #ffffff;
  --success-soft: #081f1a;
  --success-strong: #599975;
  --warning: #8f5200;
  --warning-ink: #ffffff;
  --warning-soft: #23180c;
  --warning-strong: #a87938;
  --danger: #b0261e;
  --danger-ink: #ffffff;
  --danger-soft: #2a0f12;
  --danger-strong: #c6645e;
  --chart-1: #4b6da2;
  --chart-2: #a86bb8;
  --chart-3: #c15c61;
  --chart-4: #a77714;
  --chart-5: #559242;
  --chart-6: #1baab0;
}

progress { accent-color: var(--accent); border-radius: 999px; overflow: hidden; }
.form-msg:empty { display: none; }
.htmx-request.btn { opacity: .7; pointer-events: none; }
input[type="file"].input { padding: .5rem; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
#done:not(.hidden) { animation: rise .35s ease-out; }
html.reduced-motion #done { animation: none; }
