:root {
  --stage21-night: #06121e;
  --stage21-deep: #0b2434;
  --stage21-cyan: #58d5e8;
  --stage21-mint: #62dfad;
  --stage21-gold: #f3bd5e;
  --stage21-line: #d8e4e8;
  --stage21-muted: #667c86;
  --stage21-surface: #f5f8f9;
}

.stage21-temporal {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(88,213,232,.13), transparent 30%),
    radial-gradient(circle at 10% 85%, rgba(98,223,173,.11), transparent 32%),
    linear-gradient(150deg, #06121e, #0b2434 60%, #0b2b39);
}

.stage21-temporal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .17;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 54px 54px;
}

.stage21-temporal > .container {
  position: relative;
  z-index: 1;
}

.stage21-header {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 22px;
}

.stage21-header h2 {
  max-width: 880px;
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(2rem,4vw,4rem);
  line-height: 1.04;
}

.stage21-header > p {
  margin: 0;
  color: #bed0d8;
  line-height: 1.7;
}

.stage21-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(12px);
}

.stage21-status__dot {
  width: 11px;
  height: 11px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--stage21-mint);
  box-shadow: 0 0 0 5px rgba(98,223,173,.13);
}

.stage21-status strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
}

.stage21-status p {
  margin: 0;
  color: #bed0d8;
  line-height: 1.55;
}

.stage21-kpis {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stage21-kpi {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}

.stage21-kpi strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-family: Manrope,sans-serif;
  font-size: clamp(1.55rem,3vw,2.55rem);
  line-height: 1;
}

.stage21-kpi span {
  display: block;
  color: #bed0d8;
  font-size: .89rem;
  line-height: 1.4;
}

.stage21-headline-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stage21-headline {
  min-height: 215px;
  padding: 18px;
  border-top: 4px solid var(--stage21-mint);
  border-radius: 14px;
  color: #112f3d;
  background: #fff;
}

.stage21-headline--network {
  border-top-color: var(--stage21-cyan);
}

.stage21-headline--peak {
  border-top-color: var(--stage21-gold);
}

.stage21-headline--streak {
  border-top-color: #9a8df0;
}

.stage21-headline__label {
  display: block;
  min-height: 34px;
  color: #637983;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.stage21-headline h3 {
  margin: 9px 0 12px;
  color: #0e4050;
  font-family: Manrope,sans-serif;
  font-size: 1.28rem;
}

.stage21-headline__metric {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 9px;
}

.stage21-headline__metric strong {
  color: #0e4050;
  font-family: Manrope,sans-serif;
  font-size: 2rem;
}

.stage21-headline__metric span {
  color: #637983;
  font-size: .8rem;
}

.stage21-headline p {
  margin: 0;
  color: #536a74;
  font-size: .88rem;
  line-height: 1.5;
}

.stage21-workspace,
.stage21-political,
.stage21-integrity {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px;
  color: #112f3d;
  background: #f8fbfc;
}

.stage21-toolbar {
  display: grid;
  grid-template-columns: minmax(330px,1fr) minmax(220px,.55fr) minmax(250px,.7fr);
  gap: 16px;
  align-items: end;
  padding: 18px 20px;
  border-bottom: 1px solid var(--stage21-line);
  background: #fff;
}

.stage21-toolbar__label,
.stage21-mode span,
.stage21-search span {
  display: block;
  margin-bottom: 8px;
  color: #5a717b;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stage21-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.stage21-tabs button {
  border: 1px solid #cbd9de;
  border-radius: 999px;
  padding: 9px 13px;
  color: #254552;
  background: #f4f8f9;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}

.stage21-tabs button:hover,
.stage21-tabs button:focus-visible {
  border-color: #527e8f;
  outline: none;
}

.stage21-tabs button[aria-selected="true"] {
  border-color: var(--stage21-deep);
  color: #fff;
  background: var(--stage21-deep);
}

.stage21-mode select,
.stage21-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd9de;
  border-radius: 10px;
  padding: 9px 12px;
  color: #112f3d;
  background: #fff;
  font: inherit;
}

.stage21-mode select:focus,
.stage21-search input:focus {
  border-color: #54869a;
  outline: 3px solid rgba(88,213,232,.16);
}

