/* R4 fixed header with explicit user scrolling preference. */
html[data-header-mode="fixed"] .topbar{position:fixed!important;top:0;inset-inline:0;width:100%;z-index:70;box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);}
html[data-header-mode="fixed"] .app{padding-top:var(--ttb-header-height,72px);}
html[data-header-mode="scroll"] .topbar{position:relative!important;top:auto!important;inset-inline:auto!important;}
html[data-header-mode="scroll"] .app{padding-top:0;}
html{scroll-padding-top:calc(var(--ttb-header-height,72px) + 12px);}
.ttb-voice-shortcut{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.tts-player-top{flex-wrap:wrap;gap:8px;}
.ttb-voice-box{width:min(94vw,640px);max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box;}
.ttb-voice-box select{width:100%;min-height:48px;white-space:normal;}
.ttb-voice-box .toolbar{display:flex;flex-wrap:wrap;gap:8px;}
.ttb-premium-notice{padding:14px;margin:14px 0;border:1px solid var(--gold,#d9a333);border-radius:16px;}
.ttb-voice-box .section-title{display:flex;gap:12px;align-items:center;justify-content:space-between;}
.ttb-voice-box h2{overflow-wrap:anywhere;}
@media(max-width:420px){.topbar{gap:6px!important;}.topbar button,.topbar select{max-width:100%;}.ttb-voice-box .toolbar button{flex:1 1 40%;}}
