/* v1.12.17 Article narration — isolated from theme article/comment scripts */
.tip-narration-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;position:relative;z-index:9;margin-bottom:7px}
.tip-narration-topline .tip-kicker{margin:0;min-width:0}
.tip-voice-shell{position:relative;flex:none;max-width:100%;color:var(--tip-text,#172033)}
.tip-voice-trigger{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 13px;background:var(--tip-bg,#fff);border:1px solid var(--tip-border,#d9e0ea);border-radius:100px;color:var(--tip-text,#172033);font-family:inherit;font-weight:700;font-size:12px;line-height:1.3;cursor:pointer;box-shadow:0 2px 7px rgba(17,31,53,.05)}
.tip-voice-trigger:hover,.tip-voice-trigger:focus-visible{border-color:#c91d32;color:#c91d32}
.tip-voice-trigger[aria-expanded="true"]{border-color:#c91d32}
.tip-voice-chevron{font-size:18px;font-weight:400}
.tip-voice-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:1000;width:min(370px,calc(100vw - 28px));background:var(--tip-bg,#fff);border:1px solid var(--tip-border,#d9e0ea);color:var(--tip-text,#172033);box-shadow:0 12px 40px rgba(13,26,45,.23);border-radius:14px;padding:17px;text-align:left;line-height:1.4}
.tip-voice-panel[hidden]{display:none!important}
.tip-voice-panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tip-voice-panel-title strong{font-size:15px;line-height:1.35}
.tip-voice-panel-title button{font-size:22px;width:30px;height:30px;display:grid;place-items:center;border:0;background:transparent;color:inherit;cursor:pointer}
.tip-voice-lang{display:flex;background:var(--tip-surface,#f2f5fa);border-radius:9px;padding:4px;gap:4px;margin:14px 0}
.tip-voice-lang button{flex:1;min-width:0;background:transparent;color:inherit;border:0;border-radius:7px;min-height:35px;font-family:inherit;font-weight:700;font-size:13px;line-height:1.2;cursor:pointer}
.tip-voice-lang button[aria-pressed="true"]{background:#d92332;color:white;box-shadow:0 1px 4px rgba(14,20,38,.1)}
.tip-voice-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tip-voice-controls>button{background:var(--tip-surface,#f2f5fa);border:1px solid var(--tip-border,#d9e0ea);border-radius:8px;color:inherit;cursor:pointer;padding:8px 11px;font-size:12px;font-weight:700;min-height:36px;white-space:nowrap}
.tip-voice-controls>button:first-child{background:#d92332;color:white;border-color:#d92332}
.tip-voice-controls>button:disabled{opacity:.45;cursor:not-allowed}
.tip-voice-rate{margin-left:auto;display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:650}
.tip-voice-rate select{font:inherit;padding:5px 4px;border:1px solid var(--tip-border,#d9e0ea);color:inherit;background:var(--tip-bg,#fff);border-radius:7px;max-width:68px}
.tip-voice-progress{height:5px;background:var(--tip-border,#d9e0ea);border-radius:99px;margin:15px 0 11px;overflow:hidden}
.tip-voice-progress span{display:block;width:0%;height:100%;background:#d92332;transition:width .15s linear}
.tip-voice-status{font-size:12px;color:inherit;margin:0 0 6px}
.tip-voice-note{font-size:11px;line-height:1.5;color:var(--tip-muted,#63718a);margin:8px 0 0}
body[data-tip-theme="dark"] .tip-voice-trigger,body[data-tip-theme="dark"] .tip-voice-panel{background:#1b2c43;color:#eaf0fa;border-color:#45556d}
body[data-tip-theme="dark"] .tip-voice-lang,body[data-tip-theme="dark"] .tip-voice-controls>button:not(:first-child){background:#293c54;color:#e8f0fa;border-color:#42556e}
body[data-tip-theme="dark"] .tip-voice-lang button[aria-pressed="true"]{background:#d92332;color:white}
body[data-tip-theme="dark"] .tip-voice-rate select{background:#24364d;color:white;border-color:#46566d}
body[data-tip-theme="dark"] .tip-voice-note{color:#aebdd0}
@media(max-width:600px){.tip-narration-topline{align-items:center;gap:8px}.tip-voice-trigger{font-size:11px;padding:6px 10px;min-height:33px}.tip-voice-panel{right:-2px;max-width:calc(100vw - 24px);padding:14px}.tip-voice-controls>button{padding:8px}}
@media print{.tip-voice-shell{display:none!important}}

/* v1.12.18 text-position seeking: modern compact slider */
.tip-voice-seek-control{margin:15px 0 11px}
.tip-voice-seek-control label{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;color:var(--tip-muted,#63718a);margin-bottom:8px}
.tip-voice-seek-control input[type="range"]{appearance:auto;-webkit-appearance:auto;display:block;width:100%;accent-color:#d92332;min-height:22px;cursor:pointer;margin:0;background:transparent}
.tip-voice-seek-control input[type="range"]:disabled{cursor:not-allowed;opacity:.5}
.tip-voice-seek-control output{font-weight:800;font-variant-numeric:tabular-nums}
body[data-tip-theme="dark"] .tip-voice-seek-control label{color:#b9c8da}

/* v1.12.20: visible branded red Listen trigger in both themes. */
.tip-voice-trigger,body[data-tip-theme="dark"] .tip-voice-trigger{
  background:#d92332;color:#fff;border:1px solid #d92332;box-shadow:0 3px 10px rgba(217,35,50,.18);
}
.tip-voice-trigger:hover,.tip-voice-trigger:focus-visible,
body[data-tip-theme="dark"] .tip-voice-trigger:hover,body[data-tip-theme="dark"] .tip-voice-trigger:focus-visible{
  background:#b91d2a;border-color:#b91d2a;color:#fff;
}
.tip-voice-trigger:focus-visible{outline:3px solid #ffd3d8;outline-offset:2px;}
.tip-voice-trigger[aria-expanded="true"],body[data-tip-theme="dark"] .tip-voice-trigger[aria-expanded="true"]{
  background:#c51e2d;border-color:#c51e2d;color:#fff;
}
