/* Design Your Nails photo try-on · V6 Editorial Quiet Luxury skin.
   Same ids and classes as V5, so js/tryon.js runs unchanged. */
:root{--accent:#30231E}
#hand{display:block;max-width:100%;max-height:60vh;margin:6px auto 0;border-radius:0;cursor:pointer;background:#ece5e3;touch-action:manipulation}
.view{padding:18px}.view .badge{z-index:2}
.look{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.look button{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--white);border-radius:0;min-height:30px;padding:3px 10px 3px 5px;font:400 11.5px var(--b);cursor:pointer;text-align:left;max-width:100%}
.look button[aria-pressed=true]{border-color:var(--espresso);box-shadow:0 0 0 1px var(--espresso)}
.look i{width:18px;height:18px;border-radius:50%;border:1px solid var(--line);flex:none}
.look b{font-weight:700}.look span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px;color:var(--muted)}
.row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip{border:1px solid var(--line);background:transparent;border-radius:0;min-height:44px;padding:0 16px;font:600 13px var(--b);cursor:pointer;transition:var(--t-fast)}
.chip:hover{border-color:var(--espresso)}.chip[aria-pressed=true]{background:var(--espresso);color:var(--ivory);border-color:var(--espresso)}
.tone{width:40px;height:40px;border-radius:50%;border:3px solid var(--white);box-shadow:0 0 0 1px var(--line);padding:0;cursor:pointer}
.tone[aria-pressed=true]{box-shadow:0 0 0 2px var(--espresso)}.tone.sm{width:30px;height:30px}
.pick{display:flex;align-items:center;gap:10px;border:1px dashed var(--taupe);border-radius:0;min-height:44px;padding:4px 14px 4px 6px;font:600 13px var(--b);margin-top:12px;width:fit-content;cursor:pointer}
.row .pick{margin-top:0}
.pick input[type=color]{width:30px;height:30px;border:0;padding:0;background:none;border-radius:50%;cursor:pointer}
.ghostb{border:1px solid var(--line);background:transparent;border-radius:0;min-height:44px;padding:0 14px;font:700 10.5px var(--b);letter-spacing:.12em;text-transform:uppercase;cursor:pointer;display:inline-flex;align-items:center}
.ghostb:hover{border-color:var(--espresso)}
#search{flex:1 1 160px;min-width:0;border:1px solid var(--line);background:var(--white);border-radius:0;min-height:44px;padding:0 14px;font:inherit;font-size:15px;color:var(--espresso)}
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:10px 6px;max-height:420px;overflow:auto;padding:6px;border:1px solid var(--line);background:var(--ivory)}
#designs-fr,#designs{max-height:none;overflow:visible;border:0;background:none;padding:4px 0}
.tcol{border:0;background:transparent;padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:7px;border-radius:0;font:500 11.5px/1.3 var(--b);text-align:center;overflow-wrap:anywhere;cursor:pointer;color:var(--espresso)}
.tcol:hover{background:rgba(48,35,30,.05)}
.tcol i{width:46px;height:46px;border-radius:50%;border:1px solid var(--line);box-shadow:inset -5px -6px 10px rgba(0,0,0,.14),inset 5px 5px 8px rgba(255,255,255,.28)}
.tcol small{display:block;color:var(--muted);font-size:10.5px}
.tcol canvas{width:40px;height:54px;border-radius:14px 14px 10px 10px;border:1px solid var(--line)}
.tcol[aria-pressed=true] i,.tcol[aria-pressed=true] canvas{outline:2px solid var(--espresso);outline-offset:3px}
.tcol[aria-pressed=true]{font-weight:700}
.empty{color:var(--muted);font-size:13px;border:1px dashed var(--taupe);border-radius:0;padding:14px;margin:0}
.file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.file:focus-visible+*,label.ghostb:focus-within{outline:2px solid var(--focus);outline-offset:3px}
.svrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.svthumb{border:1px solid var(--line);border-radius:0;padding:0;overflow:hidden;width:72px;height:80px;cursor:pointer;background:#fff}.svthumb img{width:100%;height:100%;object-fit:cover}
[hidden]{display:none!important}
body[data-page=design] .sticky{display:none}
.polish-palette summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;min-height:46px;gap:12px;padding:0 14px;border:1px solid var(--line);font-weight:600;list-style:none}
.polish-palette summary::-webkit-details-marker{display:none}
.polish-palette summary::after{content:"";width:9px;height:9px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-right:3px}
.polish-palette[open] summary::after{transform:rotate(225deg)}
.polish-palette[open] summary{margin-bottom:12px}
.polish-palette .palette-close,.polish-palette[open] .palette-open{display:none}
.polish-palette[open] .palette-close{display:inline}
.design-estimate-link{display:none}
@media(max-width:960px){
 .dy{grid-template-columns:minmax(0,1fr);gap:16px}
 .dy>div{min-width:0}
 .sidebar{display:contents}
 .dy{--hand-height:33vh;--hand-height:33svh}
 .view{display:contents}
 .hand-frame{order:-2;position:sticky;top:66px;z-index:20;display:grid;place-items:center;height:var(--hand-height);padding:4px;background:var(--sand);border-bottom:1px solid var(--line);box-sizing:border-box}
 .view #hand{display:block;width:auto;height:auto;max-height:calc(var(--hand-height) - 9px);max-width:100%;margin:0}
 .view .row{order:-1;display:flex;justify-content:center;gap:8px;margin:0!important}
 .view .ghostb,.design-estimate-link{justify-content:center;min-height:44px}
 .design-estimate-link{display:inline-flex;align-items:center;text-decoration:underline;font-size:13px}
 .look,.view .badge{display:none}
 .est,.sum,.dact,.sidebar>.note,#saved{order:2;min-width:0}
 #design-estimate,.dy :is(input,button,select,summary){scroll-margin-top:calc(82px + var(--hand-height))}
 .step .opts button,.tone,.tone.sm{min-height:44px}
 .tone,.tone.sm{width:44px}
 .step .opts,.step .row{gap:8px}
 #search{font-size:16px}
 #polish-opacity{min-height:44px!important}
 .dact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #dbook,#dshare{grid-column:1/-1}
 .dact .btn{min-height:44px;min-width:0;padding-inline:8px}
 body[data-page=design] footer.site{padding-bottom:40px}
}
@media(max-width:960px) and (max-height:600px){
 .hand-frame{position:static}
 #design-estimate,.dy :is(input,button,select,summary){scroll-margin-top:80px}
}
@media(min-width:961px){.sidebar{max-height:calc(100vh - 112px);overflow-y:auto;scrollbar-width:thin;padding-right:4px}#hand{max-height:46vh}}
