/* A full-height graph surface; panels float above it without shrinking the map. */
.graph-content.main-content.viewport-content{padding:0!important;max-width:none;width:100%;min-height:0;overflow:hidden}
.graph-pro{--g-bg:#111317;--g-panel:rgba(26,29,35,.97);--g-border:#363b46;--g-text:#dce0e8;--g-muted:#999fac;--g-accent:#b7a0e8;display:flex;flex-direction:column;min-height:0;height:100%;width:100%;color:var(--g-text);background:var(--g-bg);font:13px 'DM Sans',sans-serif;overflow:hidden}
[data-theme=light] .graph-pro{--g-bg:#f3f4f8;--g-panel:rgba(255,255,255,.98);--g-border:#d7dae3;--g-text:#3f4653;--g-muted:#697180;--g-accent:#7652bd}
.graph-pro-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;min-height:66px;flex:none;border-bottom:1px solid var(--g-border);background:var(--g-panel)}
.graph-heading{display:flex;gap:10px;align-items:center;min-width:0}.graph-mark{font-size:23px;color:var(--g-accent)}.graph-heading h1{margin:0;font:500 15px 'DM Sans',sans-serif;line-height:1.4}.graph-subtitle{font-size:11px;color:var(--g-muted)}
.graph-toolbar{display:flex;gap:4px;align-items:center;flex:none}.graph-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--g-muted);font:22px 'DM Sans',sans-serif;cursor:pointer;transition:color .15s,background .15s;flex:none}.graph-icon:hover,.graph-icon[aria-pressed=true]{background:color-mix(in srgb,var(--g-accent) 12%,transparent);color:var(--g-text)}.graph-icon:disabled{opacity:.4;cursor:wait}.graph-pro button:focus-visible,.graph-pro canvas:focus-visible,.graph-pro input:focus-visible,.graph-pro select:focus-visible{outline:2px solid var(--g-accent);outline-offset:-2px}
.graph-stage{flex:1 1 0;position:relative;min-height:0!important;height:auto!important;border:0;border-radius:0;overflow:hidden;background:var(--g-bg)}
#vault-graph{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
.graph-status{position:absolute;top:15px;left:18px;color:var(--g-muted);font-size:11px;pointer-events:none;max-width:calc(100% - 90px);line-height:1.6}.graph-status span{padding:0 5px;opacity:.5}.graph-controls{position:absolute;bottom:18px;left:16px;display:flex;gap:2px;align-items:center;border:1px solid var(--g-border);border-radius:10px;padding:3px;background:var(--g-panel);box-shadow:0 6px 20px #0002}.graph-controls .graph-icon{font-size:22px}
.graph-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:33px;padding:7px 18px;font-size:10px;line-height:1.5;color:var(--g-muted);border-top:1px solid var(--g-border);background:var(--g-panel);flex:none}.graph-readonly{white-space:nowrap;opacity:.8}
.graph-tooltip{position:absolute;z-index:5;pointer-events:none;max-width:210px;padding:7px 10px;border:1px solid var(--g-border);border-radius:7px;background:var(--g-panel);color:var(--g-text);font-size:12px;box-shadow:0 8px 30px #0003;overflow-wrap:anywhere}.graph-tooltip[hidden]{display:none}
.graph-floating{position:absolute;z-index:6;width:300px;max-width:calc(100% - 28px);display:flex;flex-direction:column;min-height:0;border:1px solid var(--g-border);border-radius:12px;background:var(--g-panel);box-shadow:0 14px 50px #0004;overflow:hidden;backdrop-filter:blur(16px)}
.graph-floating>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:8px 12px 8px 16px;border-bottom:1px solid var(--g-border)}.graph-floating>header h2{font:500 13px 'DM Sans',sans-serif;margin:0}.graph-panel-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;padding:16px;line-height:1.55}.graph-settings{right:14px;top:48px;max-height:calc(100% - 66px)}
.graph-filters{display:grid;gap:12px;margin:0}.graph-filter-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.graph-settings label{display:grid;gap:6px;color:var(--g-muted);font-size:12px}.graph-settings input:not([type=checkbox]),.graph-settings select{width:100%;min-width:0;border:1px solid var(--g-border);border-radius:7px;padding:9px 10px;background:var(--g-bg);color:var(--g-text);font:13px 'DM Sans',sans-serif;min-height:38px}.graph-settings input[type=range]{padding:0;accent-color:var(--g-accent);cursor:pointer;border:0}.graph-settings .graph-check{display:flex;align-items:center;gap:10px;min-height:34px}.graph-check input{accent-color:var(--g-accent);width:16px;height:16px;margin:0}.graph-settings-section{display:grid;gap:10px;border-top:1px solid var(--g-border);margin-top:18px;padding-top:16px}.graph-settings-section h3{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--g-text);margin:0 0 2px}.graph-muted{font-size:11px;line-height:1.6;color:var(--g-muted);margin-top:16px}.graph-pro .btn{font-size:12px;min-height:38px;border-radius:7px;background:transparent;color:var(--g-text);border:1px solid var(--g-border);padding:9px 12px}.graph-pro .btn-primary{background:var(--g-accent);color:#19151f;border-color:transparent}.graph-pro .btn:hover{filter:brightness(1.08)}
.graph-detail{right:16px;top:48px;max-height:calc(100% - 70px);padding:0}.graph-detail h2{font:500 18px 'DM Sans',sans-serif;line-height:1.4;margin:0 0 8px;overflow-wrap:anywhere}.graph-kind{font-size:10px;color:var(--g-accent);text-transform:uppercase;letter-spacing:.07em}.graph-path{font:10px/1.6 'JetBrains Mono',monospace;color:var(--g-muted);overflow-wrap:anywhere}.graph-chips{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0}.graph-chips span{border:1px solid var(--g-border);border-radius:20px;padding:3px 9px;font-size:10px;color:var(--g-muted)}.graph-detail-actions{display:flex;flex-direction:column;gap:8px;margin:16px 0}.graph-detail h3{font-size:12px;font-weight:500;margin:20px 0 8px}.graph-neighbors button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background:transparent;color:var(--g-text);border:0;border-bottom:1px solid var(--g-border);padding:10px 0;font:12px 'DM Sans',sans-serif;min-height:40px;text-align:left;cursor:pointer}.graph-neighbors small{color:var(--g-muted);font-size:10px;flex:none}.graph-neighbors span{overflow-wrap:anywhere;min-width:0}
.graph-list{left:14px;top:48px;max-height:calc(100% - 122px)}.graph-list .graph-panel-scroll>button{width:100%;display:block;text-align:left;padding:12px 0;background:transparent;border:0;border-bottom:1px solid var(--g-border);color:var(--g-text);cursor:pointer;min-height:44px;font:12px 'DM Sans',sans-serif;overflow-wrap:anywhere}.graph-list strong{font-weight:500}.graph-list small{display:block;color:var(--g-muted);font-size:10px;margin-top:4px}.graph-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-top:1px solid var(--g-border);flex:none;color:var(--g-muted);font-size:11px}.graph-text-button,.graph-global{background:transparent;color:var(--g-text);border:1px solid var(--g-border);border-radius:6px;min-height:34px;padding:6px 9px;font:11px 'DM Sans',sans-serif;cursor:pointer}.graph-text-button:disabled{opacity:.3}.graph-global{color:var(--g-accent)}
.graph-empty{position:absolute;inset:40% 16px auto;text-align:center;color:var(--g-muted);font-size:13px}.graph-empty p{margin-bottom:10px}.graph-layout-notice{position:absolute;left:16px;right:16px;bottom:80px;background:var(--g-panel);border:1px solid var(--g-border);border-radius:8px;padding:10px;font-size:12px;color:var(--g-muted)}.graph-layout-notice[hidden]{display:none}
.graph-expanded{position:fixed;inset:0;z-index:250;height:100dvh!important;width:100vw;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:700px){.graph-pro-header{padding:8px 10px;gap:4px;min-height:62px}.graph-heading{gap:7px}.graph-heading h1{font-size:14px}.graph-mark{display:none}.graph-subtitle{font-size:10px}.graph-icon{min-width:40px;width:40px;min-height:44px;height:44px}.graph-toolbar{gap:0}.graph-toolbar .graph-global{font-size:0;min-width:32px;padding:5px}.graph-toolbar .graph-global::after{content:'←';font-size:20px}.graph-status{left:12px;top:12px;font-size:10px}.graph-controls{bottom:12px;left:12px;padding:1px}.graph-controls .graph-icon{width:42px;min-width:42px}.graph-footer{padding:7px 12px;font-size:9px;gap:8px;min-height:32px}.graph-footer #graph-help{max-width:78%}.graph-floating{max-width:calc(100% - 24px)}.graph-settings{top:40px;left:12px;right:12px;width:auto;max-height:calc(100% - 60px)}.graph-settings label{font-size:12px}.graph-settings input:not([type=checkbox]),.graph-settings select{font-size:16px!important;min-height:44px}.graph-settings .graph-check{min-height:40px}.graph-settings .graph-check input{height:20px;width:20px}.graph-detail{top:auto;bottom:64px;left:12px;right:12px;width:auto;max-height:48%;border-radius:12px}.graph-detail .graph-panel-scroll{padding:12px 14px}.graph-detail h2{font-size:16px}.graph-detail-actions{flex-direction:row;margin:12px 0}.graph-detail-actions .btn{flex:1;min-height:44px;padding:8px;font-size:11px}.graph-detail h3{margin:14px 0 6px}.graph-list{left:12px;top:40px;right:12px;width:auto;max-height:calc(100% - 110px)}.graph-pro .btn{min-height:44px}.graph-pagination button{min-height:44px}.graph-pro .graph-stage{height:auto!important;min-height:0!important}}
@media(prefers-reduced-motion:reduce){.graph-pro *{transition:none!important;scroll-behavior:auto!important}}
/* Keep legacy mobile form rules from changing the floating graph panels. */
.graph-pro .graph-filters{grid-template-columns:minmax(0,1fr)}.graph-pro .graph-filters>label:first-child,.graph-pro .graph-filters>.btn,.graph-pro .graph-filter-pair label{grid-column:auto}.graph-pro .graph-detail{max-height:calc(100% - 70px)}@media(max-width:700px){.graph-pro .graph-detail{max-height:48%}}

.graph-icon svg{width:19px;height:19px;display:block;flex:none}

.graph-heading{flex:1}.graph-heading>div{min-width:0}.graph-heading h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:700px){.graph-icon{width:44px;min-width:44px}.graph-controls .graph-icon{width:44px;min-width:44px}}
