@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
#ltc,#ltc *{box-sizing:border-box;margin:0;padding:0;-webkit-font-smoothing:antialiased;}
#ltc{
  --lt-bg:#f7f7fa;
  --lt-panel:#ffffff;
  --lt-panel-soft:#ffffff;
  --lt-line:#d7dde7;
  --lt-text:#0f172a;
  --lt-muted:#667085;
  --lt-subtle:#98a2b3;
  --lt-primary:#2f55ff;
  --lt-primary-2:#3a63ff;
  --lt-header:#2f2663;
  --lt-header-2:#4a3d96;
  --lt-primary-soft:#dde3ff;
  --lt-shadow:0 8px 24px rgba(15,23,42,.08);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','SF Pro Text','Inter',sans-serif;
  color:var(--lt-text);
}

@keyframes _ltD{0%,60%,100%{transform:translateY(0);opacity:.35}30%{transform:translateY(-4px);opacity:1}}
@keyframes _ltW{0%{opacity:0;transform:translateY(18px) scale(.98)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes _ltM{0%{opacity:0;transform:translateY(10px)}100%{opacity:1;transform:translateY(0)}}
@keyframes _ltG{0%,100%{box-shadow:0 16px 30px rgba(37,99,235,.24),0 0 0 0 rgba(37,99,235,.10)}60%{box-shadow:0 16px 30px rgba(37,99,235,.18),0 0 0 12px rgba(37,99,235,0)}}

#ltc_fab{
  position:fixed;bottom:20px;right:20px;z-index:2147483640;
  width:56px;height:56px;border-radius:18px;border:none;
  background:linear-gradient(135deg,var(--lt-header),var(--lt-header-2));
  box-shadow:0 12px 24px rgba(55,49,127,.24);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  animation:_ltG 3.2s infinite;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
#ltc_fab:hover{transform:translateY(-2px) scale(1.03);filter:saturate(1.04);}
#ltc_fab:active{transform:translateY(0) scale(.98);}
#ltc_fab_dot{
  position:absolute;top:-2px;right:-2px;width:15px;height:15px;border-radius:50%;
  background:#22c55e;border:2px solid #fff;
}

#ltc_fab_nudge{
  position:absolute;
  right:74px;
  top:50%;
  display:flex;
  align-items:center;
  gap:10px;
  min-width:176px;
  padding:11px 14px 11px 12px;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff 0%,#f7fbff 100%);
  border:1px solid rgba(15,61,94,.10);
  color:#0f3d5e;
  box-shadow:0 14px 34px rgba(15,23,42,.16), 0 4px 10px rgba(15,61,94,.10);
  transform:translateY(-50%);
  animation:_ltFabPop 2.2s ease-in-out infinite;
  text-align:left;
}

#ltc_fab_nudge:after{
  content:"";
  position:absolute;
  right:-6px;
  top:50%;
  width:12px;
  height:12px;
  background:#f7fbff;
  transform:translateY(-50%) rotate(45deg);
  border-radius:2px;
  border-top:1px solid rgba(15,61,94,.10);
  border-right:1px solid rgba(15,61,94,.10);
}

#ltc_fab_nudge.is-hidden{
  display:none;
}

#ltc .ltc_fab_nudge_dot{
  flex:none;
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg,#22c55e,#14b8a6);
  box-shadow:0 0 0 4px rgba(34,197,94,.14);
}

#ltc .ltc_fab_nudge_text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

#ltc .ltc_fab_nudge_eyebrow{
  font-size:10px;
  line-height:1;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#5b708a;
  font-weight:800;
}

#ltc .ltc_fab_nudge_copy{
  font-size:15px;
  line-height:1.12;
  color:#0f3d5e;
  font-weight:800;
  letter-spacing:-.02em;
}

@keyframes _ltFabPop{
  0%,100%{transform:translateY(-50%) translateX(0) scale(1);}
  50%{transform:translateY(-50%) translateX(-2px) scale(1.03);}
}

#ltc_win{
  position:fixed;bottom:20px;right:20px;z-index:2147483641;
  width:430px;max-width:calc(100vw - 24px);
  height:min(770px,90vh);
  max-height:90vh;
  background:var(--lt-bg);
  border:1px solid #e5e7eb;
  border-radius:16px;overflow:hidden;
  box-shadow:var(--lt-shadow);
  display:none;flex-direction:column;
  animation:_ltW .28s cubic-bezier(.2,.75,.2,1);
  overflow-x:hidden;
}
#ltc_win:before{
  content:"";display:none;
}

#ltc_hdr{
  position:relative;z-index:1;
  background:linear-gradient(135deg,var(--lt-header),var(--lt-header-2));
  border-bottom:none;
  padding:12px 16px;
  min-height:68px;
  display:flex;align-items:center;gap:8px;flex-shrink:0;
}
#ltc_av{position:relative;flex-shrink:0;}
#ltc_av img{
  width:56px;height:56px;border-radius:999px;display:block;
  box-shadow:0 0 0 2px #5661ff,0 0 0 4px rgba(255,255,255,.14);
}
#ltc_av_dot{
  position:absolute;bottom:3px;right:-2px;width:14px;height:14px;border-radius:50%;
  background:#22c55e;border:3px solid #fff;
}
#ltc_hdr_info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px;}
#ltc_hdr_name{font-size:19px;font-weight:650;line-height:1;color:#fff;letter-spacing:-.01em;}
#ltc_hdr_online{
  display:flex;align-items:center;gap:6px;
  font-size:12.5px;color:#4ade80;font-weight:700;margin-top:0;
}
#ltc_hdr_online:before{
  content:"";width:10px;height:10px;border-radius:999px;background:#22c55e;flex:none;
  box-shadow:none;
}
#ltc_x{
  width:32px;height:32px;border-radius:10px;border:none;
  background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;
  transition:background .16s ease,transform .16s ease,opacity .16s ease;
}
#ltc_x:hover{background:rgba(255,255,255,.10);transform:translateY(-1px);opacity:1;}
#ltc_x:active{transform:scale(.97);}
.ltc_hdr_act svg,#ltc_x svg,#ltc_snd svg{display:block;flex:none;width:16px;height:16px;}
.ltc_hdr_act{
  width:32px;height:32px;border-radius:10px;border:none;background:transparent;color:#fff;
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
  transition:background .16s ease,transform .16s ease,opacity .16s ease;
}
.ltc_hdr_act:hover{background:rgba(255,255,255,.10);transform:translateY(-1px);}
.ltc_hdr_act:active{transform:scale(.97);}
.ltc_hdr_actions{display:flex;align-items:center;gap:8px;margin-left:16px;}
.ltc_hdr_sub{font-size:13px;color:rgba(255,255,255,.76);font-weight:500;line-height:1.05;}

#ltc_st{
  display:none;flex-shrink:0;
  padding:8px 16px 0;
  font-size:12px;font-weight:600;color:#4f46e5;
  background:transparent;
}

#ltc_msgs{
  position:relative;z-index:1;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;
  padding:16px 16px 0;
  background:var(--lt-bg);
  overflow-x:hidden;
}
#ltc_msgs::-webkit-scrollbar{width:4px;}
#ltc_msgs::-webkit-scrollbar-thumb{background:rgba(100,116,139,.35);border-radius:999px;}
#ltc_msgs::-webkit-scrollbar-track{background:transparent;}

