/* Team rating and weekly rank history share the profile's existing visual language. */
.pn-design .team-rating-summary,
.pn-design .team-intelligence-card[data-rank-history] {
  min-width: 0;
}
.pn-design .team-rating-summary {
  display: flex;
  flex-direction: column;
}
.pn-design .team-rating-summary .team-intel-row {
  flex: 1 0 auto;
  min-height: 52px;
  gap: 14px;
}
.pn-design .team-rating-summary .team-intelligence-title {
  margin-bottom: 12px;
}
#team-rank-history {
  min-width: 0;
  color: var(--pn-ink, #102b26);
  font-variant-numeric: tabular-nums;
}
.rank-history-heading,
.rank-history-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rank-history-heading h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}
.rank-history-period {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f0f6f2;
  color: #426653;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.rank-history-kpi {
  margin: 14px 0 2px;
}
.rank-history-label,
.rank-history-brand {
  display: block;
  color: var(--pn-muted, #526b61);
  font-size: 11px;
  line-height: 1.5;
}
.rank-history-brand {
  text-align: right;
  font-weight: 700;
  max-width: 45%;
}
.rank-history-current {
  margin-top: 2px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.35;
}
.rank-history-current .ranking-movement {
  font-size: 12px;
  letter-spacing: normal;
}
.rank-history-plot {
  width: 100%;
  min-width: 0;
}
.rank-history-plot svg {
  display: block;
  width: 100%;
  height: 178px;
  overflow: visible;
  font-family: inherit;
}
.rank-history-gridline {
  stroke: #dfe9e2;
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.rank-history-tick {
  fill: #526b61;
  font-size: 10px;
}
.rank-history-area {
  fill: #e4f5eb;
  opacity: .85;
}
.rank-history-line {
  fill: none;
  stroke: #087f5b;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.rank-history-point {
  cursor: pointer;
  outline: none;
}
.rank-history-hit {
  fill: transparent;
}
.rank-history-dot {
  fill: #087f5b;
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.rank-history-ring {
  fill: #d5f2e2;
  stroke: transparent;
  stroke-width: 1.5;
  opacity: 0;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}
.rank-history-point[aria-pressed="true"] .rank-history-ring,
.rank-history-point:hover .rank-history-ring,
.rank-history-point:focus .rank-history-ring {
  opacity: 1;
}
.rank-history-point:focus-visible .rank-history-ring {
  stroke: #087f5b;
}
.rank-history-reading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 22px;
  padding-top: 6px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--pn-muted, #526b61);
}
.rank-history-reading strong {
  color: var(--pn-ink, #102b26);
  font-size: 14px;
}
.rank-history-reading-change {
  margin-left: auto;
  font-weight: 700;
  text-align: right;
}
#team-rank-history .up {
  color: #08734f;
}
#team-rank-history .down {
  color: #a83b37;
}
.rank-history-note {
  margin: 7px 0 11px;
  color: var(--pn-muted, #526b61);
  font-size: 10px;
  line-height: 1.6;
}
.rank-history-values {
  margin-top: 8px;
  border-top: 1px solid #e2ebe5;
}
.rank-history-values summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 4px 0 0;
  color: #126b48;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.rank-history-values summary::-webkit-details-marker {
  display: none;
}
.rank-history-values summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 500;
}
.rank-history-values[open] summary::after {
  content: "−";
}
.rank-history-values summary span {
  margin-left: auto;
  color: var(--pn-muted, #526b61);
  font-size: 10px;
  font-weight: 500;
}
.rank-history-values table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  table-layout: fixed;
  font-size: 11px;
  line-height: 1.5;
}
.rank-history-values th,
.rank-history-values td {
  padding: 8px 5px;
  text-align: left;
  border-bottom: 1px solid #e7eee9;
  overflow-wrap: anywhere;
}
.rank-history-values th {
  color: var(--pn-muted, #526b61);
  font-weight: 600;
}
.rank-history-values th:first-child {
  width: 48%;
  padding-left: 0;
}
.rank-history-values th:last-child,
.rank-history-values td:last-child {
  text-align: right;
  padding-right: 0;
}
.rank-history-values td {
  font-weight: 700;
}
.rank-history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 24px 10px;
  color: var(--pn-muted, #526b61);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}
.rank-history-empty svg {
  width: 64px;
  height: 42px;
  margin-bottom: 12px;
  fill: none;
  stroke: #80a995;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rank-history-empty p {
  margin: 0;
  max-width: 280px;
}
.rank-history-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 760px) {
  .pn-design .team-rating-summary .team-intel-row {
    min-height: 48px;
  }
}
@media (max-width: 380px) {
  .rank-history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .rank-history-kpi {
    margin-top: 12px;
  }
  .rank-history-reading-change {
    margin-left: 0;
  }
}

