/* The MandateOps workspace look: the playground's tokens, type and radius,
   light theme, one quiet column. The tokens are copied from the
   playground's style.css, which has no shared package to import from. */
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist.woff2") format("woff2-variations");
}

:root {
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --hover-duration: 150ms;
  --ws-ink: #0b0d12;
  --ws-text: #1f2430;
  --ws-muted: #545b68;
  --ws-line: #e3e5ea;
  --ws-bg: #f7f7f8;
  --ws-surface: #ffffff;
  --ws-accent: #3730a3;
  --ws-focus: #4f46e5;
  --ws-fail: #b42318;
  --ws-fail-bg: #fef3f2;
  --ws-pass: #05603a;
  --ws-pass-bg: #ecfdf3;
  /* The one token the playground lacks: its runs only pass or fail, and
     a status page also needs "degraded". */
  --ws-warn: #93370d;
  --ws-warn-bg: #fffaeb;
  --ws-unknown: #475467;
  --ws-unknown-bg: #f2f4f7;
  --ws-radius: 8px;
  --ws-space-1: 4px;
  --ws-space-2: 8px;
  --ws-space-3: 12px;
  --ws-space-4: 16px;
  --ws-space-6: 24px;
  --ws-space-8: 32px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--ws-bg);
  color: var(--ws-text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ws-ink);
  text-wrap: balance;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--hover-duration) var(--ease-out);
}
a:focus-visible {
  outline: 2px solid var(--ws-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: var(--ws-space-8);
  max-width: 640px;
  margin: 0 auto;
  padding: var(--ws-space-8) var(--ws-space-4) 48px;
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  color: var(--ws-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  color: var(--ws-accent);
}
.head-label {
  color: var(--ws-muted);
}

/* State reads from the label colour and a faint tint, never an edge bar,
   as in the workspace verdict. */
.summary {
  display: flex;
  flex-direction: column;
  gap: var(--ws-space-1);
  padding: var(--ws-space-4);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-surface);
}
.summary h1 {
  font-size: 15px;
  font-weight: 600;
}
.summary-up {
  background: var(--ws-pass-bg);
}
.summary-degraded {
  background: var(--ws-warn-bg);
}
.summary-down {
  background: var(--ws-fail-bg);
}
.summary-unknown {
  background: var(--ws-unknown-bg);
}

section {
  display: flex;
  flex-direction: column;
  gap: var(--ws-space-3);
}
h2 {
  font-size: 13px;
  font-weight: 600;
}
.meta {
  color: var(--ws-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.empty {
  color: var(--ws-muted);
}

.rows {
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-surface);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-4);
  min-height: 48px;
  padding: var(--ws-space-2) var(--ws-space-4);
}
.row + .row {
  border-top: 1px solid var(--ws-line);
}

.state {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.state-up {
  color: var(--ws-pass);
}
.state-degraded {
  color: var(--ws-warn);
}
.state-down {
  color: var(--ws-fail);
}
.state-unknown {
  color: var(--ws-unknown);
}

.incident {
  display: flex;
  flex-direction: column;
  gap: var(--ws-space-2);
  padding: var(--ws-space-4);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-surface);
}
.incident h3 {
  font-size: 14px;
  font-weight: 600;
}
.updates {
  display: flex;
  flex-direction: column;
  gap: var(--ws-space-3);
  padding-top: var(--ws-space-2);
  border-top: 1px solid var(--ws-line);
}
.updates p:last-child {
  text-wrap: pretty;
}

.foot {
  display: flex;
  gap: var(--ws-space-4);
  color: var(--ws-muted);
  font-size: 13px;
}
.foot a:hover {
  color: var(--ws-ink);
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
