/* UI shape toggle — works on classic + new sidebars */
.nave .nav__item--shape-switch {
    margin-top: 4px;
}

.nave .shape-ui-switch {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.nave .shape-ui-switch__track {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background .18s ease, border-color .18s ease;
}

.nave .shape-ui-switch__thumb {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform .18s ease;
}

.nave .shape-ui-switch.is-new .shape-ui-switch__track {
    background: #2563eb;
    border-color: #1d4ed8;
}

.nave .shape-ui-switch.is-new .shape-ui-switch__thumb {
    transform: translateX(14px);
}

.nave .shape-ui-switch:hover .shape-ui-switch__track {
    filter: brightness(0.97);
}

/* Collapsed admin/map rail — keep switch centered like icons */
body.page.admin-layout .nave:not(:hover) .shape-ui-switch,
body.page--shape-new .shape-rail:not(:hover) .shape-ui-switch,
body.page .nave:not(:hover) .shape-ui-switch {
    justify-content: center;
}

body.page.admin-layout.page--shape-admin .nave .shape-ui-switch {
    padding-left: 14px !important;
}

body.page.admin-layout.page--shape-admin .nave:not(:hover) .shape-ui-switch {
    padding-left: 0 !important;
}
