.crmceo-support {
    --support-accent: #6259ca;
    --support-surface: #fff;
    --support-text: #202236;
    --support-border: #e5e4ef;
    position: fixed;
    inset-inline-start: max(18px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1035;
    font-family: inherit;
    color: var(--support-text);
}
.crmceo-support [hidden], .crmceo-chat-page [hidden] { display: none !important; }
.crmceo-support-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    border-radius: 24px;
    background: #6259ca;
    color: #fff;
    box-shadow: 0 4px 18px #24204726;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.crmceo-support-launcher svg { flex: 0 0 20px; }
.crmceo-support :is(button, a):focus-visible { outline: 3px solid #a69ff3; outline-offset: 3px; }
.crmceo-support-panel {
    display: flex;
    flex-direction: column;
    position: absolute;
    inset-inline-start: 0;
    bottom: 56px;
    width: min(410px, calc(100vw - 36px));
    height: min(660px, calc(100dvh - 110px));
    min-height: 240px;
    overflow: hidden;
    border: 1px solid var(--support-border);
    border-radius: 16px;
    background: var(--support-surface);
    box-shadow: 0 12px 52px #15132d33;
}
.crmceo-support-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 6px 8px 6px 16px;
    border-bottom: 1px solid var(--support-border);
    background: var(--support-surface);
}
.crmceo-support-header strong { font-size: 14px; line-height: 1.4; }
.crmceo-support-header a { margin-inline-start: auto; color: var(--support-accent); font-size: 12px; white-space: nowrap; }
.crmceo-support-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--support-text);
    font: 26px/1 sans-serif;
    cursor: pointer;
}
.crmceo-support-close:hover { background: #6259ca15; }
.crmceo-support-panel iframe { width: 100%; flex: 1 1 auto; min-height: 0; border: 0; color-scheme: light; }
:is([data-theme-mode="dark"], [data-colour-mode="dark"]) .crmceo-support {
    --support-surface: #25243b;
    --support-text: #f3f2fb;
    --support-border: #44425b;
    --support-accent: #9f96f1;
}
:is([data-theme-mode="dark"], [data-colour-mode="dark"]) .crmceo-support-panel iframe { color-scheme: dark; }
.crmceo-chat-page { margin: 0; background: #fff; color: #202236; font: 14px/1.6 system-ui, sans-serif; color-scheme: light dark; }
.crmceo-chat-status { display: grid; align-content: center; min-height: 100dvh; padding: 24px; box-sizing: border-box; text-align: center; }
.crmceo-chat-status h1 { font-size: 20px; line-height: 1.35; }
.crmceo-chat-status a { color: #6259ca; }
.crmceo-chat-status button { padding: 10px 16px; border: 0; border-radius: 8px; background: #6259ca; color: #fff; font: inherit; cursor: pointer; }
@media (prefers-color-scheme: dark) {
    .crmceo-chat-page { background: #1a1a1e; color: #f4f3fa; }
    .crmceo-chat-status a { color: #b1aaf7; }
}
@media (max-height: 430px) {
    .crmceo-support { bottom: 8px; }
    .crmceo-support-panel { bottom: 50px; height: calc(100dvh - 72px); min-height: 160px; }
}
@media print { .crmceo-support { display: none !important; } }
