:root {
  color-scheme: light;
  --ink: #17221d;
  --muted: #5f6e66;
  --paper: #f4f7f1;
  --card: #ffffff;
  --accent: #176b4d;
  --accent-dark: #0c4933;
  --line: #dbe4dd;
  --warn: #fff4d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top left, #e4f2e8, transparent 38%), var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
main { width: min(720px, calc(100% - 32px)); margin: 48px auto 80px; }
header { margin-bottom: 24px; }
h1 { margin: 5px 0 8px; font-size: clamp(2.1rem, 7vw, 4rem); letter-spacing: -0.055em; }
p { color: var(--muted); line-height: 1.55; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.warning { padding: 16px 18px; border: 1px solid #eed693; background: var(--warn); border-radius: 14px; line-height: 1.5; }
.card { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 14px 40px rgba(20, 50, 35, .06); }
label { display: block; margin-bottom: 10px; font-size: 1.05rem; font-weight: 750; }
input[type=file] { width: 100%; padding: 13px; border: 1px dashed #9caf9f; border-radius: 12px; }
.preview { display: block; max-width: 100%; max-height: 280px; margin: 18px auto 0; border-radius: 10px; }
.row { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.hint { margin: -4px 0 14px; font-size: .9rem; }
.timer { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 800; }
.camera-shell { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 16px; background: #101713; }
video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.oval { position: absolute; width: 42%; height: 68%; left: 29%; top: 10%; border: 3px solid rgba(255,255,255,.75); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.18); }
.instruction { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 10px; color: white; background: rgba(0,0,0,.58); border-radius: 10px; text-align: center; font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
button { padding: 12px 17px; border: 0; border-radius: 11px; color: white; background: var(--accent); font: inherit; font-weight: 750; cursor: pointer; }
button:hover:not(:disabled) { background: var(--accent-dark); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.secondary { color: var(--ink); background: #e7ece8; }
.submit { width: 100%; margin-top: 22px; padding: 16px; font-size: 1.05rem; }
#status { text-align: center; min-height: 1.5em; font-weight: 650; }
.decision { font-size: 1.35rem; font-weight: 850; text-transform: capitalize; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 15px 0; }
.check { padding: 12px; background: #f5f7f5; border-radius: 10px; }
.check strong { display: block; margin-bottom: 4px; }
.pass { color: #08723f; } .fail { color: #a3352a; }
pre { overflow: auto; max-height: 220px; padding: 12px; background: #f5f7f5; white-space: pre-wrap; border-radius: 10px; }
.hidden { display: none !important; }
@media (max-width: 540px) { main { margin-top: 24px; } .card { padding: 16px; } .checks { grid-template-columns: 1fr; } }

