:root {
  color-scheme: light;
  --ink: #18211c;
  --muted: #667068;
  --paper: #f3f1e9;
  --surface: #fffdf7;
  --line: #d9d8cf;
  --accent: #087451;
  --accent-soft: #dff2e8;
  --blue: #185c91;
  --amber: #975e08;
  --amber-soft: #fff0ce;
  --red: #9a3d3a;
  --red-soft: #fae7e5;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(24, 33, 28, .055);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(8, 116, 81, .13), transparent 34rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #0b72c5; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid rgba(24, 33, 28, .12); }
.masthead {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.masthead > :last-child { justify-self: end; }
.masthead p { margin: 0; color: var(--muted); font-size: .88rem; }
.wordmark { text-decoration: none; font-size: 1.35rem; font-weight: 850; letter-spacing: -.05em; }
.wordmark span { color: var(--accent); }
.quiet-link { color: var(--muted); font-size: .85rem; text-underline-offset: 4px; }
.hero { max-width: 860px; padding: clamp(76px, 12vw, 150px) 0 76px; }
.eyebrow, .record-type {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { margin-bottom: 26px; font-size: clamp(3rem, 8vw, 6.7rem); }
.lede { max-width: 700px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.freshness { margin-top: 30px; color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.catalog { padding-bottom: 90px; }
.catalog-group { padding: 42px 0; border-top: 1px solid var(--line); }
.group-header { display: grid; grid-template-columns: 72px minmax(0, 1fr); margin-bottom: 22px; }
.group-index { margin: 3px 0; color: var(--accent); font-family: var(--mono); font-size: .8rem; }
.group-header h2 { margin-bottom: 7px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.group-header p { margin-top: 0; color: var(--muted); }
.tool-grid { margin: 0 0 0 72px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .86);
  box-shadow: var(--shadow);
}
.tool-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.tool-card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.tool-card > p { color: var(--muted); }
.status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #ecece7;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.status--up { background: var(--accent-soft); color: var(--accent); }
.status--down { background: var(--red-soft); color: var(--red); }
.status--checking, .status--paused, .status--unavailable { background: var(--amber-soft); color: var(--amber); }
.status-detail { min-height: 1.5em; font-family: var(--mono); font-size: .72rem; }
.tool-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.tool-link:hover { border-color: var(--blue); }
.access-badge { color: var(--muted); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; }
.no-link { margin-bottom: 0; font-size: .8rem; }
.empty-state { padding: 50px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.35); }
.site-footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Public status */
.status-page {
  --status-ink: #202229;
  --status-muted: #72798b;
  --status-line: #e5e7eb;
  --status-soft: #f2f3f6;
  --status-green: #079a72;
  --status-green-soft: #d9f0e9;
  --status-amber: #b7791f;
  --status-amber-soft: #fdf1d6;
  --status-red: #c23b3b;
  --status-red-soft: #f9e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--status-ink);
}
.status-wrap { width: min(1074px, calc(100% - 40px)); margin-inline: auto; }
.status-header { border-bottom: 1px solid #eceef1; }
.status-nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.status-brand {
  color: var(--status-muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.status-nav nav { display: flex; align-items: center; gap: 18px; }
.status-nav nav a {
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--status-muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}
.status-nav nav a:hover { color: var(--status-ink); }
.status-nav nav .status-nav__active { background: var(--status-soft); color: var(--status-ink); }
.status-main { flex: 1; padding-bottom: 88px; }
.status-hero { padding: clamp(76px, 10vw, 116px) 20px 64px; text-align: center; }
.status-hero h1 {
  margin: 17px 0 11px;
  font-size: clamp(2.15rem, 5vw, 3rem);
  letter-spacing: -.04em;
}
.status-hero > p { margin: 0; color: var(--status-muted); }
.status-updated { margin-top: 8px !important; font-size: .91rem; }
.status-mark {
  width: 19px;
  height: 19px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9ebef;
  color: var(--status-muted);
  font-size: .75rem;
  font-weight: 900;
  line-height: 1;
}
.status-mark--large {
  width: 48px;
  height: 48px;
  border: 5px solid var(--status-green-soft);
  font-size: 1.55rem;
  box-shadow: 0 0 0 1px rgba(7, 154, 114, .14);
}
.status-mark--operational { background: var(--status-green); color: #fff; }
.status-mark--attention { background: var(--status-amber); color: #fff; }
.status-mark--attention.status-mark--large { border-color: var(--status-amber-soft); }
.status-mark--outage { background: var(--status-red); color: #fff; }
.status-mark--outage.status-mark--large { border-color: var(--status-red-soft); }
.status-mark--unknown.status-mark--large { border-color: var(--status-soft); }
.status-card {
  overflow: hidden;
  border: 1px solid #dfe2e7;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(26, 31, 44, .045);
}
.status-card__header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  border-bottom: 1px solid #eef0f3;
}
.status-card__header h2 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.overall-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--status-soft);
  font-size: .84rem;
  font-weight: 650;
}
.service-list { margin: 0; padding: 0 32px; list-style: none; }
.service-row { padding: 27px 0 25px; }
.service-row + .service-row { border-top: 1px solid #eef0f3; }
.service-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.service-heading > div { min-width: 0; display: flex; align-items: center; gap: 9px; }
.service-heading h3 { margin: 0; font-size: 1.08rem; letter-spacing: -.015em; }
.service-state { color: var(--status-muted); font-size: .86rem; font-weight: 650; }
.service-state--operational { color: var(--status-green); }
.service-state--attention { color: var(--status-amber); }
.service-state--outage { color: var(--status-red); }
.service-description { margin: 8px 0 14px 28px; color: var(--status-muted); font-size: .86rem; }
.uptime-bar {
  height: 40px;
  display: grid;
  grid-template-columns: repeat(90, minmax(2px, 1fr));
  gap: 2px;
}
.uptime-day { min-width: 0; border-radius: 2px; background: #ebecef; }
.uptime-day--operational { background: var(--status-green); }
.uptime-day--attention { background: var(--status-amber); }
.uptime-day--outage { background: var(--status-red); }
.uptime-day--unknown { background: #ebecef; }
.service-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  margin-top: 9px;
  color: var(--status-muted);
  font-size: .76rem;
}
.service-meta > :nth-child(2) { text-align: center; }
.service-meta > :last-child { text-align: right; }
.service-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--status-line);
  border-radius: 8px;
  color: #3c465b;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
}
.service-link:hover { border-color: #9da4b1; }
.service-access { color: var(--status-muted); font-size: .62rem; font-weight: 600; }
.status-empty { padding: 54px 32px; text-align: center; }
.status-empty h3 { margin-bottom: 8px; }
.status-empty p { margin: 0; color: var(--status-muted); }
.status-footer { padding: 28px 0 38px; color: var(--status-muted); font-size: .76rem; }
.status-footer .status-wrap { display: flex; justify-content: center; align-items: center; gap: 8px; }
.footer-mark {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--status-ink);
  color: #fff;
  font-size: .65rem;
  font-weight: 850;
}

.site-header--ops { background: var(--ink); color: white; }
.site-header--ops .masthead p, .site-header--ops .actor { color: #c7d0ca; }
.environment { margin-left: 8px; padding: 4px 7px; border: 1px solid #5c6a61; border-radius: 999px; font: .65rem var(--mono); }
.ops { padding: 58px 0 100px; }
.ops-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); gap: 40px; align-items: end; }
.ops-heading h1 { margin-bottom: 14px; font-size: clamp(2.7rem, 6vw, 5rem); }
.ops-heading > div > p:last-child { max-width: 670px; color: var(--muted); }
.snapshot-meta { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.snapshot-meta div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.snapshot-meta dt { color: var(--muted); }
.snapshot-meta dd { margin: 0; font-family: var(--mono); font-size: .8rem; overflow-wrap: anywhere; }
.ops-section { margin-top: 60px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 2rem; }
.ops-list { display: grid; gap: 14px; }
.editor-card, .create-form {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.editor-card--archived { opacity: .72; }
.editor-card__heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.editor-card__heading h3 { margin-bottom: 0; font-size: 1.35rem; }
.editor-card__heading .status-detail { margin: 7px 0 0; color: var(--muted); text-align: right; }
.order-controls { display: flex; gap: 5px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.edit-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.edit-form label { display: grid; align-content: start; gap: 5px; color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .03em; }
.edit-form input, .edit-form select, .edit-form textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #c8c9c1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.edit-form textarea { resize: vertical; font-family: var(--mono); font-size: .8rem; }
.edit-form .checkbox { display: flex; flex-direction: row; align-items: center; gap: 9px; }
.edit-form .checkbox input { width: auto; }
.span-all { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #bfc2ba;
  border-radius: 9px;
  background: white;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 800;
}
.button:hover { border-color: var(--ink); }
.button--primary { border-color: var(--ink); background: var(--ink); color: white; }
.button--danger { border-color: #d7a19d; color: var(--red); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.notice { margin-top: 30px; padding: 13px 16px; border-radius: 10px; }
.notice--pending { background: var(--amber-soft); color: var(--amber); }
.notice--success { background: var(--accent-soft); color: var(--accent); }
.notice--error { background: var(--red-soft); color: var(--red); }
.collection-state { color: var(--muted); font-family: var(--mono); font-size: .78rem; }
.timeline { display: grid; gap: 14px; margin-bottom: 14px; }
.history-day { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.history-day h3 { margin-bottom: 18px; font: 800 .9rem var(--mono); }
.history-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.history-columns h4 { margin: 0 0 10px; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.history-list, .incident-list, .audit-list { margin: 0; padding: 0; list-style: none; }
.history-list, .incident-list { display: grid; gap: 8px; }
.history-list li, .incident-list li {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font: .72rem var(--mono);
}
.history-list li > div, .audit-record > div { display: grid; gap: 2px; min-width: 0; }
.history-list strong, .incident-list strong, .audit-record strong { color: var(--ink); overflow-wrap: anywhere; }
.audit-list { display: grid; gap: 8px; margin-bottom: 14px; }
.audit-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(120px, .5fr);
  gap: 18px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-size: .78rem;
}
.audit-record span, .audit-record time { color: var(--muted); }
.audit-record code { overflow-wrap: anywhere; font-size: .7rem; }
.modal { width: min(520px, calc(100% - 30px)); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(12, 18, 14, .58); }
.modal label { display: grid; gap: 6px; margin: 20px 0; font-size: .8rem; font-weight: 700; }
.modal input { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .masthead { grid-template-columns: 1fr auto; }
  .masthead > p { display: none; }
  .group-header { grid-template-columns: 42px minmax(0, 1fr); }
  .tool-grid { margin-left: 42px; grid-template-columns: 1fr; }
  .tool-card__top, .editor-card__heading { align-items: flex-start; flex-direction: column; }
  .ops-heading { grid-template-columns: 1fr; }
  .edit-form { grid-template-columns: 1fr; }
  .history-columns, .audit-record { grid-template-columns: 1fr; }
  .span-all { grid-column: auto; }
  .editor-card__heading .status-detail { text-align: left; }
  .status-wrap { width: min(100% - 24px, 1074px); }
  .status-nav { min-height: 70px; }
  .status-nav nav { gap: 2px; }
  .status-nav nav a { padding: 8px 10px; font-size: .82rem; }
  .status-nav nav a:nth-child(2) { display: none; }
  .status-hero { padding: 64px 8px 48px; }
  .status-card__header, .service-list { padding-inline: 20px; }
  .uptime-bar { grid-template-columns: repeat(30, minmax(2px, 1fr)); }
  .uptime-day:nth-of-type(-n+60) { display: none; }
}

@media (max-width: 440px) {
  .hero { padding-top: 58px; }
  h1 { font-size: 2.8rem; }
  .group-header { grid-template-columns: 1fr; }
  .group-index { display: none; }
  .tool-grid { margin-left: 0; }
  .tool-card { padding: 19px; }
  .status-brand { font-size: .9rem; }
  .status-nav nav a { padding-inline: 8px; font-size: .78rem; }
  .status-nav nav .status-nav__active { display: none; }
  .status-card__header { align-items: flex-start; flex-direction: column; }
  .service-heading { align-items: flex-start; }
  .service-description { margin-left: 0; }
  .service-meta { grid-template-columns: 1fr 1fr; }
  .service-meta > :nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
