/* Reedapt's public-site look (reedapt-frontend src/styles/site.css): Geist at
   500 with tight tracking, Geist Mono for labels, hairlines instead of boxes,
   underlined fields, pill buttons. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --paper: #f6f6f4;
  --fg: #0a0a0a;
  --fg-2: #262626;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.24);
  --pill: #0a0a0a;
  --pill-fg: #fafafa;
  --signal: #2e90fa;
  --ghost: rgba(0, 0, 0, 0.05);
  --logo-filter: none;

  /* States: text-safe (AA on the ground) and their bar fills. */
  --ok: #15803d;
  --degraded: #b45309;
  --partial: #c2410c;
  --down: #d93036;
  --maintenance: #1570ef;
  --bar-none: rgba(0, 0, 0, 0.08);
  --bar-ok: #22a35a;
  --bar-minor: #e5a00d;
  --bar-partial: #ea6a1f;
  --bar-major: #d93036;
  --bar-maintenance: #2e90fa;

  --gutter: 2.25rem;
  --wrap: 68rem;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}

/* Dark follows the system unless the reader picked a theme (footer). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #050505;
    --paper: #0d0d0d;
    --fg: #ededed;
    --fg-2: #d4d4d4;
    --muted: #a1a1a1;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.28);
    --pill: #ededed;
    --pill-fg: #0a0a0a;
    --ghost: rgba(255, 255, 255, 0.12);
    /* The wordmark is white on dark grounds (founder, 2026-10-01). */
    --logo-filter: brightness(0) invert(1);

    --ok: #3fb950;
    --degraded: #e8a317;
    --partial: #ff8a4c;
    --down: #ff6166;
    --maintenance: #6aaefc;
    --bar-none: rgba(255, 255, 255, 0.1);
    --bar-ok: #2ea043;
    --bar-minor: #d99a0b;
    --bar-partial: #ea6a1f;
    --bar-major: #f04b50;
    --bar-maintenance: #2e90fa;
  }
}
:root[data-theme="dark"] {
  --bg: #050505;
  --paper: #0d0d0d;
  --fg: #ededed;
  --fg-2: #d4d4d4;
  --muted: #a1a1a1;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.28);
  --pill: #ededed;
  --pill-fg: #0a0a0a;
  --ghost: rgba(255, 255, 255, 0.12);
  /* The wordmark is white on dark grounds (founder, 2026-10-01). */
  --logo-filter: brightness(0) invert(1);

  --ok: #3fb950;
  --degraded: #e8a317;
  --partial: #ff8a4c;
  --down: #ff6166;
  --maintenance: #6aaefc;
  --bar-none: rgba(255, 255, 255, 0.1);
  --bar-ok: #2ea043;
  --bar-minor: #d99a0b;
  --bar-partial: #ea6a1f;
  --bar-major: #f04b50;
  --bar-maintenance: #2e90fa;
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

@media (max-width: 640px) {
  :root {
    --gutter: 1.25rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

.st-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.st-skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-fg);
  text-decoration: none;
}
.st-skip:focus {
  top: 1rem;
}

.st-wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.st-mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.st-muted {
  color: var(--muted);
}

/* ── Nav ─────────────────────────────────────────────── */
.st-nav {
  border-bottom: 1px solid var(--line);
}
.st-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.st-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.st-logo {
  display: block;
  height: 22px;
  width: auto;
  filter: var(--logo-filter);
}
.st-brand-tag {
  padding-left: 0.75rem;
  border-left: 1px solid var(--line-strong);
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.st-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.2rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-fg);
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s ease;
}
.st-pill:hover {
  opacity: 0.88;
}
.st-pill[disabled],
.st-pill[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
.st-pill-lg {
  height: 2.75rem;
  padding: 0 1.4rem;
  font-size: 1rem;
}
.st-pill-ghost {
  background: var(--ghost);
  color: var(--fg);
}

/* ── Sections ────────────────────────────────────────── */
.st-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}
.st-section-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}
.st-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.st-h2 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.st-h2-lg {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.st-lede {
  max-width: 38rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.st-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Hero ────────────────────────────────────────────── */
.st-headline {
  display: flex;
  align-items: flex-start;
  gap: 0.18em;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.st-stamp {
  margin-top: 1.75rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

/* ── State glyphs: always beside a word, never colour alone ─ */
.st-icon {
  flex: none;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-icon circle {
  fill: currentColor;
  stroke: none;
  opacity: 0.14;
}
.st-icon-lg {
  width: 0.82em;
  height: 0.82em;
  margin-top: 0.1em;
  stroke-width: 1.4;
}
[data-state="operational"] > .st-icon,
[data-state="operational"] > h1 > .st-icon,
.st-state[data-state="operational"] {
  color: var(--ok);
}
[data-state="degraded"] .st-icon,
.st-state[data-state="degraded"] {
  color: var(--degraded);
}
[data-state="partial"] .st-icon,
.st-state[data-state="partial"] {
  color: var(--partial);
}
[data-state="down"] .st-icon,
.st-state[data-state="down"] {
  color: var(--down);
}
[data-state="maintenance"] .st-icon,
.st-state[data-state="maintenance"] {
  color: var(--maintenance);
}
[data-state="operational"] .st-icon {
  color: var(--ok);
}

.st-state {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ── Incidents and maintenance ───────────────────────── */
.st-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.st-item:last-child {
  padding-bottom: 0;
}
.st-item-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  color: var(--muted);
}
.st-item-kicker .st-icon {
  width: 1.35em;
  height: 1.35em;
}
.st-item-kicker > span:nth-of-type(1) {
  color: var(--fg);
}
.st-item-title {
  margin-top: 0.7rem;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.st-when {
  margin-top: 0.5rem;
  color: var(--fg-2);
}
.st-affects {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.st-section .st-wrap > .st-h2 {
  padding-bottom: 1.25rem;
}
.st-msg {
  max-width: 44rem;
  color: var(--fg-2);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.st-msg p + p {
  margin-top: 0.6rem;
}
.st-item > .st-msg {
  margin-top: 0.9rem;
}
.st-msg a {
  text-underline-offset: 0.18em;
}

.st-timeline {
  margin-top: 1.1rem;
  padding: 0;
  list-style: none;
}
.st-timeline > li {
  position: relative;
  padding: 0 0 1.1rem 1.25rem;
  border-left: 1px solid var(--line);
}
.st-timeline > li:last-child {
  padding-bottom: 0.1rem;
}
.st-timeline > li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg);
}
.st-timeline > li + li::before {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.st-tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  margin-bottom: 0.35rem;
}
.st-tl-status {
  font-size: 1rem;
}
.st-tl-head time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Systems ─────────────────────────────────────────── */
.st-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  color: var(--muted);
}
.st-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.st-legend i {
  display: inline-block;
  width: 0.5rem;
  height: 0.85rem;
  border-radius: 2px;
}
.st-legend [data-level="ok"] {
  background: var(--bar-ok);
}
.st-legend [data-level="minor"] {
  background: var(--bar-minor);
}
.st-legend [data-level="major"] {
  background: var(--bar-major);
}
.st-legend [data-level="maintenance"] {
  background: var(--bar-maintenance);
}

.st-group + .st-group {
  margin-top: 2.5rem;
}
.st-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-strong);
}
.st-group-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.st-group-head .st-state {
  font-size: 0.85rem;
}
.st-components {
  padding: 0;
  list-style: none;
}
.st-comp {
  padding: 1rem 0 1.1rem;
  border-top: 1px solid var(--line);
}
.st-comp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.8rem;
}
.st-comp-name {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.st-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 2px;
  height: 2.1rem;
}
.st-bar {
  display: block;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: var(--bar-none);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s var(--ease);
}
.st-bar[data-level="ok"] {
  background: var(--bar-ok);
}
.st-bar[data-level="minor"] {
  background: var(--bar-minor);
}
.st-bar[data-level="partial"] {
  background: var(--bar-partial);
}
.st-bar[data-level="major"] {
  background: var(--bar-major);
}
.st-bar[data-level="maintenance"] {
  background: var(--bar-maintenance);
}
.st-bars:hover .st-bar,
.st-bars:focus-within .st-bar {
  opacity: 0.55;
}
.st-bars .st-bar:hover,
.st-bars .st-bar:focus-visible,
.st-bars .st-bar[aria-expanded="true"] {
  opacity: 1;
  transform: scaleY(1.12);
}
.st-bar:focus-visible {
  outline-offset: 2px;
}
.st-bars-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: var(--muted);
}
.st-bars-uptime {
  color: var(--fg-2);
}
.st-narrow {
  display: none;
}
@media (max-width: 640px) {
  .st-bar-old {
    display: none;
  }
  .st-wide {
    display: none;
  }
  .st-narrow {
    display: inline;
  }
  .st-bars {
    gap: 3px;
  }
}

.st-tip {
  position: absolute;
  z-index: 20;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: var(--pill);
  color: var(--pill-fg);
  font-size: 0.85rem;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}
.st-tip strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 500;
}
.st-tip span {
  display: block;
  opacity: 0.78;
}
.st-tip ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.st-tip li {
  opacity: 0.95;
}
.st-tip li + li {
  margin-top: 0.15rem;
}

