@media (prefers-color-scheme: dark) {
  .dashboard-view-toggle,
  .dashboard-calendar-summary span,
  .dashboard-calendar-create-card {
    background: rgba(247, 238, 231, 0.075);
    border-color: rgba(247, 238, 231, 0.18);
  }

  .dashboard-view-toggle-link {
    color: #e6d7cd;
  }

  .dashboard-view-toggle-link:hover,
  .dashboard-view-toggle-link:focus {
    color: var(--text);
  }

  .dashboard-view-toggle-link.active {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-pink));
    color: #1d1816;
    box-shadow: 0 10px 24px rgba(255, 127, 150, 0.18);
  }

  .dashboard-calendar-shell {
    background: rgba(29, 24, 22, 0.92);
    border-color: var(--border);
  }

  .dashboard-calendar-grid {
    background: #151211;
    border-color: rgba(247, 238, 231, 0.2);
  }

  .dashboard-calendar-weekday {
    background: #312824;
    border-color: rgba(247, 238, 231, 0.18);
    color: #f1dfd3;
  }

  .dashboard-calendar-day {
    background: #26211f;
    border-color: rgba(247, 238, 231, 0.16);
    color: var(--text);
  }

  .dashboard-calendar-day.muted {
    background: #211c1a;
    color: #ddcec4;
  }

  .dashboard-calendar-day.selected {
    background: #352032;
    box-shadow: inset 0 0 0 1px rgba(207, 140, 255, 0.38);
  }

  .dashboard-calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--accent-orange);
  }

  .dashboard-calendar-day-number {
    color: #fff8f2;
  }

  .dashboard-calendar-day.muted .dashboard-calendar-day-number {
    color: #f3e4da;
  }

  .dashboard-calendar-day.selected .dashboard-calendar-day-number {
    background: var(--accent-orange);
    color: #1d1816;
  }

  .dashboard-calendar-day-number:hover,
  .dashboard-calendar-day-number:focus {
    background: rgba(255, 154, 95, 0.18);
    color: #fff8f2;
  }

  .dashboard-calendar-pill {
    background: var(--accent-orange);
    color: #1d1816;
  }

  .dashboard-calendar-empty-day {
    color: #dfd0c7;
  }

  .dashboard-calendar-item {
    background: #f5ece5;
    border-color: rgba(255, 154, 95, 0.58);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  }

  .dashboard-calendar-item a,
  .dashboard-calendar-item-title {
    color: #241916;
  }

  .dashboard-calendar-item a:hover,
  .dashboard-calendar-item a:focus {
    color: #7d2d19;
  }

  .dashboard-calendar-item-type {
    color: #8f4934;
  }

  .dashboard-calendar-item-meta {
    color: #7a5f52;
  }

  .dashboard-calendar-item-task {
    border-left-color: #4fbd6a;
  }

  .dashboard-calendar-item-communication {
    border-left-color: #62d3ee;
  }

  .dashboard-calendar-create-popover {
    background: var(--surface-strong);
    border-color: rgba(247, 238, 231, 0.18);
  }

  .dashboard-calendar-create-close {
    color: var(--accent-dark);
  }

  @media (max-width: 820px) {
    .dashboard-calendar-day + .dashboard-calendar-day {
      border-top: 1px solid rgba(247, 238, 231, 0.16);
    }
  }
}
