:root {
  --deep-navy: #071A2F;
  --card-navy: #0E2A47;
  --accent-yellow: #FBBF24;
  --hover-gold: #F59E0B;
  --good-green: #22C55E;
  --warning-orange: #F97316;
  --bad-red: #EF4444;
  --white-text: #F8FAFC;
  --muted-text: #CBD5E1;
  --border: rgba(255, 255, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body.wc-body {
  background: var(--deep-navy);
  color: var(--white-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wc-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wc-card {
  width: 100%;
  max-width: 480px;
  padding: 32px;
  background: var(--card-navy);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.wc-card--runner {
  max-width: 420px;
  width: calc(100% - 32px);
  min-height: 240px;
  padding: 24px;
}

.wc-logo {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-yellow), var(--hover-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--deep-navy);
  letter-spacing: -0.02em;
}

.wc-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wc-subtitle {
  margin: 0 0 16px;
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.wc-body-text {
  margin: 0 0 24px;
  color: var(--white-text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.wc-note {
  margin: 20px 0 0;
  color: var(--muted-text);
  font-size: 0.8rem;
  line-height: 1.45;
}

.wc-btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 999px;
  background: var(--accent-yellow);
  color: var(--deep-navy);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.wc-btn:hover {
  background: var(--hover-gold);
}

.wc-btn--ghost {
  background: transparent;
  color: var(--muted-text);
  border: 1px solid var(--border);
  margin-top: 12px;
  font-weight: 500;
}

.wc-btn--ghost:hover {
  color: var(--white-text);
  background: rgba(255, 255, 255, 0.04);
}

.wc-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-yellow);
}

.wc-status {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.wc-detail {
  margin: 0 0 16px;
  color: var(--muted-text);
  font-size: 0.875rem;
}

.wc-metrics {
  margin: 8px 0 16px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wc-metrics-sub {
  margin: 0 0 16px;
  color: var(--muted-text);
  font-size: 0.875rem;
}

.wc-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.wc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-yellow);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.wc-progress-fill--indeterminate {
  width: 40%;
  animation: wc-shimmer 1.4s ease-in-out infinite;
}

@keyframes wc-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.wc-signal {
  width: 56px;
  height: 40px;
  margin: 0 auto 12px;
  position: relative;
}

.wc-signal span {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border: 2px solid var(--accent-yellow);
  border-color: var(--accent-yellow) transparent transparent transparent;
  border-radius: 50%;
  opacity: 0.35;
  animation: wc-pulse 1.6s ease-in-out infinite;
}

.wc-signal span:nth-child(1) {
  width: 14px;
  height: 14px;
  bottom: 2px;
  animation-delay: 0s;
}

.wc-signal span:nth-child(2) {
  width: 26px;
  height: 26px;
  bottom: 2px;
  animation-delay: 0.2s;
}

.wc-signal span:nth-child(3) {
  width: 38px;
  height: 38px;
  bottom: 2px;
  animation-delay: 0.4s;
}

@keyframes wc-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.wc-hidden-engine {
  position: absolute;
  left: -10000px;
  top: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.wc-state--error .wc-title,
.wc-state--error .wc-status {
  color: var(--bad-red);
}

.wc-state--running .wc-status {
  color: var(--white-text);
}

.wc-state--complete .wc-status {
  color: var(--good-green);
}

.wc-retry {
  display: none;
  margin-top: 16px;
}

.wc-state--error .wc-retry {
  display: inline-block;
}

.wc-state--blocked .wc-runner-active {
  display: none;
}

.wc-blocked-view {
  display: none;
}

.wc-state--blocked .wc-blocked-view {
  display: block;
}

.wc-dev-banner {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(251, 191, 36, 0.08);
  color: var(--accent-yellow);
  font-size: 12px;
  line-height: 1.4;
}
