.delivery-page { display: grid; min-width: 0; gap: 12px; }
.delivery-page > * { min-width: 0; }
.delivery-page [hidden] { display: none; }
.delivery-view-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.delivery-view-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm); color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 750; }
.delivery-view-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.delivery-view-nav a[aria-current="page"] { color: var(--brand-contrast); background: var(--brand-soft); }
.delivery-view-nav a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 2px 2px 4px; }
.delivery-page-actions p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; }
.delivery-page-actions .button { flex: 0 0 auto; min-height: 40px; padding-inline: 14px; box-shadow: none; }
.delivery-page-action-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

.delivery-readiness { overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.delivery-readiness-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.delivery-readiness-head h2 { margin-top: 5px; }
.delivery-freshness { color: var(--muted); font-size: 11px; text-align: right; }
.delivery-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 22px 0 0; list-style: none; }
.delivery-pipeline-step { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; min-width: 0; }
.delivery-pipeline-step:not(:last-child)::after { position: absolute; top: 7px; right: 6px; left: 16px; height: 2px; background: var(--line); content: ""; }
.delivery-pipeline-dot { position: relative; z-index: 1; display: block; width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.delivery-pipeline-step[data-state="ready"] .delivery-pipeline-dot { background: var(--success); }
.delivery-pipeline-step[data-state="partial"] .delivery-pipeline-dot { background: var(--warning); }
.delivery-pipeline-step div { position: relative; z-index: 1; min-width: 0; padding-right: 10px; background: var(--surface); }
.delivery-pipeline-step span:not(.delivery-pipeline-dot), .delivery-pipeline-step strong, .delivery-pipeline-step small { display: block; }
.delivery-pipeline-step span:not(.delivery-pipeline-dot) { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.delivery-pipeline-step strong { margin-top: 3px; font-size: 20px; letter-spacing: -.035em; }
.delivery-pipeline-step small { overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.delivery-warning { padding: 13px 15px; margin-top: 18px; border-left: 3px solid var(--warning); border-radius: 3px 12px 12px 3px; color: var(--warning); background: var(--warning-soft); font-size: 12px; }
.delivery-warning strong { display: block; }
.delivery-warning ul { padding-left: 18px; margin: 5px 0 0; }

.delivery-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.delivery-kpis article { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.delivery-kpis span, .delivery-kpis strong, .delivery-kpis small { display: block; }
.delivery-kpis span { color: var(--muted); font-size: 11px; font-weight: 700; }
.delivery-kpis strong { margin-top: 6px; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.delivery-kpis small { margin-top: 8px; color: var(--muted); font-size: 10px; }

.delivery-trend, .delivery-systems { min-width: 0; margin: 0; }
.delivery-systems { overflow: hidden; }
.delivery-ps-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.delivery-ps-filters label { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.delivery-ps-filters select, .delivery-ps-filters input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font: inherit; }
.delivery-ps-filters select:focus-visible, .delivery-ps-filters input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-trend .section-head, .delivery-systems .section-head { margin-top: 0; }
.delivery-legend { display: flex; justify-content: flex-end; gap: 12px; color: var(--muted); font-size: 10px; }
.delivery-legend span { display: inline-flex; align-items: center; gap: 5px; }
.delivery-legend i { width: 9px; height: 9px; border-radius: 3px 3px 1px 1px; background: var(--brand); }
.delivery-legend i.systems { background: var(--success); }
.delivery-bars { display: grid; grid-template-columns: repeat(12, minmax(28px, 1fr)); gap: 7px; width: 100%; max-width: 100%; height: 178px; padding: 14px 0 0; margin: 0; border-bottom: 1px solid var(--line); list-style: none; }
.delivery-bars li { display: grid; grid-template-rows: 1fr auto auto; gap: 3px; min-width: 0; text-align: center; }
.delivery-bar-pair { display: flex; align-items: end; justify-content: center; gap: 2px; min-height: 100px; }
.delivery-bar-pair i { width: min(12px, 42%); min-height: 3px; height: calc(var(--bar) * 100%); border-radius: 4px 4px 1px 1px; background: var(--brand); }
.delivery-bar-pair i.systems { background: var(--success); }
.delivery-bars span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.delivery-bars small { color: var(--text-soft); font-size: 9px; font-variant-numeric: tabular-nums; }

.delivery-table-frame { overflow: auto; margin: 0 -17px; border-block: 1px solid var(--line); }
.delivery-table-frame:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.delivery-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 12px; }
.delivery-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.delivery-table th, .delivery-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.delivery-table thead th { color: var(--muted); background: var(--surface-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.delivery-table tbody tr:last-child th, .delivery-table tbody tr:last-child td { border-bottom: 0; }
.delivery-table tbody th strong, .delivery-table tbody th code, .delivery-table td small { display: block; }
.delivery-table tbody th code { margin-top: 3px; color: var(--muted); font: inherit; font-size: 10px; }
.delivery-table td small { color: var(--muted); font-size: 9px; }
.delivery-flow { display: inline-block; padding: 3px 7px; margin: 2px 2px 2px 0; border-radius: 999px; color: var(--brand-contrast); background: var(--brand-soft); font-size: 9px; font-weight: 750; }
.delivery-status, .delivery-confidence { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 800; white-space: nowrap; }
.delivery-status[data-status="released"], .delivery-confidence[data-confidence="confirmed"] { color: var(--success); background: var(--success-soft); }
.delivery-status[data-status="paused"], .delivery-status[data-status="disabled"], .delivery-status[data-status="retired"] { color: var(--danger); background: var(--danger-soft); }
.delivery-status[data-status="analysis"], .delivery-status[data-status="development"], .delivery-status[data-status="testing"] { color: var(--brand-contrast); background: var(--brand-soft); }
.delivery-status[data-status="needs_review"], .delivery-confidence:not([data-confidence="confirmed"]) { color: var(--warning); background: var(--warning-soft); }
.delivery-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; }
.delivery-pagination span { color: var(--muted); font-size: 11px; }
.delivery-pagination .button { min-height: 38px; padding-inline: 13px; box-shadow: none; }
.delivery-empty { min-height: 180px; }

.delivery-candidates, .delivery-mapping { min-width: 0; margin: 0; }
.delivery-candidates .section-head, .delivery-mapping .section-head { align-items: center; margin-top: 0; }
.delivery-count, .delivery-mapping-state { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 28px; padding: 4px 9px; border-radius: 999px; color: var(--brand-contrast); background: var(--brand-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.delivery-mapping-state[data-state="ready"] { color: var(--success); background: var(--success-soft); }
.delivery-mapping-state[data-state="stale"], .delivery-mapping-state[data-state="incomplete"] { color: var(--warning); background: var(--warning-soft); }
.delivery-permission-note { padding: 11px 13px; border-left: 3px solid var(--brand); border-radius: 3px 10px 10px 3px; color: var(--muted); background: var(--brand-soft); font-size: 12px; }
.delivery-candidate-list { display: grid; gap: 10px; }
.delivery-candidate-search { display: grid; gap: 6px; max-width: 420px; margin: 0 0 14px; font-size: 11px; font-weight: 750; }
.delivery-candidate-search input { width: 100%; min-height: 40px; padding: 8px 42px 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font: inherit; font-size: 12px; }
.delivery-candidate-search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-candidate { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.delivery-candidate-main { display: flex; align-items: start; gap: 12px; }
.delivery-candidate-main > div { min-width: 0; }
.delivery-candidate h3 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.delivery-candidate p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.delivery-candidate dl { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 14px 0; }
.delivery-candidate dl div { min-width: 90px; }
.delivery-candidate dt { color: var(--muted); font-size: 10px; }
.delivery-candidate dd { margin: 3px 0 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.delivery-candidate .delivery-match { margin-bottom: 12px; color: var(--brand); font-weight: 700; }
.delivery-row-action { min-height: 34px; padding: 6px 10px; box-shadow: none; }
.delivery-edit-row td { background: var(--surface-soft); }
.delivery-editor { display: grid; gap: 12px; padding: 16px; margin-top: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.delivery-registry-form { margin: 0; }
.delivery-form-grid, .delivery-new-system-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.delivery-new-system-fields { grid-column: 1 / -1; }
.delivery-editor label, .delivery-project-select, .delivery-mapping-row > label { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 11px; font-weight: 750; }
.delivery-editor .delivery-confirm-checkbox { display: flex; align-items: start; gap: 8px; font-weight: 600; }
.delivery-editor .delivery-confirm-checkbox input { width: 18px; min-height: 18px; margin: 0; accent-color: var(--brand); }
.delivery-editor input, .delivery-editor select, .delivery-project-select select, .delivery-mapping-row select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font: inherit; font-size: 12px; }
.delivery-editor input:focus-visible, .delivery-editor select:focus-visible, .delivery-project-select select:focus-visible, .delivery-mapping-row select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-editor input[aria-invalid="true"], .delivery-mapping-row select[aria-invalid="true"] { border-color: var(--danger); }
.delivery-form-hint { margin: 0; color: var(--muted); font-size: 11px; }
.delivery-form-alert { min-height: 0; color: var(--danger); font-size: 12px; }
.delivery-form-alert:empty { display: none; }
.delivery-field-error { display: block; min-height: 0; color: var(--danger); font-size: 10px; font-weight: 600; }
.delivery-field-error:empty { display: none; }
.delivery-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.delivery-form-actions .button, .delivery-candidate > .button { min-height: 40px; padding-inline: 14px; box-shadow: none; }
.delivery-flow-editor { display: grid; gap: 10px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.delivery-flow-editor legend { padding-inline: 5px; font-size: 11px; font-weight: 750; }
.delivery-flow-editor label span { overflow-wrap: anywhere; }
.delivery-project-select { max-width: 500px; margin: 14px 0; }
.delivery-mapping-list { display: grid; gap: 10px; padding: 0; margin: 14px 0; list-style: none; }
.delivery-mapping-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(150px, .8fr) minmax(210px, 1.2fr); align-items: center; gap: 14px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.delivery-order-controls { display: flex; align-items: center; gap: 4px; }
.delivery-order-controls .button { min-width: 36px; min-height: 36px; padding: 4px; box-shadow: none; }
.delivery-order-controls span { width: 20px; text-align: center; font-size: 11px; font-weight: 800; }
.delivery-section-name { display: grid; gap: 3px; min-width: 0; }
.delivery-section-name strong { font-size: 12px; overflow-wrap: anywhere; }
.delivery-section-name code { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.delivery-mapping-row fieldset { display: flex; flex-wrap: wrap; gap: 5px 11px; min-width: 0; padding: 0; margin: 0; border: 0; }
.delivery-mapping-row legend { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.delivery-mapping-row fieldset label { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.delivery-mapping-row fieldset input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--brand); }
.delivery-page button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-page button:disabled { cursor: not-allowed; }
.delivery-discard-dialog { max-width: 440px; }
.delivery-discard-dialog h2 { margin: 0 0 10px; font-size: 18px; }
.delivery-discard-dialog p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.delivery-flow-panel { min-width: 0; margin: 0; }
.delivery-flow-panel .section-head { align-items: center; margin-top: 0; }
.delivery-flow-asof, .delivery-flow-method { color: var(--muted); font-size: 11px; line-height: 1.55; }
.delivery-flow-asof { margin: -3px 0 17px; }
.delivery-flow-method { margin: 16px 0 0; }
.delivery-flow-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.delivery-flow-summary > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.delivery-flow-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.delivery-flow-summary strong { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.delivery-flow-summary small { color: var(--muted); font-size: 10px; }
.delivery-flow-table-frame { max-height: 470px; overflow: auto; }
.delivery-flow-table-frame thead { position: sticky; top: 0; z-index: 1; background: var(--surface-soft); }
.delivery-flow-table-frame th:first-child { min-width: 94px; }
.delivery-flow-table-frame td { min-width: 90px; }
.delivery-flow-table-frame td:nth-last-child(-n+2) { min-width: 190px; }
.delivery-board-panel { min-width: 0; margin: 0; }
.delivery-board-panel .section-head { margin-top: 0; }
.delivery-board-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 15px 0; }
.delivery-board-filters label { display: grid; flex: 1 1 180px; gap: 6px; max-width: 430px; font-size: 11px; font-weight: 750; }
.delivery-board-filters select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font: inherit; font-size: 12px; }
.delivery-board-filters select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-board-panel .delivery-flow-asof { margin: 0 0 15px; }
.delivery-board-columns, .delivery-board-insights { margin-top: 24px; }
.delivery-board-columns > h2, .delivery-board-insights > h2 { margin: 0 0 13px; font-size: 17px; }
.delivery-board-stage { padding: 13px 0; border-top: 1px solid var(--line); }
.delivery-board-stage h3 { margin: 0 0 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.delivery-board-stage ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0; margin: 0; list-style: none; }
.delivery-board-stage li { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.delivery-board-column-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; }
.delivery-board-column-head span { overflow-wrap: anywhere; }
.delivery-board-column-head strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.delivery-board-bar { height: 5px; margin: 9px 0 7px; border-radius: 999px; background: var(--line); }
.delivery-board-bar span { display: block; width: calc(var(--board-fill) * 100%); height: 100%; border-radius: inherit; background: var(--brand); }
.delivery-board-stage small { color: var(--muted); font-size: 10px; }
.delivery-board-insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.delivery-board-insight-grid article { min-width: 0; min-height: 140px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.delivery-board-insight-grid h3 { margin: 0 0 12px; font-size: 12px; }
.delivery-board-insight-grid strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.delivery-board-insight-grid p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.delivery-board-insight-grid ol { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.delivery-board-insight-grid li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; min-width: 0; font-size: 11px; }
.delivery-board-insight-grid li a, .delivery-board-insight-grid li span { min-width: 0; overflow-wrap: anywhere; }
.delivery-board-insight-grid li small { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.delivery-rating-panel { min-width: 0; margin: 0; }
.delivery-analytics-panel { min-width: 0; margin: 0; }
.delivery-analytics-panel .section-head { margin-top: 0; }
.delivery-analytics-panel h3 { margin: 18px 0 8px; font-size: 13px; }
.delivery-analytics-controls { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.delivery-analytics-controls label { display: grid; gap: 5px; min-width: min(100%, 200px); color: var(--muted); font-size: 11px; font-weight: 700; }
.delivery-analytics-controls select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font: inherit; }
.delivery-analytics-controls select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-analytics-summary { margin-block: 15px; }
.delivery-analytics-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.delivery-analytics-split section { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.delivery-analytics-split h3 { margin: 0 0 8px; }
.delivery-analytics-split p { margin: 6px 0; color: var(--muted); font-size: 11px; }
.delivery-analytics-split ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.delivery-analytics-split li { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; }
.delivery-analytics-split li span { overflow-wrap: anywhere; }
.delivery-analytics-panel .delivery-table { min-width: 760px; }
.delivery-digest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.delivery-digest > div { flex: 1 1 220px; }
.delivery-digest h3 { margin: 0 0 4px; }
.delivery-digest p { margin: 0; color: var(--muted); font-size: 11px; }
.delivery-digest textarea { flex: 1 0 100%; min-height: 100px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font: inherit; font-size: 11px; resize: vertical; }
.delivery-digest textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-rating-panel .section-head { margin-top: 0; }
.delivery-rating-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
.delivery-rating-filters label, .delivery-rating-form label { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 11px; font-weight: 750; }
.delivery-rating-filters select, .delivery-rating-filters input, .delivery-rating-form select, .delivery-rating-form input[type="number"] { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); background: var(--surface); font: inherit; font-size: 12px; }
.delivery-rating-filters select:focus-visible, .delivery-rating-filters input:focus-visible, .delivery-rating-form select:focus-visible, .delivery-rating-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.delivery-rating-form [aria-invalid="true"] { border-color: var(--danger); }
.delivery-rating-form .delivery-rating-check { display: flex; align-items: center; gap: 9px; }
.delivery-rating-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.delivery-rating-table td small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.delivery-search-wrap { position: relative; display: block; }
.delivery-search-wrap input { padding-right: 42px; }
.delivery-search-wrap button { position: absolute; top: 4px; right: 4px; width: 32px; min-height: 32px; padding: 0; box-shadow: none; }
.delivery-rating-table { min-width: 900px; }
.delivery-rating-table tbody th { max-width: 320px; overflow-wrap: anywhere; }
.delivery-rating-table tbody th small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; }
.delivery-rating-table a { color: var(--brand); }
.delivery-rating-form { max-width: 620px; }

.delivery-page .incident-chat-review { display: grid; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.incident-chat-review .section-head { align-items: start; margin: 0; }
.incident-chat-review .section-head h2 { margin: 4px 0; }
.incident-chat-review .section-head p { margin: 0; color: var(--muted); font-size: 12px; }
.incident-chat-review-count { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; color: var(--brand-contrast); background: var(--brand-soft); font-size: 11px; font-weight: 800; }
.incident-chat-candidate { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.incident-chat-candidate-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.incident-chat-candidate-head span { color: var(--warning); font-size: 11px; font-weight: 750; }
.incident-chat-candidate blockquote { min-width: 0; margin: 0; padding: 9px 12px; border-left: 3px solid var(--brand); background: var(--surface); }
.incident-chat-candidate blockquote p { margin: 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.incident-chat-candidate blockquote footer { margin-top: 7px; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.incident-chat-candidate a { color: var(--brand); }
.incident-chat-candidate a:focus-visible, .incident-chat-rejected-list summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.incident-chat-candidate-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.incident-chat-candidate-actions .button { min-height: 40px; }
.incident-chat-rejected-list { border-top: 1px solid var(--line); padding-top: 10px; }
.incident-chat-rejected-list summary { cursor: pointer; font-size: 12px; font-weight: 750; }
.incident-chat-rejected { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 11px; }

@media (max-width: 760px) {
  .delivery-page-actions, .delivery-readiness-head { align-items: stretch; flex-direction: column; }
  .delivery-page-actions .button { width: 100%; }
  .delivery-page-action-buttons { width: 100%; }
  .delivery-freshness { text-align: left; }
  .delivery-pipeline { grid-template-columns: 1fr 1fr; gap: 18px 8px; }
  .delivery-pipeline-step:nth-child(2)::after { display: none; }
  .delivery-kpis { grid-template-columns: 1fr 1fr; }
  .delivery-bars { grid-template-columns: repeat(12, 36px); overflow-x: auto; }
  .delivery-mapping-row { grid-template-columns: auto minmax(0, 1fr); }
  .delivery-mapping-row > label, .delivery-mapping-row fieldset { grid-column: 1 / -1; }
  .delivery-flow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-board-insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-rating-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-ps-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-analytics-split { grid-template-columns: 1fr; }
  .delivery-rating-filters label:last-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .delivery-readiness { padding: 16px; }
  .delivery-pipeline { grid-template-columns: 1fr; }
  .delivery-pipeline-step::after { display: none; }
  .delivery-kpis { grid-template-columns: 1fr; }
  .delivery-pagination { align-items: stretch; flex-wrap: wrap; }
  .delivery-pagination span { order: -1; width: 100%; text-align: center; }
  .delivery-pagination .button { flex: 1; }
  .delivery-view-nav a { flex: 1 1 auto; padding-inline: 8px; }
  .delivery-candidate-main { flex-wrap: wrap; }
  .delivery-form-grid, .delivery-new-system-fields { grid-template-columns: 1fr; }
  .delivery-editor { padding: 12px; }
  .delivery-form-actions .button { flex: 1; }
  .delivery-flow-summary { grid-template-columns: 1fr; }
  .delivery-board-stage ol, .delivery-board-insight-grid { grid-template-columns: 1fr; }
  .delivery-rating-filters { grid-template-columns: 1fr; }
  .delivery-ps-filters { grid-template-columns: 1fr; }
  .delivery-rating-filters label:last-child { grid-column: auto; }
  .incident-chat-review .section-head { flex-direction: column; }
  .incident-chat-candidate-actions .button { width: 100%; }
}
