@font-face{font-family:system-local;src:local("Microsoft YaHei")}
:root{font-family:Inter,system-local,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#e6eae8;background:#0b0d0e;font-size:14px;line-height:1.5;letter-spacing:0;--green:#2ea88a;--line:#2b3033;--muted:#939e9a;--ink:#e6eae8;--surface:#17191b}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;letter-spacing:0}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible{outline:3px solid #67b5a2;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #a1cebf;outline-offset:0;border-color:var(--green)}a{color:inherit;text-decoration:none}button{color:inherit}svg{width:18px;height:18px;flex-shrink:0;stroke-width:1.7}h1,h2,h3,p{margin:0}h1{font-size:25px;line-height:1.35;font-weight:650}h2{font-size:17px;font-weight:600}h3{font-size:14px;font-weight:600}[hidden]{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.app-layout{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:216px;background:#14342e;color:#e5efea;padding:30px 18px 18px;z-index:30;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 12px;font-family:Inter,"Segoe UI",sans-serif;font-size:27px;font-weight:650;line-height:1.1}.brand-mark{display:flex;align-items:center;justify-content:center;width:34px;height:38px;color:#9bd5b5}.brand-mark svg{width:34px;height:34px;stroke-width:1.7}.brand small{display:block;font-size:10px;color:#a7c1b8;font-weight:400;margin-top:7px;letter-spacing:2px}.workspace-label{display:flex;gap:8px;align-items:center;font-size:11px;color:#9db6ad;margin:31px 14px 28px}.status-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#64b68c;display:inline-block}.main-nav{display:flex;flex-direction:column;gap:5px}.nav-label{display:block;margin:0 13px 9px;color:#79988c;font-size:10px}.nav-label.second{margin-top:27px}.nav-item{display:flex;align-items:center;gap:11px;border:0;background:none;border-radius:6px;padding:12px 13px;color:#b9ccc4;text-align:left;font-size:12px;min-height:43px}.nav-item:hover{background:#21443a}.nav-item.active{background:#2b5143;color:#fff}.nav-item.active svg{color:#a8d7b6}.nav-count{background:#77b795;color:#dfe9e5;margin-left:auto;border-radius:4px;min-width:18px;padding:1px 5px;text-align:center;font-size:10px}.sidebar-bottom{margin-top:auto;padding-top:30px}.local-badge{display:flex;gap:10px;margin:0 8px 21px;padding:15px 0;border-bottom:1px solid #2c4b40;color:#b0c4b9;font-size:11px}.local-badge svg{margin-top:1px;color:#84aa95}.local-badge span{display:block;font-size:10px;color:#7e9d8c;margin-top:4px}.account-strip{display:flex;align-items:center;gap:9px;margin:0 7px}.avatar{display:grid;place-items:center;width:31px;height:31px;background:#1e332a;color:#28543e;border-radius:7px;font-size:12px;flex-shrink:0}.account-text{min-width:0;flex:1}.account-text strong{display:block;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-text span{font-size:10px;color:#8da99b}.icon-button{width:31px;height:31px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid transparent;border-radius:5px;background:transparent;color:#7c8983;flex-shrink:0}.icon-button:hover{background:#edf2ef;color:var(--green)}.icon-button.danger:hover{color:#b54a3c;background:#fbece9}.logout:hover{background:#2b5143;color:#fff}.logout{color:#99b3a5}.main-shell{margin-left:216px;min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:71px;background:#17191b;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:12px}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:11px;color:#8a948e}.breadcrumb svg{width:13px;height:13px;color:#adb5af}.breadcrumb strong{font-weight:500;color:#3b4c43}.topbar-right{display:flex;align-items:center;gap:17px;font-size:11px;color:#6f7c74}.local-tag{display:flex;align-items:center;gap:7px}.topbar-divider{width:1px;height:15px;background:var(--line)}.mobile-menu{display:none}main{flex:1;padding:28px 32px 20px;max-width:1800px;width:100%;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.page-heading p{color:#89918d;margin-top:6px;font-size:12px}.page-heading .heading-mark{color:#bdc9bf;display:flex;align-items:center;gap:9px;font-size:11px}.heading-mark svg{width:15px;height:15px}.studio-grid{display:grid;grid-template-columns:minmax(320px,440px) minmax(300px,1fr);border:1px solid var(--line);background:#17191b;border-radius:8px;overflow:hidden;min-height:524px}.composer{padding:23px 24px;min-width:0;border-right:1px solid var(--line)}.segmented{display:flex;background:#f0f3f1;padding:4px;border-radius:6px;gap:4px}.segmented button{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;background:none;border:0;color:#7a857e;padding:9px 10px;font-size:12px;border-radius:4px;white-space:nowrap}.segmented button.selected{background:#17191b;color:#285a45;box-shadow:0 1px 4px #16392b0d;font-weight:600}.segmented svg{width:15px;height:15px}.field-head{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#63756a;margin:22px 0 9px}.field-head label{color:#364a3e;font-weight:500}.field-head .count{font-size:10px;color:#a0a9a2}textarea{width:100%;resize:vertical;min-height:137px;max-height:330px;background:#fafbfa;border:1px solid #e6eae7;border-radius:6px;padding:13px 14px;font-size:12px;line-height:1.8;color:#384a3e}textarea::placeholder,input::placeholder{color:#a3aca5}.prompt-presets{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.text-chip{background:transparent;border:1px solid #e6ebe7;padding:4px 8px;border-radius:4px;color:#7b877e;font-size:10px;display:flex;gap:4px;align-items:center}.text-chip:hover{border-color:#b2ccbc;color:#286147}.text-chip svg{height:11px;width:11px}.field-label{display:block;font-size:11px;font-weight:500;color:#405247;margin-bottom:9px}.field-label .optional{font-weight:400;color:#97a198;margin-left:7px;font-size:10px}.aspect-group{display:flex;gap:8px}.aspect-choice{flex:1;display:flex;gap:8px;align-items:center;justify-content:center;min-height:35px;border:1px solid #e3e9e4;background:#17191b;border-radius:5px;font-size:11px;color:#859087}.aspect-choice.selected{border-color:#69a889;background:#16241f;color:#2c674a}.aspect-icon{display:block;border:1.2px solid currentColor;border-radius:1px;width:13px;height:9px}.aspect-icon.portrait{width:8px;height:13px}.aspect-icon.square{width:11px;height:11px}.parameter-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:18px}.parameter-row.image-row{grid-template-columns:1fr}.form-field{margin-top:18px}.form-field:first-child{margin-top:0}.form-field input,.form-field select,.parameter-row select,.search-input{width:100%;min-width:0;min-height:36px;padding:8px 10px;background:#17191b;border:1px solid #2b3033;border-radius:5px;font-size:12px;color:#495d4e}.upload-area{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:47px;border:1px dashed #cddbd0;border-radius:5px;color:#7b9080;background:#fbfcfb;font-size:11px}.upload-area:hover,.upload-area.dragover{border-color:#66a381;background:#16241f}.upload-area svg{width:16px;height:16px}.reference-list{display:flex;gap:8px;margin-bottom:9px;flex-wrap:wrap}.reference-thumb{position:relative;width:53px;height:53px;border-radius:4px;border:1px solid #dce5df}.reference-thumb img{width:100%;height:100%;object-fit:cover;border-radius:3px}.reference-thumb button{position:absolute;right:-5px;top:-5px;width:18px;height:18px;border:1px solid #2b3033;background:white;border-radius:50%;display:grid;place-items:center;padding:2px}.reference-thumb svg{width:11px;height:11px}.provider-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px;font-size:10px;color:#8f9b91}.provider-line .provider-name{display:flex;gap:6px;align-items:center;min-width:0}.provider-line svg{width:13px;height:13px;color:#597761}.provider-line .readiness{font-size:10px;white-space:nowrap;color:#a77c40}.provider-line .readiness.ready{color:#3c8660}.primary-button,.secondary-button,.danger-button{border-radius:5px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px;font-size:12px;font-weight:500;border:1px solid transparent}.primary-button{color:#fff;background:#1c7960}.primary-button:hover{background:#14654f}.primary-button svg{width:15px;height:15px}.secondary-button{background:#17191b;border-color:#dfe6e1;color:#5c7061}.secondary-button:hover{border-color:#85ac96;background:#f9fbfa}.danger-button{background:#b34e43;color:white}.generate-button{width:100%;min-height:41px;justify-content:space-between;padding-left:16px}.generate-button .generate-label{display:flex;gap:8px;align-items:center}.generate-button kbd{font-size:10px;font-family:inherit;background:#17191b17;padding:2px 5px;border-radius:3px;font-weight:400}.preview-panel{padding:21px 23px 17px;display:flex;flex-direction:column;min-width:0;background:#fcfdfc}.preview-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:11px;font-weight:500;color:#5c7160}.preview-heading .preview-status{font-size:10px;color:#8b9b8e;font-weight:400;display:flex;align-items:center;gap:6px}.preview-canvas{position:relative;background:#f1f4f1;flex:1;min-height:310px;display:flex;align-items:center;justify-content:center;border-radius:5px;overflow:hidden;isolation:isolate}.preview-empty{text-align:center;max-width:240px;padding:28px 18px}.preview-empty .empty-icon{width:58px;height:58px;background:#e5ede6;display:grid;place-items:center;border-radius:8px;margin:0 auto 18px;color:#6f9478}.preview-empty .empty-icon svg{width:26px;height:26px;stroke-width:1.3}.preview-empty h3{font-size:13px;color:#667d6c;margin-bottom:7px;font-weight:500}.preview-empty p{font-size:11px;line-height:1.8;color:#99a69b}.preview-canvas>img,.preview-canvas>video{display:block;max-height:440px;max-width:100%;width:100%;height:100%;object-fit:contain;background:#edf0ed}.preview-canvas .state-icon.error{background:#f6e6df;color:#b57260}.preview-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:13px;min-height:31px}.preview-actions button{min-height:30px;padding:6px 10px;font-size:10px}.preview-actions svg{height:13px;width:13px}.preview-note{font-size:10px;color:#97a396;margin-right:auto;align-self:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress-track{height:4px;background:#dfe8e1;border-radius:2px;overflow:hidden;margin-top:18px}.progress-fill{height:100%;background:#74a886;width:40%}.progress-fill.indeterminate{animation:progress 1.5s ease-in-out infinite}@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(350%)}}.spin{animation:spin 1.5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:29px 0 16px}.section-heading h2{font-size:14px;display:flex;align-items:center;gap:9px}.section-heading .total{font-weight:400;font-size:10px;color:#94a196;background:#eaf0eb;padding:1px 6px;border-radius:3px}.section-heading a,.link-button{font-size:11px;color:#8a9a8d;border:0;background:none;padding:0;display:inline-flex;align-items:center;gap:5px}.section-heading a svg{width:12px;height:12px}.section-tools{display:flex;align-items:center;gap:14px}.filter-tabs{display:flex;gap:15px;font-size:11px}.filter-tabs button{border:0;background:none;color:#93a096;padding:4px 0;white-space:nowrap}.filter-tabs button.selected{color:#276d4c;font-weight:600}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.task-card{min-width:0;position:relative;overflow:hidden;border:1px solid var(--line);background:#17191b;border-radius:6px;transition:border-color .15s}.task-card:hover{border-color:#a7c7b3}.card-media{position:relative;width:100%;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;background:#eaf0ec;border:0;padding:0;overflow:hidden;border-radius:0;color:#779b84;cursor:pointer}.card-media>img,.card-media>video{width:100%;height:100%;object-fit:cover;display:block}.card-media>svg{width:27px;height:27px;stroke-width:1.2}.card-badge{position:absolute;left:9px;top:9px;background:#17191beb;color:#547363;padding:2px 6px;border-radius:3px;font-size:9px;display:inline-flex;gap:4px;align-items:center;max-width:calc(100% - 18px)}.card-badge svg{width:10px;height:10px}.card-badge.error{color:#a75d4c;background:#17191b1ed}.media-kind{position:absolute;right:9px;bottom:9px;background:#18372ccc;color:#fff;padding:2px 5px;border-radius:3px;font-size:9px}.card-body{padding:11px 12px 9px}.card-title{display:block;font-size:11px;color:#4b6051;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.7}.card-meta{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:9px;color:#9aa69d;margin-top:5px}.card-menu{position:absolute;right:7px;top:7px;background:#17191bf0;width:24px;height:24px;opacity:0}.task-card:hover .card-menu,.task-card:focus-within .card-menu{opacity:1}.empty-projects{min-height:120px;display:flex;align-items:center;justify-content:center;gap:13px;border:1px dashed #dce4dd;border-radius:6px;background:#17191b66;color:#b3c0b5}.empty-projects svg{width:25px;height:25px;stroke-width:1.3}.empty-projects strong{display:block;font-size:12px;color:#7e9382;font-weight:400}.empty-projects p{font-size:10px;margin-top:4px;color:#a2afa5}.app-footer{display:flex;align-items:center;gap:16px;justify-content:space-between;color:#a9b4ac;font-size:9px;padding:20px 32px 18px}.app-footer span:first-child{color:#809b86;font-weight:500;font-family:Inter,"Segoe UI",sans-serif}.app-footer span:nth-child(2){margin-left:auto}.content-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:21px}.search-wrap{position:relative;width:240px;max-width:100%}.search-wrap>svg{position:absolute;left:10px;top:10px;width:15px;height:15px;color:#9aa69b}.search-input{padding-left:33px}.task-list{border-top:1px solid var(--line)}.task-row{display:grid;grid-template-columns:82px minmax(0,1fr) 86px 96px;gap:17px;padding:18px 0;border-bottom:1px solid var(--line);align-items:center}.row-thumb{width:82px;height:62px;border-radius:4px;background:#e7ede8;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#89a18e;border:0}.row-thumb>img,.row-thumb>video{width:100%;height:100%;object-fit:cover}.task-row-title{font-size:12px;color:#3e5647;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}.task-row-meta{font-size:10px;color:#8e9f92;display:flex;gap:12px;flex-wrap:wrap}.row-actions{display:flex;justify-content:flex-end;gap:2px}.status-tag{font-size:10px;display:inline-flex;align-items:center;gap:5px;color:#4e9069}.status-tag.failed{color:#b3745b}.status-tag.running,.status-tag.queued{color:#a58951}.status-tag.cancelled{color:#8b9690}.status-tag svg{width:12px;height:12px}.settings-layout{max-width:920px}.settings-section{padding:25px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:210px minmax(0,1fr);gap:30px}.settings-section:first-of-type{padding-top:0;border-top:0}.settings-title{display:flex;align-items:center;gap:9px;font-size:14px;margin-bottom:9px}.settings-title svg{color:#628974}.settings-description{font-size:11px;line-height:1.8;color:#8c9d90;max-width:190px}.settings-fields{min-width:0}.settings-fields .form-field{margin-top:16px}.settings-fields .form-field:first-child{margin-top:0}.settings-fields .field-label{font-size:11px}.field-hint{display:block;font-size:10px;color:#a0ada2;margin-top:6px;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .form-field{margin-top:0}.settings-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:20px}.notice{padding:11px 13px;background:#f9f4e9;border:1px solid #ebe2cd;border-radius:5px;color:#9c8354;font-size:11px;line-height:1.8;display:flex;align-items:flex-start;gap:9px;margin-bottom:17px}.notice svg{width:14px;height:14px;margin-top:3px}.check-field{display:flex;align-items:flex-start;gap:8px;font-size:11px;color:#758c7c;margin-top:17px;line-height:1.6}.check-field input{accent-color:var(--green);margin:3px 0 0;flex-shrink:0}.notice.success{background:#eef7f1;border-color:#d8e9df;color:#5e8f70}.member-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.member-table th{font-size:10px;color:#92a094;font-weight:400;padding:11px 14px;border-bottom:1px solid var(--line);background:#f0f4f1}.member-table td{padding:17px 14px;border-bottom:1px solid var(--line)}.member-identity{display:flex;align-items:center;gap:10px}.member-identity strong{display:block;font-size:12px;font-weight:500}.member-identity small{font-size:10px;color:#95a397}.member-role{font-size:10px;padding:3px 7px;border:1px solid #dce7df;border-radius:4px;color:#6a8b73}.member-table .button-group{display:flex;align-items:center;gap:8px;justify-content:flex-end}.switch{width:30px;height:18px;border-radius:12px;background:#b9c3bc;border:0;padding:2px;position:relative;transition:background .15s}.switch:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;background:#17191b;border-radius:50%;transition:transform .15s}.switch.on{background:#4c9371}.switch.on:after{transform:translateX(12px)}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:28px;background:#f2f6f2}.auth-panel{width:385px;max-width:100%;padding:34px 32px 29px;background:#17191b;border:1px solid #dfe7df;border-radius:8px}.auth-brand{display:flex;align-items:center;gap:9px;color:#28563e;font-family:Inter,"Segoe UI",sans-serif;font-size:25px;font-weight:600;margin-bottom:30px}.auth-brand svg{width:28px;height:28px}.auth-eyebrow{color:#8aa190;font-size:10px;margin-bottom:6px}.auth-panel h1{font-size:22px;margin-bottom:8px}.auth-panel .intro{font-size:11px;color:#8d9e90;margin-bottom:26px;line-height:1.8}.auth-panel .form-field{margin-top:17px}.auth-panel input{min-height:40px}.auth-panel .primary-button{width:100%;margin-top:24px;min-height:41px}.form-error{font-size:11px;color:#b75e4c;min-height:17px;margin-top:13px;overflow-wrap:anywhere}.auth-foot{font-size:10px;color:#9ba99e;text-align:center;margin-top:22px}.toast-stack{position:fixed;right:25px;bottom:25px;z-index:200;display:flex;flex-direction:column;gap:10px;max-width:calc(100vw - 50px)}.toast{display:flex;align-items:center;gap:9px;border:1px solid #d8e6dc;background:#17191b;box-shadow:0 6px 30px #17382915;border-radius:6px;padding:13px 18px;color:#477455;font-size:12px;animation:appear .2s ease}.toast.error{color:#ab644f;border-color:#eddbd3}.toast svg{height:16px;width:16px}@keyframes appear{from{transform:translateY(5px);opacity:0}to{transform:translateY(0);opacity:1}}dialog{border:1px solid #d9e4dc;border-radius:8px;padding:0;max-width:calc(100vw - 32px);width:460px;color:#374e40;box-shadow:0 20px 80px #0a2b2233}dialog::backdrop{background:#132d2466;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:21px 24px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:15px}.dialog-body{padding:23px 24px;max-height:70vh;overflow:auto}.dialog-body>p{font-size:12px;color:#819385;line-height:1.9;overflow-wrap:anywhere}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid var(--line);background:#fafcfb}.detail-prompt{white-space:pre-wrap;font-size:12px;line-height:1.9;max-height:180px;overflow:auto;margin:18px 0;color:#68816e;overflow-wrap:anywhere}.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:11px;color:#5f7967}.detail-meta span{color:#98a79b;display:block;font-size:10px;margin-bottom:4px}.detail-media{max-height:350px;display:block;width:100%;object-fit:contain;background:#eef2ee;border-radius:4px}.file-drop-hint{font-size:10px;color:#9aab9c;margin-top:7px}.space-summary{display:flex;gap:14px;font-size:11px;color:#8ea093}.account-info{display:grid;grid-template-columns:130px 1fr;gap:12px;font-size:12px;padding-bottom:24px}.account-info dt{color:#92a396}.account-info dd{margin:0}.empty-full{min-height:280px}.button-group{display:flex;gap:8px;align-items:center}
@media(min-width:1500px){.studio-grid{grid-template-columns:470px minmax(300px,1fr);min-height:567px}.preview-canvas{min-height:350px}.composer{padding:26px 28px}.card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.sidebar{width:190px;padding-left:12px;padding-right:12px}.main-shell{margin-left:190px}main{padding:24px 24px 18px}.topbar{padding:0 24px}.studio-grid{grid-template-columns:minmax(285px,.96fr) minmax(260px,1fr)}.composer{padding:19px 18px}.preview-panel{padding:18px}.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.heading-mark{display:none!important}.parameter-row{gap:9px}.settings-section{grid-template-columns:175px 1fr;gap:20px}}
@media(max-width:850px){.sidebar{width:170px}.main-shell{margin-left:170px}.nav-item{font-size:11px;padding:11px 9px;gap:8px}.brand{font-size:24px;padding:0 8px}.brand small{font-size:9px}.workspace-label{margin-left:9px;font-size:10px}.studio-grid{grid-template-columns:1fr}.composer{border-right:0;border-bottom:1px solid var(--line)}.preview-canvas{min-height:310px;max-height:440px}.preview-panel{min-height:380px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-row{grid-template-columns:62px minmax(0,1fr) 72px;gap:11px}.row-thumb{width:62px;height:54px}.task-row>.status-tag{grid-column:2;grid-row:auto}.task-row .row-actions{grid-column:3;grid-row:1 / span 2}.task-row-meta{gap:7px}.settings-section{grid-template-columns:1fr;gap:18px}.settings-description{max-width:none}.member-table th,.member-table td{padding:12px 8px}.member-table th:nth-child(3),.member-table td:nth-child(3){display:none}.content-toolbar{align-items:flex-start;flex-wrap:wrap}.section-tools{gap:10px}.filter-tabs{gap:11px}.topbar-right{gap:9px}.app-footer{padding-left:24px;padding-right:24px}}
@media(max-width:600px){.sidebar{transform:translateX(-100%);width:216px;transition:transform .2s;box-shadow:10px 0 40px #12322320}.sidebar.open{transform:translateX(0)}.main-shell{margin-left:0}.topbar{height:58px;padding:0 16px}.mobile-menu{display:inline-flex}.breadcrumb{gap:7px}.breadcrumb>.mobile-menu svg{width:18px;height:18px}.topbar-right #top-user,.topbar-divider{display:none}main{padding:22px 16px 15px}.page-heading{margin-bottom:21px;gap:12px}h1{font-size:23px}.page-heading p{font-size:11px}.composer{padding:20px 18px}.preview-panel{padding:18px;min-height:325px}.preview-canvas{min-height:250px}.preview-canvas>img,.preview-canvas>video{max-height:380px}.section-heading{align-items:flex-start;gap:13px;flex-wrap:wrap}.section-tools{width:100%;justify-content:space-between}.card-grid{gap:12px}.app-footer{padding:15px 16px}.app-footer span:nth-child(2){font-size:8px}.member-table td,.member-table th{padding:12px 5px}.member-table .button-group{gap:2px}.member-identity{gap:7px}.member-identity .avatar{width:26px;height:26px;font-size:10px}.member-role{font-size:9px;padding:2px 4px}.member-table td:last-child{width:75px}.form-grid{grid-template-columns:1fr;gap:16px}.settings-section{padding:23px 0}.content-toolbar>.filter-tabs{gap:12px;overflow-x:auto;width:100%}.search-wrap{width:100%}.dialog-body{padding:19px 20px}.dialog-head{padding:17px 20px}.dialog-actions{padding:14px 20px}.toast-stack{bottom:16px;right:16px;max-width:calc(100vw - 32px)}.page-heading .primary-button{padding:8px 10px;font-size:11px}.space-summary{font-size:10px;gap:8px}.studio-grid{border-radius:6px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.api-balance{margin-top:20px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.balance-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.balance-summary>div:first-child{min-width:0}.balance-summary .field-label{margin-bottom:6px}.balance-summary strong{font-size:20px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.balance-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.balance-detail{display:block;min-height:18px;margin-top:8px;line-height:1.7;overflow-wrap:anywhere}
.task-card[data-action="select"]{cursor:pointer}.prompt-heading{font-size:12px;margin-top:18px;color:var(--ink)}.detail-prompt.full-prompt{max-height:none;overflow:visible;margin-top:8px;user-select:text}.dialog-actions{flex-wrap:wrap}
.brand{font-size:23px;gap:10px;white-space:nowrap}.brand-logo{flex:0 0 36px;display:block}.auth-brand img{flex-shrink:0}.task-type-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:20px}.task-type-tabs button{display:flex;align-items:center;gap:8px;border:0;border-bottom:2px solid transparent;background:none;color:#7a8580;padding:12px 0;font-size:13px}.task-type-tabs button.selected{color:var(--green);border-bottom-color:var(--green)}.task-type-tabs svg{width:16px;height:16px}.task-type-tabs span{font-size:10px;background:#e8eeeb;min-width:22px;text-align:center;border-radius:4px;padding:1px 5px}.task-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;align-items:stretch}.work-card{min-width:0;border:1px solid #30363f;border-radius:8px;background:#16191e;color:#edf0f4;overflow:hidden;display:flex;flex-direction:column}.work-preview{display:block;width:100%;aspect-ratio:3/4;position:relative;overflow:hidden;padding:0;border:0;border-radius:0;background:#0e1116;color:#c5cdd4;flex:none}.work-preview>img,.work-preview>video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.work-format{position:absolute;left:10px;top:10px;background:#171c27b8;color:#fff;border-radius:4px;padding:3px 7px;font-size:10px;font-weight:600}.video-play{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.video-play svg{width:38px;height:38px;color:white;background:#11192180;border-radius:50%;padding:9px}.work-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#98a5b1;font-size:12px}.work-placeholder>svg{width:34px;height:34px;stroke-width:1.3}.work-content{padding:12px 12px 8px;flex:1;min-width:0}.work-prompt-row{display:grid;grid-template-columns:minmax(0,1fr) 27px;gap:6px;height:57px;align-items:start}.work-prompt{font-size:12px;line-height:19px;max-height:57px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;background:none;border:0;color:#e0e5eb;padding:0}.work-card .icon-button{width:26px;height:26px;min-width:26px;color:#9faab8;border-radius:4px}.work-card .icon-button:hover{background:#303845;color:white}.work-card .icon-button.danger:hover{color:#ffb5aa}.work-card .icon-button svg{width:13px;height:13px}.work-state{display:flex;gap:8px;justify-content:space-between;align-items:center;min-width:0;height:28px;margin-top:6px}.work-state .status-tag{background:#20423780;border:1px solid #2a5a49;border-radius:4px;padding:2px 5px;color:#6ce0b6;flex-shrink:0}.work-state .status-tag.failed{background:#49262280;border-color:#724036;color:#f1a191}.work-state .status-tag.running,.work-state .status-tag.queued{background:#493d2280;border-color:#655636;color:#e3c582}.work-state .status-tag.cancelled{background:#30343c;border-color:#515963;color:#bbc4cc}.work-model{font-size:9px;color:#8c99aa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-message{height:16px;color:#d49384;font-size:10px;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.work-footer{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:45px;padding:8px 10px;border-top:1px solid #30363f}.work-footer time{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#95a0af}.work-actions{display:flex;gap:3px;flex-shrink:0}.model-picker .field-head{margin-bottom:5px}.model-picker .field-label{margin:0}.model-search{display:block;width:100%;margin-bottom:8px}.model-picker select{width:100%;text-overflow:ellipsis}.model-description{font-size:11px;line-height:1.8;color:#73847b;margin-top:8px;overflow-wrap:anywhere;max-height:130px;overflow:auto}.custom-provider{font-size:11px;color:#7a8580;margin-top:14px}.custom-provider summary,.parameter-help summary{cursor:pointer}.custom-provider input{margin-top:8px}.model-parameters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}.model-parameters .form-field{margin:0;min-width:0}.model-param-text{min-height:72px;height:72px;font-size:11px}.required-mark{color:#ae5e49;margin-left:4px}.parameter-help{font-size:10px;line-height:1.6;color:#8c9d90;margin-top:5px}.parameter-help p{padding:6px 0;overflow-wrap:anywhere}.aspect-group{flex-wrap:wrap}.provider-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.provider-name svg{flex-shrink:0}
@media(max-width:850px){.brand{font-size:20px;gap:7px;padding:0 4px}.brand-logo{width:31px;height:31px;flex-basis:31px}.task-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:600px){.work-content{padding:10px 9px 6px}.work-prompt{font-size:11px}.work-model{max-width:70px}.work-footer{padding:7px}.work-actions{gap:0}.work-card .icon-button{width:24px;min-width:24px;height:26px}.task-type-tabs{gap:24px}.model-parameters{gap:12px}.work-state .status-tag{font-size:9px;gap:3px;padding:2px 4px}.work-state .status-tag svg{width:10px;height:10px}.work-format{left:7px;top:7px}}
.work-preview{aspect-ratio:9/16}.task-card[data-action="select"] .card-media{aspect-ratio:9/16}.task-card[data-action="select"] .card-media>img,.task-card[data-action="select"] .card-media>video{object-fit:contain;background:#0e1116}.work-detail{width:680px}.work-detail[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);overflow:hidden}.work-detail .dialog-head,.work-detail .dialog-actions{flex-shrink:0}.work-detail .dialog-body{min-height:0;max-height:none;overflow:auto}.work-detail .detail-media{height:auto;max-height:60vh;object-fit:contain;background:#0e1116}.work-detail .detail-media+.detail-meta{margin-top:20px}.work-detail .detail-meta>div{min-width:0;overflow-wrap:anywhere}
.studio-page{padding-top:16px}
.studio-heading{margin-bottom:12px}
.studio-heading h1{font-size:18px;line-height:1.4}
.studio-page .studio-grid{min-height:0}
.studio-page .composer{padding:16px}
.studio-page .segmented button{min-height:32px;padding:6px 10px}
.studio-page .studio-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.studio-modes button{min-width:0;justify-content:center;white-space:normal}
.source-video-file{display:grid;grid-template-columns:100px minmax(0,1fr) 28px;align-items:center;gap:10px;margin:8px 0}
.source-video-file video{display:block;width:100px;height:76px;object-fit:contain;background:#080a0b;border:1px solid #394047;border-radius:4px}
.source-video-file strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere}
.source-video-file span{display:block;font-size:11px;color:#9aa1a8;margin-top:4px}
.studio-page .revision-source-field{margin-top:12px}
.studio-page .field-hint{color:#a3aeb7}
.studio-page .preview-actions{flex-wrap:wrap}
.studio-page .field-head{margin:12px 0 6px}
.studio-page #prompt{min-height:96px;height:96px;padding:9px 11px;line-height:1.65}
.studio-page .prompt-presets{gap:6px;margin-top:6px}
.studio-parameters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:12px}
.studio-parameters .model-parameters,.studio-parameters .parameter-row{display:contents}
.studio-parameters .form-field{margin:0;min-width:0}
.studio-parameters .form-field:has(textarea){grid-column:1/-1}
.studio-page .field-label{margin-bottom:6px}
.studio-page .form-field select,.studio-page .parameter-row select{min-height:34px;padding:6px 9px}
.studio-page .composer>.form-field{margin-top:12px}
.studio-page .reference-list{gap:6px;margin-bottom:6px}
.studio-page .reference-list:empty{display:none}
.studio-page .upload-area{min-height:38px}
.studio-page .provider-line{margin:12px 0 8px}
.studio-page .generate-button{min-height:38px;padding-top:8px;padding-bottom:8px}
.studio-page .preview-panel{padding:16px;min-height:0}
.studio-page .preview-heading{margin-bottom:10px}
.studio-page .preview-canvas{min-height:240px;max-height:none}
.studio-page .preview-canvas:has(>img),.studio-page .preview-canvas:has(>video){min-height:360px}
.studio-page .preview-canvas>img,.studio-page .preview-canvas>video{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain}
.studio-page .preview-actions{margin-top:8px;min-height:30px}
.studio-page .section-heading{margin:18px 0 12px}
@media(max-width:850px){.studio-page .preview-panel{min-height:280px}.studio-page .preview-canvas{min-height:210px}}
@media(max-width:850px){.studio-page .preview-canvas:has(>img),.studio-page .preview-canvas:has(>video){min-height:clamp(280px,60dvh,600px)}}
@media(max-width:600px){.studio-page{padding-top:12px}.studio-page .composer,.studio-page .preview-panel{padding:14px}.studio-parameters{gap:10px}.studio-page .preview-panel{min-height:260px}.studio-page .preview-canvas{min-height:190px}}
.main-shell:has(>.studio-page){--line:#303438;--ink:#2b3033;--muted:#9aa1a8;--surface:#17191c;background:#101214;color:#2b3033}
.main-shell:has(>.studio-page) .topbar{background:#15171a}
.main-shell:has(>.studio-page) .breadcrumb,.main-shell:has(>.studio-page) .topbar-right{color:#a5abb2}
.main-shell:has(>.studio-page) .breadcrumb strong{color:#2b3033}
.main-shell:has(>.studio-page) .app-footer,.main-shell:has(>.studio-page) .app-footer span:first-child{color:#8c959d}
.studio-page{color-scheme:dark}
.studio-page .studio-grid,.studio-page .task-card{background:#191c1f;border-color:#303438}
.studio-page .segmented{background:#0f1113}
.studio-page .segmented button{color:#a5abb2}
.studio-page .segmented button.selected{background:#2a3034;color:#d7f0e6;box-shadow:none}
.studio-page .field-head,.studio-page .field-label,.studio-page .field-head label,.studio-page .check-field{color:#cbd1d7}
.studio-page .field-head .count,.studio-page .optional{color:#919aa3}
.studio-page textarea,.studio-page .form-field input,.studio-page .form-field select,.studio-page .parameter-row select{background:#101315;border-color:#394047;color:#2b3033}
.studio-page textarea::placeholder,.studio-page input::placeholder{color:#929ba4}
.studio-page .text-chip{border-color:#3b4249;color:#b5bec6}
.studio-page .text-chip:hover{background:#26352f;border-color:#70b79c;color:#d1eee1}
.studio-page .upload-area{background:#15191c;border-color:#aab4b1;color:#bac4cc}
.studio-page .upload-area:hover,.studio-page .upload-area.dragover{background:#1b3028;border-color:#70b79c;color:#d1eee1}
.studio-page .reference-thumb{border-color:#aab4b1}
.studio-page .reference-thumb button{background:#252b30;border-color:#aab4b1;color:#2b3033}
.studio-page .provider-line,.studio-page .preview-heading,.studio-page .preview-note,.studio-page .parameter-help{color:#a3aeb7}
.studio-page .provider-line svg,.studio-page .readiness.ready{color:#83c9ad}
.studio-page .preview-panel{background:#141719}
.studio-page .preview-canvas,.studio-page .preview-canvas>img,.studio-page .preview-canvas>video{background:#080a0b}
.studio-page .preview-empty .empty-icon{background:#202a27;color:#8bc3ab}
.studio-page .preview-empty h3{color:#d2d9df}
.studio-page .preview-empty p,.studio-page .preview-status{color:#a1adb6}
.studio-page .preview-empty .state-icon.error{background:#392320;color:#e3a194}
.studio-page .progress-track{background:#2b3430}
.studio-page .secondary-button{background:#22282d;border-color:#414b54;color:#d5dde4}
.studio-page .secondary-button:hover{background:#2c3832;border-color:#70b79c}
.studio-page .section-heading .total{background:#282e33;color:#b8c2cb}
.studio-page .section-heading a,.studio-page .filter-tabs button{color:#a9b4bd}
.studio-page .filter-tabs button.selected{color:#8bd4b4}
.studio-page .task-card:hover{border-color:#70b79c}
.studio-page .card-title{color:#d8dfe5}
.studio-page .card-meta{color:#a0acb6}
.provider-fields{margin-top:16px;min-width:0}
.provider-fields>.field-hint{line-height:1.8;font-size:11px}
.memory-layout{max-width:1000px}
.memory-account{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:20px}
.memory-account>span:first-child{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.memory-account svg{width:18px;height:18px;flex-shrink:0}
.memory-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.memory-fields .form-field{margin:0;min-width:0}
.memory-fields textarea{width:100%;resize:vertical;min-height:100px;line-height:1.65}
.memory-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.memory-archives{margin-top:28px;border-top:1px solid var(--line)}
.memory-archives .section-heading{flex-wrap:wrap;gap:12px}
.archive-list{margin-top:18px}
.archive-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.archive-row>div{min-width:0;display:grid;gap:6px}
.archive-row strong{font-size:13px;overflow-wrap:anywhere}
.archive-row span,.archive-state{font-size:12px;color:var(--muted)}
.archive-state{display:block;margin-top:5px}
.binding-form{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,1.4fr) minmax(120px,1fr) auto;gap:14px;align-items:end;padding:20px 0;border-bottom:1px solid var(--line)}
.binding-form .form-field{margin:0;min-width:0}
.binding-form .field-head{margin:0 0 6px;min-height:28px}
.binding-form .field-head .field-label{margin:0}
.binding-form .primary-button{min-height:40px}
.table-scroll{overflow-x:auto;max-width:100%;margin-top:16px}
.table-scroll table{min-width:560px}
.revision-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;border-bottom:1px solid #3b554a;padding-bottom:8px;color:#a3dfc4;font-size:12px}
.revision-banner .icon-button{color:inherit}
@media(max-width:850px){.binding-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.memory-fields,.binding-form{grid-template-columns:minmax(0,1fr)}.memory-account{align-items:flex-start;flex-direction:column}.memory-actions>*{flex:1 1 auto}.memory-archives .section-heading h2{font-size:16px}.memory-archives .section-heading>button{width:100%}}
.preference-import{padding:0 0 20px;border-bottom:1px solid var(--line)}
.preference-import h2{display:flex;align-items:center;gap:8px;font-size:14px}
.preference-import-controls{display:flex;gap:12px;align-items:end;margin-top:12px}
.preference-import-controls .form-field{margin:0;width:240px;max-width:100%}
.preference-import-controls button{min-height:36px;flex-shrink:0}
.preference-tabs{margin-top:10px;margin-bottom:14px}
.preference-paste{margin-top:12px;font-size:12px;color:#60776b}
.preference-paste summary{cursor:pointer}
.preference-paste .field-label{margin-top:12px}
.preference-paste textarea{min-height:110px;margin-bottom:8px}
.preference-paste>div{padding:10px 0;line-height:1.9;overflow-wrap:anywhere}
.preference-search{max-width:420px;margin-bottom:16px}
.preference-group{padding:20px 0 0}
.preference-group>h2{font-size:15px;padding:12px 0;border-bottom:2px solid #b9cec4;color:#285f4d}
.preference-field{padding:12px 0;border-bottom:1px solid var(--line);min-width:0}
.preference-field-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.preference-field-head label{font-size:12px;font-weight:600}
.preference-field-head span{margin-left:auto}
.memory-layout textarea[data-preference-field]{display:block;min-height:112px;max-height:none;resize:vertical;line-height:1.8;padding:10px 12px;font-size:12px;overflow:auto}
.preference-custom .section-heading{margin:16px 0 10px}
.custom-preference-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;min-width:0}
.custom-preference-head input[type="checkbox"]{width:16px;min-height:16px;flex-shrink:0;accent-color:var(--green)}
.custom-preference-head input[data-custom-key="label"]{flex:1;min-width:0}
.memory-layout textarea{max-height:520px}
.memory-layout #memory-status{min-height:20px;font-size:12px;color:var(--green)}
.preference-save-state{position:sticky;top:0;z-index:2;background:#0b0d0e;border-bottom:1px solid var(--line);padding:8px 0}
.preference-save-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:3;background:#0b0d0e;border-bottom:1px solid var(--line);padding:8px 0}
.preference-save-bar .preference-save-state{position:static;border:0;padding:0;margin:0}
.work-creator{display:flex;align-items:center;gap:5px;min-height:24px;color:#b8c6be;font-size:11px;overflow-wrap:anywhere}
.work-creator svg{width:12px;height:12px;flex-shrink:0}
.muse-api-form{display:flex;align-items:end;gap:12px;max-width:650px;padding:12px 0}
.muse-api-form .form-field{flex:1;min-width:0;margin:0}
.muse-api-form button{min-height:40px;flex-shrink:0}
.content-toolbar>select{max-width:160px}
.member-table td .switch{display:block;margin-top:8px}
@media(max-width:600px){.muse-api-form{flex-wrap:wrap}.muse-api-form .form-field{flex-basis:100%}.preference-save-bar .primary-button{flex-shrink:0}.member-table th:nth-child(3),.member-table td:nth-child(3){display:table-cell}}
@media(max-width:600px){.preference-import-controls{align-items:stretch;flex-direction:column}.preference-import-controls .form-field{width:100%}.preference-tabs{gap:20px}.preference-tabs button{font-size:12px}.memory-layout .memory-fields{gap:14px}}
