:root {
  color-scheme: dark;
  --bg: #090705;
  --panel: rgba(21, 16, 12, .93);
  --panel-soft: rgba(31, 23, 17, .82);
  --border: rgba(208, 158, 82, .28);
  --gold: #e2b66c;
  --gold-strong: #ffd88c;
  --text: #f4ead9;
  --muted: #a99a86;
  --ok: #42d27c;
  --warning: #f0a431;
  --down: #e4564f;
  --checking: #8a7b69;
  --unknown: #5c554d;
  --shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(190, 105, 22, .24), transparent 39%),
    radial-gradient(circle at 9% 35%, rgba(117, 62, 18, .12), transparent 25%),
    linear-gradient(180deg, #130d08 0%, #090705 56%, #060504 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.018) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(255,255,255,.012) 7px 8px);
  mix-blend-mode: overlay;
}

.ambient { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffb44d;
  box-shadow: 0 0 16px 4px rgba(255, 139, 38, .55);
  opacity: .32;
  animation: drift 9s linear infinite;
}
.ember-1 { left: 12%; top: 82%; animation-delay: -1s; }
.ember-2 { left: 76%; top: 88%; animation-delay: -5s; animation-duration: 12s; }
.ember-3 { left: 91%; top: 68%; animation-delay: -7s; animation-duration: 10s; }
.ember-4 { left: 37%; top: 95%; animation-delay: -3s; animation-duration: 14s; }
@keyframes drift { to { transform: translate(40px, -115vh) scale(.25); opacity: 0; } }

.shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 28px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}
.logo {
  display: block;
  width: min(650px, 90vw);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .62));
}
.hero-copy { margin-top: -14px; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .24em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: .045em;
  text-shadow: 0 3px 16px rgba(0,0,0,.7);
}
.hero-copy > p:last-child { color: var(--muted); margin-bottom: 0; }

.overall {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 132px;
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.035), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035);
  overflow: hidden;
}
.overall::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--status-color, var(--checking));
  box-shadow: 0 0 28px var(--status-color, var(--checking));
}
.overall::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -105px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--status-color, var(--checking)) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.overall-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border: 1px solid color-mix(in srgb, var(--status-color, var(--checking)) 60%, transparent);
  border-radius: 50%;
  color: var(--status-color, var(--checking));
  background: color-mix(in srgb, var(--status-color, var(--checking)) 10%, transparent);
  font-size: 1.55rem;
  box-shadow: inset 0 0 22px rgba(0,0,0,.32);
}
.pulse {
  position: absolute;
  inset: 4px;
  border: 1px solid var(--status-color, var(--checking));
  border-radius: inherit;
  opacity: .45;
  animation: pulse 2.1s ease-out infinite;
}
@keyframes pulse { 70%, 100% { transform: scale(1.35); opacity: 0; } }
.section-label { color: var(--muted); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.overall h2 { margin: 4px 0 4px; font-size: clamp(1.35rem, 3vw, 2rem); }
.overall p { margin-bottom: 0; color: var(--muted); }
.ok { --status-color: var(--ok); }
.warning { --status-color: var(--warning); }
.down { --status-color: var(--down); }
.checking { --status-color: var(--checking); }
.unknown { --status-color: var(--unknown); }

.panel {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 12, 9, .88);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.025);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-heading h2 { margin-bottom: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: .78rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-color); box-shadow: 0 0 9px var(--status-color); }

.service-list { display: grid; gap: 14px; }
.service-card {
  --status-color: var(--checking);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(214, 177, 117, .16);
  border-radius: 12px;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--status-color) 8%, transparent), transparent 38%),
    var(--panel-soft);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover { transform: translateY(-1px); border-color: rgba(226, 182, 108, .34); }
