body { padding-left: 252px; }

.a4s-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 500;
    width: 252px;
    padding: 22px 14px;
    background: #131e30;
    color: white;
    overflow-y: auto;
}

.a4s-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 10px 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid #334155;
}

.a4s-sidebar-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
}

.a4s-sidebar-brand strong { display: block; font-size: 19px; }
.a4s-sidebar-brand small { display: block; color: #aebcd0; font-size: 12px; }
.a4s-sidebar nav { display: grid; gap: 6px; }

.a4s-sidebar button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 12px;
    text-align: left;
    font: 600 14px Arial, sans-serif;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}

.a4s-sidebar button:hover,
.a4s-sidebar button:focus-visible {
    background: #27394f;
    color: white;
}

.a4s-sidebar button[aria-current="page"] {
    background: white;
    color: #102a43;
}

body.a4s-sectioned main { max-width: none; margin: 24px auto; }
body.a4s-sectioned .grid { grid-template-columns: minmax(0, 1fr); }
body.a4s-sectioned .grid > .panel { grid-column: 1 / -1; }
body.a4s-sectioned .cmsms-view[hidden] { display: none !important; }

@media (max-width: 900px) {
    body { padding-left: 0; }
    .a4s-sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        padding: 10px;
    }
    .a4s-sidebar-brand { margin: 0 0 8px; padding: 3px 8px 9px; }
    .a4s-sidebar nav { display: flex; overflow-x: auto; gap: 5px; }
    .a4s-sidebar button { width: max-content; min-width: max-content; }
}