.avatar-identity {
  display: grid;
  gap: 16px;
}

.avatar-identity .section-heading > strong {
  padding: 7px 10px;
  border-radius: 999px;
  color: #087d76;
  background: #e4f7f3;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.avatar-identity__lead {
  margin: 0;
  color: var(--text-muted, #607572);
  line-height: 1.55;
}

.avatar-identity__editor {
  display: grid;
  gap: 10px;
}

.avatar-portrait-upload {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(10, 141, 131, 0.18);
  border-radius: 24px;
  color: var(--text-main, #153f3c);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,249,246,.94));
  box-shadow: 0 14px 38px rgba(11, 83, 78, 0.08);
}

.avatar-portrait-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.avatar-portrait-upload > span:nth-child(3) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.avatar-portrait-upload small {
  color: var(--text-muted, #667d79);
  line-height: 1.35;
}

.avatar-portrait-upload > svg {
  width: 22px;
  color: #078d84;
}

.avatar-portrait-preview {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: #0a9087;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 220, 92, 0.55), transparent 22%),
    linear-gradient(145deg, #dbf7f2, #f8ffff);
  box-shadow: 0 8px 24px rgba(10, 115, 108, 0.18);
}

.avatar-portrait-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Keep cleared portrait controls hidden independently of shared button styles. */
#avatar-portrait-preview[hidden],
#avatar-portrait-remove[hidden] {
  display: none !important;
}

.avatar-portrait-preview:has(img:not([hidden])) > svg {
  display: none;
}

.avatar-portrait-remove {
  min-height: 48px;
}

#miniapp-hero-avatar[data-personal-avatar="true"] {
  width: clamp(118px, 34vw, 178px);
  height: clamp(118px, 34vw, 178px);
  inset: auto 18px 136px auto;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 40%;
  box-shadow: 0 18px 54px rgba(6, 62, 59, 0.3);
}

#miniapp-profile-avatar[data-personal-avatar="true"] {
  object-fit: cover;
  object-position: 50% 40%;
}

html[data-theme="dark"] .avatar-identity .section-heading > strong {
  color: #88eee6;
  background: #174a47;
}

html[data-theme="dark"] .avatar-portrait-upload {
  border-color: rgba(105, 226, 216, 0.2);
  color: #e9fffb;
  background: linear-gradient(145deg, rgba(19, 53, 51, .98), rgba(13, 39, 38, .96));
}

html[data-theme="dark"] .avatar-identity__lead,
html[data-theme="dark"] .avatar-portrait-upload small {
  color: #abc9c5;
}

@media (max-width: 360px) {
  .avatar-portrait-upload {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .avatar-portrait-upload > svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-portrait-upload,
  #miniapp-hero-avatar[data-personal-avatar="true"] {
    transition: none;
  }
}


/* module=profile; channel=miniapp,web; layer=ui; scenario=avatar.environment */
html { --profile-scene: radial-gradient(ellipse at 25% 20%, #b9f1e3 0, transparent 54%), linear-gradient(155deg, #123f48, #317c7c 62%, #163b4a); }
html[data-profile-scene="sea"] { --profile-scene: radial-gradient(ellipse at 72% 14%, #ffedc6, transparent 32%), linear-gradient(178deg, #8edbdc 0 42%, #259dad 43% 57%, #0f5d79 70%, #052c4b); }
html[data-profile-scene="provence"] { --profile-scene: radial-gradient(ellipse at 75% 16%, #ffe2a8, transparent 30%), linear-gradient(168deg, #7185b1, #d7abce 44%, #846897 45%, #514372 70%, #263448); }
html[data-profile-scene="cosmos"] { --profile-scene: radial-gradient(ellipse at 75% 18%, #6274b066, transparent 40%), radial-gradient(ellipse at 22% 62%, #3e8e9a80, transparent 45%), linear-gradient(150deg, #080e24, #162747 65%, #11152e); }
html[data-profile-scene="sea"] .avatar-body-stage,
html[data-profile-scene="provence"] .avatar-body-stage,
html[data-profile-scene="cosmos"] .avatar-body-stage { background:var(--profile-scene); }

html .avatar-body-stage {
  width: min(100%, 840px);
  height: clamp(490px, 72svh, 720px);
  margin: 22px auto 0;
  border-radius: 32px;
}
html .avatar-body-stage .avatar-state {
  object-fit: contain;
  object-position: 50% 50%;
  inset: 30px 12% 90px;
  width: 76%;
  height: calc(100% - 120px);
  transform: none;
  transform-origin: 50% 50%;
  transition: opacity 150ms ease;
}
html .avatar-body-stage[data-preview-kind="illustration"] .avatar-state:not(.avatar-state-current) { opacity: 0 !important; }
html .avatar-body-stage[data-preview-kind="illustration"] .avatar-state-current { opacity: 1 !important; }
html .avatar-body-stage.is-comparing .avatar-state-current { transform: none; }
html .avatar-body-stage .avatar-body-orbit,
html .avatar-body-stage .avatar-scan-line,
html .avatar-body-stage .avatar-stage-readout,
html .avatar-body-stage::before,
html .avatar-body-stage::after,
html .avatar-body-stage[data-preview-kind="illustration"] .avatar-compare { display: none; }
html .avatar-preview-note {
  position: static;
  margin: 16px auto 24px;
  padding-inline: 24px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--ink-soft, #476864);
  max-width: 840px;
}
.avatar-scene-picker { border: 0; padding: 12px 24px; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.avatar-scene-picker legend { padding: 0 0 14px; font-weight: 650; color: var(--ink-soft, #476864); }
.avatar-scene-picker button { min-height: 84px; min-width: 0; padding: 7px; border: 1px solid #6cb2ac66; background: #ffffff88; color: #16433f; border-radius: 17px; font: inherit; font-size: .8rem; cursor: pointer; }
.avatar-scene-picker button[aria-pressed="true"] { border-color: #007f88; box-shadow: 0 0 0 2px #00a39833; }
.avatar-scene-picker i { display: block; width: 100%; height: 37px; border-radius: 10px; margin-bottom: 7px; background: linear-gradient(140deg,#133c49,#97dfcb); }
.avatar-scene-picker [data-scene="sea"] i { background: linear-gradient(#b2e8e1 42%,#209aac 43%,#073958); }
.avatar-scene-picker [data-scene="provence"] i { background: linear-gradient(165deg,#efcbb4,#9c82b7 48%,#514276); }
.avatar-scene-picker [data-scene="cosmos"] i { background: radial-gradient(ellipse at 30% 70%,#346c8e,transparent 65%),#11182f; }
html[data-theme="dark"] .avatar-scene-picker button { color: #dbf9f3; background: #123633; }
html[data-theme="dark"] .avatar-scene-picker legend { color: #b8d9d2; }
html .avatar-body-stage .simulation-note { display: none; }
@media (max-width: 480px) {
  html .avatar-body-stage { border-radius: 24px; min-height: 490px; }
  .avatar-scene-picker { padding-inline: 18px; gap: 7px; }
  .avatar-scene-picker button { font-size: .71rem; }
}
@media (prefers-reduced-motion: reduce) {
  html .avatar-body-stage .avatar-state { transition: none; }
}


/* Use the approved full image composition in My Day, as in the profile hero. */
html #miniapp-hero-avatar:not([data-personal-avatar="true"]) {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% top;
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
}
html[data-profile-gender="male"] #miniapp-hero-avatar:not([data-personal-avatar="true"]),
html[data-profile-gender="female"] #miniapp-hero-avatar:not([data-personal-avatar="true"]) { opacity: 1; }


/* module=profile; channel=miniapp,web; layer=ui; scenario=avatar.editor */
#avatar-studio[data-avatar-editor="ready"] .avatar-studio-hero { padding-bottom: 0; }
#avatar-studio[data-avatar-editor="ready"] .avatar-body-stage {
  width: min(100%, 680px); height: clamp(320px, 45svh, 520px);
  min-height: 0; margin: 0 auto 8px; border-radius: 0; background: transparent;
}
#avatar-studio[data-avatar-editor="ready"] .avatar-body-stage .avatar-state {
  inset: 4px 10% 10px; width: 80%; height: calc(100% - 14px);
  object-fit: contain; object-position: center bottom; transform: none; filter: none;
}
.avatar-editor {
  --editor-ink: #124b51; --editor-soft: #527779;
  position: relative; width: min(calc(100% - 32px), 620px); margin: 0 auto 28px;
  padding: 12px; border: 1px solid #ffffffb8; border-radius: 26px;
  color: var(--editor-ink); background: linear-gradient(140deg,#e8fbf5e0,#a6d8d9c4);
  box-shadow: 0 16px 48px #083e4815; backdrop-filter: blur(22px);
}
.avatar-editor__tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border: 1px solid #ffffffa3; border-radius: 999px; background: #227d8126; }
.avatar-editor__tabs button { min-height: 42px; padding: 8px; border: 1px solid transparent; border-radius: 999px; color: inherit; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.avatar-editor__tabs button[aria-selected="true"] { border-color: #ffffffd6; background: #efffffd9; box-shadow: 0 3px 12px #1854591c; }
.avatar-editor__tabs button:focus-visible, .avatar-editor__photo:focus-visible { outline: 3px solid #0baca9; outline-offset: 3px; }
.avatar-editor__panel { padding: 12px 4px 4px; }
.avatar-editor__panel[hidden], .avatar-editor__reconstruction[hidden] { display: none !important; }
.avatar-editor .section-band { padding: 0; margin: 0; background: none; border: 0; }
.avatar-editor .avatar-identity { gap: 10px; }
.avatar-editor .avatar-identity .section-heading, .avatar-editor .avatar-profile-source__head,
.avatar-editor .body-lab > .section-heading, .avatar-editor .body-presets,
.avatar-editor .body-range-scale, .avatar-editor .body-composition-strip { display: none; }
.avatar-editor .avatar-profile-source { margin: 0; padding: 0; background: none; border: 0; }
.avatar-editor .avatar-profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.avatar-editor .avatar-profile-fields label:has(#avatar-age) { display: none; }
.avatar-editor .avatar-profile-fields label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; min-width: 0; padding: 10px 12px; border: 1px solid #ffffff91; border-radius: 16px; background: #ffffff45; }
.avatar-editor .avatar-profile-fields label > span { grid-column: 1 / -1; font-size: .8rem; color: var(--editor-soft); }
.avatar-editor .avatar-profile-fields input { width: 100%; min-width: 0; min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--editor-ink); font: inherit; font-size: 1.15rem; font-weight: 650; }
.avatar-editor .avatar-profile-fields small { color: var(--editor-soft); }
.avatar-editor .body-control { margin: 12px 0 0; padding: 4px 0; }
.avatar-editor .body-control > span { font-size: .9rem; color: var(--editor-ink); }
.avatar-editor .body-control input[type="range"] { width: 100%; min-height: 36px; margin: 2px 0; accent-color: #1bc3bb; cursor: pointer; }
.avatar-editor .avatar-gender { display: flex; justify-content: center; gap: 8px; margin: 0 0 12px; }
.avatar-editor .avatar-gender button { width: 70px; min-height: 42px; border: 1px solid #ffffffb0; border-radius: 14px; color: var(--editor-ink); background: #ffffff50; font: inherit; }
.avatar-editor .avatar-gender button[aria-pressed="true"] { color: #fff; background: #127f83; }
.avatar-editor .avatar-portrait-upload { min-height: 72px; padding: 10px; gap: 10px; border-radius: 18px; box-shadow: none; background: #ffffff66; }
.avatar-editor .avatar-portrait-preview { width: 46px; height: 46px; }
.avatar-editor .avatar-identity__lead, .avatar-editor .privacy-line, .avatar-editor__hint { color: var(--editor-soft); font-size: .8rem; line-height: 1.45; }
.avatar-editor__hint { margin: 0 0 12px; }
.avatar-editor .privacy-line { padding: 8px 0; margin: 0; }
.avatar-editor__photo { display: block; min-height: 44px; width: min(100%, 300px); margin: 12px auto 0; padding: 10px 20px; border: 1px solid #4e969da1; border-radius: 999px; background: #e4fafb80; color: var(--editor-ink); font: inherit; font-weight: 650; cursor: pointer; }
.avatar-editor .avatar-scene-picker { padding: 4px 0 14px; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.avatar-editor .avatar-scene-picker legend { display: none; }
.avatar-editor .avatar-scene-picker button { min-height: 92px; font-size: .85rem; }
.avatar-editor .avatar-preview-note { margin: 12px 0 0; padding: 0 4px; color: var(--editor-soft); font-size: .75rem; line-height: 1.45; }
.avatar-editor__reconstruction { margin-top: 12px; }
.avatar-editor__reconstruction > summary { cursor: pointer; padding: 12px 0; }
html[data-theme="dark"] .avatar-editor {
  --editor-ink: #effefe; --editor-soft: #b5d7d8;
  border-color: #9fe9e958; background: linear-gradient(140deg,#0a384ddc,#0b243ad9);
}
html[data-theme="dark"] .avatar-editor__tabs { background: #2c8c9b30; border-color: #87d9df78; }
html[data-theme="dark"] .avatar-editor__tabs button[aria-selected="true"] { background: #459ca15c; }
html[data-theme="dark"] .avatar-editor .avatar-profile-fields label,
html[data-theme="dark"] .avatar-editor .avatar-portrait-upload { background: #16495585; border-color: #86d4d35e; }
html[data-theme="dark"] .avatar-editor .avatar-portrait-upload { color: var(--editor-ink); }
html[data-theme="dark"] .avatar-editor__photo { background: #14546288; border-color: #a6e3e799; }
@media (min-width: 900px) { .avatar-editor { padding: 16px; } }


/* One scene preference, two equivalent pickers. */
#display-settings .avatar-scene-picker--settings {
  margin: 18px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; min-width: 0;
}
#display-settings .avatar-scene-picker--settings legend {
  padding: 0 0 12px; font-size: .95rem; font-weight: 600;
}
#display-settings .avatar-scene-picker--settings button {
  min-height: 92px; padding: 6px; border-radius: 15px; font-size: .73rem;
  background: #ffffff52; color: inherit; border-color: #e5ffff9c;
}
#display-settings .avatar-scene-picker--settings button[aria-pressed="true"] {
  border-color: #27c7c8; box-shadow: 0 0 0 2px #36d8d44d, 0 4px 14px #32bfb822;
}
#display-settings .avatar-scene-picker--settings button:focus-visible { outline: 3px solid #1baeb1; outline-offset: 3px; }
#display-settings .avatar-scene-picker--settings i { height: 54px; }
.avatar-scene-picker [data-scene="studio"] i { background: url("./assets/avatar-background-aqua.webp") center 30% / cover; }
.avatar-scene-picker [data-scene="cosmos"] i { background: url("./assets/avatar-background-cosmos.webp") center / cover; }
html[data-theme="dark"] #display-settings .avatar-scene-picker--settings button { background: #133c4d80; border-color: #64b5bc66; }
html[data-theme="dark"] #display-settings .avatar-scene-picker--settings button[aria-pressed="true"] { border-color: #86ffff; }
@media (max-width: 360px) { #display-settings .avatar-scene-picker--settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* A local square photo is a portrait; it is never presented as a full-body model. */
html body.app-redesign #miniapp-profile-avatar[data-personal-avatar="true"],
html body.app-redesign #miniapp-hero-avatar[data-personal-avatar="true"] {
  position: absolute; z-index: 2; inset: 106px 22px auto auto;
  width: clamp(112px, 33vw, 190px); height: auto; aspect-ratio: 1;
  object-fit: cover; object-position: center; opacity: 1;
  border: 3px solid #efffffcc; border-radius: 28%;
  background: #dcefee; box-shadow: 0 12px 35px #082f3b38, 0 0 0 6px #c9f3ef26;
  -webkit-mask-image: none; mask-image: none; transform: none;
}
html body.app-redesign #miniapp-profile-avatar[data-personal-avatar="true"] { top: 155px; right: clamp(20px, 7vw, 60px); }
html[data-theme="dark"] body.app-redesign #miniapp-profile-avatar[data-personal-avatar="true"],
html[data-theme="dark"] body.app-redesign #miniapp-hero-avatar[data-personal-avatar="true"] { border-color: #b0eff1b8; box-shadow: 0 12px 35px #0005, 0 0 0 6px #8be3eb15; }
@media (max-width: 380px) {
  html body.app-redesign #miniapp-profile-avatar[data-personal-avatar="true"] { top: 142px; right: 18px; width: 112px; }
  html body.app-redesign #miniapp-hero-avatar[data-personal-avatar="true"] { top: 100px; right: 16px; width: 105px; }
}


/* Keep the compact studio's person and the editor visible together on phones. */
@media (max-width: 700px) {
  #avatar-studio[data-avatar-editor="ready"] .avatar-topbar {
    min-height:44px; padding:0 18px; margin:0;
  }
  #avatar-studio[data-avatar-editor="ready"] .avatar-topbar > span { display:none; }
  #avatar-studio[data-avatar-editor="ready"] .avatar-topbar .icon-button { width:40px; height:40px; min-height:40px; padding:9px; }
  #avatar-studio[data-avatar-editor="ready"] .avatar-studio-copy { padding:0 20px 4px; text-align:center; }
  #avatar-studio[data-avatar-editor="ready"] .avatar-studio-copy h1 { margin:0; font-size:1.5rem; line-height:1.2; }
  #avatar-studio[data-avatar-editor="ready"] .avatar-body-stage { height:clamp(340px,45svh,440px); min-height:0; }
  #avatar-studio[data-avatar-editor="ready"] .avatar-body-stage .avatar-state { inset:6px 8%; width:84%; height:calc(100% - 12px); }
  .avatar-editor { display:flex; flex-direction:column; margin-bottom:18px; padding:10px; }
  .avatar-editor__tabs { order:0; }
  .avatar-editor__photo { order:1; margin-top:8px; min-height:42px; padding:8px 16px; }
  .avatar-editor__panel { order:2; padding-top:10px; }
  .avatar-editor .avatar-preview-note { order:3; }
  .avatar-editor__hint { font-size:.75rem; margin-bottom:8px; }
  .avatar-editor .avatar-profile-fields label { padding:7px 10px; }
  .avatar-editor .avatar-profile-fields input { min-height:30px; }
}

/* module=profile; channel=miniapp,web; layer=ui; scenario=avatar.turntable */
#avatar-studio .avatar-turntable {
  position:absolute; inset:6px 8%; width:84%; height:calc(100% - 12px);
  object-fit:contain; z-index:4; touch-action:pan-y; cursor:grab;
  user-select:none; -webkit-user-select:none; transition:none;
}
#avatar-studio .avatar-turntable.is-dragging { cursor:grabbing; }
#avatar-studio .avatar-turntable:focus-visible { outline:2px solid #a6e6de; outline-offset:-3px; border-radius:18px; }
#avatar-studio .avatar-turntable[hidden],
#avatar-studio .avatar-turntable-controls[hidden] { display:none !important; }
#avatar-studio .avatar-body-stage.has-turntable-avatar:not(.has-live-avatar) .avatar-state { opacity:0 !important; }
#avatar-studio .avatar-body-stage.has-live-avatar .avatar-turntable { display:none !important; }
#avatar-studio .avatar-turntable-controls {
  display:flex; align-items:center; gap:10px; margin:8px 4px 0;
  color:var(--editor-soft, #54756f);
}
#avatar-studio .avatar-turntable-controls p { flex:1; margin:0; font-size:.72rem; line-height:1.45; }
#avatar-studio .avatar-turntable-controls button {
  flex:none; min-height:40px; padding:8px 12px; border:1px solid rgba(82,155,145,.24);
  border-radius:14px; background:rgba(211,244,237,.55); color:inherit;
  font:inherit; font-size:.76rem; font-weight:650; cursor:pointer;
}

html[data-theme="dark"] #avatar-studio .avatar-turntable-controls { color:#c3e4df; }
html[data-theme="dark"] #avatar-studio .avatar-turntable-controls button { background:#24575899; border-color:#8dc3bf66; }

/* module=profile; channel=miniapp,web; layer=ui; scenario=avatar.demo-video */
#avatar-studio .avatar-demo-switch { display:flex; gap:4px; width:fit-content; margin:10px auto 12px; padding:4px; border:1px solid #9ac9c780; border-radius:16px; background:#e9f6f1a8; }
#avatar-studio .avatar-demo-switch button { min-height:36px; padding:8px 18px; border:0; border-radius:12px; font:inherit; font-size:.8rem; color:#416e73; background:transparent; cursor:pointer; }
#avatar-studio .avatar-demo-switch button[aria-pressed="true"] { color:#075860; background:#c6e9e6; box-shadow:0 2px 8px #175f6520; }
#avatar-studio .avatar-demo-switch button:disabled { opacity:.55; cursor:default; }
#avatar-studio .avatar-demo-video { position:absolute; z-index:4; inset:6px 8%; width:84%; height:calc(100% - 12px); object-fit:contain; background:#f5f6f4; border-radius:20px; transform:none; }
#avatar-studio .avatar-demo-video[hidden],
#avatar-studio #avatar-demo-play[hidden] { display:none !important; }
#avatar-studio .avatar-body-stage.has-demo-video .avatar-state { opacity:0 !important; }
#avatar-studio .avatar-demo-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 12px; padding:10px 18px 0; }
#avatar-studio #avatar-demo-status { flex:1 1 220px; margin:0; color:#527779; font-size:.72rem; line-height:1.5; }
#avatar-studio #avatar-demo-play { min-height:40px; border:1px solid #65aaa985; border-radius:13px; padding:9px 15px; color:#0f5c65; background:#d2eeeb; font:inherit; font-size:.76rem; font-weight:650; cursor:pointer; }
#avatar-studio #avatar-demo-play:disabled { opacity:.55; cursor:wait; }
html[data-theme="dark"] #avatar-studio .avatar-demo-switch { background:#163944a8; border-color:#64999e80; }
html[data-theme="dark"] #avatar-studio .avatar-demo-switch button { color:#bcdfe1; }
html[data-theme="dark"] #avatar-studio .avatar-demo-switch button[aria-pressed="true"] { color:#f0fffc; background:#337775; }
html[data-theme="dark"] #avatar-studio #avatar-demo-status { color:#b5d7d8; }
html[data-theme="dark"] #avatar-studio #avatar-demo-play { color:#e1faf5; background:#245f65; border-color:#81c1bf85; }

/* Keep media additions in the existing studio's visual reading order. */
#avatar-studio[data-avatar-editor="ready"] .avatar-studio-hero { display:flex; flex-direction:column; }
#avatar-studio[data-avatar-editor="ready"] .avatar-studio-hero > .avatar-topbar { order:0; }
#avatar-studio[data-avatar-editor="ready"] .avatar-studio-hero > .avatar-studio-copy { order:1; }
#avatar-studio[data-avatar-editor="ready"] .avatar-studio-hero > .avatar-demo-switch { order:2; }
#avatar-studio[data-avatar-editor="ready"] .avatar-studio-hero > .avatar-body-stage { order:3; flex-shrink:0; }
#avatar-studio[data-avatar-editor="ready"] .avatar-studio-hero > .avatar-demo-controls { order:4; }
#avatar-studio .avatar-demo-controls[hidden],
#avatar-studio #avatar-demo-status[hidden] { display:none !important; }
#avatar-studio .avatar-demo-controls,
#avatar-studio .avatar-editor { scroll-margin-bottom:110px; }
@media (max-width:700px) and (max-height:700px) {
  #avatar-studio[data-avatar-editor="ready"] .avatar-body-stage { height:clamp(230px,42svh,290px); }
  #avatar-studio .avatar-demo-switch { margin-top:6px; margin-bottom:8px; }
}
