/* following along: the sentence being read is tinted, the word marked (deck/player.ts) */
::highlight(dk-sent) { background-color: rgb(154 100 0 / .16); }
::highlight(dk-word) { background-color: rgb(138 44 18 / .38); color: inherit; }
/* the deck's player (deck/player.ts): four icon buttons in a small pill at the foot, left of reveal's own arrows */
.dkp-host { position: fixed; left: 12px; bottom: 12px; z-index: 30; }
.dkp { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(251 248 242 / .9); border: 1px solid #e4dccf;
  box-shadow: 0 3px 12px rgb(0 0 0 / .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: .55; transition: opacity .2s; }
.dkp:hover, .dkp:focus-within { opacity: 1; }
.dkp-b { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #4a4036; font: 700 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.dkp-b:hover { background: rgb(138 44 18 / .08); color: #1f1b16; }
.dkp-b:focus-visible { outline: 2px solid #8a2c12; outline-offset: 1px; }
.dkp-b[aria-pressed="true"] { color: #8a2c12; }
.dkp-b[data-disabled] { opacity: .4; cursor: default; }
.dkp-b.dkp-play { background: #1f1b16; color: #fbf8f2; }
.dkp-b.dkp-play:hover { background: #3a332b; color: #fff; }
.dkp-b svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dkp-b.dkp-play svg { fill: currentColor; stroke-width: 1.5; }
.dkp-rate { width: auto; min-width: 30px; padding: 0 6px; border-radius: 999px; letter-spacing: -.02em; }
@media (max-width: 600px) { .dkp-host { left: 8px; bottom: 8px; } .dkp { opacity: .8; } }
@media print { .dkp-host { display: none; } }
/* the voice picker: a pill naming the model and voice; above it, a list of voices with their read-along badge (Words · Sentences · ?) */
.dkp-wrap { display: flex; align-items: center; gap: 6px; }
.dkv { position: relative; display: inline-flex; }
.dkv-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px;
  background: rgb(251 248 242 / .92); border: 1px solid #e4dccf; box-shadow: 0 3px 12px rgb(0 0 0 / .08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 600 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f1b16; opacity: .6; transition: opacity .2s; }
.dkp-wrap:hover .dkv-btn, .dkv-btn:focus-visible, .dkv-btn.open { opacity: 1; }
.dkv-btn:focus-visible { outline: 2px solid #8a2c12; outline-offset: 2px; }
.dkv-l { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dkv-chev { width: 12px; height: 12px; fill: none; stroke: #776c5f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.dkv-btn.open .dkv-chev { transform: rotate(180deg); }
.dkv-pct { font: 700 10px/1 system-ui, sans-serif; color: #8a2c12; }
.dkv-b { display: inline-block; padding: 3px 6px; border-radius: 999px; font: 700 9.5px/1 system-ui, sans-serif; letter-spacing: .02em; white-space: nowrap; }
.dkv-b-words { background: #e3efe6; color: #24613a; }
.dkv-b-sentences { background: #f1ead9; color: #7a5a14; }
.dkv-b-unknown { background: #efebe4; color: #776c5f; }
.dkv-scrim { all: unset; position: fixed; inset: 0; z-index: 0; cursor: default; }
.dkv-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 1; width: min(19rem, calc(100vw - 24px)); max-height: min(26rem, 70vh); overflow-y: auto;
  padding: 6px; border-radius: 14px; background: #fffdf9; border: 1px solid #e4dccf; box-shadow: 0 12px 36px rgb(31 27 22 / .18); animation: dkv-up .14s ease-out; }
@keyframes dkv-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dkv-menu { animation: none; } }
.dkv-h { margin: 8px 8px 4px; font: 700 9.5px/1.2 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9a6400; }
.dkv-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px; }
.dkv-row:hover, .dkv-row:focus-visible { background: rgb(138 44 18 / .06); }
.dkv-row:focus-visible { outline: 2px solid #8a2c12; outline-offset: -2px; }
.dkv-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #cfc4b2; box-sizing: border-box; }
.dkv-row.on .dkv-dot { border: 4px solid #8a2c12; }
.dkv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dkv-n { font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1f1b16; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dkv-s { font: 11px/1.2 system-ui, sans-serif; color: #776c5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dkv-prog { height: 4px; margin: 4px 8px 8px; border-radius: 2px; background: #efebe4; overflow: hidden; }
.dkv-prog span { display: block; height: 100%; background: #8a2c12; transition: width .2s; }
.dkv-err, .dkv-none { margin: 4px 8px 8px; font: 11.5px/1.35 system-ui, sans-serif; color: #776c5f; }
.dkv-err { color: #b42318; }
@media (max-width: 600px) { .dkv-l { max-width: 7.5rem; } .dkv-btn { opacity: .85; } }
@media (max-width: 600px) { .dkv-menu { position: fixed; left: 8px; right: 8px; bottom: 52px; width: auto; max-height: 62vh; } }
