.release-history, .release-detail { min-width: 0; }
.release-filters, .release-pages, .release-summary-top, .release-heading, .release-back,
.release-row-state, .release-row-end, .release-reader, .release-estimate, .release-preflight {
  display: flex;
}
.release-filters { gap: 6px; flex-wrap: wrap; margin: 20px 0; }
.release-filters a { display: inline-flex; gap: 9px; align-items: center; padding: 9px 14px; min-height: 42px; border: 1px solid var(--line); border-radius: 22px; color: var(--muted); font-size: 14px; }
.release-filters a:hover, .release-filters a:focus-visible { color: var(--ink); background: #171d24; }
.release-filters a[aria-current] { color: #141a22; background: #d3deeb; border-color: #d3deeb; }
.release-filters a span { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .8; }
.release-list { border-block: 1px solid var(--line); }
.release-row { display: grid; grid-template-columns: 44px minmax(0,1fr) minmax(94px,auto) minmax(118px,auto); gap: 14px 20px; padding: 20px 3px; align-items: center; }
.release-row+.release-row { border-top: 1px solid var(--line); }
.release-row-icon { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: #171c23; border-radius: 50%; color: #c5d3e2; }
.release-row-main { display: grid; min-width: 0; justify-items: start; gap: 4px; }
.release-row-main small, .release-row-state small, .release-subtitle { color: var(--muted); font-size: 13px; line-height: 1.45; }
.release-row-main i { font-style: normal; margin-inline: 3px; }
.release-title { font-size: clamp(17px,1.35vw,22px); line-height: 1.32; text-wrap: pretty; }
.release-title:hover, .release-reader:hover, .release-summary a:hover { text-decoration: underline; text-underline-offset: 3px; }
.release-row-state { align-items: flex-start; flex-direction: column; gap: 5px; }
.release-reader, .release-back { align-items: center; gap: 4px; min-height: 32px; width: fit-content; color: var(--accent); font-size: 14px; }
.release-row-end { align-items: center; justify-content: flex-end; gap: 12px; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.release-row-action { display: grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.release-row-action:hover { background: #222b35; }
.release-pages { gap: 15px; justify-content: flex-end; align-items: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.release-back { margin-bottom: 16px; min-height: 40px; color: var(--muted); }
.release-heading { align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.release-heading>div { min-width: 0; }
.release-heading>div>p { font-size: 14px; color: var(--steel); margin-bottom: 10px; }
.release-heading h1 { font-size: clamp(34px,3.8vw,60px); line-height: 1.03; text-wrap: balance; overflow-wrap: anywhere; }
.release-heading>.btn { flex-shrink: 0; }
.release-summary { display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,auto); gap: 22px 35px; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px,2.1vw,30px); background: #11151a; }
.release-summary-top { grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px; }
.release-summary-top a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; min-height: 34px; }
.release-progress { display: grid; align-content: center; gap: 9px; }
.release-progress strong { font-size: clamp(18px,1.5vw,25px); font-weight: 450; }
.release-progress progress { display: block; width: 100%; max-width: 510px; height: 4px; border: 0; border-radius: 4px; overflow: hidden; background: #303844; accent-color: #9dc5ab; }
.release-progress progress::-webkit-progress-bar { background: #303844; }
.release-progress progress::-webkit-progress-value { background: #9dc5ab; }
.release-progress small, .release-metrics dt { font-size: 13px; color: var(--muted); }
.release-metrics { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.release-metrics dd { margin: 4px 0 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.release-metrics a { text-decoration: underline; text-underline-offset: 3px; }
.release-next { display: flex; gap: 15px; padding: 20px; margin-top: 12px; border: 1px solid #6c5740; border-radius: var(--radius); background: #211d18; }
.release-next .release-row-icon { flex: none; background: #332c22; color: #ebc991; }
.release-next h3 { font-size: 21px; line-height: 1.25; }
.release-next p { color: #d4cbbe; margin: 7px 0 12px; overflow-wrap: anywhere; }
.release-next .btn { min-height: 42px; }
.release-stages { margin-top: 28px; }
.release-stages h2 { font-size: clamp(26px,2.25vw,38px); margin-bottom: 14px; }
.release-stages .phase-timeline { gap: 8px; }
.release-phase { background: #101318; border: 1px solid var(--line); border-radius: 12px; }
.release-phase>summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 13px 20px; cursor: pointer; list-style: none; }
.release-phase>summary::-webkit-details-marker { display:none; }
.release-phase>summary b { font-size: 17px; font-weight: 450; }
.release-phase>summary span { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.release-phase[open]>summary>.icon { transform: rotate(180deg); }
.release-phase .timeline { margin: 0 18px 4px; padding: 0; }
.release-phase .timeline>details:first-child { border-top: 1px solid var(--line); }
.release-phase .step-detail { max-width: 850px; }
.release-connection { padding: .8em; margin-bottom: 10px; color: #ebc991; border: 1px solid var(--line); }
.release-preflight, .release-estimate { flex-direction: column; align-items: flex-start; gap: 6px; border-left: 2px solid #9aacc2; padding: 3px 0 3px 14px; }
.release-preflight span, .release-estimate p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.release-estimate { background: #171e26; border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.release-preflight strong, .release-estimate strong { font-weight: 500; }
.graph-layout .graph-top .btn, .graph-layout .flow-controls button, .graph-layout .zoom button { min-height: 36px; font-size: 13px !important; }
.graph-layout .zoom button { min-width: 38px; }
.graph-layout .inspector .btn.small, .graph-layout .inspect-links .inline-btn { min-height: 38px; font-size: 13px; }
.graph-layout .inspect-file { min-height: 46px; }
.graph-layout .inspect-file b, .graph-layout .inspect-variable summary { font-size: 14px; }
.prompt-phase { margin-block: 12px 23px; }
.prompt-phase h3 { font-size: 20px; margin-bottom: 3px; }
@media(max-width:850px) {
  .release-row { grid-template-columns: minmax(0,1fr) minmax(76px,auto) minmax(65px,auto); gap: 12px; }
  .release-row>.release-row-icon, .release-row-action { display: none; }
  .release-heading { flex-wrap: wrap; }
  .release-summary { gap: 14px 20px; }
}
@media(max-width:620px) {
  .release-row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; padding: 16px 0; }
  .release-row-main { grid-column: 1 / -1; }
  .release-row-state { flex-direction: row; align-items: center; gap: 10px; }
  .release-filters { gap: 5px; margin: 12px 0; }
  .release-filters a { padding: 7px 10px; font-size: 13px; }
  .release-summary { grid-template-columns: 1fr; gap: 14px; }
  .release-next { gap: 10px; padding: 14px; }
  .release-next>.release-row-icon { display: none; }
  .release-phase>summary { padding: 12px 13px; }
  .release-phase .timeline { margin-inline: 11px; }
  .release-phase .timeline .step-detail { padding-left: 0; }
}
