.shmooz-shell {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(560px, 3fr) minmax(220px, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1540px;
    margin: 0 auto;
    padding: 30px 24px 50px;
}

.shmooz-panel {
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.shmooz-panel-section {
    padding: 20px;
    border-bottom: 1px solid #e7edf4;
}

.shmooz-panel-section:last-child {
    border-bottom: 0;
}

.shmooz-centre {
    min-width: 0;
}

.shmooz-button,
.shmooz-button:visited,
.shmooz-shell button {
    display: inline-flex;
    min-width: 118px;
    height: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 24px;
    border: 2px solid #0b4ea2;
    border-radius: 12px;
    background: #0b4ea2;
    color: #ffffff;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.shmooz-button:hover,
.shmooz-button:focus,
.shmooz-shell button:hover,
.shmooz-shell button:focus {
    border-color: #083d80;
    background: #083d80;
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.15);
}

.shmooz-button:active,
.shmooz-shell button:active {
    transform: translateY(1px);
}

.shmooz-button-primary,
.shmooz-button-primary:visited {
    border-color: #0b4ea2;
    background: #0b4ea2;
    color: #ffffff;
}

.shmooz-button-primary:hover,
.shmooz-button-primary:focus {
    border-color: #083d80;
    background: #083d80;
    color: #ffffff;
}

.shmooz-button-secondary,
.shmooz-button-secondary:visited {
    border-color: #0b4ea2;
    background: #ffffff;
    color: #0b4ea2;
}

.shmooz-button-secondary:hover,
.shmooz-button-secondary:focus {
    border-color: #0b4ea2;
    background: #f4f8ff;
    color: #0b4ea2;
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.12);
}

.shmooz-button-full {
    width: 100%;
    min-width: 0;
}

.shmooz-search {
    display: flex;
    gap: 12px;
}

.shmooz-search-stacked {
    flex-direction: column;
}

.shmooz-shell input[type="search"],
.shmooz-shell input[type="text"],
.shmooz-shell textarea,
.shmooz-shell select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid #b8c7d9;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 16px;
}

.shmooz-shell textarea {
    min-height: 132px;
    resize: vertical;
}

.shmooz-shell input:focus,
.shmooz-shell textarea:focus,
.shmooz-shell select:focus {
    border-color: #0b7a8f;
    outline: 3px solid rgba(11, 122, 143, 0.14);
    outline-offset: 1px;
}

.shmooz-profile-photo,
.shmooz-post-photo,
.shmooz-suggestion-photo {
    display: block;
    box-sizing: border-box;
    background: #ffffff;
}

.shmooz-personal-photo {
    border-radius: 50%;
    object-fit: cover;
}

.shmooz-company-logo {
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    object-fit: contain;
    padding: 8px;
}

.shmooz-profile-photo {
    width: 112px;
    height: 112px;
    margin-bottom: 14px;
}

.shmooz-post-photo,
.shmooz-suggestion-photo {
    width: 50px;
    height: 50px;
}

.shmooz-post-photo.shmooz-company-logo,
.shmooz-suggestion-photo.shmooz-company-logo {
    padding: 4px;
    border-radius: 8px;
}

.shmooz-profile-name,
.shmooz-post-name {
    font-weight: 700;
}

.shmooz-handle,
.shmooz-post-time,
.shmooz-post-source,
.shmooz-counts {
    color: #667085;
    font-size: 0.92rem;
}

.shmooz-verified {
    color: #0b7a8f;
    font-weight: 700;
}

.shmooz-profile-summary {
    margin: 14px 0 0;
    line-height: 1.5;
}

.shmooz-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
}

.shmooz-profile-links a {
    overflow-wrap: anywhere;
}

.shmooz-profile-counts {
    display: flex;
    gap: 18px;
    margin-top: 14px;
}

.shmooz-profile-counts strong {
    display: block;
    font-size: 1.15rem;
}

.shmooz-profile-view-link {
    margin: 18px 0 0;
}

.shmooz-compose-heading,
.shmooz-feed-heading {
    margin: 0 0 16px;
}

.shmooz-compose-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.shmooz-post {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #e7edf4;
}

.shmooz-post:last-child {
    border-bottom: 0;
}

.shmooz-post-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.shmooz-post-body {
    margin: 10px 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    line-height: 1.55;
}

.shmooz-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.92rem;
}

.shmooz-post-actions a {
    font-weight: 700;
    text-decoration: none;
}

