/* The month stays one fixed paper. Its handle divides calendar and day detail. */
html body.view-month {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior-y: none;
}

html body.view-month #calView {
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: contain;
}

html body.view-month #calView > .wk-page.mo-page,
html body.view-month .curl-ghost.wk-page.mo-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: var(--mo-page-height, calc(100dvh - 170px));
  min-height: 0;
  max-height: var(--mo-page-height, calc(100dvh - 170px));
  margin-top: 0;
  padding: 18px 22px 12px;
  overflow: hidden;
  border-radius: 11px;
  contain: layout;
}

/* The outgoing monthly paper is cloned outside #calView during a page turn. */
html body.app-frame.view-month .curl-ghost.mo-page > .pg-head { display: none; }

html body.view-month .mo-page > .pg-head {
  flex: 0 0 auto;
  min-width: 0;
  padding: 5px 2px 12px;
}

html body.view-month .mo-page .pg-title {
  min-width: 0;
  gap: 5px;
}

html body.view-month .mo-page .pg-y {
  font: 600 11px/1.4 Pretendard, sans-serif;
  letter-spacing: .06em;
}

html body.view-month .mo-page .pg-range {
  font-family: var(--title);
  font-size: 36px;
  line-height: 1.08;
  font-weight: 400;
}

html body.view-month .mo-page > .mo-h {
  flex: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  box-sizing: border-box;
  padding: 0 0 5px;
  font: 400 12px/1.4 var(--hand, Pretendard, sans-serif);
}

html body.view-month .mo-page > .mo {
  --mo-gap: 4px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(var(--mo-rows, 6), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 0;
  height: var(--mo-calendar-height, 360px);
  gap: var(--mo-gap);
  overflow: hidden;
  transition: height var(--mo-panel-duration, 240ms) cubic-bezier(.2, .7, .25, 1);
}

html body.view-month .mo-page.has-sel .mo-d,
html body.view-month .mo-page.has-sel .mo-d.hid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 3px 4px;
  gap: 2px;
  overflow: hidden;
  border: 1px solid transparent !important;
  background: transparent !important;
  position: relative;
  z-index: 2;
  border-radius: 7px;
  text-align: left;
}

html body.view-month .mo-page .mo-d.other { opacity: .42; }
html body.view-month .mo-page .mo-d.other.oob { opacity: .32; }

/* 10/15 고른 날: 칸 전체 네모(아래로 삐져나옴) 대신 날짜 숫자에 얇은 링 (사용자 "좋다 링도") */
html body.view-month .mo-page .mo-d.sel {
  border: 1px solid transparent !important;
  padding: 3px 4px;
  border-radius: 8px;
  box-shadow: none;
}

html body.view-month .mo-page .mo-d.sel .mo-n {
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 75%, transparent);
}

