.studio-open,.pet-rename{font:inherit;cursor:pointer;color:var(--pet-primaryDark);background:var(--pet-background);border:1px solid var(--pet-border);border-radius:11px;min-height:36px;padding:7px 10px;font-size:12px}.pet-heading .studio-open{margin-left:auto;margin-right:10px}.pet-rename{padding:2px 8px;min-height:27px;margin-left:8px;font-size:11px}.pet-name-line{display:flex;align-items:center;flex-wrap:wrap}.pet-name-line h2{margin-right:0}.custom-game-pet{position:relative;display:block;width:100%;height:auto;aspect-ratio:1.25;outline-offset:-5px;cursor:pointer}.custom-game-pet canvas{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}.pet-upgrade-stage>.custom-game-pet{width:100%;height:100%;aspect-ratio:auto}
#studio-dialog{width:min(880px,calc(100% - 28px));max-width:880px;max-height:90dvh;overflow-y:auto;padding:26px}#studio-dialog .quiz-top{margin-bottom:8px}#studio-dialog h2{font-size:24px;margin:0}#studio-dialog h3{font-size:16px;margin:0 0 16px}.studio-intro{font-size:13px;color:var(--pet-muted);line-height:1.8;margin:0 0 24px}.studio-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:28px}.studio-form-label{display:block;font-size:13px;font-weight:600;margin-bottom:10px}.studio-picks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.studio-file{display:flex;align-items:center;justify-content:center;position:relative;min-height:64px;padding:10px;background:var(--pet-background);border:1px dashed var(--pet-border);border-radius:14px;color:var(--pet-primaryDark);font-size:14px;font-weight:600;overflow:hidden;cursor:pointer}.studio-file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.studio-file:focus-within{outline:2px solid var(--pet-primary);outline-offset:2px}.studio-file:has(input:disabled){opacity:.5;cursor:default}.studio-tip{font-size:11px;color:var(--pet-muted);line-height:1.7}.studio-photos{display:flex;gap:8px;margin:12px 0}.studio-photo{width:calc((100% - 16px)/3);border:1px solid var(--pet-border);border-radius:11px;overflow:hidden;background:var(--pet-background)}.studio-photo img{display:block;width:100%;height:90px;object-fit:contain}.studio-photo button{width:100%;border:0;background:transparent;color:var(--pet-muted);font-size:11px;min-height:30px;cursor:pointer}#studio-description,#rename-input{box-sizing:border-box;width:100%;resize:vertical;border:1px solid var(--pet-border);border-radius:12px;padding:13px;color:var(--pet-ink);background:var(--pet-surface);font:inherit;font-size:14px;line-height:1.7}#studio-description{min-height:112px}.studio-draft-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--pet-muted);margin:7px 0 16px}.studio-consent{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.7;margin:16px 0}.studio-consent input{margin-top:4px;flex:0 0 auto}.studio-jobs-heading{display:flex;align-items:center;justify-content:space-between}.studio-jobs-heading button{font-size:12px}.studio-job{border:1px solid var(--pet-border);border-radius:14px;padding:16px;margin:0 0 12px;background:var(--pet-background)}.studio-job strong{font-size:14px}.studio-job p{font-size:12px;color:var(--pet-muted);line-height:1.7}.studio-job .primary{min-height:40px;padding:10px;font-size:13px;margin-top:5px}.studio-empty{font-size:13px;line-height:1.8;color:var(--pet-muted);padding:24px 16px;border:1px dashed var(--pet-border);border-radius:14px}#studio-message{font-size:12px;line-height:1.8;color:var(--pet-primaryDark);min-height:1.8em;margin:14px 0 0}#studio-message.is-error{color:#a34e32}#rename-dialog{width:min(360px,calc(100% - 30px))}#rename-dialog h2{font-size:20px}#rename-dialog .primary{margin-top:16px}
@media(max-width:720px){.studio-open{font-size:11px;padding:6px 8px;min-height:34px}.pet-heading .studio-open{margin-right:7px}.pet-name-line h2{max-width:150px;overflow-wrap:anywhere}#studio-dialog{padding:20px;max-height:94dvh}#studio-dialog h2{font-size:21px}.studio-layout{grid-template-columns:1fr;gap:20px}.studio-intro{margin-bottom:18px}.studio-jobs-section{border-top:1px solid var(--pet-border);padding-top:20px}.custom-game-pet{aspect-ratio:1.25}}
@media(prefers-reduced-motion:reduce){.custom-game-pet{scroll-behavior:auto}}

.studio-preview{display:flex;gap:8px;margin:12px 0}.studio-preview figure{margin:0;min-width:0;flex:1;text-align:center}.studio-preview img{width:100%;height:auto;aspect-ratio:160/170;object-fit:contain}.studio-preview figcaption{font-size:10px;color:var(--pet-muted);margin-top:4px}

body:not(.classic-web) #pet-host:has(>.custom-game-pet){position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;padding:0}#pet-host>.custom-game-pet{height:100%;aspect-ratio:auto}.pet-heading>div:first-child{min-width:0}.pet-heading .studio-open,.pet-heading .level{flex-shrink:0}
.studio-payment-price{font-weight:700;color:#485382;background:#eef1ff;border-radius:12px;padding:12px}.studio-payment-account{font-size:13px;color:#64748b;margin-bottom:12px}.studio-order-id{display:block;overflow-wrap:anywhere;color:#64748b;margin:8px 0}.studio-job>.text-button{margin:6px 8px 6px 0}
.studio-open{background:#6551d8;color:#fff;border:1px solid #5945c8;box-shadow:0 3px 0 #4836a2,0 5px 15px #6551d82b;font-weight:700;min-height:40px;padding:9px 12px}
#studio-submit{background:#6551d8;border-color:#4836a2;min-height:50px;font-size:16px;box-shadow:0 5px 16px #6551d825}.studio-terms{margin:4px 0}.studio-terms a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:720px){.pet-heading .studio-open{font-size:11px;padding:7px 8px;min-height:38px;margin-right:6px}.studio-payment-price{font-size:13px;margin:8px 0 18px}.studio-intro{margin-bottom:8px}#studio-description{min-height:90px}}
.studio-home-actions{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:8px;flex-shrink:0}.pet-heading .studio-home-actions .studio-open{margin:0}.studio-orders-open{border:1px solid var(--pet-border);border-radius:10px;background:var(--pet-surface);color:var(--pet-primaryDark);min-height:38px;padding:7px 9px;font-size:12px;font-weight:600}
.studio-tabs{display:flex;gap:8px;margin:16px 0}.studio-tabs button{flex:1;border:1px solid var(--pet-border);border-radius:12px;background:var(--pet-surface);padding:11px;color:var(--pet-muted);font-size:14px}.studio-tabs button[aria-pressed=true]{background:#eeebff;border-color:#9685ee;color:#5541b4;font-weight:700}
.is-payment-studio .studio-layout{display:block}.is-payment-studio[data-view=create] .studio-jobs-section,.is-payment-studio[data-view=orders] #studio-form,.is-payment-studio[data-view=orders] .studio-intro,.is-payment-studio[data-view=orders] .studio-payment-price{display:none}.is-payment-studio .studio-jobs-section{border:0;padding-top:0}.is-payment-studio .studio-empty{margin-bottom:0}
.studio-progress{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;gap:6px;margin:14px 0}.studio-progress li{font-size:11px;text-align:center;padding:8px 2px;border-top:4px solid #dce1eb;color:#7b879b}.studio-progress li.is-complete{border-color:#499778;color:#35775d}.studio-progress li.is-current{border-color:#7560dc;color:#5743b7;font-weight:700}
@media(max-width:360px){.studio-home-actions{gap:4px;margin-right:5px}.studio-orders-open{padding:7px 6px;font-size:11px}.pet-heading .studio-home-actions .studio-open{padding:7px 6px}.is-payment-studio .studio-progress li{font-size:10px}}

#payment-browser-help{width:min(370px,calc(100% - 32px));max-height:85dvh;overflow-y:auto;border:1px solid #b9c9e9;border-radius:20px;background:#fff;padding:20px;font-size:14px;line-height:1.8;color:#365377}#payment-browser-help strong{font-size:14px}#payment-browser-help p{margin:6px 0}#payment-browser-help input{display:block;width:100%;min-width:0;padding:8px;font-size:14px}#payment-browser-help [role=status]{display:block}#studio-retry-save{font-size:11px;padding:0;min-height:24px;flex-shrink:0}.studio-draft-meta{align-items:center}#studio-count{white-space:nowrap;margin-left:auto}

#payment-browser-help .quiz-top{gap:12px;align-items:center}#payment-browser-help h2{font-size:20px;line-height:1.5;margin:0}#payment-browser-help .icon-button{flex:none}#payment-browser-help>p{margin:16px 0}#payment-browser-help .studio-tip{font-size:12px}

.payment-dialog{width:min(390px,calc(100% - 28px));max-height:90dvh;overflow:auto;padding:22px;border-radius:20px;color:var(--pet-ink);font-size:14px;line-height:1.8}.payment-dialog .quiz-top{gap:12px;align-items:center}.payment-dialog h2{font-size:20px;margin:0}.payment-dialog .icon-button{flex:none}.payment-dialog p{margin:14px 0}.payment-dialog .primary{margin:18px 0 8px;cursor:pointer}.payment-dialog iframe{display:block;width:260px;height:260px;border:0;margin:14px auto;background:#fff}.payment-dialog .payment-amount{font-size:28px;font-weight:800;color:#6551d8;margin:6px 0}.payment-dialog [role=status]{font-size:12px;color:#64748b}#payment-checkout{text-align:center}
.payment-dialog{box-sizing:border-box;background:#fff;color:#26384b;color-scheme:light;border:1px solid #c6d2e5}.payment-dialog h2{color:#26384b}.payment-dialog .primary{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:52px;background:#1677ff;color:#fff;text-decoration:none;border-radius:12px;padding:12px;font-weight:700}.payment-dialog .text-button{display:inline-block;white-space:normal;line-height:1.7;min-height:44px;padding:10px 4px;color:#385c91}.payment-dialog .payment-help{font-size:12px;color:#53677e;line-height:1.8}.payment-dialog [hidden]{display:none!important}#payment-checkout-instructions{font-size:14px}#payment-checkout-status{min-height:2em}#payment-qr-panel{overflow:hidden}.payment-dialog iframe{max-width:100%}
.studio-job .studio-wait-note{padding:10px 12px;border-radius:10px;background:#eeebff;color:#5541b4}.studio-refund-state{margin:12px 0;padding:12px;border-left:3px solid #8a76dd;background:#f2f0fc;border-radius:0 9px 9px 0}.studio-refund-state strong{font-size:12px}.studio-refund-state p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.studio-refund-state[data-status=refunded]{border-color:#409878;background:#edf8f2}.studio-refund-state[data-status=rejected]{border-color:#bf8748;background:#fcf5e9}
#studio-refund-dialog{box-sizing:border-box;width:min(560px,calc(100% - 28px));max-height:92dvh;overflow-y:auto;padding:24px;background:var(--pet-surface);color:var(--pet-ink);border:1px solid var(--pet-border);border-radius:20px}#studio-refund-dialog h2{font-size:22px;margin:0}#studio-refund-dialog .quiz-top{gap:12px;align-items:center}#studio-refund-dialog .icon-button{flex:none}#refund-reason{box-sizing:border-box;width:100%;min-height:140px;resize:vertical;border:1px solid var(--pet-border);border-radius:12px;padding:12px;background:var(--pet-background);color:var(--pet-ink);font:inherit;font-size:14px;line-height:1.7}#refund-count{text-align:right;margin:4px 0 12px}#refund-message{font-size:12px;line-height:1.8;color:var(--pet-primaryDark);min-height:1.8em}#refund-message.is-error{color:#a34e32}.refund-actions{display:flex;gap:12px;align-items:center}.refund-actions .primary{flex:1;min-height:46px;font-size:14px}.refund-actions .text-button{flex:none;min-height:44px}.studio-photo button:disabled{opacity:.5;cursor:default}
@media(max-width:480px){#studio-refund-dialog{padding:20px}#studio-refund-dialog .studio-photo img{height:80px}}
