:root {
  color-scheme: dark;
  --bg: #010203;
  --surface: #080d14;
  --surface-soft: #101822;
  --line: rgba(214, 187, 135, 0.2);
  --text: #ede3cf;
  --muted: #b8c0cb;
  --strong: #fff2d8;
  --accent: #d6bb87;
  --ok: #6fcf97;
  --warn: #d6a84f;
  --bad: #e06f6f;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -20%, rgba(7, 31, 73, 0.72), transparent 48%),
    var(--bg);
  color: var(--text);
  font-family: "Sora", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

.public-shell {
  width: min(760px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 40px 0;
}

.public-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.public-header img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--strong);
  font-size: clamp(2rem, 8vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.status-panel {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 6vw, 42px);
  background: linear-gradient(145deg, rgba(16, 24, 34, 0.96), rgba(8, 13, 20, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.state-light {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 8px rgba(214, 168, 79, 0.12);
}

.state-online {
  background: var(--ok);
  box-shadow: 0 0 0 8px rgba(111, 207, 151, 0.12);
}

.state-degraded,
.state-loading {
  background: var(--warn);
  box-shadow: 0 0 0 8px rgba(214, 168, 79, 0.12);
}

.state-offline {
  background: var(--bad);
  box-shadow: 0 0 0 8px rgba(224, 111, 111, 0.12);
}

.state-label {
  margin: 0;
  color: var(--strong);
  font-size: clamp(1.65rem, 7vw, 3.4rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: 0;
}

.state-detail,
.connection-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.status-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 0;
}

.status-meta div {
  min-width: 0;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.status-meta dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.status-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
}

.connection-note {
  padding: 12px 14px;
  background: rgba(224, 111, 111, 0.14);
  border: 1px solid rgba(224, 111, 111, 0.24);
  border-radius: 8px;
}

@media (max-width: 540px) {
  .public-shell {
    width: min(100% - 24px, 760px);
    padding: 24px 0;
  }

  .public-header {
    align-items: flex-start;
  }

  .status-meta {
    grid-template-columns: 1fr;
  }
}