#ltc_chips{
  position:relative;z-index:1;
  padding:0 16px 4px;display:flex;gap:8px;flex-wrap:nowrap;overflow-x:auto;
  flex-shrink:0;background:var(--lt-bg);
  scrollbar-width:none;
}
#ltc_chips::-webkit-scrollbar{display:none;}
.ltc_chip{
  appearance:none;border:1px solid #d7dce5;
  background:#fff;color:#566072;
  border-radius:999px;padding:0 12px;height:32px;
  font-size:12.5px;font-weight:550;letter-spacing:.01em;
  cursor:pointer;font-family:inherit;white-space:nowrap;
  box-shadow:none;
  transition:transform .14s ease,background .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease;
}
.ltc_chip:hover{
  background:#eef2ff;border-color:#c7d2fe;color:#2753ff;
  transform:translateY(-1px);
}
.ltc_chip:active{transform:scale(.98);}

#ltc_inrow{
  position:relative;z-index:1;
  margin:16px 16px 0;
  padding:10px 14px;
  background:#fff;backdrop-filter:none;
  border:1px solid #dbe1ea;
  border-radius:16px;
  box-shadow:none;
  display:flex;align-items:center;gap:8px;flex-shrink:0;
}
#ltc_inp{
  flex:1;min-height:36px;max-height:96px;
  padding:10px 0;font-size:15px;line-height:1.3;
  font-family:inherit;color:var(--lt-text);
  background:transparent;border:none;
  border-radius:0;outline:none;resize:none;overflow-y:auto;
  box-shadow:none;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
  word-break:break-word;
}
#ltc_inp:focus{
  background:transparent;border-color:transparent;
  box-shadow:none;
}
#ltc_inp:disabled{background:transparent;cursor:not-allowed;color:#94a3b8;}
#ltc_inp::placeholder{color:#a2adbf;}
#ltc_snd{
  width:36px;height:36px;border-radius:999px;border:none;flex-shrink:0;
  background:#e3e8f0;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  box-shadow:none;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,background .16s ease;
}
#ltc_snd:hover:not(:disabled){transform:translateY(-1px);background:#d7dfeb;}
#ltc_snd:active:not(:disabled){transform:scale(.97);}
#ltc_snd:disabled{background:#edf1f5;box-shadow:none;cursor:default;}

#ltc_foot{
  text-align:center;padding:10px 0 14px;background:var(--lt-bg);
  font-size:12px;color:#202939;flex-shrink:0;
}
#ltc_foot a{color:#2753ff;font-weight:500;text-decoration:none;}

.ltc_g{display:flex;width:100%;animation:_ltM .22s ease;}
.ltc_g_bot{justify-content:flex-start;}
.ltc_g_usr{justify-content:flex-end;}
.ltc_row{display:flex;align-items:flex-start;gap:8px;width:100%;}
.ltc_row_usr{justify-content:flex-end;}
.ltc_cnt{display:flex;flex-direction:column;min-width:0;}
.ltc_cnt_bot{max-width:72%;align-items:flex-start;}
.ltc_cnt_usr{max-width:72%;align-items:flex-end;}

