/* The landing and docs site's base: tokens, fonts and shared components; site/site.css adds the
   site layouts. The app has its own styles in web/src/index.css. Rules for classes no site page
   uses were removed on 2026-10-19; add a rule here only with the page that uses it. */
/* @fonts-start */
Layout: admin = a 56px top bar and a 44px project tab bar in one sticky band, then the page.
   Dark first. Light ("Daylight") follows the OS or data-theme="light". */


@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./fonts/inter-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/geist-mono-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/geist-mono-latin-500.woff2") format("woff2"); }
/* @fonts-end */
:root {
  /* Scheme: dark (Lunear) */
  --bg: #08090a;
  --bg-2: #0f1011;
  --fg: #f7f8f8;
  --fg-muted: #a9aeb6;
  --accent: #f25cbf;
  --accent-ink: #f25cbf;
  --accent-fg: #1a0612;
  --green: #4cb782;
  --red: #eb5757;
  --yellow: #f2c94c;
  --hair-alpha: 8%;
  --shadow: 0 2px 32px color-mix(in srgb, var(--bg) 60%, transparent), 0 0 0 1px color-mix(in srgb, var(--bg) 40%, transparent);
  color-scheme: dark;

  /* Derived. Never write a color literal below this line or outside :root. */
  --fg-2: color-mix(in srgb, var(--fg) 80%, var(--fg-muted));
  --fg-3: color-mix(in srgb, var(--fg-muted) 80%, var(--bg));
  --bg-3: color-mix(in srgb, var(--bg-2) 93%, var(--fg));
  --border: color-mix(in srgb, var(--fg) var(--hair-alpha), transparent);
  --border-input: color-mix(in srgb, var(--fg) 12%, transparent);
  --rule: color-mix(in srgb, var(--fg) 11%, var(--bg));
  --f2: color-mix(in srgb, var(--fg) 2%, transparent);
  --f4: color-mix(in srgb, var(--fg) 4%, transparent);
  --f6: color-mix(in srgb, var(--fg) 6%, transparent);
  --pill-light: color-mix(in srgb, var(--fg) 92%, var(--bg));
  --ring-accent: color-mix(in srgb, var(--accent) 40%, transparent);
  /* A finished stage or a monitoring update: a state, so never the brand accent. */
  --neutral-strong: var(--fg-muted);
  --header-bg: color-mix(in srgb, var(--bg) 82%, transparent);
  --backdrop: color-mix(in srgb, var(--bg) 60%, transparent);

  /* Status: colour is data */
  --up: var(--green);
  --down: var(--red);
  --issue: var(--yellow);
  --unknown: var(--fg-3);
  --up-wash: color-mix(in srgb, var(--green) 9%, transparent);
  --down-wash: color-mix(in srgb, var(--red) 10%, transparent);
  --bar-none: var(--f6);

  /* Type */
  --font-body: "Inter", "Inter Variable", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", "Berkeley Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --t-11: 0.6875rem;
  --t-12: 0.75rem;
  --t-13: 0.8125rem;
  --t-14: 0.875rem;
  --t-15: 0.9375rem;
  --t-20: 1.25rem;
  --t-24: 1.5rem;
  --t-32: 2rem;
  --head-weight: 510;
  --head-track: -0.022em;

  /* Space: 4px unit */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;

  /* Shape */
  --r-sm: 4px;
  --r-row: 6px;
  --r: 8px;
  --r-lg: 12px;
  --r-pill: 9999px;

  /* Motion */
  --ease: cubic-bezier(.25, .46, .45, .94);
  --dur: 160ms;

  /* The sticky top bar and tab bar together; sticky panels sit under it. */
  --bar-h: 101px;
  --nav-current: color-mix(in srgb, var(--accent) 14%, transparent);
  /* A card that sits on the page: the active side link and the active top-bar area. */
  --raised: var(--bg-3);
  --content-max: 1440px;
  --public-max: 1200px;
}
/* Scheme: Daylight */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f8f8;
    --bg-2: #ffffff;
    --fg: #16171a;
    --fg-muted: #565a62;
    --accent: #c4258f;
    --accent-ink: #a61f79;
    --accent-fg: #ffffff;
    --green: #23784e;
    --red: #d24545;
    --yellow: #8a6300;
    --hair-alpha: 10%;
    --shadow: 0 2px 24px color-mix(in srgb, var(--fg) 10%, transparent), 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
    --raised: var(--bg-2);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f8f8;
  --bg-2: #ffffff;
  --fg: #16171a;
  --fg-muted: #565a62;
  --accent: #c4258f;
  --accent-ink: #a61f79;
  --accent-fg: #ffffff;
  --green: #23784e;
  --red: #d24545;
  --yellow: #8a6300;
  --hair-alpha: 10%;
  --shadow: 0 2px 24px color-mix(in srgb, var(--fg) 10%, transparent), 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent);
  --raised: var(--bg-2);
  color-scheme: light;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font: 400 var(--t-13)/1.5 var(--font-body);
}
.app { font-size: var(--t-14);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  margin: 0;
  color: var(--fg);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--t-24); font-weight: 650; letter-spacing: -0.03em; }
