:root {
  color-scheme: dark;
  --canvas: #0e1413;
  --rail: #101817;
  --surface: #151e1b;
  --raised: #1a2722;
  --line: #2a3932;
  --ink: #edf4ec;
  --muted: #afc0b6;
  --active: #c0ee9d;
  --active-ink: #172818;
  --good: #9ee4b2;
  --bad: #ffba9e;
  --notice: #eed399;
  --radius: 10px;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  background: var(--canvas);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, a, input, select, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--active); }
::selection { background: var(--active); color: var(--active-ink); }
a { color: inherit; }
h1, h2, p, dl, dd { margin: 0; }
h1 { font-size: 2.2rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
h2 { font-size: 1rem; font-weight: 640; }
p { line-height: 1.55; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: absolute; z-index: 5; background: var(--active); color: var(--active-ink); padding: 8px 12px; }
.shell { display: grid; grid-template-columns: 192px minmax(0, 1fr); min-height: 100vh; }
.rail { display: flex; flex-direction: column; padding: 25px 15px 20px; background: var(--rail); border-right: 1px solid var(--line); }
.brand { display: flex; gap: 11px; align-items: center; margin-left: 8px; width: fit-content; letter-spacing: -.025em; text-decoration: none; font-weight: 650; }
.brand-sub { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: 0; }
.mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px;
  background: var(--active); color: var(--active-ink); font-weight: 750; font-size: 1.23rem;
}
.nav { display: grid; gap: 3px; margin-top: 38px; }
.nav p { padding: 0 10px 6px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.nav a { padding: 9px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: .88rem; }
.nav a:hover { background: var(--raised); color: var(--ink); }
.nav a[aria-current] { background: var(--raised); color: var(--active); font-weight: 630; }
main { min-width: 0; }
.content { max-width: 1450px; margin-inline: auto; padding: 33px 34px 52px; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.page-head p { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.head-actions { flex-shrink: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px;
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 11px;
  color: var(--ink); background: var(--surface); font-weight: 600; font-size: .84rem; cursor: pointer;
}
.button:hover { background: var(--raised); }
.button:disabled { opacity: .48; cursor: default; }
.button.primary { background: var(--active); color: var(--active-ink); border-color: var(--active); }
.button.primary:hover { background: #dbf6c6; }
.button.icon { min-width: 34px; font-size: 1.15rem; line-height: 1; }
.quiet { border: 0; background: none; color: var(--active); padding: 5px 0; font-size: .82rem; cursor: pointer; text-align: left; }
.quiet:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { display: grid; place-items: start; gap: 13px; max-width: 650px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.empty p { max-width: 55ch; color: var(--muted); }
.notice { margin-bottom: 16px; padding: 11px 14px; border: 1px solid currentColor; border-radius: 6px; color: var(--notice); font-size: .86rem; }
.notice.error { color: var(--bad); }
.source { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 15px; padding: 11px 0 12px; border-block: 1px solid var(--line); font-size: .84rem; }
.source > div { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.source strong { overflow-wrap: anywhere; font-weight: 600; }
.source-kind { color: var(--active); font-size: .76rem; }
#source-range { color: var(--muted); }
#partial { margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 13px; padding: 16px 0; }
.filters label { display: grid; min-width: 0; flex: 0 1 155px; gap: 5px; color: var(--muted); font-size: .78rem; }
.filters input, .filters select {
  width: 100%; min-width: 0; height: 35px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); font-size: .84rem;
}
.filters input[type=date] { min-width: 130px; }
.totals { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.totals div { padding: 14px 16px; min-width: 0; }
.totals div + div { border-left: 1px solid var(--line); }
.totals dt { font-size: .78rem; color: var(--muted); }
.totals dd { margin-top: 6px; font-size: 1.22rem; font-variant-numeric: tabular-nums; font-weight: 640; overflow-wrap: anywhere; }
.measure { font-variant-numeric: tabular-nums; }
small { display: block; color: var(--muted); font-size: .73rem; font-weight: 450; }
.activity { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(190px, 1fr); gap: 16px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; }
.panel-head p, .panel-copy { color: var(--muted); font-size: .85rem; }
.panel-head p { margin-top: 5px; }
.panel-copy { padding: 5px 15px 18px; }
.pagination { display: inline-flex; gap: 7px; align-items: center; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .78rem; }
.table-wrap { overflow-x: auto; }
.table-hint { display: none; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .82rem; }
th, td { border-top: 1px solid var(--line); padding: 9px 11px; vertical-align: middle; }
thead th { background: var(--raised); color: var(--muted); font-size: .76rem; font-weight: 600; white-space: nowrap; }
td:first-child { white-space: nowrap; }
.technical { font-family: var(--mono); font-size: .77rem; overflow-wrap: anywhere; }
.outcome { display: inline-flex; align-items: center; gap: 6px; }
.outcome::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.ok { color: var(--good); }
.bad { color: var(--bad); }
.neutral { color: var(--muted); }
.ranking ul { list-style: none; margin: 0; padding: 1px 14px; }
.ranking li + li { border-top: 1px solid var(--line); }
.rank { display: grid; gap: 9px; width: 100%; padding: 11px 0; background: transparent; color: var(--ink); border: 0; text-align: left; cursor: pointer; }
.rank > span { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.rank:hover .technical { color: var(--active); }
.rank strong { font-size: .8rem; font-variant-numeric: tabular-nums; }
progress { appearance: none; width: 100%; height: 5px; border: 0; border-radius: 2px; background: var(--line); }
progress::-webkit-progress-bar { background: var(--line); border-radius: 2px; }
progress::-webkit-progress-value { background: #81aa95; border-radius: 2px; }
progress::-moz-progress-bar { background: #81aa95; border-radius: 2px; }
.panel-link { display: block; padding: 11px 14px; border-top: 1px solid var(--line); color: var(--active); font-size: .82rem; text-decoration: none; }
.panel-link:hover { text-decoration: underline; text-underline-offset: 3px; }
dialog { width: min(520px, calc(100% - 24px)); max-height: 85vh; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgb(4 10 7 / 75%); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-list { margin-top: 13px; }
.detail-list > div { border-top: 1px solid var(--line); padding: 8px 0; display: grid; grid-template-columns: minmax(95px, 1fr) 2fr; gap: 10px; }
.detail-list dt { font-size: .81rem; color: var(--muted); }
.detail-list dd { font-family: var(--mono); font-size: .79rem; overflow-wrap: anywhere; }
@media (max-width: 1080px) { .activity { grid-template-columns: minmax(0, 1fr); } .content { padding-inline: 24px; } }
@media (max-width: 720px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px 5px; }
  .brand { margin-left: 0; }
  .brand-sub { display: inline; margin-left: 7px; }
  .nav { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
  .nav p { display: none; }
  .content { padding: 20px 13px 35px; }
  .page-head { align-items: start; flex-wrap: wrap; margin-bottom: 16px; }
  h1 { font-size: 1.8rem; }
  .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .filters input[type=date] { min-width: 0; }
  .totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .totals div { padding: 11px; }
  .totals div:nth-child(3) { border-left: 0; }
  .totals div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .table-wrap table { min-width: 32rem; }
  .table-hint { display: block; padding: 0 15px 8px; color: var(--muted); font-size: .77rem; }
  .table-wrap { scrollbar-width: thin; scrollbar-color: #526f61 var(--surface); }
}
