/* Chatbot local index only */
.stcb-root{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:8000;
  font-family:"Exo 2",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
.stcb-launcher{
  width:62px;height:62px;border-radius:999px;
  border:1px solid rgba(0,245,255,.28);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg, rgba(0,245,255,.20), rgba(156,79,255,.28));
  box-shadow:0 12px 35px rgba(0,0,0,.45), 0 0 0 6px rgba(0,245,255,.08);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  font-size:28px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  backdrop-filter:blur(12px);
}
.stcb-launcher:hover{transform:translateY(-2px) scale(1.02);border-color:rgba(0,245,255,.45);box-shadow:0 16px 40px rgba(0,0,0,.55), 0 0 0 8px rgba(0,245,255,.10)}
.stcb-panel{
  position:absolute;
  right:0;
  bottom:78px;
  width:min(410px, calc(100vw - 24px));
  height:min(690px, calc(100vh - 120px));
  display:none;
  flex-direction:column;
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 280px at 10% -10%, rgba(0,245,255,.12), transparent 50%),
    radial-gradient(700px 240px at 100% 0%, rgba(156,79,255,.14), transparent 50%),
    linear-gradient(180deg, rgba(8,12,28,.98), rgba(8,10,22,.96));
  box-shadow:0 30px 90px rgba(0,0,0,.65);
  backdrop-filter:blur(18px);
}
.stcb-root.open .stcb-panel{display:flex;}
.stcb-header{
  padding:16px 18px 12px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.stcb-header-main{min-width:0;flex:1;}
.stcb-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.stcb-title{
  display:flex;align-items:center;gap:10px;font-weight:900;color:#fff;
  font-family:"Orbitron","Exo 2",sans-serif; letter-spacing:.3px;
}
.stcb-title-badge{
  width:38px;height:38px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, rgba(0,245,255,.16), rgba(156,79,255,.20));
  border:1px solid rgba(0,245,255,.18);
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
.stcb-sub{margin-top:3px;font-size:12px;color:rgba(220,235,255,.72);font-weight:600;line-height:1.35}
.stcb-close,
.stcb-tool-btn{
  width:38px;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05); color:#fff; cursor:pointer; font-size:18px;
}
.stcb-tool-btn{font-size:15px}
.stcb-close:hover,
.stcb-tool-btn:hover{background:rgba(255,255,255,.10);border-color:rgba(0,245,255,.25)}

.stcb-quick-links,
.stcb-favorites,
.stcb-searches,
.stcb-options{
  padding:12px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
}
.stcb-quick-links{
  display:flex;flex-wrap:wrap;gap:8px;
}
.stcb-quick-link{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 12px;border-radius:999px;text-decoration:none;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05);
  color:#fff;font-size:12px;font-weight:800;
}
.stcb-quick-link:hover{background:rgba(0,245,255,.10);border-color:rgba(0,245,255,.24)}
.stcb-searches-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:10px;color:#eaf7ff;font-size:12px;font-weight:800;letter-spacing:.2px;
}
.stcb-inline-btn{
  appearance:none;border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);color:#d9f5ff;
  border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;cursor:pointer;
}
.stcb-inline-btn:hover{background:rgba(0,245,255,.08);border-color:rgba(0,245,255,.22)}
.stcb-searches-list{display:flex;flex-wrap:wrap;gap:8px;}
.stcb-search-item{
  display:inline-flex;align-items:center;max-width:100%;
  border:1px solid rgba(255,255,255,.10);border-radius:999px;
  background:rgba(255,255,255,.05);overflow:hidden;
}
.stcb-search-chip,
.stcb-search-delete{
  appearance:none;border:none;background:transparent;color:#fff;cursor:pointer;
}
.stcb-search-chip{
  padding:8px 12px;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:12px;font-weight:700;
}
.stcb-search-delete{
  width:30px;height:30px;border-left:1px solid rgba(255,255,255,.10);font-size:16px;color:#d9f5ff;
}
.stcb-search-chip:hover,.stcb-search-delete:hover{background:rgba(0,245,255,.09)}

