/* Stage Gates V1 */
.stage-gates-panel{
  margin:0 0 18px;
}
.stage-gates-title{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  margin:4px 0 12px;
}
.stage-gates-title h3{
  margin:2px 0 5px;
  font-size:18px;
}
.stage-gates-title p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.stage-gates-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.stage-gate-card{
  padding:16px;
  border:1px solid var(--border);
  border-radius:17px;
  background:rgba(255,253,248,.96);
  box-shadow:var(--shadow-soft);
}
.stage-gate-card.current{
  box-shadow:0 0 0 2px var(--accent-soft),var(--shadow-soft);
}
.stage-gate-card.passed{
  border-color:#acd7b9;
}
.stage-gate-card.evidence{
  border-color:#e8d39c;
}
.stage-gate-card.improve{
  border-color:#e6b5b5;
}
.stage-gate-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:12px;
}
.stage-gate-head h3{
  margin:7px 0 4px;
  font-size:16px;
}
.stage-gate-head p{
  margin:0;
  color:var(--muted);
  font-size:10px;
}
.stage-gate-status{
  display:inline-block;
  padding:4px 7px;
  border-radius:999px;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.stage-gate-status.passed{
  background:#e8f6ec;
  color:#21723b;
}
.stage-gate-status.evidence{
  background:#fff5d9;
  color:#8b6518;
}
.stage-gate-status.improve{
  background:#fdeaea;
  color:#a23a3a;
}
.stage-gate-score{
  min-width:74px;
  text-align:right;
}
.stage-gate-score strong,
.stage-gate-score span,
.stage-gate-score small{
  display:block;
}
.stage-gate-score strong{
  font-size:26px;
  line-height:1;
}
.stage-gate-score span{
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.stage-gate-score small{
  margin-top:5px;
  color:var(--muted);
  font-size:8px;
}
.stage-gate-dimensions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.stage-gate-dimension{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 8px;
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--panel-soft);
}
.stage-gate-dimension>div:first-child strong,
.stage-gate-dimension>div:first-child small{
  display:block;
}
.stage-gate-dimension>div:first-child strong{
  font-size:10px;
}
.stage-gate-dimension>div:first-child small{
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
}
.stage-gate-dimension>span{
  font-size:13px;
  font-weight:900;
}
.stage-gate-mini-track{
  grid-column:1/-1;
  height:4px;
  overflow:hidden;
  border-radius:999px;
  background:#e2ddd5;
}
.stage-gate-mini-track i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
}
.stage-gate-dimension.is-passed .stage-gate-mini-track i{
  background:#4d9b63;
}
.stage-gate-threshold{
  grid-column:1/-1;
  color:var(--muted);
  font-size:8px;
}
.stage-gate-blockers,
.stage-gate-actions,
.stage-gate-pass-note{
  margin-top:11px;
  padding-top:10px;
  border-top:1px solid var(--border);
  font-size:9px;
  line-height:1.45;
}
.stage-gate-blockers>strong,
.stage-gate-actions>strong{
  display:block;
  margin-bottom:5px;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.stage-gate-blockers ul{
  margin:0;
  padding-left:18px;
}
.stage-gate-blockers li+li{
  margin-top:3px;
}
.stage-gate-actions p{
  margin:4px 0 0;
  color:var(--muted);
}
.stage-gate-pass-note{
  color:#2c7440;
  font-weight:750;
}
.stage-gates-footnote{
  margin:9px 2px 0;
  color:var(--muted);
  font-size:8px;
}
@media(max-width:900px){
  .stage-gates-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .stage-gates-title{
    align-items:stretch;
    flex-direction:column;
  }
  .stage-gates-title button{
    align-self:flex-start;
  }
  .stage-gate-head{
    align-items:flex-start;
  }
  .stage-gate-dimensions{
    grid-template-columns:1fr;
  }
}
