/* A visual focus aid: highlighting never marks a line or Ang as read. */
.smart-reader-controls{margin:16px 0 22px;padding:14px 16px;border:1px solid rgba(231,198,137,.36);border-radius:14px;background:#183747;color:#f5ead6}
.smart-reader-head{display:flex;align-items:baseline;flex-wrap:wrap;justify-content:space-between;gap:12px;margin:0 0 8px}
.smart-reader-head strong{font-size:1.1rem;color:#efd19e}.smart-reader-head .sr-status{font-size:.85rem;color:#d7e2e1}
.smart-reader-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}
.smart-reader-actions button{background:#e4cb93!important;color:#182d39!important;border:0!important;border-radius:9px!important;cursor:pointer!important;padding:9px 14px!important;margin:0!important;font-weight:700!important}
.smart-reader-actions button:disabled{opacity:.46;cursor:not-allowed!important}
.smart-reader-actions label{display:flex;align-items:center;gap:8px;margin:0;color:#e7d9be}
.smart-reader-actions input[type=range]{accent-color:#e8c981;width:125px;cursor:pointer}
.smart-reader-actions output{min-width:88px;font-size:.82rem}
.smart-reader-langs{display:flex;gap:10px 16px;flex-wrap:wrap;font-size:.88rem;padding-top:10px;border-top:1px solid rgba(255,255,255,.13)}
.smart-reader-langs label{display:flex;gap:6px;align-items:center;cursor:pointer;margin:0}.smart-reader-langs input{accent-color:#e2c780;width:17px;height:17px}
.smart-reader-note{font-size:.78rem;line-height:1.5;margin:10px 0 0;color:#cbd9d7}
.verse-block.smart-current{background:rgba(229,190,107,.10);border-left:3px solid rgba(234,200,119,.9);border-radius:0 9px 9px 0;padding:10px 12px;margin-left:-12px;scroll-margin-top:90px}
.verse-block.smart-current>.gurbani-line{background:rgba(230,192,109,.21);border-radius:5px;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:0 .15em;color:#ffe7ab}
.verse-block.smart-current>.roman-line,.verse-block.smart-current>.english-line,.verse-block.smart-current>.punjabi-line{background:rgba(203,234,218,.055);border-radius:4px}
.smart-hide-roman .verse-block>.roman-line,.smart-hide-english .verse-block>.english-line,.smart-hide-punjabi .verse-block>.punjabi-line{display:none!important}
@media(max-width:550px){.smart-reader-controls{padding:11px}.smart-reader-actions button{padding:8px 9px!important;font-size:.88rem}.smart-reader-actions input[type=range]{width:100px}.smart-reader-head{gap:5px}}
@media(prefers-reduced-motion:reduce){.verse-block.smart-current{scroll-behavior:auto}}
/* Gurmukhi word pointer: preserve the pankti's existing source text and whole-line context. */
.gurbani-line .smart-gurmukhi-word{border-radius:.16em;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.verse-block.smart-current .gurbani-line .smart-gurmukhi-word.smart-word-current{
  background:#eac87e;color:#172b38;padding:.06em .10em;box-shadow:0 0 0 1px rgba(70,48,16,.15);font-weight:inherit;
}
.smart-reader-actions output{min-width:155px}

/* Compact bottom controls when the main toolbar is above the viewport. */
.smart-reader-dock{position:fixed;z-index:2000;left:50%;transform:translateX(-50%);
 bottom:calc(10px + env(safe-area-inset-bottom, 0px));display:flex;align-items:center;justify-content:center;
 gap:8px;max-width:calc(100vw - 20px);padding:8px 12px;border-radius:40px;
 border:1px solid rgba(232,205,151,.6);background:rgba(15,41,55,.96);color:#f3dec0;
 box-shadow:0 8px 26px rgba(0,0,0,.3);backdrop-filter:blur(8px)}
.smart-reader-dock[hidden]{display:none!important}
.smart-reader-dock button{font:inherit!important;font-weight:700!important;border:1px solid rgba(250,225,170,.4)!important;
 border-radius:23px!important;min-width:40px;min-height:40px;padding:7px 12px!important;
 background:#e5c88e!important;color:#152d3c!important;cursor:pointer!important;margin:0!important}
.smart-reader-dock .smart-reader-dock-main{min-width:112px}
.smart-reader-dock-speed{font:inherit;font-size:.78rem;white-space:nowrap;font-weight:700;color:#efddb7;background:#183747;border:1px solid rgba(232,205,151,.45);border-radius:14px;padding:6px 3px;min-height:40px;max-width:96px}
.smart-reader-dock select:focus-visible{outline:3px solid #fff;outline-offset:2px}
.smart-reader-dock button:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:440px){.smart-reader-dock{gap:5px;padding:6px 8px}.smart-reader-dock button{min-width:36px;padding:5px 8px!important}.smart-reader-dock .smart-reader-dock-main{min-width:100px}.smart-reader-dock-speed{font-size:.7rem;max-width:82px}}

/* Keep the last verse and its language aids scrollable ABOVE the fixed dock. */
body:has(>.smart-reader-dock:not([hidden])){
 padding-bottom:calc(95px + env(safe-area-inset-bottom, 0px));
}
@media(max-height:500px){
 .smart-reader-dock{bottom:calc(4px + env(safe-area-inset-bottom, 0px))}
}
