:root {
    --vsx-sidebar-w: 320px;
    --vsx-topbar-h: 46px;
    --vsx-line: var(--line, rgba(255, 255, 255, 0.11));
    --vsx-accent: var(--accent, #84f3c3);
    --vsx-text: var(--text, #edf7f3);
    --vsx-muted: var(--muted, #a7b9b1);
    --vsx-soft: var(--soft, #73867e);
    --vsx-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, "Liberation Mono", monospace;
}

body {
    margin: 0 !important;
}

.vsx-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
}

/* ---------- Sidebar ---------- */
.vsx-sidebar {
    width: var(--vsx-sidebar-w);
    flex: 0 0 var(--vsx-sidebar-w);
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.22));
    border-right: 1px solid var(--vsx-line);
    backdrop-filter: blur(8px);
    font-family: var(--vsx-mono);
    z-index: 60;
}

.vsx-sidebar::-webkit-scrollbar {
    width: 9px;
}

.vsx-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 9px;
}

.vsx-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--vsx-line);
    position: sticky;
    z-index: 3;
    top: 0;
    background: rgb(5, 11, 11);
    backdrop-filter: blur(8px);
}

.vsx-brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--vsx-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--vsx-accent);
    font-weight: 800;
    font-family: inherit;
    font-size: 15px;
}

.vsx-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.vsx-brand-text b {
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--vsx-text);
}

.vsx-brand-text span {
    font-size: 10.5px;
    letter-spacing: .06em;
    color: var(--vsx-soft);
}

.vsx-explorer-label {
    padding: 14px 16px 6px;
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--vsx-soft);
}

.vsx-tree {
    padding: 0 4px 12px;
}

.vsx-folder {}

.vsx-folder>summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--vsx-text);
    font-size: 13px;
    letter-spacing: .01em;
}

.vsx-folder>summary::-webkit-details-marker {
    display: none;
}

.vsx-folder>summary:hover {
    background: rgba(255, 255, 255, 0.055);
}

.vsx-chev {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: var(--vsx-muted);
    transform: rotate(0deg);
    transition: transform .15s ease;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 4l4 4-4 4z'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 4l4 4-4 4z'/></svg>") center/contain no-repeat;
}

.vsx-folder[open]>summary .vsx-chev {
    transform: rotate(90deg);
}

.vsx-ico {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    display: inline-block;
}

.vsx-ico-folder {
    background: #8db4d4;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M1.5 3.4h4.2l1.2 1.5h7.6v8.2h-13z'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M1.5 3.4h4.2l1.2 1.5h7.6v8.2h-13z'/></svg>") center/contain no-repeat;
}

.vsx-ico-html {
    background: #e0995e;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.6 1.4h7.2l3.6 3.6v9.6h-10.8z M9.6 1.6v3.4h3.4z'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.6 1.4h7.2l3.6 3.6v9.6h-10.8z M9.6 1.6v3.4h3.4z'/></svg>") center/contain no-repeat;
}

.vsx-file {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--vsx-muted);
    font-size: 13px;
    border-left: 2px solid transparent;
}

.vsx-file:hover {
    background: rgba(255, 255, 255, 0.055);
    color: var(--vsx-text);
}

.vsx-file.active {
    background: rgba(132, 243, 195, 0.13);
    color: var(--vsx-text);
    border-left-color: var(--vsx-accent);
}

.vsx-file.active .vsx-name {
    color: var(--vsx-accent);
}

.vsx-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vsx-side-foot {
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px solid var(--vsx-line);
    font-size: 10.5px;
    color: var(--vsx-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    position: sticky;
    bottom: 0;
    background: rgba(5, 11, 11, 0.6);
    backdrop-filter: blur(8px);
}

.vsx-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vsx-accent);
    box-shadow: 0 0 0 4px rgba(132, 243, 195, 0.16);
    flex: 0 0 7px;
}

/* ---------- Main column + topbar ---------- */
.vsx-mainwrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vsx-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--vsx-topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid var(--vsx-line);
    background: rgba(7, 17, 15, 0.82);
    backdrop-filter: blur(14px);
}

.vsx-hamburger {
    display: none;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vsx-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--vsx-text);
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
}

.vsx-hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.vsx-hamburger svg {
    width: 18px;
    height: 18px;
    display: block;
}

.vsx-crumb {
    font-family: var(--vsx-mono);
    font-size: 12.5px;
    color: var(--vsx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vsx-crumb .sep {
    color: var(--vsx-soft);
    margin: 0 6px;
}

.vsx-crumb .cur {
    color: var(--vsx-text);
}

.vsx-content {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------- Mobile drawer ---------- */
.vsx-overlay {
    display: none;
}

@media (max-width: 860px) {
    .vsx-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: min(84vw, 320px);
        flex-basis: min(84vw, 320px);
        transform: translateX(-102%);
        transition: transform .26s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
                background: var(--bg);
        background-color: var(--bg);
    }

    .vsx-shell.vsx-open .vsx-sidebar {
        transform: translateX(0);
    }

    .vsx-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity .26s ease;
    }

    .vsx-shell.vsx-open .vsx-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .vsx-hamburger {
        display: inline-flex;
    }
}

@media (min-width: 861px) {
    .vsx-sidebar {
        display: flex;
        flex-direction: column;

    }
}