.stage21-workspace__grid {
  display: grid;
  grid-template-columns: minmax(440px,.94fr) minmax(0,1.06fr);
  min-height: 690px;
}

.stage21-ranking {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--stage21-line);
  background: #fff;
}

.stage21-profile {
  min-width: 0;
  background:
    linear-gradient(180deg,#edf5f7,#f8fbfc);
}

.stage21-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  min-height: 72px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--stage21-line);
  background: #fff;
}

.stage21-panel-head span {
  color: #55717e;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.stage21-panel-head strong {
  display: block;
  margin-top: 4px;
  color: #113f4e;
  font-family: Manrope,sans-serif;
  font-size: 1.03rem;
}

.stage21-table-wrap {
  overflow: auto;
  max-height: 555px;
  flex: 1 1 auto;
}

.stage21-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .79rem;
}

.stage21-table th,
.stage21-table td {
  padding: 10px;
  border-bottom: 1px solid #e1eaed;
  text-align: left;
  vertical-align: top;
}

.stage21-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #425d69;
  background: #edf3f5;
  font-size: .69rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.stage21-table tbody tr[data-stage21-unit] {
  cursor: pointer;
}

.stage21-table tbody tr[data-stage21-unit]:hover,
.stage21-table tbody tr[data-stage21-unit].is-selected {
  background: #e7f8f1;
}

.stage21-table td strong {
  color: #103f4f;
}

.stage21-rank {
  display: inline-grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #123f4f;
  background: #e4f0f3;
  font-weight: 850;
}

.stage21-panel-note {
  min-height: 56px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--stage21-line);
  color: #5e747e;
  background: #f8fbfc;
  font-size: .79rem;
  line-height: 1.55;
}

.stage21-selected-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
  padding: 16px;
}

.stage21-selected-metric {
  padding: 13px;
  border: 1px solid var(--stage21-line);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
}

.stage21-selected-metric strong {
  display: block;
  margin-bottom: 5px;
  color: #0e4050;
  font-family: Manrope,sans-serif;
  font-size: 1.28rem;
}

.stage21-selected-metric span {
  display: block;
  color: #637983;
  font-size: .75rem;
  line-height: 1.35;
}

.stage21-hourly-profile {
  display: grid;
  grid-template-columns: repeat(8,minmax(50px,1fr));
  gap: 8px;
  align-items: end;
  min-height: 385px;
  padding: 24px 16px 12px;
}

