.mw-navbtn-notify,
.mw-mobile-message-link {
    position: relative;
}

.mw-navbtn-badge,
.mw-mobile-pill,
.mw-msg-pill {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.mw-navbtn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.mw-mobile-message-link {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,.05);
    text-decoration: none;
    margin: 12px 0 0;
}

.mw-msg-page {
    --msg-panel: rgba(10, 18, 36, .92);
    --msg-panel-2: rgba(15, 24, 45, .96);
    --msg-surface: rgba(255, 255, 255, .05);
    --msg-border: rgba(255, 255, 255, .10);
    --msg-border-strong: rgba(255, 255, 255, .16);
    --msg-text: #f8fbff;
    --msg-muted: #aebad1;
    --msg-soft: #7e8aa3;
    --msg-red: #dc2626;
    --msg-red-2: #b91c1c;
    --msg-incoming: #111d35;
    --msg-track: rgba(255, 255, 255, .03);
    position: relative;
}

    .mw-msg-page .container-mw {
        position: relative;
        z-index: 1;
        max-width: 1380px;
    }

.mw-msg-shell {
    padding: 26px 0 72px;
}

.mw-msg-page .mw-seller-btn,
.mw-msg-page .mw-msg-thread,
.mw-msg-page .mw-msg-shortcuts a,
.mw-msg-page .mw-msg-tool,
.mw-msg-page .mw-msg-lead-toggle,
.mw-msg-page .mw-msg-attachment-chip,
.mw-msg-page .mw-msg-preview-dialog {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.mw-msg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.mw-msg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--msg-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mw-msg-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3.55rem);
    line-height: 1.02;
    margin: 0 0 12px;
    font-weight: 900;
    letter-spacing: -.03em;
    max-width: 780px;
}

.mw-msg-hero p {
    color: rgba(255,255,255,.76);
    font-size: 1rem;
    max-width: 760px;
    margin: 0;
    line-height: 1.72;
}

.mw-msg-hero-actions-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 16px;
}

.mw-msg-hero-actions-title {
    color: var(--msg-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.mw-msg-hero-actions {
    display: grid;
    gap: 10px;
}

.mw-msg-page .mw-seller-btn {
    min-height: 48px;
    border-radius: 16px;
    box-shadow: none;
}

    .mw-msg-page .mw-seller-btn.primary {
        background: linear-gradient(135deg, var(--msg-red), var(--msg-red-2));
    }

    .mw-msg-page .mw-seller-btn.ghost {
        color: #f2f5fb;
        border: 1px solid rgba(255,255,255,.10);
        background: rgba(255,255,255,.05);
    }

    .mw-msg-page .mw-seller-btn.small {
        min-height: 42px;
        padding: 10px 14px;
        border-radius: 14px;
    }

.mw-msg-gate {
    background: var(--msg-panel);
    border: 1px solid var(--msg-border);
    border-radius: 24px;
    padding: 34px 24px;
    text-align: center;
    margin-bottom: 20px;
}

    .mw-msg-gate h3 {
        color: var(--msg-text);
        margin: 0 0 10px;
    }

    .mw-msg-gate p {
        color: var(--msg-muted);
        margin: 0 0 16px;
    }

.mw-msg-gate-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(220, 38, 38, .12);
    color: #ff9c9c;
    font-size: 24px;
}

.mw-msg-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.mw-msg-summary-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .10);
    position: relative;
    overflow: hidden;
}

    .mw-msg-summary-card::after {
        content: '';
        position: absolute;
        right: -34px;
        bottom: -34px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: rgba(59, 130, 246, .08);
    }

    .mw-msg-summary-card.soft-rose::after {
        background: rgba(244, 63, 94, .10);
    }

    .mw-msg-summary-card.soft-amber::after {
        background: rgba(245, 158, 11, .12);
    }

    .mw-msg-summary-card.soft-blue::after {
        background: rgba(59, 130, 246, .10);
    }

    .mw-msg-summary-card small {
        display: block;
        color: #64748b;
        font-size: 12px;
        letter-spacing: .12em;
        text-transform: uppercase;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .mw-msg-summary-card strong {
        display: block;
        font-size: 2.5rem;
        line-height: 1;
        color: #0f172a;
        margin-bottom: 10px;
    }

    .mw-msg-summary-card span {
        color: #64748b;
    }

.mw-msg-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr) 280px;
    grid-template-areas: "sidebar main side";
    gap: 20px;
    align-items: stretch;
}

.mw-msg-sidebar {
    grid-area: sidebar;
    min-height: 0;
}

.mw-msg-main {
    grid-area: main;
    min-width: 0;
    min-height: 0;
}

.mw-msg-sidepanels {
    grid-area: side;
    display: grid;
    gap: 16px;
    align-content: start;
    min-height: 0;
}

.mw-msg-panel {
    background: var(--msg-panel);
    border: 1px solid var(--msg-border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 24px 56px rgba(3, 9, 20, .16);
}

.mw-msg-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .mw-msg-panel-head h2 {
        margin: 6px 0 0;
        font-size: 1.4rem;
        color: var(--msg-text);
        font-weight: 900;
        letter-spacing: -.02em;
    }

    .mw-msg-panel-head.compact h2 {
        font-size: 1.14rem;
    }

.mw-msg-panel-copy {
    margin: -4px 0 14px;
    color: var(--msg-muted);
    line-height: 1.6;
    font-size: .92rem;
}

.mw-msg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(220, 38, 38, .12);
    color: #ff8f8f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mw-msg-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--msg-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

    .mw-msg-live-indicator span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 0 0 rgba(16,185,129,.55);
        animation: mwMsgPulse 1.8s infinite;
    }

@keyframes mwMsgPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16,185,129,.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16,185,129,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16,185,129,0);
    }
}

.mw-msg-search {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--msg-border-strong);
    border-radius: 16px;
    padding: 0 14px;
    margin-bottom: 14px;
    background: rgba(255,255,255,.04);
}

    .mw-msg-search i {
        color: var(--msg-soft);
    }

    .mw-msg-search input {
        width: 100%;
        border: 0;
        background: transparent;
        height: 48px;
        outline: none;
        color: var(--msg-text);
    }

        .mw-msg-search input::placeholder,
        .mw-msg-editor[data-placeholder]:empty:before {
            color: #8fa0bd;
        }

.mw-msg-thread-list,
.mw-msg-leads,
.mw-msg-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
}

.mw-msg-thread-list,
.mw-msg-leads {
    display: grid;
    gap: 12px;
    max-height: none;
    overflow: auto;
    padding-right: 4px;
}

    .mw-msg-thread-list::-webkit-scrollbar,
    .mw-msg-leads::-webkit-scrollbar,
    .mw-msg-messages::-webkit-scrollbar,
    .mw-msg-preview-body::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .mw-msg-thread-list::-webkit-scrollbar-thumb,
    .mw-msg-leads::-webkit-scrollbar-thumb,
    .mw-msg-messages::-webkit-scrollbar-thumb,
    .mw-msg-preview-body::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.12);
        border-radius: 999px;
    }

.mw-msg-thread {
    width: 100%;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 15px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    text-align: left;
    align-items: center;
    cursor: pointer;
}

    .mw-msg-thread:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,.16);
        background: rgba(255,255,255,.06);
    }

    .mw-msg-thread.is-active {
        border-color: rgba(220, 38, 38, .46);
        background: linear-gradient(135deg, rgba(220, 38, 38, .16), rgba(220, 38, 38, .07));
        box-shadow: 0 16px 34px rgba(185, 28, 28, .18);
    }

