:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#17202f;background:#fff;font-synthesis:none;--ink: #17202f;--muted: #6f7887;--line: #dfe4eb;--soft: #f7f9fb;--blue: #2767d7;--blue-deep: #1856c2;--blue-pale: #eef5ff;--sage: #58ad74;--danger: #d94a43}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;background:#fff}button,input,textarea,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent}button{border:0;background:none;cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}svg{width:19px;height:19px;stroke-width:1.7;flex:0 0 auto}.brand{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:29px;line-height:1;font-weight:750;letter-spacing:-.045em;color:#18202d;white-space:nowrap}.topbar,.login-header{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;background:#fffffff5}.topbar{position:sticky;top:0;z-index:20;gap:62px}.topnav{align-self:stretch;display:flex;gap:12px}.topnav button{min-width:112px;padding:0 16px;display:flex;align-items:center;justify-content:center;gap:9px;color:#3f4856;font-size:15px;font-weight:540;border-bottom:2px solid transparent}.topnav button.active{color:var(--blue);border-bottom-color:var(--blue)}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:26px}.connection{display:inline-flex;align-items:center;gap:8px;color:#555f6d;font-size:13px}.connection i,.status-dot{width:8px;height:8px;border-radius:99px;background:#aab2be}.connection.connected i,.status-dot.active{background:var(--sage)}.connection.offline i{background:#c99a48}.user-menu{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 12px;border:1px solid var(--line);border-radius:12px}.user-menu svg:last-child{width:15px}.account-menu{position:relative}.account-popover{position:absolute;right:0;top:calc(100% + 9px);width:190px;padding:7px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 18px 45px #18202d24}.account-popover button{width:100%;display:flex;align-items:center;gap:9px;padding:11px 10px;border-radius:7px;text-align:left;font-size:13px}.account-popover button:hover{background:var(--soft)}.account-popover svg{width:17px}.primary,.secondary{min-height:46px;padding:0 22px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650}.primary{color:#fff;background:linear-gradient(118deg,#1f5bc9,#3f82e7);box-shadow:0 8px 20px #2767d724;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.primary:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 11px 25px #2767d733;filter:saturate(1.06)}.primary:not(:disabled):active{transform:translateY(0) scale(.985)}.secondary{border:1px solid var(--line);background:#fff}.wide{width:100%}.icon-button{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}.icon-button:hover{background:var(--soft)}.form-error{color:var(--danger);margin:0;font-size:13px}.login-page{min-height:100vh;background:#fff}.login-layout{min-height:calc(100vh - 68px);display:grid;grid-template-columns:minmax(280px,28.5%) 1fr}.login-art{position:relative;overflow:hidden;border-right:1px solid var(--line);background:linear-gradient(150deg,#f8fbff,#edf4fc)}.login-art:before,.login-art:after,.login-art span{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(39,103,215,.34);transform:rotate(48deg)}.login-art:before{left:-270px;top:230px}.login-art:after{left:-110px;top:570px}.login-art span:nth-child(1){left:-300px;top:410px;opacity:.38}.login-art span:nth-child(2){left:120px;top:790px;opacity:.24}.login-panel{display:grid;place-items:center;padding:70px 24px 130px}.login-form{width:min(640px,82%);display:grid;gap:25px}.login-form h1{font-size:42px;letter-spacing:-.045em;text-align:center;margin:0 0 24px}.login-form label,.modal label,.admin-drawer label{display:grid;gap:9px;font-size:14px;font-weight:600}.input-shell{height:62px;display:flex;align-items:center;gap:12px;border:1px solid #cfd5de;border-radius:7px;padding:0 14px}.input-shell:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #2767d71a}.input-shell input{flex:1;border:0;outline:0;height:100%;background:transparent}.security-note,.initial-note{display:flex;gap:12px;align-items:center;margin:3px 0 0;padding:5px 0;font-size:14px;font-weight:450}.security-note svg,.initial-note svg{color:var(--blue)}.initial-note{border-top:1px solid var(--line);padding-top:24px}.app-shell.create-view{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;overscroll-behavior:none}.workspace-grid{height:calc(100dvh - 68px);min-height:0;display:grid;grid-template-columns:265px minmax(480px,1fr) 400px;overflow:hidden}.conversation-sidebar{background:var(--soft);border-right:1px solid var(--line);padding:23px 16px;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.new-button{width:100%}.conversation-sidebar h3{margin:28px 8px 11px;font-size:13px}.conversation-list{flex:1;min-height:0;display:grid;align-content:start;gap:6px;overflow-y:auto;overscroll-behavior:contain}.conversation-list button{display:flex;gap:10px;text-align:left;padding:12px 10px;border-radius:9px;min-width:0;transition:background-color .18s ease,color .18s ease,transform .18s ease}.conversation-list button:not(.selected):hover{background:#eef2f7;transform:translate(2px)}.conversation-list button.selected{background:#eaf2fd}.conversation-list span{min-width:0}.conversation-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.conversation-list small{color:var(--muted);font-size:11px}.sidebar-foot{flex:0 0 auto;margin:16px 6px 0;color:var(--muted);font-size:11px;display:flex;gap:7px;align-items:center}.sidebar-foot svg{width:15px}.creator-canvas{min-height:0;overflow:hidden;background:#fff}.creator-inner{width:100%;height:100%;min-height:0;margin:0;padding:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.creator-toolbar{position:relative;z-index:2;width:min(760px,calc(100% - 48px));margin:0 auto;padding:18px 0 12px;background:#fff}.creator-toolbar h1{margin:0 0 12px;text-align:center;font-size:25px;letter-spacing:-.035em}.mode-switch{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,1fr);width:390px;max-width:100%;margin:0 auto;padding:3px;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#f5f7fa}.mode-switch:before{content:"";position:absolute;z-index:-1;left:3px;top:3px;width:calc((100% - 6px) / 3);height:calc(100% - 6px);border-radius:8px;background:#fff;box-shadow:0 2px 9px #18202d1a,inset 0 0 0 1px #2767d72e;pointer-events:none;transition:transform .26s cubic-bezier(.22,.8,.24,1)}.mode-switch.mode-text:before{transform:translate(0)}.mode-switch.mode-image:before{transform:translate(100%)}.mode-switch.mode-video:before{transform:translate(200%)}.mode-switch.single{grid-template-columns:1fr}.mode-switch.single:before{width:calc(100% - 6px);transform:translate(0)}.mode-switch button{position:relative;height:36px;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:8px;color:#596577;font-weight:560;transition:color .2s ease,transform .18s ease}.mode-switch button:not(:disabled):active{transform:scale(.975)}.mode-switch button.active{color:var(--blue)}.mode-switch button svg{transition:transform .24s cubic-bezier(.22,.8,.24,1)}.mode-switch button.active svg{transform:scale(1.08)}.result-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:8px 24px 24px;background:linear-gradient(#fff,#fbfcfe)}.model-row{display:grid;grid-template-columns:92px 1fr;align-items:start;gap:14px;margin:0;font-size:13px;font-weight:620;animation:option-group-enter .22s cubic-bezier(.22,.8,.24,1)}.model-row>span:first-child{padding-top:12px}.model-select-stack{min-width:0;display:grid;gap:6px}.model-row select,.admin-drawer select{width:100%;height:42px;border:1px solid var(--line);border-radius:8px;padding:0 14px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease}.model-row select:focus{outline:0;border-color:#9cb7e8;box-shadow:0 0 0 3px #2767d71a}.model-row select option:disabled{color:#969eaa}.model-availability-note{color:#9a6b18;font-size:10px;font-weight:520;line-height:1.45}.video-settings{min-width:0;margin:0;display:grid;gap:10px;animation:option-group-enter .24s cubic-bezier(.22,.8,.24,1)}.video-setting-row{min-width:0;display:grid;grid-template-columns:92px auto minmax(110px,1fr);align-items:center;gap:14px}.video-setting-label{font-size:13px;font-weight:620}.duration-options{width:180px;display:grid;grid-template-columns:1fr 1fr;padding:3px;border:1px solid #d8dee7;border-radius:10px;background:#f5f7fa}.duration-options button{height:34px;border-radius:7px;color:#5a6677;font-size:13px;font-weight:650;transition:color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .16s ease}.duration-options button:not(.active):not(:disabled):hover,.ratio-options button:not(.active):not(:disabled):hover{color:#2d5f9e;background:#fff9}.duration-options button:not(:disabled):active,.ratio-options button:not(:disabled):active{transform:scale(.96)}.duration-options button.active{color:#194f9f;background:#fff;box-shadow:0 2px 8px #18202d17,inset 0 0 0 1px #2767d729}.video-setting-row small{color:var(--muted);font-size:10px;line-height:1.4}.ratio-options{width:328px;display:grid;grid-template-columns:repeat(4,1fr);gap:3px;padding:3px;border:1px solid #d8dee7;border-radius:10px;background:#f5f7fa}.ratio-options button{min-width:0;height:42px;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:7px;color:#5a6677;font-size:11px;font-weight:650;transition:color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .16s ease}.ratio-options button.active{color:#194f9f;background:#fff;box-shadow:0 2px 8px #18202d17,inset 0 0 0 1px #2767d729}.ratio-frame{display:block;border:1.5px solid currentColor;border-radius:2px;opacity:.82;transition:transform .2s ease}.ratio-options button.active .ratio-frame{transform:scale(1.08)}.ratio-9-16{width:10px;height:18px}.ratio-16-9{width:19px;height:11px}.ratio-9-18{width:9px;height:19px}.ratio-18-9{width:20px;height:10px}.result-panel{width:min(760px,100%);border:1px solid var(--line);border-radius:14px;min-height:250px;padding:24px;margin:0 auto;background:#fff;animation:result-reveal .24s cubic-bezier(.22,.8,.24,1)}.prompt-line,.response-line{display:flex;align-items:flex-start;gap:14px}.prompt-line{margin-bottom:22px}.avatar{width:30px;height:30px;border-radius:50%;background:#1d2633;color:#fff;display:grid;place-items:center;font-size:12px}.response-line>svg{color:var(--blue);background:var(--blue);color:#fff;padding:6px;width:30px;height:30px;border-radius:50%}.response-line>div{flex:1;min-width:0}.response-line p{margin:0;line-height:1.9;white-space:pre-wrap}.generated-media{width:min(100%,560px);max-height:360px;object-fit:contain;border-radius:10px;margin-top:18px;background:#f2f4f7}.result-actions{display:flex;gap:14px;margin-top:16px}.result-actions a,.result-actions button{display:inline-flex;gap:6px;align-items:center;font-size:13px;transition:color .18s ease,transform .18s ease}.result-actions a:hover,.result-actions button:hover{color:var(--blue);transform:translateY(-1px)}.result-empty{min-height:200px;display:grid;place-items:center;align-content:center;color:var(--muted);text-align:center}.result-empty svg{color:var(--blue);width:28px;height:28px}.result-empty h2{margin:10px 0 0;color:var(--ink)}.result-empty p{margin:6px 0}.response-line>svg.processing-icon{animation:upload-spin 1s linear infinite}.response-line.processing p{color:#51647e}.response-line.failed p{color:#a23d38}.composer-dock{position:relative;z-index:3;padding:12px 24px 20px;background:linear-gradient(#ffffffc7,#fff 24%)}.composer{width:min(760px,100%);max-height:55dvh;margin:0 auto;overflow-y:auto;border:1px solid #cfd5de;border-radius:14px;padding:14px 16px 16px;background:#fff;box-shadow:0 12px 30px #18202d17;transition:border-color .2s ease,box-shadow .2s ease}.composer:focus-within{border-color:#9cb7e8;box-shadow:0 14px 35px #2767d71c}.composer textarea{width:100%;resize:none;border:0;outline:0;padding:12px 0 6px;font-size:14px}.settings-toggle{width:100%;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 0 10px;border-bottom:1px solid #edf0f4;text-align:left}.settings-toggle>span{display:inline-flex;align-items:center;gap:7px;color:#455268;font-size:12px;font-weight:680;transition:color .18s ease}.settings-toggle:hover>span{color:var(--blue)}.settings-toggle>span svg{width:16px;height:16px}.settings-toggle small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;text-align:right}.settings-toggle>svg{width:17px;height:17px;color:#6d7888;transition:transform .26s cubic-bezier(.22,.8,.24,1),color .18s ease}.settings-toggle:hover>svg{color:var(--blue)}.settings-toggle>svg.open{transform:rotate(180deg)}.settings-collapse{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .28s cubic-bezier(.22,.8,.24,1),opacity .2s ease}.settings-collapse.open{grid-template-rows:1fr;opacity:1}.composer-settings{min-height:0;overflow:hidden;display:grid;gap:10px;padding:0;border-bottom:1px solid transparent;transition:padding .28s cubic-bezier(.22,.8,.24,1),border-color .2s ease}.settings-collapse.open .composer-settings{padding:12px 0 14px;border-bottom-color:#edf0f4}.composer .form-error,.composer .form-notice{margin:10px 0 12px}.form-notice{color:#276348;font-size:13px}.composer-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.attachment-area{min-width:0;display:grid;gap:4px}.attachment-area small{color:var(--muted);font-size:10px;line-height:1.35}.attachment{display:inline-flex;gap:7px;align-items:center;width:max-content;color:#526174;font-size:13px;font-weight:580;transition:color .18s ease,transform .18s ease}.attachment:not(:disabled):hover{color:var(--blue);transform:translateY(-1px)}.generate-button{min-width:145px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.upload-card{display:grid;grid-template-columns:64px minmax(0,1fr) 34px;align-items:center;gap:12px;padding:10px;margin:8px 0 14px;border:1px solid #d9e2ee;border-radius:11px;background:linear-gradient(120deg,#f8fbff,#f5f8fb);animation:upload-card-enter .22s cubic-bezier(.22,.8,.24,1)}.upload-preview{width:64px;height:54px;overflow:hidden;display:grid;place-items:center;border-radius:8px;background:#e8edf4}.upload-preview img,.upload-preview video{width:100%;height:100%;object-fit:cover}.upload-copy{min-width:0;display:grid;gap:4px}.upload-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.upload-copy span{color:var(--muted);font-size:11px}.remove-upload{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:#697588;transition:color .18s ease,background-color .18s ease,transform .18s ease}.remove-upload:hover{color:var(--danger);background:#fff;transform:rotate(5deg)}.remove-upload svg{width:17px}.upload-progress{margin:8px 0 14px;padding:12px 14px;border:1px solid #d9e2ee;border-radius:10px;background:#f8fbff}.upload-progress-copy{display:flex;align-items:center;gap:8px;color:#526174;font-size:12px}.upload-progress-copy svg{width:16px;height:16px;color:var(--blue);animation:upload-spin 1s linear infinite}.upload-progress-copy strong{margin-left:auto;color:var(--blue)}.upload-progress-track{height:4px;margin-top:9px;overflow:hidden;border-radius:9px;background:#e3e9f0}.upload-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2c66cb,#69a0ed);transition:width .18s ease}.input-asset-block{margin:0 0 22px 44px;padding:12px;border:1px solid #e0e5ec;border-radius:11px;background:#fafbfd}.input-asset-block header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--muted);font-size:11px;font-weight:620}.input-asset-block header a{display:inline-flex;align-items:center;gap:5px;color:#4c5a6d}.input-asset-block header svg{width:14px;height:14px}.input-media{display:block;width:min(100%,430px);max-height:270px;object-fit:contain;border-radius:8px;background:#edf1f5}@keyframes upload-spin{to{transform:rotate(360deg)}}@keyframes result-reveal{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes upload-card-enter{0%{opacity:0;transform:translateY(5px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes option-group-enter{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.history-rail{border-left:1px solid var(--line);background:#fff;min-width:0;min-height:0;display:flex;flex-direction:column}.rail-heading{padding:28px 24px 18px;border-bottom:1px solid var(--line)}.rail-heading h2{margin:0;font-size:18px}.rail-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}.rail-scroll{flex:1;min-height:0;overflow-y:auto;padding:0 24px}.history-group{padding:18px 0 5px;border-bottom:1px solid var(--line)}.history-group h3{margin:0 0 12px;font-size:14px}.history-row{display:grid;grid-template-columns:58px 1fr auto;gap:12px;align-items:center;padding:8px 0;cursor:pointer}.history-thumb{width:58px;height:54px;border:1px solid var(--line);border-radius:8px;background:var(--soft);display:grid;place-items:center;overflow:hidden}.history-thumb img{width:100%;height:100%;object-fit:cover}.history-thumb svg{color:#455268}.history-copy{min-width:0}.history-copy strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-copy time{color:var(--muted);font-size:11px}.history-actions{display:flex}.history-actions .icon-button{width:30px;height:30px}.history-actions svg{width:16px}.retention-line{margin-top:auto;padding:18px 24px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}.retention-line i{margin-top:9px;display:block;height:5px;border-radius:9px;background:linear-gradient(90deg,var(--blue) 12%,#e8ebef 12%)}.history-copy time.processing-time{color:var(--blue);font-weight:620}.page-shell,.admin-main{padding:48px 7vw}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}.page-heading h1{margin:0;font-size:36px;letter-spacing:-.04em}.page-heading p{margin:8px 0 0;color:var(--muted)}.history-table,.user-table{border:1px solid var(--line);border-radius:11px;overflow:hidden}.history-table-head,.history-table-row{display:grid;grid-template-columns:2fr .7fr 1fr 1.2fr 1.2fr .6fr;gap:16px;align-items:center;padding:15px 18px}.history-table-head,.user-table-head{background:var(--soft);font-weight:650;font-size:13px}.history-table-row{border-top:1px solid var(--line);font-size:13px}.history-title{display:flex;gap:10px;align-items:center;min-width:0}.history-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-actions{display:flex;gap:8px}.table-actions a,.table-actions button{width:34px;height:34px;display:grid;place-items:center;border-radius:7px}.empty-state{padding:28px;text-align:center;color:var(--muted)}.empty-state.large{padding:80px}.admin-layout{min-height:calc(100vh - 68px);display:flex}.admin-main{flex:1;min-width:0}.search-field{width:390px;max-width:100%;height:48px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;gap:10px;padding:0 14px;margin-bottom:34px}.search-field input{border:0;outline:0;flex:1}.user-table-head,.user-table-row{display:grid;grid-template-columns:1fr .7fr .8fr 1.25fr 2fr;gap:16px;align-items:center;padding:17px 18px}.user-table-row{border-top:1px solid var(--line);font-size:13px}.user-table-row>span:nth-child(3){display:flex;align-items:center;gap:7px}.status-dot.disabled{background:#aab2be}.user-actions{display:flex;gap:7px}.user-actions button{display:inline-flex;align-items:center;gap:5px;padding:7px 5px;font-size:12px}.user-actions button.danger{color:var(--danger)}.user-actions svg{width:16px}.admin-action-error{margin-top:18px}.admin-warning{display:inline-flex;align-items:center;gap:10px;margin-top:40px;padding:14px 18px;color:#795412;border:1px solid #e7c780;background:#fffaf0;border-radius:8px;font-size:13px}.admin-drawer{width:475px;flex:0 0 475px;border-left:1px solid var(--line);padding:34px 32px;position:relative;box-shadow:-12px 0 30px #18202d09}.admin-drawer h2{margin:0 0 32px;font-size:28px}.drawer-close,.modal-close{position:absolute;right:24px;top:24px;width:36px;height:36px;display:grid;place-items:center}.admin-drawer form{height:calc(100% - 60px);display:flex;flex-direction:column;gap:24px}.admin-drawer input,.modal input{height:54px;border:1px solid var(--line);border-radius:7px;padding:0 13px}.admin-drawer input:focus,.modal input:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px #2767d71a}.switch-row{display:flex!important;align-items:center;flex-direction:row}.switch{width:50px;height:30px;padding:3px;border-radius:99px;background:#cfd5de}.switch i{display:block;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .2s}.switch.on{background:var(--blue)}.switch.on i{transform:translate(20px)}.drawer-actions{display:grid;grid-template-columns:1fr 1.3fr;gap:12px;margin-top:auto}.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:#12192361;backdrop-filter:blur(3px)}.modal{width:min(500px,100%);background:#fff;border-radius:16px;padding:38px;position:relative;box-shadow:0 30px 80px #1219232e}.modal.compact{width:min(460px,100%)}.modal-mark{color:var(--blue);width:30px;height:30px}.modal h2{margin:14px 0 8px}.modal>p{margin:0 0 24px;color:var(--muted);line-height:1.6}.modal form{display:grid;gap:18px}.splash{min-height:100vh;display:grid;place-items:center;align-content:center;gap:25px}.splash span{width:140px;height:3px;background:linear-gradient(90deg,transparent,var(--blue),transparent);animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.25}}@media(max-width:1180px){.workspace-grid{grid-template-columns:220px minmax(450px,1fr) 330px}.history-row{grid-template-columns:48px 1fr auto}.history-thumb{width:48px;height:48px}.topbar{gap:30px}.topnav button{min-width:auto}.admin-drawer{width:400px;flex-basis:400px}.user-table-head,.user-table-row{grid-template-columns:1fr .7fr .8fr 1fr 1.8fr}}@media(max-width:900px){.brand{font-size:24px}.topbar,.login-header{padding:0 18px}.topbar{gap:12px}.topnav{margin-left:auto}.topnav button{padding:0 9px}.topnav button span{display:none}.topbar-actions{margin-left:0;gap:8px}.connection,.user-menu span{display:none}.workspace-grid{grid-template-columns:minmax(0,1fr);overflow:hidden;height:calc(100dvh - 68px);min-height:0}.conversation-sidebar,.history-rail{display:none}.creator-canvas{overflow:hidden;min-height:0}.admin-layout{display:block}.admin-drawer{position:fixed;z-index:40;inset:68px 0 0 auto;width:min(440px,100%);box-shadow:-20px 0 50px #18202d24;background:#fff}.user-table{overflow-x:auto}.user-table-head,.user-table-row{min-width:850px}.history-table{overflow-x:auto}.history-table-head,.history-table-row{min-width:900px}.login-layout{grid-template-columns:1fr}.login-art{display:none}.login-form{width:min(600px,100%)}}@media(max-width:620px){.topbar{height:auto;min-height:68px;flex-wrap:wrap;padding-top:14px}.topnav{order:3;width:100%;height:50px;justify-content:center}.topnav button{flex:1}.create-view .workspace-grid{height:calc(100dvh - 118px);min-height:0}.creator-toolbar{width:100%;padding:10px 14px 9px}.creator-toolbar h1{display:none}.mode-switch{width:100%}.mode-switch button{height:38px}.result-scroll{padding:8px 14px 14px}.composer-dock{padding:8px 14px 12px}.composer{max-height:58dvh;padding:12px 13px 14px}.settings-toggle{gap:7px}.settings-toggle small{text-align:left}.model-row{grid-template-columns:1fr;gap:7px}.model-row>span:first-child{padding-top:0}.video-setting-row{grid-template-columns:1fr;gap:7px}.duration-options,.ratio-options{width:100%}.result-panel{padding:18px}.page-shell,.admin-main{padding:30px 16px}.page-heading{align-items:flex-start}.page-heading h1{font-size:30px}.login-panel{padding:45px 18px}.login-form h1{font-size:36px}.input-shell{height:56px}.admin-warning{align-items:flex-start}.brand{font-size:23px}.composer-footer{align-items:stretch;flex-direction:column;gap:10px}.generate-button{width:100%}.input-asset-block{margin-left:0}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}.app-shell{height:100dvh;overflow:hidden}.app-shell>.page-shell,.app-shell>.admin-layout{height:calc(100dvh - 68px);overflow:auto}.topbar{gap:34px}.topnav{gap:2px;overflow-x:auto;scrollbar-width:none}.topnav::-webkit-scrollbar{display:none}.topnav button{min-width:94px;padding:0 12px;white-space:nowrap;transition:color .2s ease,background-color .2s ease,border-color .2s ease}.topnav button:hover{background:linear-gradient(180deg,transparent 72%,#f5f8fc 72%)}.duration-options{width:250px;grid-template-columns:repeat(3,1fr)}.library-loading{height:calc(100dvh - 68px);display:grid;place-items:center;align-content:center;gap:12px;color:var(--muted)}.library-loading svg{width:32px;height:32px;color:var(--blue)}.library-shell{height:calc(100dvh - 68px);min-height:0;overflow:hidden;display:grid;grid-template-columns:238px minmax(520px,1fr) 310px;background:#fff}.library-tree{min-height:0;overflow-y:auto;padding:22px 14px 18px;border-right:1px solid var(--line);background:#f8fafc}.library-tree-title{display:flex;align-items:center;gap:9px;padding:0 12px 16px;color:#3e4b5e;font-size:12px;font-weight:760;letter-spacing:.04em;text-transform:uppercase}.library-tree-title svg{color:var(--blue);width:17px}.folder-tree-row{width:100%;min-height:38px;display:flex;align-items:center;gap:8px;padding-right:10px;border-radius:8px;color:#536074;text-align:left;font-size:13px;transition:background-color .18s ease,color .18s ease,transform .18s ease}.folder-tree-row:hover{color:#224d8b;background:#eff4fa;transform:translate(1px)}.folder-tree-row.active{color:#174f9f;background:#eaf2fd;font-weight:680;box-shadow:inset 2px 0 #3476dc}.folder-tree-row svg{width:16px;height:16px}.trash-link{width:calc(100% - 12px);min-height:40px;display:flex;align-items:center;gap:9px;margin:18px 6px 0;padding:0 12px;border-top:1px solid #e3e7ed;color:#687386;font-size:13px}.trash-link.active{color:var(--blue)}.trash-link svg{width:16px}.library-tree>p{margin:auto 12px 0;padding-top:18px;color:#8992a0;font-size:10px;line-height:1.6}.library-main{min-width:0;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto auto auto minmax(0,1fr)}.library-header{min-height:116px;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:22px 28px 20px;border-bottom:1px solid #edf0f4}.library-header h1{margin:9px 0 0;font-size:29px;letter-spacing:-.035em}.breadcrumbs{min-height:18px;display:flex;align-items:center;flex-wrap:wrap;color:#798494;font-size:11px}.breadcrumbs span{display:inline-flex;align-items:center}.breadcrumbs svg{width:13px;height:13px;margin:0 2px}.breadcrumbs button:hover{color:var(--blue)}.library-actions{display:flex;gap:10px}.library-actions .primary,.library-actions .secondary{min-height:40px;padding:0 15px;font-size:12px}.library-toolbar{min-height:62px;display:grid;grid-template-columns:minmax(220px,380px) 1fr auto;align-items:center;gap:18px;padding:10px 28px;border-bottom:1px solid #edf0f4}.library-toolbar>label{height:38px;display:flex;align-items:center;gap:9px;padding:0 12px;border:1px solid var(--line);border-radius:9px;background:#fbfcfd}.library-toolbar label svg{width:16px;color:#7a8493}.library-toolbar input{min-width:0;flex:1;border:0;outline:0;background:transparent;font-size:12px}.library-toolbar>span{color:var(--muted);font-size:11px}.layout-toggle{display:flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:#f5f7fa}.layout-toggle button{width:32px;height:30px;display:grid;place-items:center;border-radius:6px;color:#758091}.layout-toggle button.active{color:var(--blue);background:#fff;box-shadow:0 1px 5px #17202f1a}.layout-toggle svg{width:15px}.library-progress{position:relative;height:26px;overflow:hidden;display:flex;align-items:center;padding:0 28px;color:#285d9f;background:#f4f8fe;font-size:10px}.library-progress i{position:absolute;inset:auto auto 0 0;height:2px;background:linear-gradient(90deg,#2c66cb,#73a7eb);transition:width .2s ease}.library-error{margin:10px 28px 0}.library-content{min-height:0;overflow-y:auto;padding:0 28px 30px}.library-list-head,.library-entry{display:grid;grid-template-columns:minmax(220px,2fr) 100px 82px 105px 28px;align-items:center;gap:12px}.library-list-head{position:sticky;top:0;z-index:2;min-height:42px;color:#8992a0;background:#fffffff5;border-bottom:1px solid #edf0f4;font-size:10px;font-weight:680;text-transform:uppercase;letter-spacing:.04em}.library-entry{width:100%;min-height:62px;padding:7px 6px;border-bottom:1px solid #edf0f4;border-radius:7px;text-align:left;transition:background-color .17s ease,transform .17s ease,box-shadow .17s ease}.library-entry:hover{background:#f7f9fc;transform:translateY(-1px)}.library-entry.selected{background:#edf4fe;box-shadow:inset 2px 0 #3476dc}.library-entry>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:48px;font-size:12px}.entry-preview{position:absolute;width:38px;height:38px;overflow:hidden;display:grid;place-items:center;border:1px solid #e2e7ed;border-radius:8px;color:#466482;background:#f0f4f8}.entry-preview img{width:100%;height:100%;object-fit:cover}.entry-preview svg{width:18px}.folder-entry .entry-preview{color:#6487ad;background:#eef4fa}.entry-type,.entry-size,.library-entry time{color:#707b8b;font-size:11px}.library-entry>svg{width:16px;color:#8b94a1}.library-content.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));align-content:start;gap:14px;padding-top:18px}.library-content.grid .library-entry{min-height:168px;display:grid;grid-template-columns:1fr;grid-template-rows:96px auto;gap:8px;padding:10px;border:1px solid var(--line);border-radius:11px}.library-content.grid .entry-preview{position:static;width:100%;height:96px}.library-content.grid .entry-preview svg{width:34px;height:34px}.library-content.grid .library-entry>strong{padding:0;text-align:center}.library-content.grid .entry-type,.library-content.grid .entry-size,.library-content.grid time,.library-content.grid .library-entry>svg{display:none}.library-empty{grid-column:1 / -1;min-height:360px;display:grid;place-items:center;align-content:center;color:#8a94a2;text-align:center}.library-empty svg{width:34px;height:34px;color:#7390b2}.library-empty h2{margin:12px 0 4px;color:#344154;font-size:18px}.library-empty p{margin:0;font-size:12px}.library-inspector{min-height:0;overflow-y:auto;padding:0 22px 24px;border-left:1px solid var(--line);background:#fbfcfd}.library-inspector>header{min-height:58px;display:flex;align-items:center;justify-content:space-between;color:#5b6676;font-size:12px;font-weight:680}.library-inspector header button{width:30px;height:30px;display:grid;place-items:center}.library-inspector header svg{width:16px}.inspector-preview{min-height:180px;overflow:hidden;display:grid;place-items:center;border:1px solid #e1e6ed;border-radius:12px;background:linear-gradient(145deg,#edf2f7,#f8fafc)}.inspector-preview>svg{width:50px;height:50px;color:#7390b2}.inspector-preview img,.inspector-preview video{width:100%;max-height:260px;object-fit:contain}.library-inspector h2{margin:18px 0 14px;overflow-wrap:anywhere;font-size:16px}.library-inspector dl{margin:0;border-top:1px solid #e3e7ed}.library-inspector dl div{display:grid;grid-template-columns:80px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #e8ebf0;font-size:11px}.library-inspector dt{color:#87919f}.library-inspector dd{margin:0;color:#465264;text-align:right;overflow-wrap:anywhere}.library-inspector .hash{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:9px}.move-field{display:grid;gap:7px;margin-top:18px;color:#7a8492;font-size:11px}.move-field select,.plan-editor select,.plan-editor input,.plan-editor textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff}.move-field select{height:40px;padding:0 10px}.inspector-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.inspector-actions .secondary{min-height:38px;padding:0 12px;font-size:11px}.danger-action{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;border:1px solid #efcbc8;border-radius:8px;color:#b4423c;background:#fff8f7}.danger-action svg{width:16px}.inspector-empty{min-height:60%;display:grid;place-items:center;align-content:center;color:#8b95a3;text-align:center}.inspector-empty svg{width:32px;height:32px;color:#7794b5}.inspector-empty h2{margin:12px 0 4px;color:#405066}.inspector-empty p{margin:0;max-width:220px;font-size:11px;line-height:1.7}.library-dialog input{width:100%}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.automation-page{height:calc(100dvh - 68px);overflow-y:auto;padding:36px clamp(20px,4vw,62px) 60px;background:#f8fafc}.automation-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;max-width:1500px;margin:0 auto 24px}.automation-heading .eyebrow{display:flex;align-items:center;gap:7px;color:#4f6f98;font-size:10px;font-weight:760;letter-spacing:.14em}.automation-heading .eyebrow svg{width:14px}.automation-heading h1{margin:8px 0 5px;font-size:34px;letter-spacing:-.04em}.automation-heading p{margin:0;color:var(--muted);font-size:12px}.automation-stats{max-width:1500px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 auto 18px}.automation-stats article{min-height:112px;display:grid;align-content:center;padding:18px 20px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 18px #1b2a3d09}.automation-stats article>span{color:#788494;font-size:10px;font-weight:680;text-transform:uppercase;letter-spacing:.05em}.automation-stats strong{margin:7px 0 2px;color:#20324a;font-size:24px;letter-spacing:-.03em}.automation-stats small{color:#87919f;font-size:10px}.automation-stats button{width:max-content;display:inline-flex;align-items:center;gap:6px;margin-top:7px;color:var(--blue);font-size:10px;font-weight:680}.automation-stats button svg{width:14px}.automation-error{max-width:1500px;margin:0 auto 14px}.automation-layout{max-width:1500px;min-height:650px;display:grid;grid-template-columns:minmax(600px,1fr) 390px;gap:16px;margin:0 auto}.plan-board,.plan-editor,.token-panel{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 8px 26px #1b2a3d09}.plan-board-head{min-height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #e8ebf0}.plan-board-head>div{display:flex;align-items:center;gap:8px}.plan-board-head h2{margin:0;font-size:17px}.plan-board-head span{color:#8a94a2;font-size:11px}.plan-board-head button{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;color:#6f7c8f}.plan-board-head button:hover{color:var(--blue);background:#f1f5fa}.plan-board-head svg{width:16px}.plan-table{min-height:330px}.plan-row{width:100%;min-height:68px;display:grid;grid-template-columns:minmax(160px,1.5fr) minmax(130px,1.1fr) minmax(130px,1fr) 118px 78px 18px;align-items:center;gap:12px;padding:0 20px;border-bottom:1px solid #edf0f4;text-align:left;color:#586578;font-size:11px;transition:background-color .18s ease,box-shadow .18s ease}.plan-row:not(.plan-head):hover{background:#f8fafc}.plan-row.selected{background:#f1f6fd;box-shadow:inset 2px 0 #3476dc}.plan-row>span:first-child{min-width:0;display:flex;align-items:center;gap:9px;color:#26364b}.plan-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.plan-head{min-height:38px;color:#8a94a2;background:#fbfcfd;font-size:9px;font-weight:720;text-transform:uppercase;letter-spacing:.04em}.plan-mark{width:7px;height:24px;flex:0 0 auto;border-radius:5px;background:#6d8eb6}.plan-mark.kling{background:#8f83a9}.plan-status{width:max-content;padding:4px 8px;border-radius:99px;color:#536174;background:#edf0f4;font-size:9px;font-style:normal;font-weight:680}.plan-status.active{color:#286243;background:#eaf6ee}.plan-row>svg{width:15px;color:#9ca4af}.automation-empty{min-height:290px;display:grid;place-items:center;align-content:center;color:#8993a1;text-align:center}.automation-empty svg{width:34px;height:34px;color:#7896b8}.automation-empty h3{margin:12px 0 4px;color:#41516a}.automation-empty p{margin:0;font-size:11px}.batch-timeline{padding:22px;border-top:1px solid #e8ebf0}.batch-timeline header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}.batch-timeline h2{margin:0;font-size:16px}.batch-timeline header span{color:#8b95a2;font-size:9px}.batch-row{min-height:52px;display:grid;grid-template-columns:12px minmax(180px,1fr) 90px 82px;align-items:center;gap:10px;border-bottom:1px solid #edf0f4;font-size:10px}.batch-dot{width:8px;height:8px;border:2px solid #fff;border-radius:50%;background:#7d91a9;box-shadow:0 0 0 1px #b8c3cf}.batch-dot.completed{background:#55a875;box-shadow:0 0 0 1px #7dbb93}.batch-dot.failed{background:#d35e55;box-shadow:0 0 0 1px #df8d87}.batch-row>div{display:grid;gap:3px}.batch-row strong{font-size:11px}.batch-row div span,.batch-row>span{color:#828d9c}.batch-row em{justify-self:end;color:#52657d;font-style:normal}.plan-editor{min-height:650px;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.plan-editor>header{min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #e6eaf0}.plan-editor header span{color:#84909f;font-size:9px;font-weight:720;text-transform:uppercase;letter-spacing:.08em}.plan-editor header h2{margin:4px 0 0;font-size:18px}.plan-editor header button{width:30px;height:30px;display:grid;place-items:center}.plan-editor header svg{width:16px}.editor-scroll{min-height:0;overflow-y:auto;padding:20px 22px}.editor-scroll>label,.editor-section>label,.editor-split label{display:grid;gap:7px;color:#687589;font-size:10px;font-weight:650}.plan-editor input,.plan-editor select{height:40px;padding:0 10px}.plan-editor textarea{resize:vertical;padding:10px;line-height:1.55}.plan-editor input:focus,.plan-editor select:focus,.plan-editor textarea:focus{outline:0;border-color:#9cb7e8;box-shadow:0 0 0 3px #2767d714}.editor-section{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid #e8ebef}.editor-section h3{display:flex;align-items:center;gap:7px;margin:0;color:#35455c;font-size:12px}.editor-section h3 svg{width:15px;color:#557ba8}.editor-section>small{color:#8b95a3;font-size:9px;line-height:1.55}.editor-split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.week-picker{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.week-picker button{height:30px;border:1px solid #dfe4ea;border-radius:7px;color:#6d798a;background:#f8fafc;font-size:10px;transition:color .18s ease,background-color .18s ease,transform .15s ease}.week-picker button.active{color:#fff;background:#4d78b1;border-color:#4d78b1}.week-picker button:active{transform:scale(.94)}.check-row{display:flex!important;grid-template-columns:auto 1fr;align-items:flex-start;gap:8px!important}.check-row input{width:15px;height:15px;margin:1px 0 0}.check-row span{display:flex;align-items:center;gap:5px;color:#526174;font-size:10px;font-weight:520}.check-row svg{width:13px;color:#4d8c68}.plan-editor>footer{min-height:66px;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 18px;border-top:1px solid #e6eaf0;background:#fbfcfd}.plan-editor footer .primary,.plan-editor footer .secondary{min-height:40px;padding:0 14px;font-size:11px}.plan-editor footer .danger-action{margin-right:auto}.editor-empty{min-height:100%;display:grid;place-items:center;align-content:center;padding:40px;color:#8a95a4;text-align:center}.editor-empty svg{width:38px;height:38px;color:#7896b8}.editor-empty h2{margin:14px 0 5px;color:#405069;font-size:20px}.editor-empty p{max-width:260px;margin:0;font-size:11px;line-height:1.7}.token-panel{max-width:1500px;margin:16px auto 0}.token-panel>header{min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid #e8ebf0}.token-panel header>div{display:flex;align-items:center;gap:12px}.token-panel header>div>svg{width:25px;height:25px;color:#4f7a67}.token-panel header span{display:grid;gap:4px}.token-panel header strong{font-size:13px}.token-panel header small{color:#7c8796;font-size:10px}.token-panel header .secondary{min-height:38px;font-size:11px}.token-row{min-height:62px;display:grid;grid-template-columns:28px 1fr 70px 34px;align-items:center;gap:10px;padding:0 22px;border-bottom:1px solid #edf0f4}.token-row>svg{width:18px;color:#657990}.token-row>span{display:grid;gap:3px}.token-row strong{font-size:11px}.token-row small{color:#87919f;font-size:9px}.token-row em{justify-self:end;color:#33704e;font-size:9px;font-style:normal}.token-row em.revoked{color:#8c6670}.token-row button{width:30px;height:30px;display:grid;place-items:center;color:#a35b57}.token-row button svg{width:15px}.token-secret code{display:block;overflow-wrap:anywhere;margin:18px 0;padding:14px;border:1px solid #d8e0ea;border-radius:8px;color:#214b78;background:#f3f7fb;font-size:11px;line-height:1.6}.token-secret>small{display:block;margin-top:12px;color:#7f8997;text-align:center}@media(max-width:1280px){.library-shell{grid-template-columns:205px minmax(480px,1fr) 280px}.automation-layout{grid-template-columns:minmax(560px,1fr) 360px}.plan-row{grid-template-columns:minmax(140px,1.4fr) minmax(110px,1fr) minmax(110px,1fr) 105px 70px 16px;padding:0 14px}}@media(max-width:1000px){.library-shell{grid-template-columns:190px minmax(0,1fr)}.library-inspector{position:fixed;z-index:30;right:0;top:68px;bottom:0;width:min(330px,90vw);background:#fff;box-shadow:-20px 0 50px #18202d26}.library-inspector:has(.inspector-empty){display:none}.automation-stats{grid-template-columns:1fr 1fr}.automation-layout{grid-template-columns:1fr}.plan-editor{min-height:720px}}@media(max-width:760px){.app-shell{overflow:hidden}.topbar{height:118px;min-height:118px;padding-top:8px;padding-bottom:0;row-gap:0;column-gap:10px;align-content:space-between}.topnav{order:3;width:100%;height:50px;justify-content:flex-start}.topnav button{min-width:86px;flex:0 0 auto}.library-shell,.automation-page{height:calc(100dvh - 118px)}.library-shell{grid-template-columns:1fr}.library-tree{display:none}.library-header{min-height:104px;align-items:flex-start;padding:16px}.library-header h1{font-size:23px}.library-actions .secondary{display:none}.library-toolbar{grid-template-columns:1fr auto;padding:8px 16px}.library-toolbar>span{display:none}.library-content{padding:0 16px 22px}.library-list-head{display:none}.library-content.list{padding-top:8px}.library-content.list .library-entry{grid-template-columns:minmax(180px,1fr) 74px 24px}.library-content.list .entry-size,.library-content.list time{display:none}.library-inspector{top:118px}.automation-page{padding:24px 14px 40px}.automation-heading{align-items:flex-start}.automation-heading h1{font-size:27px}.automation-heading p{display:none}.automation-stats{grid-template-columns:1fr 1fr}.automation-stats article{min-height:95px;padding:14px}.automation-stats strong{font-size:19px}.plan-table{overflow-x:auto}.plan-row{min-width:850px}.batch-timeline{overflow-x:auto}.batch-row{min-width:620px}.token-panel header small{display:none}}@media(max-width:480px){.automation-stats{grid-template-columns:1fr}.automation-heading .primary{min-height:40px;padding:0 12px;font-size:11px}.editor-split{grid-template-columns:1fr}}
