@layer components {
  .daily-estimation-strip {
    margin-bottom: 1.5rem;
  }

  .daily-estimation-strip__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
  }

  .daily-estimation-strip__list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
  }

  @media (max-width: 640px) {
    .daily-estimation-strip__list {
      display: grid;
      grid-template-columns: repeat(5, minmax(60px, 1fr));
      overflow-x: visible;
      scroll-snap-type: none;
      gap: 0.75rem;
      padding-bottom: 0;
    }

    .daily-estimation-strip__day:nth-child(n + 11) {
      display: none;
    }
  }

  .daily-estimation-strip__day {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 64px;
    padding: 0.75rem 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: #fafafa;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  }

  @media (max-width: 640px) {
    .daily-estimation-strip__day {
      min-width: 60px;
      width: 100%;
      padding: 0.5rem 0.25rem;
    }
  }

  .daily-estimation-strip__day:hover {
    /* transform: translateY(-2px); */
    border-color: var(--secondary-text-color, #94a3b8);
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
  }

  .daily-estimation-strip__weekday {
    font-size: 0.75rem;
    color: var(--secondary-text-color, #6b7280);
  }

  .daily-estimation-strip__percentage {
    font-family: var(--font-family-mono);
    font-size: 1.1rem;
    font-weight: 600;
  }

  .daily-estimation-strip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }

  .daily-estimation-strip__day--low {
    .daily-estimation-strip__percentage { color: #857e70; }
    .daily-estimation-strip__dot { background: #b7afa0; }
  }

  .daily-estimation-strip__day--mid {
    .daily-estimation-strip__percentage { color: #8a6a2e; }
    .daily-estimation-strip__dot { background: #cb9a3d; }
  }

  .daily-estimation-strip__day--good {
    background: #eef1e3;
    .daily-estimation-strip__percentage { color: #5f7233; }
    .daily-estimation-strip__dot { background: #86a54a; }
  }

  .daily-estimation-strip__day--prime {
    background: #e4efe4;
    .daily-estimation-strip__percentage { color: #2f6b45; }
    .daily-estimation-strip__dot { background: #3f9d6b; }
  }

  [data-theme="dark"] .daily-estimation-strip__day {
    background: #1e293b;
    border-color: #334155;
  }

  [data-theme="dark"] .daily-estimation-strip__day:hover,
  [data-theme="dark"] .daily-estimation-strip__day:focus-visible {
    border-color: #64748b;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); */
  }

  [data-theme="dark"] .daily-estimation-strip__weekday {
    color: #94a3b8;
  }

  [data-theme="dark"] .daily-estimation-strip__day--good {
    background: #26331f;
  }

  [data-theme="dark"] .daily-estimation-strip__day--prime {
    background: #1c3327;
  }

}
