/* Loading examples: structure lives in HTML; only appearance and motion live here. */
.loading-region {
  position: relative;
  min-height: 13.125rem;
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--soft);
  overflow: hidden;
}
.loading-region h3 {
  margin-bottom: 0.75rem;
}
.loading-region p {
  line-height: 1.8;
}
.loading-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--surface);
}
.loading-message {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  max-width: 25rem;
  margin: auto;
  color: var(--ink);
}
.loading-message > p,
.loading-message > span:not(.loading-symbol) {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
}
.loading-message h2 {
  font-size: 1.4375rem;
}
.loading-symbol {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--accent-deep);
}
.loading-ring {
  width: 2.375rem;
  height: 2.375rem;
  border: 0.1875rem solid var(--line);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}
.loading-dots,
.loading-bars {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  height: 2.375rem;
}
.loading-dots > span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  animation: loading-bounce 1s ease-in-out infinite;
}
.loading-bars > span {
  width: 0.375rem;
  height: 1.875rem;
  border-radius: 624.9375rem;
  background: currentColor;
  animation: loading-pulse 1s ease-in-out infinite;
}
.loading-dots > span:nth-child(2),
.loading-bars > span:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-dots > span:nth-child(3),
.loading-bars > span:nth-child(3) {
  animation-delay: 0.3s;
}
.loading-bars > span:nth-child(4) {
  animation-delay: 0.45s;
}
body[data-loading-style="dots"] .loading-ring,
body[data-loading-style="bars"] .loading-ring {
  display: none;
}
body[data-loading-style="dots"] .loading-dots,
body[data-loading-style="bars"] .loading-bars {
  display: flex;
}
.loading-dialog {
  width: min(27.5rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 2.5rem 1.5rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.375rem;
}
.loading-dialog::backdrop {
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(0.25rem);
}
.loading-dialog.loading-fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 1.5rem;
}
.loading-dialog.loading-fullscreen[open] {
  display: grid;
  align-content: center;
}
.loading-scroll-lock {
  overflow: hidden;
}
.loading-action .loading-symbol {
  width: 1.125rem;
  height: 1.125rem;
  color: inherit;
}
.loading-action .loading-ring {
  width: 1rem;
  height: 1rem;
  border-width: 0.125rem;
  border-color: currentColor;
  border-right-color: transparent;
}
.loading-action .loading-dots,
.loading-action .loading-bars {
  height: 1.125rem;
  gap: 0.125rem;
}
.loading-action .loading-dots > span {
  width: 0.25rem;
  height: 0.25rem;
}
.loading-action .loading-bars > span {
  width: 0.1875rem;
  height: 0.9375rem;
}
.loading-skeleton {
  display: grid;
  gap: 0.875rem;
}
.loading-skeleton > span {
  background: var(--line);
  animation: loading-skeleton 1.4s ease-in-out infinite alternate;
}
.skeleton-avatar {
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
}
.skeleton-line {
  width: 100%;
  height: 0.75rem;
  border-radius: 624.9375rem;
}
.skeleton-line.short {
  width: 60%;
}
.loading-cover[hidden],
.loading-skeleton[hidden],
.loading-action [hidden],
.loading-region [hidden] {
  display: none;
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes loading-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.4375rem);
  }
}
@keyframes loading-pulse {
  0%,
  100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes loading-skeleton {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-symbol *,
  .loading-skeleton > span {
    animation: none;
  }
}

/* Signature KC motion and Font Awesome loaders. */
.loading-region {
  min-height: 22rem;
}
.loading-symbol {
  width: 6rem;
  height: 6rem;
  position: relative;
  border-radius: 1.5rem;
  background: radial-gradient(circle, var(--accent-soft), transparent 72%);
}
.loading-lottie.kc-motion {
  display: none;
  width: 8rem;
  height: 8rem;
}
.loading-fontawesome {
  display: none;
  position: relative;
  place-items: center;
  width: 4.75rem;
  height: 4.75rem;
  border: 1px solid var(--accent-mid);
  border-radius: 1.5rem;
  background: var(--accent-soft);
  box-shadow: 0 0.5rem 2rem color-mix(in srgb, var(--accent) 12%, transparent);
}
.loading-fontawesome > i {
  font-size: 1.8rem;
}
.loading-icon-dot {
  position: absolute;
  right: -0.3rem;
  top: -0.3rem;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--accent-mid);
  border: 0.1875rem solid var(--surface);
}
body[data-loading-style="lottie"] .loading-ring,
body[data-loading-style="icon"] .loading-ring {
  display: none;
}
body[data-loading-style="lottie"] .loading-lottie {
  display: inline-grid;
}
body[data-loading-style="icon"] .loading-fontawesome {
  display: grid;
}
.loading-kicker {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.5625rem !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-deep) !important;
}
.loading-track {
  display: block;
  position: relative;
  overflow: hidden;
  height: 0.1875rem;
  width: 8rem;
  border-radius: 9999px;
  background: var(--line);
}
.loading-track::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: var(--accent-mid);
  animation: loading-travel 1.4s ease-in-out infinite alternate;
}
.loading-action .loading-symbol {
  width: 1.5rem;
  height: 1.5rem;
  background: none;
}
.loading-action .loading-lottie.kc-motion {
  width: 2rem;
  height: 2rem;
}
.loading-action .loading-fontawesome {
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  background: none;
  box-shadow: none;
}
.loading-action .loading-fontawesome > i {
  font-size: 1rem;
}
.loading-action .loading-icon-dot {
  display: none;
}
@keyframes loading-travel {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(225%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-track::after,
  .loading-fontawesome .fa-spin {
    animation: none;
  }
}
