/* Kairos upload portal — small, self-contained, no build step, no CDN. */

:root {
  color-scheme: light dark;
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #5c5c57;
  --accent: #2f6f5f;
  --accent-text: #ffffff;
  --ok: #1f7a3d;
  --ok-bg: #e7f6ec;
  --err: #a32020;
  --err-bg: #fdeaea;
  --border: #ddd9d2;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16171a;
    --card: #1f2024;
    --text: #f1f1ef;
    --muted: #a8a8a2;
    --accent: #6fc3ab;
    --accent-text: #10231d;
    --ok: #7ed99a;
    --ok-bg: #1b3324;
    --err: #ff9b9b;
    --err-bg: #3a1d1d;
    --border: #34363b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1.25rem;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

main.card {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

h1 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

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

.card__header + .step {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hint {
  margin: 0.15rem 0 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
}

input,
select,
button {
  font: inherit;
}

input[type='text'],
input[type='password'],
select {
  width: 100%;
  padding: 0.7rem 0.75rem;
  margin-top: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

input[type='file'] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 650;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

button.link {
  width: auto;
  margin: 0.5rem 0 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-weight: 400;
  text-decoration: underline;
}

.message {
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--err-bg);
  color: var(--err);
}

.results {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.results li {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.results li.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.results li.fail {
  background: var(--err-bg);
  color: var(--err);
}

.card__footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.card__footer .hint {
  margin-bottom: 0;
}

[hidden] {
  display: none !important;
}
