@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;
  }

  .daily-estimation-strip__day {
    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;
  }

  .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__weekday {
    color: #94a3b8;
  }

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

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