@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #243b34;
  --green: #173e37;
  --muted: #7e8981;
  --line: #e0e4dc;
  --paper: #f6f7f2;
  --orange: #d8794f;
  --mint: #dce9d7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px "DM Sans",
    system-ui,
    sans-serif;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
.rail {
  width: 228px;
  background: var(--green);
  position: fixed;
  inset: 0 auto 0 0;
  color: #eef2e7;
  padding: 37px 22px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand-mark {
  font: italic 54px Georgia;
  line-height: 1;
  width: 42px;
}
.brand strong {
  font:
    800 32px Manrope,
    sans-serif;
  letter-spacing: -1px;
}
.brand strong span {
  display: block;
  font:
    7px "DM Sans",
    sans-serif;
  letter-spacing: 1.1px;
  margin-top: 4px;
}
.rail-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #8caaa0;
  margin: 60px 14px 18px;
}
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  background: transparent;
  color: #a4bbb2;
  width: 100%;
  padding: 15px 14px;
  margin: 7px 0;
  border-radius: 7px;
  text-align: left;
  font-size: 12px;
}
.nav span {
  font-size: 20px;
}
.nav.active {
  background: #31544b;
  color: #fff;
}
.rail-bottom {
  position: absolute;
  bottom: 30px;
  left: 28px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #b6c7b9;
}
.small-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a8bc83;
  margin-right: 6px;
}
.rail-bottom div {
  font:
    12px "DM Sans",
    sans-serif;
  letter-spacing: 0;
  color: #dbe4d5;
  margin-top: 18px;
}
.rail-bottom p {
  letter-spacing: 0;
  font-size: 10px;
  color: #92a89d;
}
main {
  margin-left: 228px;
  padding: 0 40px;
  max-width: 1900px;
}
header {
  height: 85px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #899189;
}
.breadcrumb span {
  margin: 0 15px;
  color: #b9c0b6;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 11px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d7ded2;
  padding: 7px 10px;
  border-radius: 20px;
  font-size: 10px;
}
.pill i {
  width: 5px;
  height: 5px;
  background: #60856c;
  border-radius: 50%;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #8a987d;
  font-weight: 700;
}
h1 {
  font:
    600 clamp(25px, 2.45vw, 42px) Manrope,
    sans-serif;
  letter-spacing: -1.4px;
  margin: 9px 0 9px;
}
h1 span {
  color: var(--orange);
}
.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.outline,
.secondary,
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.outline {
  background: transparent;
  border: 1px solid #d6ddd0;
  color: var(--ink);
}
.secondary {
  background: #eaf0e3;
  color: #36533e;
  border: 1px solid #dce5d2;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: #2e5549;
}
.outline:hover {
  background: #e9eee2;
}
#ar {
  gap: 25px;
}
#ar:disabled {
  cursor: default;
}
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.stage-wrap {
  border: 1px solid #dbe2d3;
  border-radius: 10px;
  overflow: hidden;
  background: #e7ecdf;
  position: relative;
}
.stage-top {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.stage-pill {
  background: #f7f9f1d9;
  border: 1px solid #d7dfcf;
}
.stage-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #84937c;
}
#stage {
  height: 484px;
  position: relative;
  background: radial-gradient(
    ellipse at 50% 25%,
    #f0f3e8 0%,
    #e3e9d9 65%,
    #d5decc 100%
  );
}
#stage canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#camera {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#camera.active {
  display: block;
}
.stage-hint {
  position: absolute;
  z-index: 1;
  bottom: 21px;
  left: 22px;
  font-size: 8px;
  letter-spacing: 1.1px;
  color: #89957e;
  pointer-events: none;
}
.stage-hint span {
  padding: 0 8px;
}
.axis {
  position: absolute;
  bottom: 20px;
  right: 22px;
  font-size: 9px;
  line-height: 1.8;
  color: #9ba98e;
  pointer-events: none;
}
.stage-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #f2f5ebd9;
  border-top: 1px solid #dce3d4;
  min-height: 72px;
}
.stage-caption strong {
  font-size: 11px;
}
.stage-caption small {
  display: block;
  font-size: 9px;
  color: #8b9684;
  margin: 5px 0 0 16px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 9px;
}
.icon-btn {
  font-size: 10px;
  background: transparent;
  color: #77866e;
}
.controls {
  background: #fdfef9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.panel-title h2 {
  font:
    600 13px Manrope,
    sans-serif;
  margin: 0;
}
.panel-title > span {
  font-size: 8px;
  color: #a2aa9a;
  letter-spacing: 1px;
}
.field-label {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #8a9581;
  margin: 0 0 10px;
}
.segmented {
  display: flex;
  background: #eef1e8;
  border-radius: 6px;
  padding: 4px;
}
.segmented button {
  flex: 1;
  background: transparent;
  padding: 10px;
  color: #8c9682;
  border-radius: 4px;
  font-size: 11px;
}
.segmented .selected {
  background: #fff;
  color: var(--green);
  box-shadow: 0 1px 3px #243b3412;
}
.engine-note {
  margin-top: 11px;
  font-size: 9px;
  color: #8b967f;
}
.divider {
  height: 1px;
  background: #e7eadd;
  margin: 19px 0;
}
textarea {
  resize: vertical;
  width: 100%;
  min-height: 81px;
  border: 1px solid #e0e5d8;
  background: #f8faf3;
  border-radius: 5px;
  padding: 12px;
  color: #7f8b74;
  font-size: 10px;
  line-height: 1.7;
}
.controls > .secondary,
.controls > .primary {
  width: 100%;
  margin-top: 10px;
}
.or {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 7px;
  color: #a8b09f;
  margin: 16px 0 5px;
  white-space: nowrap;
}
.or span {
  height: 1px;
  background: #e4e9db;
  flex: 1;
}
.input-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.input-row > * {
  flex: 1;
  white-space: nowrap;
}
.controls .input-row > * {
  padding: 10px 4px;
  font-size: 9px;
}
.upload {
  cursor: pointer;
}
.upload input {
  display: none;
}
.helper {
  font-size: 10px;
  line-height: 1.6;
  color: #8d9885;
}
.room-row {
  display: flex;
  gap: 6px;
}
.room-row input {
  min-width: 0;
  width: 100%;
  background: #f8faf3;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 11px;
}
summary {
  cursor: pointer;
  font-size: 10px;
}
summary span {
  float: right;
  font-size: 9px;
  color: #a0aa95;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  margin-top: 18px;
}
.slider-label output {
  color: #a1aa95;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  height: 3px;
  margin: 15px 0 0;
}
#status {
  background: #f2f5eb;
  padding: 9px;
  border-radius: 5px;
  color: #718165;
  font-size: 9px;
  line-height: 1.6;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.3fr;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfef9;
  margin: 20px 0;
}
.telemetry > div {
  padding: 19px 22px;
  border-right: 1px solid #e8ebdf;
}
.telemetry > div:last-child {
  border: 0;
}
.telemetry span {
  display: block;
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #8b9682;
  white-space: nowrap;
}
.telemetry strong {
  display: block;
  font:
    600 27px Manrope,
    sans-serif;
  margin: 9px 0 4px;
  letter-spacing: -1px;
}
.telemetry strong small {
  font-size: 12px;
  color: #9aa48f;
  letter-spacing: 0;
}
.telemetry em {
  font-style: normal;
  font-size: 8px;
  color: #a6af9b;
}
.signal canvas {
  width: 100%;
  height: 43px;
  display: block;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}
