:root {
  color-scheme: light;
  --bg: #f5f5f0;
  --panel: #fff;
  --ink: #222b27;
  --muted: #77817a;
  --line: #dfe4dc;
  --accent: #d2ef78;
  --dark: #223c32;
  --soft: #edf0e9;
  --warn: #94652b;
  --shadow: 0 5px 22px #233a2510;
  font-family: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #88b336;
  outline-offset: 3px;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 206px;
  background: var(--dark);
  color: #e7eee6;
  padding: 36px 27px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.wordmark {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -6px;
}
.wordmark span {
  color: var(--accent);
}
.wordmark i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 0 0 10px;
  background: var(--accent);
}
.rail-label {
  font-size: 8px;
  letter-spacing: 2px;
  margin: 18px 0 62px;
  color: #a8b8aa;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
nav a {
  padding: 14px 10px;
  border-radius: 7px;
  color: #b7c8ba;
  display: flex;
  gap: 14px;
  font-size: 18px;
}
nav a span {
  font-size: 14px;
}
nav a.active {
  background: #d2ef781c;
  color: var(--accent);
}
.rail-foot {
  margin-top: auto;
  font-size: 9px;
  letter-spacing: 1.8px;
  line-height: 2;
  color: #91a995;
}
main {
  margin-left: 206px;
  padding: 0 42px;
  max-width: 1700px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 95px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 19px;
  letter-spacing: 2px;
  font-weight: 800;
}
.brand span {
  font-size: 11px;
  letter-spacing: 3px;
  margin-left: 10px;
  color: var(--muted);
}
.header-right {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.live-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #8aa64b;
  display: inline-block;
}
.icon-button {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 50%;
  height: 36px;
  width: 36px;
  font-size: 21px;
  margin-left: 15px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 0 30px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
}
h1 {
  font-size: 46px;
  letter-spacing: -2px;
  line-height: 1.12;
  font-weight: 500;
  margin: 15px 0;
}
h1 em {
  font-style: normal;
  color: var(--muted);
}
.source-state {
  font-size: 11px;
  line-height: 1.7;
  text-align: right;
}
.source-state .live-dot {
  margin-right: 5px;
}
.source-state small {
  display: block;
  color: var(--muted);
}
.source-state.stale .live-dot {
  background: #c39961;
}
.filters {
  display: flex;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.filters label {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  padding: 0 16px;
}
.filters label:first-of-type {
  padding-left: 0;
  flex: 1.4;
}
.filters select,
.filters input {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 9px 0 0;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  letter-spacing: 0;
}
.apply {
  border: 0;
  background: var(--accent);
  padding: 13px 17px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 18px;
}
.apply span {
  margin-left: 10px;
}
.period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
  gap: 10px;
  font-size: 10px;
}
.period-bar > div {
  display: flex;
  gap: 10px;
  align-items: center;
}
.period-bar span {
  color: var(--muted);
}
.period {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 13px;
  font-size: 11px;
}
.tag {
  background: var(--soft);
  padding: 7px 10px;
  border-radius: 4px;
}
.metrics {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  padding: 21px 19px;
  min-height: 153px;
}
.metric.primary {
  background: var(--dark);
  color: #eff3e9;
  border-color: var(--dark);
}
.metric-label {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.primary .metric-label {
  color: #b4c4b4;
}
.metric-value {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 22px 0 17px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0;
  display: inline-block;
  margin-left: 5px;
}
.primary .metric-value small {
  color: #d2ef78;
}
.metric-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}
.primary .metric-note {
  color: #b5c8b3;
}
.charts {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 19px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 25px 24px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
h2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 9px 0;
}
.muted {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.chart {
  height: 245px;
  width: 100%;
  margin-top: 14px;
}
details {
  font-size: 11px;
  color: var(--muted);
}
summary {
  padding: 10px 0;
  cursor: pointer;
}
.journal {
  margin: 22px 0;
}
.search {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}
.search label {
  flex: 1;
}
.search input,
.search select,
.search button {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  font-size: 11px;
  width: 100%;
}
.search select,
.search button {
  width: auto;
}
.search button {
  background: var(--soft);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
td strong {
  font-weight: 500;
}
td small {
  font-size: 10px;
  color: var(--muted);
}
.event-icon {
  display: inline-block;
  width: 29px;
  height: 29px;
  background: var(--soft);
  border-radius: 7px;
  text-align: center;
  line-height: 29px;
  margin-right: 9px;
  color: var(--dark);
  font-size: 17px;
}
.event-sub {
  display: block;
  margin: 5px 0 0 39px;
}
.quality {
  font-size: 9px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: nowrap;
}
.quality.ok {
  background: #eff5df;
  color: #58712f;
  border-color: #dfeac6;
}
.quality.inconsistent {
  color: var(--warn);
}
.table-empty {
  color: var(--muted);
  padding: 36px 10px;
}
.table-scroll {
  overflow-x: auto;
}
.more {
  margin: 18px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 5px;
  font-size: 11px;
}
.notice {
  border-left: 3px solid #a8b56f;
  background: var(--soft);
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 18px;
  margin: 15px 0;
}
.empty {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 80px 20px;
  margin: 20px 0;
}
.empty p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.empty-symbol {
  font-size: 36px;
  color: #7f935c;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
  margin-top: 32px;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
footer p {
  margin: 0;
  max-width: 340px;
  line-height: 1.7;
  letter-spacing: 0;
  font-size: 9px;
}
.footer-dot {
  margin: 0 7px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
body.dark {
  color-scheme: dark;
  --bg: #151e1a;
  --panel: #202b25;
  --ink: #e0e8dc;
  --muted: #9caa9c;
  --line: #334137;
  --soft: #2a372d;
  --shadow: none;
}
.dark .metric.primary {
  background: #cfeb7b;
  color: #223c32;
}
.dark .primary .metric-label,
.dark .primary .metric-note,
.dark .primary .metric-value small {
  color: #3c582a;
}
.dark .quality.ok {
  background: #33462b;
  color: #d0e99d;
  border-color: #435a36;
}
.dark .event-icon {
  color: #d0e99d;
}
@media (min-width: 1500px) {
  main {
    padding: 0 60px;
  }
}
@media (max-width: 1100px) {
  main {
    padding: 0 25px;
    margin-left: 165px;
  }
  .rail {
    width: 165px;
    padding: 30px 18px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 31px;
  }
  .filters label {
    padding: 0 9px;
  }
  .charts {
    grid-template-columns: 1.3fr 1fr;
  }
  h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .rail {
    width: 100%;
    height: 65px;
    inset: auto 0 0;
    flex-direction: row;
    padding: 0;
    justify-content: center;
    border-top: 1px solid #4a5a46;
  }
  .wordmark,
  .rail-label,
  .rail-foot {
    display: none;
  }
  nav {
    flex-direction: row;
    width: 100%;
    gap: 0;
  }
  nav a {
    border-radius: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: 21px;
    padding: 8px 5px;
  }
  nav a span {
    font-size: 9px;
  }
  main {
    margin: 0;
    padding: 0 20px 65px;
  }
  header {
    height: 73px;
  }
  .brand {
    font-size: 16px;
  }
  .brand span {
    font-size: 9px;
    letter-spacing: 2px;
    margin-left: 5px;
  }
  .desktop {
    display: none;
  }
  .heading {
    padding: 28px 0 18px;
    align-items: flex-start;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  h1 {
    font-size: 33px;
    letter-spacing: -1.3px;
  }
  .source-state {
    max-width: 113px;
    font-size: 9px;
    margin-top: 3px;
  }
  .source-state small {
    font-size: 8px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 8px;
    padding: 16px;
  }
  .filters label,
  .filters label:first-of-type {
    padding: 0 4px;
    border: 0;
    font-size: 8px;
    min-width: 0;
  }
  .filters label:first-of-type {
    grid-column: 1/-1;
  }
  .filters label:nth-of-type(4) {
    grid-column: 1/2;
  }
  .filters input,
  .filters select {
    font-size: 12px;
  }
  .apply {
    margin: 0;
    padding: 10px;
  }
  .period-bar {
    margin: 17px 0;
    align-items: flex-start;
  }
  .period-bar > div {
    flex-wrap: wrap;
    gap: 6px;
  }
  .period-bar > div > span {
    width: 100%;
    font-size: 9px;
    margin-top: 5px;
  }
  .tag {
    font-size: 9px;
    white-space: nowrap;
  }
  .metrics {
    gap: 9px;
    margin-bottom: 16px;
  }
  .metric {
    padding: 17px 13px;
    min-height: 142px;
  }
  .metric-label {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .metric-value {
    font-size: 24px;
    letter-spacing: -0.8px;
    margin: 20px 0 13px;
  }
  .metric-value small {
    font-size: 9px;
    margin-left: 3px;
  }
  .metric-note {
    font-size: 9px;
  }
  .charts {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .panel {
    padding: 20px 16px;
  }
  .chart {
    height: 230px;
  }
  h2 {
    font-size: 18px;
  }
  .panel-heading .muted {
    font-size: 8px;
  }
  .journal {
    margin-top: 16px;
  }
  .search {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search label {
    flex-basis: 100%;
  }
  .search select {
    flex: 1;
  }
  .table-scroll {
    margin: 0 -16px;
    padding: 0 10px;
  }
  table {
    font-size: 10px;
  }
  th {
    font-size: 7px;
  }
  td {
    padding: 17px 6px;
    min-width: 80px;
  }
  td:nth-child(2) {
    min-width: 155px;
  }
  .quality {
    font-size: 8px;
  }
  .event-icon {
    width: 25px;
    height: 25px;
    line-height: 25px;
    margin-right: 5px;
  }
  .event-sub {
    margin-left: 30px;
  }
  .panel-heading {
    align-items: flex-start;
  }
  footer {
    flex-direction: column;
    gap: 13px;
    font-size: 6px;
    margin-top: 25px;
  }
  .empty {
    padding: 60px 14px;
  }
  .empty p {
    font-size: 12px;
  }
}
