* {
  box-sizing: border-box;
}
:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #293b36;
  background: #f4f3ed;
  font-size: 14px;
  color-scheme: light;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  background: #fffdf7;
  color: #30473e;
  border: 1px solid #cbd2c9;
  border-radius: 6px;
  padding: 8px 13px;
}
button:hover {
  background: #e9eee7;
}
button.active,
.primary {
  background: #345b4d;
  color: #fff;
  border-color: #345b4d;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: #345b4d;
  text-decoration: none;
  font-size: 12px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 25px;
  border-bottom: 1px solid #d9dfd5;
  gap: 15px;
  background: #fffdf7;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #6e8077;
}
h1 {
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 500;
  margin: 5px 0 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
select {
  border: 1px solid #cbd2c9;
  border-radius: 5px;
  padding: 6px;
  background: #fffdf7;
  color: #293b36;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  min-height: calc(100vh - 90px);
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 15px 20px 0;
  background: #eef0e9;
  z-index: 1;
}
nav button {
  font-size: 12px;
  padding: 7px 11px;
}
#viewport {
  position: relative;
  min-height: 410px;
  height: calc(100vh - 239px);
  background: #eef0e9;
  overflow: hidden;
}
#viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#loading {
  position: absolute;
  inset: 45% 0 auto;
  text-align: center;
  color: #486154;
}
.view-note {
  position: absolute;
  top: 18px;
  left: 23px;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #62796b;
  pointer-events: none;
}
.view-note span {
  display: block;
  letter-spacing: 0;
  margin-top: 6px;
  color: #7b887e;
}
.gestures {
  position: absolute;
  bottom: 13px;
  left: 23px;
  font-size: 11px;
  color: #708376;
  pointer-events: none;
}
#labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dim {
  position: absolute;
  font-size: 11px;
  white-space: nowrap;
  background: #fffdf4e8;
  padding: 3px 6px;
  border-radius: 3px;
  color: #3e5a49;
  transform: translate(-50%, -50%);
}
.selection {
  padding: 10px 20px;
  min-height: 38px;
  font-size: 12px;
  background: #e8ece3;
  color: #516756;
}
.selection-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 20px;
  background: #e8ece3;
}
.selection-row .selection {
  flex: 1;
}
#show-hidden {
  font-size: 12px;
  white-space: nowrap;
}
#part-menu {
  position: fixed;
  z-index: 10;
  max-width: min(360px, calc(100vw - 16px));
  padding: 5px;
  border: 1px solid #cbd2c9;
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 6px 24px #293b3630;
}
#part-menu button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
}
#part-menu button[hidden] {
  display: none;
}
.layerbar {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 17px;
  padding: 15px 20px;
  font-size: 12px;
}
.layerbar label {
  display: flex;
  align-items: center;
  gap: 5px;
}
input[type="checkbox"] {
  accent-color: #345b4d;
}
aside {
  padding: 22px 21px;
  background: #fffdf7;
  border-left: 1px solid #d9dfd5;
}
h2 {
  font-weight: 500;
  font-size: 16px;
  margin: 0;
}
#model-status {
  font-size: 12px;
  color: #6e7c70;
}
.section-title {
  margin-top: 22px;
  font-size: 14px;
}
dl {
  margin: 12px 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  font-size: 12px;
}
dt {
  color: #647668;
}
dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
details {
  border-top: 1px solid #d9dfd5;
  padding-top: 14px;
  font-size: 12px;
}
summary {
  cursor: pointer;
}
ul {
  padding-left: 16px;
  line-height: 1.6;
  color: #66776b;
}
li {
  margin-bottom: 10px;
}
.footnote {
  font-size: 11px;
  line-height: 1.6;
  color: #7a8277;
  margin-top: 18px;
}
@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
  }
  aside {
    border-left: 0;
    border-top: 1px solid #d9dfd5;
  }
  #viewport {
    height: 480px;
  }
  .header-actions {
    gap: 9px;
  }
  header {
    padding: 15px;
  }
  h1 {
    font-size: 20px;
  }
}
@media (max-width: 460px) {
  nav {
    padding-left: 12px;
    gap: 4px;
  }
  nav button {
    padding: 7px;
  }
  #viewport {
    height: 420px;
  }
}
