.work-popover,.account-menu>div{background:#111317!important;border:1px solid #383b40!important;box-shadow:0 20px 70px #0009!important}.work-credit-menu{position:relative}.work-credit-menu summary{list-style:none;cursor:pointer}.work-credit-menu summary::-webkit-details-marker{display:none}.work-popover{position:absolute;right:0;top:48px;width:320px;max-width:calc(100vw - 32px);padding:22px;border-radius:18px}.work-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.work-heading h1,.work-heading h2,.work-heading h3{margin:0 0 8px}.work-heading p,.work-muted{color:#949aa5;font-size:12px;line-height:1.8}.work-popover .work-heading{gap:8px;font-size:12px}.work-popover h3{font-size:17px}.work-balance{display:block;font-size:48px;line-height:1.5;font-weight:500}.work-popover dl{display:grid;grid-template-columns:1fr auto;gap:14px;font-size:12px;color:#a7acb5;border-top:1px solid #303238;padding-top:20px}.work-popover dd{margin:0;color:#e6e8ed}.work-popover-link{display:block;margin-top:25px;color:#c8e4ce;font-size:12px}.reference-studio .account-menu>div{width:245px;padding:12px;border-radius:18px}.work-signed{padding:12px;border-bottom:1px solid #303238;margin-bottom:8px}.work-signed small{color:#949aa5}.work-signed p{overflow-wrap:anywhere;margin:8px 0;font-size:13px}.work-history{max-width:1150px;margin:12px auto 50px;padding:28px;border:1px solid #303238;border-radius:24px;background:#0d0f13e8}.work-history h2{font-size:28px}.work-history-tabs{display:flex;gap:6px;align-items:center;border-bottom:1px solid #303238;padding:20px 0}.work-history-tabs button{padding:9px 18px;border-radius:10px;background:#202329;color:#aab0b9}.work-history-tabs button[aria-pressed=true]{background:#f5f6f7;color:#101216}.work-history-tabs>span{margin-left:auto;color:#9298a3;font-size:12px}.work-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:22px 0 12px}.work-filters label{font-size:11px;color:#a5aab4;display:grid;gap:8px;flex:1;min-width:125px}.work-filters label:first-child{flex:2;min-width:190px}.work-filters input,.work-filters select{width:100%;min-width:0;padding:11px;background:#1a1c21;border:1px solid #34373f;border-radius:10px;color:#eee;font:inherit;font-size:12px;color-scheme:dark}.work-history .resultlist{padding:15px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.work-history-item{min-width:0;position:relative;background:#14161b;border:1px solid #30343b;border-radius:18px;overflow:hidden;padding-bottom:12px}.work-history-item .result{border:0;margin:0;display:block}.work-history-item .result img{width:100%;max-height:280px;object-fit:cover}.work-save{margin:0 18px}.work-save[aria-pressed=true]{color:#d8efb3}.work-empty{grid-column:1/-1;text-align:center;padding:55px 20px;color:#a8adb7}.work-account{max-width:1050px;margin:65px auto;padding:0 24px}.work-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:32px 0}.work-account-grid section{padding:30px;background:#121419;border:1px solid #30343b;border-radius:22px}.work-account-grid h2{font-size:20px}.work-account-grid p{color:#a4aab5;line-height:1.9;font-size:14px;overflow-wrap:anywhere}.work-badge{color:#bcdfcc;font-size:12px}.work-account-links{display:flex;flex-wrap:wrap;gap:12px}.work-invite{padding:36px;max-width:650px;margin:auto}.work-invite h2{font-size:32px;margin:20px 0 12px}.work-invite p{color:#9da4ae;line-height:1.8;font-size:14px}.work-gift{display:grid;place-items:center;width:50px;height:50px;border-radius:16px;background:#213832;color:#c4e8d9;font-size:30px}.work-share{background:#191c22;border:1px solid #363a42;border-radius:18px;padding:20px;margin:28px 0}.work-share h3{font-size:16px;margin:0 0 15px}.work-share .linkrow{display:flex;gap:8px}.work-share input{width:100%;min-width:0;background:#0d1015;border:1px solid #444b57;color:#d8dde5;border-radius:10px;padding:12px;font-size:11px}.work-share button{flex-shrink:0}.work-steps{padding-left:24px}.work-steps li{padding:8px 0 12px 8px}.work-steps strong{font-size:16px}.reference-studio:has(.work-history) .studio-scroll{height:calc(100% - 95px)}.reference-studio .ratio-menu .control-popover{width:330px;max-width:calc(100vw - 32px);padding:20px}.ratio-options{gap:7px!important}.ratio-options button{min-height:40px}.resolution-options{gap:7px!important}.resolution-options button{min-height:38px}.control-menu summary:focus-visible,summary:focus-visible{outline:2px solid #bddecf;outline-offset:4px}
@media(max-width:650px){.work-history{margin:8px 12px 30px;padding:18px;border-radius:18px}.work-history .resultlist{grid-template-columns:1fr}.work-heading{align-items:flex-start;gap:12px}.work-history h2{font-size:24px}.work-filters label:first-child{flex-basis:100%}.work-account{margin:32px auto;padding:0 18px}.work-account-grid{grid-template-columns:1fr}.work-account-grid section{padding:22px}.work-invite{padding:25px 18px}.work-invite h2{font-size:26px}.work-share{padding:15px}.reference-studio .work-credit-menu .header-pill{font-size:11px;padding:10px}.reference-studio>header{padding:0 14px}.reference-studio .work-credit-menu .work-popover{position:fixed;top:72px;left:16px;right:16px;width:auto}.reference-studio .account-menu>div{position:fixed;top:72px;right:16px}.reference-studio .ratio-menu .control-popover{position:fixed;left:50%;right:auto;transform:translateX(-50%);bottom:calc(100% + 10px)}.work-history-tabs>span{display:none}}
.reference-studio .work-composer{width:850px;bottom:20px;max-width:calc(100% - 40px);padding:20px;border:1px solid #ffffff20;border-radius:24px;background:#101318f5;box-shadow:0 20px 60px #0007}.reference-studio .studio-scroll{height:calc(100% - 410px)}.reference-studio .studio-welcome h1{font-size:clamp(38px,5vw,76px)}.reference-studio .studio-welcome .work-lead{color:#b4bdc8;font-size:14px;letter-spacing:.5px;margin:18px 0}.work-create-top{display:flex;align-items:center;gap:14px;font-size:12px;margin-bottom:12px}.work-create-top button{margin-left:auto;color:#626c79;font-size:11px;cursor:not-allowed}.reference-studio .work-composer .inputbox{display:block;padding:14px;border-radius:16px;background:#090c11;border:1px solid #3b434e;box-shadow:none}.reference-studio .work-composer #prompt{display:block;width:100%;height:66px;min-height:66px;max-height:140px;margin:0;padding:4px;font-size:14px;line-height:1.7}.reference-studio .work-composer .inputbottom{display:flex;justify-content:space-between;margin:8px 0 0}.reference-studio .work-composer .compose-tools{display:flex;gap:12px}.reference-studio .work-composer .upload-button{display:flex;gap:7px;width:auto;height:auto;padding:8px 12px;border-radius:9px;font-size:11px}.reference-studio .work-composer .upload-button small{display:inline}.work-composer .compose-tools .pill{font-size:11px;padding:8px 12px}.work-parameters{display:grid;gap:10px;margin:16px 0}.work-param-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px}.work-param-row>span{font-size:11px;color:#a0aabb;min-width:42px}.work-param-row>div{display:flex;gap:5px;flex-wrap:wrap}.work-param-row button{padding:7px 10px;border-radius:7px;background:#20262f;border:1px solid transparent;color:#acb7c5;font-size:11px;min-height:32px}.work-param-row button[aria-pressed=true]{background:#dbede4;color:#152b23;border-color:#dbede4}.work-submit-row{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #303843;padding-top:14px}.work-submit-row strong{font-size:13px;color:#d5e4d9}.work-submit-row small{display:block;margin-top:5px;font-size:10px;color:#8c98a8}.reference-studio .work-composer .generate{background:#c7f29a;color:#18301a;border:1px solid #dcffbb;box-shadow:0 4px 22px #b8ed7c18;min-width:155px;min-height:48px;font-size:14px;font-weight:700;padding:12px 20px;display:flex;align-items:center;justify-content:center;gap:14px;flex-shrink:0}.reference-studio .work-composer .generate:disabled{background:#303c31;border-color:#465344;color:#94a18e;box-shadow:none}.work-persistent-note{font-size:10px;line-height:1.6;color:#a1acba;margin:12px 0 0}.work-guide{position:absolute;bottom:calc(100% + 12px);left:0;width:380px;max-width:100%;padding:18px 20px;border-radius:16px;border:1px solid #789679;background:#1b2923;box-shadow:0 12px 35px #0007;z-index:28}.work-guide:after{content:'';position:absolute;bottom:-7px;left:40px;width:12px;height:12px;background:#1b2923;border-right:1px solid #789679;border-bottom:1px solid #789679;transform:rotate(45deg)}.work-guide strong{font-size:14px;color:#e4f1e2}.work-guide p{font-size:11px;line-height:1.8;color:#c1d1c3;margin:8px 0 12px}.work-guide button{font-size:11px;padding:6px 14px}.work-progress{margin-top:14px;font-size:12px;color:#c5d8bf}.work-progress>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.work-progress .pill{margin-left:auto;padding:5px 10px;font-size:10px}.work-progress progress{width:100%;height:5px;accent-color:#c7f29a;margin-top:10px}.work-composer button:focus-visible{outline:2px solid #d3efbc;outline-offset:3px}
@media(max-height:760px) and (min-width:651px){.reference-studio .studio-welcome h1{font-size:40px}.reference-studio .work-composer{padding:15px;bottom:12px}.reference-studio .studio-welcome .work-lead{margin:10px 0}.work-guide{left:auto;right:0;width:350px}}
@media(max-width:650px){.reference-studio{height:auto!important;min-height:100dvh!important;overflow:visible!important}.reference-studio .workspace{height:auto;min-height:100dvh;overflow:visible;padding:78px 0 20px}.reference-studio .studio-scroll{position:relative;top:auto;height:auto!important;min-height:145px;overflow:visible}.reference-studio .studio-welcome{min-height:145px;padding:20px}.reference-studio .studio-welcome h1{font-size:40px}.reference-studio .studio-welcome .work-lead{font-size:12px;line-height:1.8;margin:12px 0}.reference-studio .work-composer{position:relative;left:auto;bottom:auto;transform:none;width:auto;max-width:none;margin:12px 12px 0;padding:14px;border-radius:19px}.work-create-top{gap:9px;font-size:10px}.work-create-top button{font-size:9px}.work-param-row{gap:7px}.work-param-row>div{gap:5px}.work-param-row button{padding:7px 8px;font-size:10px}.work-param-row:first-child>div{flex:1}.work-submit-row{align-items:stretch;flex-direction:column;gap:12px}.reference-studio .work-composer .generate{width:100%;min-height:49px}.work-persistent-note{font-size:10px}.work-guide{position:relative;bottom:auto;left:auto;right:auto;width:auto;margin:0 0 16px;padding:14px}.work-guide:after{display:none}.work-progress>div{font-size:11px}.reference-studio .actions{gap:5px!important}.reference-studio header .brand{font-size:11px}.reference-studio header .brand .logo{width:25px;height:25px}}
.reference-studio.task-workspace .workspace{overflow:visible;height:auto;min-height:100dvh;padding:100px 0 30px}.reference-studio.task-workspace{height:auto;min-height:100dvh;overflow:visible}.reference-studio.task-workspace .studio-scroll{position:relative;top:auto;height:auto!important;overflow:visible}.task-workspace .studio-welcome{min-height:200px;padding:25px 20px!important}.reference-studio.task-workspace .studio-welcome h1{font-size:clamp(25px,3vw,40px);letter-spacing:-1px;margin-top:15px}.task-shortcuts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:0 0 12px}.task-shortcuts button{font-size:12px}.task-shortcuts button[aria-pressed=true]{background:#dcebdd;color:#15251c}.task-example{font-size:12px;color:#b9c9b7;padding:10px;text-decoration:underline;text-underline-offset:5px}.reference-studio.task-workspace .work-composer{position:relative;left:auto;bottom:auto;transform:none;margin:20px auto 0;width:850px}.task-workspace .work-create-top{align-items:flex-start;justify-content:space-between;line-height:1.8}.task-workspace .work-create-top p{font-size:12px;color:#a8b3c0;margin:5px 0}.task-workspace .work-create-top small{font-size:10px;white-space:nowrap;color:#7f8c9d}.task-upload-step{border:1px dashed #485565;padding:15px;border-radius:12px;background:#141b21;margin-bottom:18px}.task-upload-step h3,.task-step{font-size:13px;font-weight:600;color:#e3e9e3;margin:0 0 9px}.task-upload-step p{font-size:11px;color:#a8b5c4;line-height:1.7;margin:5px 0 12px}.task-workspace .task-quota{font-size:11px;color:#bac9ba;margin:8px 0 0}.task-failed{background:#19191b;border:1px solid #56483f;border-radius:18px;margin:20px auto;max-width:850px}.task-failed section{padding:28px}.task-failed h2{font-size:22px}.task-failed p{font-size:13px;line-height:1.9;color:#c6c3bf}.task-failure-icon{display:inline-grid;place-items:center;width:32px;height:32px;background:#513d30;color:#f6cc9e;border-radius:50%}.task-workspace:has(.work-history) .workspace{padding-top:90px}@media(max-width:650px){.reference-studio.task-workspace .workspace{padding-top:76px}.reference-studio.task-workspace .work-composer{width:auto;margin:14px 12px;max-width:calc(100% - 24px)}.task-workspace .studio-welcome{min-height:200px!important}.task-shortcuts{gap:7px}.task-shortcuts button{font-size:10px;padding:10px}.task-workspace .work-create-top{flex-direction:column;gap:3px}.task-upload-step{padding:12px}.task-failed section{padding:20px}}
.reference-studio.task-workspace.compact-workspace .workspace{padding-top:95px;min-height:100dvh}.compact-workspace .studio-welcome{min-height:calc(100dvh - 360px)!important;justify-content:center}.reference-studio.task-workspace .work-composer.compact-composer{width:820px;max-width:calc(100% - 40px);padding:0;border:0;background:none;box-shadow:none;margin:10px auto 0}.compact-controls{display:flex;align-items:center;gap:0;background:#15191ff2;border:1px solid #46515d;border-radius:25px;padding:5px;width:max-content;max-width:100%;margin:0 auto 16px;position:relative;z-index:30;font-size:11px;color:#bfc8d2}.compact-image-label{background:#f3f6f5;color:#121a1a;border-radius:20px;padding:8px 12px;font-weight:600}.compact-video{font-size:10px;padding:0 10px;color:#69737e}.compact-model select{background:transparent;color:inherit;border:0;font:inherit;max-width:235px;cursor:pointer;color-scheme:dark;padding:4px 0}.compact-model select:focus-visible{outline:2px solid #d3efbc;outline-offset:3px}.compact-model select:disabled{opacity:.6;cursor:wait}.compact-model{border-left:1px solid #39414b;padding:4px 10px;font-size:11px}.compact-settings{position:relative}.compact-settings summary{list-style:none;cursor:pointer;background:#333846;border-radius:17px;padding:8px 12px;font-size:11px}.compact-settings .work-parameters{position:absolute;bottom:calc(100% + 16px);right:0;background:#191d24;border:1px solid #3d4550;border-radius:17px;padding:20px;width:340px;box-shadow:0 15px 45px #0009;margin:0}.compact-settings .work-param-row{gap:10px}.compact-settings .work-param-row>span{flex-basis:100%}.compact-count{background:transparent;color:#d1d8e2;border:0;padding:6px 8px;font-size:11px;max-width:100px;color-scheme:dark}.reference-studio .compact-composer .inputbox{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:7px!important;border-radius:28px!important;box-shadow:inset 0 0 0 2px #ffffff05;background:#0e1218f5}.compact-composer .references{grid-column:1/-1}.reference-studio .compact-composer #prompt{grid-column:2;grid-row:2;min-height:36px;height:36px;max-height:110px;line-height:1.7;font-size:13px;padding:6px 0!important;resize:vertical}.reference-studio .compact-composer .compose-tools{grid-column:1;grid-row:2;display:block}.reference-studio .compact-composer .upload-button{height:36px;width:36px;padding:8px;border-radius:50%;position:relative}.compact-composer .upload-button small{position:absolute;right:-8px;bottom:-4px;font-size:8px;background:#303d48;border-radius:5px;padding:2px}.reference-studio .compact-composer .generate{grid-column:3;grid-row:2;min-height:39px;min-width:145px;font-size:11px;padding:9px 13px;border-radius:21px;gap:5px}.compact-composer .generate svg{display:none}.compact-composer .work-submit-row{padding:8px 12px 0;margin:0;border:0;display:block}.compact-composer .work-submit-row>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}.compact-composer #work-estimate{font-size:10px;font-weight:400;color:#a6b99f}.compact-composer .work-submit-row small{display:none}.compact-composer .task-quota{font-size:10px;margin:0;color:#929eac}.compact-composer .work-persistent-note{font-size:10px;margin:5px 12px;color:#818d9b}.compact-task-help{margin:6px 12px;font-size:10px;color:#9faebc}.compact-task-help summary{cursor:pointer;width:max-content}.compact-task-help p{line-height:1.8;font-size:11px}.compact-composer .work-progress{background:#141d21;padding:12px;border-radius:12px;margin:10px 0}.compact-settings .work-param-row button{min-height:30px}.compact-settings summary:focus-visible{outline:2px solid #d3efbc;outline-offset:2px}
@media(max-width:650px){.compact-workspace .studio-welcome{min-height:290px!important}.reference-studio.task-workspace .work-composer.compact-composer{max-width:calc(100% - 24px);width:auto;margin:10px 12px}.compact-controls{font-size:10px;flex-wrap:wrap;justify-content:center;gap:4px;border-radius:18px;padding:5px}.compact-video{display:none}.compact-model{font-size:10px;padding:3px 7px}.compact-settings summary{font-size:10px;padding:7px}.compact-count{font-size:10px;max-width:85px}.compact-settings .work-parameters{position:absolute;width:min(320px,calc(100vw - 32px));right:-85px;padding:16px}.reference-studio .compact-composer .inputbox{grid-template-columns:32px minmax(0,1fr) auto;gap:7px;padding:6px!important}.reference-studio .compact-composer #prompt{font-size:12px;min-height:38px;height:38px}.reference-studio .compact-composer .upload-button{height:32px;width:32px;padding:7px}.reference-studio .compact-composer .generate{min-width:100px;width:auto;min-height:38px;font-size:10px;max-width:125px;padding:8px}.compact-task-help{margin-top:8px}.compact-workspace .task-shortcuts{gap:6px}.compact-workspace .task-shortcuts button{font-size:10px;padding:9px 11px}}
