.hero-3d {
  display: block;
  padding: 42px 0 30px;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}
.intro h1 {
  font-size: 42px;
  letter-spacing: -1.7px;
  margin-bottom: 10px;
}
.intro p {
  margin: 0;
  color: #98a5a5;
}
.intro .hero-actions {
  margin: 0;
}
.studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  border: 1px solid #33403d;
  border-radius: 18px;
  overflow: hidden;
  background: #181e22;
  box-shadow: 0 25px 80px #0003;
}
.stage-wrap {
  height: 570px;
  position: relative;
  min-width: 0;
  background: radial-gradient(ellipse at 60% 45%, #26352e, #131a1c 68%);
  overflow: hidden;
}
.stage-wrap:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#c8ff8a05 1px, transparent 1px),
    linear-gradient(90deg, #c8ff8a05 1px, transparent 1px);
  background-size: 55px 55px;
  z-index: 0;
}
.stage-top {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 21px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
  pointer-events: none;
}
.stage-top button {
  pointer-events: auto;
}
.live-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #a9e37644;
  border-radius: 5px;
  color: #b9f978;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 7px 9px;
  background: #17271ba0;
}
.live-badge i {
  width: 5px;
  height: 5px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--mint);
}
.studio-model {
  font-size: 8px;
  letter-spacing: 2px;
  color: #80978b;
}
.stage-button {
  margin-left: auto;
  background: #15201da0;
  color: #b9c9c1;
  font-size: 22px;
  border: 1px solid #ffffff20;
  border-radius: 6px;
  padding: 2px 8px;
}
#scene {
  position: absolute;
  inset: 0;
}
#scene canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: none;
  cursor: grab;
}
#scene canvas:active {
  cursor: grabbing;
}
#scene canvas:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -3px;
}
#scene-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #a5bf9d;
  font-size: 12px;
}
#scene-error {
  position: absolute;
  inset: 30%;
  text-align: center;
  color: #c4d4bf;
}
#scene-error[hidden] {
  display: none;
}
#scene-error p {
  font-size: 12px;
}
.stage-bottom {
  position: absolute;
  bottom: 19px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  pointer-events: none;
}
.stage-bottom > span {
  font-size: 9px;
  color: #83978f;
  line-height: 1.6;
}
.camera-presets {
  display: flex;
  background: #101819e0;
  border: 1px solid #4a5c4640;
  padding: 4px;
  border-radius: 7px;
  gap: 2px;
  pointer-events: auto;
}
.camera-presets button {
  background: none;
  color: #a1ada6;
  border: 0;
  border-radius: 4px;
  font-size: 10px;
  padding: 7px 9px;
}
.camera-presets button.active {
  color: var(--mint);
  background: #31432a70;
}
.studio-inspector {
  padding: 27px 24px;
  border-left: 1px solid #354037;
  background: linear-gradient(130deg, #202827, #181e22);
}
.studio-inspector > .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.studio-inspector h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
  line-height: 1.25;
}
.part-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.part-pills button {
  background: #151d1d;
  border: 1px solid #35443e;
  border-radius: 5px;
  padding: 7px 10px;
  color: #a0b0a8;
  font-size: 10px;
}
.part-pills button.active {
  background: #b9f97813;
  color: var(--mint);
  border-color: #b9f97870;
}
.selected-part {
  border: 1px solid #56664955;
  background: #141c18a0;
  padding: 17px;
  border-radius: 9px;
  min-height: 132px;
}
.selected-part h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 7px 0;
  color: #f0f6ec;
}
.selected-part p {
  margin: 6px 0 15px;
  line-height: 1.6;
}
.selected-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.selected-footer b {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
}
.selected-footer .primary {
  padding: 8px 12px;
  font-size: 10px;
}
.scene-switches {
  margin: 17px 0;
  border-bottom: 1px solid #35403a;
  padding-bottom: 14px;
}
.scene-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 0;
  background: none;
  border: 0;
  color: #bcc9c0;
  font-size: 11px;
}
.scene-toggle i {
  display: block;
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 12px;
  background: #3e4945;
  transition: background 0.2s;
}
.scene-toggle i:after {
  content: '';
  position: absolute;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: #b3bcb7;
  transition: transform 0.2s;
}
.scene-toggle[aria-pressed='true'] i {
  background: #759948;
}
.scene-toggle[aria-pressed='true'] i:after {
  background: #d4ffaa;
  transform: translateX(12px);
}
.finish-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.finish-controls .part-type {
  font-size: 8px;
  letter-spacing: 1px;
}
.swatches {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.swatches button {
  background: var(--swatch);
  width: 21px;
  height: 21px;
  border: 3px solid #25332b;
  box-shadow: 0 0 0 1px #637b5b55;
  border-radius: 50%;
  padding: 0;
}
.swatches button.active {
  box-shadow: 0 0 0 1px var(--mint);
}
.scene-footer {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.scene-footer button {
  font-size: 10px;
  flex: 1;
  padding: 9px 6px;
}
.model-note {
  font-size: 9px;
  margin-top: 13px;
  line-height: 1.6;
  color: #788d81;
}
.hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hotspot {
  position: absolute;
  border: 1px solid #b9f97855;
  background: #0d1b14d9;
  color: #d1e7c5;
  border-radius: 20px;
  padding: 5px 9px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 9px;
  pointer-events: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  box-shadow: 0 3px 12px #0004;
  transform: translate(-50%, -50%);
}
.hotspot i {
  width: 5px;
  height: 5px;
  background: #b9f978;
  border-radius: 50%;
}
.hotspot.active {
  color: #12230d;
  background: var(--mint);
  border-color: var(--mint);
}
.hotspot.active i {
  background: #12230d;
}
.studio:fullscreen {
  display: grid;
  height: 100%;
  width: 100%;
  border-radius: 0;
}
.studio:fullscreen .stage-wrap {
  height: 100%;
}
.studio:fullscreen .studio-inspector {
  align-content: center;
}
.component.scene-selected {
  border-color: #a4d66c99;
  box-shadow: inset 3px 0 #b9f978;
}
.scene-fallback-link {
  margin-top: 20px;
  display: inline-block;
}
.stage-top .live-badge.off {
  color: #b6c4b1;
  border-color: #60755c;
}
.stage-top .live-badge.off i {
  background: #b6c4b1;
  box-shadow: none;
}
@media (min-width: 1450px) {
  .stage-wrap {
    height: 640px;
  }
  .studio-inspector {
    padding-top: 44px;
  }
}
@media (max-width: 1100px) {
  .intro {
    align-items: flex-start;
  }
  .intro h1 {
    font-size: 34px;
  }
  .intro .hero-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 230px;
  }
  .hero-actions .primary span {
    margin-left: 8px;
  }
  .studio {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .studio-inspector {
    padding: 24px 18px;
  }
  .stage-bottom > span {
    width: 100%;
  }
  .stage-wrap {
    height: 570px;
  }
  .studio-model {
    display: none;
  }
}
@media (max-width: 760px) {
  .hero-3d {
    padding: 28px 0 20px;
  }
  .intro {
    display: block;
    margin-bottom: 24px;
  }
  .intro h1 {
    font-size: 34px;
    line-height: 1.15;
  }
  .intro h1 span {
    display: block;
  }
  .intro .hero-actions {
    margin-top: 20px;
    max-width: none;
    justify-content: flex-start;
  }
  .studio {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .stage-wrap {
    height: 440px;
  }
  .stage-top {
    top: 16px;
    left: 16px;
    right: 16px;
  }
  .stage-bottom {
    left: 16px;
    right: 16px;
    bottom: 13px;
  }
  .stage-bottom > span {
    font-size: 8px;
  }
  .camera-presets button {
    font-size: 9px;
    padding: 7px;
  }
  .studio-inspector {
    border-left: 0;
    border-top: 1px solid #35403a;
    padding: 21px;
  }
  .studio-inspector > .eyebrow {
    margin-bottom: 8px;
  }
  .studio-inspector h2 {
    font-size: 21px;
  }
  .part-pills {
    margin: 15px 0;
  }
  .selected-part {
    min-height: 110px;
  }
  .scene-switches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
  }
  .scene-toggle {
    width: calc(50% - 5px);
    font-size: 10px;
  }
  .finish-controls {
    justify-content: flex-start;
    gap: 35px;
  }
  .scene-footer {
    margin-top: 18px;
  }
  .studio:fullscreen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 1fr) auto;
    overflow: auto;
  }
  .studio:fullscreen .studio-inspector {
    padding: 15px;
  }
  .studio:fullscreen .model-note,
  .studio:fullscreen .studio-inspector > h2,
  .studio:fullscreen .studio-inspector > .sub,
  .studio:fullscreen .studio-inspector > .eyebrow {
    display: none;
  }
  .studio:fullscreen .part-pills {
    margin: 0 0 10px;
  }
  .studio:fullscreen .selected-part {
    min-height: 0;
  }
  .studio:fullscreen .scene-switches {
    margin: 5px 0;
    padding: 4px 0;
  }
  .studio:fullscreen .scene-footer {
    margin-top: 9px;
  }
  .hotspot {
    font-size: 8px;
    padding: 4px 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .scene-toggle i,
  .scene-toggle i:after {
    transition: none;
  }
}

@media (min-width: 761px) {
  .stage-wrap {
    height: auto;
    min-height: 620px;
  }
}

.model-warning {
  position: absolute;
  z-index: 3;
  top: 61px;
  left: 24px;
  right: 24px;
  pointer-events: none;
  padding: 9px 11px;
  border: 1px solid #b9985340;
  border-radius: 6px;
  background: #1b241cc9;
  color: #c5c8af;
  font-size: 10px;
  line-height: 1.6;
}
.model-warning span {
  display: block;
  font-size: 9px;
  color: #8ca28f;
}
.data-label {
  display: block;
  font-size: 9px;
  margin-top: 8px;
  color: #95ad8a;
}
.source-details {
  font-size: 10px;
  color: #a8baa5;
  margin-top: 8px;
}
.source-details summary {
  cursor: pointer;
}
.source-details pre {
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #101718;
  padding: 12px;
  border-radius: 6px;
}
.source-details p {
  font-size: 10px;
}
.source-details dl {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 7px;
}
.source-details dd {
  margin: 0;
  color: #e2eade;
}
.source-details dt {
  color: #879e8c;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (max-width: 760px) {
  .model-warning {
    left: 16px;
    right: 16px;
    top: 54px;
    font-size: 9px;
  }
  .model-warning span {
    font-size: 8px;
  }
  .option > div {
    min-width: 100%;
  }
  .heading-row {
    flex-wrap: wrap;
    gap: 10px;
  }
}
[hidden] {
  display: none !important;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 10px;
}
.buy-links a {
  color: #b9f978;
  text-decoration: none;
}
.buy-links a:hover {
  text-decoration: underline;
}
.buy-links span {
  display: block;
  flex-basis: 100%;
  font-size: 9px;
  color: #899b95;
}
.ram-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.ram-filters[hidden] {
  display: none;
}
.ram-filters select {
  min-width: 130px;
  background: #20272a;
  color: #dce7e1;
  padding: 9px;
  border: 1px solid #354339;
  border-radius: 6px;
}
.ram-filters p {
  width: 100%;
  margin: 3px 0;
}
.component > div:nth-child(2) {
  min-width: 0;
}
.option .buy-links {
  max-width: 550px;
}
.preset-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 600px) {
  .preset-grid {
    grid-template-columns: 1fr;
  }
  .ram-filters select {
    flex: 1;
  }
  .buy-links {
    font-size: 11px;
  }
}

#add-ram {
  margin: 12px 0;
}
.ram-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 22px 0;
}
.ram-entry label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: #b9c7c1;
}
.ram-entry input,
.ram-entry select {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: #11181a;
  color: #e6ede7;
  border: 1px solid #35443a;
  border-radius: 6px;
}
.ram-entry input:focus {
  outline: 1px solid #b9f978;
}
@media (max-width: 500px) {
  .ram-entry {
    grid-template-columns: 1fr;
  }
}

#inspect-part {
  width: 100%;
  margin-top: 14px;
  color: #b9f978;
}
.selected-part {
  overflow: hidden;
}
