/* LeadLuna staff UI — light, sales-simple, Phoenix-compatible */
:root {
  --ll-ink: #0f2a3d;
  --ll-accent: #1a7a6d;
  --ll-accent-deep: #125f55;
  --ll-moon: #c8d9e6;
  --ll-wash: #f3f7f9;
  --ll-line: #d7e2ea;
  --ll-row-hover: #eaf4f2;
}

.ll-body {
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(26, 122, 109, 0.08), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(15, 42, 61, 0.06), transparent 55%),
    var(--ll-wash);
  min-height: 100vh;
}

.ll-topnav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ll-line);
  padding-inline: 1.25rem;
}

.ll-content {
  padding-top: 5.5rem;
  padding-bottom: 3rem;
  max-width: 1180px;
  margin-inline: auto;
}

.ll-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ll-ink);
}

.ll-brand-lg .ll-wordmark {
  font-size: 1.75rem;
}

.ll-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 28%, transparent 30%),
    linear-gradient(145deg, var(--ll-moon), var(--ll-accent));
  box-shadow: inset -4px -2px 0 rgba(15, 42, 61, 0.18);
}

.ll-wordmark {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  color: var(--ll-ink);
}

.ll-company-logo-hero {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  border: 1px solid var(--ll-line);
}

.ll-tagline {
  color: #6b7f8f;
  font-size: 0.85rem;
  border-left: 1px solid var(--ll-line);
  padding-left: 0.85rem;
}

.ll-h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ll-ink);
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.ll-primary-btn,
.btn-primary.ll-primary-btn {
  background: var(--ll-accent) !important;
  border-color: var(--ll-accent) !important;
}

.ll-primary-btn:hover,
.btn-primary.ll-primary-btn:hover {
  background: var(--ll-accent-deep) !important;
  border-color: var(--ll-accent-deep) !important;
}

.ll-filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ll-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ll-line);
  background: #fff;
  color: var(--ll-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.ll-pill span {
  background: var(--ll-wash);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.78rem;
}

.ll-pill.is-active {
  background: var(--ll-ink);
  border-color: var(--ll-ink);
  color: #fff;
}

.ll-pill.is-active span {
  background: rgba(255, 255, 255, 0.16);
}

.ll-queue {
  display: grid;
  gap: 0.65rem;
}

.ll-queue-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ll-queue-row:hover {
  background: var(--ll-row-hover);
  border-color: #b7d4ce;
  transform: translateY(-1px);
  color: inherit;
}

.ll-score {
  width: 3.5rem;
  text-align: center;
}

.ll-score-num {
  display: block;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ll-accent);
  line-height: 1;
}

.ll-score-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8d9b;
}

.ll-guest {
  color: var(--ll-ink);
  font-size: 1.05rem;
}

.ll-open-hint {
  color: var(--ll-accent);
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 160ms ease;
}

.ll-queue-row:hover .ll-open-hint {
  opacity: 1;
}

.ll-empty,
.ll-panel {
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.ll-panel-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7f8f;
  font-weight: 800;
  margin-bottom: 1rem;
}

.ll-signal-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.ll-signal-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8d9b;
  margin-bottom: 0.15rem;
}

.ll-signal-grid dd {
  margin: 0;
  color: var(--ll-ink);
  font-weight: 600;
}

.ll-why {
  border-top: 1px solid var(--ll-line);
  padding-top: 0.85rem;
  font-size: 0.9rem;
}

.ll-thread {
  display: grid;
  gap: 0.85rem;
  max-height: 28rem;
  overflow: auto;
}

.ll-msg {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ll-line);
}

.ll-msg-inbound {
  background: #f7fafc;
}

.ll-msg-outbound {
  background: #eef8f5;
  border-color: #cfe6e1;
}

.ll-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6b7f8f;
  margin-bottom: 0.35rem;
}

.ll-msg-subject {
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ll-ink);
}

.ll-msg-body {
  white-space: pre-wrap;
  color: #243846;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ll-draft-editor {
  min-height: 22rem;
  font-size: 1rem;
  line-height: 1.5;
}

.ll-plan {
  background: var(--ll-wash);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.ll-plan summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ll-ink);
}

.ll-plan pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  margin-top: 0.65rem;
  color: #405564;
}

.ll-back {
  color: var(--ll-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.ll-back:hover {
  color: var(--ll-accent-deep);
}

.ll-login-body {
  background:
    linear-gradient(160deg, #0f2a3d 0%, #164556 42%, #1a7a6d 100%);
  min-height: 100vh;
}

.ll-login-panel {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(8, 24, 36, 0.28);
}

.ll-subnav-link {
  color: #5d7383;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.ll-subnav-link.active,
.ll-subnav-link:hover {
  color: var(--ll-accent);
  background: rgba(26, 122, 109, 0.08);
}

.ll-stat-card {
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.ll-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8d9b;
  font-weight: 700;
}

.ll-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ll-ink);
  line-height: 1.1;
}

.ll-stat-high .ll-stat-value {
  color: var(--ll-accent);
}

.ll-tier-pill {
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.ll-agent-card {
  border: 1px solid var(--ll-line);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}

.ll-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.ll-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ll-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.ll-avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.75rem;
}

.ll-onboard-card {
  background: #fff;
  border: 1px solid var(--ll-line);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(15, 42, 61, 0.06);
}

.ll-step-dots {
  display: flex;
  gap: 0.35rem;
}

.ll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7e2ea;
}

.ll-dot.active {
  background: var(--ll-accent);
}

.ll-dot.done {
  background: #8ec5bc;
}

.ll-check label {
  display: block;
  padding: 0.45rem 0;
  font-weight: 600;
}

.ll-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a8d9b;
}

.ll-impersonate-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #f0d9a8;
  background: #fff8e8;
  color: #5c4a1f;
}

@media (max-width: 767.98px) {
  .ll-queue-row {
    grid-template-columns: auto 1fr;
  }

  .ll-queue-meta {
    display: none;
  }

  .ll-content {
    padding-inline: 1rem;
  }
}
