html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.admin-card {
  display: block;
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: #172033;
  background: #fff;
}

.admin-card strong {
  display: block;
  margin-bottom: 6px;
}

.admin-card span {
  color: #667085;
}

.generation-shell {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(22,100,217,.10), transparent 30%),
    linear-gradient(180deg, #f8fafc, #eef3f9);
  border-radius: 8px;
}

.generation-panel {
  width: min(680px, 92vw);
  text-align: center;
  background: rgba(255,255,255,.86);
  border: 1px solid #d7dde8;
  border-radius: 8px;
  padding: 42px 28px;
  box-shadow: 0 18px 50px rgba(23,32,51,.10);
}

.generation-title {
  margin-bottom: 1rem;
}

.generation-intro-text {
  color: #667085;
  margin-bottom: 0;
  line-height: 1.7;
}

.generation-work[hidden] {
  display: none !important;
}

.generation-intro[hidden] {
  display: none !important;
}

.generation-orbit {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
}

.generation-spinner {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 5px solid #c7d7f3;
  border-top-color: #1664d9;
  animation: atlas-spin 1s linear infinite;
}

.generation-progress {
  height: 10px;
  overflow: hidden;
  background: #e4e9f2;
  border-radius: 999px;
}

.generation-progress span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1664d9, #32a4a8);
  animation: atlas-progress 2.4s ease-in-out infinite;
}

.generation-failed .generation-spinner {
  border-top-color: #b42318;
}

@keyframes atlas-spin {
  to { transform: rotate(360deg); }
}

@keyframes atlas-progress {
  0% { transform: translateX(150%); }
  50% { transform: translateX(10%); }
  100% { transform: translateX(-160%); }
}

.auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid #d7dde8;
  border-radius: 999px;
  background: #fff;
}

.auth-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  color: #172033;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.auth-nav__link:hover {
  background: #f3f6fb;
  color: #1664d9;
}

.auth-nav__link--primary {
  background: #1664d9;
  color: #fff;
}

.auth-nav__link--primary:hover {
  background: #1253b5;
  color: #fff;
}

.auth-nav__divider {
  width: 1px;
  height: 22px;
  background: #d7dde8;
  flex-shrink: 0;
}

.auth-nav__logout {
  display: inline;
  margin: 0;
}

.auth-nav__button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
