.mahasi-calendar {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.mahasi-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mahasi-cal-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.mahasi-cal-btn {
  border: 1px solid #111827;
  background: #ffffff;
  color: #111827;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.mahasi-cal-weekday {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  text-align: center;
}

.mahasi-cal-year {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
}

.mahasi-cal-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mahasi-cal-month {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0.75rem;
  background: #f9fafb;
}

.mahasi-cal-month-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.mahasi-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.mahasi-cal-day {
  min-height: 58px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.35rem;
  display: grid;
  gap: 0.35rem;
  cursor: pointer;
  background: #ffffff;
}

.mahasi-cal-day.is-empty {
  background: transparent;
  border: none;
  cursor: default;
}

.mahasi-cal-date {
  font-weight: 600;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.mahasi-cal-date.is-holiday {
  border: 2px solid #ef4444;
  color: #ef4444;
}

.mahasi-cal-date.is-event {
  border: 2px solid #0da4f0;
  color: #0da4f0;
}

.mahasi-cal-panel {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.mahasi-cal-panel-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mahasi-cal-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.mahasi-cal-panel-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}

.mahasi-cal-panel-meta {
  font-size: 0.8rem;
  color: #6b7280;
}

.mahasi-cal-month-list {
  margin-top: 0.75rem;
  border-top: 1px dashed #e5e7eb;
  padding-top: 0.75rem;
}

.mahasi-cal-month-list-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.mahasi-cal-month-list-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.mahasi-cal-list-date {
  font-weight: 600;
  color: #111827;
}

.mahasi-cal-list-title {
  color: #111827;
}

.mahasi-cal-list-type {
  color: #6b7280;
  font-size: 0.8rem;
}

.mahasi-cal-list-empty {
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .mahasi-cal-months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mahasi-cal-day {
    min-height: 60px;
  }

  .mahasi-cal-month-list-item {
    grid-template-columns: 80px 1fr;
  }

  .mahasi-cal-list-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .mahasi-cal-months {
    grid-template-columns: 1fr;
  }
}
