:root {
  color-scheme: light dark;
  --bg: oklch(0.98 0.01 260);
  --surface: oklch(1 0 0);
  --text: oklch(0.22 0.02 260);
  --muted: oklch(0.5 0.02 260);
  --accent: oklch(0.55 0.18 280);
  --accent-hover: oklch(0.48 0.2 280);
  --border: oklch(0.88 0.02 260);
  --danger: oklch(0.55 0.2 25);
  --ok: oklch(0.55 0.15 145);
  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(0.16 0.02 260);
    --surface: oklch(0.22 0.02 260);
    --text: oklch(0.95 0.01 260);
    --muted: oklch(0.7 0.02 260);
    --border: oklch(0.32 0.02 260);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  padding: 1.5rem 1.25rem 0.5rem;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.layout {
  display: grid;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: minmax(280px, 360px) 1fr;
    align-items: start;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.field span {
  font-weight: 600;
}

.field small {
  color: var(--muted);
  font-size: 0.8rem;
}

input[type='file'],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
}

button[type='submit'] {
  background: var(--accent);
  color: white;
}

button[type='submit']:hover:not(:disabled) {
  background: var(--accent-hover);
}

button[type='button'] {
  background: transparent;
  border: 1px solid var(--border);
  color: inherit;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}

.placeholder {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  text-align: center;
  padding: 1rem 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.35rem 0;
}

.health-line span.ok {
  color: var(--ok);
  font-weight: 600;
}

.health-line span.warn {
  color: var(--danger);
  font-weight: 600;
}


