*{box-sizing:border-box}body{margin:0;background:#f4f4f2;color:#22252a;font:14px/1.6 'Segoe UI','Microsoft YaHei',sans-serif}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0}button:hover{filter:brightness(.97)}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid #7a6cec;outline-offset:4px}button:disabled{cursor:wait;opacity:.5}a{color:inherit;text-decoration:none}header{height:88px;margin:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4e4e1}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:650;letter-spacing:2px}.logo{font-size:32px;color:#7667d9}.brand small{font-size:10px;letter-spacing:2px;font-weight:500;color:#9b9b9b;margin-left:6px}.connection{font-size:12px;color:#777}.connection i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#68a68d;margin-right:8px}main{max-width:1380px;margin:auto;padding:62px 40px}.eyebrow{font-size:12px;color:#8a7bc3;letter-spacing:3px}h1{font-size:34px;letter-spacing:-1px;font-weight:550;margin:10px 0}.intro p{margin:0;color:#8b8c90}.intro{margin-bottom:32px}.composer{position:relative;background:#fff;border:1px solid #e9e9e6;border-radius:28px;padding:20px;box-shadow:0 10px 35px #22222204}.compose-body{display:grid;grid-template-columns:310px 1fr;gap:22px;min-height:270px}.reference-panel{background:#f5f5f4;border-radius:18px;padding:17px;transition:.2s}.reference-panel.drag{background:#eeebff;outline:2px dashed #8a7bc3}.ref-header{font-size:12px;color:#777;display:flex;justify-content:space-between;margin-bottom:14px}.ref-header span{color:#a3a3a3}#refs{display:flex;gap:9px;flex-wrap:wrap;max-height:212px;overflow:auto;padding:2px}.upload-tile,.ref-tile{width:80px;height:85px;border-radius:12px;position:relative;background:#ececea;border:1px solid #e4e4e0}.upload-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#969696}.upload-tile>span{font-size:28px;font-weight:200}.upload-tile small{font-size:10px}.ref-tile img{width:100%;height:64px;object-fit:contain;border-radius:10px}.ref-label{position:absolute;bottom:0;left:0;right:0;background:#ffffffd9;font-size:10px;border-radius:0 0 10px 10px;padding:2px}.ref-remove{position:absolute;right:-3px;top:-3px;background:#fff;border:1px solid #ddd;border-radius:50%;width:20px;height:20px;line-height:15px;box-shadow:0 2px 4px #0001}.drop-hint{font-size:11px;color:#acacac;margin:16px 0 0}.prompt-panel{position:relative;display:flex;flex-direction:column;min-width:0;padding:10px 10px 0}textarea{border:0;resize:none;flex:1;width:100%;min-height:225px;font:16px/1.9 inherit;font-family:inherit;font-size:16px;line-height:1.9;background:transparent;color:#333;outline:none}textarea::placeholder{color:#b5b5b5}.prompt-foot{display:flex;justify-content:space-between;color:#b1b1b1;font-size:11px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 4px 2px}.tools-left{display:flex;align-items:center;gap:13px}.icon-button{background:none;font-size:23px;width:26px;padding:0}.divider{height:17px;width:1px;background:#e9e9e9}.mode{font-size:13px}.settings-wrap{position:relative}#settings-toggle{display:flex;align-items:center;gap:13px;border-radius:28px;padding:10px 20px;background:#f5f5f4;font-size:13px}#settings-toggle>span{color:#999}#settings-toggle strong{font-weight:550}.generate{background:#29282e;color:#fff;border-radius:24px;padding:11px 22px;display:flex;gap:16px;align-items:center}.settings{position:absolute;top:54px;left:50%;transform:translateX(-50%);width:440px;background:#fff;border:1px solid #eaeaea;border-radius:23px;padding:24px;box-shadow:0 20px 70px #3332;z-index:10}.settings h3{margin:0 0 20px;display:flex;justify-content:space-between;font-size:15px;font-weight:550}.settings h3 button{background:none;font-size:20px;color:#999}.settings label{font-size:12px;color:#999;display:block;margin:16px 0 10px}.ratio-options,.resolution-options{display:flex;gap:5px;background:#f5f5f5;padding:5px;border-radius:13px}.ratio-options button{flex:1;background:transparent;border-radius:10px;padding:10px 0;font-size:12px;display:flex;align-items:center;flex-direction:column;gap:8px}.ratio-options i{display:block;border:1.4px solid #888;max-width:24px;max-height:24px}.ratio-options button.active,.resolution-options button.active{background:white;box-shadow:0 2px 8px #00000008;color:#6d59c3}.resolution-options button{flex:1;padding:8px;border-radius:10px;background:none}.settings p{font-size:12px;color:#777}.settings .explanation{font-size:11px;color:#aaa;line-height:1.8;margin-bottom:0}.under-composer{display:flex;justify-content:space-between;gap:15px;margin:14px 14px 55px;font-size:11px;color:#999}#feedback{color:#7c65ba}#feedback.error{color:#bd4c4c}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.section-heading h2{font-size:18px;font-weight:550;margin:0}.section-heading h2 span{font-size:11px;color:#999;background:#e9e9e6;border-radius:10px;padding:2px 7px;margin-left:8px}.section-heading>span{font-size:11px;color:#aaa}#jobs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.job{background:white;border:1px solid #e7e7e5;border-radius:18px;overflow:hidden}.job-image{width:100%;height:230px;object-fit:contain;background:#eeeeec;cursor:zoom-in;display:block}.job-body{padding:16px}.job-meta{display:flex;justify-content:space-between;color:#999;font-size:10px}.job-prompt{font-size:13px;margin:10px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:40px;white-space:pre-wrap}.job-actions{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#7a6aaf}.job-actions button{background:#f4f2f9;padding:4px 10px;border-radius:8px}.pending{height:230px;background:#eeedf2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#89808f}.pending .spinner{font-size:32px;animation:spin 7s linear infinite;color:#9584ce}.pending progress{width:60%;height:4px;accent-color:#9784ce}.pending small{font-size:11px}.job-error{padding:15px;font-size:12px;color:#b45454;max-height:140px;overflow:auto;word-break:break-word}#empty{text-align:center;padding:48px 0 70px;border:1px dashed #dededb;border-radius:20px}#empty h3{font-size:14px;font-weight:500;color:#929292;margin:14px 0 5px}#empty p{font-size:12px;color:#aaa;margin:0}.empty-art{font-size:38px;color:#bdb9c8;position:relative;display:inline-block}.empty-art span{position:absolute;font-size:17px;right:-14px;top:-5px;color:#a996d5}footer{max-width:1300px;margin:0 auto;padding:22px 0 30px;border-top:1px solid #e3e3df;color:#aaa;font-size:11px;display:flex;justify-content:space-between}.mention-menu{position:absolute;left:10px;top:60px;width:260px;max-height:250px;overflow:auto;background:white;border:1px solid #e9e9e9;box-shadow:0 10px 30px #0001;border-radius:14px;padding:6px;z-index:11}.mention-menu button{display:flex;gap:12px;align-items:center;width:100%;text-align:left;background:transparent;border-radius:9px;padding:8px}.mention-menu button:hover{background:#f3f0f9}.mention-menu img{width:32px;height:32px;object-fit:contain}.mention-menu small{color:#aaa;display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}dialog{border:0;border-radius:18px;background:#fff;padding:20px;max-width:94vw;max-height:94vh}dialog::backdrop{background:#222b;backdrop-filter:blur(6px)}dialog img{display:block;max-width:85vw;max-height:78vh;object-fit:contain}dialog>button{position:absolute;right:10px;top:10px;border-radius:50%;font-size:24px;width:36px;background:#fffe}dialog>a{display:block;text-align:center;padding-top:12px;color:#7764b0}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){main{padding:36px 20px}.compose-body{grid-template-columns:240px 1fr}.brand small{display:none}.tools-left .mode{display:none}#jobs{grid-template-columns:repeat(2,minmax(0,1fr))}footer{margin:0 20px}.settings{left:auto;right:-90px;transform:none}}@media(max-width:600px){header{height:70px}h1{font-size:27px}.intro{margin-bottom:24px}.compose-body{display:flex;flex-direction:column;gap:12px}.reference-panel{padding:12px}.drop-hint{display:none}#refs{max-height:185px}.prompt-panel{padding:4px}textarea{min-height:160px;font-size:14px}.composer{padding:14px;border-radius:22px}.toolbar{flex-wrap:wrap;gap:12px;padding-top:20px}.tools-left{gap:8px}.settings-wrap{order:3;width:100%}#settings-toggle{width:100%;justify-content:center}.settings{width:calc(100vw - 68px);left:0;right:auto;top:46px;padding:16px}.under-composer{flex-direction:column;margin-bottom:35px}#jobs{grid-template-columns:1fr}.connection{font-size:10px}.brand{font-size:20px}footer{gap:12px;flex-wrap:wrap}.prompt-foot{font-size:10px}}

.trash-toggle{background:#eae8ef;border-radius:10px;padding:6px 14px;font-size:12px;color:#77658f}.job-actions .delete-history{background:transparent;color:#a18c8c;padding:4px 6px}#preview{width:min(1200px,94vw);padding:24px;overflow:auto}#close-preview{z-index:2}.preview-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:26px}.preview-image{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f8f8f6;border-radius:12px;padding:12px}.preview-image img{max-width:100%;max-height:78vh;object-fit:contain}.preview-image a{padding-top:12px;color:#7764b0}.repair-panel{padding:15px 5px;display:flex;flex-direction:column}.repair-panel h2{font-size:22px;font-weight:550;margin:6px 0}.repair-panel>p{color:#999;font-size:12px;margin:4px 0 16px}.repair-panel label{font-size:13px;margin:10px 0 7px}.repair-panel label span{color:#aaa;font-size:11px}.repair-panel textarea{flex:none;background:#f5f4f7;border:1px solid #eceaf0;border-radius:12px;padding:12px;font-size:13px;min-height:150px;resize:vertical}.repair-panel #exact-copy{min-height:95px}.repair-panel .repair-note{font-size:11px;margin-top:12px;line-height:1.8}.repair-panel .generate{justify-content:center;margin-top:8px}.repair-panel #repair-feedback{color:#8a6bb4;margin-top:12px}body:has(dialog[open]){overflow:hidden}@media(max-width:760px){.preview-layout{grid-template-columns:1fr}.preview-image img{max-height:48vh}#preview{padding:16px}.repair-panel{padding:0 5px}.repair-panel textarea{min-height:110px}}
/* Compact workspace: the home page fits the viewport; records scroll sideways. */
.records-nav,.pagination{display:none}main{width:100%;padding:20px 40px;margin:0 auto;height:100dvh;display:flex;flex-direction:column;min-height:0}.composer{padding:16px 20px;border-radius:22px;flex:none;z-index:2}.compose-body{min-height:0;height:clamp(145px,23vh,210px);grid-template-columns:310px minmax(0,1fr);gap:18px}.reference-panel{padding:12px 14px;min-height:0;overflow:auto}.ref-header{margin-bottom:8px}.drop-hint{margin:8px 0 0;font-size:10px}.prompt-panel{padding:2px 6px 0;min-height:0}.prompt-panel textarea{min-height:0;font-size:15px}.prompt-foot>span:first-child{visibility:hidden}#refs{max-height:112px}.toolbar{padding:12px 0 0}.under-composer{margin:8px 10px 16px;min-height:18px;flex:none}.history{flex:1;min-height:0;display:flex;flex-direction:column}.section-heading{margin-bottom:12px;flex:none}.section-heading h2{font-size:17px}.all-records{color:#7a68ad;font-size:13px;padding:6px 0}.all-records:hover{text-decoration:underline}#jobs{display:flex;flex:1;min-height:0;gap:16px;overflow-x:auto;overflow-y:hidden;padding-bottom:10px;scroll-snap-type:none;scrollbar-width:thin;scrollbar-color:#c6c1ce transparent}.job{flex:0 0 calc((100% - 32px)/3);min-width:260px;min-height:0;display:flex;flex-direction:column;scroll-snap-align:start}.job-image,.pending{height:0;min-height:90px;flex:1;object-fit:contain}.job-body{padding:10px 14px;flex:none}.job-prompt{margin:6px 0 8px;min-height:0;height:38px;font-size:12px}.job-meta{gap:8px}.job-actions{font-size:12px}#empty{padding:24px;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center}.settings{top:48px}.records-page main{height:auto;min-height:100dvh}.records-page .composer,.records-page .under-composer{display:none}.records-page .records-nav{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:4px 0 24px;color:#8c8399;font-size:13px}.records-nav a{color:#7965a9}.records-page .history{display:block}.records-page #jobs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding-bottom:0}.records-page .job{min-width:0}.records-page .job-image,.records-page .pending{flex:none;height:240px}.records-page .pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:28px 0 10px}.pagination button{background:#eae7f0;color:#7965a9;padding:8px 18px;border-radius:10px}.pagination span{font-size:13px;color:#999}@media(min-width:761px) and (min-height:620px){body:not(.records-page){overflow:hidden}}@media(max-width:900px){main{padding:16px 20px}.compose-body{grid-template-columns:240px minmax(0,1fr)}.job{flex-basis:calc((100% - 16px)/2)}.records-page #jobs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){main{height:auto;min-height:100dvh;padding:12px 16px}.compose-body{height:auto;display:flex}.reference-panel{max-height:142px}.prompt-panel{height:130px}.prompt-panel textarea{min-height:80px}.toolbar{gap:8px}.under-composer{gap:4px;margin-bottom:14px}.history{flex:none}#jobs{flex:none;height:320px}.job{flex-basis:280px;min-width:240px}.settings{max-height:55vh;overflow:auto}.records-page #jobs{height:auto}.records-page .job-image,.records-page .pending{height:220px}}@media(max-width:520px){.records-page #jobs{grid-template-columns:1fr}}@media(min-width:761px) and (max-height:619px){main{height:auto;min-height:100dvh}.compose-body{height:140px}#jobs{height:285px;flex:none}.history{flex:none}}

#generation-mode{font:inherit;font-size:13px;color:#59535e;background:#f4f2f7;border:0;border-radius:10px;padding:8px 10px;cursor:pointer;max-width:160px}.text-mode .compose-body{grid-template-columns:minmax(0,1fr)}.text-mode .prompt-panel{width:100%}.text-mode .tools-left .divider{display:none}#generation-mode:focus-visible{outline:2px solid #7a6cec;outline-offset:2px}

#generation-mode.mode-switch{display:inline-flex;align-items:center;gap:3px;background:#efedf3;border:1px solid #e8e4ed;border-radius:12px;padding:3px;max-width:none}.mode-switch button{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:9px;background:transparent;color:#97919f;white-space:nowrap;font-size:12px;transition:background .15s,color .15s,box-shadow .15s}.mode-switch button[aria-pressed="true"]{background:#fff;color:#7460a7;box-shadow:0 1px 5px #45325c16}.mode-switch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.job-prompt-row{display:flex;align-items:center;gap:8px;margin:6px 0 8px}.job-prompt-row .job-prompt{flex:1;min-width:0;margin:0}.view-prompt{flex:none;font-size:11px;color:#806bb0;padding:4px 7px;border-radius:7px;background:#f5f2fa;white-space:nowrap}#prompt-detail{width:min(700px,92vw);max-height:85dvh;padding:24px;border-radius:20px;overflow:auto}#prompt-detail .prompt-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}#prompt-detail h2{font-size:18px;margin:0}#prompt-detail .prompt-dialog-heading button{font-size:25px;background:none;color:#999}#prompt-detail-meta{color:#999;font-size:12px;margin:8px 0 18px}#prompt-detail label{display:block;color:#999;font-size:12px;margin:10px 0 6px}#prompt-detail textarea{display:block;width:100%;height:38vh;min-height:140px;resize:vertical;background:#f7f6f9;border:1px solid #eae7ee;border-radius:12px;padding:14px;font-size:14px;line-height:1.9;white-space:pre-wrap}#prompt-detail #prompt-detail-exact{height:100px;min-height:80px}@media(max-width:600px){.mode-switch button{padding:7px}.tools-left{gap:6px}.job-prompt-row{gap:4px}.view-prompt{font-size:10px;padding:4px}#prompt-detail{padding:18px}}

.studio-nav{display:flex;gap:5px;flex:none;margin:0 0 12px;align-items:center}.studio-nav a{padding:7px 18px;border-radius:10px;font-size:13px;color:#948b9f}.studio-nav a.active{background:#fff;color:#7760aa;box-shadow:0 1px 6px #39304008}#duration-select{background:#f5f3f8;border:1px solid #e6e1ee;padding:7px 12px;border-radius:10px;width:100%;color:#7760aa}#video-preview{padding:22px;width:min(1100px,94vw);max-height:92vh}#preview-player{display:block;width:100%;max-height:78vh;background:#141414;border-radius:12px}#download-video{display:block;text-align:center;padding:12px 0 0;color:#7963af}video.job-image{cursor:pointer;background:#e9e9e7}#close-video-preview{z-index:2}.job-meta{flex-wrap:wrap}

.studio-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}.studio-top .studio-nav{margin-bottom:0}.hardware-bar{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;font-size:11px;color:#62616b;font-variant-numeric:tabular-nums}.hardware-bar>span{background:#fff;border:1px solid #e8e6ed;border-radius:10px;padding:5px 9px;white-space:nowrap}.hardware-bar small{font-size:10px;color:#96929f}.hardware-bar.offline{opacity:.6}@media(max-width:900px){.hardware-bar{justify-content:flex-start}.studio-top{gap:6px}}

#release-vram{padding:5px 10px;border-radius:10px;background:#eeeaf8;color:#8170bd;font-size:11px;white-space:nowrap}#vram-result:not(:empty){flex-basis:100%;text-align:right;color:#8170bd}
