.undated-task-board {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  text-align: left;
}
.add-undated-task-btn {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px dashed #555;
  border-radius: 999px;
  background: transparent;
  color: #aaa;
  font-size: 1.17rem;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}
.add-undated-task-btn:hover,
.add-undated-task-btn:focus-visible {
  border-color: #888;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}
.undated-task-list {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 7px;
}
.undated-task-tag {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  border-radius: 999px;
  align-items: center;
  background: #e8e8e8;
  color: #222;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 140ms ease,
    filter 140ms ease,
    box-shadow 140ms ease;
}
.undated-task-tag:hover,
.undated-task-tag:focus-within {
  z-index: 1;
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}
.undated-task-tag.color-important {
  background: #c92b2b;
  color: #fff;
}
.undated-task-tag.color-family {
  background: #3264c8;
  color: #fff;
}
.undated-task-tag.color-special {
  background: #24984d;
  color: #fff;
}
.undated-task-tag.color-yellow {
  background: #d5a711;
  color: #28220a;
}
.undated-task-tag.color-transparent {
  color: #f5f5f5;
  background: transparent;
  box-shadow: none;
}
.undated-task-complete,
.undated-task-title {
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.undated-task-complete {
  width: 28px;
  flex: 0 0 28px;
  border-right: 1px solid rgba(0, 0, 0, 0.16);
  font-size: 0.72rem;
}
.undated-task-title {
  min-width: 0;
  max-width: 230px;
  padding: 0 11px 0 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.undated-task-tag.complete {
  background: #666;
  color: #bbb;
  opacity: 0.82;
}
.undated-task-tag.color-transparent.complete {
  background: transparent;
}
.undated-task-tag.complete .undated-task-title {
  text-decoration: line-through;
}
.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-right: -20px;
  margin-left: -20px;
}
.week-timeline {
  position: relative;
  padding: 12px 0;
  transform: translateY(0);
  opacity: 1;
  will-change: transform, opacity;
}
.week-timeline:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.32);
  outline-offset: 2px;
}
.week-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-radius: 14px;
  box-sizing: border-box;
  background: #242424;
  box-shadow:
    0 9px 0 -3px #111,
    0 14px 20px -8px rgba(0, 0, 0, 0.8);
  transform-origin: center;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}
.week-row::after {
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 1px solid transparent;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 0 0 5px #242424;
  content: '';
  pointer-events: none;
}
.week-row.week-distance-0 {
  z-index: 5;
  transform: scale(1);
  opacity: 1;
}
.actual-current-week-frame {
  position: absolute;
  inset: -5px;
  z-index: 31;
  border: 1px solid #fff;
  border-radius: 19px;
  box-sizing: border-box;
  pointer-events: none;
}
.week-row.actual-week-before .actual-current-week-frame {
  border-bottom: 0;
}
.week-row.actual-week-after .actual-current-week-frame {
  border-top: 0;
}
.week-navigation-zone {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 6;
  height: 260px;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  appearance: none;
}
.week-navigation-zone.up {
  bottom: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.16) 36%,
    rgba(0, 0, 0, 0.39) 72%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
