:root {
  color-scheme: light;
  --blue-800: #123f78;
  --blue-700: #16569a;
  --blue-600: #1f6db2;
  --blue-500: #2d7fbd;
  --blue-100: #dcecf9;
  --blue-50: #f2f8fd;
  --primary-action: #16569a;
  --primary-action-hover: #123f78;
  --primary-action-text: #ffffff;
  --ink-900: #18212b;
  --ink-700: #3f4b59;
  --ink-500: #687585;
  --ink-400: #8592a0;
  --line: #d9e0e7;
  --line-strong: #b9c4cf;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #f8fafb;
  --surface-hover: #f2f5f7;
  --surface-disabled: #f1f4f6;
  --canvas: #f5f7f9;
  --green-700: #217a4a;
  --green-100: #dff3e7;
  --amber-700: #946200;
  --amber-100: #fff0c7;
  --red-700: #b4232f;
  --red-400: #e1747e;
  --red-100: #fde4e6;
  --focus-ring: rgba(31, 109, 178, 0.32);
  --overlay: rgba(24, 33, 43, 0.46);
  --shadow: 0 10px 30px rgba(24, 33, 43, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink-900);
  background: var(--canvas);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --blue-800: #b9dcf5;
  --blue-700: #8fc7f2;
  --blue-600: #66afe5;
  --blue-500: #4c96cf;
  --blue-100: #203b52;
  --blue-50: #1c3041;
  --primary-action: #266a9f;
  --primary-action-hover: #1f5b89;
  --primary-action-text: #ffffff;
  --ink-900: #edf1f4;
  --ink-700: #c7d0d8;
  --ink-500: #98a5b0;
  --ink-400: #7f8d98;
  --line: #343d45;
  --line-strong: #4b5660;
  --surface: #1e2429;
  --surface-raised: #242b31;
  --surface-muted: #252c32;
  --surface-hover: #2a3239;
  --surface-disabled: #2b3238;
  --canvas: #15191d;
  --green-700: #8ad1a8;
  --green-100: #1d3b2c;
  --amber-700: #e8c46b;
  --amber-100: #40351d;
  --red-700: #ef9ca4;
  --red-400: #d46873;
  --red-100: #44272b;
  --focus-ring: rgba(102, 175, 229, 0.42);
  --overlay: rgba(4, 7, 10, 0.7);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.field-group {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.field-group label,
.label-row label {
  color: var(--ink-700);
  font-size: 0.875rem;
  font-weight: 700;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

input,
select,
textarea {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-900);
  padding: 10px 12px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-500);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red-700);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-disabled);
  color: var(--ink-500);
}

.field-error {
  min-height: 17px;
  color: var(--red-700);
  font-size: 0.78rem;
}

.primary-button,
.secondary-button,
.icon-button,
.text-button {
  border: 0;
}

.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--primary-action);
  color: var(--primary-action-text);
  padding: 10px 16px;
  font-weight: 750;
}

.primary-button:hover:not(:disabled) {
  background: var(--primary-action-hover);
}

.secondary-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-700);
  padding: 8px 13px;
  font-weight: 700;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.text-button {
  background: transparent;
  color: var(--blue-700);
  padding: 2px;
  font-size: 0.82rem;
  font-weight: 750;
}

.full-width {
  width: 100%;
}

.notice {
  border: 1px solid;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.notice-error {
  border-color: var(--red-700);
  background: var(--red-100);
  color: var(--red-700);
}

.notice-info {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-800);
}

.button-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-loading .button-label {
  display: none;
}

.is-loading .button-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

[hidden] {
  display: none !important;
}
