:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18212b;
  background: #eef2f5;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 420px);
  padding: 40px 36px 36px;
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(30, 45, 60, 0.12);
  text-align: center;
}

.brand-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #283b4d;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: #6e7c89;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 { margin: 0; font-size: 28px; line-height: 1.2; }

.status-text {
  min-height: 24px;
  margin: 14px 0 22px;
  color: #5a6875;
  line-height: 1.5;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 20px;
  border: 3px solid #dce4ea;
  border-top-color: #2b6f9f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.progress {
  position: relative;
  width: 100%;
  height: 4px;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 2px;
  background: #e2e7eb;
}

.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: 2px;
  background: #d84a38;
  animation: progress 1.4s ease-in-out infinite;
}

.waiting-details {
  min-height: 50px;
  margin: 0 0 20px;
  display: grid;
  gap: 6px;
  color: #6b7883;
  font-size: 13px;
  line-height: 1.4;
}

.waiting-details[hidden] { display: none; }
.waiting-details strong { color: #303b44; font-variant-numeric: tabular-nums; }

button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled { cursor: wait; opacity: 0.65; }

.primary-button { background: #d84a38; color: #fff; }
.primary-button:hover:not(:disabled) { background: #bd3d2e; }
.secondary-button { margin-top: 10px; background: #e8eef2; color: #294052; }

.error-text { margin: 16px 0 0; color: #b33a3a; line-height: 1.5; }

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(275%); }
}

@media (max-width: 480px) {
  .panel { padding: 32px 24px 28px; }
}
