.image-studio{max-width:1060px}.image-studio-balance{background:var(--soft);border:1px solid var(--line);border-radius:14px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin:0 0 20px;padding:18px 22px;display:flex}.image-studio-balance p,.image-studio-form>p,.image-studio-results>p{margin:6px 0 0;font-size:.875rem;line-height:1.55}.image-studio .btn{padding:11px 17px}.image-studio>.panel{width:100%;min-width:0;max-width:none;margin:0 0 22px;padding:clamp(16px,3vw,32px)}.image-studio-form{gap:12px;display:grid}.image-studio-form h2,.image-studio-results-header h2{margin:0;font-size:1.45rem}.image-studio-form>label{font-size:.9rem;font-weight:600}.image-studio-form textarea{resize:vertical;width:100%;min-height:94px;padding:12px;font-size:1rem}.image-studio-options,.image-studio-colors{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:12px;display:grid}.image-studio-options label,.image-studio-colors label{border:1px solid var(--line);border-radius:9px;align-items:center;gap:12px;margin:0;padding:16px;font-size:.875rem;display:flex}.image-studio-options label{cursor:pointer;align-items:flex-start}.image-studio-options label:has(input:checked){border-color:var(--ink);background:var(--soft)}.image-studio label input[type=radio]{width:16px;height:16px;accent-color:var(--ink);flex:none;margin:2px 0 0}.image-studio-colors input[type=color]{width:48px;height:36px;margin-left:auto;padding:4px}.image-studio-options small{color:var(--muted);margin-top:4px;line-height:1.5;display:block}.image-studio-actions,.image-studio-apply{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:8px;display:flex}.image-studio-review{gap:10px;margin:0;display:grid}.image-studio-review>div{border-bottom:1px solid var(--line);gap:3px;padding:8px 0;display:grid}.image-studio-review dt{font-weight:600}.image-studio-review dd{overflow-wrap:anywhere;white-space:pre-wrap;margin:0}.image-studio-review ol{margin:0;padding-left:20px}.image-studio-results-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;display:flex}.image-studio-selection{border:0;min-width:0;margin:18px 0;padding:0}.image-studio-selection legend{font-weight:600}.image-studio-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,116px),1fr));gap:10px;margin-top:10px;display:grid}.image-studio-gallery.desktop-samples{grid-template-columns:repeat(auto-fill,minmax(min(100%,175px),1fr))}.image-studio-gallery button{background:var(--soft);cursor:pointer;border:2px solid #0000;border-radius:11px;min-width:0;padding:3px;display:block}.image-studio-gallery button[aria-pressed=true]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}.image-studio-gallery button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}.image-studio-gallery img{aspect-ratio:1;object-fit:cover;border-radius:6px;width:100%;display:block}.image-studio-gallery.desktop-samples img{aspect-ratio:16/9}.image-studio-gallery.mobile-samples img{aspect-ratio:4/5}.image-studio-feedback:empty{display:none}.image-studio-results{scroll-margin-top:24px}.image-studio-description{border:1px solid var(--line);border-radius:10px;gap:8px;min-width:0;padding:14px;display:grid}.image-studio-description p{margin:0;font-size:.875rem}.image-studio-description input[type=file]{width:100%;font-size:.875rem}.image-studio-references{gap:8px;margin:8px 0;padding:0;list-style:none;display:grid}.image-studio-references:empty{display:none}.image-studio-references li{overflow-wrap:anywhere;align-items:center;gap:10px;min-width:0;font-size:.875rem;display:flex}.image-studio-references img{object-fit:cover;border-radius:6px;width:48px;height:48px}.image-studio-references button{flex:none;margin-left:auto;padding:6px 0}.image-studio-token-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}#studio-payment-status:empty{display:none}.image-studio-spinner{border:2px solid;border-right-color:#0000;border-radius:50%;flex:none;width:1em;height:1em;animation:.8s linear infinite studio-spin}@keyframes studio-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.image-studio-spinner{animation:none}}.image-studio-refresh,.image-studio-references .image-studio-remove{color:var(--ink);font:inherit;cursor:pointer;background:#fff;border:1px solid #c9d8d2;border-radius:8px;justify-content:center;align-items:center;gap:8px;font-size:.875rem;font-weight:600;display:inline-flex}.image-studio-refresh{min-width:158px;min-height:44px;padding:9px 13px}.image-studio-refresh:hover:not(:disabled){background:#edf4f0;border-color:#9db5aa}.image-studio-refresh:disabled{cursor:wait;background:#edf4f0}.image-studio-references .image-studio-remove{color:#734345;width:36px;height:36px;padding:0}.image-studio-remove:hover{background:#f9eded;border-color:#dfbbbb}.image-studio-refresh:focus-visible,.image-studio-remove:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
