/* Nexus Control — Portal Container */

#nxctl-portal {
    position:   fixed;
    inset:      0;
    z-index:    2147483647; /* maximum z-index — nothing renders above this */
    overflow:   hidden;
    font-family: var(--nc-font);
    font-size:  var(--nc-fs-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color:       var(--nc-text);
    background:  var(--nc-bg);
}

/* Scrollbar styling — scoped to portal only */
#nxctl-portal ::-webkit-scrollbar       { width: 5px; height: 5px; }
#nxctl-portal ::-webkit-scrollbar-track { background: transparent; }
#nxctl-portal ::-webkit-scrollbar-thumb {
    background: var(--nc-border);
    border-radius: var(--nc-radius-full);
}
#nxctl-portal ::-webkit-scrollbar-thumb:hover {
    background: var(--nc-muted);
}

/* Focus ring — accessible but styled */
#nxctl-portal :focus-visible {
    outline: 2px solid var(--nc-accent);
    outline-offset: 2px;
}

/* Selection */
#nxctl-portal ::selection {
    background: rgba(var(--nc-accent-rgb), .25);
    color: var(--nc-text);
}

/* Code / monospace */
#nxctl-portal code,
#nxctl-portal .nc-mono {
    font-family: var(--nc-font-mono);
    font-size: 0.9em;
    letter-spacing: -0.01em;
}
