/* Online shell compatibility for the pre-atmosphere desktop sidebar. */
aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere)) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.58);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 3%, rgb(173 156 255 / 0.46), transparent 34%),
    radial-gradient(circle at 88% 5%, rgb(151 207 255 / 0.5), transparent 38%),
    radial-gradient(circle at 12% 70%, rgb(117 183 255 / 0.34), transparent 40%),
    radial-gradient(circle at 82% 88%, rgb(125 229 218 / 0.4), transparent 42%),
    linear-gradient(165deg, rgb(240 245 255 / 0.64), rgb(219 239 242 / 0.42));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    0 24px 60px rgb(73 101 145 / 0.16);
  backdrop-filter: blur(28px) saturate(1.24) contrast(0.96);
  -webkit-backdrop-filter: blur(28px) saturate(1.24) contrast(0.96);
}

aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 12%, rgb(255 255 255 / 0.34), transparent 30%),
    radial-gradient(circle at 76% 72%, rgb(255 255 255 / 0.18), transparent 34%);
  pointer-events: none;
}

aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere))
  > .owen-sidebar-header-glass {
  border: 1px solid rgb(255 255 255 / 0.5) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(155deg, rgb(255 255 255 / 0.38), rgb(239 247 255 / 0.12)) !important;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.62),
    0 8px 24px rgb(54 78 112 / 0.08) !important;
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere))
  .owen-sidebar-mark {
  border: 1px solid rgb(255 255 255 / 0.42) !important;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.08)),
    linear-gradient(145deg, #477ee1, #856fe4) !important;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.42),
    0 8px 20px rgb(63 76 151 / 0.22) !important;
}

aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere))
  .owen-nav-section {
  border: 1px solid rgb(255 255 255 / 0.38) !important;
  border-radius: 18px;
  background:
    linear-gradient(158deg, rgb(255 255 255 / 0.25), rgb(232 244 250 / 0.11)) !important;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.46),
    0 8px 22px rgb(50 74 113 / 0.055) !important;
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere))
  .owen-nav-section li {
  border-color: rgb(100 116 139 / 0.1) !important;
}

aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere))
  .owen-nav-section > div {
  background: transparent !important;
}

@media (max-width: 767px) {
  aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere)) {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  aside:has(> .owen-sidebar-header-glass):not(:has(> .owen-sidebar-atmosphere)) {
    background: rgb(247 250 255 / 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
