:root { --rail-width: 76px; --panel-width: 260px; }
.navigation-shell { position: fixed; inset-block: 0; inset-inline-start: 0; display: flex; z-index: 30; color: #e7f0f8; font-family: var(--font-menu); }
.module-rail { width: var(--rail-width); background: #041c30; border-inline-end: 1px solid #29475b; display: flex; align-items: center; flex-direction: column; padding: 24px 7px 18px; }
.brand-mark { width: 41px; height: 41px; border: 5px solid #08a5ef; border-radius: 50%; font: bold 28px/30px Arial, sans-serif; text-align: center; color: white; margin-bottom: 24px; }
.module-nav { display: flex; flex-direction: column; gap: 12px; width: 100%; overflow-y: auto; }
.module-button { border: 0; background: none; color: #e8f3ff; display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 12px 2px; border-radius: 10px; width: 100%; min-height: 72px; }
.module-button .icon { width: 30px; height: 30px; }
.module-button span { font-size: 10px; line-height: 1.7; }
.module-button[aria-pressed=true] { background: var(--color-primary); color: white; }
.module-button:disabled { opacity: .65; }
.rail-avatar { margin-top: auto; flex-shrink: 0; width: 42px; height: 42px; background: #355774; border-radius: 50%; display: grid; place-items: center; }
.screen-panel { width: var(--panel-width); background: #062238; display: flex; flex-direction: column; min-height: 0; }
.panel-header { padding: 24px 18px 0; }
.menu-brand { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 27px; }
.menu-brand img { width: 176px; height: auto; display: block; }
.panel-toggle { position: absolute; inset-inline-end: -14px; top: -7px; border: 0; color: white; background: none; font: 28px Arial; width: 28px; height: 36px; }
#closeMobile { display: none; }
.panel-header h2 { font-size: 18px; font-weight: 800; line-height: 1.7; }
.panel-header p { color: #aec7d9; font-size: 12px; margin: 2px 0 18px; }
.menu-search { display: flex; align-items: center; border: 1px solid #416075; border-radius: 8px; padding: 0 10px; height: 42px; gap: 7px; color: #a7bfd0; }
.menu-search .icon { width: 18px; height: 18px; }
.menu-search input { background: none; border: 0; color: white; font-size: 12px; width: 100%; padding: 8px 0; }
.menu-search input::placeholder { color: #a7bfd0; }
.screen-nav { overflow-y: auto; padding: 17px 12px; flex: 1; min-height: 0; }
.screen-link { display: block; width: 100%; text-align: start; border: 0; background: none; color: #dce9f5; font-size: 13px; line-height: 1.8; padding: 10px 12px; border-radius: 7px; position: relative; }
.screen-link:hover:not(:disabled) { background: #123e5a; }
.screen-link:disabled { opacity: .7; }
.screen-link.active, .screen-link.active:hover { background: var(--color-primary); color: white; font-weight: 700; }
.settings-tree { margin-top: 16px; }
.settings-tree summary { display: flex; align-items: center; justify-content: space-between; padding: 12px; cursor: pointer; font-weight: 700; list-style: none; }
.settings-tree summary::-webkit-details-marker { display: none; }
.settings-tree summary span { font-family: Arial, sans-serif; }
.settings-leaves { margin-inline-start: 14px; padding-inline-start: 10px; border-inline-start: 1px solid #36546b; }
.settings-leaves .screen-link { font-size: 12px; padding: 9px 8px; }
.settings-leaves .screen-link::before { content: ''; position: absolute; inset-inline-start: -11px; top: 50%; width: 10px; border-top: 1px solid #36546b; }
.screen-panel footer { padding: 19px 5px; margin: 0 20px; border-top: 1px solid #29475b; color: #9fb8cc; font-size: 10px; text-align: center; }
.menu-empty { text-align: center; color: #b0c6d8; padding: 20px 0; font-size: 12px; }
.app-content { margin-inline-start: calc(var(--rail-width) + var(--panel-width)); min-height: 100vh; }
.panel-collapsed .screen-panel { display: none; }
.panel-collapsed .app-content { margin-inline-start: var(--rail-width); }
.expand-panel { position: fixed; inset-inline-start: calc(var(--rail-width) + 5px); top: 20px; background: #062238; color: white; border: 0; border-radius: 7px; width: 30px; height: 34px; font: 24px Arial; z-index: 31; }
.menu-overlay { display: none; }
@media (max-width: 760px) {
    :root { --rail-width: 68px; --panel-width: min(260px, calc(100vw - 68px)); }
    .navigation-shell { visibility: hidden; }
    .menu-open .navigation-shell { visibility: visible; }
    .app-content, .panel-collapsed .app-content { margin-inline-start: 0; }
    .panel-collapsed .screen-panel { display: flex; }
    .expand-panel, #collapsePanel { display: none !important; }
    #closeMobile { display: block; }
    .menu-overlay { display: block; position: fixed; inset: 0; background: #102c4780; border: 0; z-index: 29; width: 100%; height: 100%; }
    .menu-open { overflow: hidden; }
    .panel-header { padding-top: 20px; }
    .screen-panel footer { padding-block: 13px; }
}
