.photo-entry{margin-top:16px}.photo-external-label{font-size:12px;color:var(--muted);margin:22px 0 10px}
.studio-launch{position:relative;isolation:isolate;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:18px;padding:27px 30px;margin:18px 0 24px;border-radius:27px;background:radial-gradient(ellipse at 85% 0,#b7798b77,transparent 65%),#432939;color:#fff1e9;text-decoration:none;overflow:hidden;border:1px solid #ffffff20;min-height:244px}
.studio-launch-copy{display:flex;flex-direction:column;align-items:flex-start;gap:13px;position:relative;z-index:1}.studio-launch-tag{font-size:9px;font-weight:700;letter-spacing:1.7px;color:#edc3d1}.studio-launch-copy strong{font:400 clamp(30px,4.5vw,48px)/1.02 var(--display);letter-spacing:-1.3px}.studio-launch-copy strong em{color:#f5bfd0}.studio-launch-copy>span:not(.studio-launch-tag){font-size:12px;line-height:1.5;color:#e8cdd8}.studio-launch-copy>b{font-size:12px;font-weight:600;border-bottom:1px solid #dfa5bc;padding-bottom:5px}.studio-launch-art{width:min(100%,230px);aspect-ratio:4/5;justify-self:center;position:relative;transform:rotate(5deg);border:5px solid #fff9;border-radius:18px;overflow:hidden;box-shadow:0 18px 45px #160a1f70}.studio-launch-art img{display:block;width:100%;height:100%;object-fit:cover}.studio-launch-after{position:absolute;inset:0 0 0 50%;overflow:hidden;border-left:1px solid #fff}.studio-launch-after img{width:200%;max-width:none;margin-left:-100%}.studio-launch-art>i{position:absolute;left:50%;top:46%;transform:translateX(-50%);font:16px Arial;background:#fff;color:#432939;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}.studio-launch-art>small{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:8px;letter-spacing:1px;padding:6px 9px;background:#261823a6;border-radius:15px;color:white}
.hero-stage .studio-launch{margin:0;min-height:310px;padding:24px 22px 68px;border-radius:26px;border:0}.hero-stage .studio-launch-art{max-width:164px}.studio-trial-label{font-size:10px;color:#ffdae7;border:1px solid #b88c9f;padding:3px 8px;border-radius:20px}.hero-stage .studio-launch-copy{gap:10px}
@media(min-width:640px){.hero-stage .studio-launch{min-height:340px;padding:30px 50px 72px}.hero-stage .studio-launch-art{max-width:190px}}
@media(max-width:639px){.studio-launch{padding:22px 17px;gap:10px;min-height:232px}.studio-launch-copy{gap:12px}.studio-launch-copy>span:not(.studio-launch-tag){font-size:10px}.studio-launch-copy>b{font-size:10px}.studio-launch-tag{font-size:7px;letter-spacing:1px}.studio-launch-art{border-width:4px;border-radius:14px}.studio-launch-copy strong{font-size:30px}}
@media(prefers-reduced-motion:no-preference){.studio-launch-art{animation:studio-float 6s ease-in-out infinite}.studio-launch:before{content:'';position:absolute;inset:-50%;z-index:-1;background:linear-gradient(115deg,transparent 40%,#fff1 50%,transparent 60%);animation:studio-shimmer 9s ease-in-out infinite}@keyframes studio-float{50%{transform:translateY(-5px) rotate(2deg)}}@keyframes studio-shimmer{0%,25%{transform:translateX(-45%)}80%,100%{transform:translateX(45%)}}}
.photo-studio{padding:6px 0 20px}.photo-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 18px}.photo-toolbar>span{font-size:12px;color:var(--muted);width:100%}
.photo-empty{min-height:330px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 22px;border:1px dashed var(--line-2);border-radius:26px;background:radial-gradient(ellipse at 50% 0,var(--rose-soft),transparent 75%),var(--paper)}
.photo-empty-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:22px;background:var(--rose-tint);color:var(--rose-ink);font-size:38px;margin-bottom:20px}
.photo-empty h2{font:500 clamp(32px,6vw,46px)/1.1 var(--display);letter-spacing:-.035em}.photo-empty h2 em{color:var(--rose-ink)}.photo-empty p{font-size:14px;line-height:1.6;max-width:360px;color:var(--muted);margin:16px 0}.photo-empty small{font-size:12px;color:var(--muted)}
.photo-workspace{display:grid;gap:24px;align-items:start}.photo-visual,.photo-adjust{min-width:0}
.photo-preview{display:grid;place-items:center;overflow:hidden;border-radius:22px;background:var(--bg-2);border:1px solid var(--line);min-height:120px}
.photo-preview canvas{display:block;grid-area:1/1;width:auto;height:auto;max-width:100%;max-height:48dvh;object-fit:contain;min-width:0}
.photo-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0}.photo-preview-bar>span{font:500 21px var(--display)}.photo-preview-bar .chip{font-size:12px}
.photo-adjust>.kick{display:block;margin:0 0 12px}.photo-looks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:24px}
.photo-looks button{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:5px 3px 7px;border-radius:13px;border:1px solid transparent;background:var(--paper);color:var(--muted)}
.photo-looks img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;max-height:88px}.photo-looks span{font:600 10px/1.3 var(--sans);text-align:center;overflow-wrap:anywhere;min-height:26px;display:grid;place-items:center}
.photo-looks button[aria-pressed=true]{border-color:var(--rose);box-shadow:0 0 0 1px var(--rose);background:var(--rose-tint);color:var(--rose-ink)}
.photo-intensity{padding:16px;border-radius:18px;background:var(--paper);border:1px solid var(--line);margin:0 0 18px}.photo-intensity label{display:flex;align-items:center;justify-content:space-between;font:700 14px var(--sans)}.photo-intensity output{color:var(--rose-ink);font-variant-numeric:tabular-nums}
.photo-intensity input{display:block;width:100%;height:44px;accent-color:var(--rose);cursor:pointer;margin:4px 0}.photo-intensity>div{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}
.photo-size{text-align:center;font-size:11px;color:var(--muted);margin-top:10px;line-height:1.5}.photo-status{font-size:13px;line-height:1.5;color:var(--muted);margin:16px 0 0;min-height:20px}.photo-status.error{color:var(--rose-ink);font-weight:700}
.photo-note{font-size:11px;line-height:1.6;color:var(--muted);margin-top:10px;max-width:65ch}
.photo-ready{display:grid;gap:12px;padding:18px;border:1px solid var(--line-2);border-radius:20px;background:var(--rose-tint);margin-top:18px}.photo-ready>b{font:500 24px var(--display)}.photo-ready .btn{width:100%;text-align:center;white-space:normal}
.photo-studio button:disabled{opacity:.5;cursor:default}
@media(max-width:639px){.photo-looks{display:flex;overflow-x:auto;padding:3px 3px 8px;margin:0 -3px 16px;scroll-snap-type:x proximity}.photo-looks button{flex:0 0 68px;scroll-snap-align:start}.photo-looks span{font-size:9px}.photo-looks img{max-height:60px}.photo-workspace{gap:12px}.photo-visual{position:sticky;top:calc(128px + env(safe-area-inset-top));z-index:2;background:var(--bg)}.photo-preview canvas{max-height:clamp(160px,27dvh,260px)}.photo-adjust>.kick{font-size:10px}.photo-preview-bar{padding:6px 0}.photo-preview-bar>span{font-size:19px}.photo-intensity{padding:12px;margin-bottom:14px}}
@media(min-width:900px){.photo-workspace{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px}.photo-visual{position:sticky;top:150px}.photo-preview canvas{max-height:58dvh}.photo-toolbar>span{width:auto;margin-left:auto}.photo-empty{min-height:420px}.photo-looks{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.photo-looks img{max-height:64px}.photo-looks span{font-size:9px}}
@media(prefers-reduced-motion:no-preference){.photo-empty{animation:studio-enter .35s var(--ease) both}.photo-looks button{transition:background-color .18s,border-color .18s,box-shadow .18s}.photo-ready{animation:studio-enter .25s var(--ease) both}}
@media(max-width:639px){.has-photo .photo-toolbar>span{display:none}.has-photo .photo-toolbar{margin-bottom:12px}.photo-looks{margin-bottom:10px}.photo-preview canvas{max-height:clamp(160px,26dvh,250px)}}

/* The editing surface gets the screen: fit the original image, never crop it. */
.photo-new{font:700 10px var(--sans);letter-spacing:1px;padding:7px 10px;border-radius:99px;background:var(--rose-tint);color:var(--rose-ink)}
.photo-fit{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:20px;padding:5px 9px;font:10px var(--sans);background:#17121bc9;color:#fff;pointer-events:none}
.photo-save-hint{font-size:11px;line-height:1.4;color:var(--muted);text-align:center;margin:8px 0 0}.photo-save-area .photo-size{margin-top:4px}
.photo-preview{position:relative;display:block;height:clamp(300px,56dvh,650px);min-height:0;background:radial-gradient(ellipse at 50% 20%,var(--paper),var(--bg-2))}
.photo-preview canvas{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;min-width:0;object-fit:contain}
.photo-preview canvas[hidden]{display:none!important}
@media(max-width:899px){
 body:has(#mat:not([hidden]) .has-photo){padding-bottom:0}
 body:has(#mat:not([hidden]) .has-photo) #top,body:has(#mat:not([hidden]) .has-photo) .tabs{display:none}
 #mat:has(.has-photo){padding-inline:12px;padding-top:env(safe-area-inset-top)}
 #mat:has(.has-photo) .photo-heading{position:relative;top:auto;height:62px;padding:6px 0}
 #mat:has(.has-photo) .photo-heading h1{font-size:22px}
 #mat:has(.has-photo) .photo-heading small{font-size:11px}
 .photo-studio.has-photo{height:calc(100dvh - 62px - env(safe-area-inset-top));min-height:590px;display:flex;flex-direction:column;padding:0 0 max(10px,env(safe-area-inset-bottom));gap:8px}
 .has-photo .photo-toolbar{flex:none;margin:0;gap:8px}
 .has-photo .photo-toolbar .btn,.has-photo .photo-toolbar .chip{min-height:44px;padding:8px 13px;font-size:11px}
 .has-photo .photo-toolbar>span{display:none}
 .has-photo .photo-workspace{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:8px}
 .has-photo .photo-visual{position:static;flex:1;min-height:140px;display:flex;flex-direction:column;background:none}
 .has-photo .photo-preview{flex:1;height:auto;min-height:120px;border-radius:18px}
 .has-photo .photo-preview canvas{max-height:100%;width:100%;height:100%}
 .has-photo .photo-preview-bar{padding:5px 0;flex:none;min-height:37px}
 .has-photo .photo-preview-bar>span{font-size:19px}
 .has-photo .photo-preview-bar .chip{font-size:11px;padding:7px 11px;min-height:44px}
 .has-photo .photo-adjust{flex:none;display:grid;grid-template-columns:1fr;gap:7px}
 .has-photo .photo-adjust>.kick{display:none}
 .has-photo .photo-looks{display:flex;overflow-x:auto;margin:0;padding:2px 2px 4px;gap:7px;scrollbar-width:thin}
 .has-photo .photo-looks button{flex:0 0 62px;padding:3px 3px 5px;gap:3px}
 .has-photo .photo-looks img{height:43px;width:100%;max-height:43px}
 .has-photo .photo-looks span{font-size:9px;min-height:23px}
 .has-photo .photo-intensity{padding:10px 12px 4px;margin:0;border-radius:15px}
 .has-photo .photo-intensity label{font-size:12px}
 .has-photo .photo-intensity input{height:30px;margin:0}
 .has-photo .photo-intensity>div{display:none}
 .has-photo .photo-save-area .btn{min-height:46px;padding:12px}
 .has-photo .photo-save-hint{font-size:10px;margin-top:5px;min-height:14px}
 .has-photo .photo-size{display:none}
 .has-photo .photo-note{display:none}
 .has-photo .photo-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
 .has-photo .photo-status.error{position:static;width:auto;height:auto;overflow:visible;clip-path:none;margin:0;font-size:11px}
}
@media(min-width:900px){.photo-visual{top:140px}.photo-preview{height:clamp(360px,60dvh,690px)}.photo-preview canvas{max-height:100%}.photo-adjust{align-self:center}.photo-looks{grid-template-columns:repeat(4,minmax(0,1fr))}.photo-looks img{max-height:84px}.photo-looks span{font-size:10px}}
