:root {
  --blue: #4169E1;
  --ink: #0b0d14;
  --paper: #ffffff;
  --muted: #5b6170;
  --line: #e7e9f0;
  --green: #2e9e5b;
  --amber: #d99a00;
  --red: #d24b3e;
  --bg: #f6f7fb;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--ink); color: #fff;
}
.brand { color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 900;
}
.brand-sub { color: #9aa3c7; font-weight: 600; }
.topbar nav a { color: #c8cce0; font-size: 14px; }

main { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.loading { text-align: center; padding: 64px 0; }
.spinner {
  display: inline-block; width: 28px; height: 28px; border: 3px solid var(--line);
  border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(11,13,20,0.04);
}
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 28px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Overall status banner */
.banner {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  border-radius: 14px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 16px;
}
.banner.operational { background: var(--green); }
.banner.degraded { background: var(--amber); }
.banner.outage { background: var(--red); }
.banner.maintenance { background: var(--blue); }
.banner .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.9); }

.component { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.component:last-child { border-bottom: none; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.pill.operational { background: rgba(46,158,91,0.12); color: var(--green); }
.pill.degraded { background: rgba(217,154,0,0.14); color: var(--amber); }
.pill.outage { background: rgba(210,75,62,0.12); color: var(--red); }
.pill.maintenance { background: rgba(65,105,225,0.12); color: var(--blue); }

/* Location/business status hero */
.statusline { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; }
.statusdot { width: 12px; height: 12px; border-radius: 50%; }
.statusdot.protected { background: var(--green); }
.statusdot.overdue, .statusdot.alert { background: var(--amber); }
.statusdot.new { background: var(--blue); }

/* Embed docs */
pre {
  background: var(--ink); color: #e8eaf6; padding: 14px 16px; border-radius: 10px;
  overflow-x: auto; font-size: 13px; font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tabs { display: flex; gap: 6px; margin: 8px 0; }
.tab { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13px; font-weight: 600; }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-preview { margin: 16px 0; }

.foot {
  max-width: 760px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
