/* Status page (docs/51 AP-D18). Colours are the docs/11 tokens (apps/web/src/styles/tokens.css),
   copied because this site has no build step. It follows the OS theme. */
:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #141416);
  --bg-grouped: light-dark(#f5f5f7, #0f0f11);
  --surface: light-dark(#ffffff, #1a1a1d);
  --fill: light-dark(rgb(20 20 26 / 0.05), rgb(255 255 255 / 0.06));
  --text: light-dark(#141418, #ececef);
  --text-secondary: light-dark(#55555e, #a3a3ac);
  --separator: light-dark(rgb(20 20 26 / 0.09), rgb(255 255 255 / 0.08));
  --accent: #0a64d6;
  --success: light-dark(#16773a, #3fcf6a);
  --warning: light-dark(#9c4a00, #ffb547);
  --danger: light-dark(#c4122f, #ff6e66);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.5;
}
@media (prefers-contrast: more) {
  :root {
    --separator: var(--text-secondary);
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg-grouped);
  color: var(--text);
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}
.narrow {
  max-width: 520px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 16px;
}
.brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
h1 {
  font-size: 1.5rem;
  margin: 0 0 12px;
}
h2 {
  font-size: 1.1rem;
  margin: 24px 0 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 16px;
}
.banner {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
  background: var(--success);
}
.dot.degraded {
  background: var(--warning);
}
.dot.outage {
  background: var(--danger);
}
.dot.unknown {
  background: var(--text-secondary);
}
.muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
ul.components {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.components > li {
  padding: 12px 0;
  border-top: 1px solid var(--separator);
}
ul.components > li:first-child {
  border-top: 0;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.state.operational {
  color: var(--success);
}
.state.degraded {
  color: var(--warning);
}
.state.outage {
  color: var(--danger);
}
.bars {
  display: flex;
  gap: 1px;
  margin-top: 8px;
  height: 24px;
}
.bars span {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 1px;
  background: var(--success);
}
.bars span.partial {
  background: var(--warning);
}
.bars span.down {
  background: var(--danger);
}
.incident {
  margin-top: 12px;
}
.incident h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.incident ol {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.incident li {
  padding: 6px 0;
  border-top: 1px solid var(--separator);
}
form.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 220px;
}
input[type="email"] {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--separator);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.button {
  font: inherit;
  font-weight: 600;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
