.framefour-workspace .size-select{min-width:0}@media (max-width:720px){.framefour-workspace .prompt-list article{grid-template-columns:26px 1fr 66px 76px 30px;gap:5px}.framefour-workspace .size-select{font-size:9px!important}}.framefour-workspace{--bg:#f7f7f5;--card:#fff;--ink:#171717;--muted:#777;--line:#e5e5e1;--accent:#ff5c35;--soft:#f1f1ed}.framefour-workspace *{box-sizing:border-box}.framefour-workspace{background:var(--bg);background:var(--bg);color:var(--ink);margin:0;font-family:Arial,Microsoft YaHei,sans-serif}.framefour-workspace button,.framefour-workspace input,.framefour-workspace textarea,.framefour-workspace select{font:inherit}.framefour-workspace button{cursor:pointer}.framefour-workspace header{border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:20;background:#f7f7f5e8;align-items:center;height:68px;padding:0 clamp(20px,4vw,64px);display:flex;position:sticky;top:0}.framefour-workspace .brand{letter-spacing:-1.2px;color:var(--ink);font-size:20px;font-weight:900;text-decoration:none}.framefour-workspace .brand span{color:var(--accent)}.framefour-workspace header>p{border-left:1px solid var(--line);color:var(--muted);margin-left:24px;padding-left:24px;font-size:12px}.framefour-workspace .api-toggle{border:1px solid var(--line);background:var(--card);border-radius:999px;align-items:center;gap:7px;margin-left:auto;padding:9px 13px;font-size:11px;font-weight:700;display:flex}.framefour-workspace .api-toggle i{background:#ccc;border-radius:50%;width:7px;height:7px}.framefour-workspace .api-toggle i.on{background:#7cc142}.framefour-workspace .api-toggle b{color:var(--accent)}.framefour-workspace .api-panel{border-bottom:1px solid var(--line);background:#f1f1ed;grid-template-columns:1fr 1fr;gap:14px;padding:20px clamp(20px,4vw,64px);display:grid}.framefour-workspace .api-panel article{border:1px solid var(--line);background:#fff;border-radius:12px;grid-template-columns:100px 1.5fr 1fr 1fr;align-items:end;gap:10px;padding:14px;display:grid}.framefour-workspace .api-panel article>div{align-self:center}.framefour-workspace .api-panel strong{font-size:12px;display:block}.framefour-workspace .api-panel article span{color:#aaa;font-size:9px}.framefour-workspace .api-panel article span.ready{color:#63951e}.framefour-workspace .api-panel label{text-transform:uppercase;color:var(--muted);font-size:9px;font-weight:700}.framefour-workspace .api-panel input{border:1px solid var(--line);border-radius:7px;outline:none;width:100%;margin-top:5px;padding:8px;font-size:11px;display:block}.framefour-workspace .api-panel input:focus{border-color:var(--accent)}.framefour-workspace .composer{grid-template-columns:minmax(280px,.72fr) minmax(480px,1.5fr);gap:40px;max-width:1500px;margin:auto;padding:44px clamp(20px,4vw,64px);display:grid}.framefour-workspace .section-head{align-items:flex-start;gap:12px;display:flex}.framefour-workspace .section-head>span{color:var(--accent);border:1px solid #ffbea9;border-radius:4px;padding:4px 5px;font:700 9px monospace}.framefour-workspace .section-head h2{letter-spacing:-.5px;margin:0;font-size:18px}.framefour-workspace .section-head p{color:var(--muted);margin:5px 0 0;font-size:11px}.framefour-workspace .dropzone{aspect-ratio:4/3;background:var(--card);cursor:pointer;border:1px dashed #c7c7c1;border-radius:14px;justify-content:center;align-items:center;min-height:330px;margin-top:18px;transition:all .2s;display:flex;position:relative;overflow:hidden}.framefour-workspace .dropzone:hover,.framefour-workspace .dropzone.dragging{border-color:var(--accent);background:#fff8f5}.framefour-workspace .dropzone input{opacity:0;z-index:2;cursor:pointer;position:absolute;inset:0}.framefour-workspace .dropzone>div{text-align:center;flex-direction:column;align-items:center;gap:9px;display:flex}.framefour-workspace .dropzone>div span{border:1px solid var(--line);background:var(--soft);border-radius:8px;padding:11px 14px;font:700 16px monospace}.framefour-workspace .dropzone strong{font-size:13px}.framefour-workspace .dropzone small{color:var(--muted);font-size:10px}.framefour-workspace .dropzone img{object-fit:contain;background:#ecece8;width:100%;height:100%;position:absolute;inset:0}.framefour-workspace .change{z-index:3;color:#fff;opacity:0;background:#171717;border-radius:99px;padding:8px 12px;font-size:10px;position:absolute;bottom:14px}.framefour-workspace .dropzone:hover .change{opacity:1}.framefour-workspace .prompt-head{align-items:flex-start;min-height:44px}.framefour-workspace .primary{background:var(--ink);color:#fff;border:0;border-radius:9px;margin-left:auto;padding:11px 16px;font-size:11px;font-weight:800}.framefour-workspace .primary:hover{background:var(--accent)}.framefour-workspace .primary:disabled{opacity:.45}.framefour-workspace .prompt-list{gap:10px;margin-top:18px;display:grid}.framefour-workspace .prompt-list article{background:var(--card);border:1px solid var(--line);border-radius:12px;grid-template-columns:32px 1fr 78px 32px;align-items:center;gap:10px;padding:10px 10px 10px 13px;transition:all .2s;display:grid}.framefour-workspace .prompt-list article:focus-within{border-color:#ffb59f;box-shadow:0 0 0 3px #ff5c350c}.framefour-workspace .prompt-list article>b{color:var(--accent);font:800 12px monospace}.framefour-workspace .prompt-list textarea{resize:none;background:0 0;border:0;outline:none;padding:5px;font-size:12px;line-height:1.5}.framefour-workspace .prompt-list select{background:var(--soft);color:#555;border:0;border-radius:7px;outline:none;padding:8px 5px;font-size:10px}.framefour-workspace .prompt-list button{background:var(--ink);color:#fff;border:0;border-radius:8px;width:32px;height:32px}.framefour-workspace .prompt-list button:hover{background:var(--accent)}.framefour-workspace .results{border-top:1px solid var(--line);background:#f1f1ed;padding:34px clamp(20px,4vw,64px) 56px}.framefour-workspace .results-head{justify-content:space-between;align-items:center;max-width:1500px;margin:0 auto 20px;display:flex}.framefour-workspace .save-all{border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 14px;font-size:11px;font-weight:800}.framefour-workspace .save-all:not(:disabled):hover{color:var(--accent);border-color:var(--accent)}.framefour-workspace .save-all:disabled{opacity:.4;cursor:not-allowed}.framefour-workspace .result-grid{grid-template-columns:repeat(4,1fr);gap:12px;max-width:1500px;margin:auto;display:grid}.framefour-workspace .result-grid>article{background:var(--card);border:1px solid var(--line);border-radius:13px;padding:10px}.framefour-workspace .result-meta{justify-content:space-between;align-items:center;height:28px;display:flex}.framefour-workspace .result-meta b{color:var(--accent);font:800 11px monospace}.framefour-workspace .result-meta span{color:var(--muted);font-size:9px}.framefour-workspace .canvas{aspect-ratio:1;background:var(--soft);border-radius:8px;justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.framefour-workspace .canvas img{object-fit:contain;width:100%;height:100%}.framefour-workspace .empty{color:#d3d3cd;font-size:25px}.framefour-workspace .loading{color:var(--muted);flex-direction:column;align-items:center;gap:9px;font-size:10px;display:flex}.framefour-workspace .loading i{border:2px solid #ddd;border-top-color:var(--accent);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.framefour-workspace .error{color:#a52d0e;background:#fff0eb;border-radius:6px;margin:0;padding:8px;font-size:10px;position:absolute;bottom:8px;left:8px;right:8px}.framefour-workspace .result-grid article>a{text-align:center;color:var(--ink);margin-top:9px;font-size:10px;font-weight:700;text-decoration:none;display:block}.framefour-workspace .result-grid article>a:hover{color:var(--accent)}.framefour-workspace footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;padding:24px clamp(20px,4vw,64px);font-size:10px;display:flex}.framefour-workspace footer span{color:var(--ink);font-weight:900}.framefour-workspace footer p{margin:0}@media (max-width:950px){.framefour-workspace .api-panel,.framefour-workspace .composer{grid-template-columns:1fr}.framefour-workspace .dropzone{max-width:520px}.framefour-workspace .result-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:600px){.framefour-workspace header>p{display:none}.framefour-workspace .api-panel article{grid-template-columns:1fr}.framefour-workspace .composer{padding-top:28px}.framefour-workspace .prompt-list article{grid-template-columns:26px 1fr 66px 30px;gap:5px}.framefour-workspace .result-grid{grid-template-columns:1fr}.framefour-workspace .results{padding-left:20px;padding-right:20px}.framefour-workspace .canvas{aspect-ratio:4/3}.framefour-workspace footer{flex-direction:column;gap:8px}}.framefour-workspace{border:1px solid #e0e5e0;border-radius:12px;overflow:hidden}.framefour-workspace header{height:auto;padding:18px 20px;position:static}.framefour-workspace .results{display:block}.framefour-workspace .module-note{margin:0;padding:12px 20px;font-size:12px;line-height:1.8}.framefour-workspace .image-api-form{background:#fff;border-radius:10px;padding:16px}.framefour-workspace .image-api-form fieldset{border:0;gap:10px;padding:0;display:grid}.framefour-workspace .image-api-form input[type=checkbox]{width:auto;margin-right:6px;display:inline}.framefour-workspace .results-head{justify-content:space-between;align-items:center;padding-bottom:20px;display:flex}.framefour-workspace .composer{grid-template-columns:minmax(200px,.7fr) minmax(340px,1.4fr);gap:20px;padding:28px 20px}.framefour-workspace .dropzone{min-height:250px}@media (max-width:1100px){.framefour-workspace .composer{grid-template-columns:1fr}.framefour-workspace .prompt-list article{grid-template-columns:26px minmax(100px,1fr) 80px 80px 30px}}.framefour-workspace.image-api-admin{border:1px solid var(--line);border-radius:14px;margin:24px 0;overflow:hidden}.framefour-workspace .image-api-heading{padding:22px 24px 12px}.framefour-workspace .image-api-heading h2{margin:0;font-size:18px}.framefour-workspace .image-api-heading p{color:var(--muted);margin:8px 0;font-size:12px}.framefour-workspace.image-api-admin .api-panel{border:0;padding:20px 24px}.framefour-workspace .image-model-admin{padding:24px}.image-model-admin>p{font-size:13px;line-height:1.7}.image-model-form{background:#fff;border:1px solid #e5e5e1;border-radius:10px;margin:14px 0;padding:16px}.image-model-form fieldset{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;display:grid}.image-model-form label,.image-model-admin>label{gap:6px;font-size:12px;display:grid}.image-model-form input:not([type=checkbox]),.image-model-form select,.image-model-admin>label select{border:1px solid #ddd;border-radius:7px;width:100%;min-width:0;padding:9px}.image-grant-form fieldset{border:0;gap:12px;padding:12px 0;display:grid}.image-grant-form label{align-items:center;gap:8px;font-size:13px;display:flex}.image-model-form input[type=checkbox],.image-grant-form input[type=checkbox]{width:auto;display:inline}.framefour-workspace .prompt-list article{grid-template-columns:26px minmax(120px,1fr) minmax(100px,170px) 76px 36px}.framefour-workspace .prompt-list button{width:36px}.framefour-workspace .image-history{background:#fff;margin:20px;padding:20px}.framefour-workspace .image-history table{width:100%;font-size:12px}.framefour-workspace .image-history th,.framefour-workspace .image-history td{text-align:left;vertical-align:top;border-bottom:1px solid #eee;padding:10px}@media (max-width:800px){.framefour-workspace .prompt-list article{grid-template-columns:24px 1fr 36px}.framefour-workspace .prompt-list article select{grid-row:2}.image-model-form fieldset{grid-template-columns:1fr}}.image-account-price-row{background:#fff;border:1px solid #e5e5e1;border-radius:9px;grid-template-columns:minmax(180px,1fr) minmax(160px,240px);gap:10px;padding:14px;display:grid}.image-account-price-row small{color:#777;grid-column:1/-1}.image-account-price-row label:has(input[inputmode=decimal]){display:grid}.image-account-price-row input[inputmode=decimal]{border:1px solid #ddd;border-radius:6px;width:100%;padding:9px}@media (max-width:700px){.image-account-price-row{grid-template-columns:1fr}}.framefour-workspace .composer,.framefour-workspace .results-head,.framefour-workspace .result-grid{max-width:none}@media (min-width:1101px){.framefour-workspace .composer{gap:28px;padding:28px 24px}.framefour-workspace .results{padding:28px 24px 36px}}.image-creation-switcher{background:#fff;border:1px solid #e0e5e0;border-radius:12px;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:18px;padding:14px 18px;display:flex}.image-creation-switcher button{color:#466355;background:#f0f4f2;border-radius:8px;padding:10px 18px;font-weight:600}.image-creation-switcher button[aria-pressed=true]{color:#fff;background:#17674e}.image-creation-switcher p{color:#7b838c;margin:0 0 0 8px;font-size:12px;line-height:1.7}.framefour-workspace.six-image-workspace .result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.framefour-workspace.six-image-workspace .dropzone{min-height:360px}@media (max-width:950px){.framefour-workspace.six-image-workspace .result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.framefour-workspace.six-image-workspace .dropzone{min-height:250px}}@media (max-width:600px){.framefour-workspace.six-image-workspace .result-grid{grid-template-columns:1fr}.image-creation-switcher p{flex-basis:100%;margin:2px 0 0}}.framefour-workspace .result-grid>article{min-width:0}.framefour-workspace .image-task-caption{overflow-wrap:anywhere;background:#f6f9f7;border:1px solid #dfe7e1;border-radius:8px;flex-direction:column;align-items:flex-start;gap:7px;margin-top:10px;padding:12px 10px;font-size:12px;line-height:1.7;display:flex}.framefour-workspace .image-task-caption strong{color:#315c47;font-size:12px}.framefour-workspace .image-task-caption code{white-space:normal;word-break:break-all;-webkit-user-select:all;user-select:all;color:#25392e;width:100%;font-size:12px;display:block}.framefour-workspace .image-task-caption small{color:#849187;word-break:break-all;display:block}.framefour-workspace .image-task-caption button{margin:0;padding:8px 10px}