.service-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.service-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border: 1px solid color-mix(in srgb, var(--status-color) 45%, transparent);
  border-radius: 10px;
  color: var(--status-color);
  background: rgba(0,0,0,.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.service-card h3 { margin-bottom: 4px; font-size: 1rem; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-meta { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.latency { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; }
.badge {
  min-width: 105px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--status-color) 48%, transparent);
  border-radius: 999px;
  color: var(--status-color);
  background: color-mix(in srgb, var(--status-color) 10%, transparent);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255,255,255,.035);
}
.status-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--status-color);
  box-shadow: 0 0 14px var(--status-color);
  transform-origin: left center;
  animation: reveal .55s ease-out both;
}
@keyframes reveal { from { transform: scaleX(0); } }
.skeleton-card .status-track span { animation: loading 1.4s ease-in-out infinite; opacity: .55; }
@keyframes loading { 0%,100% { transform: scaleX(.18); } 50% { transform: translateX(82%) scaleX(.18); } }

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px 0;
  color: #786d60;
  font-size: .69rem;
  letter-spacing: .12em;
}

@media (max-width: 720px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 20px; }
  .hero-copy { margin-top: -5px; }
  .overall { align-items: flex-start; padding: 22px 20px; }
  .overall-mark { flex-basis: 54px; width: 54px; height: 54px; }
  .panel { padding: 20px 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .legend { justify-content: flex-start; }
  .service-card { grid-template-columns: 1fr; gap: 14px; }
  .service-meta { justify-content: space-between; padding-left: 68px; }
  footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 440px) {
  .overall { gap: 14px; }
  .overall-mark { display: none; }
  .service-card { padding-left: 14px; padding-right: 14px; }
  .service-symbol { flex-basis: 46px; width: 46px; height: 46px; }
  .service-meta { padding-left: 62px; }
  .badge { min-width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


.history {
  margin-top: 28px;
}
.history-heading {
  align-items: flex-start;
}
.section-description {
  max-width: 650px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.history-list {
  display: grid;
  gap: 14px;
}
.history-card {
  padding: 18px 20px 16px;
  border: 1px solid rgba(214, 177, 117, .16);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(226, 182, 108, .045), transparent 38%),
    var(--panel-soft);
}
.history-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.history-card-heading h3 {
  margin: 0;
  font-size: .98rem;
}
.history-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-symbol {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border: 1px solid rgba(226, 182, 108, .26);
  border-radius: 7px;
  color: var(--gold);
  background: rgba(0, 0, 0, .22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  font-weight: 900;
}
.history-availability {
  color: var(--gold-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  white-space: nowrap;
}
.history-bars-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 182, 108, .28) transparent;
}
.history-bars {
  display: flex;
  align-items: stretch;
  gap: 4px;
  min-width: 620px;
  height: 34px;
}
.history-bar {
  --status-color: var(--unknown);
  position: relative;
  flex: 1 1 0;
  min-width: 4px;
  border: 1px solid color-mix(in srgb, var(--status-color) 56%, transparent);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), transparent 48%),
    var(--status-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--status-color) 30%, transparent);
  opacity: .92;
  transition: transform .18s ease, filter .18s ease;
}
.history-bar:hover,
.history-bar:focus-visible {
  z-index: 2;
  transform: translateY(-3px) scaleY(1.12);
  filter: brightness(1.18);
  outline: none;
}
.history-bar.ok { --status-color: var(--ok); }
.history-bar.warning { --status-color: var(--warning); }
.history-bar.down { --status-color: var(--down); }
.history-bar.unknown {
  --status-color: var(--unknown);
  opacity: .38;
  box-shadow: none;
}
.history-range {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  color: #786d60;
  font-size: .67rem;
}
.placeholder-bars {
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(226,182,108,.1), rgba(255,255,255,.035));
  background-size: 220% 100%;
  animation: history-loading 1.5s ease-in-out infinite;
}
@keyframes history-loading {
  to { background-position: -220% 0; }
}

@media (max-width: 720px) {
  .history-card { padding: 16px 14px 14px; }
  .history-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .history-bars { min-width: 600px; height: 30px; }
}
