html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vista-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.vista-shell-nav {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 1rem;
}

.vista-shell-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem;
    margin-bottom: 1rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
}

.vista-shell-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.vista-shell-links {
    display: grid;
    gap: .35rem;
}

.vista-shell-links a {
    display: flex;
    align-items: center;
    gap: .7rem;
    border-radius: .75rem;
    padding: .7rem .8rem;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
}

.vista-shell-links a:hover,
.vista-shell-links a[aria-current="page"] {
    background: #eff6ff;
    color: #1d4ed8;
}

.vista-shell-main {
    min-width: 0;
}

.vista-shell-topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e5e7eb;
}

.vista-shell-menu-button {
    display: none;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: .65rem;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.vista-shell-content {
    min-width: 0;
}

.vista-shell-overlay {
    display: none;
}

.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background-color: #f3f4f6; }
.scrollbar-thin::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 9999px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background-color: #9ca3af; }

@media (max-width: 768px) {
    .vista-shell { display: block; }
    .vista-shell-nav {
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: min(82vw, 280px);
        transform: translateX(-105%);
        transition: transform .2s ease;
        box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
    }
    .vista-shell-nav.is-open { transform: translateX(0); }
    .vista-shell-menu-button { display: inline-flex; }
    .vista-shell-overlay.is-open {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 900;
        background: rgba(15, 23, 42, .45);
    }
}
