.fi-panel-admin {
    --admin-surface: #eef7f7;
    --admin-card: rgba(255, 255, 255, 0.92);
    --admin-border: rgba(11, 146, 138, 0.12);
    --admin-border-strong: rgba(11, 146, 138, 0.22);
    --admin-ink: #12324a;
    --admin-muted: #678396;
    --admin-primary: #11a39a;
    --admin-primary-deep: #0f7f79;
    --admin-accent: #37bfd2;
    --admin-shadow: 0 22px 54px rgba(11, 78, 94, 0.08);
    background:
        radial-gradient(circle at top right, rgba(55, 191, 210, 0.14), transparent 26%),
        radial-gradient(circle at left center, rgba(17, 163, 154, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fdfd 0%, #edf5f5 100%);
}

.dark .fi-panel-admin {
    --admin-surface: #07181d;
    --admin-card: rgba(10, 32, 38, 0.9);
    --admin-border: rgba(75, 213, 199, 0.14);
    --admin-border-strong: rgba(75, 213, 199, 0.22);
    --admin-ink: #eff7fb;
    --admin-muted: #9ec4c8;
    --admin-primary: #4bd5c7;
    --admin-primary-deep: #8ce8dc;
    --admin-shadow: 0 28px 66px rgba(0, 0, 0, 0.28);
    background:
        radial-gradient(circle at top right, rgba(75, 213, 199, 0.08), transparent 28%),
        radial-gradient(circle at left center, rgba(55, 191, 210, 0.08), transparent 24%),
        linear-gradient(180deg, #071318 0%, #0a1c23 100%);
}

.fi-panel-admin .fi-main-ctn {
    gap: 1.15rem;
}

.fi-panel-admin .fi-main {
    max-width: 104rem;
    padding-inline: 1.25rem;
    padding-bottom: 2rem;
}

.fi-panel-admin .fi-topbar,
.fi-panel-admin .admin-topbar-shell {
    margin: 0;
}

.fi-panel-admin .fi-topbar {
    border-width: 0 0 1px;
    border-style: solid;
    border-color: rgba(7, 88, 87, 0.18);
    border-radius: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 32%),
        radial-gradient(circle at right center, rgba(61, 214, 196, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(8, 111, 110, 0.98), rgba(10, 137, 134, 0.98) 52%, rgba(17, 163, 154, 0.98));
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 36px rgba(8, 66, 73, 0.14);
}

.dark .fi-panel-admin .fi-topbar {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 28%),
        radial-gradient(circle at right center, rgba(75, 213, 199, 0.1), transparent 24%),
        linear-gradient(135deg, rgba(7, 60, 69, 0.96), rgba(9, 87, 92, 0.96));
}

.admin-topbar-shell {
    display: contents;
}

.fi-panel-admin .fi-topbar-start,
.fi-panel-admin .fi-topbar-end {
    gap: 1rem;
}

.fi-panel-admin .fi-topbar-start {
    color: white;
}

.fi-panel-admin .fi-topbar-end {
    color: white;
}

.fi-panel-admin .fi-sidebar {
    margin: 0;
    width: min(18.5rem, calc(100vw - 2rem));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 32%),
        linear-gradient(180deg, #109c98 0%, #0b8a86 48%, #0e7e83 100%);
    box-shadow: 0 28px 60px rgba(6, 82, 92, 0.22);
}

.dark .fi-panel-admin .fi-sidebar {
    border-color: rgba(81, 191, 185, 0.08);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.fi-panel-admin .fi-sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-panel-admin .fi-sidebar {
    min-height: calc(100vh - 4rem);
}

.fi-panel-admin .fi-sidebar-nav,
.fi-panel-admin .fi-sidebar-nav-groups,
.fi-panel-admin .fi-sidebar-nav-ctn {
    min-height: 0;
}

.fi-panel-admin .fi-sidebar-nav {
    padding-top: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.fi-panel-admin .fi-sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.fi-panel-admin .fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.fi-panel-admin .fi-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.fi-panel-admin .fi-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.36);
}

.fi-panel-admin .fi-sidebar-nav::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.fi-panel-admin .fi-sidebar-header-logo-ctn,
.fi-panel-admin .fi-sidebar-group-label,
.fi-panel-admin .fi-sidebar-item-label,
.fi-panel-admin .fi-sidebar-open-collapse-sidebar-btn,
.fi-panel-admin .fi-sidebar-close-collapse-sidebar-btn {
    color: #edf7fb;
}

.fi-panel-admin .fi-sidebar-group-label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fi-panel-admin .fi-sidebar-item-icon {
    color: rgba(237, 247, 251, 0.82);
}

.fi-panel-admin .fi-sidebar-item-btn {
    margin: 0.18rem 0;
    border-radius: 1rem;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.fi-panel-admin .fi-sidebar-item-btn:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.08);
}

.fi-panel-admin .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 251, 0.94));
    box-shadow: 0 16px 32px rgba(6, 74, 86, 0.18);
}

.dark .fi-panel-admin .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: linear-gradient(135deg, rgba(13, 39, 56, 0.96), rgba(10, 28, 40, 0.92));
}

.fi-panel-admin .fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-panel-admin .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: var(--admin-primary-deep);
}

.fi-panel-admin .fi-page {
    gap: 1rem;
}

.fi-panel-admin .fi-header {
    padding: 1.45rem 1.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 1.6rem;
    background: var(--admin-card);
    box-shadow: var(--admin-shadow);
}

.fi-panel-admin .fi-header-heading {
    color: var(--admin-ink);
    font-size: 2.3rem;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.fi-panel-admin .fi-header-subheading {
    max-width: 46rem;
    color: var(--admin-muted);
    font-size: 1rem;
}

.fi-panel-admin .fi-page-header-main-ctn {
    gap: 0.9rem;
}

.fi-panel-admin .fi-section,
.fi-panel-admin .fi-ta-ctn,
.fi-panel-admin .fi-wi-stats-overview-stat {
    border: 1px solid var(--admin-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 249, 0.96));
    box-shadow: var(--admin-shadow);
}

.dark .fi-panel-admin .fi-section,
.dark .fi-panel-admin .fi-ta-ctn,
.dark .fi-panel-admin .fi-wi-stats-overview-stat {
    background: linear-gradient(180deg, rgba(11, 28, 40, 0.98), rgba(8, 19, 30, 0.96));
}

.fi-panel-admin .fi-section,
.fi-panel-admin .fi-ta-ctn {
    border-radius: 1.6rem;
}

