:root{--ink:#493b30;--green:#80634c;--mint:#f0e6d8;--muted:#776b60;--line:#e6dccf;--cream:#ffffff;--paper:#ffffff;--orange:#b35d24}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:'Danjeong Text',sans-serif;background:var(--cream);font-size:13px}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d99c62;outline-offset:3px}button{border:0;background:none}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.symbols{position:absolute;width:0;height:0;overflow:hidden}a{color:inherit} [hidden]{display:none!important}.header{height:99px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#ffffff}.brand{text-decoration:none;display:flex;align-items:center;gap:15px}.brand-mark{font-family:'Danjeong Heading',cursive;font-size:32px;letter-spacing:-2px;font-weight:700;position:relative}.brand-mark span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#876f55;margin-left:4px}.brand-caption{font-size:9px;font-weight:600;letter-spacing:2px;border-left:1px solid #ddd;padding-left:16px;color:#898580}.mode-switch{display:flex;gap:4px;padding:5px;background:#f5f3f0;border-radius:10px}.mode-switch button{padding:10px 21px;border-radius:7px;font-weight:600;color:#86827d}.mode-switch button.active{color:var(--green);background:#ffffff;box-shadow:0 1px 5px #3f322410}.mode-switch span{font-size:9px;margin-left:4px;opacity:.6}.button{display:inline-flex;gap:9px;align-items:center;justify-content:center;border-radius:8px;padding:13px 19px;font-weight:600;font-size:12px;transition:background .2s}.dark{background:var(--green);color:#ffffff}.dark:hover:not(:disabled){background:#5a452e}.outline{border:1px solid #e0dcd8;background:white}.outline:hover:not(:disabled){background:#f7f5f2}.full{width:100%}.app{display:grid;grid-template-columns:240px minmax(360px,1fr) 336px;gap:32px;max-width:1540px;margin:0 auto;padding:36px 44px 26px}.eyebrow{font-size:10px;color:#877f77;letter-spacing:1.5px;font-weight:600}.intro{padding-top:22px;display:flex;flex-direction:column}.intro h1{font-family:'Danjeong Heading',cursive;letter-spacing:-1.3px;line-height:1.65;font-size:28px;margin:14px 0}.intro h1 em{font-style:normal;color:#846e57}.intro-copy{font-size:11px;line-height:1.9;color:#908c87;margin:0 0 36px}.steps{display:flex;flex-direction:column;gap:8px}.steps button{padding:18px 14px;display:flex;text-align:left;align-items:center;gap:12px;border-radius:9px;color:#938f8b}.steps button.selected{background:var(--mint);color:var(--green)}.steps button>span{font-size:10px;align-self:flex-start;padding-top:3px;opacity:.6}.steps button div{font-size:12px;font-weight:600;flex:1}.steps small{display:block;font-size:9px;font-weight:400;margin-top:7px;letter-spacing:-.3px}.steps svg{width:19px}.tip-card{margin-top:37px;padding:22px;background:#eee9e4;border-radius:10px}.tip-icon{display:block;color:#897967;font-size:21px;margin-bottom:9px}.tip-card strong{font-size:12px}.tip-card p{color:#908b85;font-size:10px;line-height:1.9;margin:9px 0 20px}.tip-card button{font-size:10px;padding:0;display:flex;justify-content:space-between;width:100%}.tip-card button span{font-size:16px}.local-note{display:flex;gap:10px;margin-top:30px;font-size:10px;align-items:flex-start;color:#7d6f61}.local-note svg{width:15px;flex-shrink:0}.local-note small{display:block;color:#a09992;font-size:9px;margin-top:6px;line-height:1.7}.workspace{min-width:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;height:40px;color:#89847e;font-size:10px}.workspace-heading>div{display:flex;align-items:center;gap:7px}.status-dot{width:5px;height:5px;background:#9e8c78;border-radius:50%}.text-button{font-size:10px;display:flex;gap:6px;align-items:center;padding:0}.text-button svg{width:13px}.stage{height:620px;background:#f0eeeb;border:1px solid #e8e4e0;border-radius:14px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;transition:border-color .2s}.stage.dragging{border:2px dashed #957b60}.stage-pill{position:absolute;top:19px;left:19px;z-index:3;background:#ffffffb5;border:1px solid #ffffff;padding:7px 11px;border-radius:6px;font-size:9px;color:#837f7a;pointer-events:none}.stage-footer{position:absolute;bottom:18px;left:21px;right:21px;display:flex;justify-content:space-between;font-size:8px;color:#a0988f;gap:12px;pointer-events:none}.empty-state{text-align:center;padding:50px 15px}.empty-frame{width:105px;height:134px;margin:0 auto 24px}.empty-frame svg{width:100%;height:100%;stroke:#a49a8f;stroke-width:1}.empty-state h2{font-size:17px;font-weight:500;margin:0 0 11px}.empty-state p{font-size:11px;color:#98938d;margin:0 0 25px}.empty-state .button{font-size:11px;padding:13px 23px}.demo-button{display:block;margin:18px auto;font-size:10px;color:#8f857b}.demo-button span{margin-left:6px}.empty-state small{font-size:8px;color:#aca49b}.photo-frame{position:relative;width:min(78%,380px);aspect-ratio:413/531;box-shadow:0 12px 35px #443b3118;background:white;touch-action:none}.photo-frame canvas{display:block;width:100%;height:100%}.photo-frame>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.photo-frame.moving{cursor:grab}.photo-frame.marking{cursor:crosshair}.before-label{position:absolute;top:10px;right:10px;color:#ffffff;background:#3a2c1da8;border-radius:5px;padding:4px 9px;font-size:10px}.toolbar{display:flex;justify-content:center;gap:24px;padding:19px 5px}.toolbar button{display:flex;align-items:center;gap:6px;font-size:9px;color:#89827b;padding:4px 0}.toolbar button[aria-pressed=true]{color:var(--green)}.toolbar svg{width:14px;height:14px}.workspace-hint{text-align:center;font-size:9px;color:#a49c94;margin:2px 0}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:25px 24px;align-self:start;margin-top:40px;min-height:620px}.panel-title .eyebrow{font-size:8px;letter-spacing:1px}.panel-title h2{font-family:'Danjeong Heading',cursive;font-size:23px;font-weight:600;margin:10px 0}.panel-title p{font-size:9px;color:#9c9791;line-height:1.7;margin:0 0 23px}.one-touch{background:#f1ece7;border:1px solid #e9e3dc;border-radius:8px;padding:14px 12px;width:100%;display:flex;gap:10px;align-items:center;text-align:left}.one-touch>svg{width:23px;height:23px;color:#806a52}.one-touch div{font-size:11px;font-weight:600;flex:1}.one-touch small{font-size:8px;display:block;font-weight:400;margin-top:5px;color:#958b80}.one-touch>span{font-size:15px;color:#95897d}.categories{display:grid;grid-template-columns:repeat(6,1fr);gap:3px;border-bottom:1px solid var(--line);margin:22px -2px 3px}.categories button{padding:10px 0 12px;font-size:10px;color:#a39b93;border-bottom:2px solid transparent}.categories button.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}.controls{padding-top:23px;min-height:260px}.field{margin-bottom:23px}.field>div{display:flex;justify-content:space-between;font-size:10px;align-items:center;margin-bottom:12px}.field output{color:#9c948c;background:#f5f2ef;border-radius:4px;padding:2px 6px;font-size:9px;min-width:28px;text-align:center}.field input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:3px;border-radius:4px;background:linear-gradient(to right,#bea384 0%,#bea384 var(--fill,50%),#eee5da var(--fill,50%),#eee5da 100%);display:block;margin:8px 0 10px}.field input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;border:3px solid white;width:15px;height:15px;background:#9b7250;border-radius:50%;box-shadow:0 0 0 1px #dfd8d1}.field input[type=range]::-moz-range-thumb{border:3px solid white;width:10px;height:10px;background:#9b7250;border-radius:50%}.field small{font-size:8px;color:#a69f97;line-height:1.7}.field .end-labels{font-size:8px;color:#a69f97;margin:0}.control-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #f0ede9;padding-top:16px;font-size:8px;color:#a69f97}.control-footer button{font-size:9px;color:#867c71;padding:0}.swatches{display:flex;gap:11px;padding:6px 0 20px}.swatch{width:24px;height:24px;border-radius:50%;border:3px solid white;outline:1px solid #e7e2dd}.swatch.selected{outline:2px solid #938371}.swatch.original{background:conic-gradient(#e6ded0,#d7cfc7,#e6ded0)}.style-soon{border-top:1px solid var(--line);padding-top:20px;display:flex;gap:8px;align-items:center}.style-soon>svg{color:#a39484;width:16px;flex-shrink:0}.style-soon strong{font-size:9px;font-weight:500;color:#8b8279}.style-soon p{font-size:7px;color:#afa8a1;margin:5px 0}.style-soon>span{font-size:7px;padding:3px 5px;border-radius:4px;background:#f3f1ee;color:#aaa198;white-space:nowrap}.size-card{display:flex;justify-content:space-between;align-items:center;background:#f7f4f1;border:1px solid #ede7e0;padding:16px;border-radius:8px;margin-bottom:23px}.size-card strong{font-size:20px;font-weight:500}.size-card small{font-size:10px;color:#91887f}.size-card span{display:block;font-size:8px;color:#9c9288;margin-top:7px}.size-card>svg{width:27px;height:27px;color:#a2968a}.passport-notice{display:flex;gap:8px;margin:19px 0;padding:12px;border-radius:6px;background:#f4f2e8;color:#96875c;align-items:flex-start}.passport-notice svg{flex-shrink:0;width:14px}.passport-notice p{font-size:8px;line-height:1.8;margin:0}.measure{padding:3px 0 18px;border-bottom:1px solid var(--line)}.measure strong{font-size:11px}.measure p{font-size:9px;color:#999087;line-height:1.8}.measure button{font-size:9px;padding:10px}.measure #headMeasure{font-size:9px;margin-top:12px;color:#9e968d;line-height:1.7}.measure #headMeasure.good{color:#7c5f3f}.measure #headMeasure.bad{color:#b17840}.checklist h3{font-size:11px;font-weight:600;margin:20px 0 13px}.checklist label{font-size:9px;display:flex;align-items:flex-start;gap:6px;line-height:1.7;margin-bottom:11px}.checklist input{accent-color:var(--green);margin:2px 0 0;flex-shrink:0}.checklist p{font-size:8px;line-height:1.8;color:#a1988e}.checklist a{display:block;font-size:8px;color:#8b8075;margin-top:8px;text-underline-offset:3px}.export-card{border-top:1px solid var(--line);margin-top:25px;padding-top:21px}.export-card>label{display:block;font-size:10px;margin-bottom:9px}.export-card select{width:100%;padding:10px 8px;color:#72675c;border:1px solid #e5dfd9;border-radius:6px;background:white;font-size:10px}.export-card>div{font-size:8px;color:#9b9187;margin-top:10px}.export-card p{font-size:8px;color:#a59c93;line-height:1.8;margin:12px 0 15px}.footer{border-top:1px solid var(--line);max-width:1452px;margin:12px auto 0;padding:23px 0;display:flex;justify-content:space-between;color:#ada69e;font-size:8px}.footer-dot{padding:0 7px}.busy{position:absolute;inset:0;z-index:6;background:#f0eeebeb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.busy strong{font-size:12px;font-weight:500}.busy small{font-size:9px;color:#a59b91}.spinner{width:25px;height:25px;border:2px solid #dfd8d0;border-top-color:#80684f;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:13px 22px;background:#4a3825f2;border-radius:9px;box-shadow:0 5px 24px #0001;color:white;font-size:11px;z-index:20;max-width:90vw;width:max-content;text-align:center;line-height:1.6}dialog{border:1px solid #e4ded8;border-radius:16px;padding:35px;max-width:520px;width:90%;color:var(--ink)}dialog::backdrop{background:#31251966;backdrop-filter:blur(4px)}dialog h2{font-family:'Danjeong Heading',cursive;font-size:21px;line-height:1.7;margin:12px 0 25px}.dialog-close{position:absolute;right:16px;top:12px;font-size:25px;color:#91867a}dialog ol{padding-left:18px}dialog li{margin-bottom:23px;padding-left:5px;font-size:12px}dialog p{font-size:11px;line-height:1.9;color:#90867c}dialog>a{font-size:11px;text-underline-offset:4px}.disabled-note{padding:20px 0;font-size:11px;line-height:1.9;color:#988e84}.background-note{font-size:9px;color:#9f968c;line-height:1.8;margin:0 0 17px}.tiny-button{padding:9px;border:1px solid #e5ded7;border-radius:6px;font-size:10px;display:block;width:100%;margin-bottom:15px}
@media(min-width:1500px){.stage{height:700px}.panel{min-height:700px}.photo-frame{width:420px;max-width:78%}.app{gap:40px}}
@media(max-width:1150px){.app{grid-template-columns:190px minmax(300px,1fr) 300px;gap:21px;padding:25px 25px}.header{padding:0 25px}.intro h1{font-size:24px}.panel{padding:23px 20px}.stage{height:550px}.brand-caption{display:none}.footer{margin-left:25px;margin-right:25px}.toolbar{gap:13px}}
@media(max-width:950px){.app{grid-template-columns:minmax(300px,1fr) 310px;gap:24px}.intro{display:none}.header{height:84px}.panel{margin-top:40px}.stage{height:600px}.footer{font-size:7px}.photo-frame{width:min(82%,365px)}}
@media(max-width:680px){.header{height:74px;padding:0 15px;gap:10px}.brand-mark{font-size:24px}.mode-switch{padding:4px}.mode-switch button{font-size:10px;padding:9px 12px}.mode-switch span{display:none}.header>.button{font-size:0;padding:10px}.header>.button svg{width:18px}.app{display:flex;flex-direction:column;padding:13px 14px;gap:10px}.workspace-heading{height:35px}.stage{height:480px;border-radius:10px}.photo-frame{width:290px;max-width:83%}.stage-pill{top:12px;left:12px;font-size:8px}.stage-footer{font-size:7px;bottom:11px;left:12px;right:12px}.toolbar{padding:12px 0;gap:25px}.workspace-hint{margin-bottom:10px}.panel{margin:0;padding:23px;min-height:0}.panel-title p{margin-bottom:17px}.controls{min-height:0}.footer{margin:10px 15px 0;gap:10px;line-height:1.8;padding:15px 0}.footer>span:last-child{text-align:right;max-width:55%}.categories button{font-size:11px}.panel-title h2{font-size:22px}.field>div{font-size:11px}.one-touch div{font-size:12px}.empty-state h2{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.intro-copy{font-size:12px}.eyebrow{font-size:11px}.panel-title .eyebrow{font-size:10px}.panel-title p{font-size:11px}.field>div{font-size:12px}.field output{font-size:10px}.field small{font-size:10px}.categories button{font-size:12px}.one-touch div{font-size:12px}.one-touch small{font-size:10px}.control-footer{font-size:9px}.control-footer button{font-size:10px}.toolbar button{font-size:11px}.workspace-heading{font-size:11px}.text-button{font-size:11px}.workspace-hint{font-size:10px}.style-soon strong{font-size:11px}.style-soon p{font-size:9px}.style-soon>span{font-size:9px}.checklist label{font-size:11px}.checklist p,.checklist a{font-size:10px}.measure p,.measure #headMeasure,.passport-notice p,.export-card p,.export-card>div{font-size:10px}.measure button{font-size:11px}.export-card>label,.export-card select{font-size:12px}.background-note{font-size:11px}.stage-pill{font-size:10px}.empty-state p{font-size:12px}.demo-button{font-size:12px}.tip-card p{font-size:11px}.tip-card button{font-size:11px}.local-note{font-size:11px}.local-note small{font-size:10px}.steps small{font-size:10px}.footer{font-size:9px}.size-card span{font-size:10px}
.shape-presets{display:flex;gap:7px;margin:0 0 23px}.shape-presets button{flex:1;border:1px solid #e3dfda;border-radius:7px;padding:10px 4px;font-size:11px}.shape-presets button[aria-pressed=true]{background:var(--mint);border-color:#a69582;color:var(--green)}
.categories{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.categories button{padding-left:2px;padding-right:2px;font-size:11px}.skin-protection{margin:0 0 25px;padding:14px;background:#f6f4f1;border-radius:8px}.skin-protection label{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:600}.skin-protection input{accent-color:var(--green);width:15px;height:15px}.skin-protection small{display:block;margin-top:9px;color:#918981;font-size:10px;line-height:1.8}.light-regions{display:flex;gap:6px;margin-bottom:14px}.light-regions button{flex:1;border:1px solid #e3dfda;border-radius:7px;padding:10px 3px;font-size:12px}.light-regions button[aria-pressed=true]{background:var(--mint);border-color:#a69582}#applyAllLighting{margin:0 0 24px;font-size:11px}

.demo-options{display:flex;gap:20px;justify-content:center}.sample-switch{display:flex;justify-content:center;align-items:center;gap:10px;font-size:10px;flex-wrap:wrap;margin-top:5px}.sample-switch>span{color:#958e87}.sample-switch button{border:1px solid #e1ddd8;background:#ffffff;border-radius:6px;padding:7px 10px;font-size:10px}.sample-switch button:hover{background:#f0e6d8}

.detail-window{position:fixed;z-index:12;left:24px;bottom:24px;width:330px;background:#ffffff;border:1px solid #dad2ca;border-radius:12px;box-shadow:0 8px 35px #102c3625;overflow:hidden}.detail-handle{display:flex;gap:8px;align-items:center;padding:10px 12px;background:#f4f1ed;cursor:move;touch-action:none}.detail-handle strong{flex:1;font-size:12px}.detail-handle span{font-size:9px;color:#7e7164}.detail-handle label{font-size:9px}.detail-handle select{font-size:10px;border:1px solid #cec6bd;border-radius:4px;padding:3px;background:white}.detail-handle button{font-size:21px;line-height:1}.detail-window canvas{width:100%;display:block}.detail-window>small{display:block;padding:9px 12px;font-size:10px;color:#928a82}.toolbar{flex-wrap:wrap}@media(max-width:680px){.detail-window{width:230px;left:12px;bottom:12px}.detail-window>small{font-size:8px}.detail-handle{padding:7px;gap:4px}.detail-handle strong{font-size:10px}.toolbar{gap:12px}.detail-window canvas{max-height:155px}}

/* Guided capture */
.purpose-picker{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:10px}.purpose-picker select,.crop-purpose select,.guide-purpose select,.camera-sidebar select{background:#f7f4f1;border:1px solid #e2ddd8;border-radius:8px;padding:11px;color:var(--ink);width:100%}.purpose-picker select{width:245px}.photo-actions{display:flex;gap:18px}.start-actions{display:flex;flex-direction:column;align-items:center;gap:10px}.crop-purpose{display:block;font-size:10px;margin-bottom:18px}.crop-purpose select{margin-top:8px}.capture-guide,.camera-dialog{border:1px solid var(--line);border-radius:18px;padding:34px;width:min(870px,calc(100% - 32px));max-width:870px;max-height:92dvh;overflow:auto;color:var(--ink);background:var(--cream)}dialog::backdrop{background:#392b1ca8;backdrop-filter:blur(4px)}.capture-guide h2{font-family:'Danjeong Heading',cursive;font-size:30px;line-height:1.6;margin:12px 0}.guide-lead{color:#877f77;line-height:1.8;font-size:12px}.guide-purpose{display:block;max-width:420px;font-size:12px;font-weight:600;margin:20px 0}.guide-purpose select{display:block;margin-top:10px;background:white}.shooting-basics{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.shooting-basics article{background:white;border:1px solid var(--line);border-radius:10px;padding:18px}.shooting-basics b{display:inline-block;color:#9e8d7b;margin-right:10px;font-size:11px}.shooting-basics strong{font-size:13px}.shooting-basics p{color:#837c75;font-size:11px;line-height:1.9;margin:8px 0 0}.guide-strict{background:#eeeae5;border-radius:10px;padding:16px 20px;margin:18px 0}.guide-strict strong{font-size:12px}.guide-strict p{font-size:11px;line-height:1.9;margin-bottom:0}.guide-examples h3{font-size:14px;margin:25px 0 6px}.guide-examples>p{font-size:10px;color:#938a80}.example-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.example-grid article{background:white;border:1px solid var(--line);border-radius:10px;padding:8px}.example-grid svg{width:100%;height:auto;stroke:none;fill:none}.example-grid strong{display:block;font-size:10px;margin:8px 0}.example-grid small{font-size:9px;line-height:1.7;color:#91887f;display:block}.guide-footnote{font-size:10px;line-height:1.9;color:#88817a;margin:18px 0 10px}.guide-sources{display:flex;gap:15px;font-size:10px;color:#8b8176}.guide-bottom{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;position:sticky;bottom:-34px;background:var(--cream);padding:16px 0 0}.camera-dialog{width:min(950px,calc(100% - 24px));max-width:950px;padding:26px}.camera-heading{display:flex;justify-content:space-between;position:relative;margin-bottom:20px}.camera-heading h2{font-family:'Danjeong Heading',cursive;font-size:22px;margin:10px 28px 0 0}.camera-heading .dialog-close{position:static;align-self:start}.camera-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:24px;align-items:start}.camera-scene{position:relative;background:#2d2217;aspect-ratio:var(--camera-aspect,.75);width:min(100%,calc(52dvh * var(--camera-aspect,.75)));margin:0 auto;border-radius:12px;overflow:hidden}.camera-scene video,.camera-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.camera-scene video.mirrored{transform:scaleX(-1)}.camera-scene svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;stroke:#ece2d8;stroke-width:1.2;stroke-dasharray:5 5;filter:drop-shadow(0 1px 2px #0008)}.camera-scene svg text{fill:#ffffff;stroke:none;font-size:10px}.camera-count{position:absolute;inset:0;display:grid;place-items:center;background:#2c211640;color:white;font-size:90px;font-weight:700}.camera-placeholder{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:20px;color:#ebe5df;font-size:12px;line-height:1.8}.camera-status{color:#82786e;font-size:11px;line-height:1.8;min-height:36px}.camera-sidebar label{display:block;font-size:11px;margin-bottom:16px}.camera-sidebar select{display:block;margin-top:8px}.camera-sidebar label.camera-check{display:flex;align-items:center;gap:8px}.camera-sidebar input{accent-color:var(--green)}.camera-reminders{background:#eee9e3;padding:16px;border-radius:9px;margin:18px 0}.camera-reminders strong{font-size:11px}.camera-reminders p,#cameraReviewControls p{font-size:11px;line-height:1.9;color:#7a7167}.camera-reminders small{font-size:9px;line-height:1.7;color:#91867b;display:block}.camera-sidebar .text-button{margin:16px 0}.camera-sidebar .outline{margin-top:10px}.camera-status.error{color:#a25735}
@media(max-width:700px){.header{padding:15px;height:auto;flex-wrap:wrap;gap:12px}.purpose-picker{order:3;flex-basis:100%;justify-content:space-between}.purpose-picker select{width:calc(100% - 65px)}.photo-actions{gap:12px}.workspace-heading .text-button{font-size:9px}.capture-guide,.camera-dialog{padding:22px 18px;border-radius:12px;max-height:95dvh}.capture-guide h2{font-size:24px}.shooting-basics{grid-template-columns:1fr}.example-grid{grid-template-columns:repeat(2,1fr)}.guide-bottom{flex-direction:column;bottom:-22px;padding:12px 0 0}.camera-layout{grid-template-columns:1fr;gap:12px}.camera-heading h2{font-size:19px}.camera-scene{width:min(100%,calc(46dvh * var(--camera-aspect,.75)))}.camera-sidebar select{font-size:12px}.camera-sidebar label{margin-bottom:12px}.camera-reminders{margin:14px 0}.camera-dialog{max-height:96dvh}}
@media(max-width:700px){.camera-scene{width:min(100%,calc(40dvh * var(--camera-aspect,.75)))}.camera-heading h2{font-size:18px}}

.profile-switch{display:flex;gap:6px;padding:4px;background:#f1efec;border-radius:10px;margin-top:18px}.profile-switch button{flex:1;padding:9px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit}.profile-switch [aria-pressed="true"]{background:#ffffff;color:#493825;box-shadow:0 1px 4px #49382512}.profile-note{font-size:11px;line-height:1.6;color:var(--muted);margin:8px 0 14px}.rgb-controls{margin:18px 0;padding:14px;background:#f5f3f0;border-radius:10px}.rgb-controls>label{display:flex;align-items:center;justify-content:space-between;font-size:13px}.rgb-controls input[type=color]{width:54px;height:34px;padding:2px;border:1px solid #dedad5;border-radius:5px;background:#ffffff}.rgb-values{display:flex;gap:8px;margin:12px 0}.rgb-values label{display:flex;gap:6px;align-items:center;flex:1;min-width:0;font-size:12px}.rgb-values input{width:100%;min-width:0;padding:7px 4px;border:1px solid #dedad5;border-radius:5px;font:inherit;background:#ffffff}.rgb-controls small{font-size:11px;color:var(--muted);line-height:1.5}

.boundary-repair{padding:14px;border:1px solid #dedad5;border-radius:10px;margin:18px 0}.boundary-repair strong{font-size:13px}.boundary-repair .shape-presets{margin:12px 0}.boundary-repair .shape-presets button{font-size:10px;padding:10px 3px}.boundary-repair>label{display:flex;justify-content:space-between;font-size:12px}.boundary-repair small{display:block;line-height:1.7;color:var(--muted);font-size:11px;margin:10px 0}.photo-frame.painting{cursor:crosshair}

.photo-frame.painting{cursor:none}.brush-cursor{position:absolute;pointer-events:none;z-index:8;transform:translate(-50%,-50%);border-radius:50%;border:1.5px solid white;box-shadow:0 0 0 1px #372a1c,0 0 3px #0008;box-sizing:border-box;background:#8e6c4720}.brush-cursor span{position:absolute;top:50%;left:50%;width:5px;height:5px;transform:translate(-50%,-50%);border-radius:50%;background:white;box-shadow:0 0 0 1px #372a1c}.brush-cursor.erase{background:#cf775220}.brush-cursor.size-preview{border-style:dashed}.brush-cursor[hidden]{display:none}
#matchSkinTone{margin-bottom:16px}

.body-guide-overlay{position:absolute;inset:0;width:100%;height:100%;z-index:9;overflow:visible;touch-action:none;pointer-events:none}.body-guide-overlay[hidden]{display:none}.body-guide-overlay path{fill:none;stroke:#ffffff;stroke-width:3;stroke-dasharray:10 8;filter:drop-shadow(0 1px 1px #123)}.body-guide-overlay circle{fill:#684f35;stroke:white;stroke-width:4;cursor:grab;pointer-events:all}.body-guide-overlay text{font-size:25px;fill:white;paint-order:stroke;stroke:#37291b;stroke-width:3}#bodyGuideToggle{margin:14px 0 10px}#bodyGuideReset{font-size:11px}

.purchase-note{color:#56412b;font-weight:600}.order-dialog{max-width:780px;max-height:calc(100dvh - 32px);overflow-y:auto;width:min(780px,calc(100vw - 32px));border:0;border-radius:22px;padding:34px;color:#35281a;box-shadow:0 20px 80px #36291b33}.order-dialog::backdrop{background:#281e148c}.order-dialog h2{font-size:28px;margin:10px 0}.order-lead{color:#77716b;margin-bottom:24px}.order-layout{display:grid;grid-template-columns:240px 1fr;gap:32px}.order-image canvas{display:block;width:100%;height:auto;max-height:360px;object-fit:contain;background:#f2efeb;border-radius:8px}.order-image small{display:block;font-size:11px;line-height:1.6;color:#756e67;margin-top:10px}.order-details{margin:0}.order-details>div{padding:12px 0;border-bottom:1px solid #e9e5e1;display:flex;gap:16px;justify-content:space-between;font-size:13px}.order-details dt{color:#85817c;flex-shrink:0}.order-details dd{margin:0;text-align:right}.order-price{display:flex;justify-content:space-between;align-items:center;margin:22px 0 14px}.order-price strong{font-size:22px}.order-status{background:#f4f1ed;padding:14px;border-radius:10px;font-size:13px;line-height:1.7;color:#666059}.order-dialog .full{margin-top:10px}.order-note{font-size:11px;color:#837d77;line-height:1.6}@media(max-width:620px){.order-dialog{padding:26px 20px}.order-layout{grid-template-columns:1fr;gap:20px}.order-image canvas{max-height:220px}.order-image small{text-align:center}.order-price strong{font-size:20px}}

.editor-mode{display:flex;gap:6px;padding:4px;background:#f2eee9;border-radius:10px;margin-bottom:14px}.editor-mode button{flex:1;padding:10px;border-radius:7px;font-size:12px;color:#7c7369}.editor-mode button[aria-pressed=true]{background:white;color:#392b1c;box-shadow:0 2px 6px #392b1d12;font-weight:600}.auto-compose-note{font-size:11px;line-height:1.7;color:#88827b;margin:10px 0 14px}.order-review{margin:18px 0 8px}.order-review h3{font-size:14px;margin:0 0 8px}.review-item{background:#f6f3ef;border-left:3px solid #ba9f71;padding:10px 12px;margin-top:7px;border-radius:6px}.review-item.ok{border-color:#8e7255;background:#f6f3ef}.review-item strong{display:block;font-size:12px;line-height:1.6}.review-item small{display:block;color:#7c756d;font-size:10px;line-height:1.7;margin-top:4px}.order-review>p{font-size:10px;line-height:1.7;color:#827b73}.guide-extra{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.guide-extra article{background:#f2ede7;border-radius:9px;padding:16px}.guide-extra strong{font-size:12px}.guide-extra p{font-size:11px;line-height:1.8;color:#80776e}.order-dialog{max-width:920px;width:min(920px,calc(100vw - 32px))}.order-layout{grid-template-columns:245px minmax(0,1fr)}@media(max-width:620px){.guide-extra,.order-layout{grid-template-columns:1fr}.order-image canvas{max-height:200px}}

.camera-direction{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:12px}.camera-direction>div{display:flex;gap:5px}.camera-direction button{padding:9px 18px;border:1px solid #cec6bd;border-radius:8px;background:#ffffff}.camera-direction button[aria-pressed=true]{color:white;background:#4e3c28;border-color:#4e3c28}.camera-scene{width:min(100%,calc(66dvh * var(--camera-aspect,.75)))}.camera-scene svg{stroke-width:.3%;}.camera-scene svg text{font-size:inherit;}.camera-resolution{display:block;margin:8px 0 3px;color:#857c73;font-size:10px}.camera-options{border:1px solid #dfd8d0;border-radius:8px;padding:12px;margin-bottom:12px}.camera-options summary{font-size:12px;color:#635547;cursor:pointer}.camera-options[open] summary{margin-bottom:16px}.native-quality-note{font-size:10px;line-height:1.7;display:block;color:#82776b;margin-top:8px}.camera-status{min-height:0;margin:8px 0 0}.camera-heading{margin-bottom:12px}@media(max-width:700px){.camera-dialog{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:14px 16px;box-sizing:border-box}.camera-heading h2{font-size:18px;margin-top:6px}.camera-layout{gap:12px}.camera-scene{width:100%;border-radius:10px}.camera-reminders{margin-top:14px}.camera-sidebar .full{margin-top:8px}.camera-sidebar label.camera-check{margin:8px 0}.camera-resolution{font-size:9px}.camera-direction{margin-bottom:10px}.camera-heading .eyebrow{font-size:9px}}

/* Hold-to-compare and photo gestures: suppress mobile copy/image callouts. */
#compare,#compare *,#photoFrame,#photoFrame *,#detailCanvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
#compare{touch-action:none}

.mobile-tools-actions,.detail-actions{display:none}
#detailCompare,#detailCompare *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;touch-action:none}
@media(max-width:680px){
  .header{height:auto;min-height:72px;flex-wrap:wrap;padding:12px 14px;gap:8px}
  .toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 0}
  .toolbar button{justify-content:center;min-height:44px;border:1px solid #e4ded8;border-radius:8px;background:#ffffff;font-size:11px;padding:7px 4px}
  .panel{padding:20px 16px}.panel-title h2{margin:7px 0}.panel-title p{margin-bottom:14px}
  .mobile-tools{position:sticky;top:0;z-index:11;background:white;margin:18px -16px 0;padding:0 12px 8px;border-bottom:1px solid #e8e4df;box-shadow:0 5px 12px #392b1d08}
  .mobile-tools .categories{display:flex;overflow-x:auto;scrollbar-width:none;margin:0;border:0;gap:2px;padding:0}
  .mobile-tools .categories::-webkit-scrollbar{display:none}
  .mobile-tools .categories button{flex:1 0 auto;min-width:46px;min-height:44px;font-size:12px;padding:10px 6px;white-space:nowrap}
  .mobile-tools-actions{display:flex;justify-content:space-between;gap:8px;padding-top:3px}
  .mobile-tools-actions button{border:1px solid #e5e0db;border-radius:7px;min-height:40px;padding:8px 12px;font-size:11px;background:#faf8f6}
  #mobileDetailToggle[aria-pressed=true]{color:#59442d;background:#f5f1ed;border-color:#d1c5b8}
  .mobile-tools .detail-window{position:static;display:grid;grid-template-columns:144px minmax(0,1fr);grid-template-rows:auto auto;gap:4px 10px;width:100%;margin-top:8px;padding:8px;border-radius:9px;border:1px solid #e3ddd7;box-shadow:none;background:#f8f5f1;left:auto;right:auto;bottom:auto;top:auto}
  .mobile-tools .detail-window[hidden]{display:none}
  .mobile-tools .detail-handle{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) 28px;background:transparent;cursor:default;touch-action:auto;padding:0;gap:3px;align-self:start}
  .mobile-tools .detail-handle strong{font-size:11px;grid-column:1;line-height:1.4}
  .mobile-tools .detail-handle>span{display:none}
  .mobile-tools .detail-handle label{grid-column:1;font-size:10px;white-space:nowrap}
  .mobile-tools .detail-handle select{min-height:28px;font-size:10px}
  .mobile-tools .detail-handle button{grid-column:2;grid-row:1 / span 2;min-height:44px;align-self:start;font-size:24px}
  .mobile-tools .detail-window canvas{grid-column:1;grid-row:1 / span 2;align-self:center;width:144px;height:96px;max-height:none;border-radius:5px}
  .mobile-tools .detail-window>small{display:none}
  .mobile-tools .detail-actions{display:block;grid-column:2;grid-row:2;align-self:end}
  .detail-actions button{width:100%;min-height:40px;border:1px solid #d9d0c6;border-radius:6px;background:white;font-size:10px;padding:6px 2px}
  .controls{padding-top:18px}.field{margin-bottom:24px}.field>div{font-size:14px;margin-bottom:6px}.field output{font-size:12px;min-width:34px}.field small{font-size:11px;line-height:1.8}
  .field input[type=range]{height:28px;background-size:100% 3px;background-repeat:no-repeat;background-position:center;margin:3px 0 5px}
  .field input[type=range]::-webkit-slider-thumb{width:22px;height:22px}.field input[type=range]::-moz-range-thumb{width:16px;height:16px}
  .editor-mode button,.profile-switch button,.light-regions button,.shape-presets button{min-height:44px}
  .mobile-tools~.controls .button{min-height:44px}.control-footer button{min-height:44px}
  .style-soon{margin-top:14px}.toast{bottom:12px}
}
@media(max-width:360px){.mobile-tools .detail-window{grid-template-columns:120px minmax(0,1fr)}.mobile-tools .detail-window canvas{width:120px;height:80px}.mobile-tools .categories button{min-width:43px;padding-inline:5px}}

.mobile-step-nav{display:none}
@media(max-width:680px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  .mobile-step-nav{position:fixed;bottom:0;left:0;right:0;z-index:13;display:flex;gap:8px;background:#ffffffed;border-top:1px solid #e5dfd8;padding:8px 14px calc(8px + env(safe-area-inset-bottom,0px));backdrop-filter:blur(10px)}
  .mobile-step-nav button{flex:1;min-height:44px;border:1px solid #e2dbd4;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;background:white}
  .mobile-step-nav button[aria-pressed=true]{background:#80634c;color:white;border-color:#80634c}
  .mobile-step-nav span{font-size:10px;opacity:.7}.toast{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
}

@media(max-width:680px){.panel{width:100%;min-width:0;align-self:stretch}.mobile-tools,.controls,.style-soon>div{min-width:0}}

.theme-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:9px;background:var(--cream)}
.theme-switch button{min-height:36px;padding:7px 12px;font-size:11px;border-radius:6px;color:var(--muted);white-space:nowrap}
.theme-switch button[aria-pressed=true]{background:var(--mint);color:var(--ink);font-weight:600}
.detail-window.overview canvas{height:280px;object-fit:contain;background:#f0eeeb}
.detail-window [hidden]{display:none!important}
html[data-theme=dark]{color-scheme:dark;--ink:#f5eade;--green:#e5c3a4;--mint:#4a3e34;--muted:#c4b4a4;--line:#5c4c3e;--cream:#211c18;--paper:#2c2520;--orange:#d4b67e}
html[data-theme=light]{color-scheme:only light;--ink:#493b30;--green:#80634c;--mint:#f0e6d8;--muted:#776b60;--line:#e6dccf;--cream:#ffffff;--paper:#ffffff;--orange:#b35d24;background:#ffffff}
html[data-theme=dark] :is(.header,.panel,.detail-window,dialog,.mobile-tools,.mobile-step-nav){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.stage,.detail-window.overview canvas,.order-image canvas){background:#231e18;border-color:var(--line)}
html[data-theme=dark] :is(.toolbar button,.sample-switch button,.editor-mode button[aria-pressed=true],.profile-switch button[aria-pressed=true],.detail-handle select,.export-card select,.purpose-picker select,.crop-purpose select,.guide-purpose select,.camera-sidebar select,.camera-direction button,.shooting-basics article,.example-grid article,.rgb-values input,.detail-actions button,.mobile-tools-actions button,.mobile-step-nav button){background:#322c26;color:var(--ink);border-color:#5a5148}
html[data-theme=dark] :is(.tip-card,.one-touch,.editor-mode,.profile-switch,.skin-protection,.size-card,.detail-handle,.guide-strict,.guide-extra article,.review-item.ok,.mobile-tools .detail-window){background:#382e24;color:var(--ink);border-color:#55483b}
html[data-theme=dark] :is(.review-item,.order-status,.passport-notice){background:#353329;color:#e0d7b8;border-color:#a28d65}
html[data-theme=dark] :is(.button.dark,.camera-direction button[aria-pressed=true],.mobile-step-nav button[aria-pressed=true]){background:#e5c3a4;color:#30251d;border-color:#e5c3a4}
html[data-theme=dark] :is(.button.outline,.tiny-button,.shape-presets button,.light-regions button,.boundary-repair,.camera-options){border-color:#60564b;color:var(--ink)}
html[data-theme=dark] :is(.shape-presets button[aria-pressed=true],.light-regions button[aria-pressed=true],#mobileDetailToggle[aria-pressed=true]){background:#594631;color:#ebe2d8;border-color:#917a62}
html[data-theme=dark] :is(.field output,.style-soon>span){background:#443a30;color:#e6dcd2}
html[data-theme=dark] .busy{background:#231e18ed;color:var(--ink)}
html[data-theme=dark] .stage-pill{background:#3b3126d6;border-color:#675d52;color:#e3dcd5}
html[data-theme=dark] :is(.intro-copy,.eyebrow,.panel-title p,.field small,.field .end-labels,.profile-note,.simple-note,.background-note,.workspace-hint,.workspace-heading,.text-button,.toolbar button,.sample-switch>span,.categories button,.control-footer,.footer,.empty-state p,.empty-state small,.demo-button,.local-note,.local-note small,.one-touch small,.style-soon p,.style-soon strong,.detail-window>small,.detail-handle span,.tip-card p,.tip-card button,.stage-footer,.measure p,.measure #headMeasure,.checklist p,.checklist a,.export-card p,.export-card>div,.guide-lead,.shooting-basics p,.guide-examples>p,.example-grid small,.guide-footnote,.guide-sources,.guide-extra p,.camera-status,.camera-reminders,.camera-options summary,.camera-resolution,.native-quality-note,.order-lead,.order-image small,.order-details dt,.order-note,.order-review>p,.review-item small,.auto-compose-note,.rgb-controls small,.boundary-repair small){color:#bbb4ad}
html[data-theme=dark] :is(.categories button.active,.purchase-note,.steps button.selected,.steps button.selected small,.tip-card strong){color:#dfcfbe}
html[data-theme=dark] :is(.control-footer,.measure,.style-soon,.export-card,.order-details>div){border-color:var(--line)}
html[data-theme=dark] .field input[type=range]{background-image:linear-gradient(to right,#bfa487 0%,#bfa487 var(--fill,50%),#564e45 var(--fill,50%),#564e45 100%)}
html[data-theme=dark] .field input[type=range]::-webkit-slider-thumb{border-color:#332c24;background:#dcccba;box-shadow:0 0 0 1px #918170}
html[data-theme=dark] .field input[type=range]::-moz-range-thumb{border-color:#332c24;background:#dcccba}
html[data-theme=dark] .swatch{border-color:#342d25;outline-color:#80786f}
html[data-theme=dark] .swatch.selected{outline-color:#ddcdbb}
html[data-theme=dark] .detail-window{box-shadow:0 8px 35px #0005}
html[data-theme=dark] .mobile-tools .detail-handle{background:transparent}
@media(max-width:680px){
  .theme-switch{margin-left:auto}.theme-switch button{min-height:40px;padding-inline:10px}
  .header>.purpose-picker{order:2;width:100%;justify-content:space-between}.header .purpose-picker select{width:calc(100% - 66px)}
  .mobile-tools .detail-window.overview{grid-template-columns:minmax(0,1fr) 116px}
  .mobile-tools .detail-window.overview canvas{width:100%;height:clamp(150px,24dvh,200px);max-height:none;object-fit:contain;grid-row:1 / span 2}
  .mobile-tools .detail-window.overview .detail-handle{grid-template-columns:minmax(0,1fr) 28px}
  .mobile-tools .detail-window.overview .detail-handle strong{font-size:11px;line-height:1.8}
}

html[data-theme=dark] :is(.button.outline,.tiny-button){background:#322c26;color:var(--ink);border-color:#60564b}

html[data-theme=dark] .sample-switch button:hover{background:#594631;color:#ebe2d8}

.detail-window canvas{object-fit:contain}
.detail-window.skin-whole canvas{background:var(--cream)}

.crop-dock-photo{display:none}.crop-preview-status{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 10px}.crop-preview-dock{margin:0 0 16px}.crop-pan{display:flex;gap:8px;margin:0 0 18px}.crop-pan button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:21px}
@media(min-width:681px){.app.cropping .workspace{position:sticky;top:12px;align-self:start}.app.cropping .stage{height:min(580px,calc(100dvh - 180px))}.app.cropping .workspace .photo-frame{height:min(470px,calc(100dvh - 230px));width:auto;max-width:90%}}
@media(max-width:680px){
 .app.cropping .workspace{display:none}.crop-preview-dock{position:sticky;top:0;z-index:11;background:var(--paper);margin:0 -8px 18px;padding:8px;border-bottom:1px solid var(--line);box-shadow:0 5px 12px #392b1d0d}
 .crop-dock-photo{display:flex;justify-content:center;padding:4px;background:var(--cream);border-radius:8px}
 .crop-dock-photo .photo-frame{height:clamp(180px,28dvh,250px);width:auto;max-width:100%;max-height:none;margin:0;box-shadow:none}
 .crop-preview-status{font-size:10px;margin:7px 0;line-height:1.6}.crop-preview-dock .button{min-height:44px;padding:10px;font-size:12px}.crop-pan button{min-height:44px}
}
html[data-theme=dark] .crop-pan button{background:#322c26;border-color:#60564b;color:var(--ink)}

@media(max-width:680px){#cropPanel input,#cropPanel select,.crop-pan button,#centerPhoto,#markHead,#exportButton{scroll-margin-top:var(--crop-scroll-top,350px);scroll-margin-bottom:80px}}
@media(max-width:680px) and (max-height:520px){.crop-dock-photo .photo-frame{height:clamp(90px,26dvh,130px)}}

/* Confirmed print prices; shipping remains a separate, unconfigured charge. */
.order-offers{border:0;padding:0;margin:0 0 20px;min-width:0}.order-offers legend{font-size:14px;font-weight:600;margin-bottom:10px}.order-offer{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 12px;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;min-height:76px;background:var(--paper);color:var(--ink);cursor:pointer}.order-offer.selected{border-color:var(--green);background:var(--mint)}.order-offer input{accent-color:var(--green);width:17px;height:17px;margin:0}.order-offer span>strong{font-size:13px;line-height:1.6;display:block}.order-offer small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:4px}.order-offer>strong{font-size:16px;white-space:nowrap}.order-pricing-note{font-size:11px;color:var(--muted);line-height:1.7;margin:0 0 16px}@media(max-width:380px){.order-offer{gap:8px;padding:13px 9px}.order-offer>strong{font-size:14px}.order-offer span>strong{font-size:12px}}
.order-customer{border:0;padding:0;margin:20px 0;display:grid;gap:12px}.order-customer legend{font-weight:700;margin-bottom:12px}.order-customer label{display:grid;gap:6px;font-size:13px}.order-customer input{min-height:44px;border:1px solid var(--line,#ddd);border-radius:10px;padding:10px;background:var(--paper,#ffffff);color:var(--ink,#222);font:inherit;width:100%;box-sizing:border-box}.order-consent{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.6;margin:18px 0}.order-consent input{width:18px;min-width:18px;height:18px}.order-total{border-top:1px solid var(--line,#ddd);padding-top:14px;font-weight:bold}.merchant-info{font-size:11px;color:var(--muted,#666);margin-top:20px;white-space:pre-wrap;overflow-wrap:anywhere}.merchant-info summary{cursor:pointer;padding:8px 0}.merchant-info p{line-height:1.6}.footer a{color:inherit}.order-dialog [hidden]{display:none!important}
/* Compare two immutable snapshots; keep controls and labels readable on phones. */
.comparison-dialog{width:min(940px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:0;border-radius:20px;padding:30px;color:var(--ink);background:var(--paper);box-shadow:0 24px 80px #382a1c40}.comparison-dialog::backdrop{background:#281e148c}.comparison-dialog h2{font-size:25px;margin:12px 0 18px}.comparison-view{display:flex;gap:8px;margin-bottom:16px}.comparison-view button{padding:10px 16px;border:1px solid var(--line);border-radius:8px}.comparison-view button[aria-pressed=true]{background:var(--mint);color:var(--green);font-weight:700}.comparison-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.comparison-pair figure{margin:0;min-width:0}.comparison-pair figcaption{text-align:center;font-size:14px;font-weight:700;margin-bottom:10px}.comparison-pair canvas{width:100%;height:auto;max-height:54dvh;object-fit:contain;border-radius:10px;background:var(--mint)}#comparisonNote{line-height:1.8;font-size:12px;color:var(--muted)}.comparison-watermark{display:block;margin-top:12px;font-size:10px;color:var(--muted);line-height:1.6}.comparison-dialog button,.comparison-pair canvas{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.advanced-file-note{font-size:10px;color:var(--muted);margin-top:10px}.advanced-file-note summary{cursor:pointer}.delivery-summary{background:var(--mint);padding:15px;border-radius:10px;margin:14px 0;color:var(--ink)}.delivery-summary strong{display:block;font-size:12px}.delivery-summary p{font-size:11px;line-height:1.8;margin:8px 0!important}.delivery-summary small{display:block;font-size:10px;line-height:1.8;white-space:pre-line;color:var(--muted)}#exportProductNote{font-weight:700;color:var(--green);line-height:1.8}.order-delivery{margin-top:18px}html[data-theme=dark] .comparison-view button[aria-pressed=true]{background:#594631;color:#ebe2d8}html[data-theme=dark] .comparison-dialog .dark{background:#e5c3a4;color:#30251d}@media(max-width:620px){.comparison-dialog{padding:24px 16px;border-radius:14px}.comparison-dialog h2{font-size:21px}.comparison-pair{gap:8px}.comparison-pair figcaption{font-size:12px}.comparison-pair canvas{max-height:48dvh}#comparisonNote{font-size:11px}.comparison-view button{flex:1;min-height:44px}.toolbar #comparePhotos{font-weight:700}}
.comparison-dialog #closeComparison{width:44px;height:44px;display:grid;place-items:center}.comparison-dialog .button{min-height:44px}@media(max-width:620px){.toolbar #comparePhotos{min-height:44px}}

/* Literal photo/background colours must stay independent of the UI theme. */
.background-palette{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:6px 0 8px}
.background-palette .background-swatch{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:100%;height:auto;min-height:80px;padding:10px 6px;border:1px solid var(--line);border-radius:10px;outline:none;background:var(--paper);color:var(--ink)}
.background-palette .background-swatch.selected{outline:none;border:2px solid var(--green);padding:9px 5px;background:var(--mint)}
.background-chip{display:flex;align-items:center;justify-content:center;width:38px;height:30px;border:1px solid #afaca8;border-radius:5px;color:#403427;font-size:9px;color-scheme:only light;forced-color-adjust:none}
.original-chip{background:repeating-conic-gradient(#ebe9e7 0% 25%,#ffffff 0% 50%) 50% / 12px 12px}
.background-color-name{font-size:11px;font-weight:600;line-height:1.4;white-space:nowrap}
.background-color-check{display:none;position:absolute;right:6px;top:4px;font-size:12px;font-weight:700}
.background-swatch.selected .background-color-check{display:block}
.background-selection{font-size:11px;color:var(--muted);line-height:1.7;margin:0 0 14px;min-height:19px}
.detail-window.background-whole canvas{background:var(--paper);color-scheme:only light}
@media(max-width:680px){
 .mobile-tools .detail-window.background-whole{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:6px}
 .mobile-tools .detail-window.background-whole .detail-handle{grid-column:1;grid-row:1;grid-template-columns:minmax(0,1fr) 28px}
 .mobile-tools .detail-window.background-whole canvas{grid-column:1;grid-row:2;width:100%;height:clamp(180px,28dvh,240px);object-fit:contain;background:var(--paper)}
 .mobile-tools .detail-window.background-whole .detail-actions{grid-column:1;grid-row:3}
}

@media(max-width:680px){html{scroll-padding-top:var(--edit-scroll-top,100px);scroll-padding-bottom:80px}.app{overflow-anchor:none}#controls button,#controls input,#controls select{scroll-margin-top:8px;scroll-margin-bottom:8px}}

/* Android WebView's default strategy requires both themes in the metadata and an author media theme. Manual choice still wins. */
@media(prefers-color-scheme:dark){
 html[data-theme=light]{color-scheme:only light;background:#ffffff;color:#493b30}
 html[data-theme=light] body{background:#ffffff;color:#493b30}
 html[data-theme=dark]{color-scheme:dark;background:#211c18;color:#f5eade}
}

/* Drag the thumb; allow vertical scrolling across every range track. */
.field input[type=range],:is(.boundary-repair,.brush-workbench) input[type=range]{--range-thumb-size:24px;appearance:none;-webkit-appearance:none;height:36px;padding:0;border:0;touch-action:pan-y;cursor:default;background-size:100% 3px;background-repeat:no-repeat;background-position:center}
:is(.boundary-repair,.brush-workbench) input[type=range]{background-image:linear-gradient(to right,#bea384 0%,#bea384 var(--fill,50%),#eee5da var(--fill,50%),#eee5da 100%)}
.field input[type=range]::-webkit-slider-thumb,:is(.boundary-repair,.brush-workbench) input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:var(--range-thumb-size);height:var(--range-thumb-size);border:3px solid var(--paper);border-radius:50%;background:#9b7250;box-shadow:0 0 0 1px #c2b6a9;cursor:ew-resize}
.field input[type=range]::-moz-range-thumb,:is(.boundary-repair,.brush-workbench) input[type=range]::-moz-range-thumb{box-sizing:border-box;width:var(--range-thumb-size);height:var(--range-thumb-size);border:3px solid var(--paper);border-radius:50%;background:#9b7250;cursor:ew-resize}
.floating-history{position:fixed;right:20px;bottom:24px;z-index:14;display:flex;gap:4px;padding:5px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 5px 22px #382a1c33}
.floating-history button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:56px;min-height:52px;border-radius:9px;font-size:10px;color:var(--green);background:var(--mint);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.floating-history svg{width:21px;height:21px}.floating-history #floatingRedo svg{transform:scaleX(-1)}
body:has(dialog[open]) .floating-history{display:none}
html[data-theme=dark] :is(.boundary-repair,.brush-workbench) input[type=range]{background-image:linear-gradient(to right,#bfa487 0%,#bfa487 var(--fill,50%),#564e45 var(--fill,50%),#564e45 100%)}
html[data-theme=dark] .field input[type=range]::-webkit-slider-thumb,html[data-theme=dark] :is(.boundary-repair,.brush-workbench) input[type=range]::-webkit-slider-thumb{background:#dcccba}
@media(max-width:680px){.floating-history{right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px))}body{padding-bottom:calc(152px + env(safe-area-inset-bottom,0px))}html{scroll-padding-bottom:152px}}

.thumb-slider{display:grid;position:relative;width:100%;touch-action:pan-y}.thumb-slider input[type=range]{pointer-events:none}

.brush-workbench{padding:10px 0;background:var(--paper)}.brush-dock-photo{display:none}.brush-dock-tools{display:flex;gap:6px;margin:8px 0}.brush-dock-tools button{flex:1;min-height:40px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:11px}.brush-dock-tools button[aria-pressed=true]{background:var(--mint);color:var(--green);border-color:#ab9883}.brush-workbench>label{display:flex;justify-content:space-between;font-size:11px}.brush-workbench small{display:block;color:var(--muted);font-size:10px;margin-top:8px}
@media(min-width:681px){.app.brushing .workspace{position:sticky;top:12px;align-self:start}.app.brushing .stage{height:min(620px,calc(100dvh - 170px))}.app.brushing .photo-frame{height:min(490px,calc(100dvh - 240px));width:auto;max-width:90%}}
@media(max-width:680px){.app.brushing .workspace{display:none}.brush-dock-photo{display:flex;justify-content:center;background:var(--cream);border-radius:8px;padding:4px}.brush-dock-photo .photo-frame{height:clamp(210px,34dvh,320px);width:auto;max-width:100%;max-height:none;box-shadow:none;margin:0}.app.brushing .mobile-tools-actions,.app.brushing .boundary-repair{display:none}.app.brushing .mobile-tools{padding-bottom:4px}.brush-workbench{padding:6px 0}.brush-workbench .thumb-slider{min-height:28px;margin:2px 0}.brush-workbench small{font-size:9px}.app.brushing #controls{padding-top:12px}}

/* Purpose comes first; every purpose uses the same editor and original portraits. */
body[data-view=home] :is(.purpose-picker,#choosePurpose,#exportTop,.mobile-step-nav,.floating-history,.detail-window){display:none!important}body[data-view=home]{padding-bottom:0}.choose-purpose{font-size:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;white-space:nowrap}.purpose-home{max-width:1160px;margin:0 auto;padding:44px 32px 36px}.purpose-intro h1{font-family:'Danjeong Heading',cursive;font-size:32px;line-height:1.5;margin:12px 0}.purpose-intro>p{color:var(--muted);line-height:1.8;font-size:14px;margin:0 0 20px}.purpose-steps{list-style:none;display:flex;gap:24px;margin:0 0 32px;padding:0;color:var(--muted);font-size:12px}.purpose-steps li{display:flex;align-items:center;gap:7px}.purpose-steps span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--mint);color:var(--green)}.purpose-steps li:first-child{color:var(--green);font-weight:700}.purpose-group{margin:0 0 28px}.purpose-group h2{font-size:16px;margin:0 0 14px}.purpose-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.purpose-card{position:relative;border:1px solid var(--line);border-radius:16px;background:var(--paper);overflow:hidden;box-shadow:0 4px 18px #382a1c08}.purpose-card:hover{border-color:#ad9b87}.purpose-card>button{display:block;width:100%;text-align:left;padding:18px}.purpose-portraits{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px;background:var(--mint);border-radius:10px}.purpose-portraits img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:5px;background:white;pointer-events:none}.purpose-card-copy{display:flex;flex-direction:column;padding-top:15px;gap:6px}.purpose-card-copy strong{font-size:18px}.purpose-card-copy>span{font-size:12px;color:var(--green)}.purpose-card-copy small{font-size:11px;color:var(--muted);line-height:1.6}.purpose-card-arrow{position:absolute;right:18px;bottom:28px;font-size:20px;color:var(--green)}.purpose-card:has(.purpose-civil-size) .purpose-card-arrow{bottom:117px}.purpose-civil-size{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 18px;font-size:11px}.purpose-civil-size select{min-width:0;min-height:40px;padding:6px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink)}.purpose-civil-note{display:block;margin:8px 18px 16px;color:var(--muted);font-size:10px;line-height:1.6}.purpose-sample-note,.purpose-local-note{font-size:11px;color:var(--muted);line-height:1.8}.purpose-local-note{padding-top:12px;border-top:1px solid var(--line)}
@media(max-width:680px){body[data-view=home] .header{height:82px;flex-wrap:nowrap}.purpose-home{padding:26px 18px 24px}.purpose-intro h1{font-size:25px;margin:8px 0 10px}.purpose-intro>p{font-size:12px}.purpose-steps{gap:12px;font-size:10px;margin-bottom:24px}.purpose-steps span{width:22px;height:22px}.purpose-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.purpose-group h2{font-size:14px;margin-bottom:12px}.purpose-group{margin-bottom:24px}.purpose-card{border-radius:12px}.purpose-card>button{padding:10px}.purpose-portraits{gap:4px;padding:5px;border-radius:7px}.purpose-card-copy{padding-top:12px;gap:5px}.purpose-card-copy strong{font-size:15px}.purpose-card-copy>span{font-size:10px}.purpose-card-copy small{font-size:9px}.purpose-card-arrow{right:10px;bottom:20px;font-size:16px}.purpose-card:has(.purpose-civil-size) .purpose-card-arrow{bottom:117px}.purpose-civil-size{padding:0 10px;display:block;font-size:10px}.purpose-civil-size select{width:100%;margin-top:5px;font-size:11px}.purpose-civil-note{font-size:9px;margin:8px 10px 12px}.purpose-sample-note,.purpose-local-note{font-size:10px}.choose-purpose{font-size:10px;padding:9px 8px}.header:has(.choose-purpose){gap:7px}.header .theme-switch{margin-left:auto}}
html[data-theme=dark] .purpose-card:hover{border-color:#bda891}html[data-theme=dark] .purpose-card-copy>span,html[data-theme=dark] .purpose-card-arrow,html[data-theme=dark] .purpose-steps li:first-child{color:#dccbb9}html[data-theme=dark] .purpose-steps span{background:#594631;color:#ebe2d8}

.resume-photo{margin:0 0 24px;min-height:44px;color:var(--green)}

.purpose-artwork{position:relative;display:block;width:100%;aspect-ratio:1.2;background:#f0ece8;border-radius:10px;overflow:hidden;isolation:isolate;color:#453625;color-scheme:only light}.menu-sheet{position:absolute;display:block;box-sizing:border-box;width:62%;padding:4%;background:#ffffff;border:1px solid #e3e1de;box-shadow:0 6px 14px #372a1c26;transform-origin:center;border-radius:2px}.sheet-male{left:2%;top:30%;transform:rotate(-9deg);z-index:0}.sheet-female{left:7%;top:10%;transform:rotate(4deg);z-index:1}.sheet-grid{display:grid;grid-template-columns:repeat(var(--sheet-cols),minmax(0,1fr));gap:3px;background:white}.sheet-grid img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;display:block;background:#ffffff}.sheet-caption{display:flex;justify-content:space-between;align-items:center;font-size:7px;line-height:1;padding-top:5px;color:#776e65}.sheet-caption b{color:#533f2a;font-weight:600}.menu-document{position:absolute;display:block;z-index:2;box-shadow:0 5px 12px #392b1d33;pointer-events:none}.passport-book{right:3%;top:14%;width:29%;aspect-ratio:204/292;transform:rotate(8deg);border-radius:3px;overflow:hidden;background:#283870}.passport-book svg{width:100%;height:100%;stroke:none}.identity-card{right:2%;bottom:16%;width:58%;padding:5%;background:linear-gradient(135deg,#efe9e3,#f6ece9 70%,#e4eef5);border:1px solid #d8d5d1;border-radius:5px;transform:rotate(7deg);color:#473e35}.identity-card>strong{display:block;font-size:10px;white-space:nowrap;margin-bottom:8px;letter-spacing:1px}.identity-content{display:flex;gap:8%;align-items:center}.identity-content>img{display:block;width:29%;height:auto;aspect-ratio:3/4;object-fit:cover}.identity-lines{flex:1;font-size:6px}.identity-lines>b{font-size:7px}.identity-lines i{display:block;height:3px;width:100%;background:#b7aea5;margin-top:5px;border-radius:2px}.identity-lines i:nth-of-type(2){width:70%}.identity-lines small{font-size:5px;display:block;margin-top:5px;white-space:nowrap}.identity-sample{display:block;text-align:right;font-size:6px;margin-top:5px;letter-spacing:1px;color:#8f867c}.identity-license{background:linear-gradient(135deg,#faf0d6,#f4e4eb 65%,#e5e8f7)}.civil-card{right:4%;bottom:12%;width:30%;background:#fcfaf8;border:1px solid #ddd3c9;padding:7% 3% 4%;border-radius:4px;transform:rotate(6deg);text-align:center;color:#695036}.civil-card strong{display:block;font-size:9px;margin:7px 0}.civil-card img{display:block;width:76%;height:auto;margin:0 auto;aspect-ratio:3/4;object-fit:cover}.civil-card small{font-size:5px;display:block;margin-top:4px;letter-spacing:1px}.badge-slot{position:absolute;top:5%;left:34%;width:32%;height:4%;border-radius:4px;background:#e4dcd4}.artwork-count{position:absolute;right:7px;top:7px;z-index:3;background:#ffffff;color:#523e29;border:1px solid #e5ded7;border-radius:4px;padding:3px 5px;font-size:9px;font-weight:700}.artwork-id34{background:linear-gradient(135deg,#e3eafc,#f0e5f4)}.artwork-id34 .menu-sheet{width:78%;padding:4%}.artwork-id34 .sheet-male{left:1%;top:35%}.artwork-id34 .sheet-female{left:19%;top:9%}.purpose-source-note{font-size:10px;color:var(--muted);line-height:1.8}.purpose-source-note a{text-underline-offset:3px}
@media(max-width:680px){.purpose-artwork{border-radius:7px}.sheet-grid{gap:2px}.sheet-caption{font-size:5px;padding-top:3px}.artwork-count{font-size:8px;right:5px;top:5px;padding:2px 4px}.identity-card>strong{font-size:7px;letter-spacing:0;margin-bottom:4px}.identity-lines>b{font-size:5px}.identity-lines i{height:2px;margin-top:3px}.identity-lines small{font-size:4px;margin-top:3px}.identity-sample{font-size:4px;margin-top:3px}.civil-card strong{font-size:6px;margin:4px 0}.civil-card small{font-size:4px}.purpose-source-note{font-size:9px}}

/* A real thumb hit target keeps iPhone/WebKit gestures away from page scrolling. */
.thumb-slider{min-height:44px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.thumb-slider-handle{position:absolute;z-index:1;width:44px;height:44px;transform:translate(-50%,-50%);touch-action:none;cursor:ew-resize;display:grid;place-items:center}
.thumb-slider-handle::before{content:"";width:24px;height:24px;box-sizing:border-box;border:3px solid var(--paper);border-radius:50%;background:#9b7250;box-shadow:0 0 0 1px #c2b6a9;pointer-events:none}
.thumb-slider input[type=range]::-webkit-slider-thumb{opacity:0}
.thumb-slider input[type=range]::-moz-range-thumb{opacity:0}
.thumb-slider:focus-within .thumb-slider-handle::before{outline:2px solid #d99c62;outline-offset:3px}
html[data-theme=dark] .thumb-slider-handle::before{background:#dcccba}
