.studio-main [hidden]{display:none !important}
.studio-nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}
.studio-nav nav{display:flex;gap:18px;font-size:14px}
.studio-nav a[aria-current="page"]{color:#397251;font-weight:650}
.studio-main{display:grid;gap:28px;padding-top:28px;padding-bottom:48px}
.studio-side h1,.studio-form h2,.export h2{font-size:28px;line-height:1.35;letter-spacing:-.5px;margin:0 0 12px}
.studio-note{margin:0 0 12px;color:var(--muted);font-size:14px}
.studio-form label,.scrub{display:flex;justify-content:space-between;gap:12px;margin:16px 0 6px;font-size:14px;font-weight:650}
.studio-form label span,.scrub{font-weight:400;color:var(--muted)}
.studio-form input[type="text"],.studio-form input:not([type]),.studio-form input[type="file"]{width:100%;font-size:16px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}
.templates{border:0;margin:8px 0 0;padding:0}
.templates legend{font-weight:650;margin-bottom:8px}
.template-list{display:grid;gap:8px}
.template-choice{display:flex;justify-content:space-between;gap:12px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;min-height:44px}
.template-choice[aria-pressed="true"]{border-color:#163e35;background:#eef4e6}
.template-choice span{color:var(--muted);font-size:13px}
.form-errors{min-height:1.4em;color:#8a3b2c;font-size:14px;margin:8px 0}
.studio-actions{display:flex;gap:16px;align-items:center;margin-top:8px}
.export{margin-top:28px;padding-top:8px}
.export-state{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 16px;min-height:52px}
.export video{width:min(100%,360px);margin-top:14px;background:#111;border-radius:12px}
.vf-stage{position:relative;margin:8px auto 16px;background:#141414;color:#fff;border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.vf-stage.is-vertical{width:min(100%,220px);aspect-ratio:9/16}
.vf-stage.is-horizontal{width:min(100%,420px);aspect-ratio:16/9}
.vf-stage.is-square{width:min(100%,280px);aspect-ratio:1/1}
.vf-bar{display:flex;align-items:center;gap:8px;padding:12px 14px 0;font-weight:700}
.vf-mark{width:22px;height:22px;border-radius:6px;background:#e60012;display:flex;align-items:center;justify-content:center;font-size:12px}
.vf-body{flex:1;display:flex;flex-direction:column;justify-content:center;gap:10px;padding:16px}
.vf-title{font-size:22px;font-weight:700;line-height:1.35;margin:0}
.vf-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.vf-points li{background:rgba(255,255,255,.08);border-radius:10px;padding:8px 10px;font-size:14px}
.vf-cta{align-self:center;background:#e60012;border-radius:999px;padding:10px 18px;font-weight:700;margin:0}
.vf-body img{width:72px;height:72px;object-fit:cover;border-radius:12px}
.vf-progress{position:absolute;left:0;right:0;bottom:0;width:100%;height:4px;display:block}
.vf-progress rect{fill:#ffb800}
@media(min-width:960px){
  .studio-main{grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:48px}
  .studio-form{grid-column:1;grid-row:1}
  .studio-side{grid-column:2;grid-row:1;position:sticky;top:16px}
  .vf-stage.is-vertical{width:280px}
}
@media(max-width:959px){
  .studio-side{position:sticky;top:0;z-index:2;background:var(--paper);padding-bottom:8px}
  .studio-side h1{font-size:22px}
  .vf-stage.is-vertical{width:168px}
}
@media(max-width:700px){
  .studio-nav nav{display:flex}
}
