:root { color-scheme: light dark; }

body { font-family: system-ui, -apple-system, Segoe UI, sans-serif; margin: 0; background: #f6f7f9; color: #1a1a1a; }
header { background: #1f2937; color: #fff; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
header a { color: #cbd5e1; text-decoration: none; }
header .brand { font-weight: 600; color: #fff; }
main { max-width: 960px; margin: 1.5rem auto; padding: 0 1.5rem; }
h1 { font-size: 1.3rem; }
h2 { font-size: 1.05rem; margin-top: 1.8rem; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }
th { background: #f0f1f3; }
.pill { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.pill.pending { background: #fef3c7; color: #92400e; }
.pill.enrolled { background: #d1fae5; color: #065f46; }
.pill.rejected, .pill.revoked { background: #fee2e2; color: #991b1b; }
button, input[type=submit] { font: inherit; padding: 0.35rem 0.8rem; border-radius: 5px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; }
button.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
button.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
form.inline { display: inline; }
label { display: block; margin: 0.6rem 0 0.2rem; font-size: 0.85rem; font-weight: 600; }
input[type=text], input[type=number], textarea, select { font: inherit; width: 100%; max-width: 420px; padding: 0.4rem; border: 1px solid #cbd5e1; border-radius: 5px; box-sizing: border-box; }
.card { background: #fff; padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1rem; }
.muted { color: #6b7280; font-size: 0.85rem; }
.empty { color: #6b7280; font-style: italic; }
code { background: #eef0f3; padding: 0.05rem 0.3rem; border-radius: 3px; font-size: 0.85rem; }

/* Login page — body layout differs from the app shell above. */
body.login { background: #1f2937; display: flex; min-height: 100vh; align-items: center; justify-content: center; }
body.login .box { background: #fff; padding: 2rem; border-radius: 8px; width: 320px; }
body.login h1 { font-size: 1.2rem; margin-top: 0; }
body.login input { font: inherit; width: 100%; padding: 0.5rem; border: 1px solid #cbd5e1; border-radius: 5px; box-sizing: border-box; }
body.login label { display: block; margin: 0.8rem 0 0.2rem; font-size: 0.85rem; font-weight: 600; }
body.login button { font: inherit; margin-top: 1.2rem; width: 100%; padding: 0.55rem; background: #2563eb; color: #fff; border: 0; border-radius: 5px; cursor: pointer; }
body.login .error { background: #fee2e2; color: #991b1b; padding: 0.5rem 0.75rem; border-radius: 5px; font-size: 0.85rem; margin-bottom: 0.5rem; }
