.dp-popover {
  position: absolute;
  z-index: 50;
  width: 304px;
  background: #fff;
  border: 1px solid #EFEAE3; /* warm-gray-200 */
  border-radius: 12px;
  box-shadow: 0 8px 24px -4px rgba(35, 31, 26, 0.12), 0 2px 8px -2px rgba(35, 31, 26, 0.06);
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  font-family: 'IBM Plex Sans', sans-serif;
}
.dp-popover--open { opacity: 1; pointer-events: auto; }

/* Header row: ← label → */
.dp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: 8px;
  color: #625D57; /* warm-gray-900 */
  cursor: pointer;
  transition: background-color 0.15s;
}
.dp-nav-btn:hover { background-color: #F8F3ED; } /* warm-gray-100 */

.dp-header-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #231F1A; /* warm-gray-950 */
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.15s;
}
.dp-header-label:hover { background-color: #F8F3ED; }
.dp-header-label--static { cursor: default; }
.dp-header-label--static:hover { background-color: transparent; }

/* Weekday headers */
.dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}
.dp-weekdays span {
  font-size: 12px;
  font-weight: 600;
  color: #8B8680; /* warm-gray-800 */
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Shared cell base */
.dp-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: #231F1A; /* warm-gray-950 */
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

/* Day cells — circular, 7-col grid */
.dp-grid--days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.dp-grid--days .dp-cell {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 50%;
}
.dp-grid--days .dp-cell:hover:not(.dp-cell--selected):not(.dp-cell--disabled):not(.dp-cell--outside) {
  background-color: #F8F3ED; /* warm-gray-100 */
}

/* Month cells — rounded rect, 4-col grid */
.dp-grid--months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 8px;
}
.dp-grid--months .dp-cell {
  height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.dp-grid--months .dp-cell:hover:not(.dp-cell--selected):not(.dp-cell--disabled) {
  background-color: #F8F3ED;
}

/* Year cells — rounded rect, 2-col (5 rows) grid */
.dp-grid--years {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 8px;
}
.dp-grid--years .dp-cell {
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}
.dp-grid--years .dp-cell:hover:not(.dp-cell--selected):not(.dp-cell--disabled) {
  background-color: #F8F3ED;
}

/* Cell states */
.dp-cell--outside {
  color: #C7C2BB; /* warm-gray-600 */
  cursor: default;
}
.dp-cell--today {
  border: 1.5px solid #44B59F; /* mint-700 */
  font-weight: 600;
}
.dp-cell--selected {
  background-color: #44B59F; /* mint-700 */
  color: #fff;
  font-weight: 600;
}
.dp-cell--selected:hover {
  background-color: #007261; /* mint-800 */
}
.dp-cell--disabled {
  color: #D7D2CB; /* warm-gray-500 */
  cursor: default;
}

/* Footer with "Today" button */
.dp-footer {
  display: flex;
  justify-content: center;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #EFEAE3; /* warm-gray-200 */
}
.dp-today-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #44B59F; /* mint-700 */
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 8px;
  transition: background-color 0.15s;
}
.dp-today-btn:hover {
  background-color: #EEF7F4; /* mint-100 */
}