html body.view-month .mo-page .mo-n {
  align-self: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  font-family: var(--hand, Pretendard, sans-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

html body.view-month .mo-page .mo-d.today .mo-n {
  background: color-mix(in srgb, var(--hl, #f4b9be) 68%, transparent);
  color: var(--text);
}
/* 10/20 다크: 밝은 분홍 동그라미에 밝은 글씨라 흐렸다 → 위 날짜 줄 오늘처럼 어둡게 섞기 */
:root[data-theme="dark"] body.view-month .mo-page .mo-d.today .mo-n {
  background: color-mix(in srgb, var(--hl, #f4b9be) 34%, transparent);
}

html body.view-month .mo-page .mo-chips {
  display: none;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  gap: 2px;
  overflow: hidden;
}

html body.view-month .mo-page .mo-chip {
  display: block;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 15px;
  padding: 1px 4px;
  font: 400 11px/1.3 Pretendard, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 3px;
}

html body.view-month .mo-page .mo-chips > .mo-chip:nth-of-type(n + 3) {
  display: none;
}

html body.view-month .mo-page .mo-more {
  flex: 0 0 auto;
  font: 400 10px/1.3 Pretendard, sans-serif;
  color: var(--sub);
}

html body.view-month .mo-page .mo-min {
  display: none;
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1.2;
}

html body.view-month .mo-page .mo-bar {
  display: none;
  flex: 0 0 2px;
  height: 2px;
  margin-top: auto;
}

html body.view-month .mo-page .mo-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 5px;
  min-height: 5px;
  gap: 3px;
  margin: 0;
}

html body.view-month .mo-page .mo-dots i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
}

html body.view-month .mo-page[data-mo-panel="compact"] .mo-chips,
html body.view-month .mo-page[data-mo-panel="compact"] .mo-min,
html body.view-month .mo-page[data-mo-panel="compact"] .mo-bar,
html body.view-month .mo-page[data-mo-dense] .mo-chips,
html body.view-month .mo-page[data-mo-dense] .mo-min,
html body.view-month .mo-page[data-mo-dense] .mo-bar {
  display: none;
}

html body.view-month .mo-page[data-mo-panel="compact"] .mo-dots,
html body.view-month .mo-page[data-mo-dense] .mo-dots {
  display: flex;
}

html body.view-month .mo-page[data-mo-panel="compact"] .mo-d,
html body.view-month .mo-page[data-mo-dense] .mo-d {
  padding: 2px;
  gap: 1px;
}

html body.view-month .mo-page[data-mo-panel="compact"] .mo-d.sel,
html body.view-month .mo-page[data-mo-dense] .mo-d.sel {
  padding: 2px;
}

html body.view-month .mo-page[data-mo-panel="compact"] .mo-n,
html body.view-month .mo-page[data-mo-dense] .mo-n {
  flex-basis: 22px;
  width: 22px;
  height: 22px;
}

html body.view-month .mo-page .mo-stk {
  width: 25%;
  max-width: 24px;
  right: 2px;
  bottom: 2px;
}

html body.view-month .mo-page[data-mo-panel="compact"] .mo-stk {
  width: 17px;
  max-height: 17px;
  overflow: hidden;
}

html body.view-month .mo-page > .mo-sheet {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  margin-top: 2px;
  overflow: hidden;
  border-top: 1px solid var(--line2);
}

html body.view-month .mo-page .mo-grab {
  flex: 0 0 24px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--sub);
  border: 0;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

html body.view-month .mo-page .mo-grab i {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  transition: background-color 160ms ease;
}

html body.view-month .mo-page .mo-grab:hover i,
html body.view-month .mo-page.is-dragging .mo-grab i {
  background: var(--sub);
}

html body.view-month .mo-page .mo-grab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 6px;
}

html body.view-month .mo-page .ms-head {
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: nowrap;
  box-sizing: border-box;
  min-width: 0;
  min-height: 38px;
  padding: 0 4px 4px;
  gap: 7px;
}

html body.view-month .mo-page .ms-date {
  min-width: 0;
  margin-right: auto;
  font: 400 20px/1.3 var(--hand, Pretendard, sans-serif);
  white-space: nowrap;
}

html body.view-month .mo-page .ms-btn {
  flex: 0 0 auto;
  font: 400 12px/1.3 Pretendard, sans-serif;
  white-space: nowrap;
}

html body.view-month .mo-page .ms-item-name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  overflow-wrap: anywhere;
}

html body.view-month .mo-page .ms-item-name .ms-t {
  font: 400 11px/1.4 Pretendard, sans-serif;
  color: var(--sub);
}

html body.view-month .mo-page .ms-body {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 2px 12px;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

/* Planned project contours sit below dates and marks, outside the clipped cells.
   Each identity keeps its own contour; the timetable renderer joins week edges. */
html body.view-month .mo-page .mo-project-layer,
html body.view-month .mo-page .mo-project-shape {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}
html body.view-month .mo-page .mo-project-layer { z-index: 0; }
html body.view-month .mo-page .mo-project-shape .ln-row {
  position: absolute;
  top: calc(var(--mo-run-row) * (100% + var(--mo-gap)) / var(--mo-rows));
  left: 0;
  width: 100%;
  height: calc((100% - (var(--mo-rows) - 1) * var(--mo-gap)) / var(--mo-rows));
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: none !important;
}
html body.view-month .mo-page .mo-project-shape .ln-row .bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: calc(var(--mo-run-column) * (100% + var(--mo-gap)) / 7 + 1px);
  width: calc(var(--mo-run-span) * (100% + var(--mo-gap)) / 7 - var(--mo-gap) - 2px);
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
html body.view-month .mo-page .mo-n,
html body.view-month .mo-page .mo-dots,
html body.view-month .mo-page .mo-chips,
html body.view-month .mo-page .mo-min,
html body.view-month .mo-page .mo-bar {
  position: relative;
  z-index: 2;
}

/* Long projects or the dots preference use small marks; draft paint is separate. */
html body.view-month .mo-page .mo-d {
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

html body.view-month .mo-page .mo-project-mark {
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 7px;
  min-height: 7px;
  pointer-events: none;
  line-height: 1;
}

html body.view-month .mo-page .mo-project-dot-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
html body.view-month .mo-page .mo-project-dot {
  display: block;
  box-sizing: border-box;
  width: 4px;
  height: 4px;
  border: 1px solid var(--mo-project-ink, var(--accent));
  border-radius: 50%;
  background: transparent;
}

html body.view-month .mo-page .mo-project-mark.is-new-fill { animation: mo-project-pop 340ms cubic-bezier(.2, .8, .2, 1.2) both; }
@keyframes mo-project-pop { from { transform: scale(.35); opacity: .2; } to { transform: scale(1); opacity: 1; } }
@keyframes mo-project-stroke {
  from { transform: scaleX(.04); opacity: .28; }
  to { transform: scaleX(1); opacity: 1; }
}

html body.view-month .mo-page .mo-d.mo-project-hold-pending::before,
html body.view-month .mo-page .mo-d.mo-project-preview::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 2px;
  border-radius: 5px;
  pointer-events: none;
}

html body.view-month .mo-page .mo-d.mo-project-hold-pending::before {
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hl, var(--accent)) 31%, transparent), transparent);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: mo-project-hold 280ms linear both;
}

