:root {
  --primary: #0b2f6b;
  --primary-dark: #071d3d;
  --primary-600: #0a2a5f;
  --primary-tint: #eaf0fa;
  --primary-tint-strong: #dce7f8;
  --background: #ffffff;
  --surface: #f6f8fb;
  --surface-strong: #eef1f6;
  --surface-tint: #eaf0fa;
  --elevated: #ffffff;
  --border: #e2e6ed;
  --border-strong: #cfd7e3;
  --text: #12172b;
  --muted: #68708a;
  --success: #188a54;
  --success-soft: #e6f6ee;
  --warning: #b5710f;
  --warning-soft: #fcf1df;
  --danger: #c6362c;
  --danger-soft: #fbeae8;
  --info: #2054c8;
  --info-soft: #e9effc;
  --focus: #8bb6ff;
  --chat-inbound: #ffffff;
  --chat-outbound: #0b2f6b;
  --chat-outbound-text: #ffffff;
  --note-surface: #fff7e6;
  --note-border: #efd391;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar-w: 224px;
  --list-w: 336px;
  --details-w: 320px;
  --font: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --primary: #6f9ef2;
  --primary-dark: #8fb5ff;
  --primary-600: #90b8ff;
  --primary-tint: #182642;
  --primary-tint-strong: #1e2f52;
  --background: #0c1220;
  --surface: #131a2b;
  --surface-strong: #1a2338;
  --surface-tint: #1c2b48;
  --elevated: #121a2b;
  --border: #28324a;
  --border-strong: #3a4a66;
  --text: #e7eaf2;
  --muted: #8e97af;
  --success: #3fce8c;
  --success-soft: #123525;
  --warning: #f0b03d;
  --warning-soft: #3a2b0f;
  --danger: #f17a72;
  --danger-soft: #3a1917;
  --info: #6e9bf2;
  --info-soft: #152847;
  --focus: #87b7ff;
  --chat-inbound: #1a2338;
  --chat-outbound: #244f8f;
  --chat-outbound-text: #ffffff;
  --note-surface: #2b230f;
  --note-border: #6c5520;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 10px;
  background: var(--surface);
  color: var(--text);
  line-height: 1.45;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

textarea {
  resize: vertical;
  min-height: 44px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus), transparent 72%);
  outline: 0;
}

button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 35%);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 15px;
  font-weight: 800;
}

h2 {
  font-size: 14px;
  font-weight: 700;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 11.5px;
}

.eyebrow {
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 14px;
}

.full {
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
