:root{color-scheme:light;--ink:#1c2530;--muted:#6d7680;--faint:#8b95a1;--line:#d9dee3;--line-strong:#c3ccd5;--surface:#ffffff;--canvas:#f4f6f8;--accent:#334155;--brand:#7657c9;--brand-soft:#f2effb;--brand-line:#d8d0f2;--console:#0e6b62;--console-soft:#eaf4f2;--console-line:#bfdcd7;--console-bright:#63b2a6;--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px;--s7:48px;--s8:64px;--fs-1:11px;--fs-2:12px;--fs-3:13px;--fs-4:14px;--fs-5:16px;--fs-6:20px;--fs-7:24px;--r-sm:6px;--r-md:8px;--r-lg:10px;--ok:#1a6b3c;--ok-soft:#eef8f2;--ok-line:#b9dcc8;--warn:#8a6414;--warn-soft:#fdf7e8;--warn-line:#e8d7a8;--danger:#a33a3a;--danger-soft:#fdf0ef;--danger-line:#ecc9c6;--dot-ok:#1a8a4c;--dot-busy:#0e6b62;--dot-warn:#c9820f;--dot-danger:#c0392b;--dot-idle:#98a2ae}.image-tool-workspace{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);grid-gap:24px;gap:24px;align-items:start}.image-tool-controls{display:grid;grid-gap:18px;gap:18px;padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:6px}.image-tool-controls fieldset{display:grid;grid-gap:10px;gap:10px;margin:0;padding:0;border:0}.image-tool-controls legend{margin-bottom:8px;font-weight:700}.image-tool-controls label{display:grid;grid-gap:7px;gap:7px;font-size:14px}.image-tool-controls fieldset label{display:flex;align-items:center;gap:8px}.image-tool-controls fieldset button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px 12px;border:1px solid var(--line);background:transparent;color:inherit;border-radius:4px;text-align:left}.image-tool-controls fieldset button.selected{border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.image-tool-controls input[type=number],.image-tool-controls select{min-height:40px;padding:8px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:inherit}.tool-upload{min-height:96px;place-items:center;align-content:center;border:1px dashed var(--line-strong);cursor:pointer}.tool-upload input{max-width:220px}.dimension-row{display:grid;grid-template-columns:1fr auto 1fr;grid-gap:8px;gap:8px;align-items:end}.image-tool-preview{min-width:0}.tool-canvas{display:grid;place-items:center;width:100%;min-height:420px;max-height:70vh;overflow:hidden;border:1px solid var(--line);background:#f4f4f2;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tool-canvas img{width:100%;height:100%;max-height:70vh;object-fit:contain;pointer-events:none}.tool-placeholder{display:grid;grid-gap:8px;gap:8px;text-align:center;color:var(--muted)}.tool-result-bar{min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px}.tool-submit{width:100%}@media (max-width:820px){.image-tool-workspace{grid-template-columns:1fr}.tool-canvas{min-height:300px}}*{box-sizing:border-box}body{margin:0;min-width:320px;color:var(--ink);background:var(--canvas);font-family:Inter,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:44px 0 64px}.masthead{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:28px}.eyebrow{margin:0 0 var(--s2);color:var(--region-accent,var(--faint));font-size:var(--fs-2);font-weight:700;letter-spacing:.04em;text-transform:uppercase}h1{margin:0;font-size:var(--fs-7);line-height:1.2;letter-spacing:0}.subtle{color:var(--muted);font-size:14px;line-height:1.6}.workspace{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);grid-gap:20px;gap:20px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:22px}.panel h2{margin:0 0 16px;font-size:18px}.field{display:grid;grid-gap:8px;gap:8px;margin-bottom:18px}.field label,.field-label{font-size:13px;font-weight:700}.field input,.field select,.field textarea{width:100%;min-height:40px;border:1px solid var(--line);border-radius:5px;padding:8px 10px;background:#fff;color:var(--ink)}.field textarea{min-height:96px;resize:vertical}.file-input{width:100%;padding:14px;border:1px dashed #a9b3be;border-radius:6px;background:#fafbfc}.fixed-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #edf0f2;font-size:14px}.fixed-row:last-child{border-bottom:0}.fixed-row span:last-child{color:var(--muted);text-align:right}.primary{width:100%;min-height:44px;border:0;border-radius:var(--r-sm);color:#fff;background:var(--region-accent,var(--accent));font-weight:700}.primary:disabled{cursor:wait;opacity:.55}.status{min-height:22px;margin-top:14px;color:var(--muted);font-size:13px}.error{color:#b42318}.outputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.output{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fbfcfd}.output img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#e9edf1}.output-body{padding:12px}.output-title{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:14px;font-weight:700}.badge{padding:3px 7px;border-radius:999px;color:#46515d;background:#e6ebf0;font-size:11px;font-weight:700}.download{display:inline-block;margin-top:10px;color:var(--accent);font-size:13px;font-weight:700;text-decoration:none}.empty{min-height:320px;display:grid;place-items:center;border:1px dashed #bdc6cf;border-radius:6px;color:var(--muted);text-align:center}.empty.compact{min-height:112px;padding:16px}.template-list{display:grid;grid-gap:10px;gap:10px}.template-card{display:grid;grid-template-columns:92px minmax(0,1fr);grid-gap:12px;gap:12px;align-items:center;width:100%;min-height:92px;border:1px solid var(--line);border-radius:6px;padding:6px;color:var(--ink);background:#fff;text-align:left;font-weight:700}.template-card.selected{border-color:var(--accent);box-shadow:0 0 0 2px #dbe9fc}.template-card img{width:92px;height:78px;object-fit:cover;border-radius:4px;background:#e9edf1}.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.template-library-group+.template-library-group{margin-top:24px}.template-library-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;color:var(--ink);font-size:13px;font-weight:700}.template-library-group-heading span{color:var(--muted);font-weight:400;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.template-library-card-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-choice{position:relative;min-width:0;aspect-ratio:3/4;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#edf1f3}.template-choice.selected{border:2px solid var(--accent);box-shadow:inset 0 0 0 2px #fff}.template-choice.selected:after{content:"已选";position:absolute;top:6px;left:6px;padding:3px 6px;border-radius:3px;background:var(--accent);color:#fff;font-size:11px}.template-choice-main{display:block;width:100%;height:100%;padding:0;border:0;background:transparent}.template-choice-main img,.template-placeholder{display:grid;width:100%;height:100%;object-fit:cover;place-items:center;background:#edf1f3;color:var(--muted)}.template-preview-button{position:absolute;right:6px;bottom:6px;width:30px;height:30px;border:0;border-radius:4px;background:rgb(20 30 26/.76);color:#fff;font-size:20px;line-height:1}.output-groups{display:grid;grid-gap:18px;gap:18px}.output-group{border-top:1px solid var(--line);padding-top:12px}.output-group h3{margin:0 0 8px;font-size:14px}.selected-template{margin:0;color:#185e48;font-size:13px;font-weight:700}.generation-notice{margin:0 0 12px;padding:10px 12px;border:1px solid #e2a845;border-radius:5px;background:#fff8e9;color:#7d4e00;font-size:13px;line-height:1.5}.detail-grid{display:grid;grid-template-columns:280px minmax(0,1fr);grid-gap:20px;gap:20px;align-items:start}.detail-jobs{display:grid;grid-gap:16px;gap:16px}.detail-product{display:block;width:100%;margin-top:16px;border:1px solid var(--line);border-radius:5px;background:#edf1f3;object-fit:contain}.detail-template{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:var(--muted);font-size:13px}.detail-template img{width:52px;height:68px;border:1px solid var(--line);border-radius:4px;object-fit:cover}.product-preview{display:grid;grid-template-columns:72px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:6px;background:#fafcfa;font-size:12px;color:var(--muted)}.product-preview img{width:72px;height:72px;object-fit:cover;border-radius:4px;background:#edf1f3}.instruction-count{margin-top:-5px}.generation-progress{display:grid;grid-gap:8px;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.generation-progress>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.generation-progress strong{color:#185e48;font-size:24px}.generation-progress span{color:var(--muted);font-size:12px;text-align:right}.progress-track{height:7px;overflow:hidden;border-radius:4px;background:#e6ece8}.progress-track i{display:block;height:100%;border-radius:inherit;background:#238465;transition:width .6s ease}.repair-form{grid-gap:7px;gap:7px;margin-top:12px}.repair-form input{min-width:0;min-height:34px;padding:6px 8px;font-size:12px}.repair-form .secondary{min-height:34px}.repair-quick-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.repair-quick-actions button{min-height:28px;border:1px solid #b8c8bf;border-radius:4px;background:#f5faf7;color:#185e48;font-size:12px}.repair-result{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px;color:#185e48;font-size:12px;font-weight:700}.repair-result a{color:#24533f;text-decoration:underline}.home-link{color:#24533f;font-size:14px;font-weight:800;text-decoration:none}.template-modal{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:24px}.template-modal-backdrop{position:absolute;inset:0;border:0;background:rgb(20 30 26/.65)}.template-modal-content{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto;grid-gap:12px;gap:12px;width:min(700px,100%);max-height:calc(100vh - 48px);padding:16px;border-radius:8px;background:#fff}.template-modal-content>div{display:flex;align-items:center;gap:8px}.template-modal-content>div span{color:var(--muted);font-size:13px}.template-modal-content img{grid-column:1/-1;display:block;width:100%;max-height:calc(100vh - 150px);object-fit:contain;background:#edf1f3}@media (max-width:760px){.shell{width:min(100% - 20px,620px);padding-top:24px}.masthead{display:block}.detail-grid,.outputs,.workspace{grid-template-columns:1fr}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.generation-progress>div:first-child{display:grid;grid-gap:3px;gap:3px}.generation-progress span{text-align:left}}.admin-shell{width:min(1240px,calc(100% - 32px));margin:0 auto;padding:36px 0 64px}.admin-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px;gap:18px;align-items:start}.module-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.module-config-grid h3{margin:0;font-size:15px}.lab-panel{grid-column:1/-1}.login-panel{width:min(420px,100%);margin:13vh auto}.stack{display:grid;grid-gap:12px;gap:12px}.stack label{display:grid;grid-gap:6px;gap:6px;font-size:13px;font-weight:700}.admin-item input,.stack input,.stack select,.stack textarea{width:100%;min-height:38px;border:1px solid var(--line);border-radius:5px;padding:8px 10px;background:#fff;color:var(--ink)}.stack textarea{min-height:104px;resize:vertical}.admin-item{display:grid;grid-gap:8px;gap:8px;padding:14px 0;border-top:1px solid #edf0f2;font-size:14px}.admin-item:first-of-type{border-top:0;padding-top:0}.switch-row{display:flex;gap:8px;align-items:center;font-size:13px}.switch-row input{width:18px;height:18px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.inline-actions .primary{width:auto;min-height:34px;padding:6px 10px}.compact-primary,.using-button{width:auto;min-height:34px;border-radius:6px;padding:6px 12px;font-weight:700;font-size:13px}.compact-primary{border:0;color:#fff;background:var(--region-accent,var(--accent))}.using-button{border:0;color:#7a838d;background:#e8ebee;cursor:not-allowed}.secondary{min-height:34px;border:1px solid #aeb8c3;border-radius:5px;background:#fff;color:#263443;padding:6px 10px;font-weight:700;font-size:13px}.version-row{display:flex;align-items:center;gap:8px;padding:7px 0}.icon-button{width:30px;height:30px;border:1px solid #aeb8c3;border-radius:5px;background:#fff;color:#263443;font-weight:700}.experiment-list{display:grid;grid-gap:12px;gap:12px;margin-top:18px}.experiment{display:grid;grid-gap:8px;gap:8px;padding:14px;border:1px solid var(--line);border-radius:6px}.experiment>div:first-child{display:flex;justify-content:space-between;gap:12px}.experiment-outputs,.experiment>div:first-child span{color:var(--muted);font-size:13px}.experiment-outputs{display:flex;min-height:72px;gap:8px;align-items:center}.experiment-outputs img{width:80px;height:106px;object-fit:cover;border:1px solid var(--line)}@media (max-width:760px){.admin-shell{width:min(100% - 20px,620px);padding-top:24px}.admin-head{display:block}.admin-grid,.module-config-grid{grid-template-columns:1fr}.lab-panel{grid-column:auto}}.user-workspace{--region-accent:var(--brand);--region-accent-soft:var(--brand-soft);--user-canvas:#f3f4f7;--user-surface:#fff;--user-ink:#1d2433;--user-muted:#747b88;--user-line:#e5e7eb;--user-accent:var(--brand);--user-accent-soft:var(--brand-soft);min-height:100dvh;color:var(--user-ink);background:var(--user-canvas);font-family:Inter,Segoe UI,sans-serif}.user-header{position:-webkit-sticky;position:sticky;z-index:10;top:0;display:grid;grid-template-columns:240px minmax(0,1fr) 240px;align-items:center;height:56px;padding:0 20px;border-bottom:1px solid var(--user-line);background:rgb(255 255 255/.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.user-brand{display:inline-flex;align-items:center;gap:9px;color:var(--user-ink);font-size:15px;font-weight:750;text-decoration:none}.user-brand-mark{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;color:#fff;background:var(--user-accent);font-family:Georgia,serif;font-size:17px}.user-header-title{color:var(--user-muted);font-size:13px;font-weight:650}.user-header-right{display:flex;justify-content:flex-end;align-items:center;gap:12px}.user-header .credit-pill{min-height:30px;border-color:var(--user-line);color:var(--user-ink);background:#fff;font-size:12px}.user-avatar{display:grid;width:28px;height:28px;place-items:center;border-radius:50%;color:#fff;background:#abb0bc;font-size:11px;font-weight:700;text-decoration:none}.user-body{display:grid;grid-template-columns:72px minmax(0,1fr);min-height:calc(100dvh - 56px)}.user-nav{display:flex;flex-direction:column;align-items:center;gap:8px;padding:18px 8px;border-right:1px solid var(--user-line);background:#fafbfc}.user-nav a{display:grid;width:56px;min-height:54px;place-items:center;grid-gap:3px;gap:3px;border-radius:10px;color:#848a96;font-size:11px;font-weight:650;text-decoration:none}.user-nav a.active{color:var(--user-accent);background:var(--user-accent-soft)}.user-nav a:hover{color:var(--user-accent);background:#f5f3fb}.user-nav-icon{font-size:21px;line-height:1}.user-content{min-width:0;min-height:calc(100dvh - 56px);padding:28px 32px 40px;overflow:auto}.user-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;max-width:1440px;margin:0 auto 24px}.user-page-header h1{margin:0;color:var(--user-ink);font-size:28px;font-weight:720;line-height:1.15}.user-page-header .subtle{max-width:580px;margin:9px 0 0;color:var(--user-muted)}.detail-back{display:inline-block;margin-bottom:14px;color:var(--user-accent);font-size:12px;font-weight:700;text-decoration:none}.user-workspace .eyebrow{margin-bottom:7px;color:var(--user-accent);font-size:10px;letter-spacing:.14em}.user-workspace .subtle{color:var(--user-muted)}.user-workspace .workspace{max-width:1440px;margin:0 auto}.user-generation-layout{display:grid;grid-template-columns:minmax(360px,392px) minmax(0,1fr);grid-gap:24px;gap:24px;align-items:stretch;min-height:calc(100dvh - 190px)}.user-workspace .panel{border:1px solid var(--user-line);border-radius:10px;background:var(--user-surface);box-shadow:0 5px 20px rgb(30 35 50/.035)}.user-operation-panel{display:flex;flex-direction:column;min-height:0;padding:20px}.operation-heading,.result-heading,.section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.operation-heading h2,.result-heading h2,.section-title-row h2{margin:4px 0 0;color:var(--user-ink);font-size:18px;font-weight:720}.section-kicker{color:var(--user-muted);font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.operation-count{color:var(--user-muted);font-size:12px}.user-operation-panel>.field{margin-bottom:14px}.user-operation-panel .field label,.user-operation-panel .field-label{color:var(--user-ink);font-size:12px;font-weight:700}.user-operation-panel .field input,.user-operation-panel .field select,.user-operation-panel .field textarea{border-color:#dfe2e8;border-radius:8px;background:#fff}.user-operation-panel .field input:focus,.user-operation-panel .field select:focus,.user-operation-panel .field textarea:focus{outline:2px solid rgb(118 87 201/.18);border-color:var(--user-accent)}.user-operation-panel .file-input{padding:11px;border-style:dashed;background:#fafbfc}.user-operation-panel .product-preview{border-color:var(--user-line);border-radius:8px;background:#fafbfc}.user-operation-panel .template-grid{min-height:0;max-height:min(390px,40dvh);padding:2px 4px 8px 0;overflow-y:auto;gap:12px;grid-auto-rows:210px}.user-operation-panel .template-choice{height:210px;min-height:210px;border-color:var(--user-line);border-radius:9px}.user-operation-panel .template-choice.selected{border:2px solid var(--user-accent);box-shadow:0 0 0 3px var(--user-accent-soft)}.user-operation-panel .template-choice.selected:after{top:7px;left:7px;border-radius:5px;background:var(--user-accent);font-size:10px}.user-operation-panel .template-preview-button{width:28px;height:28px;border-radius:7px;background:rgb(29 36 51/.72)}.user-operation-panel .selected-template{color:var(--user-accent);font-size:12px}.user-operation-panel .generation-notice{border-color:#e8ddbf;border-radius:8px;background:#fffbf2;color:#806522;font-size:12px}.home-cta,.user-operation-panel .primary{min-height:44px;border-radius:9px;background:var(--user-accent);font-size:14px;box-shadow:0 5px 12px rgb(118 87 201/.18)}.user-operation-panel .status{margin-bottom:0}.user-result-workspace{min-width:0;min-height:0;padding:22px;overflow:auto}.result-heading{padding-bottom:17px;border-bottom:1px solid var(--user-line)}.result-heading .secondary{min-height:34px;border-color:var(--user-line);border-radius:8px;color:var(--user-ink)}.user-result-workspace>.empty{min-height:420px;margin-top:18px;border:0;background:#fafbfc;color:var(--user-muted)}.user-result-workspace .output-groups{gap:28px;margin-top:20px}.user-result-workspace .output-group{border-top:0;padding-top:0}.user-result-workspace .output-group h3{margin:0 0 12px;color:var(--user-ink);font-size:13px}.ai-tools-section{margin:0 0 22px;padding:18px 0 20px;border-block:1px solid var(--user-line)}.ai-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px}.ai-tool-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;grid-gap:13px;gap:13px;min-height:98px;padding:16px;border:1px solid var(--user-line);border-radius:8px;background:#fff}.ai-tool-card h3{margin:0 0 5px;color:var(--user-ink);font-size:14px}.ai-tool-card p{margin:0;color:var(--user-muted);font-size:12px;line-height:1.5}.ai-tool-mark{display:grid;width:36px;height:36px;place-items:center;border-radius:8px;color:#fff;background:var(--user-accent);font-size:13px;font-weight:800}.ai-tool-mark.background{background:#34766c}.user-detail-grid .output,.user-result-workspace .output{border-color:var(--user-line);border-radius:10px;background:#fff;box-shadow:0 5px 15px rgb(30 35 50/.04)}.user-detail-grid .output img,.user-result-workspace .output img{aspect-ratio:3/4;background:#f0f1f4}.user-detail-grid .output-body,.user-result-workspace .output-body{padding:13px 14px 15px}.user-workspace .badge{border:1px solid var(--user-line);border-radius:999px;background:#f7f8fa;color:var(--user-muted)}.user-workspace .download{color:var(--user-accent)}.user-workspace .repair-form .secondary,.user-workspace .repair-form input,.user-workspace .repair-quick-actions button{border-radius:8px}.user-workspace .generation-progress{border-color:var(--user-line)}.user-workspace .progress-track{background:#ebe9f4}.user-workspace .progress-track i{background:var(--user-accent)}.user-history{max-width:1100px;margin:0 auto}.home-header{max-width:1100px;align-items:center;padding:12px 0 10px}.home-cta{display:inline-flex;width:auto;align-items:center;justify-content:center;padding:0 18px;color:#fff;text-decoration:none}.history-list{display:grid;grid-gap:10px;gap:10px;margin-top:17px}.history-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;grid-gap:14px;gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--user-line);border-radius:10px;color:var(--user-ink);background:#fff;text-decoration:none;box-shadow:0 4px 14px rgb(30 35 50/.025)}.history-card:hover{border-color:#cfc6ec;background:#fdfcff}.history-thumb{width:58px;height:58px;overflow:hidden;border-radius:8px;background:#f0f1f4}.history-thumb img{width:100%;height:100%;object-fit:cover}.history-thumb span{display:grid;width:100%;height:100%;place-items:center;color:var(--user-accent);font:24px Georgia,serif}.history-main{display:grid;grid-gap:4px;gap:4px;min-width:0}.history-main strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.history-main small,.history-main span{color:var(--user-muted);font-size:12px}.history-main small{color:var(--user-accent);font-weight:700}.history-arrow{color:#a3a8b2;font-size:20px}.history-table{display:none}.home-empty{display:grid;min-height:260px;place-items:center;grid-gap:8px;gap:8px;margin-top:18px;border:0;background:#fafbfc}.home-empty strong{font-size:16px}.home-empty span{color:var(--user-muted);font-size:13px}.user-detail-grid{max-width:1100px;margin:0 auto;grid-template-columns:260px minmax(0,1fr);gap:24px}.detail-info-card,.user-detail-grid .detail-jobs>.panel{padding:20px}.detail-info-card h2,.user-detail-grid .detail-jobs h2{font-size:17px}.user-detail-grid .outputs{gap:16px}.user-detail-grid .detail-product{margin-top:18px;border-radius:8px}.user-state-page{display:grid;place-items:center;min-height:360px;grid-gap:14px;gap:14px}@media (max-width:1180px){.user-header{grid-template-columns:200px minmax(0,1fr) 200px}.user-content{padding-inline:24px}.user-generation-layout{grid-template-columns:360px minmax(0,1fr);gap:18px}}@media (max-width:900px){.user-header{grid-template-columns:1fr auto}.user-header-title{display:none}.user-body{grid-template-columns:60px minmax(0,1fr)}.user-nav{padding-inline:4px}.user-nav a{width:50px}.user-content{padding:22px 16px 32px}.user-detail-grid,.user-generation-layout{grid-template-columns:1fr;min-height:auto}.user-operation-panel{min-height:auto}.user-operation-panel .template-grid{max-height:420px;grid-auto-rows:210px}.user-result-workspace{min-height:620px}}@media (max-width:600px){.user-header{padding-inline:12px}.user-brand{font-size:14px}.user-header-right{gap:7px}.user-content{padding-inline:12px}.user-page-header{display:block}.user-page-header h1{font-size:24px}.home-cta{margin-top:18px}.ai-tool-grid{grid-template-columns:1fr}.ai-tool-card{grid-template-columns:36px minmax(0,1fr)}.ai-tool-card .primary,.ai-tool-card .secondary{grid-column:2;justify-self:start}.user-nav a{min-height:50px;font-size:10px}.user-operation-panel .template-grid{grid-auto-rows:180px}.user-operation-panel .template-choice{height:180px;min-height:180px}.user-detail-grid .outputs,.user-result-workspace .outputs{grid-template-columns:1fr}.history-card{grid-template-columns:50px minmax(0,1fr) auto}.history-thumb{width:50px;height:50px}}.admin-app{--region-accent:var(--console);--region-accent-soft:var(--console-soft);min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);background:var(--canvas)}.admin-nav{position:-webkit-sticky;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:26px 18px 20px;overflow-y:auto;background:#12262b;color:#fff}.admin-brand{display:flex;align-items:center;gap:10px;margin:0 4px 22px;color:#fff;text-decoration:none}.admin-brand-mark{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border:1px solid #547075;border-radius:9px;background:#1c3c41;color:#dff6f2;font-size:12px;font-weight:800}.admin-brand>span:last-child{display:grid;grid-gap:2px;gap:2px;min-width:0}.admin-brand strong{font-size:17px;letter-spacing:.02em}.admin-brand small{color:#86a4a7;font-size:10px;font-weight:500;letter-spacing:.05em}.admin-nav nav{display:grid;grid-gap:14px;gap:14px}.admin-nav-group{display:grid;grid-gap:5px;gap:5px}.admin-nav-group>span{padding:0 12px 3px;color:#78979a;font-size:11px;font-weight:700;letter-spacing:.02em}.admin-nav-group>div{display:grid;grid-gap:3px;gap:3px}.admin-legacy,.admin-nav nav a{padding:9px 12px;border-radius:6px;color:#b6cdce;text-decoration:none;font-size:13px;transition:background .15s ease,color .15s ease}.admin-legacy:hover,.admin-nav nav a.is-active,.admin-nav nav a:hover{background:#1e4446;color:#fff}.admin-nav nav a.is-active{box-shadow:inset 3px 0 var(--console-bright);font-weight:700}.admin-legacy{margin-top:auto;border:1px solid #315257;color:#dce9e9;text-align:center}.admin-legacy.is-disabled{color:#78979a;cursor:default}.admin-main{min-width:0}.admin-topbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 32px;border-bottom:1px solid var(--line);background:#fff}.admin-topbar>div{display:flex;align-items:baseline;gap:12px}.admin-topbar strong{color:var(--ink);font-size:15px}.admin-topbar div span{color:var(--muted);font-size:12px}.admin-environment-badge{padding:5px 9px;border:1px solid #d7dfdc;border-radius:999px;color:#526964;background:#f5f9f7;font-size:11px;font-weight:700}.admin-content{min-width:0}.admin-module{width:min(1280px,calc(100% - 64px));margin:0 auto;padding:32px 0 64px}.admin-module>header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}.admin-module>header .secondary{width:auto}.module-head-main{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s5);min-width:0}.admin-tabs{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--canvas)}.admin-tabs a{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:4px;color:var(--muted);font-size:var(--fs-3);font-weight:600;text-decoration:none;transition:background .15s ease,color .15s ease}.admin-tabs a:hover{color:var(--ink)}.admin-tabs a.is-active{background:#fff;color:var(--console);box-shadow:0 1px 2px rgb(16 40 38/.12);font-weight:700}.admin-tab-count{padding:0 6px;border-radius:999px;background:var(--console-soft);color:var(--console);font-size:var(--fs-1);font-weight:700}.admin-module.is-workbench{display:flex;flex-direction:column;width:100%;height:calc(100vh - 72px);padding:0}.admin-module.is-workbench>header{flex:0 0 auto;align-items:center;margin:0;padding:16px 32px;border-bottom:1px solid var(--line)}.admin-module.is-workbench>.template-workbench{flex:1 1 auto;min-height:0;border-top:0;background:var(--surface)}.admin-module.is-workbench .template-library{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:0}.admin-module.is-workbench .template-editor{min-height:0;overflow-y:auto;scrollbar-gutter:stable}.admin-module.is-workbench .template-library-header{flex:0 0 auto;position:static;padding:16px 24px;border-bottom:1px solid var(--line);background:var(--surface)}.admin-module.is-workbench .template-library-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding:16px 24px 24px;scrollbar-gutter:stable;scroll-padding-block:8px}.template-library-header label{display:grid;grid-gap:4px;gap:4px;font-size:12px}.template-library-header select{min-width:0;max-width:140px}.admin-module.is-workbench .template-editor-head{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:var(--surface)}.template-archive-details{padding-block:20px}.template-archive-cover{display:block;width:min(100%,360px);max-height:480px;object-fit:contain;margin-block:20px}.template-archive-details dl{display:grid;grid-template-columns:max-content minmax(0,1fr);grid-gap:10px 20px;gap:10px 20px}.template-archive-details dd{margin:0;overflow-wrap:anywhere}.queue-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:var(--s3);margin-bottom:var(--s4)}.control-plane .queue-bar label{display:grid;grid-gap:5px;gap:5px;margin:0;color:var(--muted);font-size:var(--fs-2);font-weight:700}.control-plane .queue-bar input,.control-plane .queue-bar select{min-height:34px;padding:5px 9px;border:1px solid var(--line);border-radius:var(--r-sm);background:#fff;color:var(--ink);font-size:var(--fs-3)}.queue-keyword{flex:1 1 220px;min-width:0}.control-plane .queue-keyword input{width:100%}.queue-count{margin-left:auto;align-self:center;color:var(--muted);font-size:var(--fs-2)}.queue-bar .text-button{align-self:center;min-height:34px}.control-plane .queue-table td{padding:10px 12px;line-height:1.45;vertical-align:top}.control-plane .queue-table td>small{display:block;color:var(--muted);font-size:var(--fs-1);overflow-wrap:anywhere}.control-plane .queue-table code{font-size:var(--fs-2);overflow-wrap:anywhere}.status-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--dot-idle);vertical-align:middle}.status-dot.is-ok{background:var(--dot-ok)}.status-dot.is-busy{background:var(--dot-busy)}.status-dot.is-warn{background:var(--dot-warn)}.status-dot.is-danger{background:var(--dot-danger)}.status-dot.is-idle{background:var(--dot-idle)}.detail-drawer{position:fixed;z-index:30;inset:0;display:flex;justify-content:flex-end}.detail-drawer-backdrop{position:absolute;inset:0;border:0;background:rgb(18 30 26/.45)}.detail-drawer-panel{position:relative;z-index:1;display:flex;flex-direction:column;width:min(760px,94vw);height:100%;background:var(--surface);box-shadow:-12px 0 32px rgb(16 40 38/.18)}.detail-drawer-head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:var(--s4);padding:var(--s5);border-bottom:1px solid var(--line)}.detail-drawer-head h2{margin:2px 0 4px;font-size:var(--fs-5);overflow-wrap:anywhere}.detail-drawer-meta{display:flex;align-items:center;margin:0;color:var(--muted);font-size:var(--fs-3)}.detail-drawer-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:var(--s5)}.detail-drawer-body>p{font-size:var(--fs-3);line-height:1.65}.detail-drawer-body h3{margin:var(--s5) 0 var(--s2);font-size:var(--fs-4)}.admin-login{width:min(420px,calc(100% - 32px));margin:14vh auto;padding:24px;background:#fff;border:1px solid var(--line);border-radius:8px}.admin-login form{display:grid;grid-gap:14px;gap:14px;margin-top:20px}.admin-login label{display:grid;grid-gap:7px;gap:7px;font-size:13px;font-weight:700}.admin-login input,.module-form input,.module-form select,.module-form textarea{min-height:40px;width:100%;border:1px solid var(--line);border-radius:5px;padding:8px 10px;background:#fff}.auth-card{width:min(400px,100%);padding:var(--s6);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}.auth-brand{display:flex;align-items:center;gap:var(--s2);margin:0 0 var(--s5);color:var(--region-accent,var(--accent));font-size:var(--fs-3);font-weight:700}.auth-brand>span{display:grid;width:26px;height:26px;place-items:center;border-radius:7px;background:var(--region-accent-soft,var(--canvas));color:var(--region-accent,var(--accent));font-size:var(--fs-1);font-weight:700}.auth-card h1{margin:0 0 var(--s1);font-size:var(--fs-7)}.auth-card .subtle{margin:0 0 var(--s5)}.auth-field{display:grid;grid-gap:var(--s1);gap:var(--s1)}.auth-field label{color:var(--ink);font-size:var(--fs-3);font-weight:700}.auth-secret{position:relative;display:block}.auth-secret input{padding-right:60px}.auth-toggle{position:absolute;top:50%;right:5px;transform:translateY(-50%);min-height:28px;padding:var(--s1) var(--s2);border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:var(--fs-2);font-weight:700}.auth-toggle:hover{background:var(--canvas);color:var(--ink)}.auth-card .status{margin-bottom:0}.admin-gate{--region-accent:var(--console);--region-accent-soft:var(--console-soft);min-height:100vh;display:grid;place-items:center;padding:var(--s6);background:var(--canvas)}.admin-gate.is-checking{color:var(--muted);font-size:var(--fs-3)}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:var(--s3);gap:var(--s3);margin-bottom:var(--s5)}@media (max-width:1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.metric{min-width:0;padding:var(--s4) var(--s5);border:1px solid var(--line);border-radius:var(--r-lg);background:#fff}.metric span{letter-spacing:.01em;display:block;color:var(--muted);font-size:12px}.metric strong{display:block;margin-top:var(--s1);font-size:var(--fs-7);font-weight:700}.data-section{margin-top:var(--s5);padding:var(--s5);border:1px solid var(--line);border-radius:var(--r-lg);background:#fff}.data-section h2,.module-form h2{font-size:var(--fs-5);margin:0 0 var(--s3)}.dashboard-group-title{margin:0 0 var(--s3);color:var(--muted);font-size:13px;font-weight:700;letter-spacing:.02em}.dashboard-alert{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);margin-bottom:var(--s4);padding:var(--s4) var(--s5);border:1px solid #ead8b1;border-radius:var(--r-lg);background:#fffaf0}.dashboard-alert strong{display:block;color:#806522;font-size:14px}.dashboard-alert span{display:block;margin-top:2px;color:#8a7440;font-size:12px}.dashboard-alert .secondary{flex:0 0 auto}.trend-chart{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:end;grid-gap:var(--s2);gap:var(--s2);height:168px;padding-top:var(--s2)}.trend-col{display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-gap:4px;gap:4px;height:100%;text-align:center}.trend-value{color:var(--muted);font-size:11px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.trend-track{display:flex;align-items:flex-end;justify-content:center;min-height:0;border-bottom:1px solid var(--line)}.trend-track>i{display:block;width:min(100%,46px);border-radius:5px 5px 0 0;background:#63b2a6}.trend-track>i.is-empty{background:#e3e6ec}.trend-day{color:var(--muted);font-size:11px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.dashboard-status{display:inline-block;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.dashboard-status.is-unknown{color:#806522;background:#fdf3dc}.dashboard-status.is-queued{color:#4b5563;background:#eef0f4}.dashboard-status.is-processing{color:#1d4ed8;background:#e6edfd}.dashboard-status.is-failed{color:#a0413c;background:#fdeceb}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-md);background:#fff}.data-section .table-wrap{border:0;border-radius:0}table{width:100%;border-collapse:collapse;font-size:13px}td,th{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{color:var(--muted);font-size:12px;background:var(--canvas)}td{overflow-wrap:break-word}td.td-wide{min-width:260px}td.td-narrow{width:1%;white-space:nowrap}.admin-thumb{width:64px;height:64px;object-fit:cover;border:1px solid var(--line);border-radius:4px}.module-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;grid-gap:10px;gap:10px;align-items:end;margin-bottom:22px;padding:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}.module-form h2{grid-column:1/-1}.module-form textarea{min-height:40px;resize:vertical}.model-center-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}.model-center-head h2{margin:0;font-size:18px}.model-center-head p{margin:7px 0 0}.provider-status-pill{display:inline-flex;align-items:center;min-height:34px;padding:5px 9px;border:1px solid #e2c77b;border-radius:999px;background:#fffaf0;color:#896411;font-size:12px;font-weight:700;white-space:nowrap}.provider-status-pill.is-ready{border-color:#94c7ab;background:#f1fbf4;color:#18743a}.credential-list{display:grid;grid-gap:12px;gap:12px;margin-top:22px}.credential-row{display:grid;grid-template-columns:minmax(250px,1.25fr) minmax(200px,.9fr) minmax(150px,.7fr) auto;grid-gap:var(--s4);gap:var(--s4);align-items:center;padding:var(--s4);border:1px solid var(--line);border-radius:var(--r-lg);background:#fff}.credential-identity{display:flex;min-width:0;gap:10px;align-items:flex-start}.credential-mark{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center;border:1px solid #d8dee5;border-radius:50%;color:#4f5b68;background:#f6f8fa;font-size:12px;font-weight:800}.credential-identity div{display:grid;min-width:0;grid-gap:3px;gap:3px}.credential-identity strong{font-size:15px}.credential-check,.credential-identity small,.credential-identity span,.credential-usage{color:var(--muted);font-size:12px}.credential-identity a{overflow:hidden;color:var(--accent);font-size:13px;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.credential-check{display:flex;align-items:center;gap:7px;min-width:0}.credential-status-pill{min-width:0;overflow:hidden;padding:5px 8px;border:1px solid #cfd8e3;border-radius:999px;background:#f8fafc;color:#526171;text-overflow:ellipsis;white-space:nowrap}.credential-check.is-reachable .credential-status-pill{border-color:#94c7ab;background:#f1fbf4;color:#18743a}.credential-check.is-auth_failed .credential-status-pill,.credential-check.is-invalid .credential-status-pill,.credential-check.is-permission_denied .credential-status-pill{border-color:#ebaaa5;background:#fff6f5;color:#b42318}.credential-check.is-timeout .credential-status-pill,.credential-check.is-unreachable .credential-status-pill,.credential-check.is-unsupported .credential-status-pill{border-color:#e2c77b;background:#fffaf0;color:#896411}.credential-usage{display:grid;grid-gap:3px;gap:3px}.credential-usage strong{color:var(--ink);font-size:13px}.credential-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.credential-edit-panel{display:grid;grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px;margin-top:2px;padding-top:16px;border-top:1px solid var(--line)}.credential-edit-panel label{display:grid;grid-gap:6px;gap:6px;color:var(--muted);font-size:12px}.credential-edit-summary{display:grid;grid-column:1/-1;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);grid-gap:7px 10px;gap:7px 10px;align-items:center;color:var(--muted);font-size:12px}.credential-edit-summary code,.credential-edit-summary strong{min-width:0;overflow:hidden;color:var(--ink);font-family:inherit;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.credential-probe-detail{grid-column:1/-1;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.credential-edit-actions{display:flex;grid-column:1/-1;justify-content:flex-end;gap:8px}.auth-shell{--region-accent:var(--brand);--region-accent-soft:var(--brand-soft);width:min(400px,calc(100% - 32px));margin:14vh auto}.top-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.top-nav a{color:var(--accent);font-weight:700;text-decoration:none}.credit-pill{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:13px;font-weight:700}.dynamic-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.repair-form{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:8px;gap:8px;margin-top:10px}.repair-form input{min-height:36px;border:1px solid var(--line);border-radius:5px;padding:7px 9px}.danger-button{min-height:34px;border:1px solid #bf4e48;border-radius:5px;background:#fff;color:#9e302c;padding:6px 10px;font-weight:700;font-size:13px}.file-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.file-button input{display:none}.template-workbench{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:calc(100vh - 136px);border-top:1px solid var(--line)}.template-library{padding:18px 16px 24px 24px;border-right:1px solid var(--line)}.mask-modal-card footer,.mask-modal-card header,.template-editor-head,.template-library-header,.template-targets-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.template-library h2,.template-targets h2{margin:2px 0 0;font-size:17px}.template-library-filter{display:flex;align-items:center;gap:6px;margin:16px 0 10px;color:var(--muted);font-size:12px}.template-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:9px;gap:9px}.template-library-card{min-width:0;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:5px;background:#fff;text-align:left;color:var(--ink);cursor:pointer}.template-library-card.is-selected{border:2px solid #27735a}.template-library-image{display:grid;width:100%;aspect-ratio:3/4;place-items:center;background:#edf1f3;color:var(--muted);font-size:11px}.template-library-image img{width:100%;height:100%;object-fit:cover}.template-library-card small,.template-library-card strong{display:block;overflow:hidden;padding:0 7px;text-overflow:ellipsis;white-space:nowrap}.template-library-card strong{padding-top:7px;font-size:12px}.template-library-card small{padding-bottom:7px;color:var(--muted);font-size:10px}.template-editor{min-width:0;padding:0 24px 32px}.template-editor-head{min-height:86px;padding:16px 0;border-bottom:1px solid var(--line)}.template-editor-head h1{margin:2px 0 0;font-size:23px}.template-editor-form{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(320px,1fr);grid-gap:22px;gap:22px;padding-top:22px}.template-form-fields{display:contents;margin:0;padding:0;border:0;min-width:0}@media (max-width:900px){.admin-module.is-workbench{height:auto;min-height:calc(100vh - 72px)}.admin-module.is-workbench>.template-workbench{min-height:0}.admin-module.is-workbench .template-library-scroll{flex:0 1 auto;overflow-y:visible}.admin-module.is-workbench .template-editor{overflow-y:visible}.admin-module.is-workbench .template-editor-head{position:static;flex-wrap:wrap}}.template-visual-panel{display:grid;min-width:0;align-content:start;grid-gap:10px;gap:10px}.template-reference{display:grid;min-width:0;block-size:clamp(300px,40vw,520px);place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:5px;background:#f2f4f3}.template-reference img{display:block;width:100%;height:100%;object-fit:contain}.template-dropzone{display:grid;min-height:360px;place-items:center;color:var(--muted);cursor:pointer}.template-dropzone input{display:none}.template-reference-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:12px}.template-asset-summary{display:grid;min-width:0;grid-gap:8px;gap:8px;padding:10px;border:1px solid var(--line);border-radius:5px;background:#fafcfa;color:var(--muted);font-size:12px}.template-asset-summary strong{color:var(--ink)}.template-asset-summary img{display:block;width:100%;max-width:100%;height:160px;border-radius:4px;background:#f2f4f3;object-fit:contain}.template-asset-summary button{justify-self:start}.template-settings{display:grid;align-content:start;grid-gap:12px;gap:12px}.target-fields>label,.template-settings label{display:grid;grid-gap:6px;gap:6px;font-size:12px;font-weight:700}.target-fields input,.target-fields textarea,.template-settings input,.template-settings select,.template-settings textarea{width:100%;min-height:38px;border:1px solid var(--line);border-radius:5px;padding:8px 10px;background:#fff;color:var(--ink)}.template-settings textarea{min-height:76px;resize:vertical}.template-field-row{display:grid;grid-template-columns:minmax(0,320px);grid-gap:12px;gap:12px;align-items:start}.template-order{display:grid;grid-gap:10px;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:6px;background:#fafcfa}.template-order-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.template-order-head>strong{font-size:12px;font-weight:700}.template-order-position{color:var(--muted);font-size:12px}.template-order-position>b{color:var(--ink);font-size:13px}.template-order-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.template-order-actions>button{width:auto}.template-order-list{margin:0}.template-order-list>summary{cursor:pointer;color:var(--muted);font-size:12px;padding:7px 3px}.template-order-list>ol{display:grid;grid-gap:2px;gap:2px;margin:6px 0 0;padding:0;max-height:220px;overflow-y:auto;list-style:none}.template-order-list>ol>li{display:flex;align-items:center;gap:8px;padding:4px 8px;border-radius:4px;color:var(--muted);font-size:12px}.template-order-list>ol>li>span{flex:0 0 22px;color:var(--faint);text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.template-order-list>ol>li.is-current{background:#eef7f0;color:var(--ink);font-weight:700}.template-order-list>ol>li>em{margin-left:auto;color:#206344;font-size:11px;font-style:normal}.template-order .field-hint{color:var(--muted);font-size:12px;line-height:1.7}.template-editor :disabled{cursor:not-allowed}.template-editor .file-button:has(input:disabled),.template-editor button:disabled,.template-editor input:disabled,.template-editor select:disabled,.template-editor textarea:disabled{opacity:.55}.template-note{margin:0}.template-note>summary{cursor:pointer;color:var(--muted);font-size:12px;padding:2px 0}.template-note>p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.7}.template-targets{grid-column:1/-1;padding-top:8px;border-top:1px solid var(--line)}.template-targets-header{margin-bottom:12px}.template-target{position:relative;display:grid;grid-template-columns:180px minmax(0,1fr);grid-gap:14px;gap:14px;padding:14px 38px 14px 0;border-top:1px solid var(--line)}.target-mask-card{position:relative;display:grid;min-height:180px;place-items:center;overflow:hidden;border:1px solid var(--line);background:#f2f4f3;color:var(--muted);font-size:12px}.target-mask-card img{width:100%;height:100%;object-fit:contain}.target-assets{display:grid;align-content:start;grid-gap:9px;gap:9px}.asset-caption{position:absolute;z-index:2;top:7px;left:7px;padding:3px 5px;background:rgb(255 255 255/.88);color:var(--ink);font-size:10px}.target-mask-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.target-mask-warning{position:absolute;z-index:3;inset:0;display:grid;place-items:center;padding:16px;background:rgb(255 246 245/.92);color:#a13631;font-weight:700;line-height:1.45;text-align:center}.target-asset-row{display:grid;grid-template-columns:1fr auto;align-items:center;grid-gap:6px;gap:6px;min-height:44px;padding:6px;border:1px solid var(--line);color:var(--muted);font-size:11px}.target-asset-row img{grid-row:2;width:100%;max-height:112px;object-fit:contain}.target-asset-row small{grid-row:2}.target-asset-row .icon-button{grid-column:2;grid-row:1}.target-mask-card-actions{position:absolute;right:7px;bottom:7px;display:flex;gap:5px}.target-mask-card-actions .icon-button{display:grid;place-items:center;text-decoration:none;cursor:pointer}.target-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.target-fields>label:nth-of-type(n+4){grid-column:1/-1}.target-fields fieldset{grid-column:1/-1;min-width:0;margin:0;padding:8px;border:1px solid var(--line)}.target-fields legend{padding:0 4px;color:var(--muted);font-size:12px}.target-category-list{display:flex;flex-wrap:wrap;gap:10px;font-size:12px}.target-category-list label{display:inline-flex;align-items:center;gap:4px}.target-category-list input{width:16px;min-height:16px}.target-control-grid{display:grid;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:10px;gap:10px}.target-category-rules label,.target-control-grid label{display:grid;grid-gap:6px;gap:6px;font-size:12px;font-weight:700}.target-category-rules select,.target-category-rules textarea,.target-control-grid select{width:100%;min-height:38px;border:1px solid var(--line);border-radius:5px;padding:8px 10px;background:#fff;color:var(--ink)}.target-category-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:10px;gap:10px}.target-category-rules label:first-of-type{grid-column:1/-1}.target-category-rules textarea{min-height:74px;resize:vertical}.target-remove{position:absolute;top:15px;right:0;border:0;background:transparent;color:#a13631;font-size:12px;cursor:pointer}.template-save-row{grid-column:1/-1;display:flex;justify-content:flex-end;padding:18px 0;border-top:1px solid var(--line)}.mask-modal{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:24px}.mask-modal-backdrop{position:absolute;inset:0;border:0;background:rgb(20 30 26/.72)}.mask-modal-card{position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:min(1100px,100%);height:min(860px,calc(100vh - 48px));padding:16px;border-radius:7px;background:#fff}.mask-modal-card h2{margin:2px 0 0;font-size:18px}.mask-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.mask-toolbar button{min-height:32px;border:1px solid var(--line);border-radius:4px;background:#fff;padding:5px 9px;color:var(--ink)}.mask-toolbar button.is-active{border-color:#27735a;background:#e8f3ed;color:#155940}.mask-toolbar label{display:inline-flex;align-items:center;gap:6px;font-size:12px}.mask-stage{min-height:0;overflow:auto;padding:16px;background:#eef1ef}.mask-canvas-frame{position:relative;min-width:0;margin:0 auto}.mask-canvas-frame img{display:block;width:100%;height:100%;object-fit:contain}.mask-canvas-frame canvas:not([hidden]){position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.mask-error{width:min(100%,620px);margin:0 auto 12px;padding:10px 12px;border:1px solid #d6a09d;background:#fff6f5;color:#a13631;font-size:13px;line-height:1.5}.mask-modal-card footer{padding-top:12px;color:var(--muted);font-size:12px}@media (max-width:900px){.metric-grid{grid-template-columns:repeat(2,1fr)}.metric{border-bottom:1px solid var(--line)}.module-form{grid-template-columns:1fr 1fr}.template-workbench{grid-template-columns:1fr}.template-library{padding-right:24px;border-right:0;border-bottom:1px solid var(--line)}.template-library-grid{display:flex;overflow-x:auto;padding-bottom:4px}.template-library-card{flex:0 0 112px}.template-editor-form,.template-field-row{grid-template-columns:1fr}.template-reference{block-size:clamp(280px,72vw,440px)}.credential-row{grid-template-columns:1fr 1fr}.credential-actions{justify-content:flex-start}.credential-edit-summary{grid-template-columns:auto minmax(0,1fr)}}@media (max-width:680px){.admin-app{grid-template-columns:minmax(0,1fr)}.admin-nav{position:static;min-width:0;height:auto;padding:16px;overflow:visible}.admin-brand{margin-bottom:14px}.admin-nav nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.admin-nav nav a,.admin-nav-group{flex:0 0 auto;white-space:nowrap}.admin-nav-group{display:flex;align-items:center;gap:2px}.admin-nav-group>span{padding:9px 4px}.admin-nav-group>div{display:flex;gap:2px}.admin-legacy{margin-top:12px}.admin-topbar{min-height:60px;padding:0 16px}.admin-topbar div span{display:none}.admin-module{width:min(calc(100% - 20px),620px);padding-top:22px}.credential-edit-panel,.credential-row,.dynamic-fields,.metric-grid,.module-form,.target-category-rules,.target-control-grid,.target-fields,.template-target{grid-template-columns:1fr}.model-center-head{align-items:stretch;flex-direction:column}.credential-actions,.credential-edit-actions{justify-content:flex-start}.credential-edit-actions{flex-wrap:wrap}.template-editor-head{display:grid;align-items:start}.template-target{padding-right:0}.target-remove{position:static;justify-self:start}.mask-modal{padding:10px}.mask-modal-card{height:calc(100vh - 20px);padding:12px}}.user-page-header{max-width:none;margin:0 0 16px}.user-page-header h1{font-size:22px;font-weight:700}.user-page-header .subtle{margin-top:5px;font-size:13px}.user-workspace .workspace{max-width:none;margin:0}.user-generation-layout{grid-template-columns:380px minmax(0,1fr);gap:20px;height:calc(100dvh - 132px);min-height:640px}.user-operation-panel{padding:18px;overflow:hidden}.operation-heading h2{font-size:17px}.user-operation-panel>.field{margin-bottom:12px}.upload-field{gap:7px}.user-operation-panel .field .upload-input{position:absolute;width:1px;min-height:1px;height:1px;padding:0;overflow:hidden;border:0;clip:rect(0 0 0 0);white-space:nowrap;-webkit-clip-path:inset(50%);clip-path:inset(50%)}.upload-dropzone{display:flex;min-height:118px;align-items:center;justify-content:center;padding:14px;border:1px dashed #cfd4dd;border-radius:9px;color:var(--user-muted);background:#fbfcfd;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}.upload-dropzone.drag-active,.upload-dropzone:hover{border-color:var(--user-accent);background:#faf9fe;box-shadow:0 0 0 3px var(--user-accent-soft)}.upload-copy{display:grid;justify-items:center;grid-gap:4px;gap:4px;text-align:center}.upload-copy strong{color:var(--user-ink);font-size:13px;font-weight:650}.upload-copy small{color:#9097a3;font-size:11px;line-height:1.35}.upload-icon{display:grid;width:28px;height:28px;place-items:center;margin-bottom:2px;border:1px solid #d9dce5;border-radius:50%;color:var(--user-accent);background:#fff;font-size:19px;line-height:1}.upload-preview{display:grid;width:100%;grid-template-columns:64px minmax(0,1fr);grid-gap:11px;gap:11px;align-items:center}.upload-preview img{width:64px;height:64px;border-radius:7px;object-fit:cover;background:#eef0f4}.upload-preview>span{display:grid;min-width:0;grid-gap:5px;gap:5px}.upload-preview strong{overflow:hidden;color:var(--user-ink);font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.upload-preview small{color:var(--user-accent);font-size:11px}.field-error{color:#b44949;font-size:11px;line-height:1.4}.field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-gap:12px;gap:12px}.field-row .field{min-width:0;margin-bottom:12px}.field-row .field:only-child{grid-column:1/-1}.field-row .field input,.field-row .field select{min-height:40px}.template-library-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px}.template-library-heading .subtle{font-size:11px}.user-operation-panel>.field:has(.template-grid){display:flex;min-height:0;flex:1 1 auto;flex-direction:column;margin-bottom:12px}.user-operation-panel .template-grid{flex:1 1 auto;max-height:none;min-height:150px;padding:1px 4px 6px 0;gap:10px;grid-auto-rows:150px;align-content:start;overscroll-behavior:contain;scrollbar-color:#c7cbd5 transparent;scrollbar-width:thin}.user-operation-panel .template-choice{height:150px;min-height:150px;border-radius:8px}.user-operation-panel .template-choice-main img{object-position:center}.generation-footer{flex:0 0 auto;padding-top:2px;border-top:1px solid #f0f1f4}.instruction-field{margin:12px 0 8px}.instruction-field textarea{min-height:64px;max-height:90px;resize:vertical}.generation-footer .selected-template{margin:0 0 8px;font-size:11px}.generation-footer .status{min-height:18px;margin-top:7px;font-size:11px}.user-operation-panel .generation-notice{display:none}.user-operation-panel .operation-count{font-size:11px}.user-header{border-bottom-color:rgb(255 255 255/.28);background:linear-gradient(103deg,rgb(117 70 231/.94),rgb(160 62 237/.93) 52%,rgb(219 57 229/.93));box-shadow:inset 0 1px 0 rgb(255 255 255/.36),0 4px 18px rgb(93 53 174/.18);-webkit-backdrop-filter:blur(16px) saturate(1.12);backdrop-filter:blur(16px) saturate(1.12)}.user-brand,.user-header-title{color:rgb(255 255 255/.9)}.user-brand-mark{border:1px solid rgb(255 255 255/.32);background:rgb(255 255 255/.17);box-shadow:inset 0 1px 0 rgb(255 255 255/.28)}.user-header .credit-pill{border-color:rgb(255 255 255/.28);color:#fff;background:rgb(255 255 255/.14);box-shadow:inset 0 1px 0 rgb(255 255 255/.2)}.user-avatar{color:#9446df;background:rgb(255 255 255/.92);box-shadow:inset 0 1px 0 #fff}.user-generation-layout{height:calc(100dvh - 104px)}.user-operation-panel .template-grid{gap:8px}.user-operation-panel .template-choice{min-height:118px;height:118px;aspect-ratio:auto;background:#f5f6f8}.user-operation-panel .template-choice-main img{object-fit:cover;background:#f5f6f8}.user-content{padding:16px 22px 24px}.user-generation-layout{gap:16px;height:calc(100dvh - 96px)}.user-operation-panel{padding:16px}.user-operation-panel>.field{margin-bottom:8px}.upload-field{gap:5px}.upload-dropzone{min-height:94px;padding:10px}.upload-copy{gap:2px}.upload-copy small{line-height:1.2}.upload-icon{width:24px;height:24px;margin-bottom:0;font-size:16px}.field-row{gap:8px}.field-row .field{margin-bottom:8px}.field-row .field input,.field-row .field select{min-height:36px}.template-library-heading{margin-bottom:5px}.user-operation-panel>.field:has(.template-grid){margin-bottom:8px}.user-operation-panel .template-grid{min-height:236px;grid-auto-rows:118px}.generation-footer{padding-top:0}.instruction-field{gap:4px;margin:7px 0 6px}.instruction-field textarea{min-height:48px;max-height:62px}.user-operation-panel .primary{min-height:40px}.generation-footer .status{min-height:0;margin-top:5px}@media (max-width:900px){.user-generation-layout{grid-template-columns:1fr;height:auto;min-height:auto}.user-operation-panel{min-height:0;overflow:visible}.user-operation-panel>.field:has(.template-grid){flex:initial}.user-operation-panel .template-grid{max-height:430px;grid-auto-rows:118px}.user-operation-panel .template-choice{height:118px;min-height:118px}}@media (max-width:600px){.user-page-header{margin-bottom:12px}.user-page-header h1{font-size:20px}.user-page-header .subtle{font-size:12px}.user-generation-layout{gap:14px}.user-operation-panel{padding:15px}.field-row{gap:9px}.upload-dropzone{min-height:112px}.user-operation-panel .template-grid{max-height:360px;grid-auto-rows:94px}.user-operation-panel .template-choice{height:94px;min-height:94px}}.user-operation-panel .template-grid{min-height:216px;grid-auto-rows:216px}.user-operation-panel .template-choice{height:216px;min-height:216px;aspect-ratio:3/4}.user-header-title{font-size:16px;font-weight:750}.user-brand-mark{font-family:inherit;font-size:11px;font-weight:800}.user-result-workspace .outputs{grid-template-columns:repeat(auto-fit,minmax(min(100%,405px),405px));gap:16px;justify-content:start}.user-result-workspace .output{width:100%;max-width:405px}.user-result-workspace .output>.empty.compact,.user-result-workspace .output>img{width:100%;min-height:0;aspect-ratio:3/4}.user-result-workspace .output>.empty.compact{display:grid;place-items:center;padding:16px}.user-result-workspace .output>.empty.compact>img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain}.user-operation-panel .template-empty{grid-column:1/-1;align-self:center;justify-self:center;margin:0;font-size:12px}.user-operation-panel .template-grid:has(.template-empty){overflow-y:hidden}@media (max-height:760px) and (min-width:901px){.instruction-field textarea{min-height:36px;max-height:48px}}@media (max-width:600px){.user-result-workspace .outputs{grid-template-columns:minmax(0,1fr)}.user-result-workspace .output{width:100%}}.generation-layout-v2{display:grid;grid-template-columns:minmax(278px,342px) minmax(0,1fr);grid-gap:18px;gap:18px;min-height:calc(100dvh - 96px)}.generation-product-panel{display:flex;min-width:0;min-height:0;flex-direction:column;gap:16px;padding:18px;overflow:auto}.active-result-heading,.library-heading,.product-panel-heading,.workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.product-panel-heading h1,.workspace-heading h2{margin:4px 0 0;color:var(--user-ink);font-size:20px;font-weight:740;line-height:1.2}.product-phase-label,.workspace-count{padding:5px 8px;border:1px solid var(--user-line);border-radius:999px;color:var(--user-muted);background:#fafbfc;font-size:11px;white-space:nowrap}.product-visual-field{display:grid;grid-gap:7px;gap:7px}.product-visual{position:relative;display:grid;min-height:280px;place-items:center;overflow:hidden;border:1px dashed #cfd2dc;border-radius:10px;background:#f7f7fa;cursor:pointer}.product-visual.drag-active,.product-visual:hover{border-color:var(--user-accent);background:#fbfaff;box-shadow:0 0 0 3px var(--user-accent-soft)}.product-visual.has-file{border-style:solid;background:#f1f1f4}.product-visual>img{display:block;width:100%;height:100%;min-height:280px;object-fit:contain}.product-visual-overlay{position:absolute;right:10px;bottom:10px;left:10px;display:grid;grid-gap:3px;gap:3px;padding:8px 10px;border-radius:7px;color:#fff;background:rgb(25 29 42/.72);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.product-visual-overlay strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.product-visual-overlay small{color:#eeeef5;font-size:11px}.generation-product-panel .upload-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}.generation-product-panel .upload-copy{display:grid;justify-items:center;grid-gap:5px;gap:5px;padding:24px;text-align:center}.generation-product-panel .upload-copy strong{color:var(--user-ink);font-size:13px}.generation-product-panel .upload-copy small{color:var(--user-muted);font-size:11px;line-height:1.4}.generation-product-panel .upload-icon{display:grid;width:34px;height:34px;place-items:center;margin-bottom:4px;border:1px solid #d7d4e5;border-radius:50%;color:var(--user-accent);background:#fff;font-size:20px}.product-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:0 10px;gap:0 10px}.product-fields .field{min-width:0;margin-bottom:12px}.product-fields .field:first-child:only-child,.product-fields .field:nth-child(n+3){grid-column:1/-1}.background-intent-field{display:grid;grid-gap:8px;gap:8px;min-width:0;margin:0;padding:0;border:0}.background-intent-field legend{padding:0;color:var(--user-ink);font-size:12px;font-weight:700}.background-intent-options{display:grid;grid-gap:8px;gap:8px}.background-intent-option{display:grid;grid-template-columns:auto minmax(0,1fr);grid-column-gap:8px;column-gap:8px;align-items:start;padding:9px 10px;border:1px solid #dfe2e8;border-radius:8px;color:var(--user-muted);background:#fff;cursor:pointer}.background-intent-option input{width:15px;height:15px;margin:2px 0 0;accent-color:var(--user-accent)}.background-intent-option span,.background-intent-option strong{grid-column:2}.background-intent-option strong{color:var(--user-ink);font-size:12px}.background-intent-option span{margin-top:3px;font-size:11px;line-height:1.4}.background-intent-option.selected{border-color:var(--user-accent);background:#fcfbff;box-shadow:0 0 0 2px var(--user-accent-soft)}.generation-product-panel .field label,.generation-product-panel .field-label{color:var(--user-ink);font-size:12px;font-weight:700}.generation-product-panel .field input,.generation-product-panel .field select,.generation-product-panel .field textarea{width:100%;border-color:#dfe2e8;border-radius:8px;background:#fff}.generation-product-panel .field input,.generation-product-panel .field select{min-height:39px}.generation-product-panel .field textarea{min-height:72px;resize:vertical}.generation-product-panel .field input:focus,.generation-product-panel .field select:focus,.generation-product-panel .field textarea:focus{outline:2px solid rgb(118 87 201/.18);border-color:var(--user-accent)}.instruction-field{position:relative;display:grid;grid-gap:7px;gap:7px;margin:0}.instruction-field label span{margin-left:4px;color:#969ca7;font-size:11px;font-weight:500}.instruction-count{justify-self:end;margin-top:-4px;font-size:11px}.service-note{margin:auto 0 0;padding:9px 10px;border:1px solid #e3e0f0;border-radius:7px;color:var(--user-muted);background:#fbfaff;font-size:11px;line-height:1.45}.service-note.warning{border-color:#ead8b1;color:#806522;background:#fffaf0}.generation-right-column{display:grid;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr);grid-gap:14px;gap:14px}.generation-progress-panel{min-width:0;padding:15px 20px}.generation-steps{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;grid-gap:10px;gap:10px;margin:0;padding:0;list-style:none}.generation-steps>li{color:#a0a5b0}.generation-step-action,.generation-steps>li{display:flex;min-width:0;align-items:center;gap:9px}.generation-step-action{padding:0;border:0;background:none;color:inherit;text-align:left;font:inherit}.generation-step-action:disabled{opacity:1;cursor:default}.generation-step-action:not(:disabled){cursor:pointer}.generation-step-action:focus-visible{outline:2px solid var(--user-accent);outline-offset:5px;border-radius:4px}.generation-step-action>span:nth-child(2){display:grid;min-width:0;grid-gap:2px;gap:2px}.generation-steps strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.generation-steps small{font-size:10px}.generation-steps li.current{color:var(--user-accent)}.generation-steps li.complete{color:#4d9279}.step-marker{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #dfe1e8;border-radius:50%;color:#969ba7;background:#fff;font-size:11px;font-weight:750}.generation-steps .current .step-marker{border-color:var(--user-accent);color:#fff;background:var(--user-accent);box-shadow:0 0 0 4px var(--user-accent-soft)}.generation-steps .complete .step-marker{border-color:#8bc1aa;color:#fff;background:#4d9279}.generation-steps>i{display:block;width:100%;min-width:24px;height:1px;background:#e5e6eb}.generation-steps>li.complete+i{background:#b7d5c7}.generation-workspace{min-width:0;min-height:0;padding:22px;overflow:auto}.workspace-heading{padding-bottom:16px;border-bottom:1px solid var(--user-line)}.workspace-heading .subtle{max-width:620px;margin:7px 0 0;font-size:12px}.generation-result-workspace,.template-selection-workspace{min-width:0}.selected-template-strip{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-gap:14px;gap:14px;align-items:center;min-width:0;margin:16px 0 22px;padding:12px;border:1px solid #e5e1f0;border-radius:9px;background:#fcfbff}.background-selection-note{display:grid;grid-gap:10px;gap:10px;margin-top:16px;padding:13px 14px;border:1px solid #e5e1f0;border-radius:8px;background:#fcfbff}.background-selection-note p{margin:0;color:var(--user-muted);font-size:12px;line-height:1.55}.background-selection-note .field{max-width:260px}.prompt-debug-output{max-width:100%;margin:12px 0 0;padding:12px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:5px;background:#f7f9f8;color:var(--ink);font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.selected-template-label{display:grid;min-width:62px;grid-gap:3px;gap:3px}.selected-template-label strong{color:var(--user-ink);font-size:12px}.selected-template-label span{color:var(--user-muted);font-size:10px;white-space:nowrap}.selected-template-list{display:flex;min-width:0;align-items:center;gap:9px;overflow-x:auto;padding:2px 0}.selected-template-chip{position:relative;display:inline-flex;min-width:108px;align-items:center;gap:7px;padding:4px 8px 4px 4px;border:1px solid #e0ddec;border-radius:7px;color:var(--user-ink);background:#fff;text-align:left}.selected-template-chip.active,.selected-template-chip:hover{border-color:var(--user-accent);box-shadow:0 0 0 2px var(--user-accent-soft)}.selected-template-thumb{display:grid;width:38px;height:46px;flex:0 0 38px;place-items:center;overflow:hidden;border-radius:5px;color:var(--user-muted);background:#f0f1f4}.selected-template-thumb img{width:100%;height:100%;object-fit:cover}.selected-template-name{max-width:104px;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.selected-template-remove{margin-left:auto;color:#9a9eaa;font-size:16px;line-height:1}.selected-template-empty{color:var(--user-muted);font-size:11px}.selected-submit{width:auto;min-width:112px;min-height:38px;padding:7px 14px;border-radius:8px;white-space:nowrap}.selected-submit.primary{color:#fff;background:var(--user-accent);box-shadow:0 5px 12px rgb(118 87 201/.18)}.selected-submit.primary:disabled{cursor:not-allowed;opacity:.5}.library-heading{align-items:center;margin-bottom:12px}.library-heading h3{margin:0;color:var(--user-ink);font-size:14px}.library-heading .subtle{display:block;margin-top:4px;font-size:11px}.workspace-template-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:max-content;gap:14px;align-items:start}.workspace-template-grid .template-choice{display:grid;grid-template-rows:auto 32px;aspect-ratio:auto;height:auto;min-height:0;overflow:hidden;border:2px solid var(--user-line);border-radius:9px;background:#fff}.workspace-template-grid .template-choice-main{position:relative;height:auto;aspect-ratio:3/4;overflow:hidden}.workspace-template-grid .template-choice-main .template-placeholder,.workspace-template-grid .template-choice-main img{object-fit:cover;background:#f0f1f4}.workspace-template-grid .template-choice.selected{border:2px solid var(--user-accent);box-shadow:0 0 0 3px var(--user-accent-soft)}.template-choice-check{position:absolute;right:8px;bottom:8px;display:grid;width:25px;height:25px;place-items:center;border-radius:50%;color:#fff;background:rgb(29 36 51/.64);font-size:15px;line-height:1}.template-choice.selected .template-choice-check{background:var(--user-accent)}.workspace-template-grid .template-choice-caption{display:flex;align-items:center;min-width:0;gap:8px;padding:0 8px}.workspace-template-grid .template-choice-caption strong{min-width:0;flex:1 1 auto;overflow:hidden;color:var(--user-ink);font-size:11px;line-height:16px;text-overflow:ellipsis;white-space:nowrap}.workspace-template-grid .template-choice-caption span{flex:0 0 auto;color:var(--user-muted);font-size:10px;white-space:nowrap}.workspace-template-grid .template-choice-main>.template-placeholder,.workspace-template-grid .template-choice-main>img{width:100%;height:100%;min-height:0}.background-placement-picker{display:grid;grid-gap:3px;gap:3px;flex:0 0 132px;min-width:0;color:var(--user-ink);font-size:10px;font-weight:700}.background-placement-picker select{width:100%;min-height:30px;padding:3px 6px;border:1px solid #dfe2e8;border-radius:7px;color:var(--user-ink);background:#fff;font:inherit;font-size:11px}.selected-template-list .selected-template-chip{flex:0 0 172px;width:172px;height:56px;min-width:0}.selected-template-list .selected-template-name{min-width:0;max-width:none;flex:1 1}.template-empty{grid-column:1/-1;padding:40px 0;text-align:center}.workspace-empty{display:grid;min-height:440px;place-items:center;align-content:center;grid-gap:8px;gap:8px;color:var(--user-muted);text-align:center}.workspace-empty h2{margin:0;color:var(--user-ink);font-size:18px}.workspace-empty p{margin:0;font-size:13px}.empty-illustration{display:grid;width:54px;height:54px;place-items:center;margin-bottom:6px;border:1px solid #ded9ef;border-radius:16px;color:var(--user-accent);background:#faf8ff;font-size:24px}.empty-upload-button{display:inline-flex;align-items:center;justify-content:center;margin-top:9px;text-decoration:none;cursor:pointer}.result-workspace-heading{align-items:center}.result-workspace-heading .secondary{width:auto;border-color:var(--user-line);border-radius:8px;color:var(--user-ink);text-decoration:none}.result-summary{display:grid;grid-gap:9px;gap:9px;margin:15px 0 19px}.result-summary>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.result-summary strong{color:var(--user-accent);font-size:24px}.result-summary span{color:var(--user-muted);font-size:11px}.result-summary .status{min-height:0;margin:0;font-size:11px}.result-summary .progress-track{height:7px;overflow:hidden;border-radius:5px;background:#ebe9f4}.result-summary .progress-track i{display:block;height:100%;border-radius:inherit;background:var(--user-accent);transition:width .4s ease}.active-result-group{border-top:1px solid var(--user-line);padding-top:16px}.active-result-heading{align-items:center;margin-bottom:13px}.active-result-heading h3{margin:4px 0 2px;color:var(--user-ink);font-size:16px}.active-result-heading .subtle{font-size:11px}.active-result-group .outputs{grid-template-columns:repeat(2,minmax(0,min(390px,calc((100% - 16px) / 2))));justify-content:start;gap:16px}.active-result-group .output{border-color:var(--user-line);border-radius:9px;background:#fff;box-shadow:0 5px 15px rgb(30 35 50/.04)}.output-visual{width:100%;aspect-ratio:3/4;overflow:hidden;background:#f0f1f4}.output-visual>img{display:block;width:100%;height:100%;object-fit:contain}.candidate-placeholder{display:grid;height:100%;place-items:center;align-content:center;grid-gap:8px;gap:8px;padding:20px;color:var(--user-muted);text-align:center}.candidate-placeholder strong{color:var(--user-ink);font-size:13px}.candidate-placeholder small{font-size:11px;line-height:1.4}.candidate-spinner{width:24px;height:24px;border:2px solid #ddd9ec;border-top:2px solid var(--user-accent);border-radius:50%;animation:candidate-spin .9s linear infinite}.candidate-status-icon{width:26px;height:26px;display:grid;place-items:center;border:1px solid #d8dbe3;border-radius:50%;color:var(--user-muted);font-weight:700;font-size:14px}.status-failed .candidate-status-icon{border-color:#e3b8b8;color:#a83e3e}@keyframes candidate-spin{to{transform:rotate(1turn)}}.active-result-group .output-body{padding:12px 13px 14px}.active-result-group .repair-form .secondary,.active-result-group .repair-quick-actions button{border-radius:7px}.template-status-dot{width:7px;height:7px;flex:0 0 7px;margin-left:auto;border-radius:50%;background:#c4c7cf}.template-status-dot.processing,.template-status-dot.queued{background:#d39c35}.template-status-dot.succeeded{background:#4d9279}.template-status-dot.cancelled,.template-status-dot.failed,.template-status-dot.unknown{background:#bd6868}@media (max-width:1100px) and (min-width:901px){.generation-layout-v2{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}.workspace-template-grid{grid-template-columns:repeat(auto-fill,minmax(135px,1fr))}.selected-template-chip{min-width:92px}.selected-template-name{max-width:78px}}@media (max-width:900px){.generation-layout-v2{grid-template-columns:1fr;min-height:auto}.generation-product-panel{overflow:visible}.generation-right-column{min-height:720px}.generation-workspace{min-height:620px}.product-visual,.product-visual>img{min-height:320px}}@media (max-width:600px){.generation-product-panel,.generation-progress-panel,.generation-workspace{padding:14px}.generation-steps{grid-template-columns:1fr;gap:8px}.generation-steps>i{display:none}.generation-steps>li{min-height:30px}.selected-template-strip{grid-template-columns:1fr;gap:9px}.selected-template-label{display:flex;align-items:baseline;justify-content:space-between}.selected-submit{width:100%}.workspace-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.active-result-group .outputs{grid-template-columns:1fr}.result-workspace-heading{display:grid}.result-workspace-heading .secondary{justify-self:start}.product-visual,.product-visual>img{min-height:260px}}.control-plane table{width:100%;border-collapse:collapse}.control-plane td,.control-plane th{padding:12px;text-align:left;vertical-align:top;border-bottom:1px solid #e4e0d9;overflow-wrap:anywhere}.control-plane textarea{width:100%;min-width:240px;box-sizing:border-box}.control-plane pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f4f0;padding:16px;line-height:1.7}.control-plane details{margin:16px 0}.control-plane summary{cursor:pointer;font-weight:600;padding:8px 0}.control-form{display:grid;grid-gap:14px;gap:14px;max-width:740px}.control-plane label{display:grid;grid-gap:8px;gap:8px;margin:8px 0}.control-plane input,.control-plane select,.control-plane textarea{padding:10px;border:1px solid #cfc8bb;border-radius:6px;color:inherit;background:white}.control-plane button{margin:4px;padding:8px 12px;cursor:pointer}.control-plane button:disabled{cursor:not-allowed;opacity:.45}.control-plane .data-section{overflow-x:auto}.control-plane{max-width:1280px}.control-plane .control-intro{color:var(--muted);max-width:900px;line-height:1.7}.control-plane .control-environment{padding:11px 16px;margin:-6px 0 20px;background:#fff7de;border:1px solid #e7d7a4;border-radius:6px;color:#735925;font-size:13px}.control-plane .control-card,.control-plane .rule-editor{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px;margin:20px 0;min-width:0}.control-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.control-section-head h2{font-size:18px;margin:0}.control-section-head p{color:var(--muted);font-size:13px;margin:7px 0 0;line-height:1.6}.control-plane .control-muted,.control-plane small{color:var(--muted);font-size:12px;line-height:1.65}.control-plane button{margin:0;font-size:13px}.control-plane .primary{background:#194d3a;color:#fff;border:1px solid #194d3a;width:auto}.control-plane .secondary{background:#fff;color:#294539;border:1px solid #b9c6bf}.control-plane button:disabled{opacity:.55}.control-plane .text-button,.control-plane .text-danger{background:transparent;border:0;padding:7px 3px;color:#315847}.control-plane .text-danger{color:#a13d36}.control-plane label{margin:0;font-size:13px;font-weight:500}.control-plane input,.control-plane select,.control-plane textarea{min-width:0;width:100%;font:inherit;box-sizing:border-box}.control-plane textarea{resize:vertical;min-height:64px;line-height:1.65}.control-plane .control-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.private-template-master-detail{display:grid;grid-template-columns:minmax(240px,310px) minmax(0,1fr);grid-gap:18px;gap:18px;overflow:visible!important}.private-template-user-list{display:grid;align-content:start;grid-gap:12px;gap:12px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fafbf9}.private-template-user-cards{display:grid;grid-gap:8px;gap:8px;max-height:68dvh;overflow:auto}.private-template-user-cards>button{display:grid;grid-gap:4px;gap:4px;width:100%;padding:12px;border:1px solid #dfe5df;border-radius:8px;color:var(--ink);background:#fff;text-align:left}.private-template-user-cards>button.is-selected{border-color:#538268;background:#f1f7f1;box-shadow:0 0 0 2px #dcecdf}.private-template-user-cards strong{font-size:13px}.private-template-user-cards em,.private-template-user-cards small,.private-template-user-cards span{overflow:hidden;color:var(--muted);font-size:11px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.private-template-user-cards em{color:#315847;font-weight:650}.private-template-detail{min-width:0;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff}.private-template-detail-header{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px}.private-template-detail-header h2{margin:3px 0;font-size:20px}.private-template-detail-header p{margin:0;color:var(--muted);font-size:12px}.private-template-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-gap:14px;gap:14px;margin-top:18px}.private-template-admin-grid article{display:grid;grid-gap:10px;gap:10px;overflow:hidden;padding:10px;border:1px solid #dfe5df;border-radius:9px;background:#fff}.private-template-admin-image{display:grid;aspect-ratio:4/3;place-items:center;overflow:hidden;color:var(--muted);background:#f0f2f0;font-size:12px}.private-template-admin-image img{width:100%;height:100%;object-fit:cover}.private-template-admin-grid h3{margin:5px 0;font-size:14px}.private-template-admin-grid p{margin:0 0 6px;color:var(--muted);font-size:12px}.private-template-empty-detail{display:grid;min-height:340px;place-items:center;align-content:center;grid-gap:6px;gap:6px;color:var(--muted);text-align:center}.private-template-empty-detail strong{color:var(--ink)}.control-badge{display:inline-block;width:max-content;max-width:100%;border:1px solid #d5dcd7;border-radius:5px;padding:4px 8px;font-size:12px;background:#f3f5f3;color:#536258;line-height:1.5}.control-badge.available{background:#eef7f0;color:#206344;border-color:#bcd9c6}.control-badge.unavailable{background:#f3f4f4;color:#656b68;border-color:#d9ddda}.control-badge.pending{background:#fff8e8;color:#876122;border-color:#ead9b1}.control-badge.connection,.control-badge.protocol{background:#f9efea;color:#8b4f37;border-color:#e4cdbf}.control-notice{padding:12px 14px;background:#f2f6f3;border-left:3px solid #7a9c87;font-size:13px;line-height:1.7}.prompt-workspace{display:grid;grid-template-columns:218px minmax(0,1fr);grid-gap:22px;gap:22px;align-items:start;margin-top:22px}.rule-directory{position:-webkit-sticky;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto;padding:0 12px 16px 0}.rule-directory section{margin-top:20px}.rule-directory h2{font-size:12px;color:var(--muted);margin:0 10px 7px}.rule-directory .rule-nav{width:100%;display:flex;justify-content:space-between;align-items:center;padding:9px 10px;text-align:left;border:0;border-radius:5px;background:transparent;margin:2px 0;color:#344d40}.rule-directory .rule-nav.active{background:#e5eee7;color:#164d33;font-weight:700}.rule-directory .rule-nav:hover{background:#eef3ef}.rule-directory .control-muted{padding:14px 10px;border-top:1px solid var(--line);margin-top:20px}.control-plane .rule-editor{margin-top:0;padding:22px}.control-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin:20px 0}.control-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:10px 1px;color:var(--muted)}.control-tabs button.active{color:#194d3a;border-bottom-color:#194d3a;font-weight:700}.rule-field-list{display:grid;grid-gap:18px;gap:18px}.control-plane .rule-field{display:grid;grid-gap:8px;gap:8px;min-width:0;border-bottom:1px solid #edf0ec;padding-bottom:12px}.rule-field>span{display:flex;gap:10px;justify-content:space-between;align-items:baseline}.rule-field>span strong{font-size:13px}.control-plane .rule-field details{margin:0}.control-plane .rule-field summary{font-weight:400;font-size:11px;color:var(--muted);padding:0}.rule-field details p{font-size:12px;line-height:1.6}.necklace-rule-list{display:grid;grid-gap:12px;gap:12px}.control-plane .necklace-rule-list .rule-field{grid-template-columns:150px minmax(0,1fr);align-items:start}.necklace-rule-list .rule-field>span{flex-direction:column;gap:5px}.necklace-rule-list .rule-field details{grid-column:2}.rule-save-bar{position:-webkit-sticky;position:sticky;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;grid-gap:10px 16px;gap:10px 16px;padding:16px 0 2px;background:#fff;border-top:1px solid var(--line);margin-top:20px}.rule-save-bar label{grid-column:1/-1}.rule-save-bar>span{grid-column:1}.rule-save-bar .primary{grid-column:2;min-width:120px}.rule-change{margin:18px 0}.rule-change h3{font-size:13px}.rule-change>div{display:grid;grid-template-columns:1fr 1fr;grid-gap:16px;gap:16px}.rule-change section{padding:12px;background:#f5f7f4;font-size:12px;line-height:1.7}.preview-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px;margin:20px 0}.preview-template{grid-column:1/-1}.preview-controls button{justify-self:start}.control-preview-success{background:#eaf5ed;color:#206344;padding:10px 14px;border-radius:5px;font-size:13px}.preview-part{padding:12px 0;border-bottom:1px solid #e9eee9}.preview-part p{line-height:1.8;font-size:13px;margin:6px 0;white-space:pre-wrap}.workflow-row{display:grid;grid-template-columns:125px minmax(145px,.8fr) minmax(180px,1.2fr) 224px;align-items:center;grid-gap:18px;gap:18px;padding:16px 0;border-top:1px solid var(--line);font-size:13px}.workflow-row .control-actions{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px}.workflow-row .control-actions>button{width:100%}.workflow-row .control-actions>button:only-child{grid-column:2}.workflow-row small{display:block;margin-top:6px}.model-row{display:grid;grid-template-columns:minmax(180px,1.05fr) minmax(120px,.6fr) minmax(280px,1.5fr) 190px;align-items:center;grid-gap:18px;gap:18px;padding:20px 0;border-top:1px solid var(--line)}.model-row h3{margin:0 0 7px;font-size:15px;overflow-wrap:anywhere}.model-row p{font-size:13px;margin:5px 0;line-height:1.65;overflow-wrap:anywhere}.model-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:4px 14px;gap:4px 14px}.model-status>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0}.model-status small{color:var(--muted);font-size:var(--fs-1)}.model-actions{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px;align-items:center}.model-actions>button{width:100%;min-width:0}.model-actions .text-button{grid-column:1/-1}.control-modal-backdrop{position:fixed;inset:0;background:rgb(16 29 22/.4);display:flex;justify-content:flex-end;z-index:100}.control-modal{width:min(620px,100%);height:100%;overflow-y:auto;background:#fff;padding:26px;box-shadow:-12px 0 36px #0002}.control-modal>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}.control-modal>header h2{margin:0;font-size:20px}.control-modal p{font-size:13px;line-height:1.8}.control-modal .control-form{gap:18px}.binding-option{padding:16px 0;border-top:1px solid var(--line);display:flex;gap:14px;justify-content:space-between;align-items:center}.binding-option h3{font-size:15px;margin:0 0 8px}.binding-option button{flex-shrink:0}.validation-roles{font-size:13px;line-height:2;padding-left:24px}.control-plane .control-checkbox{display:flex;align-items:start;gap:9px;margin:18px 0;line-height:1.7}.control-plane .control-checkbox input{width:16px;margin-top:4px;flex:0 0 16px}@media(max-width:1150px){.model-row{grid-template-columns:minmax(160px,1fr) minmax(140px,1fr) 180px}.model-usage{grid-column:1;grid-row:2}.model-status{grid-column:2;grid-row:1/3}.model-actions{grid-column:3;grid-row:1/3}.workflow-row{grid-template-columns:100px minmax(120px,1fr) 88px}.workflow-row .control-actions{grid-column:1/-1;justify-self:start;grid-template-columns:repeat(2,minmax(0,148px))}.prompt-workspace{grid-template-columns:185px minmax(0,1fr);gap:15px}}@media(max-width:900px){.prompt-workspace{grid-template-columns:minmax(0,1fr)}.rule-directory{position:static;max-height:290px;border:1px solid var(--line);padding:14px;border-radius:6px}.model-row{grid-template-columns:minmax(0,1fr) 160px}.model-status{grid-column:1;grid-row:3}.model-actions{grid-column:2;grid-row:1/4}.workflow-row{grid-template-columns:minmax(0,1fr);gap:8px}.workflow-row>div:nth-of-type(2){justify-self:start}.workflow-row .control-actions{justify-self:start;grid-template-columns:repeat(2,minmax(0,148px))}}@media(max-width:600px){.control-section-head{flex-direction:column}.control-plane .rule-editor{padding:16px}.control-plane .necklace-rule-list .rule-field{grid-template-columns:1fr}.necklace-rule-list .rule-field details{grid-column:1}.preview-controls,.private-template-master-detail,.rule-change>div{grid-template-columns:1fr}.private-template-user-cards{max-height:260px}.model-row{grid-template-columns:1fr}.model-actions,.model-status,.model-usage{grid-column:1;grid-row:auto}.model-actions{display:flex;flex-wrap:wrap}.control-modal{padding:18px}}.control-plane>header h1{font-size:var(--fs-7);line-height:1.3;margin:0}.control-plane>.control-intro{margin:0}.rule-group-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.rule-group-heading h2{margin:0 10px}.rule-directory .rule-group-heading button{border:0;background:none;padding:3px 10px;color:var(--muted);font-size:12px}.rule-directory .rule-group-heading .rule-group-toggle{display:flex;width:100%;align-items:center;gap:8px;min-height:40px;text-align:left;cursor:pointer}.rule-directory .rule-group-toggle>strong{flex:1 1 auto;min-width:0}.rule-directory .rule-group-count{flex:0 0 auto;display:inline-flex;min-width:22px;justify-content:center;padding:1px 6px;border-radius:999px;background:#eef3f0;color:#496252;font-size:var(--fs-1);font-weight:700}.rule-directory .rule-group-chevron{flex:0 0 14px;color:var(--muted);font-size:11px;text-align:center}.rule-group-toggle[aria-expanded=true]{color:var(--ink);background:#eef3f0!important}.rule-group-toggle:focus-visible{outline:2px solid #27735a;outline-offset:2px}.rule-scene-options{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:20px}.rule-scene-options>span{font-size:12px;color:var(--muted);margin-right:6px}.rule-scene-options button{border:1px solid #d9e1d9;border-radius:5px;background:#fff;color:#496252;padding:6px 9px}.rule-scene-options button.active{background:#e8f0e9;border-color:#91b59b;color:#194d3a}.model-capsule-list{display:grid;grid-gap:12px;gap:12px}.model-capsule{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border:1px solid #dfe7df;border-radius:18px;background:#fff}.model-capsule-content{min-width:0}.model-capsule h3{margin:0;font-size:15px;line-height:1.5;overflow-wrap:anywhere}.model-capsule .model-capsule-meta{margin:3px 0 10px;font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.model-capsule-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.model-capsule>.model-capsule-content{flex:1 1 auto;min-width:0}.model-capsule>.model-capsule-chips{flex:0 0 auto}.model-capsule>.model-capsule-content>.model-capsule-meta{margin-bottom:0}.model-chip{display:inline-flex;border-radius:20px;padding:3px 9px;background:#f2f4f2;color:#667268;font-size:11px;line-height:1.5;white-space:nowrap}.model-chip.success{color:#326b49;background:#edf6ef}.model-chip.failure{color:#a1433e;background:#fcf0ee}.model-chip.selected{color:#285c43;background:#e4f0e7}.model-capsule-history{color:var(--muted);font-size:11px;margin-left:4px;text-decoration:none}.model-capsule-history:hover{text-decoration:underline}.model-capsule .model-capsule-error{color:#a1433e;font-size:12px;margin:8px 0 0;overflow-wrap:anywhere}.model-capsule-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.model-capsule-actions>button{padding:7px 12px;font-size:12px;white-space:nowrap;border-radius:8px}.model-capsule-more{position:relative}.control-plane .model-capsule-more>summary{display:flex;justify-content:center;align-items:center;width:32px;height:32px;padding:0;border-radius:8px;border:1px solid #dfe7df;list-style:none;cursor:pointer;font-size:12px}.model-capsule-more>summary::-webkit-details-marker{display:none}.model-capsule-more[open]>summary{background:#edf3ee}.model-capsule-menu{position:absolute;right:0;top:38px;z-index:20;min-width:150px;padding:5px;background:#fff;border:1px solid #dfe7df;border-radius:10px;box-shadow:0 8px 24px #173b2020}.model-capsule-menu button{display:block;width:100%;padding:9px 12px;text-align:left;border:0;border-radius:6px;background:transparent;font-size:12px;white-space:nowrap;cursor:pointer}.model-capsule-menu button:hover{background:#f3f6f3}.model-capsule-menu .text-danger{color:#876562}@media(max-width:700px){.model-capsule{flex-wrap:wrap;padding:14px;gap:12px}.model-capsule-actions{margin-left:auto}}.shared-mask-editor,.shared-mask-editor *{box-sizing:border-box}.shared-mask-editor{display:grid;grid-gap:14px;gap:14px;min-width:0;border:1px solid #dce6df;border-radius:12px;padding:18px;background:#fff;color:#1b2c23}.shared-mask-editor__brush-size,.shared-mask-editor__footer,.shared-mask-editor__header,.shared-mask-editor__panel-heading,.shared-mask-editor__tool-group,.shared-mask-editor__toolbar,.shared-mask-editor__zoom{display:flex;align-items:center}.shared-mask-editor__footer,.shared-mask-editor__header,.shared-mask-editor__panel-heading{justify-content:space-between;gap:14px}.shared-mask-editor__header h2{margin:0;font-size:18px}.shared-mask-editor__footer p,.shared-mask-editor__header p,.shared-mask-editor__panel-heading span,.shared-mask-editor__selection-status{margin:4px 0 0;color:#64746a;font-size:12px;line-height:1.5}.shared-mask-editor__close,.shared-mask-editor__confirm,.shared-mask-editor__toolbar button{min-height:34px;border:1px solid #c4d3c9;border-radius:6px;padding:6px 10px;background:#fff;color:#244638;font:inherit;font-size:12px;cursor:pointer}.shared-mask-editor__toolbar button.is-active{border-color:#27735a;background:#e8f3ed;color:#155940;font-weight:700}.shared-mask-editor__confirm:disabled,.shared-mask-editor__toolbar button:disabled{cursor:not-allowed;opacity:.5}.shared-mask-editor__toolbar{flex-wrap:wrap;gap:8px 12px;padding:10px 0;border-top:1px solid #edf1ed;border-bottom:1px solid #edf1ed}.shared-mask-editor__tool-group,.shared-mask-editor__zoom{flex-wrap:wrap;gap:6px}.shared-mask-editor__brush-size{gap:7px;color:#40594c;font-size:12px;white-space:nowrap}.shared-mask-editor__brush-size input{width:112px;accent-color:#27735a}.shared-mask-editor__brush-size output,.shared-mask-editor__zoom output{min-width:46px;color:#40594c;font-size:12px;text-align:center}.shared-mask-editor__body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(210px,.72fr);grid-gap:14px;gap:14px;min-width:0}.shared-mask-editor__panel{display:grid;min-width:0;grid-gap:8px;gap:8px}.shared-mask-editor__panel-heading{min-height:24px;padding:0 2px}.shared-mask-editor__panel-heading strong{font-size:13px}.shared-mask-editor__viewport{position:relative;min-height:min(58vh,540px);overflow:hidden;border:1px solid #cedbd2;border-radius:8px;background:#eff3f0;touch-action:none}.shared-mask-editor__scene{position:absolute;top:0;left:0;transform-origin:top left;will-change:transform}.shared-mask-editor__scene img{display:block;width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.shared-mask-editor__paint-layer{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.shared-mask-editor__paint-layer.tool-erase{cursor:cell}.shared-mask-editor__paint-layer.is-panning,.shared-mask-editor__paint-layer.tool-pan{cursor:-webkit-grab;cursor:grab}.shared-mask-editor__paint-layer.is-panning{cursor:-webkit-grabbing;cursor:grabbing}.shared-mask-editor__issue,.shared-mask-editor__loading{position:absolute;inset:0;display:grid;place-items:center;margin:0;padding:24px;color:#5d7064;font-size:13px;text-align:center}.shared-mask-editor__issue{background:rgb(255 246 245/.94);color:#a13631;font-weight:700;line-height:1.5}.shared-mask-editor__preview-wrap{position:relative;display:grid;min-height:260px;place-items:center;overflow:hidden;border:1px solid #cedbd2;border-radius:8px;background-color:#f6f8f6;background-image:linear-gradient(45deg,#e8eeea 25%,transparent 0),linear-gradient(-45deg,#e8eeea 25%,transparent 0),linear-gradient(45deg,transparent 75%,#e8eeea 0),linear-gradient(-45deg,transparent 75%,#e8eeea 0);background-position:0 0,0 8px,8px -8px,-8px 0;background-size:16px 16px}.shared-mask-editor__preview{display:block;width:100%;max-height:480px;object-fit:contain}.shared-mask-editor__empty-preview{position:absolute;margin:0;color:#6b7f72;font-size:13px;text-align:center}.shared-mask-editor__selection-status{min-height:20px;padding:0 2px}.shared-mask-editor__footer{padding-top:12px;border-top:1px solid #edf1ed}.shared-mask-editor__footer>div{display:flex;align-items:center;justify-content:flex-end;gap:10px}.shared-mask-editor__footer p{max-width:620px}.shared-mask-editor__validation{max-width:380px;color:#a13631;font-size:12px;line-height:1.45;text-align:right}.shared-mask-editor__confirm{border-color:#194d3a;background:#194d3a;color:#fff;font-weight:700;white-space:nowrap}@media (max-width:760px){.shared-mask-editor{padding:14px}.shared-mask-editor__body{grid-template-columns:1fr}.shared-mask-editor__viewport{min-height:380px}.shared-mask-editor__footer{align-items:flex-start;flex-direction:column}.shared-mask-editor__footer>div{width:100%;justify-content:space-between}.shared-mask-editor__validation{text-align:left}}.user-workspace .ai-tool-mark.template{background:#a46231}.user-workspace .ai-tool-mark.erase{background:#5969a8}.my-templates-page,.smart-erase-page{max-width:1180px;margin:0 auto}.my-templates-page *,.smart-erase-page *{box-sizing:border-box}.my-template-card-actions,.my-template-form-actions,.my-template-smart-erase-action,.my-templates-head-actions,.smart-erase-result>div:last-child,.smart-erase-submit{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.my-template-clone-card .primary,.my-template-empty .primary,.my-template-form-actions .primary,.my-templates-head-actions .primary,.smart-erase-page .primary{width:auto;min-height:36px;padding:8px 13px;border-radius:8px;background:var(--user-accent);color:#fff;text-decoration:none;box-shadow:none}.my-templates-page .secondary,.smart-erase-page .secondary{width:auto;min-height:34px;border-color:var(--user-line);border-radius:8px;color:var(--user-ink);text-decoration:none}.my-template-quota{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(130px,.6fr) minmax(180px,1fr);grid-gap:1px;gap:1px;margin:0 0 20px;overflow:hidden;border:1px solid var(--user-line);border-radius:12px;background:var(--user-line)}.my-template-quota>div{display:grid;min-height:100px;align-content:center;grid-gap:5px;gap:5px;padding:17px 20px;background:#fff}.my-template-quota strong{color:var(--user-ink);font-size:24px;line-height:1}.my-template-quota span:not(.section-kicker){color:var(--user-muted);font-size:12px}.my-template-quota .section-kicker{color:var(--user-accent)}.my-template-quota>p{grid-column:1/-1;margin:0;padding:9px 20px;color:#655398;background:#faf9fe;font-size:12px}.my-template-status{margin:-8px 0 18px}.my-template-composer,.my-template-library,.smart-erase-history,.smart-erase-workbench{margin-top:20px;padding:22px;border:1px solid var(--user-line);border-radius:12px;background:#fff;box-shadow:0 5px 20px rgb(30 35 50/.035)}.my-template-clone-card>header,.my-template-composer-head,.my-template-create-dialog>header,.my-template-library-head,.my-template-targets-head,.smart-erase-history .section-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.my-template-clone-card h2,.my-template-composer h2,.my-template-create-dialog h2,.my-template-library h2,.smart-erase-history h2{margin:5px 0 0;color:var(--user-ink);font-size:19px}.my-template-clone-card p,.my-template-composer-head p,.my-template-create-dialog p,.my-template-library-head p,.my-template-targets-head span{margin:6px 0 0;color:var(--user-muted);font-size:12px;line-height:1.55}.my-template-form{display:grid;grid-gap:16px;gap:16px;margin-top:22px}.my-template-clone-controls>label,.my-template-creation-options>label,.my-template-form>label,.my-template-target>label{display:grid;grid-gap:7px;gap:7px;color:var(--user-ink);font-size:12px;font-weight:700}.my-template-clone-controls input,.my-template-clone-controls select,.my-template-filters input,.my-template-filters select,.my-template-form input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),.my-template-form select,.my-template-target input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]){width:100%;min-height:38px;border:1px solid #dfe2e8;border-radius:8px;padding:8px 10px;background:#fff;color:var(--user-ink);font:inherit}.my-template-clone-controls input:focus,.my-template-clone-controls select:focus,.my-template-filters input:focus,.my-template-filters select:focus,.my-template-form input:focus,.my-template-form select:focus,.my-template-target input:focus{outline:2px solid var(--user-accent-soft);border-color:var(--user-accent)}.my-template-upload{min-height:78px;align-content:center;padding:13px 14px;border:1px dashed #cfc9e2;border-radius:9px;background:#fcfbff;cursor:pointer}.my-template-upload input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.my-template-upload span{overflow:hidden;color:var(--user-muted);font-size:12px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}.my-template-upload:has(input:disabled){cursor:not-allowed;opacity:.6}.my-template-upload-preview{display:grid;grid-template-columns:minmax(0,1fr) 148px;grid-gap:12px;gap:12px;align-items:center;min-height:220px;padding:12px;border:1px solid #d8ddef;border-radius:9px;background:#fcfbff}.my-template-upload-preview>img{display:block;width:100%;height:196px;border-radius:7px;object-fit:contain;background:#f0f1f4}.my-template-upload-preview>div{display:grid;justify-items:start;grid-gap:9px;gap:9px}.my-template-upload-preview strong{color:var(--user-ink);font-size:13px}.my-template-upload-preview label{position:relative;cursor:pointer}.my-template-upload-preview label input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.my-template-upload-preview label:has(input:disabled){cursor:not-allowed;opacity:.6}.my-template-creation-setup{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);grid-gap:20px;gap:20px;align-items:start}.my-template-creation-media,.my-template-creation-options{min-width:0}.my-template-creation-options{display:grid;align-content:start;grid-gap:14px;gap:14px}.my-template-creation-media .my-template-image-upload,.my-template-creation-media .my-template-upload-preview{width:100%;aspect-ratio:3/4;min-height:0}.my-template-creation-media .my-template-image-upload{display:grid;place-items:center;align-content:center;grid-gap:8px;gap:8px;padding:24px;text-align:center}.my-template-creation-media .my-template-image-upload span{max-width:250px;overflow:visible;line-height:1.55;text-overflow:clip;white-space:normal}.my-template-creation-media .my-template-upload-preview{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;align-content:stretch}.my-template-creation-media .my-template-upload-preview>img{height:100%;min-height:0;object-fit:contain}.my-template-creation-media .my-template-upload-preview>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.my-template-jewelry-targets{display:grid;grid-gap:14px;gap:14px}.my-template-jewelry-targets .mask-workspace-layout{min-height:620px}.history-pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:14px}.history-pagination button{min-width:34px;min-height:32px;padding:5px 9px;border:1px solid var(--user-line);border-radius:7px;color:var(--user-ink);background:#fff;cursor:pointer}.history-pagination button.is-current{border-color:var(--user-accent);color:#fff;background:var(--user-accent)}.history-pagination button:disabled{cursor:not-allowed;opacity:.45}.my-template-check{display:flex;align-items:center;gap:8px;color:var(--user-ink);font-size:12px;font-weight:650}.my-template-check input{width:16px;height:16px;accent-color:var(--user-accent)}.my-template-source-summary{display:grid;grid-template-columns:84px minmax(0,1fr);grid-gap:12px;gap:12px;align-items:center;padding:10px;border:1px solid #e5e1f0;border-radius:9px;background:#fcfbff}.my-template-source-summary>img{width:84px;height:84px;border-radius:7px;object-fit:cover;background:#f0f1f4}.my-template-source-summary>span{display:grid;grid-gap:4px;gap:4px;min-width:0}.my-template-source-summary strong{color:var(--user-ink);font-size:13px}.my-template-source-summary small{color:var(--user-muted);font-size:12px;line-height:1.45}.my-template-source-summary small.success{color:#26714f;font-weight:700}.my-template-targets-head{padding:15px 0 2px;border-top:1px solid var(--user-line)}.my-template-targets-head>div{display:grid;grid-gap:3px;gap:3px}.my-template-targets-head strong{font-size:14px}.my-template-target-list{display:grid;grid-gap:16px;gap:16px}.my-templates-page .my-template-background-targets{display:grid;grid-gap:14px;gap:14px}.my-template-background-targets .mask-workspace-layout{min-height:620px}.my-template-target{display:grid;grid-gap:13px;gap:13px;padding:17px;border:1px solid #e4e1ef;border-radius:10px;background:#fdfcff}.my-template-target>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.my-template-target>header strong{color:var(--user-ink);font-size:14px}.my-template-card-actions .text-danger,.my-template-target .text-danger{min-height:30px;border:0;padding:5px 3px;color:#aa403d;background:transparent;font:inherit;font-size:12px;font-weight:700}.my-template-target fieldset{display:grid;grid-gap:8px;gap:8px;margin:0;padding:0;border:0}.my-template-target legend{padding:0;color:var(--user-ink);font-size:12px;font-weight:700}.my-template-category-checks{display:flex;flex-wrap:wrap;gap:7px}.my-template-category-checks label{display:inline-flex;align-items:center;gap:5px;min-height:29px;padding:4px 8px;border:1px solid #ddd9eb;border-radius:999px;color:#4f5765;background:#fff;font-size:11px;font-weight:600}.my-template-category-checks input{width:14px;height:14px;accent-color:var(--user-accent)}.my-template-category-checks label:has(input:checked){border-color:#bdb1df;color:#6047aa;background:#f4f1fc}.my-template-category-checks label.is-assigned{cursor:not-allowed;opacity:.5}.my-template-smart-erase{display:grid;grid-gap:15px;gap:15px;padding:17px;border:1px solid #d8ddef;border-radius:10px;background:#f9faff}.my-template-smart-erase>div:first-child{display:grid;grid-gap:4px;gap:4px}.my-template-smart-erase>div:first-child strong{color:#36436e;font-size:14px}.my-template-smart-erase>div:first-child p{margin:0;color:#68728e;font-size:12px;line-height:1.5}.my-template-smart-erase-action,.smart-erase-submit{justify-content:space-between;padding:13px 14px;border:1px solid #dbe0ef;border-radius:9px;background:#fff}.my-template-smart-erase-action>div,.smart-erase-submit>div{display:grid;grid-gap:4px;gap:4px;min-width:0}.my-template-smart-erase-action strong,.smart-erase-submit strong{color:var(--user-ink);font-size:13px}.my-template-smart-erase-action small,.my-template-smart-erase-action span,.smart-erase-submit p,.smart-erase-submit small{margin:0;color:var(--user-muted);font-size:12px;line-height:1.45}.my-template-smart-erase-action small,.smart-erase-submit small{color:#26714f;font-weight:700}.my-template-smart-erase-terminal,.smart-erase-terminal{margin:0;padding:10px 12px;border:1px solid #e7c8c4;border-radius:8px;color:#9c3e38;background:#fff6f5;font-size:12px;line-height:1.55}.my-template-background-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.my-template-background-preview-single{grid-template-columns:minmax(0,1fr);max-width:440px}.my-template-background-preview>div{display:grid;grid-gap:7px;gap:7px;min-width:0}.my-template-background-preview strong{color:var(--user-muted);font-size:11px}.my-template-background-preview img{display:block;width:100%;aspect-ratio:4/3;border:1px solid var(--user-line);border-radius:9px;object-fit:cover;background:#f0f1f4}.field-error{margin:0;color:#a23833;font-size:12px;line-height:1.5}.my-template-create-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px;margin:0 0 18px}.my-template-create-options>button{display:grid;grid-template-columns:38px minmax(0,1fr);grid-gap:3px 12px;gap:3px 12px;align-items:center;min-height:105px;padding:17px;border:1px solid var(--user-line);border-radius:10px;color:var(--user-ink);background:#fff;text-align:left}.my-template-create-options>button:hover:not(:disabled){border-color:#c7bde5;background:#fdfcff}.my-template-create-options>button:disabled{cursor:not-allowed;opacity:.55}.my-template-create-options>button>span{grid-row:1/span 2;display:grid;width:38px;height:38px;place-items:center;border-radius:9px;color:#fff;background:var(--user-accent);font-weight:800}.my-template-create-options>button:nth-child(2)>span{background:#34766c}.my-template-create-options>button>svg{grid-column:1;grid-row:1/span 2;align-self:start}.my-template-create-options strong{grid-column:2;grid-row:1;min-width:0;font-size:14px}.my-template-create-options small{grid-column:2;grid-row:2;min-width:0;color:var(--user-muted);font-size:12px;line-height:1.45}.my-template-library-head{margin-bottom:18px}.my-template-filters{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.my-template-filters input{width:160px}.my-template-filters select{width:auto}.my-template-filters label{display:inline-flex;align-items:center;gap:5px;color:var(--user-muted);font-size:11px;white-space:nowrap}.my-template-filters label input{width:14px;height:14px;accent-color:var(--user-accent)}.my-template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));grid-gap:14px;gap:14px}.my-template-card{display:grid;overflow:hidden;border:1px solid var(--user-line);border-radius:10px;background:#fff}.my-template-card.is-deleted{opacity:.7}.my-template-card-image{position:relative;display:grid;aspect-ratio:4/5;place-items:center;overflow:hidden;color:var(--user-muted);background:#f0f1f4;font-size:12px}.my-template-card-image img{display:block;width:100%;height:100%;object-fit:contain}.my-template-card-image b{position:absolute;top:8px;left:8px;padding:4px 7px;border-radius:5px;color:#fff;background:rgb(37 39 48/.72);font-size:10px}.my-template-card-body{display:grid;grid-gap:10px;gap:10px;padding:12px}.my-template-card-body h3{margin:5px 0;color:var(--user-ink);font-size:14px}.my-template-card-body p{margin:0;color:var(--user-muted);font-size:11px;line-height:1.45}.my-template-type{color:var(--user-accent);font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.my-template-card-actions{gap:8px}.my-template-card-actions .secondary{min-height:30px;padding:5px 8px;font-size:11px}.my-template-card-actions .primary{flex:0 0 auto;width:auto;min-height:30px;padding:5px 11px;border-radius:7px;font-size:11px;text-decoration:none}.my-template-card-actions .my-template-card-menu{position:relative;margin-left:auto}.my-template-card-actions .my-template-card-menu>summary{display:grid;width:32px;min-height:30px;place-items:center;border:1px solid var(--user-line);border-radius:7px;color:var(--user-muted);background:#fff;font-size:15px;line-height:1;cursor:pointer;list-style:none}.my-template-card-actions .my-template-card-menu>summary::-webkit-details-marker{display:none}.my-template-card-actions .my-template-card-menu[open]>summary{border-color:#7760bc;color:#58458d;background:#f4f1fc}.my-template-card-actions .my-template-card-menu>div{position:absolute;right:0;bottom:calc(100% + 6px);z-index:5;display:grid;min-width:128px;padding:5px;border:1px solid var(--user-line);border-radius:9px;background:#fff;box-shadow:0 12px 30px rgb(30 35 50/.18)}.my-template-card-actions .my-template-card-menu>div>button{min-height:32px;width:100%;border:0;border-radius:7px;padding:7px 10px;color:var(--user-ink);background:transparent;font:inherit;font-size:12px;font-weight:650;text-align:left;cursor:pointer}.my-template-card-actions .my-template-card-menu>div>button:hover:not(:disabled){background:#f4f2fb}.my-template-card-actions .my-template-card-menu>div>button.text-danger{color:#aa403d}.my-template-card-actions .my-template-card-menu>div>button:disabled{cursor:not-allowed;opacity:.5}.my-template-empty{display:grid;min-height:230px;place-items:center;align-content:center;grid-gap:8px;gap:8px;color:var(--user-muted);text-align:center}.my-template-empty strong{color:var(--user-ink);font-size:15px}.my-template-empty span{font-size:12px}.my-template-clone-modal{position:fixed;z-index:30;inset:0;display:grid;place-items:center;padding:20px}.my-template-clone-backdrop{position:absolute;inset:0;border:0;background:rgb(25 28 42/.46)}.my-template-clone-card{grid-template-rows:auto auto minmax(0,1fr) auto;grid-gap:14px;gap:14px;width:min(1040px,100%);height:min(760px,calc(100dvh - 40px));max-height:calc(100dvh - 40px);overflow:hidden}.my-template-clone-card,.my-template-create-dialog{position:relative;z-index:1;display:grid;padding:22px;border-radius:12px;background:#fff;box-shadow:0 18px 60px rgb(20 25 42/.22)}.my-template-create-dialog{grid-gap:18px;gap:18px;width:min(680px,100%)}.my-template-create-dialog .my-template-create-options{margin:0}.my-template-clone-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:12px;gap:12px}.my-template-clone-grid-region{min-height:0;overflow:hidden}.my-template-clone-grid-region>.subtle{margin:0}.my-template-official-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:12px;gap:12px;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;align-content:start;padding:2px;scrollbar-gutter:stable}.my-template-official-grid>button{display:grid;min-width:0;grid-gap:7px;gap:7px;padding:8px;border:1px solid var(--user-line);border-radius:9px;color:var(--user-ink);background:#fff;text-align:left}.my-template-official-grid>button.selected{border-color:var(--user-accent);box-shadow:0 0 0 2px var(--user-accent-soft)}.my-template-official-grid>button>span{display:grid;place-items:center;width:100%;aspect-ratio:3/4;overflow:hidden;border-radius:6px;color:var(--user-muted);background:#f4f5f7}.my-template-official-grid>button img{width:100%;height:100%;object-fit:contain}.my-template-official-grid>button strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.my-template-official-grid>button small{color:var(--user-muted);font-size:11px}.my-template-clone-controls label>span{color:var(--user-muted);font-size:10px;font-weight:400}.my-template-clone-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid var(--user-line);color:var(--user-muted);font-size:12px}.my-template-edit-modal{position:fixed;z-index:31;inset:0;display:grid;place-items:center;padding:20px}.my-template-edit-card{position:relative;z-index:1;display:grid;grid-gap:18px;gap:18px;width:min(980px,100%);max-height:calc(100dvh - 40px);overflow-y:auto;padding:22px;border-radius:12px;background:#fff;box-shadow:0 18px 60px rgb(20 25 42/.22)}.my-template-edit-card>footer,.my-template-edit-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.my-template-edit-card h2{margin:5px 0 0;color:var(--user-ink);font-size:19px}.my-template-edit-card>header p,.my-template-edit-note{margin:6px 0 0;color:var(--user-muted);font-size:12px;line-height:1.55}.my-template-edit-card>label{display:grid;grid-gap:7px;gap:7px;color:var(--user-ink);font-size:12px;font-weight:700}.my-template-edit-card>label input{width:100%;min-height:38px;border:1px solid #dfe2e8;border-radius:8px;padding:8px 10px;color:var(--user-ink);font:inherit}.my-template-edit-card>footer{align-items:center;padding-top:14px;border-top:1px solid var(--user-line);color:var(--user-muted);font-size:12px}.my-template-edit-card>footer>div{display:flex;gap:8px;flex-wrap:wrap}.my-template-edit-card .primary{width:auto;min-height:36px;padding:8px 13px;border-radius:8px;background:var(--user-accent);color:#fff}.smart-erase-header{align-items:center}.smart-erase-steps{display:flex;max-width:760px;gap:0;margin:0 auto 18px;padding:0;list-style:none}.smart-erase-steps li{position:relative;display:flex;flex:1 1;align-items:center;gap:8px;color:var(--user-muted);font-size:12px;font-weight:700}.smart-erase-steps li:not(:last-child):after{position:absolute;top:15px;left:34px;right:8px;height:1px;background:#dfe2e8;content:""}.smart-erase-steps span{position:relative;z-index:1;display:grid;width:30px;height:30px;place-items:center;border:1px solid #d8dce4;border-radius:50%;background:#fff}.smart-erase-steps li.is-active{color:var(--user-ink)}.smart-erase-steps li.is-active span{border-color:#5969a8;color:#fff;background:#5969a8}.smart-erase-workbench{grid-template-columns:minmax(0,1.55fr) minmax(280px,.72fr);grid-gap:18px;gap:18px;align-items:stretch}.smart-erase-editor-panel{display:grid;grid-gap:18px;gap:18px;min-width:0}.smart-erase-result-panel{display:grid;align-content:start;grid-gap:14px;gap:14px;min-width:0;padding:16px;border:1px solid #e1e4ec;border-radius:10px;background:#fafbfe}.smart-erase-step{display:grid;grid-template-columns:34px minmax(0,1fr);grid-gap:13px;gap:13px;align-items:start}.smart-erase-step>span{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;color:#fff;background:#5969a8;font-size:13px;font-weight:800}.smart-erase-step>div{display:grid;grid-gap:10px;gap:10px;min-width:0}.smart-erase-step strong{color:var(--user-ink);font-size:14px}.smart-erase-step p{margin:-4px 0 0;color:var(--user-muted);font-size:12px;line-height:1.5}.smart-erase-submit{border-color:#d5daeb;background:#fafbff}.smart-erase-submit .primary{min-width:138px;justify-content:center}.smart-erase-selection-preview{display:grid;grid-gap:9px;gap:9px;min-height:220px;align-content:start}.smart-erase-selection-preview strong{color:var(--user-ink);font-size:15px}.smart-erase-selection-preview p{margin:0;color:var(--user-muted);font-size:12px;line-height:1.6}.smart-erase-selection-preview img{display:block;width:100%;max-height:min(42dvh,360px);border:1px solid #e0e4eb;border-radius:8px;object-fit:contain;background:#f0f1f4}.smart-erase-selection-preview small{color:#26714f;font-size:12px;font-weight:700}.smart-erase-result{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.8fr);grid-gap:16px;gap:16px;align-items:center;padding:17px;border:1px solid #c8dfd2;border-radius:10px;background:#f8fcf9}.smart-erase-result>div:first-child{display:grid;grid-gap:6px;gap:6px}.smart-erase-result strong{color:#21633f;font-size:14px}.smart-erase-result p{margin:0;color:#5e7666;font-size:12px;line-height:1.5}.smart-erase-result>img{display:block;width:100%;max-height:380px;border:1px solid #c9ddd0;border-radius:8px;object-fit:contain;background:#fff}.smart-erase-result>div:last-child{grid-column:1/-1}.smart-erase-history{display:grid;grid-gap:16px;gap:16px}.smart-erase-history>summary{font-weight:750}.smart-erase-history>div:last-child{display:grid;grid-gap:9px;gap:9px}.smart-erase-history article{display:grid;grid-template-columns:minmax(0,1fr) 72px;grid-gap:12px;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--user-line)}.smart-erase-history article>div{display:grid;grid-gap:4px;gap:4px;min-width:0}.smart-erase-history article strong{color:var(--user-ink);font-size:12px}.smart-erase-history article small,.smart-erase-history article span{overflow:hidden;color:var(--user-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.smart-erase-history article small{color:#a0413c}.smart-erase-history article a{display:block;width:72px;height:56px;overflow:hidden;border-radius:6px;background:#f0f1f4}.smart-erase-history article img{width:100%;height:100%;object-fit:cover}.image-tools-section{padding-top:2px;border-top:0}.primary-generation-grid .ai-tool-card{min-height:132px}.image-tools-section .ai-tool-grid{max-width:calc(50% - 7px)}.smart-erase-page{max-width:none;height:calc(100dvh - 96px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;grid-gap:12px;gap:12px;overflow:hidden}.smart-erase-page>.smart-erase-header{max-width:none;min-height:0;margin:0}.smart-erase-page>.status.error{margin:0}.smart-erase-workbench{display:grid;grid-template-columns:minmax(220px,270px) minmax(0,1fr);min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}.smart-erase-source-rail{display:grid;align-content:start;grid-gap:10px;gap:10px;min-width:0;padding:16px;overflow:hidden;border:1px solid var(--user-line);border-radius:12px 0 0 12px;background:#fff}.smart-erase-source-rail>img{display:block;width:100%;max-height:min(56dvh,560px);border:1px solid #e0e4eb;border-radius:8px;object-fit:contain;background:#f0f1f4}.smart-erase-source-rail>strong{overflow:hidden;color:var(--user-ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.smart-erase-source-upload{display:grid;grid-gap:9px;gap:9px;align-content:start}.smart-erase-source-upload strong{color:var(--user-ink);font-size:15px}.smart-erase-source-upload p{margin:0;color:var(--user-muted);font-size:12px;line-height:1.55}.smart-erase-change-source{position:relative;justify-content:center;cursor:pointer}.smart-erase-change-source input{position:absolute;inset:0;width:100%;cursor:pointer;opacity:0}.smart-erase-stage{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;padding:0 0 0 18px;overflow:hidden}.smart-erase-stage .smart-erase-steps{width:100%;max-width:none;margin:0 0 10px}.smart-erase-empty-stage,.smart-erase-result{min-height:0;height:100%}.smart-erase-empty-stage{display:grid;place-content:center;grid-gap:8px;gap:8px;border:1px solid var(--user-line);border-radius:0 12px 12px 0;color:var(--user-ink);background:#fff;text-align:center}.smart-erase-empty-stage strong{font-size:18px}.smart-erase-empty-stage p{margin:0;color:var(--user-muted);font-size:13px}.smart-erase-mask-editor{grid-template-rows:auto auto minmax(0,1fr) auto;height:100%;gap:8px;padding:12px;overflow:hidden;border-radius:0 12px 12px 0}.smart-erase-mask-editor .shared-mask-editor__header h2{font-size:15px}.smart-erase-mask-editor .shared-mask-editor__header p{display:none}.smart-erase-mask-editor .shared-mask-editor__toolbar{gap:6px 10px;padding:6px 0}.smart-erase-mask-editor .shared-mask-editor__toolbar button{min-height:28px;padding:4px 7px}.smart-erase-mask-editor .shared-mask-editor__brush-size input{width:78px}.smart-erase-mask-editor .shared-mask-editor__body{grid-template-columns:minmax(0,1.7fr) minmax(210px,.8fr);min-height:0;height:100%;gap:10px}.smart-erase-mask-editor .shared-mask-editor__panel{min-height:0;grid-template-rows:auto minmax(0,1fr) auto auto}.smart-erase-mask-editor .shared-mask-editor__preview-wrap,.smart-erase-mask-editor .shared-mask-editor__viewport{min-height:0;height:100%}.smart-erase-mask-editor .shared-mask-editor__preview{max-height:100%}.smart-erase-mask-editor .shared-mask-editor__footer{padding-top:7px}.smart-erase-mask-editor .shared-mask-editor__footer>p{display:none}.smart-erase-mask-editor .shared-mask-editor__footer>div{width:100%}.smart-erase-mask-editor .shared-mask-editor__confirm{min-height:30px;padding:5px 9px}.smart-erase-selection-actions{display:grid;grid-gap:8px;gap:8px}.smart-erase-selection-actions .smart-erase-submit{align-items:start;gap:8px;padding:9px}.smart-erase-selection-actions .smart-erase-submit .primary{width:100%;min-width:0}.smart-erase-mode-workspace{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;height:100%;grid-gap:10px;gap:10px}.smart-erase-mode-picker{display:grid;grid-gap:10px;gap:10px;padding:12px;border:1px solid #d8ddef;border-radius:10px;background:#fafbff}.smart-erase-mode-picker-head{display:grid;grid-gap:3px;gap:3px}.smart-erase-mode-picker-head strong{color:var(--user-ink);font-size:14px}.smart-erase-category-picker>p,.smart-erase-mode-picker-head p{margin:0;color:var(--user-muted);font-size:12px;line-height:1.45}.smart-erase-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px;gap:8px}.smart-erase-mode-options label{display:flex;gap:8px;min-width:0;padding:9px;border:1px solid #dfe2e8;border-radius:8px;background:#fff;cursor:pointer}.smart-erase-mode-options label.is-selected{border-color:#8e9bd0;background:#f2f4ff}.smart-erase-mode-options input{width:15px;height:15px;margin:2px 0 0;accent-color:#5969a8}.smart-erase-mode-options span{display:grid;grid-gap:3px;gap:3px}.smart-erase-mode-options strong{color:var(--user-ink);font-size:12px}.smart-erase-mode-options small{color:var(--user-muted);font-size:11px;line-height:1.35}.smart-erase-category-picker{display:grid;grid-gap:7px;gap:7px;margin:0;padding:0;border:0}.smart-erase-category-picker legend{color:var(--user-ink);font-size:12px;font-weight:750}.smart-erase-category-picker>div{display:flex;flex-wrap:wrap;gap:7px}.smart-erase-category-picker label{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid #dfe2e8;border-radius:99px;color:var(--user-muted);background:#fff;font-size:12px;cursor:pointer}.smart-erase-category-picker label.is-selected{border-color:#8e9bd0;color:#45538b;background:#f2f4ff}.smart-erase-category-picker input{width:14px;height:14px;accent-color:#5969a8}.smart-erase-auto-submit{display:grid;align-content:center;grid-gap:12px;gap:12px;height:100%;padding:20px;border:1px solid #d5daeb;border-radius:0 12px 12px 0;background:#fafbff}.smart-erase-auto-submit>div{display:grid;grid-gap:6px;gap:6px}.smart-erase-auto-submit strong{color:var(--user-ink);font-size:15px}.smart-erase-auto-submit p{margin:0;color:var(--user-muted);font-size:13px;line-height:1.55}.smart-erase-auto-submit .primary{justify-self:start}.smart-erase-result{grid-template-columns:minmax(220px,.7fr) minmax(0,1fr);align-content:center;padding:18px;border-radius:0 12px 12px 0}.smart-erase-result>img{max-height:min(58dvh,580px)}.smart-erase-page{position:relative}.final-erase-workspace{grid-template-rows:minmax(0,1fr);padding-bottom:0}.final-erase-workspace .smart-erase-source-rail{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:10px}.final-erase-workspace .product-visual{flex:1 1 auto;min-height:160px;max-height:340px;width:100%;aspect-ratio:auto;margin:0}.final-erase-workspace .product-visual .file-input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:pointer;z-index:2}.final-erase-workspace .product-visual>img{width:100%;height:100%;min-height:0;object-fit:contain}.final-erase-workspace .product-visual-overlay{position:absolute;inset:auto 0 0;display:grid;grid-gap:3px;gap:3px;padding:9px;background:rgb(25 29 42/.72)}.final-erase-workspace .product-visual-overlay strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.final-erase-workspace .product-visual-overlay small{font-size:11px}.final-erase-workspace .upload-copy{display:grid;grid-gap:10px;gap:10px;padding:14px;text-align:center}.final-erase-workspace .upload-copy small{font-size:11px}.final-erase-workspace .smart-erase-mode-picker{flex:0 0 auto;padding:0;border:0;background:none}.final-erase-workspace .smart-erase-mode-options{gap:5px}.final-erase-workspace .smart-erase-mode-options label{align-items:center;gap:5px;padding:7px 5px;border-radius:99px}.final-erase-workspace .smart-erase-mode-options input{width:12px;height:12px;margin:0}.final-erase-workspace .smart-erase-category-picker>div{gap:5px;margin-top:5px}.final-erase-workspace .smart-erase-category-picker label{gap:4px;padding:5px 7px;font-size:11px}.final-erase-workspace .smart-erase-source-rail>.primary{flex:0 0 auto;margin-top:auto}.final-erase-workspace .smart-erase-stage{grid-template-rows:minmax(0,1fr);padding-left:14px}.erase-editor-retained{min-width:0;min-height:0;height:100%}.erase-editor-retained[hidden]{display:none!important}.final-erase-workspace .smart-erase-result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px solid var(--user-line);border-radius:10px;background:#fff;padding:14px}.final-erase-workspace .smart-erase-result>img{flex:1 1;min-height:0;width:100%;max-height:100%;object-fit:contain;border:0}.final-erase-workspace .smart-erase-result .workspace-empty{min-height:0;height:100%}.final-erase-workspace .smart-erase-result .workspace-empty strong{color:var(--user-muted)}.final-erase-workspace .smart-erase-result .erase-quality-notice{flex:none;width:100%;margin:0;padding:10px 12px;color:var(--user-ink);background:var(--user-canvas);border-radius:8px;font-size:14px;line-height:1.5}.final-erase-workspace .smart-erase-result .erase-quality-notice.is-warning{color:#704a0c;background:#fff5df}.final-erase-workspace .smart-erase-result .erase-result-actions{display:flex;flex:none;justify-content:center;gap:8px;flex-wrap:wrap}.erase-result-actions button[aria-pressed=true]{border-color:var(--user-accent);background:var(--user-accent-soft)}.mask-workspace-layout{height:100%;min-height:0;padding:12px;gap:8px;grid-template-rows:minmax(0,1fr) auto auto;overflow:hidden}.mask-workspace-layout .shared-mask-editor__header{display:none}.mask-workspace-layout .shared-mask-editor__body{grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr));min-height:0;gap:12px}.mask-workspace-layout .shared-mask-editor__panel{grid-template-rows:24px minmax(0,1fr) 20px;min-height:0;gap:6px}.mask-workspace-layout .shared-mask-editor__preview-wrap,.mask-workspace-layout .shared-mask-editor__viewport{height:100%;min-height:0}.mask-workspace-layout .shared-mask-editor__preview{position:absolute;top:0;left:0;display:block;max-width:none;max-height:none;transform-origin:top left}.mask-workspace-layout .shared-mask-editor__selection-status{margin:0;font-size:11px}.mask-workspace-layout .shared-mask-editor__toolbar{grid-row:2;flex-wrap:nowrap;gap:8px;padding:8px 0 0;border-bottom:0}.mask-workspace-layout .shared-mask-editor__tool-group,.mask-workspace-layout .shared-mask-editor__zoom{flex-wrap:nowrap;gap:3px}.mask-workspace-layout .shared-mask-editor__toolbar button{min-height:30px;padding:4px 6px;font-size:11px;white-space:nowrap}.mask-workspace-layout .shared-mask-editor__toolbar .shared-mask-editor__confirm{min-width:164px;min-height:40px;margin-left:auto;padding:8px 16px;border-color:var(--user-accent);border-radius:8px;color:#fff;background:var(--user-accent);box-shadow:0 5px 12px rgb(118 87 201/.22);font-size:12px;font-weight:750}.mask-workspace-layout .shared-mask-editor__brush-size{gap:3px;font-size:11px}.mask-workspace-layout .shared-mask-editor__brush-size input{width:58px}.mask-workspace-layout .shared-mask-editor__brush-size output,.mask-workspace-layout .shared-mask-editor__zoom output{min-width:31px;font-size:10px}.mask-workspace-layout .shared-mask-editor__footer{grid-row:3;padding:0;border:0}.mask-workspace-layout .shared-mask-editor__footer>p{display:none}.mask-workspace-layout .shared-mask-editor__footer:not(:has(.shared-mask-editor__validation)){display:none}.final-erase-workspace .erase-step-workspace{position:relative;display:flex;flex-direction:column;gap:10px;overflow:visible}.erase-step-workspace>.erase-editor-retained,.erase-step-workspace>.smart-erase-result{flex:1 1;min-height:0;height:auto;overflow:hidden}.erase-settings{flex:none;display:grid;grid-gap:8px;gap:8px}.erase-settings>.primary{width:auto;justify-self:start;padding:8px 18px}.erase-settings .smart-erase-mode-options{max-width:320px}@media (min-width:901px){.generation-layout-v2{height:calc(100dvh - 96px);min-height:0;overflow:hidden}.final-erase-workspace .product-visual{flex:0 0 auto;height:clamp(180px,26dvh,240px);max-height:none}.generation-workspace:has(>.template-selection-workspace){display:flex;flex-direction:column;overflow:hidden}.template-selection-workspace{display:flex;flex:1 1;flex-direction:column;min-height:0}.template-selection-workspace>:not(.template-library-section){flex:none}.template-selection-workspace>.detail-page-plan{flex:1 1;min-height:0;overflow-y:auto}.template-library-section{display:flex;flex-direction:column;flex:1 1;min-height:0}.template-library-section>.library-heading{flex:none;margin-bottom:6px}.template-library-section>.workspace-template-grid{flex:1 1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;padding:3px;scrollbar-gutter:stable}.workspace-template-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.template-selection-workspace .workspace-heading{padding-bottom:10px}.template-selection-workspace .selected-template-strip{margin:10px 0 12px;padding:8px}.background-selection-note{gap:4px;margin-top:8px;padding:6px 10px}.background-selection-note .field{margin:0}.generation-product-panel .product-visual-field .product-visual{height:clamp(200px,34dvh,280px);min-height:0}.generation-product-panel .product-visual-field .product-visual>img{min-height:0}.background-generation-page .generation-product-panel{gap:10px}.background-generation-page .template-selection-workspace .selected-template-strip{grid-template-columns:auto minmax(0,1fr) auto auto;margin:6px 0;padding:2px 6px}.background-generation-page .background-selection-note{display:none}.background-generation-page .product-visual-field .product-visual{height:clamp(140px,22dvh,190px);min-height:0}.background-generation-page .product-visual>img{min-height:0}.background-generation-page .background-intent-option input{width:15px;height:15px;min-height:15px;padding:0}.background-generation-page .instruction-field{margin:0;gap:5px}.background-generation-page .instruction-field textarea{min-height:54px;height:54px}}@media (min-width:961px) and (max-width:1250px){.final-erase-workspace .smart-erase-workbench{grid-template-columns:220px minmax(0,1fr)}.mask-workspace-layout .shared-mask-editor__toolbar{gap:4px}.mask-workspace-layout .shared-mask-editor__toolbar button:not(.shared-mask-editor__confirm){padding:4px}.mask-workspace-layout .shared-mask-editor__confirm{min-width:150px}.mask-workspace-layout .shared-mask-editor__brush-size input{width:40px}}@media (max-width:960px){.final-erase-workspace .smart-erase-workbench{overflow:visible;gap:12px}.final-erase-workspace .smart-erase-stage{padding:0;min-height:460px}.final-erase-workspace .product-visual{height:260px;flex:none}.mask-workspace-layout{min-height:460px}.mask-workspace-layout .shared-mask-editor__toolbar{flex-wrap:wrap}}.smart-erase-history{position:relative;z-index:3;width:auto;min-height:0;margin:0;padding:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}.smart-erase-history>summary{display:flex;align-items:center;gap:6px;min-height:34px;padding:6px 12px;border:1px solid var(--user-line);border-radius:8px;color:var(--user-ink);background:#fff;font-size:13px;font-weight:650;cursor:pointer;list-style:none}.smart-erase-history>summary::-webkit-details-marker{display:none}.smart-erase-history>summary:after{content:"\25be";color:var(--user-muted);font-size:10px}.smart-erase-history[open]>summary{border-color:#7760bc;color:#58458d;background:#f4f1fc}.smart-erase-history>div.smart-erase-history-panel{position:absolute;top:calc(100% + 8px);right:0;display:grid;grid-gap:12px;gap:12px;width:min(430px,84vw);max-height:58dvh;padding:14px;overflow:auto;border:1px solid var(--user-line);border-radius:10px;background:#fff;box-shadow:0 12px 34px rgb(30 35 50/.16)}.smart-erase-history-panel>a{justify-self:start}@media (max-width:960px){.smart-erase-page{height:auto;overflow:visible}.smart-erase-workbench{grid-template-columns:1fr;overflow:visible}.smart-erase-empty-stage,.smart-erase-mask-editor,.smart-erase-result,.smart-erase-source-rail{border-radius:12px}.smart-erase-stage{padding:16px 0 0;overflow:visible}.smart-erase-mask-editor{height:auto}.smart-erase-mask-editor .shared-mask-editor__viewport{min-height:420px}.image-tools-section .ai-tool-grid{max-width:none}.my-template-creation-setup{grid-template-columns:minmax(240px,330px) minmax(0,1fr)}}@media (max-width:760px){.my-template-quota{grid-template-columns:1fr 1fr}.my-template-quota>div:first-child{grid-column:1/-1}.my-template-composer,.my-template-library,.smart-erase-history,.smart-erase-workbench{padding:15px}.my-template-composer-head,.my-template-library-head,.my-template-targets-head,.smart-erase-header{display:grid}.my-template-background-preview,.my-template-create-options,.smart-erase-result,.smart-erase-workbench{grid-template-columns:1fr}.smart-erase-steps{overflow:hidden}.smart-erase-steps strong{font-size:10px}.my-template-library-head{gap:12px}.my-template-filters{justify-content:flex-start}.my-template-filters input{width:100%}.my-template-filters select{flex:1 1 130px;width:auto}.my-template-clone-controls{grid-template-columns:1fr}.my-template-clone-card>footer,.my-template-edit-card>footer{align-items:flex-start;flex-direction:column}.my-template-clone-card>footer .primary,.my-template-edit-card>footer .primary{width:100%}.my-template-smart-erase-action,.smart-erase-submit{align-items:flex-start;flex-direction:column}.my-template-smart-erase-action .secondary,.smart-erase-submit .primary{width:100%}.smart-erase-result>div:last-child{grid-column:auto}}@media (max-width:700px){.my-template-creation-setup{grid-template-columns:minmax(0,1fr)}.my-template-creation-media{width:100%}.my-template-background-targets .mask-workspace-layout,.my-template-jewelry-targets .mask-workspace-layout{min-height:520px}}.image-tool-page{height:calc(100dvh - 96px);min-height:0}.image-tool-page .generation-layout-v2{height:100%}.image-tool-source-rail{align-self:stretch;display:flex;overflow:hidden}.image-tool-source-rail .product-visual{flex:1 1 180px;height:auto;min-height:180px;max-height:none}.image-tool-source-rail .product-visual:has(img){min-height:260px}.image-tool-source-rail .product-visual .file-input{position:absolute;inset:0;z-index:2;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.image-tool-source-rail .product-visual>img{height:100%;min-height:0}.image-tool-source-rail .upload-copy{gap:8px}.image-tool-source-rail .upload-copy>span:not(.upload-icon){color:var(--user-muted);font-size:12px}.image-tool-source-rail .upload-copy small{max-width:240px;line-height:1.45}.image-tool-settings{display:grid;flex:0 1 auto;grid-gap:13px;gap:13px;min-width:0;min-height:0;overflow:auto;padding:1px}.image-tool-advanced-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:7px 10px;border:1px solid var(--user-line);border-radius:8px;color:var(--user-ink);background:#fafbfc;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.image-tool-advanced-toggle:hover{border-color:#cfc3f3;color:var(--user-accent)}.image-tool-advanced-toggle span[aria-hidden]{color:var(--user-muted);font-size:12px;line-height:1}.image-tool-advanced-summary{color:var(--user-muted);font-size:11px}.image-tool-advanced-body{display:grid;grid-gap:13px;gap:13px}.image-tool-control-group{display:grid;grid-gap:7px;gap:7px}.image-tool-color,.image-tool-control-group>span,.image-tool-dimension-inputs label,.image-tool-range{color:var(--user-ink);font-size:12px;font-weight:700}.image-tool-control-group small{color:var(--user-muted);font-size:11px}.image-tool-clarity-note{grid-template-columns:minmax(0,1fr);min-width:0;flex-shrink:0}.image-tool-clarity-note>small,.image-tool-clarity-note>span{min-width:0;white-space:normal;overflow-wrap:break-word}.image-tool-clarity-note>small{font-size:12px;line-height:1.6}.image-tool-pills,.image-tool-segmented{display:flex;flex-wrap:wrap;gap:6px}.image-tool-pills button,.image-tool-platforms button,.image-tool-segmented button{min-height:32px;border:1px solid var(--user-line);border-radius:7px;color:var(--user-ink);background:#fff;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.image-tool-segmented button{flex:1 1;padding:7px 8px}.image-tool-pills button{padding:6px 10px}.image-tool-pills button.is-selected,.image-tool-platforms button.is-selected,.image-tool-segmented button.is-selected{border-color:#7760bc;color:#58458d;background:#f4f1fc;box-shadow:inset 0 0 0 1px #e0d8f5}.image-tool-pills button:disabled,.image-tool-platforms button:disabled,.image-tool-segmented button:disabled{cursor:not-allowed;opacity:.58}.image-tool-dimensions{grid-template-columns:1fr auto;align-items:baseline;padding:8px 10px;border:1px solid var(--user-line);border-radius:8px;background:#fafbfc}.image-tool-dimensions strong{color:var(--user-ink);font-size:13px}.image-tool-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:6px;gap:6px}.image-tool-platforms button{display:grid;grid-gap:2px;gap:2px;padding:7px;text-align:left}.image-tool-platforms button small{color:inherit;font-size:10px;font-weight:500}.image-tool-dimension-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);grid-gap:6px;gap:6px;align-items:end}.image-tool-dimension-inputs label{display:grid;grid-gap:5px;gap:5px}.image-tool-dimension-inputs input{width:100%;min-height:33px;border:1px solid var(--user-line);border-radius:7px;padding:6px 7px;color:var(--user-ink);background:#fff}.image-tool-dimension-inputs>span{padding-bottom:8px;color:var(--user-muted)}.image-tool-range{display:grid;grid-template-columns:1fr auto;grid-gap:7px;gap:7px;align-items:center}.image-tool-range input{grid-column:1/-1;width:100%;accent-color:var(--user-accent)}.image-tool-color{display:flex;align-items:center;justify-content:space-between;gap:8px}.image-tool-color input{width:32px;height:28px;padding:2px;border:1px solid var(--user-line);border-radius:6px;background:#fff}.image-tool-submit{width:100%;margin-top:auto;min-height:42px}.image-tool-source-rail .image-tool-submit{margin-top:0}.image-tool-page .generation-progress-panel{padding:15px 20px}.image-tool-result-workspace{display:grid;grid-template-rows:auto minmax(0,1fr);grid-gap:14px;gap:14px;overflow:hidden}.image-tool-result-workspace>.status{margin:0}.image-tool-result-workspace .workspace-heading{padding-bottom:12px}.image-tool-result-workspace .secondary{min-height:34px;border-radius:8px;text-decoration:none}.image-tool-result-workspace .workspace-empty{min-height:0;height:100%}.image-tool-crop-preview,.image-tool-output,.image-tool-ready-preview{display:grid;min-width:0;min-height:0;height:100%;align-items:center;justify-items:center;grid-gap:12px;gap:12px}.image-tool-ready-preview{grid-template-columns:minmax(0,1fr) minmax(180px,.58fr);padding:12px;border:1px solid var(--user-line);border-radius:10px;background:#fafbfc}.image-tool-ready-preview>img{width:100%;height:100%;min-height:0;max-height:54dvh;object-fit:contain;border-radius:8px;background:#fff}.image-tool-ready-preview>div{display:grid;grid-gap:7px;gap:7px;align-content:center;max-width:260px}.image-tool-ready-preview strong{color:var(--user-ink);font-size:14px;line-height:1.45}.image-tool-ready-preview span{color:var(--user-muted);font-size:12px;line-height:1.55}.image-tool-output.is-transparent,.image-tool-ready-preview.is-transparent{background-color:#fff;background-image:linear-gradient(45deg,#eef0f4 25%,transparent 0),linear-gradient(-45deg,#eef0f4 25%,transparent 0),linear-gradient(45deg,transparent 75%,#eef0f4 0),linear-gradient(-45deg,transparent 75%,#eef0f4 0);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.image-tool-output{grid-template-rows:minmax(0,1fr) auto;padding:12px;border:1px solid var(--user-line);border-radius:10px}.image-tool-output>img{min-width:0;min-height:0;width:100%;height:100%;max-height:56dvh;object-fit:contain;border-radius:7px}.image-tool-output footer{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;color:var(--user-muted);font-size:12px}.image-tool-output footer .primary{min-height:36px;padding:8px 13px;border-radius:8px;text-decoration:none}.image-tool-crop-preview .tool-canvas{width:min(100%,680px);min-height:0;height:min(52dvh,560px);justify-self:center;border:1px solid var(--user-line);border-radius:10px}.image-tool-crop-preview .tool-canvas img{max-height:none}.image-tool-crop-preview p{margin:0;color:var(--user-muted);font-size:12px;text-align:center}.image-tool-processing .candidate-spinner{width:34px;height:34px;border-width:3px}.image-tool-terminal .candidate-status-icon{width:42px;height:42px;font-size:20px}@media (max-width:900px){.image-tool-page,.image-tool-page .generation-layout-v2{height:auto}.image-tool-source-rail{overflow:visible}.image-tool-source-rail .product-visual{flex-basis:260px;max-height:none}.image-tool-result-workspace{min-height:520px;overflow:visible}.image-tool-ready-preview{grid-template-columns:1fr}}@media (max-width:600px){.image-tool-platforms{grid-template-columns:1fr}.image-tool-ready-preview{min-height:420px}.image-tool-output footer{align-items:flex-start;flex-direction:column}}.recent-result-strip{width:100%;max-width:560px;margin-top:20px;padding-top:16px;border-top:1px solid var(--user-line);text-align:left}.recent-result-strip>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.recent-result-strip>header strong{color:var(--user-ink);font-size:13px}.recent-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px}.recent-result-grid a{display:grid;grid-gap:5px;gap:5px;text-decoration:none}.recent-result-grid img{width:100%;aspect-ratio:1/1;border:1px solid var(--user-line);border-radius:8px;object-fit:cover;background:#f0f1f4}.recent-result-grid small{color:var(--user-muted);font-size:11px;text-align:center}.image-tool-business-empty{position:relative;overflow:hidden}.image-tool-business-empty.is-transparent{background-color:#fff;background-image:linear-gradient(45deg,#f0f1f4 25%,transparent 0),linear-gradient(-45deg,#f0f1f4 25%,transparent 0),linear-gradient(45deg,transparent 75%,#f0f1f4 0),linear-gradient(-45deg,transparent 75%,#f0f1f4 0);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.image-tool-business-empty.is-transparent:before{content:"";position:absolute;inset:20%;border-radius:50%;background:rgb(255 255 255/.72);filter:blur(24px)}.image-tool-business-empty>*{position:relative}.image-tool-crop-preview{grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;min-height:0;align-items:stretch}.crop-editor-stage{position:relative;display:grid;width:100%;min-height:0;height:100%;place-items:center;overflow:hidden;border:1px solid var(--user-line);border-radius:10px;background:#e8e9ed;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.crop-editor-source{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform-origin:center;pointer-events:none}.crop-target-frame{position:absolute;max-width:84%;max-height:84%;overflow:hidden;border:2px solid #fff;outline:1px solid rgb(24 30 42/.42);box-shadow:0 0 0 9999px rgb(22 27 38/.34),0 0 0 4px rgb(255 255 255/.18);pointer-events:none}.crop-editor-stage.is-fit .crop-target-frame{display:grid;place-items:center;box-shadow:0 8px 28px rgb(24 30 42/.22)}.crop-target-frame img{width:100%;height:100%;object-fit:contain;pointer-events:none}.image-tool-simple-progress{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.image-tool-three-step-progress{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr)}.image-tool-simple-progress .generation-step-action,.image-tool-three-step-progress .generation-step-action{cursor:default}.image-tool-simple-progress .warning,.image-tool-three-step-progress .warning{color:#b15c42}.image-tool-simple-progress .warning .step-marker,.image-tool-three-step-progress .warning .step-marker{border-color:#dba58f;color:#fff;background:#b15c42}.image-tool-persistent-canvas{display:grid;min-width:0;min-height:0;height:100%;overflow:hidden;border:1px solid var(--user-line);border-radius:10px;background:#fff}.image-tool-persistent-canvas.is-cutout.is-transparent{background-color:#fff;background-image:linear-gradient(45deg,#f0f1f4 25%,transparent 0),linear-gradient(-45deg,#f0f1f4 25%,transparent 0),linear-gradient(45deg,transparent 75%,#f0f1f4 0),linear-gradient(-45deg,transparent 75%,#f0f1f4 0);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.image-tool-persistent-canvas.is-cutout.is-white{background:#fff}.image-tool-persistent-canvas>.workspace-empty{min-height:100%;background:transparent}.image-tool-persistent-canvas>.image-tool-output{border:0;border-radius:0;background:transparent}.image-tool-scale-note{margin-top:-8px;color:var(--user-muted);font-size:10px;line-height:1.4}.crop-export-result{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;width:100%;padding:8px;border:1px solid var(--user-line);border-radius:9px;background:#fafbfc}.crop-export-result img{width:52px;height:52px;border-radius:6px;object-fit:cover;background:#fff}.crop-export-result span{color:var(--user-muted);font-size:12px}.crop-export-result .primary{min-height:34px;padding:7px 11px;border-radius:7px;text-decoration:none}.image-tool-result-workspace:has(.crop-export-result){grid-template-rows:auto minmax(0,1fr) auto}.preview-categories{display:flex;flex-wrap:wrap;gap:8px 12px;grid-column:1/-1;padding:10px;border:1px solid var(--user-line);border-radius:8px}.preview-categories legend{padding:0 5px;color:var(--user-muted);font-size:11px}.preview-categories label{display:flex;flex-direction:row;align-items:center;gap:5px}.image-tool-compact-grid{grid-gap:10px;gap:10px}.image-tool-home-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;min-width:0;min-height:76px;align-items:center;grid-gap:9px;gap:9px;padding:12px;border:1px solid var(--user-line);border-radius:9px;color:var(--user-ink);background:#fff;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.image-tool-home-card:hover{border-color:#c9bee8;box-shadow:0 7px 20px rgb(30 35 50/.07);transform:translateY(-1px)}.image-tool-home-card.is-disabled{color:var(--user-muted);background:#f6f7f8;cursor:not-allowed;opacity:.72}.image-tool-home-card.is-disabled:hover{border-color:var(--user-line);box-shadow:none;transform:none}.image-tool-home-card .ai-tool-mark{width:34px;height:34px}.image-tool-home-copy{display:grid;min-width:0;grid-gap:3px;gap:3px}.image-tool-home-copy h3,.image-tool-home-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.image-tool-home-copy h3{margin:0;font-size:13px}.image-tool-home-copy small{color:var(--user-muted);font-size:10px}.image-tool-home-arrow{color:var(--user-accent);font-size:16px}.history-page-header{max-width:none;align-items:center}.history-total{padding:7px 10px;border:1px solid var(--user-line);border-radius:999px;color:var(--user-muted);background:#fff;font-size:12px}.history-filters{display:grid;grid-gap:12px;gap:12px;margin-bottom:18px;padding:14px 16px;border:1px solid var(--user-line);border-radius:10px;background:#fff}.history-filters>div{display:grid;grid-template-columns:54px minmax(0,1fr);grid-gap:10px;gap:10px;align-items:start}.history-filters strong{padding-top:7px;font-size:12px}.history-filter-options{display:flex;flex-wrap:wrap;gap:6px}.history-filter-options button{min-height:30px;padding:5px 10px;border:1px solid var(--user-line);border-radius:999px;color:var(--user-muted);background:#fff;font-size:12px;cursor:pointer}.history-filter-options button.is-selected{border-color:#7760bc;color:#58458d;background:#f4f1fc}.history-page-list{display:grid;grid-gap:10px;gap:10px;min-height:240px}.history-record{display:grid;grid-template-columns:52px minmax(0,1fr) auto;grid-gap:12px;gap:12px;align-items:center;padding:9px 14px;border:1px solid var(--user-line);border-radius:10px;background:#fff}.history-record-thumb{display:grid;width:52px;height:52px;place-items:center;overflow:hidden;border-radius:8px;color:var(--user-accent);background:#f0f1f4;text-decoration:none}.history-record-thumb img{width:100%;height:100%;object-fit:cover}.history-record-main{display:grid;min-width:0;grid-gap:4px;gap:4px}.history-record-main>div{display:flex;align-items:center;gap:8px}.history-record-main strong{font-size:14px}.history-record-main p{display:flex;flex-wrap:wrap;gap:0 2px;margin:0;color:var(--user-muted);font-size:11px}.history-status{padding:3px 7px;border-radius:999px;color:#716f77;background:#f0f1f3;font-size:10px}.history-status.is-succeeded{color:#34705e;background:#eaf6f1}.history-status.is-processing,.history-status.is-queued{color:#8a6824;background:#fff5dc}.history-status.is-cancelled,.history-status.is-failed,.history-status.is-unknown{color:#9b4646;background:#fcecec}.history-record-actions{display:flex;align-items:center;gap:7px}.history-record-actions a{flex:0 0 auto;width:auto;min-height:34px;padding:7px 12px;border-radius:7px;text-decoration:none;white-space:nowrap}.history-list-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.history-list-bar .history-pagination{margin:0}.history-filter-options button.history-filter-more{border-style:dashed;color:var(--user-muted)}.history-filter-options button.history-filter-more:after{content:" \25be";font-size:9px}.history-filter-options button.history-filter-more[aria-expanded=true]:after{content:" \25b4"}@media (max-width:1100px){.image-tool-compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:700px){.image-tool-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-record{grid-template-columns:52px minmax(0,1fr)}.history-record-actions{grid-column:2;justify-content:flex-start}.history-list-bar{align-items:flex-start;flex-direction:column}}@media (max-width:480px){.history-filters>div,.image-tool-compact-grid{grid-template-columns:1fr}}.user-workspace .ai-tool-mark.detail{background:#b06a2c}.user-workspace .ghost{width:auto;min-height:36px;padding:8px 13px;border:1px solid var(--user-line);border-radius:8px;color:var(--user-ink);background:#fff;font-size:13px;font-weight:600;cursor:pointer}.user-workspace .ghost:hover:not(:disabled){border-color:#c9bee8;color:var(--user-accent)}.user-workspace .ghost:disabled{cursor:not-allowed;opacity:.5}.detail-page-notice{border:1px solid #cfe7dc;border-radius:8px;color:#2f6b57;background:#effaf5}.detail-page-error,.detail-page-notice{margin:14px 0 0;padding:10px 13px;font-size:13px}.detail-page-error{border:1px solid #f0cfcf;border-radius:8px;color:#9b4646;background:#fdf2f2}.detail-page-create,.detail-page-editor,.detail-page-facts,.detail-page-product-image,.detail-page-screens,.detail-page-settings{margin-top:26px;padding:20px;border:1px solid var(--user-line);border-radius:12px;background:var(--user-surface)}.detail-page-create-grid,.detail-page-facts-grid,.detail-page-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));grid-gap:14px;gap:14px;margin-top:14px}.detail-page-create label,.detail-page-editor-fields label,.detail-page-facts label,.detail-page-settings label{display:grid;grid-gap:7px;gap:7px;color:var(--user-ink);font-size:13px;font-weight:600}.detail-page-create input,.detail-page-create select,.detail-page-editor-fields input,.detail-page-editor-fields select,.detail-page-editor-fields textarea,.detail-page-facts input,.detail-page-settings input,.detail-page-settings select{min-height:40px;padding:9px 11px;border:1px solid var(--user-line);border-radius:8px;color:var(--user-ink);background:#fff;font:inherit;font-weight:400}.detail-page-editor-fields textarea{min-height:96px;resize:vertical}.detail-page-style-hint{margin:10px 0 0}.detail-page-create-actions{display:flex;align-items:center;gap:14px;margin-top:16px}.detail-page-create-actions .primary{width:auto;min-height:40px;padding:9px 20px;border-radius:8px;background:var(--user-accent)}.detail-page-create-actions .detail-page-notice{margin:0}.detail-page-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));grid-gap:14px;gap:14px;margin-top:14px}.detail-page-project-card{display:grid;grid-gap:12px;gap:12px;padding:18px;border:1px solid var(--user-line);border-radius:12px;background:var(--user-surface)}.detail-page-project-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.detail-page-project-head h3{margin:0;color:var(--user-ink);font-size:16px}.detail-page-progress{padding:3px 9px;border-radius:999px;color:#8a6824;background:#fff5dc;font-size:11px;font-weight:700;white-space:nowrap}.detail-page-progress.is-complete{color:#34705e;background:#eaf6f1}.detail-page-project-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px 14px;gap:8px 14px;margin:0}.detail-page-project-meta div{display:grid;grid-gap:2px;gap:2px}.detail-page-project-meta dt{color:var(--user-muted);font-size:11px}.detail-page-project-meta dd{margin:0;color:var(--user-ink);font-size:13px}.detail-page-project-actions{display:flex;gap:9px}.detail-page-project-actions .primary{width:auto;min-height:36px;padding:8px 14px;border-radius:8px;background:var(--user-accent);text-decoration:none}.detail-page-workspace-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.detail-page-header-actions{display:flex;align-items:center;gap:10px}.detail-page-header-actions .primary{width:auto;min-height:40px;padding:9px 18px;border-radius:8px;background:var(--user-accent)}.detail-page-screen-actions{display:flex;gap:9px}.detail-page-screen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));grid-gap:12px;gap:12px;margin-top:14px}.detail-page-screen-card{display:grid;grid-gap:8px;gap:8px;padding:12px;border:1px solid var(--user-line);border-radius:10px;background:var(--user-surface)}.detail-page-screen-card.is-selected{border-color:var(--user-accent);box-shadow:inset 3px 0 var(--user-accent)}.detail-page-screen-pick{display:grid;grid-template-columns:auto 64px minmax(0,1fr);align-items:center;grid-gap:10px;gap:10px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.detail-page-screen-index{color:var(--user-muted);font-size:12px;font-weight:700}.detail-page-screen-thumb{display:grid;width:64px;height:64px;place-items:center;overflow:hidden;border:1px solid var(--user-line);border-radius:8px;background:#f6f7f8}.detail-page-screen-thumb img{width:100%;height:100%;object-fit:cover}.detail-page-screen-empty{color:var(--user-muted);font-size:11px;text-align:center}.detail-page-screen-copy{display:grid;grid-gap:3px;gap:3px;min-width:0}.detail-page-screen-copy strong{color:var(--user-ink);font-size:13px}.detail-page-screen-copy small{color:var(--user-muted);font-size:11px}.detail-page-screen-snippet{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-page-screen-tools{display:flex;gap:6px}.detail-page-screen-tools button{flex:1 1;min-height:30px;border:1px solid var(--user-line);border-radius:7px;color:var(--user-ink);background:#fff;font-size:12px;cursor:pointer}.detail-page-screen-tools button:disabled{cursor:not-allowed;opacity:.45}.detail-page-editor-grid{display:grid;grid-template-columns:minmax(240px,340px) minmax(0,1fr);grid-gap:20px;gap:20px;margin-top:14px;align-items:start}.detail-page-editor-fields{display:grid;grid-gap:14px;gap:14px}.detail-page-editor-canvas{display:grid;min-height:300px;max-height:60vh;place-items:center;overflow:hidden;border:1px solid var(--user-line);border-radius:10px;background:#f4f4f2}.detail-page-editor-canvas img{width:100%;max-height:60vh;object-fit:contain}.detail-page-editor-image-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.detail-page-upload{display:inline-flex;align-items:center;cursor:pointer}.detail-page-upload input{display:none}.detail-page-product-row{display:flex;align-items:flex-start;gap:18px;margin-top:14px}.detail-page-product-thumb{display:grid;width:150px;height:150px;flex:0 0 auto;place-items:center;overflow:hidden;border:1px solid var(--user-line);border-radius:10px;background:#f6f7f8}.detail-page-product-thumb img{width:100%;height:100%;object-fit:cover}.detail-page-modal{position:fixed;inset:0;z-index:40;display:grid;place-items:center;padding:24px;background:rgb(20 24 33/.45)}.detail-page-modal-panel{width:min(880px,100%);max-height:82vh;overflow:auto;padding:20px;border-radius:12px;background:var(--user-surface);box-shadow:0 18px 48px rgb(20 24 33/.24)}.detail-page-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.detail-page-modal-head h3{margin:0;color:var(--user-ink);font-size:16px}.detail-page-modal-head button{min-height:32px;padding:6px 12px;border:1px solid var(--user-line);border-radius:7px;color:var(--user-ink);background:#fff;cursor:pointer}.detail-page-modal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:12px;gap:12px;margin-top:12px}.detail-page-modal-item{display:grid;grid-gap:6px;gap:6px;padding:8px;border:1px solid var(--user-line);border-radius:9px;background:#fff;cursor:pointer}.detail-page-modal-item:hover:not(:disabled){border-color:var(--user-accent)}.detail-page-modal-item:disabled{cursor:not-allowed;opacity:.5}.detail-page-modal-item img{width:100%;height:130px;object-fit:cover;border-radius:6px}.detail-page-modal-item small{color:var(--user-muted);font-size:11px}.detail-page-plan{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:max-content;align-content:start;grid-gap:14px;gap:14px;margin-top:16px;padding:3px 5px 3px 3px;scrollbar-gutter:stable}.detail-page-plan .template-choice{display:grid;grid-template-rows:auto 32px;min-width:0;height:auto;min-height:0;aspect-ratio:auto;overflow:hidden;border:2px solid var(--user-line);border-radius:9px;background:#fff;cursor:pointer}.detail-page-plan .template-choice-main{position:relative;height:auto;aspect-ratio:3/4;overflow:hidden}.detail-page-plan .template-choice-main>img,.detail-page-plan .template-placeholder{width:100%;height:100%;min-height:0;object-fit:cover}.detail-page-plan .template-choice.selected{border-color:var(--user-accent);box-shadow:0 0 0 3px var(--user-accent-soft)}.detail-page-plan .template-choice.selected:after{content:none}.detail-page-plan-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%)}.detail-page-plan-row{display:grid;grid-template-columns:auto 180px minmax(0,1fr);align-items:center;grid-gap:14px;gap:14px;padding:12px;border:1px solid var(--user-line);border-radius:10px;background:var(--user-surface);cursor:pointer}.detail-page-plan-row:hover{border-color:#cfc3f3;background:#fcfbff}.detail-page-plan-row.is-unselected{opacity:.55}.detail-page-plan-check{display:grid}.detail-page-plan-check input{width:16px;height:16px;margin:0;accent-color:var(--user-accent)}.detail-page-plan-thumb{display:grid;width:180px;aspect-ratio:4/3;place-items:center;overflow:hidden;border:1px solid var(--user-line);border-radius:8px;background:#f6f7f8}.detail-page-plan-thumb img{width:100%;height:100%;object-fit:cover}.detail-page-plan-body{display:grid;grid-gap:8px;gap:8px;min-width:0}.detail-page-plan-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.detail-page-plan-title strong{color:var(--user-ink);font-size:13px}.detail-page-plan-title .subtle{font-size:11px}.detail-page-plan-tools{display:flex;flex-wrap:wrap;gap:6px}.detail-page-plan-tools button{min-height:28px;padding:4px 10px;border:1px solid var(--user-line);border-radius:7px;color:var(--user-ink);background:#fff;font-size:11px;cursor:pointer}.detail-page-plan-tools button:disabled{cursor:not-allowed;opacity:.45}.detail-page-plan-tools .detail-page-upload{border-radius:7px;font-weight:600}.detail-page-plan-tools .detail-page-upload,.detail-page-plan-tools a{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;font-size:11px}.detail-page-plan-tools a{border:1px solid var(--user-line);border-radius:7px;color:var(--user-ink);background:#fff;text-decoration:none}.detail-page-plan-detail{display:grid;grid-gap:8px;gap:8px}.detail-page-plan-detail summary{color:var(--user-muted);font-size:11px;cursor:pointer}.detail-page-plan-detail label{display:grid;grid-gap:5px;gap:5px;color:var(--user-ink);font-size:11px;font-weight:600}.detail-page-plan-detail input,.detail-page-plan-detail select,.detail-page-plan-detail textarea{width:100%;min-height:32px;padding:6px 8px;border:1px solid var(--user-line);border-radius:7px;color:var(--user-ink);background:#fff;font:inherit;font-size:12px;font-weight:400}.detail-page-plan-detail textarea{min-height:56px;resize:vertical}.detail-page-result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));grid-gap:16px;gap:16px;margin-top:16px}.detail-page-result-card{display:grid;overflow:hidden;border:1px solid var(--user-line);border-radius:10px;background:#fff;box-shadow:0 5px 15px rgb(30 35 50/.04)}.detail-page-result-body{display:grid;grid-gap:8px;gap:8px;padding:12px 13px 14px}.detail-page-result-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.detail-page-result-head strong{color:var(--user-ink);font-size:12px}.detail-page-panel-actions{display:grid;grid-gap:9px;gap:9px;margin-top:auto;padding-top:14px;border-top:1px solid var(--user-line)}.detail-page-panel-actions .primary{width:100%;min-height:40px;border-radius:8px;background:var(--user-accent)}.detail-page-panel-actions .ghost{width:100%;min-height:36px;border-radius:8px;text-align:center}.detail-page-panel-actions .primary:disabled{cursor:not-allowed;opacity:.5;box-shadow:none}.detail-page-prompt-meta{display:grid;grid-gap:4px;gap:4px;margin:12px 0 0;padding:0;list-style:none}.detail-page-prompt-meta li{display:flex;gap:8px;color:var(--user-muted);font-size:11px}.detail-page-prompt-meta strong{color:var(--user-ink);font-weight:600}.user-header{border-bottom-color:transparent;background:var(--brand);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.user-header-title{justify-self:center;font-size:var(--fs-4);font-weight:700}.user-header-right{justify-self:end}.home-header h1{font-size:var(--fs-7)}.section-title-row{margin-bottom:var(--s3)}.section-title-row h2{margin:0;color:var(--user-ink);font-size:var(--fs-5);font-weight:700}.resume-promo-link{color:var(--user-accent);font-size:var(--fs-3);font-weight:650;text-decoration:none}.resume-promo-link:hover{text-decoration:underline}.ai-tools-section+.ai-tools-section{margin-top:var(--s6)}.core-generation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:var(--s3);gap:var(--s3)}.image-tool-compact-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:var(--s3);gap:var(--s3)}.tool-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:var(--s3);gap:var(--s3);min-height:92px;padding:var(--s4);border:1px solid var(--user-line);border-radius:var(--r-lg);color:var(--user-ink);background:#fff;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease}.tool-card:hover{border-color:var(--brand-line);box-shadow:0 6px 18px rgb(30 35 50/.07)}.tool-card-copy{display:grid;min-width:0;grid-gap:var(--s1);gap:var(--s1)}.tool-card-copy strong{color:var(--user-ink);font-size:var(--fs-4);font-weight:700}.tool-card-copy small{color:var(--user-muted);font-size:var(--fs-3);line-height:1.5}.tool-card-arrow{color:var(--user-accent);font-size:var(--fs-5)}.tool-card.is-disabled{border-style:dashed;background:#f7f8fa;cursor:not-allowed}.tool-card-flag,.tool-card.is-disabled .tool-card-copy small,.tool-card.is-disabled .tool-card-copy strong{color:var(--faint)}.tool-card-flag{position:absolute;top:var(--s2);right:var(--s2);padding:2px var(--s2);border:1px solid var(--user-line);border-radius:999px;background:#fff;font-size:var(--fs-1);font-weight:700}@media (max-width:1280px){.image-tool-compact-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:980px){.core-generation-grid,.image-tool-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.core-generation-grid,.image-tool-compact-grid{grid-template-columns:1fr}.tool-card{min-height:76px}}.ecommerce-example-style{margin-top:18px}.ecommerce-example-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:14px;gap:14px;margin-top:14px}@media(max-width:1100px){.ecommerce-example-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.ecommerce-example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.ecommerce-example-card{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}.ecommerce-example-preview{display:grid;aspect-ratio:3/4;place-items:center;overflow:hidden;color:var(--muted);background:#f4f5f8;font-size:12px}.ecommerce-example-preview img{width:100%;height:100%;object-fit:cover}.ecommerce-example-card-body{display:grid;grid-gap:7px;gap:7px;padding:12px}.ecommerce-example-card-body strong{color:var(--ink)}.ecommerce-example-card-body small{min-height:30px;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis}.ecommerce-example-upload{display:flex;min-height:34px;align-items:center;justify-content:center;cursor:pointer}.ecommerce-example-upload input{display:none}@media (max-width:1100px){.core-generation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:820px){.detail-page-editor-grid{grid-template-columns:1fr}.detail-page-product-row,.detail-page-workspace-header{flex-direction:column}.detail-page-plan-row{grid-template-columns:auto 110px minmax(0,1fr)}.detail-page-plan-thumb{width:110px}.detail-page-plan-tools{grid-column:1/-1}.detail-page-result-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:560px){.core-generation-grid{grid-template-columns:1fr}}