/* Projection — mode calibration quand l'historique est trop court. */
.pp-page.is-calibrating .pp-overview.is-calibration {
  border-color: rgba(103, 184, 255, 0.34) !important;
  background:
    radial-gradient(420px 190px at 0% 100%, rgba(103, 184, 255, 0.13), transparent 74%),
    radial-gradient(420px 180px at 100% 0%, rgba(255, 196, 71, 0.07), transparent 74%),
    linear-gradient(145deg, rgba(7, 19, 47, 0.98), rgba(12, 35, 76, 0.94)) !important;
}

.pp-page.is-calibrating .pp-overview.is-calibration::before {
  background: linear-gradient(90deg, #67b8ff, rgba(103, 184, 255, 0.42) 58%, #ffc447) !important;
}

.pp-page.is-calibrating .pp-overview-score {
  border-color: rgba(103, 184, 255, 0.28) !important;
  background: rgba(103, 184, 255, 0.08) !important;
}

.pp-page.is-calibrating .pp-overview-score strong {
  color: #9fd2ff !important;
  font-size: 20px !important;
  letter-spacing: 0.04em;
}

.pp-page.is-calibrating .pp-overview-score small {
  color: rgba(159, 210, 255, 0.72) !important;
}

.pp-page.is-calibrating .pp-metric:first-child,
.pp-page.is-calibrating .pp-metric:nth-child(2),
.pp-page.is-calibrating .pp-metric:nth-child(4) {
  border-color: rgba(103, 184, 255, 0.18) !important;
  background: rgba(103, 184, 255, 0.055) !important;
}

.pp-page.is-calibrating .pp-metric:first-child > strong,
.pp-page.is-calibrating .pp-metric:nth-child(2) > strong,
.pp-page.is-calibrating .pp-metric:nth-child(4) > strong {
  color: #a9d7ff !important;
}

.pp-calibration-banner {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  padding: 8px 10px;
  border: 1px solid rgba(103, 184, 255, 0.21);
  border-radius: 12px;
  background:
    radial-gradient(180px 90px at 100% 0%, rgba(103, 184, 255, 0.11), transparent 72%),
    linear-gradient(145deg, rgba(103, 184, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pp-calibration-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 184, 255, 0.24);
  border-radius: 10px;
  color: #a9d7ff;
  background: rgba(103, 184, 255, 0.08);
  font-size: 18px;
  font-weight: 950;
}

.pp-calibration-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.pp-calibration-copy > span {
  color: rgba(169, 215, 255, 0.62);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-calibration-copy > strong {
  color: #fff;
  font-size: 10.5px;
  font-weight: 930;
  line-height: 1.2;
}

.pp-calibration-copy > small {
  color: rgba(255, 255, 255, 0.47);
  font-size: 7.8px;
  font-weight: 650;
  line-height: 1.35;
}

.pp-calibration-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.pp-calibration-progress > div {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(103, 184, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.pp-calibration-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #67b8ff, #42d889);
  box-shadow: 0 0 12px rgba(103, 184, 255, 0.28);
}

.pp-calibration-progress b {
  color: #a9d7ff;
  font-size: 10px;
  font-weight: 950;
}

.pp-page.is-calibrating .pp-reading-card.is-watch,
.pp-page.is-calibrating .pp-reading-card.is-neutral {
  border-color: rgba(103, 184, 255, 0.19);
  background: linear-gradient(145deg, rgba(103, 184, 255, 0.075), rgba(103, 184, 255, 0.02));
}

.pp-page.is-calibrating .pp-reading-card.is-watch::before,
.pp-page.is-calibrating .pp-reading-card.is-neutral::before {
  background: #67b8ff;
}

.pp-page.is-calibrating .pp-reading-card.is-watch > strong,
.pp-page.is-calibrating .pp-reading-card.is-neutral > strong {
  color: #b9ddff;
}

.pp-page.is-calibrating .is-calibration-note {
  border-color: rgba(103, 184, 255, 0.19) !important;
  background: rgba(103, 184, 255, 0.055) !important;
}

.pp-page.is-calibrating .is-calibration-note > span,
.pp-page.is-calibrating .is-calibration-note i {
  color: #9fd2ff !important;
}

.pp-history-unknown rect {
  fill: rgba(3, 12, 33, 0.88);
  stroke: rgba(103, 184, 255, 0.14);
  stroke-width: 1;
}

.pp-history-unknown line {
  stroke: rgba(103, 184, 255, 0.7);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.pp-history-unknown text {
  fill: rgba(255, 255, 255, 0.78);
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 900;
}

.pp-history-unknown text.is-detail {
  fill: rgba(255, 255, 255, 0.42);
  font-size: 7.5px;
  font-weight: 700;
}

.pp-history-unknown text.is-start {
  fill: #9fd2ff;
  font-size: 7.5px;
  font-weight: 850;
}

.pp-page.is-calibrating .pp-threshold-caption > text {
  fill: rgba(169, 215, 255, 0.8) !important;
}

.pp-day-coach-read.is-neutral {
  border-color: rgba(103, 184, 255, 0.2);
  background: rgba(103, 184, 255, 0.055);
}

.pp-day-coach-read.is-neutral > strong {
  color: #b9ddff;
}

@media (max-width: 900px) {
  .pp-calibration-banner {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .pp-calibration-progress {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .pp-calibration-banner {
    padding: 8px;
  }

  .pp-calibration-copy > strong {
    font-size: 10px;
  }

  .pp-calibration-copy > small {
    font-size: 7.5px;
  }
}
