.teleprompter-toolbar{flex:none;background:#f5edde;border:1px solid #a98b65;border-radius:8px;padding:10px 12px;margin-bottom:10px;color:#332b29;font:14px/1.4 system-ui,sans-serif}
.teleprompter-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 14px;margin-bottom:8px}
#teleprompterStatus{font-size:12px;color:#654d39;font-variant-numeric:tabular-nums}
.teleprompter-buttons{display:flex;flex-wrap:wrap;gap:8px}
.teleprompter-toolbar button{min-height:44px;border:2px solid #987657;font:600 13px/1.3 system-ui,sans-serif;padding:9px 12px}
.teleprompter-toolbar button.primary{border-color:var(--wine)}
.teleprompter-toolbar button:disabled{cursor:default}
.teleprompter-options{display:grid;grid-template-columns:minmax(150px,1fr) auto;align-items:center;gap:4px 24px;border-top:1px solid #bba487;margin-top:10px;padding-top:8px;max-height:30dvh;overflow:auto}
.teleprompter-options[hidden]{display:none}
.teleprompter-options label{display:flex;flex-wrap:wrap;justify-content:space-between;margin:0;font-weight:600}
.teleprompter-options input[type=range]{flex:1 1 100%;width:100%;height:36px;padding:0;accent-color:var(--wine)}
.teleprompter-options .hint{grid-column:1/-1;margin:6px 0 0;font-size:12px}
.teleprompter-font{display:flex;align-items:center;gap:8px}
.teleprompter-font>span{font-size:12px}
.teleprompter-font button{min-width:44px;font-size:18px;padding:5px}
.teleprompter-font output{min-width:24px;text-align:center;font-variant-numeric:tabular-nums}
#rehearsalDialog .rehearsal-text{padding-bottom:40vh}
#rehearsalDialog .rehearsal-content{scroll-behavior:auto;overflow-anchor:none}
#rehearsalDialog.teleprompter-focus{padding:0;background:var(--paper);align-items:stretch}
#rehearsalDialog.teleprompter-focus>.panel{width:100%;max-width:none;height:100vh;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:max(8px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left))}
#rehearsalDialog.teleprompter-focus>.panel>.actions h2{font-size:1rem}
#rehearsalDialog.teleprompter-focus>.panel>.actions{margin-bottom:6px}
#rehearsalDialog.teleprompter-focus .rehearsal-content>:not(.rehearsal-text){display:none}
#rehearsalDialog.teleprompter-focus .rehearsal-text{border:0;max-width:1000px;margin:0 auto;line-height:1.8;padding-top:12px}
#rehearsalDialog.teleprompter-focus:not([data-recording-active=true]) .recording-transport{display:none}
#rehearsalDialog.teleprompter-focus .rehearsal-content{padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:600px){
 .teleprompter-toolbar{padding:8px;margin-bottom:6px}
 .teleprompter-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}
 .teleprompter-toolbar button{font-size:12px;padding:7px 8px}
 .teleprompter-options{grid-template-columns:1fr;gap:8px}
 .teleprompter-font{justify-content:center}
 .teleprompter-font button{font-size:18px}
 #rehearsalDialog.teleprompter-focus>.panel{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
}
@media(max-height:500px) and (orientation:landscape){
 #rehearsalDialog>.panel>.actions h2{font-size:1rem}
 .teleprompter-heading{display:none}
 .teleprompter-toolbar{padding:6px;margin-bottom:4px}
 .teleprompter-buttons{display:flex}
 #rehearsalDialog>.panel>.actions{margin-bottom:2px}
 .recording-transport{padding:4px 0}
 .recording-transport-summary{margin-bottom:2px}
}
