* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  font:
    16px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: #26302d;
  background: #f4f5f2;
}
button,
input,
textarea {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
}
button:hover {
  background: #ecf0eb;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #217d73;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.32;
  cursor: default;
}
button svg,
i svg {
  width: 18px;
  height: 18px;
  display: block;
}
i {
  display: inline-flex;
  font-style: normal;
}
header {
  height: 62px;
  background: #232b29;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
}
.brand {
  font-weight: 720;
  font-size: 26px;
  letter-spacing: -1.4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand svg {
  width: 32px;
  height: 32px;
  color: #e0f384;
}
.headerRule {
  height: 24px;
  width: 1px;
  background: #505957;
}
.product {
  color: #d0d5d2;
  font-size: 14px;
}
.headActions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
#saved {
  color: #c5cec7;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.headButton {
  color: white;
  width: 34px;
  height: 34px;
  border: 1px solid #57615a;
}
.headButton:hover {
  background: #465049;
}
main {
  padding: 0 26px 22px;
  max-width: 2400px;
  margin: auto;
}
.titleRow {
  min-height: 103px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.crumb {
  font-size: 13px;
  color: #63716a;
  display: flex;
  align-items: center;
  gap: 9px;
}
.crumb span {
  color: #9ba29e;
}
h1 {
  font-size: clamp(21px, 2.3vw, 33px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
#rename {
  color: #78817b;
  padding: 6px;
}
#rename svg {
  width: 15px;
}
.primary {
  background: #dced88;
  border: 1px solid #b6c66a;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 650;
}
.primary:hover {
  background: #d0e479;
}
.editor {
  height: calc(100dvh - 187px);
  min-height: 510px;
  border: 1px solid #c7cec7;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: clamp(225px, 20vw, 295px) 1fr;
  background: white;
  box-shadow: 0 2px 4px #17261708;
}
aside {
  border-right: 1px solid #cdd3cd;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.asideHead,
.sectionTitle {
  display: flex;
  align-items: center;
  gap: 9px;
}
.asideHead {
  height: 58px;
  flex-shrink: 0;
  padding: 0 18px;
  border-bottom: 1px solid #dbe0db;
}
h2 {
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.3px;
}
.counter,
.type {
  font:
    12px ui-monospace,
    monospace;
  border-radius: 5px;
  padding: 3px 7px;
  background: #edf0eb;
  color: #657067;
}
.asideHead button,
.sectionTitle i {
  margin-left: auto;
  padding: 5px;
}
.list {
  padding: 12px 10px;
  flex: 1;
  min-height: 150px;
}
.group {
  color: #68756b;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 650;
  margin: 10px 9px;
  text-transform: uppercase;
}
.group:not(:first-child) {
  margin-top: 24px;
}
.obj {
  width: 100%;
  justify-content: flex-start;
  min-height: 36px;
  padding: 5px 9px;
  margin: 1px 0;
  font-size: 14px;
  text-align: left;
  border: 1px solid transparent;
}
.obj span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.obj.active {
  background: #eff3e3;
  border-color: #d7dfc5;
}
.swatch {
  width: 13px;
  height: 13px;
  border: 1.3px solid #555e5677;
  border-radius: 3px;
  flex: none;
}
.index {
  font:
    12px ui-monospace,
    monospace;
  color: #718076;
  margin-left: auto;
}
.properties {
  border-top: 1px solid #dbe0db;
  padding: 17px 18px;
}
.sectionTitle {
  margin-bottom: 14px;
}
.sectionTitle i {
  color: #768078;
}
.field {
  display: block;
  font-size: 13px;
  color: #5a665d;
  margin: 12px 0 4px;
}
.field input,
.field textarea,
.modalField {
  display: block;
  margin-top: 6px;
  border: 1px solid #cbd3ca;
  background: #fafbf9;
  border-radius: 5px;
  width: 100%;
  padding: 8px;
  color: #28352b;
  font-size: 14px;
}
.stats {
  display: flex;
  gap: 18px;
  margin: 13px 0;
  color: #5e6a62;
  font-size: 12px;
}
.stats strong {
  display: block;
  font:
    15px ui-monospace,
    monospace;
  color: #29342c;
  margin-top: 4px;
}
.colors {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}
.color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #838b8366;
}
.color.chosen {
  outline: 1.5px solid #364338;
  outline-offset: 2px;
}
.delete {
  font-size: 13px;
  color: #805c54;
  padding: 5px 0;
}
.muted {
  color: #657167;
  font-size: 14px;
  line-height: 1.5;
}
.drawing {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  gap: 3px;
  border-bottom: 1px solid #cfd5cf;
}
#modes,
.history {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav button {
  font-size: 14px;
  padding: 8px 10px;
  min-height: 35px;
}
.mode.active {
  background: #29342e;
  color: white;
}
.history {
  border-left: 1px solid #dce0da;
  padding-left: 7px;
}
.board {
  position: relative;
  overflow: hidden;
  background: #f7f8f4;
  flex: 1;
  min-height: 0;
}
.board > svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: 0;
}
.sheet,
.zoom {
  background: #fff;
  border: 1px solid #cdd4cb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  position: absolute;
}
.sheet {
  top: 15px;
  left: 15px;
  gap: 7px;
  padding: 7px 10px;
  font-size: 12px;
  color: #55635a;
  pointer-events: none;
}
.sheet svg {
  width: 15px;
  height: 15px;
}
.zoom {
  bottom: 15px;
  right: 15px;
  padding: 3px;
  box-shadow: 0 2px 5px #2833280b;
}
.zoom button {
  padding: 5px;
}
.zoom span {
  font:
    12px ui-monospace,
    monospace;
  min-width: 38px;
  text-align: center;
}
.zoom b {
  height: 17px;
  width: 1px;
  background: #d8dfd5;
  margin: 0 3px;
}
.scale {
  position: absolute;
  bottom: 17px;
  left: 18px;
  border: solid #536156;
  border-width: 0 1px 2px;
  text-align: center;
  color: #4b594f;
  height: 7px;
  font:
    12px ui-monospace,
    monospace;
  line-height: 0;
  text-indent: 0;
  pointer-events: none;
}
.scale span {
  position: relative;
  top: -8px;
}
.status {
  height: 34px;
  flex: none;
  border-top: 1px solid #cdd4ca;
  background: #fbfcfa;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 13px;
  font-size: 12px;
  color: #606d62;
}
.status > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #76925c;
}
#snap {
  font-size: 12px;
  padding: 3px;
}
#xy {
  margin-left: auto;
  font:
    12px ui-monospace,
    monospace;
}
#hint {
  position: absolute;
  bottom: 61px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  background: #28332e;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  padding: 7px 12px;
  width: max-content;
  max-width: 90%;
}
#hint:empty,
#toast:empty {
  display: none;
}
dialog {
  width: min(400px, 92vw);
  color: #29352d;
  border: 1px solid #c4cbc2;
  border-radius: 12px;
  box-shadow: 0 14px 55px #15251b36;
  padding: 22px;
}
dialog::backdrop {
  background: #21332948;
}
.dialogTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialogTitle h2 {
  font-size: 20px;
}
.dialogTitle button {
  font-size: 24px;
}
.option {
  display: flex;
  width: 100%;
  border: 1px solid #d4dacd;
  margin: 8px 0;
  justify-content: flex-start;
  padding: 12px;
  font-size: 14px;
}
.option small {
  margin-left: auto;
  color: #6b766c;
}
.modalField {
  margin: 8px 0 15px;
}
.dialogText {
  line-height: 1.5;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #28332e;
  color: white;
  padding: 10px 15px;
  border-radius: 7px;
  font-size: 14px;
  z-index: 3;
}
@media (max-width: 960px) {
  main {
    padding: 0 12px 12px;
  }
  header {
    padding: 0 17px;
  }
  .editor {
    grid-template-columns: 205px 1fr;
  }
  nav {
    padding: 6px;
  }
  nav button {
    padding: 7px;
  }
  .mode span {
    display: none;
  }
  .properties {
    padding: 12px;
  }
  .titleRow {
    min-height: 90px;
  }
  .editor {
    height: calc(100dvh - 166px);
  }
}
@media (max-width: 650px) {
  header {
    height: 50px;
  }
  .brand {
    font-size: 22px;
  }
  .headerRule,
  .product,
  #saved span {
    display: none;
  }
  .titleRow {
    min-height: 85px;
  }
  .primary {
    padding: 9px;
  }
  .editor {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: 0;
  }
  .drawing {
    height: 58dvh;
    min-height: 340px;
  }
  .editor aside {
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #cdd3cd;
    border-right: none;
  }
  .asideHead {
    grid-column: 1;
    height: 43px;
  }
  .list {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    padding: 2px 5px;
  }
  .properties {
    grid-column: 2;
    grid-row: 1/3;
    border: none;
    border-left: 1px solid #dbe0db;
  }
  .index {
    display: none;
  }
  #xy {
    display: none;
  }
  .sheet {
    top: 7px;
    left: 7px;
  }
  .zoom {
    right: 7px;
    bottom: 8px;
  }
  h1 {
    gap: 3px;
  }
  .crumb {
    font-size: 12px;
  }
}
#saved svg {
  width: 19px;
  height: 19px;
  flex: none;
}
#saved {
  white-space: nowrap;
}
.sheet:has(a) {
  pointer-events: auto;
  gap: 4px;
  padding: 4px 6px;
}
.sheet a {
  padding: 5px 7px;
  color: #4f6155;
  text-decoration: none;
  border-radius: 3px;
}
.sheet a[aria-current] {
  background: #e5ecdc;
  color: #28382b;
  font-weight: 600;
}
@media (min-width: 651px) {
  .list {
    overflow: auto;
    min-height: 70px;
  }
  .properties {
    flex: none;
  }
}
.rotation-field span {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.rotation-field input {
  margin: 0;
  width: 6em;
  text-align: center;
}
.rotation-field button {
  border: 1px solid #ccd4c9;
  padding: 7px 10px;
  font-size: 17px;
}
#dimensions {
  padding: 2px 6px;
  font-size: 12px;
}
#dimensions[aria-pressed="true"] {
  background: #e6eddf;
  color: #345541;
}
@media (min-width: 651px) {
  .properties {
    max-height: 57%;
    overflow: auto;
  }
}
.side-lengths {
  font-size: 13px;
  color: #48604e;
  margin: 10px 0;
}
.side-lengths summary {
  cursor: pointer;
}
.side-lengths ol {
  max-height: 110px;
  overflow: auto;
  padding-left: 28px;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
}
.obj small {
  white-space: nowrap;
}
.lockButton {
  width: 100%;
  border: 1px solid #cbd4c8;
  padding: 6px 8px;
  margin-top: 4px;
  font-size: 13px;
}
.lockButton[aria-pressed="true"] {
  background: #edf2e8;
}
.index {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.index svg {
  width: 12px;
  height: 12px;
}

.object-description {
  white-space: pre-line;
}
