:root {
  --paper: #F0EBDE;
  --paper-2: #E6E0CE;
  --ink: #1F2BE0;
  --ink-soft: #3A45C8;
  --line: rgba(31, 43, 224, 0.22);
  --grid: rgba(31, 43, 224, 0.08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #14162A;
  --paper-2: #1C2040;
  --ink: #F0EBDE;
  --ink-soft: #C9C3B2;
  --line: rgba(240, 235, 222, 0.22);
  --grid: rgba(31, 43, 224, 0.22);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--ink);
  font-family: "Hanken Grotesk", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { height: 32px; width: 32px; }
.logo span { font-family: Newsreader, Georgia, serif; font-size: 22px; }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
nav a { font-size: 14px; letter-spacing: 0.04em; text-decoration: none; }
nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
button.ghost, button.solid {
  font: inherit;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 6px 10px;
  cursor: pointer;
}
button.solid { background: var(--ink); color: var(--paper); }
.hero { padding: 56px 0 28px; }
h1, .page h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.page { padding: 40px 0 72px; }
.lede { max-width: 40rem; margin: 0 0 28px; }
.about-row {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(200px, 260px);
  justify-content: space-between;
  column-gap: 36px;
  align-items: center;
}
.about-row + .about-row {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-copy { max-width: 40rem; }
.about-copy .lede { margin-bottom: 16px; }
.about-copy p { margin: 0 0 16px; }
.about-copy h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  margin: 0 0 12px;
}
.about-fig {
  margin: 0;
  width: 100%;
  max-width: 280px;
  height: 210px;
  justify-self: end;
  display: grid;
  align-items: center;
}
.about-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.about-contact {
  max-width: 40rem;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-contact h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  margin: 0 0 8px;
}
.about-contact > p { margin: 0 0 8px; }
.about-contact label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
}
.about-contact input,
.about-contact select,
.about-contact textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 "Hanken Grotesk", sans-serif;
  padding: 10px 12px;
}
.about-contact textarea {
  min-height: 120px;
  margin: 0;
  resize: vertical;
}
.about-contact button { margin-top: 14px; }
.about-contact .note { margin: 10px 0 0; }
.kicker {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.tabs button {
  font: 500 14px/1 "Hanken Grotesk", sans-serif;
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  margin-bottom: -1px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.install { background: var(--paper-2); border: 1px solid var(--line); margin-top: 16px; }
.install-top, .row-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.install-top {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
pre, code, .mono { font-family: "DM Mono", ui-monospace, monospace; }
pre { margin: 0; padding: 16px 14px 18px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.hero-install-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
  min-width: 0;
}
.hero-install-main {
  min-width: 0;
}
@media (min-width: 720px) {
  .hero-install-row {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: stretch;
  }
}
.hero-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.hero-card--stats {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 14px 12px;
}
@media (min-width: 720px) {
  .hero-card--stats {
    height: 100%;
    align-self: stretch;
  }
}
.hero-card-kicker {
  margin: 0 0 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-stats {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.hero-stat-row {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hero-stats dt {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-stat-value {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}
.hero-stat-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.hero-stat-think {
  margin: 0 0 4px;
  padding: 0;
  text-align: right;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  opacity: 0.68;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 1.35em;
}
.hero-stat-think:empty {
  min-height: 1.35em;
}
.hero-card-tail {
  flex: 1 1 auto;
  min-height: 0;
}
.benefits { padding: 32px 0 16px; }
.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.principle-item {
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}
.principle-item:first-child { border-top: 0; padding-top: 8px; }
article { padding: 28px 0 40px; scroll-margin-top: 96px; border-top: 1px solid var(--line); }
article h2, .ask h2, .block h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.05;
  margin: 18px 0 8px;
}
.num {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.principle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 20px 32px;
  align-items: start;
}
.principle-copy {
  min-width: 0;
}
.principle-copy .num {
  margin: 0 0 6px;
}
.principle-copy h2 {
  margin: 0 0 10px;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.15;
  text-wrap: balance;
}
.principle-body {
  margin: 0;
  max-width: 38rem;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--ink);
}
.principle-fig {
  margin: 0;
  width: 100%;
  max-width: 260px;
  justify-self: end;
}
.principle-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}
:root[data-theme="dark"] .principle-fig img {
  outline-color: oklch(1 0 0 / 0.1);
}
.ask { padding: 12px 0 72px; }
textarea, input[type="search"] {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 "Hanken Grotesk", sans-serif;
}
textarea { min-height: 96px; margin: 12px 0; padding: 12px; resize: vertical; }
input[type="search"] { padding: 10px 12px; margin: 0 0 18px; }
.note { font-size: 14px; color: var(--ink-soft); }
footer { border-top: 1px solid var(--line); padding: 18px 0 32px; font-size: 13px; }
.foot p { margin: 0 0 6px; }
body.board {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  overflow: hidden;
}
.flow-page { flex: 1; min-height: 0; display: flex; }
.flow-stage {
  position: relative;
  flex: 0 0 60%;
  min-width: 0;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.15px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  cursor: grab;
  touch-action: none;
}
.flow-stage.panning { cursor: grabbing; }
.flow-world { position: absolute; inset: 0; transform-origin: 0 0; }
.flow-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-edges path { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: 0.55; }
.flow-edges circle { fill: var(--ink); }
.flow-node {
  position: absolute;
  width: 220px;
  height: 118px;
  padding: 10px 12px 8px;
  border: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 92%, var(--paper-2));
  box-shadow: 0 8px 20px rgba(20, 22, 42, 0.08);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.flow-node.dragging { cursor: grabbing; z-index: 3; }
.flow-node.selected { outline: 2px solid var(--ink); outline-offset: 3px; }
.flow-node.network {
  width: 108px;
  height: 108px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  z-index: 4;
}
.flow-node.network .network-mark {
  display: block;
  width: 108px;
  height: 108px;
  pointer-events: none;
}
.flow-node.network.selected { outline: 1px solid var(--ink); outline-offset: 8px; }
.flow-reset {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: var(--paper);
}
.flow-node h2 {
  margin: 20px 0 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-node [data-metric] {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-corner {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.node-corner svg { width: 14px; height: 14px; display: block; }
.node-corner .spin { animation: spin 0.8s linear infinite; }
.node-status {
  margin: 2px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.node-status.serving { color: #1B7A45; }
.node-status.running { color: var(--ink); }
.node-status.idle { color: var(--ink-soft); }
.node-tape {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 16px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  line-height: 16px;
  color: var(--ink-soft);
}
.node-tape i {
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  background: var(--ink);
}
.node-tape span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.handle {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.handle.n { top: -5px; left: calc(50% - 4px); }
.handle.e { right: -5px; top: calc(50% - 4px); }
.handle.s { bottom: -5px; left: calc(50% - 4px); }
.handle.w { left: -5px; top: calc(50% - 4px); }
.detail {
  flex: 0 0 40%;
  min-width: 0;
  overflow: auto;
  padding: 22px 22px 28px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, var(--paper-2));
}
.detail-title {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 0.95;
}
.detail-purpose { margin: 12px 0 0; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.lane { min-width: 0; border-top: 1px solid var(--ink); padding-top: 8px; }
.lane h2 {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lane b {
  display: block;
  margin: 6px 0 8px;
  font-family: Newsreader, Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}
.lane ol { list-style: none; margin: 0; padding: 0; }
.lane li {
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lane li.fresh { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (max-width: 800px) {
  .flow-page { flex-direction: column; }
  .flow-stage { flex: 0 0 60%; width: 100%; }
  .detail { flex: 0 0 40%; width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 12px 14px 16px; }
  .detail-title { font-size: 28px; }
  .detail-purpose { margin-top: 6px; font-size: 14px; }
  .lanes { margin-top: 12px; gap: 10px; }
  .lane b { font-size: 22px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .node-corner .spin { animation: none; }
}
.catalog a {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.catalog a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.catalog a strong { font-family: "DM Mono", ui-monospace, monospace; font-weight: 500; }
.catalog-row {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.catalog-row:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mermaid-panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 16px;
  margin: 12px 0 20px;
  overflow-x: auto;
}
.mermaid-panel svg { max-width: 100%; height: auto; }
.mermaid-source { margin: 0 0 28px; }
.mermaid-source summary { cursor: pointer; }
.catalog-row strong { font-family: "DM Mono", ui-monospace, monospace; font-weight: 500; }
.catalog-row a { text-decoration: none; }
.catalog-row .catalog-dl { font-size: 13px; white-space: nowrap; }
.catalog-error {
  border: 1px solid var(--ink);
  padding: 14px;
  margin: 16px 0;
  background: var(--paper-2);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 28px; }
.stat { border-top: 1px solid var(--ink); padding-top: 8px; }
.stat b { display: block; font-family: Newsreader, Georgia, serif; font-size: 32px; font-weight: 400; }
.stat span { font-size: 13px; color: var(--ink-soft); }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 20px; }
.flow i { font-style: normal; color: var(--ink-soft); }
.step {
  border: 1px solid var(--ink);
  padding: 8px 10px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
}
table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
th { font-family: "DM Mono", ui-monospace, monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.sample { border: 1px solid var(--line); background: var(--paper-2); padding: 14px; }
.queue { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.queue section { border-top: 1px solid var(--ink); padding-top: 8px; }
.queue h2 { font-family: Newsreader, Georgia, serif; font-size: 28px; font-weight: 400; margin: 0 0 8px; }
.queue li { margin: 0 0 10px; }
video { width: 100%; max-height: 520px; background: #111; margin: 16px 0; }
@media (max-width: 720px) {
  .catalog a, .catalog-row, .stats, .queue { grid-template-columns: 1fr; }
  .principle-item { padding: 16px 0 18px; }
  .principle-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .principle-fig {
    max-width: min(240px, 72vw);
    justify-self: start;
    order: 2;
  }
  .principle-copy {
    order: 1;
  }
  .principle-copy h2 {
    font-size: 22px;
  }
  .principle-body {
    max-width: none;
    font-size: 15px;
  }
  .about-row {
    grid-template-columns: 1fr;
    row-gap: 12px;
    justify-content: start;
  }
  .about-fig {
    max-width: 220px;
    justify-self: start;
  }
  .about-copy h2 { font-size: 28px; }
}

body.wf-page {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.wf-page .wf-title {
  max-width: none;
  text-wrap: balance;
}
body.wf-page :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.wf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 36px;
}
.wf-stat {
  min-width: 0;
  border-top: 1px solid var(--ink);
  padding: 12px 8px 2px 0;
}
.wf-stat svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 0 14px;
}
.wf-stat b {
  display: block;
  font-family: Newsreader, Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.wf-stat .wf-label {
  display: block;
  margin-top: 8px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wf-stat p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.wf-split {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.78fr);
  gap: 32px;
  align-items: start;
}
.wf-primary,
.wf-feature,
.wf-table-wrap {
  min-width: 0;
}
.wf-search-label {
  margin-bottom: 8px;
}
.wf-countline { margin: 0 0 8px; }
.wf-table-wrap { overflow-x: auto; }
body.wf-page .wf-table-wrap table {
  width: 100%;
  margin: 0;
  table-layout: fixed;
}
.wf-col-name { width: 32%; }
.wf-col-gen { width: 10%; }
.wf-col-status { width: 18%; }
.wf-col-does { width: 40%; }
.wf-catalog-banner { margin: 0 0 20px; max-width: 42rem; }
.wf-stat-dim { opacity: 0.55; }
body.wf-page .wf-table-wrap tr.wf-row-link {
  cursor: pointer;
  transition: background-color 120ms ease;
}
body.wf-page .wf-table-wrap tr.wf-row-link:hover,
body.wf-page .wf-table-wrap tr.wf-row-link:focus-visible {
  background: color-mix(in srgb, var(--paper-2) 72%, transparent);
  outline: none;
}
body.wf-page .wf-table-wrap .wf-row-id { font-size: 14px; }
body.wf-page .wf-table-wrap .wf-gen {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.wf-detail-page .wf-detail-id {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  margin-bottom: 24px;
}
.wf-detail-block {
  margin: 0 0 32px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}
.wf-detail-block h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 8px;
}
.wf-source-tag { margin: 0 0 16px; }
.wf-fields {
  margin: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 7.5rem minmax(0, 1fr);
}
.wf-fields dt {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wf-fields dd {
  margin: 0;
}
.wf-fields dd p { margin: 0; }
.wf-sha {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}
@media (max-width: 800px) {
  .wf-fields { grid-template-columns: 1fr; }
  .wf-fields dt { margin-bottom: 2px; }
  .wf-fields dd { margin-bottom: 10px; }
}
body.wf-page .wf-table-wrap th,
body.wf-page .wf-table-wrap td {
  padding: 10px 16px 10px 0;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
body.wf-page .wf-table-wrap th:last-child,
body.wf-page .wf-table-wrap td:last-child { padding-right: 0; }
body.wf-page .wf-table-wrap th { white-space: nowrap; }
body.wf-page .wf-table-wrap a {
  font-family: "DM Mono", ui-monospace, monospace;
  text-decoration: none;
}
body.wf-page .wf-table-wrap a:hover { text-decoration: underline; }
.wf-status {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wf-suggest {
  margin-top: 28px;
  border-top: 1px solid var(--ink);
  padding-top: 16px;
}
.wf-suggest h2 {
  margin: 0 0 8px;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  text-wrap: balance;
}
.wf-suggest label { display: block; }
.wf-suggest textarea { text-wrap: pretty; }
body.wf-page button.solid {
  min-height: 40px;
  padding: 8px 14px;
  transition-property: transform, background-color, color;
  transition-duration: 120ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
body.wf-page button.solid:active { transform: scale(0.96); }
body.wf-page button.solid:disabled { opacity: 0.55; cursor: default; }
.wf-error { margin: 0 0 10px; }
.wf-feature {
  position: sticky;
  top: 84px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 18px 18px 22px;
}
.wf-feature h2 {
  margin: 6px 0 12px;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  text-wrap: balance;
}
.wf-feature h2 a { text-decoration: none; }
.wf-feature h2 a:hover { text-decoration: underline; }
.wf-downloads { margin: 0 0 12px; }
.wf-downloads b {
  display: block;
  font-family: Newsreader, Georgia, serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.wf-downloads span {
  display: block;
  margin-top: 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wf-feature .wf-blurb {
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 800px) {
  .wf-stats { grid-template-columns: 1fr 1fr; }
  .wf-split { grid-template-columns: minmax(0, 1fr); }
  .wf-feature { position: static; }
  body.wf-page .wf-table-wrap thead { display: none; }
  body.wf-page .wf-table-wrap table,
  body.wf-page .wf-table-wrap tbody { display: block; width: 100%; }
  body.wf-page .wf-table-wrap tr {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    column-gap: 12px;
    row-gap: 4px;
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  body.wf-page .wf-table-wrap td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: 0;
  }
  body.wf-page .wf-table-wrap td:first-child { flex: 1 0 100%; }
  body.wf-page .wf-table-wrap td:nth-child(3) { flex: 1 1 0; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.wf-page button.solid { transition-property: none; }
  body.wf-page button.solid:active { transform: none; }
}

.wf-detail-hero,
.wf-detail-stats {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
.wf-detail-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.wf-detail-stats {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-top: 16px;
}
.wf-summary,
.wf-graph-card,
.wf-stat-card,
.wf-log {
  min-width: 0;
  border: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, var(--paper-2));
  padding: 14px 16px 16px;
}
.wf-summary .wf-detail-id {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.wf-brief {
  margin: 0 0 12px;
  text-wrap: pretty;
}
.wf-summary .wf-fields { gap: 8px 12px; }
.wf-summary .wf-fields dd {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.wf-graph-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 14px 12px 12px;
}
.wf-graph-card .kicker { margin-bottom: 8px; }
.wf-graph-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1.15px);
  background-size: 22px 22px;
}
.wf-graph-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wf-graph-stage .flow-node {
  cursor: default;
  width: 168px;
  height: 88px;
  touch-action: auto;
}
.wf-graph-stage .flow-node h2 {
  margin: 16px 0 0;
  font-size: 15px;
}
.wf-graph-stage .node-tape { display: none; }
.wf-graph-fallback {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
}
.wf-chart-missing {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  text-wrap: balance;
}
.wf-stat-card b {
  display: block;
  margin: 8px 0 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wf-trend {
  width: 100%;
  height: 168px;
  margin-top: 8px;
}
.wf-log { margin-top: 16px; }
.wf-log h2 {
  margin: 0 0 8px;
  font-family: Newsreader, Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  text-wrap: balance;
}
.wf-log ol { list-style: none; margin: 0; padding: 0; }
.wf-log li {
  display: grid;
  grid-template-columns: 9.5rem 5.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.wf-log time,
.wf-log .wf-log-ver {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.wf-log p { margin: 0; text-wrap: pretty; }
@media (max-width: 800px) {
  .wf-detail-hero,
  .wf-detail-stats { grid-template-columns: minmax(0, 1fr); }
  .wf-graph-card { min-height: 480px; }
  .wf-graph-stage { min-height: 420px; }
  .wf-log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