.ltc_b{
  width:100%;padding:10px 12px;
  font-size:14.5px;line-height:1.28;letter-spacing:-.01em;word-break:break-word;
  overflow-wrap:anywhere;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
.ltc_b_bot{
  background:#f4f6fa;color:var(--lt-text);
  border:1px solid rgba(15,23,42,.08);
  border-radius:11px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.ltc_b_bot:hover{background:#f7f9fc;}
.ltc_b_bot a{color:#3157d7;text-decoration:none;font-weight:500;}
.ltc_b_bot a:hover{text-decoration:underline;}
.ltc_b_bot strong{font-weight:600;}
.ltc_b_usr{
  background:#d3dbff;color:#111827;
  border-radius:11px;
  box-shadow:none;
}
.ltc_b_usr:hover{background:#cfd7ff;}
.ltc_b_end{
  background:#fff;color:var(--lt-muted);font-style:italic;font-size:14px;
  border-radius:11px;border:1px solid rgba(15,23,42,.08);
}
.ltc_meta{display:flex;align-items:center;gap:8px;margin-bottom:4px;padding:0;font-size:12.5px;line-height:1.05;}
.ltc_meta_bot_avatar{width:24px;height:24px;border-radius:999px;flex:none;}
.ltc_meta_bot_name{color:#2f55ff;font-weight:700;}
.ltc_meta_bot_role{color:#111827;font-weight:600;}
.ltc_meta_user{color:#2753ff;font-weight:700;}

.ltc_consent{
  margin:0 16px 12px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid rgba(15,23,42,.08);border-radius:14px;
  padding:14px;
  box-shadow:none;
  opacity:1;transform:translateY(0);
  transition:opacity .2s ease,transform .2s ease,max-height .2s ease,margin .2s ease,padding .2s ease,border-width .2s ease;
}
.ltc_consent p{font-size:14px;color:#1f2937;line-height:1.65;}
.ltc_consent a{color:#3157d7;font-weight:500;text-decoration:none;}
.ltc_consent a:hover{text-decoration:underline;}
.ltc_agree{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:100%;margin-top:14px;
  background:#f1f3f6;color:#64748b;border:1px solid #cfd5df;
  border-radius:8px;padding:12px 14px;
  font-size:14px;font-weight:600;font-family:inherit;
  cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
  box-shadow:none;
}
.ltc_agree:hover{transform:translateY(-1px);background:#e7ebf1;}
.ltc_agree:active{transform:scale(.98);}
.ltc_agree:disabled{background:#edf1f5;box-shadow:none;cursor:default;transform:none;}
.ltc_gate_hidden{
  opacity:0;transform:translateY(8px);max-height:0;overflow:hidden;
  margin:0 16px;padding:0 12px;border-width:0;
}

.ltc_links{
  background:#fff;max-width:92%;margin-top:6px;
  border-radius:18px;padding:14px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:none;
}
.ltc_links_hd{
  font-size:10px;font-weight:700;color:#8a94a6;letter-spacing:.12em;
  text-transform:uppercase;margin-bottom:10px;
}
.ltc_link{
  display:flex;align-items:center;gap:12px;
  padding:10px 12px;margin-bottom:8px;
  background:#fff;border-radius:12px;border:1px solid rgba(15,23,42,.07);
  text-decoration:none;transition:transform .14s ease,background .14s ease,box-shadow .14s ease;
}
.ltc_link:last-child{margin-bottom:0;}
.ltc_link:hover{background:#f9fbff;transform:translateY(-1px);box-shadow:none;}
.ltc_link_icon{
  width:34px;height:34px;border-radius:12px;flex-shrink:0;
  background:linear-gradient(135deg,var(--lt-header),var(--lt-header-2));
  display:flex;align-items:center;justify-content:center;
}
.ltc_link_txt{flex:1;min-width:0;}
.ltc_link_title{display:block;font-size:13px;font-weight:700;color:var(--lt-text);line-height:1.32;}
.ltc_link_excerpt{display:block;margin-top:3px;font-size:12px;line-height:1.45;color:var(--lt-muted);}
.ltc_link_chev{color:#94a3b8;font-size:18px;font-weight:500;flex-shrink:0;line-height:1;}

.ltc_typing{
  background:#fff;border:1px solid #d2d7e1;
  border-radius:12px;
  padding:10px 12px;
  box-shadow:0 2px 8px rgba(15,23,42,.035);
  display:inline-flex;gap:5px;align-items:center;
}
.ltc_dot{width:7px;height:7px;border-radius:50%;background:#aab2bf;display:inline-block;}
.ltc_dot:nth-child(1){animation:_ltD 1.2s 0s infinite;}
.ltc_dot:nth-child(2){animation:_ltD 1.2s .16s infinite;}
.ltc_dot:nth-child(3){animation:_ltD 1.2s .32s infinite;}

.ltc_ended{
  background:var(--lt-bg);border-top:none;
  padding:10px 14px;text-align:center;font-size:12px;color:var(--lt-muted);flex-shrink:0;
}
.ltc_ended a{color:#2753ff;font-weight:600;text-decoration:none;}

@media (max-width:640px){
  #ltc_fab{bottom:16px;right:16px;}
  #ltc_fab_nudge{
    right:66px;
    min-width:150px;
    padding:10px 12px 10px 10px;
    gap:8px;
    border-radius:16px;
  }
  #ltc .ltc_fab_nudge_eyebrow{font-size:9px;}
  #ltc .ltc_fab_nudge_copy{font-size:13px;}
  #ltc_win{
    right:12px;left:12px;bottom:12px;width:auto;max-width:none;height:min(90vh,780px);max-height:90vh;
    border-radius:16px;
  }
  #ltc_hdr{padding:12px 16px;}
  #ltc_msgs{padding:12px 16px 0;}
  #ltc_chips{padding:0 16px 4px;}
  #ltc_inrow{margin:16px 16px 0;padding:8px 12px;}
  .ltc_b,.ltc_consent,.ltc_links{max-width:92%;}
}

/* Fluid stream refinement */
#ltc_win{
  background:#f7f8fc;
  box-shadow:0 14px 32px rgba(15,23,42,.12),0 2px 8px rgba(15,23,42,.05);
}

#ltc_hdr{
  min-height:64px;
  padding:12px 16px;
  gap:8px;
  background:linear-gradient(180deg,#3a3577 0%,#433d8a 100%);
}

#ltc_av img{
  width:50px;
  height:50px;
  box-shadow:0 0 0 2px rgba(255,255,255,.18);
}

#ltc_av_dot{
  width:12px;
  height:12px;
  right:-1px;
  bottom:-1px;
}

#ltc_hdr_info{
  gap:2px;
}

#ltc_hdr_name{
  line-height:1.05;
}

#ltc_hdr_online{
  font-size:12px;
  line-height:1;
  color:#56f08d;
}

.ltc_hdr_sub{
  font-size:11px;
  line-height:1.15;
  color:rgba(255,255,255,.78);
}

.ltc_hdr_actions{
  gap:8px;
}

.ltc_hdr_actions button,
#ltc_x{
  width:26px;
  height:26px;
  background:transparent;
}

.ltc_hdr_actions button:hover,
#ltc_x:hover{
  background:rgba(255,255,255,.08);
}

#ltc_msgs{
  padding:16px 16px 0;
  background:linear-gradient(180deg,#f7f8fc 0%,#f5f6fb 100%);
}

.ltc_g{
  gap:0;
}

.ltc_row{
  gap:8px;
  align-items:flex-start;
}

.ltc_cnt_bot,
.ltc_cnt_usr{
  max-width:72%;
}

.ltc_g[data-role="assistant"] + .ltc_g[data-role="assistant"] .ltc_meta{
  display:none;
}

.ltc_g[data-role="assistant"] + .ltc_g[data-role="assistant"] .ltc_meta_bot_avatar{
  opacity:0;
}

.ltc_g[data-role="user"] + .ltc_g[data-role="user"] .ltc_meta{
  display:none;
}

.ltc_meta{
  margin-bottom:4px;
  gap:6px;
  line-height:1;
}

.ltc_meta_bot_avatar{
  width:30px;
  height:30px;
}

.ltc_b{
  padding:10px 12px;
  font-size:14.5px;
  line-height:1.47;
  word-break:break-word;
}

.ltc_b_bot{
  background:#fdfefe;
  border:1px solid rgba(15,23,42,.05);
  border-radius:12px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

.ltc_b_usr{
  background:linear-gradient(180deg,#4f7cff 0%,#3f66f2 100%);
  border:none;
  border-radius:12px;
  box-shadow:0 2px 6px rgba(63,102,242,.18);
}

.ltc_b_bot:hover{
  box-shadow:0 2px 5px rgba(15,23,42,.06);
}

.ltc_b_usr:hover{
  box-shadow:0 4px 9px rgba(63,102,242,.22);
}

.ltc_links{
  margin-top:8px;
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.05);
  border-radius:12px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}

#ltc_inrow{
  margin-top:16px;
  background:#f7f8fc;
  border-top:1px solid rgba(15,23,42,.06);
  box-shadow:none;
}

#ltc_inp{
  line-height:1.45;
  background:#fff;
}

#ltc_inp:focus{
  box-shadow:0 0 0 3px rgba(63,102,242,.08);
}

#ltc_snd{
  background:linear-gradient(180deg,#4f7cff 0%,#3f66f2 100%);
  box-shadow:0 2px 6px rgba(63,102,242,.2);
}

#ltc_snd:hover:not(:disabled){
  background:linear-gradient(180deg,#557fff 0%,#466df4 100%);
}

#ltc_snd:disabled{
  background:#d7dce6;
}

#ltc_msgs::-webkit-scrollbar{
  width:8px;
}

#ltc_msgs::-webkit-scrollbar-thumb{
  background:rgba(100,116,139,.35);
  border-radius:999px;
}

@media (max-width: 640px){
  #ltc_hdr{
    min-height:60px;
  }

  #ltc_av img{
    width:46px;
    height:46px;
  }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   1. CORE VARIABLES & RESET
   ========================================================================== */
#ltc, #ltc * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#ltc {
  --lt-primary: #4F46E5;
  --lt-primary-hover: #4338CA;
  --lt-header-bg: #312E81;
  --lt-bg: #F9FAFB;
  --lt-text-main: #111827;
  --lt-text-muted: #6B7280;
  --lt-bubble-bot: #FFFFFF;
  --lt-bubble-user: #4F46E5;
  --lt-shadow-window: 0 20px 40px -15px rgba(0,0,0,0.15), 0 0 10px rgba(0,0,0,0.03);
  --lt-shadow-bubble: 0 2px 5px rgba(0,0,0,0.04);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--lt-text-main);
  font-size: 15px;
}