.week-navigation-zone.down {
  top: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.39) 28%,
    rgba(0, 0, 0, 0.16) 64%,
    rgba(0, 0, 0, 0) 100%
  );
}
.week-row-header {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  min-height: 58px;
  padding: 0 54px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #454545;
}
.week-row-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.267rem, 2.667vw, 1.533rem);
  font-weight: 200;
  line-height: 1.3;
  text-align: center;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.week-title-number {
  font-size: 1.5em;
  font-weight: 500;
}
.calendar-settings-button {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 8;
  display: inline-flex;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 160ms ease,
    background 160ms ease;
}
.calendar-settings-button:hover,
.calendar-settings-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.calendar-settings-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 1px;
}
.calendar-settings-button svg {
  width: 18px;
  height: 18px;
}
.calendar-settings-modal {
  max-width: 360px;
  text-align: left;
}
.calendar-settings-control {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}
.calendar-settings-control + .calendar-settings-control {
  margin-top: 10px;
}
.calendar-settings-control label,
.calendar-settings-control span {
  color: #ddd;
  font-size: 0.9rem;
  white-space: nowrap;
}
.calendar-settings-select {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #252525;
  color: #fff;
  font: inherit;
}
.calendar-settings-select:focus {
  border-color: #777;
  outline: none;
}
.calendar-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.calendar-settings-actions button {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #3a3a3a;
  color: #fff;
  cursor: pointer;
}
.calendar-settings-actions button:first-child {
  background: #555;
}
.calendar-settings-actions button:hover {
  background: #666;
}
.month-calendar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}
.month-calendar-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 54px;
  border-radius: 14px 14px 0 0;
  background: #242424;
  box-shadow:
    0 9px 0 -3px #111,
    0 14px 20px -8px rgba(0, 0, 0, 0.8);
}
.month-calendar-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.267rem, 2.667vw, 1.533rem);
  font-weight: 200;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.month-navigation-zone {
  position: relative;
  display: block;
  width: 100%;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  appearance: none;
}
.month-navigation-zone.up {
  margin-bottom: -8px;
}
.month-navigation-zone.down {
  margin-top: -2px;
}
.month-navigation-zone .timeline-direction-cue {
  top: 50%;
  transform: translate(-50%, -50%);
}
.month-navigation-zone.down .timeline-direction-cue svg {
  transform: rotate(180deg);
}
.month-navigation-zone.up:hover .timeline-direction-cue {
  transform: translate(-50%, calc(-50% - 8px));
}
.month-navigation-zone.down:hover .timeline-direction-cue {
  transform: translate(-50%, calc(-50% + 8px));
}
.month-navigation-zone:focus-visible {
  border-radius: 10px;
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
}
.month-calendar-weekdays,
.month-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-calendar-weekdays {
  margin-top: -8px;
  border-top: 1px solid #454545;
  border-radius: 0 0 14px 14px;
  background: #242424;
  box-shadow: 0 10px 16px -10px rgba(0, 0, 0, 0.85);
}
.month-calendar-weekdays span {
  padding: 9px 4px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}