.fi-panel-admin .fi-section-header {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.fi-panel-admin .fi-section-header-heading,
.fi-panel-admin .fi-wi-stats-overview-stat-value {
    color: var(--admin-ink);
}

.fi-panel-admin .fi-section-header-description,
.fi-panel-admin .fi-wi-stats-overview-stat-description,
.fi-panel-admin .fi-ta-header-cell,
.fi-panel-admin .fi-ta-text-item-label {
    color: var(--admin-muted);
}

.fi-panel-admin .fi-wi-stats-overview {
    gap: 1rem;
}

.fi-panel-admin .fi-wi-stats-overview-stat {
    border-radius: 1.5rem;
    padding: 1.35rem 1.4rem;
}

.fi-panel-admin .fi-wi-stats-overview-stat-label {
    color: var(--admin-muted);
    font-weight: 700;
}

.fi-panel-admin .fi-wi-stats-overview-stat-value {
    font-size: 2.35rem;
    line-height: 1;
}

.fi-panel-admin .fi-ta-text-item {
    color: var(--admin-ink);
}

.fi-panel-admin .fi-ta-ctn {
    overflow: hidden;
}

.fi-panel-admin .fi-ta-table {
    border-collapse: separate;
    border-spacing: 0;
}

.fi-panel-admin .fi-ta-header-ctn {
    background:
        linear-gradient(180deg, rgba(17, 163, 154, 0.08), rgba(55, 191, 210, 0.04)),
        #fbfefe;
}

.dark .fi-panel-admin .fi-ta-header-ctn {
    background:
        linear-gradient(180deg, rgba(75, 213, 199, 0.08), rgba(55, 191, 210, 0.04)),
        rgba(11, 28, 40, 0.98);
}

.fi-panel-admin .fi-ta-header-cell {
    font-weight: 800;
    color: var(--admin-primary-deep);
}

.fi-panel-admin .fi-ta-row {
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.fi-panel-admin .fi-ta-row:nth-child(even) {
    background: rgba(17, 163, 154, 0.03);
}

.dark .fi-panel-admin .fi-ta-row:nth-child(even) {
    background: rgba(75, 213, 199, 0.04);
}

.fi-panel-admin .fi-ta-row:hover {
    background: rgba(15, 148, 141, 0.08);
}

.dark .fi-panel-admin .fi-ta-row:hover {
    background: rgba(78, 202, 194, 0.12);
}

.fi-panel-admin .fi-ta-cell,
.fi-panel-admin .fi-ta-header-cell {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.fi-panel-admin .fi-ta-cell:first-child,
.fi-panel-admin .fi-ta-header-cell:first-child {
    padding-left: 1.1rem;
}

.fi-panel-admin .fi-ta-cell:last-child,
.fi-panel-admin .fi-ta-header-cell:last-child {
    padding-right: 1.1rem;
}

.fi-panel-admin .fi-badge {
    border-radius: 999px;
    border: 1px solid rgba(17, 163, 154, 0.14);
    background: linear-gradient(180deg, rgba(17, 163, 154, 0.12), rgba(55, 191, 210, 0.08));
    color: var(--admin-primary-deep);
    font-weight: 800;
}

.dark .fi-panel-admin .fi-badge {
    border-color: rgba(75, 213, 199, 0.16);
    background: linear-gradient(180deg, rgba(75, 213, 199, 0.12), rgba(55, 191, 210, 0.08));
}

.admin-topbar-cluster {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 0 0 auto;
    min-width: 0;
}

.admin-topbar-welcome {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.45rem 0.8rem 0.45rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    box-shadow: 0 10px 24px rgba(8, 66, 73, 0.16);
    backdrop-filter: blur(10px);
}

.dark .admin-topbar-welcome {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.admin-topbar-welcome__mark {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #18c7c0, #3bd2ca);
    color: white;
}

.admin-topbar-welcome__mark svg {
    width: 1rem;
    height: 1rem;
}

.admin-topbar-welcome__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.admin-topbar-welcome__eyebrow {
    color: rgba(232, 251, 250, 0.74);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-topbar-welcome__text strong {
    color: #f7ffff;
    font-size: 0.95rem;
    line-height: 1.2;
}

.admin-topbar-whatsapp {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 3rem !important;
    height: 3rem !important;
    min-width: 3rem !important;
    min-height: 3rem !important;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(12, 55, 51, 0.24), rgba(255, 255, 255, 0.1));
    color: #f7ffff;
    box-shadow: 0 10px 24px rgba(8, 66, 73, 0.16);
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
    backdrop-filter: blur(10px);
    flex: 0 0 auto;
}

.admin-topbar-whatsapp:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(12, 55, 51, 0.32), rgba(255, 255, 255, 0.14));
    box-shadow: 0 14px 28px rgba(8, 66, 73, 0.22);
}

.admin-topbar-whatsapp__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366, #16b85a);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.admin-topbar-whatsapp__glyph svg {
    width: 1.1rem;
    height: 1.1rem;
}

.admin-topbar-whatsapp__badge {
    position: absolute;
    top: -0.18rem;
    right: -0.12rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(8, 66, 73, 0.18);
}

.admin-ops-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(16rem, 0.95fr);
    gap: 1.4rem;
    padding: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, #118f88 0%, #158f74 52%, #2fa48d 100%);
    color: white;
    box-shadow: 0 30px 70px rgba(13, 85, 96, 0.24);
}

.admin-dashboard-intro {
    display: grid;
    gap: 1rem;
}

.admin-breadcrumb-bar {
    display: flex;
    align-items: center;
    min-height: 3.35rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--admin-border);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 30px rgba(14, 52, 68, 0.06);
}

.dark .admin-breadcrumb-bar {
    background: rgba(11, 28, 40, 0.92);
}

.admin-breadcrumb-bar span {
    color: var(--admin-primary-deep);
    font-weight: 600;
}

