.kc-community {
    max-width: 980px;
    margin: 0 auto;
    font-family: inherit;
}

.kc-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 18px;
    margin: 16px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.kc-hero-card {
    background: linear-gradient(135deg, #f8f5ef, #ffffff);
}

.kc-card h2,
.kc-card h3,
.kc-card h4 {
    margin-top: 0;
}

.kc-create-group-form label,
.kc-update-cover-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

.kc-create-group-form input,
.kc-create-group-form textarea,
.kc-update-cover-form input,
.kc-create-post-form textarea,
.kc-chat-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    margin-top: 6px;
    box-sizing: border-box;
}

.kc-create-group-form textarea {
    min-height: 95px;
}

.kc-create-post-form textarea {
    min-height: 90px;
    resize: vertical;
}

.kc-community button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 700;
    background: #2d2d2d;
    color: #fff;
}

.kc-community button:hover {
    opacity: 0.88;
}

.kc-group-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.kc-group-list .kc-card {
    margin: 0;
}

.kc-group-card {
    overflow: hidden;
    padding: 0;
}

.kc-group-main {
    padding: 18px;
}

.kc-group-cover {
    min-height: 190px;
    background-size: cover;
    background-position: center;
    background-color: #f3f1ed;
    border-bottom: 1px solid #eee;
}

.kc-group-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-weight: 700;
}

.kc-meta {
    color: #666;
    font-size: 14px;
}

.kc-form-message {
    margin-top: 10px;
    font-weight: 700;
}

.kc-feed {
    border-top: 1px solid #ededed;
    margin-top: 18px;
    padding-top: 16px;
}


.kc-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.kc-feed-header h3 {
    margin: 0;
}

.kc-toggle-create-post {
    white-space: nowrap;
}

.kc-create-post-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.kc-cancel-create-post {
    background: #f6f6f6;
    color: #333;
}

.kc-create-post-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

.kc-post-list {
    display: grid;
    gap: 12px;
}

.kc-post {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 12px;
}

.kc-post-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1eee8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.kc-post-body {
    min-width: 0;
    flex: 1;
}

.kc-post-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 6px;
}

.kc-post-meta span {
    color: #777;
    font-size: 13px;
}

.kc-post-content {
    white-space: normal;
    overflow-wrap: anywhere;
}

.kc-locked-feed {
    border-top: 1px solid #ededed;
    margin-top: 18px;
    padding-top: 16px;
}

.kc-chat-panel {
    position: fixed;
    top: calc(var(--kc-panel-top, 0px) + 16px);
    right: 22px;
    bottom: 22px;
    width: min(420px, calc(100vw - 44px));
    max-height: calc(100dvh - var(--kc-panel-top, 0px) - 38px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    z-index: 9999;
}

.kc-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
}

.kc-chat-header button {
    margin-top: 0;
    padding: 7px 12px;
}

.kc-chat-messages {
    flex: 1;
    height: auto;
    min-height: 320px;
    overflow-y: auto;
    padding: 14px;
    background: #fbfbfb;
}

.kc-message {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.kc-message-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.kc-message-body {
    white-space: pre-wrap;
}

.kc-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e5e5;
}

.kc-chat-form input {
    margin-top: 0;
}

.kc-chat-form button {
    margin-top: 0;
    white-space: nowrap;
}

.kc-chat-only .kc-chat-messages {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
}

.kc-user-select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    margin-top: 6px;
    box-sizing: border-box;
}

.kc-admin-box {
    border-top: 1px solid #ededed;
    margin-top: 18px;
    padding-top: 14px;
}

.kc-admin-box-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.kc-admin-box-header .kc-meta {
    margin-bottom: 0;
}

.kc-toggle-group-admin {
    flex: 0 0 auto;
}

.kc-update-cover-form {
    background: #fbfbfb;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
}

.kc-pending-list {
    display: grid;
    gap: 8px;
}

.kc-pending-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 8px;
    background: #fbfbfb;
}

.kc-pending-row span {
    flex: 1;
    min-width: 130px;
}

.kc-pending-row button {
    margin-top: 0;
    padding: 7px 11px;
    font-size: 13px;
}

