.wsp-wrap {
  max-width: 1200px;
  margin: 20px auto;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.wsp-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid #e6edf7;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(12, 37, 80, 0.09);
  overflow: hidden;
}

.wsp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: #f3f8ff;
  border-bottom: 1px solid #e3ebf6;
}

.wsp-header-left,
.wsp-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wsp-header-center {
  font-size: 24px;
  font-weight: 700;
  color: #1a2e4f;
}

.wsp-weekdays,
.wsp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.wsp-weekdays > div {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #4a607f;
  font-weight: 600;
  border-bottom: 1px solid #ebf0f8;
  background: #ffffff;
}

.wsp-day {
  min-height: 145px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wsp-day:hover {
  background: #f9fcff;
}

.wsp-day.is-outside {
  background: #f9fbfd;
  cursor: default;
}

.wsp-day.is-today .wsp-day-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2f80ed;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.wsp-day-number {
  font-weight: 600;
  color: #25374f;
  margin-bottom: 6px;
}

.wsp-day-events {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wsp-event-pill,
.wsp-more-btn {
  border: none;
  border-radius: 999px;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  padding: 4px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #d9ecff;
  color: #17539b;
  cursor: pointer;
}

.wsp-event-pill.is-holiday {
  background: #e8f9ef;
  color: #107f46;
}

.wsp-more-btn {
  background: #f0f3f8;
  color: #4e5f78;
}

.wsp-btn {
  border: none;
  border-radius: 12px;
  padding: 8px 13px;
  font-size: 14px;
  cursor: pointer;
}

.wsp-btn-primary {
  background: linear-gradient(135deg, #2f80ed, #2266d5);
  color: #fff;
}

.wsp-btn-light {
  background: #edf3fb;
  color: #2b4366;
}

.wsp-icon-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #eaf1fb;
  color: #334c72;
  font-size: 18px;
  cursor: pointer;
}

.wsp-badge {
  background: #eaf3ff;
  color: #2f5f9d;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
}

.wsp-modal-body.wsp-view-only {
  grid-template-columns: 1fr;
}

.wsp-time-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wsp-time-range input[type="time"] {
  flex: 1 1 0;
  min-width: 0;
}

.wsp-time-sep {
  flex: 0 0 auto;
  color: #6b7a90;
  font-weight: 700;
}

.wsp-modal-overlay[hidden] {
  display: none;
}

.wsp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 44, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 20px;
}

.wsp-modal {
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(8, 21, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.wsp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e9edf5;
}

.wsp-modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #203350;
}

.wsp-modal-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 18px;
  overflow: auto;
}

.wsp-event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wsp-add-btn {
  align-self: flex-start;
}

.wsp-event-card {
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.wsp-event-card.is-holiday {
  border-color: #d7f0df;
  background: #f4fff8;
}

.wsp-event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wsp-event-head h4 {
  margin: 0;
  font-size: 16px;
}

.wsp-event-meta {
  margin-top: 4px;
  color: #5b6d85;
  font-size: 13px;
}

.wsp-event-content {
  margin: 10px 0 0;
  font-size: 14px;
  color: #253246;
  white-space: pre-wrap;
}

.wsp-event-tools {
  display: flex;
  gap: 6px;
}

.wsp-mini-btn {
  border: 1px solid #d4ddea;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.wsp-mini-btn.danger {
  border-color: #ffd1d1;
  color: #c83434;
}

.wsp-form {
  border: 1px solid #e5ebf5;
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.wsp-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.wsp-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: #2f425d;
}

.wsp-form-row input[type="text"],
.wsp-form-row input[type="time"],
.wsp-form-row textarea {
  border: 1px solid #d7e0ee;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 14px;
  background: #fff;
}

.wsp-checkbox-row {
  margin-top: 6px;
}

.wsp-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.wsp-no-scroll {
  overflow: hidden;
}

@media (max-width: 900px) {
  .wsp-modal-body {
    grid-template-columns: 1fr;
  }

  .wsp-header {
    flex-wrap: wrap;
  }

  .wsp-header-center {
    width: 100%;
  }
}

