.reconstruction-outputs { display: grid; gap: 5px; }
.combine-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; padding: 12px 15px; border: 1px solid var(--border-color); border-bottom: 0; background: #faf9fc; font-size: .76rem; color: var(--text-secondary); }
.combine-controls > span:first-child { color: var(--primary-color); font-weight: 650; margin-right: 8px; }
.combine-controls label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.combine-controls input { accent-color: var(--primary-color); width: 15px; height: 15px; }
.combine-inspect-toggle { margin-left: auto; }
.viewer-result-row.has-combine-panel { display: grid; grid-template-columns: minmax(0,1fr) 300px; }
.viewer-result-row.has-combine-panel .stage-viewport { min-width: 0; border-radius: 0 0 0 8px; }
.is-combining .stage-canvas { background-color: white; background-image: repeating-conic-gradient(#e8e5ed 0% 25%, white 0% 50%); background-size: 20px 20px; }
#combine-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.combine-block > rect { fill: none; stroke: #77968f; stroke-width: 1.5px; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: pointer; }
.combine-block.selected > rect { stroke: #655094; stroke-width: 2.5px; }
.combine-block > rect.combine-line { stroke: #ac9bc7; stroke-width: 1px; stroke-dasharray: 4 3; pointer-events: none; }
.combine-block-label { pointer-events: auto; cursor: pointer; }
.combine-block-label rect { fill: #f7fbfaf0; }
.combine-block-label text { fill: #396f63; font-weight: 600; font-family: sans-serif; }
.combine-block.selected .combine-block-label rect { fill: #655094; }
.combine-block.selected .combine-block-label text { fill: white; }
.combine-details { height: min(68vh,680px); min-height: 350px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--border-color); border-left: 0; border-radius: 0 0 8px 0; padding: 18px; background: #f7f6fb; }
.combine-details .eyebrow { font-size: .62rem; margin-bottom: 5px; }
.combine-details h3 { font-size: .99rem; font-weight: 650; line-height: 1.4; margin-bottom: 6px; }
.combine-details > label { display: block; font-size: .69rem; color: var(--text-secondary); margin: 16px 0 5px; }
#combine-block { width: 100%; padding: 8px; border: 1px solid #d7cde6; border-radius: 5px; background: white; font: inherit; font-size: .75rem; color: var(--primary-color); }
.combine-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--border-color); }
.combine-metrics dt { font-size: .64rem; color: var(--text-secondary); }
.combine-metrics dd { font-size: .86rem; color: var(--primary-color); font-variant-numeric: tabular-nums; font-weight: 600; }
.combine-detail-label { font-size: .67rem; font-weight: 600; color: var(--text-secondary); margin: 17px 0 7px; }
.combine-alignment { display: flex; gap: 5px; }
.combine-alignment span { padding: 3px 9px; border: 1px solid var(--border-color); border-radius: 4px; font-size: .68rem; color: #8e839b; }
.combine-alignment .active { background: #eae4f4; color: var(--primary-color); border-color: #cbbce2; }
.combine-parent-font { font-size: .79rem; font-weight: 600; }
.combine-details .style-color-value { margin-top: 4px; color: var(--text-secondary); font-size: .74rem; }
.combine-saved-size { font-size: 1.05rem; font-weight: 650; color: var(--primary-color); }
.combine-reference-size { font-size: .72rem; margin: 5px 0; }
.combine-details .small-note { font-size: .67rem; }
.combine-line-list { list-style: none; padding: 0; margin: 0; }
.combine-line-list li { border-top: 1px solid var(--border-color); padding: 9px 0; }
.combine-line-list strong { display: block; font-size: .68rem; font-weight: 600; color: var(--primary-color); }
.combine-line-list span { display: block; font-size: .69rem; color: var(--text-secondary); margin-top: 3px; overflow-wrap: anywhere; }
.combine-exceptions { display: flex; flex-wrap: wrap; gap: 5px; }
.combine-exceptions span { border: 1px solid var(--border-color); border-bottom-width: 3px; padding: 3px 6px; border-radius: 4px; font-size: .68rem; background: white; }
.combine-explanation { margin-top: 30px; border-top: 1px solid var(--border-color); padding-top: 30px; }
.combine-rules-heading h3 { font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; margin-bottom: 12px; }
.combine-rules-heading > p:last-child { color: var(--text-secondary); font-size: .82rem; line-height: 1.8; max-width: 770px; margin-bottom: 23px; }
.combine-rule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.combine-rule, .combine-rule.font-size-note { padding: 21px; margin: 0; background: #faf9fc; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-secondary); font-size: .77rem; line-height: 1.8; }
.combine-rule h4 { display: flex; align-items: start; gap: 9px; color: var(--text-primary); font-size: .85rem; font-weight: 650; line-height: 1.5; margin-bottom: 16px; }
.combine-rule h4 span { display: inline-grid; flex-shrink: 0; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #eae4f4; color: var(--primary-color); font-size: .7rem; }
.combine-rule math[display="block"] { font-size: 1rem; color: var(--primary-color); margin: 19px 0; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; }
.combine-rule p + p { margin-top: 12px; }
.combine-rule-wide { grid-column: 1 / -1; }
.combine-fit-rules { display: grid; grid-template-columns: 1.3fr 1fr; gap: 15px; }
.combine-tree { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.combine-tree span { padding: 6px 8px; border: 1px solid #d7cde5; border-radius: 4px; background: #fff; color: var(--primary-color); font-size: .68rem; }
.combine-tree span + span::before { content: "↳ "; color: #9583ad; }
.combine-position-diagram { position: relative; width: 190px; height: 104px; margin: 0 auto 18px; border-left: 1px dashed #b9a9ce; border-top: 1px dashed #b9a9ce; }
.combine-position-diagram > div { position: absolute; left: 28px; top: 28px; width: 138px; height: 65px; border: 1px solid #9180b2; background: #f0eaf8; padding: 10px 12px; }
.combine-position-diagram i { display: block; height: 4px; width: 90%; margin-bottom: 8px; background: #9b88ba; }
.combine-position-diagram i:nth-child(2) { width: 65%; }.combine-position-diagram i:nth-child(3) { width: 80%; }
.position-origin { position: absolute; left: 29px; top: 3px; font-size: .69rem; color: var(--primary-color); }
.position-offset { position: absolute; right: 0; top: 35px; font-size: .67rem; color: var(--primary-color); }
.combine-inheritance { border: 1px solid #d9cfe8; border-radius: 5px; background: white; padding: 11px; text-align: center; margin-bottom: 18px; }
.combine-inheritance > span { color: var(--primary-color); font-size: .72rem; font-weight: 600; }
.combine-inheritance > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.combine-inheritance i { font-style: normal; padding: 3px 8px; border-radius: 3px; background: #eee9f6; color: var(--primary-color); font-size: .7rem; }
.combine-inheritance i.exception { background: #fbece5; color: #ab603e; }
@media (max-width:1100px) {
  .viewer-result-row.has-combine-panel { display: block; }
  .viewer-result-row.has-combine-panel .stage-viewport { border-radius: 0; }
  .combine-details { height: auto; max-height: 440px; min-height: 0; border-left: 1px solid var(--border-color); border-top: 0; border-radius: 0 0 8px 8px; }
  .combine-rule-grid { grid-template-columns: 1fr; }
}
@media (max-width:700px) {
  .pipeline-output .reconstruction-outputs { flex: 1; min-width: 0; grid-template-columns: 1fr 1fr; }
  .pipeline-output .reconstruction-outputs button { min-width: 0; width: 100%; padding-inline: 5px; }
  .pipeline-output .pipeline-label { flex: 0 1 auto; }
  .combine-controls { gap: 9px; font-size: .68rem; }
  .combine-controls > span:first-child { width: 100%; }
  .combine-inspect-toggle { margin-left: 0; }
  .combine-rule, .combine-rule.font-size-note { padding: 16px; }
  .combine-fit-rules { grid-template-columns: 1fr; gap: 0; }
  .combine-rule math[display="block"] { font-size: .89rem; }
}
