.heroRight_selectedDayScroll {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;

  padding: 22px 14px 40px 22px;
  box-sizing: border-box;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 18px,
    black calc(100% - 18px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    black 18px,
    black calc(100% - 18px),
    transparent 100%
  );
}

.heroRight_selectedDayScroll::-webkit-scrollbar {
  width: 8px;
}

.heroRight_selectedDayScroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.heroRight_selectedDayScroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
}

.heroRight_selectedDayScroll::-webkit-scrollbar-track {
  background: transparent;
}

.heroRight_selectedDay_Header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.heroRight_selectedDay_Status {
  background: rgba(35, 255, 207, 0.15);
  color: #23ffcf;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.heroRight_selectedDay_Header_backBtn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.heroRight_selectedDay_Header_backBtn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.heroRight_selectedDay_Header2 {
  padding: 2px 2px 4px;
}

.selectedDateTitle {
  font-size: 32px;
  margin: 0 0 4px 0;
  color: white;
}

.heroRight_selectedDay_Header2 p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
}

/* =========================
   Summary boxes
========================= */
.planStatus3boxesFrame {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.planStatus3boxes {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.planStatus3boxes h3 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin: 0 0 8px 0;
}

.planStatus3boxes p {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: white;
}

.planStatus3boxes.completed {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.2);
}

.planStatus3boxes.progress {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.planStatus3boxes.pending {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.2);
}

