:root { color-scheme: light; --ink:#17202b; --muted:#606b7b; --line:#dbe1e9; --brand:#303b91; }
* { box-sizing:border-box; } [hidden] { display:none!important; }
body { margin:0; background:#f5f6f9; color:var(--ink); font:16px/1.5 system-ui,sans-serif; }
header { display:flex; justify-content:space-between; align-items:center; padding:24px max(20px,calc((100vw - 1150px)/2)); background:#fff; border-bottom:1px solid var(--line); }
h1 { font-size:1.65rem; margin:0; } h2 { margin:0 0 8px; } p { margin:0 0 14px; }
.eyebrow { font-size:.7rem; font-weight:750; letter-spacing:.13em; color:var(--brand); margin:0 0 3px; }
main { max-width:1190px; padding:24px 20px; margin:auto; }
.card { background:#fff; padding:22px; border:1px solid var(--line); border-radius:16px; }
.login { max-width:440px; margin:6vh auto 0; }
label { display:block; font-size:.85rem; font-weight:700; margin:14px 0 5px; }
input,textarea,select,button { font:inherit; }
input,textarea,select { width:100%; min-width:0; border:1px solid #aab4c2; border-radius:8px; padding:10px; background:#fff; color:var(--ink); }
button { padding:10px 15px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:#fff; cursor:pointer; font-weight:650; }
button.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
button:disabled { opacity:.5; cursor:wait; }
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid #8d9cff; outline-offset:2px; }
#login-form button { margin-top:20px; width:100%; }
nav,.actions { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 18px; }
.muted { color:var(--muted); font-size:.85rem; }
#message { padding:12px 0; color:#9a2a20; }
.desk { display:grid; grid-template-columns:220px minmax(0,1fr); gap:22px; align-items:start; }
#calendar-list { display:grid; gap:7px; max-height:75vh; overflow:auto; padding:3px; }
.day { text-align:left; padding:11px 13px; } .day span { display:block; color:var(--muted); font-size:.75rem; }
.day.active { border:2px solid var(--brand); background:#f1f2ff; }
.answer-head,.answer-row { display:grid; grid-template-columns:minmax(0,1fr) 80px 38px; gap:8px; align-items:center; margin-bottom:7px; }
.answer-head { font-size:.75rem; color:var(--muted); }
.answer-row button { padding:8px; } .answer-row small { grid-column:1/-1; color:var(--muted); font-size:.68rem; margin-top:-5px; }
#answers { max-height:52vh; overflow:auto; margin-bottom:14px; padding:3px; }
.actions { margin-top:14px; } .report { margin-bottom:16px; } .report pre { white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; }
.history-row { padding:12px; border-bottom:1px solid var(--line); }
.analytics-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:14px; }
.analytics-heading h2 { margin:0; }
.analytics-heading button { flex-shrink:0; }
#analytics-status:empty { display:none; }
#analytics-status { color:var(--muted); }
#analytics-status.error { color:#9a2a20; }
.analytics-table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:10px; }
.analytics-table-wrap:focus-visible { outline:3px solid #8d9cff; outline-offset:2px; }
.analytics-table { border-collapse:collapse; width:100%; min-width:520px; font-variant-numeric:tabular-nums; }
.analytics-table th,.analytics-table td { padding:15px 18px; text-align:right; border-bottom:1px solid var(--line); }
.analytics-table thead th { background:#f5f6f9; color:var(--muted); font-size:.8rem; font-weight:650; }
.analytics-table th:first-child { text-align:left; }
.analytics-table tbody th { font-size:.95rem; font-weight:650; }
.analytics-table td { font-size:1.35rem; font-weight:750; }
.analytics-table tbody tr:last-child { background:#f1f2ff; }
.analytics-table tbody tr:last-child th,.analytics-table tbody tr:last-child td { border-bottom:0; }
.analytics-date { display:block; margin-top:3px; color:var(--muted); font-size:.75rem; font-weight:400; white-space:nowrap; }
.analytics-updated { margin:12px 0 0; }
.analytics-definitions { margin-top:20px; }
.analytics-definitions p:last-child { margin-bottom:0; }
.analytics-note { margin:12px 0 0; padding:10px 12px; border-left:3px solid var(--brand); background:#f1f2ff; font-size:.85rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:700px) { .desk { grid-template-columns:1fr; } #calendar-list { display:flex; max-height:none; overflow:auto; } .day { min-width:150px; } .card { padding:16px; } header { padding:20px; } }
@media(max-width:450px) { .analytics-heading { align-items:flex-start; } .analytics-heading h2 { font-size:1.2rem; } .analytics-table th,.analytics-table td { padding:12px; } .analytics-table td { font-size:1.15rem; } }

