.dashboard {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.dashboard-avatar {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--clr-surface-tonal-a30);
  background: var(--clr-surface-tonal-a10);
  box-shadow: 0 0 0 4px oklch(from var(--clr-info-a0) l c h / 0.15);
}

.dashboard-welcome-text h1 {
  margin: 0;
  line-height: 1.15;
}

.dashboard-welcome-text p {
  margin: 0;
  color: var(--clr-light-a0-alpha);
}

.recent-activity-timeline {
  display: flex;
  margin-bottom: 1rem;
}

.recent-activity-timeline-entry {
    height: 1rem;
    background-color: var(--clr-surface-tonal-a30);
    min-width: 2px;
    cursor: pointer;
    transition: background-color 120ms ease;
  }

.recent-activity-timeline-entry:hover {
  background-color: var(--clr-surface-tonal-a50);
}

.tier-pill {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--clr-light-a0-alpha);
}

.tier-pill-1 {
  background-color: var(--clr-bronze);
  color: var(--clr-bronze-text);
}

.tier-pill-2 {
  background-color: var(--clr-silver);
  color: var(--clr-silver-text);
}

.tier-pill-3 {
  background-color: var(--clr-gold);
  color: var(--clr-gold-text);
}

.dashboard-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dashboard-card {
  background: var(--clr-light-a10-alpha);
  border-radius: var(--border-radius);
  padding: 0.666rem 0;
}

.dashboard-card-header {
  padding: 0 1rem 0.333rem;
  margin: 0;
  font-size: 1.33rem;
}

.dashboard-card-list {
  display: flex;
  flex-direction: column;
}

.dashboard-card-list-item {
  border-top: 1px solid oklch(from var(--clr-surface-tonal-a20) l c h / 0.5);
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: space-between;

  &:first-child {
    border-top: none;
  }
}

.dashboard-section {
  margin-bottom: 1.2rem;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.dashboard-list {
  background: var(--clr-light-a10-alpha);
  border-radius: var(--border-radius);
}

.dashboard-list-empty {
  padding: 2rem;
  text-align: center;
  color: var(--clr-surface-tonal-a10-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;

  a {
    color: inherit;

    &:hover {
      border-bottom-color: var(--clr-surface-tonal-a30);
    }
  }
}

.dashboard-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border: none;

  &:hover {
    background: var(--clr-light-a10-alpha);
    border: none;
  }
}

.dashboard-list-item + .dashboard-list-item {
  border-top: 1px solid oklch(from var(--clr-surface-tonal-a20) l c h / 0.5);
}

.dashboard-list-item strong {
  font-size: 0.98rem;
}

.dashboard-list-item span {
  color: var(--clr-light-a0-alpha);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .dashboard-two-column {
    grid-template-columns: 1fr;
  }

  .dashboard-list-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}