*{box-sizing:border-box} :root{--ink:#263d33;--green:#2d5947;--soft:#eaf0e9;--line:#e4e7df;--muted:#7b857c;--paper:#f7f7f2;--warm:#e9e2d4;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}body{margin:0;font-size:14px;line-height:1.5}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button{color:inherit}button,a{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #689174}a{color:inherit;text-decoration:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:16px;font-weight:650}h3{font-size:15px}small{font-size:12px;color:var(--muted)}.muted{color:var(--muted);margin-bottom:16px}.topbar{height:64px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);gap:12px}.brand{display:flex;align-items:center;gap:10px;font-size:15px}.brandmark{display:grid;place-items:center;width:33px;height:33px;background:var(--green);color:white;border-radius:10px;font-size:17px;font-family:serif}.brand-divider{color:#b9c1b7;margin:0 12px}.brand strong{font-size:14px;font-weight:500}.account-link{font-size:12px;color:var(--muted);max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.shell{max-width:780px;margin:auto;padding:25px 24px 170px}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 22px}.eyebrow{font-size:12px;color:var(--muted);margin-bottom:5px;letter-spacing:1px}h1{font-size:25px;line-height:1.5;letter-spacing:-.7px;font-weight:650}.small-pill{font-size:11px;padding:5px 10px;border:1px solid #dce4d8;border-radius:99px;white-space:nowrap;color:#697d69}.step{background:white;border:1px solid var(--line);border-radius:17px;padding:18px;margin-bottom:13px}.section-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.section-line h2{display:flex;align-items:center;gap:8px}.step-num{font-size:11px;display:inline-grid;place-items:center;width:21px;height:21px;border-radius:7px;background:var(--soft);color:var(--green);margin-right:7px;font-weight:650}.section-line h2 .step-num{margin-right:0}.hint{font-size:11px;font-weight:400;color:var(--muted)}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:40px;padding:6px 3px;border:0;background:none;color:var(--green);font-size:12px}.text-button svg{width:16px;height:16px}.product-select{width:100%;display:flex;align-items:center;gap:13px;border:1px dashed #cad7c6;border-radius:12px;background:#f9fbf7;text-align:left;padding:13px}.product-select.has-product{border-style:solid;background:#fff}.product-select strong{display:block;font-size:14px;overflow-wrap:anywhere}.product-select small{display:block;margin-top:2px}.product-placeholder,.product-select img{width:54px;height:54px;border-radius:10px;object-fit:cover;display:grid;place-items:center;background:#eaf0e6;color:#799174;flex-shrink:0}.chevron{margin-left:auto;width:18px;color:#8b9789}.reference-strip{display:flex;gap:8px;overflow-x:auto;padding-top:11px}.ref-choice{position:relative;flex-shrink:0;width:49px;height:49px;padding:0;border:2px solid transparent;border-radius:8px;background:#f1f4ed}.ref-choice img{width:100%;height:100%;object-fit:cover;border-radius:6px;opacity:.5}.ref-choice[aria-pressed=true]{border-color:var(--green)}.ref-choice[aria-pressed=true] img{opacity:1}.ref-choice .ref-check{position:absolute;right:-3px;bottom:-3px;border-radius:99px;background:var(--green);color:white;display:grid;place-items:center;width:16px;height:16px;border:2px solid white}.ref-check svg{width:10px;height:10px;stroke-width:3}.ref-caption{align-self:center;font-size:10px;color:var(--muted);min-width:50px;max-width:70px}.mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);background:#f2f4ef;border-radius:10px;padding:4px;gap:4px;margin-bottom:13px}.mode-tabs button{border:0;border-radius:7px;background:none;min-height:40px;font-size:14px;color:#748170}.mode-tabs button.active{background:white;box-shadow:0 2px 5px #233e3210;color:var(--green);font-weight:650}.effects-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.effect-card{position:relative;text-align:left;padding:0 0 9px;border:2px solid transparent;background:#f5f5f0;border-radius:10px;overflow:hidden}.effect-card img{width:100%;height:110px;object-fit:cover;display:block}.effect-card strong{display:block;font-size:12px;padding:8px 9px 0;font-weight:550}.effect-card.active{border-color:var(--green);background:#f0f5ed}.effect-check{position:absolute;right:7px;top:7px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#ffffffb3;border:1px solid #ffffffa8;color:transparent}.active .effect-check{background:var(--green);border-color:var(--green);color:white}.effect-check svg{width:14px;height:14px;stroke-width:2.5}.example-note{text-align:right;font-size:10px;color:#92998e;margin-top:7px}.poster-title{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:12px}.poster-title input{flex:1;width:0}.output-step>h2{margin-bottom:14px}.platform-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.platform-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px solid var(--line);border-radius:9px;background:white;font-size:12px}.platform-tabs button.active{border-color:#52735a;background:#f1f6ee}.platform-dot{width:16px;height:16px;border-radius:5px;position:relative;display:inline-block}.moments{background:conic-gradient(#55996c,#78ad70,#e3d488,#8faeb6,#599d7a,#55996c);border-radius:50%}.moments:after{content:'';position:absolute;inset:5px;background:white;border-radius:50%}.redbook{background:#dc646b}.redbook:after{content:'书';position:absolute;color:white;font-size:10px;inset:0;text-align:center;line-height:16px}.douyin{background:#39413e}.douyin:after{content:'♪';position:absolute;color:white;font-size:15px;inset:0;text-align:center;line-height:16px}.quantity-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:16px;border-bottom:1px solid #f0f1ec}.quantity-row>span{font-size:12px}.quantity-row>div{display:flex;gap:8px}.quantity-row button{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:49px;min-height:40px;font-size:12px}.quantity-row button.active{border-color:var(--green);background:var(--soft);color:var(--green);font-weight:650}.copy-toggle{display:flex;position:relative;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;cursor:pointer}.copy-toggle strong{font-size:13px;font-weight:500;display:block}.copy-toggle small{display:block;font-size:10px;margin-top:3px}.copy-toggle input{position:absolute;right:0;opacity:0;width:40px;height:28px;z-index:2;cursor:pointer}.switch{position:relative;width:38px;height:22px;background:#d4dbd0;border-radius:99px;flex-shrink:0}.switch:before{content:'';position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:white;box-shadow:0 1px 3px #0001;transition:transform .18s}.copy-toggle input:checked+.switch{background:var(--green)}.copy-toggle input:checked+.switch:before{transform:translateX(16px)}.copy-toggle input:focus-visible+.switch{outline:2px solid #689174;outline-offset:4px}.extra{margin-top:14px;border-top:1px solid #f0f1ec;padding-top:11px}.extra summary{font-size:11px;color:#7e897c;cursor:pointer;min-height:28px;list-style:none;display:flex;align-items:center;gap:7px}.extra summary:before{content:'＋';font-size:15px}.extra[open] summary:before{content:'−'}.extra summary span{font-size:10px;background:#f3f4ef;padding:1px 5px;border-radius:4px}.extra textarea{margin-top:6px}.history-section{padding:10px 2px}.history-section h2{font-size:15px}.empty-note{text-align:center;color:#96a08f;padding:24px 10px;font-size:12px}.history-list{display:grid;gap:10px}.history-card{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:1px solid var(--line);background:white;border-radius:12px;padding:11px}.history-cover{height:58px;width:58px;object-fit:cover;border-radius:8px;background:#eef2e9;display:grid;place-items:center;color:#91a289;flex-shrink:0}.history-info{flex:1;min-width:0}.history-info strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-info small{font-size:10px;display:block;margin-top:3px}.history-state{font-size:11px;white-space:nowrap;color:#678264}.history-state.error{color:#aa7250}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;min-height:46px;padding:10px 17px;border-radius:11px;font-weight:550;font-size:13px;cursor:pointer}.primary{background:var(--green);color:#fff}.secondary{background:white;border-color:var(--line);color:var(--green)}.quiet{background:none;color:var(--muted)}.full{width:100%}.small{padding:8px 12px;min-height:41px;font-size:12px}.more{display:block;margin:12px auto;background:none;border-color:var(--line);font-size:12px;color:var(--muted);min-height:40px}.create-dock{position:fixed;bottom:67px;left:0;right:0;background:#ffffffee;backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:12px 24px 8px;z-index:5}.dock-inner{display:flex;align-items:center;justify-content:space-between;max-width:732px;margin:auto;gap:12px}.dock-inner strong{display:block;font-size:13px;font-weight:550}.dock-inner small{display:block;font-size:10px;margin-top:3px}.generate{min-width:152px}.generate svg{width:18px;height:18px}.inline-status{color:#a15b3d;font-size:12px;overflow-wrap:anywhere}.inline-status:empty{display:none}.create-dock .inline-status{max-width:732px;margin:6px auto 0}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:67px;padding:5px 0 calc(5px + env(safe-area-inset-bottom));box-sizing:content-box;background:#fff;border-top:1px solid #edf0e7;display:flex;justify-content:center;gap:110px;z-index:6}.bottom-nav button{min-width:70px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;background:none;color:#9ca694;font-size:10px}.bottom-nav button.active{color:var(--green)}.bottom-nav button svg{width:21px;height:21px}.product-search{display:flex;gap:10px;align-items:center;background:white;border:1px solid var(--line);border-radius:11px;padding:0 12px;margin-bottom:17px}.product-search>span{font-size:12px;color:var(--muted)}.product-search input{border:0;background:none;min-width:0;flex:1}.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.product-card{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:white;position:relative}.product-card .product-cover{width:100%;aspect-ratio:1;object-fit:cover;background:#e9eee4;display:grid;place-items:center;color:#9fae95;border:0;cursor:pointer}.product-cover svg{width:40px;height:40px}.product-card .product-info{padding:11px}.product-info strong{display:block;font-size:13px;overflow-wrap:anywhere}.product-info small{display:block;font-size:10px;margin-top:4px}.product-card .product-edit{position:absolute;right:7px;top:7px;border:0;border-radius:99px;background:#fffffff0;width:40px;height:36px;font-size:15px}.product-card .use-product{margin-top:9px;font-size:11px;min-height:35px;padding:5px 10px;width:100%}.products-empty{grid-column:1/-1;border:1px dashed #cbd8c6;border-radius:14px;padding:35px;text-align:center;color:var(--muted)}.products-empty h2{color:var(--ink);margin-bottom:8px}.products-empty .button{margin-top:20px}.loading{padding:50px 0;text-align:center;color:var(--muted)}.auth-empty{padding:65px 0;text-align:center}.empty-art{display:grid;place-items:center;width:80px;height:80px;border-radius:25px;background:#e8eedf;color:#7b9972;margin:0 auto 25px}.empty-art svg{width:38px;height:38px}.auth-empty h1{font-size:25px}.auth-empty p{margin:13px 0 25px;color:var(--muted)}.auth-empty .button{margin:auto 4px;max-width:300px}.sheet{border:0;padding:0;position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,640px);max-width:100%;max-height:92dvh;border-radius:22px 22px 0 0;color:var(--ink);background:#fafbf7;box-shadow:0 -10px 80px #15241622;overflow-y:auto;overscroll-behavior:contain}.sheet::backdrop,.viewer::backdrop{background:#15281e75;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.sheet-head{position:sticky;top:0;z-index:3;background:#fafbf7f5;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:17px}.sheet-head small{font-size:10px;display:block;margin-top:3px}.icon-button{display:inline-grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:0;background:#eef1e9;border-radius:50%;color:#6c7e68}.icon-button svg{width:19px;height:19px}.sheet-body{padding:20px 20px calc(22px + env(safe-area-inset-bottom))}.sheet-footer{position:sticky;bottom:0;padding:13px 20px calc(13px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fafbf7f5;z-index:3;backdrop-filter:blur(10px)}.field{display:block;margin-bottom:17px;font-size:13px;font-weight:550}.field>small{display:block;margin:4px 0 10px;font-weight:400;font-size:11px}.field>input,.field>textarea{margin-top:8px}.field .hint{margin-left:7px}.field input,.field textarea,input,textarea{padding:12px;border-radius:9px;border:1px solid #dfe5d8;background:white;min-height:44px;color:var(--ink);width:100%;font-size:16px;max-width:100%}textarea{resize:vertical;min-height:70px}.field textarea{font-size:14px;line-height:1.6}.upload-button{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;border:1px dashed #c0d0b8;background:#f0f4e9;border-radius:12px;padding:20px;cursor:pointer}.upload-button svg{width:24px;height:24px;color:#718f65}.upload-button strong{font-size:12px;font-weight:500}.upload-button small{font-size:10px}.upload-button input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;min-height:0;padding:0;border:0}.upload-button:focus-within{outline:2px solid #689174}.upload-previews{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.upload-item{position:relative;aspect-ratio:1;border-radius:10px;background:#e9eee2}.upload-item img{width:100%;height:100%;border-radius:10px;object-fit:cover}.remove-upload{position:absolute;right:-4px;top:-4px;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid var(--line);font-size:20px;line-height:20px;color:#8e6c5b}.points-field{margin-top:21px}.danger-text{border:0;color:#b26a4e;background:none;padding:10px 0;font-size:12px;min-height:40px;margin-top:9px}.picker-list{display:grid;gap:9px;margin-bottom:15px}.picker-list .product-select{border-style:solid}.result-body{padding-top:14px}.job-progress{padding:11px 13px;border:1px solid #dce5d3;background:#edf3e6;border-radius:10px;color:#607f53;font-size:12px;margin-bottom:11px}.job-progress.running:before{content:'';display:inline-block;width:8px;height:8px;background:#82a36d;border-radius:50%;margin-right:7px;animation:pulse 1.5s infinite}.selection-line{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--muted);margin-bottom:10px}.selection-line #stopJob,.selection-line #resumeJob{margin-left:auto}.results-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.result-card{border-radius:12px;border:1px solid var(--line);overflow:hidden;background:white;position:relative}.result-image{width:100%;aspect-ratio:3/4;background:#edf0e7;position:relative;display:grid;place-items:center;padding:0;border:0;color:#8a9f7b}.result-image img{width:100%;height:100%;position:absolute;inset:0;object-fit:contain}.frame-placeholder{text-align:center;padding:15px;font-size:12px;overflow-wrap:anywhere}.frame-placeholder small{display:block;margin-top:6px;font-size:10px;color:#a18b76}.frame-placeholder svg{width:30px;height:30px;margin-bottom:8px}.result-select{position:absolute;top:8px;right:8px;width:35px;height:35px;padding:6px;border:1px solid #ccd7c7;background:#fff;border-radius:50%;color:transparent;z-index:1}.result-select.selected{background:var(--green);border-color:white;color:white}.result-select svg{width:21px;height:21px;stroke-width:2.4}.result-bottom{display:flex;justify-content:space-between;align-items:center;padding:4px 9px;gap:8px;font-size:10px;color:var(--muted);min-height:38px}.result-bottom .text-button{font-size:10px;min-height:34px}.copy-card{padding:14px;border:1px solid var(--line);background:#fff;border-radius:12px;margin-top:17px}.copy-card .section-line{margin-bottom:5px}.copy-card textarea{font-size:14px;line-height:1.8;padding:3px 0;border:0;min-height:150px;background:transparent}.result-actions{display:grid;grid-template-columns:1fr 1.7fr;gap:10px}.result-actions svg{width:17px;height:17px}.result-body .inline-status{margin-top:13px}.viewer{position:fixed;border:0;border-radius:16px;background:#17251d;color:white;padding:0;max-width:94vw;width:600px;max-height:94dvh;overflow:auto}.viewer img{display:block;max-width:100%;max-height:73dvh;object-fit:contain;margin:auto;width:100%;min-height:150px}.viewer-close{position:absolute;top:10px;right:10px;z-index:1;background:#ffffffe6}.viewer-actions{display:flex;gap:10px;justify-content:center;padding:14px}.viewer p{font-size:11px;text-align:center;margin-bottom:15px;color:#c0c9b7}.adjust-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 20px}.adjust-options button.active{border-color:var(--green);background:var(--soft)}.download-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.download-links a{font-size:12px;min-height:44px;padding:11px;border-radius:9px;background:white;border:1px solid var(--line);text-align:center}.sheet-body>#zipDownload{margin:10px 0 18px}.toast{position:fixed;bottom:190px;left:50%;transform:translateX(-50%) translateY(8px);background:#263d33ed;color:white;padding:11px 18px;border-radius:12px;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .15s,transform .15s;max-width:90vw;width:max-content}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}@keyframes pulse{50%{opacity:.35}}@media(min-width:900px){.shell{padding-top:32px}.step{padding:20px}.effects-grid .effect-card img{height:130px}.bottom-nav{height:61px;gap:160px}.create-dock{bottom:71px}.sheet{inset:50% 0 auto;transform:translateY(-50%);border-radius:20px;max-height:88dvh}.results-sheet{width:700px}.sheet-body{padding:22px}.viewer{width:650px}}@media(max-width:600px){.topbar{height:55px;padding:0 17px}.brand{font-size:13px;gap:8px}.brandmark{width:29px;height:29px;border-radius:8px;font-size:15px}.brand-divider{margin:0 8px}.brand strong{font-size:12px}.account-link{font-size:11px}.shell{padding:20px 14px calc(180px + env(safe-area-inset-bottom))}.page-intro{margin-bottom:17px}.eyebrow{font-size:10px}.page-intro h1{font-size:21px}.small-pill{display:none}.step{padding:14px;border-radius:14px;margin-bottom:11px}.section-line{margin-bottom:9px}.section-line h2{font-size:14px}.hint{font-size:10px}.product-select{padding:10px}.product-placeholder,.product-select img{width:46px;height:46px}.product-select strong{font-size:13px}.product-select small{font-size:10px}.mode-tabs{margin-bottom:10px}.mode-tabs button{min-height:38px;font-size:12px}.effects-grid{grid-template-columns:repeat(2,1fr);gap:8px}.effect-card{padding-bottom:7px;border-radius:9px}.effect-card img{height:96px}.effect-card strong{font-size:12px;padding:7px 9px 0}.output-step>h2{font-size:14px;margin-bottom:12px}.platform-tabs{gap:7px;margin-bottom:13px}.platform-tabs button{min-height:42px;font-size:11px}.quantity-row{padding-bottom:13px}.quantity-row>div{gap:6px}.quantity-row button{min-width:46px;min-height:39px;font-size:11px}.quantity-row>span{font-size:11px}.copy-toggle{padding-top:12px}.copy-toggle strong{font-size:12px}.create-dock{bottom:calc(65px + env(safe-area-inset-bottom));padding:11px 16px 9px}.dock-inner strong{font-size:12px}.dock-inner small{font-size:10px}.generate{min-width:132px;font-size:12px;min-height:46px;padding:10px 13px}.bottom-nav{height:55px;padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom));gap:100px}.products-grid{grid-template-columns:repeat(2,1fr);gap:11px}.product-info strong{font-size:12px}.products-empty{padding:30px 15px}.sheet-head{padding:13px 16px}.sheet-body{padding:17px 16px calc(18px + env(safe-area-inset-bottom))}.sheet-footer{padding-left:16px;padding-right:16px}.sheet-head h2{font-size:16px}.result-bottom{padding:4px 7px;font-size:9px}.result-bottom .text-button{font-size:9px}.product-search input{font-size:14px}.viewer-actions .button{font-size:12px}.sheet{max-height:94dvh}.auth-empty h1{font-size:23px}.toast{bottom:190px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}@media(max-width:350px){.hint{max-width:120px;text-align:right}.quantity-row>div{gap:4px}.quantity-row button{min-width:39px}.page-intro h1{font-size:19px}.brand>span:last-child{font-size:12px}.brand-divider{margin:0 5px}.generate{min-width:116px;padding:10px}.dock-inner strong{font-size:11px}}
.history-list{grid-template-columns:minmax(0,1fr)}.history-card{min-width:0}.merchant-entry{white-space:nowrap;color:#2d5947;font-weight:600}

.quantity-row>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:1}.quantity-row>span{white-space:nowrap}.quantity-row button{min-width:0;padding-left:4px;padding-right:4px}

.result-image-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}

