/* Shared by the HTML bootstrap and React loading states; no scripts or fake delay. */
html {
  background: var(--bg);
}
body {
  margin: 0;
}
.skeleton {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--skeleton-base);
  border-radius: 6px;
  flex-shrink: 0;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 15%,
    var(--skeleton-sheen) 40%,
    #25f4ee0a 50%,
    transparent 75%
  );
  transform: translateX(100%);
  animation: skeleton-sweep 1.8s ease-in-out infinite;
}
.boot-screen {
  display: flex;
  min-height: 100vh;
  direction: rtl;
}
.boot-rail {
  width: 234px;
  flex-shrink: 0;
  padding: 34px 24px;
  border-left: 1px solid var(--border);
  background: var(--surface-sidebar);
  box-sizing: border-box;
}
.skeleton-logo {
  width: 80%;
  height: 35px;
  margin-bottom: 70px;
}
.skeleton-nav {
  width: 86%;
  height: 15px;
  margin-bottom: 33px;
}
.skeleton-nav:nth-child(3n) {
  width: 66%;
}
.boot-main {
  min-width: 0;
  flex: 1;
  padding: 105px 36px 32px;
  box-sizing: border-box;
}
.skeleton-connection {
  width: 100%;
  height: 75px;
  margin-bottom: 33px;
  border-radius: 10px;
}
.skeleton-heading {
  width: min(260px, 65%);
  height: 35px;
  margin-bottom: 15px;
  margin-top: 28px;
}
.skeleton-subheading {
  width: min(440px, 85%);
  height: 13px;
  margin-bottom: 36px;
}
.boot-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.skeleton-surface {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  padding: 21px;
  box-sizing: border-box;
  min-height: 149px;
}
.skeleton-title {
  width: 65%;
  height: 13px;
}
.skeleton-value {
  width: 45%;
  height: 28px;
  margin: 19px 0 17px;
}
.skeleton-caption {
  width: 80%;
  height: 9px;
}
.boot-panels {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.skeleton-chart {
  height: 335px;
  width: 100%;
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-sizing: border-box;
}
.skeleton-preview-content {
  width: 68%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}
.skeleton-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.widget-loading::before {
  display: none;
}
.loading-error,
.boot-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--text);
}
.loading-error p,
.boot-error p {
  color: var(--muted);
  font-size: 0.875rem;
}
.boot-error {
  min-height: 100vh;
}
@keyframes skeleton-sweep {
  to {
    transform: translateX(-100%);
  }
}
@media (max-width: 1200px) {
  .skeleton-surface {
    min-height: 145px;
  }
  .boot-rail {
    width: 210px;
  }
  .boot-main {
    padding-inline: 24px;
  }
}
@media (max-width: 900px) {
  .skeleton-surface {
    min-height: 130px;
  }
  .boot-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .boot-panels {
    grid-template-columns: 1fr;
  }
  .boot-panels .skeleton:last-child {
    display: none;
  }
}
@media (max-width: 680px) {
  .boot-rail {
    display: none;
  }
  .boot-main {
    padding: 83px 16px 24px;
  }
  .skeleton-connection {
    height: 122px;
  }
  .boot-stats {
    gap: 10px;
  }
  .skeleton-surface {
    padding: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
    transform: none;
    background: none;
  }
}
