.reference-hover-preview{z-index:10000;pointer-events:none;opacity:.7;filter:drop-shadow(0 8px 20px #0008);justify-content:center;align-items:center;display:flex;position:fixed}.reference-hover-preview img{object-fit:contain;border:1px solid #ffffff30;border-radius:12px;width:auto;max-width:100%;height:auto;max-height:100%;display:block}
.studio-prompt-editor{min-width:0}.prompt-inline-row{align-items:flex-start;gap:10px;display:flex}.prompt-upload{color:#f3f3f6;cursor:pointer;background:0 0;border:1px dashed #62636e;border-radius:12px;flex:0 0 42px;height:42px;font-size:26px}.prompt-upload:disabled{opacity:.4;cursor:default}.prompt-highlight-input{flex:1;min-width:0;position:relative}.prompt-highlight-input textarea,.prompt-highlight-mirror{box-sizing:border-box;width:100%;font:400 15px/1.65 var(--font-studio),sans-serif;letter-spacing:normal;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:4;text-align:left;scrollbar-gutter:stable;border:0;margin:0;padding:8px 10px}.prompt-highlight-input textarea{resize:vertical;color:#0000;caret-color:#fff;background:0 0;outline:0;height:102px;min-height:80px;max-height:34dvh;display:block;position:relative;overflow:auto}.prompt-highlight-input textarea::placeholder{color:#a7a9b6}.prompt-highlight-input textarea::selection{color:#fff;background:#53647f}.prompt-highlight-mirror{color:#f1f1f4;pointer-events:none;position:absolute;inset:0;overflow:auto}.prompt-highlight-input :is(textarea,.prompt-highlight-mirror)::-webkit-scrollbar{width:10px;height:10px}.prompt-highlight-mirror::-webkit-scrollbar-thumb{background:0 0}.prompt-highlight-input textarea::-webkit-scrollbar-thumb{background:#626472;border:2px solid #1b1c22;border-radius:6px}.prompt-highlight-mirror mark{color:var(--reference-color);background:color-mix(in srgb,var(--reference-color) 17%,transparent);text-decoration:underline;-webkit-text-decoration-color:color-mix(in srgb,var(--reference-color) 60%,transparent);text-decoration-color:color-mix(in srgb,var(--reference-color) 60%,transparent);text-underline-offset:3px;border-radius:3px}.prompt-highlight-mirror mark[data-attached=false]{text-decoration-style:wavy}.prompt-editor-toolbar{justify-content:flex-end;align-items:center;gap:12px;margin:4px 0 8px;display:flex}.prompt-editor-toolbar button{color:#d7d8de;white-space:nowrap;cursor:pointer;background:#23242a;border:1px solid #45464e;border-radius:8px;flex:none;min-height:34px;padding:0 12px;font-family:inherit;font-size:11px;font-weight:650;line-height:1.2;transition:background .15s,border-color .15s,color .15s}.prompt-editor-toolbar button:hover{color:#fff;background:#2c2d34;border-color:#5c5d67}.prompt-editor-toolbar button:active{background:#1e1f25}.prompt-editor-toolbar>span{white-space:nowrap;color:#989baa;font-variant-numeric:tabular-nums;flex:none;font-size:10px}.prompt-reference-strip{scrollbar-width:thin;flex-shrink:0;gap:10px;margin:0 0 5px;padding:5px 3px 8px;display:flex;overflow-x:auto}.prompt-reference{flex:0 0 68px;width:68px;position:relative}.prompt-reference-insert{border:1px solid var(--reference-color);cursor:pointer;background:#14151a;border-radius:9px;width:68px;padding:0;display:block;overflow:hidden}.prompt-reference-insert img{object-fit:cover;width:100%;height:46px;display:block}.prompt-reference-insert span{color:var(--reference-color);padding:3px 0;font-size:9px;font-weight:650;display:block}.prompt-reference-remove{color:#fff;cursor:pointer;background:#1b1c22;border:1px solid #70727b;border-radius:50%;place-items:center;width:23px;height:23px;padding:0;line-height:1;display:grid;position:absolute;top:-3px;right:-3px}.prompt-reference-warning{color:#f0b882;margin:3px 0 8px;font-size:11px;line-height:1.5}.prompt-reference-warning button{color:inherit;cursor:pointer;background:0 0;border:0;padding:2px 5px;text-decoration:underline}.prompt-expanded-dialog{--pe-left:28px;--pe-right:20px;box-sizing:border-box;color:#f1f1f4;background:#141519;border:1px solid #2d2e35;border-radius:20px;width:min(1040px,100vw - 32px);max-width:none;height:min(760px,86dvh);max-height:calc(100dvh - 24px);margin:auto;padding:0;position:fixed;inset:0;overflow:hidden;box-shadow:0 40px 120px #000c}.prompt-expanded-dialog[open]{flex-direction:column;gap:0;animation:.16s ease-out prompt-editor-open;display:flex}.prompt-expanded-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#07080bd9}.prompt-expanded-dialog header{padding:16px var(--pe-right) 4px var(--pe-left);flex-shrink:0;justify-content:space-between;align-items:center;gap:14px;display:flex}.prompt-expanded-dialog h2{font:600 15px/1.4 var(--font-studio),sans-serif;color:#e9e9ee;margin:0}.prompt-dialog-close{color:#fff;cursor:pointer;background:#282a33;border:1px solid #484a57;border-radius:10px;flex:0 0 38px;width:38px;height:38px;font-size:24px}.prompt-expanded-dialog .prompt-highlight-input{background:0 0;border:0;border-radius:0;flex:1;min-height:80px;margin:0;overflow:hidden}.prompt-expanded-dialog .prompt-highlight-input textarea{resize:none;height:100%;max-height:none}.studio-prompt-editor .prompt-expanded-dialog .prompt-highlight-input textarea,.studio-prompt-editor .prompt-expanded-dialog .prompt-highlight-mirror{padding:12px var(--pe-left) 20px;font-size:17px;line-height:1.7}.prompt-expanded-dialog footer{padding:14px var(--pe-right) 18px var(--pe-left);background:0 0;border:0;border-top:1px solid #25262d;flex-shrink:0;justify-content:space-between;align-items:center;min-height:42px;margin:0;display:flex}.prompt-expanded-dialog footer span{color:#a9acb9;font-size:12px}.prompt-expanded-dialog footer button{color:#fff;cursor:pointer;background:#d3133b;border:0;border-radius:10px;min-height:42px;padding:0 26px;font-weight:650}.studio-prompt-editor button:focus-visible,.prompt-highlight-input:focus-within{outline-offset:2px;outline:2px solid #a6badc}.media-reference-library button[aria-pressed=true]{border-color:var(--reference-color,#f13d65)}@keyframes prompt-editor-open{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media (max-width:620px){.prompt-editor-toolbar button{min-height:44px}.prompt-expanded-dialog{--pe-left:18px;--pe-right:14px;border-radius:16px;width:calc(100vw - 16px);height:88dvh}.studio-prompt-editor .prompt-expanded-dialog .prompt-highlight-input textarea,.studio-prompt-editor .prompt-expanded-dialog .prompt-highlight-mirror{padding:8px var(--pe-left) 14px;font-size:16px}.prompt-highlight-input textarea,.prompt-highlight-mirror{font-size:16px}.prompt-highlight-input textarea{height:90px;max-height:28dvh}}@media (prefers-reduced-motion:reduce){.prompt-expanded-dialog[open]{animation:none}.prompt-editor-toolbar button{transition:none}}.prompt-media-icon,.reference-library-media{color:#e6edff;background:#252a32;flex-direction:column;justify-content:center;align-items:center;width:64px;height:48px;font-size:24px;display:flex!important}.prompt-media-icon small,.reference-library-media small{font-size:10px;line-height:14px}.reference-library-media{height:64px}.reference-media-help{color:#b9bec9;margin:6px 0 10px;font-size:11px;line-height:1.6}.reference-media-help span{color:#969dab;display:block}.reference-groups,.reference-groups.has-media{scrollbar-width:thin;flex-shrink:0;gap:14px;min-width:0;margin:0 0 4px;display:flex;overflow-x:auto}.reference-groups:not(:has(.reference-group)){display:none}.reference-group{background:0 0;border:0;flex:none;min-width:0;max-width:100%;padding:0}.reference-group-heading{align-items:center;height:18px;display:flex}.reference-group-heading>span{color:#a9adba;align-items:center;gap:4px;font-size:10px;display:flex}.reference-group-heading svg{width:12px;height:12px}.reference-group .prompt-reference-strip{gap:8px;margin:0;padding:5px 4px 2px}.reference-group .prompt-reference{touch-action:none;flex:0 0 60px;width:60px;padding-bottom:0}.reference-group .prompt-reference[data-upload-status=error]{padding-bottom:17px}.reference-group .prompt-reference-insert{width:60px}.reference-group .prompt-reference-insert img,.reference-group .prompt-media-icon{object-fit:cover;width:58px;height:40px}.prompt-reference.is-dragging{opacity:.55}.prompt-reference.is-drop-target .prompt-reference-insert{outline:2px solid var(--reference-color);outline-offset:2px;transform:translateY(-2px)}.prompt-reference-insert{transition:transform .15s,outline-color .15s}.reference-upload-progress{box-sizing:border-box;flex-direction:column;justify-content:center;gap:6px;height:46px;padding:5px!important;display:flex!important}.reference-upload-progress progress{width:100%;height:3px;accent-color:var(--reference-color)}.reference-retry{bottom:0;color:#ffb6c0;cursor:pointer;background:0 0;border:0;height:17px;padding:0;font-size:10px;position:absolute;inset-inline:0}.prompt-reference[data-upload-status=error] .prompt-reference-insert{border-color:#fa8197}.prompt-media-icon svg{width:23px;height:23px}.prompt-expanded-dialog .reference-groups{max-height:180px;overflow-y:auto}.media-reference-library.reference-library-groups{scrollbar-width:thin;flex-direction:column;flex-shrink:0;gap:5px;min-height:0;max-height:216px;padding:4px 0 8px;display:flex;overflow-y:auto}.reference-library-group{grid-template-columns:82px minmax(0,1fr);align-items:center;min-width:0;min-height:24px;display:grid}.reference-library-group>h3{color:#a9adba;margin:0;font-size:10px;font-weight:500}.reference-library-group-items{scrollbar-width:thin;gap:8px;min-width:0;padding:5px 4px;display:flex;overflow-x:auto}.reference-library-group-items:empty:after{content:"Пока нет файлов";color:#777d8c;font-size:10px}.reference-library-group-items .media-reference-tile{flex:0 0 48px;width:48px;height:48px}.reference-library-group-items .media-reference-tile>button:first-child,.reference-library-group-items .media-reference-tile img,.reference-library-group-items .reference-library-media{object-fit:cover;width:48px;height:48px}@media (prefers-reduced-motion:reduce){.prompt-reference-insert{transition:none}}.prompt-expanded-dialog .reference-groups{margin-bottom:0}.image-composer>.media-composer-body:not([hidden]){scrollbar-width:thin;flex:auto;min-height:0;padding:2px 2px 0;display:block;overflow:auto}.image-composer .prompt-inline-row textarea{height:100px}.prompt-editor-toolbar{justify-content:space-between;gap:8px;margin:2px 0 6px}.prompt-editor-expand-group{align-items:center;gap:10px;margin-left:auto;display:flex}.prompt-editor-expand-group>span{color:#989baa;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:10px}.reference-upload-actions{flex-shrink:0;gap:5px;display:flex}.reference-upload-actions button,.prompt-editor-toolbar .reference-upload-actions button,.prompt-expanded-dialog footer .reference-upload-actions button{color:#d4d7e1;cursor:pointer;background:0 0;border:1px dashed #5a5d6a;border-radius:9px;justify-content:center;align-items:center;gap:2px;width:40px;min-width:0;height:38px;min-height:38px;padding:0;display:flex;position:relative}.reference-upload-actions button svg{width:17px;height:17px}.reference-upload-actions button span{font-size:16px;font-weight:500}.reference-upload-actions button:hover:not(:disabled){color:#fff;background:#ffffff09;border-color:#ee5278}.reference-upload-actions button:disabled{opacity:.4;cursor:default}.prompt-expanded-dialog .reference-groups{max-height:112px}.prompt-expanded-dialog footer{gap:10px}@media (max-width:700px){.image-composer .prompt-inline-row textarea{height:80px}.reference-library-group{grid-template-columns:68px minmax(0,1fr)}.reference-library-group>h3{font-size:9px}.reference-upload-actions{gap:4px}.reference-upload-actions button,.prompt-editor-toolbar .reference-upload-actions button,.prompt-expanded-dialog footer .reference-upload-actions button{width:36px;height:40px;min-height:40px}.prompt-editor-expand-group{gap:6px}.prompt-editor-expand-group>button{min-height:40px;padding:0 8px;font-size:10px}.prompt-expand-long{display:none}.prompt-editor-expand-group>span{font-size:9px}.prompt-expanded-dialog footer>button{padding:0 14px}}.reference-library-group-items .media-reference-tile>button:first-child{box-sizing:border-box;min-width:48px;min-height:48px;padding:0;overflow:hidden}.reference-library-group-items .reference-library-media{width:46px;height:46px;font-size:18px}.reference-library-group-items .reference-library-media small{font-size:9px}.reference-library-group-items .media-reference-tile.is-removing{flex-basis:0;width:0;margin-right:-8px}.reference-groups,.reference-groups.has-media,.reference-group .prompt-reference-strip,.media-reference-library.reference-library-groups,.reference-library-group-items{scrollbar-width:none}.reference-groups::-webkit-scrollbar{width:0;height:0;display:none}.reference-group .prompt-reference-strip::-webkit-scrollbar{width:0;height:0;display:none}.media-reference-library.reference-library-groups::-webkit-scrollbar{width:0;height:0;display:none}.reference-library-group-items::-webkit-scrollbar{width:0;height:0;display:none}.reference-group .prompt-reference-strip,.reference-groups,.reference-groups.has-media{overflow-y:hidden}.prompt-compose-field{background:#1b1c21;border:1px solid #3c3d45;border-radius:16px;flex-direction:column;min-width:0;padding:10px 10px 4px;transition:border-color .18s,background .18s;display:flex}.prompt-compose-field:focus-within{background:#1e1f25;border-color:#5b5c67}.prompt-compose-field .prompt-inline-row{flex:none}.prompt-compose-field .reference-groups{border-top:1px solid #2b2c33;margin:6px 0 0;padding-top:6px}.prompt-compose-field .reference-groups:not(:has(.reference-group)){display:none}.prompt-compose-field .prompt-editor-toolbar{justify-content:space-between;gap:10px;margin:6px 0 4px}.prompt-compose-field .prompt-editor-toolbar .reference-upload-actions{margin-right:auto}.prompt-compose-field .prompt-editor-expand-group{align-items:center;gap:10px;display:flex}.prompt-compose-field .prompt-editor-toolbar button{min-height:38px}@media (max-width:620px){.prompt-compose-field{border-radius:14px;padding:8px 8px 2px}.prompt-compose-field .prompt-editor-toolbar{gap:8px}.prompt-compose-field .prompt-editor-toolbar button,.prompt-compose-field .prompt-editor-toolbar .reference-upload-actions button{height:44px;min-height:44px}}.studio-prompt-editor .prompt-compose-field:focus-within{border-color:#a6badc;box-shadow:0 0 0 1px #a6badc}.studio-prompt-editor .prompt-compose-field .prompt-highlight-input:focus-within,.studio-prompt-editor .prompt-compose-field .prompt-highlight-input textarea:focus,.studio-prompt-editor .prompt-compose-field .prompt-highlight-input textarea:focus-visible{outline:none}.studio-prompt-editor .prompt-compose-field .prompt-highlight-input textarea{min-height:calc(4lh + 16px);max-height:min(34dvh,320px)}@supports (field-sizing:content){.studio-prompt-editor .prompt-compose-field .prompt-highlight-input textarea{field-sizing:content;height:auto}}.video-panel .studio-prompt-editor .prompt-compose-field .prompt-highlight-input textarea{max-height:min(38dvh,360px)}.studio-prompt-editor .prompt-compose-field .prompt-editor-toolbar{margin:2px 0 4px}.studio-prompt-editor .prompt-compose-field .prompt-editor-expand-group>button{color:#b4b7c3;background:0 0;border-color:#0000}.studio-prompt-editor .prompt-compose-field .prompt-editor-expand-group>button:hover{color:#fff;background:#ffffff0f;border-color:#0000}.studio-prompt-editor .prompt-compose-field .prompt-editor-expand-group>span{color:#8d909c;font-size:11px}@media (max-width:620px){.studio-prompt-editor .prompt-compose-field .prompt-highlight-input textarea{min-height:calc(3lh + 16px);max-height:28dvh}.video-panel .studio-prompt-editor .prompt-compose-field .prompt-highlight-input textarea{min-height:calc(4lh + 16px);max-height:40dvh}.studio-prompt-editor .prompt-compose-field .prompt-editor-expand-group>span{font-size:10px}}.prompt-expanded-dialog .prompt-highlight-input:focus-within{box-shadow:none;border-color:#0000;outline:none}.prompt-expanded-dialog .prompt-highlight-input textarea:focus,.prompt-expanded-dialog .prompt-highlight-input textarea:focus-visible{outline:none}.prompt-expanded-dialog footer>span{margin-left:auto}.prompt-expanded-dialog footer .reference-upload-actions button,.prompt-expanded-dialog footer>button{height:42px;min-height:42px}@media (max-width:620px){.prompt-expanded-dialog footer .reference-upload-actions button,.prompt-expanded-dialog footer>button{height:44px;min-height:44px}}.prompt-expanded-dialog .reference-groups{padding:12px var(--pe-left) 6px;border-top:1px solid #25262d;margin:0}.prompt-expanded-dialog:has(.reference-group) footer{border-top:0;padding-top:8px}.prompt-expanded-dialog .prompt-reference-warning{padding:8px var(--pe-left) 0;margin:0}.prompt-expanded-dialog .reference-group .prompt-reference-strip{padding-inline:0}
