/* Smart-refine layout; application colors come only from the public theme. */
.front-frame>.main:has(.refine-page){padding:22px 18px 42px;background:var(--surface-alt)}.front-frame>.main:has(.refine-page)>.main-inner{max-width:none}.refine-page{font-family:var(--font);font-size:14px;color:var(--text);line-height:20px}.rf-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px;min-height:70px}.rf-page-heading h1{font-size:30px;line-height:36px;font-weight:600;letter-spacing:-.75px;margin:0}.rf-page-heading p{font-size:14px;line-height:24px;color:var(--muted);margin:10px 0 0}.rf-heading-actions{display:flex;gap:8px}.rf-heading-actions button{height:32px;padding:0 12px;border:0;border-radius:8px;font-size:14px;line-height:20px;font-weight:500;color:var(--text)}.rf-heading-actions button:hover{background:var(--surface-hover)}
.rf-layout{display:grid;grid-template-columns:minmax(0,.44fr) minmax(0,.56fr);gap:24px;align-items:start}.rf-flow,.rf-results{background:var(--rf-shell);border:1px solid var(--rf-border);border-radius:14px;box-shadow:var(--rf-outer-shadow);min-width:0}.rf-flow{padding:52px 24px 24px}.rf-section{padding:20px;border:1px solid var(--rf-border);border-radius:14px;background:var(--rf-panel);box-shadow:var(--rf-panel-shadow);margin-bottom:24px;min-width:0}.rf-section-heading{min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.rf-section-heading h2{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:600;line-height:24px;margin:0}.rf-required{color:var(--danger)}.rf-count{font-size:14px;font-weight:600;color:var(--muted);display:flex;gap:3px}.rf-count>span{font-weight:400}.rf-upload-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}.rf-upload-tools .btn{font-size:12px;padding:3px 0;min-height:24px;border:0;color:var(--muted)}.rf-upload-tools .btn:hover{color:var(--accent);background:transparent}.rf-upload-tools>small{font-size:11px;line-height:16px;color:var(--muted)}.rf-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:120px;padding:16px;border:2px dashed var(--rf-drop-border);border-radius:10px;background:transparent;cursor:pointer;text-align:center;color:var(--muted);transition:border-color .15s,background-color .15s}.rf-drop>.icon{width:32px;height:32px;stroke-width:1.8}.rf-drop>span,.rf-drop>small{font-size:12px;line-height:16px;font-weight:400}.rf-drop:hover,.rf-drop.dragging{background:var(--rf-select);border-color:var(--accent)}.rf-drop.has-images{min-height:90px;margin-top:12px}.rf-drop.has-images>.icon{width:22px;height:22px}.rf-uploads{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.rf-uploads:empty{display:none}.rf-upload-item{position:relative;border:1px solid var(--rf-border);border-radius:10px;background:var(--surface-alt);aspect-ratio:1;min-width:0}.rf-upload-preview{width:100%;height:100%;padding:7px;display:block;overflow:hidden;border-radius:10px}.rf-upload-preview img{width:100%;height:100%;object-fit:contain;display:block}.rf-upload-item>small{position:absolute;left:5px;bottom:4px;background:var(--surface);color:var(--muted);padding:0 4px;border-radius:4px;font-size:10px;pointer-events:none}.rf-remove{position:absolute;right:3px;top:3px;display:flex;align-items:center;justify-content:center;width:22px;height:22px;padding:3px;border-radius:50%;border:1px solid var(--rf-border);background:var(--surface);color:var(--muted)}.rf-remove .icon{width:14px;height:14px}.rf-remove:hover{color:var(--danger);background:var(--danger-bg)}
.rf-prompt-actions{display:flex;gap:8px;margin-left:auto}.rf-prompt-actions .btn{height:32px;min-height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--rf-action-text);font-size:14px;line-height:20px;font-weight:500;gap:6px;box-shadow:none}.rf-prompt-actions .btn:hover{color:var(--text);background:var(--surface-hover)}.rf-prompt-actions .icon{width:16px;height:16px}.refine-page #prompt{width:100%;min-height:178px;max-height:480px;resize:vertical;display:block;border:1px solid var(--rf-border);border-radius:14px;padding:8px 12px;font-family:var(--font);font-size:14px;line-height:20px;color:var(--text);background:var(--rf-field);box-shadow:var(--rf-field-shadow)}.refine-page #prompt::placeholder{color:var(--muted);font-weight:400}.rf-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.rf-preset{border:1px solid var(--rf-border);background:var(--surface-alt);color:var(--text);font-size:14px;font-weight:400;line-height:20px;min-height:36px;padding:0 12px;border-radius:8px}.rf-preset:hover{background:var(--rf-select)}.rf-preset.selected{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}.rf-person{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;padding:8px 12px;text-align:left;border:1px solid var(--rf-border);border-radius:10px;background:var(--rf-panel);box-shadow:var(--rf-person-shadow);color:var(--muted);font-size:14px;line-height:20px;font-weight:500}.rf-person>.icon{width:16px;height:16px}.rf-person img{width:28px;height:28px;object-fit:cover;border-radius:7px}.rf-person>span{flex:1}.rf-person small{font-size:12px}.rf-person:hover{background:var(--surface-hover)}.rf-hint{padding:0;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:auto}.rf-hint .icon{width:14px;height:14px}.rf-parameters{display:flex;gap:8px;flex-wrap:wrap}.rf-select{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;max-width:100%;height:36px;min-height:36px;border:0;border-radius:999px;padding:4px 10px;color:var(--muted);background:var(--rf-select);font-size:12px;line-height:16px;font-weight:400;white-space:nowrap}.rf-select>.icon{width:14px;height:14px;transform:rotate(90deg);opacity:.7}.rf-select small{font-size:10px;line-height:14px;color:var(--accent);background:var(--accent-soft);border-radius:4px;padding:2px 4px;overflow:hidden;text-overflow:ellipsis}.rf-select:hover{background:var(--surface-hover)}.rf-select-model{min-width:214px}.rf-select-model>span{overflow:hidden;text-overflow:ellipsis}.rf-select-resolution{min-width:88px}.rf-select-quality{min-width:56px}.rf-select-ratio,.rf-select-count{min-width:68px}.rf-submit{position:sticky;bottom:18px;z-index:6;padding:20px;border:1px solid var(--rf-border);border-radius:14px;background:var(--rf-field);box-shadow:var(--rf-panel-shadow);margin-top:32px}.rf-submit-note{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:16px;color:var(--accent);font-size:12px;line-height:18px}.rf-submit-note small{color:var(--muted);font-size:12px}.rf-submit-bottom{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.rf-quote{font-size:12px;line-height:18px;color:var(--muted);text-align:right}.rf-quote small{font-size:10px;display:block}.rf-submit-button{height:40px;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;font-size:14px;line-height:20px;font-weight:600;border:0;border-radius:10px;color:var(--on-accent);background:var(--accent);box-shadow:var(--rf-person-shadow)}.rf-submit-button>.icon{width:16px;height:16px}.rf-submit-button:hover{background:var(--accent-hover)}.rf-submit-button:disabled{opacity:.45}
.rf-results{position:sticky;top:68px;padding:24px 0;min-width:0}.rf-result-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 20px 12px;border-bottom:1px solid var(--rf-border)}.rf-task-link{font-size:12px;line-height:18px;color:var(--text);padding:8px 12px;border-radius:8px;white-space:nowrap}.rf-task-link:hover{background:var(--surface-hover)}.rf-case-content{padding:44px 20px 20px}.rf-case-grid{columns:3;column-gap:18px}.rf-case{position:relative;break-inside:avoid;page-break-inside:avoid;overflow:hidden;border-radius:16px;background:var(--surface-alt);margin-bottom:18px}.rf-case-cover{display:block;width:100%;aspect-ratio:1.45;position:relative;overflow:hidden;padding:0}.rf-case.tall .rf-case-cover{aspect-ratio:.8}.rf-case-cover>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.rf-case-cover>img[src$=".svg"]{object-fit:contain;padding:16px;background:var(--canvas-natural)}.rf-case-cover:hover>img{transform:scale(1.025)}.rf-case-title{position:absolute;inset:auto 0 0;display:block;min-height:60px;background:linear-gradient(transparent,var(--wb-overlay-bottom));color:var(--media-text);font-size:16px;font-weight:600;line-height:24px;padding:28px 12px 10px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rf-case-badge{position:absolute;top:8px;left:8px;background:var(--surface);color:var(--muted);font-size:10px;line-height:15px;border-radius:5px;padding:2px 5px}.rf-case-apply{position:absolute;right:8px;top:8px;border:1px solid var(--rf-border);background:var(--surface);color:var(--text);font-size:12px;line-height:18px;padding:5px 9px;border-radius:8px;opacity:0;transform:translateY(3px);transition:opacity .15s,transform .15s}.rf-case:hover .rf-case-apply,.rf-case:focus-within .rf-case-apply{opacity:1;transform:none}.rf-load{display:block;margin:18px auto 0;color:var(--accent);font-size:14px;padding:10px 16px;border-radius:8px}.rf-load:hover{background:var(--accent-soft)}.rf-case-disclaimer{text-align:center;font-size:11px;color:var(--muted);margin:6px 0 0}
.rf-select-popup{position:fixed;z-index:110;max-height:420px;overflow:auto;border:1px solid var(--rf-border);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:var(--nav-popup-shadow);padding:5px;font-family:var(--font);font-size:14px;line-height:20px;animation:rf-menu-enter .15s ease-out}.rf-select-heading{font-size:12px;font-weight:600;padding:7px 9px;color:var(--muted)}.rf-select-popup>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;min-height:36px;font-size:14px;line-height:20px}.rf-select-popup b{font-weight:400}.rf-select-popup em{font-size:10px;font-style:normal;color:var(--accent);background:var(--accent-soft);border-radius:4px;padding:2px 4px;margin-left:6px;white-space:nowrap}.rf-select-popup small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.rf-select-popup>button[aria-selected=true],.rf-select-popup>button:hover{background:var(--accent-soft);color:var(--accent)}.rf-select-popup .icon{width:15px;height:15px;flex-shrink:0}@keyframes rf-menu-enter{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
.rf-dialog{width:min(960px,calc(100vw - 32px));max-width:960px;border:0;border-radius:24px;background:var(--rf-dialog);box-shadow:var(--shadow);padding:0;animation:rf-menu-enter .2s ease-out}.rf-dialog .dialog-head{padding:24px 28px 16px}.rf-dialog .dialog-head h2{font-size:20px;line-height:28px;font-weight:600}.rf-dialog .dialog-body{padding:16px 28px 24px}.rf-dialog .dialog-footer{padding:18px 28px;background:transparent}.rf-dialog .btn{border-radius:10px;font-size:14px;line-height:20px;min-height:36px;font-weight:500}.rf-search{display:flex;align-items:center;gap:8px;border:1px solid var(--rf-border);border-radius:10px;background:var(--rf-field);padding:0 12px;min-height:40px}.rf-search .icon{width:16px;height:16px;color:var(--muted);flex-shrink:0}.rf-search input{border:0;background:transparent;box-shadow:none;padding:8px 0;font-size:14px;line-height:22px;min-height:38px;width:100%;color:var(--text)}.rf-search input:focus{box-shadow:none}.rf-library h3{font-size:18px;line-height:28px;font-weight:600;margin:24px 0 14px}.rf-library-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.rf-library-title .rf-search{flex:1}.rf-library-title h3{margin-bottom:14px}.rf-library #rf-prompt-cards,.rf-library #rf-custom-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rf-prompt-card{position:relative;border:1px solid var(--rf-border);border-radius:14px;background:var(--rf-panel);min-width:0}.rf-prompt-card.selected{border-color:var(--accent);box-shadow:var(--focus)}.rf-prompt-card>button:first-child{display:block;width:100%;height:100%;padding:16px;text-align:left;border-radius:14px}.rf-prompt-card h4{font-size:16px;line-height:24px;font-weight:600;padding-right:24px;margin:0 0 10px}.rf-prompt-card p{font-size:14px;line-height:22px;color:var(--muted);margin:0}.rf-prompt-pin{position:absolute;right:8px;top:12px;width:26px;height:26px;display:flex;align-items:center;justify-content:center;border-radius:6px;color:var(--muted)}.rf-prompt-pin .icon{width:14px;height:14px}.rf-prompt-pin:hover{color:var(--accent);background:var(--accent-soft)}.rf-empty{grid-column:1/-1;padding:25px 8px;text-align:center;color:var(--muted);font-size:14px;line-height:22px}.rf-local-note{font-size:12px;line-height:20px;color:var(--muted);margin:16px 0 0}.rf-custom-form{display:grid;gap:10px}.rf-custom-form label{font-size:14px;font-weight:600}.rf-custom-form small{font-size:12px;color:var(--muted)}.rf-custom-form input,.rf-custom-form textarea,.rf-expansion textarea{border:1px solid var(--rf-border);background:var(--rf-field);color:var(--text);border-radius:10px;font-size:14px;line-height:22px;width:100%;padding:10px 12px}.rf-expansion textarea{margin-top:12px}.rf-person-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.rf-person-grid>button{overflow:hidden;border:1px solid var(--rf-border);border-radius:14px;padding:0;background:var(--rf-panel);color:var(--text);text-align:left}.rf-person-grid>button.selected{border-color:var(--accent)}.rf-person-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;display:block}.rf-person-grid span{display:block;padding:10px 12px;font-size:14px;line-height:20px}.rf-guide-dialog{max-width:460px}.rf-guide{line-height:24px;font-size:14px}.rf-guide>span{display:block;color:var(--muted);font-size:12px;margin-bottom:12px}.refine-page button:focus-visible,.refine-page [role=button]:focus-visible,.rf-select-popup button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:none}.refine-page #prompt:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@container application (max-width:1200px){.rf-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rf-flow{padding:24px 16px}.rf-section{padding:16px}.rf-case-grid{columns:2}.rf-case-content{padding-top:24px}.rf-task-link{padding:8px 0}.rf-prompt-actions{gap:0}.rf-prompt-actions .btn{padding:0 6px;font-size:12px}}
@container application (max-width:900px){.rf-layout{grid-template-columns:minmax(0,1fr)}.rf-results{position:static}.rf-flow{padding:24px}.rf-case-grid{columns:3}.rf-submit{position:static}.rf-result-heading{padding-left:20px;padding-right:20px}}
@container application (max-width:650px){.front-frame>.main:has(.refine-page){padding:52px 14px 100px}.rf-page-heading{gap:10px;margin-bottom:20px;min-height:0}.rf-page-heading h1{font-size:26px;line-height:32px;letter-spacing:-.5px}.rf-page-heading p{font-size:12px;line-height:20px;max-width:240px;margin-top:8px}.rf-heading-actions{flex-direction:column;gap:0;align-items:flex-end}.rf-heading-actions button{font-size:12px;line-height:18px;height:28px;padding:0 4px}.rf-layout{gap:20px}.rf-flow{padding:16px 12px}.rf-section{padding:16px 12px;margin-bottom:18px}.rf-section-heading{gap:4px;flex-wrap:wrap;margin-bottom:12px}.rf-section-heading h2{font-size:14px}.rf-prompt-actions .btn{font-size:12px;padding:0 4px;height:28px;min-height:28px;gap:4px}.rf-prompt-actions .icon{width:14px;height:14px}.rf-uploads{grid-template-columns:repeat(3,minmax(0,1fr))}.rf-drop{min-height:120px}.rf-upload-tools{align-items:flex-start}.rf-upload-tools>small{font-size:10px}.rf-presets{gap:6px}.rf-preset{font-size:12px;min-height:34px;padding:0 9px}.rf-select-model{min-width:0;max-width:100%}.rf-select-model>span{max-width:150px}.rf-select{height:36px;font-size:12px}.rf-parameters{gap:8px 6px}.rf-submit{position:static;padding:16px 12px;margin-top:22px}.rf-submit-note{gap:4px 10px;margin-bottom:12px}.rf-submit-note small{font-size:11px}.rf-submit-button{min-height:42px;height:auto;font-size:13px}.rf-quote{font-size:11px}.rf-submit-bottom{gap:10px}.rf-result-heading{padding:0 12px 8px;gap:4px}.rf-task-link{font-size:11px}.rf-case-content{padding:20px 12px 12px}.rf-case-grid{columns:2;column-gap:12px}.rf-case{margin-bottom:12px;border-radius:12px}.rf-case-title{font-size:13px;line-height:19px;padding:24px 8px 8px}.rf-case-apply{position:static;opacity:1;transform:none;width:100%;border:0;border-top:1px solid var(--rf-border);border-radius:0;text-align:center;padding:8px;font-size:12px}.rf-case-badge{font-size:9px;left:5px;top:5px;padding:1px 3px}.rf-load{font-size:13px}}
@media(max-width:650px){.rf-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:20px}.rf-dialog .dialog-head{padding:18px 18px 12px}.rf-dialog .dialog-head h2{font-size:18px;line-height:26px}.rf-dialog .dialog-body{padding:10px 18px 18px}.rf-dialog .dialog-footer{padding:14px 18px;gap:8px;flex-wrap:wrap}.rf-dialog .btn{font-size:12px}.rf-library #rf-prompt-cards,.rf-library #rf-custom-cards{grid-template-columns:1fr}.rf-prompt-card>button:first-child{padding:14px}.rf-prompt-card h4{font-size:14px;line-height:22px}.rf-prompt-card p{font-size:12px;line-height:20px}.rf-library-title{flex-wrap:wrap}.rf-library h3{font-size:16px;line-height:24px}.rf-person-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rf-person-grid span{font-size:12px;padding:9px}.rf-select-popup{max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){.rf-select-popup,.rf-dialog{animation:none}.rf-case-cover>img,.rf-case-apply,.rf-drop{transition:none}.rf-case-cover:hover>img{transform:none}}

.rf-examples-title{margin:0;padding:12px 10px 10px;font-size:14px;line-height:20px;font-weight:400;color:var(--accent);border-bottom:2px solid var(--accent)}
.rf-parameter-tip{position:fixed;z-index:115;width:256px;max-width:calc(100vw - 24px);padding:10px 12px;border:1px solid var(--rf-border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:var(--nav-popup-shadow);font-family:var(--font);font-size:12px;line-height:20px;font-weight:400;pointer-events:none;overflow-wrap:anywhere}
.rf-parameter-tip>span{display:block}.rf-parameter-tip .rf-tip-description{color:var(--muted)}.rf-parameter-tip-model{width:280px}.rf-parameter-tip-ratio{width:176px}
@container application (max-width:650px){.rf-examples-title{padding:10px 6px;font-size:13px}}

@container application (max-width:650px){html[data-language=en] .rf-page-heading{flex-direction:column}html[data-language=en] .rf-heading-actions{flex-direction:row;align-items:center}html[data-language=en] .rf-heading-actions button{white-space:nowrap}}
