/* Reading Nook "Listen" player.
   A compact transport bar that reads the open document aloud. It is hidden by
   default (display:none) and only revealed once the user invokes the Listen
   action from a file's action sheet -- so nothing shows unless the feature is
   in use, and it never starts speaking on its own. */

#nook-reader-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:1000;
  display:none;                 /* invisible until the Listen feature is used */
  flex-direction:column; gap:8px;
  background:#1f2430; color:#fff;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow:0 -6px 20px rgba(0,0,0,.28);
  font:14px/1.4 -apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
#nook-reader-bar.open{ display:flex; }
/* The open bar has its own room: the page ends where the bar begins (2026-10-29). A page that is a
   fixed-height shell (Health Records II) shrinks by the bar's height instead. */
html.nr-bar-open body{ padding-bottom:var(--nr-bar-h, 0px); }
html.nr-bar-open .hii-shell, html.nr-bar-open .page-shell{ height:calc(100dvh - var(--nr-bar-h, 0px)); }

#nook-reader-bar .nr-row{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
#nook-reader-bar .nr-title{ flex:1 1 140px; min-width:0; overflow:hidden;
  text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
#nook-reader-bar .nr-now{ flex:1 1 100%; font-size:12.5px; opacity:.85; }
#nook-reader-bar .nr-now b{ font-weight:700; }

#nook-reader-bar button{
  background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.34);
  border-radius:999px; padding:8px 16px; font-size:14px; font-weight:600;
  cursor:pointer; line-height:1;
}
#nook-reader-bar button:hover{ background:rgba(255,255,255,.26); }
#nook-reader-bar button.nr-primary{ background:#fff; color:#1f2430; border-color:#fff; }
#nook-reader-bar button.nr-close{ margin-left:auto; }

#nook-reader-bar .nr-speed{ display:flex; align-items:center; gap:8px; flex:1 1 150px; font-size:12.5px; }
#nook-reader-bar .nr-speed input{ flex:1 1 auto; }

/* the position / seek bar -- the "spot" */
#nook-reader-bar .nr-seek{ width:100%; margin:0; height:22px; }
