:root{--ink:#24251f;--muted:#777a70;--paper:#f7f7f1;--line:#e0e2d8;--accent:#d8f27c;--inset:20px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit;color:inherit}button,a,summary{cursor:pointer}button{border:0}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}[hidden]{display:none!important}header{height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;border-bottom:1px solid var(--line);background:#fcfcf8}.brand{display:flex;gap:14px;align-items:center;font-size:15px;font-weight:650;letter-spacing:-.3px}.brandmark{background:var(--ink);color:var(--paper);width:43px;height:43px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:24px;letter-spacing:-6px;padding-right:6px}.brandmark>span{color:var(--accent)}.brand-sub{display:block;font-size:9px;letter-spacing:3px;margin-top:6px;font-weight:500}.header-right{display:flex;gap:22px;align-items:center}.status{font-size:12px;display:flex;align-items:center;gap:8px}.status:before{content:'';width:7px;height:7px;border-radius:50%;background:#b2b4aa}.status.online:before{background:#60914c}.quiet{background:none;font-size:12px;color:var(--muted)}main{display:grid;grid-template-columns:360px minmax(0,1fr);max-width:1700px;margin:auto}.controls{padding:34px 26px;border-right:1px solid var(--line);background:#fcfcf8}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:600;color:var(--muted)}h1{font-size:27px;letter-spacing:-1.2px;line-height:1.15;margin:13px 0 16px;font-weight:500}.model-tag{display:inline-block;font-size:10px;border:1px solid var(--line);padding:7px 10px;border-radius:6px;margin-bottom:32px}label{display:block;font-weight:550;font-size:12px;margin-bottom:12px}label>span:not(.checker){font-size:10px;font-weight:400;color:var(--muted);margin-left:5px}textarea,input[type=password],input[type=number],select{width:100%;border:1px solid var(--line);border-radius:8px;background:white;padding:12px;outline:none}textarea:focus,input:focus,select:focus{border-color:#93a459;box-shadow:0 0 0 3px #d8f27c35}textarea{resize:vertical;min-height:140px;line-height:1.65;font-size:13px}textarea::placeholder{color:#a3a59a}.prompt-help,.ref-help{font-size:10px;line-height:1.65;color:var(--muted);margin:9px 0 26px}.label-row{display:flex;justify-content:space-between;align-items:baseline}.optional{font-size:9px;color:var(--muted)}.upload{position:relative;border:1px dashed #c6cbbb;border-radius:10px;padding:17px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;background:#f7f8f1;font-size:11px}.upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.upload .plus{font-size:25px;margin:0;color:#727d59}.upload>span:last-of-type{font-size:9px;margin:0}.refs{display:flex;gap:8px;flex-wrap:wrap}.ref{position:relative;width:60px;margin-top:3px}.ref img{width:60px;height:60px;object-fit:cover;border-radius:6px}.ref button{position:absolute;top:3px;right:3px;background:#24251f;color:white;border-radius:3px;font-size:10px;width:17px;height:17px;padding:0}.ref small{font-size:9px;color:var(--muted)}.settings-label{margin-top:28px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings label{font-size:10px;color:var(--muted);font-weight:400;margin-bottom:7px}select{font-size:10px;padding:10px 6px;height:38px}.check{display:flex;align-items:center;gap:6px;margin:18px 0}.check input{accent-color:#718f33}.check>span:not(.checker){font-size:11px;color:var(--ink);margin:0}.checker{margin-left:auto!important;width:17px;height:17px;border:1px solid var(--line);background:conic-gradient(#d5d9cb 25%,white 0 50%,#d5d9cb 0 75%,white 0) 0 0/8px 8px;border-radius:3px}details{border-top:1px solid var(--line);padding-top:16px;margin-top:21px}summary{font-size:11px;color:var(--muted);margin-bottom:16px}details input{font-size:12px}.primary{width:100%;display:flex;justify-content:space-between;align-items:center;border-radius:8px;background:var(--accent);padding:16px;font-size:12px;font-weight:650}.primary>span{font-size:20px;font-weight:400}.generate{margin-top:22px}.footnote{font-size:9px;line-height:1.8;color:#949789;margin:15px 0 0}.workspace{padding:34px 38px 60px;min-width:0}.workspace-title{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px;font-size:12px}.muted{font-size:11px;color:var(--muted)}.canvas{min-height:500px;aspect-ratio:1.42;background:#eeefe7;border:1px solid #e2e4d9;border-radius:16px;display:flex;align-items:center;justify-content:center;position:relative;padding:var(--inset);overflow:hidden}.canvas>img{max-width:100%;max-height:650px;width:auto;object-fit:contain;border-radius:0;box-shadow:0 12px 38px #252b2114}.canvas:has(>img:not([hidden])){background:conic-gradient(#e7e9df 25%,#eff0e9 0 50%,#e7e9df 0 75%,#eff0e9 0) 0 0/20px 20px}#empty{text-align:center;position:relative;padding:60px 0 40px}.orb{width:140px;height:140px;border-radius:50%;margin:0 auto 44px;background:radial-gradient(circle at 32% 25%,#faffda,#e2edae 40%,#9ead6b 75%,#697943);box-shadow:17px 24px 38px #677e4425,inset -8px -6px 16px #59653538}#empty h2{font-size:30px;line-height:1.2;font-weight:450;letter-spacing:-1px;margin:18px 0}#empty p{font-size:12px;line-height:1.8;color:var(--muted)}#job-state{text-align:center}.spinner{height:32px;width:32px;border:2px solid #d6daca;border-top-color:#667e32;border-radius:50%;margin:0 auto 24px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#job-state h2{font-size:23px;font-weight:500}#job-state p{font-size:12px;color:var(--muted)}.outline,.dark-button{padding:10px 13px;border:1px solid #cdd1c2;background:transparent;border-radius:7px;font-size:11px;white-space:nowrap}.dark-button{background:var(--ink);color:white;border-color:var(--ink)}#cancel{margin-top:18px}.result-tools{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-top:20px}.result-tools p{font-size:11px;line-height:1.6;max-width:400px;max-height:54px;overflow:auto;margin:7px 0}.tool-buttons{display:flex;gap:7px;flex-wrap:wrap}.gallery-heading{display:flex;justify-content:space-between;align-items:center;margin:37px 0 18px}.gallery-heading h2{font-size:14px;font-weight:550;letter-spacing:-.25px}.gallery-heading span{font-size:10px;color:var(--muted)}.gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.tile{padding:0;text-align:left;background:none;min-width:0}.tile img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.tile p{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:9px 0 5px}.tile small{color:var(--muted);font-size:9px}.tile.selected img{outline:2px solid #a2b66a;outline-offset:3px}#login{min-height:calc(100vh - 92px);display:grid;place-items:center}.login-card{width:min(420px,90vw);padding:44px}.login-card h1{font-size:41px;margin:20px 0}.login-card p{font-size:12px;color:var(--muted);margin-bottom:30px}.login-card input{margin-bottom:18px}#form-error,#login-error{color:#ac4336;font-size:11px;line-height:1.5}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#24251f;color:white;padding:12px 20px;border-radius:10px;font-size:12px;max-width:90vw;z-index:10}@media(min-width:1450px){main{grid-template-columns:400px minmax(0,1fr)}.controls{padding:40px}.workspace{padding:40px 48px}.canvas{aspect-ratio:1.6}}@media(max-width:1050px){header{padding:0 24px;height:78px}main{grid-template-columns:310px minmax(0,1fr)}.controls{padding:28px 20px}.workspace{padding:28px 22px}.canvas{min-height:440px;aspect-ratio:auto}.workspace-title{align-items:flex-start;gap:10px}.workspace-title .muted{max-width:130px;text-align:right}.result-tools{flex-direction:column;align-items:flex-start}.gallery{grid-template-columns:repeat(3,1fr)}#empty h2{font-size:25px}}@media(max-width:700px){header{height:76px;padding:0 20px}.brand{font-size:12px}.brandmark{height:36px;width:36px;font-size:21px}.header-right{gap:10px}.status{font-size:10px}.quiet{font-size:10px}main{display:flex;flex-direction:column}.controls{border-right:0;padding:26px 22px;border-bottom:1px solid var(--line)}.section-top{display:flex;justify-content:space-between;align-items:center}.model-tag{margin:0;font-size:9px}h1{font-size:25px}.controls form{margin-top:12px}.workspace{padding:25px 22px}.canvas{min-height:400px}.gallery{grid-template-columns:repeat(3,1fr);gap:10px}#empty{padding:30px 0}.orb{height:100px;width:100px;margin-bottom:30px}}@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