@keyframes _ltPop {
  0% { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes _ltFadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   2. FLOATING ACTION BUTTON (FAB)
   ========================================================================== */
#ltc_fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 2147483640;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: var(--lt-primary);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
#ltc_fab:hover { transform: scale(1.05); box-shadow: 0 12px 24px rgba(79, 70, 229, 0.4); }
#ltc_fab:active { transform: scale(0.95); }
#ltc_fab_dot {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #10B981; border: 2.5px solid #fff;
}

/* ==========================================================================
   3. MAIN CHAT WINDOW
   ========================================================================== */
#ltc_win {
  position: fixed; bottom: 24px; right: 24px; z-index: 2147483641;
  width: 380px; max-width: calc(100vw - 32px);
  height: min(720px, calc(100vh - 48px));
  background: var(--lt-bg);
  border-radius: 20px;
  box-shadow: var(--lt-shadow-window);
  display: none; flex-direction: column; overflow: hidden;
  animation: _ltPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   4. HEADER
   ========================================================================== */
#ltc_hdr {
  background: var(--lt-header-bg);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
#ltc_av { position: relative; flex-shrink: 0; }
#ltc_av img {
  width: 44px; height: 44px; border-radius: 50%; display: block;
  border: 2px solid rgba(255,255,255,0.1);
}
#ltc_av_dot {
  position: absolute; bottom: 0px; right: 0px; width: 12px; height: 12px;
  border-radius: 50%; background: #10B981; border: 2px solid var(--lt-header-bg);
}
#ltc_hdr_info { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
#ltc_hdr_name { font-size: 16px; font-weight: 600; color: #ffffff; line-height: 1.2; }
.ltc_hdr_sub { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.2; }
#ltc_hdr_online { display: none; }

.ltc_hdr_actions { display: flex; gap: 4px; }
.ltc_hdr_act, #ltc_x {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ltc_hdr_act:hover, #ltc_x:hover { background: rgba(255,255,255,0.1); }
.ltc_hdr_act svg, #ltc_x svg { width: 18px; height: 18px; stroke-width: 2px; }

#ltc_st {
  display: none; padding: 10px 16px; font-size: 12px; font-weight: 500;
  color: var(--lt-primary); background: #EEF2FF; text-align: center;
}

/* ==========================================================================
   5. MESSAGE CANVAS & BUBBLES
   ========================================================================== */
#ltc_msgs {
  flex: 1 1 auto; overflow-y: auto; scroll-behavior: smooth;
  padding: 20px 16px 0; background: var(--lt-bg);
}
#ltc_msgs::-webkit-scrollbar { width: 6px; }
#ltc_msgs::-webkit-scrollbar-thumb { background: rgba(156, 163, 175, 0.5); border-radius: 10px; }

.ltc_meta { display: none !important; }

.ltc_g { animation: _ltFadeIn 0.3s ease; width: 100%; margin-bottom: 16px; }
.ltc_row { display: flex; gap: 8px; align-items: flex-end; width: 100%; }
.ltc_row_usr { justify-content: flex-end; }
.ltc_cnt { display: flex; flex-direction: column; min-width: 0; max-width: 80%; gap: 4px; }
.ltc_cnt_usr { align-items: flex-end; }

.ltc_meta_bot_avatar { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; margin-bottom: 4px; }
.ltc_g[data-role="assistant"] + .ltc_g[data-role="assistant"] .ltc_meta_bot_avatar { opacity: 0; }

.ltc_b {
  padding: 12px 16px; font-size: 15px; line-height: 1.5;
  word-break: break-word; overflow-wrap: anywhere;
  box-shadow: var(--lt-shadow-bubble);
}

.ltc_b_bot {
  background: var(--lt-bubble-bot); color: var(--lt-text-main);
  border-radius: 16px 16px 16px 4px;
  border: 1px solid rgba(0,0,0,0.03);
}
.ltc_b_bot a { color: var(--lt-primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.ltc_b_bot strong { font-weight: 600; }

.ltc_b_usr {
  background: var(--lt-bubble-user); color: #ffffff;
  border-radius: 16px 16px 4px 16px;
}

.ltc_b_end {
  background: transparent; color: var(--lt-text-muted); font-size: 13px;
  text-align: center; box-shadow: none; border: none; padding: 4px;
}

/* ==========================================================================
   6. SUGGESTION CHIPS (Rich Links)
   ========================================================================== */
.ltc_links {
  background: #ffffff; margin-top: 4px; border-radius: 16px;
  padding: 12px; border: 1px solid #E5E7EB; box-shadow: var(--lt-shadow-bubble);
  width: 100%;
}
.ltc_links_hd {
  font-size: 11px; font-weight: 600; color: var(--lt-text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.ltc_link {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  margin-bottom: 6px; background: var(--lt-bg); border-radius: 12px;
  text-decoration: none; transition: background 0.2s;
}
.ltc_link:last-child { margin-bottom: 0; }
.ltc_link:hover { background: #EEF2FF; }
.ltc_link_icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: rgba(79, 70, 229, 0.1); color: var(--lt-primary);
  display: flex; align-items: center; justify-content: center;
}
.ltc_link_icon svg { stroke: var(--lt-primary); }
.ltc_link_txt { flex: 1; min-width: 0; }
.ltc_link_title { display: block; font-size: 14px; font-weight: 600; color: var(--lt-text-main); }
.ltc_link_excerpt { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--lt-text-muted); }
.ltc_link_chev { color: var(--lt-primary); font-size: 18px; font-weight: 500; }

#ltc_chips { padding: 8px 16px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; background: var(--lt-bg); }
.ltc_chip {
  appearance: none; background: #ffffff; color: var(--lt-text-main);
  border: 1px solid #E5E7EB; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02); transition: all 0.2s; font-family: inherit;
}
.ltc_chip:hover { border-color: var(--lt-primary); color: var(--lt-primary); background: #F5F3FF; }

/* ==========================================================================
   7. CONSENT GATE
   ========================================================================== */
.ltc_consent {
  margin: 0 16px 16px; background: #ffffff; border: 1px solid #E5E7EB;
  border-radius: 16px; padding: 16px; box-shadow: var(--lt-shadow-bubble);
  transition: opacity 0.3s, max-height 0.3s;
}
.ltc_consent p { font-size: 14px; color: var(--lt-text-main); line-height: 1.5; }
.ltc_consent a { color: var(--lt-primary); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.ltc_agree {
  width: 100%; margin-top: 16px; background: var(--lt-primary); color: #ffffff;
  border: none; border-radius: 999px; padding: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s; font-family: inherit;
}
.ltc_agree:hover { background: var(--lt-primary-hover); }
.ltc_gate_hidden { opacity: 0; max-height: 0; overflow: hidden; margin: 0 16px; padding: 0 16px; border: none; }

/* ==========================================================================
   8. INPUT AREA (Footer)
   ========================================================================== */
#ltc_inrow {
  position: relative; padding: 12px 16px; background: #ffffff;
  border-top: 1px solid #E5E7EB; display: flex; align-items: flex-end; gap: 8px;
}
#ltc_inp {
  flex: 1; min-height: 40px; max-height: 100px; padding: 10px 0;
  font-size: 15px; line-height: 1.4; font-family: inherit; color: var(--lt-text-main);
  background: transparent; border: none; outline: none; resize: none;
}
#ltc_inp::placeholder { color: #9CA3AF; }
#ltc_inp:disabled { cursor: not-allowed; opacity: 0.6; }

#ltc_snd {
  width: 40px; height: 40px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--lt-primary); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.1s; margin-bottom: 2px;
}
#ltc_snd svg { width: 16px; height: 16px; stroke: #ffffff; stroke-width: 2.5px; }
#ltc_snd:hover:not(:disabled) { background: var(--lt-primary-hover); transform: translateY(-1px); }
#ltc_snd:disabled { background: #E5E7EB; cursor: default; }
#ltc_snd:disabled svg { stroke: #9CA3AF; }

#ltc_foot {
  text-align: center; padding: 8px 0 16px; background: #ffffff;
  font-size: 11px; color: #9CA3AF; font-weight: 500;
}
#ltc_foot a { color: var(--lt-text-muted); text-decoration: none; }
#ltc_foot a:hover { color: var(--lt-primary); }