.admin-ops-hero__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-ops-hero__mark {
    display: grid;
    place-items: center;
    width: 4.1rem;
    height: 4.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.admin-ops-hero__mark svg {
    width: 1.9rem;
    height: 1.9rem;
}

.admin-ops-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-ops-hero__title {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.admin-ops-hero__meta {
    margin: 0.55rem 0 0;
    color: rgba(242, 248, 251, 0.86);
    font-size: 1rem;
    line-height: 1.5;
}

.admin-ops-hero__text {
    max-width: 44rem;
    margin: 0.95rem 0 0;
    color: rgba(242, 248, 251, 0.92);
    line-height: 1.75;
}

.admin-ops-hero__aside {
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
}

.admin-ops-hero__status {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.admin-ops-hero__status-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-ops-hero__status-value {
    font-size: 1.35rem;
    line-height: 1.25;
}

.admin-ops-hero__aside-text {
    margin: 0.9rem 0 0;
    color: rgba(242, 248, 251, 0.9);
    line-height: 1.7;
}

.admin-sidebar-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    backdrop-filter: blur(10px);
}

.admin-sidebar-meta {
    margin: 0 1rem 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
    color: white;
}

.admin-sidebar-meta__row + .admin-sidebar-meta__row {
    margin-top: 0.9rem;
}

.admin-sidebar-meta__label {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 700;
}

.admin-sidebar-meta strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1rem;
    line-height: 1.3;
}

.admin-sidebar-card__eyebrow {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar-card__title {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.1rem;
    line-height: 1.2;
}

.admin-sidebar-card__text {
    margin: 0.55rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
    line-height: 1.6;
}

.admin-login-intro {
    margin-bottom: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--admin-border);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(55, 191, 210, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f0fbfa 100%);
    box-shadow: var(--admin-shadow);
}

.dark .admin-login-intro {
    background:
        radial-gradient(circle at top right, rgba(78, 202, 194, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(11, 28, 40, 0.98), rgba(8, 19, 30, 0.96));
}

.admin-login-intro__eyebrow {
    color: var(--admin-primary-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-login-intro__title {
    margin: 0.45rem 0 0;
    color: var(--admin-ink);
    font-size: 1.45rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.admin-login-intro__text {
    margin: 0.75rem 0 0;
    color: var(--admin-muted);
    line-height: 1.7;
}

@media (max-width: 1023px) {
    .fi-panel-admin .fi-topbar {
        margin: 0;
        border-radius: 0;
    }

    .fi-panel-admin .fi-topbar-open-sidebar-btn,
    .fi-panel-admin .fi-topbar-close-sidebar-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.65rem;
        height: 2.65rem;
        border: 1px solid rgba(255, 255, 255, 0.26);
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        box-shadow: 0 10px 24px rgba(8, 66, 73, 0.18);
        backdrop-filter: blur(8px);
    }

    .fi-panel-admin .fi-topbar-open-sidebar-btn:hover,
    .fi-panel-admin .fi-topbar-open-sidebar-btn:focus-visible,
    .fi-panel-admin .fi-topbar-close-sidebar-btn:hover,
    .fi-panel-admin .fi-topbar-close-sidebar-btn:focus-visible {
        background: rgba(255, 255, 255, 0.22);
        color: #ffffff;
    }

    .fi-panel-admin .fi-topbar-open-sidebar-btn svg,
    .fi-panel-admin .fi-topbar-close-sidebar-btn svg {
        width: 1.15rem;
        height: 1.15rem;
        stroke-width: 2.2;
    }

    .fi-panel-admin .fi-sidebar {
        margin: 0;
        border-radius: 0;
    }

    .fi-panel-admin .fi-main {
        padding-inline: 0.9rem;
    }

    .fi-panel-admin .fi-header {
        padding: 1.15rem;
        border-radius: 1.2rem;
    }

    .fi-panel-admin .fi-header-heading {
        font-size: 1.8rem;
    }

    .admin-topbar-welcome {
        display: none;
    }

    .admin-topbar-cluster {
        gap: 0.55rem;
    }

    .admin-topbar-whatsapp {
        width: 2.85rem !important;
        height: 2.85rem !important;
        min-width: 2.85rem !important;
        min-height: 2.85rem !important;
    }

    .admin-ops-hero {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .admin-ops-hero__identity {
        align-items: flex-start;
    }
}

.wa-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 56, 47, 0.08);
    border-radius: 1.8rem;
    background: #e8ded5;
    box-shadow: 0 28px 70px rgba(15, 39, 57, 0.14);
    height: calc(100vh - 9.5rem);
    min-height: 42rem;
}

.wa-top-strip {
    height: 7.5rem;
    background: linear-gradient(180deg, #0f7a67 0%, #0b6858 100%);
}

.wa-inbox {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 0;
    height: calc(100% - 4.75rem);
    min-height: 0;
    margin-top: -4.75rem;
    padding: 1.1rem;
    overflow: hidden;
}

.wa-card {
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: #f0f2f5;
    box-shadow: none;
    overflow: hidden;
    min-height: 0;
}

.dark .wa-card {
    background: #101b20;
}

.wa-card__header {
    flex-shrink: 0;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(17, 27, 33, 0.08);
    background: #f0f2f5;
}

.wa-conversations__toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-conversations {
    height: 100%;
    min-height: 0;
}

.wa-card__title {
    margin: 0;
    color: #111b21;
    font-size: 0.98rem;
    font-weight: 700;
}

.wa-card__description {
    margin: 0.35rem 0 0;
    color: #667781;
    font-size: 0.82rem;
    line-height: 1.45;
}

.wa-search,
.wa-composer__input {
    width: 100%;
    border: 0;
    border-radius: 0.65rem;
    background: #fff;
    color: #111b21;
    outline: none;
}

.dark .wa-search,
.dark .wa-composer__input {
    background: #202c33;
}

.wa-search {
    padding: 0.78rem 0.95rem;
}

.wa-new-chat-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1fa463 0%, #128c7e 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(18, 140, 126, 0.2);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.wa-new-chat-fab:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(18, 140, 126, 0.24);
}

.wa-new-chat-fab:focus-visible {
    outline: 2px solid rgba(18, 140, 126, 0.35);
    outline-offset: 2px;
}

.wa-new-chat-fab svg {
    width: 1.2rem;
    height: 1.2rem;
}

.wa-search:focus,
.wa-composer__input:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 128, 105, 0.18);
}

.wa-conversations__list,
.wa-thread__messages {
    overflow-y: auto;
}

.wa-conversations__list {
    flex: 1;
    height: 100%;
    min-height: 0;
    padding: 0;
    background: #fff;
}

.wa-conversation-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(17, 27, 33, 0.06);
    border-radius: 0;
    background: #fff;
    text-align: left;
    transition: background-color 160ms ease;
}

.dark .wa-conversation-item {
    background: #111b21;
}

.wa-conversation-item:hover {
    background: #f5f6f6;
}

.wa-conversation-item.is-active {
    background: #f0f2f5;
}

.wa-conversation-item__avatar,
.wa-thread__avatar,
.wa-context__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #d9fdd3, #b7e4c7);
    color: #0f5132;
    font-weight: 700;
}

.wa-conversation-item__avatar {
    width: 3rem;
    height: 3rem;
}

.wa-thread__avatar,
.wa-context__avatar {
    width: 3.25rem;
    height: 3.25rem;
}

.wa-conversation-item__content {
    min-width: 0;
    flex: 1;
}

.wa-conversation-item__top,
.wa-thread__header,
.wa-composer__footer,
.wa-conversation-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.wa-conversation-item__top-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.wa-conversation-item__name,
.wa-context__value,
.wa-child-card__name {
    color: #111b21;
    font-weight: 700;
}

.wa-conversation-item__time,
.wa-conversation-item__preview,
.wa-context__muted,
.wa-child-card__meta,
.wa-composer__hint {
    color: #667781;
}

.wa-conversation-item__time {
    flex: 0 0 auto;
    font-size: 0.72rem;
}

.wa-conversation-kind {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(18, 140, 126, 0.12);
    color: #128c7e;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.wa-conversation-item__bottom {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.3rem;
}