.month-calendar-weekdays .sunday {
  color: #d3aaaa;
}
.month-calendar-weekdays .saturday {
  color: #a9bdd8;
}
.month-calendar-days {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.month-calendar-week {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #242424;
  box-shadow:
    0 9px 0 -3px #111,
    0 14px 20px -8px rgba(0, 0, 0, 0.8);
}
.month-calendar-week:has(.today) {
  outline: 1px solid #777;
  outline-offset: -1px;
}
.month-calendar-day {
  min-width: 0;
  min-height: 148px;
  padding: 6px 10px;
  gap: 8px;
  overflow: hidden;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid #3b3b3b;
  border-radius: 0;
}
.month-calendar-day.outside-month {
  opacity: 0.32;
  background: #202020;
}
.month-calendar-day .day-top {
  min-height: 34px;
  margin-top: 10px;
  padding-bottom: 5px;
}
.month-calendar-day .day-weekday {
  display: none;
}
.month-calendar-day .day-number {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.72rem;
}
.month-calendar-day .day-holiday-name {
  position: absolute;
  top: 0;
  right: 0;
  max-width: calc(100% - 22px);
  font-size: 0.55rem;
}
.month-calendar-day .day-divider {
  margin: 0 0 2px;
}
.month-calendar-day .task-item,
.month-calendar-day .task-lane-placeholder {
  height: 20px;
  min-height: 20px;
  margin-top: 0;
  font-size: 0.7rem;
}
.week-row.week-distance-1 {
  z-index: 3;
  transform: scale(0.94);
  opacity: 0.65;
}
.week-row.week-distance-2 {
  z-index: 1;
  transform: scale(0.88);
  opacity: 0.35;
}
.week-row[data-week-offset='-2'] {
  margin-bottom: -18px;
}
.week-row[data-week-offset='-2']::before,
.week-row[data-week-offset='2']::before {
  position: absolute;
  inset: 0;
  z-index: 20;
  content: '';
  pointer-events: none;
}
.week-row[data-week-offset='-2']::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 78%);
}
.week-row[data-week-offset='-1'] {
  margin-bottom: -14px;
}
.week-row[data-week-offset='1'] {
  margin-top: -14px;
}
.week-row[data-week-offset='2'] {
  margin-top: -18px;
}
.week-row[data-week-offset='2']::before {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.55));
}
.week-navigation-zone:hover {
  filter: brightness(1.12);
}
.week-navigation-zone:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
}
.timeline-direction-cue {
  position: absolute;
  left: 50%;
  width: min(220px, 34%);
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.65));
  transition: transform 180ms ease;
}
.week-navigation-zone.up .timeline-direction-cue {
  bottom: 32px;
  transform: translateX(-50%);
}
.week-navigation-zone.down .timeline-direction-cue {
  top: 32px;
  transform: translateX(-50%);
}
.week-navigation-zone.down .timeline-direction-cue svg {
  transform: rotate(180deg);
}
.week-navigation-zone.up:hover .timeline-direction-cue {
  transform: translateX(-50%) translateY(-10px);
}
.week-navigation-zone.down:hover .timeline-direction-cue {
  transform: translateX(-50%) translateY(10px);
}
.timeline-direction-cue svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.timeline-direction-cue path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.calendar-day {
  position: relative;
  overflow: visible;
  word-wrap: break-word;
  min-height: 136px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  border-left: 1px solid #3b3b3b;
  border-radius: 0;
  background: transparent;
  text-align: left;
  box-sizing: border-box;
  cursor: pointer;
}
.week-row:not([aria-current='true']) .calendar-day,
.week-row:not([aria-current='true']) .task-item {
  cursor: default;
}
.calendar-day:first-child,
.calendar-day.week-edge-start {
  border-left: 0;
}
.week-row[aria-current='true'] .calendar-day.week-edge-start {
  border-radius: 0 0 0 14px;
}
.week-row[aria-current='true'] .calendar-day.week-edge-end {
  border-radius: 0 0 14px;
}
.week-row:not([aria-current='true']) .calendar-day.week-edge-start {
  border-radius: 14px 0 0 14px;
}
.week-row:not([aria-current='true']) .calendar-day.week-edge-end {
  border-radius: 0 14px 14px 0;
}
.calendar-day:hover {
  background: rgba(255, 255, 255, 0.035);
}
.calendar-day.weekend-saturday {
  background: rgba(72, 116, 170, 0.1);
}
.calendar-day.weekend-sunday,
.calendar-day.holiday {
  background: rgba(170, 72, 72, 0.1);
}
.calendar-day.weekend-saturday .day-weekday {
  color: #a9bdd8;
}
.calendar-day.weekend-saturday .day-number {
  color: #788ba5;
}
.calendar-day.weekend-sunday .day-weekday,
.calendar-day.holiday .day-weekday,
.calendar-day.holiday .day-holiday-name {
  color: #d3aaaa;
}
.calendar-day.weekend-sunday .day-number,
.calendar-day.holiday .day-number {
  color: #a07979;
}
.calendar-day.today {
  background: #383838;
}
.week-row.week-distance-0 .calendar-day {
  min-height: 230px;
}
.day-top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  padding-bottom: 5px;
}
.day-weekday {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}
.day-number {
  position: absolute;
  top: 0;
  left: 0;
  color: #858585;
  font-size: 0.72rem;
  font-weight: 400;
  z-index: 10;
  line-height: 1;
  cursor: pointer;
}
.day-holiday-name {
  display: block;
  max-width: calc(100% - 8px);
  margin-top: 3px;
  overflow: hidden;
  color: #d3aaaa;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.day-divider {
  height: 1px;
  background: #363636;
  margin: 0 0 2px;
  opacity: 0.7;
}
.task-item {
  display: flex;
  height: 22px;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 0 6px;
  border-radius: 999px;
  margin-top: 4px;
  align-items: center;
  justify-content: center;
  word-wrap: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}
