@layer components {
  .calendar-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px 12px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: -1px;
  }

  /* Desktop-shell pages hide the mobile sticky strip — the new
     `.calendar-row` partial in the central column replaces it at
     ≥1200px. Mobile and non-shell pages keep the strip 1:1. */
  @media (width >= 1200px) {
    .has-desktop-shell .calendar-strip {
      display: none;
    }
  }

  .calendar-strip__days {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
  }

  .calendar-strip__days::-webkit-scrollbar {
    display: none;
  }

  .calendar-strip__days--loading {
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 150ms;
  }

  .calendar-strip__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    min-width: 44px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--color-surface);
    border: none;
    color: inherit;
    font-family: inherit;
  }

  .calendar-strip__day:hover {
    background: var(--color-surface-hover);
  }

  .calendar-strip__day--active,
  .calendar-strip__day--active:hover {
    background: var(--color-accent);
  }

  .calendar-strip__day-name {
    font-size: 10px;
    font-weight: var(--weight-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .calendar-strip__day-number {
    font-size: 15px;
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin-top: 2px;
  }

  /* Active day — sits on top of accent green bg, so always dark text */
  .calendar-strip__day--active .calendar-strip__day-name {
    color: var(--color-on-accent-muted);
  }

  .calendar-strip__day--active .calendar-strip__day-number {
    color: var(--color-on-accent);
  }

  /* Today (not active) */
  .calendar-strip__day--today:not(.calendar-strip__day--active) .calendar-strip__day-name {
    color: var(--color-accent-fg);
  }

  .calendar-strip__day--today:not(.calendar-strip__day--active) .calendar-strip__day-number {
    color: var(--color-accent-fg);
  }

  /* Light themes: surface days have low contrast against #fff strip — define them with a subtle border */
  :root[data-theme^="light"] .calendar-strip__day:not(.calendar-strip__day--active) {
    border: 1px solid var(--color-border-subtle);
  }
}
