.studio-page{background:radial-gradient(circle at 88% 0,#ffd8c9 0,transparent 34%),linear-gradient(160deg,#fff8f1,#ffece2)}
.studio-shell{width:min(1240px,100%);margin:auto;padding:clamp(34px,6vw,76px) clamp(16px,5vw,64px) clamp(64px,9vw,110px)}
.studio-intro{max-width:820px;margin-bottom:34px}
.studio-intro h1{font-size:clamp(3rem,7vw,6rem)}
.studio-intro>p:not(.eyebrow):not(.studio-disclaimer){color:var(--muted);font-size:clamp(1.05rem,2vw,1.25rem);line-height:1.65}
.studio-disclaimer{padding:16px 18px;border:1px solid #efc9b8;border-radius:18px;background:rgba(255,255,255,.78);color:#6d4a3d;line-height:1.6}
.studio-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(360px,1.1fr);gap:clamp(22px,4vw,48px);align-items:start}
.studio-preview-card{position:sticky;top:92px;padding:16px;border:1px solid var(--line);border-radius:34px;background:rgba(255,253,249,.94);box-shadow:var(--shadow)}
#studioCanvas{display:block;width:100%;height:auto;border-radius:24px;background:#fff1e8}
.studio-preview-actions{display:grid;grid-template-columns:1.2fr .8fr .9fr;gap:10px;margin-top:14px}
.studio-preview-actions .button{border:0;cursor:pointer;font:inherit;padding-inline:14px}
.studio-status{min-height:1.5em;margin:10px 4px 2px;color:var(--muted);font-size:.92rem;text-align:center}
.studio-controls{display:grid;gap:24px;padding:clamp(22px,4vw,36px);border:1px solid var(--line);border-radius:34px;background:rgba(255,253,249,.96);box-shadow:var(--shadow)}
.studio-controls fieldset{min-width:0;margin:0;padding:0;border:0}
.studio-controls legend{margin-bottom:14px;font-size:1.08rem;font-weight:900}
.swatch-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.swatch{display:grid;justify-items:center;gap:7px;padding:10px 4px;border:2px solid transparent;border-radius:18px;background:#fff;color:var(--ink);font:inherit;font-size:.78rem;font-weight:750;cursor:pointer}
.swatch span{width:42px;height:42px;border:1px solid rgba(52,35,29,.16);border-radius:50%;box-shadow:inset 0 -8px 14px rgba(0,0,0,.08)}
.swatch[aria-pressed="true"]{border-color:var(--orange);background:#fff0e7}
.motif-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.motif{display:grid;grid-template-rows:76px auto;overflow:hidden;padding:0;border:3px solid transparent;border-radius:18px;background:#fff;color:var(--ink);font:inherit;cursor:pointer;text-align:center}
.motif img{display:block;width:100%;height:76px;min-height:0;object-fit:contain;object-position:center;padding:6px;box-sizing:border-box;background:linear-gradient(145deg,#fff8f1,#ffe4d6);filter:drop-shadow(0 1px 1px rgba(52,35,29,.35))}
.motif strong{display:grid;place-items:center;min-height:42px;padding:6px 4px 8px;font-size:.76rem;line-height:1.15}
.motif[aria-pressed="true"]{border-color:var(--orange);box-shadow:0 10px 24px rgba(232,93,63,.18)}
.studio-field-grid{display:grid;grid-template-columns:1.35fr .8fr 1fr;gap:14px}
.studio-field-grid label{display:grid;gap:8px;font-weight:850}
.studio-field-grid label span{color:var(--muted);font-size:.82rem;font-weight:650}
.studio-field-grid input,.studio-field-grid select{width:100%;min-height:52px;padding:0 14px;border:1px solid #d9c2b5;border-radius:16px;background:#fff;color:var(--ink);font:inherit}
.studio-field-grid input:focus,.studio-field-grid select:focus{outline:3px solid rgba(232,93,63,.18);border-color:var(--orange)}
.studio-size-note{margin:-10px 0 0;color:var(--muted);line-height:1.55}
.studio-summary{display:grid;gap:5px;padding:18px;border-radius:20px;background:#fff0e7}
.studio-summary span{color:var(--orange-dark);font-size:.78rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.studio-summary strong{line-height:1.5}
.studio-whatsapp{width:100%;min-height:56px}
.studio-secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.studio-privacy{margin:0;color:var(--muted);font-size:.88rem;line-height:1.55;text-align:center}
@media(max-width:920px){.studio-layout{grid-template-columns:1fr}.studio-preview-card{position:static;max-width:640px;width:100%;margin:auto}.studio-controls{max-width:720px;width:100%;margin:auto}}
@media(max-width:640px){.studio-shell{padding-inline:12px}.studio-intro{padding-inline:6px}.studio-preview-card,.studio-controls{border-radius:26px;padding:14px}.studio-controls{gap:20px;padding:20px 16px}.swatch-grid{grid-template-columns:repeat(5,1fr);gap:6px}.swatch{font-size:.68rem;padding-inline:1px}.swatch span{width:36px;height:36px}.motif-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.motif{grid-template-rows:68px auto;border-radius:16px}.motif img{height:68px;padding:5px}.motif strong{min-height:40px;font-size:.72rem;padding-inline:3px}.studio-field-grid{grid-template-columns:1fr}.studio-preview-actions{grid-template-columns:1fr 1fr}.studio-preview-actions .button:first-child{grid-column:1/-1}.studio-secondary-actions{grid-template-columns:1fr}}
@media(max-width:380px){.motif-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.motif{grid-template-rows:62px auto}.motif img{height:62px;padding:4px}.motif strong{min-height:32px;font-size:.68rem}.swatch-grid{grid-template-columns:repeat(3,1fr)}}
.share-card-box{margin-top:18px;padding:20px;border:2px dashed #efb49c;border-radius:24px;background:linear-gradient(160deg,#fff8f1,#ffece2);text-align:center}
.share-card-box h2{margin:0 0 8px;font-size:1.35rem}
.share-card-box p{margin:0 auto 16px;color:var(--muted);line-height:1.6;max-width:46ch}
.share-card-create{width:100%;min-height:56px;border:0;cursor:pointer;font:inherit;font-size:1.05rem}
.share-card-result{margin-top:18px;display:grid;gap:12px}
.share-card-result[hidden]{display:none}
#shareCardPreview{display:block;width:min(320px,100%);height:auto;margin:auto;border-radius:20px;box-shadow:var(--shadow)}
.share-card-caption-label{text-align:left;font-weight:850}
.share-card-caption{width:100%;box-sizing:border-box;padding:14px;border:1px solid #d9c2b5;border-radius:16px;background:#fff;color:var(--ink);font:inherit;line-height:1.55;resize:vertical}
.share-card-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.share-card-actions .button{border:0;cursor:pointer;font:inherit;padding-inline:10px}
@media(max-width:640px){.share-card-actions{grid-template-columns:1fr}}
/* Gate 3 E/H: Studio buy CTA + compact mobile first screen */
.studio-buy-cta{display:grid;gap:9px;margin-top:14px}
.studio-buy-cta .button{min-height:52px;display:flex;align-items:center;justify-content:center;text-align:center}
.studio-buy-note{margin:0;color:#6f574d;font-size:.86rem;line-height:1.45}
@media(max-width:760px){
 .studio-shell{padding-top:12px}
 .studio-intro{margin-bottom:10px}
 .studio-intro h1{font-size:1.9rem}
 .studio-intro>p:not(.eyebrow):not(.studio-disclaimer){display:none}
 .studio-disclaimer{font-size:.82rem;line-height:1.4;margin:6px 0 0}
 .studio-preview-card{padding:12px}
 #studioCanvas{max-height:250px;width:auto;max-width:100%;margin-inline:auto;display:block}
 .studio-buy-cta{margin-top:10px}
 .studio-buy-cta .button{min-height:49px}
 .studio-buy-note{font-size:.8rem}
}
@media(max-width:760px){
 .studio-intro h1{font-size:1.55rem;line-height:1.12}
 .studio-intro .eyebrow{margin-bottom:4px}
 .studio-disclaimer{display:none}
 #studioCanvas{max-height:188px}
 .studio-preview-card{padding:10px}
}
