:root{color-scheme:light;--paper:#f7f4ee;--surface:#fffdf9;--ink:#302923;--muted:#756a62;--line:#e1d9d0;--wine:#7b3548;--wine-soft:#f0e5e6;--blue:#3475b9;--serif:Georgia,'Times New Roman',serif;--sans:Arial,'Noto Sans TC','PingFang TC','Microsoft JhengHei',sans-serif}
*{box-sizing:border-box}
html{scroll-padding-bottom:92px}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 var(--sans);-webkit-font-smoothing:antialiased}
button,input,a,select{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer;min-height:40px}
button:disabled{opacity:.4;cursor:default}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:4px}
button:focus-visible,input:focus-visible,a:focus-visible,canvas:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--wine);outline-offset:4px}
[hidden]{display:none!important}
h1,h2,h3,p,figure{margin:0}
.topbar,main,.site-footer{max-width:1320px;margin:auto;padding-left:32px;padding-right:32px}
.topbar{min-height:76px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:14px;flex-shrink:0}
.brand-logo{display:block;width:164px;height:auto}
.brand small{font-size:14px;color:var(--muted)}
.topbar>a:last-child{font-size:15px;color:var(--muted);white-space:nowrap}
.skip-link{position:fixed;left:20px;top:12px;transform:translateY(-160%);z-index:100;background:var(--wine);color:white;padding:10px 16px;border-radius:6px}
.skip-link:focus{transform:none}
.intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 0 18px}
.intro h1{font-size:36px;font-weight:550;line-height:1.35;letter-spacing:-.6px}
.intro p{margin-top:8px;font-size:16px;color:var(--muted)}
#help-toggle{border:1px solid var(--line);padding:8px 14px;border-radius:7px;white-space:nowrap;font-size:15px}
#help-toggle:hover{border-color:var(--wine);color:var(--wine)}
.project-purpose{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:36px;padding-bottom:20px;margin-bottom:24px;border-bottom:1px solid var(--line);font-size:15px;line-height:1.85}
.project-purpose p+p{color:var(--muted)}
.project-purpose a{color:var(--wine);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.usage-help{margin:0 0 24px;padding:16px 20px;border:1px solid #d9c8ca;border-radius:9px;background:var(--wine-soft);font-size:16px;line-height:1.9}
.usage-help ol{display:grid;grid-template-columns:1fr 1fr;gap:8px 34px;padding-left:20px;margin:0}
#studio{scroll-margin-top:16px}
.guide-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:28px}
.guide-steps button{display:grid;grid-template-columns:25px minmax(0,1fr);column-gap:8px;align-items:center;text-align:left;min-height:66px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:16px}
.guide-steps .step-number{display:flex;align-items:center;justify-content:center;width:24px;height:24px;grid-row:1/3;border-radius:50%;font-size:14px;background:#ebe5dd;color:var(--muted)}
.guide-steps small{display:block;min-height:15px;font-size:13px;color:var(--muted)}
.guide-steps button[aria-current=step]{border-color:var(--wine);background:var(--wine-soft);color:var(--wine)}
.guide-steps button[aria-current=step] .step-number{background:var(--wine);color:white}
.guide-steps button:hover{border-color:#bc909b}
.guide-steps button.is-complete:not([aria-current=step]) .step-number{background:#e8d9dc;color:var(--wine)}
.tryon-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:start}
.guide-panel,.result-panel,.advanced,.advanced-workspace>section{min-width:0}
.guide-heading{margin-bottom:20px}
.guide-heading h2{font-size:26px;line-height:1.5;font-weight:550;scroll-margin-top:20px}
.guide-heading p{font-size:15px;line-height:1.9;color:var(--muted);margin-top:7px;max-width:490px}
.sources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.source-card{position:relative;display:flex;flex-direction:column;gap:9px;padding:7px;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);text-align:left;transition:border-color .15s,background .15s}
.source-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:5px}
.source-card span{font-size:15px;padding:1px 4px 3px}
.source-card:hover,.reference-card:hover{border-color:#bc909b}
.source-card[aria-pressed=true],.reference-card[aria-pressed=true]{border-color:var(--wine);background:var(--wine-soft)}
.source-card[aria-pressed=true]:after,.reference-card[aria-pressed=true]:after{content:'✓';position:absolute;top:12px;right:12px;display:grid;place-items:center;width:23px;height:23px;border:1px solid #ffffff80;border-radius:50%;background:var(--wine);color:#fff;font-size:16px;box-shadow:0 1px 5px #30292330}
.source-note{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px;font-size:14px;color:var(--muted)}
.upload-trigger{font-size:14px;color:var(--muted);padding:0;min-height:36px}
.upload-trigger:hover{color:var(--wine);text-decoration:underline;text-underline-offset:3px}
.makeup-library-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.reference-filters{display:flex;gap:3px;padding:3px;border-radius:7px;background:#e9e2d9;min-width:0}
.reference-filters button{padding:5px 11px;min-height:34px;border-radius:4px;font-size:14px;white-space:nowrap}
.reference-filters button[aria-pressed=true]{color:var(--wine);background:var(--surface);box-shadow:0 1px 3px #3029230b}
.references{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.reference-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;padding:5px;border:1px solid var(--line);border-radius:8px;background:var(--surface);text-align:left;transition:border-color .15s,background .15s}
.reference-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:4px}
.reference-card strong{font-size:15px;font-weight:500;display:block;padding:0 3px 3px}
.reference-card small{display:none}
.reference-card .applied-check{display:block;font-size:13px;color:var(--wine);padding:0 3px 3px}
.reference-availability{font-size:13px;color:var(--muted)}
.empty-options{padding:20px;border:1px dashed #cbbcaf;border-radius:8px;font-size:16px;line-height:1.9;color:var(--muted)}
.reference-preview-row{padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
#selected-reference{display:flex;align-items:center;gap:16px;width:100%;padding:0;text-align:left;border-radius:7px}
#selected-reference-image{display:block;width:104px;height:104px;object-fit:cover;border-radius:7px;border:1px solid var(--line);flex-shrink:0}
#selected-reference>span{display:grid;gap:5px}
#selected-reference small{font-size:13px;color:var(--muted)}
#selected-reference strong{font-size:17px;font-weight:500}
#selected-reference-description{font-size:15px;color:var(--muted)}
.step-adjustments{margin-top:20px;padding:15px 18px 9px;border:1px solid #dfcbd0;border-radius:9px;background:#f2e9e8}
.applied-status{font-size:15px;color:var(--wine);margin-bottom:10px}
.editor-field{margin:8px 0}
.editor-field label,.whole-hue label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:15px}
.editor-field output,.whole-hue output{color:var(--wine);font-size:14px;font-variant-numeric:tabular-nums}
.editor-field input,.whole-hue input{display:block;width:100%}
input[type=range]{accent-color:var(--wine);height:36px;min-width:0;cursor:pointer;margin:0}
input[type=checkbox]{accent-color:var(--wine);width:16px;height:16px;margin:0}
.part-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:9px}
.part-actions button{font-size:14px;color:var(--muted);padding:5px 0;min-height:36px;text-decoration:underline;text-underline-offset:4px}
.part-actions button:hover{color:var(--wine)}
.guide-navigation{position:sticky;bottom:0;z-index:7;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;margin-top:20px;border-top:1px solid var(--line);background:var(--paper);box-shadow:0 -9px 12px -14px #30292380}
.guide-navigation>button:first-child{font-size:15px;color:var(--muted);padding:8px 0;white-space:nowrap}
#guide-next{margin-left:auto}
.primary,.secondary{display:flex;justify-content:center;align-items:center;gap:8px;padding:11px 18px;border-radius:7px;font-size:16px;min-height:46px}
.primary{background:var(--wine);color:white;border:1px solid var(--wine)}
.primary:hover:not(:disabled){background:#642a3a}
.secondary{border:1px solid #c8adb3;color:var(--wine);background:var(--surface)}
.finish-shortcut{display:block;margin:8px 0 0 auto;font-size:14px;color:var(--muted);padding:5px 0;min-height:34px}
.finish-note{color:var(--muted);font-size:16px;margin-bottom:16px}
.finish-summary{display:grid;gap:9px}
.finish-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px;padding:13px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.finish-item>div{display:grid;gap:4px;min-width:0}
.finish-item-label{font-size:14px;color:var(--muted)}
.finish-item-value{grid-column:1;font-size:16px}
.finish-item>button{grid-column:2;min-height:44px;padding:6px 0 6px 10px;font-size:14px;color:var(--wine)}
.finish-item>button:hover{text-decoration:underline;text-underline-offset:4px}
.finish-summary img{width:44px;height:44px;object-fit:cover;border-radius:5px;flex-shrink:0}
.finish-summary small{font-size:14px;color:var(--muted)}
.finish-summary strong{font-weight:500}
.finish-download{width:100%;margin-top:22px}
.result-panel{position:sticky;top:16px;background:var(--paper);z-index:5}
.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.result-heading h2{font-size:17px;font-weight:600}
.result-heading>div{display:flex;align-items:center;gap:18px}
.result-heading button{font-size:15px;color:var(--muted);padding:3px 0;min-height:32px}
.result-heading button:last-child{color:var(--wine)}
.result-heading button[aria-pressed=true]{color:var(--wine);font-weight:600}
.image-frame{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#e2d9d0;border:1px solid #dcd2c7}
.image-frame canvas,.image-frame>img{display:block;width:100%;height:100%;object-fit:cover}
.image-tag{position:absolute;left:12px;right:12px;top:12px;display:flex;align-items:start;justify-content:space-between;gap:10px;pointer-events:none}
.image-tag span{padding:5px 8px;border-radius:5px;background:#fffdf5ed;font-size:13px;line-height:1.5}
.image-tag span:last-child{background:#302923c9;color:white}
.signature{position:absolute;bottom:14px;right:16px;font:italic 24px var(--serif);color:#fff;text-shadow:0 1px 6px #30292380;pointer-events:none}
.compare-slider{display:flex;align-items:center;gap:12px;padding:8px 0 2px}
.compare-slider label{white-space:nowrap;font-size:14px;color:var(--muted)}
.compare-slider input{flex:1}
.compare-slider output{font-size:14px;min-width:34px;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.result-feedback{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:7px;min-height:44px}
#status{font-size:14px;line-height:1.8;color:var(--muted)}
.guide-history{display:flex;gap:3px;flex-shrink:0}
.guide-history button{width:32px;min-height:34px;font-size:24px;color:var(--wine)}
.advanced{margin-top:24px;border-top:1px solid var(--line);padding-top:14px}
.advanced>summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:44px;font-size:15px;color:var(--muted)}
.advanced>summary::-webkit-details-marker{display:none}
.advanced>summary>span:first-child{color:var(--ink);white-space:nowrap}
.advanced>summary small{font-size:13px;margin-left:auto}
.advanced[open]>summary>span:last-child{transform:rotate(45deg)}
.advanced-intro{font-size:15px;line-height:1.9;color:var(--muted);margin:14px 0}
.advanced-intro label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}
.advanced-intro select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:9px;min-height:40px;min-width:0}
.advanced-workspace{display:grid;gap:24px}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.panel-heading h3{font-size:16px;font-weight:500}
.panel-heading button{font-size:14px;min-height:36px;color:var(--muted)}
.brush-frame canvas{touch-action:none;cursor:crosshair}
#brush-cursor{position:absolute;border:1px solid white;box-shadow:0 0 0 1px var(--blue);border-radius:50%;pointer-events:none;transform:translate(-50%,-50%)}
.hint{font-size:14px;line-height:1.8;color:var(--muted);margin:10px 0}
.quick-selections{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0}
.quick-selections button{flex:1;border:1px solid var(--line);border-radius:6px;padding:5px 9px;min-height:40px;font-size:14px;background:var(--surface);white-space:nowrap}
.quick-selections button:hover{border-color:var(--wine);color:var(--wine)}
.brush-toolbar{display:flex;align-items:center;gap:7px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.brush-toolbar button{border:1px solid var(--line);border-radius:6px;font-size:14px;padding:5px 10px;min-height:40px}
.brush-toolbar button[aria-pressed=true]{border-color:var(--wine);background:var(--wine-soft);color:var(--wine)}
.brush-toolbar label{font-size:14px;color:var(--muted);margin-left:auto;white-space:nowrap}
.brush-toolbar input{width:80px;flex:1;min-width:25px;max-width:110px}
.brush-toolbar output{font-size:13px;min-width:18px;color:var(--muted);font-variant-numeric:tabular-nums}
.preview-toggle{display:flex;align-items:center;gap:7px;font-size:14px;color:var(--muted);min-height:42px;margin-top:5px}
.add-detail{width:100%}
.pair-notice{font-size:15px;line-height:1.8;padding:10px 12px;margin-top:12px;border-radius:6px;background:var(--wine-soft);color:var(--wine)}
.layers-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 0 8px}
.layers-heading h3{font-size:16px;font-weight:500}
#layer-count{font-size:14px;display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;background:#ece4da;border-radius:20px;margin-left:5px;font-weight:400}
.layers-heading>div{display:flex;gap:2px}
.layers-heading button{font-size:14px;min-height:36px;padding:4px 7px;color:var(--muted)}
#empty-layers{font-size:15px;line-height:1.8;color:var(--muted);border:1px dashed #cfc1b4;border-radius:8px;padding:18px 16px}
.layer{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid var(--line);border-radius:7px;margin-bottom:8px;padding:9px;background:var(--surface)}
.layer.is-selected{border-color:#c49aa5;background:#f4ebeb}
.layer.is-hidden{opacity:.55}
.layer-select{padding:0;display:block;min-height:40px}
.layer-select img{display:block;width:38px;height:44px;object-fit:cover;border-radius:4px}
.layer-name{padding:0;min-height:25px;font-size:15px;line-height:1.4;text-align:left}
.layer-meta{min-width:0}
.layer-meta>div{display:flex;align-items:center;gap:7px}
.layer-meta input{width:100%;max-width:160px;min-width:0;height:28px}
.layer-meta output{font-size:13px;min-width:30px;text-align:right;color:var(--muted)}
.layer-tools{display:flex;gap:0;align-items:center}
.layer-tools button{width:30px;min-height:38px;padding:0;font-size:16px;color:var(--muted);border-radius:4px}
.layer-tools button:hover{color:var(--wine);background:#eadcdd}
.layer-editor{padding:15px 16px;margin-top:12px;border:1px solid #d9bfc6;border-radius:8px;background:#f3e9e9}
.layer-editor h3{font-size:15px;font-weight:500;margin-bottom:9px}
.layer-editor-actions{display:flex;justify-content:flex-end}
.layer-editor-actions button{font-size:14px;min-height:36px;color:var(--muted)}
.whole-hue{padding:15px 0 0;margin-top:15px;border-top:1px solid var(--line)}
.whole-hue .hint{margin:0;font-size:13px}
.studio-bottom{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:18px 0 0;margin-top:28px;border-top:1px solid var(--line)}
.demo-note{font-size:14px;line-height:1.9;color:var(--muted);max-width:930px}
#reset{font-size:14px;color:var(--wine);white-space:nowrap;min-height:40px}
.error{padding:12px;margin-top:12px;color:var(--wine);border:1px solid #d9bfc6;border-radius:6px;font-size:15px}
.error button{text-decoration:underline}
.photo-notes{border-top:1px solid var(--line);margin-top:30px;padding:22px 0 30px;font-size:15px;line-height:1.9;color:var(--muted)}
.photo-notes summary{cursor:pointer;color:var(--ink);font-size:16px;min-height:34px}
.notes-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px;margin-top:20px}
.notes-grid h3{color:var(--ink);font-size:16px}
.notes-grid ul{padding-left:20px;margin:8px 0 18px}
.site-footer{border-top:1px solid var(--line);padding-top:24px;padding-bottom:32px;font-size:14px;line-height:1.9;color:var(--muted)}
.footer-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px;color:var(--ink)}
.footer-top strong{font-size:14px;font-weight:500}
.site-footer p{max-width:1180px}
.site-footer p+p{margin-top:8px}
.site-footer a{text-decoration:underline;text-underline-offset:3px}
dialog{width:min(900px,94vw);max-height:92dvh;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:24px}
dialog::backdrop{background:#30292385;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.dialog-heading h2{font-size:25px;font-weight:500;line-height:1.4}
.dialog-heading button{width:44px;min-height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;font-size:27px}
dialog>p{font-size:15px;color:var(--muted);line-height:1.9}
#reference-dialog{width:min(740px,94vw)}
#reference-large{display:block;max-width:100%;max-height:72dvh;width:auto;height:auto;margin:auto;border-radius:8px}
.proof-images{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}
.proof-images img{display:block;width:100%;border-radius:8px}
.proof-images figcaption{font-size:15px;text-align:center;margin-top:9px}
.proof-footnote{font-size:14px}
.file-picker{display:block;padding:16px;border:1px dashed #bd9a9e;border-radius:8px;font-size:16px;margin:18px 0}
.file-picker input{display:block;margin-top:12px;max-width:100%;font-size:15px}
#upload-preview{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0}
#uploaded-image{width:100%;max-height:420px;object-fit:contain;border-radius:7px}
#upload-report{font-size:15px;line-height:1.9}
#upload-report p{margin-top:10px}
#upload-report strong{color:var(--wine)}
@media(max-width:1000px){
 .topbar,main,.site-footer{padding-left:24px;padding-right:24px}
 .project-purpose{grid-template-columns:1fr;gap:8px}
 .tryon-layout{gap:28px}
 .guide-steps{gap:6px}
 .guide-steps button{column-gap:5px;padding:9px 8px;font-size:15px}
 .guide-steps small{font-size:13px}
 .references{grid-template-columns:repeat(2,minmax(0,1fr))}
 .makeup-library-heading{flex-wrap:wrap;gap:5px}
 .reference-filters{flex:1}
 .reference-filters button{flex:1;padding:5px 8px}
 .layer{grid-template-columns:38px minmax(0,1fr)}
 .layer-tools{grid-column:2;justify-content:flex-end}
 .layer-tools button{width:38px;min-height:44px}
}
@media(max-width:720px){
 .topbar,main,.site-footer{padding-left:20px;padding-right:20px}
 .topbar{min-height:66px;gap:12px}
 .brand-logo{width:145px}
 .brand small{display:none}
 .topbar>a:last-child{font-size:13px}
 .intro{align-items:start;gap:12px;padding:22px 0 15px}
 .intro h1{font-size:29px;letter-spacing:-.5px}
 .intro p{font-size:15px;line-height:1.8;margin-top:7px}
 #help-toggle{font-size:14px;padding:5px 8px;min-height:38px}
 .project-purpose{font-size:15px;line-height:1.8;gap:9px;padding-bottom:18px;margin-bottom:18px}
 .usage-help{font-size:15px;padding:14px 18px}
 .usage-help ol{grid-template-columns:1fr;gap:8px}
 .guide-steps{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:6px;padding:2px 1px 9px;margin-bottom:10px;scrollbar-width:thin;scrollbar-color:#cabbb1 transparent}
 .guide-steps button{flex:0 0 103px;scroll-snap-align:start;min-height:61px;padding:9px;font-size:15px;column-gap:6px}
 .guide-steps small{font-size:13px}
 .tryon-layout{display:flex;flex-direction:column;gap:16px}
 .result-panel{order:-1;top:0;width:100%;padding:8px 0 0;box-shadow:0 8px 12px -12px #30292380;border-bottom:1px solid var(--line)}
 .result-heading{margin-bottom:6px}
 .result-heading h2{font-size:15px}
 .result-heading>div{gap:16px}
 .result-heading button{font-size:14px;min-height:34px}
 .result-frame{width:min(100%,clamp(190px,30svh,280px));margin:auto;border-radius:8px}
 .image-tag{left:8px;right:8px;top:8px;gap:5px}
 .image-tag span{font-size:13px;padding:4px 6px}
 .signature{font-size:24px;bottom:10px;right:12px}
 .compare-slider{padding:2px 0 0;gap:10px}
 .compare-slider input{height:32px}
 .compare-slider label,.compare-slider output{font-size:13px}
 .result-feedback{padding-top:0;min-height:37px;border-top:0;gap:8px}
 #status{font-size:13px;line-height:1.6}
 .guide-history button{width:34px;min-height:36px;font-size:24px}
 .guide-panel{width:100%}
 .guide-heading{margin-bottom:13px}
 .guide-heading h2{font-size:24px;scroll-margin-top:calc(clamp(190px,30svh,280px) + 124px)}
 .guide-heading p{font-size:15px;margin-top:5px}
 .sources{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .source-card{padding:5px;gap:6px;border-radius:7px}
 .source-card span{font-size:13px;padding:0;text-align:center;white-space:nowrap}
 .source-card[aria-pressed=true]:after,.reference-card[aria-pressed=true]:after{top:8px;right:8px;width:20px;height:20px;font-size:14px}
 .source-note{flex-wrap:wrap;gap:3px;font-size:13px;margin-top:8px}
 .upload-trigger{font-size:13px;min-height:36px}
 .makeup-library-heading{gap:8px;margin-bottom:8px;flex-wrap:nowrap}
 .reference-filters{flex:1;padding:3px;gap:2px}
 .reference-filters button{font-size:14px;min-height:38px;padding:5px 7px}
 .references{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:8px;padding:2px 1px 9px;scrollbar-width:thin;scrollbar-color:#cabbb1 transparent}
 .reference-card{flex:0 0 114px;scroll-snap-align:start;padding:5px;gap:7px}
 .reference-card strong{font-size:14px;padding:0 1px 2px}
 .reference-preview-row{padding-top:12px;margin-top:9px}
 #selected-reference{gap:12px}
 #selected-reference-image{width:78px;height:78px}
 #selected-reference strong{font-size:16px}
 #selected-reference-description{font-size:14px}
 .step-adjustments{margin-top:15px;padding:12px 14px 5px}
 .applied-status{font-size:14px}
 .editor-field input{height:40px}
 .part-actions{gap:4px}
 .part-actions button{min-height:44px;font-size:14px}
 .guide-navigation{gap:12px;padding:10px 0;margin-top:14px;padding-bottom:max(10px,env(safe-area-inset-bottom))}
 .guide-navigation>button:first-child{font-size:14px;min-height:44px}
 .primary,.secondary{font-size:15px;min-height:46px;padding:10px 12px}
 .finish-shortcut{min-height:40px;font-size:14px}
 .advanced{margin-top:18px;padding-top:10px}
 .advanced>summary{min-height:46px;font-size:15px;gap:9px}
 .advanced>summary small{font-size:13px;max-width:140px;text-align:right}
 .advanced-intro{font-size:14px}
 .advanced-intro label{align-items:start;flex-direction:column;gap:6px}
 .advanced-intro select{width:100%;min-height:44px}
 .advanced-workspace{gap:16px}
 .quick-selections{gap:5px;margin:10px 0}
 .quick-selections button{min-height:44px;font-size:14px;padding:6px 7px}
 .brush-toolbar{gap:5px;flex-wrap:wrap}
 .brush-toolbar button{min-height:44px;font-size:15px;padding:6px 8px}
 .brush-toolbar label{font-size:14px}
 .brush-toolbar input{max-width:none;width:50px;height:40px;min-width:30px}
 .preview-toggle{font-size:14px;min-height:44px}
 .layers-heading button{min-height:44px}
 .layer-meta input{max-width:none;height:36px}
 .layer-editor-actions button{min-height:44px}
 .studio-bottom{gap:14px;align-items:start;margin-top:24px}
 .demo-note{font-size:13px}
 #reset{font-size:13px;min-height:44px}
 .photo-notes{margin-top:24px;padding-top:18px}
 .notes-grid{grid-template-columns:1fr;gap:10px}
 .footer-top{align-items:start;gap:14px}
 .site-footer{font-size:13px;padding-top:20px}
 .footer-top strong,.footer-top a{font-size:13px}
 dialog{padding:18px;border-radius:10px}
 .dialog-heading h2{font-size:24px}
 .proof-images{gap:10px}
 #upload-preview{grid-template-columns:1fr;gap:16px}
}
@media(max-width:360px){
 .topbar,main,.site-footer{padding-left:14px;padding-right:14px}
 .brand-logo{width:133px}
 .intro h1{font-size:26px}
 #help-toggle{font-size:13px;padding:4px 6px}
 .makeup-library-heading{flex-wrap:wrap;gap:3px}
 .reference-filters{flex:auto;width:100%}
 .makeup-library-heading .upload-trigger{margin-left:auto}
 .brush-toolbar{gap:4px}
 .brush-toolbar button{padding:6px 7px}
 .reference-card{flex-basis:108px}
}
@media(max-height:600px) and (max-width:720px){.result-panel{position:static}.guide-heading h2{scroll-margin-top:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