.wa-conversation-item__preview {
    min-width: 0;
    flex: 1;
    font-size: 0.84rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-badge,
.wa-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.wa-badge {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    background: #25d366;
    color: #fff;
    font-size: 0.68rem;
}

.wa-status-pill {
    padding: 0.35rem 0.65rem;
    border: 0;
    background: #e9edef;
    color: #54656f;
}

.dark .wa-status-pill {
    background: #202c33;
}

.wa-thread {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-left: 1px solid rgba(17, 27, 33, 0.08);
    width: 100%;
}

.wa-thread__body {
    position: relative;
    display: flex;
    flex: 1;
    min-height: 0;
}

.wa-thread__messages {
    flex: 1;
    min-height: 0;
    padding: 1.25rem;
    background:
        linear-gradient(rgba(239, 234, 226, 0.92), rgba(239, 234, 226, 0.92)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d1d7db' fill-opacity='.28'%3E%3Cpath d='M80 0c11.046 0 20 8.954 20 20S91.046 40 80 40 60 31.046 60 20 68.954 0 80 0zm0 80c11.046 0 20 8.954 20 20s-8.954 20-20 20-20-8.954-20-20 8.954-20 20-20zm60-40c11.046 0 20 8.954 20 20s-8.954 20-20 20-20-8.954-20-20 8.954-20 20-20zM20 40c11.046 0 20 8.954 20 20S31.046 80 20 80 0 71.046 0 60s8.954-20 20-20zm120 80c11.046 0 20 8.954 20 20s-8.954 20-20 20-20-8.954-20-20 8.954-20 20-20zM20 120c11.046 0 20 8.954 20 20s-8.954 20-20 20S0 151.046 0 140s8.954-20 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    scroll-behavior: smooth;
}

.dark .wa-thread__messages {
    background: #0b141a;
}

.wa-message-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.wa-thread__marker {
    display: none;
}

[x-cloak] {
    display: none !important;
}

.wa-thread__jump {
    position: absolute;
    right: 1.1rem;
    bottom: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #54656f;
    box-shadow: 0 8px 24px rgba(17, 27, 33, 0.16);
    cursor: pointer;
    z-index: 5;
}

.wa-thread__jump:hover {
    background: #f7f8f8;
}

.wa-thread__jump svg {
    width: 1.2rem;
    height: 1.2rem;
}

.wa-thread__jump-count {
    position: absolute;
    top: -0.1rem;
    right: -0.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
}

.wa-thread__bottom-anchor {
    width: 100%;
    height: 1px;
}

.wa-message-row.is-outgoing {
    justify-content: flex-end;
}

.wa-message-row.is-incoming {
    justify-content: flex-start;
}

.wa-message-bubble {
    max-width: 85%;
    padding: 0.5rem 0.7rem 0.35rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 0 rgba(11, 20, 26, 0.08);
}

.wa-message-bubble.is-outgoing {
    background: #d9fdd3;
    color: #111b21;
}

.wa-message-bubble.is-incoming {
    border: 0;
    background: #fff;
    color: #111b21;
}

.dark .wa-message-bubble.is-incoming {
    background: #202c33;
}

.wa-message-bubble__body {
    line-height: 1.5;
    white-space: pre-wrap;
    font-size: 0.91rem;
}

.wa-message-bubble__sender {
    margin-bottom: 0.35rem;
    color: #128c7e;
    font-size: 0.78rem;
    font-weight: 700;
}

.wa-message-bubble__link {
    display: inline-flex;
    margin-top: 0.7rem;
    color: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wa-message-bubble__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
    margin-top: 0.35rem;
    font-size: 0.68rem;
    color: #667781;
    opacity: 1;
}

.wa-message-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
}

.wa-message-check svg {
    width: 0.95rem;
    height: 0.95rem;
}

.wa-message-check--sent {
    color: rgba(255, 255, 255, 0.88);
}

.wa-message-check--delivered {
    color: rgba(255, 255, 255, 0.92);
}

.wa-message-check--read {
    color: #7cf0d4;
}

.wa-message-check--failed {
    color: #ffd1d1;
}

.wa-thread__composer {
    flex-shrink: 0;
    padding: 0.8rem 1rem;
    border-top: 1px solid rgba(17, 27, 33, 0.08);
    background: #f0f2f5;
}

.wa-thread__identity-button {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.wa-thread__identity-button:hover .wa-card__title {
    color: #0f7a67;
}

.wa-context-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 27, 33, 0.26);
    z-index: 8;
}

.wa-context-drawer {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    width: min(24rem, calc(100% - 2rem));
    height: 100%;
    border-left: 1px solid rgba(17, 27, 33, 0.08);
    background: #f0f2f5;
    box-shadow: -12px 0 32px rgba(17, 27, 33, 0.14);
}

.wa-context-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(17, 27, 33, 0.08);
    background: #f0f2f5;
}

.wa-context-drawer__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.wa-context-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #54656f;
    cursor: pointer;
}

.wa-context-drawer__close svg {
    width: 1rem;
    height: 1rem;
}

.wa-drawer-enter,
.wa-drawer-leave {
    transition: transform 180ms ease, opacity 180ms ease;
}

.wa-drawer-enter-start,
.wa-drawer-leave-end {
    opacity: 0;
    transform: translateX(1rem);
}

.wa-drawer-enter-end,
.wa-drawer-leave-start {
    opacity: 1;
    transform: translateX(0);
}

.wa-composer {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.dark .wa-composer {
    background: transparent;
}

.wa-composer__input {
    min-height: 48px;
    padding: 0.85rem 1rem;
    resize: none;
}

.wa-composer__readonly {
    border: 1px dashed rgba(18, 140, 126, 0.24);
    border-radius: 1rem;
    background: rgba(18, 140, 126, 0.06);
    padding: 1rem 1.05rem;
    color: #3d566e;
    font-size: 0.92rem;
    line-height: 1.6;
}

.wa-composer__footer {
    margin-top: 0.65rem;
    padding-top: 0;
    border-top: 0;
}

.wa-composer__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
}

.wa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #00a884;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.wa-button:hover {
    filter: brightness(1.05);
}

.wa-button svg {
    width: 1.2rem;
    height: 1.2rem;
}

.wa-context__body {
    padding: 1.25rem;
    background: #fff;
}

.wa-context__block + .wa-context__block,
.wa-context__stack {
    margin-top: 1.25rem;
}

.wa-context__header,
.wa-thread__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.wa-context__label {
    color: #667781;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wa-context__value {
    margin-top: 0.35rem;
}

.wa-context__value--soft {
    font-weight: 500;
}

.wa-context__muted {
    margin-top: 0.35rem;
}

.wa-context__children {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.75rem;
}

.wa-child-card,
.wa-context-chip,
.wa-empty {
    border: 1px solid rgba(17, 27, 33, 0.08);
    border-radius: 0.9rem;
    background: #fff;
}

.dark .wa-child-card,
.dark .wa-context-chip,
.dark .wa-empty {
    background: rgba(7, 20, 31, 0.78);
}

.wa-child-card,
.wa-context-chip {
    padding: 0.9rem 1rem;
}

.wa-empty {
    padding: 1.25rem;
    color: #667781;
    line-height: 1.7;
}

