:root{--purple:#302b65;--yellow:#fff69c;--ink:#24252a;--muted:#7e808a;--line:#e6e6ea;--bg:#f8f9fb;--soft:#f1f0f7;--red:#ba354b}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px/1.55 "Inter","Segoe UI",Arial,sans-serif;color:var(--ink)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #aaa0ee;outline-offset:4px}input:focus,textarea:focus,select:focus{border-color:#8274c5;outline:3px solid #8274c51a}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{display:none}[hidden]{display:none!important}header{height:88px;border-bottom:1px solid var(--line);background:white}.header-inner{max-width:1520px;margin:auto;padding:0 38px;height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--purple);font-size:23px;font-weight:850;letter-spacing:.5px;line-height:1.2}.brand-mark{width:40px;height:43px;background:var(--purple);color:white;display:grid;place-items:center;border-radius:12px;font-size:29px;position:relative}.brand-mark span{position:absolute;color:var(--yellow);right:-6px;top:-9px;font-size:23px}.brand .ai{font-weight:400;margin-left:3px}.brand small{display:block;font-size:8px;letter-spacing:2.1px;margin-top:4px;color:#858194}.header-right{display:flex;align-items:center;gap:23px}.connection{font-size:12px;color:var(--muted)}.connection:before{content:"";display:inline-block;width:6px;height:6px;background:#c09e37;border-radius:50%;margin-right:7px}.connection.ready:before{background:#549982}.icon-btn{border:1px solid var(--line);background:white;border-radius:50%;height:37px;width:37px;display:grid;place-items:center;color:var(--purple)}.shell{display:grid;grid-template-columns:226px 1fr;max-width:1520px;margin:auto;min-height:calc(100vh - 88px)}aside{padding:39px 22px;border-right:1px solid var(--line);background:#fdfdfe;display:flex;flex-direction:column}.nav-label{font-size:10px;letter-spacing:1.7px;color:#9a98a5;margin:0 12px 17px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;padding:12px 14px;border-radius:9px;text-align:left;color:#777582;font-size:13px;margin-bottom:7px}.nav-item.active{background:#edebf6;color:var(--purple);font-weight:650}.nav-item span,.nav-item small{margin-left:auto}.nav-item small{font-size:10px;background:#e7e4ef;padding:1px 6px;border-radius:5px}.sidebar-note{margin-top:66px;border:1px solid #e5e1ed;border-radius:13px;padding:18px;background:linear-gradient(140deg,#f4f1fb,#fffdf0)}.tiny-star{color:#7b69ac;font-size:24px}.sidebar-note strong{display:block;font-size:15px;font-weight:600;line-height:1.5;color:var(--purple);margin-top:8px}.sidebar-note p{font-size:11px;color:#93909d}.sidebar-note button{border:0;padding:6px 0;background:transparent;color:var(--purple);font-size:11px;font-weight:650;width:100%;text-align:left}.sidebar-note button span{float:right}.sidebar-footer{margin-top:auto;padding:75px 4px 0;color:#92909c;font-size:9px;white-space:nowrap}.sidebar-footer small{display:block;margin:5px 0 0 12px;font-size:9px;color:#b0adb8}.dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#9b93b7;margin-right:7px}main{padding:39px 38px 0;min-width:0}.page-intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.8px;color:#918aab;margin-bottom:9px}h1{font-size:29px;font-weight:650;line-height:1.3;letter-spacing:-.8px;margin:0}h1 span{color:#8b80bd}.page-intro p{color:var(--muted);font-size:12px;margin:9px 0 0}.studio-badge{border:1px solid #dfdce9;border-radius:25px;padding:7px 12px;white-space:nowrap;font-size:8px;letter-spacing:1px;color:#807599;background:#f4f2f9}.tabs{border:1px solid var(--line);border-radius:13px;padding:6px;display:flex;background:white;max-width:530px;margin-bottom:24px;gap:4px}.tab{flex:1;border:0;background:none;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px 8px;font-weight:550;font-size:14px;color:#6f6d7b}.tab.active{background:var(--yellow);color:var(--purple)}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden}.composer{padding:25px}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:23px}h2{font-size:18px;letter-spacing:-.3px;font-weight:650;margin:0}.step{font-size:8px;color:#aaa7b4;letter-spacing:1.4px}label{display:block;font-size:12px;font-weight:550;margin-bottom:9px}label span{color:#91869b}input:not([type=checkbox]),textarea,select{border:1px solid #dedee4;border-radius:9px;background:white;width:100%;padding:12px 13px;color:var(--ink);font-size:13px}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23424050' stroke-width='1.8'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;padding-right:35px}textarea{resize:vertical;min-height:88px;line-height:1.7}textarea::placeholder,input::placeholder{color:#a2a0aa}.field-note{font-size:11px;color:#97939f;line-height:1.6;margin:9px 0 19px}.segmented{display:flex;gap:5px;background:#f5f4f8;border-radius:7px;padding:4px;margin:19px 0 23px}.segmented button{flex:1;border:0;background:transparent;color:#8d8799;border-radius:5px;padding:7px 4px;font-size:11px}.segmented .selected{background:white;color:var(--purple);box-shadow:0 1px 4px #302b6510}.label-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px}.text-btn{background:none;border:0;color:#8275a6;font-size:10px;padding:0 0 9px}.textarea-footer{display:flex;justify-content:space-between;gap:8px;color:#a4a1ac;font-size:9px;margin:5px 0 12px}#counter{white-space:nowrap}.prompt-chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:21px}.chip{border:1px solid #ebe8f1;background:#faf9fc;border-radius:20px;padding:5px 9px;color:#837c95;font-size:9px}.chip:hover{background:#f0edf8}.dropzone{border:1px dashed #d7d2e2;border-radius:10px;padding:19px 12px;text-align:center;background:#fcfbfe}.dropzone.dragging{background:#f3edff;border-color:#7c69b4}.dropzone input{display:none}.outline-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 13px;border:1px solid #d5d1df;background:white;color:var(--purple);font-size:11px;border-radius:7px}.outline-btn svg{width:15px;height:15px}.dropzone p{font-size:10px;color:#9a95a5;margin:11px 0 3px}.dropzone small{font-size:9px;color:#aaa5b3}#uploadGroup{margin:20px 0}.file-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.file-item{position:relative;padding:7px;background:#f5f3f9;border:1px solid #eae5f0;border-radius:8px;max-width:100%;font-size:10px;display:flex;gap:10px;align-items:center}.file-item img{width:51px;height:51px;object-fit:cover;border-radius:4px}.file-item span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item button{border:0;background:white;border-radius:50%;width:22px;height:22px;color:#8b7594}.parameter-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.parameter-grid .full{grid-column:1/-1}details{border:1px solid var(--line);border-radius:9px;margin-top:20px}summary{padding:13px 14px;display:flex;align-items:center;cursor:pointer;list-style:none;font-size:12px;font-weight:500}summary::-webkit-details-marker{display:none}.count{font-size:9px;background:#f0eff3;padding:1px 5px;border-radius:10px;margin-left:7px;color:#8b8795}.chevron{margin-left:auto;font-size:18px;color:#7c778a}details[open] .chevron{transform:rotate(180deg)}details .parameter-grid{padding:5px 14px 18px}details label{font-size:10px}details select{font-size:11px;padding:10px}details input{font-size:11px!important}.generate{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--purple);border:0;border-radius:9px;width:100%;padding:14px;color:white;font-size:13px;font-weight:550;margin-top:20px;position:relative}.generate:hover{background:#40397d}.generate svg{width:17px;height:17px}.end-arrow{position:absolute;right:16px;opacity:.65}.generation-note{font-size:9px;color:#aaa5b4;text-align:center;margin:10px 0 0}.results{min-height:532px;display:flex;flex-direction:column}.results .card-heading{padding:25px 23px 0;margin-bottom:0}.result-area{min-height:430px;display:flex;flex:1;align-items:center;justify-content:center;padding:25px}.empty-result{text-align:center}.empty-art{width:130px;height:102px;margin:25px auto 28px;position:relative}.art-back{position:absolute;width:67px;height:76px;background:#f1eff8;border:1px solid #e6e0f1;border-radius:11px;top:3px;left:26px;transform:rotate(-15deg)}.art-front{position:absolute;width:72px;height:77px;background:#fff;border:1px solid #dcd5eb;border-radius:11px;top:12px;left:42px;transform:rotate(9deg);display:grid;place-items:center;box-shadow:0 7px 18px #302b6508}.art-front svg{width:31px;height:31px;color:#a99bc7;stroke-width:1.3}.empty-art b{position:absolute;top:-2px;right:10px;color:#c4b681;font-size:22px;font-weight:400}.empty-result h3{font-size:19px;line-height:1.5;font-weight:550;letter-spacing:-.3px;color:#5f576f;margin:0 0 12px}.empty-result p{font-size:11px;color:#a19ba9;line-height:1.9}.empty-label{display:block;font-size:7px;letter-spacing:2px;color:#beb7c8;margin-top:37px}.result-footer{padding:14px 20px;border-top:1px solid #f0eef4;display:flex;align-items:center;font-size:10px;color:#a6a0b1}.result-footer .dot{background:#b8adce}.bottom-note{display:flex;align-items:center;justify-content:center;gap:6px;margin:22px 0;color:#aaa5b3;font-size:10px}.bottom-note svg{width:12px;height:12px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:9px;padding:21px 0;color:#aaa5b5;margin-top:30px}footer span{font-size:9px;color:#bab5c2}.mobile-menu{display:none}.notice{border-radius:8px;padding:12px;font-size:12px;margin-top:15px;overflow-wrap:anywhere}.error{background:#fff2f3;border:1px solid #f3d4da;color:#a3344b}.output{width:100%;min-width:0}.output img,.output video{width:100%;max-height:520px;object-fit:contain;border-radius:9px;background:#f5f3f8}.output pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:13px;line-height:1.8;background:#f8f7fb;padding:18px;border-radius:9px;max-height:440px;overflow:auto}.output-actions{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.output small{display:block;color:#a09aaa;font-size:10px;margin-top:12px}.loading{text-align:center;color:#91849f;font-size:12px}.spinner{width:35px;height:35px;border:2px solid #eeeaf5;border-top-color:var(--purple);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}@keyframes spin{to{transform:rotate(360deg)}}progress{width:180px;accent-color:var(--purple)}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;max-width:550px;width:calc(100% - 30px);color:var(--ink);max-height:90vh;overflow:auto;box-shadow:0 30px 100px #201c4c30}dialog::backdrop{background:#201c4c66;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:15px}.close-btn{background:#f3f0f8;border:0;width:30px;height:30px;border-radius:50%;color:#8b7da2;font-size:22px;flex-shrink:0}dialog label{margin-top:15px}.checkbox{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.6}.checkbox input{accent-color:var(--purple);margin-top:3px}.optional{font-size:10px;font-weight:400}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--purple);color:white;padding:12px 20px;border-radius:10px;font-size:12px;z-index:10;max-width:90vw;box-shadow:0 8px 30px #302b6530}.history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:25px}.history-card{background:white;border:1px solid var(--line);border-radius:13px;padding:16px;min-width:0}.history-card img,.history-card video{width:100%;height:150px;object-fit:cover;border-radius:7px}.history-card p{font-size:12px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.history-card small{font-size:10px;color:#a19aa9}.history-card h3{font-size:13px;color:var(--purple)}.history-card .output-actions button{font-size:10px;padding:6px 9px}.empty-history{padding:60px 20px;text-align:center;grid-column:1/-1;background:white;border:1px dashed var(--line);border-radius:12px;color:#aaa2b5}
@media(min-width:1500px){main{padding-left:48px;padding-right:48px}.workspace-grid{gap:30px}.composer{padding:30px}}@media(max-width:1150px){.shell{grid-template-columns:185px 1fr}aside{padding:30px 13px}main{padding:30px 25px 0}.studio-badge{display:none}.composer{padding:20px}.workspace-grid{gap:17px}.step{font-size:7px}.results .card-heading{padding:20px 18px 0}.result-area{padding:20px}.sidebar-footer{font-size:8px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.workspace-grid{grid-template-columns:1fr}.results{min-height:380px}.result-area{min-height:320px}.tabs{max-width:none}.sidebar-note{margin-top:40px}h1{font-size:27px}}@media(max-width:600px){header{height:73px}.header-inner{padding:0 21px}.brand{font-size:20px}.brand-mark{width:34px;height:37px;font-size:26px}.connection{font-size:0}.connection:before{width:7px;height:7px;margin:0}.header-right{gap:10px}.mobile-menu{display:grid}.shell{display:block;min-height:calc(100vh - 73px)}aside{display:none;position:absolute;z-index:5;top:73px;right:0;width:235px;border:1px solid var(--line);box-shadow:0 15px 30px #302b6520;border-radius:0 0 0 13px}aside.open{display:flex}.sidebar-note,.sidebar-footer{display:none}main{padding:25px 17px 0}.eyebrow{font-size:8px}h1{font-size:24px}.page-intro{margin-bottom:23px}.page-intro p{font-size:11px}.tabs{padding:5px;border-radius:12px;margin-bottom:18px}.tab{font-size:14px;padding:13px 5px}.tab svg{width:20px}.composer{padding:23px 19px}.card{border-radius:13px}h2{font-size:19px}.step{font-size:7px}label{font-size:13px}input:not([type=checkbox]),textarea,select{font-size:16px}details select,details input{font-size:16px!important}.textarea-footer{font-size:9px}.text-btn{font-size:10px}textarea{min-height:175px}.generate{font-size:15px;padding:16px}.generation-note{font-size:9px}.field-note{font-size:11px}.segmented button{font-size:12px}.chip{font-size:10px}.bottom-note{font-size:9px;align-items:flex-start}.results .card-heading{padding:23px 19px 0}.history-grid{grid-template-columns:1fr}.history-card img,.history-card video{height:220px}.page-intro .outline-btn{white-space:nowrap;padding:8px}dialog{padding:23px}dialog textarea{min-height:85px}footer span{display:none}.parameter-grid{gap:12px}#parameterFields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

.file-item{flex-wrap:wrap}.file-item select{font-size:11px;max-width:175px;padding:7px 28px 7px 8px}
