:root {
  color-scheme: light;
  font-family: "Inter", system-ui, sans-serif;
  color: #172c40;
  background: #edf2f6;
  --navy: #152c42;
  --blue: #145b8d;
  --muted: #53677a;
  --line: #d8e2eb;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1260px; margin: auto; padding: clamp(16px, 4vw, 44px); }
.masthead { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; }
.mark { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 13px; background: var(--navy); color: white; font-weight: 800; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.4rem, 3.8vw, 2.2rem); line-height: 1.12; letter-spacing: -.04em; }
h2 { font-size: 1.05rem; }
p { color: var(--muted); line-height: 1.5; }
#profile, #count { margin-top: 4px; font-size: .86rem; }
button, input, select, summary { font: inherit; }
button, input, select, summary { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: #fff; }
button, summary { cursor: pointer; }
button { padding: 0 14px; font-weight: 650; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
nav { display: flex; gap: 6px; margin-bottom: 16px; }
nav button[aria-pressed="true"], #export { color: #fff; background: var(--blue); border-color: var(--blue); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr)); gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.field { display: grid; align-content: start; min-width: 0; gap: 6px; font-size: .88rem; font-weight: 650; }
.field span { color: var(--muted); }
input, select, summary { width: 100%; min-width: 0; padding: 0 10px; font-weight: 500; font-size: .9rem; }
summary { line-height: 40px; padding-right: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details { position: relative; }
.scope-menu { position: absolute; top: calc(100% + 5px); left: 0; z-index: 5; width: min(320px, 78vw); padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 12px 35px #162c4226; }
.scope-menu button { display: block; width: 100%; text-align: left; border: 0; font-weight: 550; }
.scope-menu button:hover { background: #ecf4fa; }
.scope-menu input { margin-bottom: 4px; }
#engineers { max-height: 235px; overflow: auto; border-top: 1px solid var(--line); }
#engineers p { padding: 8px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); gap: 10px; margin: 16px 0; }
.metric { background: #e2ecf3; border-radius: 12px; padding: 12px 14px; }
.metric strong { display: block; font-size: clamp(1.05rem, 3vw, 1.45rem); font-variant-numeric: tabular-nums; }
.metric span { color: var(--muted); font-size: .8rem; }
.results { border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.toolbar, .pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.actions { display: flex; align-items: center; gap: 8px; }
.actions > * { white-space: nowrap; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .88rem; text-align: left; }
th, td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
th { background: #f1f5f8; color: var(--muted); white-space: nowrap; font-weight: 650; }
tbody tr:nth-child(even) { background: #f9fbfd; }
td:first-child { font-weight: 750; color: var(--blue); white-space: nowrap; }
.status { display: inline-block; border-radius: 6px; padding: 2px 6px; font-weight: 650; background: #fff1d2; color: #73500f; }
.status.down { background: #fbe5e4; color: #972d2b; }
.pager { justify-content: flex-end; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
#report-message, #notice { padding: 12px 16px; background: #f1f5f8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 560px) {
  .toolbar { align-items: flex-start; flex-direction: column; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { flex-wrap: wrap; }
}