.wa-empty--center {
    align-self: center;
    max-width: 34rem;
    margin: auto;
    text-align: center;
}

.wa-empty__title {
    margin: 0;
    color: #111b21;
    font-size: 1.1rem;
    font-weight: 700;
}

.wa-empty__text {
    margin: 0.75rem 0 0;
}

@media (max-width: 1280px) {
    .wa-inbox {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .wa-shell {
        border-radius: 1.2rem;
        height: auto;
        min-height: 0;
    }

    .wa-top-strip {
        height: 5rem;
    }

    .wa-inbox {
        grid-template-columns: 1fr;
        height: auto;
        margin-top: -2.5rem;
        padding: 0.6rem;
    }

    .wa-conversations__list,
    .wa-thread__messages {
        max-height: none;
    }

    .wa-thread {
        min-height: auto;
    }

    .wa-context-drawer {
        width: 100%;
    }
}

.dc-chat-shell {
    display: grid;
    grid-template-columns: 5.75rem minmax(20rem, 24rem) minmax(0, 1fr);
    gap: 1rem;
    min-height: 72vh;
    padding: 1rem;
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(243, 248, 248, 0.92));
    box-shadow: 0 28px 60px rgba(14, 67, 80, 0.12);
}

.dark .dc-chat-shell {
    background: linear-gradient(180deg, rgba(11, 28, 40, 0.94), rgba(8, 20, 30, 0.96));
}

.dc-chat-rail,
.dc-chat-card {
    border-radius: 1.7rem;
    box-shadow: 0 22px 40px rgba(49, 38, 124, 0.14);
}

.dc-chat-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.35rem 0.8rem;
    background: linear-gradient(180deg, #8b39f7 0%, #5e31df 100%);
    color: #fff;
}

.dc-chat-rail__brand {
    display: grid;
    justify-items: center;
    gap: 0.8rem;
}

.dc-chat-rail__avatar,
.dc-chat-thread__avatar,
.dc-chat-list__avatar {
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.dc-chat-rail__avatar {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
}

.dc-chat-rail__name {
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
}

.dc-chat-rail__nav {
    display: grid;
    gap: 0.7rem;
}

.dc-chat-rail__item {
    position: relative;
    display: grid;
    place-items: center;
    width: 3.15rem;
    height: 3.15rem;
    margin: 0 auto;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
}

.dc-chat-rail__item--active {
    background: rgba(255, 255, 255, 0.2);
}

.dc-chat-rail__icon {
    width: 1.25rem;
    height: 1.25rem;
}

.dc-chat-rail__badge {
    position: absolute;
    top: -0.2rem;
    right: -0.18rem;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #fff;
    color: #6c2be9;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.2rem;
    text-align: center;
}

.dc-chat-sidebar,
.dc-chat-thread {
    min-width: 0;
}

.dc-chat-card {
    height: 100%;
    padding: 1.15rem;
    border: 1px solid rgba(138, 121, 248, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.dark .dc-chat-card {
    border-color: rgba(138, 121, 248, 0.14);
    background: rgba(14, 26, 38, 0.98);
}

.dc-chat-card__header h3 {
    margin: 0;
    color: #121826;
    font-size: 1.65rem;
    font-weight: 800;
}

.dark .dc-chat-card__header h3 {
    color: #eff7fb;
}

.dc-chat-card__header p {
    margin: 0.2rem 0 0;
    color: #6d7b8f;
    font-size: 0.84rem;
}

.dc-chat-start {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    margin-top: 1rem;
}

.dc-chat-search {
    position: relative;
    margin-top: 0.85rem;
}

.dc-chat-search__icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    width: 1rem;
    height: 1rem;
    color: #8a93a4;
    transform: translateY(-50%);
}

.dc-chat-input {
    width: 100%;
    border: 1px solid rgba(137, 145, 160, 0.22);
    border-radius: 1rem;
    background: #f5f7fb;
    color: #162234;
    font-size: 0.92rem;
}

.dc-chat-input--select,
.dc-chat-input--search {
    padding: 0.88rem 1rem;
}

.dc-chat-input--search {
    padding-left: 2.8rem;
}

.dark .dc-chat-input {
    border-color: rgba(144, 156, 184, 0.16);
    background: rgba(17, 28, 42, 0.92);
    color: #edf7fb;
}

.dc-chat-action {
    padding: 0.88rem 1rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #8b39f7 0%, #6032e4 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.dc-chat-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dc-chat-list__item {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid rgba(137, 145, 160, 0.14);
    border-radius: 1.3rem;
    background: #fff;
    text-align: left;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dc-chat-list__item:hover,
.dc-chat-list__item.is-active {
    transform: translateY(-1px);
    border-color: rgba(107, 58, 230, 0.24);
    box-shadow: 0 18px 34px rgba(94, 49, 223, 0.12);
}

.dark .dc-chat-list__item {
    background: rgba(20, 31, 46, 0.95);
}

.dc-chat-list__avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(180deg, #efe7ff 0%, #ddd1ff 100%);
    color: #5e31df;
    font-size: 1rem;
}

.dc-chat-list__top,
.dc-chat-list__subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dc-chat-list__title {
    color: #161f30;
    font-size: 0.98rem;
    font-weight: 800;
}

.dark .dc-chat-list__title {
    color: #f1f7fb;
}

.dc-chat-list__time,
.dc-chat-list__guardians {
    color: #7f8a9d;
    font-size: 0.72rem;
}

.dc-chat-list__preview {
    margin-top: 0.28rem;
    color: #445066;
    font-size: 0.84rem;
    line-height: 1.45;
}

.dark .dc-chat-list__preview {
    color: #b8c7d8;
}

.dc-chat-list__counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: #6c2be9;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
}

.dc-chat-thread__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    border-radius: 1.45rem;
    background: linear-gradient(135deg, #6c2be9 0%, #5934d8 100%);
    color: #fff;
}

.dc-chat-thread__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dc-chat-thread__avatar {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.24);
    font-size: 1rem;
}

.dc-chat-thread__title {
    font-size: 1.2rem;
    font-weight: 800;
}

.dc-chat-thread__meta {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
}

.dc-chat-thread__tools {
    display: flex;
    gap: 0.55rem;
}

.dc-chat-thread__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.dc-chat-thread__tool-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.dc-chat-thread__messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 29rem;
    max-height: 34rem;
    margin-top: 1rem;
    padding: 0.35rem 0.2rem 0.35rem 0;
    overflow-y: auto;
}

.dc-chat-bubble-row {
    display: flex;
}

.dc-chat-bubble-row.is-mine {
    justify-content: flex-end;
}

.dc-chat-bubble-row.is-other {
    justify-content: flex-start;
}

.dc-chat-bubble {
    max-width: min(78%, 28rem);
    padding: 1rem 1.1rem 0.8rem;
    border-radius: 1.4rem;
    box-shadow: 0 12px 22px rgba(30, 35, 90, 0.08);
}

