/* styles.css – minimal baseline for the review tool */

:root {
  --bg: #ffffff;
  --fg: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --accent: #60a5fa;
    --border: #374151;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #f87171;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.25rem;
  margin: 0;
}

#auth-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#auth-status button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

#user-display {
  font-size: 0.875rem;
  color: var(--muted);
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

section {
  margin-bottom: 2rem;
}

.drop-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  position: relative;
}

.drop-zone.dragover {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent), var(--bg) 92%);
}

.drop-zone h2 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.drop-zone p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.controls button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.controls button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#status-message {
  font-size: 0.875rem;
  color: var(--muted);
}

.summary .scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
}

.summary .scoreboard div {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.checks ol {
  padding-left: 1.25rem;
  margin: 0;
}

.checks li {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.findings {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  background: color-mix(in oklab, var(--bg), var(--border) 96%);
}

.findings h2 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

#findings-log {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  max-height: 25rem;
  overflow: auto;
}