:root {
  color-scheme:light;
  --ink:#152f36;
  --muted:#526b73;
  --line:#d8e2e4;
  --paper:#f4f7f8;
  --teal:#176858;
  --mint:#a1e7c1;
  --orange:#f1b16c;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.55;
  color:var(--ink);
  background:var(--paper);
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}
body {
  margin:0;
}
button,input,select {
  font:inherit;
}
button,a,input,select,summary,canvas,[tabindex] {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
a {
  color:var(--teal);
  text-underline-offset:4px;
}
button:disabled {
  cursor:not-allowed;
  opacity:.48;
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,canvas:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #bc5a11;
  outline-offset:4px;
}
button:focus-visible {
  position:relative;
  z-index:2;
}
.wrap {
  width:min(1440px,calc(100% - 80px));
  margin-inline:auto;
}
.site-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-block:24px;
  border-bottom:1px solid var(--line);
}
.identity {
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  font-size:1.2rem;
  font-weight:720;
  letter-spacing:-.04em;
  color:var(--ink);
}
.identity-sub {
  display:block;
  font-size:.75rem;
  letter-spacing:.04em;
  font-weight:450;
  color:var(--muted);
}
nav {
  display:flex;
  gap:28px;
  font-size:.9rem;
}
nav a {
  color:var(--muted);
  text-decoration:none;
}
nav a:hover {
  color:var(--teal);
}
.intro {
  padding-block:48px 40px;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:32px;
}
.eyebrow {
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.13em;
  color:var(--teal);
  margin:0 0 12px;
}
h1 {
  font-size:clamp(2.2rem,3.6vw,3.6rem);
  font-weight:620;
  letter-spacing:-.055em;
  line-height:1.09;
  margin:0;
}
h1 span {
  color:var(--teal);
}
.intro-copy {
  max-width:440px;
  color:var(--muted);
  margin:0 0 4px;
  font-size:1rem;
  line-height:1.75;
}
h2 {
  font-size:1.6rem;
  line-height:1.22;
  letter-spacing:-.035em;
  font-weight:650;
  margin:0;
}
h3 {
  font-size:.95rem;
  font-weight:650;
  margin:0 0 12px;
}
.experiment {
  display:grid;
  grid-template-columns:286px minmax(0,1fr);
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 12px 38px #0e323909;
}
.controls {
  padding:25px 24px;
  border-right:1px solid var(--line);
}
.section-heading {
  margin-bottom:24px;
}
.section-heading .eyebrow {
  font-size:.75rem;
}
.section-heading h2 {
  font-size:1.22rem;
  line-height:1.3;
}
.field {
  margin-bottom:20px;
}
label {
  display:block;
  font-size:.875rem;
  font-weight:620;
  margin-bottom:8px;
}
input,select {
  border:1px solid #b8cbd0;
  border-radius:7px;
  color:var(--ink);
  background:#fff;
  padding:10px 12px;
  min-width:0;
  width:100%;
  min-height:44px;
}
select {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23455f65' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 10px center;
  padding-right:32px;
}
.help {
  font-size:.8125rem;
  color:var(--muted);
  line-height:1.55;
  margin:8px 0 0;
}
.number-unit {
  position:relative;
}
.number-unit input {
  padding-right:48px;
}
.number-unit span {
  position:absolute;
  right:12px;
  top:11px;
  color:var(--muted);
  font-size:.85rem;
  pointer-events:none;
}
.seed-settings {
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-bottom:16px;
}
.seed-settings summary {
  font-size:.85rem;
  color:var(--muted);
  font-weight:550;
}
.seed-settings .field {
  margin:14px 0 4px;
}
.text-button {
  border:0;
  background:none;
  color:var(--teal);
  padding:4px 0;
  font-size:.8rem;
  text-decoration:underline;
}
.button {
  border-radius:7px;
  padding:11px 14px;
  min-height:46px;
  font-size:.875rem;
  font-weight:650;
  transition:background .15s;
}
.button.primary {
  background:var(--teal);
  border:1px solid var(--teal);
  color:#fff;
}
.button.primary:hover:not(:disabled) {
  background:#0d5144;
}
.button.secondary {
  background:white;
  color:var(--ink);
  border:1px solid #aec5c9;
}
.button.secondary:hover {
  background:#edf4f3;
}
.full {
  width:100%;
}
.advance-section {
  margin-top:12px;
}
.message {
  font-size:.8125rem;
  min-height:48px;
  margin:16px 0;
  color:var(--teal);
}
.message.error {
  color:#a53322;
}
.key {
  border-top:1px solid var(--line);
  padding-top:18px;
}
.key h3 {
  font-size:.8rem;
}
.key ul {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:9px;
}
.key li {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:.75rem;
  color:var(--muted);
}
.key-node {
  display:inline-block;
  flex:0 0 14px;
  height:14px;
  border:1px solid var(--teal);
}
.key-node.food {
  border-radius:50%;
  background:var(--mint);
  outline:1px solid var(--teal);
  outline-offset:2px;
  transform:scale(.75);
}
.key-node.present {
  background:var(--mint);
  border-radius:3px;
}
.key-node.potential {
  background:#f3f7f8;
  border:1px dashed #647b83;
  border-radius:3px;
}
.key-node.reaction {
  background:#70848a;
  border:0;
  width:8px;
  height:8px;
  flex-basis:8px;
  margin-inline:3px;
  transform:rotate(45deg);
}
.edge-key {
  display:flex;
  flex-wrap:wrap;
  gap:9px 14px;
  margin-top:16px;
  font-size:.75rem;
  color:var(--muted);
}
.edge-key span {
  display:flex;
  align-items:center;
  gap:5px;
}
.edge-key i {
  width:18px;
  border-top:2px solid #478eb8;
}
.edge-key i.catalyst-line {
  border-top:2px dashed #b26714;
}
.edge-key i.product-line {
  border-color:#7b8d94;
}
.network-panel {
  min-width:0;
  display:flex;
  flex-direction:column;
}
.stats {
  display:grid;
  grid-template-columns:.7fr 1fr .7fr 1.6fr;
  padding:22px 26px;
  gap:12px;
  min-height:106px;
}
.stats>div {
  display:flex;
  flex-direction:column;
  gap:5px;
}
.stat-label {
  font-size:.75rem;
  letter-spacing:.07em;
  color:var(--muted);
  font-weight:650;
}
.stat-label a {
  text-decoration:none;
  font-size:.8rem;
}
.stats strong {
  font-size:1.8rem;
  line-height:1.1;
  letter-spacing:-.05em;
  font-weight:550;
}
.status-stat strong {
  font-size:1.2rem;
  margin-top:6px;
  letter-spacing:-.02em;
}
.graph-shell {
  background:#0b2027;
  position:relative;
  flex:1;
  min-height:490px;
  overflow:hidden;
}
.graph-topline {
  position:absolute;
  z-index:1;
  inset:19px 22px auto;
  display:flex;
  justify-content:space-between;
  gap:12px;
  pointer-events:none;
  font-size:.75rem;
  color:#a3bbc2;
}
.graph-topline #layout-status {
  font-size:.75rem;
  color:#85c9ac;
}
canvas {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  touch-action:none;
  cursor:grab;
}
canvas:active {
  cursor:grabbing;
}
.graph-toolbar {
  position:absolute;
  left:20px;
  bottom:49px;
  display:flex;
  gap:1px;
  background:#415b63;
  border:1px solid #415b63;
  border-radius:7px;
  overflow:hidden;
}
.graph-toolbar button {
  border:0;
  background:#16333d;
  color:#deedf0;
  min-width:39px;
  min-height:38px;
  font-size:.8rem;
  padding:7px 12px;
}
.graph-toolbar button:hover {
  background:#244b56;
}
.graph-toolbar button:first-child,.graph-toolbar button:nth-child(2) {
  font-size:1.15rem;
}
.graph-help {
  position:absolute;
  bottom:13px;
  left:22px;
  right:22px;
  color:#9cb6be;
  font-size:.75rem;
  margin:0;
  pointer-events:none;
}
.network-bottom {
  padding:13px 22px;
  min-height:68px;
  font-size:.75rem;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}
