#baio-root {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#baio-root[data-dock-position="right"] {
  left: auto;
  right: 18px;
}
#baio-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(61, 217, 255, 0.35);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  background: #081423;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
#baio-launcher .baio-launcher-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--baio-accent, #00FFFF), var(--baio-secondary, #7C3AED));
  display: inline-block;
}
#baio-panel {
  display: none;
  width: min(460px, calc(100vw - 28px));
  max-height: min(78vh, 760px);
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(61, 217, 255, 0.25);
  background: linear-gradient(180deg, #031120 0%, #04101d 100%);
  color: #fff;
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}
#baio-root.baio-open #baio-panel {
  display: block;
}
.baio-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.baio-header h3, .baio-header p { margin: 0; }
.baio-header h3 { font-size: 18px; line-height: 1.2; }
.baio-header p { font-size: 12px; opacity: .75; margin-top: 4px; }
#baio-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.baio-tabs {
  display: flex;
  gap: 12px;
  padding: 14px 18px 0;
}
.baio-tabs button {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: #0a1727;
  color: #fff;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
}
.baio-tabs button.active[data-tab="overview"] {
  background: #0b0b0b;
  color: #fff;
  border-color: #ffffff;
}
.baio-tabs button.active[data-tab="assistant"] {
  background: linear-gradient(135deg, var(--baio-accent, #00FFFF), var(--baio-secondary, #7C3AED));
  color: #031120;
  border-color: transparent;
}
.baio-view {
  display: none;
  padding: 16px 18px 18px;
}
.baio-view.active { display: block; }
.baio-intro {
  margin: 0 0 12px;
  color: rgba(255,255,255,.85);
}
.baio-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}
.baio-message {
  border-radius: 18px;
  padding: 16px 18px;
  line-height: 1.45;
}
.baio-message-user {
  align-self: flex-end;
  background: #111c2b;
  color: #fff;
  max-width: 85%;
}
.baio-message-assistant {
  align-self: flex-start;
  background: rgba(4, 65, 77, 0.36);
  border: 1px solid rgba(0, 238, 255, 0.7);
  color: #fff;
}
.baio-message a {
  color: #9fe7ff;
  text-decoration: underline;
  word-break: break-word;
}
#baio-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
#baio-input {
  min-height: 92px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0a1727;
  color: #fff;
  padding: 14px;
}
#baio-chat-form button {
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(135deg, var(--baio-accent, #00FFFF), var(--baio-secondary, #7C3AED));
  color: #031120;
}
.baio-card-stack { display: grid; gap: 12px; }
.baio-card {
  background: #0a1727;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
}
.baio-card p { margin: 8px 0 0; color: rgba(255,255,255,.82); }
.baio-card a { color: #fff; text-decoration: underline; }
.baio-powered-by {
  padding: 8px 18px 18px;
  text-align: center;
  color: rgba(255,255,255,.82);
  font-size: 12px;
}
.baio-powered-by a { color: #fff; }
@media (max-width: 640px) {
  #baio-root, #baio-root[data-dock-position="right"] {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  #baio-launcher { width: auto; }
  #baio-panel { width: calc(100vw - 24px); }
}
