.fitRow{gap:7px}.fitRow button,#frontBack{font-size:clamp(13px,3.8vw,17px);padding:7px 12px}
.fitRow input[type=range]{min-width:0;width:50px}
.fitRow label{font-size:14px}
.hairChip{display:inline-block;vertical-align:middle;width:18px;height:18px;border:2px solid #fff;box-shadow:0 0 0 1px #462148;margin-right:6px;border-radius:50%}
.photoHair #note{font-size:clamp(13px,3.65vw,16px)}
.photoHair .rail canvas{height:46px;width:42px;margin:auto;pointer-events:none}
.photoHair #colors button:nth-child(2){padding:0;color:white;text-shadow:0 0 3px #29223a;font-size:21px}
.photoHair #cuts{position:relative}
#frontBack{background:#7050bc;color:white}
@media(max-width:355px){.fitRow button{padding:6px 9px}.photoHair .rail canvas{height:32px}.fitRow{gap:5px}}

.fitRow button{white-space:nowrap}.fitRow #sampleColor{padding-inline:8px}.fitRow #sampleColor i{vertical-align:-3px}
@media(max-width:360px){.fitRow button{font-size:13px;padding-inline:8px}}

.photoHair header #doll{font-size:14px;margin-right:6px;padding:6px 10px}
@media(max-width:355px){.photoHair header h2{font-size:18px}.photoHair header #doll,.photoHair header #save{padding-inline:6px;font-size:13px}}

#photoChoice{width:100%;text-align:center}
#photoChoice p{font-size:13px;margin-top:7px;color:#624776}
#photoChoice button,.salonCamera button{font-size:clamp(14px,3.9vw,17px);padding:8px clamp(8px,3vw,16px)}
#photoChoice svg{margin-right:2px;vertical-align:-5px}
.salonCamera{background:#fff6e6;color:#372451;border:2px solid #402851;border-radius:25px;width:min(96vw,540px);height:92vh;height:92dvh;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px);max-width:none;padding:14px 10px 18px;overflow:auto}
.salonCamera[open]{display:flex;flex-direction:column;align-items:center;gap:14px}
.salonCamera::backdrop{background:#271639bd}
.salonCamera header{padding-inline:5px}
.viewfinder{flex:1;min-height:96px;width:100%;position:relative;border-radius:18px;overflow:hidden;background:#251935;display:grid;place-items:center}
.viewfinder p{color:white;font-size:17px;text-align:center;padding:18px}
.viewfinder video,.viewfinder canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.salonCamera .row{display:none}
.salonCamera[data-state=live] .liveButtons,.salonCamera[data-state=review] .reviewButtons,.salonCamera[data-state=error] .fallbackButtons{display:flex}
.salonCamera:not([data-state=live]) video{opacity:0}
.salonCamera[data-state=error]{height:auto}
.salonCamera[data-state=error] .viewfinder{flex:auto;min-height:140px}
@media(max-height:450px){.salonCamera[open]{gap:8px;padding-block:6px 10px}}



#realHair{display:block;width:100%;max-width:410px;background:#7145c7;color:white;font-size:17px}
.realHair header #backFit{margin-right:6px}
.realHair .tools{max-width:510px;min-width:0;grid-template-columns:minmax(0,1fr);gap:8px}
.realHair .row,.realHair #pigments{gap:6px}
.realHair button:not(.round):not(.swatch){font-size:clamp(13px,3.9vw,17px);padding:7px clamp(8px,2.5vw,13px);border-radius:15px}
.realHair .tools .row>button{flex:1 1 auto}
.realHair #pigments{display:flex;align-items:center}
.realHair #colors{flex:1;min-width:0;padding:4px 2px 6px}
.realHair #colors button{width:39px;height:39px;min-height:39px}
.realHair #brushWidth{min-width:0;flex:1 1 60px}
.realHair .hairSize label{font-size:14px;margin-left:5px}
.realHair .tools:not([data-mode=mask]) #maskTools,.realHair [data-mode=mask] #hairTools,.realHair [data-mode=mask] #pigments,.realHair [data-mode=mask] #area{display:none}
.realHair [inert]{opacity:.5;pointer-events:none}
.realHair #note{font-size:clamp(13px,3.7vw,16px)}
.realHair #board{border-radius:10px}
@media(max-width:355px){.realHair button:not(.round):not(.swatch){padding-inline:6px}.realHair h2{font-size:19px}.realHair .row{gap:4px}}
@media(max-height:680px){.realHair .tools{gap:5px}#realHair{min-height:40px;font-size:15px;padding:5px 10px}}

.realHair #hairTools button{padding-inline:5px}
.hairRing{position:absolute;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #3f2357aa,inset 0 0 0 1px #3f2357aa;transform:translate(-50%,-50%);pointer-events:none}
@media(max-width:355px){.realHair #hairTools button{font-size:12px;padding-inline:3px}}
#app.hairLobby{max-width:460px;margin:auto;gap:clamp(14px,3.4vh,32px);justify-content:flex-start}
.hairLobby header>span{flex:none;width:46px}
.photoStart{margin-top:auto;width:100%;padding:0 0 20px;border:2.5px solid #402851;background:#fffdf9;border-radius:26px;text-align:center;box-shadow:0 5px #402851;overflow:hidden}
.photoArt{height:clamp(106px,26vh,224px);background:radial-gradient(ellipse at 50% 72%,#d8faf5,#93e2db);position:relative;border-bottom:2px solid #402851;margin-bottom:17px}
.photoArt>*{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);height:100%;object-fit:contain}
.photoStart>h2{font-size:clamp(26px,7.5vw,34px);letter-spacing:-1px}
.photoStart>p{margin:4px auto 18px;width:80%;font-size:clamp(15px,4.3vw,18px);line-height:1.3;color:#624776;max-width:295px}
.hairLobby #photoChoice .row{flex-direction:column;gap:12px}
.hairLobby #photoChoice button{width:85%;font-size:18px;min-height:50px}
.hairLobby #photoChoice p{margin-top:16px}
#playDoll{display:flex;align-items:center;justify-content:center;gap:11px;margin-bottom:auto;font-size:16px;padding:4px 14px;background:#ffe2ef}
#playDoll img{height:44px;width:40px}
#playDoll svg{width:18px}
.realHair header #backFit{font-size:13px;padding-inline:9px}
@media(max-height:660px){.photoArt{height:clamp(88px,19vh,120px);margin-bottom:8px}.photoStart{padding-bottom:12px}.photoStart>p{margin-bottom:11px}.hairLobby #photoChoice button{min-height:44px;font-size:16px}.hairLobby #photoChoice .row{gap:9px}#app.hairLobby{gap:14px}#playDoll img{height:36px}}
@media(max-width:355px){.realHair header #backFit{font-size:12px;padding-inline:6px;margin-right:3px}.realHair header{gap:4px}}
