.deadline-section{margin:0 0 22px}.deadline-section-heading{display:flex;align-items:baseline;gap:14px;margin-bottom:11px;flex-wrap:wrap}.deadline-section-heading h2{font-size:16px;font-weight:600;color:var(--muted)}.deadline-section-heading>span{font-size:14px;color:var(--muted)}.deadline-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.deadline-panel{min-width:0;background:var(--white);border:1px solid var(--border);border-top:2px solid var(--warning);border-radius:8px;overflow:hidden}.deadline-panel.is-overdue{border-top-color:var(--danger-text)}.deadline-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-bottom:1px solid var(--border)}.deadline-panel h3{font-size:14px;font-weight:600;display:flex;align-items:center;gap:9px;color:var(--warning-text)}.deadline-panel.is-overdue h3{color:var(--danger-text)}.deadline-panel h3 strong{font-size:16px}.deadline-panel header>span{font-size:14px;color:var(--muted)}.deadline-panel select{font-size:14px;color:var(--warning-text);background:transparent;border:1px solid var(--border-strong);padding:4px 5px;border-radius:6px}.deadline-list{max-height:208px;overflow-y:auto;scrollbar-width:thin}.deadline-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 56px 64px;align-items:center;gap:10px;padding:12px 16px;text-align:left;border-bottom:1px solid var(--border);background:var(--white)}.deadline-row:last-child{border-bottom:0}.deadline-row:hover{background:var(--surface)}.deadline-row-main{min-width:0}.deadline-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:var(--muted);font-weight:600}.deadline-row small{display:block;font-size:14px;color:var(--muted);margin-top:5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.deadline-owner{font-size:14px;color:var(--muted);overflow-wrap:anywhere;text-align:right}.deadline-distance{font-size:14px;color:var(--warning-text);text-align:right;white-space:nowrap}.is-overdue .deadline-distance{color:var(--danger-text)}.deadline-empty{font-size:14px;color:var(--muted);padding:18px 16px;line-height:1.8}
.work-schedule{display:grid;grid-template-columns:minmax(0,1fr) 300px;border:1px solid var(--border);border-radius:8px;background:var(--white);margin:0 0 22px;overflow:hidden;min-width:0}.calendar-main{min-width:0}.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 20px 17px}.calendar-header h2{font-size:20px;color:var(--muted);font-weight:600}.calendar-header p{font-size:14px;color:var(--muted);margin-top:7px;line-height:1.6}.calendar-controls{display:flex;gap:5px;align-items:center;flex-shrink:0}.calendar-controls>.icon-button{font-size:28px;color:var(--muted);width:26px;min-width:26px;height:30px;padding:0}.calendar-month{position:relative;min-width:0}.calendar-month input{border:0;color:var(--muted);background:transparent;font:inherit;font-size:14px;font-weight:600;max-width:145px;padding:5px 2px}.calendar-controls .button{font-size:14px;padding:6px 9px;margin-left:4px}.calendar-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;min-width:0;position:relative}.calendar-month-grid{min-width:0}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px 0;color:var(--muted);font-size:14px;background:var(--white)}.is-sunday{color:var(--danger-text)}.is-saturday{color:var(--muted)}.calendar-week{height:104px;position:relative;border-bottom:1px solid var(--border)}.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:100%}.calendar-day{min-width:0;position:relative;padding:0;border-right:1px solid var(--border);background:var(--white);text-align:left;color:var(--muted)}.calendar-day:last-child{border-right:0}.calendar-day:hover{background:var(--surface)}.calendar-day.is-selected{background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--ink)}.calendar-day.outside-month{background:var(--white);color:var(--muted)}.calendar-day.is-selected.outside-month{background:var(--surface)}.calendar-day.is-sunday{color:var(--danger-text)}.calendar-day.is-saturday{color:var(--muted)}.calendar-date-number{position:absolute;top:5px;left:7px;display:flex;align-items:center;justify-content:center;width:25px;height:24px;font-size:14px;border-radius:50%}.calendar-day.is-today .calendar-date-number{background:var(--accent);color:var(--white);font-weight:600}.calendar-more{position:absolute;bottom:5px;left:8px;font-size:14px;color:var(--accent-text)}.calendar-week-events{position:absolute;top:34px;left:0;right:0;pointer-events:none}.calendar-track{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-bottom:4px;min-height:23px}.calendar-bar{min-width:0;height:22px;padding:3px 6px;line-height:16px;font-size:14px;text-align:left;border-radius:6px;margin:0 3px;border:1px solid transparent;pointer-events:auto;overflow:hidden}.calendar-bar>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-bar:hover{filter:brightness(.97);border-color:currentColor}.calendar-bar-owner{opacity:1}.calendar-bar.continues-before{margin-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.calendar-bar.continues-after{margin-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.tone-todo{background:var(--surface);color:var(--ink);border-color:var(--border)}.tone-doing{background:var(--surface);color:var(--muted)}.tone-review{background:var(--surface);color:var(--muted)}.tone-soon{background:var(--warning-soft);color:var(--warning-text)}.tone-overdue{background:var(--surface);color:var(--danger-text)}.tone-done{background:var(--surface);color:var(--success-text)}.cal-start-1{grid-column-start:1}.cal-start-2{grid-column-start:2}.cal-start-3{grid-column-start:3}.cal-start-4{grid-column-start:4}.cal-start-5{grid-column-start:5}.cal-start-6{grid-column-start:6}.cal-start-7{grid-column-start:7}.cal-span-1{grid-column-end:span 1}.cal-span-2{grid-column-end:span 2}.cal-span-3{grid-column-end:span 3}.cal-span-4{grid-column-end:span 4}.cal-span-5{grid-column-end:span 5}.cal-span-6{grid-column-end:span 6}.cal-span-7{grid-column-end:span 7}
.calendar-legend{display:flex;gap:14px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--muted);padding:14px 18px}.calendar-legend span{display:inline-flex;align-items:center;gap:5px}.calendar-legend i{width:7px;height:7px;border:1px solid currentColor;border-radius:2px}.calendar-legend small{font-size:12px;margin-left:auto;color:var(--muted)}.calendar-partial-note{font-size:14px;color:var(--muted);line-height:1.8;padding:0 18px 14px}.calendar-agenda{border-left:1px solid var(--border);background:var(--white);min-width:0;padding:21px 18px;display:flex;flex-direction:column;gap:16px}.calendar-agenda>header>small{font-size:14px;color:var(--muted)}.calendar-agenda h3{font-size:20px;color:var(--muted);margin-top:8px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.calendar-agenda h3>span{font-size:14px;font-weight:600;color:var(--muted);margin-left:auto}.agenda-list{display:flex;flex-direction:column;gap:10px;max-height:510px;overflow-y:auto;scrollbar-width:thin}.day-task{display:block;width:100%;border:1px solid var(--border);background:var(--white);border-radius:8px;text-align:left;padding:14px 13px}.day-task:hover{border-color:var(--accent)}.day-task-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.day-task-head .badge{font-size:12px;padding:3px 7px}.day-task-head .day-due{background:none;font-size:14px}.day-task>strong{display:block;font-weight:600;font-size:16px;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.day-task-owner{display:flex;gap:8px;align-items:baseline;justify-content:space-between;font-size:14px;color:var(--muted);margin-top:12px;line-height:1.6}.day-task-owner>b{font-size:14px;color:var(--muted);font-weight:600;flex-shrink:0;max-width:40%;overflow-wrap:anywhere}.day-task-period{display:flex;align-items:center;gap:5px;margin-top:8px;font-size:14px;color:var(--muted)}.day-task-period svg{height:12px;width:12px;flex-shrink:0}.day-task-next{display:block;border-top:1px solid var(--border);font-size:14px;color:var(--muted);line-height:1.75;margin-top:10px;padding-top:9px;overflow-wrap:anywhere;white-space:pre-wrap}.agenda-empty{padding:22px 3px;font-size:14px;color:var(--muted);line-height:1.8}.agenda-empty>small{display:block;font-size:14px;color:var(--muted);margin-top:10px}.agenda-note{font-size:14px;color:var(--muted);line-height:1.8;margin-top:auto;padding-top:6px}.agenda-completed summary{font-size:14px;color:var(--success-text);cursor:pointer;padding:5px 0}.agenda-completed .day-task{margin-top:9px}.kanban-date-button{display:flex;align-items:center;gap:5px;font:inherit;color:inherit;padding:0;text-align:left;line-height:1.6}.kanban-date-button:hover{text-decoration:underline}.kanban-date-button svg{flex-shrink:0}.kanban-date>span{overflow-wrap:anywhere}
@media(max-width:1150px){.work-schedule{grid-template-columns:minmax(0,1fr) 260px}.calendar-header{align-items:flex-start;flex-direction:column;gap:12px}.calendar-controls{width:100%;justify-content:flex-end}.calendar-agenda{padding:18px 14px}.calendar-legend{gap:10px}.calendar-header p{display:none}}
@media(max-width:900px){.work-schedule{grid-template-columns:minmax(0,1fr)}.calendar-agenda{border-left:0;border-top:1px solid var(--border)}.agenda-list{max-height:400px}.calendar-header{flex-direction:row;align-items:center}.calendar-controls{width:auto}.deadline-row{grid-template-columns:minmax(0,1fr) 40px 54px;gap:7px;padding:12px}.deadline-owner{font-size:14px}}
@media(max-width:760px){.deadline-grid{grid-template-columns:minmax(0,1fr);gap:10px}.deadline-section{margin-bottom:17px}.deadline-section-heading{gap:8px}.deadline-section-heading h2{font-size:16px}.deadline-section-heading>span{font-size:12px}.deadline-panel>header{padding:11px 12px}.deadline-list{max-height:155px}.deadline-row{grid-template-columns:minmax(0,1fr) 48px 58px;padding:11px 12px}.deadline-empty{padding:13px 12px;font-size:14px}.deadline-row strong{font-size:14px}.deadline-row small{font-size:12px}.calendar-header{padding:16px 13px;flex-direction:column;align-items:flex-start;gap:12px}.calendar-header h2{font-size:16px}.calendar-controls{width:100%;justify-content:space-between}.calendar-month input{max-width:175px}.calendar-month-grid{min-width:0}.calendar-week{height:96px}.calendar-bar{font-size:12px;padding:2px 3px;height:20px;line-height:15px;margin-left:1px;margin-right:1px}.calendar-track{min-height:20px;margin-bottom:3px}.calendar-date-number{left:4px;width:23px;height:23px;font-size:14px}.calendar-week-events{top:28px}.calendar-more{font-size:12px;left:5px;bottom:6px}.calendar-bar-owner{display:none}.calendar-legend{padding:12px;font-size:12px;gap:9px}.calendar-legend small{width:100%;margin-left:0}.calendar-agenda{padding:18px 14px}.calendar-agenda h3{font-size:16px}.calendar-partial-note{padding:0 12px 12px;font-size:12px}.work-schedule{margin:0 0 18px}}
@media(prefers-reduced-motion:reduce){.calendar-bar,.calendar-day,.day-task{transition:none}}
.calendar-bar{grid-row:1}
.calendar-day-trigger{position:absolute;top:0;left:0;width:100%;height:32px;color:inherit;text-align:left;padding:0;background:transparent}.calendar-day{cursor:pointer}.calendar-more{padding:0;background:transparent;line-height:15px}

/* Keep the current month's calendar above team navigation, even when it has no tasks. */
.calendar-eyebrow{display:block;font-size:14px;color:var(--muted);margin-bottom:7px}.calendar-header h2{font-size:28px;letter-spacing:-.5px}.calendar-header p{display:block;font-size:14px;margin-top:6px}.calendar-header p strong{color:var(--ink);font-weight:600}.calendar-header{padding:16px 18px;gap:12px}.calendar-controls{gap:3px}.calendar-agenda{padding-top:18px}.calendar-day-trigger{height:28px}.calendar-unscheduled{border-top:1px solid var(--border);padding-top:16px}.calendar-unscheduled h4{font-size:14px;color:var(--muted);margin:0;display:flex;align-items:center;gap:8px}.calendar-unscheduled h4 span{color:var(--muted);font-size:14px}.calendar-unscheduled>p{font-size:14px;color:var(--muted);line-height:1.8;margin-top:7px}.unscheduled-list{max-height:230px;overflow-y:auto;margin-top:10px}.unscheduled-row{display:flex;width:100%;align-items:center;gap:10px;padding:12px 0;text-align:left;border-top:1px solid var(--border)}.unscheduled-row:first-child{border-top:0}.unscheduled-row>span{flex:1;min-width:0}.unscheduled-row strong{display:block;font-size:14px;font-weight:600;color:var(--muted);line-height:1.7;overflow-wrap:anywhere}.unscheduled-row small{display:block;font-size:14px;color:var(--muted);margin-top:5px;line-height:1.6}.unscheduled-row>b{color:var(--muted);white-space:nowrap;font-size:14px;font-weight:600}.unscheduled-row:hover strong{text-decoration:underline}.calendar-controls .button{min-height:30px}.calendar-more{line-height:13px}
@media(max-width:1150px) and (min-width:901px){.calendar-header{flex-direction:row}.calendar-controls{width:auto;flex-wrap:wrap;justify-content:flex-end;max-width:220px}.calendar-month input{max-width:132px}}
@media(max-width:760px){.calendar-header{padding:15px 12px;gap:12px}.calendar-header h2{font-size:20px}.calendar-header p{font-size:14px}.calendar-eyebrow{font-size:12px;margin-bottom:5px}.calendar-controls{margin-top:0}.calendar-week-events{top:28px}.calendar-more{bottom:5px}.calendar-date-number{top:3px}.calendar-controls>.icon-button{height:30px}.calendar-legend{padding-top:10px;padding-bottom:10px}}

/* Schedule labels use the same readable scale as the rest of the workspace. */
.calendar-header{gap:14px;flex-wrap:wrap}.calendar-header h2{font-size:28px}.calendar-header p{font-size:14px;line-height:1.6}.calendar-eyebrow{font-size:14px}
.calendar-controls{gap:5px}.calendar-controls>.icon-button{width:36px;min-width:36px;height:38px;line-height:1;font-size:28px}.calendar-month input{font-size:16px;max-width:175px;min-height:38px}.calendar-controls .button{font-size:14px;min-height:38px}
.calendar-weekdays{font-size:14px;font-weight:600}.calendar-week{height:132px}.calendar-date-number{font-size:16px;font-weight:600;width:30px;height:30px;top:3px;left:6px}.calendar-day-trigger{height:36px}
.calendar-day.outside-month{color:var(--muted)}.calendar-day.is-today .calendar-date-number{background:var(--accent)}
.calendar-week-events{top:37px}.calendar-track{min-height:28px;margin-bottom:5px}.calendar-bar{height:28px;line-height:20px;font-size:14px;font-weight:600;padding:3px 6px}.calendar-more{font-size:14px;line-height:20px;bottom:5px;font-weight:600}
.calendar-legend{font-size:14px;gap:14px}.calendar-legend small,.calendar-partial-note{font-size:14px;line-height:1.6}.calendar-legend i{width:9px;height:9px}
.calendar-agenda h3{font-size:20px;line-height:1.5}.calendar-agenda>header>small,.calendar-agenda h3>span{font-size:14px}.day-task>strong{font-size:16px;line-height:1.6}.day-task-head .badge,.day-task-head .day-due{font-size:14px}.day-task-owner,.day-task-owner>b,.day-task-period,.day-task-next,.agenda-note{font-size:14px;line-height:1.6}.day-task-owner{align-items:flex-start;gap:8px}.day-task-owner>span{min-width:0;overflow-wrap:anywhere}.day-task-owner>b{font-weight:600}.agenda-empty{font-size:16px}.agenda-empty>small{font-size:14px}.agenda-completed summary{font-size:14px}
.calendar-unscheduled h4{font-size:16px}.calendar-unscheduled h4 span,.calendar-unscheduled>p{font-size:14px}.unscheduled-row{flex-wrap:wrap}.unscheduled-row strong{font-size:14px}.unscheduled-row small,.unscheduled-row>b{font-size:14px}.unscheduled-row>span{flex-basis:100%}.unscheduled-row>b{margin-left:auto}
.deadline-section-heading h2{font-size:20px}.deadline-section-heading>span{font-size:14px}.deadline-panel h3{font-size:16px}.deadline-panel h3 strong{font-size:20px}.deadline-panel header>span,.deadline-panel select{font-size:14px}.deadline-panel>header{flex-wrap:wrap}.deadline-row{grid-template-columns:minmax(0,1fr) 70px 82px;gap:12px}.deadline-row strong{font-size:16px;white-space:normal;line-height:1.55;overflow-wrap:anywhere}.deadline-row small,.deadline-owner,.deadline-distance{font-size:14px;line-height:1.6}.deadline-list{max-height:288px}.deadline-empty{font-size:14px;line-height:1.7}
@media(max-width:1150px) and (min-width:901px){.calendar-header{flex-direction:column;align-items:flex-start}.calendar-controls{max-width:none;width:100%}}
@media(max-width:760px){.calendar-header{padding:16px 12px;gap:12px}.calendar-header h2{font-size:28px}.calendar-header p{font-size:14px}.calendar-eyebrow{font-size:14px}.calendar-controls{width:100%;gap:3px}.calendar-month input{font-size:16px;max-width:164px}.calendar-controls .button{font-size:14px}.calendar-week{height:130px}.calendar-week-events{top:37px}.calendar-bar{height:28px;line-height:20px;font-size:14px;padding:3px}.calendar-track{min-height:28px;margin-bottom:5px}.calendar-date-number{font-size:16px;left:3px}.calendar-more{font-size:12px;line-height:20px;left:4px;bottom:4px}.calendar-legend,.calendar-legend small,.calendar-partial-note{font-size:14px}.calendar-agenda h3{font-size:20px}.deadline-row{grid-template-columns:minmax(0,1fr) 55px 70px;gap:8px}.deadline-panel>header{gap:9px}.deadline-panel select{font-size:14px}.deadline-list{max-height:270px}.deadline-row strong{font-size:16px}.deadline-row small,.deadline-owner,.deadline-distance{font-size:14px}.deadline-empty{font-size:14px}}

.agenda-list{max-height:630px}.agenda-empty,.agenda-note,.day-task-next,.calendar-partial-note{word-break:keep-all;overflow-wrap:anywhere}.day-task>strong{color:var(--ink)}
@media(max-width:900px){.agenda-list{max-height:520px}}

@media(max-width:380px){.calendar-controls{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;gap:6px}.calendar-controls .calendar-month input{width:100%;min-width:0;max-width:100%}.calendar-controls .button{grid-column:1 / -1;justify-self:end;margin-left:0}}

/* Due-date view: one compact chip per task on its deadline, most urgent first; spans stay in the day pane. */
.calendar-mode{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;margin-right:8px}.calendar-mode button{white-space:nowrap;min-height:38px;padding:6px 13px;font-size:14px;font-weight:600;color:var(--muted);background:var(--white)}.calendar-mode button+button{border-left:1px solid var(--border)}.calendar-mode button.selected{background:var(--surface);color:var(--ink)}
.calendar-week.due-mode{height:auto}.calendar-week.due-mode .calendar-days{height:auto}.calendar-day.due-mode{display:flex;flex-direction:column;gap:3px;min-height:148px;padding:38px 4px 6px}
.cal-chips{display:flex;flex-direction:column;gap:3px;min-width:0}.cal-chip{display:flex;align-items:flex-start;gap:5px;width:100%;min-width:0;min-height:26px;padding:2px 7px;border-radius:6px;border:1px solid transparent;font-size:14px;font-weight:600;line-height:20px;text-align:left}.cal-chip:hover{border-color:currentColor}.cal-chip-title{flex:1;min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.cal-chip-owner{flex-shrink:0;font-size:12px;font-weight:600;display:none}
.calendar-day.due-mode .calendar-more{position:static;align-self:flex-start;padding:0 6px;font-size:14px;line-height:20px}.cal-count{display:none}
@media(min-width:1700px){.cal-chip-owner{display:inline}}
@media(max-width:760px){.calendar-controls{flex-wrap:wrap}.calendar-mode{width:100%;margin:0 0 6px;grid-column:1 / -1}.calendar-mode button{flex:1}}
/* Narrow calendar (phones, or tablets with the side pane) shows a count per day instead of unreadable chips. */
.calendar-main{container-type:inline-size}@container (max-width:700px){.calendar-day.due-mode{min-height:74px;padding:34px 2px 4px}.cal-chips,.calendar-day.due-mode .calendar-more{display:none}.cal-count{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;margin-left:3px;border-radius:12px;font-size:12px;font-weight:600}}
/* 기간 미지정 업무: its own tinted box so it reads apart from the day list and the calendar; rows are white cards. */
.calendar-unscheduled{margin-top:18px;padding:14px 14px 12px;border:1px solid var(--warning-line);border-radius:12px;background:var(--surface)}.calendar-unscheduled h4{font-size:16px;color:var(--ink);font-weight:600}.calendar-unscheduled h4 span{min-width:24px;height:22px;padding:0 8px;border-radius:12px;background:var(--warning-line);color:var(--warning-text);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.calendar-unscheduled>p{font-size:12px;margin-top:4px;line-height:1.6}
.unscheduled-list{display:flex;flex-direction:column;gap:6px;max-height:280px;margin-top:10px;padding-right:2px}.unscheduled-row,.unscheduled-row:first-child{flex-wrap:nowrap;padding:10px 12px;border:1px solid var(--warning-line);border-radius:8px;background:var(--white)}.unscheduled-row>span{flex-basis:auto}.unscheduled-row strong{font-size:14px;color:var(--ink);line-height:1.5}.unscheduled-row small{font-size:12px;margin-top:2px}.unscheduled-row>b{font-size:20px;line-height:1;color:var(--muted);margin-left:0}.unscheduled-row:hover{border-color:var(--warning-line)}

/* Start date in front of a calendar chip title ("10.6~"). */
.cal-chip-from{font-size:12px;font-weight:600;opacity:.75;margin-right:4px}
.cal-chip.tone-todo{border-color:var(--border)}
/* Period view follows the groupbuy calendar: flowing rows and a separate day agenda. */
.work-schedule.period-schedule{border:0;background:transparent;overflow:visible;gap:20px;align-items:start}
.period-schedule .calendar-main{border:1px solid var(--border);border-radius:8px;background:var(--white);overflow:hidden}
.period-schedule .calendar-header{flex-wrap:wrap;align-items:center;gap:12px}
.period-schedule .calendar-controls{display:flex;flex-wrap:wrap;justify-content:flex-end}
.period-schedule .calendar-month-grid{min-width:620px}
.period-schedule .calendar-week.span-mode{height:auto;min-height:160px;padding-bottom:7px}
.period-schedule .calendar-week.span-mode .calendar-days{position:absolute;inset:0;height:100%}
.period-schedule .calendar-day-trigger{height:40px;display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:4px 7px}
.period-schedule .calendar-date-number{position:static;display:grid;place-items:center;width:28px;height:28px;flex-shrink:0}
.period-schedule .calendar-day-count{margin-right:auto;font-size:12px;font-weight:600;color:var(--ink);white-space:nowrap}
.period-schedule .calendar-week-events{position:relative;top:auto;left:auto;right:auto;padding:40px 3px 0}
.period-schedule .calendar-track{min-height:30px;margin:3px 0;gap:3px}
.period-schedule .calendar-bar{display:flex;align-items:center;gap:8px;height:30px;padding:4px 7px;margin:0;border:1px solid rgba(9,30,66,.1);border-left:3px solid currentColor;border-radius:6px;font-size:12px;line-height:20px}
.period-schedule .calendar-bar>span{flex:1;min-width:0;text-overflow:ellipsis}
.period-schedule .calendar-bar-owner{display:block;flex:0 1 auto;max-width:45%;min-width:0;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.period-schedule .calendar-bar.continues-before{border-top-left-radius:0;border-bottom-left-radius:0}
.period-schedule .calendar-bar.continues-after{border-top-right-radius:0;border-bottom-right-radius:0}
.calendar-overflow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-height:24px;gap:3px;margin-top:4px}
.calendar-overflow>div{min-width:0}
.calendar-overflow>div>button{width:100%;padding:3px 2px;color:var(--accent-text);font-size:12px;line-height:18px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:auto}
.calendar-overflow>div>button:hover{background:var(--surface);border-radius:6px}
.period-schedule .calendar-agenda{border:1px solid var(--border);border-radius:8px;background:var(--white);position:sticky;top:14px;max-height:calc(100vh - 28px);overflow:auto}
@media(max-width:1100px){
 .work-schedule.period-schedule{grid-template-columns:minmax(0,1fr)}
 .period-schedule .calendar-agenda{position:static;max-height:520px}
}
@media(max-width:760px){
 .period-schedule .calendar-controls{justify-content:flex-start}
 .period-schedule .calendar-agenda{padding:18px 14px}
}

/* Keep dated records visible when the sticky agenda also has checklist and undated sections. */
.calendar-agenda>*,.agenda-list>.day-task{flex-shrink:0}
.period-schedule .agenda-list{max-height:none;overflow:visible}

.calendar-event-actions{pointer-events:auto;display:flex;align-items:stretch;min-width:0;grid-row:1;gap:2px}
.calendar-event-actions>.calendar-bar{flex:1;min-width:0}
.calendar-event-actions>.gb-delete-button{flex:0 0 26px;align-self:stretch;min-height:28px;padding:0;font-size:20px;line-height:1;border:1px solid var(--border);border-radius:6px;background:var(--white)}
.calendar-day-actions,.calendar-chip-actions{display:flex;flex-direction:column;align-items:stretch;min-width:0;flex-shrink:0}
.calendar-day-actions>.day-task{width:100%}
.calendar-day-actions>.gb-delete-button,.calendar-chip-actions>.gb-delete-button{align-self:flex-end;margin-top:3px}
/* 월별: 주가 확실히 나뉘게 — 주 사이 굵은 띠 + 한 주씩 번갈아 옅은 바탕(선택한 날은 그대로) */
.calendar-month-grid>.calendar-week{border-bottom:0;border-top:1px solid var(--border)}.calendar-month-grid>.calendar-weekdays+.calendar-week{border-top:0}
.calendar-month-grid>.calendar-week:nth-child(odd) .calendar-day:not(.is-selected){background:var(--surface)}
.calendar-month-grid>.calendar-week:nth-child(odd) .calendar-day.outside-month:not(.is-selected){background:var(--surface)}
.calendar-month-grid>.calendar-week:last-child{border-bottom:1px solid var(--border)}
/* 대표 캘린더: 공구 할 일은 막대 대신 날짜마다 한 줄(누르면 오른쪽 목록) */
.calendar-todos{margin:0 0 2px}
.calendar-todos>div>button{background:var(--surface);border-radius:6px;color:var(--ink);font-weight:600}
.calendar-todos>div>button:hover{background:var(--border)}
.calendar-todos>div>button.is-late{background:var(--surface);color:var(--danger-text)}
.calendar-todos>div>button.is-done{background:none;color:var(--muted);font-weight:600}
.calendar-todo-list{display:flex;flex-direction:column;gap:2px;margin-top:2px}
.calendar-todo-list .cal-chip{flex-direction:column;gap:0;min-height:0;padding:2px 5px;font-size:12px;line-height:16px;pointer-events:auto}
.calendar-todo-list .cal-chip-owner{display:block;font-size:12px}
/* 상태 색(칸반 점과 같은 뜻): 시작 전 회색 · 진행 중 검정 · 검토 대기 노랑 · 3일 안 마감 주황 · 기한 지남 빨강 · 완료 초록 */
.tone-todo{color:var(--muted)}
.tone-doing{background:var(--white);color:var(--ink);border-color:var(--border)}
.tone-review{background:var(--warning-soft);color:var(--warning-text)}
.tone-soon{background:var(--soft);color:var(--accent-text)}
/* 기간 막대의 담당자 이름: 10px은 휴대폰에서 읽기 어려워 키움 */
.period-schedule .calendar-bar-owner{font-size:12px}
/* 고른 날짜: 오늘(주황 원)과 헷갈리지 않게 옅은 회색 테두리 */
.calendar-day.is-selected{box-shadow:inset 0 0 0 2px var(--border-strong)}
/* 휴대폰 캘린더 조작: 1줄 기간·마감일 / 2줄 ‹ 월 › / 3줄 일정 모두 보기 · 이번 달 (화살표가 혼자 줄바꿈되지 않게) */
@media(max-width:700px){
.calendar-controls.calendar-controls{display:grid;grid-template-columns:44px 1fr 1fr 44px;gap:8px;align-items:center}
.calendar-controls.calendar-controls .calendar-mode{grid-column:1/-1;grid-row:1}
.calendar-controls.calendar-controls [data-action=calendar-prev]{grid-column:1;grid-row:2;justify-self:stretch;min-height:40px}
.calendar-controls.calendar-controls .calendar-month{grid-column:2/4;grid-row:2;min-width:0}
.calendar-controls.calendar-controls .calendar-month input{width:100%}
.calendar-controls.calendar-controls [data-action=calendar-next]{grid-column:4;grid-row:2;justify-self:stretch;min-height:40px}
.calendar-controls.calendar-controls [data-action=calendar-expand]{grid-column:1/3;grid-row:3;justify-self:stretch;margin-left:0}
.calendar-controls.calendar-controls [data-action=calendar-today]{grid-column:3/5;grid-row:3;justify-self:stretch;margin-left:0}
}
/* 담당자별 색(공구 진행판): 검증한 8색 순서(파랑·주황·청록·노랑·분홍·초록·보라·빨강), 미배정·그 외는 회색. 막대는 옅은 바탕 + 왼쪽 굵은 선, 글자는 먹색 그대로. */
.who-0{--who:#8e8d97}.who-1{--who:var(--info-text)}.who-2{--who:#eb6834}.who-3{--who:#1baf7a}.who-4{--who:#eda100}.who-5{--who:#e87ba4}.who-6{--who:#008300}.who-7{--who:#6250d6}.who-8{--who:#e34948}
.calendar-bar[class*="who-"],.cal-chip[class*="who-"]{background:color-mix(in srgb,var(--who) 14%,var(--white));color:var(--ink);border-color:color-mix(in srgb,var(--who) 35%,var(--white));border-left-color:var(--who)}
.calendar-bar[class*="who-"] .calendar-bar-owner,.cal-chip[class*="who-"] .cal-chip-owner{color:var(--muted)}
.calendar-bar.is-ended,.cal-chip.is-ended{opacity:.55}
.calendar-legend i[class*="who-"]{background:var(--who);border-color:var(--who)}
.gh-color-by{display:inline-flex;gap:2px;padding:2px;border-radius:7px;background:var(--surface);margin-right:4px}.gh-color-by button{padding:3px 9px;border-radius:5px;font-size:12px;color:var(--muted)}.gh-color-by button[aria-pressed="true"]{background:var(--white);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(9,30,66,.08)}
/* 인쇄(달력의 '인쇄'): 캘린더까지 이어지는 상자만 남기고 펼친 막대를 가로 A4에 찍는다. groupbuy.css 의 인쇄 규칙(body * 숨김)보다 우선. */
@media print{
 @page{size:A4 landscape;margin:8mm}
 body.print-calendar>*:not(.print-path),body.print-calendar .print-path>*:not(.print-path):not(.print-target){display:none!important}
 body.print-calendar .print-path{display:block!important;position:static!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
 body.print-calendar .print-target,body.print-calendar .print-target *{visibility:visible!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 body.print-calendar .print-target .calendar-controls,body.print-calendar .print-target .calendar-overflow,body.print-calendar .print-target .no-print{display:none!important}
 body.print-calendar .print-target .calendar-scroll{overflow:visible!important}
 body.print-calendar .print-target .calendar-month-grid{min-width:0!important}
 body.print-calendar .print-target .calendar-week{break-inside:avoid}
 html:has(body.print-calendar),body.print-calendar{background:#fff!important}
 body.print-calendar .print-target{display:flex!important;flex-direction:column}
 body.print-calendar .print-target .calendar-header{order:-2;display:block;padding:0 0 4px}
 body.print-calendar .print-target .calendar-header h2{font-size:20px}
 body.print-calendar .print-target .calendar-legend{order:-1;padding:2px 0 8px}
 body.print-calendar .print-target .calendar-week.span-mode{min-height:60px;padding-bottom:3px}
 body.print-calendar .print-target .calendar-week-events{padding-top:30px}
 body.print-calendar .print-target .calendar-track{min-height:22px;margin-bottom:3px}
 body.print-calendar .print-target .calendar-bar{height:22px;font-size:12px;line-height:16px;padding:2px 6px}
}
.calendar-header .calendar-open-count{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-top:8px;font-size:15px;font-weight:600;color:var(--ink)}.calendar-header .calendar-open-count strong{font-size:24px;font-weight:700;color:var(--ink)}.calendar-header .calendar-open-count span{font-weight:500;color:var(--ink)}.calendar-header .calendar-open-count small{flex-basis:100%;font-size:12px;font-weight:400;color:var(--muted)}
/* 12/5 오픈 공구 숫자를 누르면 그 공구만 모아 본다(groupbuy-workspace.js openPick). */
.calendar-header .calendar-open-pick{padding:0 2px;border:0;border-radius:4px;background:none;color:inherit;font:inherit;cursor:pointer;text-decoration:underline dotted;text-underline-offset:4px;text-decoration-color:var(--border)}
.calendar-header .calendar-open-pick:hover{text-decoration-color:currentColor}
.calendar-header .calendar-open-pick[aria-pressed="true"]{background:var(--soft);color:var(--accent-text);text-decoration:none;box-shadow:0 0 0 1px var(--accent-line)}
.calendar-header .calendar-open-all{align-self:center}
