@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-latin.woff2') format('woff2');font-style:normal;font-weight:100 1000;font-display:swap}
@font-face{font-family:'IBM Plex Mono';src:url('/fonts/ibm-plex-mono-latin.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #081d2d;
  --card: #ffffff;
  --card-foreground: var(--foreground);
  --popover: #ffffff;
  --popover-foreground: var(--foreground);
  --primary: #075cff;
  --primary-foreground: #ffffff;
  --primary-hover: #0348d5;
  --secondary: #eaf4f6;
  --secondary-foreground: #007d8a;
  --muted: #f5f7fa;
  --muted-foreground: #65718b;
  --accent: #eaf1ff;
  --accent-foreground: #0348d5;
  --destructive: #bb263b;
  --destructive-foreground: #ffffff;
  --border: #e0e6ee;
  --input: var(--border);
  --ring: #075cff;
  --brand-teal: #008d98;
  --brand-cobalt: #246bff;
  --code-background: #192f3d;
  --code-foreground: #edf5fa;
  --code-muted: #afc4d3;
  --code-string: #36e3e2;
  --code-number: #73baff;
  --font-sans: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 0.875rem;
  --radius-control: 999px;
  --shadow-card: 0 16px 44px -10px rgb(20 52 77 / 17%);
  --shadow-action: 0 5px 12px -4px rgb(7 92 255 / 35%);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* Future React/shadcn dashboard imports these exact semantic roles. */
.dark {
  color-scheme: dark;
  --background: #081d2d;
  --foreground: #edf5fa;
  --card: #192f3d;
  --card-foreground: #edf5fa;
  --popover: #192f3d;
  --popover-foreground: #edf5fa;
  --primary: #73a6ff;
  --primary-foreground: #081d2d;
  --primary-hover: #99bfff;
  --secondary: #153d46;
  --secondary-foreground: #67d9de;
  --muted: #192f3d;
  --muted-foreground: #afc4d3;
  --accent: #183867;
  --accent-foreground: #a8c8ff;
  --destructive: #ff8796;
  --destructive-foreground: #081d2d;
  --border: #355163;
  --input: var(--border);
  --ring: #73a6ff;
}

*{box-sizing:border-box}
html{font-family:var(--font-sans);background:var(--background);color:var(--foreground);scroll-behavior:smooth;scrollbar-color:var(--muted-foreground) var(--background)}
body{margin:0;line-height:1.5;caret-color:var(--primary)}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:var(--primary);text-underline-offset:.2em}
::selection{background:var(--accent);color:var(--accent-foreground)}
:focus-visible{outline:3px solid var(--ring);outline-offset:4px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:48px;padding:.65rem 1.9rem;border:1px solid transparent;border-radius:var(--radius-control);font-weight:500;text-decoration:none;white-space:nowrap;transition:background .18s var(--ease-out),box-shadow .18s var(--ease-out)}
.button--primary{background:var(--primary);color:var(--primary-foreground);box-shadow:var(--shadow-action)}
.button--primary:hover{background:var(--primary-hover)}
.button--outline{background:transparent;border-color:var(--primary);color:var(--primary)}
.button--outline:hover{background:var(--accent)}
.button:disabled,.button[aria-disabled=true]{opacity:.5;cursor:not-allowed;box-shadow:none}
.button[aria-busy=true]{cursor:progress}
.text-link{display:inline-flex;align-items:center;gap:.7rem;padding:.6rem 0;font-weight:500;text-decoration:none;background:none;border:0;color:var(--primary)}
.text-link:hover{text-decoration:underline}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:1rem;left:1rem;z-index:100;background:var(--foreground);color:var(--background);padding:.75rem 1rem;transform:translateY(-200%)}
.skip-link:focus{transform:translateY(0)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Status page: one column on the shared white/navy/cobalt theme. No inline styles anywhere. */
:root{--state-operational:var(--brand-teal);--state-degraded:#b4640a;--state-down:var(--destructive);--state-none:var(--border)}
body{background:var(--muted)}
.status{min-height:100svh;display:flex;flex-direction:column;align-items:center;padding:32px 20px}
.status-header,.status-main,.status-footer{width:min(100%,760px)}
.status-header{margin-bottom:20px}
.status-brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:15px;letter-spacing:-.02em;color:var(--foreground);text-decoration:none}
.status-main{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-card);padding:36px 36px 30px}
.status-main h1{font-size:28px;line-height:1.2;letter-spacing:-.03em;margin:0 0 18px}
.status-main h2{font-size:18px;letter-spacing:-.02em;margin:0 0 6px}
.status-main h3{font-size:16px;margin:0}
.dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--state-none)}
[data-state=operational] .dot{background:var(--state-operational)}
[data-state=degraded] .dot{background:var(--state-degraded)}
[data-state=down] .dot{background:var(--state-down)}
.banner{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:12px;border:1px solid var(--border);background:var(--muted);font-weight:600;font-size:17px}
.banner p{margin:0}
.banner .dot{flex-basis:14px;width:14px;height:14px}
.banner[data-state=operational]{background:color-mix(in srgb,var(--state-operational) 9%,var(--background));border-color:color-mix(in srgb,var(--state-operational) 35%,transparent)}
.banner[data-state=degraded]{background:color-mix(in srgb,var(--state-degraded) 9%,var(--background));border-color:color-mix(in srgb,var(--state-degraded) 40%,transparent)}
.banner[data-state=down]{background:color-mix(in srgb,var(--state-down) 8%,var(--background));border-color:color-mix(in srgb,var(--state-down) 40%,transparent)}
.checked{margin:12px 0 0;font-size:14px;color:var(--muted-foreground)}
.stale{margin:10px 0 0;font-size:14px;color:var(--state-degraded);font-weight:500}
.block{margin-top:34px}
.block-intro{margin:0 0 14px;font-size:14px;color:var(--muted-foreground)}
.components{list-style:none;margin:12px 0 0;padding:0}
.component{padding:18px 0;border-top:1px solid var(--border)}
.component:last-child{padding-bottom:0}
.component-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.component-desc{margin:2px 0 0;font-size:14px;color:var(--muted-foreground)}
.component-state{display:inline-flex;align-items:center;gap:8px;margin:2px 0 0;font-size:14px;font-weight:600;white-space:nowrap}
.component-state[data-state=operational]{color:var(--state-operational)}
.component-state[data-state=degraded]{color:var(--state-degraded)}
.component-state[data-state=down]{color:var(--state-down)}
.component-state[data-state=unknown]{color:var(--muted-foreground)}
.component-detail{margin:8px 0 0;font-size:14px;color:var(--muted-foreground)}
.bars{display:grid;grid-template-columns:repeat(90,minmax(0,1fr));gap:2px;list-style:none;margin:14px 0 0;padding:0;height:30px}
.bars li{border-radius:2px;background:var(--state-none)}
.bars li[data-state=operational]{background:var(--state-operational)}
.bars li[data-state=degraded]{background:var(--state-degraded)}
.bars li[data-state=down]{background:var(--state-down)}
.bars-legend{display:flex;justify-content:space-between;gap:12px;margin:6px 0 0;font-size:12px;color:var(--muted-foreground)}
.bars-uptime{font-weight:600;color:var(--foreground)}
.bars-from--narrow{display:none}
.incidents{list-style:none;margin:0;padding:0}
.incident{padding:14px 0;border-top:1px solid var(--border)}
.incident-title{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0;font-size:15px}
.incident-meta{margin:4px 0 0;font-size:14px;color:var(--muted-foreground)}
.tag{font-size:12px;font-weight:600;padding:2px 10px;border-radius:999px;background:color-mix(in srgb,var(--state-down) 10%,var(--background));color:var(--state-down)}
.tag--resolved{background:var(--secondary);color:var(--secondary-foreground)}
.empty{margin:0;font-size:15px;color:var(--muted-foreground)}
.status-footer{margin-top:18px;font-size:13px;color:var(--muted-foreground);text-align:center}
.status-footer p{margin:6px 0}
.status-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px}
.status-links a{color:var(--muted-foreground)}
.status-links a:hover{color:var(--primary)}
@media(max-width:560px){
  .status{padding:22px 14px}
  .status-main{padding:26px 20px 22px}
  .status-main h1{font-size:24px}
  .component-head{flex-direction:column;gap:6px}
  .bars{grid-template-columns:repeat(30,minmax(0,1fr));gap:3px}
  .bars li:nth-child(-n+60){display:none}
  .bars-from--wide{display:none}
  .bars-from--narrow{display:inline}
}
