.local-studio .collection{margin-top:24px}
.local-studio .locked-prize{padding:24px;background:#111;color:#fff;text-align:center;border-radius:var(--radius-panel)}
.local-studio .effect-preview{min-height:72px;margin-top:20px;padding:20px;background:var(--color-page);border:1px solid #e0e3e7;border-radius:var(--radius-panel)}
.local-studio .effect-preview:empty{visibility:hidden}
.local-studio .effect-reveal{animation:studio-reveal .7s ease-out}
@keyframes studio-reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.local-studio .effect-reveal{animation:none}}

.simple-editor { max-width:640px; margin:0 auto; }
.simple-editor>h1 { text-align:center; margin:0 0 28px; }
.simple-editor>.notice { font-size:12px; }
.simple-editor #settings { background:#fff; padding:0 32px; border:1px solid #e0e3e7; border-radius:6px; }
.editor-section { padding:28px 0; border-bottom:1px solid #e0e3e7; }
.editor-section:last-child { border-bottom:0; }
.editor-section>h2 { font-size:19px; margin:0 0 20px; }
.editor-section>.muted { font-size:13px; }
.editor-cover { display:flex; gap:20px; align-items:center; margin-bottom:20px; }
.editor-cover>img { width:112px; height:88px; border-radius:4px; object-fit:cover; }
.editor-cover>div { flex:1; min-width:0; }
.editor-cover label { margin-top:0; }
.editor-prize { padding:20px; margin-bottom:16px; border:1px solid #e0e3e7; border-radius:4px; }
.editor-prize-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.editor-prize-heading h3 { margin:0; font-size:16px; }
.editor-prize-heading button { min-height:32px; font-size:12px; }
.editor-prize-media { display:grid; grid-template-columns:112px minmax(0,1fr); gap:16px; align-items:start; margin:16px 0; }
.editor-sample { display:flex; align-items:center; justify-content:center; min-height:112px; background:var(--color-page); border:1px dashed var(--color-border); border-radius:4px; font-size:11px; color:var(--color-muted); }
.editor-sample .sample-preview { width:100%; max-height:140px; object-fit:contain; margin:0; }
.editor-prize-media label:first-child { margin-top:0; }
.editor-files-link { display:inline-block; font-size:12px; margin-top:12px; line-height:1.7; }
.simple-editor details summary { cursor:pointer; font-size:14px; font-weight:600; line-height:1.7; }
.simple-editor details summary>span { font-size:12px; font-weight:400; color:var(--color-muted); margin-left:12px; }
.simple-editor details[open]>summary { margin-bottom:20px; }
.editor-prize details { margin-top:16px; }
#appearance-custom>summary { font-size:17px; }
#live { margin-top:16px; }
#live .phone { max-width:400px; margin:auto; }
.editor-submit .actions { display:grid; grid-template-columns:1fr 1fr; }
.editor-submit .actions button { width:100%; }
.editor-submit>details { margin:20px 0; }
.editor-submit>a { font-size:13px; }
.simple-editor .shipping-settings { margin:0; padding:0; border:0; }
.simple-editor .shipping-settings>legend { display:none; }
@media(max-width:600px){.simple-editor #settings{padding:0 16px}.editor-section{padding:24px 0}.editor-prize{padding:16px}.editor-cover{gap:12px}.editor-cover>img{width:80px;height:80px}.editor-prize-media{grid-template-columns:1fr}.editor-sample{min-height:120px;max-width:100%;}.editor-sample .sample-preview{width:160px;}.editor-submit .actions{grid-template-columns:1fr}.simple-editor details summary>span{display:block;margin:4px 0 0 16px}}

.product-types {border:0;padding:0;margin:20px 0 0;display:flex;gap:24px;flex-wrap:wrap}
.product-types legend {font-weight:600;margin-bottom:12px}
.product-types label {display:flex;align-items:center;gap:8px;margin:0}
.inline-media {margin:20px 0}
.inline-media input[type=file],.editor-cover input[type=file] {max-width:100%;height:auto;padding:12px;background:var(--color-page)}
.sample-stage {display:flex;align-items:center;justify-content:center;min-height:180px;background:var(--color-page);border:1px dashed var(--color-border);margin:16px 0;color:var(--color-muted);text-align:center;padding:12px}
.sample-stage img {max-width:100%;max-height:300px;object-fit:contain}
.editor-cover .cover-candidate {width:100%;height:auto;max-height:260px;object-fit:contain;margin:12px 0}
.editor-cover {display:block}
.editor-cover>img {width:100%;height:220px;object-fit:contain;background:var(--color-page);margin-bottom:16px}
.editor-cover>div {padding:16px;border:1px dashed var(--color-border);border-radius:4px}
.inline-media details {margin-top:16px}
@media(max-width:600px){.inline-media .actions {display:grid;grid-template-columns:1fr}}

.probability-summary {margin-top:24px;padding:20px;background:var(--color-page);border:1px solid var(--color-border);border-radius:4px}
.probability-summary h3 {margin:0 0 12px;font-size:16px}
.probability-summary h4 {margin:20px 0 10px;font-size:14px}
.probability-summary>p {font-size:13px;line-height:1.8}
.probability-list>div {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;padding:10px 0;border-bottom:1px solid var(--color-border)}
.probability-list span {overflow-wrap:anywhere}
.probability-list small {grid-column:1/-1;color:var(--color-muted)}
.rank-probabilities {display:flex;flex-wrap:wrap;gap:12px 24px;font-size:14px}

.box-types {border:0;padding:0;margin:24px 0}
.box-types legend {font-weight:600;margin-bottom:12px}
.box-types label {display:flex;align-items:center;gap:8px;margin:12px 0 4px}
.box-types small {color:var(--color-brand);font-weight:600}
.box-types p {margin:0 0 16px 26px;font-size:13px;color:var(--color-muted);line-height:1.7}
.simple-editor textarea {display:block;width:100%;border:1px solid var(--color-border);border-radius:4px;padding:12px;font:inherit;resize:vertical}

.selling-type .product-types {margin-top:0}
.selling-type #purchase-settings {padding-top:16px;border-top:1px solid var(--color-border)}

.selling-limits {padding:20px 0;border-top:1px solid var(--color-border)}
.selling-limits h3 {font-size:16px;margin:0 0 16px}

.box-capacity {padding:16px;background:var(--color-page);border-radius:4px;margin-bottom:20px}
.box-capacity p {font-size:13px;color:var(--color-muted);margin-bottom:0;line-height:1.7}
.limit-explanation {font-size:13px;line-height:1.8;padding:12px 0;margin-bottom:0}
#global-limit-fields[hidden] {display:none}
.simple-editor>#purchase-settings,.simple-editor #purchase-settings {padding:20px 0}

.buyer-purchase-choice {border:0;padding:0;margin:20px 0}
.buyer-purchase-choice legend {font-weight:600;margin-bottom:12px}
.buyer-purchase-choice>label {display:flex;align-items:center;gap:8px;margin:12px 0 6px}
.buyer-purchase-choice>p {margin:0 0 16px 26px;font-size:13px;color:var(--color-muted);line-height:1.7}
#buyer-limit-fields {margin:12px 0 0 26px}
#buyer-limit-fields[hidden] {display:none}
.count-input {display:flex;align-items:center;gap:12px}
.count-input input {width:140px;max-width:60%}
.count-input span {white-space:nowrap}

.global-purchase-choice {border:0;border-top:1px solid var(--color-border);padding:20px 0 0;margin:24px 0}
.global-purchase-choice legend {font-weight:600;padding-top:16px}
.global-purchase-choice>label {display:flex;align-items:center;gap:8px;margin:12px 0 6px}
.global-purchase-choice>p {margin:0 0 16px 26px;font-size:13px;color:var(--color-muted);line-height:1.7}
.selling-outcome {background:var(--color-page);padding:16px;border-radius:4px}
.selling-outcome h4 {margin:0 0 8px;font-size:14px}
.selling-outcome p {font-size:13px;line-height:1.8;margin:8px 0 0}

/* Compact prize editing: key fields stay visible; media keeps a real preview. */
.prize-fields {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,.85fr) minmax(0,1.3fr);gap:12px;margin-top:12px;align-items:end}
.prize-field {min-width:0}
.prize-field label {font-size:12px;margin:0 0 6px;line-height:1.5}
.prize-field input {min-width:0;width:100%;margin:0}
.prize-field select{min-width:0;width:100%;margin:0}
.editor-prize>.muted {font-size:12px;line-height:1.6;margin:10px 0}
.inline-media {margin:14px 0 0}
.media-edit-row {display:grid;grid-template-columns:144px minmax(0,1fr);gap:16px;align-items:start}
.media-controls {min-width:0}
.media-controls label {font-size:12px;margin:12px 0 6px}
.media-controls>label:first-child {margin-top:0}
.media-controls input[type=file] {font-size:12px;padding:8px;width:100%;min-width:0}
.media-controls p {font-size:12px;line-height:1.5;margin:6px 0 10px;overflow-wrap:anywhere}
.media-controls>.actions{margin:12px 0 0;display:block}.media-controls>.actions button{width:100%;font-size:12px;min-height:36px;padding:8px}
.media-edit-row .sample-stage {min-height:144px;height:144px;margin:0;padding:8px;font-size:12px}
.media-edit-row .sample-stage img {max-height:126px;width:100%;height:100%;object-fit:contain}
.inline-media>.actions {gap:8px;margin:12px 0 0;flex-wrap:wrap}
.inline-media>.actions button {font-size:12px;min-height:36px;padding:8px 12px}
.inline-media>p {font-size:12px;line-height:1.5;margin:8px 0}
.inline-media details {margin-top:12px}
@media(max-width:600px){
 .prize-fields {grid-template-columns:1fr 1fr;gap:10px}
 .prize-field:first-child {grid-column:1/-1}
 .media-edit-row {grid-template-columns:1fr}
 .media-edit-row .sample-stage {height:160px;min-height:160px}
 .media-edit-row .sample-stage img {max-height:142px}
 .inline-media>.actions {grid-template-columns:1fr}
}

.lp-assets{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.lp-assets>div{min-width:0}.lp-assets input[type=file]{width:100%;font-size:12px;padding:8px}.lp-asset-thumb{width:100%;height:100px;object-fit:contain;background:var(--color-page);border:1px solid var(--color-border)}.lp-assets .muted{font-size:12px}@media(max-width:600px){.lp-assets{grid-template-columns:1fr}}

.published-lp-editor{max-width:1000px;margin:auto}.published-lp-editor form{max-width:640px;margin:24px auto}.published-lp-editor textarea{width:100%;padding:12px;font:inherit;border:1px solid var(--color-border);border-radius:4px}.published-lp-editor input[type=file]{width:100%;height:auto}.selling-item-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

.simple-editor{max-width:1200px}.editor-workspace{display:grid;grid-template-columns:minmax(0,640px) minmax(0,440px);gap:24px;align-items:start;justify-content:center}.editor-workspace #settings{min-width:0;background:#fff;padding:24px 24px 0;border:1px solid #e0e3e7;border-radius:6px}
.editor-buyer-preview{min-width:0;position:sticky;top:88px;background:#fff;border:1px solid #e0e3e7;border-radius:8px;padding:24px 16px 16px;max-height:calc(100vh - 108px);overflow:auto}.editor-buyer-preview>h2{font-size:18px;margin:0 0 8px}.editor-buyer-preview>p{font-size:12px;line-height:1.8;color:var(--color-muted)}.editor-buyer-preview>button{width:100%;font-size:12px}.editor-buyer-preview #live{margin:16px 0}.editor-buyer-preview #live[hidden]{display:none}
@media(max-width:900px){.editor-workspace{grid-template-columns:minmax(0,640px)}.editor-buyer-preview{position:static;max-height:none}.editor-workspace #settings{padding:20px 16px 0}.editor-buyer-preview{grid-row:1}.editor-buyer-preview #live{max-height:480px;overflow:auto}.simple-editor>h1{margin-bottom:16px}}
.buyer-shipping-preview{margin:20px 0;padding:16px;border:1px solid var(--color-border);border-radius:8px;background:#f7f9fb;color:#17202b;min-width:0}.buyer-shipping-preview>h2{font-size:16px;margin:0 0 8px}.buyer-shipping-preview p{font-size:12px;line-height:1.8}.buyer-shipping-preview label{display:block;font-size:12px;margin:12px 0}.buyer-shipping-preview label[hidden]{display:none}.buyer-shipping-preview select,.buyer-shipping-preview input{display:block;width:100%;margin-top:6px}.buyer-amount-card{padding:16px;background:white;border-radius:6px}.buyer-amount-card h3{font-size:15px;overflow-wrap:anywhere;margin:0 0 8px}.buyer-amount-card dl{margin:12px 0}.buyer-amount-card dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:8px 0;font-size:13px}.buyer-amount-card dd{margin:0;font-weight:600}.buyer-amount-card dt{overflow-wrap:anywhere}.buyer-amount-total{border-top:1px solid #e0e3e7;font-weight:700}.buyer-amount-total dd{font-size:20px}.buyer-payment-step{border-top:1px solid #e0e3e7;padding-top:12px}
.buyer-shipping-preview{padding:20px 0;border:0;border-top:1px solid #e0e3e7;border-radius:0;background:white}.buyer-amount-card{padding:16px 0;border-radius:0;border-top:1px solid #e0e3e7}

.editor-myset-picker{display:flex;align-items:center;gap:10px;padding:0 0 20px;margin:0;border-bottom:1px solid #dedee6}.editor-myset-picker>label{margin:0;flex:none;font-size:13px;white-space:nowrap}.editor-myset-picker>select{min-width:0;flex:1;width:auto;margin:0;min-height:40px;font-size:13px}.editor-myset-picker .myset-undo{margin:0;flex:none;width:36px;min-height:36px;padding:3px;font-size:22px}.editor-myset-registration summary{font-size:13px;line-height:1.7;cursor:pointer}.editor-myset-registration details{margin:0}.editor-myset-registration details>p{font-size:12px;line-height:1.8}
