
:root{
  --tlt-cb-brand:#2f7cf6;
  --tlt-cb-brand2:#6aa7ff;
  --tlt-cb-bg:#f5f8ff;
  --tlt-cb-text:#14213d;
  --tlt-cb-muted:#6b7a90;
  --tlt-cb-font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --tlt-cb-font-size:16px;
}
#tlt-closebot-root,.tlt-cb-shortcode-root{position:relative;z-index:99999;font-family:var(--tlt-cb-font-family);font-size:var(--tlt-cb-font-size)}
.tlt-cb-launcher{position:fixed;right:22px;bottom:22px;z-index:99998;cursor:pointer}
.tlt-cb-launcher.is-hidden{display:none}
.tlt-cb-launcher-card{display:flex;align-items:center;gap:12px;min-width:248px;max-width:320px;background:#fff;border-radius:22px;box-shadow:0 14px 40px rgba(0,0,0,.16);padding:14px 16px;border:1px solid rgba(47,124,246,.12)}
.tlt-cb-launcher-copy{min-width:0}
.tlt-cb-launcher-title{font-weight:800;color:#153463;font-size:16px;line-height:1.15}
.tlt-cb-launcher-rotator{font-size:13px;color:#5c6e8e;margin-top:5px;line-height:1.25;min-height:16px}
.tlt-cb-avatar-wrap{position:relative;flex:0 0 auto}
.tlt-cb-avatar{width:54px;height:54px;border-radius:999px;object-fit:cover;background:#dbeafe;border:4px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.tlt-cb-dot{position:absolute;right:2px;bottom:2px;width:14px;height:14px;border-radius:999px;background:#24d164;border:2px solid #fff}
.tlt-cb-dot.is-hidden,.is-hidden{display:none!important}

.tlt-cb-panel{position:fixed;right:22px;bottom:92px;width:min(var(--tlt-cb-panel-width, 360px),calc(100vw - 24px));height:min(var(--tlt-cb-panel-height, 72vh),640px);display:flex;flex-direction:column;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.18);transform:translateY(16px);opacity:0;pointer-events:none;transition:all .25s ease;border:1px solid rgba(47,124,246,.12)}
.tlt-cb-panel.is-shortcode{position:relative;right:auto;bottom:auto;width:100%;max-width:760px;height:min(var(--tlt-cb-panel-height, 72vh),640px);opacity:1;pointer-events:auto;transform:none;margin:0 auto}
.tlt-cb-panel.is-open{opacity:1;pointer-events:auto;transform:none}

.tlt-cb-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:linear-gradient(135deg,var(--tlt-cb-brand),var(--tlt-cb-brand2));color:#fff;flex-shrink:0}
.tlt-cb-header-left{display:flex;align-items:center;gap:12px;min-width:0}
.tlt-cb-head-copy{min-width:0}
.tlt-cb-header-title{font-size:17px;font-weight:800;line-height:1.15;margin:0}
.tlt-cb-header-subtitle{font-size:12px;line-height:1.25;opacity:.96;margin-top:4px;max-width:220px}
.tlt-cb-header-actions{display:flex;gap:10px}
.tlt-cb-icon{width:36px;height:36px;border-radius:999px;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:24px;line-height:1;cursor:pointer}

.tlt-cb-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;background:#eef3fb}
.tlt-cb-messages{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
.tlt-cb-msg{display:flex;align-items:flex-end;gap:8px;max-width:100%}
.tlt-cb-msg.is-user{justify-content:flex-end}
.tlt-cb-bubble{max-width:82%;background:#fff;border:1px solid rgba(47,124,246,.14);border-radius:18px;padding:12px 14px;color:#1b2b4b;line-height:1.45;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.tlt-cb-msg.is-user .tlt-cb-bubble{max-width:82%;background:#fff;border:1px solid rgba(47,124,246,.14);border-radius:18px;padding:12px 14px;color:#1b2b4b;line-height:1.45;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.tlt-cb-bubble p{margin:0 0 10px}
.tlt-cb-bubble p:last-child{margin-bottom:0}

.tlt-cb-quick{display:flex;gap:8px;flex-wrap:wrap;padding:0 14px 12px}
.tlt-cb-quick-btn{border:1px solid #cfe0ff;background:#fff;color:#204c93;padding:9px 12px;border-radius:999px;cursor:pointer;font-weight:600;font-size:13px}

.tlt-cb-footer{padding:12px 14px 14px;background:#fff;border-top:1px solid rgba(47,124,246,.1);display:flex;flex-direction:column;gap:12px;flex-shrink:0}
.tlt-cb-row{display:flex;align-items:flex-end;gap:10px}
#tlt-cb-input{flex:1 1 auto;min-height:52px;max-height:92px;resize:none;border:1px solid rgba(47,124,246,.14);border-radius:14px;padding:14px 16px;font:inherit;line-height:1.35;background:#fff;color:var(--tlt-cb-text)}
#tlt-cb-send{flex:0 0 auto;min-width:90px;height:52px;border:none;border-radius:18px;background:linear-gradient(135deg,var(--tlt-cb-brand),var(--tlt-cb-brand2));color:#fff;font-weight:700;cursor:pointer}
.tlt-cb-actions{display:flex;flex-wrap:wrap;gap:10px}
.tlt-cb-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid #cfe0ff;background:#fff;color:#1f4e97;padding:11px 16px;text-decoration:none;font-weight:600;cursor:pointer}
.tlt-cb-pill.is-primary{background:linear-gradient(135deg,var(--tlt-cb-brand),var(--tlt-cb-brand2));color:#fff;border-color:transparent}
.tlt-cb-brand{text-align:center;color:#7a879c;font-size:12px;margin-top:10px}

.tlt-cb-admin .tlt-grid,.tlt-cb-admin .tlt-grid-2{display:grid;gap:18px}
.tlt-cb-admin .tlt-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.tlt-cb-admin .tlt-grid-2{grid-template-columns:repeat(auto-fit,minmax(420px,1fr))}
.tlt-card{background:#fff;border:1px solid #e7eefb;border-radius:18px;padding:18px;box-shadow:0 3px 10px rgba(0,0,0,.03);margin-bottom:16px}
.tlt-kpi{font-size:32px;font-weight:800;color:#18468b}
.tlt-check{display:block;margin:8px 0}
.tlt-cb-admin code{background:#f3f6fb;padding:3px 6px;border-radius:6px}
.tlt-filter-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tlt-filter-bar input,.tlt-filter-bar select{min-width:130px}
.tlt-table-wrap{overflow:auto}
.tlt-actions-col{display:flex;gap:8px;align-items:center}
.tlt-inline-delete{display:inline}
.button-link-delete-link{background:none;border:0;color:#b42318;cursor:pointer;padding:0}
.tlt-meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 14px;margin-bottom:16px}
.tlt-transcript{max-height:520px;overflow:auto;background:#f8fbff;border:1px solid #e4edf9;border-radius:14px;padding:12px}
.tlt-transcript-row{margin-bottom:12px}
.tlt-transcript-meta{font-size:12px;color:#6b7a90;margin-bottom:4px}
.tlt-transcript-bubble{display:inline-block;max-width:92%;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid #dbe7ff;line-height:1.5}
.tlt-transcript-row.is-user .tlt-transcript-bubble{background:#edf4ff}
.tlt-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tlt-form-grid label{display:flex;flex-direction:column;gap:6px}
.tlt-badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#edf4ff;color:#17438d;font-size:12px;font-weight:700}
.tlt-cb-admin input[type=text],.tlt-cb-admin input[type=email],.tlt-cb-admin input[type=time],.tlt-cb-admin input[type=search],.tlt-cb-admin select,.tlt-cb-admin textarea{border:1px solid #d5dff2;border-radius:10px;padding:8px 10px}
@media (max-width: 640px){
  .tlt-cb-launcher{right:12px;bottom:12px}
  .tlt-cb-panel{right:12px;bottom:78px;width:calc(100vw - 24px);height:min(76vh,560px)}
  .tlt-cb-row{display:flex;align-items:flex-end;gap:10px}
  #tlt-cb-send{flex:0 0 auto;min-width:90px;height:52px;border:none;border-radius:18px;background:linear-gradient(135deg,var(--tlt-cb-brand),var(--tlt-cb-brand2));color:#fff;font-weight:700;cursor:pointer}
  .tlt-form-grid{grid-template-columns:1fr}
}

.tlt-cb-msg.is-user{justify-content:flex-end}.tlt-cb-msg-avatar-wrap{flex:0 0 auto}.tlt-cb-msg-avatar{width:28px;height:28px;border-radius:999px;object-fit:cover;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.08)}

.tlt-cb-msg.is-user .tlt-cb-bubble{background:linear-gradient(135deg,var(--tlt-cb-brand),var(--tlt-cb-brand2));color:#fff;border-color:transparent}
.tlt-cb-msg.is-compact .tlt-cb-bubble p{margin:0 0 8px}.tlt-cb-msg .tlt-cb-bubble p:last-child{margin-bottom:0}

body.tlt-cb-compact #tlt-closebot-root, body.tlt-cb-compact .tlt-cb-shortcode-root{--tlt-cb-font-size:15px}
.tlt-cb-panel.compact{border-radius:22px}
.tlt-cb-panel.compact .tlt-cb-header{padding:12px 14px}
.tlt-cb-panel.compact .tlt-cb-header-title{font-size:16px}
.tlt-cb-panel.compact .tlt-cb-header-subtitle{font-size:11px;margin-top:2px;max-width:250px}
.tlt-cb-panel.compact .tlt-cb-messages{padding:10px;gap:8px}
.tlt-cb-panel.compact .tlt-cb-msg{gap:6px}
.tlt-cb-panel.compact .tlt-cb-bubble{padding:10px 12px;line-height:1.4;max-width:86%}
.tlt-cb-msg-avatar{width:30px;height:30px;border-radius:999px;object-fit:cover;background:#dbeafe;flex:0 0 auto}
.tlt-cb-msg.is-user .tlt-cb-msg-avatar{display:none}
.tlt-cb-panel.compact #tlt-cb-input{min-height:46px;height:46px;padding:11px 13px}
.tlt-cb-panel.compact #tlt-cb-send{height:46px;min-width:84px;border-radius:14px}
