* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #0e1115;
  --card: #181c22;
  --card2: #11151a;
  --rule: #30353d;
  --soft: #9ba3af;
  --mint: #a7f0ce;
  --violet: #b39bf9;
  --gold: #f6c880;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f0f2f4;
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
select,
input {
  font: inherit;
}
button,
select {
  cursor: pointer;
  color: inherit;
  background: #242930;
  border: 1px solid #3a4049;
  border-radius: 7px;
}
button {
  transition:
    background 0.16s,
    color 0.16s,
    border-color 0.16s;
}
button:hover,
select:hover {
  background-color: #30373d;
  border-color: #646e76;
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
.edge:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.33;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
svg:not(:root) {
  overflow: hidden;
}
header {
  height: 64px;
  border-bottom: 1px solid #292e34;
  background: #14171c;
}
.bar,
main {
  max-width: 1580px;
  width: calc(100% - clamp(40px, 6vw, 100px));
  margin: auto;
}
.bar {
  height: 100%;
  display: flex;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -1px;
}
.brand img {
  width: 30px;
  height: 30px;
}
.brand span {
  font-weight: 430;
  color: #a8adb5;
  margin-left: -4px;
}
.nav {
  display: flex;
  height: 100%;
  margin-left: 44px;
  gap: 26px;
}
.nav button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 3px 1px 0;
  background: transparent;
  color: var(--soft);
  font-size: 13px;
}
.nav button.active {
  color: var(--mint);
  border-bottom-color: var(--mint);
}
.guide {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 13px;
  color: #c4cad2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.book {
  font-size: 20px;
  color: #8a959e;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 31px 0 26px;
}
.kicker,
.eyebrow,
.micro,
.smalltag,
.stagecode,
.stageflag,
.arch,
.layerlabel,
.layerfn,
.nodeval,
.weightval,
.nid,
.manual,
footer {
  font-family: var(--mono);
}
.kicker,
.eyebrow,
.micro {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 600;
}
.kicker {
  color: #b8c3c5;
  display: flex;
  align-items: center;
  gap: 9px;
}
.kicker i {
  width: 15px;
  height: 2px;
  background: var(--mint);
}
.kicker b,
.stagecode b,
footer b {
  color: #546269;
  margin: 0 2px;
}
.hero h1,
.sectiontitle h2 {
  margin: 7px 0 6px;
  font-size: clamp(32px, 3.3vw, 50px);
  font-weight: 620;
  letter-spacing: -2.5px;
  line-height: 1.09;
}
h1 span,
.sectiontitle h2 span {
  color: var(--mint);
}
p {
  color: #aab2bc;
  line-height: 1.55;
}
.hero p,
.sectiontitle p {
  margin: 0;
  font-size: 14px;
  color: #abb3be;
}
.metrics {
  display: flex;
  gap: 0;
  align-self: center;
  padding-top: 8px;
}
.metrics > div {
  min-width: 115px;
  padding: 0 24px;
  border-left: 1px solid var(--rule);
}
.metrics > div:last-child {
  padding-right: 0;
}
.metrics small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #a7b0bb;
}
.metrics svg,
.lessonicon svg,
.wide svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metrics small svg {
  width: 14px;
  height: 14px;
  color: #a7c9bb;
}
.metrics strong {
  display: block;
  font: 500 27px var(--mono);
  letter-spacing: -1.5px;
  margin-top: 8px;
}
.metrics em {
  font: 14px var(--mono);
  color: var(--soft);
  margin-left: 5px;
}
.layout {
  display: grid;
  grid-template-columns: clamp(248px, 20.6vw, 307px) minmax(0, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
.dataset,
.training,
.sequence,
.charts .card {
  padding: 20px;
}
.heading,
.networkhead,
.classlegend,
.sampleheading,
.switchrow,
.seqactions,
.stepinfo,
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.eyebrow {
  color: #91a59f;
  font-size: 10px;
  letter-spacing: 1.55px;
}
.smalltag,
.arch {
  font-size: 10px;
  letter-spacing: 1px;
  color: #aab5bd;
  border: 1px solid #3c434b;
  background: #22272d;
  border-radius: 5px;
  padding: 3px 7px;
}
.card h2 {
  font-size: 22px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin: 6px 0 16px;
}
.selectwrap {
  position: relative;
}
.selectwrap select {
  padding: 10px 28px 10px 38px;
  width: 100%;
  font-weight: 550;
}
.patternicon {
  font: 24px var(--mono);
  line-height: 1;
  color: var(--mint);
  position: absolute;
  left: 12px;
  top: 6px;
  pointer-events: none;
}
select {
  appearance: none;
  padding: 8px 27px 8px 11px;
  font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23a8b2b8' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 9px;
}
#plot {
  margin-top: 12px;
  background: #101419;
  border: 1px solid #2e363c;
  border-radius: 7px;
  overflow: hidden;
}
#plot svg {
  display: block;
  width: 100%;
  max-height: 166px;
}
#plot circle[data-p] {
  cursor: crosshair;
}
#plot circle[data-p]:hover {
  stroke: #fff;
  stroke-width: 2;
}
.classlegend,
.netlegend {
  font-size: 11px;
  color: #b8c1c9;
}
.classlegend {
  margin-top: 11px;
  gap: 12px;
  justify-content: flex-start;
}
.classlegend span,
.netlegend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.classlegend small {
  font: 10px var(--mono);
  margin-left: auto;
  color: #8c98a4;
}
.dot,
.manual i,
.stageflag i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}
.mint {
  background: #77e2bd;
}
.violet {
  background: #ad94fb;
}
.line {
  border-top: 1px solid var(--rule);
  margin: 18px 0;
}
.sampleheading label,
.switchrow {
  font-size: 13px;
  font-weight: 530;
}
.sampleheading > div {
  display: flex;
  gap: 8px;
  align-items: center;
}
#pnum {
  font: 12px var(--mono);
  color: #bdc9d0;
}
.mini {
  background: #20252b;
  padding: 0;
  width: 23px;
  height: 23px;
  font-size: 16px;
  line-height: 20px;
}
.coordinates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 10px 0 0;
}
.eq {
  min-width: 0;
}
.eq small,
.ratelabel {
  display: block;
  color: #a7b1bc;
  font-size: 11px;
  line-height: 1.5;
}
.eq strong {
  display: block;
  margin-top: 3px;
  font: 500 18px var(--mono);
  letter-spacing: -0.55px;
}
.coordinates .eq {
  background: #13171c;
  border-radius: 5px;
  border: 1px solid #2d333b;
  padding: 7px 9px;
}
.coordinates strong {
  font-size: 14px;
}
.purple strong {
  color: var(--violet);
}
.green strong {
  color: var(--mint);
}
.gold strong {
  color: var(--gold);
}
.switchrow {
  position: relative;
  cursor: pointer;
}
.switchrow small {
  display: block;
  color: #929ba7;
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
}
.switchrow input {
  position: absolute;
  right: 0;
  width: 31px;
  height: 24px;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.switch {
  pointer-events: none;
  display: block;
  width: 31px;
  height: 18px;
  background: #393f46;
  border: 1px solid #51585e;
  border-radius: 20px;
  position: relative;
}
.switch:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  background: #d7dde1;
  border-radius: 100%;
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}
.switchrow input:checked + .switch {
  background: var(--mint);
  border-color: var(--mint);
}
.switchrow input:checked + .switch:after {
  transform: translateX(13px);
  background: #1a342d;
}
.switchrow input:focus-visible + .switch {
  outline: 2px solid white;
}
.wide {
  width: 100%;
  margin-top: 15px;
  padding: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
}
.wide svg {
  width: 15px;
  height: 15px;
}
.training {
  margin-top: 16px;
  background: linear-gradient(120deg, #1b2323, #181c22 80%);
}
.training h2 {
  font-size: 19px;
  margin: 7px 0;
}
.training p,
.charts p {
  font-size: 12px;
  margin: 7px 0 15px;
}
.training .flex > * {
  flex: 1;
}
.training button {
  background: #2a3833;
  color: var(--mint);
  border-color: #455b50;
  padding: 8px 6px;
  font-size: 12px;
}
.workspace {
  min-width: 0;
}
.networkhead {
  padding: 16px 22px 15px;
}
.networkhead h2 {
  margin: 4px 0 0;
}
.arch {
  font-size: 12px;
  letter-spacing: 1.3px;
  padding: 5px 10px;
}
.arch b {
  font-weight: 400;
  color: #6f7a83;
}
.stage {
  background-color: #10171b;
  background-image:
    radial-gradient(ellipse at 48% 62%, #32314357, transparent 62%),
    radial-gradient(ellipse at 5% 50%, #25483534, transparent 50%),
    radial-gradient(#5669654f 0.85px, transparent 1px);
  background-size:
    auto,
    auto,
    15px 15px;
  border-block: 1px solid #29333a;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.stage:after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  left: -20%;
  right: -20%;
  height: 160px;
  bottom: -70px;
  transform: perspective(110px) rotateX(45deg);
  background-image:
    linear-gradient(#5b7c8c22 1px, transparent 1px),
    linear-gradient(90deg, #5b7c8c22 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(transparent, #000 70%);
}
.stageflag,
.stagecode {
  position: absolute;
  top: 14px;
  z-index: 1;
  font-size: 9px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.stageflag {
  display: flex;
  align-items: center;
  gap: 7px;
  left: 16px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1b2c28;
  color: #a6dbbf;
  border: 1px solid #374c43;
}
.stageflag i {
  width: 5px;
  height: 5px;
  background: var(--mint);
}
.stagecode {
  right: 18px;
  top: 20px;
  color: #809097;
}
.stage.reverse .stageflag {
  background: #35291d;
  color: var(--gold);
  border-color: #58432c;
}
.stage.reverse .stageflag i {
  background: var(--gold);
}
#graph {
  padding: 5px 15px 4px;
}
#graph > svg {
  width: 100%;
  display: block;
  height: clamp(260px, 21vw, 336px);
}
.layerlabel,
.layerfn,
.nid,
.weightval {
  text-anchor: middle;
}
.layerlabel {
  fill: #c1cad1;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 650;
}
.layerfn {
  font-size: 10px;
  fill: #939fa8;
}
.nid {
  font-size: 14px;
  font-weight: 650;
  fill: #fff;
}
.nodeval,
.weightval {
  font-size: 10px;
  paint-order: stroke;
  stroke: #161c22;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.edge {
  cursor: pointer;
}
.edge:hover .wire,
.edge:focus .wire {
  stroke: white;
  opacity: 1;
}
.netlegend {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}
.stroke {
  display: inline-block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
}
.pos {
  background: #77e2bd;
}
.neg {
  background: #ad94fb;
}
.thick {
  width: 17px;
  height: 5px;
  background: #aab3bf;
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 70%);
}
.inspecthint {
  color: #8e9ba4;
  margin-left: auto;
}
.sequence {
  margin-top: 16px;
  padding: 16px 20px;
}
.manual {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #b4bfc3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manual i {
  height: 5px;
  width: 5px;
  background: #9be6bf;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #11151a;
  border: 1px solid #30363d;
  border-radius: 7px;
  padding: 3px;
  gap: 3px;
  margin: 13px 0 16px;
}
.tabs button {
  font-size: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 7px 2px;
  background: transparent;
  color: #9faab4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 530;
}
.tabs button b {
  font: 10px var(--mono);
  opacity: 0.77;
}
.tabs button.on {
  background: #24392f;
  color: #b3f2ce;
  border-color: #3b5948;
}
.tabs button:hover {
  background: #252d30;
}
.stepinfo {
  justify-content: flex-start;
  gap: 12px;
}
.lessonicon {
  display: grid;
  place-items: center;
  border: 1px solid #345347;
  border-radius: 9px;
  width: 39px;
  height: 39px;
  background: #23382e;
  color: #b3f1cd;
}
.lessonicon svg {
  width: 22px;
  height: 22px;
}
.lessonicon.ph1,
.lessonicon.ph2 {
  color: var(--gold);
  background: #382f22;
  border-color: #584835;
}
.micro {
  font-size: 9px;
  color: #9caaa6;
  letter-spacing: 1.3px;
}
.stepinfo h3 {
  margin: 3px 0 0;
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 590;
}
#lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  align-items: center;
}
#lesson p {
  grid-column: 1;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  max-width: 600px;
}
.values {
  grid-column: 2;
  grid-row: 1/3;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 17px;
  background: #13171c;
  border: 1px solid #2f353c;
  border-radius: 7px;
  padding: 12px 14px;
}
.values .eq + .eq {
  border-left: 1px solid #2d3339;
  padding-left: 14px;
}
.values .eq small {
  font-size: 10px;
}
.arrow {
  color: #83918e;
  font-weight: 400;
}
.ratelabel {
  font-size: 10px;
}
.ratelabel select {
  display: block;
  font: 12px var(--mono);
  padding: 4px 18px 4px 6px;
  margin-top: 4px;
  background-position: right 5px center;
}
.seqactions {
  margin-top: 15px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.seqactions > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.seqactions .mini {
  width: 30px;
  height: 31px;
}
.seqactions > button {
  font-size: 12px;
  background: transparent;
  border: 0;
  padding: 5px 0;
  color: #b5bec8;
}
.seqactions > button span {
  color: var(--mint);
  margin-left: 5px;
}
.primary {
  font-size: 12px;
  font-weight: 650;
  color: #162920;
  background: var(--mint);
  border-color: var(--mint);
  padding: 8px 13px;
}
.primary:hover {
  background: #c4ffdd;
  border-color: #c4ffdd;
}
.primary span {
  margin-left: 10px;
}
.sectiontitle {
  margin: 39px 0 18px;
}
.sectiontitle h2 {
  font-size: 30px;
  letter-spacing: -1.4px;
}
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.charts h3 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.5px;
}
.charts canvas,
.charts svg {
  margin-top: 16px;
  width: 100%;
  height: 225px;
  background: #10151a;
  border-radius: 6px;
  border: 1px solid #2b333b;
}
.charts p {
  margin-bottom: 0;
}
.sectiontitle p {
  font-size: 13px;
}
footer {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1px;
  color: #94a1a8;
}
dialog {
  width: min(550px, calc(100% - 32px));
  max-height: 85vh;
  overflow: auto;
  padding: 25px;
  border: 1px solid #4a565b;
  background: #191e24;
  color: #e9eef2;
  border-radius: 12px;
  box-shadow: 0 18px 100px #0009;
}
dialog::backdrop {
  background: #080c11bf;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 27px;
  letter-spacing: -1px;
  margin: 12px 0 14px;
}
dialog p,
.guideitems {
  font-size: 14px;
  line-height: 1.6;
  color: #b2bdc5;
}
.guideitems {
  padding-left: 22px;
}
.guideitems li {
  padding: 5px 0;
}
.edgelabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin: 14px 0 18px;
}
.calc {
  padding: 12px 14px;
  margin: 8px 0;
  background: #11161a;
  border-radius: 6px;
  border: 1px solid #303b3e;
}
.calc small,
.roundnote {
  font-size: 11px;
  color: #a2b4b0;
}
.calc div {
  font: 13px/1.6 var(--mono);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.calc b {
  color: var(--mint);
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: #24342e;
  border: 1px solid #536c60;
  color: #daf6e9;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 5px 24px #0007;
  transition: 0.2s;
  z-index: 2;
}
#notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.stagecontrols {
  position: absolute;
  right: 15px;
  top: 11px;
  display: flex;
  gap: 11px;
  align-items: center;
  z-index: 2;
}
.stagecontrols .stagecode {
  position: static;
}
.stagecontrols button {
  font: 10px var(--mono);
  color: #c5d7d0;
  background: #192420;
  border: 1px solid #394b43;
  padding: 5px 8px;
  border-radius: 4px;
}
.wave {
  opacity: 0;
}
.playing .wave {
  animation: flow 2.15s linear var(--delay) 1;
}
.reverse .playing .wave {
  animation-name: backflow;
}
@keyframes flow {
  0% {
    stroke-dashoffset: 5;
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  95% {
    opacity: 0.95;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}
@keyframes backflow {
  0% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  95% {
    opacity: 0.95;
  }
  100% {
    stroke-dashoffset: 5;
    opacity: 0;
  }
}
#valkey {
  color: #97a6aa;
  font-size: 10px;
}
.errorKey {
  color: var(--gold) !important;
}
.hero {
  padding-top: 23px;
  padding-bottom: 20px;
}
.stageflag {
  top: 11px;
}
#graph > svg {
  height: clamp(252px, 19.8vw, 327px);
}
.nodeval {
  font-size: 11px;
}
.networkhead {
  padding-block: 13px;
}
.line {
  margin-block: 16px;
}
.training {
  margin-top: 14px;
}
@media (max-width: 940px) {
  #valkey {
    font-size: 9px;
  }
  .stagecontrols {
    right: 8px;
    top: 8px;
  }
  .stagecontrols button {
    font-size: 9px;
  }
  .stagecontrols .stagecode {
    display: none;
  }
}
@media (min-width: 1550px) {
  .hero {
    padding-block: 40px;
  }
  .dataset,
  .training {
    padding: 23px;
  }
  .stepinfo h3 {
    font-size: 23px;
  }
  .netlegend {
    padding-block: 14px;
  }
}
@media (max-width: 1220px) {
  .metrics > div {
    min-width: 100px;
    padding: 0 16px;
  }
  #lesson {
    grid-template-columns: 1fr;
  }
  .values {
    grid-row: auto;
    grid-column: 1;
    margin-top: 12px;
    align-self: auto;
    gap: 22px;
    padding: 8px 12px;
  }
  .values .eq {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .values .eq strong {
    font-size: 15px;
    margin: 0;
  }
  .dataset,
  .training {
    padding: 16px;
  }
  .layout {
    gap: 14px;
  }
  .inspecthint {
    font-size: 10px;
  }
  .tabs button {
    font-size: 11px;
  }
  .netlegend {
    gap: 15px;
  }
  .hero p {
    font-size: 13px;
  }
}
@media (max-width: 940px) {
  .bar,
  main {
    width: calc(100% - 36px);
  }
  .hero {
    align-items: flex-start;
  }
  .metrics > div {
    min-width: 78px;
    padding: 0 11px;
  }
  .metrics strong {
    font-size: 22px;
  }
  .metrics small {
    font-size: 10px;
  }
  .metrics small svg {
    display: none;
  }
  .layout {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .dataset,
  .training {
    padding: 14px;
  }
  .classlegend {
    gap: 6px;
    font-size: 10px;
  }
  .classlegend small {
    font-size: 8px;
  }
  .sampleheading label {
    font-size: 11px;
  }
  .sequence {
    padding: 14px;
  }
  .inspecthint {
    display: none !important;
  }
  .tabs button {
    gap: 4px;
  }
  .values {
    gap: 10px;
  }
  .values .eq {
    display: block;
  }
  .values .eq strong {
    margin-top: 2px;
  }
  .stagecode {
    display: none;
  }
  #graph {
    padding-inline: 0;
  }
  #graph > svg {
    height: auto;
    min-height: 225px;
  }
  .training .flex {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  header {
    height: 54px;
  }
  .bar,
  main {
    width: calc(100% - 24px);
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .nav {
    margin-left: 22px;
    gap: 15px;
  }
  .guide {
    font-size: 0;
  }
  .hero {
    padding: 24px 0 18px;
    display: block;
  }
  .hero h1 {
    font-size: 38px;
  }
  .kicker,
  .eyebrow {
    font-size: 9px;
  }
  .metrics {
    padding-top: 16px;
  }
  .metrics > div {
    flex: 1;
    padding: 0 12px;
  }
  .metrics > div:first-child {
    border: 0;
    padding-left: 0;
  }
  .metrics strong {
    margin-top: 4px;
  }
  .layout {
    display: flex;
    flex-direction: column;
  }
  .workspace,
  aside {
    display: contents;
  }
  .network {
    order: 0;
  }
  .sequence {
    order: 1;
    margin: 0;
  }
  .dataset {
    order: 2;
  }
  .training {
    order: 3;
    margin: 0;
  }
  .networkhead {
    padding: 12px 14px;
  }
  .card h2 {
    font-size: 20px;
  }
  .netlegend {
    padding: 10px 12px;
    font-size: 10px;
    gap: 14px;
  }
  .stageflag {
    font-size: 8px;
    top: 8px;
    left: 9px;
  }
  .stage {
    overflow-x: auto;
  }
  #graph {
    min-width: 540px;
  }
  #graph > svg {
    min-height: 214px;
  }
  .stagecode {
    display: none;
  }
  .stepinfo h3 {
    font-size: 19px;
  }
  .tabs button {
    font-size: 10px;
    gap: 3px;
  }
  .tabs button b {
    font-size: 8px;
  }
  .values {
    justify-content: space-between;
    gap: 5px;
  }
  .values .eq + .eq {
    padding-left: 8px;
  }
  .classlegend {
    justify-content: center;
  }
  .dataset {
    padding: 17px;
  }
  #plot svg {
    max-height: 220px;
  }
  .charts {
    grid-template-columns: 1fr;
  }
  .sectiontitle h2 {
    font-size: 27px;
  }
  .sectiontitle {
    margin-top: 28px;
  }
  .charts canvas,
  .charts svg {
    height: 190px;
  }
  .charts .card {
    padding: 15px;
  }
  footer {
    font-size: 8px;
  }
  .eq strong {
    font-size: 15px;
  }
  #notice {
    width: 90%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
