.pipeline-builder,.pipeline-lineage,.pipeline-result,.pipeline-empty{padding:28px;margin-bottom:24px}
.pipeline-controls{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0 12px}
.pipeline-controls label{display:flex;flex-direction:column;gap:10px;font-size:13px;font-weight:600;color:#344f3c}
.pipeline-controls select{width:100%;border:1px solid #c7d2bf;border-radius:6px;padding:12px;background:#fff;color:#344f3c;font:inherit;min-height:46px}
.pipeline-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.pipeline-builder #pipeline-status{font-size:13px;line-height:1.8;color:#425b37;padding:15px;background:#edf3e7;border-radius:6px}
.pipeline-lineage dl{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:23px 0}
.pipeline-lineage dt{font-size:11px;color:#53634e;margin-bottom:7px}
.pipeline-lineage dd{margin:0;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.pipeline-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}
.pipeline-stage{padding:24px}.pipeline-stage h3{font-size:17px;line-height:1.6;margin:12px 0}
.pipeline-stage dl>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e5eadf;font-size:12px;gap:10px}
.pipeline-stage dd{margin:0;font-weight:700;font-size:16px}.pipeline-stage p{margin-top:16px}
.pipeline-result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.pipeline-result-heading h2{font-size:36px;letter-spacing:-1px;margin:14px 0}
.pipeline-data{border-top:1px solid #dce5d5;margin-top:20px;padding-top:17px;min-width:0}
.pipeline-data summary{cursor:pointer;font-size:13px;font-weight:600;padding:7px 0;line-height:1.7}
.pipeline-data .table-scroll{margin-top:16px}.pipeline-data table{min-width:440px;width:100%}
.pipeline-data caption{text-align:left;padding:12px;line-height:1.8}
.pipeline-comparison,.pipeline-reset-confirm{background:#f4f0e5;border:1px solid #ded3b5;padding:18px;border-radius:7px;margin:20px 0;line-height:1.8}
.pipeline-comparison strong{font-size:13px}.pipeline-comparison code,.pipeline-context code{overflow-wrap:anywhere}
.pipeline-reset-confirm .button{margin:8px 8px 0 0}
.pipeline-dirty{padding:16px;background:#f4f0e5;border-left:3px solid #917c40}
.pipeline-context{padding:22px;background:#edf3e7;border:1px solid #dbe4d2;border-radius:7px;margin-bottom:24px;overflow-wrap:anywhere}
.pipeline-context strong{font-size:14px}.pipeline-context p{margin:9px 0 14px}.pipeline-context .button{margin-top:8px}
.pipeline-retention{padding:0 5px;margin:22px 0}.pipeline-run{min-width:0}
.ingestion-panel{padding:28px;margin-bottom:26px}.ingestion-samples{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:20px 0}.ingestion-samples a{font-size:12px;color:#34513b;text-decoration:underline}
.ingestion-file,.ingestion-content{display:flex;flex-direction:column;gap:12px;margin:20px 0;font-size:13px;color:#344f3c;font-weight:600}.ingestion-file input{max-width:100%;font-size:13px}
.ingestion-options input,.ingestion-content textarea{padding:12px;border:1px solid #c7d2bf;border-radius:6px;background:#fff;color:#344f3c;font:inherit;max-width:100%;min-width:0}.ingestion-content textarea{width:100%;resize:vertical;font:13px/1.8 Consolas,monospace;min-height:160px}
.ingestion-types{border:1px solid #d9e3d1;border-radius:7px;padding:20px;min-width:0}.ingestion-types legend{font-size:14px;padding:0 8px}.ingestion-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:18px}.ingestion-type-grid label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#344f3c}.ingestion-type-grid select{padding:11px;background:#fff;border:1px solid #c7d2bf;border-radius:5px;font:inherit;color:#344f3c;min-height:44px}
#ingestion-status{padding:14px;background:#edf3e7;border-radius:6px;color:#425b37;font-size:13px;line-height:1.8}.ingestion-preview{margin-top:25px;min-width:0}.ingestion-preview table{min-width:700px}.ingestion-preview caption{padding:14px;text-align:left;line-height:1.8}
.ingestion-errors{padding-left:22px;font-size:13px;line-height:1.8}.ingestion-errors li{margin:18px 0}.ingestion-errors code{display:block;overflow-wrap:anywhere;color:#4d6045;font-size:12px}.ingestion-provenance{padding:22px;background:#f0f4e9;border:1px solid #dce5d3;border-radius:7px;margin:20px 0}.ingestion-provenance h3{font-size:16px}.ingestion-provenance code{overflow-wrap:anywhere}.ingestion-schema{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:20px 0}.ingestion-schema dt{font-size:12px;font-weight:600}.ingestion-schema dd{margin:7px 0 0;font-size:12px;color:#4d6045}.pipeline-stage-grid.ingested{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:980px){.pipeline-stage-grid{grid-template-columns:1fr}.pipeline-stage dl{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}}
@media(max-width:540px){.ingestion-panel{padding:20px}.ingestion-type-grid,.ingestion-schema{grid-template-columns:repeat(2,minmax(0,1fr))}.ingestion-content textarea,.ingestion-file input,.ingestion-options input,.ingestion-type-grid select{font-size:16px}.pipeline-stage-grid.ingested{grid-template-columns:1fr}.ingestion-types{padding:14px}.ingestion-samples>.button{flex:1}.ingestion-samples a{min-height:36px;display:flex;align-items:center}.ingestion-options input{width:100%}}
@media(max-width:540px){.pipeline-controls,.pipeline-lineage dl{grid-template-columns:1fr}.pipeline-builder,.pipeline-lineage,.pipeline-result,.pipeline-empty{padding:20px}.pipeline-controls select{font-size:16px}.pipeline-stage{padding:20px}.pipeline-stage dl{display:block}.pipeline-actions>.button,.pipeline-result-heading>.button{width:100%;white-space:normal;line-height:1.7}.pipeline-result-heading h2{font-size:30px}}

.pipeline-history { margin-block: 1.25rem; }
.pipeline-history select { display: block; width: 100%; min-width: 0; max-width: 100%; padding: .8rem; margin-top: .5rem; border: 1px solid var(--border, #ccd4df); border-radius: .5rem; background: var(--surface, #fff); color: inherit; font: inherit; text-overflow: ellipsis; }
