@charset "UTF-8";

/* === MERGED FROM assets/css/jufbook-profile-responsive-polish.css === */
/* JUFbook Reader Profile — premium responsive identity + reading desk.
 * This is the authoritative profile presentation layer. Data, permissions and
 * reader workflows remain owned by profile.php and the existing helpers.
 */

.profile-hub{
    --profile-paper:#F6F5F2;
    --profile-cream:#ECEAE6;
    --profile-tan:#E4E6EC;
    --profile-border:#D9D6D0;
    --profile-brown:#3B4256;
    --profile-brown-soft:#3B4256;
    --profile-rust:#3B4256;
    --profile-ink:#3B4256;
    --profile-muted:#3B4256;
    max-width:1360px;
    margin:24px auto 64px;
    padding:0 22px;
}

/* ── Phase P1: reference-aligned identity hero ───────────────── */
body.juf-2d-minimal .profile-hub .profile-hub-hero{
    position:relative;
    isolation:isolate;
    min-height:258px;
    padding:0;
    overflow:hidden;
    border:1px solid #D9D6D0!important;
    border-radius:22px;
    background:#3B4256!important;
    box-shadow:0 14px 34px rgba(40, 46, 55, .10)!important;
}
.profile-hero-backdrop{
    position:absolute;
    inset:0;
    z-index:-2;
    overflow:hidden;
    background:
        radial-gradient(circle at 78% 26%,rgba(40, 46, 55, .18),transparent 18%),
        radial-gradient(circle at 18% 8%,rgba(91, 99, 118, .15),transparent 23%),
        linear-gradient(104deg,#3B4256 0%,#3B4256 38%,#3B4256 67%,#3B4256 100%);
}
.profile-hero-backdrop::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(180deg,rgba(255, 255, 255, .025),rgba(0, 0, 0, .16)),
        repeating-linear-gradient(90deg,transparent 0 86px,rgba(255, 255, 255, .022) 87px 88px);
    opacity:.88;
}
.profile-hero-backdrop::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:72px;
    background:linear-gradient(180deg,transparent,rgba(40, 46, 55, .26));
}
.profile-hero-shelf{
    position:absolute;
    right:23%;
    top:22px;
    width:310px;
    height:162px;
    border-radius:7px;
    opacity:.48;
    background:
        linear-gradient(#3B4256,#3B4256) 0 31px/100% 5px no-repeat,
        linear-gradient(#3B4256,#3B4256) 0 80px/100% 5px no-repeat,
        linear-gradient(#3B4256,#3B4256) 0 129px/100% 5px no-repeat,
        repeating-linear-gradient(90deg,rgba(91, 99, 118, .16) 0 17px,rgba(40, 46, 55, .12) 18px 22px) 8px 0/292px 154px no-repeat;
    filter:blur(.15px);
}
.profile-hero-book{position:absolute;display:block;width:174px;height:30px;border-radius:4px 9px 9px 4px;right:39%;background:#D9D6D0;border:1px solid rgba(255, 255, 255, .12);box-shadow:0 9px 18px rgba(0, 0, 0, .20)}
.profile-hero-book::before{content:"";position:absolute;left:8px;top:3px;bottom:3px;width:9px;border-right:1px solid rgba(255, 255, 255, .22);border-left:1px solid rgba(0, 0, 0, .16)}
.profile-hero-book::after{content:"";position:absolute;left:28px;right:18px;top:8px;height:1px;background:rgba(255, 255, 255, .20);box-shadow:0 7px rgba(255, 255, 255, .10),0 14px rgba(255, 255, 255, .07)}
.profile-hero-book.book-one{top:31px;transform:rotate(-2.4deg)}
.profile-hero-book.book-two{top:66px;right:37%;width:190px;background:#3B4256;transform:rotate(1.7deg)}
.profile-hero-book.book-three{top:103px;right:40%;width:170px;background:#3B4256;transform:rotate(-1deg)}
.profile-hero-cup{position:absolute;right:24%;bottom:57px;width:58px;height:61px;border:3px solid rgba(40, 46, 55, .68);border-top:0;border-radius:5px 5px 20px 20px;box-shadow:0 10px 20px rgba(0, 0, 0, .16)}
.profile-hero-cup::before{content:"";position:absolute;left:8px;right:8px;top:14px;height:1px;background:rgba(40, 46, 55, .35);box-shadow:0 7px rgba(40, 46, 55, .22)}
.profile-hero-cup::after{content:"";position:absolute;right:-20px;top:16px;width:22px;height:25px;border:3px solid rgba(40, 46, 55, .60);border-left:0;border-radius:0 18px 18px 0}
.profile-hero-leaf{position:absolute;right:3.5%;top:31px;width:58px;height:92px;border-right:2px solid rgba(217, 214, 208, .42);transform:rotate(13deg)}
.profile-hero-leaf::before,.profile-hero-leaf::after{content:"";position:absolute;width:27px;height:12px;border:2px solid rgba(217, 214, 208, .38);border-left:0;border-bottom:0;border-radius:100% 0;right:-2px}
.profile-hero-leaf::before{top:15px;transform:rotate(-20deg)}
.profile-hero-leaf::after{top:47px;transform:rotate(18deg)}
.profile-hero-quote{position:absolute;z-index:2;right:34px;top:33px;max-width:190px;text-align:right;color:#F6F5F2;text-shadow:0 2px 8px rgba(0, 0, 0, .22)}
.profile-hero-quote strong{display:block;font-family:var(--font-display-literary);font-size:20px;line-height:1.35;font-weight:500}
.profile-hero-quote span{display:block;margin-top:7px;color:#F6F5F2;font-size:10px;letter-spacing:normal}

.profile-hub-identity{
    position:relative;
    z-index:3;
    display:grid;
    grid-template-columns:142px minmax(0,1fr);
    gap:24px;
    align-items:center;
    width:min(840px,72%);
    min-height:142px;
    margin-top:112px;
    padding:14px 74px 16px 24px;
    background:rgba(236, 234, 230, .985);
    clip-path:polygon(0 0,91% 0,100% 100%,0 100%);
}
.profile-avatar-wrap{position:relative;width:142px;height:142px;align-self:end}
.profile-hub-avatar{
    width:142px;
    height:142px;
    border-radius:50%;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:#E4E6EC;
    color:#282E37;
    border:5px solid #D9D6D0;
    box-shadow:0 9px 24px rgba(59, 66, 86, .20);
    font:500 28px/1 var(--font-heading-editorial);
}
.profile-hub-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.profile-avatar-edit{position:absolute;right:3px;bottom:7px;z-index:2;display:grid;place-items:center;width:34px;height:34px;border:3px solid #D9D6D0;border-radius:50%;background:#3B4256;color:#FFF;text-decoration:none;box-shadow:0 5px 14px rgba(0, 0, 0, .18)}
.profile-avatar-edit:hover{background:#2C3243}
.profile-avatar-edit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.profile-identity-copy{min-width:0;padding:1px 0 0}
.profile-identity-copy .section-overline-label{display:none}
.profile-hub-identity h1{margin:0;font-family:var(--font-display-literary);font-size:clamp(30px,2.7vw,36px);line-height:1.15;color:#282E37;overflow-wrap:anywhere}
.profile-hub-identity .reader-bio{max-width:58ch;margin:7px 0 0;color:#282E37;font-family:var(--font-reading);font-size:17.5px;line-height:1.7;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.profile-hub-identity .reader-bio.is-empty{color:#5B6376}
.profile-identity-meta{display:flex;flex-wrap:wrap;gap:7px 15px;margin-top:9px;color:#5B6376;font-size:11.5px}
.profile-identity-meta span{display:inline-flex;align-items:center;min-height:24px}
.profile-identity-meta .is-premium{padding:0 9px;border:1px solid #D9D6D0;border-radius:999px;color:#282E37;background:#ECEAE6;font-weight:500}
.profile-hub-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.profile-hub-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 13px;border:1px solid #D9D6D0;border-radius:8px;background:#ECEAE6;color:#282E37;text-decoration:none;font-size:11px;font-weight:500}
.profile-hub-actions a.is-primary{background:#3B4256;color:#FFF;border-color:#3B4256}
.profile-hub-actions a:hover{border-color:#2C3243}

/* ── Phase P2: reference-aligned stats + navigation ────────── */
.profile-hub-controls{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:12px;
}
.profile-hub-stats{
    order:2;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:0;
    margin:0;
    overflow:hidden;
    border:1px solid #D9D6D0;
    border-radius:16px;
    background:#ECEAE6;
    box-shadow:0 7px 22px rgba(40, 46, 55, .045);
}
.profile-hub-stats a{
    position:relative;
    display:grid;
    grid-template-columns:34px minmax(0,1fr);
    align-items:center;
    column-gap:10px;
    min-height:78px;
    padding:10px 14px;
    color:#282E37;
    text-decoration:none;
    border-right:1px solid #D9D6D0;
    transition:background-color .18s ease,color .18s ease;
}
.profile-hub-stats a:last-child{border-right:0}
.profile-hub-stats a:hover{background:#ECEAE6;color:#282E37}
.profile-stat-icon{
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    color:#5B6376;
}
.profile-stat-icon svg{
    width:27px;
    height:27px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.profile-hub-stats a:nth-child(2) .profile-stat-icon svg,
.profile-hub-stats a:nth-child(4) .profile-stat-icon svg{fill:currentColor;stroke:none}
.profile-stat-copy{display:flex;min-width:0;flex-direction:column;gap:4px;margin:0!important}
.profile-hub-stats .profile-stat-copy strong{
    font-family:var(--font-ui-system);
    font-size:24px;
    line-height:1;
    color:#282E37;
}
.profile-hub-stats .profile-stat-copy>span{
    margin:0;
    color:#5B6376;
    font-size:10.5px;
    line-height:1.25;
    white-space:nowrap;
}

/* Desktop/tablet reference places the navigation immediately below the identity hero. */
.reader-desk-nav{
    order:1;
    position:relative;
    display:flex;
    align-items:center;
    gap:4px;
    margin:0;
    padding:6px;
    overflow-x:auto;
    scrollbar-width:none;
    border:1px solid #D9D6D0;
    border-radius:15px;
    background:#ECEAE6;
    box-shadow:0 6px 20px rgba(40, 46, 55, .04);
}
.reader-desk-nav::-webkit-scrollbar{display:none}
.reader-desk-nav>a,.reader-desk-more>summary{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    flex:1 0 auto;
    min-height:45px;
    padding:0 13px;
    border:1px solid transparent;
    border-radius:10px;
    color:#282E37;
    text-decoration:none;
    font-size:11.5px;
    font-weight:500;
    cursor:pointer;
    white-space:nowrap;
    transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.reader-desk-nav>a:hover,.reader-desk-more>summary:hover{background:#ECEAE6;color:#282E37}
.reader-nav-icon{
    display:grid;
    place-items:center;
    width:18px;
    height:18px;
    flex:0 0 18px;
    color:#3B4256;
}
.reader-nav-icon svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.reader-desk-nav>a:nth-child(1) .reader-nav-icon svg,
.reader-desk-nav>a:nth-child(2) .reader-nav-icon svg{fill:currentColor;stroke:none}
.reader-desk-nav>a[aria-current="page"]{
    border-color:#D9D6D0;
    background:#ECEAE6;
    color:#282E37;
    box-shadow:0 2px 7px rgba(40, 46, 55, .08);
}
.reader-desk-nav>a[aria-current="page"] .reader-nav-icon{color:#3B4256}
.reader-nav-label{line-height:1.2}
.reader-desk-more{display:none;position:relative;flex:1 0 auto}
.reader-desk-more summary{list-style:none}
.reader-desk-more summary::-webkit-details-marker{display:none}
.reader-desk-more.is-current>summary{
    border-color:#D9D6D0;
    background:#ECEAE6;
    color:#282E37;
}
.reader-desk-more>div{
    position:absolute;
    right:0;
    top:50px;
    z-index:30;
    display:grid;
    min-width:188px;
    padding:6px;
    border:1px solid #D9D6D0;
    border-radius:12px;
    background:#ECEAE6;
    box-shadow:0 14px 30px rgba(40, 46, 55, .13);
}
.reader-desk-more>div a{
    padding:10px 12px;
    border-radius:8px;
    color:#282E37;
    text-decoration:none;
    font-size:12px;
}
.reader-desk-more>div a:hover,.reader-desk-more>div a[aria-current="page"]{background:#ECEAE6;color:#282E37}

.profile-hub-notice{margin:0 0 18px;border-radius:12px;padding:11px 13px;font-size:12px}

/* ── Overview composition ───────────────────────────────────── */
.profile-overview-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(275px,.75fr);gap:16px;align-items:start}
.profile-overview-main{min-width:0;display:grid;gap:16px}
.profile-overview-side{display:grid;gap:14px;position:sticky;top:86px;min-width:0}
.profile-view-overview .profile-hub-section{margin:0;padding:18px;border:1px solid #D9D6D0;border-radius:18px;background:#ECEAE6;box-shadow:0 6px 20px rgba(40, 46, 55, .035)}
.profile-view-overview .profile-hub-heading{margin:0 0 13px;padding:0}
.profile-view-overview .profile-hub-heading .section-overline-label{display:none}
.profile-view-overview .profile-hub-heading h2{font-size:25px;font-weight:500}
.profile-view-overview .profile-hub-heading>span,.profile-view-overview .profile-heading-link{font-size:10.5px}

.profile-side-card{padding:17px;border:1px solid #D9D6D0;border-radius:17px;background:#ECEAE6;box-shadow:0 6px 20px rgba(40, 46, 55, .035)}
.profile-side-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;font-weight:500;color:#282E37;font-size:13px}
.profile-side-heading a{color:#3B4256;text-decoration:none;font-size:10px;font-weight:650}
/* ── Phase P4: reference-aligned Reading Progress + Favourite Authors ── */
.profile-reading-summary{text-align:left}
.profile-reading-summary-body{display:grid;grid-template-columns:128px minmax(0,1fr);gap:15px;align-items:center}
.profile-reading-ring{--reading-complete:0%;--reading-current:0%;width:128px;height:128px;margin:2px 0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--profile-rust) 0 var(--reading-complete),#D9D6D0 var(--reading-complete) 100%);position:relative;box-shadow:inset 0 0 0 1px rgba(59, 66, 86, .04)}
.profile-reading-summary.is-empty .profile-reading-ring{background:#E4E6EC}
.profile-reading-ring::after{content:"";position:absolute;width:91px;height:91px;border-radius:50%;background:#ECEAE6;border:1px solid #D9D6D0}
.profile-reading-ring>div{position:relative;z-index:1;display:grid;text-align:center;line-height:1.08}
.profile-reading-ring strong{font-family:var(--font-heading);font-size:28px;color:#282E37}
.profile-reading-ring span{margin-top:4px;font-size:10px;color:#5B6376}
.profile-reading-key{display:grid;gap:10px;text-align:left}
.profile-reading-key span{display:grid;grid-template-columns:9px auto 1fr;align-items:center;gap:7px;color:#5B6376;font-size:10.8px;line-height:1.35}
.profile-reading-key b{font-size:12px;color:#282E37}
.profile-reading-key i{width:9px;height:9px;border-radius:50%;background:#D9D6D0}
.profile-reading-key i.is-complete{background:var(--profile-rust)}.profile-reading-key i.is-current{background:#D9D6D0}
.profile-reading-saved{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding-top:11px;border-top:1px solid #D9D6D0;color:#5B6376;font-size:10.5px}
.profile-reading-saved strong{color:#282E37;font-size:11.5px}
.profile-reading-activity-link{display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px;margin-top:11px;border:1px solid #D9D6D0;border-radius:10px;background:#ECEAE6;color:#3B4256;text-decoration:none;font-size:10.5px;font-weight:500}
.profile-reading-activity-link:hover{background:#ECEAE6}

.profile-side-premium{background:#E4E6EC;border-color:#D9D6D0}
.profile-side-premium.is-active{background:#ECEAE6}
.profile-side-premium .profile-side-eyebrow{display:block;margin-bottom:6px;color:#5B6376;font-size:9px;letter-spacing:normal;font-weight:500;text-transform:uppercase}
.profile-side-premium h2{margin:0 0 5px;font-family:var(--font-heading-editorial);font-size:25px;font-weight:500;color:#282E37}
.profile-side-premium p{margin:0 0 10px;color:#5B6376;font-family:var(--font-reading);font-size:17px;line-height:1.68}
.profile-side-premium>a{display:inline-flex;min-height:34px;align-items:center;padding:0 11px;border-radius:9px;background:#3B4256;color:#FFF;text-decoration:none;font-size:10.5px;font-weight:500}

.profile-side-account{display:grid;padding:11px 0}
.profile-side-account .profile-side-heading{padding:4px 14px 7px;margin:0}
.profile-side-account>a{display:flex;justify-content:space-between;align-items:center;min-height:42px;padding:0 14px;border-top:1px solid #D9D6D0;color:#282E37;text-decoration:none;font-size:11.5px}
.profile-side-account>a span{font-size:18px;color:#5B6376}

/* ── Section content ────────────────────────────────────────── */
.profile-hub-section{scroll-margin-top:90px}
.profile-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}
.profile-hub-heading h2{margin:0;font-family:var(--font-heading-editorial);font-size:26px;font-weight:500;color:#282E37}
.profile-hub-heading>span,.profile-heading-link{color:#5B6376;font-size:11px;text-decoration:none}
.profile-hub-empty{padding:16px 18px;border:1px dashed #D9D6D0;border-radius:14px;background:#ECEAE6;color:#282E37;text-align:left}.profile-hub-empty.is-dark{padding:16px 18px;border:1px dashed #3A3F47;border-radius:14px;background:#2C3037;color:#ECE8E1;text-align:left}
.profile-hub-empty strong,.profile-hub-empty.is-dark strong{display:block;margin-bottom:4px;color:#23262B;font-size:14px}
.profile-hub-empty p,.profile-hub-empty.is-dark p{margin:0 0 8px;max-width:680px;font-size:11.5px;line-height:1.6}
.profile-hub-empty a{color:#2F5D9E;font-size:11px;font-weight:500;text-decoration:none}.profile-hub-empty.is-dark a{color:#93B6EE;font-size:11px;font-weight:500;text-decoration:none}

.profile-p3-reading-library{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:16px;align-items:stretch;min-width:0}
.profile-p3-reading-library>.profile-hub-section{min-width:0;height:100%}
.profile-p3-heading{min-height:27px}
.profile-p3-title{display:flex;align-items:center;gap:8px;min-width:0}
.profile-section-title-icon{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;color:#3B4256}
.profile-section-title-icon svg{width:22px;height:22px;fill:currentColor;stroke:none}
.profile-p3-heading .profile-heading-link{display:inline-flex;align-items:center;min-height:28px;color:#3B4256;font-weight:500;white-space:nowrap}

.profile-continue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-view-overview .profile-continue-grid{grid-template-columns:1fr}
.profile-continue-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:15px;align-items:center;min-width:0;padding:13px;border:1px solid #D9D6D0;border-radius:15px;background:#FFF}
.profile-view-overview .profile-continue-card{grid-template-columns:112px minmax(0,1fr);gap:15px;padding:13px}
.profile-continue-card .profile-cover-link{display:block;align-self:stretch}
.profile-continue-card .juf-profile-cover-92{width:92px!important;min-height:138px!important;height:auto!important;aspect-ratio:2/3}
.profile-view-overview .profile-continue-card .juf-profile-cover-92{width:112px!important;min-height:168px!important}
.profile-card-copy{min-width:0}
.profile-card-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}
.profile-kicker{display:block;color:#3B4256;font-size:9.5px;font-weight:500;letter-spacing:normal}
.profile-card-topline>strong{flex:0 0 auto;color:#3B4256;font-family:var(--font-heading);font-size:13px;line-height:1}
.profile-card-copy h3,.profile-shelf-card-v25 h3,.profile-listening-card h3{margin:0 0 3px;font-family:var(--font-book-title,var(--font-heading));font-size:17px;line-height:1.45}
.profile-card-copy h3 a,.profile-shelf-card-v25 h3 a,.profile-listening-card h3 a{color:#282E37;text-decoration:none}
.profile-card-copy p,.profile-shelf-card-v25 p,.profile-listening-card p{margin:0 0 6px;color:#5B6376;font-size:11px}
.profile-progress{height:8px;margin:9px 0 7px;background:#E4E6EC;border-radius:999px;overflow:hidden}
.profile-progress i{display:block;height:100%;border-radius:inherit;background:#3B4256}
.profile-reading-position{display:block;margin:0 0 4px;color:#5B6376;font-size:10.2px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-last-read{display:block;color:#5B6376;font-size:9.3px;line-height:1.4}
.profile-continue-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:9px}
.profile-text-action,.profile-quiet-action{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border-radius:8px;text-decoration:none;font-size:10px;font-weight:500}
.profile-text-action{background:#3B4256;color:#FFF!important}
.profile-quiet-action{border:1px solid #D9D6D0;background:#ECEAE6;color:#5B6376!important}

.profile-shelf-grid-v25{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.profile-shelf-card-v25{display:grid;grid-template-columns:72px minmax(0,1fr);gap:11px;align-items:center;min-width:0;padding:10px;border:1px solid #D9D6D0;border-radius:14px;background:#FFF}
.profile-shelf-card-v25 .juf-profile-cover-76{width:72px!important;min-height:108px!important;height:auto!important;aspect-ratio:2/3}
.profile-inline-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.profile-inline-actions a,.profile-inline-actions button{border:0;background:transparent;padding:0;color:#3B4256;text-decoration:none;font:inherit;font-size:10px;font-weight:500;cursor:pointer}
.profile-view-overview .profile-shelf-grid-v25{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:1px 1px 5px;scrollbar-width:none}
.profile-view-overview .profile-shelf-grid-v25::-webkit-scrollbar{display:none}
.profile-view-overview .profile-shelf-card-v25{display:block;flex:0 0 102px;scroll-snap-align:start;padding:0;border:0;border-radius:10px;background:transparent;text-align:left}
.profile-view-overview .profile-shelf-card-v25>a{display:block;margin-bottom:7px}
.profile-view-overview .profile-shelf-card-v25 .juf-profile-cover-76{width:100%!important;min-height:0!important;aspect-ratio:2/3;border-radius:7px}
.profile-view-overview .profile-shelf-card-v25 h3{margin-bottom:1px;font-size:11.2px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-view-overview .profile-shelf-card-v25 p{margin:0;font-size:9.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-view-overview .profile-shelf-card-v25 .profile-inline-actions{display:none}
.profile-library-add-card{display:none}
.profile-view-overview .profile-library-add-card{display:grid;place-items:center;align-content:center;gap:7px;flex:0 0 92px;min-height:153px;padding:10px;scroll-snap-align:start;border:1px dashed #D9D6D0;border-radius:10px;background:#F6F5F2;color:#5B6376;text-align:center;text-decoration:none}
.profile-library-add-card span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#3B4256;color:#FFF;font-size:22px;font-weight:400;line-height:1}
.profile-library-add-card strong{font-size:9.6px;line-height:1.45;font-weight:650}

.profile-follow-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.profile-follow-strip article{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid #D9D6D0;border-radius:14px;background:#FFF}
.profile-author-avatar{width:50px;height:50px;flex:0 0 50px;border-radius:50%;overflow:hidden;background:#ECEAE6;text-decoration:none}
.profile-follow-strip article>div{min-width:0}.profile-follow-strip h3{margin:0 0 2px;font-family:var(--font-author,var(--font-heading));font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-follow-strip h3 a{color:#282E37;text-decoration:none}.profile-follow-strip p{margin:0 0 4px;color:var(--profile-muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-follow-strip form{margin:0}.profile-follow-strip button{border:0;background:none;padding:0;color:#3B4256;font-size:10px;font-weight:500;cursor:pointer}
.profile-view-overview .profile-p4-authors{overflow:hidden}
.profile-view-overview .profile-follow-strip{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:2px 1px 5px;scrollbar-width:none}
.profile-view-overview .profile-follow-strip::-webkit-scrollbar{display:none}
.profile-view-overview .profile-follow-strip article{display:grid;justify-items:center;align-content:start;flex:1 0 104px;max-width:128px;min-width:0;padding:2px 4px;border:0;border-radius:0;background:transparent;text-align:center;scroll-snap-align:start}
.profile-view-overview .profile-author-avatar{width:72px;height:72px;flex-basis:72px;margin-bottom:7px;border:1px solid #D9D6D0;box-shadow:0 3px 10px rgba(40, 46, 55, .07)}
.profile-view-overview .profile-follow-strip article>div{width:100%;min-width:0}
.profile-view-overview .profile-follow-strip h3{margin-bottom:2px;font-size:11.2px;font-weight:600;line-height:1.22;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip}.profile-view-overview .profile-follow-strip p{margin:0;font-size:9.4px;line-height:1.3;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip}.profile-view-overview .profile-follow-strip form{display:none}

.profile-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.profile-review-list article{min-width:0;padding:13px;border:1px solid #D9D6D0;border-radius:14px;background:#FFF}.profile-review-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.profile-review-top>div{display:flex;gap:5px;flex-wrap:wrap}.profile-review-top time{font-size:9.5px;color:var(--profile-muted)}.profile-status-chip,.profile-rating-chip{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;font-size:8.8px;font-weight:500}.profile-status-chip.is-approved{background:#E4E6EC;color:#2E7A4F}.profile-status-chip.is-pending{background:#ECEAE6;color:#282E37}.profile-rating-chip{background:#ECEAE6;color:#5B6376}.profile-review-list h3{margin:8px 0 2px;font-size:15px}.profile-review-list h3 a{color:#282E37;text-decoration:none}.profile-review-author{margin:0;color:var(--profile-muted);font-size:10px}.profile-review-list blockquote{margin:8px 0 9px;padding:0;border:0;color:#5B6376;font-family:var(--font-reading,var(--font-ui));font-size:11.5px;line-height:1.65}.profile-view-overview .profile-review-list blockquote{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

/* ── Phase P5: cover-led Recent Reviews + overview finish ── */
.profile-p5-reviews{overflow:hidden}
.profile-review-list-overview{gap:13px}
.profile-review-list-overview .profile-review-preview{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:start;padding:11px}
.profile-review-cover-link{display:block;min-width:0;text-decoration:none}
.profile-review-list-overview .juf-profile-cover-76{border-radius:7px}
.profile-review-preview-copy{min-width:0}
.profile-review-preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.profile-review-preview-head time{flex:0 0 auto;color:var(--profile-muted);font-size:8.8px}
.profile-review-list-overview .profile-status-chip{padding:2px 6px;font-size:8.8px}
.profile-review-list-overview h3{margin:0 0 1px;font-family:var(--font-book-title,var(--font-heading));font-size:13.5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-review-list-overview .profile-review-author{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-review-stars{display:flex;align-items:center;min-height:18px;margin-top:5px}
.profile-review-stars>span{display:inline-flex;gap:1px}
.profile-review-stars svg{width:12px;height:12px;fill:#F6F5F2}
.profile-review-stars svg.is-filled{fill:#5B6376}
.profile-review-list-overview blockquote{margin:3px 0 0;font-size:10px;line-height:1.55;-webkit-line-clamp:2}
.profile-overview-discover{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;margin-top:16px;padding:18px 92px 18px 22px;border:1px solid #3B4256;border-radius:18px;background:linear-gradient(105deg,#3B4256,#3B4256);color:#F6F5F2}
.profile-overview-discover>div{position:relative;z-index:1;min-width:0}
.profile-overview-discover>div>span{display:block;margin-bottom:3px;color:#F6F5F2;font-size:8.8px;font-weight:500;letter-spacing:normal;text-transform:uppercase}
.profile-overview-discover h2{margin:0 0 3px;color:#F6F5F2;font-family:var(--font-heading);font-size:20px;line-height:1.25}
.profile-overview-discover p{margin:0;max-width:650px;color:#F6F5F2;font-size:10.5px;line-height:1.5}
.profile-overview-discover>a{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 13px;border-radius:9px;background:#F6F5F2;color:#3B4256;text-decoration:none;font-size:10.5px;font-weight:500;white-space:nowrap}
.profile-overview-discover-mark{position:absolute;right:15px;bottom:-10px;width:76px;height:76px;fill:none;stroke:#5B6376;stroke-width:2;opacity:.42}

.profile-release-block{margin-top:13px;padding:12px;border:1px solid #D9D6D0;border-radius:14px;background:#F6F5F2}.profile-release-block>h3{margin:0 0 10px;font-size:14px}.profile-release-block>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.profile-release-block a{display:grid;grid-template-columns:50px minmax(0,1fr);gap:8px;align-items:center;text-decoration:none;color:#282E37;min-width:0}.profile-release-block strong,.profile-release-block small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-release-block strong{font-size:10.5px}.profile-release-block small{font-size:8.5px;color:#5B6376}

.profile-history-details{margin-top:10px}.profile-history-details summary{min-height:40px;display:flex;align-items:center;padding:0 11px;border:1px solid #D9D6D0;border-radius:10px;background:#F6F5F2;color:#5B6376;font-size:10.5px;cursor:pointer}
.reader-view-all{display:inline-flex;align-items:center;min-height:36px;margin-top:8px;color:#3B4256!important;text-decoration:none;font-size:10.5px;font-weight:500}

/* Full library/reading/review views remain functional, but use the same surface system. */
.profile-view-library .profile-hub-section,.profile-view-reading .profile-hub-section,.profile-view-following .profile-hub-section,.profile-view-reviews .profile-hub-section,.profile-view-bookmarks .profile-hub-section{margin-bottom:24px;padding:18px;border:1px solid #D9D6D0;border-radius:18px;background:#ECEAE6}
.reader-library-search{margin-bottom:16px;padding:13px;border:1px solid #D9D6D0;border-radius:14px;background:#ECEAE6}.reader-library-search label{display:block;margin-bottom:7px;color:#5B6376;font-size:11px;font-weight:500}.reader-library-search>div{display:flex;gap:8px;align-items:center}.reader-library-search input,.reader-library-search select{min-height:42px;border:1px solid #D9D6D0;border-radius:9px;background:#FFF;padding:8px 11px;font:inherit;font-size:12px}.reader-library-search input{flex:1;min-width:0}.reader-library-search button,.reader-library-search a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 12px;border-radius:9px;text-decoration:none;font-size:11px}.reader-library-search button{border:0;background:#3B4256;color:#FFF}.reader-library-search a{border:1px solid #D9D6D0;color:#5B6376}

.profile-premium-pass-v26,.profile-premium-pass-v26.is-inactive{border-radius:15px}.profile-purchase-list,.profile-listening-grid,.profile-notes-grid{display:grid;gap:10px}.profile-listening-grid,.profile-notes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-listening-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:11px;padding:10px;border:1px solid #D9D6D0;border-radius:14px;background:#FFF}.profile-listening-card .juf-profile-cover-76{width:72px!important;min-height:108px!important}.profile-listen-meta{display:flex;flex-wrap:wrap;gap:7px;color:#5B6376;font-size:9.5px}.profile-listen-meta a{margin-left:auto;color:#3B4256;text-decoration:none;font-weight:500}.profile-purchase-row{padding:11px;border:1px solid #D9D6D0;border-radius:13px;background:#FFF}.profile-note-panel{padding:13px;border:1px solid #D9D6D0;border-radius:14px;background:#FFF}.profile-note-panel>h3{margin:0 0 9px;font-size:15px}

.profile-account-bridge{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:17px 19px;border-radius:16px;background:#3B4256;color:#F6F5F2}.profile-account-bridge span{color:#5B6376;font-size:9px;letter-spacing:normal;font-weight:500}.profile-account-bridge h2{margin:2px 0 3px;color:#F6F5F2;font-size:17px}.profile-account-bridge p{margin:0;max-width:650px;color:#F6F5F2;font-size:10.5px;line-height:1.55}.profile-account-bridge>a{flex:0 0 auto;color:#F6F5F2;text-decoration:none;font-size:10.5px;font-weight:500}

.reader-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:20px 0}.reader-pagination a{display:flex;align-items:center;min-height:40px;color:#3B4256;text-decoration:none;font-size:11px}.reader-pagination span{font-size:10.5px;color:#5B6376}

/* ── Tablet ─────────────────────────────────────────────────── */
@media(max-width:1040px){
    .profile-overview-layout{grid-template-columns:minmax(0,1.45fr) minmax(245px,.72fr)}
    .profile-view-overview .profile-shelf-grid-v25{grid-template-columns:repeat(3,minmax(0,1fr))}
    .profile-shelf-grid-v25,.profile-follow-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
    .profile-release-block>div{grid-template-columns:repeat(2,minmax(0,1fr))}
    body.juf-2d-minimal .profile-hub .profile-hub-hero{min-height:244px}
    .profile-hub-identity{grid-template-columns:118px minmax(0,1fr);gap:20px;width:min(760px,77%);min-height:130px;margin-top:104px;padding:12px 58px 14px 20px}.profile-avatar-wrap,.profile-hub-avatar{width:118px;height:118px}.profile-hub-avatar{font-size:34px}.profile-avatar-edit{width:31px;height:31px}
    .profile-hero-book{right:35%}.profile-hero-book.book-two{right:33%}.profile-hero-book.book-three{right:36%}.profile-hero-cup{right:20%}.profile-hero-quote{right:24px;top:28px}.profile-hero-quote strong{font-size:18px}
}
@media(max-width:860px){
    .profile-hub{margin-top:20px;padding:0 16px}
    body.juf-2d-minimal .profile-hub .profile-hub-hero{min-height:226px;border-radius:20px}
    .profile-hub-identity{grid-template-columns:104px minmax(0,1fr);gap:17px;width:min(690px,82%);min-height:118px;margin-top:96px;padding:11px 46px 13px 18px}.profile-avatar-wrap,.profile-hub-avatar{width:104px;height:104px}.profile-hub-avatar{border-width:4px;font-size:31px}.profile-avatar-edit{width:29px;height:29px;border-width:2px}.profile-avatar-edit svg{width:14px;height:14px}.profile-hub-identity h1{font-size:30px}.profile-hub-identity .reader-bio{font-size:16.5px}.profile-identity-meta{font-size:13px}.profile-hub-actions a{min-height:34px;font-size:13.5px}
    .profile-hero-shelf{right:17%;transform:scale(.88);transform-origin:top right}.profile-hero-book{right:30%;transform:scale(.92) rotate(-2.4deg)}.profile-hero-book.book-two{right:28%;transform:scale(.92) rotate(1.7deg)}.profile-hero-book.book-three{right:31%;transform:scale(.92) rotate(-1deg)}.profile-hero-cup{right:15%;bottom:50px;transform:scale(.9)}.profile-hero-quote{right:20px;top:24px;max-width:150px}.profile-hero-quote strong{font-size:16px}.profile-hero-quote span{font-size:9px}
    .profile-hub-controls{gap:10px;margin-top:10px}
    .profile-hub-stats a{grid-template-columns:30px minmax(0,1fr);column-gap:8px;min-height:70px;padding:8px 10px}.profile-stat-icon{width:29px;height:29px}.profile-stat-icon svg{width:24px;height:24px}.profile-hub-stats .profile-stat-copy strong{font-size:20px}.profile-hub-stats .profile-stat-copy>span{font-size:9.5px}
    .reader-desk-nav>a,.reader-desk-more>summary{min-height:42px;padding:0 9px;font-size:10.5px;gap:5px}.reader-nav-icon,.reader-nav-icon svg{width:16px;height:16px}.reader-nav-icon{flex-basis:16px}
    .profile-overview-layout{grid-template-columns:1fr}.profile-overview-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-side-account{grid-column:1/-1}.profile-reading-summary-body{grid-template-columns:112px minmax(0,1fr)}.profile-reading-ring{width:112px;height:112px}.profile-reading-ring::after{width:80px;height:80px}
    .profile-p3-reading-library{grid-template-columns:1fr;gap:12px}
    .profile-continue-grid,.profile-review-list,.profile-listening-grid,.profile-notes-grid{grid-template-columns:1fr}
    .profile-overview-discover{padding-right:86px}
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media(max-width:620px){
    .profile-hub{padding:0 12px;margin:14px auto 46px}
    body.juf-2d-minimal .profile-hub .profile-hub-hero{min-height:0;border-radius:18px;overflow:hidden}
    .profile-hero-backdrop{height:128px;bottom:auto}.profile-hero-shelf{display:none}.profile-hero-book{width:112px;height:21px;right:19%;opacity:.78}.profile-hero-book.book-one{top:18px;transform:rotate(-2deg)}.profile-hero-book.book-two{top:43px;right:17%;width:124px;transform:rotate(1.5deg)}.profile-hero-book.book-three{top:69px;right:20%;width:108px;transform:rotate(-1deg)}.profile-hero-cup{display:none}.profile-hero-leaf{right:3%;top:14px;transform:scale(.72) rotate(13deg)}
    .profile-hero-quote{right:13px;top:16px;max-width:116px}.profile-hero-quote strong{font-size:13px;line-height:1.35}.profile-hero-quote span{display:none}
    .profile-hub-identity{display:grid;grid-template-columns:78px minmax(0,1fr);gap:13px;align-items:center;width:100%;min-height:0;margin-top:124px;padding:13px 14px 14px;background:#ECEAE6;clip-path:none}.profile-avatar-wrap{width:78px;height:78px;transform:translateY(-28px);margin-bottom:-28px}.profile-hub-avatar{width:78px;height:78px;border-width:4px;font-size:27px}.profile-avatar-edit{width:27px;height:27px;right:-1px;bottom:1px;border-width:2px}.profile-avatar-edit svg{width:13px;height:13px}.profile-identity-copy{padding-top:0}.profile-hub-identity h1{font-size:27px;line-height:1.18}.profile-hub-identity .reader-bio{font-size:16.5px;line-height:1.65;-webkit-line-clamp:2}.profile-identity-meta{gap:3px 8px;margin-top:6px;font-size:13px}.profile-identity-meta .is-premium{min-height:21px;padding:0 7px}.profile-hub-actions{margin-top:8px}.profile-hub-actions a{min-height:34px;padding:0 10px;font-size:13.5px}
    .profile-hub-controls{gap:9px;margin-top:9px}.profile-hub-stats{order:1;display:flex;grid-template-columns:none;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;border-radius:13px}.profile-hub-stats::-webkit-scrollbar{display:none}.profile-hub-stats a{flex:0 0 21%;min-width:80px;grid-template-columns:1fr;justify-items:center;row-gap:3px;min-height:67px;padding:7px 6px;text-align:center;scroll-snap-align:start}.profile-stat-icon{width:24px;height:24px}.profile-stat-icon svg{width:21px;height:21px}.profile-stat-copy{align-items:center;gap:2px}.profile-hub-stats .profile-stat-copy strong{font-size:17px}.profile-hub-stats .profile-stat-copy>span{font-size:9.2px;white-space:normal}
    .reader-desk-nav{order:2;margin:0 0 14px;padding:5px;gap:3px;overflow:visible;border-radius:13px}.reader-desk-nav>a,.reader-desk-more>summary{flex:1 1 0;min-width:0;min-height:46px;padding:4px 3px;gap:3px;flex-direction:column;font-size:9.4px;line-height:1.1}.reader-nav-icon,.reader-nav-icon svg{width:17px;height:17px}.reader-nav-icon{flex-basis:17px}.reader-nav-label{max-width:100%;overflow:hidden;text-overflow:ellipsis}.reader-desk-nav .reader-nav-secondary{display:none}.reader-desk-nav .reader-nav-mobile-primary{display:flex}.reader-desk-more{display:block;flex:1 1 0}.reader-desk-more>summary{width:100%}.reader-desk-nav>a[aria-current="page"],.reader-desk-more.is-current>summary{border-color:#3B4256;background:#3B4256;color:#FFF;box-shadow:none}.reader-desk-nav>a[aria-current="page"] .reader-nav-icon,.reader-desk-more.is-current .reader-nav-icon{color:#FFF}.reader-desk-more>div{top:52px;right:0;min-width:176px}
    .profile-overview-main{gap:12px}.profile-view-overview .profile-hub-section{padding:13px;border-radius:15px}.profile-view-overview .profile-hub-heading{margin-bottom:9px}.profile-view-overview .profile-hub-heading h2{font-size:23px}.profile-view-overview .profile-hub-heading>span,.profile-view-overview .profile-heading-link{font-size:9.5px}
    .profile-overview-side{grid-template-columns:1fr;gap:12px}.profile-side-account{grid-column:auto}.profile-reading-summary-body{grid-template-columns:92px minmax(0,1fr);gap:12px}.profile-reading-ring{width:92px;height:92px;margin:0}.profile-reading-ring::after{width:66px;height:66px}.profile-reading-ring strong{font-size:22px}.profile-reading-key{gap:7px}.profile-reading-key span{font-size:10px}.profile-reading-saved{margin-top:10px;padding-top:9px}
    .profile-p3-reading-library{gap:12px}.profile-section-title-icon{width:20px;height:20px;flex-basis:20px}.profile-section-title-icon svg{width:19px;height:19px}
    .profile-view-overview .profile-continue-card{grid-template-columns:86px minmax(0,1fr);gap:11px;padding:10px}.profile-view-overview .profile-continue-card .juf-profile-cover-92{width:86px!important;min-height:129px!important}.profile-card-topline{margin-bottom:3px}.profile-card-topline>strong{font-size:12px}.profile-card-copy h3{font-size:15px}.profile-card-copy p{font-size:10px}.profile-reading-position{font-size:9.4px}.profile-last-read{font-size:9.4px}.profile-continue-actions{gap:6px;margin-top:8px}.profile-text-action,.profile-quiet-action{min-height:33px;padding:0 9px;font-size:9.6px}
    .profile-view-overview .profile-shelf-grid-v25{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;padding:1px 1px 4px;scrollbar-width:none}.profile-view-overview .profile-shelf-grid-v25::-webkit-scrollbar{display:none}.profile-view-overview .profile-shelf-card-v25{flex:0 0 104px;scroll-snap-align:start;padding:0}.profile-view-overview .profile-shelf-card-v25 h3{font-size:11px}.profile-view-overview .profile-shelf-card-v25 p{font-size:9.4px}.profile-view-overview .profile-library-add-card{flex-basis:90px;min-height:156px}
    .profile-view-overview .profile-follow-strip{gap:10px}.profile-view-overview .profile-follow-strip article{flex:0 0 94px;padding:1px 2px}.profile-view-overview .profile-author-avatar{width:58px;height:58px;flex-basis:58px;margin-bottom:5px}.profile-view-overview .profile-follow-strip h3{font-size:10.2px;font-weight:600;line-height:1.2;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip}.profile-view-overview .profile-follow-strip p{font-size:9.2px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip}
    .profile-review-list{grid-template-columns:1fr}.profile-review-list article{padding:11px}.profile-view-overview .profile-review-list article:nth-child(n+3){display:none}
    .profile-review-list-overview .profile-review-preview{grid-template-columns:64px minmax(0,1fr);gap:10px;padding:9px}.profile-review-list-overview .juf-profile-cover-76{width:64px!important;min-height:96px!important}.profile-review-list-overview h3{font-size:12.2px}.profile-review-list-overview blockquote{font-family:var(--font-reading);font-size:17px;line-height:1.72}.profile-review-preview-head time{font-size:8.8px}.profile-review-stars{margin-top:3px}.profile-review-stars svg{width:10px;height:10px}
    .profile-overview-discover{align-items:flex-start;flex-direction:column;gap:11px;margin-top:12px;padding:15px 70px 15px 15px;border-radius:15px}.profile-overview-discover h2{font-size:17px}.profile-overview-discover p{font-size:9.7px}.profile-overview-discover>a{min-height:34px;padding:0 11px;font-size:9.8px}.profile-overview-discover-mark{right:8px;width:62px;height:62px}
    .profile-hub-empty,.profile-hub-empty.is-dark{padding:13px 14px}.profile-hub-empty strong,.profile-hub-empty.is-dark strong{font-size:13px}.profile-hub-empty p,.profile-hub-empty.is-dark p{font-size:10.5px}
    .profile-view-library .profile-hub-section,.profile-view-reading .profile-hub-section,.profile-view-following .profile-hub-section,.profile-view-reviews .profile-hub-section,.profile-view-bookmarks .profile-hub-section{padding:13px;border-radius:15px}.profile-hub-heading h2{font-size:23px}.profile-shelf-grid-v25,.profile-follow-strip{grid-template-columns:1fr}.profile-continue-card,.profile-listening-card{grid-template-columns:70px minmax(0,1fr);padding:9px;gap:9px}.profile-continue-card .juf-profile-cover-92{width:70px!important;min-height:105px!important}.profile-listening-card .juf-profile-cover-76{width:62px!important;min-height:93px!important}.reader-library-search>div{flex-wrap:wrap}.reader-library-search input{flex-basis:100%}.profile-account-bridge{align-items:flex-start;flex-direction:column;padding:14px}.profile-account-bridge>a{align-self:flex-start}
}

@media(max-width:390px){
    .profile-hub-identity{grid-template-columns:70px minmax(0,1fr);gap:11px;padding-left:12px;padding-right:12px}.profile-avatar-wrap,.profile-hub-avatar{width:70px;height:70px}.profile-avatar-wrap{transform:translateY(-25px);margin-bottom:-25px}.profile-hub-identity h1{font-size:26px}.profile-hub-stats .profile-stat-copy>span{font-size:8.8px}.reader-desk-nav>a,.reader-desk-more>summary{font-size:8.8px;padding-left:2px;padding-right:2px}
}



/* ── Phase P6: dedicated views + privacy/account boundary polish ── */
.profile-view-intro{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:2px 0 16px;padding:15px 17px;border:1px solid #D9D6D0;border-radius:15px;background:#ECEAE6}
.profile-view-intro>div{min-width:0}.profile-view-intro>div>span{display:block;margin-bottom:2px;color:#5B6376;font-size:8.8px;font-weight:500;letter-spacing:normal;text-transform:uppercase}.profile-view-intro h2{margin:0 0 3px;font-family:var(--font-heading-editorial);font-size:24px;font-weight:500;color:#282E37}.profile-view-intro p{margin:0;max-width:760px;color:#5B6376;font-family:var(--font-reading);font-size:16.5px;line-height:1.68}.profile-view-intro>a{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-height:38px;padding:0 12px;border:1px solid #D9D6D0;border-radius:9px;background:#ECEAE6;color:#3B4256;text-decoration:none;font-size:10.3px;font-weight:500}
.profile-follow-strip-dedicated{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-follow-strip-dedicated article{padding:12px}.profile-follow-strip-dedicated .profile-author-avatar{width:58px;height:58px;flex-basis:58px}.profile-follow-strip-dedicated h3{font-size:14px}.profile-follow-strip-dedicated button{display:inline-flex;align-items:center;min-height:32px;padding:0 9px;border:1px solid #D9D6D0;border-radius:8px;background:#ECEAE6;color:#3B4256}
.profile-review-list-dedicated article{padding:15px}.profile-review-list-dedicated blockquote{margin-top:10px}.profile-status-chip.is-rejected{background:#ECEAE6;color:#5B6376}.profile-status-chip.is-hidden{background:#ECEAE6;color:#5B6376}.profile-book-unavailable{margin:7px 0 0!important;padding:7px 9px;border-radius:8px;background:#ECEAE6;color:#5B6376!important;font-size:9.5px!important;line-height:1.45!important}
.profile-notes-grid-dedicated{align-items:start}.profile-note-panel>h3{display:flex;align-items:center;gap:7px}.profile-note-title-icon{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;color:#3B4256}.profile-note-title-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.profile-annotation-list{display:grid;gap:8px}.profile-annotation-row,.profile-highlight-row{display:block;min-width:0;border:1px solid #D9D6D0;border-radius:11px;background:#ECEAE6}.profile-annotation-row>a,.profile-highlight-row{display:grid;gap:2px;padding:10px 11px;color:#282E37;text-decoration:none}.profile-annotation-row strong,.profile-highlight-row strong{font-size:11.5px;color:#282E37}.profile-annotation-row span,.profile-highlight-row span{font-size:10px;line-height:1.5;color:#5B6376}.profile-annotation-row small,.profile-highlight-row small{font-size:9.3px;color:var(--profile-muted)}.profile-annotation-row .reader-bookmark-remove{padding:0 10px 9px}.profile-annotation-row .reader-bookmark-remove button{min-height:32px;padding:5px 10px;font-size:9.5px}
@media(max-width:860px){.profile-follow-strip-dedicated{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.profile-view-intro{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:12px;padding:12px 13px;border-radius:13px}.profile-view-intro h2{font-size:23px}.profile-view-intro p{font-size:16.5px}.profile-view-intro>a{min-height:35px;padding:0 10px;font-size:13.5px}.profile-follow-strip-dedicated{grid-template-columns:1fr}.profile-follow-strip-dedicated article{padding:10px}.profile-review-list-dedicated article{padding:11px}.profile-notes-grid-dedicated{grid-template-columns:1fr}.profile-note-panel{padding:11px}}

@media(prefers-reduced-motion:reduce){.profile-hub *{scroll-behavior:auto!important;transition:none!important}}

/* ══════════════════════════════════════════════════════════════════
   Modern Dynamic Refresh — vivid identity, colour-coded stats and
   tactile card motion, layered on the P1–P6 system above. No markup
   changes required (aside from the optional premium avatar badge).
   ══════════════════════════════════════════════════════════════════ */

/* — Avatar: rotating gradient "reading ring" + premium badge — */
.profile-avatar-wrap{overflow:visible}
.profile-avatar-wrap::before{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:50%;
    background:conic-gradient(from 218deg,#3B4256,#A8741A,#D9D6D0,#3B4256,#3B4256);
    animation:jufRingTurn 11s linear infinite;
    z-index:0;
}
.profile-hub-avatar{position:relative;z-index:1;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.profile-avatar-wrap:hover .profile-hub-avatar{transform:scale(1.035)}
.profile-avatar-edit{z-index:3;background:linear-gradient(145deg,#3B4256,#3B4256);transition:transform .25s ease,box-shadow .25s ease}
.profile-avatar-edit:hover{background:linear-gradient(145deg,#2C3243,#2C3243);transform:scale(1.12) rotate(-8deg);box-shadow:0 8px 18px rgba(59, 66, 86, .35)}
.profile-avatar-badge{
    position:absolute;
    left:-2px;
    top:2px;
    z-index:3;
    display:grid;
    place-items:center;
    width:26px;
    height:26px;
    border-radius:50%;
    border:3px solid #D9D6D0;
    background:linear-gradient(145deg,#A8741A,#D9D6D0);
    color:#FFFFFF;
    font-size:12px;
    font-weight:600;
    box-shadow:0 4px 10px rgba(91, 99, 118, .4);
}
@keyframes jufRingTurn{to{transform:rotate(360deg)}}

/* — Identity card: soft entrance + crisper seam — */
body.juf-2d-minimal .profile-hub .profile-hub-hero{animation:jufFadeUp .5s ease both}
.profile-hub-identity{box-shadow:0 -12px 30px -18px rgba(40, 46, 55, .18)}

/* — Action pills: rounder, gradient primary, lively hover — */
.profile-hub-actions a{border-radius:999px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.profile-hub-actions a.is-primary{background:linear-gradient(135deg,#3B4256,#3B4256);border-color:transparent;box-shadow:0 8px 18px rgba(40, 46, 55, .28)}
.profile-hub-actions a:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(40, 46, 55, .16)}
.profile-hub-actions a.is-primary:hover{box-shadow:0 12px 24px rgba(40, 46, 55, .34)}

/* — Quick-stat strip: colour-coded badges + tactile lift — */
.profile-hub-stats a{overflow:hidden}
.profile-hub-stats a::after{
    content:"";
    position:absolute;
    left:14px;
    right:14px;
    bottom:0;
    height:2.5px;
    border-radius:3px 3px 0 0;
    background:currentColor;
    transform:scaleX(0);
    transition:transform .25s ease;
}
.profile-hub-stats a:hover::after,.profile-hub-stats a:focus-visible::after{transform:scaleX(1)}
.profile-hub-stats a:hover{transform:translateY(-3px)}
.profile-stat-icon{border-radius:50%;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.profile-hub-stats a:hover .profile-stat-icon{transform:scale(1.12) rotate(-6deg)}
.profile-hub-stats a:nth-child(1) .profile-stat-icon{background:#E4E6EC;color:#2E7A4F}
.profile-hub-stats a:nth-child(2) .profile-stat-icon{background:#E4E6EC;color:#2F5D9E}
.profile-hub-stats a:nth-child(3) .profile-stat-icon{background:#ECEAE6;color:#3B4256}
.profile-hub-stats a:nth-child(4) .profile-stat-icon{background:#ECEAE6;color:#7F520C}
.profile-hub-stats a:nth-child(5) .profile-stat-icon{background:#ECEAE6;color:#5B6376}
.profile-hub-stats a:nth-child(1){color:#2E7A4F}
.profile-hub-stats a:nth-child(2){color:#2F5D9E}
.profile-hub-stats a:nth-child(3){color:#3B4256}
.profile-hub-stats a:nth-child(4){color:#7F520C}
.profile-hub-stats a:nth-child(5){color:#5B6376}

/* — Section title icons: soft tinted badge — */
.profile-section-title-icon{border-radius:50%;background:#ECEAE6}

/* — Empty states: from dashed placeholder to inviting card — */
.profile-hub-empty{
    position:relative;
    border:1px solid #D9D6D0;
    background:#ECEAE6;
    border-radius:16px;
    padding-left:66px;
}
.profile-hub-empty.is-dark{
    position:relative;
    border:1px solid #3A3F47;
    background:#2C3037;
    border-radius:16px;
    padding-left:66px;
}
.profile-hub-empty::before{
    content:"✦";
    position:absolute;
    left:16px;
    top:16px;
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border-radius:50%;
    background:linear-gradient(145deg,#3B4256,#3B4256);
    color:#F6F5F2;
    font-size:15px;
}
.profile-hub-empty a{display:inline-flex;align-items:center;gap:5px;margin-top:4px}
.profile-hub-empty a:hover{text-decoration:underline}

/* — Interactive cards: gentle lift on hover throughout the hub — */
.profile-continue-card,.profile-shelf-card-v25,.profile-follow-strip article,
.profile-listening-card,.profile-purchase-row,.profile-note-panel,
.profile-review-list article{
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.profile-continue-card:hover,.profile-shelf-card-v25:hover,.profile-follow-strip article:hover,
.profile-listening-card:hover,.profile-purchase-row:hover,.profile-note-panel:hover,
.profile-review-list article:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(40, 46, 55, .10);
    border-color:#D9D6D0;
}
.profile-author-avatar{transition:transform .25s ease}
.profile-follow-strip article:hover .profile-author-avatar{transform:scale(1.08)}

/* — Bottom nav: liven the active pill — */
.reader-desk-nav>a[aria-current="page"]{box-shadow:0 6px 16px rgba(59, 66, 86, .28)}

/* — Section fade-up on load, gently staggered — */
.profile-hub-section{animation:jufFadeUp .5s ease both}
.profile-hub-section:nth-of-type(1){animation-delay:.02s}
.profile-hub-section:nth-of-type(2){animation-delay:.06s}
.profile-hub-section:nth-of-type(3){animation-delay:.10s}
.profile-hub-section:nth-of-type(4){animation-delay:.14s}
.profile-hub-section:nth-of-type(5){animation-delay:.18s}
@keyframes jufFadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

@media(prefers-reduced-motion:reduce){
    .profile-avatar-wrap::before{animation:none}
    body.juf-2d-minimal .profile-hub .profile-hub-hero,.profile-hub-section{animation:none}
}

/* Build 238 — compact profile typography follows the final public semantic roles. */
body:not(.reader-page) .site-main .profile-hub .profile-follow-strip h3{font-family:var(--font-heading-editorial)!important;font-size:17px!important;line-height:1.35!important;font-weight:500!important}
body:not(.reader-page) .site-main .profile-hub .profile-card-copy h3,
body:not(.reader-page) .site-main .profile-hub .profile-shelf-card-v25 h3,
body:not(.reader-page) .site-main .profile-hub .profile-listening-card h3,
body:not(.reader-page) .site-main .profile-hub .profile-review-list-overview h3{font-family:var(--font-book-title)!important;font-size:18px!important;line-height:1.4!important;font-weight:400!important;font-synthesis:none!important}
body:not(.reader-page) .site-main .profile-hub .profile-premium-grid-v25 h3,
body:not(.reader-page) .site-main .profile-hub .profile-review-list h3,
body:not(.reader-page) .site-main .profile-hub .profile-note-panel>h3,
body:not(.reader-page) .site-main .profile-hub .profile-release-block>h3{font-family:var(--font-heading-editorial)!important;font-size:17px!important;line-height:1.35!important;font-weight:500!important}
body:not(.reader-page) .site-main .profile-hub.profile-view-overview .profile-follow-strip p,
body:not(.reader-page) .site-main .profile-hub .profile-follow-strip p{font-family:var(--font-ui-system)!important;font-size:13px!important;line-height:1.45!important}

/* Compact profile artwork must not inherit the legacy 260px catalogue height.
   Keep each component's existing width and reserve the true book proportion. */
.profile-hub .juf-book-jacket[class*="juf-profile-cover-"]{
    height:auto!important;
    min-height:0!important;
    aspect-ratio:2/3!important;
}
body:not(.reader-page) .site-main .profile-hub :is(.profile-card-copy p,.profile-shelf-card-v25 p,.profile-listening-card p,.profile-review-author){
    font-family:var(--font-ui-system)!important;
    font-size:13px!important;
    line-height:1.48!important;
    opacity:1;
}
.profile-view-overview .profile-shelf-card-v25 h3{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    white-space:normal;
    overflow:hidden;
}
.profile-review-preview-head time,.profile-review-top time{font-size:12px;opacity:1}
.profile-review-list-overview .profile-status-chip{font-size:12px}
.profile-hub .profile-review-list blockquote{opacity:1}
body.juf-page-profile .site-main .profile-hub .profile-premium-pass-v26.is-inactive>a{background:#3B4256!important;color:#FFF!important}
body.juf-page-profile .site-main .profile-hub .profile-overview-discover h2{color:#F6F5F2!important}
body.juf-page-profile .site-main .profile-hub .profile-overview-discover p{color:#F6F5F2!important;opacity:1}
@media(max-width:860px){
  body:not(.reader-page) .site-main .profile-hub .profile-follow-strip h3{font-size:16px!important}
  body:not(.reader-page) .site-main .profile-hub .profile-card-copy h3{font-size:17px!important}
}
@media(max-width:390px){body:not(.reader-page) .site-main .profile-hub .profile-follow-strip h3{font-size:16px!important}}



/* ======================================================================
   Build 271 — Simple social-profile hero (Instagram-like simplicity,
   JUFbook visual language). Decorative hero art is intentionally hidden;
   the profile identity becomes the hero.
   ====================================================================== */
body.juf-2d-minimal .profile-hub .profile-hub-hero{
    min-height:0 !important;
    padding:28px 30px !important;
    overflow:visible !important;
    border:1px solid #D9D6D0 !important;
    border-radius:22px !important;
    background:#ECEAE6 !important;
    box-shadow:none !important;
}
.profile-hub-hero .profile-hero-backdrop,
.profile-hub-hero .profile-hero-quote{
    display:none !important;
}
.profile-hub-identity{
    display:grid !important;
    grid-template-columns:118px minmax(0,1fr) !important;
    gap:24px !important;
    align-items:center !important;
    width:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    clip-path:none !important;
}
.profile-avatar-wrap,
.profile-hub-avatar{
    width:118px !important;
    height:118px !important;
}
.profile-avatar-wrap{
    align-self:center !important;
    transform:none !important;
    margin:0 !important;
}
.profile-hub-avatar{
    border:2px solid #D9D6D0 !important;
    box-shadow:0 5px 16px rgba(40, 46, 55, .09) !important;
    font-size:30px !important;
}
.profile-avatar-edit{
    width:30px !important;
    height:30px !important;
    right:1px !important;
    bottom:2px !important;
    border-width:2px !important;
    box-shadow:0 3px 10px rgba(40, 46, 55, .14) !important;
}
.profile-avatar-edit svg{width:14px !important;height:14px !important}
.profile-identity-copy{min-width:0 !important;padding:0 !important}
.profile-hub-identity h1{
    margin:0 !important;
    font-size:clamp(27px,2.25vw,34px) !important;
    line-height:1.15 !important;
    font-weight:500 !important;
}
.profile-hub-identity .reader-bio{
    max-width:66ch !important;
    margin:7px 0 0 !important;
    font-size:16.5px !important;
    line-height:1.55 !important;
    -webkit-line-clamp:2 !important;
}
.profile-identity-meta{
    gap:6px 12px !important;
    margin-top:7px !important;
    font-size:11.5px !important;
}
.profile-identity-meta span{min-height:21px !important}
.profile-hub-actions{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:7px !important;
    margin-top:10px !important;
}
.profile-hub-actions a{
    min-height:35px !important;
    padding:0 13px !important;
    border-radius:8px !important;
    font-size:11px !important;
    box-shadow:none !important;
}
.profile-hub-actions a.is-primary{
    background:#3B4256 !important;
    border-color:#3B4256 !important;
    color:#FFF !important;
}

@media(max-width:860px){
    body.juf-2d-minimal .profile-hub .profile-hub-hero{
        padding:24px !important;
        border-radius:20px !important;
    }
    .profile-hub-identity{
        grid-template-columns:104px minmax(0,1fr) !important;
        gap:20px !important;
    }
    .profile-avatar-wrap,.profile-hub-avatar{width:104px !important;height:104px !important}
}

@media(max-width:620px){
    .profile-hub{margin-top:14px !important;padding:0 12px !important}
    body.juf-2d-minimal .profile-hub .profile-hub-hero{
        padding:18px 16px 16px !important;
        border-radius:18px !important;
        overflow:hidden !important;
    }
    .profile-hub-identity{
        display:grid !important;
        grid-template-columns:84px minmax(0,1fr) !important;
        column-gap:14px !important;
        row-gap:0 !important;
        align-items:center !important;
    }
    .profile-avatar-wrap{
        grid-column:1 !important;
        grid-row:1 !important;
        width:84px !important;
        height:84px !important;
        transform:none !important;
        margin:0 !important;
    }
    .profile-hub-avatar{
        width:84px !important;
        height:84px !important;
        border-width:2px !important;
        font-size:25px !important;
    }
    .profile-avatar-edit{width:27px !important;height:27px !important;right:-1px !important;bottom:0 !important}
    .profile-identity-copy{display:contents !important}
    .profile-hub-identity h1{
        grid-column:2 !important;
        grid-row:1 !important;
        align-self:center !important;
        font-size:25px !important;
        line-height:1.16 !important;
    }
    .profile-hub-identity .reader-bio{
        grid-column:1 / -1 !important;
        grid-row:2 !important;
        margin:14px 0 0 !important;
        font-size:15.5px !important;
        line-height:1.48 !important;
        -webkit-line-clamp:2 !important;
    }
    .profile-identity-meta{
        grid-column:1 / -1 !important;
        grid-row:3 !important;
        margin-top:7px !important;
        font-size:11.5px !important;
    }
    .profile-hub-actions{
        grid-column:1 / -1 !important;
        grid-row:4 !important;
        width:100% !important;
        margin-top:10px !important;
        gap:7px !important;
        flex-wrap:nowrap !important;
    }
    .profile-hub-actions a{
        flex:1 1 0 !important;
        min-width:0 !important;
        min-height:36px !important;
        padding:0 9px !important;
        font-size:12px !important;
        white-space:nowrap !important;
    }
}

@media(max-width:390px){
    body.juf-2d-minimal .profile-hub .profile-hub-hero{padding:16px 14px 14px !important}
    .profile-hub-identity{grid-template-columns:76px minmax(0,1fr) !important;column-gap:12px !important}
    .profile-avatar-wrap,.profile-hub-avatar{width:76px !important;height:76px !important}
    .profile-hub-identity h1{font-size:23px !important}
    .profile-hub-actions a{font-size:11.2px !important;padding-inline:7px !important}
}

html[data-theme="dark"] body.juf-minimal-chrome .profile-hub .profile-hub-hero{
    background:#23262B !important;
    border-color:#3A3F47 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .profile-hub .profile-hub-identity{
    background:transparent !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .profile-hub .profile-hub-avatar{
    border-color:#3A3F47 !important;
    box-shadow:none !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .profile-hub .profile-hub-actions a{
    background:#2C3037 !important;
    border-color:#3A3F47 !important;
    color:#ECE8E1 !important;
}
html[data-theme="dark"] body.juf-minimal-chrome .profile-hub .profile-hub-actions a.is-primary{
    background:#C9D4EC !important;
    border-color:#C9D4EC !important;
    color:#23262B !important;
}


/* ======================================================================
   Build 338 — Profile Book/Author Horizontal Sliders, Typography Hierarchy
   Fix & Dashboard-to-Settings Consolidation
   Fixes all issues shown in `39e0d6c4.jpeg` – `59860f6e.jpeg`:
   1. Fixes the collapsed `4px × 6px` book cover dots in `"আমার লাইব্রেরি"`
      (`b94d925d.jpeg`): `.profile-shelf-card-v25` previously inherited
      `align-items: center` on a `flex-direction: column` container, which
      shrank `a.profile-library-cover-link` to `width: 0px`. Now both
      `"আমার লাইব্রেরি"` and `"প্রিয় লেখক"` are smooth horizontal swipeable
      sliders (`display: flex; overflow-x: auto; scroll-snap-type: x proximity`)
      with explicit card widths (`114px` mobile / `132px` desktop) and explicit
      cover dimensions (`114×171px` mobile / `132×198px` desktop) so covers
      never collapse.
   2. Fixes `<p>` body/caption text being LARGER than `<h3>` titles:
      `jufbook-typography-system.css` lines 42 & 254 used a `0,6,2` selector
      (`body:not(.reader-page):not(.person-profile-page):not(.book-system-page) .site-main p:not(...)`)
      that forced all `<p>` elements to `16px / 17px`. By scoping under
      `#library-home` (ID specificity `1,x,y` > `0,6,2`), book/author titles
      (`<h3>`) are crisp and fitted while their subtitle/designation `<p>` tags
      are strictly smaller (`11px–12px`).
   3. Cleans the Overview Dashboard by removing the redundant sidebar/promo
      cards (`.profile-overview-side` and `.profile-overview-discover`) from
      `overview`, since reading counts are already in the top 5-stat bar and
      Notifications / Support / Privacy / Premium now live in Settings
      (`account.php`) and the top `আরও / সেটিংস` bar.
   ====================================================================== */

/* 1. Full-Width Container & Clean Overview Layout (No Redundant Bottom/Side Bloat) */
html body.juf-page-profile .site-main #library-home.profile-hub {
    width: 100% !important;
    max-width: none !important;
    margin: 20px 0 56px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

html body.juf-page-profile .site-main #library-home.profile-view-overview .profile-overview-layout {
    display: block !important;
}
html body.juf-page-profile .site-main #library-home.profile-view-overview .profile-overview-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
html body.juf-page-profile .site-main #library-home.profile-view-overview .profile-p3-reading-library {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
/* Hide redundant Overview sidebar cards & bottom promo banner (moved to Settings `account.php`) */
html body.juf-page-profile .site-main #library-home.profile-view-overview :is(.profile-overview-side, .profile-overview-discover) {
    display: none !important;
}

/* 2. Identity Hero Card & Avatar Polish */
#library-home .profile-avatar-wrap::before {
    display: none !important;
    animation: none !important;
}
#library-home .profile-hub-avatar {
    border: 3px solid #D9D6D0 !important;
    box-shadow: 0 0 0 1.5px #E4E6EC, 0 8px 20px rgba(40, 46, 55, .10) !important;
}
#library-home .profile-avatar-edit {
    background: #3B4256 !important;
    border: 2px solid #D9D6D0 !important;
    color: #FFFFFF !important;
}
html body .site-main #library-home .profile-hub-identity h1#profile-hub-title {
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: clamp(23px, 2.4vw, 28px) !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #282E37 !important;
    margin: 0 !important;
}
html body .site-main #library-home .profile-hub-identity p.reader-bio {
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    color: #282E37 !important;
    margin: 6px 0 0 !important;
}
html body .site-main #library-home .profile-identity-meta {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12px !important;
    color: #5B6376 !important;
    margin-top: 6px !important;
}
html body .site-main #library-home .profile-hub-actions a {
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

/* 3. Section Headings Across Dashboard */
html body .site-main #library-home .profile-hub-heading {
    margin: 0 0 12px !important;
    align-items: center !important;
}
html body .site-main #library-home .profile-hub-heading h2 {
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: #282E37 !important;
    margin: 0 !important;
}
html body .site-main #library-home .profile-heading-link {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #3B4256 !important;
}

/* 4. "এখন পড়ছেন" (`#continue-reading`) Card & Typography Hierarchy */
html body .site-main #library-home .profile-continue-card {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: center !important;
    padding: 14px !important;
    border-radius: 16px !important;
    border: 1px solid #D9D6D0 !important;
    background: #F6F5F2 !important;
}
html body .site-main #library-home .profile-continue-card a.profile-cover-link {
    display: block !important;
    width: 96px !important;
}
html body .site-main #library-home .profile-continue-card .juf-profile-cover-92 {
    display: block !important;
    width: 96px !important;
    min-width: 96px !important;
    height: 144px !important;
    min-height: 144px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    border: 1px solid rgba(40, 46, 55, .16) !important;
    border-left: 3px solid rgba(40, 46, 55, .22) !important;
    overflow: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}
html body .site-main #library-home .profile-continue-card .profile-kicker {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #3B4256 !important;
}
html body .site-main #library-home .profile-continue-card .profile-card-topline strong {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #282E37 !important;
}
html body .site-main #library-home .profile-continue-card h3 {
    margin: 0 0 3px !important;
    font-family: var(--font-display-literary, 'Tiro Bangla', serif) !important;
    font-size: 17.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #282E37 !important;
}
html body .site-main #library-home .profile-continue-card h3 a {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
/* Author name `<p>` strictly smaller than the 17.5px book title `<h3>` */
html body .site-main #library-home .profile-continue-card p {
    margin: 0 0 6px !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #5B6376 !important;
}
html body .site-main #library-home .profile-continue-card .profile-reading-position {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
    color: #282E37 !important;
}
html body .site-main #library-home .profile-continue-card .profile-last-read {
    font-size: 11px !important;
    color: #5B6376 !important;
}
html body .site-main #library-home .profile-continue-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 9px !important;
}
html body .site-main #library-home .profile-continue-actions .profile-text-action {
    min-height: 35px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
    background: #3B4256 !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
html body .site-main #library-home .profile-continue-actions .profile-quiet-action {
    min-height: 35px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* 5. "আমার লাইব্রেরি" (`#bookshelf`) — Smooth Horizontal Book Slider with Uncollapsible Covers */
html body .site-main #library-home.profile-view-overview .profile-shelf-grid-v25 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 2px 8px !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-grid-v25::-webkit-scrollbar {
    display: none !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 {
    flex: 0 0 128px !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scroll-snap-align: start !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 > a.profile-library-cover-link {
    display: block !important;
    width: 128px !important;
    height: 192px !important;
    margin: 0 0 8px !important;
    flex: 0 0 auto !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 .juf-profile-cover-76 {
    display: block !important;
    position: relative !important;
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    height: 192px !important;
    min-height: 192px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    border: 1px solid rgba(40, 46, 55, .16) !important;
    border-left: 3px solid rgba(40, 46, 55, .22) !important;
    background: var(--cover-paper, #ECEAE6) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 > div {
    width: 100% !important;
    min-width: 0 !important;
}
/* Book Title `<h3>` (`14px`) > Author Name `<p>` (`11.5px`) */
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 h3 {
    margin: 0 0 3px !important;
    font-family: var(--font-display-literary, 'Tiro Bangla', serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #282E37 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 h3 a {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 p {
    margin: 0 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.32 !important;
    color: #5B6376 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
html body .site-main #library-home.profile-view-overview .profile-library-add-card {
    flex: 0 0 116px !important;
    width: 116px !important;
    height: 192px !important;
    min-height: 192px !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    border-radius: 10px !important;
}

/* Ensure custom & generated covers render cleanly inside all `.juf-profile-cover-*` */
#library-home .juf-book-jacket[class*="juf-profile-cover-"]::before,
#library-home .juf-book-jacket[class*="juf-profile-cover-"]::after {
    display: none !important;
    content: none !important;
}
#library-home .juf-book-jacket[class*="juf-profile-cover-"] .juf-book-cover-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 0 !important;
    display: block !important;
}
#library-home .juf-book-jacket.juf-book-jacket-generated .juf-cover-illustration {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}
#library-home .juf-book-jacket.juf-book-jacket-generated .juf-cover-copy {
    position: absolute !important;
    inset: 8% 8.5% auto !important;
    z-index: 2 !important;
}

/* 6. "প্রিয় লেখক" (`#following`) — Smooth Horizontal Author Slider & Fitted Name/Role Hierarchy */
html body .site-main #library-home.profile-view-overview .profile-follow-strip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain !important;
    scroll-snap-type: x proximity !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 2px 6px !important;
}
html body .site-main #library-home.profile-view-overview .profile-follow-strip::-webkit-scrollbar {
    display: none !important;
}
html body .site-main #library-home.profile-view-overview .profile-follow-strip article {
    flex: 0 0 112px !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding: 4px 2px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scroll-snap-align: start !important;
}
#library-home .profile-author-avatar {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    flex: 0 0 60px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    border: 1.5px solid #D9D6D0 !important;
    background: linear-gradient(145deg, #ECEAE6 0%, #E4E6EC 100%) !important;
    box-shadow: 0 4px 10px rgba(40, 46, 55, .06) !important;
    overflow: hidden !important;
    margin: 0 auto 7px !important;
}
#library-home .profile-author-avatar > * {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}
#library-home .profile-author-avatar .juf-author-literary-placeholder {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #ECEAE6 0%, #E4E6EC 100%) !important;
}
#library-home .profile-author-avatar .juf-author-literary-placeholder::before,
#library-home .profile-author-avatar .juf-author-literary-placeholder::after,
#library-home .profile-author-avatar :is(.juf-author-literary-rule, .juf-author-literary-book, .juf-author-literary-mark) {
    display: none !important;
    content: none !important;
}
#library-home .profile-author-avatar .juf-author-literary-initial {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #282E37 !important;
}
/* Author Name `<h3>` (`13.5px`) > Designation `<p>` (`11px`) */
html body .site-main #library-home.profile-view-overview .profile-follow-strip h3 {
    margin: 0 0 2px !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.26 !important;
    color: #282E37 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
html body .site-main #library-home.profile-view-overview .profile-follow-strip h3 a {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
html body .site-main #library-home.profile-view-overview .profile-follow-strip p {
    margin: 0 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.28 !important;
    color: #5B6376 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

/* 7. "সাম্প্রতিক রিভিউ" (`#my-reviews`) Cover & Typography Hierarchy */
html body .site-main #library-home .profile-review-list-overview .profile-review-preview {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 13px !important;
    border-radius: 15px !important;
    border: 1px solid #D9D6D0 !important;
    background: #F6F5F2 !important;
}
html body .site-main #library-home .profile-review-list-overview .juf-profile-cover-76 {
    display: block !important;
    width: 72px !important;
    min-width: 72px !important;
    height: 108px !important;
    min-height: 108px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 1px solid rgba(40, 46, 55, .16) !important;
    border-left: 3px solid rgba(40, 46, 55, .22) !important;
    overflow: hidden !important;
    position: relative !important;
}
html body .site-main #library-home .profile-review-list-overview h3 {
    margin: 0 0 2px !important;
    font-family: var(--font-display-literary, 'Tiro Bangla', serif) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #282E37 !important;
}
html body .site-main #library-home .profile-review-list-overview h3 a {
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}
html body .site-main #library-home .profile-review-list-overview p.profile-review-author {
    margin: 0 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.32 !important;
    color: #5B6376 !important;
}
html body .site-main #library-home .profile-review-list-overview blockquote {
    margin: 5px 0 0 !important;
    font-family: var(--font-reading, 'SolaimanLipi', serif) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #282E37 !important;
}

/* 8. Mobile Responsive Overrides (`<= 620px`) */
@media (max-width: 620px) {
    html body.juf-page-profile .site-main #library-home.profile-hub {
        margin: 12px 0 42px !important;
        padding: 0 !important;
    }
    /* 5-Column Stats Bar on Mobile */
    #library-home .profile-hub-stats {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        overflow: hidden !important;
        border-radius: 14px !important;
    }
    #library-home .profile-hub-stats a {
        flex: none !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 8px 2px !important;
        min-height: 64px !important;
    }
    #library-home .profile-hub-stats .profile-stat-copy strong {
        font-size: 16px !important;
    }
    #library-home .profile-hub-stats .profile-stat-copy > span {
        font-size: 9px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    /* "এখন পড়ছেন" on Mobile */
    html body .site-main #library-home .profile-continue-card {
        grid-template-columns: 84px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 12px !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;
        height: 126px !important;
        min-height: 126px !important;
    }
    html body .site-main #library-home .profile-continue-card h3 {
        font-size: 16.5px !important;
    }
    html body .site-main #library-home .profile-continue-card p {
        font-size: 12px !important;
    }

    /* "আমার লাইব্রেরি" Horizontal Book Slider on Mobile */
    html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 {
        flex: 0 0 112px !important;
        width: 112px !important;
        min-width: 112px !important;
        max-width: 112px !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: 112px !important;
        min-width: 112px !important;
        max-width: 112px !important;
        height: 168px !important;
        min-height: 168px !important;
    }
    html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 h3 {
        font-size: 13.5px !important;
        line-height: 1.28 !important;
    }
    html body .site-main #library-home.profile-view-overview .profile-shelf-card-v25 p {
        font-size: 11px !important;
        line-height: 1.28 !important;
    }
    html body .site-main #library-home.profile-view-overview .profile-library-add-card {
        flex: 0 0 104px !important;
        width: 104px !important;
        height: 168px !important;
        min-height: 168px !important;
    }

    /* "প্রিয় লেখক" Horizontal Author Slider on Mobile (All authors swipeable!) */
    html body .site-main #library-home.profile-view-overview .profile-follow-strip article {
        flex: 0 0 98px !important;
        width: 98px !important;
        min-width: 98px !important;
        max-width: 98px !important;
        display: flex !important;
    }
    #library-home .profile-author-avatar {
        width: 56px !important;
        height: 56px !important;
        flex: 0 0 56px !important;
    }
    #library-home .profile-author-avatar .juf-author-literary-initial {
        font-size: 19px !important;
    }
    html body .site-main #library-home.profile-view-overview .profile-follow-strip h3 {
        font-size: 12.5px !important;
        line-height: 1.24 !important;
    }
    html body .site-main #library-home.profile-view-overview .profile-follow-strip p {
        font-size: 10.5px !important;
        line-height: 1.24 !important;
    }

    /* "সাম্প্রতিক রিভিউ" on Mobile */
    html body .site-main #library-home .profile-review-list-overview .profile-review-preview {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 11px !important;
    }
    html body .site-main #library-home .profile-review-list-overview .juf-profile-cover-76 {
        width: 64px !important;
        min-width: 64px !important;
        height: 96px !important;
        min-height: 96px !important;
    }
    html body .site-main #library-home .profile-review-list-overview h3 {
        font-size: 14px !important;
    }
    html body .site-main #library-home .profile-review-list-overview p.profile-review-author {
        font-size: 11px !important;
    }
    html body .site-main #library-home .profile-review-list-overview blockquote {
        font-size: 13px !important;
    }
}

html[data-theme="dark"] #library-home .profile-author-avatar,
html[data-theme="dark"] #library-home .profile-author-avatar .juf-author-literary-placeholder {
    background: #2C3037 !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] #library-home .profile-author-avatar .juf-author-literary-initial {
    color: #ECE8E1 !important;
}
html[data-theme="dark"] body .site-main #library-home .profile-continue-card,
html[data-theme="dark"] body .site-main #library-home .profile-review-list-overview .profile-review-preview {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}

/* ==========================================================================
   BUILD 347 — INSTAGRAM & FACEBOOK INSPIRED COMPLETE SOCIAL USER PROFILE
   ========================================================================== */

/* 1. Social Profile Hero & Action Bar Polish */
html body .site-main #library-home .profile-hub-hero {
    border-radius: 22px !important;
    border: 1px solid #D9D6D0 !important;
    box-shadow: 0 12px 32px rgba(40, 46, 55, 0.06) !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 20px 18px 22px !important;
}
html body .site-main #library-home .profile-avatar-wrap {
    padding: 3px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #3B4256 0%, #D9D6D0 50%, #3B4256 100%) !important;
    box-shadow: 0 8px 22px rgba(40, 46, 55, 0.14) !important;
}
html body .site-main #library-home .profile-hub-avatar {
    border: 3px solid #D9D6D0 !important;
    border-radius: 50% !important;
}
html body .site-main #library-home .profile-hub-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}
html body .site-main #library-home .profile-hub-actions a {
    border-radius: 10px !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    min-height: 40px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease !important;
}
html body .site-main #library-home .profile-hub-actions a.is-social-post-cta {
    background: #ECEAE6 !important;
    color: #282E37 !important;
    border: 1px solid #D9D6D0 !important;
}
html body .site-main #library-home .profile-hub-actions a.is-social-post-cta:hover {
    background: #E4E6EC !important;
}

/* 2. Facebook / Threads / Instagram-Inspired Social Post Composer (.juf-social-composer) */
html body .site-main #library-home .juf-social-writings-section {
    padding: 18px !important;
    border-radius: 20px !important;
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
}
html body .site-main #library-home .juf-social-composer {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
    margin: 0 0 18px 0 !important;
    border-radius: 18px !important;
    background: #F6F5F2 !important;
    border: 1px solid #D9D6D0 !important;
    box-shadow: 0 4px 16px rgba(40, 46, 55, 0.04) !important;
}
html body .site-main #library-home .juf-social-composer-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}
html body .site-main #library-home .juf-social-composer-user {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
.juf-social-MiniAvatar {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #3B4256, #3B4256) !important;
    color: #FFFFFF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: 2px solid #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.juf-social-MiniAvatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
html body .site-main #library-home .juf-social-composer-meta {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}
html body .site-main #library-home .juf-social-composer-meta strong {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #282E37 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
html body .site-main #library-home .juf-social-composer-meta span {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
    color: #5B6376 !important;
}
html body .site-main #library-home .juf-social-composer-type {
    flex: 0 0 auto !important;
}
html body .site-main #library-home .juf-social-composer-type select {
    appearance: auto !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid #D9D6D0 !important;
    background: #FFFFFF !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;
    cursor: pointer !important;
    max-width: 165px !important;
}
html body .site-main #library-home .juf-social-composer-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: #FFFFFF !important;
    border: 1px solid #D9D6D0 !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
}
html body .site-main #library-home .juf-social-composer-title {
    width: 100% !important;
    border: none !important;
    border-bottom: 1px dashed #D9D6D0 !important;
    border-radius: 0 !important;
    padding: 4px 0 10px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #282E37 !important;
    outline: none !important;
    box-shadow: none !important;
}
html body .site-main #library-home .juf-social-composer-title::placeholder {
    color: #5B6376 !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
}
html body .site-main #library-home .juf-social-composer-body {
    width: 100% !important;
    border: none !important;
    padding: 4px 0 0 0 !important;
    margin: 0 !important;
    background: transparent !important;
    font-family: var(--font-reader, 'Tiro Bangla', 'Noto Serif Bengali', serif) !important;
    font-size: 15.5px !important;
    line-height: 1.75 !important;
    color: #282E37 !important;
    resize: vertical !important;
    min-height: 92px !important;
    outline: none !important;
    box-shadow: none !important;
}
html body .site-main #library-home .juf-social-composer-body::placeholder {
    color: #5B6376 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 14px !important;
}
html body .site-main #library-home .juf-social-composer-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    padding-top: 2px !important;
}
html body .site-main #library-home .juf-social-composer-hint {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #5B6376 !important;
}
html body .site-main #library-home .juf-social-composer-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
}
html body .site-main #library-home .juf-social-btn-draft {
    min-height: 38px !important;
    padding: 0 15px !important;
    border-radius: 999px !important;
    border: 1px solid #D9D6D0 !important;
    background: #FFFFFF !important;
    color: #282E37 !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 #library-home .juf-social-btn-post {
    min-height: 38px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    border: none !important;
    background: #3B4256 !important;
    color: #FFFFFF !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(40, 46, 55, 0.16) !important;
}

/* 3. Facebook / Instagram Literary Post Feed Cards (.juf-social-post-card) */
.juf-social-feed {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.juf-social-post-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px 18px !important;
    border-radius: 18px !important;
    background: #FFFFFF !important;
    border: 1px solid #D9D6D0 !important;
    box-shadow: 0 6px 20px rgba(40, 46, 55, 0.04) !important;
}
.juf-social-post-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
}
.juf-social-post-author {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}
.juf-social-post-author-copy {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}
.juf-social-post-author-copy strong {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #282E37 !important;
}
.juf-social-post-submeta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 11.5px !important;
    color: #5B6376 !important;
}
.juf-social-post-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 4px 0 !important;
}
html body .site-main #library-home .juf-social-post-title,
.juf-social-post-title {
    margin: 0 !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 17.5px !important;
    font-weight: 700 !important;
    line-height: 1.38 !important;
    color: #282E37 !important;
}
html body .site-main #library-home .juf-social-post-prose,
.juf-social-post-prose {
    font-family: var(--font-reader, 'Tiro Bangla', 'Noto Serif Bengali', serif) !important;
    font-size: 15.5px !important;
    line-height: 1.85 !important;
    color: #282E37 !important;
    overflow-wrap: break-word !important;
}
.juf-social-post-modnote {
    margin: 0 !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
    font-size: 12px !important;
    color: #282E37 !important;
}
.juf-social-post-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #D9D6D0 !important;
}
.juf-social-post-words {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 11.5px !important;
    color: #5B6376 !important;
}
.juf-social-post-delete {
    margin: 0 !important;
}
.juf-social-post-delete button {
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid #D9D6D0 !important;
    background: #F6F5F2 !important;
    color: #3B4256 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.juf-social-empty-feed {
    text-align: center !important;
    padding: 24px 16px !important;
    border-radius: 16px !important;
    border: 1px dashed #D9D6D0 !important;
    background: #F6F5F2 !important;
}
.juf-social-empty-icon {
    font-size: 26px !important;
    margin-bottom: 6px !important;
}
.juf-social-empty-feed strong {
    display: block !important;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif) !important;
    font-size: 16px !important;
    color: #282E37 !important;
    margin-bottom: 4px !important;
}
html body .site-main #library-home .juf-social-empty-feed p {
    margin: 0 auto !important;
    max-width: 46ch !important;
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    color: #5B6376 !important;
}

/* 4. Public Social Profile (member.php) */
.juf-public-social-profile {
    padding: 0 0 28px 0 !important;
    overflow: hidden !important;
}
.juf-public-social-profile > p:first-child {
    display: none !important;
}
.juf-public-social-cover {
    height: 128px;
    background: linear-gradient(135deg, #3B4256 0%, #3B4256 52%, #3B4256 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px 22px;
    color: rgba(246, 245, 242, 0.86);
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 14px;
}
.juf-public-social-identity {
    padding: 0 26px;
    margin-top: -46px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.juf-public-social-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #3B4256, #D9D6D0, #3B4256);
    box-shadow: 0 8px 22px rgba(40, 46, 55, 0.16);
}
.juf-public-social-avatar img,
.juf-public-social-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #D9D6D0;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3B4256;
    color: #FFFFFF;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 32px;
    font-weight: 700;
}
.juf-public-social-copy h1 {
    margin: 4px 0 6px !important;
    font-size: 26px !important;
}
.juf-public-social-bio {
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: #282E37 !important;
}
.juf-public-social-writings {
    padding: 20px 26px 0;
    margin-top: 18px;
    border-top: 1px solid #D9D6D0;
}
.juf-public-social-section-title {
    margin: 0 0 14px;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 19px;
    color: #282E37;
}
.juf-public-social-profile .reader-public-privacy,
.juf-public-social-profile > a {
    margin-left: 26px !important;
    margin-right: 26px !important;
}

/* 5. Mobile Adjustments for Social Composer & Tab Bar */
@media (max-width: 620px) {
    html body .site-main #library-home .juf-social-writings-section {
        padding: 14px !important;
    }
    html body .site-main #library-home .juf-social-composer {
        padding: 12px !important;
        gap: 10px !important;
    }
    html body .site-main #library-home .juf-social-composer-type select {
        font-size: 11.5px !important;
        padding: 0 10px !important;
        max-width: 142px !important;
    }
    html body .site-main #library-home .juf-social-composer-hint {
        display: none !important;
    }
    html body .site-main #library-home .juf-social-composer-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1.25fr !important;
        gap: 8px !important;
    }
    html body .site-main #library-home .juf-social-btn-draft,
    html body .site-main #library-home .juf-social-btn-post {
        width: 100% !important;
        justify-content: center !important;
    }
    /* Allow mobile tab bar to scroll horizontally smoothly when 6 tabs are active */
    html body .site-main #library-home .reader-desk-nav {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 4px !important;
        padding: 6px !important;
    }
    html body .site-main #library-home .reader-desk-nav::-webkit-scrollbar {
        display: none !important;
    }
    html body .site-main #library-home .reader-desk-nav > a,
    html body .site-main #library-home .reader-desk-nav > details {
        flex: 1 0 64px !important;
        min-width: 64px !important;
    }
    .juf-public-social-identity,
    .juf-public-social-writings {
        padding-left: 16px;
        padding-right: 16px;
    }
    .juf-public-social-profile .reader-public-privacy,
    .juf-public-social-profile > a {
        margin-left: 16px !important;
        margin-right: 16px !important;
    }
}

/* Dark mode support for Social Composer & Feed */
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-composer {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-fields,
html[data-theme="dark"] .juf-social-post-card {
    background: #23262B !important;
    border-color: #3A3F47 !important;
}
html[data-theme="dark"] body .site-main #library-home .juf-social-composer-meta strong,
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"] .juf-social-post-author-copy strong,
html[data-theme="dark"] .juf-social-post-title,
html[data-theme="dark"] .juf-social-post-prose {
    color: #ECE8E1 !important;
}


/* 6. Public Website Writings Hub (writings.php) */
.juf-public-writings-hub {
    max-width: 1080px;
    margin: 24px auto 64px;
    padding: 0 16px;
}
.juf-public-writings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ECEAE6 0%, #ECEAE6 100%);
    border: 1px solid #D9D6D0;
    margin-bottom: 20px;
}
.juf-public-writings-kicker {
    display: inline-block;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12px;
    font-weight: 700;
    color: #3B4256;
    margin-bottom: 6px;
}
.juf-public-writings-hero-copy h1 {
    margin: 0 0 8px;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
    color: #282E37;
}
.juf-public-writings-hero-copy p {
    margin: 0;
    max-width: 58ch;
    font-size: 14.5px;
    line-height: 1.65;
    color: #282E37;
}
.juf-public-writings-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: #3B4256;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(40, 46, 55, 0.16);
}
.juf-public-writings-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scrollbar-width: none;
}
.juf-public-writings-tabs::-webkit-scrollbar {
    display: none;
}
.juf-public-writings-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    color: #282E37;
    text-decoration: none;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.juf-public-writings-tabs a[aria-current="page"] {
    background: #3B4256;
    border-color: #3B4256;
    color: #FFFFFF;
}
.juf-public-writings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}
.juf-social-author-link {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    color: #3B4256;
    text-decoration: none;
}
@media (max-width: 620px) {
    .juf-public-writings-hero {
        padding: 20px 18px;
    }
    .juf-public-writings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BUILD 349 — SCALABLE COMPACT POST CARDS, BOOK-STYLE READER & SLIDER
   ========================================================================== */

/* 1. 4-Line Clamp on Feed Post Cards (Prevents 500-word posts from stretching pages!) */
html body .site-main #library-home .juf-social-post-prose.is-clamped-4,
.juf-social-post-prose.is-clamped-4 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 14.5px !important;
    line-height: 1.68 !important;
    max-height: calc(1.68em * 4 + 2px) !important;
}
html body .site-main #library-home .juf-social-post-title a,
.juf-social-post-title a {
    color: inherit !important;
    text-decoration: none !important;
}
html body .site-main #library-home .juf-social-post-title a:hover,
.juf-social-post-title a:hover {
    color: #2C3243 !important;
}
html body .site-main #library-home .juf-social-post-title,
.juf-public-feed-card .juf-social-post-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 16.5px !important;
    line-height: 1.34 !important;
    margin: 0 0 4px 0 !important;
}

/* Inline expand inside user profile writings tab */
.juf-social-inline-expand {
    margin-top: 6px;
}
.juf-social-inline-expand summary {
    cursor: pointer;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    color: #3B4256;
    list-style: none;
}
.juf-social-expanded-text {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F6F5F2;
    border: 1px solid #D9D6D0;
    font-family: var(--font-reader, 'Tiro Bangla', serif);
    font-size: 15px;
    line-height: 1.82;
    color: #282E37;
}

/* 2. Compact 1-Line Quick Trigger on Profile Overview */
html body .site-main #library-home .juf-social-quick-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    margin-bottom: 14px !important;
    border-radius: 999px !important;
    background: #F6F5F2 !important;
    border: 1px solid #D9D6D0 !important;
}
html body .site-main #library-home .juf-social-quick-input-fake {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    border: 1px solid #D9D6D0 !important;
    color: #5B6376 !important;
    text-decoration: none !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
html body .site-main #library-home .juf-social-quick-post-btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #3B4256 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}
html body .site-main #library-home .juf-social-feed.is-overview-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 12px !important;
}

/* 3. User Profile Writings Toolbar (Status Pills + Search) */
html body .site-main #library-home .juf-user-writings-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-bottom: 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid #D9D6D0 !important;
}
html body .site-main #library-home .juf-user-writings-status-pills {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}
html body .site-main #library-home .juf-user-writings-status-pills a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    border: 1px solid #D9D6D0 !important;
    background: #F6F5F2 !important;
    color: #282E37 !important;
    text-decoration: none !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;
}
html body .site-main #library-home .juf-user-writings-status-pills a[aria-current="page"] {
    background: #3B4256 !important;
    border-color: #3B4256 !important;
    color: #FFFFFF !important;
}
html body .site-main #library-home .juf-user-writings-search {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 220px !important;
    max-width: 320px !important;
}
html body .site-main #library-home .juf-user-writings-search input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 34px !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: 34px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    border: none !important;
    background: #3B4256 !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* 4. Public Website Writings Search Bar & Compact Cards (writings.php) */
.juf-writings-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
}
.juf-writings-search-bar input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13.5px;
}
.juf-writings-search-bar select {
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    font-weight: 600;
}
.juf-writings-search-bar button {
    height: 40px;
    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-writings-reset-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    color: #282E37;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
}
.juf-writing-readtime-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ECEAE6;
    color: #282E37;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.juf-social-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ECEAE6;
    color: #282E37;
    text-decoration: none;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12px;
    font-weight: 700;
    transition: background-color 0.16s ease, color 0.16s ease;
}
.juf-social-read-btn:hover {
    background: #2C3243;
    color: #FFFFFF;
}

/* 5. Book-Chapter Style Single Writing Reader Sheet (writings.php?post=ID) */
.juf-writing-reader-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.juf-writing-reader-breadcrumb a {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #3B4256;
    text-decoration: none;
}
.juf-writing-reader-write-link {
    padding: 6px 14px;
    border-radius: 999px;
    background: #3B4256;
    color: #FFFFFF !important;
}
.juf-writing-reader-sheet {
    max-width: 780px;
    margin: 0 auto 36px;
    padding: 32px 36px;
    border-radius: 22px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
    box-shadow: 0 12px 34px rgba(40, 46, 55, 0.06);
}
.juf-writing-reader-head {
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid #D9D6D0;
}
.juf-writing-reader-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12px;
    color: #5B6376;
    margin-bottom: 10px;
}
.juf-writing-type-pill {
    padding: 3px 10px;
    border-radius: 999px;
    background: #ECEAE6;
    color: #3B4256;
    font-weight: 700;
    text-decoration: none;
}
.juf-writing-reader-head h1 {
    margin: 0 0 14px;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: clamp(23px, 3vw, 31px);
    line-height: 1.32;
    color: #282E37;
}
.juf-writing-reader-prose {
    font-family: var(--font-reader, 'Tiro Bangla', 'Noto Serif Bengali', serif);
    font-size: 17.5px;
    line-height: 1.95;
    color: #282E37;
    overflow-wrap: break-word;
}
.juf-writing-more-section {
    max-width: 780px;
    margin: 0 auto;
}
.juf-writing-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.juf-writing-more-head h2 {
    margin: 0;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 20px;
}
.juf-writing-more-head a {
    font-size: 13px;
    font-weight: 600;
    color: #3B4256;
    text-decoration: none;
}

/* 6. Homepage Horizontal Swipeable Slider for Reader Writings (#reader-writings) */
.juf-home-writings-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
}
.juf-home-writings-slider::-webkit-scrollbar {
    height: 5px;
}
.juf-home-writings-slider::-webkit-scrollbar-thumb {
    background: #E4E6EC;
    border-radius: 999px;
}
.juf-home-writing-slide-card {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #D9D6D0;
    box-shadow: 0 6px 18px rgba(40, 46, 55, 0.04);
}
.juf-home-writing-slide-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.juf-home-writing-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.juf-home-writing-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #3B4256, #3B4256);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.juf-home-writing-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.juf-home-writing-author strong {
    display: block;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13.5px;
    line-height: 1.2;
    color: #282E37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.juf-home-writing-author span {
    display: block;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 11px;
    color: #5B6376;
}
.juf-home-writing-title {
    margin: 0 0 6px;
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.32 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.juf-home-writing-title a {
    color: #282E37;
    text-decoration: none;
}
.juf-home-writing-excerpt {
    margin: 0 !important;
    font-family: var(--font-reader, 'Tiro Bangla', serif) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #282E37 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
    max-height: calc(1.65em * 4 + 2px) !important;
}
.juf-home-writing-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #D9D6D0;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 11.5px;
    color: #5B6376;
}
.juf-home-writing-foot a {
    font-weight: 700;
    color: #3B4256;
    text-decoration: none;
}

@media (max-width: 620px) {
    .juf-writing-reader-sheet {
        padding: 20px 16px;
        border-radius: 18px;
    }
    .juf-writing-reader-prose {
        font-size: 16px;
        line-height: 1.85;
    }
    .juf-home-writing-slide-card {
        flex: 0 0 264px;
        width: 264px;
        min-width: 264px;
        max-width: 264px;
        padding: 14px;
    }
    html body .site-main #library-home .juf-user-writings-search {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   BUILD 350 — STRICT MOBILE VIEWPORT CONTAINMENT & ZERO HORIZONTAL OVERFLOW
   ========================================================================== */

/* Prevent any child inside #library-home from expanding grid/flex tracks beyond 100% viewport width */
html body .site-main #library-home,
html body .site-main #library-home .profile-overview-layout,
html body .site-main #library-home .profile-overview-main,
html body .site-main #library-home .profile-p3-reading-library,
html body .site-main #library-home .profile-hub-section,
html body .site-main #library-home .juf-social-writings-section,
html body .site-main #library-home .juf-social-feed,
html body .site-main #library-home .juf-social-feed.is-overview-grid,
html body .site-main #library-home .juf-social-post-card,
html body .site-main #library-home .juf-social-post-body,
html body .site-main #library-home .juf-social-post-prose {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html body .site-main #library-home .profile-overview-main,
html body .site-main #library-home .profile-p3-reading-library {
    grid-template-columns: minmax(0, 1fr) !important;
}

html body .site-main #library-home .juf-social-feed.is-overview-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

html body .site-main #library-home .juf-social-quick-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

html body .site-main #library-home .juf-social-quick-input-fake {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

html body .site-main #library-home .juf-social-post-card {
    overflow: hidden !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
    html body .site-main #library-home .juf-social-feed.is-overview-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 620px) {
    /* Fit all 3 hero action buttons cleanly on mobile */
    html body .site-main #library-home .profile-hub-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    html body .site-main #library-home .profile-hub-actions a {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        min-height: 36px !important;
        padding: 0 6px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Fit all tabs (including আরও) inside .reader-desk-nav without horizontal clipping */
    html body .site-main #library-home .reader-desk-nav {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
        gap: 2px !important;
        padding: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    html body .site-main #library-home .reader-desk-nav > a.reader-nav-secondary:not(.reader-nav-mobile-primary) {
        display: none !important;
    }
    html body .site-main #library-home .reader-desk-nav > a,
    html body .site-main #library-home .reader-desk-nav > details.reader-desk-more {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 5px 2px !important;
        font-size: 9.2px !important;
    }
    html body .site-main #library-home .reader-desk-nav .reader-nav-label {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 9.2px !important;
    }

    /* Quick Trigger Bar on Mobile */
    html body .site-main #library-home .juf-social-quick-trigger {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    html body .site-main #library-home .juf-social-quick-trigger .juf-social-MiniAvatar {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
        font-size: 15px !important;
    }
    html body .site-main #library-home .juf-social-quick-input-fake {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
    html body .site-main #library-home .juf-social-quick-post-btn {
        min-height: 34px !important;
        padding: 0 11px !important;
        font-size: 11.5px !important;
    }
}


/* ==========================================================================
   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 — 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 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): Editorial Picks, Writer Recognition Badges & Literary Prompt === */
.juf-editorial-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.68rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #ECEAE6 0%, #E4E6EC 100%);
    color: #282E37;
    border: 1px solid #D9D6D0;
    box-shadow: 0 1px 2px rgba(40, 46, 55, 0.08);
    line-height: 1.3;
}
.juf-editorial-pick-badge--sm {
    padding: 0.16rem 0.55rem;
    font-size: 0.74rem;
}
.juf-writer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    border: 1px solid rgba(59, 66, 86, 0.24);
    background: #ECEAE6;
    color: #3B4256;
}
.juf-writer-badge--inline {
    padding: 0.1rem 0.48rem;
    font-size: 0.72rem;
}
.juf-writer-badge--featured {
    background: linear-gradient(135deg, #ECEAE6 0%, #E4E6EC 100%);
    color: #282E37;
    border-color: #D9D6D0;
}
.juf-writer-badge--established {
    background: #E4E6EC;
    color: #2E7A4F;
    border-color: rgba(40, 46, 55, 0.28);
}
.juf-writer-badge--regular {
    background: #E4E6EC;
    color: #2F5D9E;
    border-color: #D9D6D0;
}
.juf-literary-prompt-banner {
    margin: 0 0 1.5rem 0;
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #ECEAE6 0%, #ECEAE6 100%);
    border: 1px solid #D9D6D0;
    box-shadow: 0 6px 20px rgba(40, 46, 55, 0.05);
}
.juf-literary-prompt-banner__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.68rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: #3B4256;
    color: #F6F5F2;
    margin-bottom: 0.65rem;
}
.juf-literary-prompt-banner__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.juf-literary-prompt-banner__text {
    flex: 1 1 420px;
}
.juf-literary-prompt-banner__title {
    margin: 0 0 0.35rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #282E37;
}
.juf-literary-prompt-banner__desc {
    margin: 0 0 0.55rem 0;
    font-size: 0.94rem;
    line-height: 1.65;
    color: #3B4256;
}
.juf-literary-prompt-banner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.83rem;
    color: #282E37;
}


/* === Build 359 (Phase E): Writer Following, Literary Series & Print Anthology === */
.juf-writer-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.92rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    background: #3B4256;
    color: #F6F5F2;
    border: 1px solid #3B4256;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.juf-writer-follow-btn:hover {
    background: #2C3243;
    color: #ffffff;
}
.juf-writer-follow-btn.is-following {
    background: #E4E6EC;
    color: #2E7A4F;
    border-color: rgba(40, 46, 55, 0.32);
}
.juf-writer-follower-pill {
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(59, 66, 86, 0.1);
    color: #3B4256;
}
.juf-writing-series-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--tint);
    color: var(--cta);
    border: 1px solid var(--cta);
}
.juf-writing-series-pill.is-sm {
    padding: 0.12rem 0.5rem;
    font-size: 0.72rem;
}
.juf-writing-series-box {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--cta);
}
.juf-writing-series-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    color: var(--ink);
}
.juf-writing-series-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.38rem;
    font-size: 0.88rem;
}
.juf-writing-series-list a {
    color: var(--link);
}
.juf-writing-series-list a:hover {
    color: var(--link-hover);
}
.juf-writing-series-list li.is-current {
    font-weight: 700;
    color: var(--ink);
}
.juf-social-composer-series-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}
.juf-social-composer-series-title {
    flex: 1 1 240px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    font-size: 0.88rem;
}
.juf-social-composer-series-part {
    width: 145px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    font-size: 0.88rem;
}
@media print {
    header, footer, nav.juf-writing-reader-breadcrumb, .juf-writing-engagement-bar,
    .juf-writing-comments-section, .juf-writing-more-section, .juf-writer-follow-btn,
    .juf-social-read-btn {
        display: none !important;
    }
    body, .juf-public-writings-hub, .juf-writing-reader-sheet {
        background: #ffffff !important;
        color: #282E37 !important;
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}


/* ==========================================================================
   BUILD 360 — FACEBOOK-INSPIRED POST CARD, ACTION BAR & COMMENT BUBBLES
   ========================================================================== */
.juf-fb-post-sheet {
    padding: 24px 28px !important;
    border-radius: 20px !important;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
}
.juf-fb-post-head {
    padding-bottom: 16px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid #D9D6D0 !important;
}
.juf-fb-post-head-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.juf-fb-avatar-lg {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
}
.juf-fb-author-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.3;
}
.juf-fb-author-name-line strong a,
.juf-fb-author-name-line strong {
    font-size: 15.5px;
    font-weight: 700;
    color: #282E37;
    text-decoration: none;
}
.juf-fb-dot {
    color: #5B6376;
    font-weight: 700;
}
.juf-fb-inline-follow-form {
    margin: 0;
    display: inline;
}
.juf-fb-inline-follow-btn {
    padding: 0;
    border: none;
    background: transparent;
    color: #3B4256;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.juf-fb-inline-follow-btn:hover {
    text-decoration: underline;
}
.juf-fb-inline-follow-btn.is-following {
    color: #5B6376;
    font-weight: 600;
}
.juf-fb-submeta-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    font-size: 12.5px;
    color: #5B6376;
}
.juf-fb-category-link {
    font-weight: 600;
    color: #3B4256;
    text-decoration: none;
}
.juf-fb-badges-row {
    margin-bottom: 10px !important;
}
.juf-fb-post-head h1#writing-post-title {
    margin: 4px 0 0 0 !important;
    font-size: clamp(21px, 3vw, 28px) !important;
    line-height: 1.4 !important;
}

/* Facebook-style Top-Right 3-Dots Dropdown Menu */
.juf-fb-more-menu {
    position: relative;
    flex: 0 0 auto;
}
.juf-fb-more-menu summary {
    list-style: none;
}
.juf-fb-more-menu summary::-webkit-details-marker {
    display: none;
}
.juf-fb-more-trigger {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #282E37;
    background: transparent;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}
.juf-fb-more-trigger:hover,
.juf-fb-more-menu[open] .juf-fb-more-trigger {
    background: #ECEAE6;
}
.juf-fb-more-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 35;
    width: 265px;
    padding: 10px;
    border-radius: 14px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
    box-shadow: 0 12px 30px rgba(40, 46, 55, 0.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.juf-fb-more-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #282E37;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}
.juf-fb-more-item:hover {
    background: #ECEAE6;
}
.juf-fb-more-divider {
    border: none;
    border-top: 1px solid #D9D6D0;
    margin: 4px 0;
}
.juf-fb-report-inline-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 4px 2px;
}
.juf-fb-report-label {
    font-size: 12px;
    font-weight: 700;
    color: #B0392B;
}
.juf-fb-report-inline-form select,
.juf-fb-report-inline-form textarea {
    width: 100%;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #D9D6D0;
    background: #FFFFFF;
    font-size: 12px;
    box-sizing: border-box;
}
.juf-fb-report-inline-form button {
    align-self: flex-end;
    padding: 5px 12px;
    border-radius: 999px;
    border: none;
    background: #B0392B;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

/* Facebook-Style Engagement Wrapper (Stats Strip + Reaction Pills + 3-Col Action Bar + Inline Comments) */
.juf-fb-engagement-wrap {
    max-width: 740px;
    margin: 26px auto 0;
    padding-top: 12px;
}
.juf-fb-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 2px 10px;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    color: #5B6376;
}
.juf-fb-stats-left {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.juf-fb-emoji-stack {
    display: inline-flex;
    align-items: center;
}
.juf-fb-emoji-stack i {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ECEAE6;
    border: 1.5px solid #D9D6D0;
    font-size: 11.5px;
    margin-right: -4px;
}
.juf-fb-emoji-stack i:last-child {
    margin-right: 0;
}
.juf-fb-stats-right a {
    color: #5B6376;
    text-decoration: none;
    font-weight: 500;
}
.juf-fb-stats-right a:hover {
    text-decoration: underline;
}

/* Compact 3-Reaction Selector Strip */
.juf-fb-reaction-picker-row {
    padding: 6px 0 8px;
}
.juf-fb-reaction-picker-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0;
}
.juf-fb-reaction-picker-form::-webkit-scrollbar {
    display: none;
}
.juf-fb-react-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    color: #282E37;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.juf-fb-react-pill:hover {
    background: #ECEAE6;
}
.juf-fb-react-pill b {
    font-size: 11px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(40, 46, 55, 0.08);
}
.juf-fb-react-pill.is-active {
    background: #E4E6EC !important;
    border-color: #3B4256 !important;
    color: #3B4256 !important;
}
.juf-fb-react-pill.is-active b {
    background: #3B4256;
    color: #FFFFFF;
}

/* Facebook 3-Column Equal Action Bar (Like | Comment | Save) */
.juf-fb-action-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px 0;
    border-top: 1px solid #D9D6D0;
    border-bottom: 1px solid #D9D6D0;
}
.juf-fb-action-cell {
    margin: 0;
    display: flex;
    width: 100%;
}
.juf-fb-action-btn {
    width: 100%;
    min-height: 38px;
    padding: 0 6px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #282E37;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
}
.juf-fb-action-btn:hover {
    background: #ECEAE6;
}
.juf-fb-action-btn.is-active {
    color: #3B4256 !important;
    font-weight: 700;
}

