:root{color:#18201e;font-synthesis:none;text-rendering:optimizelegibility;--ink:#18201e;--muted:#69736f;--line:#dcded8;--surface:#fffefa;--surface-soft:#f8f7f2;--accent:#176b52;--accent-dark:#0e503d;--accent-soft:#e5f1eb;--warning:#a2472d;--warning-soft:#fff0e9;--shadow:0 18px 48px #27322d14;background:#f4f2ed;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 0 0,#daebe28c,#0000 27rem),radial-gradient(circle at 100% 10%,#ecdec661,#0000 30rem),#f4f2ed;min-width:320px;min-height:100vh;margin:0}button,textarea,input{font:inherit}button{touch-action:manipulation}.page{width:min(100%,1440px);margin:0 auto;padding:44px clamp(20px,4vw,64px) 28px}.page-header{align-items:center;gap:20px;margin-bottom:28px;display:flex}.brand-mark{color:#fff;background:var(--accent);letter-spacing:-.04em;border-radius:18px;flex:none;place-items:center;width:58px;height:58px;font-size:18px;font-weight:800;display:grid;box-shadow:0 10px 26px #176b523d}.heading-group h1,.section-header h2,.result-body h2,.result-body h3,.confirmation-dialog h2{color:var(--ink);letter-spacing:-.025em;margin:0}.heading-group h1{font-size:clamp(28px,3vw,42px);line-height:1.1}.eyebrow{color:var(--accent);letter-spacing:.13em;text-transform:uppercase;margin:0 0 7px;font-size:12px;font-weight:800}.page-intro{max-width:760px;color:var(--muted);margin:9px 0 0;font-size:15px;line-height:1.65}.workspace{grid-template-columns:minmax(320px,420px) minmax(0,1fr);align-items:start;gap:22px;display:grid}.card{box-shadow:var(--shadow);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#fffefaf0;border:1px solid #dcded8d9;border-radius:24px;overflow:hidden}.section-header{border-bottom:1px solid var(--line);align-items:flex-start;gap:13px;padding:22px 24px 19px;display:flex}.section-header h2{font-size:18px}.section-description{color:var(--muted);margin:5px 0 0;font-size:13px;line-height:1.45}.step-badge{color:#fff;background:var(--accent);border-radius:10px;flex:none;place-items:center;width:32px;height:32px;font-size:11px;font-weight:800;display:grid}.step-badge-muted{color:var(--accent);background:var(--accent-soft)}.result-section-header{align-items:center}.result-section-header>div{flex:1}.api-chip,.watermark-chip,.dimension-chip{white-space:nowrap;border-radius:999px;align-items:center;font-size:11px;font-weight:700;display:inline-flex}.api-chip{color:var(--accent-dark);background:var(--accent-soft);gap:6px;padding:7px 10px}.api-chip:before{content:"";background:#28a375;border-radius:50%;width:6px;height:6px}.generation-form,.form-fields{margin:0}.form-fields,.option-fieldset{border:0;min-width:0;padding:0}.form-fields{gap:23px;padding:24px;display:grid}.form-fields:disabled{opacity:.66}.field-group{min-width:0}.field-label-row{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.field-label{color:var(--ink);margin:0 0 9px;font-size:14px;font-weight:750;display:block}.character-count,.field-help{color:var(--muted);font-size:12px}.prompt-input{resize:vertical;width:100%;min-height:132px;color:var(--ink);background:#fff;border:1px solid #cfd4cf;border-radius:13px;outline:none;padding:14px 15px;line-height:1.6;transition:border-color .16s,box-shadow .16s}.prompt-input::placeholder{color:#9aa29e}.prompt-input:hover{border-color:#abb8b2}.field-help{margin:8px 0 0;line-height:1.5}.field-error{min-height:18px;color:var(--warning);margin:4px 0 -18px;font-size:12px;font-weight:650}.style-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.choice-card{cursor:pointer;position:relative}.choice-card input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.style-choice{border:1px solid var(--line);color:#4f5955;background:var(--surface-soft);border-radius:10px;align-items:center;gap:7px;min-height:44px;padding:8px 9px;font-size:12px;transition:border-color .15s,background .15s,color .15s;display:flex}.choice-mark{color:#0000;background:#fff;border:1px solid #b7bfbb;border-radius:50%;flex:none;place-items:center;width:15px;height:15px;font-size:9px;display:grid}.style-choice:has(input:checked){border-color:var(--accent);color:var(--accent-dark);background:var(--accent-soft);font-weight:700}.style-choice input:checked+.choice-mark{border-color:var(--accent);color:#fff;background:var(--accent)}.ratio-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;display:grid}.ratio-choice{border:1px solid var(--line);color:#58625e;background:var(--surface-soft);text-align:center;border-radius:10px;place-items:center;gap:5px;min-height:84px;padding:9px 5px;transition:border-color .15s,background .15s;display:grid}.ratio-choice:has(input:checked){border-color:var(--accent);color:var(--accent-dark);background:var(--accent-soft)}.ratio-preview{width:min(30px, calc(30px * var(--ratio-width) / var(--ratio-height)));height:min(30px, calc(30px * var(--ratio-height) / var(--ratio-width)));border:1.5px solid;border-radius:3px;min-width:16px;min-height:16px;display:block}.ratio-copy{gap:1px;display:grid}.ratio-copy strong{font-size:11px}.ratio-copy small{color:var(--muted);letter-spacing:-.025em;font-size:8px}.button{cursor:pointer;border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:10px 16px;font-weight:750;transition:transform .15s,box-shadow .15s,background .15s;display:inline-flex}.button:hover:not(:disabled){transform:translateY(-1px)}.button:disabled{cursor:not-allowed;opacity:.62}.button-primary,.button-select{color:#fff;background:var(--accent);box-shadow:0 8px 18px #176b5229}.button-primary:hover:not(:disabled),.button-select:hover:not(:disabled){background:var(--accent-dark)}.button-secondary{border-color:var(--line);color:var(--ink);background:#fff}.button-secondary:hover:not(:disabled){background:var(--surface-soft);border-color:#b6bdb9}.button-danger{color:#fff;background:var(--warning)}.submit-button{width:100%;min-height:50px;font-size:15px}.icon{line-height:1}.form-note{color:var(--muted);align-items:flex-start;gap:8px;font-size:11px;line-height:1.5;display:flex}.form-note .icon{color:var(--accent);font-size:18px}.result-card{min-height:740px}.result-body{min-height:650px;padding:clamp(22px,3vw,34px)}.empty-state,.loading-state{text-align:center;align-content:center;place-items:center;min-height:580px;display:grid}.empty-art{width:180px;height:150px;margin-bottom:24px;position:relative}.empty-frame{background:linear-gradient(145deg, transparent 54%, #176b521a 55%), var(--accent-soft);border:1px solid #b9ccc3;border-radius:18px;width:104px;height:126px;display:block;position:absolute;box-shadow:0 14px 28px #2641371a}.empty-frame-one{top:9px;left:22px;transform:rotate(-8deg)}.empty-frame-two{top:8px;right:19px;transform:rotate(8deg)}.empty-spark{color:#c58a3c;font-size:34px;position:absolute;top:0;right:2px}.empty-copy h2{font-size:21px}.empty-copy p,.status-description{max-width:500px;color:var(--muted);margin:9px auto 0;font-size:14px;line-height:1.65}.boundary-list{color:#66706c;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:25px 0 0;padding:0;font-size:12px;list-style:none;display:flex}.boundary-list li{align-items:center;gap:5px;display:flex}.boundary-list .icon{color:var(--accent)}.progress-orbit{width:90px;height:90px;color:var(--accent);background:var(--accent-soft);border:1px solid #c9ded4;border-radius:50%;place-items:center;margin-bottom:28px;font-size:27px;animation:1.8s ease-in-out infinite breathe;display:grid;box-shadow:0 0 0 13px #e5f1eb73}@keyframes breathe{50%{transform:scale(1.06);box-shadow:0 0 0 20px #e5f1eb33}}.status-heading h2{font-size:23px}.progress-state,.candidate-state,.selected-state,.error-state{width:100%}.progress-state{background:var(--surface-soft);border:1px solid #dbe4df;border-radius:19px;max-width:620px;margin:70px auto 30px;padding:38px}.progress-copy{color:var(--muted);justify-content:space-between;gap:16px;margin:32px 0 9px;font-size:12px;display:flex}.progress-copy strong{color:var(--ink);font-size:13px}.progress-bar{background:#e2e6e3;border:0;border-radius:999px;width:100%;height:9px;overflow:hidden}.progress-bar::-webkit-progress-bar{background:#e2e6e3;border-radius:999px}.progress-bar::-webkit-progress-value{background:var(--accent);border-radius:999px}.progress-bar::-moz-progress-bar{background:var(--accent);border-radius:999px}.debug-details{border-top:1px solid var(--line);color:var(--muted);margin-top:24px;font-size:12px}.debug-details summary{cursor:pointer;width:fit-content;padding:15px 0 0;font-weight:650}.debug-list{grid-template-columns:auto minmax(0,1fr);gap:6px 12px;margin:12px 0 0;display:grid}.debug-list dt{font-weight:700}.debug-list dd{overflow-wrap:anywhere;margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.candidate-state>.status-heading{margin-bottom:22px}.candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.candidate-card{border:1px solid var(--line);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px #23302a0f}.candidate-media,.selected-preview{background:linear-gradient(45deg,#eff1ed 25%,#0000 25%) 0 0/22px 22px,linear-gradient(-45deg,#eff1ed 25%,#0000 25%) 0 11px/22px 22px,linear-gradient(45deg,#0000 75%,#eff1ed 75%) 11px -11px/22px 22px,linear-gradient(-45deg,#0000 75%,#eff1ed 75%) -11px 0/22px 22px,#f8f9f6;place-items:center;min-height:280px;display:grid;position:relative;overflow:hidden}.candidate-media{height:clamp(330px,42vw,530px)}.candidate-media img,.selected-preview img{object-fit:contain;width:100%;height:100%;display:block}.watermark-chip{color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#18201eb8;padding:6px 9px;position:absolute;top:12px;left:12px}.candidate-body{gap:15px;padding:16px;display:grid}.candidate-title-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.candidate-title-row h3{font-size:15px}.dimension-chip{color:var(--muted);background:var(--surface-soft);padding:5px 8px}.button-select{width:100%}.preview-error{color:var(--warning);margin:0;padding:20px;font-size:13px;font-weight:700}.success-banner{width:fit-content;color:var(--accent-dark);grid-template-rows:auto auto;grid-template-columns:40px minmax(0,auto);align-items:center;column-gap:11px;margin-bottom:22px;display:grid}.success-icon{color:#fff;background:var(--accent);border-radius:50%;grid-row:1/3;place-items:center;width:40px;height:40px;font-size:19px;font-weight:800;display:grid}.success-banner div{font-size:18px;font-weight:800}.success-banner small{color:var(--muted);font-size:12px}.selected-content{grid-template-columns:minmax(260px,1fr) minmax(260px,.9fr);align-items:center;gap:24px;display:grid}.selected-preview{border:1px solid var(--line);border-radius:18px;height:min(58vh,590px)}.design-details{min-width:0;padding:clamp(4px,2vw,20px)}.design-id-row{gap:9px;display:grid}.design-id{overflow-wrap:anywhere;border:1px solid var(--line);color:var(--ink);background:var(--surface-soft);-webkit-user-select:all;user-select:all;border-radius:11px;padding:15px;font-size:13px;display:block}.copy-feedback{min-height:20px;color:var(--accent-dark);margin:7px 0 2px;font-size:12px}.metadata-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0;display:grid}.metadata-grid>div{background:var(--surface-soft);border-radius:10px;padding:12px}.metadata-grid dt{color:var(--muted);font-size:10px}.metadata-grid dd{color:var(--ink);margin:4px 0 0;font-size:13px;font-weight:750}.reset-button{width:100%}.error-state{max-width:620px;margin:72px auto 30px}.error-alert{color:#6f2d1e;background:var(--warning-soft);border:1px solid #e6b6a8;border-radius:16px;grid-template-columns:44px minmax(0,1fr);gap:4px 14px;padding:24px;display:grid}.error-icon{color:#fff;background:var(--warning);border-radius:50%;grid-row:1/3;place-items:center;width:44px;height:44px;font-size:20px;font-weight:800;display:grid}.error-alert h2{font-size:19px}.error-alert p{margin:2px 0 0;font-size:14px;line-height:1.55}.error-actions{gap:10px;margin-top:15px;display:flex}.confirmation-dialog{width:min(92vw,460px);color:var(--ink);background:var(--surface);border:0;border-radius:20px;padding:28px;box-shadow:0 28px 90px #101b164d}.confirmation-dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1018158c}.dialog-icon{color:#fff;background:var(--warning);border-radius:50%;place-items:center;width:48px;height:48px;margin-bottom:17px;font-size:21px;font-weight:800;display:grid}.confirmation-dialog h2{font-size:22px}.confirmation-dialog p{color:var(--muted);margin:10px 0 24px;line-height:1.65}.dialog-actions{justify-content:flex-end;gap:10px;display:flex}.page-footer{color:#7a837f;flex-wrap:wrap;justify-content:center;gap:8px;padding:24px 8px 0;font-size:11px;display:flex}.footer-dot{color:#b3bab6}:focus-visible{outline-offset:3px;outline:3px solid #176b5259}.prompt-input:focus-visible{border-color:var(--accent);outline:none;box-shadow:0 0 0 4px #176b521c}.choice-card:has(input:focus-visible){border-color:var(--accent);outline:none;box-shadow:0 0 0 4px #176b521c}@media (width<=1100px){.candidate-media{height:390px}.selected-content{grid-template-columns:1fr}.selected-preview{height:min(55vh,520px)}}@media (width<=900px){.page{padding-top:28px}.workspace{grid-template-columns:1fr}.result-card{min-height:auto}.result-body{min-height:520px}.empty-state,.loading-state{min-height:470px}}@media (width<=620px){.page{padding:20px 12px}.page-header{align-items:flex-start;padding:0 7px}.brand-mark{border-radius:14px;width:46px;height:46px;font-size:15px}.page-intro{font-size:13px}.card{border-radius:19px}.section-header,.form-fields,.result-body{padding:19px}.api-chip{display:none}.style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ratio-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.candidate-grid{grid-template-columns:1fr}.candidate-media{height:min(120vw,520px)}.progress-state,.error-state{margin-top:30px;padding:24px}.error-state{padding:0}.error-actions,.dialog-actions{flex-direction:column-reverse}.error-actions .button,.dialog-actions .button{width:100%}.metadata-grid{grid-template-columns:1fr}.boundary-list{text-align:left;justify-content:start;display:grid}.confirmation-dialog{padding:23px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
