/* R14 accepted sidebar/disclosure materials retained. R15 replaces only the
   identical three-dot pseudo with bounded, independent ambient motes.
   Explorer ambient controller owns visibility/lifecycle. No per-frame JS,
   layout reads, animated paint/filter, forced compositor hints, or timers.
   Existing accents, SVGs, chevrons, engraved AR, content and saved data remain. */
@layer ar-color-preferences {
 @media (forced-colors:none) {
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) {
 --ar-dark-floor:color-mix(in srgb,var(--ar-colors-base,#130c07),black 30%);
 --ar-dark-inset:color-mix(in srgb,var(--ar-colors-surface,#1b1009),black 48%);
 --ar-dark-face:color-mix(in srgb,var(--ar-colors-surface,#28190f),black 40%);
 --ar-dark-hover:color-mix(in srgb,var(--ar-colors-surface,#352114),black 20%);
 --ar-dark-edge:color-mix(in srgb,var(--ar-colors-accent,#c7a171),black 48%);
 --ar-dark-active:color-mix(in srgb,var(--ar-colors-accent,#d0ad78),black 13%);
 --ar-dark-gleam:color-mix(in srgb,var(--ar-colors-accent,#d0ad78),transparent 88%);
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #sidebar {
 background-color:var(--ar-dark-floor)!important;
 background-image:linear-gradient(180deg,var(--ar-dark-floor),var(--ar-dark-inset))!important;
 border-color:var(--ar-dark-edge)!important;
 --ar-runner-r14-surface:var(--ar-dark-floor)!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell :is(#sidebar,#workspace) :is(#study-tree>.tree-group>summary,.ai-entry67,#ar-avdi-cage>summary,#ar-explorer-activities>summary,#panel-welcome #ar-shelf-disclosure>summary,#panel-welcome #ar-explore-disclosure>summary,#panel-welcome .welcome-help56>summary,#panel-welcome #dashboard-overview57>summary,#panel-welcome #dashboard-message56>summary) {
 position:relative;isolation:isolate;overflow:hidden;
 background-color:var(--ar-dark-face)!important;
 background-image:linear-gradient(110deg,var(--ar-dark-gleam),transparent 38%),linear-gradient(160deg,var(--ar-dark-face),var(--ar-dark-inset))!important;
 background-size:100% 100%!important;background-position:0 0!important;
 border-color:var(--ar-dark-edge)!important;
 box-shadow:inset 0 1px 0 var(--ar-dark-gleam),inset 0 -1px 0 #0009,0 5px 12px #0005!important;
 animation:none!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell :is(#sidebar,#workspace) :is(#study-tree>.tree-group>summary,.ai-entry67,#ar-avdi-cage>summary,#ar-explorer-activities>summary,#panel-welcome #ar-shelf-disclosure>summary,#panel-welcome #ar-explore-disclosure>summary,#panel-welcome .welcome-help56>summary,#panel-welcome #dashboard-overview57>summary,#panel-welcome #dashboard-message56>summary):hover {
 background-image:linear-gradient(110deg,var(--ar-dark-gleam),transparent 55%),linear-gradient(160deg,var(--ar-dark-hover),var(--ar-dark-face))!important;
 border-color:var(--ar-dark-active)!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #sidebar :is(#explorer-dashboard,#visit-back,#visit-forward,#close-all67) {
 background:linear-gradient(165deg,var(--ar-dark-face),var(--ar-dark-inset))!important;
 border-color:var(--ar-dark-edge)!important;
 box-shadow:inset 0 1px 0 var(--ar-dark-gleam),0 3px 9px #0005!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #sidebar :is(#explorer-dashboard[aria-current],#explorer-dashboard:hover,#visit-back:hover,#visit-forward:hover,#close-all67:hover) {
 background:linear-gradient(165deg,var(--ar-dark-hover),var(--ar-dark-face))!important;border-color:var(--ar-dark-active)!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #workspace #panel-welcome :is(#ar-study-shelf,#ar-explore-disclosure,.welcome-help56,#dashboard-overview57,#dashboard-message56),
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #sidebar :is(#ar-avdi-cage,#ar-explorer-activities) {
 background:var(--ar-dark-floor)!important;border-color:var(--ar-dark-edge)!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #workspace #panel-welcome #ar-study-shelf :is(#ar-highlights-panel,#ar-continue) {
 background:var(--ar-dark-inset)!important;border-color:var(--ar-dark-edge)!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #workspace :is(.study-select-menu,.ar-select-menu),
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell > #workspace #ar-workspace-actions :is(.reading-options-body68,#ar-ambience-panel,#ar-cyber-customize-panel) {
 background:linear-gradient(165deg,var(--ar-dark-face),var(--ar-dark-floor))!important;
 border-color:var(--ar-dark-edge)!important;box-shadow:inset 0 1px 0 var(--ar-dark-gleam),0 14px 32px #000b!important;
}
html body:not(.ar-cyber):not(.ar-simple):not([data-reading-contrast="high"]) .app-shell :is(#sidebar,#workspace) :is(#study-tree>.tree-group>summary,.ai-entry67,#ar-avdi-cage>summary,#ar-explorer-activities>summary,#panel-welcome #ar-shelf-disclosure>summary,#panel-welcome #ar-explore-disclosure>summary,#panel-welcome .welcome-help56>summary,#panel-welcome #dashboard-overview57>summary,#panel-welcome #dashboard-message56>summary)::before {content:none!important;display:none!important;animation:none!important;}
 }
}

/* Dust inherits the local accent and surface. Each mote mixes them in a
   slightly different proportion instead of introducing unrelated hue shifts. */
@layer ar-color-preferences {
 html body {--ar-dust-source-r15:var(--ar-colors-accent,var(--library-gold,var(--gold,#d0ad78)));--ar-dust-surface-r15:var(--ar-colors-surface,#39291a)}
 html body.ar-monochrome {--ar-dust-source-r15:var(--ar-colors-accent,#b6b6b3);--ar-dust-surface-r15:var(--ar-colors-surface,#333331)}
 html body .app-shell .ar-sprite-field.ar-header-dust-r15 {
  position:absolute!important;inset:5px 10px!important;width:auto!important;height:auto!important;
  display:block;overflow:hidden!important;contain:paint;isolation:isolate;
  margin:0!important;padding:0!important;border:0!important;border-radius:inherit!important;
  z-index:-1!important;pointer-events:none!important;background:none!important;
  opacity:1!important;filter:none!important;transform:none!important;box-shadow:none!important;
 }
 html body :is(.ar-header-dust-r15,[data-ar-dust-base-r15="natural"]) > .ar-dust-mote-r15 {
  position:absolute!important;display:block!important;left:var(--dust-x)!important;top:var(--dust-y)!important;
  width:var(--dust-size)!important;height:var(--dust-size)!important;inset-inline-end:auto!important;bottom:auto!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;
  color:var(--ar-dust-source-r15)!important;
  background:radial-gradient(circle,color-mix(in srgb,color-mix(in srgb,var(--ar-dust-source-r15) var(--dust-tint),var(--ar-dust-surface-r15)),white var(--dust-lift)) 0 30%,transparent 75%)!important;
  box-shadow:none!important;filter:none!important;pointer-events:none!important;will-change:auto!important;
  opacity:0;transform:translate3d(0,0,0);
  animation:ar-natural-dust-r15 var(--dust-time) linear var(--dust-delay) infinite!important;
  animation-play-state:paused!important;
 }
 html body :is(.ar-header-dust-r15,[data-ar-dust-base-r15="natural"]) > .ar-dust-mote-r15::after {content:none!important}
 html body :is(.ar-header-dust-r15,[data-ar-dust-base-r15="natural"])[data-ar-dust-running-r15="true"] > .ar-dust-mote-r15 {animation-play-state:running!important}
 html body .ar-header-dust-r15[hidden],
 html body [data-ar-dust-base-r15][data-ar-dust-running-r15="false"] {display:none!important}
 html body [data-ar-dust-base-r15][data-ar-dust-running-r15="false"] > * {animation-play-state:paused!important}
 /* These are immediate CSS gates as well as controller gates. A preference
    change cannot leave a decorative frame visible while an event is pending. */
 html[data-ar-theme="simple"] body :is(.ar-header-dust-r15,[data-ar-dust-base-r15]),
 html body:is(.ar-simple,.focus-mode,.popup-open,[data-reading-sprites="off"],[data-reading-contrast="high"],[data-ar-page-hidden]) :is(.ar-header-dust-r15,[data-ar-dust-base-r15]),
 html body.ar-cyber .ar-header-dust-r15 {display:none!important}
 html[data-ar-theme="simple"] body :is(.ar-header-dust-r15,[data-ar-dust-base-r15]) > *,
 html body:is(.ar-simple,.focus-mode,.popup-open,[data-reading-sprites="off"],[data-reading-contrast="high"],[data-ar-page-hidden]) :is(.ar-header-dust-r15,[data-ar-dust-base-r15]) > * {animation-play-state:paused!important}
}
/* Each loop crosses a short, distinct curved path while fading to zero at its
   ends. The brightest point is on the moving middle of the path, with no hold. */
@keyframes ar-natural-dust-r15 {
 0% {transform:translate3d(0,0,0);opacity:0}
 19% {opacity:var(--dust-low)}
 47% {transform:translate3d(var(--dust-mid-x),var(--dust-mid-y),0);opacity:var(--dust-peak)}
 79% {opacity:var(--dust-low)}
 100% {transform:translate3d(var(--dust-end-x),var(--dust-end-y),0);opacity:0}
}
@media (min-width:901px) and (hover:none) and (pointer:coarse) {
 @layer ar-color-preferences {html body #ar-explorer-ambient[data-ar-dust-base-r15="natural"] > .ar-dust-mote-r15 {left:var(--dust-touch-x)!important}}
}
@media (prefers-reduced-motion:reduce),(prefers-contrast:more),(forced-colors:active),print {
 @layer ar-color-preferences {
  html body :is(.ar-header-dust-r15,[data-ar-dust-base-r15]) {display:none!important}
  html body :is(.ar-header-dust-r15,[data-ar-dust-base-r15]) > * {animation:none!important}
 }
}