/* Facebook-Style Inline Comment Composer & Compact Speech Bubbles */
.juf-fb-comments-area {
    padding-top: 14px;
}
.juf-fb-comment-composer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px 0;
}
.juf-fb-comment-avatar {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    font-size: 14px !important;
    margin-top: 2px;
}
.juf-fb-comment-input-box {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 14px;
    border-radius: 22px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
}
.juf-fb-comment-input-box textarea {
    flex: 1 1 auto;
    min-width: 0;
    height: 28px;
    min-height: 28px;
    max-height: 110px;
    padding: 3px 0;
    border: none !important;
    background: transparent !important;
    color: #282E37;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13.5px;
    line-height: 1.45;
    resize: vertical;
    outline: none;
}
.juf-fb-comment-send-btn {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    border: none;
    background: #3B4256;
    color: #FFFFFF;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.juf-fb-comment-send-btn:hover {
    background: #2C3243;
}

.juf-fb-comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.juf-fb-comment-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.juf-fb-comment-main {
    flex: 0 1 auto;
    max-width: calc(100% - 42px);
    min-width: 140px;
}
.juf-fb-comment-bubble {
    display: inline-block;
    max-width: 100%;
    padding: 8px 13px;
    border-radius: 16px;
    background: #ECEAE6;
    border: 1px solid rgba(217, 214, 208, 0.45);
    box-sizing: border-box;
}
.juf-fb-comment-author {
    margin-bottom: 2px;
    line-height: 1.25;
}
.juf-fb-comment-author a,
.juf-fb-comment-author span {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: #282E37;
    text-decoration: none;
}
.juf-fb-comment-author a:hover {
    text-decoration: underline;
}
.juf-fb-comment-text {
    font-family: var(--font-reader, 'SolaimanLipi', serif);
    font-size: 14.5px;
    line-height: 1.55;
    color: #282E37;
    overflow-wrap: anywhere;
}
.juf-fb-comment-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px 0;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 11.5px;
    color: #5B6376;
}
.juf-fb-comment-delete-link {
    padding: 0;
    border: none;
    background: transparent;
    color: #B0392B;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}
.juf-fb-comment-delete-link:hover {
    text-decoration: underline;
}

/* Compact Author Footer & Feed Card Footer Stats */
.juf-fb-author-footer {
    max-width: 740px;
    margin: 20px auto 0 !important;
    padding-top: 14px !important;
}
.juf-fb-author-bio-line {
    margin: 2px 0 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #282E37;
}
.juf-fb-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.juf-fb-card-foot-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.juf-fb-card-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    color: #282E37;
    text-decoration: none;
}
.juf-fb-card-stat:hover {
    color: #2C3243;
}