.mw-msg-thread-photo,
.mw-msg-conversation-thumb {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.78);
    flex: 0 0 68px;
}

    .mw-msg-thread-photo.empty {
        width: 100%;
        height: 100%;
    }

    .mw-msg-thread-photo img,
    .mw-msg-conversation-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.mw-msg-thread-copy {
    min-width: 0;
}

.mw-msg-thread-top,
.mw-msg-lead-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

    .mw-msg-thread-top strong,
    .mw-msg-lead-head strong {
        font-size: .98rem;
        color: var(--msg-text);
        font-weight: 800;
        line-height: 1.3;
    }

    .mw-msg-thread-top span,
    .mw-msg-lead-head span,
    .mw-msg-thread-preview,
    .mw-msg-thread-vehicle,
    .mw-msg-lead-meta,
    .mw-msg-lead-contact,
    .mw-msg-conversation-copy p,
    .mw-msg-empty-inline,
    .mw-msg-empty-hero p,
    .mw-msg-bubble-time,
    .mw-msg-open-vehicle,
    .mw-msg-composer-hint,
    .mw-msg-file-meta {
        color: var(--msg-muted);
        font-size: .9rem;
    }

.mw-msg-thread-vehicle {
    font-weight: 700;
    color: #dce6f7;
    margin-bottom: 4px;
}

.mw-msg-thread-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

.mw-msg-thread-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, .18);
    color: #ffb5b5;
    font-size: 12px;
    font-weight: 800;
}

.mw-msg-conversation-panel {
    min-height: 0;
    height: clamp(700px, calc(100vh - 315px), 1110px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.mw-msg-conversation-head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mw-msg-empty-hero {
    min-height: 170px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--msg-muted);
    padding: 24px;
}

    .mw-msg-empty-hero h3 {
        margin: 0 0 8px;
        color: var(--msg-text);
        font-size: 1.18rem;
    }

    .mw-msg-empty-hero i {
        font-size: 26px;
        color: #ff8f8f;
        margin-bottom: 12px;
    }

.mw-msg-empty-inline {
    padding: 18px;
    border: 1px dashed rgba(255,255,255,.10);
    border-radius: 16px;
    text-align: center;
}

.mw-msg-conversation-top {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.mw-msg-conversation-copy {
    flex: 1;
    min-width: 220px;
}

    .mw-msg-conversation-copy h2 {
        margin: 8px 0 6px;
        font-size: 1.45rem;
        font-weight: 900;
        color: var(--msg-text);
        letter-spacing: -.02em;
    }

.mw-msg-open-vehicle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
}

    .mw-msg-open-vehicle:hover {
        color: #fff;
        border-color: rgba(255,255,255,.18);
    }

.mw-msg-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 2px 16px;
    overflow: auto;
    min-height: 0;
}

.mw-msg-message-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

    .mw-msg-message-row.mine {
        align-items: flex-end;
    }

.mw-msg-bubble {
    max-width: min(84%, 680px);
    padding: 14px 16px;
    border-radius: 18px 18px 18px 6px;
    background: var(--msg-incoming);
    color: var(--msg-text);
    border: 1px solid rgba(255,255,255,.06);
}

    .mw-msg-bubble.mine {
        margin-left: auto;
        background: linear-gradient(135deg, var(--msg-red), var(--msg-red-2));
        color: #fff;
        border-radius: 18px 18px 6px 18px;
        border-color: transparent;
        box-shadow: 0 18px 34px rgba(185, 28, 28, .18);
    }

.mw-msg-bubble-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    opacity: .78;
    margin-bottom: 8px;
    color: inherit;
}

.mw-msg-bubble-text {
    white-space: normal;
    line-height: 1.72;
    word-break: break-word;
}

    .mw-msg-bubble-text p,
    .mw-msg-bubble-text ul,
    .mw-msg-bubble-text ol,
    .mw-msg-bubble-text h4 {
        margin: 0 0 10px;
    }

        .mw-msg-bubble-text p:last-child,
        .mw-msg-bubble-text ul:last-child,
        .mw-msg-bubble-text ol:last-child,
        .mw-msg-bubble-text h4:last-child {
            margin-bottom: 0;
        }

    .mw-msg-bubble-text a {
        color: inherit;
        text-decoration: underline;
    }

    .mw-msg-bubble-text h4 {
        font-size: 1rem;
        font-weight: 900;
    }

.mw-msg-bubble-time {
    margin-top: 10px;
    font-size: 11px;
    opacity: .78;
}

.mw-msg-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.mw-msg-attachment-card {
    width: min(220px, 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.08);
}

.mw-msg-bubble.mine .mw-msg-attachment-card {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

.mw-msg-attachment-preview {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: rgba(7, 12, 23, .28);
    overflow: hidden;
}

    .mw-msg-attachment-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-msg-attachment-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.12);
    font-size: 22px;
}

.mw-msg-attachment-body {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.mw-msg-file-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}

.mw-msg-file-meta {
    font-size: 12px;
}

.mw-msg-attachment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mw-msg-attachment-chip {
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: inherit;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

    .mw-msg-attachment-chip:hover {
        transform: translateY(-1px);
    }

.mw-msg-composer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 14px;
    display: grid;
    gap: 12px;
}

.mw-msg-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mw-msg-tool {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: var(--msg-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .mw-msg-tool:hover,
    .mw-msg-tool.is-active,
    .mw-msg-tool-file:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.18);
        background: rgba(255,255,255,.08);
    }

.mw-msg-tool-file {
    cursor: pointer;
}

.mw-msg-editor-shell {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    overflow: hidden;
}

.mw-msg-editor {
    width: 100%;
    min-height: 132px;
    max-height: 280px;
    overflow: auto;
    padding: 14px 16px;
    outline: none;
    color: var(--msg-text);
    line-height: 1.72;
}

    .mw-msg-editor h4 {
        margin: 0 0 10px;
        font-size: 1.02rem;
        font-weight: 900;
    }

    .mw-msg-editor ul,
    .mw-msg-editor ol {
        padding-left: 20px;
    }

.mw-msg-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.mw-msg-pending-file {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    overflow: hidden;
}

.mw-msg-pending-preview {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.05);
    overflow: hidden;
}

    .mw-msg-pending-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-msg-pending-body {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.mw-msg-pending-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mw-msg-pending-remove {
    border: 0;
    background: rgba(220, 38, 38, .14);
    color: #ffb5b5;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.mw-msg-composer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mw-msg-composer-counts {
    display: inline-flex;
    gap: 10px;
    color: var(--msg-muted);
    font-size: 12px;
    font-weight: 700;
}

.mw-msg-composer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mw-msg-lead-item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    overflow: hidden;
}

.mw-msg-lead-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 14px;
    text-align: left;
    cursor: pointer;
}

    .mw-msg-lead-toggle:hover {
        background: rgba(255,255,255,.03);
    }

.mw-msg-lead-item.is-open {
    border-color: rgba(220, 38, 38, .22);
}

.mw-msg-lead-vehicle {
    color: #e7edf9;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 6px;
}

.mw-msg-lead-contact {
    line-height: 1.6;
}

