/* AI Project Universe V3.5 — isolated modern scroll system */
:root{
  --apu-scroll-thumb:#616161;
  --apu-scroll-thumb-2:#dadada;
  --apu-scroll-track:#131313;
  --apu-scroll-glow:rgba(97, 97, 97,.35);
  --apu-progress-height:4px;
}
html{
  scrollbar-width:thin;
  scrollbar-color:var(--apu-scroll-thumb) var(--apu-scroll-track);
  scrollbar-gutter:stable;
  scroll-behavior:smooth;
  overscroll-behavior-y:contain;
}
*{
  scrollbar-width:thin;
  scrollbar-color:var(--apu-scroll-thumb) var(--apu-scroll-track);
}
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{
  background:var(--apu-scroll-track);
  border-left:1px solid color-mix(in srgb,var(--apu-scroll-thumb) 12%,transparent);
}
::-webkit-scrollbar-thumb{
  min-height:54px;
  border:3px solid var(--apu-scroll-track);
  border-radius:999px;
  background:linear-gradient(180deg,var(--apu-scroll-thumb),var(--apu-scroll-thumb-2));
  box-shadow:0 0 0 1px color-mix(in srgb,var(--apu-scroll-thumb) 28%,transparent),0 0 18px var(--apu-scroll-glow);
}
::-webkit-scrollbar-thumb:hover{
  border-width:2px;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--apu-scroll-thumb) 50%,transparent),0 0 24px var(--apu-scroll-glow);
}
::-webkit-scrollbar-corner{background:var(--apu-scroll-track)}
.apu-scroll-progress,.scroll-progress{
  position:fixed;
  inset:0 0 auto 0;
  width:100%;
  height:var(--apu-progress-height);
  z-index:2147483000;
  pointer-events:none;
  transform:scaleX(0);
  transform-origin:left center;
  background:linear-gradient(90deg,var(--apu-scroll-thumb),var(--apu-scroll-thumb-2));
  box-shadow:0 0 16px var(--apu-scroll-glow);
  will-change:transform;
}
.table-wrap,.nav,.desktop-nav,.mobile-menu,[class*="scroll"],[class*="overflow"]{
  overscroll-behavior:contain;
}
@media (forced-colors:active){
  html,*{scrollbar-color:auto}
  .apu-scroll-progress,.scroll-progress{background:CanvasText;box-shadow:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .apu-scroll-progress,.scroll-progress{transition:none!important}
}
