@font-face {
  font-family: DM;
  src: url(vendor/dm-sans.ttf);
}
@font-face {
  font-family: DM;
  src: url(vendor/dm-sans-600.ttf);
  font-weight: 600 900;
}
@font-face {
  font-family: Plex;
  src: url(vendor/plex-mono.ttf);
}
:root {
  --ink: #1d3234;
  --muted: #637477;
  --line: #d7e0df;
  --accent: #007e70;
  --pale: #e0f1ed;
  --mono: Plex, ui-monospace, monospace;
  --side: 250px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px DM,
    system-ui,
    sans-serif;
  color: var(--ink);
  height: 100dvh;
  min-height: 530px;
  display: flex;
  flex-direction: column;
  background: #f8fbfa;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  white-space: nowrap;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #169d8c;
  outline-offset: 2px;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
button:not(:disabled):hover {
  background-color: #e7f0ed;
}
.ic,
[data-icon] {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.top {
  height: 59px;
  min-height: 59px;
  background: #132b2d;
  color: #edf7f5;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 27px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 31px;
}
.brand b {
  font-size: 25px;
  letter-spacing: -1.2px;
  line-height: 1;
}
.brand span {
  font: 11px var(--mono);
  letter-spacing: 1px;
  border: 1px solid #466360;
  color: #b8d5d0;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 2px;
}
.crumb {
  border-left: 1px solid #385052;
  padding-left: 23px;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
  color: #a8bcb9;
}
.crumb .ic {
  width: 15px;
}
.crumb [data-icon='right'] .ic {
  width: 12px;
  opacity: 0.65;
}
.crumb button {
  color: #b5c9c5;
  padding: 4px 0;
}
.crumb strong {
  font-weight: 500;
  color: #e9f3f0;
}
.headerRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 23px;
}
#saveState {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #bdd0cb;
}
#saveState .ic {
  color: #80c3af;
}
.primary {
  background: #8ae3c7;
  color: #123c34;
  border: 1px solid #8ae3c7;
  border-radius: 5px;
  font-weight: 650;
  padding: 8px 13px;
  font-size: 13px;
}
.primary:not(:disabled):hover {
  background: #a1f1d7;
}
.top .crumb button:hover {
  background: transparent;
  color: #fff;
}
.modebar {
  display: flex;
  align-items: center;
  min-height: 48px;
  height: 48px;
  justify-content: space-between;
  background: white;
  border-bottom: 1px solid #cdd9d6;
  padding: 0 19px;
  gap: 4px;
}
#modes {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
#modes button {
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  padding: 0 19px;
  border-bottom: 3px solid transparent;
  padding-top: 3px;
  color: #637174;
}
#modes button.active {
  color: #007d6c;
  border-bottom-color: #008a76;
  background: linear-gradient(0deg, #edf7f2, transparent 80%);
}
.history {
  display: flex;
  gap: 4px;
}
.iconBtn {
  width: 31px;
  height: 31px;
  border-radius: 4px;
  color: #566868;
}
.iconBtn.small {
  width: 27px;
  height: 27px;
}
.mobileTree {
  display: none;
}
.workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
aside {
  width: var(--side);
  flex-shrink: 0;
  border-right: 1px solid #cbd7d4;
  background: #fcfdfc;
  display: flex;
  flex-direction: column;
  overflow: auto;
  z-index: 6;
}
.sideHead {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.sideHead .iconBtn {
  border: 1px solid #d4dedd;
  background: white;
}
#tree {
  padding: 17px 11px 19px;
}
.micro,
.docMeta,
.sectionCaption {
  font: 10.5px var(--mono);
  font-weight: 500;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  color: #6a7d7b;
}
.sectionCaption {
  margin: 0 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sectionCaption small {
  background: #edf2f0;
  color: #667c77;
  border-radius: 3px;
  padding: 1px 5px;
  font: 10.5px var(--mono);
}
.rootRow,
.partRow {
  display: flex;
  align-items: center;
  min-height: 33px;
  border-radius: 4px;
  position: relative;
  gap: 4px;
}
.rootRow.active,
.partRow.active {
  background: #dcefe8;
  color: #096a59;
}
.rootRow {
  font-weight: 650;
}
.rootRow .rootSelect {
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
  flex: 1;
  padding: 6px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rootRow .collapse {
  width: 15px;
  padding: 0;
  margin-left: 4px;
}
.rootRow .collapse .ic {
  width: 13px;
}
.rows {
  margin: 5px 0 0 17px;
  border-left: 1px solid #cedbd6;
  padding-left: 10px;
}
.partRow:before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 9px;
  border-top: 1px solid #cedbd6;
}
.partRow .partSelect {
  justify-content: flex-start;
  min-width: 0;
  flex: 1;
  gap: 9px;
  font-size: 13px;
  padding: 6px 1px 6px 4px;
}
.partSelect span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.partRow .eye {
  padding: 4px;
  color: #81928e;
}
.partRow .eye .ic {
  width: 14px;
}
.partRow.off .partSelect {
  opacity: 0.5;
}
.swatchCube {
  width: 16px;
  height: 17px;
  flex-shrink: 0;
}
#props {
  border-top: 1px solid var(--line);
  padding: 0 17px 18px;
}
#props h2 {
  margin: 18px 0 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