.stage21-hour {
  display: flex;
  min-width: 0;
  height: 340px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.stage21-hour__value {
  margin-bottom: 6px;
  color: #274d5c;
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
}

.stage21-hour__track {
  position: relative;
  display: flex;
  min-height: 240px;
  flex: 1 1 auto;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid #d5e1e5;
  border-radius: 8px 8px 3px 3px;
  background:
    repeating-linear-gradient(
      to top,
      rgba(43,84,99,.07) 0,
      rgba(43,84,99,.07) 1px,
      transparent 1px,
      transparent 25%
    ),
    #fff;
}

.stage21-hour__bar {
  width: 100%;
  min-height: 2px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg,var(--stage21-mint),#209b74);
  transition: height .25s ease;
}

.stage21-hour[data-context="NETWORK"] .stage21-hour__bar {
  background: linear-gradient(180deg,var(--stage21-cyan),#247fb6);
}

.stage21-hour__threshold {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(243,189,94,.95);
}

.stage21-hour__occurrence {
  margin-top: 6px;
  color: #6b7e86;
  font-size: .68rem;
  line-height: 1.25;
  text-align: center;
}

.stage21-hour__label {
  min-height: 36px;
  margin-top: 8px;
  color: #375764;
  font-size: .68rem;
  line-height: 1.2;
  text-align: center;
}

.stage21-threshold-note {
  margin: 0 16px 16px;
  padding: 11px 13px;
  border-left: 4px solid var(--stage21-gold);
  border-radius: 8px;
  color: #526a74;
  background: #fff8e9;
  font-size: .79rem;
  line-height: 1.55;
}

.stage21-political {
  padding: 22px;
  background: #fff;
}

.stage21-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.stage21-section-heading span,
.stage21-method__kicker {
  color: #087a8d;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stage21-section-heading strong {
  display: block;
  margin-top: 5px;
  color: #103f4e;
  font-family: Manrope,sans-serif;
  font-size: 1.35rem;
}

.stage21-section-heading p {
  max-width: 620px;
  margin: 0;
  color: #627983;
  line-height: 1.55;
}

.stage21-political-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.stage21-political-table-wrap {
  max-height: 410px;
  border: 1px solid var(--stage21-line);
  border-radius: 12px;
}

.stage21-integrity {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr);
  gap: 22px;
  padding: 22px;
  background: #fff;
}

.stage21-section-heading--compact {
  display: block;
}

.stage21-exclusion-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stage21-exclusion-card {
  padding: 14px;
  border: 1px solid var(--stage21-line);
  border-radius: 12px;
  background: #f5f8f9;
}

.stage21-exclusion-card strong {
  display: block;
  color: #103f4e;
  font-family: Manrope,sans-serif;
  font-size: 1.55rem;
}

.stage21-exclusion-card span {
  color: #637983;
  font-size: .78rem;
}

.stage21-exclusion-list {
  max-height: 265px;
  overflow: auto;
  border: 1px solid var(--stage21-line);
  border-radius: 12px;
}

.stage21-exclusion-row {
  display: grid;
  grid-template-columns: 125px minmax(150px,1fr) 90px;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #e2eaed;
  color: #526a74;
  font-size: .78rem;
}

.stage21-exclusion-row:last-child {
  border-bottom: 0;
}

.stage21-exclusion-row strong {
  color: #174656;
}

.stage21-method {
  padding-left: 20px;
  border-left: 1px solid var(--stage21-line);
}

.stage21-method h3 {
  margin: 7px 0 15px;
  color: #103f4e;
  font-family: Manrope,sans-serif;
}

.stage21-method-card {
  padding: 11px 0;
  border-bottom: 1px solid var(--stage21-line);
}

.stage21-method-card strong {
  display: block;
  margin-bottom: 4px;
  color: #174656;
}

.stage21-method-card p {
  margin: 0;
  color: #637983;
  font-size: .8rem;
  line-height: 1.5;
}

.stage21-downloads {
  margin-top: 16px;
}

.stage21-downloads a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--stage21-line);
  color: #174656;
  font-weight: 750;
  text-decoration: none;
}

.stage21-downloads a:hover,
.stage21-downloads a:focus-visible {
  color: #087a8d;
}

.stage21-downloads a span {
  color: #7a8d94;
  font-size: .72rem;
}

@media (max-width: 1180px) {
  .stage21-kpis {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .stage21-headline-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .stage21-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .stage21-search {
    grid-column: 1 / -1;
  }

  .stage21-workspace__grid {
    grid-template-columns: 1fr;
  }

  .stage21-ranking {
    border-right: 0;
    border-bottom: 1px solid var(--stage21-line);
  }
}

@media (max-width: 800px) {
  .stage21-header,
  .stage21-integrity {
    grid-template-columns: 1fr;
  }

  .stage21-header {
    gap: 18px;
  }

  .stage21-kpis,
  .stage21-headline-grid,
  .stage21-toolbar,
  .stage21-selected-metrics,
  .stage21-exclusion-cards {
    grid-template-columns: 1fr;
  }

  .stage21-section-heading,
  .stage21-political-toolbar {
    display: block;
  }

  .stage21-section-heading p {
    margin-top: 10px;
  }

  .stage21-political-toolbar .stage21-tabs + .stage21-tabs {
    margin-top: 10px;
  }

  .stage21-hourly-profile {
    min-width: 710px;
  }

  .stage21-profile {
    overflow-x: auto;
  }

  .stage21-method {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--stage21-line);
  }

  .stage21-table {
    min-width: 720px;
  }
}


.stage21-hour--missing .stage21-hour__bar {
  height: 0 !important;
  background: transparent;
}

.stage21-hour--missing .stage21-hour__track {
  background:
    repeating-linear-gradient(
      135deg,
      #f1f5f6,
      #f1f5f6 8px,
      #e7edef 8px,
      #e7edef 16px
    );
}

.stage21-hour--missing .stage21-hour__value {
  color: #778b94;
}
