.nbk-focus-mode { position:fixed; inset:0; margin:0; width:100%; max-width:none; height:100%; height:100dvh; max-height:none; padding:0; border:0; background:#080a09; color:#fff; font-family:'Poppins',sans-serif; z-index:2147483646; }
.nbk-focus-mode:not([open]) { display:none; }
.nbk-focus-mode,.nbk-focus-mode * { box-sizing:border-box; }
.nbk-focus-mode::backdrop { background:#080a09; }
.nbk-mode-shell { display:flex; flex-direction:column; min-height:100%; padding:max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
.nbk-mode-top { display:flex; justify-content:space-between; align-items:center; gap:16px; flex:none; }
.nbk-mode-top > span { color:#c8c9c4; font-size:.7rem; letter-spacing:.13em; }
.nbk-mode-top button { min-height:44px; padding:10px 14px; border:1px solid #4a4c46; border-radius:10px; background:#171b17; color:#fff; font:500 .8rem 'Poppins',sans-serif; cursor:pointer; }
.nbk-mode-top button span { margin-left:8px; font-size:1.15rem; }
.nbk-focus-mode [data-mode-content] { display:flex; flex:1; flex-direction:column; align-items:center; width:100%; min-height:0; }
.nbk-mode-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; max-width:52ch; margin:30px 0 12px; text-align:center; color:#e5e6df; font-size:clamp(.9rem,2.5vw,1.5rem); line-height:1.7; }
.nbk-mode-count { display:flex; align-items:center; justify-content:center; flex:1; width:100%; min-height:46vh; margin:0; border:0; border-radius:24px; background:transparent; color:#fff; font:500 clamp(5rem,22vmin,13rem)/1.1 'Poppins',sans-serif; font-variant-numeric:tabular-nums; touch-action:manipulation; user-select:none; -webkit-user-select:none; -webkit-tap-highlight-color:transparent; cursor:pointer; }
.nbk-mode-count:active { background:#141a14; }
.nbk-mode-options { width:min(520px,100%); margin-top:12px; color:#c8c9c4; font-size:.75rem; line-height:1.8; }
.nbk-mode-options summary { min-height:44px; padding:10px 0; cursor:pointer; text-align:center; }
.nbk-mode-options label { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:10px 0; }
.nbk-mode-options input { width:20px; height:20px; accent-color:#e5ba73; }
.nbk-mode-options select { max-width:65%; padding:10px; background:#171b17; color:#fff; border:1px solid #4a4c46; border-radius:8px; font:inherit; color-scheme:dark; }
/* Dhikr: a quiet, generous tap surface with a bounded counter dial. */
.nbk-is-focusing { background:radial-gradient(ellipse at 50% 43%,rgba(198,169,118,.065),transparent 60%),#0e100d; color:#eee9df; }
.nbk-is-focusing .nbk-mode-shell { width:min(960px,100%); margin:auto; }
.nbk-is-focusing .nbk-mode-top { padding-bottom:16px; border-bottom:1px solid rgba(205,181,139,.12); }
.nbk-is-focusing .nbk-mode-top > span { color:#bbae94; font-size:.65rem; letter-spacing:.18em; }
.nbk-is-focusing .nbk-mode-top button { border-radius:999px; border-color:rgba(205,181,139,.2); background:rgba(255,255,255,.025); }
.nbk-focus-heading { flex:none; width:100%; max-width:650px; padding:28px 12px 0; text-align:center; }
.nbk-focus-eyebrow { margin:0 0 10px; color:#ad9772; font-size:.58rem; letter-spacing:.2em; }
.nbk-is-focusing .nbk-mode-title { display:block; max-width:100%; margin:0; color:#eee9df; font:500 clamp(1.3rem,3.5vw,2rem)/1.4 'Playfair Display',Georgia,serif; overflow-wrap:anywhere; }
.nbk-focus-meaning { margin:10px 0 0; font-size:.78rem; line-height:1.7; color:#a7a797; }
.nbk-focus-meaning:empty { display:none; }
.nbk-focus-arabic { margin:16px 0 0; color:#f3e8d2; font-family:var(--font-arabic,'Scheherazade New',serif); font-size:clamp(1.8rem,5vw,2.8rem); font-weight:400; line-height:1.9; overflow-wrap:anywhere; }
.nbk-focus-arabic:empty { display:none; }
.nbk-is-focusing .nbk-mode-count { flex-direction:column; gap:12px; min-height:clamp(270px,54vh,620px); padding:24px 0; border-radius:20px; color:#eee9df; background:transparent; }
.nbk-focus-dial { position:relative; display:grid; place-items:center; width:clamp(200px,36vmin,360px); aspect-ratio:1; flex:none; border-radius:50%; background:radial-gradient(circle,rgba(204,176,129,.045),transparent 70%); }
.nbk-focus-ring { position:absolute; inset:0; width:100%; height:100%; stroke:#cbb183; stroke-width:2; pointer-events:none; }
.nbk-focus-ring-track { stroke:rgba(203,177,131,.15); }
.nbk-focus-ring [data-focus-ring] { stroke-dasharray:100; stroke-dashoffset:100; stroke-linecap:round; }
.nbk-focus-number { position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; max-width:88%; }
.nbk-focus-number [data-focus-count] { font-weight:400; line-height:1.1; letter-spacing:-.04em; }
.nbk-focus-unit { color:#a99b80; font:400 .58rem/1.5 'Poppins',sans-serif; letter-spacing:.2em; }
.nbk-focus-progress { min-height:22px; padding:0 14px; color:#c4b18f; text-align:center; font:400 .76rem/1.7 'Poppins',sans-serif; }
.nbk-focus-tap-hint { color:#929586; font:400 .68rem/1.7 'Poppins',sans-serif; }
.nbk-is-focusing .nbk-mode-count:active .nbk-focus-dial { background:rgba(203,177,131,.075); }
.nbk-is-focusing .nbk-mode-options { flex:none; width:min(480px,100%); margin-top:0; padding:0 16px; border:1px solid rgba(205,181,139,.13); border-radius:14px; background:rgba(255,255,255,.018); color:#babeb0; }
.nbk-is-focusing .nbk-mode-options summary { padding:14px 0; font-size:.72rem; }
.nbk-is-focusing .nbk-mode-options p { font-size:.68rem; color:#939b88; }
.nbk-is-focusing .nbk-mode-options p:empty { display:none; }
.nbk-focus-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; width:min(480px,100%); margin:0 0 8px; }
.nbk-focus-actions button { display:inline-flex; flex:1 1 180px; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:12px 16px; border:1px solid rgba(205,181,139,.25); border-radius:14px; background:rgba(255,255,255,.035); color:#eee9df; font:500 .8rem/1.5 'Poppins',sans-serif; cursor:pointer; touch-action:manipulation; }
.nbk-focus-actions button svg { width:19px; height:19px; flex:none; }
.nbk-focus-actions button[aria-pressed="true"] { border-color:#d6ae70; background:rgba(214,174,112,.16); color:#f0cd96; }
.nbk-focus-actions button:disabled { opacity:.45; cursor:default; }
.nbk-focus-actions button:focus-visible { outline:2px solid #e5ba73; outline-offset:3px; }
.nbk-focus-record-status { width:min(480px,100%); margin:0 0 12px; color:#c5c9ba; font:400 .75rem/1.7 'Poppins',sans-serif; text-align:center; }
.nbk-focus-record-status:empty { display:none; }
@media(max-width:600px) {
  .nbk-is-focusing .nbk-mode-shell { padding:16px max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); padding-top:max(16px,env(safe-area-inset-top)); }
  .nbk-focus-heading { padding-top:24px; }
  .nbk-focus-dial { width:clamp(200px,64vw,300px); }
}
@media(max-height:600px) {
  .nbk-is-focusing .nbk-mode-top { padding-bottom:8px; }
  .nbk-focus-heading { padding-top:14px; }
  .nbk-focus-eyebrow { display:none; }
  .nbk-focus-meaning { margin-top:4px; }
  .nbk-is-focusing .nbk-mode-count { min-height:200px; gap:6px; padding:10px 0; }
  .nbk-focus-dial { width:clamp(140px,40vh,210px); }
  .nbk-focus-number { gap:6px; }
  .nbk-is-focusing .nbk-mode-options summary { padding:10px 0; }
}
.nbk-is-driving { background:radial-gradient(ellipse at 15% 35%,rgba(195,163,107,.075),transparent 55%),#0b0e0d; color:#ecece5; }
.nbk-is-driving .nbk-mode-shell { width:min(1180px,100%); margin:auto; }
.nbk-is-driving .nbk-mode-top { padding-bottom:20px; border-bottom:1px solid rgba(222,208,177,.1); }
.nbk-is-driving .nbk-mode-top > span { color:#b5a88d; letter-spacing:.2em; font-size:.68rem; }
.nbk-is-driving .nbk-mode-top button { border-color:rgba(222,208,177,.16); background:rgba(255,255,255,.025); border-radius:999px; }
.nbk-drive-content { display:grid; grid-template-columns:minmax(160px,.75fr) minmax(0,1.4fr); align-content:center; align-items:center; gap:30px clamp(24px,5vw,70px); flex:1; width:100%; max-width:1040px; margin:0 auto; padding:clamp(24px,5vh,64px) 0; }
.nbk-drive-art { display:flex; flex-direction:column; justify-content:center; align-items:center; aspect-ratio:1; width:100%; max-width:300px; justify-self:center; border:1px solid rgba(209,183,139,.18); border-radius:32px; color:#bfa67b; background:radial-gradient(circle at 35% 25%,rgba(205,175,116,.14),transparent 70%),linear-gradient(145deg,#1b211d,#101512); box-shadow:0 24px 65px rgba(0,0,0,.22); }
.nbk-drive-art svg { width:72%; height:72%; }
.nbk-drive-art-label { font-size:.52rem; letter-spacing:.24em; margin-top:-8%; }
.nbk-drive-player { min-width:0; }
.nbk-drive-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; color:#b6a383; font-size:.65rem; letter-spacing:.15em; }
.nbk-drive-state { display:inline-flex; align-items:center; gap:7px; color:#a9b2a9; font-size:.7rem; letter-spacing:0; margin:0; }
.nbk-drive-state i { width:6px; height:6px; border-radius:50%; background:#6b746c; }
.is-playing .nbk-drive-state i { background:#a8ba9d; box-shadow:0 0 9px rgba(168,186,157,.25); }
.nbk-drive-player .nbk-mode-title { margin:20px 0 8px; max-width:none; text-align:left; font-size:clamp(1.5rem,3.8vw,2.6rem); font-weight:500; line-height:1.35; overflow-wrap:anywhere; }
.nbk-drive-artist { margin:0; font-size:clamp(.85rem,1.7vw,1rem); line-height:1.7; color:#aab2a9; overflow-wrap:anywhere; }
.nbk-drive-progress { margin:28px 0 22px; }
.nbk-drive-progress progress { display:block; appearance:none; -webkit-appearance:none; width:100%; height:5px; border:0; border-radius:99px; overflow:hidden; background:#30382f; accent-color:#ccb184; }
.nbk-drive-progress progress::-webkit-progress-bar { background:#30382f; border-radius:99px; }
.nbk-drive-progress progress::-webkit-progress-value { background:#ccb184; border-radius:99px; }
.nbk-drive-progress progress::-moz-progress-bar { background:#ccb184; border-radius:99px; }
.nbk-drive-progress > div { display:flex; justify-content:space-between; margin-top:10px; color:#929e93; font-size:.72rem; font-variant-numeric:tabular-nums; }
.nbk-drive-controls { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:14px; width:100%; align-items:center; }
.nbk-drive-controls button { display:flex; align-items:center; justify-content:center; min-width:0; min-height:96px; padding:18px; border:1px solid rgba(206,216,197,.2); border-radius:22px; background:linear-gradient(145deg,#202a22,#172019); color:#e6eade; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.nbk-drive-controls [data-drive-play] { min-height:114px; border-color:#c6ad82; background:linear-gradient(130deg,#d8bd8c,#b79b6d); color:#111a13; box-shadow:0 8px 28px rgba(0,0,0,.18); }
.nbk-drive-controls button:active { background:#344233; }
.nbk-drive-controls [data-drive-play]:active { background:#b79b6d; }
.nbk-drive-controls svg { width:44px; height:44px; pointer-events:none; }
.nbk-drive-controls [data-drive-play] svg { width:54px; height:54px; }
.nbk-drive-control-labels { display:grid; grid-template-columns:1fr 1.2fr 1fr; gap:14px; margin-top:12px; color:#89978b; font-size:.67rem; text-align:center; }
.nbk-drive-connection { grid-column:1 / -1; border-top:1px solid rgba(222,208,177,.1); padding-top:8px; color:#94a094; }
.nbk-drive-connection summary { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; width:fit-content; margin:auto; padding:8px 14px; cursor:pointer; font-size:.72rem; list-style:none; }
.nbk-drive-connection summary::-webkit-details-marker { display:none; }
.nbk-drive-connection summary::after { content:'+'; margin-left:8px; }
.nbk-drive-connection[open] summary::after { content:'\2212'; }
.nbk-drive-connection summary svg { width:19px; height:19px; }
.nbk-drive-connection p { max-width:660px; margin:8px auto; font-size:.75rem; line-height:1.9; text-align:center; }
@media(max-width:600px) and (min-height:601px) {
  .nbk-drive-content { grid-template-columns:minmax(0,1fr); gap:24px; padding:28px 0 14px; max-width:420px; }
  .nbk-drive-art { width:150px; border-radius:24px; }
  .nbk-drive-art-label { font-size:.4rem; }
  .nbk-drive-player .nbk-mode-title { font-size:1.7rem; margin-top:16px; }
  .nbk-drive-progress { margin-top:22px; }
  .nbk-drive-controls { gap:10px; }
  .nbk-drive-controls button { min-height:88px; border-radius:20px; }
  .nbk-drive-controls [data-drive-play] { min-height:104px; }
}
@media(max-height:600px) {
  .nbk-drive-content { grid-template-columns:minmax(100px,.5fr) minmax(0,1.5fr); gap:16px 28px; padding:18px 0 0; }
  .nbk-drive-art { max-width:180px; border-radius:22px; }
  .nbk-drive-player .nbk-mode-title { margin:12px 0 6px; font-size:1.4rem; }
  .nbk-drive-progress { margin:14px 0; }
  .nbk-drive-controls button { min-height:70px; padding:12px; border-radius:17px; }
  .nbk-drive-controls [data-drive-play] { min-height:82px; }
  .nbk-drive-controls svg { width:34px; height:34px; }
  .nbk-drive-controls [data-drive-play] svg { width:44px; height:44px; }
}
@media(max-width:400px) and (max-height:600px) { .nbk-drive-content { grid-template-columns:minmax(0,1fr); } .nbk-drive-art { display:none; } }
.nbk-driving-entry { display:flex; justify-content:center; padding:0 18px; margin:0 auto 20px; }
.nbk-driving-entry button { display:inline-flex; align-items:center; gap:10px; min-height:44px; padding:10px 16px; border:1px solid rgba(var(--orn-gold,229,186,115),.35); border-radius:12px; background:rgba(var(--orn-gold,229,186,115),.07); color:var(--text-color,var(--text,#e7e7ea)); font:500 .8rem 'Poppins',sans-serif; cursor:pointer; }
.nbk-focus-mode.nbk-is-locked { inset:0; width:calc(100% - 32px); max-width:480px; height:auto; max-height:calc(100dvh - 32px); margin:auto; overflow:auto; border:1px solid rgba(203,177,131,.24); border-radius:24px; background:radial-gradient(ellipse at 10% 0,rgba(203,177,131,.09),transparent 65%),#151814; color:#edece6; box-shadow:0 24px 90px rgba(0,0,0,.45); }
.nbk-focus-mode.nbk-is-locked::backdrop { background:rgba(5,8,6,.65); backdrop-filter:blur(7px); }
.nbk-is-locked .nbk-mode-shell { min-height:0; padding:22px; }
.nbk-is-locked .nbk-mode-top > span { color:#b7aa90; font-size:.62rem; letter-spacing:.17em; }
.nbk-is-locked .nbk-mode-top button { min-height:40px; padding:8px 12px; border-color:rgba(203,177,131,.18); background:rgba(255,255,255,.025); border-radius:999px; font-size:.7rem; }
.nbk-mode-lock { width:100%; padding:24px 8px 8px; text-align:left; }
.nbk-mode-lock-icon { display:flex; align-items:center; justify-content:center; width:52px; height:52px; margin-bottom:22px; border:1px solid rgba(203,177,131,.2); border-radius:16px; background:rgba(203,177,131,.06); color:#cbb183; }
.nbk-mode-lock-icon svg { width:25px; height:25px; }
.nbk-mode-lock h2 { margin:0 0 12px; color:#edece6; font:500 clamp(1.4rem,5vw,1.75rem)/1.3 'Poppins',sans-serif; letter-spacing:-.025em; }
.nbk-mode-lock p { margin:0; color:#abb0a5; font-size:.84rem; line-height:1.85; }
.nbk-mode-lock-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:28px; padding-top:22px; border-top:1px solid rgba(203,177,131,.12); }
.nbk-mode-lock-actions :is(a,button) { display:inline-flex; align-items:center; justify-content:center; gap:20px; min-height:46px; padding:12px 18px; border:1px solid transparent; border-radius:12px; font:500 .8rem/1.5 'Poppins',sans-serif; text-decoration:none; cursor:pointer; }
.nbk-mode-lock-actions a { flex:1; color:#171b15; background:#cbb183; }
.nbk-mode-lock-actions a:hover { background:#dac49e; }
.nbk-mode-lock-actions button { color:#c8cdc0; background:transparent; border-color:rgba(203,177,131,.2); }
.nbk-mode-lock-actions button:hover { background:rgba(255,255,255,.04); }
@media(max-width:400px) { .nbk-is-locked .nbk-mode-shell { padding:18px; } .nbk-mode-lock { padding:22px 2px 4px; } }
.nbk-focus-mode :is(button,a,select,input,summary):focus-visible,.nbk-driving-entry button:focus-visible { outline:3px solid #e5ba73; outline-offset:4px; }
@media (max-height:500px) { .nbk-mode-title { margin-top:14px; margin-bottom:8px; font-size:1rem; } .nbk-drive-state { margin:0 0 16px; } .nbk-mode-count { min-height:36vh; } }

.nbk-driving-entry button > svg { width:21px; height:21px; color:var(--primary-color,#e5ba73); }
.nbk-driving-entry button small { padding:2px 7px; border-radius:20px; background:rgba(var(--orn-gold,229,186,115),.1); color:var(--primary-color,#e5ba73); font-size:.62rem; }

.nbk-drive-extras { grid-column:1 / -1; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); align-items:start; gap:14px; }
.nbk-drive-panel { min-width:0; border:1px solid rgba(206,216,197,.16); border-radius:16px; background:rgba(255,255,255,.02); color:#d8dfd4; }
.nbk-drive-panel > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:18px; min-height:60px; cursor:pointer; font-size:.88rem; list-style:none; }
.nbk-drive-panel > summary::-webkit-details-marker { display:none; }
.nbk-drive-panel > summary span { font-size:.66rem; color:#97a493; text-align:right; }
.nbk-drive-panel > summary::after { content:'+'; color:#c6ad82; }
.nbk-drive-panel[open] > summary::after { content:'\2212'; }
.nbk-drive-panel-body { padding:0 18px 18px; font-size:.78rem; }
.nbk-drive-panel-body p { font-size:.73rem; color:#a5b09f; line-height:1.8; }
.nbk-drive-panel-body button { min-height:46px; padding:10px 14px; border:1px solid #394a39; border-radius:10px; background:#1b281d; color:#e1e8d9; font:inherit; cursor:pointer; touch-action:manipulation; }
.nbk-drive-panel-body button:disabled { opacity:.45; cursor:default; }
.nbk-drive-panel-body button.is-active { border-color:#c6ad82; background:#3c3b2b; color:#e9d1a8; }
.nbk-drive-sounds { display:grid; grid-template-columns:repeat(auto-fit,minmax(90px,1fr)); gap:8px; }
.nbk-drive-volume { display:block; margin:20px 0 16px; color:#b8c2b1; line-height:1.8; }
.nbk-drive-volume input { display:block; width:100%; min-height:44px; margin:6px 0; accent-color:#c6ad82; cursor:pointer; }
.nbk-drive-sound-modes,.nbk-drive-playlist-actions { display:flex; gap:8px; flex-wrap:wrap; }
.nbk-drive-sound-modes button { flex:1; }
.nbk-drive-create { display:flex; gap:8px; align-items:end; margin:14px 0; }
.nbk-drive-create label { flex:1; min-width:0; font-size:.72rem; line-height:1.8; }
.nbk-drive-create input { display:block; width:100%; min-width:0; min-height:46px; padding:10px 12px; border:1px solid #394a39; border-radius:10px; background:#111a14; color:#e1e8d9; font:inherit; font-size:16px; }
.nbk-drive-create > input { flex:1; }
.nbk-drive-create button { flex-shrink:0; }
.nbk-drive-playlist { padding:12px 0; border-top:1px solid #303b2e; }
.nbk-drive-playlist > summary { min-height:44px; padding:10px 0; cursor:pointer; overflow-wrap:anywhere; }
.nbk-drive-playlist ul { padding:0; list-style:none; }
.nbk-drive-playlist li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid #253222; }
.nbk-drive-playlist li span { overflow-wrap:anywhere; }
.nbk-drive-playlist li button { flex-shrink:0; }
@media(max-width:380px) { .nbk-drive-create { flex-wrap:wrap; } .nbk-drive-create label,.nbk-drive-create > input { flex-basis:100%; } }

.nbk-drive-library-toolbar { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:12px; padding-bottom:14px; }
.nbk-drive-new-playlist { flex:1; min-width:150px; }
.nbk-drive-new-playlist > summary { padding:12px 0; min-height:46px; cursor:pointer; list-style:none; color:#d4bb91; }
.nbk-drive-playlist { margin:0 0 12px; padding:16px; border:1px solid #303b2e; border-radius:12px; background:rgba(255,255,255,.025); }
.nbk-drive-playlist-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.nbk-drive-playlist-header > div { min-width:0; }
.nbk-drive-playlist-header h3 { margin:0; font:500 .9rem/1.6 'Poppins',sans-serif; overflow-wrap:anywhere; color:#e0e7db; }
.nbk-drive-playlist-header p { margin:4px 0 0; }
.nbk-drive-playlist-header > button { flex-shrink:0; border-color:#776c50; background:#343729; }
.nbk-drive-playlist-editor { margin-top:12px; border-top:1px solid #303b2e; }
.nbk-drive-playlist-editor > summary { min-height:44px; padding:12px 0; cursor:pointer; color:#a6b19f; font-size:.73rem; }
.nbk-drive-playlist-editor ul { max-height:300px; overflow:auto; overscroll-behavior:contain; }
.nbk-drive-reader { grid-column:1 / -1; }
.nbk-drive-reader-mount { padding:0 16px 16px; }
.nbk-drive-reader #quranLyricsPanel { display:flex!important; position:relative!important; inset:auto!important; width:100%!important; height:min(65vh,540px)!important; max-width:none; margin:0!important; opacity:1; pointer-events:auto; transform:none; box-shadow:none; }
.nbk-drive-reader #lyricsPanel { width:100%; max-width:none; margin:0; border:0; box-shadow:none; background:transparent; }
.nbk-drive-reader #lyricsPanel .lyrics-body-outer { max-height:min(65vh,540px)!important; }
.nbk-drive-reader :is(.lyrics-fullscreen,.quran-lyrics-fullscreen) { display:none!important; }
.nbk-drive-reader :is(.quran-lyrics-body,.lyrics-body) { overscroll-behavior:contain; }
@media(max-width:380px) { .nbk-drive-playlist-header { gap:10px; } .nbk-drive-playlist-header > button { padding:10px; } .nbk-drive-reader-mount { padding:0 10px 10px; } }

/* Driving workspace: tools above, compact player left, reading stage right. */
.nbk-is-driving .nbk-mode-shell { width:100%; max-width:1600px; height:100%; min-height:0; }
.nbk-is-driving [data-mode-content] { min-height:0; }
.nbk-is-driving .nbk-drive-content { width:100%; max-width:none; min-height:0; padding:18px 0 0; gap:20px; grid-template-columns:minmax(260px,.75fr) minmax(0,1.65fr); grid-template-rows:auto minmax(0,1fr); grid-template-areas:'tools tools' 'player reader'; align-content:stretch; align-items:stretch; }
.nbk-drive-tools { grid-area:tools; display:flex; align-items:start; justify-content:flex-start; flex-wrap:wrap; gap:10px; position:relative; z-index:10; }
.nbk-drive-tools > .nbk-drive-panel { position:relative; min-width:200px; max-width:100%; }
.nbk-drive-tools > .nbk-drive-panel > summary { min-height:48px; padding:12px 16px; gap:18px; }
.nbk-drive-tools > .nbk-drive-panel > .nbk-drive-panel-body { position:absolute; top:calc(100% + 8px); left:0; width:min(500px,calc(100vw - 44px)); max-height:65vh; overflow:auto; overscroll-behavior:contain; padding:18px; border:1px solid #394538; border-radius:16px; background:#141d16; box-shadow:0 20px 65px rgba(0,0,0,.5); }
.nbk-drive-tools > .nbk-drive-connection { position:relative; margin-left:auto; padding:0; border:1px solid rgba(206,216,197,.16); border-radius:16px; }
.nbk-drive-tools > .nbk-drive-connection > summary { min-height:48px; padding:12px 16px; }
.nbk-drive-tools > .nbk-drive-connection > p { position:absolute; top:calc(100% + 8px); right:0; width:min(450px,calc(100vw - 44px)); margin:0; padding:20px; border:1px solid #394538; border-radius:16px; background:#141d16; text-align:left; box-shadow:0 20px 65px rgba(0,0,0,.5); }
.nbk-is-driving .nbk-drive-player { grid-area:player; align-self:end; position:relative; overflow:hidden; padding:24px; border:1px solid rgba(206,216,197,.18); border-radius:26px; background:radial-gradient(ellipse at 5% 0,rgba(202,179,127,.11),transparent 65%),linear-gradient(155deg,#222b22,#121b15); box-shadow:inset 0 1px 0 rgba(241,227,193,.05),0 18px 44px rgba(0,0,0,.18); transition:border-color .3s ease; }
.nbk-is-driving .is-playing .nbk-drive-player { border-color:rgba(207,183,132,.34); }
.nbk-drive-cover-row { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:22px; }
.nbk-drive-activity { display:flex; align-items:center; justify-content:center; gap:5px; height:42px; padding-right:10px; color:#aa9c78; }
.nbk-drive-activity span { display:block; width:4px; height:24px; border-radius:4px; background:currentColor; transform:scaleY(.18); transition:color .3s ease; }
.is-playing .nbk-drive-activity { color:#ceb787; }
.is-playing .nbk-drive-activity span { animation:nbkDriveActivity 1.2s ease-in-out infinite; }
.is-playing .nbk-drive-activity span:nth-child(2) { animation-delay:-.7s; }
.is-playing .nbk-drive-activity span:nth-child(3) { animation-delay:-.3s; }
.is-playing .nbk-drive-activity span:nth-child(4) { animation-delay:-.9s; }
.is-playing .nbk-drive-activity span:nth-child(5) { animation-delay:-.5s; }
@keyframes nbkDriveActivity { 0%,100% { transform:scaleY(.25); } 50% { transform:scaleY(1); } }
@media(prefers-reduced-motion:reduce) { .is-playing .nbk-drive-activity span { animation:none; transform:scaleY(.65); } }
.nbk-is-driving .nbk-drive-player .nbk-drive-art { width:88px; max-width:none; margin:0; border-radius:22px; background:radial-gradient(circle at 30% 20%,rgba(215,185,123,.2),transparent 70%),linear-gradient(140deg,#313a2b,#18221b); box-shadow:inset 0 1px 0 rgba(239,220,178,.1),0 8px 22px rgba(0,0,0,.17); }
.nbk-is-driving .nbk-drive-art-label { display:none; }
.nbk-is-driving .nbk-drive-player .nbk-mode-title { font-size:clamp(1.25rem,2.25vw,2rem); font-weight:600; letter-spacing:-.025em; margin:16px 0 10px; color:#f0eee4; }
.nbk-is-driving .nbk-drive-player .nbk-drive-progress { margin:24px 0 20px; }
.nbk-is-driving .nbk-drive-controls { gap:10px; }
.nbk-is-driving .nbk-drive-controls button { min-height:64px; width:64px; height:64px; justify-self:center; border-radius:50%; padding:14px; background:rgba(255,255,255,.035); border-color:rgba(206,216,197,.18); transition:background .2s ease,box-shadow .2s ease; }
.nbk-is-driving .nbk-drive-controls [data-drive-play] { min-height:82px; width:82px; height:82px; background:linear-gradient(135deg,#e3c991,#bea16e); border-color:#d9bd87; box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 8px 24px rgba(0,0,0,.22); }
.nbk-is-driving .nbk-drive-controls svg { width:32px; height:32px; }
.nbk-is-driving .nbk-drive-controls [data-drive-play] svg { width:44px; height:44px; }
.nbk-drive-reader-slot { grid-area:reader; min-height:0; min-width:0; display:flex; }
.nbk-is-driving .nbk-drive-reader { display:flex; flex-direction:column; width:100%; min-height:0; border-radius:24px; overflow:hidden; background:radial-gradient(ellipse at 70% 0,rgba(174,156,104,.1),transparent 70%),#111914; }
.nbk-is-driving .nbk-drive-reader > summary { flex:none; padding:18px 24px; min-height:58px; cursor:pointer; }
.nbk-is-driving .nbk-drive-reader-mount { flex:1; min-height:0; display:flex; padding:0 10px 10px; }

.nbk-is-driving .nbk-drive-reader #quranLyricsPanel { height:100%!important; min-height:0; background:transparent; border:0; border-radius:0; }
.nbk-is-driving .nbk-drive-reader #lyricsPanel { display:flex; flex-direction:column; height:100%; min-height:0; }
.nbk-is-driving .nbk-drive-reader :is(.lyrics-head,.quran-lyrics-header) { display:none; }
.nbk-is-driving .nbk-drive-reader :is(.lyrics-status,.quran-lyrics-status) { flex:none; font-size:.65rem; background:transparent; }
.nbk-is-driving .nbk-drive-reader #lyricsPanel.open .lyrics-body-outer { display:flex; flex:1; min-height:0; max-height:none!important; opacity:1; }
.nbk-is-driving .nbk-drive-reader #lyricsPanel .lyrics-body { flex:1; min-height:0; height:100%; max-height:none; width:100%; padding-right:0; overflow-y:auto; scrollbar-width:thin; }
.nbk-is-driving .nbk-drive-reader .lyrics-lines { margin:auto 0; padding:24px clamp(14px,3vw,48px); gap:20px; }
.nbk-is-driving .nbk-drive-reader .lyrics-line { text-align:left; padding:10px 0; opacity:.45; transform:none; }
.nbk-is-driving .nbk-drive-reader .lyrics-line.active { opacity:1; transform:none; }
.nbk-is-driving .nbk-drive-reader .lyrics-line .ll-text { font-size:clamp(1.55rem,3vw,2.7rem); line-height:1.55; font-weight:600; }
.nbk-is-driving .nbk-drive-reader .lyrics-line .ll-translation { margin-top:10px; font-size:clamp(.95rem,1.6vw,1.3rem); line-height:1.8; }
.nbk-is-driving .nbk-drive-reader .quran-lyrics-body { padding:18px clamp(12px,2.8vw,40px); }
.nbk-is-driving .nbk-drive-reader .quran-lyrics-ayah { margin-bottom:20px; padding:18px 14px; }
.nbk-is-driving .nbk-drive-reader .ql-arabic { font-size:clamp(1.9rem,3.5vw,3.4rem); line-height:2.1; }
.nbk-is-driving .nbk-drive-reader .ql-translation { font-size:clamp(.95rem,1.65vw,1.35rem); line-height:1.9; }
@media(max-width:700px) and (min-height:601px) {
  .nbk-is-driving .nbk-mode-shell { height:auto; min-height:100%; }
  .nbk-is-driving .nbk-drive-content { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(340px,55dvh) auto; grid-template-areas:'tools' 'reader' 'player'; gap:14px; }
  .nbk-drive-tools > .nbk-drive-panel { min-width:0; flex:1; }
  .nbk-drive-tools > .nbk-drive-panel > summary span { display:none; }
  .nbk-drive-tools > .nbk-drive-panel > .nbk-drive-panel-body { position:fixed; top:160px; left:16px; width:calc(100vw - 32px); max-height:60dvh; }
  .nbk-drive-tools > .nbk-drive-connection { margin-left:0; }
  .nbk-drive-tools > .nbk-drive-connection > summary { font-size:0; gap:0; }
  .nbk-drive-tools > .nbk-drive-connection > summary::after { display:none; }
  .nbk-is-driving .nbk-drive-player { padding:18px; }
  .nbk-is-driving .nbk-drive-player .nbk-drive-art { display:none; }
  .nbk-is-driving .nbk-drive-reader .lyrics-line .ll-text { font-size:1.6rem; }
}
@media(max-height:600px) and (min-width:601px) {
  .nbk-is-driving .nbk-drive-content { grid-template-columns:minmax(220px,.8fr) minmax(0,1.5fr); gap:12px; padding-top:12px; }
  .nbk-is-driving .nbk-mode-top { padding-bottom:8px; }
  .nbk-is-driving .nbk-drive-player { padding:14px; }
  .nbk-is-driving .nbk-drive-player .nbk-drive-art { display:none; }
  .nbk-is-driving .nbk-drive-player .nbk-drive-progress { margin:14px 0; }
  .nbk-is-driving .nbk-drive-controls button { min-height:60px; }
  .nbk-is-driving .nbk-drive-controls [data-drive-play] { min-height:70px; }
  .nbk-is-driving .nbk-drive-reader > summary { min-height:44px; padding:10px 18px; }
}
@media(max-width:600px) and (max-height:600px) {
  .nbk-is-driving .nbk-mode-shell { height:auto; min-height:100%; }
  .nbk-is-driving .nbk-drive-content { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 360px auto; grid-template-areas:'tools' 'reader' 'player'; }
}

/* Compact access within the player instead of a separate page banner. */
.nbk-drive-shortcut { display:inline-flex; flex:0 0 44px; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:10px; border:0; border-radius:50%; background:transparent; color:var(--muted-text,var(--text-muted,#a9a18d)); cursor:pointer; touch-action:manipulation; }
.nbk-drive-shortcut svg { display:block; width:20px; height:20px; pointer-events:none; }
.nbk-drive-shortcut:focus-visible { outline:2px solid var(--primary-color,#e5ba73); outline-offset:2px; }
.nbk-drive-shortcut:hover { color:var(--primary-color,#e5ba73); background:rgba(var(--orn-gold,229,186,115),.06); }
.nbk-drive-tools > .nbk-drive-connection > .nbk-drive-connection-popover { position:absolute; top:calc(100% + 8px); right:0; width:min(450px,calc(100vw - 44px)); max-height:65vh; overflow:auto; padding:20px; border:1px solid #394538; border-radius:16px; background:#141d16; box-shadow:0 20px 65px rgba(0,0,0,.5); }
.nbk-drive-connection-popover > p { margin:0 0 18px; text-align:left; }
.nbk-drive-auto-option { display:flex; align-items:start; gap:12px; padding-top:16px; border-top:1px solid #303b2e; color:#d8dfd4; font-size:.8rem; line-height:1.6; cursor:pointer; }
.nbk-drive-auto-option input { width:20px; height:20px; flex:0 0 20px; margin:2px 0 0; accent-color:#c6ad82; }
.nbk-drive-connection-popover > small { display:block; margin-top:10px; color:#99a593; font-size:.7rem; line-height:1.8; }
.nbk-car-guides{margin:16px 0 20px;padding-bottom:16px;border-bottom:1px solid #394538}.nbk-car-guides label{display:grid;gap:8px;color:#cbd3c4;font-size:.75rem}.nbk-car-guides select{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #45523f;border-radius:10px;background:#10180f;color:#eee9df;font:inherit}.nbk-car-guides ol{padding-left:20px;margin:16px 0;color:#d3d9cd;font-size:.73rem;line-height:1.9}.nbk-car-guides li+li{margin-top:10px}.nbk-car-guides p{font-size:.72rem;line-height:1.9;text-align:left;overflow-wrap:anywhere}.nbk-car-guides .nbk-car-capability{padding:12px;border:1px solid #45523f;border-radius:10px;color:#bfcfb4}.nbk-car-guides .nbk-car-current{color:#99a593}

.nbk-is-driving .nbk-drive-controls button:active { background:#3c4936; }
.nbk-is-driving .nbk-drive-controls [data-drive-play]:active { background:#bca071; }
.nbk-is-driving .nbk-drive-progress progress::-webkit-progress-value { background:linear-gradient(90deg,#9f946f,#e0c38b); }
.nbk-is-driving .nbk-drive-progress progress::-moz-progress-bar { background:linear-gradient(90deg,#9f946f,#e0c38b); }
.nbk-is-driving .nbk-drive-player .nbk-drive-artist { color:#b2bca9; }
@media(max-width:700px) and (min-height:601px) { .nbk-drive-cover-row { float:right; margin:0 0 8px 12px; } .nbk-drive-activity { height:18px; padding-right:0; } .nbk-drive-activity span { height:18px; width:3px; } .nbk-is-driving .nbk-drive-player .nbk-drive-meta { clear:both; } }
@media(max-height:600px) { .nbk-drive-cover-row { display:none; } .nbk-is-driving .nbk-drive-controls button { min-height:54px; width:54px; height:54px; } .nbk-is-driving .nbk-drive-controls [data-drive-play] { min-height:64px; width:64px; height:64px; } }

/* A real constrained scroll viewport, independent of native details layout. */
.nbk-is-driving .nbk-drive-reader > h3 { flex:none; margin:0; padding:18px 24px; min-height:58px; font:500 .88rem/1.6 'Poppins',sans-serif; color:#d8dfd4; }
.nbk-is-driving .nbk-drive-reader-mount { flex-direction:column; overflow:hidden; }
.nbk-is-driving .nbk-drive-reader #quranLyricsPanel { flex:1; height:0!important; min-height:0; }
.nbk-is-driving .nbk-drive-reader #lyricsPanel { flex:1; height:0; min-height:0; }
.nbk-is-driving .nbk-drive-reader #lyricsPanel.open .lyrics-body-outer { flex-direction:column; height:0; }
.nbk-is-driving .nbk-drive-reader #lyricsPanel .lyrics-body { height:0; }
.nbk-is-driving .nbk-drive-reader .quran-lyrics-body { min-height:0; overflow-y:auto; }
@media(max-height:600px) and (min-width:601px) { .nbk-is-driving .nbk-drive-reader > h3 { padding:10px 18px; min-height:44px; } }

/* Text visibility belongs to Dhikr focus only; driving controls are unchanged. */
.nbk-is-focusing [hidden]{display:none!important}
.nbk-focus-display{flex:none;width:min(650px,100%);margin:12px 0 0;border-bottom:1px solid #cdb58b1c;color:#c5bca9;font:400 .76rem/1.6 Poppins,Arial,sans-serif}
.nbk-focus-display summary{display:list-item;width:fit-content;min-height:44px;margin-left:auto;padding:12px 2px;cursor:pointer;list-style-position:inside}
.nbk-focus-display-options{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 20px;padding:4px 0 16px}
.nbk-focus-display-options label{display:flex;align-items:center;gap:9px;min-height:44px;cursor:pointer}
.nbk-focus-display-options input{flex:none;width:20px;height:20px;margin:0;accent-color:#d6ae70}
.nbk-focus-display-options button{min-height:44px;border:1px solid #cdb58b44;border-radius:999px;padding:9px 16px;background:#cdb58b12;color:#eee9df;font:inherit;cursor:pointer}
.nbk-focus-arabic-only .nbk-focus-heading{padding-top:8px}
.nbk-focus-arabic-only .nbk-focus-arabic{margin-top:8px}
@media(max-width:520px){.nbk-focus-display-options{justify-content:flex-start;gap:4px 14px}.nbk-focus-display-options label{flex:1 1 135px}.nbk-focus-display-options button{flex:1 1 135px}}