.dc-chat-bubble--mine {
    border-top-right-radius: 0.45rem;
    background: linear-gradient(180deg, #6f37ea 0%, #5b30dc 100%);
    color: #fff;
}

.dc-chat-bubble--other {
    border-top-left-radius: 0.45rem;
    background: #f3f4f6;
    color: #162234;
}

.dark .dc-chat-bubble--other {
    background: #182636;
    color: #edf7fb;
}

.dc-chat-bubble__sender {
    margin-bottom: 0.3rem;
    color: #7b8798;
    font-size: 0.72rem;
    font-weight: 700;
}

.dc-chat-bubble__text {
    white-space: pre-wrap;
    font-size: 0.98rem;
    line-height: 1.55;
}

.dc-chat-bubble__time {
    margin-top: 0.45rem;
    text-align: right;
    font-size: 0.68rem;
    opacity: 0.82;
}

.dc-chat-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(137, 145, 160, 0.16);
    border-radius: 1.4rem;
    background: #f4f4f7;
}

.dark .dc-chat-composer {
    background: rgba(17, 28, 42, 0.92);
}

.dc-chat-composer__input {
    width: 100%;
    min-height: 2.7rem;
    max-height: 8rem;
    border: 0;
    background: transparent;
    color: #162234;
    resize: vertical;
}

.dark .dc-chat-composer__input {
    color: #edf7fb;
}

.dc-chat-composer__icon,
.dc-chat-composer__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 0;
    border-radius: 999px;
}

.dc-chat-composer__icon {
    background: #ece8f7;
    color: #6f37ea;
}

.dc-chat-composer__send {
    background: linear-gradient(180deg, #8b39f7 0%, #6032e4 100%);
    color: #fff;
}

.dc-chat-composer__icon-svg,
.dc-chat-composer__send-svg {
    width: 1.05rem;
    height: 1.05rem;
}

.dc-chat-empty {
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(137, 145, 160, 0.28);
    border-radius: 1.25rem;
    color: #728097;
    font-size: 0.88rem;
}

.dc-chat-empty--thread {
    display: grid;
    place-items: center;
    min-height: 24rem;
    text-align: center;
}

@media (max-width: 1100px) {
    .dc-chat-shell {
        grid-template-columns: 1fr;
    }

    .dc-chat-rail {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .dc-chat-rail__brand,
    .dc-chat-rail__nav,
    .dc-chat-rail__nav--bottom {
        display: flex;
        align-items: center;
        gap: 0.7rem;
    }

    .dc-chat-rail__nav--bottom {
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    .dc-chat-shell {
        padding: 0.75rem;
    }

    .dc-chat-start {
        grid-template-columns: 1fr;
    }

    .dc-chat-thread__header,
    .dc-chat-thread__identity {
        align-items: flex-start;
    }

    .dc-chat-thread__header {
        flex-direction: column;
    }

    .dc-chat-composer {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .dc-chat-composer__send {
        grid-column: 1 / -1;
        width: 100%;
        border-radius: 1rem;
    }
}

/* chat override v2 */
.dc-chat-page {
    height: 100%;
}

.dc-chat-page > .fi-page-header-main-ctn,
.dc-chat-page .fi-page-main,
.dc-chat-page .fi-page-content {
    height: 100%;
}

.dc-chat-page .fi-page-header-main-ctn {
    gap: 0;
}

.dc-chat-page .fi-page-main {
    margin-top: 0;
}

.dc-chat-page .fi-page-content {
    padding: 0 !important;
}

.dc-chat-page .fi-page-content > * {
    width: 100%;
}

.dc-chat-app {
    display: grid;
    grid-template-columns: 22rem minmax(0, 1fr);
    gap: 0;
    min-height: calc(100vh - 10.5rem);
    overflow: hidden;
    border-radius: 1.8rem;
    background: #ffffff;
    box-shadow: 0 30px 60px rgba(26, 46, 89, 0.14);
}

.dc-chat-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: linear-gradient(180deg, #35c7a2 0%, #27b391 100%);
    color: #ffffff;
}

.dc-chat-sidebar__top,
.dc-chat-sidebar__search-row,
.dc-chat-sidebar__actions,
.dc-chat-start {
    padding-inline: 1rem;
}

.dc-chat-sidebar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 0.85rem;
}

.dc-chat-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.dc-chat-user__avatar,
.dc-chat-list__avatar,
.dc-chat-thread__avatar,
.dc-chat-message__avatar {
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.dc-chat-user__avatar,
.dc-chat-thread__avatar {
    width: 2.9rem;
    height: 2.9rem;
    background: rgba(255, 255, 255, 0.22);
}

.dc-chat-user__name,
.dc-chat-thread__person-name {
    font-weight: 800;
}

.dc-chat-user__status,
.dc-chat-thread__person-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.74rem;
}

.dc-chat-sidebar__menu,
.dc-chat-sidebar__plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dc-chat-sidebar__menu-icon,
.dc-chat-sidebar__plus-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.dc-chat-sidebar__search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding-bottom: 0.8rem;
}

.dc-chat-search {
    position: relative;
}

.dc-chat-search__icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.76);
    transform: translateY(-50%);
}

.dc-chat-search__input,
.dc-chat-start__select,
.dc-chat-composer__input {
    width: 100%;
    border: 0;
    outline: 0;
}

.dc-chat-search__input {
    height: 2.6rem;
    padding: 0 1rem 0 2.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.dc-chat-search__input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.dc-chat-sidebar__actions {
    display: flex;
    gap: 0.55rem;
    padding-bottom: 0.8rem;
}

.dc-chat-sidebar__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.dc-chat-sidebar__action-icon {
    width: 1rem;
    height: 1rem;
}

.dc-chat-start {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding-bottom: 0.9rem;
}

.dc-chat-start__select {
    height: 2.65rem;
    padding: 0 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.dc-chat-start__button {
    padding: 0 1rem;
    border: 0;
    border-radius: 0.9rem;
    background: #ffffff;
    color: #1f9d82;
    font-weight: 700;
}

.dc-chat-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.dc-chat-list__item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.8rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #fff;
    text-align: left;
}

.dc-chat-list__item.is-active {
    background: rgba(255, 255, 255, 0.14);
}

.dc-chat-list__avatar,
.dc-chat-message__avatar {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.dc-chat-list__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.dc-chat-list__name {
    font-size: 0.95rem;
    font-weight: 800;
}

.dc-chat-list__time {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.72rem;
}

.dc-chat-list__line--sub {
    margin-top: 0.2rem;
}

.dc-chat-list__preview {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.8rem;
    line-height: 1.35;
}

.dc-chat-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: #ff6b6b;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
}

.dc-chat-thread {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
}

.dc-chat-thread__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid rgba(27, 39, 61, 0.08);
}

