/* BamChat Composer v2 — black, amber and champagne, no theme replacement */
:root{--bc2-gold:#e8bd7d;--bc2-text:#f7ecdc;--bc2-line:rgba(234,191,128,.27);--bc2-glass:rgba(29,25,21,.98)}
.bc2-composer-wrap{position:relative!important;isolation:isolate}
.bc2-composer{display:flex!important;gap:7px!important;align-items:center!important;padding:9px 10px!important;background:linear-gradient(135deg,#302820,#181613)!important;border:1px solid var(--bc2-line)!important;border-radius:25px!important;box-shadow:0 10px 30px #0005!important;min-height:61px!important}
.bc2-composer>input:not([type=file]),.bc2-composer>textarea{min-width:0!important;flex:1 1 70px!important;min-height:38px!important;border:0!important;outline:none!important;background:transparent!important;box-shadow:none!important;color:var(--bc2-text)!important;font-size:14px!important;padding:7px 4px!important;line-height:1.3!important;resize:none!important}
.bc2-composer>input::placeholder,.bc2-composer>textarea::placeholder{color:#b6a794!important}
.bc2-composer .bc2-btn{display:grid;place-items:center;width:38px;height:38px;min-width:38px;max-width:38px;min-height:38px;border-radius:14px;border:1px solid transparent;background:transparent;color:#ebd8bc;box-shadow:none;cursor:pointer;padding:0;transition:background .15s,color .15s,transform .15s}
.bc2-composer .bc2-btn:hover,.bc2-composer .bc2-btn:focus-visible{background:rgba(232,189,125,.16);color:#fff4dc;outline:2px solid #e8bd7d;outline-offset:1px}
.bc2-composer .bc2-mic,.bc2-composer .bc2-send{border:1px solid #f1d5a8!important;color:#241a12!important;background:linear-gradient(135deg,#ffe5b3,#c79154)!important;border-radius:14px!important;box-shadow:0 2px 11px #c08b5030}
.bc2-native-hidden,.bc2-tray-hidden,#bam-agent-root .bc2-composer .bc2-agent-send{display:none!important}
.bc2-composer .bc2-btn[hidden]{display:none!important}
.bc2-popup{position:absolute;z-index:120;bottom:calc(100% + 9px);left:7px;width:min(348px,calc(100vw - 36px));max-height:min(370px,65dvh);overflow:auto;background:radial-gradient(circle at 98% 2%,rgba(157,102,47,.25),transparent 44%),#211c17;border:1px solid rgba(231,194,139,.42);box-shadow:0 22px 70px #000a;border-radius:23px;padding:14px;animation:bc2-rise .16s ease-out;color:#f8ead6}
.bc2-popup-head{display:flex;justify-content:space-between;align-items:center;padding:2px 5px 10px;font:600 14px system-ui}
.bc2-popup-head .bc2-btn{display:grid;place-items:center;background:transparent;color:#f4d7ab;border:0;cursor:pointer}
.bc2-pop-label{display:block;letter-spacing:.08em;text-transform:uppercase;color:#d2ae7a;font:700 10px system-ui;padding:4px 7px 9px}
.bc2-attach-item{display:flex;align-items:center;width:100%;gap:13px;min-height:62px;border:0;border-radius:15px;background:transparent;color:#f9eddb;cursor:pointer;text-align:left;padding:10px 11px;font:inherit}
.bc2-attach-item:hover,.bc2-attach-item:focus-visible{background:rgba(232,189,125,.12);outline:1px solid var(--bc2-line)}
.bc2-attach-item>svg{width:27px;height:27px;color:#e7b976;flex:none}
.bc2-attach-item>span{display:grid;gap:3px}.bc2-attach-item strong{font:600 13px system-ui}.bc2-attach-item small{font:400 11px system-ui;color:#c3ae94}
.bc2-emoji-tabs{display:flex;gap:4px;overflow:auto;margin-bottom:8px;padding-bottom:3px}
.bc2-chip{color:#cab395!important;border:1px solid rgba(228,181,114,.2)!important;border-radius:999px!important;font:500 11px system-ui!important;background:rgba(255,255,255,.04)!important;padding:6px 9px!important;cursor:pointer;white-space:nowrap}
.bc2-chip.active{background:#e8bd7d!important;color:#2e1e12!important}
.bc2-emoji-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.bc2-emoji-item{display:grid;place-items:center;border:0;background:transparent;color:white;border-radius:9px;aspect-ratio:1;font:23px system-ui;cursor:pointer;min-width:0;padding:2px}
.bc2-emoji-item:hover,.bc2-emoji-item:focus-visible{background:#f4ca8540;outline:1px solid #b8965b}
.bc2-record-card{margin-top:8px;display:flex;flex-direction:column;gap:10px;background:linear-gradient(145deg,#2c241d,#151310);border:1px solid rgba(240,195,131,.36);box-shadow:0 15px 45px #0006;padding:13px;border-radius:21px;color:#f6e9d5}
.bc2-record-head{display:flex;align-items:center;gap:9px;font:600 12px system-ui;color:#f6dbc0}
.bc2-record-label{flex:1}.bc2-record-clock{font:700 16px ui-monospace,monospace;color:#f7e0b6;margin-left:auto;font-variant-numeric:tabular-nums}
.bc2-live-dot{width:9px;height:9px;border-radius:50%;background:#f16b5c;box-shadow:0 0 0 4px #f16b5c22;animation:bc2-pulse 1.2s infinite;flex:none}
.bc2-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:37px;overflow:hidden}
.bc2-wave span{width:3px;min-width:3px;max-height:34px;border-radius:9px;background:linear-gradient(#f8d49b,#b77e41);transition:height .14s ease}
.bc2-record-hint{font:400 11px system-ui!important;color:#ceb598!important;text-align:center;margin:0!important}
.bc2-record-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end}
.bc2-record-actions>.bc2-btn{width:39px;height:39px;display:grid;place-items:center;flex:none;border-radius:13px;background:#ffffff10;color:#e6d5c1;border:1px solid #ffffff28;cursor:pointer}
.bc2-record-actions>.bc2-btn.danger{color:#ffc0ae;border-color:#e7766947}
.bc2-action-label{min-height:39px;border-radius:13px;border:1px solid var(--bc2-line);background:#ffffff12;color:#f4e6d1;padding:8px 13px;cursor:pointer;font:600 12px system-ui}
.bc2-action-label.primary{background:linear-gradient(135deg,#ffe3b0,#bf884c);border-color:#f3d19c;color:#23170e;margin-left:auto}
.bc2-action-label:disabled{opacity:.55;cursor:wait}
.bc2-duration{margin-left:auto;color:#c6b39b;font:12px ui-monospace,monospace}
.bc2-player{width:100%;height:42px;accent-color:#bc8b4d;color-scheme:dark}
.bc2-toast{margin:7px 3px 0!important;padding:8px 12px;background:#493727;border:1px solid #c9a16d70;border-radius:13px;color:#f6ddba;font:500 11px/1.4 system-ui;max-width:100%;overflow-wrap:anywhere}
#bam-agent-root .bc2-composer{margin:0!important;padding:7px 8px!important;flex-wrap:nowrap!important}
#bam-agent-root .bc2-composer .bc2-btn{flex:none}
#bam-agent-root .bc2-composer>textarea{border:0!important;padding:8px 4px!important;min-height:44px!important;width:100%!important}
#bam-agent-root .bc2-popup{bottom:calc(100% + 8px);left:0}
#bam-agent-root .bc2-record-card{flex:none}
/* Header: only the + glyph. Scan and all QR tools remain inside its existing action sheet. */
.top-actions [data-bamchat-quick-actions] svg{display:none!important}
.top-actions [data-bamchat-quick-actions] [data-bamchat-action-plus]{font-size:27px!important;font-family:system-ui!important;line-height:1!important}
@keyframes bc2-rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes bc2-pulse{50%{box-shadow:0 0 0 7px #f16b5c00}}
@media(max-width:420px){.bc2-composer{gap:2px!important;padding:8px 7px!important;min-height:55px!important;border-radius:20px!important}.bc2-composer .bc2-btn{width:33px!important;height:37px!important;min-width:33px!important}.bc2-composer .bc2-btn svg{width:19px;height:19px}.bc2-composer>input:not([type=file]),.bc2-composer>textarea{font-size:13px!important;padding-left:1px!important;padding-right:1px!important}.bc2-popup{left:0;width:min(340px,calc(100vw - 34px))}.bc2-record-actions{gap:5px}.bc2-action-label{padding:8px 10px}#bam-agent-root .bc2-composer .bc2-btn{min-width:33px}}
@media(prefers-reduced-motion:reduce){.bc2-live-dot,.bc2-popup{animation:none!important}.bc2-wave span{transition:none!important}}

/* Let the agent emoji and attachment panels rise above the clipped message scroller. */
#bam-agent-root .ba-main:has(.bc2-popup){overflow:visible!important}
