:root {
  --accent: #3B82F6;
  --accent-600: #2563EB;
  --neutral-50: #F9FAFB;
  --neutral-900: #111827;
  --neutral-950: #020617;
}

html,
body {
  height: 100dvh;
  width: 100dvw;
  max-height: 100dvh;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient accent glow is a dark-canvas affordance only; light mode keeps the
   flat slate surface from the Tailwind body classes. */
.dark body {
  background: radial-gradient(1200px 800px at 50% -10%, rgba(59, 130, 246, 0.12), transparent),
              var(--neutral-950);
}

#iyou-ecosystem-bar {
  /* Layer 0: reserved for cross-satellite bar injection. Hidden until populated. */
}

[data-role="roster-list"] li {
  transition: background-color 120ms ease-in-out;
}

.message-bubble {
  max-width: 68ch;
  word-break: break-word;
}

.message-in {
  align-self: flex-start;
}

.message-out {
  align-self: flex-end;
}

.message-meta {
  font-size: 10px;
  line-height: 1rem;
  margin-top: 0.375rem;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
/* Landing invite banner entrance (used by #invite-banner on ?add= deep links) */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 240ms ease-out both;
}

/* Prevent notification bell collisions on tight screens */
@media (max-width: 480px) {
  .standard-header-cluster,
  header {
    min-width: 0;
  }
  #ecosystem-bell-anchor {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
  }
}

/* Landscape mode optimization on mobile devices */
@media (orientation: landscape) and (max-height: 500px) {
  #conversation-header {
    height: 2.75rem !important; /* 44px */
  }
  #composer-container {
    padding-top: 0.25rem !important;
    padding-bottom: max(0.25rem, env(safe-area-inset-bottom)) !important;
  }
  #message-input {
    min-height: 38px !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
  #btn-send-message {
    height: 38px !important;
  }
}
