:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#30362e;background:#f6f4ef;font-synthesis:none;--ink:#30362e;--muted:#858a7f;--line:#e2e4db;--paper:#fffefb;--green:#354d3e}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #b9985f;outline-offset:3px}a{color:inherit;text-decoration:none}input,textarea,select{width:100%;padding:11px 13px;border:1px solid #dce0d3;border-radius:7px;background:#fffefb;color:var(--ink);outline:none;font-size:13px;line-height:1.7}input:focus,textarea:focus,select:focus{border-color:#899a7b;box-shadow:0 0 0 3px #52694b12}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#a2aa96}label{display:block;font-size:12px;font-weight:500;margin:22px 0 9px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;font-weight:600;letter-spacing:.5px}h2{font-size:17px;font-weight:600}p{line-height:1.85}small{font-size:9px;font-weight:500;letter-spacing:2px}[hidden]{display:none!important}.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:600;letter-spacing:1px}.brand>span:last-child{display:flex;flex-direction:column;gap:5px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border-radius:10px;background:var(--ink);color:#eed29b;font-family:SimSun,serif;font-size:26px}.eyebrow{font-size:10px;letter-spacing:2px;color:#929a84;display:block;margin-bottom:14px;font-weight:500}.muted{color:var(--muted);font-size:13px}.hint{font-size:11px;line-height:1.8;color:#949b88;margin:14px 0 0}.fineprint{font-size:11px;color:#919885;line-height:1.8}.primary,.secondary{min-height:39px;padding:10px 17px;font-size:12px;border-radius:6px;font-weight:500;white-space:nowrap;transition:background .15s}.primary{background:var(--green);color:#fffef8}.primary:hover:not(:disabled){background:#43614a}.secondary{border:1px solid #dce0d3;background:#fffefb}.secondary:hover:not(:disabled){background:#edf0e5}.full{width:100%;margin-top:23px;display:flex;justify-content:center;gap:16px;align-items:center;min-height:43px}.icon-button{font-size:22px;width:30px;height:30px;display:grid;place-items:center;border-radius:5px;color:#7c8871}.icon-button:hover{background:#e5e9db}.quiet{display:flex;align-items:center;gap:11px;color:#808a74;width:100%;padding:11px 0;font-size:16px;text-align:left}.quiet span{font-size:12px}.text-button{color:#607b51;font-size:12px;padding:5px 0;display:inline-block;white-space:nowrap}.text-button:hover{text-decoration:underline}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:50;max-width:min(620px,90vw);background:#34452e;color:#fff;padding:14px 22px;border-radius:9px;font-size:13px;box-shadow:0 8px 35px #0002;line-height:1.7}.toast.error{background:#7a4534}.login-view{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{padding:55px 11%;background:#ebece2;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}.login-story:after{content:"";width:420px;height:420px;border:1px solid #d8ddcc;border-radius:50%;position:absolute;right:-260px;top:32%;box-shadow:0 0 0 55px #dde2d340,0 0 0 110px #dde2d330;pointer-events:none}.login-copy{padding:70px 0;z-index:1}.login-copy h1{font-family:SimSun,serif;font-size:clamp(35px,3.5vw,55px);font-weight:400;line-height:1.5;letter-spacing:1px}.login-copy p{color:#858e77;font-size:14px;line-height:2.1;margin-top:28px}.film-strip{margin-top:48px;padding-top:22px;border-top:1px solid #d7dccb;display:flex;gap:28px;font-size:10px;color:#818b74;letter-spacing:1px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:45px}.login-form-wrap form{width:340px;max-width:100%}.login-form-wrap h2{font-size:26px;margin-bottom:15px}.login-form-wrap .fineprint{margin-top:22px;text-align:center}.login-form-wrap label{margin-top:35px}.studio{display:flex;min-height:100vh}.sidebar{width:228px;flex-shrink:0;background:#eeefe7;border-right:1px solid var(--line);padding:30px 23px 20px;display:flex;flex-direction:column;height:100vh;position:sticky;top:0}.workspace-label{font-size:10px;color:#849075;display:flex;align-items:center;gap:6px;margin-top:26px}.team-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#7f9973}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#969f88;letter-spacing:1px;margin:30px 0 10px;min-height:20px}.tool-nav{display:flex;flex-direction:column;gap:6px;margin:0 -9px}.tool-nav button{display:flex;align-items:center;gap:13px;padding:13px 15px;text-align:left;font-size:13px;color:#818c73;border-radius:7px}.tool-nav button>span{font-size:19px;line-height:1}.tool-nav button.active{background:#dfe5d4;color:#3c5332;font-weight:600}.tool-nav button:hover{background:#e4e8db}.project-list{overflow:auto;flex:1;margin:0 -9px;padding:0 2px}.project-item{display:flex;align-items:flex-start;gap:9px;width:100%;text-align:left;padding:10px;border-radius:7px;font-size:12px;color:#859177;margin-bottom:4px}.project-item:before{content:"▱";color:#9aa68b;font-size:18px}.project-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:23px}.project-item:hover{background:#e4e8d9}.sidebar-bottom{margin-top:24px;padding-top:14px;border-top:1px solid #dce0d2}.sidebar-footnote{margin-top:22px;font-size:10px;color:#a0aa91}.main{flex:1;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--line);gap:16px}.breadcrumb{font-size:11px;color:#9ca38f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.breadcrumb span{padding:0 15px;color:#c2cbb4}.breadcrumb strong{color:#728163;font-weight:500}.shared-label{font-size:10px;color:#8e9c7c;display:flex;align-items:center;gap:7px}.workspace{padding:35px 40px 45px;max-width:1650px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:18px}.page-heading h1{font-size:28px;margin-bottom:10px}.page-heading .eyebrow{font-size:9px;letter-spacing:2px;margin-bottom:12px}.page-heading p{margin-bottom:0;font-size:12px}.project-tag{font-size:10px;color:#8c9b79;border:1px solid #dfe5d4;padding:7px 11px;border-radius:20px;white-space:nowrap}.notice{font-size:12px;background:#f3ead7;color:#8f7139;border:1px solid #e9dcbf;padding:12px 16px;border-radius:7px;margin-bottom:22px;line-height:1.8}.tool-layout{display:grid;grid-template-columns:minmax(290px,.85fr) minmax(330px,1.2fr);gap:24px;align-items:start}.card{background:var(--paper);border:1px solid #dfe3d5;border-radius:10px;overflow:hidden;box-shadow:0 6px 18px #334d1a03}.tool-input{padding:25px}.section-heading h2{margin-bottom:0;font-size:15px}.preset-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}.preset-row button{font-size:10px;border:1px solid #dfe5d5;border-radius:5px;padding:6px 9px;color:#859771}.preset-row button:hover{background:#eff3e5}.optional{color:#a3ad96;font-weight:400;font-size:10px;margin-left:6px}.editor-toolbar{padding:17px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0e6;font-size:11px;color:#8b9a79;gap:15px;min-height:55px}.editor-toolbar>span:first-child{color:#6a8056}.output-empty{min-height:510px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px;background:radial-gradient(ellipse at center,#f1f4e9 0%,#fffefb 65%)}.output-empty>span:not(.spinner){font-size:38px;color:#b3c29d;margin-bottom:26px;font-weight:300}.output-empty h2{font-size:16px;font-weight:400;color:#8b9b78;margin:0 0 12px}.output-empty p{font-size:11px;color:#a0ae8d;line-height:2}.script-editor{display:block;min-height:510px;height:calc(100vh - 350px);border:0;box-shadow:none!important;border-radius:0;padding:27px 30px;resize:vertical;font-size:14px;line-height:2;color:#485c38}.editor-footer{padding:14px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0e6;font-size:10px;color:#a5b196;gap:12px}.inline-actions{display:flex;gap:14px}.inline-actions .text-button{font-size:11px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.two-fields select{font-size:12px}.image-empty{min-height:560px}.image-result img{display:block;width:100%;height:auto;max-height:620px;object-fit:contain;background:#ecefe4}.image-result .editor-footer{min-height:56px}.spinner{width:25px;height:25px;border:2px solid #d2dbc3;border-top-color:#5e7b45;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:25px}@keyframes spin{to{transform:rotate(360deg)}}.library-toolbar{display:flex;align-items:center;justify-content:space-between;margin:20px 0 25px;gap:20px}.library-toolbar select{width:220px}.filter-tabs{display:flex;background:#eaeedf;border-radius:7px;padding:4px;gap:3px}.filter-tabs button{font-size:12px;padding:8px 21px;border-radius:5px;color:#8f9e7a}.filter-tabs button.active{background:#fffefb;color:#576f42;box-shadow:0 1px 4px #3044150b}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.asset-card{border:1px solid #dfe4d4;background:var(--paper);border-radius:9px;overflow:hidden;text-align:left;padding:0;transition:box-shadow .15s,transform .15s}.asset-card:hover{box-shadow:0 6px 22px #465c1e12;transform:translateY(-2px)}.asset-card>img{display:block;width:100%;height:205px;object-fit:contain;background:#e9eddf}.text-preview{height:205px;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-family:SimSun,serif;font-size:13px;line-height:1.9;padding:22px;color:#7e9168;background:#f1f3e9;mask-image:linear-gradient(#000 75%,transparent 100%)}.asset-card-body{padding:17px 18px}.asset-card-body h3{font-size:12px;font-weight:500;color:#607849;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0 0 10px}.asset-card-body p{font-size:10px;color:#98a684;margin:0 0 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-card-body small{font-size:9px;letter-spacing:0;color:#b0bba0}.gallery-empty{grid-column:1/-1;border:1px dashed #d4ddc5;border-radius:9px;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:35px;text-align:center;background:#f0f2e7}.gallery-empty h3{font-size:15px;font-weight:400;color:#8d9e78}.gallery-empty p{font-size:12px;color:#a2b18e}.load-more{display:block;margin:28px auto 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{width:460px;max-width:calc(100vw - 40px);border:1px solid #dfe5d3;border-radius:12px;padding:28px;background:#fafbf5;color:var(--ink);box-shadow:0 25px 100px #1b251c30}dialog::backdrop{background:#202b2260;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.dialog-heading h2{margin:0}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.result-dialog{width:850px}.result-text{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:1.9;font-size:13px;background:#fffefb;border:1px solid var(--line);padding:24px;max-height:53vh;overflow:auto;user-select:text}.asset-preview{display:block;max-width:100%;max-height:53vh;object-fit:contain;margin:auto}.asset-prompt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto;margin-top:12px;font-size:12px}.asset-project-row{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.asset-project-row label{margin:0;white-space:nowrap;font-size:11px}.asset-project-row select{flex:1}.asset-project-row .secondary{flex-shrink:0}.connection-info{font-size:12px;white-space:pre-line;background:#e9efdf;padding:14px;border-radius:6px;margin-bottom:20px;line-height:2;overflow-wrap:anywhere}details{font-size:12px;color:#8b9e76;margin-top:18px}summary{cursor:pointer}code{font-size:11px;background:#e9ece2;padding:2px 4px;border-radius:3px}
@media(min-width:1550px){.workspace{padding:40px 55px}.topbar{padding:0 55px}.tool-layout{gap:30px;grid-template-columns:430px minmax(0,1fr)}.library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.sidebar{width:190px;padding:26px 17px}.workspace{padding:26px 25px}.topbar{padding:0 25px}.tool-layout{grid-template-columns:minmax(240px,.9fr) minmax(260px,1fr);gap:17px}.tool-input{padding:19px}.editor-footer{flex-wrap:wrap}.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.script-editor{padding:22px}}
@media(max-width:800px){.studio{display:block}.sidebar{width:100%;height:auto;position:static;padding:18px 22px;display:block}.sidebar .brand{font-size:20px}.brand-mark{width:36px;height:36px;font-size:23px}.workspace-label{position:absolute;right:22px;top:25px;margin:0}.sidebar-heading{display:none}.tool-nav{flex-direction:row;gap:6px;margin:22px -5px 5px}.tool-nav button{justify-content:center;flex:1;padding:12px 10px;font-size:12px;gap:8px}.project-list{display:none}.sidebar-bottom{margin:10px 0 0;padding:8px 0 0;display:flex;gap:22px}.sidebar-bottom .quiet{width:auto;padding:4px 0}.sidebar-bottom .quiet span{font-size:10px}.sidebar-footnote{display:none}.sidebar #new-project{position:absolute;right:20px;top:145px}.sidebar .sidebar-heading:has(#new-project){display:block;height:0;min-height:0;margin:0}.sidebar .sidebar-heading:has(#new-project)>span{display:none}.topbar{height:56px;padding:0 22px}.breadcrumb{font-size:10px}.breadcrumb span{padding:0 9px}.shared-label{font-size:9px}.workspace{padding:25px 22px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:25px}.project-tag{font-size:9px}.tool-layout{grid-template-columns:1fr;gap:20px}.tool-input{padding:22px}.output-empty,.image-empty{min-height:300px}.script-editor{min-height:400px}.image-result img{height:auto;max-height:550px}.library-toolbar{gap:10px}.library-toolbar select{width:45%;font-size:11px}.filter-tabs button{font-size:11px;padding:8px 14px}.library-grid{gap:12px}.asset-card>img,.text-preview{height:170px}.asset-card-body{padding:13px}.login-view{grid-template-columns:1fr}.login-story{min-height:auto;padding:30px 30px 20px}.login-copy{padding:35px 0 10px}.login-copy h1{font-size:32px}.login-copy p,.film-strip,.login-story>.fineprint{display:none}.login-form-wrap{padding:36px 30px}.login-form-wrap h2{font-size:23px}.asset-project-row{flex-wrap:wrap}.asset-project-row select{min-width:140px}.dialog-actions{flex-wrap:wrap}}
@media(max-width:420px){.library-grid{grid-template-columns:1fr}.project-tag{display:none}.shared-label{display:none}.dialog-actions .primary,.dialog-actions .secondary{font-size:11px;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