.kc-community button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .kc-group-cover {
        min-height: 140px;
    }

    .kc-chat-panel {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .kc-chat-form {
        flex-direction: column;
    }
}

.kc-create-group-form input[type="file"],
.kc-update-cover-form input[type="file"],
.kc-create-post-form input[type="file"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px dashed #bdbdbd;
    border-radius: 10px;
    background: #fff;
    margin-top: 6px;
    box-sizing: border-box;
}

.kc-file-label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

.kc-post-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.kc-post-images-count-1 {
    grid-template-columns: 1fr;
}

.kc-post-images a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #ededed;
}

.kc-post-image {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.kc-post-images-count-1 .kc-post-image {
    height: auto;
    max-height: 520px;
}

@media (max-width: 640px) {
    .kc-post-images {
        grid-template-columns: 1fr;
    }

    .kc-post-image {
        height: auto;
        max-height: 420px;
    }
}

.kc-section-title-card {
    padding: 14px 18px;
}

.kc-section-title-card h3 {
    margin-bottom: 4px;
}

.kc-group-directory-card {
    overflow: hidden;
    padding: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.kc-group-directory-card:hover,
.kc-group-directory-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    outline: none;
}

.kc-group-cover-directory {
    min-height: 150px;
}

.kc-view-group-button {
    margin-top: 8px;
}

.kc-group-detail-wrap {
    display: block;
}

.kc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: #666;
    flex-wrap: wrap;
}

.kc-breadcrumb button {
    margin-top: 0;
    background: #f1eee8;
    color: #222;
}

.kc-single-cover {
    min-height: 260px;
}

.kc-group-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.kc-group-title-row h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.kc-group-admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.kc-toggle-edit-group,
.kc-toggle-group-admin {
    margin-top: 0;
    flex: 0 0 auto;
}

.kc-edit-group-form {
    background: #fbfbfb;
    border: 1px solid #ededed;
    border-radius: 14px;
    padding: 12px;
    margin: 16px 0;
}

.kc-edit-group-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

.kc-edit-group-form input,
.kc-edit-group-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    margin-top: 6px;
    box-sizing: border-box;
}

.kc-edit-group-form textarea {
    min-height: 100px;
    resize: vertical;
}

.kc-edit-group-form input[type="file"] {
    border: 1px dashed #bdbdbd;
    background: #fff;
}

.kc-group-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .kc-single-cover {
        min-height: 170px;
    }

    .kc-group-title-row {
        display: block;
    }

    .kc-group-admin-actions {
        margin-top: 10px;
    }
}

.kc-cover-controls {
    margin-top: 12px;
    border: 1px solid #ededed;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.kc-cover-controls select,
.kc-cover-controls input[type="range"] {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}

.kc-cover-controls select {
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
}

.kc-cover-position-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.kc-group-cover {
    background-repeat: no-repeat;
}

.kc-post-images a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    max-height: 420px;
}

.kc-post-image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
}

.kc-post-images-count-1 a {
    min-height: 0;
    max-height: 620px;
}

.kc-post-images-count-1 .kc-post-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 620px;
}

@media (max-width: 640px) {
    .kc-cover-position-grid {
        grid-template-columns: 1fr;
    }

    .kc-post-images a {
        min-height: 0;
        max-height: 480px;
    }

    .kc-post-image {
        height: auto;
        max-height: 480px;
    }
}

.kc-feed-header .kc-meta {
    margin: 0;
}

.kc-feed-action-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(560px, calc(100vw - 28px));
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dedede;
    border-radius: 999px;
    box-shadow: 0 10px 34px rgba(0,0,0,0.16);
    z-index: 9998;
}

.kc-feed-action-bar button {
    flex: 1;
    margin-top: 0;
}

.kc-group-detail-wrap {
    padding-bottom: 96px;
}

