/* DASH base layer (scoped to .dash-scope to avoid affecting legacy pages). */

.dash-scope {
    font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    color: var(--color-text-primary);
}

.dash-scope * {
    box-sizing: border-box;
}

.dash-scope :focus-visible {
    outline: 2px solid rgba(16, 120, 190, 0.55);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .dash-scope * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* Universal thin scrollbars within DASH-scoped surfaces (all overflow axes). */
.dash-scope,
.dash-scope * {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.dash-scope::-webkit-scrollbar,
.dash-scope *::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

.dash-scope::-webkit-scrollbar-track,
.dash-scope::-webkit-scrollbar-corner,
.dash-scope *::-webkit-scrollbar-track,
.dash-scope *::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

.dash-scope::-webkit-scrollbar-thumb,
.dash-scope *::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background-clip: padding-box;
}

.dash-scope::-webkit-scrollbar-thumb:hover,
.dash-scope *::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

.dash-scope::-webkit-scrollbar-thumb:active,
.dash-scope *::-webkit-scrollbar-thumb:active {
    background-color: var(--scrollbar-thumb-active);
}

.dash-scope::-webkit-scrollbar-button,
.dash-scope *::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

/* Opt-in alias for scroll regions outside a .dash-scope ancestor (e.g. Pinnacle main). */
.dash-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.dash-scroll::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

.dash-scroll::-webkit-scrollbar-track,
.dash-scroll::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

.dash-scroll::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background-clip: padding-box;
}

.dash-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
}

.dash-scroll::-webkit-scrollbar-thumb:active {
    background-color: var(--scrollbar-thumb-active);
}

.dash-scroll::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

