:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #16171a;
  --muted: #62656d;
  --border: #e3e4e8;
  --ok: #1f9d55;
  --ok-soft: #e6f5ec;
  --warn: #c98a00;
  --warn-soft: #fbf3dc;
  --bad: #d93025;
  --bad-soft: #fbe7e5;
  --none: #d4d6db;
  --unknown-soft: #eef0f3;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1012;
    --surface: #17181b;
    --text: #ececef;
    --muted: #9a9ca4;
    --border: #2a2c31;
    --ok: #3ccb7f;
    --ok-soft: #12291c;
    --warn: #e3b341;
    --warn-soft: #2d2410;
    --bad: #f2685f;
    --bad-soft: #321614;
    --none: #34363c;
    --unknown-soft: #202227;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

a {
  color: inherit;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 56px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

/* The lockup from elfa-ai-app (public/brand_assets/brand-new.svg on main),
   same size as the app's navbar. */
.brand {
  display: flex;
}

.brand img {
  display: block;
  height: 28px;
  width: auto;
}

.title__label {
  padding-left: 10px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

.home {
  color: var(--muted);
  font-size: 14px;
}

.banner {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-left-width: 5px;
}

.banner--operational {
  background: var(--ok-soft);
  border-left-color: var(--ok);
}
.banner--degraded {
  background: var(--warn-soft);
  border-left-color: var(--warn);
}
.banner--outage {
  background: var(--bad-soft);
  border-left-color: var(--bad);
}
.banner--unknown {
  background: var(--unknown-soft);
  border-left-color: var(--muted);
}

.banner__text {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.banner__detail {
  margin: 6px 0 0;
  color: var(--muted);
}

.components {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.component {
  padding: 18px 20px;
}

.component + .component {
  border-top: 1px solid var(--border);
}

.component__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.component__name {
  font-weight: 600;
}

.pill {
  font-size: 13px;
  font-weight: 600;
}
.pill--operational {
  color: var(--ok);
}
.pill--degraded {
  color: var(--warn);
}
.pill--outage {
  color: var(--bad);
}
.pill--unknown {
  color: var(--muted);
}

.bars {
  display: flex;
  gap: 2px;
  height: 32px;
}

.bar {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 2px;
}
.bar--operational {
  background: var(--ok);
}
.bar--degraded {
  background: var(--warn);
}
.bar--outage {
  background: var(--bad);
}
.bar--none {
  background: var(--none);
}

.component__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.component__uptime {
  text-align: center;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.note {
  color: var(--muted);
}