/* ==========================================================================
   9. TYPING INDICATOR (Modern Bouncing Dots)
   ========================================================================== */
.ltc_typing {
  background: var(--lt-bubble-bot); border-radius: 16px 16px 16px 4px;
  padding: 14px 18px; display: inline-flex; gap: 4px; align-items: center;
  box-shadow: var(--lt-shadow-bubble); border: 1px solid rgba(0,0,0,0.03);
  height: 44px;
}
.ltc_dot {
  width: 6px; height: 6px; border-radius: 50%; background: #9CA3AF;
  animation: _ltTyping 1.4s infinite ease-in-out both;
}
.ltc_dot:nth-child(1) { animation-delay: -0.32s; }
.ltc_dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes _ltTyping {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   10. MOBILE OPTIMIZATION
   ========================================================================== */
@media (max-width: 640px) {
  #ltc_fab { bottom: 16px; right: 16px; }
  #ltc_win {
    right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%;
    height: 100vh; max-height: 100vh; border-radius: 0; border: none;
  }
  #ltc_hdr { padding: 12px 16px; border-radius: 0; }
  #ltc_msgs { padding: 16px 16px 0; }
  #ltc_inrow { padding: 10px 16px; }
  .ltc_cnt { max-width: 90%; }
}

/* LivingTricky UI override: visual layer only, no logic changes */
#ltc {
  --lt-primary: #0f3d5e;
  --lt-primary-hover: #0b2f49;
  --lt-accent: #facc15;
  --lt-bg: #f8fafc;
  --lt-card: #ffffff;
  --lt-text-main: #0f172a;
  --lt-text-muted: #475569;
  --lt-border: #e2e8f0;
  --lt-bot: #f1f5f9;
  --lt-user: #0f3d5e;
  --lt-shadow-window: 0 10px 30px rgba(0,0,0,0.08);
  --lt-shadow-soft: 0 4px 14px rgba(15,23,42,0.05);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--lt-text-main);
  font-size: 16px;
}

#ltc_fab {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--lt-primary);
  box-shadow: 0 12px 24px rgba(15,61,94,0.22);
}

#ltc_fab:hover {
  transform: scale(1.02);
  background: var(--lt-primary-hover);
}

#ltc_fab_dot {
  background: var(--lt-accent);
}

#ltc_win {
  width: min(92vw, 560px);
  max-width: calc(100vw - 32px);
  height: min(760px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 12px;
  border: 1px solid var(--lt-border);
  background: var(--lt-card);
  box-shadow: var(--lt-shadow-window);
}

#ltc_hdr {
  padding: 16px 20px;
  min-height: 72px;
  background: var(--lt-primary);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#ltc_av img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: none;
}

#ltc_av_dot {
  background: var(--lt-accent);
  border-color: var(--lt-primary);
}

#ltc_hdr_info {
  gap: 4px;
}

#ltc_hdr_name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
}

.ltc_hdr_sub {
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255,255,255,0.78);
}

#ltc_hdr_online {
  display: none;
}

.ltc_hdr_act {
  display: none !important;
}

.ltc_hdr_actions {
  gap: 8px;
}

#ltc_x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  transition: background .2s ease, transform .2s ease;
}

#ltc_x:hover {
  background: rgba(255,255,255,0.12);
  transform: scale(1.02);
}

#ltc_st {
  padding: 10px 16px;
  background: rgba(250,204,21,0.12);
  color: var(--lt-primary);
  font-size: 12px;
  font-weight: 600;
}

#ltc_msgs {
  padding: 24px 20px 0;
  background: var(--lt-bg);
  overflow-x: hidden;
}

#ltc_msgs::-webkit-scrollbar {
  width: 8px;
}

#ltc_msgs::-webkit-scrollbar-thumb {
  background: rgba(71,85,105,0.3);
  border-radius: 999px;
}

.ltc_g {
  margin-bottom: 12px;
}

.ltc_row {
  gap: 10px;
}

.ltc_cnt {
  max-width: min(80%, 440px);
  gap: 6px;
}

.ltc_meta_bot_avatar {
  width: 30px;
  height: 30px;
  margin-bottom: 4px;
}

.ltc_b {
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 15px;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.ltc_b_bot {
  background: var(--lt-bot);
  color: var(--lt-text-main);
  border: 1px solid var(--lt-border);
  border-radius: 16px 16px 16px 6px;
}

.ltc_b_usr {
  background: var(--lt-user);
  color: #ffffff;
  border: 1px solid rgba(15,61,94,0.08);
  border-radius: 16px 16px 6px 16px;
}

.ltc_b_end {
  padding: 6px 8px;
  margin: 10px 0;
  color: var(--lt-text-muted);
  font-size: 13px;
}

.ltc_b_bot a,
.ltc_consent a,
#ltc_foot a {
  color: var(--lt-primary);
  font-weight: 600;
  text-decoration: none;
}

.ltc_b_bot a:hover,
.ltc_consent a:hover,
#ltc_foot a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ltc_links {
  border-radius: 12px;
  border: 1px solid var(--lt-border);
  background: var(--lt-card);
  box-shadow: var(--lt-shadow-soft);
  padding: 12px;
}

.ltc_links_hd {
  color: var(--lt-text-muted);
}

.ltc_link {
  border-radius: 10px;
  background: var(--lt-bg);
  transition: transform .2s ease, background .2s ease;
}

.ltc_link:hover {
  background: #eef3f7;
  transform: translateY(-1px);
}

.ltc_link_icon {
  background: rgba(15,61,94,0.08);
}

.ltc_link_icon svg {
  stroke: var(--lt-primary);
}

.ltc_link_title {
  font-size: 14px;
  font-weight: 600;
  color: var(--lt-text-main);
}

.ltc_link_excerpt {
  font-size: 13px;
  line-height: 1.45;
  color: var(--lt-text-muted);
}

.ltc_link_chev {
  color: var(--lt-accent);
}

#ltc_chips {
  padding: 8px 20px 12px;
  background: var(--lt-bg);
}

.ltc_chip {
  border-radius: 999px;
  border: 1px solid var(--lt-border);
  background: var(--lt-card);
  color: var(--lt-text-main);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.ltc_chip:hover {
  border-color: rgba(15,61,94,0.35);
  background: #f8fafc;
  color: var(--lt-primary);
  transform: scale(1.02);
}

.ltc_consent {
  margin: 0 20px 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--lt-border);
  background: var(--lt-card);
  box-shadow: var(--lt-shadow-soft);
}

.ltc_consent p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--lt-text-main);
}

