/* Shared graph scale and the paper preview that follows the reading position. */
.lx-root,.mm-root.mm-explorer { --graph-stage-height:clamp(500px,64vh,820px); --mm-graph-height:var(--graph-stage-height); }
.lx-root .lx-canvas { height:var(--graph-stage-height); }
.lx-inspector-slot { position:relative; min-width:0; min-height:0; }
.lx-inspector-slot > .lx-inspector { position:absolute; inset:0; height:100%; }
.lx-inspector-actions { display:flex;align-items:center;gap:7px; }
.lx-root .lx-quick-compare { font-size:11px;padding:6px 9px;border-radius:8px;white-space:nowrap;background:#f1e8ff;color:#8054cd;margin:0; }
.lx-root .lx-quick-compare[aria-pressed="true"] { background:#e8f6f2;color:#279582; }
.lx-root .lx-float-close { display:none; }
.lx-inspector.lx-is-floating { position:fixed;inset:22px 22px 22px auto;z-index:960;width:min(440px,calc(100vw - 40px));height:auto!important;max-height:none;max-width:none;margin:0;padding:0;border:0;border-radius:20px;background:linear-gradient(140deg,#fffffff5,#fbf7fff5);box-shadow:0 18px 70px #583a7833,0 1px 8px #583a7810;backdrop-filter:blur(24px);transform-origin:top left; }
.lx-root .lx-is-floating .lx-float-close { display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;font-size:21px;background:#f3eef8;border-radius:50%;padding:0; }
.lx-root .lx-is-floating .lx-inspector-bar { min-height:58px;padding:12px 19px; }
.lx-root .lx-is-floating .lx-inspector-content { padding:8px 24px 24px; }
.lx-has-floating-preview .lx-inspector-slot { background:linear-gradient(140deg,#fff,#fffdff); }
.lx-workspace.graph-viewport-expanded .lx-inspector-slot { height:100%;min-height:0; }
.lx-node,.mm-node,.mm-cluster { touch-action:none; }
.lx-node { cursor:grab; }
.lx-is-dragging .lx-node { cursor:grabbing; }
@media(max-width:1080px) { .lx-root,.mm-root.mm-explorer { --graph-stage-height:clamp(420px,58vh,650px); } }
@media(max-width:680px) {
 .lx-root,.mm-root.mm-explorer { --graph-stage-height:440px; }
 .lx-root .lx-workspace.lx-is-stacked .lx-inspector-slot { height:460px; }
 .lx-root .lx-inspector.lx-is-floating { inset:14vh 8px 8px;width:auto;border-radius:18px; }
 .lx-root .lx-is-floating .lx-inspector-content { padding:6px 19px 20px; }
 .lx-root .lx-atlas-top { align-items:center; }
 .lx-root .lx-graph-tools { flex-wrap:wrap; }
 .lx-root .graph-viewport-expanded .lx-inspector-slot { height:100%; }
}
@media(prefers-reduced-motion:reduce) { .lx-is-floating { transition:none; } }

/* The selection controls stay with the document list's frozen heading. */
.lx-root { --lx-floating-width:clamp(320px,34vw,440px); }
.lx-inspector.lx-is-floating { width:var(--lx-floating-width); }
.lx-mini-index { transition:margin-right 420ms cubic-bezier(.22,1,.36,1); }
.lx-root .lx-mini-index > .lx-index-heading {
 position:sticky;top:0;z-index:30;min-height:60px;padding:12px 0;
 margin-bottom:0;background:#faf7fdf5;backdrop-filter:blur(20px);
 flex-wrap:wrap;gap:10px;
}
.lx-root .lx-index-heading > h2 { flex:none;white-space:nowrap; }
.lx-root .lx-index-heading > .lx-visible-count { flex:none;font-size:11px;white-space:nowrap; }
.lx-root[data-comparison="false"] .lx-visible-count { margin-left:auto; }
.lx-root .lx-index-heading > .lx-compare-bar {
 position:static;inset:auto;z-index:auto;display:flex;flex:1;min-width:240px;
 margin:0;padding:0;gap:10px;background:none;border:0;border-radius:0;box-shadow:none;
 backdrop-filter:none;animation:none;
}
.lx-root .lx-index-heading > .lx-compare-bar[hidden] { display:none; }
.lx-root .lx-compare-selection { flex:1;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:6px;padding:3px 0; }
.lx-root .lx-compare-selection button { flex:0 1 145px;min-width:52px;max-width:145px; }
.lx-root .lx-compare-selection .lx-compare-chip-title { margin:0;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit; }
.lx-root .lx-compare-count { flex:none;white-space:nowrap; }
.lx-root .lx-compare-actions { gap:8px; }
.lx-root .lx-index-heading > [data-lx-all-index] { margin-left:auto;align-self:center;padding:0;white-space:nowrap; }
.lx-root[data-comparison="true"] .lx-mini-index [data-lx-all-index] { display:none; }
.lx-root .lx-full-index .lx-index-heading { flex-wrap:wrap;gap:10px; }
@media(min-width:900px) {
 .lx-has-floating-preview .lx-mini-index { margin-right:calc(var(--lx-floating-width) + 16px); }
}
@media(max-width:899px) {
 .lx-root .lx-inspector.lx-is-floating { top:auto;bottom:8px;left:8px;right:8px;width:auto;height:min(54vh,520px)!important; }
 .lx-has-floating-preview .lx-mini-index { padding-bottom:min(54vh,520px); }
 .lx-root .lx-index-heading > .lx-compare-bar { flex-basis:100%;min-width:0; }
 .lx-root .lx-index-heading > .lx-visible-count { margin-left:auto; }
}
@media(prefers-reduced-motion:reduce) { .lx-mini-index { transition:none; } }