.coefficient-panel,
.pipeline {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfef9;
}
.bottom-grid .panel-title {
  margin-bottom: 18px;
}
#coefficients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.coef-label {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #85927b;
}
.coef-label output {
  font-size: 8px;
  color: #9faa93;
}
.bar {
  height: 3px;
  background: #e9eee0;
  margin-top: 7px;
  border-radius: 3px;
}
.bar i {
  display: block;
  width: 0%;
  height: 3px;
  background: #87a076;
  border-radius: 3px;
}
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}
.pipeline-flow > span {
  font-size: 10px;
  font-weight: 600;
}
.pipeline-flow small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: #a4ae97;
  margin-top: 6px;
}
.pipeline-flow b {
  color: #c0cbb2;
  font-size: 12px;
}
.pipeline p {
  font-size: 9px;
  color: #9aa58e;
  line-height: 1.6;
}
.text-button {
  background: none;
  padding: 0;
  color: #58784b;
  font-size: 9px;
}
.hidden {
  display: none !important;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0;
  color: #a6b09b;
  font-size: 7px;
  letter-spacing: 0.7px;
}
footer b {
  padding: 0 8px;
}
.study-card {
  background: #fdfef9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 35px;
  max-width: 1000px;
  min-height: 500px;
}
.study-card h2 {
  font: 600 30px Manrope;
}
.study-card p {
  color: #839179;
  line-height: 1.8;
  max-width: 750px;
}
.study-card .input-row {
  max-width: 500px;
}
.rating-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
}
.rating-row select {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--ink);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 30px 0;
}
.about-grid h3 {
  font-size: 14px;
}
.about-grid p {
  font-size: 12px;
}
@media (min-width: 1600px) {
  #stage {
    height: 570px;
  }
  .controls {
    padding: 26px;
  }
  .divider {
    margin: 24px 0;
  }
}
@media (max-width: 1250px) {
  .rail {
    width: 190px;
    padding: 30px 15px;
  }
  main {
    margin-left: 190px;
    padding: 0 24px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .telemetry > div {
    padding: 17px 12px;
  }
  .stage-label {
    display: none;
  }
  .stage-caption {
    padding: 15px 12px;
  }
  .icon-btn {
    font-size: 8px;
  }
  .pipeline-flow small {
    font-size: 7px;
  }
}
@media (max-width: 1000px) {
  .rail {
    width: 72px;
    padding: 24px 12px;
  }
  .brand strong,
  .rail-label,
  .rail-bottom {
    display: none;
  }
  .nav {
    font-size: 0;
    padding: 12px;
    justify-content: center;
    margin-top: 22px;
  }
  .nav span {
    font-size: 24px;
  }
  .brand-mark {
    margin: auto;
  }
  main {
    margin-left: 72px;
    padding: 0 20px;
  }
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .intro h1 {
    font-size: 27px;
  }
  .telemetry {
    grid-template-columns: repeat(4, 1fr);
  }
  .telemetry .signal {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb {
    font-size: 7px;
  }
}
@media (max-width: 740px) {
  main {
    margin-left: 0;
    padding: 0 16px;
  }
  .rail {
    position: static;
    width: 100%;
    height: 65px;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 14px;
  }
  .brand-mark {
    font-size: 40px;
  }
  .nav {
    font-size: 10px;
    margin: 0;
    padding: 8px;
    width: auto;
  }
  .nav span {
    font-size: 17px;
  }
  .nav:last-of-type {
    display: none;
  }
  header {
    height: 55px;
  }
  .header-right {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .pill {
    font-size: 8px;
    padding: 6px;
  }
  .intro {
    padding: 25px 0;
  }
  .intro h1 {
    font-size: 24px;
    max-width: 270px;
  }
  .intro p {
    font-size: 10px;
    max-width: 220px;
  }
  .intro .outline {
    font-size: 9px;
    padding: 10px;
    gap: 8px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  #stage {
    height: 430px;
  }
  .telemetry {
    grid-template-columns: repeat(2, 1fr);
  }
  .telemetry > div {
    border-bottom: 1px solid var(--line);
  }
  .controls {
    padding: 20px;
  }
  .stage-caption small {
    font-size: 8px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .study-card {
    padding: 22px;
  }
  footer span:last-child {
    display: none;
  }
}
.stage-wrap {
  display: flex;
  flex-direction: column;
}
#stage {
  flex: 1;
  min-height: 484px;
}
.study-playing .segmented,
.study-playing .engine-note,
.study-playing .stage-caption small {
  visibility: hidden;
}
@media (max-width: 740px) {
  #stage {
    min-height: 430px;
  }
}
