:root { font-family: Inter, system-ui, sans-serif; color: #1e293b; background: #f5f7fa; font-size: 16px; line-height: 1.55; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: white; border-bottom: 1px solid #e2e8f0; }
.bar, main { max-width: 1180px; margin: auto; padding-inline: clamp(16px, 4vw, 48px); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { font-weight: 800; font-size: 1.5rem; letter-spacing: -.06em; }
.brand span { color: #0f766e; }
.product { border-left: 1px solid #cbd5e1; padding-left: 16px; color: #475569; font-size: .9rem; }
#logout { margin-left: auto; }
main { padding-block: clamp(28px, 5vw, 64px); }
.card, dialog { background: white; border: 1px solid #e2e8f0; border-radius: 10px; padding: clamp(20px, 3vw, 30px); box-shadow: 0 2px 8px rgba(15,23,42,.04); }
.auth { max-width: 450px; margin: clamp(4px, 5vh, 60px) auto; border-top: 4px solid #0f766e; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.045em; line-height: 1.15; }
.auth h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; letter-spacing: -.025em; }
p { color: #475569; }
h1 + p, h2 + p, #expiry { margin-top: 8px; }
form { display: grid; gap: 15px; margin-top: 22px; }
label { display: grid; gap: 5px; color: #334155; font-weight: 600; font-size: .9rem; }
input, button { font: inherit; }
input { border: 1px solid #94a3b8; border-radius: 6px; padding: 10px; width: 100%; min-width: 0; color: #1e293b; }
button { background: #0f766e; color: white; border: 1px solid transparent; border-radius: 6px; padding: 8px 15px; cursor: pointer; font-size: .9rem; font-weight: 600; }
button:hover { background: #115e59; }
.secondary { background: white; color: #334155; border-color: #cbd5e1; }
.secondary:hover { background: #f1f5f9; }
.text-button { background: transparent; color: #0f766e; }
.text-button:hover { background: #ecfdf5; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #0d9488; outline-offset: 3px; }
.heading, .section-head, .actions, #services li { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.heading { margin-bottom: 24px; }
.layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(230px, 1fr); gap: 20px; align-items: start; }
.section-head { margin-bottom: 18px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid #e2e8f0; }
th { font-size: .8rem; color: #475569; background: #f8fafc; }
td:first-child { font-weight: 600; overflow-wrap: anywhere; }
.badge { display: inline-block; border-radius: 20px; padding: 3px 9px; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.positive { color: #166534; background: #dcfce7; }
.waiting { color: #92400e; background: #fef3c7; }
.negative { color: #991b1b; background: #fee2e2; }
#services { margin: 10px 0; padding: 0; }
#services li { padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
#health-notice, #expiry { font-size: .85rem; }
#refresh-health, #reissue, #back, #issued label { margin-top: 14px; }
[role=status]:empty { display: none; }
[role=status]:not(:empty) { margin-block: 12px; }
.error { color: #b91c1c; }
dialog { max-height: 90dvh; width: min(450px, calc(100% - 32px)); color: inherit; overflow-y: auto; }
dialog::backdrop { background: rgb(15 23 42 / 45%); }
.actions { justify-content: flex-end; margin-top: 16px; }
dl { display: grid; grid-template-columns: 1fr 1.3fr; font-size: .92rem; }
dt, dd { margin: 0; border-bottom: 1px solid #e2e8f0; padding-block: 9px; overflow-wrap: anywhere; }
dt { color: #475569; padding-right: 10px; }
pre { color: #1e293b; background: #f1f5f9; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
#enrollment p { margin-top: 16px; }
#mfa > input { margin-top: -10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 800px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .bar { gap: 10px; } .product { padding-left: 10px; } .layout .card { padding: 16px; } th, td { padding-inline: 5px; } }