.ltc_agree {
  border-radius: 10px;
  padding: 12px 16px;
  background: var(--lt-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
  transition: transform .2s ease, background .2s ease;
}

.ltc_agree:hover {
  background: var(--lt-primary-hover);
  transform: scale(1.02);
}

#ltc_inrow {
  position: sticky;
  bottom: 0;
  padding: 14px 16px;
  background: var(--lt-card);
  border-top: 1px solid var(--lt-border);
  backdrop-filter: none;
}

#ltc_inp {
  min-height: 48px;
  max-height: 112px;
  padding: 12px 14px;
  border: 1px solid var(--lt-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--lt-text-main);
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#ltc_inp:focus {
  border-color: var(--lt-primary);
  box-shadow: 0 0 0 3px rgba(15,61,94,0.2);
}

#ltc_inp:disabled {
  background: #f8fafc;
}

#ltc_snd {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--lt-primary);
  box-shadow: none;
  transition: transform .2s ease, background .2s ease;
}

#ltc_snd:hover:not(:disabled) {
  background: var(--lt-primary-hover);
  transform: scale(1.02);
}

#ltc_snd:disabled {
  background: #cbd5e1;
}

#ltc_foot {
  padding: 8px 0 16px;
  background: var(--lt-card);
  color: var(--lt-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.ltc_typing {
  padding: 14px 16px;
  border-radius: 16px 16px 16px 6px;
  border: 1px solid var(--lt-border);
  background: var(--lt-bot);
  box-shadow: none;
}

.ltc_dot {
  background: var(--lt-accent);
}

@media (max-width: 640px) {
  #ltc_win {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    right: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
    border: none;
  }

  #ltc_hdr,
  #ltc_inrow {
    padding-left: 16px;
    padding-right: 16px;
  }

  #ltc_msgs {
    padding: 20px 16px 0;
  }

  #ltc_chips {
    padding: 8px 16px 12px;
  }

  .ltc_consent {
    margin-left: 16px;
    margin-right: 16px;
  }

  .ltc_cnt {
    max-width: 90%;
  }
}

/* Readability pass: spacing + scan-friendly responses, no logic changes */
.ltc_row{
  gap:10px;
  align-items:flex-start;
}

.ltc_cnt{
  max-width:78%;
}

.ltc_b{
  padding:14px 16px;
  margin:12px 0;
  line-height:1.5;
}

.ltc_b_bot,
.ltc_typing{
  margin-right:40px;
}

.ltc_b_usr{
  margin-left:40px;
}

.ltc_meta_bot_avatar{
  align-self:flex-start;
  margin-top:12px;
}

.ltc_b ul{
  margin:8px 0 0 0;
  padding:0 0 0 18px;
}

.ltc_b li{
  margin:8px 0;
}

@media (max-width: 640px){
  .ltc_cnt{
    max-width:80%;
  }

  .ltc_b_bot,
  .ltc_typing{
    margin-right:16px;
  }

  .ltc_b_usr{
    margin-left:16px;
  }
}

/* Enforced chat spacing override */
#ltc #ltc_msgs .ltc_row{
  display:flex !important;
  width:100% !important;
  align-items:flex-start !important;
  gap:10px !important;
}

#ltc #ltc_msgs .ltc_row_usr{
  justify-content:flex-end !important;
}

#ltc #ltc_msgs .ltc_row_bot{
  justify-content:flex-start !important;
}

#ltc #ltc_msgs .ltc_cnt{
  width:100% !important;
  max-width:75% !important;
  min-width:0 !important;
}

#ltc #ltc_msgs .ltc_cnt_usr{
  align-items:flex-end !important;
}

#ltc #ltc_msgs .ltc_b,
#ltc #ltc_msgs .ltc_typing{
  max-width:75% !important;
  width:auto !important;
  padding:16px 18px !important;
  margin-top:8px !important;
  margin-bottom:8px !important;
  line-height:1.6 !important;
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
}

#ltc #ltc_msgs .ltc_b_bot,
#ltc #ltc_msgs .ltc_typing{
  margin-right:60px !important;
  margin-left:0 !important;
}

#ltc #ltc_msgs .ltc_b_usr{
  margin-left:60px !important;
  margin-right:0 !important;
}

#ltc #ltc_msgs .ltc_meta_bot_avatar{
  align-self:flex-start !important;
  margin-top:14px !important;
  margin-right:0 !important;
}

#ltc #ltc_msgs .ltc_links{
  max-width:75% !important;
  margin-top:8px !important;
  margin-bottom:8px !important;
  margin-right:60px !important;
}

#ltc #ltc_msgs .ltc_b ul{
  list-style:disc !important;
  padding-left:18px !important;
  margin-top:10px !important;
  margin-bottom:0 !important;
}

#ltc #ltc_msgs .ltc_b li{
  margin:8px 0 !important;
}

@media (max-width:640px){
  #ltc #ltc_msgs .ltc_cnt,
  #ltc #ltc_msgs .ltc_b,
  #ltc #ltc_msgs .ltc_typing,
  #ltc #ltc_msgs .ltc_links{
    max-width:82% !important;
  }

  #ltc #ltc_msgs .ltc_b_bot,
  #ltc #ltc_msgs .ltc_typing,
  #ltc #ltc_msgs .ltc_links{
    margin-right:20px !important;
  }

  #ltc #ltc_msgs .ltc_b_usr{
    margin-left:20px !important;
  }
}

/* Final compactness + bullet rendering fix */
#ltc #ltc_msgs,
#ltc #ltc_msgs .ltc_g,
#ltc #ltc_msgs .ltc_row,
#ltc #ltc_msgs .ltc_cnt{
  gap:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
}

#ltc #ltc_msgs .ltc_row{
  margin:6px 0 !important;
  display:flex !important;
  width:100% !important;
}

#ltc #ltc_msgs .ltc_row_usr{
  justify-content:flex-end !important;
}

#ltc #ltc_msgs .ltc_row_bot{
  justify-content:flex-start !important;
}

#ltc #ltc_msgs .ltc_b,
#ltc #ltc_msgs .chat-bubble{
  margin:0 !important;
}

#ltc .chat-list{
  display:block !important;
  padding-left:18px !important;
  margin:6px 0 !important;
  list-style:disc !important;
}

#ltc .chat-list li{
  display:list-item !important;
  margin-bottom:6px !important;
  line-height:1.5 !important;
}

#ltc .chat-list li:last-child{
  margin-bottom:0 !important;
}

#ltc .ltc_md{
  display:block !important;
}

/* Avatar + link rendering fix */
#ltc #ltc_msgs .ltc_row,
#ltc #ltc_msgs .chat-row{
  display:flex !important;
  align-items:flex-start !important;
  gap:10px !important;
}

#ltc #ltc_msgs .ltc_meta_bot_avatar,
#ltc #ltc_msgs .chat-avatar{
  margin-right:10px !important;
  flex-shrink:0 !important;
}

#ltc #ltc_msgs .ltc_b a,
#ltc #ltc_msgs .chat-bubble a{
  display:inline-block !important;
  max-width:100% !important;
  word-break:break-word !important;
  overflow-wrap:break-word !important;
  white-space:normal !important;
}

/* Inline link rendering fix */
#ltc #ltc_msgs .ltc_b a,
#ltc #ltc_msgs .chat-bubble a{
  display:inline !important;
  word-break:break-word !important;
  overflow-wrap:anywhere !important;
  white-space:normal !important;
}

