.studio-header{width:89.7%;margin:0 auto 20px;display:flex;justify-content:space-between;align-items:center;gap:20px}.studio-header h1{font-size:38px;margin:0;width:auto;letter-spacing:-1.4px}.eyebrow{font:600 10px/1.4 -apple-system,sans-serif;letter-spacing:2px;color:#89898e;margin:0 0 8px}.studio-actions{display:flex;gap:10px;align-items:center}button,select,.upload-button{font-family:inherit}.studio-actions button,.upload-button,.settings-grid button{border:0;border-radius:24px;padding:13px 19px;font-size:13px;font-weight:600;cursor:pointer;background:#e8e8ec;color:#1d1d1f}.upload-button,.settings-grid button.primary{background:#0071e3;color:white}.upload-button input{position:absolute;width:1px;height:1px;opacity:0}.upload-button:focus-within{outline:3px solid #0071e3;outline-offset:4px}.studio-actions button span{margin-left:16px}.studio-settings{position:fixed;right:5.2%;top:100px;width:340px;max-height:calc(100dvh - 125px);overflow:auto;background:#fffffff5;backdrop-filter:blur(30px);border:1px solid #e4e4e8;box-shadow:0 20px 80px #0002;border-radius:24px;padding:24px;z-index:20}.settings-heading{display:flex;justify-content:space-between;align-items:center}.settings-heading h2{font-size:21px;letter-spacing:-.7px;margin:0}.settings-heading button,#result-close{border:0;background:#eeeef0;border-radius:50%;width:28px;height:28px;cursor:pointer;font-size:22px}.studio-settings p{font-size:12px;line-height:1.6;color:#77777c}.studio-settings label{display:block;font-size:12px;font-weight:500;margin-top:14px;color:#55555b}.studio-settings select{display:block;width:100%;background:#f5f5f7;border:1px solid #dddde1;border-radius:10px;padding:10px 8px;color:#1d1d1f;font-size:12px;margin-top:7px}.studio-settings input[type=range]{display:block;width:100%;margin:12px 0;accent-color:#0071e3;cursor:pointer}.studio-settings output{float:right;color:#888}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.settings-grid button{padding:13px 10px;margin-top:9px;font-size:12px}.settings-grid button:disabled{opacity:.4;cursor:wait}.text-button{border:0;padding:0;background:none;color:#0071e3;font-size:12px;cursor:pointer}.settings-rule{border-top:1px solid #e8e8eb;margin:20px 0 5px}.export-note{margin-top:16px}.studio-status{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#1d1d1fea;color:white;border-radius:20px;padding:10px 19px;font-size:12px;z-index:30;max-width:90%;text-align:center;transition:opacity .3s}.studio-status:empty{opacity:0;pointer-events:none}.studio-playing .controls,.studio-playing .navigation,.studio-playing .close,.studio-playing .reopen,.studio-playing .free-hint{visibility:hidden!important}.studio-playing #render{left:0!important;right:0!important;inset:0!important;height:100%!important}.studio-playing .viewer{position:fixed!important;width:min(90vw,calc(78dvh * var(--studio-ratio)))!important;height:auto!important;min-height:0!important;aspect-ratio:var(--studio-ratio);left:50%;top:47%;transform:translate(-50%,-50%);margin:0!important;z-index:35;border-radius:20px}.studio-playing:before{content:"";position:fixed;inset:0;background:#f5f5f7;z-index:34}.studio-playing .studio-header{position:relative;z-index:36;opacity:.4;pointer-events:none}#playback-bar{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:15px;width:min(440px,90vw);padding:15px 20px;border:1px solid #dedee3;background:#fff;border-radius:30px;font-size:12px}#playback-bar progress{width:100%;height:4px;accent-color:#0071e3}#playback-label{white-space:nowrap;min-width:75px}#stop-animation{border:0;background:none;color:#0071e3;white-space:nowrap;cursor:pointer}#export-result{border:1px solid #e5e5e9;padding:28px;border-radius:25px;width:min(680px,92vw);max-height:90dvh;overflow:auto;background:#fff}#export-result::backdrop{background:#16161c88;backdrop-filter:blur(10px)}#export-result h2{font-size:27px;margin:8px 0 20px}#result-close{float:right}#result-video{display:block;width:100%;max-height:57dvh;border-radius:13px;background:#f5f5f7;margin-bottom:20px}#download-video{display:block;text-align:center;background:#0071e3;color:white;text-decoration:none;padding:15px;border-radius:24px;font-size:14px;font-weight:600}.photo-options{transition:opacity .2s}body:not(.has-photo) .photo-options{opacity:.45}button:hover:not(:disabled),.upload-button:hover{filter:brightness(.96)}@media(max-width:734px){.studio-header{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:20px}.studio-header h1{font-size:34px}.studio-actions{width:100%}.studio-actions>*{flex:1;text-align:center}.studio-settings{left:4%;right:4%;top:175px;width:92%;max-height:calc(100dvh - 195px)}.studio-status{bottom:16px}.studio-playing .studio-header{opacity:0}.studio-playing .viewer{top:46%}#playback-bar{bottom:25px}}


.studio-settings>.settings-grid:last-child{position:sticky;bottom:-24px;background:#fff;padding:12px 0 20px;margin-bottom:-24px;z-index:2}

.studio-playing.studio-portrait #render{inset:auto!important;left:0!important;right:0!important;top:50%!important;width:var(--studio-render-size)!important;height:var(--studio-render-size)!important;aspect-ratio:1;transform:translateY(-50%)}
.media-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px;max-height:235px;overflow:auto;padding:3px}.media-library:empty{display:none}.media-card{position:relative;min-width:0}.media-pick{border:2px solid transparent;padding:0 0 6px;background:#f4f4f6;border-radius:11px;overflow:hidden;width:100%;cursor:pointer;text-align:left;position:relative}.media-pick[aria-pressed=true]{border-color:#0071e3;background:#eaf3ff}.media-pick img{width:100%;height:62px;object-fit:cover;display:block}.media-pick span{font-size:10px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:5px 5px 0}.media-pick small{position:absolute;top:43px;left:4px;padding:2px 5px;background:#15151ccc;color:white;border-radius:5px;font-size:9px}.media-remove{position:absolute;right:3px;top:3px;width:20px;height:20px;background:#16161bc9;color:white;border:0;border-radius:50%;cursor:pointer;font-size:15px}.media-tools{display:flex;gap:12px;align-items:center;margin-top:10px}.media-tools button{font-size:11px}.media-tools button:disabled{opacity:.4;cursor:default}.scene-assignments{border-top:1px solid #e8e8ed;margin-top:18px;padding-top:14px}.scene-assignments summary{font-size:12px;cursor:pointer;color:#55555b}.scene-assignments summary span{float:right;color:#929298;font-size:10px}.scene-assignments label{display:grid;grid-template-columns:50px 1fr;align-items:center;gap:8px}.scene-assignments select{min-width:0;margin:0}.media-note{font-size:10px!important;color:#8a8a90!important}.studio-settings{scrollbar-width:thin}.studio-status{z-index:42}
/* Keep language names recognizable in every locale. */
#language-select{font:inherit;font-size:13px;color:#34343a;background:#fff;border:1px solid #dcdce1;border-radius:18px;padding:9px 25px 9px 12px;max-width:125px;cursor:pointer;min-height:38px}
.studio-actions{flex-wrap:wrap;justify-content:flex-end}
html[lang="ja"] body,html[lang="ko"] body{word-break:normal;overflow-wrap:anywhere}
@media(max-width:600px){.studio-header{gap:10px;align-items:flex-start}.studio-actions{gap:6px}#language-select{font-size:12px;min-height:34px;padding:7px 18px 7px 9px}.studio-header h1{font-size:21px}}
#website-dialog{border:1px solid #e4e4e9;border-radius:24px;padding:32px;width:min(540px,calc(100vw - 32px));max-height:90vh;overflow:auto;box-sizing:border-box;color:#202024;box-shadow:0 24px 90px #0002}
#website-dialog::backdrop{background:#18182366;backdrop-filter:blur(8px)}
#website-dialog h2{font-size:28px;letter-spacing:-.04em;margin:10px 30px 16px 0;line-height:1.3}
#website-close{position:absolute;right:18px;top:14px;border:0;background:transparent;font-size:28px;color:#777;cursor:pointer}
.website-intro{font-size:14px;line-height:1.7;color:#666}
#website-form>label{display:block;font-size:13px;font-weight:600;margin:22px 0 8px}
#website-url{box-sizing:border-box;width:100%;font:inherit;font-size:16px;padding:14px;border:1px solid #d5d5dd;border-radius:12px;background:#f8f8fa;color:#222}
#website-url:focus{outline:2px solid #0071e3;outline-offset:2px}
.website-steps{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:#777;margin:16px 0}
#website-status{font-size:13px;line-height:1.6;color:#36537a;min-height:22px}
#website-submit{width:100%;border:0;border-radius:12px;padding:14px;font:inherit;font-size:14px;cursor:pointer}
#website-cancel{display:block;margin:12px auto 0}#website-cancel[hidden]{display:none}
#website-submit:disabled{opacity:.55;cursor:wait}
.website-story{border-top:1px solid #e5e5ea;margin:16px 0;padding-top:14px}.website-story summary{font-size:13px;font-weight:600;cursor:pointer}.website-story ol{list-style:none;padding:0;margin:8px 0;display:grid;gap:9px}.website-story li{border-left:2px solid #ccd8ef;padding:3px 0 3px 10px;display:grid;gap:3px}.website-story strong{font-size:11px;color:#546a92}.website-story .website-source{font-size:12px;line-height:1.45}.website-story small{font-size:10px;color:#777}.website-story[hidden]{display:none}
#website-mode{width:100%;box-sizing:border-box;border:1px solid #d5d5dd;border-radius:10px;padding:12px;font:inherit;font-size:13px;background:#f8f8fa;color:#222}.visual-source-link{font-size:10px;color:#2463b9;grid-row:4;text-decoration:none}
#website-verify{display:block;width:100%;margin-top:12px;padding:12px;border-radius:10px;background:#eaf1ff;color:#245cbb;font-weight:600}#website-verify[hidden]{display:none}

/* Right-hand editor; translated labels can grow without clipping controls. */
.studio-header>div:first-child{flex:1 1 260px;min-width:0}
.studio-header h1{line-height:1.15;margin-left:0;overflow-wrap:break-word}
.studio-actions{flex:0 1 auto;max-width:65%}
.studio-actions>*{flex-shrink:0;line-height:1.4}
.studio-settings{left:auto;right:5.2%;top:var(--settings-top,112px);width:360px;max-width:calc(100vw - 32px);max-height:calc(100dvh - var(--settings-top,112px) - 16px);overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere}
.settings-heading{align-items:flex-start;gap:12px}
.settings-heading h2{line-height:1.35;letter-spacing:-.3px}
.settings-heading button{flex:0 0 28px}
.studio-settings select{min-width:0;max-width:100%;text-overflow:ellipsis;padding-right:22px}
.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.settings-grid>*{min-width:0}
.settings-grid button{white-space:normal;line-height:1.45;overflow-wrap:break-word}
.media-tools{flex-wrap:wrap}
.scene-assignments summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;cursor:pointer}
.scene-assignments summary:before{content:'▸'}
.scene-assignments[open] summary:before{content:'▾'}
.scene-assignments summary span{float:none;margin-left:auto}
.scene-assignments label{grid-template-columns:minmax(75px,1fr) minmax(0,1.8fr);line-height:1.4}
#export-result h2,#website-dialog h2{padding-right:24px;line-height:1.25;overflow-wrap:break-word}
#website-dialog button,#download-video{white-space:normal;line-height:1.45;overflow-wrap:break-word}
.website-steps{flex-wrap:wrap;gap:8px}
#playback-bar{max-width:calc(100vw - 24px)}
#export-progress{min-width:0;flex:1}
#stop-animation{flex-shrink:0}
html[lang="ko"] body{word-break:keep-all;overflow-wrap:break-word}
html[lang="ja"] body{word-break:normal;line-break:strict;overflow-wrap:break-word}
@media(min-width:735px){
 .settings-open:not(.studio-playing) #render{left:-180px;right:180px}
 .settings-open .controls,.settings-open .navigation,.settings-open .viewer>.close{visibility:hidden}
 .settings-open #fallback{right:360px;width:calc(100% - 360px)}
}
@media(max-width:1000px){
 .studio-header{flex-wrap:wrap;gap:14px}
 .studio-header>div:first-child{flex-basis:100%}
 .studio-actions{max-width:100%;justify-content:flex-start}
 .studio-header h1{font-size:30px}
}
@media(max-width:734px){
 .studio-header>div:first-child{flex:auto}
 .studio-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .studio-actions>*{min-width:0;max-width:100%;white-space:normal;text-align:center}
 #language-select{max-width:100%;width:100%}
 .studio-settings{right:16px;left:auto;width:360px;padding:20px}
 .studio-settings>.settings-grid:last-child{bottom:-20px;margin-bottom:-20px}
 .studio-header h1{font-size:28px}
 .viewer{height:auto;min-height:880px;padding-bottom:24px}
 .controls{position:relative;top:auto;margin-top:430px}
 .viewer.free{min-height:880px}
}

.studio-credit{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 14px;width:89.7%;margin:9px auto 0;color:#77777c;font-size:11px;line-height:1.5;text-align:right}
.studio-credit>span{display:inline-block}
.studio-credit a{color:inherit;text-decoration:none;text-underline-offset:3px}
.studio-credit a:hover{text-decoration:underline;color:#1d1d1f}
.studio-credit a:focus-visible{outline:2px solid #0071e3;outline-offset:3px;border-radius:2px}
.studio-playing .studio-credit{display:none}
@media(max-width:734px){.studio-credit{width:92%;gap:4px 12px;font-size:10px;margin-top:12px}}
/* Unified vector icon treatment and input feedback. */
.ui-icon{width:18px;height:18px;flex:0 0 18px;display:inline-block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;pointer-events:none}
.icon-label{display:inline-flex!important;align-items:center;justify-content:center;gap:8px}
.icon-only{display:inline-grid!important;place-items:center;padding:0!important;line-height:1}
.studio-actions button span{margin-left:0}
.round,.settings-heading button,#result-close,#website-close{width:36px;height:36px;flex:0 0 36px;border:0;border-radius:50%;background:#eeeef0;color:#646469}
.round svg,.settings-heading button svg,#result-close svg,#website-close svg{width:18px;height:18px;stroke-width:2}
.plus{width:22px;height:22px;border:0;background:#dedee3;border-radius:50%;flex:0 0 22px}
.plus .ui-icon{width:14px;height:14px;stroke-width:2}
.slider-glyph .ui-icon{width:23px;height:23px;stroke-width:1.8}
#download-video{display:flex!important}
.scene-assignments summary,.website-story summary{justify-content:flex-start;min-height:36px;list-style:none}
.scene-assignments summary::before{content:none}
summary::-webkit-details-marker{display:none}
summary>.ui-icon{width:12px;height:12px;flex-basis:12px;transition:transform .18s ease}
details[open]>summary>.ui-icon{transform:rotate(90deg)}
.media-pick small.icon-label{gap:3px}
.media-pick small .ui-icon{width:11px;height:11px;flex-basis:11px}
.media-remove{width:28px;height:28px;right:2px;top:2px;background:#303034e6}
.media-remove .ui-icon{width:13px;height:13px;stroke-width:2}
button,.upload-button,summary,a.primary{touch-action:manipulation}
button:not(:disabled),.upload-button,a.primary{transition:background-color .15s ease,box-shadow .15s ease,opacity .15s ease}
button:active:not(:disabled),.upload-button:active,a.primary:active{filter:brightness(.88)}
button:disabled{cursor:default}
button:focus-visible,select:focus-visible,summary:focus-visible,a.primary:focus-visible{outline:3px solid #0071e3;outline-offset:3px}
@media(pointer:coarse){.round,.settings-heading button,#result-close,#website-close,.media-remove{min-width:44px;min-height:44px}.text-button,summary,.studio-actions>*{min-height:44px}.media-pick img{height:76px}.media-pick small{top:57px}}
@media(prefers-reduced-motion:reduce){summary>.ui-icon{transition:none}}
@media(prefers-contrast:more){.round,.settings-heading button,#result-close,#website-close,.plus{color:#1d1d1f;box-shadow:inset 0 0 0 1px #777}}
.icon-label[hidden],.icon-only[hidden]{display:none!important}
.scene-assignments summary,.website-story summary{width:100%}
select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23646469' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px;padding-right:30px!important}
.studio-settings select,#language-select,#website-mode{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23646469' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:14px}
@media(forced-colors:active){select{appearance:auto;-webkit-appearance:auto;background-image:none!important}.ui-icon{stroke:ButtonText}}
.studio-settings .audio-option{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
.audio-option input{appearance:none;width:36px;height:22px;flex:0 0 36px;border-radius:14px;background:#c7c7cc;position:relative;cursor:pointer;margin:0;transition:background .15s}
.audio-option input::before{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}
.audio-option input:checked{background:#0071e3}.audio-option input:checked::before{transform:translateX(14px)}
@media(prefers-reduced-motion:reduce){.audio-option input,.audio-option input::before{transition:none}}

.studio-credit{justify-content:space-between;align-items:baseline;text-align:left}
.credit-author{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 16px}
.credit-x{display:inline-flex;align-items:center;gap:5px}
.x-logo{width:11px;height:11px;flex:0 0 11px;vertical-align:middle}
.studio-credit .credit-inspiration{margin-left:auto;text-align:right}
@media(max-width:480px){.credit-author{flex-direction:column;gap:3px}.studio-credit{align-items:flex-end}}

/* Toolbar optical alignment: shared height, lighter symbols, restrained focus ring. */
.studio-actions{gap:10px;align-items:center}
.studio-actions button,.studio-actions .upload-button{min-height:44px;padding:12px 18px;gap:9px;line-height:20px;border-radius:24px}
.studio-actions .ui-icon{width:18px;height:18px;flex-basis:18px;stroke-width:1.7}
.studio-actions .upload-button>.ui-icon{width:20px;height:20px;flex-basis:20px;stroke-width:1.9}
#language-select{min-height:44px;border-radius:24px;padding:10px 34px 10px 15px!important;line-height:22px;background-position:right 13px center;background-size:13px;border-color:#d9d9de;box-shadow:0 1px 2px #00000003}
.studio-actions button:focus-visible,#language-select:focus-visible{outline:2px solid #0071e3;outline-offset:2px}
.studio-actions .upload-button:focus-within{outline:2px solid #0071e3;outline-offset:2px}
@media(max-width:734px){.studio-actions{gap:8px}.studio-actions button,.studio-actions .upload-button{padding:10px 12px;gap:7px}}
/* Compact toolbar: smaller artwork and type, comfortable hit areas. */
.studio-actions{gap:8px}
.studio-actions button,.studio-actions .upload-button{font-size:12px;font-weight:500;line-height:18px;padding:10px 15px;gap:7px;min-height:40px;border-radius:21px}
.studio-actions .ui-icon{width:14px;height:14px;flex-basis:14px;stroke-width:1.65}
.studio-actions .upload-button>.ui-icon{width:16px;height:16px;flex-basis:16px;stroke-width:1.7}
#language-select{font-size:12px;font-weight:400;min-height:40px;line-height:18px;padding:10px 29px 10px 13px!important;background-size:11px;background-position:right 11px center;border-radius:21px}
.studio-settings .ui-icon,#playback-bar .ui-icon,#download-video .ui-icon{width:15px;height:15px;flex-basis:15px;stroke-width:1.65}
.round svg,.settings-heading button svg,#result-close svg,#website-close svg{width:15px;height:15px;stroke-width:1.8}
.studio-settings summary>.ui-icon{width:10px;height:10px;flex-basis:10px}
.studio-settings .media-pick small .ui-icon{width:10px;height:10px;flex-basis:10px}
.studio-settings .media-remove .ui-icon{width:12px;height:12px;stroke-width:1.8}
@media(max-width:734px){.studio-actions button,.studio-actions .upload-button{font-size:12px;padding:10px 12px;gap:6px}}
@media(pointer:coarse){.studio-actions button,.studio-actions .upload-button,#language-select{min-height:44px}}

/* Iconify Lucide paths inherit the compact toolbar stroke weight. */
.ui-icon [stroke-width]{stroke-width:inherit}
select,.studio-settings select,#language-select,#website-mode{background-image:url('assets/select-chevron.svg')}
@media(forced-colors:active){select,.studio-settings select,#language-select,#website-mode{background-image:none!important}}

/* ============================================================
   Layout refinement pass: consistent spacing & alignment.
   Scoped to page chrome (header / settings panel / footer /
   dialogs). The 3D viewer overlay (#render, .controls,
   .navigation, .close, .reopen, .free-hint, .loading, #fallback,
   .viewer geometry) keeps its original percentage/vw math so the
   product visualization stays perfectly framed.
   ============================================================ */

/* Header: align title block and toolbar on a shared baseline,
   use the spacing scale instead of ad-hoc gaps, add a soft
   divider so the toolbar reads as one balanced row. */
.studio-header{
  align-items:flex-end;
  gap:var(--space-5);
  padding-bottom:var(--space-4);
  border-bottom:1px solid var(--hairline);
  margin-bottom:var(--space-6);
  animation:chrome-fade-in .5s ease;
}
.studio-header>div:first-child{display:flex;flex-direction:column;gap:var(--space-2)}
.eyebrow{margin:0}
.studio-actions{gap:var(--space-2)}

/* Settings panel: normalize internal rhythm to the spacing scale
   so labels, dividers and groups feel evenly weighted. */
.studio-settings{
  box-shadow:var(--shadow-card);
  border-color:var(--hairline);
  padding:var(--space-6);
}
.settings-heading{margin-bottom:var(--space-2)}
.settings-heading h2{line-height:1.3}
.studio-settings p{margin:var(--space-2) 0 0}
.studio-settings label{margin-top:var(--space-4)}
.studio-settings select{margin-top:var(--space-2)}
.media-library{margin-top:var(--space-4);gap:var(--space-2)}
.media-tools{margin-top:var(--space-3);gap:var(--space-4)}
.scene-assignments{margin-top:var(--space-5);padding-top:var(--space-4)}
.website-story{margin:var(--space-4) 0;padding-top:var(--space-4)}
.settings-rule{margin:var(--space-5) 0 var(--space-1)}
.export-note{margin-top:var(--space-4)}
.settings-grid{gap:var(--space-3)}
.audio-option{margin-top:var(--space-4)}

/* Dialogs: unify padding + heading rhythm between the export
   result and the URL-import dialog. */
#export-result,#website-dialog{
  padding:var(--space-7);
  box-shadow:var(--shadow-pop);
}
#export-result h2,#website-dialog h2{margin:var(--space-2) 0 var(--space-4)}
.website-intro{margin:0 0 var(--space-2)}
#website-form>label{margin:var(--space-5) 0 var(--space-2)}
#result-video{margin-bottom:var(--space-5)}

/* Footer credit: breathing room + a hairline to separate it from
   the viewer, matching the header treatment for symmetry. */
.studio-credit{
  padding-top:var(--space-4);
  border-top:1px solid var(--hairline);
  animation:chrome-fade-in .6s ease;
}

/* Card-like surfaces share one soft elevation language. */
.media-pick{box-shadow:0 1px 2px rgba(20,20,24,.05)}
.media-pick[aria-pressed=true]{box-shadow:0 4px 14px rgba(0,113,227,.18)}

@keyframes chrome-fade-in{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:translateY(0)}
}
@media(prefers-reduced-motion:reduce){.studio-header,.studio-credit{animation:none}}
.studio-playing .studio-header{animation:none}

@media(max-width:734px){
  .studio-header{align-items:flex-start;padding-bottom:var(--space-4);gap:var(--space-4)}
  .studio-settings{padding:var(--space-5)}
  #export-result,#website-dialog{padding:var(--space-5)}
}
