:root {
  --studio-lime: #b7f72a;
  --studio-cyan: #21c7e8;
  --studio-coral: #ff575d;
  --studio-magenta: #f23bad;
  --studio-gold: #ffc640;
  --studio-paper: #f3f4ef;
  --studio-line: rgba(255, 255, 255, 0.16);
  --studio-panel: rgba(7, 9, 12, 0.9);
  --studio-accent: var(--studio-lime);
}

.identity-studio {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100svh - 24px);
  min-height: 720px;
  max-height: 980px;
  overflow: hidden;
  color: var(--studio-paper);
  background-color: #06070a;
  background-image: url("./studio/astra-sidekick-cinematic-lab-v1.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid #252932;
  --room-accent: var(--studio-accent);
}

.identity-studio::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), inset 0 -130px 150px rgba(0, 0, 0, 0.54);
  content: "";
  pointer-events: none;
}

.identity-studio-canvas,
.identity-studio > .identity-stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.identity-studio-canvas {
  z-index: 0;
  display: block;
  cursor: grab;
  touch-action: none;
}

.identity-studio-canvas:active {
  cursor: grabbing;
}

.identity-studio[data-studio-mode="world"] .identity-studio-canvas {
  cursor: crosshair;
}

body.studio-room-active {
  overflow: hidden;
}

.identity-studio[data-studio-mode="world"] {
  position: fixed;
  inset: 0;
  z-index: 1000;
  height: 100svh;
  min-height: 0;
  max-height: none;
  background-image: none;
}

.identity-studio > .identity-stage-fallback {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.52) saturate(0.72);
}

.studio-loading {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background-color: #050609;
  background-image: url("./studio/astra-sidekick-cinematic-lab-v1.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.studio-loading::before {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.82);
  content: "";
}

.studio-loading > * {
  position: relative;
  z-index: 1;
}

.studio-loading.is-ready {
  visibility: hidden;
  opacity: 0;
}

.studio-loading strong {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 900;
}

.studio-loading > span {
  color: #c8ced5;
  font-size: 12px;
  font-weight: 800;
}

.studio-loading p,
.studio-loading small {
  margin: 0;
}

.studio-loading p {
  margin-top: 10px;
  color: var(--studio-cyan);
  font-size: 11px;
  font-weight: 800;
}

.studio-loading small {
  min-height: 13px;
  color: #757e89;
  font-size: 9px;
  font-weight: 700;
}

.studio-load-portal {
  position: relative;
  width: 156px;
  height: 156px;
  perspective: 540px;
}

.studio-load-orbit,
.studio-load-core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.studio-load-orbit {
  border: 1px solid rgba(255, 255, 255, 0.18);
  will-change: transform;
}

.studio-load-orbit-a {
  width: 146px;
  height: 146px;
  border-top-color: var(--studio-cyan);
  border-right-color: var(--studio-cyan);
  animation: studio-load-spin-a 2.4s linear infinite;
}

.studio-load-orbit-b {
  width: 112px;
  height: 112px;
  border-right-color: var(--studio-coral);
  border-bottom-color: var(--studio-coral);
  animation: studio-load-spin-b 1.8s linear infinite;
}

.studio-load-orbit-c {
  width: 76px;
  height: 76px;
  border-top-color: var(--studio-lime);
  border-left-color: var(--studio-lime);
  animation: studio-load-spin-a 1.15s linear infinite reverse;
}

.studio-load-core {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(183, 247, 42, 0.54);
  background: rgba(5, 8, 10, 0.92);
  box-shadow: 0 0 34px rgba(33, 199, 232, 0.22);
}

.studio-load-core b {
  color: var(--studio-lime);
  font-size: 27px;
  line-height: 1;
  transform: rotate(-7deg);
}

.studio-load-track {
  width: min(300px, 72vw);
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.studio-load-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--studio-lime);
  box-shadow: 0 0 15px rgba(183, 247, 42, 0.55);
  transition: width 180ms ease;
}

