/* Customer geometry follows customer.html. The existing Voicepy theme supplies
   every color; these rules only arrange the shell and text-to-speech controls. */
body.customer-layout{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.customer-layout .customer-topbar{height:45px;min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--white);z-index:30}
.customer-layout .studio-brand{margin:0;gap:9px;font-size:18px;line-height:1.1}
.customer-layout .studio-brand .logo{width:30px;height:30px}
.customer-layout .studio-brand small{font-size:8px;margin-top:2px}
.customer-layout .customer-page-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.customer-layout .topbar-actions{gap:10px;margin-left:auto}
.customer-layout .topbar-actions .small-button{min-height:30px;padding:5px 10px;font-size:12px}
.customer-layout .customer-sign-out svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}



.customer-layout .customer-menu-toggle{display:none}
.customer-layout .customer-menu-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.customer-layout .customer-announcements{flex:none;min-width:0;background:var(--paper);border-bottom:1px solid var(--line)}
.customer-layout .customer-announcements:has(>#studioNotice[hidden]):has(>#liveTicker[hidden]){display:none}
.customer-layout .customer-announcements .notice{margin:0;padding:7px 16px;border:0;border-radius:0;background:transparent;font-size:12px}
.customer-layout .customer-app-body{display:flex;flex:1;min-height:0;min-width:0;position:relative}
.customer-layout .workspace-sidebar{position:static;inset:auto;width:280px;min-width:280px;padding:0;overflow-y:auto;overflow-x:hidden;min-height:0;flex-shrink:0}
.customer-layout .customer-sidebar-user{display:flex;flex-direction:column;align-items:flex-start;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 13px 13px;gap:8px;flex-shrink:0}
.customer-layout .account-avatar{width:30px;height:30px;border-radius:50%;font-size:12px;background:var(--pale);color:var(--blue)}
.customer-layout .sidebar-account>span:nth-child(2){width:100%;flex:none}
.customer-layout .sidebar-account strong{font-size:15px;font-weight:650}
.customer-layout #sidebarEmail{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}
.customer-layout .studio-navigation{display:flex;flex-direction:column;gap:0;padding:0 0 10px;overflow:visible}
.customer-layout .nav-caption{padding:9px 11px 4px;margin:0;font-size:14px;font-weight:600;letter-spacing:.4px}
.customer-layout .nav-caption:not(:first-child){border-top:1px solid var(--line);margin:6px 11px 0;padding-left:0;padding-right:0}
.customer-layout .studio-navigation button{width:calc(100% - 10px);min-height:34px;margin:1px 5px;padding:7px 11px;gap:8px;font-size:14px;line-height:1.25;border-radius:8px;flex-shrink:0}
.customer-layout .studio-navigation [data-icon] svg{width:17px;height:17px}
.customer-layout .sidebar-footer{position:static;margin-top:auto;border-top:1px solid var(--line);padding:13px 16px;flex-shrink:0}
.customer-layout .customer-credit-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);margin-bottom:6px}
.customer-layout .customer-credit-heading .text-button{font-size:11px}
.customer-layout .balance{border:0;padding:0;background:transparent;color:var(--ink);font-size:18px;font-weight:650;white-space:normal}
.customer-layout .balance:before{display:none}
.customer-layout #sidebarBalance{display:block;color:var(--muted);font-size:12px;margin:3px 0 8px}
.customer-layout .queue-indicator{display:flex;font-size:12px}
.customer-layout .sidebar-links{padding-top:10px}
.customer-layout .workspace-content{margin:0;display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden}
.customer-layout .studio-main{padding:16px;max-width:none;width:100%;margin:0;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;scrollbar-gutter:stable}
.customer-layout .studio-heading{display:none}
.customer-layout .studio-heading.customer-tool-heading{display:block;flex-shrink:0;margin:0 0 4px;padding:0}
.customer-layout .customer-tool-heading .section-caption{font-size:11px}
.customer-layout .customer-tool-heading h2{font-size:24px;line-height:1.4;margin:5px 0 8px}
.customer-layout .customer-tool-heading p{font-size:14px;line-height:1.6;margin:0}
.customer-layout :is(#view-plans,#view-history,#view-settings)>.customer-tool-heading{margin-bottom:24px}
.customer-layout #view-editor{min-height:100%}
.customer-layout .editor-grid{grid-template-columns:minmax(0,1fr) clamp(360px,30vw,520px);gap:20px;min-height:100%;align-items:stretch}
.customer-layout .editor-column{display:flex;flex-direction:column;gap:16px;min-width:0}
.customer-layout .editor-box{display:flex;flex-direction:column;padding:0;border-radius:19px;overflow:hidden;flex:1;min-height:calc(100dvh - 130px)}
.customer-layout .editor-box>.panel-heading{flex-shrink:0;min-height:43px;padding:10px 20px;margin:0;border-bottom:1px solid var(--line);font-size:12px}
.customer-layout .editor-box>.panel-heading label{font-size:12px;font-weight:600}
.customer-layout .customer-text-input{flex:1;display:flex;flex-direction:column;min-height:320px}
.customer-layout .editor-box #script{border:0;outline-offset:-3px;border-radius:0;flex:1;min-height:280px;padding:20px;resize:vertical;font-size:16px;line-height:1.75}
.customer-layout .effects-panel{flex-shrink:0;margin:12px 20px 0;padding:12px;border-radius:10px}
.customer-layout .effects-panel h3{font-size:13px;margin:0 0 6px}
.customer-layout .effects-panel p{font-size:12px;margin:0 0 8px;line-height:1.6}
.customer-layout .cue-buttons{gap:6px}
.customer-layout .cue-buttons button{padding:6px 9px;font-size:12px;min-height:32px}
.customer-layout .customer-editor-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 20px;border-top:1px solid var(--line);align-items:center;flex-shrink:0}
.customer-layout .customer-editor-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;grid-column:1/-1}
.customer-layout .customer-editor-toolbar>span{margin-right:auto;font-size:12px;color:var(--muted)}
.customer-layout #characterCount{display:inline-block;color:var(--blue);background:var(--pale);padding:2px 7px;border-radius:12px;font-weight:650}
.customer-layout .customer-editor-toolbar .small-button{min-height:32px;padding:6px 10px;font-size:12px}
.customer-layout .customer-editor-toolbar .text-button{font-size:12px}
.customer-layout .customer-editor-draft{margin:0;flex-wrap:wrap;gap:8px}
.customer-layout .customer-editor-draft input{flex-basis:100%;font-size:13px;padding:0}
.customer-layout .customer-editor-generate{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;min-width:0;grid-column:1/-1}
.customer-layout .generation-cost{padding:0;border:0;margin:0;max-width:200px}
.customer-layout .generation-cost>div{flex-direction:column;gap:1px}
.customer-layout .generation-cost strong{font-size:13px}
.customer-layout .generation-cost p{display:none}
.customer-layout .generate-button{width:auto;min-width:160px;min-height:42px;font-size:13px}
.customer-layout .stop-preview{width:auto;margin:0}
.customer-layout .customer-import-panel{border-top:1px solid var(--line);font-size:12px;padding:0 20px;flex-shrink:0}
.customer-layout .customer-import-panel>summary{cursor:pointer;padding:10px 0;color:var(--muted)}
.customer-layout .customer-import-panel>.tts-file-box{border:0;border-radius:0;padding:0 0 16px;margin:0}
.customer-layout .customer-import-panel h3{font-size:12px}
.customer-layout .customer-import-panel p,.customer-layout .customer-import-panel small{font-size:12px}
.customer-layout #ttsBatchPanel{margin:0;flex-shrink:0}
.customer-layout #ttsGenerationProgress{margin:0;flex-shrink:0}
.customer-layout .settings-box{width:100%;min-width:0;align-self:start;position:sticky;top:0;max-height:calc(100dvh - 125px);overflow:auto;padding:16px;border-radius:13px}
.customer-layout .customer-settings-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:0 0 18px;padding:0 0 8px}
.customer-layout .customer-settings-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;padding:8px 6px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-size:13px;cursor:pointer;min-height:36px}
.customer-layout .customer-settings-tabs button[aria-selected=true]{background:var(--pale);color:var(--blue)}
.customer-layout .customer-settings-tabs svg{width:16px;height:16px}
.customer-layout .settings-section{margin-bottom:18px;padding-bottom:18px}
.customer-layout .settings-section .section-caption{font-size:12px}
.customer-layout .selected-voice{flex-wrap:wrap;padding:10px;margin-top:8px}
.customer-layout .selected-voice>div{flex-basis:100%}
.customer-layout .selected-voice strong{font-size:14px}
.customer-layout .selected-voice span{font-size:12px}
.customer-layout .selected-voice .small-button{width:100%;margin-top:4px}
.customer-layout .settings-section:has(>.selected-voice){display:flex;align-items:center;gap:8px}
.customer-layout .settings-section:has(>.selected-voice)>.section-caption{flex-shrink:0}
.customer-layout .selected-voice{position:relative;flex:1;min-width:0;margin:0;flex-wrap:nowrap;padding:10px}
.customer-layout .selected-voice>div{flex-basis:auto}
.customer-layout .selected-voice span{display:none}
.customer-layout .selected-voice strong{font-size:13px}
.customer-layout .selected-voice::after{content:'⌄';flex-shrink:0;font-size:15px}
.customer-layout .selected-voice .voice-picker-trigger{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;min-height:0}
.customer-layout .selected-voice:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.customer-layout .tts-advanced{gap:14px}
.customer-layout .tts-advanced label{font-size:13px}
.customer-layout .tts-advanced select,.customer-layout .tts-advanced input[type=number]{font-size:13px;padding:9px}
.customer-layout #ttsSettingsPanel small{font-size:12px;line-height:1.55}
.customer-layout .dictionary-card{margin-bottom:18px;background:var(--white);border-color:var(--line)}
.customer-layout .dictionary-title{color:var(--muted)}
.customer-layout .dictionary-title h3{font-size:13px}
.customer-layout .dictionary-title>span:last-child{background:var(--paper);color:var(--ink);border:1px solid var(--line)}
.customer-layout .dictionary-source{font-size:11px}
.customer-layout .dictionary-card p{font-size:12px}
.customer-layout .dictionary-chips span{background:var(--paper);border-color:var(--line);color:var(--muted)}
.customer-layout .dictionary-footer{flex-wrap:wrap;border-color:var(--line)}
.customer-layout .dictionary-footer label{font-size:12px}
.customer-layout .customer-expressive-settings{display:grid;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--white)}
.customer-layout .customer-expressive-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.customer-layout .customer-expressive-title{display:flex;align-items:center;gap:7px;min-width:0;flex:1;font-size:13px;line-height:1.4}
.customer-layout .customer-expressive-title strong{font-weight:650;min-width:0}
.customer-layout .customer-expressive-title svg{width:16px;height:16px;flex-shrink:0;color:var(--muted)}
.customer-layout .customer-expressive-beta{font-size:10px;font-weight:600;line-height:1.5;border:1px solid var(--line);border-radius:20px;padding:1px 6px;background:var(--paper);color:var(--muted)}
.customer-layout .customer-expressive-toggle{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap;cursor:pointer}
.customer-layout .customer-expressive-toggle input{margin:0;accent-color:var(--blue)}
.customer-layout .customer-expressive-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.customer-layout .customer-expressive-levels[aria-disabled=true]{opacity:.5}
.customer-layout .customer-expressive-levels button{border:1px solid var(--line);border-radius:8px;padding:8px 6px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:600;line-height:1.4;min-width:0;min-height:36px}
.customer-layout .customer-expressive-levels button[aria-pressed=true]{background:var(--paper);color:var(--ink);border-color:var(--ink)}
.customer-layout .customer-expressive-levels button:not(:disabled):hover{border-color:var(--ink);color:var(--ink)}
.customer-layout .customer-expressive-levels button:disabled{opacity:1}
.customer-layout .customer-expressive-settings .customer-expressive-note{margin:0;font-size:11px;line-height:1.5;color:var(--muted)}
.customer-layout #dictionaryModal .dictionary-preview{margin-top:20px;border-top:1px solid var(--line);padding-top:16px;display:grid;gap:10px}
.customer-layout #dictionaryModal .dictionary-preview h3{font-size:14px;margin:0}
.customer-layout #dictionaryModal .dictionary-preview textarea{width:100%;min-height:90px;resize:vertical;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);padding:10px;font:inherit;font-size:13px}
.customer-layout #dictionaryModal .dictionary-preview .small-button{justify-self:start}
.customer-layout #dictionaryModal #ttsSpokenPreview{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;background:var(--paper);color:var(--muted);min-height:44px}
.customer-layout #resultPanel{margin:0;padding:0;border:0;background:transparent}
.customer-layout #resultPanel>.panel-heading{flex-wrap:wrap}
.customer-layout #resultPanel .history-heading-actions{justify-content:flex-start;gap:8px}
.customer-layout #resultPanel .history-row{overflow-wrap:anywhere}
.customer-layout #resultPanel #ttsGenerationProgress{margin:0 0 16px}
.customer-layout #resultPanel #ttsBatchPanel{padding:12px;margin:0 0 16px;border-radius:8px}
.customer-layout #resultPanel .tts-history-status{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6}
.customer-layout #resultPanel .tts-history-status .generation-spinner{flex-shrink:0;margin-top:3px}
.customer-layout #resultPanel .tts-current-job audio{width:100%;max-width:100%;margin-top:10px}
.customer-layout #view-editor .generation-track,.customer-layout #ttsBatchProgress{display:none!important}
.customer-layout #resultPanel .audio-row-header{align-items:flex-start;flex-wrap:wrap;gap:6px}
.customer-layout #resultPanel .audio-file-actions{gap:6px}
.customer-layout #resultPanel .audio-file-actions .small-button{white-space:normal;text-align:center}
.customer-layout #resultPanel .audio-file-actions .recording-delete{margin-left:0}
.customer-layout #resultPanel .customer-history-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:10px 0 15px;padding:0;border:0}
.customer-layout #resultPanel .customer-history-heading h3{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:650;line-height:1.4;margin:0;color:var(--ink)}
.customer-layout #resultPanel .customer-history-heading h3 svg{width:18px;height:18px;color:var(--blue)}
.customer-layout #resultPanel .customer-history-heading .recording-delete-all{padding:5px 10px;min-height:30px;font-size:12px;flex-shrink:0}
.customer-layout .customer-history-select-all{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-bottom:15px;cursor:pointer}
.customer-layout .customer-history-select-all input,.customer-layout .customer-job-identity>input{accent-color:var(--blue);width:16px;height:16px;margin:0;flex-shrink:0}
.customer-layout .customer-history-bulk{border:1px solid var(--line);background:var(--paper);padding:12px;border-radius:12px;margin:0 0 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.customer-layout .customer-history-bulk strong{font-size:13px;color:var(--blue)}
.customer-layout .customer-history-bulk>div{display:flex;gap:7px;flex-wrap:wrap}
.customer-layout .customer-history-bulk .small-button{font-size:12px;padding:6px 9px;min-height:30px}
.customer-layout #recentHistory{margin-top:0}
.customer-layout #resultPanel .customer-job-card{position:relative;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:18px;margin:0 0 15px;overflow:hidden}
.customer-layout #resultPanel .customer-job-card:last-child{margin-bottom:0}
.customer-layout .customer-job-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.customer-layout .customer-job-identity{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:1;min-width:0}
.customer-layout .customer-job-id{font-size:11px;color:var(--muted);background:var(--paper);padding:2px 6px;border-radius:6px;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-layout .customer-job-filename{display:flex;align-items:center;gap:4px;max-width:100%;min-width:0}
.customer-layout .customer-job-filename>span{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
.customer-layout .customer-job-filename button{padding:3px;border:0;background:transparent;color:var(--muted);cursor:pointer;flex-shrink:0;display:flex}
.customer-layout .customer-job-filename input{min-width:0;width:100%;max-width:220px;padding:3px 6px;font:inherit;font-size:13px;color:var(--ink);background:var(--white);border:1px solid var(--blue);border-radius:6px}
.customer-layout .customer-job-identity time{display:flex;align-items:center;gap:4px;font-size:11px;color:var(--muted);white-space:nowrap}
.customer-layout .customer-job-card svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.customer-layout .customer-job-state{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
.customer-layout .customer-job-status{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:var(--blue);line-height:1.5}
.customer-layout .customer-job-status[data-state=failed],.customer-layout .customer-job-error{color:#b33340}
.customer-layout #resultPanel .customer-job-state .recording-delete{border:0;background:transparent;font-size:0;min-height:28px;width:28px;padding:5px;display:inline-flex;align-items:center;justify-content:center;color:var(--muted);margin:0;flex-shrink:0}
.customer-layout #resultPanel .customer-job-state .recording-delete:hover{color:#b33340}
.customer-layout #resultPanel .customer-job-text{font-size:14px;line-height:1.5;margin:0 0 15px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink);overflow-wrap:anywhere}
.customer-layout .customer-job-text:empty{display:none!important}
.customer-layout .customer-job-player{display:flex;align-items:center;gap:10px;margin-top:15px;padding:10px 12px;background:var(--paper);border:1px solid var(--line);border-radius:12px;min-width:0}
.customer-layout .customer-player-play{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--blue);border:0;border-radius:8px;color:#fff;cursor:pointer;flex-shrink:0;padding:7px}
.customer-layout .customer-player-play svg{width:18px;height:18px}
.customer-layout .customer-job-player input[type=range]{min-width:20px;width:0;flex:1;accent-color:var(--blue);margin:0;cursor:pointer}
.customer-layout .customer-player-time{font:11px/1.4 monospace;color:var(--muted);min-width:75px;white-space:nowrap;text-align:right}
.customer-layout .customer-player-actions{display:flex;gap:6px;align-items:center}
.customer-layout .customer-player-actions a{display:flex;align-items:center;justify-content:center;color:var(--muted);padding:3px;min-width:22px;min-height:28px}
.customer-layout .customer-player-actions a:hover{color:var(--blue)}
.customer-layout .customer-job-footer{display:flex;align-items:center;justify-content:space-between;margin-top:15px}
.customer-layout .customer-job-footer>span{font-size:12px;font-weight:600;color:var(--muted);background:var(--paper);padding:4px 10px;border-radius:6px}
.customer-layout .customer-job-footer strong{color:var(--blue)}
.customer-layout .customer-job-detail,.customer-layout .customer-job-error{font-size:12px;line-height:1.5;margin:8px 0 0;overflow-wrap:anywhere}
.customer-layout #view-plans,.customer-layout #view-history,.customer-layout #view-settings{max-width:1400px;margin:auto}
.customer-layout #view-history .history-box{padding:24px}
@media(min-width:1700px){.customer-layout .editor-box #script{min-height:360px}}
@media(min-width:901px) and (max-width:1199px){.customer-layout .workspace-sidebar{width:240px;min-width:240px}.customer-layout .editor-grid{grid-template-columns:minmax(0,1fr) clamp(300px,30vw,360px);gap:16px}.customer-layout .settings-box{padding:14px}.customer-layout .customer-editor-footer{grid-template-columns:1fr}.customer-layout .customer-editor-generate{justify-content:space-between}.customer-layout .customer-editor-draft{flex-wrap:nowrap}.customer-layout .customer-editor-draft input{flex-basis:auto}}
@media(max-width:900px){
 .customer-layout .customer-topbar{height:56px;min-height:56px;padding:0 12px;gap:10px}
 .customer-layout .customer-menu-toggle{display:inline-flex;width:34px;padding:6px;flex-shrink:0}
 .customer-layout .studio-brand{font-size:17px;margin-right:auto}
 .customer-layout .topbar-actions{gap:6px;margin:0}
 .customer-layout .topbar-actions .small-button{padding:6px 8px}
 .customer-layout .customer-sign-out{display:inline-flex}
 .customer-layout .workspace-sidebar{position:absolute;inset:0 auto 0 0;width:280px;min-width:0;max-width:calc(100vw - 44px);padding:0;z-index:25;display:none;box-shadow:6px 0 20px #0002}
 .customer-layout.customer-nav-open .workspace-sidebar{display:flex}
 .customer-layout .customer-sidebar-user,.customer-layout .sidebar-links{display:flex}
 .customer-layout .customer-sidebar-user{flex-direction:column}
 .customer-layout .sidebar-footer{position:static;padding:13px 16px}
 .customer-layout .customer-announcements .notice{padding:7px 12px;font-size:12px}
 .customer-layout .studio-main{padding:12px;scrollbar-gutter:auto}
 .customer-layout .editor-grid{grid-template-columns:1fr;gap:16px;min-height:0}
 .customer-layout .editor-box{min-height:580px}
 .customer-layout .settings-box{position:static;width:100%;max-height:none;padding:16px}
 .customer-layout .editor-box #script{min-height:300px}
 .customer-layout .customer-text-input{min-height:340px}
 .customer-layout .selected-voice{flex-wrap:nowrap}
 .customer-layout .selected-voice>div{flex-basis:auto}
 .customer-layout .selected-voice .small-button{width:auto;margin:0}
 .customer-layout .dictionary-footer{flex-wrap:nowrap}
 .customer-layout .customer-editor-footer{padding:12px 16px}
 .customer-layout .customer-settings-tabs{margin-bottom:16px}
}
@media(max-width:560px){
 .customer-layout .studio-brand small{display:none}
 .customer-layout .customer-sign-out-label,.customer-layout #accountLabel{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .customer-layout .topbar-actions .customer-sign-out,.customer-layout .topbar-actions #accountLink{width:30px;min-width:30px;padding:5px}
 .customer-layout .studio-brand{font-size:15px;gap:6px}
 .customer-layout .studio-brand .logo{width:25px;height:25px}
 
 .customer-layout #accountLink{font-size:11px;padding:6px}
 .customer-layout .editor-box>.panel-heading{padding:10px 16px}
 .customer-layout .editor-box #script{padding:16px;font-size:16px}
 .customer-layout .effects-panel{margin:12px 12px 0;padding:10px}
 .customer-layout .cue-buttons button{font-size:11px;padding:5px 6px;white-space:normal}
 .customer-layout .customer-editor-footer{grid-template-columns:1fr}
 .customer-layout .customer-editor-toolbar{gap:8px}
 .customer-layout .customer-editor-toolbar>span{flex-basis:100%;font-size:12px}
 .customer-layout .customer-editor-draft{flex-wrap:nowrap}
 .customer-layout .customer-editor-draft input{flex-basis:auto}
 .customer-layout .customer-editor-generate{justify-content:space-between;gap:10px}
 .customer-layout .generate-button{min-width:140px;padding:10px 12px}
 .customer-layout .selected-voice{flex-wrap:wrap}
 .customer-layout .selected-voice>div{flex-basis:100%}
 .customer-layout .selected-voice .small-button{width:100%}
}

.customer-layout .customer-history-count{font-size:10px;line-height:1;padding:3px 6px;background:var(--paper);border-radius:12px;color:var(--muted)}

/* Main customer header geometry, using the reseller's existing theme. */
.customer-layout .customer-topbar{height:60px;min-height:60px;gap:16px;padding:0 16px}
.customer-layout .studio-brand{font-size:27px;font-weight:750;gap:10px;letter-spacing:-1px;white-space:nowrap}
.customer-layout .studio-brand .logo{width:34px;height:34px;border:0;border-radius:0;background:none;box-shadow:none}
.customer-layout .topbar-actions{display:flex;align-items:center;gap:24px;margin-left:auto}
.customer-layout .customer-socials{display:flex;align-items:center;gap:10px;margin-right:10px}
.customer-layout .customer-social,.customer-layout .customer-gift{width:36px;height:36px;flex:none;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;color:var(--blue);background:var(--white);text-decoration:none;padding:9px}
.customer-layout .customer-social svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-layout .customer-social[aria-disabled=true]{opacity:.5;cursor:default}
.customer-layout .customer-social-support{color:#22a05a;background:#eefbf3;border-color:#bfe9ce}
.customer-layout .customer-social-telegram{color:#229ed9;background:#effaff;border-color:#c1e7f7}
.customer-layout .customer-social-facebook{color:#1877f2;background:#f0f5ff;border-color:#cbdcff}
.customer-layout .customer-social-youtube{color:#ff0033;background:#fff1f3;border-color:#ffd0d8}
.customer-layout .customer-social[aria-disabled=true]{color:#9ca3af;background:var(--white);border-color:var(--line);opacity:1}
.customer-layout .customer-gift{width:40px;height:40px;border-color:var(--blue);background:var(--blue);color:white;cursor:pointer}
.customer-layout .topbar-actions>.small-button{min-height:40px;padding:8px 20px;border-radius:24px;gap:7px;font-size:14px;white-space:nowrap}
.customer-layout .topbar-actions>.small-button svg,.customer-gift svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.customer-layout .customer-profile-button{background:var(--paper)}
.customer-header-dialog{width:min(800px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--white);color:var(--ink);overflow:auto}
.customer-header-dialog::backdrop{background:rgba(15,23,42,.5)}
.customer-dialog-heading,.customer-team-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.customer-dialog-heading h2{font-size:20px;line-height:1.4;margin:0}
.customer-dialog-close{border:0;background:transparent;color:inherit;font-size:26px;cursor:pointer;padding:0 5px}
.customer-team-body{min-height:300px}
.customer-team-body h3{font-size:16px;margin:0 0 12px}
.customer-team-body p,.customer-referral-dialog p{font-size:14px;color:var(--muted);line-height:1.6}
.customer-invite-card{border:1px solid var(--line);border-radius:12px;background:var(--paper);padding:20px;margin:20px 0}
.customer-invite-card p:last-child{margin-bottom:0}
.customer-team-section-heading h3{margin:0}
.customer-header-dialog input{border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);padding:12px 14px;font-size:14px}
.customer-code-row{display:flex;align-items:center;gap:10px}
.customer-code-row input{flex:1;min-width:0;width:auto}
#customerInviteCode{font-family:monospace;font-size:19px;letter-spacing:2px;font-weight:700}
.customer-team-welcome{text-align:center;padding:20px 0 8px}
.customer-team-welcome>svg{width:44px;height:44px;fill:none;stroke:var(--muted);stroke-width:1.5;margin:0 auto 14px}
.customer-team-create{text-align:center;border-top:1px solid var(--line);padding:6px 0 12px;margin-top:24px}
.customer-team-table-wrap{overflow:auto}
.customer-team-table{width:100%;border-collapse:collapse;font-size:13px}
.customer-team-table th,.customer-team-table td{border-bottom:1px solid var(--line);text-align:left;padding:12px 8px;vertical-align:middle}
.customer-team-table th{color:var(--muted);font-weight:500}
.customer-team-table form{display:flex;align-items:center;gap:6px}
.customer-team-table input{width:115px;min-width:100px;padding:8px}
.customer-team-table .small-button{min-height:34px;padding:6px 10px}
.customer-team-empty{text-align:center;color:var(--muted);padding:32px 0}
.customer-team-footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.customer-team-danger{color:#c33443}
.customer-team-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}
.customer-team-stats>div{border:1px solid var(--line);border-radius:12px;padding:20px;text-align:center;display:grid;gap:8px}
.customer-team-stats strong{font-size:26px;color:var(--blue)}
.customer-team-stats span,.customer-team-stats small{color:var(--muted);font-size:13px}
.customer-team-help{text-align:center}
#customerTeamNotice{padding:10px 12px;border:1px solid var(--line);border-radius:8px;font-size:14px}
#customerTeamNotice.customer-team-error{color:#c33443}
.customer-referral-dialog{width:min(620px,calc(100vw - 32px))}
.customer-referral-dialog label{font-size:14px;display:block;margin:20px 0 8px}
@media(max-width:900px){.customer-layout .topbar-actions{gap:10px}.customer-layout .customer-socials{gap:6px;margin-right:0}.customer-layout .topbar-actions>.small-button{padding:8px 12px}.customer-layout .studio-brand{font-size:23px}}
@media(max-width:650px){.customer-layout .customer-topbar{padding:0 10px;gap:8px}.customer-layout .customer-socials{display:none}.customer-layout .studio-brand{font-size:20px;gap:5px}.customer-layout .studio-brand .logo{width:26px;height:26px}.customer-layout .topbar-actions{gap:8px}.customer-layout .topbar-actions>.small-button{width:36px;height:36px;min-height:36px;padding:8px;justify-content:center}.customer-layout .customer-team-button>span,.customer-layout .customer-profile-button>span:last-child,.customer-layout .customer-sign-out-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}.customer-layout .customer-gift{width:36px;height:36px}.customer-header-dialog{padding:20px}.customer-code-row{flex-wrap:wrap}.customer-code-row .button{padding:12px 16px}.customer-dialog-heading h2{font-size:18px}}

/* Account plan badge and fixed credit footer follow the main sidebar. */
.customer-layout .workspace-sidebar{overflow:hidden}
.customer-layout .studio-navigation{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.customer-layout .customer-plan-badge{display:inline-flex;align-items:center;max-width:100%;padding:3px 10px;border-radius:4px;background:var(--blue);color:var(--white);font-size:11px;font-weight:700;line-height:1.4;letter-spacing:0;overflow-wrap:anywhere}
.customer-layout .sidebar-footer{margin-top:auto;padding:14px 16px;background:var(--white)}
.customer-layout .customer-credit-heading{font-size:11px;font-weight:600;margin-bottom:6px}
.customer-layout .customer-credit-refresh{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:0;background:transparent;color:var(--muted);padding:3px}
.customer-layout .customer-credit-refresh svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-layout .customer-credit-refresh[aria-busy=true] svg{animation:customer-credit-spin 1s linear infinite}
.customer-layout .sidebar-footer .balance{display:block;margin:0 0 8px;font-size:18px;line-height:1.35;font-weight:700;overflow-wrap:anywhere}
.customer-layout .customer-credit-meter{width:100%;height:5px;background:var(--line);border-radius:999px;overflow:hidden;margin:0 0 8px}
.customer-layout .customer-credit-meter>span{display:block;width:0;height:100%;background:var(--blue);transition:width .3s ease;border-radius:inherit}
.customer-layout #sidebarExpiry{display:block;font-size:11px;line-height:1.5;color:var(--muted)}
.customer-layout .customer-sidebar-upgrade{display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;padding:8px 16px;margin-top:12px;border-radius:24px;font-size:12px;line-height:1.5;gap:8px}
.customer-layout .customer-sidebar-upgrade svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@keyframes customer-credit-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.customer-layout .customer-credit-refresh[aria-busy=true] svg{animation:none}.customer-layout .customer-credit-meter>span{transition:none}}

/* Text input card and toolbar copied from the main customer arrangement. */
.customer-layout .editor-box>.customer-input-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:10px 24px}
.customer-input-heading>label:first-child{display:flex;align-items:center;gap:10px;white-space:nowrap;color:var(--muted)}
.customer-input-heading svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.customer-layout .customer-numbered-split{position:relative;display:inline-flex;align-items:center;gap:8px;margin:0;padding:5px 12px;border:1px solid var(--blue);border-radius:9px;background:var(--pale);color:var(--blue);font-size:12px;line-height:1.5;cursor:pointer;white-space:nowrap}
.customer-numbered-split input{position:absolute;width:1px;height:1px;opacity:0}
.customer-switch-track{position:relative;width:40px;height:22px;border-radius:20px;background:var(--line);display:inline-block;margin-left:4px;flex:none}
.customer-switch-track:before{content:'';position:absolute;left:2px;top:2px;width:18px;height:18px;border-radius:50%;background:var(--white);transition:transform .15s ease}
.customer-numbered-split input:checked+.customer-switch-track{background:var(--blue)}
.customer-numbered-split input:checked+.customer-switch-track:before{transform:translateX(18px)}
.customer-numbered-split input:focus-visible+.customer-switch-track{outline:3px solid var(--blue);outline-offset:3px}
.customer-layout .effects-panel{margin:16px 24px 0;padding:16px;border-radius:15px}
.customer-layout .effects-panel h3{font-size:13px;font-weight:750;margin-bottom:8px}
.customer-layout .effects-panel p{font-size:13px;line-height:1.6}
.customer-layout .effects-panel .customer-cue-example{margin:10px 0 0}
.customer-layout .cue-buttons{gap:8px}
.customer-layout .cue-buttons button{min-height:36px;padding:7px 12px;font-size:12px;font-weight:600;border-radius:10px}
.customer-layout .editor-box #script{padding:24px;resize:none;font-size:18px;line-height:1.7}
.customer-layout .customer-rhythm-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 30px 30px;margin-top:auto;flex-shrink:0}
.customer-layout #ttsAutoRhythm{min-height:40px;border-radius:15px;padding:8px 14px;border-color:var(--blue);background:var(--pale);color:var(--blue);font-weight:700;font-size:12px}
#ttsRhythmStatus{color:var(--muted);font-size:12px}
#ttsRhythmStatus.is-warning{color:#b85f36}
.customer-layout .customer-editor-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;min-height:88px;padding:15px 30px;gap:12px}
.customer-layout .customer-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:20px;grid-column:auto;min-width:0}
.customer-character-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:200px;max-width:100%;font-size:12px;color:var(--muted)}
.customer-character-summary>span:first-child{display:flex;align-items:center;gap:8px}
.customer-layout #characterCount{font-size:12px;line-height:1.5;padding:2px 8px}
#ttsDurationEstimate{flex-basis:100%;font-size:11px;line-height:1.5}
#ttsAutoChunkHint{font-size:11px;color:var(--blue);background:var(--pale);padding:3px 7px;border-radius:6px}
.customer-tutorial{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}
.customer-tutorial svg{width:19px;height:19px;fill:#ef4444;stroke:#ef4444;stroke-width:1.5}
.customer-tutorial svg path:last-child{fill:white;stroke:white}
.customer-upload-control,.customer-replace-control{position:relative}
.customer-layout #ttsImportFiles{width:44px;height:44px;padding:10px;border-radius:11px;background:var(--paper)}
.customer-upload-menu{position:absolute;bottom:calc(100% + 8px);left:0;z-index:35;min-width:230px;padding:6px;background:var(--white);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 25px #0002}
.customer-upload-menu button{display:flex;align-items:center;gap:8px;width:100%;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:13px;white-space:nowrap;text-align:left;padding:10px}
.customer-upload-menu button:hover{background:var(--pale)}
.customer-layout .customer-editor-generate{grid-column:auto;flex-wrap:nowrap;gap:16px;justify-content:flex-end}
.customer-layout #clearScript{color:var(--muted);font-size:12px;white-space:nowrap}
.customer-layout #clearScript svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.customer-layout .generate-button{min-width:200px;min-height:46px;border-radius:25px;padding:10px 24px;font-size:14px;gap:8px}
.customer-input-queue{border-bottom:1px solid var(--line);background:var(--paper);padding:16px 24px;font-size:12px;flex-shrink:0}
.customer-queue-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.customer-queue-heading>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.customer-queue-heading .small-button,.customer-queue-heading .button{min-height:32px;font-size:11px;padding:6px 10px}
.customer-queue-table-wrap{overflow:auto;max-height:240px}
.customer-queue-table{width:100%;border-collapse:collapse;font-size:12px}
.customer-queue-table th,.customer-queue-table td{padding:9px 8px;text-align:left;border-bottom:1px solid var(--line)}
.customer-queue-table th{font-weight:600;color:var(--muted);font-size:11px}
.customer-queue-table td:first-child{overflow-wrap:anywhere}
.customer-queue-table td:not(:first-child){white-space:nowrap}
.customer-queue-table td:last-child{text-align:right}
.customer-queue-table td small{display:inline-block;padding:2px 6px;border-radius:5px;background:var(--pale);color:var(--blue);font-size:10px}
.customer-queue-summary{font-size:12px;color:var(--muted);margin:12px 0 0}
.customer-queue-modal{width:min(900px,calc(100vw - 32px))}
.customer-queue-modal .customer-queue-table-wrap{max-height:50dvh}
.customer-queue-modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:24px}
.customer-queue-modal-actions .customer-replace-control{margin-right:auto}
#ttsQueueNotice,#ttsQueueModalNotice{color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:1250px){.customer-layout .customer-editor-footer{padding:15px 24px}.customer-layout .customer-editor-generate{margin-left:auto}.customer-layout .generate-button{min-width:170px}}
@media(max-width:650px){.customer-layout .editor-box>.customer-input-heading{padding:12px 16px;flex-wrap:wrap}.customer-layout .customer-numbered-split{font-size:11px}.customer-layout .effects-panel{margin:12px 16px 0;padding:12px}.customer-layout .editor-box #script{padding:20px 16px}.customer-layout .customer-rhythm-toolbar{padding:0 16px 20px}.customer-layout .customer-editor-footer{padding:15px 16px}.customer-layout .customer-editor-toolbar{gap:14px}.customer-character-summary{min-width:150px}.customer-layout .customer-editor-generate{flex-wrap:wrap}.customer-input-queue{padding:16px}}
@media(prefers-reduced-motion:reduce){.customer-switch-track:before{transition:none}}

/* Audio cues remain independent of the script and its focus state. */
.customer-layout .customer-effects-section{flex-shrink:0;padding-bottom:16px;border-bottom:1px solid var(--line)}
.customer-layout .editor-box #script,.customer-layout .editor-box #script:focus,.customer-layout .editor-box #script:focus-visible{border:0;outline:none;box-shadow:none}

/* Calm the TTS controls to match the customer reference and keep the script easy to scan. */
.customer-layout .customer-numbered-split{border-color:var(--line);background:var(--white);color:var(--ink)}
.customer-layout .effects-panel{border:1px solid var(--line);background:var(--white);border-radius:12px}
.customer-layout .cue-buttons button{border:1px solid #d7dbe2;background:#f5f6f8;color:var(--ink);box-shadow:none}
.customer-layout .cue-buttons button:hover{border-color:#c4cbd6;background:#edf1f6;color:var(--ink)}
.customer-layout .cue-buttons button code{background:#e8effb;color:var(--blue)}
.customer-layout #ttsAutoRhythm{border-color:var(--line);background:var(--white);color:var(--blue)}
.customer-layout #ttsAutoRhythm:hover{border-color:#c4cbd6;background:#f5f7fa}
.customer-layout .editor-box #script{font-size:16px;line-height:1.65}

/* Match the supplied TTS toolbar reference more closely. */
.customer-layout .editor-box>.customer-input-heading{min-height:68px;padding:10px 16px;background:#f5f7f9;border-bottom:1px solid #d6dce4}
.customer-layout .customer-input-heading>label:first-child{font-size:14px;font-weight:600;color:#606b78}
.customer-layout .customer-input-heading>label:first-child svg{width:18px;height:18px}
.customer-layout .customer-numbered-split{min-height:46px;padding:8px 14px;border-color:#cfd5dd;border-radius:12px;background:#f2f4f6;color:#17202b;font-size:14px}
.customer-layout .customer-switch-track{width:54px;height:30px;background:#d2d8e0}
.customer-layout .customer-switch-track:before{left:3px;top:3px;width:24px;height:24px}
.customer-layout .customer-numbered-split input:checked+.customer-switch-track{background:var(--blue)}
.customer-layout .customer-numbered-split input:checked+.customer-switch-track:before{transform:translateX(24px)}
.customer-layout .effects-panel{margin:12px 16px 0;padding:20px 24px;border:1px solid #d6dbe2;border-radius:16px;background:var(--white)}
.customer-layout .effects-panel h3{font-size:16px;margin-bottom:8px}
.customer-layout .effects-panel p{font-size:15px;line-height:1.65}
.customer-layout .effects-panel .customer-cue-example{font-size:15px;margin-top:12px}
.customer-layout .cue-buttons{gap:10px}
.customer-layout .cue-buttons button{min-height:44px;padding:8px 14px;border:1px solid #d2d8e0;border-radius:11px;background:#f1f3f5;color:#18212b;font-size:14px;font-weight:600}
.customer-layout .cue-buttons button code{background:#e5ebf4;color:#273d5b}
.customer-layout .cue-buttons button:hover{border-color:#bbc5d1;background:#e9edf2;color:#18212b}
.customer-layout #ttsAutoRhythm{min-height:40px;border:1px solid #d2d8e0;border-radius:11px;background:#f1f3f5;color:var(--blue);font-weight:600}
.customer-layout #ttsAutoRhythm:hover{border-color:#bbc5d1;background:#e9edf2}
.customer-layout .editor-box #script{font-size:15px;line-height:1.7}
@media(max-width:650px){.customer-layout .editor-box>.customer-input-heading{min-height:60px;padding:8px 12px}.customer-layout .customer-numbered-split{min-height:40px;padding:6px 10px;font-size:12px}.customer-layout .customer-switch-track{width:46px;height:26px}.customer-layout .customer-switch-track:before{width:20px;height:20px}.customer-layout .customer-numbered-split input:checked+.customer-switch-track:before{transform:translateX(20px)}.customer-layout .effects-panel{margin:12px 12px 0;padding:16px}.customer-layout .effects-panel p,.customer-layout .effects-panel .customer-cue-example{font-size:13px}.customer-layout .cue-buttons button{min-height:38px;padding:6px 10px;font-size:12px}.customer-layout .editor-box #script{font-size:15px}}

/* Resources and Account entries match the main customer menu. */
.customer-layout .studio-navigation .customer-nav-link{display:flex;align-items:center;gap:8px;width:calc(100% - 10px);min-height:34px;margin:1px 5px;padding:7px 11px;border:0;border-radius:8px;flex-shrink:0;font-size:14px;line-height:1.25;color:var(--ink);background:transparent;text-align:left;text-decoration:none}
.customer-layout .studio-navigation .customer-nav-link:hover{background:var(--pale)}
.customer-layout .studio-navigation>button>svg,.customer-layout .studio-navigation>a>svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.customer-layout .studio-navigation .customer-upgrade-icon{color:var(--blue)}

/* Completed voiceovers scroll beneath the header, as in the main customer app. */
.customer-layout .customer-activity-ticker{width:100%;min-width:0;overflow:hidden;white-space:nowrap;background:var(--pale);padding:8px 0}
.customer-layout .customer-ticker-track{display:flex;width:max-content;animation:customer-activity-scroll 180s linear infinite}
.customer-layout .customer-ticker-group{display:flex;align-items:center;justify-content:space-around;flex-shrink:0;gap:80px;min-width:100vw;padding:0 40px}
.customer-layout .customer-ticker-item{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;font-size:13px;line-height:20px;font-weight:600;color:var(--ink)}
.customer-layout .customer-ticker-user{color:var(--blue);font-weight:700}
.customer-layout .customer-ticker-item b,.customer-layout .customer-ticker-check{color:var(--success,#22c55e)}
.customer-layout .customer-ticker-check{display:inline-flex;align-items:center;margin-right:3px}
.customer-layout .customer-ticker-check svg{width:15px;height:15px;fill:currentColor}
.customer-layout .customer-activity-ticker:hover .customer-ticker-track,.customer-layout .customer-activity-ticker:focus-within .customer-ticker-track{animation-play-state:paused}
@keyframes customer-activity-scroll{to{transform:translate3d(-50%,0,0)}}
@media(prefers-reduced-motion:reduce){.customer-layout .customer-activity-ticker{overflow-x:auto}.customer-layout .customer-ticker-track{animation:none}.customer-layout .customer-ticker-group[aria-hidden=true]{display:none}}

/* Keep the TTS canvas on the same cool-white palette as the customer reference. */
.customer-layout .editor-box,.customer-layout .customer-text-input,.customer-layout .editor-box #script,.customer-layout .customer-editor-footer{background:#fff}
.customer-layout .customer-effects-section,.customer-layout .customer-editor-footer{border-color:#d6dce4}
.customer-layout .effects-panel{background:#fff;border-color:#d2d8e0}
.customer-layout .editor-box #script{color:#202a35}

/* Use the client's requested blue on the split switch and cue labels. */
.customer-layout .customer-numbered-split input:checked+.customer-switch-track{background:#1158ca}
.customer-layout .customer-numbered-split input:focus-visible+.customer-switch-track{outline-color:#1158ca}
.customer-layout .effects-panel p code,.customer-layout .effects-panel .customer-cue-example code{color:#1158ca}

/* Client's annotated TTS palette. */
.customer-layout .customer-numbered-split{border-color:#D2D3D8}
.customer-layout .customer-numbered-split input:checked+.customer-switch-track{background:#0E5CCB}
.customer-layout .effects-panel p code,.customer-layout .effects-panel .customer-cue-example code{color:#172B50;background:#E5EBFB}
.customer-layout .selected-voice{border-color:#2D4D76}
.customer-layout .selected-voice:focus-within{outline-color:#2D4D76}

/* Match the Voice setting label to the other titled settings cards. */
.customer-layout .settings-section:has(>.selected-voice)>.customer-voice-heading{flex-shrink:0}
.customer-layout .customer-voice-heading{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:13px;line-height:1.4;white-space:nowrap}
.customer-layout .customer-voice-heading strong{font-weight:650}
.customer-layout .customer-voice-heading [data-icon] svg{width:16px;height:16px;flex-shrink:0;color:var(--muted)}


/* Align the voice dropdown chevron and emphasize its setting labels. */
.customer-layout .selected-voice::after{content:'';position:absolute;top:50%;right:13px;width:7px;height:7px;border-right:2px solid #172B50;border-bottom:2px solid #172B50;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.customer-layout .tts-advanced>label,.customer-layout .range-label>label{color:var(--ink);font-size:13px;font-weight:600}


/* Remove the divider below the final speed control. */
.customer-layout #ttsSettingsPanel>.settings-section:last-child{border-bottom:0}

/* Match the four annotated settings values to the Voice Library Category control. */
.customer-layout .selected-voice strong,
.customer-layout #ttsLanguage,
.customer-layout #ttsSubtitleLength,
.customer-layout .customer-expressive-levels button,
.customer-layout .customer-expressive-levels button[aria-pressed=true],
.customer-layout .customer-expressive-levels button:not(:disabled):hover{
  font-size:13px;
  color:#191C20;
  font-weight:400;
}
/* customer-settings-text-match */

/* Match the Voice selector hover to Voice Library filters without a focus ring. */
.customer-layout .selected-voice{border-color:var(--line)}
.customer-layout .selected-voice:hover,.customer-layout .selected-voice:focus-within{border-color:#A8C8FF;outline:none;box-shadow:none}
/* customer-voice-hover-parity */
