/* Network controls, loaded after the profile bundle; colours follow the active theme. */
html[data-portal-ui="vristo"] .vn-redesign .vn-toolbar{gap:10px;padding:10px 16px;align-items:center;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
html[data-portal-ui="vristo"] .vn-redesign .vn-layers{flex:0 0 auto;flex-wrap:nowrap;overflow:visible;gap:5px;min-width:0;max-width:none}
html[data-portal-ui="vristo"] .vn-redesign .vn-layers .btn{height:32px;min-height:32px;padding:0 8px;gap:4px;font-size:12px;font-weight:500}
html[data-portal-ui="vristo"] .vn-redesign .vn-layers #pg-politics-chip{margin-inline-start:0;border-inline-start-width:1px}
html[data-portal-ui="vristo"] .vn-redesign .vn-views{position:static;gap:2px;padding:2px;box-shadow:none}
html[data-portal-ui="vristo"] .vn-redesign .vn-views .tab{height:30px;min-height:30px;padding:0 9px;gap:5px;font-size:12px;font-weight:500}
html[data-portal-ui="vristo"] .vn-redesign .vn-views .tab>span{display:inline}
html[data-portal-ui="vristo"] .vn-redesign .vn-views .tab i{font-size:12px}
html[data-portal-ui="vristo"] .vn-redesign .vn-views .tab:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
html[data-portal-ui="vristo"] .vn-redesign .vn-toolbar-group{gap:6px}
html[data-portal-ui="vristo"] .vn-redesign #pg-depth-group{padding:2px}
html[data-portal-ui="vristo"] .vn-redesign .pg-depth{height:28px;min-height:28px;min-width:28px;padding:0 7px;font-size:12px}
html[data-portal-ui="vristo"] .vn-redesign [data-network-office-scope]{margin-inline-start:auto;flex:none;flex-wrap:nowrap;white-space:nowrap;gap:6px;font-size:12px;max-width:100%;color:var(--color-base-content)}
html[data-portal-ui="vristo"] .vn-redesign #pg-office-scope{height:32px;min-height:32px;width:auto;max-width:100%;padding-block:0;font-size:12px}
html[data-portal-ui="vristo"] .vn-redesign [data-office-scope-status]:empty{display:none}
html[data-portal-ui="vristo"] .vn-redesign [data-office-scope-status]:not(:empty){font-size:11px}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip{gap:8px 12px;padding:8px 16px;align-items:center;flex-wrap:nowrap;border-inline-start-width:2px}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip>span{display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;flex:1 1 auto;min-width:0;line-height:1.5}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip b{font-size:12px;font-weight:600}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip small{font-size:11px;line-height:1.5;white-space:nowrap;cursor:help}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip .btn{height:32px;min-height:32px;padding:0 10px;white-space:nowrap;font-size:12px}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip form{flex:none;flex-wrap:nowrap;gap:6px;margin:0;max-width:100%}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip form label{display:flex;align-items:center;white-space:nowrap;gap:6px;font-size:11px}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip input[type="date"]{display:inline-flex;position:static;box-sizing:border-box;width:10.5rem;min-width:10.5rem;max-width:100%;height:32px;min-height:32px;padding:0 9px;font-family:inherit;font-size:13px;line-height:normal;color:var(--color-base-content);color-scheme:inherit;background:var(--color-base-100);font-variant-numeric:tabular-nums;direction:ltr}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip input[type="date"]::-webkit-datetime-edit{min-width:0;padding:0}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip input[type="date"]::-webkit-calendar-picker-indicator{position:static;inset:auto;flex:none;width:16px;height:16px;margin:0;margin-inline-start:8px;padding:0;opacity:.8;cursor:pointer}
@media(max-width:899px){
 html[data-portal-ui="vristo"] .vn-redesign .vn-toolbar{padding:10px 12px;justify-content:flex-start;gap:10px;min-height:0}
 html[data-portal-ui="vristo"] .vn-redesign .vn-layers .btn{min-height:36px;height:36px}
 html[data-portal-ui="vristo"] .vn-redesign .vn-views .tab{min-height:36px;height:36px;padding:0 8px}
 html[data-portal-ui="vristo"] .vn-redesign [data-network-office-scope]{margin-inline-start:0}
 html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip{padding:8px 12px;flex-wrap:wrap}
 html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip>span{flex-basis:100%;min-width:0}
 html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip .btn,html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip input[type="date"]{height:36px;min-height:36px}
}

/* Footer is a sibling of the graph grid, never a canvas overlay. */
html[data-portal-ui="vristo"] .vn-redesign [data-network-footer]{position:relative;display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;min-height:48px;padding:8px 16px;border-block-start:1px solid var(--color-base-300);background:var(--color-base-100);color:var(--color-base-content)}
html[data-portal-ui="vristo"] .vn-redesign [data-network-footer] .vn-zoom{position:static;inset:auto;margin:0;display:flex;flex:none;flex-direction:row;box-shadow:none;z-index:auto}
html[data-portal-ui="vristo"] .vn-redesign [data-network-footer] .vn-zoom .btn{height:32px;min-height:32px;width:32px;padding:0 8px;font-size:12px}
html[data-portal-ui="vristo"] .vn-redesign [data-network-footer] .vn-zoom #pg-fit{width:auto;gap:6px}
html[data-portal-ui="vristo"] .vn-redesign #pg-network-map-options{position:static;inset:auto;bottom:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;max-width:none;margin:0;padding:0;background:transparent;z-index:auto}
html[data-portal-ui="vristo"] .vn-redesign #pg-network-map-options .vn-filter{display:flex;align-items:center;gap:7px;min-height:32px;font-size:12px;white-space:nowrap;cursor:pointer}
html[data-portal-ui="vristo"] .vn-redesign [data-network-layout-actions]{display:flex;align-items:center;gap:8px;margin-inline-start:auto;flex-wrap:wrap}
html[data-portal-ui="vristo"] .vn-redesign [data-network-layout-actions] .btn{height:32px;min-height:32px;padding:0 10px;gap:6px;font-size:12px;white-space:nowrap}
html[data-portal-ui="vristo"] .vn-redesign [data-network-reset-count]{font-size:10px;font-weight:400}
html[data-portal-ui="vristo"] .vn-redesign.pg-fullscreen [data-network-footer],html[data-portal-ui="vristo"] .vn-redesign.pg-fullscreen #pg-politics-strip{flex:0 0 auto}
html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip>label{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;cursor:pointer}
@media(max-width:899px){
 html[data-portal-ui="vristo"] .vn-redesign [data-network-footer]{gap:8px 12px;padding:8px 12px}
 html[data-portal-ui="vristo"] .vn-redesign [data-network-footer] .btn,html[data-portal-ui="vristo"] .vn-redesign #pg-network-map-options .vn-filter{min-height:36px;height:36px}
 html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip form{flex-wrap:wrap}
 html[data-portal-ui="vristo"] .vn-redesign #pg-politics-strip form label{flex-wrap:wrap}
}

/* Fullscreen has one measured canvas height, including politics and the footer. */
html[data-portal-ui="vristo"] #pg-graph-card.vn-redesign.pg-fullscreen{height:100dvh!important;max-height:100dvh;min-height:0!important;padding:0!important}
html[data-portal-ui="vristo"] #portal-main-container #pg-graph-card.vn-redesign.pg-fullscreen>.card-body{height:100%!important;min-height:0!important;display:flex!important;flex-flow:column nowrap;gap:0;overflow:hidden}
html[data-portal-ui="vristo"] #portal-main-container #pg-graph-card.vn-redesign.pg-fullscreen>.card-body>.vn-grid{display:grid!important;flex:0 0 var(--fn-fullscreen-graph-height,1px)!important;height:var(--fn-fullscreen-graph-height,1px)!important;min-height:0!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden}
html[data-portal-ui="vristo"] #pg-graph-card.vn-redesign.pg-fullscreen .vn-stage{height:var(--fn-fullscreen-graph-height,1px)!important;min-height:0!important;align-self:stretch}
html[data-portal-ui="vristo"] #pg-graph-card.vn-redesign.pg-fullscreen .vn-stage #graf{height:100%!important;min-height:0!important;max-height:none!important}
html[data-portal-ui="vristo"] #pg-graph-card.vn-redesign.pg-fullscreen>.card-body>:is(.vn-head,.vn-toolbar,#pg-politics-strip,[data-network-footer]){flex:0 0 auto}