.studio-loading.is-complete .studio-load-core {
  border-color: var(--studio-lime);
  box-shadow: 0 0 46px rgba(183, 247, 42, 0.4);
}

.studio-loading.is-error .studio-load-core,
.studio-loading.is-error .studio-load-track i {
  border-color: var(--studio-coral);
  background: var(--studio-coral);
}

@keyframes studio-load-spin-a {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes studio-load-spin-b {
  from { transform: translate(-50%, -50%) rotateX(62deg) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotateX(62deg) rotate(360deg); }
}

.studio-brand,
.studio-editor,
.studio-profile,
.studio-view-tools,
.studio-mode-switch,
.studio-armory-hud,
.studio-room-hud,
.studio-mobile-stick,
.studio-mobile-look,
.studio-mechanical-rail,
.studio-launch,
.studio-scroll {
  position: absolute;
  z-index: 4;
}

.studio-brand {
  top: 94px;
  left: 34px;
  pointer-events: none;
}

.studio-brand p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: #a9afb8;
  font-size: 10px;
  font-weight: 800;
}

.studio-brand h1 {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
}

.studio-brand h1 b {
  color: var(--studio-coral);
  font-size: 58px;
  transform: rotate(-7deg);
}

.studio-brand small {
  display: block;
  margin-top: 9px;
  color: var(--studio-lime);
  font-size: 9px;
  font-weight: 800;
}

.studio-mechanical-rail {
  top: 50%;
  width: 20px;
  height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #717986;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  transform: translateY(-50%);
  pointer-events: none;
}

.studio-mechanical-rail-left {
  left: 8px;
}

.studio-mechanical-rail-right {
  right: 8px;
}

.studio-mechanical-rail i {
  width: 1px;
  height: 86px;
  background: linear-gradient(to bottom, transparent, var(--studio-accent));
}

.studio-mechanical-rail-right i {
  background: linear-gradient(to bottom, transparent, var(--studio-coral));
}

.studio-mechanical-rail b {
  writing-mode: vertical-rl;
}

.studio-editor {
  top: 196px;
  bottom: 104px;
  left: 34px;
  width: 346px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--studio-panel);
  border: 1px solid var(--studio-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.studio-editor.is-collapsed {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
}

.studio-editor-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--studio-line);
}

.studio-editor-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.studio-editor-head span,
.studio-editor-head strong {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  line-height: 1;
}

.studio-editor-head span {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.studio-editor-head strong {
  color: var(--studio-accent);
  font-size: 10px;
  font-weight: 700;
}

.studio-editor-head > button,
.studio-view-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d7d9db;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.studio-editor-head > button {
  width: 30px;
  height: 30px;
}

.studio-editor-head > button svg,
.studio-view-tools button svg {
  width: 16px;
  height: 16px;
}

.studio-editor-head > button:hover,
.studio-view-tools button:hover {
  color: #07090c;
  background: var(--studio-accent);
  border-color: var(--studio-accent);
}

.studio-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--studio-line);
}

.studio-tabs button {
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: #757d87;
  background: #0a0d11;
  border-right: 1px solid var(--studio-line);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.studio-tabs button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}

.studio-tabs button b {
  min-width: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-tabs button:last-child {
  border-right: 0;
}

.studio-tabs button span {
  color: #454c56;
  font-size: 8px;
}

.studio-tabs button.is-active {
  color: #05070a;
  background: var(--studio-accent);
}

.studio-tabs button.is-active span {
  color: rgba(5, 7, 10, 0.58);
}

.studio-panel-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #404751 transparent;
  scrollbar-width: thin;
}

.studio-panel {
  padding: 18px;
}

.studio-panel[hidden] {
  display: none;
}

.studio-label,
.studio-section-head span,
.studio-section-head small {
  color: #7f8792;
  font-size: 9px;
  font-weight: 800;
}

