:root{--bg:#f7f4ee;--paper:#fffefa;--ink:#332b2c;--muted:#7f7370;--subtle:#a2948a;--line:#e7dfd5;--berry:#8e2948;--berry-dark:#71213b;--berry-light:#f5e8ed;--sans:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;--serif:"Songti SC","SimSun",serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,label{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button,a{touch-action:manipulation}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,label:focus-within{outline:3px solid #ba7b91;outline-offset:3px}input,select,textarea{min-width:0;max-width:100%;color:var(--ink);border:1px solid #ded3c8;border-radius:8px;background:#fffefa;padding:11px 13px}input::placeholder,textarea::placeholder{color:#a1958c}textarea{resize:vertical}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:500}p{margin-bottom:0}[hidden]{display:none!important}.svg-library{width:0;height:0;position:absolute;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.topbar{max-width:1540px;margin:0 auto;min-height:92px;padding:18px 42px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand-seal{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--berry);color:#fff7ed;font:25px var(--serif)}.brand strong{display:block;font:600 20px var(--serif);letter-spacing:1.2px;white-space:nowrap}.brand strong span{color:var(--berry)}.brand small{font-size:8px;letter-spacing:2.6px;display:block;color:#9b8076;margin-top:5px}.view-nav{display:flex;padding:4px;background:#ece6de;border-radius:10px;gap:3px}.view-nav button{background:transparent;border-radius:7px;padding:9px 16px;display:flex;align-items:center;justify-content:center;gap:7px;color:#7f6f68;font-size:13px;white-space:nowrap}.view-nav button[aria-pressed=true],.view-nav button.is-active,.view-nav button.active{color:var(--berry);background:#fffefa;box-shadow:0 1px 5px #5f41300b}.view-nav svg{width:15px;height:15px}.text-button{background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:5px 0;color:var(--berry);font-size:12px}.text-button svg{width:15px;height:15px}.header-help{color:#786a63;white-space:nowrap}.main-shell{max-width:1460px;margin:0 auto;padding:36px 42px 0}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:28px;margin-bottom:26px}.eyebrow{font-size:9px;font-weight:500;letter-spacing:2.4px;color:#a27d6c;margin-bottom:12px}h1{font:500 clamp(24px,2.3vw,34px)/1.45 var(--serif);letter-spacing:1px;margin-bottom:10px}.page-heading>div>p:last-child{font-size:13px;color:var(--muted)}.service-status{margin-top:28px;display:flex;align-items:center;gap:8px;max-width:260px;font-size:12px;color:#8d776d;line-height:1.7}.service-status>span{width:6px;height:6px;background:#af9175;border-radius:50%;flex-shrink:0}.service-status[data-state=ready]{color:#577664}.service-status[data-state=ready]>span{background:#6e967b}.service-status[data-state=error]{color:#a54650}.service-status[data-state=error]>span{background:#a54650}.panel{background:var(--paper);border:1px solid var(--line);border-radius:15px}.shop-bar{border:1px solid var(--line);border-radius:12px;background:#fcfaf5;padding:18px 22px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:22px}.shop-identity{display:flex;align-items:center;gap:13px;min-width:0}.shop-icon{background:#eee5df;border:1px solid #e2d3c9;border-radius:10px;width:42px;height:46px;display:grid;place-items:center;color:#9f6f6c;flex-shrink:0}.shop-icon svg{width:23px;height:23px}.field-eyebrow{font-size:10px;color:#9b897d;display:block;line-height:1.5;margin-bottom:4px}.shop-identity h2{font-size:16px;margin-bottom:3px;line-height:1.5;overflow-wrap:anywhere}.shop-identity p{font-size:11px;color:#9a887d;line-height:1.6;overflow-wrap:anywhere}.shop-connect-form{display:flex;gap:8px;max-width:410px;flex:0 1 410px}.shop-connect-form input{width:100%;font-size:12px;background:var(--paper);padding:10px 12px}.secondary-button{border:1px solid #dfd1c6;background:#fffdf8;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 13px;font-size:12px;color:#825361;white-space:nowrap}.secondary-button:hover:not(:disabled){background:#f8eef0;border-color:#c99eac}.secondary-button svg{width:16px;height:16px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:24px;align-items:start}.preview-panel{padding:23px 24px 16px;position:sticky;top:20px;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.panel-heading h2{display:flex;align-items:center;gap:8px;font-size:14px;margin:0}.section-dot{width:5px;height:5px;border-radius:50%;background:var(--berry);flex-shrink:0}.micro-label{font-size:8px;color:#b79b88;letter-spacing:1.8px}.preview-canvas{border:1px solid #e7ded4;border-radius:10px;background:#efeae2;padding:13px 18px 10px}.view-switch{display:flex;width:max-content;max-width:100%;background:#e3dcd2;border-radius:7px;padding:3px;gap:2px;margin:0 0 13px auto}.view-switch button{background:transparent;border-radius:5px;padding:6px 13px;font-size:11px;color:#887669}.view-switch button[aria-pressed=true],.view-switch button.is-active,.view-switch button.active{background:var(--paper);color:var(--berry);box-shadow:0 1px 4px #5337270a}.view-switch button:disabled{opacity:.38}.photo-stage{position:relative;width:100%;aspect-ratio:4/5;max-height:650px;min-height:320px;overflow:hidden;border-radius:8px;background:#e6e0d7}.preview-image{width:100%;height:100%;position:absolute;inset:0;object-fit:contain;display:block}.before-layer{position:absolute;inset:0;z-index:1;overflow:hidden}.before-layer .preview-image{width:100%;height:100%}.photo-stage[data-view=compare]:after{content:"";position:absolute;z-index:3;left:var(--split,50%);top:0;bottom:0;width:1px;background:#fffdf8;box-shadow:0 0 2px #67594f;pointer-events:none}.photo-stage[data-view=compare]:before{content:"↔";position:absolute;left:var(--split,50%);top:50%;width:30px;height:30px;border-radius:50%;transform:translate(-50%,-50%);z-index:4;display:grid;place-items:center;background:#fffefa;color:var(--berry);font-size:15px;box-shadow:0 1px 5px #5f493232;pointer-events:none}.preview-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:radial-gradient(ellipse at center,#f8f5ef 0,#eee8df 75%)}.empty-photo-icon{position:relative;width:72px;height:80px;border:1px solid #cdbdae;border-radius:11px;display:grid;place-items:center;margin-bottom:26px;transform:rotate(-5deg);background:#fcf9f266;color:#b49788}.empty-photo-icon>svg{width:31px;height:31px;transform:rotate(5deg)}.empty-photo-icon>span{position:absolute;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#b57d8b;color:#fffefa;right:-8px;bottom:9px;transform:rotate(5deg);font-size:17px}.preview-empty strong{font:500 21px var(--serif);letter-spacing:1px;color:#8d7568;margin-bottom:13px}.preview-empty p{font-size:12px;line-height:2;color:#a18b7b}.empty-photo-line{width:26px;height:1px;background:#c9b6a3;margin:25px 0 12px}.empty-photo-foot{font-size:10px;letter-spacing:1px;color:#ad9582}.comparison-control{height:auto;min-height:0;margin-top:12px}.comparison-control:has(input[hidden]){margin:0}input[type=range]{padding:0;width:100%;height:18px;accent-color:var(--berry);border:0;background:transparent;cursor:ew-resize}.preview-status{text-align:center;font-size:11px;color:#9b8270;line-height:1.8;margin-top:13px}.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 12px}.preview-footer>span{display:flex;align-items:center;gap:6px;font-size:11px;color:#9c8676}.preview-footer>span svg{width:14px;height:14px}.download-button{font-size:11px;padding:8px 11px}.result-note{border-top:1px solid #eee6dd;padding-top:11px;font-size:11px;line-height:1.8;color:#a08a79;overflow-wrap:anywhere}.control-column{display:grid;gap:18px;min-width:0}.control-card{padding:21px 24px}.step-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:17px}.step-heading h2{display:flex;align-items:center;gap:10px;font-size:14px;margin:0}.step-heading h2>span{font:italic 19px Georgia,serif;color:#b68f7d}.step-heading .text-button{font-size:11px;white-space:nowrap}.upload-zone{position:relative;min-height:144px;border:1px dashed #d7bfae;border-radius:9px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;background:#fcfaf6;text-align:center;cursor:pointer;transition:background .2s,border-color .2s}.upload-zone:hover,.upload-zone.is-dragging,.upload-zone.is-dragover{background:#faf0f1;border-color:#b36c83}.upload-zone input,.product-upload-zone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-icon{height:25px;color:#9c6472}.upload-icon svg{width:24px;height:24px}.upload-zone strong{font-size:13px;font-weight:400;line-height:1.7;overflow-wrap:anywhere}.upload-zone>span:last-child{font-size:10px;color:#ac9582}.photo-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:11px}.photo-actions p{font-size:10px;color:#a79382;line-height:1.7}.photo-actions .text-button{font-size:11px;flex-shrink:0}.count-label{color:#a48b7a;font-size:11px;white-space:nowrap}.empty-products{border:1px dashed #e3d5c9;border-radius:9px;padding:28px 16px;display:flex;flex-direction:column;align-items:center;text-align:center;background:#fcfaf6}.empty-products>svg{width:30px;height:30px;color:#b79b88;margin-bottom:13px}.empty-products strong{font-size:13px;font-weight:400;color:#8a7163}.empty-products p{margin-top:8px;font-size:11px;color:#ab9481;line-height:1.9}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:420px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d4c5b7 transparent}.product-grid:empty{display:none}.product-card{position:relative;padding:0;text-align:left;background:#fffefa;border:1px solid #e8ded3;border-radius:9px;overflow:hidden;min-width:0;transition:border-color .15s,box-shadow .15s;display:block;width:100%;color:var(--ink)}.product-card:hover{border-color:#bc8c9c}.product-card.is-selected,.product-card[aria-pressed=true]{border-color:#a94a6a;box-shadow:0 0 0 2px #f0d9e3}.product-card.is-selected:after,.product-card[aria-pressed=true]:after{content:"✓";position:absolute;top:8px;right:8px;width:21px;height:21px;border-radius:50%;background:var(--berry);color:white;font-size:12px;display:grid;place-items:center;box-shadow:0 1px 5px #53322622}.product-image,.product-card>img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f3eee7;padding:5px}.product-card-body,.product-info{padding:10px 11px}.product-name,.product-card h3,.product-card strong{display:block;font-size:12px;line-height:1.7;font-weight:500;margin:9px 10px 3px;overflow-wrap:anywhere}.product-card-body .product-name,.product-card-body strong,.product-info .product-name,.product-info strong{margin:0 0 3px}.product-description,.product-meta,.product-card p,.product-card small{display:block;font-size:10px;line-height:1.7;color:#9b8272;margin:0 10px 10px;overflow-wrap:anywhere}.product-card-body .product-meta,.product-card-body p,.product-info .product-meta,.product-info p{margin:0}.product-badge{display:inline-block;background:#f4e6e9;color:#91596b;border-radius:4px;font-size:9px;padding:2px 5px;margin:5px 10px 9px}.inline-loading{display:flex;align-items:center;justify-content:center;gap:10px;color:#9b7e6e;font-size:12px;padding:30px 0}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #e4cbd4;border-top-color:#8e2948;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.mode-selector{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mode-option{display:flex;align-items:center;gap:8px;background:#fffdf8;border:1px solid #e4d8cd;border-radius:8px;padding:13px 12px;text-align:left}.mode-option[aria-pressed=true],.mode-option.is-selected,.mode-option.active{border-color:#b77b90;background:#fcf1f4}.mode-radio{width:12px;height:12px;border:1px solid #ccb7a7;border-radius:50%;flex-shrink:0}.mode-option[aria-pressed=true] .mode-radio,.mode-option.is-selected .mode-radio,.mode-option.active .mode-radio{border:3px solid var(--berry)}.mode-option strong{display:block;font-size:12px;line-height:1.6;font-weight:500;white-space:nowrap}.mode-option small{font-size:10px;line-height:1.7;color:#a18776;white-space:nowrap}.selected-product{display:flex;align-items:center;gap:11px;padding:17px 0}.selected-product>img,.selected-placeholder{width:46px;height:46px;border-radius:7px;object-fit:contain;background:#f0e8de;border:1px solid #e5d8cd;flex-shrink:0}.selected-placeholder{display:grid;place-items:center;color:#b69b87}.selected-product:has(img:not([hidden])) .selected-placeholder{display:none}.selected-product>div{min-width:0}.selected-product .field-eyebrow{font-size:9px;margin-bottom:2px}.selected-product strong{font-size:12px;font-weight:500;display:block;overflow-wrap:anywhere}.selected-product p{font-size:10px;color:#a28a78;margin-top:3px;line-height:1.6;overflow-wrap:anywhere}.primary-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 18px;background:var(--berry);border:1px solid transparent;border-radius:8px;color:#fffaf4;position:relative;font-size:14px;letter-spacing:.6px;transition:background .15s,transform .15s;box-shadow:0 4px 13px #8e29480d}.primary-button>span:last-child{position:absolute;right:17px;font-size:19px;font-weight:300}.primary-button:hover:not(:disabled){background:var(--berry-dark);transform:translateY(-1px)}.primary-button:disabled{background:#a57685;box-shadow:none}.generation-note{margin-top:11px;text-align:center;font-size:11px;color:#a38875;line-height:1.8;overflow-wrap:anywhere}.customer-footnote{text-align:center;margin-top:25px;font-size:11px;color:#a38f7e}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;color:#ae9c8c;font-size:10px;padding:31px 0 25px;border-top:1px solid var(--line);margin-top:30px}.merchant-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:990px;margin:36px auto 60px}.access-card{padding:32px}.access-symbol{display:grid;place-items:center;width:42px;height:42px;background:#f0e4e5;color:#9b566b;border-radius:12px;margin-bottom:21px}.access-symbol svg{width:23px;height:23px}.access-card .eyebrow{font-size:8px;margin-bottom:10px}.access-card h2{font:500 25px var(--serif);letter-spacing:1px;margin-bottom:12px}.access-card>p:not(.eyebrow){font-size:12px;line-height:1.9;color:#998372;min-height:45px;margin-bottom:24px}.field-label{display:block;font-size:12px;font-weight:500;color:#7e6559;margin:18px 0 7px}.field-label .optional{font-size:10px;color:#b5a08c;font-weight:400;margin-left:4px}.access-card input{width:100%;font-size:13px}.access-card .primary-button,.access-card .access-login{margin-top:18px;min-height:47px;width:100%}.credentials-panel{padding:25px 28px;margin-bottom:24px;background:#fcf8f2;border-color:#dac6b3}.credentials-heading{display:flex;gap:15px;align-items:flex-start}.credentials-heading .access-symbol{margin:0;width:36px;height:36px;flex-shrink:0;background:#e9e8da;color:#6c7c58}.credentials-heading h2{font-size:16px;margin-bottom:6px}.credentials-heading p{font-size:12px;color:#9a7e68;line-height:1.9}.credentials-grid{display:grid;grid-template-columns:.75fr 1.25fr;gap:18px}.credentials-grid input{display:block;width:100%;margin-top:8px;font-family:ui-monospace,Consolas,monospace;font-size:12px}.credentials-actions{display:flex;align-items:center;gap:20px;margin-top:18px}.merchant-shop-bar{padding:22px 26px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin-bottom:24px}.merchant-shop-bar h2{font-size:20px;margin:0 0 5px}.merchant-shop-bar p{font-size:12px;color:#9e8672;overflow-wrap:anywhere}.merchant-shop-bar p strong{font-weight:400;color:#846958;font-family:ui-monospace,Consolas,monospace}.share-row{display:flex;gap:9px;width:100%;padding-top:15px;border-top:1px solid #eee4d9}.share-row input{flex:1;font-size:12px;background:#fcf9f3;color:#9d8372}.merchant-workspace-grid{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:24px;align-items:start}.product-form-card{padding:25px 26px}.product-upload-zone{position:relative;min-height:174px;border:1px dashed #d6bda9;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;background:#fcfaf5;text-align:center;cursor:pointer}.product-upload-zone>img{width:100%;height:130px;object-fit:contain;border-radius:6px;margin-bottom:6px}.product-upload-zone:has(img:not([hidden])) .product-upload-icon{display:none}.product-upload-icon{color:#a2787a}.product-upload-icon svg{height:26px;width:26px}.product-upload-zone strong{font-size:12px;font-weight:400;color:#846857;overflow-wrap:anywhere}.product-upload-zone>span:last-child{font-size:10px;color:#ac927b;line-height:1.8}.product-form-card input:not([type=file]),.product-form-card textarea,.product-form-card select{width:100%;font-size:12px}.product-form-card select{appearance:auto}.product-form-card .primary-button{margin-top:22px}.field-help{margin-top:10px;font-size:10px;color:#ad927a;line-height:1.8;text-align:center}.merchant-products-panel{padding:25px 26px;min-width:0}.merchant-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.merchant-product-grid:empty{display:none}.merchant-product-grid .product-card{cursor:default}.merchant-product-grid .product-image,.merchant-product-grid .product-card>img{aspect-ratio:1/1}.product-card-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #f0e8df;padding:7px 10px}.product-delete,.delete-product,.danger-button{font-size:11px;padding:4px 0;background:transparent;color:#a75262}.product-delete:hover,.delete-product:hover,.danger-button:hover{color:#8e2948;text-decoration:underline}.merchant-empty{padding:56px 20px}.toast{position:fixed;z-index:100;left:50%;bottom:27px;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;background:#382b2bf2;color:#fff7ee;font-size:12px;line-height:1.8;border-radius:9px;padding:12px 18px;box-shadow:0 7px 28px #49302624;width:max-content;max-width:calc(100vw - 28px);overflow-wrap:anywhere}.toast[data-visible=true],.toast.is-visible{opacity:1;transform:translate(-50%,0)}.info-dialog{border:1px solid #e1d3c6;padding:27px 29px 30px;border-radius:14px;background:var(--paper);color:var(--ink);width:calc(100% - 32px);max-width:500px;max-height:85vh;overflow:auto;box-shadow:0 25px 100px #3b29242e}.info-dialog::backdrop{background:#31242252;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.dialog-heading .eyebrow{margin:0}.icon-button{width:29px;height:29px;border-radius:50%;background:#f0e7dc;color:#9b7a67;display:grid;place-items:center}.icon-button svg{width:14px;height:14px}.info-dialog h2{font:500 24px/1.6 var(--serif);letter-spacing:1px;margin-bottom:20px}.info-dialog>p{font-size:12px;color:#967c68;line-height:1.9;margin-bottom:18px}.guide-step{display:flex;gap:16px;margin:0 0 20px}.guide-step>span{font:italic 19px Georgia,serif;color:#b98f77;line-height:1.5}.guide-step strong{font-size:13px;font-weight:500}.guide-step p{font-size:12px;line-height:1.9;color:#9c826c;margin-top:5px}.dialog-callout{display:flex;align-items:flex-start;gap:10px;padding:13px;border-radius:8px;background:#f5ede3;color:#9d7e63;margin-top:24px}.dialog-callout>svg{width:16px;height:16px;margin-top:2px}.dialog-callout>p{font-size:11px;line-height:1.9}.photo-tips{list-style:none;padding:0;margin:0;display:grid;gap:16px}.photo-tips>li{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#967b65;line-height:1.9}.photo-tips svg{color:#a85b78;width:17px;height:17px;margin-top:3px}.prompt-content{border:1px solid #e7d8ca;border-radius:8px;background:#fcf8f1;padding:16px;font-size:12px;line-height:2;color:#97795f;max-height:330px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.mobile-actions{display:none}
@media(min-width:1550px){.photo-stage{max-height:720px}.control-card{padding:24px 27px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1120px){.topbar{padding:18px 28px;gap:18px}.brand strong{font-size:18px}.header-help{font-size:11px}.view-nav button{font-size:12px;padding:8px 12px}.main-shell{padding:30px 28px 0}.workspace-grid{gap:18px;grid-template-columns:minmax(0,1fr) minmax(340px,.95fr)}.control-card{padding:19px}.preview-panel{padding:20px 18px 15px}.preview-canvas{padding:12px}.preview-footer{flex-wrap:wrap;gap:10px}.service-status{max-width:220px;font-size:11px}.shop-bar{padding:17px}.shop-connect-form{flex-basis:345px}.shop-identity h2{font-size:15px}.merchant-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.merchant-workspace-grid{gap:18px;grid-template-columns:minmax(300px,.95fr) minmax(0,1.05fr)}.product-form-card,.merchant-products-panel{padding:22px}.step-heading .text-button{font-size:10px}.step-heading h2{font-size:13px}.mode-option{padding:12px 10px;gap:6px}.mode-option strong{font-size:11px}.mode-option small{font-size:9px}}
@media(max-width:860px){.header-help{display:none}.topbar{padding:16px 22px;min-height:82px}.brand strong{font-size:17px}.brand-seal{width:35px;height:35px;font-size:22px}.brand small{font-size:7px}.main-shell{padding:27px 22px 0}.page-heading{display:block;margin-bottom:22px}.service-status{margin-top:15px;max-width:none}.shop-bar{align-items:flex-start}.shop-icon{display:none}.shop-connect-form{flex-basis:320px;align-self:center}.workspace-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.95fr);gap:15px}.preview-panel{padding:18px 14px}.preview-canvas{padding:10px}.control-card{padding:18px 15px}.step-heading{gap:8px}.step-heading h2{gap:7px;font-size:12px}.step-heading .text-button{font-size:9px}.upload-zone strong{font-size:12px}.photo-actions{align-items:flex-start}.photo-actions p{font-size:9px}.mode-option{padding:11px 8px;gap:5px}.mode-option strong{font-size:10px}.mode-option small{font-size:8px}.preview-empty{padding:18px}.preview-empty strong{font-size:18px}.preview-empty p{font-size:11px}.preview-footer>span{font-size:10px}.download-button{font-size:10px;padding:8px 10px}.merchant-access-grid{gap:18px}.access-card{padding:25px}.access-card h2{font-size:23px}.merchant-workspace-grid{grid-template-columns:1fr}.product-form-card{max-width:none}.product-upload-zone>img{height:160px}.merchant-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.merchant-products-panel{min-height:240px}}
@media(max-width:700px){html{scroll-padding-top:16px}.topbar{flex-wrap:wrap;gap:13px;padding:16px 18px;min-height:0}.brand{width:100%;margin-right:0}.brand strong{font-size:19px;letter-spacing:.7px}.brand small{font-size:7px;margin-top:4px;letter-spacing:2px}.brand-seal{width:36px;height:36px}.view-nav{width:100%;padding:4px}.view-nav button{flex:1;font-size:12px;padding:9px 10px}.view-nav svg{width:15px;height:15px}.main-shell{padding:25px 16px 0}.page-heading .eyebrow{font-size:8px;letter-spacing:2px;margin-bottom:10px}h1{font-size:25px;line-height:1.55;letter-spacing:.2px;margin-bottom:9px}.page-heading>div>p:last-child{font-size:12px;line-height:1.8;max-width:310px}.service-status{font-size:10px;line-height:1.8;margin-top:12px}.shop-bar{display:block;padding:17px 16px;margin-bottom:19px}.shop-identity h2{font-size:15px}.shop-identity p{font-size:10px}.shop-connect-form{max-width:none;display:flex;margin-top:14px}.shop-connect-form input{font-size:11px;padding:10px}.shop-connect-form .secondary-button{font-size:11px;padding:9px 11px}.shop-connect-form .secondary-button svg{width:14px;height:14px}.workspace-grid{display:flex;flex-direction:column;gap:18px}.preview-panel{position:static;width:100%;padding:18px 16px 13px}.control-column{width:100%;gap:16px}.preview-canvas{padding:12px}.view-switch{margin-bottom:11px}.view-switch button{font-size:10px;padding:6px 13px}.photo-stage{min-height:300px;max-height:420px;aspect-ratio:4/5}.preview-empty strong{font-size:20px}.preview-empty p{font-size:12px}.empty-photo-icon{width:56px;height:65px;margin-bottom:23px}.empty-photo-foot{font-size:9px}.preview-footer{flex-wrap:nowrap;align-items:center;gap:8px;padding:13px 0 11px}.preview-footer>span{font-size:9px;gap:4px}.preview-footer>span svg{width:12px;height:12px}.download-button{font-size:9px;padding:8px;gap:4px}.download-button svg{width:13px;height:13px}.result-note{font-size:10px;line-height:1.9}.preview-status{font-size:10px;line-height:1.9}.panel-heading h2{font-size:13px}.micro-label{font-size:7px}.control-card{padding:20px 18px}.step-heading h2{font-size:14px;gap:10px}.step-heading .text-button{font-size:10px}.step-heading h2>span{font-size:18px}.upload-zone{min-height:146px}.upload-zone strong{font-size:12px}.photo-actions p{font-size:10px;line-height:1.8}.photo-actions .text-button{font-size:10px}.product-grid{max-height:460px;gap:12px}.product-name,.product-card h3,.product-card strong{font-size:12px}.product-description,.product-meta,.product-card p,.product-card small{font-size:10px}.empty-products{padding:30px 15px}.empty-products strong{font-size:13px}.empty-products p{font-size:11px}.mode-selector{gap:9px}.mode-option{padding:13px 10px;gap:7px}.mode-option strong{font-size:11px}.mode-option small{font-size:9px}.selected-product strong{font-size:12px}.selected-product p{font-size:10px}.primary-button{min-height:48px;font-size:13px}.generation-note{font-size:10px}.customer-footnote{font-size:10px;line-height:1.8;padding:0 9px;margin-top:23px}.site-footer{font-size:9px;padding:25px 2px 104px;margin-top:25px}.mobile-actions{position:fixed;z-index:40;left:0;right:0;bottom:0;display:flex;align-items:center;gap:7px;background:#fffdf8f5;border-top:1px solid #e2d4c7;padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -5px 22px #6b493b08;backdrop-filter:blur(10px)}.mobile-actions>a,.mobile-actions>button{flex:1;min-height:42px;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;white-space:nowrap;background:transparent;color:#8e2948}.mobile-actions>a svg{width:14px;height:14px}.mobile-actions>button{background:var(--berry);color:#fffaf5;padding:8px}.mobile-actions>button:disabled{background:#b28b98}.toast{font-size:11px;bottom:calc(80px + env(safe-area-inset-bottom));padding:11px 15px}body:has(#merchantView:not([hidden])) .mobile-actions{display:none}body:has(#merchantView:not([hidden])) .site-footer{padding-bottom:28px}.merchant-access-grid{grid-template-columns:1fr;margin:23px auto 0;gap:16px}.access-card{padding:25px 23px}.access-symbol{width:36px;height:36px;margin-bottom:18px}.access-card .eyebrow{font-size:7px}.access-card h2{font-size:24px}.access-card>p:not(.eyebrow){font-size:12px;min-height:0;margin-bottom:21px}.field-label{font-size:12px}.access-card input{font-size:12px}.credentials-panel{padding:21px 18px}.credentials-heading{gap:11px}.credentials-heading h2{font-size:14px;line-height:1.8}.credentials-heading p{font-size:11px}.credentials-grid{grid-template-columns:1fr;gap:0}.credentials-grid input{font-size:11px}.credentials-actions{gap:15px;justify-content:space-between;flex-wrap:wrap}.credentials-actions .secondary-button{font-size:11px}.credentials-actions .text-button{font-size:11px}.merchant-shop-bar{padding:20px;gap:14px}.merchant-shop-bar h2{font-size:19px}.merchant-shop-bar p{font-size:11px}.merchant-shop-bar>.text-button{font-size:11px}.share-row{flex-wrap:wrap;gap:9px;padding-top:14px}.share-row input{width:100%;flex:auto;font-size:11px}.share-row .secondary-button{width:100%;font-size:12px}.merchant-workspace-grid{gap:17px}.product-form-card,.merchant-products-panel{padding:21px 19px}.product-upload-zone{min-height:155px}.product-upload-zone>img{height:160px}.product-upload-zone strong{font-size:12px}.product-upload-zone>span:last-child{font-size:10px}.product-form-card input:not([type=file]),.product-form-card textarea,.product-form-card select{font-size:12px}.merchant-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.merchant-empty{padding:36px 14px}.info-dialog{padding:22px 24px 26px}.info-dialog h2{font-size:23px}.dialog-heading .eyebrow{font-size:8px}.guide-step p{font-size:11px}.dialog-callout>p{font-size:10px}.photo-tips>li{font-size:11px}.prompt-content{font-size:11px;line-height:2}}
@media(max-width:360px){.main-shell{padding-left:12px;padding-right:12px}.topbar{padding-left:15px;padding-right:15px}h1{font-size:23px}.brand strong{font-size:18px}.control-card{padding:18px 15px}.step-heading h2{font-size:13px;gap:8px}.step-heading .text-button{font-size:9px}.mode-option{padding:12px 8px;gap:5px}.mode-option strong{font-size:10px}.mode-option small{font-size:8px}.preview-footer>span{font-size:8px}.download-button{font-size:8px}.mobile-actions{padding-left:9px;padding-right:9px;gap:5px}.mobile-actions>a,.mobile-actions>button{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
.service-settings{margin-bottom:24px;overflow:hidden}.service-settings>summary{display:flex;align-items:center;gap:16px;list-style:none;padding:19px 25px;cursor:pointer}.service-settings>summary::-webkit-details-marker{display:none}.service-settings>summary>span:first-child{display:flex;align-items:center;gap:9px}.service-settings>summary strong{font-size:14px;font-weight:500}.service-settings>summary svg{width:18px;height:18px;color:#a76a7f}.merchant-service-status{font-size:11px;line-height:1.7;color:#a08a76;margin-left:auto}.details-chevron{font-size:18px;color:#a68d77;transition:transform .15s}.service-settings[open] .details-chevron{transform:rotate(180deg)}.service-settings-content{padding:0 25px 24px;border-top:1px solid #eee4d9}.service-settings-content>p{font-size:12px;color:#9b806b;line-height:1.9;margin-top:18px}.service-fields{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px}.service-fields input,.service-fields select{width:100%;font-size:12px}.service-quota-note{margin-top:20px;display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid #ead8bd;background:#fbf5e9;border-radius:8px;color:#9c7c55}.service-quota-note>svg{width:17px;height:17px;margin-top:2px}.service-quota-note strong{font-size:12px;font-weight:500}.service-quota-note p{font-size:11px;line-height:1.9;margin:5px 0 7px}.service-quota-note a{font-size:11px;color:#97633e;text-decoration:underline;text-underline-offset:3px}.checkbox-label{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.9;color:#92735c;margin-top:17px;cursor:pointer}.checkbox-label input{width:15px;height:15px;margin-top:3px;padding:0;accent-color:var(--berry);flex-shrink:0}.service-form-actions{display:flex;align-items:center;gap:23px;margin-top:18px}.service-form-actions .primary-button{width:auto;min-height:43px;padding:10px 21px;font-size:12px}.service-form-actions .danger-button{font-size:11px}.service-settings>summary:focus-visible{outline:3px solid #ba7b91;outline-offset:-3px}
@media(max-width:700px){.service-settings{margin-bottom:18px}.service-settings>summary{padding:18px;gap:10px}.service-settings>summary strong{font-size:13px}.merchant-service-status{font-size:10px}.service-settings-content{padding:0 18px 21px}.service-settings-content>p{font-size:11px}.service-fields{grid-template-columns:1fr;gap:0}.service-fields input,.service-fields select{font-size:11px}.service-quota-note{padding:12px;gap:8px}.service-quota-note strong{font-size:11px}.service-quota-note p,.service-quota-note a{font-size:10px}.checkbox-label{font-size:10px}.service-form-actions{gap:18px;flex-wrap:wrap}.service-form-actions .primary-button{font-size:11px;padding:10px 15px}.service-form-actions .danger-button{font-size:10px}}
/* Keep everyday operations compact and first in the mobile flow. */
.brand small,.page-heading .eyebrow,.micro-label,.empty-photo-line,.empty-photo-foot{display:none}.topbar{min-height:66px;padding:12px 24px}.brand strong{font:600 18px var(--sans);letter-spacing:0}.brand-seal{width:32px;height:32px;font-size:20px}.main-shell{padding:20px 24px 0}.page-heading{margin-bottom:16px;align-items:center}h1{font:600 23px/1.4 var(--sans);letter-spacing:0;margin-bottom:6px}.service-status{margin-top:0}.shop-bar{padding:12px 16px;margin-bottom:16px}.panel{border-radius:8px}.control-card,.preview-panel{padding:16px}.workspace-grid{gap:18px}.control-column{gap:14px}.step-heading{margin-bottom:12px}.step-heading h2>span{font:600 13px var(--sans);color:var(--berry)}.photo-stage{min-height:220px;max-height:560px}.photo-stage[data-has-photo=false]{height:240px;aspect-ratio:auto;min-height:0;max-height:240px}.preview-empty{padding:16px;background:#f3efe8}.empty-photo-icon{width:42px;height:46px;transform:none;margin-bottom:14px;border-radius:6px}.empty-photo-icon>svg{width:23px;height:23px;transform:none}.empty-photo-icon>span{width:18px;height:18px;font-size:13px;transform:none}.preview-empty strong{font:500 15px var(--sans);letter-spacing:0;margin-bottom:7px}.preview-empty p{font-size:12px;line-height:1.8}.product-grid{max-height:360px}.access-card .eyebrow{display:none}.access-card h2{font:600 20px var(--sans)}.access-symbol{margin-bottom:12px}.site-footer{margin-top:16px}.brand,.shop-icon,.brand-seal{box-shadow:none}
@media(max-width:700px){.topbar{padding:12px 16px;gap:10px}.brand strong{font-size:17px}.main-shell{padding:16px 14px 0}.page-heading{margin-bottom:12px}h1{font-size:21px}.page-heading>div>p:last-child{max-width:none;font-size:12px}.service-status{margin-top:8px}.shop-bar{padding:12px;margin-bottom:14px}.shop-connect-form{margin-top:10px}.workspace-grid{display:flex;flex-direction:column;gap:14px}.control-column{display:contents}#uploadPanel{order:1;width:100%}#productSection{order:2;width:100%}.generate-card{order:3;width:100%}.preview-panel{order:4;position:static;width:100%;padding:16px}.control-card{padding:16px}.upload-zone{min-height:116px}.empty-products{padding:20px 12px}.photo-stage{max-height:420px;min-height:220px}.photo-stage[data-has-photo=false]{height:180px;min-height:0;max-height:180px}.product-grid{max-height:340px}.product-card{min-height:44px}.service-settings>summary{padding:16px}.access-card{padding:20px}.shop-identity h2{font-size:15px}.primary-button,.secondary-button,.view-nav button{min-height:44px}.view-switch button{min-height:36px}.product-form-card input:not([type=file]),.product-form-card textarea,.product-form-card select,.service-fields input,.service-fields select{font-size:16px}.credentials-grid input,.share-row input{font-size:14px}}
.error-details{margin:10px 0;font-size:12px;color:#7b4f5d;border:1px solid #eadce1;border-radius:6px;padding:10px 12px}.error-details summary{cursor:pointer}.error-details pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 var(--sans);margin:10px 0}.service-check-result{font-size:12px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere;margin-top:14px}.service-check-result:empty{display:none}.service-check-result[data-state=error]{color:#a12e45}.service-check-result[data-state=success]{color:#42674f}.service-form-actions{flex-wrap:wrap;gap:12px}
/* Nail-only image protection controls. */
.protection-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.protection-actions>p{flex:1 1 100%;margin:0;font-size:12px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.protection-actions .secondary-button{width:auto;min-height:44px;padding:9px 12px;font-size:12px}.protection-actions .text-button{min-height:44px;white-space:normal}
.nail-mask-dialog{width:min(900px,calc(100% - 28px));max-height:calc(100dvh - 28px);padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--ink);overflow:auto}.nail-mask-dialog::backdrop{background:#241a20a6}.nail-mask-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.nail-mask-heading h2{font:600 19px/1.5 var(--sans);margin:0}.nail-mask-dialog>p{font-size:12px;line-height:1.8;margin:8px 0 12px;color:var(--muted)}.nail-mask-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.nail-mask-tools>button,.nail-mask-zoom>button{min-height:40px;padding:7px 12px;border:1px solid var(--line);border-radius:6px;background:#faf7f2;font-size:12px}.nail-mask-tools>button[aria-pressed=true]{border-color:var(--berry);background:var(--berry-light);color:var(--berry)}.nail-mask-tools label{display:flex;align-items:center;gap:7px;font-size:12px;margin-left:auto}.nail-mask-tools input[type=range]{width:110px;max-width:100%;padding:0;accent-color:var(--berry)}.nail-mask-tools output{min-width:37px;font-size:11px;color:var(--muted)}.nail-mask-zoom{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin-bottom:8px}.nail-mask-zoom output{min-width:45px;text-align:center;font-size:12px}.nail-mask-viewport{width:100%;max-height:52dvh;min-height:160px;overflow:auto;border:1px solid var(--line);border-radius:6px;background:#e9e4dc;overscroll-behavior:contain}.nail-mask-viewport canvas{display:block;margin:auto;max-width:none;touch-action:none;cursor:crosshair}.nail-mask-dialog .nail-mask-status{min-height:22px;color:var(--berry);margin:10px 0}.nail-mask-actions{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:12px}.nail-mask-actions>span{font-size:11px;color:var(--muted);margin-right:auto}.nail-mask-actions .primary-button,.nail-mask-actions .secondary-button{width:auto;min-height:44px;font-size:12px;padding:9px 15px}.nail-mask-dialog .icon-button{min-width:44px;min-height:44px}
@media(max-width:700px){.nail-mask-dialog{width:calc(100% - 16px);padding:14px;max-height:calc(100dvh - 16px)}.nail-mask-heading h2{font-size:17px}.nail-mask-tools{gap:6px}.nail-mask-tools>button,.nail-mask-zoom>button{min-height:44px;padding:7px 10px}.nail-mask-tools label{width:100%;margin-left:0;justify-content:flex-start}.nail-mask-tools input[type=range]{flex:1;width:auto}.nail-mask-viewport{max-height:45dvh}.nail-mask-actions{flex-wrap:wrap;gap:8px}.nail-mask-actions>span{width:100%;margin-right:0}.nail-mask-actions .primary-button{flex:1}.nail-mask-actions .secondary-button{min-width:78px}}