/* =========================
   Scroll body sections
========================= */
.selectedDaySection {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.selectedDaySectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.selectedDaySectionHeader h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* =========================
   Personal schedule cards
========================= */
.selectedDayScheduleCard {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selectedDayScheduleTop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.selectedDayScheduleTop h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.selectedDayScheduleDetail {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  word-break: break-word;
}

.selectedDayScheduleMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.selectedDayScheduleActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* status badge */
.selectedDayStatusBadge {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.selectedDayStatusBadge.planned {
  background: rgba(255, 193, 7, 0.14);
  color: #ffe082;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.selectedDayStatusBadge.in-progress {
  background: rgba(59, 130, 246, 0.14);
  color: #a8d0ff;
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.selectedDayStatusBadge.done {
  background: rgba(76, 175, 80, 0.14);
  color: #b7f0bf;
  border: 1px solid rgba(76, 175, 80, 0.22);
}

/* select + delete */
.selectedDayMiniSelect {
  max-width: 150px;
}

.selectedDayDeleteBtn {
  height: 42px;
  padding: 0 14px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 14px;
  background: rgba(255, 90, 90, 0.14);
  color: #ffb9b9;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.selectedDayDeleteBtn:hover {
  background: rgba(255, 90, 90, 0.22);
}

/* =========================
   Project task today
========================= */
.selectedDayProjectTask {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.selectedDayProjectTaskLeft {
  min-width: 0;
}

.selectedDayProjectTaskLeft strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #9fd3ff;
}

.selectedDayProjectTaskLeft p {
  margin: 0;
  font-size: 14px;
  color: #fff;
  line-height: 1.4;
  word-break: break-word;
}

.selectedDayProjectTaskRight {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}

/* =========================
   Empty state
========================= */
.memberEmpty {
  padding: 18px 14px;
  border-radius: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

/* =========================
   Calendar selected style
========================= */
.calCell.isSelected {
  background: rgba(128, 199, 255, 0.18);
  border: 1px solid rgba(128, 199, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* =========================
   Scroll if content is long
========================= */
.heroboxRight {
  min-height: 0;
}

.heroRight_selectedDay::-webkit-scrollbar {
  width: 8px;
}

.heroRight_selectedDay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.heroRight_selectedDay::-webkit-scrollbar-track {
  background: transparent;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1200px) {
  .planStatus3boxesFrame {
    grid-template-columns: 1fr;
  }

  .selectedDayFormGrid {
    grid-template-columns: 1fr;
  }

  .selectedDayCreateBtn,
  .selectedDayTextarea {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .heroRight_selectedDay {
    min-height: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .selectedDateTitle {
    font-size: 24px;
  }

  .selectedDayScheduleTop,
  .selectedDayScheduleActions,
  .selectedDayProjectTask {
    flex-direction: column;
    align-items: stretch;
  }

  .selectedDayMiniSelect,
  .selectedDayDeleteBtn {
    max-width: none;
    width: 100%;
  }
}
/* =========================
   Personal Schedule Composer
========================= */
.dayScheduleComposer {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dayScheduleComposerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dayScheduleComposerHeader h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.dayScheduleComposerHint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
}

.dayScheduleComposerGrid {
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 20px;
}

.dayScheduleComposerField {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dayScheduleComposerFieldFull {
  grid-column: 1 / -1;
}

.dayScheduleComposerLabel {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  display: block;
}

.dayScheduleComposerControl {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
}

.dayScheduleComposerControl:hover {
  background: rgba(255, 255, 255, 0.09);
}

.dayScheduleComposerControl:focus-within {
  border-color: rgba(122, 184, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(122, 184, 255, 0.12);
}

.dayScheduleComposerInput,
.dayScheduleComposerTextarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.dayScheduleComposerInput:focus,
.dayScheduleComposerTextarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #23ffcf;
  box-shadow: 0 0 0 3px rgba(35, 255, 207, 0.15);
}

.dayScheduleComposerInput {
  height: 52px;
  padding: 0 16px;
}

.dayScheduleComposerTextarea {
  min-height: 100px;
  resize: vertical;
}

.dayScheduleComposerInput::placeholder,
.dayScheduleComposerTextarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

/* select */
.dayScheduleComposerNativeSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  cursor: pointer;
}

.dayScheduleComposerNativeSelect option {
  color: #111;
}

/* date/time */
.dayScheduleComposerDate,
.dayScheduleComposerTime {
  padding-right: 48px;
  color-scheme: dark;
}

.dayScheduleComposerDate::-webkit-calendar-picker-indicator,
.dayScheduleComposerTime::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 10px;
  opacity: 0;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* icon */
.dayScheduleComposerControlIcon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
}

/* textarea wrapper */
.dayScheduleComposerControlTextarea {
  align-items: stretch;
  min-height: 110px;
}

.dayScheduleComposerBtn {
  width: 100%;
  background: #23ffcf;
  color: #111;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dayScheduleComposerBtn:hover {
  background: #1de0b5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(35, 255, 207, 0.3);
}

.dayScheduleComposerBtn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .dayScheduleComposerGrid {
    grid-template-columns: 1fr;
  }

  .dayScheduleComposerFieldFull {
    grid-column: auto;
  }

  .dayScheduleComposerHeader {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* personal schedule row layout */
.selectedDayScheduleTop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  gap: 14px;
}

.selectedDayScheduleContent {
  min-width: 0;
}

.selectedDayScheduleTitleRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.selectedDayScheduleTop h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  transition: 0.2s ease;
}

.selectedDayScheduleCard.isDone h4 {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.55);
}

.selectedDayScheduleCard.isDone .selectedDayScheduleDetail {
  color: rgba(255, 255, 255, 0.45);
}

/* circle check button */
.selectedDayCheckBtn {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 2px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.selectedDayCheckBtn:hover {
  transform: scale(1.05);
  border-color: rgba(129, 247, 223, 0.95);
}

.selectedDayCheckInner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  transition: 0.2s ease;
}

.selectedDayCheckBtn.isChecked {
  border-color: rgba(129, 247, 223, 0.95);
  background: rgba(129, 247, 223, 0.12);
  box-shadow: 0 0 0 4px rgba(129, 247, 223, 0.08);
}

.selectedDayCheckBtn.isChecked .selectedDayCheckInner {
  background: linear-gradient(135deg, #81f7df, #74dfff);
}

/* meta label */
.selectedDayScheduleMeta strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

/* done card tone */
.selectedDayScheduleCard.isDone {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(129, 247, 223, 0.15);
}

.calDayNumber {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.calSchedulePreview {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;

  overflow: hidden; /* 넘치면 숨김 */
  flex: 1; /* 남은 공간만 사용 */
}

.calSchedulePreviewItem {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  box-sizing: border-box;
  margin-top: 3px;
}

.calSchedulePreviewItem.isDone {
  text-decoration: line-through;
  opacity: 0.55;
}

.calScheduleMore {
  font-size: 10px;
  line-height: 1.1;
  opacity: 0.7;
  padding-left: 2px;
  flex-shrink: 0;
}

.calCell.isOtherMonth .calSchedulePreviewItem {
  opacity: 0.45;
}
