:root{--surface-dark:#1b2025;--page-bg:#edf1f5;--ink:#172233;--muted:#5a6878;--border:#c7d0db;--accent:#e8402a;--accent-dark:#b52c1a;--btn-bg:#b52c1a;color:var(--ink);background:var(--page-bg);font-synthesis:none;text-rendering:optimizelegibility;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{background:var(--btn-bg);color:#fff;cursor:pointer;border:0;border-radius:8px;padding:.55rem .9rem;font-weight:700}button:disabled{cursor:wait;opacity:.55}input,select{border:1px solid var(--border);width:100%;color:var(--ink);background:#fff;border-radius:7px;padding:.5rem .65rem}label{color:var(--muted);letter-spacing:.02em;gap:.32rem;font-size:.74rem;font-weight:700;display:grid}.app-shell{grid-template-rows:64px 1fr;min-height:100vh;display:grid}.topbar{background:var(--surface-dark);color:#fff;align-items:center;gap:1rem;height:64px;padding:0 1.25rem;display:flex}.topbar-logo{width:auto;height:22px;display:block}.topbar-title{border-left:1px solid #ffffff2e;gap:.1rem;padding-left:1rem;display:grid}.topbar-title strong{font-size:.92rem}.topbar-title span{color:#ffffff9e;font-size:.72rem}.topbar-case-select{width:260px;margin-left:auto}.topbar-case-select select{color:#fff;background:#ffffff14;border:1px solid #ffffff3d}.workspace{grid-template-columns:auto minmax(0,1fr);min-height:0;display:grid}.control-panel{border-right:1px solid var(--border);background:#fff;align-content:start;gap:1.1rem;width:300px;padding:1.1rem;transition:width .2s,padding .2s;display:grid;overflow-y:auto}.control-panel.collapsed{border-right:none;width:0;padding:0;overflow:hidden}.control-section{gap:.55rem;display:grid}.control-section h2{color:var(--ink);margin:0;font-size:.82rem}.search-bar{border:1px solid var(--border);border-radius:8px;padding:.65rem .8rem;font-size:.86rem}.search-bar:focus{border-color:var(--accent);outline:none}.node-search{position:relative}.node-search-results{z-index:20;border:1px solid var(--border);background:#fff;border-radius:8px;gap:.15rem;width:100%;max-height:320px;margin:0;padding:.35rem;list-style:none;display:grid;position:absolute;top:calc(100% + .3rem);left:0;overflow-y:auto;box-shadow:0 8px 24px #0f1e321f}.node-search-results li{display:block}.node-search-results button{width:100%;color:var(--ink);text-align:left;background:0 0;border-radius:6px;align-items:center;gap:.5rem;padding:.45rem .6rem;font-weight:500;display:flex}.node-search-results button.active,.node-search-results button:hover{background:var(--page-bg)}.node-search-label-badge{background:var(--surface-dark);color:#fff;border-radius:999px;flex-shrink:0;padding:.15rem .5rem;font-size:.64rem;font-weight:700}.toggle-row{border:1px solid var(--border);border-radius:8px;justify-content:space-between;align-items:center;gap:.6rem;padding:.6rem .7rem;display:flex}.toggle-row span{font-size:.82rem;font-weight:600}.switch{flex-shrink:0;width:38px;height:21px;display:inline-block;position:relative}.switch input{opacity:0;width:0;height:0}.switch-track{cursor:pointer;background:#cbd3dc;border-radius:999px;transition:background .15s;position:absolute;inset:0}.switch input:checked+.switch-track{background:var(--accent)}.switch-track:before{content:"";background:#fff;border-radius:50%;width:17px;height:17px;transition:transform .15s;position:absolute;top:2px;left:2px}.switch input:checked+.switch-track:before{transform:translate(17px)}.label-checklist{gap:.35rem;max-height:220px;display:grid;overflow-y:auto}.label-checkbox{color:var(--ink);align-items:center;gap:.5rem;font-size:.78rem;font-weight:500;display:flex}.label-checkbox input{width:auto}.label-checkbox .count{color:var(--muted);margin-left:auto;font-weight:600}.filter-row{gap:.5rem;display:grid}.graph-canvas-wrap{background:var(--surface-dark);min-height:0;position:relative}.graph-canvas{width:100%;height:100%}.graph-status{color:#ffffffd9;background:#00000073;border-radius:999px;padding:.35rem .7rem;font-size:.72rem;font-weight:600;position:absolute;top:.85rem;left:.85rem}.recenter-button{color:#ffffffd9;background:#00000073;border:1px solid #fff3;padding:.4rem .75rem;font-size:.72rem;font-weight:700;position:absolute;top:.85rem;right:.85rem}.recenter-button:hover{background:#0009}.sidebar-toggle{z-index:5;color:#ffffffd9;background:#00000073;border:1px solid #fff3;padding:.5rem .65rem;font-size:.85rem;font-weight:700;line-height:1;position:absolute;top:50%;left:.85rem;transform:translateY(-50%)}.sidebar-toggle:hover{background:#0009}.empty-state{pointer-events:none;place-items:center;display:grid;position:absolute;inset:0}.empty-state p{color:#ffffff73;margin:0;font-size:.95rem;font-weight:600}.node-details-panel{background:#14181cf0;border-radius:10px;width:300px;max-height:calc(100% - 6.5rem);display:grid;position:absolute;top:3.5rem;right:.85rem;overflow:hidden}.node-details-header{border-bottom:1px solid #ffffff1f;justify-content:space-between;align-items:flex-start;gap:.6rem;padding:.7rem .55rem .7rem .85rem;display:flex}.node-details-labels{flex-wrap:wrap;gap:.3rem;display:flex}.node-details-label-badge{background:var(--accent-dark);color:#fff;border-radius:999px;padding:.2rem .55rem;font-size:.68rem;font-weight:700}.node-details-close{color:#ffffffb3;background:0 0;border-radius:6px;flex-shrink:0;padding:.15rem .5rem;font-size:1.1rem;line-height:1}.node-details-close:hover{background:#ffffff1a}.node-details-body{gap:.55rem;margin:0;padding:.75rem .85rem;display:grid;overflow-y:auto}.node-details-row{gap:.12rem;display:grid}.node-details-row dt{color:#ffffff8c;letter-spacing:.02em;text-transform:uppercase;font-size:.66rem;font-weight:700}.node-details-row dd{color:#ffffffeb;overflow-wrap:anywhere;margin:0;font-size:.78rem}.community-legend{background:#14181ce0;border-radius:10px;gap:.35rem;max-width:240px;max-height:45%;padding:.7rem .85rem;display:grid;position:absolute;bottom:.85rem;left:.85rem;overflow-y:auto}.community-legend h3{color:#ffffffb3;letter-spacing:.04em;text-transform:uppercase;margin:0 0 .2rem;font-size:.68rem;font-weight:700}.legend-row{color:#ffffffe0;align-items:center;gap:.5rem;font-size:.72rem;display:flex}.legend-swatch{border-radius:3px;flex-shrink:0;width:10px;height:10px}.legend-row .predicted-swatch{border-top:2px dashed var(--accent);border-radius:0;height:0}
