.analytics-body {
  background: #f2f5f6;
  color: #18303a;
  min-height: 100vh;
}
.analytics-body [hidden] {
  display: none !important;
}
.analytics-body button:focus-visible,
.analytics-body a:focus-visible,
.analytics-body input:focus-visible,
.analytics-body select:focus-visible,
.analytics-body summary:focus-visible {
  outline: 3px solid #1baea2;
  outline-offset: 2px;
}
.analytics-topbar {
  min-height: 70px;
  padding: 14px clamp(18px, 3vw, 44px);
  background: #102b35;
  color: #e6f0f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.analytics-brand,
.analytics-account {
  display: flex;
  align-items: center;
  gap: 16px;
}
.analytics-brand a {
  font:
    24px Georgia,
    serif;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
.analytics-brand a span {
  color: #93d7cd;
}
.analytics-brand strong {
  font-size: 15px;
  font-weight: 600;
}
.analytics-divider {
  height: 24px;
  border-left: 1px solid #54717b;
}
.analytics-environment {
  border: 1px solid #54717b;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #c4d8db;
}
.analytics-account {
  font-size: 13px;
}
.analytics-account a {
  color: #d8eded;
  text-decoration: none;
}
.analytics-account a:hover {
  text-decoration: underline;
}
.analytics-account button {
  color: #e6f0f1;
  background: transparent;
  border-color: #54717b;
  padding: 7px 11px;
}
.analytics-main {
  max-width: 1530px;
  margin: 0 auto;
  padding: 34px clamp(18px, 3vw, 44px) 60px;
}
.analytics-eyebrow {
  color: #247c79;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.5px;
}
.analytics-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.analytics-heading h1 {
  font:
    500 clamp(29px, 3.4vw, 43px) Georgia,
    serif;
  letter-spacing: -0.8px;
  margin: 6px 0;
}
.analytics-heading p {
  color: #657883;
  margin: 0;
}
.analytics-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.analytics-toolbar > button,
.analytics-segment {
  background: white;
  border: 1px solid #d8e1e3;
  border-radius: 9px;
}
.analytics-toolbar > button {
  padding: 8px 13px;
}
.analytics-segment {
  display: flex;
  padding: 3px;
  gap: 2px;
}
.analytics-segment button {
  border: 0;
  background: transparent;
  color: #546974;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 13px;
}
.analytics-segment button[aria-pressed='true'] {
  color: #0d554f;
  background: #def3ef;
  font-weight: 700;
}
.analytics-segment button:hover {
  background: #e9f4f2;
}
.analytics-status {
  color: #a24634;
  min-height: 0;
  margin: 0 0 12px;
}
.analytics-status:empty {
  display: none;
}
.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.analytics-kpi,
.analytics-card {
  background: white;
  border: 1px solid #dce5e7;
  border-radius: 14px;
  box-shadow: 0 3px 15px #15363e08;
}
.analytics-kpi {
  min-height: 120px;
  padding: 19px 20px;
  border-top: 3px solid #d5e9e6;
}
.analytics-kpi.accent {
  border-top-color: #178b81;
}
.analytics-kpi small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #617681;
}
.analytics-kpi strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 650;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.analytics-kpi span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6e8089;
}
.analytics-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: stretch;
}
.analytics-secondary-grid {
  grid-template-columns: 1fr 1fr;
}
.analytics-card {
  padding: 22px 24px;
  min-width: 0;
}
.analytics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.analytics-card h2 {
  font-size: 17px;
  font-weight: 690;
  margin: 0;
  letter-spacing: -0.2px;
}
.analytics-card-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #71838b;
}
.analytics-trend {
  min-height: 275px;
}
.analytics-trend svg {
  display: block;
  width: 100%;
  height: auto;
}
.analytics-caption,
.analytics-footnote {
  color: #71838b;
  font-size: 12px;
  line-height: 1.55;
}
.analytics-caption {
  margin: 4px 0 0;
}
.analytics-footnote {
  margin: 16px 2px;
}
.analytics-plot-grid {
  stroke: #e4edef;
  stroke-width: 1;
}
.analytics-plot-axis {
  fill: #83949d;
  font-size: 11px;
  font-family: inherit;
}
.analytics-plot-area {
  fill: #1d9d9130;
}
.analytics-plot-line {
  fill: none;
  stroke: #10887d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.analytics-plot-dot {
  fill: #10887d;
  stroke: white;
  stroke-width: 2;
}
.analytics-plot-bar {
  fill: #178b81;
}
.analytics-plot-bar:hover {
  fill: #0d655e;
}
.analytics-bars {
  display: grid;
  gap: 17px;
}
.analytics-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 6px;
}
.analytics-bar-head span:first-child {
  overflow-wrap: anywhere;
}
.analytics-bar-head strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.analytics-bar-track {
  background: #edf2f3;
  border-radius: 20px;
  height: 9px;
  overflow: hidden;
}
.analytics-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #268f85;
}
.analytics-bar-fill.failed {
  background: #c96850;
}
.analytics-bar-fill.started {
  background: #dba53e;
}
.analytics-bar-fill.succeeded {
  background: #2b9b8a;
}
.analytics-bar-sub {
  color: #7b8a91;
  font-size: 11px;
  margin-top: 4px;
}
.analytics-empty {
  color: #71838b;
  font-size: 13px;
  padding: 18px 0;
}
.analytics-table-card {
  margin-top: 4px;
}
.analytics-count {
  background: #eaf4f2;
  color: #286f68;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.analytics-filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.analytics-filters label {
  margin: 0;
  color: #6b7d85;
  font-size: 11px;
  flex: 1 1 170px;
}
.analytics-filters label:first-child {
  flex: 2 1 270px;
}
.analytics-filters input,
.analytics-filters select {
  margin-top: 5px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fbfdfd;
}
.analytics-table-scroll {
  overflow-x: auto;
}
.analytics-table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 730px;
}
.analytics-table-card th {
  text-align: left;
  color: #73848c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  background: #f7fafb;
  white-space: nowrap;
}
.analytics-table-card td {
  border-top: 1px solid #edf1f2;
  padding: 13px 12px;
  font-size: 13px;
  vertical-align: middle;
}
.analytics-table-card tbody tr:hover {
  background: #f7fbfa;
}
.analytics-table-card td strong {
  display: block;
  font-weight: 650;
}
.analytics-table-card td small {
  display: block;
  color: #788990;
  font-size: 11px;
  margin-top: 2px;
}
.analytics-table-card td button {
  border: 0;
  background: transparent;
  color: #176f68;
  font-weight: 700;
  padding: 0;
  text-align: left;
}
.analytics-table-card td button:hover {
  text-decoration: underline;
}
.analytics-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.analytics-badge {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  background: #e2f3e9;
  color: #2b7049;
}
.analytics-badge.warning {
  background: #fff0dc;
  color: #9a6421;
}
.analytics-badge.failed {
  background: #fbe9e5;
  color: #aa4d39;
}
.analytics-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #7a8b93;
  font-size: 12px;
  margin-top: 18px;
}
.analytics-pagination div {
  display: flex;
  gap: 8px;
}
.analytics-pagination button {
  padding: 6px 11px;
  font-size: 12px;
}
.analytics-back {
  border: 0;
  background: transparent;
  color: #176f68;
  padding: 0;
  margin: 0 0 20px;
  font-weight: 700;
}
.analytics-questions {
  display: grid;
  gap: 0;
}
.analytics-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #e8eff0;
  padding: 17px 0;
}
.analytics-question-main {
  min-width: 0;
}
.analytics-question-main strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.analytics-question-main small {
  color: #7c8b93;
}
.analytics-question-stats {
  text-align: right;
  color: #637984;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.analytics-question button {
  color: #176f68;
  font-weight: 700;
}
.analytics-inspection {
  margin-top: 18px;
}
.analytics-inspection-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.analytics-inspection-head h2 {
  overflow-wrap: anywhere;
}
.analytics-run,
.analytics-call {
  border-top: 1px solid #e5edef;
  margin-top: 20px;
  padding-top: 18px;
}
.analytics-call {
  margin-left: 18px;
  padding-left: 15px;
  border-left: 2px solid #cfe4e0;
}
.analytics-run-head,
.analytics-call-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.analytics-inspection details {
  margin: 12px 0;
}
.analytics-inspection summary {
  color: #176f68;
  cursor: pointer;
  font-weight: 650;
}
.analytics-inspection pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f6f9f9;
  border: 1px solid #dce7e8;
  border-radius: 8px;
  padding: 13px;
  max-height: 450px;
  overflow: auto;
  font:
    12px/1.55 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.analytics-inspection h3 {
  font-size: 14px;
  margin: 16px 0 5px;
}
.analytics-inspection p {
  color: #70818a;
  font-size: 12px;
}
.analytics-auth {
  background: white;
  border: 1px solid #dce5e7;
  border-radius: 16px;
  padding: 35px;
  max-width: 490px;
  margin: clamp(45px, 10vh, 130px) auto;
}
.analytics-auth h1 {
  font:
    500 36px Georgia,
    serif;
  line-height: 1.2;
  margin: 12px 0;
}
.analytics-auth p {
  color: #647883;
}
.analytics-auth input {
  margin-bottom: 15px;
}
.analytics-primary {
  background: #167f75;
  color: white;
  border-color: #167f75;
}
.analytics-primary:hover {
  background: #10675f;
}
@media (max-width: 1160px) {
  .analytics-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }
  .analytics-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 730px) {
  .analytics-topbar {
    align-items: flex-start;
  }
  .analytics-brand {
    flex-wrap: wrap;
    gap: 8px;
  }
  .analytics-environment,
  .analytics-divider {
    display: none;
  }
  .analytics-account {
    flex-wrap: wrap;
    justify-content: end;
    gap: 8px;
  }
  .analytics-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-secondary-grid {
    grid-template-columns: 1fr;
  }
  .analytics-card {
    padding: 18px;
  }
  .analytics-question {
    grid-template-columns: 1fr auto;
  }
  .analytics-question-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}
@media (max-width: 420px) {
  .analytics-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .analytics-kpi {
    padding: 15px;
    min-height: 105px;
  }
  .analytics-kpi strong {
    font-size: 21px;
  }
}
