:root {
  --page: #f2f6fa;
  --surface: #ffffff;
  --text: #17243a;
  --muted: #687386;
  --border: #dbe3ec;
  --brand: #0868aa;
  --brand-dark: #07568d;
  --shadow: 0 18px 48px rgba(23, 36, 58, 0.10);
  --tone: #2563eb;
  --tone-soft: #eff6ff;
  --tone-border: rgba(37, 99, 235, 0.22);
  --panel-bg: #f8fafc;
  --panel-border: #dbe3ec;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 280px;
  background: var(--page);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.status-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(24px, 7vh, 72px) 0;
  display: grid;
  align-items: center;
}

.status-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--tone);
  border-radius: 9px;
  box-shadow: var(--shadow);
}

.status-card--success {
  --tone: #15803d;
  --tone-soft: #eef9f1;
  --tone-border: rgba(21, 128, 61, 0.24);
  --panel-bg: #f3faf5;
  --panel-border: #cce7d3;
}

.status-card--processing {
  --tone: #0b5f9e;
  --tone-soft: #edf6fc;
  --tone-border: rgba(11, 95, 158, 0.24);
  --panel-bg: #f1f7fb;
  --panel-border: #cbdfea;
}

.status-card--warning {
  --tone: #b45309;
  --tone-soft: #fff8e8;
  --tone-border: rgba(180, 83, 9, 0.24);
  --panel-bg: #fffbeb;
  --panel-border: #ead8ae;
}

.status-card--error {
  --tone: #b91c1c;
  --tone-soft: #fef2f2;
  --tone-border: rgba(185, 28, 28, 0.22);
  --panel-bg: #fffbeb;
  --panel-border: #ead8ae;
}

.status-card--info {
  --tone: #2563eb;
  --tone-soft: #eff6ff;
  --tone-border: rgba(37, 99, 235, 0.22);
}

.status-body {
  min-height: 430px;
  padding: clamp(34px, 5vw, 56px) clamp(28px, 5vw, 52px) 42px;
}

.status-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tone);
  font-size: 16px;
  font-weight: 700;
}

.status-code {
  min-width: 54px;
  min-height: 36px;
  padding: 5px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tone-border);
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone);
  font-size: 15px;
  line-height: 1;
}

h1 {
  max-width: 920px;
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.status-description {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
}

.status-panel {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--panel-bg);
}

.status-panel-title {
  margin: 0 0 7px;
  color: #9a4c09;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.status-card--success .status-panel-title,
.status-card--processing .status-panel-title,
.status-card--info .status-panel-title {
  color: var(--tone);
}

.status-panel-message,
.status-meta,
.status-countdown {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.status-meta,
.status-countdown {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.status-countdown strong {
  color: var(--tone);
}

.status-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-dark);
  border-radius: 7px;
  background: var(--brand);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.status-button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.status-button:focus-visible {
  outline: 3px solid rgba(8, 104, 170, 0.28);
  outline-offset: 3px;
}

.status-button--secondary {
  border-color: var(--border);
  background: #ffffff;
  color: var(--brand);
}

.status-footer {
  padding: 17px clamp(28px, 5vw, 52px);
  border-top: 1px solid var(--border);
  background: #fbfcfe;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 640px) {
  .status-shell {
    width: min(100% - 20px, 1120px);
    padding: 10px 0;
    align-items: start;
  }

  .status-body {
    min-height: 0;
    padding: 28px 22px 30px;
  }

  .status-heading {
    margin-bottom: 22px;
    gap: 10px;
    font-size: 14px;
  }

  .status-code {
    min-width: 50px;
    min-height: 34px;
  }

  h1 {
    font-size: 28px;
  }

  .status-description {
    font-size: 17px;
  }

  .status-panel {
    margin-top: 24px;
    padding: 17px 18px;
  }

  .status-actions {
    margin-top: 26px;
  }

  .status-button {
    width: 100%;
  }

  .status-footer {
    padding: 15px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-button {
    transition: none;
  }
}