h2 { font-size: var(--t-15); font-weight: 590; letter-spacing: -0.011em; }
h3 { font-size: var(--t-13); font-weight: 590; letter-spacing: 0; }
p { margin: 0; max-width: 65ch; }
a { color: var(--fg); text-decoration: none; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0; }
strong { color: var(--fg); font-weight: 590; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-muted); }
.cap { font: 400 var(--t-12)/1.4 var(--font-body); color: var(--fg-muted); }
.link-quiet { color: var(--fg-muted); }
.link-quiet:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* ---------- Layout helpers ---------- */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
/* ---------- Admin shell: a top bar and a project tab bar in one band ---------- */
.app { min-height: 100vh; }
/* The account and admin menus: native popovers under the top bar's right end. */
.user { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.content {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-block: var(--s6) var(--s8);
  padding-left: max(var(--s7), env(safe-area-inset-left, 0px));
  padding-right: max(var(--s7), env(safe-area-inset-right, 0px));
}
/* One row: the title, then the page's actions at the right end. */
.hero h1 { font-size: var(--t-32); line-height: 1.1; }
@media (max-width: 820px) {
  .content { padding-block: var(--s5) var(--s7); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
/* ---------- Public shell (status page, ticket form, public board) ---------- */
.public {
  min-height: 100vh;
  max-width: var(--public-max);
  margin: 0 auto;
  padding-block: var(--s7) var(--s5);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  font-size: var(--t-15);
  line-height: 1.6;
}
.public h1 { font-size: var(--t-32); line-height: 1.05; }
/* ---------- Panel: the one boxed surface ---------- */
.panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; }
/* ---------- Buttons: pills, no icons-only arrows ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--fg);
  font: 510 var(--t-14)/1 var(--font-body);
  letter-spacing: -0.006em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--bg-3) 85%, var(--fg)); }
/* The primary action is the brand button, as on the landing page and the docs. */
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 88%, var(--fg)); }
/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--s5); max-width: 560px; }
.label { color: var(--fg); font-weight: 510; }
.input, .select, .textarea {
  width: 100%;
  height: 40px;
  padding: 0 var(--s3);
  border: 1px solid var(--border-input);
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { height: auto; min-height: 88px; padding: var(--s2) var(--s3); resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring-accent); }
.check { display: flex; align-items: flex-start; gap: var(--s2); color: var(--fg-2); }
.check input { margin: 3px 0 0; accent-color: var(--accent); width: 15px; height: 15px; }
/* ---------- Project overview: tiles, then an About column on the right ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--s4); }
.tile { display: flex; align-items: center; gap: var(--s3); min-width: 0; padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-2); color: var(--fg); transition: border-color var(--dur) var(--ease); }
.tile:hover { border-color: var(--border-input); }
.about { display: flex; flex-direction: column; gap: var(--s4); }
.about h2 { font-size: var(--t-20); font-weight: 650; letter-spacing: var(--head-track); }
/* ---------- Dialog: a header band, the body, a footer bar ---------- */
.dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 64px); padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-2); color: var(--fg); box-shadow: var(--shadow); }
.dialog::backdrop { background: var(--backdrop); }
/* ---------- Table: issue-list rows ---------- */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th {
  text-align: left;
  font: 510 var(--t-13)/1 var(--font-body);
  color: var(--fg-muted);
  height: 40px;
  padding: 0 var(--s5);
  border-bottom: 1px solid var(--border);
  background: var(--f2);
  white-space: nowrap;
}
.table td { height: 56px; padding: var(--s3) var(--s5); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { position: relative; transition: background-color var(--dur) var(--ease); }
/* The row's title link covers the whole row, so any cell opens the item. */
.table td :is(a, button { position: relative; z-index: 1; }
.table tbody tr:hover { background: var(--f2); }
/* ---------- Status icon: 13px ring or disc ---------- */
.st { display: inline-block; width: 13px; height: 13px; flex: none; border-radius: 50%; border: 1.5px solid var(--fg-3); }
/* Tone pill: a tinted fill and a coloured word, no dot. */
.state {
  --c: var(--fg-muted);
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 var(--s2);
  border-radius: var(--r-row);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: color-mix(in srgb, var(--c) 78%, var(--fg));
  font-size: var(--t-12);
  font-weight: 590;
  white-space: nowrap;
}
/* ---------- Uptime bar: 90 days, oldest left ---------- */
.uptime { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* ---------- Activity timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.comment { padding: var(--s3); border: 1px solid var(--border); border-radius: 9px; background: var(--bg-2); color: var(--fg-2); }
/* ---------- Kanban ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s2); }
.card { display: flex; flex-direction: column; gap: 6px; padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r); background: var(--bg-2); transition: border-color var(--dur) var(--ease); }
.card:hover { border-color: var(--border-input); }
.card__title { color: var(--fg); font-weight: 510; overflow-wrap: anywhere; }
/* ---------- Empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding: var(--s7) var(--s4); text-align: center; color: var(--fg-muted); }
.empty h3 { font-size: var(--t-15); }
/* ---------- Dialog (native <dialog>) ---------- */
.dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-2); color: var(--fg-2); box-shadow: var(--shadow); }
.dialog::backdrop { background: var(--backdrop); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* ---------- Detail pages: hero, stats, chart, availability ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--s4) var(--s5); padding: var(--s2) 0 var(--s3); }
.hero h1 { overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--fg-muted); font-size: var(--t-12); white-space: nowrap; }
.stat { --c: var(--fg-3); position: relative; display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4) var(--s4) var(--s4) calc(var(--s4) + 6px); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.stat::before { content: ""; position: absolute; left: 0; top: var(--s3); bottom: var(--s3); width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.chart { display: block; width: 100%; height: auto; padding: 0 var(--s2); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
@media (min-width: 1180px) {
  .split { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
}
/* ---------- System page: counts, limits on a range, caps ---------- */
.limits { display: flex; flex-direction: column; gap: var(--s5); margin-bottom: var(--s5); }
.limit { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--border); }
@media (min-width: 1000px) {
  .limit { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--s6); }
}
.range { display: block; width: 100%; height: 10px; }
/* ---------- Lists: one sentence for the project, then rich rows ---------- */
.overall { --c: var(--up); display: flex; align-items: center; gap: var(--s3); max-width: none; margin-bottom: var(--s4); padding: var(--s3) var(--s5); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--border)); border-radius: var(--r-lg); background: color-mix(in srgb, var(--c) 8%, var(--bg-2)); color: var(--fg); font-size: var(--t-15); font-weight: 510; }
.overall::before { content: ""; width: 4px; align-self: stretch; border-radius: 2px; background: var(--c); }
/* ---------- Form pages: the form, and what it will do beside it ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--s3); }
.steps li { position: relative; padding-left: 36px; color: var(--fg-2); line-height: 1.55; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--nav-current); color: var(--fg); font-size: var(--t-12); font-weight: 600; }
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: var(--t-24); }
}
/* ---------- Status page: systems on the left, incidents on the right ---------- */
.sp { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "active" "systems" "past"; gap: var(--s6); align-items: start; }
@media (min-width: 1000px) {
  .sp { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "systems active" "systems past"; column-gap: var(--s7); }
}
.sp h2 { font-size: var(--t-15); }
.sys { display: flex; flex-direction: column; gap: 6px; }
.inc { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-2); }
