/* Body tag for all Raven pages */
body.page-raven {
  background: #020617;
}

/* Main shell for thread + inbox */
.raven-thread-shell,
.raven-inbox-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 220px; /* bottom padding keeps FAB bar from covering input */
  box-sizing: border-box;
}

/* Thread header */
.raven-thread-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 12px;
}

/* Messages log */
.raven-thread-log {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  padding: 14px 16px;
  max-height: none; /* let content grow and allow scrolling */
}

/* Individual message */
.raven-msg {
  margin-bottom: 10px;
}

.raven-msg-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
}

.raven-msg-body {
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
}

/* Slight tint for your own vs partner messages */
.raven-msg-me .raven-msg-body {
  border: 1px solid rgba(45, 212, 191, 0.7);
}

.raven-msg-them .raven-msg-body {
  border: 1px solid rgba(59, 130, 246, 0.6);
}

.raven-msg-empty {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Composer row at bottom */
.raven-thread-composer {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.raven-thread-composer textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  resize: vertical;
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
}

.raven-thread-composer button {
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.9rem;
  background: linear-gradient(90deg, #f97316, #22c55e);
  color: #020617;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Extra safety for iPhone notch / bottom bar */
@media (max-width: 768px) {
  .raven-thread-shell,
  .raven-inbox-shell {
    padding: 18px 10px 260px;
  }
}