.shmooz-suggestion {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.shmooz-suggestion:last-child {
    margin-bottom: 0;
}

.shmooz-sponsored-label {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 9px;
    border: 2px solid #0b7a8f;
    border-radius: 999px;
    color: #0b7a8f;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.shmooz-classified-item,
.shmooz-ad-item {
    margin-bottom: 18px;
}

.shmooz-classified-item:last-child,
.shmooz-ad-item:last-child {
    margin-bottom: 0;
}

.shmooz-empty {
    padding: 34px 20px;
    text-align: center;
    color: #667085;
}

@media (max-width: 1100px) {
    .shmooz-shell {
        grid-template-columns: minmax(220px, 1fr) minmax(0, 2.5fr);
    }

    .shmooz-right {
        display: none;
    }
}

@media (max-width: 760px) {
    .shmooz-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 18px 12px 36px;
    }

    .shmooz-left {
        display: contents;
    }

    .shmooz-left .shmooz-quick-nav {
        order: 1;
        justify-content: center;
        margin: 0;
    }

    .shmooz-centre {
        order: 2;
        min-width: 0;
    }

    .shmooz-right {
        display: block;
        order: 3;
        min-width: 0;
    }

    .shmooz-right > .shmooz-panel > .shmooz-panel-section {
        display: none;
    }

    .shmooz-right > .shmooz-panel > .shmooz-panel-section:first-child {
        display: block;
    }

    .shmooz-left > .shmooz-panel {
        display: block;
        order: 4;
        min-width: 0;
    }

    .shmooz-left > .shmooz-panel .shmooz-profile-photo {
        width: 72px;
        height: 72px;
        margin-bottom: 10px;
    }

    .shmooz-left > .shmooz-panel .shmooz-panel-section {
        padding: 18px;
    }

    .shmooz-left > .shmooz-panel .shmooz-profile-summary,
    .shmooz-left > .shmooz-panel .shmooz-profile-links {
        display: none;
    }

    .shmooz-left > .shmooz-panel .shmooz-profile-view-link {
        margin-top: 14px;
    }

    .shmooz-compose-actions {
        display: block;
    }

    .shmooz-compose-actions .shmooz-button,
    .shmooz-button-full {
        width: 100%;
    }
}

.shmooz-return-jdl {
    text-align: center;
}

.shmooz-return-jdl a {
    color: #667085;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.shmooz-return-jdl a:hover,
.shmooz-return-jdl a:focus {
    color: #073b78;
    text-decoration: underline;
}


.shmooz-profile-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px 24px 50px;
}

.shmooz-profile-header-card {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #d8e1ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.shmooz-profile-header-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

.shmooz-profile-page-photo {
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
    box-sizing: border-box;
    background: #ffffff;
}

.shmooz-profile-page-photo.shmooz-company-logo {
    padding: 10px;
    border: 1px solid #d8e1ec;
    border-radius: 14px;
    object-fit: contain;
}

.shmooz-profile-page-photo.shmooz-personal-photo {
    border-radius: 50%;
    object-fit: cover;
}

.shmooz-profile-heading h1 {
    margin: 0 0 6px;
}

.shmooz-profile-page-bio {
    max-width: 760px;
    margin: 20px 0 0;
    line-height: 1.55;
}

.shmooz-profile-page-counts,
.shmooz-profile-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 18px;
}

.shmooz-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.shmooz-profile-page-counts span {
    color: #667085;
}

.shmooz-profile-page-counts strong {
    color: #111827;
}

.shmooz-relationship-notice {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
}

.shmooz-block-notice {
    border: 1px solid #c62828;
    background: #fff4f4;
    color: #9b1c1c;
}

.shmooz-mute-notice {
    border: 1px solid #b8c7d9;
    background: #f7f9fc;
    color: #475467;
}

.shmooz-profile-timeline {
    overflow: hidden;
}

@media (max-width: 700px) {
    .shmooz-profile-page {
        padding: 18px 12px 36px;
    }

    .shmooz-profile-header-main {
        align-items: flex-start;
    }

    .shmooz-profile-page-photo {
        width: 96px;
        height: 96px;
        flex-basis: 96px;
    }
}


/* SHMOOZ anchor buttons must override the shared public link colours. */
a.shmooz-button,
a.shmooz-button:link,
a.shmooz-button:visited,
a.shmooz-button:hover,
a.shmooz-button:focus,
a.shmooz-button:active {
    text-decoration: none !important;
}

a.shmooz-button-primary,
a.shmooz-button-primary:link,
a.shmooz-button-primary:visited {
    border-color: #0b4ea2 !important;
    background: #0b4ea2 !important;
    color: #ffffff !important;
}

a.shmooz-button-primary:hover,
a.shmooz-button-primary:focus {
    border-color: #083d80 !important;
    background: #083d80 !important;
    color: #ffffff !important;
}

a.shmooz-button-secondary,
a.shmooz-button-secondary:link,
a.shmooz-button-secondary:visited {
    border-color: #0b4ea2 !important;
    background: #ffffff !important;
    color: #0b4ea2 !important;
}

a.shmooz-button-secondary:hover,
a.shmooz-button-secondary:focus {
    border-color: #0b4ea2 !important;
    background: #f4f8ff !important;
    color: #0b4ea2 !important;
}

.shmooz-profile-actions .shmooz-button {
    min-width: 128px;
}


.shmooz-compose-footer,
.shmooz-post-action-forms {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.shmooz-character-limit {
    color: #667085;
    font-size: 0.92rem;
}

.shmooz-post-action-forms {
    justify-content: flex-start;
}

.shmooz-post-action-forms form {
    margin: 0;
}

.shmooz-single-post {
    overflow: hidden;
}

.shmooz-post-root {
    border-bottom: 1px solid #e7edf4;
}

.shmooz-reply-form textarea {
    margin-top: 12px;
}

.shmooz-reply {
    background: #ffffff;
}

@media (max-width: 700px) {
    .shmooz-compose-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .shmooz-post-action-forms {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shmooz-post-action-forms .shmooz-button,
    .shmooz-post-action-forms .shmooz-delete-button {
        width: 100%;
    }
}


.shmooz-verified-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    padding: 3px 9px;
    border: 1px solid #35a853;
    border-radius: 999px;
    background: #effaf2;
    color: #188038;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

.shmooz-verified-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #21a447;
    color: #ffffff;
    font-size: 0.68rem;
    line-height: 1;
}

.shmooz-profile-name .shmooz-verified-badge,
.shmooz-post-header .shmooz-verified-badge,
.shmooz-suggestion .shmooz-verified-badge {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 0.7rem;
}

.shmooz-profile-name .shmooz-verified-icon,
.shmooz-post-header .shmooz-verified-icon,
.shmooz-suggestion .shmooz-verified-icon {
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
}

.shmooz-profile-bio-prompt {
    color: #667085;
    font-style: italic;
}

.shmooz-settings-card {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.shmooz-settings-field {
    margin-top: 24px;
}

.shmooz-settings-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
}

.shmooz-settings-field textarea {
    min-height: 150px;
}

.shmooz-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.shmooz-success-notice {
    border: 1px solid #35a853;
    background: #effaf2;
    color: #188038;
}


.shmooz-settings-card {
    max-width: 920px;
    padding: 32px;
}

.shmooz-settings-card h1 {
    margin-bottom: 12px;
}

.shmooz-settings-field textarea {
    width: 100%;
    min-height: 220px;
    padding: 16px 18px;
    border: 2px solid #b8c7d9;
    border-radius: 12px;
    background: #ffffff;
    font-size: 1rem;
    line-height: 1.55;
    resize: vertical;
}

.shmooz-settings-field textarea:focus {
    border-color: #0b7a8f;
    outline: 3px solid rgba(11, 122, 143, 0.14);
    outline-offset: 1px;
}

.shmooz-bio-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.shmooz-bio-meta p {
    margin: 0;
}

.shmooz-character-counter {
    color: #0b4ea2;
    font-weight: 700;
}

.shmooz-settings-actions {
    margin-top: 26px;
}

@media (max-width: 700px) {
    .shmooz-settings-card {
        padding: 22px;
    }

    .shmooz-settings-field textarea {
        min-height: 190px;
    }

    .shmooz-bio-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* SHMOOZ compact application navigation */
.shmooz-quick-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 12px;
}

.shmooz-quick-nav-profile {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
}

.shmooz-quick-nav-link,
.shmooz-quick-nav-link:link,
.shmooz-quick-nav-link:visited {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #cdd8e6;
    border-radius: 12px;
    background: #ffffff;
    color: #0b4ea2;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.04);
}

.shmooz-quick-nav-link:hover,
.shmooz-quick-nav-link:focus,
.shmooz-quick-nav-link.is-active {
    border-color: #0b4ea2;
    background: #edf5ff;
    color: #083d80;
    outline: none;
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.12);
}

.shmooz-quick-nav-link svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shmooz-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.shmooz-profile-header-card {
    position: relative;
}

.shmooz-edit-profile-link,
.shmooz-edit-profile-link:link,
.shmooz-edit-profile-link:visited {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #cdd8e6;
    border-radius: 9px;
    background: #ffffff;
    color: #0b4ea2;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.shmooz-edit-profile-link:hover,
.shmooz-edit-profile-link:focus {
    border-color: #0b4ea2;
    background: #edf5ff;
    color: #083d80;
    outline: none;
}

.shmooz-edit-profile-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shmooz-profile-header-card .shmooz-profile-header-main {
    padding-right: 120px;
}

@media (max-width: 700px) {
    .shmooz-quick-nav {
        justify-content: center;
    }

    .shmooz-edit-profile-link {
        position: static;
        margin: 0 0 16px auto;
    }

    .shmooz-profile-header-card .shmooz-profile-header-main {
        padding-right: 0;
    }
}


/* SHMOOZ list pages: Bookmarks and Notifications */
.shmooz-list-page {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

.shmooz-list-page-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 26px 28px;
    border-bottom: 1px solid #e7edf4;
}

.shmooz-list-page-header h1 {
    margin: 0 0 7px;
}

.shmooz-list-page-header p {
    margin: 0;
    color: #667085;
}

.shmooz-bookmark-post {
    border-bottom: 1px solid #e7edf4;
}

.shmooz-bookmark-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.shmooz-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b4ea2;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.shmooz-link-button:hover,
.shmooz-link-button:focus {
    text-decoration: underline;
}

.shmooz-button-compact {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.88rem;
}

.shmooz-notification-list {
    display: block;
}

.shmooz-notification {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid #e7edf4;
    background: #ffffff;
}

.shmooz-notification:last-child {
    border-bottom: 0;
}

.shmooz-notification.is-unread {
    background: #f4f9ff;
}

.shmooz-notification-photo {
    width: 52px;
    height: 52px;
    box-sizing: border-box;
    border: 1px solid #d8e1ec;
    object-fit: cover;
}

.shmooz-notification-symbol {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf5ff;
    color: #0b4ea2;
    font-size: 1rem;
}

.shmooz-notification-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.shmooz-notification-content p {
    margin: 6px 0;
}

.shmooz-notification-content time {
    color: #667085;
    font-size: 0.84rem;
}

.shmooz-unread-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #0b4ea2;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

.shmooz-quick-nav-link {
    position: relative;
}

.shmooz-quick-nav-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    box-sizing: border-box;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #b42318;
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 15px;
    text-align: center;
}

@media (max-width: 700px) {
    .shmooz-list-page-header {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .shmooz-notification {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 18px 20px;
    }

    .shmooz-notification > form {
        grid-column: 1 / -1;
    }

    .shmooz-notification > form .shmooz-button {
        width: 100%;
    }

    .shmooz-notification-photo,
    .shmooz-notification-symbol {
        width: 44px;
        height: 44px;
    }

    .shmooz-bookmark-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Compact Follow, Mute and Block controls */
.shmooz-profile-actions-compact {
    gap: 8px;
    margin-top: 18px;
}

.shmooz-profile-actions-compact form {
    margin: 0;
}

.shmooz-profile-actions-compact .shmooz-relationship-button {
    min-width: 82px;
    height: 36px;
    min-height: 36px;
    padding: 0 13px;
    border-width: 1px;
    border-radius: 9px;
    font-size: 0.86rem;
}

@media (max-width: 700px) {
    .shmooz-profile-actions-compact {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .shmooz-profile-actions-compact .shmooz-relationship-button {
        width: auto;
    }
}


/* Clickable relationship counts */
.shmooz-profile-page-counts a,
.shmooz-profile-page-counts a:link,
.shmooz-profile-page-counts a:visited {
    color: inherit;
    text-decoration: none;
}

.shmooz-profile-page-counts a:hover,
.shmooz-profile-page-counts a:focus {
    color: #0b4ea2;
    text-decoration: underline;
}

.shmooz-profile-counts a,
.shmooz-profile-counts a:link,
.shmooz-profile-counts a:visited {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.shmooz-profile-counts a:hover,
.shmooz-profile-counts a:focus {
    color: #0b4ea2;
    text-decoration: underline;
}

/* Followers and Following page */
.shmooz-connections-page {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
}

.shmooz-connections-header {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: space-between;
    padding: 26px 28px 0;
    border-bottom: 1px solid #e7edf4;
}

.shmooz-connections-header h1 {
    margin: 8px 0 2px;
}

.shmooz-connections-header p {
    margin: 0 0 18px;
    color: #667085;
}

.shmooz-connections-back {
    font-size: 0.9rem;
    font-weight: 700;
}

.shmooz-connections-tabs {
    display: flex;
    gap: 8px;
}

.shmooz-connections-tabs a {
    padding: 12px 16px;
    border-bottom: 3px solid transparent;
    color: #667085;
    font-weight: 700;
    text-decoration: none;
}

.shmooz-connections-tabs a:hover,
.shmooz-connections-tabs a:focus,
.shmooz-connections-tabs a.is-active {
    border-bottom-color: #0b4ea2;
    color: #0b4ea2;
}

.shmooz-connection-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid #e7edf4;
}

.shmooz-connection-card:last-child {
    border-bottom: 0;
}

.shmooz-connection-photo {
    width: 68px;
    height: 68px;
    box-sizing: border-box;
    border: 1px solid #d8e1ec;
    object-fit: cover;
}

.shmooz-connection-details h2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
    font-size: 1.08rem;
}

.shmooz-connection-details h2 a {
    color: #0b4ea2;
    text-decoration: none;
}

.shmooz-connection-details h2 a:hover,
.shmooz-connection-details h2 a:focus {
    text-decoration: underline;
}

.shmooz-connection-details .shmooz-handle {
    margin: 3px 0 8px;
}

.shmooz-connection-bio {
    margin: 0;
    line-height: 1.5;
}

#profile-card {
    scroll-margin-top: 20px;
}

@media (max-width: 700px) {
    .shmooz-connections-header {
        align-items: stretch;
        flex-direction: column;
        padding: 22px 22px 0;
    }

    .shmooz-connections-tabs {
        width: 100%;
    }

    .shmooz-connections-tabs a {
        flex: 1;
        text-align: center;
    }

    .shmooz-connection-card {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 18px 20px;
    }

    .shmooz-connection-photo {
        width: 52px;
        height: 52px;
    }
}


/* Relationship controls on Followers and Following lists */
.shmooz-connection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.shmooz-connection-actions form {
    margin: 0;
}

.shmooz-connection-action-button {
    min-width: 76px;
    height: 34px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.82rem;
}

@media (max-width: 700px) {
    .shmooz-connection-actions {
        gap: 7px;
    }

    .shmooz-connection-action-button {
        min-width: 70px;
    }
}


/* Mobile profile correction */
@media (max-width: 700px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .shmooz-profile-page {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 18px 14px 36px;
    }

    .shmooz-profile-header-card {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 18px;
        padding: 18px;
        border-radius: 14px;
    }

    .shmooz-profile-header-main {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
    }

    .shmooz-profile-page-photo {
        width: 82px;
        height: 82px;
        min-width: 0;
        flex: none;
    }

    .shmooz-profile-page-photo.shmooz-company-logo {
        padding: 7px;
        border-radius: 12px;
    }

    .shmooz-profile-heading {
        min-width: 0;
    }

    .shmooz-profile-heading h1 {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        align-items: center;
        margin: 0 0 4px;
        font-size: 1.55rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .shmooz-profile-heading .shmooz-verified-badge {
        flex: 0 0 auto;
        font-size: 0.68rem;
    }

    .shmooz-profile-heading .shmooz-handle {
        font-size: 0.94rem;
        overflow-wrap: anywhere;
    }

    .shmooz-profile-page-bio {
        max-width: none;
        margin-top: 16px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .shmooz-profile-page-counts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .shmooz-profile-page-counts span,
    .shmooz-profile-page-counts a {
        display: block;
        min-width: 0;
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .shmooz-profile-page-counts strong {
        display: block;
        margin-bottom: 2px;
        font-size: 1.05rem;
    }

    .shmooz-profile-page-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        margin-top: 18px;
    }

    .shmooz-profile-page-links a {
        min-width: 0;
        font-size: 0.92rem;
        overflow-wrap: anywhere;
    }

    .shmooz-profile-actions-compact {
        flex-wrap: wrap;
    }

    .shmooz-profile-timeline {
        border-radius: 14px;
    }
}

@media (max-width: 420px) {
    .shmooz-profile-header-main {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .shmooz-profile-page-photo {
        width: 72px;
        height: 72px;
    }

    .shmooz-profile-heading h1 {
        font-size: 1.35rem;
    }

    .shmooz-profile-page-counts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .shmooz-profile-page-counts span,
    .shmooz-profile-page-counts a {
        font-size: 0.82rem;
    }

    .shmooz-profile-page-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================
   Kvell and Kvetch reply controls
   ========================================================== */

.shmooz-reply-sentiment-actions,
.article-shmooz-reply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.shmooz-kvell-button,
.shmooz-kvell-button:visited,
.article-shmooz-kvell,
.article-shmooz-kvell:visited {
    border-color: #188038 !important;
    background: #188038 !important;
    color: #ffffff !important;
}

.shmooz-kvell-button:hover,
.shmooz-kvell-button:focus,
.article-shmooz-kvell:hover,
.article-shmooz-kvell:focus {
    border-color: #11672d !important;
    background: #11672d !important;
    color: #ffffff !important;
}

.shmooz-kvetch-button,
.shmooz-kvetch-button:visited,
.article-shmooz-kvetch,
.article-shmooz-kvetch:visited {
    border-color: #b42318 !important;
    background: #b42318 !important;
    color: #ffffff !important;
}

.shmooz-kvetch-button:hover,
.shmooz-kvetch-button:focus,
.article-shmooz-kvetch:hover,
.article-shmooz-kvetch:focus {
    border-color: #8f1c14 !important;
    background: #8f1c14 !important;
    color: #ffffff !important;
}

.shmooz-reply.is-kvell {
    border-left: 5px solid #35a853;
    background: #f4fbf6;
}

.shmooz-reply.is-kvetch {
    border-left: 5px solid #d92d20;
    background: #fff6f5;
}

.shmooz-reply-sentiment-badge,
.article-shmooz-reply-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.shmooz-reply.is-kvell .shmooz-reply-sentiment-badge,
.article-shmooz-reply.is-kvell .article-shmooz-reply-type {
    background: #e8f7ec;
    color: #188038;
}

.shmooz-reply.is-kvetch .shmooz-reply-sentiment-badge,
.article-shmooz-reply.is-kvetch .article-shmooz-reply-type {
    background: #feeceb;
    color: #b42318;
}

/* SHMOOZ conversation embedded on article pages */
.article-shmooz-conversation {
    clear: both;
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.article-shmooz-conversation-header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e7edf4;
}

.article-shmooz-conversation-header h2,
.article-shmooz-conversation-header p {
    margin: 0;
}

.article-shmooz-conversation-header p {
    margin-top: 6px;
    color: #667085;
}

.article-shmooz-full-link {
    flex: 0 0 auto;
    font-weight: 700;
}

.article-shmooz-root-post,
.article-shmooz-reply-form,
.article-shmooz-replies {
    padding: 22px 24px;
    border-bottom: 1px solid #e7edf4;
}

.article-shmooz-root-heading,
.article-shmooz-reply header {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.article-shmooz-root-heading > a,
.article-shmooz-reply header > a {
    font-weight: 800;
}

.article-shmooz-meta {
    color: #667085;
    font-size: 0.86rem;
}

.article-shmooz-root-body {
    margin-top: 12px;
    font-size: 1.04rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.article-shmooz-summary-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
    color: #667085;
    font-size: 0.9rem;
}

.article-shmooz-reply-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.article-shmooz-reply-form textarea {
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 2px solid #b8c7d9;
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
    resize: vertical;
}

.article-shmooz-sentiment-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 2px solid;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.article-shmooz-replies h3 {
    margin: 0 0 14px;
}

.article-shmooz-reply {
    margin-top: 12px;
    padding: 15px 16px;
    border: 1px solid #e1e8f0;
    border-left-width: 5px;
    border-radius: 10px;
}

.article-shmooz-reply.is-kvell {
    border-left-color: #35a853;
    background: #f4fbf6;
}

.article-shmooz-reply.is-kvetch {
    border-left-color: #d92d20;
    background: #fff6f5;
}

.article-shmooz-reply > div {
    margin-top: 8px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.article-shmooz-notice,
.article-shmooz-login-prompt,
.article-shmooz-empty {
    margin: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #e7edf4;
}

.article-shmooz-success {
    background: #effaf2;
    color: #188038;
}

.article-shmooz-error {
    background: #fff4f4;
    color: #9b1c1c;
}

@media (max-width: 700px) {
    .article-shmooz-conversation-header {
        flex-direction: column;
    }

    .article-shmooz-full-link {
        flex: none;
    }

    .article-shmooz-root-post,
    .article-shmooz-reply-form,
    .article-shmooz-replies {
        padding: 18px;
    }

    .article-shmooz-reply-actions,
    .shmooz-reply-sentiment-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .article-shmooz-sentiment-button,
    .shmooz-reply-sentiment-actions .shmooz-button {
        width: 100%;
    }
}

.shmooz-feed-kvell-link {
    color: #188038 !important;
}

.shmooz-feed-kvetch-link {
    color: #b42318 !important;
}

/* Final compact-navigation and badge safeguards */
.shmooz-quick-nav-link,
.shmooz-quick-nav-link:link,
.shmooz-quick-nav-link:visited {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    overflow: hidden;
}

.shmooz-quick-nav-link svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    min-height: 23px !important;
    max-width: 23px !important;
    max-height: 23px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

.shmooz-verified-badge {
    display: inline-flex !important;
    min-height: 20px !important;
    align-items: center !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    padding: 2px 7px !important;
    border: 1px solid #35a853 !important;
    border-radius: 999px !important;
    background: #effaf2 !important;
    color: #188038 !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.shmooz-verified-icon {
    display: inline-flex !important;
    width: 14px !important;
    height: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #21a447 !important;
    color: #ffffff !important;
    font-size: 0.6rem !important;
    line-height: 1 !important;
}

/* ==========================================================
   SHMOOZ full conversation page
   ========================================================== */

.shmooz-single-post .shmooz-panel-section {
    padding: 24px;
}

.shmooz-single-post .shmooz-panel-section > h2 {
    margin: 0 0 18px;
}

.shmooz-single-post .shmooz-reply-form {
    margin-top: 0;
}

.shmooz-single-post .shmooz-reply-form textarea,
.shmooz-inline-reply-form textarea {
    display: block;
    width: 100%;
    min-height: 132px;
    box-sizing: border-box;
    margin: 0;
    padding: 14px 16px;
    border: 2px solid #b8c7d9;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
}

.shmooz-single-post .shmooz-reply-form textarea:focus,
.shmooz-inline-reply-form textarea:focus {
    border-color: #0b7a8f;
    outline: 3px solid rgba(11, 122, 143, 0.14);
    outline-offset: 1px;
}

.shmooz-single-post .shmooz-reply-sentiment-actions,
.shmooz-inline-reply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.shmooz-single-post .shmooz-kvell-button,
.shmooz-single-post .shmooz-kvell-button:visited,
.shmooz-inline-reply-form .shmooz-kvell-button,
.shmooz-inline-reply-form .shmooz-kvell-button:visited {
    border-color: #188038 !important;
    background: #188038 !important;
    color: #ffffff !important;
}

.shmooz-single-post .shmooz-kvell-button:hover,
.shmooz-single-post .shmooz-kvell-button:focus,
.shmooz-inline-reply-form .shmooz-kvell-button:hover,
.shmooz-inline-reply-form .shmooz-kvell-button:focus {
    border-color: #11672d !important;
    background: #11672d !important;
    color: #ffffff !important;
}

.shmooz-single-post .shmooz-kvetch-button,
.shmooz-single-post .shmooz-kvetch-button:visited,
.shmooz-inline-reply-form .shmooz-kvetch-button,
.shmooz-inline-reply-form .shmooz-kvetch-button:visited {
    border-color: #b42318 !important;
    background: #b42318 !important;
    color: #ffffff !important;
}

.shmooz-single-post .shmooz-kvetch-button:hover,
.shmooz-single-post .shmooz-kvetch-button:focus,
.shmooz-inline-reply-form .shmooz-kvetch-button:hover,
.shmooz-inline-reply-form .shmooz-kvetch-button:focus {
    border-color: #8f1c14 !important;
    background: #8f1c14 !important;
    color: #ffffff !important;
}

.shmooz-thread-replies {
    background: #ffffff;
}

.shmooz-thread-reply {
    position: relative;
}

.shmooz-thread-reply.is-nested {
    margin-left: 58px;
    border-left-width: 5px;
}

.shmooz-thread-reply.is-nested::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -30px;
    width: 2px;
    background: #d8e1ec;
    content: "";
}

.shmooz-reply-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.shmooz-reply-link-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0b4ea2;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.shmooz-reply-link-button:hover,
.shmooz-reply-link-button:focus {
    color: #083d80;
    text-decoration: underline;
    outline: none;
}

.shmooz-inline-reply-form {
    display: none;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    background: #f8fafc;
}

.shmooz-inline-reply-form.is-open {
    display: block;
}

.shmooz-inline-reply-context {
    margin: 0 0 10px;
    color: #667085;
    font-size: 0.88rem;
}

.shmooz-inline-reply-form textarea {
    min-height: 104px;
}

.shmooz-inline-reply-actions .shmooz-button {
    min-width: 112px;
    height: 42px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
}

.shmooz-thread-reply-anchor {
    scroll-margin-top: 20px;
}

@media (max-width: 700px) {
    .shmooz-single-post .shmooz-panel-section {
        padding: 18px;
    }

    .shmooz-thread-reply.is-nested {
        margin-left: 20px;
    }

    .shmooz-thread-reply.is-nested::before {
        left: -12px;
    }

    .shmooz-single-post .shmooz-reply-sentiment-actions,
    .shmooz-inline-reply-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shmooz-single-post .shmooz-reply-sentiment-actions .shmooz-button,
    .shmooz-inline-reply-actions .shmooz-button {
        width: 100%;
    }
}

/* SHMOOZ article preview thumbnail */
.shmooz-article-preview {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 180px;
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: start;
    width: 100%;
    margin-top: 10px;
    text-align: left !important;
}

.shmooz-article-preview.is-ltr .shmooz-article-thumbnail {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.shmooz-article-preview.is-rtl {
    grid-template-columns: 180px minmax(0, 1fr);
    text-align: right !important;
}

.shmooz-article-preview.is-rtl .shmooz-article-thumbnail {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.shmooz-article-preview .shmooz-post-body {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0 0 10px !important;
    padding: 0 !important;
    text-align: left !important;
    white-space: normal !important;
}

.shmooz-article-preview.is-rtl .shmooz-post-body {
    grid-column: 2;
    text-align: right !important;
}

.shmooz-article-preview .shmooz-article-link,
.shmooz-article-preview > p {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-wrap: anywhere;
    text-align: left !important;
}

.shmooz-article-preview.is-rtl .shmooz-article-link,
.shmooz-article-preview.is-rtl > p {
    grid-column: 2;
    text-align: right !important;
}

.shmooz-article-thumbnail {
    display: block;
    width: 180px;
    max-width: 100%;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f7fa;
    float: none !important;
}

.shmooz-article-thumbnail img {
    display: block;
    width: 100%;
    height: 118px;
    object-fit: cover;
}

@media (max-width: 520px) {
    .shmooz-article-preview {
        grid-template-columns: minmax(0, 1fr) 132px;
        column-gap: 12px;
    }

    .shmooz-article-preview.is-rtl {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .shmooz-article-thumbnail {
        width: 132px;
    }

    .shmooz-article-thumbnail img {
        height: 92px;
    }
}

/* Mobile SHMOOZ feed and article-preview correction */
@media (max-width: 760px) {
    .shmooz-centre > .shmooz-panel {
        width: 100%;
        box-sizing: border-box;
    }

    .shmooz-post {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 16px 14px;
    }

    .shmooz-post > div:last-child {
        min-width: 0;
    }

    .shmooz-post-photo {
        width: 42px;
        height: 42px;
    }

    .shmooz-post-header {
        min-width: 0;
    }

    .shmooz-article-preview,
    .shmooz-article-preview.is-ltr,
    .shmooz-article-preview.is-rtl {
        display: flow-root !important;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
        text-align: left !important;
    }

    .shmooz-article-preview.is-rtl {
        text-align: right !important;
    }

    .shmooz-article-preview .shmooz-article-thumbnail,
    .shmooz-article-preview.is-ltr .shmooz-article-thumbnail {
        display: block;
        float: right !important;
        width: 118px;
        max-width: 42%;
        margin: 0 0 10px 12px !important;
    }

    .shmooz-article-preview.is-rtl .shmooz-article-thumbnail {
        float: left !important;
        margin: 0 12px 10px 0 !important;
    }

    .shmooz-article-preview .shmooz-article-thumbnail img {
        width: 100%;
        height: 82px;
        object-fit: cover;
    }

    .shmooz-article-preview .shmooz-post-body,
    .shmooz-article-preview .shmooz-article-link,
    .shmooz-article-preview > p {
        display: block !important;
        width: auto !important;
        min-width: 0;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
        text-align: left !important;
    }

    .shmooz-article-preview.is-rtl .shmooz-post-body,
    .shmooz-article-preview.is-rtl .shmooz-article-link,
    .shmooz-article-preview.is-rtl > p {
        text-align: right !important;
    }

    .shmooz-post-actions {
        clear: both;
        gap: 10px 14px;
    }
}

/* SHMOOZ central live search */
.shmooz-search-panel {
    margin-bottom: 16px;
}

.shmooz-search-panel .shmooz-panel-section {
    padding: 16px 20px;
}

.shmooz-live-search {
    display: block;
}

.shmooz-live-search input[type="search"] {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 13px 16px;
    border: 2px solid #b8c7d9;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    font-size: 17px;
}

.shmooz-live-search input[type="search"]:focus {
    border-color: #0b7a8f;
    outline: 3px solid rgba(11, 122, 143, 0.14);
    outline-offset: 1px;
}

@media (max-width: 760px) {
    .shmooz-search-panel {
        margin-bottom: 12px;
    }

    .shmooz-search-panel .shmooz-panel-section {
        padding: 14px;
    }

    .shmooz-live-search input[type="search"] {
        min-height: 50px;
        font-size: 16px;
    }

    .shmooz-right > .shmooz-panel {
        overflow: hidden;
        border: 1px solid #d8e1ec;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    }

    .shmooz-right > .shmooz-panel > .shmooz-panel-section:first-child {
        padding: 18px;
        border-bottom: 0;
    }

    .shmooz-right .shmooz-suggestion {
        margin-bottom: 12px;
    }
}


/* SHMOOZ shared interaction overlays */
html.shmooz-modal-open,
html.shmooz-modal-open body {
    overflow: hidden;
}

.shmooz-modal[hidden] {
    display: none !important;
}

.shmooz-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.shmooz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.shmooz-modal-dialog {
    position: relative;
    display: flex;
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d8e1ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.32);
}

.shmooz-modal-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 18px;
    border-bottom: 1px solid #e7edf4;
}

.shmooz-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.shmooz-modal-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    min-width: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #111827;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.shmooz-modal-close:hover,
.shmooz-modal-close:focus {
    background: #eef4fb;
    outline: none;
}

.shmooz-modal-body {
    min-height: 0;
    overflow: auto;
    padding: 20px;
}

.shmooz-modal-form textarea {
    width: 100%;
    min-height: 150px;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 14px;
    border: 2px solid #b8c7d9;
    border-radius: 12px;
    font: inherit;
    resize: vertical;
}

.shmooz-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.shmooz-modal-original {
    max-height: 280px;
    overflow: auto;
    border: 1px solid #e7edf4;
    border-radius: 12px;
    background: #f8fbfe;
}

.shmooz-modal-original .shmooz-post {
    border-bottom: 0;
}

.shmooz-modal-error {
    margin: 14px 0 0;
    color: #9b1c1c;
    font-weight: 700;
}

.shmooz-modal-loading {
    padding: 36px 20px;
    color: #667085;
    text-align: center;
}

.shmooz-article-modal .shmooz-modal-dialog {
    width: min(1180px, 100%);
    height: min(92vh, 980px);
}

.shmooz-article-modal .shmooz-modal-body {
    display: flex;
    min-height: 0;
    flex: 1;
    padding: 0;
}

.shmooz-reader-wrap {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.shmooz-reader-frame {
    width: 100%;
    min-height: 0;
    flex: 1;
    border: 0;
    background: #ffffff;
}

.shmooz-reader-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid #e7edf4;
    background: #ffffff;
}

.shmooz-replies-modal .shmooz-modal-body {
    padding: 0;
}

.shmooz-replies-modal .shmooz-post:last-child {
    border-bottom: 0;
}

@media (max-width: 700px) {
    .shmooz-modal {
        display: block;
        padding: 0;
    }

    .shmooz-modal-dialog,
    .shmooz-article-modal .shmooz-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border: 0;
        border-radius: 0;
    }

    .shmooz-modal-header {
        flex: 0 0 auto;
    }

    .shmooz-modal-body {
        flex: 1;
        padding: 16px;
    }

    .shmooz-modal-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .shmooz-modal-actions .shmooz-button {
        width: 100%;
        min-width: 0;
    }

    .shmooz-modal-original {
        max-height: 34vh;
    }

    .shmooz-reader-footer .shmooz-button {
        width: 100%;
    }
}


/* SHMOOZ owner deletion */
.shmooz-delete-form {
    display: inline-flex;
    margin: 0;
}

/* Compact text deletion used in feeds and reply toolbars. */
.shmooz-delete-link,
button.shmooz-delete-action {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #b42318 !important;
    font: inherit !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
}

.shmooz-delete-link:hover,
.shmooz-delete-link:focus,
button.shmooz-delete-action:hover,
button.shmooz-delete-action:focus {
    border: 0 !important;
    background: transparent !important;
    color: #8f1c14 !important;
    text-decoration: underline !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Full conversation-page deletion control. */
.shmooz-delete-button {
    display: inline-flex;
    min-width: 118px;
    height: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 24px;
    border: 2px solid #b42318;
    border-radius: 12px;
    background: #ffffff;
    color: #b42318;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.shmooz-delete-button:hover,
.shmooz-delete-button:focus {
    border-color: #8f1c14;
    background: #fff4f4;
    color: #8f1c14;
    text-decoration: none;
    outline: none;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.shmooz-delete-button:active {
    transform: translateY(1px);
}

.shmooz-deleted-post {
    color: #667085;
    font-style: italic;
}

.shmooz-post-actions .shmooz-delete-form {
    align-items: center;
}

/* ==========================================================
   SHMOOZ contextual action menu
   ========================================================== */

.shmooz-post {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.shmooz-centre > .shmooz-panel,
.shmooz-profile-timeline,
.shmooz-profile-page .shmooz-panel {
    overflow: visible;
}

.shmooz-profile-page .shmooz-post:last-child {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.shmooz-action-menu {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    box-sizing: border-box;
    margin: 8px 0 4px;
    z-index: 2;
}

.shmooz-action-menu-trigger {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid #0b4ea2 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #0b4ea2 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.shmooz-action-menu-trigger:hover,
.shmooz-action-menu-trigger:focus {
    border-color: #083d80 !important;
    background: #edf5ff !important;
    color: #083d80 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.12) !important;
}

.shmooz-action-menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 10002;
    width: min(230px, calc(100vw - 32px));
    max-height: min(440px, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.2);
    opacity: 1;
    isolation: isolate;
    -webkit-overflow-scrolling: touch;
}

.shmooz-action-menu-panel[hidden] {
    display: none !important;
}

.shmooz-action-menu-panel a,
.shmooz-action-menu-panel button {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: auto !important;
    align-items: center;
    justify-content: flex-start !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 7px 11px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
    font-family: inherit !important;
    font-size: 0.80rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none !important;
}

.shmooz-action-menu-panel a:hover,
.shmooz-action-menu-panel a:focus,
.shmooz-action-menu-panel button:hover,
.shmooz-action-menu-panel button:focus {
    background: #edf5ff !important;
    color: #0b4ea2 !important;
    outline: none !important;
}

.shmooz-action-menu-panel form {
    margin: 0;
}

.shmooz-action-menu-panel .is-danger {
    color: #b42318 !important;
}

.shmooz-action-menu-panel .is-danger:hover,
.shmooz-action-menu-panel .is-danger:focus {
    background: #fff4f4 !important;
    color: #8f1c14 !important;
}

.shmooz-action-menu-separator {
    height: 1px;
    background: #e7edf4;
}

.shmooz-post.shmooz-menu-open {
    z-index: 10000;
    isolation: isolate;
}

.shmooz-post.shmooz-menu-open .shmooz-action-menu {
    z-index: 10001;
}

.shmooz-report-label {
    display: block;
    margin-bottom: 18px;
    font-weight: 700;
}

.shmooz-report-label > span {
    display: block;
    margin-bottom: 8px;
}

.shmooz-report-label select,
.shmooz-report-label textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 2px solid #b8c7d9;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font: inherit;
}

.shmooz-report-label textarea {
    min-height: 130px;
    resize: vertical;
}

/* Owner deletion and compact action forms */

.shmooz-post-actions .shmooz-delete-form,
.shmooz-post-action-forms .shmooz-delete-form,
.shmooz-reply-toolbar form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.shmooz-relationship-button[aria-busy="true"] {
    opacity: 0.65;
    cursor: wait;
}

/* ==========================================================
   SHMOOZ image composer and post galleries
   ========================================================== */

.shmooz-compose-media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-top: 12px;
}

.shmooz-image-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.shmooz-image-picker {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 8px 14px;
    border: 2px solid #0b4ea2;
    border-radius: 10px;
    background: #ffffff;
    color: #0b4ea2;
    font-weight: 700;
    cursor: pointer;
}

.shmooz-image-picker:hover,
.shmooz-image-picker:focus-within {
    background: #edf5ff;
    box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.12);
}

.shmooz-image-picker svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shmooz-image-guidance {
    color: #667085;
    font-size: 0.86rem;
}

.shmooz-compose-image-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.shmooz-compose-image-preview[hidden] {
    display: none !important;
}

.shmooz-compose-image-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid #d8e1ec;
    border-radius: 10px;
    background: #f4f7fa;
}

.shmooz-compose-image-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shmooz-compose-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(17, 24, 39, 0.82) !important;
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.shmooz-image-grid {
    display: grid;
    gap: 4px;
    width: 100%;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 14px;
    background: #eef2f6;
}

.shmooz-image-grid-1 {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 560px);
    margin-right: auto;
    margin-left: auto;
    background: #f7f9fc;
}

.shmooz-image-grid-2,
.shmooz-image-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shmooz-image-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.shmooz-image-grid-3 .shmooz-image-item:first-child {
    grid-row: 1 / span 2;
}

.shmooz-image-item {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #e7edf4;
}

.shmooz-image-grid-1 .shmooz-image-item {
    max-height: 520px;
    background: #f7f9fc;
}

.shmooz-image-grid-2 .shmooz-image-item,
.shmooz-image-grid-4 .shmooz-image-item {
    aspect-ratio: 1;
}

.shmooz-image-grid-3 .shmooz-image-item {
    aspect-ratio: 1;
}

.shmooz-image-grid-3 .shmooz-image-item:first-child {
    aspect-ratio: auto;
}

.shmooz-image-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.shmooz-image-grid-1 .shmooz-image-item img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
    background: #f7f9fc;
}

.shmooz-modal-original .shmooz-action-menu {
    display: none !important;
}

/* Profile mobile rules moved from profile.php */

@media (max-width: 700px) {
    .shmooz-profile-page {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 16px 12px 32px;
    }

    .shmooz-profile-header-card {
        width: 100%;
        box-sizing: border-box;
        padding: 18px 16px;
        border-radius: 14px;
    }

    .shmooz-profile-header-main {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        padding-right: 0 !important;
    }

    .shmooz-profile-page-photo {
        width: 76px !important;
        height: 76px !important;
        min-width: 76px;
        max-width: 76px;
        object-fit: cover;
    }

    .shmooz-profile-page-photo.shmooz-company-logo {
        padding: 6px;
        border-radius: 12px;
    }

    .shmooz-profile-heading {
        min-width: 0;
    }

    .shmooz-profile-identity-row {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        align-items: center;
        min-width: 0;
    }

    .shmooz-profile-identity-row h1 {
        min-width: 0;
        margin: 0;
        font-size: 1.42rem !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere;
    }

    .shmooz-profile-identity-row .shmooz-verified-badge {
        flex: 0 0 auto;
        font-size: 0.68rem;
    }

    .shmooz-profile-heading .shmooz-handle {
        margin-top: 5px;
        font-size: 0.93rem !important;
        overflow-wrap: anywhere;
    }

    .shmooz-profile-page-bio {
        margin: 16px 0 0;
        font-size: 0.98rem !important;
        line-height: 1.48 !important;
    }

    .shmooz-profile-page-counts {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .shmooz-profile-page-counts span,
    .shmooz-profile-page-counts a {
        min-width: 0;
        font-size: 0.84rem !important;
        line-height: 1.25;
        text-decoration: none;
    }

    .shmooz-profile-page-counts strong {
        display: block;
        margin-bottom: 2px;
        font-size: 1.02rem !important;
    }

    .shmooz-profile-page-links {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 9px;
        margin-top: 18px;
    }

    .shmooz-profile-external-link {
        display: block;
        width: 100%;
        min-width: 0;
        font-size: 0.92rem !important;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shmooz-edit-profile-link {
        position: static !important;
        width: fit-content;
        margin: 0 0 14px auto;
    }

    .shmooz-profile-actions-compact {
        flex-wrap: wrap;
    }

    .shmooz-profile-timeline {
        margin-top: 16px;
        border-radius: 14px;
    }

    .shmooz-action-menu {
        margin: 10px 0 6px;
    }

    .shmooz-action-menu-panel {
        width: min(230px, calc(100vw - 40px));
    }

    .shmooz-compose-image-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shmooz-image-item img {
        min-height: 150px;
    }

    .shmooz-image-grid-1 {
        width: 100%;
    }

    .shmooz-image-grid-1 .shmooz-image-item {
        max-height: none;
    }

    .shmooz-image-grid-1 .shmooz-image-item img {
        max-height: 70vh;
    }
}

@media (max-width: 390px) {
    .shmooz-profile-header-main {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
    }

    .shmooz-profile-page-photo {
        width: 68px !important;
        height: 68px !important;
        min-width: 68px;
        max-width: 68px;
    }

    .shmooz-profile-identity-row h1 {
        font-size: 1.27rem !important;
    }

    .shmooz-profile-page-bio {
        font-size: 0.94rem !important;
    }
}

/* ==========================================================
   Final owner-delete safeguards
   Keep feed/profile deletion as a red text action and the
   full conversation-page deletion as a red outlined button.
   ========================================================== */

.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-link,
.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-action,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-link,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-action,
.shmooz-post-actions form button.shmooz-delete-link,
.shmooz-post-actions form button.shmooz-delete-action {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #b42318 !important;
    font: inherit !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-link:hover,
.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-link:focus,
.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-link:focus-visible,
.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-action:hover,
.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-action:focus,
.shmooz-profile-page .shmooz-post-actions form button.shmooz-delete-action:focus-visible,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-link:hover,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-link:focus,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-link:focus-visible,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-action:hover,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-action:focus,
.shmooz-shell .shmooz-post-actions form button.shmooz-delete-action:focus-visible {
    border: 0 !important;
    background: transparent !important;
    color: #8f1c14 !important;
    text-decoration: underline !important;
    outline: none !important;
    box-shadow: none !important;
}

.shmooz-single-post .shmooz-post-action-forms form button.shmooz-delete-button {
    display: inline-flex !important;
    min-width: 118px !important;
    height: 48px !important;
    min-height: 48px !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 24px !important;
    border: 2px solid #b42318 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #b42318 !important;
    font: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.shmooz-single-post .shmooz-post-action-forms form button.shmooz-delete-button:hover,
.shmooz-single-post .shmooz-post-action-forms form button.shmooz-delete-button:focus,
.shmooz-single-post .shmooz-post-action-forms form button.shmooz-delete-button:focus-visible {
    border-color: #8f1c14 !important;
    background: #fff4f4 !important;
    color: #8f1c14 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12) !important;
}

@media (max-width: 700px) {
    .shmooz-single-post .shmooz-post-action-forms form,
    .shmooz-single-post .shmooz-post-action-forms form button.shmooz-delete-button {
        width: 100% !important;
    }
}

/* Force browsers to use the JDL light theme */
:root {
    color-scheme: only light;
}

html {
    color-scheme: only light;
    background: #ffffff !important;
}

body {
    background: #ffffff !important;
    color: #111111 !important;
}
