@layer components {
  .activity-controls {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
  }

  .activity-month-picker {
    display: grid;
    gap: 8px;
  }

  .activity-month-picker span {
    font-size: 0.82rem;
    color: var(--muted);
  }

  .activity-month-picker select {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(20, 28, 38, 0.96), rgba(17, 24, 33, 0.92));
    color: var(--text);
    color-scheme: dark;
    font-weight: 800;
    outline: none;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 10px 24px rgba(0, 0, 0, 0.16);
  }

  .activity-month-picker select:focus {
    border-color: rgba(255, 91, 46, 0.72);
    box-shadow:
      0 0 0 4px rgba(255, 91, 46, 0.16),
      0 14px 30px rgba(0, 0, 0, 0.22);
  }

  .activity-month-picker select option {
    background: #111821;
    color: var(--text);
    font-weight: 700;
  }

  .activity-days-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .activity-month-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: -2px 0 16px;
  }

  .activity-month-card {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  }

  .activity-month-card span {
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.2;
  }

  .activity-month-card small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .activity-month-card:hover,
  .activity-month-card.is-active {
    border-color: rgba(184, 77, 255, 0.42);
    background: rgba(184, 77, 255, 0.12);
  }

  .activity-day-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
    white-space: nowrap;
  }

  .activity-day-pill strong {
    color: var(--accent);
  }

  .activity-day-pill:hover,
  .activity-day-pill.is-active {
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(255, 179, 71, 0.12);
  }
}

