/* Atlas dock (ATLAS_DOCK_ENABLED; atlas-dock.js), desktop and tablet (1024 px and up). Jake, r4b: a DM window, as on
   Twitter, Instagram or Facebook. A glass panel floats in the bottom-right corner, about three quarters of the viewport
   tall (74vh, 520 to 760 px, never taller than the window allows), above the page bottom with a small margin. It floats
   over the page and never reflows or pushes page content, so nothing on the page moves when it opens or closes. It grows
   from the orb's corner (the orb hides while it is open). Reduced motion: no animation.
   Every page rule is scoped to html.atlas-dock-on (set by atlas-dock.js only while the flag is on), so with the flag off
   this file changes nothing. */
html.atlas-dock-on{--atlas-dock-w:400px;--atlas-dock-gap:20px}
@media (max-width:1279px){html.atlas-dock-on{--atlas-dock-w:380px}}
/* Stacking (r4b3, one rule): Atlas is the top layer of the app. Every app sheet and overlay (Journey and ASPN Aware,
   Fuel, Train, Shop, video: z-index at most 2147483001) sits below --aspn-z-atlas (2147483400); only system toasts and
   the tour sit above. So an Ask chip tapped inside any sheet opens Atlas over it. ARCHITECTURE.md "Stacking". */
#atlas-dock{position:fixed;right:var(--atlas-dock-gap);bottom:var(--atlas-dock-gap);z-index:var(--aspn-z-atlas,2147483400);width:var(--atlas-dock-w);
  height:min(760px,max(520px,74vh),calc(100vh - 2 * var(--atlas-dock-gap)));box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden;
  border-radius:20px;border:1px solid var(--hair,var(--line,rgba(110,86,60,.16)));
  background:var(--glass-strong,rgba(250,248,244,.9));background-color:rgba(250,248,244,.9);
  -webkit-backdrop-filter:blur(24px) saturate(1.3);backdrop-filter:blur(24px) saturate(1.3);
  box-shadow:0 18px 50px rgba(43,33,23,.22),0 2px 8px rgba(43,33,23,.08);
  transform-origin:100% 100%;transform:translateY(12px) scale(.94);opacity:0;visibility:hidden;
  transition:transform .22s cubic-bezier(.2,.7,.2,1),opacity .18s ease,visibility 0s linear .22s}
html.atlas-docked #atlas-dock{transform:none;opacity:1;visibility:visible;transition:transform .22s cubic-bezier(.2,.7,.2,1),opacity .18s ease,visibility 0s}
#atlas-dock[hidden]{display:none}
html[data-theme=night] #atlas-dock,html[data-theme=sunset] #atlas-dock{background:rgba(38,32,27,.9);background-color:rgba(38,32,27,.9);border-color:rgba(236,229,219,.12);box-shadow:0 18px 50px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.3)}
#atlas-dock-slot{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-radius:inherit}
#atlas-dock-slot>#atlas-member{display:block;flex:1;min-height:0;height:100%;width:100%}
#atlas-dock-slot>#atlas-member:focus-visible{outline:2px solid var(--sand,#A6886E);outline-offset:-2px}
/* The thread fills the panel; its own surface shows through the rounded corners. */
#atlas-dock .gc-root[data-dock="1"]{border-radius:inherit;overflow:hidden}
@media (min-width:1024px){
  /* No orb while open: the panel takes its corner; the close button, Esc and Cmd/Ctrl+J close it. */
  html.atlas-docked #atlas-member-entry{display:none!important}
}
@media (max-width:1023px){#atlas-dock{display:none!important}}
@media (prefers-reduced-motion:reduce){#atlas-dock,html.atlas-docked #atlas-dock{transition:none!important}}
#atlas-dock .gc-root[data-dock="1"] .gc-panel{background:transparent}
/* While the group thread is mounted, the Atlas panel it covers stays out of sight (the glass shows the page, not it). */
#atlas-dock-slot:has(> .gc-root) > #atlas-member{visibility:hidden}