.mw-msg-lead-body {
    display: none;
    padding: 0 14px 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.mw-msg-lead-item.is-open .mw-msg-lead-body {
    display: block;
}

.mw-msg-lead-body p {
    margin: 12px 0 0;
    color: #d4deef;
    line-height: 1.6;
}

.mw-msg-lead-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mw-msg-lead-btn {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: var(--msg-text);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

    .mw-msg-lead-btn.primary {
        background: rgba(220, 38, 38, .16);
        color: #ffd6d6;
        border-color: rgba(220, 38, 38, .24);
    }

    .mw-msg-lead-btn.success {
        background: rgba(16, 185, 129, .14);
        color: white;
        border-color: rgba(16,185,129,.22);
    }

    .mw-msg-lead-btn.dark {
        background: rgba(255,255,255,.08);
    }

.mw-msg-shortcuts {
    display: grid;
    gap: 12px;
}

    .mw-msg-shortcuts a {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: var(--msg-text);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px;
        padding: 14px 16px;
        background: rgba(255,255,255,.04);
    }

        .mw-msg-shortcuts a:hover {
            transform: translateY(-1px);
            border-color: rgba(255,255,255,.16);
        }

        .mw-msg-shortcuts a span,
        .mw-msg-shortcuts a i {
            color: var(--msg-text);
        }

.mw-msg-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}

    .mw-msg-preview-modal.is-open {
        display: block;
    }

.mw-msg-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, .72);
    backdrop-filter: blur(6px);
}

.mw-msg-preview-dialog {
    position: absolute;
    inset: 30px;
    margin: auto;
    width: min(1240px, calc(100vw - 32px));
    height: min(88vh, 1300px);
    background: #091122;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 34px 70px rgba(0,0,0,.32);
}

.mw-msg-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}

