/* Separate, metadata-only reverse lookup: no legacy Relation/AI controls. */
body.reverse-viz {background:#1f2126;color:#e6e8ee;}
body.reverse-viz .topbar {background:#262930;color:#e6e8ee;}
body.reverse-viz .reverse-guide {fill:#b8d4fc;text-anchor:middle;font-size:17px;font-weight:600;}
body.reverse-viz .toolbar-group:not(.scenario-group):not(.command-group),
body.reverse-viz #detailPanelToggleBtn,
body.reverse-viz #detailPanelResizer,
body.reverse-viz #workflowBanner {display:none!important;}
body.reverse-viz .toolbar-row-secondary {justify-content:flex-start;}
body.reverse-viz .scenario-group {display:flex!important;}
body.reverse-viz .shell {grid-template-columns:minmax(0,1fr) 340px!important;}
body.reverse-viz .sidebar {opacity:1!important;pointer-events:auto!important;padding:16px!important;}
body.reverse-viz #mapLegend {max-width:270px;font-size:11px;pointer-events:none;}
body.reverse-viz #graph {touch-action:none;cursor:grab;}
body.reverse-viz #graph:active {cursor:grabbing;}
body.reverse-viz .reverse-center {fill:#812464;stroke:#f3a0da;stroke-width:2;}
body.reverse-viz .reverse-center-label {fill:white;text-anchor:middle;font-size:12px;font-weight:700;pointer-events:none;}
body.reverse-viz .reverse-candidate-edge {stroke:#db65b9;stroke-width:1.8;stroke-dasharray:none;opacity:.9;}
body.reverse-viz .reverse-node {cursor:pointer;outline:none;}
body.reverse-viz .reverse-document {fill:#17d9d2;stroke:#8dfff9;stroke-width:1.5;}
body.reverse-viz .reverse-node.selected .reverse-document,
body.reverse-viz .reverse-node:focus .reverse-document {stroke:#f0a500;stroke-width:4;}
body.reverse-viz .reverse-document-label,
body.reverse-viz .reverse-match-label {text-anchor:middle;font-size:11px;fill:#fff;paint-order:stroke;stroke:#16181d;stroke-width:3px;stroke-linejoin:round;pointer-events:none;}
body.reverse-viz .reverse-match-label {font-size:9px;fill:#b8d4fc;}
body.reverse-viz #mapLegend .reverse-note::before {content:"";display:inline-block;width:22px;border-top:2px solid #db65b9;vertical-align:middle;margin-right:6px;}
body.reverse-viz .reverse-note {color:#a9c6dc;font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
body.reverse-viz .reverse-summary {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:12px;}
body.reverse-viz .sidebar h2 {font-size:16px;overflow-wrap:anywhere;}
body.reverse-viz .sidebar h3 {font-size:13px;margin-top:20px;}
body.reverse-viz .sidebar li {font-size:12px;line-height:1.6;margin-bottom:7px;overflow-wrap:anywhere;}
body.reverse-viz .reverse-thumbnail {display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:185px;margin:12px 0 4px;padding:8px;border:1px solid #475364;border-radius:10px;background:#fff;overflow:hidden;}
body.reverse-viz .reverse-thumbnail img {display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;}
body.reverse-viz .reverse-thumbnail-fallback {color:#5b6371;text-align:center;font-size:12px;line-height:1.5;}
body.reverse-viz .reverse-open {width:100%;cursor:pointer;}
body.reverse-viz .reverse-open {height:auto;min-height:38px;margin-top:16px;}
@media(max-width:900px){body.reverse-viz .shell{grid-template-columns:minmax(0,1fr)!important;}body.reverse-viz .sidebar{max-height:35vh;}}
