/* "My guests": a member's invitations and their guests. */
.invite-row {
  display: flex;
  gap: 8px;
}

.invite-row input {
  flex: 1;
}

.invitation {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.invitation[hidden] {
  display: none;
}

.invitation h3 {
  margin: 0;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.checks .ok {
  color: #15803d;
}

.checks .warn {
  color: #b45309;
}

.offer-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.offer-preview code {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.trust {
  display: grid;
  gap: 4px;
  font-size: 14px;
  background: color-mix(in srgb, #16a34a 8%, var(--panel));
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.tile-stat {
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.tile-stat strong {
  font-size: 26px;
}

.tile-stat small {
  color: var(--muted);
}

.guests-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.guests-head input {
  max-width: 280px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}

.chip.active {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: var(--brand);
}

.guest-list {
  display: grid;
  gap: 8px;
}

.guest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 10px;
}

.guest.warmth-customer {
  border-left-color: #7c3aed;
}

.guest.warmth-hot {
  border-left-color: #dc2626;
}

.guest.warmth-warm {
  border-left-color: #f59e0b;
}

.guest.warmth-cool {
  border-left-color: #38bdf8;
}

.guest.warmth-cold {
  border-left-color: #94a3b8;
}

.guest-main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  min-width: 0;
}

.guest-main a {
  overflow-wrap: anywhere;
}

.guest-state {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.warmth {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #94a3b8;
}

.warmth.customer {
  background: #7c3aed;
}

.warmth.hot {
  background: #dc2626;
}

.warmth.warm {
  background: #f59e0b;
}

.warmth.cool {
  background: #0ea5e9;
}

.next-step {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
}

.small-button {
  justify-self: start;
  padding: 2px 10px;
  font-size: 13px;
}

.history {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.history time {
  color: var(--muted);
}

@media (max-width: 640px) {
  .guest {
    grid-template-columns: 1fr;
  }

  .guest-state {
    justify-content: flex-start;
  }

  .invite-row {
    flex-direction: column;
  }
}

#account-username {
  text-transform: none;
}

.guest-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.has-unread {
  border-color: var(--live);
  color: var(--live);
  font-weight: 700;
}

#chat-dialog {
  width: min(520px, calc(100vw - 32px));
}

.stats-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.stats-title {
  margin: 0;
  font-size: 24px;
}

.periods {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.periods button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.periods button.active {
  background: var(--brand);
  color: var(--brand-contrast);
}

.summary {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  border-left: 4px solid var(--brand);
}

.tiles {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}

.tile-stat.clickable {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.tile-stat.clickable:hover,
.tile-stat.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.report .rate {
  font-weight: 700;
}

.worth {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fact {
  display: grid;
  gap: 2px;
}

.fact strong {
  font-size: 22px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

.source-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-form input[name='label'] {
  flex: 2;
  min-width: 200px;
}

.source-form input[name='spend'] {
  flex: 1;
  min-width: 140px;
}

.card .report {
  display: block;
  overflow-x: auto;
}

/* The "I'm speaking at" / "Join me at" picture on an affiliate's dashboard. */
.promo-card {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 20%);
}

.follow-up {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 4px;
}
