/* Listen button and player. Uses the same theme tokens as the rest of the book. */
.listen-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.listen-toggle[aria-expanded="true"]{background:#1b3a48}
.listen-bar{position:fixed;left:0;right:0;bottom:0;z-index:4;background:var(--bg);color:var(--text);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(0,0,0,.18);padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));font:14px/1.45 var(--ui)}
.listen-inner{max-width:760px;margin:0 auto;display:grid;gap:.6rem}
.listen-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem}
.listen-status{margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.listen-controls{display:flex;gap:.4rem;align-items:center;justify-content:center}
.lbtn{min-width:44px;min-height:44px;padding:0 .6rem;border:1px solid var(--line);background:transparent;color:var(--text);font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.lbtn:hover{background:var(--surface)}
.lbtn.primary{background:var(--text);color:var(--bg);border-color:var(--text);min-width:60px}
.lbtn.primary:hover{background:var(--teal);border-color:var(--teal)}
.lbtn svg{width:20px;height:20px;fill:currentColor;pointer-events:none}
.listen-close{font-size:13px;text-decoration:underline;text-underline-offset:.2em;border:0;min-width:44px}
.listen-opts{display:flex;flex-wrap:wrap;gap:.5rem 1rem;align-items:center;justify-content:space-between}
.listen-opts label{display:flex;align-items:center;gap:.4rem}
.listen-opts select{font:inherit;font-size:16px;color:var(--text);background:var(--bg);border:1px solid var(--line);min-height:44px;padding:0 .5rem;max-width:100%}
.listen-opts select#listen-voice{flex:1 1 12rem;min-width:0}
.listen-opts input[type="checkbox"]{width:22px;height:22px;accent-color:var(--teal)}
.listen-help{font-size:12px;color:var(--muted)}
.listen-help summary{display:inline-flex;min-height:44px;align-items:center;cursor:pointer;font-weight:400;color:var(--teal);text-decoration:underline;text-underline-offset:.2em}
.listen-help p{margin:0 0 .5rem}
.listen-bar :focus-visible{outline-color:var(--teal);outline-offset:2px}
.is-listening{background:var(--surface-active);box-shadow:-.6rem 0 0 var(--surface-active),.6rem 0 0 var(--surface-active)}
body.has-listen-bar{padding-bottom:13rem}
@media(max-width:760px){.listen-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.listen-toggle{padding:0}}
@media print{.listen-bar,.listen-toggle{display:none!important}.is-listening{background:none;box-shadow:none}body.has-listen-bar{padding-bottom:0}}