.mw-msg-preview-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

    .mw-msg-preview-copy strong,
    .mw-msg-preview-copy span {
        color: #fff;
    }

    .mw-msg-preview-copy strong {
        font-size: 1rem;
        font-weight: 900;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mw-msg-preview-copy span {
        color: var(--msg-muted);
        font-size: .9rem;
    }

.mw-msg-preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mw-msg-preview-body {
    overflow: auto;
    padding: 18px;
    background: #050c19;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

    .mw-msg-preview-body.is-pdf,
    .mw-msg-preview-body.is-file {
        display: block;
    }

.mw-msg-preview-image-wrap {
    width: auto;
    max-width: 100%;
}

.mw-msg-preview-body img {
    width: auto;
    height: auto;
    max-width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    display: block;
    margin: 0 auto;
}

.mw-msg-preview-body iframe {
    width: 100%;
    height: calc(82vh - 140px);
    min-height: 620px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    display: block;
}

.mw-msg-preview-file-fallback {
    height: 100%;
    min-height: 340px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,.12);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    color: #fff;
}

    .mw-msg-preview-file-fallback i {
        font-size: 42px;
        margin-bottom: 12px;
        color: #ffb5b5;
    }

@media (max-width: 1399px) {
    .mw-msg-layout {
        grid-template-columns: 320px minmax(0, 1fr);
        grid-template-areas:
            "sidebar main"
            "side side";
    }

    .mw-msg-conversation-panel,
    .mw-msg-thread-list,
    .mw-msg-leads {
        height: auto;
        min-height: 0;
    }

    .mw-msg-sidepanels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .mw-msg-shell {
        padding: 22px 0 60px;
    }

    .mw-msg-hero {
        grid-template-columns: 1fr;
    }

    .mw-msg-summary-grid {
        grid-template-columns: 1fr;
    }

    .mw-msg-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar"
            "side";
    }

    .mw-msg-sidepanels {
        grid-template-columns: 1fr;
    }

    .mw-msg-conversation-panel,
    .mw-msg-thread-list,
    .mw-msg-leads {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .mw-msg-preview-dialog {
        inset: 14px;
        width: auto;
        height: auto;
        max-height: calc(100vh - 28px);
    }

    .mw-msg-preview-body iframe {
        min-height: 420px;
        height: calc(100vh - 170px);
    }
}

@media (max-width: 767px) {
    .mw-msg-hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }

    .mw-msg-panel,
    .mw-msg-summary-card,
    .mw-msg-hero-actions-card,
    .mw-msg-gate {
        border-radius: 20px;
    }

    .mw-msg-thread {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .mw-msg-thread-photo,
    .mw-msg-conversation-thumb {
        width: 58px;
        height: 58px;
        border-radius: 15px;
    }

    .mw-msg-thread-badge {
        grid-column: 2 / 3;
        justify-self: start;
    }

    .mw-msg-conversation-copy {
        min-width: 0;
    }

        .mw-msg-conversation-copy h2 {
            font-size: 1.24rem;
        }

    .mw-msg-bubble {
        max-width: 100%;
    }

    .mw-msg-composer-actions {
        justify-content: stretch;
    }

        .mw-msg-composer-actions .mw-seller-btn {
            width: 100%;
        }

    .mw-msg-toolbar {
        gap: 6px;
    }

    .mw-msg-tool {
        width: 40px;
        height: 40px;
    }

    .mw-msg-composer-meta {
        align-items: flex-start;
    }

    .mw-msg-preview-top {
        flex-direction: column;
        align-items: stretch;
    }

    .mw-msg-preview-actions {
        justify-content: stretch;
    }

        .mw-msg-preview-actions .mw-seller-btn {
            width: 100%;
        }
}

html.mw-modal-open,
body.mw-modal-open {
    overflow: hidden;
}



.mw-msg-live-indicator em {
    font-style: normal;
}

.mw-msg-thread-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.mw-msg-thread-filter,
.mw-msg-lead-btn,
.mw-msg-attachment-chip,
.mw-msg-tool,
.mw-msg-pending-remove,
.mw-msg-open-vehicle,
.mw-msg-tool-file,
.mw-msg-preview-actions .mw-seller-btn {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    text-decoration: none !important;
}

.mw-msg-thread-filter,
.mw-msg-lead-btn,
.mw-msg-attachment-chip,
.mw-msg-tool,
.mw-msg-pending-remove,
.mw-msg-open-vehicle,
.mw-msg-tool-file {
    outline: none;
}

.mw-msg-thread-filter {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: var(--msg-text);
    border-radius: 14px;
    min-height: 42px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

    .mw-msg-thread-filter em {
        font-style: normal;
        color: var(--msg-muted);
        font-size: 11px;
        font-weight: 900;
    }

    .mw-msg-thread-filter.is-active {
        border-color: rgba(220, 38, 38, .34);
        background: rgba(220, 38, 38, .12);
        color: #fff;
    }

        .mw-msg-thread-filter.is-active em {
            color: #ffd1d1;
        }

.mw-msg-thread {
    grid-template-columns: 72px minmax(0, 1fr) 34px;
    align-items: start;
}

.mw-msg-thread-top {
    display: grid;
    gap: 3px;
    margin-bottom: 8px;
}

    .mw-msg-thread-top strong {
        display: block;
    }

    .mw-msg-thread-top span {
        display: block;
        font-size: 12px;
        line-height: 1.35;
    }

.mw-msg-thread-badge {
    justify-self: end;
    align-self: start;
    margin-top: 2px;
}

.mw-msg-panel-copy {
    margin: -4px 0 14px;
    color: var(--msg-muted);
    line-height: 1.6;
    font-size: .92rem;
}

.mw-msg-conversation-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mw-msg-file-badge {
    min-width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .08em;
    color: #fff;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

    .mw-msg-file-badge.pdf {
        background: linear-gradient(135deg, #dc2626, #991b1b);
    }

    .mw-msg-file-badge.word {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }

    .mw-msg-file-badge.image {
        background: linear-gradient(135deg, #0f766e, #0d9488);
    }

    .mw-msg-file-badge.file {
        background: linear-gradient(135deg, #475569, #334155);
    }

.mw-msg-preview-file-fallback .mw-msg-file-badge {
    margin: 0 auto;
}

.mw-msg-toolbar {
    gap: 8px;
}

.mw-msg-tool {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: var(--msg-text) !important;
}

.mw-msg-tool-file {
    width: auto !important;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

    .mw-msg-tool-file i,
    .mw-msg-tool-file span,
    .mw-msg-attachment-chip i,
    .mw-msg-attachment-chip span,
    .mw-msg-lead-btn i,
    .mw-msg-lead-btn span,
    .mw-msg-open-vehicle i,
    .mw-msg-open-vehicle span {
        color: inherit !important;
    }

.mw-msg-editor[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #8fa0bd;
    pointer-events: none;
}

.mw-msg-lead-btn,
.mw-msg-attachment-chip {
    color: inherit !important;
    text-decoration: none !important;
}

.mw-msg-attachment-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mw-msg-attachment-chip,
.mw-msg-lead-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .mw-msg-attachment-chip:hover,
    .mw-msg-lead-btn:hover,
    .mw-msg-thread-filter:hover,
    .mw-msg-tool:hover {
        transform: translateY(-1px);
    }

.mw-msg-preview-actions a,
.mw-msg-preview-actions button {
    text-decoration: none !important;
}

@media (max-width: 767px) {
    .mw-msg-thread {
        grid-template-columns: 58px minmax(0, 1fr) 28px;
    }

    .mw-msg-thread-filter {
        min-height: 40px;
        padding: 9px 10px;
    }

    .mw-msg-conversation-actions {
        width: 100%;
        justify-content: stretch;
    }

        .mw-msg-conversation-actions .mw-seller-btn,
        .mw-msg-conversation-actions .mw-msg-open-vehicle {
            width: 100%;
            justify-content: center;
        }
}

.mw-navbtn-notify,
.mw-mobile-message-link {
    position: relative;
}

.mw-navbtn-badge,
.mw-mobile-pill,
.mw-msg-pill {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.mw-navbtn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.mw-mobile-message-link {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,.05);
    text-decoration: none;
    margin: 12px 0 0;
}

.mw-msg-page {
    --msg-panel: rgba(10, 18, 36, .92);
    --msg-panel-2: rgba(15, 24, 45, .96);
    --msg-surface: rgba(255, 255, 255, .04);
    --msg-border: rgba(255, 255, 255, .09);
    --msg-border-strong: rgba(255, 255, 255, .14);
    --msg-text: #f8fbff;
    --msg-muted: #aebad1;
    --msg-soft: #7e8aa3;
    --msg-red: #dc2626;
    --msg-red-2: #b91c1c;
    --msg-incoming: #121d34;
    --msg-track: rgba(255, 255, 255, .03);
    position: relative;
}

    .mw-msg-page .container-mw {
        position: relative;
        z-index: 1;
    }

.mw-msg-shell {
    padding: 26px 0 72px;
}

.mw-msg-page .mw-seller-btn,
.mw-msg-page .mw-msg-thread,
.mw-msg-page .mw-msg-shortcuts a,
.mw-msg-page .mw-msg-refresh {
    transition: none;
}

    .mw-msg-page .mw-seller-btn:hover,
    .mw-msg-page .mw-msg-shortcuts a:hover,
    .mw-msg-page .mw-msg-thread:hover {
        transform: none;
    }

.mw-msg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.mw-msg-hero-copy {
    min-width: 0;
}

.mw-msg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--msg-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mw-msg-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3.55rem);
    line-height: 1.02;
    margin: 0 0 12px;
    font-weight: 900;
    letter-spacing: -.03em;
    max-width: 780px;
}

.mw-msg-hero p {
    color: rgba(255,255,255,.76);
    font-size: 1rem;
    max-width: 760px;
    margin: 0;
    line-height: 1.72;
}

.mw-msg-hero-actions-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 16px;
}

.mw-msg-hero-actions-title {
    color: var(--msg-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.mw-msg-hero-actions {
    display: grid;
    gap: 10px;
}

.mw-msg-page .mw-seller-btn {
    min-height: 48px;
    border-radius: 16px;
    box-shadow: none;
}

    .mw-msg-page .mw-seller-btn.primary {
        background: linear-gradient(135deg, var(--msg-red), var(--msg-red-2));
    }

    .mw-msg-page .mw-seller-btn.ghost {
        color: #f2f5fb;
        border: 1px solid rgba(255,255,255,.10);
        background: rgba(255,255,255,.05);
    }

.mw-msg-gate {
    background: var(--msg-panel);
    border: 1px solid var(--msg-border);
    border-radius: 24px;
    padding: 34px 24px;
    text-align: center;
    margin-bottom: 20px;
}

    .mw-msg-gate h3 {
        color: var(--msg-text);
        margin: 0 0 10px;
    }

    .mw-msg-gate p {
        color: var(--msg-muted);
        margin: 0 0 16px;
    }

.mw-msg-gate-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(220, 38, 38, .12);
    color: #ff9c9c;
    font-size: 24px;
}

.mw-msg-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.mw-msg-summary-card {
    background: var(--msg-panel);
    border: 1px solid var(--msg-border);
    border-radius: 22px;
    padding: 18px 20px;
}

    .mw-msg-summary-card small {
        display: block;
        color: var(--msg-soft);
        font-size: 11px;
        letter-spacing: .12em;
        text-transform: uppercase;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .mw-msg-summary-card strong {
        display: block;
        font-size: clamp(2rem, 3vw, 2.35rem);
        line-height: 1;
        color: var(--msg-text);
        margin-bottom: 10px;
        font-weight: 900;
    }

    .mw-msg-summary-card span {
        color: var(--msg-muted);
        font-size: .96rem;
    }

.mw-msg-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr) 290px;
    grid-template-areas: "sidebar main side";
    gap: 16px;
    align-items: start;
}

.mw-msg-sidebar {
    grid-area: sidebar;
}

.mw-msg-main {
    grid-area: main;
    min-width: 0;
}

.mw-msg-sidepanels {
    grid-area: side;
    display: grid;
    gap: 16px;
    align-content: start;
}

.mw-msg-panel {
    background: var(--msg-panel);
    border: 1px solid var(--msg-border);
    border-radius: 24px;
    padding: 18px;
}

.mw-msg-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .mw-msg-panel-head h2 {
        margin: 6px 0 0;
        font-size: 1.4rem;
        color: var(--msg-text);
        font-weight: 900;
        letter-spacing: -.02em;
    }

    .mw-msg-panel-head.compact h2 {
        font-size: 1.14rem;
    }

.mw-msg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(220, 38, 38, .12);
    color: #ff8f8f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mw-msg-refresh {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    color: var(--msg-text);
}

.mw-msg-search {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--msg-border-strong);
    border-radius: 16px;
    padding: 0 14px;
    margin-bottom: 14px;
    background: rgba(255,255,255,.04);
}

    .mw-msg-search i {
        color: var(--msg-soft);
    }

    .mw-msg-search input {
        width: 100%;
        border: 0;
        background: transparent;
        height: 46px;
        outline: none;
        color: var(--msg-text);
    }

        .mw-msg-search input::placeholder {
            color: #8fa0bd;
        }

.mw-msg-thread-list,
.mw-msg-leads {
    display: grid;
    gap: 10px;
    max-height: 690px;
    overflow: auto;
    padding-right: 4px;
}

    .mw-msg-thread-list::-webkit-scrollbar,
    .mw-msg-leads::-webkit-scrollbar,
    .mw-msg-messages::-webkit-scrollbar {
        width: 8px;
    }

    .mw-msg-thread-list::-webkit-scrollbar-thumb,
    .mw-msg-leads::-webkit-scrollbar-thumb,
    .mw-msg-messages::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.10);
        border-radius: 999px;
    }

