.calendar-view{--calendar-date-height:30px;--calendar-bar-height:22px;animation:task-enter .16s ease;display:flex;flex-direction:column;flex:1;min-height:0;height:100%;position:relative}.calendar-header{display:flex;align-items:center;justify-content:space-between;gap:18px;height:48px;min-height:48px;margin:0 0 8px;flex-shrink:0}.calendar-month-picker{position:relative;display:flex;align-items:center;gap:8px;width:230px;min-height:44px}.calendar-month-label{font-size:27px;font-weight:700;line-height:1.4;color:var(--ink)}.calendar-month-chevron{font-size:14px;color:var(--muted)}.calendar-month{position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;cursor:pointer;font:inherit;padding:0;border:0}.calendar-month-picker:focus-within{outline:3px solid #93bca8;outline-offset:2px;border-radius:5px}.calendar-navigation{display:flex;align-items:center;gap:8px}.calendar-arrow{font-size:30px;line-height:1;min-width:44px;min-height:44px;border-radius:9px;color:var(--green)}.calendar-arrow:hover,.calendar-arrow:active{background:var(--tint)}.calendar-arrow:disabled{opacity:.3;cursor:default}.calendar-today{font-size:15px;min-height:40px;padding:8px 16px;color:var(--green);border-radius:9px;background:var(--tint);font-weight:600}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));height:29px;flex-shrink:0;border-bottom:1px solid var(--line)}.calendar-weekday{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:14px}.calendar-weekday:nth-last-child(-n+2){color:#8d998a}.calendar-grid{display:grid;grid-template-rows:repeat(6,minmax(0,1fr));flex:1;min-height:0;border-left:1px solid var(--line);border-bottom:1px solid var(--line)}.calendar-week{min-height:0;position:relative;border-top:1px solid var(--line)}.calendar-week:first-child{border-top:0}.calendar-dates{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-day{min-width:0;min-height:0;display:flex;align-items:flex-start;justify-content:flex-end;padding:4px 7px;border-right:1px solid var(--line);border-radius:0;transition:background .14s;color:var(--ink)}.calendar-day:nth-last-child(-n+2){background:#f0f2e9}.calendar-day:hover{background:#edf2e8}.calendar-day.is-selected{background:var(--tint)}.calendar-day:focus-visible{outline-offset:-3px}.calendar-number{font-size:19px;font-weight:550;line-height:26px;min-width:27px;text-align:center;border-radius:50%}.calendar-day.is-today .calendar-number{background:var(--green);color:var(--white);font-weight:700}.calendar-day.is-outside .calendar-number{color:#a6b0a2}.calendar-event-layer{position:absolute;top:var(--calendar-date-height);left:2px;right:2px;bottom:2px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:var(--calendar-bar-height);column-gap:3px;row-gap:2px;align-content:start;pointer-events:none;overflow:hidden}.calendar-event-bar{display:flex;align-items:center;gap:5px;min-width:0;min-height:0;height:var(--calendar-bar-height);padding:2px 6px;border-radius:5px;text-align:left;pointer-events:auto;font-size:13px;font-weight:600;line-height:1.3;transition:filter .15s}.calendar-event-bar:hover{filter:brightness(.94)}.calendar-event-bar:focus-visible{outline-offset:-2px}.calendar-event-bar.continues-before{border-top-left-radius:0;border-bottom-left-radius:0}.calendar-event-bar.continues-after{border-top-right-radius:0;border-bottom-right-radius:0}.calendar-bar-time{font-size:11px;flex-shrink:0;opacity:.9}.calendar-bar-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.tone-0{background:#c7e3d0;color:#265d43}.tone-1{background:#cedfed;color:#2c5573}.tone-2{background:#ede0bd;color:#745c29}.tone-3{background:#e2d3eb;color:#6a4879}.calendar-more{font-size:11px;line-height:1.2;color:var(--muted);min-width:0;padding:2px 5px;text-align:left;pointer-events:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.calendar-more:hover{color:var(--green)}.calendar-detail-overlay{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:24px;background:#263c325e;animation:task-enter .14s ease}.calendar-detail{max-width:560px;width:100%;max-height:80svh;overflow:auto;background:var(--white);border-radius:18px;padding:22px 28px;box-shadow:0 14px 50px #152e2224}.calendar-detail-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}.calendar-detail-heading h1{font-size:21px;line-height:1.5;margin:6px 0 0}.calendar-detail-close{font-size:30px;min-width:44px;min-height:44px;color:var(--muted);border-radius:9px}.calendar-detail-close:hover{background:var(--tint)}.calendar-empty{font-size:16px;color:var(--muted);line-height:1.7;margin:0;padding:5px 0 15px}.calendar-event{padding:16px 0;border-top:1px solid var(--line)}.calendar-event-time{font-size:13px;line-height:1.6;color:var(--green)}.calendar-event h2{font-size:21px;font-weight:650;line-height:1.5;margin:6px 0 0;overflow-wrap:anywhere}.calendar-event-note{font-size:14px;line-height:1.75;margin:8px 0 0;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.calendar-holiday-legend{display:flex;align-items:center;justify-content:center;gap:16px;flex:1;min-width:0;font-size:13px;color:var(--muted)}.calendar-legend-item{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.calendar-day{position:relative}.calendar-day-flag{position:absolute;left:7px;top:8px;display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;font-size:11px;font-weight:650;line-height:1;border-radius:3px}.calendar-day-flag.is-holiday{color:#985251;background:#f1d8d3}.calendar-day-flag.is-workday{color:#806025;background:#ecdfbc}.calendar-legend-item .calendar-day-flag{position:static;flex-shrink:0}.calendar-day.is-holiday{background:#faf1e9}.calendar-day.is-workday{background:#f5f0df}.calendar-day.is-holiday:hover,.calendar-day.is-workday:hover{background:#eee9dc}.calendar-day.is-selected{background:var(--tint)}.calendar-day.is-outside .calendar-day-flag{opacity:.6}.calendar-event-bar.is-holiday{background:#efdad6;color:#8c4d49}.calendar-event-bar.is-workday{background:#ecdfbc;color:#795d28}.calendar-holiday-legend.is-unavailable{font-size:12px}
@media(max-width:820px){.calendar-month-picker{width:205px}.calendar-month-label{font-size:24px}.calendar-event-bar{font-size:12px;padding:2px 4px}.calendar-bar-time{font-size:10px}.calendar-number{font-size:18px}.calendar-holiday-legend{gap:10px;font-size:12px}}
@media(max-width:640px){.calendar-view{--calendar-date-height:27px;--calendar-bar-height:20px}.calendar-header{height:45px;min-height:45px;gap:6px}.calendar-month-picker{width:145px}.calendar-month-label{font-size:20px}.calendar-month-chevron{font-size:11px}.calendar-navigation{gap:0}.calendar-arrow{font-size:26px;min-width:32px;min-height:40px}.calendar-today{font-size:12px;min-height:36px;padding:7px 9px}.calendar-weekdays{height:25px}.calendar-weekday{font-size:11px}.calendar-day{padding:3px 3px}.calendar-number{font-size:15px;line-height:23px;min-width:23px}.calendar-event-layer{left:1px;right:1px;column-gap:2px}.calendar-event-bar{font-size:10px;padding:2px 3px;border-radius:3px}.calendar-bar-time{display:none}.calendar-more{font-size:9px;padding:2px}.calendar-detail-overlay{padding:16px}.calendar-detail{padding:17px 19px;border-radius:14px;max-height:85svh}.calendar-detail-heading h1{font-size:18px}.calendar-event h2{font-size:19px}.calendar-event-note{font-size:13px}}
@media(max-width:340px){.calendar-month-picker{width:122px}.calendar-month-label{font-size:17px}.calendar-arrow{min-width:29px}.calendar-today{padding:7px 7px;font-size:11px}}
@media(max-width:640px){.calendar-holiday-legend{display:none}.calendar-day-flag{left:3px;top:7px;width:12px;height:13px;font-size:9px;border-radius:2px}}
@media(max-width:340px){.calendar-day{padding-left:2px;padding-right:2px}.calendar-day-flag{left:2px;width:11px;font-size:8px}.calendar-number{min-width:20px}}
@media(prefers-reduced-motion:reduce){.calendar-view,.calendar-detail-overlay{animation:none}.calendar-day,.calendar-event-bar{transition:none}}

.calendar-day-heading{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:4px;align-items:center;width:100%;min-height:26px}.calendar-day-heading .calendar-day-flag{position:static;justify-self:start}.calendar-day-heading .calendar-number{justify-self:end}.calendar-shift-label{font-size:14px;line-height:1.35;font-weight:650;white-space:nowrap;text-align:center;min-width:0}.calendar-shift-label.is-day{color:#745c29}.calendar-shift-label.is-night-start{color:#604c7e}.calendar-shift-label.is-night-end{color:#2f5c70}.calendar-shift-label.is-rest{color:#356746}.calendar-day.is-outside .calendar-shift-label{opacity:.65}.calendar-shift-detail{display:flex;align-items:center;gap:14px;margin:0 0 15px}.calendar-shift-caption{font-size:13px;color:var(--muted)}.calendar-shift-detail .calendar-shift-label{font-size:18px;text-align:left}
@media(max-width:640px){.calendar-day{padding:3px 1px}.calendar-day-heading{grid-template-columns:7px minmax(0,1fr) auto;gap:1px;min-height:20px}.calendar-day-heading .calendar-day-flag{width:7px;height:12px;font-size:7px}.calendar-day-heading .calendar-number{font-size:clamp(11px,3vw,15px);min-width:14px;line-height:20px}.calendar-shift-label{font-size:clamp(8px,1.8vw,13px)}.calendar-shift-detail .calendar-shift-label{font-size:17px}}
@media(max-width:375px){.calendar-shift-label{font-size:7px}.calendar-day-heading .calendar-number{font-size:11px;min-width:13px}}
@media(max-width:340px){.calendar-day-heading{grid-template-columns:7px minmax(0,1fr) auto;gap:0}.calendar-day-heading .calendar-day-flag{width:7px;font-size:7px}.calendar-day-heading .calendar-number{font-size:10px;min-width:12px}.calendar-shift-label{font-size:6.5px}}
