:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #19283c;
  background: #f4f6fa;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1500px; margin: 0 auto; padding: 56px 32px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow { color: #4b5b74; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: 32px; line-height: 1.2; margin: 0; letter-spacing: -.03em; }
.description { color: #526078; margin: 12px 0 0; }
button { background: #244ed8; color: white; border: 0; border-radius: 7px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
button:hover { background: #183cab; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid #698af0; outline-offset: 3px; }
.notice { padding: 14px 18px; margin: 28px 0 20px; background: #eaf0ff; border: 1px solid #d2defb; border-radius: 8px; color: #354c78; font-size: 13px; }
#status { color: #526078; font-size: 14px; min-height: 21px; }
#error { color: #982b24; background: #fff0ee; padding: 12px 16px; border-radius: 6px; }
.table-container { overflow-x: auto; border: 1px solid #dce2eb; border-radius: 10px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
caption { text-align: left; caption-side: bottom; color: #526078; padding: 16px 20px; font-size: 12px; }
thead { background: #eef2f8; }
th, td { padding: 16px; border-bottom: 1px solid #e4e8ef; text-align: left; }
thead th { white-space: nowrap; font-weight: 600; font-size: 12px; color: #4b5b74; }
tbody th { min-width: 160px; max-width: 320px; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; }
tbody tr:hover { background: #f8faff; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
time { white-space: nowrap; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.toolbar label { font-size: 13px; font-weight: 600; color: #4b5b74; }
select { font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid #c8d1e0; border-radius: 7px; background: white; color: #19283c; }
thead th.group { text-align: center; border-left: 1px solid #dce2eb; color: #19283c; background: #e3e9f4; }
thead th.group-start, td.group-start { border-left: 1px solid #dce2eb; }
td.not-evaluated { background: #f8f9fb; color: #8a95a8; text-align: center; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eaf0ff; color: #244ed8; font-size: 12px; font-weight: 600; }
.badge.all { background: #e6f4ea; color: #1e6b36; }
.empty-rubrics { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.empty-rubrics li { padding: 6px 12px; border: 1px dashed #c8d1e0; border-radius: 8px; color: #6b768a; font-size: 13px; }
button.secondary { background: #eaf0ff; color: #244ed8; padding: 6px 12px; }
button.secondary:hover { background: #d9e3fc; }
td button.detail-open { padding: 4px 12px; }
.detail { margin-top: 32px; display: grid; gap: 16px; }
.detail-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.detail-title { margin: 0; font-size: 20px; }
.axis { font-size: 12px; color: #6b768a; margin: 0; }
.gt-stats { width: auto; margin: 0 0 16px; border: 1px solid #dce2eb; border-radius: 8px; background: white; }
.gt-stats th, .gt-stats td { padding: 6px 16px; }
.gt-stats tr:last-child th, .gt-stats tr:last-child td { border-bottom: 0; }
.matrix th, .matrix td { text-align: center; padding: 10px 14px; }
.formulas p { margin: 0 0 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.matrix td.diagonal { background: #e6f4ea; }
.matrix td.zero { color: #8a95a8; }
.matrix button.cell { background: #fff0ee; color: #982b24; border: 1px solid #f0c4be; padding: 4px 12px; }
.matrix button.cell[aria-pressed="true"] { background: #982b24; color: white; }
.coverage { display: block; font-size: 11px; color: #6b768a; }
#reach-body td.reach-yes { color: #1e6b36; }
#reach-body td.reach-no, #reach-body div.reach-no { color: #982b24; }
#reach-body .reach-na { color: #8a95a8; }
#reach-body td.file-pages { vertical-align: top; white-space: nowrap; }
#reach-body div.reach-yes { color: #1e6b36; }
@media (max-width: 640px) {
  main { padding: 28px 16px; }
  h1 { font-size: 26px; }
  th, td { padding: 12px; }
}
