*{box-sizing:border-box}body{margin:0;background:#0c1017;color:#dfe5ed;font:13px Inter,system-ui,sans-serif}button,input,textarea{font:inherit}button{color:#bbc4d2;border:1px solid #2a3341;border-radius:7px;background:#171e29;padding:9px 13px;cursor:pointer}button:hover{border-color:#6ae1ba;color:white}button.primary{background:#87efc5;color:#10271f;border-color:#87efc5;font-weight:650}.rail{position:fixed;left:0;top:0;bottom:0;width:64px;background:#10151e;border-right:1px solid #242c37;display:flex;align-items:center;flex-direction:column;gap:18px;padding-top:22px}.brand{font-size:32px;color:#91f1c9;margin-bottom:25px}.rail button{font-size:23px;border:0;background:transparent;padding:8px;width:42px}.rail button.active{background:#21372f;color:#90efc5}.railbottom{margin-top:auto;margin-bottom:24px;border-radius:50%;background:#26332f;padding:10px;color:#8cdbbc}.app{margin-left:64px;padding:0 28px}header{height:76px;border-bottom:1px solid #252d39;display:flex;align-items:center;justify-content:space-between;gap:12px}header>div{display:flex;align-items:center;gap:12px}header b{font-size:14px;letter-spacing:2px}.slash{color:#526072}.badge{font-size:9px;letter-spacing:1px;color:#8f9bad;border:1px solid #313a48;padding:4px 7px;border-radius:4px}.heading{display:flex;justify-content:space-between;align-items:center;margin:29px 0 26px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#8190a4}h1{font-size:32px;letter-spacing:-1.2px;font-weight:550;margin:10px 0}h1 span{color:#83edbe}p{color:#7f8d9f;line-height:1.6;margin:0}.status{font-size:11px;color:#91a293;display:flex;gap:7px;align-items:center}.status i{height:6px;width:6px;border-radius:50%;background:#80e7b9}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:23px}.stats>div{border:1px solid #28313d;border-radius:9px;padding:17px 20px;background:linear-gradient(110deg,#151c26,#111720);display:grid;grid-template-columns:1fr auto;gap:13px}.stats small{color:#8e9bab;font-size:9px;letter-spacing:1.5px;grid-column:1/-1}.stats strong{font-size:30px;font-weight:500}.stats>div>span{color:#68788d;font-size:10px;align-self:end;padding-bottom:5px}.stats strong span{font-size:13px;color:#6f7d91}.pink{color:#c79af3}.mint{color:#8be6bd}main{display:grid;grid-template-columns:215px minmax(420px,1fr) 300px;gap:14px;height:650px}.panel{background:#111720;border:1px solid #29313f;border-radius:9px;overflow:hidden}.paneltitle{padding:18px 16px;border-bottom:1px solid #27303d;font-weight:550;display:flex;justify-content:space-between}.paneltitle span{color:#728197}.search{margin:16px 12px;background:#0d131d;display:flex;align-items:center;gap:6px;border:1px solid #283442;padding:8px;border-radius:6px;color:#748399}.search input{width:100%;background:none;border:0;outline:none;color:#dfe5ed;font-size:11px}.smalllabel{color:#6e7e92;font-size:9px;letter-spacing:1px;margin:22px 16px 12px}#files{max-height:280px;overflow:auto}.file{padding:9px 14px;color:#9ba8b9;font-size:11px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file.selected{background:#1d302b;color:#99e3c6;border-left:2px solid #8aebc0}.file span{color:#74aebd;margin-right:8px}#types label{display:flex;gap:9px;margin:12px 17px;color:#a7b2c0;font-size:11px}input[type=checkbox]{accent-color:#88eac0}.localnote{border-top:1px solid #27303c;margin:20px 15px;padding-top:18px;font-size:10px}.localnote>span{color:#8ae4bf;margin-right:7px}.localnote p{font-size:10px;margin-top:8px}.graphhead{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;gap:8px}.graphhead button{font-size:10px;padding:7px}.graphhead b{font-weight:550}.filters{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 14px}.filters button{border-radius:20px;padding:5px 9px;font-size:9px;background:#10151e}.filters button.on{border-color:#4f7067;color:#9eeacb;background:#1a2b27}#graphArea{position:relative;height:500px;background-color:#0e141d;background-image:radial-gradient(#293440 1px,transparent 1px);background-size:22px 22px;overflow:hidden}svg{width:100%;height:100%;touch-action:none}.graphhint{position:absolute;bottom:17px;left:18px;color:#627185;font-size:9px;pointer-events:none}.zoom{position:absolute;bottom:16px;right:14px;display:flex;gap:4px}.zoom button{padding:6px 9px}.node{cursor:grab}.node text{font-family:system-ui;font-size:12px;fill:#d7e0eb;pointer-events:none}.node .sub{font-size:8px;fill:#8493a9}.node rect{fill:#192532;stroke:#405163;stroke-width:1.2}.node.class rect{fill:#16312b;stroke:#518c77}.node.field rect{fill:#312b20;stroke:#9c8550}.node.selected rect{stroke:#b3ffdc;stroke-width:2.5}.edge{fill:none;stroke-width:1.4;opacity:.55}.edge.duplicate{stroke-dasharray:6 5;opacity:.8}footer{display:flex;gap:13px;flex-wrap:wrap;padding:15px 14px;font-size:9px;color:#91a0b3}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:3px}.mintbg{background:#81e1b7}.bluebg{background:#87baf2}.yellowbg{background:#e6c78c}.muted{color:#647387}#detail{padding:18px;overflow:auto;height:592px}.kind{font-size:9px;letter-spacing:1px;color:#8ae4bf}.objectname{font-size:22px;overflow-wrap:anywhere;margin:8px 0;color:#e1e8f1}.path{font:10px ui-monospace,monospace;color:#7c8da4;overflow-wrap:anywhere}.score{border:1px solid #2e3a43;border-radius:7px;margin:20px 0;padding:14px;display:flex;align-items:center;gap:12px}.score strong{font-size:29px;color:#8ae4bf}.score small{color:#75879a;font-size:10px}.meter{height:4px;background:#27333d;margin-top:7px;width:140px}.meter i{height:100%;display:block;background:#8ae4bf}.tabs{display:flex;gap:9px;border-bottom:1px solid #2c3542;margin-bottom:15px}.tabs button{border:0;background:none;border-radius:0;font-size:10px;padding:8px 0}.tabs button.on{border-bottom:2px solid #8ae4bf;color:#b7efda}.detailcontent p{font-size:11px;line-height:1.8}.metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.metrics div{background:#19212c;border-radius:5px;padding:10px;color:#8393a9;font-size:10px}.metrics b{display:block;color:#dde6f0;font-size:16px;margin-bottom:4px}.detailcontent h4{color:#acbacb;font-size:10px;letter-spacing:1px;margin:20px 0 10px}.rel{display:block;width:100%;text-align:left;margin:5px 0;font-size:10px}.ai{width:100%;margin-top:15px;border-color:#586653;color:#abddbc;font-size:11px}.editor{width:100%;height:230px;resize:vertical;background:#0a1019;color:#bad8cd;padding:10px;font:11px/1.6 ui-monospace,monospace;border:1px solid #334352;border-radius:5px;tab-size:2}.bottom{display:flex;justify-content:space-between;color:#8291a5;font-size:9px;padding:19px 0}dialog{background:#161e2a;color:#e2e8f1;border:1px solid #435468;border-radius:12px;max-width:570px;padding:28px}dialog::backdrop{background:#000a}dialog p{margin:14px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#254b3c;color:#c8f8e2;border:1px solid #648e7b;border-radius:7px;display:none;z-index:5}@media(min-width:1600px){main{grid-template-columns:240px minmax(500px,1fr) 340px;height:720px}#graphArea{height:570px}#detail{height:660px}}@media(max-width:1100px){main{grid-template-columns:180px minmax(380px,1fr)}.details{grid-column:1/-1;height:450px}#detail{height:390px}main{height:auto}.stats>div>span{display:none}.badge{display:none}}@media(max-width:680px){.rail{display:none}.app{margin:0;padding:0 12px}header{height:auto;padding:15px 0;align-items:flex-start;flex-direction:column}header button{font-size:10px}.heading{margin:24px 0}.status{display:none}h1{font-size:26px}.stats{gap:6px}.stats>div{padding:10px}.stats small{font-size:7px}.stats strong{font-size:23px}main{display:flex;flex-direction:column}.files{max-height:230px}.localnote,#types,.files .smalllabel{display:none}.graph{height:600px}.graphhead{font-size:11px}.bottom{gap:10px}}

.nodecode{border:1px solid #334352;border-radius:6px;background:#0a1019;overflow:auto;max-height:340px;padding:10px 0;font:11px/1.8 ui-monospace,monospace;color:#bad8cd}.codeline{display:flex;min-width:max-content;padding-right:12px}.lineno{color:#596b82;min-width:40px;text-align:right;margin-right:12px;user-select:none;border-right:1px solid #23303f;padding-right:9px}.codeline code{white-space:pre;font:inherit}.fileeditor{margin-top:14px}.fileeditor summary{cursor:pointer;color:#a4c9b9;font-size:11px;padding:9px 0}

#importDialog{width:570px;max-width:calc(100vw - 24px)}.importtitle{display:flex;justify-content:space-between;align-items:center}.importtitle h2{margin:0 0 10px;font-size:23px}.importtitle button{background:none;border:0;font-size:23px}.importmodes{display:flex;gap:22px;padding:15px 0;color:#b8c6d6}.importmodes input{accent-color:#87efc5}.importfield{display:block;margin:14px 0;color:#c8d5e4;font-size:11px}.importfield span{color:#75869c;margin-left:5px}.importfield input{display:block;width:100%;margin-top:7px;padding:12px;background:#0b121b;border:1px solid #334453;color:#d9e7f0;border-radius:6px;outline:none}.importfield input:focus{border-color:#87efc5}.importhint{font-size:11px}#importProgress{margin-top:12px;color:#8ae4bf;font-size:11px;overflow-wrap:anywhere}#importError{margin-top:12px;color:#f3b4b4;line-height:1.6;font-size:12px}.importactions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}button:disabled{opacity:.5;cursor:wait}header{flex-wrap:wrap;height:auto;min-height:76px;padding:12px 0}header>div{flex-wrap:wrap}

.scopeLabel{display:flex;align-items:center;gap:7px;margin:0 12px;color:#7e91a9;font-size:10px}.scopeLabel select{min-width:0;width:130px;background:#192330;color:#c4d5e5;border:1px solid #354253;border-radius:5px;padding:6px;font:inherit}.filteroptions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:0 14px 7px;font-size:10px;color:#a0b5c8}.filteroptions label{display:flex;align-items:center;gap:5px}.filteroptions button{padding:4px 8px;font-size:9px}.filteroptions span{color:#88d8b7;margin-left:auto}.filterhelp{padding:0 14px 10px;color:#657990;font-size:9px;line-height:1.5}#graphArea{height:420px}@media(min-width:1600px){#graphArea{height:490px}}@media(max-width:680px){.graph{height:665px}#graphArea{height:440px}}

.edge{stroke-width:1.8;opacity:.85}.edgelabel rect{fill:#101923;stroke:#324152;stroke-width:.7}.edgelabel text{font:9px system-ui;pointer-events:none}.relationnames{margin-top:7px;color:#c0d0de;line-height:1.6;overflow-wrap:anywhere}.relationnames span{color:#88e0b8;font-weight:bold;font-size:15px}.relationedge:hover .edge{stroke-width:3;opacity:1}

.layoutactions{display:flex;gap:5px;align-items:center}.layoutactions select{font-size:10px;background:#182431;color:#b5cbdc;border:1px solid #3a4c60;border-radius:6px;padding:6px;max-width:120px}.graphhead{flex-wrap:wrap;height:auto;min-height:58px;padding:10px 12px}@media(max-width:680px){.layoutactions{flex-wrap:wrap}.graph{height:700px}}

.layouthint{padding:2px 14px 7px;font-size:10px;color:#89a9ba}.layoutactions{flex-wrap:wrap}.graphhead{gap:8px}.layoutactions select{max-width:130px}@media(max-width:680px){.graph{height:750px}}

.notebadge rect{fill:#3b2e18;stroke:#d6ab57}.node .notebadge text{fill:#f4ca79;font-size:10px}.notelist{border:1px solid #796337;border-radius:6px;padding:10px;margin:15px 0;background:#272216}.notelist h4{font-size:9px;color:#f0c777;margin:0 0 8px}.noteitem{border-top:1px solid #493e29;padding:9px 0}.noteitem b{color:#f2c477;font-size:10px}.noteitem span{font-size:9px;color:#a49677;margin-left:10px}.noteitem p{font-size:11px;color:#d8c8a9;margin-top:4px;overflow-wrap:anywhere}.filteroptions select{background:#172331;color:#b8cbdc;border:1px solid #3c5065;border-radius:4px;padding:4px;font-size:10px}

#historyDialog{width:610px;max-width:calc(100vw - 24px)}#historyList{max-height:55vh;overflow:auto;margin-top:18px}.historyrow{border:1px solid #354555;border-radius:7px;padding:14px;margin:10px 0}.historyrow b{overflow-wrap:anywhere}.historyrow p{font-size:11px;margin:7px 0}.historyrow button{font-size:11px;margin-right:7px}#historyStorage{color:#9ee4be;margin:10px 0}

.editorbuttons{display:flex;flex-wrap:wrap;gap:5px;margin-top:14px}.editorbuttons button{font-size:10px;padding:7px}.editorbuttons #openExternal{color:#a3e2c3;border-color:#476959}#editorDialog{width:600px;max-width:calc(100vw - 24px)}#editorKind{display:block;margin-top:8px;padding:10px;background:#192532;color:#c5d7e8;border:1px solid #36495e;border-radius:5px}#editorError{color:#f1b7ac;margin:8px 0;font-size:11px}

[hidden]{display:none!important}

.touchcontrols{display:flex;gap:8px;padding:0 14px 9px}.touchcontrols button{min-height:38px;font-size:11px}.touchcontrols button[aria-pressed=true]{border-color:#8ddfbf;background:#253e32;color:#b5f3d7}#svg{touch-action:none;user-select:none}.graphhint{max-width:calc(100% - 110px);line-height:1.5}@media(pointer:coarse){.node{cursor:default}.zoom button{min-width:40px;min-height:40px}.tabs button{min-height:40px}.details{scroll-margin-top:12px}.graphhead button{min-height:38px}}

.projectprogress{border:1px solid #406759;background:#14261f;border-radius:8px;padding:14px 18px;margin-bottom:18px}.projectprogress>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.projectprogress progress{width:100%;height:8px;accent-color:#86edc5;margin-top:12px;display:block}.projectprogress p{font-size:11px;color:#9dc8b6;overflow-wrap:anywhere;margin-top:8px}.projectprogress.error{border-color:#b36666;background:#301d22}.projectprogress.error p{color:#efb5b5}

#graphArea,#svg,.node{overflow-anchor:none}.closeinspector{display:none;font-size:22px;padding:0 10px;border:0;background:none;color:#c9dfd4;min-width:40px;min-height:40px}@media(max-width:1100px){#inspectorPanel{position:fixed;left:12px;right:12px;bottom:12px;top:auto;height:min(72vh,650px);height:min(72dvh,650px);z-index:30;visibility:hidden;pointer-events:none;transform:translateY(calc(100% + 30px));transition:transform .18s ease,visibility .18s;box-shadow:0 0 0 100vmax #0008;overflow-anchor:none;margin:0}#inspectorPanel.inspector-open{visibility:visible;pointer-events:auto;transform:translateY(0)}#inspectorPanel .paneltitle{height:58px;align-items:center;padding:8px 16px}#inspectorPanel #detail{height:calc(100% - 58px);overflow:auto;overscroll-behavior:contain}.closeinspector{display:inline-flex;align-items:center;justify-content:center}main{overflow-anchor:none}}@media(prefers-reduced-motion:reduce){#inspectorPanel{transition:none}}

html.graph-gesture-active{overflow:hidden;overscroll-behavior:none}#graphArea{touch-action:none;overscroll-behavior:none}#svg{-webkit-user-select:none;-webkit-touch-callout:none}#svg .node{touch-action:none}

.clickcard{cursor:pointer}.clickcard:hover,.clickcard:focus-visible{outline:1px solid #8ee0bb;outline-offset:2px}.folderhead{display:flex;align-items:center;justify-content:space-between;margin:18px 12px 9px;color:#7b91a6;font-size:9px}.folderhead button{font-size:9px;padding:3px 7px}.folderfilters{max-height:150px;overflow:auto;padding:0 12px}.folderfilters label{display:flex;align-items:center;gap:5px;margin:8px 0;font-size:10px;color:#9fb5c7}.folderfilters span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.folderfilters p{font-size:10px}.metricformula{background:#101b27;padding:14px;border:1px solid #354d5b;border-radius:7px;margin:14px 0;color:#b4e2ce;font:12px/1.8 ui-monospace,monospace}#metricDialog{width:580px;max-width:calc(100vw - 24px)}@media(max-width:680px){.files{max-height:360px}.folderfilters{max-height:110px}}

.node.module rect{fill:#29213d;stroke:#b195d7}.unresolved{margin:12px 0;padding:10px;background:#211e2d;border:1px solid #564868;border-radius:6px;font-size:10px}.unresolved p{font-size:10px;margin-top:7px;overflow-wrap:anywhere}

#compareDialog{width:1100px;max-width:calc(100vw - 20px);max-height:90vh;padding:22px}.comparesources{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:end;margin-top:14px}.comparesources label{font-size:11px;color:#99b4c6}.comparesources select{display:block;width:100%;padding:9px;margin-top:6px;background:#162230;color:#d0dfec;border:1px solid #3b5266;border-radius:6px;font-size:11px}.compareoptions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:16px 0;font-size:11px}.compareoptions span{margin-left:auto;color:#a1debf}.comparepaths{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:10px;font:10px ui-monospace,monospace;color:#9eb7ce;overflow-wrap:anywhere}.diffscroll{overflow:auto;max-height:55vh;border:1px solid #3a4c5d;border-radius:6px;background:#0d1520}.diffrow{display:grid;grid-template-columns:1fr 1fr;min-width:700px}.diffcell{display:flex;min-width:0;font:11px/1.8 ui-monospace,monospace;border-right:1px solid #364657}.diffcell span{flex:0 0 45px;text-align:right;padding-right:10px;color:#7f94a5;user-select:none}.diffcell code{white-space:pre-wrap;overflow-wrap:anywhere;padding:0 10px;min-width:0;flex:1}.diffcell.removed{background:#40242c;color:#f3b5b5}.diffcell.added{background:#173a2d;color:#a1e5bd}.diffcell.same{color:#a1b3c5}.diffcell.gap{background:#19202b}.comparelink{width:100%;margin:0 0 10px;color:#cbb0ef;border-color:#5f4a7c;font-size:10px}#compareNotice{font-size:11px;color:#e4c484}.diffempty{padding:18px}@media(max-width:680px){#compareDialog{padding:14px}.comparesources{grid-template-columns:1fr auto}.comparesources label:last-child{grid-column:1/-1}.comparepaths{font-size:9px}.diffrow{min-width:650px}}

.nodetypebar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:5px 12px 12px;color:#8fa9bd;font-size:10px}#nodeTypeFilters{display:flex;flex-wrap:wrap;gap:5px}#nodeTypeFilters button,#allNodeTypes{font-size:10px;padding:6px 10px;min-height:34px;border-radius:16px}#nodeTypeFilters button.on{color:#a7e8c8;background:#20382e;border-color:#567f6b}@media(pointer:coarse){#nodeTypeFilters button,#allNodeTypes{min-height:40px}}

/* Larger graph workspace; viewport adapts to its actual aspect ratio. */
main{grid-template-columns:190px minmax(420px,1fr) 280px;height:auto;align-items:stretch}.graph{display:flex;flex-direction:column;height:clamp(700px,82vh,1100px);height:clamp(700px,82dvh,1100px)}#graphArea{flex:1;height:auto!important;min-height:340px}#svg{display:block}.graph footer{flex-shrink:0}.graph.filters-collapsed .nodetypebar,.graph.filters-collapsed .filters,.graph.filters-collapsed .filteroptions,.graph.filters-collapsed .layouthint,.graph.filters-collapsed .filterhelp{display:none}.graph.expanded{position:fixed;inset:0;height:100vh;height:100dvh;width:100%;border-radius:0;z-index:25;margin:0}.graph.expanded #graphArea{min-height:0}.graph-expanded{overflow:hidden}.graphhead{flex-shrink:0}.heading{margin:20px 0}.heading h1{font-size:27px}.stats{margin-bottom:16px}.stats>div{padding:12px 16px}.details #detail{height:calc(100% - 58px)}@media(max-width:1100px){main{grid-template-columns:175px minmax(0,1fr)}.details #detail{height:calc(100% - 58px)}}@media(max-width:680px){main{display:flex}.graph{order:-1;height:105vh;height:105dvh;min-height:700px}.graph.expanded{height:100vh;height:100dvh;min-height:0}.files{max-height:350px}.heading{margin:15px 0}.heading h1{font-size:23px}.heading p{font-size:11px}.stats{gap:5px}.stats>div{padding:9px}.stats strong{font-size:22px}.graphhead{gap:10px}.layoutactions{gap:5px}.layoutactions button,.layoutactions select{font-size:10px}.graph.expanded footer{font-size:8px;padding:8px}.graph.expanded .touchcontrols{padding-bottom:6px}}

/* Project drawer + graph-first workspace */
.app{margin-left:260px;padding:0 20px}.projectsidebar{position:fixed;inset:0 auto 0 0;width:260px;z-index:35;background:#111923;border-right:1px solid #2c3b49;display:flex;flex-direction:column;overflow-y:auto;padding:18px 12px;gap:12px}.sidebarbrand{display:flex;justify-content:space-between;align-items:center;padding:0 8px}.sidebarbrand b{font-size:12px;letter-spacing:1.5px;color:#a4eccb}.sidebarbrand button{font-size:22px;padding:3px 8px;border:0;background:none}.sidebarhistoryhead{display:flex;justify-content:space-between;align-items:center;padding:0 8px}.sidebarhistoryhead h2{font-size:12px;font-weight:500;margin:0}.sidebarhistoryhead button{padding:5px 9px}.projectsidebar #historyStorage{font-size:9px;color:#6e8799;padding:0 8px;margin:0}.projectsidebar #historyList{max-height:none;overflow:visible;margin:0;min-height:70px}.projectsidebar .historyrow{display:flex;align-items:center;border:0;background:none;padding:0;margin:2px 0;border-radius:7px}.projectsidebar .historyrow:hover{background:#1b2d3a}.projectsidebar .historyproject{display:block;flex:1;min-width:0;text-align:left;border:0;background:none;padding:10px;color:#bdcfdf;margin:0}.historyproject b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.historyproject span{display:block;font-size:9px;color:#6f879a;margin-top:5px}.projectsidebar .historydelete{padding:8px;margin:0;border:0;background:none;color:#7591a3;font-size:16px}.explorerdetails{border-top:1px solid #2c3d49;padding-top:12px}.explorerdetails summary{cursor:pointer;font-size:11px;color:#a0b7c9;padding:5px}.explorercount{display:flex;justify-content:space-between;font-size:10px;color:#7d95a9;padding:12px}.sidebaractions{border-top:1px solid #2c3d49;padding-top:5px;margin-top:auto;display:flex;flex-direction:column;gap:5px}.sidebaractions button{text-align:left;border:0;background:none;border-radius:6px;font-size:11px;padding:9px 12px}.sidebaractions button:hover{background:#213341}.sidebaractions .smalllabel{margin:10px 12px 7px}.projectsidebar #files{max-height:180px}.sidebar-collapsed .projectsidebar{transform:translateX(-100%)}.sidebar-collapsed .app{margin-left:0}header{min-height:64px;gap:10px}header>div:last-child{gap:8px;justify-content:flex-end}header .badge{display:none}.heading{display:none}.stats{margin:12px 0;gap:9px}.stats>div{padding:10px 14px;gap:7px}.stats strong{font-size:24px}.stats>div>span{font-size:9px}main{display:block}.graph{height:calc(100vh - 180px);height:calc(100dvh - 180px);min-height:620px}.graphhead{padding:10px 14px}.nodetypebar{padding-bottom:8px;gap:10px}.typereset{margin-left:auto;border-left:1px solid #3a4a5b;padding-left:10px}#allNodeTypes{border:0;background:none;border-radius:4px;padding:5px 8px;min-height:30px;font-size:10px;color:#a1b3c2;text-decoration:underline;text-underline-offset:3px}#allNodeTypes:hover{background:#223345}.filteroptions{gap:5px 10px}.filterhelp,.layouthint{font-size:9px;padding-bottom:6px}.touchcontrols{padding-bottom:7px}.bottom{padding:8px 0}.sidebarbackdrop{position:fixed;inset:0;z-index:34;background:#0009;border:0;border-radius:0}.details#inspectorPanel{position:fixed;left:auto;right:12px;top:auto;bottom:12px;width:370px;height:min(78vh,780px);z-index:30;visibility:hidden;pointer-events:none;transform:translateY(calc(100% + 30px));transition:transform .18s,visibility .18s;box-shadow:0 0 0 100vmax #0007}.details#inspectorPanel.inspector-open{visibility:visible;pointer-events:auto;transform:translateY(0)}.closeinspector{display:inline-flex}.details#inspectorPanel .paneltitle{height:58px;align-items:center;padding:8px 16px}.details#inspectorPanel #detail{height:calc(100% - 58px);overscroll-behavior:contain}@media(max-width:1100px){.app{margin-left:0;padding:0 12px}.projectsidebar{transform:translateX(-100%);width:min(300px,86vw)}.sidebar-open .projectsidebar{transform:translateX(0)}header{flex-direction:row;align-items:center;padding:10px 0}header>div:first-child{gap:8px}header>div:last-child{flex:1;gap:6px}header b{font-size:11px;letter-spacing:1px}#projectName{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stats>div>span{display:none}.graph{height:calc(100dvh - 155px);min-height:640px}.graph.expanded{height:100dvh;min-height:0}.details#inspectorPanel{left:12px;right:12px;width:auto;height:72dvh}.graphhead{gap:8px}}@media(max-width:680px){header{gap:8px}header>div:last-child{flex-basis:100%;justify-content:flex-start}header button{min-height:36px}.stats small{font-size:7px;letter-spacing:.6px}.stats strong{font-size:21px}.stats>div{padding:9px}.graph{height:calc(100dvh - 170px);min-height:670px}.graph.expanded{min-height:0}.layoutactions select{padding:6px}.nodetypebar{gap:7px}.typereset{margin-left:auto}#graphArea{min-height:340px}.graph.filters-collapsed{min-height:540px}.graph.expanded.filters-collapsed{min-height:0}}

.sidebaractions .sidebarlink{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 12px;font-size:12px;color:#b5c8d8}.sidebarlink svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#89aebf;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sidebarlink span{line-height:1.4}.sidebaractions .sidebarlink:hover{background:#213747;color:#d3e7f1}.sidebarlink:focus-visible{outline:2px solid #8de0be;outline-offset:-2px}

.sidebarlink strong{display:block;font:inherit;color:inherit}.sidebarlink small{display:block;font-size:9px;color:#718d9f;margin-top:4px}.sidebaractions .sidebarlink.selected{background:#2b2340;color:#d5bff1}.duplicatebanner{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#271e37;border-top:1px solid #4d3b68;border-bottom:1px solid #4d3b68;padding:10px 14px}.duplicatebanner>div{flex:1;min-width:200px}.duplicatebanner strong{font-size:11px;color:#d2b8ef}.duplicatebanner p{font-size:10px;color:#a691be;margin-top:4px;line-height:1.5}.duplicatebanner button{font-size:10px;padding:6px 9px;border-color:#65537c;background:#312541}.graph.filters-collapsed .duplicatebanner{display:flex}

/* Prevent shrinking history under its overflowing rows. */
.projectsidebar{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;gap:14px}.projectsidebar>*{flex-shrink:0}.projectsidebar .historysection{display:flex;flex-direction:column;gap:9px;height:clamp(180px,35vh,360px);height:clamp(180px,35dvh,360px);min-height:180px;overflow:hidden;border-bottom:1px solid #2c3d49;padding-bottom:12px}.projectsidebar .historysection .sidebarhistoryhead,.projectsidebar .historysection #historyStorage{flex:0 0 auto}.projectsidebar .historysection #historyList{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;margin:0;padding:0 2px;overscroll-behavior:contain;scrollbar-width:thin}.projectsidebar .historysection .historyrow{flex-shrink:0;position:relative}.projectsidebar .explorerdetails{position:relative;margin:0;padding-top:0;border-top:0;border-bottom:1px solid #2c3d49;padding-bottom:12px}.projectsidebar .explorerdetails[open]{max-height:45vh;max-height:45dvh;overflow-y:auto;overscroll-behavior:contain}.projectsidebar .sidebaractions{margin-top:0;flex:0 0 auto;border-top:0;padding-top:0}@media(max-height:550px){.projectsidebar .historysection{height:170px;min-height:170px}}

.graphorganization{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:2px 14px 14px;padding:12px 14px;border:1px solid #354959;border-radius:8px;background:#131f2b;flex:0 0 auto;min-width:0}.graphorganization legend{padding:0 7px;color:#b1c9da;font-size:11px;font-weight:600}.graphorganization label{display:flex;flex-direction:column;gap:6px;color:#809fb4;font-size:10px;min-width:145px}.graphorganization select{width:100%;background:#1b2b3b;border:1px solid #456175;border-radius:6px;color:#d0dfec;font-size:12px;padding:9px;min-height:38px}.organizationactions{display:flex;gap:7px;margin-left:auto}.organizationactions button{font-size:11px;min-height:38px}.graphhead .layoutactions{gap:8px}.graph.filters-collapsed .graphorganization{display:flex}@media(max-width:680px){.graphorganization{margin:2px 10px 10px;padding:10px;gap:10px}.graphorganization label{flex:1;min-width:130px}.organizationactions{margin-left:0;flex-basis:100%}.organizationactions button{flex:1}.graphorganization select{font-size:11px}}

.graphsettings{flex:0 0 auto;min-width:0}.graph.filters-collapsed .graphsettings{display:none}.graph.expanded .graphsettings{position:absolute;right:12px;top:60px;z-index:27;width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 130px);overflow-y:auto;border:1px solid #3c596b;background:#121e2a;border-radius:10px;padding:12px 0;box-shadow:0 15px 45px #000a}.graph.expanded .graphhead{min-height:52px;padding:8px 14px;border-bottom:1px solid #2a3e50}.graph.expanded .touchcontrols{padding:7px 14px;gap:8px}.graph.expanded footer{padding:7px 12px}.graph-expanded .projectsidebar,.graph-expanded .sidebarbackdrop{visibility:hidden;pointer-events:none}.graph.expanded #graphArea{min-height:0;flex:1}.graph.expanded .graphhint{bottom:12px}.graph.expanded .graphsettings .graphorganization{margin:3px 12px 12px}.graph.expanded .graphsettings .filteroptions{gap:8px}.graph.expanded .graphsettings .filterhelp{padding:8px 14px}.graph.expanded .graphhead .badge{display:none}@media(max-width:680px){.graph.expanded .graphsettings{top:94px;max-height:calc(100dvh - 160px)}.graph.expanded .graphhead{min-height:86px}.graph.expanded .touchcontrols button{min-height:34px;font-size:10px}}

#graphProjects{display:none}.graph.expanded #graphProjects{display:inline-block}.graph.expanded #projectProgress{margin:8px 14px;flex:0 0 auto;padding:10px 14px}.graph-expanded .projectsidebar{transform:translateX(-100%)}.graph-expanded.sidebar-open .projectsidebar{visibility:visible;pointer-events:auto;transform:translateX(0)}.graph-expanded.sidebar-open .sidebarbackdrop{visibility:visible;pointer-events:auto}.graph.expanded .graphhead .layoutactions{margin-left:auto}.graph.expanded .touchcontrols{padding-top:4px;padding-bottom:4px}.graph.expanded .graphhead{flex-wrap:wrap}.graph-expanded .projectsidebar #sidebarClose{display:inline-block}@media(max-width:680px){.graph.expanded .graphhead .layoutactions{margin-left:0;gap:5px}.graph.expanded #graphProjects{font-size:10px}.graph.expanded .graphhead{min-height:86px}}

.sidebarloaders{display:none}.graph-expanded .sidebarloaders{display:flex;flex-direction:column;gap:8px}.sidebarloaders button{font-size:11px;padding:10px;text-align:left}

/* Progress remains visible even while drawers are open. */
#projectProgress:not([hidden]){position:fixed;left:50%;top:12px;transform:translateX(-50%);width:min(620px,calc(100vw - 24px));z-index:60;margin:0!important;box-shadow:0 12px 40px #0009;pointer-events:none}.graph.expanded #projectProgress{margin:0!important}@media(max-width:680px){#projectProgress:not([hidden]){top:8px;padding:10px 12px}}

.elasticcheck span{display:flex;align-items:center;gap:5px}.elasticcheck input{accent-color:#8de0bb}

.loginpage{display:flex;min-height:100vh;height:auto;align-items:center;justify-content:center;padding:24px}.loginbox{width:410px;max-width:100%;background:#121b26;border:1px solid #344a59;border-radius:14px;padding:30px}.loginbox .brand{margin-bottom:14px}.loginbox h1{margin:5px 0 12px}.loginbox button{width:100%;margin-top:18px}.loginhint{font-size:10px;margin-top:16px}#loginError{color:#f3b2a6;font-size:12px}