@keyframes mo-project-hold { to { background-size: 100% 100%; } }

html body.view-month .mo-page .mo-d.mo-project-preview::before {
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 5px;
  background: linear-gradient(95deg,
    color-mix(in srgb, var(--hl, #f4b9be) 74%, transparent),
    color-mix(in srgb, var(--hl, #f4b9be) 55%, transparent));
  animation: mo-project-stroke 180ms ease-out both;
}

/* A draft crossing into the next month also colors its visible carry-over days. */
html body.view-month .mo-page .mo-d.other.mo-project-preview { opacity: 1; }

html body.view-month .mo-page .mo-d.mo-project-preview .mo-n {
  position: relative;
  z-index: 2;
}

html body.view-month .mo-page .ms-project-strip {
  display: flex;
  align-items: center;
  flex: 0 0 44px;
  min-width: 0;
  min-height: 44px;
  gap: 7px;
  padding: 0 4px 2px;
  border-bottom: 1px solid var(--line2);
}

html body.view-month .mo-page .ms-project-caption {
  flex: 0 0 auto;
  color: var(--ink);
  font: 600 12px/1.3 Pretendard, sans-serif;
  white-space: nowrap;
}

html body.view-month .mo-page .ms-project-list {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

html body.view-month .mo-page .ms-project-list::-webkit-scrollbar { display: none; }

html body.view-month .mo-page .ms-project-pill,
html body.view-month .mo-page .ms-project-empty {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: min(75%, 230px);
  height: 36px;
  min-width: 0;
  padding: 0 9px;
  border-radius: 99px;
  font: 500 12px/1.2 Pretendard, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

html body.view-month .mo-page .ms-project-pill {
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--mo-ink, var(--accent)) 45%, var(--line2));
  background: color-mix(in srgb, var(--mo-ink, var(--accent)) 18%, var(--board));
  color: var(--ink);
}

html body.view-month .mo-page .ms-project-pill .mo-project-dot {
  flex: 0 0 4px;
  --mo-project-ink: var(--mo-ink, var(--accent));
}

html body.view-month .mo-page .ms-project-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
}

html body.view-month .mo-page .ms-project-pill small {
  flex: 0 0 auto;
  color: var(--sub);
  font: 400 10px/1 Pretendard, sans-serif;
}

html body.view-month .mo-page .ms-project-empty {
  border: 1px dashed var(--line);
  background: color-mix(in srgb, var(--board) 70%, var(--soft2));
  color: var(--sub);
}

html body.view-month .mo-page .ms-project-add {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hl, var(--accent)) 55%, var(--board));
  color: var(--ink);
  font: 400 24px/40px Pretendard, sans-serif;
  cursor: pointer;
}

html body.view-month .mo-page .ms-project-pill:focus-visible,
html body.view-month .mo-page .ms-project-empty:focus-visible,
html body.view-month .mo-page .ms-project-add:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html body.view-month .mo-page .mo-project-mark.is-new-fill,
  html body.view-month .mo-page .mo-d.mo-project-preview::before,
  html body.view-month .mo-page .mo-d.mo-project-hold-pending::before { animation: none; }
}

html body.view-month .mo-page.is-dragging > .mo {
  transition: none;
}

html body.view-month .mo-page.is-dragging {
  cursor: ns-resize;
  user-select: none;
  -webkit-user-select: none;
}

html body.dev-phone.view-month #calView > .wk-page.mo-page,
html body.dev-phone.view-month .curl-ghost.wk-page.mo-page {
  padding: 13px 10px 9px;
}

html body.dev-phone.view-month .mo-page > .pg-head {
  padding: 3px 2px 12px;
  gap: 8px;
}

html body.dev-phone.view-month .mo-page .pg-range {
  font-size: 32px;
}

html body.dev-phone.view-month .mo-page > .mo-h {
  flex-basis: 26px;
  font-size: 12px;
}

html body.dev-phone.view-month .mo-page > .mo {
  --mo-gap: 3px;
}

html body.dev-phone.view-month .mo-page .mo-d {
  padding: 2px;
  gap: 1px;
}

html body.dev-phone.view-month .mo-page .mo-d.sel {
  padding: 2px;
}

html body.dev-phone.view-month .mo-page .mo-n {
  flex-basis: 23px;
  width: 23px;
  height: 23px;
  font-size: 14px;
}

html body.dev-phone.view-month .mo-page .mo-chip {
  min-height: 14px;
  padding: 1px 3px;
  font-size: 9.5px;
  line-height: 1.25;
}

html body.dev-phone.view-month .mo-page .mo-more,
html body.dev-phone.view-month .mo-page .mo-min {
  font-size: 9px;
}

html body.dev-phone.view-month .mo-page > .mo-sheet {
  margin-top: 0;
}

html body.dev-phone.view-month .mo-page .mo-grab {
  position: relative;
  flex-basis: 14px;
  min-height: 14px;
  height: 14px;
}

/* Keep the central grip easy to catch without adding another empty row or
   covering the date label and the day-opening button on either side. */
html body.dev-phone.view-month .mo-page .mo-grab::after {
  content: '';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 64px;
  height: 44px;
  transform: translateX(-50%);
}

html body.dev-phone.view-month .mo-page .ms-head {
  min-height: 30px;
  padding: 0 2px 1px;
  gap: 5px;
}

html body.dev-phone.view-month .mo-page .ms-date {
  font-size: 16px;
}

html body.dev-phone.view-month .mo-page .ms-sum {
  display: none;
}

html body.dev-phone.view-month .mo-page .ms-btn {
  font-size: 10px;
  padding: 6px 0;
}

html body.dev-phone.view-month .mo-page .ms-btn.ms-open {
  padding: 6px 8px;
}

html body.dev-phone.view-month .mo-page .ms-sec {
  padding: 5px 3px 8px;
}

html body.dev-phone.view-month .mo-page .ms-row {
  padding: 7px 3px;
  gap: 9px;
}

html body.dev-phone.view-month .mo-page .ms-item-name {
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  html body.view-month .mo-page .ms-head {
    gap: 4px;
  }
  html body.view-month .mo-page .ms-date {
    font-size: 14px;
  }
  html body.view-month .mo-page .ms-btn.ms-open {
    padding-inline: 6px;
  }
}

@media (max-height: 650px) {
  html body.dev-phone.view-month .mo-page {
    --mo-row-min: 28px;
  }
  html body.dev-phone.view-month .mo-page > .pg-head {
    padding-bottom: 6px;
  }
  html body.dev-phone.view-month .mo-page .pg-title {
    gap: 2px;
  }
  html body.dev-phone.view-month .mo-page .pg-range {
    font-size: 26px;
  }
  html body.dev-phone.view-month .mo-page .mo-grab {
    flex-basis: 14px;
    min-height: 14px;
    height: 14px;
  }
  html body.dev-phone.view-month .mo-page .ms-head {
    min-height: 30px;
    padding-bottom: 1px;
  }
  html body.dev-phone.view-month .mo-page[data-mo-dense] .mo-n,
  html body.dev-phone.view-month .mo-page[data-mo-panel="compact"] .mo-n {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.view-month .mo-page > .mo,
  html body.view-month .mo-page .mo-grab i {
    transition: none;
  }
}

/* ── 10/14 월간 프로젝트 형광펜 (Claude) ──
   윤곽은 .mo-project-layer 안 SVG 하나(month-project-display.js paint). 칸마다 그리던 미리 보기 카드는 없앤다. */
html body.view-month .mo-page .mo-project-layer { overflow: visible; }
html body.view-month .mo-page .mo-d.mo-project-preview::before { display: none; }
html body.view-month .mo-page .mo-ink-draft { animation: mo-ink-in 160ms ease-out both; }
@keyframes mo-ink-in { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html body.view-month .mo-page .mo-ink-draft { animation: none; } }

/* 달력을 아래로 크게 내리면(full) 점 대신 일정 글씨 */
html body.view-month .mo-page[data-mo-panel="full"]:not([data-mo-dense]) .mo-chips { display: flex; }
html body.view-month .mo-page[data-mo-panel="full"]:not([data-mo-dense]) .mo-dots { display: none; }

/* 아래 프로젝트 알약마다 형광펜 켜기·끄기 (알약 오른쪽 끝) */
html body.view-month .mo-page .ms-project-item { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; }
html body.view-month .mo-page .ms-project-item .ms-project-pill { padding-left: 30px; }
html body.view-month .mo-page .ms-project-item.ink-off .ms-project-pill { opacity: .62; }
html body.view-month .mo-page .ms-project-ink {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--faint, var(--sub));
  cursor: pointer;
}
html body.view-month .mo-page .ms-project-ink .hl-line { stroke: currentColor; opacity: .35; }
html body.view-month .mo-page .ms-project-ink.on { color: var(--mo-ink, var(--text)); }
html body.view-month .mo-page .ms-project-ink.on .hl-line { stroke: var(--mo-ink, var(--hl, #f4b9be)); opacity: .55; }
html body.view-month .mo-page .ms-project-ink:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* 아래 일정 목록: 이름과 시간을 한 줄로, 왼쪽 막대는 짧게 (이어 붙이지 않음) */
html body.view-month .mo-page .ms-row .ms-bar { align-self: center; height: 16px; min-height: 16px; margin: 0; border-radius: 2px; }
html body.view-month .mo-page .ms-item-name { flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; }
html body.view-month .mo-page .ms-item-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.view-month .mo-page .ms-item-name .ms-t { flex: 0 0 auto; white-space: nowrap; }

/* 알약을 연 프로젝트의 동그라미 손잡이 (시간표 형광펜과 같은 모양) */
html body.view-month .mo-page .mo-rz-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
html body.view-month .mo-page .mo-rz-h { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 2.5px solid var(--d, var(--accent)); box-sizing: border-box; pointer-events: auto; touch-action: none; cursor: ew-resize; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform 120ms ease; }
html body.view-month .mo-page .mo-rz-h::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; }
html body.view-month .mo-page .mo-rz-h.on { transform: scale(1.25); }
html body.view-month .mo-page .mo-rz-h.is-linked { opacity: .45; cursor: not-allowed; }

/* 프로젝트 알약 짧게: 이름 위 · 기간 아래 (같은 달이면 10.12–18) */
html body.view-month .mo-page .ms-project-item .ms-project-pill {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  max-width: 128px;
  padding-right: 13px;
}
html body.view-month .mo-page .ms-project-item .ms-project-pill span {
  max-width: 100%;
  font: 500 12px/1.15 Pretendard, sans-serif;
}
html body.view-month .mo-page .ms-project-item .ms-project-pill small {
  font: 400 9.5px/1.1 Pretendard, sans-serif;
}

/* 알약 앞 점 = 형광펜 켜기·끄기: 채운 점 = 달력에 형광펜 + 점, 빈 점 = 점만 */
html body.view-month .mo-page .ms-project-item .ms-project-pill { padding-left: 23px; }
html body.view-month .mo-page .ms-project-ink { left: 0; width: 26px; height: 34px; border-radius: 99px; }
html body.view-month .mo-page .mo-ink-dot {
  display: block;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--mo-ink, var(--accent));
  border-radius: 50%;
  background: transparent;
  transition: background-color 140ms ease, transform 140ms ease;
}
html body.view-month .mo-page .ms-project-ink.on .mo-ink-dot { background: var(--mo-ink, var(--accent)); }
html body.view-month .mo-page .ms-project-ink:active .mo-ink-dot { transform: scale(1.25); }
html body.view-month .mo-page .ms-project-item.ink-off .ms-project-pill { opacity: 1; }

/* 첫 줄 프로젝트 띠가 위에서 잘리지 않게: 달력 상자를 8px 위로 늘려(겉보기 자리는 그대로) 띠 윗변을 그 안에 그린다 */
html body.view-month .mo-page > .mo {
  margin-top: -8px;
  padding-top: 8px;
  height: calc(var(--mo-calendar-height, 360px) + 8px);
}

/* 10/15 월간 일정 표시: 더 얇게(12px) 해서 기본(가운데) 높이에서도 글씨로 보인다 (사용자 "일정 표시가 두꺼워 · 2/3(기본)에서는 보이게").
   전엔 맨 아래로 크게 내린(full) 때만 글씨, 기본은 점. 칸이 아주 낮을 때(dense·compact)는 지금처럼 점 */
html body.view-month .mo-page:not([data-mo-panel="compact"]):not([data-mo-dense]) .mo-chips { display: flex; gap: 1px; }
html body.view-month .mo-page:not([data-mo-panel="compact"]):not([data-mo-dense]) .mo-dots { display: none; }
html body.view-month .mo-page .mo-chip,
html body.dev-phone.view-month .mo-page .mo-chip { min-height: 0; height: 12px; padding: 0 3px; font-size: 9px; line-height: 12px; border-radius: 2px; }
html body.view-month .mo-page .mo-more,
html body.dev-phone.view-month .mo-page .mo-more { font-size: 8.5px; line-height: 11px; }
