:root {
  color-scheme: dark;
  --ink: #090d15;
  --paper: #f4f6f7;
  --muted: #a3afbc;
  --lime: #d6f98a;
  --line: #ffffff29;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.61;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
select:focus-visible,
.stage:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
.top {
  height: 76px;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #ffffff16;
  position: relative;
  z-index: 3;
  background: #090d15;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.06em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid #d6f98a40;
  color: var(--lime);
  font-size: 20px;
  font-weight: 900;
  display: grid;
  place-items: center;
  transform: skewX(-7deg);
  border-radius: 5px;
}
.brand-dot {
  color: var(--lime);
  margin-left: 2px;
}
.stage-label {
  color: #b0b8c4;
  font-size: 12px;
  font-weight: 600;
  padding-left: 19px;
  border-left: 1px solid var(--line);
}
.top-link {
  margin-left: auto;
  color: #d4dbe2;
  font-weight: 650;
  font-size: 13px;
}
.top-link span {
  color: var(--lime);
  margin-left: 0.35rem;
}
.hero {
  position: relative;
  min-height: max(689px, calc(100svh - 76px));
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.copy {
  width: 39%;
  max-width: 555px;
  padding: 62px 24px 72px clamp(24px, 5vw, 80px);
  position: relative;
  z-index: 2;
  animation: appear 450ms ease-out both;
}
h1 {
  margin: 0;
  font-size: clamp(40px, 4.55vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.075em;
  font-weight: 850;
}
h1 span {
  color: var(--lime);
}
h1 .hero-model-name {
  display: block;
  margin-bottom: 12px;
  color: var(--paper);
  font-size: clamp(18px, 2.1vw, 31px);
  letter-spacing: -0.025em;
}
.workbench-sign-in {
  display: inline-block;
  color: var(--lime);
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workbench-sign-in[hidden] {
  display: none;
}
.intro {
  color: #aeb9c7;
  font-size: clamp(14px, 1.2vw, 18px);
  margin: 22px 0 33px;
  line-height: 1.6;
}
form {
  max-width: 415px;
}
form label {
  display: block;
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 9px;
}
.model-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.model-choice label {
  margin-bottom: 0;
}
.model-choice select {
  color: var(--paper);
  background: #111722;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 27px 7px 10px;
  font-size: 13px;
  max-width: 100%;
}
textarea {
  display: block;
  width: 100%;
  min-height: 83px;
  resize: vertical;
  padding: 13px 15px;
  line-height: 1.6;
  background: #111722;
  color: #f3f6f8;
  border: 1px solid #ffffff2e;
  border-radius: 9px;
}
textarea::placeholder {
  color: #96a2b2;
}
.primary {
  margin-top: 11px;
  border-radius: 8px;
  border: 0;
  width: 100%;
  padding: 15px 17px;
  background: var(--lime);
  color: #172211;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 760;
}
.primary:hover {
  background: #e8ffbc;
}
.text-action {
  border: 0;
  background: transparent;
  color: #c6d2de;
  padding: 7px 3px;
  font-size: 12px;
}
.text-action:hover {
  color: var(--lime);
}
form .text-action {
  margin-top: 6px;
}
.small-note,
.form-feedback {
  color: #a3afbc;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 11px;
}
.form-feedback {
  color: var(--lime);
}
.model-panel {
  position: absolute;
  inset: 0 0 0 34%;
  background: #0f1824;
  overflow: hidden;
}
.stage {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
  overflow: hidden;
}
.stage:active {
  cursor: grabbing;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    #1a1730 var(--street-image, url("/3d-workbench/neon-boulevard.png")) center
    48% / cover no-repeat;
  filter: saturate(0.58) brightness(1.13) contrast(0.87);
}
.model-panel[data-view="generated"] .stage::before {
  background: radial-gradient(
    ellipse at 55% 52%,
    #2b3546 0%,
    #182130 52%,
    #111823 100%
  );
  filter: none;
}
.model-panel[data-view="generated"] :is(.paint-label, .swatches, .try-paint) {
  display: none;
}
.model-panel[data-view="generated"] .download {
  margin-left: 0;
}
.stage canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.stage-status {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #d9e5ef;
  text-align: center;
}
.model-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 24%;
  pointer-events: none;
  background: linear-gradient(90deg, #090d15, #090d1573 35%, transparent);
}
.model-panel::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 25%;
  pointer-events: none;
  background: linear-gradient(transparent, #090d159e 42%, #090d15eb);
}
.model-meta,
.model-tools {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 62px);
  left: 12%;
}
.model-meta {
  top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  pointer-events: none;
}
.model-meta p {
  color: #c3d5df;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
  margin-bottom: 4px;
}
.model-meta h2 {
  margin: 0;
  font-size: clamp(16px, 1.65vw, 25px);
  font-weight: 750;
  letter-spacing: -0.028em;
}
.use-prompt {
  pointer-events: auto;
  margin-top: 10px;
  padding: 7px 11px;
  border-radius: 6px;
  border: 1px solid #d6f98a60;
  background: #090d15d9;
  color: var(--lime);
  font-size: 12px;
  font-weight: 650;
}
.use-prompt:hover {
  background: #1f2a22;
}
.use-prompt span {
  margin-left: 4px;
}
.reset {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 25px;
  border: 1px solid var(--line);
  background: #090d15ae;
  color: #eef4f7;
  font-size: 23px;
  line-height: 1;
}
.model-tools {
  bottom: 20px;
  background: #0b111be8;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  padding: 11px 14px 8px;
  backdrop-filter: blur(18px);
}
.scene-row,
.paint-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.scene-row {
  border-bottom: 1px solid #ffffff1a;
  padding-bottom: 8px;
  margin-bottom: 10px;
  justify-content: space-between;
}
.drag-hint {
  color: #bcc8d4;
  font-size: 12px;
}
.drag-hint span {
  margin: 0 2px;
  color: #858c96;
}
.paint-label {
  font-size: 12px;
  min-width: 42px;
  font-weight: 650;
  color: #e1e7ed;
}
.swatches {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 2px 3px;
}
.swatches button {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #ffffff5a;
  transition: transform 150ms;
}
.swatches button:hover {
  transform: scale(1.12);
}
.swatches button[aria-pressed="true"] {
  outline: 2px solid #f4f7fb;
  outline-offset: 2px;
}
[data-paint="teal"] {
  background: #168c83;
}
[data-paint="prism"] {
  background: linear-gradient(125deg, #ff2499 12%, #a74bff 51%, #21d8ff 90%);
}
[data-paint="orange"] {
  background: #ff6930;
}
[data-paint="pink"] {
  background: #ef4c9d;
}
[data-paint="lime"] {
  background: #bbf248;
}
.try-paint,
.download,
.scene-download {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  padding: 9px 10px;
  border: 1px solid #ffffff25;
}
.try-paint {
  background: transparent;
  color: #ffc795;
}
.download {
  margin-left: auto;
  color: #101923;
  background: #ecf1f5;
}
.download span {
  margin-left: 0.3rem;
}
.reset:hover,
.try-paint:hover {
  background: #ffffff19;
}
.download:hover {
  background: #fff;
}
.scene-download {
  color: #d6f98a;
  border-color: #d6f98a66;
  background: #18211e;
}
.scene-download:hover {
  background: #263525;
}
.model-feedback {
  color: #c8d9a7;
  font-size: 11px;
  min-height: 1.3em;
  margin-top: 4px;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1000px) {
  .copy {
    width: 41%;
    padding-right: 18px;
  }
  .model-panel {
    left: 36%;
  }
  .model-meta,
  .model-tools {
    left: 10%;
  }
}
@media (max-width: 720px) {
  .top {
    height: 59px;
    padding: 0 20px;
    gap: 10px;
  }
  .stage-label {
    padding-left: 10px;
  }
  .hero {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .copy {
    padding: 29px 20px 23px;
    width: 100%;
    max-width: none;
  }
  h1 {
    font-size: clamp(35px, 8vw, 58px);
    letter-spacing: -0.055em;
  }
  .intro {
    margin: 10px 0 18px;
  }
  form {
    max-width: 100%;
  }
  textarea {
    min-height: 58px;
  }
  .primary {
    margin-top: 8px;
    padding: 12px 14px;
  }
  .model-panel {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
  }
  .stage {
    position: relative;
    inset: auto;
    height: clamp(270px, 66vw, 418px);
  }
  .stage::before {
    background-position: center 48%;
  }
  .model-panel::before {
    display: none;
  }
  .model-meta,
  .model-tools {
    left: 12px;
    right: 12px;
  }
  .model-meta {
    top: 12px;
  }
  .model-tools {
    position: relative;
    inset: auto;
    margin: 0 12px 10px;
    padding: 8px 10px 5px;
  }
  .scene-row {
    padding-bottom: 6px;
    margin-bottom: 7px;
  }
  .drag-hint {
    font-size: 11px;
  }
  .swatches {
    gap: 7px;
  }
  .swatches button {
    width: 24px;
    height: 24px;
  }
  .reset {
    width: 36px;
    height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

[data-embedded="true"] .top {
  display: none;
}
@media (min-width: 721px) {
  [data-embedded="true"] .hero {
    min-height: 700px;
  }
}
