@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --error-bg: #faf9f7;
  --error-fg: #1a1a1a;
  --error-muted: #888;
  --error-faint: #bbb;
  --error-accent: #b85c38;
  --error-accent-soft: #cc9966;
  --error-accent-dark: #a04e30;
  --error-danger: #e85d4a;
  --error-warning: #e8a84a;
  --error-success: #4aae6a;
  --error-surface: #f0ebe4;
  --error-surface-alt: #e8e0d8;
  --error-terminal: #1a1a1a;
  --error-terminal-top: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.error-page {
  font-family: 'Inter', sans-serif;
  background: var(--error-bg);
  color: var(--error-fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 52px 24px 24px;
  text-align: center;
}

body.error-page .code {
  font-size: 160px;
  font-weight: 700;
  letter-spacing: -6px;
  background: linear-gradient(135deg, var(--error-accent), var(--error-accent-soft), #8b4513);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

body.error-page .error-display {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

body.error-page .error-display .code {
  margin-bottom: 0;
}

body.error-page .error-word {
  color: var(--error-accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  padding-bottom: 22px;
  text-transform: uppercase;
}

body.error-page > h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

body.error-page .sub {
  color: var(--error-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

body.error-page .note {
  color: var(--error-faint);
  font-size: 13px;
  font-style: italic;
  margin-bottom: 32px;
  max-width: 400px;
}

body.error-page a.back {
  display: inline-block;
  background: var(--error-accent);
  color: white;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

body.error-page a.back:hover {
  background: var(--error-accent-dark);
}

body.error-page .badge {
  display: inline-block;
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

body.error-page .marquee-wrapper {
  overflow: hidden;
  background: var(--error-terminal);
  padding: 10px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

body.error-page .marquee {
  display: flex;
  gap: 60px;
  animation: scroll 20s linear infinite;
  white-space: nowrap;
  color: var(--error-accent-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

body.error-page.error-page-401 > h1,
body.error-page.error-page-403 > h1,
body.error-page.error-page-429 > h1,
body.error-page.error-page-conversation-not-found > h1 {
  font-size: 26px;
}

body.error-page.error-page-401 .sub {
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 460px;
}

body.error-page.error-page-401 .badge {
  background: var(--error-danger);
  animation: pulse 2s ease-in-out infinite;
  transition: background 0.5s;
}

body.error-page.error-page-401 .terminal {
  background: var(--error-terminal);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
}

body.error-page.error-page-401 .terminal-header {
  background: var(--error-terminal-top);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.error-page.error-page-401 .terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

body.error-page.error-page-401 .terminal-dot.red { background: var(--error-danger); }
body.error-page.error-page-401 .terminal-dot.yellow { background: var(--error-warning); }
body.error-page.error-page-401 .terminal-dot.green { background: var(--error-success); }

body.error-page.error-page-401 .terminal-title {
  color: var(--error-muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 8px;
}

body.error-page.error-page-401 .terminal-body {
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #e8e0d8;
  text-align: left;
  min-height: 200px;
  max-height: 340px;
  overflow-y: auto;
}

body.error-page.error-page-401 .terminal-line {
  margin-bottom: 6px;
  line-height: 1.6;
}

body.error-page.error-page-401 .terminal-line.system { color: var(--error-muted); }
body.error-page.error-page-401 .terminal-line.success { color: var(--error-success); }
body.error-page.error-page-401 .terminal-line.warning { color: var(--error-warning); }
body.error-page.error-page-401 .terminal-line.error { color: var(--error-danger); }
body.error-page.error-page-401 .terminal-line.aside {
  color: #666;
  font-style: italic;
}

body.error-page.error-page-401 .input-line {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

body.error-page.error-page-401 .input-line .prompt {
  color: var(--error-accent);
  margin-right: 8px;
  white-space: nowrap;
}

body.error-page.error-page-401 .input-line input {
  background: transparent;
  border: none;
  color: #e8e0d8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  flex: 1;
  caret-color: var(--error-accent);
}

body.error-page.error-page-401 .progress-bar {
  margin: 8px 0;
  background: var(--error-terminal-top);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

body.error-page.error-page-401 .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--error-accent), var(--error-accent-soft));
  border-radius: 4px;
  transition: width 0.8s ease;
  width: 0%;
}

body.error-page.error-page-401 a.back {
  display: none;
}

body.error-page.error-page-403 .sub {
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 420px;
}

body.error-page.error-page-403 .captcha-box {
  max-width: 340px;
  width: 100%;
  border: 2px solid var(--error-surface-alt);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

body.error-page.error-page-403 .captcha-header {
  background: var(--error-surface);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

body.error-page.error-page-403 .captcha-prompt {
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--error-surface);
}

body.error-page.error-page-403 .captcha-prompt em {
  color: var(--error-accent);
  font-style: italic;
}

body.error-page.error-page-403 .image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
}

body.error-page.error-page-403 .image-grid .cell {
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.15s;
  position: relative;
  overflow: hidden;
}

body.error-page.error-page-403 .image-grid .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.error-page.error-page-403 .image-grid .cell:hover {
  opacity: 0.8;
}

body.error-page.error-page-403 .image-grid .cell.selected::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  background: rgba(184, 92, 56, 0.7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

body.error-page.error-page-403 .captcha-verify {
  padding: 12px 16px;
  text-align: right;
}

body.error-page.error-page-403 .captcha-verify button {
  background: var(--error-accent);
  color: white;
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

body.error-page.error-page-403 .captcha-verify button:hover {
  background: var(--error-accent-dark);
}

body.error-page.error-page-403 .round2 {
  display: none;
  max-width: 380px;
  width: 100%;
  margin-bottom: 24px;
}

body.error-page.error-page-403 .round2 .question-text {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

body.error-page.error-page-403 .round2 .choice {
  display: block;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 8px;
  background: var(--error-surface);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

body.error-page.error-page-403 .round2 .choice:hover {
  background: var(--error-surface-alt);
}

body.error-page.error-page-403 .round2 .choice.selected {
  border-color: var(--error-accent);
  background: #f5ede6;
}

body.error-page.error-page-403 .result-text {
  display: none;
  max-width: 380px;
  padding: 16px 24px;
  background: var(--error-surface);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

body.error-page.error-page-403 .verified-badge {
  display: none;
  font-size: 11px;
  color: var(--error-faint);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

body.error-page.error-page-403 a.back {
  display: none;
}

body.error-page.error-page-404 .note {
  margin-bottom: 40px;
}

body.error-page.error-page-404 .review {
  margin-top: 48px;
  padding: 24px 32px;
  background: var(--error-surface);
  border-radius: 12px;
  max-width: 420px;
}

body.error-page.error-page-404 .review .stars {
  font-size: 18px;
  margin-bottom: 8px;
}

body.error-page.error-page-404 .review p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  font-style: italic;
}

body.error-page.error-page-404 .review .author {
  font-size: 11px;
  color: #aaa;
  margin-top: 8px;
  font-style: normal;
}

body.error-page.error-page-409 .sub,
body.error-page.error-page-418 .sub,
body.error-page.error-page-410 .sub,
body.error-page.error-page-422 .sub,
body.error-page.error-page-504 .sub,
body.error-page.error-page-502 .sub {
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 500px;
}

body.error-page.error-page-409 .seismograph {
  max-width: 480px;
  width: 100%;
  background: var(--error-terminal);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

body.error-page.error-page-409 .seismo-guidance {
  max-width: 480px;
  width: 100%;
  margin-bottom: 14px;
}

body.error-page.error-page-409 .seismo-instruction {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--error-text);
  text-wrap: balance;
}

body.error-page.error-page-409 .seismo-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

body.error-page.error-page-409 .seismo-label,
body.error-page.error-page-409 .seismo-value,
body.error-page.error-page-409 .seismo-note,
body.error-page.error-page-422 .bit-display .label {
  font-family: 'JetBrains Mono', monospace;
}

body.error-page.error-page-409 .seismo-label,
body.error-page.error-page-422 .bit-display .label {
  font-size: 11px;
  color: var(--error-muted);
}

body.error-page.error-page-409 .seismo-value {
  font-size: 13px;
  color: var(--error-success);
  font-weight: 500;
}

body.error-page.error-page-409 .seismo-canvas {
  width: 100%;
  height: 80px;
  display: block;
}

body.error-page.error-page-409 .seismo-note {
  font-size: 10px;
  color: #666;
  text-align: left;
  font-style: italic;
}

body.error-page.error-page-409 .seismo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

body.error-page.error-page-409 .seismo-arm {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--error-success);
  color: #0d180f;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  flex-shrink: 0;
}

body.error-page.error-page-409 .seismo-arm:hover {
  filter: brightness(1.05);
}

@media (max-width: 640px) {
  body.error-page.error-page-409 .seismo-instruction {
    font-size: 22px;
  }
}

body.error-page.error-page-409 .anxiety-log,
body.error-page.error-page-418 .incident-report,
body.error-page.error-page-410 .capabilities,
body.error-page.error-page-422 .incident-report,
body.error-page.error-page-504 .incident-report,
body.error-page.error-page-502 .sitrep {
  max-width: 440px;
  width: 100%;
  text-align: left;
  background: var(--error-surface);
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 24px;
}

body.error-page.error-page-409 .anxiety-log h3,
body.error-page.error-page-418 .incident-report h3,
body.error-page.error-page-410 .capabilities h3,
body.error-page.error-page-422 .incident-report h3,
body.error-page.error-page-504 .incident-report h3,
body.error-page.error-page-502 .sitrep h3,
body.error-page.error-page-conversation-not-found .theories h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 14px;
}

body.error-page.error-page-409 .log-entry {
  font-size: 13px;
  color: #555;
  padding: 6px 0;
  border-bottom: 1px solid var(--error-surface-alt);
  line-height: 1.6;
}

body.error-page.error-page-409 .log-entry:last-child {
  border-bottom: none;
}

body.error-page.error-page-409 .log-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--error-accent);
  margin-right: 6px;
}

body.error-page.error-page-409 .log-note {
  color: #999;
  font-style: italic;
}

body.error-page.error-page-409 .stats {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

body.error-page.error-page-409 .stat {
  background: var(--error-surface);
  border-radius: 10px;
  padding: 16px 24px;
  text-align: center;
}

body.error-page.error-page-409 .stat-num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

body.error-page.error-page-409 .stat-num.bad { color: var(--error-danger); }
body.error-page.error-page-409 .stat-num.ok { color: var(--error-success); }

body.error-page.error-page-409 .stat-label {
  font-size: 11px;
  color: var(--error-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  body.error-page.error-page-409 .seismo-footer,
  body.error-page.error-page-409 .stats {
    flex-direction: column;
    align-items: stretch;
  }

  body.error-page.error-page-409 .seismo-arm {
    width: 100%;
  }
}

body.error-page.error-page-410 .poster {
  max-width: 380px;
  width: 100%;
  border: 3px solid var(--error-fg);
  border-radius: 4px;
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
  background: white;
}

body.error-page.error-page-410 .poster-title {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--error-danger);
}

body.error-page.error-page-410 .poster-image {
  font-size: 64px;
  margin-bottom: 16px;
  line-height: 1;
  filter: grayscale(30%);
}

body.error-page.error-page-410 .poster-details {
  text-align: left;
  font-size: 14px;
  color: #444;
  line-height: 1.8;
}

body.error-page.error-page-410 .poster-details strong,
body.error-page.error-page-418 .ir-label,
body.error-page.error-page-422 .ir-label,
body.error-page.error-page-504 .ir-label {
  color: var(--error-fg);
  font-weight: 600;
}

body.error-page.error-page-410 .poster-reward {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px dashed #ccc;
  font-size: 13px;
  color: var(--error-muted);
  font-style: italic;
}

body.error-page.error-page-410 .cap-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--error-surface-alt);
  color: #555;
}

body.error-page.error-page-410 .cap-row:last-child,
body.error-page.error-page-418 .ir-row:last-child,
body.error-page.error-page-422 .ir-row:last-child,
body.error-page.error-page-504 .ir-row:last-child,
body.error-page.error-page-502 .sitrep-row:last-child,
body.error-page.error-page-503 .service-row:last-child {
  border-bottom: none;
}

body.error-page.error-page-410 .cap-status {
  font-weight: 600;
  color: var(--error-danger);
}

body.error-page.error-page-418 .sub,
body.error-page.error-page-422 .sub,
body.error-page.error-page-504 .sub,
body.error-page.error-page-conversation-not-found .sub {
  max-width: 520px;
}

body.error-page.error-page-422 .bit-display {
  background: var(--error-terminal);
  border-radius: 12px;
  padding: 20px 28px;
  max-width: 480px;
  width: 100%;
  margin-bottom: 24px;
  text-align: center;
}

body.error-page.error-page-422 .bit-display .label {
  margin-bottom: 10px;
  text-align: left;
}

body.error-page.error-page-422 .bits {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--error-success);
  letter-spacing: 2px;
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

body.error-page.error-page-422 .bits .bit-char {
  display: inline-block;
  transition: color 0.12s ease, transform 0.12s ease;
}

body.error-page.error-page-422 .bits .flipped {
  color: var(--error-danger);
  font-weight: 700;
}

body.error-page.error-page-422 .incident-report {
  margin-bottom: 24px;
}

body.error-page.error-page-422 .ir-row {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--error-surface-alt);
  line-height: 1.6;
  color: #555;
}

body.error-page.error-page-418 .ir-row {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--error-surface-alt);
  line-height: 1.6;
  color: #555;
}

body.error-page.error-page-504 .power-glyph {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 18px;
  filter: grayscale(10%);
}

body.error-page.error-page-504 .incident-report {
  margin-bottom: 24px;
}

body.error-page.error-page-504 .ir-row {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--error-surface-alt);
  line-height: 1.6;
  color: #555;
}

body.error-page.error-page-429 .badge {
  background: linear-gradient(135deg, var(--error-accent), var(--error-accent-soft));
}

body.error-page.error-page-429 .eval-card {
  max-width: 500px;
  width: 100%;
  text-align: left;
  margin-bottom: 28px;
}

body.error-page.error-page-429 .question {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--error-surface-alt);
}

body.error-page.error-page-429 .option {
  padding: 16px 20px;
  background: var(--error-surface);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  border: 2px solid transparent;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

body.error-page.error-page-429 .option:hover {
  background: var(--error-surface-alt);
}

body.error-page.error-page-429 .option.selected {
  border-color: var(--error-accent);
  background: #f5ede6;
}

body.error-page.error-page-429 .option-label {
  font-weight: 600;
  color: var(--error-accent);
  margin-right: 6px;
}

body.error-page.error-page-429 .thank-you {
  display: none;
  max-width: 460px;
  padding: 20px 28px;
  background: var(--error-surface);
  border-radius: 12px;
  margin-bottom: 28px;
  text-align: center;
}

body.error-page.error-page-429 .thank-you p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

body.error-page.error-page-429 .thank-you .team {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  font-style: italic;
}

body.error-page.error-page-429 a.back {
  display: none;
  background: linear-gradient(135deg, var(--error-accent), var(--error-accent-dark));
  padding: 14px 36px;
  transition: opacity 0.2s;
}

body.error-page.error-page-429 a.back:hover {
  background: linear-gradient(135deg, var(--error-accent), var(--error-accent-dark));
  opacity: 0.9;
}

body.error-page.error-page-500 .sub {
  margin-bottom: 28px;
}

body.error-page.error-page-500 .stacktrace {
  background: var(--error-terminal);
  color: #e8e0d8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-align: left;
  padding: 20px 24px;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  margin-bottom: 32px;
  line-height: 1.8;
  overflow-x: auto;
}

body.error-page.error-page-500 .stacktrace .error {
  color: var(--error-danger);
}

body.error-page.error-page-500 .stacktrace .path {
  color: var(--error-muted);
}

body.error-page.error-page-500 .stacktrace .fn {
  color: var(--error-accent-soft);
}

body.error-page.error-page-502 .sitrep-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--error-surface-alt);
}

body.error-page.error-page-502 .sitrep-label {
  color: #666;
}

body.error-page.error-page-502 .sitrep-value {
  font-weight: 500;
  text-align: right;
}

body.error-page.error-page-502 .sitrep-value.bad { color: var(--error-danger); }
body.error-page.error-page-502 .sitrep-value.ok { color: var(--error-success); }
body.error-page.error-page-502 .sitrep-value.meh { color: var(--error-warning); }

body.error-page.error-page-503 > h1 {
  margin-bottom: 6px;
}

body.error-page.error-page-503 .sub-header {
  color: var(--error-muted);
  font-size: 14px;
  margin-bottom: 32px;
  font-weight: 300;
}

body.error-page.error-page-503 .status-page {
  max-width: 480px;
  width: 100%;
  text-align: left;
  margin-bottom: 32px;
}

body.error-page.error-page-503 .status-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--error-surface-alt);
}

body.error-page.error-page-503 .status-header h2 {
  font-size: 16px;
  font-weight: 600;
}

body.error-page.error-page-503 .uptime-label {
  font-size: 13px;
  color: var(--error-muted);
}

body.error-page.error-page-503 .uptime-label span {
  color: var(--error-danger);
  font-weight: 600;
}

body.error-page.error-page-503 .uptime-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  height: 28px;
}

body.error-page.error-page-503 .uptime-bar .day {
  flex: 1;
  border-radius: 3px;
}

body.error-page.error-page-503 .day.down { background: var(--error-danger); }
body.error-page.error-page-503 .day.degraded { background: var(--error-warning); }
body.error-page.error-page-503 .day.up { background: var(--error-success); }

body.error-page.error-page-503 .incident-counter {
  text-align: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--error-surface);
  border-radius: 10px;
}

body.error-page.error-page-503 .incident-counter .number {
  font-size: 48px;
  font-weight: 700;
  color: var(--error-danger);
  line-height: 1;
}

body.error-page.error-page-503 .incident-counter .label {
  font-size: 12px;
  color: var(--error-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

body.error-page.error-page-503 .service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--error-surface);
  font-size: 14px;
}

body.error-page.error-page-503 .service-name {
  font-weight: 500;
}

body.error-page.error-page-503 .service-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
}

body.error-page.error-page-503 .service-status.operational {
  background: #e6f4ea;
  color: #1e7e34;
}

body.error-page.error-page-503 .service-status.degraded {
  background: #fff3e0;
  color: #c77c00;
}

body.error-page.error-page-503 .service-status.outage {
  background: #fde8e8;
  color: #c53030;
}

body.error-page.error-page-503 .service-detail {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  text-align: right;
}

body.error-page.error-page-conversation-not-found .code {
  font-size: 120px;
  letter-spacing: -4px;
}

body.error-page.error-page-conversation-not-found .sub {
  margin-bottom: 20px;
}

body.error-page.error-page-conversation-not-found .theories {
  max-width: 440px;
  text-align: left;
  margin-bottom: 28px;
  padding: 20px 28px;
  background: var(--error-surface);
  border-radius: 12px;
}

body.error-page.error-page-conversation-not-found .theories ul {
  list-style: none;
  padding: 0;
}

body.error-page.error-page-conversation-not-found .theories li {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

body.error-page.error-page-conversation-not-found .theories li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--error-accent);
}

body.error-page.error-page-conversation-not-found .buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

body.error-page.error-page-conversation-not-found a.btn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

body.error-page.error-page-conversation-not-found a.btn:active {
  transform: scale(0.97);
}

body.error-page.error-page-conversation-not-found a.btn.primary {
  background: var(--error-accent);
  color: white;
}

body.error-page.error-page-conversation-not-found a.btn.primary:hover {
  background: var(--error-accent-dark);
}

body.error-page.error-page-conversation-not-found a.btn.secondary {
  background: var(--error-surface-alt);
  color: #666;
}

body.error-page.error-page-conversation-not-found a.btn.secondary:hover {
  background: #ddd5cc;
}

body.error-page.error-page-conversation-not-found .helpful {
  margin-top: 12px;
  padding: 20px 28px;
  background: var(--error-surface);
  border-radius: 12px;
  max-width: 440px;
}

body.error-page.error-page-conversation-not-found .helpful p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

body.error-page.error-page-conversation-not-found .helpful a {
  color: var(--error-accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--error-accent);
}

body.error-page.error-page-conversation-not-found .helpful a:hover {
  color: var(--error-accent-dark);
}