.studio-name-input {
  width: 100%;
  height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  color: #fff;
  background: #11151b;
  border: 1px solid #303640;
  border-radius: 2px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.studio-name-input:focus {
  border-color: var(--studio-accent);
  outline: 1px solid var(--studio-accent);
  outline-offset: 1px;
}

.studio-field {
  margin-top: 18px;
}

.studio-species,
.studio-segmented {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}

.studio-species {
  grid-template-columns: repeat(4, 1fr);
}

.studio-segmented {
  grid-template-columns: repeat(3, 1fr);
}

.studio-species button,
.studio-segmented button {
  min-width: 0;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 5px;
  overflow: hidden;
  color: #9da3ab;
  background: #0d1116;
  border: 1px solid #2d333c;
  border-radius: 2px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-species button svg,
.studio-segmented button svg {
  width: 18px;
  height: 18px;
}

.studio-species button span,
.studio-segmented button span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-species button:hover,
.studio-segmented button:hover,
.studio-species button.is-active,
.studio-segmented button.is-active {
  color: #05070a;
  background: var(--studio-accent);
  border-color: var(--studio-accent);
}

.studio-option-list {
  margin-top: 18px;
  border-top: 1px solid var(--studio-line);
}

.studio-part-list {
  margin-top: 12px;
  border-top: 1px solid var(--studio-line);
}

.studio-option-row {
  height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: stretch;
  border-bottom: 1px solid var(--studio-line);
}

.studio-option-row.studio-part-row {
  height: 58px;
}

.studio-option-row > button {
  display: grid;
  place-items: center;
  color: #d6d9dc;
  background: transparent;
}

.studio-option-row > button svg {
  width: 17px;
  height: 17px;
}

.studio-option-row > button:hover {
  color: #05070a;
  background: var(--studio-accent);
}

.studio-option-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border-right: 1px solid var(--studio-line);
  border-left: 1px solid var(--studio-line);
  text-align: left;
}

.studio-option-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--studio-accent);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01));
  border: 1px solid #303741;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
}

.studio-option-icon svg {
  width: 19px;
  height: 19px;
}

.studio-option-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.studio-option-text > span {
  color: #69717d;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-option-text strong {
  width: 100%;
  overflow: hidden;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-option-copy em {
  min-width: 36px;
  padding: 4px 5px;
  color: #666f7a;
  background: #0a0d11;
  border: 1px solid #272d35;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.studio-catalog-loading {
  min-height: 72px;
  display: grid;
  place-items: center;
  margin: 0;
  color: #79818c;
  border-bottom: 1px solid var(--studio-line);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.studio-swatches {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.studio-swatches button {
  position: relative;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  background: var(--swatch);
  border: 3px solid #0a0d11;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #3c434d;
}

.studio-swatches button.is-active {
  box-shadow: 0 0 0 2px #fff;
}

.studio-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--studio-line);
}

.studio-section-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.studio-section-head strong {
  color: var(--studio-accent);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
}

.studio-look-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.studio-look-card {
  position: relative;
  min-width: 0;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 10px;
  color: #b6bbc2;
  text-align: left;
  background: #0d1116;
  border: 1px solid #2a3038;
  border-radius: 3px;
}

.studio-look-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 22px;
  background: var(--look-color, var(--studio-cyan));
  content: "";
}

.studio-look-card span {
  color: #69717b;
  font-size: 8px;
  font-weight: 800;
}

.studio-look-card strong {
  max-width: 100%;
  overflow: hidden;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-look-card:hover,
.studio-look-card.is-active {
  color: #fff;
  background: #171c23;
  border-color: var(--studio-accent);
}

.studio-look-card.is-active::after {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--studio-accent);
  font-size: 12px;
  font-weight: 900;
  content: "X";
}

.studio-gear-list {
  margin-top: 14px;
  border-top: 1px solid var(--studio-line);
}

.studio-gear-list button {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a4aab1;
  background: transparent;
  border-bottom: 1px solid var(--studio-line);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.studio-gear-list button strong {
  color: #5f6874;
  font-size: 10px;
}

.studio-gear-list button.is-active {
  color: #fff;
}

.studio-gear-list button.is-active strong {
  color: var(--studio-accent);
}

.studio-gear-list button:disabled {
  color: #444a53;
  cursor: not-allowed;
}

.studio-summary {
  margin-top: 14px;
  border-top: 1px solid var(--studio-line);
}

.studio-summary-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--studio-line);
}

