/* Adapted from https://uiverse.io/Sourcesketch/strange-catfish-68
 * Copyright (c) 2026 Sourcesketch. MIT License.
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to do
 * so, subject to the following conditions: The above copyright notice and this
 * permission notice shall be included in all copies or substantial portions of
 * the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
 * EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 */

/* Sourcesketch's three merging dots. The viewport host is never inside a transformed panel. */
.ac-loader{position:fixed;left:var(--loader-center-x,50%);top:var(--loader-center-y,50%);width:200px;height:200px;margin:0;transform:translate(-50%,-50%);filter:url("#ac-loader-goo");animation:ac-loader-turn 1.2s -.54s linear infinite;pointer-events:none;z-index:2200}
.ac-loader>span{position:absolute;inset:0;margin:auto;width:70px;height:70px;border-radius:50%;background:#000}
.ac-loader>span:nth-child(1){background:var(--accent,#37a8ef);animation:ac-loader-dot-1 1.2s -.54s ease infinite,ac-loader-index 3.6s -1.2s ease infinite}
.ac-loader>span:nth-child(2){background:var(--accent-ink,#7bcbff);animation:ac-loader-dot-2 1.2s -.54s ease infinite,ac-loader-index 3.6s -2.4s ease infinite}
.ac-loader>span:nth-child(3){background:#bfddf2;animation:ac-loader-dot-3 1.2s -.54s ease infinite,ac-loader-index 3.6s ease infinite}
.ac-loader>span:nth-child(n+4){display:none}
/* Begin mid-cycle so even brief requests show three dots, not a stationary circle. */
@keyframes ac-loader-dot-3{0%{transform:scale(1)}18%{transform:translateY(-18px) scale(.45)}35%,70%{transform:translateY(-90px) scale(.45)}100%{transform:translateY(0) scale(1)}}
@keyframes ac-loader-dot-2{0%{transform:scale(1)}18%{transform:translate(-16px,12px) scale(.45)}35%,70%{transform:translate(-80px,60px) scale(.45)}100%{transform:translateY(0) scale(1)}}
@keyframes ac-loader-dot-1{0%{transform:scale(1)}18%{transform:translate(16px,12px) scale(.45)}35%,70%{transform:translate(80px,60px) scale(.45)}100%{transform:translateY(0) scale(1)}}
@keyframes ac-loader-turn{from{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes ac-loader-index{0%,100%{z-index:3}33.3%{z-index:2}66.6%{z-index:1}}
body[data-ac-loader-ready] .ac-loader:not([data-loader-display]){display:none!important}
#ac-loading-overlay{position:fixed;inset:0;z-index:2190;background:var(--bg,#0a0a0c);color:var(--text,#eceef2);isolation:isolate}
#ac-loading-overlay[hidden]{display:none!important}
#ac-loading-overlay>p{position:absolute;left:var(--loader-center-x,50%);top:calc(var(--loader-center-y,50%) + 126px);transform:translateX(-50%);width:min(360px,calc(100% - 40px));margin:0;text-align:center;font:14px/1.6 var(--font,"Segoe UI",sans-serif);color:#aaaab8}
.panel-entry:has(#panel-entry-actions:not([hidden])) .ac-loader,.panel-entry:has(noscript p) .ac-loader{display:none}
@media(prefers-reduced-motion:reduce){.ac-loader,.ac-loader>span{animation:none!important}.ac-loader>span:nth-child(1){transform:translate(52px,35px) scale(.45)}.ac-loader>span:nth-child(2){transform:translate(-52px,35px) scale(.45)}.ac-loader>span:nth-child(3){transform:translateY(-56px) scale(.45)}}
