/* Acting as a customer, and the Messages app (#bmwChat). Loaded after
   account-portal.css in the portal, and on its own in wp-admin. The act-as
   rules use !important for the same reason every portal sheet does: the
   Elementor kit styles h1-h3, a, button, table and ol globally. */

/* ---- "you are acting as someone" bar ----
   Deliberately the loudest thing on the page. Mistaking someone else's account
   for your own is the one failure that matters here, so this does not blend in:
   dark band, amber dot, and an exit that is always in the same place. */
.bmw-actas-bar{position:sticky;top:0;z-index:40;display:flex;gap:14px;align-items:flex-start;padding:13px 18px;background:#0a1c13;color:#f2f6f2;border-radius:12px;margin:0 0 18px;box-shadow:0 6px 18px rgba(10,28,19,.16)}
.bmw-actas-dot{flex:0 0 9px;width:9px;height:9px;margin-top:6px;border-radius:50%;background:#e8b44a;box-shadow:0 0 0 4px rgba(232,180,74,.2)}
.bmw-actas-text{flex:1;min-width:0;font:400 14px/1.5 Inter,sans-serif!important}
.bmw-actas-text strong{color:#fff!important;font-weight:600!important}
.bmw-actas-mail{color:#a9c2b2!important}
.bmw-actas-text small{display:block;margin-top:4px;font-size:12px!important;line-height:1.6!important;color:#a9c2b2!important}
.bmw-actas-exit{flex:0 0 auto;align-self:center;padding:8px 15px!important;border-radius:100px!important;background:#e8b44a!important;color:#1b1203!important;font:600 13px/1 'DM Sans',sans-serif!important;text-decoration:none!important;white-space:nowrap}
.bmw-actas-exit:hover,.bmw-actas-exit:focus{background:#f0c468!important;color:#1b1203!important}
@media(max-width:700px){.bmw-actas-bar{flex-wrap:wrap}.bmw-actas-exit{align-self:flex-start;margin-left:23px}}

/* ---- the accounts table ---- */
.bmw-actas-table{width:100%!important;border-collapse:collapse!important;margin:4px 0 16px!important;background:none!important}
.bmw-actas-table th{text-align:left!important;padding:0 14px 9px 0!important;border:0!important;border-bottom:1px solid #e4e4df!important;background:none!important;font:600 11px/1.4 Inter,sans-serif!important;letter-spacing:.09em!important;text-transform:uppercase!important;color:#78857c!important}
.bmw-actas-table td{padding:14px 14px 14px 0!important;border:0!important;border-bottom:1px solid #eceae4!important;background:none!important;font-size:14px!important;line-height:1.5!important;vertical-align:top!important}
.bmw-actas-table tr:last-child td{border-bottom:0!important}
.bmw-actas-table strong{display:block;font:600 15px/1.35 'DM Sans',sans-serif!important;color:#111412!important;overflow-wrap:anywhere}
.bmw-actas-table small{display:block;margin-top:2px;font-size:12.5px!important;color:#627369!important;overflow-wrap:anywhere}
.bmw-actas-none{color:#9aa6a0!important}
.bmw-actas-unread{display:inline-block;padding:3px 9px;border-radius:100px;background:#fdf3dd;color:#8a6212!important;font:600 12px/1.5 Inter,sans-serif!important}
.bmw-actas-actions{white-space:nowrap}
.bmw-actas-actions .bmw-acct-btn{margin:0 0 6px!important}
.bmw-actas-actions .bmw-claim-link{display:block;font-size:13px!important}
@media(max-width:760px){
  .bmw-actas-table thead{display:none}
  .bmw-actas-table tr{display:block;padding:14px 0;border-bottom:1px solid #eceae4}
  .bmw-actas-table td{display:block;padding:0 0 6px!important;border:0!important}
  .bmw-actas-actions{white-space:normal;padding-top:8px!important}
}

/* ---- Messages app (#bmwChat) ----
   Drawn by assets/messages.js. Every rule hangs off the #bmwChat id so it
   out-ranks the Elementor kit (button/input rules up to 0,3,1) and the portal
   and wp-admin skins without a fight; !important is used only where those
   sheets themselves use it (textarea radius, disabled buttons). The same sheet
   runs in the portal and in wp-admin, so it carries its own tokens. */
#bmwChat{
  --bc-paper:#F7F7F4;--bc-card:#FFFFFF;--bc-ink:#111412;--bc-ink2:#2E3A33;--bc-muted:#5E6B62;--bc-faint:#7F8B83;
  --bc-line:#E4E4DF;--bc-lineg:#D5E2DA;--bc-g:#1F6B4A;--bc-ghover:#185A3D;--bc-gdeep:#0E3825;--bc-gink:#0A1C13;
  --bc-mint:#8FCBA8;--bc-gsoft:#EEF5F0;--bc-bubble:#F1F3EF;--bc-amberbg:#FFF7E3;--bc-amberline:#EED69A;--bc-amberink:#6E5110;
  --bc-redbg:#FCEBEC;--bc-redline:#F2C4C5;--bc-red:#A12A2C;
  --bc-ff:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;--bc-fd:'Fraunces',Georgia,serif;--bc-fe:'Inter',system-ui,sans-serif;
  --bc-shadow:0 1px 2px rgba(10,28,19,.05),0 18px 40px -24px rgba(10,28,19,.28);
  font:400 15px/1.5 var(--bc-ff);color:var(--bc-ink);margin-top:22px;min-width:0
}
#bmwChat *,#bmwChat *::before,#bmwChat *::after{box-sizing:border-box}
#bmwChat [hidden]{display:none!important}
#bmwChat h2,#bmwChat h3,#bmwChat h4,#bmwChat p,#bmwChat ol,#bmwChat ul,#bmwChat li,#bmwChat dl,#bmwChat dd,#bmwChat dt{margin:0;padding:0}
#bmwChat ol,#bmwChat ul{list-style:none}
#bmwChat button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;border-radius:0;cursor:pointer;text-transform:none;letter-spacing:normal;line-height:inherit;box-shadow:none;min-height:0;width:auto}
#bmwChat button:hover,#bmwChat button:focus{background:none;color:inherit;border:0}
#bmwChat button:disabled{cursor:not-allowed}
#bmwChat a{color:var(--bc-g);font-weight:600;text-decoration:none}
#bmwChat :focus-visible{outline:2px solid var(--bc-g);outline-offset:2px}
#bmwChat .bc-i{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#bmwChat .bc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#bmwChat .bc-loading,#bmwChat .bc-fail{color:var(--bc-muted)}

/* avatars, chips, buttons */
#bmwChat .bc-av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font:700 13px/1 var(--bc-fe);flex:none}
#bmwChat .bc-av--sm{width:30px;height:30px;font-size:11px}
#bmwChat .bc-av--lg{width:52px;height:52px;font-size:16px}
#bmwChat .bc-av--brand{background:var(--bc-gdeep);color:var(--bc-mint)}
#bmwChat .bc-av--brand .bc-i{width:17px;height:17px}
#bmwChat .bc-av--sm.bc-av--brand .bc-i{width:14px;height:14px}
#bmwChat .bc-chip{display:inline-flex;align-items:center;gap:5px;font:600 11px/1 var(--bc-fe);padding:4px 8px;border-radius:99px;white-space:nowrap;background:var(--bc-bubble);color:var(--bc-muted)}
#bmwChat .bc-chip .bc-i{width:12px;height:12px}
#bmwChat .bc-chip.is-green,#bmwChat .bc-chip.is-ok{background:var(--bc-gsoft);color:var(--bc-g)}
#bmwChat .bc-chip.is-amber{background:var(--bc-amberbg);color:var(--bc-amberink);box-shadow:inset 0 0 0 1px var(--bc-amberline)}
#bmwChat .bc-chip.is-red{background:var(--bc-redbg);color:var(--bc-red);box-shadow:inset 0 0 0 1px var(--bc-redline)}
#bmwChat .bc-dark{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:var(--bc-gdeep);color:#fff;border-radius:99px;padding:7px 13px;font-size:13px;font-weight:600;white-space:nowrap}
#bmwChat .bc-dark:hover{background:var(--bc-g);color:#fff}
#bmwChat .bc-dark .bc-i{width:15px;height:15px}
#bmwChat .bc-ghost,#bmwChat .bc-line{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--bc-lineg);background:var(--bc-card);border-radius:99px;padding:6px 12px;font-size:13px;font-weight:600;color:var(--bc-ink2);white-space:nowrap}
#bmwChat .bc-ghost:hover,#bmwChat .bc-line:hover{border:1px solid var(--bc-g);color:var(--bc-g);background:var(--bc-card)}
#bmwChat .bc-line.is-done{background:var(--bc-gsoft);color:var(--bc-g)}
#bmwChat .bc-ghost .bc-i,#bmwChat .bc-line .bc-i{width:15px;height:15px}
#bmwChat .bc-icon{width:34px;height:34px;border-radius:50%;border:1px solid var(--bc-line);background:var(--bc-card);display:grid;place-items:center;color:var(--bc-ink2);flex:none}
#bmwChat .bc-icon:hover{border:1px solid var(--bc-g);color:var(--bc-g);background:var(--bc-card)}
#bmwChat .bc-icon .bc-i{width:16px;height:16px}

/* the chat card */
#bmwChat .bc-chat{background:var(--bc-card);border:1px solid var(--bc-line);border-radius:16px;box-shadow:var(--bc-shadow);display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;overflow:hidden;height:clamp(520px,calc(100vh - 300px),780px)}
#bmwChat .bc-chat-head{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--bc-line)}
#bmwChat .bc-chat-head strong,#bmwChat .bc-who-b strong{display:block;font-size:15.5px;line-height:1.25;font-weight:600;color:var(--bc-ink)}
#bmwChat .bc-sub{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--bc-muted);font-size:12.5px}
#bmwChat .bc-live{width:8px;height:8px;border-radius:50%;background:#3BA370;box-shadow:0 0 0 3px rgba(59,163,112,.18);flex:none}
#bmwChat .bc-scroll{overflow-y:auto;padding:18px 18px 8px;overscroll-behavior:contain;min-height:0}
#bmwChat .bc-msgs{display:flex;flex-direction:column;gap:2px}
#bmwChat .bc-day{display:flex;align-items:center;gap:12px;margin:14px 0 10px;color:var(--bc-faint);font:600 10.5px/1 var(--bc-fe);letter-spacing:.12em;text-transform:uppercase}
#bmwChat .bc-day::before,#bmwChat .bc-day::after{content:"";flex:1;height:1px;background:var(--bc-line)}
#bmwChat .bc-new{display:flex;align-items:center;gap:10px;margin:10px 0;color:#D63638;font:700 10.5px/1 var(--bc-fe);letter-spacing:.12em;text-transform:uppercase}
#bmwChat .bc-new::after{content:"";flex:1;height:1px;background:rgba(214,54,56,.35)}
#bmwChat .bc-msg{display:flex;align-items:flex-end;gap:8px}
#bmwChat .bc-msg.is-mine{flex-direction:row-reverse}
#bmwChat .bc-msg.is-start{margin-top:10px}
#bmwChat .bc-avslot{width:30px;flex:none}
#bmwChat .bc-bw{display:flex;flex-direction:column;align-items:flex-start;gap:4px;max-width:min(76%,560px);min-width:0}
#bmwChat .bc-msg.is-mine .bc-bw{align-items:flex-end}
#bmwChat .bc-who{font-size:12px;color:var(--bc-muted);font-weight:600;padding:0 4px}
#bmwChat .bc-who span{font-weight:500;color:var(--bc-faint)}
#bmwChat .bc-bubble{background:var(--bc-bubble);color:var(--bc-ink);padding:9px 14px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.45;max-width:100%}
#bmwChat .bc-msg.is-mine .bc-bubble{background:var(--bc-g);color:#fff}
#bmwChat .bc-msg.is-theirs.is-mid .bc-bubble,#bmwChat .bc-msg.is-theirs.is-end .bc-bubble{border-top-left-radius:6px}
#bmwChat .bc-msg.is-theirs.is-start .bc-bubble,#bmwChat .bc-msg.is-theirs.is-mid .bc-bubble{border-bottom-left-radius:6px}
#bmwChat .bc-msg.is-mine.is-mid .bc-bubble,#bmwChat .bc-msg.is-mine.is-end .bc-bubble{border-top-right-radius:6px}
#bmwChat .bc-msg.is-mine.is-start .bc-bubble,#bmwChat .bc-msg.is-mine.is-mid .bc-bubble{border-bottom-right-radius:6px}
#bmwChat .bc-msg.is-solo .bc-bubble{border-top-left-radius:18px;border-top-right-radius:18px}
#bmwChat .bc-msg.is-pending .bc-bubble{opacity:.6}
#bmwChat .bc-msg.is-fresh .bc-bubble{animation:bcPop .28s cubic-bezier(.2,.9,.3,1.2)}
@keyframes bcPop{from{transform:translateY(6px) scale(.97);opacity:.4}to{transform:none;opacity:1}}
#bmwChat .bc-meta{font-size:11.5px;color:var(--bc-faint);padding:0 6px;display:flex;align-items:center;gap:4px}
#bmwChat .bc-meta .bc-i{width:14px;height:14px}
#bmwChat .bc-meta.is-seen{color:var(--bc-g)}
#bmwChat .bc-ref{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;color:var(--bc-g);border:1px solid var(--bc-lineg);background:var(--bc-card);border-radius:99px;padding:3px 9px}
#bmwChat .bc-ref .bc-i{width:12px;height:12px}
#bmwChat .bc-note{margin:12px 0 4px;padding:0 38px}
#bmwChat .bc-note-card{background:var(--bc-amberbg);border:1px dashed var(--bc-amberline);border-radius:12px;padding:10px 14px;color:var(--bc-ink2);font-size:14px}
#bmwChat .bc-note-card header{display:flex;align-items:center;gap:6px;color:var(--bc-amberink);font:600 11px/1.3 var(--bc-fe);margin-bottom:4px;flex-wrap:wrap}
#bmwChat .bc-note-card header .bc-i{width:13px;height:13px}
#bmwChat .bc-note-card time{margin-left:auto;font-weight:500;color:var(--bc-faint)}
#bmwChat .bc-note-card p{white-space:pre-wrap;overflow-wrap:anywhere}
#bmwChat .bc-typing{display:flex;align-items:flex-end;gap:8px;padding:6px 0 4px}
#bmwChat .bc-typing .bc-bubble{display:flex;gap:4px;padding:12px 14px;border-bottom-left-radius:6px}
#bmwChat .bc-typing .bc-bubble i{width:7px;height:7px;border-radius:50%;background:var(--bc-faint);animation:bcBlink 1.2s infinite}
#bmwChat .bc-typing .bc-bubble i:nth-child(2){animation-delay:.15s}
#bmwChat .bc-typing .bc-bubble i:nth-child(3){animation-delay:.3s}
#bmwChat .bc-typing small{color:var(--bc-faint);font-size:12px;padding-bottom:6px}
@keyframes bcBlink{0%,60%,100%{opacity:.3;transform:none}30%{opacity:1;transform:translateY(-3px)}}
#bmwChat .bc-empty{margin:auto;text-align:center;color:var(--bc-muted);max-width:38ch;padding:40px 10px;display:flex;flex-direction:column;align-items:center;gap:10px}
#bmwChat .bc-empty strong{color:var(--bc-ink)}

/* composer */
#bmwChat .bc-composer{border-top:1px solid var(--bc-line);padding:12px 16px 14px;display:flex;flex-direction:column;gap:8px;background:var(--bc-card);margin:0}
#bmwChat .bc-cmp-top{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap}
#bmwChat .bc-mode{display:flex;gap:2px;background:var(--bc-bubble);border-radius:99px;padding:3px}
#bmwChat .bc-mode button{border-radius:99px;padding:5px 12px;font-size:12.5px;font-weight:600;color:var(--bc-muted);display:flex;align-items:center;gap:6px}
#bmwChat .bc-mode button .bc-i{width:14px;height:14px}
#bmwChat .bc-mode button[aria-selected="true"]{background:var(--bc-card);color:var(--bc-ink);box-shadow:0 1px 3px rgba(0,0,0,.08)}
#bmwChat .bc-mode button:disabled{opacity:.45!important}
#bmwChat .bc-composer.is-note .bc-mode button[data-mode="note"]{background:var(--bc-amberbg);color:var(--bc-amberink)}
#bmwChat .bc-saved{position:relative}
#bmwChat .bc-saved-menu{position:absolute;right:0;bottom:calc(100% + 8px);width:min(360px,80vw);max-height:320px;overflow-y:auto;background:var(--bc-card);border:1px solid var(--bc-line);border-radius:12px;box-shadow:var(--bc-shadow);padding:6px;z-index:5}
#bmwChat .bc-saved-menu button{display:block;width:100%;text-align:left;border-radius:8px;padding:9px 10px}
#bmwChat .bc-saved-menu button:hover,#bmwChat .bc-saved-menu button:focus-visible{background:var(--bc-gsoft)}
#bmwChat .bc-saved-menu strong{display:block;font-size:13.5px}
#bmwChat .bc-saved-menu span{display:block;font-size:12.5px;color:var(--bc-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bmwChat .bc-cmp-block{font-size:13px;color:var(--bc-amberink);background:var(--bc-amberbg);border:1px solid var(--bc-amberline);border-radius:10px;padding:8px 12px}
#bmwChat .bc-cmp-box{border:1px solid var(--bc-lineg);border-radius:14px;background:var(--bc-card);transition:border-color .15s,box-shadow .15s}
#bmwChat .bc-cmp-box:focus-within{border-color:var(--bc-g);box-shadow:0 0 0 3px rgba(31,107,74,.12)}
#bmwChat .bc-composer.is-note .bc-cmp-box{background:var(--bc-amberbg);border-color:var(--bc-amberline)}
#bmwChat .bc-composer.is-blocked .bc-cmp-box{opacity:.55}
#bmwChat .bc-cmp-box textarea{display:block!important;width:100%!important;border:0!important;border-radius:14px 14px 0 0!important;background:transparent!important;box-shadow:none!important;outline:none!important;resize:none!important;padding:12px 14px 4px!important;margin:0!important;font:400 15px/1.45 var(--bc-ff)!important;color:var(--bc-ink)!important;max-height:180px;min-height:46px!important;height:46px}
#bmwChat .bc-cmp-bar{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 10px;min-width:0}
#bmwChat .bc-about{position:relative;display:flex;align-items:center;min-width:0;max-width:62%;margin:0}
#bmwChat .bc-about .bc-i{position:absolute;left:9px;width:14px;height:14px;color:var(--bc-g);pointer-events:none;z-index:1}
#bmwChat .bc-about select{appearance:none!important;-webkit-appearance:none!important;border:1px solid var(--bc-lineg)!important;background:var(--bc-gsoft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231F6B4A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center!important;color:var(--bc-g)!important;font:600 12.5px/1.3 var(--bc-ff)!important;border-radius:99px!important;padding:5px 26px 5px 28px!important;max-width:100%!important;width:auto!important;min-height:0!important;height:auto!important;text-overflow:ellipsis;cursor:pointer;box-shadow:none!important;margin:0!important}
#bmwChat .bc-as{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--bc-muted);white-space:nowrap}
#bmwChat .bc-as .bc-i{width:14px;height:14px;color:var(--bc-g)}
#bmwChat .bc-composer.is-note .bc-as{color:var(--bc-amberink)}
#bmwChat .bc-hint{margin-left:auto;font-size:11.5px;color:var(--bc-faint);white-space:nowrap}
#bmwChat .bc-hint.is-over{color:#D63638;font-weight:600}
#bmwChat .bc-send{width:38px;height:38px;border-radius:50%;background:var(--bc-g);color:#fff;display:grid;place-items:center;flex:none;transition:transform .12s,background .15s}
#bmwChat .bc-send:hover:not(:disabled),#bmwChat .bc-send:focus:not(:disabled){background:var(--bc-ghover);color:#fff}
#bmwChat .bc-send:active:not(:disabled){transform:scale(.93)}
#bmwChat .bc-send:disabled{background:var(--bc-lineg);color:#fff;opacity:1!important}
#bmwChat .bc-composer.is-note .bc-send:not(:disabled){background:#B98A1B}
#bmwChat .bc-send .bc-i{width:17px;height:17px}
#bmwChat .bc-warn{font-size:12.5px;color:#D63638}
#bmwChat .bc-warn:empty{display:none}

/* owner layout */
#bmwChat .bc-owner{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start}
#bmwChat .bc-aside{display:flex;flex-direction:column;gap:14px}
#bmwChat .bc-card{background:var(--bc-card);border:1px solid var(--bc-line);border-radius:14px;padding:18px}
#bmwChat .bc-card h3{font:600 10.5px/1 var(--bc-fe);letter-spacing:.16em;text-transform:uppercase;color:var(--bc-muted);margin-bottom:12px}
#bmwChat .bc-team{display:flex;gap:12px;align-items:flex-start}
#bmwChat .bc-team strong{display:block;font-size:15px}
#bmwChat .bc-team p{font-size:13.5px;color:var(--bc-muted)}
#bmwChat .bc-topics{display:flex;flex-wrap:wrap;gap:7px}
#bmwChat .bc-topics button{border:1px solid var(--bc-lineg);background:var(--bc-card);border-radius:99px;padding:7px 12px;font-size:13px;font-weight:600;color:var(--bc-ink2)}
#bmwChat .bc-topics button:hover{border:1px solid var(--bc-g);color:var(--bc-g);background:var(--bc-gsoft)}
#bmwChat .bc-qlinks a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--bc-line);color:var(--bc-ink2);font-weight:500;font-size:14px}
#bmwChat .bc-qlinks h3+a{border-top:0;padding-top:0}
#bmwChat .bc-qlinks a:hover{color:var(--bc-g)}
#bmwChat .bc-qlinks .bc-i{width:15px;height:15px;color:var(--bc-faint)}

/* staff: stats */
#bmwChat .bc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
#bmwChat .bc-stat{background:var(--bc-card);border:1px solid var(--bc-line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
#bmwChat .bc-stat span{font:600 10px/1.2 var(--bc-fe);letter-spacing:.14em;text-transform:uppercase;color:var(--bc-faint)}
#bmwChat .bc-stat strong{font:500 28px/1.1 var(--bc-fd);letter-spacing:-.5px;font-variant-numeric:tabular-nums;color:#10281B}
#bmwChat .bc-stat small{font-size:12.5px;color:var(--bc-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bmwChat .bc-stat.is-hot strong{color:var(--bc-red)}
#bmwChat .bc-stat.is-warm strong{color:var(--bc-amberink)}

/* staff: inbox */
#bmwChat .bc-ibwrap{container-type:inline-size;min-width:0}
#bmwChat .bc-inbox{position:relative;display:grid;grid-template-columns:310px minmax(0,1fr) 300px;background:var(--bc-card);border:1px solid var(--bc-line);border-radius:16px;box-shadow:var(--bc-shadow);overflow:hidden;height:clamp(580px,calc(100vh - 300px),880px)}
#bmwChat.bc--wp .bc-inbox{height:clamp(560px,calc(100vh - 230px),860px);border-radius:10px}
#bmwChat .bc-list{border-right:1px solid var(--bc-line);display:flex;flex-direction:column;min-height:0;min-width:0}
#bmwChat .bc-lhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 16px 10px}
#bmwChat .bc-lhead h2{font:500 20px/1.1 var(--bc-fd)!important;letter-spacing:-.3px;color:var(--bc-ink)!important;margin:0!important;padding:0!important}
#bmwChat .bc-search{position:relative;margin:0 16px 10px}
#bmwChat .bc-search .bc-i{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--bc-faint);z-index:1}
#bmwChat .bc-search input{width:100%!important;border:1px solid var(--bc-line)!important;background:var(--bc-paper)!important;border-radius:99px!important;padding:8px 12px 8px 33px!important;font:400 13.5px/1.4 var(--bc-ff)!important;color:var(--bc-ink)!important;min-height:0!important;height:auto!important;box-shadow:none!important;outline:none!important;margin:0!important}
#bmwChat .bc-search input:focus{border-color:var(--bc-g)!important;background:var(--bc-card)!important}
#bmwChat .bc-filters{display:flex;gap:4px;padding:0 16px 10px;border-bottom:1px solid var(--bc-line)}
#bmwChat .bc-filters button{border-radius:99px;padding:6px 10px;font-size:12.5px;font-weight:600;color:var(--bc-muted);display:flex;align-items:center;gap:6px}
#bmwChat .bc-filters button[aria-selected="true"]{background:var(--bc-gsoft);color:var(--bc-g)}
#bmwChat .bc-filters button span{font:700 10.5px/1 var(--bc-fe);opacity:.8}
#bmwChat .bc-items{overflow-y:auto;flex:1;min-height:0;padding:6px}
#bmwChat .bc-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;width:100%;text-align:left;border-radius:11px;padding:11px 10px}
#bmwChat .bc-item:hover,#bmwChat .bc-item:focus{background:var(--bc-paper)}
#bmwChat .bc-item.is-sel,#bmwChat .bc-item.is-sel:hover{background:var(--bc-gsoft)}
#bmwChat .bc-item-main{min-width:0;display:block}
#bmwChat .bc-r1{display:flex;align-items:baseline;gap:8px;min-width:0}
#bmwChat .bc-r1 strong{font-size:14.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bmwChat .bc-r1 time{margin-left:auto;font-size:11.5px;color:var(--bc-faint);white-space:nowrap;font-variant-numeric:tabular-nums}
#bmwChat .bc-prev{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;color:var(--bc-muted);line-height:1.4;margin-top:2px}
#bmwChat .bc-prev.is-typing{color:var(--bc-g);font-style:italic}
#bmwChat .bc-r3{display:flex;align-items:center;gap:6px;margin-top:6px;min-width:0}
#bmwChat .bc-biz{font-size:12px;color:var(--bc-faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#bmwChat .bc-count{margin-left:auto;min-width:19px;height:19px;border-radius:10px;background:var(--bc-g);color:#fff;font:700 10.5px/19px var(--bc-fe);text-align:center;padding:0 6px;flex:none}
#bmwChat .bc-item.is-unread strong{font-weight:700}
#bmwChat .bc-item.is-unread .bc-prev{color:var(--bc-ink)}
#bmwChat .bc-none{padding:30px 16px;text-align:center;color:var(--bc-muted);font-size:13.5px}
#bmwChat .bc-thread{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;min-height:0}
#bmwChat .bc-thead{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--bc-line);min-width:0;min-height:63px}
#bmwChat .bc-who-b{min-width:0;flex:1}
#bmwChat .bc-who-b strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#bmwChat .bc-tactions{display:flex;gap:6px;flex:none}
#bmwChat .bc-back,#bmwChat .bc-ctx-btn,#bmwChat .bc-ctx-x{display:none}
#bmwChat .bc-ctx{border-left:1px solid var(--bc-line);overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:18px;min-width:0;background:var(--bc-card)}
#bmwChat .bc-ctx-wait{color:var(--bc-muted);font-size:13px}
#bmwChat .bc-sec h4{font:600 10px/1 var(--bc-fe);letter-spacing:.16em;text-transform:uppercase;color:var(--bc-faint);margin:0 0 9px}
#bmwChat .bc-id{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
#bmwChat .bc-id strong{font:500 20px/1.15 var(--bc-fd);letter-spacing:-.3px}
#bmwChat .bc-kv{display:grid;grid-template-columns:66px minmax(0,1fr);gap:6px 10px;font-size:13px}
#bmwChat .bc-kv dt{color:var(--bc-faint)}
#bmwChat .bc-kv dd{display:flex;gap:6px;align-items:center;overflow-wrap:anywhere;min-width:0}
#bmwChat .bc-kv dd span{min-width:0;overflow-wrap:anywhere}
#bmwChat .bc-copy{color:var(--bc-faint);padding:2px;border-radius:4px;display:grid;flex:none}
#bmwChat .bc-copy:hover{color:var(--bc-g)}
#bmwChat .bc-copy .bc-i{width:14px;height:14px}
#bmwChat .bc-stores>li{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--bc-line);font-size:13.5px}
#bmwChat .bc-stores>li:first-child{border-top:0;padding-top:0}
#bmwChat .bc-stores>li>.bc-i{width:16px;height:16px;color:var(--bc-g);margin-top:2px}
#bmwChat .bc-stores>li>div{min-width:0;flex:1}
#bmwChat .bc-stores b{display:block;font-weight:600;overflow-wrap:anywhere}
#bmwChat .bc-stores small{display:block;color:var(--bc-muted);font-size:12.5px}
#bmwChat .bc-store-meta{display:flex;align-items:center;gap:8px;margin-top:6px;flex-wrap:wrap}
#bmwChat .bc-miss{font-size:12px;color:var(--bc-g);font-weight:600}
#bmwChat .bc-miss.is-n{color:var(--bc-red)}
#bmwChat .bc-health{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:6px}
#bmwChat .bc-health span{display:flex;align-items:center;gap:4px;font-size:12.5px;color:var(--bc-ink2)}
#bmwChat .bc-health .bc-i{width:13px;height:13px}
#bmwChat .bc-health .is-y .bc-i{color:var(--bc-g)}
#bmwChat .bc-health .is-n{color:var(--bc-red)}
#bmwChat .bc-link{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;margin-top:6px}
#bmwChat .bc-link .bc-i{width:13px;height:13px}
#bmwChat .bc-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#bmwChat .bc-nums div{background:var(--bc-paper);border-radius:10px;padding:9px 10px;min-width:0}
#bmwChat .bc-nums b{display:block;font:500 19px/1.1 var(--bc-fd);font-variant-numeric:tabular-nums}
#bmwChat .bc-nums small{font-size:11.5px;color:var(--bc-muted)}
#bmwChat .bc-tl li{position:relative;padding:0 0 12px 18px;font-size:13px}
#bmwChat .bc-tl li::before{content:"";position:absolute;left:3px;top:6px;width:7px;height:7px;border-radius:50%;background:var(--bc-mint)}
#bmwChat .bc-tl li::after{content:"";position:absolute;left:6px;top:15px;bottom:0;width:1px;background:var(--bc-line)}
#bmwChat .bc-tl li:last-child::after{display:none}
#bmwChat .bc-tl small{display:block;color:var(--bc-faint);font-size:12px}
#bmwChat .bc-actions{display:flex;flex-direction:column;gap:8px;margin-top:auto}
#bmwChat .bc-actions .bc-dark{padding:9px 12px;color:#fff}
#bmwChat .bc-actions small{font-size:12px;color:var(--bc-faint)}

@container (max-width:1080px){
  #bmwChat .bc-inbox{grid-template-columns:290px minmax(0,1fr)}
  #bmwChat .bc-ctx{display:none;position:absolute;top:0;right:0;bottom:0;width:min(330px,92%);box-shadow:-18px 0 40px -20px rgba(10,28,19,.35);z-index:6}
  #bmwChat .bc-inbox.is-ctx .bc-ctx{display:flex}
  #bmwChat .bc-ctx-btn,#bmwChat .bc-ctx-x{display:grid}
  #bmwChat .bc-ctx-x{position:absolute;top:12px;right:12px}
}
@container (max-width:700px){
  #bmwChat .bc-inbox{grid-template-columns:minmax(0,1fr);height:min(78vh,700px)}
  #bmwChat .bc-list{border-right:0}
  #bmwChat .bc-inbox:not(.is-open) .bc-thread{display:none}
  #bmwChat .bc-inbox.is-open .bc-list{display:none}
  #bmwChat .bc-back{display:grid}
  #bmwChat .bc-tactions .bc-line span{display:none}
  #bmwChat .bc-bw{max-width:86%}
  #bmwChat .bc-note{padding:0}
}

/* toasts and the New dialog */
#bmwChat .bc-toasts{position:fixed;right:16px;bottom:16px;z-index:100000;display:flex;flex-direction:column;gap:10px;width:min(340px,calc(100vw - 32px))}
#bmwChat .bc-toast{display:flex;gap:12px;align-items:center;background:var(--bc-gink);color:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 14px 34px -12px rgba(10,28,19,.6);animation:bcIn .3s ease}
#bmwChat .bc-toast .bc-av{width:32px;height:32px}
#bmwChat .bc-toast strong{display:block;font-size:14px}
#bmwChat .bc-toast p{font-size:13px;color:rgba(255,255,255,.72);overflow-wrap:anywhere}
@keyframes bcIn{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
#bmwChat .bc-overlay{position:fixed;inset:0;background:rgba(10,28,19,.45);z-index:100001;display:grid;place-items:center;padding:16px}
#bmwChat .bc-modal{background:var(--bc-card);border-radius:16px;width:min(480px,100%);max-height:min(640px,90vh);display:flex;flex-direction:column;box-shadow:0 30px 60px -20px rgba(0,0,0,.4);overflow:hidden}
#bmwChat .bc-modal header{padding:18px 18px 12px;display:flex;align-items:flex-start;gap:10px}
#bmwChat .bc-modal header>div{flex:1}
#bmwChat .bc-modal h2{font:500 22px/1.15 var(--bc-fd)!important;color:var(--bc-ink)!important;margin:0!important}
#bmwChat .bc-modal header p{font-size:13.5px;color:var(--bc-muted);margin-top:4px}
#bmwChat .bc-modal .bc-search{margin:0 18px 10px}
#bmwChat .bc-modal ul{overflow-y:auto;padding:0 10px 12px}
#bmwChat .bc-modal li button{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center;width:100%;text-align:left;border-radius:10px;padding:9px 8px}
#bmwChat .bc-modal li button:hover,#bmwChat .bc-modal li button:focus-visible{background:var(--bc-gsoft)}
#bmwChat .bc-modal li button>span:nth-child(2){min-width:0}
#bmwChat .bc-modal li strong{display:block;font-size:14.5px}
#bmwChat .bc-modal li small{display:block;color:var(--bc-muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* page-level widths */
@media (max-width:1180px){
  #bmwChat .bc-owner{grid-template-columns:minmax(0,1fr)}
  #bmwChat .bc-aside{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
  #bmwChat .bc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  #bmwChat .bc-chat{height:min(76vh,680px)}
  #bmwChat .bc-hint{display:none}
  #bmwChat .bc-hint.is-over{display:block}
  #bmwChat .bc-wide{display:none}
  #bmwChat .bc-stat strong{font-size:23px}
}
@media (prefers-reduced-motion:reduce){
  #bmwChat *{animation:none!important;transition:none!important}
}

/* wp-admin page chrome */
.bmw-msg-admin .bmw-msg-admin-sub{color:#646970;max-width:90ch;margin:4px 0 0}