.stcb-favorites-list{display:grid;gap:8px;}
.stcb-fav-item{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.04);
  padding:10px 12px;
}
.stcb-fav-copy{min-width:0;}
.stcb-fav-label{display:block;color:#fff;font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.stcb-fav-summary{display:block;color:rgba(220,235,255,.7);font-size:11px;line-height:1.35;margin-top:3px;}
.stcb-fav-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;}

.stcb-messages{
  flex:1; overflow:auto; padding:16px; display:flex; flex-direction:column; gap:12px;
}
.stcb-msg{display:flex;position:relative;gap:8px;}
.stcb-msg.user{justify-content:flex-end;}
.stcb-bubble{
  max-width:90%;
  padding:12px 14px;
  border-radius:18px;
  line-height:1.5;
  font-size:14px;
  color:#eaf7ff;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 10px 25px rgba(0,0,0,.20);
}
.stcb-msg.bot .stcb-bubble{
  background:rgba(255,255,255,.05);
  border-top-left-radius:8px;
}
.stcb-msg.user .stcb-bubble{
  background:linear-gradient(135deg, rgba(0,245,255,.18), rgba(156,79,255,.26));
  border-top-right-radius:8px;
}
.stcb-msg-delete{
  opacity:0;pointer-events:none;
  width:28px;height:28px;border:none;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.09);color:#fff;font-size:16px;line-height:1;
  align-self:flex-start;transition:opacity .16s ease, transform .16s ease, background .16s ease;
}
.stcb-msg:hover .stcb-msg-delete{opacity:1;pointer-events:auto;}
.stcb-msg-delete:hover{background:rgba(255,80,120,.22);transform:scale(1.04)}
.stcb-bubble p{margin:0 0 9px}
.stcb-bubble p:last-child{margin-bottom:0}
.stcb-bubble a{color:#7ce9ff;text-decoration:none;font-weight:700}
.stcb-bubble a:hover{text-decoration:underline}

.stcb-link-grid{display:grid;gap:10px;margin-top:10px;}
.stcb-link-card{
  border:1px solid rgba(255,255,255,.09);border-radius:18px;
  background:rgba(255,255,255,.04);padding:12px;
}
.stcb-link-card-top{display:flex;flex-direction:column;gap:4px;}
.stcb-link-type{
  align-self:flex-start;padding:4px 8px;border-radius:999px;
  background:rgba(0,245,255,.10);border:1px solid rgba(0,245,255,.18);
  color:#9fefff;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.4px;
}
.stcb-link-card-title{color:#fff;font-size:14px;font-weight:900;}
.stcb-link-card-summary{margin-top:8px;color:rgba(220,235,255,.75);font-size:12px;line-height:1.45;}
.stcb-link-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.stcb-action-btn{
  appearance:none;display:inline-flex;align-items:center;justify-content:center;
  min-height:36px;padding:8px 12px;border-radius:12px;text-decoration:none;cursor:pointer;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05);color:#fff;font-size:12px;font-weight:800;
}
.stcb-action-btn:hover{background:rgba(0,245,255,.10);border-color:rgba(0,245,255,.24);text-decoration:none;}
.stcb-action-btn.is-active{background:rgba(255,220,90,.12);border-color:rgba(255,220,90,.26);color:#fff2a4;}

.stcb-chip-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.stcb-chip{
  appearance:none;border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);color:#fff;
  padding:8px 11px;border-radius:999px;cursor:pointer;font-size:12px;font-weight:700;
}
.stcb-chip:hover{background:rgba(0,245,255,.09);border-color:rgba(0,245,255,.25)}
.stcb-typing{display:flex;gap:6px;align-items:center}
.stcb-typing span{
  width:7px;height:7px;border-radius:999px;background:rgba(255,255,255,.8);
  animation:stcb-blink 1.2s infinite ease-in-out;
}
.stcb-typing span:nth-child(2){animation-delay:.15s}
.stcb-typing span:nth-child(3){animation-delay:.3s}
@keyframes stcb-blink{
  0%,80%,100%{opacity:.28;transform:translateY(0)}
  40%{opacity:1;transform:translateY(-3px)}
}

.stcb-form{
  padding:14px 14px 12px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.stcb-suggest-box{
  margin-bottom:10px;display:grid;gap:6px;
}
.stcb-suggest-item{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 12px;border-radius:14px;cursor:pointer;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;
}
.stcb-suggest-item:hover{background:rgba(0,245,255,.10);border-color:rgba(0,245,255,.24);}
.stcb-suggest-copy{min-width:0;}
.stcb-suggest-title{display:block;font-size:12px;font-weight:800;color:#fff;}
.stcb-suggest-sub{display:block;font-size:11px;color:rgba(220,235,255,.65);margin-top:2px;}
.stcb-input-row{display:flex;gap:10px;align-items:flex-end}
.stcb-input{
  flex:1;resize:none;min-height:48px;max-height:110px;
  border-radius:16px;border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);color:#fff;
  padding:12px 14px;outline:none;font:inherit;line-height:1.35;
}
.stcb-input::placeholder{color:rgba(230,240,255,.46)}
.stcb-input:focus{border-color:rgba(0,245,255,.28);box-shadow:0 0 0 4px rgba(0,245,255,.08)}
.stcb-send{
  width:48px;height:48px;border-radius:16px;border:1px solid rgba(0,245,255,.25);
  background:linear-gradient(135deg, rgba(0,245,255,.20), rgba(156,79,255,.28));
  color:#fff;font-size:18px;cursor:pointer;
}
.stcb-send:disabled{opacity:.6;cursor:not-allowed}
.stcb-footnote{margin-top:8px;font-size:11px;color:rgba(220,235,255,.64)}
@media (max-width:640px){
  .stcb-root{right:12px;bottom:12px}
  .stcb-panel{width:min(100vw - 12px, 100vw - 12px);height:min(76vh, 690px);bottom:74px}
  .stcb-search-chip{max-width:180px}
  .stcb-bubble{max-width:100%;}
}

.stcb-options-grid{display:grid;gap:10px;}
.stcb-option-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 12px;border-radius:16px;
  border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);
}
.stcb-option-copy{min-width:0;}
.stcb-option-label{display:block;color:#fff;font-size:13px;font-weight:800;}
.stcb-option-help{display:block;margin-top:3px;color:rgba(220,235,255,.66);font-size:11px;line-height:1.35;}
.stcb-switch{position:relative;display:inline-flex;width:50px;height:30px;flex-shrink:0;}
.stcb-switch input{position:absolute;opacity:0;pointer-events:none;}
.stcb-switch-slider{
  width:100%;height:100%;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.28);transition:background .18s ease,border-color .18s ease;
  position:relative;
}
.stcb-switch-slider::after{
  content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:999px;
  background:#fff;box-shadow:0 4px 10px rgba(0,0,0,.24);transition:transform .18s ease;
}
.stcb-switch input:checked + .stcb-switch-slider{
  background:linear-gradient(135deg, rgba(0,245,255,.30), rgba(156,79,255,.34));
  border-color:rgba(0,245,255,.24);
}
.stcb-switch input:checked + .stcb-switch-slider::after{transform:translateX(20px);}
.stcb-options-actions{display:flex;justify-content:flex-end;gap:8px;}
.stcb-reset-btn{
  appearance:none;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);
  color:#fff;padding:10px 12px;border-radius:14px;cursor:pointer;font-size:12px;font-weight:800;
}
.stcb-reset-btn:hover{background:rgba(255,80,120,.12);border-color:rgba(255,120,145,.24)}
.stcb-hide-suggestions .stcb-chip-list,
.stcb-hide-suggestions .stcb-suggest-box{display:none !important;}

.stcb-options[hidden],
.stcb-favorites[hidden],
.stcb-searches[hidden],
.stcb-suggest-box[hidden]{display:none !important;}
.stcb-options.is-open{display:block !important;}