@media (max-width: 680px) {
    .juf-fb-post-sheet {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }
    .juf-fb-action-btn {
        font-size: 12px;
        min-height: 36px;
        padding: 0 4px;
        gap: 4px;
    }
    .juf-fb-react-pill {
        height: 30px;
        padding: 0 9px;
        font-size: 11.5px;
    }
    .juf-fb-comment-bubble {
        padding: 7px 11px;
    }
}


/* ==========================================================================
   BUILD 361 — PROFESSIONAL COMMENT COMPOSER, UNIFIED REACTION DOCK &
   SCALABLE 100+ COMMENTS PAGINATION (HIGH-SPECIFICITY OVERRIDES)
   ========================================================================== */

/* 1. Single Action Bar with Floating Reaction Dock (No Duplicate Reaction Rows) */
html body.juf-2d-minimal .juf-fb-action-bar {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 5px 0 !important;
    border-top: 1px solid #D9D6D0 !important;
    border-bottom: 1px solid #D9D6D0 !important;
    position: relative !important;
}
html body.juf-2d-minimal .juf-fb-react-cell {
    position: relative !important;
}
html body.juf-2d-minimal .juf-fb-primary-react-form {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
html body.juf-2d-minimal .juf-fb-action-btn,
html body.juf-2d-minimal a.juf-fb-action-btn {
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    border: 1px solid transparent !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: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}
html body.juf-2d-minimal .juf-fb-action-btn:hover,
html body.juf-2d-minimal a.juf-fb-action-btn:hover {
    background: #ECEAE6 !important;
    color: #282E37 !important;
}
html body.juf-2d-minimal .juf-fb-action-btn.is-active {
    background: #ECEAE6 !important;
    color: #282E37 !important;
    font-weight: 700 !important;
}
html body.juf-2d-minimal .juf-fb-action-btn.is-react-love {
    color: #5B6376 !important;
    background: #F6F5F2 !important;
}
html body.juf-2d-minimal .juf-fb-action-btn.is-react-like {
    color: #3B4256 !important;
    background: #E4E6EC !important;
}
html body.juf-2d-minimal .juf-fb-action-btn.is-react-insightful {
    color: #282E37 !important;
    background: #ECEAE6 !important;
}
html body.juf-2d-minimal .juf-fb-react-Caret {
    flex: 0 0 26px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    border: none !important;
    border-left: 1px solid #D9D6D0 !important;
    border-radius: 0 10px 10px 0 !important;
    background: transparent !important;
    color: #5B6376 !important;
    font-size: 12px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
html body.juf-2d-minimal .juf-fb-react-Caret:hover {
    background: #ECEAE6 !important;
}

/* Floating Facebook Reaction Dock (Pop-up above Like button on hover/focus/caret tap) */
html body.juf-2d-minimal .juf-fb-reaction-dock {
    position: absolute !important;
    bottom: calc(100% + 8px) !important;
    left: 0 !important;
    z-index: 40 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
    box-shadow: 0 10px 28px rgba(40, 46, 55, 0.16) !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(6px) scale(0.96) !important;
    pointer-events: none !important;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease !important;
}
html body.juf-2d-minimal .juf-fb-react-cell:hover .juf-fb-reaction-dock,
html body.juf-2d-minimal .juf-fb-react-cell:focus-within .juf-fb-reaction-dock,
html body.juf-2d-minimal .juf-fb-react-cell.is-dock-open .juf-fb-reaction-dock {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}
html body.juf-2d-minimal .juf-fb-dock-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !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;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: transform 0.14s ease, background 0.14s ease !important;
}
html body.juf-2d-minimal .juf-fb-dock-btn:hover {
    background: #E4E6EC !important;
    transform: translateY(-2px) scale(1.04) !important;
}
html body.juf-2d-minimal .juf-fb-dock-btn.is-selected {
    background: #3B4256 !important;
    color: #FFFFFF !important;
}
html body.juf-2d-minimal .juf-fb-dock-btn b {
    font-size: 11px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.08) !important;
}
html body.juf-2d-minimal .juf-fb-dock-btn.is-selected b {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
}