#ltc .ltc_credit_badge{
  display:none;
  align-items:center;
  width:max-content;
  margin-top:6px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:#eef2ff;
  font-size:11px;
  font-weight:700;
  letter-spacing:.02em;
}

#ltc .ltc_credit_badge.is-low{
  background:rgba(251,191,36,.18);
  color:#fde68a;
}

#ltc .ltc_paywall{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:14px;
  z-index:5;
}

#ltc .ltc_paywall.is-open{
  display:flex;
}

#ltc .ltc_paywall_backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.64);
  backdrop-filter:blur(3px);
}

#ltc .ltc_paywall_card{
  position:relative;
  width:min(100%, 332px);
  max-height:calc(100% - 8px);
  overflow-y:auto;
  padding:22px 18px 16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.08);
  background:#1f1f22;
  box-shadow:0 24px 60px rgba(0,0,0,.42);
  color:#f8fafc;
}

#ltc .ltc_paywall_close{
  position:absolute;
  top:12px;
  right:14px;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.7);
  font-size:32px;
  line-height:1;
  cursor:pointer;
}

#ltc .ltc_paywall_title{
  margin:0 0 10px;
  color:#fff;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.02em;
}

#ltc .ltc_paywall_intro,
#ltc .ltc_paywall_copy,
#ltc .ltc_paywall_note{
  margin:0;
  color:rgba(255,255,255,.76);
  line-height:1.5;
  font-size:14px;
}

#ltc .ltc_paywall_intro{
  margin-bottom:14px;
}

#ltc .ltc_paywall_copy + .ltc_paywall_copy{
  margin-top:12px;
}

#ltc .ltc_paywall_faq,
#ltc .ltc_paywall_cta{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin-top:14px;
  min-height:48px;
  border-radius:14px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
}

#ltc .ltc_paywall_faq{
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  background:transparent;
}

#ltc .ltc_paywall_cta{
  border:none;
  background:#f4f4f5;
  color:#111827;
}

#ltc .ltc_paywall_note{
  margin-top:12px;
  font-size:12px;
  text-align:center;
}

#ltc .ltc_paywall_field{
  display:block;
  margin-top:14px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  color:rgba(255,255,255,.86);
}

#ltc .ltc_paywall_input{
  width:100%;
  margin-top:8px;
  min-height:44px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:14px;
  outline:none;
}

#ltc .ltc_paywall_input::placeholder{
  color:rgba(255,255,255,.42);
}

#ltc .ltc_paywall_input:focus{
  border-color:rgba(255,255,255,.28);
  box-shadow:0 0 0 3px rgba(255,255,255,.06);
}

#ltc .ltc_paywall_error{
  display:none;
  margin-top:8px;
  font-size:12px;
  line-height:1.45;
  color:#fca5a5;
}

#ltc .ltc_paywall_error.is-visible{
  display:block;
}

#ltc .ltc_paywall_actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}

#ltc .ltc_paywall_redeem,
#ltc .ltc_paywall_restore{
  min-height:42px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}

#ltc .ltc_paywall_redeem{
  border:none;
  background:#f4f4f5;
  color:#111827;
}

#ltc .ltc_paywall_restore{
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:#fff;
}

#ltc .ltc_paywall_hint{
  margin-top:10px;
  font-size:12px;
  line-height:1.55;
  color:rgba(255,255,255,.58);
}

@media (max-width: 640px){
  #ltc .ltc_paywall{
    align-items:flex-start;
    padding:10px;
  }

  #ltc .ltc_paywall_card{
    width:min(100%, 320px);
    max-height:calc(100% - 4px);
    padding:18px 16px 14px;
    border-radius:18px;
  }

  #ltc .ltc_paywall_title{
    font-size:17px;
    padding-right:28px;
  }

  #ltc .ltc_paywall_intro,
  #ltc .ltc_paywall_copy,
  #ltc .ltc_paywall_note,
  #ltc .ltc_paywall_hint{
    font-size:13px;
  }

  #ltc .ltc_paywall_actions{
    grid-template-columns:1fr;
  }
}

/* Final paywall cleanup */
#ltc .ltc_paywall_card{
  width:min(100%, 430px);
  max-height:calc(100% - 18px);
  padding:24px 22px 18px;
}

#ltc .ltc_paywall_title{
  margin-bottom:12px;
  padding-right:32px;
  font-size:20px;
}

#ltc .ltc_paywall_intro,
#ltc .ltc_paywall_copy{
  color:rgba(255,255,255,.82);
  font-size:15px;
  line-height:1.58;
}

#ltc .ltc_paywall_intro{
  margin-bottom:10px;
}

#ltc .ltc_paywall_copy + .ltc_paywall_copy{
  margin-top:8px;
}

#ltc .ltc_paywall_faq,
#ltc .ltc_paywall_cta{
  margin-top:12px;
}

#ltc .ltc_paywall_field{
  margin-top:16px;
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.68);
}

#ltc .ltc_paywall_input{
  margin-top:7px;
  min-height:46px;
}

#ltc .ltc_paywall_actions{
  gap:10px;
  margin-top:12px;
}

#ltc .ltc_paywall_hint{
  margin-top:8px;
}

#ltc .ltc_paywall_note{
  margin-top:14px;
  color:rgba(255,255,255,.62);
}

@media (max-width: 640px){
  #ltc .ltc_paywall_card{
    width:min(100%, 360px);
    padding:20px 18px 16px;
  }

  #ltc .ltc_paywall_title{
    font-size:18px;
  }

  #ltc .ltc_paywall_intro,
  #ltc .ltc_paywall_copy,
  #ltc .ltc_paywall_note,
  #ltc .ltc_paywall_hint{
    font-size:13px;
  }
}

/* Final responsive shell + mobile UX layer */
#ltc #ltc_fab{
  bottom:calc(16px + env(safe-area-inset-bottom));
  right:calc(16px + env(safe-area-inset-right));
}

#ltc #ltc_fab_nudge{
  right:72px;
  top:50%;
  min-width:0;
  max-width:min(240px, calc(100vw - 120px));
  padding:10px 12px 10px 14px;
  border-radius:999px;
  gap:10px;
  background:linear-gradient(135deg,#ffffff 0%,#eef8ff 100%);
  border:1px solid rgba(15,61,94,.10);
  box-shadow:0 16px 36px rgba(15,23,42,.16),0 8px 18px rgba(15,61,94,.10);
}

#ltc #ltc_fab_nudge:after{
  background:#eef8ff;
}

#ltc .ltc_fab_nudge_text{
  flex-direction:row;
  align-items:center;
  gap:8px;
}

#ltc .ltc_fab_nudge_eyebrow{
  display:none !important;
}

#ltc .ltc_fab_nudge_copy{
  font-size:14px;
  line-height:1.1;
  font-weight:800;
  color:#0b3552;
  letter-spacing:-.02em;
}

#ltc .ltc_fab_nudge_cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#0f3d5e;
  color:#fff;
  font-size:14px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(15,61,94,.20);
}

