:root {
  color-scheme: dark;
  font:
    15px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #eaf2ff;
  background: #071121;
  --muted: #9baec9;
  --blue: #4b9dff;
  --line: #213858;
}
.work-account-sign-in {
  margin-top: 30px;
}
.sso-button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  width: 100%;
  padding: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 85% 0, #153b69 0, transparent 43%),
    linear-gradient(150deg, #0b1a33, #071121 65%);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7fc7ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
main {
  position: relative;
  max-width: 1360px;
  margin: auto;
  padding: 26px 40px 30px;
}
.glow {
  position: fixed;
  pointer-events: none;
  inset: 0;
  background: radial-gradient(ellipse at 0 40%, #17497116, transparent 55%);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #eaf2ff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.17em;
}
.brand small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #8db2df;
  letter-spacing: 0.24em;
}
.brand-mark {
  display: flex;
  align-items: baseline;
  padding: 8px 10px;
  border: 1px solid #4979b1;
  border-radius: 11px;
  color: #a9d5ff;
  background: #1b46732b;
  font-size: 25px;
  letter-spacing: -0.12em;
}
.brand-mark span {
  font-size: 13px;
  margin-left: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 12px;
  border: 1px solid #314e71;
  border-radius: 999px;
  background: #182d4870;
  color: #b8cbe4;
  font-size: 11px;
}
.quiet {
  border: 1px solid #355477;
  background: #142b46;
  color: #c6def7;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 12px;
}
.primary {
  border: 1px solid #76baff;
  background: linear-gradient(130deg, #66b6ff, #337ae4);
  color: #061225;
  border-radius: 10px;
  padding: 11px 17px;
  font-weight: 750;
  box-shadow: 0 4px 20px #1f72c91f;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 35px 0 30px;
}
.eyebrow {
  color: #83b4ed;
  font-weight: 750;
  font-size: 10px;
  letter-spacing: 0.19em;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 9px 0 12px;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 18px;
  margin: 5px 0 0;
  font-weight: 650;
  letter-spacing: -0.02em;
}
p {
  color: var(--muted);
  margin: 9px 0;
}
.source-switch {
  display: flex;
  padding: 5px;
  border: 1px solid #315479;
  border-radius: 13px;
  background: #08182d;
  box-shadow: inset 0 0 15px #02071277;
  flex-shrink: 0;
}
.source-switch button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8da9cb;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  min-width: 115px;
}
.source-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, #245d9c, #173d6d);
  color: #e2f3ff;
  box-shadow:
    0 1px 10px #459eff25,
    inset 0 1px #79bbff42;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}
.filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
label {
  display: block;
  color: #c3d4eb;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
label span {
  font-weight: 400;
  color: #7894b7;
  margin-left: 8px;
}
input,
select {
  background: #0b1d35;
  color: #d8eaff;
  border: 1px solid #2e4a6d;
  border-radius: 10px;
  min-height: 43px;
  padding: 9px 13px;
}
select {
  min-width: 190px;
}
input[type="date"] {
  min-width: 180px;
}
.connection {
  padding: 13px 17px;
  border: 1px solid #246b6b;
  background: #103a3a55;
  border-radius: 11px;
  color: #9de1d4;
  font-size: 12px;
  margin-bottom: 23px;
}
.connection.warning {
  border-color: #8d733c;
  background: #4f3e182f;
  color: #e4c687;
}
.connection.error {
  border-color: #8a5061;
  background: #4d203042;
  color: #f2b4c5;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin: 0 0 24px;
}
.metrics article {
  padding: 22px;
  background: linear-gradient(140deg, #132c4c, #0d2039);
  border: 1px solid #2a476c;
  border-radius: 15px;
  box-shadow: 0 14px 35px #0208162e;
  min-height: 166px;
  position: relative;
  overflow: hidden;
}
.metrics article:after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, #5faef8, transparent);
}
.metric-label {
  font-size: 11px;
  color: #99b5d7;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.metric {
  font-size: 44px;
  line-height: 1.12;
  margin: 16px 0 10px;
  color: #f1f7ff;
  font-weight: 650;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.metric.compact {
  font-size: 29px;
  margin-top: 22px;
  margin-bottom: 15px;
  letter-spacing: -0.035em;
}
.metrics article p {
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 24px;
}
.panel {
  border: 1px solid #223d60;
  border-radius: 15px;
  background: #0d2037b3;
  box-shadow: 0 12px 30px #02071222;
  margin-bottom: 23px;
  padding: 24px;
}
.charts .panel {
  margin: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.chart-body {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 24px;
  min-height: 220px;
  padding-top: 20px;
}
.donut-container {
  position: relative;
  width: 170px;
  height: 170px;
}
.donut-container svg {
  display: block;
  width: 170px;
  height: 170px;
  transform: rotate(-90deg);
}
.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.donut-center small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8ba6c9;
}
.legend {
  display: grid;
  gap: 11px;
  max-height: 230px;
  overflow: auto;
}
.legend-row {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  color: #bacde5;
}
.legend-dot {
  height: 7px;
  width: 7px;
  border-radius: 100px;
}
.legend-row strong {
  font-weight: 650;
  color: #dcecff;
}
.legend-row em {
  font-style: normal;
  color: #7995b8;
  font-size: 10px;
  margin-left: 6px;
}
.chart-empty {
  color: #738cac;
  text-align: center;
  font-size: 12px;
  padding: 30px 6px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-wrap {
  overflow: auto;
  margin: 19px -24px -24px;
  border-radius: 0 0 15px 15px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th,
td {
  text-align: left;
  padding: 15px 23px;
  border-top: 1px solid #223b5b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th {
  font-size: 10px;
  color: #83a0c3;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  background: #0b1b3080;
}
td {
  color: #c1d6f0;
}
td:first-child {
  font-weight: 650;
  color: #e0eeff;
}
.small {
  font-size: 11px;
  line-height: 1.7;
  color: #90a8c8;
}
.source-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.source-item {
  border: 1px solid #284264;
  background: #10284070;
  border-radius: 10px;
  padding: 15px;
  font-size: 11px;
  color: #92adcf;
}
.source-item strong {
  display: block;
  font-size: 12px;
  color: #d8e8fd;
  margin-bottom: 5px;
}
.source-item a {
  color: #8ec8ff;
  text-decoration: none;
}
.source-item a:hover {
  text-decoration: underline;
}
.source-item.warning {
  border-color: #685438;
}
.footer-note {
  font-size: 11px;
  color: #7691b2;
  margin: 22px 0 35px;
  max-width: 1000px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #203958;
  padding-top: 21px;
  font-size: 10px;
  color: #6e88ab;
}
footer span:first-child {
  font-weight: 700;
  letter-spacing: 0.13em;
}
.login-panel {
  max-width: 440px;
  margin: 65px auto 90px;
}
.login-panel h1 {
  font-size: 46px;
  margin: 15px 0 20px;
}
.login-panel h1 span {
  color: #81bfff;
}
.login-panel > p {
  line-height: 1.7;
  font-size: 14px;
}
.login-panel form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}
.login-panel input {
  margin-bottom: 19px;
  min-height: 47px;
}
.login-panel label {
  font-size: 12px;
}
.login-panel button {
  min-height: 47px;
  margin-top: 2px;
}
.error-text {
  font-size: 12px;
  color: #f3b1c0;
  min-height: 18px;
}
.private-note {
  font-size: 10px;
  color: #7394bc;
  margin-top: 25px;
}
.lock-icon {
  color: #5eaeae;
  margin-right: 5px;
}
.boot {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #90b5df;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-body {
    grid-template-columns: 140px 1fr;
    gap: 15px;
  }
  .donut-container,
  .donut-container svg {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 760px) {
  main {
    padding: 20px 18px;
  }
  header {
    gap: 12px;
    padding-bottom: 20px;
  }
  .brand {
    font-size: 9px;
    gap: 8px;
    letter-spacing: 0.1em;
  }
  .brand-mark {
    font-size: 21px;
    padding: 7px 8px;
  }
  .header-right .badge {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .intro {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 27px 0 24px;
  }
  h1 {
    font-size: 29px;
  }
  .intro p {
    font-size: 13px;
  }
  .source-switch button {
    flex: 1;
    padding: 12px;
  }
  .toolbar {
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
  }
  .filters {
    flex: 1;
    gap: 10px;
  }
  .filters > div {
    flex: 1;
  }
  .toolbar .primary {
    flex: 1;
    white-space: nowrap;
    align-self: flex-end;
    min-height: 43px;
  }
  input[type="date"],
  select {
    width: 100%;
    min-width: 0;
  }
  .metrics {
    gap: 12px;
  }
  .metrics article {
    padding: 18px 15px;
    min-height: 163px;
  }
  .metric {
    font-size: 37px;
  }
  .metric.compact {
    font-size: 23px;
    line-height: 1.3;
  }
  .metric-label {
    font-size: 10px;
  }
  .metrics article p {
    font-size: 10px;
  }
  .charts {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .panel {
    padding: 20px;
  }
  .chart-body {
    grid-template-columns: 145px 1fr;
    gap: 18px;
    min-height: 210px;
  }
  .donut-container,
  .donut-container svg {
    width: 145px;
    height: 145px;
  }
  .legend-row {
    font-size: 11px;
  }
  .source-details {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    margin: 18px -20px -20px;
  }
  th,
  td {
    padding: 14px 19px;
  }
  .panel-heading {
    align-items: flex-start;
  }
  .panel-heading .small {
    max-width: 115px;
    text-align: right;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .login-panel {
    margin: 45px auto 60px;
  }
  .login-panel h1 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.16s,
      border-color 0.16s,
      opacity 0.16s;
  }
}
