.btc-narrator-shell{position:relative;font-size:11px;color:#e9c77c}.btc-narrator-shell>summary{border:1px solid #52736e;border-radius:5px;padding:5px 9px;background:#13272b;list-style:none}.btc-narrator-shell>summary b{font:10px Consolas,monospace}.btc-narrator-settings{position:absolute;inset-inline-end:0;top:calc(100% + 6px);width:min(380px,80vw);max-height:65vh;overflow:auto;z-index:85;background:#0b1b25;border:1px solid #52736e;border-radius:8px;box-shadow:0 8px 40px #000b;padding:14px;color:#d1e1e8;font-size:11px}.btc-narrator-settings>label{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:11px}.btc-narrator-settings select{font-size:11px;min-width:0;max-width:100%;padding:5px}.btc-narrator-settings>label select{width:100%;margin-top:4px}.btc-narrator-settings input[type=range]{width:100%;margin-top:5px}.btc-narrator-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.btc-narrator-fields label{display:grid;gap:5px}.btc-narrator-settings .buttons button{font-size:10px;padding:5px 8px}.btc-narrator-settings p{font-size:10px;line-height:1.8;color:#a9c0ce}.btc-narrator-settings #btc-narrator-status{color:#e9c77c}.btc-narrator-fine{border-top:1px solid #34515f;padding-top:8px}.btc-narrator-toast{position:absolute;z-index:14;right:87px;bottom:35px;width:min(390px,calc(100% - 105px));max-height:38%;overflow:auto;background:#102731f5;border:1px solid #618d84;border-inline-start:3px solid #46d9a6;border-radius:7px;box-shadow:0 5px 25px #0008;padding:10px 12px;font:12px/1.8 system-ui,sans-serif}.btc-narrator-toast>div{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#a8e5d8}.btc-narrator-toast small{font:9px Consolas,monospace;color:#a6c0cc}.btc-narrator-toast p{margin:5px 0}.btc-narrator-toast button{font-size:10px;padding:3px 8px}.btc-narrator-toast[data-kind=break]{border-inline-start-color:#f77487}.btc-narrator-toast[data-kind=reaction]{border-inline-start-color:#e9c77c}.btc-narrator-toast[hidden],.btc-narrator-log[hidden]{display:none}.btc-narrator-log{position:absolute;z-index:25;inset:28px 87px 34px 10px;background:#0b1924fa;border:1px solid #5a797e;border-radius:8px;padding:12px;display:flex;flex-direction:column;box-shadow:0 6px 40px #0009;font-size:12px}.btc-narrator-log-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#a8e5d8}.btc-narrator-log-head button{font-size:10px;padding:4px 7px}.btc-narrator-log>p{font-size:10px;color:#9db5c5}.btc-narrator-log-rows{overflow:auto;min-height:0;flex:1;scrollbar-width:thin}.btc-narrator-log article{border:1px solid #2e4b59;border-inline-start:3px solid #46d9a6;background:#11232c;border-radius:6px;padding:10px;margin:8px 0}.btc-narrator-log article[data-kind=break]{border-inline-start-color:#f77487}.btc-narrator-log article[data-kind=reaction]{border-inline-start-color:#e9c77c}.btc-narrator-log article small{font-size:10px;color:#a8bdc9}.btc-narrator-log h4{font-size:12px;color:#e9c77c;margin:4px 0}.btc-narrator-log p{font-size:11px;line-height:1.9}.btc-narrator-log details{font-size:10px}.btc-narrator-log dl{display:grid;gap:5px}.btc-narrator-log dl>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #28424f;padding:4px}.btc-narrator-log dd{margin:0;overflow-wrap:anywhere;font-family:Consolas,monospace}.btc-narrator-log dt{color:#92b1c1}html[dir=rtl] .btc-narrator-settings,html[dir=rtl] .btc-narrator-toast,html[dir=rtl] .btc-narrator-log{direction:rtl}@media(max-width:650px){.btc-narrator-settings{position:fixed;top:15vh;inset-inline:5vw;width:90vw;max-height:70vh}.btc-narrator-toast{right:80px;width:calc(100% - 90px);font-size:11px}.btc-narrator-log{inset:28px 78px 32px 5px;padding:8px}}

/* Settings live in the browser top layer, never inside chart clipping. */
.btc-narrator-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #618d84;border-radius:10px;background:#0b1b25;color:#d1e1e8;box-shadow:0 18px 80px #000b;overflow:auto;z-index:1000;font:12px/1.7 system-ui,sans-serif;color-scheme:dark}
.btc-narrator-dialog::backdrop{background:#020a11a8}
.btc-narrator-dialog-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:#102731;border-bottom:1px solid #34515f;color:#e9c77c}
.btc-narrator-dialog-head button{min-width:36px;min-height:36px;border:1px solid #52736e;border-radius:5px;background:#162e39;color:#e1eff4;font-size:22px;cursor:pointer}
.btc-narrator-dialog .btc-narrator-settings{box-sizing:border-box;position:static;inset:auto;width:100%;max-width:100%;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none;padding:16px;font-size:12px}
.btc-narrator-dialog .btc-narrator-settings .buttons{display:flex;flex-wrap:wrap;gap:7px}
.btc-narrator-dialog .btc-narrator-settings input[type=range]{accent-color:#e9c77c}
.btc-narrator-dialog :focus-visible{outline:2px solid #e9c77c;outline-offset:3px}
html[dir=rtl] .btc-narrator-dialog{direction:rtl}
@media(max-width:420px){.btc-narrator-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.btc-narrator-dialog .btc-narrator-fields{grid-template-columns:1fr}}

/* Physical left, also in RTL; three independently timed cards. */
#btc-narrator-toast{left:12px;right:auto;top:35px;bottom:auto;width:min(390px,calc(100% - 105px));max-height:calc(100% - 75px);padding:0;background:transparent;border:0;box-shadow:none;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}
#btc-narrator-toast[hidden]{display:none}
#btc-narrator-toast article{flex:none;background:#102731f5;border:1px solid #618d84;border-inline-start:3px solid #46d9a6;border-radius:7px;padding:10px 12px;box-shadow:0 4px 16px #0008}
#btc-narrator-toast article[data-kind=break]{border-inline-start-color:#f77487}
#btc-narrator-toast article[data-kind=reaction]{border-inline-start-color:#e9c77c}
#btc-narrator-toast article>div{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#a8e5d8}
#btc-narrator-toast article small{display:block;line-height:1.6}
#btc-narrator-toast .btc-toast-age{color:#e9c77c;margin-top:3px}
#btc-narrator-toast [data-toast-close]{min-width:28px;min-height:28px;cursor:pointer}
@media(max-width:650px){#btc-narrator-toast{left:6px;right:auto;width:calc(100% - 88px);max-height:calc(100% - 70px)}}
