.billing-notice{z-index:20;border:1px solid var(--accent-border);background:var(--surface);width:max-content;max-width:min(440px,100vw - 32px);color:var(--text);box-shadow:var(--popover-shadow);font-size:var(--font-size-body);border-radius:12px;align-items:center;gap:12px;padding:16px 20px;display:flex;position:fixed;bottom:24px;right:16px}.billing-notice:empty{display:none}.billing-notice svg{color:var(--accent-strong);flex-shrink:0}.balance-dialog{scrollbar-gutter:stable;border:1px solid var(--line);background:var(--surface-subtle);width:min(1160px,100vw - 48px);height:min(960px,100dvh - 48px);max-height:calc(100dvh - 48px);color:var(--text);box-shadow:var(--popover-shadow);border-radius:24px;padding:28px 40px;overflow-y:auto}.balance-dialog::backdrop{background:var(--overlay)}.paywall-topbar,.paywall-brand,.paywall-close{align-items:center;display:flex}.paywall-topbar{justify-content:space-between;gap:20px}.paywall-brand{color:var(--accent-strong);font-family:var(--font-heading);font-size:var(--font-size-body);gap:10px;font-weight:700}.paywall-close,.paywall-text-button{min-height:44px;color:var(--muted);font-size:var(--font-size-body);background:0 0;border:0;padding:8px 0}.paywall-close{gap:10px}.paywall-close:hover,.paywall-text-button:hover{color:var(--accent-strong)}.paywall-header{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:32px;margin:28px 0;display:grid}.paywall-header h2{font-family:var(--font-heading);letter-spacing:-.025em;margin:0 0 14px;font-size:clamp(28px,3vw,36px);line-height:1.2}.paywall-header p{max-width:630px;color:var(--muted);font-size:var(--font-size-body);margin:0;line-height:1.6}.balance-total{border:1px solid var(--line);background:var(--surface);border-radius:14px;gap:4px;min-width:180px;padding:16px 20px;display:grid}.balance-total span{color:var(--muted);font-size:var(--font-size-caption)}.balance-total strong{font-family:var(--font-heading);font-variant-numeric:tabular-nums;font-size:26px}.balance-total-loading{align-items:center;height:1.5em;display:flex}.paywall-skeleton{background:var(--line);border-radius:6px;width:100%;height:20px;display:block}.balance-total-loading .paywall-skeleton{width:56px;height:28px}.paywall-notice{border:1px solid var(--accent-border);background:var(--accent-soft);font-size:var(--font-size-body);border-radius:12px;margin:16px 0;padding:14px 18px}.paywall-packages{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:28px 0;display:grid}.balance-package{border:1px solid var(--line);background:var(--surface);border-radius:18px;flex-direction:column;min-width:0;min-height:420px;padding:26px 24px 24px;display:flex}.balance-package-loading{gap:24px}.balance-package-loading .paywall-skeleton:first-child{width:60%;height:28px}.balance-package-loading .paywall-skeleton:last-child{height:52px;margin-top:auto}.balance-package-featured{border:2px solid var(--accent);background:var(--accent-soft);padding:25px 23px 23px}.balance-package h3{font-family:var(--font-heading);margin:0 0 10px;font-size:22px;line-height:1.3}.balance-package-description{min-height:68px;color:var(--muted);font-size:var(--font-size-caption);margin:0 0 24px;line-height:1.6}.balance-package-price{font-family:var(--font-heading);letter-spacing:-.025em;font-variant-numeric:tabular-nums;margin:0;font-size:clamp(32px,3.5vw,40px);font-weight:700;line-height:1.2}.balance-package-frequency{color:var(--muted);font-size:var(--font-size-caption);margin:6px 0 24px}.balance-package-credit{min-height:84px;margin-top:auto}.balance-package-credit>p:first-child{font-size:var(--font-size-body);margin:0;font-weight:500}.balance-package-bonus{color:var(--accent-strong);font-size:var(--font-size-caption);margin:8px 0 16px;font-weight:500;line-height:1.5}.balance-package .generate-button{border-radius:10px;width:100%}.balance-package:not(.balance-package-featured) .generate-button{border:1px solid var(--accent-border);background:var(--surface);color:var(--accent-strong);box-shadow:none}.balance-package:not(.balance-package-featured) .generate-button:hover{background:var(--accent-soft)}.paywall-benefits{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0;padding:0;list-style:none;display:grid}.paywall-benefits li{align-items:flex-start;gap:10px;display:flex}.paywall-benefits svg{color:var(--accent-strong);flex-shrink:0;margin-top:3px}.paywall-benefits strong{font-size:var(--font-size-body);font-weight:500}.paywall-benefits p{color:var(--muted);font-size:var(--font-size-caption);margin:4px 0 0;line-height:1.5}.paywall-offer{color:var(--muted);font-size:var(--font-size-caption);margin:24px 0;line-height:1.6}.paywall-offer a{color:var(--accent-strong)}.balance-payment-status{border:1px solid var(--accent-border);background:var(--accent-soft);border-radius:12px;padding:16px 20px}.balance-payment-status p{color:var(--muted);font-size:var(--font-size-body);margin:0;line-height:1.6}.paywall-footer{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px 24px;padding-top:16px;display:flex}.balance-refresh{justify-content:center;align-items:center;gap:8px;margin-left:auto;display:flex}.balance-dialog .balance-refresh:disabled{opacity:1}.balance-refresh[aria-busy=true]{cursor:progress}.balance-refresh-icon{transform-origin:50%;flex-shrink:0}.balance-history{flex:1}.balance-history-loading{align-items:center;min-height:44px;display:flex}.balance-history-loading .paywall-skeleton{width:180px;height:16px}.balance-history summary{width:fit-content;min-height:44px;color:var(--muted);font-size:var(--font-size-body);cursor:pointer;align-items:center;gap:8px;padding:8px 0;list-style:none;display:flex}.balance-history summary::-webkit-details-marker{display:none}.balance-history summary::marker{content:""}.balance-history summary svg{flex-shrink:0}.balance-history-chevron{margin-left:4px;transition:transform .18s}.balance-history[open] .balance-history-chevron{transform:rotate(180deg)}@media (prefers-reduced-motion:reduce){.balance-history-chevron{transition:none}}.balance-history ul{max-width:480px;margin:8px 0;padding:0;list-style:none}.balance-history li{font-size:var(--font-size-caption);justify-content:space-between;align-items:baseline;gap:12px;padding:8px 0;display:flex}.balance-history strong{white-space:nowrap}@media (width<=900px){.balance-dialog{width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:24px}.paywall-header{grid-template-columns:1fr;gap:20px}.balance-total{justify-content:space-between;align-items:center;gap:24px;width:fit-content;min-width:260px;display:flex}.paywall-packages{gap:12px}.balance-package{min-height:480px;padding:22px 18px}.balance-package-featured{padding:21px 17px}.paywall-benefits{gap:16px}}@media (width<=760px){.balance-dialog{border:0;border-radius:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:20px}.paywall-close span{display:none}.paywall-close{justify-content:center;width:44px}.paywall-header{margin-top:24px}.balance-total{width:100%;min-width:0}.paywall-packages,.paywall-benefits{grid-template-columns:1fr}.paywall-packages{gap:16px}.balance-package{min-height:420px;padding:24px}.balance-package-featured{padding:23px}.balance-package-description{min-height:0;margin-bottom:20px}.balance-package-price{font-size:38px}.balance-package-credit{min-height:64px}.paywall-benefits{gap:20px}.paywall-footer{flex-direction:column;align-items:stretch}.balance-refresh{justify-content:flex-start;margin-left:0}}.dialogue-result-area{margin-top:18px;display:grid}.dialogue-result-area>*{grid-area:1/1;align-self:start;min-width:0}.dialogue-result-area>.empty-result{margin-top:0}.dialogue-result-area>.empty-result[aria-hidden=true]{visibility:hidden}.dialogue-result-frame{opacity:0;transition:height var(--dialogue-result-duration) ease, opacity var(--dialogue-result-duration) ease;overflow:hidden}.dialogue-result-expanded{opacity:1}.dialogue-result-settled{overflow:visible}.dialogue-result-content{transition:transform var(--dialogue-result-duration) ease;transform:translateY(8px)}.dialogue-result-expanded .dialogue-result-content{transform:translateY(0)}.dialogue-result-header .studio-result-heading{min-width:0}.dialogue-result-header p{overflow-wrap:anywhere}@media (prefers-reduced-motion:reduce){.dialogue-result-frame,.dialogue-result-content{transition:none}.dialogue-result-content{transform:none}.dialogue-result-expanded{overflow:visible}}.subtitle-item{border:1px solid var(--line);background:var(--surface);border-radius:12px;flex-direction:column;gap:10px;padding:14px 16px;display:flex}.subtitle-number{background:var(--subtitle-number-background);height:28px;color:var(--muted);font-size:var(--font-size-caption);border-radius:7px;flex:0 0 28px;place-items:center;display:grid}.subtitle-times{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.subtitle-chip{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--accent);border-radius:999px;align-items:center;gap:0;padding:5px 10px;display:inline-flex}.subtitle-item .editor-card-text{resize:none;background:var(--surface);width:100%;min-height:0;color:var(--text);font-family:var(--font-body);border:1px solid #0000;border-radius:8px;padding:8px 10px;font-size:17px;line-height:1.5;display:block;overflow:hidden}.subtitle-item .editor-card-text:hover{border-color:var(--line)}.subtitle-item .editor-card-text:focus{border-color:var(--accent);outline:none}.subtitle-history-button,.subtitle-add{color:var(--accent);font-family:var(--font-body);font-size:var(--font-size-caption);background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;gap:6px;display:inline-flex}.subtitle-history-button:hover:not(:disabled),.subtitle-add:hover:not(:disabled){background:var(--accent-soft)}.subtitle-history-button:disabled,.subtitle-add:disabled{color:var(--muted);opacity:.5}.subtitle-actions{gap:2px;margin-left:auto;display:flex}.subtitle-action{width:40px;height:40px;color:var(--muted);background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;padding:0;display:inline-flex}.subtitle-action:hover:not(:disabled),.subtitle-action:focus-visible{color:var(--accent);background:var(--accent-soft)}.subtitle-action:disabled{opacity:.4}.subtitle-add{width:max-content;min-height:32px;margin:6px auto;padding:4px 8px;display:flex}.subtitle-add-empty{margin:0}.dialogue-utterance{min-width:0}.dialogue-screen .dialogue-utterance .synthesis-editor-actions{margin-bottom:0}.dialogue-utterance-voice{min-width:0;max-width:100%;position:relative}.dialogue-utterance-voice>svg{flex-shrink:0}.dialogue-utterance-voice-name{min-width:0;font-size:var(--font-size-caption);text-overflow:ellipsis;white-space:nowrap;margin-inline:6px 8px;line-height:normal;overflow:hidden}.dialogue-utterance-voice>select{opacity:0;width:100%;height:100%;position:absolute;inset:0}.dialogue-utterance-voice>select:focus{outline:none}.dialogue-utterance-voice:focus-within{border-color:var(--accent)}@media (pointer:coarse){.dialogue-utterance .subtitle-action{width:44px;height:44px}.dialogue-utterance-voice{min-height:44px}}.dialogue-voice-dialog.auth-dialog{width:min(760px,100% - 32px);padding:24px}.dialogue-voice-content{gap:16px;display:grid}.dialogue-voice-content>h2{padding-right:44px}.dialogue-voice-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.dialogue-voice-search{color:var(--text);font-size:var(--font-size-caption);align-self:end;gap:6px;font-weight:600;display:grid}.dialogue-voice-search input{width:100%;min-width:0;min-height:44px;color:var(--text);background:var(--surface);border:1px solid var(--line);font-size:var(--font-size-body);border-radius:8px;padding:8px 12px}.dialogue-voice-dialog .voice-list-shell{--voice-list-height:clamp(136px, 46dvh, 408px)}.dialogue-voice-dialog.synthesis-screen .voice-card{grid-template-columns:minmax(0,1fr) auto;align-items:center}.dialogue-voice-dialog.synthesis-screen .voice-card-controls{padding:0 12px 0 0}.dialogue-voice-dialog .voice-card-options{display:none}.dialogue-voice-favorite{color:var(--accent);cursor:default;flex-shrink:0;margin-left:6px;display:inline-flex}.dialogue-voice-dialog .voice-filter-empty{grid-column:1/-1}.dialogue-voice-footer{justify-content:flex-end;display:flex}.dialogue-voice-footer .auth-primary{width:auto;margin:0}@media (width<=560px){.dialogue-voice-dialog.auth-dialog{padding:20px 16px}.dialogue-voice-filters{grid-template-columns:minmax(0,1fr)}}.studio.dialogue-studio{grid-template-columns:minmax(0,1fr)}.dialogue-speakers{background:var(--surface-subtle);border-bottom:1px solid var(--line)}.dialogue-studio h2{margin-bottom:12px}.dialogue-speakers>p,.dialogue-result-header p{color:var(--muted);font-size:var(--font-size-caption);line-height:1.5}.dialogue-speaker-list,.dialogue-utterance-list{gap:14px;margin:16px 0;padding:0;list-style:none;display:grid}.dialogue-speaker-list{grid-template-columns:repeat(2,minmax(0,1fr))}.dialogue-speaker{gap:8px;min-width:0;display:grid}.dialogue-speaker-label{font-size:var(--font-size-caption);color:var(--muted);font-weight:600}.dialogue-speaker-controls{align-items:center;gap:6px;display:flex}.dialogue-result-header{justify-content:space-between}.dialogue-speaker-picker{border:1px solid var(--line);min-width:0;min-height:44px;color:var(--text);background:var(--surface);font-family:var(--font-body);font-size:var(--font-size-body);text-align:left;border-radius:8px;flex:1;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px;display:flex}.dialogue-speaker-picker:hover:not(:disabled){border-color:var(--accent-border)}.dialogue-speaker-picker span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dialogue-speaker-picker svg{color:var(--muted);flex-shrink:0}.dialogue-icon-button{border:1px solid var(--line);background:var(--surface);width:44px;height:44px;color:var(--accent-strong);border-radius:8px;flex:0 0 44px;place-items:center;padding:0;display:grid}.dialogue-icon-button:hover:not(:disabled){background:var(--accent-soft)}.dialogue-screen .dialogue-error{color:var(--danger);font-size:var(--font-size-caption);margin:10px 0}.dialogue-job-error{padding:0 8px}.dialogue-result{background:var(--surface);border:1px solid var(--line);border-radius:16px;gap:16px;padding:22px 26px;display:grid}.dialogue-result-header{align-items:center;gap:16px;display:flex}.dialogue-studio .generate-caption strong.over-limit{color:var(--danger)}.dialogue-studio .generate-button{overflow:hidden}.dialogue-text-appear{animation:.4s both dialogue-text-enter}@keyframes dialogue-text-enter{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media (width<=560px){.dialogue-speaker-list{grid-template-columns:minmax(0,1fr)}.dialogue-result{padding:16px}.dialogue-result-header{flex-direction:column;align-items:stretch}}@media (prefers-reduced-motion:reduce){.dialogue-text-appear{animation:none}}.studio.video-studio,.studio.video-result{grid-template-columns:minmax(0,1fr)}.video-studio .script-panel{flex-direction:column;gap:18px;display:flex}.video-loading-placeholder{align-content:start;gap:18px;min-height:1510px;padding-top:36px;display:grid}.video-loading-settings,.video-loading-prompt{border:1px solid var(--line);background:var(--surface-subtle);border-radius:12px}.video-loading-settings{min-height:710px}.video-loading-prompt{min-height:280px}.video-parameters{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px 24px;display:grid}.video-field{flex-direction:column;gap:8px;font-size:14px;display:flex}.video-field input{border:1px solid var(--line);width:100%;min-height:44px;font:inherit;color:var(--text);background:var(--surface);border-radius:10px;padding:10px 12px;font-size:16px}.video-prompt{resize:vertical;border:1px solid var(--line);width:100%;min-height:280px;font:inherit;color:var(--text);background:var(--surface);border-radius:12px;padding:16px;font-size:17px;line-height:1.6}.video-counters{color:var(--muted);justify-content:flex-end;gap:12px;font-size:14px;display:flex}.video-error{color:var(--danger);font-size:14px}.video-result-frame{opacity:0;transition:height var(--video-result-duration) ease, opacity var(--video-result-duration) ease;overflow:hidden}.video-result-expanded{opacity:1}.video-result-content{transition:transform var(--video-result-duration) ease;padding-top:24px;transform:translateY(8px)}.video-result-expanded .video-result-content{transform:translateY(0)}.video-result{margin-top:0}.video-result video{background:var(--text);aspect-ratio:auto 16/9;border-radius:12px;width:100%;max-height:600px;margin:16px 0;display:block}.video-result a{width:fit-content}@media (width<=900px){.video-loading-placeholder{min-height:1570px}}@media (width<=560px){.video-loading-placeholder{min-height:1805px;padding-top:88px}.video-loading-settings{min-height:885px}.video-parameters{grid-template-columns:1fr}.video-counters{flex-direction:column}}.video-choices{border:0;grid-column:1/-1;min-width:0;margin:0;padding:0}.video-choices legend{margin-bottom:8px;padding:0}.video-choice-list{gap:8px;display:grid}.video-resolution-choices .video-choice-list{grid-template-columns:repeat(4,minmax(0,1fr))}.video-aspect-choices .video-choice-list{grid-template-columns:repeat(6,minmax(0,1fr))}.video-choice{border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;min-height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:10px;font-size:16px;display:flex}.video-choice[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.video-choice:disabled{opacity:.45;cursor:default}.video-choice:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.video-choice-rate{color:var(--muted);font-size:14px;line-height:1.4}.video-duration,.video-sound{grid-column:1/-1;gap:0}.video-duration{width:100%;max-width:340px}.video-duration-control{grid-template-columns:minmax(0,1fr) 44px;align-items:center;column-gap:10px;display:grid}.video-duration input[type=range]{appearance:none;background:0 0;border:0;min-width:0;height:44px;margin:0;padding:0}.video-duration input[type=range]:disabled{opacity:.55}.video-duration input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--accent) var(--video-duration-fill), var(--line) var(--video-duration-fill));border-radius:999px;height:6px}.video-duration input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--accent);border-radius:50%;width:16px;height:16px;margin-top:-5px}.video-duration input[type=range]::-moz-range-track{background:var(--line);border-radius:999px;height:6px}.video-duration input[type=range]::-moz-range-progress{background:var(--accent);border-radius:999px;height:6px}.video-duration input[type=range]::-moz-range-thumb{background:var(--accent);border:0;border-radius:50%;width:16px;height:16px}.video-duration-value{color:var(--accent);background:var(--accent-soft);text-align:center;font-variant-numeric:tabular-nums;border-radius:8px;padding:5px 0;font-size:16px}.video-range-ends{color:var(--muted);grid-column:1;justify-content:space-between;display:flex}.video-image-heading{flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:8px;display:flex}.video-image-optional{background:var(--accent-soft);color:var(--accent);font-size:var(--font-size-caption);border-radius:6px;padding:3px 8px}.video-image-purpose{color:var(--text);font-size:var(--font-size-body);margin:0 0 16px;line-height:1.6}.video-image{border:1px dashed var(--accent-border);background:var(--surface-subtle);text-align:center;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-height:320px;padding:24px 16px;display:flex}.video-image.video-image-dragging{background:var(--accent-soft);border-color:var(--accent)}.video-image-icon{background:var(--accent-soft);width:60px;height:60px;color:var(--accent);border-radius:16px;place-items:center;margin-bottom:20px;display:grid}.video-image>strong{overflow-wrap:anywhere;max-width:100%}.video-image-filename{font-family:var(--font-heading);font-weight:700}.video-image>p{color:var(--muted);font-size:var(--font-size-caption);margin-top:8px}.video-image-choose{border:1px solid var(--line);background:var(--surface);max-width:100%;min-height:44px;font-size:var(--font-size-body);border-radius:8px;justify-content:center;align-items:center;gap:8px;margin-top:22px;padding:10px 14px;display:inline-flex}.video-image-choose:hover:not(:disabled){background:var(--accent-soft)}.video-image-choose svg,.video-image-remove svg{flex-shrink:0}.video-image-remove{min-height:44px;color:var(--muted);font-size:var(--font-size-body);background:0 0;border:0;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;display:inline-flex}.video-hint{color:var(--muted);margin:16px 0 0;font-size:14px}.video-image-frame{background:var(--accent-soft);border-radius:10px;width:min(100%,320px);margin:0 auto 16px;overflow:hidden}.video-image-frame img{object-fit:contain;width:100%;height:auto;max-height:240px;display:block}.video-field-heading{align-items:center;gap:2px;display:flex;position:relative}.video-enhancement-help{display:inline-flex}.video-help-button{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:7px;flex-shrink:0;place-items:center;padding:0;display:grid}.video-help-button:hover:not(:disabled),.video-help-button[aria-expanded=true]{background:var(--accent-soft);color:var(--accent-strong)}.video-help-tooltip{z-index:5;border:1px solid var(--line);background:var(--surface);width:360px;max-width:100%;color:var(--muted);box-shadow:var(--popover-shadow);font-size:var(--font-size-caption);border-radius:10px;padding:16px;line-height:1.6;position:absolute;top:calc(100% + 4px);left:0}.video-help-tooltip>span{display:block}.video-help-tooltip>span+span{margin-top:12px}.video-help-tooltip:before{content:"";height:8px;position:absolute;top:-8px;left:0;right:0}.video-image input[type=file]{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.video-helper{border-top:1px solid var(--line);padding-top:16px}.video-helper-toggle{width:fit-content}.video-helper-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}.video-helper-form{border:1px solid var(--line);background:var(--surface-subtle);border-radius:12px;flex-direction:column;gap:14px;margin-top:16px;padding:16px;display:flex}.video-helper-form textarea{resize:vertical;border:1px solid var(--line);width:100%;min-height:80px;font:inherit;color:var(--text);background:var(--surface);border-radius:10px;padding:10px 12px;font-size:17px;line-height:1.5}.video-helper-form .video-helper-preview{min-height:170px}.video-helper-form>button{width:fit-content}.video-helper-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}@media (width<=560px){.video-helper-options{grid-template-columns:1fr}.video-resolution-choices .video-choice-list{grid-template-columns:repeat(2,minmax(0,1fr))}.video-aspect-choices .video-choice-list{grid-template-columns:repeat(3,minmax(0,1fr))}.video-counters{align-items:flex-end}}@media (prefers-reduced-motion:reduce){.video-result-frame,.video-result-content{transition:none}.video-result-content{transform:none}}.synthesis-screen .editor-heading{flex-wrap:wrap;gap:8px 12px}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-actions{min-height:44px;margin-bottom:12px;position:relative}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-buttons,:is(.synthesis-screen,.dialogue-screen) .synthesis-pause-presets,:is(.synthesis-screen,.dialogue-screen) .synthesis-stress-word{flex-wrap:wrap;align-items:center;gap:8px;display:flex}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-actions button{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--text);font-size:var(--font-size-body);border-radius:8px;justify-content:center;align-items:center;gap:7px;padding:8px 12px;display:inline-flex}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-buttons button{gap:10px;padding:6px 10px}.synthesis-editor-action-icon{width:28px;height:28px;color:var(--accent-strong);background:var(--accent-soft);border-radius:6px;flex:0 0 28px;justify-content:center;align-items:center;display:inline-flex}.synthesis-editor-action-icon svg{display:block}.synthesis-editor-action-buttons button:hover:not(:disabled) .synthesis-editor-action-icon,.synthesis-editor-action-buttons button[aria-expanded=true] .synthesis-editor-action-icon{background:var(--surface)}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-actions button:hover:not(:disabled),:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-actions button[aria-expanded=true]{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-strong)}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-actions button:disabled{opacity:.55;cursor:not-allowed}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-panel{z-index:15;border:1px solid var(--line);background:var(--surface);width:min(380px,100%);box-shadow:var(--popover-shadow);border-radius:10px;padding:16px;position:absolute;top:calc(100% + 6px);left:0}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-heading{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-heading strong{font-size:var(--font-size-body);font-weight:500}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-heading button{border:0;flex-shrink:0;width:44px;height:44px;padding:0}:is(.synthesis-screen,.dialogue-screen) .synthesis-stress-word{gap:4px}:is(.synthesis-screen,.dialogue-screen) .synthesis-stress-word button{min-width:36px;color:var(--accent);padding:6px}:is(.synthesis-screen,.dialogue-screen) .synthesis-pause-custom{margin-top:16px}:is(.synthesis-screen,.dialogue-screen) .synthesis-pause-custom label{color:var(--muted);font-size:var(--font-size-caption);margin-bottom:6px;display:block}:is(.synthesis-screen,.dialogue-screen) .synthesis-pause-custom>div{gap:8px;display:flex}:is(.synthesis-screen,.dialogue-screen) .synthesis-pause-custom input{border:1px solid var(--line);width:100%;min-width:0;color:var(--text);background:var(--surface);font-size:var(--font-size-body);border-radius:8px;padding:8px}.synthesis-editor-actions .studio-action-tooltip{z-index:20;left:0;right:auto}.synthesis-tag-completion{z-index:60;border:1px solid var(--line);background:var(--surface);width:max-content;max-width:calc(100vw - 16px);color:var(--text);box-shadow:var(--popover-shadow);border-radius:10px;flex-direction:column;padding:6px;display:flex;position:fixed;overflow:hidden}.synthesis-tag-completion-list{contain:inline-size;overscroll-behavior:contain;scrollbar-gutter:stable;flex:auto;min-width:0;min-height:0;position:relative;overflow-y:auto}.synthesis-tag-completion button{background:var(--surface);width:100%;min-height:38px;color:var(--text);text-align:left;font-size:var(--font-size-body);border:0;border-radius:6px;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;padding:8px 10px;display:flex}.synthesis-tag-completion button[aria-selected=true],.synthesis-tag-completion button:hover{background:var(--accent-soft)}.synthesis-tag-completion code{color:var(--muted);font:inherit;font-size:var(--font-size-caption);overflow-wrap:anywhere}.synthesis-tag-completion mark{color:var(--accent-strong);background:0 0;padding:0;font-weight:700}.synthesis-tag-completion-keys{border-top:1px solid var(--line);color:var(--muted);font-size:var(--font-size-caption);flex:none;margin-top:4px;padding:8px 10px 2px}@media (width<=560px){:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-buttons{gap:6px}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-buttons button{padding:8px}:is(.synthesis-screen,.dialogue-screen) .synthesis-editor-action-buttons svg{display:none}}@media (width<=768px),(hover:none),(pointer:coarse){.synthesis-tag-completion{display:none}}.synthesis-screen .language-warning{border:1px solid var(--warning-border);background:var(--warning-soft);color:var(--warning);font-size:var(--font-size-caption);border-radius:10px;align-items:flex-start;gap:10px;margin-top:16px;padding:16px;line-height:1.6;display:flex}.synthesis-screen .language-warning>svg{flex-shrink:0;margin-top:2px}.synthesis-screen .language-warning p{margin-top:6px}.synthesis-screen .language-warning-tiers,.synthesis-screen .language-confirmation-actions{flex-wrap:wrap;gap:8px;margin-top:16px;display:flex}.synthesis-screen .language-warning-tiers>button,.synthesis-screen .language-confirmation-actions>button{flex:auto;width:auto;margin:0}.synthesis-screen .language-warning button:disabled{opacity:.55;cursor:not-allowed}.synthesis-screen .language-confirmation-actions{border-top:1px solid var(--line);padding-top:16px}.synthesis-screen .language-confirmation .language-warning-tiers{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px;display:grid}.synthesis-screen .language-confirmation .language-warning-tiers>button{min-height:56px;padding:12px;font-weight:600}.synthesis-screen .language-confirmation-actions>button{color:var(--muted);background:0 0;border-color:#0000}.synthesis-screen .language-confirmation-actions>button:hover:not(:disabled){background:var(--surface-subtle);color:var(--text)}@media (width<=560px){.synthesis-screen .language-confirmation .language-warning-tiers{grid-template-columns:minmax(0,1fr)}}.synthesis-screen .voice-panel{scroll-margin-top:20px}.synthesis-screen .editor-help-toggle{min-height:44px;color:var(--muted);font-size:var(--font-size-body);background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;gap:6px;margin-left:auto;padding:6px 8px;display:inline-flex}.synthesis-screen .editor-help-toggle:hover,.synthesis-screen .editor-help-toggle[aria-expanded=true]{color:var(--accent-strong);background:var(--accent-soft)}.synthesis-screen .editor-help-toggle svg{flex-shrink:0}.synthesis-screen .editor{border:1px solid var(--line);background:var(--surface-subtle);border-radius:10px;position:relative;overflow:hidden}.synthesis-screen .editor.editor-dragging{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring)}.synthesis-screen .script-input-area{--script-text-height:420px;--script-file-height:calc(44px + 26px + 1px);height:calc(var(--script-text-height) + var(--script-file-height));min-height:calc(var(--script-text-height) + var(--script-file-height));resize:vertical;flex-direction:column;display:flex;overflow:hidden}.synthesis-screen .script-input-area>:not(textarea){flex-shrink:0}.synthesis-screen .script-upload{border:1px dashed var(--accent-border);background:var(--surface);text-align:center;border-radius:8px;flex-direction:column;align-items:center;gap:8px;margin:18px 18px 0;padding:24px 16px;display:flex}.synthesis-screen .editor-dragging .script-upload{background:var(--accent-soft);border-color:var(--accent)}.synthesis-screen .script-upload-icon,.synthesis-screen .script-file-icon{background:var(--accent-soft);width:40px;height:40px;color:var(--accent);border-radius:8px;flex-shrink:0;place-items:center;display:grid}.synthesis-screen .script-upload strong,.synthesis-screen .script-file strong{font-size:var(--font-size-body);font-weight:500}.synthesis-screen .script-upload p{color:var(--muted-subtle);font-size:var(--font-size-caption)}.synthesis-screen .script-file-choose{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--accent);font-size:var(--font-size-body);border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;gap:7px;padding:8px 12px;display:inline-flex}.synthesis-screen .script-file-choose:hover:not(:disabled){background:var(--accent-soft)}.synthesis-screen .script-upload .script-file-choose{margin-top:4px}.synthesis-screen .script-file{border-bottom:1px solid var(--line);background:var(--surface);align-items:center;gap:10px;padding:13px 16px;display:flex}.synthesis-screen .script-file .script-file-choose{margin-left:auto}.synthesis-screen .script-file-info{flex:1;min-width:0}.synthesis-screen .script-file-info strong{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.synthesis-screen .script-file-info>span{font-size:var(--font-size-caption);color:var(--muted-subtle);align-items:center;gap:4px;margin-top:2px;display:flex}.synthesis-screen .script-file-info>span svg{color:var(--accent);flex-shrink:0}.synthesis-screen .script-file-error,.synthesis-screen .script-length-warning{font-size:var(--font-size-caption);color:var(--danger);margin:12px 0 0}.synthesis-screen .synthesis-replace-dialog-actions{gap:12px;margin-top:24px;display:grid}.synthesis-screen .synthesis-replace-dialog-actions>button{min-height:48px;margin:0}.synthesis-screen .editor:focus-within{border-color:var(--accent-border);box-shadow:0 0 0 3px var(--focus-ring)}.synthesis-screen textarea{resize:none;width:100%;min-height:0;color:var(--text);line-height:1.6;font-size:var(--font-size-editor);background:0 0;border:0;outline:none;flex:1;padding:24px;display:block}.synthesis-screen textarea::placeholder{color:var(--muted-subtle)}.synthesis-screen textarea:focus-visible{outline:none}.synthesis-screen .sample-button{font-size:var(--font-size-body);border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong);border-radius:6px;align-self:flex-start;align-items:center;gap:8px;min-height:44px;margin:0 20px 20px;padding:10px 12px;font-weight:500;display:flex;position:static}.synthesis-screen .sample-button:hover{background:var(--accent-soft-hover)}.synthesis-screen .editor-footer{border-top:1px solid var(--line);color:var(--muted);font-size:var(--font-size-caption);font-variant-numeric:tabular-nums;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;padding:14px 18px;line-height:1.6;display:flex}.synthesis-screen .editor-footer>span:first-child{align-items:center;gap:6px;display:flex}.synthesis-screen .editor-footer span>span{color:var(--muted-subtle)}.synthesis-screen .editor-footer .over-limit,.synthesis-screen .editor-footer .over-limit>span{color:var(--danger)}.synthesis-screen legend{margin-bottom:12px}.synthesis-screen .voice-picker{gap:10px;min-width:0;display:grid}.synthesis-screen .voice-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-right:0;display:grid}.synthesis-screen .voice-filters button{background:var(--surface-subtle);min-height:44px;color:var(--text);font-size:var(--font-size-body);border:1px solid #0000;border-radius:8px;padding:8px 4px;font-weight:500}.synthesis-screen .voice-filters button:hover:not(:disabled){border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-strong)}.synthesis-screen .voice-filters button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent)}.synthesis-screen .voice-filters button[aria-pressed=true]:hover:not(:disabled){background:var(--accent-soft-hover)}.synthesis-screen .voice-list-shell{--voice-edge-fade:18px;height:var(--voice-list-height,360px);margin:0;position:relative}.synthesis-screen .voice-list-loading{pointer-events:none;opacity:0;visibility:hidden;place-items:center;transition:opacity .4s,visibility 0s linear .4s;display:grid;position:absolute;inset:0}.synthesis-screen .voice-list-shell[data-state=loading] .voice-list-loading{opacity:1;visibility:visible;transition-delay:0s}.synthesis-screen .voice-list{scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--accent-border) transparent;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;align-items:start;gap:10px;min-width:0;height:100%;padding:4px 10px 4px 4px;transition:opacity .4s;display:grid;overflow-y:auto}.synthesis-screen .voice-list-shell[data-state=loading] .voice-list{opacity:0;pointer-events:none}.synthesis-screen .voice-list:has(.voice-load-error){align-content:center}.synthesis-screen .voice-count,.synthesis-screen .voice-filter-empty{color:var(--muted);font-size:var(--font-size-caption)}.synthesis-screen .voice-count{transition:opacity .4s}.synthesis-screen .voice-filter-empty{padding:16px 8px}.synthesis-screen .voice-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;align-items:center;gap:0;min-height:76px;padding:0 12px 0 0;transition:border-color .15s,background .15s;display:flex;position:relative}.synthesis-screen .voice-preview-button{border:1px solid var(--line);background:var(--surface);width:44px;height:44px;color:var(--accent);border-radius:8px;flex-shrink:0;place-items:center;display:grid}.synthesis-screen .voice-preview-button:hover:not(:disabled),.synthesis-screen .voice-preview-button[aria-pressed=true]{border-color:var(--accent-border)}.synthesis-screen .voice-preview-error{color:var(--danger);font-size:var(--font-size-caption)}.synthesis-screen .voice-card:hover{border-color:var(--accent-border)}.synthesis-screen .voice-card.selected{background:var(--accent-soft);border-color:var(--accent)}.synthesis-screen .voice-card input,.synthesis-screen .format-picker input{opacity:0;width:1px;height:1px;position:absolute}.synthesis-screen .voice-card:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.synthesis-screen .format-picker label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}.synthesis-screen .avatar{width:36px;height:36px;font-family:var(--font-body);font-size:var(--font-size-body);color:var(--accent-strong);background:var(--accent-soft-hover);border-radius:50%;flex-shrink:0;place-items:center;font-weight:600;display:grid}.synthesis-screen .avatar-1{color:#1e40af;background:#dbeafe}.synthesis-screen .avatar-2{color:#4338ca;background:#e0e7ff}.synthesis-screen .avatar-3{color:#0369a1;background:#e0f2fe}.synthesis-screen .avatar-4{color:#0e7490;background:#cffafe}.synthesis-screen .voice-info{justify-items:start;min-width:0;display:grid}.synthesis-screen .voice-name-row{--voice-name-row-height:28px;min-width:0;min-height:var(--voice-name-row-height);align-items:center;max-width:100%;display:flex}.synthesis-screen .voice-name-row strong{font-size:var(--font-size-body);text-overflow:ellipsis;white-space:nowrap;font-weight:600;display:block;overflow:hidden}.synthesis-screen .voice-name{min-width:0}.synthesis-screen .voice-gender{font-size:var(--font-size-caption);color:var(--muted);line-height:1.4}.synthesis-screen .voice-favorite-button{width:var(--voice-name-row-height);height:var(--voice-name-row-height);color:var(--muted);background:0 0;border:0;border-radius:6px;flex-shrink:0;align-items:center;padding:0 0 0 6px;display:flex}.synthesis-screen .voice-favorite-button[aria-pressed=true],.synthesis-screen .voice-favorite-button:hover:not(:disabled),.synthesis-screen .voice-favorite-button:focus-visible{color:var(--accent)}.synthesis-screen .voice-favorite-button[disabled]{opacity:1;cursor:pointer}@media (pointer:coarse){.synthesis-screen .voice-name-row{--voice-name-row-height:44px}}.synthesis-screen .radio-indicator{border:1px solid var(--line);border-radius:50%;flex-shrink:0;place-items:center;width:18px;height:18px;margin-left:auto;display:grid}.synthesis-screen .speed-control{margin-top:22px}.synthesis-screen .speed-control>div:first-child{justify-content:space-between;align-items:center;display:flex}.synthesis-screen .speed-control label{margin:0}.synthesis-screen .speed-control output{font-size:var(--font-size-caption);color:var(--accent-strong);background:var(--accent-soft);font-variant-numeric:tabular-nums;border-radius:4px;padding:4px 8px;font-weight:600}.synthesis-screen .speed-control input{width:100%;accent-color:var(--accent);cursor:pointer;height:24px;min-height:44px;margin:6px 0 0}.synthesis-screen .range-labels{font-size:var(--font-size-caption);color:var(--muted-subtle);justify-content:space-between;align-items:center;gap:8px;display:flex}.synthesis-screen .range-labels button{font-size:var(--font-size-caption);color:var(--muted);background:0 0;border:0;align-items:center;gap:4px;min-height:44px;padding:0 4px;display:flex}.synthesis-screen .format-picker{margin-top:24px}.synthesis-screen .format-picker>div{background:var(--accent-soft);border-radius:7px;gap:6px;padding:4px;display:flex}.synthesis-screen .format-picker label{font-weight:600;font-size:var(--font-size-body);color:var(--muted);cursor:pointer;border:1px solid #0000;border-radius:5px;flex:1;justify-content:center;align-items:center;gap:3px;min-height:44px;padding:9px 6px;display:flex}.synthesis-screen .format-picker label.active{background:var(--surface);border-color:var(--line);color:var(--accent-strong);box-shadow:0 1px 3px #00000004}.synthesis-screen .help-panel{background:var(--accent-soft);border:1px solid var(--line);font-size:var(--font-size-body);border-radius:10px;align-items:flex-start;gap:16px;margin-bottom:20px;padding:20px;line-height:1.6;display:flex}.synthesis-screen .help-panel ul{color:var(--muted);margin:0;padding-left:1.25em}.synthesis-screen .help-panel button{background:0 0;border:0;flex-shrink:0;place-items:center;min-width:44px;min-height:44px;padding:0;display:grid}.synthesis-screen .error-message{background:var(--danger-soft);border:1px solid var(--danger-border);color:var(--danger);font-size:var(--font-size-body);border-radius:8px;margin-top:20px;padding:15px 20px;line-height:1.6}.synthesis-screen .voice-load-error{font-size:var(--font-size-caption);color:var(--danger);line-height:1.6}.synthesis-screen .voice-load-error button{min-height:44px;font-size:var(--font-size-body);background:0 0;border:0;padding:5px 0;text-decoration:underline}.synthesis-screen .loading-voices{color:var(--muted);font-size:var(--font-size-caption);justify-content:center;align-items:center;gap:6px;display:flex}.synthesis-screen .synthesis-status{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.synthesis-screen .synthesis-result-frame{margin-top:23px}.synthesis-screen .synthesis-result-content{display:grid}.synthesis-screen .synthesis-result-content>*{grid-area:1/1;align-self:start}.synthesis-screen .synthesis-result-spacer{visibility:hidden;pointer-events:none}.synthesis-screen .synthesis-result-content>.result-panel,.synthesis-screen .synthesis-result-content>.empty-result{margin-top:0}.synthesis-screen .synthesis-result-transition{animation:.4s both synthesis-result-enter}@keyframes synthesis-result-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.synthesis-screen .synthesis-result-transition{animation:none}}.synthesis-screen .processing-note{font-size:var(--font-size-caption);text-align:center;color:var(--muted);margin-top:20px}.synthesis-screen .result-panel{border:1px solid var(--line);background:var(--surface);border-radius:12px;margin-top:23px;padding:23px}.synthesis-screen .result-header{justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px;display:flex}.synthesis-screen .result-header p{font-size:var(--font-size-caption);color:var(--muted);margin-top:5px;line-height:1.5}.synthesis-screen .download-button{font-size:var(--font-size-body);border:1px solid var(--line);background:var(--accent-soft);color:var(--accent-strong);border-radius:6px;align-items:center;gap:7px;min-height:44px;padding:10px 12px;font-weight:500;display:flex}.synthesis-screen .download-button:hover{background:var(--accent-soft-hover)}@media (width<=560px){.synthesis-screen .script-upload{margin:12px 12px 0;padding:22px 12px}.synthesis-screen .script-file{flex-wrap:wrap;padding:12px}.synthesis-screen .script-file .script-file-choose{margin-left:auto}.synthesis-screen .script-file-info{flex-basis:calc(100% - 50px)}.synthesis-screen .script-file-choose{width:100%}.synthesis-screen .script-input-area{--script-text-height:320px;--script-file-height:calc(40px + 44px + 10px + 24px + 1px)}.synthesis-screen textarea{padding:18px 16px}.synthesis-screen .sample-button{gap:6px;margin:0 12px 16px}.synthesis-screen .editor-footer{flex-direction:column;align-items:flex-start;row-gap:8px;padding:12px}.synthesis-screen .help-panel{gap:8px;padding:16px}.synthesis-screen .result-panel{padding:18px 16px}.synthesis-screen .result-header{flex-direction:column;align-items:stretch}.synthesis-screen .download-button{justify-content:center}}.synthesis-screen .voice-card.voice-group{gap:0;min-width:0;min-height:0;padding:0;display:grid}.synthesis-screen .voice-group-heading{align-items:center;gap:10px;padding:12px;display:flex}.synthesis-screen .voice-tier-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.synthesis-screen .voice-selection-unavailable{color:var(--danger)}@media (prefers-reduced-motion:reduce){.synthesis-screen .voice-card,.synthesis-screen .voice-list,.synthesis-screen .voice-count,.synthesis-screen .voice-list-loading{transition:none}}.synthesis-screen .script-panel,.synthesis-screen .settings-panel{min-width:0}.synthesis-screen .studio{grid-template-columns:minmax(0,1fr) 280px}.synthesis-screen .voice-panel{border-bottom:1px solid var(--line);grid-column:1/-1;min-width:0;padding:24px 28px 20px}.synthesis-screen .voice-panel .panel-heading{margin-bottom:16px}.synthesis-screen .voice-picker>legend{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.synthesis-screen .voice-gender-filter .voice-filters{width:min(100%,340px)}.synthesis-screen .voice-levels{gap:8px;display:grid}.synthesis-screen .voice-levels-heading{color:var(--muted);font-size:var(--font-size-caption);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 12px;display:flex}.synthesis-screen .voice-quality-label>span{color:var(--text);font-weight:600}.synthesis-screen .voice-tier-filters button{padding:10px}.synthesis-screen .voice-level-label{white-space:nowrap}.synthesis-screen .voice-level-price{white-space:nowrap;color:var(--muted);font-size:var(--font-size-caption);font-variant-numeric:tabular-nums}.synthesis-screen .settings-panel .speed-control:first-of-type{margin-top:0}@media (width<=900px){.synthesis-screen .studio{grid-template-columns:minmax(0,1fr)}.synthesis-screen .settings-panel{border-left:0;border-top:1px solid var(--line)}}@media (width<=560px){.synthesis-screen .voice-panel{padding:20px 16px 16px}.synthesis-screen .voice-list{grid-template-columns:minmax(0,1fr)}.synthesis-screen .voice-tier-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}.synthesis-screen .voice-main-choice{cursor:pointer}.synthesis-screen .voice-group-heading[data-voice-unavailable=true] .voice-main-choice{cursor:not-allowed;opacity:.55}.synthesis-screen .voice-card.selected .radio-indicator{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.synthesis-screen .voice-quality-label{align-items:center;gap:2px;display:flex;position:relative}.synthesis-screen .voice-quality-help-button{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:7px;flex-shrink:0;place-items:center;padding:0;display:grid}.synthesis-screen .voice-quality-help-button:hover,.synthesis-screen .voice-quality-help-button[aria-expanded=true]{background:var(--accent-soft);color:var(--accent-strong)}.synthesis-screen .voice-quality-tooltip{z-index:5;border:1px solid var(--line);background:var(--surface);width:min(360px,100vw - 64px);color:var(--muted);box-shadow:var(--popover-shadow);font-size:var(--font-size-caption);border-radius:10px;padding:16px;line-height:1.6;position:absolute;top:calc(100% + 4px);left:0}.synthesis-screen .voice-quality-tooltip p{gap:2px;display:grid}.synthesis-screen .voice-quality-tooltip p+p{margin-top:12px}.synthesis-screen .voice-quality-tooltip strong{color:var(--text)}.synthesis-screen .voice-quality-advice{border-top:1px solid var(--line);padding-top:12px}.synthesis-screen .voice-quality-tooltip:before{content:"";height:8px;position:absolute;top:-8px;left:0;right:0}.synthesis-screen .voice-gender-filter h3{font-size:var(--font-size-caption);color:var(--text);margin:0 0 8px;font-weight:600}.synthesis-screen .voice-card-controls{align-items:flex-start;gap:8px;padding:0 10px 10px;display:flex}.synthesis-screen .voice-card-options{flex-wrap:wrap;flex:1;gap:6px;min-width:0;display:flex}.synthesis-screen .voice-card-options>button,.synthesis-screen .voice-variant-choice{border:1px solid var(--line);background:var(--surface);min-height:44px;font-size:var(--font-size-body);color:var(--muted);cursor:pointer;border-radius:7px;align-items:center;padding:6px 8px;display:inline-flex}.synthesis-screen .voice-card-options>button:hover:not(:disabled){border-color:var(--accent-border);color:var(--accent-strong)}.synthesis-screen .voice-variant-choice:hover:not(:has(input:disabled)){border-color:var(--accent-border);color:var(--accent-strong)}.synthesis-screen .voice-card-options>button[aria-pressed=true]{border-color:var(--accent);color:var(--accent-strong)}.synthesis-screen .voice-variant-choice:has(input:checked){border-color:var(--accent);color:var(--accent-strong)}.synthesis-screen .voice-variant-choice:has(input:disabled){opacity:.55;cursor:not-allowed}.synthesis-screen .voice-card{cursor:pointer}.synthesis-screen .voice-list-shell:before,.synthesis-screen .voice-list-shell:after{content:"";z-index:1;left:0;right:var(--voice-scrollbar-width,10px);height:var(--voice-edge-fade);pointer-events:none;opacity:0;transition:opacity .15s;position:absolute}.synthesis-screen .voice-list-shell:before{background:linear-gradient(to bottom, var(--surface), transparent);top:0}.synthesis-screen .voice-list-shell:after{background:linear-gradient(to top, var(--surface), transparent);bottom:0}.synthesis-screen .voice-list-shell[data-state=ready][data-fade-top=true]:before,.synthesis-screen .voice-list-shell[data-state=ready][data-fade-bottom=true]:after{opacity:1}@media (prefers-reduced-motion:reduce){.synthesis-screen .voice-list-shell:before,.synthesis-screen .voice-list-shell:after{transition:none}}.portrait-word-toolbar{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;margin:-4px 0 10px;display:flex}.portrait-word-document{border:1px solid var(--line);background:var(--surface);border-radius:12px;max-height:560px;padding:12px 16px;overflow-y:auto}.portrait-word-cue{align-items:flex-start;margin-inline:-6px;padding-inline:6px;display:flex}.portrait-word-cue[data-multiline]{box-shadow:inset 2px 0 var(--accent-border);border-radius:8px}.portrait-word-cue-words{flex-wrap:wrap;flex:1;align-items:center;row-gap:4px;min-width:0;display:flex}.portrait-word-cue+.portrait-word-cue{margin-block-start:4px}.portrait-word-token{align-items:center;gap:2px;min-width:0;max-width:100%;display:inline-flex}.portrait-word-chip{min-width:0;max-width:100%;min-height:36px;color:var(--text);font-family:var(--font-body);font-size:var(--font-size-editor);overflow-wrap:anywhere;text-align:left;background:0 0;border:1px solid #0000;border-radius:5px;align-items:center;padding:4px 3px;line-height:1.35;display:inline-flex}button.portrait-word-chip:hover:not(:disabled){background:var(--accent-soft-hover)}.portrait-word-chip--active{color:var(--accent)}.portrait-word-chip--active>:is(span,input){background:var(--accent-soft);box-shadow:2px 0 var(--accent-soft), -2px 0 var(--accent-soft);border-radius:4px}.portrait-word-empty{align-items:center;gap:6px;display:flex}.portrait-word-empty .subtitle-hint{margin:0}.portrait-word-chip--editing input{field-sizing:content;min-width:0;max-width:min(28ch,100%);color:inherit;font:inherit;-webkit-text-decoration:underline var(--accent);text-decoration:underline var(--accent);text-underline-offset:4px;border:0;outline:none;padding:0}.portrait-word-chip--editing[data-fixed-width] input{field-sizing:fixed;inline-size:100%;max-inline-size:100%}.portrait-word-chip--editing:not(.portrait-word-chip--active) input{background:0 0}.portrait-word-chip--editing input:focus-visible{text-decoration-thickness:2px}.portrait-word-popover{--portrait-word-action-size:34px;z-index:60;border:1px solid var(--accent-border);background:var(--surface);width:max-content;max-width:calc(100vw - 24px);box-shadow:var(--popover-shadow);border-radius:10px;grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:10px;display:grid;position:fixed}.portrait-word-popover>.subtitle-item-error{contain:inline-size}.portrait-word-popover .subtitle-times{justify-content:space-between}.portrait-word-edit-actions{justify-content:flex-end;gap:2px;display:flex}.portrait-word-edit-actions>.studio-action-wrap{inline-size:var(--portrait-word-action-size);min-inline-size:0}.portrait-word-edit-actions .subtitle-action{inline-size:100%;block-size:var(--portrait-word-action-size)}.portrait-word-edit-actions .portrait-word-save{background:var(--accent-soft);color:var(--accent)}.portrait-word-edit-actions .studio-action-tooltip{top:auto;bottom:calc(100% + 4px)}.portrait-word-edit-actions :is(.studio-action-wrap:first-child,.studio-action-wrap:has([data-analytics-button=subtitle_word_add]),.studio-action-wrap:has([data-analytics-button^=subtitle_word_move_])) .studio-action-tooltip{left:0;right:auto}.portrait-word-document+.transcription-result-actions,.portrait-word-editor>.subtitle-invalid+.transcription-result-actions{margin-top:var(--source-editor-actions-gap,12px)}@media (pointer:coarse){.portrait-word-editor button,.portrait-word-chip--editing,.portrait-word-popover :is(.subtitle-chip,.subtitle-action){min-height:44px}.portrait-word-popover{--portrait-word-action-size:44px}.portrait-word-popover .subtitle-chip{padding-inline:14px}}@media (width<=560px){.portrait-word-document{padding:10px}}.subtitle-export-expansion .subtitle-video-export{row-gap:0}.subtitle-video-export>.subtitle-export-actions:not(:empty){margin-top:12px}.subtitle-export-detail>.transcription-expansion-content:before{content:"";height:12px;display:block}.subtitle-export-actions{max-width:100%}@media (width<=900px){.subtitle-export-actions{width:100%}}.source-player-expansion .source-player-note{margin:0;padding-top:8px}.source-player-expansion .source-player-error{margin:0;padding-top:10px}@media (prefers-reduced-motion:no-preference){.subtitle-export-actions:has(.subtitle-export-download-expansion[data-transcription-expanding]){animation:subtitle-export-download-gap var(--transcription-expansion-duration,.24s) ease-out both}}@media (prefers-reduced-motion:reduce){.subtitle-export-submit .spin{animation:none}}@keyframes subtitle-export-download-gap{0%{row-gap:0}to{row-gap:6px}}.subtitle-frame-control{z-index:2;pointer-events:none;position:absolute;inset:0}.subtitle-frame-control-rectangle{--subtitle-frame-line:var(--accent-border);box-shadow:inset 0 0 0 1px var(--subtitle-frame-line), 0 0 0 1px #0008;position:absolute}.subtitle-frame-control-rectangle--overflow{--subtitle-frame-line:var(--danger-border);box-shadow:inset 0 0 0 2px var(--subtitle-frame-line), 0 0 0 1px var(--danger)}.subtitle-frame-move,.subtitle-frame-resize{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;padding:0;position:absolute}.subtitle-frame-move{cursor:move;inset:0}.subtitle-frame-move:focus-visible{outline:2px solid var(--on-accent);outline-offset:-2px;box-shadow:inset 0 0 0 4px var(--accent-strong)}.subtitle-frame-resize{--subtitle-handle-x:0%;--subtitle-handle-y:0%;width:clamp(18px,45%,32px);height:clamp(18px,45%,32px);transform:translate(var(--subtitle-handle-x), var(--subtitle-handle-y))}.subtitle-frame-resize:after{content:"";border:1px solid var(--accent-strong);background:var(--surface);border-radius:50%;width:10px;height:10px;position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0008}.subtitle-frame-resize:focus-visible{outline:none}.subtitle-frame-resize:focus-visible:after{outline:2px solid var(--on-accent);outline-offset:2px;box-shadow:0 0 0 5px var(--accent-strong)}.subtitle-frame-resize--top-left,.subtitle-frame-resize--bottom-left{--subtitle-handle-x:-50%;left:0}.subtitle-frame-resize--top-right,.subtitle-frame-resize--bottom-right{--subtitle-handle-x:50%;right:0}.subtitle-frame-resize--top-left,.subtitle-frame-resize--top-right{--subtitle-handle-y:-50%;top:0}.subtitle-frame-resize--bottom-left,.subtitle-frame-resize--bottom-right{--subtitle-handle-y:50%;bottom:0}.subtitle-frame-resize--top-left,.subtitle-frame-resize--bottom-right{cursor:nwse-resize}.subtitle-frame-resize--top-right,.subtitle-frame-resize--bottom-left{cursor:nesw-resize}.subtitle-frame-move:disabled,.subtitle-frame-resize:disabled{pointer-events:none}.transcription-screen{--transcription-expansion-duration:.24s}.studio.transcription-studio{grid-template-columns:minmax(0,1fr)}.transcription-link-field{gap:12px;width:min(100%,620px);margin-top:20px;display:grid}.transcription-link-divider{color:var(--muted);font-size:var(--font-size-caption);align-items:center;gap:12px;display:flex}.transcription-link-divider:before,.transcription-link-divider:after{border-top:1px solid var(--line);content:"";flex:1}.transcription-link-field>input{border:1px solid var(--line);background:var(--surface);width:100%;min-height:44px;color:var(--text);font:inherit;border-radius:8px;padding:8px 12px}.transcription-link-sites{flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none;display:flex}.transcription-link-sites>li{border-radius:4px;overflow:hidden}.transcription-link-sites img{object-fit:contain;display:block}.transcription-link-sites>:is([data-import-site=instagram],[data-import-site=facebook])>img{filter:blur(2px)}.transcription-upload{border:1px dashed var(--accent-border);background:var(--surface-subtle);text-align:center;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;min-height:320px;padding:24px 16px;display:flex}.transcription-upload.transcription-dragging{background:var(--accent-soft);border-color:var(--accent)}.transcription-upload-icon{background:var(--accent-soft);width:60px;height:60px;color:var(--accent);border-radius:16px;place-items:center;margin-bottom:20px;display:grid}.transcription-upload>strong,.transcription-link-field>label{max-width:100%;font-family:var(--font-heading);overflow-wrap:anywhere;font-weight:700}.transcription-upload>p,.transcription-local-note{color:var(--muted);font-size:var(--font-size-caption);margin-top:8px}.transcription-local-note{margin-top:16px}.transcription-track-warning{border:1px solid var(--accent-border);background:var(--accent-soft);color:var(--text);font-size:var(--font-size-caption);border-radius:8px;margin-top:16px;padding:12px 16px}.transcription-choose{border:1px solid var(--line);background:var(--surface);max-width:100%;min-height:44px;font-size:var(--font-size-body);border-radius:8px;justify-content:center;align-items:center;gap:8px;margin-top:22px;padding:10px 14px;display:inline-flex}.transcription-choose:hover:not(:disabled):not([aria-disabled=true]){background:var(--accent-soft)}.transcription-choose[aria-disabled=true]{opacity:.5;cursor:not-allowed}.transcription-choose svg,.transcription-remove svg{flex-shrink:0}.transcription-remove{min-height:44px;color:var(--muted);font-size:var(--font-size-body);background:0 0;border:0;align-items:center;gap:6px;margin-top:8px;padding:6px 10px;display:inline-flex}.transcription-upload :is(.transcription-choose,.transcription-remove){transition:background .18s,border-color .18s}.transcription-file-error{color:var(--danger);font-size:var(--font-size-caption);margin-top:12px}.transcription-screen .transcription-submit{width:var(--transcription-button-width,auto);height:var(--transcription-button-height,auto);flex-shrink:0;justify-content:flex-start;min-width:0;max-width:100%;transition:width .4s,height .4s,background .18s,border-color .18s;overflow:hidden}.transcription-button-content{white-space:nowrap;justify-content:center;align-items:center;gap:9px;min-width:max-content;margin-inline:auto;display:inline-flex}.transcription-button-icon{flex-shrink:0;display:inline-flex}.transcription-size-frame{transition:height .4s;overflow:hidden}.transcription-result-frame{margin-top:24px}.transcription-expansion{grid-template-rows:minmax(0,1fr);min-width:0;display:grid}.transcription-expansion-content{min-width:0;min-height:0;display:flow-root}@media (prefers-reduced-motion:no-preference){.transcription-size-frame:has([data-transcription-expanding]:not([hidden] *)){transition:none;height:auto!important}.transcription-expansion[data-transcription-expanding]>.transcription-expansion-content{overflow:hidden}.transcription-expansion-enter[data-transcription-expanding]{animation:transcription-expand var(--transcription-expansion-duration) ease-out both}}@keyframes transcription-expand{0%{opacity:0;grid-template-rows:minmax(0,0fr)}to{opacity:1;grid-template-rows:minmax(0,1fr)}}.transcription-enter{animation:.22s ease-out transcription-appear}@keyframes transcription-appear{0%{opacity:0}to{opacity:1}}.transcription-result-content>.transcription-result-transition{margin-top:0}.transcription-result-content>.transcription-result-animate{animation:.4s both transcription-result-enter}@keyframes transcription-result-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media (width<=1050px){.transcription-screen .generate-bar{flex-direction:column;align-items:stretch;gap:16px}.transcription-screen .transcription-submit{width:100%}.transcription-button-content{white-space:normal;min-width:0}.transcription-button-label{overflow-wrap:anywhere}}@media (prefers-reduced-motion:reduce){.transcription-screen .transcription-submit,.transcription-size-frame{transition:none}.transcription-enter,.transcription-button-icon .spin,.transcription-result-content>.transcription-result-animate{animation:none}}.studio.transcription-result{grid-template-columns:minmax(0,1fr)}.transcription-result--split{container-type:inline-size}.transcription-result--split>.script-panel>.source-player-section{--source-player-row-gap:16px;--source-editor-actions-gap:var(--source-player-row-gap);align-items:start;gap:var(--source-player-row-gap) 24px;grid-template-columns:minmax(0,1fr);margin:0;display:grid}.transcription-result--split .transcription-result-editor{min-width:0}.transcription-result-editor #transcription-panel-text>.transcription-result-actions{margin-top:var(--source-editor-actions-gap)}.transcription-result-editor .transcription-result-actions>.transcription-choose{margin-top:0}@media (height>=550px){@container (width>=680px){.transcription-result--split>.script-panel>.source-player-section{--source-video-max-height:70dvh;--source-editor-actions-gap:calc(var(--source-player-row-gap) + var(--source-video-frame-bottom-gap));--source-column-gap:24px;--source-column-width:min(calc((100% - var(--source-column-gap)) / 2), calc(var(--source-video-max-height) * var(--source-video-ratio,.5625)));grid-template-columns:minmax(0, 1fr) var(--source-column-width) var(--source-column-gap) var(--source-column-width) minmax(0, 1fr);column-gap:0}.transcription-result--split>.script-panel>.source-player-section>.source-player-preview{grid-column:2}.transcription-result--split .transcription-result-editor{height:var(--source-video-height,auto);flex-direction:column;grid-column:4;display:flex}.transcription-result-editor :is(#transcription-panel-subtitles:not([hidden]),#transcription-panel-text,.portrait-word-editor){flex-direction:column;flex:auto;min-height:0;display:flex}.transcription-result-editor :is(.transcription-tabs,.portrait-word-toolbar,.transcription-result-actions,.subtitle-invalid){flex:none}.transcription-result-editor .portrait-word-document{min-height:0;max-height:var(--source-video-height,560px);flex:auto}.transcription-result-editor #transcription-panel-text>textarea{resize:none;flex:320px;min-height:0}.transcription-result-editor .transcription-tabs{flex-wrap:wrap}.transcription-result-editor .subtitle-download{min-width:min(160px,100%)}.transcription-result--split>.script-panel>.source-player-section>:is(.result-player,.source-player-expansion){grid-column:1/-1}}}.transcription-result-appearance>.subtitle-export-expansion{margin-top:16px}.transcription-result-appearance .subtitle-video-export{margin-bottom:0}.transcription-result textarea{resize:vertical;border:1px solid var(--line);background:var(--surface);width:100%;min-height:320px;color:var(--text);font-family:var(--font-body);border-radius:8px;padding:16px;font-size:17px;line-height:1.7;display:block}.transcription-result-actions{flex-wrap:wrap;gap:12px;display:flex}.transcription-result-actions a{color:var(--text);text-decoration:none}.transcription-tabs{border-bottom:1px solid var(--line);gap:8px;margin:0 0 18px;display:flex}.transcription-tabs button{color:var(--muted);font-size:var(--font-size-body);background:0 0;border:0;border-bottom:2px solid #0000;padding:12px 16px}.transcription-tabs button[aria-selected=true]{border-color:var(--accent);color:var(--accent)}.subtitle-hint{color:var(--muted);font-size:var(--font-size-caption);margin-bottom:14px}.subtitle-list{scroll-behavior:smooth;gap:0;max-height:560px;margin-right:-12px;padding-right:12px;display:grid;overflow-y:auto}.subtitle-list--fade-top{-webkit-mask-image:linear-gradient(#0000,#000 18px);mask-image:linear-gradient(#0000,#000 18px)}.subtitle-list--fade-bottom{-webkit-mask-image:linear-gradient(#000 calc(100% - 18px),#0000);mask-image:linear-gradient(#000 calc(100% - 18px),#0000)}.subtitle-list--fade-top.subtitle-list--fade-bottom{-webkit-mask-image:linear-gradient(#0000,#000 18px calc(100% - 18px),#0000);mask-image:linear-gradient(#0000,#000 18px calc(100% - 18px),#0000)}@media (prefers-reduced-motion:reduce){.subtitle-list{scroll-behavior:auto}}.subtitle-chip--start svg{margin-right:5px}.subtitle-milliseconds{color:var(--muted);font-variant-numeric:tabular-nums;align-self:baseline;font-size:11px}.subtitle-chip--invalid .subtitle-milliseconds{color:var(--danger)}.subtitle-time-input{white-space:nowrap;min-width:5ch;color:inherit;font-family:var(--font-body);font-size:var(--font-size-caption);font-variant-numeric:tabular-nums;outline:none}.subtitle-time-input:focus-visible{text-underline-offset:3px;outline:none;text-decoration:underline}.subtitle-arrow{color:var(--muted)}.subtitle-download{min-width:160px}.subtitle-invalid{color:var(--danger);font-size:var(--font-size-caption);margin-top:12px}.subtitle-toolbar{justify-content:flex-end;margin:-4px 0 12px;display:flex}.subtitle-toolbar>div{flex-wrap:wrap;gap:4px;display:flex}.subtitle-history-button{min-height:36px;padding:6px 10px}.subtitle-entry{min-width:0}.subtitle-item--invalid{border-color:var(--danger)}.subtitle-chip--invalid{border-color:var(--danger-border);color:var(--danger);background:var(--surface)}.transcription-result .subtitle-item textarea[aria-invalid=true]{border-color:var(--danger-border);background:var(--surface)}.subtitle-item-error{color:var(--danger);font-size:var(--font-size-caption);margin:0;line-height:1.5}.subtitle-errors{margin-top:-10px}.subtitle-error-transition{opacity:0;grid-template-rows:0fr;transition:grid-template-rows .22s,opacity .22s;display:grid}.subtitle-error-transition--visible{opacity:1;grid-template-rows:1fr}.subtitle-error-transition>div{min-height:0;overflow:hidden}.subtitle-errors .subtitle-item-error{padding-top:8px}@media (prefers-reduced-motion:reduce){.subtitle-error-transition{transition:none}}.source-player-section{--source-video-frame-bottom-gap:10px;--source-video-max-height:360px;margin:0 0 22px}.transcription-result--portrait .source-player-section{--source-video-max-height:min(560px, 70dvh)}.source-player-section .result-player-time:first-of-type{flex:0 0 8ch;margin-right:-4px}.source-player-note{color:var(--muted);font-size:var(--font-size-caption);margin:8px 0 0;line-height:1.5}.source-player-error{color:var(--danger);font-size:var(--font-size-caption);margin:10px 0 0}.source-video-frame{background:var(--media-background);margin:0 auto var(--source-video-frame-bottom-gap);border-radius:10px;position:relative;overflow:hidden}.source-video-frame video{width:100%;max-height:var(--source-video-max-height);display:block}@font-face{font-family:Golos Text Subtitles;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/subtitle-golos-text-bold-D53hIsOP.woff2)format("woff2")}@font-face{font-family:Roboto Condensed Subtitles;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/subtitle-roboto-condensed-bold-BFHwkZ__.woff2)format("woff2")}@font-face{font-family:Manrope Subtitles;font-style:normal;font-weight:800;font-display:swap;src:url(/assets/subtitle-manrope-extrabold-7DwAFY8P.woff2)format("woff2")}@font-face{font-family:TikTok Sans Subtitles;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/subtitle-tiktok-sans-bold-hPRDNQiM.woff2)format("woff2")}@font-face{font-family:Montserrat Subtitles;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/subtitle-montserrat-bold-D53CE6jD.woff2)format("woff2")}.source-video-caption-frame{pointer-events:none;flex-direction:column;display:flex;position:absolute;overflow:hidden}.source-video-caption{box-sizing:border-box;color:#fff;font-family:var(--font-body);text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none;flex:none;margin:auto 0;padding:.2em;font-weight:700;line-height:1.2}.source-video-caption--outlined{paint-order:stroke fill;-webkit-text-stroke:var(--subtitle-outline-width,.15em) #000}.source-video-caption-frame[data-vertical-align=top] .source-video-caption{margin:0 0 auto}.source-video-caption-frame[data-vertical-align=bottom] .source-video-caption{margin:auto 0 0}.source-video-caption--plain{position:absolute;bottom:8%;left:10%;right:10%}.subtitle-video-export{--subtitle-control-height:44px;justify-items:start;gap:12px;margin:0 0 22px;display:grid}.subtitle-appearance-disclosure{border:1px solid var(--line);background:var(--surface);border-radius:12px;width:100%;min-width:0;container-type:inline-size}.subtitle-appearance-panel{opacity:0;visibility:hidden;grid-template-rows:minmax(0,0fr)}.subtitle-appearance-panel[data-open]{opacity:1;visibility:visible;grid-template-rows:minmax(0,1fr)}.subtitle-appearance-panel>.transcription-expansion-content{justify-items:start;gap:12px;display:grid}.subtitle-appearance-panel:not([data-open])>.transcription-expansion-content{overflow:hidden}.subtitle-highlight-settings{border-top:1px solid var(--line);flex-wrap:wrap;flex:1 0 100%;align-items:center;gap:8px 12px;padding-top:12px;display:flex}.subtitle-highlight-settings .subtitle-custom-color{margin-top:0}.subtitle-highlight-settings :is(button,input[type=color]):disabled{opacity:.55;cursor:default}.subtitle-appearance-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}@media (prefers-reduced-motion:no-preference){.subtitle-appearance-panel{transition:grid-template-rows var(--transcription-expansion-duration) ease-out, opacity var(--transcription-expansion-duration) ease-out, visibility 0s linear var(--transcription-expansion-duration)}.subtitle-appearance-panel[data-open]{transition-delay:0s}.subtitle-appearance-toggle>svg:last-child{transition:transform var(--transcription-expansion-duration) ease-out}}.subtitle-export-style fieldset{border:0;min-width:0;margin:0;padding:0}.subtitle-export-style legend{font-size:var(--font-size-caption);margin-bottom:6px;padding:0;font-weight:600}.subtitle-color-options,.subtitle-export-alignments,.subtitle-export-actions{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.subtitle-export-style button{min-height:var(--subtitle-control-height);border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:var(--font-size-caption);border-radius:8px;padding:0 10px;line-height:1.25}.subtitle-export-style button:hover,.subtitle-export-style button[aria-pressed=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-strong)}.subtitle-color-swatch{border:1px solid var(--line);border-radius:50%;width:24px;height:24px}.subtitle-custom-color{font-size:var(--font-size-caption);cursor:pointer;align-items:center;gap:8px;margin-top:4px;display:inline-flex}.subtitle-custom-color input{width:var(--subtitle-control-height);height:var(--subtitle-control-height);border:1px solid var(--line);background:var(--surface);cursor:inherit;border-radius:8px;margin:0;padding:3px}.subtitle-video-export .subtitle-export-download,.subtitle-video-export .source-player-note{margin-top:0}.subtitle-size-control{flex:210px;align-content:start;gap:2px;max-width:320px;display:grid}.subtitle-size-ends{font-size:var(--font-size-caption);justify-content:space-between;gap:8px;display:flex}.subtitle-size-label{font-size:var(--font-size-caption);font-weight:600}.subtitle-size-ends{color:var(--muted)}.subtitle-size-control input{width:100%;min-height:32px;accent-color:var(--accent);cursor:pointer;margin:0}.subtitle-size-control input:disabled{cursor:not-allowed}.subtitle-outline-controls{flex-wrap:wrap;align-items:flex-start;gap:6px 16px;width:100%;display:flex}.subtitle-frame-actions{flex-wrap:wrap;align-items:center;gap:6px 16px;width:100%;display:flex}.subtitle-video-export .studio-switch{max-width:260px}.subtitle-frame-reset{margin:0}.subtitle-frame-reset:disabled{opacity:.55;cursor:default}.subtitle-video-export :is(.studio-switch,.subtitle-custom-color,.transcription-choose){min-height:var(--subtitle-control-height);line-height:1.25}.subtitle-video-export .transcription-choose{padding-block:0}.subtitle-appearance-disclosure .subtitle-appearance-toggle{width:100%;min-height:46px;color:var(--text);font-family:var(--font-heading);border:0;border-radius:11px;justify-content:flex-start;font-weight:700}.subtitle-appearance-disclosure .subtitle-appearance-toggle[aria-expanded=true]{border-end-end-radius:0;border-end-start-radius:0}.subtitle-appearance-toggle>svg:first-child{color:var(--accent)}.subtitle-appearance-toggle>svg:last-child{color:var(--muted);margin-inline-start:auto}.subtitle-export-style{--subtitle-section-separator:color-mix(in srgb, var(--muted) 22%, var(--line));border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr);gap:20px 0;width:100%;padding:20px;display:grid}.subtitle-appearance-section{align-content:start;align-items:start;column-gap:18px;min-width:0;display:grid}.subtitle-appearance-section+.subtitle-appearance-section{border-top:1px solid var(--subtitle-section-separator);padding-top:15px}.subtitle-appearance-section>h3{min-height:44px;font-family:var(--font-heading);font-size:var(--font-size-heading);align-items:center;gap:10px;margin:0 0 5px;font-weight:800;line-height:1.25;display:flex}.subtitle-appearance-section>h3>svg{background:var(--accent-soft);width:34px;height:34px;color:var(--accent);border-radius:8px;flex-shrink:0;padding:8px}.subtitle-appearance-frame{row-gap:12px}.subtitle-appearance-frame>h3{margin-bottom:0}.subtitle-appearance-section:not(.subtitle-appearance-frame)>:not(h3){margin:0;padding-block:13px}.subtitle-appearance-section:not(.subtitle-appearance-frame)>:not(h3)+:not(h3){border-top:1px solid var(--line)}.subtitle-font-select{gap:8px;min-width:0;display:grid}.subtitle-export-style .subtitle-size-control{max-width:none}.subtitle-export-style :is(.subtitle-highlight-settings,.subtitle-outline-controls,.subtitle-frame-actions){border:0;align-content:start;gap:2px;display:grid}.subtitle-export-style :is(.subtitle-highlight-settings,.subtitle-outline-controls){gap:7px}.subtitle-export-style .studio-switch{width:fit-content;max-width:100%;font-size:var(--font-size-caption);justify-content:flex-start;font-weight:600}.subtitle-export-style .studio-switch-track{flex-basis:34px;order:-1;height:20px}.subtitle-export-style .studio-switch-track:before{width:14px;height:14px}.subtitle-export-style .subtitle-color-options{gap:0}.subtitle-export-style .subtitle-color-option{width:var(--subtitle-control-height);background:0 0;border:0;border-radius:8px;place-items:center;padding:0;display:grid}.subtitle-export-style .subtitle-color-option[aria-pressed=true]{background:0 0;border:0}.subtitle-export-style .subtitle-color-option[aria-pressed=true]>.subtitle-color-swatch{outline:2px solid var(--accent);outline-offset:2px}.subtitle-export-style .subtitle-custom-color{color:var(--muted);gap:0;margin:0}.subtitle-export-style .subtitle-custom-color[data-selected]{--subtitle-custom-color-outline:2px solid var(--accent)}.subtitle-export-style .subtitle-custom-color input{background:0 0;border:0;padding:9px}.subtitle-export-style .subtitle-custom-color input::-webkit-color-swatch-wrapper{padding:0}.subtitle-export-style .subtitle-custom-color input::-webkit-color-swatch{border:1px solid var(--line);outline:var(--subtitle-custom-color-outline,none);outline-offset:2px;border-radius:6px}.subtitle-export-style .subtitle-custom-color input::-moz-color-swatch{border:1px solid var(--line);outline:var(--subtitle-custom-color-outline,none);outline-offset:2px;border-radius:6px}.subtitle-export-style .subtitle-outline-label{justify-content:space-between;gap:8px;display:flex}.subtitle-outline-reading{color:var(--muted);font-variant-numeric:tabular-nums;font-size:var(--font-size-caption);white-space:nowrap}.subtitle-export-style .subtitle-frame-reset{color:var(--accent-strong);font-size:var(--font-size-caption);text-align:start;background:0 0;border:0;justify-self:start;padding:10px 14px}.subtitle-export-style .subtitle-export-alignments{gap:4px}.subtitle-export-style .subtitle-export-alignments button{padding-inline:7px}@media (pointer:coarse){.subtitle-export-style .subtitle-size-control input{min-height:var(--subtitle-control-height)}}@container (width<360px){.subtitle-export-style{padding-inline:14px}}@container (width<292px) or (600px<=width<618px){.subtitle-text-color-field .subtitle-color-options{grid-template-columns:repeat(3, var(--subtitle-control-height));display:grid}}@container (width>=600px){.subtitle-export-style{--subtitle-column-inset:24px}.subtitle-export-style,.subtitle-appearance-frame{grid-template-columns:repeat(2,minmax(0,1fr))}.subtitle-appearance-section:first-child{padding-inline-end:var(--subtitle-column-inset)}.subtitle-appearance-section:nth-child(2){padding-top:0;border-top:0;border-inline-start:1px solid var(--subtitle-section-separator);padding-inline-start:var(--subtitle-column-inset)}.subtitle-appearance-frame{column-gap:0}.subtitle-appearance-frame>.subtitle-frame-actions{padding-inline-start:calc(var(--subtitle-column-inset) + 1px)}.subtitle-appearance-frame :is(legend,.studio-switch){padding-block:calc((var(--subtitle-control-height) - 20px) / 2);line-height:20px}.subtitle-appearance-frame .studio-switch{align-items:flex-start}.subtitle-appearance-frame,.subtitle-appearance-frame>h3{grid-column:1/-1}}.subtitle-export-download{color:var(--accent-strong);text-decoration:none}.subtitle-export-reveal{color:var(--accent-strong);background:0 0;border:0;margin:0;padding:3px 5px;text-decoration:underline}.subtitle-item--playing:not(.subtitle-item--invalid){border-color:var(--accent)}.subtitle-follow[aria-pressed=true]{color:var(--accent-strong);background:var(--accent-soft)}.subtitle-follow[aria-pressed=true]:hover{background:var(--accent-soft-hover)}.subtitle-toolbar{justify-content:space-between;gap:8px}.subtitle-item--playing .subtitle-number{color:var(--on-accent);background:var(--accent)}@media (width<=560px){.subtitle-toolbar{flex-wrap:wrap}.subtitle-toolbar>div{margin-left:auto}.subtitle-follow{white-space:nowrap}}.history-screen{container-type:inline-size}.studio.history-panel{display:block;overflow:visible}.history-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:22px 28px;display:flex}.history-refresh:disabled,.history-more:disabled{opacity:1}.history-body{align-items:start;min-height:300px;display:grid}.history-content,.history-loading{grid-area:1/1;min-width:0;transition:none}.history-body[data-loading=true] .history-content{opacity:0;pointer-events:none}.history-loading{pointer-events:none}.history-table{border-collapse:collapse;table-layout:fixed;text-align:left;width:100%}.history-table th{background:var(--surface-subtle);color:var(--muted);font-size:var(--font-size-caption);padding:14px 24px;font-weight:500}.history-table th:first-child{width:30%}.history-table th:nth-child(2){width:23%}.history-table th:nth-child(3){width:19%}.history-table th:last-child{width:28%}.history-table td{border-top:1px solid var(--line);vertical-align:top;height:132px;font-size:var(--font-size-caption);overflow-wrap:break-word;padding:22px 24px;line-height:1.5}.history-table strong{color:var(--text);font-size:var(--font-size-body);font-weight:500;display:block}.history-request-heading{align-items:flex-start;gap:12px;display:flex}.history-request-icon{border:1px solid var(--line);background:var(--surface-subtle);width:40px;height:40px;color:var(--accent);border-radius:8px;flex-shrink:0;place-items:center;display:grid}.history-detail,.history-date,.history-no-charge{color:var(--muted);font-size:var(--font-size-caption);margin-top:4px;line-height:1.5;display:block}.history-date{color:var(--muted-subtle)}.history-no-charge{margin-top:0}.history-status{color:var(--accent);line-height:1.5;display:inline-block}.history-status-copy{gap:4px;display:grid}.history-status-label{align-items:flex-start;gap:6px;display:flex}.history-progress{color:var(--muted);white-space:nowrap;padding-left:21px;display:block}.history-status svg{flex-shrink:0;margin-top:3px}.history-status--succeeded{color:var(--text)}.history-status--failed{color:var(--danger)}.history-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.history-cost .history-detail{white-space:nowrap}.history-downloads{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.history-download{min-width:156px}.history-retention{margin-top:8px}.history-pagination{border-top:1px solid var(--line);justify-content:center;padding:18px 24px;display:flex}.history-more-spacer{width:16px}.history-error{border:1px solid var(--danger-border);background:var(--danger-soft);color:var(--danger);font-size:var(--font-size-caption);border-radius:8px;margin-top:16px;padding:14px 18px;line-height:1.6}.history-loading{min-height:300px;color:var(--muted);font-size:var(--font-size-caption);justify-content:center;align-items:center;gap:10px;padding:28px;display:flex}.history-panel .history-empty{min-height:250px;margin:24px}@container (width<=760px){.studio.history-panel{box-shadow:none;background:0 0;border:0;border-radius:0;overflow:visible}.history-toolbar{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:14px}.history-body{margin-top:14px}.history-table{display:block}.history-table thead{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.history-table tbody{gap:12px;display:grid}.history-table tr{border:1px solid var(--line);background:var(--surface);border-radius:12px;grid-template-columns:minmax(0,1fr) auto;gap:14px 12px;padding:20px;display:grid}.history-table td{border:0;height:auto;padding:0;display:block}.history-request-heading{gap:12px}.history-request{grid-area:1/1}.history-state{text-align:right;grid-area:1/2;align-self:start;max-width:160px;padding-left:0}.history-state .history-status-label{justify-content:flex-end}.history-state .history-status-copy{text-align:right}.history-progress{padding-left:0}.history-table .history-cost{border-top:1px solid var(--line);grid-column:1/-1;padding-top:12px}.history-cost-value{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label amount";align-items:center;gap:12px;display:grid}.history-cost-label,.history-no-charge{grid-area:label;margin:0}.history-amount{grid-area:amount}.history-table .history-result{flex-direction:column-reverse;grid-column:1/-1;align-items:stretch;gap:10px;min-height:0;display:flex}.history-result .history-retention{max-width:none;margin:0}.history-table .history-result--empty{display:none}.history-download{width:100%;min-width:0}.history-downloads{align-items:stretch}.history-pagination{border:0;padding:18px 0 0}}@container (width<=420px){.history-table tr{column-gap:8px}.history-request-icon{display:none}.history-request strong{white-space:nowrap}.history-state{max-width:130px}.history-row--transcription .history-state{max-width:98px}}@media (width<=560px){.history-screen{position:relative}.history-screen .tool-heading h1{align-items:center;min-height:44px;padding-right:56px;display:flex}.history-toolbar{gap:10px;padding:16px}.history-filters{flex-wrap:wrap;flex:1;gap:4px}.history-filters button{flex-grow:1;padding-inline:6px}.history-toolbar .history-refresh{width:44px;margin-left:auto;padding:10px;position:absolute;top:0;right:0}.history-refresh span{display:none}.history-table tr{padding:20px 16px}.history-panel .history-empty{margin:16px}}.history-download-menu{width:max-content;max-width:100%;position:relative}.history-download-menu>.history-download{justify-content:space-between}.history-format-menu{z-index:10;border:1px solid var(--line);background:var(--surface);border-radius:8px;min-width:180px;padding:4px;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #15243b24}.history-format-menu button{width:100%;min-height:44px;color:var(--text);text-align:left;font-size:var(--font-size-caption);background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:8px 12px;display:flex}.history-format-menu button:hover:not(:disabled),.history-format-menu button:focus-visible{background:var(--accent-soft)}@container (width<=760px){.history-download-menu{width:100%}.history-format-menu{left:0;right:0}}.workspace-layout{--workspace-menu-reserve:clamp(0px, (1664px - 100vw) / 2, 232px);--workspace-content-offset:var(--workspace-menu-reserve);margin-left:var(--workspace-content-offset);position:relative}.workspace-menu-animating{transition:margin-left .18s}.workspace-layout.workspace-collapsed{--workspace-content-offset:max(0px, var(--workspace-menu-reserve) - 184px)}.workspace-content{min-width:0}.workspace-sidebar{z-index:10;top:0;left:calc(-1 * (max(32px, (100vw - 1200px) / 2 + 32px) + var(--workspace-content-offset)));border-right:1px solid var(--line);width:240px;min-width:0;padding-right:12px;position:absolute}.workspace-menu-animating .workspace-sidebar{transition:left .18s,width .18s,padding-right .18s}.workspace-tool-links{flex-direction:column;gap:5px;display:flex}.workspace-tool-button{min-height:48px;color:var(--muted);font-size:var(--font-size-body);text-align:left;white-space:nowrap;background:0 0;border:0;border-left:4px solid #0000;border-radius:0 6px 6px 0;align-items:center;gap:12px;padding:12px 10px 12px 8px;display:flex;position:relative}.workspace-tool-button svg{flex-shrink:0}.workspace-tool-label{white-space:normal;min-width:0;line-height:1.25}.workspace-sidebar .workspace-tool-button{padding-block:4px}.workspace-tool-button:hover{background:var(--accent-soft)}.workspace-tool-button[aria-pressed=true]{border-left-color:var(--accent);color:var(--accent)}.workspace-tool-icon{flex-shrink:0;align-items:center;display:inline-flex;position:relative}.workspace-tool-new{background:var(--accent);outline:2px solid var(--surface);border-radius:50%;width:6px;height:6px;position:absolute;top:-6px;right:-4px}.workspace-tool-tooltip{visibility:hidden;opacity:0;background:var(--text);color:var(--on-accent);font-size:var(--font-size-caption);white-space:nowrap;pointer-events:none;z-index:2;box-shadow:var(--popover-shadow);border-radius:7px;padding:8px 12px;display:none;position:absolute;top:50%;left:calc(100% + 14px);transform:translateY(-50%)}.workspace-navigation-footer{border-top:1px solid var(--line);margin-top:16px;padding:10px 0 16px 2px;display:flex}.workspace-icon-button{width:44px;height:44px;color:var(--muted);background:0 0;border:0;border-radius:8px;flex-shrink:0;place-items:center;padding:0;display:grid}.workspace-icon-button:hover{background:var(--accent-soft);color:var(--text)}.workspace-icon-button.workspace-menu-open{display:none}.workspace-collapsed .workspace-sidebar{width:56px;padding-right:7px}.workspace-sidebar .workspace-tool-label{--workspace-tool-label-width:173px;max-width:var(--workspace-tool-label-width);opacity:1;overflow:hidden}.workspace-sidebar .workspace-tool-label-text{width:var(--workspace-tool-label-width);display:block}.workspace-menu-animating .workspace-tool-label{transition:max-width .18s,opacity .18s}.workspace-collapsed .workspace-sidebar .workspace-tool-label{opacity:0;max-width:0}.workspace-collapse-button{position:relative}.workspace-collapsed .workspace-tool-tooltip,.workspace-collapse-button .workspace-tool-tooltip{display:block}.workspace-collapsed .workspace-tool-button:hover .workspace-tool-tooltip,.workspace-collapsed .workspace-tool-button:focus-visible .workspace-tool-tooltip,.workspace-collapse-button:hover .workspace-tool-tooltip,.workspace-collapse-button:focus-visible .workspace-tool-tooltip{visibility:visible;opacity:1}.workspace-drawer{border:0;border-right:1px solid var(--line);background:var(--surface);width:min(300px,100vw - 48px);max-width:100vw;height:100dvh;max-height:100dvh;color:var(--text);box-shadow:var(--popover-shadow);margin:0;padding:0;position:fixed;inset:0 auto 0 0;overflow-x:hidden}.workspace-drawer[open]{flex-direction:column;animation:.18s ease-out workspace-drawer-enter;display:flex}.workspace-drawer::backdrop{background:var(--overlay);animation:.18s ease-out workspace-backdrop-enter}.workspace-drawer.workspace-drawer-closing[open]{animation:.18s ease-in forwards workspace-drawer-exit}.workspace-drawer.workspace-drawer-closing::backdrop{animation:.18s ease-in forwards workspace-backdrop-exit}.workspace-drawer-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:20px 16px;display:flex}.workspace-drawer-header .brand{font-size:20px}.workspace-drawer-header .brand-mark{width:32px;height:32px;margin-right:8px}.workspace-drawer .workspace-tool-links{gap:8px;padding:20px 16px}.workspace-drawer .workspace-tool-button{min-height:52px;padding:14px 12px}body:has(.workspace-drawer[open]){overflow:hidden}@keyframes workspace-drawer-enter{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes workspace-drawer-exit{to{transform:translate(-100%)}}@keyframes workspace-backdrop-enter{0%{opacity:0}}@keyframes workspace-backdrop-exit{to{opacity:0}}@media (width<=900px){.workspace-layout,.workspace-layout.workspace-collapsed{margin-left:0}.workspace-sidebar{display:none}.workspace-icon-button.workspace-menu-open{display:grid}.topbar:has(.workspace-menu-open){column-gap:12px}.topbar:has(.workspace-menu-open)>.brand{margin-right:auto}}@media (prefers-reduced-motion:reduce){.workspace-menu-animating,.workspace-menu-animating .workspace-sidebar,.workspace-menu-animating .workspace-tool-label{transition:none}.workspace-drawer[open],.workspace-drawer.workspace-drawer-closing[open],.workspace-drawer::backdrop,.workspace-drawer.workspace-drawer-closing::backdrop{animation:none}}
