.hf-model-studio{max-width:1200px}.hf-model-studio .hf-form{padding:26px;border:1px solid #35405a;border-radius:24px;background:var(--panel,#182032)}.hf-input-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:22px 0}.hf-input-slots:empty{display:none}.hf-upload-slot{display:flex!important;align-items:center;justify-content:center;flex-direction:column;gap:12px;border:1px dashed #74639d;border-radius:20px;min-height:190px;padding:24px;text-align:center;background:var(--surface,#111827);cursor:pointer}.hf-upload-slot:hover{border-color:#c4b5fd;background:#7560b518}.hf-slot-icon{font-size:32px;color:#bcabff}.hf-upload-slot strong{font-size:17px}.hf-upload-slot small{font-size:11px;color:#c8b5ff;margin-right:8px}.hf-upload-slot>span:not(.hf-slot-icon){font-size:12px;color:var(--muted,#a7b1c8)}.hf-upload-slot input{max-width:100%;font:inherit;font-size:12px}.hf-reference-library{padding:18px;border:1px solid #35405a;border-radius:16px;margin-bottom:24px}.hf-model-studio .hf-input-summary{padding:14px 18px;border-right:3px solid #b59bf8;background:#9d7cdf0c}.hf-model-studio textarea{min-height:130px}.hf-model-studio .hf-fields{gap:18px}.hf-model-studio .hf-actions{margin-top:24px}@media(max-width:600px){.hf-model-studio .hf-form{padding:16px}.hf-input-slots{grid-template-columns:1fr}.hf-upload-slot{min-height:160px}}
/* Compact creator studio inspired by the reference; keeps the REVAL shell. */
.compact-studio.hf-page.studio-page{max-width:none;padding:18px 20px 28px}.compact-studio .studio-hero,.compact-studio>.rt-model-meta,.compact-studio>.hf-note,.compact-studio>.studio-tips,.compact-studio>a{display:none!important}.compact-studio .studio-workspace{direction:ltr;grid-template-columns:340px minmax(0,1fr);gap:14px;margin:0;align-items:start}.compact-studio .studio-workspace>section{direction:rtl}.compact-studio .studio-controls{padding:16px;border-radius:20px;max-height:calc(100vh - 135px);overflow:auto;scrollbar-width:thin;position:sticky;top:12px}.compact-studio .studio-panel-title{font-size:16px;margin:0 0 10px;padding:0 0 12px}.compact-studio .studio-tool-nav{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:12px 0;border:0;background:var(--studio-bg);padding:5px;border-radius:12px;overflow:visible}.compact-studio .studio-tool-nav a{font-size:11px;text-align:center;padding:9px 3px;border:0;border-radius:8px}.compact-studio .studio-tool-nav a.active{background:var(--studio-soft);box-shadow:inset 0 0 0 1px #bda7ff55}.compact-studio .compact-input-note{font-size:11px;line-height:1.9;margin:8px 0;padding:8px 10px;border-radius:8px}.compact-studio .hf-form{display:flex;flex-direction:column;gap:10px;padding:0!important;border:0!important}.compact-studio .hf-input-slots{display:grid;grid-template-columns:1fr;gap:10px;margin:0 0 8px}.compact-studio .hf-upload-slot{min-height:135px;padding:15px;gap:7px;border-radius:14px;position:relative;overflow:hidden}.compact-studio .hf-upload-slot strong{font-size:13px}.compact-studio .hf-slot-icon{font-size:24px}.compact-studio .hf-upload-slot input[type=file]{min-height:0!important;padding:0!important;border:0!important;background:none!important;font-size:10px!important}.compact-studio .hf-upload-slot input::file-selector-button{padding:5px 10px;font-size:11px}.compact-studio .hf-upload-slot>span:not(.hf-slot-icon){font-size:10px}.compact-studio .hf-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.compact-studio .hf-fields>label:only-child{grid-column:1/-1}.compact-studio .hf-form textarea{min-height:95px;max-height:200px;font-size:12px}.compact-studio .hf-form>label{margin:0}.compact-studio .compact-advanced{border:1px solid var(--studio-line);border-radius:10px;padding:10px;font-size:12px}.compact-advanced summary{cursor:pointer}.compact-advanced label{display:block;margin-top:10px}.compact-studio .hf-reference-library{margin:0;padding:10px}.compact-studio .hf-reference-library h3{font-size:12px;margin:0}.compact-studio .hf-reference-library p,.compact-studio .hf-files{font-size:10px}.compact-studio .hf-form>.hf-note{font-size:10px;margin:0;line-height:1.8}.compact-studio .compact-generate{position:sticky;bottom:-16px;z-index:3;background:var(--studio-panel);border-top:1px solid var(--studio-line);padding:10px 0 14px;margin-top:8px}.compact-studio .hf-actions{margin:8px 0 0;display:grid;grid-template-columns:1fr}.compact-studio .hf-actions #hf-quote{display:none}.compact-studio .hf-actions button[type=submit]{font-size:14px;min-height:46px;border-radius:12px;background:#b9a3ff!important;color:#171129!important}.compact-studio #hf-live-estimate{margin:0;font-size:11px;text-align:center}.compact-studio .studio-preview{position:static;min-height:calc(100vh - 135px);border-radius:20px;padding:18px;background:radial-gradient(#b29be710 .7px,transparent .7px),var(--studio-bg);background-size:14px 14px}.compact-studio .studio-empty{min-height:460px;aspect-ratio:auto;background:transparent;padding:30px;max-width:100%}.compact-studio .studio-empty:before,.compact-studio .studio-empty:after{display:none}.compact-studio .studio-empty h3{font-size:23px}.compact-studio .studio-empty p{font-size:13px;max-width:390px}.compact-studio .studio-empty-icon{background:var(--studio-soft);border-radius:18px}.compact-history-chip{background:var(--studio-soft);border:1px solid var(--studio-line);padding:8px 15px;border-radius:9px;font:inherit!important;letter-spacing:0!important}.compact-studio .studio-preview-head{border-bottom:1px solid var(--studio-line);padding:0 0 14px;margin-bottom:18px}.compact-studio .studio-results-title{font-size:12px}.compact-reference-preview{width:100%;height:125px;object-fit:contain;border-radius:10px;background:#090c13}.compact-studio .has-reference .hf-slot-icon{display:none}.compact-studio .studio-local-preview video,.compact-studio .studio-local-preview img{max-height:65vh;width:100%;object-fit:contain;border-radius:14px}.compact-studio .hf-status:empty{display:none}@media(min-width:1700px){.compact-studio .studio-workspace{grid-template-columns:370px minmax(0,1fr)}}@media(max-width:1000px){.compact-studio .studio-workspace{grid-template-columns:300px minmax(0,1fr)}}@media(max-width:740px){.compact-studio.hf-page.studio-page{padding:12px}.compact-studio .studio-workspace{grid-template-columns:1fr}.compact-studio .studio-controls{position:static;max-height:none}.compact-studio .studio-preview{min-height:340px}.compact-studio .studio-empty{min-height:300px}.compact-studio .compact-generate{bottom:0}.compact-studio .studio-empty h3{font-size:20px}}
.compact-studio .hf-upload-slot input[type=file]{position:absolute;width:1px;height:1px;opacity:0;min-height:0!important;overflow:hidden}.compact-studio .hf-upload-slot::after{content:'انتخاب فایل';display:block;padding:7px 18px;border-radius:9px;border:1px solid var(--studio-line);background:var(--studio-soft);color:var(--studio-text);font-size:11px}.compact-studio .hf-upload-slot:focus-within{outline:2px solid var(--studio-accent);outline-offset:3px}

.compact-studio .studio-panel-title{display:flex;align-items:center;gap:10px}.compact-tool-logo{width:32px;height:32px;object-fit:contain;border-radius:9px;background:#d6fa00;padding:4px;flex-shrink:0}