.studio-summary-row span {
  color: #6e7680;
  font-size: 9px;
  font-weight: 800;
}

.studio-summary-row strong {
  max-width: 64%;
  overflow: hidden;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-account {
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  color: #07090c;
  background: var(--studio-accent);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
}

.studio-feedback {
  margin: 13px 0 0;
  color: #818995;
  font-size: 10px;
  line-height: 1.5;
}

.studio-feedback[data-state="success"] {
  color: var(--studio-lime);
}

.studio-feedback[data-state="error"] {
  color: var(--studio-coral);
}

.studio-profile {
  top: 116px;
  right: 34px;
  width: 286px;
  padding: 17px 18px 18px;
  background: rgba(7, 9, 12, 0.76);
  border-top: 1px solid var(--studio-accent);
  border-bottom: 1px solid var(--studio-line);
  backdrop-filter: blur(13px);
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.studio-profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7d8590;
  font-size: 8px;
  font-weight: 800;
}

.studio-profile-line b {
  color: var(--studio-accent);
}

.studio-profile-name {
  display: block;
  margin-top: 13px;
  overflow: hidden;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-profile > small {
  display: block;
  margin-top: 6px;
  color: #8d949e;
  font-size: 8px;
  font-weight: 800;
}

.studio-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
  border-top: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
}

.studio-profile-stats span {
  min-width: 0;
  min-height: 49px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #626a75;
  border-right: 1px solid var(--studio-line);
  font-size: 7px;
  font-weight: 800;
}

.studio-profile-stats span:last-child {
  border-right: 0;
}

.studio-profile-stats b {
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 17px;
}

.studio-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 14px;
}

.studio-profile-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #d4d7da;
  background: #11151a;
  border: 1px solid #323944;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
}

.studio-profile-actions button svg {
  width: 15px;
  height: 15px;
}

.studio-profile-actions button:last-child {
  color: #06080b;
  background: var(--studio-accent);
  border-color: var(--studio-accent);
}

.studio-view-tools {
  right: 34px;
  bottom: 113px;
  display: flex;
  gap: 6px;
}

