:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #f5f5f3;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.brand-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.brand-row strong { color: #c90000; }
.brand-row span { color: #777; }
.eyebrow { margin: 0 0 10px; color: #777; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.public-shell, .login-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.verify-card, .login-card { width: min(920px, 100%); background: #fff; border: 1px solid #ddd; border-radius: 20px; padding: clamp(28px, 5vw, 58px); box-shadow: 0 24px 70px rgba(0,0,0,.06); }
.verify-card.compact, .login-card { width: min(560px, 100%); }
.verify-card h1, .login-card h1 { margin: 6px 0 4px; font-size: clamp(38px, 7vw, 72px); line-height: .98; letter-spacing: -.045em; }
.login-card h1 { font-size: 44px; }
.program { margin: 14px 0 32px; font-size: 22px; color: #444; }
.status { width: fit-content; margin: 50px 0 24px; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.status-valid { background: #e9f8ec; color: #126626; }
.status-revoked { background: #feeaea; color: #a10000; }
.credential-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #e8e8e8; border: 1px solid #e8e8e8; margin: 28px 0; }
.credential-grid div { background: #fff; padding: 18px; }
dt { color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: 7px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.outcomes { margin: 28px 0; padding-top: 24px; border-top: 1px solid #eee; }
.outcomes h2 { margin: 0 0 14px; font-size: 16px; }
.outcomes ul { margin: 0; padding-left: 20px; color: #444; line-height: 1.8; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #111; background: #111; color: #fff; text-decoration: none; border-radius: 10px; padding: 11px 16px; font-weight: 700; }
.button.secondary { background: #fff; color: #111; }
.button:disabled { opacity: .4; cursor: not-allowed; }
.source-note { margin: 26px 0 0; color: #888; font-size: 13px; }
.stack { display: grid; gap: 14px; margin-top: 24px; }
label { display: grid; gap: 7px; color: #555; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #d7d7d7; background: #fff; border-radius: 9px; padding: 10px 12px; color: #111; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #999; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.alert { margin: 18px 0; padding: 11px 13px; border-radius: 9px; font-size: 14px; }
.alert.error { background: #feeaea; color: #8e0000; }
.alert.success { background: #eaf7ec; color: #176429; }
.admin-shell { min-height: 100vh; }
.admin-header { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px clamp(18px, 4vw, 54px); background: rgba(255,255,255,.92); border-bottom: 1px solid #ddd; backdrop-filter: blur(12px); }
.admin-header > div { display: flex; gap: 12px; align-items: baseline; }
.admin-header strong { color: #c90000; }
.admin-header span { color: #777; font-size: 13px; }
.admin-content { width: min(1280px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 72px; }
.page-title h1 { margin: 0 0 28px; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats div { background: #fff; border: 1px solid #ddd; border-radius: 14px; padding: 18px; }
.stats strong { display: block; font-size: 30px; letter-spacing: -.04em; }
.stats span { color: #777; font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: #fff; border: 1px solid #ddd; border-radius: 14px; padding: 20px; }
.panel.wide { grid-column: span 2; }
.panel h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.span-2 { grid-column: span 2; }
.table-panel { margin-top: 14px; padding: 0; overflow: hidden; }
.table-panel .panel-heading { padding: 20px 20px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 13px 16px; text-align: left; border-top: 1px solid #eee; font-size: 13px; vertical-align: middle; }
th { color: #777; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
td a { font-weight: 700; }
.pill { display: inline-block; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.pill.active { background: #e9f8ec; color: #126626; }
.pill.revoked { background: #feeaea; color: #a10000; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.link-button { padding: 0; border: 0; background: transparent; color: #111; text-decoration: underline; font-weight: 700; }
.empty { color: #888; text-align: center; padding: 28px; }
@media (max-width: 760px) {
  .credential-grid, .stats, .admin-grid, .form-grid { grid-template-columns: 1fr; }
  .panel.wide, .span-2 { grid-column: span 1; }
  .verify-card h1 { font-size: 42px; }
  .admin-header > div { display: grid; gap: 2px; }
  .admin-content { width: min(100% - 20px, 1280px); padding-top: 28px; }
}
