*{box-sizing:border-box}body{font:16px var(--font-sans);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:0 0;border:0}button,a{transition:background .15s,color .15s}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}button svg,a svg{flex-shrink:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:3px;outline:2px solid #888}input,textarea{caret-color:#252525}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:#d0d0d0;border:2px solid #fff;border-radius:5px}input::placeholder,textarea::placeholder{color:#767676}input,select,textarea{min-width:0}input,textarea{background:#fff;border:1px solid #dcdcdc;border-radius:7px}input{width:100%;height:42px;padding:0 12px}textarea{padding:12px;line-height:1.65}small{font-size:14px}.sidebar{z-index:40;border-right:1px solid #e9e9e9;flex-direction:column;transition:width .18s;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.brand{white-space:nowrap}.icon-button{color:#737373;border-radius:6px;justify-content:center;align-items:center;min-width:32px;min-height:32px;padding:6px;display:inline-flex}.icon-button:hover{color:#202020;background:#eaeaea}nav{flex-direction:column;gap:3px;display:flex}nav button{text-align:left;white-space:nowrap;align-items:center;gap:11px;padding:9px 12px;display:flex}nav button:hover{background:#ededed}.sidebar-history{flex:1;min-height:0;padding:0 0 12px;overflow-y:auto}.history-heading{padding:0 12px}.history-item{text-align:left;white-space:nowrap;text-overflow:ellipsis;width:100%;display:block;overflow:hidden}.history-item:hover,.history-item.current{background:#ededed}.sidebar-bottom{margin-top:auto}.sidebar.collapsed{padding:16px 8px 12px}.sidebar.collapsed .brand,.sidebar.collapsed nav button span,.sidebar.collapsed .sidebar-history{display:none}.sidebar.collapsed .sidebar-head{justify-content:center;padding:0}.sidebar.collapsed nav button{justify-content:center;padding:10px}.main-shell{transition:margin-left .18s}.topbar{justify-content:space-between;align-items:center;gap:18px;display:flex}.breadcrumb{align-items:center;gap:10px;font-size:14px;display:flex}main{max-width:1550px;margin:auto}.page-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;display:flex}.page-heading h1{letter-spacing:-.7px;font-size:26px;font-weight:500;line-height:1.3}.page-heading p{color:var(--muted);margin-top:9px;font-size:14px;line-height:1.6}.studio-grid{display:grid}.editor-header{justify-content:space-between;align-items:center;display:flex}.field{flex-direction:column;gap:8px;margin-bottom:20px;font-size:14px;display:flex}.field>span:first-child{font-weight:500}.field small{color:var(--muted);font-weight:400;line-height:1.5}.select{align-items:center;width:100%;min-width:0;height:42px;display:flex;position:relative}.select select{appearance:none;cursor:pointer;background:#fff;border:1px solid #dcdcdc;border-radius:7px;width:100%;height:100%;padding:0 32px 0 12px;font-weight:400}.select svg{pointer-events:none;color:#757575;position:absolute;right:12px}.mode-tabs{flex-wrap:wrap;margin-bottom:22px;display:flex}.mode-tabs button{white-space:nowrap;border-radius:5px;flex:auto;padding:7px 8px;font-size:14px}.mode-tabs button:hover{color:#111}.prompt-label{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:14px;display:flex}.prompt-label label{font-weight:500}.prompt-label button{padding:0;font-size:14px}.prompt-label button:hover{color:#111}.prompt-box{border:1px solid #dcdcdc;margin-bottom:22px;overflow:hidden}.prompt-box textarea{resize:vertical;border:0;outline:0;width:100%;padding:13px 13px 0;line-height:1.65;display:block}.prompt-box textarea:focus-visible{outline:none}.prompt-footer{color:#777;justify-content:space-between;align-items:center;padding:2px 8px 7px 13px;font-size:14px;display:flex}.form-grid{grid-template-columns:1fr 1fr;gap:0 14px;display:grid}.input-unit{display:block;position:relative}.input-unit input{padding-right:70px;font-weight:400}.input-unit>span{color:#777;font-size:14px;font-weight:400;position:absolute;top:11px;right:12px}.ratio-options{flex-wrap:wrap;gap:6px;display:flex}.ratio-options button{border:1px solid #dedede;border-radius:6px;justify-content:center;align-items:center;gap:6px;min-width:60px;height:36px;padding:0 8px;font-size:14px;display:flex}.ratio-shape{border:1px solid;border-radius:1px;width:16px;height:10px;display:block}.ratio-shape.portrait{width:9px;height:15px}.ratio-shape.square{width:12px;height:12px}.switch-row{text-align:left;justify-content:space-between;align-items:center;gap:15px;width:100%;padding:0 0 19px;font-size:14px;display:flex}.switch{background:#d3d3d3;border-radius:12px;align-items:center;width:34px;height:20px;padding:3px;display:flex}.switch i{background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .15s}.switch.on i{transform:translate(14px)}.advanced-toggle{color:#666;border-top:1px solid var(--border);align-items:center;gap:8px;width:100%;padding:16px 0;font-size:14px;display:flex}.advanced-toggle svg:last-child{margin-left:auto;transition:transform .15s}.rotated{transform:rotate(180deg)}.advanced{overflow:hidden}.help-text{color:#737373;margin:9px 0 18px;font-size:14px;line-height:1.6}.cost{justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px;font-size:14px;display:flex}.cost>span{color:#737373}.cost strong{font-variant-numeric:tabular-nums;font-weight:500}.cost-note{display:none}.button{white-space:nowrap;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:10px 14px;font-weight:500;display:inline-flex}.button.secondary{border:1px solid #ddd}.generate{width:100%}.save-draft{text-align:center;width:100%;display:block}.save-draft:hover{color:#111}.preview{align-self:stretch;display:flex;overflow:hidden}.preview-top{align-items:center;display:flex}.preview-tabs{gap:22px;height:100%;display:flex}.preview-tabs button{border-bottom:2px solid #0000;align-items:center;gap:6px;height:100%;padding:0;display:flex}.preview-tabs button.selected{border-color:#333}.result-empty{flex:1;justify-content:center;align-items:center;min-height:400px;display:flex}.result-content{max-height:1000px;overflow:auto}.result-content img,.result-content video{border-radius:5px;width:100%}.answer{white-space:pre-wrap;font-size:16px;line-height:1.7}.result-actions{flex-wrap:wrap;gap:8px;padding:15px 0 22px;display:flex}.result-actions button,.result-actions a{border:1px solid #ddd;border-radius:6px;align-items:center;gap:6px;padding:8px;font-size:14px;display:flex}.generated,.references{margin-bottom:20px}.reference-heading{justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px;font-size:14px;display:flex}.reference-heading button{color:#666;align-items:center;gap:5px;font-size:14px;display:flex}.ref-controls{gap:6px;margin:8px 0;display:flex}.ref-controls input{max-width:70px}.references>.select{margin-bottom:8px}.url-input{color:#777;border:1px solid #ddd;border-radius:7px;align-items:center;gap:8px;padding:0 7px 0 11px;display:flex}.url-input input{border:0;outline:none;padding:0;font-size:14px}.asset-row{border-bottom:1px solid var(--border);align-items:center;gap:9px;padding:10px 0;display:flex}.asset-row>img{object-fit:cover;border-radius:5px;width:42px;height:42px}.asset-row>div{flex:1;min-width:0}.asset-row strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500;display:block;overflow:hidden}.asset-row input{color:#737373;border:0;height:28px;padding:2px 0;font-size:14px}.asset-row small{color:#777}.master-link{color:#666;align-items:center;gap:7px;padding:0 0 18px;font-size:14px;display:flex}.code-input{min-height:100px;font:14px/1.6 monospace}.empty{text-align:center;color:#777;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:400px;display:flex}.empty h2,.empty h3{color:#333;font-size:20px;font-weight:500}.empty p{max-width:360px;font-size:16px;line-height:1.6}.library{min-height:70vh}.library-toolbar{border-bottom:1px solid var(--border);gap:15px;padding-bottom:24px;display:flex}.search{flex:1;align-items:center;gap:10px;display:flex}.search input{border:0;outline:none;padding:0}.library-toolbar>.select{width:190px}.library-entry{border-bottom:1px solid var(--border);align-items:center;gap:15px;padding:22px 0;display:flex}.entry-icon{color:#777;flex-shrink:0;place-items:center;width:40px;height:40px;display:grid}.entry-main{text-align:left;flex:1;min-width:0}.entry-main strong{white-space:nowrap;text-overflow:ellipsis;margin-bottom:8px;font-size:16px;font-weight:500;display:block;overflow:hidden}.entry-main span{color:#777;font-size:14px}.drawer-backdrop{z-index:70;background:#0003;position:fixed;inset:0}.drawer{z-index:80;outline:none;width:510px;max-width:100%;padding:28px 30px;position:fixed;inset:0 0 0 auto;overflow:auto;box-shadow:-10px 0 40px #00000012}.drawer-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.drawer>p{color:#777;margin-bottom:25px;font-size:16px;line-height:1.65}.info-note{color:#666;background:#f5f5f5;border-radius:7px;align-items:flex-start;gap:10px;margin:22px 0;padding:14px;display:flex}.info-note svg{flex-shrink:0;margin-top:2px}.info-note p{font-size:14px;line-height:1.65}.master-editor{width:100%;min-height:55vh;font-size:14px;line-height:1.7}.drawer-actions{justify-content:space-between;gap:12px;margin-top:20px;display:flex}.setup-item{border-bottom:1px solid var(--border);gap:16px;padding:23px 0;display:flex}.setup-icon{display:none}.setup-item h3{margin-bottom:10px;font-size:17px;font-weight:500}.setup-item p{color:#777;font-size:16px;line-height:1.6}.setup-status{color:#777;align-items:center;gap:7px;margin-top:12px;font-size:14px;display:flex}.dot{background:#aaa;border-radius:50%;width:6px;height:6px;display:inline-block}.balance-row{flex-wrap:wrap;align-items:center;gap:10px;margin:24px 0;display:flex}.setup-details{margin-top:24px;font-size:14px;line-height:1.7}.setup-details summary{cursor:pointer;font-weight:500}.setup-details p{color:#777;margin:15px 0}.setup-details code{background:#f5f5f5;border-radius:6px;padding:13px;font:14px/1.8 monospace;display:block;overflow:auto}.guide-item{border-bottom:1px solid var(--border);color:#777;padding:23px 0}.guide-item h3{color:#333;margin:12px 0;font-size:19px;font-weight:500}.guide-item p{font-size:16px;line-height:1.7}.telegram-widget{margin-top:16px}.toast,.error-banner{z-index:100;border-radius:8px;align-items:center;gap:10px;font-size:14px;line-height:1.5;display:flex;position:fixed;bottom:22px;box-shadow:0 5px 25px #0002}.toast{color:#fff;background:#292929;max-width:calc(100% - 30px);padding:13px 18px;left:50%;transform:translate(-50%)}.toast svg,.error-banner>svg{flex-shrink:0}.error-banner{max-width:550px;padding:14px 12px 14px 16px;right:22px}.spin{animation:1.2s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.mobile-menu,.mobile-close,.mobile-overlay{display:none}@media (max-width:1150px){.ratio-options button{min-width:54px;padding:0 6px}.prompt-label{flex-wrap:wrap}}@media (max-width:1000px){.result-empty{min-height:420px}}@media (max-width:760px){.sidebar,.sidebar.collapsed{visibility:hidden;z-index:60;transition:transform .18s;transform:translate(-100%)}.sidebar.open{visibility:visible;transform:translate(0)}.sidebar.collapsed .brand,.sidebar.collapsed nav button span,.sidebar.collapsed .sidebar-history{display:block}.sidebar.collapsed nav button{justify-content:flex-start;padding:9px 12px}.sidebar.collapsed .sidebar-head{justify-content:space-between;padding:0 7px}.collapse-toggle{display:none}.mobile-close,.mobile-menu{display:inline-flex}.mobile-overlay{z-index:50;background:#0003;display:block;position:fixed;inset:0}.page-heading{display:none}.prompt-label{flex-wrap:nowrap}.editor-header{padding:0 18px}.drawer{padding:24px 20px}.library-toolbar{flex-direction:column}.library-toolbar>.select{width:100%}.library .page-heading{display:flex}.error-banner{bottom:15px;left:15px;right:15px}.toast{width:max-content}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.sidebar{border-right-color:#d8d8d8;padding-top:21px}.brand{font-size:21px;font-weight:600}nav button{color:#242424;border-radius:7px;min-height:42px;font-size:15px}nav button.active{color:#fff;background:#111}.sidebar-actions button:first-child:hover{color:#fff}.topbar{border-bottom-color:#d5d5d5}.top-connect{font-weight:500}main{padding-top:30px}.editor{border-color:#ccc}.editor-header{border-bottom-color:#d5d5d5}.field>span:first-child,.prompt-label label{color:#222;font-weight:500}.select select,input,textarea{border-color:#c9c9c9;border-radius:6px}.select select{font-size:15px}.select select:hover{border-color:#777}.select select:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#111}.mode-tabs{background:#eee;border-radius:7px;gap:4px;padding:4px}.mode-tabs button{color:#555;font-weight:500}.mode-tabs button.chosen{color:#fff;box-shadow:none;background:#111}.prompt-box{background:#fff;border-color:#bdbdbd;border-radius:7px}.prompt-box:focus-within{border-color:#111;box-shadow:0 0 0 1px #111}.prompt-box textarea{min-height:190px;padding-top:15px;font-size:16px}.prompt-label button{color:#333;text-underline-offset:4px;-webkit-text-decoration:underline #aaa;text-decoration:underline #aaa}.prompt-label button:hover{text-decoration-color:#111}.ratio-options button{color:#555;background:#fff;border-color:#ccc}.ratio-options button.chosen{color:#fff;background:#111;border-color:#111}.switch.on{background:#111}.generate-area{border-top-color:#d5d5d5}.result-empty{font-size:14px}.result-content>.button{border:1px solid #555;margin-top:14px}.library-toolbar,.library-entry{border-color:#d5d5d5}.library .search input{background:0 0}.drawer-heading h2{color:#111}.dot.green{background:#111}.error-banner{color:#111;background:#fff;border:1px solid #333}@media (max-width:1150px){.studio-grid{gap:20px}}@media (max-width:760px){.studio-grid{gap:20px}.preview{min-height:420px}main{padding-top:20px}}.video-task-tabs{border-bottom:1px solid #ddd;gap:20px;margin:-2px 0 18px;display:flex}.video-task-tabs button{color:#777;white-space:nowrap;border-bottom:2px solid #0000;padding:0 0 12px;font-size:14px}.video-task-tabs button[aria-selected=true]{color:#111;border-bottom-color:#111}.video-inputs{flex-direction:column;gap:12px;margin-bottom:17px;display:flex}.frame-inputs{grid-template-columns:1fr 1fr;gap:10px;display:grid}.upload-zone{background:#f7f7f7;border:1px dashed #bdbdbd;border-radius:8px;min-height:145px;transition:background .15s,border-color .15s;position:relative;overflow:hidden}.upload-zone:hover,.upload-zone.drag-over{background:#ededed;border-color:#111}.upload-zone-target{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:9px;width:100%;height:100%;min-height:145px;padding:21px 14px;display:flex}.upload-symbol{background:#fff;border:1px solid #ddd;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;margin-bottom:2px;display:flex}.upload-zone-target strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:14px;font-weight:500;overflow:hidden}.upload-zone-target>span:last-child{color:#737373;font-size:14px;line-height:1.4}.upload-zone-target img{object-fit:contain;border-radius:4px;width:100%;height:74px}.upload-zone .remove-asset{background:#fff;position:absolute;top:5px;right:5px}.media-links{color:#666;margin-bottom:18px;font-size:14px}.media-links summary{cursor:pointer;margin-bottom:10px}.media-links .select{margin-bottom:8px}.frame-inputs .upload-zone-target{padding:20px 9px}.preview-top{border-bottom-color:#ddd}.preview-tabs button.selected{color:#111;border-bottom-color:#111}.result-empty{color:#737373}.result-content .result-actions button:hover,.result-content .result-actions a:hover{background:#f3f3f3}.result-content .empty{color:#737373}.result-content .empty h2,.result-content .empty h3{color:#222}.result-content>.button{color:#222;border-color:#ccc}nav button.active:hover,.mode-tabs button.chosen:hover{color:#fff;background:#111}.ratio-options button.chosen:hover{color:#fff;background:#111;border-color:#111}.video-task-tabs button[aria-selected=true]:hover,.preview-tabs button.selected:hover{color:#111;background:0 0;border-bottom-color:#111}.history-item.current:hover{color:#444;background:#ededed}.login-flow>p{color:#555;font-size:16px;line-height:1.65}.login-flow>p a{color:#111;text-underline-offset:3px;text-decoration:underline}.login-code{letter-spacing:6px;font-variant-numeric:tabular-nums;text-align:center;-webkit-user-select:all;user-select:all;color:#111;background:#fafafa;border:1px solid #ccc;border-radius:8px;margin:24px 0 12px;padding:27px 8px;font-size:38px;font-weight:500}.login-flow .login-expiry{color:#777;text-align:center;margin-bottom:25px;font-size:14px}.login-actions{gap:10px;display:flex}.login-actions>*{flex:1}.login-flow .help-text{margin-top:20px;font-size:14px}.login-retry{text-underline-offset:4px;color:#555;padding:10px 0;font-size:14px;text-decoration:underline}@media (max-width:450px){.login-code{letter-spacing:4px;font-size:32px}.login-actions{flex-direction:column}}.learning{color:#171717;max-width:1280px;margin:0 auto;padding:42px 40px 70px}.learn-heading{border-bottom:1px solid #dedede;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:32px;padding-bottom:32px;display:flex}.learn-heading h1{letter-spacing:-1px;margin:0 0 10px;font-size:30px;font-weight:550}.learn-heading p{color:#666;margin:0;font-size:16px}.learn-sources{color:#555;flex-wrap:wrap;gap:18px;font-size:14px;display:flex}.learn-sources a{text-underline-offset:4px;text-decoration:underline}.learn-layout{grid-template-columns:230px minmax(0,740px);align-items:start;gap:52px;display:grid}.learn-toc{position:sticky;top:90px}.learn-search{color:#666;border:1px solid #d7d7d7;border-radius:7px;align-items:center;gap:8px;padding:10px;display:flex}.learn-search input{color:#111;background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:14px}.learn-group{margin-top:25px}.learn-group h2{color:#777;margin:0 0 9px;padding:0 10px;font-size:14px;font-weight:500}.learn-group button{text-align:left;color:#555;border-radius:6px;width:100%;padding:9px 10px;font-size:14px;line-height:1.5;display:block}.learn-group button:hover{color:#111;background:#f1f1f1}.learn-group button[aria-current=page],.learn-group button[aria-current=page]:hover{color:#fff}.learn-article{min-width:0;scroll-margin-top:90px}.learn-article>header{border-bottom:1px solid #e6e6e6;margin-bottom:30px;padding-bottom:26px}.learn-source{color:#777;margin:0 0 14px;font-size:14px}.learn-article>header h1{letter-spacing:-1.1px;margin:0;font-weight:550}.learn-prose{color:#444;font-size:16px;line-height:1.85}.learn-prose h2,.learn-examples>h2{letter-spacing:-.35px;color:#111;margin:36px 0 14px;font-size:21px;font-weight:550;line-height:1.4}.learn-prose h2:first-child{margin-top:0}.learn-prose h3{color:#111;margin:25px 0 10px;font-size:18px}.learn-prose p{margin:0 0 16px}.learn-prose ul{margin:0 0 20px;padding-left:23px}.learn-prose li{margin:7px 0}.learn-prose strong{color:#222;font-weight:600}.learn-table{border:1px solid #ddd;border-radius:7px;margin:20px 0 28px;overflow:auto}.learn-table table{border-collapse:collapse;text-align:left;width:100%;font-size:15px;line-height:1.65}.learn-table th{color:#222;background:#f6f6f6;font-weight:500}.learn-table th,.learn-table td{vertical-align:top;border-bottom:1px solid #e5e5e5;padding:13px 16px}.learn-table tr:last-child td{border-bottom:0}.learn-examples{margin-top:36px}.learn-prompt{background:#fff;border:1px solid #d4d4d4;border-radius:8px;margin:12px 0}.learn-prompt summary{cursor:pointer;align-items:center;gap:12px;padding:19px 20px;font-size:16px;font-weight:500;list-style:none;display:flex}.learn-prompt summary::-webkit-details-marker{display:none}.learn-open-label{color:#777;margin-left:auto;font-size:14px;font-weight:400}.learn-prompt[open] .learn-open-label{display:none}.learn-prompt-body{border-top:1px solid #e5e5e5;padding:20px}.learn-prompt pre{white-space:pre-wrap;overflow-wrap:anywhere;color:#444;max-height:580px;margin:20px 0 26px;padding-right:14px;font-family:inherit;font-size:16px;line-height:1.8;overflow:auto}.learn-prompt-actions{flex-wrap:wrap;gap:10px;display:flex}.learn-lang{border-bottom:1px solid #ddd;gap:4px;display:flex}.learn-lang button{color:#777;border-bottom:2px solid #0000;padding:8px 13px 12px;font-size:14px}.learn-lang button[aria-pressed=true]{color:#111;border-bottom-color:#111}.learn-next{border-top:1px solid #ddd;justify-content:space-between;gap:25px;margin-top:48px;padding-top:24px;display:flex}.learn-next button{text-align:left;max-width:48%;font-size:16px;line-height:1.6}.learn-next span{color:#777;margin-bottom:5px;font-size:14px;display:block}.learn-no-results{padding:45px 0}.learn-no-results p{color:#666;margin:15px 0 25px;font-size:16px}@media (min-width:1500px){.learn-layout{gap:72px}.learning{padding-top:50px}}@media (max-width:1100px){.learning{padding:30px 25px}.learn-layout{grid-template-columns:200px minmax(0,1fr);gap:28px}.learn-heading{flex-direction:column;align-items:flex-start}.learn-article>header h1{font-size:29px}}@media (max-width:760px){.learning{padding:25px 20px 50px}.learn-layout{grid-template-columns:1fr;gap:30px}.learn-toc{position:static}.learn-toc nav{gap:18px;max-height:240px;padding-bottom:10px;display:flex;overflow:auto}.learn-group{min-width:190px;margin-top:18px}.learn-heading{margin-bottom:24px}.learn-prompt summary,.learn-prompt-body{padding:16px}.learn-prompt-actions .button{justify-content:center;width:100%}}.learn-group button,.learn-next button,.learn-prompt summary{white-space:normal;overflow-wrap:break-word}.learn-toc{scrollbar-width:thin;max-height:calc(100vh - 115px);padding-right:4px;overflow-y:auto}@media (max-width:760px){.learn-toc{max-height:none;overflow:visible}}.direct-media{border-top:1px solid #ddd;margin:18px 0 24px;padding-top:18px}.direct-media h3{color:#222;margin:0 0 16px;font-size:16px;font-weight:500}.direct-media .ref-controls{grid-template-columns:1fr 1fr;gap:12px;margin:0;display:grid}.direct-media .ref-controls .field{min-width:0}.direct-media .ref-controls input{background:#fff;border:1px solid #ccc;border-radius:6px;width:100%;height:42px;padding:9px 12px;font-size:16px}.direct-media .url-input{margin-top:4px}.direct-media .add-media-link{color:#111;flex-shrink:0;padding:8px;font-size:14px;font-weight:500}.direct-media .add-media-link:disabled{color:#888;cursor:default}.media-link-hint{color:#666;margin:10px 0 0;font-size:14px;line-height:1.6}.social-import{border:1px solid #d5d5d5;border-radius:7px;margin:18px 0}.social-import summary{cursor:pointer;white-space:normal;align-items:center;gap:9px;padding:15px;font-size:14px;font-weight:500;list-style:none;display:flex}.social-import summary::-webkit-details-marker{display:none}.social-import-body{border-top:1px solid #ddd;padding:16px}.social-import-body>label{color:#444;margin-bottom:10px;font-size:14px;display:block}.social-import .url-input input{min-width:0}.social-import .add-media-link{padding:8px;font-size:14px}.social-import .add-media-link:disabled{opacity:.5}.imported-media{border-top:1px solid #ddd;margin-top:22px;padding-top:20px}.imported-media>strong{overflow-wrap:anywhere;font-size:16px;font-weight:500;line-height:1.5}.imported-media video{background:#111;border-radius:5px;width:100%;max-height:260px;margin-top:14px;display:block}.clip-fields{grid-template-columns:1fr 1fr;gap:14px;margin-top:16px;display:grid}.clip-fields label{color:#444;min-width:0;font-size:14px}.clip-fields input{border:1px solid #ccc;border-radius:5px;width:100%;margin-top:8px;padding:10px;font-size:16px;display:block}.clip-current-time{text-underline-offset:4px;padding:12px 0;font-size:14px;text-decoration:underline}.imported-media>.button{justify-content:center;width:100%;margin-top:15px}.import-status{align-items:center;gap:9px;margin-top:18px;font-size:14px;line-height:1.6;display:flex}.import-error{color:#a12626;margin:16px 0 0;font-size:14px;line-height:1.6}.preserve-audio{border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin:24px 0;padding:17px 0}.preserve-audio .switch-row{width:100%;font-size:16px}.preserve-audio p{color:#666;margin:12px 0 0;font-size:14px;line-height:1.6}.audio-render-state{color:#444;padding:16px 0;font-size:16px}.audio-render-state p{align-items:center;gap:9px;line-height:1.6;display:flex}.audio-render-state .button{margin-top:15px}.video-form{flex-direction:column;display:flex}.editor-body>fieldset{border:0;min-width:0;margin:0;padding:0}.compact-model{display:flex}.compact-model select{color:#111;border:0}.compact-task{display:flex}.compact-task button{border-bottom:2px solid #0000;padding:3px 0 13px}.compact-task button[aria-selected=true],.compact-task button[aria-selected=true]:hover{color:#111;background:0 0;border-bottom-color:#111}.compact-field{color:#444;flex-direction:column;gap:9px;min-width:0;font-size:14px;line-height:1.45;display:flex}.compact-field input,.compact-field select,.compact-field textarea,.reference-role{color:#111;background:#fff;border:1px solid #ccc;border-radius:6px;width:100%;min-width:0;padding:10px 11px;font-size:16px}.compact-field textarea{resize:vertical;min-height:135px;line-height:1.6}.compact-prompt textarea{max-height:380px}.compact-source{min-width:0}.source-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.source-heading>label,.compact-subtitle{color:#444;font-size:14px}.source-options{gap:12px;display:flex}.source-options button{color:#777;padding:4px 0;font-size:14px}.source-options button[aria-pressed=true],.source-options button[aria-pressed=true]:hover{color:#111;text-underline-offset:5px;background:0 0;text-decoration:underline}.compact-drop{white-space:normal;justify-content:center;align-items:center;gap:12px;width:100%;padding:24px 15px;line-height:1.5;display:flex}.compact-frames{grid-template-columns:1fr 1fr;display:grid}.compact-frames .compact-drop{flex-direction:column}.compact-asset{border:1px solid #ddd;border-radius:6px;align-items:center;gap:10px;min-width:0;padding:12px;font-size:14px;display:flex}.compact-asset>div{flex:1;min-width:0}.compact-asset strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;display:block;overflow:hidden}.compact-asset span{color:#666;margin-top:4px;display:block}.compact-asset>img{object-fit:cover;border-radius:4px;width:40px;height:40px}.compact-asset>input{background:0 0;border:0;width:100%;min-width:0;font-size:14px}.compact-settings{display:grid}.compact-check{flex-wrap:wrap;align-items:center;gap:10px;line-height:1.5;display:flex}.compact-check input{flex:none;width:17px;height:17px}.compact-check span{color:#777;width:100%;margin-left:27px}.compact-advanced{border-top:1px solid #ddd}.compact-advanced summary{cursor:pointer;list-style:none}.compact-advanced summary::-webkit-details-marker{display:none}.compact-advanced summary:after{content:"+";float:right;font-size:18px;line-height:20px}.compact-advanced[open] summary:after{content:"−"}.compact-advanced>div{flex-direction:column;gap:18px;padding-top:20px;display:flex}.compact-references{flex-direction:column;gap:10px;display:flex}.compact-references>.button{align-self:flex-start;font-size:14px}.reference-role{margin-top:7px;font-size:14px}.compact-text-button{text-align:left;text-underline-offset:4px;color:#555;font-size:14px;text-decoration:underline}.compact-import.social-import{border:0;margin:0}.compact-import .social-import-body{border:0;padding:0}.compact-import .url-input{margin:0}.compact-import .clip-fields select{border:1px solid #ccc;border-radius:5px;width:100%;margin-top:8px;padding:10px;font-size:16px}.generate-area{padding-top:18px}@media (min-width:1050px){.studio-grid{grid-template-columns:minmax(370px,440px) minmax(0,1fr)}}@media (max-width:500px){.compact-task{gap:16px}.compact-task button{font-size:14px}.compact-frames{grid-template-columns:1fr 1fr}.video-form{gap:18px}.compact-model select{max-width:75%}}.compact-input-tabs{border:1px solid #d5d5d5;gap:3px;display:flex}.compact-input-tabs button{color:#666;flex:1;min-width:0;padding:8px 5px;font-size:14px}.compact-edit-inputs{grid-template-columns:1fr 1fr;min-width:0;display:grid}.compact-edit-inputs>section{min-width:0}.compact-edit-inputs .source-heading{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:8px}.compact-edit-inputs .replacement-source .source-heading{justify-content:flex-start}.compact-edit-inputs .compact-drop{flex-direction:column;min-height:100px;padding:18px 8px}.compact-source-stack{flex-direction:column;gap:18px;display:flex}.replacement-item{margin-top:10px}.replacement-item .compact-asset{padding:9px}.replacement-item .reference-role{font-size:14px}.compact-edit-inputs .compact-asset{flex-wrap:wrap}.compact-edit-inputs .compact-asset>div{min-width:65px}.compact-edit-inputs .compact-asset .icon-button{margin-left:auto}.reference-limit{color:#666;font-size:14px}.replacement-list{scrollbar-width:thin;max-height:280px;overflow-y:auto}.reference-index{color:#555;margin-bottom:6px;font-size:14px;display:block}.replacement-source .source-heading{justify-content:flex-start}.replacement-item .compact-asset>div{display:none}.replacement-item .compact-asset>img{width:72px;height:60px}.replacement-item .compact-asset{justify-content:space-between}.compact-drop:disabled{cursor:default;opacity:.5}@font-face{font-family:Onest;src:url(/fonts/Onest.ttf)format("truetype");font-style:normal;font-weight:100 900;font-display:swap}@font-face{font-family:Unbounded;src:url(/fonts/Unbounded.ttf)format("truetype");font-style:normal;font-weight:200 900;font-display:swap}:root{--bg:#f3f3f3;--ink:#181818;--muted:#696969;--border:#d6d6d6;--soft:#eee;--font-sans:Onest,sans-serif}body{background:var(--bg);font-family:Onest,sans-serif}::selection{color:#fff;background:#181818}button,input,select,textarea{font-family:Onest,sans-serif}:focus-visible{outline-offset:3px;outline:2px solid #737373}.sidebar{color:#f3f3f3;background:#191919;border:0;width:224px;padding:30px 16px 18px}.sidebar-head{height:44px;margin-bottom:40px;padding:0 7px}.brand{color:#fff;letter-spacing:-1px;align-items:baseline;gap:9px;display:flex}.brand-mark{font-family:Unbounded,sans-serif;font-size:28px;font-weight:700;line-height:1}.brand-type{letter-spacing:-.4px;color:#b8b8b8;font-family:Onest,sans-serif;font-size:17px;font-weight:400}.sidebar .icon-button{color:#a4a4a4;border-radius:3px}.sidebar .icon-button:hover{color:#fff;background:#2d2d2d}.sidebar nav button{color:#c1c1c1;border-radius:3px;gap:13px;min-height:43px;padding:10px 12px;font-size:15px}.sidebar nav button svg{stroke-width:1.5px}.sidebar nav button:hover{color:#fff;background:#2b2b2b}.sidebar nav button.active,.sidebar nav button.active:hover{color:#171717;background:#f3f3f3}.sidebar-actions{border-bottom:1px solid #363636;margin-bottom:22px;padding-bottom:26px}.sidebar-actions button:first-child{color:#fff;background:0 0;border:1px solid #545454}.sidebar-actions button:first-child:hover{background:#323232;border-color:#787878}.section-nav{gap:7px;margin-bottom:34px}.sidebar-history{padding-top:0}.history-heading{color:#979797;margin-bottom:12px;font-size:14px}.history-item{color:#bbb;border-radius:3px;padding:10px 12px;font-size:14px}.history-item:hover,.history-item.current,.history-item.current:hover{color:#fff;background:#2c2c2c}.sidebar-bottom{border-top:1px solid #363636;padding-top:16px}.sidebar.collapsed{width:76px;padding-left:12px;padding-right:12px}.sidebar.collapsed .brand-mark,.sidebar.collapsed .brand-type{display:none}.sidebar.collapsed .sidebar-actions{padding-bottom:20px}.main-shell{background:var(--bg);margin-left:224px}.main-shell.expanded{margin-left:76px}.topbar{background:var(--bg);border-bottom:1px solid var(--border);height:96px;padding:0 34px}.breadcrumb strong{letter-spacing:-.8px;color:#212121;font-family:Unbounded,sans-serif;font-size:27px;font-weight:500}.top-connect{color:#333;border:1px solid #bcbcbc;border-radius:3px;padding:10px 15px;font-size:14px}.top-connect:hover{color:#fff;background:#232323;border-color:#232323}.studio-grid{align-items:stretch;display:grid}.editor{border-right:1px solid var(--border);min-width:0}.editor-header{border-bottom:1px solid var(--border);background:#fff;padding:0 22px}.section-title{letter-spacing:.01em;color:#666;font-size:14px;font-weight:500}.compact-task{border-color:var(--border)}.compact-task button{color:#767676}.compact-task button[aria-selected=true]{font-weight:600}.compact-edit-inputs{gap:12px}.compact-edit-inputs .source-heading{min-height:50px}.source-heading>label,.compact-field,.compact-subtitle{color:#4c4c4c}.compact-prompt textarea,.compact-field input,.compact-field select,.reference-role{background:#fff;border-color:#cfcfcf;border-radius:3px;font-size:16px}.compact-prompt textarea{height:140px;min-height:140px;padding:12px;line-height:1.55}.compact-prompt textarea:focus{outline-offset:0;border-color:#414141;outline:1px solid #414141}.compact-input-tabs{background:#f1f1f1;border-color:#d4d4d4}.compact-model{border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.compact-check{color:#515151;font-size:14px}.compact-advanced{border-color:var(--border);padding-top:16px}.compact-advanced summary{color:#787878}.generate-area{margin-top:20px}.generate-area .cost{color:#777;font-size:14px}.generate-area .cost strong{color:#383838;font-size:16px;font-weight:500}.button{border-radius:3px;font-size:14px}.button.primary{color:#fff;background:#212121;border:1px solid #212121}.button.primary:hover{background:#3b3b3b}.button.secondary{color:#494949;background:0 0;border-color:#cacaca}.button.secondary:hover{background:#f0f0f0}.generate{letter-spacing:0}.save-draft{color:gray;padding-top:12px}.preview{color:#232323;flex-direction:column;min-width:0;min-height:0;display:flex}.preview-top{border-bottom:1px solid var(--border);flex-shrink:0}.preview-tabs button{color:gray}.preview-tabs button.selected,.preview-tabs button.selected:hover{color:#383838;border-bottom-color:#383838}.preview-tabs span{color:gray;font-size:14px}.preview-stage{flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:530px;display:flex;position:relative}.frame-placeholder{aspect-ratio:16/9;background:#fff;border:1px solid #cbcbcb;flex-direction:column;justify-content:center;align-items:center;gap:15px;width:100%;max-width:440px;display:flex;position:relative}.frame-placeholder:before,.frame-placeholder:after{content:"";border-style:solid;border-color:#979797;width:17px;height:17px;position:absolute}.frame-placeholder:before{border-width:2px 0 0 2px;top:-1px;left:-1px}.frame-placeholder:after{border-width:0 2px 2px 0;bottom:-1px;right:-1px}.frame-placeholder>svg{color:#909090;stroke-width:1px}.frame-placeholder p{color:#7d7d7d;font-size:16px}.frame-ratio{color:#848484;font-size:14px;position:absolute;bottom:13px;right:15px}.source-preview{object-fit:contain;background:0 0;border-radius:0;width:100%;max-height:600px}.source-stills{flex-wrap:wrap;align-self:flex-start;gap:8px;margin-top:20px;display:flex}.source-stills img{object-fit:cover;border:1px solid #bebebe;width:55px;height:55px}.result-content{color:#222;padding:28px}.result-content .answer{color:#353535;font-size:16px;line-height:1.8}.result-content>video{max-height:650px}.result-content .result-actions button,.result-content .result-actions a{color:#424242;background:0 0;border-color:silver;border-radius:3px;font-size:14px}.result-content .empty h3{color:#474747;font-family:Unbounded,sans-serif;font-size:20px}.result-content .empty p{color:#777;font-size:16px}.drawer{background:#fbfbfb;border-left:1px solid #c8c8c8}.drawer-heading h2{letter-spacing:-.6px;font-family:Unbounded,sans-serif;font-size:22px;font-weight:500}.drawer-heading{border-bottom-color:#d0d0d0}.learn-heading h1,.learn-article>header h1,.page-heading h1{letter-spacing:-.7px;font-family:Unbounded,sans-serif}.learn-article>header h1{font-size:28px;line-height:1.4}.learn-group button[aria-current=page],.learn-group button[aria-current=page]:hover{background:#2f2f2f}.library-entry{border-color:#cdcdcd;border-radius:0}.library .page-heading h1{font-size:28px}.library .page-heading p{font-size:16px}.sidebar ::-webkit-scrollbar-thumb{background:#515151;border-color:#191919}@media (min-width:1500px){.topbar{padding:0 40px}.preview-stage{padding:48px}}@media (max-width:1150px){.sidebar{width:200px}.main-shell{margin-left:200px}.studio-grid{grid-template-columns:minmax(340px,380px) minmax(0,1fr)}main{padding:24px}.topbar{padding:0 24px}.editor-body{padding:20px 18px 0}.generate-area{padding:18px}.editor-header{padding:0 18px}.preview-stage{padding:22px}}@media (max-width:1000px){.frame-placeholder{max-width:420px}}@media (max-width:760px){.sidebar,.sidebar.collapsed{width:224px}.main-shell,.main-shell.expanded{margin-left:0}.sidebar.open .brand-mark,.sidebar.open .brand-type{display:inline}.topbar{height:78px;padding:0 20px}.breadcrumb strong{font-size:22px}.top-connect{padding:9px 11px;font-size:14px}main{padding:16px}.studio-grid{min-height:0}.editor-body{padding:20px 18px 0}.sidebar-head{margin-bottom:32px}.preview-top{padding:0 18px}.preview-stage{padding:25px}.drawer-heading h2{font-size:20px}.learn-article>header h1{font-size:25px}}@media (min-width:1001px){.studio-grid{height:calc(100dvh - 152px);min-height:500px}.editor{flex-direction:column;min-height:0;display:flex}.editor-header{flex-shrink:0}.editor-body{scrollbar-width:thin;flex:1;min-height:0;padding-bottom:20px;overflow-y:auto}.generate-area{flex-shrink:0;margin-top:0}.preview,.preview-stage{min-height:0;overflow:hidden}.frame-placeholder{flex-shrink:1;max-width:420px}.source-preview{min-height:0;max-height:100%}.result-content{flex:1;min-height:0;overflow-y:auto}.result-content>video{max-height:calc(100dvh - 330px)}}.compact-advanced summary,.save-draft,.generate-area .cost,.preview-tabs button,.preview-tabs span,.frame-placeholder p,.frame-ratio,.source-options button,.reference-limit{color:#666}.sidebar .history-heading{color:#a5a5a5}.compact-input-tabs button[aria-selected=true],.compact-input-tabs button[aria-selected=true]:hover{color:#fff;background:#202020}.compact-check input{accent-color:#202020}.compact-source .source-options button[aria-pressed=true]{color:#222}.app-header{align-items:center;display:flex}.header-brand{white-space:nowrap;align-items:baseline;gap:8px;display:flex}.header-brand>span{font-family:Unbounded,sans-serif;font-weight:700}.header-brand>small{color:#aaa;font-size:15px;font-weight:400}.app-header nav{flex-direction:row;align-items:stretch;height:100%}.app-header nav button{background:0 0;border:0;border-radius:0;min-height:0;padding:0;position:relative}.app-header nav button:hover{color:#fff;background:0 0}.app-header nav button.active,.app-header nav button.active:hover{background:0 0}.app-header nav button.active:after{content:"";background:#fff;height:2px;position:absolute;bottom:0;left:0;right:0}.header-pages{border-left:1px solid #454545;padding-left:26px;height:24px!important}.app-header .header-pages button.active:after{bottom:-20px}.header-tools{align-items:center;margin-left:auto;display:flex}.header-tools .icon-button{border-radius:3px}.header-tools .icon-button:hover{color:#fff;background:#343434}.header-account{font-size:14px}.header-account:hover{border-color:#fff}.main-shell,.main-shell.expanded{margin-left:0}.editor-header{height:46px}.learning{padding-top:24px}@media (max-width:1000px){.app-header nav{gap:17px}.header-pages{padding-left:20px}.header-tools{gap:3px}.studio-grid{min-height:500px}.editor{border-right:1px solid var(--border);border-bottom:0;flex-direction:column;min-height:0;display:flex}.editor-header{flex-shrink:0}.editor-body{flex:1;min-height:0;overflow-y:auto}.generate-area{flex-shrink:0;margin:0}.preview{min-height:0;overflow:hidden}.preview-stage{min-height:0;padding:25px}.result-content{flex:1;min-height:0;overflow:auto}}@media (max-width:800px){.header-brand small{display:none}.app-header{gap:20px}.header-tools .icon-button[title="Поиск в библиотеке"]{display:none}.app-header nav{gap:15px}.header-pages{padding-left:16px}.header-account{margin-left:3px;padding:7px 10px}.studio-grid{grid-template-columns:330px minmax(0,1fr)}main{padding:15px}}@media (max-width:680px){.app-header{flex-wrap:wrap;min-height:60px}.app-header .header-nav button.active:after{bottom:-10px}.app-header .header-pages{border:0;order:5;gap:22px;width:100%;margin-top:2px;padding:0;height:32px!important}.app-header .header-pages button.active:after{bottom:-10px}.header-tools .icon-button{width:28px;min-width:28px;padding:4px}.header-account{padding:6px 9px;font-size:14px}.editor{border-right:0;border-bottom:1px solid var(--border)}.editor-body{flex:none;max-height:none;overflow:visible}.generate-area{z-index:5;position:sticky;bottom:0}.preview{min-height:370px}.preview-stage{min-height:320px}.preview-top{height:46px}.result-content{overflow:visible}.frame-placeholder{max-width:380px}.learning{padding:22px 6px 40px}}.higgs-source-stack{flex-direction:column;display:flex}.higgs-source-stack .source-heading{flex-direction:row;align-items:center;min-height:0}.higgs-source-stack .compact-source .compact-drop{padding:16px}.higgs-source-stack .replacement-source>.compact-drop{flex-direction:column;gap:8px;padding:18px}.higgs-source-stack .replacement-source>.compact-drop.has-references{padding:9px}.higgs-source-stack .replacement-list{scrollbar-width:thin;gap:10px;max-height:none;display:flex;overflow:auto hidden}.higgs-source-stack .replacement-item{flex:0 0 145px;min-width:0;padding-bottom:5px}.higgs-source-stack .replacement-item .compact-asset{border-radius:3px;padding:0;display:block;position:relative;overflow:hidden}.higgs-source-stack .replacement-item .compact-asset>img{object-fit:cover;border-radius:0;width:100%;height:96px;display:block}.higgs-source-stack .replacement-item .compact-asset>.icon-button{background:#fff;border:1px solid #ccc;border-radius:3px;width:26px;min-width:26px;height:26px;min-height:26px;padding:4px;position:absolute;top:3px;right:3px}.higgs-source-stack .replacement-item .reference-role{height:37px;margin-top:7px;padding:8px;font-size:14px}.higgs-source-stack .reference-limit{margin-left:auto}.extend-references .compact-references>.button{border-style:dashed;justify-content:center;width:100%;padding:16px}.app-header{border-bottom-color:#303133;flex-wrap:nowrap;gap:22px;min-height:44px;padding:0 16px}.header-brand>span{letter-spacing:-.8px;font-size:17px;line-height:1}.app-header nav{gap:20px}.app-header nav button{color:#8a8c8d;font-size:14px;font-weight:500}.app-header nav button.active,.app-header nav button.active:hover{color:#fff}.app-header nav button.active:after{display:none}.app-header .header-pages{border:0;padding:0;height:100%!important}.header-tools{gap:8px}.header-tools .icon-button{color:#929497;width:28px;min-width:28px;height:28px;min-height:28px;padding:5px}.header-tools .icon-button svg{stroke-width:1.5px;width:17px;height:17px}.header-account{color:#d2d4d5;background:0 0;border:0;border-radius:50%;justify-content:center;align-items:center;width:30px;height:30px;margin-left:3px;padding:3px;display:flex}.header-account:hover{color:#fff;background:#303133}main{padding:14px}.studio-grid{height:calc(100dvh - 72px);min-height:480px}.compact-task button{padding-top:0}@media (min-width:1500px){main{padding:16px}.studio-grid{height:calc(100dvh - 76px)}}@media (max-width:1000px){.app-header{gap:20px;height:44px;padding:0 14px}.studio-grid{height:calc(100dvh - 72px)}}@media (max-width:680px){.app-header{gap:14px;height:44px;padding:0 10px}.app-header .header-nav{gap:13px;height:100%}.app-header .header-pages{display:none}.header-tools{gap:3px}.header-tools .icon-button[title=Новый\ материал]{display:none}.header-tools .icon-button[title="Поиск в библиотеке"]{display:inline-flex}.app-header nav button{font-size:14px}.header-brand>span{font-size:16px}.header-account{width:28px;margin:0}.studio-grid{height:auto;min-height:0}main{padding:10px}.header-tools{margin-left:auto}}.studio-grid{background:0 0;border:0;grid-template-columns:320px minmax(0,1fr);gap:9px}.editor{background:#fff;border:1px solid #d6d6d6;border-radius:16px;overflow:hidden}.preview{background:#fafafa;border:1px solid #d6d6d6;border-radius:16px}.editor-body{padding:16px 9px 20px}.video-form{gap:10px}.compact-task{border-bottom:0;gap:14px;padding:0 8px}.compact-task button{white-space:nowrap;padding-bottom:12px;font-size:14px}.compact-task button[aria-selected=true]{border-bottom-color:#171717}.compact-model{background:#ededed;border:1px solid #e0e0e0;border-radius:11px;flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;min-height:68px;padding:13px 12px;display:flex}.compact-model label{color:#6b6b6b;font-size:14px}.compact-model select{letter-spacing:-.3px;background:0 0;width:100%;max-width:100%;padding:0;font-size:18px;font-weight:600}.compact-input-tabs{border-radius:10px;padding:4px}.compact-input-tabs button{border-radius:7px}.higgs-source-stack{gap:10px}.higgs-source-stack .source-heading{margin-bottom:7px;padding:2px 9px}.source-heading>label{font-size:14px}.compact-drop{color:#414141;background:#f5f5f5;border:1px dashed #d5d5d5;border-radius:12px;font-size:14px}.higgs-source-stack .compact-source .compact-drop{flex-direction:column;gap:12px;min-height:116px}.higgs-source-stack .replacement-source>.compact-drop{min-height:116px}.compact-drop svg{stroke-width:1.4px;width:23px;height:23px}.compact-drop:hover{background:#eee;border-color:#bbb}.higgs-source-stack .replacement-source>.compact-drop.has-references{flex-direction:row;min-height:40px}.composer-prompt{background:#f2f2f2;border:1px solid #e5e5e5;border-radius:12px;padding:12px 11px 10px}.composer-prompt .compact-field{color:#333;gap:5px;font-size:14px;font-weight:500}.composer-prompt textarea{resize:vertical;height:103px;min-height:103px;max-height:280px;padding:2px 0 5px;font-size:16px;font-weight:400;line-height:1.5;background:0 0!important;border:0!important;outline:0!important}.composer-prompt-tools{flex-wrap:wrap;align-items:center;gap:7px;margin-top:8px;display:flex}.composer-prompt-tools button{color:#555;white-space:nowrap;background:#e5e5e5;border-radius:6px;align-items:center;gap:5px;padding:6px 7px;font-size:14px;line-height:1.2;display:flex}.composer-prompt-tools button[aria-pressed=true],.composer-prompt-tools button[aria-pressed=true]:hover{color:#222;background:#dedede}.compact-settings{gap:8px}.compact-settings .compact-field{background:#f2f2f2;border:1px solid #e5e5e5;border-radius:10px;gap:3px;padding:9px 11px}.compact-settings .compact-field input,.compact-settings .compact-field select{background:0 0;border:0;height:27px;padding:0;font-size:16px;font-weight:500}.compact-frames{gap:8px}.compact-frames .compact-drop{min-height:135px}.compact-advanced{margin-top:3px;padding:13px 10px 0}.compact-advanced summary{font-size:14px}.generate-area{background:#fff;border:0;border-top:1px solid #e0e0e0;padding:12px 9px 9px}.generate-area .cost{margin-bottom:10px;padding:0 5px}.generate{border-radius:11px;min-height:46px;font-size:16px}.save-draft{padding:10px 0 3px;font-size:14px}.preview-top{background:0 0;border:0;height:45px;padding:0 22px}.preview-tabs button{font-size:14px}.preview-stage{background:#f3f3f3;border:1px solid #e2e2e2;border-radius:14px;margin:0 16px 16px;padding:35px}.frame-placeholder{box-shadow:none;border-color:#d2d2d2}.compact-references>.button{background:#f4f4f4;border-style:dashed;border-radius:10px;justify-content:center;width:100%;min-height:95px}.source-stills img{border-radius:8px}@media (min-width:1500px){.studio-grid{grid-template-columns:320px minmax(0,1fr)}}@media (max-width:1000px){.studio-grid{grid-template-columns:310px minmax(0,1fr)}.editor-body{padding:16px 9px}.generate-area{padding:12px 9px 9px}}@media (max-width:680px){.studio-grid{grid-template-columns:1fr}.editor{border-radius:14px}.preview{border-radius:14px;margin-top:2px}.editor-body{padding:16px 10px}.preview-stage{margin:0 10px 10px;padding:25px}.generate-area{padding:12px 10px 10px}.video-form{gap:12px}}.header-overflow{display:none;position:relative}.header-overflow summary{cursor:pointer;color:#b0b0b0;justify-content:center;align-items:center;width:28px;height:28px;list-style:none;display:flex}.header-overflow summary::-webkit-details-marker{display:none}.header-overflow>div{color:#eee;background:#1e1e1e;border:1px solid #444;border-radius:8px;flex-direction:column;gap:3px;min-width:190px;padding:7px;display:flex;position:absolute;top:36px;right:0;box-shadow:0 14px 28px #0003}.header-overflow>div button{text-align:left;white-space:nowrap;border-radius:4px;padding:11px 12px;font-size:14px}.header-overflow>div button:hover{background:#333}.library-toolbar>select{background:#fff;border:1px solid #ccc;border-radius:7px;padding:10px 12px;font-size:16px}.compact-model select{border-radius:0}@media (max-width:680px){.header-overflow{display:block}.header-tools .icon-button[title="Поиск в библиотеке"]{display:none}}@media (min-width:681px) and (max-height:820px){.video-form{gap:8px}.compact-model{gap:1px;min-height:50px;padding:8px 11px}.compact-model select{font-size:17px}.compact-task button{padding-bottom:9px}.higgs-source-stack{gap:8px}.higgs-source-stack .compact-source .compact-drop{flex-direction:row;gap:10px;min-height:64px;padding:10px}.higgs-source-stack .replacement-source>.compact-drop{gap:6px;min-height:72px;padding:10px}.higgs-source-stack .source-heading{margin-bottom:6px}.composer-prompt textarea{height:85px;min-height:85px}.composer-prompt{padding:10px}.composer-prompt-tools{margin-top:4px}.generate-area .cost{margin-bottom:8px}.save-draft{padding-top:8px}}.read-only-field strong{color:#454545;align-items:center;min-height:27px;font-size:14px;font-weight:500;line-height:1.35;display:flex}.compact-settings:has(.read-only-field){grid-template-columns:1fr 1fr}.chat-workspace{flex-direction:column;height:calc(100dvh - 72px);min-height:460px;display:flex;position:relative}.chat-toolbar{flex-shrink:0;align-items:center;gap:25px;display:flex}.chat-toolbar>select{background:0 0;border:0;max-width:300px;padding:8px 0;font-size:16px;font-weight:500}.chat-toolbar>div{gap:6px;display:flex}.chat-toolbar button{color:#777;border-radius:20px;padding:8px 12px;font-size:14px}.chat-toolbar button[aria-selected=true],.chat-toolbar button[aria-selected=true]:hover{color:#202020;background:#eaeaea}.chat-toolbar button:hover{background:#f0f0f0}.chat-thread{flex:1;min-height:0;padding:0 max(15px,50% - 405px) 35px;overflow-y:auto}.chat-turn{margin:28px 0 38px}.chat-user-message{color:#292929;background:#ececec;border-radius:18px;width:fit-content;max-width:85%;margin-left:auto;padding:13px 18px;font-size:16px;line-height:1.6}.chat-user-message p{white-space:pre-wrap;overflow-wrap:anywhere}.chat-user-images{flex-wrap:wrap;gap:8px;margin-bottom:10px;display:flex}.chat-user-images img{object-fit:cover;border-radius:10px;width:90px;height:90px}.chat-assistant-message{margin-top:22px;font-size:16px;line-height:1.8}.chat-assistant-message .result-content{padding:0;overflow:visible}.chat-assistant-message .result-content .answer{white-space:pre-wrap;padding:0;line-height:1.8}.chat-assistant-message .result-actions{margin-top:14px}.chat-assistant-message .generated{margin-top:15px}.chat-assistant-message .generated>img{object-fit:contain;border-radius:12px;max-width:100%;max-height:620px}.chat-composer-wrap{flex-shrink:0;width:100%;margin:0 auto;padding:5px 20px 13px}.chat-composer{background:#fff;border:1px solid #d4d4d4;border-radius:22px;padding:14px 16px 10px;position:relative;box-shadow:0 5px 20px -12px #0002}.chat-composer:focus-within{border-color:#aaa}.chat-composer>textarea{resize:none;background:0 0;border:0;outline:0;width:100%;height:88px;min-height:88px;max-height:230px;padding:5px 3px 12px;font-size:16px;line-height:1.65;box-shadow:none!important}.chat-composer-footer{min-height:39px;display:flex}.chat-composer-footer>select{cursor:pointer;background:#f4f4f4;border:0;border-radius:18px;max-width:170px;padding:8px 10px;font-size:14px}.chat-composer-footer>select.chat-size{max-width:155px}.chat-composer-footer summary{cursor:pointer;color:#555;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;list-style:none;display:flex}.chat-composer-footer summary:hover{background:#f0f0f0}.chat-composer-footer summary::-webkit-details-marker{display:none}.chat-add-menu,.chat-options{flex-shrink:0;position:relative}.chat-add-menu>div,.chat-options-panel{z-index:30;background:#fff;border:1px solid #ddd;border-radius:13px;min-width:220px;padding:7px;position:absolute;bottom:43px;left:0;box-shadow:0 12px 35px -8px #0002}.chat-add-menu>div{flex-direction:column;gap:2px;display:flex}.chat-add-menu>div button{text-align:left;white-space:nowrap;border-radius:7px;padding:11px 12px;font-size:14px}.chat-add-menu>div button:hover{background:#f0f0f0}.chat-options-panel{flex-direction:column;gap:15px;width:280px;max-height:350px;padding:17px;display:flex;overflow-y:auto}.chat-options-panel label{color:#555;flex-direction:column;gap:7px;font-size:14px;display:flex}.chat-options-panel input,.chat-options-panel select,.chat-options-panel textarea{background:#fff;border:1px solid #ccc;border-radius:7px;width:100%;padding:8px 10px;font-size:16px}.chat-options-panel textarea{min-height:90px}.chat-options-panel .chat-check{flex-direction:row;align-items:center;gap:8px;display:flex}.chat-options-panel .chat-check input{accent-color:#111;width:16px;height:16px}.chat-options-panel>button{text-align:left;text-underline-offset:4px;font-size:14px;text-decoration:underline}.chat-send-area{align-items:center;gap:12px;display:flex}.chat-price{color:#777;font-size:14px}.chat-submit{color:#fff;white-space:nowrap;background:#202020;border-radius:20px;justify-content:center;align-items:center;min-height:39px;padding:10px 17px;font-size:14px;display:flex}.chat-submit:hover{background:#383838}.chat-submit:disabled{opacity:.4}.chat-attachments{gap:12px;padding:1px 2px 9px;display:flex;overflow-x:auto}.chat-attachment{flex:0 0 104px;position:relative}.chat-attachment>img{object-fit:cover;border:1px solid #ddd;border-radius:10px;width:104px;height:86px;display:block}.chat-attachment>input{background:0 0;border:0;border-radius:0;height:30px;margin-top:3px;padding:5px 6px;font-size:14px}.chat-remove{background:#fff;border:1px solid #ccc;border-radius:50%;justify-content:center;align-items:center;width:22px;height:22px;padding:3px;display:flex;position:absolute;top:4px;right:4px}.chat-link-input{gap:8px;margin:3px 0 15px;display:flex}.chat-link-input input{border-radius:7px;height:38px;font-size:16px}.chat-link-input button{white-space:nowrap;background:#eee;border-radius:7px;padding:8px 10px;font-size:14px}.chat-field-error{color:#8b2424;margin:8px 0;font-size:14px}.chat-thinking{color:#666;align-items:center;gap:10px;margin:30px 0;font-size:16px;display:flex}.empty-conversation .chat-thread{flex:0;min-height:0}.empty-conversation .chat-composer-wrap{margin:auto;transform:translateY(-50px)}@media (max-width:800px){.chat-toolbar{flex-wrap:wrap;gap:12px;padding-left:4px;padding-right:4px}.chat-toolbar>select{max-width:100%;font-size:16px}.chat-toolbar button{padding:7px 10px;font-size:14px}}@media (max-width:680px){.chat-workspace{height:calc(100dvh - 64px);min-height:430px}.chat-toolbar{gap:4px;padding:0 4px 12px}.chat-toolbar>div{margin-left:auto}.chat-toolbar>select{max-width:205px;font-size:14px}.chat-toolbar button{padding:6px 8px;font-size:14px}.chat-thread{padding:0 7px 20px}.chat-composer-wrap{padding:4px 0 7px}.chat-composer{border-radius:20px;padding:12px 11px 9px}.chat-composer-footer{flex-wrap:wrap;gap:4px}.chat-composer-footer>select{max-width:130px;padding:8px;font-size:14px}.chat-composer-footer>select.chat-size{max-width:130px}.chat-send-area{gap:6px}.chat-price{display:none}.chat-submit{padding:10px 14px}.chat-options-panel{max-height:290px;left:auto;right:-90px}.empty-conversation .chat-composer-wrap{transform:translateY(-35px)}}html,body,.editor-body,.chat-thread,.replacement-list,.chat-attachments,.chat-options-panel,.result-content,.drawer,.learn-toc,.learn-prompt pre{scrollbar-width:none;-ms-overflow-style:none}::-webkit-scrollbar{width:0;height:0;display:none}textarea{scrollbar-width:none}body:has(.chat-workspace){background:#fafafa}.main-shell:has(.chat-workspace){background:#fafafa}.chat-workspace,.chat-workspace:not(.empty-conversation) .chat-composer-wrap{background:0 0}.chat-toolbar{justify-content:flex-end;min-height:42px;padding:0 9px 8px}.chat-history-toggle{color:#666;border-radius:8px;align-items:center;gap:8px;padding:8px 10px;font-size:14px;display:flex}.chat-history-toggle:hover{color:#222;background:#ededed}.chat-history-toggle[aria-expanded=true],.chat-history-toggle[aria-expanded=true]:hover{color:#222;background:#e9e9e9}.chat-model-controls{flex-wrap:wrap;align-items:center;gap:15px;padding:4px 1px 10px;display:flex}.chat-model-controls>select{background:0 0;border:0;max-width:285px;padding:7px 1px;font-size:14px;font-weight:500}.chat-model-controls>[role=tablist]{align-items:center;gap:3px;display:flex}.chat-model-controls button{white-space:nowrap;color:#777;border-radius:18px;padding:7px 10px;font-size:14px}.chat-model-controls button:hover{background:#f5f5f5}.chat-model-controls button[aria-selected=true],.chat-model-controls button[aria-selected=true]:hover{color:#222;background:#eee}.chat-workspace.history-open{padding-right:320px}.history-open .chat-toolbar{margin-right:-320px}.chat-history{z-index:20;background:#fafafa;border-left:1px solid #e3e3e3;flex-direction:column;width:300px;padding:5px 0 0 20px;display:flex;position:absolute;top:45px;bottom:10px;right:0}.chat-history-heading{justify-content:space-between;align-items:center;padding-bottom:16px;display:flex}.chat-history-heading h2{font-size:17px;font-weight:500}.chat-history-search{color:#777;background:#fff;border:1px solid #d8d8d8;border-radius:9px;align-items:center;gap:8px;padding:9px 11px;display:flex}.chat-history-search input{background:0 0;border:0;outline:0;height:24px;padding:0;font-size:14px}.chat-history-new{text-align:left;border-radius:8px;align-items:center;gap:9px;margin-top:10px;padding:13px 10px;font-size:14px;display:flex}.chat-history-new:hover{background:#eee}.chat-history-list{scrollbar-width:none;flex:1;min-height:0;margin-top:8px;overflow-y:auto}.chat-history-item{text-align:left;border-radius:9px;width:100%;margin:3px 0;padding:12px 10px;display:block}.chat-history-item:hover{background:#f0f0f0}.chat-history-item.current,.chat-history-item.current:hover{background:#eaeaea}.chat-history-item strong{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:1.6;display:block;overflow:hidden}.chat-history-item span{color:#777;margin-top:5px;font-size:14px;display:block}.chat-history-empty{padding:24px 10px}.chat-history-empty p{margin:0 0 10px;font-size:16px;font-weight:500}.chat-history-empty span{color:#777;font-size:14px;line-height:1.7}.chat-history-all{color:#666;text-align:left;border-top:1px solid #e4e4e4;padding:15px 10px;font-size:14px}.app-header nav a{color:#8a8c8d;align-items:center;font-size:14px;font-weight:500;text-decoration:none;display:flex}.app-header nav a:hover,.app-header nav a.active,.app-header nav a.active:hover{color:#fff;background:0 0}@media (max-width:1050px){.chat-workspace.history-open{padding-right:280px}.history-open .chat-toolbar{margin-right:-280px}.chat-history{width:265px;padding-left:15px}.history-open .chat-model-controls{gap:5px}.history-open .chat-composer-wrap{padding-left:8px;padding-right:8px}}@media (max-width:760px){.chat-workspace.history-open{padding-right:0}.history-open .chat-toolbar{margin-right:0}.chat-history{background:#fafafa;border:1px solid #ddd;border-radius:12px;width:min(340px,100%);padding:16px;top:43px;bottom:0;box-shadow:0 10px 24px #0001}.chat-model-controls{gap:6px;padding-bottom:7px}.chat-model-controls>select{max-width:100%;font-size:14px}.chat-model-controls button{padding:7px 9px;font-size:14px}}.studio-select{vertical-align:middle;min-width:0;max-width:100%;display:inline-flex;position:relative}.studio-select-native{clip-path:inset(50%);opacity:0!important;pointer-events:none!important;border:0!important;width:1px!important;height:1px!important;padding:0!important;position:absolute!important}.studio-select-trigger{color:#252525;text-align:left;cursor:pointer;background:#fff;border:1px solid #d9d9d9;border-radius:9px;justify-content:space-between;align-items:center;gap:9px;width:100%;min-width:0;min-height:36px;padding:8px 11px;font-size:14px;line-height:1.3;display:flex}.studio-select-trigger>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.studio-select-trigger>svg{color:#777;stroke-width:1.6px;flex-shrink:0}.studio-select-trigger:hover{background:#fafafa;border-color:#aaa}.studio-select-trigger[aria-expanded=true]{background:#f6f6f6;border-color:#999}.studio-select-trigger:focus-visible{outline-offset:2px;outline:2px solid #999}.studio-select-trigger:disabled{opacity:.45;cursor:default}.studio-select-menu{z-index:1200;scrollbar-width:none;background:#fff;border:1px solid #d6d6d6;border-radius:12px;outline:none;padding:5px;font-family:Onest,sans-serif;overflow-y:auto;box-shadow:0 12px 35px -10px #0003}.studio-select-option{color:#333;cursor:pointer;border-radius:7px;justify-content:space-between;align-items:center;gap:16px;min-height:38px;padding:10px 11px;font-size:14px;display:flex}.studio-select-option[data-active=true]:not([aria-selected=true]){background:#f3f3f3}.studio-select-option[aria-selected=true]{color:#111;background:#eaeaea}.studio-select-option[aria-disabled=true]{opacity:.4;cursor:default}.compact-field>.studio-select,.compact-model>.studio-select,.chat-options-panel label>.studio-select{width:100%}.compact-model .studio-select-trigger{background:0 0;border:0;border-radius:6px;min-height:27px;padding:0;font-size:17px;font-weight:600}.compact-settings .studio-select-trigger{background:0 0;border:0;min-height:27px;padding:0;font-size:16px;font-weight:500}.chat-composer-footer{flex-wrap:nowrap;align-items:center;gap:7px;display:flex}.chat-inline-controls{white-space:nowrap;flex:1;align-items:center;gap:5px;min-width:0;display:flex}.chat-inline-controls>.studio-select{flex-shrink:1;min-width:64px}.chat-inline-controls .studio-select-trigger{background:#f4f4f4;border:0;border-radius:18px;min-height:35px;padding:8px 10px;font-size:14px}.chat-inline-controls .chat-model-select{max-width:195px}.chat-inline-controls .chat-model-select .studio-select-trigger{background:0 0;padding-left:5px;font-weight:500}.chat-inline-controls .chat-mode-select{max-width:150px}.chat-inline-controls .chat-size{max-width:145px}.chat-inline-controls .studio-select-trigger:hover{background:#ededed}.chat-send-area{flex-shrink:0;margin-left:3px}.chat-options{flex-shrink:0}.chat-price{display:none}.chat-composer-wrap{max-width:940px}.chat-mobile-options{display:none}.chat-options-panel .studio-select-trigger{background:#fff;border-radius:8px}.chat-check input[type=checkbox],.compact-check input[type=checkbox],input[type=checkbox]{appearance:none;cursor:pointer;vertical-align:middle;background:#fff;border:1px solid #bdbdbd;border-radius:4px;place-content:center;min-width:17px;display:inline-grid;width:17px!important;height:17px!important;padding:0!important}input[type=checkbox]:checked{background:#242424;border-color:#242424}input[type=checkbox]:checked:after{content:"";border-bottom:1.8px solid #fff;border-left:1.8px solid #fff;width:8px;height:5px;margin-top:-2px;transform:rotate(-45deg)}input[type=checkbox]:focus-visible{outline-offset:3px;outline:2px solid #999}input[type=checkbox]:disabled{opacity:.4;cursor:default}input[type=number]{appearance:textfield}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}@media (max-width:760px){.chat-inline-controls>.studio-select:not(.chat-model-select){display:none}.chat-inline-controls .chat-model-select{flex:1;max-width:190px}.chat-mobile-options{flex-direction:column;gap:15px;display:flex}.chat-mobile-options .chat-mode-select{display:inline-flex}.chat-composer-footer{gap:5px}.chat-send-area{margin-left:auto}.chat-options-panel{left:auto;right:-75px}}.mention-input{width:100%;min-width:0;position:relative}.mention-mirror{pointer-events:none;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;letter-spacing:normal;color:#333;padding:2px 0 5px;font-family:inherit;font-size:16px;font-weight:400;line-height:1.5;position:absolute;inset:0;overflow:hidden}.mention-mirror mark{color:#181818;font:inherit;background:#ddd;border-radius:4px;box-shadow:0 0 0 1px #d2d2d2}.composer-prompt .mention-input>textarea{z-index:1;-webkit-text-fill-color:transparent;caret-color:#222;letter-spacing:normal;white-space:pre-wrap;overflow-wrap:break-word;display:block;position:relative;color:#0000!important;background:0 0!important}.composer-prompt .mention-input>textarea::placeholder{-webkit-text-fill-color:#777;color:#777}.composer-prompt .mention-input>textarea::selection{-webkit-text-fill-color:#fff;color:#fff;background:#333}.reference-mention-menu{z-index:1250;background:#fff;border:1px solid #d5d5d5;border-radius:11px;max-height:190px;padding:5px;font-family:Onest,sans-serif;overflow-y:auto;box-shadow:0 12px 32px -8px #0003}.reference-mention-menu>button{text-align:left;border-radius:7px;align-items:center;gap:11px;width:100%;padding:9px;font-size:14px;display:flex}.reference-mention-menu>button.active{background:#eee}.reference-mention-menu>button>img,.reference-kind{object-fit:cover;background:#e8e8e8;border-radius:5px;justify-content:center;align-items:center;width:35px;height:35px;font-size:14px;display:flex}.reference-mention-menu>button>span:last-child{min-width:0}.reference-mention-menu strong{font-size:14px;font-weight:500;display:block}.reference-mention-menu small{color:#777;white-space:nowrap;text-overflow:ellipsis;max-width:220px;margin-top:3px;font-size:14px;display:block;overflow:hidden}.reference-mention-menu>p{color:#777;padding:9px 11px;font-size:14px;line-height:1.6}.reference-token{color:#555;white-space:nowrap;background:#f5f5f5;border:1px solid #ddd;border-radius:6px;margin-bottom:6px;padding:4px 7px;font-size:14px;font-weight:500;display:inline-flex}.reference-token:hover{background:#e9e9e9;border-color:#bbb}.reference-token.is-mentioned,.reference-token.is-mentioned:hover{color:#fff;background:#252525;border-color:#252525}.compact-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-settings .duration-slider{grid-column:1/-1;gap:10px}.duration-slider-heading{justify-content:space-between;align-items:center;gap:12px;font-size:14px;display:flex}.duration-slider-heading strong{color:#171717;font-variant-numeric:tabular-nums;font-size:16px;font-weight:500}.duration-slider input[type=range]{appearance:none;cursor:pointer;accent-color:#202020;background:0 0;width:100%;height:24px;margin:0;padding:0}.duration-slider input[type=range]::-webkit-slider-runnable-track{background:#d0d0d0;border-radius:4px;height:4px}.duration-slider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;background:#202020;border:2px solid #fafafa;border-radius:50%;width:18px;height:18px;margin-top:-7px;box-shadow:0 0 0 1px #202020}.duration-slider input[type=range]::-moz-range-track{background:#d0d0d0;border-radius:4px;height:4px}.duration-slider input[type=range]::-moz-range-thumb{background:#202020;border:2px solid #fafafa;border-radius:50%;width:14px;height:14px}.duration-slider input[type=range]:focus-visible{outline-offset:4px;border-radius:4px;outline:2px solid #555}textarea{resize:none!important}input::placeholder,textarea::placeholder{opacity:1;font-size:14px!important}.app-header,.app-header .header-brand{color:#202020}.app-header nav a,.app-header nav button{color:#747474}.app-header nav a:hover,.app-header nav button:hover{color:#202020;background:0 0}.app-header nav a.active,.app-header nav a.active:hover,.app-header nav button.active,.app-header nav button.active:hover{background:0 0}.app-header .header-account{color:#555;background:0 0;border-color:#0000}.app-header .header-account:hover{color:#171717;background:#f0f0f0}.app-header .header-overflow summary{color:#555}.app-header{border-bottom:0}.app-header nav a,.app-header nav a:hover,.app-header nav a.active,.app-header nav a.active:hover,.app-header nav button,.app-header nav button:hover,.app-header nav button.active,.app-header nav button.active:hover{color:#686868;background:0 0}.app-header nav a.active,.app-header nav a.active:hover,.app-header nav button.active,.app-header nav button.active:hover{color:#171717}.app-header{background:var(--bg)}body:has(.chat-workspace) .app-header{background:#fafafa}main:has(.studio-grid){width:100%;max-width:none;padding:8px 14px 14px}.preview .preview-stage{background:0 0;border:0;border-radius:0;margin:0}@media (min-width:681px){.studio-grid{height:calc(100dvh - 66px)}}@media (max-width:680px){main:has(.studio-grid){padding:8px 10px 10px}}.video-history-button{color:#555;background:0 0;padding:8px 0;font-size:14px}.video-history-button:hover{color:#171717;background:0 0}.video-history-list{flex:1;min-height:0;padding:8px 22px 22px;overflow:auto}.video-history-entry{text-align:left;border-bottom:1px solid #e6e6e6;align-items:center;gap:16px;width:100%;padding:18px 0;display:flex}.video-history-entry>span{flex-direction:column;gap:8px;min-width:0;display:flex}.video-history-entry strong{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:16px;font-weight:500;display:-webkit-box;overflow:hidden}.video-history-entry small{color:#707070;font-size:14px}.video-history-empty{color:#707070;text-align:center;margin-top:25vh;font-size:16px}.video-history-card{border-bottom:1px solid #e1e1e1;grid-template-columns:minmax(220px,1fr) minmax(250px,1fr);align-items:start;gap:24px;padding:22px 0;display:grid}.video-history-card:first-child{padding-top:8px}.video-history-media{aspect-ratio:16/9;background:#ededed;border-radius:10px;justify-content:center;align-items:center;display:flex;overflow:hidden}.video-history-media video{object-fit:contain;background:#171717;width:100%;height:100%;display:block}.video-history-details{flex-direction:column;gap:20px;min-width:0;display:flex}.video-history-prompt summary{cursor:pointer;flex-direction:column;gap:8px;list-style:none;display:flex}.video-history-prompt summary::-webkit-details-marker{display:none}.video-history-prompt summary>span:first-child{-webkit-line-clamp:4;-webkit-box-orient:vertical;font-size:16px;line-height:1.55;display:-webkit-box;overflow:hidden}.video-history-prompt .prompt-expand-label{color:#707070;text-underline-offset:3px;font-size:14px;text-decoration:underline}.video-history-prompt[open] summary>span:first-child{display:none}.video-history-prompt p{white-space:pre-wrap;max-height:360px;margin-top:12px;font-size:16px;line-height:1.6;overflow:auto}.video-history-parameters{flex-wrap:wrap;gap:16px 28px;margin:0;display:flex}.video-history-parameters div{flex-direction:column;gap:5px;display:flex}.video-history-parameters dt{color:#777;font-size:14px}.video-history-parameters dd{color:#202020;margin:0;font-size:14px}.video-history-card-footer{color:#777;justify-content:space-between;align-items:center;gap:12px;font-size:14px;display:flex}.video-history-card-footer button,.video-history-card-footer a{color:#202020;border:1px solid #ddd;border-radius:8px;padding:8px 12px;font-size:14px}.video-history-processing{color:#666;align-items:center;gap:12px;font-size:14px;display:flex}@media (max-width:1000px){.video-history-card{grid-template-columns:1fr;gap:18px}}.video-history-prompt .prompt-hide,.video-history-prompt[open] .prompt-show{display:none}.video-history-prompt[open] .prompt-hide{display:inline}.video-prompt-copy{color:#666;text-underline-offset:3px;align-self:flex-start;margin-top:-10px;padding:0;font-size:14px;text-decoration:underline}.video-prompt-copy:hover{color:#171717;background:0 0}.private-studio-login{flex-direction:column;gap:20px;max-width:440px;margin:18vh auto;display:flex}.private-studio-login h1{font-size:28px;font-weight:500}.private-studio-login p{color:#666;font-size:16px}.admin-main{max-width:1200px;margin:auto;padding:36px 24px 64px;font-size:16px}.admin-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;display:flex}.admin-heading h1{margin-bottom:10px;font-size:28px;font-weight:500}.admin-heading p,.admin-section>p{color:#707070;line-height:1.6}.admin-tabs{border-bottom:1px solid #ddd;flex-wrap:wrap;gap:24px;margin:30px 0;display:flex}.admin-tabs button{color:#777;border-bottom:2px solid #0000;padding:12px 0;font-size:16px}.admin-tabs button[aria-current=page]{color:#171717;border-bottom-color:#171717}.admin-section{background:#fafafa;border:1px solid #ddd;border-radius:14px;flex-direction:column;gap:20px;margin:20px 0;padding:24px;display:flex}.admin-section h2{font-size:20px;font-weight:500}.admin-section textarea{width:100%;min-height:180px;font-size:16px}.admin-invite-form,.admin-member-form{flex-wrap:wrap;align-items:end;gap:14px;display:flex}.admin-invite-form label,.admin-member-form label{flex-direction:column;flex:1;gap:8px;min-width:150px;font-size:14px;display:flex}.admin-invite-form .studio-select-trigger{background:#fff;border:1px solid #ddd;border-radius:7px;height:42px}.admin-member{border-bottom:1px solid #e1e1e1;flex-direction:column;gap:16px;padding:20px 0;display:flex}.admin-member p,.admin-list-row p,.admin-job>p{color:#777;margin-top:8px;font-size:14px;line-height:1.5}.admin-list-row{border-bottom:1px solid #e5e5e5;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;display:flex}.admin-invite-result{flex-wrap:wrap;gap:12px;display:flex}.admin-invite-result input{flex:1;min-width:180px}.admin-invite-result p{color:#777;width:100%;font-size:14px}.admin-balance{font-variant-numeric:tabular-nums;color:#171717!important;font-size:26px!important}.admin-model-row{justify-content:space-between;align-items:center;gap:20px;display:flex}.admin-model-row>label{align-items:center;gap:12px;font-size:14px;display:flex}.admin-model-row input[type=number]{width:110px}.admin-model-row input[type=checkbox]{appearance:none;background:#fff;border:1px solid #aaa;border-radius:4px;flex:none;width:18px;height:18px;padding:0}.admin-model-row input[type=checkbox]:checked{background:#222;border-color:#222;box-shadow:inset 0 0 0 3px #fff}.admin-job{border-bottom:1px solid #ddd;flex-direction:column;gap:14px;padding:20px 0;display:flex}.admin-job summary{cursor:pointer;line-height:1.5}.admin-full-prompt{white-space:pre-wrap;max-height:400px;margin-top:16px;line-height:1.7;overflow:auto}.admin-job .admin-heading span{color:#777;font-size:14px}.admin-error{color:#8a2929;background:#f0e9e9;border-radius:10px;margin-top:20px;padding:16px}.admin-empty{margin:50px 0;line-height:2}@media (max-width:680px){.admin-main{padding:24px 14px}.admin-section{padding:18px}.admin-tabs{gap:16px}.admin-tabs button{font-size:14px}.admin-model-row{align-items:start}.admin-model-row>label{flex-wrap:wrap}.admin-heading h1{font-size:24px}}.profile-menu{position:relative}.profile-menu>summary{color:#555;cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;list-style:none;display:flex}.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu>summary:hover{background:#e9e9e9}.profile-popover{z-index:100;color:#202020;background:#fafafa;border:1px solid #dedede;border-radius:16px;width:292px;max-width:calc(100vw - 24px);padding:10px;font-size:14px;position:absolute;top:calc(100% + 12px);right:0;box-shadow:0 12px 40px #00000014}.profile-identity{align-items:center;gap:12px;padding:12px 10px 18px;display:flex}.profile-identity>div{flex-direction:column;gap:5px;min-width:0;display:flex}.profile-identity strong{overflow-wrap:anywhere;font-size:16px;font-weight:500}.profile-identity span{color:#777;font-size:14px}.profile-wallet{background:#ededed;border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:14px;display:flex}.profile-wallet>strong{font-size:14px;font-weight:500}.profile-wallet>a{color:#666;text-underline-offset:3px;width:100%;font-size:14px;text-decoration:underline}.app-header .profile-popover nav{flex-direction:column;gap:0;height:auto;padding:10px 0;display:flex}.app-header .profile-popover nav a,.profile-signout{color:#333;border-radius:8px;align-items:center;gap:12px;width:100%;min-height:44px;padding:12px 10px;font-size:14px;font-weight:400;display:flex}.app-header .profile-popover nav a:hover,.profile-signout:hover{color:#171717;background:#ededed}.profile-signout{border-top:1px solid #dedede;border-radius:0;margin-top:3px}.member-coins{color:#666;white-space:nowrap;font-size:14px}.admin-tabs{flex-direction:row;align-items:center}.admin-tabs button{border-radius:0;flex:none;width:auto;min-height:48px}.admin-main .button{border-radius:8px;min-height:42px}.learning-complete{max-width:1480px;margin:auto;padding:16px 8px 60px}.learn-complete-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;margin:16px 0 32px;display:flex}.learn-complete-heading h1{font-family:Onest,sans-serif;font-size:28px;font-weight:500}.learn-complete-layout{grid-template-columns:270px minmax(0,1fr);align-items:start;gap:48px;display:grid}.learn-complete-toc{flex-direction:column;gap:24px;max-height:calc(100dvh - 48px);display:flex;position:sticky;top:24px;overflow:auto}.learn-document-picker,.learn-complete-sections{flex-direction:column;gap:5px;display:flex}.learn-document-picker button{color:#777;text-align:left;border-radius:8px;justify-content:space-between;gap:8px;padding:12px 10px;font-size:16px;display:flex}.learn-document-picker button[aria-current=page]{color:#171717;background:#e7e7e7}.learn-complete-sections button{text-align:left;color:#666;white-space:normal;overflow-wrap:anywhere;border-radius:8px;padding:10px;font-size:14px;line-height:1.5}.learn-complete-sections button:hover{color:#171717;background:#eaeaea}.learn-complete-reader{min-width:0;max-width:920px}.learn-document-toolbar{border-bottom:1px solid #ddd;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-bottom:20px;display:flex}.learn-copy-document,.learn-page-prompt-actions button{color:#666;align-items:center;gap:8px;padding:8px 0;font-size:14px;display:inline-flex}.learn-copy-document:hover,.learn-page-prompt-actions button:hover{color:#171717;background:0 0}.learn-full-page{border-bottom:1px solid #e0e0e0;padding:32px 0 36px}.learn-page-meta{color:#888;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;font-size:14px;display:flex}.learn-page-meta>a{color:#777;font-size:14px}.learn-page-prompt-actions{flex-wrap:wrap;align-items:center;gap:20px;display:flex}.learn-full-prose{color:#292929;overflow-wrap:anywhere;font-size:16px;line-height:1.75}.learn-full-prose h1{margin:0 0 24px;font-family:Onest,sans-serif;font-size:28px;font-weight:500;line-height:1.35}.learn-full-prose h2{margin:32px 0 20px;font-size:24px;font-weight:500;line-height:1.4}.learn-full-prose h3{margin:28px 0 16px;font-size:20px;font-weight:500;line-height:1.5}.learn-full-prose p{white-space:pre-wrap;margin:0 0 10px}.learn-full-prose ul,.learn-full-prose ol{margin:12px 0 20px;padding-left:24px}.learn-full-prose li{margin:5px 0}.learn-full-prose a{color:inherit;text-underline-offset:3px;text-decoration:underline}.learn-original-figure{margin:28px 0 0;display:block}.learn-original-figure img{object-fit:contain;border-radius:8px;width:auto;max-width:100%;max-height:900px;display:block}.learn-original-document{background:#fff;border:0;border-radius:8px;width:100%;height:calc(100dvh - 190px);min-height:600px;margin-top:20px}.learn-complete-empty{color:#777;padding:50px 0;font-size:16px}@media (max-width:1000px){.learn-complete-layout{grid-template-columns:220px minmax(0,1fr);gap:28px}.learn-complete-heading .learn-sources{flex-wrap:wrap;gap:12px}.learn-full-prose h1{font-size:25px}.learn-full-prose h2{font-size:22px}}@media (max-width:680px){.learning-complete{padding:8px 4px 40px}.learn-complete-heading{margin-bottom:24px}.learn-complete-heading h1{font-size:25px}.learn-complete-layout{flex-direction:column;gap:24px;display:flex}.learn-complete-toc{gap:16px;width:100%;max-height:none;position:static}.learn-document-picker{flex-flow:wrap;gap:8px}.learn-document-picker button{font-size:14px}.learn-complete-sections{display:none}.learn-complete-reader{width:100%}.learn-full-page{padding:24px 0}.learn-page-meta{gap:10px;margin-bottom:18px}.learn-full-prose h2{font-size:21px}.learn-full-prose h3{font-size:19px}.learn-original-document{min-height:500px}.learn-copy-document{font-size:14px}}.learn-mobile-contents{display:none}@media (max-width:680px){.learn-mobile-contents{flex-direction:column;gap:8px;font-size:14px;display:flex}.learn-mobile-contents .studio-select-trigger{border:1px solid #ddd;border-radius:8px;width:100%;min-height:44px;padding:10px}}.learn-page-facsimile{width:100%;display:block}.learn-page-facsimile img{background:#fff;border-radius:8px;width:100%;height:auto;display:block}.director-toggle{white-space:nowrap;min-height:36px;color:var(--ink);border-radius:8px;align-items:center;gap:10px;padding:6px 8px;font-size:14px;display:inline-flex}.director-toggle-track{background:#d4d4d4;border-radius:20px;flex-shrink:0;align-items:center;width:32px;height:20px;padding:3px;transition:background .15s;display:inline-flex}.director-toggle-track>span{background:#fff;border-radius:50%;width:14px;height:14px;transition:transform .15s;display:block}.director-toggle[aria-checked=true] .director-toggle-track{background:#222}.director-toggle[aria-checked=true] .director-toggle-track>span{transform:translate(12px)}@media (prefers-reduced-motion:reduce){.director-toggle-track,.director-toggle-track>span{transition:none}}.director-control{flex-shrink:0;align-items:center;gap:0;display:inline-flex}.director-help{align-items:center;display:inline-flex;position:relative}.director-help-button{color:#777;border-radius:8px;justify-content:center;align-items:center;width:32px;height:36px;display:inline-flex}.director-tooltip{z-index:90;color:#333;white-space:normal;visibility:hidden;opacity:0;pointer-events:none;background:#fff;border:1px solid #dedede;border-radius:10px;width:280px;max-width:calc(100vw - 40px);padding:12px 14px;font-size:14px;line-height:1.55;position:absolute;bottom:calc(100% + 10px);left:50%;transform:translate(-50%);box-shadow:0 6px 24px #00000012}.director-help:hover .director-tooltip,.director-help:focus-within .director-tooltip{visibility:visible;opacity:1}@media (max-width:600px){.director-tooltip{width:240px;left:auto;right:0;transform:none}}.photo-format-option{align-items:center;gap:10px;font-size:14px;display:inline-flex}.photo-format-frame{border:1.5px solid;border-radius:2px;flex-shrink:0;display:inline-block}@media (max-width:600px){.chat-inline-controls>.studio-select[aria-label=Качество\ изображения]{display:inline-flex}.chat-inline-controls>.studio-select:has([aria-label=Качество\ изображения]){display:inline-flex}}.app-header{z-index:100;flex-shrink:0;height:44px;position:sticky;top:0}.learn-full-page{scroll-margin-top:68px}@media (min-width:901px){.learn-complete-toc{max-height:calc(100dvh - 92px);top:68px}}html,body{scrollbar-width:auto;-ms-overflow-style:auto}html::-webkit-scrollbar{width:10px;height:10px;display:block}body::-webkit-scrollbar{width:10px;height:10px;display:block}html::-webkit-scrollbar-track{background:var(--bg)}body::-webkit-scrollbar-track{background:var(--bg)}html::-webkit-scrollbar-thumb{border:2px solid var(--bg);background:#bcbcbc;border-radius:6px}body::-webkit-scrollbar-thumb{border:2px solid var(--bg);background:#bcbcbc;border-radius:6px}html::-webkit-scrollbar-thumb:hover{background:#999}body::-webkit-scrollbar-thumb:hover{background:#999}.incomplete-answer{border:1px solid #bbb;border-radius:10px;margin-bottom:16px;padding:16px;font-size:14px;line-height:1.6}.incomplete-answer .button{margin-top:12px}.app-header .header-brand{font-family:var(--font-sans);letter-spacing:-.5px;flex-shrink:0;align-items:center;gap:8px;font-size:16px;font-weight:650;display:inline-flex}.header-brand img{width:26px;height:26px;display:block}.header-brand span{white-space:nowrap}
.result-storage-state{color:#666;margin-bottom:12px;font-size:14px;line-height:1.5}.learn-complete-sections button[aria-current=location]{color:#171717;background:#e8e8e8;border-radius:8px;font-weight:500}.learn-chapter-navigation{flex-wrap:wrap;justify-content:space-between;gap:16px;margin:28px 0;display:flex}.learn-reading-mode{border:1px solid #d5d5d5;border-radius:8px;min-height:40px;padding:9px 12px;font-size:14px}.studio-select-option{min-height:44px}.studio-select-option[aria-disabled=true]{opacity:.45;cursor:default}.director-help-button{min-width:36px;min-height:40px}.cost strong{flex-wrap:wrap;justify-content:flex-end;gap:6px;font-size:16px;display:flex}.cost strong>span{color:#666;font-size:14px;font-weight:400}@media (max-width:760px){.chat-composer-footer{flex-wrap:wrap;align-items:center;gap:8px}.chat-inline-controls{white-space:normal;flex-wrap:wrap;flex:calc(100% - 50px);gap:6px}.chat-inline-controls>.studio-select:not(.chat-model-select){flex:0 auto;display:inline-flex}.chat-inline-controls .chat-model-select{flex:100%;width:100%;max-width:none}.chat-inline-controls .studio-select-trigger{min-height:40px}.chat-send-area{min-height:40px;margin-left:auto}.chat-submit{min-height:40px}.app-header{flex-wrap:nowrap;gap:12px;padding:0 12px}.app-header .header-nav{gap:12px;min-width:0}.app-header .header-tools{gap:0;margin-left:auto}.header-brand{font-size:16px!important}.learn-document-toolbar{flex-wrap:wrap;gap:12px}.admin-heading{flex-wrap:wrap;align-items:flex-start}.admin-tabs{flex-wrap:nowrap;overflow-x:auto}.admin-tabs>button{white-space:nowrap;min-height:44px}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.chat-thinking .spin{animation:none}}@media (max-width:760px){.chat-composer:not(:has(.chat-model-select)) .chat-inline-controls{flex-wrap:nowrap;flex:1}.chat-composer:has(.chat-model-select) .chat-composer-footer{grid-template-columns:36px max-content 1fr auto;gap:8px;display:grid}.chat-composer:has(.chat-model-select) .chat-add-menu{grid-area:1/1}.chat-composer:has(.chat-model-select) .chat-inline-controls{display:contents}.chat-composer:has(.chat-model-select) .chat-model-select{grid-area:1/2/auto/-1;width:auto}.chat-composer:has(.chat-model-select) .chat-size{grid-area:2/1/auto/3}.chat-composer:has(.chat-model-select) .chat-quality{grid-area:2/3}.chat-composer:has(.chat-model-select) .chat-send-area{grid-area:2/4}.chat-inline-controls .studio-select-trigger,.chat-submit{min-height:44px}}.info-tooltip{z-index:1500;color:#333;pointer-events:none;background:#fff;border:1px solid #d6d6d6;border-radius:10px;max-width:calc(100vw - 24px);padding:12px 14px;font-size:14px;line-height:1.55;display:block;box-shadow:0 6px 24px #00000012}.chat-history-list>.button{width:100%;margin-top:12px}@media (max-width:380px){.chat-composer:not(:has(.chat-model-select)) .chat-composer-footer{grid-template-columns:36px 1fr;gap:8px;display:grid}.chat-composer:not(:has(.chat-model-select)) .chat-add-menu{grid-area:1/1}.chat-composer:not(:has(.chat-model-select)) .chat-inline-controls{grid-area:1/2;display:flex}.chat-composer:not(:has(.chat-model-select)) .chat-send-area{grid-area:2/2;justify-self:end}}.admin-recovery{border:1px solid #d8d8d8;border-radius:10px;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px;display:flex}.admin-recovery label{flex-direction:column;flex:1;gap:8px;min-width:220px;font-size:14px;display:flex}.admin-recovery p{color:#666;width:100%;font-size:14px;line-height:1.5}.chat-assistant-message .result-content{max-height:none}.answer-copy-toolbar{z-index:2;pointer-events:none;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;margin-bottom:12px;display:flex;position:sticky;top:54px}.answer-copy-button{background:var(--surface,#fff);color:#333;pointer-events:auto;border:1px solid #d8d8d8;border-radius:7px;align-items:center;gap:7px;min-height:40px;padding:8px 12px;font-size:14px;display:inline-flex}.answer-copy-button:hover{background:#f1f1f1}.answer-copy-error{background:var(--surface,#fff);pointer-events:auto;width:100%;font-size:14px;line-height:1.5}.audio-workspace{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:36px;max-width:1240px;margin:28px auto;padding:0 24px 48px;display:grid}.audio-compose-column{min-width:0}.audio-workspace h1{letter-spacing:-.5px;margin:0 0 22px;font-size:26px;font-weight:500;line-height:1.3}.audio-workspace h2{margin:0 0 18px;font-size:20px;font-weight:500;line-height:1.4}.speech-composer{background:#fff;border:1px solid #d8d8d8;border-radius:16px;padding:22px}.speech-selected-voice{text-align:left;flex-wrap:wrap;align-items:baseline;gap:8px 12px;min-height:36px;margin-bottom:18px;display:flex}.speech-selected-voice span{color:#666;font-size:14px}.speech-selected-voice strong{text-underline-offset:4px;font-size:16px;font-weight:500;-webkit-text-decoration:underline #ccc;text-decoration:underline #ccc}.speech-label{margin-bottom:10px;font-size:14px;display:block}.speech-composer textarea{resize:none;background:0 0;border:0;width:100%;min-height:160px;max-height:600px;padding:0;font-size:16px;line-height:1.8;display:block}.speech-composer textarea::placeholder{font-size:14px}.speech-composer textarea:focus-visible{outline-offset:6px}.speech-text-footer{color:#666;justify-content:space-between;align-items:flex-start;gap:18px;margin-top:14px;font-size:14px;line-height:1.5;display:flex}.speech-text-footer>span{white-space:normal;overflow-wrap:anywhere;min-width:0}.speech-controls{border-top:1px solid #e5e5e5;grid-template-columns:1fr 100px;gap:16px;margin-top:24px;padding-top:20px;display:grid}.speech-controls label,.speech-add-voice label{flex-direction:column;gap:8px;min-width:0;font-size:14px;display:flex}.speech-controls .studio-select-trigger{min-height:42px}.speech-controls .speech-speed{grid-column:1/-1}.speech-speed>span,.speech-options label>span{justify-content:space-between;align-items:center;display:flex}.speech-speed strong,.speech-options strong{font-variant-numeric:tabular-nums;font-weight:500}.speech-speed input,.speech-options input{accent-color:#222;height:28px;padding:0}.speech-options{margin-top:16px;font-size:14px}.speech-options summary{cursor:pointer;color:#555;align-items:center;min-height:36px;display:flex}.speech-options label{flex-direction:column;gap:8px;margin-top:12px;display:flex}.speech-options p{color:#666;margin-top:8px;line-height:1.6}.speech-submit-row{justify-content:flex-end;margin-top:20px;display:flex}.speech-submit-row .button{color:#fff;background:#222;border-radius:9px;min-height:44px;padding:11px 22px}.speech-submit-row .button:hover:not(:disabled){background:#111}.speech-error,.speech-connection{color:#333;padding:12px 0;font-size:14px;line-height:1.6}.speech-error{font-weight:500}.speech-voices{min-width:0;scroll-margin-top:70px;position:sticky;top:68px}.speech-voice-tabs{border-bottom:1px solid #ddd;gap:18px;margin-bottom:18px;display:flex}.speech-voice-tabs button{color:#666;border-bottom:2px solid #0000;min-height:40px;padding:0 0 10px;font-size:14px}.speech-voice-tabs button[aria-pressed=true]{color:#111;border-bottom-color:#222}.speech-search{border:1px solid #d8d8d8;border-radius:8px;align-items:center;gap:10px;margin-bottom:10px;padding:0 12px;display:flex}.speech-search input{background:0 0;border:0;height:42px;padding:0;font-size:14px}.speech-search svg{color:#666;flex:none}.speech-voices>.studio-select{width:100%}.speech-voice-help{color:#666;margin:14px 0;font-size:14px;line-height:1.6}.speech-loading{color:#666;align-items:center;gap:8px;padding:14px 0;font-size:14px;line-height:1.6;display:flex}.speech-voice-list{scrollbar-width:none;flex-direction:column;gap:8px;max-height:min(620px,65vh);display:flex;overflow:auto}.speech-voice-list::-webkit-scrollbar{display:none}.speech-voice-row{background:0 0;border:1px solid #dedede;border-radius:10px;align-items:center;gap:6px;min-width:0;padding:4px;display:flex}.speech-voice-row.selected{background:#fff;border-color:#222}.speech-voice-choice{text-align:left;flex-direction:column;flex:1;justify-content:center;gap:5px;min-width:0;min-height:68px;padding:9px 8px;display:flex}.speech-voice-choice strong{overflow-wrap:anywhere;font-size:14px;font-weight:500;line-height:1.45}.speech-voice-choice>span{color:#666;font-size:14px;line-height:1.4}.speech-voice-actions{flex:none;align-items:center;gap:0;display:flex}.speech-voice-actions .icon-button{min-width:34px;min-height:40px}.speech-voices>.button{border-radius:8px;width:100%;margin-top:12px}.speech-add-voice{margin-top:20px;font-size:14px}.speech-add-voice summary{cursor:pointer;min-height:36px}.speech-add-voice form{flex-direction:column;gap:12px;margin-top:12px;display:flex}.speech-add-voice input{font-size:14px}.speech-add-voice .button{border-radius:7px}.speech-history{margin-top:36px}.speech-history-empty{color:#777;padding:8px 0 30px;font-size:16px;line-height:1.7}.speech-result{border-top:1px solid #ddd;padding:22px 0}.speech-result-heading{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px;display:flex}.speech-result-heading strong{font-size:16px;font-weight:500}.speech-result-heading span{color:#666;white-space:nowrap;font-size:14px}.speech-result details{margin-bottom:18px}.speech-result summary{cursor:pointer;overflow-wrap:anywhere;font-size:16px;line-height:1.6}.speech-result details>p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px;font-size:16px;line-height:1.8}.speech-result>p{color:#555;font-size:14px;line-height:1.6}.speech-result audio{width:100%;margin:16px 0;display:block}.speech-result-footer{color:#666;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;font-size:14px;line-height:1.6;display:flex}.speech-result-footer>div{align-items:center;gap:16px;display:flex}.speech-result-footer a{color:#222;align-items:center;gap:6px;min-height:36px;display:inline-flex}.speech-result-footer button{color:#333;min-height:36px;padding:0}@media (max-width:900px){.audio-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding:0 18px 40px}.speech-composer{padding:18px}.speech-text-footer{flex-wrap:wrap;gap:8px}}@media (max-width:700px){.audio-workspace{grid-template-columns:1fr;gap:32px;margin-top:24px;padding:0 12px 36px}.audio-workspace h1{font-size:24px}.speech-voices{position:static}.speech-voice-list{max-height:520px}.speech-voice-row{min-height:76px}.speech-voice-choice strong{font-size:16px}.speech-compose-column{min-width:0}.speech-composer{padding:16px}.speech-result-heading{flex-wrap:wrap}.speech-history{margin-top:28px}}@media (max-width:380px){.app-header{gap:8px;padding:0 8px}.app-header .header-nav{gap:8px}.app-header .header-nav>a{font-size:14px}.header-brand{font-size:15px!important}.speech-controls{grid-template-columns:minmax(0,1fr) 88px;gap:12px}.speech-composer{padding:14px}.speech-selected-voice strong{font-size:14px}.speech-text-footer{flex-direction:column}.speech-submit-row .button{width:100%}}.speech-voices-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.speech-voices-heading h2{margin:0}.speech-voices-heading>button{color:#333;align-items:center;gap:5px;min-height:36px;padding:4px 0;font-size:14px;display:inline-flex}.speech-voice-tabs{gap:16px}.speech-clone-form{background:#fff;border:1px solid #d2d2d2;border-radius:12px;flex-direction:column;gap:14px;margin-bottom:18px;padding:16px;display:flex}.speech-clone-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.speech-clone-heading h3{font-size:17px;font-weight:500}.speech-clone-form>p{color:#666;font-size:14px;line-height:1.6}.speech-clone-form label{flex-direction:column;gap:8px;font-size:14px;display:flex}.speech-clone-form textarea{resize:none;min-height:110px;font-size:14px}.speech-clone-form input{font-size:14px}.speech-clone-form .button{color:#fff;background:#222;border-radius:7px;min-height:42px}.speech-clone-file{overflow-wrap:anywhere;border:1px dashed #bbb;border-radius:8px;padding:14px;line-height:1.5}.speech-clone-file input{border:0;border-radius:0;max-width:100%;height:auto;padding:0;font-size:14px}.speech-clone-file input::file-selector-button{font:inherit;color:#333;background:#f5f5f5;border:1px solid #ccc;border-radius:5px;margin-right:8px;padding:7px 10px}.speech-submit-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}.speech-markup-actions{align-items:center;gap:6px;display:flex}.speech-markup-actions .button.secondary{color:#333;background:0 0;border:1px solid #d8d8d8;border-radius:8px;min-height:42px;padding:9px 12px;font-size:14px}.speech-markup-actions .button.secondary:hover:not(:disabled){background:#f4f4f4}.speech-shortcut{color:#ddd;white-space:nowrap;margin-left:6px;font-size:14px}.speech-markup-note{color:#555;margin-top:14px;font-size:14px;line-height:1.5}@media (max-width:700px){.speech-shortcut{display:none}.speech-submit-row>.button.primary{flex:1;min-width:180px}.speech-markup-actions{flex-shrink:0}}@media (max-width:380px){.speech-submit-row>.button.primary{flex-basis:100%}}.speech-submit-row{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.speech-character-count{white-space:nowrap;color:#666;font-variant-numeric:tabular-nums;flex:none;font-size:14px}.speech-count-mobile,.speech-generate-mobile{display:none}.speech-submit-row>.button.primary{white-space:nowrap;flex:none;width:auto;min-width:0}.speech-markup-actions{flex:none;margin-left:auto}.speech-markup-actions>.button{white-space:nowrap}.speech-voices>.studio-select+.studio-select{margin-top:10px}.speech-catalog-count{color:#666;margin:-4px 0 14px;font-size:14px;line-height:1.5}@media (max-width:1100px){.speech-count-unit,.speech-shortcut{display:none}.speech-submit-row>.button.primary{padding:10px 12px;font-size:14px}.speech-submit-row{gap:8px}}@media (min-width:701px) and (max-width:1000px){.speech-markup-label{display:none}.speech-markup-actions>.button.secondary{min-width:38px;padding:9px}.speech-markup-actions{gap:2px}}@media (max-width:540px){.speech-submit-row{gap:6px}.speech-count-desktop,.speech-generate-label,.speech-markup-label{display:none}.speech-count-mobile,.speech-generate-mobile{display:inline}.speech-markup-actions{gap:2px}.speech-markup-actions>.button.secondary{gap:0;min-width:32px;padding:8px}.speech-markup-actions .director-help-button{width:24px;min-width:24px;min-height:40px;padding:4px}.speech-submit-row>.button.primary{flex-basis:auto;gap:5px;width:auto;min-width:0;padding:10px 7px;font-size:14px}.speech-submit-row .button.primary svg{width:16px;height:16px}}.speech-character-count.over-limit{color:#a12622;font-weight:600}.speech-voice-row{flex-shrink:0}.speech-voice-choice .speech-voice-stats{color:#666;font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:6px 12px;margin-top:3px;font-size:14px;line-height:1.5;display:flex}.speech-voice-stats>span{white-space:nowrap;align-items:center;gap:5px;display:inline-flex}.speech-voice-stats svg{flex:none}.speech-sort-note{color:#666;margin:12px 0;font-size:14px;line-height:1.5}.text-director-modes{align-items:center;gap:10px;min-width:0;display:flex}@media (max-width:620px){.chat-composer-footer:has(.text-director-modes){flex-wrap:wrap}.chat-inline-controls:has(.text-director-modes){flex-basis:100%;order:-1;margin-bottom:5px}.text-director-modes{flex-wrap:wrap;gap:4px}.text-director-modes .director-toggle{gap:7px;padding:6px}.chat-composer-footer:has(.text-director-modes) .chat-send-area{margin-left:auto}.chat-composer:has(.text-director-modes) .chat-composer-footer{flex-wrap:wrap;display:flex}.chat-composer:has(.text-director-modes) .chat-inline-controls{flex:100%;order:-1;grid-area:auto}.chat-composer:has(.text-director-modes) .chat-send-area{grid-area:auto}}