/* 2. Professional Facebook Comment Input Pill (Zero Inner Box Border, No Resize Gripper!) */
html body.juf-2d-minimal .juf-fb-comment-composer {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin: 4px 0 16px 0 !important;
}
html body.juf-2d-minimal .juf-fb-comment-pill-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 5px 6px 5px 16px !important;
    border-radius: 24px !important;
    background: #ECEAE6 !important;
    border: 1px solid #D9D6D0 !important;
    box-sizing: border-box !important;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease !important;
}
html body.juf-2d-minimal .juf-fb-comment-pill-wrap:focus-within {
    background: #ECEAE6 !important;
    border-color: #2C3243 !important;
    box-shadow: 0 0 0 3px rgba(59, 66, 86, 0.12) !important;
}
html body.juf-2d-minimal .juf-fb-comment-pill-wrap textarea.juf-fb-comment-textarea {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 140px !important;
    padding: 2px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-color: transparent !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #282E37 !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    resize: none !important;
    overflow-y: auto !important;
}
html body.juf-2d-minimal .juf-fb-comment-pill-wrap textarea.juf-fb-comment-textarea:focus {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
html body.juf-2d-minimal .juf-fb-comment-send-icon {
    flex: 0 0 auto !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: none !important;
    background: #3B4256 !important;
    color: #FFFFFF !important;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background 0.15s ease, transform 0.12s ease !important;
}
html body.juf-2d-minimal .juf-fb-comment-send-icon:hover {
    background: #2C3243 !important;
}

/* 3. Scalable 100+ Comments Toolbar, Author Badge, Read-More & Progressive Batch Button */
.juf-fb-comments-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 2px 0 12px;
    padding: 0 2px;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
}
.juf-fb-comments-count-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #282E37;
}
.juf-fb-comments-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #5B6376;
}
.juf-fb-comments-sort a {
    color: #5B6376;
    text-decoration: none;
    font-weight: 500;
}
.juf-fb-comments-sort a.is-active {
    color: #282E37;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.juf-fb-author-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(59, 66, 86, 0.12);
    color: #3B4256;
    font-size: 10.5px;
    font-weight: 700;
}
.juf-fb-comment-readmore {
    display: inline;
    margin-left: 6px;
    padding: 0;
    border: none;
    background: transparent;
    color: #3B4256;
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.juf-fb-comment-readmore:hover {
    text-decoration: underline;
}
.juf-fb-comments-more-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #D9D6D0;
}
html body.juf-2d-minimal .juf-fb-comments-more-btn {
    min-height: 36px !important;
    padding: 0 14px !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: 700 !important;
    cursor: pointer !important;
}
html body.juf-2d-minimal .juf-fb-comments-more-btn:hover {
    background: #ECEAE6 !important;
}
.juf-fb-comments-progress {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12px;
    color: #5B6376;
}


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