.propTitle {
  font-weight: 600;
  font-size: 14px;
  margin: 5px 0 9px;
}
.propLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  font-size: 12.5px;
}
.propLine span:first-child {
  color: var(--muted);
}
.propLine b {
  font-size: 11.5px;
  font-family: var(--mono);
  font-weight: 400;
  text-align: right;
}
.propLine .material {
  font: 12px DM;
}
.propLine .material:before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sw, #748783);
  vertical-align: 0;
  margin-right: 5px;
}
.propertyGroup {
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.axisDims {
  display: flex;
  gap: 5px;
  margin: 10px 0 0;
}
.axisDims > div {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #f5f8f6;
  border-radius: 4px;
  padding: 6px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font: 11px var(--mono);
}
.axisDims b {
  color: var(--muted);
  font-weight: 400;
}
.propEdit {
  margin-top: 12px;
  justify-content: flex-start;
  color: var(--accent);
  font-size: 12px;
  padding: 4px 0;
}
#projectBottom {
  justify-content: flex-start;
  width: 100%;
  min-height: 41px;
  border-top: 1px solid var(--line);
  padding: 0 17px;
  margin-top: auto;
  font-size: 12.5px;
  color: #50635e;
}
#projectBottom .ic:last-child {
  margin-left: auto;
  width: 13px;
}
main {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.toolbar {
  height: 52px;
  min-height: 52px;
  background: #fcfdfc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tool {
  gap: 6px;
  font-size: 12.5px;
  height: 30px;
  padding: 0 9px;
  border-radius: 4px;
}
.tool.active,
.floatTools .active {
  background: #e1f1e9;
  color: #087663;
}
.tool.active {
  box-shadow: inset 0 0 0 1px #bcddcf;
}
.separator {
  height: 20px;
  width: 1px;
  background: var(--line);
  margin: 0 5px;
  flex-shrink: 0;
}
.toolbar .end {
  margin-left: auto;
}
.toolbar .end .ic:last-child {
  width: 12px;
}
#viewport {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 160px;
  overflow: hidden;
  background-color: #f1f6f3;
  background-image:
    linear-gradient(90deg, #bdcfc842 1px, transparent 1px),
    linear-gradient(#bdcfc842 1px, transparent 1px),
    linear-gradient(90deg, #c4d5ce38 1px, transparent 1px),
    linear-gradient(#c4d5ce38 1px, transparent 1px);
  background-size:
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
  background-position: center;
}
#viewport.noGrid {
  background-image: none;
}
#scene,
#sheet,
#annotations {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
}
#sheet {
  touch-action: none;
  display: none;
}
#annotations {
  pointer-events: none;
}
.viewTitle {
  position: absolute;
  left: 27px;
  top: 23px;
  pointer-events: none;
}
.viewTitle h1 {
  font-size: clamp(23px, 2.3vw, 34px);
  letter-spacing: -1.4px;
  font-weight: 650;
  line-height: 1.1;
  margin: 7px 0 9px;
}
.docMeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #5a7067;
}
.metaLine {
  width: 14px;
  height: 1px;
  background: #96aaa0;
}
.viewBtn {
  font-size: 12px;
  color: #556b62;
  pointer-events: auto;
  gap: 5px;
  padding: 3px 0;
}
.viewBtn .ic {
  width: 14px;
}
.viewBtn .ic:last-child {
  width: 11px;
}
#orientation {
  position: absolute;
  right: 22px;
  top: 16px;
  width: 84px;
  height: 84px;
}
#orientation svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cubeFace {
  cursor: pointer;
  transition: filter 0.15s;
}
.cubeFace:hover {
  filter: brightness(0.92);
}
.triad {
  position: absolute;
  left: 24px;
  bottom: 16px;
  width: 64px;
  height: 57px;
}
.triad svg {
  width: 100%;
  height: 100%;
}
.floatTools {
  position: absolute;
  bottom: 19px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: #fffffff2;
  border: 1px solid #ccd8d1;
  box-shadow: 0 2px 6px #2a443b0e;
  border-radius: 7px;
}
.floatTools button {
  padding: 0 7px;
  height: 29px;
  border-radius: 4px;
  color: #4f665c;
}
.floatTools .separator {
  margin: 0 3px;
  height: 17px;
}
.floatTools .pct {
  font: 11px var(--mono);
  min-width: 39px;
  padding: 0 1px;
}
.scale {
  position: absolute;
  right: 25px;
  bottom: 21px;
  text-align: center;
  font: 10px var(--mono);
  color: #5f746b;
}
.scale i {
  display: block;
  width: 60px;
  height: 5px;
  border: 1px solid #788f83;
  border-top: 0;
  margin: 2px auto 0;
}
#drawHint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid #bcd6ca;
  border-radius: 4px;
  background: #f8fffb;
  color: #326454;
  pointer-events: none;
}
#timeline {
  background: #fcfdfc;
  border-top: 1px solid #cbd7d1;
  flex-shrink: 0;
}
.timeHead {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.timeHead strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.timeHead .clipSelect {
  font-size: 12px;
  color: #62716b;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 0 0 0 12px;
  gap: 7px;
}
.clipSelect .ic {
  width: 12px;
}
.timeHead .keyAdd {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #576b61;
}
.keyAdd .ic {
  width: 15px;
}
.timeTrack {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 10px 21px 11px 18px;
  height: 65px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
}
.transport button {
  width: 25px;
  height: 27px;
  padding: 0;
}
.transport .play {
  background: #087d6a;
  color: white;
  border-radius: 4px;
  width: 31px;
  height: 29px;
  margin: 0 4px;
}
.transport .play:hover {
  background: #0c675a;
}
.transport .play .ic {
  width: 15px;
}
.duration {
  font: 10.5px var(--mono);
  color: #74837c;
  margin-left: 6px;
  white-space: nowrap;
}
.duration b {
  color: #1e4b3f;
  font-weight: 500;
}
.rail {
  position: relative;
  height: 42px;
  flex: 1;
  cursor: pointer;
  user-select: none;
  touch-action: none;
}
.ticks {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font: 9px var(--mono);
  color: #7a8a81;
  line-height: 1;
  height: 13px;
}
.trackFill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 18px;
  border: 1px solid #a4cfc0;
  border-radius: 3px;
  background: repeating-linear-gradient(-45deg, #d7eee3 0 4px, #d0e8dd 4px 5px);
}
.keyMark {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #fafdfb;
  border: 1px solid #26866a;
}
.cursor {
  position: absolute;
  width: 2px;
  background: #138569;
  top: 3px;
  bottom: 0;
  pointer-events: none;
}
.cursor:before {
  content: '';
  position: absolute;
  top: -2px;
  left: -3px;
  width: 8px;
  height: 9px;
  background: #138569;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
}
footer {
  height: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #cbd8d1;
  background: #eaf1ed;
  color: #526a5e;
  padding: 0 15px;
  font-size: 11px;
}
.status,
.footRight {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status i {
  width: 6px;
  height: 6px;
  background: #269472;
  border-radius: 50%;
}
.footSep {
  width: 1px;
  height: 12px;
  background: #c3d2c9;
}
.footRight {
  margin-left: auto;
  gap: 15px;
}
.footRight button {
  font-size: 11px;
  padding: 2px;
  color: inherit;
}
.footRight button .ic {
  width: 13px;
  height: 13px;
}
.footRight b {
  font: 10px var(--mono);
  margin-left: 4px;
}
dialog {
  padding: 0;
  width: min(410px, calc(100vw - 30px));
  border: 1px solid #bbcfc3;
  border-radius: 10px;
  color: var(--ink);
  box-shadow: 0 22px 90px #0d292f38;
  max-height: 85dvh;
}
dialog::backdrop {
  background: #112b2d52;
  backdrop-filter: blur(2px);
}
#dialogBody {
  padding: 21px;
}
.dialogHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.dialogHead h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  margin: 12px 0;
}
.field input,
.field select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #c7d7ce;
  background: #f9fbfa;
  border-radius: 4px;
}
.field input[type='color'] {
  height: 36px;
  padding: 3px;
}
.formRow {
  display: flex;
  gap: 9px;
}
.formRow > * {
  flex: 1;
  min-width: 0;
}
.dialogFoot {
  display: flex;
  justify-content: flex-end;
  margin-top: 17px;
  gap: 8px;
}
.outline,
.menuChoice {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 5px;
}
.menuChoice {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 5px;
  text-align: left;
}
.menuChoice span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menuChoice small,
dialog p {
  font-size: 12px;
  color: #63766b;
}
.menuChoice .ic:last-child:not(:first-child) {
  margin-left: auto;
  width: 14px;
}
.sheetFoot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 42px;
  font-size: 12px;
  color: var(--muted);
}
.sheetFoot strong {
  font-weight: 600;
  color: var(--ink);
}
.sheetFoot button {
  margin-left: auto;
  color: var(--accent);
}
#toasts {
  position: fixed;
  right: 17px;
  bottom: 42px;
  z-index: 30;
  background: #163d32;
  color: white;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
  box-shadow: 0 6px 25px #163d3226;
  display: none;
}
.library {
  display: grid;
  gap: 5px;
}
.library button {
  justify-content: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 7px;
  background: white;
  border-radius: 4px;
  font-size: 13px;
}
.library svg {
  width: 25px;
  height: 18px;
  color: #397c64;
}
.emptyNote {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
}
.danger {
  color: #a43b33;
}
.shortNames {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screenOnly {
  pointer-events: none;
}
@media (min-width: 1550px) {
  :root {
    --side: 276px;
  }
  .partRow {
    min-height: 37px;
  }
  .viewTitle {
    left: 36px;
    top: 29px;
  }
  .toolbar {
    gap: 9px;
  }
}
@media (max-width: 1100px) {
  :root {
    --side: 215px;
  }
  #modes button {
    padding: 0 14px;
  }
  .toolbar {
    padding: 0 9px;
    gap: 2px;
  }
  .tool {
    font-size: 12px;
    padding: 0 7px;
  }
  .duration {
    display: none;
  }
  .headerRight {
    gap: 12px;
  }
  .viewTitle {
    left: 20px;
    top: 17px;
  }
  .tool .ic {
    width: 15px;
  }
  .partRow .partSelect {
    gap: 6px;
  }
}
@media (max-height: 740px) and (min-width: 761px) {
  .partRow {
    min-height: 28px;
  }
  .sideHead {
    min-height: 46px;
  }
  #tree {
    padding: 12px 10px;
  }
  .propertyGroup {
    margin-top: 12px;
    padding-top: 10px;
  }
  .propLine {
    margin: 9px 0;
  }
  #props h2 {
    margin: 12px 0;
  }
  .timeTrack {
    height: 57px;
  }
  .timeHead {
    height: 37px;
  }
}
@media (max-width: 820px) {
  #saveState span,
  .crumb > span:first-child {
    display: none;
  }
  .crumb {
    padding-left: 12px;
    gap: 5px;
  }
  .top {
    gap: 14px;
    padding: 0 13px;
  }
  .modebar {
    padding: 0 6px;
  }
  #modes button {
    font-size: 12px;
    padding: 0 10px;
  }
  .toolbar .tool span.optional {
    display: none;
  }
  .tool .ic {
    width: 16px;
  }
  .scale {
    display: none;
  }
}
@media (max-width: 680px) {
  .top {
    height: 51px;
    min-height: 51px;
  }
  .brand b {
    font-size: 21px;
  }
  .brand img {
    width: 26px;
  }
  .crumb,
  #saveState,
  .history {
    display: none;
  }
  .primary {
    padding: 6px 9px;
  }
  .mobileTree {
    display: flex;
    flex-shrink: 0;
  }
  .modebar {
    height: 43px;
    min-height: 43px;
    justify-content: flex-start;
  }
  #modes button {
    padding: 0 9px;
  }
  #modes button .ic {
    display: none;
  }
  .workspace {
    position: relative;
  }
  aside {
    display: none;
    position: absolute;
    inset: 0 auto 0 0;
    width: 240px;
    box-shadow: 5px 0 20px #1c352c25;
  }
  aside.open {
    display: flex;
  }
  .toolbar {
    height: 43px;
    min-height: 43px;
    padding: 0 6px;
    gap: 0;
  }
  .tool {
    padding: 0 6px;
    font-size: 11px;
  }
  .tool.minimal span {
    display: none;
  }
  .separator {
    margin: 0 2px;
  }
  .viewTitle {
    left: 15px;
    top: 16px;
  }
  .viewTitle h1 {
    font-size: 24px;
  }
  .docMeta {
    font-size: 9px;
  }
  #orientation {
    width: 59px;
    height: 59px;
    right: 10px;
    top: 13px;
  }
  .floatTools {
    bottom: 12px;
  }
  .triad {
    bottom: 11px;
    left: 10px;
    width: 43px;
    height: 43px;
  }
  .timeHead {
    height: 39px;
    padding: 0 10px;
    gap: 7px;
  }
  .timeHead .keyAdd {
    font-size: 0;
    gap: 0;
  }
  .timeTrack {
    gap: 10px;
    padding: 8px 12px;
    height: 55px;
  }
  .timeHead .clipSelect {
    font-size: 11px;
  }
  .timeHead strong {
    font-size: 13px;
  }
  .timeHead .clipSelect {
    padding-left: 7px;
  }
  footer {
    padding: 0 9px;
    gap: 7px;
  }
  #drawHint {
    top: 87px;
    max-width: 90%;
    width: max-content;
  }
  #projectBottom {
    min-height: 36px;
  }
}
