.cf-workbench{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:0;border:1px solid #293438;border-radius:16px;overflow:hidden;background:#0c1113;min-height:700px}.cf-config{min-width:0;background:#11181b;border-right:1px solid #293438;max-height:calc(100dvh - 150px);overflow:auto;scrollbar-width:thin;scrollbar-color:#46575c transparent}.cf-section{padding:22px;border-bottom:1px solid #293438}.cf-section h2,.cf-section summary{font-size:14px;font-weight:650;color:#edf5f3;display:flex;align-items:center;gap:8px;margin:0 0 14px}.cf-section h2>span{margin-left:auto;font-size:11px;color:#a5b9bd;font-weight:400}.cf-section p,.cf-note{color:#aabdc1;font-size:12px;line-height:1.7}.cf-section h2:not(:first-child){margin-top:20px}.cf-section small{color:#a5b9bd;font-weight:400;font-size:11px}.cf-field{display:flex;flex-direction:column;gap:9px;font-size:12px;color:#c2d1d3;margin:0 0 13px}.cf-field:last-child{margin-bottom:0}.cf-field select,.cf-field textarea{width:100%;min-height:40px;background:#1a2428;border:1px solid #3e5055;border-radius:9px;color:#ecf5f3;padding:10px 11px;font:inherit}.cf-field textarea{line-height:1.8;resize:vertical}.cf-field textarea::placeholder{color:#99adb1}.cf-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cf-two .cf-field{margin:0}.cf-upload{position:relative;min-height:124px;border:1px dashed #547277;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;background:#141f23;cursor:pointer}.cf-upload:hover,.cf-upload.dragging{border-color:#52d7d0;background:#152d2f}.cf-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.cf-upload:focus-within{outline:2px solid #52d7d0;outline-offset:3px}.cf-upload strong{font-size:12px;font-weight:500;color:#deecec}.cf-plus{font-size:25px;color:#52d7d0}.cf-files{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.cf-files figure{margin:0;position:relative;min-width:0}.cf-files img,.cf-files video{width:100%;height:88px;object-fit:contain;background:#080d0f;border-radius:8px}.cf-files video{height:140px}.cf-files figure:has(video){grid-column:1/-1}.cf-files figcaption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#aebfc1;margin-top:4px}.cf-files button{position:absolute;top:2px;right:2px;background:#101c20;color:#fff;border:1px solid #596b70;width:26px;height:26px;border-radius:50%}.cf-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cf-choices label{display:flex;gap:8px;align-items:center;min-height:48px;padding:10px;background:#1a2428;border:1px solid #34464c;border-radius:10px;font-size:12px;line-height:1.5;color:#cad8da;cursor:pointer}.cf-choices label:has(:checked){border-color:#52d7d0;background:#173537;color:#8ceee8}.cf-choices input{accent-color:#52d7d0;width:15px;height:15px;flex-shrink:0}.cf-counter{padding:14px 12px;background:#1a2428;border-radius:10px;margin-bottom:9px;display:flex;align-items:center;justify-content:space-between;font-size:13px}.cf-counter>div{display:flex;align-items:center;gap:12px}.cf-counter button{width:28px;height:28px;border-radius:7px;background:#293a40;color:#e1efed}.cf-counter output{min-width:12px;text-align:center}.cf-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:40px;font-size:12px;color:#c5d3d5}.cf-toggle input{appearance:none;width:32px;height:20px;border-radius:12px;background:#46585e;position:relative;cursor:pointer;flex:none}.cf-toggle input:before{content:'';position:absolute;width:14px;height:14px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .15s}.cf-toggle input:checked{background:#2cb6af}.cf-toggle input:checked:before{transform:translateX(12px)}.cf-model{background:#102124}.cf-model .cf-choices{margin:14px 0}.cf-model .model-reference-picker{margin:10px 0;padding:0;border:0}.cf-submit{position:sticky;bottom:0;padding:16px 22px;background:#111b1ef5;border-top:1px solid #385056;z-index:2;backdrop-filter:blur(12px)}.cf-submit p{font-size:12px;color:#b8cacc;line-height:1.6;margin:0 0 9px}.cf-submit .cf-error{color:#ffb0a8;margin:10px 0 0}.cf-submit button:disabled{opacity:.55;cursor:not-allowed}.cf-results{min-width:0;padding:28px;background:radial-gradient(ellipse at top right,#16303355,transparent 65%),#0c1113}.cf-results-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.cf-results-head span{font-size:10px;letter-spacing:2px;color:#7da6a8}.cf-results-head h2{font-size:24px;color:#f3f8f7;margin-top:8px}.cf-results-head .secondary{font-size:12px}.cf-plan-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 14px}.cf-plan-heading h3{font-size:14px}.cf-plan-heading span{font-size:12px;color:#9fbbbf}.cf-output-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.cf-output-grid button{min-height:142px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;text-align:left;padding:16px;border:1px solid #33494f;border-radius:12px;background:linear-gradient(140deg,#18252a,#101719);color:#dce9e8;transition:border-color .16s,transform .16s}.cf-output-grid button:hover{border-color:#7dc2c0;transform:translateY(-2px)}.cf-output-grid button.selected{border-color:#52d7d0;background:linear-gradient(140deg,#1b3e40,#132528)}.cf-output-number{color:#8bc6c6;font-size:25px;font-weight:300}.cf-output-grid strong{font-size:13px}.cf-output-grid small{font-size:10px;color:#a1babc}.cf-prompt{margin:24px 0;color:#adc7ca;font-size:12px}.cf-prompt summary{cursor:pointer;padding:12px 0}.cf-prompt pre{background:#131e22;color:#bdcfd2;max-height:260px}.cf-listing{margin-top:20px;padding:18px;border:1px solid #33494f;border-radius:10px}.cf-listing p{white-space:pre-wrap;line-height:1.8;font-size:13px}.cf-listing small{color:#a0b4b8}.cf-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:16px}.cf-history-grid article{padding:10px;background:#172226;border-radius:10px;min-width:0}.cf-history-grid img{width:100%;height:180px;object-fit:contain}.cf-history-grid strong{display:block;font-size:12px;margin:10px 0}.cf-history-grid p,.cf-history-grid a{font-size:12px;overflow-wrap:anywhere}.cf-history-grid a{color:#78ddd7}.cf-progress{font-size:40px;color:#78ddd7}#cf-asset-list{margin-top:12px;max-height:220px;overflow:auto}#cf-asset-list button{display:flex;gap:10px;width:100%;align-items:center;padding:8px;color:#d9e6e5;font-size:11px;text-align:left}#cf-asset-list img{width:45px;height:45px;object-fit:contain}.cf-section summary{cursor:pointer}.cf-workbench :focus-visible{outline:2px solid #74f0e7;outline-offset:3px}.cf-space-tabs{display:flex;gap:10px;margin:0 0 24px;flex-wrap:wrap}.cf-space-tabs a{padding:10px 16px;border:1px solid #3e5055;border-radius:9px;color:#c5d5d6;font-size:13px}.cf-space-tabs a.active{background:#173537;border-color:#52d7d0;color:#83ede4}
@media(max-width:1100px){.cf-workbench{grid-template-columns:minmax(290px,340px) minmax(0,1fr)}.cf-results{padding:20px}.cf-results-head{flex-wrap:wrap}.cf-output-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.cf-workbench{grid-template-columns:1fr}.cf-config{max-height:none;border-right:0;border-bottom:1px solid #293438}.cf-submit{position:static}.cf-results{padding:22px}.cf-output-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:450px){.cf-section{padding:18px}.cf-output-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cf-results{padding:18px}.cf-results-head h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.cf-output-grid button,.cf-toggle input:before{transition:none}.cf-output-grid button:hover{transform:none}}
body:not(.auth-locked) .cf-workbench .secondary{background:#19282d;border-color:#466067;color:#d5edeb}body:not(.auth-locked) .cf-workbench .primary{background:#52d7d0;color:#071b1b;border:1px solid #52d7d0}body:not(.auth-locked) .cf-workbench .text-button{color:#a6c6c9}body:not(.auth-locked) .shell main:has(#commerce-flow-root)>.heading-row .intro{color:#a5b9bd}body:not(.auth-locked) .cf-workbench .secondary:hover{background:#233b3e;border-color:#6dcfc9}.cf-section .model-anchor-choice{padding:10px;background:#173033;border-radius:8px}.cf-section .model-anchor-choice strong{font-size:12px}
#cf-gallery{margin:22px 0 28px}.rg-tabs{display:flex;gap:8px;margin-bottom:14px}.rg-tabs button{padding:9px 14px;background:#172226;border:1px solid #344a50;border-radius:8px;color:#c0d3d5;font-size:12px}.rg-tabs button[aria-pressed=true]{background:#193c3d;border-color:#52d7d0;color:#8ceee8}.rg-tabs span{margin-left:5px;opacity:.8}.rg-hero{margin:0;position:relative;background:#080d0f;border:1px solid #31474b;border-radius:14px;overflow:hidden}.rg-hero>a{display:block}.rg-hero img{display:block;width:100%;height:min(52vw,510px);object-fit:contain}.rg-badge{position:absolute;top:14px;left:14px;background:#0b1b20dc;color:#c9f1ed;padding:7px 10px;border:1px solid #638c8c;border-radius:7px;font-size:11px;pointer-events:none}.rg-caption{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0}.rg-caption strong{font-size:14px;color:#e7f0ee}.rg-caption p{font-size:11px;line-height:1.6;color:#9fb9bb;margin:6px 0 0}.rg-caption>a{white-space:nowrap;font-size:11px}.rg-thumbnails{display:flex;gap:10px;overflow:auto;padding:3px}.rg-thumbnails button{flex:0 0 104px;padding:4px;border:1px solid #334b50;border-radius:10px;background:#142024;color:#b8ced0;text-align:left;overflow:hidden}.rg-thumbnails button[aria-pressed=true]{border-color:#58dcd3;box-shadow:0 0 0 1px #58dcd3}.rg-thumbnails img{display:block;width:94px;height:76px;object-fit:cover;border-radius:6px}.rg-thumbnails span{display:block;font-size:10px;line-height:1.5;padding:7px 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rg-empty{padding:60px 16px;border:1px dashed #39555c;border-radius:14px;text-align:center;color:#a7c1c3}.rg-empty>span{font-size:38px;color:#58dcd3}.rg-empty h3{font-size:16px;margin:14px 0}.rg-empty p{font-size:12px;line-height:1.8}.cf-output-grid{display:flex;flex-wrap:wrap;gap:8px}.cf-output-grid button{min-height:0;flex-direction:row;align-items:center;gap:8px;padding:10px 12px;border-radius:8px}.cf-output-number{font-size:12px}.cf-output-grid strong{font-size:12px}.cf-output-grid small{display:none}.cf-plan-heading{margin:18px 0 12px}@media(max-width:900px){.rg-hero img{height:auto;max-height:520px;aspect-ratio:1;object-fit:contain}}@media(prefers-reduced-motion:no-preference){.rg-thumbnails button,.rg-tabs button{transition:border-color .16s,background .16s}.rg-thumbnails button:hover{border-color:#8cbbb8}}

/* Creation workspace stays within the viewport on desktop; each panel owns its scroll. */
@media(min-width:901px){
 body:has(#commerce-flow-root){height:100dvh;overflow:hidden}
 body:has(#commerce-flow-root) .shell{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body:has(#commerce-flow-root) .shell main{width:100%;max-width:none;flex:1;min-height:0;display:flex;flex-direction:column;box-sizing:border-box;padding:14px 24px 16px}
 body:has(#commerce-flow-root) .heading-row{flex:none;margin:0 0 12px}
 body:has(#commerce-flow-root) .heading-row h1{font-size:23px;line-height:1.18;margin:0}
 body:has(#commerce-flow-root) .heading-row .intro{font-size:11px;line-height:1.5;margin-top:4px}
 #commerce-flow-root{flex:1;min-height:0;display:flex}
 .cf-workbench{width:100%;height:100%;min-height:0;grid-template-columns:minmax(345px,410px) minmax(0,1fr)}
 .cf-config,.cf-results{min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}
 .cf-results{scrollbar-width:thin;scrollbar-color:#46575c transparent}
}
.rg-compare{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);gap:9px;align-items:center;position:relative;margin:0;padding:16px 16px 48px;background:#0c1113;border:1px solid #30474c;border-radius:14px;min-height:360px}
.rg-compare figure{min-width:0;margin:0;position:relative;background:#141d20;border:1px solid #35484c;border-radius:11px;overflow:hidden}
.rg-compare figure>img,.rg-compare figure>video{display:block;width:100%;height:clamp(240px,31vw,470px);object-fit:cover}
.rg-compare figure>span{position:absolute;z-index:1;top:10px;left:10px;padding:6px 9px;border-radius:6px;background:#0b181bdc;color:#ddf4f0;font-size:11px}
.rg-compare figcaption{position:absolute;bottom:0;left:0;right:0;background:#0b181be0;padding:12px;color:#d6e9e6;font-size:12px}
.rg-arrow{text-align:center;color:#75dfd7;font-size:28px}
.rg-product-chip{position:absolute;bottom:10px;left:calc(50% - 45px);z-index:2;width:90px;background:#15272a;border:2px solid #68d4cb;border-radius:9px;overflow:hidden;box-shadow:0 8px 25px #0008}
.rg-product-chip img{display:block;width:100%;height:66px;object-fit:cover}
.rg-product-chip span{display:block;text-align:center;padding:4px 1px;color:#dff6f4;font-size:10px}
.rg-processing,.rg-empty{min-height:390px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 45%,#19434399,#0d1518 58%);border:1px dashed #416469;border-radius:14px;text-align:center;padding:30px}
.rg-processing h3{font-size:18px;color:#ecfaf8;margin:18px 0 6px}.rg-processing p{color:#aac8c9;font-size:12px}.rg-processing>span:last-child{color:#79ddd6;font-size:11px;margin-top:12px}
.rg-pulse{display:flex;gap:10px;align-items:center;justify-content:center;height:70px}.rg-pulse span{display:block;width:18px;height:18px;border:2px solid #75ebe0;border-radius:5px;animation:rg-breathe 1.3s ease-in-out infinite}.rg-pulse span:nth-child(2){animation-delay:.15s}.rg-pulse span:nth-child(3){animation-delay:.3s}
@keyframes rg-breathe{0%,100%{transform:translateY(0) rotate(0);opacity:.32}50%{transform:translateY(-12px) rotate(45deg);opacity:1}}
.rg-error{color:#ffb6ad;padding:10px 12px;background:#3a2427;border-radius:7px;font-size:12px}
.rg-hero.rg-tall img{height:min(55vh,700px);object-fit:contain;object-position:center top;background:#101719}
@media(max-width:1100px) and (min-width:901px){.cf-workbench{grid-template-columns:minmax(305px,350px) minmax(0,1fr)}.rg-compare{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);padding:10px 10px 44px}.rg-compare figure>img,.rg-compare figure>video{height:350px}}
@media(max-width:900px){.rg-compare figure>img,.rg-compare figure>video{height:300px}.rg-hero.rg-tall img{height:520px}}
@media(max-width:550px){.rg-compare{grid-template-columns:1fr;gap:8px}.rg-arrow{transform:rotate(90deg)}.rg-compare figure>img,.rg-compare figure>video{height:230px}.rg-product-chip{left:auto;right:12px;bottom:13px}.rg-hero.rg-tall img{height:460px}}
@media(prefers-reduced-motion:reduce){.rg-pulse span{animation:none}}

@media(min-width:901px){body:has(#commerce-flow-root) .shell>footer{display:none}body:has(#commerce-flow-root) .shell main{padding-bottom:12px}}

.cf-setting-impact{display:grid;gap:7px;margin-top:12px;padding:12px 13px;border:1px solid #31595b;border-radius:10px;background:#163034;color:#cde7e5;font-size:12px;line-height:1.45}.cf-setting-impact strong{color:#ecfbf8;font-size:12px}.cf-setting-impact span{display:block}.cf-setting-impact small{color:#a8c4c1;font-size:11px;line-height:1.5}
