/* VAULTIFY AI WIDGET V1 */
.vai-launcher{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:2147483000;
  width:62px;
  height:62px;
  border-radius:999px;
  border:1px solid rgba(31,111,255,.28);
  background:#1f6fff;
  color:white;
  box-shadow:0 18px 42px rgba(31,111,255,.28);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  cursor:pointer;
}
.vai-launcher:hover{transform:translateY(-1px)}
.vai-panel{
  position:fixed;
  right:22px;
  bottom:96px;
  z-index:2147483001;
  width:min(420px,calc(100vw - 32px));
  height:min(640px,calc(100vh - 130px));
  border-radius:24px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(31,111,255,.18);
  box-shadow:0 26px 80px rgba(7,27,73,.22);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  backdrop-filter:blur(14px);
}
.vai-panel[hidden]{display:none}
.vai-head{
  padding:16px 18px;
  background:linear-gradient(135deg,#1f6fff,#5b8cff);
  color:white;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.vai-title{font-weight:950;font-size:16px}
.vai-sub{font-size:12px;opacity:.9;margin-top:2px}
.vai-close{
  border:0;
  background:rgba(255,255,255,.18);
  color:white;
  width:30px;
  height:30px;
  border-radius:999px;
  cursor:pointer;
  font-size:20px;
}
.vai-messages{
  flex:1;
  overflow:auto;
  padding:16px;
  background:linear-gradient(180deg,#f7fbff,#fff);
}
.vai-msg{
  max-width:86%;
  margin:9px 0;
  padding:11px 13px;
  border-radius:16px;
  font-size:14px;
  line-height:1.45;
  white-space:pre-wrap;
}
.vai-user{
  margin-left:auto;
  background:#1f6fff;
  color:white;
  border-bottom-right-radius:5px;
}
.vai-bot{
  background:#eef6ff;
  color:#071b49;
  border-bottom-left-radius:5px;
}
.vai-foot{
  border-top:1px solid rgba(31,111,255,.14);
  padding:12px;
  background:white;
}
.vai-inputrow{
  display:flex;
  gap:8px;
}
.vai-input{
  flex:1;
  border:1px solid rgba(31,111,255,.22);
  border-radius:15px;
  padding:12px;
  min-height:46px;
  max-height:120px;
  resize:none;
  font:inherit;
}
.vai-send{
  border:0;
  background:#1f6fff;
  color:white;
  border-radius:14px;
  padding:0 15px;
  font-weight:900;
  cursor:pointer;
}
.vai-meta{
  margin-top:8px;
  font-size:11px;
  color:#5d6f91;
}
.vai-quick{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}
.vai-chip{
  border:1px solid rgba(31,111,255,.18);
  background:#fff;
  color:#071b49;
  border-radius:999px;
  padding:6px 9px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
@media(max-width:640px){
  .vai-launcher{right:16px;bottom:16px}
  .vai-panel{right:12px;bottom:86px;width:calc(100vw - 24px);height:calc(100vh - 105px)}
}


/* VAULTIFY AI WIDGET GLOBAL PATCH V1 */
.vai-launcher{
  font-weight:900;
  letter-spacing:-.04em;
}
.vai-panel{
  color:#071b49;
}

/* VAULTIFY AI WIDGET SOURCES V1 */
.vai-sources{
  margin:10px 0 12px;
  padding:10px;
  border:1px solid rgba(31,111,255,.16);
  background:rgba(255,255,255,.82);
  border-radius:16px;
}
.vai-sources-title{
  font-size:12px;
  font-weight:950;
  color:#071b49;
  margin-bottom:7px;
}
.vai-source-item{
  padding:8px 0;
  border-top:1px solid rgba(31,111,255,.10);
  font-size:12px;
  color:#071b49;
}
.vai-source-item:first-of-type{
  border-top:0;
}
.vai-source-item strong{
  display:block;
  font-size:12px;
}
.vai-source-item div{
  color:#5d6f91;
  margin-top:2px;
}
.vai-source-item small{
  display:block;
  color:#5d6f91;
  margin-top:4px;
  line-height:1.35;
}

/* VAULTIFY AI WIDGET CLICKABLE SOURCES V1 */
.vai-source-item{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  cursor:pointer;
  border-radius:12px;
}
.vai-source-item:hover{
  background:rgba(31,111,255,.07);
}
.vai-source-open{
  display:inline-flex;
  margin-top:6px;
  font-size:11px;
  font-weight:900;
  color:#1f6fff;
}
