/* AI Studio screens (studio, try-on, generate, background, generations). Prefix: .stu- */

.stu-file { position: relative; cursor: pointer; }
.stu-file:focus-within { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.stu-disabled { opacity: .78; cursor: default; }
.stu-disabled:hover { border-color: var(--line-soft); }

/* Horizontal strips (My Designs, product picker) */
.stu-strip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.stu-strip > * { flex: none; scroll-snap-align: start; }
.stu-design { width: 164px; }
.stu-design .media { border-radius: 0; }
.stu-design .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.stu-pick { width: 124px; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; color: var(--text); }
.stu-pick .media { aspect-ratio: 1; }
.stu-pick .cap { padding: 8px 10px 10px; display: block; }
.stu-pick[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245, 168, 0, .35); }
.stu-pick:hover { border-color: var(--line); }

/* Stepper */
.stu-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.stu-stepper li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--faint); text-align: center; position: relative; }
.stu-stepper li .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); font-weight: 800; font-size: 13.5px; z-index: 1; }
.stu-stepper li::before { content: ""; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--surface-3); }
.stu-stepper li:first-child::before { display: none; }
.stu-stepper li.done .n { background: var(--green); color: #04261b; }
.stu-stepper li.done::before, .stu-stepper li.current::before { background: var(--green); }
.stu-stepper li.current { color: var(--gold-2); }
.stu-stepper li.current .n { background: var(--gold); color: var(--gold-ink); }
.stu-stepper li.done { color: var(--muted); }

/* Photo drop / preview */
.stu-drop { border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg-2); min-height: 220px; display: grid; place-items: center; overflow: hidden; color: var(--muted); text-align: center; padding: 16px; }
.stu-drop.has { padding: 0; border-style: solid; }
.stu-drop.has > img, .stu-drop.has > svg { width: 100%; max-height: 380px; object-fit: contain; background: #0c1226; }
.stu-tips { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; font-size: 13.5px; color: var(--muted); }
.stu-tips li { display: flex; gap: 8px; align-items: center; }
.stu-tips svg { color: var(--green); flex: none; }

/* Before / after compare */
.stu-compare { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: #0c1226; touch-action: pan-y; user-select: none; cursor: ew-resize; --pos: 30%; --gy: 24%; --gs: 58%; }
.stu-layer { position: absolute; inset: 0; }
.stu-layer > img, .stu-layer > svg { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stu-after { clip-path: inset(0 0 0 var(--pos)); }
.stu-garment { position: absolute; left: 50%; top: var(--gy); width: var(--gs); transform: translateX(-50%); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); pointer-events: none; }
.stu-garment svg { width: 100%; height: auto; }
.stu-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.stu-divider::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: #fff; color: #0b1020; display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.stu-tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(10, 15, 30, .7); font-size: 11.5px; font-weight: 750; pointer-events: none; }
.stu-tag.l { left: 10px; } .stu-tag.r { right: 10px; }
.stu-ranges { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .stu-ranges { grid-template-columns: 1fr 1fr; } }

/* Busy state */
.stu-busy { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 16px; text-align: center; }
.stu-busy .progress { width: 100%; max-width: 320px; }
.stu-busy .progress > i { width: 0; transition: width .08s linear; }

/* Design workflow strip */
.stu-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stu-flow li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: relative; opacity: .55; }
.stu-flow li.on { opacity: 1; }
.stu-flow li .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #0b1020; background: var(--c, var(--gold)); z-index: 1; }
.stu-flow li::before { content: ""; position: absolute; top: 18px; left: -50%; right: 50%; height: 2px; background: var(--surface-3); }
.stu-flow li:first-child::before { display: none; }
.stu-flow li .t { font-weight: 700; font-size: 13px; color: var(--c, var(--gold)); }
.stu-flow li .s { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
@media (max-width: 480px) { .stu-flow li .s { display: none; } }

/* Generator preview */
.stu-preview .media { border-radius: var(--radius); max-width: 340px; margin: 0 auto; width: 100%; }

/* Background removal */
.stu-checker, .stu-stage.stu-checker, .media.stu-checker { background-color: #e9ecf3; background-image: linear-gradient(45deg, #c9cfdd 25%, transparent 25%, transparent 75%, #c9cfdd 75%), linear-gradient(45deg, #c9cfdd 25%, transparent 25%, transparent 75%, #c9cfdd 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.stu-stage { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: #0c1226; }
.stu-stage > img { width: 100%; height: 100%; object-fit: cover; }
.stu-stage > svg { width: 100%; height: 100%; }
.stu-stage .stu-subject { position: absolute; inset: 12% 16%; display: grid; place-items: center; }
.stu-stage .stu-subject svg { width: 100%; height: 100%; }
.stu-stage.cut > img { -webkit-mask-image: radial-gradient(ellipse 40% 46% at 50% 50%, #000 82%, transparent 100%); mask-image: radial-gradient(ellipse 40% 46% at 50% 50%, #000 82%, transparent 100%); }
.stu-stage .stu-corner { position: absolute; top: 10px; left: 10px; }

/* Generations gallery */
.stu-gen .media { aspect-ratio: 1; }
.stu-gen .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.stu-gen .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.stu-gen .stu-bgthumb { width: 100%; height: 100%; display: grid; place-items: center; color: #46506e; }
