@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  color-scheme: dark;
  --bg: #080d18;
  --panel: #101827;
  --line: #243044;
  --text: #edf4ff;
  --muted: #8d9cb2;
  --cyan: #1fd1fa;
  --green: #41e49a;
  --orange: #ff8c38;
  --red: #ff4040;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px 'DM Sans',
    system-ui,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  border: 1px solid #304059;
  border-radius: 9px;
  background: #182237;
  padding: 11px 16px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
button:hover,
.button:hover {
  background: #24344b;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.button:focus-within {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.primary {
  background: var(--cyan);
  color: #041421;
  border-color: var(--cyan);
  font-weight: 700;
}
.primary:hover {
  background: #69dfff;
}
h1,
h2,
h3,
.brand,
.stats strong {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}
h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 15px 0;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0;
}
h3 {
  font-size: 19px;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
small {
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 225px;
  background: #0c1220;
  border-right: 1px solid var(--line);
  padding: 30px 21px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 25px;
  font-weight: 600;
}
.brand img {
  width: 47px;
  height: 47px;
  border-radius: 12px;
}
.brand small {
  display: block;
  font:
    9px 'DM Sans',
    sans-serif;
  letter-spacing: 2px;
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #71829e;
  margin: 48px 12px 12px;
}
.nav {
  display: flex;
  gap: 15px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  margin: 4px 0;
  padding: 14px;
}
.nav.active {
  background: #192a3b;
  color: var(--cyan);
}
.nav span {
  font-size: 14px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
}
.green {
  background: var(--green);
}
.orange {
  background: var(--orange);
}
.upcoming {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 12px;
  color: #62748f;
  font-size: 13px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  line-height: 2;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
}
main {
  margin-left: 225px;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.topbar strong {
  color: var(--text);
  font-weight: 500;
}
.topbar #source-badge {
  background: #172235;
  padding: 8px 12px;
  border-radius: 20px;
  letter-spacing: 0;
}
.page {
  padding: 38px 44px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 35px;
}
.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 2.2px;
}
.page-heading p {
  margin-bottom: 0;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 420px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(110deg, #152134, #101827);
  margin-bottom: 28px;
}
.stats div {
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}
.stats div:last-child {
  border: 0;
}
.stats span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
}
.stats strong {
  display: block;
  font-size: 30px;
  margin-top: 13px;
}
.stats div:last-child strong {
  font-size: 22px;
  padding-top: 6px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  margin-bottom: 25px;
  padding: 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.section-heading p {
  margin: 6px 0 0;
  font-size: 12px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 0.75fr 1.1fr;
  gap: 14px;
  margin: 25px 0;
}
.filters label {
  color: var(--muted);
  font-size: 11px;
}
.filters input,
.filters select {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0c1422;
  padding: 11px;
  margin-top: 8px;
  color: var(--text);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  color: #71839f;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 1.2px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #202b3d;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.test-badge {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid #28624c;
  border-radius: 6px;
  color: var(--green);
  font-size: 11px;
}
.test-badge.mtp {
  color: var(--orange);
  border-color: #654b32;
}
.row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.row-actions button {
  padding: 7px 10px;
  font-size: 11px;
}
.empty {
  text-align: center;
  padding: 45px 20px;
}
.empty-graphic {
  font-size: 50px;
  color: var(--cyan);
}
.empty p {
  font-size: 13px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}
.pagination button {
  padding: 8px 12px;
}
#notice {
  border: 1px solid #2d6454;
  padding: 14px 18px;
  border-radius: 10px;
  background: #102b27;
  color: #aceed8;
  font-size: 13px;
}
#notice.error {
  background: #341b25;
  border-color: #753041;
  color: #ffd1d8;
}
.demo-notice {
  color: var(--orange);
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.detail-heading p {
  margin: 6px 0;
}
.chart-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.chart-tools label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.chart {
  position: relative;
  background: #0b1320;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}
.chart-readout {
  font:
    11px ui-monospace,
    monospace;
  padding: 12px 18px;
  color: var(--muted);
  min-height: 38px;
  border-top: 1px solid var(--line);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.metric {
  background: #0c1422;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.metric span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  display: block;
}
.metric strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 500;
  margin-top: 10px;
}
.metric strong small {
  font:
    11px 'DM Sans',
    sans-serif;
}
.metric em {
  font-size: 11px;
  color: var(--cyan);
  font-style: normal;
}
.warnings {
  padding: 14px 18px;
  background: #332817;
  border: 1px solid #685330;
  border-radius: 8px;
  margin-top: 20px;
  color: #ffcf8c;
  line-height: 1.6;
}
.provenance {
  font:
    10px ui-monospace,
    monospace;
  color: #7285a0;
  line-height: 1.8;
  margin-top: 22px;
  overflow-wrap: anywhere;
}
.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.event-list span {
  background: #17283a;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 10px;
  color: #9cb8ce;
}
footer {
  text-align: center;
  color: #5e708c;
  font-size: 10px;
  margin-top: 32px;
}
#apple-auth {
  margin: 15px 0;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1700px) {
  .page {
    padding-top: 55px;
  }
  .page-heading {
    margin-bottom: 45px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 175px;
    padding: 25px 15px;
  }
  main {
    margin-left: 175px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .page,
  .topbar {
    padding-left: 25px;
    padding-right: 25px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .actions {
    max-width: none;
    justify-content: flex-start;
  }
  .stats div {
    padding: 21px 18px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    padding: 13px 16px;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 18px;
    margin-right: auto;
  }
  .brand small {
    font-size: 7px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .nav {
    width: auto;
    margin: 0;
    padding: 10px;
    gap: 6px;
    font-size: 13px;
  }
  .nav span {
    font-size: 11px;
  }
  .nav-label,
  .upcoming,
  .sidebar-bottom,
  .nav .dot {
    display: none;
  }
  main {
    margin-left: 0;
  }
  .topbar {
    height: 50px;
    padding: 0 16px;
    font-size: 8px;
  }
  .page {
    padding: 28px 16px;
  }
  .page-heading {
    gap: 20px;
  }
  h1 {
    font-size: 37px;
  }
  .actions {
    gap: 8px;
  }
  .actions button,
  .actions .button {
    font-size: 12px;
    padding: 10px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats div {
    border-bottom: 1px solid var(--line);
  }
  .stats div:nth-child(2) {
    border-right: 0;
  }
  .stats div:nth-child(3) {
    border-bottom: 0;
  }
  .stats strong {
    font-size: 26px;
  }
  .stats div:last-child strong {
    font-size: 18px;
  }
  .panel {
    padding: 18px;
  }
  .filters {
    gap: 10px;
  }
  td,
  th {
    padding: 14px 8px;
  }
  td {
    font-size: 12px;
  }
  .row-actions {
    flex-direction: column;
  }
  .detail-heading {
    flex-direction: column;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 12px;
  }
  .metric strong {
    font-size: 21px;
  }
}
