* { box-sizing: border-box; }
html { background: #161619; color-scheme: dark; }
body { margin: 0; height: 100dvh; overflow: hidden; font: 12px "Segoe UI", Arial, sans-serif; color: #e5e5e8; }
.workspace { position: absolute; top: 50%; left: 50%; width: 1920px; height: 1031px; transform: translate(-50%, -50%) scale(var(--scale, 1)); display: grid; grid-template: "menu menu menu menu menu" 42px "sidebar library garment render properties" 957px "status status status status status" 32px / 36px 280px 652px 601px 351px; background: #161619; }
button, input { font: inherit; }
button { cursor: pointer; background: transparent; border: 0; color: inherit; padding: 0; }
button:hover, summary:hover { background-color: #343942; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline: 1px solid #5bbaff; outline-offset: -1px; }
h1, h2 { margin: 0; font: inherit; height: 23px; display: grid; place-items: center; background: #1e1e21; }
.menu { grid-area: menu; display: flex; align-items: center; gap: 9px; padding: 0 17px 0 9px; z-index: 4; }
.menu nav { display: flex; align-items: center; gap: 1px; height: 100%; }
.menu nav > button, .menu-item > button { padding: 6px 9px; }
.menu .icon { width: 24px; height: 24px; }
.menu-item { position: relative; }
.menu-item ul { position: absolute; z-index: 5; min-width: 150px; top: 24px; left: 0; margin: 0; padding: 4px; list-style: none; background: #242428; border: 1px solid #404045; }
.menu-item li button { padding: 6px 9px; width: 100%; text-align: left; }
.account { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.account > span:first-child { color: #60b4ef; margin-left: -10px; margin-right: 8px; }
.account button { min-width: 145px; text-align: left; padding: 5px 9px; }
.account button span { float: right; }
.window-icons { font-size: 17px; letter-spacing: 4px; }
.sidebar { grid-area: sidebar; padding: 11px 6px; }
.sidebar button { display: block; writing-mode: vertical-rl; padding: 8px 5px; margin-bottom: 18px; background: #0c0c0e; color: white; }
.library { grid-area: library; margin-right: 5px; background: #242426; min-height: 0; }
.library-bar { height: 39px; display: flex; align-items: center; gap: 13px; padding: 0 9px; background: #262628; }
.library-bar img, .category img, .tools img, .object-tools img { display: block; }
.library-bar button:last-child { margin-left: auto; }
.library-categories { padding: 14px 11px 0; }
.category { display: flex; width: 100%; align-items: center; gap: 11px; height: 24px; padding: 0 4px; text-align: left; }
.category span:last-child { margin-left: auto; }
.category[aria-pressed=true] { background: #2d3342; color: #65b5fa; }
.library-content { margin: 18px 12px 9px; height: 756px; background: #2c2c2e; border-radius: 5px; padding: 6px 11px; }
.library-heading, .library-search { display: flex; align-items: center; height: 29px; gap: 6px; color: #a9a9ae; font-size: 11px; }
.library-heading span:first-child { margin-right: auto; }
.library-heading button { width: 25px; height: 22px; border-radius: 4px; }
.library-heading button[aria-pressed=true] { color: #57aaff; background: #353d4d; }
.library-search input { width: 118px; height: 22px; border: 0; border-radius: 14px; background: #454548; padding: 0 10px; font-size: 10px; }
.library-search > button { flex: 1; text-align: left; padding: 5px 4px; }
.library-search button span { float: right; }
.garment-cards { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; }
.garment-cards button { width: 100%; height: 158px; display: grid; justify-items: center; align-content: start; font-size: 8px; }
.garment-cards button[hidden] { display: none; }
.garment-cards img { width: 86px; height: 130px; object-fit: contain; margin-bottom: 4px; }
.garment-cards small { font-size: 6px; color: #a0a0a5; }
.garment-cards.list { grid-template-columns: 1fr; margin-top: 8px; }
.garment-cards.list button { display: flex; gap: 7px; height: 45px; align-items: center; }
.garment-cards.list img { width: 40px; height: 42px; margin: 0; }
.garment, .render, .properties { position: relative; min-width: 0; }
.garment { grid-area: garment; margin-right: 6px; }
.render { grid-area: render; margin-right: 5px; background: #242426; }
.properties { grid-area: properties; margin-right: 5px; }
.tools { position: absolute; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34px; justify-items: center; padding-top: 13px; background: #242426; bottom: 31px; top: 23px; }
.garment-tools { left: 0; width: 78px; }
.render-tools { right: 0; width: 72px; }
.viewport { position: absolute; inset: 23px 0 32px 78px; overflow: hidden; background: linear-gradient(#909195, #a2a3a7 28%, #f0f0f6 70%); }
.floor { position: absolute; inset: auto 0 0; height: 112px; background: repeating-linear-gradient(0deg, #8a8a925e 0 1px, transparent 1px 6px); overflow: hidden; }
.floor::after { content: ""; position: absolute; inset: 0 -50% -120%; transform-origin: center top; transform: perspective(280px) rotateX(45deg); background: repeating-linear-gradient(90deg,#88889355 0 1px, transparent 1px 45px); }
.viewport-tools { position: absolute; left: 10px; top: 10px; z-index: 2; display: grid; gap: 5px; }
.viewport-tools img { width: 29px; height: 29px; background: #47474a; border-radius: 6px; }
.dress { position: absolute; object-fit: contain; pointer-events: none; }
.viewport .dress { left: 50%; top: 16%; transform: translateX(-50%); width: 77%; height: 76%; }
.render-preview { position: absolute; inset: 23px 72px 31px 0; }
.render-preview .dress { width: 89%; height: 70%; left: 53%; top: 16%; transform: translateX(-50%); }
.render-frame { position: absolute; inset: 14.4% 4.2% 14.6%; }
.render-frame i { position: absolute; width: 12px; height: 12px; border: solid #85858b; border-width: 2px 0 0 2px; }
.render-frame i:nth-child(2) { right: 0; transform: rotate(90deg); }
.render-frame i:nth-child(3) { bottom: 0; transform: rotate(-90deg); }
.render-frame i:nth-child(4) { right: 0; bottom: 0; transform: rotate(180deg); }
.viewport.pattern { background: repeating-linear-gradient(0deg,#b5b5b5 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,#b5b5b5 0 1px,#c4c4c4 1px 22px); }
.viewport.pattern .dress, .viewport.pattern .floor { display: none; }
.view-tabs, .render-footer { display: flex; gap: 3px; height: 31px; align-items: stretch; position: absolute; inset: auto 0 0; border-top: 1px solid #333337; }
.view-tabs button, .render-footer button { padding: 0 8px; font-size: 11px; }
.view-tabs button[aria-pressed=true] { background: #232932; color: #65b6ff; }
.object-browser, .property-editor { background: #242426; }
.object-browser { height: 333px; }
.object-tools { display: flex; align-items: center; justify-content: space-around; height: 30px; background: #29292c; }
.fabric-brand { height: 46px; display: flex; align-items: end; justify-content: space-between; padding: 0 11px 11px; color: #67cef2; }
.fabric-brand span { color: #e5e5e8; }
.fabric-header { height: 21px; display: flex; justify-content: space-between; align-items: center; padding: 0 21px; background: #1e1e21; }
#swatches { list-style: none; margin: 0 6px; padding: 0; }
#swatches button, #swatches .empty-fabric { height: 43px; display: grid; grid-template-columns: 19px 37px 1fr 20px; gap: 8px; align-items: center; width: 100%; text-align: left; font-size: 12px; }
.swatch-mark { color: #65b6ff; text-align: right; }
.swatch-chip { width: 37px; height: 37px; background: var(--tone); }
.property-editor { margin-top: 5px; height: calc(100% - 338px); }
.property-editor details { margin: 0 10px 0 16px; border-bottom: 1px solid #29292a; }
.property-editor summary { color: #65b6ff; cursor: pointer; line-height: 20px; }
.property-editor summary::marker { color: #eee; }
.property-editor p { margin: 4px 14px 8px; }
.property-editor .arrangement summary { color: #77777c; }
.solidify { height: 24px; display: grid; grid-template-columns: 1.6fr 1fr auto; padding: 0 11px 0 31px; align-items: center; }
.solidify > label:first-child { color: #65b6ff; }
.solidify input { width: 12px; height: 12px; vertical-align: middle; }
.status { grid-area: status; padding: 0 17px 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }

[hidden] { display: none !important; }
.library-heading button img, #menus > button img { display: block; margin: auto; }
.viewport .dress.mocha, .render-preview .dress.mocha { height: 57%; top: 25%; }
.render:fullscreen { width: 100vw; height: 100vh; margin: 0; }

.menu nav > button, .menu-item > button { padding-inline: 11px; }
.viewport-tools { gap: 3px; }
.viewport-tools img { width: 32px; height: 29px; padding-inline: 2px; border-radius: 0; }
.viewport-tools img:first-child, .viewport-tools img:nth-child(3),
.viewport-tools img:nth-child(6), .viewport-tools img:last-child { border-radius: 6px 6px 0 0; }
.viewport-tools img:nth-child(2), .viewport-tools img:nth-child(5),
.viewport-tools img:nth-child(9), .viewport-tools img:last-child { border-radius: 0 0 6px 6px; margin-bottom: 5px; }
.viewport-tools img:last-child { border-radius: 6px; }
.library-bar > img:last-child { margin-left: auto; margin-right: 35px; }
.render-preview .dress { height: 69.2%; left: 52.5%; }
.property-editor h2 { height: 21px; }

.garment-cards [data-design="mocha"] img {
  width: 86px;
  height: 130px;
  padding: 8px 7px;
}
.garment-cards.list [data-design="mocha"] img { width: 40px; height: 42px; padding: 3px; }
.garment-cards [draggable="true"], #swatches [draggable="true"] { cursor: grab; }
.garment-cards [draggable="true"]:active, #swatches [draggable="true"]:active { cursor: grabbing; }
.avatar-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.viewport.pattern .avatar-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.viewport.drop-ready, .render-preview.drop-ready { outline: 2px solid #65b6ff; outline-offset: -2px; }



.empty-fabric { --tone: #fff; }


.render-preview:has(.reference-dress:not([hidden])) { background: #252528; }
.render-preview .dress.reference-dress {
  height: 70.6%;
  width: auto;
  top: 15.4%;
}


.avatar-transition {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 3;
  pointer-events: none;
}
.avatar-transition.is-settling { opacity: 0; transition: opacity 140ms ease-out; }

.garment-cards [data-design="mint"] img { padding: 7px 5px; }
.garment-cards.list [data-design="mint"] img { padding: 2px; }


.avatar-settled {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
}
.viewport.pattern .avatar-settled { display: none; }

.account .window-icons { display: inline-flex; align-items: center; gap: 7px; letter-spacing: normal; }
.account #workspace-fullscreen { min-width: 24px; min-height: 24px; padding: 0; text-align: center; }


.avatar-transition-source { z-index: 4; }

.render-preview.color-image-pending > .dress:not(.render-color-source) { visibility: hidden; }
.render-color-source { z-index: 3; }
