@font-face {
  font-family: Inter;
  src: url("/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Tight;
  src: url("/fonts/InterTight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-display: swap;
}
:root {
  --paper: #f2efe8;
  --ink: #161616;
  --quiet: #716c63;
  --rule: #d9d4c8;
  --red: #d4351c;
  --blue: #2f5d8a;
  --sand: #b9a27a;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button,
input,
select {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.6rem 0.75rem;
}
button:hover:not(:disabled),
a:hover {
  color: var(--red);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.shell {
  max-width: 1300px;
  margin: auto;
  padding: 30px 44px;
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 14px;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
}
.brand span {
  font-weight: 400;
}
.edition,
.quiet {
  color: var(--quiet);
}
.edition {
  font-size: 0.75rem;
}
.site-nav {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--rule);
}
.site-nav a {
  font-size: 0.8rem;
  text-decoration: none;
  padding: 17px 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.site-nav a[aria-current="page"] {
  border-color: var(--red);
}
.site-nav span {
  font-family: Mono, monospace;
  font-size: 0.65rem;
  margin-right: 0.45rem;
  color: var(--quiet);
}
h1,
h2,
h3,
.big {
  font-family: Tight, Inter, sans-serif;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.03;
  font-weight: 650;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 650;
  margin: 0 0 0.8rem;
}
h3 {
  font-size: 1.25rem;
  margin: 0.1rem 0 0.5rem;
}
p {
  line-height: 1.5;
}
.eyebrow {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 0 0 0.65rem;
}
.hero {
  padding: 42px 0 25px;
  max-width: 770px;
}
.hero p {
  color: var(--quiet);
  max-width: 580px;
  font-size: 0.95rem;
}
.red {
  color: var(--red);
}
.mono,
code,
pre {
  font-family: Mono, monospace;
}
.mono {
  font-size: 0.72rem;
}
code {
  overflow-wrap: anywhere;
  font-size: 0.8em;
}
pre {
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.7;
  padding: 20px;
  background: #e9e5dc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
footer {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--quiet);
  font-size: 0.65rem;
}
.skip {
  position: absolute;
  left: 20px;
  top: -80px;
  background: var(--paper);
  padding: 10px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.notice {
  padding: 24px 0;
  color: var(--quiet);
}
.error {
  border-left: 3px solid var(--red);
  padding: 16px;
  background: #ece6db;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
}
.row > * {
  min-width: 0;
}
.row .mono {
  overflow-wrap: anywhere;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  border-top: 2px solid var(--ink);
  padding: 16px 0;
}
.card p {
  font-size: 0.85rem;
  color: var(--quiet);
}
.card .eyebrow {
  color: var(--red);
}
.section {
  margin: 30px 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  margin-bottom: 16px;
}
.section-title span {
  font-size: 0.72rem;
  color: var(--quiet);
}
details {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.5;
}
details > p {
  font-size: 0.85rem;
  color: var(--quiet);
}
.schema-map {
  display: grid;
  grid-template-columns: 1fr 32px 1fr 32px 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 20px 0 32px;
}
.entity {
  border: 1px solid var(--ink);
  padding: 20px;
}
.entity.focus {
  border-top: 4px solid var(--red);
}
.entity small {
  display: block;
  font-size: 0.72rem;
  color: var(--quiet);
  margin: 8px 0;
}
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.6rem;
}
.schema-tables {
  columns: 2;
  column-gap: 30px;
}
.schema-tables details {
  break-inside: avoid;
}
.schema-tables summary {
  font-family: Mono, monospace;
  font-size: 0.75rem;
}
.workflow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  border-block: 1px solid var(--rule);
  padding: 18px 0;
}
.workflow a {
  font-size: 0.85rem;
}
.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.7rem 1rem;
  text-decoration: none;
  display: inline-block;
  font-size: 0.8rem;
}
.primary:hover {
  background: var(--red);
  color: var(--paper);
}
/* The working inventory view */
.demo-tools {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.search {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 520px;
}
.search input {
  border: 0;
  border-bottom: 1px solid var(--ink);
  min-width: 0;
  flex: 1;
  padding-left: 0;
  font-size: 0.85rem;
}
.search button {
  font-size: 0.75rem;
}
.demo-tools > a {
  font-size: 0.75rem;
}
.clocks {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-size: 0.7rem;
  flex-wrap: wrap;
}
.clocks button {
  padding: 0;
  border: 0;
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-underline-offset: 4px;
}
.time-form {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 15px 0;
}
.time-form label {
  display: grid;
  gap: 7px;
  font-size: 0.7rem;
}
.time-form button {
  align-self: end;
  font-size: 0.75rem;
}
.overview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 26px 0 14px;
}
.overview h1 {
  font-size: 2.7rem;
  margin: 0 0 0.7rem;
}
.big {
  font-size: 3.8rem;
  line-height: 1;
  font-weight: 650;
}
.big small {
  font-family: Inter, sans-serif;
  letter-spacing: 0;
  font-size: 1.1rem;
  font-weight: 400;
}
.stock-note {
  font-size: 0.7rem;
  color: var(--quiet);
  text-align: right;
  margin: 0.5rem 0;
}
.status {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.status:before {
  content: "◇";
  font-size: 1rem;
}
.status.blocked:before {
  content: "■";
  font-size: 0.7rem;
}
.status.usable:before {
  content: "●";
  font-size: 0.65rem;
}
.reasons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  margin-top: 0.5rem;
  color: var(--quiet);
}
.reason {
  border-bottom: 1px dotted var(--sand);
  padding: 3px 0;
  overflow-wrap: anywhere;
}
.subline {
  font-size: 0.75rem;
  color: var(--quiet);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
}
.tabs button {
  padding: 10px 0;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-size: 0.85rem;
}
.tabs button[aria-selected="true"] {
  color: var(--red);
  border-color: var(--red);
}
.panel {
  padding: 20px 0;
}
.plot {
  width: 100%;
  overflow: auto;
  margin-bottom: 14px;
}
.plot svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 700px;
  max-height: 340px;
}
.plot text {
  font-family: Inter, sans-serif;
  fill: var(--ink);
}
.plot .label {
  font-size: 13px;
}
.plot .balance-label {
  font-family: Tight, Inter, sans-serif;
  font-size: 25px;
  font-weight: 650;
}
.plot .muted {
  fill: var(--quiet);
  font-size: 11px;
}
.plot a:hover text {
  fill: var(--red);
}
.legend {
  font-size: 0.65rem;
  color: var(--quiet);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.legend i {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--red);
  margin-right: 5px;
  vertical-align: middle;
}
.legend i.blue {
  background: var(--blue);
}
.events {
  margin-top: 18px;
}
.events summary {
  list-style: none;
  display: grid;
  grid-template-columns: 125px 1fr auto;
  gap: 18px;
}
.events summary::-webkit-details-marker {
  display: none;
}
.stamp {
  font-family: Mono, monospace;
  font-size: 0.67rem;
  color: var(--quiet);
}
.action {
  font-weight: 600;
}
.action:before {
  content: "+";
  color: var(--red);
  display: inline-block;
  width: 18px;
}
details[open] .action:before {
  content: "−";
}
.branchhint {
  display: block;
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--blue);
  margin: 4px 0 0 18px;
}
.amount {
  font-family: Mono, monospace;
  font-size: 0.8rem;
  white-space: nowrap;
}
.event-detail {
  margin: 16px 0 4px 143px;
}
.event-detail a,
.link {
  color: var(--blue);
}
.retracted {
  text-decoration: line-through;
  color: var(--quiet);
}
.results {
  margin: 18px 0 28px;
  border-bottom: 1px solid var(--ink);
}
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-head h2 {
  font-size: 1.2rem;
}
.result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  padding: 14px 0;
}
.result strong {
  font-size: 0.9rem;
}
.result small {
  display: block;
  font-size: 0.7rem;
  color: var(--quiet);
  margin-top: 5px;
}
.result .amount {
  text-align: right;
}
.pager {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin: 14px 0;
}
.pager button {
  font-size: 0.7rem;
}
.path {
  list-style: none;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--sand);
  margin: 5px 0 24px 5px;
}
.path li {
  padding: 8px 0;
  position: relative;
  font-size: 0.9rem;
}
.path li:before {
  content: "";
  position: absolute;
  left: -27px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.path li:last-child:before {
  background: var(--red);
  border-color: var(--red);
}
.path small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6rem;
  color: var(--quiet);
  margin-bottom: 5px;
}
.path a {
  color: inherit;
}
.plate {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  margin: 16px 0;
}
.well {
  padding: 7px 0;
  min-width: 0;
  font-family: Mono, monospace;
  font-size: 0.65rem;
  border: 1px solid var(--rule);
  text-align: center;
  display: block;
  text-decoration: none;
}
.well.filled {
  border-color: var(--blue);
  color: var(--blue);
  background: #e6e9e7;
}
.well.selected {
  background: var(--blue);
  color: var(--paper);
}
.contents-list {
  max-width: 700px;
}
.flow-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}
.flow-tree li {
  position: relative;
  margin: 0 0 0 12px;
  padding: 0 0 14px 22px;
  border-left: 1px solid var(--blue);
}
.flow-tree li:before {
  position: absolute;
  content: "";
  width: 16px;
  height: 1px;
  background: var(--blue);
  left: 0;
  top: 22px;
}
.flow-node {
  display: block;
  width: 100%;
  max-width: 600px;
  text-align: left;
  border: 1px solid var(--rule);
  padding: 12px 16px;
  text-decoration: none;
  background: var(--paper);
}
.flow-node strong {
  font-size: 0.85rem;
}
.flow-node small {
  display: block;
  font-size: 0.7rem;
  color: var(--quiet);
  margin-top: 5px;
}
.flow-tree ul {
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}
.flow-tree .contact {
  border-left-style: dashed;
}
.flow-tree .contact:before {
  background: transparent;
  border-top: 1px dashed var(--blue);
}
.reach-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.origin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.origin-list a {
  font-size: 0.75rem;
  border: 1px solid var(--rule);
  padding: 8px 12px;
  text-decoration: none;
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.copy-row button {
  font-size: 0.7rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 700px) {
  .shell {
    padding: 18px 18px;
  }
  .edition {
    display: none;
  }
  .mast {
    padding-bottom: 11px;
  }
  .site-nav {
    gap: 22px;
  }
  .site-nav a {
    font-size: 0.72rem;
    padding: 13px 0;
  }
  .site-nav span {
    display: none;
  }
  .hero {
    padding: 28px 0 15px;
  }
  .hero h1 {
    font-size: 2.65rem;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .schema-map {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .entity {
    padding: 16px;
  }
  .arrow {
    transform: rotate(90deg);
    height: 18px;
  }
  .schema-tables {
    columns: 1;
  }
  .section-title {
    flex-wrap: wrap;
    gap: 0;
  }
  .demo-tools {
    margin-top: 14px;
    gap: 10px;
  }
  .demo-tools > a {
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .search {
    gap: 4px;
  }
  .search button {
    padding: 0.5rem;
    font-size: 0.68rem;
  }
  .search input {
    font-size: 0.75rem;
  }
  .clocks {
    font-size: 0.62rem;
    gap: 7px 15px;
    padding: 10px 0;
  }
  .time-form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .time-form input {
    width: 100%;
    min-width: 0;
  }
  .overview {
    padding: 18px 0 12px;
    gap: 10px;
  }
  .overview h1 {
    font-size: 1.9rem;
  }
  .overview .eyebrow {
    font-size: 0.6rem;
  }
  .big {
    font-size: 2.6rem;
  }
  .big small {
    font-size: 0.85rem;
  }
  .stock-note {
    font-size: 0.6rem;
    max-width: 90px;
  }
  .status {
    font-size: 0.73rem;
  }
  .reasons {
    font-size: 0.65rem;
  }
  .subline {
    font-size: 0.65rem;
    gap: 6px;
    margin-bottom: 12px;
  }
  .tabs {
    gap: 24px;
  }
  .tabs button {
    font-size: 0.75rem;
  }
  .panel {
    padding: 12px 0;
  }
  .plot,
  .legend {
    display: none;
  }
  .events {
    border-left: 2px solid var(--red);
    margin: 4px 0 0 4px;
  }
  .events details {
    border-top: 0;
    padding: 10px 0 15px 15px;
    position: relative;
  }
  .events details:before {
    content: "";
    position: absolute;
    left: -5px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
  }
  .events summary {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    font-size: 0.8rem;
  }
  .stamp {
    grid-column: 1/-1;
    font-size: 0.6rem;
  }
  .branchhint {
    font-size: 0.67rem;
  }
  .amount {
    font-size: 0.75rem;
  }
  .event-detail {
    margin: 12px 0 0;
  }
  .row {
    font-size: 0.73rem;
    gap: 12px;
    flex-wrap: wrap;
  }
  .row > * {
    max-width: 100%;
  }
  .plate {
    gap: 3px;
  }
  .well {
    font-size: 0.55rem;
    padding: 8px 0;
  }
  .flow-tree li {
    padding-left: 13px;
    margin-left: 3px;
  }
  .flow-tree li:before {
    width: 10px;
  }
  .flow-node {
    padding: 10px;
  }
  .reach-top {
    font-size: 0.7rem;
  }
  .flow-node strong {
    font-size: 0.78rem;
  }
  .flow-node small {
    font-size: 0.62rem;
  }
  footer {
    font-size: 0.6rem;
    flex-wrap: wrap;
    margin-top: 28px;
  }
  .origin-list a {
    font-size: 0.7rem;
  }
  pre {
    font-size: 0.65rem;
    padding: 14px;
  }
  .section {
    margin: 22px 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  a,
  button {
    transition:
      color 0.12s,
      background 0.12s;
  }
}
[hidden] {
  display: none !important;
}
.flow-node button {
  font-size: 0.65rem;
  padding: 5px 8px;
  margin-top: 9px;
}
.reason a {
  color: var(--quiet);
}
.examples {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.7rem;
  color: var(--quiet);
}
.examples label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.examples select {
  font-size: 0.75rem;
  max-width: 100%;
  color: var(--ink);
}
.examples span {
  white-space: nowrap;
}
.overview h1 {
  max-width: 900px;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}
#research-library .search {
  margin-top: 20px;
  align-items: center;
  font-size: 0.75rem;
}
.origin-list {
  line-height: 1.8;
}
@media (max-width: 700px) {
  .examples {
    flex-wrap: wrap;
    gap: 7px;
    padding: 9px 0;
  }
  .examples select {
    font-size: 0.65rem;
    padding: 7px;
    min-width: 0;
  }
  .examples label {
    width: 100%;
  }
  .examples span {
    font-size: 0.6rem;
  }
  .overview {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .overview h1 {
    font-size: 1.6rem;
  }
  .reasons .reason {
    font-size: 0.6rem;
  }
}
.more-reasons {
  padding: 2px 0;
  border: 0;
  max-width: 100%;
}
.more-reasons summary {
  font-size: 0.65rem;
}
.more-reasons p {
  overflow-wrap: anywhere;
  font-size: 0.65rem;
  margin: 7px 0;
}
.more-reasons[open] {
  flex-basis: 100%;
}
.inputs {
  margin-bottom: 15px;
}
.inputs summary {
  font-size: 0.75rem;
  color: var(--blue);
}
.inputs .origin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.inputs .origin-list a {
  display: block;
  height: 100%;
  font-size: 0.7rem;
}
.model-heading h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin: 0 0 1.5rem;
}
.model-diagram {
  display: block;
  width: 100%;
  max-height: 800px;
}
.field {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.field-list {
  padding: 0.5rem 0;
}
.agent-lane {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0.7rem 0;
  font-size: 0.8rem;
}
.agent-lane small {
  display: block;
  color: var(--quiet);
}
.activity-hours {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 2px;
}
.activity-hours i {
  height: 12px;
  background: #e6e1d8;
}
.activity-hours .worked {
  background: #2f5d8a;
}
.lane-axis {
  display: flex;
  justify-content: space-between;
  margin-left: 246px;
  font-size: 0.75rem;
}
.timeline-key {
  font-size: 0.75rem;
}
.phase {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  border-top: 1px solid #d9d4c8;
  padding: 2rem 0;
}
.phase-label h3 {
  font-size: 1.2rem;
}
.message {
  border: 0;
  border-bottom: 1px solid #d9d4c8;
  border-radius: 0;
  padding: 0.7rem 0;
}
.message summary {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 400;
}
.message time {
  font-family: monospace;
  color: #716c63;
}
.message blockquote {
  margin: 1rem 0;
  line-height: 1.6;
}
.message small {
  color: #716c63;
}
.query-examples p {
  padding: 1.2rem 0;
  border-bottom: 1px solid #d9d4c8;
}
.search {
  position: relative;
}
#suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f8f5ee;
  border: 1px solid #b9b3a8;
  z-index: 20;
  box-shadow: 0 8px 20px #0001;
  max-height: 420px;
  overflow: auto;
}
#suggestions a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid #d9d4c8;
  font-size: 0.85rem;
}
#suggestions a:hover,
#suggestions a[aria-selected="true"] {
  background: #e4dfd5;
}
#suggestions small {
  color: #716c63;
}
@media (max-width: 650px) {
  .phase {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .agent-lane {
    grid-template-columns: 125px 1fr;
    font-size: 0.65rem;
  }
  .lane-axis {
    margin-left: 140px;
  }
  .message summary {
    grid-template-columns: 85px 1fr;
  }
  .field {
    grid-template-columns: 1fr 1fr;
  }
  .field > span:last-child {
    grid-column: 1/-1;
  }
  .model-diagram {
    min-width: 700px;
  }
  .model-heading:has(.model-diagram) {
    overflow-x: auto;
  }
}
.schema-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.schema-group h3 {
  font-size: 1.1rem;
  border-bottom: 2px solid #161616;
  padding-bottom: 0.7rem;
}
.schema-group details {
  margin: 0.4rem 0;
}
.related-fields {
  padding: 1rem;
  background: #e8e3da;
}
.related-fields a {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.4rem;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid #ccc5b9;
  font-size: 0.8rem;
}
.related-fields code {
  grid-column: 2;
  color: #716c63;
}
.model-scroll {
  overflow: auto;
}
.model-diagram {
  min-width: 760px;
  max-height: 600px;
}
.timeline-scroll {
  overflow-x: auto;
}
.timeline-chart {
  width: 100%;
  min-width: 0;
  display: block;
}
.timeline-chart text {
  font:
    12px Inter,
    sans-serif;
  fill: #161616;
}
.timeline-chart .lane-role {
  font-size: 10px;
  fill: #716c63;
}
.timeline-chart a {
  cursor: pointer;
}
.timeline-chart a:hover circle {
  r: 7;
}
.timeline-message {
  padding: 1.5rem;
  border-left: 3px solid #d4351c;
  background: #e8e3da;
}
.timeline-message blockquote {
  margin: 1rem 0;
  line-height: 1.6;
}
.timeline-message time,
.timeline-message small {
  font-size: 0.8rem;
  color: #716c63;
}
.status-explanation {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  color: #716c63;
  font-size: 0.85rem;
  line-height: 1.6;
}
.sample-facts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border-top: 1px solid #d9d4c8;
  padding: 1rem 0;
}
.sample-facts > div {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sample-facts span {
  font-size: 0.75rem;
  color: #716c63;
}
.sample-facts b {
  font-size: 0.85rem;
  font-weight: 500;
}
.specification > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #d9d4c8;
}
.specification dt {
  font-size: 0.8rem;
  color: #716c63;
}
.specification dd {
  margin: 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.record-details {
  border: 0;
  border-top: 1px solid #d9d4c8;
  border-radius: 0;
}
.workflow-choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.workflow-choices a {
  display: flex;
  gap: 0.7rem;
  text-decoration: none;
  border: 1px solid #d9d4c8;
  padding: 0.8rem;
  font-size: 0.8rem;
}
.workflow-choices b {
  color: #d4351c;
  font-size: 1.2rem;
}
.workflow-choices .selected {
  border-color: #d4351c;
}
.workflow-overview {
  border: 0;
  border-bottom: 1px solid #d9d4c8;
  border-radius: 0;
  padding: 1rem 0 2rem;
}
.workflow-overview summary small {
  font-weight: 400;
  color: #716c63;
}
.workflow-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.workflow-stages h3 {
  font-size: 0.85rem;
  display: flex;
  gap: 0.6rem;
  border-top: 2px solid #716c63;
  padding-top: 0.6rem;
}
.workflow-stages h3 span {
  color: #716c63;
  font-family: monospace;
}
.stage-item {
  display: block;
  border-left: 2px solid #2f5d8a;
  background: #e9e5dc;
  padding: 0.7rem;
  margin: 0.5rem 0;
  text-decoration: none;
}
.stage-item strong {
  font-size: 0.85rem;
  font-weight: 500;
}
.stage-item small {
  display: block;
  font-size: 0.73rem;
  color: #716c63;
  margin-top: 0.4rem;
}
.stage-item.selected {
  border-color: #d4351c;
  background: #e8dcd2;
}
.workflow-overview > p {
  font-size: 0.75rem;
}
.overview h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}
@media (max-width: 700px) {
  .schema-groups {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .workflow-choices {
    grid-template-columns: 1fr 1fr;
  }
  .workflow-stages {
    grid-template-columns: 1fr 1fr;
  }
  .specification > div {
    grid-template-columns: 1fr;
  }
  .sample-facts {
    gap: 1rem;
  }
  .workflow-overview:not([open]) {
    padding-bottom: 1rem;
  }
}
@media (max-width: 420px) {
  .workflow-stages {
    grid-template-columns: 1fr;
  }
  .workflow-choices a {
    font-size: 0.72rem;
  }
}
@media (min-width: 1100px) {
  .workflow-stages {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.7rem;
  }
  .stage-item {
    padding: 0.6rem;
  }
  .stage-item strong {
    font-size: 0.78rem;
  }
  .stage-item small {
    font-size: 0.68rem;
  }
  .workflow-stages h3 {
    font-size: 0.76rem;
    min-height: 2.2rem;
  }
  .workflow-overview {
    padding-bottom: 1rem;
  }
}
#sample {
  scroll-margin-top: 1rem;
}

/* A location is a containment path, ending at the selected well. */
.path {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0;
  border: 0;
  margin: 16px 0 32px;
}
.path li {
  border: 1px solid var(--sand);
  padding: 16px 20px;
  background: #faf8f3;
  min-width: 120px;
  max-width: 280px;
}
.path li:before {
  content: "→";
  border: 0;
  background: none;
  left: -20px;
  top: 28px;
  width: auto;
  height: auto;
  border-radius: 0;
}
.path li:first-child:before {
  display: none;
}
.path li:last-child {
  border-color: var(--red);
}
.path li:last-child:before {
  background: none;
  color: var(--red);
}
.workflow-choices b {
  font-size: 0.72rem;
  white-space: nowrap;
}
.workflow-stages > section {
  border-top: 2px solid var(--sand);
  padding-top: 14px;
}
.workflow-stages h3 span {
  color: var(--red);
}
.clocks {
  justify-content: flex-end;
  margin: 0 0 10px;
}
.clocks button {
  font-size: 0.7rem;
  color: var(--quiet);
}
.timeline-chart {
  overflow: visible;
}
@media (max-width: 700px) {
  .path {
    gap: 12px;
    display: grid;
  }
  .path li {
    max-width: none;
  }
  .path li:before {
    display: none;
  }
}

@media (max-width: 700px) {
  .timeline-chart text {
    font-size: 15px;
  }
  .timeline-chart .lane-role {
    font-size: 12px;
  }
}

.workflow-stages.single-stage {
  display: block;
}
.workflow-stages.single-stage > section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 0;
  padding: 0;
}
.workflow-stages.single-stage h3 {
  display: none;
}
.workflow-stages.single-stage .stage-item {
  flex: 1;
  min-width: 180px;
  max-width: 360px;
}
/* Desktop-first demo: overview before optional process detail. */
.mast {
  align-items: center;
  padding-bottom: 0;
  gap: 24px;
}
.mast .site-nav {
  border: 0;
  gap: 24px;
}
.demo-tools {
  margin: 20px 0 0;
  align-items: center;
}
.demo-tools .search {
  flex: 1;
  max-width: none;
}
.clocks {
  border: 0;
  margin: 0;
  min-height: 28px;
}
.workflow-choices {
  gap: 8px;
  margin: 8px 0;
}
.workflow-choices a {
  padding: 9px 12px;
  align-items: center;
}
.workflow-choices b {
  font-size: 0.68rem;
}
.workflow-overview {
  padding: 8px 0 12px;
  margin-bottom: 12px;
}
.workflow-overview > summary {
  font-size: 0.75rem;
}
.workflow-stages .stage-item.selected {
  outline: 2px solid var(--red);
  outline-offset: -2px;
  background: #f4e5dc;
}
.overview {
  padding-top: 16px;
  padding-bottom: 10px;
}
.overview h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 10px;
}
.overview .big {
  font-size: 3rem;
}
.stock-note {
  margin: 3px 0;
}
.status-explanation {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  list-style: none;
  padding: 0;
  margin: 8px 0;
  font-size: 0.76rem;
}
.sample-placement {
  font-size: 0.78rem;
  color: var(--quiet);
  margin: 0 0 18px;
}
.sample-context,
.back-link {
  font-size: 0.76rem;
  margin: 12px 0;
  display: block;
}
.time-group h3 {
  font:
    500 0.75rem Inter,
    sans-serif;
  letter-spacing: 0;
  color: var(--quiet);
  padding: 14px 0 4px;
}
.time-group h3 small {
  font-weight: 400;
}
.time-group > .event > summary {
  grid-template-columns: 1fr auto;
}
.event .action {
  overflow-wrap: anywhere;
}
.event .branchhint {
  font-size: 0.7rem;
}
.event > summary {
  padding: 13px 0;
}
.run-chart {
  max-width: 100%;
  margin: 0 0 12px;
}
.run-chart svg {
  display: block;
  width: 100%;
  max-height: 210px;
}
.run-chart text {
  font:
    11px Inter,
    sans-serif;
  fill: var(--quiet);
}
.run-columns,
.run-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 150px;
  gap: 20px;
}
.run-columns {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--quiet);
  padding: 10px 14px;
}
.run-group {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
}
.run-group > summary {
  padding: 13px 14px;
  font-size: 0.85rem;
}
.run-group > summary small {
  display: block;
  font-size: 0.7rem;
  color: var(--quiet);
  margin-top: 5px;
}
.run-group > summary > span:not(:first-child),
.run-columns > span:not(:first-child) {
  text-align: right;
}
.run-group .events {
  padding: 0 20px 16px;
  border-left: 2px solid var(--red);
}
.run-group .event > summary {
  grid-template-columns: 150px 1fr auto;
}
.flow-node > button {
  font-size: 1rem;
  padding: 2px 10px;
}
.browse-filters {
  display: flex;
  gap: 16px;
  padding: 12px 0 20px;
}
.browse-filters label {
  display: grid;
  gap: 5px;
  font-size: 0.72rem;
  flex: 1;
  min-width: 0;
}
.browse-filters select {
  width: 100%;
  max-width: 100%;
}
.well.filled {
  background: #2f5d8a;
  color: white;
  border-color: #2f5d8a;
}
.well.filled.selected {
  background: var(--red);
  border-color: var(--red);
}
@media (max-width: 700px) {
  .mast {
    flex-wrap: wrap;
    gap: 2px;
  }
  .mast .site-nav {
    gap: 18px;
  }
  .workflow-choices {
    display: flex;
    flex-wrap: wrap;
  }
  .workflow-choices a {
    flex: 1 1 40%;
    padding: 7px;
  }
  .run-columns,
  .run-group > summary {
    grid-template-columns: minmax(0, 1fr) 65px 75px;
    gap: 8px;
  }
  .run-group .events {
    padding: 0 8px;
  }
  .run-group .event > summary {
    grid-template-columns: 1fr auto;
  }
  .run-group .stamp {
    grid-column: 1/-1;
  }
  .browse-filters {
    flex-direction: column;
  }
  .sample-placement {
    overflow-wrap: anywhere;
  }
}
.run-group,
.event {
  padding: 0;
}
.run-group > summary > span:first-child:before {
  content: "▸";
  display: inline-block;
  width: 16px;
  color: var(--quiet);
}
.run-group[open] > summary > span:first-child:before {
  content: "▾";
}
.time-group .event-detail {
  margin-left: 18px;
}
