
:root{font:14px/1.45 Arial,Helvetica,sans-serif;color:#243342;background:#f5f4f1;--blue:#244eaa;--line:#dde2e7;--muted:#647484;--selected:#edf2fc}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{color:inherit;background:#fff;border:1px solid var(--line);border-radius:10px;padding:8px 12px;min-height:34px;cursor:pointer;line-height:1.2}button:hover:not(:disabled){border-color:#91a6c4;background:#f4f7fb}button:disabled{opacity:.42;cursor:default}button[aria-pressed=true]{border-color:var(--blue);background:var(--selected);color:#183f91;box-shadow:inset 0 0 0 1px var(--blue)}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #639be5;outline-offset:3px}[hidden]{display:none!important}a{color:var(--blue)}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 4vw;border-bottom:1px solid var(--line)}.brand{font-size:23px;letter-spacing:4px;font-weight:700;text-decoration:none}header span{font-size:10px;letter-spacing:1.5px}header b{font-weight:400;color:var(--muted);margin-left:10px}
main{max-width:1480px;margin:auto;padding:24px 4vw}.intro{margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:var(--muted);margin:0 0 5px}h1{font-size:clamp(25px,3vw,36px);font-weight:500;letter-spacing:-.6px;line-height:1.15;margin:8px 0}.intro>p:last-child{color:var(--muted);margin:0;font-size:13px}
.workspace{display:grid;grid-template-columns:370px minmax(0,1fr);gap:24px;align-items:start}.controls{border:1px solid var(--line);border-radius:16px;background:white;overflow:hidden;min-width:0}.controls section,.controls>details{padding:16px;border-bottom:1px solid var(--line)}.controls>details:last-child{border-bottom:0}h2{margin:0 0 12px;font-size:15px;font-weight:600;letter-spacing:-.1px}label,.field-heading{display:block;font-size:12px;font-weight:600;margin:12px 0 6px}label:first-child{margin-top:0}.helper{font-size:11px;line-height:1.45;color:var(--muted);margin:8px 0 0}.helper:empty{display:none}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.row label{margin-top:0}.row:has(#tip-color-group[hidden]){grid-template-columns:minmax(0,1fr)}.row:has(#tip-color-group[hidden])>div:first-child{max-width:180px}
.choices{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.choices button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:32px;font-size:12px;padding:7px 10px;flex:0 1 auto}.choices[data-mixed=true]::after{content:"Mixed selection";font-size:10px;color:var(--muted);align-self:center;padding:3px}.choices-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.choices-service{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.choices-scope button{padding-inline:6px}.choices-undertone button{font-size:11px;padding:6px;flex:1}.choices-design{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.choices-design button{flex-direction:row;gap:6px;font-size:11px;padding:6px;min-height:40px}.choices-effect{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.choices-effect button{flex-direction:row;font-size:11px;padding:7px 3px;gap:4px}.choices-finish button{padding:8px;flex:1}.choices-length{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:12px}.choices-length button{font-size:11px;padding:5px}.choices-copy-kind button{font-size:11px}.choices-technique button{font-size:11px;padding:7px}.choices-background button{font-size:11px;padding:7px;gap:5px}
.shapes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.shape{display:flex;align-items:center;gap:7px;text-align:left;padding:8px;min-height:40px;font-size:11px}.shape svg{height:26px;width:17px;fill:#c8a394;flex-shrink:0;pointer-events:none}.shape[aria-pressed=true] svg{fill:#6383b6}.shape span{min-width:0}.length-control{margin-top:12px}.field-heading{display:flex;justify-content:space-between;margin:0;font-weight:500}.field-heading span{font-size:11px;color:var(--muted)}#shape-description{margin:0 0 10px}#length-note{font-size:10px}
input[type=range]{display:block;width:100%;height:32px;margin:5px 0;accent-color:var(--blue);cursor:pointer}input[type=color]{display:block;width:100%;height:44px;border:1px solid var(--line);background:white;border-radius:10px;padding:4px;cursor:pointer}
.skin-control{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.skin-control>label{display:flex;align-items:center;justify-content:space-between;margin:0}.skin-control output{font-size:10px;color:var(--muted);font-weight:400}.skin-slider-row{display:flex;align-items:center;gap:10px}.skin-swatch{width:27px;height:27px;flex-shrink:0;border-radius:50%;border:1px solid #0002}#skin-depth{appearance:none;-webkit-appearance:none;height:38px;background:transparent;margin:0;min-width:0}#skin-depth::-webkit-slider-runnable-track{height:10px;border-radius:20px;background:var(--skin-gradient)}#skin-depth::-moz-range-track{height:10px;border-radius:20px;background:var(--skin-gradient)}#skin-depth::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid #24487a;margin-top:-7px;box-shadow:0 1px 3px #0003}#skin-depth::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid #24487a}.range-ends{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:-3px 0 8px 37px}.undertone-row{display:flex;align-items:center;gap:10px}.undertone-row>label{font-size:11px;font-weight:400;margin:0}.undertone-row .choices{flex:1}
summary{font-size:12px;font-weight:600;cursor:pointer;min-height:34px;display:flex;align-items:center;gap:8px;list-style:none}summary::-webkit-details-marker{display:none}summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);flex-shrink:0;margin:0 3px}details[open]>summary::before{transform:rotate(45deg)}.summary-value{font-size:10px;font-weight:400;color:var(--muted);margin-left:auto;text-align:right;max-width:55%}.inline-details{margin-top:8px}.inline-details summary{font-size:11px;font-weight:400}.inline-details summary span{margin-left:auto;color:var(--muted)}.controls>details{padding-top:4px;padding-bottom:4px}.controls>details[open]{padding-bottom:14px}.text-button{border:0;background:transparent;color:var(--blue);text-decoration:underline;font-size:11px;padding:6px;box-shadow:none}.checkbox-row{display:flex;align-items:center;gap:8px;font-weight:400;min-height:34px;margin:4px 0}.checkbox-row input{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}.field-mixed{font-size:10px;color:var(--muted);margin-left:5px;font-weight:400}
.part-tabs{display:flex;gap:6px;margin-top:8px}.part-tabs button{flex:1;font-size:12px}.transfer-panel{background:#f8faff}.transfer-panel[open]{border-top:1px solid #c8d7ef}.transfer-actions{display:flex;align-items:center;gap:8px;margin-top:8px}.primary-action{background:var(--blue);border-color:var(--blue);color:white;font-size:12px}.primary-action:hover:not(:disabled){background:#183f91;color:white}.secondary-action{font-size:12px;margin-top:10px}#clipboard-badge{font-size:10px;background:#e5edfb;color:#244eaa;border-radius:12px;padding:2px 7px}#clipboard-badge:empty{display:none}#paste-area{border-top:1px solid #dbe4f0;margin-top:10px;padding-top:4px}#paste-target{font-weight:600;color:#344e72}
.preview{position:sticky;top:16px;min-width:0}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.preview-toolbar strong{font-size:14px;font-weight:500}.history{display:flex;gap:6px}.history button{font-size:21px;width:34px;padding:0}.view-controls{display:flex;align-items:center;gap:8px}.choices-view{flex:1}.choices-view button{font-size:11px;flex:1;padding:6px}.view-controls>button{font-size:11px;padding:7px 10px}.live-scope{background:#e9eef7;color:#3d5579;border-radius:8px;padding:7px 10px;font-size:11px;margin:8px 0}.notice{font-size:11px;color:#426084;background:#edf3fa;border-left:2px solid #849fc2;padding:6px 9px;margin:6px 0}
.stages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stages.single{grid-template-columns:1fr}.stage{display:block;overflow:hidden;min-width:0;border-radius:12px;border:1px solid #d9dee2;background:#eae8e2}.stage.bg-dark{background:#20272d}.stage.bg-check{background:repeating-conic-gradient(#cbd1d5 0% 25%,#eef1f3 0% 50%) 0 0/24px 24px}.stage h3{font-size:11px;font-weight:500;margin:0;padding:8px 10px;background:#f9fafbe8;display:flex;justify-content:space-between;align-items:center}.stage h3 span{font-size:10px;color:var(--muted)}.stage svg{display:block;width:100%;height:clamp(270px,46vh,550px);touch-action:manipulation}.stages.all .stage svg{height:clamp(135px,22vh,240px)}.nail-target{cursor:pointer}.nail-buttons{display:none}
#nail-picker{margin-top:10px}.surface-picker{display:flex;flex-wrap:wrap;gap:6px}.surface-picker button{flex:1;min-width:55px;font-size:11px;padding:6px}.digit-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:6px}.digit-picker button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;padding:6px 4px}.digit-picker i{width:10px;height:17px;border-radius:5px 5px 4px 4px;border:1px solid #0002;background:#78889b;flex-shrink:0}.caption{font-size:10px;color:var(--muted);margin:8px 0}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden;white-space:nowrap}
#detail{margin-top:8px;display:flex;align-items:center;gap:14px;background:white;border:1px solid var(--line);border-radius:12px;padding:10px}#detail svg{flex:0 0 auto;width:160px;height:160px;max-width:42%;background:#eae8e2;border-radius:8px}#detail>div{min-width:0}#detail b{font-weight:500;font-size:13px}#detail p{font-size:11px;margin:4px 0;color:var(--muted)}#detail.bg-dark svg{background:#20272d}#detail.bg-check svg{background:repeating-conic-gradient(#cbd1d5 0% 25%,#eef1f3 0% 50%) 0 0/24px 24px}#detail-toggle[aria-pressed=true]{background:var(--blue);color:white;border-color:var(--blue)}
.choice-sample{display:inline-block;flex-shrink:0;width:12px;height:19px;background:var(--sample-color,#78889b);border:1px solid #0001;border-radius:7px 7px 5px 5px;position:relative;overflow:hidden}.sample-bare{background:#dcc0b2}.sample-french{background:linear-gradient(#fff8ed 28%,var(--sample-color) 28%)}.sample-micro{background:linear-gradient(#fff8ed 11%,var(--sample-color) 11%)}.sample-v-french::after{content:"";position:absolute;inset:0;background:#fff8ed;clip-path:polygon(0 0,100% 0,100% 15%,50% 40%,0 15%)}.sample-ombre{background:linear-gradient(#fff8ed,var(--sample-color))}.sample-dots{background:radial-gradient(circle,#fff8ed 1px,transparent 1.5px) 0 0/6px 6px,var(--sample-color)}.sample-shimmer{background:radial-gradient(circle,#fff 1px,transparent 1.4px) 0 0/4px 5px,var(--sample-color)}.sample-cat-eye{background:linear-gradient(125deg,var(--sample-color) 25%,#fff 48%,var(--sample-color) 65%)}.sample-background{width:15px;height:15px;border-radius:50%}.sample-light{background:#eae8e2}.sample-dark{background:#20272d}.sample-check{background:repeating-conic-gradient(#cbd1d5 0% 25%,#eef1f3 0% 50%) 0 0/8px 8px}
footer{border-top:1px solid var(--line);margin-top:26px;padding-top:14px;font-size:11px;color:var(--muted)}
@media(max-width:1100px){.workspace{grid-template-columns:330px minmax(0,1fr);gap:16px}.stage h3 span{display:none}.digit-picker button{flex-direction:column;gap:3px}.digit-picker i{height:13px;width:8px}.choices-effect{gap:4px}}
@media(max-width:760px){
 header{padding:13px 16px}.brand{font-size:20px}header span{font-size:9px}header b{display:none}main{padding:18px 12px}.intro{margin-bottom:18px}.intro>p:last-child{font-size:12px}
 .workspace{display:flex;flex-direction:column;gap:12px}.controls,.preview{width:100%}.controls section{padding:14px}.controls>details{padding-inline:14px}.controls h2{font-size:14px}
 .preview{order:-1;position:sticky;top:0;z-index:5;background:#f5f4f1;padding:6px 0;border-bottom:1px solid var(--line)}.preview-toolbar{margin-bottom:5px}.preview-toolbar .eyebrow{display:none}.preview-toolbar strong{font-size:12px}.history button{width:34px;min-height:34px}
 .view-controls{gap:5px}.choices-view{gap:4px}.choices-view button{font-size:10px;padding:6px 3px}.view-controls>button{font-size:10px;padding:6px 8px}.live-scope{margin:5px 0;padding:5px 8px;font-size:10px}.notice{font-size:10px;padding:4px 7px;margin:5px 0}
 .stage h3{padding:4px 8px;font-size:10px}.stage svg{height:clamp(160px,25vh,230px)}.stages.all .stage svg{height:clamp(140px,20vh,190px)}.stages{gap:6px}.caption{display:none}
 #nail-picker{margin-top:6px}.surface-picker{gap:4px}.surface-picker button{font-size:10px;padding:5px 3px}.digit-picker{gap:4px;margin-top:4px}.digit-picker button{font-size:10px;flex-direction:row;gap:4px}.digit-picker i{height:13px;width:8px}
 .preview:has(#detail:not([hidden])) .stages{display:none}#detail{gap:10px;padding:7px;margin-top:5px}#detail svg{width:clamp(90px,28vw,125px);height:auto;aspect-ratio:1}#detail b{font-size:12px}#detail p{font-size:10px}
 .choices button{font-size:12px}.choices-design button,.choices-effect button{font-size:11px}.choices-design button{min-height:40px;padding:6px}.choices-undertone button{font-size:11px}.shape{min-height:40px;font-size:11px;padding:7px;gap:6px}.shape svg{height:26px;width:17px}
 .controls button,.controls input,.controls summary{scroll-margin-top:370px}.transfer-actions{flex-wrap:wrap}.choices-length{gap:5px}
}
@media(max-width:360px){.controls section,.controls>details{padding-inline:12px}.shape{font-size:10px;padding:6px;gap:4px}.digit-picker i{display:none}.surface-picker button{font-size:10px}.choices-scope button{font-size:11px}.choices-undertone button{font-size:10px;padding:5px}.undertone-row{gap:6px}.preview-toolbar strong{font-size:11px}}
@media(max-height:600px) and (max-width:760px){.preview{position:relative}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.paste-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #c8d7ef;background:#edf3ff;border-radius:10px;margin-top:8px}.paste-preview b{display:block;font-size:11px;font-weight:600}.paste-preview span{display:block;font-size:10px;color:#536985}.paste-preview button{flex-shrink:0;font-size:11px}
@media(max-width:760px){.paste-preview{margin-top:5px;padding:4px 7px}}

/* Keep navigation and edit controls content-sized on wide canvases. */
@media(min-width:761px){
 .choices-view{flex:0 1 auto}.choices-view button{flex:0 1 auto;min-width:75px}
 .view-controls>button{margin-left:auto}
 .surface-picker button{flex:0 1 auto;min-width:100px}
 .digit-picker{max-width:470px}
 .choices-length{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 .choices-length button{font-size:10px;padding:4px 2px;min-width:0}
}
@media(min-width:361px) and (max-width:760px){
 .choices-length{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
 .choices-length button{font-size:10px;padding:4px 2px;min-width:0}
}



/* Selection scope is distinct from the optional preview camera controls. */
fieldset{border:0;padding:0;margin:0;min-width:0}
.scope-controls{display:flex;align-items:center;gap:6px;margin-bottom:7px}
.scope-controls>label{font-size:10px;white-space:nowrap;margin:0}
.scope-controls .choices{flex:1;display:flex;gap:5px}
.scope-controls .choices button{flex:0 1 auto;font-size:11px;min-height:32px;padding:5px 9px}
.scope-controls>button{font-size:11px;min-height:32px;padding:5px 8px}
.stage[data-linked="5"]{border-color:#9eb1d2}
#geometry-blocked .helper{margin:0}
#geometry-blocked .part-tabs{margin-top:8px}
#geometry-blocked button{flex:0 1 auto}
#scope-note{display:none}
.choices-design button span:last-child{text-align:left}
.choices-effect button{padding:5px 3px}
.history button{min-height:32px;width:32px;font-size:19px}
.surface-picker button,.digit-picker button{min-height:32px}
.choices-view{margin:6px 0}
.controls #choices-view button{min-width:0}
@media(max-width:760px){
 .stages.all .stage svg{height:140px}
 .scope-controls{flex-wrap:wrap;gap:4px}
 .scope-controls>label{width:100%;font-size:10px}
 .scope-controls .choices button{flex:1;font-size:10px;padding:5px;min-width:0}
 .preview-toolbar{margin-bottom:4px}
 .stage h3 span{display:inline;font-size:9px}
 .surface-picker button,.digit-picker button{min-height:32px}
 .choices-design button{flex-direction:row;gap:6px;min-height:40px}
 .choices-effect button{flex-direction:row}
 .choices-finish button{padding:6px}
 .controls section{padding:12px}
 .controls h2{margin-bottom:10px}
 .shape{padding:6px}
}
@media(max-width:360px){
 .choices-design{grid-template-columns:repeat(2,minmax(0,1fr))}
 .row:has(#effect){grid-template-columns:1fr}
 .stages.all .stage svg{height:140px}
}

#choices-length:has(button:last-child:nth-child(2)){grid-template-columns:repeat(2,max-content)}
#choices-length:has(button:last-child:nth-child(2)) button{padding-inline:14px}

/* Effects need one readable row; never squeeze three illustrated chips into half a sidebar. */
.row:has(#effect){grid-template-columns:1fr;gap:8px}
.row:has(#effect)>div{display:flex;align-items:center;gap:10px;min-width:0}
.row:has(#effect) label{min-width:40px;margin:0}
.row:has(#effect) .choices{display:flex;flex-wrap:wrap;gap:6px}
.row:has(#effect) .choices button{padding:5px 8px;min-width:56px;flex:0 1 auto}
@media(max-width:760px){
 .scope-controls>label{width:auto;font-size:9px}
 .scope-controls .choices{min-width:220px}
 .scope-controls .choices button{font-size:10px}
 .stage h3{line-height:1.2;padding:4px 6px}
 .stage h3 span{font-size:8px}
 .live-scope{line-height:1.3}
}


.french-sample{display:block;width:14px;height:24px;flex-shrink:0}


#custom-design-group{margin-top:10px}#custom-note{font:inherit;font-size:12px;line-height:1.5;display:block;width:100%;min-height:76px;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:9px;color:inherit;background:#fff}#custom-note:focus-visible{outline:3px solid #639be5;outline-offset:2px}.custom-sample{width:18px;height:20px;color:#647484}


/* One saved appointment contains every nail, independently of edit scope. */
.set-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.set-actions button{font-size:11px;min-height:34px;padding:7px 10px}
.set-actions span{flex-basis:100%;font-size:10px;color:var(--muted)}
.background-inputs{display:flex;gap:8px;align-items:center}
.background-inputs input[type=color]{width:56px;flex-shrink:0}
#background-hex{min-width:0;width:120px;padding:9px;border:1px solid var(--line);border-radius:8px}
#background-hex[aria-invalid=true]{border-color:#ad3244}
.stage.bg-custom,#detail.bg-custom svg{background:var(--custom-background,#B8C6D9)}
.sample-background.sample-custom{background:conic-gradient(#d8aaa2,#b8c6d9,#7b8e60,#d8aaa2)}
@media(max-width:760px){.set-actions{margin-bottom:5px}.set-actions span{font-size:9px}}


.photo-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.photo-actions button{font-size:11px}
#photo-canvas{display:block;max-width:100%;height:auto;margin:10px auto 0;border-radius:9px;touch-action:none;cursor:grab}
#photo-canvas.picking{cursor:crosshair}
#photo-canvas:focus-visible{outline:3px solid #639be5;outline-offset:3px}
#photo-background label{font-size:11px}
#photo-zoom-value{float:right;font-weight:400}
#photo-background .row{margin-top:4px}
.stage.bg-photo,#detail.bg-photo svg{background-color:#eae8e2;background-repeat:no-repeat}
.sample-background.sample-photo{background:linear-gradient(140deg,#a9d1df 45%,#64825a 46%,#c6b493 75%)}


/* Preview menu: aligned controls, full-width background choices and one photo toolbar. */
#display-options .preview-settings-body{padding-top:8px}
.preview-setting-row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:10px}
#display-options .preview-setting-row>label{margin:0;font-size:11px}
#display-options .preview-setting-row .choices{display:flex;gap:5px;flex-wrap:wrap}
#display-options .preview-setting-row button{flex:0 1 auto;min-height:34px;font-size:11px;padding:6px 9px}
#display-options .choices-view button,#display-options .choices-crop button{flex:1;padding-inline:5px}
#display-options .background-section{border-top:1px solid var(--line);padding-top:12px;margin-top:2px}
#display-options .background-section>label{margin:0 0 7px;font-size:11px}
#display-options .choices-background{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#display-options .choices-background button{flex-direction:column;min-height:46px;gap:4px;padding:6px 2px;font-size:10px;border-radius:9px}
#display-options .sample-background{width:14px;height:14px}
#display-options #custom-background,#display-options #photo-background{margin-top:12px}
#display-options .background-inputs{gap:8px}
#display-options .background-inputs input[type=color]{height:36px;width:42px;border-radius:8px}
#display-options #background-hex{height:36px;width:120px;font-size:12px}
#display-options .photo-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#photo-edit-actions{display:contents}
#display-options .photo-toolbar button{flex:1;min-height:34px;padding:6px 9px;font-size:11px;border-radius:8px}
#display-options #photo-remove{margin-left:auto;color:var(--muted)}
#display-options #photo-canvas{max-width:100%;max-height:180px;width:auto;height:auto;margin:10px auto 0;border:1px solid var(--line)}
#display-options #photo-hint{font-size:10px;margin-top:6px}
.photo-zoom-row{display:grid;grid-template-columns:38px minmax(0,1fr) 36px;align-items:center;gap:8px;margin-top:8px}
#display-options .photo-zoom-row label{margin:0}
#display-options #photo-zoom-value{float:none;font-size:10px;text-align:right;color:var(--muted)}
#display-options .photo-position summary{font-size:11px;font-weight:400;min-height:30px;color:var(--muted)}
#display-options .photo-position .row{gap:12px;margin-top:4px}
#display-options .photo-privacy{font-size:10px;margin-top:8px}
#display-options #photo-status{font-size:10px;margin-top:4px}
@media(max-width:360px){.preview-setting-row{grid-template-columns:48px minmax(0,1fr);gap:7px}#display-options .preview-setting-row button{font-size:10px;padding-inline:5px}#display-options .photo-toolbar button{font-size:10px;padding-inline:7px}}

/* Design tiles share one icon column and one label edge. */
#choices-design button{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;justify-content:stretch;column-gap:7px;padding:7px 8px;min-height:40px;text-align:left}
#choices-design button>:first-child{grid-column:1;justify-self:center;margin:0}
#choices-design button>span:last-child{grid-column:2;justify-self:stretch;text-align:left;min-width:0;line-height:1.25}
/* Keep area and edit scope together, above the preview. */
.edit-target-controls{display:grid;gap:8px;margin:8px 0}
.edit-area-controls,.edit-target-controls .scope-controls{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:6px;margin:0}
.edit-target-label,.edit-target-controls .scope-controls>label{font-size:11px;font-weight:600;margin:0;width:auto}
.edit-target-controls #nail-picker{margin:0;min-width:0}
.edit-target-controls .surface-picker,.edit-target-controls .choices-scope{display:flex;gap:5px;min-width:0;flex-wrap:wrap}
.edit-target-controls .surface-picker button,.edit-target-controls .choices-scope button{flex:1;min-width:0;min-height:32px;font-size:11px;padding:6px}
.edit-target-controls #detail-toggle{grid-column:2;justify-self:start}
.edit-target-controls .digit-picker{margin:0 0 0 102px;max-width:none}
@media(max-width:760px){
 .edit-area-controls,.edit-target-controls .scope-controls{grid-template-columns:minmax(0,1fr);gap:4px}
 .edit-target-label,.edit-target-controls .scope-controls>label{font-size:10px}
 .edit-target-controls .surface-picker button,.edit-target-controls .choices-scope button{font-size:10px;padding:5px 3px}
 .edit-target-controls #detail-toggle{grid-column:1}
 .edit-target-controls .digit-picker{margin:0}
}
/* Mobile editing scrolls normally; a full preview must never cover the controls. */
.appointment-bar{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px;flex-wrap:wrap}
.appointment-choice{min-width:0;flex:1 1 240px}
.appointment-choice>label{font-size:11px;margin:0 0 5px}
.appointment-bar .set-actions{margin:0;flex-wrap:nowrap;flex:0 1 auto}
.appointment-bar .choices-mode button{font-size:11px;padding:7px}
#save-status{font-size:10px;color:var(--muted);margin:0 0 8px}
#save-status:empty{display:none}
.preview-toolbar #detail-toggle{width:auto;font-size:11px;padding:6px 9px}
.preview-view-row{display:flex;align-items:center;gap:8px;margin:8px 0}
.preview-view-row>label{font-size:10px;margin:0;color:var(--muted)}
.preview-view-row .choices-view{display:flex;flex-wrap:wrap;gap:5px}
.preview-view-row .choices-view button{font-size:10px;flex:0 1 auto;padding:5px 9px;min-height:30px}
@media(max-width:760px){
 .preview{position:static;top:auto;z-index:auto}
 .controls button,.controls input,.controls summary{scroll-margin-top:16px}
 .intro{margin-bottom:12px}
 .intro .eyebrow,.intro>p:last-child{display:none}
 .intro h1{font-size:23px;margin:0;line-height:1.2}
 .appointment-bar{gap:7px;margin-bottom:8px}
 .appointment-choice{flex-basis:100%}
 .appointment-bar .set-actions{gap:6px}
 .appointment-bar .set-actions button{font-size:10px;min-height:30px;padding:6px 9px}
 .preview-toolbar{margin:6px 0}
 .preview-view-row{margin:7px 0}
 .preview-toolbar #detail-toggle{font-size:10px;min-height:32px}
 .controls section:first-child .skin-control{border-top:0;margin-top:0;padding-top:0}
}
/* Short screens and expanded previews scroll with the document. */
.preview.preview-too-tall{position:static;top:auto}
@media(max-height:650px){.preview{position:static;top:auto}}
body.studio-embed>header,body.studio-embed .intro{display:none}
body.studio-embed main{padding:12px}

/* Shared appearance settings sit above the design workspace. */
.skin-settings{border:1px solid var(--line);border-radius:10px;background:#fff;padding:12px 16px;margin:0 0 16px}
.skin-settings .skin-control{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 28px;border:0;padding:0;margin:0;align-items:center}
.skin-depth-group{grid-row:1 / 3;min-width:0}
.skin-depth-group>label{display:flex;align-items:center;justify-content:space-between;margin:0;gap:12px}
.skin-settings .range-ends{margin-bottom:0}
.skin-settings .undertone-row{min-width:0}
.skin-settings .undertone-row>label{font-size:12px;font-weight:600}
.skin-settings .helper{grid-column:2;margin:4px 0 0}
.skin-settings .choices-undertone{display:flex;gap:6px}
.skin-settings .choices-undertone button{flex:1;min-width:0;min-height:36px;font-size:12px;padding:6px 9px}
@media(max-width:680px){.skin-settings{padding:12px;margin-bottom:12px}.skin-settings .skin-control{grid-template-columns:minmax(0,1fr);gap:10px}.skin-depth-group{grid-row:auto}.skin-settings .helper{grid-column:1;margin:0}.skin-settings .undertone-row{gap:8px}.skin-settings .choices-undertone button{font-size:11px;padding:6px 5px}}
