.atlas-customer-page {
  min-width: 320px;
  min-height: 100vh;
  background: #08080b;
}

.atlas-customer-page.atlas-immersive {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.atlas-customer-page.atlas-immersive .atlas-customer-main {
  position: fixed;
  inset: 0;
  display: block;
  min-height: 0;
  z-index: 1;
}

.atlas-customer-page.atlas-immersive .atlas-overlay-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: 64px;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(8, 8, 12, .88), rgba(8, 8, 12, .42));
  backdrop-filter: blur(14px);
}

.atlas-customer-page.atlas-immersive .atlas-shell {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.atlas-customer-page.atlas-immersive .atlas-stage-3d {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  display: block;
  grid-template-columns: none;
}

.atlas-customer-page.atlas-immersive .atlas-viewer-column {
  position: absolute;
  inset: 0;
  display: block;
  background: #08080c;
}

.atlas-customer-page.atlas-immersive .atlas-viewport {
  position: absolute;
  inset: 0;
}
.atlas-customer-page #atlas-canvas {
  touch-action: none;
}

.atlas-customer-page.atlas-immersive .atlas-fallback {
  position: absolute;
  inset: 64px 0 0 72px;
  z-index: 22;
  min-height: 0;
  overflow: auto;
}

.atlas-customer-page.atlas-immersive.is-setup .atlas-style-rail,
.atlas-customer-page.atlas-immersive.is-setup .atlas-style-flyout,
.atlas-customer-page.atlas-immersive.is-setup .atlas-customer-main {
  visibility: hidden;
  pointer-events: none;
}

