.pipeline { min-width:0; padding:clamp(14px,2vw,24px); container-type:inline-size; }
.pipeline h2, .pipeline h3, .pipeline dl, .pipeline dd { margin:0; }
.pipeline h2 { font-size:23px; }
.pipeline h3 { font-size:17px; margin:16px 0 8px; }
.pipeline__header { display:flex; justify-content:space-between; align-items:start; gap:12px; flex-wrap:wrap; }
.pipeline label { display:grid; gap:4px; font-size:14px; font-weight:600; }
.pipeline select, .pipeline input { min-width:0; min-height:44px; padding:6px 10px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); }
.pipeline__form { display:flex; gap:10px; align-items:end; flex-wrap:wrap; margin-top:12px; }
.pipeline__form .btn { min-height:44px; }
.pipeline__hint, .pipeline__error { font-size:14px; margin:6px 0; }
.pipeline__hint { color:var(--muted); }
.pipeline__error { color:var(--bad); }
.pipeline__error:empty { display:none; }
.pipeline__totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:8px 0; }
.pipeline__totals > div { padding:10px; border:1px solid var(--line); border-radius:var(--radius-sm); display:flex; flex-direction:column; justify-content:space-between; gap:4px; }
.pipeline__totals .pipeline__exception { background:var(--wait-bg); color:var(--wait); border-color:transparent; }
.pipeline dt, .pipeline small { font-size:14px; }
.pipeline small { display:block; color:var(--muted); }
.pipeline strong { font-variant-numeric:tabular-nums; }
.pipeline__totals strong { font-size:clamp(24px,2.5vw,32px); line-height:1.1; }
.pipeline__table { width:100%; border-collapse:collapse; font-size:14px; table-layout:auto; }
.pipeline__table td, .pipeline__table th { border-bottom:1px solid var(--line); text-align:left; vertical-align:top; padding:8px 5px; overflow-wrap:normal; }
.pipeline__table thead { background:var(--subtle); }
.pipeline__table th:first-child { width:88px; }
.pipeline__table th:last-child { width:160px; min-width:145px; }
.pipeline__table thead th { overflow-wrap:normal; word-break:normal; }
.pipeline__nowrap { white-space:nowrap; }
.pipeline__exclusions ul { margin:4px 0 8px; padding-inline-start:20px; }
.pipeline__compact > details > div:last-child { padding-bottom:8px; }
.pipeline__table tbody th { white-space:nowrap; }
.pipeline__table tbody th small { white-space:normal; font-weight:500; }
.pipeline__flag { background:var(--bad-bg); }
.pipeline__mismatch { color:var(--bad); font-weight:600; overflow-wrap:anywhere; }
.pipeline__mismatch ul { margin:4px 0 8px; padding-inline-start:18px; }
.pipeline summary { cursor:pointer; }
.pipeline :is(summary,select,input,button):focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.pipeline__compact { display:none; }
.pipeline__reasons { text-align:left; }
.pipeline__reasons ul { margin:6px 0; padding-inline-start:18px; font-size:14px; }
.pipeline__table .pipeline__reasons ul { max-width:10em; overflow-wrap:normal; }
@container (max-width:980px) {
  .pipeline__table { display:none; }
  .pipeline__compact { display:block; }
  .pipeline__compact > details { border-top:1px solid var(--line); padding:0 8px; }
  .pipeline__compact summary { min-height:44px; padding:10px 0; font-size:14px; font-weight:600; }
  .pipeline__compact dl { padding-bottom:8px; }
  .pipeline__compact dl > div { display:flex; justify-content:space-between; gap:8px; padding:3px 0; }
  .pipeline__compact dd { text-align:right; }
}
@container (max-width:510px) {
  .pipeline__totals { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pipeline__header > label { width:100%; }
}