.image-download-status{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:99;max-width:calc(100vw - 32px);padding:5px 10px;border-radius:6px;background:#243932;color:#fff;font-size:.75rem;line-height:1.4;pointer-events:none;white-space:nowrap}

.bulk-download-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.45rem .75rem;margin-top:.55rem;padding:.45rem .6rem;border:1px solid #dce4d8;border-radius:.5rem;background:#f1f5ee;font-size:.82rem}
.bulk-download-bar label{display:inline-flex;gap:.35rem;align-items:center;min-height:2rem;color:inherit}
.bulk-download-bar button,.bulk-toggle{font:inherit;font-size:.82rem;font-weight:600;padding:.4rem .7rem;border-radius:.4rem}
.bulk-download-bar button{background:#2a483b;color:#fff;border:1px solid #2a483b}
.bulk-download-bar button:disabled{opacity:.48}
.bulk-download-bar small{flex:1 0 100%;font-size:.73rem;color:#4f5f52}
.bulk-download-bar[hidden],.bulk-choice[hidden],.bulk-toggle[hidden],.bulk-download-bar small[hidden]{display:none!important}
.bulk-download-bar input,.bulk-choice input{width:1rem;height:1rem;margin:0;accent-color:#365e46;cursor:pointer}
.bulk-photo{position:relative;min-width:0}
.bulk-choice{position:absolute;z-index:2;top:.35rem;left:.35rem;display:grid;place-items:center;width:2rem;height:2rem;border:1px solid #dce4d8;border-radius:.4rem;background:#fff;color:#263d33;cursor:pointer}
.result-download-bar [data-bulk-submit][hidden],.result-download-bar [data-bulk-system][hidden]{display:none!important}.result-download-bar details{flex:1 0 100%}.result-download-bar details[hidden]{display:none!important}.result-download-bar summary{cursor:pointer;font-size:.78rem}.result-download-bar .bulk-file-list{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.3rem}.result-download-bar .bulk-file-list button{background:#fff;color:#2a483b;border-color:#becdbd}
.result-body>.result-download-bar{margin:0 0 .55rem}
.bulk-choice:focus-within{outline:2px solid #31543f;outline-offset:1px}

.bulk-toggle{border:1px solid #becdbd;background:#fff;color:#2a483b;white-space:nowrap}

.result-actions .bulk-download-bar{grid-column:1/-1;margin:0}

.seq-download{position:fixed;inset:0;width:min(29rem,calc(100% - 1.5rem));max-width:none;max-height:calc(100vh - 1.5rem);max-height:calc(100dvh - 1.5rem);margin:auto;padding:0;overflow:hidden;border:1px solid #dce4d8;border-radius:1.1rem;background:#fcfaf3;color:#263d33}
.seq-download::backdrop{background:#12231bb3}
.seq-download-layout{display:flex;flex-direction:column;max-height:min(37rem,calc(100vh - 1.5rem));max-height:min(37rem,calc(100dvh - 1.5rem))}
.seq-download-layout header{position:relative;margin:0;padding:.85rem 1rem .65rem;border-bottom:1px solid #e1e6db;background:#fcfaf3}
.seq-download-layout h2{margin:0;padding-right:3rem;color:#263d33;font-size:1.2rem}
.seq-download-close{position:absolute;top:.35rem;right:.55rem;width:2.75rem;height:2.75rem;border:0;border-radius:50%;background:none;color:#263d33;font-size:1.45rem;cursor:pointer}
.seq-download-progress{margin:.55rem 0 .15rem;font-size:.87rem;font-weight:650}
.seq-download-tip{margin:0;color:#526559;font-size:.78rem}
.seq-download-grid{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;min-height:0;padding:.85rem 1rem;overflow:auto;overscroll-behavior:contain}
.seq-download-tile{position:relative;display:grid;gap:.25rem;padding:.25rem;min-width:0;border:1px solid #d9e2d4;border-radius:.5rem;background:#f1f3eb;color:#263d33;font-size:.72rem;text-align:center;cursor:pointer}
.seq-download-tile[aria-pressed=true]{outline:2px solid #2d624e;outline-offset:-2px;background:#e1eadc}
.seq-download-art{display:block;overflow:hidden;aspect-ratio:4/3;border-radius:.34rem;background:#e3e8dc}
.seq-download-art img{display:block;width:100%;height:100%;object-fit:cover}
.seq-download .seq-download-mark{position:absolute;top:.38rem;right:.38rem;display:grid;width:1.12rem;height:1.12rem;place-items:center;border-radius:50%;background:#ddedae;color:#214d3e;font-weight:750}
.seq-download .seq-download-mark[hidden]{display:none!important}
.seq-download-layout footer{padding:.65rem 1rem calc(.7rem + env(safe-area-inset-bottom,0px));border-top:1px solid #e1e6db;background:#fcfaf3}
.seq-download-action{width:100%;min-height:3rem;padding:.65rem;border:0;border-radius:.65rem;background:#214d3e;color:#fff;font-size:1rem;font-weight:700;cursor:pointer}
.seq-download-action:disabled{cursor:default;opacity:.55}
.result-download-bar .seq-download-open{background:#fff;color:#2a483b;border-color:#becdbd}
@media(max-width:600px){.seq-download{inset:auto 0 0;width:100%;margin:0;border-bottom:0;border-radius:1.1rem 1.1rem 0 0}.seq-download-layout{max-height:calc(100vh - 2.5rem);max-height:calc(100dvh - 2.5rem)}}

/* Compact home and material library. */
.studio-controls{max-width:740px;margin-inline:auto;display:grid;gap:12px}
.studio-controls .step{margin:0;padding:15px 18px;border-radius:18px}
.studio-controls h2{margin:0 0 10px;font-size:16px}
.studio-pair,.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.studio-reference .reference-strip{display:flex;flex-wrap:nowrap;align-items:center;overflow:auto;padding-block:3px;margin-top:10px}
.studio-reference .reference-strip[hidden]{display:none}
.actions-pair .button{min-height:41px;text-align:center;justify-content:center;position:relative}
.file-action,.file-choice{cursor:pointer}
.file-action input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.file-action:focus-within{outline:2px solid #456456;outline-offset:2px}
.studio-count{min-width:0;background:#f4f7f1;border:1px solid #dde6da;border-radius:13px;padding:10px 12px}
.studio-count h2{text-align:center;margin:0 0 6px}
.stepper{display:grid;grid-template-columns:minmax(25px,1fr) minmax(20px,1fr) minmax(25px,1fr);align-items:center;justify-items:center;gap:3px}
.stepper button{width:100%;min-height:35px;border:0;border-radius:8px;background:#e8eee4;color:inherit;font-size:19px;font-weight:700}
.stepper button:disabled{opacity:.4}
.stepper output{font-size:17px;font-weight:700}
.studio-presets .studio-pair>div{min-width:0}
.preset-tile{display:block;width:100%;overflow:hidden;border:1px solid #d8e0d5;border-radius:12px;background:#fafbf7;color:inherit;text-align:left;padding:0}
.preset-tile:focus-visible,.preset-tile[aria-pressed="true"]{outline:2px solid #496851;outline-offset:-2px}
.preset-art{display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(140deg,#e2ebe0,#eeeadc);color:#546f5c;position:relative}
.preset-art img{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.preset-art svg{width:29px;height:29px}
.preset-name{display:flex;align-items:center;justify-content:space-between;gap:5px;min-height:33px;padding:6px 9px;font-size:13px;font-weight:700}
.preset-name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.preset-name small{white-space:nowrap;color:#58695d;font-size:10px}
.library-head{margin-bottom:12px}
.library-head h1{font-size:clamp(22px,4vw,30px);margin:0}
.library-tabs{margin-bottom:12px}
.library-grid{max-width:820px;margin-inline:auto;align-items:start}
.library-grid .product-card{position:relative;min-width:0}
.library-grid .product-cover{aspect-ratio:16/10}
.library-grid .product-info{padding:8px 10px}
.library-grid .product-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-grid .products-empty,.library-grid .empty-note{grid-column:1/-1}
.library-grid .preset-tile{margin:0}
.material-card{position:relative;min-width:0}
.material-card .product-edit{position:absolute;top:7px;right:7px;z-index:1;border:1px solid #e5ebe1;border-radius:50%;background:#fffffff2;width:32px;height:32px;font-size:17px;line-height:1}
.preset-picker-grid{margin-top:10px}
.material-preview{width:min(120px,50%);aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.field select{width:100%;padding:9px 10px;border:1px solid #d8e0d5;border-radius:9px;color:inherit;background:#fbfcf8;font:inherit}
.picker-category{margin-top:10px}
.studio-controls ~ .history-section{max-width:740px;margin-inline:auto}
.history-list img{object-fit:cover}
@media(max-width:420px){
 .studio-controls .step{padding:12px}
 .studio-pair,.library-grid{gap:9px}
 .studio-count{padding:8px}
}

.manage-links{display:flex;align-items:center;gap:8px}
.manage-tabs{grid-template-columns:repeat(auto-fit,minmax(65px,1fr))}
.manage-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.manage-tools label,.manage-row{display:flex;align-items:center;gap:9px}
.manage-tools input,.manage-row input{width:18px;height:18px;min-height:0;accent-color:var(--green);margin:0;flex:none}
.manage-items,.manage-item-buttons{display:grid;gap:8px}
.manage-row{padding:8px 10px;min-height:42px;border:1px solid var(--line);border-radius:8px;background:white;cursor:pointer}
.manage-row strong{font-weight:550;display:block;overflow-wrap:anywhere}
.manage-row small{display:block}
.manage-buttons{display:flex;flex-wrap:wrap;gap:8px}
.manage-buttons button{flex:1 1 auto}
.material-card .product-edit{font-size:20px;line-height:1}
.result-card-menu{position:absolute;top:6px;right:6px;width:35px;height:35px;border:1px solid var(--line);border-radius:8px;background:#fff;z-index:2;font-size:21px;line-height:1}
.result-actions:has(#resultMenu){grid-template-columns:1fr auto}
.danger-action{color:#9c543b}
