:root {
  color-scheme: dark;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: #101513;
  color: #ecf0e9;
  font-size: 15px;
  --panel: #19201c;
  --line: #354239;
  --soft: #aab8ad;
  --lime: #d4efa6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  border-bottom: 1px solid var(--line);
  background: #121914;
}
nav,
main,
footer {
  max-width: 1340px;
  margin: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 4vw;
  font-size: 0.88rem;
}
nav strong {
  font-size: 1.13rem;
  margin-right: auto;
  letter-spacing: -0.03em;
}
nav span {
  color: var(--lime);
}
a {
  color: var(--soft);
}
nav a {
  text-decoration: none;
}
a:hover {
  color: white;
}
main {
  padding: 0 4vw;
}
.intro {
  padding: 34px 0 25px;
}
.intro h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.067em;
  font-weight: 580;
}
.intro p,
p {
  color: var(--soft);
  line-height: 1.45;
}
.intro p {
  font-size: 1.05rem;
  margin: 0;
}
.bench {
  display: grid;
  grid-template-columns: minmax(214px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
}
.bench > *,
.summary > *,
#research {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
aside,
.view,
.summary > *,
#research {
  padding: 19px;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.035em;
  margin: 0 0 15px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.79rem;
  color: var(--soft);
}
aside > label {
  margin-bottom: 13px;
}
select,
input,
button,
textarea {
  font: inherit;
  color: inherit;
}
select,
input[type="number"],
textarea {
  border-radius: 4px;
  padding: 8px 10px;
  background: #111713;
  border: 1px solid #536054;
  color: #edf2eb;
  width: 100%;
  font-size: 0.87rem;
}
textarea,
pre,
output,
#legend,
#record-id,
dd {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
button {
  border: 1px solid #536054;
  background: transparent;
  color: #e3e9df;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.85rem;
  cursor: pointer;
}
button:disabled,
select:disabled,
input:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: var(--lime);
  color: #182214;
  border: 0;
  width: 100%;
  font-weight: 680;
  padding: 12px;
}
details {
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
summary {
  cursor: pointer;
  font-size: 0.87rem;
}
details > label,
details > button,
.buttons {
  margin: 9px 0;
}
aside p,
#legend,
#status,
.control {
  font-size: 0.8rem;
}
#status {
  min-height: 1.3em;
}
#status[data-error="true"] {
  color: #ffb5a3;
}
.viewhead,
.tools,
.control,
.buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.viewhead {
  justify-content: space-between;
  margin-bottom: 12px;
}
.viewhead h2 {
  margin-bottom: 4px;
}
.viewhead p {
  margin: 0;
  font-size: 0.8rem;
}
.tools > label:first-child {
  flex: 2;
}
.tools > label {
  min-width: 0;
  flex: 1;
}
.plot {
  position: relative;
  background: #0d1414;
  margin: 13px 0 7px;
  border: 1px solid #303d37;
  border-radius: 4px;
  overflow: hidden;
}
.plot canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}
.plot > p {
  position: absolute;
  inset: 43% 0 auto;
  text-align: center;
  pointer-events: none;
}
.control {
  justify-content: space-between;
  align-items: flex-end;
}
.control label {
  flex: 1;
  max-width: 50%;
}
input[type="range"] {
  accent-color: var(--lime);
  min-width: 70px;
}
output {
  color: #d5dfd3;
  font-size: 0.75rem;
  text-align: right;
}
#legend {
  margin-bottom: 0;
}
.summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin: 17px 0;
}
.summary div {
  font-size: 0.84rem;
}
.summary canvas {
  width: 100%;
  height: auto;
}
.summary dl {
  margin: 0;
}
.summary dt {
  color: var(--soft);
  margin-top: 7px;
}
.summary dd {
  margin: 2px 0 6px;
  font-size: 0.88rem;
}
#research {
  margin-bottom: 12px;
}
pre {
  overflow: auto;
  max-height: 450px;
  background: #101612;
  color: #dbe5d8;
  padding: 10px;
  font-size: 0.8rem;
}
#record-id {
  overflow-wrap: anywhere;
  font-size: 0.79rem;
}
footer {
  padding: 22px 4vw;
  color: var(--soft);
  font-size: 0.8rem;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .bench,
  .summary {
    grid-template-columns: 1fr;
  }
  nav {
    gap: 12px;
  }
  nav strong {
    margin-right: 0;
  }
  .intro {
    padding: 26px 0 18px;
  }
  .view,
  .summary > *,
  aside {
    padding: 14px;
  }
  .viewhead {
    align-items: flex-start;
  }
}
@media (max-width: 440px) {
  nav {
    gap: 9px;
    font-size: 0.75rem;
  }
  .tools {
    flex-wrap: wrap;
  }
  .tools > label:first-child {
    flex-basis: 100%;
  }
}

#legend {
  overflow-wrap: anywhere;
}