/* QA-preserve: background:#282E37 | background:#3B4256;color:#FFF */


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

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

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

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



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

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

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

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

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

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



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



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

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

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

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

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

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



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

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



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

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

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

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

/* === MERGED FROM assets/css/jufbook-reader-desk.css === */
/* Shared Reader Profile support: accessibility, account forms and public profile.
 * Private dashboard layout lives in jufbook-profile-responsive-polish.css.
 */
.reader-desk :where(a,button,input,select,textarea,summary):focus-visible,.reader-public a:focus-visible{outline:2px solid #2C3243;outline-offset:3px}
.reader-review-expanded summary{min-height:42px;display:flex;align-items:center;cursor:pointer;color:#3B4256}
.reader-review-expanded p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.8}
.reader-bookmark-remove{padding:0 10px 10px}.reader-bookmark-remove button{min-height:40px;background:transparent;border:1px solid #D9D6D0;border-radius:8px;padding:7px 12px;color:#3B4256}

.reader-public{max-width:820px;margin:34px auto 54px;padding:30px;background:#F6F5F2;border:1px solid #D9D6D0;border-radius:22px;overflow-wrap:anywhere;box-shadow:0 10px 28px rgba(40, 46, 55, .06)}
.reader-public img{display:block;width:100px;height:100px;object-fit:cover;border:4px solid #FFF;border-radius:50%;box-shadow:0 7px 18px rgba(40, 46, 55, .10)}
.reader-public>p:first-child{margin:0 0 12px;color:#5B6376;font-size:10px;font-weight:500;letter-spacing:normal}
.reader-public h1{margin:12px 0 4px;font-family:var(--font-display,var(--font-heading));font-size:30px;line-height:1.3}
.reader-public p{max-width:62ch;line-height:1.8}.reader-public>a{display:inline-flex;align-items:center;min-height:40px;margin-top:9px;padding:0 13px;border-radius:9px;background:#3B4256;color:#FFF;text-decoration:none;font-size:11px;font-weight:500}

.account-profile-grid textarea{width:100%;box-sizing:border-box;min-height:100px;padding:10px;border:1px solid #D9D6D0;border-radius:10px;font:inherit}.account-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-profile-grid>label{min-width:0;overflow-wrap:anywhere}.account-profile-grid input[type="file"]{width:100%;min-width:0;max-width:100%}.account-profile-grid input[type="checkbox"]{width:18px;min-height:18px;height:18px;display:inline-block;vertical-align:middle}.account-profile-grid>p{grid-column:1/-1;line-height:1.7}
@media(max-width:620px){.reader-public{margin:18px 12px;padding:20px}.reader-public h1{font-size:24px}.account-profile-grid{grid-template-columns:minmax(0,1fr)}}


/* Phase P6 — account continuity and explicit privacy boundary. */
.account-profile-nav{display:flex;align-items:center;gap:6px;margin:-8px 0 20px;padding:6px;border:1px solid #D9D6D0;border-radius:13px;background:#ECEAE6}.account-profile-nav a,.account-profile-nav span{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 12px;border-radius:8px;color:#5B6376;text-decoration:none;font-size:13.5px;font-weight:600}.account-profile-nav a:hover{background:#ECEAE6}.account-profile-nav span[aria-current="page"]{background:#3B4256;color:#FFF}.account-privacy-boundary{grid-column:1/-1;padding:11px 12px;border:1px solid #D9D6D0;border-radius:10px;background:#ECEAE6}.account-privacy-boundary strong{display:block;margin-bottom:3px;color:#282E37;font-size:11px}.account-privacy-boundary p{margin:0;color:#5B6376;font-size:10.5px;line-height:1.65}.reader-public-privacy{margin-top:16px!important;padding:10px 12px;border:1px solid #D9D6D0;border-radius:10px;background:#ECEAE6;color:#5B6376;font-size:10.5px;line-height:1.65!important}
@media(max-width:620px){.account-profile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:-4px}.account-profile-nav a,.account-profile-nav span{min-width:0;min-height:42px;padding:0 5px;font-size:12.5px;text-align:center}.account-privacy-boundary{padding:10px}}

/* Build 338 — Settings Quick Hub Links */
.juf-account-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.juf-account-quick-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #D9D6D0;
    border-radius: 14px;
    background: #F6F5F2;
    text-decoration: none;
    color: #282E37;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.juf-account-quick-item:hover {
    border-color: #2C3243;
    background: #ECEAE6;
    transform: translateY(-1px);
}
.juf-account-quick-item strong {
    font-family: var(--font-heading-editorial, 'Kalpurush', serif);
    font-size: 16.5px;
    font-weight: 600;
    color: #282E37;
}
.juf-account-quick-item small {
    font-family: var(--font-ui-system, 'Noto Sans Bengali', sans-serif);
    font-size: 12px;
    line-height: 1.45;
    color: #5B6376;
}
@media (max-width: 620px) {
    .juf-account-quick-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
html[data-theme="dark"] .juf-account-quick-item {
    background: #23262B;
    border-color: #3A3F47;
    color: #ECE8E1;
}
html[data-theme="dark"] .juf-account-quick-item strong {
    color: #ECE8E1;
}
html[data-theme="dark"] .juf-account-quick-item small {
    color: #A09B94;
}


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

/* ==========================================================================
   V156 — PROFILE PHASE 1: HERO ACTION SYMMETRY & 8-TAB BAR SCROLL FADE
   1. Eliminates the orphaned half-width 3rd button in `.juf-ig-hero-actions`
      (2-col grid): on mobile, the primary Write CTA spans full width above
      the 2 balanced secondary pills; on desktop (>=641px), all 3 sit in one
      clean horizontal pill row.
   2. Unifies hero action pills (42px height, 999px radius, emoji-free SVG).
   3. Adds a subtle right-edge fade mask on `#juf-profile-swipe-tabs` below
      900px so users immediately see the 8 tabs scroll horizontally.
   ========================================================================== */
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;
    max-width: 100% !important;
    margin: 6px 0 2px !important;
}

html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn {
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
}

/* When 3 action buttons exist on mobile, make primary button full-width Row 1 */
html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:first-child:nth-last-child(3) {
    grid-column: 1 / -1 !important;
}

html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta) {
    background: transparent !important;
    border: 1px solid var(--line, rgba(24, 30, 42, 0.18)) !important;
    color: var(--ink, #1F2530) !important;
}

html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta):hover {
    background: rgba(24, 30, 42, 0.04) !important;
    border-color: rgba(24, 30, 42, 0.30) !important;
}

html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta) {
    background: transparent !important;
    border-color: rgba(244, 239, 230, 0.22) !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta):hover {
    background: rgba(244, 239, 230, 0.07) !important;
    border-color: rgba(244, 239, 230, 0.34) !important;
}

@media (min-width: 641px) {
    html body .site-main #library-home .juf-ig-hero-actions {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        max-width: 100% !important;
    }

    html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn {
        flex: 0 0 auto !important;
        padding: 0 18px !important;
    }
}

@media (max-width: 899px) {
    html body .site-main #library-home #juf-profile-swipe-tabs,
    html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs {
        padding: 4px 26px 0 2px !important;
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%) !important;
        mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%) !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 {
        padding: 7px 11px 9px !important;
        font-size: 11.5px !important;
    }
}

/* ==========================================================================
   V157 — PROFILE PHASE 2: BOX-FREE EDITORIAL QUIZ TAB & CLEAN METRIC STRIP
   Replaces inline-styled grey boxes in `#my-quizzes` with a calm, transparent,
   hairline-separated layout harmonizing with Light, PDF Paper, and Dark themes.
   ========================================================================== */
.juf-profile-quiz-head-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.juf-profile-quiz-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 6px 0 22px;
    border-top: 1px solid var(--line, rgba(24, 30, 42, 0.11));
    border-bottom: 1px solid var(--line, rgba(24, 30, 42, 0.11));
    background: transparent !important;
}

@media (min-width: 640px) {
    .juf-profile-quiz-stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.juf-profile-quiz-stat-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px 10px;
    text-align: center;
    position: relative;
}

.juf-profile-quiz-stat-card:nth-child(2n) {
    border-left: 1px solid var(--line, rgba(24, 30, 42, 0.09)) !important;
}

.juf-profile-quiz-stat-card:nth-child(n + 3) {
    border-top: 1px solid var(--line, rgba(24, 30, 42, 0.09)) !important;
}

@media (min-width: 640px) {
    .juf-profile-quiz-stat-card:nth-child(n + 3) {
        border-top: 0 !important;
    }
    .juf-profile-quiz-stat-card + .juf-profile-quiz-stat-card {
        border-left: 1px solid var(--line, rgba(24, 30, 42, 0.09)) !important;
    }
}

.juf-profile-quiz-stat-num {
    display: block;
    font: 700 24px/1.2 var(--font-ui-system, sans-serif);
    color: var(--ink, #1F2530);
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}

.juf-profile-quiz-stat-num.is-ok {
    color: var(--ok, #2E7A4F);
}

.juf-profile-quiz-stat-num.is-danger {
    color: var(--danger, #B0392B);
}

.juf-profile-quiz-stat-label {
    display: block;
    font: 500 12.5px/1.35 var(--font-ui-system, sans-serif);
    color: var(--muted, #5B6376);
}

.juf-profile-quiz-retake-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 12px 16px;
    margin: 0 0 22px;
    background: rgba(180, 120, 20, 0.06);
    border: 0;
    border-left: 3px solid #B57B1B;
    border-radius: 0 10px 10px 0;
}

.juf-profile-quiz-retake-copy {
    flex: 1 1 240px;
}

.juf-profile-quiz-retake-copy strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink, #1F2530);
    margin-bottom: 2px;
}

.juf-profile-quiz-retake-copy small {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted, #5B6376);
}

.juf-profile-quiz-retake-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--accent, #2B4593);
    color: #FFFFFF !important;
    font: 600 13.5px/1.2 var(--font-ui-system, sans-serif);
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.18s ease;
}

.juf-profile-quiz-retake-btn:hover {
    background: #22387A;
}

.juf-profile-quiz-weak-section {
    margin-bottom: 20px;
}

.juf-profile-quiz-weak-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink, #1F2530);
}

.juf-profile-quiz-weak-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line, rgba(24, 30, 42, 0.10));
}