.studio-view-tools button {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.studio-view-tools button:last-child {
  width: 40px;
}

.studio-mode-switch {
  bottom: 34px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 510px;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.studio-armory-hud {
  top: 188px;
  right: 34px;
  width: min(340px, calc(100% - 68px));
  padding: 0 20px 20px;
  overflow: hidden;
  background: rgba(7, 9, 12, 0.9);
  border: 1px solid var(--studio-line);
  border-top-color: var(--studio-accent);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.studio-armory-hud[hidden],
.studio-room-hud[hidden],
.studio-mobile-stick[hidden],
.studio-mobile-look[hidden] {
  display: none;
}

.studio-armory-hud::before,
.studio-armory-hud::after {
  position: absolute;
  width: 72px;
  height: 2px;
  background: var(--studio-accent);
  content: "";
}

.studio-armory-hud::before {
  top: 0;
  left: 0;
}

.studio-armory-hud::after {
  right: 0;
  bottom: 0;
  background: var(--studio-coral);
}

.studio-armory-hud > header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777f89;
  border-bottom: 1px solid var(--studio-line);
  font-size: 8px;
  font-weight: 800;
}

.studio-armory-hud > header b {
  color: var(--studio-accent);
}

.studio-armory-identity {
  padding: 21px 0 17px;
}

.studio-armory-identity p,
.studio-armory-identity h2,
.studio-armory-identity small,
.studio-armory-copy {
  margin: 0;
}

.studio-armory-identity p {
  color: #686f79;
  font-size: 8px;
  font-weight: 800;
}

.studio-armory-identity h2 {
  margin-top: 6px;
  overflow: hidden;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 34px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-armory-identity small {
  display: block;
  margin-top: 7px;
  color: var(--studio-accent);
  font-size: 8px;
  font-weight: 800;
}

.studio-armory-hud dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--studio-line);
  border-left: 1px solid var(--studio-line);
}

.studio-armory-hud dl div {
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border-right: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
}

.studio-armory-hud dt {
  color: #676f7a;
  font-size: 7px;
  font-weight: 800;
}

.studio-armory-hud dd {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.studio-armory-copy {
  padding: 15px 0;
  color: #858d97;
  font-size: 9px;
  line-height: 1.55;
}

.studio-armory-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.studio-armory-actions button {
  min-height: 40px;
  color: #d8dbde;
  background: #11151a;
  border: 1px solid #353c46;
  font-size: 8px;
  font-weight: 900;
}

.studio-armory-actions button:last-child {
  grid-column: 1 / -1;
  color: #06080b;
  background: var(--studio-accent);
  border-color: var(--studio-accent);
}

.studio-armory-actions button:disabled {
  opacity: 0.46;
  cursor: wait;
}

.studio-mode-switch button {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9299a3;
  background: rgba(7, 9, 12, 0.84);
  border-right: 1px solid var(--studio-line);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.studio-mode-switch button svg {
  width: 18px;
  height: 18px;
}

.studio-mode-switch button:last-child {
  border-right: 0;
}

.studio-mode-switch button span {
  color: #59616d;
  font-size: 8px;
}

.studio-mode-switch button.is-active {
  color: #05070a;
  background: var(--studio-accent);
}

.studio-mode-switch button.is-active span {
  color: rgba(5, 7, 10, 0.55);
}

.studio-mode-switch button:disabled {
  color: #4e5560;
  cursor: wait;
}

.studio-launch {
  bottom: 34px;
  left: 34px;
  display: flex;
  gap: 7px;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.studio-launch a,
.studio-launch button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  background: rgba(7, 9, 12, 0.78);
  border: 1px solid var(--studio-line);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.studio-launch a {
  color: #07090c;
  background: var(--studio-gold);
  border-color: var(--studio-gold);
}

.studio-scroll {
  right: 34px;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #b4bac1;
  font-size: 8px;
  font-weight: 800;
}

.studio-scroll i {
  width: 34px;
  height: 1px;
  background: var(--studio-accent);
}

.studio-room-hud {
  top: 94px;
  right: 34px;
  left: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.studio-room-hud > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--studio-accent);
}

.studio-room-hud .studio-world-status {
  margin-left: auto;
  margin-right: 18px;
  padding-right: 12px;
  border-right: 2px solid var(--studio-coral);
  border-left: 0;
  text-align: right;
}

.studio-room-hud span {
  color: #8b939d;
  font-size: 8px;
  font-weight: 800;
}

.studio-room-hud strong {
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 21px;
  font-weight: 800;
}

.studio-room-hud button {
  min-height: 39px;
  padding: 0 14px;
  color: #06080b;
  background: var(--studio-accent);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  pointer-events: auto;
}

.studio-mobile-stick {
  bottom: 34px;
  left: 28px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  background: rgba(7, 9, 12, 0.35);
  touch-action: none;
}

.studio-mobile-stick i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border: 1px solid var(--studio-accent);
  border-radius: 50%;
  background: rgba(183, 247, 42, 0.18);
  transform: translate(-50%, -50%);
}

.studio-mobile-look {
  right: 24px;
  bottom: 39px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  color: #aeb5bd;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(7, 9, 12, 0.2);
  font-size: 8px;
  font-weight: 800;
  pointer-events: none;
}

.studio-mobile-look i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--studio-accent);
  border-right: 1px solid var(--studio-accent);
  transform: translate(21px, -21px);
}

