/* Keep sidebar visuals identical when page-specific stylesheets load. */
.sidebar { background:#111827; color:#e5eaf3; border-right:1px solid #263247; padding:25px 16px; }
.sidebar .brand { display:block; padding:4px 2px 30px !important; }
.sidebar .brand-logo-shell { display:flex; align-items:center; justify-content:center; width:100%; height:auto; padding:0 !important; background:transparent !important; border-radius:0 !important; box-shadow:none !important; overflow:hidden; }
.sidebar .brand-logo { display:block; width:100%; height:auto; max-height:88px; object-fit:contain; filter:drop-shadow(0 5px 12px #0005); }
.sidebar nav a { color:#aab5c7; transition:none; transform:none; }
.sidebar nav a.active { background:linear-gradient(90deg,#13c6f225,#13c6f20b); box-shadow:inset 3px 0 #13c6f2; color:#fff; }
.sidebar nav a:hover { background:#273247; color:#fff; box-shadow:none; }
.sidebar .sidefoot { color:#7e8ba0; }
.sidebar .sidefoot span { color:#e5ad39; }

/* Shared compact sidebar rules, loaded after page-specific styles. */
@media (max-width: 850px) {
  body .sidebar .brand > .brand-logo-shell { display: flex !important; width: 50px; height: 50px; padding: 3px; justify-content: center; }
  body .sidebar .brand .brand-logo { width: 48px; height: 48px; max-height: 48px; object-fit: contain; }
  body .sidebar nav a:not([hidden]) { display: flex !important; justify-content: center; }
  .sidebar nav a span { display: none; }
  .sidebar .sidefoot { display: none !important; }
}