.juf-profile-quiz-weak-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 14px;
    padding: 13px 2px;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line, rgba(24, 30, 42, 0.10)) !important;
    border-radius: 0 !important;
}

.juf-profile-quiz-weak-copy {
    flex: 1 1 220px;
    min-width: 0;
}

.juf-profile-quiz-weak-copy strong {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink, #1F2530);
    line-height: 1.4;
}

.juf-profile-quiz-weak-copy small {
    display: block;
    font-size: 12.5px;
    color: var(--muted, #5B6376);
    margin-top: 2px;
}

.juf-profile-quiz-weak-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Dark Theme Harmony for Profile Quiz Tab */
html[data-theme="dark"] .juf-profile-quiz-stats-grid,
html[data-theme="dark"] .juf-profile-quiz-weak-list,
html[data-theme="dark"] .juf-profile-quiz-weak-row,
html[data-theme="dark"] .juf-profile-quiz-stat-card {
    border-color: rgba(255, 255, 255, 0.11) !important;
}

html[data-theme="dark"] .juf-profile-quiz-stat-num,
html[data-theme="dark"] .juf-profile-quiz-weak-title,
html[data-theme="dark"] .juf-profile-quiz-weak-copy strong,
html[data-theme="dark"] .juf-profile-quiz-retake-copy strong {
    color: #F4EFE6;
}

html[data-theme="dark"] .juf-profile-quiz-stat-num.is-ok {
    color: #63C78A;
}

html[data-theme="dark"] .juf-profile-quiz-stat-num.is-danger {
    color: #F07B6E;
}

html[data-theme="dark"] .juf-profile-quiz-stat-label,
html[data-theme="dark"] .juf-profile-quiz-weak-copy small,
html[data-theme="dark"] .juf-profile-quiz-retake-copy small {
    color: #B6B0A6;
}

html[data-theme="dark"] .juf-profile-quiz-retake-banner {
    background: rgba(226, 170, 68, 0.10);
    border-left-color: #D9A243;
}

html[data-theme="dark"] .juf-profile-quiz-retake-btn {
    background: #3B5BDB;
}

html[data-theme="dark"] .juf-profile-quiz-retake-btn:hover {
    background: #4C6EF5;
}

/* PDF Paper Theme Harmony for Profile Quiz Tab */
html[data-theme="pdf"] .juf-profile-quiz-stats-grid,
body[data-pdf-mode="pdf"] .juf-profile-quiz-stats-grid,
html[data-theme="pdf"] .juf-profile-quiz-weak-list,
body[data-pdf-mode="pdf"] .juf-profile-quiz-weak-list,
html[data-theme="pdf"] .juf-profile-quiz-weak-row,
body[data-pdf-mode="pdf"] .juf-profile-quiz-weak-row,
html[data-theme="pdf"] .juf-profile-quiz-stat-card,
body[data-pdf-mode="pdf"] .juf-profile-quiz-stat-card {
    border-color: rgba(108, 92, 72, 0.22) !important;
}

html[data-theme="pdf"] .juf-profile-quiz-stat-num,
body[data-pdf-mode="pdf"] .juf-profile-quiz-stat-num,
html[data-theme="pdf"] .juf-profile-quiz-weak-title,
body[data-pdf-mode="pdf"] .juf-profile-quiz-weak-title,
html[data-theme="pdf"] .juf-profile-quiz-weak-copy strong,
body[data-pdf-mode="pdf"] .juf-profile-quiz-weak-copy strong,
html[data-theme="pdf"] .juf-profile-quiz-retake-copy strong,
body[data-pdf-mode="pdf"] .juf-profile-quiz-retake-copy strong {
    color: #241E17;
}

html[data-theme="pdf"] .juf-profile-quiz-stat-label,
body[data-pdf-mode="pdf"] .juf-profile-quiz-stat-label,
html[data-theme="pdf"] .juf-profile-quiz-weak-copy small,
body[data-pdf-mode="pdf"] .juf-profile-quiz-weak-copy small,
html[data-theme="pdf"] .juf-profile-quiz-retake-copy small,
body[data-pdf-mode="pdf"] .juf-profile-quiz-retake-copy small {
    color: #5C4E3E;
}

html[data-theme="pdf"] .juf-profile-quiz-retake-banner,
body[data-pdf-mode="pdf"] .juf-profile-quiz-retake-banner {
    background: rgba(140, 96, 26, 0.08);
    border-left-color: #9A6719;
}

/* ==========================================================================
   V158 — PROFILE PHASE 3: FULL PDF PAPER THEME HARMONY & MOBILE OVERLAY SAFETY
   1. Adds complete `html[data-theme="pdf"]` & `body[data-pdf-mode="pdf"]`
      warm paper styling across Profile hero, tabs, cards, dropdowns, and forms.
   2. Raises `.juf-modern-dropdown.is-open` / `.juf-modern-dropdown-menu`
      above mobile bottom nav (`z-index: 9990`) and ensures safe bottom padding
      on `#library-home` on mobile screens.
   ========================================================================== */
#library-home .juf-modern-dropdown.is-open {
    z-index: 10010 !important;
}