.identity-studio[data-studio-mode="armory"] .studio-editor,
.identity-studio[data-studio-mode="armory"] .studio-profile,
.identity-studio[data-studio-mode="armory"] .studio-view-tools,
.identity-studio[data-studio-mode="armory"] .studio-launch,
.identity-studio[data-studio-mode="armory"] .studio-scroll,
.identity-studio[data-studio-mode="world"] [data-studio-ui],
.identity-studio[data-studio-mode="world"] .studio-scroll {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.identity-studio[data-studio-mode="world"]::before {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), inset 0 -80px 100px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1180px) {
  .identity-studio {
    min-height: 680px;
  }

  .studio-profile {
    display: none;
  }

  .studio-editor {
    width: 326px;
  }

  .studio-launch button {
    display: none;
  }
}

@media (max-width: 760px) {
  .identity-studio {
    height: calc(100svh - 16px);
    min-height: 690px;
    max-height: none;
  }

  .studio-brand {
    top: 76px;
    left: 14px;
  }

  .studio-brand p {
    margin-bottom: 6px;
    font-size: 8px;
  }

  .studio-brand h1 {
    gap: 4px;
    font-size: 29px;
  }

  .studio-brand h1 b {
    font-size: 38px;
  }

  .studio-brand small {
    margin-top: 6px;
    font-size: 7px;
  }

  .studio-editor {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 43svh;
    min-height: 310px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    transform: none;
  }

  .studio-editor.is-collapsed {
    transform: translateY(24px);
  }

  .studio-editor-head {
    min-height: 48px;
  }

  .studio-tabs button {
    height: 42px;
  }

  .studio-panel {
    padding: 14px;
  }

  .studio-field,
  .studio-option-list {
    margin-top: 13px;
  }

  .studio-option-row {
    height: 48px;
  }

  .studio-option-row.studio-part-row {
    height: 56px;
  }

  .studio-mode-switch {
    top: calc(57svh - 70px);
    bottom: auto;
    width: calc(100% - 28px);
    min-width: 0;
  }

  .studio-mode-switch button {
    min-height: 40px;
    gap: 4px;
    font-size: 9px;
  }

  .studio-mode-switch button span {
    font-size: 7px;
  }

  .studio-armory-hud {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 39svh;
    padding: 0 14px 14px;
    overflow-y: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .identity-studio[data-studio-mode="armory"] .studio-mode-switch {
    top: calc(61svh - 52px);
  }

  .studio-armory-hud > header {
    min-height: 40px;
  }

  .studio-armory-identity {
    padding: 12px 0 10px;
  }

  .studio-armory-identity h2 {
    font-size: 27px;
  }

  .studio-armory-hud dl div {
    min-height: 46px;
  }

  .studio-armory-copy {
    display: none;
  }

  .studio-armory-actions {
    margin-top: 10px;
  }

  .studio-view-tools {
    top: 126px;
    right: 13px;
    bottom: auto;
    flex-direction: column;
  }

  .studio-view-tools button {
    width: 36px;
    height: 36px;
  }

  .studio-view-tools button:last-child {
    width: 36px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .studio-view-tools button:last-child::after {
    color: #fff;
    font-size: 13px;
    content: "+";
  }

  .studio-launch,
  .studio-scroll {
    display: none;
  }

  .studio-look-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-room-hud {
    top: 76px;
    right: 14px;
    left: 14px;
  }

  .studio-room-hud .studio-world-status {
    display: none;
  }

  .studio-room-hud button {
    width: 42px;
    height: 42px;
    overflow: hidden;
    padding: 0;
    color: #06080b;
    font-size: 0;
  }

  .studio-room-hud button::after {
    content: none;
  }

  .studio-mobile-stick {
    bottom: 28px;
    left: 22px;
  }

  .studio-mobile-look {
    right: 22px;
    bottom: 45px;
  }

  .studio-mechanical-rail {
    display: none;
  }
}

@media (max-width: 420px) {
  .studio-species button,
  .studio-segmented button {
    font-size: 9px;
  }

  .studio-look-card {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-loading,
  .studio-editor,
  .studio-profile,
  .studio-mode-switch {
    transition: none;
  }

  .studio-load-orbit {
    animation: none;
  }
}
