/* Shared KT Tech Labs atom back-to-top component. */
#kt-atom-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid #38bdf866;
  border-radius: 50%;
  background: radial-gradient(circle, #143957, #080d1bf2 72%);
  color: #e0f2fe;
  box-shadow: 0 4px 22px #0006;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#kt-atom-top[hidden] { display: none; }
#kt-atom-top:hover { border-color: #7dd3fc; background: #12304b; }
#kt-atom-top:focus-visible { outline: 3px solid #facc15; outline-offset: 4px; }
#kt-atom-top svg { display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#kt-atom-top .kt-orbit { fill: none; stroke: #38bdf8; stroke-width: 1.2; opacity: .65; }
#kt-atom-top .kt-electron { fill: #7dd3fc; }
#kt-atom-top .kt-electron:nth-of-type(2) { fill: #c4b5fd; }
#kt-atom-top .kt-core { fill: #0c243c; stroke: #38bdf877; }
#kt-atom-top .kt-arrow { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { #kt-atom-top { width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) {
  #kt-atom-top, #kt-atom-top * { animation: none !important; transition: none !important; }
  html:has(#kt-atom-top) { scroll-behavior: auto !important; }
}