.mw-msg-thread {
    width: 100%;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    text-align: left;
    align-items: center;
    cursor: pointer;
}

    .mw-msg-thread.is-active {
        border-color: rgba(220, 38, 38, .40);
        background: rgba(220, 38, 38, .10);
    }

.mw-msg-thread-photo,
.mw-msg-conversation-thumb {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.78);
    flex: 0 0 62px;
}

    .mw-msg-thread-photo.empty {
        width: 100%;
        height: 100%;
    }

    .mw-msg-thread-photo img,
    .mw-msg-conversation-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.mw-msg-thread-copy {
    min-width: 0;
}

.mw-msg-thread-top,
.mw-msg-lead-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

    .mw-msg-thread-top strong,
    .mw-msg-lead-head strong {
        font-size: .96rem;
        color: var(--msg-text);
        font-weight: 800;
        line-height: 1.3;
    }

    .mw-msg-thread-top span,
    .mw-msg-lead-head span,
    .mw-msg-thread-preview,
    .mw-msg-thread-vehicle,
    .mw-msg-lead-meta,
    .mw-msg-lead-contact,
    .mw-msg-conversation-copy p,
    .mw-msg-empty-inline,
    .mw-msg-empty-hero p,
    .mw-msg-bubble-time,
    .mw-msg-open-vehicle {
        color: var(--msg-muted);
        font-size: .9rem;
    }

.mw-msg-thread-preview,
.mw-msg-thread-vehicle {
    line-height: 1.45;
}

.mw-msg-thread-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mw-msg-thread-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, .18);
    color: #ffb5b5;
    font-size: 12px;
    font-weight: 800;
}

.mw-msg-conversation-panel {
    min-height: 690px;
    display: flex;
    flex-direction: column;
}

.mw-msg-conversation-head {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mw-msg-empty-hero {
    min-height: 170px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--msg-muted);
    padding: 24px;
}

    .mw-msg-empty-hero h3 {
        margin: 0 0 8px;
        color: var(--msg-text);
        font-size: 1.18rem;
    }

    .mw-msg-empty-hero i {
        font-size: 26px;
        color: #ff8f8f;
        margin-bottom: 12px;
    }

.mw-msg-conversation-top {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.mw-msg-conversation-copy {
    flex: 1;
    min-width: 220px;
}

    .mw-msg-conversation-copy h2 {
        margin: 8px 0 6px;
        font-size: 1.45rem;
        font-weight: 900;
        color: var(--msg-text);
        letter-spacing: -.02em;
    }

.mw-msg-open-vehicle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
}

.mw-msg-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 2px 14px;
    overflow: auto;
    min-height: 340px;
}

.mw-msg-bubble {
    max-width: min(82%, 600px);
    padding: 13px 15px;
    border-radius: 18px 18px 18px 6px;
    background: var(--msg-incoming);
    color: var(--msg-text);
    border: 1px solid rgba(255,255,255,.06);
}

    .mw-msg-bubble.mine {
        margin-left: auto;
        background: linear-gradient(135deg, var(--msg-red), var(--msg-red-2));
        color: #fff;
        border-radius: 18px 18px 6px 18px;
        border-color: transparent;
    }

.mw-msg-bubble-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
    opacity: .78;
    margin-bottom: 6px;
    color: inherit;
}

.mw-msg-bubble-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.mw-msg-bubble-time {
    margin-top: 8px;
    font-size: 11px;
    opacity: .78;
}

.mw-msg-composer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 14px;
}

    .mw-msg-composer textarea {
        width: 100%;
        min-height: 106px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 18px;
        padding: 14px 16px;
        resize: vertical;
        outline: none;
        color: var(--msg-text);
        background: rgba(255,255,255,.04);
    }

        .mw-msg-composer textarea::placeholder {
            color: #8fa0bd;
        }

.mw-msg-composer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.mw-msg-lead-item {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,.04);
}

.mw-msg-lead-vehicle {
    color: #e7edf9;
    font-size: .93rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 6px;
}

.mw-msg-lead-item p {
    margin: 10px 0 0;
    color: #d4deef;
    line-height: 1.6;
}

.mw-msg-shortcuts {
    display: grid;
    gap: 12px;
}

    .mw-msg-shortcuts a {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: var(--msg-text);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px;
        padding: 14px 16px;
        background: rgba(255,255,255,.04);
    }

        .mw-msg-shortcuts a span,
        .mw-msg-shortcuts a i {
            color: var(--msg-text);
        }

@media (max-width: 1279px) {
    .mw-msg-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        grid-template-areas:
            "sidebar main"
            "side side";
    }

    .mw-msg-sidepanels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .mw-msg-shell {
        padding: 22px 0 60px;
    }

    .mw-msg-hero {
        grid-template-columns: 1fr;
    }

    .mw-msg-summary-grid {
        grid-template-columns: 1fr;
    }

    .mw-msg-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "sidebar"
            "side";
    }

    .mw-msg-sidepanels {
        grid-template-columns: 1fr;
    }

    .mw-msg-conversation-panel,
    .mw-msg-thread-list,
    .mw-msg-leads {
        min-height: 0;
        max-height: none;
    }
}

