
/* ==========================================================================
   JUFbook Final 28-Token Colour Palette (Warm Paper + Slate + Indigo CTA)
   ========================================================================== */
:root {
    --bg:           #F6F5F2;
    --surface:      #EDEBE6;
    --card:         #FFFFFF;
    --soft:         #EDEBE6;
    --tint:         #E6E9F5;
    --line:         #DEDAD2;
    --border-input: #8A90A0;
    --ink:          #282E37;
    --muted:        #5B6470;
    --accent:       #3B4256;
    --accent-hover: #2C3243;
    --on-accent:    #F6F5F2;
    --focus:        #3346A8;
    --cta:          #3346A8;
    --cta-hover:    #263787;
    --on-cta:       #FFFFFF;
    --link:         #2F5D9E;
    --link-hover:   #1F4478;
    --gold:         #B79A68;
    --gold-ink:     #7A6130;
    --gold-soft:    #EFE8D8;
    --star:         #A8741A;
    --ok:           #2E7A4F;
    --ok-bg:        #E4F1E9;
    --warn:         #7F520C;
    --warn-bg:      #F5EBD6;
    --danger:       #B0392B;
    --danger-bg:    #F8E4E0;
}

html[data-theme="dark"],
body.dark-mode {
    --bg:           #23262B !important;
    --surface:      #2C3037 !important;
    --card:         #2C3037 !important;
    --soft:         #343A44 !important;
    --tint:         #2A3350 !important;
    --line:         #3A3F47 !important;
    --border-input: #7A808C !important;
    --ink:          #ECE8E1 !important;
    --muted:        #A09B94 !important;
    --accent:       #C9D4EC !important;
    --accent-hover: #DDE5F5 !important;
    --on-accent:    #23262B !important;
    --focus:        #9CA1B4 !important;
    --cta:          #8FA4F2 !important;
    --cta-hover:    #AABAF7 !important;
    --on-cta:       #14193A !important;
    --link:         #93B6EE !important;
    --link-hover:   #B5CFF6 !important;
    --gold:         #C9B07C !important;
    --gold-ink:     #D8C08C !important;
    --gold-soft:    #3A3528 !important;
    --star:         #E0B35C !important;
    --ok:           #6FCB93 !important;
    --ok-bg:        #1F3A2C !important;
    --warn:         #E0B35C !important;
    --warn-bg:      #3A2F1A !important;
    --danger:       #F0907F !important;
    --danger-bg:    #3E2523 !important;
}

/* ========================================================================
   JUFbook Build 246 — Final professional dark-mode completion layer
   ------------------------------------------------------------------------
   Loaded after every public stylesheet. This file intentionally avoids
   blanket "all cards black" selectors. It closes known legacy light islands
   component-by-component while preserving all book/portrait/artwork pixels.
   ======================================================================== */

/* -------------------------------------------------------------------------
   0. Dark semantic contract — bridge every legacy token family
   ------------------------------------------------------------------------- */
html[data-theme="dark"] {
    --bg:#23262B !important;
    --surface:#2C3037 !important;
    --border:#3A3F47 !important;
    --text-primary:#ECE8E1 !important;
    --text-charcoal:#A09B94 !important;
    --light-bg:#343A44 !important;
    --accent:#C9D4EC !important;
    --accent-hover:#DDE5F5 !important;
    --accent-on:#23262B !important;
    --juf-surface-white:#2C3037 !important;
    --juf-surface-panel:#2C3037 !important;

    --home-paper:#23262B !important;
    --home-ink:#ECE8E1 !important;
    --home-muted:#A09B94 !important;
    --home-border:#3A3F47 !important;
    --home-teal:#C9D4EC !important;
    --home-rust:#C9D4EC !important;

    --books-paper:#23262B !important;
    --books-paper-soft:#2C3037 !important;
    --books-ink:#ECE8E1 !important;
    --books-muted:#A09B94 !important;
    --books-line:#3A3F47 !important;
    --books-teal:#C9D4EC !important;

    --juf-control-border:#3A3F47 !important;
    --juf-control-surface:#2C3037 !important;
    --juf-control-surface-soft:#343A44 !important;
    --juf-control-text:#ECE8E1 !important;
    --juf-control-muted:#A09B94 !important;
    --juf-control-accent:#C9D4EC !important;
    --juf-control-accent-strong:#C9D4EC !important;
    --juf-control-shadow:0 22px 58px rgba(0, 0, 0, .34) !important;
    --juf-focus-ring:0 0 0 3px rgba(201, 212, 236, .20) !important;

    --premium-ink:#ECE8E1 !important;
    --premium-muted:#A09B94 !important;
    --premium-line:#343A44 !important;
    --premium-soft:#23262B !important;
    --premium-card:#23262B !important;
    --premium-teal:#C9D4EC !important;
    --premium-teal-dark:#C9D4EC !important;
    --premium-gold:#C9B07C !important;

    --juf-auth-bg:#23262B !important;
    --juf-auth-surface:#23262B !important;
    --juf-auth-text:#ECE8E1 !important;
    --juf-auth-muted:#A09B94 !important;
    --juf-auth-border:#3A3F47 !important;
    --juf-auth-border-strong:#3A3F47 !important;
    --juf-auth-accent:#C9D4EC !important;
    --juf-auth-accent-hover:#DDE5F5 !important;
    --juf-auth-accent-soft:#343A44 !important;
    --juf-auth-focus:rgba(201, 212, 236, .20) !important;
    --juf-auth-shadow:0 28px 72px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] body.juf-2d-minimal:not(.reader-page) {
    background:#23262B !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal :where(select,option) {
    color-scheme:dark;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-admin-link-v24{
    background:#2C3037;
    border-color:#3A3F47;
    color:#A09B94!important;
}
html[data-theme="dark"] body.juf-2d-minimal option {
    background:#2C3037;
    color:#ECE8E1;
}

/* Preserve media/artwork. Dark mode changes the UI around it, not the art. */
html[data-theme="dark"] body.juf-2d-minimal :where(
    .juf-book-jacket,.juf-cover-graphic,.juf-cover-custom,
    .juf-author-art-avatar,.juf-author-circle-img,.person-portrait img,
    .juf-author-hero-portrait img,.author-directory-portrait img,
    .audio-row-cover img,.audio-player-art img,.audio-hub-featured-cover img
) { filter:none !important; }

/* -------------------------------------------------------------------------
   1. Shared controls — Books/Authors/Premium/Audiobook filters
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-toolbar,.juf-control-popover,.juf-author-filter-row,
    .premium-filter-fields,.audio-filter-fields
) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
    box-shadow:0 22px 58px rgba(0, 0, 0, .32) !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) :where(label,label>span,.juf-control-field>span,.juf-control-popover-head,.juf-control-count) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) :where(select,input:not([type=checkbox]):not([type=radio]),textarea,.juf-select-trigger) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) :where(select,input,textarea,.juf-select-trigger):focus {
    border-color:#DDE5F5 !important;
    box-shadow:0 0 0 3px rgba(201, 212, 236, .16) !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) .juf-select-list {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    box-shadow:0 16px 36px rgba(0, 0, 0, .32) !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) .juf-select-option {
    background:transparent !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) .juf-select-option:hover,
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) .juf-select-option:focus-visible,
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields
) .juf-select-option[aria-selected="true"] {
    background:#2C3037 !important;
    color:#FFFFFF !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-control-reset,
html[data-theme="dark"] body.juf-minimal-chrome .juf-author-clear-filter {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-control-apply,
html[data-theme="dark"] body.authors-page .juf-author-filter-apply {
    background:#C9D4EC !important;
    border-color:#C9D4EC !important;
    color:#23262B !important;
}

/* Authors filter sheet had two late hard-coded white layers. */
html[data-theme="dark"] body.authors-page .juf-author-filter-more > .juf-author-filter-row,
html[data-theme="dark"] body.authors-page .juf-author-filter-row {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:0 24px 62px rgba(0, 0, 0, .38) !important;
}
html[data-theme="dark"] body.authors-page .juf-author-filter-row label > span {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.authors-page .juf-author-filter-row select {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}

/* -------------------------------------------------------------------------
   2. Predictive search / suggestion panels
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestions,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:0 22px 58px rgba(0, 0, 0, .38) !important;
}
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions::before {
    background:#23262B !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-group-title,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-group-title {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion {
    background:#23262B !important;
    border-color:transparent !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion:hover,
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion.is-active,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion:hover,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion.is-active {
    background:#2C3037 !important;
    color:#FFFFFF !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-visual,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-visual.is-author {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-fallback {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-copy strong,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-copy strong {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-copy small,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-copy small {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-copy em,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-copy em {
    color:#C9D4EC !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-arrow {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-all,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-all {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-all:hover,
html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestion-all.is-active,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-all:hover,
html[data-theme="dark"] body.authors-page .juf-author-search-suggestions .juf-search-suggestion-all.is-active {
    background:#2C3037 !important;
    color:#FFFFFF !important;
}

/* -------------------------------------------------------------------------
   3. Homepage: remaining hard-coded light islands
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-homepage #authors .author-circle-disc {
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-homepage #authors .author-circle-name {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage #authors .author-circle-title,
html[data-theme="dark"] body.juf-homepage #authors .author-circle-unit > small {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-homepage .testimonial-card-white {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-homepage .testimonial-quote-text,
html[data-theme="dark"] body.juf-homepage .testimonial-reader-name {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage .testimonial-reader-location,
html[data-theme="dark"] body.juf-homepage .testimonial-book-context {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-premium-wrapper {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-premium-eyebrow {
    color:#C9D4EC !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-premium-wrapper .page-section-title {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-premium-subtitle,
html[data-theme="dark"] body.juf-homepage .newsletter-consent-note {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-consent-note a {
    color:#C9D4EC !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input {
    background:transparent !important;
    color:#ECE8E1 !important;
    border:0 !important;
    outline:0 !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input::placeholder,
html[data-theme="dark"] body.juf-homepage .newsletter-mail-mark {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-btn {
    background:#C9D4EC !important;
    color:#23262B !important;
    border-color:#C9D4EC !important;
}

/* -------------------------------------------------------------------------
   4. Books catalogue / Details / Authors
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-page-books :where(.juf-library-title,.juf-library-heading,.juf-library-heading h1,.juf-library-heading h2) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-books :where(.juf-library-subtitle,.juf-catalog-meta,.juf-catalog-author,.juf-control-count) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-menu > summary {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search {
    background:#23262B !important;
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search input {
    background:transparent !important;
}

html[data-theme="dark"] body.book-system-page .juf-details-card,
html[data-theme="dark"] body.book-system-page .juf-book-publication-card,
html[data-theme="dark"] body.book-system-page .juf-details-author-card {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.book-system-page :where(.juf-details-title,.juf-details-card h1,.juf-details-card h2,.juf-book-publication-card h2) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.book-system-page :where(.juf-details-summary,.juf-details-author-line,.juf-details-meta,.juf-book-publication-card p,.juf-book-publication-card span) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.book-system-page :where(.juf-details-action.is-disabled,.juf-details-action[aria-disabled="true"],button:disabled) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    opacity:1 !important;
}
html[data-theme="dark"] body.book-system-page .juf-details-action:not(.is-disabled):not([aria-disabled="true"]) {
    color:#FFFFFF !important;
}

html[data-theme="dark"] body.authors-page .juf-author-directory-card,
html[data-theme="dark"] body.authors-page .juf-author-directory-item {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.authors-page .juf-author-directory-portrait,
html[data-theme="dark"] body.authors-page .juf-author-directory-portrait-wrap {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.authors-page :where(.juf-author-directory-heading h1,.juf-author-directory-heading h2,.juf-author-directory-name) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.authors-page :where(.juf-author-directory-heading p,.juf-author-directory-meta,.juf-author-directory-count) {
    color:#A09B94 !important;
}

/* -------------------------------------------------------------------------
   5. Person / Biography readability — release-blocking area
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.person-profile-page .juf-person {
    --person-paper:#23262B !important;
    --person-paper-deep:#343A44 !important;
    --person-surface:#2C3037 !important;
    --person-surface-line:#3A3F47 !important;
    --person-rule:#3A3F47 !important;
    --person-ink:#ECE8E1 !important;
    --person-muted:#A09B94 !important;
    --person-accent:#C9D4EC !important;
    --person-accent-deep:#DDE5F5 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.person-profile-page .juf-person :where(
    .person-hero,.person-overview,.person-fact-panel,.person-intro-panel,
    .person-source-panel,.person-related-panel,.person-timeline-card,
    .person-books-panel,.person-section-inner
) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.person-profile-page .juf-person :where(
    h1,h2,h3,h4,.person-name,.person-biography-section-title,
    .person-timeline-title,.person-work-title,.person-fact-value,strong
) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.person-profile-page .juf-person :where(
    p,li,dd,.person-biography-section-body,.person-intro,.person-overview-copy,
    .person-work-copy,.person-timeline-copy
) { color:#A09B94 !important; }
html[data-theme="dark"] body.person-profile-page .juf-person :where(
    dt,small,.person-english,.person-meta,.person-section-note,.person-source-refs,
    .person-book-meta,.person-follower-count
) { color:#A09B94 !important; }
html[data-theme="dark"] body.person-profile-page .juf-person .person-biography-section {
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.person-profile-page .juf-person .person-biography-section-title {
    border-color:#C9D4EC !important;
}
html[data-theme="dark"] body.person-profile-page .juf-person :where(a,.person-more,.person-book-filters a) {
    color:#C9D4EC !important;
}
html[data-theme="dark"] body.person-profile-page .juf-person .person-nav {
    background:#23262B !important;
    border-color:#3A3F47 !important;
}

/* -------------------------------------------------------------------------
   6. Reader profile + Account/Privacy
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-page-account .juf-account-shell {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-title {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-intro {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-panel {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-panel.is-danger {
    background:#23262B !important;
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-panel-title {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-panel-title.is-danger {
    color:#F0907F !important;
}
html[data-theme="dark"] body.juf-page-account :where(.juf-account-panel-copy,.account-social-note,.account-session-revoke p) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-account :where(.juf-account-panel-copy.is-danger,.account-danger-note) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-account :where(
    .account-profile-grid label,.account-password-grid label,.account-session-revoke label,
    .account-social-disconnect label,.account-danger-form label
) { color:#A09B94 !important; }
html[data-theme="dark"] body.juf-page-account :where(
    .account-profile-grid input,.account-password-grid input,.account-session-revoke input,
    .account-social-disconnect input,.account-danger-form input
) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-account .account-social-card {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.juf-page-account .account-social-card :where(span,small) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-account .account-social-card > a {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-account .account-social-disconnect button {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#F0907F !important;
}
html[data-theme="dark"] body.juf-page-account .account-session-revoke {
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-notice.is-success {
    background:#2C3037 !important;
    border-color:#6FCB93 !important;
    color:#6FCB93 !important;
}
html[data-theme="dark"] body.juf-page-account .juf-account-notice.is-error {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#F0907F !important;
}

/* -------------------------------------------------------------------------
   7. Policy / legal / Contact / Support / Notifications
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-shell {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-shell :where(h1,h2,h3,h4,strong) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-shell :where(p,li,dd) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-shell :where(a) {
    color:#C9D4EC !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-note {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
}

html[data-theme="dark"] body.juf-page-contact .contact-card,
html[data-theme="dark"] body.juf-page-contact .contact-info-card {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-contact .contact-info-list > * {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-contact :where(.contact-card h2,.contact-info-card h2,.contact-hero h1) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-contact :where(.contact-hero p,.contact-info-card p,.contact-field small) {
    color:#A09B94 !important;
}

html[data-theme="dark"] body.juf-page-support .support-public-entry,
html[data-theme="dark"] body.juf-page-support .support-public-compose {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-support .support-public-entry.is-staff {
    background:#2C3037 !important;
}
html[data-theme="dark"] body.juf-page-support :where(.support-public-entry strong,.support-page-head h1) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-support :where(.support-public-entry p,.support-public-entry small,.support-page-head p) {
    color:#A09B94 !important;
}

html[data-theme="dark"] body.juf-page-notifications .notification-toolbar nav a {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-toolbar nav a span {
    background:#2C3037 !important;
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-toolbar nav a.active {
    background:#C9D4EC !important;
    border-color:#C9D4EC !important;
    color:#23262B !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-card {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-card.is-unread {
    background:#2C3037 !important;
    border-left-color:#C9D4EC !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-type-icon {
    background:#2C3037 !important;
    color:#C9D4EC !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-card h2 {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-card p,
html[data-theme="dark"] body.juf-page-notifications .notification-card-meta {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-unread-dot {
    background:#343A44 !important;
    color:#C9D4EC !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-empty {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-notifications .notification-empty strong { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-notifications .notification-empty code { background:#2C3037 !important;color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-notifications .notification-pagination a {
    background:#23262B !important;border-color:#3A3F47 !important;color:#C9D4EC !important;
}

/* -------------------------------------------------------------------------
   8. Premium
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.premium-page {
    --premium-ink:#ECE8E1 !important;
    --premium-muted:#A09B94 !important;
    --premium-line:#343A44 !important;
    --premium-soft:#23262B !important;
    --premium-card:#23262B !important;
    --premium-teal:#C9D4EC !important;
    --premium-teal-dark:#C9D4EC !important;
    --premium-gold:#C9B07C !important;
}
html[data-theme="dark"] body.premium-page .premium-hero {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.premium-page .premium-hero-panel,
html[data-theme="dark"] body.premium-page :where(.premium-scope-grid div,.premium-active-pass,.premium-pass-muted,.premium-plan-card,.premium-library-callout,.premium-trust-grid>*,.premium-faq-list>*,.premium-policy-links) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.premium-page :where(h1,h2,h3,strong,.premium-scope-grid strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.premium-page :where(p,small,.premium-scope-grid span) { color:#A09B94 !important; }
html[data-theme="dark"] body.premium-page .premium-secondary-btn,
html[data-theme="dark"] body.premium-page .premium-pass-muted > a {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}

/* -------------------------------------------------------------------------
   9. Audiobooks + player
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.audiobook-page :where(
    .audio-hub-hero-v2,.audio-hub-featured,
    .audio-collection-card,.audio-filter-fields
) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
/* Catalogue surfaces and metadata retain the same hierarchy in both themes. */
html[data-theme="dark"] body.audiobook-page :where(.audio-hub-count,.audio-context-kicker,.audio-category-chip) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
}
html[data-theme="dark"] body.audiobook-page :where(.audio-hub-count span,.audio-music-section-head>div>span,.audio-shelf-heading>div>span,.audio-hub-featured-copy>span,.audio-hub-featured-author,.audio-new-copy p,.audio-music-section-head>a,.audio-shelf-heading>a,.audio-row-actions>a:not(.audio-inline-play)) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.audiobook-page .audio-category-chip.is-active {
    background:#343A44 !important;
    border-color:#C9D4EC !important;
}
html[data-theme="dark"] body.audiobook-page .audio-hub-featured-actions a {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.audiobook-page :where(.audio-new-meta em,.audio-row-stats small) {
    background:#2C3037 !important;
    color:#A09B94 !important;
}
html[data-theme="dark"] body.audiobook-page :where(.audio-library-list,.audio-library-heading) {
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.audiobook-page .audio-library-row {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.audiobook-page .audio-library-row:hover { background:#2C3037 !important; }
html[data-theme="dark"] body.audiobook-page :where(.audio-library-heading h2,.audio-row-copy strong,.audio-new-copy strong,.audio-collection-card-copy strong) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.audiobook-page :where(.audio-row-copy small,.audio-row-voice,.audio-row-voice strong,.audio-row-voice span,.audio-row-voice small,.audio-row-stats,.audio-row-stats span,.audio-new-meta,.audio-collection-card-copy small) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.audiobook-page .audio-player-panel {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
    box-shadow:0 18px 48px rgba(0, 0, 0, .34) !important;
}
html[data-theme="dark"] body.juf-page-audiobook :where(.audio-detail-hero,.audio-detail-info,.audio-narrator-card,.audio-playlist-section) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-audiobook :where(.audio-detail-info h1,.audio-detail-info h2,.audio-track-copy strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-audiobook :where(.audio-detail-desc,.audio-detail-author,.audio-track-copy small) { color:#A09B94 !important; }

/* -------------------------------------------------------------------------
   10. Search results / Assistant / Member
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-search-shell .juf-search-hero,
html[data-theme="dark"] body.juf-search-shell .juf-universal-search {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-search-shell :where(.juf-search-author-grid>a,.juf-search-category-grid>a,.juf-search-audio-grid>a) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-search-shell :where(.juf-search-group h2,.juf-search-author-grid strong,.juf-search-category-grid strong,.juf-search-audio-grid strong) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-search-shell :where(.juf-search-summary p,.juf-search-author-grid small,.juf-search-author-grid em,.juf-search-category-grid span,.juf-search-audio-grid small,.juf-search-audio-grid em) {
    color:#A09B94 !important;
}

html[data-theme="dark"] body.juf-page-assistant :where(.juf-ai-book-head,.juf-ai-chat) {
    background:#23262B !important;border-color:#3A3F47 !important;box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-assistant .juf-ai-messages { background:#23262B !important; }
html[data-theme="dark"] body.juf-page-assistant .juf-ai-message.is-assistant { background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-assistant .juf-ai-notice { background:#2C3037 !important;border-color:#3A3F47 !important;color:#A09B94 !important; }

html[data-theme="dark"] body.juf-page-member .reader-public { background:#23262B !important;border-color:#3A3F47 !important;color:#A09B94 !important; }

/* -------------------------------------------------------------------------
   11. Login / recovery / verification / email-help
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-reader-auth-page {
    background:#23262B !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-shell-v27,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-panel-v27 {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
    box-shadow:0 28px 72px rgba(0, 0, 0, .34) !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-heading-v27 :where(h1,h2,#reader-auth-title) { color:#ECE8E1 !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-legal-v27 { color:#A09B94 !important; }
html[data-theme="dark"] body.juf-reader-auth-page :where(.reader-auth-input-wrap-v31,input) {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page :where(.reader-auth-google-v31,.reader-auth-facebook-v31) {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-divider-v31 { color:#A09B94 !important; }

html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password,.juf-page-resend-verification,.juf-page-verify-email,.juf-page-email-delivery-help) .site-main > .container,
html[data-theme="dark"] body.juf-page-email-delivery-help .email-help-card {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password,.juf-page-resend-verification,.juf-page-verify-email,.juf-page-email-delivery-help) :where(h1,h2,h3,strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password,.juf-page-resend-verification,.juf-page-verify-email,.juf-page-email-delivery-help) :where(p,small) { color:#A09B94 !important; }

/* -------------------------------------------------------------------------
   12. Payment status and standalone checkout
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-page-payment-status :where(.checkout-card,.payment-status-card) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-payment-status :where(h1,h2,h3,strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-payment-status :where(p,small,.payment-id-line) { color:#A09B94 !important; }

html[data-theme="dark"] body.juf-checkout-reference-page-v32 {
    background:#23262B !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .juf-checkout-panel-v32,
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .juf-checkout-section-v32 {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-checkout-reference-page-v32 :where(
    .juf-checkout-method-v32,.juf-checkout-field-box-v32,.juf-checkout-product-v32,
    .juf-checkout-summary-rows-v32,.juf-checkout-digital-note-v32
) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-checkout-reference-page-v32 :where(h1,h2,h3,strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-checkout-reference-page-v32 :where(p,small,span) { color:#A09B94; }
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .juf-checkout-method-v32.is-selected {
    background:#343A44 !important;border-color:#C9D4EC !important;color:#FFFFFF !important;
}
html[data-theme="dark"] body.juf-checkout-reference-page-v32 .juf-checkout-pay-v32 {
    background:#C9D4EC !important;border-color:#C9D4EC !important;color:#23262B !important;
}

/* -------------------------------------------------------------------------
   13. Shared focus / disabled / scrollbars
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-2d-minimal :where(button,a,input,select,textarea,summary):focus-visible {
    outline-color:#DDE5F5 !important;
}
html[data-theme="dark"] body.juf-2d-minimal :where(button:disabled,input:disabled,select:disabled,textarea:disabled,[aria-disabled="true"]) {
    cursor:not-allowed;
}
html[data-theme="dark"] body.juf-2d-minimal ::selection {
    background:#C9D4EC;
    color:#23262B;
}

@media (max-width:760px) {
    html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields) {
        border-color:#3A3F47 !important;
        background:#23262B !important;
    }
}

@media (prefers-reduced-motion:reduce) {
    html[data-theme="dark"] .juf-theme-toggle-v1,
    html[data-theme="dark"] body.juf-2d-minimal * { scroll-behavior:auto !important; }
}

/* -------------------------------------------------------------------------
   14. Remaining legacy legal/profile/community surfaces
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-form :where(input,select,textarea) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-success {
    background:#2C3037 !important;border-color:#6FCB93 !important;color:#6FCB93 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-policy-error {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#F0907F !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-book-publication-card,
html[data-theme="dark"] body.juf-minimal-chrome .juf-public-rights-note {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-publication-facts div {
    background:transparent !important;border-color:#3A3F47 !important;color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .juf-publication-facts :where(dt,small),
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-source-attribution,.juf-rights-help) { color:#A09B94 !important; }
html[data-theme="dark"] body.juf-minimal-chrome .juf-publication-facts dd { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-minimal-chrome .juf-public-rights-note strong { color:#6FCB93 !important; }

html[data-theme="dark"] body.juf-page-profile .profile-premium-pass-v26.is-inactive {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-profile .profile-premium-pass-v26.is-inactive h3 { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-profile .profile-premium-pass-v26.is-inactive p { color:#A09B94 !important; }
html[data-theme="dark"] body.juf-page-profile .profile-premium-pass-v26.is-inactive > div:first-child > span,
html[data-theme="dark"] body.juf-page-profile .profile-premium-pass-v26.is-inactive > a { color:#C9D4EC !important; }
html[data-theme="dark"] body.juf-page-profile .site-main .profile-hub .profile-premium-pass-v26.is-inactive>a{
    background:#C9D4EC!important;
    color:#23262B!important;
}
html[data-theme="dark"] body.juf-page-profile :where(.profile-release-block,.profile-note-panel,.profile-note-panel a,.profile-overview-discover>a,.profile-book-unavailable) {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#A09B94 !important;
}
html[data-theme="dark"] body.juf-page-profile .profile-note-panel :where(strong,h3),
html[data-theme="dark"] body.juf-page-profile .profile-release-block :where(h3,strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-profile .profile-note-panel :where(p,span),
html[data-theme="dark"] body.juf-page-profile .profile-release-block small { color:#A09B94 !important; }
html[data-theme="dark"] body.juf-page-profile .reader-review-report :where(select,textarea) {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-profile .reader-review-report button {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important;
}

/* Native checkbox/radio accents remain clear without creating white islands. */
html[data-theme="dark"] body.juf-2d-minimal :where(input[type="checkbox"],input[type="radio"]) {
    accent-color:#C9D4EC;
}

/* Recovery / verification pages still contain legacy inline light panels. */
html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password) .site-main > .container > div,
html[data-theme="dark"] body:is(.juf-page-resend-verification,.juf-page-verify-email) .site-main > .container > section {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password,.juf-page-resend-verification,.juf-page-verify-email) .site-main :where(label,h1,h2,strong) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password,.juf-page-resend-verification,.juf-page-verify-email) .site-main :where(p) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password,.juf-page-resend-verification,.juf-page-verify-email) .site-main div[role="status"] {
    background:#2C3037 !important;
    color:#6FCB93 !important;
    border-color:#6FCB93 !important;
}
html[data-theme="dark"] body:is(.juf-page-forgot-password,.juf-page-reset-password,.juf-page-resend-verification,.juf-page-verify-email) .site-main div[style*="background:#F0907F"] {
    background:#2C3037 !important;
    color:#F0907F !important;
    border-color:#3A3F47 !important;
}

/* -------------------------------------------------------------------------
   15. Discovery, empty-state, review and auxiliary public surfaces
   ------------------------------------------------------------------------- */
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-public-empty-state,.category-empty,.juf-author-empty,.audio-empty-state,
    .juf-search-empty,.home-section-empty
) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .juf-public-empty-state,.category-empty,.juf-author-empty,.audio-empty-state,
    .juf-search-empty,.home-section-empty
) :where(h2,h3,strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-minimal-chrome .juf-public-empty-state > div:last-child > a {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important;
}

html[data-theme="dark"] body.book-system-page :where(
    .approved-review-card,.juf-book-summary-card,.juf-part-panels
) {
    background:transparent !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.book-system-page :where(
    .book-community-panel,.juf-reader-review-form-card,.juf-book-publication-card,.juf-intro-disclosure
) {
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.book-system-page :where(
    .approved-review-card h3,.approved-review-card strong,
    .juf-reader-review-form-card h2,.juf-book-summary-card h2
) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.book-system-page :where(
    .approved-review-card p,.approved-review-card small,.approved-review-meta,
    .juf-reader-review-form-card p,.juf-book-summary-card p
) { color:#A09B94 !important; }
html[data-theme="dark"] body.book-system-page .juf-reader-review-form-card :where(input,textarea,select) {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important;
}
html[data-theme="dark"] body.book-system-page .juf-part-tab {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#A09B94 !important;
}
html[data-theme="dark"] body.book-system-page .juf-part-tab.is-active,
html[data-theme="dark"] body.book-system-page .juf-part-tab[aria-selected="true"] {
    background:#C9D4EC !important;border-color:#C9D4EC !important;color:#23262B !important;
}

html[data-theme="dark"] body.authors-page :where(
    .juf-author-filter-panel,.juf-author-genre-card,.juf-author-genre-empty,
    .juf-author-new-book-stage,.juf-author-profile-note,.juf-author-profile-card
) {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.authors-page .juf-author-genre-card :where(h3,h4,strong),
html[data-theme="dark"] body.authors-page .juf-author-new-book-stage :where(h2,h3,strong) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.authors-page .juf-author-genre-card :where(p,small,span),
html[data-theme="dark"] body.authors-page .juf-author-new-book-stage :where(p,small,span) {
    color:#A09B94 !important;
}
html[data-theme="dark"] body.authors-page .juf-author-collection-tabs a {
    background:#23262B !important;border-color:#3A3F47 !important;color:#A09B94 !important;
}
html[data-theme="dark"] body.authors-page .juf-author-collection-tabs a[aria-current="page"],
html[data-theme="dark"] body.authors-page .juf-author-collection-tabs a.active {
    background:#C9D4EC !important;border-color:#C9D4EC !important;color:#23262B !important;
}

html[data-theme="dark"] body.juf-homepage :where(.audio-media-card,.audio-pill-card,.audio-hub-card) {
    background:#23262B !important;border-color:#3A3F47 !important;box-shadow:none !important;
}
html[data-theme="dark"] body.juf-homepage :where(.audio-media-card,.audio-pill-card,.audio-hub-card) :where(h3,h4,strong) {
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage :where(.audio-media-card,.audio-pill-card,.audio-hub-card) :where(p,small,span) {
    color:#A09B94 !important;
}

html[data-theme="dark"] body.juf-minimal-chrome :where(.category-discovery-bar,.category-archive-meta,.category-related,.category-featured-authors) {
    background:#23262B !important;border-color:#3A3F47 !important;color:#A09B94 !important;box-shadow:none !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .category-discovery-bar :where(input,select,button,a),
html[data-theme="dark"] body.juf-minimal-chrome .category-audio-check,
html[data-theme="dark"] body.juf-minimal-chrome :where(.category-related a,.category-featured-authors a) {
    background:#2C3037 !important;border-color:#3A3F47 !important;color:#ECE8E1 !important;
}

/* Final action contrast: white copy remains >= 4.5:1 on primary controls. */
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .btn-primary,.primary-btn,.cta-primary,.juf-primary-btn,.btn-hero-cinematic-primary,
    .premium-primary-btn,.juf-login-btn-v24,.juf-control-apply,.juf-author-filter-apply,
    .newsletter-luxury-btn,.newsletter-premium-btn,.audio-inline-play,.audio-primary-play,
    .notification-action-primary,.contact-submit,.juf-account-action.is-primary
) {
    background:#8FA4F2 !important;
    border-color:#8FA4F2 !important;
    color:#14193A !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .btn-primary,.primary-btn,.cta-primary,.juf-primary-btn,.btn-hero-cinematic-primary,
    .premium-primary-btn,.juf-login-btn-v24,.juf-control-apply,.juf-author-filter-apply,
    .newsletter-luxury-btn,.newsletter-premium-btn,.audio-inline-play,.audio-primary-play,
    .notification-action-primary,.contact-submit,.juf-account-action.is-primary
):hover,
html[data-theme="dark"] body.juf-minimal-chrome :where(
    .btn-primary,.primary-btn,.cta-primary,.juf-primary-btn,.btn-hero-cinematic-primary,
    .premium-primary-btn,.juf-login-btn-v24,.juf-control-apply,.juf-author-filter-apply,
    .newsletter-luxury-btn,.newsletter-premium-btn,.audio-inline-play,.audio-primary-play,
    .notification-action-primary,.contact-submit,.juf-account-action.is-primary
):focus-visible {
    background:#AABAF7 !important;
    border-color:#AABAF7 !important;
    color:#14193A !important;
}

/* Locked-reader fallback uses inline legacy paper colours; keep it consistent. */
html[data-theme="dark"] body.juf-page-read .site-main > main.container > section {
    background:#23262B !important;
    border-color:#3A3F47 !important;
    color:#A09B94 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-page-read .site-main > main.container > section :where(h1,strong) { color:#ECE8E1 !important; }
html[data-theme="dark"] body.juf-page-read .site-main > main.container > section p { color:#A09B94 !important; }

/* ========================================================================
   Build 247 — final contrast/popup/Reader completion
   ======================================================================== */

/* Search/result surfaces: no white popup islands in dark mode. */
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-search-suggestions,.juf-author-search-suggestions,.juf-books-search-suggestions) {
    background:#23262B!important;
    border-color:#3A3F47!important;
    color:#ECE8E1!important;
    box-shadow:0 24px 64px rgba(0, 0, 0, .46)!important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-search-suggestions,.juf-author-search-suggestions,.juf-books-search-suggestions) :where(.juf-search-suggestion,.juf-search-suggestion-all) {
    background:#23262B!important;
    border-color:#3A3F47!important;
    color:#ECE8E1!important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-search-suggestions,.juf-author-search-suggestions,.juf-books-search-suggestions) :where(.juf-search-suggestion:hover,.juf-search-suggestion.is-active,.juf-search-suggestion[aria-selected="true"],.juf-search-suggestion-all:hover,.juf-search-suggestion-all.is-active) {
    background:#2C3037!important;
    color:#FFFFFF!important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-search-suggestions,.juf-author-search-suggestions,.juf-books-search-suggestions) .juf-search-suggestion-group-title {
    color:#A09B94!important;
    border-color:#3A3F47!important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-search-suggestions,.juf-author-search-suggestions,.juf-books-search-suggestions) .juf-search-suggestion-copy strong {
    color:#ECE8E1!important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-search-suggestions,.juf-author-search-suggestions,.juf-books-search-suggestions) .juf-search-suggestion-copy :where(small,em) {
    color:#A09B94!important;
}
html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-search-suggestions,.juf-author-search-suggestions,.juf-books-search-suggestions) .juf-search-suggestion-visual {
    background:#2C3037!important;
    border-color:#3A3F47!important;
}

/* Catalogue and author-directory text should be comfortably readable, not grey-on-black. */
html[data-theme="dark"] body.juf-page-books :where(.juf-library-hero-copy h1,.juf-books-hero h1,.juf-book-discovery-head h2,.juf-catalog-heading h2,.juf-catalog-title),
html[data-theme="dark"] body.authors-page :where(.juf-author-directory-heading h1,.juf-author-directory-heading h2,.juf-author-directory-name,.page-section-title) {
    color:#ECE8E1!important;
}
html[data-theme="dark"] body.juf-page-books :where(.juf-library-hero-copy p,.juf-books-hero p,.juf-control-result span,.juf-catalog-author,.juf-catalog-book-meta),
html[data-theme="dark"] body.authors-page :where(.juf-author-directory-summary,.juf-author-directory-meta,.juf-author-directory-role,.juf-author-directory-en,.juf-author-directory-status) {
    color:#A09B94!important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search,
html[data-theme="dark"] body.authors-page .juf-author-directory-search {
    background:#23262B!important;
    border-color:#3A3F47!important;
    color:#ECE8E1!important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search input,
html[data-theme="dark"] body.authors-page .juf-author-directory-search input {
    color:#ECE8E1!important;
    caret-color:#343A44!important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search input::placeholder,
html[data-theme="dark"] body.authors-page .juf-author-directory-search input::placeholder {
    color:#A09B94!important;
    opacity:1!important;
}
html[data-theme="dark"] body.juf-page-books :where(.juf-control-search-icon,.juf-author-filter-icon),
html[data-theme="dark"] body.authors-page :where(.juf-control-search-icon,.juf-author-filter-icon) {
    color:#A09B94!important;
    stroke:currentColor!important;
}

/* Details TOC / no-content states. */
html[data-theme="dark"] body.book-system-page :where(.juf-details-empty,.juf-part-panels,.juf-part-panel,.juf-chapter-subsections) {
    background:#23262B!important;
    border-color:#3A3F47!important;
    color:#A09B94!important;
    box-shadow:none!important;
}
html[data-theme="dark"] body.book-system-page .juf-details-empty strong,
html[data-theme="dark"] body.book-system-page .juf-chapter-row strong {
    color:#ECE8E1!important;
}
html[data-theme="dark"] body.book-system-page .juf-details-empty span,
html[data-theme="dark"] body.book-system-page .juf-chapter-row small {
    color:#A09B94!important;
}
html[data-theme="dark"] body.book-system-page .juf-chapter-row {
    background:#23262B!important;
    border-color:#3A3F47!important;
    color:#ECE8E1!important;
}
html[data-theme="dark"] body.book-system-page .juf-chapter-row:hover,
html[data-theme="dark"] body.book-system-page .juf-chapter-row:focus-visible,
html[data-theme="dark"] body.book-system-page .juf-chapter-row.is-current {
    background:#2C3037!important;
    border-color:#DDE5F5!important;
}
html[data-theme="dark"] body.book-system-page .juf-chapter-state {
    color:#C9D4EC!important;
}

/* Reader: global Dark Mode becomes the initial Reader dark theme only when the
   reader does not already have a personal saved theme. Reader preferences still
   remain independent after the first choice. */
html[data-theme="dark"] body.reader-page .reader-content-empty {
    background:#23262B!important;
    border:1px dashed #3A3F47!important;
    color:#A09B94!important;
}
html[data-theme="dark"] body.reader-page .reader-content-empty strong {
    color:#ECE8E1!important;
}
html[data-theme="dark"] body.reader-page .reader-content-empty a {
    color:#C9D4EC!important;
}

/* Make the filter sheet feel like one coherent mobile surface. */
@media(max-width:760px){
    html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields) {
        background:#23262B!important;
        border-color:#3A3F47!important;
    }
    html[data-theme="dark"] body.juf-minimal-chrome :where(.juf-control-popover,.juf-author-filter-row,.premium-filter-fields,.audio-filter-fields)::before {
        content:"";
        display:block;
        width:42px;
        height:4px;
        margin:0 auto 4px;
        border-radius:999px;
        background:#343A44;
        grid-column:1/-1;
    }
}

/* Build 248 — Dark catalogue/directory search field visual correction.
   Keep the search control transparent like the approved light-mode geometry:
   the outline carries the affordance; the field does not become another dark card. */
html[data-theme="dark"] body.juf-page-books .juf-control-search,
html[data-theme="dark"] body.authors-page .juf-author-directory-search {
    background: transparent !important;
    border: 1.5px solid rgba(246, 245, 242, .88) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search:hover,
html[data-theme="dark"] body.authors-page .juf-author-directory-search:hover {
    border-color: #C9D4EC !important;
    background: transparent !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search:focus-within,
html[data-theme="dark"] body.authors-page .juf-author-directory-search:focus-within {
    border-color: #9CA1B4 !important;
    background: transparent !important;
    box-shadow: 0 0 0 2px rgba(246, 245, 242, .10) !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search input,
html[data-theme="dark"] body.authors-page .juf-author-directory-search input {
    background: transparent !important;
    color: #ECE8E1 !important;
    caret-color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search input::placeholder,
html[data-theme="dark"] body.authors-page .juf-author-directory-search input::placeholder {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search .juf-control-search-submit,
html[data-theme="dark"] body.authors-page .juf-author-directory-search .juf-control-search-submit {
    background: #2C3037 !important;
    border: 1px solid #3A3F47 !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search .juf-control-search-submit:hover,
html[data-theme="dark"] body.juf-page-books .juf-control-search .juf-control-search-submit:focus-visible,
html[data-theme="dark"] body.authors-page .juf-author-directory-search .juf-control-search-submit:hover,
html[data-theme="dark"] body.authors-page .juf-author-directory-search .juf-control-search-submit:focus-visible {
    background: #2C3037 !important;
    border-color: #9CA1B4 !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search .juf-control-search-clear,
html[data-theme="dark"] body.authors-page .juf-author-directory-search .juf-control-search-clear,
html[data-theme="dark"] body.juf-page-books .juf-control-search > .juf-control-search-icon,
html[data-theme="dark"] body.authors-page .juf-author-directory-search > .juf-control-search-icon {
    color: #ECE8E1 !important;
    stroke: currentColor !important;
}

/* Build 249 — Final dark-mode focus neutrality for catalogue/author search. */
html[data-theme="dark"] body.juf-page-books .juf-control-search:focus-within,
html[data-theme="dark"] body.authors-page .juf-author-directory-search:focus-within {
    outline: 0 !important;
    outline-offset: 0 !important;
    border-color: rgba(246, 245, 242, .92) !important;
    background: transparent !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search input:focus,
html[data-theme="dark"] body.juf-page-books .juf-control-search input:focus-visible,
html[data-theme="dark"] body.authors-page .juf-author-directory-search input:focus,
html[data-theme="dark"] body.authors-page .juf-author-directory-search input:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
html[data-theme="dark"] body.juf-page-books .juf-control-search :is(.juf-control-search-clear,.juf-control-search-submit):focus-visible,
html[data-theme="dark"] body.authors-page .juf-author-directory-search :is(.juf-control-search-clear,.juf-control-search-submit):focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* Build 249 — Dark mobile newsletter gets the same distinct input bar as light mode. */
@media (max-width: 620px) {
  html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill:focus-within {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill .pill-input-wrap {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 13px !important;
    border: 1px solid #3A3F47 !important;
    border-radius: 14px !important;
    background: #23262B !important;
    box-shadow: none !important;
  }
  html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill .pill-input-wrap:focus-within {
    border-color: #9CA1B4 !important;
    box-shadow: 0 0 0 2px rgba(217, 214, 208, .06) !important;
  }
  html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input,
  html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input:focus,
  html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #ECE8E1 !important;
  }
}

/* Build 254 — keep the centered newsletter stack equally minimal in dark mode. */
html[data-theme="dark"] body.juf-homepage .newsletter-premium-wrapper,
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill,
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill:focus-within {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill .pill-input-wrap {
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 auto !important;
    padding: 0 14px !important;
    border: 1px solid #3A3F47 !important;
    border-radius: 12px !important;
    background: rgba(35, 38, 43, .72) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill .pill-input-wrap:focus-within {
    border-color: #9CA1B4 !important;
    box-shadow: 0 0 0 2px rgba(217, 214, 208, .05) !important;
}

html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input,
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input:focus,
html[data-theme="dark"] body.juf-homepage .newsletter-luxury-input:focus-visible {
    background: transparent !important;
    color: #ECE8E1 !important;
    text-align: center !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 620px) {
    html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill,
    html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill:focus-within {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] body.juf-homepage .newsletter-luxury-pill .pill-input-wrap {
        width: min(100%, 330px) !important;
        max-width: 330px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        border-radius: 11px !important;
    }
}

/* Populated audio playlists need the same dark surfaces as their empty state. */
html[data-theme="dark"] :is(.juf-page-audiobook,.juf-page-audiobooks) :is(.audio-playlist,.audio-detail-stats span,.audio-premium-access,.audio-track-provider) { background:#23262B; border-color:#3A3F47; color:#A09B94; }
html[data-theme="dark"] :is(.juf-page-audiobook,.juf-page-audiobooks) .audio-playlist li + li { border-color:#3A3F47; }
html[data-theme="dark"] :is(.juf-page-audiobook,.juf-page-audiobooks) .audio-track-row { border-color:#3A3F47; color:#ECE8E1; }
html[data-theme="dark"] :is(.juf-page-audiobook,.juf-page-audiobooks) .audio-track-row:is(:hover,:focus-visible,.is-active) { background:#2C3037; }
html[data-theme="dark"] :is(.juf-page-audiobook,.juf-page-audiobooks) .audio-track-number { background:#2C3037; color:#ECE8E1; }
html[data-theme="dark"] :is(.juf-page-audiobook,.juf-page-audiobooks) .audio-track-row.is-active .audio-track-number { background:#C9D4EC; color:#23262B; }
.juf-player-controls button svg,.juf-player-tools button svg { vertical-align:middle; }


/* ==========================================================================
   BUILD 352 — PHASE-BY-PHASE LIGHT & DARK MODE CONTRAST, BUTTONS & READER POLISH
   ========================================================================== */

/* Phase 1: High-specificity Light Mode button & active pill contrast */
html body.juf-2d-minimal a.juf-public-writings-cta,
html body.juf-2d-minimal a.juf-writing-reader-write-link,
html body.juf-2d-minimal .juf-public-writings-tabs a[aria-current="page"],
html body.juf-2d-minimal .site-main #library-home .juf-user-writings-status-pills a[aria-current="page"],
html body.juf-2d-minimal .site-main #library-home a.juf-social-quick-post-btn,
html body.juf-2d-minimal a.juf-home-writings-post-btn,
html body.juf-2d-minimal .reader-public > a {
    background: #3346A8 !important;
    border-color: #3346A8 !important;
    color: #FFFFFF !important;
    opacity: 1 !important;
}

html body.juf-2d-minimal a.juf-social-read-btn {
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
    color: #282E37 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
html body.juf-2d-minimal a.juf-social-read-btn:hover,
html body.juf-2d-minimal a.juf-social-read-btn:focus-visible {
    background: #2C3243 !important;
    border-color: #3346A8 !important;
    color: #FFFFFF !important;
}

html body.juf-2d-minimal .juf-public-writings-tabs a:not([aria-current="page"]) {
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
    color: #282E37 !important;
    opacity: 1 !important;
}

html body.juf-2d-minimal a.juf-writings-reset-btn,
html body.juf-2d-minimal a.juf-home-writings-all-btn {
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
    color: #282E37 !important;
    opacity: 1 !important;
}

/* Homepage Community Writings Header & Empty State Classes */
.juf-home-writings-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.juf-home-writings-kicker {
    display: block;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 11.5px;
    font-weight: 700;
    color: #3B4256 !important;
    letter-spacing: 0.02em;
    margin-bottom: 3px;
}
.juf-home-writings-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.juf-home-writings-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #3346A8;
    border: 1px solid #3346A8;
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
}
.juf-home-writings-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    color: #282E37 !important;
    text-decoration: none;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
}
.juf-home-writings-empty {
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed #D9D6D0;
    background: #F6F5F2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.juf-home-writings-empty strong {
    display: block;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 17px;
    color: #282E37;
    margin-bottom: 3px;
}
.juf-home-writings-empty span {
    font-size: 13px;
    color: #5B6376;
}

/* Phase 2: Responsive Search Bar & Reader Prose Formatting (writings.php) */
.juf-writings-search-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 170px auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
}
.juf-writings-search-bar input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
}
.juf-writings-search-bar select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
}
.juf-writings-search-bar button {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    white-space: nowrap;
}
.juf-writing-reader-prose p {
    margin: 0 0 1.15em 0;
    font-family: var(--font-reader, 'SolaimanLipi', 'Tiro Bangla', serif);
    font-size: 17.5px;
    line-height: 1.92;
}
.juf-writing-reader-prose p:last-child {
    margin-bottom: 0;
}

@media (max-width: 680px) {
    .juf-writings-search-bar {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .juf-writings-search-bar input[type="search"] {
        grid-column: 1 / -1 !important;
        height: 40px !important;
        font-size: 13.5px !important;
    }
    .juf-writings-search-bar select {
        grid-column: 1 / 2 !important;
        height: 38px !important;
        font-size: 12.5px !important;
    }
    .juf-writings-search-bar button {
        height: 38px !important;
        padding: 0 16px !important;
        font-size: 12.5px !important;
    }
    .juf-writings-reset-btn {
        grid-column: 1 / -1 !important;
        justify-content: center !important;
        height: 34px !important;
        font-size: 12px !important;
    }
    .juf-public-writings-tabs {
        padding: 2px 2px 14px !important;
        gap: 6px !important;
    }
    .juf-public-writings-tabs a {
        min-height: 34px !important;
        padding: 0 13px !important;
        font-size: 12.5px !important;
    }
    .juf-writing-reader-prose p {
        font-size: 16.5px !important;
        line-height: 1.85 !important;
    }
}

/* Phase 3: Complete Dark Mode Surface & Text Harmony for Writings, Reader, Member, Profile & Home Slider */
html[data-theme="dark"] body.juf-2d-minimal .juf-public-writings-hero {
    background: linear-gradient(135deg, #23262B 0%, #23262B 100%) !important;
    border-color: #3A3F47 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-public-writings-kicker,
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writings-kicker {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-public-writings-hero-copy h1 {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-public-writings-hero-copy p {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal a.juf-public-writings-cta,
html[data-theme="dark"] body.juf-2d-minimal a.juf-writing-reader-write-link,
html[data-theme="dark"] body.juf-2d-minimal a.juf-home-writings-post-btn,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home a.juf-social-quick-post-btn,
html[data-theme="dark"] body.juf-2d-minimal .reader-public > a {
    background: #8FA4F2 !important;
    border-color: #8FA4F2 !important;
    color: #14193A !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-2d-minimal a.juf-public-writings-cta:hover,
html[data-theme="dark"] body.juf-2d-minimal a.juf-writing-reader-write-link:hover,
html[data-theme="dark"] body.juf-2d-minimal a.juf-home-writings-post-btn:hover,
html[data-theme="dark"] body.juf-2d-minimal .reader-public > a:hover {
    background: #AABAF7 !important;
    border-color: #AABAF7 !important;
    color: #14193A !important;
}

/* Dark Mode: Search Bar & Category Filter Tabs on writings.php */
html[data-theme="dark"] body.juf-2d-minimal .juf-writings-search-bar {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writings-search-bar input[type="search"],
html[data-theme="dark"] body.juf-2d-minimal .juf-writings-search-bar select {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writings-search-bar input[type="search"]::placeholder {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writings-search-bar button {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}
html[data-theme="dark"] body.juf-2d-minimal a.juf-writings-reset-btn,
html[data-theme="dark"] body.juf-2d-minimal a.juf-home-writings-all-btn {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-public-writings-tabs a:not([aria-current="page"]) {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-public-writings-tabs a[aria-current="page"],
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-status-pills a[aria-current="page"] {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}

/* Dark Mode: Feed Cards, Read Time Pill & Read CTA Button (writings.php, member.php, profile.php) */
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-card {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-head,
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-foot {
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-title,
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-title a,
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-author-copy strong,
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-author-copy strong a {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-prose {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-submeta,
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-submeta span,
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-submeta time,
html[data-theme="dark"] body.juf-2d-minimal .juf-social-post-words,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-card-kicker {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-readtime-pill {
    background: #2C3037 !important;
    border: 1px solid #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal a.juf-social-read-btn {
    background: #343A44 !important;
    border: 1px solid #C9D4EC !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal a.juf-social-read-btn:hover,
html[data-theme="dark"] body.juf-2d-minimal a.juf-social-read-btn:focus-visible {
    background: #DDE5F5 !important;
    border-color: #DDE5F5 !important;
    color: #23262B !important;
}

/* Dark Mode: Single Post Book-Chapter Reader Sheet (writings.php?post=ID) */
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-breadcrumb a:not(.juf-writing-reader-write-link) {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-sheet {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32) !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-head {
    border-bottom-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-badges,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-badges span {
    color: #A09B94 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-type-pill {
    background: #343A44 !important;
    border: 1px solid #C9D4EC !important;
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-head h1 {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-author-bar .juf-social-post-submeta a,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-more-head a {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-prose,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-prose p {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}

/* Dark Mode: Homepage Horizontal Slider & Empty State */
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writing-slide-card {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writing-author strong,
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writing-title a {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writing-author span,
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writing-foot {
    color: #A09B94 !important;
    border-top-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writing-excerpt {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writing-foot a {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writings-empty {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writings-empty strong {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-home-writings-empty span {
    color: #A09B94 !important;
}

/* Dark Mode: Profile Overview Quick Trigger, Status Pills & Expanded Text */
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-social-quick-trigger {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-social-quick-input-fake {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #A09B94 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-toolbar {
    border-bottom-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-status-pills a:not([aria-current="page"]) {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-search input[type="search"] {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-social-expanded-text {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-social-inline-expand summary {
    color: #C9D4EC !important;
}


/* ==========================================================================
   BUILD 353 — HOMEPAGE & SITEWIDE DARK MODE COMPLETION
   Fixes `1792810048597.jpeg`:
   1. `.home-reading-gateway` ("পড়া চালিয়ে যান" card on Homepage): replaces the
      hardcoded light cream gradient (`#FFFFFF` -> `#ECEAE6`) with warm dark
      card surface `#23262B` so the white book title ("চোখের বালি") and author
      subtitle are 100% legible.
   2. `.home-author-discovery-card.is-visual` ("মনীষী" cards on Homepage &
      Authors page): adapts card background & typography cleanly to Dark Mode
      while keeping portraits untouched.
   3. `.slider-ctrl-btn`, `.author-nav-arrow`, `.audio-play-circle`,
      `.audio-open-circle`: replaces white circles with dark buttons.
   ========================================================================== */
html[data-theme="dark"] body.juf-homepage .home-reading-gateway,
html[data-theme="dark"] body.juf-homepage .home-reading-gateway.has-continue {
    background: #23262B !important;
    background-image: none !important;
    border: 1px solid #3A3F47 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-homepage .home-reading-gateway-kicker {
    color: #C9D4EC !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-homepage .home-reading-gateway-copy h2 {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-homepage .home-reading-gateway-copy p {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.juf-homepage .home-reading-progress {
    background: #2C3037 !important;
}
html[data-theme="dark"] body.juf-homepage .home-reading-progress i {
    background: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-homepage .home-reading-primary {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}

/* Homepage & Authors "মনীষী" Discovery Cards in Dark Mode */
html[data-theme="dark"] body :is(.juf-homepage, .authors-page, .juf-author-discovery-shared) .home-author-discovery-card.is-visual {
    background: linear-gradient(135deg, #2C3037 0%, #23262B 100%) !important;
    border-color: #3A3F47 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body :is(.juf-homepage, .authors-page, .juf-author-discovery-shared) .home-author-discovery-kicker {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body :is(.juf-homepage, .authors-page, .juf-author-discovery-shared) .home-author-discovery-card .home-author-discovery-copy h3 {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body :is(.juf-homepage, .authors-page, .juf-author-discovery-shared) .home-author-discovery-card .home-author-discovery-copy p {
    color: #A09B94 !important;
}

/* Homepage Slider Nav Buttons & Audio Play Circles in Dark Mode */
html[data-theme="dark"] body.juf-homepage :is(.slider-ctrl-btn, .author-nav-arrow, .audio-play-circle, .audio-open-circle) {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body.juf-homepage :is(.slider-ctrl-btn, .author-nav-arrow, .audio-play-circle, .audio-open-circle):hover:not(:disabled) {
    background: #DDE5F5 !important;
    border-color: #DDE5F5 !important;
    color: #23262B !important;
}
html[data-theme="dark"] body.juf-homepage .section-view-all {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage #authors .author-circle-disc {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .juf-books-page .juf-catalog-badges span {
    background: rgba(35, 38, 43, 0.92) !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}


/* ==========================================================================
   BUILD 353 — SITEWIDE DARK/LIGHT CONTRAST & READER WRITINGS WIDTH AUTHORITY
   ========================================================================== */

/* --------------------------------------------------------------------------
   PHASE 1: Fix `#library-home` ID-Specificity Dark Mode Contrast on `profile.php`
   (`1792809916455.jpeg`: User name, section headings, book titles, author names,
    review titles/quotes, writing card titles/prose, and delete button)
   -------------------------------------------------------------------------- */
html[data-theme="dark"] body .site-main #library-home .profile-hub-hero {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-avatar {
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-identity h1#profile-hub-title,
html[data-theme="dark"] body .site-main #library-home .profile-hub-identity h1 {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-identity p.reader-bio {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-identity-meta,
html[data-theme="dark"] body .site-main #library-home .profile-identity-meta span:not(.is-premium) {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-actions a {
    background: #2C3037 !important;
    border: 1px solid #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-actions a.is-primary {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-actions a.is-social-post-cta {
    background: #343A44 !important;
    border-color: #C9D4EC !important;
    color: #ECE8E1 !important;
}

/* Section Headings & Links inside `#library-home` */
html[data-theme="dark"] body .site-main #library-home .profile-hub-heading h2,
html[data-theme="dark"] body .site-main #library-home .profile-view-intro h2,
html[data-theme="dark"] body .site-main #library-home .profile-side-heading,
html[data-theme="dark"] body .site-main #library-home .profile-side-heading span {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-heading-link,
html[data-theme="dark"] body .site-main #library-home .profile-side-heading a {
    color: #C9D4EC !important;
    opacity: 1 !important;
}

/* Continue Reading Card (`এখন পড়ছেন`) inside `#library-home` */
html[data-theme="dark"] body .site-main #library-home .profile-continue-card {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-card .profile-kicker {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-card .profile-card-topline strong,
html[data-theme="dark"] body .site-main #library-home .profile-continue-card h3,
html[data-theme="dark"] body .site-main #library-home .profile-continue-card h3 a {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-card p,
html[data-theme="dark"] body .site-main #library-home .profile-continue-card .profile-reading-position {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-card .profile-last-read {
    color: #A09B94 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-actions .profile-text-action {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-actions .profile-quiet-action {
    background: #2C3037 !important;
    border: 1px solid #3A3F47 !important;
    color: #ECE8E1 !important;
}

/* My Library (`আমার লাইব্রেরি`) & Followed Authors (`প্রিয় লেখক`) & Reviews (`সাম্প্রতিক রিভিউ`) */
html[data-theme="dark"] body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 h3,
html[data-theme="dark"] body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 h3 a,
html[data-theme="dark"] body .site-main #library-home .profile-shelf-card-v25 h3,
html[data-theme="dark"] body .site-main #library-home .profile-shelf-card-v25 h3 a,
html[data-theme="dark"] body .site-main #library-home.profile-view-overview .profile-follow-strip h3,
html[data-theme="dark"] body .site-main #library-home.profile-view-overview .profile-follow-strip h3 a,
html[data-theme="dark"] body .site-main #library-home .profile-follow-strip h3,
html[data-theme="dark"] body .site-main #library-home .profile-follow-strip h3 a,
html[data-theme="dark"] body .site-main #library-home .profile-review-list-overview h3,
html[data-theme="dark"] body .site-main #library-home .profile-review-list-overview h3 a,
html[data-theme="dark"] body .site-main #library-home .profile-review-list h3,
html[data-theme="dark"] body .site-main #library-home .profile-review-list h3 a {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 p,
html[data-theme="dark"] body .site-main #library-home .profile-shelf-card-v25 p,
html[data-theme="dark"] body .site-main #library-home.profile-view-overview .profile-follow-strip p,
html[data-theme="dark"] body .site-main #library-home .profile-follow-strip p,
html[data-theme="dark"] body .site-main #library-home .profile-review-list-overview p.profile-review-author,
html[data-theme="dark"] body .site-main #library-home .profile-review-list p.profile-review-author {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-review-list-overview .profile-review-preview {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-review-list-overview blockquote,
html[data-theme="dark"] body .site-main #library-home .profile-review-list blockquote {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}

/* User Writings Section (`আপনার সাম্প্রতিক লেখা` & `আমার লেখা ও প্যারাগ্রাফ`) inside `#library-home` */
html[data-theme="dark"] body .site-main #library-home .juf-social-writings-section {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-post-head,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-foot {
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-post-author-copy strong,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-title,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-title a {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-post-prose,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-prose.is-clamped-4 {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-post-submeta,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-submeta span,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-submeta time,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-words {
    color: #A09B94 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-post-delete button,
html[data-theme="dark"] .juf-social-post-delete button {
    background: #2C3037 !important;
    border-color: #C9D4EC !important;
    color: #F0907F !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-post-modnote,
html[data-theme="dark"] .juf-social-post-modnote {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #A09B94 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-empty-feed,
html[data-theme="dark"] .juf-social-empty-feed {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-empty-feed strong,
html[data-theme="dark"] .juf-social-empty-feed strong {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-empty-feed p,
html[data-theme="dark"] .juf-social-empty-feed p {
    color: #A09B94 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-type select {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-title {
    border-bottom-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-btn-draft {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-btn-post {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}

/* --------------------------------------------------------------------------
   PHASE 4: Standardize Reader Writings Width & Proportions Across All 5 Places
   1. `writings.php` (`.juf-public-writings-hub`): Remove redundant inner 16px
      side padding (since `<main class="site-main container">` already has
      container padding!) and align to full container width with 2-col desktop
      and 1-col mobile grid.
   2. `writings.php?post=ID` (`.juf-writing-reader-sheet`): Match Book Details
      width (`max-width: 960px` on desktop, `100%` full container width on mobile).
   3. `profile.php` Overview (`.juf-social-feed.is-overview-grid`): Use 1 full-width
      column (`1fr`) inside `.profile-overview-main` so writing cards match the
      exact width of `এখন পড়ছেন` and `সাম্প্রতিক রিভিউ` cards above them!
      On the dedicated `আমার লেখা` tab (`view=writings`), use a 2-column grid on
      desktop and 1-column on mobile.
   4. `member.php` (`.reader-public.juf-public-social-profile`): Remove triple
      nested horizontal margins/paddings on mobile so cards fill the profile
      cleanly, and use a 2-column grid on desktop (`max-width: 960px`).
   5. `index.php` (`.juf-home-writing-slide-card`): Balanced `330px` desktop /
      `min(84vw, 296px)` mobile slide cards.
   -------------------------------------------------------------------------- */

/* 1. writings.php — Full container alignment, zero double side-padding */
.juf-public-writings-hub {
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px auto 56px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.juf-public-writings-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
@media (max-width: 760px) {
    .juf-public-writings-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }
}

/* 2. writings.php?post=ID — Book-chapter reader sheet width */
.juf-writing-reader-breadcrumb,
.juf-writing-reader-sheet,
.juf-writing-more-section {
    width: 100% !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
.juf-writing-reader-prose {
    max-width: 740px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
@media (max-width: 680px) {
    .juf-writing-reader-sheet {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }
}

/* 3. profile.php — Overview cards match `সাম্প্রতিক রিভিউ` full width; dedicated tab uses 2-col on desktop */
html body .site-main #library-home .juf-social-feed.is-overview-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}
html body .site-main #library-home.profile-view-writings .juf-social-feed {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}
@media (max-width: 760px) {
    html body .site-main #library-home.profile-view-writings .juf-social-feed {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
}

/* 4. member.php — Remove triple nested side margins on mobile & widen desktop container */
.reader-public.juf-public-social-profile {
    width: 100% !important;
    max-width: 960px !important;
    margin: 24px auto 48px !important;
    padding: 0 0 24px 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.juf-public-social-profile .juf-public-social-identity {
    padding: 0 24px 20px !important;
}
.juf-public-social-profile .juf-public-social-writings {
    padding: 22px 24px 8px !important;
}
.juf-public-social-profile .juf-social-feed {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}
.juf-public-social-profile .reader-public-privacy,
.juf-public-social-profile > a {
    margin-left: 24px !important;
    margin-right: 24px !important;
}
@media (max-width: 760px) {
    .reader-public.juf-public-social-profile {
        margin: 14px 0 36px !important;
        border-radius: 18px !important;
    }
    .juf-public-social-profile .juf-public-social-identity {
        padding: 0 14px 16px !important;
    }
    .juf-public-social-profile .juf-public-social-writings {
        padding: 16px 14px 6px !important;
    }
    .juf-public-social-profile .juf-social-feed {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }
    .juf-public-social-profile .reader-public-privacy,
    .juf-public-social-profile > a {
        margin-left: 14px !important;
        margin-right: 14px !important;
    }
}

/* 5. index.php — Balanced slide card width on desktop and mobile */
.juf-home-writing-slide-card {
    flex: 0 0 330px !important;
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
}
@media (max-width: 620px) {
    .juf-home-writing-slide-card {
        flex: 0 0 min(84vw, 296px) !important;
        width: min(84vw, 296px) !important;
        min-width: min(84vw, 296px) !important;
        max-width: min(84vw, 296px) !important;
    }
}



/* ==========================================================================
   BUILD 353 — BOOK DETAILS DARK MODE PROSE & AUTHOR CARD CONTRAST FIX
   Overrides Build 344's late media-query color rules (`#2C3037`, `#2C3037`,
   `#2C3037`, `#23262B`) so Book Details summary, intro, and author card are
   effortless to read in Dark Mode (`1792810000985.jpeg`).
   ========================================================================== */
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-details-description,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-description {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-details-byline,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-byline {
    color: #A09B94 !important;
}
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-details-byline a,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-byline a {
    color: #ECE8E1 !important;
    border-bottom-color: rgba(246, 245, 242, 0.35) !important;
}
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-rich-public-content,
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-summary-content,
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-rich-public-content p,
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-summary-content p,
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-rich-public-content li,
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-summary-content li,
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-rich-public-content blockquote,
html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-summary-content blockquote,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-rich-public-content,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-summary-content,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-rich-public-content p,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-summary-content p,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-rich-public-content li,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-summary-content li {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-rich-public-content .juf-content-image figcaption,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-summary-content .juf-content-image figcaption {
    color: #A09B94 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-summary-toggle {
    color: #93B6EE !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-author-card,
html[data-theme="dark"] .container.book-details-page .juf-details-author-card {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-author-card > small {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-author-card h3 {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-author-card > span,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-author-card p {
    color: #A09B94 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-author-card > a {
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page details.juf-publication-disclosure > summary {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-publication-chevron {
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-publication-disclosure[open] .juf-publication-chevron {
    background: #2C3037 !important;
}

/* ==========================================================================
   BUILD 356 — PHASE B: POETRY STANZA FORMATTING & AUTHOR PORTFOLIO CARDS
   ========================================================================== */
.juf-writing-reader-prose.is-poem-prose {
    max-width: 580px !important;
    margin: 12px auto 24px !important;
    padding: 22px 28px !important;
    border-left: 3px solid #3B4256 !important;
    background: rgba(246, 245, 242, 0.65) !important;
    border-radius: 0 16px 16px 0 !important;
}
.juf-writing-reader-prose.is-poem-prose p {
    font-family: var(--font-reader, 'Tiro Bangla', 'SolaimanLipi', serif) !important;
    font-size: 18.5px !important;
    line-height: 2.05 !important;
    margin: 0 0 1.45em 0 !important;
    letter-spacing: 0.01em !important;
}
.juf-writing-author-portfolio-box {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #D9D6D0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.juf-portfolio-stats-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    color: #282E37;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-reader-prose.is-poem-prose {
    background: rgba(35, 38, 43, 0.75) !important;
    border-left-color: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-author-portfolio-box {
    border-top-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-portfolio-stats-bar {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home .juf-user-writings-search select {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

/* ==========================================================================
   BUILD 357 — PHASE C: REACTIONS, BOOKMARKS, COMMENTS & REPORT POPOVER
   ========================================================================== */
.juf-writing-flash {
    max-width: 960px;
    margin: 0 auto 14px;
    padding: 12px 16px;
    border-radius: 14px;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
}
.juf-writing-flash.is-success {
    background: #E4E6EC;
    border: 1px solid #3B4256;
    color: #3B4256;
}
.juf-writing-flash.is-error {
    background: #F6F5F2;
    border: 1px solid #D9D6D0;
    color: #B0392B;
}
.juf-writing-engagement-bar {
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #F6F5F2;
    border: 1px solid #D9D6D0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.juf-writing-reaction-group,
.juf-writing-reaction-form,
.juf-writing-utility-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}
.juf-writing-react-btn,
.juf-writing-util-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
    color: #282E37;
    text-decoration: none;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}
.juf-writing-react-btn b {
    padding: 1px 6px;
    border-radius: 999px;
    background: #ECEAE6;
    font-size: 11.5px;
}
.juf-writing-react-btn.is-active,
.juf-writing-util-btn.is-active {
    background: #3B4256 !important;
    border-color: #3B4256 !important;
    color: #FFFFFF !important;
}
.juf-writing-react-btn.is-active b {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}
.juf-writing-report-box {
    position: relative;
}
.juf-writing-report-box summary {
    list-style: none;
}
.juf-writing-report-box summary::-webkit-details-marker {
    display: none;
}
.juf-writing-report-popover {
    margin-top: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
    box-shadow: 0 10px 26px rgba(40, 46, 55, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 260px;
}
.juf-writing-report-popover select,
.juf-writing-report-popover textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
}
.juf-writing-report-popover button {
    align-self: flex-end;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: none;
    background: #B0392B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.juf-writing-comments-section {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 36px;
    padding: 24px 28px;
    border-radius: 22px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
    box-sizing: border-box;
}
.juf-writing-comments-section h2 {
    margin: 0 0 14px;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 20px;
    color: #282E37;
}
.juf-writing-comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 14px;
    line-height: 1.65;
    box-sizing: border-box;
}
.juf-writing-comment-form-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    font-size: 12px;
    color: #5B6376;
}
.juf-writing-comment-form-foot button {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    background: #3B4256;
    color: #FFFFFF;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.juf-writing-comment-login-prompt {
    padding: 14px 16px;
    border-radius: 14px;
    background: #F6F5F2;
    border: 1px dashed #D9D6D0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13.5px;
}
.juf-writing-comment-login-prompt a {
    font-weight: 700;
    color: #3B4256;
    text-decoration: none;
}
.juf-writing-comment-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.juf-writing-comment-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: #F6F5F2;
    border: 1px solid #D9D6D0;
}
.juf-writing-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.juf-writing-comment-body {
    font-family: var(--font-reader, 'SolaimanLipi', serif);
    font-size: 15.5px;
    line-height: 1.72;
    color: #282E37;
    overflow-wrap: anywhere;
}
.juf-writing-comment-del {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #F6F5F2;
    color: #B0392B;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-engagement-bar,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-comment-item,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-comment-login-prompt,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-report-popover {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-react-btn,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-util-btn {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-react-btn.is-active,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-util-btn.is-active,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-comment-form-foot button {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-comments-section {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-comments-section h2,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-comment-body {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-comment-form textarea,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-report-popover select,
html[data-theme="dark"] body.juf-2d-minimal .juf-writing-report-popover textarea {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}



/* === Build 358 (Phase D) Dark Mode Overrides === */
html[data-theme="dark"] .juf-editorial-pick-badge,
body.dark-mode .juf-editorial-pick-badge {
    background: linear-gradient(135deg, rgba(160, 155, 148, 0.24) 0%, rgba(160, 155, 148, 0.32) 100%);
    color: #A09B94;
    border-color: rgba(160, 155, 148, 0.38);
}
html[data-theme="dark"] .juf-writer-badge,
body.dark-mode .juf-writer-badge {
    background: rgba(246, 245, 242, 0.08);
    color: #ECE8E1;
    border-color: rgba(217, 214, 208, 0.2);
}
html[data-theme="dark"] .juf-writer-badge--featured,
body.dark-mode .juf-writer-badge--featured {
    background: rgba(160, 155, 148, 0.22);
    color: #A09B94;
    border-color: rgba(160, 155, 148, 0.35);
}
html[data-theme="dark"] .juf-literary-prompt-banner,
body.dark-mode .juf-literary-prompt-banner {
    background: linear-gradient(135deg, rgba(44, 48, 55, 0.92) 0%, rgba(35, 38, 43, 0.96) 100%);
    border-color: rgba(160, 155, 148, 0.26);
}
html[data-theme="dark"] .juf-literary-prompt-banner__title,
body.dark-mode .juf-literary-prompt-banner__title {
    color: #ECE8E1;
}
html[data-theme="dark"] .juf-literary-prompt-banner__desc,
body.dark-mode .juf-literary-prompt-banner__desc {
    color: #A09B94;
}
html[data-theme="dark"] .juf-literary-prompt-banner__meta,
body.dark-mode .juf-literary-prompt-banner__meta {
    color: #A09B94;
}


/* === Build 359 (Phase E) Dark Mode Overrides === */
html[data-theme="dark"] .juf-writing-series-box,
body.dark-mode .juf-writing-series-box {
    background: var(--surface);
    border-color: var(--line);
    border-left: 3px solid var(--cta);
}
html[data-theme="dark"] .juf-writing-series-box__head,
body.dark-mode .juf-writing-series-box__head {
    color: var(--ink);
}
html[data-theme="dark"] .juf-writing-series-pill,
body.dark-mode .juf-writing-series-pill {
    background: var(--tint) !important;
    color: var(--cta) !important;
    border-color: var(--cta) !important;
}
html[data-theme="dark"] .juf-social-composer-series-title,
html[data-theme="dark"] .juf-social-composer-series-part,
body.dark-mode .juf-social-composer-series-title,
body.dark-mode .juf-social-composer-series-part {
    background: var(--card);
    color: var(--ink);
    border-color: var(--border-input);
}


/* ==========================================================================
   BUILD 360 — FACEBOOK-INSPIRED DARK MODE OVERRIDES
   ========================================================================== */
html[data-theme="dark"] .juf-fb-author-name-line strong a,
html[data-theme="dark"] .juf-fb-author-name-line strong,
body.dark-mode .juf-fb-author-name-line strong a,
body.dark-mode .juf-fb-author-name-line strong {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-inline-follow-btn,
body.dark-mode .juf-fb-inline-follow-btn {
    color: #C9D4EC !important;
}
html[data-theme="dark"] .juf-fb-submeta-line,
html[data-theme="dark"] .juf-fb-stats-strip,
html[data-theme="dark"] .juf-fb-stats-right a,
body.dark-mode .juf-fb-submeta-line,
body.dark-mode .juf-fb-stats-strip,
body.dark-mode .juf-fb-stats-right a {
    color: #A09B94 !important;
}
html[data-theme="dark"] .juf-fb-emoji-stack i,
body.dark-mode .juf-fb-emoji-stack i {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] .juf-fb-more-trigger,
body.dark-mode .juf-fb-more-trigger {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-more-trigger:hover,
html[data-theme="dark"] .juf-fb-more-menu[open] .juf-fb-more-trigger,
body.dark-mode .juf-fb-more-trigger:hover {
    background: #2C3037 !important;
}
html[data-theme="dark"] .juf-fb-more-dropdown,
body.dark-mode .juf-fb-more-dropdown {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] .juf-fb-more-item,
body.dark-mode .juf-fb-more-item {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-more-item:hover,
body.dark-mode .juf-fb-more-item:hover {
    background: #2C3037 !important;
}
html[data-theme="dark"] .juf-fb-react-pill,
body.dark-mode .juf-fb-react-pill {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-react-pill.is-active,
body.dark-mode .juf-fb-react-pill.is-active {
    background: #343A44 !important;
    border-color: #C9D4EC !important;
    color: #C9D4EC !important;
}
html[data-theme="dark"] .juf-fb-action-bar,
body.dark-mode .juf-fb-action-bar {
    border-top-color: #3A3F47 !important;
    border-bottom-color: #3A3F47 !important;
}
html[data-theme="dark"] .juf-fb-action-btn,
body.dark-mode .juf-fb-action-btn {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-action-btn:hover,
body.dark-mode .juf-fb-action-btn:hover {
    background: #2C3037 !important;
}
html[data-theme="dark"] .juf-fb-action-btn.is-active,
body.dark-mode .juf-fb-action-btn.is-active {
    color: #C9D4EC !important;
}
html[data-theme="dark"] .juf-fb-comment-input-box,
body.dark-mode .juf-fb-comment-input-box {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] .juf-fb-comment-input-box textarea,
body.dark-mode .juf-fb-comment-input-box textarea {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-comment-bubble,
body.dark-mode .juf-fb-comment-bubble {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] .juf-fb-comment-author a,
html[data-theme="dark"] .juf-fb-comment-author span,
body.dark-mode .juf-fb-comment-author a,
body.dark-mode .juf-fb-comment-author span {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-comment-text,
body.dark-mode .juf-fb-comment-text {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-comment-meta,
body.dark-mode .juf-fb-comment-meta {
    color: #A09B94 !important;
}
html[data-theme="dark"] .juf-fb-comment-delete-link,
body.dark-mode .juf-fb-comment-delete-link {
    color: #F0907F !important;
}
html[data-theme="dark"] .juf-fb-author-bio-line,
html[data-theme="dark"] .juf-fb-card-stat,
body.dark-mode .juf-fb-author-bio-line,
body.dark-mode .juf-fb-card-stat {
    color: #A09B94 !important;
}


/* ==========================================================================
   BUILD 361 — DARK MODE OVERRIDES FOR UNIFIED REACTION DOCK & COMMENT PILL
   ========================================================================== */
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-action-bar {
    border-top-color: #3A3F47 !important;
    border-bottom-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-action-btn,
html[data-theme="dark"] body.juf-2d-minimal a.juf-fb-action-btn {
    color: #ECE8E1 !important;
    background: transparent !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-action-btn:hover,
html[data-theme="dark"] body.juf-2d-minimal a.juf-fb-action-btn:hover {
    background: #2C3037 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-action-btn.is-active {
    background: #343A44 !important;
    color: #C9D4EC !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-action-btn.is-react-love {
    background: rgba(160, 155, 148, 0.22) !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-react-Caret {
    color: #A09B94 !important;
    border-left-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-reaction-dock {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-dock-btn {
    background: #23262B !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-dock-btn.is-selected {
    background: #C9D4EC !important;
    color: #23262B !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comment-pill-wrap {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comment-pill-wrap:focus-within {
    background: #23262B !important;
    border-color: #DDE5F5 !important;
    box-shadow: 0 0 0 3px rgba(201, 212, 236, 0.2) !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comment-pill-wrap textarea.juf-fb-comment-textarea {
    background: transparent !important;
    border: 0 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comment-send-icon {
    background: #C9D4EC !important;
    color: #23262B !important;
}
html[data-theme="dark"] .juf-fb-comments-count-label {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-fb-comments-sort,
html[data-theme="dark"] .juf-fb-comments-sort a,
html[data-theme="dark"] .juf-fb-comments-progress {
    color: #A09B94 !important;
}
html[data-theme="dark"] .juf-fb-comments-sort a.is-active {
    color: #C9D4EC !important;
}
html[data-theme="dark"] .juf-fb-comments-more-wrap {
    border-top-color: #3A3F47 !important;
}
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comments-more-btn {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}


/* ==========================================================================
   BUILD 362 — DESKTOP LAYOUT & SLIDER PRECISION FIXES (ALL 4 SCREENSHOTS)
   1. Desktop Header (`image_46d7e0.png`, `image_46d8b5.png`):
      Prevents "পাঠকের লেখা" from wrapping onto 2 lines or getting overlapped by
      the global search bar when all 6 nav links + user/admin pills are visible.
   2. Homepage "মনীষী" Slider (`image_46d835.png`):
      Enforces `--author-gap: 14px !important; gap: 14px !important; padding-inline: 0 !important;`
      and `calc((100% - 42px) / 4)` card width on desktop so the 4th card ("নোবেলজয়ী")
      is never clipped on the right edge.
   3. Homepage "পাঠকের কলম ও অনুচ্ছেদ" Slider (`image_46d879.png`):
      Hides the ugly native OS horizontal scrollbar, sizes desktop cards to exact
      3-up full-width columns (`calc((100% - 32px) / 3)` with `16px` gap) so no
      4th card is cut in half on the right, and styles the circular ‹ › slider buttons.
   4. Books Library (`books.php` — `image_46d8b5.png`):
      Restores `32px 36px` internal padding inside `.juf-books-hero.container.juf-library-hero`
      while keeping it 100% full container width so "বইয়ের লাইব্রেরি" and the count
      badge never touch the left/right card border.
   ========================================================================== */

/* 1. Desktop Header 6-Item Navigation + Global Search Non-Overlap */
@media (min-width: 901px) {
    body.juf-minimal-chrome .juf-header-v24 .juf-header-shell {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) minmax(180px, 240px) auto !important;
        grid-template-areas: "brand primary search actions" !important;
        align-items: center !important;
        gap: 12px !important;
    }
    body.juf-minimal-chrome .juf-brand-v24 {
        grid-area: brand !important;
        flex-shrink: 0 !important;
    }
    body.juf-minimal-chrome .juf-nav-primary-v24 {
        grid-area: primary !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        min-width: max-content !important;
    }
    body.juf-minimal-chrome .juf-nav-v24 .juf-nav-link-v24 {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 7px 9px !important;
        font-size: 13.5px !important;
        line-height: 1.2 !important;
    }
    body.juf-minimal-chrome .juf-nav-v24 .juf-premium-nav-v24 {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 6px 11px !important;
        font-size: 13px !important;
    }
    body.juf-minimal-chrome .juf-global-search-v40 {
        grid-area: search !important;
        width: 100% !important;
        min-width: 175px !important;
        max-width: 240px !important;
        justify-self: end !important;
    }
    body.juf-minimal-chrome .juf-nav-actions-v24 {
        grid-area: actions !important;
        display: inline-flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
        gap: 6px !important;
        white-space: nowrap !important;
    }
    body.juf-minimal-chrome .juf-user-chip-v24 {
        padding: 4px 10px 4px 5px !important;
        flex-shrink: 0 !important;
    }
    body.juf-minimal-chrome .juf-admin-link-v24 {
        padding: 0 11px !important;
        min-height: 36px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
}
@media (min-width: 1240px) {
    body.juf-minimal-chrome .juf-header-v24 .juf-header-shell {
        grid-template-columns: auto minmax(0, 1fr) minmax(205px, 260px) auto !important;
        gap: 14px !important;
    }
    body.juf-minimal-chrome .juf-global-search-v40 {
        max-width: 260px !important;
    }
}
@media (min-width: 901px) and (max-width: 1140px) {
    body.juf-minimal-chrome .juf-header-v24 .juf-header-shell {
        grid-template-columns: auto minmax(0, 1fr) minmax(155px, 195px) auto !important;
        gap: 8px !important;
    }
    body.juf-minimal-chrome .juf-nav-v24 .juf-nav-link-v24 {
        padding: 6px 6px !important;
        font-size: 12.5px !important;
    }
    body.juf-minimal-chrome .juf-nav-v24 .juf-premium-nav-v24 {
        padding: 5px 9px !important;
        font-size: 12px !important;
    }
    body.juf-minimal-chrome .juf-user-copy-v24 small {
        display: none !important;
    }
}

/* 2. Homepage & Authors "মনীষী" Desktop 4-Card Exact Fit (Zero Right-Edge Clipping) */
@media (min-width: 981px) {
    .juf-homepage .pastel-authors-slider-track.home-author-premium-rail,
    .juf-homepage .home-author-premium-rail,
    .authors-page .juf-author-category-grid {
        --author-gap: 14px !important;
        --author-category-gap: 14px !important;
        gap: 14px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
    .juf-homepage .home-author-discovery-card.is-visual,
    .authors-page .juf-author-category-card.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;
        box-sizing: border-box !important;
    }
}

/* 3. Homepage "পাঠকের কলম ও অনুচ্ছেদ" Slider: Hide Native Scrollbar, Exact 3-Card Desktop Grid & Slider Arrows */
.juf-home-writings-slider {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}
.juf-home-writings-slider::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
@media (min-width: 981px) {
    .juf-home-writings-slider {
        gap: 16px !important;
        padding: 4px 0 10px !important;
    }
    .juf-home-writing-slide-card {
        flex: 0 0 calc((100% - 32px) / 3) !important;
        width: calc((100% - 32px) / 3) !important;
        min-width: calc((100% - 32px) / 3) !important;
        max-width: calc((100% - 32px) / 3) !important;
        box-sizing: border-box !important;
    }
}
@media (min-width: 621px) and (max-width: 980px) {
    .juf-home-writings-slider {
        gap: 14px !important;
        padding: 4px 0 10px !important;
    }
    .juf-home-writing-slide-card {
        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;
        box-sizing: border-box !important;
    }
}
.juf-home-writings-actions .juf-home-writings-slider-nav {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 2px !important;
}
.juf-home-writings-actions .juf-home-writings-slider-nav.is-not-needed {
    display: none !important;
}
@media (max-width: 620px) {
    .juf-home-writings-actions .juf-home-writings-slider-nav {
        display: none !important;
    }
}

/* 4. Books Library (`books.php`) Hero Card Internal Padding & Full-Width Alignment */
@media (min-width: 821px) {
    body .juf-books-page .juf-books-hero.container,
    body .juf-books-page .juf-library-hero.container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 32px 36px !important;
        box-sizing: border-box !important;
    }
}
@media (min-width: 621px) and (max-width: 820px) {
    body .juf-books-page .juf-books-hero.container,
    body .juf-books-page .juf-library-hero.container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 26px 28px !important;
        box-sizing: border-box !important;
    }
}


/* ==========================================================================
   BUILD 363 — CRISP DESKTOP SEARCH SUGGESTION THUMBNAILS & HEADER GRID FIX
   1. Fixes blurry author/book thumbnails in `.juf-global-search-results-v40`
      (`image_47c571.png`, `image_47c930.png`) by sizing `.is-author` to exact
      `52px × 60px` (matching the 2x `104×120` / 4x `208×240` Lanczos + unsharp
      server-generated thumbnails) and `.is-book` / `.is-audio` to `46px × 64px`
      (matching the 2x `92×128` / 4x `184×256` thumbnails).
   2. Removes `transform: translateX(1px)` on `.juf-search-suggestion:hover` so
      Chrome/Edge on Windows never promotes suggestion rows to a subpixel GPU
      layer that blurs raster `<img>` thumbnails.
   3. Uses `grid-template-columns: auto max-content minmax(140px, 1fr) max-content !important`
      on `.juf-header-shell` at `@media (min-width: 901px)` so CSS Grid always
      allocates full `max-content` width to the 6 primary navigation items FIRST,
      making it impossible for "পাঠকের লেখা" to wrap or get overlapped by the search bar.
   ========================================================================== */
@media (min-width: 901px) {
    body.juf-minimal-chrome .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;
    }
    body.juf-minimal-chrome .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;
    }
    body.juf-minimal-chrome .juf-nav-v24 .juf-nav-link-v24 {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        padding: 7px 8.5px !important;
        font-size: 13.5px !important;
        line-height: 1.2 !important;
    }
    body.juf-minimal-chrome .juf-global-search-v40 {
        grid-area: search !important;
        width: 100% !important;
        min-width: 170px !important;
        max-width: 280px !important;
        justify-self: end !important;
    }
}
@media (min-width: 1200px) {
    body.juf-minimal-chrome .juf-header-v24 .juf-header-shell {
        grid-template-columns: auto max-content minmax(220px, 1fr) max-content !important;
        gap: 18px !important;
    }
    body.juf-minimal-chrome .juf-global-search-v40 {
        max-width: 330px !important;
    }
}

/* Crisp Search Suggestion Thumbnails (Desktop & Mobile) */
body.juf-minimal-chrome .juf-global-search-v40 .juf-global-search-results-v40 {
    width: min(456px, calc(100vw - 24px)) !important;
    max-width: 456px !important;
}
.juf-search-suggestion {
    grid-template-columns: 54px minmax(0, 1fr) 20px !important;
    gap: 12px !important;
    min-height: 68px !important;
    padding: 7px 10px !important;
    transform: none !important;
    transition: background-color .15s ease !important;
}
.juf-search-suggestion:hover,
.juf-search-suggestion.is-active {
    transform: none !important;
}
.juf-search-suggestion-visual.is-book,
.juf-search-suggestion-visual.is-audio {
    width: 46px !important;
    height: 64px !important;
    border-radius: 7px !important;
}
.juf-search-suggestion-visual.is-author,
.authors-page .juf-author-search-suggestions .juf-search-suggestion-visual.is-author {
    width: 52px !important;
    height: 60px !important;
    border-radius: 11px !important;
    background: #ECEAE6 !important;
    border: 1px solid rgba(59, 66, 86, 0.16) !important;
}
html[data-theme="dark"] .juf-search-suggestion-visual.is-author,
html[data-theme="dark"] .authors-page .juf-author-search-suggestions .juf-search-suggestion-visual.is-author {
    background: #2C3037 !important;
    border-color: rgba(246, 245, 242, 0.14) !important;
}
.juf-search-suggestion-visual img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    image-rendering: -webkit-optimize-contrast;
    transform: none !important;
}


/* ==========================================================================
   BUILD 379 — CLASSIC BENGALI LITERARY TYPOGRAPHY RESTORATION &
   WRITINGS READER BOOK-GRADE FONT SIZE CALIBRATION
   Restores the pure literary serif typography (`Tiro Bangla`, `Kalpurush`,
   `SolaimanLipi` with `font-weight: 400–500` and `font-synthesis: none`)
   across the entire site while preserving comfortable book-grade reading
   font sizes on `writings.php`.
   ========================================================================== */

/* 1. Single Writing Post Reader (`writings.php?post=ID`) — Refined Literary Title & Book-Grade Prose */
html body .site-main .juf-writing-reader-sheet h1#writing-post-title,
html body .site-main .juf-fb-post-head h1#writing-post-title {
    margin: 6px 0 2px 0 !important;
    font-family: var(--font-display-literary, 'Tiro Bangla', 'Kalpurush', 'SolaimanLipi', serif) !important;
    font-size: clamp(24px, 2.9vw, 30px) !important;
    line-height: 1.38 !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0 !important;
    letter-spacing: 0 !important;
}

html body .site-main .juf-writing-reader-prose,
html body .site-main .juf-writing-reader-prose p,
html[data-theme="dark"] body .site-main .juf-writing-reader-prose,
html[data-theme="dark"] body .site-main .juf-writing-reader-prose p {
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 19.25px !important;
    line-height: 1.88 !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0 !important;
    letter-spacing: 0 !important;
}
html body .site-main .juf-writing-reader-prose p {
    margin: 0 0 1.15em 0 !important;
}
html body .site-main .juf-writing-reader-prose p:last-child {
    margin-bottom: 0 !important;
}

/* Poetry Stanza Prose (`is-poem-prose`) */
html body .site-main .juf-writing-reader-prose.is-poem-prose,
html body .site-main .juf-writing-reader-prose.is-poem-prose p,
html[data-theme="dark"] body .site-main .juf-writing-reader-prose.is-poem-prose,
html[data-theme="dark"] body .site-main .juf-writing-reader-prose.is-poem-prose p {
    font-family: var(--font-reading, 'SolaimanLipi', 'Tiro Bangla', serif) !important;
    font-size: 19.5px !important;
    line-height: 2.05 !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0 !important;
}

/* Single Post Top Author Name, Follow Action & Submeta */
html body .site-main .juf-fb-author-name-line strong,
html body .site-main .juf-fb-author-name-line strong a {
    font-family: var(--font-heading-editorial, 'Kalpurush', 'SolaimanLipi', serif) !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0 !important;
}
html body .site-main .juf-fb-inline-follow-btn {
    font-size: 13.5px !important;
    font-weight: 500 !important;
}
html body .site-main .juf-fb-submeta-line,
html body .site-main .juf-fb-submeta-line span,
html body .site-main .juf-fb-submeta-line a {
    font-size: 13.5px !important;
    line-height: 1.48 !important;
}
html body .site-main .juf-writing-reader-breadcrumb a {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* Engagement Strip, Action Buttons, Comments & Author Bio Footer */
html body .site-main .juf-fb-stats-strip,
html body .site-main .juf-fb-stats-strip a {
    font-size: 13.5px !important;
}
html body .site-main .juf-fb-action-btn,
html body .site-main a.juf-fb-action-btn {
    font-size: 13.5px !important;
}
html body .site-main .juf-fb-comment-author a,
html body .site-main .juf-fb-comment-author span {
    font-size: 14.5px !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
}
html body .site-main .juf-fb-comment-text {
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 16.5px !important;
    line-height: 1.68 !important;
    font-weight: 400 !important;
}
html body .site-main .juf-fb-author-bio-line {
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 15.5px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
}

/* 2. Writings Feed Cards (`writings.php`, `profile.php`, `member.php`, `index.php`) */
html body .site-main .juf-social-post-title,
html body .site-main .juf-public-feed-card .juf-social-post-title,
html body .site-main #library-home .juf-social-post-title,
html body .site-main .juf-home-writing-title {
    font-family: var(--font-display-literary, 'Tiro Bangla', 'Kalpurush', 'SolaimanLipi', serif) !important;
    font-size: 19px !important;
    line-height: 1.38 !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0 !important;
}
html body .site-main .juf-social-post-prose,
html body .site-main .juf-social-post-prose.is-clamped-4,
html body .site-main #library-home .juf-social-post-prose,
html body .site-main #library-home .juf-social-post-prose.is-clamped-4,
html body .site-main .juf-home-writing-excerpt {
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 17.5px !important;
    line-height: 1.78 !important;
    max-height: calc(1.78em * 4 + 4px) !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0 !important;
}
html body .site-main .juf-social-post-author-copy strong,
html body .site-main .juf-social-post-author-copy strong a,
html body .site-main .juf-home-writing-author strong {
    font-family: var(--font-heading-editorial, 'Kalpurush', 'SolaimanLipi', serif) !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    font-synthesis: none !important;
    -webkit-text-stroke: 0 !important;
}
html body .site-main .juf-social-post-submeta,
html body .site-main .juf-social-post-submeta span,
html body .site-main .juf-fb-card-stat,
html body .site-main .juf-social-post-words,
html body .site-main .juf-social-read-btn {
    font-size: 13.5px !important;
}

/* 3. Mobile Viewport Calibration (<= 680px) — Matches `author.php` 19px / 1.86 Book-Grade Reading */
@media (max-width: 680px) {
    html body .site-main .juf-writing-reader-sheet.juf-fb-post-sheet {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }
    html body .site-main .juf-writing-reader-sheet h1#writing-post-title,
    html body .site-main .juf-fb-post-head h1#writing-post-title {
        font-size: clamp(23px, 6vw, 25.5px) !important;
        line-height: 1.38 !important;
    }
    html body .site-main .juf-writing-reader-prose,
    html body .site-main .juf-writing-reader-prose p,
    html[data-theme="dark"] body .site-main .juf-writing-reader-prose,
    html[data-theme="dark"] body .site-main .juf-writing-reader-prose p {
        font-size: 19px !important;
        line-height: 1.86 !important;
    }
    html body .site-main .juf-writing-reader-prose.is-poem-prose,
    html body .site-main .juf-writing-reader-prose.is-poem-prose p,
    html[data-theme="dark"] body .site-main .juf-writing-reader-prose.is-poem-prose,
    html[data-theme="dark"] body .site-main .juf-writing-reader-prose.is-poem-prose p {
        font-size: 19px !important;
        line-height: 2.0 !important;
    }
    html body .site-main .juf-fb-author-name-line strong,
    html body .site-main .juf-fb-author-name-line strong a {
        font-size: 16.5px !important;
    }
    html body .site-main .juf-social-post-title,
    html body .site-main .juf-public-feed-card .juf-social-post-title,
    html body .site-main #library-home .juf-social-post-title,
    html body .site-main .juf-home-writing-title {
        font-size: 18px !important;
        line-height: 1.38 !important;
    }
    html body .site-main .juf-social-post-prose,
    html body .site-main .juf-social-post-prose.is-clamped-4,
    html body .site-main #library-home .juf-social-post-prose,
    html body .site-main #library-home .juf-social-post-prose.is-clamped-4,
    html body .site-main .juf-home-writing-excerpt {
        font-size: 17px !important;
        line-height: 1.76 !important;
        max-height: calc(1.76em * 4 + 4px) !important;
    }
}


/* ==========================================================================
   BUILD 380 — RESPONSIVE PAGINATION BAR FIX (`1792866563211.jpeg`)
   Fixes `.pagination-numbers` and `.category-pagination` overflowing off the
   left/right edges of mobile screens (`‹ আগের` and `পরের ›` clipped and `›`
   wrapping to a second line).
   ========================================================================== */
html body .pagination-numbers,
html body .category-pagination,
html body .juf-control-pagination {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 6px !important;
    box-sizing: border-box !important;
}

html body .pagination-numbers .page-num-btn,
html body .category-pagination > a,
html body .category-pagination > span.active,
html body .category-pagination > span[aria-current="page"],
html body .juf-control-pagination > a,
html body .juf-control-pagination > .active,
html body .juf-control-pagination > [aria-current="page"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 11px !important;
    border-radius: 10px !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', 'Kalpurush', 'SolaimanLipi', sans-serif) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
}

html body .pagination-numbers .page-num-ellipsis,
html body .category-pagination > span.juf-pagination-ellipsis,
html body .category-pagination > span:not(.active):not([aria-current="page"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #5B6376 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

@media (max-width: 640px) {
    html body .pagination-numbers,
    html body .category-pagination,
    html body .juf-control-pagination {
        gap: 5px !important;
        padding: 0 4px !important;
    }
    html body .pagination-numbers .page-num-btn,
    html body .category-pagination > a,
    html body .category-pagination > span.active,
    html body .category-pagination > span[aria-current="page"],
    html body .juf-control-pagination > a,
    html body .juf-control-pagination > .active,
    html body .juf-control-pagination > [aria-current="page"] {
        min-width: 34px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 8px !important;
        border-radius: 9px !important;
        font-size: 13px !important;
    }
    html body .pagination-numbers .page-num-btn.is-nav-btn,
    html body .category-pagination > a.is-nav-btn,
    html body .category-pagination > a[rel="prev"],
    html body .category-pagination > a[rel="next"],
    html body .juf-control-pagination > a[rel="prev"],
    html body .juf-control-pagination > a[rel="next"] {
        padding: 0 10px !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }
    html body .pagination-numbers .page-num-ellipsis,
    html body .category-pagination > span.juf-pagination-ellipsis,
    html body .category-pagination > span:not(.active):not([aria-current="page"]) {
        min-width: 14px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 1px !important;
    }
}


/* ==========================================================================
   BUILD 381 — HIDE BOTTOM "নতুন বই" ROTATOR HERO ON AUTHORS PAGE (`1000168331.jpg`)
   ========================================================================== */
html body .juf-author-new-book-story,
body.authors-page .juf-author-new-book-story,
.authors-page .juf-author-new-book-story {
    display: none !important;
}


/* ==========================================================================
   BUILD 382 — AUTHOR NAME REFINED LITERARY SERIF READABILITY (`1792898926748.jpeg`)
   Replaces the hairline-thin (`besi suru`) 15.5px Kalpurush rendering on
   `.juf-author-directory-name` with `Tiro Bangla` / `SolaimanLipi` literary
   serif at `18px` (desktop) / `16.5px` (mobile) and a delicate `0.16px` ink
   fullness (`font-synthesis: none`) so the Bengali name feels rich, warm, and
   effortless to read without looking like heavy bold sans-serif.
   ========================================================================== */
html body.authors-page .juf-author-discovery .juf-author-directory-card .juf-author-directory-name,
html body.authors-page .juf-author-directory-card .juf-author-directory-name,
html body.authors-page .juf-author-directory-name,
html body .authors-page .juf-author-directory-name,
body.authors-page .juf-author-directory-name {
    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;
    -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] body.authors-page .juf-author-discovery .juf-author-directory-card .juf-author-directory-name,
html[data-theme="dark"] body.authors-page .juf-author-directory-card .juf-author-directory-name,
html[data-theme="dark"] body.authors-page .juf-author-directory-name,
html[data-theme="dark"] body .authors-page .juf-author-directory-name {
    color: #ECE8E1 !important;
    -webkit-text-stroke: 0.1px currentColor !important;
    text-shadow: 0 0 0.08px currentColor !important;
}

@media (max-width: 700px) {
    html body.authors-page .juf-author-discovery .juf-author-directory-card .juf-author-directory-name,
    html body.authors-page .juf-author-directory-card .juf-author-directory-name,
    html body.authors-page .juf-author-directory-name,
    html body .authors-page .juf-author-directory-name,
    body.authors-page .juf-author-directory-name {
        font-size: 15px !important;
        line-height: 1.3 !important;
        min-height: 1.3em !important;
    }
}

@media (max-width: 380px) {
    html body.authors-page .juf-author-discovery .juf-author-directory-card .juf-author-directory-name,
    html body.authors-page .juf-author-directory-card .juf-author-directory-name,
    html body.authors-page .juf-author-directory-name,
    html body .authors-page .juf-author-directory-name,
    body.authors-page .juf-author-directory-name {
        font-size: 14.5px !important;
    }
}


/* BUILD 383 & 384 moved to page-specific stylesheets */
/* ============================================================================
   Build 385 — Edge-to-Edge 1:1 Circular Author Profile Image Fill Across Site
   (`1792902197758.jpeg` — Eliminates empty white border/bottom caption space
   inside `.author-circle-disc` on `index.php`, `.juf-details-author-avatar` on
   `details.php`, `.reader-identity-avatar` on `read.php`, and
   `.profile-author-avatar` on `profile.php`)
   ============================================================================ */
html body.juf-homepage #authors .author-circle-disc:not(.author-view-all-disc),
html body .juf-details-author-avatar,
html body .reader-identity-avatar,
html body #library-home .profile-author-avatar,
html body .profile-author-avatar {
  display: block !important;
  position: relative !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #E4E6EC !important;
}

html body.juf-homepage #authors .author-circle-disc:not(.author-view-all-disc) > .juf-author-circle-img,
html body.juf-homepage #authors .author-circle-unit:hover .author-circle-disc > .juf-author-circle-img,
html body .juf-details-author-avatar > .juf-author-circle-img,
html body .reader-identity-avatar > .juf-author-circle-img,
html body #library-home .profile-author-avatar > .juf-author-circle-img,
html body .profile-author-avatar > .juf-author-circle-img {
  display: block !important;
  width: 126% !important;
  height: 126% !important;
  min-width: 126% !important;
  min-height: 126% !important;
  max-width: none !important;
  max-height: none !important;
  margin: -8.5% 0 0 -13% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  filter: none !important;
}

html body.juf-homepage #authors .authors-circle-slider-track .author-circle-unit.is-auto-active .author-circle-disc {
  transform: none !important;
}

/* ============================================================================
   Build 390 — Phase-by-Phase Professional Fix Across Profile, Writings & Settings
   (`1792909361704.jpeg`, `1000168497.jpg`, `1792909525699.jpeg`)
   ============================================================================
   - Phase 1: Instagram-Inspired Top Profile Header (Pure Number+Label Stats
     without redundant icon boxes, side-by-side 1-line `পড়া চালিয়ে যান` + `বইটি দেখুন`
     buttons, hidden horizontal scrollbar on `আমার লাইব্রেরি`).
   - Phase 2: `আমার লেখা` (`?view=writings`) Viewport Overflow & Blank Gap Fix
     (Wraps `.juf-user-writings-status-pills` cleanly inside 100% card width so
     it never stretches the mobile viewport; resets `flex: 0 0 auto` on
     `.juf-user-writings-search` to eliminate the 220px blank gap; fixes
     `প্রকাশিত` badge wrapping; flattens nested composer borders).
   - Phase 3: Clean, Modern `সেটিংস` (`account.php`) UI & Collapsible Accordions.
   - Phase 4: Secondary Tabs (`পড়ছি এখন / শেষ করেছি`, `লাইব্রেরিতে`, `রিভিউ`,
     `অনুসরণ`, `বুকমার্ক`) Polish & Dark Mode Parity.
   ============================================================================ */

/* Global Profile Viewport Containment — Zero Horizontal Page Overflow */
html body.juf-page-profile {
  overflow-x: hidden !important;
}
html body.juf-page-profile .site-main #library-home.profile-hub {
  margin: 14px auto 42px !important;
  max-width: 100% !important;
  overflow-x: clip !important;
}

/* PHASE 1: Unified Instagram-Style Profile Header Card (`.juf-ig-profile-card`) */
html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 18px 20px 14px !important;
  margin-bottom: 14px !important;
  border-radius: 20px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  box-shadow: 0 6px 20px rgba(40, 46, 55, 0.04) !important;
  min-height: 0 !important;
}
html body .site-main #library-home .profile-hub-identity {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  column-gap: 15px !important;
  row-gap: 3px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .site-main #library-home .profile-avatar-wrap {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  width: 84px !important;
  height: 84px !important;
  padding: 2.5px !important;
  margin: 0 !important;
  transform: none !important;
  align-self: center !important;
  box-shadow: none !important;
}
html body .site-main #library-home .profile-hub-avatar {
  width: 100% !important;
  height: 100% !important;
  border-width: 2px !important;
  font-size: 27px !important;
}
html body .site-main #library-home .profile-identity-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
  padding: 0 !important;
}
html body .site-main #library-home .profile-hub-identity h1#profile-hub-title,
html body .site-main #library-home .profile-hub-identity h1 {
  font-size: 22.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  color: #282E37 !important;
}
html body .site-main #library-home .profile-identity-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #5B6376 !important;
  gap: 5px 8px !important;
}
html body .site-main #library-home .profile-public-link-pill {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html body .site-main #library-home .profile-hub-identity p.reader-bio {
  margin: 2px 0 0 !important;
  font-size: 14.5px !important;
  line-height: 1.46 !important;
  color: #282E37 !important;
  -webkit-line-clamp: 2 !important;
}

/* Instagram-Style Pure Number + Label Stats Row (No Redundant Icon Clutter!) */
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 2px !important;
  padding: 10px 0 2px !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid #D9D6D0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row .profile-stat-icon {
  display: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 5px 2px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:hover {
  background: #ECEAE6 !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a[aria-current="page"] {
  background: #ECEAE6 !important;
  border-color: #D9D6D0 !important;
}
html body .site-main #library-home .profile-hub-stats .profile-stat-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  align-items: center !important;
  text-align: center !important;
}
html body .site-main #library-home .profile-hub-stats .profile-stat-copy strong {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #282E37 !important;
}
html body .site-main #library-home .profile-hub-stats .profile-stat-copy > span {
  font-family: var(--font-ui-system, 'Noto Sans Bengali', 'Kalpurush', sans-serif) !important;
  font-size: 11.8px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #282E37 !important;
  white-space: nowrap !important;
}

/* Integrated 4-Tab Bar (`সারসংক্ষেপ` | `আমার লেখা` | `বুকমার্ক` | `সেটিংস`) */
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 0 !important;
  padding: 4px !important;
  gap: 4px !important;
  border-radius: 13px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  box-shadow: none !important;
}
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 5px 8px !important;
  gap: 6px !important;
  border-radius: 9px !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', 'Kalpurush', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #282E37 !important;
  text-decoration: none !important;
}
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(59, 66, 86, 0.18) !important;
}
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] .reader-nav-icon,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] .reader-nav-icon svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}
html body .site-main #library-home .reader-nav-icon,
html body .site-main #library-home .reader-nav-icon svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}
html body .site-main #library-home .reader-desk-nav .reader-nav-label {
  font-size: inherit !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Section Containers & Headings */
html body .site-main #library-home .profile-overview-main,
html body .site-main #library-home .profile-p3-reading-library {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}
html body .site-main #library-home .profile-hub-section,
html body .site-main #library-home.profile-view-overview .profile-hub-section,
html body .site-main #library-home .juf-social-writings-section {
  padding: 16px 18px !important;
  margin: 0 0 14px !important;
  border-radius: 18px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  box-shadow: 0 5px 16px rgba(40, 46, 55, 0.03) !important;
  overflow: hidden !important;
}
html body .site-main #library-home .profile-hub-heading {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 12px !important;
  gap: 8px 12px !important;
}
html body .site-main #library-home .profile-hub-heading h2 {
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin: 0 !important;
  color: #282E37 !important;
}
html body .site-main #library-home .profile-heading-link {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #282E37 !important;
  white-space: nowrap !important;
}

/* PHASE 1B: "এখন পড়ছেন" Side-by-Side 1-Line Buttons & Hidden Library Scrollbar (`1792909361704.jpeg`) */
html body .site-main #library-home .juf-reading-state-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: -2px 0 12px !important;
}
html body .site-main #library-home .juf-reading-state-pills a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 31px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #F6F5F2 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html body .site-main #library-home .juf-reading-state-pills a[aria-current="page"] {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #FFFFFF !important;
}
html body .site-main #library-home .profile-continue-card {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 13px 14px !important;
  border-radius: 15px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: none !important;
  align-items: center !important;
}
html body .site-main #library-home .profile-continue-card a.profile-cover-link,
html body .site-main #library-home .profile-continue-card .juf-profile-cover-92 {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  height: 126px !important;
  min-height: 126px !important;
  border-radius: 8px !important;
}
html body .site-main #library-home .profile-continue-card .profile-kicker {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}
html body .site-main #library-home .profile-continue-card .profile-kicker.is-complete {
  color: #2E7A4F !important;
}
html body .site-main #library-home .profile-continue-card .profile-card-topline strong {
  font-size: 12.5px !important;
  font-weight: 700 !important;
}
html body .site-main #library-home .profile-continue-card h3 {
  font-size: 17.5px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin: 0 0 2px !important;
}
html body .site-main #library-home .profile-continue-card p {
  font-size: 13px !important;
  line-height: 1.32 !important;
  color: #5B6376 !important;
  margin: 0 0 6px !important;
}
html body .site-main #library-home .profile-continue-card .profile-progress {
  height: 5px !important;
  margin: 4px 0 6px !important;
  border-radius: 999px !important;
}
html body .site-main #library-home .profile-continue-card.is-completed-book .profile-progress i {
  background: #2E7A4F !important;
}
html body .site-main #library-home .profile-continue-card .profile-reading-position,
html body .site-main #library-home .profile-continue-card .profile-last-read {
  display: block !important;
  font-size: 11.5px !important;
  line-height: 1.38 !important;
  color: #5B6376 !important;
  margin: 1px 0 !important;
}
html body .site-main #library-home .profile-continue-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
  width: 100% !important;
}
html body .site-main #library-home .profile-continue-actions .profile-text-action,
html body .site-main #library-home .profile-continue-actions .profile-quiet-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 11.8px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* Hide ugly scrollbar on `আমার লাইব্রেরি` horizontal strip (`1792909361704.jpeg`) */
html body .site-main #library-home.profile-view-overview .profile-shelf-grid-v25 {
  display: flex !important;
  gap: 13px !important;
  padding: 4px 2px 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-grid-v25::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 {
  flex: 0 0 116px !important;
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 > a.profile-library-cover-link,
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 .juf-profile-cover-76 {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  height: 174px !important;
  min-height: 174px !important;
  margin: 0 0 7px !important;
  border-radius: 10px !important;
}
html body .site-main #library-home .profile-shelf-card-v25 h3,
html body .site-main #library-home .profile-shelf-card-v25 h3 a {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.32 !important;
  margin: 0 0 2px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
html body .site-main #library-home .profile-shelf-card-v25 p {
  font-size: 12px !important;
  line-height: 1.32 !important;
  color: #5B6376 !important;
}
html body .site-main #library-home.profile-view-overview .profile-library-add-card {
  flex: 0 0 108px !important;
  width: 108px !important;
  height: 174px !important;
  min-height: 174px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

/* PHASE 2: `আমার লেখা` Tab (`1000168497.jpg`) — Fix Viewport Blowout, 220px Blank Gap & `প্রকাশিত` Chip */
html body .site-main #library-home .juf-writings-head-clean {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}
html body .site-main #library-home .juf-post-count-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 9px !important;
  margin-left: 6px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  vertical-align: middle !important;
}
html body .site-main #library-home .juf-feed-pill-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 29px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Flatten Nested Composer Borders (`1000168497.jpg`) */
html body .site-main #library-home .juf-social-composer {
  padding: 13px 14px !important;
  margin-bottom: 14px !important;
  border-radius: 15px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: none !important;
}
html body .site-main #library-home .juf-social-composer-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
html body .site-main #library-home .juf-social-composer-user {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
html body .site-main #library-home .juf-social-composer-meta {
  min-width: 0 !important;
}
html body .site-main #library-home .juf-social-composer-meta strong {
  display: block !important;
  font-size: 14.5px !important;
  line-height: 1.2 !important;
}
html body .site-main #library-home .juf-social-composer-meta span {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body .site-main #library-home .juf-social-composer-type select {
  height: 32px !important;
  padding: 0 24px 0 10px !important;
  font-size: 11.5px !important;
  border-radius: 999px !important;
}
html body .site-main #library-home .juf-social-composer-fields {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid !important;
  gap: 8px !important;
}
html body .site-main #library-home .juf-social-composer-title,
html body .site-main #library-home .juf-social-composer-body {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #D9D6D0 !important;
  border-radius: 11px !important;
  background: #ECEAE6 !important;
  padding: 9px 12px !important;
  font-size: 14px !important;
}
html body .site-main #library-home .juf-composer-series-details {
  margin: 0 !important;
  padding: 6px 11px !important;
  border-radius: 9px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
}
html body .site-main #library-home .juf-composer-series-details > summary {
  cursor: pointer !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #282E37 !important;
  list-style: none !important;
}
html body .site-main #library-home .juf-composer-series-details > summary::-webkit-details-marker {
  display: none !important;
}
html body .site-main #library-home .juf-composer-series-details[open] > summary {
  margin-bottom: 8px !important;
}

/* CRITICAL FIX FOR `1000168497.jpg`:
   1. Wrap `.juf-user-writings-status-pills` cleanly inside 100% width so it NEVER blows out the mobile viewport!
   2. Override `flex: 1 1 220px !important` on `.juf-user-writings-search` with `flex: 0 0 auto !important; height: auto !important;` so there is ZERO 220px blank vertical gap! */
html body .site-main #library-home .juf-user-writings-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 14px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid #D9D6D0 !important;
}
html body .site-main #library-home .juf-user-writings-status-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html body .site-main #library-home .juf-user-writings-status-pills a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #F6F5F2 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}
html body .site-main #library-home .juf-user-writings-search {
  display: grid !important;
  grid-template-columns: 118px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}
html body .site-main #library-home .juf-user-writings-search select {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #FFFFFF !important;
  font-size: 11.5px !important;
}
html body .site-main #library-home .juf-user-writings-search input[type="search"] {
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #FFFFFF !important;
  font-size: 12.5px !important;
}
html body .site-main #library-home .juf-user-writings-search button {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* Fix `প্রকাশিত` Status Chip Wrapping Vertically (`প্রকাশি / ত` in `1000168497.jpg`) */
html body .site-main #library-home .juf-social-post-card {
  padding: 13px 14px !important;
  gap: 7px !important;
  border-radius: 15px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: none !important;
}
html body .site-main #library-home .juf-social-post-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
html body .site-main #library-home .juf-social-post-author {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
html body .site-main #library-home .juf-social-post-author-copy {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
html body .site-main #library-home .juf-social-post-author-copy strong {
  display: block !important;
  font-size: 14.5px !important;
  line-height: 1.25 !important;
}
html body .site-main #library-home .juf-social-post-submeta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 2px 5px !important;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
}
html body .site-main #library-home .profile-status-chip,
html body .site-main #library-home .juf-social-post-head > .profile-status-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  width: auto !important;
  min-width: max-content !important;
  min-height: 24px !important;
  height: auto !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}
html body .site-main #library-home .juf-social-post-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.36 !important;
  margin: 0 0 3px !important;
}
html body .site-main #library-home .juf-social-post-prose,
html body .site-main #library-home .juf-social-post-prose.is-clamped-4 {
  font-size: 15.5px !important;
  line-height: 1.68 !important;
  -webkit-line-clamp: 3 !important;
  max-height: calc(1.68em * 3 + 4px) !important;
}
html body .site-main #library-home .juf-social-post-words {
  font-size: 11.5px !important;
}
html body .site-main #library-home .juf-social-read-btn,
html body .site-main #library-home .juf-social-post-delete button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

/* PHASE 3: Clean, Modern `সেটিংস` Page (`account.php` — `1792909525699.jpeg`) */
html body .site-main .juf-clean-settings-shell {
  max-width: 780px !important;
  margin: 18px auto 48px !important;
}
html body .site-main .juf-settings-top-head {
  margin-bottom: 12px !important;
}
html body .site-main .juf-settings-top-head h1.juf-account-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 4px !important;
}
html body .site-main .juf-settings-top-head p.juf-account-intro {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #5B6376 !important;
  margin: 0 !important;
}
html body .site-main .juf-clean-settings-shell .account-profile-nav {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  margin: 0 0 16px !important;
  padding: 5px !important;
  border-radius: 13px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
}
html body .site-main .juf-clean-settings-shell .account-profile-nav a,
html body .site-main .juf-clean-settings-shell .account-profile-nav span {
  min-height: 38px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-align: center !important;
}
html body .site-main .juf-clean-settings-shell .juf-account-panel {
  padding: 18px 20px !important;
  margin: 0 0 14px !important;
  border-radius: 18px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  box-shadow: 0 4px 14px rgba(40, 46, 55, 0.03) !important;
}
html body .site-main .juf-settings-panel-head {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}
html body .site-main .juf-clean-settings-shell .juf-account-panel-title {
  font-size: 18.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
}
html body .site-main .juf-settings-meta-note {
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11.5px !important;
  color: #5B6376 !important;
}
html body .site-main .juf-settings-pill-link {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html body .site-main .juf-settings-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
html body .site-main .juf-settings-form > .is-full-row {
  grid-column: 1 / -1 !important;
}
html body .site-main .juf-settings-form label {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #282E37 !important;
}
html body .site-main .juf-settings-form input[type="text"],
html body .site-main .juf-settings-form input[type="email"],
html body .site-main .juf-settings-form input[type="password"],
html body .site-main .juf-settings-form textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  border: 1px solid #D9D6D0 !important;
  background: #F6F5F2 !important;
  font-size: 14px !important;
  color: #282E37 !important;
}
html body .site-main .juf-settings-form input[disabled] {
  opacity: 0.75 !important;
  background: #ECEAE6 !important;
}
html body .site-main .juf-email-badge {
  display: inline-block !important;
  padding: 1px 7px !important;
  margin-left: 6px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
}
html body .site-main .juf-email-badge.is-verified {
  background: #E4E6EC !important;
  color: #2E7A4F !important;
}
html body .site-main .juf-email-badge.is-unverified {
  background: #FCE0E6 !important;
  color: #3B4256 !important;
}
html body .site-main .juf-settings-checkbox-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  border-radius: 11px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
}
html body .site-main .juf-Settings-checkbox-group label.juf-checkbox-row,
html body .site-main .juf-checkbox-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}
html body .site-main .juf-settings-submit-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 4px !important;
}
html body .site-main .juf-settings-secondary-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
html body .site-main .juf-settings-accordion {
  margin-top: 12px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid #D9D6D0 !important;
  background: #F6F5F2 !important;
}
html body .site-main .juf-settings-accordion.is-danger-accordion {
  border-color: #D9D6D0 !important;
  background: #F6F5F2 !important;
}
html body .site-main .juf-settings-accordion > summary {
  cursor: pointer !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #282E37 !important;
  list-style: none !important;
}
html body .site-main .juf-settings-accordion.is-danger-accordion > summary {
  color: #5B6376 !important;
}
html body .site-main .juf-settings-accordion > summary::-webkit-details-marker {
  display: none !important;
}
html body .site-main .juf-settings-accordion-body {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #D9D6D0 !important;
}
html body .site-main .juf-settings-accordion-body p {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #282E37 !important;
  margin: 0 0 10px !important;
}
html body .site-main .juf-inline-password-action {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}
html body .site-main .juf-inline-password-action input {
  flex: 1 1 180px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #FFFFFF !important;
  font-size: 13px !important;
}
html body .site-main .juf-clean-settings-shell .juf-account-quick-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 10px !important;
}
html body .site-main .juf-clean-settings-shell .juf-account-quick-item {
  padding: 12px 14px !important;
  border-radius: 13px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
}
html body .site-main .juf-clean-settings-shell .juf-account-quick-item strong {
  font-size: 14.5px !important;
}
html body .site-main .juf-clean-settings-shell .juf-account-quick-item small {
  font-size: 11.5px !important;
}

/* PHASE 4: Secondary Tabs (`লাইব্রেরিতে`, `রিভিউ`, `অনুসরণ`) & Mobile Responsive (`<= 640px`) */
html body .site-main #library-home .juf-inline-shelf-search {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: -2px 0 14px !important;
}
html body .site-main #library-home .juf-inline-shelf-search input[type="search"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 38px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #F6F5F2 !important;
  font-size: 13px !important;
}
html body .site-main #library-home .juf-inline-shelf-search button,
html body .site-main #library-home .juf-inline-shelf-search a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #3B4256 !important;
  color: #FFFFFF !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html body .site-main #library-home.profile-view-library .profile-shelf-card-v25 {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
  align-items: center !important;
}
html body .site-main #library-home.profile-view-library .profile-shelf-card-v25 .juf-profile-cover-76 {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  height: 117px !important;
  min-height: 117px !important;
  border-radius: 8px !important;
}
html body .site-main #library-home .profile-inline-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin-top: 8px !important;
}
html body .site-main #library-home .profile-inline-actions a,
html body .site-main #library-home .profile-inline-actions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
html body .site-main #library-home .profile-inline-actions a.is-read-pill {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #FFFFFF !important;
}
html body .site-main #library-home .profile-inline-actions button {
  color: #5B6376 !important;
  border-color: #D9D6D0 !important;
  background: #F6F5F2 !important;
}
html body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive {
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  padding: 16px 18px !important;
  margin: 0 !important;
  border-radius: 14px !important;
}
html body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive > div:first-child > span {
  color: #5B6376 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
html body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive h3 {
  color: #282E37 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 3px 0 5px !important;
}
html body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive p {
  color: #282E37 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}
html body.juf-2d-minimal .site-main #library-home .profile-premium-pass-v26.is-inactive > a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  background: #3B4256 !important;
  color: #FFFFFF !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

/* Instagram-Style "Following" List (`#following`) */
html body .site-main #library-home .profile-follow-strip.juf-ig-following-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}
html body .site-main #library-home .juf-ig-follow-row {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 13px !important;
  border-radius: 14px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
  text-align: left !important;
}
html body .site-main #library-home .juf-ig-follow-row .profile-author-avatar {
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px !important;
  margin: 0 !important;
}
html body .site-main #library-home .juf-ig-follow-copy {
  min-width: 0 !important;
}
html body .site-main #library-home .juf-ig-follow-copy h3,
html body .site-main #library-home .juf-ig-follow-copy h3 a {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  margin: 0 0 2px !important;
  color: #282E37 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body .site-main #library-home .juf-ig-follow-copy p {
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #5B6376 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body .site-main #library-home .juf-ig-unfollow-form {
  margin: 0 !important;
}
html body .site-main #library-home .juf-ig-unfollow-form button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 31px !important;
  height: 31px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  color: #3B4256 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

/* Dedicated Reviews With Book Covers (`#my-reviews`) */
html body .site-main #library-home .profile-review-list-dedicated .juf-review-card-with-cover {
  display: grid !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  gap: 13px !important;
  padding: 13px 14px !important;
  border-radius: 15px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
  align-items: start !important;
}
html body .site-main #library-home .profile-review-list-dedicated .juf-profile-cover-76 {
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 93px !important;
  min-height: 93px !important;
  border-radius: 8px !important;
}
html body .site-main #library-home .profile-review-list-dedicated h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin: 2px 0 2px !important;
}
html body .site-main #library-home .profile-review-list-dedicated blockquote {
  margin: 5px 0 0 !important;
  font-size: 14.5px !important;
  line-height: 1.58 !important;
}

@media (max-width: 640px) {
  html body.juf-page-profile .site-main #library-home.profile-hub {
    padding: 0 12px !important;
    margin: 12px auto 36px !important;
  }
  html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    padding: 14px 14px 12px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }
  html body .site-main #library-home .profile-hub-identity {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    column-gap: 12px !important;
  }
  html body .site-main #library-home .profile-avatar-wrap {
    width: 72px !important;
    height: 72px !important;
  }
  html body .site-main #library-home .profile-hub-identity h1#profile-hub-title,
  html body .site-main #library-home .profile-hub-identity h1 {
    font-size: 20.5px !important;
  }
  html body .site-main #library-home .profile-identity-meta {
    font-size: 11.5px !important;
  }
  html body .site-main #library-home .profile-hub-identity p.reader-bio {
    font-size: 13.8px !important;
    line-height: 1.44 !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
    padding: 8px 0 0 !important;
    gap: 2px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
    min-height: 44px !important;
    padding: 4px 2px !important;
  }
  html body .site-main #library-home .profile-hub-stats .profile-stat-copy strong {
    font-size: 16.5px !important;
  }
  html body .site-main #library-home .profile-hub-stats .profile-stat-copy > span {
    font-size: 11px !important;
    line-height: 1.34 !important;
  }
  html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a {
    flex-direction: column !important;
    min-height: 44px !important;
    padding: 5px 3px !important;
    gap: 2px !important;
    font-size: 11.5px !important;
  }
  html body .site-main #library-home .profile-hub-section,
  html body .site-main #library-home.profile-view-overview .profile-hub-section,
  html body .site-main #library-home .juf-social-writings-section {
    padding: 14px 13px !important;
    border-radius: 16px !important;
  }
  html body .site-main #library-home .profile-continue-card {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 11px !important;
  }
  html body .site-main #library-home .profile-continue-card a.profile-cover-link,
  html body .site-main #library-home .profile-continue-card .juf-profile-cover-92 {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 114px !important;
    min-height: 114px !important;
  }
  html body .site-main #library-home .profile-continue-actions {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }
  html body .site-main #library-home .profile-continue-actions .profile-text-action,
  html body .site-main #library-home .profile-continue-actions .profile-quiet-action {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 8px !important;
    font-size: 11.2px !important;
  }
  html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 {
    flex: 0 0 106px !important;
    width: 106px !important;
    min-width: 106px !important;
    max-width: 106px !important;
  }
  html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 > a.profile-library-cover-link,
  html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 .juf-profile-cover-76 {
    width: 106px !important;
    min-width: 106px !important;
    max-width: 106px !important;
    height: 159px !important;
    min-height: 159px !important;
  }
  html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 h3,
  html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 h3 a {
    font-size: 13.5px !important;
  }
  html body .site-main #library-home .profile-follow-strip.juf-ig-following-list,
  html body .site-main .juf-settings-form,
  html body .site-main .juf-clean-settings-shell .juf-account-quick-links {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body .site-main #library-home .juf-user-writings-search {
    grid-template-columns: 108px minmax(0, 1fr) auto !important;
    gap: 5px !important;
  }
}

/* Dark Mode Parity for Build 390 */
html[data-theme="dark"] body .site-main #library-home .profile-hub-hero.juf-ig-profile-card,
html[data-theme="dark"] body .site-main #library-home .profile-hub-section,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-account-panel,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .account-profile-nav {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
  border-top-color: #3A3F47 !important;
  background: transparent !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a[aria-current="page"] {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a {
  color: #A09B94 !important;
}
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] {
  background: #C9D4EC !important;
  border-color: #C9D4EC !important;
  color: #23262B !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-card,
html[data-theme="dark"] body .site-main #library-home.profile-view-library .profile-shelf-card-v25,
html[data-theme="dark"] body .site-main #library-home .juf-ig-follow-row,
html[data-theme="dark"] body .site-main #library-home .profile-review-list-dedicated .juf-review-card-with-cover,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card,
html[data-theme="dark"] body .site-main #library-home .juf-social-composer,
html[data-theme="dark"] body .site-main .juf-settings-accordion,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-account-quick-item,
html[data-theme="dark"] body .site-main .juf-settings-checkbox-group {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-title,
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-body,
html[data-theme="dark"] body .site-main .juf-settings-form input[type="text"],
html[data-theme="dark"] body .site-main .juf-settings-form input[type="email"],
html[data-theme="dark"] body .site-main .juf-settings-form input[type="password"],
html[data-theme="dark"] body .site-main .juf-settings-form textarea {
  background: #23262B !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}

/* ============================================================================
   BUILD 392 — FULL COMFORTABLE WIDTH ACROSS ALL PAGES, PROFESSIONAL HERO
   ARRANGEMENT, PRIMARY TOP STATS WITH COLORED SYMBOLS, & POSTS ON HOME
   ============================================================================ */

/* 1. Full Comfortable Width Across All Profile, Settings & Member Pages (Zero Double Padding) */
html body.juf-page-profile main.site-main.container,
html body.juf-page-account main.site-main.container,
html body.juf-page-member main.site-main.container {
  max-width: 1260px !important;
  width: 100% !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}
html body.juf-page-profile .site-main #library-home.profile-hub,
html body.juf-page-account .site-main .juf-clean-settings-shell,
html body.juf-page-account .site-main .juf-account-shell.container,
html body .site-main .reader-public.juf-public-social-profile {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* 2. Professional Hero Card Arrangement (Strictly Left-Aligned Name + Right Public Badge) */
html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 13px !important;
  padding: 18px 20px 14px !important;
  margin-bottom: 14px !important;
  border-radius: 20px !important;
  border: 1px solid #D9D6D0 !important;
  background: linear-gradient(180deg, #ECEAE6 0%, #F6F5F2 100%) !important;
  box-shadow: 0 8px 24px rgba(40, 46, 55, 0.05) !important;
  min-height: 0 !important;
}
html body .site-main #library-home .profile-hub-identity {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) !important;
  column-gap: 16px !important;
  row-gap: 4px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .site-main #library-home .profile-avatar-wrap {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  width: 88px !important;
  height: 88px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  align-self: center !important;
  box-shadow: none !important;
}
html body .site-main #library-home .profile-hub-avatar {
  width: 100% !important;
  height: 100% !important;
  border: 3px solid #D9D6D0 !important;
  box-shadow: 0 0 0 1.5px #E4E6EC, 0 8px 18px rgba(40, 46, 55, 0.10) !important;
  font-size: 28px !important;
}
html body .site-main #library-home .profile-identity-copy {
  grid-column: 2 !important;
  grid-row: 1 / 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 4px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
}
html body .site-main #library-home .profile-identity-toprow {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}
html body .site-main #library-home .profile-hub-identity h1#profile-hub-title,
html body .site-main #library-home .profile-hub-identity h1 {
  align-self: flex-start !important;
  text-align: left !important;
  margin: 0 !important;
  font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #282E37 !important;
}
html body .site-main #library-home .profile-public-link-pill {
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11.2px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
html body .site-main #library-home .profile-identity-meta {
  align-self: flex-start !important;
  text-align: left !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  font-size: 12.2px !important;
  line-height: 1.35 !important;
  color: #5B6376 !important;
  gap: 6px !important;
}
html body .site-main #library-home .profile-hub-identity p.reader-bio {
  align-self: flex-start !important;
  text-align: left !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
  font-size: 14.5px !important;
  line-height: 1.48 !important;
  color: #282E37 !important;
  -webkit-line-clamp: 2 !important;
}

/* 3. Primary Top Stats & Navigation Strip With Restored Colored Symbols */
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  padding: 5px !important;
  margin: 0 !important;
  border: 1px solid #D9D6D0 !important;
  border-radius: 14px !important;
  background: #ECEAE6 !important;
  box-shadow: inset 0 1px 2px rgba(40, 46, 55, 0.03) !important;
  overflow: visible !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  min-height: 70px !important;
  padding: 7px 3px 6px !important;
  border: 1px solid #D9D6D0 !important;
  border-radius: 11px !important;
  background: #ECEAE6 !important;
  box-shadow: 0 2px 5px rgba(40, 46, 55, 0.03) !important;
  text-decoration: none !important;
  transform: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a::before,
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a::after,
html body .site-main #library-home .profile-hub-stats a::before,
html body .site-main #library-home .profile-hub-stats a::after {
  display: none !important;
  content: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:hover {
  background: #ECEAE6 !important;
  border-color: #D9D6D0 !important;
  transform: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a[aria-current="page"] {
  background: #E4E6EC !important;
  border-color: #D9D6D0 !important;
  box-shadow: inset 0 0 0 1px rgba(59, 66, 86, 0.12), 0 3px 8px rgba(40, 46, 55, 0.06) !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row .profile-stat-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 9px !important;
  margin-bottom: 1px !important;
  transform: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row .profile-stat-icon svg {
  width: 15px !important;
  height: 15px !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(1) .profile-stat-icon {
  background: #E4E6EC !important;
  color: #2E7A4F !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(2) .profile-stat-icon {
  background: #E4E6EC !important;
  color: #2F5D9E !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(3) .profile-stat-icon {
  background: #ECEAE6 !important;
  color: #3B4256 !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(4) .profile-stat-icon {
  background: #ECEAE6 !important;
  color: #5B6376 !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:nth-child(5) .profile-stat-icon {
  background: #ECEAE6 !important;
  color: #5B6376 !important;
}
html body .site-main #library-home .profile-hub-stats .profile-stat-copy {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  align-items: center !important;
  text-align: center !important;
}
html body .site-main #library-home .profile-hub-stats .profile-stat-copy strong {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #282E37 !important;
}
html body .site-main #library-home .profile-hub-stats .profile-stat-copy > span {
  font-family: var(--font-ui-system, 'Noto Sans Bengali', 'Kalpurush', sans-serif) !important;
  font-size: 11.2px !important;
  font-weight: 600 !important;
  line-height: 1.28 !important;
  color: #282E37 !important;
  white-space: nowrap !important;
}

/* 4. Primary Write Post CTA Button on Home (`#my-posts`) */
html body .site-main #library-home .juf-write-post-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #3B4256 !important;
  border: 1px solid #3B4256 !important;
  color: #FFFFFF !important;
  font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 11.8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* 5. Mobile Edge-to-Edge Comfortable Width & Compact Polish (`<= 640px`) */
@media (max-width: 640px) {
  html body.juf-page-profile main.site-main.container,
  html body.juf-page-account main.site-main.container,
  html body.juf-page-member main.site-main.container {
    padding-left: 8px !important;
    padding-right: 8px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  html body.juf-page-profile .site-main #library-home.profile-hub,
  html body.juf-page-account .site-main .juf-clean-settings-shell,
  html body.juf-page-account .site-main .juf-account-shell.container,
  html body .site-main .reader-public.juf-public-social-profile {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    padding: 13px 12px 11px !important;
    gap: 11px !important;
    border-radius: 17px !important;
  }
  html body .site-main #library-home .profile-hub-identity {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    column-gap: 12px !important;
  }
  html body .site-main #library-home .profile-avatar-wrap {
    width: 76px !important;
    height: 76px !important;
  }
  html body .site-main #library-home .profile-hub-identity h1#profile-hub-title,
  html body .site-main #library-home .profile-hub-identity h1 {
    font-size: 21px !important;
    align-self: flex-start !important;
    text-align: left !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 13px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
    min-height: 66px !important;
    padding: 6px 2px 5px !important;
    border-radius: 9px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row .profile-stat-icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
    border-radius: 8px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row .profile-stat-icon svg {
    width: 14px !important;
    height: 14px !important;
  }
  html body .site-main #library-home .profile-hub-stats .profile-stat-copy strong {
    font-size: 15.8px !important;
  }
  html body .site-main #library-home .profile-hub-stats .profile-stat-copy > span {
    font-size: 10.4px !important;
    line-height: 1.25 !important;
  }
  html body .site-main #library-home .profile-hub-section,
  html body .site-main #library-home.profile-view-overview .profile-hub-section,
  html body .site-main #library-home .juf-social-writings-section,
  html body .site-main .juf-clean-settings-shell .juf-account-panel {
    padding: 13px 11px !important;
    border-radius: 16px !important;
  }
}

/* 6. Dark Mode Parity for Build 392 */
html[data-theme="dark"] body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a[aria-current="page"] {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats .profile-stat-copy strong {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats .profile-stat-copy > span {
  color: #A09B94 !important;
}


/* ============================================================================
   BUILD 393 — SEPARATE PROFILE HERO CARD, STANDALONE 5-STAT CARD & TAB BAR
   ("Profile car a ato sob rakhar dorkar nei ager moto korun aladha kore")
   ============================================================================ */

/* 1. Standalone Profile Hero Card (Only Identity, Avatar, Meta & Bio) */
html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
  display: block !important;
  padding: 16px 18px !important;
  margin: 0 0 10px !important;
  border-radius: 18px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  box-shadow: 0 6px 18px rgba(40, 46, 55, 0.04) !important;
  min-height: 0 !important;
}

/* 2. Separate Controls Stack Below Profile Card (.profile-hub-controls) */
html body .site-main #library-home .profile-hub-controls {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  width: 100% !important;
}

/* 3. Standalone 5-Column Stats Strip Card (Like Before, Separated by Thin Dividers) */
html body .site-main #library-home .profile-hub-controls .profile-hub-stats.juf-ig-stats-row,
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #D9D6D0 !important;
  border-radius: 16px !important;
  background: #ECEAE6 !important;
  box-shadow: 0 4px 14px rgba(40, 46, 55, 0.03) !important;
  overflow: hidden !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  min-height: 74px !important;
  padding: 9px 3px 8px !important;
  border: 0 !important;
  border-right: 1px solid #D9D6D0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:last-child {
  border-right: 0 !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a:hover {
  background: #ECEAE6 !important;
  transform: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a[aria-current="page"] {
  background: #ECEAE6 !important;
  box-shadow: inset 0 -3px 0 #3B4256 !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row .profile-stat-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 50% !important;
  margin-bottom: 1px !important;
}

/* 4. Standalone 4-Tab Bar Card Below Stats Strip */
html body .site-main #library-home .profile-hub-controls .reader-desk-nav.juf-ig-tab-bar,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 4px !important;
  padding: 5px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: 0 4px 14px rgba(40, 46, 55, 0.03) !important;
}

@media (max-width: 640px) {
  html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    padding: 13px 12px !important;
    margin: 0 0 9px !important;
    border-radius: 16px !important;
  }
  html body .site-main #library-home .profile-hub-controls {
    gap: 9px !important;
    margin: 0 0 10px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row {
    border-radius: 14px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
    min-height: 68px !important;
    padding: 7px 2px 6px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-stats-row .profile-stat-icon {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;
  }
}

/* Dark Mode Parity for Build 393 Separate Cards */
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row,
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a {
  background: transparent !important;
  border-right-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-hub-stats.juf-ig-stats-row a[aria-current="page"] {
  background: #2C3037 !important;
  box-shadow: inset 0 -3px 0 #C9D4EC !important;
}


/* ============================================================================
   BUILD 394 — EXACT INSTAGRAM PROFILE HEADER LAYOUT (1792915253261.jpeg)
   - Row 1 (.juf-ig-hero-top): Circular Avatar on Left + Reader Name ("জুয়েল")
     on Top-Right + 3 Primary Stats ("শেষ করেছি", "লাইব্রেরি", "অনুসরণ") with
     Colored Symbols directly below the Name (next to the Avatar!).
   - Row 2 (.juf-ig-hero-bio): Bio & Member Date directly below the Avatar.
   - Row 3 (.juf-ig-hero-actions): 2 Equal-Width Side-by-Side Buttons
     ("পরিচিতি সম্পাদনা" | "প্রকাশ্য প্রোফাইল ↗") like "Edit profile" | "View archive".
   - Row 4 (.reader-desk-nav.juf-ig-tab-bar): Clean Symbol Tab Bar along the
     bottom edge with a crisp bottom active indicator line (no boxy brown pill).
   ============================================================================ */

html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 18px 20px 0 !important;
  margin: 0 0 14px !important;
  border-radius: 18px !important;
  border: 1px solid #D9D6D0 !important;
  background: #ECEAE6 !important;
  box-shadow: 0 6px 18px rgba(40, 46, 55, 0.04) !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Row 1: Avatar (Left) + Name & 3 Primary Stats (Right) */
html body .site-main #library-home .juf-ig-hero-top {
  display: grid !important;
  grid-template-columns: 90px minmax(0, 1fr) !important;
  column-gap: 18px !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .site-main #library-home .juf-ig-hero-top .profile-avatar-wrap {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 90px !important;
  height: 90px !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  align-self: center !important;
}
html body .site-main #library-home .juf-ig-hero-top .profile-hub-avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  border: 3px solid #D9D6D0 !important;
  box-shadow: 0 0 0 1.5px #E4E6EC, 0 6px 16px rgba(40, 46, 55, 0.09) !important;
  font-size: 28px !important;
}
html body .site-main #library-home .juf-ig-hero-right {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  width: 100% !important;
  text-align: left !important;
}
html body .site-main #library-home .juf-ig-hero-right h1#profile-hub-title,
html body .site-main #library-home .juf-ig-hero-right h1 {
  align-self: flex-start !important;
  text-align: left !important;
  margin: 0 !important;
  font-family: var(--font-heading-editorial, "Kalpurush", serif) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  color: #282E37 !important;
}

/* 3 Primary Stats ("শেষ করেছি", "লাইব্রেরি", "অনুসরণ") Directly Under Name */
html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 420px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats a {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 4px 6px 4px 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats a::before,
html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats a::after {
  display: none !important;
  content: none !important;
}
html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats a[aria-current="page"] strong,
html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats a[aria-current="page"] .juf-ig-stat-label {
  color: #3B4256 !important;
  font-weight: 700 !important;
}
html body .site-main #library-home .juf-ig-stat-num {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon {
  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: 6px !important;
  margin: 0 !important;
}
html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon svg {
  width: 13px !important;
  height: 13px !important;
}
html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-completed {
  background: #E4E6EC !important;
  color: #2E7A4F !important;
}
html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-library {
  background: #E4E6EC !important;
  color: #2F5D9E !important;
  fill: currentColor !important;
}
html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-library svg {
  fill: currentColor !important;
  stroke: none !important;
}
html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon.is-stat-following {
  background: #ECEAE6 !important;
  color: #5B6376 !important;
}
html body .site-main #library-home .juf-ig-stat-num strong {
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: #282E37 !important;
}
html body .site-main #library-home .juf-ig-stat-label {
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 12.2px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  color: #282E37 !important;
  white-space: nowrap !important;
}

/* Row 2: Bio & Member Date Directly Below Avatar */
html body .site-main #library-home .juf-ig-hero-bio {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
html body .site-main #library-home .juf-ig-hero-bio p.reader-bio {
  margin: 0 !important;
  font-family: var(--font-reading, "SolaimanLipi", serif) !important;
  font-size: 14.8px !important;
  font-weight: 500 !important;
  line-height: 1.46 !important;
  color: #282E37 !important;
  text-align: left !important;
}
html body .site-main #library-home .juf-ig-hero-bio .profile-identity-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 12px !important;
  color: #5B6376 !important;
}

/* Row 3: 2 Equal Side-by-Side Action Buttons ("Edit profile" | "View archive") */
html body .site-main #library-home .juf-ig-hero-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 2px 0 0 !important;
}
html body .site-main #library-home .juf-ig-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: background-color 0.15s ease !important;
}
html body .site-main #library-home .juf-ig-action-btn:hover {
  background: #E4E6EC !important;
}

/* Row 4: Instagram-Style Bottom Icon/Symbol Tab Bar With Bottom Active Line */
html body .site-main #library-home .profile-hub-hero .reader-desk-nav.juf-ig-tab-bar,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 2px 0 0 !important;
  margin: 2px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid #D9D6D0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-height: 48px !important;
  padding: 7px 2px 8px !important;
  border: 0 !important;
  border-bottom: 2.5px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #5B6376 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a .reader-nav-icon,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a .reader-nav-icon svg {
  width: 18px !important;
  height: 18px !important;
  color: currentColor !important;
  stroke: currentColor !important;
  fill: none !important;
}
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] {
  background: transparent !important;
  border-color: transparent !important;
  border-bottom: 2.5px solid #3B4256 !important;
  color: #282E37 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] .reader-nav-icon,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] .reader-nav-icon svg {
  color: #282E37 !important;
  stroke: #282E37 !important;
}

@media (max-width: 640px) {
  html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    padding: 14px 13px 0 !important;
    gap: 10px !important;
    margin: 0 0 11px !important;
    border-radius: 16px !important;
  }
  html body .site-main #library-home .juf-ig-hero-top {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    column-gap: 14px !important;
  }
  html body .site-main #library-home .juf-ig-hero-top .profile-avatar-wrap {
    width: 78px !important;
    height: 78px !important;
  }
  html body .site-main #library-home .juf-ig-hero-right {
    gap: 7px !important;
  }
  html body .site-main #library-home .juf-ig-hero-right h1#profile-hub-title,
  html body .site-main #library-home .juf-ig-hero-right h1 {
    font-size: 19.5px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats {
    gap: 4px !important;
  }
  html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
  }
  html body .site-main #library-home .juf-ig-stat-num .profile-stat-icon svg {
    width: 12px !important;
    height: 12px !important;
  }
  html body .site-main #library-home .juf-ig-stat-num strong {
    font-size: 16.5px !important;
  }
  html body .site-main #library-home .juf-ig-stat-label {
    font-size: 11.5px !important;
  }
  html body .site-main #library-home .juf-ig-hero-bio p.reader-bio {
    font-size: 14px !important;
  }
  html body .site-main #library-home .juf-ig-action-btn {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12.2px !important;
    border-radius: 9px !important;
  }
  html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a {
    min-height: 44px !important;
    padding: 6px 1px 7px !important;
    font-size: 10.8px !important;
  }
}

/* Dark Mode Parity for Build 394 Instagram Profile Header */
html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-right h1#profile-hub-title,
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-num strong {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-ig-stat-label,
html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-bio p.reader-bio {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-ig-action-btn {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar {
  background: transparent !important;
  border-top-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a {
  color: #A09B94 !important;
  background: transparent !important;
}
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] {
  background: transparent !important;
  border-bottom-color: #C9D4EC !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] .reader-nav-icon,
html[data-theme="dark"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a[aria-current="page"] .reader-nav-icon svg {
  color: #ECE8E1 !important;
  stroke: #ECE8E1 !important;
}


/* ============================================================================
   BUILD 395 — 4-COLUMN TAB BAR (WITHOUT আমার লেখা) & STANDALONE POST CARDS
   WITHOUT OUTER WHITE BOARD ("পরিচিত সম্পাদনা > থেকে পোস্ট", "Ar nichhe আমার লেখা
   remove করুন", "Ar posts gula white board a achhe seta soran")
   ============================================================================ */

/* 1. 4-Column Bottom Symbol Tab Bar (সারসংক্ষেপ | রিভিউ | বুকমার্ক | সেটিংস) */
html body .site-main #library-home .profile-hub-hero .reader-desk-nav.juf-ig-tab-bar,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
}

/* 2. Remove Outer White Board From #my-posts Section on Profile Home */
html body .site-main #library-home section#my-posts.profile-hub-section,
html body .site-main #library-home.profile-view-overview section#my-posts.profile-hub-section,
html body .site-main #library-home section#my-posts.juf-social-writings-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px 0 0 !important;
  border-radius: 0 !important;
  margin: 4px 0 0 !important;
}

/* 3. Clean Toolbar & Filter Pills Directly Above Standalone Post Cards */
html body .site-main #library-home section#my-posts .juf-writings-head-clean {
  margin: 0 0 10px !important;
  padding: 0 2px !important;
}
html body .site-main #library-home section#my-posts .juf-user-writings-toolbar {
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
html body .site-main #library-home section#my-posts .juf-user-writings-status-pills a {
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
}
html body .site-main #library-home section#my-posts .juf-user-writings-status-pills a[aria-current="page"] {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #FFFFFF !important;
}

/* 4. Standalone Full-Width Post Cards (Each Post Is Its Own Clean Card) */
html body .site-main #library-home section#my-posts .juf-social-feed {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .site-main #library-home section#my-posts .juf-social-post-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 15px 16px !important;
  border-radius: 16px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: 0 4px 14px rgba(40, 46, 55, 0.03) !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  html body .site-main #library-home section#my-posts.profile-hub-section,
  html body .site-main #library-home.profile-view-overview section#my-posts.profile-hub-section,
  html body .site-main #library-home section#my-posts.juf-social-writings-section {
    padding: 2px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  html body .site-main #library-home section#my-posts .juf-social-post-card {
    padding: 14px 13px !important;
    border-radius: 16px !important;
  }
}

/* Dark Mode Parity for Build 395 */
html[data-theme="dark"] body .site-main #library-home section#my-posts.profile-hub-section,
html[data-theme="dark"] body .site-main #library-home.profile-view-overview section#my-posts.profile-hub-section,
html[data-theme="dark"] body .site-main #library-home section#my-posts.juf-social-writings-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-social-post-card {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home section#my-posts .juf-user-writings-status-pills a {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}

/* ============================================================================
   Build 397 — Hide Section/Category Slider Arrow Buttons on Mobile Only
   (`1000168482.jpg`, `1000168480.jpg`)
   Desktop keeps all circular `<` `>` slider controls; mobile (`<= 768px`) uses
   native touch swipe without redundant circular arrow buttons next to "সব বই",
   "সব অডিওবুক", "সব বই দেখুন", and "সব জীবনী দেখুন".
   ============================================================================ */
@media (max-width: 768px) {
  html body .slider-nav-ctrl,
  html body .slider-ctrl-btn,
  html body .juf-book-discovery-nav,
  html body .juf-book-discovery-arrow,
  html body .juf-author-category-nav,
  html body .juf-author-category-nav-btn,
  html body .juf-home-writings-slider-nav,
  html body .author-nav-arrow {
    display: none !important;
  }
}


/* ============================================================================
   BUILD 399 — MODERN WRITING STUDIO & CUSTOM POPOVER CATEGORY PICKER
   (FIXING 1792928819866.jpeg), REMOVE "লাইব্রেরি" FROM PROFILE CARD, AND
   BALANCED DESKTOP MULTI-COLUMN ARRANGEMENT
   ============================================================================ */

@keyframes jufDropdownPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 1. Profile Hero Card — 2 Primary Stats ("শেষ করেছি" & "অনুসরণ", Library Removed) */
html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats {
  display: inline-grid !important;
  grid-template-columns: repeat(2, minmax(96px, auto)) !important;
  gap: 24px !important;
  width: auto !important;
  max-width: 100% !important;
}

/* 2. Modern Custom Dropdown (Replaces Native OS <select> Modal in 1792928819866.jpeg) */
html body .site-main #library-home .juf-modern-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}
html body .site-main #library-home .juf-modern-dropdown-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 7px !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(40, 46, 55, 0.04) !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}
html body .site-main #library-home .juf-modern-dropdown-trigger:hover,
html body .site-main #library-home .juf-modern-dropdown.is-open .juf-modern-dropdown-trigger {
  background: #E4E6EC !important;
  border-color: #D9D6D0 !important;
}
html body .site-main #library-home .juf-modern-dropdown-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #2E7A4F !important;
  flex: 0 0 7px !important;
}
html body .site-main #library-home .juf-modern-dropdown-trigger svg {
  flex: 0 0 14px !important;
  transition: transform 0.18s ease !important;
}
html body .site-main #library-home .juf-modern-dropdown.is-open .juf-modern-dropdown-trigger svg {
  transform: rotate(180deg) !important;
}
html body .site-main #library-home .juf-modern-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 7px) !important;
  right: 0 !important;
  z-index: 95 !important;
  display: none !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 224px !important;
  max-width: min(300px, 88vw) !important;
  padding: 6px !important;
  border-radius: 16px !important;
  background: rgba(236, 234, 230, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: 0 16px 38px rgba(40, 46, 55, 0.16), 0 2px 8px rgba(40, 46, 55, 0.06) !important;
}
html body .site-main #library-home #juf-posts-filter-dropdown .juf-modern-dropdown-menu {
  left: 0 !important;
  right: auto !important;
}
html body .site-main #library-home .juf-modern-dropdown.is-open .juf-modern-dropdown-menu {
  display: flex !important;
  animation: jufDropdownPop 0.16s cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
}
html body .site-main #library-home .juf-modern-dropdown-option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 36px !important;
  padding: 7px 11px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color 0.14s ease !important;
}
html body .site-main #library-home .juf-modern-dropdown-option:hover {
  background: #ECEAE6 !important;
}
html body .site-main #library-home .juf-modern-dropdown-option i {
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #2E7A4F !important;
  opacity: 0 !important;
}
html body .site-main #library-home .juf-modern-dropdown-option.is-selected {
  background: #E4E6EC !important;
  color: #282E37 !important;
  font-weight: 700 !important;
}
html body .site-main #library-home .juf-modern-dropdown-option.is-selected i {
  opacity: 1 !important;
}

/* 3. Modern Interactive Category Chips Bar & Editorial Writing Studio (#my-writings) */
html body .site-main #library-home section#my-writings.profile-hub-section,
html body .site-main #library-home section#my-writings.juf-social-writings-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 4px 0 0 !important;
  overflow: visible !important;
}
html body .site-main #library-home section#my-writings .juf-social-composer {
  position: relative !important;
  padding: 18px 20px !important;
  margin: 0 !important;
  border-radius: 20px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: 0 10px 28px rgba(40, 46, 55, 0.05) !important;
  overflow: visible !important;
}
html body .site-main #library-home .juf-modern-type-chips {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 6px !important;
  padding: 2px 1px 10px !important;
  margin: 0 0 6px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html body .site-main #library-home .juf-modern-type-chips::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
html body .site-main #library-home .juf-modern-type-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
html body .site-main #library-home .juf-modern-type-chip:hover {
  background: #E4E6EC !important;
}
html body .site-main #library-home .juf-modern-type-chip.is-active {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(40, 46, 55, 0.16) !important;
}

/* Unified Seamless Writing Canvas (No Gray Box or Browser Resize Handle!) */
html body .site-main #library-home .juf-social-composer-fields.juf-modern-writing-canvas {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 14px 16px !important;
  margin: 0 0 12px !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: inset 0 1px 2px rgba(40, 46, 55, 0.02) !important;
}
html body .site-main #library-home .juf-modern-writing-canvas .juf-social-composer-title {
  border: 0 !important;
  border-bottom: 1px solid #D9D6D0 !important;
  border-radius: 0 !important;
  padding: 2px 0 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-heading-editorial, "Kalpurush", serif) !important;
  font-size: 18.5px !important;
  font-weight: 700 !important;
  color: #282E37 !important;
  outline: none !important;
}
html body .site-main #library-home .juf-modern-writing-canvas .juf-social-composer-body {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-reading, "SolaimanLipi", serif) !important;
  font-size: 16.5px !important;
  line-height: 1.74 !important;
  color: #282E37 !important;
  resize: none !important;
  min-height: 170px !important;
  outline: none !important;
}
html body .site-main #library-home .juf-modern-writing-canvas .juf-composer-series-details {
  border: 0 !important;
  border-top: 1px dashed #D9D6D0 !important;
  border-radius: 0 !important;
  padding: 10px 0 0 !important;
  margin: 2px 0 0 !important;
  background: transparent !important;
}
html body .site-main #library-home .juf-modern-writing-canvas .juf-composer-series-details > summary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #282E37 !important;
}

/* 4. Desktop View Executive Arrangement (@media (min-width: 900px)) */
@media (min-width: 900px) {
  html body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    padding: 24px 28px 0 !important;
    gap: 14px !important;
  }
  html body .site-main #library-home .juf-ig-hero-top {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    column-gap: 24px !important;
  }
  html body .site-main #library-home .juf-ig-hero-top .profile-avatar-wrap {
    width: 104px !important;
    height: 104px !important;
  }
  html body .site-main #library-home .juf-ig-hero-right h1#profile-hub-title,
  html body .site-main #library-home .juf-ig-hero-right h1 {
    font-size: 26px !important;
  }
  html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats {
    gap: 32px !important;
  }
  html body .site-main #library-home .juf-ig-hero-bio {
    max-width: 720px !important;
  }
  html body .site-main #library-home .juf-ig-hero-actions {
    max-width: 420px !important;
    gap: 10px !important;
  }
  html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar > a {
    flex-direction: row !important;
    gap: 8px !important;
    min-height: 50px !important;
    font-size: 13.8px !important;
  }

  /* 2-Column Balanced Desktop Overview Row: "এখন পড়ছেন" (Left) + "আমার লাইব্রেরি" (Right) */
  html body .site-main #library-home.profile-view-overview .profile-p3-reading-library {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  html body .site-main #library-home.profile-view-overview #continue-reading,
  html body .site-main #library-home.profile-view-overview #bookshelf {
    margin: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  html body .site-main #library-home.profile-view-overview section#my-posts {
    grid-column: 1 / -1 !important;
    margin-top: 6px !important;
  }
  html body .site-main #library-home section#my-posts .juf-user-writings-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  html body .site-main #library-home section#my-posts .juf-user-writings-status-pills {
    flex: 1 1 auto !important;
  }
  html body .site-main #library-home section#my-posts .juf-user-writings-search {
    width: auto !important;
    min-width: 390px !important;
    grid-template-columns: auto minmax(180px, 1fr) auto !important;
  }
  html body .site-main #library-home section#my-posts .juf-social-feed {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  /* Centered Modern Writing Studio on Desktop (?view=writings) */
  html body .site-main #library-home section#my-writings {
    max-width: 860px !important;
    margin: 6px auto 28px !important;
  }
  html body .site-main #library-home .juf-modern-type-chips {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }

  /* 2-Column Grids for Secondary Tabs on Desktop */
  html body .site-main #library-home.profile-view-reading .profile-continue-grid,
  html body .site-main #library-home .profile-review-list-dedicated,
  html body .site-main #library-home .profile-follow-strip.juf-ig-following-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  html body .site-main #library-home .profile-hub-stats.juf-ig-inline-stats {
    grid-template-columns: repeat(2, minmax(84px, auto)) !important;
    gap: 18px !important;
  }
  html body .site-main #library-home section#my-writings .juf-social-composer {
    padding: 14px 13px !important;
    border-radius: 16px !important;
  }
  html body .site-main #library-home .juf-social-composer-fields.juf-modern-writing-canvas {
    padding: 12px 13px !important;
    border-radius: 14px !important;
  }
  html body .site-main #library-home .juf-user-writings-search {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 6px !important;
  }
}

/* Dark Mode Parity for Build 399 Modern Writing Studio & Custom Dropdowns */
html[data-theme="dark"] body .site-main #library-home .juf-modern-dropdown-trigger,
html[data-theme="dark"] body .site-main #library-home .juf-modern-type-chip {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-type-chip.is-active {
  background: #C9D4EC !important;
  border-color: #C9D4EC !important;
  color: #23262B !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-dropdown-menu {
  background: rgba(35, 38, 43, 0.98) !important;
  border-color: #3A3F47 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-dropdown-option {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-dropdown-option:hover {
  background: #2C3037 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-dropdown-option.is-selected {
  background: #2C3037 !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] body .site-main #library-home section#my-writings .juf-social-composer {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-fields.juf-modern-writing-canvas {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-writing-canvas .juf-social-composer-title,
html[data-theme="dark"] body .site-main #library-home .juf-modern-writing-canvas .juf-social-composer-body {
  background: transparent !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-writing-canvas .juf-composer-series-details {
  border-top-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-modern-writing-canvas .juf-composer-series-details > summary {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}


/* ============================================================================
   BUILD 400 — INSTAGRAM-STYLE SWIPEABLE PROFILE DECK & 6-TAB SWIPE BAR
   ("শেষ করেছি, onusoron, review, bookmark, library egual jodi swip kore kore
   pori borton hoi Instagram er moto tahle bes hobe. Arrange jo sei hisebe korte hobe.")
   ============================================================================ */

@keyframes jufSlideFromRight {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes jufSlideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 1. Top Title Row With Reader Name (Left) + Settings Pill Button (Right) */
html body .site-main #library-home .juf-ig-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}
html body .site-main #library-home .juf-ig-settings-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: background-color 0.15s ease !important;
}
html body .site-main #library-home .juf-ig-settings-pill:hover {
  background: #E4E6EC !important;
}

/* 2. 6-Tab Instagram Swipe Bar (সারসংক্ষেপ | লাইব্রেরি | শেষ করেছি | রিভিউ | বুকমার্ক | অনুসরণ) */
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(6, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 2px 0 0 !important;
  margin: 2px 0 0 !important;
}

/* 3. Swipe Deck & Directional Slide Panels */
html body .site-main #library-home .juf-ig-swipe-deck {
  position: relative !important;
  width: 100% !important;
  min-height: 180px !important;
  touch-action: pan-y pinch-zoom !important;
}
html body .site-main #library-home .juf-ig-swipe-panel {
  display: none !important;
  width: 100% !important;
  will-change: transform, opacity !important;
}
html body .site-main #library-home .juf-ig-swipe-panel.is-active {
  display: block !important;
}
html body .site-main #library-home .juf-ig-swipe-panel.is-slide-from-right {
  animation: jufSlideFromRight 0.24s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
html body .site-main #library-home .juf-ig-swipe-panel.is-slide-from-left {
  animation: jufSlideFromLeft 0.24s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* 4. Separate Overview Horizontal Strip vs Dedicated Library Grid */
html body .site-main #library-home .profile-shelf-grid-v25.is-overview-shelf-strip {
  display: flex !important;
  gap: 13px !important;
  padding: 4px 2px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html body .site-main #library-home .profile-shelf-grid-v25.is-overview-shelf-strip::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
html body .site-main #library-home .profile-shelf-grid-v25.is-overview-shelf-strip .profile-shelf-card-v25 {
  flex: 0 0 112px !important;
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html body .site-main #library-home .profile-shelf-grid-v25.is-overview-shelf-strip .profile-shelf-card-v25 > a.profile-library-cover-link,
html body .site-main #library-home .profile-shelf-grid-v25.is-overview-shelf-strip .profile-shelf-card-v25 .juf-profile-cover-76 {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: 168px !important;
  min-height: 168px !important;
  margin: 0 0 7px !important;
  border-radius: 10px !important;
}

html body .site-main #library-home .profile-shelf-grid-v25.is-dedicated-shelf-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 12px !important;
  overflow: visible !important;
}
html body .site-main #library-home .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 11px 12px !important;
  border-radius: 14px !important;
  background: #F6F5F2 !important;
  border: 1px solid #D9D6D0 !important;
  align-items: center !important;
}
html body .site-main #library-home .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 > a.profile-library-cover-link,
html body .site-main #library-home .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 .juf-profile-cover-76 {
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  height: 111px !important;
  min-height: 111px !important;
  margin: 0 !important;
  border-radius: 8px !important;
}

@media (min-width: 900px) {
  html body .site-main #library-home .juf-ig-swipe-panel[data-panel="overview"] .profile-p3-reading-library {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  html body .site-main #library-home .juf-ig-swipe-panel[data-panel="overview"] #continue-reading-overview,
  html body .site-main #library-home .juf-ig-swipe-panel[data-panel="overview"] #bookshelf-overview {
    margin: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  html body .site-main #library-home .juf-ig-swipe-panel[data-panel="overview"] section#my-posts {
    grid-column: 1 / -1 !important;
    margin-top: 6px !important;
  }
  html body .site-main #library-home .juf-ig-swipe-panel[data-panel="reading"] .profile-continue-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !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-height: 48px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 640px) {
  html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a {
    flex-direction: column !important;
    min-height: 44px !important;
    padding: 6px 1px 7px !important;
    gap: 2px !important;
    font-size: 10.2px !important;
  }
  html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a .reader-nav-icon,
  html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs > a .reader-nav-icon svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
  }
  html body .site-main #library-home .profile-shelf-grid-v25.is-dedicated-shelf-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Dark Mode Parity for Build 400 */
html[data-theme="dark"] body .site-main #library-home .juf-ig-settings-pill {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}


/* ============================================================================
   BUILD 401 — MEDIUM.COM & BOOK READER (`read.php`) PARAGRAPH STREAM FOR POSTS
   ("User der lekha post gula reader page book paragraph er moto dekhale extra
   page toiri korte hobe na... Ekdom medium website er moto.")
   ============================================================================ */

/* 1. Continuous Single-Column Medium Reading Stream (No White Cards/Boxes!) */
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: 0 !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .site-main .juf-public-writings-hub .juf-public-writings-grid {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2. Boxless Medium Article Item Separated Only By Subtle Divider Line */
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 {
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 2px !important;
  border: 0 !important;
  border-bottom: 1px solid #D9D6D0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body .site-main #library-home section#my-posts .juf-social-post-card:first-child,
html body .site-main .juf-public-social-profile .juf-social-post-card:first-child,
html body .site-main .juf-public-writings-hub .juf-social-post-card:first-child {
  padding-top: 10px !important;
}

/* Remove white box on single-post view (writings.php?post=ID) as well */
html body .site-main .juf-writing-reader-sheet.juf-fb-post-sheet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 10px 0 28px !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

/* 3. Medium-Style Compact Author Byline & Editorial Headline */
html body .site-main .juf-social-post-card .juf-social-post-head {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html body .site-main .juf-social-post-card .juf-social-MiniAvatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
}
html body .site-main .juf-social-post-card .juf-social-post-title,
html body .site-main #library-home .juf-social-post-card .juf-social-post-title {
  font-family: var(--font-display-literary, "Tiro Bangla", "Kalpurush", "SolaimanLipi", serif) !important;
  font-size: clamp(21px, 2.4vw, 25px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 12px !important;
  color: #282E37 !important;
}
html body .site-main .juf-social-post-card .juf-social-post-title a {
  color: inherit !important;
  text-decoration: none !important;
}
html body .site-main .juf-social-post-card .juf-social-post-title a:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* 4. Book Reader (`read.php`) Paragraph Typography (.juf-medium-book-prose) */
html body .site-main .juf-medium-book-prose,
html body .site-main #library-home .juf-medium-book-prose {
  font-family: var(--font-reading, "SolaimanLipi", serif) !important;
  font-size: 19.5px !important;
  line-height: 1.84 !important;
  color: #282E37 !important;
  max-width: 72ch !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body .site-main .juf-medium-book-prose p.juf-book-paragraph,
html body .site-main #library-home .juf-medium-book-prose p.juf-book-paragraph {
  font-family: var(--font-reading, "SolaimanLipi", serif) !important;
  font-size: 19.5px !important;
  line-height: 1.84 !important;
  font-weight: 400 !important;
  color: #282E37 !important;
  margin: 0 0 0.95em !important;
  padding: 0 !important;
  text-align: left !important;
  overflow-wrap: break-word !important;
}
html body .site-main .juf-medium-book-prose p.juf-book-paragraph:last-child {
  margin-bottom: 0 !important;
}
html body .site-main .juf-medium-book-prose.is-poem-prose p.juf-book-paragraph {
  line-height: 2.0 !important;
  margin: 0 0 1.2em !important;
  padding-left: 14px !important;
  border-left: 2px solid #D9D6D0 !important;
}

/* 5. Seamless Inline Medium Continuation (Unfolds Book Paragraphs In-Place!) */
html body .site-main details.juf-medium-inline-reader {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html body .site-main details.juf-medium-inline-reader[open] {
  display: flex !important;
  flex-direction: column !important;
}
html body .site-main details.juf-medium-inline-reader[open] .juf-medium-more-paragraphs {
  order: 1 !important;
  margin-top: 0 !important;
}
html body .site-main details.juf-medium-inline-reader[open] > summary.juf-medium-expand-btn {
  order: 2 !important;
  margin-top: 6px !important;
}
html body .site-main summary.juf-medium-expand-btn {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  gap: 5px !important;
  padding: 3px 0 !important;
  margin: 0 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: #2E7A4F !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  list-style: none !important;
}
html body .site-main summary.juf-medium-expand-btn::-webkit-details-marker {
  display: none !important;
}
html body .site-main details.juf-medium-inline-reader:not([open]) > summary.juf-medium-expand-btn .when-open {
  display: none !important;
}
html body .site-main details.juf-medium-inline-reader[open] > summary.juf-medium-expand-btn .when-closed {
  display: none !important;
}

/* 6. Minimal Medium Action Bar Below Paragraphs */
html body .site-main .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: 10px !important;
  margin-top: 14px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}
html body .site-main .juf-medium-post-foot .juf-social-post-words,
html body .site-main .juf-medium-post-foot .juf-fb-card-stat {
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 13px !important;
  color: #5B6376 !important;
  text-decoration: none !important;
}
html body .site-main .juf-medium-post-foot .juf-social-read-btn {
  background: transparent !important;
  border: 1px solid #D9D6D0 !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  min-height: 30px !important;
  font-size: 12.2px !important;
  font-weight: 600 !important;
  color: #282E37 !important;
}
html body .site-main .juf-medium-post-foot .juf-social-read-btn:hover {
  background: #ECEAE6 !important;
}

@media (max-width: 640px) {
  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 {
    padding: 20px 0 !important;
  }
  html body .site-main .juf-medium-book-prose,
  html body .site-main .juf-medium-book-prose p.juf-book-paragraph,
  html body .site-main #library-home .juf-medium-book-prose,
  html body .site-main #library-home .juf-medium-book-prose p.juf-book-paragraph {
    font-size: 19px !important;
    line-height: 1.84 !important;
  }
}

/* Dark Mode Parity for Build 401 Medium Book Paragraphs */
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: transparent !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid #3A3F47 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .site-main .juf-writing-reader-sheet.juf-fb-post-sheet {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body .site-main .juf-social-post-card .juf-social-post-title,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card .juf-social-post-title {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-book-prose,
html[data-theme="dark"] body .site-main .juf-medium-book-prose p.juf-book-paragraph,
html[data-theme="dark"] body .site-main #library-home .juf-medium-book-prose,
html[data-theme="dark"] body .site-main #library-home .juf-medium-book-prose p.juf-book-paragraph {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main summary.juf-medium-expand-btn {
  color: #6FCB93 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-post-foot .juf-social-read-btn {
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}


/* ============================================================================
   BUILD 402 — COMPLETE MEDIUM.COM WEBSITE SYSTEM FOR STORIES & ARTICLE READER
   1. Feed Stream (`profile.php`, `member.php`, `writings.php`):
      - Single-line compact Medium Byline (`24px` circular avatar + Author Name
        · Category · Date all on 1 horizontal line!).
      - Bold Medium Story Title + Book Reader (`read.php`) Paragraphs.
      - Minimal Medium Footer Row.
   2. Single Article Reader (`writings.php?post=ID`):
      - Top Reading Progress Rail (`.reader-progress-rail`) like `read.php`.
      - Title-First Medium Article Header (`h1.juf-medium-article-title` at the
        top, followed by `.juf-medium-author-bar` below the title!).
      - Iconic Medium Top Action Toolbar between two thin `1px solid #D9D6D0`
        hairlines (`👏` Clap/React + `💬` Responses on left; `অ-` / `অ+` live
        font-size controls + `🔖` Bookmark + `⋯` Menu on right).
      - Pure Book Reader (`read.php`) Paragraph Canvas (`20px` SolaimanLipi,
        `1.86` line-height, literary drop-cap on opening paragraph).
      - Flat Editorial Medium Responses list (no Facebook gray chat bubbles!).
   ============================================================================ */

/* 1. Compact 1-Line Medium Byline in All Feed Streams */
html body .site-main .juf-social-post-card .juf-social-post-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
html body .site-main .juf-social-post-card .juf-social-post-author {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
}
html body .site-main .juf-social-post-card .juf-social-MiniAvatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  font-size: 15px !important;
}
html body .site-main .juf-social-post-card .juf-social-post-author-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}
html body .site-main .juf-social-post-card .juf-social-post-author-copy > strong,
html body .site-main .juf-social-post-card .juf-social-post-author-copy > strong a {
  display: block !important;
  text-align: left !important;
  font-family: var(--font-heading-editorial, "Kalpurush", "SolaimanLipi", serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #282E37 !important;
  line-height: 1.28 !important;
}
html body .site-main .juf-social-post-card .juf-social-post-submeta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 13px !important;
  color: #5B6376 !important;
  margin: 0 !important;
  text-align: left !important;
}
html body .site-main .juf-social-post-card .juf-social-post-submeta::before {
  content: none !important;
  display: none !important;
}

/* 2. Medium Article Reader (`writings.php?post=ID`) — Title First, Author Below Title */
html body .site-main .juf-medium-reader-hub {
  max-width: 720px !important;
  margin: 18px auto 64px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
}
html body .site-main .juf-medium-article-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html body .site-main .juf-medium-kicker-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}
html body .site-main .juf-medium-category-pill {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 26px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
html body .site-main h1#writing-post-title.juf-medium-article-title {
  font-family: var(--font-display-literary, "Tiro Bangla", "Kalpurush", "SolaimanLipi", serif) !important;
  font-size: clamp(27px, 4.2vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.01em !important;
  color: #282E37 !important;
  margin: 0 !important;
}

/* Medium Author Byline Bar Below Title */
html body .site-main .juf-medium-author-bar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 4px 0 2px !important;
}
html body .site-main .juf-medium-author-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  font-size: 18px !important;
}
html body .site-main .juf-medium-author-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}
html body .site-main .juf-medium-author-topline {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 15px !important;
  color: #282E37 !important;
}
html body .site-main .juf-medium-author-topline strong a {
  color: inherit !important;
  text-decoration: none !important;
}
html body .site-main .juf-medium-follow-link {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2E7A4F !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
html body .site-main .juf-medium-follow-link:hover {
  text-decoration: underline !important;
}
html body .site-main .juf-medium-author-subline {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 13px !important;
  color: #5B6376 !important;
}

/* 3. Iconic Medium Top Hairline Action Toolbar */
html body .site-main .juf-medium-top-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 10px 2px !important;
  margin: 6px 0 4px !important;
  border-top: 1px solid #D9D6D0 !important;
  border-bottom: 1px solid #D9D6D0 !important;
  background: transparent !important;
}
html body .site-main .juf-medium-toolbar-left,
html body .site-main .juf-medium-toolbar-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
}
html body .site-main .juf-medium-clap-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}
html body .site-main .juf-medium-clap-form {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  margin: 0 !important;
}
html body .site-main .juf-medium-tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 32px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  list-style: none !important;
}
html body .site-main .juf-medium-tool-btn::-webkit-details-marker {
  display: none !important;
}
html body .site-main .juf-medium-tool-btn:hover,
html body .site-main .juf-medium-tool-btn.is-active {
  color: #282E37 !important;
  background: rgba(59, 66, 86, 0.06) !important;
}
html body .site-main .juf-medium-react-more {
  border: 0 !important;
  background: transparent !important;
  color: #5B6376 !important;
  font-size: 11px !important;
  padding: 2px 4px !important;
  cursor: pointer !important;
}
html body .site-main .juf-medium-font-controls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 999px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
}
html body .site-main .juf-medium-font-btn {
  min-width: 28px !important;
  height: 24px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #282E37 !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
html body .site-main .juf-medium-font-btn:hover {
  background: #ECEAE6 !important;
}

/* 4. Book Reader (`read.php`) Article Canvas & Literary First-Letter Drop Cap */
html body .site-main .juf-medium-article-canvas {
  max-width: 680px !important;
  font-size: var(--medium-prose-size, 20px) !important;
  line-height: 1.88 !important;
}
html body .site-main .juf-medium-article-canvas p.juf-book-paragraph {
  font-size: var(--medium-prose-size, 20px) !important;
  line-height: 1.88 !important;
  margin: 0 0 1.15em !important;
}
/* 5. Flat Editorial Medium Responses Section (No Gray Facebook Chat Bubbles!) */
html body .site-main .juf-medium-responses-section {
  margin-top: 38px !important;
  padding-top: 26px !important;
  border-top: 1px solid #D9D6D0 !important;
}
html body .site-main .juf-medium-responses-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
}
html body .site-main .juf-medium-responses-head h2 {
  font-family: var(--font-heading-editorial, "Kalpurush", serif) !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #282E37 !important;
}
html body .site-main .juf-medium-response-composer {
  padding: 14px 16px !important;
  margin-bottom: 22px !important;
  border-radius: 14px !important;
  background: #ECEAE6 !important;
  border: 1px solid #D9D6D0 !important;
  box-shadow: 0 4px 14px rgba(40, 46, 55, 0.04) !important;
}
html body .site-main .juf-medium-response-composer-top {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin-bottom: 10px !important;
  font-size: 14px !important;
}
html body .site-main .juf-medium-response-textarea {
  width: 100% !important;
  border: 0 !important;
  padding: 4px 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--font-reading, "SolaimanLipi", serif) !important;
  font-size: 16.5px !important;
  line-height: 1.68 !important;
  color: #282E37 !important;
  resize: none !important;
  outline: none !important;
}
html body .site-main .juf-medium-response-composer-foot {
  display: flex !important;
  justify-content: flex-end !important;
  padding-top: 8px !important;
  border-top: 1px solid #D9D6D0 !important;
}
html body .site-main .juf-medium-response-submit {
  min-height: 34px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: #2E7A4F !important;
  color: #FFFFFF !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}
html body .site-main .juf-medium-response-list {
  display: flex !important;
  flex-direction: column !important;
}
html body .site-main .juf-medium-response-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid #D9D6D0 !important;
  background: transparent !important;
}
html body .site-main .juf-medium-response-byline {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
html body .site-main .juf-medium-response-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
  font-size: 13px !important;
}
html body .site-main .juf-medium-response-meta time {
  font-size: 11.8px !important;
  color: #5B6376 !important;
}
html body .site-main .juf-medium-response-body {
  font-family: var(--font-reading, "SolaimanLipi", serif) !important;
  font-size: 17.5px !important;
  line-height: 1.72 !important;
  color: #282E37 !important;
  padding-left: 0 !important;
}

/* Dark Mode Parity for Build 402 Complete Medium System */
html[data-theme="dark"] body .site-main .juf-social-post-card .juf-social-post-author-copy > strong,
html[data-theme="dark"] body .site-main .juf-social-post-card .juf-social-post-author-copy > strong a,
html[data-theme="dark"] body .site-main h1#writing-post-title.juf-medium-article-title,
html[data-theme="dark"] body .site-main .juf-medium-author-topline,
html[data-theme="dark"] body .site-main .juf-medium-responses-head h2 {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-top-toolbar,
html[data-theme="dark"] body .site-main .juf-medium-responses-section,
html[data-theme="dark"] body .site-main .juf-medium-response-item {
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-tool-btn {
  color: #A09B94 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-tool-btn:hover,
html[data-theme="dark"] body .site-main .juf-medium-tool-btn.is-active {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] body .site-main .juf-medium-font-controls,
html[data-theme="dark"] body .site-main .juf-medium-category-pill {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-font-btn {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-response-composer {
  background: #23262B !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-response-textarea,
html[data-theme="dark"] body .site-main .juf-medium-response-body {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main .juf-medium-response-composer-foot {
  border-top-color: #3A3F47 !important;
}

/* Build 433 — Dark Mode Filter Pills & Sticky Sheet Footer Harmonization */
html[data-theme="dark"] body.juf-minimal-chrome :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields, .juf-books-filter) .juf-select .juf-select-option {
    background: #2C3037 !important;
    border: 1px solid #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :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: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}
html[data-theme="dark"] body.juf-minimal-chrome :is(.juf-control-popover, .juf-author-filter-row, .premium-filter-fields, .audio-filter-fields) .juf-control-actions {
    background: #23262B !important;
    border-top-color: #3A3F47 !important;
}


/* ============================================================================
   BUILD 434 — FIX SQUASHED OVAL AVATAR & MISALIGNED AUTHOR BYLINE IN WRITINGS
   (`1793081029244.jpeg`)
   1. Fixes `.juf-social-post-card .juf-social-MiniAvatar` squashing into a
      `42px × 24px` horizontal oval by overriding `flex: 0 0 40px !important`,
      `width: 40px !important`, `height: 40px !important`, `min-width: 40px !important`,
      `min-height: 40px !important`, `max-width: 40px !important`,
      `max-height: 40px !important`, and `aspect-ratio: 1 / 1 !important`.
   2. Fixes `.juf-social-post-card .juf-social-post-author-copy` centering the
      author name (`জুয়েল`) above a stray leading dot (`· অনুচ্ছেদ ও ভাবনা`) by
      enforcing `display: flex !important; flex-direction: column !important;
      align-items: flex-start !important; justify-content: center !important;
      width: 100% !important; gap: 2px !important; text-align: left !important;`
      and removing `.juf-social-post-submeta::before { content: none !important; display: none !important; }`.
   3. Locks circular avatar aspect ratio and removes link underlines across
      author portfolio boxes, article bylines, and comment rows, and aligns
      `.juf-writing-author-portfolio-box`, `.juf-fb-comments-more-wrap`, and
      `.juf-fb-card-foot` cleanly on mobile screens.
   ============================================================================ */

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 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  flex-wrap: nowrap !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,
html body .site-main .juf-writing-author-portfolio-box .juf-social-post-author {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
}

html body .site-main .juf-social-post-card .juf-social-MiniAvatar,
html body .site-main .juf-social-post-card a.juf-social-MiniAvatar,
html body .site-main #library-home .juf-social-post-card .juf-social-MiniAvatar,
html body .site-main .juf-writing-author-portfolio-box .juf-social-MiniAvatar,
html body .site-main .juf-writing-author-portfolio-box a.juf-social-MiniAvatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  font-size: 15px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-sizing: border-box !important;
}

html body .site-main .juf-social-MiniAvatar,
html body .site-main a.juf-social-MiniAvatar,
html body .site-main .juf-social-MiniAvatar span,
html body .site-main a.juf-social-MiniAvatar span {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

html body .site-main .juf-medium-author-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  flex: 0 0 44px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

html body .site-main .juf-medium-response-byline .juf-social-MiniAvatar,
html body .site-main .juf-fb-comment-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

html body .site-main .juf-social-MiniAvatar img,
html body .site-main .juf-social-post-card .juf-social-MiniAvatar img,
html body .site-main .juf-writing-author-portfolio-box .juf-social-MiniAvatar img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 50% !important;
  display: block !important;
}

html body .site-main .juf-social-post-card .juf-social-post-author-copy,
html body .site-main #library-home .juf-social-post-card .juf-social-post-author-copy,
html body .site-main .juf-writing-author-portfolio-box .juf-social-post-author-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}

html body .site-main .juf-social-post-card .juf-social-post-author-copy > strong,
html body .site-main .juf-social-post-card .juf-social-post-author-copy > strong a,
html body .site-main #library-home .juf-social-post-card .juf-social-post-author-copy > strong,
html body .site-main #library-home .juf-social-post-card .juf-social-post-author-copy > strong a,
html body .site-main .juf-writing-author-portfolio-box .juf-social-post-author-copy > strong,
html body .site-main .juf-writing-author-portfolio-box .juf-social-post-author-copy > strong a {
  display: block !important;
  text-align: left !important;
  font-family: var(--font-heading-editorial, "Kalpurush", "SolaimanLipi", serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.28 !important;
  color: #282E37 !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  margin: 0 !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: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  width: 100% !important;
  font-family: var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  color: #5B6376 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

html body .site-main .juf-social-post-card .juf-social-post-submeta::before,
html body .site-main #library-home .juf-social-post-card .juf-social-post-submeta::before {
  content: none !important;
  display: none !important;
}

html body .site-main .juf-social-post-card .juf-writing-readtime-pill {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

html body .site-main .juf-writing-author-portfolio-box,
html body .site-main .juf-writing-author-portfolio-box.juf-fb-author-footer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid #D9D6D0 !important;
}

html body .site-main .juf-fb-comments-more-wrap {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-top: 0 !important;
  margin-top: 12px !important;
  padding-top: 4px !important;
}

html body .site-main .juf-fb-comments-more-btn,
html body.juf-2d-minimal .juf-fb-comments-more-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  flex: 0 0 auto !important;
  min-height: 36px !important;
  height: auto !important;
  padding: 7px 14px !important;
  gap: 5px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

html body .site-main .juf-social-post-foot.juf-medium-post-foot,
html body .site-main .juf-fb-card-foot {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

html body .site-main .juf-fb-card-foot-stats {
  display: inline-flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

html body .site-main .juf-social-read-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

html[data-theme="dark"] body .site-main .juf-social-post-card .juf-social-post-author-copy > strong,
html[data-theme="dark"] body .site-main .juf-social-post-card .juf-social-post-author-copy > strong a,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card .juf-social-post-author-copy > strong,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card .juf-social-post-author-copy > strong a,
html[data-theme="dark"] body .site-main .juf-writing-author-portfolio-box .juf-social-post-author-copy > strong,
html[data-theme="dark"] body .site-main .juf-writing-author-portfolio-box .juf-social-post-author-copy > strong a {
  color: #ECE8E1 !important;
}

html[data-theme="dark"] body .site-main .juf-social-post-card .juf-social-post-submeta,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card .juf-social-post-submeta {
  color: #A09B94 !important;
}


/* ============================================================================
   BUILD 435 — MEDIUM.COM EDITORIAL PARAGRAPH RHYTHM FOR COMMUNITY WRITINGS
   ============================================================================ */
html body .site-main .juf-medium-book-prose p.juf-book-paragraph,
html body .site-main #library-home .juf-medium-book-prose p.juf-book-paragraph,
html body .site-main .juf-medium-article-canvas p.juf-book-paragraph {
  margin: 0 0 1.22em !important;
}
html body .site-main .juf-medium-book-prose p.juf-book-paragraph:last-child,
html body .site-main #library-home .juf-medium-book-prose p.juf-book-paragraph:last-child,
html body .site-main .juf-medium-article-canvas p.juf-book-paragraph:last-child {
  margin-bottom: 0 !important;
}


/* ============================================================================
   BUILD 436 — FULL-WEBSITE AUDIT POLISH: BENGALI OPENING PARAGRAPH INTEGRITY
   & HOMEPAGE READER WRITINGS SLIDER AVATAR/BYLINE LOCK
   1. Disables `::first-letter { float: left; font-size: 2.75em }` on Bengali
      story prose (`.juf-medium-article-canvas.is-story-prose > p:first-of-type::first-letter`)
      which splits Bengali pre-base vowel matras (`ি`, `ে`, `ৈ`) and conjuncts
      in mobile browsers.
   2. Locks `.juf-home-writing-avatar` on `index.php` to a true `36px × 36px`
      circle (`flex: 0 0 36px !important; aspect-ratio: 1 / 1 !important;`)
      and styles `.juf-home-writing-author-copy` links cleanly.
   ============================================================================ */
html body .site-main .juf-home-writing-author {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

html body .site-main .juf-home-writing-avatar,
html body .site-main a.juf-home-writing-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  flex: 0 0 36px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-sizing: border-box !important;
}

html body .site-main .juf-home-writing-avatar img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
}

html body .site-main .juf-home-writing-author-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  text-align: left !important;
}

html body .site-main .juf-home-writing-author-copy strong,
html body .site-main .juf-home-writing-author-copy strong a {
  display: block !important;
  text-align: left !important;
  color: #282E37 !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  line-height: 1.25 !important;
}

html[data-theme="dark"] body .site-main .juf-home-writing-author-copy strong,
html[data-theme="dark"] body .site-main .juf-home-writing-author-copy strong a {
  color: #ECE8E1 !important;
}


/* ============================================================================
   BUILD 437 — DARK MODE PARITY FOR COMPACT CUSTOM SELECTS & AUTH RECOVERY CARDS
   ============================================================================ */
html[data-theme="dark"] .juf-select.is-compact-dropdown > .juf-select-trigger,
html[data-theme="dark"] .juf-writings-search-bar > .juf-select.is-compact-dropdown > .juf-select-trigger {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-select.is-compact-dropdown > .juf-select-trigger:hover,
html[data-theme="dark"] .juf-select.is-compact-dropdown.is-open > .juf-select-trigger {
  background: #2C3037 !important;
  border-color: #DDE5F5 !important;
}

html[data-theme="dark"] .juf-select.is-compact-dropdown > .juf-select-list:not([hidden]) {
  background: #23262B !important;
  border-color: #3A3F47 !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48) !important;
}

html[data-theme="dark"] .juf-select.is-compact-dropdown > .juf-select-list > .juf-select-option {
  color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-select.is-compact-dropdown > .juf-select-list > .juf-select-option:hover,
html[data-theme="dark"] .juf-select.is-compact-dropdown > .juf-select-list > .juf-select-option:focus-visible {
  background: #2C3037 !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .juf-select.is-compact-dropdown > .juf-select-list > .juf-select-option[aria-selected="true"] {
  background: #C9D4EC !important;
  color: #23262B !important;
}

html[data-theme="dark"] .juf-auth-recovery-card {
  background: #23262B !important;
  border-color: #3A3F47 !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36) !important;
}

html[data-theme="dark"] .juf-auth-recovery-card .page-section-title {
  color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-auth-recovery-copy,
html[data-theme="dark"] .juf-auth-recovery-field label {
  color: #A09B94 !important;
}

html[data-theme="dark"] .juf-auth-recovery-field input {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-auth-recovery-password-wrap .juf-password-toggle {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-auth-recovery-alert.is-success {
  background: #343A44 !important;
  border-color: #6FCB93 !important;
  border-left-color: #6FCB93 !important;
  color: #6FCB93 !important;
}

html[data-theme="dark"] .juf-auth-recovery-alert.is-error {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  border-left-color: #C9D4EC !important;
  color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-auth-recovery-back a {
  color: #C9D4EC !important;
}

html[data-theme="dark"] .juf-social-read-btn.is-submit-action {
  background: #343A44 !important;
  border-color: #C9D4EC !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-file-clear-btn {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}


/* ============================================================================
   BUILD 446 — FINAL DARK MODE & CASCADE GUARANTEE FOR BOOK DETAILS, BIOGRAPHY
   & SITEWIDE NOTICES (`1000169835.jpg` – `1000169843.jpg`)
   ============================================================================ */
html[data-theme="dark"] body.book-system-page .book-details-page .book-details-info > p.juf-details-rating-line,
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-rating-line > span:last-child {
  color: #A09B94 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-rating-line > strong {
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-details-stars,
html[data-theme="dark"] body.book-system-page .book-details-page .book-community-score-stars,
html[data-theme="dark"] body.book-system-page .book-details-page .book-community-empty-stars {
  color: #E0B35C !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .rating-distribution-track > span {
  background: #E0B35C !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input input:checked + label,
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input input:checked ~ label,
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input input:checked + label span[aria-hidden="true"],
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input input:checked ~ label span[aria-hidden="true"],
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input label:hover,
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input label:hover ~ label,
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input label:hover span[aria-hidden="true"],
html[data-theme="dark"] body.book-system-page .book-details-page .reader-star-input label:hover ~ label span[aria-hidden="true"] {
  color: #E0B35C !important;
  -webkit-text-fill-color: #E0B35C !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page details.juf-publication-disclosure,
html[data-theme="dark"] body.book-system-page .book-details-page details.juf-book-publication-card,
html[data-theme="dark"] body.book-system-page .book-details-page details.juf-intro-disclosure,
html[data-theme="dark"] body.book-system-page .book-details-page details.juf-reader-review-form-card,
html[data-theme="dark"] body.book-system-page .book-details-page .book-community-panel {
  background: #2C3037 !important;
  border: 1px solid #3A3F47 !important;
  border-radius: 12px !important;
  color: #ECE8E1 !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-publication-facts > div {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #3A3F47 !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-continue-reading-icon {
  background: #8FA4F2 !important;
  color: #14193A !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .juf-continue-progress i {
  background: #8FA4F2 !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page details.juf-chapter-overflow > summary,
html[data-theme="dark"] body.book-system-page .book-details-page details.juf-chapter-subsections > summary {
  background: #2C3037 !important;
  border: 1px solid #3A3F47 !important;
  color: #C9D4EC !important;
}
html[data-theme="dark"] body.book-system-page .book-details-page .review-existing-notice,
html[data-theme="dark"] :where(.review-existing-notice, .juf-ai-notice) {
  background: #343A44 !important;
  border: 1px solid #3A3F47 !important;
  border-left: 3px solid #C9D4EC !important;
  color: #ECE8E1 !important;
}
.juf-own-review-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--soft, #E4E6EC);
  color: var(--accent, #3B4256);
  border: 1px solid var(--line, #D9D6D0);
}
html[data-theme="dark"] .juf-own-review-badge {
  background: #343A44 !important;
  color: #C9D4EC !important;
  border-color: #3A3F47 !important;
}

html body.book-system-page .container.book-details-page .juf-details-author-avatar > .juf-author-circle-img,
html body .juf-details-author-avatar > .juf-author-circle-img {
  display: block !important;
  width: 128% !important;
  height: 128% !important;
  min-width: 128% !important;
  min-height: 128% !important;
  max-width: none !important;
  max-height: none !important;
  margin: -9.5% 0 0 -14% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: cover !important;
  object-position: center center !important;
}


/* BUILD 444 — SLIM HOMEPAGE INLINE AUDIO BAR DARK MODE */
html[data-theme="dark"] body.juf-homepage .home-audio-inline-player:not([hidden]) {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage .home-audio-inline-player button[data-home-audio-toggle] {
    background: #8FA4F2 !important;
    color: #14193A !important;
}
html[data-theme="dark"] body.juf-homepage .home-audio-inline-player strong[data-home-audio-title] {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage .home-audio-inline-player span[data-home-audio-time] {
    color: #A09B94 !important;
}
html[data-theme="dark"] body.juf-homepage .home-audio-inline-player input.home-audio-seek {
    accent-color: #8FA4F2 !important;
}
html[data-theme="dark"] body.juf-homepage .home-audio-inline-player button[data-home-audio-close] {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}


/* ==========================================================================
   BUILD 448 — DESKTOP TOP HERO LAYOUT ON BOOK DETAILS PAGE (`details.php`)
   Places the Book Cover, Title, Author, Meta Chips, Action Buttons, and Quick
   Stats at the TOP in a unified horizontal Hero section on Desktop (>= 701px)
   above the Tabs (`সারসংক্ষেপ | সূচিপত্র | রিভিউ`), instead of a left sidebar
   (`1793333874506.jpeg` & `1793333908517.jpeg`). Mobile (< 701px) untouched!
   ========================================================================== */
@media (min-width: 701px) {
    html body.book-system-page .container.book-details-page,
    body.book-system-page .container.book-details-page,
    .container.book-details-page {
        max-width: 1020px !important;
        padding: 0 24px !important;
        margin: 24px auto 56px !important;
    }

    html body.book-system-page .container.book-details-page .juf-book-two-col,
    body.book-system-page .book-details-page .juf-book-two-col,
    .container.book-details-page .juf-book-two-col {
        display: block !important;
        width: 100% !important;
    }

    html body.book-system-page .container.book-details-page .juf-book-left-rail,
    body.book-system-page .book-details-page .juf-book-left-rail,
    .container.book-details-page .juf-book-left-rail {
        position: static !important;
        top: auto !important;
        display: grid !important;
        grid-template-columns: 200px minmax(0, 1fr) !important;
        column-gap: 32px !important;
        row-gap: 12px !important;
        align-items: start !important;
        align-content: start !important;
        width: 100% !important;
        padding: 26px 30px !important;
        margin: 0 0 28px !important;
        background: var(--surface, #ECEAE6) !important;
        border: 1px solid var(--line, #D9D6D0) !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
    }

    html[data-theme="dark"] body.book-system-page .container.book-details-page .juf-book-left-rail,
    html[data-theme="dark"] body.book-system-page .book-details-page .juf-book-left-rail,
    html[data-theme="dark"] .container.book-details-page .juf-book-left-rail {
        background: #2C3037 !important;
        border-color: #3A3F47 !important;
    }

    html body.book-system-page .container.book-details-page .book-details-hero,
    body.book-system-page .book-details-page .book-details-hero,
    .container.book-details-page .book-details-hero {
        display: contents !important;
    }

    html body.book-system-page .container.book-details-page .book-details-cover,
    body.book-system-page .book-details-page .book-details-cover,
    .container.book-details-page .book-details-cover {
        grid-column: 1 !important;
        grid-row: 1 / 5 !important;
        width: 200px !important;
        max-width: 200px !important;
        flex: none !important;
        margin: 0 !important;
    }

    html body.book-system-page .container.book-details-page .book-details-info,
    body.book-system-page .book-details-page .book-details-info,
    .container.book-details-page .book-details-info,
    html body.book-system-page .container.book-details-page .juf-details-actions,
    body.book-system-page .book-details-page .juf-details-actions,
    .container.book-details-page .juf-details-actions,
    html body.book-system-page .container.book-details-page .juf-details-flash,
    body.book-system-page .book-details-page .juf-details-flash,
    .container.book-details-page .juf-details-flash,
    html body.book-system-page .container.book-details-page .juf-book-quick-stats,
    body.book-system-page .book-details-page .juf-book-quick-stats,
    .container.book-details-page .juf-book-quick-stats {
        grid-column: 2 !important;
        min-width: 0 !important;
    }

    html body.book-system-page .container.book-details-page .juf-details-book-title,
    body.book-system-page .book-details-page .juf-details-book-title {
        font-size: clamp(26px, 3vw, 32px) !important;
        margin: 0 0 6px !important;
    }

    html body.book-system-page .container.book-details-page .juf-details-actions,
    body.book-system-page .book-details-page .juf-details-actions {
        margin: 4px 0 !important;
    }

    html body.book-system-page .container.book-details-page .juf-book-quick-stats,
    body.book-system-page .book-details-page .juf-book-quick-stats {
        width: 100% !important;
        max-width: 480px !important;
        margin: 4px 0 0 !important;
    }

    html body.book-system-page .container.book-details-page .juf-book-main-col,
    body.book-system-page .book-details-page .juf-book-main-col {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* ==========================================================================
   BUILD 449 — BOOKS PAGE (`books.php`) TOP CATEGORY + 1-LINE GENRE STRIP
   Replaces the bulky `.juf-library-hero` box (`1793337059829.jpeg`) with
   top-positioned Category cards + a sleek 1-line scrollable Genre (`ঘরানা`)
   pill bar right above the search bar.
   ========================================================================== */
.juf-books-page .juf-library-hero {
    display: none !important;
}

.juf-books-page .juf-book-discovery {
    margin-top: 14px !important;
}

.juf-books-page .juf-books-genre-section {
    margin-top: 12px !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
}

.juf-books-page .juf-books-genre-strip {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 1px 4px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.juf-books-page .juf-books-genre-strip::-webkit-scrollbar {
    display: none !important;
}

.juf-books-page .juf-books-genre-pill {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
    color: #282E37 !important;
    font: 600 13.5px/1 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease !important;
}

.juf-books-page .juf-books-genre-pill small {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
    background: rgba(59, 66, 86, 0.11) !important;
    color: #5B6376 !important;
    font: 700 11px/1 var(--font-ui-system, sans-serif) !important;
}

.juf-books-page .juf-books-genre-pill:hover,
.juf-books-page .juf-books-genre-pill:focus-visible {
    background: #E4E6EC !important;
    border-color: #3346A8 !important;
    outline: none !important;
}

body.juf-2d-minimal .juf-books-page .juf-books-genre-pill.is-active,
.juf-books-page .juf-books-genre-pill.is-active {
    background: #3B4256 !important;
    border-color: #3B4256 !important;
    color: #F6F5F2 !important;
}

body.juf-2d-minimal .juf-books-page .juf-books-genre-pill.is-active span,
.juf-books-page .juf-books-genre-pill.is-active span {
    color: #F6F5F2 !important;
}

body.juf-2d-minimal .juf-books-page .juf-books-genre-pill.is-active small,
.juf-books-page .juf-books-genre-pill.is-active small {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #F6F5F2 !important;
}

html[data-theme="dark"] .juf-books-page .juf-books-genre-pill {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-books-page .juf-books-genre-pill span {
    color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-books-page .juf-books-genre-pill small {
    background: rgba(201, 212, 236, 0.14) !important;
    color: #A09B94 !important;
}

html[data-theme="dark"] .juf-books-page .juf-books-genre-pill.is-active {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}

html[data-theme="dark"] .juf-books-page .juf-books-genre-pill.is-active span {
    color: #23262B !important;
}

html[data-theme="dark"] .juf-books-page .juf-books-genre-pill.is-active small {
    background: rgba(35, 38, 43, 0.16) !important;
    color: #23262B !important;
}


/* ==========================================================================
   BUILD 450 — FIX ZERO-RATING OVERFLOW & MERGED RATING CARD (`1000170099.jpg`)
   Fixes `.book-community-score.is-empty` overflowing horizontally off the right
   edge of the card and screen when `$ratingCount === 0`, and merges the empty
   rating prompt cleanly with the interactive star selector.
   ========================================================================== */
body.book-system-page .book-details-page .book-community-panel {
    overflow: hidden !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

body.book-system-page .book-details-page .book-community-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

body.book-system-page .book-details-page .book-community-score.is-empty {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 4px !important;
}

body.book-system-page .book-details-page .book-community-score.is-empty .book-community-empty-stars {
    display: none !important;
}

body.book-system-page .book-details-page .book-community-score.is-empty > strong {
    display: block !important;
    font: 600 16.5px/1.35 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    color: var(--ink, #282E37) !important;
    margin: 0 !important;
}

html[data-theme="dark"] body.book-system-page .book-details-page .book-community-score.is-empty > strong {
    color: #ECE8E1 !important;
}

body.book-system-page .book-details-page .book-community-score.is-empty > span:last-child {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    font: 400 14px/1.55 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    color: var(--muted, #5B6376) !important;
    margin: 0 !important;
}

html[data-theme="dark"] body.book-system-page .book-details-page .book-community-score.is-empty > span:last-child {
    color: #A09B94 !important;
}

body.book-system-page .book-details-page .book-community-panel.is-zero-ratings .book-rating-action {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--line, #D9D6D0) !important;
}

html[data-theme="dark"] body.book-system-page .book-details-page .book-community-panel.is-zero-ratings .book-rating-action {
    border-top-color: #3A3F47 !important;
}

body.book-system-page .book-details-page .book-community-panel.is-zero-ratings .book-rating-action h3.is-merged-empty-heading {
    display: none !important;
}


/* ==========================================================================
   BUILD 451 — GLOBAL PREMIUM BOOK COVER CONSISTENCY & MINIATURE COVER POLISH
   (`1000170110.jpg` — Removes the thick mismatched `border-left: 5px/4px/3px`
   slab that sat outside `<img class="juf-book-cover-image">` on small and
   large covers, restores full-bleed 2:3 cover geometry, and applies a
   proportional Apple-Books-style inner spine crease across all book covers.)
   ========================================================================== */

html body .juf-book-jacket.juf-book-jacket.juf-book-jacket,
html body :where(
    .home-reading-cover,
    .thumb-mini-jacket,
    .showcase-card-item,
    .juf-catalog-cover-link,
    .premium-book-cover,
    .juf-search-book,
    .juf-related-book-cover,
    .book-details-cover,
    .audio-row-cover,
    .audio-cover-sq,
    .audio-cover-poster,
    .audio-new-cover,
    .audio-hub-featured-cover,
    .audio-detail-art,
    .profile-cover-link,
    .profile-library-cover-link,
    .juf-checkout-cover-v32,
    .checkout-mini-cover,
    .person-book,
    .person-book-card,
    .person-book-cover-wrap,
    .juf-ai-cover
) > .juf-book-jacket {
    padding: 0 !important;
    border: 1px solid rgba(40, 46, 55, 0.14) !important;
    border-left-width: 1px !important;
    border-radius: 7px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: none;
}

html[data-theme="dark"] body .juf-book-jacket.juf-book-jacket.juf-book-jacket {
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-left-width: 1px !important;
}

/* Remove legacy dashed inner border or protruding right edge pseudo-element */
html body .juf-book-jacket.juf-book-jacket.juf-book-jacket::before {
    display: none !important;
    content: none !important;
}

/* Proportional inner printed-book spine crease overlaid on the cover artwork */
html body .juf-book-jacket.juf-book-jacket.juf-book-jacket::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 4 !important;
    pointer-events: none !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.28) 0%,
        rgba(20, 24, 32, 0.12) 2.5%,
        rgba(255, 255, 255, 0.20) 4.2%,
        rgba(255, 255, 255, 0) 8.5%
    ) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important;
    opacity: 1 !important;
}

/* Full-bleed edge-to-edge cover image with zero left offset or cropping */
html body .juf-book-jacket.juf-book-jacket .juf-book-cover-image,
html body .juf-book-jacket.juf-book-jacket svg.juf-book-cover-image {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: center center !important;
    z-index: 2 !important;
    display: block !important;
    pointer-events: none !important;
}

/* Compact & Small Book Covers: crisp 5.5px radius, exact 2:3 ratio, balanced shadow */
html body :where(
    .home-reading-cover,
    .thumb-mini-jacket,
    .juf-search-book,
    .audio-row-cover,
    .audio-cover-sq,
    .juf-checkout-cover-v32,
    .checkout-mini-cover,
    .profile-cover-link,
    .profile-library-cover-link,
    .juf-related-book-cover
) > .juf-book-jacket,
html body .juf-book-jacket[class*="juf-profile-cover-"] {
    border-radius: 5.5px !important;
    aspect-ratio: 2 / 3 !important;
    box-shadow:
        0 6px 14px rgba(40, 46, 55, 0.13),
        0 2px 5px rgba(40, 46, 55, 0.08) !important;
}

/* Homepage "পড়া চালিয়ে যান" cover (`1000170110.jpg`): exact 2:3 ratio (46x69px) */
html body.juf-homepage .site-main .home-reading-gateway,
html body.juf-homepage .site-main .home-reading-gateway.has-continue {
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
}

html body.juf-homepage .site-main .home-reading-cover,
html body.juf-homepage .site-main .home-reading-cover > .juf-book-jacket,
html body.juf-homepage .site-main .home-reading-cover > .juf-book-jacket.home-reading-cover-image {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 69px !important;
    min-height: 69px !important;
    max-height: 69px !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: 5.5px !important;
    padding: 0 !important;
    border: 1px solid rgba(40, 46, 55, 0.15) !important;
    border-left-width: 1px !important;
    overflow: hidden !important;
}

html body.juf-homepage .site-main .home-reading-cover .juf-book-cover-image {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    inset: 0 !important;
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: center center !important;
}


/* ==========================================================================
   BUILD 452 — AUDIT FIXES: ZERO COVER SWAP ON PAGE CHANGE/REFRESH & REVIEW META
   1. Ensures `.juf-book-jacket-custom .juf-book-cover-image` is always opacity:1
      and never hidden by `.juf-image-pending`, eliminating the 2-cover swap.
   2. Keeps `.approved-review-meta time` inline on the same row instead of
      wrapping to a separate right-aligned line (`1000170099.jpg`).
   ========================================================================== */
html body .juf-book-jacket-custom > :is(.juf-cover-illustration, .juf-cover-copy) {
    display: none !important;
}

html body .juf-book-jacket-custom .juf-book-cover-image,
html body .juf-book-jacket-custom.juf-image-pending .juf-book-cover-image {
    opacity: 1 !important;
}

html body .juf-book-jacket.juf-image-pending {
    background-image: none !important;
    animation: none !important;
}

body.book-system-page .book-details-page .approved-review-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
}

body.book-system-page .book-details-page .approved-review-meta time {
    margin-left: 0 !important;
    font-size: 12.5px !important;
    color: var(--muted, #5B6376) !important;
}

body.book-system-page .book-details-page .approved-review-meta time::before {
    content: "· ";
}

/* ==========================================================================
   BUILD 454 — BALANCED SCROLL PERFORMANCE & PREMIUM VISUAL QUALITY
   - Preserves rich book cover depth shadows, hero ambient lighting, and
     cover artwork while releasing idle GPU `will-change` memory on long lists.
   ========================================================================== */
html body .juf-book-jacket.juf-book-jacket.juf-book-jacket,
html body :where(
    .home-reading-cover,
    .thumb-mini-jacket,
    .showcase-card-item,
    .juf-catalog-cover-link,
    .premium-book-cover,
    .juf-search-book,
    .juf-related-book-cover,
    .book-details-cover,
    .audio-row-cover,
    .audio-cover-sq,
    .audio-cover-poster,
    .audio-new-cover,
    .audio-hub-featured-cover,
    .audio-detail-art,
    .profile-cover-link,
    .profile-library-cover-link,
    .juf-checkout-cover-v32,
    .checkout-mini-cover,
    .person-book,
    .person-book-card,
    .person-book-cover-wrap,
    .juf-ai-cover
) > .juf-book-jacket {
    transform: none !important;
    will-change: auto !important;
    box-shadow:
        0 10px 24px rgba(40, 46, 55, 0.13),
        0 2px 6px rgba(40, 46, 55, 0.08) !important;
}

html body :where(
    .showcase-card-item,
    .juf-catalog-book-card,
    .premium-book-card,
    .pastel-card,
    .audio-pill-card,
    .anim-card,
    .juf-ig-swipe-panel
) {
    will-change: auto !important;
}


/* ==========================================================================
   BUILD 458 — EXACT GEOMETRIC CENTERING FOR CIRCULAR PLAY (▶) & CLOSE (×) BUTTONS
   Prevents font-baseline descender/ascender metrics from pushing ▶ or × off-center.
   ========================================================================== */
html body :is(
    .audio-play-circle,
    .audio-open-circle,
    .audio-inline-play,
    .audio-new-play,
    .juf-main-play,
    .reader-audio-play,
    .home-audio-inline-player button[data-home-audio-toggle],
    .home-audio-inline-player button[data-home-audio-close],
    #reader-settings-close,
    #reader-toc-close,
    #reader-annotations-close
) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

html body .audio-play-circle > span,
html body .audio-inline-play > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .audio-play-circle svg,
html body .home-audio-inline-player button[data-home-audio-toggle] svg,
html body .home-audio-inline-player button[data-home-audio-close] svg,
html body #reader-settings-close svg,
html body #reader-toc-close svg,
html body #reader-annotations-close svg {
    display: block !important;
    margin: auto !important;
    flex-shrink: 0 !important;
}


/* ==========================================================================
   BUILD 459 — SITEWIDE READABILITY & CONTRAST COMPLETION LAYER
   Fixes every remaining dark-mode and light-mode text readability issue:
   1. Account Settings (`account.php` / `.juf-clean-settings-shell`) dark mode
   2. Profile (`profile.php` / `member.php`) following cards, pills & stats dark mode
   3. Community Writings (`writings.php`) Medium sublines, reaction buttons & comments
   4. Books Library (`books.php`) card titles, authors & footers in dark mode
   5. Homepage (`index.php`) category card overlay legibility & author discovery text
   6. Auth (`login.php`), Search suggestions & global active button contrast
   ========================================================================== */

/* 1. Account Settings (`account.php`) Dark Mode Text & Surface Parity */
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-account-intro h1,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-account-panel-title,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-form label,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-checkbox-row span,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-accordion > summary,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-account-quick-item strong {
    color: #ECE8E1 !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-account-intro p,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-meta-note,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-form small,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-accordion-body p,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-account-quick-item small {
    color: #A09B94 !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-pill-link,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-secondary-btn,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .account-profile-nav > a {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .account-profile-nav > a[aria-current="page"],
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .account-profile-nav > a.is-active {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-primary-btn {
    background: #8FA4F2 !important;
    border-color: #8FA4F2 !important;
    color: #14193A !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-inline-password-action input {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-email-badge.is-verified {
    background: rgba(111, 203, 147, 0.16) !important;
    border-color: rgba(111, 203, 147, 0.36) !important;
    color: #6FCB93 !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-email-badge.is-unverified {
    background: rgba(224, 179, 92, 0.16) !important;
    border-color: rgba(224, 179, 92, 0.36) !important;
    color: #E0B35C !important;
}

html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-accordion.is-danger-accordion > summary,
html[data-theme="dark"] body .site-main .juf-clean-settings-shell .juf-settings-danger-btn {
    color: #F0907F !important;
    border-color: rgba(240, 144, 127, 0.4) !important;
}

/* 2. Profile (`profile.php` & `member.php`) Secondary Tabs, Following List & Pills */
html[data-theme="dark"] body .site-main #library-home .juf-ig-follow-copy h3,
html[data-theme="dark"] body .site-main #library-home .juf-ig-follow-copy h3 a,
html[data-theme="dark"] body .site-main #library-home .profile-shelf-card-v25 h3,
html[data-theme="dark"] body .site-main #library-home .profile-shelf-card-v25 h3 a,
html[data-theme="dark"] body .site-main #library-home .profile-continue-copy h3,
html[data-theme="dark"] body .site-main #library-home .profile-continue-copy h3 a {
    color: #ECE8E1 !important;
}

html[data-theme="dark"] body .site-main #library-home .juf-ig-follow-copy p,
html[data-theme="dark"] body .site-main #library-home .profile-shelf-card-v25 p,
html[data-theme="dark"] body .site-main #library-home .profile-continue-copy p,
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-hint {
    color: #A09B94 !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-public-link-pill,
html[data-theme="dark"] body .site-main #library-home .juf-reading-state-pills a,
html[data-theme="dark"] body .site-main #library-home .juf-post-count-pill,
html[data-theme="dark"] body .site-main #library-home .juf-feed-pill-link,
html[data-theme="dark"] body .site-main #library-home .profile-inline-actions a,
html[data-theme="dark"] body .site-main #library-home .profile-inline-actions button,
html[data-theme="dark"] body .site-main #library-home .juf-ig-unfollow-form button {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

html[data-theme="dark"] body .site-main #library-home .juf-reading-state-pills a.is-active,
html[data-theme="dark"] body .site-main #library-home .juf-reading-state-pills a[aria-current="page"] {
    background: #C9D4EC !important;
    border-color: #C9D4EC !important;
    color: #23262B !important;
}

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 {
    color: #C9D4EC !important;
}

/* 3. Community Writings (`writings.php`) & Social Feed Dark Mode Readability */
html[data-theme="dark"] body .site-main .juf-medium-author-subline,
html[data-theme="dark"] body .site-main .juf-medium-react-more,
html[data-theme="dark"] body .site-main .juf-medium-response-meta time,
html[data-theme="dark"] body .site-main .juf-medium-post-foot .juf-social-post-words {
    color: #A09B94 !important;
}

html[data-theme="dark"] body.juf-2d-minimal .juf-fb-action-btn,
html[data-theme="dark"] body.juf-2d-minimal a.juf-fb-action-btn,
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-dock-btn,
html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comments-more-btn {
    color: #ECE8E1 !important;
}

html[data-theme="dark"] body.juf-2d-minimal .juf-fb-comment-pill-wrap textarea.juf-fb-comment-textarea {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

/* 4. Books Library (`books.php`) Catalogue Card Dark Mode Readability */
html[data-theme="dark"] .juf-books-page .juf-catalog-book-meta h3 a,
html[data-theme="dark"] .juf-catalog-book-meta h3 a {
    color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-books-page .juf-catalog-book-meta h3 a:hover,
html[data-theme="dark"] .juf-catalog-book-meta h3 a:hover,
html[data-theme="dark"] .juf-books-page .juf-catalog-card-foot a,
html[data-theme="dark"] .juf-catalog-card-foot a {
    color: #C9D4EC !important;
}

html[data-theme="dark"] .juf-books-page .juf-catalog-author,
html[data-theme="dark"] .juf-catalog-author,
html[data-theme="dark"] .juf-books-page .juf-catalog-card-foot,
html[data-theme="dark"] .juf-books-page .juf-catalog-card-foot span,
html[data-theme="dark"] .juf-catalog-card-foot,
html[data-theme="dark"] .juf-books-page .juf-catalog-heading > p {
    color: #A09B94 !important;
}

html[data-theme="dark"] .juf-books-page .juf-catalog-badges span,
html[data-theme="dark"] .juf-catalog-badges span {
    background: #343A44 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}

/* 5. Homepage (`index.php`) Category Scrim & Author Discovery Card Contrast */
html[data-theme="dark"] body.juf-homepage #genres .home-book-category-card .genre-graphic-copy h4 {
    color: #FFFFFF !important;
}
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 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.juf-homepage .hero-slide-author,
html[data-theme="dark"] body.juf-homepage .thumb-mini-jacket .juf-cover-name {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-homepage .hero-slide-desc,
html[data-theme="dark"] body.juf-homepage :where(#showcase, .home-new-releases) .book-under-author,
html[data-theme="dark"] body.juf-homepage .home-reading-gateway-copy p,
html[data-theme="dark"] body.juf-homepage .home-reading-gateway-kicker {
    color: #A09B94 !important;
}
html[data-theme="dark"] body.juf-homepage :where(#showcase, .home-new-releases) .book-rating-gold {
    color: #E0B35C !important;
}

/* 6. Auth (`login.php`), Search Suggestions & Secondary Buttons in Dark Mode */
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-heading-v27 h2,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-heading-v27 h1,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-password-wrap-v27 .juf-password-toggle,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-row-v27 a,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-socials-v31 :where(button, a),
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-legal-v27 a,
html[data-theme="dark"] body.juf-reader-auth-page .reader-auth-switch-v27 a {
    color: #ECE8E1 !important;
}

html[data-theme="dark"] .juf-search-suggestion-copy strong,
html[data-theme="dark"] .juf-search-suggestion-all {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] .juf-search-suggestion-copy small,
html[data-theme="dark"] .juf-search-suggestion-group-title,
html[data-theme="dark"] .juf-search-suggestion-arrow {
    color: #A09B94 !important;
}
html[data-theme="dark"] .juf-search-suggestion-copy em {
    color: #C9D4EC !important;
}

html[data-theme="dark"] body.juf-2d-minimal :where(.btn-secondary, .secondary-btn, .cta-secondary, .juf-secondary-btn, .outline-btn) {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body.juf-2d-minimal :where(.btn-secondary, .secondary-btn, .cta-secondary, .juf-secondary-btn, .outline-btn):hover {
    background: #343A44 !important;
    border-color: #C9D4EC !important;
    color: #ECE8E1 !important;
}

/* Homepage Category Scrim & Author Discovery Subtitle Legibility */
html body.juf-homepage #genres .home-book-category-card .genre-graphic-copy {
    background: linear-gradient(
        180deg,
        rgba(24, 28, 36, 0) 0%,
        rgba(24, 28, 36, 0.18) 32%,
        rgba(24, 28, 36, 0.64) 68%,
        rgba(24, 28, 36, 0.88) 100%
    ) !important;
}
html body :is(.juf-homepage, .authors-page) .home-author-discovery-kicker {
    font-size: 10px !important;
    color: var(--accent, #3B4256) !important;
}
html[data-theme="dark"] body :is(.juf-homepage, .authors-page) .home-author-discovery-kicker {
    color: #C9D4EC !important;
}
html body :is(.juf-homepage, .authors-page) .home-author-discovery-card .home-author-discovery-copy p {
    font-size: 11.2px !important;
    color: var(--muted, #5B6376) !important;
}
html[data-theme="dark"] body :is(.juf-homepage, .authors-page) .home-author-discovery-card .home-author-discovery-copy p {
    color: #A09B94 !important;
}


/* ==========================================================================
   Prompt 1 Step 3C — Authoritative Public Search & Form-Field Block (Build 528)
   (Fixes double/triple border on wrapped search pills & Newsletter Subscribe pill)
   ========================================================================== */

/* A. Outer Search Pill / Box & Wrapped Input Containers own the single 1.5px border & card surface */
body:not(.admin-shell-body) :is(
    #juf-global-search-form,
    .juf-global-search-v40,
    .juf-control-search,
    .juf-books-search,
    .juf-author-directory-search,
    .audio-library-search,
    .premium-search-field,
    .juf-writings-search-bar,
    .juf-universal-search,
    .newsletter-luxury-pill .pill-input-wrap,
    .pill-input-wrap,
    .reader-auth-input-wrap-v31,
    .juf-auth-recovery-password-wrap,
    .juf-toc-search
) {
    background-color: var(--card) !important;
    color: var(--ink) !important;
    border: 1.5px solid var(--border-input) !important;
    outline: none !important;
    box-shadow: none !important;
}

body:not(.admin-shell-body) :is(
    #juf-global-search-form,
    .juf-global-search-v40,
    .juf-control-search,
    .juf-books-search,
    .juf-author-directory-search,
    .audio-library-search,
    .premium-search-field,
    .juf-writings-search-bar,
    .juf-universal-search,
    .newsletter-luxury-pill .pill-input-wrap,
    .pill-input-wrap,
    .reader-auth-input-wrap-v31,
    .juf-auth-recovery-password-wrap,
    .juf-toc-search
):focus-within {
    border-color: var(--focus) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* B. Inner <input> inside a wrapped search or pill container must NEVER draw a second border or outline */
body:not(.admin-shell-body) :is(
    #juf-global-search-input,
    .juf-global-search-v40 input,
    .juf-control-search input,
    #juf-books-live-search-input,
    #juf-author-live-search-input,
    #juf-audio-live-search-input,
    .juf-books-search input,
    .juf-author-directory-search input,
    .audio-library-search input,
    .premium-search-field input,
    .juf-writings-search-bar input,
    .juf-universal-search input,
    #newsletter-email,
    .newsletter-luxury-input,
    .pill-input-wrap input,
    .reader-auth-input-wrap-v31 input,
    .juf-auth-recovery-password-wrap input,
    .juf-toc-search input,
    #chapter-search,
    .juf-modern-writing-canvas #writing-title-input,
    #juf-ex-q,
    .juf-ex-search-box input,
    #jp-q,
    .jp-srch input
),
body:not(.admin-shell-body) :is(
    #juf-global-search-input,
    .juf-global-search-v40 input,
    .juf-control-search input,
    #juf-books-live-search-input,
    #juf-author-live-search-input,
    #juf-audio-live-search-input,
    .juf-books-search input,
    .juf-author-directory-search input,
    .audio-library-search input,
    .premium-search-field input,
    .juf-writings-search-bar input,
    .juf-universal-search input,
    #newsletter-email,
    .newsletter-luxury-input,
    .pill-input-wrap input,
    .reader-auth-input-wrap-v31 input,
    .juf-auth-recovery-password-wrap input,
    .juf-toc-search input,
    #chapter-search,
    .juf-modern-writing-canvas #writing-title-input,
    #juf-ex-q,
    .juf-ex-search-box input
):is(:hover, :focus, :focus-visible) {
    background: transparent !important;
    color: var(--ink) !important;
    border: 0 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    caret-color: var(--cta) !important;
}

/* C. Standalone search & form inputs (not inside a composite search or pill wrapper) */
body:not(.admin-shell-body):not(.reader-page) :is(
    input[type="search"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    #shelf-search,
    select,
    textarea
):not(#juf-global-search-input):not(#juf-books-live-search-input):not(#juf-author-live-search-input):not(#juf-audio-live-search-input):not(#newsletter-email):not(.newsletter-luxury-input):not(#chapter-search):not(#writing-title-input):not(#writing-content-input):not(.juf-global-search-v40 input):not(.juf-control-search input):not(.juf-books-search input):not(.juf-author-directory-search input):not(.audio-library-search input):not(.premium-search-field input):not(.juf-writings-search-bar input):not(.juf-universal-search input):not(.pill-input-wrap input):not(.reader-auth-input-wrap-v31 input):not(.juf-auth-recovery-password-wrap input):not(.juf-toc-search input):not(#juf-ex-q):not(.juf-ex-search-box input):not(#jp-q):not(.jp-srch input):not(#juf-app-write-heading):not(#juf-app-write-body) {
    background-color: var(--card) !important;
    color: var(--ink) !important;
    border: 1.5px solid var(--border-input) !important;
    outline: none !important;
    box-shadow: none !important;
    caret-color: var(--cta) !important;
}

body:not(.admin-shell-body):not(.reader-page) :is(
    input[type="search"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    #shelf-search,
    select,
    textarea
):not(#juf-global-search-input):not(#juf-books-live-search-input):not(#juf-author-live-search-input):not(#juf-audio-live-search-input):not(#newsletter-email):not(.newsletter-luxury-input):not(#chapter-search):not(#writing-title-input):not(#writing-content-input):not(.juf-global-search-v40 input):not(.juf-control-search input):not(.juf-books-search input):not(.juf-author-directory-search input):not(.audio-library-search input):not(.premium-search-field input):not(.juf-writings-search-bar input):not(.juf-universal-search input):not(.pill-input-wrap input):not(.reader-auth-input-wrap-v31 input):not(.juf-auth-recovery-password-wrap input):not(.juf-toc-search input):not(#juf-ex-q):not(.juf-ex-search-box input):not(#jp-q):not(.jp-srch input):not(#juf-app-write-heading):not(#juf-app-write-body):is(:focus, :focus-visible) {
    border-color: var(--focus) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* D. Solid Placeholder across all public inputs */
body:not(.admin-shell-body) :is(input, textarea)::placeholder {
    color: var(--muted) !important;
    opacity: 1 !important;
}

/* E. Browser autofill (Chrome / Edge / Safari) */
body:not(.admin-shell-body) :is(
    input[type="search"],
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea,
    select
):is(:-webkit-autofill, :-webkit-autofill:hover, :-webkit-autofill:focus) {
    -webkit-text-fill-color: var(--ink) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--card) inset !important;
    box-shadow: 0 0 0 1000px var(--card) inset !important;
    caret-color: var(--cta) !important;
    transition: background-color 9999s ease-out 0s;
}

/* Native WebKit search cancel / decoration */
body:not(.admin-shell-body) input[type="search"] {
    color-scheme: light;
}
html[data-theme="dark"] body:not(.admin-shell-body) input[type="search"],
body.dark-mode:not(.admin-shell-body) input[type="search"] {
    color-scheme: dark;
}
body:not(.admin-shell-body) :is(.juf-control-search, .juf-global-search-v40) input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* Search icon inside the field */
body:not(.admin-shell-body) :is(
    .juf-global-search-v40 > svg,
    .juf-control-search > svg.juf-control-search-icon,
    .juf-universal-search > svg,
    .juf-books-search > svg
) {
    color: var(--muted) !important;
    stroke: currentColor !important;
}
body:not(.admin-shell-body) :is(
    .juf-global-search-v40:focus-within > svg,
    .juf-control-search:focus-within > svg.juf-control-search-icon,
    .juf-universal-search:focus-within > svg,
    .juf-books-search:focus-within > svg
) {
    color: var(--ink) !important;
}

/* Clear / reset (×) button inside the field */
body:not(.admin-shell-body) :is(.juf-search-clear, .juf-control-search-clear) {
    color: var(--muted) !important;
    background: transparent !important;
}
body:not(.admin-shell-body) :is(.juf-search-clear, .juf-control-search-clear):hover {
    color: var(--ink) !important;
    background: var(--soft) !important;
}

/* Submit button inside search box: clean neutral accent so it never fights with active tabs */
body:not(.admin-shell-body) :is(
    .juf-global-search-v40 > button[type="submit"],
    .juf-control-search .juf-control-search-submit
) {
    background: var(--accent) !important;
    color: var(--on-accent) !important;
    border: 0 !important;
}
body:not(.admin-shell-body) :is(
    .juf-global-search-v40 > button[type="submit"],
    .juf-control-search .juf-control-search-submit
):hover {
    background: var(--accent-hover) !important;
}

/* Mobile header search toggle button & drawer */
body:not(.admin-shell-body) .juf-search-toggle-v24 {
    background: var(--surface) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
}
body:not(.admin-shell-body) .juf-search-toggle-v24:is(:hover, [aria-expanded="true"]) {
    background: var(--soft) !important;
    color: var(--ink) !important;
}

/* Live suggestion / autocomplete dropdown (api/search_suggest.php) */
body:not(.admin-shell-body) :is(.juf-search-suggestions, .juf-author-search-suggestions) {
    background: var(--card) !important;
    color: var(--ink) !important;
    border: 1px solid var(--line) !important;
}
body:not(.admin-shell-body) :is(.juf-search-suggestion, .juf-search-suggestion-all) {
    color: var(--ink) !important;
}
body:not(.admin-shell-body) :is(.juf-search-suggestion, .juf-search-suggestion-all) :is(.meta, .sub, small, .juf-search-suggestion-group-title, .juf-search-suggestion-arrow) {
    color: var(--muted) !important;
}
body:not(.admin-shell-body) :is(.juf-search-suggestion, .juf-search-suggestion-all):is(:hover, [aria-selected="true"], .is-active) {
    background: var(--soft) !important;
    color: var(--ink) !important;
}
body:not(.admin-shell-body) .juf-search-suggestion :is(mark, .match) {
    background: var(--gold-soft) !important;
    color: var(--ink) !important;
}
body:not(.admin-shell-body) .juf-search-suggestion em {
    background: transparent !important;
    color: var(--muted, #5B6376) !important;
    padding: 0 !important;
}


/* ==========================================================================
   BUILD 527 — UNIFIED DARK MODE PROSE & TYPOGRAPHY CONTRAST HARMONIZATION
   Matches all long-form reading surfaces in Dark Mode to the exact comfortable
   eye-friendly contrast of read.php (1000170677.jpg & 1000170675.jpg):
   1. Headings & Titles (h1, h2, h3, h4): Crisp Warm Ivory (#ECE8E1, opacity: 1)
   2. Long-Form Reading Prose (read.php, author.php biography, details.php
      book summary, writings.php story prose): Soft Eye-Rest Pearl
      (color-mix(in srgb, #ECE8E1 80%, #23262B), opacity: 1) — never glaring
      white (#EAEAEA) and never dim grey (#7C7D7E)!
   3. Inline Emphasized / Glossary Terms inside Dark Prose (strong, b,
      .person-word-link, .reader-glossary-term): Soft Periwinkle (#C9D4EC)
      matching 1000170675.jpg.
   4. Supporting Metadata (small, .meta, dates, counts): Solid #A09B94 with
      opacity: 1 (never double-dimmed by opacity).
   ========================================================================== */

/* 1. Reader Page (read.php) Dark Mode — Lock exact comfortable prose & inline emphasis */
html[data-theme="dark"] body.reader-page:not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]):not([data-reader-theme="pdf"]) #reader-content-body,
html[data-theme="dark"] body.reader-page:not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]):not([data-reader-theme="pdf"]) #reader-content-body :is(p, li, dd),
body.reader-page[data-reader-theme="dark"] #reader-content-body,
body.reader-page[data-reader-theme="dark"] #reader-content-body :is(p, li, dd) {
    color: color-mix(in srgb, #ECE8E1 80%, #23262B) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.reader-page:not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]):not([data-reader-theme="pdf"]) #reader-content-body :is(h1, h2, h3, h4, .reader-tpl-h2),
body.reader-page[data-reader-theme="dark"] #reader-content-body :is(h1, h2, h3, h4, .reader-tpl-h2),
html[data-theme="dark"] body.reader-page:not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]):not([data-reader-theme="pdf"]) .reader-chapter-head h1,
body.reader-page[data-reader-theme="dark"] .reader-chapter-head h1 {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.reader-page:not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]):not([data-reader-theme="pdf"]) #reader-content-body :is(p, li) :is(strong, b, .reader-glossary-term),
body.reader-page[data-reader-theme="dark"] #reader-content-body :is(p, li) :is(strong, b, .reader-glossary-term) {
    color: #C9D4EC !important;
    opacity: 1 !important;
}

/* Fix mobile bottom nav 'পরের →' arrow color in Dark Mode (1000170677.jpg bottom right) */
html[data-theme="dark"] body.reader-page:not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]):not([data-reader-theme="pdf"]) .reader-mobile-nav .reader-mnav-next:not(.is-disabled),
html[data-theme="dark"] body.reader-page:not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]):not([data-reader-theme="pdf"]) .reader-mobile-nav .reader-mnav-next:not(.is-disabled) :is(span, small, svg),
body.reader-page[data-reader-theme="dark"] .reader-mobile-nav .reader-mnav-next:not(.is-disabled),
body.reader-page[data-reader-theme="dark"] .reader-mobile-nav .reader-mnav-next:not(.is-disabled) :is(span, small, svg) {
    color: #23262B !important;
    opacity: 1 !important;
}

/* 2. Biography Page (author.php — 1000170673.jpg): Fix dim #7C7D7E paragraphs -> match Reader Page prose! */
html[data-theme="dark"] body.person-profile-page .juf-person :is(
    .person-prose,
    .person-prose p,
    .person-prose li,
    .person-short-intro p,
    .person-biography-section-body,
    .person-biography-section-body p,
    .person-biography-section-body li,
    .person-intro,
    .person-overview-copy,
    .person-work-copy,
    .person-timeline p,
    .person-timeline-copy,
    .person-section-summary
) {
    color: color-mix(in srgb, #ECE8E1 80%, #23262B) !important;
    opacity: 1 !important;
}

/* Inline glossary word links & bold terms inside biography prose match Reader Page (#C9D4EC) */
html[data-theme="dark"] body.person-profile-page .juf-person :is(
    .person-word-link,
    .person-prose p strong,
    .person-prose li strong,
    .person-short-intro p strong,
    .person-timeline p strong
) {
    color: #C9D4EC !important;
    border-bottom-color: #C9D4EC !important;
    opacity: 1 !important;
}

/* Biography headings stay crisp #ECE8E1 */
html[data-theme="dark"] body.person-profile-page .juf-person :is(
    h1, h2, h3, h4,
    .person-name,
    .person-biography-section-title,
    .person-event-title,
    .person-timeline-title,
    .person-work-title,
    .person-book-title,
    .person-fact-value,
    .person-intro-label
) {
    color: #ECE8E1 !important;
    opacity: 1 !important;
}

/* Biography supporting metadata stays solid #A09B94 (never dimmed by opacity) */
html[data-theme="dark"] body.person-profile-page .juf-person :is(
    dt, small,
    .person-english,
    .person-kicker,
    .person-meta,
    .person-section-note,
    .person-source-refs,
    .person-book-meta,
    .person-follower-count
) {
    color: #A09B94 !important;
    opacity: 1 !important;
}

/* 3. Book Details Page (details.php — 1000170674.jpg & 1000170676.jpg):
      Tone down glaring #EAEAEA summary prose to match Reader Page prose! */
html[data-theme="dark"] body.book-system-page :is(
    .juf-summary-content,
    .juf-summary-content p,
    .juf-summary-content li,
    .juf-summary-content blockquote,
    .juf-rich-public-content,
    .juf-rich-public-content p,
    .juf-rich-public-content li,
    .juf-rich-public-content blockquote,
    .juf-details-description,
    .juf-details-description p,
    .approved-review-card p,
    .reader-review-text
) {
    color: color-mix(in srgb, #ECE8E1 80%, #23262B) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.book-system-page :is(
    .juf-summary-content,
    .juf-rich-public-content,
    .juf-details-description
) :is(p, li) :is(strong, b) {
    color: #C9D4EC !important;
    opacity: 1 !important;
}

/* 4. Reader Writings & Community Stories (writings.php & profile.php — 1000170679.jpg):
      Tone down glaring #E8E8E9 story prose to match Reader Page prose! */
html[data-theme="dark"] body :is(
    .juf-writing-reader-prose,
    .juf-writing-reader-prose p,
    .juf-writing-reader-prose li,
    .juf-writing-reader-prose blockquote,
    .juf-writing-reader-prose.is-poem-prose,
    .juf-writing-reader-prose.is-poem-prose p,
    .juf-medium-book-prose,
    .juf-medium-book-prose p,
    .juf-medium-book-prose p.juf-book-paragraph,
    .juf-medium-article-canvas,
    .juf-medium-article-canvas p,
    .juf-medium-article-canvas p.juf-book-paragraph,
    .juf-social-post-body p
) {
    color: color-mix(in srgb, #ECE8E1 80%, #23262B) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body :is(
    .juf-writing-reader-prose,
    .juf-medium-book-prose,
    .juf-medium-article-canvas
) :is(p, li) :is(strong, b) {
    color: #C9D4EC !important;
    opacity: 1 !important;
}

/* Keep writing author/date metadata solid #A09B94 with opacity 1 (never crushed by opacity) */
html[data-theme="dark"] body :is(
    .juf-writing-reader-author-bar small,
    .juf-writing-reader-author-bar .juf-social-post-submeta,
    .juf-social-post-submeta,
    .juf-social-post-submeta span
) {
    color: #A09B94 !important;
    opacity: 1 !important;
}

/* ============================================================================
   Build 537 — Clean Website Portrait Display + Dress-Only Watermarked Share /
   Download / Copy Overlay Layer
   ============================================================================ */
.person-portrait,
.person-related-avatar,
.juf-author-hero-portrait-card,
.juf-author-directory-avatar,
.author-circle-disc,
.juf-details-author-avatar,
.reader-identity-avatar,
.profile-author-avatar,
.juf-search-author-avatar,
.audio-row-author-avatar,
.audio-hub-featured-author > span:first-child {
    position: relative !important;
}

html body img.juf-portrait-clean-layer {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}

html body img.juf-portrait-share-layer {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    opacity: 0.002 !important;
    z-index: 8 !important;
    pointer-events: auto !important;
    object-fit: cover !important;
    object-position: center top !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

/* ==========================================================================
   Build 539 — Clean, Uncluttered Desktop & Mobile Search Results Dropdown
   Fixes (1000170792.jpg, 1000170793.jpg, 1000170794.jpg):
   1. Removes heavy grey card blocks (#ECEAE6) and beige 3rd-line highlight
      bars (em) from search suggestion items.
   2. Aligns desktop dropdown cleanly to the right edge of the header search
      bar (width: 396px) and full width (100%) on mobile.
   3. Keeps compact, crisp 2-line/3-line hierarchy with a sticky bottom
      "সব ফলাফল দেখুন →" bar so results never look cut off at the bottom.
   ========================================================================== */
html body.juf-minimal-chrome .juf-search-suggestions,
html body.juf-minimal-chrome .juf-global-search-results-v40,
html body .juf-author-search-suggestions {
    background: #FFFFFF !important;
    border: 1px solid rgba(40, 46, 55, 0.12) !important;
    border-radius: 16px !important;
    padding: 6px 8px 0 !important;
    box-shadow: 0 18px 44px rgba(23, 32, 51, 0.14) !important;
    max-height: min(68vh, 450px) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
}

html[data-theme="dark"] body.juf-minimal-chrome .juf-search-suggestions,
html[data-theme="dark"] body.juf-minimal-chrome .juf-global-search-results-v40,
html[data-theme="dark"] body .juf-author-search-suggestions {
    background: #23262B !important;
    border-color: #3A3F47 !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42) !important;
}

@media (min-width: 901px) {
    html body.juf-minimal-chrome .juf-global-search-v40 {
        max-width: 280px !important;
    }
    html body.juf-minimal-chrome .juf-global-search-v40 .juf-global-search-results-v40 {
        left: auto !important;
        right: 0 !important;
        width: 396px !important;
        max-width: calc(100vw - 32px) !important;
    }
}

@media (max-width: 900px) {
    html body.juf-minimal-chrome .juf-global-search-v40 .juf-global-search-results-v40 {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: min(64vh, 410px) !important;
    }
}

html body .juf-search-suggestion-group-title {
    min-height: 24px !important;
    padding: 7px 8px 3px !important;
    margin-top: 2px !important;
    font: 700 11.5px/1.2 var(--font-ui-system, sans-serif) !important;
    color: #5B6376 !important;
    background: transparent !important;
    border-top: 1px solid rgba(40, 46, 55, 0.07) !important;
}

html body .juf-search-suggestion-group-title:first-child {
    border-top: 0 !important;
    margin-top: 0 !important;
    padding-top: 4px !important;
}

html[data-theme="dark"] body .juf-search-suggestion-group-title {
    color: #A09B94 !important;
    border-top-color: rgba(255, 255, 255, 0.07) !important;
}

html body .juf-search-suggestion,
html body.juf-2d-minimal .juf-search-suggestion {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 18px !important;
    gap: 11px !important;
    align-items: center !important;
    min-height: 56px !important;
    padding: 6px 8px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(40, 46, 55, 0.055) !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .juf-search-suggestion,
html[data-theme="dark"] body.juf-2d-minimal .juf-search-suggestion {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.055) !important;
}

html body .juf-search-suggestion:hover,
html body .juf-search-suggestion.is-active,
html body.juf-2d-minimal .juf-search-suggestion:hover,
html body.juf-2d-minimal .juf-search-suggestion.is-active {
    background: #F3F1EC !important;
}

html[data-theme="dark"] body .juf-search-suggestion:hover,
html[data-theme="dark"] body .juf-search-suggestion.is-active,
html[data-theme="dark"] body.juf-2d-minimal .juf-search-suggestion:hover,
html[data-theme="dark"] body.juf-2d-minimal .juf-search-suggestion.is-active {
    background: #2C3037 !important;
}

html body .juf-search-suggestion-visual.is-book,
html body .juf-search-suggestion-visual.is-audio {
    width: 38px !important;
    height: 52px !important;
    border-radius: 6px !important;
}

html body .juf-search-suggestion-visual.is-author,
html body .authors-page .juf-author-search-suggestions .juf-search-suggestion-visual.is-author {
    width: 42px !important;
    height: 48px !important;
    border-radius: 9px !important;
}

html body .juf-search-suggestion-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5px !important;
    min-width: 0 !important;
}

html body .juf-search-suggestion-copy strong {
    font: 700 13.5px/1.3 var(--font-heading, sans-serif) !important;
    color: #1E2430 !important;
    background: transparent !important;
}

html[data-theme="dark"] body .juf-search-suggestion-copy strong {
    color: #ECE8E1 !important;
}

html body .juf-search-suggestion-copy small {
    font: 500 12px/1.25 var(--font-ui-system, sans-serif) !important;
    color: #525B6C !important;
    background: transparent !important;
}

html[data-theme="dark"] body .juf-search-suggestion-copy small {
    color: #B4BCCB !important;
}

html body .juf-search-suggestion-copy em {
    font: 500 11px/1.25 var(--font-ui-system, sans-serif) !important;
    color: #747D8F !important;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
}

html[data-theme="dark"] body .juf-search-suggestion-copy em {
    color: #939CAD !important;
    background: transparent !important;
}

/* Sticky bottom "সব ফলাফল দেখুন →" bar so it is never cut off */
html body .juf-search-suggestion-all {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 40px !important;
    margin: 4px -8px 0 !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-top: 1px solid rgba(40, 46, 55, 0.10) !important;
    border-radius: 0 0 15px 15px !important;
    background: #FAF9F6 !important;
    color: #2845A8 !important;
    font: 700 13px/1.2 var(--font-ui-system, sans-serif) !important;
}

html[data-theme="dark"] body .juf-search-suggestion-all {
    background: #1E2126 !important;
    border-top-color: #3A3F47 !important;
    color: #93C5FD !important;
}


/* ==========================================================================
   Build 545 — Unmistakable Visual Active States for Follow, Bookmark & Clap
   Across Light Mode, Dark Mode, and Mobile Touchscreens (No Sticky Hover)
   ========================================================================== */

/* 1. Book Details Page Bookmark Button (.juf-action-bookmark-btn) */
html body .juf-action-bookmark-btn:not(.is-saved):not([aria-pressed="true"]),
html body .juf-action-bookmark-btn:not(.is-saved):not([aria-pressed="true"]):hover,
html body .juf-action-bookmark-btn:not(.is-saved):not([aria-pressed="true"]):focus {
    background: transparent !important;
    border: 1.5px solid var(--accent, #3B4256) !important;
    color: var(--accent, #3B4256) !important;
    box-shadow: none !important;
}

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

html body .juf-action-bookmark-btn.is-saved,
html body .juf-action-bookmark-btn[aria-pressed="true"],
html body .juf-action-bookmark-btn.is-saved:hover,
html body .juf-action-bookmark-btn.is-saved:focus,
html[data-theme="dark"] body .juf-action-bookmark-btn.is-saved,
html[data-theme="dark"] body .juf-action-bookmark-btn[aria-pressed="true"],
html[data-theme="dark"] body .juf-action-bookmark-btn.is-saved:hover,
html[data-theme="dark"] body .juf-action-bookmark-btn.is-saved:focus {
    background: #2E7A4F !important;
    border: 1.5px solid #2E7A4F !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(46, 122, 79, 0.28) !important;
}

html body .juf-action-bookmark-btn.is-saved svg,
html body .juf-action-bookmark-btn[aria-pressed="true"] svg {
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* 2. Author Profile Follow Button (.person-follow on author.php) */
html body.person-profile-page .juf-person .person-follow.is-following,
html body.person-profile-page .juf-person .person-follow[aria-pressed="true"],
html body.person-profile-page .juf-person .person-follow.is-following:hover,
html body.person-profile-page .juf-person .person-follow[aria-pressed="true"]:hover,
html[data-theme="dark"] body.person-profile-page .juf-person .person-follow.is-following,
html[data-theme="dark"] body.person-profile-page .juf-person .person-follow[aria-pressed="true"],
html[data-theme="dark"] body.person-profile-page .juf-person .person-follow.is-following:hover,
html[data-theme="dark"] body.person-profile-page .juf-person .person-follow[aria-pressed="true"]:hover {
    background: #2E7A4F !important;
    border-color: #2E7A4F !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(46, 122, 79, 0.24) !important;
}

/* 3. Reader Writings & Member Follow Buttons (.juf-medium-follow-link & .juf-writer-follow-btn) */
html body .site-main .juf-medium-follow-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 10px !important;
    border-radius: 999px !important;
    border: 1px solid #3346A8 !important;
    background: transparent !important;
    color: #3346A8 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

html[data-theme="dark"] body .site-main .juf-medium-follow-link {
    border-color: #8FA4F2 !important;
    color: #8FA4F2 !important;
}

html body .site-main .juf-medium-follow-link.is-following,
html body .site-main .juf-medium-follow-link[aria-pressed="true"],
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 body .juf-writer-follow-btn.is-following,
html body .juf-writer-follow-btn[aria-pressed="true"],
html[data-theme="dark"] body .juf-writer-follow-btn.is-following,
html[data-theme="dark"] body .juf-writer-follow-btn[aria-pressed="true"] {
    background: #2E7A4F !important;
    border-color: #2E7A4F !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* 4. Reader Writings Bookmark & Clap Active State (.juf-medium-tool-btn.is-active) */
html body .site-main .juf-medium-tool-btn.is-active,
html body .site-main .juf-medium-tool-btn.is-active:hover,
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: #2E7A4F !important;
    color: #FFFFFF !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
}

html body .site-main .juf-medium-tool-btn.is-active svg {
    fill: currentColor !important;
    stroke: currentColor !important;
}


/* ============================================================================
   Build 549 — Universal PDF Page Toggle Button & Low-Contrast "আমার কথা"
   (`1000170665.jpg` & `1000150163.jpg`) Reading Surface Mode across:
   1. `writings.php` (Reader Writings Single Article & Community Feed)
   2. `author.php` (Author Long-Form Biography, Works & Timeline)
   3. `details.php` (Book Summary, Introduction & Public Reader Reviews)
   4. `quiz.php` & `quiz_question.php` (Interactive Quiz & Question Pages)
   ============================================================================ */

/* Toggle Pill Button Styling (Normal & Active States) */
html body .juf-pdf-surface-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(92, 80, 66, 0.28) !important;
    background: #DFD5C5 !important;
    color: #241E17 !important;
    font: 600 12.5px/1 var(--font-ui-system, "Noto Sans Bengali", sans-serif) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(42, 33, 22, 0.06) !important;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.14s ease !important;
}

html[data-theme="dark"] body:not([data-pdf-mode="pdf"]) .juf-pdf-surface-toggle {
    background: #2C313A !important;
    border-color: #3E4552 !important;
    color: #DFD5C5 !important;
}

html body .juf-pdf-surface-toggle:hover {
    background: #E6DDD0 !important;
    border-color: rgba(92, 80, 66, 0.45) !important;
    color: #241E17 !important;
    transform: translateY(-1px);
}

html body .juf-pdf-surface-toggle[aria-pressed="true"],
html body .juf-pdf-surface-toggle.is-active,
html[data-theme="dark"] body[data-pdf-mode="pdf"] .juf-pdf-surface-toggle {
    background: #43392E !important;
    border-color: #43392E !important;
    color: #DFD5C5 !important;
    box-shadow: 0 2px 8px rgba(42, 33, 22, 0.16) !important;
}

/* Global Page Canvas when [data-pdf-mode="pdf"] is active */
html body[data-pdf-mode="pdf"],
html[data-theme="dark"] body[data-pdf-mode="pdf"],
html body[data-pdf-mode="pdf"] .site-main,
html[data-theme="dark"] body[data-pdf-mode="pdf"] .site-main {
    --bg: #E6DDD0 !important;
    --bg-cream: #E6DDD0 !important;
    --surface: #EFE8DD !important;
    --card-bg: #EFE8DD !important;
    --soft: #F4EFE6 !important;
    --line: rgba(92, 80, 66, 0.22) !important;
    --ink: #241E17 !important;
    --text-main: #241E17 !important;
    --muted: #5C5042 !important;
    background-color: #E6DDD0 !important;
    background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAF0AXQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAQACAwj/xAApEAADAAICAwEAAgICA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VUk8wuLdrZZrY3FayBfya6M1pmk/sJx9gWXDJuqYRmNIEGF9G/6DrCRR8tAM6WwTcJJpl2BpuqLYN1qmuP4FSxACJ/grivYX3occYBPjjAcUrk00nn2CtiAk0m8Cnthxibop1wKvLGthiIl4/wCOwnSeQgquTfHWA8V+k/QGm4qZrsZP1yJcU0BPlnJB4/UQA2bTyRAUVB6IgBbEiLgG5AbwiIAemLxxRERVWaTcIhqJ4Sg7hEFa6MPcIgh4/wCIL/7IgM2KnRZSIiKOWGHHKIi4L2C/wZEQaiiJLZEUSwLSayRAZ8UnRbiwRBGTUTIig5N2E8NkRAxVhy/yREVGW2ng0uTyREVbefQf8SIKpEmCwRBG1qklmkQC0mg00kRBAyIg0//Z") !important;
    background-repeat: repeat !important;
    background-position: center top !important;
    background-size: 372px 372px !important;
    color: #241E17 !important;
}

/* Harmonize Top Header & Footer in [data-pdf-mode="pdf"] */
html body[data-pdf-mode="pdf"] .juf-header-v24,
html[data-theme="dark"] body[data-pdf-mode="pdf"] .juf-header-v24,
html body[data-pdf-mode="pdf"] .juf-footer-v24,
html[data-theme="dark"] body[data-pdf-mode="pdf"] .juf-footer-v24 {
    background: #EAE1D4 !important;
    border-color: rgba(92, 80, 66, 0.20) !important;
    color: #241E17 !important;
    box-shadow: none !important;
}

html body[data-pdf-mode="pdf"] .juf-header-v24 :is(a, button, span, strong, svg),
html[data-theme="dark"] body[data-pdf-mode="pdf"] .juf-header-v24 :is(a, button, span, strong, svg) {
    color: #241E17 !important;
}

/* 1. Writings (`writings.php` & `writings.php?post=...`) in PDF Page Mode */
html body[data-pdf-mode="pdf"] .juf-public-writings-hub,
html[data-theme="dark"] body[data-pdf-mode="pdf"] .juf-public-writings-hub,
html body[data-pdf-mode="pdf"] .site-main .juf-writing-reader-sheet.juf-fb-post-sheet,
html[data-theme="dark"] body[data-pdf-mode="pdf"] .site-main .juf-writing-reader-sheet.juf-fb-post-sheet {
    background: transparent !important;
    border-color: rgba(92, 80, 66, 0.20) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html body[data-pdf-mode="pdf"] :is(
    .juf-public-writings-hero,
    .juf-literary-prompt-banner,
    .juf-social-post-card,
    .juf-writing-author-portfolio-box,
    .juf-fb-comment-row,
    .juf-writings-filter-shell
),
html[data-theme="dark"] body[data-pdf-mode="pdf"] :is(
    .juf-public-writings-hero,
    .juf-literary-prompt-banner,
    .juf-social-post-card,
    .juf-writing-author-portfolio-box,
    .juf-fb-comment-row,
    .juf-writings-filter-shell
) {
    background: rgba(242, 236, 226, 0.82) !important;
    border: 1px solid rgba(92, 80, 66, 0.22) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html body[data-pdf-mode="pdf"] .site-main :is(
    .juf-writing-reader-prose,
    .juf-writing-reader-prose p,
    .juf-writing-reader-prose li,
    .juf-writing-reader-prose blockquote,
    .juf-writing-reader-prose.is-poem-prose,
    .juf-writing-reader-prose.is-poem-prose p,
    .juf-medium-book-prose,
    .juf-medium-book-prose p,
    .juf-medium-article-canvas,
    .juf-medium-article-canvas p,
    .juf-social-post-body p,
    .juf-medium-response-body
),
html[data-theme="dark"] body[data-pdf-mode="pdf"] .site-main :is(
    .juf-writing-reader-prose,
    .juf-writing-reader-prose p,
    .juf-writing-reader-prose li,
    .juf-writing-reader-prose blockquote,
    .juf-writing-reader-prose.is-poem-prose,
    .juf-writing-reader-prose.is-poem-prose p,
    .juf-medium-book-prose,
    .juf-medium-book-prose p,
    .juf-medium-article-canvas,
    .juf-medium-article-canvas p,
    .juf-social-post-body p,
    .juf-medium-response-body
) {
    color: #241E17 !important;
    font-weight: 400 !important;
    line-height: 2.0 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

html body[data-pdf-mode="pdf"] .site-main :is(
    #writing-post-title,
    .juf-social-post-title,
    .juf-social-post-title a,
    .juf-public-writings-hero h1,
    .juf-medium-author-name,
    .juf-medium-author-name a
),
html[data-theme="dark"] body[data-pdf-mode="pdf"] .site-main :is(
    #writing-post-title,
    .juf-social-post-title,
    .juf-social-post-title a,
    .juf-public-writings-hero h1,
    .juf-medium-author-name,
    .juf-medium-author-name a
) {
    color: #262018 !important;
    font-weight: 600 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

/* 2. Author Biography (`author.php`) in PDF Page Mode */
html body.person-profile-page[data-pdf-mode="pdf"] .juf-person,
html[data-theme="dark"] body.person-profile-page[data-pdf-mode="pdf"] .juf-person {
    background: transparent !important;
    color: #241E17 !important;
}

html body.person-profile-page[data-pdf-mode="pdf"] .person-nav,
html[data-theme="pdf"] body.person-profile-page .person-nav,
html[data-theme="dark"] body.person-profile-page[data-pdf-mode="pdf"] .person-nav {
    background-color: #EAE1D4 !important;
    background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAF0AXQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAQACAwj/xAApEAADAAICAwEAAgICAgMAAAAAAREhMQJBElFhcSKBMpFCobHwYsHR/8QAFwEBAQEBAAAAAAAAAAAAAAAAAAECBP/EABkRAQEBAAMAAAAAAAAAAAAAAAARASExQf/aAAwDAQACEQMRAD8A9L0t9Fp+xbxg4nSMrRnsS/QFYeRxsnZ8DoonlKBOiFkAl7LDIPwB60RNuBM0Do41TKwy47LsKlXcil7YZRK7YQNvMDrsd6JFA2XDk2hg8Uv7JoI2WekzX8vZXIqsRpw2tZQVMvLIQ8m5hEsoG8REmlkCi7Hi1Pwy9bHiA8mnEjKx1aKWdmngAkWFkku2slWSbYBylwimqWl9B5ClvMQtadMpOl/yAYm6SWU8A/mmKythE55bNTvsx3gqwFvqAt6HjkrMQ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RBAyIg0//Z") !important;
    background-repeat: repeat !important;
    background-size: 372px 372px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(108, 92, 72, 0.16) !important;
    border-bottom: 1px solid rgba(108, 92, 72, 0.24) !important;
    box-shadow: 0 3px 10px rgba(42, 33, 22, 0.05) !important;
}

html body.person-profile-page[data-pdf-mode="pdf"] .person-nav a,
html[data-theme="pdf"] body.person-profile-page .person-nav a,
html[data-theme="dark"] body.person-profile-page[data-pdf-mode="pdf"] .person-nav a {
    color: #4A3F32 !important;
}

html body.person-profile-page[data-pdf-mode="pdf"] .person-nav a[aria-current],
html[data-theme="pdf"] body.person-profile-page .person-nav a[aria-current] {
    color: #241E17 !important;
    border-bottom-color: #382F24 !important;
    font-weight: 700 !important;
}

/* Structural sections and desktop sidebar stay transparent on paper */
html body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    .person-section,
    .person-shell,
    .person-intro,
    .person-reader-sidebar,
    .person-biography-section
),
html[data-theme="pdf"] body.person-profile-page .juf-person :is(
    .person-section,
    .person-shell,
    .person-intro,
    .person-reader-sidebar,
    .person-biography-section
) {
    background: transparent !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

@media (min-width: 1101px) {
    html body.person-profile-page[data-pdf-mode="pdf"] .juf-person .person-contents,
    html[data-theme="pdf"] body.person-profile-page .juf-person .person-contents {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}

/* Elevated cards on author.php in PDF Page Mode */
html body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    .person-identity,
    .person-glance,
    .person-word-guide,
    .person-card,
    .person-overview-card,
    .person-work-card,
    .person-book-card,
    .person-fact,
    .person-quote,
    .person-timeline-item,
    .person-sources summary,
    .person-source-list
),
html[data-theme="pdf"] body.person-profile-page .juf-person :is(
    .person-identity,
    .person-glance,
    .person-word-guide,
    .person-card,
    .person-overview-card,
    .person-work-card,
    .person-book-card,
    .person-fact,
    .person-quote,
    .person-timeline-item,
    .person-sources summary,
    .person-source-list
) {
    background: rgba(239, 232, 221, 0.86) !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    .person-prose,
    .person-prose p,
    .person-prose li,
    .person-short-intro p,
    .person-biography-section-body,
    .person-biography-section-body p,
    .person-biography-section-body li,
    .person-overview-copy,
    .person-work-copy,
    .person-timeline p,
    .person-timeline-copy,
    .person-section-summary
),
html[data-theme="dark"] body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    .person-prose,
    .person-prose p,
    .person-prose li,
    .person-short-intro p,
    .person-biography-section-body,
    .person-biography-section-body p,
    .person-biography-section-body li,
    .person-overview-copy,
    .person-work-copy,
    .person-timeline p,
    .person-timeline-copy,
    .person-section-summary
) {
    color: #241E17 !important;
    font-weight: 400 !important;
    line-height: 1.98 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

html body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    h1, h2, h3, h4,
    .person-name,
    .person-biography-section-title,
    .person-event-title,
    .person-timeline-title,
    .person-work-title,
    .person-book-title,
    .person-fact-value,
    .person-intro-label,
    .person-word-link,
    .person-prose p strong
),
html[data-theme="dark"] body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    h1, h2, h3, h4,
    .person-name,
    .person-biography-section-title,
    .person-event-title,
    .person-timeline-title,
    .person-work-title,
    .person-book-title,
    .person-fact-value,
    .person-intro-label,
    .person-word-link,
    .person-prose p strong
) {
    color: #262018 !important;
    border-bottom-color: rgba(46, 39, 30, 0.35) !important;
    font-weight: 600 !important;
}

html body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    dt, small, .person-english, .person-kicker, .person-meta, .person-section-note, .person-source-refs, .person-book-meta, .person-follower-count
),
html[data-theme="dark"] body.person-profile-page[data-pdf-mode="pdf"] .juf-person :is(
    dt, small, .person-english, .person-kicker, .person-meta, .person-section-note, .person-source-refs, .person-book-meta, .person-follower-count
) {
    color: #5C5042 !important;
}

/* 3. Book Details (`details.php`) in PDF Page Mode */
html body.book-system-page[data-pdf-mode="pdf"] :is(
    .juf-book-left-rail,
    .juf-book-summary-card,
    .juf-book-reading-directory,
    .approved-reader-reviews,
    .approved-review-card,
    .juf-chapter-row:not(:hover):not(.is-current)
),
html[data-theme="pdf"] body.book-system-page :is(
    .juf-book-left-rail,
    .juf-book-summary-card,
    .juf-book-reading-directory,
    .approved-reader-reviews,
    .approved-review-card,
    .juf-chapter-row:not(:hover):not(.is-current)
) {
    background: transparent !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html body.book-system-page[data-pdf-mode="pdf"] :is(
    .juf-details-author-card,
    details.juf-publication-disclosure,
    details.juf-book-publication-card,
    details.juf-intro-disclosure,
    details.juf-reader-review-form-card,
    .book-community-panel,
    .juf-continue-reading-card
),
html[data-theme="pdf"] body.book-system-page :is(
    .juf-details-author-card,
    details.juf-publication-disclosure,
    details.juf-book-publication-card,
    details.juf-intro-disclosure,
    details.juf-reader-review-form-card,
    .book-community-panel,
    .juf-continue-reading-card
) {
    background: rgba(239, 232, 221, 0.86) !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html body.book-system-page[data-pdf-mode="pdf"] :is(
    .juf-summary-content,
    .juf-summary-content p,
    .juf-summary-content li,
    .juf-summary-content blockquote,
    .juf-rich-public-content,
    .juf-rich-public-content p,
    .juf-rich-public-content li,
    .juf-details-description,
    .juf-details-description p,
    .approved-review-card p,
    .reader-review-text
),
html[data-theme="dark"] body.book-system-page[data-pdf-mode="pdf"] :is(
    .juf-summary-content,
    .juf-summary-content p,
    .juf-summary-content li,
    .juf-summary-content blockquote,
    .juf-rich-public-content,
    .juf-rich-public-content p,
    .juf-rich-public-content li,
    .juf-details-description,
    .juf-details-description p,
    .approved-review-card p,
    .reader-review-text
) {
    color: #241E17 !important;
    font-weight: 400 !important;
    line-height: 1.98 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

html body.book-system-page[data-pdf-mode="pdf"] :is(
    h1, h2, h3, .juf-book-subhead, .juf-chapter-copy strong, .approved-review-card strong
),
html[data-theme="dark"] body.book-system-page[data-pdf-mode="pdf"] :is(
    h1, h2, h3, .juf-book-subhead, .juf-chapter-copy strong, .approved-review-card strong
) {
    color: #262018 !important;
    font-weight: 600 !important;
}

/* 4. Quiz & Question Pages (`quiz.php` & `quiz_question.php`) in PDF Page Mode */
html body[data-pdf-mode="pdf"] #juf-quiz-root,
html body[data-pdf-mode="pdf"] .juf-quiz-shell,
html[data-theme="dark"] body[data-pdf-mode="pdf"] #juf-quiz-root,
html[data-theme="dark"] body[data-pdf-mode="pdf"] .juf-quiz-shell {
    --juf-q-bg: #E6DDD0 !important;
    --juf-q-elevated: rgba(242, 236, 226, 0.86) !important;
    --juf-q-sand: #EAE1D4 !important;
    --juf-q-sand-active: rgba(182, 169, 149, 0.65) !important;
    --juf-q-track: rgba(92, 80, 66, 0.18) !important;
    --juf-q-divider: rgba(92, 80, 66, 0.18) !important;
    --juf-q-line: rgba(92, 80, 66, 0.24) !important;
    --juf-q-ink: #241E17 !important;
    --juf-q-label: #272119 !important;
    --juf-q-muted: #5C5042 !important;
    --juf-q-terracotta: #43392E !important;
    --juf-q-terracotta-soft: rgba(67, 57, 46, 0.12) !important;
    --juf-q-terracotta-border: rgba(67, 57, 46, 0.36) !important;
    --juf-q-terracotta-ink: #262018 !important;
    --juf-q-shadow: none !important;
    --juf-q-shadow-hover: none !important;
    background-color: #E6DDD0 !important;
    background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQc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KaTyUzkXE6kETDQsHkC72VzSXbJpTBQVYhOt4eh8b2SmVc+yCrkDqmop0DaxAJLFYv4zPJuYWEKXa0PBLi3lh38RryaxsL7QGm1DD3XkVJGSTwBKT6Ly4zK4sq6vSA0+Khlyi23j/AEPHG0EZ7kJbNRW0z3ZgVUk8wuLdrZZrY3FayBfya6M1pmk/sJx9gWXDJuqYRmNIEGF9G/6DrCRR8tAM6WwTcJJpl2BpuqLYN1qmuP4FSxACJ/grivYX3occYBPjjAcUrk00nn2CtiAk0m8Cnthxibop1wKvLGthiIl4/wCOwnSeQgquTfHWA8V+k/QGm4qZrsZP1yJcU0BPlnJB4/UQA2bTyRAUVB6IgBbEiLgG5AbwiIAemLxxRERVWaTcIhqJ4Sg7hEFa6MPcIgh4/wCIL/7IgM2KnRZSIiKOWGHHKIi4L2C/wZEQaiiJLZEUSwLSayRAZ8UnRbiwRBGTUTIig5N2E8NkRAxVhy/yREVGW2ng0uTyREVbefQf8SIKpEmCwRBG1qklmkQC0mg00kRBAyIg0//Z") !important;
    background-repeat: repeat !important;
    background-size: 372px 372px !important;
    color: #241E17 !important;
}

html body[data-pdf-mode="pdf"] :is(.juf-qcard:not(.juf-qcard-mod), .juf-qfbk, .juf-qr-hero, .juf-pcell:not(.cur), #juf-quiz-root .juf-qo:not(.ok):not(.bad)),
html[data-theme="dark"] body[data-pdf-mode="pdf"] :is(.juf-qcard:not(.juf-qcard-mod), .juf-qfbk, .juf-qr-hero, .juf-pcell:not(.cur), #juf-quiz-root .juf-qo:not(.ok):not(.bad)) {
    background: rgba(242, 236, 226, 0.84) !important;
    border-color: rgba(92, 80, 66, 0.24) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html body[data-pdf-mode="pdf"] :is(.juf-qtx, .juf-qfbk-text, #juf-quiz-root .juf-qo .t),
html[data-theme="dark"] body[data-pdf-mode="pdf"] :is(.juf-qtx, .juf-qfbk-text, #juf-quiz-root .juf-qo .t) {
    color: #241E17 !important;
    font-weight: 400 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}

html body[data-pdf-mode="pdf"] #juf-quiz-root .juf-qbig,
html[data-theme="dark"] body[data-pdf-mode="pdf"] #juf-quiz-root .juf-qbig {
    background: #43392E !important;
    border-color: #43392E !important;
    color: #DFD5C5 !important;
    box-shadow: none !important;
}

/* ============================================================================
   Build 550 — Global 3-Way Header Theme (`Light ☀️ -> Dark 🌙 -> PDF পেজ 📖`)
   Ensures `html[data-theme="pdf"]` applies seamlessly across Homepage, Books,
   Authors, Audiobooks, Profile, Member, and Search while keeping all Book
   Covers & Author Portraits 100% crisp and vibrant (zero muddy filter).
   ============================================================================ */

html[data-theme="pdf"],
html[data-theme="pdf"] body:not(.admin-shell-body),
html[data-theme="pdf"] body:not(.admin-shell-body) .site-main {
    --bg: #E6DDD0 !important;
    --bg-cream: #E6DDD0 !important;
    --surface: #EFE8DD !important;
    --card-bg: #EFE8DD !important;
    --juf-light-bg: #E6DDD0 !important;
    --juf-light-surface: #EFE8DD !important;
    --juf-surface-paper: #EFE8DD !important;
    --juf-card-surface: #EFE8DD !important;
    --soft: #F4EFE6 !important;
    --line: rgba(92, 80, 66, 0.22) !important;
    --juf-border: rgba(92, 80, 66, 0.22) !important;
    --ink: #241E17 !important;
    --text-main: #241E17 !important;
    --juf-ink-soft: #241E17 !important;
    --muted: #5C5042 !important;
    color: #241E17 !important;
}

/* Cards across Homepage, Books, Authors, Profile, Member & Search in PDF Mode */
html[data-theme="pdf"] body:not(.admin-shell-body) :where(
    .premium-book-card,
    .juf-author-genre-card,
    .audio-collection-card,
    .audio-list-card,
    .audio-track-card,
    .category-card,
    .category-item,
    .review-card,
    .review-item,
    .testimonial-card-white,
    .pastel-card,
    .reader-review-card,
    .personal-reading-card,
    .subscription-card,
    .profile-hub-hero,
    .profile-hub-section,
    .profile-card,
    .account-panel,
    .reader-public,
    .search-results-card,
    .juf-search-result-card,
    .search-filter-panel
) {
    background-color: rgba(242, 236, 226, 0.84) !important;
    border-color: rgba(92, 80, 66, 0.22) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

/* Preserve 100% crisp, natural colors on all Book Covers, Portraits & Thumbnails in PDF Mode */
html[data-theme="pdf"] body :where(
    .juf-catalog-book-card img,
    .premium-book-card img,
    .book-cover img,
    .juf-book-cover img,
    .person-portrait img,
    .juf-author-directory-avatar img,
    .author-circle-disc img,
    .audio-collection-card-art img
) {
    filter: none !important;
    opacity: 1 !important;
}

/* ============================================================================
   Build 551 (Step 1) — Complete PDF Page Mode Polish for Search Dropdowns,
   Form Inputs/Textareas/Selects, and Mobile Navigation Drawer (`#juf-primary-nav`)
   ============================================================================ */

/* 1. Search Bars & Form Inputs / Textareas / Selects in PDF Page Mode */
html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    #juf-global-search-form,
    .juf-global-search-v40,
    .juf-books-search,
    .juf-author-directory-search,
    .audio-library-search,
    .juf-writings-search-bar,
    .juf-universal-search,
    .reader-library-search,
    .juf-toc-search input,
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]),
    textarea,
    select,
    .juf-select-trigger
) {
    background-color: #F2ECE2 !important;
    border-color: rgba(92, 80, 66, 0.26) !important;
    color: #241E17 !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    #juf-global-search-input,
    .juf-global-search-v40 input,
    .juf-books-search input,
    .juf-author-directory-search input,
    .audio-library-search input,
    .juf-writings-search-bar input,
    .juf-universal-search input
) {
    background: transparent !important;
    border: 0 !important;
    color: #241E17 !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body:not(.admin-shell-body) :is(input, textarea)::placeholder {
    color: #5C5042 !important;
    opacity: 0.82 !important;
}

/* 2. Search Suggestions Dropdown in PDF Page Mode (No White #FFFFFF Flash) */
html[data-theme="pdf"] body.juf-minimal-chrome .juf-search-suggestions,
html[data-theme="pdf"] body.juf-minimal-chrome .juf-global-search-results-v40,
html[data-theme="pdf"] body .juf-author-search-suggestions,
html[data-theme="pdf"] body .juf-select-menu {
    background-color: #E6DDD0 !important;
    background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAF0AXQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAQACAwj/xAApEAADAAICAwEAAgICAgMAAAAAAREhMQJBElFhcSKBMpFCobHwYsHR/8QAFwEBAQEBAAAAAAAAAAAAAAAAAAECBP/EABkRAQEBAAMAAAAAAAAAAAAAAAARASExQf/aAAwDAQACEQMRAD8A9L0t9Fp+xbxg4nSMrRnsS/QFYeRxsnZ8DoonlKBOiFkAl7LDIPwB60RNuBM0Do41TKwy47LsKlXcil7YZRK7YQNvMDrsd6JFA2XDk2hg8Uv7JoI2WekzX8vZXIqsRpw2tZQVMvLIQ8m5hEsoG8REmlkCi7Hi1Pwy9bHiA8mnEjKx1aKWdmngAkWFkku2slWSbYBylwimqWl9B5ClvMQtadMpOl/yAYm6SWU8A/mmKythE55bNTvsx3gqwFvqAt6HjkrMQIG2qPFg3eij2FaswssE3chxtqNfoF4ogrIDN9i6X0regInli+i7AENJoIBPZL6KX0kAOlB6DIE1mEvqFaJ+kgMtOiK9FfgEySJ8loVJgATjCVjrBdgSxsfpaBvAVJ5BvecErtio2QZEX+DFKVGVkmsYG4+A1emBGgABNGVWiytsBew/8koTbgE8hqJdisbJuvAFXomgbb6G+1gBX/Rl2it4LLegD+yzsZ7CZwBquAsuh7YwCaugsw0NwDjaWQJCWF2LAy27hEUZAO0Q9EVAyZfoSEXCmTyy8W/gJN0Bv0FsksVk2BO0qGRjgIUh+tmHh/TSX8QFpbgPHwU8NA/uYBcdf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LHQ6f7szxswan8Z2FHLQ644ZN9GUs16+BCv4vJeSGXLBT/QKHGCeMGklMk0msbAk8RgpMphn/AEabxjAGWu6PF9UY0nWg4zQVpvGA5VP9J+KMt1kCva0acTpnjisnLvJULmweXjRqJopF3gA8foueIJPZNO3AGXqDxSf6aqeyeMrIAlOQtVi7MA7PpQEZnL4RFSWKaTyUzkXE6kETDQsHkC72VzSXbJpTBQVYhOt4eh8b2SmVc+yCrkDqmop0DaxAJLFYv4zPJuYWEKXa0PBLi3lh38RryaxsL7QGm1DD3XkVJGSTwBKT6Ly4zK4sq6vSA0+Khlyi23j/AEPHG0EZ7kJbNRW0z3ZgVUk8wuLdrZZrY3FayBfya6M1pmk/sJx9gWXDJuqYRmNIEGF9G/6DrCRR8tAM6WwTcJJpl2BpuqLYN1qmuP4FSxACJ/grivYX3occYBPjjAcUrk00nn2CtiAk0m8Cnthxibop1wKvLGthiIl4/wCOwnSeQgquTfHWA8V+k/QGm4qZrsZP1yJcU0BPlnJB4/UQA2bTyRAUVB6IgBbEiLgG5AbwiIAemLxxRERVWaTcIhqJ4Sg7hEFa6MPcIgh4/wCIL/7IgM2KnRZSIiKOWGHHKIi4L2C/wZEQaiiJLZEUSwLSayRAZ8UnRbiwRBGTUTIig5N2E8NkRAxVhy/yREVGW2ng0uTyREVbefQf8SIKpEmCwRBG1qklmkQC0mg00kRBAyIg0//Z") !important;
    background-repeat: repeat !important;
    background-size: 372px 372px !important;
    border: 1px solid rgba(92, 80, 66, 0.28) !important;
    box-shadow: 0 14px 36px rgba(42, 33, 22, 0.16) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body.juf-minimal-chrome .juf-search-suggestions a:not([data-search-more]),
html[data-theme="pdf"] body .juf-author-search-suggestions a:not([data-search-more]) {
    background: transparent !important;
    border-bottom: 1px solid rgba(92, 80, 66, 0.14) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body.juf-minimal-chrome .juf-search-suggestions a:not([data-search-more]):hover,
html[data-theme="pdf"] body.juf-minimal-chrome .juf-search-suggestions a:not([data-search-more]):focus-visible,
html[data-theme="pdf"] body .juf-author-search-suggestions a:not([data-search-more]):hover {
    background: rgba(196, 184, 166, 0.52) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body.juf-minimal-chrome .juf-search-suggestions a strong,
html[data-theme="pdf"] body .juf-author-search-suggestions a strong {
    color: #262018 !important;
}

html[data-theme="pdf"] body.juf-minimal-chrome .juf-search-suggestions a :is(span, small, em),
html[data-theme="pdf"] body .juf-author-search-suggestions a :is(span, small, em) {
    color: #5C5042 !important;
    background: transparent !important;
}

html[data-theme="pdf"] body.juf-minimal-chrome .juf-search-suggestions a[data-search-more],
html[data-theme="pdf"] body .juf-author-search-suggestions a[data-search-more] {
    background: #EAE1D4 !important;
    border-top: 1px solid rgba(92, 80, 66, 0.22) !important;
    color: #262018 !important;
}

/* 3. Mobile Hamburger Menu Drawer (`#juf-primary-nav`) in PDF Page Mode */
@media (max-width: 900px) {
    html[data-theme="pdf"] body.juf-minimal-chrome .juf-nav-v24,
    html[data-theme="pdf"] body .juf-nav-v24 {
        background-color: #E6DDD0 !important;
        background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAF0AXQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAQACAwj/xAApEAADAAICAwEAAgICAgMAAAAAAREhMQJBElFhcSKBMpFCobHwYsHR/8QAFwEBAQEBAAAAAAAAAAAAAAAAAAECBP/EABkRAQEBAAMAAAAAAAAAAAAAAAARASExQf/aAAwDAQACEQMRAD8A9L0t9Fp+xbxg4nSMrRnsS/QFYeRxsn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TfHWA8V+k/QGm4qZrsZP1yJcU0BPlnJB4/UQA2bTyRAUVB6IgBbEiLgG5AbwiIAemLxxRERVWaTcIhqJ4Sg7hEFa6MPcIgh4/wCIL/7IgM2KnRZSIiKOWGHHKIi4L2C/wZEQaiiJLZEUSwLSayRAZ8UnRbiwRBGTUTIig5N2E8NkRAxVhy/yREVGW2ng0uTyREVbefQf8SIKpEmCwRBG1qklmkQC0mg00kRBAyIg0//Z") !important;
        background-repeat: repeat !important;
        background-size: 372px 372px !important;
        border-color: rgba(92, 80, 66, 0.24) !important;
        box-shadow: 0 14px 32px rgba(42, 33, 22, 0.14) !important;
    }
    html[data-theme="pdf"] body .juf-nav-v24 :is(.juf-nav-link-v24, .juf-user-chip-v24, .juf-header-icon-btn-v24, .juf-header-logout-v24 button) {
        background: #F2ECE2 !important;
        border-color: rgba(92, 80, 66, 0.22) !important;
        color: #241E17 !important;
    }
    html[data-theme="pdf"] body .juf-nav-v24 .juf-nav-link-v24.is-active {
        background: #43392E !important;
        border-color: #43392E !important;
        color: #DFD5C5 !important;
    }
}

/* ============================================================================
   Build 553 — Fix Author Directory Cards (`1000171015.jpg` & `1000171014.jpg`)
   & Book Catalog Cards in Light & PDF Page Modes:
   1. Keeps `.juf-author-directory-card`, `.juf-catalog-book-card`, and
      `.showcase-card-item` outer wrappers 100% transparent (`border: 0`,
      `background: transparent`) so no square grey/cream sticker block appears
      behind the author name or book title.
   2. Harmonizes `.juf-author-directory-avatar` and `.juf-author-literary-placeholder`
      in `html[data-theme="pdf"]` with warm parchment (`#EFE8DD` -> `#E3D9C8`)
      instead of cool bluish-grey (`#E4E6EC`), and replaces the blue `#3346A8`
      hover/focus border with warm sepia-bronze (`#6B5842`).
   3. Styles `.juf-author-directory-category` ("লেখক ও সাহিত্যিক") and alphabet
      filter pills in warm parchment tones in PDF mode.
   ============================================================================ */

html body.authors-page .juf-author-directory-card,
html body.authors-page .juf-author-directory-card:hover,
html body.authors-page .juf-author-directory-card:focus-visible,
html[data-theme="pdf"] body.authors-page .juf-author-directory-card,
html[data-theme="pdf"] body.authors-page .juf-author-directory-card:hover,
html[data-theme="pdf"] body.authors-page .juf-author-directory-card:focus-visible,
html body .juf-catalog-book-card,
html[data-theme="pdf"] body .juf-catalog-book-card,
html body .showcase-card-item,
html[data-theme="pdf"] body .showcase-card-item {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* Warm Parchment Portrait Box & Literary Placeholder on authors.php in PDF Mode */
html[data-theme="pdf"] body.authors-page .juf-author-directory-avatar,
html[data-theme="pdf"] body.authors-page .juf-author-directory-avatar.has-photo,
html[data-theme="pdf"] body.authors-page .juf-author-directory-avatar.is-photo-missing,
html[data-theme="pdf"] body.authors-page .juf-author-directory-card.has-photo .juf-author-directory-avatar {
    background: linear-gradient(160deg, #F2ECE2 0%, #E5DBC9 100%) !important;
    border: 1px solid rgba(108, 92, 72, 0.22) !important;
    box-shadow: 0 6px 16px rgba(42, 33, 22, 0.05) !important;
}

html[data-theme="pdf"] body.authors-page .juf-author-directory-card:hover .juf-author-directory-avatar,
html[data-theme="pdf"] body.authors-page .juf-author-directory-card:focus-visible .juf-author-directory-avatar {
    border-color: #6B5842 !important;
    box-shadow: 0 10px 22px rgba(42, 33, 22, 0.09) !important;
}

html[data-theme="pdf"] body .juf-author-literary-placeholder,
html[data-theme="pdf"] body.authors-page .juf-author-directory-avatar.is-photo-missing .juf-author-literary-placeholder {
    --avatar-paper: #EFE8DD !important;
    --avatar-ink: #382F24 !important;
    --avatar-accent: #8C775E !important;
    background:
        radial-gradient(circle at 72% 22%, rgba(140, 119, 94, 0.14) 0 11%, transparent 11.5%),
        linear-gradient(160deg, #F2ECE2 0%, #E4DAC8 100%) !important;
    color: #382F24 !important;
}

html[data-theme="pdf"] body .juf-author-literary-rule {
    background: #8C775E !important;
}

html[data-theme="pdf"] body .juf-author-literary-initial {
    color: #382F24 !important;
}

html[data-theme="pdf"] body .juf-author-literary-book {
    stroke: rgba(56, 47, 36, 0.62) !important;
}

/* Author Name, English Subtitle, Category Pill & Alphabet Bar in PDF Mode */
html[data-theme="pdf"] body.authors-page .juf-author-discovery .juf-author-directory-card .juf-author-directory-name,
html[data-theme="pdf"] body.authors-page .juf-author-directory-card .juf-author-directory-name,
html[data-theme="pdf"] body.authors-page .juf-author-directory-name {
    color: #241E17 !important;
}

html[data-theme="pdf"] body.authors-page .juf-author-discovery .juf-author-directory-card .juf-author-directory-en,
html[data-theme="pdf"] body.authors-page .juf-author-directory-card .juf-author-directory-en,
html[data-theme="pdf"] body.authors-page .juf-author-directory-en {
    color: #5A4E40 !important;
}

html[data-theme="pdf"] body.authors-page .juf-author-directory-category {
    background: #EFE8DD !important;
    border: 1px solid rgba(108, 92, 72, 0.24) !important;
    color: #382F24 !important;
}

html[data-theme="pdf"] body.authors-page .juf-author-filter-panel,
html[data-theme="pdf"] body.authors-page .juf-author-alphabet {
    background: rgba(239, 232, 221, 0.78) !important;
    border-color: rgba(108, 92, 72, 0.20) !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body.authors-page .juf-author-alphabet a {
    background: #F2ECE2 !important;
    border-color: rgba(108, 92, 72, 0.20) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body.authors-page .juf-author-alphabet a.active,
html[data-theme="pdf"] body.authors-page .juf-author-alphabet a[aria-current="true"] {
    background: #382F24 !important;
    border-color: #382F24 !important;
    color: #F4EFE6 !important;
}

/* Generated Book Cover Placeholders in PDF Mode retain their own literary cover palette */
html[data-theme="pdf"] body .juf-book-jacket-generated {
    border-color: rgba(108, 92, 72, 0.24) !important;
}


/* ============================================================================
   Build 554 — Final Senior UI/UX & Web Developer Deep Audit for `PDF পেজ` Theme
   Across All Public Website Pages (Desktop & Mobile Views):
   - Unifies every root & page-scoped CSS variable family (`--card`, `--border-input`,
     `--home-*`, `--books-*`, `--library-*`, `--person-*`, `--profile-*`,
     `--premium-*`, `--review-*`, `--juf-control-*`, `--juf-auth-*`) on
     `html[data-theme="pdf"]` so high-specificity `var(--card)` inputs and
     page-specific components never fall back to stark `#FFFFFF` or `#ECEBE6`.
   - Harmonizes Desktop & Mobile layouts across Homepage, Books, Book Details
     (Desktop left rail + tabs), Authors, Biography, Writings, Audiobooks,
     Quiz, Profile/Member, Search, Auth cards, and Filter Popovers/Sheets.
   ============================================================================ */

html[data-theme="pdf"],
html[data-theme="pdf"] body:not(.admin-shell-body),
html[data-theme="pdf"] body:not(.admin-shell-body) .site-main,
html body[data-pdf-mode="pdf"]:not(.admin-shell-body),
html body[data-pdf-mode="pdf"]:not(.admin-shell-body) .site-main {
    --bg: #E6DDD0 !important;
    --bg-cream: #E6DDD0 !important;
    --surface: #EFE8DD !important;
    --card: #F2ECE2 !important;
    --card-bg: #EFE8DD !important;
    --soft: #EAE1D4 !important;
    --tint: #E4DAC8 !important;
    --line: rgba(108, 92, 72, 0.22) !important;
    --border-light: rgba(108, 92, 72, 0.22) !important;
    --border-input: rgba(108, 92, 72, 0.32) !important;
    --ink: #241E17 !important;
    --text-main: #241E17 !important;
    --text-primary: #241E17 !important;
    --muted: #5C5042 !important;
    --text-muted: #5C5042 !important;
    --accent: #382F24 !important;
    --accent-hover: #2A221A !important;
    --on-accent: #F4EFE6 !important;
    --accent-rust: #5C4934 !important;
    --accent-blue: #4A3D2E !important;
    --focus: #5C4934 !important;
    --cta: #382F24 !important;
    --cta-hover: #2A221A !important;
    --on-cta: #F4EFE6 !important;
    --link: #4A3B2A !important;
    --link-hover: #241E17 !important;
    --juf-light-bg: #E6DDD0 !important;
    --juf-light-surface: #EFE8DD !important;
    --juf-surface-paper: #EFE8DD !important;
    --juf-surface-white: #F2ECE2 !important;
    --juf-surface-panel: #EFE8DD !important;
    --juf-surface-muted: #E5DBC9 !important;
    --juf-card-surface: #EFE8DD !important;
    --juf-tan: rgba(108, 92, 72, 0.24) !important;
    --juf-border: rgba(108, 92, 72, 0.22) !important;
    --juf-ink-soft: #241E17 !important;
    --juf-text-black: #241E17 !important;
    --juf-text-muted: #5C5042 !important;
    /* Homepage & Books & Library tokens */
    --home-bg: #E6DDD0 !important;
    --home-paper: #EFE8DD !important;
    --home-card: #EFE8DD !important;
    --home-ink: #241E17 !important;
    --home-muted: #5C5042 !important;
    --home-line: rgba(108, 92, 72, 0.22) !important;
    --books-bg: #E6DDD0 !important;
    --books-paper: #EFE8DD !important;
    --books-card: #EFE8DD !important;
    --books-ink: #241E17 !important;
    --books-muted: #5C5042 !important;
    --books-line: rgba(108, 92, 72, 0.22) !important;
    --library-bg: #E6DDD0 !important;
    --library-paper: #EFE8DD !important;
    --library-card: #EFE8DD !important;
    --library-ink: #241E17 !important;
    --library-muted: #5C5042 !important;
    --library-line: rgba(108, 92, 72, 0.22) !important;
    /* Author & Profile & Premium & Review tokens */
    --person-bg: #E6DDD0 !important;
    --person-paper: #EFE8DD !important;
    --person-surface: #F2ECE2 !important;
    --person-ink: #241E17 !important;
    --person-muted: #5C5042 !important;
    --person-line: rgba(108, 92, 72, 0.22) !important;
    --person-accent: #5C4934 !important;
    --person-accent-deep: #382F24 !important;
    --profile-bg: #E6DDD0 !important;
    --profile-paper: #EFE8DD !important;
    --profile-card: #EFE8DD !important;
    --profile-ink: #241E17 !important;
    --profile-muted: #5C5042 !important;
    --profile-line: rgba(108, 92, 72, 0.22) !important;
    --premium-bg: #E6DDD0 !important;
    --premium-card: #EFE8DD !important;
    --premium-ink: #241E17 !important;
    --premium-muted: #5C5042 !important;
    --premium-line: rgba(108, 92, 72, 0.22) !important;
    --review-bg: #EFE8DD !important;
    --review-card: #F2ECE2 !important;
    --review-ink: #241E17 !important;
    --review-muted: #5C5042 !important;
    --review-line: rgba(108, 92, 72, 0.22) !important;
    /* Control & Auth tokens */
    --juf-control-surface: #F2ECE2 !important;
    --juf-control-surface-soft: #EAE1D4 !important;
    --juf-control-border: rgba(108, 92, 72, 0.26) !important;
    --juf-control-text: #241E17 !important;
    --juf-control-muted: #5C5042 !important;
    --juf-control-accent: #382F24 !important;
    --juf-control-accent-strong: #2A221A !important;
    --juf-auth-bg: #E6DDD0 !important;
    --juf-auth-surface: #EFE8DD !important;
    --juf-auth-text: #241E17 !important;
    --juf-auth-muted: #5C5042 !important;
    --juf-auth-border: rgba(108, 92, 72, 0.24) !important;
}

/* 1. Hero Stages & Editorial Banners across Homepage, Books, Authors, Audiobooks */
html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .hero-cinematic-stage,
    .juf-authors-cinematic-hero:not(.is-editorial-tint),
    .juf-books-hero,
    .audio-hub-hero-v2,
    .juf-public-writings-hero,
    .premium-hero,
    .juf-books-filter-shell,
    .juf-books-toolbar,
    .audio-filter-bar,
    .premium-filter-bar
) {
    background: rgba(239, 232, 221, 0.78) !important;
    background-image: none !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

/* 2. Homepage & Author Discovery Cards + Genre/Category Strips */
html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .home-author-discovery-card,
    .juf-author-discovery-card-shared,
    .home-book-category-card,
    .author-pill-card,
    .juf-author-new-book-card,
    .juf-books-genre-pill:not(.is-active):not([aria-current="page"]),
    .juf-writings-tab:not(.is-active):not([aria-current="page"]),
    .audio-category-pill:not(.is-active)
) {
    background: #EFE8DD !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .juf-books-genre-pill.is-active,
    .juf-books-genre-pill[aria-current="page"],
    .juf-writings-tab.is-active,
    .juf-writings-tab[aria-current="page"],
    .audio-category-pill.is-active
) {
    background: #382F24 !important;
    border-color: #382F24 !important;
    color: #F4EFE6 !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .home-author-discovery-portrait,
    .juf-author-discovery-portrait-shared
) {
    background: linear-gradient(160deg, #F2ECE2 0%, #E5DBC9 100%) !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
}

/* 3. Book Details (`details.php`) Desktop Left Rail, Clean Underline Tabs & Meta Grid */
html[data-theme="pdf"] body.book-system-page :is(
    .juf-book-stage-card,
    .juf-book-meta-grid,
    .juf-book-meta-item,
    .juf-book-author-box,
    .juf-book-share-panel
) {
    background: rgba(239, 232, 221, 0.84) !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body.book-system-page .juf-book-tabs {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(108, 92, 72, 0.24) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body.book-system-page .juf-book-tab:not(.is-active):not([aria-selected="true"]) {
    background: transparent !important;
    border: 0 !important;
    color: #5C5042 !important;
    box-shadow: inset 0 -2px 0 transparent !important;
}

html[data-theme="pdf"] body.book-system-page :is(.juf-book-tab.is-active, .juf-book-tab[aria-selected="true"]) {
    background: transparent !important;
    border: 0 !important;
    color: #241E17 !important;
    font-weight: 700 !important;
    box-shadow: inset 0 -2.5px 0 #382F24 !important;
}

/* 4. Profile & Member Pages (`profile.php`, `member.php`) Desktop & Mobile */
html[data-theme="pdf"] body .site-main #library-home .profile-hub-hero.juf-ig-profile-card,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-section,
html[data-theme="pdf"] body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar,
html[data-theme="pdf"] body .site-main #library-home .juf-social-composer,
html[data-theme="pdf"] body .site-main .member-hero-card,
html[data-theme="pdf"] body .site-main .member-content-card {
    background: rgba(239, 232, 221, 0.84) !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-ig-action-btn {
    background: #F2ECE2 !important;
    border-color: rgba(108, 92, 72, 0.26) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-ig-tab.is-active,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-tab[aria-selected="true"] {
    background: #382F24 !important;
    border-color: #382F24 !important;
    color: #F4EFE6 !important;
}

/* 5. Filter Popovers, Mobile Bottom Sheets & Select Option Grids */
html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .juf-control-popover,
    .juf-author-filter-row,
    .premium-filter-fields,
    .audio-filter-fields,
    .juf-author-filter-more > .juf-author-filter-row,
    .premium-filter-more > .premium-filter-fields,
    .audio-filter-more > .audio-filter-fields
) {
    background-color: #EFE8DD !important;
    background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8LCwkMEQ8SEhEPERETFhwXExQaFRERGCEYGh0dHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh7/wAARCAF0AXQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAQACAwj/xAApEAADAAICAwEAAgICAgMAAAAAAREhMQJBElFhcSKBMpFCobHwYsHR/8QAFwEBAQEBAAAAAAAAAAAAAAAAAAECBP/EABkRAQEBAAMAAAAAAAAAAAAAAAARASExQf/aAAwDAQACEQMRAD8A9L0t9Fp+xbxg4nSMrRnsS/QFYeRxsnZ8DoonlKBOiFkAl7LDIPwB60RNuBM0Do41TKwy47LsKlXcil7YZRK7YQNvMDrsd6JFA2XDk2hg8Uv7JoI2WekzX8vZXIqsRpw2tZQVMvLIQ8m5hEsoG8REmlkCi7Hi1Pwy9bHiA8mnEjKx1aKWdmngAkWFkku2slWSbYBylwimqWl9B5ClvMQtadMpOl/yAYm6SWU8A/mmKythE55bNTvsx3gqwFvqAt6HjkrMQIG2qPFg3eij2FaswssE3chxtqNfoF4ogrIDN9i6X0regInli+i7AENJoIBPZL6KX0kAOlB6DIE1mEvqFaJ+kgMtOiK9FfgEySJ8loVJgATjCVjrBdgSxsf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HCLk21oUl4wIkUXFqFywsEkmiaeiok5nZNZWw4udmm8/+CKGswyaflQayvQBAnRuL2SaewDxS2LXJIpV9J47AVJog8vZFRLiUaLi5hjW3ois7WSRclkUgM7LNyMyaSUdGDEbfoes5Jso4USausDcNA1VQkIF7rLssSQeoQEQqahJYjayXjllDUogjbcgPixqSnYAsVEs8iUsao2LQFJlaFOrJXGQ5foKU6w5JbewXYSsDVvLHQ6f7szxswan8Z2FHLQ644ZN9GUs16+BCv4vJeSGXLBT/QKHGCeMGklMk0msbAk8RgpMphn/AEabxjAGWu6PF9UY0nWg4zQVpvGA5VP9J+KMt1kCva0acTpnjisnLvJULmweXjRqJopF3gA8foueIJPZNO3AGXqDxSf6aqeyeMrIAlOQtVi7MA7PpQEZnL4RFSWKaTyUzkXE6kETDQsHkC72VzSXbJpTBQVYhOt4eh8b2SmVc+yCrkDqmop0DaxAJLFYv4zPJuYWEKXa0PBLi3lh38RryaxsL7QGm1DD3XkVJGSTwBKT6Ly4zK4sq6vSA0+Khlyi23j/AEPHG0EZ7kJbNRW0z3ZgVUk8wuLdrZZrY3FayBfya6M1pmk/sJx9gWXDJuqYRmNIEGF9G/6DrCRR8tAM6WwTcJJpl2BpuqLYN1qmuP4FSxACJ/grivYX3occYBPjjAcUrk00nn2CtiAk0m8Cnthxibop1wKvLGthiIl4/wCOwnSeQgquTfHWA8V+k/QGm4qZrsZP1yJcU0BPlnJB4/UQA2bTyRAUVB6IgBbEiLgG5AbwiIAemLxxRERVWaTcIhqJ4Sg7hEFa6MPcIgh4/wCIL/7IgM2KnRZSIiKOWGHHKIi4L2C/wZEQaiiJLZEUSwLSayRAZ8UnRbiwRBGTUTIig5N2E8NkRAxVhy/yREVGW2ng0uTyREVbefQf8SIKpEmCwRBG1qklmkQC0mg00kRBAyIg0//Z") !important;
    background-repeat: repeat !important;
    background-size: 372px 372px !important;
    border: 1px solid rgba(108, 92, 72, 0.28) !important;
    box-shadow: 0 18px 46px rgba(42, 33, 22, 0.16) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .juf-control-popover .juf-control-actions,
    .juf-select-option:not(.is-selected):not([aria-selected="true"])
) {
    background: #F2ECE2 !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .juf-select-option.is-selected,
    .juf-select-option[aria-selected="true"],
    .juf-control-apply
) {
    background: #382F24 !important;
    border-color: #382F24 !important;
    color: #F4EFE6 !important;
}

/* 6. Auth Panels (`login.php`, `register.php`), Premium Plans (`premium.php`), FAQ & Contact */
html[data-theme="pdf"] body:not(.admin-shell-body) :is(
    .reader-auth-panel-v27,
    .reader-auth-card,
    .premium-plan-card,
    .premium-active-pass,
    .premium-library-callout,
    .premium-trust-card,
    .premium-faq-item,
    .faq-card,
    .contact-card
) {
    background: rgba(239, 232, 221, 0.86) !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    box-shadow: none !important;
    color: #241E17 !important;
}


/* ============================================================================
   Build 555 — Author Biography (`author.php`) & Book Details (`details.php`)
   Desktop & Mobile PDF Theme & Layout Polish (`image_f241e5.jpg`–`image_f1e7d2.jpg`)
   ============================================================================ */

/* 1. Author Follow Button (`অনুসরণ করুন`): Crisp button width on Desktop/Tablet (not a 750px bar) */
@media (min-width: 761px) {
    html body.person-profile-page .juf-person .person-follow-form {
        width: auto !important;
        max-width: 240px !important;
        flex: 0 0 auto !important;
    }
    html body.person-profile-page .juf-person .person-follow {
        width: auto !important;
        max-width: 240px !important;
        min-width: 168px !important;
        padding: 10px 24px !important;
    }
}

/* 2. Author Page (`author.php`) Tokens, Chips & Filter Pills in PDF Page Mode */
html[data-theme="pdf"] body.person-profile-page .juf-person {
    --person-paper: transparent !important;
    --person-paper-deep: #E2D7C7 !important;
    --person-surface: rgba(239, 232, 221, 0.86) !important;
    --person-surface-line: rgba(108, 92, 72, 0.24) !important;
    --person-rule: rgba(108, 92, 72, 0.22) !important;
    --person-ink: #241E17 !important;
    --person-muted: #5C5042 !important;
    --person-accent: #382F24 !important;
    --person-accent-deep: #241E17 !important;
}

html[data-theme="pdf"] body.person-profile-page .juf-person .person-tags a,
html[data-theme="pdf"] body.person-profile-page .juf-person .person-book-genre-chip {
    background: rgba(56, 47, 36, 0.08) !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    color: #382F24 !important;
}

html[data-theme="pdf"] body.person-profile-page .juf-person .person-book-filters a:not([aria-current]) {
    background: #EFE8DD !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #4A3F32 !important;
}

html[data-theme="pdf"] body.person-profile-page .juf-person .person-book-filters a[aria-current] {
    background: #382F24 !important;
    border-color: #382F24 !important;
    color: #F4EFE6 !important;
}

/* 3. Book Details (`details.php`) Collapsible Summary Smooth Alpha Fade (No Stripe Band) */
html body.book-system-page .juf-summary-content.is-collapsible:not(.is-expanded) {
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%) !important;
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%) !important;
}

html body.book-system-page .juf-summary-content.is-collapsible:not(.is-expanded)::after {
    display: none !important;
    content: none !important;
    background: none !important;
}


/* ============================================================================
   Build 556 — Reader (`read.php`) & Book Details (`details.php`) Desktop + PDF
   Theme Complete UI/UX Polish (`image_f086f4.png`, `image_f07fe7.jpg`–`image_f0832a.jpg`)
   ============================================================================ */

/* 1. Reader Quiz CTA Card & Bottom Chapter Navigation Bar (`image_f086f4.png`) */
html body.reader-page .juf-reader-quiz-back-btn,
html body.reader-page .juf-reader-quiz-back-btn * {
    color: #F4EFE6 !important;
}

@media (min-width: 761px) {
    html body.reader-page .reader-bottom-nav {
        max-width: min(66ch, 720px) !important;
        margin: 18px auto 36px !important;
        padding: 14px 20px !important;
        border-radius: 14px !important;
        align-items: center !important;
    }
}

html[data-theme="pdf"] body.reader-page:not([data-reader-theme="dark"]):not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]) .juf-reader-quiz-cta-card,
html body.reader-page[data-reader-theme="pdf"] .juf-reader-quiz-cta-card {
    background: rgba(239, 232, 221, 0.90) !important;
    border: 1px solid rgba(108, 92, 72, 0.28) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body.reader-page:not([data-reader-theme="dark"]):not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]) .juf-reader-quiz-back-btn,
html body.reader-page[data-reader-theme="pdf"] .juf-reader-quiz-back-btn {
    background: #382F24 !important;
    border: 1px solid #382F24 !important;
    color: #F4EFE6 !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body.reader-page:not([data-reader-theme="dark"]):not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]) .juf-reader-quiz-jump-btn,
html body.reader-page[data-reader-theme="pdf"] .juf-reader-quiz-jump-btn {
    background: #F2ECE2 !important;
    border: 1px solid rgba(108, 92, 72, 0.30) !important;
    color: #241E17 !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body.reader-page:not([data-reader-theme="dark"]):not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]) .reader-bottom-nav,
html body.reader-page[data-reader-theme="pdf"] .reader-bottom-nav {
    background: rgba(239, 232, 221, 0.88) !important;
    border: 1px solid rgba(108, 92, 72, 0.26) !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body.reader-page:not([data-reader-theme="dark"]):not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]) .reader-bottom-nav .btn-hero-cinematic-primary,
html body.reader-page[data-reader-theme="pdf"] .reader-bottom-nav .btn-hero-cinematic-primary {
    background: #382F24 !important;
    border: 1px solid #382F24 !important;
    color: #F4EFE6 !important;
    border-radius: 10px !important;
    padding: 10px 20px !important;
    box-shadow: none !important;
}

html[data-theme="pdf"] body.reader-page:not([data-reader-theme="dark"]):not([data-reader-theme="paper"]):not([data-reader-theme="sepia"]) .reader-bottom-nav .btn-hero-cinematic-secondary,
html body.reader-page[data-reader-theme="pdf"] .reader-bottom-nav .btn-hero-cinematic-secondary {
    background: #F2ECE2 !important;
    border: 1px solid rgba(108, 92, 72, 0.30) !important;
    color: #241E17 !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    box-shadow: none !important;
}

/* 2. Book Details Top Hero Card (`.juf-book-left-rail`) & Audio Action Button (`image_f07fe7.jpg`) */
@media (min-width: 701px) {
    html[data-theme="pdf"] body.book-system-page .container.book-details-page .juf-book-left-rail,
    html body.book-system-page[data-pdf-mode="pdf"] .container.book-details-page .juf-book-left-rail {
        background: rgba(239, 232, 221, 0.86) !important;
        border: 1px solid rgba(108, 92, 72, 0.24) !important;
        border-radius: 18px !important;
        padding: 28px 32px !important;
        box-shadow: none !important;
    }
}
@media (max-width: 700px) {
    html[data-theme="pdf"] body.book-system-page .container.book-details-page .juf-book-left-rail,
    html body.book-system-page[data-pdf-mode="pdf"] .container.book-details-page .juf-book-left-rail {
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
}

html[data-theme="pdf"] body.book-system-page .juf-details-action.juf-btn-accent,
html body.book-system-page[data-pdf-mode="pdf"] .juf-details-action.juf-btn-accent {
    background: #F2ECE2 !important;
    border: 1.5px solid #382F24 !important;
    color: #241E17 !important;
    box-shadow: none !important;
}

/* 3. Build 589: Book Details Summary & Intro Imported Images Visible Across Light, PDF & Dark Modes */
html body.book-system-page .container.book-details-page :is(#juf-book-summary-content, .juf-intro-disclosure, .juf-publication-disclosure-content) :is(figure, .juf-content-image) {
    display: block !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 18px auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
html body.book-system-page .container.book-details-page :is(#juf-book-summary-content, .juf-intro-disclosure, .juf-publication-disclosure-content) img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 460px !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 10px !important;
    object-fit: contain !important;
}
html body.book-system-page .container.book-details-page :is(#juf-book-summary-content, .juf-intro-disclosure, .juf-publication-disclosure-content) :is(figcaption, .juf-image-caption) {
    display: block !important;
    margin-top: 8px !important;
    padding: 0 6px !important;
    font: 500 13.5px/1.55 var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    color: var(--muted, #5C5346) !important;
    text-align: center !important;
}
html[data-theme="dark"] body.book-system-page .container.book-details-page :is(#juf-book-summary-content, .juf-intro-disclosure, .juf-publication-disclosure-content) :is(figure, .juf-content-image) {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="dark"] body.book-system-page .container.book-details-page :is(#juf-book-summary-content, .juf-intro-disclosure, .juf-publication-disclosure-content) :is(figcaption, .juf-image-caption) {
    color: #CBD5E1 !important;
}
html[data-theme="pdf"] body.book-system-page .container.book-details-page :is(#juf-book-summary-content, .juf-intro-disclosure, .juf-publication-disclosure-content) :is(figure, .juf-content-image) {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="pdf"] body.book-system-page .container.book-details-page :is(#juf-book-summary-content, .juf-intro-disclosure, .juf-publication-disclosure-content) :is(figcaption, .juf-image-caption) {
    color: #4A3E31 !important;
}

@media (min-width: 701px) {
    html body.book-system-page .container.book-details-page :is(
        .juf-details-description,
        .juf-rich-public-content,
        .juf-summary-content,
        .juf-rich-public-content p,
        .juf-summary-content p,
        .juf-publication-disclosure-content p
    ) {
        max-width: 100% !important;
    }
}

html[data-theme="pdf"] body.book-system-page .juf-summary-toggle,
html body.book-system-page[data-pdf-mode="pdf"] .juf-summary-toggle {
    background: rgba(56, 47, 36, 0.08) !important;
    border: 1px solid rgba(108, 92, 72, 0.26) !important;
    color: #241E17 !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
}
html body.book-system-page .juf-summary-toggle[hidden] {
    display: none !important;
}

/* 4. Book Details Chapter Number Circles (`১`, `২`, `৩`, `৪`) & Read Tag (`image_f0832a.jpg`) */
html[data-theme="pdf"] body.book-system-page .juf-chapter-number,
html body.book-system-page[data-pdf-mode="pdf"] .juf-chapter-number {
    background: #DDD1BE !important;
    border: 1px solid rgba(92, 76, 56, 0.34) !important;
    color: #241E17 !important;
    font-weight: 700 !important;
}

html[data-theme="pdf"] body.book-system-page .juf-chapter-row:hover,
html body.book-system-page[data-pdf-mode="pdf"] .juf-chapter-row:hover {
    background: rgba(239, 232, 221, 0.78) !important;
}

html[data-theme="pdf"] body.book-system-page .juf-chapter-row:hover .juf-chapter-number,
html body.book-system-page[data-pdf-mode="pdf"] .juf-chapter-row:hover .juf-chapter-number {
    background: #382F24 !important;
    border-color: #382F24 !important;
    color: #F4EFE6 !important;
}

html[data-theme="pdf"] body.book-system-page .juf-chapter-state.is-done-tag,
html body.book-system-page[data-pdf-mode="pdf"] .juf-chapter-state.is-done-tag {
    background: rgba(46, 110, 73, 0.10) !important;
    border: 1px solid rgba(46, 110, 73, 0.26) !important;
    color: #23593A !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
}


/* ============================================================================
   Build 557 — Admin Master Control Center Dynamic Collapse Height Support
   ============================================================================ */
html body.book-system-page .juf-summary-content.is-collapsible:not(.is-expanded) {
    max-height: var(--juf-summary-collapsed-height, 11.4em) !important;
}


/* ==========================================================================
   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;
    }
}


/* ==========================================================================
   JUFbook Profile v8 Three-Mode Palette & Card Harmony (Light | Sepia | Dark)
   Matches juf-profile-v8.html tokens sitewide while leaving .reader-page untouched.
   ========================================================================== */

/* 1. Light / Paper Mode (#F6F5F2 / #EDEBE6 / #FFFFFF / #DEDAD2) */
html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not(.reader-page) {
  --bg: #F6F5F2 !important;
  --bg-cream: #F6F5F2 !important;
  --juf-surface-paper: #F6F5F2 !important;
  --surface: #EDEBE6 !important;
  --juf-light-surface: #EDEBE6 !important;
  --card: #FFFFFF !important;
  --card-bg: #FFFFFF !important;
  --juf-card-surface: #FFFFFF !important;
  --line: #DEDAD2 !important;
  --border-light: #DEDAD2 !important;
  --juf-border: #DEDAD2 !important;
  --ink: #282E37 !important;
  --text-main: #282E37 !important;
  --muted: #5B6470 !important;
  --text-muted: #5B6470 !important;
  --accent: #3B4256 !important;
  --on-accent: #F6F5F2 !important;
  --gold: #8A4513 !important;
  --ok: #2F6F4F !important;
  --danger: #B3261E !important;
}

html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not(.reader-page) :where(
  .card, .book-card, .author-card, .review-card, .info-card, .stat-card,
  .account-panel, .juf-card, .juf-list-card, .juf-writing-card, .juf-quiz-card,
  .testimonial-card-white, .premium-book-card, .audio-collection-card,
  .pastel-card:not(.home-author-discovery-card):not(.juf-author-category-card)
) {
  background-color: #FFFFFF !important;
  border-color: #DEDAD2 !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.05), 0 8px 18px -12px rgba(40, 46, 55, 0.22);
}

/* 2. Sepia / PDF Mode (#F1E9D8 / #E8DEC8 / #F9F6EF / #D8CBB0) */
html[data-theme="pdf"] body:not(.reader-page),
html body[data-pdf-mode="pdf"]:not(.reader-page) {
  --bg: #F1E9D8 !important;
  --bg-cream: #F1E9D8 !important;
  --juf-surface-paper: #F1E9D8 !important;
  --surface: #E8DEC8 !important;
  --juf-light-surface: #E8DEC8 !important;
  --card: #F9F6EF !important;
  --card-bg: #F9F6EF !important;
  --juf-card-surface: #F9F6EF !important;
  --line: #D8CBB0 !important;
  --border-light: #D8CBB0 !important;
  --juf-border: #D8CBB0 !important;
  --ink: #3A3226 !important;
  --text-main: #3A3226 !important;
  --muted: #6A5E4B !important;
  --text-muted: #6A5E4B !important;
  --accent: #4B4332 !important;
  --on-accent: #F1E9D8 !important;
  --gold: #8A4513 !important;
  --ok: #2F6F4F !important;
  --danger: #B3261E !important;
  background-color: #F1E9D8 !important;
  color: #3A3226 !important;
}

html[data-theme="pdf"] body:not(.reader-page) :where(.juf-header-modern, .juf-header-v24, .juf-footer-v24),
html body[data-pdf-mode="pdf"]:not(.reader-page) :where(.juf-header-modern, .juf-header-v24, .juf-footer-v24) {
  background-color: #F1E9D8 !important;
  border-color: #D8CBB0 !important;
}

html[data-theme="pdf"] body:not(.reader-page) :where(
  .card, .book-card, .author-card, .review-card, .info-card, .stat-card,
  .account-panel, .juf-card, .juf-list-card, .juf-writing-card, .juf-quiz-card,
  .testimonial-card-white, .premium-book-card, .audio-collection-card,
  .pastel-card:not(.home-author-discovery-card):not(.juf-author-category-card)
),
html body[data-pdf-mode="pdf"]:not(.reader-page) :where(
  .card, .book-card, .author-card, .review-card, .info-card, .stat-card,
  .account-panel, .juf-card, .juf-list-card, .juf-writing-card, .juf-quiz-card,
  .testimonial-card-white, .premium-book-card, .audio-collection-card,
  .pastel-card:not(.home-author-discovery-card):not(.juf-author-category-card)
) {
  background-color: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
  box-shadow: 0 1px 2px rgba(58, 50, 38, 0.05), 0 8px 18px -12px rgba(58, 50, 38, 0.2);
}

/* 3. Dark / Night Mode (#23262B / #2C3037 / #3A3F47 / #ECE8E1 / #C9D4EC) */
html[data-theme="dark"] body:not(.reader-page),
html body.dark-mode:not(.reader-page) {
  --bg: #23262B !important;
  --bg-cream: #23262B !important;
  --juf-surface-paper: #23262B !important;
  --surface: #2C3037 !important;
  --juf-light-surface: #2C3037 !important;
  --card: #2C3037 !important;
  --card-bg: #2C3037 !important;
  --juf-card-surface: #2C3037 !important;
  --line: #3A3F47 !important;
  --border-light: #3A3F47 !important;
  --juf-border: #3A3F47 !important;
  --ink: #ECE8E1 !important;
  --text-main: #ECE8E1 !important;
  --muted: #A9AEB6 !important;
  --text-muted: #A9AEB6 !important;
  --accent: #C9D4EC !important;
  --on-accent: #23262B !important;
  --gold: #E0A56F !important;
  --ok: #8CCBA8 !important;
  --danger: #F2A19B !important;
  background-color: #23262B !important;
  color: #ECE8E1 !important;
}

html[data-theme="dark"] body:not(.reader-page) :where(.juf-header-modern, .juf-header-v24, .juf-footer-v24),
html body.dark-mode:not(.reader-page) :where(.juf-header-modern, .juf-header-v24, .juf-footer-v24) {
  background-color: #23262B !important;
  border-color: #3A3F47 !important;
}

html[data-theme="dark"] body:not(.reader-page) :where(
  .card, .book-card, .author-card, .review-card, .info-card, .stat-card,
  .account-panel, .juf-card, .juf-list-card, .juf-writing-card, .juf-quiz-card,
  .testimonial-card-white, .premium-book-card, .audio-collection-card,
  .pastel-card:not(.home-author-discovery-card):not(.juf-author-category-card)
),
html body.dark-mode:not(.reader-page) :where(
  .card, .book-card, .author-card, .review-card, .info-card, .stat-card,
  .account-panel, .juf-card, .juf-list-card, .juf-writing-card, .juf-quiz-card,
  .testimonial-card-white, .premium-book-card, .audio-collection-card,
  .pastel-card:not(.home-author-discovery-card):not(.juf-author-category-card)
) {
  background-color: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 18px -12px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body:not(.reader-page) :where(.book-cover img, .showcase-card-item img, .juf-catalog-book-card img) {
  filter: brightness(0.9);
}

/* ==========================================================================
   PDF / Sepia Mode — Seamless Paper Polish (Eliminates Sharp 4-Corner Boxes)
   Flat editorial sections & heroes blend transparently onto the parchment paper;
   genuine cards keep soft rounded corners (14px) and warm #D8CBB0 borders.
   ========================================================================== */
html[data-theme="pdf"] body:not(.reader-page):not(.admin-shell-body) :is(
  .site-main,
  .jp,
  .juf-person .person-identity:not(.is-editorial-tint),
  .juf-person .person-glance,
  .juf-person .person-overview,
  .juf-person .person-word-guide,
  #juf-quiz-root .juf-qcard.juf-qcard-mod,
  .hero-cinematic-stage,
  .juf-authors-cinematic-hero:not(.is-editorial-tint),
  .juf-books-hero,
  .juf-public-writings-hero,
  .juf-writings-filter-shell,
  .juf-author-filter-panel,
  .juf-author-alphabet
),
html body[data-pdf-mode="pdf"]:not(.reader-page):not(.admin-shell-body) :is(
  .site-main,
  .jp,
  .juf-person .person-identity:not(.is-editorial-tint),
  .juf-person .person-glance,
  .juf-person .person-overview,
  .juf-person .person-word-guide,
  #juf-quiz-root .juf-qcard.juf-qcard-mod,
  .hero-cinematic-stage,
  .juf-authors-cinematic-hero:not(.is-editorial-tint),
  .juf-books-hero,
  .juf-public-writings-hero,
  .juf-writings-filter-shell,
  .juf-author-filter-panel,
  .juf-author-alphabet
) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Genuine cards in PDF mode always keep soft rounded corners (no sharp 4-corner boxes) */
html[data-theme="pdf"] body:not(.reader-page):not(.admin-shell-body) :is(
  .juf-person .person-card,
  .juf-person .person-work-card,
  .juf-details-author-card,
  .juf-book-stage-card,
  .juf-book-meta-grid,
  .juf-social-post-card,
  .juf-literary-prompt-banner,
  .juf-writing-author-portfolio-box,
  .premium-book-card,
  .audio-collection-card,
  .reader-auth-panel-v27,
  .reader-auth-card
),
html body[data-pdf-mode="pdf"]:not(.reader-page):not(.admin-shell-body) :is(
  .juf-person .person-card,
  .juf-person .person-work-card,
  .juf-details-author-card,
  .juf-book-stage-card,
  .juf-book-meta-grid,
  .juf-social-post-card,
  .juf-literary-prompt-banner,
  .juf-writing-author-portfolio-box,
  .premium-book-card,
  .audio-collection-card,
  .reader-auth-panel-v27,
  .reader-auth-card
) {
  background-color: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(58, 50, 38, 0.05), 0 6px 16px -10px rgba(58, 50, 38, 0.16) !important;
}

/* ==========================================================================
   Reader Writings Hub (`writings.php`) — Fancy, Light Editorial Polish
   CSS-only (writings.php untouched). Focused 820px width, borderless airy
   hero, calm literary accent pills (no loud blue), crisp editorial cards.
   ========================================================================== */
html body .juf-public-writings-hub {
  max-width: 1240px !important;
  margin-inline: auto !important;
}

html body .juf-public-writings-hero {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 10px 0 16px !important;
  margin-bottom: 16px !important;
  box-shadow: none !important;
}

html body .juf-public-writings-kicker {
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  color: var(--muted) !important;
  margin-bottom: 4px !important;
}

html body .juf-public-writings-hero-copy h1 {
  font-size: clamp(22px, 3vw, 28px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: var(--ink) !important;
  margin: 0 0 6px !important;
}

html body .juf-public-writings-hero-copy p {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--muted) !important;
  max-width: 56ch !important;
  margin: 0 !important;
}

html body a.juf-public-writings-cta {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: var(--on-accent) !important;
  border-radius: 999px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html body .juf-writings-search-bar {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 6px 8px !important;
  gap: 8px !important;
  box-shadow: none !important;
}

html body .juf-writings-search-bar input[type="search"] {
  border: 0 !important;
  background: transparent !important;
  color: var(--ink) !important;
  height: 36px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

html body .juf-writings-search-bar select {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 28px 0 12px !important;
  border-radius: 9px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

html body .juf-writings-search-bar button[type="submit"] {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: var(--on-accent) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html body a.juf-writings-reset-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 9px !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

html body .juf-public-writings-tabs {
  gap: 6px !important;
  margin: 12px 0 18px !important;
}

html body .juf-public-writings-tabs a {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

html body .juf-public-writings-tabs a[aria-current="page"],
html body .juf-public-writings-tabs a.is-active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--on-accent) !important;
  font-weight: 600 !important;
}

html body .juf-social-post-card.juf-public-feed-card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.04), 0 8px 20px -14px rgba(40, 46, 55, 0.16) !important;
}

html body .juf-social-post-card .juf-social-post-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.38 !important;
  color: var(--ink) !important;
  margin: 6px 0 8px !important;
}

html body .juf-social-post-card .juf-social-post-body,
html body .juf-social-post-card .juf-social-post-prose {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: var(--ink) !important;
}

html body .juf-social-post-card .juf-writing-readtime-pill {
  font-size: 11.5px !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  border: 0 !important;
}

html body .juf-social-post-card .juf-social-post-foot {
  padding-top: 12px !important;
  margin-top: 14px !important;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
}

html body .juf-social-post-card a.juf-social-read-btn {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

/* Multi-column desktop card grid for Reader Writings (2 col tablet, 3 col desktop, 4 col wide) */
html body .juf-public-writings-hub .juf-public-writings-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  align-items: stretch !important;
}

@media (min-width: 720px) {
  html body .juf-public-writings-hub .juf-public-writings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (min-width: 1024px) {
  html body .juf-public-writings-hub .juf-public-writings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (min-width: 1380px) {
  html body .juf-public-writings-hub .juf-public-writings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

html body .juf-public-writings-grid .juf-social-post-card.juf-public-feed-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 16px 18px !important;
}

html body .juf-public-writings-grid .juf-social-post-card .juf-social-post-title {
  font-size: 16.5px !important;
  line-height: 1.38 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

html body .juf-public-writings-grid .juf-social-post-card .juf-social-post-body,
html body .juf-public-writings-grid .juf-social-post-card .juf-social-post-prose {
  font-size: 14px !important;
  line-height: 1.65 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

html body .juf-public-writings-grid .juf-social-post-card .juf-social-post-foot {
  margin-top: auto !important;
  padding-top: 12px !important;
}

/* ==========================================================================
   Audit Part 1 / 10 — Header & Mobile Bottom Nav Light Fancy Polish
   ========================================================================== */
html:not([data-theme="dark"]):not([data-theme="pdf"]) body:not(.admin-shell-body) .juf-header-modern.juf-header-v24 {
  background: rgba(246, 245, 242, 0.90) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid color-mix(in srgb, #DEDAD2 80%, transparent) !important;
}

html[data-theme="pdf"] body:not(.admin-shell-body) .juf-header-modern.juf-header-v24,
html body[data-pdf-mode="pdf"]:not(.admin-shell-body) .juf-header-modern.juf-header-v24 {
  background: rgba(241, 233, 216, 0.90) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid color-mix(in srgb, #D8CBB0 85%, transparent) !important;
}

html[data-theme="dark"] body:not(.admin-shell-body) .juf-header-modern.juf-header-v24,
html body.dark-mode:not(.admin-shell-body) .juf-header-modern.juf-header-v24 {
  background: rgba(35, 38, 43, 0.90) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid #3A3F47 !important;
}

/* Remove cluttered top-bar logout icon (Logout lives safely inside Profile Settings) */
html body:not(.admin-shell-body) .juf-header-v24 .juf-header-logout-v24 {
  display: none !important;
}

/* Cleaner single-line user chip (hide redundant 'My Library' micro-kicker) */
html body:not(.admin-shell-body) .juf-user-chip-v24 .juf-user-chip-copy > small,
html body:not(.admin-shell-body) .juf-user-chip-v24 small {
  display: none !important;
}

html body:not(.admin-shell-body) .juf-user-chip-v24 {
  min-height: 36px !important;
  padding: 3px 12px 3px 4px !important;
  border-radius: 999px !important;
  gap: 7px !important;
}

/* Give desktop global search pill breathing room so placeholder never clips */
@media (min-width: 1024px) {
  html body:not(.admin-shell-body) .juf-header-v24 #juf-global-search-form,
  html body:not(.admin-shell-body) .juf-header-v24 .juf-global-search-v40 {
    min-width: 240px !important;
    border-radius: 999px !important;
    border: 1px solid var(--line, #DEDAD2) !important;
  }
}

/* Mobile bottom nav: harmonize active color with site accent (no harsh royal blue) */
html body:not(.reader-page):not(.admin-shell-body) #juf-yt-bottom-nav.juf-yt-bottom-nav a.is-active,
html body:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav a[aria-current="page"] {
  color: var(--accent, #3B4256) !important;
}

html body:not(.reader-page):not(.admin-shell-body) #juf-yt-bottom-nav.juf-yt-bottom-nav a.is-active svg,
html body:not(.reader-page):not(.admin-shell-body) .juf-yt-bottom-nav a[aria-current="page"] svg {
  color: var(--accent, #3B4256) !important;
  stroke: var(--accent, #3B4256) !important;
}

/* ==========================================================================
   Audit Part 2 / 10 — Homepage (`index.php`) Light & Fancy Polish (CSS-only)
   ========================================================================== */
html body.juf-homepage .newsletter-premium-wrapper {
  padding: 26px 24px !important;
  margin: 26px auto 36px !important;
  border-radius: 16px !important;
  background: var(--card, #FFFFFF) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.04), 0 8px 20px -14px rgba(40, 46, 55, 0.14) !important;
}

@media (min-width: 768px) {
  html body.juf-homepage .home-reading-gateway {
    max-width: 560px !important;
    background: var(--card, #FFFFFF) !important;
    border: 1px solid var(--line, #DEDAD2) !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(40, 46, 55, 0.04), 0 8px 18px -12px rgba(40, 46, 55, 0.14) !important;
  }
}

/* Harmonize Homepage primary CTA buttons to calm literary accent */
html body.juf-homepage :where(.btn-hero-cinematic-primary, .newsletter-luxury-btn) {
  background: var(--accent, #3B4256) !important;
  border-color: var(--accent, #3B4256) !important;
  color: var(--on-accent, #F6F5F2) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Refine Homepage Community Writings slider cards */
html body.juf-homepage .home-community-writings .juf-home-writing-card {
  background: var(--card, #FFFFFF) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.04), 0 8px 18px -14px rgba(40, 46, 55, 0.14) !important;
}

/* Tighter vertical rhythm on mobile homepage */
@media (max-width: 767px) {
  html body.juf-homepage :where(.home-authors-discovery, .home-audio-section, .home-testimonials, .home-community-writings) {
    margin-block: 22px !important;
  }
}

/* ==========================================================================
   Audit Part 10 / 10 — Auth, Premium, Search, Contact & Footer Final Polish
   ========================================================================== */
html body :where(.reader-auth-card, .reader-auth-panel-v27, .premium-plan-card, .premium-active-pass, .contact-card, .contact-info-card) {
  background: var(--card, #FFFFFF) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.04), 0 8px 20px -14px rgba(40, 46, 55, 0.14) !important;
}

html body :where(.reader-auth-submit-v27, .premium-primary-btn, .juf-checkout-pay-v32) {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  background: var(--accent, #3B4256) !important;
  border: 1px solid var(--accent, #3B4256) !important;
  color: var(--on-accent, #F6F5F2) !important;
  box-shadow: none !important;
}

html body .juf-footer-v24 {
  background: transparent !important;
  border-top: 1px solid color-mix(in srgb, var(--line, #DEDAD2) 80%, transparent) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Mobile Left Drawer — Clean, Organized, Warm 3-Mode Polish
   Matches paper/sepia/dark palette, warm gold Premium card, 1-line rows.
   ========================================================================== */
html body #juf-app-left-drawer.juf-app-left-drawer {
  background: var(--bg, #F6F5F2) !important;
  color: var(--ink, #282E37) !important;
  border-right: 1px solid var(--line, #DEDAD2) !important;
}

html body #juf-app-left-drawer .juf-app-drawer-head {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--line, #DEDAD2) !important;
}

html body #juf-app-left-drawer .juf-app-drawer-section-label {
  padding: 10px 16px 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--muted, #5B6470) !important;
}

html body #juf-app-left-drawer .juf-app-drawer-link {
  min-height: 40px !important;
  padding: 7px 14px !important;
  margin: 1px 8px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  gap: 11px !important;
  color: var(--ink, #282E37) !important;
}

html body #juf-app-left-drawer .juf-app-drawer-link.active,
html body #juf-app-left-drawer .juf-app-drawer-link[aria-current="page"] {
  background: color-mix(in srgb, var(--accent, #3B4256) 11%, transparent) !important;
  color: var(--accent, #3B4256) !important;
  font-weight: 600 !important;
}

html body #juf-app-left-drawer .juf-app-drawer-premium {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  margin: 10px 12px 6px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--gold, #8A4513) 10%, var(--card, #FFFFFF)) !important;
  border: 1px solid color-mix(in srgb, var(--gold, #8A4513) 26%, var(--line, #DEDAD2)) !important;
  text-decoration: none !important;
}

html body #juf-app-left-drawer .juf-app-drawer-premium strong {
  color: var(--gold, #8A4513) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

html body #juf-app-left-drawer .juf-app-drawer-premium span {
  color: var(--muted, #5B6470) !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
}

html body #juf-app-left-drawer .juf-app-drawer-foot {
  margin-top: 6px !important;
  padding-top: 6px !important;
  border-top: 1px solid var(--line, #DEDAD2) !important;
}

/* ==========================================================================
   Deep Audit Fixes 2, 3 & 6 — Notifications, Support, Contact, Search & Utility
   Adds missing PDF/Sepia & Dark mode harmony for secondary pages.
   ========================================================================== */
html[data-theme="pdf"] body:is(.juf-page-notifications, .juf-page-support, .juf-page-contact, .juf-page-forgot-password, .juf-page-reset-password, .juf-page-resend-verification, .juf-page-verify-email) :where(.notification-card, .notification-toolbar, .support-card, .support-public-entry, .contact-card, .contact-info-card, .reader-auth-card, .reader-auth-panel-v27),
html body[data-pdf-mode="pdf"]:is(.juf-page-notifications, .juf-page-support, .juf-page-contact, .juf-page-forgot-password, .juf-page-reset-password, .juf-page-resend-verification, .juf-page-verify-email) :where(.notification-card, .notification-toolbar, .support-card, .support-public-entry, .contact-card, .contact-info-card, .reader-auth-card, .reader-auth-panel-v27) {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
  border-radius: 14px !important;
}

html[data-theme="pdf"] body.juf-page-notifications .notification-toolbar nav a.active,
html body[data-pdf-mode="pdf"].juf-page-notifications .notification-toolbar nav a.active {
  background: #4B4332 !important;
  border-color: #4B4332 !important;
  color: #F1E9D8 !important;
}

html body :where(.juf-search-shell, .juf-search-result-card) {
  border-radius: 14px !important;
}

html[data-theme="pdf"] body :where(.juf-search-result-card, .juf-search-empty-compact),
html body[data-pdf-mode="pdf"] :where(.juf-search-result-card, .juf-search-empty-compact) {
  background: #F9F6EF !important;
  border: 1px solid #D8CBB0 !important;
  color: #3A3226 !important;
}

html[data-theme="dark"] body :where(.juf-search-result-card, .juf-search-empty-compact),
html body.dark-mode :where(.juf-search-result-card, .juf-search-empty-compact) {
  background: #2C3037 !important;
  border: 1px solid #3A3F47 !important;
  color: #ECE8E1 !important;
}


/* ============================================================================
   BUILD 660 — LITERARY WRITING STUDIO MODAL (#juf-app-write-modal) 3-MODE HARMONY
   Harmonizes legacy modal (opened from frozen index.php & writings.php) with
   calm Light (#3B4256), Sepia/PDF (#F1E9D8 / #4B4332), and Dark (#23262B / #C9D4EC).
   ============================================================================ */
html body #juf-app-write-modal .juf-write-sheet-bar {
  background: rgba(246, 245, 242, 0.92) !important;
  border-bottom: 1px solid #DEDAD2 !important;
  padding: 8px 14px !important;
}
html[data-theme="pdf"] body #juf-app-write-modal:not([hidden]) {
  background: #F1E9D8 !important;
  color: #3A3226 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-write-sheet-bar {
  background: rgba(241, 233, 216, 0.94) !important;
  border-bottom-color: #D8CBB0 !important;
}
html[data-theme="dark"] body #juf-app-write-modal:not([hidden]) {
  background: #23262B !important;
  color: #ECE8E1 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-write-sheet-bar {
  background: rgba(35, 38, 43, 0.94) !important;
  border-bottom-color: #3A3F47 !important;
}
html body #juf-app-write-modal .juf-studio-brand-title {
  font-size: 14.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body #juf-app-write-modal .juf-write-close-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
  border-color: #DEDAD2 !important;
  color: #282E37 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-write-close-btn {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-write-close-btn {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}
html body #juf-app-write-modal .juf-write-draft-btn {
  min-height: 36px !important;
  padding: 0 14px !important;
  background: #FFFFFF !important;
  border-color: #DEDAD2 !important;
  color: #282E37 !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.05) !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-write-draft-btn {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-write-draft-btn {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}
html body #juf-app-write-modal .juf-write-publish-btn {
  min-height: 36px !important;
  padding: 0 16px !important;
  background: #3B4256 !important;
  color: #F6F5F2 !important;
  box-shadow: 0 2px 8px rgba(59, 66, 86, 0.2) !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-write-publish-btn {
  background: #4B4332 !important;
  color: #F1E9D8 !important;
  box-shadow: 0 2px 8px rgba(75, 67, 50, 0.2) !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-write-publish-btn {
  background: #C9D4EC !important;
  color: #23262B !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}
html body #juf-app-write-modal .juf-write-type-pill {
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  background: #FFFFFF !important;
  border-color: #DEDAD2 !important;
  color: #5B6470 !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.04) !important;
}
html body #juf-app-write-modal .juf-write-type-pill.is-active {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #F6F5F2 !important;
  box-shadow: 0 2px 8px rgba(59, 66, 86, 0.18) !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-write-type-pill {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #6A5E4B !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-write-type-pill.is-active {
  background: #4B4332 !important;
  border-color: #4B4332 !important;
  color: #F1E9D8 !important;
  box-shadow: 0 2px 8px rgba(75, 67, 50, 0.18) !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-write-type-pill {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #A9AEB6 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-write-type-pill.is-active {
  background: #C9D4EC !important;
  border-color: #C9D4EC !important;
  color: #23262B !important;
}
html body #juf-app-write-modal .juf-studio-canvas-card {
  background: #FFFFFF !important;
  border: 1px solid #DEDAD2 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(40, 46, 55, 0.05) !important;
}
html body #juf-app-write-modal .juf-studio-canvas-card:focus-within {
  border-color: #B8B2A6 !important;
  box-shadow: 0 6px 22px rgba(40, 46, 55, 0.08) !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-canvas-card {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-canvas-card:focus-within {
  border-color: #A89A7E !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-studio-canvas-card {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-studio-canvas-card:focus-within {
  border-color: #545B68 !important;
}
html body #juf-app-write-modal .juf-studio-toolbar {
  background: #EDEBE6 !important;
  border-bottom-color: #DEDAD2 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-toolbar {
  background: #E8DEC8 !important;
  border-bottom-color: #D8CBB0 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-studio-toolbar {
  background: #23262B !important;
  border-bottom-color: #3A3F47 !important;
}
html body #juf-app-write-modal .juf-studio-tool-btn:active,
html body #juf-app-write-modal .juf-studio-tool-btn.is-active {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #F6F5F2 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-tool-btn {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-tool-btn:active,
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-tool-btn.is-active {
  background: #4B4332 !important;
  border-color: #4B4332 !important;
  color: #F1E9D8 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-studio-tool-btn:active,
html[data-theme="dark"] body #juf-app-write-modal .juf-studio-tool-btn.is-active {
  background: #C9D4EC !important;
  border-color: #C9D4EC !important;
  color: #23262B !important;
}
html body #juf-app-write-modal #juf-app-write-heading:focus,
html body #juf-app-write-modal #juf-app-write-heading:focus-visible,
html body #juf-app-write-modal #juf-app-write-body:focus,
html body #juf-app-write-modal #juf-app-write-body:focus-visible {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-series-box,
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-footer,
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-preview-pane {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-series-input {
  background: #F1E9D8 !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
}
html body #juf-app-write-modal .juf-studio-progress-fill {
  background: #3B4256 !important;
}
html[data-theme="pdf"] body #juf-app-write-modal .juf-studio-progress-fill {
  background: #4B4332 !important;
}
html[data-theme="dark"] body #juf-app-write-modal .juf-studio-progress-fill {
  background: #C9D4EC !important;
}


/* ==========================================================================
   BUILD 660 — BIOGRAPHY HERO EDITORIAL TINT & CALM ACCENT HARMONY (LATE WIN)
   Matches Continue Reading rich editorial gradient when no BG image uploaded.
   ========================================================================== */
html body.authors-page .juf-authors-cinematic-hero.is-editorial-tint,
html body .juf-authors-cinematic-hero.is-editorial-tint {
  background-blend-mode: normal !important;
  background-color: hsl(var(--bio-h, 28) 38% 89%) !important;
  background-image:
    radial-gradient(110% 130% at 8% 0%, hsl(var(--bio-h, 28) 56% 80% / 0.88), transparent 58%),
    radial-gradient(105% 125% at 94% 12%, hsl(calc(var(--bio-h, 28) + 38) 46% 82% / 0.78), transparent 56%),
    linear-gradient(155deg, hsl(var(--bio-h, 28) 40% 88%), #F6F5F2 82%) !important;
  border: 1px solid color-mix(in srgb, hsl(var(--bio-h, 28) 36% 70%) 52%, #DEDAD2) !important;
  box-shadow: 0 10px 28px -16px rgba(40, 46, 55, 0.2) !important;
}

html body.authors-page .juf-authors-cinematic-hero.is-editorial-tint .juf-biography-hero-media-wash,
html body.authors-page .juf-authors-cinematic-hero.is-editorial-tint .hero-visual-art-aura {
  display: none !important;
  background: none !important;
}

html[data-theme="pdf"] body.authors-page .juf-authors-cinematic-hero.is-editorial-tint,
html[data-theme="pdf"] body .juf-authors-cinematic-hero.is-editorial-tint {
  background-blend-mode: normal !important;
  background-color: #E7DCC6 !important;
  background-image:
    radial-gradient(110% 130% at 8% 0%, hsl(var(--bio-h, 28) 44% 76% / 0.85), transparent 58%),
    radial-gradient(105% 125% at 94% 12%, hsl(calc(var(--bio-h, 28) + 36) 38% 79% / 0.72), transparent 56%),
    linear-gradient(155deg, #E6D9BF, #F1E9D8 82%) !important;
  border: 1px solid #D2C3A3 !important;
}

html[data-theme="dark"] body.authors-page .juf-authors-cinematic-hero.is-editorial-tint,
html[data-theme="dark"] body .juf-authors-cinematic-hero.is-editorial-tint {
  background-blend-mode: normal !important;
  background-color: #282C33 !important;
  background-image:
    radial-gradient(110% 130% at 8% 0%, hsl(var(--bio-h, 28) 32% 28% / 0.9), transparent 58%),
    radial-gradient(105% 125% at 94% 12%, hsl(calc(var(--bio-h, 28) + 38) 26% 24% / 0.78), transparent 56%),
    linear-gradient(155deg, #2D3139, #23262B 82%) !important;
  border: 1px solid #3A3F47 !important;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.48) !important;
}

/* Harmonize Biography Hero CTA & Active Alphabet Pill (calm 3-mode accent, no cobalt blue) */
html body.authors-page .juf-authors-cinematic-hero .btn-hero-cinematic-primary,
html body.authors-page .juf-author-alphabet a.is-active,
html body.authors-page .juf-author-alphabet button.is-active,
html body.authors-page .juf-alpha-pill.is-active {
  background: #3B4256 !important;
  border-color: #3B4256 !important;
  color: #F6F5F2 !important;
  box-shadow: 0 4px 12px -4px rgba(59, 66, 86, 0.34) !important;
}

html[data-theme="pdf"] body.authors-page .juf-authors-cinematic-hero .btn-hero-cinematic-primary,
html[data-theme="pdf"] body.authors-page .juf-author-alphabet a.is-active,
html[data-theme="pdf"] body.authors-page .juf-author-alphabet button.is-active,
html[data-theme="pdf"] body.authors-page .juf-alpha-pill.is-active {
  background: #4B4332 !important;
  border-color: #4B4332 !important;
  color: #F1E9D8 !important;
}

html[data-theme="dark"] body.authors-page .juf-authors-cinematic-hero .btn-hero-cinematic-primary,
html[data-theme="dark"] body.authors-page .juf-author-alphabet a.is-active,
html[data-theme="dark"] body.authors-page .juf-author-alphabet button.is-active,
html[data-theme="dark"] body.authors-page .juf-alpha-pill.is-active {
  background: #C9D4EC !important;
  border-color: #C9D4EC !important;
  color: #23262B !important;
}


/* ==========================================================================
   BUILD 660 — SITEWIDE 3-MODE EDITORIAL LABEL, QUICK FACTS & ACCENT HARMONY
   Unifies warm terracotta-gold labels (#8A4513 Light/PDF, #E0A56F Dark),
   crisp ink values (#282E37 / #3A3226 / #ECE8E1), and symmetric grid padding
   across Biography, Book Details, Audiobooks, Lists, Explore, Quiz & Writings.
   ========================================================================== */

/* 1. Book Details Quick Facts (.juf-publication-facts) — Symmetric Padding + 3-Mode Colors */
html body .juf-publication-facts > div {
  padding: 12px 14px !important;
  box-sizing: border-box !important;
}

html body .juf-publication-facts dt,
html body .juf-person .person-word-guide-grid dt,
html body .juf-person .person-timeline time,
html body .juf-person .person-timeline-year,
html body .juf-person .person-short-intro .person-intro-label,
html body .juf-person .person-hero-facts dt {
  color: #8A4513 !important;
  font-weight: 600 !important;
}

html body .juf-publication-facts dd,
html body .juf-person .person-word-guide-grid dd,
html body .juf-person .person-hero-facts dd {
  color: #282E37 !important;
}

html[data-theme="pdf"] body .juf-publication-facts dt,
html[data-theme="pdf"] body .juf-person .person-word-guide-grid dt,
html[data-theme="pdf"] body .juf-person .person-timeline time,
html[data-theme="pdf"] body .juf-person .person-timeline-year,
html[data-theme="pdf"] body .juf-person .person-short-intro .person-intro-label,
html[data-theme="pdf"] body .juf-person .person-hero-facts dt {
  color: #8A4513 !important;
}

html[data-theme="pdf"] body .juf-publication-facts dd,
html[data-theme="pdf"] body .juf-person .person-word-guide-grid dd,
html[data-theme="pdf"] body .juf-person .person-hero-facts dd {
  color: #3A3226 !important;
}

html[data-theme="dark"] body .juf-publication-facts dt,
html[data-theme="dark"] body .juf-person .person-word-guide-grid dt,
html[data-theme="dark"] body .juf-person .person-timeline time,
html[data-theme="dark"] body .juf-person .person-timeline-year,
html[data-theme="dark"] body .juf-person .person-short-intro .person-intro-label,
html[data-theme="dark"] body .juf-person .person-hero-facts dt {
  color: #E0A56F !important;
}

html[data-theme="dark"] body .juf-publication-facts dd,
html[data-theme="dark"] body .juf-person .person-word-guide-grid dd,
html[data-theme="dark"] body .juf-person .person-hero-facts dd {
  color: #ECE8E1 !important;
}

/* 2. Biography Section Left Accent Bar & Prose Links (3-Mode) */
html body .juf-person .person-prose .person-biography-section-title {
  border-inline-start-color: #8A4513 !important;
}

html[data-theme="dark"] body .juf-person .person-prose .person-biography-section-title {
  border-inline-start-color: #E0A56F !important;
  color: #ECE8E1 !important;
}

html[data-theme="dark"] body .juf-person .person-prose a {
  color: #C9D4EC !important;
  text-decoration-color: rgba(201, 212, 236, 0.45) !important;
}

html[data-theme="pdf"] body .juf-person .person-prose a {
  color: #4B4332 !important;
  text-decoration-color: rgba(75, 67, 50, 0.42) !important;
}

/* 3. Audiobooks & Book Details Kickers / Chapter Numbers (Dark Mode Warm Accent) */
html[data-theme="dark"] body :where(
  .juf-chapter-num,
  .juf-chapter-index,
  .audio-chapter-num,
  .juf-audio-kicker,
  .juf-book-kicker,
  .juf-ls-kicker
) {
  color: #E0A56F !important;
}

html body :where(
  .juf-chapter-num,
  .juf-chapter-index,
  .audio-chapter-num,
  .juf-audio-kicker,
  .juf-book-kicker
) {
  color: #8A4513 !important;
}

/* 4. Sitewide Calm 3-Mode Primary Buttons (Zero Cobalt Blue #3346A8) */
html body :where(
  .juf-ex-search-btn,
  .juf-book-read-cta,
  .juf-audio-play-cta,
  .juf-quiz-start-btn
) {
  background-color: #3B4256 !important;
  color: #F6F5F2 !important;
  border-color: #3B4256 !important;
}

html[data-theme="pdf"] body :where(
  .juf-ex-search-btn,
  .juf-book-read-cta,
  .juf-audio-play-cta,
  .juf-quiz-start-btn
) {
  background-color: #4B4332 !important;
  color: #F1E9D8 !important;
  border-color: #4B4332 !important;
}

html[data-theme="dark"] body :where(
  .juf-ex-search-btn,
  .juf-book-read-cta,
  .juf-audio-play-cta,
  .juf-quiz-start-btn
) {
  background-color: #C9D4EC !important;
  color: #23262B !important;
  border-color: #C9D4EC !important;
}


/* ==========================================================================
   BUILD 660 — HOMEPAGE CONTINUE READING 3-TRACKER (Matches Explore / books.php)
   ========================================================================== */
html body .juf-home-cont-grid {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  scroll-snap-type: x proximity !important;
  margin: 0 0 26px !important;
  padding: 2px 0 6px !important;
  scrollbar-width: none !important;
  width: 100% !important;
}

html body .juf-home-cont-grid::-webkit-scrollbar {
  display: none !important;
}

html body .juf-home-cont-grid .juf-home-cont {
  flex: 0 0 min(86%, 350px) !important;
  scroll-snap-align: start !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  border: 1px solid #DEDAD2 !important;
  box-shadow: 0 3px 12px -6px rgba(40, 46, 55, 0.14) !important;
  min-width: 0 !important;
}

html body .juf-home-cont-grid.is-single .juf-home-cont {
  flex: 1 1 auto !important;
  max-width: 480px !important;
}

html[data-theme="pdf"] body .juf-home-cont-grid .juf-home-cont {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
}

html[data-theme="dark"] body .juf-home-cont-grid .juf-home-cont {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.45) !important;
}

html body .juf-home-cont-cover {
  width: 56px !important;
  height: 84px !important;
  aspect-ratio: 2 / 3 !important;
  flex: none !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  display: block !important;
}

html body .juf-home-cont-cover > .juf-book-jacket,
html body .juf-home-cont-cover img,
html body .juf-home-cont-cover svg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

html body .juf-home-cont-info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

html body .juf-home-cont-kicker {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #8A4513 !important;
  line-height: 1.3 !important;
}

html[data-theme="dark"] body .juf-home-cont-kicker {
  color: #E0A56F !important;
}

html body .juf-home-cont-title {
  display: block !important;
  margin-top: 2px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #282E37 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-theme="pdf"] body .juf-home-cont-title {
  color: #3A3226 !important;
}

html[data-theme="dark"] body .juf-home-cont-title {
  color: #ECE8E1 !important;
}

html body .juf-home-prog {
  height: 6px !important;
  margin: 6px 0 5px !important;
  border-radius: 3px !important;
  background: #E8E5DE !important;
  overflow: hidden !important;
}

html[data-theme="pdf"] body .juf-home-prog {
  background: #E3D6BD !important;
}

html[data-theme="dark"] body .juf-home-prog {
  background: #3A3F47 !important;
}

html body .juf-home-prog > i {
  display: block !important;
  height: 100% !important;
  border-radius: 3px !important;
  background: #3B4256 !important;
}

html[data-theme="pdf"] body .juf-home-prog > i {
  background: #4B4332 !important;
}

html[data-theme="dark"] body .juf-home-prog > i {
  background: #C9D4EC !important;
}

html body .juf-home-cont-meta {
  display: block !important;
  font-size: 12.5px !important;
  color: #5B6470 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-theme="pdf"] body .juf-home-cont-meta {
  color: #6A5E4B !important;
}

html[data-theme="dark"] body .juf-home-cont-meta {
  color: #A9AEB6 !important;
}

html body .juf-home-cont-btn {
  flex: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #3B4256 !important;
  color: #F6F5F2 !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px -4px rgba(59, 66, 86, 0.35) !important;
}

html[data-theme="pdf"] body .juf-home-cont-btn {
  background: #4B4332 !important;
  color: #F1E9D8 !important;
}

html[data-theme="dark"] body .juf-home-cont-btn {
  background: #C9D4EC !important;
  color: #23262B !important;
}

@media (min-width: 768px) {
  html body .juf-home-cont-grid:not(.is-single) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    overflow-x: visible !important;
    gap: 14px !important;
  }
  html body .juf-home-cont-grid:not(.is-single) .juf-home-cont {
    flex: initial !important;
  }
}


/* ==========================================================================
   BUILD 660 — HOMEPAGE HERO (#hero-stage) EXACT CONTINUE-READING TINT PALETTE
   Per-slide soft pastel tints matching 1000187955 (Slate), 1000187954 (Cream),
   1000187956 (Sage Mint), plus Lavender, Honey & Blush across all 3 modes.
   ========================================================================== */
html body.juf-homepage #hero-stage.hero-cinematic-stage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

html body.juf-homepage #hero-stage .hero-slide-item .hero-bg-art-layer,
html body.juf-homepage #hero-stage .hero-slide-item .hero-visual-art-aura {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

/* Light Mode — Exact Continue Reading Soft Pastel Gradients (beats [data-home-timing]) */
html body.juf-homepage #hero-stage#hero-stage .hero-slide-item,
html:not([data-theme="dark"]):not([data-theme="pdf"]) body.juf-homepage #hero-stage#hero-stage .hero-slide-item {
  border-radius: 20px !important;
  background-color: var(--hc-tint, #C5D2E8) !important;
  background-image: linear-gradient(155deg, var(--hc-tint, #C5D2E8) 0%, #F6F5F2 76%) !important;
  background: linear-gradient(155deg, var(--hc-tint, #C5D2E8) 0%, #F6F5F2 76%) !important;
  border: 1px solid var(--hc-bd, #B6C5DF) !important;
  box-shadow: 0 6px 22px -12px rgba(40, 46, 55, 0.16) !important;
}
html body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+1) { --hc-tint: #C5D2E8; --hc-bd: #B4C4DF; }
html body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+2) { --hc-tint: #EDE0CE; --hc-bd: #DFCEB8; }
html body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+3) { --hc-tint: #C1DFD2; --hc-bd: #AED1C2; }
html body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+4) { --hc-tint: #D9D0E8; --hc-bd: #C8BCDE; }
html body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+5) { --hc-tint: #F1DCC2; --hc-bd: #E2C9AA; }
html body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+6) { --hc-tint: #E9D1CD; --hc-bd: #D9BDB8; }

/* Sepia / PDF Mode — Warm Parchment Blends */
html[data-theme="pdf"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item {
  background: linear-gradient(155deg, color-mix(in srgb, var(--hc-tint) 68%, #E8DEC8) 0%, #F1E9D8 78%) !important;
  border-color: color-mix(in srgb, var(--hc-bd) 55%, #D8CBB0) !important;
}

/* Dark Mode — Soft Moody Editorial Tints */
html[data-theme="dark"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item {
  background: linear-gradient(155deg, var(--hc-dark, #2D3646) 0%, #23262B 80%) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 8px 26px -12px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+1) { --hc-dark: #2D3748; }
html[data-theme="dark"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+2) { --hc-dark: #3B342B; }
html[data-theme="dark"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+3) { --hc-dark: #263B34; }
html[data-theme="dark"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+4) { --hc-dark: #352F42; }
html[data-theme="dark"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+5) { --hc-dark: #3D3327; }
html[data-theme="dark"] body.juf-homepage #hero-stage#hero-stage .hero-slide-item:nth-child(6n+6) { --hc-dark: #3D2E30; }

/* Colored SVG Brand Logo 3-Mode Switching */
html[data-theme="dark"] body .juf-header-v24 .juf-brand-wordmark-v24,
html[data-theme="dark"] body .juf-header-v24 .juf-brand-symbol-v24 {
  filter: none !important;
}
html:not([data-theme="dark"]) body .juf-header-v24 .juf-brand-theme-dark,
html:not([data-theme="dark"]) body.juf-minimal-chrome:not(.admin-shell-body) .juf-header-v24 .juf-brand-theme-dark,
html[data-theme="dark"] body .juf-header-v24 .juf-brand-theme-light,
html[data-theme="dark"] body.juf-minimal-chrome:not(.admin-shell-body) .juf-header-v24 .juf-brand-theme-light {
  display: none !important;
}
