/* Compact workday, independent header alignment and Google-like overlapping cards. */
.planning-page .page-heading{margin-bottom:12px}.planning-page .cal-toolbar{margin-bottom:8px}.calendar-filter-panel{margin:6px 0 8px}.calendar-filter-panel>summary{cursor:pointer;color:#4f626d;font-size:12px;font-weight:600;padding:7px 0}.calendar-filter-panel .planning-filters{margin:6px 0}.planning-page>.cal-legend{gap:6px 12px;margin:5px 0;font-size:10px}.planning-page>.cal-legend>span:last-child{display:none}.calendar-source-legend{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11px;margin:6px 0 10px}.calendar-source-legend>span{display:inline-flex;align-items:center;gap:5px}.calendar-hours-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.calendar-hours-bar>span{font-size:11px;color:#60717b}.calendar-hours-bar .cal-views button{padding:6px 10px;font-size:11px}.planning-page .cal-time-header{min-height:48px}.planning-page .cal-unscheduled[hidden],.planning-page [data-cal-hour][hidden],.planning-page [data-cal-start][hidden]{display:none!important}.planning-page .cal-timeline-scroll{margin-top:0}.planning-page .cal-time-body,.planning-page .cal-time-day{min-height:0}.planning-page .cal-hour-slot{min-height:0}.calendar-end-hour{position:absolute;right:8px;font-size:10px;color:#657681}.calendar-workday .cal-time-body{overflow:hidden}.calendar-event-small .cal-event small{display:none}.calendar-event-small .cal-event{padding:2px 4px;font-size:10px}.calendar-event-tiny .cal-event{display:flex;align-items:center;gap:4px;padding:0 4px}.calendar-event-tiny .cal-event-time{font-size:9px;flex-shrink:0}.calendar-event-tiny .cal-event strong{font-size:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:1.3}.cal-timed-event>.cal-event{border:1px solid #fff!important;border-radius:6px;box-shadow:-1px 0 1px #26384818;position:relative;overflow:hidden}.cal-timed-event:focus-within{z-index:30!important}.calendar-can-drag{cursor:grab}.calendar-can-drag:active{cursor:grabbing}.calendar-resize{position:absolute;left:0;right:0;height:7px;cursor:ns-resize;z-index:3}.calendar-resize-start{top:0}.calendar-resize-end{bottom:0}.calendar-resize:after{content:'';display:block;width:20px;height:2px;border-radius:2px;background:currentColor;opacity:0;margin:2px auto}.cal-event:hover .calendar-resize:after{opacity:.65}.calendar-gesture-active{user-select:none;cursor:grabbing!important}.calendar-drag-source{opacity:.42}.calendar-drag-preview{position:fixed;pointer-events:none;z-index:1400;white-space:pre-line;background:#253942;color:#fff;padding:10px 14px;border-radius:8px;box-shadow:0 6px 22px #16252a40;max-width:260px;font-size:12px;line-height:1.6}.calendar-popover{position:fixed;z-index:1200;width:360px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;border-radius:14px;background:#fff;color:#263238;box-shadow:0 5px 24px #25354038,0 1px 4px #25354030;font-family:Montserrat,Arial,sans-serif;font-size:12px}.calendar-card-toolbar{display:flex;justify-content:flex-end;gap:2px;padding:8px}.calendar-card-toolbar button{border:0;background:transparent;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;cursor:pointer;color:#52616b}.calendar-card-toolbar button:hover{background:#e7eaf1}.calendar-card-toolbar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.calendar-card-detail{padding:0 24px 20px;overflow-wrap:anywhere}.calendar-card-detail h2{font-size:20px;margin:0 0 12px;font-weight:500;line-height:1.4}.calendar-card-detail p{font-size:12px;line-height:1.6}.calendar-card-source{margin-top:20px}.calendar-card-notes{white-space:pre-wrap;max-height:180px;overflow:auto}.calendar-blocked-note{padding:8px;background:#fff1ca;border-radius:6px}.calendar-context,.calendar-popover:has(.calendar-menu){width:290px;background:#f1f3fb;padding:8px 0}.calendar-menu-row{display:block;border:0;background:none;width:100%;padding:11px 20px;text-align:left;color:#27343a;font:inherit;cursor:pointer}.calendar-menu-row:hover,.calendar-menu-row:focus-visible{background:#e0e5ef}.calendar-popover button:disabled{opacity:.45;cursor:default}.calendar-popover hr{border:0;border-top:1px solid #dbe0e8;margin:5px 0}.calendar-palette{display:grid;grid-template-columns:repeat(9,22px);gap:7px;padding:10px 18px}.calendar-color{height:22px;width:22px;border:2px solid transparent;border-radius:50%;background:var(--cal-color);cursor:pointer}.calendar-color[aria-pressed=true]{outline:2px solid #263b43;outline-offset:2px}.calendar-color:focus-visible{outline:2px solid #263b43;outline-offset:2px}.calendar-undo-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:1300;display:flex;align-items:center;gap:22px;background:#253942;color:#fff;box-shadow:0 3px 20px #0003;border-radius:8px;padding:12px 18px;font-size:12px;max-width:calc(100vw - 24px)}.calendar-undo-toast button{background:none;color:#bce8e9;font:inherit;font-weight:600;border:0;cursor:pointer;padding:6px}.calendar-print-sheet{display:none}@media print{body:has(.calendar-print-sheet)>*:not(.calendar-print-sheet){display:none!important}.calendar-print-sheet{display:block;padding:24px}.calendar-print-sheet p{white-space:pre-wrap}}
@media(max-width:760px){.calendar-hours-bar{align-items:flex-end}.calendar-hours-bar>span{max-width:145px;font-size:10px}.calendar-hours-bar .cal-views button{padding:6px;font-size:10px}.planning-page .cal-legend{display:none}.calendar-source-legend{gap:5px 10px;font-size:10px}.calendar-card-detail{padding:0 18px 16px}.calendar-resize{height:10px}}
.planning-page .calendar-filter-panel{padding:0 12px;border:1px solid #e6ecee;border-radius:8px;background:#f7f9fa}.planning-page .calendar-filter-panel>summary{padding:8px 0;margin:0}.planning-page .calendar-filter-panel[open]{padding-bottom:10px}.planning-page .page-heading{margin-bottom:12px}
@media(max-width:760px){.planning-page .page-heading h1{font-size:19px}.planning-page .page-heading p{display:none}.planning-page .page-heading{align-items:center;margin-bottom:10px}.planning-page .page-heading .actions{gap:4px}.planning-page .page-heading .btn{font-size:10px;padding:6px}.planning-page .cal-toolbar{gap:8px;margin-bottom:6px}.planning-page .cal-navigation h2{font-size:15px}.calendar-source-legend{margin:4px 0 6px}.planning-page .calendar-filter-panel{margin:5px 0}.planning-page .cal-time-header{padding-top:5px;padding-bottom:5px}.planning-page .cal-unscheduled{padding-top:3px;padding-bottom:3px}.planning-page .cal-time-header .cal-date{font-size:16px}}
.cal-event[data-calendar-key]{position:relative}.calendar-resize-day{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;z-index:3}.calendar-resize-day-start{left:0}.calendar-resize-day-end{right:0}.calendar-resize-day:hover{background:#25394225}.cal-timed-event:focus-within{z-index:var(--calendar-layer,1)!important}.cal-timed-event:has(:focus-visible){z-index:30!important}
@media(max-width:760px),(max-height:780px){main:has(.planning-page)>.demo-environment{font-size:10px;line-height:1.4;padding:6px 16px}main:has(.planning-page)>.toolbar{height:54px;min-height:0;padding-top:6px;padding-bottom:6px}main:has(.planning-page)>.preview{font-size:10px;line-height:1.3;padding-top:5px;padding-bottom:5px}.planning-page{padding-top:14px!important}.planning-page .page-heading p{display:none}.planning-page .page-heading h1{font-size:18px}.planning-page .cal-toolbar{margin-bottom:5px;gap:6px}.planning-page .cal-time-header{padding-top:4px;padding-bottom:4px}.planning-page .cal-all-day>div{min-height:26px}.planning-page .cal-all-day .cal-event{padding:3px}.planning-page .cal-all-day .cal-event strong{font-size:10px}.planning-page .cal-all-day .cal-event-time{display:none}.planning-page .cal-time-header .cal-date{font-size:16px}}
.planning-page .cal-hour-ruler>span{font-size:9px;line-height:10px;transform:translateY(-5px)}.planning-page .cal-hour-ruler>span:first-child,.planning-page .cal-hour-ruler>.calendar-end-hour{transform:none}
@media(max-width:500px){main:has(.planning-page)>.toolbar{height:72px}}