.atlas-style-rail {
  position: absolute;
  top: 78px;
  left: 12px;
  bottom: 16px;
  z-index: 32;
  width: 64px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(10, 10, 14, .78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.atlas-rail-btn {
  width: 100%;
  min-height: 54px;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: #9a97a2;
  padding: 7px 4px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.atlas-rail-btn[hidden] {
  display: none !important;
}

.atlas-rail-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.atlas-rail-btn span {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atlas-rail-btn:hover,
.atlas-rail-btn.is-active,
.atlas-rail-btn[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(165, 107, 255, .55);
  background: rgba(106, 0, 255, .14);
}

.atlas-rail-divider {
  height: 1px;
  margin: 4px 8px;
  background: rgba(255, 255, 255, .1);
}

.atlas-rail-settings {
  margin-top: auto;
}

.atlas-style-flyout {
  position: absolute;
  top: 78px;
  left: 84px;
  bottom: 16px;
  z-index: 31;
  width: min(360px, calc(100vw - 110px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(12, 12, 18, .84);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .4);
  transform-origin: left center;
  animation: atlas-flyout-in .2s ease;
}

.atlas-style-flyout[hidden] {
  display: none !important;
}

@keyframes atlas-flyout-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.atlas-flyout-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.atlas-flyout-header p {
  margin: 0 0 4px;
  color: #8d8a94;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.atlas-flyout-header h2 {
  margin: 0;
  color: var(--bone);
  font: 500 28px/1 var(--serif);
}

.atlas-flyout-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  color: #c7c3cd;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.atlas-flyout-section {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.atlas-flyout-section[hidden] {
  display: none !important;
}

.atlas-flyout-section[data-flyout-section="category"] .atlas-placement-list {
  max-height: 34%;
  overflow: auto;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.atlas-flyout-detail {
  min-height: 0;
  flex: 1;
  border: 0;
  background: transparent;
}

.atlas-flyout-detail .atlas-detail-scroll {
  height: 100%;
  padding: 16px;
}

.atlas-flyout-detail h3 {
  margin-bottom: 10px;
  font-size: clamp(32px, 3vw, 46px);
}

.atlas-flyout-stack {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.atlas-flyout-stack .atlas-mode-switch,
.atlas-flyout-stack .atlas-side-switch,
.atlas-settings-stack .atlas-body-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-flyout-section[data-flyout-section="plan"] {
  overflow: auto;
}

.atlas-flyout-section[data-flyout-section="plan"] .atlas-plan-panel {
  position: static;
  height: auto;
  min-height: 100%;
  padding: 16px;
  background: transparent;
}

.atlas-settings-label {
  width: 100%;
  margin-top: 6px;
  color: #8d8a94;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.atlas-settings-note {
  margin: 0;
  color: #aaa7b1;
  font-size: 13px;
  line-height: 1.45;
}

.atlas-tattoo-stack {
  gap: 12px;
}

.atlas-tattoo-upload,
.atlas-tattoo-slider {
  display: grid;
  gap: 6px;
  color: #8d8a94;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.atlas-tattoo-upload input[type="file"] {
  color: #c9c6d0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.atlas-tattoo-slider input[type="range"] {
  width: 100%;
  accent-color: #b48cff;
}

.atlas-tattoo-preview {
  display: none;
  place-items: center;
  min-height: 72px;
  padding: 8px;
  border: 1px solid rgba(180, 140, 255, 0.28);
  background: rgba(12, 10, 16, 0.55);
}

.atlas-tattoo-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9c6d0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.atlas-tattoo-check input {
  accent-color: #b48cff;
}

.atlas-tattoo-preview:not([hidden]) {
  display: grid;
  background-color: #d4cfc8;
  background-image:
    linear-gradient(45deg, #bdb6ae 25%, transparent 25%),
    linear-gradient(-45deg, #bdb6ae 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #bdb6ae 75%),
    linear-gradient(-45deg, transparent 75%, #bdb6ae 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.atlas-tattoo-preview img {
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.atlas-plan-item.is-tattoo .atlas-plan-focus span {
  color: #b48cff;
}

.atlas-code-type {
  display: grid;
  gap: 8px;
  color: #c9c6d0;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.atlas-code-type label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.atlas-code-type input {
  accent-color: #b48cff;
}

.atlas-settings-field {
  display: grid;
  gap: 6px;
  color: #8d8a94;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.atlas-settings-field input {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #101017;
  color: var(--bone);
  padding: 8px 10px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.atlas-background-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-settings-stack > a.atlas-control {
  text-decoration: none;
  text-align: center;
}

.atlas-setup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vh, 24px);
  overflow: auto;
  background:
    radial-gradient(circle at 50% 30%, rgba(106, 0, 255, .18), transparent 42%),
    linear-gradient(160deg, #0c0c12, #07070a 70%);
}

.atlas-setup[hidden] {
  display: none !important;
}

.atlas-setup-card {
  width: min(860px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 12, 18, .9);
  backdrop-filter: blur(18px);
  padding: clamp(16px, 3vh, 32px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.atlas-setup-kicker {
  margin: 0 0 6px;
  color: var(--uv-soft);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.atlas-setup-card h2 {
  margin: 0 0 8px;
  color: var(--bone);
  font: 500 clamp(28px, 4.5vh, 48px)/1 var(--serif);
  flex: 0 0 auto;
}

.atlas-setup-copy {
  margin: 0 0 clamp(14px, 2.5vh, 24px);
  color: #aaa7b1;
  max-width: 46ch;
  line-height: 1.45;
  font-size: clamp(14px, 1.8vh, 16px);
  flex: 0 0 auto;
}

.atlas-setup-step {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.atlas-setup-step[hidden] {
  display: none !important;
}

.atlas-setup-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 16px);
  min-height: 0;
  flex: 1 1 auto;
  align-items: stretch;
}

.atlas-setup-choice {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  justify-items: center;
  align-content: stretch;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #101017;
  color: var(--bone);
  padding: clamp(10px, 1.5vh, 16px);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.atlas-setup-choice img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: min(58vh, 520px);
  aspect-ratio: 420 / 900;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  min-height: 0;
}

.atlas-setup-choice strong {
  font: 500 clamp(20px, 3vh, 24px)/1 var(--serif);
  flex: 0 0 auto;
}

.atlas-setup-choice:hover,
.atlas-setup-choice:focus-visible {
  border-color: rgba(165, 107, 255, .7);
  background: rgba(106, 0, 255, .12);
  transform: translateY(-2px);
}

.atlas-setup-back {
  margin-top: 18px;
  border: 0;
  border-bottom: 1px solid #75727c;
  background: transparent;
  color: #aaa7b1;
  padding: 4px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
}

.atlas-customer-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(18px, 4vw, 58px) 14px;
  border-bottom: 1px solid var(--line);
  background: #0d0d12;
}

.atlas-customer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.atlas-customer-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 44px;
}

.atlas-customer-header p,
.atlas-plan-heading p {
  margin: 0 0 4px;
  color: var(--uv-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.atlas-customer-header h1 {
  margin: 0;
  color: var(--bone);
  font: 500 29px/1 var(--serif);
}

.atlas-customer-header h1 span::after {
  content: " / ";
  color: #777681;
}

.atlas-customer-header-note {
  color: #85838d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.atlas-customer-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.atlas-language-field {
  display: grid;
  gap: 4px;
  color: #85838d;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.atlas-language-field select {
  min-height: 36px;
  border: 1px solid #3c3b46;
  background: #121218;
  color: var(--bone);
  padding: 6px 10px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.atlas-customer-account-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #3c3b46;
  padding: 8px 13px;
  color: var(--bone);
  font-size: 12px;
  font-weight: 700;
}

.atlas-customer-account-link:hover,
.atlas-customer-account-link:focus-visible {
  border-color: var(--uv);
  color: var(--uv-soft);
}

.atlas-customer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: calc(100vh - 78px);
}

.atlas-customer-page .atlas-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--line);
}

.atlas-customer-page .atlas-stage-3d {
  height: calc(100vh - 141px);
  min-height: 710px;
}

.atlas-customer-page .atlas-detail-3d h3 {
  font-size: clamp(48px, 4.7vw, 76px);
}

.atlas-mode-switch {
  display: flex;
  gap: 7px;
}

.atlas-fallback {
  min-height: 620px;
  align-content: start;
  gap: 30px;
  padding: clamp(32px, 6vw, 84px);
  background: #0d0d12;
}

.atlas-fallback-heading p {
  margin: 0 0 8px;
  color: var(--uv-soft);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
}

.atlas-fallback-heading h2 {
  margin: 0;
  font: 500 46px/1 var(--serif);
}

.atlas-fallback-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.atlas-fallback-controls label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.atlas-fallback-controls label span {
  color: #85818c;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
}

.atlas-fallback-controls select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #15151b;
  color: var(--bone);
  padding: 9px 11px;
}

.atlas-fallback-controls .button {
  min-height: 48px;
  white-space: nowrap;
}

.atlas-fallback-status {
  min-height: 22px;
  margin: 0;
  color: #aaa6b0;
  font-size: 13px;
}

.atlas-customer-page.is-atlas-list .atlas-stage-3d {
  display: none;
}

.atlas-customer-page.is-atlas-list .atlas-fallback {
  display: grid;
}

.atlas-plan-panel {
  position: sticky;
  top: 0;
  height: calc(100vh - 78px);
  align-self: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 22px;
  background: #101015;
}

.atlas-plan-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.atlas-plan-heading h2 {
  margin: 0;
  font: 500 28px/1.05 var(--serif);
}

.atlas-plan-heading h2 span {
  display: inline-grid;
  min-width: 26px;
  min-height: 26px;
  place-items: center;
  margin-left: 5px;
  border: 1px solid rgba(165,107,255,.56);
  color: var(--uv-soft);
  font: 600 13px/1 var(--sans);
}

.atlas-plan-clear {
  border: 0;
  border-bottom: 1px solid #75727c;
  background: transparent;
  color: #aaa7b1;
  padding: 4px 0;
  font-size: 12px;
  text-transform: uppercase;
  cursor: pointer;
}

.atlas-plan-clear:disabled {
  opacity: .38;
  cursor: default;
}

.atlas-plan-empty {
  margin: 28px 0;
  color: #8d8a94;
  font: 500 19px/1.4 var(--serif);
}

.atlas-plan-list {
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.atlas-plan-photos {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.atlas-plan-photos h3 {
  margin: 0;
  font: 500 18px/1.2 var(--serif);
}

.atlas-plan-photos-note {
  margin: 0;
  color: #8d8a94;
  font-size: 13px;
  line-height: 1.4;
}

.atlas-plan-photo-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.atlas-plan-photo-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.atlas-plan-photo-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #08080c;
}

.atlas-plan-photo-item strong {
  display: block;
  font: 500 15px/1.2 var(--serif);
}

.atlas-plan-photo-item span {
  display: block;
  margin: 3px 0 8px;
  color: #96939d;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.atlas-plan-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-plan-photo-actions label,
.atlas-plan-photo-actions button {
  border: 1px solid var(--line);
  background: transparent;
  color: #c9c6d0;
  padding: 6px 8px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.atlas-plan-photo-actions input {
  display: none;
}

.atlas-plan-preview {
  margin: 14px 0 0;
  padding: 0;
}

.atlas-plan-preview img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #08080c;
}

.atlas-plan-preview figcaption {
  margin-top: 8px;
  color: #96939d;
  font-size: 12px;
  line-height: 1.4;
}

.atlas-plan-item {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.atlas-plan-focus {
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--bone);
  text-align: left;
  cursor: pointer;
}

.atlas-plan-focus strong {
  overflow: hidden;
  font: 500 21px/1.1 var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-plan-focus span {
  color: #96939d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.atlas-plan-remove {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: #a9a6af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.atlas-plan-remove:hover,
.atlas-plan-focus:hover strong {
  color: var(--uv-soft);
}

.atlas-plan-status {
  min-height: 38px;
  margin: auto 0 12px;
  color: #b5b1bb;
  font-size: 13px;
  line-height: 1.35;
}

.atlas-plan-status.is-error {
  color: #ff9aaf;
}

.atlas-plan-book {
  width: 100%;
}

.atlas-plan-book:disabled,
#atlas-book:disabled {
  opacity: .44;
  cursor: default;
  transform: none;
}

.atlas-customer-page.is-embedded .atlas-customer-header {
  display: none;
}

.atlas-customer-page.is-embedded .atlas-customer-main {
  min-height: 0;
}

.atlas-customer-page.is-embedded .atlas-stage-3d {
  height: 790px;
}

.atlas-customer-page.is-embedded .atlas-plan-panel {
  position: static;
  height: 790px;
}

@media (max-width: 1280px) {
  .atlas-customer-main {
    grid-template-columns: 1fr;
  }

  .atlas-customer-page:not(.atlas-immersive) .atlas-shell {
    border-right: 0;
  }

  .atlas-customer-page:not(.atlas-immersive) .atlas-stage-3d,
  .atlas-customer-page.is-embedded:not(.atlas-immersive) .atlas-stage-3d {
    height: auto;
  }

  .atlas-customer-page:not(.atlas-immersive) .atlas-plan-panel,
  .atlas-customer-page.is-embedded:not(.atlas-immersive) .atlas-plan-panel {
    position: static;
    width: 100%;
    height: auto;
    min-height: 250px;
  }

  .atlas-plan-status {
    margin-top: 20px;
  }

  .atlas-customer-page.atlas-immersive .atlas-style-flyout {
    width: min(340px, calc(100vw - 100px));
  }
}

@media (max-width: 900px) {
  .atlas-customer-page.atlas-immersive .atlas-style-rail {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    overflow: hidden;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: rgba(8, 8, 12, .94);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, .45);
  }

  .atlas-customer-page.atlas-immersive .atlas-rail-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    width: auto;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 8px;
  }

  .atlas-customer-page.atlas-immersive .atlas-rail-btn svg {
    width: 18px;
    height: 18px;
  }

  .atlas-customer-page.atlas-immersive .atlas-rail-btn span {
    font-size: 8px;
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .atlas-customer-page.atlas-immersive .atlas-rail-divider {
    display: none;
  }

  .atlas-customer-page.atlas-immersive .atlas-rail-settings {
    margin-top: 0;
    margin-left: 0;
  }

  /* Bottom sheet: keep the 3D stage visible above the menu */
  .atlas-customer-page.atlas-immersive .atlas-style-flyout {
    top: auto;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: min(52vh, 420px);
    max-height: calc(100dvh - 72px - 64px - env(safe-area-inset-bottom, 0px));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    transform-origin: bottom center;
    animation: atlas-flyout-up .22s ease;
  }

  @keyframes atlas-flyout-up {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .atlas-customer-page.atlas-immersive .atlas-flyout-section[data-flyout-section="category"] {
    overflow: hidden;
  }

  .atlas-customer-page.atlas-immersive .atlas-flyout-section[data-flyout-section="category"] .atlas-placement-list {
    max-height: 88px;
    flex: 0 0 auto;
  }

  .atlas-customer-page.atlas-immersive .atlas-flyout-detail {
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .atlas-customer-page.atlas-immersive .atlas-flyout-detail .atlas-detail-scroll {
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 16px 20px;
  }

  .atlas-customer-page.atlas-immersive .atlas-flyout-stack,
  .atlas-customer-page.atlas-immersive .atlas-flyout-section[data-flyout-section="plan"] {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .atlas-customer-page.atlas-immersive .atlas-flyout-detail h3 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .atlas-customer-page.atlas-immersive .atlas-fallback {
    inset: 64px 0 calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .atlas-setup-choices {
    grid-template-columns: 1fr;
  }

  .atlas-setup-choice img {
    max-height: min(46vh, 420px);
  }
}

@media (max-width: 620px) {
  .atlas-customer-header {
    min-height: 68px;
    padding: 12px 18px;
  }

  .atlas-customer-header h1 {
    font-size: 24px;
  }

  .atlas-customer-header-note {
    display: none;
  }

  .atlas-customer-header-actions {
    gap: 8px;
  }

  .atlas-customer-account-link {
    min-height: 35px;
    padding: 7px 10px;
  }

  .atlas-customer-page .atlas-detail-scroll {
    padding: 30px 20px;
  }

  .atlas-fallback {
    min-height: 0;
    padding: 30px 18px;
  }

  .atlas-fallback-heading h2 {
    font-size: 36px;
  }

  .atlas-fallback-controls {
    grid-template-columns: 1fr;
  }

  .atlas-fallback-controls .button {
    width: 100%;
  }

  .atlas-plan-panel {
    padding: 24px 20px;
  }
}

.atlas-art-editor {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid rgba(180, 140, 255, 0.4);
  border-radius: 4px;
  background: #0d0d12;
  color: #f3eef8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}
.atlas-art-editor::backdrop {
  background: rgba(3, 3, 6, 0.78);
  backdrop-filter: blur(5px);
}
.atlas-art-editor-card {
  display: grid;
  gap: 12px;
  padding: 16px 16px 18px;
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.atlas-art-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.atlas-art-editor-head p {
  margin: 0;
  color: #b48cff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.atlas-art-editor-head h2 {
  margin: 4px 0 0;
  font: 500 26px/1 "Cormorant Garamond", serif;
}
.atlas-art-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111117;
  color: #aaa7b1;
  font-size: 24px;
  cursor: pointer;
}
.atlas-art-hint {
  margin: 0;
  color: #aaa7b1;
  font-size: 13px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}
.atlas-art-stage {
  display: grid;
  place-items: center;
  min-height: 180px;
  max-height: min(42vh, 340px);
  padding: 10px;
  border: 1px solid rgba(180, 140, 255, 0.28);
  background-color: #d4cfc8;
  background-image:
    linear-gradient(45deg, #bdb6ae 25%, transparent 25%),
    linear-gradient(-45deg, #bdb6ae 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #bdb6ae 75%),
    linear-gradient(-45deg, transparent 75%, #bdb6ae 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.atlas-art-stage canvas {
  max-width: 100%;
  max-height: min(38vh, 320px);
  width: auto;
  height: auto;
  object-fit: contain;
  touch-action: none;
}
.atlas-art-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.atlas-art-fieldset {
  margin: 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.atlas-art-fieldset legend {
  padding: 0;
  color: #8d8a94;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.atlas-art-radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 8px 0;
  color: #c9c6d0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.atlas-art-radios label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.atlas-art-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}
.atlas-art-slider {
  display: grid;
  gap: 6px;
  color: #8d8a94;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.atlas-art-slider input[type="range"] {
  width: 100%;
  accent-color: #b48cff;
}
.atlas-art-editor-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.atlas-art-editor-foot .button {
  min-width: 160px;
}