.task-lane-placeholder {
  height: 22px;
  margin-top: 4px;
  pointer-events: none;
}
.task-hover-tooltip {
  position: fixed;
  z-index: 1200;
  width: max-content;
  min-width: 130px;
  max-width: min(300px, calc(100vw - 16px));
  padding: 9px 11px;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  background: rgba(34, 34, 34, 0.97);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 80ms ease;
}
.task-hover-tooltip.visible {
  opacity: 1;
  visibility: visible;
}
.task-hover-tooltip-title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.task-hover-tooltip-description {
  margin-top: 5px;
  color: #bdbdbd;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-item.custom-task {
  border: 0;
  background: #e8e8e8;
  color: #222;
}
.task-item.custom-task.custom-important {
  background: #c92b2b;
  color: #fff;
}
.task-item.custom-task.custom-family {
  background: #3264c8;
  color: #fff;
}
.task-item.custom-task.custom-special {
  background: #24984d;
  color: #fff;
}
.task-item.custom-task.custom-yellow {
  background: #d5a711;
  color: #28220a;
}
.task-item.custom-task.custom-transparent {
  color: #f5f5f5;
  background: transparent;
  box-shadow: none;
}
.task-item.custom-task.range-start {
  margin-right: -10px;
  border-radius: 999px 0 0 999px;
}
.task-item.custom-task.range-middle {
  margin-right: -10px;
  margin-left: -10px;
  border-radius: 0;
}
.task-item.custom-task.range-end {
  margin-left: -10px;
  border-radius: 0 999px 999px 0;
}
/* 완료(complete) 공통 */
.task-item.complete {
  background: #888;
  text-decoration: line-through;
  color: #ccc;
}
/* 커스텀(개인작업) 완료 시: 카테고리 색상보다 우선해서 회색 처리 */
.task-item.custom-task.complete {
  background: #666 !important;
  color: #bdbdbd !important;
  text-decoration: line-through;
  opacity: 0.95;
}
.task-item.custom-task.custom-transparent.complete {
  background: transparent !important;
}
.add-task-btn {
  background: #666;
  transition: 0.2s;
}
.add-task-btn:hover {
  background: #777;
  transform: scale(1.02);
}
.task-modal-content {
  max-width: 430px;
  border: 1px solid #3d3d3d;
  background: #202020;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}
.task-modal-title {
  margin: 0 0 12px;
  color: #f1f1f1;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}
.task-modal-input {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 11px 12px;
  border: 1px solid #454545;
  border-radius: 8px;
  box-sizing: border-box;
  background: #292929;
  color: #f1f1f1;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  outline: none;
}
.task-modal-input::placeholder {
  color: #888;
  opacity: 1;
}
.task-modal-input:focus {
  border-color: #737373;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.task-modal-description {
  min-height: 96px;
  resize: vertical;
}
.task-date-picker {
  position: relative;
}
.task-date-display {
  text-align: left;
  cursor: pointer;
}
.task-mini-calendar {
  position: absolute;
  top: calc(100% - 6px);
  right: 0;
  left: 0;
  z-index: 20;
  padding: 12px;
  border: 1px solid #484848;
  border-radius: 10px;
  background: #242424;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}
.task-mini-calendar-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 10px;
  text-align: center;
}
.task-mini-calendar-header button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #ddd;
  cursor: pointer;
}
.task-mini-calendar-header button:hover {
  background: #383838;
}
.task-mini-calendar-header strong {
  font-size: 0.9rem;
  font-weight: 500;
}
.task-mini-calendar-weekdays,
.task-mini-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.task-mini-calendar-weekdays span {
  padding: 4px 0 7px;
  color: #858585;
  font-size: 0.7rem;
  text-align: center;
}
.task-mini-calendar-days button {
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ddd;
  font-size: 0.78rem;
  cursor: pointer;
}
.task-mini-calendar-days button:hover {
  background: #3a3a3a;
}
.task-mini-calendar-days button.outside-month {
  color: #555;
}
.task-mini-calendar-days button.today {
  box-shadow: inset 0 0 0 1px #777;
}
.task-mini-calendar-days button.in-range {
  background: #3d3d3d;
}
.task-mini-calendar-days button.range-start,
.task-mini-calendar-days button.range-end {
  background: #ededed;
  color: #222;
  font-weight: 600;
}
.task-mini-calendar-days button.range-start {
  border-radius: 999px 0 0 999px;
}
.task-mini-calendar-days button.range-end {
  border-radius: 0 999px 999px 0;
}
.task-mini-calendar-days button.range-start.range-end {
  border-radius: 999px;
}
.task-date-picker > .task-modal-input {
  margin-bottom: 0;
}
.task-color-picker {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 12px 0;
  padding: 0;
  border: 0;
}
.task-color-option {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.task-color-option input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.task-color-option span {
  display: block;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
  background: #f5f5f5;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}
.task-color-option.red span {
  background: #dc2626;
}
.task-color-option.blue span {
  background: #2563eb;
}
.task-color-option.green span {
  background: #16a34a;
}
.task-color-option.yellow span {
  background: #eab308;
}
.task-color-option.transparent span {
  background: conic-gradient(#eee 25%, #929292 0 50%, #eee 0 75%, #929292 0) 0 0 / 8px 8px;
}
.task-custom-color-input {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.task-color-option.custom {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.task-color-option.custom::after {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 50%;
  box-sizing: border-box;
  background: linear-gradient(
    135deg,
    #f44336,
    #ff9800,
    #ffeb3b,
    #4caf50,
    #2196f3,
    #3f51b5,
    #9c27b0
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  content: '';
  pointer-events: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease;
}
.task-color-option.custom.has-selected-color::after {
  background: var(--task-custom-color);
}
.task-color-option input[type='radio']:checked + span,
.task-color-option.custom:has(input[type='radio']:checked)::after {
  transform: scale(1.16);
  box-shadow:
    0 0 0 2px #202020,
    0 0 0 4px #aaa;
}
.task-color-option input[type='radio']:focus-visible + span,
.task-color-option.custom:has(input[type='radio']:focus-visible)::after {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.task-repeat-settings {
  margin-bottom: 16px;
  padding-top: 2px;
}
.task-dday-setting {
  margin: 0 0 16px;
  padding-top: 2px;
  text-align: left;
}
.task-option-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d0d0d0;
  font-size: 0.82rem;
  cursor: pointer;
}
.task-option-toggle input {
  accent-color: #888;
}
.task-repeat-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #414141;
  border-radius: 9px;
  background: #252525;
}
.task-repeat-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.task-repeat-weekdays label {
  position: relative;
  cursor: pointer;
}
.task-repeat-weekdays input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.task-repeat-weekdays span {
  display: flex;
  height: 30px;
  border: 1px solid #484848;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
}
.task-repeat-weekdays input:checked + span {
  border-color: #aaa;
  background: #555;
  color: #fff;
}
.task-repeat-weekdays input:focus-visible + span {
  outline: 2px solid #aaa;
  outline-offset: 2px;
}
.task-count-toggle {
  margin-top: 0;
}
.task-count-panel {
  display: grid;
  grid-template-columns: auto minmax(105px, 1.4fr) minmax(58px, 0.6fr);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.task-count-panel label {
  color: #aaa;
  font-size: 0.76rem;
}
.task-count-panel input {
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #484848;
  border-radius: 7px;
  background: #2d2d2d;
  color: #fff;
  font: inherit;
  outline: none;
}
.task-count-panel input:focus {
  border-color: #888;
}
.task-count-panel input::placeholder {
  color: #777;
  opacity: 1;
}
.task-count-panel.count-disabled input {
  border-color: #3d3d3d;
  background: #282828;
  color: #666;
  cursor: not-allowed;
  opacity: 0.62;
}
.task-repeat-panel.hidden,
.task-count-panel.hidden,
.task-repeat-settings.hidden,
.task-date-picker.hidden {
  display: none;
}
.task-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.task-modal-actions button {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #3b3b3b;
  color: #fff;
  cursor: pointer;
}
.task-modal-actions button:hover {
  background: #505050;
}
.task-modal-actions #deleteTaskBtn {
  margin-left: auto;
  color: #d0a0a0;
}
/* 달력 아래 일정 & 할 일 리스트 */
.agenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2a2a2a;
  border-radius: 10px;
  padding: 10px 10px;
}
.agenda-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}
.agenda-date {
  font-size: 0.8rem;
  color: #bbb;
  min-width: 92px;
}
.agenda-text {
  flex: 1 1 auto;
  word-break: break-word;
}
.agenda-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.agenda-btn {
  background: #3a3a3a;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 0.8rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.agenda-btn:hover {
  background: #4a4a4a;
}
.agenda-section-title {
  margin-top: 10px;
  margin-bottom: 6px;
  color: #ddd;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.95;
}
.agenda-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  background: #3a3a3a;
  border-radius: 10px;
  color: #fff;
  border: none;
  cursor: pointer;
  user-select: none;
}
.agenda-settings-btn:hover {
  background: #4a4a4a;
}

/* 완료된 할일(리스트): 원래처럼 '회색 + 취소선'이 확실히 보이도록 강제 */
.agenda-item.complete {
  opacity: 0.9;
  background: #242424;
}
.agenda-item.complete .agenda-text {
  color: #7a7a7a !important;
  text-decoration: line-through;
}
.agenda-item.complete .agenda-date {
  color: #6b7280 !important;
}
@media (max-width: 768px) {
  .calendar-day {
    min-height: 120px;
    padding: 0.2rem;
    gap: 1px;
  }
  .week-timeline {
    padding: 8px 0;
  }
  .week-row.week-distance-0 {
    padding: 0;
  }
  .week-row.week-distance-0 .calendar-day {
    min-height: 190px;
  }
  .week-row-title {
    font-size: 1.04rem;
  }
  .week-row-header {
    min-height: 48px;
    padding: 0 42px;
  }
  .calendar-settings-button {
    right: 6px;
    width: 30px;
    height: 30px;
  }
  .timeline-direction-cue {
    width: min(132px, 34%);
  }
  .timeline-direction-cue path {
    stroke-width: 2.67;
  }
  .week-navigation-zone.up .timeline-direction-cue {
    bottom: 24px;
  }
  .week-navigation-zone.down .timeline-direction-cue {
    top: 24px;
  }
  .day-number {
    font-size: 0.62rem;
  }
  .day-top {
    min-height: 30px;
    padding-bottom: 4px;
  }
  .day-weekday {
    font-size: 0.92rem;
  }
  .task-item {
    font-size: 0.7rem;
    height: 20px;
    padding: 0 3px;
    margin-top: 0;
  }
  .task-lane-placeholder {
    height: 20px;
    margin-top: 0;
  }
  .calendar-grid {
    gap: 0;
    margin-right: -12px;
    margin-left: -12px;
  }
  .add-task-btn {
    width: 100%;
    font-size: 0.9rem;
  }
}
@media (max-width: 560px) {
  .week-row-title {
    font-size: 0.82rem;
    letter-spacing: 0.01em;
  }
  .week-title-number {
    font-size: 1.35em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .week-timeline,
  .week-row {
    transition: none;
  }
}
.calendar-grid {
  grid-gap: 4px;
}
@media (max-width: 768px) {
  .calendar-grid {
    grid-gap: 0;
  }
  .month-calendar-day {
    min-height: 118px;
    padding: 4px;
    gap: 2px;
  }
  .month-calendar-header {
    min-height: 52px;
  }
  .month-calendar-header h2 {
    font-size: 1rem;
  }
  .month-calendar-header {
    padding: 0 42px;
  }
  .month-navigation-zone {
    height: 52px;
  }
  .month-calendar-weekdays span {
    padding: 6px 2px;
    font-size: 0.68rem;
  }
  .month-calendar-day .task-item,
  .month-calendar-day .task-lane-placeholder {
    height: 18px;
    min-height: 18px;
    font-size: 0.6rem;
  }
}
