.week-board { height: clamp(420px, calc(100vh - 180px), 720px); min-height: 0; }
.day { min-height: 0; }
.day-head { flex: 0 0 30px; margin-bottom: 5px; }
.day.today .date, .month-day.today .month-date {
  border-radius: 50%; background: #608bb6; color: #fff;
}
.holiday-marker { font-size: 10px; line-height: 16px; color: #b46b65; white-space: nowrap; cursor: help; }
.holiday-marker.workday { color: #8792a1; }
.holiday-region-label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.holiday-region { max-width: 150px; height: 27px; padding: 0 22px 0 7px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: #718095; font-size: 11px; cursor: pointer; }
.holiday-source { color: #8a96a8; text-decoration: none; white-space: nowrap; }
.holiday-source:hover { text-decoration: underline; }
.month-grid { display: block; }
.month-week { position: relative; display: grid; grid-template-columns: repeat(8, minmax(112px, 1fr)); column-gap: 12px; --span-height: 0px; }
.month-day { display: flex; flex-direction: column; min-width: 0; height: calc(146px + var(--span-height)); min-height: 0; padding: 5px 7px 4px; border-bottom: 1px solid #f0f3f7; }
.month-day.outside { opacity: 1; }
.month-day.outside .month-date { color: #b9c1cd; }
.month-day-head { display: flex; align-items: center; justify-content: flex-start; gap: 4px; height: 26px; flex: 0 0 26px; touch-action: pan-y; user-select: none; }
.month-date { display: grid; place-items: center; width: 24px; height: 24px; font-size: 13px; }
.week-range-label { color: #8d9eb1; font-size: 10px; white-space: nowrap; }
.month-day .span-space { height: var(--span-height); flex: 0 0 var(--span-height); touch-action: pan-y; }
.month-week-goal .month-todo-list { margin-top: 4px; }
body.is-selecting-range { user-select: none; cursor: crosshair; }
.range-draft-layer { display: grid; position: absolute; top: 33px; left: 0; right: 0; grid-template-columns: repeat(8, minmax(112px, 1fr)); column-gap: 12px; pointer-events: none; z-index: 5; }
.range-draft { height: 20px; border: 1px solid #b8d0e8; border-radius: 5px; background: #dceafa; box-shadow: 0 2px 7px rgba(76, 119, 161, .12); }
.range-draft.continues-before { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.range-draft.continues-after { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.month-spans { display: grid; position: absolute; top: 33px; left: 0; right: 0; grid-template-columns: repeat(8, minmax(112px, 1fr)); column-gap: 12px; grid-auto-rows: 22px; max-height: 66px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; pointer-events: none; z-index: 2; }
.span-task { display: flex; align-items: center; min-width: 0; height: 20px; padding: 0 5px; border-radius: 5px; background: #e7eff8; color: #5e7c9b; font-size: 11px; line-height: 20px; cursor: pointer; pointer-events: auto; }
.span-task[data-color="sage"] { background: #e8f1e9; color: #617e69; }
.span-task[data-color="sand"] { background: #f6eddf; color: #977b52; }
.span-task[data-color="rose"] { background: #f5e7eb; color: #9d717e; }
.span-task.continues-before { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.span-task.continues-after { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.span-task.completed .span-text { text-decoration: line-through; opacity: .55; }
.span-task.is-range-editing { visibility: hidden; }
.span-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.span-task .edit-button { width: 22px; height: 20px; color: inherit; }
.week-spans { display: grid; gap: 2px; max-height: 88px; overflow-y: auto; flex: 0 0 auto; margin-bottom: 3px; }
.range-inline-layer { display: grid; position: absolute; top: 33px; left: 0; right: 0; grid-template-columns: repeat(8, minmax(112px, 1fr)); column-gap: 12px; pointer-events: none; z-index: 6; }
.range-inline-bar { display: flex; align-items: center; min-width: 0; height: 20px; border-radius: 5px; background: #e7eff8; color: #5e7c9b; pointer-events: auto; }
.range-inline-bar[data-color="sage"] { background: #e8f1e9; color: #617e69; }
.range-inline-bar[data-color="sand"] { background: #f6eddf; color: #977b52; }
.range-inline-bar[data-color="rose"] { background: #f5e7eb; color: #9d717e; }
.range-inline-bar.continues-before { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.range-inline-bar.continues-after { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.range-inline-form { width: 100%; min-width: 0; height: 20px; }
.range-inline-input { width: 100%; height: 20px; min-width: 0; padding: 0 5px; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 11px; line-height: 20px; }
button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #83acd5; outline-offset: 2px; }
