/* Sidebar skeleton — parent portal.
   Pure CSS: paints in the very first frame (this stylesheet is render-blocking),
   so there is no blank sidebar before the shimmer. It shows only while the
   sidebar container is :empty, and vanishes the instant the real sidebar is
   injected by JavaScript — no swap, no flash. */
@keyframes plSidebarShimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

.sidebar[data-sideBar]:empty::before, .sidebar[data-sideBar]:empty::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(255,255,255,.08) 0%,rgba(255,255,255,.20) 50%,rgba(255,255,255,.08) 100%);
  background-size: 200% 100%;
  animation: plSidebarShimmer 2s ease-in-out infinite;
}
.sidebar[data-sideBar]:empty::before { z-index: 2; }
.sidebar[data-sideBar]:empty::after  { z-index: 2; }
.sidebar[data-sideBar]:empty::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='460' viewBox='0 0 280 460'%3E%3Cg fill='black'%3E%3Crect x='20' y='32' width='44' height='44' rx='12'/%3E%3Crect x='76' y='38' width='120' height='16' rx='8'/%3E%3Crect x='76' y='60' width='80' height='12' rx='6'/%3E%3Crect x='20' y='127.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='131.5' width='90' height='15' rx='7'/%3E%3Crect x='20' y='179.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='183.5' width='110' height='15' rx='7'/%3E%3Crect x='20' y='231.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='235.5' width='84' height='15' rx='7'/%3E%3Crect x='20' y='283.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='287.5' width='120' height='15' rx='7'/%3E%3Crect x='20' y='335.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='339.5' width='100' height='15' rx='7'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='460' viewBox='0 0 280 460'%3E%3Cg fill='black'%3E%3Crect x='20' y='32' width='44' height='44' rx='12'/%3E%3Crect x='76' y='38' width='120' height='16' rx='8'/%3E%3Crect x='76' y='60' width='80' height='12' rx='6'/%3E%3Crect x='20' y='127.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='131.5' width='90' height='15' rx='7'/%3E%3Crect x='20' y='179.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='183.5' width='110' height='15' rx='7'/%3E%3Crect x='20' y='231.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='235.5' width='84' height='15' rx='7'/%3E%3Crect x='20' y='283.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='287.5' width='120' height='15' rx='7'/%3E%3Crect x='20' y='335.0' width='24' height='24' rx='5'/%3E%3Crect x='56' y='339.5' width='100' height='15' rx='7'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;         mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;           mask-position: 0 0;
  -webkit-mask-size: 280px 460px;         mask-size: 280px 460px;
}
.sidebar[data-sideBar]:empty::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='150' viewBox='0 0 280 150'%3E%3Cg fill='black'%3E%3Ccircle cx='40' cy='38' r='18'/%3E%3Crect x='70' y='26' width='110' height='13' rx='6'/%3E%3Crect x='70' y='45' width='70' height='10' rx='5'/%3E%3Crect x='20' y='92' width='240' height='42' rx='10'/%3E%3C/g%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='150' viewBox='0 0 280 150'%3E%3Cg fill='black'%3E%3Ccircle cx='40' cy='38' r='18'/%3E%3Crect x='70' y='26' width='110' height='13' rx='6'/%3E%3Crect x='70' y='45' width='70' height='10' rx='5'/%3E%3Crect x='20' y='92' width='240' height='42' rx='10'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;         mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%;           mask-position: 0 100%;
  -webkit-mask-size: 280px 150px;         mask-size: 280px 150px;
}
@media (prefers-reduced-motion: reduce) {
  .sidebar[data-sideBar]:empty::before, .sidebar[data-sideBar]:empty::after { animation: none; }
}
