html,
body,
#root {
  min-height: 100%;
  margin: 0;
}

.runtime-status {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at 20% 16%, rgba(15, 23, 42, 0.04), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 20px;
  box-sizing: border-box;
}

.runtime-status p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.runtime-status section:not(.runtime-skeleton-shell) {
  max-width: 420px;
  padding: 24px;
  text-align: center;
}

.runtime-status h1 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.runtime-status button {
  margin-top: 18px;
  border: 1px solid #0f172a;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  padding: 9px 14px;
  font: inherit;
  cursor: pointer;
}

.runtime-skeleton-shell {
  width: min(1040px, 100%);
  display: grid;
  gap: 14px;
}

.runtime-skeleton-topbar,
.runtime-skeleton-hero,
.runtime-skeleton-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.runtime-skeleton-topbar {
  height: 58px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 128px minmax(120px, 1fr) 92px;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  box-sizing: border-box;
}

.runtime-skeleton-hero {
  min-height: 260px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36%;
  gap: 28px;
  align-items: center;
  padding: 28px;
  box-sizing: border-box;
}

.runtime-skeleton-copy {
  display: grid;
  gap: 14px;
}

.runtime-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.runtime-skeleton-card {
  height: 160px;
  border-radius: 10px;
}

.runtime-skeleton-brand,
.runtime-skeleton-search,
.runtime-skeleton-pill,
.runtime-skeleton-line,
.runtime-skeleton-title,
.runtime-skeleton-button,
.runtime-skeleton-media {
  display: block;
  border-radius: 999px;
}

.runtime-skeleton-brand {
  height: 20px;
}

.runtime-skeleton-search {
  height: 34px;
}

.runtime-skeleton-pill {
  height: 28px;
}

.runtime-skeleton-line {
  width: 38%;
  height: 14px;
}

.runtime-skeleton-title {
  width: 78%;
  height: 28px;
  border-radius: 8px;
}

.runtime-skeleton-title.short {
  width: 54%;
}

.runtime-skeleton-button {
  width: 132px;
  height: 38px;
  margin-top: 6px;
}

.runtime-skeleton-media {
  width: 100%;
  min-height: 196px;
  border-radius: 10px;
}

.runtime-shimmer {
  position: relative;
  overflow: hidden;
  background: #eef2f7;
}

.runtime-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  animation: runtime-shimmer 1.35s ease-in-out infinite;
}

@keyframes runtime-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 720px) {
  .runtime-status {
    align-items: flex-start;
    padding: 12px;
  }

  .runtime-skeleton-topbar {
    grid-template-columns: 96px 1fr 36px;
    gap: 10px;
    padding: 0 12px;
  }

  .runtime-skeleton-hero {
    min-height: 300px;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .runtime-skeleton-media {
    min-height: 140px;
  }

  .runtime-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runtime-skeleton-card {
    height: 132px;
  }
}
