:root {
  color-scheme: light dark;
  /* Palette pulled from the real dashboard.haven.living build:
     --hv-cerulean (primary), --hv-pacific (accent), --hv-border. */
  --bg: #fafbfc;
  --fg: #1f2937;
  --muted: #7a8493;
  --card: #ffffff;
  --border: #e2e6ea;
  --accent: hsl(190 93% 28%);
  --accent-fg: #ffffff;
  --danger: #b83a2a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a;
    --fg: #eef0f3;
    --muted: #9ca3af;
    --card: #1c2226;
    --border: #2b3236;
    --accent: hsl(190 70% 55%);
    --accent-fg: #0e2d35;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

.page {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
}

.brand-mark {
  width: 22px;
  height: 22px;
}

.brand-mark path {
  fill: var(--accent);
}

.brand span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

h1 {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 8px;
}

p {
  line-height: 1.5;
  color: var(--muted);
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

ul {
  color: var(--muted);
  padding-left: 20px;
  line-height: 1.6;
}

.check-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  color: var(--fg);
}

textarea.report {
  width: 100%;
  min-height: 220px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  resize: vertical;
}

button {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

.status {
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.links a {
  color: var(--accent);
}

.continue {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}