@media (max-width: 767px) {
    .mw-msg-hero h1 {
        font-size: clamp(1.9rem, 10vw, 2.8rem);
    }

    .mw-msg-panel,
    .mw-msg-summary-card,
    .mw-msg-hero-actions-card,
    .mw-msg-gate {
        border-radius: 20px;
    }

    .mw-msg-thread {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .mw-msg-thread-photo,
    .mw-msg-conversation-thumb {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .mw-msg-thread-badge {
        grid-column: 2 / 3;
        justify-self: start;
    }

    .mw-msg-conversation-copy {
        min-width: 0;
    }

        .mw-msg-conversation-copy h2 {
            font-size: 1.24rem;
        }

    .mw-msg-bubble {
        max-width: 100%;
    }

    .mw-msg-composer-actions {
        justify-content: stretch;
    }

        .mw-msg-composer-actions .mw-seller-btn {
            width: 100%;
        }
}


@media (max-width: 767px) {
    .mw-msg-shell {
        padding: 26px 0 64px;
    }

    .mw-msg-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .mw-msg-summary-grid,
    .mw-seller-mini-grid {
        grid-template-columns: 1fr;
    }

    .mw-msg-panel,
    .mw-msg-summary-card,
    .mw-seller-mini-card {
        border-radius: 22px;
    }

    .mw-msg-thread {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .mw-msg-thread-badge {
        grid-column: 2 / 3;
        justify-self: start;
    }

    .mw-msg-bubble {
        max-width: 100%;
    }
}

.mw-msg-summary-grid,
.mw-seller-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.mw-msg-summary-card,
.mw-seller-mini-card {
    background: #fff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .10);
    position: relative;
    overflow: hidden;
}

    .mw-msg-summary-card::after,
    .mw-seller-mini-card::after {
        content: '';
        position: absolute;
        right: -34px;
        bottom: -34px;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: rgba(59, 130, 246, .08);
    }

    .mw-msg-summary-card.soft-rose::after,
    .mw-seller-mini-card.soft-rose::after {
        background: rgba(244, 63, 94, .10);
    }

    .mw-msg-summary-card.soft-amber::after,
    .mw-seller-mini-card.soft-amber::after {
        background: rgba(245, 158, 11, .12);
    }

    .mw-msg-summary-card.soft-blue::after,
    .mw-seller-mini-card.soft-blue::after {
        background: rgba(59, 130, 246, .10);
    }

    .mw-msg-summary-card small,
    .mw-seller-mini-card small {
        display: block;
        color: #64748b;
        font-size: 12px;
        letter-spacing: .12em;
        text-transform: uppercase;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .mw-msg-summary-card strong,
    .mw-seller-mini-card strong {
        display: block;
        font-size: 2.5rem;
        line-height: 1;
        color: #0f172a;
        margin-bottom: 10px;
    }

    .mw-msg-summary-card span,
    .mw-seller-mini-card span {
        color: #64748b;
    }

.mw-seller-btn.danger-outline {
    color: #ffd0d0;
    border: 1px solid rgba(239, 68, 68, .34);
    background: rgba(220, 38, 38, .10);
}

    .mw-seller-btn.danger-outline:hover {
        background: rgba(220, 38, 38, .16);
        border-color: rgba(239, 68, 68, .52);
    }

.mw-msg-conversation-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.mw-msg-lead-item.is-open {
    border-color: rgba(220, 38, 38, .28);
    box-shadow: 0 14px 30px rgba(185, 28, 28, .10);
}

.mw-msg-lead-body {
    display: none;
}

.mw-msg-lead-item.is-open .mw-msg-lead-body {
    display: block;
}

@media (max-width: 767px) {
    .mw-msg-conversation-actions .mw-seller-btn.danger-outline {
        width: 100%;
        justify-content: center;
    }
}

.mw-msg-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--msg-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

    .mw-msg-live-indicator span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 0 0 rgba(16,185,129,.55);
        animation: mwMsgPulse 1.8s infinite;
    }

    .mw-msg-live-indicator em {
        font-style: normal;
    }

@keyframes mwMsgPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16,185,129,.55);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16,185,129,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16,185,129,0);
    }
}

.mw-msg-thread-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.mw-msg-thread-filter,
.mw-msg-lead-btn,
.mw-msg-attachment-chip,
.mw-msg-tool,
.mw-msg-pending-remove,
.mw-msg-open-vehicle,
.mw-msg-tool-file,
.mw-msg-preview-actions .mw-seller-btn {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    text-decoration: none !important;
}

.mw-msg-thread-filter,
.mw-msg-lead-btn,
.mw-msg-attachment-chip,
.mw-msg-tool,
.mw-msg-pending-remove,
.mw-msg-open-vehicle,
.mw-msg-tool-file {
    outline: none;
}

