.period-analytics-phase13 {
  --phase13-ink: #1f2e32;
  --phase13-muted: #66777a;
  --phase13-line: #d8e0de;
  --phase13-paper: #ffffff;
  --phase13-soft: #f5f7f5;
  --phase13-teal: #315e68;
  --phase13-a: #3b715b;
  --phase13-a-soft: #edf5f0;
  --phase13-b: #8a642f;
  --phase13-b-soft: #fbf3e5;
  --phase13-c: #8b5943;
  --phase13-c-soft: #f8eee8;
  --phase13-d: #914b45;
  --phase13-d-soft: #faefed;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--phase13-line);
  color: var(--phase13-ink);
}

.period-phase13-heading,
.period-phase13-toolbar,
.period-phase13-panel > header,
.period-phase13-source > header,
.period-phase13-horizon > header,
.period-phase13-horizon-heading,
.period-phase13-unlock {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.period-phase13-heading h3,
.period-phase13-panel h4,
.period-phase13-source h4,
.period-phase13-horizon h4,
.period-phase13-horizon-heading h4,
.period-phase13-unlock h4 {
  margin: 0;
  color: var(--phase13-ink);
}

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

.period-phase13-heading p {
  max-width: 860px;
  margin: 8px 0 0;
  color: var(--phase13-muted);
  line-height: 1.65;
}

.period-phase13-eyebrow,
.period-phase13-panel > header span,
.period-phase13-horizon-heading span,
.period-phase13-unlock > div > span {
  color: var(--phase13-teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.period-phase13-release {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #b9cdc4;
  border-radius: 999px;
  background: var(--phase13-a-soft);
  color: var(--phase13-a);
  font-size: 12px;
  font-weight: 800;
}

.period-phase13-release.blocked {
  border-color: #dfbbb6;
  background: var(--phase13-d-soft);
  color: var(--phase13-d);
}

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

.period-phase13-toolbar span {
  flex: 1 1 420px;
  color: var(--phase13-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.period-phase13-verdict {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid #b8cfc5;
  border-left: 4px solid var(--phase13-a);
  border-radius: 12px;
  background: var(--phase13-a-soft);
}

.period-phase13-verdict.blocked {
  border-color: #dec0ba;
  border-left-color: var(--phase13-d);
  background: var(--phase13-d-soft);
}

.period-phase13-verdict > span {
  color: var(--phase13-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

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

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

.period-phase13-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.period-phase13-source,
.period-phase13-panel,
.period-phase13-summary-grid article,
.period-phase13-backlog-grid article,
.period-phase13-horizon {
  min-width: 0;
  border: 1px solid var(--phase13-line);
  border-radius: 12px;
  background: var(--phase13-paper);
}

.period-phase13-source {
  padding: 16px;
  border-top: 3px solid var(--phase13-d);
}

.period-phase13-source.grade-a {
  border-top-color: var(--phase13-a);
  background: var(--phase13-a-soft);
}

.period-phase13-source.grade-b {
  border-top-color: var(--phase13-b);
  background: var(--phase13-b-soft);
}

.period-phase13-source.grade-c {
  border-top-color: var(--phase13-c);
  background: var(--phase13-c-soft);
}

.period-phase13-source.grade-d {
  border-top-color: var(--phase13-d);
  background: var(--phase13-d-soft);
}

.period-phase13-source header span,
.period-phase13-horizon header span {
  display: block;
  color: var(--phase13-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.period-phase13-source h4,
.period-phase13-horizon h4 {
  margin-top: 3px;
  font-size: 16px;
}

.period-phase13-source header b,
.period-phase13-horizon header b {
  color: var(--phase13-d);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.period-phase13-source.grade-a header b {
  color: var(--phase13-a);
}

.period-phase13-source.grade-b header b {
  color: var(--phase13-b);
}

.period-phase13-source.grade-c header b {
  color: var(--phase13-c);
}

.period-phase13-source-progress,
.period-phase13-horizon-progress {
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(87, 106, 105, 0.14);
}

.period-phase13-source-progress i,
.period-phase13-horizon-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--phase13-d);
}

.period-phase13-source.grade-a .period-phase13-source-progress i {
  background: var(--phase13-a);
}

.period-phase13-source.grade-b .period-phase13-source-progress i {
  background: var(--phase13-b);
}

.period-phase13-source.grade-c .period-phase13-source-progress i {
  background: var(--phase13-c);
}

.period-phase13-source dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.period-phase13-source dl div {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.period-phase13-source dt {
  color: var(--phase13-muted);
  font-size: 9px;
}

.period-phase13-source dd {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 800;
}

.period-phase13-source p {
  margin: 10px 0 0;
  color: var(--phase13-muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.period-phase13-summary-grid article {
  padding: 13px;
}

.period-phase13-summary-grid article.blocked {
  border-color: #e0c2bd;
  background: var(--phase13-d-soft);
}

.period-phase13-summary-grid span,
.period-phase13-backlog-grid span {
  display: block;
  color: var(--phase13-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.period-phase13-summary-grid strong,
.period-phase13-backlog-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.1;
}

.period-phase13-summary-grid small,
.period-phase13-backlog-grid small {
  display: block;
  margin-top: 5px;
  color: var(--phase13-muted);
  font-size: 9px;
  line-height: 1.45;
}

.period-phase13-panel {
  margin-top: 12px;
  padding: 18px;
}

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

.period-phase13-panel > header h4,
.period-phase13-horizon-heading h4,
.period-phase13-unlock h4 {
  margin-top: 3px;
  font-size: 17px;
}

.period-phase13-panel > header p,
.period-phase13-horizon-heading p {
  margin: 5px 0 0;
  color: var(--phase13-muted);
  font-size: 11px;
  line-height: 1.5;
}

.period-phase13-panel > header b {
  color: var(--phase13-teal);
  font-size: 11px;
  white-space: nowrap;
}

.period-phase13-chain {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.period-phase13-chain li {
  position: relative;
  min-width: 0;
  padding: 11px;
  border: 1px solid #c7d8d0;
  border-radius: 9px;
  background: var(--phase13-a-soft);
}

.period-phase13-chain li.blocked {
  border-color: #dfc1bc;
  background: var(--phase13-d-soft);
}

.period-phase13-step {
  color: var(--phase13-a);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.period-phase13-chain li.blocked .period-phase13-step {
  color: var(--phase13-d);
}

.period-phase13-chain strong,
.period-phase13-chain small,
.period-phase13-chain em,
.period-phase13-chain i {
  display: block;
}

.period-phase13-chain strong {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.period-phase13-chain small {
  min-height: 37px;
  margin-top: 4px;
  color: var(--phase13-muted);
  font-size: 8px;
  line-height: 1.45;
}

.period-phase13-chain em {
  margin-top: 10px;
  font-size: 22px;
  font-style: normal;
  font-weight: 850;
}

.period-phase13-chain i {
  margin-top: 3px;
  color: var(--phase13-muted);
  font-size: 8px;
  font-style: normal;
}

.period-phase13-backlog-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.period-phase13-backlog-grid article {
  padding: 12px;
}

.period-phase13-backlog-grid article.has-gap {
  border-color: #e1c6bc;
  background: #faf3ee;
}

.period-phase13-backlog-grid article.clear {
  background: var(--phase13-soft);
}

.period-phase13-table-wrap {
  overflow-x: auto;
  border: 1px solid #e5eae8;
  border-radius: 9px;
}

.period-phase13-table-wrap table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.period-phase13-table-wrap th,
.period-phase13-table-wrap td {
  padding: 10px 9px;
  border-bottom: 1px solid #e8eceb;
  text-align: left;
  vertical-align: top;
}

.period-phase13-table-wrap th {
  background: var(--phase13-soft);
  color: var(--phase13-muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.period-phase13-table-wrap td {
  font-size: 11px;
  line-height: 1.45;
}

.period-phase13-table-wrap td strong,
.period-phase13-table-wrap td small {
  display: block;
}

.period-phase13-table-wrap td small {
  max-width: 280px;
  margin-top: 3px;
  color: var(--phase13-muted);
  font-size: 8px;
  overflow-wrap: anywhere;
}

.period-phase13-resolution {
  display: inline-block;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--phase13-d-soft);
  color: var(--phase13-d);
  font-size: 9px;
  font-weight: 800;
}

.period-phase13-horizon-heading {
  align-items: flex-end;
  margin-top: 18px;
}

.period-phase13-horizon-heading p {
  max-width: 400px;
  text-align: right;
}

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

.period-phase13-horizon {
  padding: 16px;
}

.period-phase13-horizon header b {
  color: var(--phase13-b);
}

.period-phase13-horizon > p {
  margin: 10px 0 0;
  color: var(--phase13-muted);
  font-size: 10px;
  line-height: 1.5;
}

.period-phase13-horizon ul {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.period-phase13-horizon li {
  padding: 11px 0;
  border-top: 1px solid #e8ecea;
}

.period-phase13-horizon li > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.period-phase13-horizon li span {
  font-size: 11px;
  font-weight: 750;
}

.period-phase13-horizon li strong {
  color: var(--phase13-b);
  font-size: 9px;
  text-align: right;
}

.period-phase13-horizon-progress i {
  background: var(--phase13-b);
}

.period-phase13-horizon li small {
  display: block;
  margin-top: 5px;
  color: var(--phase13-muted);
  font-size: 9px;
}

.period-phase13-horizon footer {
  padding-top: 10px;
  border-top: 1px solid #e8ecea;
  color: var(--phase13-muted);
  font-size: 9px;
  line-height: 1.5;
}

.period-phase13-unlock {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #dfc1bb;
  border-left: 4px solid var(--phase13-d);
  border-radius: 12px;
  background: var(--phase13-d-soft);
}

.period-phase13-unlock > div {
  flex: 0 0 230px;
}

.period-phase13-unlock ol {
  flex: 1 1 420px;
  margin: 0;
  padding-left: 20px;
}

.period-phase13-unlock li {
  margin: 4px 0;
  color: var(--phase13-ink);
  font-size: 11px;
  line-height: 1.5;
}

.period-phase13-unlock > p {
  flex: 0 1 250px;
  margin: 0;
  color: var(--phase13-muted);
  font-size: 10px;
  line-height: 1.5;
}

.period-phase13-contract {
  margin: 10px 0 0;
  color: var(--phase13-muted);
  font-size: 10px;
  line-height: 1.6;
}

.period-phase13-empty {
  margin-top: 14px;
  padding: 28px 18px;
  border: 1px dashed #c8d2cf;
  border-radius: 12px;
  background: var(--phase13-soft);
  color: var(--phase13-muted);
  text-align: center;
}

.period-analytics-phase13 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  .period-phase13-chain {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .period-phase13-backlog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .period-phase13-source-grid,
  .period-phase13-horizon-grid {
    grid-template-columns: 1fr;
  }

  .period-phase13-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .period-phase13-horizon-grid {
    gap: 9px;
  }
}

@media (max-width: 760px) {
  .period-phase13-heading,
  .period-phase13-panel > header,
  .period-phase13-horizon-heading,
  .period-phase13-unlock {
    align-items: flex-start;
    flex-direction: column;
  }

  .period-phase13-release {
    align-self: flex-start;
  }

  .period-phase13-summary-grid,
  .period-phase13-backlog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .period-phase13-horizon-heading p {
    text-align: left;
  }

  .period-phase13-unlock > div,
  .period-phase13-unlock ol,
  .period-phase13-unlock > p {
    flex: 0 1 auto;
    width: auto;
  }
}

@media (max-width: 480px) {
  .period-analytics-phase13 {
    margin-top: 20px;
    padding-top: 20px;
  }

  .period-phase13-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .period-phase13-toolbar .secondary-button {
    width: 100%;
    white-space: normal;
  }

  .period-phase13-toolbar span {
    flex: 0 1 auto;
  }

  .period-phase13-source dl,
  .period-phase13-summary-grid,
  .period-phase13-chain,
  .period-phase13-backlog-grid {
    grid-template-columns: 1fr;
  }

  .period-phase13-chain small {
    min-height: 0;
  }

  .period-phase13-panel,
  .period-phase13-horizon,
  .period-phase13-unlock {
    padding: 14px;
  }
}
