/* Sổ Lưu Trú — Nghe đọc (slt-doc.js). Tiền tố .sd- ; dùng chung app và theme. */
.sd-btn{display:inline-flex;align-items:center;gap:6px;margin:0 0 14px;padding:7px 14px 7px 11px;border:1px solid #C7D7F2;border-radius:999px;background:#EEF4FF;color:#003580;font:600 14px/1.2 inherit;font-family:inherit;cursor:pointer;transition:background .15s,border-color .15s}
.sd-btn:hover{background:#DCE8FD;border-color:#006CE4}
.sd-btn:focus-visible,.sd-bar button:focus-visible,.sd-bar select:focus-visible{outline:2px solid #006CE4;outline-offset:2px}
.sd-btn svg{width:18px;height:18px}
.sd-on{background:#FFF6D6!important;box-shadow:0 0 0 4px #FFF6D6;border-radius:4px;transition:background .2s}
.sd-bar{position:fixed;z-index:9990;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom,0px));width:min(560px,calc(100% - 32px));background:#003580;color:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,30,80,.35);font-family:inherit;overflow:hidden;animation:sdUp .2s ease-out}
@keyframes sdUp{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
.sd-prog{height:3px;background:rgba(255,255,255,.18)}
.sd-fill{display:block;height:100%;width:0;background:#7FB6FF;transition:width .3s}
.sd-row{display:flex;align-items:center;gap:2px;padding:6px 8px}
.sd-bar button{border:0;background:transparent;color:#fff;cursor:pointer;font-family:inherit}
.sd-i{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;flex:none}
.sd-i:hover,.sd-rate:hover{background:rgba(255,255,255,.14)}
.sd-i svg{width:20px;height:20px}
.sd-pp{width:44px;height:44px;border-radius:50%;background:#006CE4!important;margin:0 2px}
.sd-pp:hover{background:#1A7FF0!important}
.sd-pp svg{width:22px;height:22px}
.sd-mid{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:0 6px}
.sd-pg{font-size:12px;opacity:.85;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.sd-voice{max-width:100%;background:transparent;color:#fff;border:0;font:600 13px/1.3 inherit;font-family:inherit;padding:0;cursor:pointer;text-overflow:ellipsis}
.sd-voice:disabled{cursor:default;opacity:1;appearance:none;-webkit-appearance:none}
.sd-voice option{color:#111}
.sd-rate{min-width:46px;height:32px;padding:0 8px;border-radius:8px;border:1px solid rgba(255,255,255,.35)!important;font:700 13px/1 inherit;flex:none}
.sd-x{width:34px;opacity:.85}
.sd-note{padding:0 14px 8px;font-size:12px;color:#FFE08A}
@media (max-width:600px){
	.sd-bar{left:12px;right:84px;width:auto;transform:none;bottom:calc(10px + env(safe-area-inset-bottom,0px))}
	@keyframes sdUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
	.sd-row{padding:5px 4px;gap:0}
	.sd-i{width:32px;height:36px}
	.sd-pp{width:40px;height:40px}
	.sd-mid{padding:0 3px;overflow:hidden}
	.sd-pg{font-size:11px}
	.sd-voice{display:none}
	.sd-rate{min-width:40px;padding:0 4px}
	.sd-x{width:28px}
}
@media (max-width:360px){.sd-i[data-a="again"]{display:none}}
body:has(.ac-bottombar) .sd-bar{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
@media print{.sd-btn,.sd-bar{display:none!important}}
