:root {
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --type-page-title: clamp(1.8rem, 2.7vw, 2.5rem);
  --type-section-title: clamp(1.25rem, 1.8vw, 1.55rem);
  --type-body: 1rem;
  --type-body-leading: 1.65;
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-inverse: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent-red: #dc2626;
  --accent-red-hover: #b91c1c;
  --accent-red-soft: #fef2f2;
  --status-pass: #16a34a;
  --status-pass-bg: #f0fdf4;
  --status-warn: #d97706;
  --status-warn-bg: #fffbeb;
  --status-fail: #dc2626;
  --status-fail-bg: #fef2f2;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-subtle: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

html.dark {
  --bg-page: #090d16;
  --bg-surface: #111827;
  --bg-subtle: #0f172a;
  --bg-muted: #1e293b;
  --bg-inverse: #f8fafc;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  --border-color: #1e293b;
  --border-strong: #334155;
  --accent-red: #ef4444;
  --accent-red-hover: #dc2626;
  --accent-red-soft: rgba(239, 68, 68, 0.14);
  --status-pass: #4ade80;
  --status-pass-bg: rgba(34, 197, 94, 0.12);
  --status-warn: #fbbf24;
  --status-warn-bg: rgba(245, 158, 11, 0.12);
  --status-fail: #f87171;
  --status-fail-bg: rgba(239, 68, 68, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text-primary);
}

p {
  margin: 0;
}

a {
  color: var(--accent-red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.tabular-nums,
code,
pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  min-height: 42px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid #b91c1c;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover:not(:disabled) {
  opacity: 0.94;
}
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  min-height: 40px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-muted);
  border-color: var(--border-strong);
}
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.surface-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}