.kc-create-post-form.kc-post-form-open {
    position: fixed;
    top: calc(var(--kc-panel-top, 0px) + 16px);
    left: 22px;
    bottom: 22px;
    width: min(420px, calc(100vw - 44px));
    max-height: calc(100dvh - var(--kc-panel-top, 0px) - 38px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 9999;
    box-sizing: border-box;
}

.kc-create-post-form.kc-post-form-open textarea {
    min-height: 170px;
}

@media (max-width: 640px) {
    .kc-feed-action-bar {
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: auto;
        border-radius: 18px 18px 0 0;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .kc-feed-action-bar button {
        padding: 13px 12px;
    }

    .kc-chat-panel {
        position: fixed;
        top: var(--kc-mobile-panel-top, 0px);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: calc(100dvh - var(--kc-mobile-panel-top, 0px));
        max-height: calc(100dvh - var(--kc-mobile-panel-top, 0px));
        border-radius: 0;
        border: 0;
        display: flex;
        flex-direction: column;
        z-index: 10000;
    }

    .kc-chat-header {
        padding-top: 12px;
    }

    .kc-chat-messages {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    .kc-chat-form {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }

    .kc-create-post-form.kc-post-form-open {
        position: fixed;
        top: var(--kc-mobile-panel-top, 0px);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        max-height: calc(100dvh - var(--kc-mobile-panel-top, 0px));
        height: calc(100dvh - var(--kc-mobile-panel-top, 0px));
        z-index: 10000;
        overflow-y: auto;
        border-radius: 0;
        border: 0;
        margin: 0;
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
        background: #fff;
        box-sizing: border-box;
    }

    .kc-create-post-form.kc-post-form-open textarea {
        min-height: 34vh;
    }

    .kc-create-post-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-top: 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }
}

.kc-create-group-collapsed-card {
    margin-top: 12px;
}

.kc-admin-create-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.kc-admin-create-row h3 {
    margin-bottom: 4px;
}

.kc-toggle-create-group,
.kc-cancel-create-group {
    margin-top: 0;
}

.kc-cancel-create-group {
    background: #f6f6f6;
    color: #333;
}

.kc-create-group-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.kc-create-group-actions button {
    margin-top: 0;
}

.kc-directory-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 10px 12px;
    align-items: end;
    margin-top: 12px;
}

.kc-search-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: -4px;
}

.kc-group-search,
.kc-group-category-filter,
.kc-category-select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
}

.kc-directory-tools .kc-search-label:first-child {
    grid-column: 1;
}

.kc-directory-tools .kc-group-search {
    grid-column: 1;
}

.kc-directory-tools .kc-search-label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 1;
}

.kc-directory-tools .kc-group-category-filter {
    grid-column: 2;
    grid-row: 2;
}

.kc-group-directory-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.kc-group-directory-title-row h3 {
    margin-bottom: 0;
}

.kc-category-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: #f1eee8;
    color: #333;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.kc-no-groups-match {
    margin-bottom: 0;
    font-weight: 700;
}

@media (max-width: 640px) {
    .kc-admin-create-row {
        display: block;
    }

    .kc-toggle-create-group,
    .kc-toggle-group-admin {
        width: 100%;
        margin-top: 10px;
    }

    .kc-directory-tools {
        grid-template-columns: 1fr;
    }

    .kc-directory-tools .kc-search-label,
    .kc-directory-tools .kc-group-search,
    .kc-directory-tools .kc-group-category-filter,
    .kc-directory-tools .kc-search-label:nth-of-type(2) {
        grid-column: 1;
        grid-row: auto;
    }
}

.kc-group-admin-tools {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.kc-invite-member-form {
    padding: 14px;
    border: 1px solid #e2ddd4;
    border-radius: 14px;
    background: #fff;
}

.kc-inline-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.kc-inline-form-row input[type="email"] {
    flex: 1;
    min-width: 180px;
}

.kc-admin-member-search {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
}

.kc-admin-member-section {
    border: 1px solid #e2ddd4;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.kc-admin-member-section h4 {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kc-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #f1eee8;
    font-size: 12px;
}

.kc-member-admin-list,
.kc-pending-list {
    display: grid;
    gap: 10px;
}

.kc-member-admin-row,
.kc-pending-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee8df;
    border-radius: 12px;
    background: #faf9f6;
}

.kc-member-admin-row .kc-meta {
    display: block;
    margin-top: 3px;
}

.kc-member-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kc-member-admin-actions button,
.kc-inline-form-row button {
    margin-top: 0;
}

.kc-block-member,
.kc-reject-member {
    background: #8f2f2f;
}

.kc-kick-member {
    background: #5b5145;
}

