.studio-demo{width:min(100% - 28px,1120px);margin:30px auto 38px;scroll-margin-top:12px;color:var(--ink)}
.studio-heading{text-align:center;margin-bottom:14px}
.studio-heading h2{font:400 clamp(30px,5vw,50px)/1.15 Georgia,serif;margin:0 0 16px}
html[lang=th] .studio-heading h2{font-family:system-ui,sans-serif;font-weight:500}
.studio-steps{display:flex;justify-content:center;gap:clamp(10px,5vw,48px);margin:0;padding:0;list-style:none;font-size:13px}
.studio-steps li{display:flex;align-items:center;gap:6px;color:#6c5b60}
.studio-steps li span{display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;width:25px;height:25px;background:#fffaf4}
.studio-steps li[aria-current=step]{color:#5b3e50}
.studio-steps li[aria-current=step] span{background:var(--plum);border-color:var(--plum);color:white}
.studio-stage{border:1px solid var(--line);border-radius:16px;background:var(--white);overflow:hidden}
.studio-toolbar{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;border-bottom:1px solid var(--line);background:#fffaf4}
.studio-toolbar span{color:var(--muted);font-size:12px}
.studio-workspace{display:grid;grid-template-columns:minmax(102px,160px) minmax(0,1fr) minmax(185px,245px)}
.studio-templates,.studio-properties{min-width:0;padding:14px;background:#fffdf9}
.studio-templates{border-right:1px solid var(--line)}.studio-properties{border-left:1px solid var(--line)}
.studio-templates h3,.studio-properties h3{font-size:14px;margin:0 0 12px}
#studio-templates{display:grid;gap:7px}
.studio-template{border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;gap:8px;min-height:45px;text-align:left;background:#fffaf4;color:var(--ink);padding:5px 7px;cursor:pointer}
.studio-template[aria-pressed=true]{border-color:var(--plum);background:#f4e9ed}
.studio-template img{width:35px;height:49px;border:1px solid #dbcab8;border-radius:3px;object-fit:cover;background:#f4ece3}.studio-template span{font-size:12px;font-weight:650}
.studio-worktop{position:relative;display:grid;justify-items:center;align-content:start;min-width:0;background:#f2eee8;padding:17px clamp(12px,3vw,28px) 25px}
.studio-canvas-wrap{position:relative;width:min(100%,310px)}
.studio-worktop canvas{width:100%;height:auto;display:block;box-shadow:0 10px 26px #49352e20;background:#fffaf5}
#studio-move-names{position:absolute;left:12%;right:12%;height:10%;translate:0 -50%;border:1px solid transparent;border-radius:3px;cursor:grab;touch-action:none}
#studio-move-names:is(:hover,:focus-visible,:active){border-color:var(--plum)}
#studio-move-names:active{cursor:grabbing}
.studio-ruler{width:min(100%,310px);height:11px;border-bottom:1px solid #bba99d;background:repeating-linear-gradient(90deg,#c9b9ac 0 1px,transparent 1px 20px) bottom/100% 5px no-repeat}
.studio-properties>label:not(.studio-toggle){display:block;font-size:13px;font-weight:650;margin:9px 0 4px}
.studio-properties>input{display:block;width:100%;min-width:0;max-width:100%;min-height:42px;border:1px solid var(--line);border-radius:8px;background:#fffaf5;color:var(--ink);padding:7px;font-size:16px}
.studio-toggle{display:flex;align-items:center;gap:6px;min-height:44px;font-size:13px;margin-top:7px}
.studio-toggle input,.studio-response input{accent-color:var(--plum)}
.studio-properties>.demo-button{width:100%}
#studio-status,.studio-note{font-size:12px;color:var(--muted);margin:8px 0 0}
.studio-note{text-align:center}
#studio-envelope-host{padding:10px;width:min(100%,830px);margin:auto}
#studio-envelope-host .pn-envelope-stage{min-height:clamp(510px,74vh,650px)}
#studio-envelope-host .pn-envelope-intro p,#studio-envelope-host .pn-envelope-intro>span{display:none}
.studio-open-label{position:absolute;top:100%;left:0;right:0;margin-top:14px;color:#654857;font-weight:600;font-size:14px}
.is-opening .studio-open-label{visibility:hidden}
.studio-delivered{padding:clamp(14px,4vw,34px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(15px,4vw,36px);align-items:center;max-width:760px;margin:auto}
#studio-result{display:block;width:min(100%,310px);height:auto;justify-self:center;box-shadow:0 9px 26px #49352e20}
.studio-response h3{font-size:22px;margin:0 0 12px}
.studio-response fieldset{border:0;padding:0;margin:0 0 12px;display:grid;gap:6px}
.studio-response label{display:flex;gap:6px;align-items:center;min-height:44px;padding:4px 9px;border:1px solid var(--line);border-radius:8px}
.studio-response p{color:var(--muted)}
.studio-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){
 .studio-workspace{grid-template-columns:minmax(0,1fr)}
 .studio-templates,.studio-properties{border:0}
 .studio-templates h3{margin-bottom:6px}
 #studio-templates{grid-template-columns:repeat(3,minmax(0,1fr))}
 .studio-template{padding:4px;gap:5px;min-width:0}.studio-template img{width:24px;height:34px}.studio-template span{font-size:11px}
 .studio-worktop{padding:8px 12px 15px}.studio-canvas-wrap,.studio-ruler{width:min(74%,255px)}
 .studio-properties{border-top:1px solid var(--line)}
 .studio-delivered{grid-template-columns:1fr}.studio-response{width:min(100%,340px);justify-self:center}
}

/* One live product stage, shared by the automatic tour and hands-on editing. */
.ov-hero{grid-template-columns:1fr;padding:clamp(16px,3vw,36px);gap:24px}
.ov-hero-copy{text-align:center;max-width:800px;margin:auto}
.ov-hero h1{font-size:clamp(36px,5.5vw,66px)}
.ov-live-studio{min-width:0;width:100%}
.ov-live-studio .studio-demo{position:relative;width:100%;margin:0}
.studio-heading h2{display:none}.studio-heading{margin-bottom:16px}
.studio-stage{box-shadow:0 18px 46px #49352e14;animation:studio-enter .7s cubic-bezier(.22,1,.36,1)}
@keyframes studio-enter{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
#studio-templates{max-height:210px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;grid-template-columns:1fr}
.studio-template{min-height:112px;flex-direction:column;justify-content:center}.studio-template img{width:50px;height:70px}
.studio-elements-label{margin-top:20px!important}.studio-elements{display:flex;flex-wrap:wrap;gap:5px}
.studio-elements button{font:30px Georgia;color:#9a7754;border:1px solid var(--line);background:#fffbf5;border-radius:8px;min-width:36px;min-height:42px;cursor:pointer}
#studio-pause{border:1px solid var(--line);border-radius:50%;background:white;color:var(--plum);width:36px;height:36px;cursor:pointer}
#studio-cursor{position:absolute;pointer-events:none;z-index:9;width:24px;opacity:0;transition:left .7s cubic-bezier(.22,1,.36,1),top .7s cubic-bezier(.22,1,.36,1),opacity .25s;filter:drop-shadow(0 3px 3px #412d3755)}
#studio-cursor.visible{opacity:1}#studio-cursor svg{width:24px;fill:#754c61;stroke:white;stroke-width:1.5}
#studio-cursor:after{content:'';position:absolute;left:-12px;top:-12px;width:38px;height:38px;border:2px solid #a77a8d;border-radius:50%;opacity:0;transform:scale(.3)}
#studio-cursor.click:after{opacity:.7;transform:scale(1);transition:.3s}
#studio-cursor span{position:absolute;left:23px;top:10px;color:var(--plum);font-size:24px}
@media(max-width:700px){
 .pn-overview{padding:0 10px}.ov-hero{padding:20px 8px}.studio-workspace{grid-template-columns:78px minmax(0,1fr)}
 .studio-templates{padding:10px 5px;grid-row:1}.studio-templates h3{font-size:10px}
 #studio-templates{max-height:185px;grid-template-columns:1fr}.studio-template{min-height:100px}
 .studio-template img{width:42px;height:59px}.studio-template span{font-size:10px}
 .studio-worktop{padding:10px 9px;align-content:center}.studio-canvas-wrap,.studio-ruler{width:100%;max-width:310px}
 .studio-properties{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:5px 10px;padding:12px}
 .studio-properties h3{display:none}.studio-properties>label:not(.studio-toggle){margin:0;grid-column:1}.studio-properties>input{grid-column:2;grid-row:auto}
 .studio-properties>label:not(.studio-toggle){align-self:center}.studio-properties>.demo-button{grid-column:2}
 .studio-elements{gap:4px;justify-content:center}.studio-elements button{min-width:29px;font-size:23px}
 .studio-steps{font-size:11px;gap:12px}#studio-envelope-host .pn-envelope-stage{min-height:490px}
}
@media(prefers-reduced-motion:reduce){.studio-stage{animation:none}#studio-cursor{transition:none}}
