/* ==========================================================================
   Peaxly chatbox — same skin in /app/ (body.peaxly-shell) and on the public
   site (body.px-marketing). .px-admin and third-party embeds stay on chatbox.css.
   Peaxbot-only UI (quota, dual agent link) stays under .px-peaxbot.
   ========================================================================== */
:is(body.peaxly-shell, body.px-marketing) .px-chat {
    --peaxly-blue: #1840CE;
    --peaxly-blue-2: #2563EB;
    --peaxly-navy: #0D1845;
    --peaxly-soft: #EEF2FF;
    --peaxly-muted: #5A6A9A;
    --peaxly-line: rgba(24, 64, 206, 0.10);
    --peaxly-wash: #FAFBFF;
    font-family: "Outfit", system-ui, sans-serif;
    color: #0f172a;
}

/* Window shell */
:is(body.peaxly-shell, body.px-marketing) .px-chat > .px-body {
    width: 380px;
    max-height: min(560px, calc(100vh - 120px));
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(13, 24, 69, 0.22);
    overflow: hidden;
    background: #fff;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-scroll-area {
    background: var(--peaxly-wash) !important;
    background-image: none !important;
    min-height: 420px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-scroll-area > .px-list {
    background: transparent;
}

/* Launcher — primary gradient, soft elevation */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-chat-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
    box-shadow: 0 10px 28px rgba(24, 64, 206, 0.38);
    bottom: 24px;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-chat-left .px-chat-btn {
    left: 24px;
    right: auto;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-chat-btn:hover {
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
    opacity: 0.94;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(24, 64, 206, 0.45);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-chat-btn img {
    width: 56px;
    height: 56px;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-chat-btn span {
    background: #BE123C;
    box-shadow: 0 2px 8px rgba(190, 18, 60, 0.35);
}

/* Header — navy→blue hero wash.
   Site nav uses header.px-header { display: contents }. Chat headers share the class
   and must keep a box, otherwise the gradient never paints (white bar). */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-scroll-area .px-header,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header-main {
    display: block;
    background: linear-gradient(135deg, #0D1845 0%, #1840CE 55%, #3B82F6 100%) !important;
    background-image: linear-gradient(135deg, #0D1845 0%, #1840CE 55%, #3B82F6 100%) !important;
    box-shadow: none;
    color: #fff;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header-main {
    padding: 16px 18px 20px;
    border-radius: 0;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-scroll-area .px-header .px-title,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header-main .px-title {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0;
    padding: 18px 0 6px 0;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-scroll-area .px-header .px-text,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header-main .px-text {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    height: auto;
    max-height: 40px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header-main .px-profiles > div > img {
    width: 40px;
    height: 40px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 4px 12px rgba(13, 24, 69, 0.25);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header-main > .px-dashboard-btn,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-scroll-area .px-header .px-dashboard-btn {
    opacity: 0.85;
    border-radius: 10px;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header.px-header-panel {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 600;
}

/* Quota chip under header */
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot .px-peaxbot-quota,
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot-mode .px-peaxbot-quota {
    font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 0.04em;
    opacity: 0.9;
    padding: 0 14px 10px;
    color: rgba(255, 255, 255, 0.85);
}

/* Message bubbles — match former peaxbot companion */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > div {
    border-radius: 16px 16px 16px 4px;
    background-color: var(--peaxly-soft);
    padding: 10px 14px;
    margin: 4px 12px 18px 50px;
    max-width: calc(90% - 60px);
    box-shadow: none;
}
.px-list>div.px-label-date, .px-label-date-top {
    background-color: transparent;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > div.px-right {
    border-radius: 16px 16px 4px 16px;
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
    background-color: transparent !important;
    margin: 4px 50px 18px 12px;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list .px-message,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list .px-message a {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0;
    color: #0f172a;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > div.px-right .px-message,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > div.px-right .px-message a,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > .px-right .px-message,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > .px-right .px-message a {
    color: #fff !important;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list .px-message .px-agent-name {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
    color: var(--peaxly-muted);
    margin-bottom: 2px;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list .px-thumb > img {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(24, 64, 206, 0.2);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > div.px-label-date span,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-label-date-top span {
    background: #fff;
    border: 1px solid var(--peaxly-line);
    border-radius: 999px;
    color: var(--peaxly-muted);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 10px;
}

/* Typing / status */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-status-typing {

}

/* Editor / composer */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor {
    background: #fff;
    border-top: 1px solid var(--peaxly-line);
    padding: 0;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor textarea {
    font-family: "Outfit", system-ui, sans-serif !important;
    font-size: 13px !important;
    letter-spacing: 0 !important;
    color: #0f172a;
    /* Keep auto-expand intact — only typography/color */
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor .px-bar {
    align-items: center;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor .px-bar-icons > div:before {
    color: var(--peaxly-muted);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor .px-bar-icons > div:hover:before {
    color: var(--peaxly-blue) !important;
}

/* Send — circular primary (peaxly-btn spirit) */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor .px-submit {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1840CE, #2563EB);
    color: #fff !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 15px;
    line-height: 36px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(24, 64, 206, 0.25);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor.px-active .px-bar .px-submit {
    display: inline-flex;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor .px-submit:hover {
    color: #fff !important;
    opacity: 0.92;
    transform: translateY(-1px);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-editor .px-submit:before {
    color: #fff;
}

/* Dashboard cards / CTAs */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard {
    background: var(--peaxly-wash);
}
/* Dashboard active / init wash — override Support Board #f3f3f3 */
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-dashboard-active:not(.px-panel-active) .px-scroll-area,
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-init-form-active .px-scroll-area {
    background: var(--peaxly-wash) !important;
}
/* Card chrome: Peaxly soft panels (not Support Board 4px / gray shadow) */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard > div,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-init-form,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-conversations {
    background: #fff;
    color: var(--peaxly-muted);
    margin: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--peaxly-line); /* rgba(24,64,206,.10) */
    box-shadow: 0 4px 20px rgba(24, 64, 206, 0.08);
    overflow: hidden;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard > div > .px-title,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard > div > .px-top,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard > div > div > .px-title,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard > div > div > .px-top,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-init-form > .px-title,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-init-form > .px-top,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-init-form > div > .px-title,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-init-form > div > .px-top {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 700;
    color: var(--peaxly-navy);
    border-bottom: 1px solid var(--peaxly-line);
    background: #F8FAFC;
    padding: 16px 18px;
    letter-spacing: 0;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard .px-title {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 700;
    color: var(--peaxly-navy);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-user-conversations > li {
    border-radius: 0;
    margin: 4px 10px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-user-conversations > li:hover {
    background: var(--peaxly-soft) !important;
    border-color: var(--peaxly-line);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard > div > .px-btn,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-btn.px-btn-new-conversation {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    border-radius: 16px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
    border: 0 !important;
    box-shadow: 0 8px 20px rgba(24, 64, 206, 0.25);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard > div > .px-btn:hover,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-btn.px-btn-new-conversation:hover {
    opacity: 0.9;
    color: #fff !important;
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-btn.px-btn-all-conversations {
    background: #fff !important;
    color: var(--peaxly-muted) !important;
    border: 1px solid rgba(24, 64, 206, 0.15) !important;
    box-shadow: none;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-btn.px-btn-all-conversations:hover {
    background: var(--peaxly-soft) !important;
    color: var(--peaxly-navy) !important;
}

/* Contacter un agent — under Conversations (PX_PEAXBOT dashboard only) */
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot .px-peaxbot-contact-agent,
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot-mode .px-peaxbot-contact-agent {
    display: block;
    width: calc(100% - 24px);
    margin: 4px 12px 12px;
    border: 0;
    background: transparent;
    color: var(--peaxly-blue, #1840CE);
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot .px-peaxbot-contact-agent:hover,
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot-mode .px-peaxbot-contact-agent:hover {
    color: var(--peaxly-navy, #0D1845);
}

/* In-conversation agent escape hatch (PeaxBot thread) */
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot .px-peaxbot-agent-link,
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot-mode .px-peaxbot-agent-link {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--peaxly-blue, #1840CE);
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px 4px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot .px-peaxbot-agent-link:hover,
:is(body.peaxly-shell, body.px-marketing) .px-chat.px-peaxbot-mode .px-peaxbot-agent-link:hover {
    color: var(--peaxly-navy, #0D1845);
}

/* Generic .px-btn inside peaxbot chat */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-btn:not(.px-btn-all-conversations),
:is(body.peaxly-shell, body.px-marketing) .px-chat a.px-btn:not(.px-btn-all-conversations) {
    border-radius: 16px;
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
    color: #fff !important;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(24, 64, 206, 0.22);
}

/* Popup / notify polish */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-popup-message {
    border-radius: 16px;
    border: 1px solid var(--peaxly-line);
    box-shadow: 0 16px 40px rgba(13, 24, 69, 0.18);
}
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-popup-message .px-top {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 700;
    color: var(--peaxly-navy);
}

/* Rich message cards */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-list > div.px-rich-cnt {
    background: #fff !important;
    border: 1px solid var(--peaxly-line);
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Help Center / articles (dashboard + .px-panel-articles)
   Shared chrome for all peaxly-shell chat — not peaxbot-only; leave .px-admin alone.
   -------------------------------------------------------------------------- */

/* Panel shell */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel-articles {
    font-family: "Outfit", system-ui, sans-serif;
    color: #0f172a;
    background: var(--peaxly-wash);
    padding: 88px 16px 24px;
}

/* Dashboard Help Center card already inherits .px-dashboard > div chrome;
   tune inner spacing for search + list */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-articles {
    margin: 8px 16px 16px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles > .px-btn.px-btn-all-articles,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-btn-all-articles {
    display: block;
    width: calc(100% - 32px);
    margin: 4px 16px 16px;
    box-sizing: border-box;
    text-align: center;
}

/* Search field — Peaxly ~12–16px radius, focus ring #1840CE */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input.px-input-btn {
    margin: 16px 16px 8px;
    gap: 0;
    align-items: stretch;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input > input,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input.px-input-btn > input {
    border-radius: 14px 0 0 14px !important;
    border: 1px solid rgba(24, 64, 206, 0.14) !important;
    border-right: 0 !important;
    background: #EEF2FF !important;
    color: #0D1845 !important;
    font-family: "Outfit", system-ui, sans-serif !important;
    font-size: 13px !important;
    line-height: 40px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input > input::placeholder {
    color: var(--peaxly-muted);
    opacity: 1;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input > input:focus,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input > input.px-focus,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input.px-input-btn > input:focus,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input.px-input-btn > input.px-focus {
    border-color: #1840CE !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(24, 64, 206, 0.28) !important;
    background: #fff !important;
    z-index: 1;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input.px-input-btn > div,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-submit-articles {
    width: 46px;
    min-width: 46px;
    height: 42px;
    margin-left: 0;
    border-radius: 0 14px 14px 0 !important;
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
    color: #fff !important;
    line-height: 42px;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input.px-input-btn > div:hover,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-submit-articles:hover {
    background: linear-gradient(135deg, #1840CE, #2563EB) !important;
    opacity: 0.92;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input.px-input-btn > div:before,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-submit-articles:before {
    color: #fff;
    line-height: 42px;
}

/* When search is a lone input (no btn chrome) keep full radius */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-input:not(.px-input-btn) > input {
    border-radius: 14px !important;
    border-right: 1px solid rgba(24, 64, 206, 0.14) !important;
}

/* Category + article lists — card rows */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles {
    text-align: left;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel-articles .px-articles,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel .px-articles {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div:not(.px-title) {
    letter-spacing: 0;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--peaxly-line);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0;
    box-shadow: 0 2px 10px rgba(24, 64, 206, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* Override Support Board separator (+div border-top / margin) — independent cards */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div:not(.px-title) + div:not(.px-title) {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--peaxly-line);
}

/* Panel lists use flex gap — drop sibling margin to avoid double spacing */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel-articles .px-articles > div:not(.px-title) + div:not(.px-title),
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel .px-articles > div:not(.px-title) + div:not(.px-title) {
    margin-top: 0;
}

/* Dashboard list: slightly tighter radius, no elevation */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-dashboard-articles .px-articles > div:not(.px-title) {
    border-radius: 12px;
    box-shadow: none;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div:not(.px-title):hover {
    background: var(--peaxly-soft) !important;
    border-color: rgba(24, 64, 206, 0.22);
    box-shadow: 0 6px 16px rgba(24, 64, 206, 0.10);
    transform: translateY(-1px);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div:not(.px-title) > div {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    max-height: none;
    color: var(--peaxly-navy);
    letter-spacing: 0;
    transition: color 0.2s ease;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div:not(.px-title):hover > div {
    color: var(--peaxly-blue) !important;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div:not(.px-title) > span {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.45;
    height: auto;
    max-height: 2.9em;
    padding-top: 4px;
    color: var(--peaxly-muted);
    letter-spacing: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div.px-title {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--peaxly-navy);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 2px 8px;
    cursor: default;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > div.px-title:hover {
    background: transparent !important;
    transform: none;
    box-shadow: none;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles > p,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-articles .px-no-results {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 13px;
    color: var(--peaxly-muted);
    margin: 8px 4px;
}

/* Article detail view */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article {
    font-family: "Outfit", system-ui, sans-serif;
    color: #0f172a;
    background: #fff;
    border: 1px solid var(--peaxly-line);
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 0 4px 20px rgba(24, 64, 206, 0.08);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article > .px-title,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-title {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--peaxly-navy);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--peaxly-line);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article > .px-title:first-child {
    border-bottom: 1px solid var(--peaxly-line);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-title .px-icon-close,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-title .px-close {
    color: var(--peaxly-muted);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    top: 0;
    right: 0;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-title .px-icon-close:hover,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-title .px-close:hover {
    color: #BE123C;
    background: rgba(190, 18, 60, 0.08);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content {
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: 0;
    color: #334155;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content p {
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
    margin: 8px 0;
    letter-spacing: 0;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content a {
    color: #1840CE;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content ul,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content ol {
    margin: 8px 0 12px;
    padding: 0;
    list-style: none;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content li .px-prose__check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: #1840CE;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content .px-call {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(24, 64, 206, 0.15);
    background: #EEF2FF;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content .px-call--warn {
    background: #FFFBEB;
    border-color: rgba(245, 158, 11, 0.25);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content .px-call__ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content .px-call p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #1840CE;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content .px-call--warn p {
    color: #92400E;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h1,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h2,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h3,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h4,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h5,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h6,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h2,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h3,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h4,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h5,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h6 {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 700;
    color: var(--peaxly-navy);
    letter-spacing: 0;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h1,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h2 {
    font-size: 16px;
    line-height: 1.35;
    margin: 18px 0 8px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h2 {
    font-size: 16px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content h3,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h3,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h4,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h5,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article h6 {
    font-size: 14px;
    line-height: 1.4;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content > img,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content .px-image {
    border-radius: 12px;
    margin: 14px 0;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-content code {
    background: var(--peaxly-soft);
    border: 1px solid var(--peaxly-line);
    border-radius: 10px;
    color: var(--peaxly-navy);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article a,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article ul a {
    color: var(--peaxly-blue);
    text-decoration-color: rgba(24, 64, 206, 0.35);
}

/* Back / read-more text link */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-btn-text,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel-articles .px-btn-text {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--peaxly-blue);
    margin-top: 18px;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-btn-text:hover,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-panel-articles .px-btn-text:hover {
    color: var(--peaxly-navy);
}

/* Header back control when viewing articles panel */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header.px-header-panel .px-dashboard-btn {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header.px-header-panel .px-dashboard-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-header.px-header-panel .px-name {
    font-family: "Bricolage Grotesque", "Poppins", sans-serif;
    font-weight: 600;
}

/* Category chips under article */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article-category-links {
    margin: 16px 0 0;
    gap: 8px;
    flex-wrap: wrap;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article-category-links > span {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0;
    color: var(--peaxly-blue);
    background: var(--peaxly-soft);
    border: 1px solid var(--peaxly-line);
    border-radius: 999px;
    padding: 4px 10px;
    margin-right: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article-category-links > span + span:before {
    display: none;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article-category-links > span:hover {
    background: #fff;
    color: var(--peaxly-navy);
}

/* Rating footer */
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-rating,
:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-btn-text + .px-article-category-links {
    border-top: 1px solid var(--peaxly-line);
    margin-top: 20px;
    padding-top: 16px;
    height: auto;
    color: var(--peaxly-navy);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-rating > span {
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: var(--peaxly-muted);
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-rating [data-rating="positive"]:hover {
    color: #059669;
}

:is(body.peaxly-shell, body.px-marketing) .px-chat .px-article .px-rating [data-rating="negative"]:hover {
    color: #BE123C;
}

@media (max-width: 480px) {
    :is(body.peaxly-shell, body.px-marketing) .px-chat > .px-body {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 100px);
        border-radius: 14px;
    }
    :is(body.peaxly-shell, body.px-marketing) .px-chat .px-chat-btn {
        bottom: 16px;
    }
    :is(body.peaxly-shell, body.px-marketing) .px-chat.px-chat-left .px-chat-btn {
        left: 16px;
    }
}
