/* Theo — agente de TheWeb. */

.theo-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  pointer-events: none;
}

.theo-launcher,
.theo-panel {
  pointer-events: auto;
}

.theo-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(255, 222, 89, 0.55);
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.theo-launcher:hover {
  border-color: #ffde59;
}

.theo-launcher-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.theo-status {
  font-size: 0.65rem;
  font-weight: 500;
  color: #4ade80;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theo-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffde59;
  color: #0a0a0a;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theo-online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
}

.theo-panel {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 2147483646;
  width: min(380px, calc(100vw - 32px));
  height: min(540px, calc(100vh - 120px));
  background: #171717;
  border: 1px solid #262626;
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.theo-panel.open {
  display: flex;
}

.theo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #262626;
  background: #0a0a0a;
}

.theo-header-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theo-header h2 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}

.theo-header p {
  font-size: 0.7rem;
  color: #a3a3a3;
  margin: 0;
}

.theo-close {
  background: none;
  border: none;
  color: #a3a3a3;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.theo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theo-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.theo-bubble.bot {
  align-self: flex-start;
  background: #262626;
  color: #f5f5f5;
}

.theo-bubble.user {
  align-self: flex-end;
  background: rgba(255, 222, 89, 0.16);
  border: 1px solid rgba(255, 222, 89, 0.35);
  color: #ffffff;
}

.theo-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #262626;
  background: #0a0a0a;
}

.theo-form input {
  flex: 1;
  font-family: inherit;
  font-size: 0.9rem;
  color: #ffffff;
  background: #171717;
  border: 1px solid #404040;
  border-radius: 999px;
  padding: 10px 14px;
}

.theo-form input:focus {
  outline: none;
  border-color: rgba(255, 222, 89, 0.5);
}

.theo-form button {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: #ffde59;
  color: #0a0a0a;
  cursor: pointer;
}

.theo-form button:disabled {
  opacity: 0.5;
  cursor: wait;
}

@media (max-width: 480px) {
  .theo-launcher {
    right: 16px;
    bottom: 16px;
  }
}
