.cw-stage-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--enterprise-text-muted);
}
.cw-stage-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--enterprise-primary);
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cw-stage-link[aria-current="page"] {
  color: var(--enterprise-primary-hover);
  background: var(--enterprise-primary-soft);
  border-color: var(--enterprise-primary-border);
}
.cw-stage-link:focus-visible,
.cw-stage-table:focus-visible {
  outline: 2px solid var(--enterprise-primary);
  outline-offset: 2px;
}
.cw-stage-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.cw-stage-panel { container-type: inline-size; }
.cw-stage-table {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.cw-stage-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.cw-stage-table td,
.cw-stage-table th {
  text-align: start;
  padding: 11px 14px;
  border-bottom: 1px solid var(--enterprise-border);
  vertical-align: middle;
}
.cw-stage-table thead th {
  background: var(--enterprise-surface-subtle);
  color: var(--enterprise-text-muted);
  white-space: nowrap;
}
.cw-stage-table small {
  display: block;
  font-weight: 400;
  color: var(--enterprise-text-muted);
  margin-top: 3px;
}
.cw-stage-table tbody tr:hover { background: var(--enterprise-surface-subtle); }
.cw-stage-table .cw-overbudget { color: var(--enterprise-danger, #a02d43); }
.cw-stage-table .cw-text-button { min-height: 40px; }
.cw-stage-archive { min-width: 0; }
.cw-stage-archive .table-wrap { max-width: 100%; overflow: auto; }
@container (max-width: 690px) {
  .cw-stage-table table { min-width: 0; }
  .cw-stage-table thead {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .cw-stage-table table,
  .cw-stage-table tbody,
  .cw-stage-table tr,
  .cw-stage-table td,
  .cw-stage-table th { display: block; }
  .cw-stage-table tbody tr { padding: 8px 14px; border-block-end: 1px solid var(--enterprise-border); }
  .cw-stage-table td, .cw-stage-table tbody th { border: 0; padding: 4px 0; overflow-wrap: anywhere; }
  .cw-stage-table td { display: grid; grid-template-columns: minmax(7em, 38%) minmax(0, 1fr); }
  .cw-stage-table td::before { content: attr(data-label); color: var(--enterprise-text-muted); }
  .cw-stage-table td > * { grid-column: 2; margin: 0; }
  .cw-stage-table td button { justify-self: start; }
}