/* ── Past incidents ──────────────────────────────────── */
.st-past {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.st-past-date {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.3rem;
  color: var(--muted);
}
.st-past-date .st-icon {
  width: 1.35em;
  height: 1.35em;
}
.st-past-title {
  margin-top: 0;
  font-size: 1.2rem;
}
.st-past-facts {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.st-details {
  margin-top: 0.6rem;
}
.st-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fg);
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}
.st-details summary::-webkit-details-marker {
  display: none;
}
.st-details[open] summary {
  margin-bottom: 0.25rem;
}
.st-empty {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 640px) {
  .st-past {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
}

/* ── Subscribe ───────────────────────────────────────── */
.st-subscribe {
  background: var(--paper);
}
.st-subscribe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
}
@media (max-width: 820px) {
  .st-subscribe-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.st-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem 1rem;
}
.st-field {
  display: grid;
  gap: 0.35rem;
}
.st-label {
  color: var(--muted);
}
.st-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  transition: border-color 0.18s ease;
}
.st-input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
.st-input:focus {
  outline: none;
  border-bottom-color: var(--fg);
  box-shadow: 0 1px 0 0 var(--fg);
}
.st-input:focus-visible {
  outline: none;
}
.st-input[aria-invalid="true"] {
  border-bottom-color: var(--down);
  box-shadow: 0 1px 0 0 var(--down);
}
.st-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--paper) inset;
  -webkit-text-fill-color: currentColor;
}
.st-form-msg {
  grid-column: 1 / -1;
  min-height: 1.4em;
  color: var(--fg-2);
  font-size: 0.95rem;
}
.st-form-msg:empty {
  display: none;
}
.st-form-msg[data-tone="error"] {
  color: var(--down);
}
.st-form-msg[data-tone="ok"] {
  color: var(--ok);
}
.st-form-msg strong {
  color: var(--fg);
  font-weight: 500;
}
.st-fine {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.85rem;
}
.st-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 480px) {
  .st-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-form .st-pill {
    justify-self: start;
  }
}

