#account #bot-control-open{border-color:#8d78cb;color:#d4c5ff;background:#34294c}
html:has(.bc-panel[open]),body:has(.bc-panel[open]){overflow:hidden}
.bc-panel{--bc-base:#10131e;--bc-line:#30384c;--bc-ink:#edf0fa;--bc-muted:#a4b0c8;--bc-accent:#b5a0f4;box-sizing:border-box;width:min(1280px,calc(100vw - 32px));max-width:none;height:min(900px,calc(100dvh - 40px));max-height:none;padding:0;border:1px solid #454e69;border-radius:16px;background:var(--bc-base);color:var(--bc-ink);font:14px/1.5 Geist,system-ui,sans-serif;box-shadow:0 32px 100px #0009;overflow:hidden}
.bc-panel *{box-sizing:border-box}.bc-panel::backdrop{background:#050711c9;backdrop-filter:blur(4px)}.bc-panel [hidden]{display:none!important}.bc-panel button{font:600 13px Geist,system-ui,sans-serif;border:1px solid var(--bc-line);background:#252d40;color:var(--bc-ink);padding:9px 13px;border-radius:8px;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:normal;clip-path:none}.bc-panel button:hover{background:#343b52}.bc-panel button:disabled{opacity:.45;cursor:default}.bc-panel :focus-visible{outline:2px solid var(--bc-accent);outline-offset:3px}.bc-panel h2,.bc-panel h3,.bc-panel p{letter-spacing:normal;text-transform:none;text-shadow:none}
.bc-header{height:80px;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--bc-line);background:#1b2030;gap:12px}.bc-brand{display:flex;gap:12px;align-items:center;min-width:0}.bc-brand>img{width:44px;height:44px;border-radius:12px;object-fit:cover}.bc-brand h2{margin:0;font-size:18px;font-weight:800}.bc-brand h2 span{font-size:14px;font-weight:500;color:var(--bc-muted);margin-left:9px}.bc-connection{margin:3px 0 0;font-size:12px;color:var(--bc-muted)}.bc-connection:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#e2bc78;margin-right:7px}.bc-connection.online:before{background:#83d6ba}.bc-header-actions{display:flex;gap:12px;align-items:center}.bc-header-actions .bc-close{font-size:24px;background:transparent;border:0;padding:0 7px}
.bc-layout{height:calc(100% - 80px);display:grid;grid-template-columns:285px minmax(0,1fr)}.bc-sidebar{background:#151a28;border-right:1px solid var(--bc-line);display:flex;flex-direction:column;min-height:0;padding:18px 12px 12px}.bc-tabs{display:flex;gap:4px;border-bottom:1px solid var(--bc-line);padding-bottom:12px}.bc-tabs button{flex:1;padding:9px 5px;border-color:transparent;background:none;font-size:12px}.bc-tabs button[aria-pressed=true]{color:#e3d8ff;background:#342d4c;border-color:#69568d}.bc-search{width:100%;margin:14px 0;padding:11px 12px;border:1px solid var(--bc-line);border-radius:8px;background:#0f1420;color:var(--bc-ink);font:13px Geist}.bc-search::placeholder{color:#9ca8bf}.bc-recipients{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:4px}.bc-recipients button{display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border-color:transparent;padding:12px 9px;min-width:0;flex-shrink:0}.bc-recipients button[aria-pressed=true]{background:#302b46;border-color:#655286;box-shadow:inset 3px 0 #b5a0f4}.bc-recipients button>span:not(.bc-avatar-placeholder){min-width:0;flex:1}.bc-recipients b,.bc-recipients small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bc-recipients b{font-size:13px}.bc-recipients small{font-size:11px;color:var(--bc-muted);margin-top:3px;font-weight:400}.bc-recipients time{font-size:10px;color:var(--bc-muted)}.bc-recipients img,.bc-avatar-placeholder{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 36px}.bc-avatar-placeholder{display:grid;place-items:center;background:#35304c;color:#d4c6f9;font-size:18px;font-weight:700}.bc-unread b:after{content:'';display:inline-block;width:7px;height:7px;background:#bb9cff;border-radius:50%;margin-left:8px}.bc-sidebar-note{font-size:11px;color:var(--bc-muted);margin:15px 10px 0;line-height:1.8}
.bc-main{display:flex;flex-direction:column;min-height:0;min-width:0}.bc-chat-heading{display:flex;align-items:center;gap:12px;padding:15px 24px;border-bottom:1px solid var(--bc-line);background:#171c29;min-height:76px}.bc-chat-heading>div:nth-child(2){min-width:0;flex:1}.bc-chat-heading h3{font-size:16px;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bc-target-kind{font-size:12px;color:var(--bc-muted);margin:3px 0 0}.bc-target-avatar img{width:38px;height:38px;border-radius:50%;display:block}.bc-chat-heading button{font-size:12px;background:transparent}.bc-chat{flex:1;min-height:80px;overflow-y:auto;padding:20px 28px;display:flex;flex-direction:column;gap:12px;scrollbar-gutter:stable;overscroll-behavior:contain}.bc-chat-empty{margin:auto;text-align:center;max-width:390px;color:var(--bc-muted);padding:25px 12px}.bc-chat-empty>span{font-size:38px;color:var(--bc-accent)}.bc-chat-empty h3{font-size:19px;color:var(--bc-ink);margin:10px 0}.bc-chat-empty p{font-size:13px;line-height:1.8}.bc-day{align-self:center;font-size:11px;color:var(--bc-muted);padding:3px 0 10px}.bc-message{display:flex;gap:9px;align-items:flex-end;max-width:85%;align-self:flex-start}.bc-message>img,.bc-message>.bc-avatar-placeholder{width:28px;height:28px;flex-basis:28px;border-radius:50%;object-fit:cover;font-size:13px}.bc-message.out{align-self:flex-end;flex-direction:row-reverse}.bc-bubble{min-width:100px;padding:11px 15px;border-radius:14px 14px 14px 4px;background:#242c3e;overflow-wrap:anywhere}.bc-message.out .bc-bubble{background:#38304f;border-radius:14px 14px 4px 14px}.bc-message-meta{display:flex;align-items:baseline;gap:20px;justify-content:space-between;color:#c2cbe0}.bc-message-meta b{font-size:11px;font-weight:600}.bc-message-meta time{font-size:10px;white-space:nowrap;color:#aeb8ce}.bc-bubble p{font-size:14px;line-height:1.65;white-space:pre-wrap;margin:5px 0 0}.bc-bubble a{display:block;font-size:13px;color:#dbcbff;margin-top:6px}
.bc-compose{padding:0 24px 16px;flex-shrink:0;background:var(--bc-base);max-height:55%;overflow:auto}.bc-retention{font-size:10px;color:var(--bc-muted);text-align:center;margin:2px 0 9px}.bc-compose textarea{display:block;width:100%;min-height:74px;max-height:140px;resize:vertical;padding:12px 14px;margin:0;border:1px solid #46506a;border-radius:10px;background:#1c2232;color:var(--bc-ink);font:14px/1.6 Geist,system-ui,sans-serif}.bc-compose textarea::placeholder{color:#a7b0c5}.bc-compose-actions{display:flex;gap:14px;align-items:center;padding-top:10px}.bc-send-as{flex:1;font-size:11px;color:var(--bc-muted)}.bc-send-as b{font-weight:600;color:#d3c6f3}.bc-counter{font-size:11px;color:var(--bc-muted);white-space:nowrap}.bc-compose .bc-review-button,.bc-compose .bc-send{background:#b5a0f4;border-color:#b5a0f4;color:#201733}.bc-compose .bc-review-button:hover,.bc-compose .bc-send:hover{background:#c7b7ff}.bc-preview{margin-top:6px;color:var(--bc-muted);font-size:11px}.bc-preview summary{cursor:pointer;width:fit-content;padding:3px 0}.bc-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#202637;padding:12px;border-radius:8px;color:var(--bc-ink);font-size:13px}.bc-review{margin-top:10px;border:1px solid #746193;border-radius:10px;background:#292439;padding:12px 15px}.bc-review strong{font-size:13px}.bc-review p{font-size:11px;color:#c0b9d1;margin:4px 0 10px}.bc-review>div{display:flex;justify-content:flex-end;gap:8px}.bc-status{font-size:12px;color:#a3dabd;margin:8px 0 0;white-space:pre-wrap}.bc-status:empty{display:none}.bc-status.error{color:#ffb5bf}.bc-sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.bc-history{position:absolute;right:0;top:80px;bottom:0;width:min(410px,100%);background:#1a2030;border-left:1px solid #535e79;padding:20px;box-shadow:-20px 0 60px #0005;z-index:5;overflow-y:auto}.bc-history>div:first-child{display:flex;align-items:center;gap:8px}.bc-history h3{margin:0;flex:1;font-size:17px}.bc-history>p{font-size:12px;color:var(--bc-muted)}.bc-history-list article{padding:15px 0;border-bottom:1px solid var(--bc-line)}.bc-history-list b,.bc-history-list small{display:block}.bc-history-list small{font-size:11px;color:var(--bc-muted);margin:5px 0}.bc-history-list a{display:block;font-size:12px;color:#c9b7fc;margin-top:6px}.bc-history-list p{font-size:12px;overflow-wrap:anywhere;color:#ffb5bf}.bc-delivery{font-size:12px;color:#e2bc78}.bc-delivery.sent{color:#83d6ba}.bc-delivery.failed,.bc-delivery.uncertain{color:#ffb5bf}.bc-empty{padding:12px;font-size:13px;color:var(--bc-muted)}.bc-loading{padding:40px}.bc-initial-close{position:absolute;right:12px;top:12px}
@media(max-width:850px){.bc-layout{grid-template-columns:230px minmax(0,1fr)}.bc-brand h2 span{display:none}.bc-chat{padding:16px}.bc-compose{padding:0 16px 12px}.bc-chat-heading{padding:12px 16px}.bc-send-as{display:none}.bc-counter{flex:1}}
@media(max-width:600px){.bc-panel{width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}.bc-header{height:66px;padding:10px 12px}.bc-brand>img{width:34px;height:34px}.bc-brand h2{font-size:15px}.bc-header-actions{gap:4px}.bc-header-actions button{font-size:11px;padding:7px}.bc-layout{height:calc(100% - 66px);grid-template-columns:1fr;grid-template-rows:157px minmax(0,1fr)}.bc-sidebar{padding:8px 12px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:36px 91px;gap:8px;border-right:0;border-bottom:1px solid var(--bc-line)}.bc-tabs{padding:0;border:0}.bc-tabs button{font-size:10px;padding:5px}.bc-search{margin:0;padding:7px;min-width:0}.bc-recipients{grid-column:1/-1;flex-direction:row;overflow-x:auto;overflow-y:hidden;gap:7px}.bc-recipients button{width:170px;padding:8px;align-self:center}.bc-recipients time{display:none}.bc-sidebar-note{display:none}.bc-chat-heading{min-height:61px;padding:9px 12px}.bc-chat-heading h3{font-size:14px}.bc-target-kind{font-size:10px}.bc-chat{padding:12px;gap:10px}.bc-message{max-width:96%}.bc-message-meta{gap:12px}.bc-bubble{padding:9px 12px}.bc-bubble p{font-size:13px}.bc-compose{padding:0 12px 10px;max-height:55%}.bc-compose textarea{min-height:62px;font-size:13px}.bc-compose-actions{gap:8px;padding-top:7px}.bc-compose-actions button{font-size:12px;padding:8px 10px}.bc-history{top:66px}.bc-retention{margin-bottom:5px}.bc-connection{font-size:10px}}
@media(prefers-reduced-motion:reduce){.bc-panel *{scroll-behavior:auto!important}}