#ltc #ltc_win{
  right:calc(12px + env(safe-area-inset-right)) !important;
  bottom:calc(12px + env(safe-area-inset-bottom)) !important;
  left:auto !important;
  width:min(430px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
  max-width:calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
  height:min(760px, calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))) !important;
  height:min(760px, calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))) !important;
  max-height:calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  border-radius:20px !important;
  overflow:hidden !important;
}

#ltc #ltc_hdr{
  padding:16px 18px !important;
  min-height:88px !important;
  align-items:center !important;
}

#ltc #ltc_hdr_info{
  min-width:0 !important;
}

#ltc #ltc_msgs{
  flex:1 1 auto !important;
  min-height:0 !important;
  padding:18px 16px 0 !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
}

#ltc #ltc_inrow{
  flex:none !important;
  margin:0 !important;
  padding:12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
}

#ltc #ltc_foot{
  flex:none !important;
  padding:8px 0 calc(12px + env(safe-area-inset-bottom)) !important;
}

#ltc #ltc_msgs .ltc_row{
  gap:8px !important;
  align-items:flex-start !important;
}

#ltc #ltc_msgs .ltc_cnt{
  width:auto !important;
  max-width:min(84%, 430px) !important;
  min-width:0 !important;
}

#ltc #ltc_msgs .ltc_b,
#ltc #ltc_msgs .ltc_typing,
#ltc #ltc_msgs .ltc_links{
  width:auto !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

#ltc #ltc_msgs .ltc_meta_bot_avatar{
  width:34px !important;
  height:34px !important;
  margin-top:8px !important;
}

#ltc .ltc_paywall{
  align-items:center !important;
  padding:16px calc(12px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)) !important;
}

#ltc .ltc_paywall_card{
  width:min(450px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))) !important;
  max-height:calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
  padding:24px 20px 18px !important;
  border-radius:24px !important;
}

#ltc .ltc_paywall_intro,
#ltc .ltc_paywall_copy{
  font-size:14px !important;
  line-height:1.6 !important;
}

#ltc .ltc_paywall_cta,
#ltc .ltc_paywall_redeem,
#ltc .ltc_paywall_restore{
  min-height:50px;
}

@media (max-width: 820px){
  #ltc #ltc_win{
    top:calc(8px + env(safe-area-inset-top)) !important;
    right:calc(8px + env(safe-area-inset-right)) !important;
    bottom:calc(8px + env(safe-area-inset-bottom)) !important;
    left:calc(8px + env(safe-area-inset-left)) !important;
    width:auto !important;
    max-width:none !important;
    height:auto !important;
    max-height:none !important;
    border-radius:18px !important;
  }

  #ltc #ltc_hdr{
    padding:14px 16px !important;
    min-height:84px !important;
  }

  #ltc #ltc_msgs{
    padding:16px 14px 0 !important;
  }

  #ltc #ltc_inrow{
    padding:10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
  }

  #ltc #ltc_msgs .ltc_cnt{
    max-width:90% !important;
  }

  #ltc .ltc_paywall{
    align-items:flex-start !important;
    padding-top:calc(12px + env(safe-area-inset-top)) !important;
  }

  #ltc .ltc_paywall_card{
    width:calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)) !important;
    padding:20px 16px 16px !important;
    border-radius:20px !important;
  }

  #ltc .ltc_paywall_actions{
    grid-template-columns:1fr !important;
  }
}

@media (max-width: 640px){
  #ltc #ltc_fab{
    width:56px;
    height:56px;
    border-radius:18px;
    bottom:calc(12px + env(safe-area-inset-bottom));
    right:calc(12px + env(safe-area-inset-right));
  }

  #ltc #ltc_fab_nudge{
    top:auto;
    right:0;
    bottom:70px;
    transform:none;
    max-width:min(220px, calc(100vw - 32px));
    padding:10px 12px;
  }

  #ltc #ltc_fab_nudge:after{
    top:auto;
    right:22px;
    bottom:-6px;
    transform:rotate(45deg);
  }

  #ltc .ltc_fab_nudge_copy{
    font-size:13px;
  }

  #ltc .ltc_fab_nudge_cta{
    width:22px;
    height:22px;
    font-size:13px;
  }

  #ltc #ltc_hdr_name{
    font-size:15px !important;
  }

  #ltc .ltc_hdr_sub{
    font-size:12px !important;
  }

  #ltc #ltc_inp{
    font-size:16px !important;
  }

  #ltc #ltc_msgs .ltc_meta_bot_avatar{
    width:30px !important;
    height:30px !important;
  }

  #ltc .ltc_paywall_title{
    font-size:18px !important;
  }

  #ltc .ltc_paywall_intro,
  #ltc .ltc_paywall_copy,
  #ltc .ltc_paywall_note,
  #ltc .ltc_paywall_hint{
    font-size:13px !important;
  }
}

body.ltc-chat-open{
  overflow:hidden;
}

#ltc .ltc_b_card{
  padding:14px 14px 12px !important;
}

#ltc .ltc_answer_card{
  display:flex;
  flex-direction:column;
  gap:12px;
}

#ltc .ltc_answer_section{
  display:flex;
  flex-direction:column;
  gap:6px;
}

#ltc .ltc_answer_label{
  font-size:11px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  color:#5c6f86;
}

#ltc .ltc_answer_body{
  font-size:15px;
  line-height:1.55;
  color:#102338;
}

#ltc .ltc_answer_body .ltc_md_block{
  margin-top:0 !important;
}

#ltc .ltc_answer_list{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:8px;
  color:#102338;
}

#ltc .ltc_answer_actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(15,35,56,.08);
}

#ltc .ltc_answer_action{
  appearance:none;
  border:1px solid rgba(15,61,94,.14);
  background:#ffffff;
  color:#0f3d5e;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

#ltc .ltc_answer_action:hover{
  transform:translateY(-1px);
  border-color:rgba(15,61,94,.28);
  background:#eef7ff;
  box-shadow:0 10px 18px rgba(15,61,94,.08);
}

#ltc .ltc_paywall_actions{
  grid-template-columns:1fr !important;
}

#ltc .ltc_paywall_redeem{
  background:#ffffff !important;
  color:#111827 !important;
}

#ltc .ltc_paywall_restore{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  margin:10px auto 0;
  padding:0;
  min-height:0;
  border:none !important;
  background:transparent !important;
  color:rgba(255,255,255,.72) !important;
  font-size:12px;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

#ltc .ltc_paywall_restore:hover{
  color:#ffffff !important;
}

@media (max-width: 820px){
  #ltc .ltc_answer_actions{
    gap:7px;
  }

  #ltc .ltc_answer_action{
    width:100%;
    justify-content:center;
  }
}

@media (max-width: 640px){
  #ltc #ltc_win{
    border-radius:0 !important;
  }

  #ltc #ltc_hdr{
    padding-top:calc(14px + env(safe-area-inset-top)) !important;
  }

  #ltc #ltc_foot{
    padding-bottom:calc(8px + env(safe-area-inset-bottom)) !important;
  }

  #ltc #ltc_msgs .ltc_cnt{
    max-width:92% !important;
  }

  #ltc .ltc_answer_body,
  #ltc .ltc_answer_list{
    font-size:14px;
  }

  #ltc .ltc_answer_action{
    font-size:12px;
    padding:9px 12px;
  }
}

