:root{
    --community-panel:rgba(37,19,66,.76);
    --community-lavender:#cfa9ff;
    --community-accent:#ff4fa0;
    --community-border:rgba(255,255,255,.12);
    --community-muted:#d8c8ef;
    --community-text:#171224;
    --community-shadow:0 28px 90px rgba(0,0,0,.32);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    min-height:100vh;
    font-family:Inter,sans-serif;
    color:white;
    background:radial-gradient(circle at top,#6c3aa0 0%,#241246 46%,#12091f 100%);
}

button,
input,
select,
textarea{
    font:inherit;
}

button{
    cursor:pointer;
}

a{
    color:inherit;
}

.community-header-nav{
    position:sticky;
    top:0;
    z-index:30;
    min-height:76px;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:28px;
    padding:0 42px;
    background:#2d1658;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.16);
}

.community-brand{
    display:flex;
    align-items:center;
    gap:14px;
    color:white;
    text-decoration:none;
}

.community-brand-dot{
    width:18px;
    height:18px;
    border-radius:50%;
    background:var(--community-accent);
    box-shadow:0 0 18px rgba(255,79,160,.45);
}

.community-brand span:last-child{
    display:grid;
    gap:2px;
}

.community-brand strong{
    color:white;
    font-size:27px;
    font-weight:900;
    letter-spacing:-.04em;
    line-height:1;
}

.community-brand small{
    color:#d8c8ef;
    font-size:11px;
    font-weight:800;
}

.community-main-nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:28px;
}

.community-main-nav a{
    color:white;
    text-decoration:none;
    font-size:15px;
    font-weight:900;
}

.community-main-nav a:hover,
.community-main-nav a.active{
    color:var(--community-accent);
}

.community-add-link{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    padding:0 22px;
    border:1px solid rgba(207,169,255,.42);
    border-radius:999px;
    background:rgba(255,255,255,.06);
    color:var(--community-accent) !important;
}

.community-auth{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
}

.community-auth a{
    color:white;
    text-decoration:none;
    font-size:15px;
    font-weight:900;
}

.community-signup{
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 26px;
    border-radius:999px;
    background:var(--community-accent);
    box-shadow:0 12px 28px rgba(255,79,160,.24);
}

.community-shell{
    width:min(1320px,100%);
    margin:0 auto;
    padding:52px 32px 120px;
}

.community-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:24px;
    margin-bottom:24px;
}

.community-hero > div,
.community-hero-card,
.community-panel,
.community-sidebar-card{
    border:1px solid var(--community-border);
    border-radius:34px;
    background:var(--community-panel);
    box-shadow:var(--community-shadow);
}

.community-hero > div{
    padding:44px;
}

