        :root{
  --iote-primary:#2b145f;
  --iote-primary-2:#4a2b8a;
  --iote-accent:#ffffff;
  --iote-bg:#f7f7fb;
  --iote-border:#dddff0;
  --iote-text:#1f1f2e;
  --iote-muted:#666a7a;
  --iote-user:#2b145f;
  --iote-bot:#ffffff;
  --iote-shadow:0 12px 35px rgba(25, 10, 60, 0.22);
}

#iote-assistant-root{
  font-family:'Prompt',sans-serif;
}

.iote-assistant-fab{
  position:fixed;
  right:20px;
  bottom:20px;
  width:62px;
  height:62px;
  border:none;
  border-radius:50%;
  background:linear-gradient(135deg,var(--iote-primary),var(--iote-primary-2));
  color:#fff;
  box-shadow:var(--iote-shadow);
  cursor:pointer;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease, box-shadow .2s ease;
}

.iote-assistant-fab:hover{
  transform:translateY(-2px) scale(1.03);
}

.iote-assistant-fab svg{
  width:28px;
  height:28px;
}

.iote-assistant-panel{
  position:fixed;
  right:20px;
  bottom:94px;
  width:360px;
  max-width:calc(100vw - 24px);
  height:560px;
  max-height:calc(100vh - 120px);
  background:#fff;
  border:1px solid var(--iote-border);
  border-radius:22px;
  box-shadow:var(--iote-shadow);
  overflow:hidden;
  z-index:9998;
  display:flex;
  flex-direction:column;
  transform:translateY(20px);
  opacity:0;
  pointer-events:none;
  transition:all .25s ease;
}

.iote-assistant-panel.open{
  transform:translateY(0);
  opacity:1;
  pointer-events:auto;
}

.iote-assistant-header{
  background:linear-gradient(135deg,var(--iote-primary),var(--iote-primary-2));
  color:#fff;
  padding:14px 16px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.iote-assistant-title{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.iote-assistant-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.iote-assistant-avatar svg{
  width:20px;
  height:20px;
}

.iote-assistant-title-text{
  min-width:0;
}

.iote-assistant-title-text h4{
  margin:0;
  font-size:15px;
  font-weight:600;
}

.iote-assistant-title-text p{
  margin:1px 0 0;
  font-size:11px;
  opacity:.9;
}

.iote-assistant-controls{
  display:flex;
  align-items:center;
  gap:8px;
}

.iote-lang-toggle{
  display:flex;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:2px;
}

.iote-lang-btn{
  border:none;
  background:transparent;
  color:#fff;
  font-size:11px;
  padding:5px 8px;
  border-radius:999px;
  cursor:pointer;
  opacity:.8;
}

.iote-lang-btn.active{
  background:#fff;
  color:var(--iote-primary);
  opacity:1;
}

.iote-close-btn{
  width:32px;
  height:32px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  color:#fff;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.iote-assistant-body{
  flex:1;
  background:var(--iote-bg);
  padding:14px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.iote-message{
  display:flex;
  flex-direction:column;
  max-width:88%;
}

.iote-message.bot{
  align-self:flex-start;
}

.iote-message.user{
  align-self:flex-end;
}

.iote-bubble{
  padding:12px 14px;
  border-radius:16px;
  font-size:14px;
  line-height:1.55;
  word-break:break-word;
}

.iote-message.bot .iote-bubble{
  background:var(--iote-bot);
  color:var(--iote-text);
  border:1px solid var(--iote-border);
  border-bottom-left-radius:6px;
}

.iote-message.user .iote-bubble{
  background:var(--iote-user);
  color:#fff;
  border-bottom-right-radius:6px;
}

.iote-message-meta{
  margin-top:5px;
  font-size:11px;
  color:var(--iote-muted);
  padding:0 4px;
}

.iote-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.iote-nav-btn,
.iote-chip{
  border:none;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  cursor:pointer;
  transition:.2s ease;
}

.iote-nav-btn{
  background:var(--iote-primary);
  color:#fff;
}

.iote-nav-btn:hover{
  background:var(--iote-primary-2);
}

.iote-chip{
  background:#fff;
  color:var(--iote-primary);
  border:1px solid var(--iote-border);
}

.iote-chip:hover{
  background:#f1edff;
}

.iote-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0 14px 12px;
  background:var(--iote-bg);
  border-top:1px solid #eef0f6;
}

.iote-assistant-footer{
  padding:12px;
  background:#fff;
  border-top:1px solid var(--iote-border);
}

.iote-input-wrap{
  display:flex;
  align-items:center;
  gap:8px;
}

.iote-input{
  flex:1;
  min-width:0;
  border:1px solid var(--iote-border);
  border-radius:999px;
  padding:12px 14px;
  font-size:14px;
  outline:none;
}

.iote-input:focus{
  border-color:#b8aaf0;
  box-shadow:0 0 0 3px rgba(120, 89, 204, 0.12);
}

.iote-send-btn{
  border:none;
  background:var(--iote-primary);
  color:#fff;
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  flex-shrink:0;
}

.iote-send-btn:hover{
  background:var(--iote-primary-2);
}

.iote-disclaimer{
  margin-top:8px;
  font-size:11px;
  line-height:1.45;
  color:var(--iote-muted);
  text-align:left;
}

.iote-typing{
  display:inline-flex;
  gap:4px;
  align-items:center;
}

.iote-typing span{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#8b8fa3;
  animation:ioteBlink 1.1s infinite;
}

.iote-typing span:nth-child(2){ animation-delay:.15s; }
.iote-typing span:nth-child(3){ animation-delay:.3s; }

@keyframes ioteBlink{
  0%, 80%, 100%{ opacity:.25; transform:translateY(0); }
  40%{ opacity:1; transform:translateY(-3px); }
}

@media (max-width:768px){
  .iote-assistant-panel{
    right:12px;
    left:12px;
    width:auto;
    height:72vh;
    max-height:72vh;
    bottom:86px;
  }

  .iote-assistant-fab{
    right:16px;
    bottom:16px;
    width:58px;
    height:58px;
  }
}