.dc-chat-thread__person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dc-chat-thread__avatar {
    background: linear-gradient(180deg, #d9f5ee 0%, #beeade 100%);
    color: #16977a;
}

.dc-chat-thread__person-name,
.dc-chat-thread__brand {
    color: #17304b;
}

.dc-chat-thread__brand {
    font-weight: 800;
}

.dc-chat-thread__person-status {
    color: #7a8797;
}

.dc-chat-thread__messages {
    flex: 1;
    min-height: 26rem;
    padding: 1.35rem;
    overflow-y: auto;
    background: #ffffff;
}

.dc-chat-message-row {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.dc-chat-message-row.is-mine {
    justify-content: flex-end;
}

.dc-chat-message {
    max-width: min(76%, 28rem);
    padding: 0.95rem 1rem 0.7rem;
    border-radius: 0.25rem;
    box-shadow: 0 10px 18px rgba(17, 39, 72, 0.08);
}

.dc-chat-message--mine {
    background: #bff3e7;
    color: #204055;
}

.dc-chat-message--other {
    background: #f7f7f7;
    color: #17304b;
}

.dc-chat-message__sender {
    margin-bottom: 0.28rem;
    color: #5e748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.dc-chat-message__text {
    white-space: pre-wrap;
    line-height: 1.55;
}

.dc-chat-message__time {
    margin-top: 0.42rem;
    color: #7b8a98;
    font-size: 0.67rem;
}

.dc-chat-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.15rem;
    border-top: 1px solid rgba(27, 39, 61, 0.08);
    background: #ffffff;
}

.dc-chat-composer__emoji {
    width: 1.1rem;
    height: 1.1rem;
    color: #9aa6b2;
}

.dc-chat-composer__input {
    min-height: 2.6rem;
    padding: 0.72rem 0.9rem;
    border-radius: 999px;
    background: #f6f7f9;
    color: #17304b;
    resize: none;
}

.dc-chat-composer__input::placeholder {
    color: #98a4b1;
}

.dc-chat-composer__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 999px;
    background: #35c7a2;
    color: #fff;
}

.dc-chat-composer__send-icon {
    width: 1rem;
    height: 1rem;
}

.dc-chat-empty {
    color: rgba(255, 255, 255, 0.82);
}

.dc-chat-empty--sidebar {
    padding: 1rem;
}

.dc-chat-empty--thread {
    display: grid;
    place-items: center;
    min-height: 22rem;
    color: #7a8797;
}

.dark .dc-chat-app,
.dark .dc-chat-thread,
.dark .dc-chat-thread__messages,
.dark .dc-chat-thread__header,
.dark .dc-chat-composer {
    background: #0f1c27;
}

.dark .dc-chat-thread__header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .dc-chat-thread__person-name,
.dark .dc-chat-thread__brand,
.dark .dc-chat-message--other,
.dark .dc-chat-composer__input {
    color: #edf7fb;
}

.dark .dc-chat-thread__person-status,
.dark .dc-chat-message__time,
.dark .dc-chat-composer__emoji {
    color: #97acbc;
}

.dark .dc-chat-message--other {
    background: #182734;
}

.dark .dc-chat-composer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark .dc-chat-composer__input {
    background: #162330;
}

@media (max-width: 980px) {
    .dc-chat-page .fi-page-content {
        padding: 0 !important;
    }

    .dc-chat-app {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 7.5rem);
    }

    .dc-chat-thread__messages {
        min-height: 20rem;
    }
}
.dc-chat-thread__hero {
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.dc-chat-thread__hero-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f3b66;
}

.dc-chat-thread__hero-subtitle {
    margin: 0.35rem 0 0;
    color: #5f7b96;
    font-size: 0.95rem;
}

.dc-chat-list__meta {
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
}

.dc-chat-message__image-link {
    display: block;
}

.dc-chat-message__image {
    display: block;
    width: min(100%, 18rem);
    border-radius: 0.85rem;
    object-fit: cover;
    margin-bottom: 0.6rem;
}

