.studio-page{display:flex;width:100%;max-width:100vw;min-height:100vh;background:#131619;overflow-x:clip}.studio-sidebar{width:263px;flex-shrink:0;background:#171717;border-right:1px solid #3b3b3b;padding:34px 25px 0;display:flex;flex-direction:column;box-sizing:border-box;height:100vh;position:-webkit-sticky;position:sticky;top:0}.studio-logo{margin-bottom:38px;cursor:pointer}.studio-logo img{width:184px;height:52px;display:block}.studio-section-label{font-family:PingFang SC;font-weight:700;font-size:14px;color:rgba(153,153,153,.6);line-height:28px;letter-spacing:.15px;margin-bottom:11px}.studio-new-chat-btn{display:flex;align-items:center;gap:7px;width:187px;height:42px;background:#252526;border:none;border-radius:6px;cursor:pointer;padding:0 0 0 5px;box-sizing:border-box;transition:background .15s;font-family:inherit}.studio-new-chat-btn:hover{background:#2e2e30}.new-chat-icon{width:30px;height:30px;background:#575757;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.new-chat-text{font-family:PingFang SC;font-weight:700;font-size:14px;color:#FFFFFF;line-height:28px;letter-spacing:.15px}.studio-history{margin-top:28px;flex:1 1;overflow-y:auto}.history-group{margin-bottom:13px}.history-date{font-family:PingFang SC;font-weight:700;font-size:14px;color:rgba(153,153,153,.6);line-height:28px;letter-spacing:.15px;margin-bottom:7px}.history-item{display:flex;align-items:center;height:38px;padding:0 12px 0 5px;border-radius:6px;cursor:pointer;transition:background .15s;margin-bottom:8px;position:relative}.history-item:hover{background:rgba(255,255,255,.05)}.history-item.active{background:rgba(156,240,206,.08)}.history-item.active .history-item-text{color:#9CF0CE}.history-item.selected{background:rgba(156,240,206,.08)}.history-item.selected .history-item-text{color:#9CF0CE}.pin-icon{width:12px;height:12px;margin-right:4px;background:#9CF0CE;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1V13M7 1L4 4M7 1L10 4M3 10H11'/%3E%3C/svg%3E") no-repeat center /contain;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1V13M7 1L4 4M7 1L10 4M3 10H11'/%3E%3C/svg%3E") no-repeat center /contain}.checkbox{width:18px;height:18px;border-radius:4px;border:1.5px solid #555555;margin-right:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s}.checkbox.checked{background:#9CF0CE;border-color:#9CF0CE}.item-menu-btn{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .15s,background .15s;margin-left:auto;flex-shrink:0}.history-item.menu-open .item-menu-btn,.history-item:hover .item-menu-btn{opacity:1}.item-menu-btn:hover{background:rgba(255,255,255,.1)}.item-menu-dropdown{position:fixed;z-index:1000;background:#2A2A2A;border-radius:8px;padding:6px 0;min-width:140px;box-shadow:0 8px 24px rgba(0,0,0,.4);border:1px solid #3b3b3b}.menu-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 14px;background:transparent;border:none;color:#FFFFFF;font-family:PingFang SC;font-size:13px;font-weight:400;cursor:pointer;text-align:left;transition:background .15s}.menu-item:hover{background:rgba(255,255,255,.06)}.menu-item.danger{color:#E63B3B}.menu-item.danger:hover{background:rgba(230,59,59,.1)}.menu-item svg{flex-shrink:0}.rename-overlay{position:absolute;left:0;right:0;z-index:1001;padding:0 12px}.rename-input{width:100%;height:38px;background:#3A3A3A;border:1px solid #9cf0ce;border-radius:6px;color:#FFFFFF;font-family:PingFang SC;font-weight:700;font-size:14px;padding:0 12px;outline:none}.rename-input::placeholder{color:#666666}.select-mode-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:rgba(156,240,206,.08);border-radius:6px;margin-bottom:8px}.select-mode-done,.select-mode-info{font-family:PingFang SC;font-size:13px;color:#9CF0CE}.select-mode-done{background:transparent;border:none;cursor:pointer;padding:0}.select-mode-done:hover{text-decoration:underline}.history-item-icon{width:30px;height:30px;border-radius:6px;background:#2a2a2a;flex-shrink:0;margin-right:7px}.history-item-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.history-item-rename-input,.history-item-text{font-family:PingFang SC;font-weight:700;font-size:14px;color:#FFFFFF;line-height:28px;letter-spacing:.15px;flex:1 1;min-width:0}.history-item-rename-input{height:24px;background:#2A2A2A;border:1px solid #9cf0ce;border-radius:4px;padding:0 6px;outline:none;box-sizing:border-box}.studio-main{flex:1 1;min-width:0;min-height:0;padding:99px clamp(32px,calc((100vw - 1263px) / 2),197px) 48px;display:flex;flex-direction:column;box-sizing:border-box;position:relative}.mini-screenplay{width:min(100%,1000px);align-self:center;background:#1c2028;border:1px solid #38404e;border-radius:16px;padding:22px;margin-bottom:24px;color:#f3f5f8;box-sizing:border-box}.mini-screenplay header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}.mini-screenplay h2{font-size:19px;margin:0}.mini-screenplay header span,.mini-screenplay p{color:#b4bdcb;font-size:13px;line-height:1.5}.mini-field{display:flex;flex-direction:column;gap:7px;font-size:13px;color:#ccd2dc;min-width:0}.mini-field input,.mini-field textarea{width:100%;box-sizing:border-box;border:1px solid #465062;border-radius:8px;background:#12161e;color:#fff;padding:9px 11px;font:inherit;resize:vertical}.mini-field textarea{min-height:68px}.mini-field:has(>textarea):first-of-type textarea{min-height:100px}.mini-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:14px;gap:14px;margin:16px 0}.mini-actions,.mini-recent{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:14px}.mini-screenplay button{padding:8px 12px;color:#fff;background:#283e4a;border:1px solid #487783;border-radius:7px;cursor:pointer}.mini-screenplay button:disabled{opacity:.45;cursor:not-allowed}.mini-run{border-top:1px solid #38404e;padding-top:12px;margin-top:14px}@media (max-width:680px){.mini-screenplay{padding:15px}.mini-screenplay header{display:block}.mini-fields{grid-template-columns:1fr}}.studio-top-bar{position:absolute;top:44px;right:81px;z-index:50}.studio-top-blocks{display:flex;gap:5px;height:40px;align-items:center}.studio-top-block{height:48px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:transparent;border:1px solid rgba(255,255,255,.1);border-radius:50px;cursor:pointer;font-family:inherit;box-sizing:border-box;position:relative;padding:0 12px;transition:all .15s ease}.studio-top-block-credits{width:auto;min-width:94px}.studio-top-block-director{width:auto;min-width:93px}.studio-top-block-market,.studio-top-block-publish{width:auto;min-width:80px}.studio-top-block-profile{width:108px}.studio-account-menu{position:fixed;z-index:10000;width:250px;display:grid;grid-gap:4px;gap:4px;padding:12px;color:#eff5fa;background:#202a35;border:1px solid #556b7d;border-radius:10px;box-shadow:0 14px 32px #0009}.studio-account-menu strong{padding:6px 8px;overflow:hidden;text-overflow:ellipsis}.studio-account-menu button{width:100%;padding:9px 10px;border:0;border-radius:6px;color:inherit;background:transparent;text-align:left;cursor:pointer}.studio-account-menu button:focus-visible,.studio-account-menu button:hover{background:#354b5e}.studio-top-block-login{width:100px;gap:4px}.studio-top-block:before{content:"";position:absolute;inset:1px;border:1px solid #5c5c5c;border-radius:46px;pointer-events:none}.studio-top-block:hover{background:rgba(255,255,255,.05)}.studio-top-block:disabled{cursor:not-allowed;opacity:.65}.studio-top-block-profile .studio-top-block-label{width:30px;height:28px;line-height:28px;text-align:center;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:3px}.studio-top-block-icon{width:14px;height:18px;object-fit:contain;display:block;flex-shrink:0}.studio-top-block-icon-hidden{visibility:hidden;opacity:0}.studio-top-block-label{font-size:14px;line-height:28px;color:#fff;font-weight:500;white-space:nowrap}.studio-top-block-profile .studio-top-avatar-inline{margin-right:5px;margin-left:3px}.studio-top-avatar-inline{background:#2a2d3a;border:1px solid rgba(255,255,255,.2);flex-shrink:0}.studio-top-avatar{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;outline:none!important}.studio-top-avatar:active,.studio-top-avatar:focus,.studio-top-avatar:hover{outline:none!important;box-shadow:none!important;border-color:transparent!important}.studio-back-btn{position:absolute;top:99px;left:25px;width:36px;height:36px;background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:6px;transition:background .15s}.studio-back-btn:hover{background:rgba(255,255,255,.1)}.studio-prompt-section{width:min(100%,1000px);align-self:center;margin-bottom:8px}.studio-prompt-text{font-family:PingFang SC;font-weight:400;font-size:14px;color:#FFFFFF;line-height:normal;margin-bottom:20px}.studio-model-info{display:flex;align-items:center;gap:8px}.model-info-item{font-family:PingFang SC;font-weight:400;font-size:14px;color:#999999;line-height:20px}.model-info-sep{width:1px;height:10px;background:#414141}.studio-results{display:flex;flex-wrap:wrap;gap:4px;width:min(100%,1000px);align-self:center}.result-image{width:248px;height:440px;border-radius:4px;flex-shrink:0;cursor:pointer;transition:transform .2s}.result-image:hover{transform:translateY(-2px)}.result-image:nth-child(2),.result-image:nth-child(3){width:247px}.studio-actions{display:flex;gap:4px;margin-top:9px;width:min(100%,1000px);align-self:center}.studio-action-btn{width:90px;height:34px;background:#202020;border:none;border-radius:6px;color:#FFFFFF;font-family:PingFang SC;font-weight:400;font-size:12px;cursor:pointer;transition:background .15s}.studio-action-btn:hover{background:#2a2a2a}.studio-empty-state{flex:1 1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;width:min(100%,1000px);align-self:center}.empty-title{font-family:PingFang SC;font-weight:700;font-size:24px;color:#FFFFFF;margin-bottom:12px}.empty-desc{font-family:PingFang SC;font-weight:400;font-size:14px;color:#999999}.chat-messages{flex:1 1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:24px;padding-top:80px;padding-bottom:32px;width:min(100%,1000px);align-self:center}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-thumb{background:#3a3a3a;border-radius:3px}.chat-bubble{display:flex;flex-direction:column;gap:12px;max-width:800px}.chat-bubble-assistant{margin-right:auto}.chat-bubble-user{margin-left:auto}.chat-bubble-text{background:#202020;border-radius:6px;padding:12px 16px;font-family:PingFang SC;font-weight:400;font-size:14px;color:#FFFFFF;line-height:22px;white-space:pre-wrap;word-break:break-word}.chat-bubble-assistant .chat-bubble-text{background:transparent;border-radius:0;padding:0}.chat-bubble-images{display:flex;gap:4px}.chat-bubble-img{width:248px;height:440px;border-radius:4px;flex-shrink:0;cursor:pointer}.chat-bubble-img:nth-child(2){width:248px}.chat-bubble-img:nth-child(3){width:247px}.chat-bubble-actions{display:flex;gap:4px}.chat-bubble-action-btn{width:90px;height:34px;background:#202020;border:none;border-radius:6px;color:#FFFFFF;font-family:PingFang SC;font-weight:400;font-size:12px;cursor:pointer;transition:background .15s}.chat-bubble-action-btn:hover{background:#2a2a2a}.studio-input-card{width:min(100%,1000px);align-self:center;min-height:242px;background:#252526;border:1px solid #5c5c5c;border-radius:20px;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);padding:18px;box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0}@media (max-width:900px){.studio-sidebar{width:80px;padding-inline:12px}.studio-logo img{width:56px;height:40px;object-fit:contain}.new-chat-text,.studio-history,.studio-section-label{display:none}.studio-new-chat-btn{width:56px;justify-content:center;padding-left:0}.studio-main{padding:88px 20px 32px}.studio-back-btn{top:28px;left:20px}.studio-top-bar{top:24px;right:20px}.studio-top-block:not(.studio-top-block-profile){display:none}}.studio-input-card-with-margin{margin-top:81px}@media (max-width:600px){.studio-page{flex-direction:column}.studio-sidebar{width:100%;height:auto;position:static;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-right:0;border-bottom:1px solid #3b3b3b}.studio-sidebar .studio-logo{margin:0}.studio-sidebar .studio-new-chat-btn{width:48px;min-height:40px;margin:0}.studio-main{width:100%;padding:76px 12px 24px}.studio-empty-state{min-height:180px}.studio-input-card{border-radius:14px;padding:12px}}.studio-mode-heading{color:#9cf0ce;font-size:14px;font-weight:600;margin-bottom:12px}.input-area{margin-bottom:56px}.input-field{width:100%;border:none;background:transparent;outline:none;font-family:PingFang SC;font-weight:400;font-size:14px;color:#FFFFFF;line-height:28px;letter-spacing:.15px;padding:0}.input-field::placeholder{color:#999999}.bottom-controls{gap:7px;margin-top:auto;flex-wrap:wrap}.bottom-controls,.control-btn{display:flex;align-items:center}.control-btn{height:34px;padding:0 10px;background:#202020;border:none;border-radius:6px;cursor:pointer;gap:6px;transition:background .15s}.control-btn:hover{background:#2a2a2a}.control-btn:first-child{width:auto;min-width:90px;justify-content:flex-start}.control-btn:nth-child(2){width:auto}.control-btn-video-settings{width:157px;padding:0 10px}.control-btn-duration{width:auto;min-width:58px;padding:0 10px;justify-content:center}.continuity-context-summary{margin:0 20px 8px;color:#9aa4b2;font-size:12px}.continuity-context-summary strong{color:#cbd5e1}.continuity-context-details,.continuity-context-heading{display:flex;gap:6px}.continuity-context-heading{align-items:center}.continuity-context-details{flex-direction:column;margin-top:6px;line-height:1.45}.continuity-context-details details{color:#7f8a99}.continuity-context-details summary{cursor:pointer}.continuity-context-error{color:#ff8b8b}.continuity-context-error button{margin-left:8px;border:0;padding:2px 8px;border-radius:4px;color:#fff;background:#49515c;cursor:pointer}.duration-slider-label{display:flex;justify-content:space-between;margin-top:10px;color:#fff;font-size:12px}.duration-slider{width:100%;margin:8px 0 4px;accent-color:#409eff;cursor:pointer}.estimate-summary{min-height:17px;color:#999;font-size:12px}.control-btn-text{font-family:PingFang SC;font-weight:400;font-size:12px;color:#FFFFFF;line-height:17px;white-space:nowrap}.control-sep{width:1px;height:10px;background:rgba(255,255,255,.04);margin:0 2px}.bottom-right{margin-left:auto;display:flex;align-items:center;gap:6px}.price-text{font-family:PingFang SC;font-weight:400;font-size:12px;color:#999999;line-height:17px}.send-btn{width:30px;height:30px;background:#D8D8D8;border:none;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s;flex-shrink:0}.send-btn:hover{background:#c0c0c0}.settings-popup{position:fixed;z-index:1000;width:min(430px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow-y:auto;background:#202020;border-radius:6px;padding:15px 12px 29px 13px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px}.resolution-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px;width:100%}.model-dropdown-popup{transform-origin:bottom center;animation:dropdownFadeIn .15s ease-out}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.settings-section{display:flex;flex-direction:column;gap:8px}.settings-label{font-family:PingFang SC;font-weight:700;font-size:12px;color:#FFFFFF;line-height:17px}.settings-row{display:flex;align-items:center;width:100%;height:43px;background:#252526;border-radius:4px;padding:6px;box-sizing:border-box}.model-dropdown-popup .settings-row{height:auto;flex-direction:column;align-items:stretch;gap:4px;padding:8px}.model-dropdown-popup .settings-option{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;width:100%;padding:10px 12px;background:#2a2a2a;border-radius:4px;color:#ffffff;font-size:13px;font-weight:500;text-align:left;transition:background .15s}.model-dropdown-popup .settings-option:hover{background:#3a3a3a}.model-dropdown-popup .settings-option.active{background:#409eff;color:#ffffff}.model-dropdown-popup .settings-option .model-name{font-weight:600;font-size:13px;line-height:18px}.model-dropdown-popup .settings-option .model-info{font-size:11px;color:#94a3b8;margin-top:4px;line-height:14px}.model-dropdown-popup .settings-option.active .model-info{color:rgba(255,255,255,.8)}.settings-row.size-row{height:auto;min-height:101px;flex-wrap:wrap;align-content:flex-start;padding:2px 7px;gap:1px 24px}.settings-option{border:none;cursor:pointer;font-family:PingFang SC;font-weight:700;background:transparent;transition:all .15s;padding:0;display:flex;align-items:center;justify-content:center;line-height:17px}.quality-opt{width:78px;height:31px;font-size:12px;color:#999999;border-radius:4px;margin-right:14px}.quality-opt:last-child{margin-right:0}.quality-opt.active{background:#FFFFFF;color:#252526}.resolution-opt{width:100%;min-width:0;min-height:58px;font-size:12px;color:#999999;border-radius:4px;padding:8px;flex-direction:column;gap:3px;background:#252526;border:1px solid transparent}.resolution-opt.active{background:#FFFFFF;color:#252526;border-color:#409eff;box-shadow:0 0 0 2px rgba(64,158,255,.3)}.resolution-opt strong{font-size:13px;line-height:17px}.resolution-opt span{font-size:11px;font-weight:400;white-space:nowrap}.duration-range{color:#8f98a5;font-size:11px}.fixed-duration{display:grid;grid-template-columns:1fr auto;align-items:center;grid-gap:4px 12px;gap:4px 12px;padding:10px 12px;color:#fff;background:#252526;border-radius:5px}.fixed-duration strong{padding:4px 9px;color:#252526;background:#fff;border-radius:4px}.fixed-duration small{grid-column:1/-1;color:#8f98a5}@media (max-width:520px){.resolution-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:340px){.resolution-grid{grid-template-columns:1fr}}.size-opt{width:32px;height:32px;font-size:12px;color:#999999;border-radius:4px}.size-opt.active{background:#FFFFFF;color:#252526}.count-opt{width:67px;height:31px;font-size:12px;color:#999999;border-radius:4px;margin-right:27px}.count-opt:last-child{margin-right:0}.count-opt.active{background:#FFFFFF;color:#252526}.duration-popup{position:absolute;z-index:1000;width:295px;background:#202020;border-radius:6px;padding:15px 12px 11px 13px;box-sizing:border-box;display:flex;flex-direction:column;gap:8px}.duration-label{font-family:PingFang SC;font-weight:700;font-size:12px;color:#FFFFFF;line-height:17px}.duration-input-row{width:267px;height:27px;background:#404040;border:1px solid #5c5c5c;border-radius:6px;box-sizing:border-box;display:flex;align-items:center;padding:0 8px}.duration-input{flex:1 1;background:transparent;border:none;outline:none;font-family:PingFang SC;font-weight:400;font-size:12px;color:#FFFFFF;line-height:17px}.duration-input::placeholder{color:#999999}.duration-suffix{font-weight:700;color:#FFFFFF;margin-left:4px}.duration-hint,.duration-suffix{font-family:PingFang SC;font-size:12px;line-height:17px}.duration-hint{font-weight:400;color:#999999}