body {
  margin: 0;
  background: #f5f3eb;
  color: #182c28;
  font-family: "DM Sans", Arial, sans-serif;
}
main.studio-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 48px) clamp(14px, 4vw, 56px) 55px;
}
.title-row,
.scene-title,
.toolbar,
.pair,
.modes {
  display: flex;
  align-items: center;
  gap: 10px;
}
.title-row,
.scene-title,
.toolbar {
  justify-content: space-between;
}
.title-row {
  margin: 0 0 24px;
}
.title-row h1 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.065em;
  line-height: 1;
  margin: 0 0 8px;
}
.studio-main p {
  margin: 0;
}
.title-row p {
  color: #475c51;
}
.studio-main a.action,
.studio-main button,
.upload,
.small-upload {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #a9b5aa;
  border-radius: 6px;
  padding: 9px 13px;
  color: #19382d;
  background: #fffef7;
}
.studio-main button:hover,
.small-upload:hover {
  border-color: #005c48;
  background: #e8efdf;
}
.studio-main button:disabled {
  opacity: 0.45;
  cursor: default;
}
.studio-main .action,
.studio-main button[aria-pressed="true"],
.studio-main .upload {
  background: #006d59;
  color: white;
  border-color: #006d59;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
  gap: 18px;
  align-items: start;
}
.scene,
.workbench aside {
  border: 1px solid #abb8ae;
  border-radius: 12px;
  overflow: hidden;
  background: #fffef8;
}
.scene-title {
  padding: 13px 18px;
  font: 700 13px/1.2 monospace;
}
.scene-title span:last-child {
  color: #56685e;
  font-weight: 400;
}
.scene-title i {
  display: inline-block;
  background: #007b61;
  width: 8px;
  height: 8px;
  margin-right: 7px;
}
.scene canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  cursor: crosshair;
  touch-action: manipulation;
  background: #c3d5c4;
}
.toolbar {
  padding: 14px 16px 8px;
  flex-wrap: wrap;
}
.toolbar label {
  font-size: 13px;
}
.scene #status {
  min-height: 1.5em;
  padding: 4px 16px 15px;
  font-size: 14px;
  color: #37574b;
}
.workbench aside {
  padding: 19px;
  display: grid;
  gap: 12px;
}
.studio-main h2 {
  font-size: 21px;
  letter-spacing: -0.045em;
  margin: 0;
}
.workbench aside label:not(.upload, .small-upload) {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.workbench aside select,
.workbench aside input[type="number"] {
  width: 100%;
  border: 1px solid #aeb9b0;
  background: white;
  color: #20372b;
  padding: 9px;
  border-radius: 5px;
  font: inherit;
}
.studio-main input[type="range"] {
  display: block;
  width: 100%;
  accent-color: #006d59;
}
.studio-main output {
  float: right;
  color: #52665b;
}
.upload,
.small-upload {
  display: block;
  text-align: center;
  position: relative;
}
.studio-main input[type="file"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  cursor: pointer;
}
.studio-main :focus-visible,
.studio-main label:focus-within {
  outline: 3px solid #ee825e;
  outline-offset: 2px;
}
.workbench aside .pair > * {
  flex: 1;
  min-width: 0;
}
.studio-main #furniture-controls {
  display: grid;
  gap: 14px;
}
.studio-main [hidden] {
  display: none !important;
}
#asset-name {
  font-size: 13px;
  color: #006d59;
  font-weight: 700;
}
details {
  border-top: 1px solid #d1d8ce;
  padding-top: 12px;
}
summary {
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
details[open] summary {
  margin-bottom: 12px;
}
.catalog {
  margin-top: 28px;
}
#shelf {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#shelf button {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 6px 11px 6px 4px;
}
#shelf canvas {
  image-rendering: pixelated;
  width: 50px;
  height: 50px;
}
.studio-main *,
.studio-main *::before,
.studio-main *::after {
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .workbench {
    grid-template-columns: 1fr;
  }
  .title-row {
    align-items: flex-end;
  }
  .title-row p {
    font-size: 14px;
  }
  .title-row .action {
    flex: none;
  }
  .workbench aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }
  .workbench aside h2,
  .workbench aside #furniture-controls,
  .workbench aside details {
    grid-column: 1/-1;
  }
  .studio-main #asset-name {
    overflow-wrap: anywhere;
  }
  .modes {
    gap: 4px;
  }
  .scene canvas {
    max-height: none;
  }
}

.studio-main .workbench {
  padding: 0;
  border-top: 0;
}
.studio-main .preview-note {
  margin-top: 24px;
  color: #53675d;
  font-size: 13px;
  max-width: 80ch;
}
.studio-main .title-row h1 {
  font-family: var(--serif, Georgia, serif);
  font-weight: 400;
}

.studio-main .action[aria-disabled="true"] {
  opacity: 0.5;
  cursor: default;
}
