.program-phase-timeline { min-width:0; }
.phase-timeline-note, .phase-timeline-legend, .phase-view-help { color:#52667b; font-size:.875rem; }
.phase-element-selection { margin:14px 0; padding:12px 14px; background:#f5f9ff; border:1px solid #d5e3f1; border-radius:6px; }
.phase-element-selection summary { color:#0a6ed1; font-weight:600; cursor:pointer; }
.phase-element-selection fieldset { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); gap:8px 20px; border:0; padding:10px 0 0; margin:0; }
.phase-element-selection legend { font-size:.875rem; padding-top:12px; }
.phase-element-selection label { display:flex; gap:9px; align-items:flex-start; font-weight:400; min-width:0; }
.phase-element-selection input { flex:none; width:16px; height:16px; margin:3px 0; }
.phase-element-selection small { display:block; color:#60758a; font-size:.75rem; }
.phase-timeline-scroll { max-width:100%; overflow:auto; border:1px solid #ccd5dd; border-radius:5px; margin-top:16px; }
.phase-timeline-grid { display:grid; grid-template-columns:220px minmax(var(--phase-axis-width),1fr); width:max(100%,calc(var(--phase-axis-width) + 220px)); color:#172b3a; background:#fff; }
.phase-row-label, .phase-release-label { position:sticky; left:0; z-index:2; background:#fff; padding:12px 14px; border-right:1px solid #ccd5dd; border-bottom:1px solid #e2e7ed; overflow-wrap:anywhere; display:flex; flex-direction:column; justify-content:center; }
.phase-row-label small, .phase-release-label small { display:block; font-size:.75rem; color:#617386; margin-top:4px; }
.phase-row-label a { font-weight:600; }
.phase-calendar-title { background:#f4f7fa; font-weight:600; }
.phase-calendar { position:relative; height:64px; border-bottom:1px solid #ccd5dd; background:#f4f7fa; }
.phase-calendar strong, .phase-calendar span { position:absolute; box-sizing:border-box; padding:5px 9px; border-left:1px solid #ccd5dd; overflow:hidden; white-space:nowrap; }
.phase-calendar strong { top:0; height:32px; }
.phase-calendar span { top:32px; height:32px; font-size:.8rem; border-top:1px solid #ccd5dd; }
.phase-release-label, .phase-release-band { background:#33823e; color:#fff; min-height:38px; border-bottom:1px solid #fff; }
.phase-release-label small { color:#e3f3e6; }
.phase-timeline-lane { position:relative; border-bottom:1px solid #e2e7ed; overflow:hidden; min-height:58px; }
.phase-month-line { position:absolute; top:0; bottom:0; border-left:1px dotted #d5dce3; pointer-events:none; }
.phase-milestone-rail { position:absolute; left:0; right:0; height:3px; background:#48a829; pointer-events:none; }
.phase-segment { position:absolute; display:block; height:38px; color:#172b3a; text-decoration:none; min-width:0; }
.phase-segment-label { position:absolute; top:0; left:0; max-width:280px; font-size:11px; line-height:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.phase-segment-shape { position:absolute; display:block; top:19px; width:100%; height:10px; min-width:3px; background:var(--segment-color); }
.phase-segment:hover .phase-segment-label, .phase-segment:focus .phase-segment-label { text-decoration:underline; color:#0a6ed1; }
.phase-segment:focus-visible { outline:2px solid #0a6ed1; outline-offset:3px; z-index:3; }
.phase-segment.is-milestone .phase-segment-shape { width:10px; min-width:10px; height:10px; background:#e31846; transform:translateX(-50%) rotate(45deg); }
.phase-milestone-date { position:absolute; top:31px; left:0; transform:translateX(-50%); font-size:10px; white-space:nowrap; background:#fff; }
.phase-drill { appearance:none; padding:0; border:0; background:none; color:#163c61; text-align:left; font:inherit; font-weight:600; cursor:pointer; }
.phase-drill:hover { color:#0a6ed1; text-decoration:underline; }
.phase-no-dates { display:block; margin:18px 12px; font-size:.8rem; color:#718096; }
.phase-legend-diamond { display:inline-block; width:8px; height:8px; background:#e31846; transform:rotate(45deg); margin:0 5px; }
@media (max-width:700px) {
  .phase-timeline-grid { grid-template-columns:160px minmax(var(--phase-axis-width),1fr); width:calc(var(--phase-axis-width) + 160px); }
  .phase-row-label, .phase-release-label { padding:10px; font-size:.8rem; }
}
