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

:root {
    --blue: #1877f2;
    --background: #f0f2f5;
    --white: #ffffff;
    --text: #050505;
    --muted: #65676b;
    --border: #dddfe2;
    --hover: #e4e6eb;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

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

button {
    cursor: pointer;
    border: 0;
}

.hidden {
    display: none !important;
}


/* LOGIN */

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: var(--background);
}

.login-wrapper {
    width: min(920px, 100%);

    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 70px;

    align-items: center;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.big-logo {
    width: 70px;
    height: 70px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue);
    color: white;

    font-size: 42px;
    font-weight: bold;
}

.login-brand h1 {
    color: var(--blue);
    font-size: 48px;
}

.login-brand p {
    margin-top: 10px;
    max-width: 430px;

    font-size: 21px;
    line-height: 1.35;
}

.login-card {
    padding: 24px;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 2px 16px rgba(0, 0, 0, 0.14);
}

.login-card h2 {
    margin-bottom: 18px;
    text-align: center;
}

.login-card input {
    width: 100%;
    height: 48px;

    margin-bottom: 12px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 8px;

    outline: 0;
}

.login-card input:focus {
    border-color: var(--blue);
}

.primary-button {
    width: 100%;
    min-height: 46px;

    border-radius: 8px;

    background: var(--blue);
    color: white;

    font-weight: bold;
}

.primary-button:disabled {
    opacity: 0.6;
}


/* TOP */

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    height: 56px;

    padding: 0 16px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: white;

    border-bottom: 1px solid #e4e6eb;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.top-right {
    justify-content: flex-end;
}

.logo-small {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--blue);
    color: white;

    font-size: 24px;
    font-weight: bold;
}

.brand-name {
    color: var(--blue);
    font-size: 21px;
}

.search-input {
    width: 260px;
    height: 40px;

    padding: 0 15px;

    border: 0;
    outline: 0;

    border-radius: 22px;

    background: var(--background);
}

.top-nav {
    display: flex;
    align-items: center;
}

.nav-button {
    width: 95px;
    height: 52px;

    background: transparent;

    font-size: 24px;

    color: var(--muted);
}

.nav-button.active {
    color: var(--blue);
    border-bottom: 3px solid var(--blue);
}

.round-button {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: var(--hover);

    font-size: 20px;
}

.profile-button {
    min-height: 42px;

    padding: 3px 9px;

    display: flex;
    align-items: center;

    gap: 6px;

    border-radius: 22px;

    background: var(--background);
}


/* AVATAR */

.avatar {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #1877f2,
            #6f42c1
        );

    color: white;

    font-weight: bold;
}


/* LAYOUT */

.layout {
    min-height: 100vh;

    padding-top: 56px;

    display: grid;

    grid-template-columns:
        290px
        minmax(420px, 680px)
        300px;

    gap: 24px;

    justify-content: space-between;
}


/* LEFT */

.left-sidebar {
    position: sticky;
    top: 56px;

    height: calc(100vh - 56px);

    padding: 18px 10px;
}

.sidebar-profile {
    min-height: 50px;

    padding: 6px 8px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.sidebar-link {
    width: 100%;
    min-height: 50px;

    padding: 8px 12px;

    border-radius: 8px;

    background: transparent;

    text-align: left;

    font-weight: 600;
}

.sidebar-link:hover {
    background: var(--hover);
}

.sidebar-footer {
    margin-top: 25px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.7;
}


/* FEED */

.feed-column {
    width: 100%;

    padding: 24px 0 60px;
}

.card {
    margin-bottom: 16px;

    border-radius: 10px;

    background: white;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.12);
}

.composer {
    padding: 12px 16px 8px;
}

.composer-top {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-bottom: 12px;

    border-bottom:
        1px solid var(--border);
}

.composer-input {
    flex: 1;

    height: 42px;

    padding: 0 15px;

    border-radius: 22px;

    background: var(--background);

    color: var(--muted);

    text-align: left;

    font-size: 17px;
}

.composer-actions {
    display: grid;
    grid-template-columns:
        repeat(3, 1fr);

    padding-top: 7px;
}

.composer-actions button {
    min-height: 42px;

    background: transparent;

    border-radius: 7px;

    font-weight: 600;

    color: var(--muted);
}

.composer-actions button:hover {
    background: var(--background);
}

.status-card {
    padding: 18px;
    text-align: center;
}


/* POST */

.post {
    overflow: hidden;
}

.post-header {
    padding: 12px 16px;

    display: flex;
    gap: 10px;
}

.post-user {
    flex: 1;
}

.post-name {
    font-weight: bold;
}

.post-time {
    margin-top: 3px;

    color: var(--muted);

    font-size: 13px;
}

.post-body {
    padding: 0 16px 14px;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}

.post-media img,
.post-media video {
    display: block;

    width: 100%;
    max-height: 650px;

    object-fit: contain;

    background: black;
}

.post-actions {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);

    padding: 4px 16px;
}

.post-actions button {
    min-height: 40px;

    background: transparent;

    border-radius: 6px;

    color: var(--muted);

    font-weight: 600;
}

.post-actions button:hover {
    background: var(--background);
}


/* RIGHT */

.right-sidebar {
    position: sticky;
    top: 56px;

    height: calc(100vh - 56px);

    padding: 20px 12px 20px 0;

    color: var(--muted);
}

.right-sidebar h3 {
    margin-bottom: 10px;
}

.right-sidebar hr {
    margin: 16px 0;

    border: 0;

    border-top:
        1px solid var(--border);
}

.ad-box {
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--hover);
}


/* MODAL */

.modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(255, 255, 255, 0.8);
}

.modal-card {
    width: 100%;
    max-width: 500px;

    background: white;

    border-radius: 12px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.23);
}

.modal-header {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border-bottom:
        1px solid var(--border);
}

.close-button {
    position: absolute;

    right: 12px;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: var(--hover);

    font-size: 25px;
}

.modal-body {
    padding: 14px 16px 16px;
}

.modal-user {
    display: flex;
    align-items: center;

    gap: 10px;
}

.modal-user select {
    display: block;

    margin-top: 4px;

    border: 0;

    border-radius: 5px;

    padding: 3px 6px;

    background: var(--hover);
}

#postBody {
    width: 100%;
    min-height: 150px;

    margin-top: 12px;

    padding: 8px 2px;

    border: 0;
    outline: 0;

    resize: vertical;

    font-size: 20px;
}

.add-media-button {
    width: 100%;
    min-height: 46px;

    margin-bottom: 10px;

    border:
        1px solid var(--border);

    border-radius: 8px;

    background: white;

    font-weight: 600;
}

.preview-box {
    position: relative;

    margin-bottom: 12px;

    overflow: hidden;

    border-radius: 10px;

    background: black;
}

.preview-media {
    width: 100%;
    max-height: 420px;

    display: block;

    object-fit: contain;
}

.remove-media {
    position: absolute;

    right: 10px;
    top: 10px;

    z-index: 2;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: white;

    font-size: 22px;
}


/* MESSAGE */

.message {
    margin: 8px 0;

    padding: 10px;

    border-radius: 7px;

    background: #ffe9e7;

    color: #b42318;

    font-size: 13px;
}


/* ACCOUNT MENU */

.account-menu {
    position: fixed;

    top: 62px;
    right: 16px;

    z-index: 6000;

    width: 320px;

    padding: 8px;

    border-radius: 10px;

    background: white;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22);
}

.account-user {
    padding: 10px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.account-menu hr {
    margin: 5px;

    border: 0;

    border-top:
        1px solid var(--border);
}

.account-menu button {
    width: 100%;
    min-height: 44px;

    padding: 8px 10px;

    text-align: left;

    background: transparent;

    border-radius: 7px;

    font-weight: 600;
}

.account-menu button:hover {
    background: var(--background);
}


/* TOAST */

.toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    z-index: 9000;

    transform:
        translateX(-50%);

    padding: 12px 18px;

    border-radius: 8px;

    background: #242526;
    color: white;
}


/* RESPONSIVE */

@media (max-width: 1150px) {

    .layout {
        grid-template-columns:
            250px
            minmax(420px, 680px);
    }

    .right-sidebar {
        display: none;
    }

}

@media (max-width: 850px) {

    .left-sidebar {
        display: none;
    }

    .layout {
        display: block;
    }

    .feed-column {
        max-width: 680px;

        margin: auto;

        padding:
            20px 10px 60px;
    }

    .top-nav {
        display: none;
    }

    .login-wrapper {
        grid-template-columns: 1fr;

        max-width: 430px;

        gap: 30px;
    }

}

@media (max-width: 600px) {

    .search-input {
        display: none;
    }

    .brand-name {
        display: none;
    }

}

/* =========================================================
   CIRKLEBOOK — CLEAN TOP BAR / SEARCH / NAV
========================================================= */
.top-search-wrap {
    position: relative;
    width: min(300px, 30vw);
}
.top-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: #65676b;
    pointer-events: none;
}
.top-search-wrap .search-input {
    width: 100%;
    padding-left: 38px;
}
.top-nav {
    height: 56px;
    gap: 4px;
}
.top-nav .nav-button {
    position: relative;
    width: 84px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    color: #65676b;
    background: transparent;
    border-bottom: 3px solid transparent;
}
.top-nav .nav-button:hover {
    background: #f2f2f2;
}
.top-nav .nav-button svg,
.round-button svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}
.top-nav .nav-button.active {
    color: #1877f2;
    border-bottom-color: #1877f2;
    background: transparent;
}
.search-no-results {
    margin: 12px 0;
    padding: 18px;
    text-align: center;
    color: #65676b;
    background: #fff;
    border-radius: 10px;
}
.post.search-match {
    outline: 3px solid rgba(24,119,242,.45);
    outline-offset: 2px;
}
@media (max-width: 1100px) {
    .brand-name { display: none; }
    .top-search-wrap { width: 220px; }
    .top-nav .nav-button { width: 68px; }
}
@media (max-width: 850px) {
    .top-nav { display: none; }
}
@media (max-width: 600px) {
    .top-search-wrap { display: none; }
}


