/* Talk to Brian */
.ttb-root{--ttb:#0B5D4B;position:fixed;right:20px;bottom:20px;z-index:2147483000;font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#1d2321}
.ttb-root *{box-sizing:border-box}
.ttb-root svg{width:22px;height:22px;fill:currentColor;display:block}
.ttb-hidden{display:none!important}

.ttb-fab{display:flex;align-items:center;gap:10px;border:0;cursor:pointer;background:var(--ttb);color:#fff;padding:13px 20px 13px 16px;border-radius:999px;font:600 15px/1 inherit;font-family:inherit;box-shadow:0 8px 24px rgba(0,0,0,.22);transition:transform .15s ease,box-shadow .15s ease}
.ttb-fab:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.26)}
.ttb-fab:focus-visible{outline:3px solid #fff;outline-offset:2px}
.ttb-open .ttb-fab{display:none}

.ttb-panel{display:none;flex-direction:column;width:370px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100vh - 40px);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.ttb-open .ttb-panel{display:flex;animation:ttb-in .18s ease-out}
@keyframes ttb-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

.ttb-head{display:flex;align-items:center;gap:10px;padding:14px 12px 14px 16px;background:var(--ttb);color:#fff}
.ttb-avatar{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;flex:0 0 auto}
.ttb-title{flex:1;min-width:0;display:flex;flex-direction:column}
.ttb-title strong{font-size:16px}
.ttb-title span{font-size:12px;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ttb-icon{background:transparent;border:0;color:#fff;cursor:pointer;padding:7px;border-radius:50%;opacity:.9}
.ttb-icon:hover{background:rgba(255,255,255,.15);opacity:1}
.ttb-icon svg{width:20px;height:20px}

.ttb-log{flex:1;overflow-y:auto;padding:16px;background:#f5f7f6;display:flex;flex-direction:column;gap:8px}
.ttb-msg{max-width:85%;padding:9px 13px;border-radius:16px;white-space:pre-wrap;word-wrap:break-word}
.ttb-assistant{align-self:flex-start;background:#fff;border:1px solid #e3e8e6;border-bottom-left-radius:5px}
.ttb-user{align-self:flex-end;background:var(--ttb);color:#fff;border-bottom-right-radius:5px}
.ttb-live{opacity:.65;font-style:italic}
.ttb-live:empty{display:none}
.ttb-typing{color:#7b8783;letter-spacing:2px;animation:ttb-blink 1s infinite}
@keyframes ttb-blink{50%{opacity:.4}}

.ttb-status{min-height:22px;padding:3px 16px;font-size:12.5px;color:#56625e;background:#f5f7f6}
.ttb-status.ttb-err{color:#b42318}

.ttb-controls{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid #e8ecea;background:#fff}
.ttb-mic{flex:0 0 auto;width:48px;height:48px;border-radius:50%;border:0;cursor:pointer;background:var(--ttb);color:#fff;display:flex;align-items:center;justify-content:center;transition:transform .1s}
.ttb-mic:active{transform:scale(.95)}
.ttb-mic.ttb-on{background:#d92d20;animation:ttb-pulse 1.4s infinite}
@keyframes ttb-pulse{0%{box-shadow:0 0 0 0 rgba(217,45,32,.45)}70%{box-shadow:0 0 0 12px rgba(217,45,32,0)}100%{box-shadow:0 0 0 0 rgba(217,45,32,0)}}
.ttb-form{flex:1;display:flex;align-items:center;gap:6px;margin:0;background:#f1f4f3;border-radius:999px;padding:4px 4px 4px 14px}
.ttb-input{flex:1;min-width:0;border:0!important;background:transparent!important;outline:0;font:inherit;font-size:14.5px;padding:8px 0!important;color:inherit;box-shadow:none!important}
.ttb-send{border:0;background:transparent;color:var(--ttb);cursor:pointer;padding:7px;border-radius:50%}
.ttb-send:hover{background:#e3e9e7}
.ttb-send svg{width:20px;height:20px}

.ttb-foot{padding:6px 14px 10px;background:#fff;font-size:11px;color:#7b8783;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.ttb-end{border:0;background:transparent;color:var(--ttb);font:600 12.5px inherit;font-family:inherit;cursor:pointer;padding:0;text-decoration:underline}

.ttb-inline-btn{background:var(--ttb,#0B5D4B);color:#fff;border:0;border-radius:999px;padding:12px 22px;font-weight:600;cursor:pointer}

@media (max-width:480px){
	.ttb-root{right:12px;bottom:12px;left:auto}
	.ttb-open.ttb-root{left:12px}
	.ttb-panel{width:100%;height:calc(100vh - 24px)}
	.ttb-fab span{display:none}
	.ttb-fab{padding:16px}
}