.kc-unblock-member {
    background: #2f6f4e;
}

@media (max-width: 640px) {
    .kc-inline-form-row,
    .kc-member-admin-row,
    .kc-pending-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kc-member-admin-actions {
        justify-content: stretch;
    }

    .kc-member-admin-actions button,
    .kc-inline-form-row button {
        width: 100%;
    }
}

.kc-chat-form {
    display: block;
}

.kc-chat-compose-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kc-chat-compose-row input[type="text"] {
    flex: 1;
    min-width: 0;
}

.kc-chat-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 10px;
    border: 1px dashed #bdbdbd;
    border-radius: 12px;
    background: #fff;
}

.kc-chat-image-label {
    display: block;
    font-weight: 700;
    margin-top: 10px;
}

.kc-chat-reply-preview {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 9px 10px;
    border-left: 4px solid #2d2d2d;
    background: #f6f6f6;
    border-radius: 10px;
    font-size: 13px;
}

.kc-chat-reply-preview button {
    margin-top: 0;
    padding: 6px 10px;
    flex: 0 0 auto;
}

.kc-message {
    cursor: pointer;
}

.kc-message-reply-context {
    margin: 7px 0;
    padding: 8px 10px;
    border-left: 4px solid #d0d0d0;
    background: #f7f7f7;
    border-radius: 8px;
    color: #555;
    font-size: 13px;
}

.kc-reply-message {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 12px;
    background: #f0f0f0;
    color: #222;
}

.kc-message-image-link {
    display: block;
    margin-top: 8px;
}

.kc-message-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 640px) {
    .kc-chat-compose-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .kc-chat-compose-row button {
        width: 100%;
    }

    .kc-chat-reply-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .kc-chat-reply-preview button {
        width: 100%;
    }

    .kc-message-image {
        max-height: 340px;
    }
}

.kc-message-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.kc-message-actions button,
.kc-back-to-chat {
    margin-top: 0;
    padding: 7px 11px;
    font-size: 13px;
}

.kc-view-thread {
    background: #f1eee8 !important;
    color: #222 !important;
}

.kc-thread-view {
    display: grid;
    gap: 10px;
}

.kc-thread-label {
    font-weight: 800;
    color: #333;
    margin: 2px 0;
}

.kc-thread-root {
    border-color: #d8d0c4;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.kc-thread-replies {
    display: grid;
    gap: 8px;
    margin-left: 18px;
    padding-left: 14px;
    border-left: 3px solid #eee8df;
}

.kc-thread-reply {
    margin-bottom: 0;
    background: #fffdf9;
}

.kc-no-thread-replies {
    margin: 0;
}

.kc-message-image {
    display: block;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 10px;
    margin-top: 8px;
}

.kc-chat-reply-preview {
    border: 1px solid #ded6ca;
    border-radius: 12px;
    padding: 8px;
    background: #fffaf2;
    margin-bottom: 8px;
}

.kc-chat-reply-preview button {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .kc-thread-replies {
        margin-left: 8px;
        padding-left: 10px;
    }
}

.kc-open-chat {
    position: relative;
}

.kc-open-chat.kc-has-unread {
    font-weight: 700;
}

.kc-chat-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 8px;
    border-radius: 999px;
    background: #c62828;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.kc-chat-unread-badge[hidden] {
    display: none !important;
}

.kc-message-blink {
    animation: kcMessageNewBlink 2s ease-in-out 1;
}

@keyframes kcMessageNewBlink {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); background: #fff; }
    12% { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08); background: #fff9d8; }
    32% { box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05); background: #fff; }
    52% { box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08); background: #fff9d8; }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); background: #fff; }
}


.kc-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.86);
    box-sizing: border-box;
}

.kc-image-lightbox[hidden] {
    display: none !important;
}

.kc-image-lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.kc-image-lightbox-close {
    position: fixed;
    top: calc(var(--kc-panel-top, 0px) + 14px);
    right: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

body.kc-lightbox-open {
    overflow: hidden;
}

.kc-lightbox-image-link {
    cursor: zoom-in;
}

@media (max-width: 640px) {
    .kc-image-lightbox {
        padding-top: calc(var(--kc-mobile-panel-top, 0px) + 12px);
    }
}
