/* Release pipelines in the Deployments view. No inline styles anywhere: the CSP forbids them. A release row is a CI row (ci.css: .ci-row, .ci-head,
   .ci-lead, .ci-main, .ci-gwrap, the filter bar) with the pipeline graph and log viewer of pipeline-graph.css; this file only adds what a release has
   that a CI run has not: the outcome sentence, staging attempts, the live badge, the "production not connected" notice. */
#dep-releases{display:grid;gap:14px;min-width:0}
#dep-releases h2{margin:0}
.rp-lead{margin:-6px 0 0}
#rp-root{display:grid;gap:14px;min-width:0}
#rp-root>*,#rp-run-body>*{min-width:0;max-width:100%}
#rp-run{display:grid;gap:18px;margin-bottom:36px;min-width:0}
#rp-run-body{display:grid;gap:18px;min-width:0}
#rp-range{margin:0}
.state-none{color:#c9cdda;border-style:dashed;border-color:#4a4e60;background:#191b23}
.rp-live{margin-left:0}
.rp-row.rp-kind-released,.rp-kind-released.ci-run-head{border-left-color:#4d6a3a}
.rp-row.rp-kind-failed,.rp-row.rp-kind-rolled-back,.rp-kind-failed.ci-run-head,.rp-kind-rolled-back.ci-run-head{border-left-color:#a34a53}
.rp-row.rp-kind-refused,.rp-kind-refused.ci-run-head{border-left-color:#c9a15b}
.rp-row.rp-kind-running,.rp-row.rp-kind-ready,.rp-kind-running.ci-run-head,.rp-kind-ready.ci-run-head{border-left-color:#5f95d6}
.rp-row.rp-kind-waiting,.rp-kind-waiting.ci-run-head{border-left-color:#b08a45}
.rp-row.rp-kind-superseded,.rp-row.rp-kind-canceled,.rp-kind-superseded.ci-run-head,.rp-kind-canceled.ci-run-head{border-left-color:#4a4e60}
.rp-row.rp-kind-unconnected,.rp-kind-unconnected.ci-run-head{border-left-color:#6b6f80;border-left-style:dashed}
.rp-outcome{margin:0;line-height:1.45;overflow-wrap:anywhere}
.ci-run-head .rp-outcome{font-size:14px}
.rp-prod{margin:0;line-height:1.55}
.rp-head-part{display:grid;gap:18px;min-width:0}
/* a stage that is drawn because production is not connected, not because it ran */
.ci-node-wrap[data-state="unknown"] .ci-circle{border-style:dashed}
.ci-node-wrap[data-state="unknown"] .ci-node-label{font-style:italic}
.ci-sblock[data-state="unknown"] .ci-sh{border-style:dashed}
/* the facts of a stage, one card per stage on the release page */
.rp-stage-list{gap:12px}
.rp-stage{display:grid;gap:12px;padding:16px 20px;min-width:0}
.rp-stage .ci-ptop{align-items:center}
.ci-ptitle{font-size:15px}
.rp-host{border:1px solid #373a47;border-radius:5px;padding:0 7px;font-size:12px;color:#afb3c4;background:#191b23}
.rp-upstream{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;color:#afb3c4}
.rp-upstream .ci-icon{color:var(--c)}
.rp-attempts{display:grid;gap:8px}
.rp-attempts h4{margin:0;font-size:13px;color:#c9cdda}
.rp-attempt-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.rp-attempt{display:grid;grid-template-columns:96px minmax(0,1fr);gap:2px 14px;align-items:baseline;padding:8px 12px;background:#1b1e27;border:1px solid #30333d;border-left:3px solid var(--c);border-radius:8px}
.rp-attempt[aria-current="true"]{border-color:var(--b);border-left-color:var(--c);background:var(--bg)}
.rp-attempt-state{display:inline-flex;align-items:center;gap:6px;color:var(--c);font-size:13px;font-weight:600;grid-row:1 / span 3}
.rp-attempt-id{font-size:12px;color:#d7dae6;overflow-wrap:anywhere}
.rp-attempt-meta{min-width:0;overflow-wrap:anywhere}
.rp-attempt-why{font-size:13px;color:#c9cdda;overflow-wrap:anywhere;line-height:1.45}
.rp-facts{border:1px solid #282b35;border-radius:10px;background:#12151c;padding:12px 14px}
.rp-facts[hidden]{display:none}
.rp-facts-in{display:grid;gap:10px}
.rp-facts-in h4{margin:0;font-size:14px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.rp-facts-list{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin:0}
.rp-facts-in p{margin:0}
.app-live{margin:0}
@media(max-width:600px){
  #dep-releases{gap:12px}
  .rp-stage{padding:14px}
  .rp-attempt{grid-template-columns:minmax(0,1fr);padding:9px 12px}
  .rp-attempt-state{grid-row:auto}
  .rp-facts-list{grid-template-columns:1fr}
  .rp-outcome{font-size:12.5px}
}
/* the environment buttons: "Deploy to staging" and "Deploy to production" (schema 2) */
.rp-kind-built,.rp-kind-staged{--k:#5f95d6}
.rp-row.rp-kind-built,.rp-row.rp-kind-staged,.rp-kind-built.ci-run-head,.rp-kind-staged.ci-run-head{border-left-color:#5f95d6}
.rp-env{display:grid;gap:7px;padding:11px 12px;background:#1b1e27;border:1px solid #373a47;border-left:3px solid var(--k,#6b6f80);border-radius:10px;min-width:0}
.rp-env-ready{--k:#c3f27b;border-color:#414b34;background:#20261b}
.rp-env-blocked{--k:#6b6f80;border-style:dashed}
.rp-env-queued,.rp-env-running{--k:#7db7f5;border-color:#2f4a6b;background:#18222f}
.rp-env-passed{--k:#9fd67a}
.rp-env-failed{--k:#ef8b8b;border-color:#633a40;background:#2c2024}
.rp-env-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px}
.rp-env-title{font-size:14px}
.rp-env-chip{border:1px solid #373a47;border-radius:20px;padding:1px 9px;font-size:12px;white-space:nowrap;color:#c9cdda;background:#20232d}
.rp-env-chip-ready{color:#d0f5a0;border-color:#414b34;background:#272d22}
.rp-env-chip-blocked{color:#c9cdda;border-style:dashed;background:#191b23}
.rp-env-chip-queued,.rp-env-chip-running{color:#9cc7ff;border-color:#2f4a6b;background:#1b2838}
.rp-env-chip-passed{color:#badba1;border-color:#394d34;background:#253120}
.rp-env-chip-failed{color:#ef9b9b;border-color:#633a40;background:#39252a}
.rp-env p{margin:0;line-height:1.5}
.rp-env-facts{overflow-wrap:anywhere}
.rp-env-reason{font-size:13px;color:#d7dae6;overflow-wrap:anywhere}
.rp-env-warning{font-size:12.5px;color:#e3bf81;overflow-wrap:anywhere}
.rp-play{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;width:100%;padding:8px 12px;text-align:center}
.rp-play span:last-child{min-width:0;overflow-wrap:anywhere}
.rp-play-icon{flex:none}
.rp-play-blocked{background:#191b23;color:#9398ab;border-style:dashed;cursor:not-allowed}
.rp-play-blocked:hover{background:#191b23}
.rp-env-result{min-height:0;font-size:13px;overflow-wrap:anywhere}
.rp-env-result:empty{display:none}
.rp-env-ok{color:#badba1}
.rp-env-bad{color:#ef9b9b}
.ci-panel .rp-env{max-width:560px}
/* a press asks first, in the pattern of the release dialog (#dep-confirm) */
#rp-confirm{background:#191b23;color:#e8eaf0;border:1px solid #5a4931;border-radius:12px;padding:24px;max-width:min(520px,calc(100vw - 32px))}
#rp-confirm::backdrop{background:rgba(0,0,0,.65)}
#rp-confirm form{margin:0}#rp-confirm h2{margin-bottom:12px;overflow-wrap:anywhere}#rp-confirm p{line-height:1.7}#rp-confirm .actions button{margin:0}
.rp-confirm-reason{color:#e3bf81;font-size:13px}
/* the release page with buttons: the graph is a vertical list of stage cards on a phone, each button full width under its card */
@media(max-width:600px){
  .ci-graph-stack .ci-graph-in{width:auto;min-width:0}
  .ci-graph-stack .ci-edges{display:none}
  .ci-graph-stack .ci-cols{flex-direction:column;align-items:stretch;gap:12px}
  .ci-graph-stack.ci-graph-full .ci-cols{gap:12px;padding:0}
  .ci-graph-stack .ci-col{gap:12px}
  .ci-graph-stack .ci-sblock{width:auto}
  .ci-graph-stack{overflow-x:visible}
  .rp-play{min-height:48px}
  .rp-env-title{font-size:15px}
}
/* the New deployment form at the top of the page */
.rp-new{display:grid;gap:12px;min-width:0;margin-bottom:22px}
.rp-new h2,.rp-new .rp-lead{margin:0}
.rp-form{display:grid;gap:14px;margin:0;min-width:0}
.rp-form-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:12px 16px;min-width:0}
.rp-field,.rp-form-reason{display:grid;gap:6px;min-width:0}
.rp-field select{width:100%;min-width:0;min-height:44px}
.rp-form-reason input{min-height:44px}
.rp-env-pick{border:0;margin:0;padding:0;min-width:0;display:grid;gap:8px}
.rp-env-pick legend{padding:0;margin-bottom:8px}
.rp-radios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rp-radio{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid #373a47;border-radius:10px;background:#1b1e27;min-width:0;cursor:pointer}
.rp-radio input{width:auto;margin:3px 0 0;flex:none;min-height:0}
.rp-radio:has(input:checked){border-color:#414b34;background:#20261b}
.rp-radio:has(input:focus-visible){outline:2px solid #c3f27b;outline-offset:2px}
.rp-radio-off{border-style:dashed;background:#191b23;cursor:not-allowed}
.rp-radio-body{display:grid;gap:4px;min-width:0;line-height:1.45}
.rp-radio-body span{overflow-wrap:anywhere}
.rp-env-note{font-size:12.5px;color:#e3bf81}
.rp-form .actions{margin:0}
.rp-form-go{min-height:44px;min-width:140px}
.rp-started{margin-top:2px}
.linklike{background:none;border:0;padding:0;color:#b5db8b;text-decoration:underline;font-size:inherit}
.linklike:hover{background:none}
@media(max-width:600px){
  .rp-form-grid,.rp-radios{grid-template-columns:minmax(0,1fr)}
  .rp-form-go{width:100%;min-height:48px}
  .rp-radio{padding:14px}
}
