:root {
  color-scheme: dark;
  --bg: var(--atlas-bg);
  --panel: var(--atlas-panel);
  --panel-raised: var(--atlas-panel-raised);
  --line: var(--atlas-line);
  --line-bright: rgba(255, 255, 255, .17);
  --text: var(--atlas-text);
  --muted: var(--atlas-muted);
  --dim: #606b79;
  --accent: var(--atlas-lime);
  --cyan: var(--atlas-cyan);
  --danger: #ff7084;
  --warning: #ffc86f;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 53% -12%, rgba(120,232,255,.08), transparent 30%),
    linear-gradient(180deg, #080b10, #0b0f15 55%, #080b10);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.outfit-ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.ambient-a { width: 400px; height: 400px; top: 10%; left: 42%; background: rgba(120,232,255,.11); }
.ambient-b { width: 330px; height: 330px; right: -170px; bottom: -120px; background: rgba(184,255,61,.09); }

.outfit-topbar {
  position: sticky;
  z-index: 60;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 68px;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,16,.82);
  backdrop-filter: blur(22px) saturate(140%);
}
.outfit-brand { display: inline-flex; width: max-content; align-items: center; gap: 10px; text-decoration: none; }
.outfit-brand img { width: 40px; height: 40px; filter: drop-shadow(0 10px 24px rgba(184,255,61,.08)); }
.outfit-brand > span { display: grid; gap: 3px; }
.outfit-brand strong { font-size: 12px; letter-spacing: .16em; }
.outfit-brand small { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .22em; }
.desktop-nav { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.025); }
.desktop-nav a { min-width: 66px; padding: 8px 13px; border-radius: 99px; color: var(--muted); text-align: center; text-decoration: none; font-size: 11px; transition: color .2s, background .2s; }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a.active { color: #111609; background: var(--accent); font-weight: 700; }
.account-button { justify-self: end; display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; color: #bcc3cc; background: rgba(255,255,255,.03); cursor: pointer; font-size: 10px; }
.account-button:hover { color: var(--text); border-color: rgba(184,255,61,.3); }
.account-button svg { width: 16px; }

.outfit-shell {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(430px, 1fr) minmax(300px, 370px);
  min-height: calc(100dvh - 68px);
  max-height: calc(100dvh - 68px);
}
.slot-panel, .mannequin-panel, .outfit-summary { min-width: 0; min-height: 0; }
.slot-panel {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 19px 24px;
  border-right: 1px solid var(--line);
  background: rgba(8,11,16,.46);
  scrollbar-width: thin;
  animation: studioPanelIn .48s var(--ease) both;
}
@keyframes studioPanelIn { from { opacity: 0; transform: translateY(8px); } }
.studio-heading { margin: 0 3px 23px; }
.kicker { margin: 0 0 8px; color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: .22em; }
.studio-heading h1 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.studio-heading > p:not(.kicker) { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.outfit-legal-note { max-width: 420px !important; color: var(--dim) !important; font-size: 10px !important; }
.outfit-legal-note a { color: var(--accent); text-decoration: none; }
.outfit-legal-note a:hover { text-decoration: underline; }

.model-field, .brief-form { display: grid; gap: 7px; margin-bottom: 14px; }
.model-field > span, .brief-form > label { color: #7f8996; font-size: 9px; font-weight: 650; letter-spacing: .05em; }
.model-field > div, .brief-form > div {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(19,24,33,.78);
  transition: border-color .2s, box-shadow .2s;
}
.model-field > div:focus-within, .brief-form > div:focus-within { border-color: rgba(184,255,61,.38); box-shadow: 0 0 0 3px rgba(184,255,61,.035); }
.model-field input, .brief-form input { width: 100%; min-width: 0; height: 42px; padding: 0 38px 0 13px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.model-field input::placeholder, .brief-form input::placeholder { color: #596372; }
.model-field svg { position: absolute; right: 12px; width: 14px; color: var(--dim); pointer-events: none; transform: rotate(90deg); }
.brief-form input { padding-right: 48px; }
.brief-form button { position: absolute; right: 4px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 9px; color: #111608; background: var(--accent); cursor: pointer; }
.brief-form button:disabled { opacity: .45; cursor: wait; }
.brief-form button svg { width: 16px; }

.slot-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 3px 10px; }
.slot-list-heading h2 { margin: 0; font-size: 12px; }
.slot-list-heading span { color: var(--dim); font-family: ui-monospace, Consolas, monospace; font-size: 9px; }
.slot-list { display: grid; gap: 7px; }
.slot-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,23,32,.62); transition: border-color .2s, background .2s, transform .25s var(--ease); }
.slot-row:hover { transform: translateX(2px); border-color: var(--line-bright); }
.slot-row.active { border-color: rgba(184,255,61,.38); background: rgba(184,255,61,.055); }
.slot-main { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; min-width: 0; min-height: 49px; align-items: center; gap: 9px; padding: 6px 4px 6px 7px; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.slot-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--cyan); background: #1b2531; font-size: 10px; font-weight: 800; }
.slot-row.active .slot-icon, .slot-row.filled .slot-icon { color: #111608; background: var(--accent); }
.slot-copy { display: grid; min-width: 0; gap: 3px; }
.slot-copy strong { font-size: 10px; }
.slot-copy small { overflow: hidden; color: var(--dim); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.slot-count { min-width: 24px; color: #7f8996; font-size: 8px; text-align: center; }
.slot-remove { display: grid; width: 34px; min-height: 42px; align-self: center; place-items: center; margin-right: 4px; border: 0; border-radius: 9px; color: #6e7886; background: transparent; cursor: pointer; }
.slot-remove:hover { color: var(--danger); background: rgba(255,112,132,.07); }
.slot-remove svg { width: 14px; }
.draft-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 14px; }
.draft-actions button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; color: #8d97a4; background: rgba(255,255,255,.02); cursor: pointer; font-size: 9px; }
.draft-actions button:hover:not(:disabled) { color: var(--text); border-color: var(--line-bright); }
.draft-actions button:disabled { opacity: .35; cursor: not-allowed; }
.draft-actions svg { width: 14px; }

.mannequin-panel { display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; padding: 22px clamp(18px,2.5vw,36px) 16px; animation: studioPanelIn .55s .06s var(--ease) both; }
.preview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.preview-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.preview-heading > span { display: inline-flex; align-items: center; gap: 6px; color: #727c8a; font-size: 8px; }
.preview-heading > span i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.mannequin-stage { position: relative; width: min(100%, 620px, calc(83.871dvh - 134.194px)); height: auto; min-height: 0; max-height: calc(100dvh - 160px); aspect-ratio: 520/620; align-self: start; margin: 4px auto 0; overflow: hidden; border-radius: 28px; isolation: isolate; }
.stage-grid { position: absolute; z-index: -1; inset: 6% 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle,black,transparent 72%); }
.mannequin-stage::before { content: ""; position: absolute; z-index: -2; left: 50%; top: 46%; width: min(72%,430px); aspect-ratio: 1; border: 1px solid rgba(120,232,255,.08); border-radius: 50%; background: radial-gradient(circle,rgba(120,232,255,.055),transparent 68%); transform: translate(-50%,-50%); }
.tpose { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 27px 38px rgba(0,0,0,.34)); }
.tpose-guides { fill: none; stroke: rgba(255,255,255,.045); stroke-width: 1; stroke-dasharray: 3 7; }
.mannequin-base { stroke-linecap: round; stroke-linejoin: round; }
.mannequin-face { filter: drop-shadow(0 6px 15px rgba(120,232,255,.055)); }
.mannequin-hairline { fill: rgba(20,42,55,.86); stroke: rgba(164,221,235,.34); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.mannequin-hairline .hair-lock { fill: rgba(18,36,49,.76); }
.mannequin-hairline .hair-detail { fill: none; stroke: rgba(164,221,235,.2); }
.mannequin-details { fill: none; stroke: rgba(214,231,239,.23); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.mannequin-details .joint-detail { stroke: rgba(184,255,61,.12); stroke-dasharray: 2 5; }
.region-shape { fill: transparent; stroke: transparent; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: fill .32s, stroke .32s, filter .32s; }
.region-shape.active { fill: rgba(120,232,255,.13); stroke: rgba(120,232,255,.75); filter: drop-shadow(0 0 10px rgba(120,232,255,.25)); }
.region-shape.filled { fill: rgba(184,255,61,.1); stroke: rgba(184,255,61,.52); }
.region-shape.active.filled { fill: rgba(184,255,61,.17); stroke: var(--accent); filter: drop-shadow(0 0 12px rgba(184,255,61,.25)); }
.prop-region { fill-opacity: .35; stroke-dasharray: 5 7; }

.model-reference { position: absolute; z-index: 5; left: 2.5%; bottom: 7%; display: grid; grid-template-columns: 54px minmax(0,1fr); width: 164px; align-items: center; gap: 9px; padding: 7px; border: 1px solid rgba(120,232,255,.2); border-radius: 13px; background: rgba(11,16,23,.88); box-shadow: 0 14px 34px rgba(0,0,0,.28); backdrop-filter: blur(12px); }
.model-reference-cover { display: grid; width: 54px; height: 54px; overflow: hidden; place-items: center; border-radius: 10px; color: var(--dim); background: var(--panel-raised); }
.model-reference-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.model-reference-cover svg { width: 20px; }
.model-reference > div:last-child { display: grid; min-width: 0; gap: 3px; }
.model-reference small { color: var(--cyan); font-size: 6px; font-weight: 750; letter-spacing: .12em; }
.model-reference strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.model-reference a { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 7px; }.model-reference a:hover { color: var(--text); }.model-reference a svg { width: 10px; }

.body-hotspots { position: absolute; inset: 0; }
.body-hotspots button { position: absolute; z-index: 4; left: var(--x); top: var(--y); display: flex; min-width: 44px; min-height: 44px; align-items: center; gap: 6px; padding: 4px; border: 0; color: var(--text); background: transparent; cursor: pointer; transform: translate(-50%,-50%); }
.hotspot-dot { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(120,232,255,.35); border-radius: 50%; color: var(--cyan); background: rgba(11,16,23,.9); box-shadow: 0 7px 18px rgba(0,0,0,.25); font-size: 8px; font-weight: 800; transition: transform .25s var(--ease), color .2s, background .2s, border-color .2s; }
.hotspot-label { display: inline-flex; max-width: 0; overflow: hidden; align-items: center; gap: 5px; padding: 0; border: 1px solid transparent; border-radius: 99px; color: #cbd2da; background: rgba(12,17,24,.9); opacity: 0; white-space: nowrap; font-size: 8px; transition: max-width .3s var(--ease), opacity .2s, padding .3s var(--ease); }
.hotspot-label b { color: var(--accent); }
.body-hotspots button:hover .hotspot-label, .body-hotspots button:focus-visible .hotspot-label, .body-hotspots button.active .hotspot-label { max-width: 105px; padding: 6px 8px; border-color: var(--line-bright); opacity: 1; }
.body-hotspots button:hover .hotspot-dot, .body-hotspots button.active .hotspot-dot { color: #111608; border-color: var(--accent); background: var(--accent); transform: scale(1.08); }
.body-hotspots button.filled .hotspot-dot::after { content: ""; position: absolute; width: 7px; height: 7px; margin: -25px 0 0 24px; border: 2px solid #0b1016; border-radius: 50%; background: var(--accent); }
.stage-callouts { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.stage-callout { position: absolute; left: var(--x); top: var(--y); display: grid; grid-template-columns: 32px minmax(0,1fr); width: 116px; align-items: center; gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(12,17,24,.84); box-shadow: 0 10px 25px rgba(0,0,0,.2); backdrop-filter: blur(10px); transform: translate(-50%,-50%); pointer-events: auto; text-align: left; cursor: pointer; }
.stage-callout img, .stage-callout-placeholder { width: 32px; height: 32px; object-fit: cover; border-radius: 7px; background: var(--panel-raised); }
.stage-callout div:last-child { min-width: 0; }
.stage-callout strong, .stage-callout small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-callout strong { font-size: 8px; }.stage-callout small { margin-top: 2px; color: var(--dim); font-size: 7px; }
.stage-note { display: flex; max-width: 650px; align-items: flex-start; gap: 7px; margin: 4px auto 0; color: #687381; font-size: 8px; line-height: 1.55; }
.stage-note svg { width: 13px; flex: 0 0 auto; color: var(--warning); }

.outfit-summary { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden; padding: 28px 19px 20px; border-left: 1px solid var(--line); background: rgba(12,16,23,.7); animation: studioPanelIn .55s .12s var(--ease) both; }
.summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.summary-heading h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.summary-close { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; }
.compatibility-summary { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.compatibility-summary svg { width: 17px; flex: 0 0 auto; color: var(--warning); }
.compatibility-summary > div { display: grid; gap: 4px; }
.compatibility-summary strong { font-size: 9px; }.compatibility-summary small { color: var(--dim); font-size: 8px; line-height: 1.45; }
.compatibility-summary.good { border-color: rgba(184,255,61,.18); background: rgba(184,255,61,.035); }.compatibility-summary.good svg { color: var(--accent); }
.compatibility-summary.warning { border-color: rgba(255,200,111,.2); background: rgba(255,200,111,.035); }
.outfit-items { min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.outfit-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.055); animation: outfitItemIn .38s var(--ease) both; animation-delay: calc(var(--item-index,0) * 35ms); }
@keyframes outfitItemIn { from { opacity: 0; transform: translateY(7px); } }
.outfit-item img, .outfit-item-placeholder { display: grid; width: 46px; height: 46px; place-items: center; object-fit: cover; border-radius: 10px; color: var(--dim); background: var(--panel-raised); }
.outfit-item-placeholder svg { width: 18px; }
.outfit-item-copy { min-width: 0; }
.outfit-item-copy > span { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; color: #7d8795; font-size: 7px; }
.outfit-item-copy strong { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.outfit-item-copy small { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 8px; }
.compat-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }.compat-dot.exact { background: var(--accent); }.compat-dot.mismatch { background: var(--danger); }
.outfit-item-actions { display: flex; gap: 2px; }
.outfit-item-actions a, .outfit-item-actions button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; color: #707b88; background: transparent; cursor: pointer; }
.outfit-item-actions a:hover { color: var(--cyan); background: rgba(120,232,255,.055); }.outfit-item-actions button:hover { color: var(--danger); background: rgba(255,112,132,.055); }
.outfit-item-actions svg { width: 13px; }
.summary-empty { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 7px; text-align: center; }
.summary-empty > span { display: grid; width: 52px; height: 52px; margin-bottom: 5px; place-items: center; border: 1px solid var(--line); border-radius: 16px; color: #75808e; background: rgba(255,255,255,.025); }
.summary-empty strong { font-size: 10px; }.summary-empty small { color: var(--dim); font-size: 8px; }
.summary-footer { padding-top: 14px; border-top: 1px solid var(--line); }
.price-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-summary > span { display: grid; gap: 3px; color: var(--muted); font-size: 9px; }.price-summary small { color: var(--dim); font-size: 7px; }
.price-summary output { font-size: 21px; font-weight: 750; letter-spacing: -.03em; }
.summary-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 7px; margin-top: 12px; }
.summary-actions button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-bright); border-radius: 11px; background: var(--panel-raised); cursor: pointer; font-size: 9px; font-weight: 700; }
.summary-actions .save-button { color: #111608; border-color: var(--accent); background: var(--accent); }
.summary-actions svg { width: 14px; }
.summary-toggle, .summary-backdrop, .mobile-nav { display: none; }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(2,4,7,.7); backdrop-filter: blur(4px); }
.product-chooser {
  position: fixed;
  z-index: 160;
  inset: 0 0 0 auto;
  width: min(510px,100vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-left: 1px solid var(--line-bright);
  background: #0d1219;
  box-shadow: -30px 0 80px rgba(0,0,0,.45);
}
.product-chooser[open] { display: grid; grid-template-rows: auto auto auto auto minmax(0,1fr) auto; animation: chooserIn .45s var(--ease); }
@keyframes chooserIn { from { opacity: .45; transform: translateX(44px) scale(.99); } }
.sheet-handle { display: none; }
.chooser-heading { display: flex; min-height: 96px; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px 24px 17px; border-bottom: 1px solid var(--line); }
.chooser-heading h2 { margin: 0; font-size: 21px; }.chooser-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.chooser-heading button, .dialog-close { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); cursor: pointer; }
.chooser-heading button svg, .dialog-close svg { width: 16px; }
.chooser-controls { display: grid; grid-template-columns: minmax(0,1fr) 76px auto; align-items: center; gap: 8px; padding: 13px 18px 8px; }
.chooser-search { display: flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.chooser-search:focus-within { border-color: rgba(184,255,61,.4); }
.chooser-search svg { width: 16px; color: var(--muted); }
.chooser-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.chooser-sort { position: relative; display: flex; min-height: 42px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.chooser-sort::after { content: ""; position: absolute; right: 10px; width: 6px; height: 6px; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg) translateY(-2px); pointer-events: none; }
.chooser-sort select { width: 100%; height: 40px; padding: 0 24px 0 9px; border: 0; outline: 0; appearance: none; color: var(--text); background: transparent; font-size: 8px; cursor: pointer; }
.chooser-sort option { background: var(--panel-raised); }
.compatibility-toggle { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; color: #9ba4b0; cursor: pointer; font-size: 8px; }
.compatibility-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.compatibility-toggle span { position: relative; width: 32px; height: 19px; border-radius: 99px; background: #252c37; transition: background .2s; }
.compatibility-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #9099a5; transition: transform .25s var(--ease), background .2s; }
.compatibility-toggle input:checked + span { background: rgba(184,255,61,.25); }.compatibility-toggle input:checked + span::after { background: var(--accent); transform: translateX(13px); }
.compatibility-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chooser-status { min-height: 26px; padding: 2px 19px 7px; color: var(--dim); font-size: 8px; }
.chooser-current { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 0 18px 8px; padding: 9px 10px; border: 1px solid rgba(184,255,61,.2); border-radius: 12px; background: rgba(184,255,61,.045); animation: chooserCurrentIn .3s var(--ease); }
@keyframes chooserCurrentIn { from { opacity: 0; transform: translateY(-5px); } }
.chooser-current-copy { display: grid; min-width: 0; gap: 3px; }
.chooser-current-copy small { color: var(--accent); font-size: 7px; font-weight: 750; letter-spacing: .08em; }
.chooser-current-copy strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chooser-current button { min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 8px; }
.chooser-current button:hover { color: var(--danger); border-color: rgba(255,112,132,.35); }
.chooser-feed { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.chooser-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: max-content; align-content: start; gap: 10px; padding: 7px 18px 12px; }
.chooser-card { position: relative; display: grid; grid-template-rows: auto auto; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); animation: chooserCardIn .42s var(--ease) both; animation-delay: calc(var(--card-index,0) * 35ms); transition: border-color .25s, transform .32s var(--ease), box-shadow .32s var(--ease); }
@keyframes chooserCardIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.chooser-card:hover { border-color: var(--line-bright); transform: translateY(-2px); box-shadow: 0 15px 35px rgba(0,0,0,.22); }
.chooser-card.selected { border-color: rgba(184,255,61,.58); box-shadow: 0 0 0 1px rgba(184,255,61,.08),0 15px 35px rgba(0,0,0,.2); }
.chooser-card.just-selected { animation: chooserSelected .55s var(--ease); }
@keyframes chooserSelected { 45% { transform: translateY(-3px) scale(1.012); box-shadow: 0 0 0 4px rgba(184,255,61,.12); } }
.chooser-skeleton { pointer-events: none; }
.chooser-skeleton .chooser-card-media, .chooser-skeleton i { position: relative; overflow: hidden; background: rgba(255,255,255,.055); }
.chooser-skeleton .chooser-card-media::after, .chooser-skeleton i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent); transform: translateX(-100%); animation: shimmer 1.35s infinite; }
.chooser-skeleton i { display: block; width: 85%; height: 9px; border-radius: 5px; }.chooser-skeleton i:nth-child(2) { width: 55%; }.chooser-skeleton i:nth-child(3) { width: 72%; }
@keyframes shimmer { to { transform: translateX(100%); } }
.chooser-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--panel-raised); }
.chooser-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s var(--ease),filter .35s; }
.chooser-card:hover .chooser-card-media img { transform: scale(1.045); filter: saturate(1.05); }
.chooser-card-media .image-fallback { display: grid; width: 100%; height: 100%; place-items: center; color: var(--dim); }.chooser-card-media .image-fallback svg { width: 28px; }
.chooser-compatibility { position: absolute; left: 7px; bottom: 7px; padding: 4px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: #cbd2da; background: rgba(8,11,16,.78); backdrop-filter: blur(8px); font-size: 7px; }
.chooser-compatibility.exact { color: #111608; border-color: var(--accent); background: var(--accent); }.chooser-compatibility.mismatch { color: white; border-color: var(--danger); background: var(--danger); }
.chooser-dismiss { position: absolute; z-index: 2; top: 7px; right: 7px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #c3cad3; background: rgba(8,11,16,.76); backdrop-filter: blur(8px); cursor: pointer; opacity: 0; transform: translateY(-3px); transition: opacity .2s,transform .25s var(--ease),background .2s; }
.chooser-card:hover .chooser-dismiss, .chooser-dismiss:focus-visible { opacity: 1; transform: translateY(0); }.chooser-dismiss:hover { color: white; background: rgba(255,112,132,.75); }.chooser-dismiss svg { width: 13px; }
.chooser-card-copy { display: grid; gap: 7px; padding: 10px; }
.chooser-card-copy strong { display: -webkit-box; min-height: 34px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 10px; line-height: 1.5; }
.chooser-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 7px; }.chooser-card-meta span { color: var(--muted); font-size: 9px; font-weight: 700; }.chooser-card-meta small { max-width: 78px; overflow: hidden; color: var(--dim); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.chooser-card-actions { display: grid; grid-template-columns: minmax(0,1fr) 34px 34px; gap: 6px; }
.chooser-add, .chooser-compare, .chooser-link { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; cursor: pointer; font-size: 8px; }
.chooser-add { color: #111608; border-color: var(--accent); background: var(--accent); font-weight: 750; }.chooser-add.is-remove { color: #d2d8df; border-color: var(--line-bright); background: rgba(255,255,255,.045); }
.chooser-compare, .chooser-link { color: var(--muted); background: transparent; }.chooser-compare[aria-pressed="true"] { color: #111608; border-color: var(--cyan); background: var(--cyan); }.chooser-card-actions svg { width: 13px; }
.chooser-empty { display: grid; min-height: 240px; place-items: center; align-content: center; gap: 7px; color: var(--muted); text-align: center; }.chooser-empty > svg { width: 35px; height: 35px; margin-bottom: 6px; color: var(--dim); }.chooser-empty strong { font-size: 11px; }.chooser-empty small { max-width: 260px; color: var(--dim); font-size: 8px; line-height: 1.55; }
.chooser-more { display: flex; width: calc(100% - 36px); min-height: 44px; align-items: center; justify-content: center; gap: 7px; margin: 2px 18px 18px; border: 1px solid var(--line-bright); border-radius: 11px; background: var(--panel); cursor: pointer; font-size: 9px; }.chooser-more svg { width: 14px; }
.chooser-actionbar { display: grid; grid-template-columns: auto auto auto minmax(0,1fr); align-items: center; gap: 7px; min-height: 63px; padding: 9px 18px max(9px,env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(13,18,25,.96); }
.chooser-actionbar button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--panel); cursor: pointer; font-size: 8px; }
.chooser-actionbar button:disabled { opacity: .38; cursor: not-allowed; }.chooser-actionbar svg { width: 13px; }
.chooser-actionbar .chooser-compare-toggle[aria-pressed="true"] { color: var(--cyan); border-color: rgba(120,232,255,.4); }
.chooser-actionbar .chooser-favorites { color: var(--accent); border-color: rgba(184,255,61,.22); background: rgba(184,255,61,.055); }
.chooser-actionbar .chooser-next { justify-self: stretch; color: #111608; border-color: var(--accent); background: var(--accent); font-weight: 750; }

.auth-dialog { width: min(410px,calc(100vw - 28px)); margin: auto; padding: 28px; border: 1px solid var(--line-bright); border-radius: 22px; background: #10151d; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.auth-dialog[open] { animation: dialogIn .32s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dialog-close { position: absolute; top: 15px; right: 15px; }
.auth-dialog > img { display: block; margin-bottom: 18px; }
.auth-dialog h2 { margin: 0; font-size: 24px; }.auth-dialog > p:not(.kicker) { margin: 12px 0 20px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.auth-dialog form { display: grid; gap: 8px; }.auth-dialog form label { color: #858f9c; font-size: 9px; }.auth-dialog form input { height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--text); background: var(--panel-raised); font-size: 12px; }.auth-dialog form input:focus { border-color: rgba(184,255,61,.4); }.auth-dialog form button { min-height: 44px; margin-top: 3px; border: 0; border-radius: 11px; color: #111608; background: var(--accent); cursor: pointer; font-size: 10px; font-weight: 750; }
.auth-home-link { display: grid; min-height: 44px; place-items: center; margin: 0 0 10px; border-radius: 11px; color: #111608; background: var(--accent); text-decoration: none; font-size: 10px; font-weight: 750; }
.auth-session { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(184,255,61,.16); border-radius: 13px; background: rgba(184,255,61,.035); }.auth-session > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: #111608; background: var(--accent); }.auth-session > span svg { width: 17px; }.auth-session > div { display: grid; min-width: 0; gap: 4px; }.auth-session strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.auth-session small { color: var(--dim); font-size: 8px; }.auth-session button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; cursor: pointer; font-size: 8px; }
.auth-feedback { display: block; min-height: 17px; margin-top: 12px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.toast-region { position: fixed; z-index: 300; left: 50%; bottom: 24px; display: grid; gap: 7px; width: min(420px,calc(100vw - 24px)); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 11px 14px; border: 1px solid var(--line-bright); border-radius: 11px; color: var(--text); background: rgba(20,26,35,.96); box-shadow: 0 16px 45px rgba(0,0,0,.35); font-size: 9px; text-align: center; animation: toastIn .3s var(--ease),toastOut .25s 2.8s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } } @keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1180px) and (min-width: 761px) {
  .outfit-shell { grid-template-columns: 230px minmax(390px,1fr) 300px; }
  .slot-panel { padding-right: 13px; padding-left: 13px; }
  .outfit-summary { padding-right: 14px; padding-left: 14px; }
  .stage-callout { display: none; }
  .model-reference { left: 2%; bottom: 5%; width: 142px; grid-template-columns: 46px minmax(0,1fr); }
  .model-reference-cover { width: 46px; height: 46px; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); overscroll-behavior-y: auto; }
  body.sheet-open { overflow: hidden; }
  .outfit-ambient { opacity: .45; filter: blur(80px); }
  .outfit-topbar { grid-template-columns: 1fr auto; height: 58px; padding: 0 13px; }
  .outfit-brand img { width: 36px; height: 36px; }
  .outfit-brand strong { font-size: 10px; }.outfit-brand small { font-size: 6px; }
  .desktop-nav { display: none; }
  .account-button { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .account-button span { display: none; }
  .outfit-shell { display: flex; min-height: auto; max-height: none; flex-direction: column; }
  .slot-panel { overflow: visible; padding: 24px 13px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .studio-heading { margin: 0 2px 18px; }.studio-heading h1 { font-size: 23px; }.studio-heading > p:last-child { font-size: 10px; }
  .model-field > span, .brief-form > label { font-size: 10px; }
  .model-field input, .brief-form input { font-size: 16px; }
  .brief-form { margin-bottom: 17px; }
  .slot-list-heading { margin-top: 14px; }
  .slot-list { display: flex; gap: 7px; margin: 0 -13px; padding: 1px 13px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .slot-list::-webkit-scrollbar { display: none; }
  .slot-row { display: block; min-width: 102px; flex: 0 0 auto; scroll-snap-align: start; }
  .slot-main { grid-template-columns: 34px minmax(0,1fr); min-height: 48px; padding-right: 8px; }
  .slot-copy small { max-width: 52px; }.slot-count { display: none; }.slot-remove { display: none; }
  .draft-actions { display: none; }
  .mannequin-panel { display: block; overflow: visible; padding: 17px 8px 14px; }
  .preview-heading { padding: 0 6px 4px; }.preview-heading h2 { font-size: 16px; }
  .mannequin-stage { width: min(100%, calc(83.871dvh - 125.806px)); height: auto; min-height: 0; max-height: calc(100dvh - 150px); margin-top: 0; overflow: visible; aspect-ratio: 520/620; }
  .tpose { width: 100%; height: 100%; max-height: none; }
  .stage-grid { inset: 4% 0; }
  .hotspot-dot { width: 32px; height: 32px; }
  .hotspot-label { position: absolute; left: 34px; }
  .body-hotspots button:nth-child(n+6) .hotspot-label { right: 34px; left: auto; }
  .body-hotspots button.active .hotspot-label { max-width: 96px; }
  .stage-callout { display: none; }
  .model-reference { left: 2%; bottom: 4%; width: 142px; grid-template-columns: 46px minmax(0,1fr); }
  .model-reference-cover { width: 46px; height: 46px; }
  .stage-note { margin: 5px 8px 0; font-size: 8px; }
  .outfit-summary { position: fixed; z-index: 180; right: 0; bottom: 0; left: 0; display: grid; width: 100%; height: min(78dvh,680px); padding: 23px 16px var(--atlas-safe-bottom); border: 1px solid var(--line-bright); border-bottom: 0; border-radius: 24px 24px 0 0; background: #0d1219; box-shadow: 0 -24px 70px rgba(0,0,0,.45); visibility: hidden; transform: translateY(103%); transition: transform .42s var(--ease),visibility .42s; }
  .outfit-summary::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.2); transform: translateX(-50%); }
  .outfit-summary.mobile-open { visibility: visible; transform: translateY(0); }
  .summary-close { display: grid; }
  .summary-backdrop { position: fixed; z-index: 170; inset: 0; border: 0; background: rgba(2,4,7,.7); visibility: hidden; opacity: 0; transition: opacity .3s,visibility .3s; }
  .summary-backdrop.open { display: block; visibility: visible; opacity: 1; }
  .summary-toggle { position: fixed; z-index: 145; right: 13px; bottom: calc(77px + env(safe-area-inset-bottom)); display: flex; min-width: 150px; min-height: 47px; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px; border: 1px solid rgba(184,255,61,.27); border-radius: 99px; color: var(--text); background: rgba(16,22,29,.94); box-shadow: 0 13px 38px rgba(0,0,0,.38); backdrop-filter: blur(16px); cursor: pointer; }
  .summary-toggle > span { display: inline-flex; align-items: center; gap: 6px; }.summary-toggle svg { width: 15px; color: var(--accent); }.summary-toggle b { font-size: 9px; }.summary-toggle strong { color: var(--accent); font-size: 11px; }
  .mobile-nav { position: fixed; z-index: 150; right: 10px; bottom: max(8px,env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(3,1fr); min-height: 58px; padding: 5px; border: 1px solid var(--line-bright); border-radius: 18px; background: rgba(14,18,25,.95); box-shadow: 0 16px 50px rgba(0,0,0,.42); backdrop-filter: blur(20px); }
  .mobile-nav a { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 13px; color: var(--muted); text-decoration: none; font-size: 9px; }
  .mobile-nav a.active { color: #111608; background: var(--accent); }.mobile-nav svg { width: 17px; height: 17px; }
  body.sheet-open .mobile-nav, body.sheet-open .summary-toggle { visibility: hidden; opacity: 0; pointer-events: none; }
  .product-chooser { inset: auto 0 0; width: 100%; height: min(82dvh,720px); border: 1px solid var(--line-bright); border-bottom: 0; border-radius: 24px 24px 0 0; }
  .product-chooser[open] { animation: chooserMobileIn .42s var(--ease); }
  @keyframes chooserMobileIn { from { transform: translateY(40%); opacity: .55; } }
  .sheet-handle { display: block; width: 42px; height: 4px; margin: 8px auto -4px; border-radius: 99px; background: rgba(255,255,255,.22); }
  .chooser-heading { min-height: 78px; padding: 15px 14px 11px; }.chooser-heading h2 { font-size: 18px; }.chooser-heading small { font-size: 8px; }
  .chooser-controls { grid-template-columns: minmax(0,1fr) 82px; padding: 9px 12px 5px; }.chooser-search input { font-size: 16px; }.compatibility-toggle { grid-column: 1 / -1; min-height: 36px; justify-content: flex-end; }
  .chooser-status { padding-right: 13px; padding-left: 13px; }
  .chooser-current { margin: 0 10px 7px; }
  .chooser-products { gap: 8px; padding: 6px 10px 12px; }
  .chooser-card-copy { padding: 8px; }.chooser-card-copy strong { font-size: 9px; }
  .chooser-card-actions { grid-template-columns: minmax(0,1fr) 36px 36px; }
  .chooser-add,.chooser-compare,.chooser-link { min-height: 40px; }
  .chooser-dismiss { opacity: 1; transform: none; }
  .chooser-more { width: calc(100% - 20px); margin: 0 10px 12px; }
  .chooser-actionbar { min-height: 64px; gap: 6px; padding: 8px 10px var(--atlas-safe-bottom); }
  .chooser-actionbar button { min-height: 42px; padding: 0 8px; }
  .auth-dialog { padding: 24px 20px; }.auth-dialog form input { font-size: 16px; }
  .toast-region { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .mannequin-stage { min-height: 0; }
  .studio-heading > p:last-child { max-width: 290px; }
  .chooser-products { grid-template-columns: 1fr 1fr; }
}

@media (forced-colors: active) {
  .region-shape.active, .region-shape.filled { stroke: ButtonText; stroke-width: 4; }
  .hotspot-dot, .slot-row.active { border: 2px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
