* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #11181d;
  color: #e3ecec;
  font:
    13px/1.5 system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #2b373c;
  background: #141e23;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.logo {
  border: 1px solid #688e87;
  border-radius: 8px;
  padding: 11px;
  color: #a4e4ca;
  font-weight: 700;
}
h1 {
  font-size: 20px;
  margin: 0;
  letter-spacing: -0.5px;
}
h1 small {
  font: 11px monospace;
  color: #9ed8be;
  border: 1px solid #3b5b51;
  border-radius: 4px;
  padding: 3px 5px;
  margin-left: 7px;
}
.brand p {
  margin: 1px 0;
  color: #8fa3a9;
  font-size: 12px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
a {
  color: #a0b7bd;
  text-decoration: none;
}
a:hover {
  color: #c1f4da;
}
button {
  background: #233039;
  border: 1px solid #374950;
  color: #e0eaed;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
button:hover {
  background: #33454d;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a5e6c8;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button[aria-pressed="true"],
.primary {
  background: #aadfc7;
  border-color: #aadfc7;
  color: #142c25;
}
.row,
.segmented {
  display: flex;
  gap: 6px;
}
.row > * {
  flex: 1;
}
.segmented {
  margin: 14px 0;
}
.segmented button {
  flex: 1;
}
.eyebrow {
  font: 10px monospace;
  letter-spacing: 1.5px;
  color: #85a398;
  margin-bottom: 9px;
}
h2 {
  font-size: 17px;
  margin: 0 0 9px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  margin: 16px 0;
}
p {
  color: #8fa3aa;
  font-size: 12px;
  line-height: 1.65;
}
#notice {
  padding: 8px 28px;
  background: #19282a;
  color: #aad5c7;
  min-height: 36px;
  font-size: 12px;
}
main {
  display: grid;
  grid-template-columns: 278px minmax(300px, 1fr) 305px;
  height: calc(100dvh - 120px);
  min-height: 580px;
}
aside {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #3b5057 transparent;
  background: #141e23;
}
section section,
aside > section {
  padding: 23px 20px;
  border-bottom: 1px solid #2a393f;
}
.placement {
  border-right: 1px solid #2b3b42;
}
.editor {
  border-left: 1px solid #2b3b42;
}
label {
  display: block;
  color: #aabdc1;
  font-size: 12px;
  margin: 12px 0;
}
input:not([type="range"]):not([type="checkbox"]),
select,
textarea {
  background: #101a20;
  color: #e1edf0;
  border: 1px solid #344951;
  border-radius: 5px;
  padding: 7px;
  width: 100%;
  margin-top: 5px;
}
input[type="range"] {
  width: 100%;
  accent-color: #a4dfc5;
  margin: 9px 0 0;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: #a4dfc5;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
}
.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.control-head input[type="number"] {
  width: 78px;
  margin: 0;
  padding: 3px 6px;
  font: 12px monospace;
  text-align: right;
}
.control-label {
  margin-bottom: 13px;
}
.group-label {
  font: 10px monospace;
  letter-spacing: 1px;
  color: #729097;
  margin: 17px 0 7px;
}
#transforms .control-label {
  margin: 9px 0;
}
#transforms input[type="range"] {
  margin-top: 3px;
}
aside button:not(.row button):not(.segmented button):not(.finger-tabs button) {
  margin: 3px 0;
}
details {
  margin-top: 17px;
}
summary {
  cursor: pointer;
  color: #b2c9ce;
}
.viewport {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #26373e;
  flex-wrap: wrap;
}
.pill {
  font: 10px monospace;
  letter-spacing: 1px;
  color: #a4d9c3;
}
.views {
  display: flex;
  gap: 4px;
}
.views button {
  padding: 5px 8px;
  font-size: 11px;
}
.scene-wrap {
  position: relative;
  flex: 1;
  min-height: 300px;
  overflow: hidden;
}
#scene {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.corner,
.axis-key,
.view-help {
  position: absolute;
  pointer-events: none;
  color: #79949b;
  font: 10px monospace;
  letter-spacing: 1px;
}
.corner {
  top: 22px;
  left: 22px;
}
.corner span {
  color: #a5d8c4;
}
.axis-key {
  top: 22px;
  right: 22px;
}
.axis-key span:nth-child(1) {
  color: #ed9290;
}
.axis-key span:nth-child(2) {
  color: #9bcc9b;
}
.axis-key span:nth-child(3) {
  color: #8db7ef;
}
.view-help {
  bottom: 23px;
  left: 22px;
  line-height: 1.9;
  letter-spacing: 0;
  font-size: 11px;
}
.trigger-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-top: 1px solid #293c42;
  font: 10px monospace;
  color: #aac4ca;
}
.trigger-strip meter {
  flex: 1;
  min-width: 40px;
  accent-color: #a4dfc5;
}
.finger-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.finger-tabs button {
  font-size: 11px;
  padding: 7px 8px;
}
#preview {
  width: 100%;
  height: auto;
  background: #10181e;
  border: 1px solid #31454b;
  border-radius: 7px;
  margin-top: 14px;
  display: none;
}
#preview.active {
  display: block;
}
#presetName {
  margin-bottom: 9px;
}
@media (min-width: 1600px) {
  main {
    grid-template-columns: 300px minmax(300px, 1fr) 330px;
  }
}
@media (max-width: 1050px) {
  main {
    grid-template-columns: 245px minmax(280px, 1fr) 270px;
  }
  header {
    padding: 0 16px;
  }
  nav {
    gap: 10px;
  }
  aside > section {
    padding: 18px 14px;
  }
  .axis-key {
    display: none;
  }
}
@media (max-width: 820px) {
  header {
    height: auto;
    min-height: 100px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
  }
  main {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }
  .viewport {
    grid-column: 1/-1;
    grid-row: 1;
    height: 58dvh;
    min-height: 420px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #11181d;
  }
  .placement,
  .editor {
    overflow: visible;
  }
  .editor {
    border-left: 1px solid #2b3b42;
  }
  .toolbar {
    padding: 9px;
  }
  .views {
    flex-wrap: wrap;
  }
  .view-help {
    font-size: 10px;
  }
  .trigger-strip {
    padding: 10px;
    gap: 8px;
  }
  #notice {
    padding: 8px 15px;
  }
}
@media (max-width: 460px) {
  main {
    grid-template-columns: 1fr;
  }
  .editor {
    border-left: 0;
  }
  .viewport {
    height: 52dvh;
    min-height: 355px;
  }
  .scene-wrap {
    min-height: 200px;
  }
  .toolbar {
    gap: 5px;
  }
  .views button {
    padding: 4px 6px;
  }
  .placement {
    border-right: 0;
  }
  .corner {
    top: 12px;
    left: 12px;
  }
  .view-help {
    bottom: 10px;
    left: 12px;
  }
}
