:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#183431;background:#f7faf9;font-synthesis:none;--ink: #183431;--muted: #586b66;--brand: #087c72;--brand-hover: #06685f;--soft: #eaf4f0;--border: #dce6e1;--surface: #fff;--danger: #a82f29;--radius: 18px;--viewport-height: 100dvh;--viewport-top: 0px}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%;overflow:hidden}button,input,textarea{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,summary,a,label.dialect-option{touch-action:manipulation}button,a,summary{cursor:pointer}button{color:inherit}button:disabled,input:disabled{cursor:not-allowed}button:disabled{opacity:.5}button{transition:background-color .14s ease,color .14s ease}button:active:not(:disabled){filter:brightness(.94)}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #168f81;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650;line-height:1.35}p{line-height:1.65}svg{flex:0 0 auto}a{color:var(--brand)}.app-shell{position:fixed;top:var(--viewport-top);left:0;right:0;height:var(--viewport-height);display:flex;flex-direction:column;background:#f7faf9}.studio-layout,.studio-workspace{display:flex;flex:1;flex-direction:column;min-width:0;min-height:0}.studio-sidebar{display:none}.quota-redeem{padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.quota-redeem h2{font-size:18px;margin:0 0 8px}.quota-redeem form{margin-top:20px}.redeem-controls{display:flex;gap:12px;flex-wrap:wrap}.redeem-controls input{flex:1 1 160px;min-width:0;text-transform:uppercase}.redeem-controls .button{flex:0 0 auto}.settings-options{display:grid;gap:22px}.project-layout>*+*{margin-top:22px}.screen-header{flex:0 0 auto;min-height:calc(60px + env(safe-area-inset-top));padding:calc(7px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);background:var(--surface)}.header-leading{display:flex;align-items:center;gap:12px;min-width:0}.screen-title{font-size:18px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;outline:none}.icon-button{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;background:transparent}.icon-button:hover{background:var(--soft)}.icon-button svg{width:22px;height:22px}.screen-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;padding:20px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left));scrollbar-gutter:stable;scroll-padding-block:20px}.screen-body>*{max-width:840px;margin-left:auto;margin-right:auto}.screen-body>*+*{margin-top:22px}.action-bar{flex:0 0 auto;padding:10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));border-top:1px solid var(--border);background:var(--surface)}.action-bar>*{max-width:840px;margin-inline:auto}.button{min-height:48px;border:1px solid transparent;border-radius:12px;padding:10px 16px;font-size:16px;line-height:1.4;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none}.button svg{width:20px;height:20px}.primary{background:var(--brand);color:#fff}.primary:hover:not(:disabled){background:var(--brand-hover)}.secondary{background:var(--soft);color:#22564d}.secondary:hover:not(:disabled){background:#dceee6}.danger{background:var(--danger);color:#fff}.danger-quiet{background:#fff0ed;color:var(--danger)}.full-width{width:100%}.text-button{border:0;background:none;color:var(--brand);font-size:14px;font-weight:600;min-height:44px;padding:8px 4px;display:inline-flex;align-items:center;justify-content:center;gap:4px}.helper{color:var(--muted);font-size:13px;line-height:1.65}.field-error{color:var(--danger);font-size:14px;line-height:1.6;margin-top:8px;overflow-wrap:anywhere}.quiet-status{font-size:13px;color:#326d58;display:flex;align-items:center;gap:5px}.brand{display:inline-flex;align-items:center;gap:12px;font-size:19px;font-weight:700;white-space:nowrap}.brand-mark,.button-wave{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:30px;height:30px;flex:0 0 auto;color:var(--brand)}.brand-mark i,.button-wave i{width:4px;border-radius:5px;background:currentColor;height:13px}.brand-mark i:nth-child(2),.button-wave i:nth-child(2){height:27px}.brand-mark i:nth-child(3),.button-wave i:nth-child(3){height:21px}.brand-mark i:nth-child(4),.button-wave i:nth-child(4){height:16px}.button-wave{color:inherit;width:24px;height:20px}.button-wave i{width:3px}.button-wave i:nth-child(2){height:20px}.project-grid{display:grid;gap:12px}.project-card{display:flex;align-items:center;gap:12px;width:100%;min-height:88px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);text-align:left}.project-card:hover{border-color:#8bc1af}.project-copy{min-width:0;flex:1}.project-copy strong{display:block;font-size:17px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:8px}.project-copy>span{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.project-copy i{font-style:normal}.status-failed{color:var(--danger)}.status-completed{color:#267255}.status-processing,.status-queued{color:#805817}.empty-state{text-align:center;padding:50px 12px 32px}.empty-state h2,.empty-state h3{font-size:18px;margin-bottom:12px}.empty-state p{font-size:15px;color:var(--muted)}.empty-small{padding:28px 8px;font-size:14px;color:var(--muted);text-align:center}.loading{display:flex;justify-content:center;align-items:center;gap:10px;padding:32px 8px;font-size:14px;color:var(--muted)}.loading svg{width:20px}.notice{border:1px solid #b8d8cc;background:#eff7f3;border-radius:13px;padding:14px;display:flex;gap:10px;align-items:flex-start;color:#30584b;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.notice>svg{width:18px;height:22px}.notice>div{flex:1;min-width:0}.notice--error{background:#fff4f0;border-color:#edc9c1;color:#99352c}.notice .text-button{flex:0 0 auto;margin-block:-6px}.connection-bar{background:#f7eed9;color:#674a16;padding:8px 20px;text-align:center;font-size:13px;flex:0 0 auto}.footer-stack{display:grid;gap:8px}.footer-stack>small{text-align:center;font-size:11px;color:var(--muted);line-height:1.5}.upload-progress{display:grid;gap:6px;font-size:13px;color:var(--muted)}progress{width:100%;height:8px;accent-color:var(--brand);border:0;border-radius:10px;overflow:hidden;background:#dce8e1}progress::-webkit-progress-bar{background:#dce8e1}progress::-webkit-progress-value{background:var(--brand);border-radius:10px}.create-layout{display:grid;gap:26px}.creation-source{display:grid;align-content:start;gap:22px;min-width:0}.creation-options{display:grid;gap:26px}.source-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.source-option{position:relative;min-height:48px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface);display:flex;align-items:center;justify-content:center;text-align:center;cursor:pointer;touch-action:manipulation;transition:background-color .14s ease,border-color .14s ease}.source-option input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.source-option:has(input:focus-visible){outline:3px solid var(--brand);outline-offset:3px}.source-option.selected{border-color:var(--brand);background:var(--soft);color:var(--brand);font-weight:650;box-shadow:inset 0 0 0 1px var(--brand)}.source-option:hover:not(:has(input:disabled)){background:var(--soft)}fieldset:disabled .source-option{opacity:.6;cursor:not-allowed}.creation-text-label{font-size:17px;font-weight:650}.creation-text-count{flex:0 0 auto;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}.creation-text-count.over-limit{color:var(--danger)}.creation-text{display:block;width:100%;min-height:240px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);resize:vertical;font-size:16px;line-height:1.85}.creation-text[aria-invalid=true]{border-color:var(--danger)}.creation-text:disabled{opacity:.6;cursor:not-allowed}.creation-text+.helper{margin-top:10px}.field-group{border:0;padding:0;margin:0;min-width:0}.field-group legend{font-size:17px;font-weight:650;margin-bottom:14px}.section-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.section-label h2{font-size:17px;display:flex;align-items:center;gap:8px}.section-label h3{font-size:16px}.upload-choice{width:100%;min-height:126px;border:1px dashed #96bcae;border-radius:var(--radius);background:var(--surface);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:18px}.upload-choice strong{font-size:16px;font-weight:600;overflow-wrap:anywhere;color:var(--ink)}.upload-choice small{display:block;margin-top:7px;font-size:12px;color:var(--muted)}.upload-choice.has-file{min-height:78px;flex-direction:row;justify-content:flex-start;text-align:left}.upload-choice.has-file>span{min-width:0}.upload-choice.has-file strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-choice.drag-over{background:#dceee6;border:2px solid var(--brand)}.upload-preview{margin-top:12px}.upload-preview video{display:block;width:100%;height:132px;border-radius:14px;background:#172723;object-fit:contain}.dialect-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dialect-option{position:relative;min-height:48px;padding:10px 6px;border:1px solid var(--border);background:var(--surface);border-radius:12px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:15px;white-space:nowrap;cursor:pointer}.dialect-option input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.dialect-option:has(input:focus-visible){outline:3px solid #168f81;outline-offset:2px}.dialect-option.selected{border:1.5px solid var(--brand);color:var(--brand);background:#e8f5ee;font-weight:650}fieldset:disabled .dialect-option{opacity:.6;cursor:not-allowed}.voice-picker{min-width:0}.selected-voice{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.voice-trigger{display:flex;align-items:center;gap:12px;width:100%;background:transparent;border:0;padding:16px;text-align:left}.voice-trigger>span:nth-child(2){flex:1;min-width:0}.voice-trigger strong{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.voice-trigger small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.voice-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--soft);color:var(--brand)}.selected-voice>.audio-player{border-top:1px solid #edf1ee;padding:8px 16px 14px}.voice-grid,.voice-list{display:grid;gap:16px}.voice-card{display:grid;gap:12px;min-width:0;padding:16px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.voice-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;min-width:0}.voice-card-head>div{min-width:0}.voice-card h2,.voice-card h3{font-size:17px}.voice-filename{color:var(--muted);font-size:12px;overflow-wrap:anywhere;margin-top:5px}.badge{font-size:12px;color:#23624c;background:#e4f1e9;border-radius:999px;padding:5px 10px;display:inline-flex;align-items:center;gap:4px;flex:0 0 auto}.badge--pending{color:#7a561b;background:#f7efd9}.audio-player{width:100%;min-width:0}.audio-player audio{display:none}.audio-controls{display:flex;align-items:center;gap:14px;width:100%}.play-button{border:0;width:48px;height:48px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;background:var(--brand);color:#fff}.play-button svg{width:20px;height:20px}.play-button:hover{background:var(--brand-hover)}.audio-track{flex:1;min-width:0}.audio-track input{display:block;width:100%;min-width:0;height:44px;padding:0;margin:0;border:0;background:transparent;accent-color:var(--brand);cursor:pointer}.audio-time{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.audio-player--large{margin-top:20px;padding-block:8px}.audio-player--large .play-button{width:56px;height:56px}.audio-player--large .play-button svg{width:24px;height:24px}.result-card{border:1px solid #cbded3;border-radius:20px;padding:20px;background:#fff}.result-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.result-card h2{font-size:26px;letter-spacing:-.5px}.result-voice{color:var(--muted);font-size:14px;margin-top:8px}.pending-note{font-size:13px;color:#775724;border-top:1px solid var(--border);margin-top:18px;padding-top:14px}.result-actions{display:flex;align-items:center;gap:12px}.result-actions>.button{min-width:84px;padding-inline:12px}.download-control{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:1;min-width:0}.download-control>.button{flex:1;min-width:0;white-space:nowrap}.download-error{flex-basis:100%}.script-preview{padding:0 2px}.script-preview p{color:var(--muted);font-size:15px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.script-preview .section-label{margin-bottom:5px}.disclosure{border:1px solid var(--border);background:#fff;border-radius:15px;padding:0 16px}.disclosure summary{min-height:56px;display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:15px;list-style:none}.disclosure summary::-webkit-details-marker{display:none}.disclosure summary:after{content:"+";color:var(--muted);font-size:21px}.disclosure[open] summary:after{content:"−"}.disclosure summary span{font-size:12px;color:var(--muted);margin-left:auto}.source-video{display:block;width:100%;max-height:350px;margin-bottom:16px;background:#172723;border-radius:12px}.source-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:16px;font-size:15px;line-height:1.8;color:var(--muted)}.history-list{display:grid;gap:20px;padding-bottom:20px}.history-item{border-top:1px solid var(--border);padding-top:18px;display:grid;gap:14px}.history-item .section-label{margin:0}.processing-card,.failure-card{border:1px solid #c9ddd1;background:#edf5ee;border-radius:var(--radius);padding:20px}.processing-title{display:flex;gap:10px;align-items:center}.processing-title svg{width:20px;color:var(--brand)}.processing-card h2,.failure-card h2{font-size:18px}.processing-card progress{margin-top:22px}.processing-card p,.failure-card p{font-size:14px;margin-top:12px}.processing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.processing-head .processing-title{min-width:0;align-items:flex-start}.processing-head .processing-title svg{margin-top:2px}.processing-percent{flex-shrink:0;text-align:right;color:var(--brand)}.processing-percent strong{display:block;font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}.processing-percent span{display:block;margin-top:4px;font-size:12px;color:var(--muted)}.processing-stages{display:flex;flex-wrap:wrap;gap:12px 20px;margin:20px 0 0;padding:0;list-style:none}.processing-stages li{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:13px}.processing-stages .is-current{color:var(--ink);font-weight:650}.processing-stages .is-done{color:var(--brand)}.processing-step-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;height:20px;border:1px solid var(--border);border-radius:50%;font-size:11px;background:var(--surface)}.is-current .processing-step-icon{color:#fff;background:var(--brand);border-color:var(--brand)}.processing-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 16px;margin-top:10px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}.processing-card .processing-hint{color:var(--muted);font-size:13px}.failure-card{background:#fff4ef;border-color:#eacdc2;color:#873c2b}.failure-card .button{margin-top:16px}.editor-body{display:flex;flex-direction:column;padding-block:16px;overflow:hidden}.editor-body>*{width:100%;max-width:840px}.editor-info{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:14px;flex:0 0 auto}.editor-info .field-error{margin:0}.script-editor{flex:1 1 auto;min-height:120px;width:100%;margin-top:16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--ink);padding:16px;resize:none;font-size:16px;line-height:1.85;overflow-y:auto}.editor-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);margin-top:12px!important;flex:0 0 auto}.settings-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:64px;background:none;border:0;padding:18px;text-align:left}.setting-value{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;color:var(--muted);font-size:13px}.settings-list>*+*{border-top:1px solid var(--border)}.privacy-note{padding:18px}.privacy-note strong{font-size:15px}.privacy-note p{font-size:13px;color:var(--muted);margin-top:6px}.usage-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:24px}.usage-card>p:first-child{color:var(--muted);font-size:14px}.usage-number{font-size:40px;font-weight:650;color:var(--brand);margin-top:12px;letter-spacing:-1px}.usage-number>span{font-size:14px;font-weight:400;letter-spacing:0;margin-left:8px;color:var(--muted)}.usage-details{display:grid;gap:8px;font-size:13px;color:var(--muted);margin-block:20px}.usage-details>span{display:flex;justify-content:space-between;gap:12px}.usage-card .helper{font-size:12px;margin-top:16px}.logout-button{display:flex;margin:28px auto 8px;min-width:160px}.sheet{padding:0;border:0;margin:auto auto 0;width:min(100%,560px);max-width:100%;max-height:calc(var(--viewport-height) - 12px);border-radius:24px 24px 0 0;color:var(--ink);overflow:hidden;background:var(--surface)}.sheet::backdrop{background:#102d2966}.sheet-surface{display:flex;flex-direction:column;max-height:calc(var(--viewport-height) - 12px)}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px 12px 22px;border-bottom:1px solid var(--border);flex:0 0 auto}.sheet-header h2{font-size:20px}.sheet-content{padding:20px 22px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.sheet-content>*+*{margin-top:16px}.sheet form>.button{margin-top:20px}.menu-actions{display:grid;gap:12px}.menu-actions .button{justify-content:flex-start}.confirmation-copy{color:var(--muted);font-size:15px}.login-phone-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block:12px 20px;color:var(--muted)}.login-phone-summary>span{min-width:0;overflow-wrap:anywhere}.login-phone-summary>button{min-width:44px;flex-shrink:0}.login-dev-options{margin-top:24px;color:var(--muted)}.login-dev-options summary{min-height:44px;display:flex;align-items:center;font-size:14px}.voice-recorder>*+*{margin-top:16px}.recording-script{padding:12px 14px;border:1px solid var(--border);border-radius:12px;font-size:14px}.recording-script summary{min-height:44px;display:flex;align-items:center;color:var(--brand)}.recording-script p{margin-top:8px}.recording-status{font-weight:600}.recording-time{font-size:36px;font-weight:650;font-variant-numeric:tabular-nums}.recording-time span{font-size:16px;color:var(--muted);font-weight:400}.recording-meter{display:block;width:100%;height:20px;accent-color:var(--brand)}.recording-stop{color:#fff;background:var(--danger)}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.input-label{font-size:14px;font-weight:600;display:block;margin-bottom:9px}input:not([type=radio]):not([type=range]):not([type=file]){width:100%;min-height:52px;padding:12px 15px;background:var(--surface);border:1px solid #c9d8d0;border-radius:12px;color:var(--ink);font-size:16px}input::placeholder,textarea::placeholder{color:#6b7c76}input[readonly]{background:#f0f4f1!important}.snackbar{position:absolute;z-index:50;bottom:calc(92px + env(safe-area-inset-bottom));left:20px;right:20px;max-width:540px;margin:0 auto;border-radius:14px;background:#1d3e35;color:#fff;padding:10px 10px 10px 16px;display:flex;align-items:center;gap:12px;font-size:14px;line-height:1.5;box-shadow:0 8px 24px #18342b1a}.snackbar>span{flex:1}.snackbar .icon-button{color:#fff}.snackbar .icon-button:hover{background:#315449}.login-page{width:100%;flex:1;overflow-y:auto;padding:calc(28px + env(safe-area-inset-top)) max(26px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(26px,env(safe-area-inset-left))}.login-page>.brand{margin-bottom:36px}.login-content{max-width:430px;margin:0 auto}.login-content h1{font-size:22px;margin-bottom:24px}.login-form{margin:0}.login-form>.button{margin-top:22px}.login-form>.helper{margin-bottom:18px}.code-label{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.code-label .input-label{margin:0}.demo-login{display:flex;margin:20px auto 0;font-size:12px}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:absolute;top:-100px;left:16px;z-index:100;padding:12px;background:#fff}.skip-link:focus{top:12px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(min-width:768px){.screen-header{padding-inline:max(32px,calc((100% - 980px)/2))}.screen-body{padding:36px 32px}.action-bar{padding:16px 32px 20px}.project-grid,.voice-grid{grid-template-columns:1fr 1fr}.create-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px}.create-layout>.notice{grid-column:1 / -1}.upload-choice{min-height:230px}.upload-choice.has-file{min-height:88px}.upload-preview video{height:260px}.result-card{padding:32px}.result-card h2{font-size:34px}.audio-player--large{max-width:640px;margin-inline:auto}.sheet{margin:auto;border-radius:22px;max-height:calc(var(--viewport-height) - 48px)}.sheet-surface{max-height:calc(var(--viewport-height) - 48px)}.login-page{padding-inline:max(40px,calc((100% - 1080px)/2))}.login-content{background:#fff;border:1px solid var(--border);padding:36px 40px;border-radius:24px;max-width:490px}.login-page>.brand{margin-bottom:30px}}@media(min-width:1024px){.studio-layout{--workspace-max: 1280px;--workspace-gutter: 32px;display:grid;grid-template-columns:224px minmax(0,1fr);height:100%}.studio-sidebar{display:flex;flex-direction:column;gap:28px;min-height:0;overflow-y:auto;padding:28px 16px 20px;background:var(--surface);border-right:1px solid var(--border)}.studio-sidebar .brand{padding:0 8px;font-size:20px}.sidebar-create{width:100%}.studio-sidebar nav{display:grid;gap:8px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:12px 16px;border:0;border-radius:10px;color:var(--muted);background:transparent;font-size:15px;text-align:left}.nav-item:hover{background:#f1f6f3;color:var(--ink)}.nav-item[aria-current=page]{background:var(--soft);color:var(--brand);font-weight:650;box-shadow:inset 3px 0 var(--brand)}.sidebar-create[aria-current=page]{outline:2px solid var(--brand);outline-offset:3px}.sidebar-account{margin-top:auto;padding-top:20px;border-top:1px solid var(--border)}.studio-workspace{position:relative;overflow:hidden}.studio-workspace .screen-header{min-height:84px;padding:18px var(--workspace-gutter)}.studio-workspace .screen-title{font-size:23px}.studio-workspace .screen-body{padding:32px var(--workspace-gutter)}.studio-workspace .screen-body>*{max-width:var(--workspace-max)}.studio-workspace .action-bar{display:flex;justify-content:flex-end;padding:16px var(--workspace-gutter)}.studio-workspace .action-bar>*{margin:0;max-width:440px}.studio-workspace .action-bar>.button{width:auto;min-width:180px}.studio-workspace .action-bar>.footer-stack{width:280px}.studio-workspace .action-bar>.result-actions{width:420px}.studio-layout[data-page=library] .action-bar,.studio-layout[data-page=voices] .action-bar,.studio-layout[data-page=library] .header-leading>.brand-mark,.studio-layout[data-page=library] .screen-header>.icon-button{display:none}.studio-layout[data-page=library] .project-grid{grid-template-columns:minmax(0,1fr);gap:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.studio-layout[data-page=library] .project-card{min-height:84px;border:0;border-radius:0;padding:20px 24px}.studio-layout[data-page=library] .project-card+.project-card{border-top:1px solid var(--border)}.studio-layout[data-page=library] .project-card:hover{background:var(--soft)}.studio-layout[data-page=library] .project-card:focus-visible{outline-offset:-4px}.studio-layout[data-page=library] .project-copy{display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:24px}.studio-layout[data-page=library] .project-copy strong{margin:0;font-size:16px;font-weight:600}.create-layout,.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}.creation-options,.settings-options{gap:32px}.creation-source .upload-choice{min-height:340px}.creation-source .upload-choice.has-file{min-height:88px}.creation-source .upload-preview video{height:auto;aspect-ratio:16 / 9}.workspace-editor{display:flex;flex-direction:column;min-width:0}.workspace-editor .script-editor{height:clamp(320px,52dvh,640px);flex:none;padding:24px}.workspace-editor>.notice{margin-top:16px}.workspace-editor>.disclosure{margin-top:24px}.workspace-editor .editor-info{flex-wrap:wrap;row-gap:6px}.project-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.project-layout>*{min-width:0;margin-top:0}.project-layout>.processing-card,.project-layout>.failure-card{grid-column:1 / -1}.project-layout .script-preview{padding:24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}.project-layout .script-preview p{display:block;max-height:340px;overflow-y:auto;white-space:pre-wrap}.studio-layout[data-page=account] .screen-body>*{max-width:720px;margin-left:0}.studio-layout[data-page=account] .logout-button{margin-top:28px}.studio-workspace .empty-state{padding-top:100px}.studio-workspace .voice-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}}@media(min-width:1280px){.studio-layout{--workspace-gutter: max(40px, calc((100% - 1280px)/2) )}.create-layout,.settings-layout{grid-template-columns:minmax(0,1fr) 360px;gap:40px}}@media(max-height:500px){.screen-header{min-height:56px;padding-block:4px}.screen-body{padding-block:16px}.action-bar{padding-block:8px}.footer-stack>small{display:none}.editor-body .script-editor{min-height:80px}.editor-meta{display:none}.login-page>.brand{margin-bottom:24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
