/* Tbili AI team chat. Square geometry, one red accent. */
.tbc-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px 0 7px; height: 52px; border: 0; border-radius: 14px; background: #0B1220; color: #fff; font: 600 15px "Instrument Sans", system-ui, sans-serif; cursor: pointer; box-shadow: 0 16px 34px -14px rgba(11,18,32,.6); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.tbc-btn:hover { transform: translateY(-2px); }
.tbc-btn img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.tbc-btn b { min-width: 20px; height: 20px; padding: 0 6px; background: #E8112D; border-radius: 6px; font-size: 12px; display: none; place-items: center; }
.tbc-btn.has b { display: grid; }
.tbc-panel { position: fixed; right: 20px; bottom: 84px; z-index: 61; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 110px)); display: none; flex-direction: column; background: #fff; border: 1px solid #DCE2EA; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -24px rgba(11,18,32,.45); font: 400 15px/1.5 "Instrument Sans", system-ui, sans-serif; color: #0B1220; }
.tbc-panel.open { display: flex; animation: tbcin .4s cubic-bezier(.16,1,.3,1) both; }
@keyframes tbcin { from { opacity: 0; transform: translateY(12px); } }
.tbc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 16px; background: #0B1220; color: #fff; }
.tbc-av { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.tbc-hinfo { flex: 1; min-width: 0; display: grid; }
.tbc-hinfo strong { font: 600 17px "Figtree", system-ui, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbc-hinfo small { color: rgba(255,255,255,.7); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbc-ai { border: 1px solid rgba(255,255,255,.5); border-radius: 8px; font: 600 11px "Instrument Sans", sans-serif; padding: 3px 8px; letter-spacing: .08em; }
.tbc-x { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.tbc-links { display: flex; gap: 18px; padding: 9px 16px; border-bottom: 1px solid #E8ECF2; font-size: 13px; }
.tbc-link { background: none; border: 0; padding: 0; color: #B80D23; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.tbc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #F1F3F6; }
.tbc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.tbc-msg.visitor { align-self: flex-end; }
.tbc-mav { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; flex: none; }
.tbc-m { padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid #E8ECF2; }
.tbc-msg.visitor .tbc-m { background: #0B1220; color: #fff; border-color: #0B1220; }
.tbc-m small { display: block; font-size: 11px; opacity: .6; margin-bottom: 2px; letter-spacing: .04em; text-transform: uppercase; }
.tbc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; background: #F1F3F6; }
.tbc-chips:empty { display: none; }
.tbc-chip { border: 1px solid #C9D2DE; background: #fff; border-radius: 999px; padding: 7px 13px; font: 500 13.5px "Instrument Sans", sans-serif; color: #26324A; cursor: pointer; }
.tbc-chip:hover { border-color: #0B1220; }
.tbc-form { display: grid; gap: 8px; padding: 12px; border-top: 1px solid #E8ECF2; background: #fff; }
.tbc-row { display: flex; gap: 8px; }
.tbc-form textarea { flex: 1; min-width: 0; border: 1.5px solid #DCE2EA; border-radius: 12px; padding: 11px 12px; font: inherit; color: inherit; background: #fff; resize: none; height: 48px; }
.tbc-form textarea:focus { outline: none; border-color: #0B1220; }
.tbc-send { width: 48px; border: 0; background: #E8112D; color: #fff; font-size: 20px; border-radius: 12px; cursor: pointer; }
.tbc-fine { color: #5A6984; font-size: 11.5px; margin: 0; line-height: 1.45; }
.tbc-fine a { color: inherit; }
@media (max-width: 860px) { body.has-tabs .tbc-btn { bottom: 86px; } body.has-tabs .tbc-panel { bottom: 148px; } .tbc-btn span { display: none; } .tbc-btn { padding: 0 7px; } }
@media (max-width: 480px) { .tbc-panel { right: 12px; left: 12px; width: auto; bottom: 80px; height: calc(100vh - 100px); } body.has-tabs .tbc-panel { bottom: 80px; height: calc(100vh - 100px); } }
@media (prefers-reduced-motion: reduce) { .tbc-panel.open { animation: none; } }
.tbc-click { cursor: pointer; }
.tbc-click:hover { opacity: .85; }
.tbc-panel { position: fixed; }
.tbc-prof { position: absolute; inset: 0; background: #fff; overflow-y: auto; padding: 16px 18px 20px; display: grid; gap: 8px; align-content: start; z-index: 2; animation: tbcin .35s cubic-bezier(.16,1,.3,1) both; }
.tbc-prof[hidden] { display: none; }
.tbc-pback { justify-self: start; background: none; border: 0; padding: 4px 0; color: #B80D23; font: 600 14px "Instrument Sans", sans-serif; cursor: pointer; }
.tbc-pimg { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.tbc-prof h3 { margin: 6px 0 0; font: 600 22px "Figtree", system-ui, sans-serif; }
.tbc-pdesk { margin: 0; color: #B80D23; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.tbc-prof p { margin: 0; }
.tbc-prof ul { margin: 0; padding-left: 18px; color: #26324A; font-size: 14px; display: grid; gap: 4px; }
.tbc-pmore { color: #0B1220; font-weight: 600; }
.tbc-pnote { color: #5A6984; font-size: 12px; }
@media (max-width: 860px) { body.has-dial .tbc-btn { bottom: 78px; } body.has-dial .tbc-panel { bottom: 140px; } }
/* phones: full-screen chat, no scroll chaining, no iOS zoom on focus */
.tbc-log { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tbc-form textarea { font-size: 16px; }
@media (max-width: 860px) {
  .tbc-panel.open { left: 0; right: 0; top: 0; bottom: 0; width: 100%; height: 100dvh; max-height: none; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); z-index: 80; }
  body.has-tabs .tbc-panel.open, body.has-dial .tbc-panel.open { bottom: 0; height: 100dvh; }
  html.tbc-lock .tbc-btn, html.tbc-lock .totop, html.tbc-lock .tbi-bar { display: none; }
  .tbc-x { font-size: 30px; padding: 4px 10px; }
}
