/* Studio 4.0 — reference-inspired glass workspace. Scoped to the home shell. */
#studioRoot {
  --studio-ink:#f6f3fb; --studio-muted:#c0bacb; --studio-faint:#938b9f;
  --studio-panel:rgba(29,26,35,.83); --studio-inset:rgba(28,26,34,.48);
  --studio-control:rgba(255,255,255,.065); --studio-line:rgba(230,221,245,.19);
  --studio-hover:rgba(255,255,255,.12); --studio-accent:#a363ff;
  --studio-violet:#8b42ee; --studio-positive:#8be6c2; --studio-sidebar:208px;
  background:#1d1824!important; color:var(--studio-ink)!important;
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  height:auto!important; min-height:100dvh; overflow-x:hidden!important; overflow-y:auto!important;
  color-scheme:dark;
}
html[data-theme="light"] #studioRoot:not(.auth-locked) {
  --studio-ink:#292334; --studio-muted:#655c73; --studio-faint:#857b92;
  --studio-panel:rgba(250,247,255,.89); --studio-inset:rgba(255,255,255,.43);
  --studio-control:rgba(255,255,255,.62); --studio-line:rgba(72,51,99,.2);
  --studio-hover:rgba(117,65,179,.1); --studio-accent:#7940c7;
  --studio-positive:#217b60; color-scheme:light;
}
#studioRoot [hidden],#studioRoot .hidden{display:none!important}
#studioRoot .studio-icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
#studioRoot .si{display:inline-block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;vertical-align:middle}
#studioRoot .studio-sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
#studioRoot button,#studioRoot input,#studioRoot select,#studioRoot textarea{font-family:inherit}
#studioRoot :is(button,a,input,select,textarea,[contenteditable]):focus-visible{outline:2px solid var(--studio-accent)!important;outline-offset:3px}
#studioRoot button:disabled{opacity:.45!important;cursor:not-allowed!important}
#studioRoot a{color:inherit}
#studioRoot h1,#studioRoot h2,#studioRoot h3{color:var(--studio-ink);letter-spacing:0}
#studioRoot .app-shell{position:relative;width:100%!important;max-width:none!important;height:auto!important;min-height:100dvh;margin:0!important;padding:18px 24px 24px calc(var(--studio-sidebar) + 40px)!important;display:flex;flex-direction:column;gap:18px!important;overflow:visible!important}
#studioRoot .studio-sidebar{position:fixed;z-index:40;left:16px;top:16px;bottom:16px;width:var(--studio-sidebar);display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;padding:22px 12px 12px;background:var(--studio-panel);border:1px solid var(--studio-line);border-radius:19px;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);box-shadow:0 15px 50px #0003}
#studioRoot .studio-brand{display:flex;gap:11px;align-items:center;padding:1px 9px 23px;text-decoration:none;border-bottom:1px solid var(--studio-line)}
#studioRoot .studio-brand-mark{display:grid;place-items:center;flex:0 0 37px;width:37px;height:40px;font-size:42px;line-height:1;font-weight:900;color:#b879ff;text-shadow:0 0 20px #8b42ee80}
#studioRoot .studio-brand strong{display:block;font-size:21px;font-weight:750;white-space:nowrap;letter-spacing:.3px}
#studioRoot .studio-brand small{display:block;color:var(--studio-muted);font-size:10px;letter-spacing:1.1px;margin-top:3px}
#studioRoot .studio-nav-caption{color:var(--studio-faint);font-size:10px;letter-spacing:1.3px;padding:23px 13px 9px}
#studioRoot .studio-nav{display:flex;flex-direction:column;gap:4px}
#studioRoot .studio-nav :is(a,button){display:flex!important;align-items:center;gap:13px;width:100%;min-height:46px;margin:0;padding:11px 13px!important;border:1px solid transparent!important;border-radius:10px!important;color:var(--studio-muted)!important;background:transparent!important;text-decoration:none;font-size:14px;font-weight:500;box-shadow:none!important;white-space:nowrap;text-align:left}
#studioRoot .studio-nav :is(a,button).hidden,#studioRoot .studio-nav [hidden]{display:none!important}
#studioRoot .studio-nav :is(a,button):hover{background:var(--studio-hover)!important;color:var(--studio-ink)!important}
#studioRoot .studio-nav a.active{background:linear-gradient(105deg,#9d52f950,#8842e81a)!important;border-color:#bd88ff35!important;color:#e5cdff!important;box-shadow:inset 3px 0 0 #b773ff!important}
html[data-theme="light"] #studioRoot .studio-nav a.active{color:#6631a5!important}
#studioRoot .studio-sidebar-bottom{margin-top:auto;padding-top:26px}
#studioRoot .studio-sidebar-bottom button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid var(--studio-line);border-radius:9px;background:var(--studio-control);color:var(--studio-muted);font-size:12px}
#studioRoot .studio-small-arrow{margin-left:auto}
#studioRoot .studio-sidebar-bottom>small{display:block;text-align:center;margin-top:12px;font-size:8px;letter-spacing:2px;color:var(--studio-faint)}
#studioRoot .topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:16px;min-height:58px!important;height:auto!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;flex:none!important}
#studioRoot .studio-top-title{flex:0 0 auto}
#studioRoot .studio-mobile-brand{display:none}
#studioRoot .studio-eyebrow{display:block;font-size:9px;font-weight:600;letter-spacing:2.2px;color:#e7d6ff;opacity:.85;margin-bottom:1px;text-shadow:0 1px 6px #000}
#studioRoot .studio-top-title h1{margin:0;font-size:23px!important;line-height:1.4;font-weight:700;color:#fff!important;text-shadow:0 2px 12px #0005}
#studioRoot .top-actions{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end;align-items:center;gap:8px!important}
#studioRoot .account-entry,#studioRoot .studio-outline-button,#studioRoot .studio-view button,#studioRoot .studio-view select{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 13px;border:1px solid var(--studio-line)!important;border-radius:10px!important;background:var(--studio-control)!important;color:var(--studio-ink)!important;box-shadow:none!important;text-decoration:none;font-size:13px;font-weight:500;line-height:1.5}
#studioRoot .topbar .account-entry{background:var(--studio-panel)!important;backdrop-filter:blur(20px)}
#studioRoot .account-entry:hover,#studioRoot .studio-view button:hover,#studioRoot .studio-outline-button:hover{background:var(--studio-hover)!important;border-color:#ac82df85!important}
#studioRoot .studio-icon-button{width:42px!important;height:42px!important;padding:9px!important;flex:0 0 auto}
#studioRoot .studio-avatar{display:grid;place-items:center;background:linear-gradient(135deg,#b078f9,#8440d7);border-radius:8px;width:30px;height:30px;color:#fff}
#studioRoot .studio-avatar .si{width:17px;height:17px}
#studioRoot .studio-account{padding:5px 11px 5px 5px!important;height:42px;max-width:160px}
#studioRoot #studioAccountName{max-width:102px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#studioRoot .studio-logout{height:42px}
#studioRoot #licenseCard{display:none!important}
#studioRoot #creditCard{display:grid!important;grid-template-columns:auto auto;gap:0 10px;align-content:center;min-width:165px;max-width:250px;min-height:42px;height:auto!important;margin:0;padding:6px 13px!important;background:rgba(25,64,48,.8)!important;color:#d8f5e8!important;border:1px solid #83dbb840!important;border-radius:10px!important;box-shadow:none!important;backdrop-filter:blur(20px)}
#studioRoot #creditCard>span{font-size:10px!important;color:#c1dacd!important;white-space:nowrap}
#studioRoot #creditText{font-size:17px!important;line-height:1.25!important;color:#a6ebcf!important;white-space:nowrap}
#studioRoot #creditDetail{grid-column:1/-1;font-size:9px!important;line-height:1.45!important;color:#c1dacd!important;max-width:230px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-style:normal}
#studioRoot #announcementTicker{max-width:280px;flex:1;min-width:80px;border-color:#ffffff24;background:var(--studio-panel);color:var(--studio-muted)}
#studioRoot .app-shell > #studioGenerateView{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(365px,1fr)!important;grid-template-rows:auto auto!important;grid-template-areas:"workspace tasks" "controls tasks"!important;gap:0 18px!important;align-content:start!important;align-items:stretch!important;flex:none!important;height:auto!important;width:100%!important;overflow:visible!important}
#studioRoot .app-shell>#studioGenerateView[hidden]{display:none!important}
#studioRoot .panel,#studioRoot .studio-glass{background:var(--studio-panel)!important;border:1px solid var(--studio-line)!important;border-radius:17px!important;color:var(--studio-ink)!important;box-shadow:0 14px 40px #0002!important;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
#studioRoot .app-shell>main.grid>.panel{padding:22px!important;min-width:0!important;overflow:visible!important}
#studioRoot .app-shell>main.grid>.prompt-panel{grid-area:workspace!important;min-height:0!important;height:auto!important;border-radius:17px 17px 0 0!important;border-bottom:0!important;padding-bottom:10px!important;gap:0!important;align-self:stretch!important}
#studioRoot .app-shell>main.grid>.option-panel{grid-area:controls!important;min-height:0!important;height:auto!important;border-radius:0 0 17px 17px!important;border-top:0!important;padding-top:6px!important;gap:10px!important;align-self:stretch!important}
#studioRoot .app-shell>main.grid>.task-panel{grid-area:tasks!important;display:flex!important;position:sticky!important;top:18px!important;min-height:0!important;height:calc(100dvh - 112px)!important;max-height:1100px!important;min-width:0!important;align-self:start!important;overflow:hidden!important;padding:21px 18px!important}
#studioRoot .section-title{margin-bottom:14px;gap:12px}
#studioRoot .prompt-section-title{align-items:flex-start;flex-wrap:wrap}
#studioRoot .panel h2{font-size:20px!important;font-weight:650;line-height:1.35}
#studioRoot .studio-section-description{font-size:12px;color:var(--studio-muted);margin:5px 0 0}
#studioRoot .prompt-upload-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-left:auto}
#studioRoot .panel button.small{height:auto!important;min-height:31px!important;min-width:0!important;padding:6px 9px!important;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--studio-control)!important;color:var(--studio-ink)!important;border:1px solid var(--studio-line)!important;border-radius:8px!important;font-size:11px!important;font-weight:450!important;box-shadow:none!important;line-height:1.45!important;white-space:nowrap}
#studioRoot .panel button.small .si{width:15px;height:15px}
#studioRoot .panel button.small:hover{background:var(--studio-hover)!important;border-color:#b085e780!important}
#studioRoot .panel button.danger{color:#f0a6b2!important}
#studioRoot .prompt-panel .image-shelf{position:relative;flex:0 0 auto;display:flex;flex-direction:column;min-height:150px!important;height:170px!important;max-height:230px;margin:0 0 12px!important;padding:11px!important;border:1px dashed var(--studio-line)!important;border-radius:11px!important;background:var(--studio-inset)!important;color:var(--studio-ink)!important;overflow:hidden!important}
#studioRoot .image-shelf-head{display:flex;justify-content:space-between;align-items:center;flex:none;font-size:10px!important;line-height:1.4;color:var(--studio-muted)!important;margin-bottom:6px}
#studioRoot .image-shelf-head em{font-size:10px!important;color:var(--studio-muted)!important;font-style:normal}
#studioRoot .prompt-panel .image-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:8px;min-height:0!important;background:transparent!important;flex:1!important;border:0!important;margin:0;padding:0!important;overflow-y:auto!important;align-content:start}
#studioRoot .prompt-panel .image-list.empty{display:none!important}
#studioRoot .studio-upload-prompt{display:none;position:absolute;inset:28px 10px 10px;width:calc(100% - 20px);border:0!important;background:transparent!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px;color:var(--studio-muted)!important;border-radius:8px!important}
#studioRoot .image-shelf:has(.image-list.empty) .studio-upload-prompt{display:flex}
#studioRoot .studio-upload-prompt .si{width:30px;height:30px;stroke-width:1.3;margin-bottom:4px}
#studioRoot .studio-upload-prompt strong{font-size:13px;color:var(--studio-ink);font-weight:500}
#studioRoot .studio-upload-prompt span{font-size:11px;color:var(--studio-faint)}
#studioRoot .studio-upload-prompt:hover{background:var(--studio-hover)!important}
#studioRoot .prompt-panel .image-card{min-height:0;padding:6px;border-radius:8px!important;background:var(--studio-control)!important;border-color:var(--studio-line)!important;color:var(--studio-ink)!important}
#studioRoot .image-card img{height:65px;border-radius:5px}
#studioRoot .image-card .name{font-size:10px}
#studioRoot .reference-media-row{display:flex;align-items:center;gap:10px;min-height:38px;margin:0 0 12px;padding:7px 10px;background:var(--studio-inset)!important;border:1px solid var(--studio-line)!important;border-radius:9px;color:var(--studio-muted)}
#studioRoot .reference-media-title{font-size:10px;white-space:nowrap;color:var(--studio-muted)}
#studioRoot .reference-media-list{min-height:0;display:flex;flex-wrap:wrap;gap:5px;flex:1}
#studioRoot .reference-media-list:empty::after{content:"添加参考音频或视频，让创意更完整";font-size:10px;color:var(--studio-faint)}
#studioRoot .reference-media-list .reference-media-empty{font-size:10px;color:var(--studio-faint)}
#studioRoot .reference-media-list :is(.reference-media-item,.reference-media-card){background:var(--studio-control)!important;border-color:var(--studio-line)!important;color:var(--studio-ink)!important;border-radius:8px!important}
#studioRoot .studio-prompt-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px;font-weight:600;font-size:13px}
#studioRoot .studio-prompt-label>div{display:flex;gap:6px}
#studioRoot .app-shell>main.grid>.prompt-panel>.editor{flex:0 0 auto!important;width:100%!important;min-height:144px!important;height:clamp(144px,20vh,200px)!important;max-height:330px!important;resize:vertical;overflow:auto!important;background:var(--studio-inset)!important;color:var(--studio-ink)!important;border:1px solid var(--studio-line)!important;border-radius:10px!important;line-height:1.75;font-size:13px!important;padding:13px!important;margin:0!important}
#studioRoot .prompt-panel>.editor:empty:before{font-size:12px!important;color:var(--studio-faint)!important}
#studioRoot .ref-tag{background:#8455c32b!important;color:var(--studio-ink)!important;border-color:#a46ddb55!important}
#studioRoot .app-shell>main.grid>.prompt-panel .fixed-prompt-wrap{display:flex!important;flex-direction:column!important;flex:0 0 auto!important;min-height:0!important;margin-top:12px!important;border:1px solid var(--studio-line)!important;border-radius:10px!important;padding:9px!important;background:var(--studio-inset)!important}
#studioRoot .fixed-prompt-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;color:var(--studio-muted)!important;font-size:11px}
#studioRoot .fixed-prompt-head em{font-size:10px!important;color:var(--studio-faint)!important;font-style:normal}
#studioRoot .app-shell>main.grid>.prompt-panel .fixed-prompt-input{display:block;width:100%;min-height:43px!important;height:43px!important;max-height:180px!important;resize:vertical!important;border:0!important;background:transparent!important;color:var(--studio-ink)!important;padding:0!important;margin:0!important;font-size:12px!important;line-height:1.7!important;border-radius:0!important;box-shadow:none!important}
#studioRoot .fixed-prompt-input::placeholder{color:var(--studio-faint)}
#studioRoot .prompt-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 0!important;min-height:30px}
#studioRoot .studio-prompt-tip{font-size:10px;color:var(--studio-faint)}
#studioRoot .prompt-actions #clearAllBtn{background:transparent!important;border-color:transparent!important;padding:4px 0!important;min-height:24px!important;font-size:10px!important}
#studioRoot .option-panel h2{font-size:13px!important;margin:0 0 2px!important}
#studioRoot .option-panel .source-row{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;margin:0!important}
#studioRoot .option-panel .option-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:0!important}
#studioRoot .option-panel label{display:flex;flex-direction:column;gap:5px;margin:0!important;font-size:10px!important;color:var(--studio-muted)!important;min-width:0!important}
#studioRoot .option-panel .model-picker-row{display:flex;gap:5px;min-width:0}
#studioRoot .option-panel .model-resolution{display:none!important}
#studioRoot .option-panel select,#studioRoot .studio-view input,#studioRoot .studio-view select{display:block;min-width:0!important;width:100%;height:37px!important;border:1px solid var(--studio-line)!important;background:var(--studio-control)!important;color:var(--studio-ink)!important;padding:7px 9px!important;border-radius:8px!important;font-size:12px!important;box-shadow:none!important;outline:none}
#studioRoot select option{background:#292331;color:#fff}
html[data-theme="light"] #studioRoot select option{background:#fff;color:#292334}
#studioRoot #meaiccModel{flex:1;width:0!important;font-size:11px!important}
#studioRoot #refreshMeaiccModelsBtn{flex:0 0 auto;width:38px;padding:5px!important;font-size:10px!important}
#studioRoot .generation-cost{padding:0!important;margin:1px 0 0!important;border:0!important;background:transparent!important;font-size:11px!important;color:var(--studio-muted)!important;text-align:right;min-height:16px}
#studioRoot #generateBtn{display:flex;align-items:center;justify-content:center;width:100%;min-height:43px!important;height:auto!important;margin:0!important;padding:10px 16px!important;border:1px solid #bd88ff80!important;border-radius:9px!important;background:linear-gradient(110deg,#9142f0,#a853fc)!important;color:#fff!important;box-shadow:0 6px 25px #8b35ef25!important;font-size:14px!important;font-weight:600;letter-spacing:.5px}
#studioRoot #generateBtn:before{content:"▷";font-size:21px;line-height:1;margin-right:9px}
#studioRoot #generateBtn:hover{filter:brightness(1.12)}
#studioRoot #generateBtn:disabled{opacity:.48!important;filter:saturate(.65)}
#studioRoot #statusLine{min-height:17px;margin:0!important;font-size:10px!important;line-height:1.6!important;color:var(--studio-muted)!important;padding:0!important;background:transparent!important;border:0!important;overflow-wrap:anywhere}
#studioRoot .task-section-title{display:flex!important;align-items:center;flex-wrap:wrap;margin-bottom:8px;min-height:30px!important}
#studioRoot .task-section-title h2{white-space:nowrap}
#studioRoot .studio-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;margin-left:4px;font-size:11px;font-weight:500;border:1px solid var(--studio-line);border-radius:6px;vertical-align:middle;color:var(--studio-muted)}
#studioRoot .studio-task-filters{display:flex;gap:1px;padding:3px;background:var(--studio-inset);border:1px solid var(--studio-line);border-radius:8px;margin-left:auto}
#studioRoot .studio-task-filters button{font-size:10px;padding:5px 7px;line-height:1.5;border:0!important;border-radius:5px;background:transparent;color:var(--studio-muted);white-space:nowrap}
#studioRoot .studio-task-filters button.active{background:var(--studio-hover);color:var(--studio-ink)}
#studioRoot .studio-task-note{font-size:10px;color:var(--studio-faint);margin:0 0 13px;line-height:1.6}
#studioRoot .studio-task-toolbar{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}
#studioRoot .studio-task-toolbar .task-title-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
#studioRoot .app-shell>main.grid>.task-panel>.task-list{display:flex!important;flex-direction:column!important;gap:9px!important;min-height:180px!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;flex:1 1 auto!important;padding:0 2px 0 0!important;border:0!important;background:transparent!important;scrollbar-width:thin;scrollbar-color:#b9a7d144 transparent}
#studioRoot .app-shell>main.grid>.task-panel>.task-list.empty{display:flex!important;align-items:center;justify-content:center;text-align:center;color:var(--studio-faint)!important;font-size:12px;border:1px dashed var(--studio-line)!important;border-radius:11px!important;min-height:280px!important;background:var(--studio-inset)!important}
#studioRoot .task-list.empty:before{content:"▷";display:block;width:58px;height:58px;line-height:55px;border:1px solid var(--studio-line);border-radius:17px;font-size:35px;color:var(--studio-accent);margin-bottom:3px}
#studioRoot .task-list.empty:after{content:"开始创作，让想象在这里成片";font-size:10px;color:var(--studio-faint)}
#studioRoot .app-shell>main.grid>.task-panel .task-card{display:grid!important;grid-template-columns:75px minmax(0,1fr)!important;gap:10px!important;padding:12px!important;flex:none!important;border-radius:11px!important;color:var(--studio-ink)!important;min-width:0!important}
#studioRoot .task-card .task-actions{grid-column:1/-1!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;min-width:0!important;gap:5px!important;border-top:1px solid var(--studio-line);padding-top:9px}
#studioRoot .task-card .task-info{color:var(--studio-muted)!important;font-size:10px!important;line-height:1.6!important}
#studioRoot .task-card .task-prompt{font-size:12px!important;line-height:1.65!important;color:var(--studio-ink)!important}
#studioRoot .task-card .task-top{flex-wrap:wrap;gap:5px}
#studioRoot .task-card .task-time{color:var(--studio-faint)!important;font-size:9px!important}
#studioRoot .task-card .task-video-box{width:75px!important;min-width:0!important}
#studioRoot .task-card .task-preview-button{width:75px!important;height:92px!important;border-radius:8px!important}
#studioRoot .task-card .task-preview-button img,#studioRoot .task-card .task-preview-button video{width:100%!important;height:100%!important;object-fit:cover}
#studioRoot .task-card .task-preview-button small{font-size:9px}
#studioRoot .task-card .task-video-box .download-video{width:100%;font-size:9px!important;margin-top:5px}
#studioRoot .task-card .badge{font-size:9px;padding:3px 6px;border-radius:5px}
#studioRoot .task-card .badge.ok{background:#4b9b7930!important;color:#98e4bd!important;border-color:#70c59333!important}
#studioRoot .task-card .badge.fail{background:#cd6b6b20!important;color:#f39595!important;border-color:#e3848433!important}
#studioRoot .task-card .badge.processing{background:#9b70d333!important;color:#d8b9ff!important}
#studioRoot .studio-view{display:flex;flex-direction:column;gap:17px;min-width:0}
#studioRoot .studio-view-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:5px 2px 4px}
#studioRoot .studio-view-heading h2{margin:0;color:#fff;font-size:26px;font-weight:650;text-shadow:0 2px 12px #0006}
#studioRoot .studio-view-heading p{margin:5px 0 0;font-size:12px;color:#e9e0f4;text-shadow:0 1px 5px #0009}
#studioRoot .studio-section-kicker{font-size:10px;letter-spacing:2px;color:#e7d9f6}
#studioRoot .studio-model-toolbar{padding:20px}
#studioRoot .studio-search-row{display:grid;grid-template-columns:minmax(0,1fr) 175px 42px;align-items:center;gap:12px}
#studioRoot .studio-search{display:flex;align-items:center;gap:12px;min-width:0;border:1px solid var(--studio-line);border-radius:10px;padding:0 13px!important;background:var(--studio-control);color:var(--studio-muted)}
#studioRoot .studio-search input{background:transparent!important;border:0!important;min-height:43px!important;padding:9px 0!important;font-size:13px!important}
#studioRoot .studio-search input::placeholder{color:var(--studio-faint)}
#studioRoot .studio-search-row select{height:45px!important}
#studioRoot .studio-model-filter-row{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-top:18px}
#studioRoot .studio-model-filters{display:flex;gap:8px;flex-wrap:wrap}
#studioRoot .studio-model-filters button{min-height:35px;padding:7px 15px;font-size:12px}
#studioRoot .studio-model-filters button.active{background:linear-gradient(110deg,#8f41e9a0,#a04ee83b)!important;border-color:#b781f9a0!important;color:#efddff!important;box-shadow:0 0 20px #9a4def30!important}
html[data-theme="light"] #studioRoot .studio-model-filters button.active{background:#8c49df!important;color:#fff!important}
#studioRoot #studioModelCount{font-size:11px;color:var(--studio-muted);white-space:nowrap}
#studioRoot .studio-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
#studioRoot .studio-model-card{display:flex;flex-direction:column;min-width:0;padding:24px;background:var(--studio-panel);backdrop-filter:blur(24px);border:1px solid var(--studio-line);border-radius:16px;box-shadow:0 12px 32px #0002;transition:border-color .18s,transform .18s}
#studioRoot .studio-model-card:hover{border-color:#b88be485;transform:translateY(-2px)}
#studioRoot .studio-model-card.is-selected{border-color:#b76dff;box-shadow:0 0 0 1px #bd73ff60,0 0 32px #9041df40}
#studioRoot .studio-model-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}
#studioRoot .studio-model-mark{display:grid;place-items:center;min-width:49px;width:49px;height:49px;background:linear-gradient(135deg,#bd76ff,#7f2de1);border-radius:14px;font-size:20px;font-weight:700;color:#fff}
#studioRoot .studio-model-card:nth-child(3n+2) .studio-model-mark{background:linear-gradient(135deg,#4adaf0,#1571ed)}
#studioRoot .studio-model-card:nth-child(3n+3) .studio-model-mark{background:linear-gradient(135deg,#27d8bf,#008f99)}
#studioRoot .studio-model-badge{display:inline-flex;align-items:center;padding:5px 9px;font-size:10px;border:1px solid var(--studio-line);border-radius:7px;color:var(--studio-muted)}
#studioRoot .is-selected .studio-model-badge{color:#c68cff;border-color:#a957ff}
#studioRoot .studio-model-card h3{font-size:20px;line-height:1.4;margin:0 0 7px;overflow-wrap:anywhere}
#studioRoot .studio-model-id{font-size:10px;color:var(--studio-faint);overflow-wrap:anywhere;margin:0 0 17px;min-height:30px}
#studioRoot .studio-model-capabilities{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 17px}
#studioRoot .studio-model-capabilities span{font-size:10px;padding:5px 7px;background:var(--studio-control);border:1px solid var(--studio-line);border-radius:7px;color:var(--studio-muted)}
#studioRoot .studio-model-specs{display:flex;flex-direction:column;gap:9px;margin:0 0 22px;font-size:11px;color:var(--studio-muted)}
#studioRoot .studio-model-specs>div{display:grid;grid-template-columns:42px 1fr;gap:12px}
#studioRoot .studio-model-specs dt{color:var(--studio-faint)}
#studioRoot .studio-model-specs dd{margin:0;color:var(--studio-ink);overflow-wrap:anywhere}
#studioRoot .studio-model-price{display:flex;align-items:baseline;gap:6px;margin-top:auto;padding:16px 0 13px;border-top:1px solid var(--studio-line);font-size:12px;color:var(--studio-muted)}
#studioRoot .studio-model-price strong{font-size:29px;font-weight:650;line-height:1.1;color:var(--studio-ink)}
#studioRoot .studio-model-price small{font-size:10px;color:var(--studio-faint)}
#studioRoot .studio-model-select{width:100%;justify-content:space-between!important;min-height:44px!important;font-weight:550!important;font-size:12px!important}
#studioRoot .is-selected .studio-model-select{background:linear-gradient(110deg,#9345f0,#a84aff)!important;border-color:#ae6cf1!important;color:#fff!important}
#studioRoot .studio-empty{grid-column:1/-1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:165px;padding:25px;text-align:center;color:var(--studio-muted);border:1px dashed var(--studio-line);border-radius:12px;background:var(--studio-inset)}
#studioRoot .studio-empty p{margin:0;color:var(--studio-faint);font-size:12px}
#studioRoot .studio-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}
#studioRoot .studio-section-head h2{font-size:19px;margin:0}
#studioRoot .studio-section-head p{font-size:12px;margin:5px 0 0;color:var(--studio-muted)}
#studioRoot .studio-api-keys,#studioRoot .studio-api-overview,#studioRoot .studio-api-history{padding:23px}
#studioRoot #studioApiKeyHost .api-key-panel{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--studio-ink)!important;box-shadow:none!important}
#studioRoot #studioApiKeyHost .api-key-panel-head{display:none}
#studioRoot #studioApiKeyHost .api-key-status{padding:0;margin:0 0 12px;color:var(--studio-muted);font-size:11px;background:transparent;border:0}
#studioRoot #studioApiKeyHost .api-key-create{display:flex;gap:10px;max-width:600px;margin:0 0 16px}
#studioRoot #studioApiKeyHost .api-key-create input{height:40px!important}
#studioRoot #studioApiKeyHost #createApiKeyBtn{white-space:nowrap;background:var(--studio-accent)!important;border-color:var(--studio-accent)!important;color:var(--accent-ink)!important}
#studioRoot #studioApiKeyHost .api-key-list{display:flex;flex-direction:column;gap:8px;margin:0}
#studioRoot #studioApiKeyHost .api-key-item{display:grid;grid-template-columns:minmax(110px,.9fr) minmax(120px,1fr) minmax(180px,1.6fr) auto;align-items:center;gap:14px;padding:13px 15px;background:var(--studio-inset)!important;border:1px solid var(--studio-line);border-radius:9px;color:var(--studio-ink)!important}
#studioRoot #studioApiKeyHost .api-key-item-head{flex-wrap:wrap;gap:7px}
#studioRoot #studioApiKeyHost .api-key-item-head strong{font-size:12px;color:var(--studio-ink)}
#studioRoot #studioApiKeyHost .api-key-item code{color:var(--studio-muted);font-size:11px;overflow-wrap:anywhere}
#studioRoot #studioApiKeyHost .api-key-meta{display:flex;flex-direction:column;gap:2px;color:var(--studio-faint);font-size:10px}
#studioRoot #studioApiKeyHost .api-key-state{color:var(--studio-positive);border:0;background:#62af9020;border-radius:5px;padding:2px 6px;font-size:9px}
#studioRoot #studioApiKeyHost .api-key-item-actions{display:flex;gap:5px}
#studioRoot #studioApiKeyHost .api-key-item-actions button{min-height:29px;padding:4px 7px;font-size:10px}
#studioRoot #studioApiKeyHost .api-key-item-actions .danger{color:#f09aab!important}
#studioRoot #studioApiKeyHost .api-key-empty{padding:25px;text-align:center;border:1px dashed var(--studio-line);color:var(--studio-faint);border-radius:9px;background:var(--studio-inset);font-size:12px}
#studioRoot #studioApiMessage{font-size:12px;color:var(--studio-positive);overflow-wrap:anywhere}
#studioRoot #studioApiMessage:not(:empty){margin-top:12px}
#studioRoot #studioApiMessage.is-error{color:#ffb0b0}
#studioRoot .studio-stat-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
#studioRoot .studio-stat{display:flex;flex-direction:column;gap:6px;padding:17px 15px;background:var(--studio-control);border:1px solid var(--studio-line);border-radius:11px;min-width:0}
#studioRoot .studio-stat:first-child{background:#549b7c26;border-color:#86d9af38}
#studioRoot .studio-stat>span{font-size:10px;color:var(--studio-muted)}
#studioRoot .studio-stat>strong{font-size:25px;font-weight:600;overflow-wrap:anywhere;line-height:1.3}
#studioRoot .studio-stat:first-child>strong{color:var(--studio-positive)}
#studioRoot .studio-stat>small{font-size:9px;color:var(--studio-faint)}
#studioRoot .studio-api-search-row{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:12px;margin:0 0 14px}
#studioRoot .studio-api-search-row select{height:45px!important}
#studioRoot .studio-api-task{padding:14px 16px;border:1px solid var(--studio-line);background:var(--studio-inset);border-radius:10px;margin-bottom:9px;min-width:0}
#studioRoot .studio-api-task-header{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:11px}
#studioRoot .studio-api-task-status{font-size:10px;border:1px solid var(--studio-line);padding:2px 7px;border-radius:5px}
#studioRoot .studio-api-task-prompt{font-size:12px;color:var(--studio-ink);margin:7px 0;overflow-wrap:anywhere}
#studioRoot .studio-api-task-meta,#studioRoot .studio-api-task-model{font-size:10px;color:var(--studio-muted);display:flex;gap:12px;flex-wrap:wrap;overflow-wrap:anywhere}
#studioRoot .studio-api-load-more{display:block;margin:15px auto 0}
#studioRoot .studio-auth-background{display:none}
#studioRoot.auth-locked .studio-auth-background{position:fixed;display:flex;align-items:center;gap:9px;z-index:1000;top:24px;right:28px;min-height:42px;padding:9px 15px;color:#f5eafa;background:rgba(28,24,32,.63);border:1px solid #ffffff36;border-radius:11px;backdrop-filter:blur(15px);font-size:12px}
#studioRoot.auth-locked .app-shell{display:none!important}
#studioRoot.auth-locked #configModal{display:flex!important;position:relative!important;inset:auto!important;width:100%;min-height:100dvh;height:auto;max-height:none;align-items:center;justify-content:center;padding:85px 45px!important;overflow:visible!important;background:transparent!important;backdrop-filter:none!important;z-index:100!important}
#studioRoot.auth-locked #configModal.hidden{display:flex!important}
#studioRoot.auth-locked .config-card{display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(380px,440px)!important;gap:65px;width:min(1190px,100%)!important;max-width:none!important;min-height:0!important;height:auto!important;max-height:none!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;align-items:center}
#studioRoot.auth-locked .auth-visual{display:flex!important;position:relative!important;min-height:400px!important;height:auto!important;background:transparent!important;padding:0!important;align-items:center;overflow:visible;border:0!important;border-radius:0!important}
#studioRoot.auth-locked .auth-art-canvas{display:none!important}
#studioRoot.auth-locked .auth-visual:before,#studioRoot.auth-locked .auth-visual:after{display:none!important}
#studioRoot.auth-locked .auth-visual-copy{position:static!important;display:block!important;padding:0!important;max-width:none!important;z-index:1;transform:none!important;text-shadow:0 2px 25px #180c0f90}
#studioRoot.auth-locked .auth-visual-copy>span{display:block;color:#d1a1ff!important;font-size:15px!important;font-weight:650!important;letter-spacing:3px!important;margin-bottom:18px!important}
#studioRoot.auth-locked .auth-visual-copy>strong{display:block;font-size:clamp(40px,4.1vw,65px)!important;font-weight:750!important;line-height:1.32!important;max-width:650px!important;color:#fff!important;letter-spacing:1px!important}
#studioRoot.auth-locked .auth-visual-copy>p{font-size:25px!important;line-height:1.7!important;color:#fff!important;margin:14px 0 0!important;letter-spacing:1px!important}
#studioRoot.auth-locked .auth-visual-copy>p>small{font-size:12px;color:#eee0df;letter-spacing:2px}
#studioRoot.auth-locked .auth-content{display:flex!important;flex-direction:column!important;padding:30px!important;min-width:0!important;background:rgba(28,25,33,.82)!important;border:1px solid rgba(235,221,246,.34)!important;border-radius:20px!important;box-shadow:0 25px 100px #0004!important;backdrop-filter:blur(25px);-webkit-backdrop-filter:blur(25px)}
#studioRoot.auth-locked .auth-content>.close{display:none!important}
#studioRoot.auth-locked .auth-heading{order:-1;margin:22px 0 7px!important;display:block!important;padding:0!important}
#studioRoot.auth-locked .auth-heading-mark{display:none!important}
#studioRoot.auth-locked .auth-heading h2{font-size:25px!important;color:#fff!important;margin:0!important}
#studioRoot .studio-account-heading{display:none}
#studioRoot #configModal.auth-signed-in .studio-account-heading{display:inline}
#studioRoot #configModal.auth-signed-in .studio-login-heading{display:none}
#studioRoot.auth-locked .auth-heading p{font-size:12px!important;color:#bbb1c6!important;margin:5px 0 0!important;line-height:1.7!important}
#studioRoot.auth-locked .auth-form{display:contents!important}
#studioRoot.auth-locked .auth-mode-tabs{order:-2;display:flex!important;gap:4px!important;padding:4px!important;border:1px solid #f4dcff30!important;border-radius:10px!important;background:#ffffff06!important;margin:0!important}
#studioRoot.auth-locked .auth-mode-tab{flex:1!important;min-height:38px!important;background:transparent!important;color:#d9cfe4!important;border:0!important;border-radius:7px!important;font-size:13px!important;font-weight:600!important;padding:8px 12px!important}
#studioRoot.auth-locked .auth-mode-tab.active{background:linear-gradient(110deg,#9550ed,#a653f3)!important;color:#fff!important;box-shadow:0 3px 15px #7331c833!important}
#studioRoot.auth-locked .auth-form label{display:flex;flex-direction:column;gap:7px!important;font-size:12px!important;color:#e6deed!important;margin:15px 0 0!important;font-weight:500!important}
#studioRoot.auth-locked .auth-form label[hidden]{display:none!important}
#studioRoot.auth-locked .auth-form input{width:100%!important;min-height:46px!important;background:#ffffff07!important;border:1px solid #e6d7f145!important;border-radius:9px!important;padding:11px 13px!important;color:#fff!important;font-size:13px!important;box-shadow:none!important}
#studioRoot.auth-locked .auth-form input::placeholder{color:#93899f!important}
#studioRoot.auth-locked #saveConfigBtn{min-height:45px!important;display:block;width:100%;margin:23px 0 0!important;background:linear-gradient(110deg,#944de8,#a855f7)!important;color:#fff!important;border:1px solid #ca98ff55!important;border-radius:9px!important;font-size:14px!important;font-weight:600!important;letter-spacing:1px;box-shadow:0 5px 25px #8c46df20!important}
#studioRoot.auth-locked #configMsg{font-size:12px!important;margin-top:13px!important;line-height:1.6;min-height:0!important}
#studioRoot.auth-locked #configMsg:empty{display:none!important}
#studioRoot .mention-popup{background:var(--studio-panel)!important;color:var(--studio-ink)!important;border-color:var(--studio-line)!important;backdrop-filter:blur(20px)}
#studioRoot .mention-item:hover{background:var(--studio-hover)!important}
#studioRoot .modal:not(#configModal){backdrop-filter:blur(7px)}
#studioRoot .modal-card:not(.config-card){background:var(--studio-panel)!important;color:var(--studio-ink)!important;border-color:var(--studio-line)!important;backdrop-filter:blur(24px);border-radius:16px!important}
#studioRoot .modal-card:not(.config-card) :is(input,textarea,select){background:var(--studio-inset)!important;color:var(--studio-ink)!important;border-color:var(--studio-line)!important}
@media(min-width:1800px){#studioRoot{--studio-sidebar:224px}#studioRoot .app-shell{padding-right:32px!important;padding-left:calc(var(--studio-sidebar) + 48px)!important}#studioRoot .studio-model-card{padding:28px}#studioRoot .studio-sidebar{left:20px;top:20px;bottom:20px}#studioRoot .app-shell>#studioGenerateView{grid-template-columns:minmax(0,1.6fr) minmax(400px,1fr)!important}#studioRoot .prompt-panel .image-shelf{height:200px!important}}
@media(max-width:1350px){#studioRoot{--studio-sidebar:186px}#studioRoot .app-shell{padding-left:calc(var(--studio-sidebar) + 32px)!important;padding-right:16px!important}#studioRoot .studio-sidebar{left:14px;top:14px;bottom:14px;padding:19px 9px 10px}#studioRoot .studio-brand{padding-left:5px;gap:8px}#studioRoot .studio-brand strong{font-size:18px}#studioRoot .studio-brand small{font-size:9px;letter-spacing:.5px}#studioRoot .studio-brand-mark{font-size:36px;width:30px;flex-basis:30px}#studioRoot .studio-nav :is(a,button){gap:10px;padding:10px!important;font-size:13px;min-height:43px}#studioRoot .app-shell>#studioGenerateView{grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr)!important;column-gap:14px!important}#studioRoot .app-shell>main.grid>.panel{padding:17px!important}#studioRoot .app-shell>main.grid>.option-panel{padding-top:6px!important}#studioRoot .app-shell>main.grid>.prompt-panel{padding-bottom:10px!important}#studioRoot .app-shell>main.grid>.task-panel{padding:18px 14px!important}#studioRoot .studio-top-title h1{font-size:21px!important}#studioRoot .studio-logout span{display:none}#studioRoot .studio-logout{width:42px;padding:9px!important}#studioRoot .studio-model-card{padding:20px}#studioRoot .studio-model-card h3{font-size:17px}#studioRoot .studio-model-price strong{font-size:25px}#studioRoot .studio-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#studioRoot #studioApiKeyHost .api-key-item{grid-template-columns:1fr 1fr}#studioRoot #studioApiKeyHost .api-key-item-actions{justify-content:flex-end}}
@media(max-width:1100px){#studioRoot{--studio-sidebar:72px}#studioRoot .studio-sidebar{padding:16px 7px 10px}#studioRoot .studio-brand{justify-content:center;padding:0 0 20px}#studioRoot .studio-brand>span:last-child,#studioRoot .studio-nav-caption,#studioRoot .studio-nav :is(a,button)>span,#studioRoot .studio-sidebar-bottom span,#studioRoot .studio-sidebar-bottom small{display:none}#studioRoot .studio-brand-mark{font-size:39px;flex-basis:37px}#studioRoot .studio-nav{margin-top:16px;gap:7px}#studioRoot .studio-nav :is(a,button){justify-content:center;padding:12px!important;min-height:46px}#studioRoot .studio-nav .si{width:23px;height:23px}#studioRoot .studio-sidebar-bottom button{justify-content:center;padding:12px 6px}#studioRoot .app-shell>#studioGenerateView{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr)!important}#studioRoot .app-shell>main.grid>.prompt-panel{min-height:0!important}#studioRoot .app-shell>main.grid>.task-panel{position:sticky!important;height:calc(100dvh - 112px)!important;max-height:1100px!important}#studioRoot .studio-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#studioRoot .studio-model-filter-row{align-items:flex-start}#studioRoot .studio-model-filters{gap:6px}#studioRoot .studio-model-filters button{padding:7px 10px;font-size:11px}#studioRoot .studio-section-kicker{display:none}#studioRoot.auth-locked .config-card{grid-template-columns:minmax(0,1fr) 390px!important;gap:30px}#studioRoot.auth-locked .auth-visual-copy>strong{font-size:43px!important}#studioRoot.auth-locked .auth-visual-copy>span{font-size:12px!important;letter-spacing:2px!important}#studioRoot.auth-locked .auth-visual-copy>p{font-size:22px!important}}
@media(max-width:850px){#studioRoot .app-shell>#studioGenerateView{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"workspace" "controls" "tasks"!important;row-gap:0!important}#studioRoot .app-shell>main.grid>.task-panel{position:static!important;height:auto!important;min-height:380px!important;max-height:none!important;margin-top:16px}#studioRoot .app-shell>main.grid>.task-panel>.task-list{min-height:240px!important;max-height:750px!important}#studioRoot .top-actions{gap:6px!important}#studioRoot .studio-account{max-width:100px}#studioRoot #studioAccountName{max-width:53px}#studioRoot #creditCard{min-width:125px;padding:5px 9px!important;gap:0 7px}#studioRoot #creditCard>span{font-size:9px!important}#studioRoot #creditText{font-size:15px!important}#studioRoot .studio-top-title h1{font-size:19px!important}#studioRoot .studio-eyebrow{font-size:8px;letter-spacing:1.4px}#studioRoot #announcementTicker{display:none!important}#studioRoot .studio-api-keys,#studioRoot .studio-api-overview,#studioRoot .studio-api-history{padding:18px}#studioRoot .studio-view-heading h2{font-size:23px}#studioRoot .studio-model-filter-row{flex-direction:column}#studioRoot.auth-locked #configModal{padding:90px 24px 40px!important}#studioRoot.auth-locked .config-card{grid-template-columns:1fr!important;gap:28px;width:min(460px,100%)!important}#studioRoot.auth-locked .auth-visual{min-height:0!important;display:block!important}#studioRoot.auth-locked .auth-visual-copy>span{font-size:11px!important;letter-spacing:2px!important;margin-bottom:9px!important}#studioRoot.auth-locked .auth-visual-copy>strong{font-size:39px!important}#studioRoot.auth-locked .auth-visual-copy>p{font-size:19px!important;margin-top:5px!important}#studioRoot.auth-locked .auth-visual-copy>p>small{display:none}}
@media(max-width:600px){#studioRoot .app-shell{padding:10px 10px 24px!important;gap:12px!important;min-width:0}#studioRoot .studio-sidebar{position:relative;inset:auto;width:100%;height:auto;min-height:0;padding:7px;border-radius:12px;flex-direction:row;flex-wrap:wrap;gap:0;overflow:visible;order:1}#studioRoot .studio-brand{display:none}#studioRoot .studio-nav{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:3px;margin:0;width:auto;flex:1 1 auto}#studioRoot .studio-nav :is(a,button){width:auto;min-width:41px;min-height:37px;padding:8px 9px!important;border-radius:7px!important;flex:1;gap:5px}#studioRoot .studio-nav :is(a,button)>span{display:inline;font-size:10px}#studioRoot .studio-nav .si{width:15px;height:15px}#studioRoot .studio-nav:nth-of-type(2){border-top:1px solid var(--studio-line);padding-top:4px;margin-top:4px}#studioRoot .studio-nav:nth-of-type(2) .si{display:none}#studioRoot .studio-sidebar-bottom{display:none}#studioRoot .topbar{order:0;flex-wrap:wrap!important;gap:8px;min-height:44px!important}#studioRoot .top-actions{gap:5px!important;flex:1 1 auto;justify-content:flex-end}#studioRoot .studio-top-title{display:none}#studioRoot .topbar:before{content:"小熊猫 AI";color:#fff;font-size:14px;font-weight:650;text-shadow:0 1px 9px #0006}#studioRoot .topbar .studio-icon-button,#studioRoot .studio-logout{width:32px!important;height:34px!important;min-height:34px!important;padding:7px!important;border-radius:8px!important}#studioRoot .topbar .si{width:17px;height:17px}#studioRoot .studio-account{height:34px;min-height:34px;max-width:80px;padding:3px!important;background:transparent!important;border:0!important}#studioRoot .studio-account .studio-avatar{width:28px;height:28px;border-radius:7px}#studioRoot #studioAccountName{display:none}#studioRoot .studio-logout{display:none!important}#studioRoot #creditCard{min-width:114px;max-width:150px;min-height:34px;padding:3px 7px!important;border-radius:8px!important;gap:0 5px}#studioRoot #creditText{font-size:14px!important}#studioRoot #creditDetail{font-size:8px!important;max-width:132px}#studioRoot .app-shell>main.grid,#studioRoot .studio-view{order:2}#studioRoot .app-shell>main.grid>.panel{padding:15px!important}#studioRoot .app-shell>main.grid>.option-panel{padding-top:4px!important}#studioRoot .app-shell>main.grid>.prompt-panel{padding-bottom:8px!important}#studioRoot .panel h2{font-size:18px!important}#studioRoot .prompt-section-title{gap:11px;margin-bottom:13px}#studioRoot .prompt-upload-actions{margin-left:0;width:100%;display:grid;grid-template-columns:1fr 1fr 1fr}#studioRoot .prompt-upload-actions button.small{font-size:10px!important;padding:7px 6px!important;width:100%}#studioRoot .studio-section-description{font-size:10px}#studioRoot .prompt-panel .image-shelf{height:156px!important;margin-bottom:10px!important}#studioRoot .studio-upload-prompt strong{font-size:12px}#studioRoot .studio-upload-prompt span{font-size:10px}#studioRoot .reference-media-row{padding:7px;gap:6px;flex-wrap:wrap}#studioRoot .reference-media-list{flex-basis:100%}#studioRoot .studio-prompt-tip{max-width:68%;font-size:9px}#studioRoot .app-shell>main.grid>.prompt-panel>.editor{height:170px!important;font-size:12px!important}#studioRoot .option-panel .source-row{grid-template-columns:1fr 1fr!important;gap:9px!important}#studioRoot .option-panel .model-picker{grid-column:1/-1}#studioRoot .option-panel select{height:39px!important;font-size:12px!important}#studioRoot .studio-task-note{font-size:10px}#studioRoot .studio-task-filters button{padding:4px 6px;font-size:9px}#studioRoot .task-section-title{gap:8px}#studioRoot .task-section-title h2{font-size:17px!important}#studioRoot .app-shell>main.grid>.task-panel .task-card{grid-template-columns:65px minmax(0,1fr)!important;padding:10px!important;gap:8px!important}#studioRoot .task-card .task-video-box,#studioRoot .task-card .task-preview-button{width:65px!important}#studioRoot .studio-model-grid{grid-template-columns:1fr;gap:13px}#studioRoot .studio-view{gap:12px}#studioRoot .studio-view-heading{padding:5px 2px;align-items:flex-start}#studioRoot .studio-view-heading h2{font-size:21px}#studioRoot .studio-view-heading p{font-size:11px}#studioRoot .studio-model-toolbar{padding:13px}#studioRoot .studio-search-row{grid-template-columns:minmax(0,1fr) 38px;gap:8px}#studioRoot #studioModelSort{grid-row:2;grid-column:1/-1;font-size:11px!important;height:34px!important}#studioRoot #studioModelsRefresh{grid-row:1;grid-column:2;width:38px!important;height:42px!important}#studioRoot .studio-model-filter-row{margin-top:12px;gap:10px}#studioRoot .studio-model-filters{gap:5px;flex-wrap:wrap}#studioRoot .studio-model-filters button{padding:6px 9px!important;font-size:10px!important;min-height:31px}#studioRoot .studio-model-card{padding:20px}#studioRoot .studio-model-card h3{font-size:20px}#studioRoot .studio-model-id{min-height:0}#studioRoot .studio-model-specs{font-size:12px}#studioRoot .studio-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#studioRoot .studio-stat{padding:12px}#studioRoot .studio-stat>strong{font-size:23px}#studioRoot .studio-api-keys,#studioRoot .studio-api-overview,#studioRoot .studio-api-history{padding:15px}#studioRoot .studio-section-head h2{font-size:17px}#studioRoot .studio-section-head p{font-size:10px}#studioRoot .studio-view-heading .studio-outline-button{font-size:0;padding:9px;width:38px;min-height:38px}#studioRoot #studioApiKeyHost .api-key-item{grid-template-columns:1fr;gap:8px;padding:12px}#studioRoot #studioApiKeyHost .api-key-item-actions{justify-content:flex-start}#studioRoot #studioApiKeyHost .api-key-create{gap:7px}#studioRoot #studioApiKeyHost #createApiKeyBtn{font-size:11px;padding:7px 10px}#studioRoot .studio-api-search-row{grid-template-columns:1fr;gap:8px}#studioRoot .studio-api-search-row select{height:35px!important}#studioRoot.auth-locked #configModal{padding:84px 22px 30px!important}#studioRoot.auth-locked .config-card{gap:22px!important}#studioRoot.auth-locked .auth-visual-copy>strong{font-size:35px!important}#studioRoot.auth-locked .auth-visual-copy>span{font-size:10px!important}#studioRoot.auth-locked .auth-visual-copy>p{font-size:17px!important}#studioRoot.auth-locked .auth-content{padding:24px!important;border-radius:16px!important}#studioRoot.auth-locked .auth-heading{margin-top:21px!important}#studioRoot.auth-locked .auth-heading h2{font-size:23px!important}#studioRoot.auth-locked .studio-auth-background{top:18px;right:21px;min-height:35px;padding:7px 11px;font-size:11px}#studioRoot.auth-locked .studio-auth-background .si{width:17px;height:17px}}
@media(prefers-reduced-motion:reduce){#studioRoot *,#studioRoot *:before,#studioRoot *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
#studioRoot .app-shell>#studioGenerateView[hidden],#studioRoot .app-shell>.studio-view[hidden],#studioRoot #taskList .task-card[hidden]{display:none!important}
#studioRoot .studio-model-price{position:relative;justify-content:space-between;gap:10px}
#studioRoot .studio-model-price-details{margin-left:auto;flex:none;font-size:11px;color:var(--studio-accent)}
#studioRoot .studio-model-price-details summary{cursor:pointer;list-style:none;white-space:nowrap}
#studioRoot .studio-model-price-details summary::-webkit-details-marker{display:none}
#studioRoot .studio-model-price-details[open]{position:relative;z-index:2}
#studioRoot .studio-model-price-details[open]>div{min-width:160px;padding:6px 0;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--studio-muted)}
#studioRoot .studio-model-price-details strong{font-size:10px;font-weight:500}
#studioRoot .studio-api-notice{font-size:11px;color:var(--studio-muted);margin:0 0 12px;overflow-wrap:anywhere}
#studioRoot .studio-api-notice.is-error,#studioRoot .studio-api-task-error{color:#f5a0a0;font-size:12px}
#studioRoot .studio-api-task-header code{overflow-wrap:anywhere;min-width:0;font-size:10px}
#studioRoot .studio-api-task-header time{font-size:10px;color:var(--studio-faint);margin-left:auto}
#studioRoot .studio-api-task-status.succeeded{color:var(--studio-positive);background:#6fc09c1a}
#studioRoot .studio-api-task-status.failed{color:#f49e9e;background:#ec787810}
/* Queue cards contain a text wrapper and a preview wrapper, not bare columns. */
#studioRoot .app-shell>main.grid>.task-panel #taskList .task-card{grid-template-columns:minmax(0,1fr) 90px!important;align-items:start;gap:10px!important;padding:14px!important;min-height:0!important}
#studioRoot #taskList .task-left{display:grid!important;grid-template-columns:17px minmax(0,1fr)!important;gap:9px!important;min-width:0!important;min-height:0!important;align-items:start!important;margin:0!important;padding:0!important}
#studioRoot #taskList .task-left .fan{display:none!important}
#studioRoot #taskList .task-main{display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;gap:8px!important;padding:0!important;margin:0!important;overflow:visible!important}
#studioRoot #taskList .task-head{display:flex!important;flex-wrap:wrap!important;gap:5px 8px!important;align-items:center!important;min-width:0!important;line-height:1.6!important;margin:0!important}
#studioRoot #taskList .task-head strong{font-size:12px!important;color:var(--studio-ink)!important;white-space:nowrap}
#studioRoot #taskList .task-time{font-size:10px!important;line-height:1.5!important;white-space:normal!important}
#studioRoot #taskList .task-prompt{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;max-height:none!important;width:100%;margin:0!important;font-size:13px!important;line-height:1.7!important;color:var(--studio-ink)!important;overflow-wrap:anywhere}
#studioRoot #taskList .task-bottom{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;margin:0!important;min-width:0!important}
#studioRoot #taskList .task-info{display:flex;flex-wrap:wrap;gap:4px 10px;flex:none!important;min-width:0!important;max-width:100%!important;margin:0!important;font-size:11px!important;line-height:1.7!important}
#studioRoot #taskList .task-info :is(span,em){font-size:11px!important;color:var(--studio-muted)!important;line-height:1.7!important;white-space:normal!important}
#studioRoot #taskList .task-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important;max-width:100%!important;width:100%!important;gap:5px!important;margin:0!important;padding:0!important;border:0!important}
#studioRoot #taskList .task-actions button{width:auto!important;min-width:0!important;max-width:100%;font-size:10px!important;padding:5px 7px!important;white-space:normal!important;min-height:29px!important}
#studioRoot #taskList .task-video-area{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;min-width:0!important;min-height:0!important;width:90px!important;height:auto!important;margin:0!important;padding:0 0 0 10px!important;border-left:1px solid var(--studio-line)!important;align-self:stretch!important}
#studioRoot #taskList .task-video-divider{display:none!important}
#studioRoot #taskList .task-video-box,#studioRoot #taskList .empty-video{width:79px!important;min-width:0!important;min-height:0!important;max-height:none!important;height:auto!important;justify-content:flex-start!important;gap:6px!important;padding:0!important}
#studioRoot #taskList .task-preview-button{width:79px!important;height:89px!important;min-height:0!important}
#studioRoot #taskList .task-video-box button.small{width:79px!important;max-width:100%!important;font-size:10px!important;padding:5px 6px!important;min-height:28px!important;white-space:normal!important;margin:0!important}
#studioRoot #taskList .task-error,#studioRoot #taskList .task-poll-note{font-size:11px!important;line-height:1.65!important;padding:0!important;margin:0!important;overflow-wrap:anywhere}
#studioRoot #taskList .recorded-billing,#studioRoot #taskList .recorded-expiry{grid-column:1/-1!important;padding:6px 0 0!important;border-top:1px solid var(--studio-line);font-size:10px!important;line-height:1.6!important;margin:0!important;color:var(--studio-faint);overflow-wrap:anywhere}
#studioRoot #taskList .recorded-expiry{border-top:0;padding-top:0!important}
#studioRoot.auth-locked #configModal:before,#studioRoot.auth-locked #configModal:after{display:none!important;content:none!important}
#studioRoot .top-actions>a[href="/billing.html"]{display:none!important}
#studioRoot .studio-model-card h3{font-size:23px;line-height:1.4}
#studioRoot .studio-model-id{font-size:12px;line-height:1.6}
#studioRoot .studio-model-capabilities span{font-size:12px;padding:5px 8px}
#studioRoot .studio-model-specs{font-size:13px;line-height:1.65}
#studioRoot .studio-model-badge{font-size:12px}
#studioRoot .studio-model-select{font-size:14px!important;min-height:46px!important}
#studioRoot .studio-model-price{font-size:13px}
#studioRoot .studio-model-price-details{font-size:12px}
#studioRoot .studio-stat>span{font-size:12px}
#studioRoot .studio-stat>small{font-size:10px}
#studioRoot #studioApiKeyHost .api-key-item-head strong{font-size:14px}
#studioRoot #studioApiKeyHost .api-key-item code{font-size:12px}
#studioRoot #studioApiKeyHost .api-key-meta{font-size:11px}
#studioRoot .option-panel label{font-size:12px!important}
#studioRoot .option-panel select{font-size:13px!important}
#studioRoot #meaiccModel{font-size:12px!important}
#studioRoot .studio-section-description{font-size:13px}
#studioRoot .studio-task-note{font-size:12px}
#studioRoot .studio-task-filters button{font-size:11px}
#studioRoot .studio-upload-prompt strong{font-size:14px}
#studioRoot .studio-upload-prompt span{font-size:12px}
#studioRoot .studio-sidebar-bottom button{font-size:13px}
#studioRoot .app-shell>main.grid>.task-panel #taskList .task-card[hidden]{display:none!important}
#studioRoot .image-shelf-head>span{color:var(--studio-muted)!important;font-size:11px!important}
#studioRoot .studio-prompt-label,#studioRoot .fixed-prompt-head{font-size:12px}
#studioRoot .option-panel .source-row,#studioRoot .option-panel .option-row{flex:none!important;min-height:0!important;height:auto!important;align-items:start!important}
#studioRoot .option-panel .option-row{width:100%!important}
#studioRoot .option-panel .option-row label{width:100%!important;flex:1!important}
@media(min-width:851px){#studioRoot .app-shell>main.grid>.prompt-panel>.editor{height:155px!important;min-height:130px!important}#studioRoot .prompt-panel .image-shelf{height:151px!important;min-height:130px!important}#studioRoot .app-shell>main.grid>.prompt-panel .fixed-prompt-wrap{margin-top:10px!important}#studioRoot .app-shell>main.grid>.prompt-panel .fixed-prompt-input{min-height:37px!important;height:37px!important}#studioRoot .option-panel .option-row{display:grid!important;grid-template-columns:1fr 1fr!important}}
@media(max-width:600px){#studioRoot .app-shell>main.grid>.task-panel #taskList .task-card{grid-template-columns:minmax(0,1fr) 77px!important;padding:11px!important;gap:7px!important}#studioRoot #taskList .task-left{grid-template-columns:14px minmax(0,1fr)!important;gap:7px!important}#studioRoot #taskList .task-video-area{width:77px!important;padding-left:7px!important}#studioRoot #taskList .task-video-box,#studioRoot #taskList .task-preview-button,#studioRoot #taskList .task-video-box button.small{width:69px!important}#studioRoot #taskList .task-prompt{font-size:12px!important}#studioRoot #taskList .task-info,#studioRoot #taskList .task-info :is(span,em){font-size:10px!important}#studioRoot #taskList .task-actions button{font-size:9px!important;padding:4px 6px!important}}
/* One compact parameter row on desktop; labels remain readable on narrow screens. */
#studioRoot .app-shell>main.grid>.option-panel{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:auto!important;grid-template-areas:none!important;gap:9px!important;align-content:start!important;align-items:start!important}
#studioRoot .app-shell>main.grid>.option-panel>.source-row,#studioRoot .app-shell>main.grid>.option-panel>.option-row{display:contents!important}
#studioRoot .option-panel>h2,#studioRoot .option-panel>.generation-cost,#studioRoot .option-panel>.send-btn,#studioRoot .option-panel>.status-line{grid-column:1/-1!important;grid-row:auto!important;width:100%!important;position:static!important}
#studioRoot .option-panel .source-row>.model-picker{grid-column:span 2!important}
#studioRoot .option-panel .source-row>.resolution-picker,#studioRoot .option-panel .source-row>.ratio-picker,#studioRoot .option-panel .option-row>label{grid-column:span 1!important;grid-row:auto!important;width:100%!important}
#studioRoot .option-panel .generation-cost{text-align:right!important;margin:0!important}
#studioRoot .option-panel #generateBtn{min-height:43px!important}
@media(max-width:600px){#studioRoot .app-shell>main.grid>.option-panel{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#studioRoot .option-panel .source-row>.model-picker{grid-column:1/-1!important}#studioRoot .studio-model-card h3{font-size:21px}#studioRoot .studio-model-specs{font-size:12px}#studioRoot .studio-model-id{font-size:11px}#studioRoot .studio-upload-prompt strong{font-size:12px}#studioRoot .studio-upload-prompt span{font-size:10px}#studioRoot .studio-section-description,#studioRoot .studio-task-note{font-size:11px}}
@media(min-width:851px) and (max-height:950px){#studioRoot .prompt-panel .image-shelf{height:130px!important;min-height:120px!important}#studioRoot .app-shell>main.grid>.prompt-panel>.editor{height:130px!important;min-height:120px!important}#studioRoot .app-shell>main.grid>.prompt-panel .fixed-prompt-input{height:32px!important;min-height:32px!important}#studioRoot .app-shell>main.grid>.option-panel{padding-bottom:16px!important}}
@media(max-width:600px){#studioRoot .topbar:before{display:none!important;content:none!important}#studioRoot .studio-mobile-brand{display:block;flex:0 0 auto;font-size:14px;font-weight:650;color:#fff;text-shadow:0 1px 9px #0008}}

/* 4.0.1: clear header, full reference previews and aligned workspace edges. */
#studioRoot .topbar,#studioRoot .topbar *{
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  filter:none!important;
}
#studioRoot .prompt-panel #dropZone{
  flex-basis:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  padding:12px!important;
}
#studioRoot .prompt-panel #dropZone:has(#imageList.empty){min-height:130px!important}
#studioRoot .prompt-panel #imageList{
  flex:none!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  scrollbar-gutter:auto!important;
  grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;
  align-items:start!important;
  gap:10px!important;
}
#studioRoot #imageList .image-card{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  flex:none!important;
  overflow:visible!important;
  padding:7px!important;
  gap:6px!important;
}
#studioRoot #imageList .image-card img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:4/3!important;
  object-fit:contain!important;
  margin:0!important;
  border-radius:6px!important;
  background:var(--studio-inset)!important;
  flex:none!important;
}
#studioRoot #imageList .image-card .name{
  width:100%;
  min-height:16px!important;
  margin:0!important;
  line-height:1.4!important;
  font-size:11px!important;
}
#studioRoot #imageList .image-card .row{margin:0!important;justify-content:center!important;flex-wrap:wrap;gap:5px!important}
#studioRoot #imageList .image-card .row button{height:26px!important;min-height:26px!important;font-size:11px!important;line-height:1.3!important;border-radius:6px}
#studioRoot .app-shell>main.grid>.prompt-panel .fixed-prompt-wrap{
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  background:transparent!important;
  gap:0!important;
}
#studioRoot .fixed-prompt-head{
  align-items:center!important;
  min-height:20px!important;
  height:auto!important;
  padding:0!important;
  margin:0 0 8px!important;
  line-height:1.5!important;
}
#studioRoot .fixed-prompt-head>label{font-size:13px;font-weight:600;color:var(--studio-ink);line-height:1.5}
#studioRoot .app-shell>main.grid>.prompt-panel #fixedPromptInput{
  width:100%!important;
  min-height:62px!important;
  height:62px!important;
  max-height:220px!important;
  padding:10px 12px!important;
  border:1px solid var(--studio-line)!important;
  border-radius:10px!important;
  background:var(--studio-inset)!important;
  color:var(--studio-ink)!important;
  font-size:12px!important;
  line-height:1.7!important;
}
/* Size containment requires the desktop grid's bounded row height. */
@media(min-width:960px){
  #studioRoot .app-shell>#studioGenerateView>.task-panel{
    position:relative!important;
    top:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-self:stretch!important;
    contain:size;
  }
  #studioRoot .app-shell>#studioGenerateView>.task-panel>#taskList{
    min-height:0!important;
    max-height:none!important;
    flex:1 1 0!important;
    overflow-y:auto!important;
  }
}
@media(max-width:600px){
  #studioRoot .studio-sidebar>.studio-nav:first-of-type{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    flex:1 1 100%;
    gap:4px;
  }
  #studioRoot .studio-sidebar>.studio-nav:first-of-type :is(a,button){width:100%;min-width:0;min-height:38px;gap:6px;padding:8px 6px!important}
  #studioRoot .studio-sidebar>.studio-nav:first-of-type :is(a,button)>span{font-size:11px}
  #studioRoot .studio-sidebar-bottom{display:flex;flex:1 1 100%;width:100%;margin-top:4px;padding-top:4px;border-top:1px solid var(--studio-line)}
  #studioRoot .studio-sidebar .studio-sidebar-bottom button{width:auto;min-height:32px;padding:7px 9px;gap:6px;font-size:11px}
  #studioRoot .studio-sidebar-bottom button>span:not(.studio-small-arrow){display:inline}
  #studioRoot .studio-sidebar-bottom .si{width:16px;height:16px}
  #studioRoot .studio-sidebar-bottom :is(.studio-small-arrow,small){display:none}
  #studioRoot .prompt-panel #imageList{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  #studioRoot .fixed-prompt-head>label{font-size:12px}
  #studioRoot .fixed-prompt-head em{font-size:9px!important}
  #studioRoot .app-shell>main.grid>.prompt-panel #fixedPromptInput{min-height:76px!important;height:76px!important}
}
