/* Scoped, compact analysis controls and progressive disclosure. */
.cc-root { min-width: 0; }
.cc-root .cc-heading { margin: 0 0 8px; font-size: 22px; }
.cc-root .cc-intro { margin: 0 0 20px; font-size: 13px; color: var(--text-muted, #667085); }
.cc-root .cc-controls { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
.cc-controls fieldset { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.5fr; gap: 10px; align-items: end; }
.cc-controls legend { font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.cc-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-muted, #667085); min-width: 0; }
.cc-controls input, .cc-controls select, .cc-search { width: 100%; min-width: 0; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--border, #dce0eb); border-radius: 7px; background: var(--bg-card, white); color: var(--text, #24304b); font: inherit; }
.cc-controls .cc-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border, #e2e5ed); padding-top: 14px; }
.cc-actions .cc-checkbox { flex-direction: row; align-items: center; margin-right: auto; }
.cc-checkbox input { width: auto; }
.cc-root button { cursor: pointer; border: 1px solid var(--border, #dce0eb); border-radius: 7px; padding: 7px 12px; font-size: 12px; line-height: 1.4; background: var(--bg-card, white); color: var(--text, #24304b); }
.cc-root button:disabled { opacity: .5; cursor: default; }
.cc-root button:focus-visible, .cc-root summary:focus-visible { outline: 2px solid #6555e8; outline-offset: 2px; }
.cc-root #btn-run-cocit { background: #5b4ce0; color: white; border-color: #5b4ce0; }
.cc-state, .cc-hint { font-size: 12px; color: var(--text-muted, #667085); line-height: 1.6; }
.cc-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 12px; font-size: 12px; color: var(--text-muted, #667085); }
.cc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.cc-segment { display: flex; padding: 3px; background: var(--bg, #f0f1f7); border-radius: 9px; }
.cc-segment button { background: transparent; border-color: transparent; }
.cc-segment [aria-pressed=true] { background: var(--bg-card, white); color: #5b4ce0; border-color: var(--border, #e2e5ed); }
.cc-export-actions { display: flex; gap: 6px; margin-left: auto; }
.cc-root .cc-visual, .cc-root .cc-evidence { padding: 20px; min-width: 0; }
.cc-visual h3, .cc-evidence h3 { margin: 0 0 8px; font-size: 15px; overflow-wrap: anywhere; }
.cc-root .cc-network { display: block; width: 100%; height: auto; max-height: 650px; min-height: 320px; overflow: hidden; touch-action: none; cursor: grab; }
.cc-root .cc-network:active { cursor: grabbing; }
.cc-zoom { display: flex; justify-content: flex-end; gap: 5px; }
.cc-selection { min-height: 20px; font-size: 12px; overflow-wrap: anywhere; }
.cc-search { max-width: 360px; margin: 8px 0 14px; font-size: 13px; }
.cc-table-wrap { overflow-x: auto; max-width: 100%; }
.cc-root table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.cc-root th { text-align: left; color: var(--text-muted, #667085); font-size: 11px; }
.cc-root td, .cc-root th { padding: 10px 8px; border-bottom: 1px solid var(--border, #e2e5ed); vertical-align: top; overflow-wrap: anywhere; }
.cc-links-table th:nth-child(1), .cc-links-table th:nth-child(2) { width: 32%; }
.cc-node-table th:first-child { width: 43%; }
.cc-root .cc-pagination { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; }
.cc-pagination span { margin-right: auto; }
.cc-evidence > button { float: right; margin-left: 12px; }
.cc-evidence p { font-size: 13px; line-height: 1.6; }
.cc-evidence-table { max-height: 420px; overflow: auto; }
.cc-evidence-table td:first-child { width: 95px; color: var(--text-muted, #667085); }
.cc-root .cc-detail { border: 1px solid var(--border, #e2e5ed); border-radius: 9px; background: var(--bg-card, white); margin: 12px 0; padding: 0 16px; font-size: 13px; }
.cc-detail summary { padding: 13px 0; font-weight: 600; cursor: pointer; }
.cc-ref-row { display: flex; align-items: baseline; gap: 20px; padding: 10px 0; border-top: 1px solid var(--border, #e2e5ed); }
.cc-ref-row span { flex: 1; overflow-wrap: anywhere; }
.cc-ref-row strong { flex-shrink: 0; }
.cc-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; padding: 8px 0; }
.cc-methods h4 { margin: 0 0 5px; font-size: 12px; }
.cc-methods p, .cc-detail p { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: var(--text-muted, #667085); overflow-wrap: anywhere; }
.cc-detail a { display: inline-block; margin: 0 15px 12px 0; font-size: 12px; }
.cc-error { color: #b33333; font-size: 13px; }
.cc-empty { padding: 24px 0; text-align: center; color: var(--text-muted, #667085); }
@media (max-width: 1400px) { .cc-root .cc-controls { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cc-controls fieldset, .cc-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cc-export-actions { margin-left: 0; } .cc-root .cc-visual { padding: 12px; } .cc-root .cc-network { min-height: 250px; } .cc-visual table { min-width: 620px; } .cc-methods { grid-template-columns: 1fr; } }
.cc-analysis-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border, #dce0eb); margin: 18px 0 12px; }
.cc-root .cc-analysis-tabs button { padding: 10px 0 12px; border: 0; border-radius: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 14px; font-weight: 600; }
.cc-root .cc-analysis-tabs [aria-pressed=true] { border-bottom-color: #5b4ce0; color: #5b4ce0; }
.cc-root .cc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cc-actions .cc-detail { margin: 0 auto 0 0; padding: 0; border: 0; background: transparent; }
.cc-actions .cc-detail summary { padding: 4px 0; font-size: 12px; color: var(--text-muted, #667085); }
.cc-actions .cc-detail label { padding-top: 8px; }
.cc-actions .cc-state { margin-left: auto; }
.cc-export-actions { flex-wrap: wrap; align-items: center; }
.cc-export-actions label, .cc-graph-tools label, .cc-node-controls label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted, #667085); }
.cc-root .cc-export-actions select, .cc-root .cc-graph-tools select, .cc-root .cc-node-controls select { padding: 7px 8px; max-width: 100%; border: 1px solid var(--border, #dce0eb); border-radius: 7px; background: var(--bg-card, white); color: var(--text, #24304b); font: inherit; }
.cc-graph-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.cc-node-search { position: relative; margin-right: auto; flex: 1 1 200px; max-width: 400px; }
.cc-node-search .cc-search { margin: 0; max-width: none; }
.cc-node-matches { position: absolute; left: 0; top: 100%; width: 100%; z-index: 5; background: var(--bg-card, white); border: 1px solid var(--border, #dce0eb); border-radius: 8px; box-shadow: 0 8px 20px #18203920; max-height: 280px; overflow: auto; }
.cc-root .cc-node-matches button { display: block; text-align: left; width: 100%; border: 0; border-radius: 0; padding: 9px 12px; overflow-wrap: anywhere; }
.cc-root .cc-node-matches button:hover { background: var(--bg, #f0f1f7); }
.cc-node-matches p { margin: 8px 12px; font-size: 12px; }
.cc-cluster-legend { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--border, #dce0eb); padding-top: 10px; }
.cc-root .cc-cluster-legend button { font-size: 11px; padding: 5px 8px; }
.cc-node-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cc-node-controls .cc-search { flex: 1 1 220px; }
.cc-root .cc-visual { margin-bottom: 16px; }
@media (max-width: 640px) { .cc-root .cc-controls { padding: 14px; } .cc-analysis-tabs { gap: 14px; } .cc-root .cc-analysis-tabs button { font-size: 13px; } .cc-export-actions { width: 100%; } .cc-node-search { max-width: none; } }
