@font-face {
  font-family: DM Sans;
  src: url(fonts/dm-sans.ttf) format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url(fonts/barlow-condensed.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #10191e;
  --surface: #172329;
  --deep: #0c171b;
  --line: #35454a;
  --ink: #eef2e9;
  --muted: #a9b9ba;
  --orange: #ffb67a;
  --blue: #83d6df;
  --lime: #dae7a0;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: Consolas, monospace;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.5 var(--body);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button,
select,
input {
  background: #1a2a30;
  border: 1px solid #4f6266;
  border-radius: 5px;
  padding: 7px 10px;
  max-width: 100%;
}
button,
select {
  cursor: pointer;
}
button:hover,
a.chip:hover {
  border-color: var(--blue);
  background: #20353a;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
canvas:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
button.active,
button[aria-pressed="true"] {
  background: var(--ink);
  color: #14262b;
  border-color: var(--ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  margin: 5px 0 12px;
  max-width: 84ch;
}
h1,
h2,
h3 {
  line-height: 1.08;
}
h1 {
  font: 700 clamp(44px, 6.1vw, 88px) / 0.97 var(--head);
  letter-spacing: -0.025em;
}
h2 {
  font: 700 clamp(25px, 2.5vw, 36px) / 1.08 var(--head);
}
h3 {
  font: 650 16px var(--body);
}
small,
.note {
  font-size: 12px;
  color: var(--muted);
}
.sr,
.skip {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  clip-path: none;
  width: auto;
  height: auto;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: var(--deep);
  padding: 9px;
}
.mast {
  border-bottom: 1px solid var(--line);
  background: #111b20;
}
.mast-inner {
  max-width: 1580px;
  margin: auto;
  padding: 12px clamp(16px, 3.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 70px;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  font: 700 32px/1 var(--head);
  letter-spacing: -0.045em;
}
.brand-mark {
  display: block;
  width: 31px;
  height: 30px;
  position: relative;
}
.brand-mark i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
}
.brand-mark i:nth-child(1) {
  left: 0;
  top: 18px;
}
.brand-mark i:nth-child(2) {
  left: 13px;
  top: 3px;
}
.brand-mark i:nth-child(3) {
  left: 24px;
  top: 18px;
}
.brand-mark:before,
.brand-mark:after {
  content: "";
  position: absolute;
  background: var(--orange);
  height: 2px;
  transform-origin: left;
}
.brand-mark:before {
  width: 21px;
  left: 4px;
  top: 21px;
  transform: rotate(-49deg);
}
.brand-mark:after {
  width: 19px;
  left: 17px;
  top: 7px;
  transform: rotate(53deg);
}
.lanes {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lanes a {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 6px;
}
.lanes a[aria-current="page"] {
  color: var(--ink);
  background: #28363b;
}
.export-top {
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 12px;
}
.export-top span {
  color: var(--orange);
  padding-left: 8px;
}
main {
  max-width: 1580px;
  margin: auto;
  padding: clamp(20px, 2.7vw, 41px) clamp(16px, 3.5vw, 56px) 30px;
  outline: none;
}
.stamp,
.kicker {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--blue);
}
.stamp {
  display: flex;
  gap: 9px;
  align-items: center;
}
.stamp-line {
  height: 1px;
  background: #638589;
  width: 28px;
}
.headline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 11px 0 7px;
}
.headline p {
  color: var(--muted);
  font-size: 14px;
  max-width: 50ch;
  margin: 0 0 3px;
}
.info-meta {
  color: var(--muted);
  font-size: 13px;
}
.tool-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 9px 0 0;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 19px;
}
.tool-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  padding: 8px 13px 11px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 620;
}
.tool-nav a:first-child {
  padding-left: 0;
}
.tool-nav a[aria-current="page"] {
  color: var(--orange);
  border-color: var(--orange);
}
.layout,
.split,
.three,
.statline {
  display: grid;
  gap: 14px;
}
.layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 0.9fr);
}
.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel,
.viewport,
.statline {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.panel {
  padding: clamp(16px, 1.75vw, 24px);
}
.panel + .panel {
  margin-top: 14px;
}
.layout > .panel,
.split > .panel,
.three > .panel {
  margin: 0;
}
.panel h2 {
  margin-bottom: 14px;
}
.statline {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 13px 0;
  margin: 12px 0;
}
.statline > div {
  border-right: 1px solid var(--line);
  padding: 0 16px;
  display: grid;
  gap: 1px;
}
.statline > div:last-child {
  border: 0;
}
.statline strong,
.number {
  font: 700 clamp(26px, 2.8vw, 42px) / 1.05 var(--head);
  color: var(--ink);
}
.statline small {
  font-size: 11.5px;
}
.viewport {
  background: #101e23;
  overflow: hidden;
}
.viewer-top,
.viewer-bottom,
.panel-top,
.toolbar,
.buttons,
.legend,
.view-choices,
.orbit-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.viewer-top,
.viewer-bottom {
  padding: 12px 16px;
  justify-content: space-between;
}
.viewer-top {
  border-bottom: 1px solid #2c4147;
  background: #17282e;
}
.viewer-bottom {
  border-top: 1px solid #2c4147;
  align-items: flex-start;
}
.viewer-top strong {
  font-size: 13px;
}
.view-choices,
.orbit-buttons {
  gap: 3px;
}
.view-choices button,
.orbit-buttons button {
  padding: 4px 8px;
  font-size: 11.5px;
}
.viewer-stage {
  position: relative;
  background: radial-gradient(ellipse at 44% 40%, #1c3339, #122329 58%, #0c181c);
}
.viewer-stage canvas {
  display: block;
  width: 100%;
  height: clamp(280px, 28vw, 410px);
  touch-action: none;
  cursor: grab;
}
.viewer-stage canvas:active {
  cursor: grabbing;
}
.viewer-stage .view-note {
  position: absolute;
  top: 9px;
  left: 12px;
  color: #b6c9c9;
  font: 10px var(--mono);
  pointer-events: none;
}
.legend {
  color: var(--muted);
  font-size: 12px;
  gap: 13px;
}
.legend i {
  width: 14px;
  height: 3px;
  background: var(--tone, var(--blue));
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}
.panel-top {
  align-items: start;
  justify-content: space-between;
}
.toolbar {
  margin: 10px 0 12px;
  gap: 10px;
}
.toolbar label,
.field,
.formgrid label {
  font-size: 12px;
  color: #cbdddb;
  font-weight: 600;
}
.toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.toolbar input[type="search"] {
  max-width: min(100%, 250px);
}
.formgrid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 12px 0;
}
.formgrid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.formgrid input,
.formgrid select {
  width: 100%;
  min-width: 0;
}
.badge {
  border-radius: 4px;
  background: #203d3b;
  color: #a8e1cf;
  font: 650 11px/1.4 var(--body);
  padding: 3px 7px;
  display: inline-block;
}
.badge.lost {
  background: #4a3329;
  color: #ffca97;
}
.badge.absent {
  background: #29383c;
  color: #b8c4c4;
}
.badge.gained {
  background: #35432e;
  color: #d9eca9;
}
.badge.retained {
  background: #203f46;
  color: #a2dce4;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 13px 0;
}
.res-title {
  font: 700 clamp(42px, 5vw, 66px) / 1 var(--head);
  margin: 5px 0 13px;
}
.metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.metric-pair div {
  border-left: 2px solid var(--blue);
  padding-left: 9px;
  display: grid;
}
.metric-pair div:last-child {
  border-color: var(--orange);
}
.metric-pair b {
  font: 700 30px var(--head);
}
.mono,
code,
pre,
.hash {
  font-family: var(--mono);
}
.hash {
  overflow-wrap: anywhere;
  font-size: 11.5px;
}
.atom-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: 12px;
}
.atom-line span {
  color: var(--muted);
}
.chip,
.btn,
.linkbutton {
  font: 650 12px var(--body);
  border-radius: 5px;
  text-decoration: none;
}
.chip,
.btn {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #52676b;
  color: var(--ink);
}
.btn {
  background: var(--orange);
  color: #2d211b;
  border-color: var(--orange);
}
.linkbutton {
  border: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.linkbutton:hover {
  background: transparent;
  color: white;
}
.scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.scroll table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.scroll th,
.scroll td {
  white-space: nowrap;
  padding: 8px 9px;
  border-bottom: 1px solid #334349;
}
.scroll th {
  color: #bfcece;
  background: #202e34;
  font-weight: 620;
}
.scroll tr:last-child td {
  border-bottom: 0;
}
.scroll tr.selected td {
  background: #203539;
}
.callout {
  border-left: 3px solid var(--orange);
  padding: 9px 12px;
  background: #263033;
  margin: 10px 0;
}
.callout p {
  font-size: 13px;
  margin: 3px 0;
}
.spacer {
  margin-top: 14px;
}
.figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.figure text {
  font: 12px var(--body);
  fill: var(--muted);
}
.range {
  display: flex;
  gap: 12px;
  align-items: center;
}
.range input {
  flex: 1;
  accent-color: var(--orange);
}
.matrix {
  display: grid;
  gap: 1px;
  aspect-ratio: 1;
  max-width: 400px;
}
.matrix button {
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 1px;
}
.files {
  display: grid;
}
.files a {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.files a:last-child {
  border: 0;
}
pre {
  background: #101c20;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  border-radius: 4px;
  padding: 10px;
  max-height: 25rem;
  overflow: auto;
}
summary {
  cursor: pointer;
  color: var(--blue);
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1580px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 17px clamp(16px, 3.5vw, 56px);
  font-size: 12px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
}
@media (max-width: 1000px) {
  .headline {
    display: block;
  }
  .headline p {
    margin-top: 9px;
  }
  .layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(245px, 0.9fr);
  }
}
@media (max-width: 850px) {
  .mast-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 9px;
  }
  .lanes {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 6px;
  }
  .lanes a {
    padding: 5px 10px;
  }
  .layout,
  .split,
  .three {
    grid-template-columns: 1fr;
  }
  .headline {
    margin-top: 7px;
  }
  .viewer-stage canvas {
    height: 320px;
  }
  .tool-nav {
    margin-bottom: 12px;
  }
  .statline strong {
    font-size: 29px;
  }
  .statline > div {
    padding: 0 8px;
  }
  .statline small {
    font-size: 10.5px;
  }
}
@media (max-width: 480px) {
  main {
    padding: 18px 12px 25px;
  }
  .viewer-stage canvas {
    height: 283px;
  }
  .viewer-top,
  .viewer-bottom {
    padding: 10px;
  }
  .tool-nav a {
    padding: 7px 10px 10px;
  }
  .toolbar label {
    flex-wrap: wrap;
  }
  .panel {
    padding: 14px;
  }
  .export-top {
    font-size: 11px;
  }
  .statline {
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
  }
  .statline > div:nth-child(2) {
    border: 0;
  }
  .view-choices button,
  .orbit-buttons button {
    min-height: 28px;
  }
  .scroll td,
  .scroll th {
    padding: 7px;
  }
  .headline p {
    font-size: 13px;
  }
}
.panel > svg,
.molecular-field svg {
  display: block;
  width: 100%;
  height: auto;
}
.molecular-field {
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1e403c, #102523 75%);
}
.frame-control {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--muted);
}
.frame-control input {
  width: 100%;
  accent-color: #86d9b9;
}
@media print {
  .mast,
  .tool-nav,
  footer,
  .buttons,
  .toolbar {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .panel,
  .viewport,
  .statline {
    break-inside: avoid;
  }
}
