:root{font-family:Inter,"Segoe UI","Microsoft YaHei UI",sans-serif;color:#292d32;background:#f7f8fa;font-size:13px;--accent:#263b34;--line:#e9ebef;--muted:#9299a4;--paper:#fff}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.45;cursor:not-allowed}button,input,textarea,select,a,summary{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #7a9388;outline-offset:3px}input,textarea,select{outline:0;border:1px solid #e4e7ec;border-radius:8px;background:#fff;transition:border-color .15s}input:focus,textarea:focus,select:focus{border-color:#93a79e;box-shadow:0 0 0 3px #93a79e14}input{padding:11px 12px;width:100%;min-width:0}select{width:100%;height:40px;padding:0 10px;font-size:12px}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.app-header{height:76px;padding:0 max(28px,calc((100vw - 1256px)/2));background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:40px}.brand{display:flex;align-items:center;gap:10px}.brand strong{font-size:21px;font-weight:650;letter-spacing:-.6px}.brand-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eef2ee;color:#375244}.brand-icon svg{width:20px;height:20px}.brand>span:last-child{font-size:10px;color:#a2a8b0;border-left:1px solid #e5e8eb;padding-left:13px;margin-left:6px}.nav{display:flex;align-items:center;gap:4px}.nav-item{border-radius:7px;padding:9px 18px;font-size:12px;color:#8a919c;display:flex;align-items:center;gap:8px}.nav-item.active{background:#eef1ef;color:#33493e;font-weight:600}.count-badge{font-size:9px;background:#e5e9e6;border-radius:4px;padding:1px 5px;color:#829086}.header-actions{display:flex;gap:12px;align-items:center;margin-left:auto}.connection-button{display:flex;gap:7px;align-items:center;font-size:10px;color:#a3a9b1;padding:7px 0}.connection-dot{width:5px;height:5px;background:#b9bfc6;border-radius:50%}.connection-dot.connected{background:#6e947c}.connection-dot.failed{background:#c89365}.icon-button{width:30px;height:30px;display:grid;place-items:center;color:#939aa4;border-radius:6px;padding:5px}.icon-button:hover{background:#f2f4f6;color:#34463d}.icon-button svg{width:17px;height:17px}.main{max-width:1256px;margin:0 auto;padding:0 28px}.page-heading{display:flex;align-items:baseline;gap:17px;padding:31px 0 23px}.page-heading h1{font-size:22px;letter-spacing:-.5px;font-weight:600;margin:0}.page-heading>span{font-size:11px;color:#a2a8b1}.studio-layout{display:grid;grid-template-columns:350px minmax(0,1fr);gap:23px;align-items:start}.controls-panel,.canvas-panel{background:#fff;border:1px solid #e5e8ed;border-radius:13px}.controls-panel{padding:23px}.mode-tabs{display:flex;background:#f4f5f7;padding:4px;border-radius:8px;margin-bottom:25px}.mode-tab{width:50%;padding:9px 4px;border-radius:5px;font-size:11px;color:#979da7}.mode-tab.active{background:#fff;box-shadow:0 1px 4px #2531460a;color:#3c434d;font-weight:500}.field-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.field-heading label,.field-label{font-size:11px;color:#656d78;font-weight:500}.text-button{display:flex;align-items:center;gap:4px;font-size:10px;padding:0;color:#748b7f}.text-button svg{width:12px;height:12px}.muted{font-size:9px;color:#a7aeb7;font-weight:400}.prompt-wrap{border:1px solid #e4e7ec;border-radius:8px;overflow:hidden;background:#fdfefe}.prompt-wrap:focus-within{border-color:#93a79e;box-shadow:0 0 0 3px #93a79e14}.prompt-wrap textarea{display:block;width:100%;min-height:157px;resize:vertical;background:transparent;border:0;padding:12px;box-shadow:none;font-size:12px;line-height:1.95}.prompt-wrap textarea::placeholder{color:#afb5bd}.prompt-meta{display:flex;justify-content:space-between;padding:8px 12px 10px;font-size:8px;color:#b4bac2}.undo-button{font-size:10px;color:#6a8777;padding:9px 0 0}.refine-availability{font-size:9px;color:#a0a7b0;margin:8px 0 0;line-height:1.7}.divider{border-top:1px solid #edf0f3;margin:23px 0}.model-input{height:41px;font-size:12px}.field-help{font-size:9px;color:#a5adb7;margin:8px 0 21px;line-height:1.8}.ratio-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:21px}.ratio-button{height:61px;border:1px solid #e6e9ed;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#a6aeb7;transition:.15s}.ratio-button.active{color:#516d5b;border-color:#a3b4aa;background:#f2f6f3}.ratio-button strong{font-size:10px;font-weight:400}.ratio-shape{border:1px solid currentColor;border-radius:2px;display:block}.square{width:16px;height:16px}.landscape{width:21px;height:14px}.portrait{width:12px;height:18px}.ratio-button svg{width:16px;height:16px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-columns>div>.field-label{display:block;margin-bottom:9px}.stepper{height:40px;border:1px solid #e4e7ec;border-radius:8px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.stepper button{width:34px;height:100%;color:#a0a9b2;font-size:15px}.advanced{margin:21px 0}.advanced summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;font-size:10px;color:#9ba3ae}.advanced summary::-webkit-details-marker{display:none}.advanced summary svg{width:12px;height:12px}.advanced[open] summary{margin-bottom:17px}.advanced[open] summary svg{transform:rotate(180deg)}.generate-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:45px;border-radius:8px;background:var(--accent);color:#fff;font-size:12px;font-weight:500;transition:.15s}.generate-button:hover{background:#365146}.generate-button svg{width:15px;height:15px}.generate-button .arrow-icon{margin-left:auto;margin-right:9px}.generate-button>svg:first-child{margin-left:auto}.generation-note{text-align:center;font-size:8px;color:#b1b7bf;margin:12px 0 0}.canvas-panel{min-height:714px;display:flex;flex-direction:column;overflow:hidden}.canvas-toolbar{height:54px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f3;padding:0 22px}.canvas-toolbar h2{font-size:11px;font-weight:500;color:#7a8490;margin:0}.canvas-toolbar>span{font-size:9px;color:#abb2ba}.empty-state,.generating-state{flex:1;min-height:657px;padding:45px 25px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.empty-icon{display:grid;place-items:center;width:62px;height:62px;border:1px solid #e9edf0;background:#fafbfc;border-radius:17px;color:#b8c2c9;margin-bottom:23px}.empty-icon svg{width:25px;height:25px;stroke-width:1.2}.empty-state h2{font-size:16px;font-weight:400;color:#74808b;margin:0 0 11px}.empty-state p{font-size:10px;color:#aeb6c0;margin:0}.quick-prompts{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;justify-content:center}.quick-prompts button{border:1px solid #edf0f2;background:#fff;padding:7px 10px;border-radius:6px;font-size:9px;color:#9da8b2}.quick-prompts button:hover{background:#f6f8f7;border-color:#d4ded8;color:#677f71}.page-footer{display:flex;justify-content:space-between;font-size:8px;color:#b0b8c0;padding:20px 0 25px}.reference-section{margin-top:18px}.upload-zone{display:flex;flex-direction:column;align-items:center;gap:8px;padding:17px 6px;background:#fafbfc;border:1px dashed #dce3e6;border-radius:8px;cursor:pointer}.upload-zone.drag-over{background:#edf4ef;border-color:#9daf9f}.upload-zone svg{color:#9eafa5;width:20px;height:20px}.upload-zone strong{font-size:10px;font-weight:400;color:#8e9c95}.upload-zone>span{font-size:8px;color:#adb7b1}.reference-list{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.reference-thumb{height:61px;width:72px;border:1px solid #e8eced;border-radius:6px;position:relative}.reference-thumb img{width:100%;height:100%;object-fit:cover;border-radius:5px}.reference-thumb button{position:absolute;right:-5px;top:-5px;width:18px;height:18px;background:#fff;border:1px solid #e7ebed;border-radius:50%;padding:2px}.reference-thumb svg{width:11px;height:11px}.form-error{color:#ae5b45;background:#fff7f3;border:1px solid #f3e1d8;padding:10px 12px;border-radius:7px;font-size:11px;line-height:1.8;margin:14px 0;overflow-wrap:anywhere}.generating-state h2{font-size:17px;font-weight:400;color:#687e70;margin:23px 0 13px}.generating-state>p{font-size:10px;color:#a4adb5}.timer{font-family:Consolas,monospace;color:#7f9587;font-size:16px;letter-spacing:2px;margin-top:20px}.waiting-note{font-size:9px!important;margin-top:20px}.loading-ring{width:38px;height:38px;border:2px solid #eef2ef;border-top-color:#799482;border-radius:50%;animation:spin 1.3s linear infinite}.result-grid{padding:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-content:start;flex:1}.result-grid.single-result{grid-template-columns:minmax(0,1fr)}.result-card{background:#fff;border:1px solid #e8ecef;border-radius:9px;overflow:hidden}.result-image-button{display:block;width:100%;padding:0;background-color:#f6f7f8;background-image:linear-gradient(45deg,#eceff0 25%,transparent 25%),linear-gradient(-45deg,#eceff0 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eceff0 75%),linear-gradient(-45deg,transparent 75%,#eceff0 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0}.result-image-button img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain;max-height:600px}.single-result .result-image-button img{aspect-ratio:auto;min-height:240px;max-height:530px}.result-card-info{padding:13px}.result-card-prompt{font-size:10px;line-height:1.8;color:#7f8c97;margin:0 0 11px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.result-card-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:8px;color:#a6b0b7;margin-bottom:12px}.result-card-meta>span{padding:3px 5px;background:#f6f8f8;border-radius:3px}.result-card-actions{display:flex;gap:7px;align-items:center}.result-card-actions button,.result-card-actions a{display:flex;align-items:center;gap:5px;justify-content:center;padding:7px 8px;border:1px solid #e7ecee;border-radius:5px;font-size:9px;color:#8d9c94}.result-card-actions svg{width:12px;height:12px}.result-card-actions .download-action{margin-left:auto;background:#f0f4f1;border-color:#f0f4f1;color:#708878}.result-card-actions .delete-action{padding:7px}.gallery-view{min-height:600px}.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.gallery-toolbar>span{font-size:11px;color:#8d99a3}.gallery-search{display:flex;gap:8px;align-items:center;background:#fff;padding:9px 11px;border:1px solid #e5e9ed;border-radius:7px}.gallery-search svg{width:14px;height:14px;color:#a3b0b9}.gallery-search input{padding:0;border:0;width:170px;font-size:10px;background:transparent}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery-empty{text-align:center;min-height:430px;background:#fff;border:1px dashed #dfe6e9;border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}.gallery-empty>svg{width:30px;height:30px;color:#bac6cd}.gallery-empty h3{font-size:16px;font-weight:400;color:#82929c;margin:20px 0 12px}.gallery-empty p{font-size:11px;color:#acb6be;margin:0 0 22px}dialog{border:1px solid #e2e8eb;box-shadow:0 20px 100px #1d2c3930;border-radius:13px;padding:0;color:#38444c;max-height:90vh}dialog::backdrop{background:#24332f4d;backdrop-filter:blur(4px)}.settings-dialog{width:500px;padding:27px}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:19px;font-weight:500;margin:0}.settings-section{font-size:12px;font-weight:600;border-bottom:1px solid #edf0f2;padding-bottom:12px;margin:25px 0 18px}.settings-dialog .field-label{display:block;margin:15px 0 9px}.settings-dialog input{font-size:11px}.settings-dialog .field-help{margin:9px 0 15px}.secret-input{position:relative}.secret-input input{padding-right:40px}.secret-input>button{position:absolute;right:5px;top:5px}.settings-status{font-size:10px;line-height:1.9;color:#7b9482;overflow-wrap:anywhere;margin:17px 0}.settings-status.error{color:#b0715a}.settings-actions{display:flex;justify-content:space-between;gap:12px}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:11px;padding:11px 16px;border-radius:7px}.primary-button{color:#fff;background:var(--accent);border:1px solid var(--accent)}.secondary-button{border:1px solid #e0e7e7;background:#fff;color:#84958c}.primary-button svg,.secondary-button svg{width:14px;height:14px}.dialog-footnote{display:flex;align-items:center;justify-content:center;gap:4px;font-size:9px;color:#a3b0b7;margin:20px 0 0}.dialog-footnote svg{width:11px;height:11px}.image-dialog{width:850px;background:#f7f9f8}.image-dialog-bar{display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e6ecec;padding:12px 18px}.image-dialog-bar strong{font-size:12px;font-weight:500}.image-dialog>img{display:block;max-width:100%;width:auto;max-height:63vh;object-fit:contain;margin:0 auto}.preview-info{background:#fff;padding:18px 22px}.preview-info>p{font-size:11px;color:#85968d;line-height:1.9;margin:0 0 17px;overflow-wrap:anywhere}.preview-actions{display:flex;justify-content:flex-end;gap:9px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:min(90vw,600px);background:#34473d;color:#f4f7f5;border-radius:8px;box-shadow:0 7px 30px #1a30242a;padding:12px 19px;font-size:11px;line-height:1.8;z-index:20;overflow-wrap:anywhere}.auth-body{min-height:100vh;display:grid;place-items:center;padding:25px}.auth-card{width:min(100%,390px);background:#fff;border:1px solid #e5eaed;border-radius:14px;padding:33px}.auth-brand{font-size:19px;font-weight:600;letter-spacing:-.4px;display:flex;gap:9px;align-items:center;color:#354c3e}.auth-brand>span{font-size:25px;color:#738d7c}.auth-card h1{font-size:23px;font-weight:500;margin:30px 0 11px}.auth-card>p{font-size:11px;color:#a0a9b1;line-height:1.8;margin-bottom:27px}.auth-card label{font-size:11px;color:#818e98;display:block;margin:17px 0 9px}.auth-card input{font-size:12px;height:43px}.auth-card .advanced{margin:21px 0 0}.auth-submit{width:100%;justify-content:space-between;margin-top:26px;height:43px}.auth-card .auth-footer{text-align:center;font-size:9px;margin:25px 0 0;color:#b7bec4}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:1500px){.canvas-panel{min-height:740px}.empty-state,.generating-state{min-height:683px}}@media(max-width:1000px){.app-header{gap:22px}.brand>span:last-child{display:none}.studio-layout{grid-template-columns:315px minmax(0,1fr);gap:18px}.controls-panel{padding:21px}.main{padding:0 24px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.result-grid{grid-template-columns:1fr;padding:16px}}@media(max-width:720px){.app-header{height:65px;padding:0 18px;gap:16px}.brand strong{font-size:19px}.brand-icon{width:27px;height:27px}.brand{gap:7px}.nav{gap:0}.nav-item{padding:8px 11px;font-size:11px}.header-actions{gap:7px}.connection-button{display:none}.main{padding:0 16px}.page-heading{padding:25px 0 19px;gap:12px}.page-heading h1{font-size:20px}.page-heading>span{font-size:9px}.studio-layout{grid-template-columns:1fr;gap:18px}.controls-panel{padding:22px}.prompt-wrap textarea{min-height:145px}.canvas-panel{min-height:440px}.empty-state,.generating-state{min-height:385px;padding:40px 15px}.canvas-toolbar{padding:0 18px}.page-footer{font-size:7px;gap:12px}.gallery-grid{gap:10px}.gallery-toolbar{gap:10px}.gallery-search input{width:136px}.gallery-search{padding:9px}.result-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:10px}.result-card-actions{flex-wrap:wrap;gap:5px}.result-card-actions a,.result-card-actions button{font-size:8px;padding:6px}.result-card-info{padding:10px}.settings-dialog{width:calc(100% - 24px);padding:23px}.image-dialog{width:calc(100% - 20px)}.settings-actions{gap:8px}.settings-actions button{font-size:10px;padding:11px 13px}}@media(max-width:380px){.app-header{gap:11px;padding:0 14px}.nav-item{padding:8px 9px}.count-badge{display:none}.page-heading>span{font-size:8px}.header-actions{gap:2px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