#library-home .juf-modern-dropdown-menu {
    z-index: 10015 !important;
}

@media (max-width: 900px) {
    html body .site-main #library-home.profile-hub {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* PDF Paper Theme — Core Profile Surfaces & Typography */
html[data-theme="pdf"] body .site-main #library-home .profile-hub-hero.juf-ig-profile-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    background: #F4EDE1 !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home h1,
html[data-theme="pdf"] body .site-main #library-home h2,
html[data-theme="pdf"] body .site-main #library-home h3,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-stat-num strong,
html[data-theme="pdf"] body .site-main #library-home .reader-bio,
body[data-pdf-mode="pdf"] .site-main #library-home h1,
body[data-pdf-mode="pdf"] .site-main #library-home h2,
body[data-pdf-mode="pdf"] .site-main #library-home h3,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-stat-num strong,
body[data-pdf-mode="pdf"] .site-main #library-home .reader-bio {
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-ig-stat-label,
html[data-theme="pdf"] body .site-main #library-home .profile-identity-meta,
html[data-theme="pdf"] body .site-main #library-home .profile-last-read,
html[data-theme="pdf"] body .site-main #library-home .profile-reading-position,
html[data-theme="pdf"] body .site-main #library-home .profile-review-author,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-empty p,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-stat-label,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-identity-meta,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-last-read,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-reading-position,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-review-author,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-empty p {
    color: #5C4E3E !important;
}

/* PDF Paper Theme — Hero Settings Pill & Action Buttons */
html[data-theme="pdf"] body .site-main #library-home .juf-ig-settings-pill,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta),
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-settings-pill,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta) {
    background: transparent !important;
    border-color: rgba(108, 92, 72, 0.32) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-ig-settings-pill:hover,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta):hover,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-settings-pill:hover,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta):hover {
    background: rgba(108, 92, 72, 0.09) !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn.is-primary-write-cta,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn.is-primary-write-cta {
    background: rgba(44, 70, 143, 0.12) !important;
    border-color: rgba(44, 70, 143, 0.30) !important;
    color: #2C468F !important;
}

/* PDF Paper Theme — 8-Tab Swipe Bar */
html[data-theme="pdf"] body .site-main #library-home #juf-profile-swipe-tabs,
body[data-pdf-mode="pdf"] .site-main #library-home #juf-profile-swipe-tabs {
    border-top-color: rgba(108, 92, 72, 0.22) !important;
    background: transparent !important;
}

html[data-theme="pdf"] body .site-main #library-home #juf-profile-swipe-tabs > a,
body[data-pdf-mode="pdf"] .site-main #library-home #juf-profile-swipe-tabs > a {
    color: #5C4E3E !important;
}

html[data-theme="pdf"] body .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"],
html[data-theme="pdf"] body .site-main #library-home #juf-profile-swipe-tabs > a.is-active,
body[data-pdf-mode="pdf"] .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"],
body[data-pdf-mode="pdf"] .site-main #library-home #juf-profile-swipe-tabs > a.is-active {
    color: #241E17 !important;
    border-bottom-color: #2C468F !important;
}

/* PDF Paper Theme — Cards, Panels, Empty States & Dropdowns */
html[data-theme="pdf"] body .site-main #library-home .profile-continue-card,
html[data-theme="pdf"] body .site-main #library-home .profile-shelf-card-v25,
html[data-theme="pdf"] body .site-main #library-home .profile-listening-card,
html[data-theme="pdf"] body .site-main #library-home .profile-note-panel,
html[data-theme="pdf"] body .site-main #library-home .profile-purchase-row,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-empty,
html[data-theme="pdf"] body .site-main #library-home .profile-premium-pass-v26,
html[data-theme="pdf"] body .site-main #library-home .juf-social-post-card,
html[data-theme="pdf"] body .site-main #library-home .profile-library-add-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-continue-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-shelf-card-v25,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-listening-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-note-panel,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-purchase-row,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-empty,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-premium-pass-v26,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-social-post-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-library-add-card {
    background: #EFE6D8 !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown-trigger,
html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown-menu,
html[data-theme="pdf"] body .site-main #library-home input[type="text"],
html[data-theme="pdf"] body .site-main #library-home input[type="search"],
html[data-theme="pdf"] body .site-main #library-home textarea,
html[data-theme="pdf"] body .site-main #library-home select,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-modern-dropdown-trigger,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-modern-dropdown-menu,
body[data-pdf-mode="pdf"] .site-main #library-home input[type="text"],
body[data-pdf-mode="pdf"] .site-main #library-home input[type="search"],
body[data-pdf-mode="pdf"] .site-main #library-home textarea,
body[data-pdf-mode="pdf"] .site-main #library-home select {
    background: #F7F1E7 !important;
    border-color: rgba(108, 92, 72, 0.28) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown-option,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-modern-dropdown-option {
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown-option:hover,
html[data-theme="pdf"] body .site-main #library-home .juf-modern-dropdown-option.is-selected,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-modern-dropdown-option:hover,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-modern-dropdown-option.is-selected {
    background: rgba(108, 92, 72, 0.12) !important;
}

/* ==========================================================================
   V159 — PROFILE BOX & SURFACE COLOR HARMONY (LIVE QA: 1795493394876.jpeg)
   Eliminates the muddy grey-beige outer boxes (`#ECEAE6`) and box-inside-box
   stacking across Hero, Sections, Tabs, and Reading Cards:
   1. Outer Hero & Section wrappers become completely transparent & box-free,
      separated by whisper-soft hairlines on the clean page canvas.
   2. Inner cards use crisp pure white (`#FFFFFF`) in Light, soft warm cream
      (`#F8F3EA`) in PDF Paper, and clean slate (`#1F232A`) in Dark.
   3. Unifies active tab (transparent + indigo underline), `Continue Reading`
      button (calm indigo `#2B4593` instead of charcoal `#3B4256`), and
      `View Book` button (transparent hairline instead of grey `#ECEAE6`).
   ========================================================================== */

/* 1. Box-Free Transparent Outer Wrappers (Hero + Sections) */
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,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-hero.juf-ig-profile-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-hero.juf-ig-profile-card,
html[data-theme="dark"] body .site-main #library-home .profile-hub-hero.juf-ig-profile-card {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 8px 0 0 !important;
    margin-bottom: 4px !important;
}

html body .site-main #library-home .profile-hub-section,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-section,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-section,
html[data-theme="dark"] body .site-main #library-home .profile-hub-section {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 18px 0 8px !important;
    margin: 0 !important;
}

html body .site-main #library-home .profile-hub-section + .profile-hub-section {
    border-top: 1px solid rgba(24, 30, 42, 0.08) !important;
    margin-top: 14px !important;
    padding-top: 22px !important;
}

html[data-theme="pdf"] body .site-main #library-home .profile-hub-section + .profile-hub-section,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-section + .profile-hub-section {
    border-top-color: rgba(108, 92, 72, 0.16) !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-hub-section + .profile-hub-section {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

/* 2. Active Tab: Clean Transparent Underline (No Grey Box Fill) */
html body .site-main #library-home #juf-profile-swipe-tabs {
    border-top: 1px solid rgba(24, 30, 42, 0.09) !important;
    border-bottom: 1px solid rgba(24, 30, 42, 0.09) !important;
    background: transparent !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs > a,
html body .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"],
html body .site-main #library-home #juf-profile-swipe-tabs > a.is-active,
html[data-theme="dark"] body .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"],
html[data-theme="pdf"] body .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"],
body[data-pdf-mode="pdf"] .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"] {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"],
html body .site-main #library-home #juf-profile-swipe-tabs > a.is-active {
    color: #2B4593 !important;
    border-bottom: 2.5px solid #2B4593 !important;
}

html[data-theme="dark"] body .site-main #library-home #juf-profile-swipe-tabs {
    border-top-color: rgba(255, 255, 255, 0.09) !important;
    border-bottom-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-theme="dark"] body .site-main #library-home #juf-profile-swipe-tabs > a[aria-current="page"],
html[data-theme="dark"] body .site-main #library-home #juf-profile-swipe-tabs > a.is-active {
    color: #93A8F8 !important;
    border-bottom-color: #93A8F8 !important;
}

html[data-theme="pdf"] body .site-main #library-home #juf-profile-swipe-tabs,
body[data-pdf-mode="pdf"] .site-main #library-home #juf-profile-swipe-tabs {
    border-top-color: rgba(108, 92, 72, 0.18) !important;
    border-bottom-color: rgba(108, 92, 72, 0.18) !important;
}

/* 3. Crisp Inner Cards (Light: Pure White, PDF: Soft Cream, Dark: Clean Slate) */
html body .site-main #library-home .profile-continue-card,
html body .site-main #library-home .profile-shelf-card-v25,
html body .site-main #library-home .profile-listening-card,
html body .site-main #library-home .profile-note-panel,
html body .site-main #library-home .profile-purchase-row,
html body .site-main #library-home .profile-hub-empty,
html body .site-main #library-home .profile-premium-pass-v26,
html body .site-main #library-home .juf-social-post-card,
html body .site-main #library-home .profile-library-add-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(24, 30, 42, 0.09) !important;
    box-shadow: 0 1px 2px rgba(24, 30, 42, 0.03) !important;
}

html[data-theme="pdf"] body .site-main #library-home .profile-continue-card,
html[data-theme="pdf"] body .site-main #library-home .profile-shelf-card-v25,
html[data-theme="pdf"] body .site-main #library-home .profile-listening-card,
html[data-theme="pdf"] body .site-main #library-home .profile-note-panel,
html[data-theme="pdf"] body .site-main #library-home .profile-purchase-row,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-empty,
html[data-theme="pdf"] body .site-main #library-home .profile-premium-pass-v26,
html[data-theme="pdf"] body .site-main #library-home .juf-social-post-card,
html[data-theme="pdf"] body .site-main #library-home .profile-library-add-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-continue-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-shelf-card-v25,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-listening-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-note-panel,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-purchase-row,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-empty,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-premium-pass-v26,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-social-post-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-library-add-card {
    background: #F8F3EA !important;
    border-color: rgba(108, 92, 72, 0.16) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-continue-card,
html[data-theme="dark"] body .site-main #library-home .profile-shelf-card-v25,
html[data-theme="dark"] body .site-main #library-home .profile-listening-card,
html[data-theme="dark"] body .site-main #library-home .profile-note-panel,
html[data-theme="dark"] body .site-main #library-home .profile-purchase-row,
html[data-theme="dark"] body .site-main #library-home .profile-hub-empty,
html[data-theme="dark"] body .site-main #library-home .profile-premium-pass-v26,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card,
html[data-theme="dark"] body .site-main #library-home .profile-library-add-card {
    background: #1F232A !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: none !important;
}

/* 4. Hero Pills & Reading Action Buttons (Harmonized Indigo Accent, No Muddy Grey) */
html body .site-main #library-home .juf-ig-settings-pill,
html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta) {
    background: #FFFFFF !important;
    border: 1px solid rgba(24, 30, 42, 0.14) !important;
    color: #1F2530 !important;
}

html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn.is-primary-write-cta {
    background: rgba(43, 69, 147, 0.09) !important;
    border: 1px solid rgba(43, 69, 147, 0.24) !important;
    color: #2B4593 !important;
}

html[data-theme="dark"] body .site-main #library-home .juf-ig-settings-pill,
html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta) {
    background: #1F232A !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #F4EFE6 !important;
}

html[data-theme="pdf"] body .site-main #library-home .juf-ig-settings-pill,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta),
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-settings-pill,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:not(.is-primary-write-cta) {
    background: #F8F3EA !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}

html body .site-main #library-home .profile-continue-actions .profile-text-action,
html body .site-main #library-home .profile-text-action {
    background: #2B4593 !important;
    border: 1px solid transparent !important;
    color: #FFFFFF !important;
    border-radius: 999px !important;
}

html body .site-main #library-home .profile-continue-actions .profile-text-action:hover,
html body .site-main #library-home .profile-text-action:hover {
    background: #22387A !important;
}

html body .site-main #library-home .profile-continue-actions .profile-quiet-action,
html body .site-main #library-home .profile-quiet-action {
    background: transparent !important;
    border: 1px solid rgba(24, 30, 42, 0.16) !important;
    color: #1F2530 !important;
    border-radius: 999px !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-continue-actions .profile-text-action,
html[data-theme="dark"] body .site-main #library-home .profile-text-action {
    background: #3B5BDB !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-continue-actions .profile-quiet-action,
html[data-theme="dark"] body .site-main #library-home .profile-quiet-action {
    background: transparent !important;
    border-color: rgba(244, 239, 230, 0.22) !important;
    color: #F4EFE6 !important;
}

html[data-theme="pdf"] body .site-main #library-home .profile-continue-actions .profile-quiet-action,
html[data-theme="pdf"] body .site-main #library-home .profile-quiet-action,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-continue-actions .profile-quiet-action,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-quiet-action {
    background: transparent !important;
    border-color: rgba(108, 92, 72, 0.26) !important;
    color: #241E17 !important;
}

/* ==========================================================================
   V160 — LIGHT FLOATING '+' WRITE ICON (FAB) ON PROFILE PAGE
   Replaces repetitive Write/New Post buttons with a single light, refined
   floating '+' squircle hovering cleanly above the mobile bottom nav.
   ========================================================================== */
.juf-profile-write-fab {
    position: fixed;
    right: 18px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 9985;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 69, 147, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 18px rgba(43, 69, 147, 0.22);
    text-decoration: none !important;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.juf-profile-write-fab:hover {
    background: rgba(34, 56, 122, 0.96);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(43, 69, 147, 0.28);
}

.juf-profile-write-fab:active {
    transform: scale(0.95);
}

@media (min-width: 901px) {
    .juf-profile-write-fab {
        right: 28px;
        bottom: 28px;
    }
}

html[data-theme="pdf"] .juf-profile-write-fab,
body[data-pdf-mode="pdf"] .juf-profile-write-fab {
    background: rgba(44, 70, 143, 0.92);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 16px rgba(44, 70, 143, 0.20);
}

html[data-theme="dark"] .juf-profile-write-fab {
    background: rgba(52, 78, 140, 0.92);
    color: #F4EFE6 !important;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .juf-profile-write-fab:hover {
    background: rgba(65, 95, 168, 0.96);
}

/* ==========================================================================
   V161 — 5-TAB EQUAL GRID PROFILE BAR (ZERO HORIZONTAL SCROLL ON MOBILE)
   Consolidates the 8-tab bar into 5 clean tabs (Summary, Library, Completed,
   Following, Quiz) that fit 100% evenly across mobile & desktop screens.
   ========================================================================== */
html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs.is-five-tabs {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 4px 0 0 !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs > a,
html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs.is-five-tabs > a {
    min-width: 0 !important;
    width: 100% !important;
    padding: 8px 4px 9px !important;
    font-size: 11px !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs > a .reader-nav-label {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (min-width: 900px) {
    html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs > a,
    html body .site-main #library-home .reader-desk-nav.juf-ig-tab-bar.juf-ig-swipe-tabs.is-five-tabs > a {
        flex-direction: row !important;
        font-size: 13px !important;
        gap: 6px !important;
        padding: 10px 8px !important;
    }
}

/* ==========================================================================
   V164 — PROFILE ULTRA-LIGHT & AIRY EDITORIAL POLISH ("হালকা হালকা")
   Removes visual heaviness across the entire Profile page:
   1. Slimmer, lighter hero pills (36px height, font-weight 500, hairline border).
   2. Lighter section headings (17px/600) & soft transparent icon accents.
   3. Box-free, hairline-separated reading, listening, post, review, note, and
      follow items (zero heavy cards or shadows).
   4. Soft indigo-tinted 'Continue Reading' pill & whisper-light 'View Book'
      secondary button, plus a sleeker 46px floating '+' icon.
   5. Full Light, PDF Paper, and Dark theme harmony.
   ========================================================================== */

/* 1. Lighter Hero Typography, Settings Pill & 2 Action Pills */
html body .site-main #library-home .juf-ig-title-row h1#profile-hub-title {
    font-size: 21px !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
}

html body .site-main #library-home .juf-ig-settings-pill {
    min-height: 32px !important;
    padding: 0 11px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: 1px solid rgba(24, 30, 42, 0.11) !important;
    box-shadow: none !important;
}

html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn {
    min-height: 36px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: 1px solid rgba(24, 30, 42, 0.12) !important;
    color: var(--ink, #1F2530) !important;
    box-shadow: none !important;
}

html body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn:hover {
    background: rgba(24, 30, 42, 0.035) !important;
    border-color: rgba(24, 30, 42, 0.22) !important;
}

/* 2. Lighter 5-Tab Bar */
html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs > a {
    font-weight: 500 !important;
    color: var(--muted, #646D7E) !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs > a[aria-current="page"],
html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs > a.is-active {
    font-weight: 600 !important;
    border-bottom-width: 2px !important;
}

html body .site-main #library-home #juf-profile-swipe-tabs.is-five-tabs > a svg {
    stroke-width: 1.65 !important;
}

/* 3. Lighter Section Headings & Soft Transparent Title Icons */
html body .site-main #library-home .profile-hub-heading h2 {
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

html body .site-main #library-home .profile-section-title-icon,
html body .site-main #library-home .profile-note-title-icon {
    background: transparent !important;
    border: 0 !important;
    width: 20px !important;
    height: 20px !important;
    color: var(--muted, #646D7E) !important;
    box-shadow: none !important;
}

html body .site-main #library-home .profile-heading-link {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #2B4593 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 2px !important;
}

/* 4. Box-Free, Hairline-Separated Inner Items (Airy & Uncluttered) */
html body .site-main #library-home .profile-continue-card,
html body .site-main #library-home .profile-listening-card,
html body .site-main #library-home .profile-note-panel,
html body .site-main #library-home .profile-purchase-row,
html body .site-main #library-home .profile-hub-empty,
html body .site-main #library-home .juf-social-post-card,
html body .site-main #library-home .juf-review-card-with-cover,
html body .site-main #library-home .juf-ig-follow-row {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(24, 30, 42, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px 0 !important;
}

html body .site-main #library-home .profile-continue-card:last-child,
html body .site-main #library-home .profile-listening-card:last-child,
html body .site-main #library-home .profile-purchase-row:last-child,
html body .site-main #library-home .juf-social-post-card:last-child,
html body .site-main #library-home .juf-review-card-with-cover:last-child,
html body .site-main #library-home .juf-ig-follow-row:last-child,
html body .site-main #library-home .profile-hub-empty {
    border-bottom: 0 !important;
}

html body .site-main #library-home .profile-shelf-card-v25,
html body .site-main #library-home .profile-library-add-card {
    background: transparent !important;
    border-color: rgba(24, 30, 42, 0.09) !important;
    box-shadow: none !important;
}

html body .site-main #library-home .profile-premium-pass-v26 {
    background: rgba(43, 69, 147, 0.04) !important;
    border: 1px solid rgba(43, 69, 147, 0.14) !important;
    box-shadow: none !important;
}

/* 5. Lighter Reading Action Pills (Soft Indigo Tint + Whisper Hairline) */
html body .site-main #library-home .profile-continue-actions .profile-text-action,
html body .site-main #library-home .profile-text-action,
html body .site-main #library-home .profile-inline-actions a.is-read-pill {
    min-height: 34px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: rgba(43, 69, 147, 0.10) !important;
    border: 1px solid rgba(43, 69, 147, 0.18) !important;
    color: #2B4593 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

html body .site-main #library-home .profile-continue-actions .profile-text-action:hover,
html body .site-main #library-home .profile-text-action:hover,
html body .site-main #library-home .profile-inline-actions a.is-read-pill:hover {
    background: rgba(43, 69, 147, 0.16) !important;
    color: #22387A !important;
}

html body .site-main #library-home .profile-continue-actions .profile-quiet-action,
html body .site-main #library-home .profile-quiet-action,
html body .site-main #library-home .profile-inline-actions a.is-audio-pill,
html body .site-main #library-home .profile-inline-actions button {
    min-height: 34px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: transparent !important;
    border: 1px solid rgba(24, 30, 42, 0.12) !important;
    color: var(--muted, #5B6376) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

/* Sleeker, Lighter Floating '+' Icon */
.juf-profile-write-fab {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    background: rgba(43, 69, 147, 0.88) !important;
    box-shadow: 0 4px 14px rgba(43, 69, 147, 0.18) !important;
}

/* 6. PDF Paper Theme Harmony (Ultra-Light) */
html[data-theme="pdf"] body .site-main #library-home .juf-ig-settings-pill,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-settings-pill,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn {
    background: transparent !important;
    border-color: rgba(108, 92, 72, 0.22) !important;
    color: #241E17 !important;
}

html[data-theme="pdf"] body .site-main #library-home .profile-continue-card,
html[data-theme="pdf"] body .site-main #library-home .profile-listening-card,
html[data-theme="pdf"] body .site-main #library-home .profile-note-panel,
html[data-theme="pdf"] body .site-main #library-home .profile-purchase-row,
html[data-theme="pdf"] body .site-main #library-home .profile-hub-empty,
html[data-theme="pdf"] body .site-main #library-home .juf-social-post-card,
html[data-theme="pdf"] body .site-main #library-home .juf-review-card-with-cover,
html[data-theme="pdf"] body .site-main #library-home .juf-ig-follow-row,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-continue-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-listening-card,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-note-panel,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-purchase-row,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-hub-empty,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-social-post-card,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-review-card-with-cover,
body[data-pdf-mode="pdf"] .site-main #library-home .juf-ig-follow-row {
    background: transparent !important;
    border-bottom-color: rgba(108, 92, 72, 0.16) !important;
}

