/* Crossdeck status page — same design language as the docs, standalone file
   (no shared stylesheet: this page must not depend on anything we serve).
   The bar: a developer evaluating Crossdeck lands here to judge us. Every
   pixel is either precision or calm — nothing decorative. */
:root {
  --bg: #f7f3ec;
  --surface: #fff;
  --ink: #14110f;
  --muted: #6b6259;
  --border: rgba(23, 19, 17, 0.09);
  --border-strong: rgba(23, 19, 17, 0.16);
  --accent: #ee4f25;
  /* The one deliberate exception to the product color grammar — on a status
     page, universal convention wins: green / amber / red. */
  --ok: #0e7a52;
  --deg: #b45309;
  --down: #b3261e;
}
* { box-sizing: border-box; }
html { font-family: Inter, -apple-system, system-ui, sans-serif; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

.st-header { display: flex; align-items: center; gap: 10px; padding: 22px 0 14px; width: min(calc(100% - 36px), 760px); margin: 0 auto; }
.st-brand { display: inline-flex; align-items: center; }
.st-brand img { height: 26px; width: auto; display: block; }
.st-brand-tag { font-size: 11px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }

.st-shell { width: min(calc(100% - 36px), 760px); margin: 0 auto; padding: 10px 0 60px; }

/* ── Banner ─────────────────────────────────────────────────────────────── */
.st-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 26px; margin-bottom: 30px; box-shadow: 0 1px 2px rgba(23, 19, 17, 0.03); }
.st-banner h1 { font-size: 21px; font-weight: 650; letter-spacing: -0.018em; margin: 0; }
.st-banner-meta { margin: 0; flex-basis: 100%; font-size: 12.5px; color: var(--muted); }
.st-banner-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--muted); flex: none; }
.st-banner.is-operational .st-banner-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent); }
.st-banner.is-degraded .st-banner-dot { background: var(--deg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--deg) 14%, transparent); }
.st-banner.is-down .st-banner-dot { background: var(--down); box-shadow: 0 0 0 4px color-mix(in srgb, var(--down) 14%, transparent); }
.st-banner.is-stale { border-color: var(--deg); }
.st-banner.is-stale .st-banner-dot { background: var(--deg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--deg) 14%, transparent); }
.st-banner.is-loading .st-banner-dot { animation: st-breathe 1.6s ease-in-out infinite; }
@keyframes st-breathe { 50% { opacity: 0.35; } }

/* ── Components ─────────────────────────────────────────────────────────── */
.st-components { display: grid; gap: 14px; }
.st-comp { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px 14px; box-shadow: 0 1px 2px rgba(23, 19, 17, 0.03); }
.st-comp-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.st-comp-name { font-weight: 650; font-size: 15px; letter-spacing: -0.011em; }
.st-comp-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-comp-state { margin-left: auto; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-comp-state.is-operational { color: var(--ok); }
.st-comp-state.is-degraded { color: var(--deg); }
.st-comp-state.is-down { color: var(--down); }
.st-comp-state.is-stale { color: var(--deg); }
.st-comp-state.is-indeterminate { color: var(--muted); }
.st-comp-detail { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

/* Day bars — the page's center of gravity. Hover any day for the truth. */
.st-bars { display: flex; gap: 3px; margin-top: 14px; height: 34px; }
.st-bar { flex: 1; border-radius: 3px; background: var(--ok); opacity: 0.82; min-width: 2px; cursor: default; transition: transform 80ms ease, opacity 80ms ease; }
.st-bar:hover, .st-bar:focus-visible { opacity: 1; transform: scaleY(1.12); outline: none; }
.st-bar.is-deg { background: var(--deg); }
.st-bar.is-down { background: var(--down); }
.st-bar.is-empty { background: var(--border); }
.st-bars-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--muted); margin-top: 7px; }
.st-uptime { font-size: 12px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Day popover */
.st-pop { position: absolute; z-index: 20; display: none; flex-direction: column; gap: 2px; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 13px; font-size: 12px; line-height: 1.5; box-shadow: 0 6px 24px rgba(23, 19, 17, 0.22); pointer-events: none; max-width: 240px; }
.st-pop.is-on { display: flex; }
.st-pop strong { font-size: 12px; font-weight: 650; }
.st-pop span { display: block; }
.st-pop-line.is-ok { color: #7fd6b1; }
.st-pop-line.is-deg { color: #f3c078; }
.st-pop-line.is-down { color: #f5a39d; }
.st-pop-line.is-na { color: rgba(255, 255, 255, 0.55); }
.st-pop-uptime { color: rgba(255, 255, 255, 0.65); font-variant-numeric: tabular-nums; }

/* ── Incidents ──────────────────────────────────────────────────────────── */
.st-incidents { margin-top: 38px; }
.st-incidents h2 { font-size: 16px; font-weight: 650; letter-spacing: -0.012em; margin: 0 0 12px; }
.st-incident { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 22px; margin-bottom: 12px; }
.st-incident.is-ongoing { border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.st-incident h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 650; }
.st-incident time { font-size: 12px; color: var(--muted); }
.st-incident p { margin: 8px 0 0; font-size: 13.5px; }
.st-no-incidents { color: var(--muted); font-size: 13.5px; }

.st-foot { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 24px 16px 50px; font-size: 12px; color: var(--muted); }
.st-foot a { color: var(--muted); }
.st-foot-note { flex-basis: 100%; text-align: center; }

@media (max-width: 480px) {
  .st-bars { gap: 2px; }
  .st-banner { padding: 18px 20px; }
  .st-banner h1 { font-size: 18px; }
}
