.period-analytics-phase11 {
  --phase11-ink: #203337;
  --phase11-muted: #66787b;
  --phase11-line: #d9e1df;
  --phase11-panel: #f7f8f4;
  --phase11-teal: #315d68;
  --phase11-blue: #55759a;
  --phase11-gold: #9a7352;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--phase11-line);
  color: var(--phase11-ink);
}

.period-phase11-heading,
.period-phase11-toolbar,
.period-phase11-card > header,
.period-phase11-metric-grid article > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.period-phase11-heading h3,
.period-phase11-card h4 {
  margin: 0;
  color: var(--phase11-ink);
}

.period-phase11-heading h3 {
  margin-top: 4px;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.035em;
}

.period-phase11-heading p,
.period-phase11-card header span,
.period-phase11-chart-note,
.period-phase11-contract {
  color: var(--phase11-muted);
}

.period-phase11-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  line-height: 1.65;
}

.period-phase11-eyebrow {
  color: var(--phase11-teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.period-phase11-toolbar {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--phase11-line);
  border-radius: 12px;
  background: #fff;
}

.period-phase11-toolbar span {
  flex: 1 1 360px;
  min-width: 0;
  color: var(--phase11-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.period-phase11-insight {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid #bfd0ce;
  border-left: 4px solid var(--phase11-teal);
  border-radius: 12px;
  background: #eef4f1;
}

.period-phase11-insight > span,
.period-phase11-review-grid article > span {
  display: block;
  color: var(--phase11-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.period-phase11-insight > strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
}

.period-phase11-insight p {
  margin: 7px 0 0;
  color: var(--phase11-muted);
  line-height: 1.55;
}

.period-phase11-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.period-phase11-kpis article,
.period-phase11-card,
.period-phase11-metric-grid article,
.period-phase11-review-grid article {
  border: 1px solid var(--phase11-line);
  border-radius: 12px;
  background: #fff;
}

.period-phase11-kpis article {
  min-width: 0;
  padding: 14px;
}

.period-phase11-kpis article > span,
.period-phase11-kpis article > small {
  display: block;
  color: var(--phase11-muted);
  font-size: 11px;
}

.period-phase11-kpis article > strong {
  display: block;
  overflow: hidden;
  margin: 7px 0 5px;
  font-size: 21px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-phase11-kpis article.stable,
.period-phase11-metric-grid article.stable {
  border-color: #a9c9bb;
  background: #f1f7f3;
}

.period-phase11-kpis article.cautious,
.period-phase11-kpis article.exploratory,
.period-phase11-metric-grid article.cautious,
.period-phase11-metric-grid article.exploratory {
  border-color: #ddc6ae;
  background: #fbf6ef;
}

.period-phase11-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 12px;
  margin-top: 12px;
}

.period-phase11-card {
  min-width: 0;
  margin-top: 12px;
  padding: 18px;
}

.period-phase11-main-grid .period-phase11-card {
  margin-top: 0;
}

.period-phase11-card > header {
  align-items: center;
  margin-bottom: 14px;
}

.period-phase11-card > header h4 {
  font-size: 16px;
}

.period-phase11-card > header span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.period-phase11-card > header > b {
  color: var(--phase11-teal);
  font-size: 12px;
  white-space: nowrap;
}

.period-phase11-forecast-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 230px;
}

.period-phase11-forecast-chart text {
  fill: #758588;
  font-size: 10px;
}

.period-phase11-forecast-chart .axis {
  stroke: #9dacab;
}

.period-phase11-forecast-chart .grid {
  stroke: #e5eae8;
  stroke-dasharray: 4 5;
}

.period-phase11-forecast-chart polyline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.period-phase11-forecast-chart .actual {
  stroke: var(--phase11-teal);
  stroke-width: 3;
}

.period-phase11-forecast-chart .backtest {
  stroke: var(--phase11-gold);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.period-phase11-forecast-chart .backtest-dot {
  fill: #fff;
  stroke: var(--phase11-gold);
  stroke-width: 2;
}

.period-phase11-forecast-chart .future {
  stroke: var(--phase11-blue);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.period-phase11-forecast-chart .forecast-dot {
  fill: var(--phase11-blue);
  stroke: #fff;
  stroke-width: 2;
}

.period-phase11-forecast-chart .interval {
  fill: #9db5c9;
  opacity: 0.38;
}

.period-phase11-forecast-chart .future-label {
  fill: var(--phase11-blue);
  font-weight: 800;
}

.period-phase11-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 5px;
  color: var(--phase11-muted);
  font-size: 11px;
}

.period-phase11-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.period-phase11-chart-legend i {
  display: inline-block;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--phase11-teal);
}

.period-phase11-chart-legend i.backtest {
  background: var(--phase11-gold);
}

.period-phase11-chart-legend i.interval {
  height: 9px;
  background: #9db5c9;
  opacity: 0.65;
}

.period-phase11-chart-note,
.period-phase11-contract {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
}

.period-phase11-table-wrap {
  overflow-x: auto;
}

.period-phase11-table-wrap table {
  min-width: 760px;
}

.period-phase11-table-wrap td small {
  display: block;
  margin-top: 3px;
  color: var(--phase11-muted);
  font-size: 10px;
}

.period-phase11-table-wrap tr.selected td {
  background: #eef4f1;
}

.period-phase11-model-tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--phase11-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.period-phase11-quality-tag {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--phase11-teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.period-phase11-metric-grid article.cautious .period-phase11-quality-tag,
.period-phase11-metric-grid article.exploratory .period-phase11-quality-tag {
  background: #f2e5d8;
  color: #8b5f3e;
}

.period-phase11-metric-grid,
.period-phase11-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.period-phase11-metric-grid article,
.period-phase11-review-grid article {
  min-width: 0;
  padding: 16px;
}

.period-phase11-metric-grid article > header {
  align-items: center;
}

.period-phase11-metric-grid article > header span {
  color: var(--phase11-muted);
  font-size: 12px;
}

.period-phase11-metric-grid article > header b {
  color: var(--phase11-teal);
  font-size: 11px;
}

.period-phase11-metric-grid article > strong,
.period-phase11-review-grid article > strong {
  display: block;
  margin-top: 9px;
  font-size: 23px;
  line-height: 1.15;
}

.period-phase11-metric-grid article > small,
.period-phase11-review-grid article > small {
  display: block;
  margin-top: 5px;
  color: var(--phase11-muted);
  font-size: 11px;
}

.period-phase11-metric-grid dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 13px 0 0;
}

.period-phase11-metric-grid dl div {
  padding-top: 7px;
  border-top: 1px solid #e7ecea;
}

.period-phase11-metric-grid dt {
  color: var(--phase11-muted);
  font-size: 10px;
}

.period-phase11-metric-grid dd {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 750;
}

.period-phase11-metric-grid article p,
.period-phase11-review-grid article p {
  margin: 11px 0 0;
  color: var(--phase11-muted);
  font-size: 11px;
  line-height: 1.55;
}

.period-phase11-review-grid article.aligned {
  border-color: #a9c9bb;
}

.period-phase11-review-grid article.divergent {
  border-color: #d7af9d;
}

.period-phase11-state {
  margin-top: 14px;
  padding: 30px 20px;
  border: 1px dashed #b9c8c5;
  border-radius: 12px;
  background: var(--phase11-panel);
  color: var(--phase11-muted);
  text-align: center;
}

.period-phase11-state strong {
  display: block;
  color: var(--phase11-ink);
  font-size: 16px;
}

.period-phase11-state p {
  max-width: 720px;
  margin: 7px auto 0;
  line-height: 1.6;
}

.period-phase11-state.compact {
  margin-top: 0;
  padding: 22px 14px;
}

.period-phase11-state.error {
  border-color: #d7af9d;
  background: #fbf4ef;
}

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

  .period-phase11-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .period-analytics-phase11 {
    margin-top: 18px;
    padding-top: 18px;
  }

  .period-phase11-heading,
  .period-phase11-card > header {
    flex-direction: column;
  }

  .period-phase11-kpis,
  .period-phase11-metric-grid,
  .period-phase11-review-grid {
    grid-template-columns: 1fr;
  }

  .period-phase11-toolbar {
    align-items: stretch;
  }

  .period-phase11-toolbar button {
    flex: 1 1 132px;
  }

  .period-phase11-card {
    padding: 14px;
  }

  .period-phase11-forecast-chart {
    min-height: 0;
  }

  .period-phase11-metric-grid article > strong,
  .period-phase11-review-grid article > strong {
    font-size: 21px;
  }
}
