.period-analytics-phase3 {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.period-phase3-title,
.period-phase3-card > header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.period-phase3-title {
  border-top: 1px solid color-mix(in srgb, var(--border, #d9dee8) 74%, transparent);
  padding-top: 18px;
}

#period-analytics-panel .period-analytics-heading .tag,
.period-phase3-title > .tag {
  flex: none;
  white-space: nowrap;
}

.period-phase3-title > div > span,
.period-phase3-card header span,
.period-phase3-bar-label span,
.period-phase3-table-wrap td small {
  color: var(--muted, #687386);
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.period-phase3-title h3,
.period-phase3-card h4 {
  margin: 4px 0 0;
}

.period-phase3-grid {
  display: grid;
  gap: 14px;
}

.period-phase3-ranking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.period-phase3-card {
  background: color-mix(in srgb, var(--panel, #fff) 96%, #f4f7fb);
  border: 1px solid var(--border, #d9dee8);
  border-radius: 14px;
  min-width: 0;
  padding: 16px;
}

.period-phase3-card > header {
  margin-bottom: 14px;
}

.period-phase3-card > header b {
  font-size: 18px;
  white-space: nowrap;
}

.period-phase3-bars {
  display: grid;
  gap: 11px;
}

.period-phase3-bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(112px, 0.9fr) minmax(100px, 1.4fr) 74px;
}

.period-phase3-bar-label,
.period-phase3-bar-value {
  min-width: 0;
}

.period-phase3-bar-label strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-phase3-bar-track {
  background: color-mix(in srgb, #0077bb 10%, var(--panel, #fff));
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.period-phase3-bar-track i {
  background: #0077bb;
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--bar-size);
}

.period-phase3-bar-value {
  text-align: right;
}

.period-phase3-bar-value strong,
.period-phase3-bar-value span {
  display: block;
  font-size: 12px;
}

.period-phase3-bridge-bars {
  display: grid;
  gap: 13px;
}

.period-phase3-bridge-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 76px minmax(120px, 1fr) 92px;
}

.period-phase3-bridge-row > span,
.period-phase3-bridge-row > strong {
  font-size: 12px;
}

.period-phase3-bridge-row > strong {
  text-align: right;
}

.period-phase3-diverging {
  background: linear-gradient(90deg, transparent 49.5%, var(--border, #d9dee8) 49.5%, var(--border, #d9dee8) 50.5%, transparent 50.5%);
  height: 14px;
  position: relative;
}

.period-phase3-diverging i {
  border-radius: 3px;
  height: 10px;
  position: absolute;
  top: 2px;
  width: var(--effect-size);
}

.period-phase3-diverging i.left {
  background: #cc3311;
  right: 50%;
}

.period-phase3-diverging i.right {
  background: #0077bb;
  left: 50%;
}

.period-phase3-diverging i.aov.right {
  background: #009988;
}

.period-phase3-bridge > p,
.period-phase3-benchmarks > p {
  color: var(--muted, #687386);
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.period-phase3-quadrant-counts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.period-phase3-quadrant-counts article {
  border-left: 4px solid #0077bb;
  border-radius: 8px;
  padding: 9px 11px;
}

.period-phase3-quadrant-counts article span {
  color: var(--muted, #687386);
  display: block;
  font-size: 12px;
}

.period-phase3-quadrant-counts article strong {
  font-size: 22px;
}

.period-phase3-quadrant-counts .growth {
  border-color: #009988;
}

.period-phase3-quadrant-counts .scale-risk {
  border-color: #ee7733;
}

.period-phase3-quadrant-counts .watch {
  border-color: #cc3311;
}

.period-phase3-quadrant-wrap {
  min-width: 0;
}

.period-phase3-quadrant {
  display: block;
  height: auto;
  max-height: 420px;
  width: 100%;
}

.period-phase3-quadrant text {
  fill: var(--muted, #687386);
  font-size: 12px;
}

.period-phase3-quadrant-bg {
  fill: color-mix(in srgb, #0077bb 4%, var(--panel, #fff));
  stroke: var(--border, #d9dee8);
}

.period-phase3-axis-zero {
  stroke: color-mix(in srgb, var(--text, #1d2735) 62%, transparent);
  stroke-width: 1.5;
}

.period-phase3-axis-median {
  stroke: color-mix(in srgb, var(--muted, #687386) 48%, transparent);
  stroke-dasharray: 6 5;
}

.period-phase3-point {
  fill: #0077bb;
  opacity: 0.78;
  stroke: color-mix(in srgb, var(--panel, #fff) 88%, transparent);
  stroke-width: 2;
}

.period-phase3-point.growth {
  fill: #009988;
}

.period-phase3-point.scale-risk {
  fill: #ee7733;
}

.period-phase3-point.watch,
.period-phase3-point.critical {
  fill: #cc3311;
}

.period-phase3-point:focus,
.period-phase3-point:hover {
  opacity: 1;
  outline: none;
  stroke: #111827;
  stroke-width: 3;
}

.period-phase3-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.period-phase3-legend span::before {
  background: #0077bb;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 9px;
  margin-right: 6px;
  width: 9px;
}

.period-phase3-legend .growth::before {
  background: #009988;
}

.period-phase3-legend .scale-risk::before {
  background: #ee7733;
}

.period-phase3-legend .watch::before {
  background: #cc3311;
}

.period-phase3-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.period-phase3-table-wrap table {
  min-width: 880px;
}

.period-phase3-table-wrap td {
  vertical-align: top;
}

.period-phase3-table-wrap td small {
  margin-top: 4px;
  max-width: 440px;
}

.period-phase3-priority,
.period-phase3-quadrant-label {
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  white-space: nowrap;
}

.period-phase3-priority.critical,
.period-phase3-quadrant-label.watch {
  color: #a52a13;
}

.period-phase3-priority.high,
.period-phase3-quadrant-label.scale-risk {
  color: #b45309;
}

.period-phase3-priority.medium,
.period-phase3-quadrant-label.leader {
  color: #075985;
}

.period-phase3-quadrant-label.growth {
  color: #047857;
}

.period-phase3-benchmarks summary {
  cursor: pointer;
  font-weight: 700;
}

.period-phase3-empty {
  color: var(--muted, #687386);
  font-size: 13px;
  line-height: 1.6;
  padding: 18px 6px;
}

.period-phase3-snapshot {
  border-top: 1px solid var(--border, #d9dee8);
  margin-top: 18px;
  padding-top: 16px;
}

.period-phase3-snapshot > p {
  color: var(--muted, #687386);
}

.period-analytics-phase3 .positive,
.period-phase3-snapshot .positive {
  color: #047857;
}

.period-analytics-phase3 .negative,
.period-phase3-snapshot .negative {
  color: #b42318;
}

.period-analytics-phase3 .neutral,
.period-phase3-snapshot .neutral {
  color: var(--muted, #687386);
}

@media (max-width: 1180px) {
  .period-phase3-ranking-grid {
    grid-template-columns: 1fr;
  }

  .period-phase3-bar-row {
    grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.6fr) 90px;
  }
}

@media (max-width: 720px) {
  .period-phase3-card,
  .period-phase3-title {
    padding: 12px;
  }

  .period-phase3-title,
  .period-phase3-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .period-phase3-title > .tag {
    align-self: flex-start;
  }

  .period-phase3-bar-row {
    grid-template-columns: 1fr 72px;
  }

  .period-phase3-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .period-phase3-bar-value {
    grid-column: 2;
    grid-row: 1;
  }

  .period-phase3-quadrant-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .period-phase3-bridge-row {
    grid-template-columns: 70px minmax(100px, 1fr);
  }

  .period-phase3-bridge-row > strong {
    grid-column: 1 / -1;
  }
}
