.ba-workspace-frame { width: min(1040px, calc(100% - 40px)); margin-inline: auto; }
.ba-workspace-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.ba-workspace-nav a, .ba-workspace-nav button { white-space: nowrap; }
.ba-workspace-nav a[aria-current="page"] { color: #4338ca; font-weight: 750; }
.ba-site.ba-support { min-height: 0; background: transparent; }
.ba-support .ba-section-head h1 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); }
.ba-support-layout {
    display: grid;
    grid-template-columns: minmax(190px, 245px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.ba-support-list {
    display: grid;
    gap: 8px;
    max-height: 660px;
    overflow: auto;
}
.ba-support-list > a:not(.ba-button) {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 10px 32px 10px 12px;
    border-radius: 10px;
    overflow-wrap: anywhere;
}
.ba-support-list > a:hover, .ba-support-list > a[aria-current] { background: #edf6ff; }
.ba-unread {
    position: absolute;
    right: 8px;
    top: 10px;
    border-radius: 20px;
    padding: 2px 7px;
    background: #185bd7;
    color: white;
    font-size: 12px;
}
.ba-chat-thread { min-width: 0; display: grid; gap: 12px; }
.ba-chat-thread > header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ba-chat-thread > header h2 { margin: 0 auto 0 0; overflow-wrap: anywhere; }
.ba-chat-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 250px;
    max-height: min(55vh, 550px);
    overflow: auto;
    padding: 18px;
    border-radius: 15px;
    background: #eff5f8;
}
.ba-chat-bubble {
    align-self: flex-start;
    max-width: min(86%, 620px);
    padding: 12px 14px;
    border: 1px solid #dce7ef;
    border-radius: 5px 15px 15px;
    background: white;
    overflow-wrap: anywhere;
}
.ba-chat-bubble.ba-chat-own { align-self: flex-end; background: #dff3eb; border-radius: 15px 5px 15px 15px; }
.ba-chat-bubble p { white-space: pre-wrap; margin: 5px 0; }
.ba-chat-bubble small { margin-left: 8px; }
.ba-chat-bubble footer { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 11px; color: #405165; }
.ba-chat-bubble footer button { padding: 3px 8px; min-height: 0; font-size: 12px; }
.ba-chat-image { display: grid; margin: 8px 0; color: #17479e; }
.ba-chat-image img { border-radius: 8px; max-width: min(270px, 100%); max-height: 240px; object-fit: contain; }
.ba-chat-compose { display: grid; gap: 10px; }
.ba-chat-compose textarea { min-height: 82px; }
.ba-chat-compose-bottom { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; justify-content: space-between; }
.ba-chat-compose-bottom input { max-width: 100%; }
.ba-support-alert {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 200;
    width: min(288px, calc(100vw - 32px));
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid #a9c7ef;
    border-radius: 16px;
    background: white;
    box-shadow: 0 12px 36px #1e3c6640;
    pointer-events: none;
}
.ba-support-alert p { overflow-wrap: anywhere; margin: 6px 0 12px; }
.ba-support-alert .ba-button { pointer-events: auto; padding: 6px 10px; min-height: 34px; }
.ba-site .ba-chat-image { border: 0; padding: 0; background: none; text-align: start; }
.ba-chat-drop { display: grid; flex: 1 1 240px; min-width: 0; gap: 4px; justify-items: start; padding: 10px 12px; border: 1px dashed #a5a4ce; border-radius: 12px; background: #f8f7ff; color: #4436a6; overflow-wrap: anywhere; }
.ba-chat-drop-active { border-color: #4f3dde; background: #ece8ff; }
.ba-chat-drop > button:not(.ba-button) { padding: 4px; border: 0; background: none; color: inherit; text-align: start; font-weight: 700; max-width: 100%; }
.ba-chat-drop small { font-size: 12px; color: #58627a; }
.ba-chat-lightbox { width: max-content; max-width: min(94vw, 960px); max-height: 92vh; padding: 12px; border: 0; border-radius: 14px; background: white; }
.ba-chat-lightbox::backdrop { background: #10162cbd; }
.ba-chat-lightbox img { display: block; max-width: 100%; max-height: 76vh; object-fit: contain; margin-top: 8px; }
.ba-traffic { margin-top: 14px; }
.ba-traffic article {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 14px;
    padding: 8px 0;
    border-bottom: 1px solid #e8edf5;
    overflow-wrap: anywhere;
}
.ba-quill .ql-editor { min-height: 215px; font-size: 15px; }
.ba-quill .ql-toolbar, .ba-quill .ql-container { background: white; }
.ba-quill .ql-tooltip { max-width: 96%; white-space: normal; z-index: 2; }
.ba-install-code { overflow-x: auto; padding: 12px; background: #eef5fb; border-radius: 8px; }
.ba-user-filter, .ba-user-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ba-user-facts { grid-template-columns: repeat(4,minmax(0,1fr)); margin-block: 16px; }
.ba-user-facts .ba-form { margin: 0; padding: 16px; }
.ba-user-facts small, .ba-user-facts strong { display: block; }
.ba-user-facts small { color: #58627a; }
.ba-user-row { display: grid; grid-template-columns: 44px minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto; gap: 14px; align-items: center; }
.ba-user-row h3 { font-size: 1rem; }
.ba-user-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #ece9ff; color: #4d3cb5; font-weight: 750; }
.ba-user-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 6px; }
.ba-user-badges span { padding: 2px 8px; border-radius: 10px; background: #eeedfb; color: #4635a2; font-size: 12px; }
.ba-user-detail-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 10px; border-top: 1px solid #e9edf4; }
.ba-campaign-audience h2 { font-weight: 750; margin: 0 0 10px; }
.ba-campaign-audience select { display: block; width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 8px; background: white; }
.ba-campaign-audience .ba-meta { margin: 8px 0 0; font-size: .84rem; }
.ba-integration-health { margin-top: 12px; padding: 14px; border-radius: 12px; background: #f1f5ff; display: grid; gap: 6px; justify-items: start; }
.ba-site.ba-team { min-height: 0; background: transparent; }
.ba-team-guide { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0; }
.ba-team-guide li { padding: 14px; border: 1px solid #e1dcf5; border-radius: 13px; background: #f7f5ff; }
.ba-team-guide p { color: #475569; font-size: .87rem; }
.ba-team-row { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(130px,1fr) auto; align-items: end; gap: 12px; padding-block: 12px; border-top: 1px solid #e9edf4; }
.ba-team-row > button { align-self: end; }
.ba-team-badge { display: block; width: fit-content; border-radius: 10px; padding: 3px 8px; margin-top: 8px; font-size: .75rem; background: #ece9ff; color: #4635a2; }
.ba-team-dialog { margin: auto; padding: 20px; width: min(480px,calc(100vw - 28px)); border: 1px solid #ded9f5; border-radius: 14px; background: white; color: #172033; overflow-wrap: anywhere; }
.ba-team-dialog h2 { font-size: 1.3rem; font-weight: 750; }
.ba-team-dialog p { margin-block: 8px; }
.ba-team-dialog::backdrop { background: #151832a3; }
.ba-team-action button { margin-top: 6px; padding: 6px 9px; min-height: auto; }
@media (max-width: 700px) {
    .ba-workspace-frame { width: calc(100% - 28px); }
    .ba-workspace-nav { gap: 6px 12px; }
    .ba-support-layout { grid-template-columns: minmax(0, 1fr); }
    .ba-support-list { max-height: 230px; }
    .ba-user-facts, .ba-user-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ba-user-row { gap: 8px 12px; }
    .ba-user-row .ba-button { justify-self: start; }
    .ba-user-filter { grid-template-columns: minmax(0,1fr); }
    .ba-team-row, .ba-team-guide { grid-template-columns: minmax(0,1fr); }
    .ba-team-row > button { justify-self: start; }
}