/* =========================================================
   CIRKLEBOOK REDESIGN — 2026 FINAL SUGGESTION BATCH
========================================================= */
:root { --cb-blue:#1877f2; --cb-green:#53d400; --cb-navy:#071b4b; --cb-soft:#f0f2f5; --cb-border:#dfe3ea; }
body { background:#f0f2f5; }
.login-screen{background:linear-gradient(135deg,#f7faff,#edf3fb)}
.login-shell{width:min(1180px,94vw);display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}
.login-visual{display:flex;align-items:center;justify-content:center;min-height:440px}
.login-cover-logo{width:min(650px,100%);height:auto;object-fit:contain;filter:drop-shadow(0 16px 28px rgba(4,32,84,.18))}
.login-card{max-width:500px;width:100%;padding:34px;border-radius:18px}
.login-card h2{font-size:24px;margin-bottom:22px}.login-card input{height:58px;border-radius:12px;font-size:16px}
.text-link-button,.outline-primary-button{width:100%;min-height:48px;border-radius:10px;background:transparent;font-weight:700}
.text-link-button{color:var(--blue);margin-top:8px}.outline-primary-button{border:1.5px solid var(--blue);color:var(--blue)}
.login-divider{height:1px;background:#ddd;margin:16px 0}
.topbar{grid-template-columns:minmax(330px,1fr) auto minmax(330px,1fr);height:64px;padding:0 14px}
.layout{padding-top:64px}.left-sidebar,.right-sidebar{top:64px;height:calc(100vh - 64px)}
.brand-cover-button{background:transparent;display:flex;align-items:center;padding:0;margin-right:8px}.top-cover-logo{width:155px;height:44px;object-fit:contain;border-radius:8px}
.top-left{gap:6px}.top-search-wrap{width:min(270px,24vw)}
.top-nav{height:64px;gap:6px}.top-nav .nav-button{height:64px;width:76px;padding:8px 14px}.top-nav .nav-button img{width:34px;height:34px;object-fit:contain;border-radius:9px}.top-nav .nav-button.active{border-bottom:3px solid var(--blue)}
.round-image-button,.round-button{width:43px;height:43px;border-radius:50%;background:#e4e6eb;display:inline-flex;align-items:center;justify-content:center}.round-image-button img{width:30px;height:30px;object-fit:contain;border-radius:9px}.profile-button{min-height:44px}
.sidebar-link{display:flex;align-items:center;gap:10px;font-size:15px}.sidebar-link img{width:32px;height:32px;border-radius:9px;object-fit:contain}.sidebar-text-icon{width:32px;text-align:center;font-size:23px}
.modern-composer{padding:12px 16px;display:flex;align-items:center;gap:10px}.modern-composer .composer-input{min-width:0}.composer-inline-actions{display:flex;align-items:center;gap:6px}.composer-icon-button{width:42px;height:42px;border-radius:10px;background:transparent;display:flex;align-items:center;justify-content:center}.composer-icon-button:hover{background:#f0f2f5}.composer-icon-button img{width:34px;height:34px;border-radius:9px;object-fit:contain}
.right-sidebar{overflow-y:auto}.ad-stack{display:grid;gap:12px}.ad-box{height:118px;flex-direction:column;gap:6px;text-align:center;padding:10px}.ad-box small{color:#65676b}
.create-post-card{max-width:560px}.policy-notice{margin:12px 0 0;padding:10px 12px;border:1px solid #ffd8a8;background:#fff9ed;border-radius:10px;display:grid;gap:4px;color:#8a4b00;font-size:12px;line-height:1.35}.policy-notice strong{font-size:14px;color:#222}
#postBody{min-height:130px}.add-to-post-panel{display:flex;align-items:center;justify-content:space-between;border:1px solid #d8dce2;border-radius:10px;padding:10px 12px;margin:10px 0}.add-to-post-actions{display:flex;gap:5px}.add-to-post-actions button{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent;font-size:20px}.add-to-post-actions button:hover{background:#f0f2f5}.add-to-post-actions img{width:30px;height:30px;border-radius:8px;object-fit:contain}.context-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}.context-chip{background:#e7f3ff;color:#1d5fab;border-radius:14px;padding:5px 9px;font-size:12px}
.cb-dialog-card{max-width:620px}.cb-form-grid{display:grid;gap:10px}.cb-form-grid input,.cb-form-grid select,.cb-form-grid textarea{width:100%;border:1px solid #ccd0d5;border-radius:9px;padding:11px}.cb-form-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
.feature-view{padding-top:64px;min-height:100vh;background:#f0f2f5}.feature-view.hidden{display:none!important}.feature-page{max-width:1180px;margin:auto;padding:18px}.feature-hero{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.profile-cover{height:300px;background:linear-gradient(135deg,#0a2c76,#0daef7 55%,#55da00);position:relative}.profile-cover:after{content:'Cirklebook';position:absolute;right:28px;bottom:22px;color:#fff;font-size:38px;font-weight:800;opacity:.35}.profile-head{display:flex;gap:18px;align-items:flex-end;padding:0 24px 18px;margin-top:-65px;position:relative}.profile-big-avatar{width:145px;height:145px;border-radius:50%;border:5px solid #fff;background:#fff;object-fit:cover}.profile-title{flex:1;padding-bottom:8px}.profile-title h1{font-size:30px;margin:0 0 6px}.profile-actions{display:flex;gap:8px;padding-bottom:12px}.cb-action{padding:10px 14px;border-radius:8px;background:#e4e6eb;font-weight:700}.cb-action.primary{background:#1877f2;color:#fff}.profile-tabs{display:flex;gap:4px;border-top:1px solid #e1e4e8;padding:0 16px}.profile-tabs button{padding:15px 14px;background:transparent;font-weight:700;color:#65676b}.profile-tabs button.active{color:#1877f2;border-bottom:3px solid #1877f2}
.profile-content{display:grid;grid-template-columns:360px 1fr;gap:16px;margin-top:16px}.cb-panel{background:#fff;border-radius:12px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.08);margin-bottom:14px}.cb-panel h3{margin:0 0 12px}.profile-left-menu button{display:flex;width:100%;padding:10px;border-radius:8px;background:transparent;text-align:left}.profile-left-menu button:hover,.profile-left-menu button.active{background:#e7f3ff;color:#1877f2}.about-layout{display:grid;grid-template-columns:210px 1fr;min-height:430px}.about-menu{border-right:1px solid #ddd;padding-right:10px}.about-menu button{width:100%;text-align:left;padding:9px;border-radius:7px;background:transparent}.about-menu button.active{background:#e7f3ff;color:#1877f2}.about-details{padding-left:18px}.detail-row{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eee}
.dashboard-grid{display:grid;grid-template-columns:220px 1fr;gap:16px}.dashboard-menu{position:sticky;top:82px;align-self:start}.dashboard-menu button{width:100%;display:flex;align-items:center;gap:8px;text-align:left;padding:11px;border-radius:8px;background:transparent;font-weight:600}.dashboard-menu button.active,.dashboard-menu button:hover{background:#e7f3ff;color:#1877f2}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.metric-card{padding:16px;border:1px solid #e0e4e8;border-radius:12px;background:#fff}.metric-card b{display:block;font-size:24px;margin-top:8px}.eligibility-list{display:grid;gap:10px}.eligibility-item{display:flex;align-items:center;justify-content:space-between;padding:13px;border:1px solid #e3e6ea;border-radius:10px}.status-pill{padding:5px 9px;border-radius:999px;background:#fff3cd;color:#7a5b00;font-size:12px;font-weight:700}.status-pill.good{background:#e3f9e6;color:#176b25}
.page-create-layout{display:grid;grid-template-columns:320px 1fr;gap:18px}.page-form{position:sticky;top:82px;align-self:start}.page-preview{background:#fff;border-radius:14px;padding:14px}.preview-cover{height:230px;background:#e7eaee;border-radius:10px}.preview-avatar{width:115px;height:115px;border-radius:50%;background:#c8ccd1;border:4px solid #fff;margin:-54px auto 8px}.preview-title{text-align:center;font-size:28px;font-weight:800}.preview-tabs{display:flex;gap:16px;justify-content:center;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:12px;margin-top:14px}.preview-body{display:grid;grid-template-columns:280px 1fr;gap:12px;margin-top:12px}.fake-card{background:#f7f8fa;border-radius:10px;min-height:130px;padding:14px}
.language-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.language-choice{padding:11px;border:1px solid #ddd;border-radius:9px;background:#fff;text-align:left}.language-choice.active{border-color:#1877f2;background:#e7f3ff}.live-preview{width:100%;background:#111;min-height:280px;border-radius:12px;object-fit:cover}.feeling-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.feeling-grid button{padding:10px;border-radius:8px;background:#f0f2f5}.standards-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.standard-item{padding:12px;border:1px solid #f2c9c9;background:#fff8f8;border-radius:10px}.workflow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:700}.workflow span{background:#e7f3ff;border-radius:8px;padding:8px 10px}.admin-table{width:100%;border-collapse:collapse}.admin-table td,.admin-table th{padding:10px;border-bottom:1px solid #eee;text-align:left}
@media(max-width:1100px){.top-cover-logo{width:110px}.top-nav .nav-button{width:60px}.profile-content,.dashboard-grid{grid-template-columns:1fr}.dashboard-menu{position:static;display:flex;overflow:auto}.dashboard-menu button{min-width:max-content}.metric-grid{grid-template-columns:repeat(2,1fr)}.page-create-layout{grid-template-columns:1fr}.page-form{position:static}}
@media(max-width:850px){.login-shell{grid-template-columns:1fr;gap:20px}.login-visual{min-height:180px}.login-cover-logo{max-width:450px}.topbar{grid-template-columns:1fr auto}.top-nav{display:none}.layout{display:block}.left-sidebar{display:none}.right-sidebar{display:none}.top-cover-logo{width:100px}.top-search-wrap{width:min(260px,45vw)}.profile-head{align-items:center;flex-wrap:wrap}.profile-actions{width:100%}.profile-content{grid-template-columns:1fr}.about-layout{grid-template-columns:1fr}.about-menu{border-right:0;border-bottom:1px solid #ddd;display:flex;overflow:auto}.about-details{padding-left:0;padding-top:12px}.page-preview{overflow:auto}}
@media(max-width:600px){.top-cover-logo{width:78px}.top-search-wrap{display:none}.top-right .profile-button span:not(.avatar){display:none}.composer-inline-actions{gap:1px}.composer-icon-button{width:36px;height:36px}.composer-icon-button img{width:30px;height:30px}.feature-page{padding:10px}.profile-cover{height:190px}.profile-big-avatar{width:105px;height:105px}.profile-tabs{overflow:auto}.metric-grid{grid-template-columns:1fr}.standards-grid{grid-template-columns:1fr}.preview-body{grid-template-columns:1fr}.language-grid{grid-template-columns:1fr}}


/* =========================================================
   CIRKLEBOOK — CONSOLIDATED CORRECTION PASS
========================================================= */

/* Top branding: keep the user's cover logo readable without changing artwork. */
.brand-cover-button {
    width: 170px;
    min-width: 170px;
    height: 54px;
    overflow: hidden;
    justify-content: center;
}
.top-cover-logo {
    width: 170px !important;
    height: 54px !important;
    object-fit: contain;
}
.top-left {
    min-width: 0;
}

/* Account dropdown must remain usable above profile/feature pages. */
.account-menu {
    z-index: 10050;
    min-width: 270px;
}
.account-menu button {
    min-height: 44px;
}

/* Create-post policy notice: English first, Bangla directly beneath. */
.policy-notice {
    gap: 7px;
}
.policy-notice .policy-en,
.policy-notice .policy-bn {
    display: block;
    font-weight: 600;
}
.policy-notice .policy-bn {
    font-family: "Noto Sans Bengali", "Nirmala UI", "Segoe UI", sans-serif;
    line-height: 1.55;
    color: #6f3d00;
}

/* Professional Dashboard / Settings: compact left navigation + large right detail pane. */
.feature-page {
    max-width: 1240px;
}
.dashboard-grid {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start;
}
.dashboard-menu {
    width: 190px !important;
    min-width: 190px !important;
    padding: 10px !important;
    position: sticky !important;
    top: 78px !important;
    display: block !important;
    overflow: visible !important;
}
.dashboard-menu button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 9px 10px !important;
    margin: 1px 0;
    font-size: 14px;
    white-space: normal !important;
}
#dashboardBody,
.dashboard-grid > main {
    min-width: 0;
    width: 100%;
}
#dashboardBody > .cb-panel,
.dashboard-grid > main > .cb-panel {
    width: 100%;
}

/* Four ads should be visible with ordinary desktop heights. */
.ad-stack {
    gap: 9px;
}
.ad-box {
    height: 100px;
    min-height: 100px;
}

/* Keep custom icons polished but not oversized. */
.top-nav .nav-button img {
    width: 32px;
    height: 32px;
}
.composer-icon-button img {
    width: 32px;
    height: 32px;
}

/* Do not collapse the professional dashboard at ~1100 CSS px (common on scaled Windows displays). */
@media (max-width: 1100px) and (min-width: 761px) {
    .dashboard-grid {
        grid-template-columns: 175px minmax(0, 1fr) !important;
    }
    .dashboard-menu {
        width: 175px !important;
        min-width: 175px !important;
        position: sticky !important;
        display: block !important;
        overflow: visible !important;
    }
    .dashboard-menu button {
        min-width: 0 !important;
    }
}

/* Only stack dashboard navigation on genuinely narrow/mobile screens. */
@media (max-width: 760px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    .dashboard-menu {
        width: 100% !important;
        min-width: 0 !important;
        position: static !important;
        display: flex !important;
        gap: 4px;
        overflow-x: auto !important;
    }
    .dashboard-menu button {
        width: auto !important;
        min-width: max-content !important;
        white-space: nowrap !important;
    }
}


/* =========================================================
   CIRKLEBOOK CONSOLIDATED V3
   User-approved correction pass
========================================================= */

:root{
  --cb-blue:#1877f2;
  --cb-bg:#f0f2f5;
  --cb-card:#ffffff;
  --cb-text:#050505;
  --cb-muted:#65676b;
  --cb-line:#d8dadf;
  --cb-soft:#e7f3ff;
  --cb-danger:#b42318;
  --cb-green:#31a24c;
}

/* Login / signup */
.login-screen{
  min-height:100vh;
  background:#eef3fb;
  padding:0;
}
.login-shell{
  width:100%;
  max-width:none;
  min-height:100vh;
  grid-template-columns:minmax(0,1.65fr) minmax(380px,.75fr);
  gap:0;
  align-items:stretch;
}
.login-visual{
  min-height:100vh;
  background-image:
    linear-gradient(90deg,rgba(0,20,55,.05),rgba(0,20,55,.02)),
    url("assets/login-background.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-radius:0;
}
.login-card{
  width:min(430px,calc(100% - 42px));
  align-self:center;
  justify-self:center;
  border-radius:16px;
  padding:30px;
  box-shadow:0 10px 28px rgba(0,0,0,.14);
}
.login-card input{height:52px;font-size:16px}
.login-card .primary-button{height:48px;font-size:17px}
.text-link-button{font-weight:700;color:var(--cb-blue)}
.outline-primary-button{font-weight:700}

/* Main branding */
.brand-cover-button{
  width:58px!important;
  min-width:58px!important;
  height:54px!important;
  padding:2px!important;
  border-radius:14px!important;
}
.top-main-logo{
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:12px;
}

/* Account menu */
.account-menu{min-width:300px!important}
.account-menu .account-user{padding:10px 8px}
.account-menu button{font-weight:600}
.account-menu button:hover{background:#f0f2f5}

/* Sponsored */
.sponsored-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sponsored-manage{
  border:0;background:transparent;color:var(--cb-blue);font-weight:700;cursor:pointer;padding:5px 2px
}
.sponsored-manage:hover{text-decoration:underline}
.ad-box{overflow:hidden;position:relative}
.ad-box img,.ad-box video{width:100%;height:100%;object-fit:cover;border-radius:10px}
.ad-box .ad-copy{display:flex;flex-direction:column;gap:4px;padding:10px}

/* Composer policy */
.policy-notice{font-size:12px;line-height:1.45}
.policy-notice .policy-en{color:#7a3d00}
.policy-notice .policy-bn{color:#7a3d00;font-weight:650}
.context-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.context-chip{
  display:inline-flex;align-items:center;gap:6px;border:1px solid #d8dadf;background:#f0f2f5;
  border-radius:999px;padding:6px 10px;color:#303846;font-weight:650
}
.context-chip button{border:0;background:transparent;cursor:pointer;font-size:16px}
.feeling-grid button{min-height:44px}
.feeling-icon{font-size:20px}

/* Full feature pages */
.feature-view{background:var(--cb-bg);min-height:calc(100vh - 64px)}
.feature-page{max-width:1220px;margin:0 auto;padding:16px}
.cb-section-title{font-size:28px;margin:0 0 4px}
.cb-subtitle{color:var(--cb-muted);margin:0 0 16px}
.cb-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cb-search{height:40px;border:1px solid var(--cb-line);border-radius:22px;padding:0 14px;min-width:230px}
.cb-tabs-row{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--cb-line);margin-top:14px}
.cb-tabs-row button{border:0;background:transparent;padding:12px 14px;font-weight:650;cursor:pointer;border-bottom:3px solid transparent}
.cb-tabs-row button.active{color:var(--cb-blue);border-bottom-color:var(--cb-blue)}
.cb-empty-panel{padding:28px;text-align:center;color:var(--cb-muted)}

/* Profile */
.profile-cover{
  height:260px!important;
  background:linear-gradient(125deg,#0d56a3,#19a9d4,#57d900);
  background-size:cover!important;
  background-position:center!important;
  position:relative;
}
.profile-cover-edit,.profile-avatar-edit{
  position:absolute;border:0;border-radius:10px;background:white;box-shadow:0 2px 8px rgba(0,0,0,.15);
  font-weight:700;cursor:pointer;padding:9px 12px
}
.profile-cover-edit{right:18px;bottom:16px}
.profile-avatar-wrap{position:relative;flex:0 0 auto}
.profile-big-avatar{object-fit:cover!important;background:#fff}
.profile-avatar-edit{right:0;bottom:2px;padding:8px;border-radius:50%}
.profile-composer-card{display:flex;gap:10px;align-items:center}
.profile-composer-card button{flex:1;border:0;background:#f0f2f5;border-radius:22px;padding:11px;text-align:left;color:#65676b}
.profile-section-card{margin-bottom:12px}
.profile-section-card .detail-row{align-items:center}
.profile-section-card textarea,.profile-section-card input{width:100%}

/* Friends */
.friends-page-grid{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}
.friends-side{position:sticky;top:78px;align-self:start}
.friends-side button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:11px 12px;border-radius:9px;font-weight:650;cursor:pointer}
.friends-side button.active,.friends-side button:hover{background:var(--cb-soft);color:var(--cb-blue)}
.people-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.person-card{display:flex;align-items:center;gap:12px;border:1px solid var(--cb-line);border-radius:12px;padding:12px;background:#fff}
.person-card .avatar{flex:0 0 48px;width:48px;height:48px}
.person-main{min-width:0;flex:1}.person-main strong{display:block}.person-main small{color:var(--cb-muted)}
.person-actions{display:flex;gap:6px;flex-wrap:wrap}

/* Group/Page creation */
.creator-page-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px}
.creator-sidebar{position:sticky;top:76px;align-self:start}
.creator-preview{min-height:640px}
.device-switch{display:flex;gap:6px;justify-content:flex-end}
.device-switch button{border:0;background:#e4e6eb;border-radius:8px;padding:8px 11px;cursor:pointer}
.device-switch button.active{background:var(--cb-soft);color:var(--cb-blue)}
.preview-frame{border:1px solid var(--cb-line);border-radius:12px;background:white;overflow:hidden;margin-top:10px}
.preview-frame.mobile{max-width:420px;margin-left:auto;margin-right:auto}
.preview-cover-v3{height:230px;background:linear-gradient(140deg,#dfe3e8,#f0f2f5)}
.preview-avatar-v3{width:126px;height:126px;border:5px solid white;border-radius:50%;background:#cfd3d9;margin:-64px 0 0 26px;position:relative}
.preview-meta-v3{padding:6px 28px 18px}
.preview-meta-v3 h2{font-size:28px;margin:0 0 4px}
.preview-tabs-v3{border-top:1px solid var(--cb-line);display:flex;gap:20px;padding:12px 28px;font-weight:650;color:#4b4f56}
.preview-body-v3{display:grid;grid-template-columns:320px 1fr;gap:12px;background:#f0f2f5;padding:14px}

/* Dashboard */
.dashboard-menu button{font-weight:650}
.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dashboard-kpi{border:1px solid var(--cb-line);border-radius:12px;padding:16px;background:#fff;min-height:104px}
.dashboard-kpi small{color:var(--cb-muted);display:block;margin-bottom:10px}
.dashboard-kpi strong{font-size:24px}
.progress-row{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(150px,2fr) 125px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #eee}
.progress-track{height:9px;background:#e4e6eb;border-radius:99px;overflow:hidden}
.progress-bar{height:100%;background:var(--cb-blue);border-radius:99px}
.program-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.program-card{border:1px solid var(--cb-line);border-radius:12px;padding:14px;background:#fff}

/* Verification */
.verify-stepper{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.verify-step{background:#f0f2f5;border-radius:999px;padding:8px 12px;font-weight:650}
.verify-upload{border:1px dashed #b8bcc4;border-radius:12px;padding:16px;background:#fafbfc}
.camera-box{background:#111;border-radius:12px;overflow:hidden;min-height:230px;display:flex;align-items:center;justify-content:center;color:#fff}
.camera-box video{width:100%;max-height:340px}
.fee-box{display:flex;align-items:center;justify-content:space-between;border:1px solid #d8dadf;border-radius:12px;padding:14px;background:#fff}

/* Ads */
.ads-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px}
.ad-builder-section{border-bottom:1px solid #e5e7eb;padding:16px 0}
.ad-builder-section:first-child{padding-top:0}
.ad-preview-card{position:sticky;top:80px}
.ad-preview-media{height:230px;background:#e4e6eb;border-radius:10px;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#65676b}
.ad-preview-media img,.ad-preview-media video{width:100%;height:100%;object-fit:cover}
.ad-status{display:inline-flex;border-radius:999px;padding:5px 9px;background:#fff4ce;color:#684f00;font-weight:650;font-size:12px}

/* Settings */
.settings-grid{display:grid;grid-template-columns:210px minmax(0,1fr);gap:14px}
.settings-menu button{width:100%;border:0;background:transparent;text-align:left;padding:10px 11px;border-radius:8px;font-weight:650;cursor:pointer}
.settings-menu button.active,.settings-menu button:hover{background:var(--cb-soft);color:var(--cb-blue)}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #eee}
.setting-row:last-child{border-bottom:0}
.setting-row small{display:block;color:var(--cb-muted);margin-top:4px}
.switch{position:relative;width:44px;height:24px;background:#bcc0c4;border-radius:99px;cursor:pointer}
.switch.on{background:var(--cb-blue)}
.switch::after{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:white;top:3px;left:3px;transition:.2s}
.switch.on::after{left:23px}

/* Live producer */
.live-producer{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px}
.live-sidebar{position:sticky;top:78px;align-self:start}
.live-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.live-choice{border:1px solid var(--cb-line);border-radius:12px;padding:18px;background:#fff;min-height:210px;display:flex;flex-direction:column}
.live-choice .cb-action{margin-top:auto}
.live-preview-large{width:100%;min-height:360px;background:#111;border-radius:12px}
.live-history-tabs{display:flex;gap:8px;margin-bottom:10px}

/* Modal signup/recovery */
.auth-dialog-card{max-width:560px}
.auth-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.auth-helper{font-size:12px;color:var(--cb-muted)}
.auth-step{padding:12px;border:1px solid var(--cb-line);border-radius:12px;background:#fafbfc;margin-bottom:10px}

/* Notifications */
.notification-list{display:flex;flex-direction:column;gap:8px}
.notification-item{display:flex;gap:12px;padding:12px;border-radius:10px;background:#fff;border:1px solid #e5e7eb}
.notification-item.unread{background:#e7f3ff}
.notification-dot{width:10px;height:10px;border-radius:50%;background:var(--cb-blue);margin-top:6px}

/* Responsive */
@media(max-width:980px){
  .login-shell{grid-template-columns:1fr}
  .login-visual{min-height:46vh}
  .login-card{margin:24px auto}
  .friends-page-grid,.creator-page-layout,.ads-layout,.live-producer,.settings-grid{grid-template-columns:1fr}
  .friends-side,.creator-sidebar,.ad-preview-card,.live-sidebar{position:static}
  .dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .preview-body-v3{grid-template-columns:1fr}
}
@media(max-width:680px){
  .login-visual{min-height:36vh;background-position:center}
  .auth-name-grid,.people-grid,.dashboard-kpis,.program-grid,.live-main-grid{grid-template-columns:1fr}
  .progress-row{grid-template-columns:1fr}
  .feature-page{padding:10px}
  .profile-cover{height:190px!important}
}

/* =========================================================
   CIRKLEBOOK V4 — FINAL POLISH
========================================================= */
.v4-clickable-profile{cursor:pointer;border-radius:10px;transition:background .15s ease}.v4-clickable-profile:hover,.v4-clickable-profile:focus{background:#e4e6eb;outline:none}
.v4-feature-icon{object-fit:contain!important}
.profile-cover{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.profile-cover-edit,.profile-avatar-edit{box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .12s,background .12s}.profile-cover-edit:hover,.profile-avatar-edit:hover{transform:translateY(-1px)}
.feature-page{padding-bottom:48px}.cb-panel{border:1px solid rgba(0,0,0,.04)}

.v4-messenger-page{max-width:1180px}.v4-messenger-shell{height:calc(100vh - 104px);min-height:580px;background:#fff;border-radius:14px;box-shadow:0 2px 12px rgba(0,0,0,.08);display:grid;grid-template-columns:360px 1fr;overflow:hidden}.v4-chat-list{border-right:1px solid #e4e6eb;padding:16px;display:flex;flex-direction:column}.v4-chat-title{display:flex;align-items:center;justify-content:space-between}.v4-chat-title h2{font-size:26px;margin:0}.v4-circle{width:38px;height:38px;border-radius:50%;background:#e4e6eb;font-size:20px}.v4-chat-search{height:40px;background:#f0f2f5;border-radius:20px;padding:0 13px;display:flex;align-items:center;gap:7px;margin:14px 0}.v4-chat-search input{border:0;background:transparent;outline:0;width:100%}.v4-chat-tabs{display:flex;gap:8px;border-bottom:1px solid #eee;padding-bottom:10px}.v4-chat-tabs button{padding:8px 12px;border-radius:18px}.v4-chat-tabs .active{background:#e7f3ff;color:#1877f2;font-weight:700}.v4-empty-chat{margin:auto;text-align:center;color:#65676b;display:grid;gap:6px}.v4-empty-chat b{color:#1c1e21}.v4-empty-icon{font-size:42px}.v4-conversation{display:grid;grid-template-rows:64px 1fr 64px;min-width:0}.v4-conversation-head{border-bottom:1px solid #e4e6eb;padding:10px 16px;display:flex;align-items:center;justify-content:space-between}.v4-conversation-head small{display:block;color:#65676b}.v4-conversation-tools{display:flex;gap:6px}.v4-conversation-tools button,.v4-message-composer>button{width:38px;height:38px;border-radius:50%;color:#1877f2;background:transparent;font-size:18px}.v4-conversation-tools button:hover,.v4-message-composer>button:hover{background:#f0f2f5}.v4-conversation-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.v4-conversation-empty h2{margin:8px 0}.v4-conversation-empty p{color:#65676b}.v4-messenger-mark{font-size:58px}.v4-message-composer{border-top:1px solid #e4e6eb;display:flex;align-items:center;gap:4px;padding:9px 12px}.v4-message-input{height:40px;flex:1;background:#f0f2f5;border-radius:20px;padding:11px 15px;color:#65676b}

.v4-video-page{max-width:1180px;display:grid;grid-template-columns:250px 1fr;gap:16px}.v4-video-sidebar{background:#fff;border-radius:14px;padding:14px;height:max-content;box-shadow:0 1px 3px rgba(0,0,0,.08);position:sticky;top:82px}.v4-video-sidebar h2{margin:4px 8px 12px}.v4-video-sidebar button{width:100%;padding:12px;text-align:left;border-radius:9px;margin:2px 0}.v4-video-sidebar button:hover,.v4-video-sidebar button.active{background:#e7f3ff;color:#1877f2;font-weight:700}.v4-video-main{min-width:0}.v4-video-toolbar{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:14px;padding:16px 18px;margin-bottom:12px}.v4-video-toolbar h2,.v4-video-toolbar p{margin:0}.v4-video-toolbar p{color:#65676b;margin-top:3px}.v4-reel-stage{min-height:620px;background:#111;border-radius:16px;display:grid;grid-template-columns:1fr 76px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.16)}.v4-reel-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;gap:10px;background:radial-gradient(circle at 50% 35%,#26354b,#090b0f 70%)}.v4-reel-placeholder>span{font-size:68px}.v4-reel-placeholder small{color:#cfd4da}.v4-reel-actions{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:14px;padding:20px 8px;background:#fff}.v4-reel-actions button{width:54px;min-height:54px;border-radius:50%;background:#f0f2f5;font-size:20px;display:flex;flex-direction:column;align-items:center;justify-content:center}.v4-reel-actions small{font-size:10px;margin-top:2px}

.v4-live-page{max-width:1180px;display:grid;grid-template-columns:300px 1fr;gap:16px}.v4-live-sidebar{background:#fff;border-radius:14px;padding:16px;height:max-content;box-shadow:0 2px 8px rgba(0,0,0,.08);position:sticky;top:82px}.v4-live-sidebar-title{display:flex;gap:10px;align-items:center;margin-bottom:12px}.v4-live-sidebar-title h2{font-size:22px;margin:0}.v4-live-badge{background:#f02849;color:#fff;font-size:11px;font-weight:800;padding:5px 7px;border-radius:6px}.v4-live-nav{width:100%;padding:11px 12px;border-radius:8px;text-align:left;margin:2px 0}.v4-live-nav.active,.v4-live-nav:hover{background:#e7f3ff;color:#1877f2;font-weight:700}.v4-host-card{display:flex;align-items:center;gap:10px;padding:14px 0;margin:10px 0;border-top:1px solid #eee;border-bottom:1px solid #eee}.v4-host-card small{display:block;color:#65676b}.v4-live-sidebar label{display:block;font-weight:600;margin:12px 0 5px}.v4-live-sidebar select{width:100%;padding:10px;border:1px solid #ccd0d5;border-radius:8px;background:#fff}.v4-live-content{min-width:0}.v4-live-upcoming{background:#fff;border-radius:14px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 1px 3px rgba(0,0,0,.07)}.v4-live-upcoming small{display:block;color:#65676b;margin-top:4px}.v4-live-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.v4-live-cards article{background:#fff;border-radius:14px;padding:22px;min-height:230px;display:flex;flex-direction:column;box-shadow:0 1px 3px rgba(0,0,0,.07)}.v4-live-cards article p{color:#65676b;flex:1}.v4-live-card-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#e7f3ff;color:#1877f2;font-size:25px}.v4-live-card-icon.red{background:#ffe7ec;color:#f02849}.v4-live-history{background:#fff;border-radius:14px;padding:16px}.v4-live-history-tabs{display:flex;gap:8px}.v4-live-history-tabs button{padding:8px 12px;border-radius:18px}.v4-live-history-tabs .active{background:#e7f3ff;color:#1877f2;font-weight:700}.v4-live-empty{min-height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#65676b}.v4-live-setup-head h3{margin-bottom:4px}.v4-live-setup-head p{margin-top:0;color:#65676b}.v4-live-setup-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:14px}.v4-live-preview{min-height:360px;background:#111;border-radius:12px;overflow:hidden;position:relative}.v4-live-preview video{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}.v4-preview-label{position:absolute;left:12px;top:12px;background:rgba(0,0,0,.7);color:#fff;padding:5px 9px;border-radius:6px}.v4-live-controls{display:flex;flex-direction:column;gap:9px}.v4-live-controls input,.v4-live-controls textarea,.v4-live-controls select{padding:11px;border:1px solid #ccd0d5;border-radius:8px}.v4-live-controls textarea{min-height:95px}.v4-success{display:block!important;background:#e6f4ea!important;color:#137333!important}.v4-service-note{text-align:center}.v4-service-note p{color:#65676b}

.v4-settings-shell{box-shadow:0 2px 12px rgba(0,0,0,.08);border-radius:14px;overflow:hidden}.v4-settings-shell .settings-nav{background:#fff;border-right:1px solid #e4e6eb}.v4-settings-shell .settings-body{background:#f7f8fa;padding:18px}.v4-settings-shell .setting-row{background:#fff;border-radius:10px;padding:14px;margin-bottom:8px;border:1px solid #eef0f2}

@media(max-width:900px){.v4-messenger-shell{grid-template-columns:280px 1fr}.v4-video-page,.v4-live-page{grid-template-columns:1fr}.v4-video-sidebar,.v4-live-sidebar{position:static}.v4-live-setup-grid{grid-template-columns:1fr}.v4-reel-stage{min-height:520px}}
@media(max-width:650px){.v4-messenger-shell{grid-template-columns:1fr}.v4-chat-list{display:none}.v4-video-toolbar{align-items:flex-start;gap:10px}.v4-live-cards{grid-template-columns:1fr}.v4-reel-stage{grid-template-columns:1fr}.v4-reel-actions{flex-direction:row;justify-content:center}.profile-cover{height:220px!important}.profile-head{align-items:center!important;flex-wrap:wrap!important}.profile-big-avatar{width:110px!important;height:110px!important}}


/* =========================================================
   CIRKLEBOOK — FINAL CORRECTION POLISH
========================================================= */
.cb-has-profile-photo{background-color:#e4e6eb!important;color:transparent!important;background-size:cover!important;background-position:center!important;}
.v4-clickable-profile,.sidebar-profile[role="button"]{cursor:pointer;transition:background .15s ease;border-radius:10px;}
.v4-clickable-profile:hover,.sidebar-profile[role="button"]:hover{background:#e4e6eb;}
.v4-clickable-profile:focus-visible,.sidebar-profile[role="button"]:focus-visible{outline:3px solid rgba(24,119,242,.25);outline-offset:2px;}
.cb-photo-menu{display:grid;gap:8px;min-width:min(420px,86vw);}
.cb-photo-menu-row{border:0;background:#f0f2f5;border-radius:10px;padding:14px 16px;text-align:left;font-size:15px;font-weight:700;cursor:pointer;}
.cb-photo-menu-row:hover{background:#e4e6eb;}.cb-photo-menu-row.danger{color:#b42318;}
.profile-cover{background-size:cover!important;background-position:center!important;}
.profile-big-avatar{object-fit:cover!important;background:#e4e6eb;}

@media (max-width: 700px){
  .left-sidebar,.right-sidebar{display:none!important;}
  .layout{display:block!important;padding:0!important;}
  .feed-column{width:100%!important;max-width:none!important;padding-bottom:74px!important;}
  .top-search-wrap{max-width:150px!important;}
  .top-nav{gap:2px!important;}
  .nav-button{min-width:42px!important;padding:7px!important;}
  .modern-composer,.card.post{border-radius:0!important;border-left:0!important;border-right:0!important;}
  .feature-page{padding:8px!important;}
  .feature-hero,.cb-panel{border-radius:10px!important;}
  .profile-cover{min-height:190px!important;}
  .profile-head{display:grid!important;grid-template-columns:auto 1fr!important;gap:10px!important;padding:0 12px 12px!important;}
  .profile-avatar-wrap{margin-top:-52px!important;}.profile-big-avatar{width:108px!important;height:108px!important;}
  .profile-title h1{font-size:23px!important;}.profile-actions{grid-column:1/-1!important;display:flex!important;}
  .profile-actions .cb-action{flex:1!important;}.profile-tabs{overflow-x:auto!important;white-space:nowrap!important;}
  .profile-content,.about-layout,.creator-page-layout,.settings-layout,.v4-live-page,.v4-messenger-shell,.v4-video-page{grid-template-columns:1fr!important;}
  .about-menu,.creator-sidebar,.settings-menu,.v4-live-sidebar,.v4-video-sidebar{position:static!important;max-height:none!important;overflow-x:auto!important;display:flex!important;gap:6px!important;}
  .about-menu button,.settings-menu button,.v4-live-nav,.v4-video-sidebar button{white-space:nowrap!important;}
  .v4-chat-list{min-height:42vh!important;}.v4-conversation{min-height:48vh!important;}
  .cb-dialog-card,.modal-card{width:calc(100vw - 16px)!important;max-width:none!important;max-height:92vh!important;border-radius:14px!important;}
  .post-media img,.post-media video{max-height:none!important;width:100%!important;object-fit:contain!important;}
}


/* FINAL USER CORRECTIONS — compact composer + Ad space */
.ad-box{min-height:88px;display:flex;align-items:center;justify-content:center;text-align:center}
.ad-box strong{font-size:15px;color:#65676b;font-weight:700}
.cb-ai-label{border:0;background:#e4e6eb;color:#050505;border-radius:7px;padding:4px 8px;margin-left:6px;font-size:12px;font-weight:700;cursor:pointer;vertical-align:middle}
.cb-ai-label:hover{background:#d8dadf}
.create-post-card,.modal-card{max-height:calc(100vh - 32px);overflow:hidden}
.create-post-card .modal-body,.modal-card .modal-body{overflow-y:auto;overscroll-behavior:contain}
@media (min-width:700px){.create-post-card{width:560px;max-width:560px}}


/* =========================================================
   CIRKLEBOOK FINAL COMPLETE V5 — CONSOLIDATED UI
========================================================= */
/* Create Post: compact viewport-safe modal, scrollable body, sticky action */
.create-post-card{display:flex;flex-direction:column;width:min(560px,calc(100vw - 24px));max-height:min(760px,calc(100vh - 28px));overflow:hidden!important}
.create-post-card .modal-header{flex:0 0 auto;background:#fff;z-index:3}
.create-post-card .modal-body{display:flex;flex-direction:column;min-height:0;overflow-y:auto!important;padding-bottom:0!important;scrollbar-gutter:stable}
.create-post-card #postBody{min-height:105px;max-height:180px;resize:vertical}
.create-post-footer{position:sticky;bottom:0;background:#fff;padding:10px 0 12px;z-index:4;border-top:1px solid #eef0f2;margin-top:8px}
.create-post-footer .primary-button{margin:0}
.policy-notice{flex:0 0 auto}

/* Multiple photos/videos */
.preview-box{background:#111;margin:10px 0 12px;border-radius:12px;overflow:hidden}
.media-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;background:#111;max-height:420px;overflow:auto}
.media-preview-grid.single{grid-template-columns:1fr}
.media-preview-item{position:relative;min-height:160px;background:#000;overflow:hidden}
.media-preview-item img,.media-preview-item video{width:100%;height:100%;max-height:360px;min-height:160px;display:block;object-fit:contain;background:#000}
.media-preview-grid:not(.single) .media-preview-item img,.media-preview-grid:not(.single) .media-preview-item video{object-fit:cover;height:220px}
.media-preview-remove{position:absolute;right:8px;top:8px;width:34px;height:34px;border-radius:50%;background:#fff;font-size:22px;box-shadow:0 1px 4px rgba(0,0,0,.25);z-index:2}
.post-media-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;background:#111}
.post-media-grid img,.post-media-grid video{width:100%!important;height:320px!important;object-fit:cover!important;margin:0!important}
.post-media-grid[data-media-count="3"]>*:first-child{grid-row:span 2;height:642px!important}

/* Settings: compact left navigation + large detail panel */
.v5-settings-shell{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px;padding:16px}
.v5-settings-shell .settings-menu{position:sticky;top:78px;align-self:start;min-height:460px}
.v5-settings-body{min-width:0}
.v5-settings-body>.cb-panel{min-height:260px;padding:22px}
.v5-settings-body input,.v5-settings-body select,.v5-settings-body textarea{min-height:42px;border:1px solid #ccd0d5;border-radius:8px;padding:9px 11px;background:#fff}

/* Help & Support */
.v5-help-list{display:grid;gap:8px}
.v5-help-list button{display:flex;flex-direction:column;gap:4px;text-align:left;border:0;border-radius:10px;padding:14px;background:#f0f2f5;cursor:pointer}
.v5-help-list button:hover{background:#e4e6eb}.v5-help-list small{color:#65676b;font-weight:400}
.v5-support-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v5-support-grid article{border:1px solid #e4e6eb;border-radius:10px;padding:14px}.v5-support-grid h3{margin:0 0 4px}.v5-support-grid p{margin:0;color:#65676b}

/* Facebook-inspired Page/Group creation polish */
.creator-page-layout{grid-template-columns:360px minmax(0,1fr)!important;align-items:start}
.creator-sidebar{padding:18px!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.creator-sidebar input,.creator-sidebar select,.creator-sidebar textarea{width:100%;min-height:48px;border:1px solid #ccd0d5;border-radius:10px;padding:10px 12px;background:#fff;font-size:15px}
.creator-sidebar textarea{min-height:92px}.creator-sidebar .primary-button{min-height:48px;border-radius:9px}
.creator-preview{padding:16px!important;border-radius:12px!important;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.preview-cover-v3{height:300px;background:linear-gradient(145deg,#e4e7eb,#f0f2f5)}
.preview-frame{box-shadow:0 1px 2px rgba(0,0,0,.06)}

/* Ads / Boost: polished cards and full-width controls */
.ads-layout{grid-template-columns:minmax(0,1fr) 360px!important;align-items:start}
.ads-layout>.cb-panel{padding:18px;border-radius:12px}
.ad-builder-section{padding:18px 0!important}
.ad-builder-section h3{margin:0 0 10px}
.ad-builder-section input,.ad-builder-section select,.ad-builder-section textarea{width:100%;min-height:44px;border:1px solid #ccd0d5;border-radius:9px;padding:10px 12px;background:#fff;font-size:15px}
.ad-builder-section textarea{min-height:96px;resize:vertical}
.ad-builder-section .cb-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ad-preview-card{border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.08);overflow:hidden}
.ad-preview-media{min-height:260px}

/* Cover/photo edit affordance */
.profile-cover-edit{z-index:5}.profile-avatar-edit{z-index:6}

/* Mobile-first Facebook-like navigation */
@media(max-width:700px){
  body{padding-bottom:64px}
  .topbar{grid-template-columns:auto 1fr auto!important;padding:7px 8px!important}
  .top-cover-logo{width:48px!important;height:42px!important;object-fit:contain}
  .top-search-wrap{display:none!important}
  .top-nav{display:flex!important;position:fixed!important;left:0;right:0;bottom:0;top:auto!important;height:58px;background:#fff;border-top:1px solid #ddd;z-index:4500;justify-content:space-around;padding:3px 6px;box-shadow:0 -2px 8px rgba(0,0,0,.08)}
  .top-nav .nav-button{width:auto!important;flex:1;max-width:72px;height:52px;border-radius:8px}
  .top-nav .nav-button img{width:30px;height:30px}
  .top-right{gap:4px!important}.top-right>button:not(.profile-button){width:40px!important;height:40px!important}
  .layout{padding-bottom:64px!important}.feature-view{padding-bottom:64px}
  .create-post-card{width:100vw!important;max-width:100vw!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important;border-radius:14px 14px 0 0!important;align-self:flex-end}
  .modal{padding:0!important;align-items:flex-end!important}
  .create-post-card .modal-body{padding:10px 12px 0!important}
  .media-preview-grid{max-height:38vh}.media-preview-grid:not(.single) .media-preview-item img,.media-preview-grid:not(.single) .media-preview-item video{height:180px}
  .v5-settings-shell,.creator-page-layout,.ads-layout{grid-template-columns:1fr!important;padding:8px!important}
  .v5-settings-shell .settings-menu,.creator-sidebar,.ad-preview-card{position:static!important}
  .v5-settings-shell .settings-menu{display:flex!important;overflow-x:auto;min-height:auto!important;gap:6px;padding:8px!important}
  .v5-settings-shell .settings-menu h2{display:none}.v5-settings-shell .settings-menu button{white-space:nowrap;width:auto!important;flex:0 0 auto}
  .creator-preview{min-height:420px}.preview-cover-v3{height:200px}
  .v5-support-grid{grid-template-columns:1fr}
  .post-media-grid img,.post-media-grid video{height:220px!important}.post-media-grid[data-media-count="3"]>*:first-child{height:442px!important}
}

.cb-ai-label{display:none!important}


/* CIRKLEBOOK FINAL — Facebook-inspired Create Post text surface */
.post-text-stage{position:relative;background:#fff;border-radius:0;min-height:150px;margin:4px -2px 8px;padding:0 0 38px;transition:background .18s ease}
.post-text-stage #postBody{width:100%;min-height:112px!important;max-height:230px!important;border:0!important;outline:0!important;background:transparent!important;padding:12px 2px 8px!important;font-size:20px;line-height:1.35;resize:none!important;box-shadow:none!important}
.post-text-stage #postBody::placeholder{color:#65676b;opacity:1}
.post-text-stage.has-post-background{min-height:245px;display:flex;align-items:center;justify-content:center;padding:45px 42px}
.post-text-stage.has-post-background #postBody{min-height:120px!important;text-align:center;font-size:28px;font-weight:700;display:block;color:#fff!important;overflow:auto}
.post-text-stage.has-post-background #postBody::placeholder{color:rgba(255,255,255,.85)}
.post-text-tool{position:absolute;bottom:5px;width:34px;height:34px;border:0;border-radius:8px;background:#f0f2f5;display:grid;place-items:center;z-index:3;cursor:pointer;font-weight:800}
.post-bg-tool{left:2px;background:linear-gradient(135deg,#ff0080,#7928ca);color:#fff}.post-emoji-tool{right:2px;background:transparent;font-size:25px;color:#65676b}
.post-background-palette,.post-emoji-palette{position:absolute;bottom:44px;z-index:8;background:#fff;border:1px solid #ddd;border-radius:10px;padding:8px;box-shadow:0 4px 16px rgba(0,0,0,.16);display:flex;gap:6px;flex-wrap:wrap}
.post-background-palette{left:2px;width:190px}.post-emoji-palette{right:2px;width:220px}
.post-background-palette.hidden,.post-emoji-palette.hidden{display:none!important}
.post-background-palette button{width:34px;height:34px;border-radius:8px;border:1px solid #ccd0d5;cursor:pointer}.post-emoji-palette button{width:34px;height:34px;border:0;background:transparent;border-radius:7px;font-size:22px;cursor:pointer}.post-emoji-palette button:hover{background:#f0f2f5}
.secure-video-shell video,.post-media video{width:100%;display:block;background:#000;max-height:620px;object-fit:contain}

/* =========================================================
   CIRKLEBOOK — PROFILE CONTENT FINAL CORRECTION
========================================================= */
.cb-profile-page-final{max-width:1120px;margin:0 auto;padding-top:0!important}
.cb-profile-hero-final{overflow:visible}
.cb-profile-head-final{max-width:1040px;margin-left:auto;margin-right:auto}
.cb-profile-follow-line{display:flex;gap:7px;flex-wrap:wrap;color:#65676b;align-items:center}
.cb-profile-tabs-final{max-width:1040px;margin:0 auto}
.cb-profile-tab-body{max-width:1040px;margin:0 auto;padding-bottom:40px}
.cb-profile-facebook-layout{grid-template-columns:390px minmax(0,1fr);align-items:start}
.cb-profile-left-column,.cb-profile-main-column{min-width:0}
.cb-profile-intro-card p{margin:9px 0;line-height:1.35}
.cb-profile-bio{text-align:center;font-size:15px}
.cb-profile-full-button{width:100%;margin-top:8px}
.cb-profile-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.cb-profile-section-head h2,.cb-profile-section-head h3{margin:0}
.cb-profile-link{border:0;background:transparent;color:#1877f2;font-weight:600;padding:7px;border-radius:7px}
.cb-profile-link:hover{background:#f0f2f5}
.cb-profile-muted{color:#65676b;font-size:14px;margin:2px 0 10px}
.cb-profile-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;overflow:hidden;border-radius:10px}
.cb-profile-photo-tile{border:0;padding:0;aspect-ratio:1/1;background:#e4e6eb;overflow:hidden;border-radius:5px}
.cb-profile-photo-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .15s}
.cb-profile-photo-tile:hover img{transform:scale(1.025)}
.cb-profile-friends-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cb-profile-friend-mini{min-width:0;font-size:12px}
.cb-profile-friend-mini b{display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cb-profile-friend-avatar{display:grid;place-items:center;width:100%;aspect-ratio:1/1;border-radius:8px;background:linear-gradient(135deg,#e7f3ff,#d8e8ff);font-size:25px;font-weight:800;color:#1877f2}
.cb-profile-composer-facebook{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px}
.cb-profile-composer-facebook>.avatar{width:42px;height:42px;border-radius:50%;object-fit:cover}
.cb-profile-composer-facebook>#profileComposerBtn{font-size:16px}
.cb-profile-composer-shortcuts{grid-column:1/-1;border-top:1px solid #e4e6eb;padding-top:8px;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.cb-profile-composer-shortcuts button{border:0;background:transparent;border-radius:8px;padding:10px;font-weight:700;color:#65676b}
.cb-profile-composer-shortcuts button:hover{background:#f0f2f5}
.cb-profile-post-toolbar{padding-bottom:0}
.cb-profile-view-tabs{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e4e6eb;margin:10px -16px 0}
.cb-profile-view-tabs button{border:0;background:transparent;padding:11px;color:#65676b;font-weight:700}
.cb-profile-view-tabs button.active{color:#1877f2;border-bottom:3px solid #1877f2}
.cb-profile-post-list>.post,.cb-profile-video-posts>.post{margin-bottom:14px}
.cb-profile-post-list .post,.cb-profile-video-posts .post{box-shadow:0 1px 2px rgba(0,0,0,.08);border-radius:12px;overflow:hidden}
.cb-profile-post-list .post-media img,.cb-profile-video-posts .post-media img{width:100%;max-height:680px;object-fit:contain;background:#000}
.cb-profile-tab-panel{margin-top:16px}
.cb-profile-tab-panel .cb-profile-photo-grid{grid-template-columns:repeat(4,1fr);gap:8px}
.cb-profile-more-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.cb-profile-more-grid button{border:0;background:#f0f2f5;border-radius:10px;padding:14px;text-align:left;font-weight:700}
.cb-profile-more-grid button:hover{background:#e4e6eb}
.cb-empty-panel.compact{padding:10px 0}
.cb-profile-loading{margin-top:16px;text-align:center;color:#65676b}

@media(max-width:900px){
  .cb-profile-facebook-layout{grid-template-columns:1fr}
  .cb-profile-left-column{order:2}
  .cb-profile-main-column{order:1}
  .cb-profile-tab-panel .cb-profile-photo-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px){
  .cb-profile-tab-body{padding:0 4px 30px}
  .cb-profile-friends-preview{grid-template-columns:repeat(3,1fr)}
  .cb-profile-tab-panel .cb-profile-photo-grid{grid-template-columns:repeat(3,1fr);gap:3px}
  .cb-profile-section-head{align-items:flex-start;flex-wrap:wrap}
  .cb-profile-post-toolbar .cb-profile-section-head>div{display:flex;gap:4px;flex-wrap:wrap}
  .cb-profile-more-grid{grid-template-columns:1fr}
}



/* =========================================================
   CIRKLEBOOK FINAL CONSOLIDATED UX — Facebook-inspired layout
========================================================= */
.cb-stories-strip{padding:10px 8px;overflow:hidden}
.cb-stories-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:0 2px}
.cb-stories-row::-webkit-scrollbar{display:none}
.cb-story-card{position:relative;flex:0 0 112px;height:198px;border:0;border-radius:12px;overflow:hidden;background:#dfe3e8 center/cover no-repeat;cursor:pointer;text-align:left;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.cb-story-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 45%,rgba(0,0,0,.72))}
.cb-story-avatar{position:absolute;top:10px;left:10px;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#1877f2;color:#fff;font-weight:800;border:4px solid #1877f2;overflow:hidden}
.cb-story-avatar img{width:100%;height:100%;object-fit:cover}
.cb-story-name{position:absolute;left:10px;right:8px;bottom:10px;color:#fff;font-weight:700;font-size:13px;line-height:1.2;z-index:2}
.cb-create-story{background:#eef0f3 center/cover no-repeat}
.cb-create-story .cb-story-plus{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;background:#1877f2;color:white;border:4px solid white;display:grid;place-items:center;font-size:25px;font-weight:700;z-index:2}
.cb-story-viewer{min-height:440px;background:#111;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:12px;color:#fff}
.cb-story-viewer img,.cb-story-viewer video{max-width:100%;max-height:520px;border-radius:8px}
.cb-story-text{font-size:22px;font-weight:700;text-align:center;padding:15px}
.cb-story-create{display:grid;gap:12px}
.cb-story-upload{padding:14px;border:1px dashed #ccd0d5;border-radius:10px;background:#f7f8fa}
.cb-story-upload input{display:block;margin-top:8px}
.cb-story-bg-picks{display:flex;gap:8px}
.cb-story-bg-picks button{width:34px;height:34px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #ccd0d5}
.cb-story-preview{height:230px;border-radius:12px;background:#1877f2;color:#fff;display:grid;place-items:center;font-size:25px;font-weight:800;text-align:center;overflow:hidden;padding:16px}
.cb-story-preview img,.cb-story-preview video{width:100%;height:100%;object-fit:cover}

.cb-profile-page-final{max-width:940px;margin:0 auto}
.cb-profile-hero-final{overflow:visible}
.cb-profile-hero-final .profile-cover{height:350px;border-radius:0 0 10px 10px;background-position:center;background-size:cover}
.cb-profile-head-final{padding:0 28px 16px;align-items:flex-end}
.cb-profile-head-final .profile-avatar-wrap{margin-top:-70px}
.cb-profile-head-final .profile-big-avatar{width:168px;height:168px;border:5px solid #fff}
.cb-profile-head-final .profile-title{padding-bottom:8px;min-width:0}
.cb-profile-head-final .profile-title h1{font-size:32px;line-height:1.05;margin-bottom:5px}
.cb-profile-head-final .profile-title p{max-width:560px}
.cb-profile-tabs-final{border-top:1px solid #e4e6eb;padding:0 14px;gap:2px}
.cb-profile-tabs-final button{padding:17px 15px;border-radius:6px 6px 0 0}
.cb-profile-facebook-layout{grid-template-columns:360px minmax(0,1fr);gap:16px;align-items:start}
.cb-profile-left-column{position:sticky;top:78px}
.cb-profile-main-column .post{margin-bottom:16px}
.cb-profile-post-list .post{border:1px solid #e4e6eb;border-radius:10px;overflow:hidden;background:#fff}
.cb-profile-composer-facebook{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}
.cb-profile-composer-shortcuts{grid-column:1/-1;border-top:1px solid #e4e6eb;display:grid;grid-template-columns:1fr 1fr;padding-top:8px}
.cb-profile-composer-shortcuts button{border:0;background:transparent;padding:9px;border-radius:7px;font-weight:700}
.cb-profile-composer-shortcuts button:hover{background:#f0f2f5}
.cb-profile-section-card{border-radius:10px}

.cb-about-facebook{display:grid;grid-template-columns:290px minmax(0,1fr);gap:0;max-width:940px;margin:0 auto}
.cb-about-nav{border-radius:10px 0 0 10px;border-right:1px solid #e4e6eb;padding:14px}
.cb-about-nav h2{margin:0 0 10px}
.cb-about-nav button{display:block;width:100%;padding:11px 12px;border:0;background:transparent;border-radius:7px;text-align:left;font-weight:600;color:#4b4f56}
.cb-about-nav button.active{background:#e7f3ff;color:#1877f2}
.cb-about-main{border-radius:0 10px 10px 0;min-height:470px;padding:22px}
.cb-about-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #e4e6eb;padding-bottom:14px;margin-bottom:18px}
.cb-about-head h2{margin:0 0 4px}
.cb-about-head p{margin:0;color:#65676b}
.cb-about-info-card{display:grid;gap:14px}
.cb-about-info-card>div{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:13px 0;border-bottom:1px solid #f0f2f5}
.cb-about-info-card span,.cb-about-info-card p{color:#444}
.cb-about-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}

.cb-edit-profile-facebook{display:grid;gap:0;max-height:72vh;overflow:auto}
.cb-edit-row,.cb-edit-section{padding:16px 2px;border-bottom:1px solid #e4e6eb}
.cb-edit-row{display:flex;justify-content:space-between;gap:20px;align-items:center}
.cb-edit-row h3,.cb-edit-section h3{margin:0 0 5px}
.cb-edit-row p{margin:0;color:#65676b}
.cb-edit-section{display:grid;gap:10px}
.cb-edit-section label{display:grid;gap:5px;font-weight:600}
.cb-edit-section input,.cb-edit-section textarea{width:100%;border:1px solid #ccd0d5;border-radius:8px;padding:10px;font:inherit}
#cbDialogCard:has(.cb-edit-profile-facebook){max-width:680px;width:min(680px,94vw)}

.cb-friends-facebook{display:grid;grid-template-columns:340px minmax(0,1fr);gap:16px;max-width:1120px;margin:12px auto}
.cb-friends-nav{position:sticky;top:80px;align-self:start;padding:14px}
.cb-friends-nav h2{margin:0 0 10px;font-size:26px}
.cb-friends-nav button{width:100%;display:flex;gap:12px;align-items:center;padding:12px;border:0;background:transparent;border-radius:8px;text-align:left;font-weight:700}
.cb-friends-nav button span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e4e6eb}
.cb-friends-nav button.active,.cb-friends-nav button:hover{background:#f0f2f5}
.cb-friends-main{padding:18px;min-height:540px}
.cb-friends-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}
.cb-friends-head h2{margin:0}
.cb-friends-head p{margin:3px 0 0;color:#65676b}
.cb-friend-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cb-friend-card{border:1px solid #e4e6eb;border-radius:10px;overflow:hidden;background:#fff;display:grid;grid-template-columns:112px 1fr;min-height:130px}
.cb-friend-photo{background:#f0f2f5;display:grid;place-items:center;overflow:hidden}
.cb-friend-photo img{width:100%;height:100%;object-fit:cover}
.cb-friend-photo span{font-size:40px;font-weight:800;color:#1877f2}
.cb-friend-card-body{padding:13px;min-width:0}
.cb-friend-card-body h3{margin:0 0 3px}
.cb-friend-card-body p{margin:0 0 12px;color:#65676b}
.cb-friend-actions{display:flex;gap:7px;flex-wrap:wrap}

.cb-settings-facebook{display:grid;grid-template-columns:390px minmax(0,1fr);gap:16px;max-width:1180px;margin:12px auto}
.cb-settings-nav{padding:16px;position:sticky;top:80px;align-self:start}
.cb-settings-nav h2{font-size:26px;margin:0 0 12px}
.cb-settings-account-card{display:flex;align-items:center;gap:10px;padding:12px 4px;border-bottom:1px solid #e4e6eb;margin-bottom:8px}
.cb-settings-account-card small{display:block;color:#65676b}
.cb-settings-nav>button{width:100%;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:9px;border:0;background:transparent;padding:10px;border-radius:8px;text-align:left}
.cb-settings-nav>button>span{font-size:22px}
.cb-settings-nav>button div{display:grid;gap:2px}
.cb-settings-nav>button small{color:#65676b;font-weight:400}
.cb-settings-nav>button em{font-style:normal;color:#65676b;font-size:24px}
.cb-settings-nav>button.active,.cb-settings-nav>button:hover{background:#f0f2f5}
.cb-settings-main{min-width:0}
.cb-settings-main>.cb-panel{min-height:520px;padding:24px}
.cb-settings-main h2{font-size:26px}
.cb-settings-main .setting-row{padding:16px 0;border-bottom:1px solid #e4e6eb}

@media(max-width:900px){
  .cb-profile-facebook-layout,.cb-about-facebook,.cb-friends-facebook,.cb-settings-facebook{grid-template-columns:1fr}
  .cb-profile-left-column,.cb-friends-nav,.cb-settings-nav{position:static}
  .cb-profile-head-final{align-items:flex-start;flex-wrap:wrap}
  .cb-profile-head-final .profile-title h1{font-size:26px}
  .cb-about-nav{border-radius:10px;border-right:0;display:flex;overflow:auto;gap:4px}
  .cb-about-nav h2{display:none}
  .cb-about-nav button{width:auto;white-space:nowrap}
  .cb-about-main{border-radius:10px}
  .cb-friend-card-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .cb-story-card{flex-basis:102px;height:178px}
  .cb-profile-hero-final .profile-cover{height:220px}
  .cb-profile-head-final{padding:0 14px 12px}
  .cb-profile-head-final .profile-big-avatar{width:132px;height:132px}
  .cb-profile-head-final .profile-avatar-wrap{margin-top:-58px}
  .cb-profile-tabs-final{overflow-x:auto}
  .cb-profile-tabs-final button{white-space:nowrap}
  .cb-friend-card{grid-template-columns:86px 1fr}
}

/* CIRKLEBOOK FINAL PROFILE / STORY / REEL FIX */
.cb-profile-page-final{max-width:940px!important;margin:0 auto!important}.cb-profile-hero-final{overflow:visible!important}
.cb-profile-hero-final .profile-cover{height:350px!important;background-size:cover!important;background-position:center!important;border-radius:0 0 10px 10px!important}
.cb-profile-head-final{padding:0 28px 16px!important;align-items:flex-end!important}.cb-profile-head-final .profile-avatar-wrap{margin-top:-72px!important}.cb-profile-head-final .profile-big-avatar{width:168px!important;height:168px!important;border:5px solid #fff!important}
.cb-profile-head-final .profile-title{padding:0 0 8px!important;flex:1!important}.cb-profile-head-final .profile-title h1{font-size:32px!important;margin:0 0 4px!important}.cb-profile-counts{font-size:15px;color:#65676b}.cb-profile-pinned-details{display:flex;flex-wrap:wrap;gap:10px;color:#4b4f56;font-size:14px}
.cb-profile-tabs-final{border-top:1px solid #e4e6eb!important;padding:0 14px!important;gap:2px!important}.cb-profile-tabs-final button{padding:17px 16px!important;font-weight:700!important}
.cb-profile-facebook-layout{display:grid!important;grid-template-columns:360px minmax(0,1fr)!important;gap:16px!important;align-items:start!important;margin-top:16px!important}.cb-profile-left-column{display:grid;gap:12px;position:sticky;top:78px}.cb-profile-main-column{display:grid;gap:12px}
.cb-wide-action{width:100%;margin-top:8px}.cb-link-button{border:0;background:transparent;color:#1877f2;font-weight:700;cursor:pointer}.cb-profile-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.cb-profile-muted{color:#65676b;font-size:13px}
.cb-profile-composer-facebook{display:grid!important;grid-template-columns:auto 1fr!important;gap:10px!important;align-items:center!important}.cb-profile-composer-shortcuts{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e4e6eb;padding-top:8px}.cb-profile-composer-shortcuts button{border:0;background:transparent;padding:9px;border-radius:7px;font-weight:700}
.cb-profile-post-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center}.cb-profile-post-list .post{border:1px solid #e4e6eb;border-radius:10px;overflow:hidden;background:#fff;margin-bottom:12px}.cb-profile-option-list{display:grid;gap:8px}.cb-profile-option-list .cb-action{width:100%;text-align:left}.cb-profile-media-panel{margin-top:16px}
.cb-about-facebook{display:grid!important;grid-template-columns:290px minmax(0,1fr)!important;gap:0!important;max-width:940px!important;margin:16px auto 0!important}.cb-about-nav{border-radius:10px 0 0 10px!important;border-right:1px solid #e4e6eb!important;padding:14px!important}.cb-about-nav button{display:block!important;width:100%!important;padding:11px 12px!important;border:0!important;background:transparent!important;border-radius:7px!important;text-align:left!important;font-weight:600!important;color:#4b4f56!important}.cb-about-nav button.active{background:#e7f3ff!important;color:#1877f2!important}.cb-about-main{border-radius:0 10px 10px 0!important;min-height:480px!important;padding:22px!important}
.cb-about-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #e4e6eb;padding-bottom:14px;margin-bottom:18px}.cb-about-head h2{margin:0 0 4px}.cb-about-head p{margin:0;color:#65676b}.cb-about-info-card{display:grid;gap:10px}.cb-about-info-card>div{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:13px 0;border-bottom:1px solid #f0f2f5}.cb-about-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.cb-edit-profile-facebook{display:grid;max-height:74vh;overflow:auto}.cb-edit-row,.cb-edit-section{padding:16px 2px;border-bottom:1px solid #e4e6eb}.cb-edit-row{display:flex;justify-content:space-between;gap:20px;align-items:center}.cb-edit-row h3,.cb-edit-section h3{margin:0 0 5px}.cb-edit-row p{margin:0;color:#65676b}.cb-edit-head{display:flex;justify-content:space-between;color:#65676b}.cb-edit-section{display:grid;gap:10px}.cb-edit-section label{display:grid;gap:5px;font-weight:600}.cb-edit-section input,.cb-edit-section textarea{width:100%;border:1px solid #ccd0d5;border-radius:8px;padding:10px;font:inherit}#cbDialogCard:has(.cb-edit-profile-facebook){max-width:680px!important;width:min(680px,94vw)!important}
.cb-friends-facebook{display:grid!important;grid-template-columns:340px minmax(0,1fr)!important;gap:16px!important;max-width:1120px!important;margin:12px auto!important}.cb-friends-nav{position:sticky;top:80px;align-self:start;padding:14px!important}.cb-friends-nav h2{margin:0 0 10px;font-size:26px}.cb-friends-nav button{width:100%;display:flex;gap:12px;align-items:center;padding:12px;border:0;background:transparent;border-radius:8px;text-align:left;font-weight:700}.cb-friends-nav button span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e4e6eb}.cb-friends-nav button.active,.cb-friends-nav button:hover{background:#f0f2f5}.cb-friends-main{padding:18px!important;min-height:540px}.cb-friends-head{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.cb-friend-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cb-friend-card{border:1px solid #e4e6eb;border-radius:10px;overflow:hidden;background:#fff;display:grid;grid-template-columns:112px 1fr;min-height:130px}.cb-friend-photo{background:#f0f2f5;display:grid;place-items:center;overflow:hidden}.cb-friend-photo img{width:100%;height:100%;object-fit:cover}.cb-friend-photo span{font-size:40px;font-weight:800;color:#1877f2}.cb-friend-card-body{padding:13px}.cb-friend-card-body h3{margin:0 0 3px}.cb-friend-actions{display:flex;gap:7px;flex-wrap:wrap}
.cb-settings-facebook{display:grid!important;grid-template-columns:390px minmax(0,1fr)!important;gap:16px!important;max-width:1180px!important;margin:12px auto!important}.cb-settings-nav{padding:16px!important;position:sticky;top:80px;align-self:start}.cb-settings-nav h2{font-size:26px;margin:0 0 12px}.cb-settings-account-card{display:flex;align-items:center;gap:10px;padding:12px 4px;border-bottom:1px solid #e4e6eb;margin-bottom:8px}.cb-settings-account-card small{display:block;color:#65676b}.cb-settings-nav>button{width:100%;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:9px;border:0;background:transparent;padding:10px;border-radius:8px;text-align:left}.cb-settings-nav>button div{display:grid;gap:2px}.cb-settings-nav>button small{color:#65676b;font-weight:400}.cb-settings-nav>button em{font-style:normal;color:#65676b;font-size:24px}.cb-settings-nav>button.active,.cb-settings-nav>button:hover{background:#f0f2f5}.cb-settings-main>.cb-panel{min-height:520px;padding:24px}
.cb-story-create-page{display:grid!important;grid-template-columns:300px minmax(0,1fr)!important;min-height:calc(100vh - 72px)!important;background:#f0f2f5!important}.cb-story-create-sidebar{background:#fff;border-right:1px solid #ddd;padding:16px;box-shadow:2px 0 8px rgba(0,0,0,.05)}.cb-story-create-title{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e4e6eb;padding-bottom:14px}.cb-circle-close{width:38px;height:38px;border-radius:50%;border:0;background:#e4e6eb;font-size:20px}.cb-story-sidebar-options{display:grid;gap:14px;padding-top:14px}.cb-story-instruction,.cb-story-help{display:grid;gap:4px;padding:12px;background:#f7f8fa;border-radius:8px}.cb-story-instruction span,.cb-story-help span{color:#65676b;font-size:13px}.cb-story-side-label{display:grid;gap:6px;font-weight:700}.cb-story-side-label textarea,.cb-story-side-label select{padding:10px;border:1px solid #ccd0d5;border-radius:8px;font:inherit}.cb-story-side-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cb-story-create-canvas{display:grid;place-items:center;padding:28px}.cb-story-choice-grid{display:grid;grid-template-columns:repeat(2,166px);gap:16px}.cb-story-choice{height:248px;border:0;border-radius:10px;color:#fff;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;cursor:pointer}.cb-story-choice.photo{background:linear-gradient(135deg,#6547e7,#7dd3fc)}.cb-story-choice.text{background:linear-gradient(135deg,#b445d8,#ec407a)}.cb-story-choice span{width:42px;height:42px;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;font-size:20px}.cb-story-choice small{opacity:.9}#cbStoryEditor{width:min(760px,92%)}.cb-story-edit-stage{height:520px;border-radius:12px;display:grid;place-items:center;overflow:hidden;padding:24px;color:#fff}.cb-story-edit-stage img,.cb-story-edit-stage video{max-width:100%;max-height:100%;object-fit:contain}.cb-story-big-text{font-size:38px;font-weight:800;text-align:center}
.cb-reel-editor-page{padding:0!important;background:#303030!important;min-height:calc(100vh - 72px)}.cb-reel-editor-shell{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:calc(100vh - 72px)}.cb-reel-edit-sidebar{background:#fff;padding:14px;overflow:auto;max-height:calc(100vh - 72px);display:grid;align-content:start;gap:12px}.cb-reel-editor-title{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e4e6eb;padding-bottom:10px}.cb-reel-edit-sidebar label{display:grid;gap:5px;font-weight:700}.cb-reel-edit-sidebar input,.cb-reel-edit-sidebar textarea,.cb-reel-edit-sidebar select{padding:10px;border:1px solid #ccd0d5;border-radius:8px;font:inherit}.cb-reel-tool{border:0;background:#fff;border-top:1px solid #eee;padding:12px 4px;display:flex;justify-content:space-between;font-weight:700}.cb-reel-preview-area{display:grid;place-items:center;padding:40px;background:#303030}.cb-reel-preview-area video{max-width:min(900px,92%);max-height:72vh;background:#111}.cb-reel-setting-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #eee}.cb-reel-setting-row small{display:block;color:#65676b;margin-top:2px}.cb-reel-group-list{display:grid;gap:6px;max-height:150px;overflow:auto}.cb-reel-group-option{display:flex!important;align-items:center;gap:8px!important;padding:8px;background:#f7f8fa;border-radius:7px}.cb-policy-inline{display:grid;gap:3px;background:#fff7e6;border:1px solid #f5c36a;border-radius:8px;padding:10px}.cb-policy-inline span{font-size:12px;color:#795500}.cb-reel-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media(max-width:900px){.cb-profile-facebook-layout,.cb-about-facebook,.cb-friends-facebook,.cb-settings-facebook,.cb-story-create-page,.cb-reel-editor-shell{grid-template-columns:1fr!important}.cb-profile-left-column,.cb-friends-nav,.cb-settings-nav{position:static}.cb-story-create-sidebar{border-right:0;border-bottom:1px solid #ddd}.cb-reel-edit-sidebar{max-height:none}}

/* ===== FINAL CORRECTION: production-sized Profile / editable Page / Group / Story ===== */
.cb-profile-page-final{max-width:1180px!important;width:min(1180px,calc(100vw - 40px))!important}
.cb-profile-hero-final .profile-cover{height:400px!important}
.cb-profile-facebook-layout{grid-template-columns:400px minmax(0,1fr)!important}
.cb-profile-head-final{padding-left:34px!important;padding-right:34px!important}
.cb-profile-head-final .profile-big-avatar{width:176px!important;height:176px!important}
.cb-profile-head-final .profile-title h1{font-size:34px!important}
.cb-profile-main-column .post{font-size:15px!important}
.cb-profile-main-column .post img,.cb-profile-main-column .post video{max-height:720px!important}

.cb-entity-create-layout{display:grid!important;grid-template-columns:360px minmax(0,1fr)!important;gap:16px!important;max-width:1280px!important;margin:12px auto!important}
.cb-entity-sidebar{position:sticky;top:80px;align-self:start;max-height:calc(100vh - 96px);overflow:auto;padding:18px!important}
.cb-entity-media-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.cb-entity-sidebar .cb-form-grid{display:grid;gap:10px}
.cb-entity-sidebar input,.cb-entity-sidebar textarea,.cb-entity-sidebar select{width:100%;box-sizing:border-box;border:1px solid #ccd0d5;border-radius:9px;padding:12px;font:inherit;background:#fff}
.cb-check-row{display:flex!important;align-items:center;gap:8px!important;padding:8px 0!important}.cb-check-row input{width:auto!important}
.cb-entity-preview-panel{padding:14px!important;min-height:650px}.cb-preview-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.cb-live-entity-preview{overflow:hidden;border:1px solid #d8dadf;border-radius:10px;background:#fff}.cb-live-entity-preview.mobile{max-width:420px;margin:0 auto}
.cb-editable-cover{height:250px!important;background-size:cover!important;background-position:center!important;position:relative;background-color:#e4e6eb!important}
.cb-editable-cover button{position:absolute;right:12px;bottom:12px}.cb-preview-profile-row{display:grid;grid-template-columns:150px 1fr auto;align-items:end;gap:16px;padding:0 24px 18px;margin-top:-55px;position:relative}
.cb-editable-avatar{width:140px!important;height:140px!important;border:5px solid #fff!important;border-radius:50%!important;background-size:cover!important;background-position:center!important;background-color:#cfd4da!important;position:relative}
.cb-editable-avatar button{position:absolute;right:4px;bottom:4px;width:38px;height:38px;border-radius:50%;border:0;background:#e4e6eb}.cb-preview-actions{display:flex;gap:6px;align-items:center}
.cb-page-preview-body{grid-template-columns:340px minmax(0,1fr)!important}

.cb-entity-manager{max-width:1180px!important;margin:0 auto!important}.cb-entity-manager-hero{overflow:hidden;padding:0!important}.cb-manager-cover{height:380px;background:#e4e6eb center/cover no-repeat;position:relative}
.cb-manager-cover>.cb-action{position:absolute;right:18px;bottom:16px}.cb-manager-head{display:grid;grid-template-columns:170px 1fr auto;gap:18px;align-items:end;padding:0 28px 18px;margin-top:-65px;position:relative}.cb-manager-logo{width:160px;height:160px;border-radius:50%;border:5px solid #fff;background:#cfd4da center/cover no-repeat;position:relative}.cb-manager-logo button{position:absolute;right:3px;bottom:3px;width:40px;height:40px;border-radius:50%;border:0;background:#e4e6eb}.cb-manager-head h1{font-size:32px;margin:0 0 5px}.cb-manager-tabs{border-top:1px solid #e4e6eb;padding:16px 28px;font-weight:700;word-spacing:10px}.cb-entity-manager-grid{display:grid;grid-template-columns:380px minmax(0,1fr);gap:16px;margin-top:16px}.cb-manager-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

.cb-story-editor-toolbar{display:flex;gap:7px;flex-wrap:wrap}.cb-story-editor-toolbar .cb-action{font-size:13px}
.cb-story-edit-stage img,.cb-story-edit-stage video{transition:transform .2s ease}
@media(max-width:900px){
 .cb-profile-page-final{width:100%!important}.cb-profile-facebook-layout,.cb-entity-create-layout,.cb-entity-manager-grid{grid-template-columns:1fr!important}
 .cb-entity-sidebar{position:static;max-height:none}.cb-preview-profile-row,.cb-manager-head{grid-template-columns:auto 1fr;}.cb-preview-actions,.cb-manager-head>.cb-action{grid-column:1/-1}.cb-manager-cover{height:260px}
}

/* CLICK-HANDLER FIX */
.cb-editable-cover{position:relative!important}
.cb-editable-cover button,
#pagePreviewCoverEdit,#groupPreviewCoverEdit,
#pagePreviewLogoEdit,#groupPreviewLogoEdit,
#pageCoverBtn,#groupCoverBtn,#pageLogoBtn,#groupLogoBtn{
  position:relative;
  z-index:50!important;
  pointer-events:auto!important;
  cursor:pointer!important;
}
.person-card .cb-action{position:relative;z-index:10;pointer-events:auto!important;cursor:pointer!important}
