/* Clean scrollbar engine */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
    background: #3f3f46;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* Rendering performance containment rule for large directory structures */
.flat-tree-row {
    content-visibility: auto;
    contain-intrinsic-size: 26px;
}

/* Force syntax highlighting transparency on nested sub-languages */
pre.sh,
.sh,
.sh *,
[class*="sh__"] {
    background-color: transparent !important;
}

/* Ensure code display has buffer space on the right margin */
#workspace-code-pre {
    padding-right: 1.5rem !important;
}

/* System dialog overrides for backdrop transitions */
dialog::backdrop {
    background-color: rgba(9, 9, 11, 0.5);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease-in-out;
}