html[data-theme="pdf"] body .site-main #library-home .profile-continue-actions .profile-text-action,
html[data-theme="pdf"] body .site-main #library-home .profile-text-action,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-continue-actions .profile-text-action,
body[data-pdf-mode="pdf"] .site-main #library-home .profile-text-action {
    background: rgba(44, 70, 143, 0.11) !important;
    border-color: rgba(44, 70, 143, 0.22) !important;
    color: #2C468F !important;
}

/* 7. Dark Theme Harmony (Ultra-Light) */
html[data-theme="dark"] body .site-main #library-home .juf-ig-settings-pill,
html[data-theme="dark"] body .site-main #library-home .juf-ig-hero-actions > .juf-ig-action-btn {
    background: transparent !important;
    border-color: rgba(244, 239, 230, 0.15) !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-heading-link {
    color: #93A8F8 !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-continue-card,
html[data-theme="dark"] body .site-main #library-home .profile-listening-card,
html[data-theme="dark"] body .site-main #library-home .profile-note-panel,
html[data-theme="dark"] body .site-main #library-home .profile-purchase-row,
html[data-theme="dark"] body .site-main #library-home .profile-hub-empty,
html[data-theme="dark"] body .site-main #library-home .juf-social-post-card,
html[data-theme="dark"] body .site-main #library-home .juf-review-card-with-cover,
html[data-theme="dark"] body .site-main #library-home .juf-ig-follow-row {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-continue-actions .profile-text-action,
html[data-theme="dark"] body .site-main #library-home .profile-text-action,
html[data-theme="dark"] body .site-main #library-home .profile-inline-actions a.is-read-pill {
    background: rgba(147, 168, 248, 0.14) !important;
    border-color: rgba(147, 168, 248, 0.26) !important;
    color: #A8BAFF !important;
}

html[data-theme="dark"] body .site-main #library-home .profile-continue-actions .profile-quiet-action,
html[data-theme="dark"] body .site-main #library-home .profile-quiet-action,
html[data-theme="dark"] body .site-main #library-home .profile-inline-actions a.is-audio-pill,
html[data-theme="dark"] body .site-main #library-home .profile-inline-actions button {
    background: transparent !important;
    border-color: rgba(244, 239, 230, 0.15) !important;
    color: #C4BEB4 !important;
}

/* ==========================================================================
   V165 — HIGH-SPECIFICITY TRANSPARENT SECTIONS & CARDS (ZERO 4-CORNER BOXES)
   Beats legacy `#library-home.profile-view-overview .profile-hub-section` and
   `#library-home section#my-posts .juf-social-post-card` specificity rules so
   no sharp 4-cornered `#ECEAE6` / `#F6F5F2` / `#23262B` rectangle ever leaks.
   ========================================================================== */
html body .site-main #library-home.profile-hub,
html body .site-main #library-home.profile-hub .profile-hub-hero.juf-ig-profile-card,
html body .site-main #library-home.profile-hub .profile-hub-section,
html body .site-main #library-home.profile-view-overview .profile-hub-section,
html body .site-main #library-home.profile-view-library .profile-hub-section,
html body .site-main #library-home.profile-view-reading .profile-hub-section,
html body .site-main #library-home.profile-view-following .profile-hub-section,
html body .site-main #library-home.profile-view-quizzes .profile-hub-section,
html body .site-main #library-home.profile-view-writings .profile-hub-section,
html body .site-main #library-home.profile-hub section.profile-hub-section,
html body .site-main #library-home.profile-hub .juf-social-writings-section,
html body .site-main #library-home.profile-hub .juf-ig-swipe-deck,
html body .site-main #library-home.profile-hub .juf-ig-swipe-panel,
html body .site-main #library-home.profile-hub .profile-overview-layout,
html body .site-main #library-home.profile-hub .profile-overview-main,
html body .site-main #library-home.profile-hub .profile-p3-reading-library,
html[data-theme="dark"] body .site-main #library-home.profile-hub .profile-hub-hero.juf-ig-profile-card,
html[data-theme="dark"] body .site-main #library-home.profile-hub .profile-hub-section,
html[data-theme="dark"] body .site-main #library-home.profile-view-overview .profile-hub-section,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home.profile-hub .profile-hub-section,
html[data-theme="dark"] body.juf-2d-minimal .site-main #library-home.profile-hub .juf-social-writings-section,
html[data-theme="pdf"] body .site-main #library-home.profile-hub .profile-hub-hero.juf-ig-profile-card,
html[data-theme="pdf"] body .site-main #library-home.profile-hub .profile-hub-section,
html[data-theme="pdf"] body .site-main #library-home.profile-view-overview .profile-hub-section,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .profile-hub-hero.juf-ig-profile-card,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .profile-hub-section {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .site-main #library-home.profile-hub section#my-posts .juf-social-post-card,
html[data-theme="dark"] body .site-main #library-home.profile-hub section#my-posts .juf-social-post-card,
html[data-theme="pdf"] body .site-main #library-home.profile-hub section#my-posts .juf-social-post-card,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub section#my-posts .juf-social-post-card,
html body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25,
html[data-theme="dark"] body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25,
html[data-theme="pdf"] body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Restore subtle top hairline between sibling sections */
html body .site-main #library-home.profile-hub .profile-hub-section + .profile-hub-section {
    border-top: 1px solid rgba(24, 30, 42, 0.08) !important;
}
html[data-theme="dark"] body .site-main #library-home.profile-hub .profile-hub-section + .profile-hub-section {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="pdf"] body .site-main #library-home.profile-hub .profile-hub-section + .profile-hub-section,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .profile-hub-section + .profile-hub-section {
    border-top: 1px solid rgba(108, 92, 72, 0.16) !important;
}

/* ==========================================================================
   V166 — REMOVE SAME-COLOR NESTED BOXES IN LIBRARY & PROFILE SHELL (1795497207022.jpeg)
   1. Removes the rounded outer border box on `.profile-shelf-card-v25` &
      `.profile-library-add-card` so books sit on clean hairline rows instead
      of a box drawn over the same-colored background.
   2. Ensures `body.juf-page-profile .site-main` and `#library-home` are
      completely transparent so no vertical outer column box appears.
   3. Harmonizes `.juf-inline-shelf-search` input & Search button with the
      ultra-light indigo tint style across Light, PDF Paper, and Dark themes.
   ========================================================================== */
html body.juf-page-profile .site-main,
html body .site-main #library-home.profile-hub.reader-desk,
html[data-theme="dark"] body.juf-page-profile .site-main,
html[data-theme="pdf"] body.juf-page-profile .site-main,
body[data-pdf-mode="pdf"].juf-page-profile .site-main {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Pure Hairline Rows for My Library Books (Zero Rounded Same-Color Boxes) */
html body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid,
html body .site-main #library-home.profile-hub #juf-dedicated-shelf-grid {
    gap: 0 !important;
}

html body .site-main #library-home.profile-hub .profile-shelf-card-v25,
html body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25,
html body .site-main #library-home.profile-hub .profile-library-add-card,
html[data-theme="dark"] body .site-main #library-home.profile-hub .profile-shelf-card-v25,
html[data-theme="dark"] body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25,
html[data-theme="pdf"] body .site-main #library-home.profile-hub .profile-shelf-card-v25,
html[data-theme="pdf"] body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .profile-shelf-card-v25,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 14px 0 !important;
}

html body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 {
    border-bottom: 1px solid rgba(24, 30, 42, 0.08) !important;
}

html body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25:last-child {
    border-bottom: 0 !important;
}

html[data-theme="dark"] body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="pdf"] body .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25,
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .profile-shelf-grid-v25.is-dedicated-shelf-grid .profile-shelf-card-v25 {
    border-bottom-color: rgba(108, 92, 72, 0.16) !important;
}

/* Lighter Library Search Bar & Search Pill */
html body .site-main #library-home.profile-hub .juf-inline-shelf-search input[type="search"] {
    background: transparent !important;
    border: 1px solid rgba(24, 30, 42, 0.14) !important;
    box-shadow: none !important;
}

html body .site-main #library-home.profile-hub .juf-inline-shelf-search button {
    background: rgba(43, 69, 147, 0.10) !important;
    border: 1px solid rgba(43, 69, 147, 0.18) !important;
    color: #2B4593 !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .site-main #library-home.profile-hub .juf-inline-shelf-search input[type="search"] {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #F4EFE6 !important;
}

html[data-theme="dark"] body .site-main #library-home.profile-hub .juf-inline-shelf-search button {
    background: rgba(147, 168, 248, 0.14) !important;
    border-color: rgba(147, 168, 248, 0.26) !important;
    color: #A8BAFF !important;
}

html[data-theme="pdf"] body .site-main #library-home.profile-hub .juf-inline-shelf-search input[type="search"],
body[data-pdf-mode="pdf"] .site-main #library-home.profile-hub .juf-inline-shelf-search input[type="search"] {
    background: transparent !important;
    border-color: rgba(108, 92, 72, 0.24) !important;
    color: #241E17 !important;
}

/* ==========================================================================
   Reader Writings Hub (`writings.php`) — Late-Loaded Editorial & 3-4 Col Grid
   Runs inside $late_stylesheets so it cleanly beats earlier royal-blue & 1-col rules.
   ========================================================================== */
html body .site-main .juf-public-writings-hub,
html body.juf-2d-minimal .juf-public-writings-hub {
  max-width: 1240px !important;
  margin-inline: auto !important;
}

html body .site-main .juf-public-writings-hub .juf-public-writings-hero,
html body.juf-2d-minimal .juf-public-writings-hub .juf-public-writings-hero {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line, #DEDAD2) !important;
  border-radius: 0 !important;
  padding: 10px 0 16px !important;
  margin-bottom: 16px !important;
  box-shadow: none !important;
}

html body .site-main .juf-public-writings-hub a.juf-public-writings-cta,
html body.juf-2d-minimal .juf-public-writings-hub a.juf-public-writings-cta {
  background: var(--accent, #3B4256) !important;
  border: 1px solid var(--accent, #3B4256) !important;
  color: var(--on-accent, #F6F5F2) !important;
  border-radius: 999px !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 0 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 6px 14px -6px color-mix(in srgb, var(--accent, #3B4256) 55%, transparent) !important;
}

html body .site-main .juf-public-writings-hub .juf-writings-search-bar,
html body.juf-2d-minimal .juf-public-writings-hub .juf-writings-search-bar {
  background: var(--card, #FFFFFF) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  border-radius: 12px !important;
  padding: 6px 8px !important;
  gap: 8px !important;
  box-shadow: none !important;
}

html body .site-main .juf-public-writings-hub .juf-writings-search-bar select,
html body.juf-2d-minimal .juf-public-writings-hub .juf-writings-search-bar select {
  background: var(--surface, #EDEBE6) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  color: var(--ink, #282E37) !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
}

html body .site-main .juf-public-writings-hub .juf-public-writings-tabs a,
html body.juf-2d-minimal .juf-public-writings-hub .juf-public-writings-tabs a {
  min-height: 36px !important;
  height: auto !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  background: var(--card, #FFFFFF) !important;
  box-shadow: 0 1px 2px rgba(40, 46, 55, 0.04) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  color: var(--muted, #5B6470) !important;
  box-shadow: none !important;
}

html body .site-main .juf-public-writings-hub .juf-public-writings-tabs a[aria-current="page"],
html body .site-main .juf-public-writings-hub .juf-public-writings-tabs a.is-active,
html body.juf-2d-minimal .juf-public-writings-hub .juf-public-writings-tabs a[aria-current="page"],
html body.juf-2d-minimal .juf-public-writings-hub .juf-public-writings-tabs a.is-active {
  background: var(--accent, #3B4256) !important;
  border-color: var(--accent, #3B4256) !important;
  color: var(--on-accent, #F6F5F2) !important;
  font-weight: 600 !important;
}

/* 2-col tablet, 3-col desktop, 4-col wide desktop grid */
html body .site-main .juf-public-writings-hub .juf-public-writings-grid,
html body.juf-2d-minimal .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 .site-main .juf-public-writings-hub .juf-public-writings-grid,
  html body.juf-2d-minimal .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 .site-main .juf-public-writings-hub .juf-public-writings-grid,
  html body.juf-2d-minimal .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 .site-main .juf-public-writings-hub .juf-public-writings-grid,
  html body.juf-2d-minimal .juf-public-writings-hub .juf-public-writings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

html body .site-main .juf-public-writings-grid .juf-social-post-card.juf-public-feed-card,
html body.juf-2d-minimal .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;
  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.16) !important;
}

html body .site-main .juf-public-writings-grid .juf-social-post-card .juf-social-post-title {
  font-size: 16.5px !important;
  font-weight: 600 !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 .site-main .juf-public-writings-grid .juf-social-post-card .juf-social-post-body,
html body .site-main .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 .site-main .juf-public-writings-grid .juf-social-post-card .juf-social-post-foot {
  margin-top: auto !important;
  padding-top: 12px !important;
}

/* ==========================================================================
   Audit Part 7 / 10 — Single Writing Post & Comments (`writings.php?post=ID`)
   CSS-only (writings.php untouched). Aligned 780px width, crisp paper sheet,
   calm accent send button, subtle reaction bar, editorial poem quote styling.
   ========================================================================== */
html body .juf-writing-reader-sheet {
  max-width: 780px !important;
  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 .juf-writing-comments-section {
  max-width: 780px !important;
  background: var(--card, #FFFFFF) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: none !important;
}

html body .juf-fb-comment-pill-wrap {
  background: var(--bg, #F6F5F2) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  border-radius: 12px !important;
}

html body .juf-fb-comment-send-icon {
  background: var(--accent, #3B4256) !important;
  color: var(--on-accent, #F6F5F2) !important;
  border-radius: 999px !important;
}

html body .juf-fb-action-btn {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
}

html body .juf-writing-reader-prose.is-poem-prose {
  border-left: 3px solid var(--accent, #3B4256) !important;
  line-height: 1.95 !important;
}

/* ==========================================================================
   Deep Audit Fix 1 — Public Member Profile (`member.php`) Light 3-Mode Polish
   Aligns member.php hero, inline stats, follow pill & cards with new profile.php.
   ========================================================================== */
html body .juf-member-profile-hub {
  max-width: 820px !important;
  margin-inline: auto !important;
}

html body .juf-member-profile-hub .juf-member-ig-card {
  background: var(--card, #FFFFFF) !important;
  border: 1px solid var(--line, #DEDAD2) !important;
  border-radius: 16px !important;
  padding: 18px 20px !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 .juf-member-profile-hub :where(.juf-ig-action-btn.is-primary-write-cta, .juf-writer-follow-btn:not(.is-following)) {
  background: var(--accent, #3B4256) !important;
  border-color: var(--accent, #3B4256) !important;
  color: var(--on-accent, #F6F5F2) !important;
  border-radius: 999px !important;
}

html body .juf-member-profile-hub :where(.juf-ig-action-btn, .juf-ig-settings-pill) {
  border-radius: 999px !important;
  min-height: 34px !important;
  height: 34px !important;
  font-size: 13px !important;
}


/* ==========================================================================
   BUILD 660 — MEMBER.PHP v13 EDITORIAL PUBLIC PROFILE UPGRADE (3-MODE)
   Matches profile.php v13 Hero (soft gradient banner, overlapping avatar,
   body-font name, clean stats, calm 3-mode accents, zero cobalt blue).
   ========================================================================== */
html body .juf-member-ig-card.juf-mem-v13 {
  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}

html body .juf-mem-v13 .juf-mem-hb {
  height: 78px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(120% 140% at 10% 0%, hsl(var(--mem-h, 30) 62% 84%), transparent 60%),
    radial-gradient(120% 140% at 95% 10%, hsl(calc(var(--mem-h, 30) + 55) 58% 86%), transparent 58%),
    hsl(var(--mem-h, 30) 30% 93%) !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .juf-mem-hb {
  background:
    radial-gradient(120% 140% at 10% 0%, hsl(var(--mem-h, 30) 44% 80%), transparent 60%),
    radial-gradient(120% 140% at 95% 10%, hsl(calc(var(--mem-h, 30) + 45) 40% 82%), transparent 58%),
    #E6DAC2 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .juf-mem-hb {
  background:
    radial-gradient(120% 140% at 10% 0%, hsl(var(--mem-h, 30) 28% 28%), transparent 60%),
    radial-gradient(120% 140% at 95% 10%, hsl(calc(var(--mem-h, 30) + 55) 26% 24%), transparent 58%),
    hsl(var(--mem-h, 30) 12% 17%) !important;
}

html body .juf-mem-v13 .juf-ig-hero-top {
  margin-top: -42px !important;
  padding: 0 8px !important;
  align-items: flex-end !important;
  gap: 14px !important;
}

html body .juf-mem-v13 .profile-hub-avatar {
  width: 84px !important;
  height: 84px !important;
  border: 0 !important;
  box-shadow: 0 0 0 4px var(--bg, #F6F5F2), 0 10px 24px -10px rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .profile-hub-avatar {
  box-shadow: 0 0 0 4px #F1E9D8, 0 10px 24px -10px rgba(58, 50, 38, 0.28) !important;
}

html[data-theme="dark"] body .juf-mem-v13 .profile-hub-avatar {
  box-shadow: 0 0 0 4px #23262B, 0 10px 24px -10px rgba(0, 0, 0, 0.55) !important;
}

html body .juf-mem-v13 .juf-ig-hero-right {
  padding-top: 46px !important;
}

html body .juf-mem-v13 .juf-mem-uname,
html body .juf-mem-v13 #profile-hub-title {
  font-family: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #282E37 !important;
  letter-spacing: -0.015em !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .juf-mem-uname {
  color: #3A3226 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .juf-mem-uname {
  color: #ECE8E1 !important;
}

html body .juf-mem-v13 .juf-ig-settings-pill {
  height: 36px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 1px solid #DEDAD2 !important;
  color: #282E37 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(40, 46, 55, 0.06) !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .juf-ig-settings-pill {
  background: #F9F6EF !important;
  border-color: #D8CBB0 !important;
  color: #3A3226 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .juf-ig-settings-pill {
  background: #2C3037 !important;
  border-color: #3A3F47 !important;
  color: #ECE8E1 !important;
}

/* Clean Bio & Meta Chips */
html body .juf-mem-v13 .juf-ig-hero-bio {
  padding: 12px 8px 6px !important;
}

html body .juf-mem-v13 .profile-identity-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
  margin-top: 8px !important;
}

html body .juf-mem-v13 .profile-identity-meta .is-premium {
  background: color-mix(in srgb, #8A4513 12%, #F6F5F2) !important;
  color: #8A4513 !important;
  border: 1px solid color-mix(in srgb, #8A4513 24%, transparent) !important;
  border-radius: 999px !important;
  padding: 3px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .profile-identity-meta .is-premium {
  background: rgba(224, 165, 111, 0.14) !important;
  color: #E0A56F !important;
  border-color: rgba(224, 165, 111, 0.28) !important;
}

/* Calm 3-Mode Action Buttons (Zero Cobalt Blue) */
html body .juf-mem-v13 .juf-ig-hero-actions {
  padding: 10px 4px 14px !important;
  gap: 10px !important;
}

html body .juf-mem-v13 .juf-ig-action-btn {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: #FFFFFF !important;
  color: #282E37 !important;
  border: 1px solid #DEDAD2 !important;
  box-shadow: 0 1px 3px rgba(40, 46, 55, 0.05) !important;
}

html body .juf-mem-v13 .juf-ig-action-btn.is-primary-write-cta {
  background: #3B4256 !important;
  color: #F6F5F2 !important;
  border-color: #3B4256 !important;
  box-shadow: 0 4px 12px -4px rgba(59, 66, 86, 0.35) !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .juf-ig-action-btn {
  background: #F9F6EF !important;
  color: #3A3226 !important;
  border-color: #D8CBB0 !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .juf-ig-action-btn.is-primary-write-cta {
  background: #4B4332 !important;
  color: #F1E9D8 !important;
  border-color: #4B4332 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .juf-ig-action-btn {
  background: #2C3037 !important;
  color: #ECE8E1 !important;
  border-color: #3A3F47 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .juf-ig-action-btn.is-primary-write-cta {
  background: #C9D4EC !important;
  color: #23262B !important;
  border-color: #C9D4EC !important;
}

/* Calm 3-Mode Tab Bar (Replaces Bright Blue Active Tab) */
html body .juf-mem-v13 .juf-ig-tab-bar {
  background: transparent !important;
  border-top: 1px solid #DEDAD2 !important;
  border-bottom: 1px solid #DEDAD2 !important;
  margin-top: 4px !important;
}

html body .juf-mem-v13 .juf-ig-tab-bar a[aria-current="page"] {
  color: #282E37 !important;
  border-bottom: 2.5px solid #3B4256 !important;
  background: transparent !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .juf-ig-tab-bar {
  border-color: #D8CBB0 !important;
}

html[data-theme="pdf"] body .juf-mem-v13 .juf-ig-tab-bar a[aria-current="page"] {
  color: #3A3226 !important;
  border-bottom-color: #4B4332 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .juf-ig-tab-bar {
  border-color: #3A3F47 !important;
}

html[data-theme="dark"] body .juf-mem-v13 .juf-ig-tab-bar a[aria-current="page"] {
  color: #ECE8E1 !important;
  border-bottom-color: #C9D4EC !important;
}

/* Fix Clipped Date & Cobalt-Blue Series Pill / Links on Member Writings Feed */
html body .juf-social-writings-section .juf-fb-post-meta,
html body .juf-social-writings-section .juf-fb-post-sub {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  flex-wrap: wrap !important;
}

html body .juf-social-writings-section .juf-series-badge,
html body .juf-social-writings-section .juf-fb-series-pill,
html body .juf-social-writings-section a[class*="series"] {
  background: color-mix(in srgb, #8A4513 10%, #F6F5F2) !important;
  color: #8A4513 !important;
  border: 1px solid color-mix(in srgb, #8A4513 26%, transparent) !important;
}

html[data-theme="dark"] body .juf-social-writings-section .juf-series-badge,
html[data-theme="dark"] body .juf-social-writings-section .juf-fb-series-pill,
html[data-theme="dark"] body .juf-social-writings-section a[class*="series"] {
  background: rgba(224, 165, 111, 0.14) !important;
  color: #E0A56F !important;
  border-color: rgba(224, 165, 111, 0.3) !important;
}

html body .juf-social-writings-section .juf-writings-head-clean a {
  color: #3B4256 !important;
}

html[data-theme="pdf"] body .juf-social-writings-section .juf-writings-head-clean a {
  color: #4B4332 !important;
}

html[data-theme="dark"] body .juf-social-writings-section .juf-writings-head-clean a {
  color: #C9D4EC !important;
}