.community-kicker{
    display:inline-flex;
    align-items:center;
    min-height:29px;
    padding:0 11px;
    margin-bottom:18px;
    border-radius:999px;
    background:#ffe4f1;
    color:#9f2f68;
    font-size:11px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.community-hero h1{
    max-width:900px;
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:72px;
    line-height:.96;
    letter-spacing:-.055em;
}

.community-hero p{
    max-width:790px;
    margin-top:18px;
    color:#d8c8ef;
    font-size:17px;
    line-height:1.65;
}

.community-hero-card{
    padding:28px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.community-hero-card span{
    color:var(--community-lavender);
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.community-hero-card strong{
    display:block;
    margin-top:10px;
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:62px;
    line-height:1;
    letter-spacing:-.05em;
}

.community-hero-card p{
    margin-top:8px;
    color:#d8c8ef;
    font-size:14px;
    font-weight:800;
}

.community-mode-switch{
    display:flex;
    gap:10px;
    width:max-content;
    max-width:100%;
    margin-bottom:24px;
    padding:10px;
    border:1px solid var(--community-border);
    border-radius:999px;
    background:var(--community-panel);
    box-shadow:0 20px 70px rgba(0,0,0,.18);
}

.community-mode-switch button{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    border-radius:999px;
    padding:0 18px;
    background:transparent;
    color:#d8c8ef;
    font-size:13px;
    font-weight:900;
}

.community-mode-switch button.active{
    background:#ff4fa0;
    color:white;
}

.community-mode-switch svg{
    width:17px;
    height:17px;
}

.community-view{
    display:none;
}

.community-view.active{
    display:block;
}

.community-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:28px;
    align-items:start;
}

.community-main-column{
    display:grid;
    gap:18px;
}

.community-sidebar{
    position:sticky;
    top:100px;
    display:grid;
    gap:18px;
}

.community-panel,
.community-sidebar-card{
    padding:28px;
}

.community-section-heading{
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:flex-start;
    margin-bottom:20px;
}

.community-section-heading span,
.timeline-composer-header span{
    display:inline-flex;
    margin-bottom:9px;
    color:var(--community-lavender);
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.community-section-heading h2,
.timeline-composer-header h2,
.community-sidebar-card h2{
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:34px;
    line-height:1;
    letter-spacing:-.035em;
}

.community-section-heading p,
.timeline-composer-header p{
    margin-top:7px;
    color:#d8c8ef;
    font-size:14px;
    line-height:1.5;
}

.community-section-heading button{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    border-radius:999px;
    padding:0 15px;
    background:#ff4fa0;
    color:white;
    font-size:13px;
    font-weight:900;
}

.community-section-heading svg{
    width:17px;
    height:17px;
}

.forum-search-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px;
    gap:12px;
    margin-bottom:16px;
}

.forum-search-row label{
    min-height:52px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:10px;
    padding:0 15px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    background:rgba(255,255,255,.08);
}

.forum-search-row svg{
    width:18px;
    height:18px;
    color:#cfa9ff;
}

.forum-search-row input,
.forum-search-row select,
.timeline-composer-options input,
.timeline-composer-options select,
.thread-form input,
.thread-form select,
.thread-form textarea{
    width:100%;
    border:1px solid rgba(255,255,255,.14);
    border-radius:16px;
    background:rgba(255,255,255,.08);
    color:white;
    outline:0;
}

.forum-search-row input{
    border:0;
    background:transparent;
    min-height:50px;
}

.forum-search-row input::placeholder,
.timeline-composer textarea::placeholder,
.timeline-composer-options input::placeholder,
.thread-form input::placeholder,
.thread-form textarea::placeholder{
    color:#bca7da;
}

.forum-search-row select{
    min-height:52px;
    padding:0 12px;
}

.forum-category-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.forum-category-row button{
    min-height:34px;
    border:0;
    border-radius:999px;
    padding:0 11px;
    background:rgba(255,255,255,.09);
    color:white;
    font-size:12px;
    font-weight:900;
}

.forum-category-row button.active{
    background:#ff4fa0;
}

.forum-thread-list,
.timeline-feed{
    display:grid;
    gap:14px;
}

.forum-thread-card,
.timeline-post-card{
    padding:20px;
    border:1px solid var(--community-border);
    border-radius:28px;
    background:var(--community-panel);
    box-shadow:0 20px 70px rgba(0,0,0,.18);
}

.thread-card-top,
.timeline-post-header{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-bottom:13px;
}

.thread-badge-row,
.thread-tag-list,
.timeline-post-tags,
.community-tag-cloud{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.thread-badge-row span,
.thread-tag-list span,
.timeline-post-tags span,
.community-tag-cloud span,
.community-pulse-list span{
    min-height:26px;
    display:inline-flex;
    align-items:center;
    padding:0 9px;
    border-radius:999px;
    background:#f0e3ff;
    color:#6b3c93;
    font-size:10px;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.thread-badge-row span:first-child{
    background:#ffe4f1;
    color:#9f2f68;
}

.thread-status{
    min-height:26px;
    display:inline-flex;
    align-items:center;
    padding:0 9px;
    border-radius:999px;
    background:#dcfce7;
    color:#166534;
    font-size:10px;
    font-weight:900;
    text-transform:uppercase;
}

.forum-thread-card h3{
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:31px;
    line-height:1.03;
}

.forum-thread-card p{
    margin-top:9px;
    color:#d8c8ef;
    font-size:14px;
    line-height:1.55;
}

.thread-tag-list{
    margin-top:14px;
}

.thread-card-footer{
    display:flex;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
    margin-top:17px;
    padding-top:15px;
    border-top:1px solid rgba(255,255,255,.1);
}

.thread-card-footer span{
    color:#d8c8ef;
    font-size:12px;
    font-weight:900;
}

.thread-actions,
.timeline-post-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.thread-actions button,
.timeline-post-actions button{
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:0;
    border-radius:999px;
    padding:0 12px;
    background:rgba(255,255,255,.1);
    color:white;
    font-size:12px;
    font-weight:900;
}

.thread-actions button.recommended,
.timeline-post-actions button.recommended{
    background:#ff4fa0;
}

.community-category-list,
.sidebar-thread-list,
.community-pulse-list{
    display:grid;
    gap:12px;
    margin-top:18px;
}

.community-category-list article,
.sidebar-thread-card,
.community-pulse-list article{
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
    text-decoration:none;
}

.community-category-list article{
    display:flex;
    gap:12px;
}

.community-category-list article > span{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    border-radius:14px;
    background:rgba(255,255,255,.1);
}

.community-category-list h3,
.sidebar-thread-card h3,
.community-pulse-list h3{
    color:white;
    font-size:14px;
    font-weight:900;
}

.community-category-list p,
.sidebar-thread-card p,
.community-pulse-list p{
    margin-top:4px;
    color:#d8c8ef;
    font-size:12px;
    line-height:1.45;
}

.community-guideline-list{
    display:grid;
    gap:10px;
    margin-top:18px;
    padding-left:18px;
    color:#d8c8ef;
    font-size:13px;
    line-height:1.5;
}

.community-pulse-list a{
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:13px;
    padding:0 12px;
    border-radius:999px;
    background:#ff4fa0;
    color:white;
    text-decoration:none;
    font-size:11px;
    font-weight:900;
}

.timeline-composer textarea{
    width:100%;
    min-height:130px;
    resize:vertical;
    padding:16px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:22px;
    background:rgba(255,255,255,.08);
    color:white;
    outline:0;
    font-size:15px;
    line-height:1.55;
}

.timeline-composer-options{
    display:grid;
    grid-template-columns:180px minmax(0,1fr) auto;
    gap:12px;
    align-items:end;
    margin-top:14px;
}

.timeline-composer-options label{
    display:grid;
    gap:7px;
}

.timeline-composer-options label > span{
    color:#d8c8ef;
    font-size:12px;
    font-weight:900;
}

.timeline-composer-options select,
.timeline-composer-options input{
    min-height:44px;
    padding:0 12px;
}

.timeline-composer-options button{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:0;
    border-radius:999px;
    padding:0 15px;
    background:#ff4fa0;
    color:white;
    font-size:13px;
    font-weight:900;
}

.timeline-toolbar{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
}

.timeline-toolbar span{
    color:white;
    font-size:17px;
    font-weight:900;
}

.timeline-toolbar p{
    margin-top:4px;
    color:#d8c8ef;
    font-size:13px;
    font-weight:800;
}

.timeline-toolbar label{
    display:flex;
    align-items:center;
    gap:10px;
    color:#d8c8ef;
    font-size:12px;
    font-weight:900;
}

.timeline-toolbar select{
    min-height:42px;
    padding:0 14px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    background:#2a154e;
    color:white;
    font-size:13px;
    font-weight:900;
}

.timeline-author{
    display:flex;
    gap:12px;
    align-items:center;
}

.timeline-avatar{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:17px;
    background:#ff4fa0;
    color:white;
    font-size:17px;
    font-weight:900;
}

.timeline-author strong{
    color:white;
    font-size:14px;
    font-weight:900;
}

.timeline-author span,
.timeline-post-time{
    display:block;
    margin-top:3px;
    color:#d8c8ef;
    font-size:12px;
    font-weight:800;
}

.timeline-post-body{
    margin-top:16px;
    color:#e9ddff;
    font-size:15px;
    line-height:1.65;
}

.timeline-attachment{
    margin-top:14px;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
}

.timeline-attachment span{
    color:#cfa9ff;
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.timeline-attachment strong{
    display:block;
    margin-top:5px;
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:23px;
    line-height:1;
}

.timeline-post-tags{
    margin-top:14px;
}

.timeline-post-actions{
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,.1);
}

.timeline-post-actions svg{
    width:15px;
    height:15px;
}

.community-empty-state{
    display:none;
    padding:36px;
    border:1px dashed rgba(255,255,255,.18);
    border-radius:28px;
    background:rgba(255,255,255,.06);
    text-align:center;
}

.community-empty-state.show{
    display:block;
}

.community-empty-state div{
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 16px;
    border-radius:20px;
    background:rgba(255,255,255,.1);
    color:var(--community-lavender);
}

.community-empty-state svg{
    width:26px;
    height:26px;
}

.community-empty-state h2{
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:31px;
    line-height:1;
}

.community-empty-state p{
    max-width:460px;
    margin:10px auto 0;
    color:#d8c8ef;
    font-size:14px;
    line-height:1.5;
}

.community-modal-overlay{
    position:fixed;
    inset:0;
    z-index:100;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(4px);
}

.community-modal-overlay.open{
    display:flex;
}

.community-modal{
    width:min(680px,100%);
    padding:28px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:30px;
    background:#2a154e;
    box-shadow:0 28px 90px rgba(0,0,0,.42);
}

.community-modal-header{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
    margin-bottom:20px;
}

.community-modal-header span{
    color:#cfa9ff;
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.community-modal-header h2{
    margin-top:7px;
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:36px;
    line-height:1;
}

.community-modal-header button{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:15px;
    background:rgba(255,255,255,.1);
    color:white;
}

.thread-form{
    display:grid;
    gap:16px;
}

.thread-form label{
    display:grid;
    gap:8px;
}

.thread-form label > span{
    color:#d8c8ef;
    font-size:12px;
    font-weight:900;
}

.thread-form input,
.thread-form select{
    min-height:48px;
    padding:0 13px;
}

.thread-form textarea{
    padding:13px;
    resize:vertical;
}

.thread-form-footer{
    display:flex;
    justify-content:flex-end;
    gap:10px;
}

.thread-form-footer button{
    min-height:42px;
    border:0;
    border-radius:999px;
    padding:0 15px;
    color:white;
    font-size:13px;
    font-weight:900;
}

.thread-form-footer button:first-child{
    background:rgba(255,255,255,.1);
}

.thread-form-footer button:last-child{
    background:#ff4fa0;
}

.community-empty-copy{
    color:#d8c8ef;
    font-size:13px;
    line-height:1.5;
}

@media (max-width:1100px){
    .community-header-nav{
        grid-template-columns:1fr;
        gap:18px;
        padding:18px 22px;
    }

    .community-main-nav{
        justify-content:flex-start;
        gap:18px;
        overflow-x:auto;
        padding-bottom:4px;
    }

    .community-auth{
        justify-content:flex-start;
    }

    .community-hero,
    .community-layout{
        grid-template-columns:1fr;
    }

    .community-sidebar{
        position:static;
    }
}

@media (max-width:700px){
    .community-shell{
        padding:38px 18px 90px;
    }

    .community-hero > div{
        padding:30px 24px;
    }

    .community-hero h1{
        font-size:48px;
    }

    .community-mode-switch{
        width:100%;
        border-radius:24px;
    }

    .community-mode-switch button{
        flex:1;
    }

    .forum-search-row,
    .timeline-composer-options{
        grid-template-columns:1fr;
    }

    .community-section-heading,
    .timeline-toolbar,
    .thread-card-top,
    .thread-card-footer{
        flex-direction:column;
        align-items:stretch;
    }

    .community-section-heading button,
    .timeline-composer-options button{
        width:100%;
    }

    .community-panel,
    .community-sidebar-card{
        padding:22px;
    }
}
/* =========================================================
   COMMUNITY BETA — FUNCTIONAL SUPABASE PASS
========================================================= */
.community-system-status{
    margin:0 0 20px;
    padding:14px 18px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    background:rgba(255,255,255,.08);
    color:#f4ecff;
    font-size:13px;
    font-weight:800;
    line-height:1.45;
}
.community-system-status.error{
    border-color:rgba(255,126,174,.38);
    background:rgba(117,31,70,.34);
}

.community-author-line{
    display:flex;
    align-items:center;
    gap:10px;
    margin:2px 0 13px;
}
.community-author-line strong{
    color:white;
    font-size:13px;
    font-weight:900;
}
.community-author-line span{
    display:block;
    margin-top:2px;
    color:#cdbde5;
    font-size:11px;
    font-weight:700;
}
.community-avatar-small,
.timeline-avatar,
.timeline-composer-avatar{
    object-fit:cover;
    border-radius:50%;
    background:linear-gradient(135deg,#ff4fa0,#8e5ed7);
    color:white;
    flex:0 0 auto;
}
.community-avatar-small{
    width:36px;
    height:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}
.timeline-avatar{
    width:46px;
    height:46px;
}
.timeline-composer-identity{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 14px;
    padding:12px 14px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    background:rgba(255,255,255,.055);
}
.timeline-composer-avatar{
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    font-weight:900;
}
.timeline-composer-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.timeline-composer-identity strong{
    display:block;
    color:white;
    font-size:13px;
    font-weight:900;
}
.timeline-composer-identity span{
    display:block;
    margin-top:3px;
    color:#cdbde5;
    font-size:11px;
    font-weight:700;
}
.timeline-composer-count{
    margin-top:6px;
    color:#bca7da;
    text-align:right;
    font-size:11px;
    font-weight:800;
}
.timeline-composer textarea:disabled,
.timeline-composer-options button:disabled{
    opacity:.55;
    cursor:not-allowed;
}
.timeline-composer-options{
    grid-template-columns:160px minmax(180px,1fr) minmax(180px,1fr) auto;
}
.timeline-custom-attachment{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:12px;
}
.timeline-custom-attachment label{
    display:grid;
    gap:7px;
}
.timeline-custom-attachment span{
    color:#d8c8ef;
    font-size:12px;
    font-weight:900;
}
.timeline-custom-attachment input{
    min-height:44px;
    width:100%;
    padding:0 12px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:16px;
    background:rgba(255,255,255,.08);
    color:white;
    outline:0;
}

.community-verified{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:16px;
    margin-left:4px;
    border-radius:50%;
    background:#ff4fa0;
    color:white;
    font-size:10px;
    vertical-align:middle;
}

.timeline-attachment-rich{
    width:100%;
    display:grid;
    grid-template-columns:92px 1fr;
    gap:0;
    align-items:stretch;
    overflow:hidden;
    padding:0;
    border:1px solid rgba(255,255,255,.12);
    text-align:left;
    cursor:pointer;
}
.timeline-attachment-rich img,
.timeline-attachment-fallback{
    width:92px;
    height:78px;
    object-fit:cover;
}
.timeline-attachment-fallback{
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#5f2c83,#2d1658);
    color:#ff79b6;
}
.timeline-attachment-rich > span{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:12px 14px;
}
.timeline-attachment-rich small{
    color:#cfa9ff;
    font-size:10px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.timeline-attachment-rich strong{
    margin-top:5px;
    font-size:18px;
    line-height:1.1;
}
.timeline-attachment-rich:disabled{
    cursor:default;
}

.sidebar-thread-card{
    width:100%;
    border:1px solid rgba(255,255,255,.1);
    color:inherit;
    text-align:left;
    cursor:pointer;
}
.sidebar-thread-card:hover{
    background:rgba(255,255,255,.12);
}

.community-danger-action{
    color:#ffafcb !important;
    background:rgba(255,79,160,.08) !important;
}

.community-conversation-modal{
    width:min(820px,100%);
    max-height:88vh;
    overflow:auto;
}
.community-conversation-original{
    padding:18px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    background:rgba(255,255,255,.055);
}
.community-conversation-original h3{
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:27px;
    line-height:1.05;
}
.community-conversation-original > p{
    margin-top:10px;
    color:#e9ddff;
    font-size:14px;
    line-height:1.65;
}
.community-replies-heading{
    margin:22px 0 10px;
    color:#cfa9ff;
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.community-replies-list{
    display:grid;
    gap:10px;
}
.community-reply-card{
    padding:14px 16px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:18px;
    background:rgba(255,255,255,.045);
}
.community-reply-card .community-author-line{
    margin-bottom:8px;
}
.community-reply-card p{
    color:#eadfff;
    font-size:13px;
    line-height:1.6;
}
.community-reply-form{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.1);
}
.community-reply-form textarea{
    width:100%;
    min-height:100px;
    resize:vertical;
    padding:13px 14px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:18px;
    background:rgba(255,255,255,.08);
    color:white;
    outline:0;
}
.community-reply-form textarea:disabled{
    opacity:.55;
}
.community-reply-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:10px;
}
.community-reply-footer span{
    color:#bca7da;
    font-size:11px;
    font-weight:700;
}
.community-reply-footer button{
    min-height:40px;
    padding:0 16px;
    border:0;
    border-radius:999px;
    background:#ff4fa0;
    color:white;
    font-size:12px;
    font-weight:900;
}
.community-reply-footer button:disabled{
    opacity:.5;
    cursor:not-allowed;
}

.community-tag-cloud span b{
    margin-left:4px;
    opacity:.7;
}

@media (max-width:900px){
    .timeline-composer-options{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:700px){
    .timeline-composer-options,
    .timeline-custom-attachment{
        grid-template-columns:1fr;
    }
    .timeline-attachment-rich{
        grid-template-columns:72px 1fr;
    }
    .timeline-attachment-rich img,
    .timeline-attachment-fallback{
        width:72px;
        height:72px;
    }
    .community-reply-footer{
        align-items:stretch;
        flex-direction:column;
    }
    .community-reply-footer button{
        width:100%;
    }
}

/* =========================================================
   COMMUNITY SOCIAL UPGRADE
   Public profiles + richer attachments + live pulse
========================================================= */

.community-author-avatar-link,
.community-author-name-link{
    color:inherit;
    text-decoration:none;
}
.community-author-avatar-link{
    display:flex;
    flex:0 0 auto;
    border-radius:50%;
}
.community-author-avatar-link:hover .community-avatar-small,
.community-author-avatar-link:hover .timeline-avatar{
    outline:2px solid rgba(255,79,160,.8);
    outline-offset:2px;
}
.community-author-name-link strong{
    transition:color .16s ease;
}
.community-author-name-link:hover strong{
    color:#ff79b6;
}

.timeline-live-pulse{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
    padding:14px 18px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:22px;
    background:linear-gradient(135deg,rgba(255,79,160,.09),rgba(207,169,255,.055));
    box-shadow:0 16px 44px rgba(0,0,0,.12);
}
.timeline-live-label{
    display:flex;
    align-items:center;
    gap:10px;
}
.timeline-live-dot{
    width:10px;
    height:10px;
    flex:0 0 auto;
    border-radius:50%;
    background:#ff4fa0;
    box-shadow:0 0 0 5px rgba(255,79,160,.12),0 0 18px rgba(255,79,160,.55);
}
.timeline-live-label strong{
    display:block;
    color:white;
    font-size:12px;
    font-weight:900;
}
.timeline-live-label small{
    display:block;
    margin-top:2px;
    color:#bfaed8;
    font-size:10px;
    font-weight:700;
}
.timeline-live-stats{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:9px;
}
.timeline-live-stats span{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:30px;
    padding:0 10px;
    border-radius:999px;
    background:rgba(255,255,255,.065);
    color:#d8c8ef;
    font-size:10px;
    font-weight:800;
}
.timeline-live-stats b{
    color:white;
    font-size:11px;
}
.timeline-active-voices{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    min-width:76px;
}
.timeline-active-voices a{
    display:flex;
    margin-left:-7px;
    border:2px solid #2d1658;
    border-radius:50%;
    text-decoration:none;
    transition:transform .16s ease;
}
.timeline-active-voices a:first-child{
    margin-left:0;
}
.timeline-active-voices a:hover{
    z-index:2;
    transform:translateY(-2px);
}
.timeline-active-voice-avatar{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    object-fit:cover;
    border-radius:50%;
    background:linear-gradient(135deg,#ff4fa0,#8e5ed7);
    color:white;
    font-size:10px;
    font-weight:900;
}
.timeline-no-voices{
    color:#bca7da;
    font-size:10px;
    font-weight:700;
}

.timeline-context-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
    margin:2px 0 3px;
}
.timeline-context-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:26px;
    padding:0 9px;
    border-radius:999px;
    background:#ffe4f1;
    color:#9f2f68;
    font-size:9px;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.timeline-context-pill svg{
    width:13px;
    height:13px;
}
.timeline-context-source{
    color:#af9bcf;
    font-size:10px;
    font-weight:800;
}

.timeline-attachment-rich{
    position:relative;
    grid-template-columns:154px minmax(0,1fr) 34px;
    min-height:116px;
    margin-top:14px;
    border-radius:22px;
    background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.055));
    transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.timeline-attachment-rich:not(:disabled):hover{
    transform:translateY(-1px);
    border-color:rgba(255,121,182,.4);
    background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,.07));
}
.timeline-attachment-media{
    width:154px;
    min-height:116px;
    overflow:hidden;
    background:#2b154d;
}
.timeline-attachment-rich img,
.timeline-attachment-rich .timeline-attachment-fallback{
    width:154px;
    height:116px;
    display:flex;
    align-items:center;
    justify-content:center;
    object-fit:cover;
}
.timeline-attachment-fallback svg{
    width:27px;
    height:27px;
}
.timeline-attachment-copy{
    min-width:0;
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    padding:14px 16px !important;
}
.timeline-attachment-copy small{
    color:#ff9bc8;
}
.timeline-attachment-copy strong{
    width:100%;
    color:white;
    font-family:Georgia,"Times New Roman",serif;
    font-size:21px;
    line-height:1.05;
}
.timeline-attachment-copy p{
    margin-top:5px;
    color:#d7c8eb;
    font-size:11px;
    font-weight:800;
}
.timeline-attachment-copy em{
    margin-top:6px;
    color:#cfa9ff;
    font-size:9px;
    font-style:normal;
    font-weight:900;
    letter-spacing:.03em;
    text-transform:uppercase;
}
.timeline-attachment-description{
    display:block !important;
    margin-top:7px !important;
    padding:0 !important;
    color:#bca9d7 !important;
    font-size:10px !important;
    font-weight:600 !important;
    line-height:1.4;
}
.timeline-attachment-arrow{
    align-self:center;
    width:17px;
    height:17px;
    color:#ff79b6;
}

.timeline-reply-preview{
    width:100%;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:9px;
    margin-top:13px;
    padding:10px 12px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:16px;
    background:rgba(255,255,255,.045);
    color:white;
    text-align:left;
}
.timeline-reply-preview:hover{
    background:rgba(255,255,255,.075);
}
.timeline-reply-preview-avatar{
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    object-fit:cover;
    background:linear-gradient(135deg,#ff4fa0,#8e5ed7);
    color:white;
    font-size:9px;
    font-weight:900;
}
.timeline-reply-preview span{
    min-width:0;
}
.timeline-reply-preview strong,
.timeline-reply-preview small{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.timeline-reply-preview strong{
    color:#f8f2ff;
    font-size:10px;
    font-weight:900;
}
.timeline-reply-preview small{
    margin-top:2px;
    color:#bca9d7;
    font-size:10px;
    font-weight:650;
}
.timeline-reply-preview > svg{
    width:15px;
    height:15px;
    color:#bca7da;
}

.timeline-custom-attachment{
    grid-template-columns:1fr 1fr 1fr;
}
.timeline-custom-attachment label > span small{
    margin-left:4px;
    color:#9d88bd;
    font-size:9px;
    font-weight:700;
    text-transform:none;
}

@media (max-width:900px){
    .timeline-live-pulse{
        grid-template-columns:1fr auto;
    }
    .timeline-live-stats{
        grid-column:1/-1;
        grid-row:2;
        justify-content:flex-start;
    }
    .timeline-custom-attachment{
        grid-template-columns:1fr;
    }
}

@media (max-width:700px){
    .timeline-live-pulse{
        grid-template-columns:1fr;
    }
    .timeline-active-voices{
        justify-content:flex-start;
    }
    .timeline-live-stats{
        grid-column:auto;
        grid-row:auto;
    }
    .timeline-attachment-rich{
        grid-template-columns:96px minmax(0,1fr) 28px;
        min-height:96px;
    }
    .timeline-attachment-media,
    .timeline-attachment-rich img,
    .timeline-attachment-rich .timeline-attachment-fallback{
        width:96px;
        height:96px;
        min-height:96px;
    }
    .timeline-attachment-description{
        display:none !important;
    }
    .timeline-attachment-copy strong{
        font-size:17px;
    }
}