.mw-msg-thread-filter {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: var(--msg-text);
    border-radius: 14px;
    min-height: 42px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

    .mw-msg-thread-filter em {
        font-style: normal;
        color: var(--msg-muted);
        font-size: 11px;
        font-weight: 900;
    }

    .mw-msg-thread-filter.is-active {
        border-color: rgba(220, 38, 38, .34);
        background: rgba(220, 38, 38, .12);
        color: #fff;
    }

        .mw-msg-thread-filter.is-active em {
            color: #ffd1d1;
        }

.mw-msg-thread {
    grid-template-columns: 72px minmax(0, 1fr) 34px;
    align-items: start;
}

.mw-msg-thread-top {
    display: grid;
    gap: 3px;
    margin-bottom: 8px;
}

    .mw-msg-thread-top strong {
        display: block;
    }

    .mw-msg-thread-top span {
        display: block;
        font-size: 12px;
        line-height: 1.35;
    }

.mw-msg-thread-badge {
    justify-self: end;
    align-self: start;
    margin-top: 2px;
}

.mw-msg-file-badge {
    min-width: 72px;
    height: 72px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .08em;
    color: #fff;
    background: rgba(255,255,255,.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}

    .mw-msg-file-badge.pdf {
        background: linear-gradient(135deg, #dc2626, #991b1b);
    }

    .mw-msg-file-badge.word {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
    }

    .mw-msg-file-badge.image {
        background: linear-gradient(135deg, #0f766e, #0d9488);
    }

    .mw-msg-file-badge.file {
        background: linear-gradient(135deg, #475569, #334155);
    }

.mw-msg-preview-file-fallback .mw-msg-file-badge {
    margin: 0 auto;
}

.mw-msg-toolbar {
    gap: 8px;
}

.mw-msg-tool {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: var(--msg-text) !important;
}

.mw-msg-tool-file {
    width: auto !important;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

    .mw-msg-tool-file i,
    .mw-msg-tool-file span,
    .mw-msg-attachment-chip i,
    .mw-msg-attachment-chip span,
    .mw-msg-lead-btn i,
    .mw-msg-lead-btn span,
    .mw-msg-open-vehicle i,
    .mw-msg-open-vehicle span {
        color: inherit !important;
    }

.mw-msg-editor[data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #8fa0bd;
    pointer-events: none;
}

.mw-msg-attachment-chip,
.mw-msg-lead-btn {
    color: white !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .mw-msg-attachment-chip:hover,
    .mw-msg-lead-btn:hover,
    .mw-msg-thread-filter:hover,
    .mw-msg-tool:hover {
        transform: translateY(-1px);
    }

@media (max-width: 767px) {
    .mw-msg-thread {
        grid-template-columns: 58px minmax(0, 1fr) 28px;
    }

    .mw-msg-thread-filter {
        min-height: 40px;
        padding: 9px 10px;
    }

    .mw-msg-conversation-actions {
        width: 100%;
        justify-content: stretch;
    }

        .mw-msg-conversation-actions .mw-seller-btn,
        .mw-msg-conversation-actions .mw-msg-open-vehicle {
            width: 100%;
            justify-content: center;
        }
}

.mw-msg-composer {
    display: grid;
    gap: 12px;
}

.mw-msg-editor-shell {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    overflow: hidden;
}

.mw-msg-editor {
    width: 100%;
    min-height: 132px;
    max-height: 280px;
    overflow: auto;
    padding: 14px 16px;
    outline: none;
    color: var(--msg-text);
    line-height: 1.72;
}

    .mw-msg-editor h4 {
        margin: 0 0 10px;
        font-size: 1.02rem;
        font-weight: 900;
    }

    .mw-msg-editor ul,
    .mw-msg-editor ol {
        padding-left: 20px;
    }

.mw-msg-attachments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.mw-msg-pending-file {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    overflow: hidden;
}

.mw-msg-pending-preview {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.05);
    overflow: hidden;
}

    .mw-msg-pending-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-msg-pending-body {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.mw-msg-pending-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mw-msg-pending-remove {
    border: 0;
    background: rgba(220, 38, 38, .14);
    color: #ffb5b5;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.mw-msg-composer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mw-msg-composer-counts {
    display: inline-flex;
    gap: 10px;
    color: var(--msg-muted);
    font-size: 12px;
    font-weight: 700;
}

.mw-msg-composer-hint {
    color: var(--msg-muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.mw-msg-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.mw-msg-attachment-card {
    width: min(220px, 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.08);
}

.mw-msg-bubble.mine .mw-msg-attachment-card {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.18);
}

.mw-msg-attachment-preview {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: rgba(7, 12, 23, .28);
    overflow: hidden;
}

    .mw-msg-attachment-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.mw-msg-attachment-body {
    padding: 12px;
    display: grid;
    gap: 6px;
}

.mw-msg-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}

    .mw-msg-preview-modal.is-open {
        display: block;
    }

.mw-msg-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, .72);
    backdrop-filter: blur(6px);
    border: 0;
}

.mw-msg-preview-dialog {
    position: absolute;
    inset: 30px;
    margin: auto;
    width: min(1240px, calc(100vw - 32px));
    height: min(88vh, 1300px);
    background: #091122;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 34px 70px rgba(0,0,0,.32);
}

.mw-msg-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
}

.mw-msg-preview-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

    .mw-msg-preview-copy strong,
    .mw-msg-preview-copy span {
        color: #fff;
    }

    .mw-msg-preview-copy strong {
        font-size: 1rem;
        font-weight: 900;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mw-msg-preview-copy span {
        color: var(--msg-muted);
        font-size: .9rem;
    }

.mw-msg-preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mw-msg-preview-body {
    overflow: auto;
    padding: 18px;
    background: #050c19;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

    .mw-msg-preview-body.is-pdf,
    .mw-msg-preview-body.is-file {
        display: block;
    }

.mw-msg-preview-image-wrap {
    width: auto;
    max-width: 100%;
}

.mw-msg-preview-body img {
    width: auto;
    height: auto;
    max-width: 100%;
    min-height: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
    display: block;
    margin: 0 auto;
}

.mw-msg-preview-body iframe {
    width: 100%;
    height: calc(82vh - 140px);
    min-height: 620px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    display: block;
}

.mw-msg-preview-file-fallback {
    height: 100%;
    min-height: 340px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,.12);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    color: #fff;
}

@media (max-width: 991px) {
    .mw-msg-preview-dialog {
        inset: 14px;
        width: auto;
        height: auto;
        max-height: calc(100vh - 28px);
    }

    .mw-msg-preview-body iframe {
        min-height: 420px;
        height: calc(100vh - 170px);
    }
}

.mw-msg-page.mw-msg-ux-v1 {
    isolation: isolate;
}

    .mw-msg-page.mw-msg-ux-v1 #mwMessagesGate:empty {
        display: none;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton {
        display: grid;
        gap: 18px;
        margin: 2px 0 20px;
    }

    .mw-msg-page.mw-msg-ux-v1:not(.mw-msg-is-loading) .mw-msg-skeleton {
        display: none;
    }

    .mw-msg-page.mw-msg-ux-v1.mw-msg-is-loading .mw-msg-summary-grid,
    .mw-msg-page.mw-msg-ux-v1.mw-msg-is-loading .mw-msg-mobile-jump,
    .mw-msg-page.mw-msg-ux-v1.mw-msg-is-loading .mw-msg-layout {
        display: none;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-grid,
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-layout {
        display: grid;
        gap: 18px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-layout {
        grid-template-columns: 350px minmax(0, 1fr) 280px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton span {
        position: relative;
        display: block;
        overflow: hidden;
        min-height: 142px;
        border-radius: 24px;
        border: 1px solid rgba(255,255,255,.08);
        background: linear-gradient(110deg, rgba(255,255,255,.05) 8%, rgba(255,255,255,.11) 18%, rgba(255,255,255,.05) 33%);
        background-size: 200% 100%;
        animation: mwMsgSkeleton 1.15s linear infinite;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-layout span {
        min-height: 520px;
    }

@keyframes mwMsgSkeleton {
    to {
        background-position-x: -200%;
    }
}

.mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump {
    display: none;
}

@media (min-width: 1400px) {
    .mw-msg-page.mw-msg-ux-v1 .container-mw {
        max-width: 1420px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-layout {
        grid-template-columns: minmax(320px, 360px) minmax(0, 1fr) minmax(285px, 320px);
    }
}

@media (min-width: 992px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-layout {
        align-items: start;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-sidebar,
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-sidepanels {
        position: sticky;
        top: 104px;
        align-self: start;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-panel {
        height: min(820px, calc(100vh - 165px));
        min-height: 640px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-list {
        max-height: min(520px, calc(100vh - 430px));
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-leads {
        max-height: min(485px, calc(100vh - 330px));
    }
}

.mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card,
.mw-msg-page.mw-msg-ux-v1 .mw-msg-panel,
.mw-msg-page.mw-msg-ux-v1 .mw-msg-hero-actions-card {
    backdrop-filter: blur(14px);
}

.mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card {
    min-height: 142px;
}

.mw-msg-page.mw-msg-ux-v1 .mw-msg-thread,
.mw-msg-page.mw-msg-ux-v1 .mw-msg-lead-item,
.mw-msg-page.mw-msg-ux-v1 .mw-msg-bubble,
.mw-msg-page.mw-msg-ux-v1 .mw-msg-editor-shell {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread.is-active {
        box-shadow: 0 18px 36px rgba(185,28,28,.16), inset 0 1px 0 rgba(255,255,255,.06);
    }

.mw-msg-page.mw-msg-ux-v1 .mw-msg-messages {
    padding-right: 8px;
}

.mw-msg-page.mw-msg-ux-v1 .mw-msg-composer {
    background: linear-gradient(180deg, rgba(10,18,36,.72), rgba(10,18,36,.96));
}

.mw-msg-page.mw-msg-ux-v1 .mw-msg-tool-file span {
    white-space: nowrap;
}

@media (max-width: 1399px) and (min-width: 992px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-sidepanels {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    }
}

@media (max-width: 991px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton span {
        min-height: 110px;
        border-radius: 20px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-skeleton-layout span {
        min-height: 260px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-shell {
        padding-top: 18px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-hero {
        gap: 14px;
        margin-bottom: 14px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-hero-actions-card {
        padding: 14px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-hero-actions-title {
        margin-bottom: 10px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 12px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card {
        min-height: 122px;
        padding: 15px 12px;
        border-radius: 19px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card small {
            font-size: 10px;
            letter-spacing: .1em;
            margin-bottom: 8px;
        }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card strong {
            font-size: 2rem;
            margin-bottom: 7px;
        }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card span {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            font-size: 12px;
            line-height: 1.35;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump {
        position: sticky;
        top: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        margin: 0 0 14px;
        border-radius: 22px;
        background: rgba(7, 13, 25, .86);
        border: 1px solid rgba(255,255,255,.09);
        box-shadow: 0 18px 38px rgba(0,0,0,.18);
        backdrop-filter: blur(16px);
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump button {
            min-width: 0;
            min-height: 44px;
            border: 1px solid rgba(255,255,255,.10);
            border-radius: 16px;
            background: rgba(255,255,255,.055);
            color: #f8fbff;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 0 9px;
            font-size: 12px;
            font-weight: 900;
        }

            .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump button.is-active {
                background: linear-gradient(135deg, rgba(220,38,38,.95), rgba(185,28,28,.95));
                border-color: rgba(255,255,255,.16);
            }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump em {
            min-width: 20px;
            height: 20px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,.12);
            color: inherit;
            font-style: normal;
            font-size: 11px;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-layout {
        gap: 14px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-panel {
        height: min(790px, calc(100dvh - 86px));
        min-height: 650px;
        padding: 14px;
        border-radius: 22px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-head {
        padding-bottom: 11px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-messages {
        padding: 13px 3px 12px 0;
        gap: 11px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer {
        gap: 10px;
        padding-top: 11px;
        border-radius: 0 0 18px 18px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-toolbar {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 7px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-tool {
        width: 100%;
        height: 40px;
        border-radius: 13px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-tool-file {
        grid-column: span 3;
        width: 100% !important;
        justify-content: center;
        padding: 0 10px !important;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-tool-file span {
            font-size: 0;
        }

            .mw-msg-page.mw-msg-ux-v1 .mw-msg-tool-file span::after {
                content: "Adjuntar";
                font-size: 12px;
            }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-editor {
        min-height: 94px;
        max-height: 180px;
        padding: 12px 13px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-meta {
        display: grid;
        gap: 9px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-counts {
        flex-wrap: wrap;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-panel {
        padding: 14px;
        border-radius: 22px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-panel-head {
        margin-bottom: 12px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-panel-head h2 {
            font-size: 1.25rem;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-list,
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-leads {
        max-height: 420px;
        overflow: auto;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-sidepanels {
        gap: 14px;
    }
}

@media (max-width: 767px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-shell {
        padding: 16px 0 54px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-eyebrow {
        margin-bottom: 12px;
        padding: 8px 12px;
        font-size: 10px;
        letter-spacing: .13em;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-hero h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
        line-height: 1.04;
        margin-bottom: 9px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-hero p {
        font-size: .94rem;
        line-height: 1.58;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-hero-actions-card {
        border-radius: 21px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-page .mw-seller-btn,
    .mw-msg-page.mw-msg-ux-v1 .mw-seller-btn {
        min-height: 44px;
        border-radius: 15px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-grid {
        gap: 7px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card {
        padding: 13px 10px;
        min-height: 116px;
        border-radius: 18px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card small {
            font-size: 9px;
            line-height: 1.22;
        }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card strong {
            font-size: 1.9rem;
        }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card span {
            font-size: 11px;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump {
        border-radius: 19px;
        gap: 6px;
        padding: 7px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump button {
            min-height: 42px;
            border-radius: 14px;
            padding: 0 7px;
            font-size: 11px;
        }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump i {
            display: none;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-top {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        gap: 11px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-thumb {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-copy {
        min-width: 0;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-copy h2 {
            margin: 7px 0 4px;
            font-size: 1.12rem;
            line-height: 1.25;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn,
        .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle {
            min-width: 0;
            width: 100%;
            min-height: 39px;
            padding: 8px 7px;
            border-radius: 13px;
            font-size: 0;
            gap: 0;
        }

            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn i,
            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle i {
                font-size: 14px;
            }

            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn span,
            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle span {
                display: none;
            }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-panel {
        height: min(760px, calc(100dvh - 78px));
        min-height: 600px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-empty-hero {
        min-height: 220px;
        padding: 20px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-bubble {
        max-width: 94%;
        padding: 12px 13px;
        border-radius: 17px 17px 17px 6px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-bubble.mine {
            border-radius: 17px 17px 6px 17px;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-attachment-card {
        width: 100%;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread {
        grid-template-columns: 54px minmax(0, 1fr) 26px;
        gap: 11px;
        padding: 12px;
        border-radius: 18px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-photo {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-top strong {
        font-size: .92rem;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-top span,
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-preview,
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-vehicle {
        font-size: .78rem;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-preview {
        -webkit-line-clamp: 1;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-thread-filters {
        gap: 8px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-search {
        height: 44px;
        border-radius: 15px;
        margin-bottom: 12px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-search input {
            height: 44px;
            font-size: 13px;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-lead-toggle {
        padding: 12px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-lead-head {
        display: grid;
        gap: 4px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-lead-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-lead-btn {
        justify-content: center;
        min-height: 40px;
        padding: 9px 10px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-shortcuts {
        grid-template-columns: 1fr;
        gap: 9px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-shortcuts a {
            min-height: 44px;
            border-radius: 15px;
            padding: 12px 14px;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-preview-dialog {
        inset: 10px;
        border-radius: 20px;
        max-height: calc(100dvh - 20px);
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-preview-body {
        padding: 12px;
    }
}

@media (max-width: 380px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card {
        padding: 12px 8px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-summary-card small {
            letter-spacing: .06em;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump button {
        padding: 0 6px;
        font-size: 10px;
    }
}

@media (max-width: 991px) {
    .mw-msg-page.mw-msg-ux-v1.mw-msg-shell {
        padding-top: 18px;
    }
}

@media (max-width: 767px) {
    .mw-msg-page.mw-msg-ux-v1.mw-msg-shell {
        padding: 16px 0 54px;
    }
}


.mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn[title],
.mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle[title] {
    position: relative;
}

@media (max-width: 991px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-layout {
        grid-template-areas:
            "sidebar"
            "main"
            "side";
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-sidebar {
        order: 1;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-main {
        order: 2;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-sidepanels {
        order: 3;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-panel {
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-messages {
        min-height: 280px;
        max-height: min(520px, 52dvh);
        overflow: auto;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer {
        position: relative;
        z-index: 1;
        overflow: visible;
        margin-top: 0;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-actions,
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-actions .mw-seller-btn {
        width: 100%;
    }

    .mw-msg-page.mw-msg-ux-v1 #mwMsgSendBtn {
        position: static !important;
        inset: auto !important;
        transform: none !important;
        margin: 0 !important;
        z-index: 1;
    }
}

@media (max-width: 767px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump {
        margin-bottom: 12px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-mobile-jump button {
            grid-template-columns: minmax(0, 1fr) auto;
        }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-panel {
        height: auto !important;
        min-height: 0 !important;
        display: grid;
        grid-template-rows: auto minmax(240px, min(430px, 50dvh)) auto;
        gap: 0;
        padding-bottom: 14px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-messages {
        min-height: 240px;
        max-height: min(430px, 50dvh);
        padding-bottom: 14px;
        overscroll-behavior: contain;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer {
        padding: 12px 0 0;
        border-radius: 0;
        background: linear-gradient(180deg, rgba(10,18,36,.80), rgba(10,18,36,.98));
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-hint {
        font-size: 12px;
        line-height: 1.55;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-counts {
        margin-top: 6px;
        gap: 8px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-composer-actions {
        display: block;
        width: 100%;
    }

    .mw-msg-page.mw-msg-ux-v1 #mwMsgSendBtn {
        width: 100% !important;
        min-height: 52px;
        border-radius: 17px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        box-shadow: 0 16px 34px rgba(185,28,28,.20);
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn,
        .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 56px;
            padding: 8px 6px;
            font-size: 10.5px;
            line-height: 1.15;
            text-align: center;
        }

            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn i,
            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle i {
                font-size: 14px;
                line-height: 1;
            }

            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn span,
            .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle span {
                display: -webkit-box !important;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                max-width: 100%;
                white-space: normal;
                font-size: 10.5px;
                font-weight: 900;
            }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-sidebar .mw-msg-panel {
        scroll-margin-top: 78px;
    }

    .mw-msg-page.mw-msg-ux-v1 .mw-msg-main .mw-msg-panel {
        scroll-margin-top: 78px;
    }
}

@media (max-width: 390px) {
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn,
    .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle {
        min-height: 54px;
        font-size: 10px;
    }

        .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-seller-btn span,
        .mw-msg-page.mw-msg-ux-v1 .mw-msg-conversation-actions .mw-msg-open-vehicle span {
            font-size: 10px;
        }
}
