/* Floating button */
.alfred-embedded {
  max-width: 520px;
  margin: 20px auto;
  font-family: inherit;
}

.alfred-wrap {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  overflow: hidden;
}

.alfred-head {
  padding: 12px 14px;
  background: #2E4A62;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

.alfred-log {
  height: 300px;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}

.alfred-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.alfred-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
}

.alfred-row button {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #2E4A62;
  color: #fff;
  cursor: pointer;
}

.alfred-bubble {
  max-width: 85%;
  padding: 9px 11px;
  margin: 7px 0;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 15px;
}

.alfred-bubble.you {
  background: #dbeafe;
  margin-left: auto;
}

.alfred-bubble.bot {
  background: #fff;
  border: 1px solid #e2e8f0;
}
#alfred-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2E4A62;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 9998;
}

#alfred-panel {
  position: fixed;
  right: 16px;
  bottom: 92px;
  width: 360px;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}

#alfred-panel.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.alfred-panel-head {
  padding: 10px;
  background: #f8fafc;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
}

#alfred-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}

.alfred-log {
  height: 300px;
  overflow: auto;
  padding: 10px;
}

.alfred-row {
  display: flex;
  gap: 8px;
  padding: 10px;
  align-items: center;
}

.alfred-row input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.alfred-row button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
}

.alfred-bubble {
  max-width: 85%;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 10px;
  line-height: 1.5;
  font-size: 15px;
}

.alfred-bubble.you {
  background: #e8f0fe;
  margin-left: auto;
}

.alfred-bubble.bot {
  background: #f1f5f9;
}

@media (max-width: 480px) {
  #alfred-fab {
    right: 14px;
    bottom: 38px;
  }

  #alfred-panel {
    right: 10px;
    bottom: 86px;
    width: calc(100vw - 20px);
    max-width: none;
  }

  .alfred-log {
    height: 320px;
  }
}