/* A note at the top after confirming or unsubscribing. */
.st-flash {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.st-flash .st-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.st-flash p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.st-flash button {
  flex: none;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.st-flash button:hover {
  background: var(--ghost);
  color: var(--fg);
}

/* ── Footer ──────────────────────────────────────────── */
.st-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.st-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.95rem;
}
.st-footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.st-footer-links a:hover {
  color: var(--fg);
}

.st-footer-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
/* Theme: one hairline pill, the choice filled. */
.st-theme {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.st-theme button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 1.75rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.st-theme button:hover {
  color: var(--fg);
}
.st-theme button[aria-checked="true"] {
  background: var(--ghost);
  color: var(--fg);
}
.st-theme button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}
.st-theme svg {
  width: 1rem;
  height: 1rem;
}

/* ── Plain pages (unsubscribe) ───────────────────────── */
.st-page {
  min-height: calc(100vh - 4.5rem - 1px);
  padding: clamp(3rem, 10vw, 7rem) 0;
}
.st-page .st-headline {
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.st-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ── Staff admin ─────────────────────────────────────── */
.st-nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.st-narrow-col {
  max-width: calc(32rem + 2 * var(--gutter));
}
.st-admin-flash {
  position: sticky;
  top: 0;
  z-index: 5;
}
.st-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: 1.5rem 4rem;
}
@media (max-width: 820px) {
  .st-admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.st-admin-help {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.st-admin-when {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}
.st-form-stack {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 1.4rem;
}
.st-form-stack .st-form-msg,
.st-form-stack .st-fine {
  grid-column: auto;
}
.st-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.st-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}
@media (max-width: 480px) {
  .st-two {
    grid-template-columns: minmax(0, 1fr);
  }
}
textarea.st-input {
  min-height: 6rem;
  line-height: 1.5;
  resize: vertical;
}
.st-input[type="datetime-local"] {
  color-scheme: light dark;
}
.st-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.st-fieldset legend {
  margin-bottom: 0.6rem;
  padding: 0;
}
.st-check-group + .st-check-group {
  margin-top: 0.75rem;
}
.st-check-group-name {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.st-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.st-check-group-name {
  flex-basis: 100%;
}
.st-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  cursor: pointer;
}
.st-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--fg);
  cursor: pointer;
}
.st-notify {
  font-size: 1rem;
}
.st-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.st-choice {
  position: relative;
  cursor: pointer;
}
.st-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.st-choice span {
  display: inline-flex;
  align-items: center;
  height: 2.1rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--ghost);
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.st-choice input:checked + span {
  background: var(--fg);
  color: var(--bg);
}
.st-choice input:focus-visible + span {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.st-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.st-link:hover {
  text-decoration-color: currentColor;
}
.st-admin-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.4rem;
}
.st-inline-edit {
  margin-top: 0.75rem;
}
.st-pill-danger {
  background: transparent;
  color: var(--down);
  box-shadow: inset 0 0 0 1px currentColor;
}
.st-admin-details {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.st-admin-details[open] > form {
  margin-top: 1rem;
}
.st-admin .st-item-kicker > span:nth-of-type(1) {
  color: var(--fg);
}
.st-admin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
}