.network-bottom p {
  margin:0;
}
.network-bottom #graph-note {
  text-align:right;
  max-width:300px;
}
.inspection {
  padding-top:46px;
}
.inspection-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:22px;
}
.inspection-heading .eyebrow {
  margin-bottom:8px;
}
.inspection-heading>p {
  color:var(--muted);
  font-size:.9rem;
  max-width:430px;
  margin:0;
}
.inspection-grid {
  display:grid;
  grid-template-columns:286px minmax(0,1fr);
  gap:24px;
}
.chemical-card,.reaction-card {
  padding:22px;
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  min-width:0;
}
.chemical-info {
  font-size:.9rem;
  color:var(--ink);
  min-height:78px;
  line-height:1.7;
}
.table-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.table-heading h3 {
  margin:0;
  font-size:1rem;
}
.search-label {
  margin:0;
  width:220px;
}
.search-label input {
  font-size:.8rem;
  min-height:38px;
  padding:7px 10px;
}
.table-scroll {
  overflow:auto;
  max-height:330px;
  margin-top:15px;
}
table {
  width:100%;
  border-collapse:collapse;
  font-size:.8rem;
  text-align:left;
}
th {
  color:var(--muted);
  font-weight:550;
  background:#f6f9fa;
  position:sticky;
  top:0;
}
td,th {
  padding:10px 12px;
  border-bottom:1px solid #e6edef;
  white-space:nowrap;
}
td code {
  font-size:.85rem;
}
.pending {
  color:#935600;
}
.realized {
  color:var(--teal);
}
.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:var(--muted);
  font-size:.75rem;
  min-height:46px;
}
.pagination button {
  font-size:.75rem;
  background:none;
  border:1px solid var(--line);
  border-radius:5px;
  min-height:34px;
  padding:4px 10px;
  color:var(--ink);
}
.pagination p {
  margin:8px 0;
}
.model-section {
  display:grid;
  grid-template-columns:1fr 1.8fr;
  gap:80px;
  border-top:1px solid var(--line);
  margin-top:50px;
  padding-block:44px;
}
.model-section h2 {
  font-size:2rem;
  line-height:1.2;
}
.model-section>div>p {
  font-size:.9rem;
  color:var(--muted);
  max-width:330px;
}
.model-details details {
  border-bottom:1px solid var(--line);
  padding:15px 0;
}
.model-details details:first-child {
  padding-top:0;
}
summary {
  cursor:pointer;
  font-weight:600;
  font-size:.95rem;
}
details p {
  font-size:.875rem;
  color:var(--muted);
  line-height:1.8;
}
.model-details code {
  color:var(--teal);
}
.footer {
  border-top:1px solid var(--line);
  display:flex;
  gap:20px;
  justify-content:space-between;
  padding-block:24px;
  color:var(--muted);
  font-size:.75rem;
}
.footer a {
  color:var(--muted);
}
.footer-separator {
  margin-inline:8px;
  color:#a1b3b8;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  background:white;
  padding:14px;
  z-index:10;
}
.skip-link:focus {
  top:10px;
}
.noscript {
  position:fixed;
  bottom:0;
  background:white;
  padding:20px;
  width:100%;
  margin:0;
  border-top:2px solid #a53322;
}
@media(min-width:1500px) {
  .graph-shell {
    min-height:570px;
  }
}
@media(max-width:1100px) {
  .wrap {
    width:calc(100% - 48px);
  }
  .intro-copy {
    max-width:330px;
    font-size:.9rem;
  }
  .experiment {
    grid-template-columns:260px minmax(0,1fr);
  }
  .controls {
    padding:22px 20px;
  }
  .stats {
    padding:20px;
    grid-template-columns:repeat(3,1fr);
  }
  .status-stat {
    grid-column:1/-1;
    flex-direction:row!important;
    align-items:center;
    gap:14px!important;
  }
  .status-stat strong {
    font-size:.9rem;
    margin:0;
  }
  .graph-shell {
    min-height:530px;
  }
  .inspection-grid {
    grid-template-columns:260px minmax(0,1fr);
  }
  .model-section {
    gap:40px;
  }
}
@media(max-width:760px) {
  .wrap {
    width:calc(100% - 32px);
  }
  .site-header {
    padding-block:18px;
    gap:16px;
  }
  .identity {
    font-size:1.05rem;
  }
  .identity img {
    width:32px;
    height:32px;
  }
  .identity-sub {
    font-size:.75rem;
  }
  nav {
    gap:16px;
    font-size:.8rem;
  }
  nav a:last-child {
    display:none;
  }
  .intro {
    padding-block:32px;
    display:block;
  }
  .intro-copy {
    max-width:560px;
    margin-top:20px;
    font-size:.95rem;
  }
  .desktop-break {
    display:none;
  }
  h1 {
    font-size:2.6rem;
  }
  .experiment {
    grid-template-columns:1fr;
  }
  .controls {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:22px;
  }
  .section-heading {
    margin-bottom:18px;
  }
  .section-heading h2 {
    font-size:1.2rem;
  }
  .controls form {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px 18px;
  }
  .field {
    margin:0;
  }
  .seed-settings {
    grid-column:1/-1;
    margin:0;
    padding-top:10px;
  }
  .controls form>.button {
    grid-column:1/-1;
  }
  .seed-settings .field {
    max-width:280px;
  }
  .advance-section {
    margin-top:10px;
  }
  .advance-section .help {
    max-width:none;
  }
  .message {
    min-height:0;
    margin-block:12px;
  }
  .key {
    margin-top:16px;
    padding-top:14px;
  }
  .key ul {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .edge-key {
    margin-top:12px;
  }
  .stats {
    grid-template-columns:repeat(3,1fr);
    padding:18px 20px;
    gap:14px;
  }
  .stats strong {
    font-size:1.6rem;
  }
  .stats .status-stat strong {
    font-size:.9rem;
  }
  .stat-label {
    font-size:.75rem;
  }
  .graph-shell {
    min-height:430px;
  }
  .graph-topline {
    inset:16px 16px auto;
  }
  .graph-toolbar {
    left:15px;
    bottom:60px;
  }
  .graph-help {
    left:16px;
    right:16px;
    bottom:14px;
    max-width:290px;
  }
  .network-bottom {
    display:block;
    padding:12px 16px;
  }
  .network-bottom #graph-note {
    text-align:left;
    max-width:none;
    margin-top:3px;
  }
  .inspection {
    padding-top:32px;
  }
  .inspection-heading {
    display:block;
  }
  .inspection-heading>p {
    margin-top:10px;
  }
  .inspection-grid {
    grid-template-columns:1fr;
    gap:16px;
  }
  .chemical-info {
    min-height:0;
  }
  .chemical-card {
    padding:18px;
  }
  .reaction-card {
    padding:18px;
  }
  .table-heading {
    align-items:center;
  }
  .search-label {
    width:170px;
  }
  .model-section {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:32px;
    padding-block:30px;
  }
  .model-section h2 {
    font-size:1.8rem;
  }
  .model-section h2 br {
    display:none;
  }
  .model-section>div>p {
    max-width:none;
  }
  .footer {
    display:block;
    line-height:1.8;
  }
  .footer>a {
    display:inline-block;
    margin-top:6px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  * {
    transition:none!important;
  }
}