.dc-chat-composer__upload {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    background: #eef7f2;
    color: #0d7a63;
    padding: 0.75rem 0.95rem;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.dc-chat-composer__upload-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.dc-chat-composer__file {
    display: none;
}

.dc-chat-composer__preview {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.dc-chat-composer__preview-image {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 0.85rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.dc-chat-composer__preview-remove,
.dc-chat-composer__error {
    font-size: 0.82rem;
}

.dc-chat-composer__preview-remove {
    color: #c2410c;
    font-weight: 700;
}

.dc-chat-composer__error {
    margin-top: 0.65rem;
    color: #b91c1c;
}

.dc-activity-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: calc(100vh - 8rem);
}

.dc-activity-chat__topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1.3rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.dc-activity-chat__brand,
.dc-activity-chat__topbar-user,
.dc-activity-chat__conversation-identity,
.dc-activity-chat__thread-row,
.dc-activity-chat__message-row,
.dc-activity-chat__composer,
.dc-activity-chat__preview {
    display: flex;
    align-items: center;
}

.dc-activity-chat__brand {
    gap: 0.85rem;
}

.dc-activity-chat__brand-mark,
.dc-activity-chat__topbar-avatar,
.dc-activity-chat__thread-avatar,
.dc-activity-chat__conversation-avatar,
.dc-activity-chat__message-side-avatar {
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.dc-activity-chat__brand-mark {
    width: 2rem;
    height: 2rem;
    background: #fff1e6;
    color: #dc6b1f;
}

.dc-activity-chat__brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #152c45;
}

.dc-activity-chat__brand-subtitle {
    color: #7b8ca0;
    font-size: 0.82rem;
}

.dc-activity-chat__topbar-search {
    position: relative;
}

.dc-activity-chat__topbar-search-icon {
    position: absolute;
    top: 50%;
    left: 0.95rem;
    width: 1rem;
    height: 1rem;
    color: #94a3b8;
    transform: translateY(-50%);
}

.dc-activity-chat__topbar-search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.7rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: #fbfcfd;
    color: #163047;
}

.dc-activity-chat__topbar-avatar {
    width: 2.4rem;
    height: 2.4rem;
    background: linear-gradient(135deg, #ffd36f, #ff9d2e);
    color: #654100;
}

.dc-activity-chat__body {
    display: grid;
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    gap: 1rem;
    min-height: calc(100vh - 14rem);
}

.dc-activity-chat__sidebar,
.dc-activity-chat__conversation {
    display: flex;
    flex-direction: column;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.dc-activity-chat__sidebar {
    padding: 1.2rem;
    gap: 1rem;
}

.dc-activity-chat__sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dc-activity-chat__sidebar-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #152c45;
}

.dc-activity-chat__sidebar-subtitle {
    margin: 0.25rem 0 0;
    color: #7b8ca0;
    font-size: 0.82rem;
}

.dc-activity-chat__new-thread-trigger,
.dc-activity-chat__composer-send,
.dc-activity-chat__composer-icon-button {
    border: 0;
    cursor: pointer;
}

.dc-activity-chat__new-thread-trigger {
    display: inline-grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: #fff0e5;
    color: #ef7a29;
}

.dc-activity-chat__new-thread-trigger-icon {
    width: 1rem;
    height: 1rem;
}

.dc-activity-chat__new-thread {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
}

.dc-activity-chat__new-thread-select,
.dc-activity-chat__new-thread-button,
.dc-activity-chat__composer-input {
    border-radius: 999px;
}

.dc-activity-chat__new-thread-select {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #f9fbfc;
    color: #17304b;
}

.dc-activity-chat__new-thread-button {
    padding: 0.8rem 1rem;
    border: 0;
    background: #ef7a29;
    color: #fff;
    font-weight: 700;
}

.dc-activity-chat__thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-y: auto;
}

.dc-activity-chat__thread-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    width: 100%;
    padding: 0.85rem;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.dc-activity-chat__thread-item.is-active {
    background: #ecfbf6;
}

.dc-activity-chat__thread-avatar,
.dc-activity-chat__conversation-avatar,
.dc-activity-chat__message-side-avatar {
    width: 2.8rem;
    height: 2.8rem;
    background: linear-gradient(135deg, #4ad5b0, #1bb48c);
    color: #fff;
}

.dc-activity-chat__thread-content {
    min-width: 0;
}

.dc-activity-chat__thread-row {
    justify-content: space-between;
    gap: 0.75rem;
}

.dc-activity-chat__thread-row--preview {
    margin-top: 0.22rem;
}

.dc-activity-chat__thread-name {
    color: #152c45;
    font-weight: 700;
}

.dc-activity-chat__thread-time,
.dc-activity-chat__thread-preview,
.dc-activity-chat__message-time,
.dc-activity-chat__conversation-meta {
    color: #7b8ca0;
    font-size: 0.78rem;
}

.dc-activity-chat__thread-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-activity-chat__thread-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef7a29;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.dc-activity-chat__conversation {
    min-width: 0;
}

.dc-activity-chat__conversation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.dc-activity-chat__conversation-identity {
    gap: 0.85rem;
}

.dc-activity-chat__conversation-name {
    color: #152c45;
    font-size: 1.05rem;
    font-weight: 800;
}

.dc-activity-chat__conversation-class {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: #fff4ea;
    color: #c8681f;
    font-size: 0.8rem;
    font-weight: 700;
}

.dc-activity-chat__messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1.4rem;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #fcf9f6 100%);
}

.dc-activity-chat__message-row {
    gap: 0.75rem;
}

.dc-activity-chat__message-row.is-mine {
    justify-content: flex-end;
}

.dc-activity-chat__message {
    max-width: min(78%, 35rem);
    padding: 0.95rem 1rem 0.8rem;
    border-radius: 1.15rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.dc-activity-chat__message--mine {
    background: #ecfbf6;
    color: #17304b;
    border-top-right-radius: 0.35rem;
}

.dc-activity-chat__message--other {
    background: #ffffff;
    color: #17304b;
    border-top-left-radius: 0.35rem;
}

.dc-activity-chat__message-sender {
    margin-bottom: 0.35rem;
    color: #597186;
    font-size: 0.76rem;
    font-weight: 700;
}

.dc-activity-chat__message-image-link {
    display: block;
}

.dc-activity-chat__message-image {
    display: block;
    width: min(100%, 18rem);
    border-radius: 1rem;
    object-fit: cover;
    margin-bottom: 0.7rem;
}

.dc-activity-chat__message-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.dc-activity-chat__message-time {
    margin-top: 0.45rem;
}

.dc-activity-chat__preview {
    gap: 0.85rem;
    padding: 0.85rem 1.4rem 0;
}

.dc-activity-chat__preview-image {
    width: 4.75rem;
    height: 4.75rem;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.dc-activity-chat__preview-remove {
    border: 0;
    background: transparent;
    color: #cf5b17;
    font-weight: 700;
    cursor: pointer;
}

.dc-activity-chat__composer {
    gap: 0.75rem;
    padding: 1rem 1.3rem 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: #fff;
}

.dc-activity-chat__composer-icon-button,
.dc-activity-chat__composer-send {
    display: inline-grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
}

.dc-activity-chat__composer-icon-button {
    background: #fff3ea;
    color: #ea7a2f;
}

.dc-activity-chat__composer-icon,
.dc-activity-chat__composer-send-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.dc-activity-chat__composer-file {
    display: none;
}

.dc-activity-chat__composer-input {
    min-height: 3rem;
    flex: 1;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #fbfcfd;
    color: #17304b;
    resize: none;
}

.dc-activity-chat__composer-send {
    background: #ef7a29;
    color: #fff;
}

.dc-activity-chat__empty {
    color: #7b8ca0;
}

.dc-activity-chat__empty--sidebar {
    padding: 1rem 0.35rem;
}

.dc-activity-chat__empty--conversation {
    display: grid;
    place-items: center;
    min-height: 24rem;
    padding: 2rem;
}

.dc-activity-chat__error {
    padding: 0 1.4rem 1rem;
    color: #b91c1c;
    font-size: 0.82rem;
}

.dark .dc-activity-chat__topbar,
.dark .dc-activity-chat__sidebar,
.dark .dc-activity-chat__conversation,
.dark .dc-activity-chat__composer {
    background: #0f1c27;
}

.dark .dc-activity-chat__messages {
    background: #101b26;
}

.dark .dc-activity-chat__brand-name,
.dark .dc-activity-chat__sidebar-title,
.dark .dc-activity-chat__thread-name,
.dark .dc-activity-chat__conversation-name,
.dark .dc-activity-chat__message--other,
.dark .dc-activity-chat__message--mine,
.dark .dc-activity-chat__composer-input,
.dark .dc-activity-chat__topbar-search-input {
    color: #eef8fb;
}

.dark .dc-activity-chat__brand-subtitle,
.dark .dc-activity-chat__sidebar-subtitle,
.dark .dc-activity-chat__thread-time,
.dark .dc-activity-chat__thread-preview,
.dark .dc-activity-chat__message-time,
.dark .dc-activity-chat__conversation-meta {
    color: #94a9ba;
}

.dark .dc-activity-chat__thread-item.is-active {
    background: #143124;
}

.dark .dc-activity-chat__message--other {
    background: #162733;
}

.dark .dc-activity-chat__message--mine {
    background: #13372f;
}

.dark .dc-activity-chat__composer-input,
.dark .dc-activity-chat__topbar-search-input,
.dark .dc-activity-chat__new-thread-select {
    background: #162430;
    border-color: rgba(148, 163, 184, 0.15);
}

@media (max-width: 980px) {
    .dc-activity-chat {
        min-height: auto;
    }

    .dc-activity-chat__topbar,
    .dc-activity-chat__body {
        grid-template-columns: 1fr;
    }

    .dc-activity-chat__body {
        min-height: auto;
    }

    .dc-activity-chat__conversation-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dc-activity-chat__message {
        max-width: 90%;
    }
}
