.app-shell{display:flex;min-height:100vh}.sidebar{width:280px;background:#101828;color:#fff;padding:24px 18px;position:fixed;inset:0 auto 0 0;overflow:auto}.brand-block{display:flex;gap:12px;align-items:center;margin-bottom:28px}.brand-mark{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#06b6d4);display:grid;place-items:center;font-weight:800}.brand-title{font-weight:800}.brand-subtitle{font-size:12px;color:#a8b3c7}.side-nav{display:grid;gap:6px}.side-nav a{padding:11px 12px;border-radius:12px;color:#cbd5e1}.side-nav a.active,.side-nav a:hover{background:rgba(255,255,255,.1);color:#fff}.main-area{margin-left:280px;flex:1;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 32px}.topbar h1{margin:0;font-size:28px}.topbar p{margin:4px 0 0}.topbar-actions{display:flex;align-items:center;gap:12px}.content-wrap{padding:0 32px 32px}@media(max-width:900px){.sidebar{position:static;width:100%;max-height:none}.app-shell{display:block}.main-area{margin-left:0}.topbar{align-items:flex-start;flex-direction:column;padding:20px}.topbar-actions{width:100%;flex-wrap:wrap}.content-wrap{padding:0 20px 24px}}

/* Sidebar repair after Phase 1 navigation update */
.sidebar {
    width: 270px;
    min-width: 270px;
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    background: #0f172a;
    color: #e5e7eb;
    padding: 24px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 18px;
    flex: 0 0 auto;
}

.brand-title {
    font-weight: 900;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.1;
}

.brand-subtitle {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 650;
    font-size: 14px;
    box-sizing: border-box;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-link.active,
.sidebar-link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.sidebar-link-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sidebar-link-disabled:hover {
    background: transparent;
    color: #cbd5e1;
}

.sidebar-section {
    margin: 20px 13px 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.main,
.app-main {
    margin-left: 270px;
    width: calc(100% - 270px);
    min-height: 100vh;
    padding: 32px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .app-layout {
        flex-direction: column;
    }

    .main,
    .app-main {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
}
