/* Agenda display is deliberately scoped; project tables and time sheets retain their layout. */
.agenda-v6{--agenda-event-accent:var(--accent,#17796c);min-width:0}
.agenda-v6 .calendar-grid{isolation:isolate}
.agenda-v6 .calendar-heading{background:var(--panel);border-bottom:1px solid var(--line)}
.agenda-v6 .calendar-heading.today .calendar-date{display:grid;place-items:center;min-width:25px;height:25px;border-radius:50%;background:var(--accent);color:#fff;line-height:25px}
.agenda-v6 .calendar-heading.today{box-shadow:none}
.agenda-v6 .calendar-track{position:relative;border-right:1px solid var(--line)}
.agenda-v6 .calendar-event.google{--agenda-event-accent:var(--event-line,var(--accent));background:color-mix(in srgb,var(--agenda-event-accent) 14%,var(--panel));color:var(--text);border:1px solid color-mix(in srgb,var(--agenda-event-accent) 38%,var(--panel));border-left:3px solid var(--agenda-event-accent)}
.agenda-v6 .calendar-event.google:hover{background:color-mix(in srgb,var(--agenda-event-accent) 22%,var(--panel));border-color:var(--agenda-event-accent)}
.agenda-v6 .calendar-event.google.free-event{background:var(--panel);border-style:dashed;opacity:1}
.agenda-v6 .calendar-event .event-body{font-family:inherit;text-align:left;color:inherit}
.agenda-v6 .calendar-event strong{font-size:12px;line-height:15px;letter-spacing:0}
.agenda-v6 .calendar-event .event-time{font-size:10.5px;line-height:13px}
.agenda-v6 .calendar-event[aria-busy="true"]{opacity:.6;pointer-events:none}
.agenda-v6 .calendar-event.google[data-google-drag]{cursor:grab;touch-action:pan-y}
.agenda-v6 .calendar-event.google[data-google-drag]:active{cursor:grabbing}
.agenda-v6 .calendar-scroll{overscroll-behavior-y:auto;scroll-padding-top:88px}

.agenda-v6 .agenda-allday{display:grid;grid-column:1/-1;position:sticky;top:48px;z-index:11;align-items:stretch;min-width:0;max-height:150px;overflow-y:auto;overscroll-behavior-y:auto;scrollbar-width:thin;border-bottom:1px solid var(--line);background:var(--panel);padding:3px 0;isolation:isolate}
.agenda-v6 .agenda-allday-label{grid-column:1;position:sticky;left:0;top:0;align-self:start;min-height:28px;z-index:3;display:flex;align-items:center;justify-content:center;padding:1px 4px;font-size:9px;line-height:12px;color:var(--muted);background:var(--panel);border-right:1px solid var(--line);text-align:center}
.agenda-v6 .agenda-allday-empty{z-index:0;min-width:0;min-height:26px;border:0;border-radius:0;border-right:1px solid var(--line);padding:0;background:transparent;cursor:pointer}
.agenda-v6 .agenda-allday-empty:hover{background:var(--soft,var(--panel));box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}
.agenda-v6 .agenda-allday-empty.today{background:color-mix(in srgb,var(--accent) 3%,var(--panel))}
.agenda-v6 .agenda-allday-event{--agenda-event-accent:var(--accent);z-index:1;align-self:center;min-width:0;height:23px;margin:1px 3px;padding:2px 7px;border:1px solid color-mix(in srgb,var(--agenda-event-accent) 32%,var(--panel));border-left:3px solid var(--agenda-event-accent);border-radius:4px;background:color-mix(in srgb,var(--agenda-event-accent) 14%,var(--panel));color:var(--text);font-family:inherit;font-size:11px;line-height:16px;font-weight:550;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
.agenda-v6 .agenda-allday-event.continues-before{border-top-left-radius:0;border-bottom-left-radius:0;border-left-width:1px;margin-left:0}
.agenda-v6 .agenda-allday-event.continues-after{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}
.agenda-v6 .agenda-allday-event.free-event{background:var(--panel);border-style:dashed}
.agenda-v6 .agenda-allday-event:hover{background:color-mix(in srgb,var(--agenda-event-accent) 22%,var(--panel))}
.agenda-v6 .agenda-now-line{position:absolute;left:0;right:0;z-index:9;height:1.5px;background:#d93025;pointer-events:none}
.agenda-v6 .agenda-now-line>span{position:absolute;left:-4px;top:-3px;width:7px;height:7px;border-radius:50%;background:#d93025;box-shadow:0 0 0 1px var(--panel)}

.agenda-v6 .agenda-month{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:9px;background:var(--panel);overscroll-behavior-x:contain;overscroll-behavior-y:auto}
.agenda-v6 .agenda-month-weekdays{display:grid;grid-template-columns:repeat(7,minmax(80px,1fr));min-width:560px;position:sticky;top:0;z-index:3;background:var(--panel);border-bottom:1px solid var(--line)}
.agenda-v6 .agenda-month-weekdays>span{padding:7px 5px;font-size:11px;font-weight:500;color:var(--muted);text-align:center}
.agenda-v6 .agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(80px,1fr));min-width:560px}
.agenda-v6 .agenda-month-day{min-height:104px;min-width:0;position:relative;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:3px 3px 4px}
.agenda-v6 .agenda-month-day:nth-child(7n){border-right:0}
.agenda-v6 .agenda-month-day:nth-last-child(-n+7){border-bottom:0}
.agenda-v6 .agenda-month-day.adjacent-month{background:color-mix(in srgb,var(--muted) 5%,var(--panel))}
.agenda-v6 .agenda-month-day.today{background:color-mix(in srgb,var(--accent) 3%,var(--panel))}
.agenda-v6 .agenda-month-date{display:flex;align-items:center;justify-content:space-between;gap:3px;height:27px;margin-bottom:1px}
.agenda-v6 .agenda-month-date>button:first-child{border:0;border-radius:14px;padding:2px 5px;min-width:24px;min-height:24px;background:transparent;color:var(--text);font-family:inherit;font-size:11px;line-height:20px;font-weight:500;cursor:pointer;text-align:center}
.agenda-v6 .agenda-month-date>button:first-child>span{font-size:10px;font-weight:400;color:var(--muted)}
.agenda-v6 .agenda-month-day.today .agenda-month-date>button:first-child{background:var(--accent);color:#fff}
.agenda-v6 .agenda-month-day.today .agenda-month-date>button:first-child>span{color:inherit}
.agenda-v6 .agenda-month-add{display:grid;place-items:center;width:23px;height:23px;min-height:0;border:0;border-radius:50%;padding:0;background:transparent;color:var(--muted);font-size:17px;line-height:22px;cursor:pointer;opacity:0}
.agenda-v6 .agenda-month-day:hover .agenda-month-add,.agenda-v6 .agenda-month-day:focus-within .agenda-month-add{opacity:1}
.agenda-v6 .agenda-month-date>button:hover,.agenda-v6 .agenda-month-add:hover{background:var(--soft,var(--panel));color:var(--accent)}
.agenda-v6 .agenda-month-events{display:grid;gap:2px;min-width:0}
.agenda-v6 .agenda-month-event{--agenda-event-accent:var(--accent);display:flex;align-items:center;gap:4px;width:100%;min-width:0;min-height:19px;max-height:21px;overflow:hidden;border:0;border-left:3px solid var(--agenda-event-accent);border-radius:3px;padding:2px 3px;background:transparent;color:var(--text);font-family:inherit;font-size:10.5px;line-height:15px;text-align:left;cursor:pointer}
.agenda-v6 .agenda-month-event>time{flex:0 0 auto;font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}
.agenda-v6 .agenda-month-event>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.agenda-v6 .agenda-month-event.all-day,.agenda-v6 .agenda-month-event.booking{background:color-mix(in srgb,var(--agenda-event-accent) 13%,var(--panel))}
.agenda-v6 .agenda-month-event.continues-before{border-radius:0 3px 3px 0;border-left-color:transparent}
.agenda-v6 .agenda-month-event.continues-after{border-radius:3px 0 0 3px}
.agenda-v6 .agenda-month-event.continues-before.continues-after{border-radius:0}
.agenda-v6 .agenda-month-event.free-event{border-left-style:dashed}
.agenda-v6 .agenda-month-event:hover{background:color-mix(in srgb,var(--agenda-event-accent) 22%,var(--panel))}
.agenda-v6 .agenda-month-more{border:0;min-height:19px;padding:1px 4px;background:transparent;color:var(--muted);text-align:left;font-family:inherit;font-size:10px;line-height:17px;cursor:pointer;border-radius:3px}
.agenda-v6 .agenda-month-more:hover{background:var(--soft,var(--panel));color:var(--accent)}

.agenda-v6 .agenda-schedule{background:var(--panel);border:1px solid var(--line);border-radius:9px;overflow:hidden;min-width:0}
.agenda-v6 .agenda-schedule-day{display:grid;grid-template-columns:90px minmax(0,1fr);border-bottom:1px solid var(--line);padding:8px 12px;min-width:0}
.agenda-v6 .agenda-schedule-day:last-child{border-bottom:0}
.agenda-v6 .agenda-schedule-date>button{display:flex;gap:8px;align-items:center;min-height:38px;border:0;border-radius:6px;padding:3px;background:transparent;color:var(--text);font-family:inherit;cursor:pointer}
.agenda-v6 .agenda-schedule-date strong{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;font-size:20px;font-weight:500;font-variant-numeric:tabular-nums}
.agenda-v6 .agenda-schedule-date span{max-width:43px;font-size:10px;line-height:15px;color:var(--muted);text-transform:capitalize}
.agenda-v6 .agenda-schedule-day.today .agenda-schedule-date strong{background:var(--accent);color:#fff}
.agenda-v6 .agenda-schedule-event{--agenda-event-accent:var(--accent);display:grid;grid-template-columns:124px 9px minmax(0,1fr);gap:10px;align-items:start;width:100%;min-width:0;min-height:39px;border:0;border-radius:5px;padding:9px 8px;background:transparent;color:var(--text);text-align:left;font-family:inherit;cursor:pointer}
.agenda-v6 .agenda-schedule-event:hover{background:var(--soft,var(--panel))}
.agenda-v6 .agenda-schedule-time{font-size:11px;line-height:18px;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--muted)}
.agenda-v6 .agenda-schedule-dot{width:8px;height:8px;border-radius:50%;margin-top:5px;background:var(--agenda-event-accent)}
.agenda-v6 .agenda-schedule-event.free-event .agenda-schedule-dot{background:var(--panel);outline:1.5px solid var(--agenda-event-accent)}
.agenda-v6 .agenda-schedule-name{min-width:0;font-size:12px;line-height:18px;font-weight:500;overflow-wrap:anywhere}
.agenda-v6 .agenda-schedule-name small{display:block;font-size:10px;line-height:15px;color:var(--muted);font-weight:400}
.agenda-v6 .agenda-schedule-empty{padding:36px 20px;text-align:center}
.agenda-v6 .agenda-schedule-empty h2{font-size:16px;margin:0 0 8px}
.agenda-v6 .agenda-schedule-empty p{font-size:12px;color:var(--muted);margin-bottom:16px}

.agenda-v6 .agenda-mini-month{padding:0 0 12px;min-width:0}
.agenda-v6 .agenda-mini-month h2{font-size:12px;font-weight:600;margin:0 0 10px;text-transform:capitalize}
.agenda-v6 .agenda-mini-grid{display:grid;gap:1px}
.agenda-v6 .agenda-mini-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;text-align:center}
.agenda-v6 .agenda-mini-week>[role="columnheader"]{font-size:9px;line-height:24px;color:var(--muted)}
.agenda-v6 .agenda-mini-week>[role="gridcell"]{display:grid;place-items:center;min-width:0}
.agenda-v6 .agenda-mini-week button{display:grid;place-items:center;min-width:25px;width:25px;height:25px;min-height:0;border:0;border-radius:50%;padding:0;background:transparent;color:var(--text);font-family:inherit;font-size:10px;line-height:25px;cursor:pointer;font-variant-numeric:tabular-nums}
.agenda-v6 .agenda-mini-week button.adjacent-month{color:var(--muted);opacity:.65}
.agenda-v6 .agenda-mini-week button:hover{background:var(--soft,var(--panel));color:var(--accent)}
.agenda-v6 .agenda-mini-week button.selected{background:color-mix(in srgb,var(--accent) 17%,var(--panel));color:var(--accent);font-weight:650}
.agenda-v6 .agenda-mini-week button.today{background:var(--accent);color:#fff;font-weight:650;opacity:1}
.agenda-v6 :is(.agenda-allday-event,.agenda-allday-empty,.agenda-month button,.agenda-schedule button,.agenda-mini-month button):focus-visible{outline:2px solid var(--focus);outline-offset:1px;position:relative;z-index:5}
@media(max-width:900px){.agenda-v6 .agenda-month-day{min-height:98px}.agenda-v6 .agenda-schedule-day{grid-template-columns:76px minmax(0,1fr);padding:6px 8px}.agenda-v6 .agenda-schedule-event{grid-template-columns:112px 8px minmax(0,1fr);gap:7px}}
@media(max-width:560px){.agenda-v6 .agenda-month-day{min-height:100px}.agenda-v6 .agenda-month-add{opacity:1}.agenda-v6 .agenda-schedule-day{grid-template-columns:58px minmax(0,1fr);padding:6px}.agenda-v6 .agenda-schedule-date>button{display:grid;gap:0;justify-items:center;padding:0}.agenda-v6 .agenda-schedule-date span{max-width:none;font-size:9px}.agenda-v6 .agenda-schedule-event{grid-template-columns:8px minmax(0,1fr);gap:4px 7px;padding:7px 6px}.agenda-v6 .agenda-schedule-time{grid-column:2;grid-row:2;font-size:10px;line-height:14px}.agenda-v6 .agenda-schedule-dot{grid-column:1;grid-row:1}.agenda-v6 .agenda-schedule-name{grid-column:2;grid-row:1}.agenda-v6 .agenda-mini-week button{width:30px;height:30px}.agenda-v6 .agenda-mini-week{min-height:31px}}
@media(pointer:coarse){.agenda-v6 .agenda-month-date{height:32px}.agenda-v6 .agenda-month-date>button:first-child,.agenda-v6 .agenda-month-add{min-width:28px;min-height:28px}.agenda-v6 .agenda-month-add{opacity:1}.agenda-v6 .agenda-allday-event{min-height:25px}.agenda-v6 .agenda-month-event{min-height:24px;max-height:26px}.agenda-v6 .agenda-month-day{min-height:122px}.agenda-v6 .agenda-schedule-event{min-height:44px}}
