/* JUFbook Core UI, Navigation & Theme Authority (Extracted from header.php in Build 593 for Browser Caching) */
/* ==========================================================================
           Build 565 — Root-Cause Fixes for Screenshot Issues (1000171408.jpg & 1000171407.jpg)
           1. Left Slide-Out Drawer (#juf-app-left-drawer) moved OUTSIDE <header> so
              .juf-header-v24's `transform: translate3d(0,0,0)` (jufbook-minimal-chrome.css:417)
              never clips `position: fixed` to the 48px header height.
           2. Top Hamburger button (#juf-app-drawer-toggle) uses a crisp 20x20px SVG
              symbol (matching Search, Bell, and Moon icons) instead of 3 grid-stretched
              <span> bars, with 8px spacing before the JUF logo.
           3. Active Bottom Nav Tab (.juf-yt-tab.is-active) overrides `body.juf-2d-minimal
              :where(..., .tab.is-active)` in jufbook-deep-teal-accent.css:382 so the
              outer grid cell stays 100% transparent (zero grey #ECEAE6 box).
           4. Slim 44px Symbol-Only Bottom Bar with 5 uniform 20x20px symbols
              (Home · Library · Write ＋ · Biography · Profile) — no heavy dark boxes.
           ========================================================================== */
        .juf-yt-bottom-nav,
        .juf-app-left-drawer,
        .juf-app-drawer-backdrop,
        .juf-app-write-modal,
        .juf-pwa-install-chip,
        .juf-app-top-notif-btn,
        .juf-app-library-switch-wrap {
            display: none;
        }
        .juf-pwa-install-chip[hidden],
        .juf-app-drawer-backdrop[hidden],
        .juf-app-write-modal[hidden] {
            display: none !important;
        }

        .juf-app-ic {
            width: 20px;
            height: 20px;
            stroke: currentColor;
            fill: none;
            stroke-width: 1.95;
            stroke-linecap: round;
            stroke-linejoin: round;
            flex-shrink: 0;
        }

        @media (max-width: 900px) {
            /* ------------------------------------------------------------------
               1. Compact 48px Symbol-Only Top App Bar (☰ · JUF · 📲 · 🔍 · 🔔 · 🌓)
               ------------------------------------------------------------------ */
            body:not(.admin-shell-body) .juf-header-modern.juf-header-v24 {
                min-height: 48px !important;
                padding: 0 !important;
                background: var(--bg, #F6F5F2) !important;
                border-bottom: 1px solid var(--line, #D9D6D0) !important;
            }
            html[data-theme="dark"] body:not(.admin-shell-body) .juf-header-modern.juf-header-v24 {
                background: #23262B !important;
                border-bottom-color: #3A3F47 !important;
            }
            body:not(.admin-shell-body) .juf-header-v24 .juf-header-shell {
                height: 48px !important;
                min-height: 48px !important;
                display: flex !important;
                align-items: center !important;
                gap: 4px !important;
                padding: 0 10px !important;
            }
            /* Left Hamburger Symbol Button (☰ — Crisp 20x20 SVG, Not Stretched Spans) */
            body:not(.admin-shell-body) .juf-mobile-menu-btn.juf-menu-v24 {
                order: 1 !important;
                width: 36px !important;
                height: 36px !important;
                min-width: 36px !important;
                flex: 0 0 36px !important;
                border: 0 !important;
                background: transparent !important;
                color: var(--ink, #282E37) !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 10px !important;
                padding: 0 !important;
                margin: 0 4px 0 0 !important;
                box-shadow: none !important;
            }
            body:not(.admin-shell-body) .juf-mobile-menu-btn.juf-menu-v24 span {
                display: none !important;
            }
            body:not(.admin-shell-body) .juf-mobile-menu-btn.juf-menu-v24 svg {
                width: 21px !important;
                height: 21px !important;
                stroke: currentColor !important;
                fill: none !important;
                stroke-width: 2 !important;
                stroke-linecap: round !important;
            }
            html[data-theme="dark"] body:not(.admin-shell-body) .juf-mobile-menu-btn.juf-menu-v24 {
                color: #ECE8E1 !important;
            }
            /* Brand Wordmark / Symbol */
            body:not(.admin-shell-body) .juf-brand-v24 {
                order: 2 !important;
                flex: 1 1 auto !important;
                margin-right: auto !important;
                display: inline-flex !important;
                align-items: center !important;
            }
            /* Symbol-Only PWA Install Icon Button (📲) */
            .juf-pwa-install-chip:not([hidden]) {
                order: 3 !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 34px !important;
                height: 34px !important;
                padding: 0 !important;
                border-radius: 10px !important;
                border: 1px solid var(--cta, #3346A8) !important;
                background: var(--tint, #E6E9F5) !important;
                color: var(--cta, #3346A8) !important;
                cursor: pointer !important;
                flex-shrink: 0 !important;
            }
            .juf-pwa-install-chip svg {
                width: 17px !important;
                height: 17px !important;
                stroke: currentColor !important;
                fill: none !important;
                stroke-width: 2.1 !important;
                stroke-linecap: round !important;
                stroke-linejoin: round !important;
            }
            html[data-theme="dark"] .juf-pwa-install-chip:not([hidden]) {
                background: #2A3350 !important;
                border-color: #8FA4F2 !important;
                color: #8FA4F2 !important;
            }
            /* Search Symbol Button (🔍) */
            body:not(.admin-shell-body) .juf-header-search-toggle-v44 {
                order: 4 !important;
                width: 36px !important;
                height: 36px !important;
                border: 0 !important;
                background: transparent !important;
                color: var(--ink, #282E37) !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 10px !important;
                padding: 0 !important;
                box-shadow: none !important;
                flex-shrink: 0 !important;
            }
            body:not(.admin-shell-body) .juf-header-search-toggle-v44 svg {
                width: 20px !important;
                height: 20px !important;
                stroke: currentColor !important;
                fill: none !important;
                stroke-width: 1.95 !important;
            }
            html[data-theme="dark"] body:not(.admin-shell-body) .juf-header-search-toggle-v44 {
                color: #ECE8E1 !important;
            }
            /* Notification Bell Symbol Button (🔔) */
            body:not(.admin-shell-body) .juf-app-top-notif-btn {
                order: 5 !important;
                position: relative !important;
                width: 36px !important;
                height: 36px !important;
                border: 0 !important;
                background: transparent !important;
                color: var(--ink, #282E37) !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 10px !important;
                text-decoration: none !important;
                flex-shrink: 0 !important;
            }
            html[data-theme="dark"] body:not(.admin-shell-body) .juf-app-top-notif-btn {
                color: #ECE8E1 !important;
            }
            .juf-app-notif-dot {
                position: absolute !important;
                top: 7px !important;
                right: 7px !important;
                width: 8px !important;
                height: 8px !important;
                border-radius: 50% !important;
                background: var(--danger, #B0392B) !important;
                border: 1.5px solid var(--bg, #F6F5F2) !important;
                pointer-events: none !important;
            }
            html[data-theme="dark"] .juf-app-notif-dot {
                background: #F0907F !important;
                border-color: #23262B !important;
            }
            /* Compact Theme Symbol Button (🌓) */
            body:not(.admin-shell-body) .juf-theme-toggle-mobile-v1 {
                order: 6 !important;
                width: 36px !important;
                height: 36px !important;
                border: 0 !important;
                background: transparent !important;
                color: var(--ink, #282E37) !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-radius: 10px !important;
                padding: 0 !important;
                box-shadow: none !important;
                flex-shrink: 0 !important;
            }
            html[data-theme="dark"] body:not(.admin-shell-body) .juf-theme-toggle-mobile-v1 {
                color: #ECE8E1 !important;
            }
            /* Suppress old dropdown on mobile so only Left Slide-Out Drawer opens */
            body:not(.admin-shell-body) #juf-primary-nav {
                display: none !important;
            }

            /* ------------------------------------------------------------------
               2. Screen 6: Full-Viewport Left Slide-Out Drawer (Outside <header>!)
               ------------------------------------------------------------------ */
            .juf-app-drawer-backdrop:not([hidden]) {
                display: block !important;
                position: fixed !important;
                top: 0 !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                width: 100vw !important;
                height: 100vh !important;
                height: 100dvh !important;
                background: rgba(40, 46, 55, 0.48) !important;
                z-index: 10035 !important;
            }
            .juf-app-left-drawer {
                display: flex !important;
                flex-direction: column !important;
                position: fixed !important;
                left: 0 !important;
                top: 0 !important;
                bottom: 0 !important;
                width: 276px !important;
                max-width: 82vw !important;
                height: 100vh !important;
                height: 100dvh !important;
                background: var(--card, #FFFFFF) !important;
                color: var(--ink, #282E37) !important;
                box-shadow: 6px 0 28px rgba(40, 46, 55, 0.22) !important;
                z-index: 10040 !important;
                transform: translateX(-104%) !important;
                transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
                overflow-y: auto !important;
                font-family: var(--font-ui-system, 'Noto Sans Bengali', system-ui, sans-serif) !important;
            }
            .juf-app-left-drawer.is-open {
                transform: translateX(0) !important;
            }
            html[data-theme="dark"] .juf-app-left-drawer {
                background: #2C3037 !important;
                color: #ECE8E1 !important;
                box-shadow: 6px 0 30px rgba(0, 0, 0, 0.5) !important;
            }
            .juf-app-drawer-head {
                padding: 18px 14px 14px !important;
                display: flex !important;
                align-items: center !important;
                gap: 11px !important;
                border-bottom: 1px solid var(--line, #D9D6D0) !important;
                text-decoration: none !important;
                color: inherit !important;
            }
            html[data-theme="dark"] .juf-app-drawer-head {
                border-bottom-color: #3A3F47 !important;
            }
            .juf-app-drawer-avatar {
                width: 42px !important;
                height: 42px !important;
                border-radius: 50% !important;
                background: var(--tint, #E6E9F5) !important;
                color: var(--cta, #3346A8) !important;
                display: grid !important;
                place-items: center !important;
                font-weight: 700 !important;
                font-size: 18px !important;
                flex-shrink: 0 !important;
            }
            html[data-theme="dark"] .juf-app-drawer-avatar {
                background: #2A3350 !important;
                color: #8FA4F2 !important;
            }
            .juf-app-drawer-section-label {
                padding: 10px 14px 2px !important;
                font-size: 11.5px !important;
                font-weight: 700 !important;
                letter-spacing: 0.02em !important;
                color: var(--muted, #5B6376) !important;
            }
            html[data-theme="dark"] .juf-app-drawer-section-label {
                color: #A09B94 !important;
            }
            .juf-app-drawer-link {
                display: flex !important;
                align-items: center !important;
                gap: 12px !important;
                min-height: 42px !important;
                padding: 0 14px !important;
                color: var(--ink, #282E37) !important;
                text-decoration: none !important;
                font-size: 14.5px !important;
                font-weight: 500 !important;
                background: transparent !important;
            }
            .juf-app-drawer-link:active,
            .juf-app-drawer-link.is-active {
                background: var(--tint, #E6E9F5) !important;
                color: var(--cta, #3346A8) !important;
                font-weight: 700 !important;
            }
            html[data-theme="dark"] .juf-app-drawer-link {
                color: #ECE8E1 !important;
            }
            html[data-theme="dark"] .juf-app-drawer-link:active,
            html[data-theme="dark"] .juf-app-drawer-link.is-active {
                background: #2A3350 !important;
                color: #8FA4F2 !important;
            }
            .juf-app-drawer-premium {
                margin: 6px 14px !important;
                padding: 11px 12px !important;
                border-radius: 12px !important;
                background: var(--tint, #E6E9F5) !important;
                border: 1px solid rgba(51, 70, 168, 0.18) !important;
                display: flex !important;
                flex-direction: column !important;
                gap: 2px !important;
                text-decoration: none !important;
            }
            html[data-theme="dark"] .juf-app-drawer-premium {
                background: #2A3350 !important;
                border-color: rgba(143, 164, 242, 0.24) !important;
            }
            .juf-app-drawer-foot {
                margin-top: auto !important;
                border-top: 1px solid var(--line, #D9D6D0) !important;
                padding: 6px 0 14px !important;
            }
            html[data-theme="dark"] .juf-app-drawer-foot {
                border-top-color: #3A3F47 !important;
            }
            .juf-app-dark-switch {
                width: 44px !important;
                height: 24px !important;
                border-radius: 12px !important;
                border: 1px solid var(--muted, #5B6376) !important;
                background: var(--surface, #ECEAE6) !important;
                position: relative !important;
                padding: 0 !important;
                cursor: pointer !important;
                transition: background-color 0.2s ease, border-color 0.2s ease !important;
            }
            .juf-app-dark-switch-knob {
                position: absolute !important;
                top: 2px !important;
                left: 2px !important;
                width: 18px !important;
                height: 18px !important;
                border-radius: 50% !important;
                background: var(--muted, #5B6376) !important;
                transition: transform 0.2s ease, background-color 0.2s ease !important;
            }
            .juf-app-dark-switch[aria-checked="true"] {
                background: var(--cta, #3346A8) !important;
                border-color: var(--cta, #3346A8) !important;
            }
            .juf-app-dark-switch[aria-checked="true"] .juf-app-dark-switch-knob {
                transform: translateX(20px) !important;
                background: #FFFFFF !important;
            }

            /* ------------------------------------------------------------------
               3. Slim 44px Uniform Symbol-Only Bottom Navigation Bar
                  (🏠 · 📚 · ⊕ · 📖 · 👤 — Zero Grey Box, Uniform 20x20 Symbols)
               ------------------------------------------------------------------ */
            body:not(.reader-page):not(.admin-shell-body) {
                padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)) !important;
            }
            body:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav {
                display: grid !important;
                position: fixed !important;
                left: 0 !important;
                right: 0 !important;
                bottom: 0 !important;
                z-index: 9990 !important;
                height: calc(44px + env(safe-area-inset-bottom, 0px)) !important;
                padding: 2px 8px calc(2px + env(safe-area-inset-bottom, 0px)) !important;
                grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
                align-items: center !important;
                background: rgba(246, 245, 242, 0.97) !important;
                background-color: rgba(246, 245, 242, 0.97) !important;
                backdrop-filter: blur(16px) saturate(170%) !important;
                -webkit-backdrop-filter: blur(16px) saturate(170%) !important;
                border-top: 1px solid var(--line, #D9D6D0) !important;
                box-shadow: 0 -2px 12px rgba(40, 46, 55, 0.05) !important;
                transform: translateY(0) !important;
                transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
            }
            body:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav.is-4-tabs {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }
            body.juf-yt-nav-hidden:not(.reader-page) .juf-yt-bottom-nav {
                transform: translateY(calc(100% + 10px)) !important;
                pointer-events: none !important;
            }
            html[data-theme="dark"] body:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav {
                background: rgba(35, 38, 43, 0.97) !important;
                border-top-color: #3A3F47 !important;
                box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.34) !important;
            }
            body:not(.reader-page) .juf-frontend-admin-dock {
                bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
                transition: bottom 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
            }
            body.juf-yt-nav-hidden:not(.reader-page) .juf-frontend-admin-dock {
                bottom: 12px !important;
            }

            /* Beat jufbook-deep-teal-accent.css:382 so outer tab NEVER gets a grey rectangle */
            html body .juf-yt-bottom-nav .juf-yt-tab,
            html body .juf-yt-bottom-nav .juf-yt-tab.is-active,
            html body .juf-yt-bottom-nav .juf-yt-tab[aria-current="page"],
            html[data-theme="dark"] body .juf-yt-bottom-nav .juf-yt-tab,
            html[data-theme="dark"] body .juf-yt-bottom-nav .juf-yt-tab.is-active {
                position: relative !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                height: 38px !important;
                background: transparent !important;
                background-color: transparent !important;
                border: 0 !important;
                box-shadow: none !important;
                color: var(--muted, #5B6376) !important;
                text-decoration: none !important;
                -webkit-tap-highlight-color: transparent !important;
                user-select: none !important;
            }
            html[data-theme="dark"] body .juf-yt-bottom-nav .juf-yt-tab {
                color: #A09B94 !important;
            }
            /* Hide visible text labels so the bar stays ultra-clean & symbol-only */
            .juf-yt-label,
            .juf-yt-write-label {
                position: absolute !important;
                width: 1px !important;
                height: 1px !important;
                padding: 0 !important;
                margin: -1px !important;
                overflow: hidden !important;
                clip: rect(0, 0, 0, 0) !important;
                white-space: nowrap !important;
                border: 0 !important;
            }
            .juf-yt-pill {
                width: 38px !important;
                height: 30px !important;
                border-radius: 10px !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                background: transparent !important;
                transition: background-color 0.16s ease, transform 0.14s ease !important;
            }
            .juf-yt-tab:active .juf-yt-pill {
                transform: scale(0.91) !important;
            }
            html body .juf-yt-bottom-nav .juf-yt-tab.is-active {
                color: var(--cta, #3346A8) !important;
            }
            html body .juf-yt-bottom-nav .juf-yt-tab.is-active .juf-yt-pill {
                background: var(--tint, #E6E9F5) !important;
            }
            html[data-theme="dark"] body .juf-yt-bottom-nav .juf-yt-tab.is-active {
                color: #8FA4F2 !important;
            }
            html[data-theme="dark"] body .juf-yt-bottom-nav .juf-yt-tab.is-active .juf-yt-pill {
                background: #2A3350 !important;
            }

            /* Uniform 20x20px Outlined & Filled Symbols across all 5 items */
            .juf-yt-tab svg {
                width: 20px !important;
                height: 20px !important;
                stroke: currentColor !important;
                fill: none !important;
                stroke-width: 1.95 !important;
                stroke-linecap: round !important;
                stroke-linejoin: round !important;
            }
            .juf-yt-tab .juf-yt-icon-filled {
                display: none !important;
                fill: currentColor !important;
                stroke: none !important;
            }
            .juf-yt-tab.is-active .juf-yt-icon-outline {
                display: none !important;
            }
            .juf-yt-tab.is-active .juf-yt-icon-filled {
                display: block !important;
            }

            /* ------------------------------------------------------------------
               4. Screen 2: Slim 36px Library Format Switcher (📚 বই | 🎧 অডিওবুক)
                  & Docked Mini Audiobook Player above 44px Bottom Nav
               ------------------------------------------------------------------ */
            .juf-app-library-switch-wrap {
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                margin: 6px auto 12px !important;
            }
            .juf-app-segmented-bar {
                display: inline-flex !important;
                width: 100% !important;
                max-width: 276px !important;
                padding: 4px !important;
                gap: 4px !important;
                border: 1px solid rgba(35, 42, 54, 0.08) !important;
                border-radius: 999px !important;
                background: #EAECEF !important;
                box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
            }
            html[data-theme="pdf"] .juf-app-segmented-bar {
                background: #DFD5C5 !important;
                border-color: rgba(108, 92, 72, 0.18) !important;
            }
            html[data-theme="dark"] .juf-app-segmented-bar {
                background: #1B1F27 !important;
                border-color: rgba(255, 255, 255, 0.08) !important;
            }
            .juf-app-segmented-tab {
                flex: 1 1 0% !important;
                min-height: 34px !important;
                padding: 0 14px !important;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: 6px !important;
                border-radius: 999px !important;
                border: 1px solid transparent !important;
                background: transparent !important;
                font-family: var(--font-ui-system, 'Plus Jakarta Sans', 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif) !important;
                font-size: 13.5px !important;
                font-weight: 600 !important;
                color: #525B6C !important;
                text-decoration: none !important;
                transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease !important;
            }
            .juf-app-segmented-tab svg {
                width: 15px !important;
                height: 15px !important;
                stroke: currentColor !important;
                fill: none !important;
                stroke-width: 2 !important;
            }
            .juf-app-segmented-tab.is-active {
                background: #FFFFFF !important;
                color: #1E3A8A !important;
                border-color: rgba(45, 75, 154, 0.14) !important;
                box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
                font-weight: 700 !important;
            }
            html[data-theme="pdf"] .juf-app-segmented-tab {
                color: #5C5042 !important;
            }
            html[data-theme="pdf"] .juf-app-segmented-tab.is-active {
                background: #FAF6F0 !important;
                color: #1F1912 !important;
                border-color: rgba(108, 92, 72, 0.22) !important;
                box-shadow: 0 2px 8px rgba(36, 30, 23, 0.09) !important;
            }
            html[data-theme="dark"] .juf-app-segmented-tab {
                color: #9CA3B5 !important;
            }
            html[data-theme="dark"] .juf-app-segmented-tab.is-active {
                background: #2C3340 !important;
                color: #F4F6FA !important;
                border-color: rgba(143, 164, 242, 0.24) !important;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
            }

            /* Docked Mini Audiobook Player right above the 44px Symbol Nav (bottom: 50px) */
            body.audiobook-page #juf-sticky-audio-player {
                position: fixed !important;
                left: 8px !important;
                right: 8px !important;
                bottom: calc(50px + env(safe-area-inset-bottom, 0px)) !important;
                z-index: 9980 !important;
                border-radius: 14px !important;
                background: #3B4256 !important;
                color: #F6F5F2 !important;
                box-shadow: 0 10px 24px rgba(40, 46, 55, 0.26) !important;
                border: 0 !important;
            }
        }

        /* ----------------------------------------------------------------------
           5. Screen 3: Build 566 Advanced Literary Writing Studio Modal
              (নতুন লেখা — সাহিত্য স্টুডিও)
              - Defeats global `:is(SEL)` border/background rules in jufbook-dark-final.css
              - Provides tactile editorial paper canvas, 9 literary category chips,
                1-tap Bengali punctuation & formatting toolbar, live reader preview,
                collapsible episodic series panel, and real-time progress bar.
           ---------------------------------------------------------------------- */
        .juf-app-write-modal:not([hidden]) {
            display: flex !important;
            flex-direction: column !important;
            position: fixed !important;
            inset: 0 !important;
            z-index: 10050 !important;
            background: var(--bg, #F6F5F2) !important;
            color: var(--ink, #282E37) !important;
            font-family: var(--font-ui-system, 'Noto Sans Bengali', system-ui, sans-serif) !important;
            overflow-y: auto !important;
            -webkit-overflow-scrolling: touch !important;
        }
        html[data-theme="dark"] .juf-app-write-modal:not([hidden]) {
            background: #1F2227 !important;
            color: #ECE8E1 !important;
        }
        .juf-write-sheet-bar {
            position: sticky !important;
            top: 0 !important;
            z-index: 15 !important;
            min-height: 54px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 8px !important;
            padding: 6px 12px !important;
            border-bottom: 1px solid var(--line, #D9D6D0) !important;
            background: rgba(255, 255, 255, 0.96) !important;
            backdrop-filter: blur(14px) !important;
            -webkit-backdrop-filter: blur(14px) !important;
        }
        html[data-theme="dark"] .juf-write-sheet-bar {
            background: rgba(44, 48, 55, 0.96) !important;
            border-bottom-color: #3A3F47 !important;
        }
        .juf-write-close-btn {
            width: 36px !important;
            height: 36px !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            background: var(--bg, #F6F5F2) !important;
            color: var(--ink, #282E37) !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 10px !important;
            cursor: pointer !important;
            padding: 0 !important;
            flex-shrink: 0 !important;
        }
        html[data-theme="dark"] .juf-write-close-btn {
            background: #23262B !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }
        .juf-studio-brand-meta {
            display: flex !important;
            flex-direction: column !important;
            min-width: 0 !important;
            flex: 1 1 auto !important;
            margin-left: 2px !important;
        }
        .juf-studio-brand-title {
            font-size: 15px !important;
            font-weight: 700 !important;
            line-height: 1.2 !important;
            color: var(--ink, #282E37) !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
        }
        html[data-theme="dark"] .juf-studio-brand-title {
            color: #ECE8E1 !important;
        }
        .juf-studio-brand-sub {
            font-size: 11px !important;
            color: var(--muted, #5B6376) !important;
            line-height: 1.25 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }
        html[data-theme="dark"] .juf-studio-brand-sub {
            color: #A09B94 !important;
        }
        .juf-studio-top-actions {
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
            flex-shrink: 0 !important;
        }
        .juf-write-draft-btn {
            min-height: 34px !important;
            padding: 0 12px !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            border-radius: 999px !important;
            background: var(--bg, #F6F5F2) !important;
            color: var(--ink, #282E37) !important;
            font: 600 12.5px/1 var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
            cursor: pointer !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
        }
        html[data-theme="dark"] .juf-write-draft-btn {
            background: #23262B !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }
        .juf-write-publish-btn {
            min-height: 34px !important;
            padding: 0 15px !important;
            border: 0 !important;
            border-radius: 999px !important;
            background: var(--cta, #3346A8) !important;
            color: var(--on-cta, #FFFFFF) !important;
            font: 700 13px/1 var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
            cursor: pointer !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 5px !important;
            box-shadow: 0 4px 12px rgba(51, 70, 168, 0.22) !important;
        }
        html[data-theme="dark"] .juf-write-publish-btn {
            background: #8FA4F2 !important;
            color: #14193A !important;
            box-shadow: 0 4px 12px rgba(143, 164, 242, 0.2) !important;
        }

        /* Studio Body Container */
        .juf-studio-shell {
            padding: 12px 14px 20px !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 10px !important;
            flex: 1 1 auto !important;
            max-width: 780px !important;
            width: 100% !important;
            margin: 0 auto !important;
        }

        /* Horizontal Category Chip Rail (All 9 JUFbook Literary Categories) */
        .juf-studio-type-rail {
            display: flex !important;
            align-items: center !important;
            gap: 6px !important;
            overflow-x: auto !important;
            padding: 2px 2px 4px !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
        }
        .juf-studio-type-rail::-webkit-scrollbar {
            display: none !important;
        }
        .juf-write-type-pill {
            flex: 0 0 auto !important;
            min-height: 33px !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 5px !important;
            padding: 0 12px !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            border-radius: 999px !important;
            font-size: 12.5px !important;
            font-weight: 600 !important;
            background: var(--card, #FFFFFF) !important;
            color: var(--muted, #5B6376) !important;
            cursor: pointer !important;
            transition: all 0.15s ease !important;
            white-space: nowrap !important;
        }
        .juf-write-type-pill .juf-pill-emo {
            font-size: 13px !important;
            line-height: 1 !important;
        }
        .juf-write-type-pill.is-active {
            background: var(--tint, #E6E9F5) !important;
            border-color: var(--cta, #3346A8) !important;
            color: var(--cta, #3346A8) !important;
            font-weight: 700 !important;
            box-shadow: 0 2px 8px rgba(51, 70, 168, 0.1) !important;
        }
        html[data-theme="dark"] .juf-write-type-pill {
            background: #2C3037 !important;
            border-color: #3A3F47 !important;
            color: #A09B94 !important;
        }
        html[data-theme="dark"] .juf-write-type-pill.is-active {
            background: #2A3350 !important;
            border-color: #8FA4F2 !important;
            color: #8FA4F2 !important;
        }

        /* Unified Literary Paper Canvas Card */
        .juf-studio-canvas-card {
            display: flex !important;
            flex-direction: column !important;
            flex: 1 1 auto !important;
            background: var(--card, #FFFFFF) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            border-radius: 16px !important;
            box-shadow: 0 8px 26px rgba(40, 46, 55, 0.05) !important;
            overflow: hidden !important;
            transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
        }
        .juf-studio-canvas-card:focus-within {
            border-color: var(--cta, #3346A8) !important;
            box-shadow: 0 10px 30px rgba(51, 70, 168, 0.09) !important;
        }
        html[data-theme="dark"] .juf-studio-canvas-card {
            background: #282C33 !important;
            border-color: #3A3F47 !important;
            box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28) !important;
        }
        html[data-theme="dark"] .juf-studio-canvas-card:focus-within {
            border-color: #8FA4F2 !important;
        }

        /* Quick Bengali Literary Formatting & Punctuation Toolbar */
        .juf-studio-toolbar {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 6px !important;
            padding: 7px 10px !important;
            background: var(--surface, #ECEAE6) !important;
            border-bottom: 1px solid var(--line, #D9D6D0) !important;
            overflow-x: auto !important;
            scrollbar-width: none !important;
        }
        .juf-studio-toolbar::-webkit-scrollbar {
            display: none !important;
        }
        html[data-theme="dark"] .juf-studio-toolbar {
            background: #23262B !important;
            border-bottom-color: #3A3F47 !important;
        }
        .juf-studio-tool-group {
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            flex-shrink: 0 !important;
        }
        .juf-studio-tool-btn {
            min-width: 30px !important;
            height: 28px !important;
            padding: 0 8px !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            border-radius: 7px !important;
            background: var(--card, #FFFFFF) !important;
            color: var(--ink, #282E37) !important;
            font: 600 12px/1 var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 4px !important;
            cursor: pointer !important;
            user-select: none !important;
            flex-shrink: 0 !important;
        }
        .juf-studio-tool-btn:active,
        .juf-studio-tool-btn.is-active {
            background: var(--tint, #E6E9F5) !important;
            border-color: var(--cta, #3346A8) !important;
            color: var(--cta, #3346A8) !important;
        }
        html[data-theme="dark"] .juf-studio-tool-btn {
            background: #2C3037 !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }
        html[data-theme="dark"] .juf-studio-tool-btn:active,
        html[data-theme="dark"] .juf-studio-tool-btn.is-active {
            background: #2A3350 !important;
            border-color: #8FA4F2 !important;
            color: #8FA4F2 !important;
        }

        /* High-Specificity Override to Defeat jufbook-dark-final.css Raw Input Box Rules */
        html body #juf-app-write-modal #juf-app-write-heading,
        html[data-theme="dark"] body #juf-app-write-modal #juf-app-write-heading,
        html[data-theme="pdf"] body #juf-app-write-modal #juf-app-write-heading {
            width: 100% !important;
            min-height: 54px !important;
            height: auto !important;
            padding: 14px 16px 12px !important;
            margin: 0 !important;
            border: 0 !important;
            border-bottom: 1px dashed var(--line, #D9D6D0) !important;
            border-radius: 0 !important;
            background: transparent !important;
            background-color: transparent !important;
            box-shadow: none !important;
            outline: none !important;
            font-family: var(--font-heading-editorial, 'Tiro Bangla', 'Noto Sans Bengali', serif) !important;
            font-size: 19.5px !important;
            font-weight: 700 !important;
            line-height: 1.35 !important;
            color: var(--ink, #282E37) !important;
        }
        html[data-theme="dark"] body #juf-app-write-modal #juf-app-write-heading {
            border-bottom-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }
        html body #juf-app-write-modal #juf-app-write-body,
        html[data-theme="dark"] body #juf-app-write-modal #juf-app-write-body,
        html[data-theme="pdf"] body #juf-app-write-modal #juf-app-write-body {
            width: 100% !important;
            min-height: 290px !important;
            flex: 1 1 auto !important;
            padding: 14px 16px 20px !important;
            margin: 0 !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            background-color: transparent !important;
            box-shadow: none !important;
            outline: none !important;
            resize: none !important;
            font-family: var(--font-reading, 'Noto Sans Bengali', sans-serif) !important;
            font-size: 16.5px;
            line-height: 1.9 !important;
            color: var(--ink, #282E37) !important;
        }
        html[data-theme="dark"] body #juf-app-write-modal #juf-app-write-body {
            color: #ECE8E1 !important;
        }
        html body #juf-app-write-modal #juf-app-write-heading::placeholder,
        html body #juf-app-write-modal #juf-app-write-body::placeholder {
            color: var(--muted, #5B6376) !important;
            opacity: 0.72 !important;
        }
        html[data-theme="dark"] body #juf-app-write-modal #juf-app-write-heading::placeholder,
        html[data-theme="dark"] body #juf-app-write-modal #juf-app-write-body::placeholder {
            color: #A09B94 !important;
        }

        /* Live Reader Preview Surface inside Modal */
        .juf-studio-preview-pane {
            padding: 18px 18px 24px !important;
            min-height: 320px !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 12px !important;
            background: var(--card, #FFFFFF) !important;
            color: var(--ink, #282E37) !important;
        }
        html[data-theme="dark"] .juf-studio-preview-pane {
            background: #282C33 !important;
            color: #ECE8E1 !important;
        }
        .juf-studio-preview-pane[hidden] {
            display: none !important;
        }
        .juf-studio-preview-badge {
            align-self: flex-start !important;
            padding: 4px 10px !important;
            border-radius: 999px !important;
            background: var(--tint, #E6E9F5) !important;
            color: var(--cta, #3346A8) !important;
            font-size: 11.5px !important;
            font-weight: 700 !important;
        }
        html[data-theme="dark"] .juf-studio-preview-badge {
            background: #2A3350 !important;
            color: #8FA4F2 !important;
        }
        .juf-studio-preview-heading {
            font-family: var(--font-heading-editorial, 'Tiro Bangla', 'Noto Sans Bengali', serif) !important;
            font-size: 21px !important;
            font-weight: 700 !important;
            line-height: 1.35 !important;
            margin: 0 !important;
        }
        .juf-studio-preview-body {
            font-family: var(--font-reading, 'Noto Sans Bengali', sans-serif) !important;
            font-size: 16.5px !important;
            line-height: 1.9 !important;
            white-space: pre-wrap !important;
            word-break: break-word !important;
        }

        /* Collapsible Episodic / Series Panel (ধারাবাহিক রচনা ও পর্ব) */
        .juf-studio-series-box {
            background: var(--card, #FFFFFF) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            border-radius: 12px !important;
            padding: 8px 12px !important;
        }
        html[data-theme="dark"] .juf-studio-series-box {
            background: #282C33 !important;
            border-color: #3A3F47 !important;
        }
        .juf-studio-series-box summary {
            list-style: none !important;
            cursor: pointer !important;
            font-size: 12.5px !important;
            font-weight: 600 !important;
            color: var(--ink, #282E37) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            user-select: none !important;
        }
        .juf-studio-series-box summary::-webkit-details-marker {
            display: none !important;
        }
        html[data-theme="dark"] .juf-studio-series-box summary {
            color: #ECE8E1 !important;
        }
        .juf-studio-series-grid {
            display: grid !important;
            grid-template-columns: 1fr 110px !important;
            gap: 8px !important;
            margin-top: 8px !important;
            padding-top: 8px !important;
            border-top: 1px solid var(--line, #D9D6D0) !important;
        }
        html[data-theme="dark"] .juf-studio-series-grid {
            border-top-color: #3A3F47 !important;
        }
        html body #juf-app-write-modal .juf-studio-series-input,
        html[data-theme="dark"] body #juf-app-write-modal .juf-studio-series-input {
            height: 36px !important;
            padding: 0 10px !important;
            border-radius: 8px !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            background: var(--bg, #F6F5F2) !important;
            color: var(--ink, #282E37) !important;
            font-size: 13px !important;
            outline: none !important;
            box-shadow: none !important;
        }
        html[data-theme="dark"] body #juf-app-write-modal .juf-studio-series-input {
            background: #1F2227 !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }

        /* Bottom Studio Metrics & Progress Bar Footer */
        .juf-studio-footer {
            background: var(--card, #FFFFFF) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            border-radius: 12px !important;
            padding: 8px 12px !important;
            display: flex !important;
            flex-direction: column !important;
            gap: 6px !important;
        }
        html[data-theme="dark"] .juf-studio-footer {
            background: #282C33 !important;
            border-color: #3A3F47 !important;
        }
        .juf-studio-progress-track {
            width: 100% !important;
            height: 4px !important;
            border-radius: 999px !important;
            background: var(--surface, #ECEAE6) !important;
            overflow: hidden !important;
        }
        html[data-theme="dark"] .juf-studio-progress-track {
            background: #1F2227 !important;
        }
        .juf-studio-progress-fill {
            height: 100% !important;
            width: 0% !important;
            border-radius: 999px !important;
            background: var(--cta, #3346A8) !important;
            transition: width 0.2s ease, background-color 0.2s ease !important;
        }
        .juf-studio-progress-fill.is-ready {
            background: var(--ok, #2E7A4F) !important;
        }
        .juf-studio-metrics-row {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 8px !important;
            flex-wrap: wrap !important;
            font-size: 11.5px !important;
            color: var(--muted, #5B6376) !important;
        }
        html[data-theme="dark"] .juf-studio-metrics-row {
            color: #A09B94 !important;
        }
        .juf-studio-metrics-pills {
            display: inline-flex !important;
            align-items: center !important;
            gap: 8px !important;
            flex-wrap: wrap !important;
        }
        .juf-studio-clear-btn {
            border: 0 !important;
            background: transparent !important;
            color: var(--danger, #B0392B) !important;
            font: 600 11.5px/1 var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
            cursor: pointer !important;
            padding: 2px 4px !important;
        }
        html[data-theme="dark"] .juf-studio-clear-btn {
            color: #F0907F !important;
        }


        /* ======================================================================
           Build 567 — Profile (`1000171418.jpg`) & Public Member Portfolio
           (`1793889577201.jpeg`) UI & Filter Fixes:
           1. Single-Row Horizontal Scrollable 8-Tab Bar (`#juf-profile-swipe-tabs`)
              on mobile and 8-column grid on desktop (replaces broken 6+2 grid).
           2. Authoritative `[hidden]` / `.is-filter-hidden` override for
              `.profile-continue-card` & `.profile-shelf-card-v25` so `শেষ করেছি`
              never shows unfinished `পড়া চলছে` books (`চোখের বালি ২%`).
           3. Distinct primary accent styling for `✍️ নতুন লেখা` button on profile.
           4. Replaces the deformed `border-radius: 999px` stadium box & hanging
              dots on `member.php` (`.juf-portfolio-stats-bar`) with clean,
              self-contained `.juf-portfolio-stat-chip` badges and compact banner.
           ====================================================================== */
        html body .site-main #library-home .profile-continue-card[hidden],
        html body .site-main #library-home .profile-continue-card.is-filter-hidden,
        html body .site-main #library-home .profile-shelf-card-v25[hidden],
        html body .site-main #library-home .profile-shelf-card-v25.is-filter-hidden {
            display: none !important;
        }

        /* 1. Single-Row 8-Tab Swipe Rail on Profile (`#juf-profile-swipe-tabs`) */
        html body .site-main #library-home .profile-hub-hero .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs,
        html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: stretch !important;
            justify-content: flex-start !important;
            gap: 2px !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scroll-snap-type: x proximity !important;
            -webkit-overflow-scrolling: touch !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
            padding: 4px 4px 0 !important;
            margin: 6px 0 0 !important;
            scroll-padding-inline: 8px !important;
            border-top: 1px solid var(--line, #D9D6D0) !important;
        }
        html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }
        html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
            flex: 0 0 auto !important;
            min-width: 62px !important;
            min-height: 46px !important;
            padding: 6px 8px 8px !important;
            display: inline-flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 3px !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            scroll-snap-align: start !important;
            border: 0 !important;
            border-bottom: 2.5px solid transparent !important;
            border-radius: 8px 8px 0 0 !important;
            background: transparent !important;
            color: var(--muted, #5B6376) !important;
            box-shadow: none !important;
        }
        html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] {
            color: var(--cta, #3346A8) !important;
            border-bottom-color: var(--cta, #3346A8) !important;
            background: rgba(51, 70, 168, 0.06) !important;
            font-weight: 700 !important;
        }
        html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] .reader-nav-icon,
        html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] .reader-nav-icon svg {
            color: var(--cta, #3346A8) !important;
        }
        html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs {
            border-top-color: #3A3F47 !important;
        }
        html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
            color: #A09B94 !important;
        }
        html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] {
            color: #8FA4F2 !important;
            border-bottom-color: #8FA4F2 !important;
            background: rgba(143, 164, 242, 0.1) !important;
        }
        html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] .reader-nav-icon,
        html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] .reader-nav-icon svg {
            color: #8FA4F2 !important;
        }
        @media (min-width: 900px) {
            html body .site-main #library-home .profile-hub-hero .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs,
            html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs {
                display: grid !important;
                grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
                overflow: visible !important;
                margin: 6px 0 0 !important;
            }
            html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
                flex-direction: row !important;
                gap: 6px !important;
                min-width: 0 !important;
                font-size: 12.5px !important;
                padding: 8px 6px !important;
            }
        }

        /* 2. Distinct Primary Accent CTA for `✍️ নতুন লেখা` on Profile Hero */
        html body .site-main #library-home .juf-ig-hero-actions .juf-ig-action-btn.is-primary-write-cta {
            background: var(--tint, #E6E9F5) !important;
            border-color: rgba(51, 70, 168, 0.3) !important;
            color: var(--cta, #3346A8) !important;
            font-weight: 700 !important;
        }
        html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-actions .juf-ig-action-btn.is-primary-write-cta {
            background: #2A3350 !important;
            border-color: rgba(143, 164, 242, 0.35) !important;
            color: #8FA4F2 !important;
        }

        /* 3. Public Writer Portfolio (`member.php` — `1793889577201.jpeg`) Fixes */
        html body .site-main .juf-public-social-profile .juf-public-social-cover {
            height: 92px !important;
            padding: 14px 18px !important;
            background: linear-gradient(135deg, #2C3243 0%, #3B4256 60%, #4A536B 100%) !important;
            display: flex !important;
            align-items: flex-start !important;
            justify-content: flex-end !important;
        }
        html body .site-main .juf-public-social-profile .juf-public-social-cover span {
            font-size: 12.5px !important;
            color: rgba(246, 245, 242, 0.9) !important;
            max-width: 72% !important;
            text-align: right !important;
            line-height: 1.35 !important;
        }
        html body .site-main .juf-public-social-profile .juf-public-social-identity {
            margin-top: -42px !important;
            gap: 10px !important;
        }
        html body .site-main .juf-public-social-profile .juf-public-social-avatar {
            width: 86px !important;
            height: 86px !important;
        }
        /* Replace oval 999px stadium box with clean chip grid */
        html body .site-main .juf-portfolio-stats-bar {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            gap: 6px !important;
            margin-top: 10px !important;
            padding: 10px !important;
            border-radius: 14px !important;
            background: var(--surface, #ECEAE6) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
        }
        html[data-theme="dark"] body .site-main .juf-portfolio-stats-bar {
            background: #2C3037 !important;
            border-color: #3A3F47 !important;
        }
        html body .site-main .juf-portfolio-stat-chip {
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            padding: 4px 10px !important;
            border-radius: 8px !important;
            background: var(--card, #FFFFFF) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            font-size: 12px !important;
            line-height: 1.3 !important;
            color: var(--ink, #282E37) !important;
        }
        html body .site-main .juf-portfolio-stat-chip.is-pick {
            background: var(--tint, #E6E9F5) !important;
            border-color: rgba(51, 70, 168, 0.25) !important;
            color: var(--cta, #3346A8) !important;
        }
        html[data-theme="dark"] body .site-main .juf-portfolio-stat-chip {
            background: #23262B !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }
        html[data-theme="dark"] body .site-main .juf-portfolio-stat-chip.is-pick {
            background: #2A3350 !important;
            border-color: rgba(143, 164, 242, 0.3) !important;
            color: #8FA4F2 !important;
        }
        html body .site-main .juf-member-portfolio-head {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 10px !important;
            flex-wrap: nowrap !important;
            margin-bottom: 14px !important;
        }
        html body .site-main .juf-member-portfolio-head .juf-public-social-section-title {
            font-size: clamp(17.5px, 4.5vw, 21px) !important;
            line-height: 1.25 !important;
            margin: 0 !important;
            min-width: 0 !important;
        }
        html body .site-main .juf-member-all-writings-pill {
            flex: 0 0 auto !important;
            display: inline-flex !important;
            align-items: center !important;
            min-height: 30px !important;
            padding: 0 11px !important;
            border-radius: 999px !important;
            background: var(--surface, #ECEAE6) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            color: var(--ink, #282E37) !important;
            font-size: 12px !important;
            font-weight: 600 !important;
            text-decoration: none !important;
            white-space: nowrap !important;
        }
        html[data-theme="dark"] body .site-main .juf-member-all-writings-pill {
            background: #2C3037 !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }


        /* ======================================================================
           Build 568 — My Posts (`1000171421.jpg`) Layout, Byline, Modnote &
           Always-Docked Bottom Bar Polish:
           1. Single-Row Horizontal Scrollable Status Pills (`.juf-user-writings-status-pills`)
              so `🔖 সংরক্ষিত` and `👥 অনুসৃত লেখক` never wrap onto a second orphan row.
           2. Clean 1-Line Category · Date Submeta + Dedicated `.juf-post-badges-inline`
              row for `📚 আমার কথা · পর্ব ১` and `✦ সম্পাদকের নির্বাচন` (zero hanging dots!).
           3. Refined Editorial Callout Strip for `.juf-social-post-modnote`
              (`✍️ সম্পাদকীয় নোট: বেশ ভাল`) instead of a giant grey input-looking box.
           4. Balanced Typography between `.juf-social-post-title` (18.5px bold) and
              `.juf-book-paragraph` (16.5px book reader prose) + compact footer buttons.
           5. Permanently Docked 44px Bottom Navigation Bar (never disappears on scroll).
           ====================================================================== */
        /* Ensure html/body never trap scroll events inside body due to overflow-x: hidden */
        html, body, html body.juf-page-profile {
            overflow-x: clip !important;
        }
        /* Synchronized Auto-Hide on Scroll Down (Both .juf-yt-nav-hidden and .juf-header-hidden) */
        body.juf-yt-nav-hidden:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav,
        body.juf-header-hidden:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav,
        html[data-theme="dark"] body.juf-yt-nav-hidden:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav,
        html[data-theme="dark"] body.juf-header-hidden:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav {
            transform: translate3d(0, calc(100% + 16px), 0) !important;
            pointer-events: none !important;
        }
        body.juf-yt-nav-hidden:not(.reader-page) .juf-frontend-admin-dock,
        body.juf-header-hidden:not(.reader-page) .juf-frontend-admin-dock {
            bottom: 12px !important;
        }
        body.juf-yt-nav-hidden.audiobook-page #juf-sticky-audio-player,
        body.juf-header-hidden.audiobook-page #juf-sticky-audio-player {
            bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
            transition: bottom 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
        }

        /* 1. Single-Row Scrollable Status Filter Pills (`সব পোস্ট` ... `🔖 সংরক্ষিত` `👥 অনুসৃত লেখক`) */
        html body .site-main #library-home .juf-user-writings-status-pills,
        html body .site-main #library-home section#my-posts .juf-user-writings-status-pills {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            gap: 6px !important;
            width: 100% !important;
            max-width: 100% !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scroll-snap-type: x proximity !important;
            -webkit-overflow-scrolling: touch !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
            padding: 2px 2px 4px !important;
        }
        html body .site-main #library-home .juf-user-writings-status-pills::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }
        html body .site-main #library-home .juf-user-writings-status-pills a {
            flex: 0 0 auto !important;
            min-height: 32px !important;
            height: 32px !important;
            padding: 0 12px !important;
            border-radius: 999px !important;
            font-size: 12px !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            scroll-snap-align: start !important;
        }

        /* 2. Clean Post Header Alignment & Dedicated `.juf-post-badges-inline` Row */
        html body .site-main .juf-social-post-card .juf-social-post-head,
        html body .site-main #library-home .juf-social-post-card .juf-social-post-head {
            align-items: flex-start !important;
            margin: 0 0 10px !important;
        }
        html body .site-main .juf-social-post-card .juf-social-post-author,
        html body .site-main #library-home .juf-social-post-card .juf-social-post-author {
            align-items: flex-start !important;
        }
        html body .site-main .juf-social-post-card .juf-social-MiniAvatar,
        html body .site-main #library-home .juf-social-post-card .juf-social-MiniAvatar {
            margin-top: 2px !important;
        }
        html body .site-main .juf-social-post-card .juf-social-post-submeta,
        html body .site-main #library-home .juf-social-post-card .juf-social-post-submeta {
            display: inline-flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            gap: 5px !important;
            font-size: 12.5px !important;
            line-height: 1.35 !important;
            color: var(--muted, #5B6376) !important;
        }
        html body .site-main .juf-post-badges-inline {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            gap: 6px !important;
            margin-top: 4px !important;
        }
        html body .site-main .juf-social-post-card .profile-status-chip {
            flex-shrink: 0 !important;
            margin-top: 2px !important;
            padding: 3px 9px !important;
            font-size: 11px !important;
            font-weight: 700 !important;
            border-radius: 999px !important;
            white-space: nowrap !important;
        }

        /* 3. Clear Hierarchy Between Post Title (`<h3>`) and Book Paragraphs (`<p>`) */
        html body .site-main #library-home section#my-posts .juf-social-post-card .juf-social-post-title,
        html body .site-main .juf-social-post-card .juf-social-post-title {
            font-family: var(--font-heading-editorial, 'Tiro Bangla', 'Kalpurush', serif) !important;
            font-size: 18.5px !important;
            font-weight: 700 !important;
            line-height: 1.38 !important;
            margin: 0 0 8px !important;
            color: var(--ink, #282E37) !important;
        }
        html body .site-main #library-home section#my-posts .juf-medium-book-prose,
        html body .site-main #library-home section#my-posts .juf-medium-book-prose p.juf-book-paragraph,
        html body .site-main .juf-public-social-profile .juf-medium-book-prose,
        html body .site-main .juf-public-social-profile .juf-medium-book-prose p.juf-book-paragraph {
            font-family: var(--font-reading, 'SolaimanLipi', 'Noto Sans Bengali', serif) !important;
            font-size: 16.5px !important;
            line-height: 1.82 !important;
            color: var(--ink, #282E37) !important;
        }
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-social-post-card .juf-social-post-title,
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-medium-book-prose,
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-medium-book-prose p.juf-book-paragraph {
            color: #ECE8E1 !important;
        }

        /* 4. Refined Editorial Callout Strip for `.juf-social-post-modnote` (Not a Grey Input Box!) */
        html body .site-main #library-home .juf-social-post-modnote,
        html body .site-main .juf-social-post-modnote {
            display: inline-flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            gap: 6px !important;
            width: auto !important;
            max-width: 100% !important;
            margin: 8px 0 2px !important;
            padding: 6px 12px !important;
            border: 0 !important;
            border-left: 3px solid var(--cta, #3346A8) !important;
            border-radius: 0 8px 8px 0 !important;
            background: var(--tint, #E6E9F5) !important;
            color: var(--ink, #282E37) !important;
            font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
            font-size: 12.5px !important;
            line-height: 1.45 !important;
        }
        html body .site-main .juf-social-post-modnote .juf-modnote-label {
            font-weight: 700 !important;
            color: var(--cta, #3346A8) !important;
        }
        html[data-theme="dark"] body .site-main #library-home .juf-social-post-modnote,
        html[data-theme="dark"] body .site-main .juf-social-post-modnote {
            background: #2A3350 !important;
            border-left-color: #8FA4F2 !important;
            color: #ECE8E1 !important;
        }
        html[data-theme="dark"] body .site-main .juf-social-post-modnote .juf-modnote-label {
            color: #8FA4F2 !important;
        }

        /* 5. Clean Compact Action Footer on Post Cards (`২ মি. পাঠ · ২৭০ শব্দ` + Action Pills) */
        html body .site-main #library-home section#my-posts .juf-social-post-foot.juf-medium-post-foot {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 8px !important;
            margin-top: 10px !important;
            padding-top: 10px !important;
            border-top: 1px dashed var(--line, #D9D6D0) !important;
        }
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-social-post-foot.juf-medium-post-foot {
            border-top-color: #3A3F47 !important;
        }
        html body .site-main #library-home section#my-posts .juf-medium-post-foot .juf-social-read-btn,
        html body .site-main #library-home section#my-posts .juf-social-post-delete button {
            min-height: 30px !important;
            height: 30px !important;
            padding: 0 11px !important;
            font-size: 12px !important;
            border-radius: 999px !important;
        }


        /* 6. Distinct Editorial Story Cards & Harmonious Search/Filter Toolbar in `#my-posts` & `writings.php` */
        html body .site-main #library-home section#my-posts .juf-social-feed,
        html body .site-main .juf-public-social-profile .juf-social-feed,
        html body .site-main .juf-public-writings-hub .juf-public-writings-grid {
            display: flex !important;
            flex-direction: column !important;
            gap: 14px !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
        }
        html body .site-main #library-home section#my-posts .juf-social-post-card,
        html body .site-main .juf-public-social-profile .juf-social-post-card,
        html body .site-main .juf-public-writings-hub .juf-social-post-card,
        html body .site-main .juf-public-writings-hub .juf-public-feed-card {
            background: var(--card, #FFFFFF) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            border-radius: 16px !important;
            padding: 18px 20px !important;
            margin: 0 !important;
            box-shadow: 0 4px 16px rgba(40, 46, 55, 0.04) !important;
        }
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-social-post-card,
        html[data-theme="dark"] body .site-main .juf-public-social-profile .juf-social-post-card,
        html[data-theme="dark"] body .site-main .juf-public-writings-hub .juf-social-post-card,
        html[data-theme="dark"] body .site-main .juf-public-writings-hub .juf-public-feed-card {
            background: #282C33 !important;
            border-color: #3A3F47 !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
        }
        /* Harmonize `#my-posts` Filter Dropdown + Search Input + Submit Button */
        html body .site-main #library-home section#my-posts .juf-modern-dropdown-trigger {
            background: var(--card, #FFFFFF) !important;
            color: var(--ink, #282E37) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            height: 36px !important;
            min-height: 36px !important;
            padding: 0 12px !important;
            font-size: 12.5px !important;
            box-shadow: none !important;
        }
        html body .site-main #library-home section#my-posts .juf-user-writings-search input[type="search"] {
            background: var(--card, #FFFFFF) !important;
            color: var(--ink, #282E37) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            height: 36px !important;
            padding: 0 13px !important;
            font-size: 12.5px !important;
            box-shadow: none !important;
        }
        html body .site-main #library-home section#my-posts .juf-user-writings-search button[type="submit"] {
            background: var(--cta, #3346A8) !important;
            color: #FFFFFF !important;
            border: 0 !important;
            height: 36px !important;
            padding: 0 14px !important;
            font-size: 12.5px !important;
            font-weight: 700 !important;
            border-radius: 999px !important;
        }
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-modern-dropdown-trigger,
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-user-writings-search input[type="search"] {
            background: #282C33 !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }
        html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-user-writings-search button[type="submit"] {
            background: #8FA4F2 !important;
            color: #14193A !important;
        }


        /* ======================================================================
           Build 570 — Writings Single Article Reader (`1000171484.jpg`) Fixes:
           1. Eliminates the right-edge white vertical gap next to the purple
              announcement bar and header by setting `.juf-fb-reaction-dock` to
              `display: none !important` when closed (instead of a 412px hidden
              flex row) and allowing `.juf-writing-author-portfolio-box` to wrap
              cleanly inside 100% viewport width on mobile.
           2. Replaces the clashing solid green (`#2E7A4F`) capsules on
              `✓ অনুসরণ করছেন` and `👏 ১` with refined literary palette pills.
           3. Sleek, compact breadcrumb & `✍️ নতুন লেখা লিখুন` button on `writings.php`.
           ====================================================================== */
        html body .site-main .juf-public-writings-hub,
        html body .site-main .juf-medium-reader-hub,
        html body .site-main .juf-writing-reader-sheet {
            max-width: 100% !important;
            overflow-x: clip !important;
            box-sizing: border-box !important;
        }
        @media (max-width: 900px) {
            html body .site-main {
                max-width: 100% !important;
                overflow-x: clip !important;
                box-sizing: border-box !important;
            }
        }

        /* 1. Prevent `.juf-fb-reaction-dock` from pushing page width > 100vw when closed */
        html body .site-main .juf-fb-reaction-dock,
        html body.juf-2d-minimal .juf-fb-reaction-dock {
            display: none !important;
            max-width: calc(100vw - 32px) !important;
            flex-wrap: wrap !important;
            box-sizing: border-box !important;
        }
        html body .site-main .juf-fb-react-cell:hover .juf-fb-reaction-dock,
        html body .site-main .juf-fb-react-cell:focus-within .juf-fb-reaction-dock,
        html body .site-main .juf-fb-react-cell.is-dock-open .juf-fb-reaction-dock,
        html body.juf-2d-minimal .juf-fb-react-cell:hover .juf-fb-reaction-dock,
        html body.juf-2d-minimal .juf-fb-react-cell:focus-within .juf-fb-reaction-dock,
        html body.juf-2d-minimal .juf-fb-react-cell.is-dock-open .juf-fb-reaction-dock {
            display: flex !important;
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) scale(1) !important;
            pointer-events: auto !important;
        }

        /* 2. Allow Author Portfolio Box at Bottom of `writings.php` to Wrap on Mobile */
        @media (max-width: 680px) {
            html body .site-main .juf-writing-author-portfolio-box,
            html body .site-main .juf-writing-author-portfolio-box.juf-fb-author-footer {
                flex-wrap: wrap !important;
                gap: 10px !important;
            }
            html body .site-main .juf-fb-author-footer-actions {
                width: 100% !important;
                display: flex !important;
                justify-content: flex-start !important;
            }
            html body .site-main .juf-medium-top-toolbar {
                gap: 8px !important;
                padding: 8px 0 !important;
            }
            html body .site-main .juf-medium-toolbar-left,
            html body .site-main .juf-medium-toolbar-right {
                gap: 8px !important;
            }
        }

        /* 3. Replace Clashing Solid Green (`#2E7A4F`) Pills on `✓ অনুসরণ করছেন` & `👏 ১` */
        html body .site-main .juf-medium-follow-link {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 3px 11px !important;
            border-radius: 999px !important;
            border: 1px solid rgba(51, 70, 168, 0.28) !important;
            background: var(--tint, #E6E9F5) !important;
            color: var(--cta, #3346A8) !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            line-height: 1.3 !important;
            text-decoration: none !important;
            box-shadow: none !important;
        }
        html body .site-main .juf-medium-follow-link.is-following,
        html body .site-main .juf-medium-follow-link[aria-pressed="true"],
        html body .juf-writer-follow-btn.is-following {
            background: var(--surface, #ECEAE6) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            color: var(--ink, #282E37) !important;
            font-weight: 600 !important;
            box-shadow: none !important;
        }
        html[data-theme="dark"] body .site-main .juf-medium-follow-link {
            background: #2A3350 !important;
            border-color: rgba(143, 164, 242, 0.35) !important;
            color: #8FA4F2 !important;
        }
        html[data-theme="dark"] body .site-main .juf-medium-follow-link.is-following,
        html[data-theme="dark"] body .site-main .juf-medium-follow-link[aria-pressed="true"],
        html[data-theme="dark"] body .juf-writer-follow-btn.is-following {
            background: #2C3037 !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }

        html body .site-main .juf-medium-tool-btn.is-active,
        html body .site-main .juf-medium-tool-btn.is-active:hover {
            background: var(--tint, #E6E9F5) !important;
            border: 1px solid rgba(51, 70, 168, 0.25) !important;
            color: var(--cta, #3346A8) !important;
            padding: 0 11px !important;
            border-radius: 999px !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }
        html[data-theme="dark"] body .site-main .juf-medium-tool-btn.is-active,
        html[data-theme="dark"] body .site-main .juf-medium-tool-btn.is-active:hover {
            background: #2A3350 !important;
            border-color: rgba(143, 164, 242, 0.35) !important;
            color: #8FA4F2 !important;
        }

        /* 4. Sleek Compact Breadcrumb & `✍️ নতুন লেখা লিখুন` Pill on `writings.php?post=ID` */
        html body.juf-2d-minimal a.juf-writing-reader-write-link,
        html body .site-main .juf-writing-reader-breadcrumb a.juf-writing-reader-write-link {
            min-height: 32px !important;
            padding: 0 12px !important;
            border-radius: 999px !important;
            background: var(--tint, #E6E9F5) !important;
            border: 1px solid rgba(51, 70, 168, 0.26) !important;
            color: var(--cta, #3346A8) !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            display: inline-flex !important;
            align-items: center !important;
            gap: 4px !important;
            box-shadow: none !important;
        }
        html[data-theme="dark"] body.juf-2d-minimal a.juf-writing-reader-write-link,
        html[data-theme="dark"] body .site-main .juf-writing-reader-breadcrumb a.juf-writing-reader-write-link {
            background: #2A3350 !important;
            border-color: rgba(143, 164, 242, 0.35) !important;
            color: #8FA4F2 !important;
        }


        /* ======================================================================
           Build 571 — Unified Profile-Style Arrangement on `member.php`
           (`1793941904968.jpeg`) & Honor Symbol Badge Next to Name:
           1. Arranges `member.php` using the exact `.juf-ig-profile-card` layout
              from `profile.php` (Avatar on left, Name + Honor Symbol + Action Pill
              on top right, 3 Inline Stats directly under Name, Bio + Meta,
              2 Equal Action Buttons, and Bottom Category Swipe Tab Bar).
           2. Places `.juf-writer-honor-symbol` as a crisp circular star/seal symbol
              right beside the author's name (`জুয়েল ✦`) with tap/hover tooltip
              instead of a bulky text pill.
           ====================================================================== */
        html body .site-main #library-home .juf-name-with-honor,
        html body .site-main .juf-author-name-inline-badge {
            display: inline-flex !important;
            align-items: center !important;
            gap: 6px !important;
            min-width: 0 !important;
            flex-wrap: nowrap !important;
        }
        html body .site-main #library-home .juf-name-with-honor h1 {
            margin: 0 !important;
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }
        .juf-writer-honor-symbol {
            position: relative !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 22px !important;
            height: 22px !important;
            min-width: 22px !important;
            min-height: 22px !important;
            border-radius: 50% !important;
            background: var(--gold-soft, #EFE8D8) !important;
            border: 1px solid var(--gold, #B79A68) !important;
            color: var(--gold-ink, #7A6130) !important;
            font-size: 12px !important;
            line-height: 1 !important;
            flex-shrink: 0 !important;
            cursor: pointer !important;
            box-shadow: 0 2px 6px rgba(183, 154, 104, 0.22) !important;
            outline: none !important;
        }
        .juf-writer-honor-symbol.is-inline-sm {
            width: 18px !important;
            height: 18px !important;
            min-width: 18px !important;
            min-height: 18px !important;
            font-size: 10px !important;
        }
        html[data-theme="dark"] .juf-writer-honor-symbol {
            background: rgba(183, 154, 104, 0.2) !important;
            border-color: #D4B475 !important;
            color: #F2D694 !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
        }
        /* Tap / Focus / Hover Tooltip showing the full honor title */
        .juf-writer-honor-symbol[data-honor-tooltip]:hover::after,
        .juf-writer-honor-symbol[data-honor-tooltip]:focus::after,
        .juf-writer-honor-symbol[data-honor-tooltip]:active::after {
            content: attr(data-honor-tooltip) !important;
            position: absolute !important;
            bottom: calc(100% + 6px) !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            z-index: 60 !important;
            padding: 4px 9px !important;
            border-radius: 7px !important;
            background: #282E37 !important;
            color: #FFFFFF !important;
            font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
            font-size: 11px !important;
            font-weight: 600 !important;
            white-space: nowrap !important;
            pointer-events: none !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
        }

        /* 3-Column Inline Stats on `member.php` Hero Card (Matching `profile.php`) */
        html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats.juf-member-inline-stats {
            display: inline-grid !important;
            grid-template-columns: repeat(3, minmax(64px, auto)) !important;
            gap: 14px !important;
            width: auto !important;
            max-width: 100% !important;
        }
        @media (max-width: 400px) {
            html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats.juf-member-inline-stats {
                gap: 10px !important;
            }
        }
        html body .site-main #library-home .juf-ig-settings-pill.juf-member-top-follow {
            cursor: pointer !important;
            background: var(--tint, #E6E9F5) !important;
            border-color: rgba(51, 70, 168, 0.28) !important;
            color: var(--cta, #3346A8) !important;
        }
        html body .site-main #library-home .juf-ig-settings-pill.juf-member-top-follow.is-following {
            background: var(--surface, #ECEAE6) !important;
            border-color: var(--line, #D9D6D0) !important;
            color: var(--ink, #282E37) !important;
        }
        html[data-theme="dark"] body .site-main #library-home .juf-ig-settings-pill.juf-member-top-follow {
            background: #2A3350 !important;
            border-color: rgba(143, 164, 242, 0.35) !important;
            color: #8FA4F2 !important;
        }
        html[data-theme="dark"] body .site-main #library-home .juf-ig-settings-pill.juf-member-top-follow.is-following {
            background: #2C3037 !important;
            border-color: #3A3F47 !important;
            color: #ECE8E1 !important;
        }


        /* ======================================================================
           Build 572 — Member Portfolio (`1793942763162.jpeg`) Grid Alignment,
           Full-Width Category Tabs, 1-Line Post Submeta & Instant Follow Fixes:
           1. Equal-width distribution (`flex: 1 1 0%`) on `.juf-ig-swipe-tabs > a`
              so 2–4 tabs on `member.php` fill 100% of the card width (no 30%
              blank gap on the right), while 8 tabs on `profile.php` still scroll.
           2. Balanced 3-Column Inline Stats Grid (`.juf-member-inline-stats`)
              directly under the writer's name.
           3. Removes the redundant outer gray wrapper on `#portfolio-writings`
              so post cards align flush with the top `.juf-ig-profile-card` hero.
           4. Keeps `অনুচ্ছেদ ও ভাবনা · ৩০ অক্টোবর ২০২৬` on 1 single line inside
              `.juf-social-post-submeta` without wrapping the date to a 3rd line.
           ====================================================================== */
        /* 1. Evenly Distribute Category Tabs Across 100% Card Width on `member.php` Only */
        html body .site-main #library-home.juf-member-profile-hub .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
            flex: 1 1 0% !important;
            min-width: max-content !important;
            padding: 7px 10px 8px !important;
            text-align: center !important;
        }
        html body .site-main #library-home.juf-member-profile-hub .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs {
            display: flex !important;
            width: 100% !important;
        }

        /* 2. Balanced 3-Column Inline Stats Grid Under Writer Name */
        html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats.juf-member-inline-stats {
            display: grid !important;
            grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
            gap: 8px !important;
            width: 100% !important;
            max-width: 340px !important;
        }
        html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats.juf-member-inline-stats > a {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            justify-content: center !important;
            padding: 2px 4px 2px 0 !important;
        }

        /* 3. Remove Outer Gray Wrapper on `#portfolio-writings` (Match `#my-posts` Flush Card Width) */
        html body .site-main #library-home section#portfolio-writings.profile-hub-section,
        html body .site-main #library-home section#portfolio-writings.juf-social-writings-section {
            padding: 4px 0 0 !important;
            margin: 0 !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }
        html body .site-main #library-home section#portfolio-writings .juf-writings-head-clean {
            margin: 0 0 10px !important;
            padding: 0 2px !important;
        }
        html body .site-main #library-home section#portfolio-writings .juf-social-feed {
            display: flex !important;
            flex-direction: column !important;
            gap: 12px !important;
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        html body .site-main #library-home section#portfolio-writings .juf-social-post-card {
            width: 100% !important;
            margin: 0 !important;
            padding: 16px !important;
            border-radius: 16px !important;
            background: var(--card, #FFFFFF) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            box-shadow: 0 4px 16px rgba(40, 46, 55, 0.04) !important;
            box-sizing: border-box !important;
        }
        html[data-theme="dark"] body .site-main #library-home section#portfolio-writings .juf-social-post-card {
            background: #282C33 !important;
            border-color: #3A3F47 !important;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22) !important;
        }

        /* 4. Keep `অনুচ্ছেদ ও ভাবনা · ৩০ অক্টোবর ২০২৬` on 1 Single Line in Post Cards */
        html body .site-main .juf-social-post-card .juf-social-post-submeta,
        html body .site-main #library-home .juf-social-post-card .juf-social-post-submeta,
        html body .site-main .juf-social-post-card .juf-social-post-submeta span,
        html body .site-main .juf-social-post-card .juf-social-post-submeta time,
        html body .site-main #library-home .juf-social-post-card .juf-social-post-submeta span,
        html body .site-main #library-home .juf-social-post-card .juf-social-post-submeta time {
            font-size: 12px !important;
            line-height: 1.35 !important;
            white-space: nowrap !important;
        }
        html body .site-main .juf-social-post-card .juf-social-post-submeta,
        html body .site-main #library-home .juf-social-post-card .juf-social-post-submeta {
            display: inline-flex !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            gap: 4px !important;
            max-width: 100% !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }


        /* ======================================================================
           Build 574 — 5 UX Laws Rollout & Exact Author/Book Category Box Parity
           Fixes narrow card width conflict (`1000171494.jpg`) by keeping
           `.juf-author-category-grid` & `.home-author-premium-rail` on unified
           Flexbox track geometry (`display: flex; flex-wrap: nowrap`) while
           matching Book Category Box dimensions (`98px` mobile height, `13px`
           radius, `10px` gap, 2 cards per mobile view; 3 on tablet `110px`;
           4 on laptop/desktop `118px`/`124px`).
           ====================================================================== */

        /* ----------------------------------------------------------------------
           1. JAKOB'S LAW: Exact Author Category Box Parity with Book Category Box
           ---------------------------------------------------------------------- */
        html body .juf-author-discovery-shared .juf-author-category-grid,
        html body.authors-page .juf-author-discovery-shared .juf-author-category-grid,
        html body .juf-author-discovery-shared .home-author-premium-rail,
        html body.juf-homepage .juf-author-discovery-shared .home-author-premium-rail {
            --author-cat-gap: 14px !important;
            --author-category-gap: 14px !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: stretch !important;
            gap: 14px !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 2px 0 4px !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scroll-snap-type: x mandatory !important;
            overscroll-behavior-inline: contain !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
            box-sizing: border-box !important;
        }
        html body .juf-author-discovery-shared .juf-author-category-grid::-webkit-scrollbar,
        html body .juf-author-discovery-shared .home-author-premium-rail::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
        html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
            position: relative !important;
            display: block !important;
            flex: 0 0 calc((100% - 42px) / 4) !important;
            width: calc((100% - 42px) / 4) !important;
            min-width: calc((100% - 42px) / 4) !important;
            max-width: calc((100% - 42px) / 4) !important;
            min-height: 124px !important;
            height: 124px !important;
            max-height: 124px !important;
            padding: 12px 14px !important;
            border-radius: 15px !important;
            overflow: hidden !important;
            scroll-snap-align: start !important;
            box-sizing: border-box !important;
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy,
        html body .juf-author-discovery-shared .home-author-discovery-copy {
            position: relative !important;
            z-index: 4 !important;
            width: calc(100% - 88px) !important;
            height: 100% !important;
            min-height: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            justify-content: flex-end !important;
            gap: 4px !important;
            padding: 0 !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-kicker,
        html body .juf-author-discovery-shared .home-author-discovery-kicker {
            display: inline-flex !important;
            align-items: center !important;
            width: fit-content !important;
            max-width: 100% !important;
            white-space: nowrap !important;
            margin: 0 !important;
            padding: 2px 8px !important;
            font-size: 10.5px !important;
            font-weight: 600 !important;
            line-height: 1.2 !important;
            border-radius: 999px !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy h3,
        html body .juf-author-discovery-shared .home-author-discovery-copy h3 {
            margin: 0 !important;
            font-family: var(--font-heading-editorial, 'Tiro Bangla', 'Kalpurush', serif) !important;
            font-size: 16.5px !important;
            font-weight: 600 !important;
            line-height: 1.22 !important;
            display: -webkit-box !important;
            -webkit-box-orient: vertical !important;
            -webkit-line-clamp: 2 !important;
            overflow: hidden !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy p,
        html body .juf-author-discovery-shared .home-author-discovery-copy p {
            display: none !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-visual,
        html body .juf-author-discovery-shared .home-author-discovery-visual {
            position: absolute !important;
            z-index: 2 !important;
            right: -2px !important;
            bottom: -2px !important;
            width: 98px !important;
            height: 118px !important;
            min-width: 0 !important;
            display: flex !important;
            align-items: flex-end !important;
            justify-content: flex-end !important;
            pointer-events: none !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-image,
        html body .juf-author-discovery-shared .home-author-discovery-image {
            position: relative !important;
            z-index: 3 !important;
            display: block !important;
            width: 98px !important;
            height: 118px !important;
            max-width: none !important;
            margin: 0 !important;
            object-fit: contain !important;
            object-position: center bottom !important;
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
        }

        /* Laptop (<= 1180px): 4 Columns, 118px Height (Exact Match to Books) */
        @media (max-width: 1180px) {
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
            html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
            html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
                flex: 0 0 calc((100% - 42px) / 4) !important;
                width: calc((100% - 42px) / 4) !important;
                min-width: calc((100% - 42px) / 4) !important;
                max-width: calc((100% - 42px) / 4) !important;
                min-height: 118px !important;
                height: 118px !important;
                max-height: 118px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-visual,
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-image,
            html body .juf-author-discovery-shared .home-author-discovery-visual,
            html body .juf-author-discovery-shared .home-author-discovery-image {
                width: 92px !important;
                height: 112px !important;
            }
        }

        /* Tablet (<= 880px): 3 Columns, 110px Height (Exact Match to Books) */
        @media (max-width: 880px) {
            html body .juf-author-discovery-shared .juf-author-category-grid,
            html body.authors-page .juf-author-discovery-shared .juf-author-category-grid,
            html body .juf-author-discovery-shared .home-author-premium-rail,
            html body.juf-homepage .juf-author-discovery-shared .home-author-premium-rail {
                --author-cat-gap: 12px !important;
                --author-category-gap: 12px !important;
                gap: 12px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
            html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
            html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
                flex: 0 0 calc((100% - 24px) / 3) !important;
                width: calc((100% - 24px) / 3) !important;
                min-width: calc((100% - 24px) / 3) !important;
                max-width: calc((100% - 24px) / 3) !important;
                min-height: 110px !important;
                height: 110px !important;
                max-height: 110px !important;
                border-radius: 14px !important;
                padding: 10px 12px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-visual,
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-image,
            html body .juf-author-discovery-shared .home-author-discovery-visual,
            html body .juf-author-discovery-shared .home-author-discovery-image {
                width: 86px !important;
                height: 104px !important;
            }
        }

        /* Mobile (<= 620px): 2 Columns, 98px Height, 13px Radius, 10px Gap (Exact Match to `books.php` in `1793943648413.jpeg`!) */
        @media (max-width: 620px) {
            html body .juf-author-discovery-shared .home-author-premium-rail,
            html body.juf-homepage .juf-author-discovery-shared .home-author-premium-rail,
            html body .juf-author-discovery-shared .juf-author-category-grid,
            html body.authors-page .juf-author-discovery-shared .juf-author-category-grid {
                --author-cat-gap: 10px !important;
                --author-category-gap: 10px !important;
                --juf-author-mobile-gap: 10px !important;
                display: flex !important;
                flex-direction: row !important;
                flex-wrap: nowrap !important;
                gap: 10px !important;
                padding: 2px 0 4px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
            html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
            html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
                flex: 0 0 calc((100% - 10px) / 2) !important;
                width: calc((100% - 10px) / 2) !important;
                min-width: calc((100% - 10px) / 2) !important;
                max-width: calc((100% - 10px) / 2) !important;
                min-height: 98px !important;
                height: 98px !important;
                max-height: 98px !important;
                padding: 9px 10px !important;
                border-radius: 13px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy,
            html body .juf-author-discovery-shared .home-author-discovery-copy {
                width: calc(100% - 64px) !important;
                height: 100% !important;
                min-height: 0 !important;
                justify-content: flex-end !important;
                gap: 3px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-kicker,
            html body .juf-author-discovery-shared .home-author-discovery-kicker {
                padding: 2px 6px !important;
                font-size: 9px !important;
                line-height: 1.15 !important;
                white-space: nowrap !important;
                width: fit-content !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy h3,
            html body .juf-author-discovery-shared .home-author-discovery-copy h3 {
                font-size: 13.8px !important;
                font-weight: 600 !important;
                line-height: 1.18 !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-visual,
            html body .juf-author-discovery-shared .home-author-discovery-visual {
                right: -2px !important;
                bottom: -2px !important;
                width: 74px !important;
                height: 92px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-image,
            html body .juf-author-discovery-shared .home-author-discovery-image {
                width: 74px !important;
                height: 92px !important;
                margin: 0 !important;
            }
        }

        /* ----------------------------------------------------------------------
           2. HICK'S LAW: Single-Row Compact Alphabet Rail on `authors.php`
              (Replaces the 19-button 3-row box wall in `1000171491.jpg`)
           ---------------------------------------------------------------------- */
        html body.authors-page nav.juf-author-alphabet {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 8px !important;
            padding: 6px 8px !important;
            margin: 0 0 14px !important;
            border-radius: 12px !important;
            background: var(--surface, #ECEAE6) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            box-shadow: none !important;
            overflow: hidden !important;
        }
        html[data-theme="dark"] body.authors-page nav.juf-author-alphabet {
            background: #282C33 !important;
            border-color: #3A3F47 !important;
        }
        html body.authors-page .juf-author-alphabet-tabs {
            display: inline-flex !important;
            align-items: center !important;
            gap: 2px !important;
            padding: 2px !important;
            margin: 0 !important;
            border-radius: 8px !important;
            background: var(--bg, #F6F5F2) !important;
            border: 1px solid var(--line, #D9D6D0) !important;
            flex: 0 0 auto !important;
            width: auto !important;
        }
        html[data-theme="dark"] body.authors-page .juf-author-alphabet-tabs {
            background: #1F2227 !important;
            border-color: #3A3F47 !important;
        }
        html body.authors-page .juf-author-alphabet-tabs button {
            min-height: 28px !important;
            height: 28px !important;
            padding: 0 9px !important;
            border-radius: 6px !important;
            font-size: 11.5px !important;
            font-weight: 600 !important;
            flex: 0 0 auto !important;
        }
        html body.authors-page .juf-author-alphabet-group {
            display: none !important;
            flex: 1 1 auto !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        html body.authors-page .juf-author-alphabet-group.is-alpha-active {
            display: flex !important;
            align-items: center !important;
        }
        html body.authors-page .juf-author-alphabet-label {
            display: none !important;
        }
        html body.authors-page .juf-author-alphabet-links {
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            gap: 5px !important;
            width: 100% !important;
            overflow-x: auto !important;
            overflow-y: hidden !important;
            scroll-snap-type: x proximity !important;
            -webkit-overflow-scrolling: touch !important;
            scrollbar-width: none !important;
            -ms-overflow-style: none !important;
            padding: 1px 2px !important;
        }
        html body.authors-page .juf-author-alphabet-links::-webkit-scrollbar {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }
        html body.authors-page .juf-author-alphabet a {
            flex: 0 0 auto !important;
            min-width: 32px !important;
            height: 32px !important;
            padding: 0 9px !important;
            border-radius: 8px !important;
            font-size: 12.5px !important;
            font-weight: 600 !important;
            scroll-snap-align: start !important;
        }

        /* ----------------------------------------------------------------------
           3. VON RESTORFF EFFECT & JAKOB'S LAW: Consistent Section Headers &
              High-Contrast Active States Across `books.php` & `authors.php`
           ---------------------------------------------------------------------- */
        html body.authors-page .juf-author-alphabet a.active,
        html body.authors-page .juf-author-alphabet a[aria-current="true"],
        html body .juf-author-discovery-shared .home-author-discovery-card.is-active {
            background: var(--cta, #3346A8) !important;
            border-color: var(--cta, #3346A8) !important;
            color: #FFFFFF !important;
            box-shadow: 0 3px 10px rgba(51, 70, 168, 0.22) !important;
        }
        html[data-theme="dark"] body.authors-page .juf-author-alphabet a.active,
        html[data-theme="dark"] body.authors-page .juf-author-alphabet a[aria-current="true"] {
            background: #8FA4F2 !important;
            border-color: #8FA4F2 !important;
            color: #14193A !important;
        }
        /* Match `সকল লেখক ও ব্যক্তিত্ব` + `৩৬ জন লেখক ও ব্যক্তিত্ব` header to `সব বই` + `১৪৭টি ফলাফল` on `books.php`! */
        @media (max-width: 620px) {
            html body.authors-page .juf-author-directory-heading {
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
                gap: 8px !important;
                margin-bottom: 10px !important;
            }
            html body.authors-page .juf-author-directory-heading > div {
                display: flex !important;
                align-items: baseline !important;
                justify-content: space-between !important;
                gap: 8px !important;
                width: 100% !important;
                flex-wrap: nowrap !important;
            }
            html body.authors-page .juf-author-directory-heading .page-section-title {
                font-size: clamp(18.5px, 5vw, 20.5px) !important;
                line-height: 1.25 !important;
                margin: 0 !important;
                white-space: nowrap !important;
            }
            html body.authors-page .juf-author-directory-summary {
                margin: 0 !important;
                padding: 0 !important;
                border: 0 !important;
                background: transparent !important;
                font-size: 11.75px !important;
                font-weight: 500 !important;
                color: var(--muted, #5B6376) !important;
                box-shadow: none !important;
                white-space: nowrap !important;
            }
            html body.authors-page .juf-author-discovery-head-shared .section-view-all {
                min-height: 32px !important;
                padding: 0 12px !important;
                border-radius: 999px !important;
                background: var(--surface, #ECEAE6) !important;
                border: 1px solid var(--line, #D9D6D0) !important;
                color: var(--ink, #282E37) !important;
                font-size: 12px !important;
                font-weight: 600 !important;
            }
        }

        /* ----------------------------------------------------------------------
           4. ZEIGARNIK EFFECT: Vivid Progress Fill on Unfinished Reading & Writing
           ---------------------------------------------------------------------- */
        html body .profile-progress i,
        html body .juf-continue-progress i,
        html body #writing-reader-progress-fill {
            background: linear-gradient(90deg, var(--cta, #3346A8), #4F67D8) !important;
        }
        html[data-theme="dark"] body .profile-progress i,
        html[data-theme="dark"] body .juf-continue-progress i,
        html[data-theme="dark"] body #writing-reader-progress-fill {
            background: linear-gradient(90deg, #8FA4F2, #AABAF7) !important;
        }

        /* ======================================================================
           Build 575 — Minimal Editorial Declutter & Admin-Removable Copy System
           Fixes visual heaviness & unremovable hardcoded texts (`1793958196887.jpeg`):
           1. Author Hero Card (`authors.php`):
              - Fixes top clipping on 2-line Bengali author names (`বিভূতিভূষণ বন্দ্যোপাধ্যায়`)
              - Hides redundant hardcoded `.juf-author-hero-kicker` (`সাহিত্যিক জীবন`) and
                repetitive `.hero-slide-desc` auto-bio so the card breathes cleanly.
           2. "মনীষী" Category Section:
              - Hides redundant `সব জীবনী দেখুন` pill on `authors.php`
              - Removes heavy pill border around `২০ জন` / `১৪ জন` kicker inside cards
              - Hides decorative background rings (`.juf-author-category-motif`)
           3. Removes Redundant `সকল লেখক ও ব্যক্তিত্ব · ৩৬ জন লেখক ও ব্যক্তিত্ব` Bar:
              - Hides `.juf-author-directory-heading` above the search bar so Search +
                Alphabet Rail sit directly below Category Cards (matching `books.php`).
           4. Unboxes Alphabet Rail (`nav.juf-author-alphabet`):
              - Removes outer container box border/background so it doesn't stack a
                second heavy bordered box directly under the Search Bar.
           5. Cleans Up Author Directory Cards & Missing-Photo Placeholders (`J`, `অ`):
              - Strips busy geometric circles, skewed ovals, lines, book icons, and
                `JUF` watermarks from `.juf-author-literary-placeholder`, leaving a
                clean centered monogram initial.
              - Hides redundant English transliteration line (`.juf-author-directory-en`)
                and unboxes `.juf-author-directory-category` so each author card has
                only 2 clean lines below the portrait (matching `books.php`).
           ====================================================================== */

        /* 1. Author Hero Card: Fix top name clipping & remove repetitive text layers */
        html body.authors-page .juf-authors-cinematic-hero .hero-slide-item {
            padding-top: 20px !important;
            padding-bottom: 20px !important;
            align-items: center !important;
        }
        html body.authors-page .juf-authors-cinematic-hero .hero-slide-info {
            padding-top: 4px !important;
            justify-content: center !important;
            gap: 6px !important;
        }
        html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-kicker,
        html body.authors-page .juf-authors-cinematic-hero .hero-slide-desc {
            display: none !important;
        }
        html body.authors-page .juf-authors-cinematic-hero .hero-slide-title {
            margin: 0 !important;
            padding-top: 2px !important;
            line-height: 1.24 !important;
            overflow: visible !important;
        }
        html body.authors-page .juf-authors-cinematic-hero .hero-slide-author {
            margin: 2px 0 8px !important;
            font-size: 13px !important;
            color: var(--muted, #5B6376) !important;
        }
        @media (max-width: 620px) {
            html body.authors-page .juf-authors-cinematic-hero .hero-slide-author strong {
                display: none !important;
            }
            html body.authors-page .juf-authors-cinematic-hero .hero-slide-author {
                font-size: 0 !important;
            }
            html body.authors-page .juf-authors-cinematic-hero .hero-slide-author span {
                font-size: 13px !important;
                font-weight: 500 !important;
                color: var(--muted, #5B6376) !important;
            }
        }

        /* 2. "মনীষী" Section: Hide redundant "সব জীবনী দেখুন" button on authors.php & lighten card kicker */
        html body.authors-page .juf-author-discovery-head-shared .section-view-all {
            display: none !important;
        }
        html body .juf-author-discovery-shared .juf-author-category-motif,
        html body .juf-author-discovery-shared .juf-home-author-category-motif,
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual::before,
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual::after {
            display: none !important;
            content: none !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy,
        html body .juf-author-discovery-shared .home-author-discovery-copy {
            justify-content: center !important;
            gap: 2px !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-kicker,
        html body .juf-author-discovery-shared .home-author-discovery-kicker {
            order: 2 !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
            padding: 0 !important;
            margin: 0 !important;
            font-size: 11.5px !important;
            font-weight: 500 !important;
            color: var(--muted, #5B6376) !important;
            border-radius: 0 !important;
        }
        html[data-theme="dark"] body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-kicker,
        html[data-theme="dark"] body .juf-author-discovery-shared .home-author-discovery-kicker {
            background: transparent !important;
            border: 0 !important;
            color: #A09B94 !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy h3,
        html body .juf-author-discovery-shared .home-author-discovery-copy h3 {
            order: 1 !important;
        }

        /* 3. Hide redundant hardcoded "সকল লেখক ও ব্যক্তিত্ব · ৩৬ জন লেখক ও ব্যক্তিত্ব" header above Search Bar */
        html body.authors-page .juf-author-directory-heading {
            display: none !important;
        }
        html body.authors-page #all-authors.juf-author-discovery {
            padding-top: 6px !important;
            margin-top: 0 !important;
        }

        /* 4. Unbox Alphabet Rail (`nav.juf-author-alphabet`) for lighter visual rhythm */
        html body.authors-page nav.juf-author-alphabet {
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
            padding: 2px 0 !important;
            margin: 10px 0 18px !important;
            border-radius: 0 !important;
        }
        html[data-theme="dark"] body.authors-page nav.juf-author-alphabet {
            background: transparent !important;
            border: 0 !important;
        }

        /* 5. Clean up Author Directory Cards & Missing-Photo Placeholder (`J`, `অ` in `1793958196887.jpeg`) */
        html body .juf-author-literary-placeholder::before,
        html body .juf-author-literary-placeholder::after,
        html body .juf-author-literary-rule,
        html body .juf-author-literary-book,
        html body .juf-author-literary-mark {
            display: none !important;
            content: none !important;
        }
        html body .juf-author-literary-placeholder,
        html body.authors-page .juf-author-directory-avatar.is-photo-missing .juf-author-literary-placeholder {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            background: var(--surface, #ECEAE6) !important;
        }
        html[data-theme="dark"] body .juf-author-literary-placeholder,
        html[data-theme="dark"] body.authors-page .juf-author-directory-avatar.is-photo-missing .juf-author-literary-placeholder {
            background: #262A32 !important;
        }
        html body .juf-author-literary-initial,
        html body.authors-page .juf-author-literary-initial {
            position: static !important;
            inset: auto !important;
            margin: 0 !important;
            font-size: clamp(32px, 6vw, 44px) !important;
            font-weight: 600 !important;
            color: var(--muted, #5B6376) !important;
            opacity: 0.55 !important;
        }
        /* Keep Author Directory Cards to 2 clean lines (Bengali Name + Subtle Role), matching Books grid */
        html body.authors-page .juf-author-directory-en {
            display: none !important;
        }
        html body.authors-page .juf-author-directory-category {
            margin: 2px auto 0 !important;
            padding: 0 !important;
            min-height: 0 !important;
            border: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            color: var(--muted, #5B6376) !important;
            font-size: 12px !important;
            font-weight: 400 !important;
        }
        html[data-theme="dark"] body.authors-page .juf-author-directory-category {
            background: transparent !important;
            border: 0 !important;
            color: #A09B94 !important;
        }

        /* 6. Cross-Page Declutter (`books.php`, `writings.php`, `index.php`) */
        @media (max-width: 620px) {
            html body.juf-books-page .juf-book-discovery-reset,
            html body.juf-page-books .juf-book-discovery-reset {
                display: none !important;
            }
            html body .juf-public-writings-hero-copy .juf-public-writings-kicker,
            html body .juf-public-writings-hero-copy > p {
                display: none !important;
            }
            html body .juf-public-writings-hero {
                padding: 14px 16px !important;
                margin-bottom: 14px !important;
            }
            html body.juf-homepage #authors .author-circle-unit .home-author-bio,
            html body.juf-homepage #authors .author-circle-unit > small {
                display: none !important;
            }
        }

        /* ======================================================================
           Build 576 — Harmonious Editorial Spacing & Anti-Cramping Polish
           Fixes cramped vertical & horizontal spacing (`1793959445549.jpeg` &
           `1793959484476.jpeg`):
           - Hero Card -> Category Boxes: 22px mobile / 32px desktop
           - Category Boxes internal padding: 12px 14px, 5px title-to-count gap,
             14px horizontal gap between the 2 mobile cards (matching Author Grid!)
           - Category Boxes -> Search Bar: 22px mobile / 28px tablet / 32px desktop
             (replaces the cramped 6px gap in `1793959445549.jpeg`)
           - Search Bar -> Alphabet Rail: 16px top margin, 12px gap after `বাংলা | EN`,
             8px gap between letter pills (`36x36px` touch targets)
           - Alphabet Rail -> Author Directory Grid: 24px bottom margin (30px desktop)
           - Author Directory Grid: 28px vertical row gap & 14px horizontal column gap
             on mobile so rows and cards never crowd each other.
           ====================================================================== */

        /* Zone 1: Compact, vertically-centered Hero Card with clean bottom margin */
        html body.authors-page .juf-authors-cinematic-hero {
            margin: 14px 0 28px !important;
        }
        @media (max-width: 700px) {
            html body.authors-page .juf-authors-cinematic-hero {
                height: 216px !important;
                min-height: 216px !important;
                max-height: 216px !important;
                margin: 10px 0 22px !important;
                border-radius: 18px !important;
            }
            html body.authors-page .juf-authors-cinematic-hero .hero-slide-item {
                height: 100% !important;
                min-height: 216px !important;
                padding: 18px 16px !important;
                grid-template-columns: minmax(0, 1fr) 128px !important;
                gap: 14px !important;
                align-items: center !important;
                align-content: center !important;
            }
            html body.authors-page .juf-author-hero-visual,
            html body.authors-page .juf-author-hero-portrait-card {
                width: 128px !important;
                min-width: 128px !important;
                height: 172px !important;
                max-height: 172px !important;
            }
            html body.authors-page .juf-authors-cinematic-hero .hero-slide-title {
                font-size: clamp(22px, 6.2vw, 26px) !important;
                line-height: 1.22 !important;
                margin: 0 0 4px !important;
            }
            html body.authors-page .juf-authors-cinematic-hero .hero-slide-author {
                margin: 0 0 10px !important;
            }
            html body.authors-page .juf-authors-cinematic-hero .hero-slide-actions .btn-hero-cinematic-primary {
                min-height: 38px !important;
                padding: 7px 14px !important;
                font-size: 12px !important;
                border-radius: 10px !important;
            }
        }

        /* Zone 2: Category Boxes (`#author-categories`) spacing & internal breathing room */
        html body.authors-page #author-categories.juf-author-category-discovery {
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            margin-top: 0 !important;
            margin-bottom: 30px !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
        html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
            padding: 14px 16px !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy,
        html body .juf-author-discovery-shared .home-author-discovery-copy {
            justify-content: center !important;
            gap: 6px !important;
        }
        @media (max-width: 620px) {
            html body.authors-page #author-categories.juf-author-category-discovery {
                padding-top: 0 !important;
                padding-bottom: 0 !important;
                margin-top: 0 !important;
                margin-bottom: 22px !important;
            }
            html body .juf-author-discovery-shared .home-author-premium-rail,
            html body.juf-homepage .juf-author-discovery-shared .home-author-premium-rail,
            html body .juf-author-discovery-shared .juf-author-category-grid,
            html body.authors-page .juf-author-discovery-shared .juf-author-category-grid {
                --author-cat-gap: 14px !important;
                --author-category-gap: 14px !important;
                --juf-author-mobile-gap: 14px !important;
                gap: 14px !important;
                padding: 2px 0 4px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
            html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
            html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
                flex: 0 0 calc((100% - 14px) / 2) !important;
                width: calc((100% - 14px) / 2) !important;
                min-width: calc((100% - 14px) / 2) !important;
                max-width: calc((100% - 14px) / 2) !important;
                min-height: 102px !important;
                height: 102px !important;
                max-height: 102px !important;
                padding: 12px 14px !important;
                border-radius: 14px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy,
            html body .juf-author-discovery-shared .home-author-discovery-copy {
                width: calc(100% - 62px) !important;
                gap: 5px !important;
            }
        }

        /* Zone 3: Search Bar & Alphabet Rail spacing (no more 6px/8px cramping!) */
        html body.authors-page #all-authors.juf-author-discovery {
            padding-top: 0 !important;
            margin-top: 0 !important;
        }
        html body.authors-page .juf-author-filter-panel {
            margin: 0 0 16px !important;
            padding: 0 !important;
        }
        html body.authors-page .juf-author-directory-tools {
            gap: 10px !important;
            margin: 0 !important;
        }
        html body.authors-page nav.juf-author-alphabet {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            gap: 12px !important;
            padding: 2px 0 !important;
            margin: 16px 0 26px !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }
        html body.authors-page .juf-author-alphabet-tabs {
            gap: 3px !important;
            padding: 3px !important;
            border-radius: 10px !important;
        }
        html body.authors-page .juf-author-alphabet-tabs button {
            min-height: 30px !important;
            height: 30px !important;
            padding: 0 10px !important;
            border-radius: 7px !important;
            font-size: 12px !important;
        }
        html body.authors-page .juf-author-alphabet-links {
            gap: 8px !important;
            padding: 2px 1px !important;
        }
        html body.authors-page .juf-author-alphabet a {
            min-width: 36px !important;
            height: 36px !important;
            padding: 0 11px !important;
            border-radius: 10px !important;
            font-size: 13px !important;
        }

        /* Zone 4: Author Directory Cards Grid spacing & internal rhythm */
        html body.authors-page .juf-authors-grid-5 {
            padding-top: 2px !important;
            gap: 32px 20px !important;
        }
        html body.authors-page .juf-author-directory-avatar,
        html body.authors-page .juf-author-directory-avatar.has-photo,
        html body.authors-page .juf-author-directory-avatar.is-photo-missing,
        html body.authors-page .juf-author-directory-card.has-photo .juf-author-directory-avatar {
            margin: 0 auto 12px !important;
            border-radius: 12px !important;
        }
        html body.authors-page .juf-author-directory-category {
            margin: 4px auto 0 !important;
            line-height: 1.35 !important;
        }
        @media (max-width: 640px) {
            html body.authors-page .juf-authors-grid-5 {
                gap: 28px 14px !important;
            }
            html body.authors-page .juf-author-directory-avatar,
            html body.authors-page .juf-author-directory-avatar.has-photo,
            html body.authors-page .juf-author-directory-avatar.is-photo-missing,
            html body.authors-page .juf-author-directory-card.has-photo .juf-author-directory-avatar {
                margin: 0 auto 11px !important;
                border-radius: 12px !important;
            }
        }

        /* ==========================================================================
           Build 578 — Home Page (`index.php`) Mobile Hero Size Parity with Bio Page (`authors.php`)
           Matches the Home page hero (`#hero-stage` / `.juf-homepage .hero-cinematic-stage`)
           to the exact mobile dimensions, outer container width, border-radius, margins,
           and vertical balance of the Bio page hero (`.authors-page .juf-authors-cinematic-hero`):
           - Outer `.site-main.container` horizontal padding: 12px (matching `authors.php`)
           - Hero stage & slider height: 216px (`min-height: 216px; max-height: 216px`)
           - Hero stage margin: `10px 0 22px` and `border-radius: 18px`
           - Slide item padding: symmetric `16px 16px` (eliminating the legacy `58px`/`64px`
             bottom padding that left a large empty vertical void above/below the book)
           - Book cover (`2:3` aspect ratio): `106px × 160px` (`98px × 147px` on <=390px)
             vertically centered inside the 216px card.
           ========================================================================== */
        @media (max-width: 720px) {
            html body.juf-homepage .site-main.container,
            html body.juf-homepage main.site-main.container {
                padding-left: 12px !important;
                padding-right: 12px !important;
            }

            html body.juf-homepage .hero-cinematic-stage,
            html body.juf-homepage #hero-stage,
            html body.juf-homepage .site-main > section.hero-cinematic-stage,
            html body.juf-homepage .site-main > section#hero-stage {
                height: 216px !important;
                min-height: 216px !important;
                max-height: 216px !important;
                margin: 10px 0 22px !important;
                padding: 0 !important;
                border-radius: 18px !important;
                overflow: hidden !important;
                box-sizing: border-box !important;
            }

            html body.juf-homepage .hero-cinematic-slider,
            html body.juf-homepage #hero-cinematic-slider,
            html body.juf-homepage #hero-stage .hero-cinematic-slider {
                height: 216px !important;
                min-height: 216px !important;
                max-height: 216px !important;
            }

            html body.juf-homepage .hero-slide-item,
            html body.juf-homepage #hero-stage .hero-slide-item,
            html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-slide-item {
                height: 216px !important;
                min-height: 216px !important;
                max-height: 216px !important;
                padding: 16px 16px !important;
                grid-template-columns: minmax(0, 1fr) 106px !important;
                gap: 14px !important;
                align-items: center !important;
                align-content: center !important;
                box-sizing: border-box !important;
            }

            html body.juf-homepage .hero-slide-info,
            html body.juf-homepage #hero-stage .hero-slide-info {
                display: flex !important;
                flex-direction: column !important;
                justify-content: center !important;
                align-items: flex-start !important;
                align-self: center !important;
                min-width: 0 !important;
                max-width: none !important;
                margin: 0 !important;
                padding: 0 !important;
                gap: 0 !important;
                text-align: left !important;
            }

            html body.juf-homepage .hero-slide-badge,
            html body.juf-homepage #hero-stage .hero-slide-badge {
                display: block !important;
                max-width: 100% !important;
                white-space: nowrap !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                font-size: 9.5px !important;
                line-height: 1.25 !important;
                margin: 0 0 4px !important;
            }

            html body.juf-homepage .hero-slide-title,
            html body.juf-homepage #hero-stage .hero-slide-title {
                display: -webkit-box !important;
                -webkit-box-orient: vertical !important;
                -webkit-line-clamp: 2 !important;
                overflow: hidden !important;
                font-size: clamp(21px, 6vw, 25px) !important;
                line-height: 1.2 !important;
                margin: 0 0 4px !important;
            }

            html body.juf-homepage .hero-slide-author,
            html body.juf-homepage #hero-stage .hero-slide-author {
                font-size: 11.5px !important;
                line-height: 1.35 !important;
                margin: 0 0 6px !important;
            }

            html body.juf-homepage .hero-slide-desc,
            html body.juf-homepage #hero-stage .hero-slide-desc {
                display: -webkit-box !important;
                -webkit-box-orient: vertical !important;
                -webkit-line-clamp: 2 !important;
                overflow: hidden !important;
                font-size: 10.5px !important;
                line-height: 1.44 !important;
                margin: 0 !important;
            }

            /* When CTA buttons are enabled in Admin settings, hide badge/desc like Bio page so buttons fit cleanly inside 216px */
            html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .hero-slide-badge,
            html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .hero-slide-desc,
            html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .juf-hero-motion-badge,
            html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .juf-hero-motion-body {
                display: none !important;
            }

            html body.juf-homepage .hero-slide-info:has(.hero-slide-actions) .hero-slide-author {
                margin: 0 0 10px !important;
            }

            html body.juf-homepage .hero-slide-actions,
            html body.juf-homepage #hero-stage .hero-slide-actions {
                margin: 0 !important;
                gap: 6px !important;
                flex-wrap: nowrap !important;
                justify-content: flex-start !important;
            }

            html body.juf-homepage .hero-slide-actions a,
            html body.juf-homepage #hero-stage .hero-slide-actions a {
                min-height: 36px !important;
                padding: 6px 12px !important;
                font-size: 11.5px !important;
                border-radius: 10px !important;
                white-space: nowrap !important;
            }

            html body.juf-homepage .hero-slide-visual,
            html body.juf-homepage #hero-stage .hero-slide-visual {
                display: flex !important;
                align-items: center !important;
                justify-content: flex-end !important;
                justify-self: end !important;
                align-self: center !important;
                width: 106px !important;
                min-width: 106px !important;
                max-width: 106px !important;
                height: 160px !important;
                min-height: 160px !important;
                max-height: 160px !important;
                margin: 0 !important;
                padding: 0 !important;
            }

            html body.juf-homepage .hero-slide-visual .hero-jacket,
            html body.juf-homepage #hero-stage .hero-slide-visual .hero-jacket,
            html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-jacket,
            html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] :is(.hero-slide-item.active, .hero-slide-item.juf-hero-staged) .hero-jacket {
                width: 106px !important;
                min-width: 106px !important;
                max-width: 106px !important;
                height: 160px !important;
                min-height: 160px !important;
                max-height: 160px !important;
                aspect-ratio: 2 / 3 !important;
                border-radius: 8px !important;
                transform: none !important;
            }

            html body.juf-homepage .hero-thumb-queue,
            html body.juf-homepage #hero-thumb-queue,
            html body.juf-homepage .hero-cinematic-arrows {
                display: none !important;
            }

            html body.juf-homepage .hero-cinematic-stage.hero-empty-state {
                height: 216px !important;
                min-height: 216px !important;
                max-height: 216px !important;
                margin: 10px 0 22px !important;
                padding: 18px 16px !important;
                border-radius: 18px !important;
                display: flex !important;
                align-items: center !important;
            }
        }

        @media (max-width: 390px) {
            html body.juf-homepage .hero-slide-item,
            html body.juf-homepage #hero-stage .hero-slide-item,
            html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-slide-item {
                grid-template-columns: minmax(0, 1fr) 98px !important;
                gap: 12px !important;
                padding: 14px 14px !important;
            }

            html body.juf-homepage .hero-slide-visual,
            html body.juf-homepage #hero-stage .hero-slide-visual,
            html body.juf-homepage .hero-slide-visual .hero-jacket,
            html body.juf-homepage #hero-stage .hero-slide-visual .hero-jacket,
            html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] .hero-jacket,
            html body.juf-homepage #hero-stage[data-home-timing="smooth-289"] :is(.hero-slide-item.active, .hero-slide-item.juf-hero-staged) .hero-jacket {
                width: 98px !important;
                min-width: 98px !important;
                max-width: 98px !important;
                height: 147px !important;
                min-height: 147px !important;
                max-height: 147px !important;
            }
        }

                                /* ==========================================================================
           Build 582 — Exact Preview Match for "মনীষী" Plain Single-Color Boxes
           Fixes live browser rendering discrepancy (`1000171536.jpg` vs Preview):
           1. Removes the `150px × 150px` lighter white circle & 1px ring (`#EEE1D1` / `#DFEBE9`)
              caused by `.home-author-discovery-card::after` (`original-public-v23.css` L2803)
              and `.home-author-discovery-card.is-visual::before / ::after` (`style.css` L2504/2514),
              which were previously ignored because CSS Selectors Level 4 does not match
              pseudo-elements (`::before`, `::after`) inside `:is(...)`.
           2. Resets `mix-blend-mode: normal !important` and `mask-image: none !important`
              on `.home-author-discovery-image` so author portraits keep their crisp white
              shawls and natural skin tones instead of multiplying with `--cat-bg`.
           3. Enforces 100% flat, uniform, plain single book-cover color per box
              (`background: var(--cat-bg) !important; background-image: none !important;`).
           ========================================================================== */
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+1),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+1),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+1) {
            --cat-bg: #EADAC6;
            --cat-border: #D6C2AA;
            --cat-accent: #9E6336;
            --cat-ink: #2B231C;
            --cat-muted: #655344;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+2),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+2),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+2) {
            --cat-bg: #D8E6E4;
            --cat-border: #BBD0CD;
            --cat-accent: #2E6460;
            --cat-ink: #1E3135;
            --cat-muted: #4A6468;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+3),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+3),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+3) {
            --cat-bg: #EBD0C2;
            --cat-border: #D5B4A3;
            --cat-accent: #B8553E;
            --cat-ink: #2C221E;
            --cat-muted: #664D43;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+4),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+4),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+4) {
            --cat-bg: #F2E4C3;
            --cat-border: #DBC9A0;
            --cat-accent: #B86B35;
            --cat-ink: #2B221C;
            --cat-muted: #685542;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+5),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+5),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+5) {
            --cat-bg: #E2EAD8;
            --cat-border: #C6D3B8;
            --cat-accent: #3B6945;
            --cat-ink: #223128;
            --cat-muted: #4F6354;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+6),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+6),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+6) {
            --cat-bg: #E4DCE6;
            --cat-border: #CCC1CF;
            --cat-accent: #765478;
            --cat-ink: #2A2430;
            --cat-muted: #605368;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+7),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+7),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+7) {
            --cat-bg: #D8E7F2;
            --cat-border: #BBD0E0;
            --cat-accent: #35698A;
            --cat-ink: #1F313B;
            --cat-muted: #4C6675;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+8),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+8),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+8) {
            --cat-bg: #E8E1C6;
            --cat-border: #D0C7A5;
            --cat-accent: #7A6C34;
            --cat-ink: #293126;
            --cat-muted: #5C634C;
        }

        html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active),
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active),
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active) {
            background: var(--cat-bg, #EADAC6) !important;
            background-color: var(--cat-bg, #EADAC6) !important;
            background-image: none !important;
            border: 1px solid var(--cat-border, #D6C2AA) !important;
            box-shadow: none !important;
            color: var(--cat-ink, #2B231C) !important;
        }

        /* Explicit top-level pseudo-element & motif elimination (NEVER inside :is()!) */
        html body .home-author-discovery-card::before,
        html body .home-author-discovery-card::after,
        html body .home-author-discovery-card.is-visual::before,
        html body .home-author-discovery-card.is-visual::after,
        html body .juf-author-category-card::before,
        html body .juf-author-category-card::after,
        html body .juf-author-category-card.home-author-discovery-card.is-visual::before,
        html body .juf-author-category-card.home-author-discovery-card.is-visual::after,
        html body .juf-home-author-category-card::before,
        html body .juf-home-author-category-card::after,
        html body .pastel-card.home-author-discovery-card::before,
        html body .pastel-card.home-author-discovery-card::after,
        html body .home-author-discovery-visual::before,
        html body .home-author-discovery-visual::after,
        html body .juf-author-category-motif,
        html body .juf-author-category-motif i,
        html body .juf-home-author-category-motif,
        html body .juf-home-author-category-motif i,
        html body .juf-author-category-backdrop {
            display: none !important;
            content: none !important;
            background: none !important;
            background-image: none !important;
            border: 0 !important;
            box-shadow: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            width: 0 !important;
            height: 0 !important;
            pointer-events: none !important;
        }

        /* Crisp, un-multiplied, un-masked portrait rendering matching preview */
        html body .home-author-discovery-card .home-author-discovery-visual,
        html body .juf-author-category-card .home-author-discovery-visual,
        html body .juf-author-discovery-shared .home-author-discovery-visual {
            background: transparent !important;
            background-image: none !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        html body .home-author-discovery-card .home-author-discovery-image,
        html body .juf-author-category-card .home-author-discovery-image,
        html body .juf-author-discovery-shared .home-author-discovery-image {
            mix-blend-mode: normal !important;
            -webkit-mask-image: none !important;
            mask-image: none !important;
            filter: none !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
            opacity: 1 !important;
        }

        @media (max-width: 620px) {
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.is-visual,
            html body.authors-page .juf-author-category-card.home-author-discovery-card.is-visual,
            html body .juf-author-discovery-shared .home-author-discovery-card.is-visual {
                min-height: 108px !important;
                height: 108px !important;
                max-height: 108px !important;
                padding: 12px 12px !important;
                border-radius: 14px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy,
            html body .juf-author-discovery-shared .home-author-discovery-copy {
                width: calc(100% - 76px) !important;
                max-width: calc(100% - 76px) !important;
                justify-content: center !important;
                gap: 4px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-copy h3,
            html body .juf-author-discovery-shared .home-author-discovery-copy h3 {
                width: 100% !important;
                max-width: 100% !important;
                font-size: 14.8px !important;
                font-weight: 600 !important;
                line-height: 1.18 !important;
                word-break: normal !important;
                overflow-wrap: normal !important;
                hyphens: none !important;
                -webkit-line-clamp: 2 !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-visual,
            html body .juf-author-discovery-shared .home-author-discovery-visual {
                right: 0px !important;
                bottom: -2px !important;
                width: 86px !important;
                height: 102px !important;
            }
            html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-image,
            html body .juf-author-discovery-shared .home-author-discovery-image {
                width: 86px !important;
                height: 102px !important;
                max-width: 86px !important;
                max-height: 102px !important;
                object-fit: contain !important;
                object-position: right bottom !important;
                margin: 0 !important;
            }
        }

        html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3 {
            color: var(--cat-ink, #2B231C) !important;
            text-shadow: none !important;
        }

        html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker {
            color: var(--cat-muted, #655344) !important;
            font-weight: 600 !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        @media (hover: hover) and (pointer: fine) {
            html:not([data-theme="dark"]):not([data-theme="pdf"]) body .home-author-discovery-card.is-visual:not(.is-active):hover,
            html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active):hover {
                background: var(--cat-bg, #EADAC6) !important;
                background-color: var(--cat-bg, #EADAC6) !important;
                background-image: none !important;
                border-color: color-mix(in srgb, var(--cat-accent, #9E6336) 45%, var(--cat-border, #D6C2AA)) !important;
            }
        }

        /* Dark Mode: Single plain solid dark surface per box */
        html[data-theme="dark"] body .home-author-discovery-card.is-visual:not(.is-active),
        html[data-theme="dark"] body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) {
            background: color-mix(in srgb, var(--cat-accent, #9E6336) 14%, #252932) !important;
            background-color: color-mix(in srgb, var(--cat-accent, #9E6336) 14%, #252932) !important;
            background-image: none !important;
            border: 1px solid color-mix(in srgb, var(--cat-accent, #9E6336) 28%, #3A3F47) !important;
            box-shadow: none !important;
        }

        /* Hide install button once running inside standalone PWA */
        @media (display-mode: standalone) {
            .juf-pwa-install-chip {
                display: none !important;
            }
        }
        body.juf-pwa-standalone .juf-pwa-install-chip {
            display: none !important;
        }

/* ==========================================================================
   Build 585 — Bio Page (`authors.php`) Hero Portrait Exact 2-4mm Top Gap & Desktop Text Spacing
   Fixes `image_d7384c.jpg` (`কাজী নজরুল ইসলাম` Desktop Hero View):
   1. Portrait Top Clearance (`2-4mm` / `7px-8px` CSS offset instead of `24px-26px`):
      - Desktop (>= 1200px): Card height `350px`, Portrait `342px × 342px` (`8px` = ~2.1mm CSS top offset)
      - Laptop (961px - 1199px): Card height `316px`, Portrait `308px × 308px` (`8px` = ~2.1mm CSS top offset)
      - Tablet (701px - 960px): Card height `280px`, Portrait `272px × 272px` (`8px` = ~2.1mm CSS top offset)
      - Mobile (<= 700px): Card height `216px`, Portrait `209px × 209px` (`7px` = ~1.9mm CSS top offset)
      - Small Mobile (<= 390px): Card height `216px`, Portrait `208px × 208px` (`8px` = ~2.1mm CSS top offset)
      - Anchored flush bottom-right (`object-fit: contain`, `object-position: right bottom`,
        `margin: 0 -2px -2px 0`, `transform: none`) so the right shoulder never clips.
   2. Desktop & Mobile Left Text Arrangement (`.hero-slide-info`):
      - Replaces the cramped global mobile gaps (`gap: 6px`, `margin: 2px 0 8px`, `font-size: 13px`)
        with generous, well-proportioned Desktop vertical rhythm (`14px` below title, `16px` subtitle,
        `26px` above CTA button, `46px` tall CTA button, and `48px` left card padding).
   ========================================================================== */
html body.authors-page .juf-authors-cinematic-hero,
body.authors-page .juf-authors-cinematic-hero,
body .authors-page .juf-authors-cinematic-hero {
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    overflow: hidden !important;
}

html body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
body .authors-page .juf-authors-cinematic-hero .hero-slide-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 342px !important;
    align-items: stretch !important;
    align-content: stretch !important;
    gap: 28px !important;
    padding: 8px 0 0 48px !important;
    height: 350px !important;
    min-height: 350px !important;
    max-height: 350px !important;
    box-sizing: border-box !important;
}

html body.authors-page .juf-authors-cinematic-hero .hero-slide-info,
body.authors-page .juf-authors-cinematic-hero .hero-slide-info,
body .authors-page .juf-authors-cinematic-hero .hero-slide-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    align-self: center !important;
    gap: 0 !important;
    max-width: 620px !important;
    padding: 0 0 8px 0 !important;
    margin: 0 !important;
    z-index: 3 !important;
}

html body.authors-page .juf-authors-cinematic-hero .hero-slide-title,
body.authors-page .juf-authors-cinematic-hero .hero-slide-title,
body .authors-page .juf-authors-cinematic-hero .hero-slide-title {
    font-size: clamp(32px, 3.3vw, 42px) !important;
    line-height: 1.24 !important;
    letter-spacing: -0.01em !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

html body.authors-page .juf-authors-cinematic-hero .hero-slide-author,
body.authors-page .juf-authors-cinematic-hero .hero-slide-author,
body .authors-page .juf-authors-cinematic-hero .hero-slide-author {
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin: 0 0 26px 0 !important;
    padding: 0 !important;
    color: var(--muted, #5B6376) !important;
}

html body.authors-page .juf-authors-cinematic-hero .hero-slide-author strong,
body.authors-page .juf-authors-cinematic-hero .hero-slide-author strong {
    font-weight: 600 !important;
    color: var(--ink, #282E37) !important;
}

html body.authors-page .juf-authors-cinematic-hero .hero-slide-actions,
body.authors-page .juf-authors-cinematic-hero .hero-slide-actions {
    margin: 0 !important;
    padding: 0 !important;
}

html body.authors-page .juf-authors-cinematic-hero .hero-slide-actions .btn-hero-cinematic-primary,
body.authors-page .juf-authors-cinematic-hero .hero-slide-actions .btn-hero-cinematic-primary {
    min-height: 46px !important;
    padding: 11px 24px !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
body .authors-page .juf-authors-cinematic-hero .juf-author-hero-visual {
    width: 342px !important;
    min-width: 342px !important;
    max-width: 342px !important;
    height: 342px !important;
    min-height: 342px !important;
    max-height: 342px !important;
    align-self: end !important;
    justify-self: end !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    margin: 0 -2px -2px 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
}

html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
body .authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card {
    width: 342px !important;
    min-width: 342px !important;
    max-width: 342px !important;
    height: 342px !important;
    min-height: 342px !important;
    max-height: 342px !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img,
body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img {
    width: 342px !important;
    height: 342px !important;
    max-width: 342px !important;
    max-height: 342px !important;
    object-fit: contain !important;
    object-position: right bottom !important;
    display: block !important;
    transform: none !important;
    margin: 0 !important;
}

/* Laptop breakpoint (961px - 1199px) */
@media (max-width: 1199px) and (min-width: 961px) {
    html body.authors-page .juf-authors-cinematic-hero,
    body.authors-page .juf-authors-cinematic-hero,
    body .authors-page .juf-authors-cinematic-hero {
        height: 316px !important;
        min-height: 316px !important;
        max-height: 316px !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body .authors-page .juf-authors-cinematic-hero .hero-slide-item {
        grid-template-columns: minmax(0, 1fr) 308px !important;
        padding: 8px 0 0 38px !important;
        height: 316px !important;
        min-height: 316px !important;
        max-height: 316px !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual {
        width: 308px !important;
        min-width: 308px !important;
        max-width: 308px !important;
        height: 308px !important;
        min-height: 308px !important;
        max-height: 308px !important;
        margin: 0 -2px -2px 0 !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img {
        width: 308px !important;
        min-width: 308px !important;
        max-width: 308px !important;
        height: 308px !important;
        min-height: 308px !important;
        max-height: 308px !important;
        object-fit: contain !important;
        object-position: right bottom !important;
        transform: none !important;
    }
}

/* Tablet breakpoint (701px - 960px) */
@media (max-width: 960px) and (min-width: 701px) {
    html body.authors-page .juf-authors-cinematic-hero,
    body.authors-page .juf-authors-cinematic-hero,
    body .authors-page .juf-authors-cinematic-hero {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body .authors-page .juf-authors-cinematic-hero .hero-slide-item {
        grid-template-columns: minmax(0, 1fr) 272px !important;
        padding: 8px 0 0 28px !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .hero-slide-info,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-info {
        padding: 0 0 8px 0 !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .hero-slide-title,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-title {
        font-size: clamp(26px, 3.4vw, 32px) !important;
        margin: 0 0 10px 0 !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .hero-slide-author,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-author {
        font-size: 14.5px !important;
        margin: 0 0 20px 0 !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual {
        width: 272px !important;
        min-width: 272px !important;
        max-width: 272px !important;
        height: 272px !important;
        min-height: 272px !important;
        max-height: 272px !important;
        margin: 0 -2px -2px 0 !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img {
        width: 272px !important;
        min-width: 272px !important;
        max-width: 272px !important;
        height: 272px !important;
        min-height: 272px !important;
        max-height: 272px !important;
        object-fit: contain !important;
        object-position: right bottom !important;
        transform: none !important;
    }
}

/* Mobile breakpoint (<= 700px) — exact 2-4mm (~7px CSS) top headroom + flush right shoulder */
@media (max-width: 700px) {
    html body.authors-page .juf-authors-cinematic-hero,
    body.authors-page .juf-authors-cinematic-hero,
    body .authors-page .juf-authors-cinematic-hero {
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
        margin: 10px 0 22px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body .authors-page .juf-authors-cinematic-hero .hero-slide-item {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 168px !important;
        align-items: stretch !important;
        align-content: stretch !important;
        gap: 6px !important;
        padding: 7px 0 0 18px !important;
        height: 216px !important;
        min-height: 216px !important;
        max-height: 216px !important;
        box-sizing: border-box !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .hero-slide-info,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-info,
    body .authors-page .juf-authors-cinematic-hero .hero-slide-info {
        align-self: center !important;
        padding: 0 0 7px 0 !important;
        gap: 0 !important;
        z-index: 3 !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .hero-slide-title,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-title {
        font-size: clamp(22px, 6.2vw, 26px) !important;
        line-height: 1.24 !important;
        margin: 0 0 8px 0 !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .hero-slide-author,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-author {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
        margin: 0 0 15px 0 !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .hero-slide-actions .btn-hero-cinematic-primary,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-actions .btn-hero-cinematic-primary {
        min-height: 38px !important;
        padding: 8px 16px !important;
        font-size: 12.5px !important;
        border-radius: 10px !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
    body .authors-page .juf-authors-cinematic-hero .juf-author-hero-visual {
        width: 209px !important;
        min-width: 209px !important;
        max-width: 209px !important;
        height: 209px !important;
        min-height: 209px !important;
        max-height: 209px !important;
        align-self: end !important;
        justify-self: end !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        margin: 0 -2px -2px 0 !important;
        padding: 0 !important;
        z-index: 1 !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    body .authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card {
        width: 209px !important;
        min-width: 209px !important;
        max-width: 209px !important;
        height: 209px !important;
        min-height: 209px !important;
        max-height: 209px !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img {
        width: 209px !important;
        height: 209px !important;
        max-width: 209px !important;
        max-height: 209px !important;
        object-fit: contain !important;
        object-position: right bottom !important;
        display: block !important;
        transform: none !important;
        margin: 0 !important;
    }
}

/* Small mobile screens (<= 390px, e.g., 384px Android viewports) */
@media (max-width: 390px) {
    html body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body.authors-page .juf-authors-cinematic-hero .hero-slide-item,
    body .authors-page .juf-authors-cinematic-hero .hero-slide-item {
        grid-template-columns: minmax(0, 1fr) 156px !important;
        padding: 8px 0 0 15px !important;
        gap: 4px !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-visual,
    body .authors-page .juf-authors-cinematic-hero .juf-author-hero-visual {
        width: 208px !important;
        min-width: 208px !important;
        max-width: 208px !important;
        height: 208px !important;
        min-height: 208px !important;
        max-height: 208px !important;
        margin: 0 -2px -2px 0 !important;
    }
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card img,
    html body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img,
    body.authors-page .juf-authors-cinematic-hero .juf-author-hero-portrait-card > .juf-author-circle-img {
        width: 208px !important;
        min-width: 208px !important;
        max-width: 208px !important;
        height: 208px !important;
        min-height: 208px !important;
        max-height: 208px !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: right bottom !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Build 584 — Desktop Header & Page Container Responsive Alignment
   Fixes `image_d8efc0.jpg` (Home Top), `image_d8ecd5.jpg` (Home Middle),
   `image_d8ec7f.jpg` (Books), `image_d8ec3b.jpg` (Biography),
   `image_d8ebdd.jpg` (Audiobooks), and `image_d89a25.jpg` (Writings):
   1. Restores exact desktop `.container` width (`var(--juf-site-max-width, 1340px)`,
      `margin-inline: auto`, `padding-inline: 20px`) on `<main class="site-main container">`
      so every page section, Hero card, Category rail, and 5-column grid aligns
      100% flush left and flush right with `<header> .container.juf-header-shell`
      and `<footer> .container` instead of stretching edge-to-edge across 1920px monitors.
   2. Optimizes the Desktop Header Grid (`.juf-header-v24 .juf-header-shell`)
      and widens `.juf-global-search-v40` (`max-width: 330px` on >=1200px,
      `280px` on 901px-1199px) so the full search placeholder fits cleanly
      without an awkward dead gap after "পাঠকের লেখা".
   3. Ensures nested `.container` sections inside `main.site-main.container`
      never apply double horizontal padding, and aligns `.juf-public-writings-grid`
      flush left/right with the Hero card and search toolbar on `writings.php`.
   ========================================================================== */
@media (min-width: 901px) {
    html body:not(.admin-shell-body) .juf-header-v24 .container.juf-header-shell,
    html body:not(.admin-shell-body) .juf-footer-v24 > .container,
    html body:not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body) main.site-main.container,
    html body:not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body) .site-main.container {
        width: 100% !important;
        max-width: var(--juf-site-max-width, 1340px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* Prevent double 20px horizontal padding on nested section.container inside main.site-main.container */
    html body:not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body) main.site-main.container :where(
        section.container:not(.juf-library-hero):not(.juf-books-hero):not(.juf-search-hero),
        .juf-books-page > section.container:not(.juf-library-hero),
        .juf-authors-page > section.container,
        .juf-author-new-book-story > .container,
        .juf-account-shell.container
    ) {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Balanced 4-Zone Desktop Header Grid (Brand · Primary Nav · Global Search · Actions) */
    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-header-v24 .juf-header-shell {
        display: grid !important;
        grid-template-columns: auto max-content minmax(180px, 1fr) max-content !important;
        grid-template-areas: "brand primary search actions" !important;
        align-items: center !important;
        gap: 14px !important;
    }

    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-brand-v24 {
        grid-area: brand !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-brand-wordmark-v24 {
        display: block !important;
        width: 126px !important;
        height: 42px !important;
        object-fit: contain !important;
    }

    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-brand-symbol-v24 {
        display: none !important;
    }

    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-nav-v24 {
        display: contents !important;
    }

    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-nav-primary-v24 {
        grid-area: primary !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 3px !important;
        width: max-content !important;
        min-width: max-content !important;
        justify-self: start !important;
    }

    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-global-search-v40 {
        grid-area: search !important;
        width: 100% !important;
        min-width: 170px !important;
        max-width: 280px !important;
        justify-self: end !important;
    }

    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-nav-actions-v24 {
        grid-area: actions !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        justify-self: end !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 1200px) {
    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-header-v24 .juf-header-shell {
        grid-template-columns: auto max-content minmax(220px, 1fr) max-content !important;
        gap: 18px !important;
    }
    html body.juf-minimal-chrome:not(.admin-shell-body) .juf-global-search-v40 {
        max-width: 330px !important;
    }
}


/* ==========================================================================
   Build 586 — Desktop Category Slider Arrows (`‹` `›`) & Drag-to-Slide Cursor
   Fixes `image_d6c42f.png` ("desktop a slide korar jonno cursor nei"):
   1. Restores visible circular `‹` and `›` slider navigation buttons
      (`.juf-author-category-nav` on `authors.php`, `.juf-book-discovery-nav` on
      `books.php`, and `.slider-nav-ctrl` on `index.php`) on Desktop/Tablet
      (`@media (min-width: 621px)`) even when the section heading text
      (`মনীষী` / `বইয়ের বিভাগ`) is cleared in Admin (`.is-title-empty`).
   2. Adds interactive `cursor: grab` / `cursor: grabbing` on Desktop mouse
      hover/drag across all horizontal category rails so users can both click
      the `‹` `›` buttons and drag left/right with their mouse cursor.
   ========================================================================== */
@media (min-width: 621px) {
    html body.authors-page .juf-author-discovery-head.is-title-empty,
    html body.authors-page .juf-author-discovery-head-shared.is-title-empty,
    html body.juf-books-page .juf-book-discovery-head.is-title-empty,
    html body.juf-homepage .juf-author-discovery-head-shared.is-title-empty {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: -6px 0 10px 0 !important;
        padding: 0 !important;
        min-height: 36px !important;
    }

    html body.authors-page .juf-author-discovery-head .juf-author-discovery-actions,
    html body.authors-page .juf-author-discovery-head-shared .section-head-actions,
    html body.juf-books-page .juf-book-discovery-head .juf-book-discovery-actions,
    html body.juf-homepage .juf-author-discovery-head-shared .section-head-actions {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        margin-left: auto !important;
    }

    html body.authors-page .juf-author-category-nav:not(.is-not-needed),
    html body.juf-books-page .juf-book-discovery-nav:not(.is-not-needed),
    html body.juf-homepage .home-authors-discovery .slider-nav-ctrl:not(.is-not-needed) {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html body.authors-page .juf-author-category-nav-btn,
    html body.juf-books-page .juf-book-discovery-arrow,
    html body.juf-homepage .home-authors-discovery .slider-ctrl-btn {
        display: inline-grid !important;
        place-items: center !important;
        width: 36px !important;
        min-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        border: 1px solid rgba(59, 66, 86, 0.24) !important;
        background: #ECEAE6 !important;
        color: #282E37 !important;
        font-size: 19px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        user-select: none !important;
        box-shadow: 0 4px 12px rgba(40, 46, 55, 0.05) !important;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.18s ease !important;
    }

    html body.authors-page .juf-author-category-nav-btn:hover:not(:disabled),
    html body.authors-page .juf-author-category-nav-btn:focus-visible:not(:disabled),
    html body.juf-books-page .juf-book-discovery-arrow:hover:not(:disabled),
    html body.juf-books-page .juf-book-discovery-arrow:focus-visible:not(:disabled),
    html body.juf-homepage .home-authors-discovery .slider-ctrl-btn:hover:not(:disabled),
    html body.juf-homepage .home-authors-discovery .slider-ctrl-btn:focus-visible:not(:disabled) {
        background: #2C3243 !important;
        border-color: #2C3243 !important;
        color: #FFFFFF !important;
        transform: translateY(-1px) !important;
    }

    html body.authors-page .juf-author-category-nav-btn:disabled,
    html body.juf-books-page .juf-book-discovery-arrow:disabled,
    html body.juf-homepage .home-authors-discovery .slider-ctrl-btn:disabled {
        opacity: 0.38 !important;
        cursor: not-allowed !important;
        transform: none !important;
    }

    html[data-theme="dark"] body.authors-page .juf-author-category-nav-btn,
    html[data-theme="dark"] body.juf-books-page .juf-book-discovery-arrow,
    html[data-theme="dark"] body.juf-homepage .home-authors-discovery .slider-ctrl-btn {
        background: #262A32 !important;
        border-color: rgba(255, 255, 255, 0.16) !important;
        color: #F3F1EC !important;
    }
}

@media (max-width: 620px) {
    html body.authors-page .juf-author-discovery-head.is-title-empty,
    html body.authors-page .juf-author-discovery-head-shared.is-title-empty,
    html body.juf-books-page .juf-book-discovery-head.is-title-empty {
        display: none !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    html body .juf-author-discovery-shared .juf-author-category-grid,
    html body .juf-author-discovery-shared .home-author-premium-rail,
    html body .juf-books-page .juf-book-discovery-track {
        cursor: grab !important;
    }
    html body .juf-author-discovery-shared .juf-author-category-grid.is-dragging,
    html body .juf-author-discovery-shared .home-author-premium-rail.is-dragging,
    html body .juf-books-page .juf-book-discovery-track.is-dragging,
    html body .juf-author-discovery-shared .juf-author-category-grid.is-dragging a,
    html body .juf-author-discovery-shared .home-author-premium-rail.is-dragging a,
    html body .juf-books-page .juf-book-discovery-track.is-dragging a {
        cursor: grabbing !important;
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
        user-select: none !important;
    }
}

        /* ==========================================================================
           Build 587 — Exact 16:9 Aspect Ratio for Homepage "বইয়ের বিভাগ" Boxes
           Preserves the exact existing card widths (`min(64vw, 216px)` on mobile,
           3-up on tablet, 5-up on desktop — "Chowra setai thakbe") while locking
           card height to strict 16:9 (`aspect-ratio: 16 / 9 !important;`,
           `min(36vw, 121.5px)` on mobile).
           ========================================================================== */
        html body.juf-homepage #genres .home-genre-visual-track {
            align-items: flex-start !important;
        }

        html body.juf-homepage #genres .home-book-category-card {
            align-self: flex-start !important;
            aspect-ratio: 16 / 9 !important;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
        }

        html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
            padding: 22px 13px 10px !important;
            gap: 1.5px !important;
        }

        @media (max-width: 620px) {
            html body.juf-homepage #genres .home-book-category-card {
                flex: 0 0 min(64vw, 216px) !important;
                width: min(64vw, 216px) !important;
                min-width: min(64vw, 216px) !important;
                max-width: min(64vw, 216px) !important;
                aspect-ratio: 16 / 9 !important;
                height: min(36vw, 121.5px) !important;
                min-height: min(36vw, 121.5px) !important;
                max-height: min(36vw, 121.5px) !important;
                border-radius: 15px !important;
            }
            html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
                padding: 18px 12px 9px !important;
                gap: 1px !important;
            }
            html body.juf-homepage #genres .home-book-category-card h4 {
                font-size: 15px !important;
                line-height: 1.2 !important;
            }
            html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span {
                font-size: 9.5px !important;
                line-height: 1.3 !important;
                -webkit-line-clamp: 2 !important;
            }
            html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > em {
                margin-top: 2px !important;
                font-size: 10px !important;
            }
        }



        /* ==========================================================================
           Build 588 — Deep Audit & Fix for Dark Mode, PDF Mode, and Light Mode
           1. "মনীষী" (Manishi) Discovery Boxes (`1000171726.jpg`):
              - Light Mode: 8 flat plain single book-cover colors (`--cat-bg`) + dark ink (`--cat-ink`).
              - Dark Mode (`html[data-theme="dark"]`): 8 deep plain single solid dark book-cover tones
                (`--cat-dark-bg`) + crisp ivory title (`#F4EFEA`) & muted kicker (`#C4B7AA`),
                fixing the unreadable white-on-pastel text in `1000171726.jpg`.
              - PDF Mode (`html[data-theme="pdf"]` / `body[data-pdf-mode="pdf"]`): 8 warm parchment-tinted
                plain single book-cover colors (`--cat-pdf-bg`) + crisp printed-book ink (`#241E17`).
              - Full-Width Copy on Portrait-Free Cards (`.no-category-image` / `.no-portrait`):
                Prevents `সমাজবিজ্ঞানী ও অর্থনীতিবিদ` from truncating early when a card has no image.
           2. Homepage "বইয়ের বিভাগ" (`home-book-category-card`):
              - Preserves 16:9 ratio, `min(64vw, 216px)` mobile width, and crisp white text over scrim
                across Light Mode, Dark Mode, and PDF Mode (never washed out by generic PDF card rules).
           ========================================================================== */
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+1),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+1),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+1) {
            --cat-bg: #EADAC6; --cat-border: #D6C2AA; --cat-accent: #9E6336; --cat-ink: #2B231C; --cat-muted: #655344;
            --cat-dark-bg: #2E251F; --cat-dark-border: #4A3B31; --cat-dark-ink: #F4EFEA; --cat-dark-muted: #C4B7AA;
            --cat-pdf-bg: #E7D8C5; --cat-pdf-border: #CEB9A0; --cat-pdf-ink: #241E17; --cat-pdf-muted: #5C4D3E;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+2),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+2),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+2) {
            --cat-bg: #D8E6E4; --cat-border: #BBD0CD; --cat-accent: #2E6460; --cat-ink: #1E3135; --cat-muted: #4A6468;
            --cat-dark-bg: #1E2C2E; --cat-dark-border: #31484B; --cat-dark-ink: #EEF5F5; --cat-dark-muted: #A9C2C4;
            --cat-pdf-bg: #DCE2DC; --cat-pdf-border: #BCC8C1; --cat-pdf-ink: #1E2D2F; --cat-pdf-muted: #4A5F61;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+3),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+3),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+3) {
            --cat-bg: #EBD0C2; --cat-border: #D5B4A3; --cat-accent: #B8553E; --cat-ink: #2C221E; --cat-muted: #664D43;
            --cat-dark-bg: #312320; --cat-dark-border: #4E3732; --cat-dark-ink: #F6EFEC; --cat-dark-muted: #C9B3AC;
            --cat-pdf-bg: #E7D2C3; --cat-pdf-border: #CEB3A1; --cat-pdf-ink: #2A201C; --cat-pdf-muted: #614A40;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+4),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+4),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+4) {
            --cat-bg: #F2E4C3; --cat-border: #DBC9A0; --cat-accent: #B86B35; --cat-ink: #2B221C; --cat-muted: #685542;
            --cat-dark-bg: #2F281D; --cat-dark-border: #4B402E; --cat-dark-ink: #F5F0E6; --cat-dark-muted: #C7BCA6;
            --cat-pdf-bg: #ECE0C3; --cat-pdf-border: #D3C39E; --cat-pdf-ink: #282019; --cat-pdf-muted: #61503D;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+5),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+5),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+5) {
            --cat-bg: #E2EAD8; --cat-border: #C6D3B8; --cat-accent: #3B6945; --cat-ink: #223128; --cat-muted: #4F6354;
            --cat-dark-bg: #212D24; --cat-dark-border: #35483A; --cat-dark-ink: #EFF5F0; --cat-dark-muted: #B0C4B5;
            --cat-pdf-bg: #E0E4D4; --cat-pdf-border: #C2CAAE; --cat-pdf-ink: #212E25; --cat-pdf-muted: #4D5E51;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+6),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+6),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+6) {
            --cat-bg: #E4DCE6; --cat-border: #CCC1CF; --cat-accent: #765478; --cat-ink: #2A2430; --cat-muted: #605368;
            --cat-dark-bg: #2A2330; --cat-dark-border: #43384C; --cat-dark-ink: #F2EEF5; --cat-dark-muted: #BEB3C6;
            --cat-pdf-bg: #E2D9DF; --cat-pdf-border: #C7BBC4; --cat-pdf-ink: #28222D; --cat-pdf-muted: #5B4F62;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+7),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+7),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+7) {
            --cat-bg: #D8E7F2; --cat-border: #BBD0E0; --cat-accent: #35698A; --cat-ink: #1F313B; --cat-muted: #4C6675;
            --cat-dark-bg: #1E2933; --cat-dark-border: #314353; --cat-dark-ink: #EEF3F7; --cat-dark-muted: #ABC0D0;
            --cat-pdf-bg: #DCE1E4; --cat-pdf-border: #BCC6CE; --cat-pdf-ink: #1F2E37; --cat-pdf-muted: #4A606D;
        }
        html body:is(.juf-homepage, .authors-page) .home-author-discovery-card.is-visual:nth-child(8n+8),
        html body .juf-author-discovery-shared .home-author-discovery-card.is-visual:nth-child(8n+8),
        html body .juf-author-category-card.home-author-discovery-card.is-visual:nth-child(8n+8) {
            --cat-bg: #E8E1C6; --cat-border: #D0C7A5; --cat-accent: #7A6C34; --cat-ink: #293126; --cat-muted: #5C634C;
            --cat-dark-bg: #292B20; --cat-dark-border: #424533; --cat-dark-ink: #F2F3EC; --cat-dark-muted: #BDC0AE;
            --cat-pdf-bg: #E5DEC4; --cat-pdf-border: #CBC2A2; --cat-pdf-ink: #262D23; --cat-pdf-muted: #575E48;
        }

        /* Light Mode: Plain Single Book-Cover Color per Box */
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not([data-pdf-mode="pdf"]) .home-author-discovery-card.is-visual:not(.is-active),
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not([data-pdf-mode="pdf"]) .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active),
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not([data-pdf-mode="pdf"]) .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active) {
            background: var(--cat-bg, #EADAC6) !important;
            background-color: var(--cat-bg, #EADAC6) !important;
            background-image: none !important;
            border: 1px solid var(--cat-border, #D6C2AA) !important;
            box-shadow: none !important;
            color: var(--cat-ink, #2B231C) !important;
        }
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not([data-pdf-mode="pdf"]) .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not([data-pdf-mode="pdf"]) .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3 {
            color: var(--cat-ink, #2B231C) !important;
            text-shadow: none !important;
        }
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not([data-pdf-mode="pdf"]) .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
        html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not([data-pdf-mode="pdf"]) .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker {
            color: var(--cat-muted, #655344) !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        /* Dark Mode: Deep Plain Single Solid Book-Cover Surface & High-Contrast Ivory Text (`1000171726.jpg`) */
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .home-author-discovery-card.is-visual:not(.is-active),
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active),
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active) {
            background: var(--cat-dark-bg, #2E251F) !important;
            background-color: var(--cat-dark-bg, #2E251F) !important;
            background-image: none !important;
            border: 1px solid var(--cat-dark-border, #4A3B31) !important;
            box-shadow: none !important;
            color: var(--cat-dark-ink, #F4EFEA) !important;
        }
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3 {
            color: var(--cat-dark-ink, #F4EFEA) !important;
            text-shadow: none !important;
        }
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
        html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker {
            color: var(--cat-dark-muted, #C4B7AA) !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        /* PDF Mode: Warm Parchment-Harmonized Plain Single Book-Cover Surface & Dark Ink */
        html[data-theme="pdf"] body .home-author-discovery-card.is-visual:not(.is-active),
        html[data-theme="pdf"] body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active),
        html[data-theme="pdf"] body .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active),
        html body[data-pdf-mode="pdf"] .home-author-discovery-card.is-visual:not(.is-active),
        html body[data-pdf-mode="pdf"] .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active),
        html body[data-pdf-mode="pdf"] .juf-author-discovery-shared .home-author-discovery-card.is-visual:not(.is-active) {
            background: var(--cat-pdf-bg, #E7D8C5) !important;
            background-color: var(--cat-pdf-bg, #E7D8C5) !important;
            background-image: none !important;
            border: 1px solid var(--cat-pdf-border, #CEB9A0) !important;
            box-shadow: none !important;
            color: var(--cat-pdf-ink, #241E17) !important;
        }
        html[data-theme="pdf"] body .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
        html[data-theme="pdf"] body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
        html body[data-pdf-mode="pdf"] .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3,
        html body[data-pdf-mode="pdf"] .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-copy h3 {
            color: var(--cat-pdf-ink, #241E17) !important;
            text-shadow: none !important;
        }
        html[data-theme="pdf"] body .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
        html[data-theme="pdf"] body .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
        html body[data-pdf-mode="pdf"] .home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker,
        html body[data-pdf-mode="pdf"] .juf-author-category-card.home-author-discovery-card.is-visual:not(.is-active) .home-author-discovery-kicker {
            color: var(--cat-pdf-muted, #5C4D3E) !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }

        /* Portrait-Free Cards (`no-category-image` / `no-portrait`): Full Width Copy so Titles Never Truncate Early */
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.no-category-image .home-author-discovery-copy,
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.no-portrait .home-author-discovery-copy,
        html body .juf-author-discovery-shared .home-author-discovery-card.no-category-image .home-author-discovery-copy,
        html body .juf-author-discovery-shared .home-author-discovery-card.no-portrait .home-author-discovery-copy {
            width: 100% !important;
            max-width: 100% !important;
            padding-right: 4px !important;
        }
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.no-category-image .home-author-discovery-visual,
        html body:is(.juf-homepage, .authors-page) .juf-author-discovery-shared .home-author-discovery-card.no-portrait .home-author-discovery-visual,
        html body .juf-author-discovery-shared .home-author-discovery-card.no-category-image .home-author-discovery-visual,
        html body .juf-author-discovery-shared .home-author-discovery-card.no-portrait .home-author-discovery-visual {
            display: none !important;
            width: 0 !important;
            height: 0 !important;
        }

        /* Homepage "বইয়ের বিভাগ" (`home-book-category-card`): Protect White Text Over Scrim in Light, Dark & PDF Modes */
        html body.juf-homepage #genres .home-book-category-card,
        html[data-theme="dark"] body.juf-homepage #genres .home-book-category-card,
        html[data-theme="pdf"] body.juf-homepage #genres .home-book-category-card {
            background-color: #242A36 !important;
            border-color: rgba(108, 92, 72, 0.22) !important;
            color: #FFFFFF !important;
        }
        html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy h4,
        html[data-theme="dark"] body.juf-homepage #genres .home-book-category-card .genre-graphic-copy h4,
        html[data-theme="pdf"] body.juf-homepage #genres .home-book-category-card .genre-graphic-copy h4 {
            color: #FFFFFF !important;
        }
        html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span,
        html body.juf-homepage #genres .home-book-category-card .genre-graphic-kicker,
        html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > em,
        html[data-theme="dark"] body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span,
        html[data-theme="dark"] body.juf-homepage #genres .home-book-category-card .genre-graphic-kicker,
        html[data-theme="dark"] body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > em,
        html[data-theme="pdf"] body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span,
        html[data-theme="pdf"] body.juf-homepage #genres .home-book-category-card .genre-graphic-kicker,
        html[data-theme="pdf"] body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > em {
            color: rgba(255, 255, 255, 0.92) !important;
        }

/* ==========================================================================
   Build 591 — Complete Dark Mode & PDF Mode Audit Fixes (`1000171737.jpg`):
   1. Defines `--color-*` alias tokens across `:root`, `html[data-theme="dark"]`,
      and `html[data-theme="pdf"]` so no inline or component variable ever
      falls back to light cream in Dark Mode.
   2. Fixes `profile.php` Quiz Progress Stat Cards (`.juf-profile-quiz-stat-card`),
      Retake Banner (`.juf-profile-quiz-retake-banner`), Weak Chapter Rows
      (`.juf-profile-quiz-weak-row`), and Hero Stat Icon Badges
      (`.profile-stat-icon.is-stat-completed`, `.is-stat-library`, `.is-stat-following`).
   3. Closes all remaining light-surface / dark-text leaks across `profile.php`,
      `member.php`, `audiobooks.php`, `reviews.php`, `writings.php`, `account.php`,
      `premium.php`, `checkout.php`, and `read.php`.
   ========================================================================== */
:root {
    --color-bg: var(--bg, #F6F5F2);
    --color-surface: var(--surface, #ECEBE6);
    --color-text: var(--ink, #282E37);
    --color-muted: var(--muted, #5B6376);
    --color-border: var(--line, #D9D6D0);
    --color-accent: var(--accent, #3B4256);
    --color-secondary: var(--link, #2F5D9E);
}

html[data-theme="dark"],
html[data-theme="dark"] body {
    --color-bg: #23262B !important;
    --color-surface: #2C3037 !important;
    --color-text: #ECE8E1 !important;
    --color-muted: #A09B94 !important;
    --color-border: #3A3F47 !important;
    --color-accent: #C9D4EC !important;
    --color-secondary: #93B6EE !important;
}

html[data-theme="pdf"],
html[data-theme="pdf"] body,
html body[data-pdf-mode="pdf"] {
    --color-bg: #E6DDD0 !important;
    --color-surface: #EFE8DD !important;
    --color-text: #241E17 !important;
    --color-muted: #5A5043 !important;
    --color-border: #C8BBA6 !important;
    --color-accent: #382F24 !important;
    --color-secondary: #5C4630 !important;
}

/* 1. Profile Hero Stat Icon Boxes (`১২ শেষ করেছি`, `১৩ অনুসরণ` in `1000171737.jpg`) */
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-completed,
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-library,
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-following {
    background: #343A44 !important;
    border: 1px solid rgba(201, 212, 236, 0.18) !important;
    color: #C9D4EC !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-completed,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(1) .profile-stat-icon {
    color: #6FCB93 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-library,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(2) .profile-stat-icon {
    color: #93B6EE !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-following {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats a[aria-current="page"] strong,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats a[aria-current="page"] .juf-ig-stat-label {
    color: #F8FAFC !important;
}

html[data-theme="pdf"] body .site-main #library-home .profile-hub-stats .profile-stat-icon,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-completed,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-library,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-following {
    background: #DFD5C3 !important;
    border: 1px solid rgba(108, 92, 72, 0.24) !important;
    color: #382F24 !important;
}

/* 2. Profile Quiz Progress Strip & Retake Notice (`#my-quizzes` — V157 box-free editorial harmony) */
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card,
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-weak-row {
    background: transparent !important;
    color: #ECE8E1 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card strong,
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-weak-section h3,
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-weak-row strong {
    color: #F8FAFC !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card.is-correct strong,
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-num.is-ok {
    color: #6FCB93 !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card.is-wrong strong,
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-num.is-danger {
    color: #F0907F !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card small,
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-weak-row small {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-retake-banner {
    background: rgba(226, 170, 68, 0.10) !important;
    border: 0 !important;
    border-left: 3px solid #D9A243 !important;
    color: #F8FAFC !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-retake-banner strong {
    color: #FDE68A !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-retake-banner small {
    color: #D8D3CA !important;
}
html[data-theme="dark"] body .site-main #library-home #my-quizzes .juf-profile-quiz-retake-btn {
    background: #3B5BDB !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
}
html[data-theme="pdf"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card,
html[data-theme="pdf"] body .site-main #library-home #my-quizzes .juf-profile-quiz-weak-row,
body[data-pdf-mode="pdf"] .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card,
body[data-pdf-mode="pdf"] .site-main #library-home #my-quizzes .juf-profile-quiz-weak-row {
    background: transparent !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card small,
html[data-theme="pdf"] body .site-main #library-home #my-quizzes .juf-profile-quiz-weak-row small,
body[data-pdf-mode="pdf"] .site-main #library-home #my-quizzes .juf-profile-quiz-stat-card small,
body[data-pdf-mode="pdf"] .site-main #library-home #my-quizzes .juf-profile-quiz-weak-row small {
    color: #5C4E3E !important;
}

/* 3. Other Profile & Member Page Elements (`profile.php` & `member.php`) */
html[data-theme="dark"] body .site-main #library-home .profile-hub-empty,
html[data-theme="dark"] body .site-main #library-home .profile-listening-card,
html[data-theme="dark"] body .site-main #library-home .profile-purchase-row,
html[data-theme="dark"] body .site-main #library-home .profile-annotation-row,
html[data-theme="dark"] body .site-main #library-home .profile-highlight-row,
html[data-theme="dark"] body .site-main #library-home .profile-history-details,
html[data-theme="dark"] body .site-main #library-home .profile-library-add-card,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive,
html[data-theme="dark"] body .site-main #library-home .profile-premium-pass-v26.is-inactive {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home :is(.profile-hub-empty, .profile-listening-card, .profile-purchase-row, .profile-annotation-row, .profile-highlight-row, .profile-history-details) :is(strong, h3, h3 a, a) {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home :is(.profile-hub-empty, .profile-listening-card, .profile-purchase-row, .profile-annotation-row, .profile-highlight-row, .profile-history-details) :is(p, small, span, time) {
    color: #A09B94 !important;
}
html[data-theme="dark"] body .site-main #library-home :is(.profile-section-title-icon, .profile-note-title-icon) {
    background: #343A44 !important;
    color: #C9D4EC !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-status-chip.is-approved {
    background: rgba(46, 122, 79, 0.24) !important;
    color: #6FCB93 !important;
}
html[data-theme="dark"] body .site-main #library-home :is(.profile-status-chip.is-pending, .profile-status-chip.is-rejected, .profile-status-chip.is-hidden, .profile-rating-chip) {
    background: #343A44 !important;
    color: #CBD5E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-inline-shelf-search input[type="search"] {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home :is(.juf-ig-action-btn:hover, .juf-ig-settings-pill:hover, .juf-modern-dropdown-trigger:hover, .juf-modern-type-chip:hover, .profile-hub-stats.juf-ig-stats-row a:hover) {
    background: #343A44 !important;
    border-color: #4B5563 !important;
    color: #F8FAFC !important;
}
html[data-theme="dark"] body :is(.juf-details-author-avatar, .reader-identity-avatar, #library-home .profile-author-avatar, .profile-author-avatar, .juf-homepage #authors .author-circle-disc:not(.author-view-all-disc)) {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}

/* 4. Audiobook Sticky Player, Queue & Detail Cards (`audiobooks.php`) */
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player,
html[data-theme="dark"] body.juf-2d-minimal #juf-sticky-audio-player,
html[data-theme="dark"] body.audio-detail-page #juf-sticky-audio-player.audio-player-panel-detail {
    background: #23262B !important;
    background-image: none !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body #juf-sticky-audio-player :is(#juf-player-title, h2#juf-player-title, .audio-player-expanded-head h3, .audio-queue-copy strong) {
    color: #F8FAFC !important;
}
html[data-theme="dark"] body #juf-sticky-audio-player :is(#juf-player-subtitle, #juf-player-narrator, #juf-current-time, #juf-duration, .juf-player-tools label, .audio-player-expanded-head small, .audio-queue-copy small) {
    color: #CBD5E1 !important;
}
html[data-theme="dark"] body #juf-sticky-audio-player :is(.audio-player-expanded, .audio-queue-track, .juf-player-controls button, .juf-player-tools button#juf-mute, select#juf-playback-rate, .audio-player-mobile-toggle) {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body #juf-sticky-audio-player .audio-queue-number {
    background: #343A44 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.audiobook-page :is(.audio-dashboard-main, .audio-filter-bar input, .audio-filter-bar select, .audio-filter-bar .audio-filter-more > summary),
html[data-theme="dark"] body.audio-detail-page :is(.audio-detail-hero-v2, .audio-detail-author-card) {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

/* 5. Reader Review Stream & `reviews.php` Cards */
html[data-theme="dark"] body :is(.juf-review-card-inner, body.juf-page-reviews .juf-review-note) {
    background: #2C3037 !important;
    background-image: none !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] body :is(.juf-review-card-topbar, .juf-review-card-footer) {
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body :is(.juf-review-rating-pill, .juf-review-book, .juf-review-initial) {
    background: #343A44 !important;
    background-image: none !important;
    border-color: #434A56 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body :is(#home-reader-reviews-title, .juf-review-verified-tag, .juf-review-card-text, .juf-review-user-name, body.juf-page-reviews .juf-review-stream > header h1, body.juf-page-reviews .juf-review-note > p) {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body :is(.juf-review-user-location, body.juf-page-reviews .juf-review-stream > header p) {
    color: #A09B94 !important;
}

/* 6. Community Writings Reaction Pills & Modals (`writings.php`) */
html[data-theme="dark"] body.juf-2d-minimal :is(.juf-fb-action-btn.is-react-like, .juf-fb-action-btn.is-react-insightful, .juf-writing-comment-del, .juf-fb-report-inline-form select, .juf-fb-report-inline-form textarea) {
    background: #343A44 !important;
    border-color: #434A56 !important;
    color: #ECE8E1 !important;
}


/* ==========================================================================
   Build 592 — Deep Analysis & Complete System Fix (Dark Mode, PDF Mode & UI)
   ========================================================================== */

/* 1. Settings Page (`account.php`) — Exact DOM Selectors & Specificity Fixes */
html[data-theme="dark"] body .site-main .juf-account-page,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-account-title,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-account-title,
html[data-theme="dark"] body .site-main .juf-account-page h1.juf-account-title,
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-section h2,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-section h2,
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-accordion > summary,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-accordion > summary {
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page p.juf-account-intro,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page p.juf-account-intro,
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-section > p,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-section > p,
html[data-theme="dark"] body .site-main .juf-account-page .juf-field-hint,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-field-hint {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .account-profile-nav a,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .account-profile-nav a {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .account-profile-nav span[aria-current="page"],
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .account-profile-nav span[aria-current="page"],
html[data-theme="dark"] body .site-main .juf-account-page .account-profile-nav a:hover,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .account-profile-nav a:hover {
    background: #2C3037 !important;
    border-color: #5C73C9 !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-section,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-section,
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-accordion,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-accordion {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-accordion.is-danger-accordion,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-accordion.is-danger-accordion {
    background: rgba(176, 57, 43, 0.10) !important;
    border-color: rgba(235, 111, 96, 0.36) !important;
    color: #F6C6C0 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-accordion.is-danger-accordion > summary,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-accordion.is-danger-accordion > summary {
    color: #F59E94 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-form label,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form label,
html[data-theme="dark"] body .site-main .juf-account-page .juf-checkbox-row,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-checkbox-row,
html[data-theme="dark"] body .site-main .juf-account-page .juf-checkbox-row span,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-checkbox-row span {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-form input[type="text"],
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-form input[type="email"],
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-form input[type="password"],
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-form textarea,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[type="text"],
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[type="email"],
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[type="password"],
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form textarea {
    background: #1C1F24 !important;
    border-color: #3A3F47 !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-settings-form input[disabled],
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[disabled] {
    background: #282C33 !important;
    border-color: #3A3F47 !important;
    color: #9E9990 !important;
    opacity: 0.85 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-account-secondary-btn,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-account-secondary-btn {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-account-danger-btn,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-account-danger-btn,
html[data-theme="dark"] body .site-main .juf-account-page .juf-account-danger-action,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-account-danger-action {
    background: rgba(176, 57, 43, 0.22) !important;
    border-color: rgba(235, 111, 96, 0.45) !important;
    color: #FFD2CC !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-account-alert.is-success,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-account-alert.is-success {
    background: rgba(46, 125, 91, 0.18) !important;
    border-color: rgba(110, 207, 160, 0.38) !important;
    color: #BCEAD3 !important;
}
html[data-theme="dark"] body .site-main .juf-account-page .juf-account-alert.is-error,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-account-page .juf-account-alert.is-error {
    background: rgba(176, 57, 43, 0.20) !important;
    border-color: rgba(235, 111, 96, 0.42) !important;
    color: #F9C8C2 !important;
}

/* PDF Mode for Settings Page (`account.php`) */
html[data-theme="pdf"] body .site-main .juf-account-page .juf-account-title,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-account-title,
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-section h2,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-section h2,
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-accordion > summary,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-accordion > summary,
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-form label,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form label,
html[data-theme="pdf"] body .site-main .juf-account-page .juf-checkbox-row,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-checkbox-row {
    color: #241E17 !important;
}
html[data-theme="pdf"] body .site-main .juf-account-page p.juf-account-intro,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page p.juf-account-intro,
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-section > p,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-section > p,
html[data-theme="pdf"] body .site-main .juf-account-page .juf-field-hint,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-field-hint {
    color: #5C4F42 !important;
}
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-section,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-section,
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-accordion,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-accordion,
html[data-theme="pdf"] body .site-main .juf-account-page .account-profile-nav a,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .account-profile-nav a {
    background: #EFE8DD !important;
    border-color: #D3C6B4 !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body .site-main .juf-account-page .account-profile-nav span[aria-current="page"],
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .account-profile-nav span[aria-current="page"] {
    background: #E2D8C8 !important;
    border-color: #B8A790 !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-form input[type="text"],
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-form input[type="email"],
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-form input[type="password"],
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-form textarea,
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[type="text"],
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[type="email"],
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[type="password"],
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form textarea {
    background: #F6F0E6 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body .site-main .juf-account-page .juf-settings-form input[disabled],
html[data-theme="pdf"] body.juf-2d-minimal .site-main .juf-account-page .juf-settings-form input[disabled] {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #6A5D4D !important;
}

/* 2. Profile (`profile.php`) & Member (`member.php`) Specificity Fixes */
html[data-theme="dark"] body .site-main #library-home .profile-premium-pass-v26.is-inactive,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-premium-pass-v26.is-inactive h3,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive h3 {
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-premium-pass-v26.is-inactive p,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive p {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-premium-pass-v26.is-inactive > div:first-child > span,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive > div:first-child > span {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="pdf"] body .site-main #library-home .profile-premium-pass-v26.is-inactive,
html[data-theme="pdf"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive {
    background: #EFE8DD !important;
    border-color: #D3C6B4 !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body .site-main #library-home .profile-premium-pass-v26.is-inactive h3,
html[data-theme="pdf"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive h3 {
    color: #241E17 !important;
}
html[data-theme="pdf"] body .site-main #library-home .profile-premium-pass-v26.is-inactive p,
html[data-theme="pdf"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive p {
    color: #5C4F42 !important;
}
html[data-theme="pdf"] body .site-main #library-home .profile-premium-pass-v26.is-inactive > div:first-child > span,
html[data-theme="pdf"] body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive > div:first-child > span {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-bio .profile-identity-meta,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-ig-hero-bio .profile-identity-meta {
    color: #A8A298 !important;
}
html[data-theme="pdf"] body .site-main #library-home .juf-ig-hero-bio .profile-identity-meta,
html[data-theme="pdf"] body.juf-2d-minimal .site-main #library-home .juf-ig-hero-bio .profile-identity-meta {
    color: #5C4F42 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-right h1,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-ig-hero-right h1 {
    color: #F4EFE6 !important;
}
html[data-theme="pdf"] body .site-main #library-home .juf-ig-hero-right h1,
html[data-theme="pdf"] body.juf-2d-minimal .site-main #library-home .juf-ig-hero-right h1 {
    color: #241E17 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-composer-series-details,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-composer-series-details {
    background: #262A30 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-composer-series-details > summary,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-composer-series-details > summary {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-user-writings-status-pills a,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-status-pills a {
    background: #262A30 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-user-writings-status-pills a.is-active,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-status-pills a.is-active {
    background: #3346A8 !important;
    border-color: #5C73C9 !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-user-writings-search select,
html[data-theme="dark"] body .site-main #library-home .juf-user-writings-search input[type="search"],
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-search select,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-search input[type="search"] {
    background: #1C1F24 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

/* 3. Login & Registration (`login.php`, `auth-polish-v32.css`) Fixes */
html[data-theme="dark"] body.juf-reader-auth-page {
    --juf-auth-bg: #1B1E23 !important;
    --juf-auth-card: #23262B !important;
    --juf-auth-ink: #F4EFE6 !important;
    --juf-auth-text: #D6D1C7 !important;
    --juf-auth-muted: #A8A298 !important;
    --juf-auth-line: #3A3F47 !important;
    --juf-auth-line-strong: #4B525E !important;
    --juf-auth-input: #1C1F24 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-panel-logo-v31 img {
    filter: brightness(0) invert(0.92) !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-heading-v27 #reader-auth-title,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-field-v27 > span:first-child {
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-heading-v27 p,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-switch-v27,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-divider-v31 span {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .juf-password-toggle {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .juf-password-toggle:hover,
html[data-theme="dark"] body.juf-reader-auth-page .juf-password-toggle:focus-visible {
    background: #353A43 !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-socials-v31 :where(button, a) {
    background: #262A30 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-socials-v31 button:disabled {
    background: #202329 !important;
    border-color: #343942 !important;
    color: #8F8A80 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-alert-v27.is-error {
    background: rgba(176, 57, 43, 0.20) !important;
    border-color: rgba(235, 111, 96, 0.42) !important;
    color: #F9C8C2 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-alert-v27.is-success {
    background: rgba(46, 125, 91, 0.18) !important;
    border-color: rgba(110, 207, 160, 0.38) !important;
    color: #BCEAD3 !important;
}

/* PDF Mode for Login & Registration (`login.php`) */
html[data-theme="pdf"] body.juf-reader-auth-page {
    --juf-auth-bg: #E6DDD0 !important;
    --juf-auth-card: #EFE8DD !important;
    --juf-auth-ink: #241E17 !important;
    --juf-auth-text: #3A3025 !important;
    --juf-auth-muted: #5C4F42 !important;
    --juf-auth-line: #D3C6B4 !important;
    --juf-auth-line-strong: #C2B29C !important;
    --juf-auth-input: #F6F0E6 !important;
}
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-heading-v27 #reader-auth-title,
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-field-v27 > span:first-child {
    color: #241E17 !important;
}
html[data-theme="pdf"] body.juf-reader-auth-page .juf-password-toggle,
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-socials-v31 :where(button, a) {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}

/* 4. Custom Select Dropdowns (`jufbook-control-system.css`) Specificity Fix */
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-trigger,
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-trigger:hover,
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-trigger:focus-visible,
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select.is-open .juf-select-trigger {
    background: #23262B !important;
    border-color: #4A515D !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-list {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-option {
    color: #ECE8E1 !important;
    background: transparent !important;
}
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-option:hover,
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-option:focus-visible,
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-option[aria-selected="true"] {
    background: #2F3540 !important;
    color: #FFFFFF !important;
}

/* 5. Audiobooks & Audio Detail (`audiobooks.php`, `audiobook.php`, `audiobook-premium-polish.css`) */
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select > .juf-select-trigger,
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select > .juf-select-trigger:hover,
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select.is-open > .juf-select-trigger {
    background: #262A30 !important;
    border-color: #3A3F47 !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-value {
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-list {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-option {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-option:hover,
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-option[aria-selected="true"] {
    background: #2F3540 !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] body.audio-detail-page .audio-playlist-section,
html[data-theme="dark"] body.audiobook-page .audio-hub-hero-v2,
html[data-theme="dark"] body.audiobook-page .audio-hub-featured,
html[data-theme="dark"] body.audiobook-page .audio-context-strip,
html[data-theme="dark"] body.audiobook-page .audio-schema-note {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.audio-detail-page .audio-detail-info h1.page-section-title,
html[data-theme="dark"] body.audio-detail-page .audio-playlist-heading h2.page-section-title,
html[data-theme="dark"] body.audio-detail-page .audio-track-copy strong,
html[data-theme="dark"] body.audiobook-page .audio-hub-hero-copy h1,
html[data-theme="dark"] body.audiobook-page .audio-hub-featured-copy h2,
html[data-theme="dark"] body.audiobook-page .audio-context-copy strong {
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body.audio-detail-page .audio-detail-author,
html[data-theme="dark"] body.audio-detail-page .audio-detail-desc,
html[data-theme="dark"] body.audio-detail-page .audio-track-copy small,
html[data-theme="dark"] body.audiobook-page .audio-hub-hero-copy p,
html[data-theme="dark"] body.audiobook-page .audio-hub-featured-author,
html[data-theme="dark"] body.audiobook-page .audio-hub-featured-desc {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body.audio-detail-page .audio-track-provider,
html[data-theme="dark"] body.audiobook-page .audio-context-clear {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

/* PDF Mode for Audiobooks & Audio Detail */
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .juf-select > .juf-select-trigger,
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-list,
html[data-theme="pdf"] body.audio-detail-page .audio-playlist-section,
html[data-theme="pdf"] body.audiobook-page .audio-hub-hero-v2,
html[data-theme="pdf"] body.audiobook-page .audio-hub-featured,
html[data-theme="pdf"] body.audiobook-page .audio-context-strip,
html[data-theme="pdf"] body.audiobook-page .audio-schema-note {
    background: #EFE8DD !important;
    border-color: #D3C6B4 !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-value,
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .juf-select .juf-select-option,
html[data-theme="pdf"] body.audio-detail-page .audio-detail-info h1.page-section-title,
html[data-theme="pdf"] body.audio-detail-page .audio-playlist-heading h2.page-section-title,
html[data-theme="pdf"] body.audio-detail-page .audio-track-copy strong {
    color: #241E17 !important;
}
html[data-theme="pdf"] body.audio-detail-page .audio-track-provider,
html[data-theme="pdf"] body.audiobook-page .audio-context-clear {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}

/* 6. Community Writings (`writings.php`) & Review Stream (`reviews.php`) */
html[data-theme="dark"] body .site-main .juf-medium-post-foot .juf-fb-card-stat,
html[data-theme="dark"] body.juf-2d-minimal .site-main .juf-medium-post-foot .juf-fb-card-stat {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-post-foot .juf-social-read-btn:hover,
html[data-theme="dark"] body .site-main .juf-medium-font-btn:hover {
    background: #2C3037 !important;
    border-color: #4A515D !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body .site-main .juf-writing-engagement-bar,
html[data-theme="dark"] body .site-main .juf-writing-comments-section,
html[data-theme="dark"] body .site-main .juf-writing-comment-item,
html[data-theme="dark"] body .site-main .juf-writing-comment-login-prompt,
html[data-theme="dark"] body .site-main .juf-writing-report-popover,
html[data-theme="dark"] body .site-main .juf-home-writings-empty {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-writing-react-btn,
html[data-theme="dark"] body .site-main .juf-writing-util-btn,
html[data-theme="dark"] body .site-main .juf-home-writings-all-btn {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-writing-flash.is-success {
    background: rgba(46, 125, 91, 0.18) !important;
    border-color: rgba(110, 207, 160, 0.38) !important;
    color: #BCEAD3 !important;
}
html[data-theme="dark"] body .site-main .juf-writing-flash.is-error {
    background: rgba(176, 57, 43, 0.20) !important;
    border-color: rgba(235, 111, 96, 0.42) !important;
    color: #F9C8C2 !important;
}
html[data-theme="dark"] body {
    --review-ink: #F4EFE6 !important;
    --review-muted: #B6B0A6 !important;
}
html[data-theme="pdf"] body {
    --review-ink: #241E17 !important;
    --review-muted: #5C4F42 !important;
}

/* 7. Authors Directory & Hero (`authors.php`, `authors-premium.css`, `includes/header.php`) */
html[data-theme="dark"] body.authors-page {
    --avatar-paper: #2C3037 !important;
    --avatar-ink: #F4EFE6 !important;
    --avatar-border: #3A3F47 !important;
}
html[data-theme="dark"] body.authors-page .juf-authors-cinematic-hero .hero-slide-author {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body.authors-page .juf-authors-cinematic-hero .hero-slide-author strong {
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body.authors-page .juf-author-directory-role {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #D6D1C7 !important;
}
html[data-theme="dark"] body.authors-page .juf-author-directory-summary,
html[data-theme="dark"] body.authors-page .juf-author-discovery-head-shared .section-view-all {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body.authors-page .juf-author-literary-initial {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #F4EFE6 !important;
}
html[data-theme="pdf"] body.authors-page {
    --avatar-paper: #E2D8C8 !important;
    --avatar-ink: #241E17 !important;
    --avatar-border: #CBBBA6 !important;
}
html[data-theme="pdf"] body.authors-page .juf-author-directory-role,
html[data-theme="pdf"] body.authors-page .juf-author-literary-initial {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}

/* 8. Premium Plans (`premium.php`) & Checkout (`checkout.php`) */
html[data-theme="dark"] body.premium-page .premium-plan-card a.premium-cta-btn:not(.is-primary) {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body.premium-page .premium-comparison-table thead th,
html[data-theme="dark"] body.premium-page .premium-comparison-table th:first-child,
html[data-theme="dark"] body.premium-page .premium-how-grid article {
    background: #262A30 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="pdf"] body.premium-page .premium-plan-card a.premium-cta-btn:not(.is-primary),
html[data-theme="pdf"] body.premium-page .premium-comparison-table thead th,
html[data-theme="pdf"] body.premium-page .premium-comparison-table th:first-child,
html[data-theme="pdf"] body.premium-page .premium-how-grid article {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .checkout-method,
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .checkout-security,
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .checkout-mode-note,
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .juf-checkout-back-v32,
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .juf-checkout-lock-v32 {
    background: #262A30 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="pdf"] body.juf-checkout-reference-page-v32,
html[data-theme="pdf"] body.juf-checkout-reference-page-v32 .juf-checkout-page-v32 {
    background: #E6DDD0 !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body.juf-checkout-reference-page-v32 .juf-checkout-shell-v32,
html[data-theme="pdf"] body.juf-checkout-reference-page-v32 .juf-checkout-form-panel-v32,
html[data-theme="pdf"] body.juf-checkout-reference-page-v32 .juf-checkout-summary-card-v32,
html[data-theme="pdf"] body.juf-checkout-reference-page-v32 .checkout-method,
html[data-theme="pdf"] body.juf-checkout-reference-page-v32 .checkout-security {
    background: #EFE8DD !important;
    border-color: #D3C6B4 !important;
    color: #241E17 !important;
}

/* 9. PDF Mode White-on-Parchment & High-Specificity Search Input Fixes */
html[data-theme="pdf"] body .juf-continue-reading-card strong,
html[data-theme="pdf"] body .juf-continue-reading-card .juf-continue-reading-title {
    color: #241E17 !important;
}
html[data-theme="pdf"] body .juf-continue-reading-card em,
html[data-theme="pdf"] body .juf-continue-reading-card .juf-continue-reading-meta,
html[data-theme="pdf"] body .juf-continue-reading-card .juf-continue-reading-sub {
    color: #5C4F42 !important;
}
html[data-theme="pdf"] body :is(
    #juf-global-search-input,
    #juf-books-live-search-input,
    #juf-authors-live-search-input,
    #juf-audio-live-search-input,
    #juf-premium-live-search-input,
    #juf-reviews-live-search-input,
    #juf-writings-live-search-input,
    input[type="search"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="url"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select
):not(#juf-ex-q):not(.juf-ex-search-box input) {
    background-color: #F6F0E6 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body :is(
    #juf-global-search-input,
    #juf-books-live-search-input,
    #juf-authors-live-search-input,
    #juf-audio-live-search-input,
    #juf-premium-live-search-input,
    #juf-reviews-live-search-input,
    #juf-writings-live-search-input,
    input[type="search"],
    input[type="text"],
    textarea
)::placeholder {
    color: #6E604F !important;
}

html[data-theme="pdf"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs {
    border-top-color: #D3C6B4 !important;
}
html[data-theme="pdf"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
    color: #5C4F42 !important;
}
html[data-theme="pdf"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] {
    color: #241E17 !important;
    border-bottom-color: #4A3B2C !important;
    background: rgba(74, 59, 44, 0.08) !important;
}
html[data-theme="pdf"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] .reader-nav-icon,
html[data-theme="pdf"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a[aria-current="page"] .reader-nav-icon svg {
    color: #241E17 !important;
}

/* 10. Profile Stat Icons (`1000171737.jpg` bright `#E4E6EC` boxes next to ১২ / ১৩), Avatars, Pagination & Filter Pseudo-Elements */
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(1) .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(2) .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(3) .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(4) .profile-stat-icon,
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(5) .profile-stat-icon {
    background: #2C313A !important;
    border-color: #3E4552 !important;
    color: #9FB0F5 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a .profile-stat-icon svg {
    color: #9FB0F5 !important;
    stroke: currentColor !important;
}
html[data-theme="pdf"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a .profile-stat-icon,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(1) .profile-stat-icon,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(2) .profile-stat-icon,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(3) .profile-stat-icon,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(4) .profile-stat-icon,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(5) .profile-stat-icon {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #3A2E21 !important;
}
html[data-theme="dark"] body.juf-homepage #authors .author-circle-disc:not(.author-view-all-disc),
html[data-theme="dark"] body .juf-details-author-avatar,
html[data-theme="dark"] body .reader-identity-avatar,
html[data-theme="dark"] body #library-home .profile-author-avatar,
html[data-theme="dark"] body .profile-author-avatar {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #F4EFE6 !important;
}
html[data-theme="pdf"] body.juf-homepage #authors .author-circle-disc:not(.author-view-all-disc),
html[data-theme="pdf"] body .juf-details-author-avatar,
html[data-theme="pdf"] body .reader-identity-avatar,
html[data-theme="pdf"] body #library-home .profile-author-avatar,
html[data-theme="pdf"] body .profile-author-avatar {
    background: #E2D8C8 !important;
    border-color: #CBBBA6 !important;
    color: #241E17 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-heading-link {
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-card .profile-reading-position,
html[data-theme="dark"] body .site-main #library-home .profile-continue-card .profile-last-read,
html[data-theme="dark"] body .pagination-numbers .page-num-ellipsis,
html[data-theme="dark"] body .category-pagination > span.juf-pagination-ellipsis,
html[data-theme="dark"] body .category-pagination > span:not(.active):not([aria-current="page"]) {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-dropdown.is-open .juf-modern-dropdown-trigger,
html[data-theme="dark"] body.juf-books-page .juf-books-genre-pill:hover,
html[data-theme="dark"] body.juf-books-page .juf-books-genre-pill:focus-visible {
    background: #2C3037 !important;
    border-color: #4A515D !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields)::before {
    background: #343A44 !important;
}
html[data-theme="pdf"] body :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields)::before {
    background: #D3C6B4 !important;
}


/* ==========================================================================
   Build 593 — 5-Step Deep Audit: Scroll Physics, Touch-Action, Slider Drag
   & GPU Compositing Optimization
   ========================================================================== */

/* 1. Single Canonical Scroll Root (Prevents dual html/body scroll containers & broken sticky headers on mobile) */
html {
    overflow-x: clip !important;
    scroll-behavior: auto !important;
}
body {
    overflow-x: clip !important;
}

/* 2. Fix Sticky Reader Toolbar Blocking Vertical Touch Scroll on read.php */
body.reader-page .reader-toolbar,
body.reader-page .reader-toolbar-actions {
    touch-action: pan-x pan-y manipulation !important;
}

/* 3. Smooth 60fps Horizontal Carousels & Sliders Without Fighting Mouse Drag or Diagonal Touch Scroll */
.juf-homepage :where(.home-author-premium-rail, .home-audiobook-media-track, .home-genre-visual-track, .authors-circle-slider-track, .pastel-authors-slider-track, .audiobook-slider-track, .genres-slider-track),
.authors-page [data-author-category-grid],
.juf-books-page [data-book-category-track],
.juf-author-alphabet-links,
.approved-review-list,
#pastel-track,
#audio-track,
#genre-track,
#authors-circle-track,
#writings-track {
    scroll-behavior: auto !important;
    scroll-snap-type: x proximity !important;
    touch-action: pan-x pan-y !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Disable snap & text-selection immediately while desktop mouse-dragging a slider */
.is-dragging,
.is-dragging * {
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* 4. Eliminate Multi-Card backdrop-filter GPU Overdraw Stutter During Vertical Page Scroll */
.juf-homepage #genres .home-book-category-card .genre-graphic-copy,
.juf-books-page .juf-catalog-badges span,
.audiobook-page .audio-hub-count {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Promote sticky header & bottom navigation to isolated GPU layers without layout thrashing */
.juf-header-modern,
.juf-header-v24,
.juf-yt-bottom-nav,
body.reader-page .reader-toolbar,
body.reader-page .reader-mobile-nav {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


/* ============================================================================
   Build 594 — Complete 38-Page DOM & 44-File CSS Cascade Audit Fix
   Resolves all remaining Dark Mode light-surface leaks, Dark Mode dark-text
   leaks, PDF Mode surface/text leaks, and Admin-variable leaks across every
   public, auth, reader, profile, audiobook, checkout, and policy page.
   ============================================================================ */

/* 1. Global Admin CSS Variable Fallbacks on Public Pages (Fixes jufbook-control-system.css pagination & forms) */
html[data-theme="dark"],
html[data-theme="dark"] body {
    --adm-bg: #1E2025 !important;
    --adm-surface: #262A30 !important;
    --adm-surface-soft: #2D323B !important;
    --adm-border: #393F4A !important;
    --adm-text: #F4EFE6 !important;
    --adm-text-muted: #B6B0A6 !important;
}

html[data-theme="pdf"],
html[data-theme="pdf"] body {
    --adm-bg: #E6DDD0 !important;
    --adm-surface: #EFE8DD !important;
    --adm-surface-soft: #E3D7C5 !important;
    --adm-border: rgba(108, 92, 72, 0.24) !important;
    --adm-text: #241E17 !important;
    --adm-text-muted: #5C5042 !important;
}

/* 2. Complete Dark Mode Surface Overrides (Eliminates all 58 remaining light surfaces in Dark Mode) */
html[data-theme="dark"] .approved-review-card,
html[data-theme="dark"] .approved-review-empty,
html[data-theme="dark"] .approved-reviews-heading span,
html[data-theme="dark"] .audio-collection-card-art,
html[data-theme="dark"] .audio-collection-hero-cover,
html[data-theme="dark"] .audio-empty-icon,
html[data-theme="dark"] .audio-library-table-head,
html[data-theme="dark"] .audio-narrator-hero-avatar,
html[data-theme="dark"] .audio-pagination a,
html[data-theme="dark"] .author-view-all-disc,
html[data-theme="dark"] .checkout-error,
html[data-theme="dark"] .checkout-outcome.is-cancelled,
html[data-theme="dark"] .checkout-outcome.is-failed,
html[data-theme="dark"] .checkout-outcome.is-pending,
html[data-theme="dark"] .contact-field select,
html[data-theme="dark"] .contact-info-list li,
html[data-theme="dark"] .home-book-category-media,
html[data-theme="dark"] .home-library-empty,
html[data-theme="dark"] .juf-author-alphabet span,
html[data-theme="dark"] .juf-author-genre-empty-tiles i,
html[data-theme="dark"] .juf-books-filter input,
html[data-theme="dark"] .juf-books-filter select,
html[data-theme="dark"] .juf-control-pagination a,
html[data-theme="dark"] .juf-nav,
html[data-theme="dark"] .juf-public-empty-icon,
html[data-theme="dark"] .juf-publication-facts div,
html[data-theme="dark"] .juf-rich-public-content blockquote,
html[data-theme="dark"] .juf-search-audio-play,
html[data-theme="dark"] .juf-social-read-btn,
html[data-theme="dark"] .profile-follow-strip-dedicated button,
html[data-theme="dark"] .profile-status-chip.is-error,
html[data-theme="dark"] .reader-auth-field-v27 input,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-field-v27 input,
html[data-theme="dark"] .support-public-compose textarea {
    background: #262A30 !important;
    background-image: none !important;
    border-color: #393F4A !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] .audiobook-page,
html[data-theme="dark"] .checkout-page,
html[data-theme="dark"] .juf-checkout-reference-page-v32,
html[data-theme="dark"] .juf-reader-auth-page,
html[data-theme="dark"] body.juf-reader-auth-page {
    background: #1E2025 !important;
    background-image: none !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] .juf-header-modern {
    background: rgba(30, 32, 37, 0.96) !important;
    border-color: #353B46 !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] .hero-art-mesh-gradient,
html[data-theme="dark"] .hero-cinematic-stage.hero-empty-state,
html[data-theme="dark"] .home-book-category-fallback {
    background: linear-gradient(135deg, #23272E 0%, #2B303A 55%, #1E2127 100%) !important;
    border-color: #393F4A !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] .juf-app-dark-switch-knob {
    background: #23272E !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] .audio-filter-fields::-webkit-scrollbar-thumb,
html[data-theme="dark"] .juf-author-filter-row::-webkit-scrollbar-thumb,
html[data-theme="dark"] .juf-control-popover::-webkit-scrollbar-thumb,
html[data-theme="dark"] .juf-home-writings-slider::-webkit-scrollbar-thumb {
    background: #3D4452 !important;
}

html[data-theme="dark"] .chip.prem {
    background: rgba(214, 180, 112, 0.18) !important;
    border-color: rgba(214, 180, 112, 0.34) !important;
    color: #F0D699 !important;
}

html[data-theme="dark"] .reader-highlight-choice.is-amber,
html[data-theme="dark"] .reader-highlight-choice.is-rose {
    background: #2D323B !important;
    border-color: #454C59 !important;
    color: #F4EFE6 !important;
}

/* Sticky Audio Player Controls in Dark Mode */
html[data-theme="dark"] body.juf-2d-minimal #juf-sticky-audio-player .juf-player-controls button,
html[data-theme="dark"] #juf-sticky-audio-player .juf-player-controls button {
    background: #2D323B !important;
    border-color: #3E4552 !important;
    color: #F4EFE6 !important;
}

/* Author Profile Hero & Person Word-Guide / Tags on author.php & authors.php in Dark Mode */
html[data-theme="dark"] body.author-details-page .juf-author-profile-hero,
html[data-theme="dark"] .juf-author-profile-hero {
    background: #242830 !important;
    border-color: #383E49 !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] body.author-details-page .juf-author-profile-hero .juf-biography-hero-media-wash,
html[data-theme="dark"] .juf-author-profile-hero .juf-biography-hero-media-wash {
    background: linear-gradient(90deg, rgba(36, 40, 48, 0.97) 0%, rgba(36, 40, 48, 0.88) 44%, rgba(36, 40, 48, 0.56) 74%, rgba(36, 40, 48, 0.30) 100%) !important;
}
html[data-theme="dark"] .juf-person .person-word-guide dl.person-word-guide-grid > div,
html[data-theme="dark"] .juf-person .person-literary-avatar,
html[data-theme="dark"] .juf-person .person-tags a {
    background: #262A30 !important;
    border-color: #393F4A !important;
    color: #F4EFE6 !important;
}

/* Book Details Quiz Tab in Dark Mode (V155 box-free editorial harmony) */
html[data-theme="dark"] .juf-book-quiz-strip,
html[data-theme="dark"] .juf-book-quiz-qitem,
html[data-theme="dark"] .juf-book-quiz-qitem > summary,
html[data-theme="dark"] .juf-book-quiz-qbody {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
    color: #F4EFE6 !important;
}
html[data-theme="dark"] .juf-book-quiz-qitem > summary small {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #C9C3B9 !important;
}
html[data-theme="dark"] .juf-book-quiz-qexp {
    background: transparent !important;
    color: #D8D3CA !important;
}
html[data-theme="dark"] .juf-book-quiz-strip-copy p {
    color: #B6B0A6 !important;
}

/* 3. Complete Dark Mode Typography Overrides (Eliminates all 77 remaining dark-text leaks in Dark Mode) */
html[data-theme="dark"] .audio-collection-card-art i,
html[data-theme="dark"] .audio-context-strip a,
html[data-theme="dark"] .audio-context-strip strong,
html[data-theme="dark"] .audio-details h4,
html[data-theme="dark"] .audio-hub-featured-empty strong,
html[data-theme="dark"] .audio-shelf-heading a,
html[data-theme="dark"] .checkout-error,
html[data-theme="dark"] .checkout-outcome.is-cancelled,
html[data-theme="dark"] .checkout-outcome.is-failed,
html[data-theme="dark"] .contact-field select,
html[data-theme="dark"] .hero-empty-book-back,
html[data-theme="dark"] .home-author-discovery-card.is-visual,
html[data-theme="dark"] .home-library-empty strong,
html[data-theme="dark"] .juf-author-genre-empty strong,
html[data-theme="dark"] .juf-checkout-access-v32 strong,
html[data-theme="dark"] .juf-review-signature,
html[data-theme="dark"] .juf-writing-reader-sheet,
html[data-theme="dark"] .juf-writings-reset-btn,
html[data-theme="dark"] .pastel-card h3,
html[data-theme="dark"] .premium-eyebrow,
html[data-theme="dark"] .premium-pass-muted span,
html[data-theme="dark"] .premium-plan-duration,
html[data-theme="dark"] .premium-section-heading span,
html[data-theme="dark"] .profile-hub-stats strong,
html[data-theme="dark"] .reader-review-report summary,
html[data-theme="dark"] .support-public-compose textarea {
    color: #F4EFE6 !important;
}

html[data-theme="dark"] .audio-collection-card-copy em,
html[data-theme="dark"] .audio-collection-tagline,
html[data-theme="dark"] .audio-context-strip em,
html[data-theme="dark"] .audio-context-strip span,
html[data-theme="dark"] .audio-details p,
html[data-theme="dark"] .audio-hub-count span,
html[data-theme="dark"] .audio-hub-featured-empty,
html[data-theme="dark"] .audio-library-table-head,
html[data-theme="dark"] .audio-narrator-name-en,
html[data-theme="dark"] .audio-pagination span,
html[data-theme="dark"] .audio-player-meta p,
html[data-theme="dark"] .audio-player-narrator,
html[data-theme="dark"] .audio-player-provider,
html[data-theme="dark"] .audio-shelf-heading span,
html[data-theme="dark"] .book-community-login-note,
html[data-theme="dark"] .home-library-empty,
html[data-theme="dark"] .juf-auth-field-icon-v32,
html[data-theme="dark"] .reader-auth-field-icon-v31,
html[data-theme="dark"] .reader-auth-field-icon-v31.juf-auth-field-icon-v32,
html[data-theme="dark"] .juf-author-hero-kicker,
html[data-theme="dark"] .juf-checkout-digital-note-v32 small,
html[data-theme="dark"] .juf-checkout-legal-v32,
html[data-theme="dark"] .juf-checkout-method-note-v32,
html[data-theme="dark"] .juf-checkout-panel-head-v32 p,
html[data-theme="dark"] .juf-checkout-panel-kicker-v32,
html[data-theme="dark"] .juf-checkout-product-copy-v32 small,
html[data-theme="dark"] .juf-checkout-section-head-v32 span,
html[data-theme="dark"] .juf-checkout-secure-v32,
html[data-theme="dark"] .juf-checkout-summary-rows-v32 div,
html[data-theme="dark"] .juf-checkout-unavailable-v296,
html[data-theme="dark"] .juf-fb-author-tag,
html[data-theme="dark"] .juf-fb-dot,
html[data-theme="dark"] .juf-footer-bottom-v24 p,
html[data-theme="dark"] .juf-part-tab span,
html[data-theme="dark"] .juf-public-rights-note small,
html[data-theme="dark"] .juf-public-rights-note span,
html[data-theme="dark"] .juf-social-composer-meta span,
html[data-theme="dark"] .juf-writer-follower-pill,
html[data-theme="dark"] .juf-writing-comment-login-prompt a,
html[data-theme="dark"] .notification-card-actions button,
html[data-theme="dark"] .notification-empty-icon,
html[data-theme="dark"] .notification-pagination,
html[data-theme="dark"] .pastel-card p,
html[data-theme="dark"] .premium-plan-access-type,
html[data-theme="dark"] .profile-card-copy small,
html[data-theme="dark"] .profile-listen-meta time,
html[data-theme="dark"] .profile-note-panel small,
html[data-theme="dark"] .profile-premium-pass-meta-v26 small,
html[data-theme="dark"] .profile-status-chip.is-error,
html[data-theme="dark"] .support-public-entry time {
    color: #B6B0A6 !important;
}

/* 4. Complete PDF Mode Surface & Text Overrides (Eliminates all 104 remaining white/gray/dark surface leaks in PDF Mode) */
html[data-theme="pdf"] #reader-audio-card.reader-audio-card.reader-audio-player,
html[data-theme="pdf"] .approved-review-card,
html[data-theme="pdf"] .audio-filter-bar input,
html[data-theme="pdf"] .audio-filter-bar select,
html[data-theme="pdf"] .audio-media-card,
html[data-theme="pdf"] .audio-open-circle,
html[data-theme="pdf"] .audio-pill-card,
html[data-theme="pdf"] .audio-play-circle,
html[data-theme="pdf"] .author-nav-arrow,
html[data-theme="pdf"] .books-showcase-count-pill,
html[data-theme="pdf"] .checkout-outcome.is-pending,
html[data-theme="pdf"] .contact-field select,
html[data-theme="pdf"] .contact-info-card,
html[data-theme="pdf"] .home-book-category-media,
html[data-theme="pdf"] .juf-app-dark-switch-knob,
html[data-theme="pdf"] .juf-auth-recovery-alert.is-success,
html[data-theme="pdf"] .juf-auth-recovery-field input,
html[data-theme="pdf"] .juf-author-alphabet span,
html[data-theme="pdf"] .juf-author-genre-empty-tiles i,
html[data-theme="pdf"] .juf-books-filter input,
html[data-theme="pdf"] .juf-books-filter select,
html[data-theme="pdf"] .juf-checkout-back-v32,
html[data-theme="pdf"] .juf-checkout-digital-note-v32,
html[data-theme="pdf"] .juf-checkout-field-box-v32,
html[data-theme="pdf"] .juf-checkout-lock-v32,
html[data-theme="pdf"] .juf-checkout-method-v32,
html[data-theme="pdf"] .juf-checkout-method-v32.is-selected,
html[data-theme="pdf"] .juf-checkout-panel-v32,
html[data-theme="pdf"] .juf-checkout-product-v32,
html[data-theme="pdf"] .juf-editorial-pick-badge,
html[data-theme="pdf"] .juf-email-badge.is-verified,
html[data-theme="pdf"] .juf-fb-report-inline-form select,
html[data-theme="pdf"] .juf-fb-report-inline-form textarea,
html[data-theme="pdf"] .juf-home-writing-slide-card,
html[data-theme="pdf"] .juf-inline-password-action input,
html[data-theme="pdf"] .juf-nav,
html[data-theme="pdf"] .juf-part-tab,
html[data-theme="pdf"] .juf-policy-form input,
html[data-theme="pdf"] .juf-policy-form select,
html[data-theme="pdf"] .juf-policy-form textarea,
html[data-theme="pdf"] .juf-policy-success,
html[data-theme="pdf"] .juf-public-empty-state,
html[data-theme="pdf"] .juf-public-rights-note,
html[data-theme="pdf"] .juf-review-initial,
html[data-theme="pdf"] .juf-search-audio-play,
html[data-theme="pdf"] .juf-social-btn-draft,
html[data-theme="pdf"] .juf-social-composer-type select,
html[data-theme="pdf"] .juf-toc-search input,
html[data-theme="pdf"] .juf-user-writings-search select,
html[data-theme="pdf"] .juf-write-sheet-bar,
html[data-theme="pdf"] .juf-writing-flash.is-success,
html[data-theme="pdf"] .juf-writings-search-bar input,
html[data-theme="pdf"] .juf-writings-search-bar select,
html[data-theme="pdf"] .notification-empty,
html[data-theme="pdf"] .premium-billing-toggle,
html[data-theme="pdf"] .profile-follow-strip article,
html[data-theme="pdf"] .profile-hub-avatar,
html[data-theme="pdf"] .profile-hub-empty.is-dark,
html[data-theme="pdf"] .profile-listening-card,
html[data-theme="pdf"] .profile-note-panel,
html[data-theme="pdf"] .profile-progress,
html[data-theme="pdf"] .profile-purchase-row,
html[data-theme="pdf"] .profile-review-list article,
html[data-theme="pdf"] .profile-status-chip.is-approved,
html[data-theme="pdf"] .reader-annotations-drawer,
html[data-theme="pdf"] .reader-auth-alert-v27.is-success,
html[data-theme="pdf"] .reader-auth-field-v27 input,
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-field-v27 input,
html[data-theme="pdf"] .reader-hero-frame,
html[data-theme="pdf"] .reader-highlight-choice.is-amber,
html[data-theme="pdf"] .reader-highlight-choice.is-rose,
html[data-theme="pdf"] .reader-mnav-btn,
html[data-theme="pdf"] .reader-review-report select,
html[data-theme="pdf"] .reader-settings-popover,
html[data-theme="pdf"] .reader-toc-drawer,
html[data-theme="pdf"] .reader-toolbar,
html[data-theme="pdf"] .support-public-compose textarea,
html[data-theme="pdf"] .support-public-entry {
    background: #EFE8DD !important;
    background-image: none !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] .juf-checkout-reference-page-v32,
html[data-theme="pdf"] .juf-reader-auth-page,
html[data-theme="pdf"] body.juf-reader-auth-page {
    background: #E6DDD0 !important;
    background-image: none !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] .juf-header-modern,
html[data-theme="pdf"] .juf-yt-bottom-nav {
    background: rgba(234, 225, 212, 0.96) !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] .hero-art-mesh-gradient,
html[data-theme="pdf"] .hero-cinematic-stage.hero-empty-state {
    background: linear-gradient(135deg, #EFE8DD 0%, #E6DDD0 56%, #DFD3C3 100%) !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] .audio-filter-fields::-webkit-scrollbar-thumb,
html[data-theme="pdf"] .juf-author-filter-row::-webkit-scrollbar-thumb,
html[data-theme="pdf"] .juf-control-popover::-webkit-scrollbar-thumb,
html[data-theme="pdf"] .juf-home-writings-slider::-webkit-scrollbar-thumb {
    background: #C7B9A5 !important;
}

html[data-theme="pdf"] body.author-details-page .juf-author-profile-hero,
html[data-theme="pdf"] .juf-author-profile-hero {
    background: #EFE8DD !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body.author-details-page .juf-author-profile-hero .juf-biography-hero-media-wash,
html[data-theme="pdf"] .juf-author-profile-hero .juf-biography-hero-media-wash {
    background: linear-gradient(90deg, rgba(239, 232, 221, 0.97) 0%, rgba(239, 232, 221, 0.88) 44%, rgba(239, 232, 221, 0.56) 74%, rgba(239, 232, 221, 0.30) 100%) !important;
}
html[data-theme="pdf"] .juf-person .person-word-guide dl.person-word-guide-grid > div,
html[data-theme="pdf"] .juf-person .person-literary-avatar,
html[data-theme="pdf"] .juf-person .person-tags a {
    background: #EFE8DD !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] .juf-book-quiz-strip,
html[data-theme="pdf"] .juf-book-quiz-qitem,
html[data-theme="pdf"] .juf-book-quiz-qitem > summary,
html[data-theme="pdf"] .juf-book-quiz-qbody,
body[data-pdf-mode="pdf"] .juf-book-quiz-strip,
body[data-pdf-mode="pdf"] .juf-book-quiz-qitem,
body[data-pdf-mode="pdf"] .juf-book-quiz-qitem > summary,
body[data-pdf-mode="pdf"] .juf-book-quiz-qbody {
    background: transparent !important;
    border-color: rgba(108, 92, 72, 0.20) !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] .juf-book-quiz-qitem > summary small,
body[data-pdf-mode="pdf"] .juf-book-quiz-qitem > summary small {
    background: rgba(108, 92, 72, 0.12) !important;
    border-color: rgba(108, 92, 72, 0.20) !important;
    color: #4B3E2F !important;
}
html[data-theme="pdf"] .juf-book-quiz-qexp,
body[data-pdf-mode="pdf"] .juf-book-quiz-qexp {
    background: transparent !important;
    color: #382F24 !important;
}

/* 5. High-Specificity ID/Compound Selector Overrides for Zero Cascade Leaks */
html[data-theme="dark"] .juf-app-dark-switch .juf-app-dark-switch-knob,
html[data-theme="dark"] .juf-app-dark-switch[aria-checked="true"] .juf-app-dark-switch-knob {
    background: #23272E !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-field-icon-v31.juf-auth-field-icon-v32,
html[data-theme="dark"] body.juf-admin-auth-page-v27 .admin-auth-input-wrap-v31 > .juf-auth-field-icon-v32,
html[data-theme="dark"] body.authors-page .juf-authors-cinematic-hero .juf-author-hero-kicker,
html[data-theme="dark"] .authors-page .juf-authors-cinematic-hero .juf-author-hero-kicker,
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-meta span {
    color: #B6B0A6 !important;
}

html[data-theme="pdf"] .juf-app-dark-switch .juf-app-dark-switch-knob,
html[data-theme="pdf"] .juf-app-dark-switch[aria-checked="true"] .juf-app-dark-switch-knob,
html[data-theme="pdf"] body .site-main .juf-email-badge.is-verified,
html[data-theme="pdf"] body .site-main .juf-clean-settings-shell .juf-email-badge.is-verified,
html[data-theme="pdf"] body .site-main .juf-inline-password-action input,
html[data-theme="pdf"] body .site-main .juf-clean-settings-shell .juf-inline-password-action input,
html[data-theme="pdf"] body .site-main #library-home .juf-social-btn-draft,
html[data-theme="pdf"] body .site-main #library-home .juf-social-composer-fields,
html[data-theme="pdf"] body .site-main #library-home .juf-social-composer-fields.juf-modern-writing-canvas,
html[data-theme="pdf"] body .site-main #library-home .juf-social-composer-type select,
html[data-theme="pdf"] body .site-main #library-home .juf-user-writings-search select,
html[data-theme="pdf"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-search select,
html[data-theme="pdf"] body.reader-page[data-reader-theme="pdf"] .reader-hero-frame,
html[data-theme="pdf"] body.reader-page:not([data-reader-theme="dark"]):not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]) .reader-hero-frame {
    background: #EFE8DD !important;
    background-image: none !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav,
html[data-theme="pdf"] body.juf-yt-nav-hidden:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav,
html[data-theme="pdf"] body.juf-header-hidden:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav {
    background: rgba(234, 225, 212, 0.96) !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    color: #241E17 !important;
}


/* ============================================================================
   Build 595 — Expanded DOM (Helpers + JS + Body-Class Scope + Live Customizer)
   Zero-Leak Cascade Authority Across Dark Mode & PDF Mode
   ============================================================================ */

/* 1. Expanded Public/Helper/JS Dark Mode Surface Overrides (70 selectors) */
html[data-theme="dark"] body .approved-reviews-heading>span, html[data-theme="dark"] .approved-reviews-heading>span,
html[data-theme="dark"] body .audio-filter-fields .juf-select-list::-webkit-scrollbar-thumb, html[data-theme="dark"] .audio-filter-fields .juf-select-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] body .audio-player-panel .juf-player-tools select, html[data-theme="dark"] .audio-player-panel .juf-player-tools select,
html[data-theme="dark"] body .audio-playlist, html[data-theme="dark"] .audio-playlist,
html[data-theme="dark"] body .audiobook-page .audio-category-chip>span, html[data-theme="dark"] .audiobook-page .audio-category-chip>span,
html[data-theme="dark"] body .audiobook-page .audio-hub-featured-author>span:first-child, html[data-theme="dark"] .audiobook-page .audio-hub-featured-author>span:first-child,
html[data-theme="dark"] body .authors-page .juf-author-directory-status, html[data-theme="dark"] .authors-page .juf-author-directory-status,
html[data-theme="dark"] body .authors-page .juf-author-genre-empty-tiles i:nth-child(2), html[data-theme="dark"] .authors-page .juf-author-genre-empty-tiles i:nth-child(2),
html[data-theme="dark"] body .authors-page .juf-author-genre-empty-tiles i:nth-child(3), html[data-theme="dark"] .authors-page .juf-author-genre-empty-tiles i:nth-child(3),
html[data-theme="dark"] body .btn-hero-cinematic-secondary, html[data-theme="dark"] .btn-hero-cinematic-secondary,
html[data-theme="dark"] body .category-pagination a, html[data-theme="dark"] .category-pagination a,
html[data-theme="dark"] body .category-pagination span, html[data-theme="dark"] .category-pagination span,
html[data-theme="dark"] body .contact-field input, html[data-theme="dark"] .contact-field input,
html[data-theme="dark"] body .hero-cinematic-arrow-btn, html[data-theme="dark"] .hero-cinematic-arrow-btn,
html[data-theme="dark"] body .juf-author-alphabet a, html[data-theme="dark"] .juf-author-alphabet a,
html[data-theme="dark"] body .juf-author-filter-row .juf-select-list::-webkit-scrollbar-thumb, html[data-theme="dark"] .juf-author-filter-row .juf-select-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] body .juf-catalog-empty, html[data-theme="dark"] .juf-catalog-empty,
html[data-theme="dark"] body .juf-catalog-heading>p, html[data-theme="dark"] .juf-catalog-heading>p,
html[data-theme="dark"] body .juf-control-popover .juf-select-list::-webkit-scrollbar-thumb, html[data-theme="dark"] .juf-control-popover .juf-select-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] body .juf-homepage #genres .home-book-category-media, html[data-theme="dark"] .juf-homepage #genres .home-book-category-media,
html[data-theme="dark"] body .juf-homepage .hero-bg-art-layer, html[data-theme="dark"] .juf-homepage .hero-bg-art-layer,
html[data-theme="dark"] body .juf-homepage .hero-thumb-card, html[data-theme="dark"] .juf-homepage .hero-thumb-card,
html[data-theme="dark"] body .juf-homepage .juf-footer-v24, html[data-theme="dark"] .juf-homepage .juf-footer-v24,
html[data-theme="dark"] body .juf-premium-nav-v24 span[aria-hidden="true"], html[data-theme="dark"] .juf-premium-nav-v24 span[aria-hidden="true"],
html[data-theme="dark"] body .juf-public-empty-state>.juf-public-empty-icon, html[data-theme="dark"] .juf-public-empty-state>.juf-public-empty-icon,
html[data-theme="dark"] body .juf-public-empty-state>div:last-child>a, html[data-theme="dark"] .juf-public-empty-state>div:last-child>a,
html[data-theme="dark"] body .juf-public-writings-tabs a, html[data-theme="dark"] .juf-public-writings-tabs a,
html[data-theme="dark"] body .juf-search-suggestions[aria-busy=true], html[data-theme="dark"] .juf-search-suggestions[aria-busy=true],
html[data-theme="dark"] body .juf-social-expanded-text, html[data-theme="dark"] .juf-social-expanded-text,
html[data-theme="dark"] body .juf-toc-expand, html[data-theme="dark"] .juf-toc-expand,
html[data-theme="dark"] body .page-num-btn, html[data-theme="dark"] .page-num-btn,
html[data-theme="dark"] body .premium-trust-grid article, html[data-theme="dark"] .premium-trust-grid article,
html[data-theme="dark"] body .profile-annotation-row, html[data-theme="dark"] .profile-annotation-row,
html[data-theme="dark"] body .profile-continue-card, html[data-theme="dark"] .profile-continue-card,
html[data-theme="dark"] body .profile-follow-strip article, html[data-theme="dark"] .profile-follow-strip article,
html[data-theme="dark"] body .profile-highlight-row, html[data-theme="dark"] .profile-highlight-row,
html[data-theme="dark"] body .profile-hub-avatar, html[data-theme="dark"] .profile-hub-avatar,
html[data-theme="dark"] body .profile-hub-empty, html[data-theme="dark"] .profile-hub-empty,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(1) .profile-stat-icon, html[data-theme="dark"] .profile-hub-stats a:nth-child(1) .profile-stat-icon,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(2) .profile-stat-icon, html[data-theme="dark"] .profile-hub-stats a:nth-child(2) .profile-stat-icon,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(3) .profile-stat-icon, html[data-theme="dark"] .profile-hub-stats a:nth-child(3) .profile-stat-icon,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(4) .profile-stat-icon, html[data-theme="dark"] .profile-hub-stats a:nth-child(4) .profile-stat-icon,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(5) .profile-stat-icon, html[data-theme="dark"] .profile-hub-stats a:nth-child(5) .profile-stat-icon,
html[data-theme="dark"] body .profile-hub-stats, html[data-theme="dark"] .profile-hub-stats,
html[data-theme="dark"] body .profile-identity-meta .is-premium, html[data-theme="dark"] .profile-identity-meta .is-premium,
html[data-theme="dark"] body .profile-listening-card, html[data-theme="dark"] .profile-listening-card,
html[data-theme="dark"] body .profile-progress, html[data-theme="dark"] .profile-progress,
html[data-theme="dark"] body .profile-purchase-row, html[data-theme="dark"] .profile-purchase-row,
html[data-theme="dark"] body .profile-quiet-action, html[data-theme="dark"] .profile-quiet-action,
html[data-theme="dark"] body .profile-rating-chip, html[data-theme="dark"] .profile-rating-chip,
html[data-theme="dark"] body .profile-review-list article, html[data-theme="dark"] .profile-review-list article,
html[data-theme="dark"] body .profile-section-title-icon, html[data-theme="dark"] .profile-section-title-icon,
html[data-theme="dark"] body .profile-shelf-card-v25, html[data-theme="dark"] .profile-shelf-card-v25,
html[data-theme="dark"] body .rating-distribution-track, html[data-theme="dark"] .rating-distribution-track,
html[data-theme="dark"] body .reader-desk-nav, html[data-theme="dark"] .reader-desk-nav,
html[data-theme="dark"] body .site-main .juf-email-badge.is-verified,
html[data-theme="dark"] body .site-main .juf-inline-password-action input,
html[data-theme="dark"] body .site-main .juf-settings-accordion.is-danger-accordion,
html[data-theme="dark"] body .site-main .juf-settings-form input[disabled],
html[data-theme="dark"] body .site-main .juf-settings-pill-link,
html[data-theme="dark"] body .site-main .juf-settings-secondary-btn,
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-player-timeline input[type="range"]::-moz-range-track,
html[data-theme="dark"] body.audiobook-page #juf-sticky-audio-player .juf-player-timeline input[type="range"]::-webkit-slider-runnable-track,
html[data-theme="dark"] body.juf-2d-minimal .hero-cinematic-stage,
html[data-theme="dark"] body.juf-2d-minimal .profile-hub-hero,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-password-wrap-v27 .juf-password-toggle,
html[data-theme="dark"] body.premium-page .premium-plan-card > a,
html[data-theme="dark"] body.premium-page .premium-plan-card a.premium-cta-btn,
html[data-theme="dark"] body.premium-page .premium-plan-card.is-current,
html[data-theme="dark"] body.reader-page #reader-content-body .reader-figure-portrait,
html[data-theme="dark"] #juf-live-customizer-drawer {
    background: #262A30 !important;
    background-image: none !important;
    border-color: #393F4A !important;
    color: #F4EFE6 !important;
}

/* 2. Expanded Public/Helper/JS Dark Mode Text & Placeholder Overrides (149 selectors) */
html[data-theme="dark"] body .audio-filter-fields :is(.juf-control-field > span:not(.sr-only), label > span:not(.sr-only)), html[data-theme="dark"] .audio-filter-fields :is(.juf-control-field > span:not(.sr-only), label > span:not(.sr-only)),
html[data-theme="dark"] body .audio-library-heading > div > span, html[data-theme="dark"] .audio-library-heading > div > span,
html[data-theme="dark"] body .audio-library-heading>div>span, html[data-theme="dark"] .audio-library-heading>div>span,
html[data-theme="dark"] body .audio-row-actions>a, html[data-theme="dark"] .audio-row-actions>a,
html[data-theme="dark"] body .audiobook-page .audio-category-chip>span, html[data-theme="dark"] .audiobook-page .audio-category-chip>span,
html[data-theme="dark"] body .audiobook-page .audio-collection-card, html[data-theme="dark"] .audiobook-page .audio-collection-card,
html[data-theme="dark"] body .audiobook-page .audio-context-strip>a, html[data-theme="dark"] .audiobook-page .audio-context-strip>a,
html[data-theme="dark"] body .audiobook-page .audio-context-strip>em, html[data-theme="dark"] .audiobook-page .audio-context-strip>em,
html[data-theme="dark"] body .audiobook-page .audio-context-strip>span, html[data-theme="dark"] .audiobook-page .audio-context-strip>span,
html[data-theme="dark"] body .audiobook-page .audio-context-strip>strong, html[data-theme="dark"] .audiobook-page .audio-context-strip>strong,
html[data-theme="dark"] body .audiobook-page .audio-hub-featured-copy>span, html[data-theme="dark"] .audiobook-page .audio-hub-featured-copy>span,
html[data-theme="dark"] body .audiobook-page .audio-hub-hero-copy .page-section-title, html[data-theme="dark"] .audiobook-page .audio-hub-hero-copy .page-section-title,
html[data-theme="dark"] body .audiobook-page .audio-hub-hero-copy>p, html[data-theme="dark"] .audiobook-page .audio-hub-hero-copy>p,
html[data-theme="dark"] body .audiobook-page .audio-library-heading span, html[data-theme="dark"] .audiobook-page .audio-library-heading span,
html[data-theme="dark"] body .audiobook-page .audio-library-heading>strong, html[data-theme="dark"] .audiobook-page .audio-library-heading>strong,
html[data-theme="dark"] body .audiobook-page .audio-music-section-head>a, html[data-theme="dark"] .audiobook-page .audio-music-section-head>a,
html[data-theme="dark"] body .audiobook-page .audio-music-section-head>div>span, html[data-theme="dark"] .audiobook-page .audio-music-section-head>div>span,
html[data-theme="dark"] body .audiobook-page .audio-player-expanded-head small, html[data-theme="dark"] .audiobook-page .audio-player-expanded-head small,
html[data-theme="dark"] body .audiobook-page .audio-player-expanded-head span, html[data-theme="dark"] .audiobook-page .audio-player-expanded-head span,
html[data-theme="dark"] body .audiobook-page .audio-player-meta .audio-player-narrator, html[data-theme="dark"] .audiobook-page .audio-player-meta .audio-player-narrator,
html[data-theme="dark"] body .audiobook-page .audio-queue-copy small, html[data-theme="dark"] .audiobook-page .audio-queue-copy small,
html[data-theme="dark"] body .audiobook-page .audio-row-author, html[data-theme="dark"] .audiobook-page .audio-row-author,
html[data-theme="dark"] body .audiobook-page .audio-row-copy h3, html[data-theme="dark"] .audiobook-page .audio-row-copy h3,
html[data-theme="dark"] body .audiobook-page .audio-row-index, html[data-theme="dark"] .audiobook-page .audio-row-index,
html[data-theme="dark"] body .audiobook-page .audio-shelf-heading>a, html[data-theme="dark"] .audiobook-page .audio-shelf-heading>a,
html[data-theme="dark"] body .author-circle-name, html[data-theme="dark"] .author-circle-name,
html[data-theme="dark"] body .author-circle-title, html[data-theme="dark"] .author-circle-title,
html[data-theme="dark"] body .authors-page .juf-author-category-card .home-author-discovery-kicker, html[data-theme="dark"] .authors-page .juf-author-category-card .home-author-discovery-kicker,
html[data-theme="dark"] body .authors-page .juf-author-new-book-author, html[data-theme="dark"] .authors-page .juf-author-new-book-author,
html[data-theme="dark"] body .authors-page .juf-author-new-book-desc, html[data-theme="dark"] .authors-page .juf-author-new-book-desc,
html[data-theme="dark"] body .authors-page .juf-author-new-book-meta span, html[data-theme="dark"] .authors-page .juf-author-new-book-meta span,
html[data-theme="dark"] body .book-community-score-number, html[data-theme="dark"] .book-community-score-number,
html[data-theme="dark"] body .book-rating-action h3, html[data-theme="dark"] .book-rating-action h3,
html[data-theme="dark"] body .book-under-author, html[data-theme="dark"] .book-under-author,
html[data-theme="dark"] body .book-under-title, html[data-theme="dark"] .book-under-title,
html[data-theme="dark"] body .btn-hero-cinematic-secondary, html[data-theme="dark"] .btn-hero-cinematic-secondary,
html[data-theme="dark"] body .contact-field label, html[data-theme="dark"] .contact-field label,
html[data-theme="dark"] body .hero-cinematic-arrow-btn, html[data-theme="dark"] .hero-cinematic-arrow-btn,
html[data-theme="dark"] body .hero-empty-state .hero-slide-desc, html[data-theme="dark"] .hero-empty-state .hero-slide-desc,
html[data-theme="dark"] body .hero-empty-state .hero-slide-title, html[data-theme="dark"] .hero-empty-state .hero-slide-title,
html[data-theme="dark"] body .juf-author-alphabet a, html[data-theme="dark"] .juf-author-alphabet a,
html[data-theme="dark"] body .juf-author-discovery-head>p, html[data-theme="dark"] .juf-author-discovery-head>p,
html[data-theme="dark"] body .juf-author-filter-row :is(.juf-control-field > span:not(.sr-only), label > span:not(.sr-only)), html[data-theme="dark"] .juf-author-filter-row :is(.juf-control-field > span:not(.sr-only), label > span:not(.sr-only)),
html[data-theme="dark"] body .juf-author-portrait-svg, html[data-theme="dark"] .juf-author-portrait-svg,
html[data-theme="dark"] body .juf-books-page .juf-books-filter .juf-control-result span, html[data-theme="dark"] .juf-books-page .juf-books-filter .juf-control-result span,
html[data-theme="dark"] body .juf-books-page .juf-books-filter .juf-control-result strong, html[data-theme="dark"] .juf-books-page .juf-books-filter .juf-control-result strong,
html[data-theme="dark"] body .juf-catalog-heading>p, html[data-theme="dark"] .juf-catalog-heading>p,
html[data-theme="dark"] body .juf-chapter-copy small, html[data-theme="dark"] .juf-chapter-copy small,
html[data-theme="dark"] body .juf-chapter-number, html[data-theme="dark"] .juf-chapter-number,
html[data-theme="dark"] body .juf-checkout-product-copy-v32>small, html[data-theme="dark"] .juf-checkout-product-copy-v32>small,
html[data-theme="dark"] body .juf-checkout-section-head-v32>span, html[data-theme="dark"] .juf-checkout-section-head-v32>span,
html[data-theme="dark"] body .juf-checkout-summary-rows-v32>div, html[data-theme="dark"] .juf-checkout-summary-rows-v32>div,
html[data-theme="dark"] body .juf-continue-reading-card small, html[data-theme="dark"] .juf-continue-reading-card small,
html[data-theme="dark"] body .juf-control-popover :is(.juf-control-field > span:not(.sr-only), label > span:not(.sr-only)), html[data-theme="dark"] .juf-control-popover :is(.juf-control-field > span:not(.sr-only), label > span:not(.sr-only)),
html[data-theme="dark"] body .juf-control-sort-section > .juf-control-section-label, html[data-theme="dark"] .juf-control-sort-section > .juf-control-section-label,
html[data-theme="dark"] body .juf-cover-byline, html[data-theme="dark"] .juf-cover-byline,
html[data-theme="dark"] body .juf-cover-category, html[data-theme="dark"] .juf-cover-category,
html[data-theme="dark"] body .juf-cover-copy, html[data-theme="dark"] .juf-cover-copy,
html[data-theme="dark"] body .juf-details-author-card h3, html[data-theme="dark"] .juf-details-author-card h3,
html[data-theme="dark"] body .juf-details-author-card p, html[data-theme="dark"] .juf-details-author-card p,
html[data-theme="dark"] body .juf-details-author-card>small, html[data-theme="dark"] .juf-details-author-card>small,
html[data-theme="dark"] body .juf-details-author-card>span, html[data-theme="dark"] .juf-details-author-card>span,
html[data-theme="dark"] body .juf-details-section-heading>span, html[data-theme="dark"] .juf-details-section-heading>span,
html[data-theme="dark"] body .juf-homepage .juf-footer-v24, html[data-theme="dark"] .juf-homepage .juf-footer-v24,
html[data-theme="dark"] body .juf-library-category-chip span, html[data-theme="dark"] .juf-library-category-chip span,
html[data-theme="dark"] body .juf-premium-nav-v24 span[aria-hidden="true"], html[data-theme="dark"] .juf-premium-nav-v24 span[aria-hidden="true"],
html[data-theme="dark"] body .juf-public-writings-tabs a, html[data-theme="dark"] .juf-public-writings-tabs a,
html[data-theme="dark"] body .juf-review-expand, html[data-theme="dark"] .juf-review-expand,
html[data-theme="dark"] body .juf-social-expanded-text, html[data-theme="dark"] .juf-social-expanded-text,
html[data-theme="dark"] body .juf-writing-reader-breadcrumb a, html[data-theme="dark"] .juf-writing-reader-breadcrumb a,
html[data-theme="dark"] body .newsletter-luxury-pill .newsletter-luxury-input, html[data-theme="dark"] .newsletter-luxury-pill .newsletter-luxury-input,
html[data-theme="dark"] body .notification-card-actions button.danger, html[data-theme="dark"] .notification-card-actions button.danger,
html[data-theme="dark"] body .page-num-btn, html[data-theme="dark"] .page-num-btn,
html[data-theme="dark"] body .premium-page .premium-faq > div:first-child span, html[data-theme="dark"] .premium-page .premium-faq > div:first-child span,
html[data-theme="dark"] body .premium-page .premium-trust-grid article > span, html[data-theme="dark"] .premium-page .premium-trust-grid article > span,
html[data-theme="dark"] body .profile-annotation-row span, html[data-theme="dark"] .profile-annotation-row span,
html[data-theme="dark"] body .profile-annotation-row strong, html[data-theme="dark"] .profile-annotation-row strong,
html[data-theme="dark"] body .profile-annotation-row>a, html[data-theme="dark"] .profile-annotation-row>a,
html[data-theme="dark"] body .profile-card-copy h3 a, html[data-theme="dark"] .profile-card-copy h3 a,
html[data-theme="dark"] body .profile-card-copy p, html[data-theme="dark"] .profile-card-copy p,
html[data-theme="dark"] body .profile-card-topline>strong, html[data-theme="dark"] .profile-card-topline>strong,
html[data-theme="dark"] body .profile-follow-strip button, html[data-theme="dark"] .profile-follow-strip button,
html[data-theme="dark"] body .profile-follow-strip h3 a, html[data-theme="dark"] .profile-follow-strip h3 a,
html[data-theme="dark"] body .profile-heading-link, html[data-theme="dark"] .profile-heading-link,
html[data-theme="dark"] body .profile-highlight-row span, html[data-theme="dark"] .profile-highlight-row span,
html[data-theme="dark"] body .profile-highlight-row strong, html[data-theme="dark"] .profile-highlight-row strong,
html[data-theme="dark"] body .profile-highlight-row, html[data-theme="dark"] .profile-highlight-row,
html[data-theme="dark"] body .profile-hub-avatar, html[data-theme="dark"] .profile-hub-avatar,
html[data-theme="dark"] body .profile-hub-empty, html[data-theme="dark"] .profile-hub-empty,
html[data-theme="dark"] body .profile-hub-heading h2, html[data-theme="dark"] .profile-hub-heading h2,
html[data-theme="dark"] body .profile-hub-heading>span, html[data-theme="dark"] .profile-hub-heading>span,
html[data-theme="dark"] body .profile-hub-stats a, html[data-theme="dark"] .profile-hub-stats a,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(3) .profile-stat-icon, html[data-theme="dark"] .profile-hub-stats a:nth-child(3) .profile-stat-icon,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(3), html[data-theme="dark"] .profile-hub-stats a:nth-child(3),
html[data-theme="dark"] body .profile-hub-stats a:nth-child(5) .profile-stat-icon, html[data-theme="dark"] .profile-hub-stats a:nth-child(5) .profile-stat-icon,
html[data-theme="dark"] body .profile-hub-stats a:nth-child(5), html[data-theme="dark"] .profile-hub-stats a:nth-child(5),
html[data-theme="dark"] body .profile-identity-meta .is-premium, html[data-theme="dark"] .profile-identity-meta .is-premium,
html[data-theme="dark"] body .profile-identity-meta, html[data-theme="dark"] .profile-identity-meta,
html[data-theme="dark"] body .profile-inline-actions a, html[data-theme="dark"] .profile-inline-actions a,
html[data-theme="dark"] body .profile-inline-actions button, html[data-theme="dark"] .profile-inline-actions button,
html[data-theme="dark"] body .profile-kicker, html[data-theme="dark"] .profile-kicker,
html[data-theme="dark"] body .profile-last-read, html[data-theme="dark"] .profile-last-read,
html[data-theme="dark"] body .profile-listen-meta a, html[data-theme="dark"] .profile-listen-meta a,
html[data-theme="dark"] body .profile-listen-meta, html[data-theme="dark"] .profile-listen-meta,
html[data-theme="dark"] body .profile-listening-card h3 a, html[data-theme="dark"] .profile-listening-card h3 a,
html[data-theme="dark"] body .profile-listening-card p, html[data-theme="dark"] .profile-listening-card p,
html[data-theme="dark"] body .profile-note-panel>p, html[data-theme="dark"] .profile-note-panel>p,
html[data-theme="dark"] body .profile-note-title-icon, html[data-theme="dark"] .profile-note-title-icon,
html[data-theme="dark"] body .profile-p3-heading .profile-heading-link, html[data-theme="dark"] .profile-p3-heading .profile-heading-link,
html[data-theme="dark"] body .profile-premium-grid-v25 article>div>span, html[data-theme="dark"] .profile-premium-grid-v25 article>div>span,
html[data-theme="dark"] body .profile-premium-pass-v26.is-inactive>a, html[data-theme="dark"] .profile-premium-pass-v26.is-inactive>a,
html[data-theme="dark"] body .profile-premium-pass-v26.is-inactive>div:first-child>span, html[data-theme="dark"] .profile-premium-pass-v26.is-inactive>div:first-child>span,
html[data-theme="dark"] body .profile-premium-pass-v26>div:first-child>span, html[data-theme="dark"] .profile-premium-pass-v26>div:first-child>span,
html[data-theme="dark"] body .profile-purchase-row small, html[data-theme="dark"] .profile-purchase-row small,
html[data-theme="dark"] body .profile-purchase-row time, html[data-theme="dark"] .profile-purchase-row time,
html[data-theme="dark"] body .profile-quiet-action, html[data-theme="dark"] .profile-quiet-action,
html[data-theme="dark"] body .profile-rating-chip, html[data-theme="dark"] .profile-rating-chip,
html[data-theme="dark"] body .profile-reading-position, html[data-theme="dark"] .profile-reading-position,
html[data-theme="dark"] body .profile-release-block a, html[data-theme="dark"] .profile-release-block a,
html[data-theme="dark"] body .profile-review-list blockquote, html[data-theme="dark"] .profile-review-list blockquote,
html[data-theme="dark"] body .profile-review-list h3 a, html[data-theme="dark"] .profile-review-list h3 a,
html[data-theme="dark"] body .profile-section-title-icon, html[data-theme="dark"] .profile-section-title-icon,
html[data-theme="dark"] body .profile-shelf-card-v25 h3 a, html[data-theme="dark"] .profile-shelf-card-v25 h3 a,
html[data-theme="dark"] body .profile-shelf-card-v25 p, html[data-theme="dark"] .profile-shelf-card-v25 p,
html[data-theme="dark"] body .profile-stat-icon, html[data-theme="dark"] .profile-stat-icon,
html[data-theme="dark"] body .reader-auth-field-v27>small, html[data-theme="dark"] .reader-auth-field-v27>small,
html[data-theme="dark"] body .reader-desk-nav>a, html[data-theme="dark"] .reader-desk-nav>a,
html[data-theme="dark"] body .reader-nav-icon, html[data-theme="dark"] .reader-nav-icon,
html[data-theme="dark"] body .reader-pagination a, html[data-theme="dark"] .reader-pagination a,
html[data-theme="dark"] body .reader-pagination span, html[data-theme="dark"] .reader-pagination span,
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-body::placeholder,
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-title::placeholder,
html[data-theme="dark"] body .site-main .juf-email-badge.is-unverified,
html[data-theme="dark"] body .site-main .juf-settings-accordion > summary,
html[data-theme="dark"] body .site-main .juf-settings-accordion-body p,
html[data-theme="dark"] body .site-main .juf-settings-accordion.is-danger-accordion > summary,
html[data-theme="dark"] body .site-main .juf-settings-form label,
html[data-theme="dark"] body .site-main .juf-settings-meta-note,
html[data-theme="dark"] body .site-main .juf-settings-pill-link,
html[data-theme="dark"] body .site-main .juf-settings-secondary-btn,
html[data-theme="dark"] body .site-main .juf-settings-top-head p.juf-account-intro,
html[data-theme="dark"] body.juf-2d-minimal #juf-sticky-audio-player .juf-select-list,
html[data-theme="dark"] body.juf-2d-minimal .juf-nav-link-v24.is-active,
html[data-theme="dark"] body.juf-page-reviews .juf-review-stream > header h1,
html[data-theme="dark"] body.juf-page-reviews .juf-review-stream > header p,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-field-v27 input::placeholder,
html[data-theme="dark"] body.premium-page .premium-plan-card > a,
html[data-theme="dark"] body.premium-page .premium-plan-card > p,
html[data-theme="dark"] body.premium-page .premium-plan-card a.premium-cta-btn {
    color: #DFDBD2 !important;
}

/* 3. Expanded Public/Helper/JS PDF Mode Surface Overrides (41 selectors) */
html[data-theme="pdf"] body #library-home .profile-author-avatar .juf-author-literary-placeholder, html[data-theme="pdf"] #library-home .profile-author-avatar .juf-author-literary-placeholder,
html[data-theme="pdf"] body .audio-filter-fields .juf-select .juf-select-chevron, html[data-theme="pdf"] .audio-filter-fields .juf-select .juf-select-chevron,
html[data-theme="pdf"] body .audio-filter-fields .juf-select-list::-webkit-scrollbar-thumb, html[data-theme="pdf"] .audio-filter-fields .juf-select-list::-webkit-scrollbar-thumb,
html[data-theme="pdf"] body .authors-page .juf-author-genre-empty-tiles i:nth-child(2), html[data-theme="pdf"] .authors-page .juf-author-genre-empty-tiles i:nth-child(2),
html[data-theme="pdf"] body .authors-page .juf-author-genre-empty-tiles i:nth-child(3), html[data-theme="pdf"] .authors-page .juf-author-genre-empty-tiles i:nth-child(3),
html[data-theme="pdf"] body .hero-cinematic-arrow-btn, html[data-theme="pdf"] .hero-cinematic-arrow-btn,
html[data-theme="pdf"] body .juf-author-filter-row .juf-select .juf-select-chevron, html[data-theme="pdf"] .juf-author-filter-row .juf-select .juf-select-chevron,
html[data-theme="pdf"] body .juf-author-filter-row .juf-select-list::-webkit-scrollbar-thumb, html[data-theme="pdf"] .juf-author-filter-row .juf-select-list::-webkit-scrollbar-thumb,
html[data-theme="pdf"] body .juf-author-filter-row select, html[data-theme="pdf"] .juf-author-filter-row select,
html[data-theme="pdf"] body .juf-book-publication-card, html[data-theme="pdf"] .juf-book-publication-card,
html[data-theme="pdf"] body .juf-book-summary-card, html[data-theme="pdf"] .juf-book-summary-card,
html[data-theme="pdf"] body .juf-books-filter .juf-select .juf-select-chevron, html[data-theme="pdf"] .juf-books-filter .juf-select .juf-select-chevron,
html[data-theme="pdf"] body .juf-catalog-heading>p, html[data-theme="pdf"] .juf-catalog-heading>p,
html[data-theme="pdf"] body .juf-control-actions, html[data-theme="pdf"] .juf-control-actions,
html[data-theme="pdf"] body .juf-control-popover .juf-select .juf-select-chevron, html[data-theme="pdf"] .juf-control-popover .juf-select .juf-select-chevron,
html[data-theme="pdf"] body .juf-control-popover .juf-select-list::-webkit-scrollbar-thumb, html[data-theme="pdf"] .juf-control-popover .juf-select-list::-webkit-scrollbar-thumb,
html[data-theme="pdf"] body .juf-file-clear-btn, html[data-theme="pdf"] .juf-file-clear-btn,
html[data-theme="pdf"] body .juf-homepage #genres .home-book-category-media, html[data-theme="pdf"] .juf-homepage #genres .home-book-category-media,
html[data-theme="pdf"] body .juf-part-panels, html[data-theme="pdf"] .juf-part-panels,
html[data-theme="pdf"] body .juf-premium-nav-v24 span[aria-hidden="true"], html[data-theme="pdf"] .juf-premium-nav-v24 span[aria-hidden="true"],
html[data-theme="pdf"] body .juf-public-empty-state>div:last-child>a, html[data-theme="pdf"] .juf-public-empty-state>div:last-child>a,
html[data-theme="pdf"] body .juf-writings-search-bar input[type="search"], html[data-theme="pdf"] .juf-writings-search-bar input[type="search"],
html[data-theme="pdf"] body .notification-card, html[data-theme="pdf"] .notification-card,
html[data-theme="pdf"] body .notification-toolbar nav a, html[data-theme="pdf"] .notification-toolbar nav a,
html[data-theme="pdf"] body .profile-continue-card, html[data-theme="pdf"] .profile-continue-card,
html[data-theme="pdf"] body .profile-hub-stats a:nth-child(1) .profile-stat-icon, html[data-theme="pdf"] .profile-hub-stats a:nth-child(1) .profile-stat-icon,
html[data-theme="pdf"] body .profile-hub-stats a:nth-child(2) .profile-stat-icon, html[data-theme="pdf"] .profile-hub-stats a:nth-child(2) .profile-stat-icon,
html[data-theme="pdf"] body .profile-shelf-card-v25, html[data-theme="pdf"] .profile-shelf-card-v25,
html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown-option.is-selected,
html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown.is-open .juf-modern-dropdown-trigger,
html[data-theme="pdf"] body .site-main #library-home .juf-user-writings-search input[type="search"],
html[data-theme="pdf"] body .slider-ctrl-btn, html[data-theme="pdf"] .slider-ctrl-btn,
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .audio-queue-number,
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .juf-player-timeline input[type="range"]::-moz-range-track,
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .juf-player-timeline input[type="range"]::-webkit-slider-runnable-track,
html[data-theme="pdf"] body.dark-mode .juf-fb-more-dropdown,
html[data-theme="pdf"] body.juf-2d-minimal .juf-review-dot,
html[data-theme="pdf"] body.premium-page .premium-plan-card > a,
html[data-theme="pdf"] body.premium-page .premium-plan-card a.premium-cta-btn,
html[data-theme="pdf"] body.reader-page #reader-content-body .reader-figure-portrait,
html[data-theme="pdf"] body.reader-page .reader-toc-list a.is-current,
html[data-theme="pdf"] #juf-live-customizer-drawer {
    background: #EFE8DD !important;
    background-image: none !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}


/* ============================================================================
   Build 596 — Light/PDF White-Text Fixes, Dark/PDF Border Leaks &
   Interactive (:hover/:focus/::before/::after) State Parity
   ============================================================================ */

/* 1. Fix Unselected Star Rating Input (.reader-star-input label) on details.php (Was #F6F5F2 on #F6F5F2 in Light Mode!) */
html body .reader-star-input label {
    color: #C5BFB4 !important;
}
html[data-theme="pdf"] body .reader-star-input label {
    color: #B8A994 !important;
}
html[data-theme="dark"] body .reader-star-input label {
    color: #4A5160 !important;
}
html body .reader-star-input label:hover,
html body .reader-star-input label:hover ~ label,
html body .reader-star-input input:checked ~ label,
html[data-theme="pdf"] body .reader-star-input label:hover,
html[data-theme="pdf"] body .reader-star-input label:hover ~ label,
html[data-theme="pdf"] body .reader-star-input input:checked ~ label,
html[data-theme="dark"] body .reader-star-input label:hover,
html[data-theme="dark"] body .reader-star-input label:hover ~ label,
html[data-theme="dark"] body .reader-star-input input:checked ~ label {
    color: #D97706 !important;
}

/* 2. Fix Sticky Audio Player (#juf-sticky-audio-player) Light Mode & PDF Mode White-Text Leak from jufbook-deep-teal-accent.css:442 */
html:not([data-theme="dark"]) body.juf-2d-minimal.audiobook-page :where(.audio-player-panel, #juf-sticky-audio-player) :where(h1, h2, h3, strong, span:not(.juf-select-value):not(.juf-select *), p, small, label),
html:not([data-theme="dark"]) body #juf-sticky-audio-player :is(.audio-player-mobile-toggle, .audio-player-mobile-toggle span, .audio-player-art > span, .juf-music-time-row, .juf-music-time-row span, .juf-player-timeline, .juf-player-tools label, .juf-player-tools button, .juf-player-controls button:not(.juf-main-play), .audio-queue-action, .audio-queue-number, .audio-queue-track) {
    color: #241E17 !important;
}
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player,
html[data-theme="pdf"] body.juf-2d-minimal #juf-sticky-audio-player,
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player .audio-player-expanded {
    background: #EFE8DD !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}
html[data-theme="pdf"] body.audiobook-page #juf-sticky-audio-player :is(.juf-player-controls button:not(.juf-main-play), .juf-player-tools button#juf-mute, .audio-player-mobile-toggle, .audio-queue-track, .juf-select > .juf-select-trigger, .juf-select-list) {
    background: #E3D7C5 !important;
    border-color: rgba(108, 92, 72, 0.26) !important;
    color: #241E17 !important;
}

/* 3. Fix Global Footer Essential Links (.juf-footer-essential-links-v31 a) on All Pages in Light & PDF Mode */
html:not([data-theme="dark"]) body .juf-footer-essential-links-v31 a {
    color: var(--muted, #5B6376) !important;
}
html:not([data-theme="dark"]) body .juf-footer-essential-links-v31 a:hover,
html:not([data-theme="dark"]) body .juf-footer-essential-links-v31 a:focus-visible {
    color: var(--ink, #241E17) !important;
}
html[data-theme="dark"] body .juf-footer-essential-links-v31 a {
    color: #B6B0A6 !important;
}
html[data-theme="dark"] body .juf-footer-essential-links-v31 a:hover,
html[data-theme="dark"] body .juf-footer-essential-links-v31 a:focus-visible {
    color: #F4EFE6 !important;
}

/* 4. Public Dark Mode Border Overrides (Eliminates all 30 #D9D6D0 / #FFFFFF border leaks) */
html[data-theme="dark"] body .account-social-card>a, html[data-theme="dark"] .account-social-card>a,
html[data-theme="dark"] body .audio-pagination>a, html[data-theme="dark"] .audio-pagination>a,
html[data-theme="dark"] body .audio-player-panel input[type="range"]::-moz-range-thumb, html[data-theme="dark"] .audio-player-panel input[type="range"]::-moz-range-thumb,
html[data-theme="dark"] body .audio-player-panel input[type="range"]::-webkit-slider-thumb, html[data-theme="dark"] .audio-player-panel input[type="range"]::-webkit-slider-thumb,
html[data-theme="dark"] body .author-circle-disc, html[data-theme="dark"] .author-circle-disc,
html[data-theme="dark"] body .authors-page .juf-authors-cinematic-hero, html[data-theme="dark"] .authors-page .juf-authors-cinematic-hero,
html[data-theme="dark"] body .category-pagination>a, html[data-theme="dark"] .category-pagination>a,
html[data-theme="dark"] body .home-audio-seek::-moz-range-thumb, html[data-theme="dark"] .home-audio-seek::-moz-range-thumb,
html[data-theme="dark"] body .home-audio-seek::-webkit-slider-thumb, html[data-theme="dark"] .home-audio-seek::-webkit-slider-thumb,
html[data-theme="dark"] body .juf-account-notice, html[data-theme="dark"] .juf-account-notice,
html[data-theme="dark"] body .juf-active-filter-chip, html[data-theme="dark"] .juf-active-filter-chip,
html[data-theme="dark"] body .juf-books-page .juf-library-category-chip, html[data-theme="dark"] .juf-books-page .juf-library-category-chip,
html[data-theme="dark"] body .juf-control-pagination>a, html[data-theme="dark"] .juf-control-pagination>a,
html[data-theme="dark"] body .juf-player-timeline input[type="range"]::-moz-range-thumb, html[data-theme="dark"] .juf-player-timeline input[type="range"]::-moz-range-thumb,
html[data-theme="dark"] body .juf-player-timeline input[type="range"]::-webkit-slider-thumb, html[data-theme="dark"] .juf-player-timeline input[type="range"]::-webkit-slider-thumb,
html[data-theme="dark"] body .juf-search-empty-compact, html[data-theme="dark"] .juf-search-empty-compact,
html[data-theme="dark"] body .juf-social-MiniAvatar, html[data-theme="dark"] .juf-social-MiniAvatar,
html[data-theme="dark"] body .juf-writings-reset-btn, html[data-theme="dark"] .juf-writings-reset-btn,
html[data-theme="dark"] body .profile-avatar-badge, html[data-theme="dark"] .profile-avatar-badge,
html[data-theme="dark"] body .profile-hub-stats a, html[data-theme="dark"] .profile-hub-stats a,
html[data-theme="dark"] body .reader-page .reader-audio-player input[type="range"]::-moz-range-thumb, html[data-theme="dark"] .reader-page .reader-audio-player input[type="range"]::-moz-range-thumb,
html[data-theme="dark"] body .reader-page .reader-audio-player input[type="range"]::-webkit-slider-thumb, html[data-theme="dark"] .reader-page .reader-audio-player input[type="range"]::-webkit-slider-thumb,
html[data-theme="dark"] body .reader-settings-popover input[type="range"]::-moz-range-thumb, html[data-theme="dark"] .reader-settings-popover input[type="range"]::-moz-range-thumb,
html[data-theme="dark"] body .reader-settings-popover input[type="range"]::-webkit-slider-thumb, html[data-theme="dark"] .reader-settings-popover input[type="range"]::-webkit-slider-thumb,
html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-top .profile-hub-avatar,
html[data-theme="dark"] body.audiobook-page .audio-filter-more> .audio-filter-fields,
html[data-theme="dark"] body.authors-page .juf-author-filter-more> .juf-author-filter-row,
html[data-theme="dark"] body.juf-2d-minimal .juf-premium-nav-v24,
html[data-theme="dark"] body.juf-2d-minimal .juf-search-suggestion-all.is-active,
html[data-theme="dark"] body.juf-books-page .juf-books-filter .juf-control-menu > summary .juf-control-count {
    border-color: #393F4A !important;
}

/* 5. Public PDF Mode Border Overrides (Eliminates all 13 #FFFFFF border leaks) */
html[data-theme="pdf"] body .audio-player-panel input[type="range"]::-moz-range-thumb, html[data-theme="pdf"] .audio-player-panel input[type="range"]::-moz-range-thumb,
html[data-theme="pdf"] body .audio-player-panel input[type="range"]::-webkit-slider-thumb, html[data-theme="pdf"] .audio-player-panel input[type="range"]::-webkit-slider-thumb,
html[data-theme="pdf"] body .author-circle-disc, html[data-theme="pdf"] .author-circle-disc,
html[data-theme="pdf"] body .home-audio-seek::-moz-range-thumb, html[data-theme="pdf"] .home-audio-seek::-moz-range-thumb,
html[data-theme="pdf"] body .home-audio-seek::-webkit-slider-thumb, html[data-theme="pdf"] .home-audio-seek::-webkit-slider-thumb,
html[data-theme="pdf"] body .juf-homepage #authors .author-circle-disc, html[data-theme="pdf"] .juf-homepage #authors .author-circle-disc,
html[data-theme="pdf"] body .juf-player-timeline input[type="range"]::-moz-range-thumb, html[data-theme="pdf"] .juf-player-timeline input[type="range"]::-moz-range-thumb,
html[data-theme="pdf"] body .juf-player-timeline input[type="range"]::-webkit-slider-thumb, html[data-theme="pdf"] .juf-player-timeline input[type="range"]::-webkit-slider-thumb,
html[data-theme="pdf"] body .juf-social-MiniAvatar, html[data-theme="pdf"] .juf-social-MiniAvatar,
html[data-theme="pdf"] body .reader-page .reader-audio-player input[type="range"]::-moz-range-thumb, html[data-theme="pdf"] .reader-page .reader-audio-player input[type="range"]::-moz-range-thumb,
html[data-theme="pdf"] body .reader-page .reader-audio-player input[type="range"]::-webkit-slider-thumb, html[data-theme="pdf"] .reader-page .reader-audio-player input[type="range"]::-webkit-slider-thumb,
html[data-theme="pdf"] body .reader-settings-popover input[type="range"]::-moz-range-thumb, html[data-theme="pdf"] .reader-settings-popover input[type="range"]::-moz-range-thumb,
html[data-theme="pdf"] body .reader-settings-popover input[type="range"]::-webkit-slider-thumb, html[data-theme="pdf"] .reader-settings-popover input[type="range"]::-webkit-slider-thumb {
    border-color: rgba(108, 92, 72, 0.28) !important;
}

/* 6. Public Dark Mode :hover / :focus / ::before / ::after Surface Overrides */
html[data-theme="dark"] body .audiobook-page .audio-category-chip:hover, html[data-theme="dark"] .audiobook-page .audio-category-chip:hover,
html[data-theme="dark"] body .authors-page .juf-author-category-nav-btn:focus-visible, html[data-theme="dark"] .authors-page .juf-author-category-nav-btn:focus-visible,
html[data-theme="dark"] body .authors-page .juf-author-category-nav-btn:hover, html[data-theme="dark"] .authors-page .juf-author-category-nav-btn:hover,
html[data-theme="dark"] body .authors-page .juf-author-directory-card::after, html[data-theme="dark"] .authors-page .juf-author-directory-card::after,
html[data-theme="dark"] body .btn-hero-cinematic-secondary:hover, html[data-theme="dark"] .btn-hero-cinematic-secondary:hover,
html[data-theme="dark"] body .juf-nav a:hover, html[data-theme="dark"] .juf-nav a:hover,
html[data-theme="dark"] body .page-num-btn:hover:not(.active), html[data-theme="dark"] .page-num-btn:hover:not(.active),
html[data-theme="dark"] body .profile-hub-stats a:hover, html[data-theme="dark"] .profile-hub-stats a:hover,
html[data-theme="dark"] body .reader-desk-nav>a:hover, html[data-theme="dark"] .reader-desk-nav>a:hover,
html[data-theme="dark"] body.juf-2d-minimal #juf-sticky-audio-player .juf-player-controls button:hover,
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comments-more-btn:hover,
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-dock-btn:hover,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-divider-v31::after,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-divider-v31::before,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-password-wrap-v27 .juf-password-toggle:hover,
html[data-theme="dark"] body.reader-page .reader-toolbar .reader-icon-btn:hover,
html[data-theme="dark"] body.reader-page .reader-toolbar .reader-text-btn:hover {
    background: #2D323B !important;
    background-image: none !important;
    border-color: #454C59 !important;
    color: #F4EFE6 !important;
}

/* 7. Public Dark Mode :hover / :focus / ::before / ::after Text Overrides */
html[data-theme="dark"] body .audiobook-page .audio-context-clear:hover, html[data-theme="dark"] .audiobook-page .audio-context-clear:hover,
html[data-theme="dark"] body .juf-books-page .juf-active-filter-chip::after, html[data-theme="dark"] .juf-books-page .juf-active-filter-chip::after,
html[data-theme="dark"] body .juf-books-page .juf-books-filter .juf-control-result span::before, html[data-theme="dark"] .juf-books-page .juf-books-filter .juf-control-result span::before,
html[data-theme="dark"] body .juf-books-page .juf-catalog-author:hover, html[data-theme="dark"] .juf-books-page .juf-catalog-author:hover,
html[data-theme="dark"] body .newsletter-luxury-pill .newsletter-luxury-input:focus, html[data-theme="dark"] .newsletter-luxury-pill .newsletter-luxury-input:focus,
html[data-theme="dark"] body .newsletter-luxury-pill .newsletter-luxury-input:focus-visible, html[data-theme="dark"] .newsletter-luxury-pill .newsletter-luxury-input:focus-visible,
html[data-theme="dark"] body .newsletter-luxury-pill .newsletter-luxury-input:hover, html[data-theme="dark"] .newsletter-luxury-pill .newsletter-luxury-input:hover,
html[data-theme="dark"] body .profile-hub-stats a:hover, html[data-theme="dark"] .profile-hub-stats a:hover,
html[data-theme="dark"] body .reader-annotation-delete:hover, html[data-theme="dark"] .reader-annotation-delete:hover,
html[data-theme="dark"] body .reader-desk-nav>a:hover, html[data-theme="dark"] .reader-desk-nav>a:hover,
html[data-theme="dark"] body.premium-page .premium-toggle-pill:hover {
    color: #F4EFE6 !important;
}

/* 8. Public PDF Mode :hover / :focus / ::before / ::after Surface Overrides */
html[data-theme="pdf"] body .audio-filter-fields .juf-select .juf-select-option:focus-visible, html[data-theme="pdf"] .audio-filter-fields .juf-select .juf-select-option:focus-visible,
html[data-theme="pdf"] body .audio-filter-fields .juf-select .juf-select-option:hover, html[data-theme="pdf"] .audio-filter-fields .juf-select .juf-select-option:hover,
html[data-theme="pdf"] body .btn-hero-cinematic-secondary:hover, html[data-theme="pdf"] .btn-hero-cinematic-secondary:hover,
html[data-theme="pdf"] body .juf-author-filter-row .juf-select .juf-select-option:focus-visible, html[data-theme="pdf"] .juf-author-filter-row .juf-select .juf-select-option:focus-visible,
html[data-theme="pdf"] body .juf-author-filter-row .juf-select .juf-select-option:hover, html[data-theme="pdf"] .juf-author-filter-row .juf-select .juf-select-option:hover,
html[data-theme="pdf"] body .juf-books-filter .juf-select .juf-select-option:focus-visible, html[data-theme="pdf"] .juf-books-filter .juf-select .juf-select-option:focus-visible,
html[data-theme="pdf"] body .juf-books-filter .juf-select .juf-select-option:hover, html[data-theme="pdf"] .juf-books-filter .juf-select .juf-select-option:hover,
html[data-theme="pdf"] body .juf-control-popover .juf-select .juf-select-option:focus-visible, html[data-theme="pdf"] .juf-control-popover .juf-select .juf-select-option:focus-visible,
html[data-theme="pdf"] body .juf-control-popover .juf-select .juf-select-option:hover, html[data-theme="pdf"] .juf-control-popover .juf-select .juf-select-option:hover,
html[data-theme="pdf"] body .page-num-btn:hover:not(.active), html[data-theme="pdf"] .page-num-btn:hover:not(.active),
html[data-theme="pdf"] body .site-main #library-home .juf-ig-action-btn:hover,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-settings-pill:hover,
html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown-trigger:hover,
html[data-theme="pdf"] body .site-main #library-home .juf-modern-type-chip:hover,
html[data-theme="pdf"] body.audiobook-page #audio-all-library .audio-library-row:hover,
html[data-theme="pdf"] body.dark-mode .juf-fb-more-item:hover,
html[data-theme="pdf"] body.juf-2d-minimal .juf-fb-dock-btn:hover,
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-divider-v31::after,
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-divider-v31::before {
    background: #E3D7C5 !important;
    background-image: none !important;
    border-color: rgba(108, 92, 72, 0.28) !important;
    color: #241E17 !important;
}

/* 9. Explicit Light & PDF Mode Ink for Audio Player Sub-Elements & Writings Dropdown */
html:not([data-theme="dark"]) body .juf-fb-more-item,
html:not([data-theme="dark"]) body .juf-literary-prompt-banner__title,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-art > span,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-expanded-head h3,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-meta h2,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-mobile-toggle,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-panel h2,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-panel > p,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-panel .juf-player-controls button:not(.juf-main-play),
html:not([data-theme="dark"]) body.audiobook-page .audio-player-panel .juf-player-timeline,
html:not([data-theme="dark"]) body.audiobook-page .audio-player-panel .juf-player-tools button,
html:not([data-theme="dark"]) body.audiobook-page .juf-player-controls button:not(.juf-main-play),
html:not([data-theme="dark"]) body.audiobook-page .juf-player-timeline,
html:not([data-theme="dark"]) body.audiobook-page .juf-player-tools button,
html:not([data-theme="dark"]) body.audiobook-page .juf-player-tools label,
html:not([data-theme="dark"]) body.audiobook-page .audio-queue-action,
html:not([data-theme="dark"]) body.audiobook-page .audio-queue-number,
html:not([data-theme="dark"]) body.audiobook-page .audio-queue-track {
    color: #241E17 !important;
}

/* ==========================================================================
   9. BUILD 605 — SUBTLE MEDIUM-WEIGHT (500 + 0.22px MICRO-STROKE) QUIZ QUESTIONS
      & CRISP BLACK-INK ANSWERS
   Fixes `1000171818.jpg` ("Akhon thik achhe ektu samano question gula bold korle kemon hoi?"):
   1. Gives `.juf-qtx` questions a subtle, refined Semi-Medium weight
      (`font-weight: 500 !important` + `-webkit-text-stroke: 0.22px currentColor !important`,
      `font-synthesis: none !important`) so questions are just slightly bolder
      (~35% firmer than 400 Regular) without ever becoming thick/heavy like 700 Bold.
   2. Keeps all answer options (`.juf-qo .t` at `font-weight: 400` and `.juf-qo .k`
      at `font-weight: 600`) in crisp Black ink (`#11151C !important`, `opacity: 1 !important`).
   ========================================================================== */
html body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root h1.juf-qtx,
html body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root h2.juf-qtx,
html body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root h3.juf-qtx,
html body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root .juf-qtx,
html body #juf-quiz-root h1.juf-qtx,
html body #juf-quiz-root h2.juf-qtx,
html body #juf-quiz-root h3.juf-qtx,
html body #juf-quiz-root .juf-qtx {
    font-family: var(--font-ui-system, 'Plus Jakarta Sans', 'Inter', 'Noto Sans Bengali', 'Hind Siliguri', 'SolaimanLipi', system-ui, -apple-system, sans-serif) !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0.22px currentColor !important;
    font-size: clamp(19px, 4.8vw, 21.5px) !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    color: #0D1017 !important;
    -webkit-text-fill-color: #0D1017 !important;
    border: 0 !important;
    border-left: 0 !important;
    padding: 0 !important;
    margin: 2px 0 8px 0 !important;
    background: transparent !important;
}

html body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root .juf-pq h3.juf-qtx,
html body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root .juf-pq .juf-qtx,
html body #juf-quiz-root .juf-pq h3.juf-qtx,
html body #juf-quiz-root .juf-pq .juf-qtx {
    font-family: var(--font-ui-system, 'Plus Jakarta Sans', 'Inter', 'Noto Sans Bengali', 'Hind Siliguri', 'SolaimanLipi', system-ui, -apple-system, sans-serif) !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0.22px currentColor !important;
    font-size: clamp(18px, 4.5vw, 20px) !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
    color: #0D1017 !important;
    -webkit-text-fill-color: #0D1017 !important;
    border: 0 !important;
    border-left: 0 !important;
    padding: 0 !important;
    margin: 1px 0 6px 0 !important;
    background: transparent !important;
}

html[data-theme="dark"] body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root .juf-qtx,
html[data-theme="dark"] body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root .juf-pq .juf-qtx,
html[data-theme="dark"] body #juf-quiz-root .juf-qtx,
html[data-theme="dark"] body #juf-quiz-root .juf-pq .juf-qtx,
body.dark-mode #juf-quiz-root .juf-qtx,
body.dark-mode #juf-quiz-root .juf-pq .juf-qtx {
    color: #F4F6FA !important;
    -webkit-text-fill-color: #F4F6FA !important;
    -webkit-text-stroke: 0.18px currentColor !important;
}

html[data-theme="pdf"] body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root .juf-qtx,
html[data-theme="pdf"] body.juf-2d-minimal:not(.person-profile-page):not(.reader-page) #juf-quiz-root .juf-pq .juf-qtx,
html body[data-pdf-mode="pdf"] #juf-quiz-root .juf-qtx,
html body[data-pdf-mode="pdf"] #juf-quiz-root .juf-pq .juf-qtx {
    color: #1C1610 !important;
    -webkit-text-fill-color: #1C1610 !important;
    -webkit-text-stroke: 0.22px currentColor !important;
}

/* Simple, clean question block spacing & inline header (`প্রশ্ন ১ · পাল রাজবংশ`) */
html body #juf-quiz-root .juf-pq {
    padding: 20px 0 22px !important;
    gap: 9px !important;
    border-bottom: 1px solid #DFDBD2 !important;
}

html body #juf-quiz-root .juf-pq:first-child {
    padding-top: 14px !important;
}

html[data-theme="dark"] body #juf-quiz-root .juf-pq,
body.dark-mode #juf-quiz-root .juf-pq {
    border-bottom-color: #2A3241 !important;
}

html body #juf-quiz-root .juf-pq-badges {
    gap: 6px !important;
}

html body #juf-quiz-root .juf-pq-num {
    display: inline !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--juf-q-terracotta-ink, #25368A) !important;
    font: 600 13px/1.2 var(--juf-q-font-ui) !important;
}

html[data-theme="dark"] body #juf-quiz-root .juf-pq-num,
body.dark-mode #juf-quiz-root .juf-pq-num {
    background: transparent !important;
    border: 0 !important;
    color: #9EB2F8 !important;
}

html body #juf-quiz-root .juf-pq-topic {
    font: 400 12.5px/1.25 var(--juf-q-font-ui) !important;
    color: var(--juf-q-muted, #626A7C) !important;
}

/* Crisp Black Ink (`#11151C`) on Answer Options (both active and disabled!) */
html body #juf-quiz-root .juf-qo:not(.ok):not(.bad),
html body #juf-quiz-root .juf-qo[disabled]:not(.ok):not(.bad) {
    border: 1.5px solid #DDD9D0 !important;
    background: #FFFFFF !important;
    color: #11151C !important;
    opacity: 1 !important;
}

html body #juf-quiz-root .juf-qo:not(.ok):not(.bad) .k,
html body #juf-quiz-root .juf-qo[disabled]:not(.ok):not(.bad) .k {
    font-weight: 600 !important;
    color: #11151C !important;
    -webkit-text-fill-color: #11151C !important;
    background: #ECEAE4 !important;
    border-color: #DDD9D0 !important;
    opacity: 1 !important;
}

html body #juf-quiz-root .juf-qo:not(.ok):not(.bad) .t,
html body #juf-quiz-root .juf-qo[disabled]:not(.ok):not(.bad) .t {
    font-weight: 400 !important;
    color: #11151C !important;
    -webkit-text-fill-color: #11151C !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body #juf-quiz-root .juf-qo:not(.ok):not(.bad),
html[data-theme="dark"] body #juf-quiz-root .juf-qo[disabled]:not(.ok):not(.bad),
body.dark-mode #juf-quiz-root .juf-qo:not(.ok):not(.bad),
body.dark-mode #juf-quiz-root .juf-qo[disabled]:not(.ok):not(.bad) {
    background: #1E232D !important;
    border-color: #2E3646 !important;
    color: #F3F5F8 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body #juf-quiz-root .juf-qo:not(.ok):not(.bad) .k,
html[data-theme="dark"] body #juf-quiz-root .juf-qo[disabled]:not(.ok):not(.bad) .k,
body.dark-mode #juf-quiz-root .juf-qo:not(.ok):not(.bad) .k {
    background: #28303E !important;
    border-color: #384254 !important;
    color: #F3F5F8 !important;
    -webkit-text-fill-color: #F3F5F8 !important;
}

html[data-theme="dark"] body #juf-quiz-root .juf-qo:not(.ok):not(.bad) .t,
html[data-theme="dark"] body #juf-quiz-root .juf-qo[disabled]:not(.ok):not(.bad) .t,
body.dark-mode #juf-quiz-root .juf-qo:not(.ok):not(.bad) .t {
    color: #F3F5F8 !important;
    -webkit-text-fill-color: #F3F5F8 !important;
    opacity: 1 !important;
}

/* Build 608 — 1-Tap Question Bookmark Button (.juf-qstar-btn) */
html body #juf-quiz-root .juf-qstar-btn,
html body #juf-quiz-root button.juf-qstar-btn {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--juf-q-line, #DDD9D0) !important;
    background: var(--juf-q-elevated, #FFFFFF) !important;
    color: var(--juf-q-muted, #596072) !important;
    font: 600 14px/1 var(--juf-q-font-ui) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease !important;
}

html body #juf-quiz-root .juf-qstar-btn:hover {
    border-color: var(--juf-q-gold, #8A6B2F) !important;
    color: var(--juf-q-gold-ink, #5E471C) !important;
}

html body #juf-quiz-root .juf-qstar-btn.is-starred,
html body #juf-quiz-root .juf-qstar-btn[aria-pressed="true"] {
    background: var(--juf-q-gold-soft, #F3EBDD) !important;
    border-color: var(--juf-q-gold, #8A6B2F) !important;
    color: #B47814 !important;
}

html[data-theme="dark"] body #juf-quiz-root .juf-qstar-btn,
body.dark-mode #juf-quiz-root .juf-qstar-btn {
    background: #1E232D !important;
    border-color: #2E3646 !important;
    color: #9BA5B7 !important;
}

html[data-theme="dark"] body #juf-quiz-root .juf-qstar-btn.is-starred,
html[data-theme="dark"] body #juf-quiz-root .juf-qstar-btn[aria-pressed="true"],
body.dark-mode #juf-quiz-root .juf-qstar-btn.is-starred {
    background: rgba(218, 165, 58, 0.18) !important;
    border-color: rgba(218, 165, 58, 0.45) !important;
    color: #F2C14E !important;
}

/* === Build 611: Phase 6 Book Assistant Quick Prompts & Source Chapter Chips === */
.juf-ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.juf-ai-prompt-chip {
  appearance: none;
  border: 1px solid rgba(30, 58, 138, 0.22);
  background: rgba(30, 58, 138, 0.05);
  color: var(--text-primary, #17202b);
  border-radius: 999px;
  padding: 6px 13px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.juf-ai-prompt-chip:hover {
  background: rgba(30, 58, 138, 0.12);
  border-color: rgba(30, 58, 138, 0.38);
}
.juf-ai-message-text {
  white-space: pre-line;
}
.juf-ai-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 34, 48, 0.1);
}
.juf-ai-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.08);
  color: #1e3a8a;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.juf-ai-source-chip:hover {
  background: rgba(30, 58, 138, 0.16);
}
html[data-theme="dark"] .juf-ai-prompt-chip {
  border-color: rgba(147, 197, 253, 0.28);
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
}
html[data-theme="dark"] .juf-ai-source-chip {
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
}


/* ============================================================================
   Build 615 — Modern Simple UI Polish Across Switchers, Auth, Checkout & Pages
   Fixes:
   1. `1000171880.jpg`: Transforms `.juf-app-segmented-bar` (`[ 📖 বই | 🎧 অডিওবুক ]`)
      from a wide beige bar with a heavy dark-brown `#382F24` rectangle into a
      sleek, compact, modern pill segmented switcher (`max-width: 276px`,
      `border-radius: 999px`) with a crisp elevated pill card active state.
   2. `1000171882.jpg`: Transforms `login.php`, `admin/login.php`, and recovery
      pages into a clean, modern, centered single card (no classic cartoon banner,
      clean sans-serif titles, 2-pill Sign In / Create Account mode tabs, 12px
      rounded inputs with high-contrast surfaces across Light/PDF/Dark, pill
      password toggle, modern `#2D4B9A` primary CTA button, and 2-column
      side-by-side Google + Facebook social buttons).
   3. Modernizes `checkout.php`, `contact.php`, `support.php`, `account.php`,
      `notifications.php`, `premium.php`, and `.juf-control-toolbar` filters
      by retiring classic ornamental `— ... —` overlines, serif form headings,
      and boxy inputs/buttons.
   ============================================================================ */

/* 1. Sleek Modern Pill Segmented Switcher (.juf-app-segmented-bar) across ALL themes */
html body .juf-app-segmented-bar {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 276px !important;
    padding: 4px !important;
    gap: 4px !important;
    border-radius: 999px !important;
    background: #EAECEF !important;
    border: 1px solid rgba(35, 42, 54, 0.08) !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="pdf"] body .juf-app-segmented-bar {
    background: #DFD5C5 !important;
    border-color: rgba(108, 92, 72, 0.18) !important;
}
html[data-theme="dark"] body .juf-app-segmented-bar {
    background: #1B1F27 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html body .juf-app-segmented-tab {
    flex: 1 1 0% !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    font-family: var(--font-ui-system, 'Plus Jakarta Sans', 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #525B6C !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
html[data-theme="pdf"] body .juf-app-segmented-tab {
    color: #5C5042 !important;
}
html[data-theme="dark"] body .juf-app-segmented-tab {
    color: #9CA3B5 !important;
}
html body .juf-app-segmented-tab.is-active,
html body.juf-2d-minimal .juf-app-segmented-tab.is-active {
    background: #FFFFFF !important;
    color: #1E3A8A !important;
    border: 1px solid rgba(45, 75, 154, 0.14) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    font-weight: 700 !important;
}
html body .juf-app-segmented-tab.is-active :where(span, svg),
html body.juf-2d-minimal .juf-app-segmented-tab.is-active :where(span, svg) {
    color: #1E3A8A !important;
}
html[data-theme="pdf"] body .juf-app-segmented-tab.is-active,
html[data-theme="pdf"] body.juf-2d-minimal .juf-app-segmented-tab.is-active {
    background: #FAF6F0 !important;
    color: #1F1912 !important;
    border: 1px solid rgba(108, 92, 72, 0.22) !important;
    box-shadow: 0 2px 8px rgba(36, 30, 23, 0.09) !important;
}
html[data-theme="pdf"] body .juf-app-segmented-tab.is-active :where(span, svg),
html[data-theme="pdf"] body.juf-2d-minimal .juf-app-segmented-tab.is-active :where(span, svg) {
    color: #1F1912 !important;
}
html[data-theme="dark"] body .juf-app-segmented-tab.is-active,
html[data-theme="dark"] body.juf-2d-minimal .juf-app-segmented-tab.is-active {
    background: #2C3340 !important;
    color: #F4F6FA !important;
    border: 1px solid rgba(143, 164, 242, 0.24) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
}
html[data-theme="dark"] body .juf-app-segmented-tab.is-active :where(span, svg),
html[data-theme="dark"] body.juf-2d-minimal .juf-app-segmented-tab.is-active :where(span, svg) {
    color: #F4F6FA !important;
}

/* 2. Modern Simple Auth UI Across Light, PDF & Dark Modes (Fixes 1000171882.jpg) */
html body.juf-reader-auth-page .reader-auth-story-v27,
html body.juf-admin-auth-page-v27 .admin-auth-visual-v27 {
    display: none !important;
}
html body.juf-reader-auth-page .site-main,
html body.juf-admin-auth-page-v27 {
    padding: clamp(16px, 4vw, 36px) 14px !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
html body.juf-reader-auth-page .reader-login-reference-v31,
html body.juf-admin-auth-page-v27 .admin-auth-page-wrap-v31 {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    min-height: 0 !important;
}
html body.juf-reader-auth-page .reader-auth-shell-v27,
html body.juf-admin-auth-page-v27 .admin-auth-shell-v27,
html body .juf-auth-recovery-card {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 440px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    border-radius: 20px !important;
    border: 1px solid rgba(35, 42, 54, 0.10) !important;
    background: #FFFFFF !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    overflow: hidden !important;
}
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-shell-v27,
html[data-theme="pdf"] body .juf-auth-recovery-card {
    background: #EFE8DD !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    box-shadow: 0 12px 28px rgba(36, 30, 23, 0.07) !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-shell-v27,
html[data-theme="dark"] body .juf-auth-recovery-card {
    background: #22262E !important;
    border-color: #353B47 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32) !important;
}
html body.juf-reader-auth-page .reader-auth-panel-v27,
html body.juf-admin-auth-page-v27 .admin-auth-form-side-v27 {
    padding: 26px 22px 24px !important;
    background: transparent !important;
}
html body.juf-reader-auth-page .reader-auth-heading-v27 h2,
html body.juf-reader-auth-page .reader-auth-heading-v27 #reader-auth-title,
html body.juf-admin-auth-page-v27 .admin-auth-form-head-v27 h1,
html body .juf-auth-recovery-card h1 {
    font-family: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

/* Auth Mode Switcher Tabs (.juf-auth-mode-tabs) across Light, PDF, Dark */
html body .juf-auth-mode-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 4px !important;
    margin: 0 0 18px !important;
    border-radius: 999px !important;
    background: #EAECEF !important;
    border: 1px solid rgba(35, 42, 54, 0.08) !important;
}
html[data-theme="pdf"] body .juf-auth-mode-tabs {
    background: #DFD5C5 !important;
    border-color: rgba(108, 92, 72, 0.18) !important;
}
html[data-theme="dark"] body .juf-auth-mode-tabs {
    background: #181C23 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html body .juf-auth-mode-tab {
    min-height: 35px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #525B6C !important;
    text-decoration: none !important;
}
html[data-theme="pdf"] body .juf-auth-mode-tab {
    color: #5C5042 !important;
}
html[data-theme="dark"] body .juf-auth-mode-tab {
    color: #9CA3B5 !important;
}
html body .juf-auth-mode-tab.is-active {
    background: #FFFFFF !important;
    color: #1E3A8A !important;
    border-color: rgba(45, 75, 154, 0.14) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="pdf"] body .juf-auth-mode-tab.is-active {
    background: #FAF6F0 !important;
    color: #1F1912 !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    box-shadow: 0 2px 6px rgba(36, 30, 23, 0.08) !important;
}
html[data-theme="dark"] body .juf-auth-mode-tab.is-active {
    background: #2C3340 !important;
    color: #F4F6FA !important;
    border-color: rgba(143, 164, 242, 0.24) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28) !important;
}

/* Auth Inputs, Password Pill Toggle, Primary CTA & 2-Column Socials across Light, PDF, Dark */
html body.juf-reader-auth-page .reader-auth-field-v27 input,
html body .juf-auth-recovery-field input {
    min-height: 46px !important;
    border-radius: 12px !important;
    background: #F8FAFC !important;
    border: 1.5px solid #D8DEE9 !important;
    color: #1E293B !important;
    font-family: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
}
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-field-v27 input,
html[data-theme="pdf"] body .juf-auth-recovery-field input {
    background: #FAF6F0 !important;
    border: 1.5px solid rgba(108, 92, 72, 0.28) !important;
    color: #1F1912 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-field-v27 input,
html[data-theme="dark"] body .juf-auth-recovery-field input {
    background: #181B22 !important;
    border: 1.5px solid #343B48 !important;
    color: #F3F5F8 !important;
}
html body.juf-reader-auth-page .reader-auth-field-v27 input:focus,
html body .juf-auth-recovery-field input:focus {
    background: #FFFFFF !important;
    border-color: #2D4B9A !important;
    box-shadow: 0 0 0 3.5px rgba(45, 75, 154, 0.14) !important;
}
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-field-v27 input:focus,
html[data-theme="pdf"] body .juf-auth-recovery-field input:focus {
    background: #FFFFFF !important;
    border-color: #2D4B9A !important;
    box-shadow: 0 0 0 3.5px rgba(45, 75, 154, 0.14) !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-field-v27 input:focus,
html[data-theme="dark"] body .juf-auth-recovery-field input:focus {
    background: #14171D !important;
    border-color: #6B8AF6 !important;
    box-shadow: 0 0 0 3.5px rgba(107, 138, 246, 0.18) !important;
}

html body.juf-reader-auth-page .juf-password-toggle,
html body .juf-auth-recovery-password-wrap .juf-password-toggle {
    height: 30px !important;
    min-width: 54px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: #EEF1F6 !important;
    border: 1px solid #D5DCE6 !important;
    color: #334155 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
html[data-theme="pdf"] body.juf-reader-auth-page .juf-password-toggle,
html[data-theme="pdf"] body .juf-auth-recovery-password-wrap .juf-password-toggle {
    background: #E8DEC9 !important;
    border-color: rgba(108, 92, 72, 0.26) !important;
    color: #241E17 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .juf-password-toggle,
html[data-theme="dark"] body .juf-auth-recovery-password-wrap .juf-password-toggle {
    background: #282E3A !important;
    border-color: #3B4354 !important;
    color: #E2E8F0 !important;
}

html body.juf-reader-auth-page .reader-auth-submit-v27,
html body.juf-2d-minimal .reader-auth-submit-v27,
html body .juf-auth-recovery-submit {
    min-height: 46px !important;
    border-radius: 12px !important;
    background: #2D4B9A !important;
    border: 1px solid #2D4B9A !important;
    color: #FFFFFF !important;
    font-family: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(45, 75, 154, 0.20) !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-submit-v27,
html[data-theme="dark"] body .juf-auth-recovery-submit {
    background: #4F6AE6 !important;
    border-color: #4F6AE6 !important;
    color: #FFFFFF !important;
}

html body.juf-reader-auth-page .reader-auth-socials-v31 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
html body.juf-reader-auth-page .reader-auth-socials-v31 :where(button, a) {
    min-height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #DCE1EB !important;
    color: #1E293B !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}
html[data-theme="pdf"] body.juf-reader-auth-page .reader-auth-socials-v31 :where(button, a) {
    background: #FAF6F0 !important;
    border-color: rgba(108, 92, 72, 0.26) !important;
    color: #1F1912 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-socials-v31 :where(button, a) {
    background: #282E3A !important;
    border-color: #3B4354 !important;
    color: #F3F5F8 !important;
}

/* 3. Modern Simple Public Pages (Contact, Support, Notifications, Premium, Account, Filters) */
html body :is(.contact-hero, .support-page-head, .notification-page-head) .section-overline-label {
    display: none !important;
}
html body :is(.contact-card, .contact-info-card, .support-public-entry, .juf-account-panel, .notification-card, .premium-plan-card) {
    border-radius: 16px !important;
}
html body :is(.contact-field input, .contact-field select, .contact-field textarea, .support-public-compose textarea, .juf-settings-form input:not([type="checkbox"]):not([type="radio"]), .juf-settings-form textarea, .juf-inline-password-action input) {
    border-radius: 12px !important;
}
html body :is(.contact-submit, .support-public-compose button[type="submit"], .juf-account-action, .notification-action-primary, .premium-cta-btn) {
    border-radius: 12px !important;
}
html[data-theme="pdf"] body.premium-page .premium-plan-card a.premium-cta-btn {
    background: #2D4B9A !important;
    border-color: #2D4B9A !important;
    color: #FFFFFF !important;
}

/* Modern Pill Switcher for Notification Filter & Premium Billing Toggle */
html body .notification-toolbar nav,
html body .premium-billing-toggle {
    display: inline-flex !important;
    padding: 4px !important;
    gap: 4px !important;
    border-radius: 999px !important;
    background: #EAECEF !important;
    border: 1px solid rgba(35, 42, 54, 0.08) !important;
}
html[data-theme="pdf"] body .notification-toolbar nav,
html[data-theme="pdf"] body .premium-billing-toggle {
    background: #DFD5C5 !important;
    border-color: rgba(108, 92, 72, 0.18) !important;
}
html[data-theme="dark"] body .notification-toolbar nav,
html[data-theme="dark"] body .premium-billing-toggle {
    background: #1B1F27 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html body .notification-toolbar nav a,
html body .premium-billing-toggle .premium-toggle-pill {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    font-weight: 600 !important;
}
html body .notification-toolbar nav a.active,
html body .premium-billing-toggle .premium-toggle-pill.is-active {
    background: #FFFFFF !important;
    color: #1E3A8A !important;
    border-color: rgba(45, 75, 154, 0.14) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="pdf"] body .notification-toolbar nav a.active,
html[data-theme="pdf"] body .premium-billing-toggle .premium-toggle-pill.is-active {
    background: #FAF6F0 !important;
    color: #1F1912 !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    box-shadow: 0 2px 6px rgba(36, 30, 23, 0.08) !important;
}
html[data-theme="dark"] body .notification-toolbar nav a.active,
html[data-theme="dark"] body .premium-billing-toggle .premium-toggle-pill.is-active {
    background: #2C3340 !important;
    color: #F4F6FA !important;
    border-color: rgba(143, 164, 242, 0.24) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28) !important;
}


/* ============================================================================
   Build 616 — PDF & Dark Mode Transparent Section Wrappers, Newsletter & Pagination Fix
   Fixes `1000171886.jpg` & `1000171884.jpg`:
   1. `1000171886.jpg`: Removes the `#EFE8DD` rectangular box from `.newsletter-premium-wrapper`,
      `.newsletter-premium-action`, and `.newsletter-luxury-pill` in PDF mode, and makes
      `.newsletter-luxury-pill .pill-input-wrap` transparent on the PDF paper canvas with a
      clean warm border (`1.5px solid rgba(108, 92, 72, 0.34)`).
   2. `1000171884.jpg`: Removes the `#EFE8DD` / `#262A30` rectangular box from
      `#showcase.books-showcase-wrapper` and makes inactive pagination buttons
      (`.page-num-btn:not(.active)`, `.category-pagination > a:not(.active)`,
      `.juf-control-pagination > a:not(.active)`) completely transparent on the paper
      canvas (eliminating the `#ECEAE6` / `#EFE8DD` button boxes around `২`, `৩`, `৮`, `পরের ›`).
   3. Ensures all other open-canvas wrappers across Home, Books, Audiobooks, Authors,
      Book Details, Community Writings, Profile, and Premium remain 100% transparent
      in PDF and Dark modes just like Light mode.
   ============================================================================ */

/* 1. Newsletter Wrapper & Input Box Transparency in PDF & Dark Modes (Fixes 1000171886.jpg) */
html body .newsletter-premium-wrapper,
html body .newsletter-premium-action,
html body .newsletter-luxury,
html body .newsletter-luxury-pill,
html body .newsletter-luxury-pill:focus-within,
html[data-theme="pdf"] body .newsletter-premium-wrapper,
html[data-theme="pdf"] body .newsletter-premium-action,
html[data-theme="pdf"] body .newsletter-luxury,
html[data-theme="pdf"] body .newsletter-luxury-pill,
html[data-theme="pdf"] body .newsletter-luxury-pill:focus-within,
html[data-theme="dark"] body .newsletter-premium-wrapper,
html[data-theme="dark"] body .newsletter-premium-action,
html[data-theme="dark"] body .newsletter-luxury,
html[data-theme="dark"] body .newsletter-luxury-pill,
html[data-theme="dark"] body .newsletter-luxury-pill:focus-within {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body .newsletter-luxury-pill .pill-input-wrap {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1.5px solid rgba(108, 92, 72, 0.34) !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body .newsletter-luxury-pill .pill-input-wrap:focus-within {
    background: rgba(250, 246, 240, 0.45) !important;
    border-color: #2D4B9A !important;
    box-shadow: 0 0 0 3px rgba(45, 75, 154, 0.12) !important;
}

html[data-theme="pdf"] body .newsletter-luxury-pill .newsletter-luxury-input,
html[data-theme="pdf"] body .newsletter-luxury-pill .newsletter-luxury-input:hover,
html[data-theme="pdf"] body .newsletter-luxury-pill .newsletter-luxury-input:focus,
html[data-theme="pdf"] body .newsletter-luxury-pill .newsletter-luxury-input:focus-visible {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .newsletter-luxury-pill .newsletter-luxury-input::placeholder {
    color: #5C5042 !important;
    opacity: 0.88 !important;
}

/* 2. Books Showcase Wrapper & Pagination Transparency in PDF, Light & Dark Modes (Fixes 1000171884.jpg) */
html body #showcase,
html body .books-showcase-wrapper,
html body .home-new-releases,
html body .home-authors-discovery,
html body .home-audio-section,
html body .home-testimonials,
html body .home-community-writings,
html body .authors-premium-slider-wrapper,
html[data-theme="pdf"] body #showcase,
html[data-theme="pdf"] body .books-showcase-wrapper,
html[data-theme="pdf"] body .home-new-releases,
html[data-theme="pdf"] body .home-authors-discovery,
html[data-theme="pdf"] body .home-audio-section,
html[data-theme="pdf"] body .home-testimonials,
html[data-theme="pdf"] body .home-community-writings,
html[data-theme="pdf"] body .authors-premium-slider-wrapper,
html[data-theme="dark"] body #showcase,
html[data-theme="dark"] body .books-showcase-wrapper,
html[data-theme="dark"] body .home-new-releases,
html[data-theme="dark"] body .home-authors-discovery,
html[data-theme="dark"] body .home-audio-section,
html[data-theme="dark"] body .home-testimonials,
html[data-theme="dark"] body .home-community-writings,
html[data-theme="dark"] body .authors-premium-slider-wrapper {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Pagination Container & Inactive Page Numbers — 100% Transparent (No #ECEAE6 or #EFE8DD Box!) */
html body :is(.pagination-numbers, .category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination),
html[data-theme="pdf"] body :is(.pagination-numbers, .category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination),
html[data-theme="dark"] body :is(.pagination-numbers, .category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .pagination-numbers .page-num-btn:not(.active):not([aria-current="page"]),
html body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(a, button, span):not(.active):not([aria-current="page"]),
html[data-theme="pdf"] body .pagination-numbers .page-num-btn:not(.active):not([aria-current="page"]),
html[data-theme="pdf"] body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(a, button, span):not(.active):not([aria-current="page"]),
html[data-theme="dark"] body .pagination-numbers .page-num-btn:not(.active):not([aria-current="page"]),
html[data-theme="dark"] body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(a, button, span):not(.active):not([aria-current="page"]) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body .pagination-numbers .page-num-btn:not(.active):not([aria-current="page"]),
html[data-theme="pdf"] body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(a, button, span):not(.active):not([aria-current="page"]) {
    color: #241E17 !important;
}

html[data-theme="dark"] body .pagination-numbers .page-num-btn:not(.active):not([aria-current="page"]),
html[data-theme="dark"] body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(a, button, span):not(.active):not([aria-current="page"]) {
    color: #ECE8E1 !important;
}

/* Active Page Number Pill (.page-num-btn.active / [aria-current="page"]) */
html body .pagination-numbers .page-num-btn.active,
html body .pagination-numbers .page-num-btn[aria-current="page"],
html body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(.active, [aria-current="page"]):not(.juf-pagination-summary) {
    background: #2D4B9A !important;
    border-color: #2D4B9A !important;
    color: #FFFFFF !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

html[data-theme="pdf"] body .pagination-numbers .page-num-btn.active,
html[data-theme="pdf"] body .pagination-numbers .page-num-btn[aria-current="page"],
html[data-theme="pdf"] body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(.active, [aria-current="page"]):not(.juf-pagination-summary) {
    background: #3B4256 !important;
    border-color: #3B4256 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] body .pagination-numbers .page-num-btn.active,
html[data-theme="dark"] body .pagination-numbers .page-num-btn[aria-current="page"],
html[data-theme="dark"] body :is(.category-pagination, .juf-control-pagination, .audio-pagination, .notification-pagination, .person-pagination) > :is(.active, [aria-current="page"]):not(.juf-pagination-summary) {
    background: #8FA4F2 !important;
    border-color: #8FA4F2 !important;
    color: #14193A !important;
}

/* ============================================================================
   Build 617 — Simple, Clean Audiobook Sticky Player Fix (Fixes 1000171887.jpg)
   1. Fixes Title & Subtitle Truncation (`স্ট...` / `পূর্ণ ...`):
      - Decouples Row 3 (`.juf-player-controls` & `.juf-player-tools`) from Column 3
        (`auto`) so Column 3 is sized ONLY by `অধ্যায় ⌄` (~78px), giving `.audio-player-meta`
        the full middle width (~195px+) and allowing `#juf-player-title` up to 2 lines
        when expanded.
   2. Eliminates Controls & Speed Overlap (`গতি► 1x` colliding with Next `⏭` button):
      - Hides the redundant `"গতি"` text label (`font-size: 0` on label) so only the
        clean `[ 1× ▾ ]` pill is shown.
      - Shrinks `.juf-player-tools .juf-select.is-compact-dropdown` from `min-width: 110px`
        to a sleek `min-width: 66px` pill (`height: 36px`).
      - Hides the extra `.juf-audio-sleep-btn` (`🌙`) inside the sticky bar on
        `audiobooks.php` so `.juf-player-tools` stays ultra-simple (`[ 1× ▾ ]` + `[ 🔊 ]`).
   3. Makes the Timeline Progress Bar (`#juf-audio-seek`) Crisp & Visible across
      Light, PDF, and Dark modes.
   ============================================================================ */

@media (max-width: 900px) {
    html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player.is-expanded .audio-player-bar {
        display: grid !important;
        grid-template-columns: 50px minmax(0, 1fr) auto !important;
        grid-template-areas:
            "art meta toggle"
            "timeline timeline timeline" !important;
        gap: 10px 12px !important;
        padding: 14px 14px 12px !important;
        align-items: center !important;
    }

    html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player.is-expanded .audio-player-art {
        grid-area: art !important;
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        border-radius: 10px !important;
    }

    html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player.is-expanded .audio-player-meta {
        grid-area: meta !important;
        min-width: 0 !important;
        width: 100% !important;
        padding-right: 4px !important;
    }

    html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player.is-expanded #juf-player-title {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.32 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        margin: 0 0 2px !important;
    }

    html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player.is-expanded #juf-player-subtitle {
        font-size: 12px !important;
        line-height: 1.3 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player.is-expanded .juf-player-controls {
        grid-area: auto !important;
        grid-column: 1 / 3 !important;
        grid-row: 3 !important;
        justify-self: start !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player.is-expanded .juf-player-tools {
        grid-area: auto !important;
        grid-column: 2 / 4 !important;
        grid-row: 3 !important;
        justify-self: end !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
}

/* Simple, Clean Tools Row Inside Sticky Audio Player:
   - Hide redundant "গতি" label text while keeping the `[ 1× ▾ ]` pill
   - Compact 66px pill for speed dropdown
   - Hide extra sleep-timer button inside the hub sticky player */
html body #juf-sticky-audio-player .juf-player-tools label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

html body #juf-sticky-audio-player .juf-player-tools label > select,
html body #juf-sticky-audio-player .juf-player-tools label > .juf-select {
    font-size: 13px !important;
}

html body #juf-sticky-audio-player .juf-player-tools .juf-select.is-compact-dropdown,
html body #juf-sticky-audio-player .juf-player-tools .juf-select.is-compact-dropdown.is-auto-width {
    width: auto !important;
    min-width: 68px !important;
    max-width: 82px !important;
    display: inline-block !important;
}

html body #juf-sticky-audio-player .juf-player-tools .juf-select.is-compact-dropdown > .juf-select-trigger {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 8px 0 12px !important;
    gap: 5px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body #juf-sticky-audio-player .juf-player-tools .juf-select.is-compact-dropdown > .juf-select-trigger > .juf-select-chevron {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
    padding: 3px !important;
}

html body.audiobook-page:not(.audio-detail-page) #juf-sticky-audio-player .juf-audio-sleep-btn {
    display: none !important;
}

/* Visible, Crisp Timeline Progress Track (#juf-audio-seek) Across Light, PDF & Dark Modes */
html body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 100% !important;
    height: 6px !important;
    border-radius: 999px !important;
    background: #D5DCE6 !important;
    outline: none !important;
    cursor: pointer !important;
}

html body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-webkit-slider-runnable-track {
    height: 6px !important;
    border-radius: 999px !important;
    background: #D5DCE6 !important;
}

html body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-moz-range-track {
    height: 6px !important;
    border-radius: 999px !important;
    background: #D5DCE6 !important;
}

html[data-theme="pdf"] body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek,
html[data-theme="pdf"] body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-webkit-slider-runnable-track,
html[data-theme="pdf"] body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-moz-range-track {
    background: #CFC0AA !important;
}

html[data-theme="dark"] body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek,
html[data-theme="dark"] body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-webkit-slider-runnable-track,
html[data-theme="dark"] body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-moz-range-track {
    background: #3B4252 !important;
}

html body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #2D4B9A !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25) !important;
    margin-top: -5px !important;
}

html[data-theme="dark"] body #juf-sticky-audio-player .juf-player-timeline input[type="range"]#juf-audio-seek::-webkit-slider-thumb {
    background: #8FA4F2 !important;
    border-color: #23272F !important;
}

/* ==========================================================================
   BUILD 624 — COMPLETE AUDIT FIXES (ZERO REGRESSION ON BUILDS 615, 616, 617)
   1. Lock background scroll when left hamburger drawer is open + backdrop fade
   2. Hide idle sticky audio player on mobile until user starts playback
   3. Rotate chapter drawer chevron when expanded
   4. Support Reader Justify alignment option cleanly
   5. PDF / Paper Mode harmony for left drawer, search sheet & popovers
   6. Dark Mode legibility for muted subtitles on dark surfaces
   7. Targeted Bengali Matra protection (letter-spacing: 0) & 12px floor on
      badges/kickers (strictly excluding #juf-sticky-audio-player labels!)
   8. Mobile touch target floor (38px) on pagination & slider controls
   ========================================================================== */
@keyframes jufBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.juf-drawer-open {
    overflow: hidden !important;
}

@media (prefers-reduced-motion: no-preference) {
    .juf-app-drawer-backdrop:not([hidden]) {
        animation: jufBackdropFadeIn 0.2s ease-out both !important;
    }
}

body.reader-page[data-reader-align="justify"] .reader-article :is(p, li) {
    text-align: justify !important;
}

@media (max-width: 760px) {
    .audiobook-page #juf-sticky-audio-player.is-idle,
    .audiobook-page .audio-player-panel.is-idle {
        display: none !important;
    }
}

.audiobook-page #juf-sticky-audio-player #juf-player-expand svg {
    transition: transform 0.2s ease !important;
}

.audiobook-page #juf-sticky-audio-player #juf-player-expand[aria-expanded="true"] svg {
    transform: rotate(180deg) !important;
}

/* Complete PDF / Paper Mode Harmony for Left Drawer, Search Sheet & Popovers */
html[data-theme="pdf"] body .juf-app-left-drawer,
html[data-theme="pdf"] body #juf-search-sheet,
html[data-theme="pdf"] body .juf-search-suggest-panel,
html[data-theme="pdf"] body .juf-modern-dropdown-menu,
html[data-theme="pdf"] body .juf-app-write-sheet,
html[data-theme="pdf"] body .reader-settings-overlay .reader-settings-panel {
    background-color: var(--surface, #EFE8DD) !important;
    color: var(--ink, #241E17) !important;
    border-color: rgba(92, 74, 50, 0.22) !important;
}

html[data-theme="pdf"] body .juf-app-drawer-head,
html[data-theme="pdf"] body .juf-app-drawer-foot {
    border-color: rgba(92, 74, 50, 0.18) !important;
}

html[data-theme="pdf"] body .juf-app-drawer-link.dl {
    color: var(--ink, #241E17) !important;
}

html[data-theme="pdf"] body .juf-app-drawer-link.dl.active,
html[data-theme="pdf"] body .juf-app-drawer-link.dl[aria-current="page"] {
    background-color: rgba(51, 70, 168, 0.10) !important;
    color: var(--cta, #3346A8) !important;
}

html[data-theme="pdf"] body .juf-app-drawer-premium {
    background-color: rgba(51, 70, 168, 0.08) !important;
    border-color: rgba(51, 70, 168, 0.22) !important;
}

/* High-Legibility Dark Mode Muted Subtitles on Dark Surfaces Only */
html[data-theme="dark"] body :is(
    .book-under-author,
    .audio-row-author,
    .audio-row-voice span,
    .audio-row-voice small,
    .audio-row-stats,
    .juf-search-book small,
    .juf-search-book em,
    .juf-search-author-grid small,
    .juf-search-author-grid em,
    .juf-search-audio-grid small,
    .juf-search-audio-grid em,
    .person-related small,
    .juf-app-drawer-section-label,
    .juf-social-post-submeta,
    .approved-review-meta time,
    .notification-card-meta time
) {
    color: #B2BAC8 !important;
}

/* Targeted Bengali Matra Protection & 12px Floor on Kickers/Badges
   (Never touches #juf-sticky-audio-player .juf-player-tools label or line-clamped book titles!) */
html[lang="bn"] body :is(
    .section-overline-label,
    .hero-slide-badge,
    .home-reading-gateway-kicker,
    .home-author-discovery-kicker,
    .person-kicker,
    .juf-app-drawer-section-label,
    .audio-library-table-head,
    .audio-shelf-heading span,
    .audio-library-heading span,
    .person-book-genre-chip,
    .juf-checkout-panel-kicker-v32,
    .juf-checkout-product-copy-v32 span
):not([lang="en"]) {
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: max(12px, 0.76rem) !important;
}

/* Comfortable Touch Targets on Mobile Pagination & Slider Controls */
@media (max-width: 760px) {
    body :is(.page-num-btn, .juf-pagination-nav, .slider-ctrl-btn) {
        min-height: 38px !important;
        min-width: 38px !important;
    }
}

/* Stop Continuous Infinite Decorative Ring Spin on Profile (Saves Mobile Battery) */
.profile-reading-ring::before,
.profile-reading-ring::after {
    animation: none !important;
}


/* ==========================================================================
   BUILD 626 — PROFILE (`profile.php`) & SITEWIDE REGRESSION AUDIT FIX
   1. Ensures `section#my-writings` and `section#portfolio-writings` never get
      an unwanted outer box background from `.profile-hub-section` in Light,
      PDF, or Dark mode, while `.juf-social-composer` and `.juf-modern-writing-canvas`
      preserve their crisp card surfaces and borders in all 3 themes.
   2. Harmonizes `#my-quizzes` inline stat cards and weak-chapter rows across
      Light, PDF, and Dark modes.
   3. Zero-CLS aspect-ratio reservation on book jackets & avatars.
   ========================================================================== */
html body .site-main #library-home section#my-writings.profile-hub-section,
html body .site-main #library-home section#portfolio-writings.profile-hub-section,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .site-main #library-home section#my-writings.profile-hub-section,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .site-main #library-home section#portfolio-writings.profile-hub-section,
html[data-theme="pdf"] body .site-main #library-home section#my-writings.profile-hub-section,
html[data-theme="pdf"] body .site-main #library-home section#portfolio-writings.profile-hub-section,
html[data-theme="dark"] body .site-main #library-home section#my-writings.profile-hub-section,
html[data-theme="dark"] body .site-main #library-home section#portfolio-writings.profile-hub-section {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body :is(
    .showcase-card-item .juf-book-jacket,
    .juf-catalog-cover-link > .juf-book-jacket,
    .person-book-cover-wrap .juf-book-jacket
) {
    aspect-ratio: 2 / 3;
}

body :is(
    .juf-author-art-avatar,
    .person-related-avatar,
    .juf-search-author-avatar,
    .juf-social-MiniAvatar
) {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}


/* ==========================================================================
   BUILD 638 — PROFILE HERO CARD (`image_d45e5f.png`) ALIGNMENT & DESKTOP/MOBILE
   8-TAB BAR FIX
   1. Overrides `align-items: center` inherited from legacy `.profile-hub-hero`
      grid rule in `style.css` with `align-items: stretch !important` so
      `.juf-ig-hero-bio`, `.juf-ig-hero-actions`, and `#juf-profile-swipe-tabs`
      never get horizontally centered or shrink-wrapped to 0px width inside
      the `flex-direction: column` profile card.
   2. Replaces invalid CSS Grid `repeat(auto-fit, minmax(0, 1fr))` on
      `#juf-profile-swipe-tabs` at `@media (min-width: 900px)` with a full-width
      `display: flex !important; width: 100% !important;` bar where every tab
      (`> a`) gets `flex: 1 1 0% !important; min-width: max-content !important;`
      on Desktop and smooth horizontal swipe (`flex: 0 0 auto !important; min-width: 68px !important;`)
      on Mobile — completely preventing tab text/icon overlap.
   ========================================================================== */
html body .site-main #library-home .profile-hub-hero,
html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card,
html body.juf-2d-minimal .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html body .site-main #library-home .juf-ig-hero-top {
    display: grid !important;
    align-items: center !important;
    width: 100% !important;
    align-self: stretch !important;
    margin: 0 !important;
}

html body .site-main #library-home .juf-ig-hero-bio {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto 0 0 !important;
    padding: 0 !important;
}

html body .site-main #library-home .juf-ig-hero-bio p.reader-bio,
html body .site-main #library-home .juf-ig-hero-bio .profile-identity-meta {
    text-align: left !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
}

html body .site-main #library-home .juf-ig-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 440px !important;
    align-self: flex-start !important;
    margin: 2px auto 0 0 !important;
}

@media (max-width: 640px) {
    html body .site-main #library-home .juf-ig-hero-actions {
        max-width: 100% !important;
        gap: 8px !important;
    }
}

html body .site-main #library-home .profile-hub-hero .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs,
html body .site-main #library-home #juf-profile-swipe-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    gap: 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 4px 2px 0 !important;
    margin: 6px 0 0 !important;
    border-top: 1px solid var(--line, #D9D6D0) !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs > a,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    flex: 0 0 auto !important;
    min-width: 68px !important;
    min-height: 46px !important;
    padding: 6px 10px 8px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    text-align: center !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs > a .reader-nav-label,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a .reader-nav-label {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    font-size: inherit !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (min-width: 900px) {
    html body .site-main #library-home .profile-hub-hero .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs,
    html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs,
    html body .site-main #library-home #juf-profile-swipe-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 4px !important;
        overflow-x: auto !important;
        margin: 8px 0 0 !important;
        padding: 4px 0 0 !important;
    }

    html body .site-main #library-home #juf-profile-swipe-tabs > a,
    html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
        flex: 1 1 0% !important;
        min-width: max-content !important;
        min-height: 48px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}

/* ==========================================================================
   BUILD 639 — PHASE 2: GLOBAL BILINGUAL LANGUAGE SWITCHER & 320px/360px GUARD
   ========================================================================== */
.juf-lang-switcher-form {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid var(--line, #D9D6D0);
    background: var(--surface, #ECEBE6);
    flex-shrink: 0;
}
html[data-theme="dark"] .juf-lang-switcher-form {
    border-color: rgba(236, 232, 225, 0.18);
    background: rgba(255, 255, 255, 0.06);
}
.juf-lang-switcher-form.is-offline-disabled {
    opacity: 0.58;
}
.juf-lang-pill-btn {
    border: 0;
    border-radius: 999px;
    padding: 4px 8px;
    min-height: 26px;
    font: 700 11.5px/1 var(--font-ui-system, 'Noto Sans Bengali', system-ui, sans-serif);
    color: var(--ink, #282E37);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
html[data-theme="dark"] .juf-lang-pill-btn {
    color: #ECE8E1;
}
.juf-lang-pill-btn.is-active {
    background: var(--accent, #3B4256);
    color: #FFFFFF;
}
html[data-theme="dark"] .juf-lang-pill-btn.is-active {
    background: #8FA4F2;
    color: #14193A;
}
.juf-lang-switcher-mobile-top {
    display: none;
}
@media (max-width: 980px) {
    .juf-lang-switcher-desktop {
        display: none !important;
    }
    .juf-lang-switcher-mobile-top {
        display: inline-flex !important;
        padding: 1.5px;
    }
    .juf-lang-switcher-mobile-top .juf-lang-pill-btn {
        padding: 3px 6px;
        min-height: 24px;
        font-size: 10.5px;
    }
}
@media (max-width: 360px) {
    .juf-header-shell {
        gap: 4px !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .juf-lang-switcher-mobile-top .juf-lang-pill-btn {
        padding: 2px 5px;
        min-height: 22px;
        font-size: 10px;
    }
    #juf-yt-bottom-nav .juf-yt-label,
    #juf-yt-bottom-nav .juf-yt-write-label {
        font-size: 10px !important;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Clean Top Header: Keep Language Switch & Notifications exclusively in Sidebar Drawer */
.juf-header-v24 .juf-lang-switcher-form, .juf-header-v24 .juf-app-top-notif-btn, .juf-header-v24 .juf-notification-link-v24 { display: none !important; }


/* ==========================================================================
   BUILD 649b — BOXLESS BOOK SHOWCASE & HERO AUTHORITY + WARM CARD HIERARCHY
   Fixes `1794459855433.jpeg` (`index.php` white boxes on `.showcase-card-item`)
   and `1794460025358.jpeg` (`details.php` white box on `.juf-book-left-rail`,
   `.juf-book-quick-stats`, and `.juf-action-bookmark-btn`), while keeping
   interactive media/review/biography cards softly elevated on warm paper.
   ========================================================================== */

/* 1. Book Cards, Author Portrait Grid Cards & Book Details Hero: 100% Box-Free Across All Themes */
html body :is(
    .showcase-card-item,
    .showcase-card-item .book-under-meta,
    .juf-catalog-book-card,
    .juf-catalog-book-meta,
    .juf-author-directory-card,
    .juf-book-left-rail,
    .book-details-hero,
    .book-details-info,
    .juf-book-summary-card,
    .juf-related-book-item,
    .juf-person .person-book,
    .juf-person .person-book.person-book-card,
    .juf-person .person-book-card-body
),
html:not([data-theme="dark"]):not([data-theme="pdf"]) body :is(
    .showcase-card-item,
    .showcase-card-item .book-under-meta,
    .juf-catalog-book-card,
    .juf-catalog-book-meta,
    .juf-author-directory-card,
    .juf-book-left-rail,
    .book-details-hero,
    .book-details-info,
    .juf-book-summary-card,
    .juf-related-book-item,
    .juf-person .person-book,
    .juf-person .person-book.person-book-card,
    .juf-person .person-book-card-body
),
html[data-theme="pdf"] body :is(
    .showcase-card-item,
    .showcase-card-item .book-under-meta,
    .juf-catalog-book-card,
    .juf-catalog-book-meta,
    .juf-author-directory-card,
    .juf-book-left-rail,
    .book-details-hero,
    .book-details-info,
    .juf-book-summary-card,
    .juf-related-book-item,
    .juf-person .person-book,
    .juf-person .person-book.person-book-card,
    .juf-person .person-book-card-body
),
html[data-theme="dark"] body :is(
    .showcase-card-item,
    .showcase-card-item .book-under-meta,
    .juf-catalog-book-card,
    .juf-catalog-book-meta,
    .juf-author-directory-card,
    .juf-book-left-rail,
    .book-details-hero,
    .book-details-info,
    .juf-book-summary-card,
    .juf-related-book-item,
    .juf-person .person-book,
    .juf-person .person-book.person-book-card,
    .juf-person .person-book-card-body
) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .showcase-card-item,
html body .juf-catalog-book-card,
html body .juf-person .person-book.person-book-card {
    padding: 0 !important;
}

html body .juf-person .person-book-cover-wrap,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-person .person-book-cover-wrap,
html[data-theme="pdf"] body .juf-person .person-book-cover-wrap,
html[data-theme="dark"] body .juf-person .person-book-cover-wrap {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    overflow: visible !important;
}

html body .juf-person .person-book-card .juf-book-jacket {
    border-radius: 7px !important;
    border: 1px solid rgba(40, 46, 55, 0.14) !important;
    box-shadow: 0 10px 22px rgba(40, 46, 55, 0.13), 0 3px 7px rgba(40, 46, 55, 0.08) !important;
}

/* 2. Book Details Quick Stats Bar & Bookmark Button: Transparent on Warm Paper */
html body .juf-book-quick-stats,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-book-quick-stats,
html[data-theme="pdf"] body .juf-book-quick-stats,
html[data-theme="dark"] body .juf-book-quick-stats {
    background: transparent !important;
    background-color: transparent !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid var(--line, #D9D6D0) !important;
    border-bottom: 1px solid var(--line, #D9D6D0) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .juf-book-quick-stats > div,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-book-quick-stats > div,
html[data-theme="pdf"] body .juf-book-quick-stats > div,
html[data-theme="dark"] body .juf-book-quick-stats > div {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

html body .juf-action-bookmark-btn:not(.is-saved):not([aria-pressed="true"]),
html:not([data-theme="dark"]):not([data-theme="pdf"]) body .juf-action-bookmark-btn:not(.is-saved):not([aria-pressed="true"]),
html[data-theme="pdf"] body .juf-action-bookmark-btn:not(.is-saved):not([aria-pressed="true"]) {
    background: transparent !important;
    background-color: transparent !important;
    border: 1.5px solid var(--accent, #3B4256) !important;
    color: var(--accent, #3B4256) !important;
    box-shadow: none !important;
}

/* 3. Refined Soft-Elevated Cards Where Contained Surfaces Improve Reader UX */
html:not([data-theme="dark"]):not([data-theme="pdf"]) body :is(
    .home-reading-gateway,
    .audio-pill-card.audio-media-card,
    .testimonial-card-white,
    .juf-home-writing-slide-card,
    .newsletter-premium-wrapper,
    .juf-details-author-card,
    .book-community-panel,
    .juf-reader-review-form-card
) {
    background-color: #ECEBE6 !important;
    border: 1px solid #D9D6D0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 14px rgba(40, 46, 55, 0.035) !important;
}

/* 4. Homepage & Catalog Book Card Font & Size Authority — Exact Parity with Biography Page (`authors.php` BUILD 382 + Build 575) */
html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-meta,
html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-meta {
    margin-top: 12px !important;
    padding-top: 0 !important;
    min-height: 0 !important;
}

html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-title,
html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-title,
html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-title,
html body.juf-books-page .juf-catalog-book-card .juf-catalog-title {
    font-family: var(--font-display-literary, 'Tiro Bangla', 'SolaimanLipi', 'Kalpurush', serif) !important;
    font-size: 16.5px !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0.12px currentColor !important;
    text-shadow: 0 0 0.08px currentColor !important;
    line-height: 1.32 !important;
    letter-spacing: 0 !important;
    color: #282E37 !important;
    padding: 0 2px !important;
    height: auto !important;
    min-height: 1.32em !important;
    margin: 0 !important;
    -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-title,
html[data-theme="dark"] body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-title,
html[data-theme="dark"] body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-title,
html[data-theme="dark"] body.juf-books-page .juf-catalog-book-card .juf-catalog-title {
    color: #ECE8E1 !important;
    -webkit-text-stroke: 0.1px currentColor !important;
    text-shadow: 0 0 0.08px currentColor !important;
}

html[data-theme="pdf"] body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-title,
html[data-theme="pdf"] body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-title,
html[data-theme="pdf"] body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-title,
html[data-theme="pdf"] body.juf-books-page .juf-catalog-book-card .juf-catalog-title {
    color: #241E17 !important;
}

html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-author,
html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-author,
html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-author,
html body.juf-books-page .juf-catalog-book-card .juf-catalog-author {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', 'Kalpurush', 'SolaimanLipi', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: var(--muted, #5B6376) !important;
    margin-top: 4px !important;
    padding: 0 2px !important;
}

html[data-theme="dark"] body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-author,
html[data-theme="dark"] body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-author,
html[data-theme="dark"] body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-author,
html[data-theme="dark"] body.juf-books-page .juf-catalog-book-card .juf-catalog-author {
    color: #A09B94 !important;
}

html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-rating-gold,
html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-rating-gold {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-top: 3px !important;
}

/* Harmonize live fallback cover title sizing inside `.juf-cover-v6` */
html body .juf-cover-v6 .juf-cover-name {
    font-size: clamp(8px, 8.5cqw, 24px) !important;
    line-height: 1.32 !important;
}
html body .juf-cover-v6.juf-cover-title-long .juf-cover-name {
    font-size: clamp(8px, 7.4cqw, 21px) !important;
}
html body .juf-cover-v6.juf-cover-title-extra-long .juf-cover-name {
    font-size: clamp(8px, 6.2cqw, 18px) !important;
}

@media (max-width: 700px) {
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-meta,
    html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-meta {
        margin-top: 11px !important;
        padding-top: 0 !important;
        min-height: 0 !important;
    }
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-title,
    html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-title,
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-title,
    html body.juf-books-page .juf-catalog-book-card .juf-catalog-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
        min-height: 1.3em !important;
    }
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-author,
    html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-author,
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-author,
    html body.juf-books-page .juf-catalog-book-card .juf-catalog-author {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-top: 4px !important;
    }
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-rating-gold,
    html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-rating-gold {
        font-size: 10.5px !important;
        margin-top: 2px !important;
    }
}

@media (max-width: 380px) {
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-title,
    html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-title,
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-title,
    html body.juf-books-page .juf-catalog-book-card .juf-catalog-title {
        font-size: 14.5px !important;
    }
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .showcase-card-item .book-under-author,
    html body.juf-homepage :is(#showcase, .home-new-releases) .showcase-card-item .book-under-author,
    html body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .juf-catalog-book-card .juf-catalog-author,
    html body.juf-books-page .juf-catalog-book-card .juf-catalog-author {
        font-size: 11.5px !important;
    }
}

/* Ensure Biography Profile Hero & Book Cards stay box-free even in PDF/Dark mode */
html body.person-profile-page .juf-person .person-identity,
html[data-theme="pdf"] body.person-profile-page .juf-person .person-identity,
html[data-theme="dark"] body.person-profile-page .juf-person .person-identity,
html body.person-profile-page .juf-person .person-quick-stats,
html[data-theme="pdf"] body.person-profile-page .juf-person .person-quick-stats,
html[data-theme="dark"] body.person-profile-page .juf-person .person-quick-stats,
html body.person-profile-page .juf-person .person-book.person-book-card,
html[data-theme="pdf"] body.person-profile-page .juf-person .person-book.person-book-card,
html[data-theme="dark"] body.person-profile-page .juf-person .person-book.person-book-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.person-profile-page .juf-person .person-quick-stats,
html[data-theme="pdf"] body.person-profile-page .juf-person .person-quick-stats {
    border-top: 1px solid rgba(40, 46, 55, 0.10) !important;
    border-bottom: 1px solid rgba(40, 46, 55, 0.10) !important;
}

html[data-theme="dark"] body.person-profile-page .juf-person .person-quick-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
}


/* Fix details.php mobile tab bar left clipping ('ummary' -> 'Summary') and homepage category card subtitle clipping */
@media (max-width: 700px) {
    html body.book-system-page .container.book-details-page .juf-book-tabs,
    html body .juf-book-tabs {
        justify-content: flex-start !important;
        gap: 14px !important;
        padding-left: 2px !important;
        padding-right: 4px !important;
    }
    html body.book-system-page .container.book-details-page .juf-book-tab,
    html body .juf-book-tab {
        font-size: 14px !important;
        padding: 10px 2px !important;
        flex-shrink: 0 !important;
    }
    html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy > span:not(.genre-graphic-kicker) {
        display: none !important;
    }
}
/* Build 660 Hotfix 35 (Mobile Bottom Nav: Exact 1000181413.jpg Icon + Label Editorial Bar) */
@media (max-width: 1024px) {
  body:not(.reader-page):not(.admin-shell-body) #juf-yt-bottom-nav.juf-yt-bottom-nav {
    height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid rgba(40, 46, 55, 0.10) !important;
  }
  html[data-theme="dark"] body:not(.reader-page):not(.admin-shell-body) #juf-yt-bottom-nav.juf-yt-bottom-nav,
  body.dark-mode:not(.reader-page):not(.admin-shell-body) #juf-yt-bottom-nav.juf-yt-bottom-nav {
    background: rgba(18, 20, 26, 0.96) !important;
    border-top-color: rgba(255, 255, 255, 0.10) !important;
  }
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab,
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active,
  html[data-theme="dark"] body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab,
  html[data-theme="dark"] body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    height: 48px !important;
    padding: 2px 0 !important;
    color: #5B6376 !important;
  }
  html[data-theme="dark"] body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab,
  body.dark-mode #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab {
    color: #9CA3B4 !important;
  }
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active {
    color: #3346A8 !important;
  }
  html[data-theme="dark"] body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active,
  body.dark-mode #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active {
    color: #FFFFFF !important;
  }
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-pill,
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active .juf-yt-pill,
  html[data-theme="dark"] body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active .juf-yt-pill {
    width: 26px !important;
    height: 24px !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.9 !important;
  }
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clip: auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 68px !important;
    font-family: var(--font-ui-system, "Noto Sans Bengali", "Inter", system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    color: inherit !important;
  }
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab.is-active .juf-yt-label {
    font-weight: 700 !important;
  }
}
/* Build 660 Hotfix 38 (Senior-Friendly Readability on Bottom Navigation Labels) */
@media (max-width: 1024px) {
  html:not([data-theme="dark"]) body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab:not(.is-active) {
    color: #434B5E !important;
  }
  html[data-theme="dark"] body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab:not(.is-active),
  body.dark-mode #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-tab:not(.is-active) {
    color: #CBD5E1 !important;
  }
  html body #juf-yt-bottom-nav.juf-yt-bottom-nav .juf-yt-label {
    font-size: 11.5px !important;
  }
}
/* Build 660 Hotfix 40 (Mobile Header Search Bar Row Order: Keep 🌙 Theme Icon on Row 1, Put Expanded Search on Row 2) */
@media (max-width: 1024px) {
  body:not(.admin-shell-body) .juf-header-v24 .juf-global-search-v40,
  body:not(.admin-shell-body) .juf-header-v24 form.juf-global-search-v40 {
    order: 20 !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    margin-top: 8px !important;
  }
  body:not(.admin-shell-body) .juf-header-v24 .juf-theme-toggle-mobile-v1 {
    order: 6 !important;
  }
}
/* Build 660 Hotfix 42: Crisp 10px Mobile Outer Gutters Across Non-Homepage Pages (index.php untouched) */
@media (max-width: 768px) {
  html body:not(.juf-homepage):not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body):not(.list-detail-page) main.site-main.container,
  html body:not(.juf-homepage):not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body):not(.list-detail-page) .site-main.container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  html body:not(.juf-homepage):not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body):not(.list-detail-page) main.site-main.container > section.container,
  html body:not(.juf-homepage):not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body):not(.list-detail-page) main.site-main.container > div.container,
  html body:not(.juf-homepage):not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body):not(.list-detail-page) main.site-main.container .juf-authors-page > section.container,
  html body:not(.juf-homepage):not(.reader-page):not(.person-profile-page):not(.juf-reader-auth-page):not(.admin-shell-body):not(.list-detail-page) main.site-main.container .juf-books-page > section.container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* Build 660 Hotfix 76: Narrower Content Column (24px Mobile Side Gutters) on Book Details Page (details.php / body.book-system-page) */
@media (max-width: 768px) {
  html body.book-system-page main.site-main.container,
  html body.book-system-page .site-main.container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  html body.book-system-page main.site-main.container > .container.book-details-page {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ==========================================================================
   V154 — Light, Box-Free Editorial Related Curated Lists Strip (Site-Wide)
   Applies across author.php, authors.php, details.php, list.php
   ========================================================================== */
.juf-rel-lists-strip {
    margin: 26px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.juf-rel-lists-strip .juf-rel-lists-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    color: var(--ink, var(--text-main, #282e37)) !important;
}

.juf-rel-lists-strip .juf-rel-lists-title::before {
    display: none !important;
}

.juf-rel-lists-strip .juf-rel-lists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--border, rgba(40, 46, 55, 0.10));
}

.juf-rel-lists-strip .juf-rel-list-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 11px 4px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border, rgba(40, 46, 55, 0.10)) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ink, var(--text-main, #282e37)) !important;
    text-decoration: none !important;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.juf-rel-lists-strip .juf-rel-list-row:hover {
    color: var(--cta, #3346a8) !important;
    padding-left: 6px !important;
}

.juf-rel-lists-strip .juf-rel-list-name {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    min-width: 0;
}

.juf-rel-lists-strip .juf-rel-list-meta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted, var(--text-muted, #5b6376));
    white-space: nowrap;
}

.juf-rel-lists-strip .juf-rel-list-chev {
    font-size: 16px;
    line-height: 1;
    opacity: 0.55;
}

@media (min-width: 768px) {
    .juf-rel-lists-strip .juf-rel-lists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }
}

html[data-theme="dark"] .juf-rel-lists-strip .juf-rel-lists-grid,
body.dark-mode .juf-rel-lists-strip .juf-rel-lists-grid,
html[data-theme="dark"] .juf-rel-lists-strip .juf-rel-list-row,
body.dark-mode .juf-rel-lists-strip .juf-rel-list-row {
    border-color: rgba(236, 232, 225, 0.12) !important;
}

html[data-theme="pdf"] .juf-rel-lists-strip .juf-rel-lists-grid,
body[data-pdf-mode="pdf"] .juf-rel-lists-strip .juf-rel-lists-grid,
html[data-theme="pdf"] .juf-rel-lists-strip .juf-rel-list-row,
body[data-pdf-mode="pdf"] .juf-rel-lists-strip .juf-rel-list-row {
    border-color: rgba(108, 92, 72, 0.22) !important;
}
