.availability-page{display:grid;gap:24px}.availability-section{background:var(--surface,#fff);border:1px solid var(--border,#e5e7ee);border-radius:16px;padding:24px;min-width:0}.availability-section h2{margin:0 0 8px;font-size:19px}.availability-section p{color:var(--muted,#6f7485);line-height:1.6}.availability-section-heading{display:flex;align-items:start;justify-content:space-between;gap:24px}.availability-section-heading>label{min-width:170px}.availability-page label{display:grid;gap:8px;font-size:12px;color:var(--muted,#6f7485)}.availability-page input,.availability-page select{min-width:0;width:100%;padding:10px 12px;border:1px solid var(--border,#dedfe8);border-radius:8px;background:var(--surface,#fff);color:var(--text,#252538);font:inherit}.availability-people{display:grid;gap:16px;margin-top:18px}.availability-person{padding:20px;border:1px solid var(--border,#e5e7ee);border-radius:12px}.availability-person-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.availability-person-heading h3{font-size:15px;margin:0}.availability-person-heading span{color:#624ab3;font-size:12px;font-weight:600}.availability-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.availability-week strong{font-size:15px;color:var(--text,#252538)}.availability-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.availability-actions button{font-size:12px}.availability-absence-form{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.availability-absence-form .availability-actions{grid-column:1/-1;margin:0}.availability-page [hidden]{display:none!important}.availability-status:empty{display:none}.availability-status{margin:0;color:#337657}.availability-table td:last-child{white-space:nowrap}@media(max-width:1000px){.availability-week{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:650px){.availability-section{padding:16px}.availability-section-heading{display:block}.availability-week{grid-template-columns:repeat(2,minmax(0,1fr))}.availability-person-heading{align-items:start;flex-direction:column}.availability-absence-form{grid-template-columns:1fr}.availability-section-heading>label{margin-top:12px}}
/* Calendar planning additions; CSSOM sets only the column-count custom property. */
.planning-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.planning-toolbar>label{display:flex;align-items:center;gap:9px;font-size:12px;color:#58708f}.planning-toolbar .check-label{margin:0}.planning-toolbar input[type=checkbox]{min-height:0;width:16px;height:16px}.planning-range{margin-left:auto;color:#6c7e98;font-size:12px}.planning-legend{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;font-size:11px;color:#60718c}.planning-legend span{padding:5px 9px;border-radius:5px}.legend-task{background:#e7eefe}.legend-event{background:#e3f5ed}.legend-absence{background:#fff1d8}.legend-booked{background:#ecedf4}.planning-grid{grid-template-columns:170px repeat(var(--planning-days,7),minmax(138px,1fr));min-width:calc(170px + var(--planning-days,7)*138px)}.planning-day.is-today{box-shadow:inset 3px 0 #dc555d;color:#a62e38}.planning-cell.is-today{box-shadow:inset 3px 0 #dc555d}.today-marker{display:block;text-transform:uppercase;font-size:9px;letter-spacing:.5px;margin-top:5px}.calendar-context{display:grid;gap:5px;margin-top:10px}.calendar-context:empty{display:none}.calendar-event,.calendar-absence,.calendar-booked{display:block;width:100%;padding:8px;border-radius:6px;text-align:left;overflow-wrap:anywhere;font-size:11px;line-height:1.4;min-width:0}.calendar-event{border:1px solid #bddfcf;border-left:3px solid #409572;background:#e7f5ee;color:#285d49}.calendar-event strong{font-weight:600}.calendar-context small{display:block;font-size:9px;opacity:.85;margin-top:3px}.calendar-absence{background:#fff1d8;border-left:3px solid #cea545;color:#796027}.calendar-holiday{font-weight:600}.calendar-booked{background:#ecedf4;border-left:3px solid #8b91ad;color:#535d80}.task-pool>#planning-task-create{width:100%;font-size:11px;margin-bottom:12px}.availability-person-region{max-width:350px;margin-top:16px}.week-nav{flex-wrap:wrap;justify-content:flex-end}.week-nav button{font-size:11px;padding:8px 9px}.availability-region{display:flex;gap:16px;align-items:flex-end}.availability-region label{min-width:260px}@media(max-width:900px){.team-heading{flex-wrap:wrap}.planning-layout{flex-direction:column}.task-pool{width:100%;max-height:250px}.planning-scroll{width:100%}.planning-range{margin-left:0}}@media(max-width:600px){.planning-toolbar{gap:10px}.week-nav{justify-content:flex-start}.planning-grid{grid-template-columns:125px repeat(var(--planning-days,7),minmax(138px,1fr));min-width:calc(125px + var(--planning-days,7)*138px)}.availability-region{display:block}.availability-region label{min-width:0}}
.calendar-absence,.legend-absence{background:#eef0f3;color:#586170}.calendar-absence{border-left-color:#9ca4b1}.calendar-event,.legend-event{background:#f0eafa;color:#634483}.calendar-event{border-color:#d9c7ed;border-left-color:#936ac2}
/* Real clock planning: all category lanes share a fixed 00–24 scale. */
.planning-scroll{max-height:76vh;overscroll-behavior:contain}.planning-grid{grid-template-columns:150px repeat(var(--planning-days,7),minmax(210px,1fr));min-width:calc(150px + var(--planning-days,7)*210px);align-items:stretch}.planning-day,.planning-corner{z-index:12}.planning-person{z-index:10}.planning-corner small{display:block;font-size:9px;text-transform:none;margin-top:6px}.planning-cell{padding:0 5px 12px}.planning-day-summary{height:62px;box-sizing:border-box;position:relative;padding:8px 2px;font-size:10px}.planning-day-summary .capacity{position:static;display:block;font-size:11px;color:#63728a}.planning-day-summary .cell-add{position:absolute;right:0;bottom:7px;margin:0;font-size:10px;color:#395f98;padding:3px 5px;border:1px solid #cbd8ec;border-radius:4px;background:white}.capacity-warning{display:block;color:#a5263a;font-size:9px;margin-top:3px}.planning-lane-headings{display:flex;justify-content:space-between;gap:6px;margin:4px 2px 8px 34px;font-size:9px;color:#6d7f9a}.planning-clock{position:relative;box-sizing:border-box;margin:0 0 14px;min-height:1152px;background:white}.planning-hour-labels{position:absolute;top:0;left:0;bottom:0;width:34px;background:#fff;z-index:2}.planning-hour-labels span{position:absolute;right:4px;transform:translateY(-50%);font-size:8px;font-variant-numeric:tabular-nums;color:#77869c}.planning-hour-labels span:first-child{transform:none}.planning-hour-labels span:last-child{transform:translateY(-100%)}.planning-clock-surface{position:absolute;top:0;left:34px;right:0;height:100%;border-left:1px solid #d9e1ee;background:repeating-linear-gradient(to bottom,transparent 0,transparent 47px,#c4d1e3 47px,#c4d1e3 48px),repeating-linear-gradient(to bottom,transparent 0,transparent 11px,#f0f3f8 11px,#f0f3f8 12px)}.planning-work-lane{position:absolute;top:0;left:0;width:100%;height:100%;z-index:3}.has-events .planning-work-lane{width:62%}.planning-event-lane{position:absolute;top:0;right:0;width:36%;height:100%;z-index:4;border-left:1px dashed #b99ed8}.planning-absence-band{position:absolute;left:0;right:0;background:repeating-linear-gradient(135deg,#9ca4b129 0,#9ca4b129 5px,#9ca4b149 5px,#9ca4b149 6px);border-top:1px solid #949ead70;box-sizing:border-box;pointer-events:none;z-index:1;overflow:hidden}.planning-absence-band>span{position:sticky;top:0;display:block;color:#687587;font-size:8px;text-align:right;padding:2px}.allocation.timed-allocation{position:absolute;box-sizing:border-box;margin:0;border-right:2px solid white;border-bottom:1px solid white;min-height:0;border-radius:3px;overflow:hidden}.timed-allocation .allocation-content{padding:2px 16px 7px 4px}.timed-allocation .allocation-title{font-size:10px;line-height:12px}.timed-allocation .allocation-content>span{font-size:8px;margin-top:1px}.timed-allocation:focus-within,.timed-allocation:focus{z-index:8;outline:2px solid #335d98;overflow:visible}.timed-allocation:focus-within .allocation-content,.timed-allocation:focus .allocation-content{min-height:56px;background:color-mix(in srgb,var(--project-color) 20%,white);border:1px solid #adc0dc;position:relative;z-index:7}.timed-allocation:focus-within .allocation-edit,.timed-allocation:focus .allocation-edit{z-index:9}.allocation[draggable=false]{cursor:default}.allocation.private-busy,.calendar-event.private-busy{border-left-color:#949ba7;background:#edf0f4;color:#687080}.private-busy .allocation-content>small,.private-busy .allocation-content>span{color:#727985}.timed-event{position:absolute;box-sizing:border-box;min-height:0;margin:0!important;padding:3px!important;overflow:hidden;border-radius:3px!important;font-size:9px!important;border-right:1px solid white}.timed-event strong,.timed-event small{display:block;font-size:8px;line-height:11px;overflow-wrap:anywhere}.timed-event:focus{z-index:9;min-height:52px;outline:2px solid #8060a7}.planning-drop-marker{position:absolute;left:0;right:0;border-top:2px solid #225eba;z-index:11;pointer-events:none}.planning-drop-marker span{position:absolute;top:0;left:0;background:#225eba;color:white;padding:2px 5px;font-size:10px;font-weight:600;border-radius:0 0 4px 4px;white-space:nowrap}.planning-untimed{margin-top:18px;padding:8px;background:#f1f3f8;border:1px dashed #b9c4d5;border-radius:5px}.planning-untimed h3{font-size:10px;margin:0 0 4px}.planning-untimed p{font-size:9px;margin:0 0 7px;color:#738096}.untimed-allocation{min-height:58px;margin-top:5px}.planning-untimed .allocation-content{min-height:58px}.pool-group h3{font-size:10px;color:#536b8e;font-weight:700;line-height:1.5;margin:16px 0 7px;overflow-wrap:anywhere}.pool-task .pool-plan{font-size:10px;color:#3d66a5;text-decoration:underline;margin-top:4px}.task-pool .planning-search-label{display:block;color:#637895;font-size:10px;margin-bottom:6px}.task-pool .planning-search-status,.planning-search-status{font-size:11px;line-height:1.5;color:#617692;margin:0 0 10px}.task-pool input{margin-bottom:8px}.team-dialog [name=taskId][size]{height:170px;min-height:130px;font-size:12px}.team-dialog [name=taskId][size] option{padding:5px 7px}.team-dialog [name=taskId][size] optgroup{color:#6b7291;font-weight:600}.team-dialog [data-plan-search-status]{margin:0}.planning-clock .allocation small{font-size:8px}.planning-clock .resize-grip{height:7px;min-height:0}.planning-cell.drop-target{background:#edf4ff}.planning-person{align-self:stretch}.planning-person .person-avatar{position:sticky;top:75px}
@media(max-width:1000px){.task-pool #pool-list{display:block}.task-pool{max-height:280px}.pool-group{display:inline-block;vertical-align:top;width:220px;margin-right:12px}.pool-task{min-width:0}.planning-scroll{max-height:70vh}.planning-grid{min-width:calc(150px + var(--planning-days,7)*210px)}}
@media(max-width:600px){.planning-grid{grid-template-columns:110px repeat(var(--planning-days,7),minmax(210px,1fr));min-width:calc(110px + var(--planning-days,7)*210px)}.planning-person{padding:14px 8px}.planning-search-label{font-size:11px}.planning-day{padding:15px 5px}.planning-scroll{max-height:68vh}}
.timed-event.owned-private-event{border-left-color:var(--project-color,#936ac2);border-top:2px solid #936ac2;background:color-mix(in srgb,var(--project-color,#936ac2) 18%,white);color:#293952}.event-private-marker{font-weight:700;letter-spacing:.1px}
.planning-person-summary{position:sticky;top:80px}.planning-person-summary .person-avatar{position:static}
/* Broad, direct-manipulation planner. Daily effort and clock time stay distinct. */
.team-page.planning-page{max-width:none;padding:22px 20px 30px}
.planning-page .team-heading{margin-bottom:18px;gap:18px}.planning-page .team-heading h1{font-size:27px;margin-bottom:7px}.planning-page .team-heading p{font-size:13px}
.planning-page .planning-toolbar{gap:12px;margin-bottom:12px}.planning-page .planning-toolbar>button{min-height:38px;padding:8px 12px;font-size:12px}
.planning-page .planning-legend{gap:8px;margin-bottom:14px}.planning-page .planning-legend span{padding:4px 7px}
.planning-page .planning-layout{gap:14px;flex-direction:row;align-items:stretch}
.planning-page .task-pool{flex:0 0 230px;width:230px;min-width:0;padding:15px;box-sizing:border-box;max-height:74vh}
.planning-page .task-pool[hidden]{display:none!important}
.planning-page .planning-scroll{width:auto;min-width:0;max-height:74vh;scroll-padding-top:65px}
.planning-page .planning-grid{grid-template-columns:145px repeat(var(--planning-days,3),minmax(265px,1fr));min-width:calc(145px + var(--planning-days,3)*265px)}
.planning-page .planning-corner,.planning-page .planning-day{padding:16px 12px;font-size:14px;line-height:1.35}
.planning-page .planning-corner{left:0;z-index:14;font-size:12px}
.planning-page .planning-person{padding:18px 12px;background:#f9fbfe}.planning-page .planning-person strong{font-size:13px;line-height:1.45}.planning-page .planning-person small{font-size:11px;line-height:1.55}
.planning-page .planning-person-summary{top:84px}.planning-page .planning-cell{padding:0 12px 18px;border-left-color:#e0e6ef}
.planning-page .planning-day-summary{height:47px;padding:10px 0 8px}.planning-page .planning-day-summary .capacity{font-size:12px;color:#5d6d83;font-variant-numeric:tabular-nums}
.planning-capacity-meter{position:relative;height:4px;margin-top:7px;background:#e4eaf2;border-radius:2px;isolation:isolate}
.planning-capacity-fill{position:absolute;left:0;top:0;height:4px;background:#8da8d1;border-radius:2px;max-width:100%}
.planning-capacity-boundary{position:absolute;top:-3px;bottom:-3px;width:2px;background:#c6384b;transform:translateX(-1px);z-index:1}
.planning-page .planning-cell.overbooked{background:#fff0f2}.planning-page .overbooked .planning-capacity-fill{background:#d36b7c}.planning-page .overbooked .capacity{color:#a62e43}
.planning-page .planning-lane-headings{margin:5px 0 9px 39px;font-size:10px}
.planning-page .planning-clock{min-height:0;background:transparent;margin-bottom:14px}
.planning-page .planning-hour-labels{width:39px;background:transparent;pointer-events:none}.planning-page .planning-hour-labels span{right:6px;font-size:10px}
.planning-page .planning-clock-surface{left:39px;touch-action:pan-x pan-y;background:repeating-linear-gradient(to bottom,transparent 0,transparent 47px,#d3dce9 47px,#d3dce9 48px),repeating-linear-gradient(to bottom,transparent 0,transparent 11px,#eaf0f650 11px,#eaf0f650 12px)}
.planning-page [data-plan-surface]{cursor:crosshair}.planning-page [data-plan-surface]:focus-visible{outline:2px solid #456caa;outline-offset:2px}
.planning-page .planning-work-lane,.planning-page .planning-event-lane{left:0;right:0;width:100%;border:0;pointer-events:none}
.planning-page .planning-work-lane>.allocation,.planning-page .planning-event-lane>.calendar-event{pointer-events:auto}
.planning-page .planning-absence-band{pointer-events:auto;cursor:default}.planning-page .planning-absence-band>span{font-size:10px;padding:3px 5px}
.planning-page .allocation.timed-allocation{border-radius:5px;border-left-width:4px;border-right:3px solid transparent;border-bottom:2px solid transparent;background-clip:padding-box}
.planning-page .timed-allocation .allocation-content{padding:4px 22px 9px 7px}.planning-page .timed-allocation .allocation-title{font-size:13px;line-height:16px;max-height:32px}.planning-page .planning-clock .allocation small{font-size:10px;line-height:12px}.planning-page .timed-allocation .allocation-content>span{font-size:10px;line-height:12px;margin-top:2px}
.planning-page .allocation-edit{font-size:20px;line-height:22px;min-width:24px;min-height:24px;right:0}.planning-page .planning-clock .resize-grip{height:10px;line-height:9px}
.planning-page .timed-event{padding:4px 7px 10px!important;border-right:3px solid transparent;border-bottom:2px solid transparent;background-clip:padding-box;font-size:12px!important;border-radius:5px!important}.planning-page .calendar-event-title{font-size:13px;line-height:16px}.planning-page .timed-event strong,.planning-page .timed-event small{font-size:10px;line-height:12px}.planning-page .calendar-event-resize{height:10px;line-height:9px}
.planning-page .timed-allocation:focus-within .allocation-content,.planning-page .timed-allocation:focus .allocation-content{min-height:68px}.planning-page .timed-event:focus{min-height:64px}
.planning-page .calendar-context{margin-left:39px}.planning-page .calendar-context small{font-size:10px}.planning-page .planning-help{max-width:1100px;font-size:11px}
@media(max-width:1200px){.planning-page .planning-layout{flex-direction:column}.planning-page .task-pool{width:100%;flex-basis:auto;max-height:210px}.planning-page .task-pool #pool-list{display:flex;gap:12px}.planning-page .pool-group{width:220px;flex:0 0 220px;margin-right:0}.planning-page .planning-scroll{width:100%}.planning-page .planning-grid{grid-template-columns:130px repeat(var(--planning-days,3),minmax(240px,1fr));min-width:calc(130px + var(--planning-days,3)*240px)}}
@media(max-width:650px){.team-page.planning-page{padding:16px 10px}.planning-page .planning-grid{grid-template-columns:108px repeat(var(--planning-days,3),minmax(240px,1fr));min-width:calc(108px + var(--planning-days,3)*240px)}.planning-page .planning-person{padding:15px 8px}.planning-page .planning-person strong{font-size:12px}.planning-page .planning-person small{font-size:10px}.planning-page .planning-range{width:100%}.planning-page .planning-scroll{max-height:70vh}}
.planning-page .plan-compact .allocation-content{padding:3px 23px 9px 7px}.planning-page .plan-compact .allocation-content>small{display:none}.planning-page .plan-compact .allocation-title{max-height:16px;white-space:nowrap;text-overflow:ellipsis}.planning-page .plan-compact .allocation-content>span{margin-top:1px}
.planning-page .plan-small .allocation-content{padding-top:1px;padding-bottom:0}.planning-page .plan-small .allocation-content>span{display:none}.planning-page .plan-small .allocation-edit{min-height:18px;line-height:16px;font-size:16px}.planning-page .plan-small .resize-grip{height:5px;line-height:5px}
.planning-page .plan-compact.calendar-event .calendar-event-title{max-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.planning-page .plan-small.calendar-event>small{display:none}.planning-page .plan-small.calendar-event{padding-top:1px!important}.planning-page .plan-small .calendar-event-resize{height:5px;line-height:5px}
.planning-page .plan-compact:focus-within .allocation-title,.planning-page .plan-compact:focus .allocation-title{white-space:normal;max-height:none}.planning-page .plan-small:focus-within .allocation-content>span,.planning-page .plan-small:focus .allocation-content>span,.planning-page .plan-small.calendar-event:focus-within>small,.planning-page .plan-small.calendar-event:focus>small{display:block}.planning-page .plan-compact.calendar-event:focus-within .calendar-event-title,.planning-page .plan-compact.calendar-event:focus .calendar-event-title{white-space:normal;max-height:none}
/* Out-of-range notices never shift one day's clock below its neighbors. */
.planning-page .planning-outside{position:absolute;top:48px;right:12px;width:auto;max-width:calc(100% - 115px);min-height:22px;padding:2px 5px;margin:0;z-index:6;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px}
/* Compact workload stacks: no clock ruler, no hour grid, no empty 24-hour canvas. */
.team-page.planning-page{padding-left:32px;padding-right:26px}
.planning-page .planning-toolbar>label{margin:0;flex-direction:row;align-items:center}
.planning-page .planning-toolbar .planning-view-control{display:flex;flex:0 0 auto;gap:9px;white-space:nowrap}
.planning-page .planning-view-control select{width:auto;min-width:88px;min-height:38px;margin:0}
.planning-page .planning-scroll{box-shadow:0 3px 14px #24344b12,0 1px 3px #24344b0d}
.planning-page .planning-help{box-shadow:none;margin-top:16px}
.planning-page .planning-person,.planning-page .planning-corner{border-right:1px solid #dce3ed;box-shadow:7px 0 11px -8px #26354d70}
.planning-compact .planning-day-summary{height:26px;padding:5px 0 3px}
.planning-compact .planning-day-summary .capacity{font-size:10px;line-height:16px;color:#7b8595}
.planning-compact .planning-cell{padding:0 5px 8px}
.planning-compact .planning-person{padding-top:10px}
.planning-compact .planning-person-summary{top:76px}
.planning-compact .planning-clock{margin:0 0 4px;background:none;min-height:72px}
.planning-compact .planning-clock-surface{left:0;border:0;background:none;cursor:pointer}
.planning-compact .planning-work-lane{width:100%;left:0;z-index:auto}
.planning-compact .planning-work-lane>.calendar-event{pointer-events:auto}
.planning-compact .capacity-line{left:0;right:0;border-top:2px solid #c6384b;z-index:5;pointer-events:none}

/* One fixed-height block geometry for tasks and calendar entries. Text and time
   stay centered even at the 18px minimum; focus never changes the saved height. */
.planning-page.planning-compact .allocation.timed-allocation,.planning-page.planning-compact .calendar-event.timed-event{border:0;border-radius:3px!important;min-height:0;overflow:hidden}
.planning-page.planning-compact .allocation.timed-allocation{background:var(--project-color,#658adb);color:var(--plan-text-color,#17212e)}
.planning-page.planning-compact .calendar-event.timed-event{padding:0!important;background:#27313f;color:#fff;font-size:12px!important}
.planning-page.planning-compact .allocation .allocation-content,.planning-page.planning-compact .calendar-event .planning-event-content{display:grid;align-items:center;align-content:center;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);gap:6px;position:relative;height:100%;min-height:0;max-height:100%;box-sizing:border-box;padding:2px 25px 2px 6px;border:0;border-radius:inherit;background:transparent;color:inherit;overflow:hidden}
.planning-page.planning-compact .allocation .allocation-content>small{display:none}
.planning-page.planning-compact .allocation .allocation-title,.planning-page.planning-compact .calendar-event .calendar-event-title{display:block;min-width:0;min-height:0;max-height:100%;margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:normal;font-size:12px;line-height:14px;font-weight:600;color:inherit;background:transparent;transform:none;box-shadow:none}
.planning-page.planning-compact .allocation .allocation-content>.allocation-duration{display:block;position:static;max-width:none;min-width:0;margin:0;font-size:11px;line-height:14px;font-variant-numeric:tabular-nums;white-space:nowrap;color:inherit}
.planning-page.planning-compact .allocation.plan-compact .allocation-title,.planning-page.planning-compact .calendar-event.plan-compact .calendar-event-title{max-height:14px;white-space:nowrap}
.planning-page.planning-compact .allocation-edit{top:0;right:1px;min-width:20px;min-height:18px;line-height:16px;font-size:16px;color:inherit;background:#ffffff30;border-radius:2px;opacity:0;transform:none;box-shadow:none}
.planning-compact .allocation:hover .allocation-edit,.planning-compact .allocation:focus-within .allocation-edit,.planning-compact .allocation:focus .allocation-edit{opacity:1}
.planning-page.planning-compact .calendar-event .planning-event-content{grid-template-columns:14px minmax(0,1fr) auto auto;gap:5px;padding:2px 6px}
.planning-page.planning-compact .calendar-event .calendar-event-icon{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;font-size:12px;line-height:14px;color:inherit}
.planning-page.planning-compact .calendar-event .calendar-event-icon svg{display:block;width:13px;height:13px;flex-shrink:0}
.planning-page.planning-compact .calendar-event .calendar-event-clock{display:block;margin:0;font-size:11px;line-height:14px;font-variant-numeric:tabular-nums;white-space:nowrap;color:inherit;opacity:1}
.planning-page.planning-compact .calendar-event .calendar-event-meta{display:inline-flex;align-items:center;gap:3px;min-width:0;max-width:80px;overflow:hidden;white-space:nowrap;font-size:9px;line-height:12px}
.planning-page.planning-compact .calendar-event .calendar-event-meta small{display:inline;margin:0;font-size:9px;line-height:12px;color:inherit}
.planning-page.planning-compact .calendar-event.plan-compact .calendar-event-meta,.planning-page.planning-compact .calendar-event .calendar-event-meta:empty{display:none}
.planning-page.planning-compact .calendar-event.plan-compact .planning-event-content{grid-template-columns:14px minmax(0,1fr) auto}
.planning-page.planning-compact .calendar-event.private-busy{background:#e6e9ee;color:#616b79}
.planning-page.planning-compact .calendar-event.owned-private-event{background:var(--project-color,#936ac2);color:var(--plan-text-color,#17212e);box-shadow:inset 3px 0 #936ac2}
.planning-page.planning-compact .calendar-event.is-tentative{background:#f3edf9;color:#674987;outline:1px dashed #9878b6;outline-offset:-1px;opacity:1}
.planning-page.planning-compact .allocation.private-busy{background:#e6e9ee;color:#616b79}
.planning-page.planning-compact .planning-clock .resize-grip,.planning-page.planning-compact .calendar-event-resize{height:4px;line-height:4px;min-height:0;opacity:0;transform:none;box-shadow:none}
.planning-page.planning-compact .allocation:is(:hover,:focus,:focus-within) .resize-grip,.planning-page.planning-compact .calendar-event:is(:hover,:focus,:focus-within) .calendar-event-resize{opacity:1}

/* A separate full-text preview preserves readable keyboard/hover details without
   stretching compact blocks or changing the resize handle's visible position. */
.planning-page.planning-compact :is(.allocation,.calendar-event):is(:hover,:focus,:focus-within){overflow:visible;z-index:9;min-height:0}
.planning-page.planning-compact :is(.allocation,.calendar-event):is(:focus,:focus-within){outline:2px solid #526782;outline-offset:1px}
.planning-page.planning-compact :is(.allocation,.calendar-event)[title]:is(:hover,:focus,:focus-within)::after{content:attr(title);position:absolute;top:calc(100% + 5px);left:0;width:100%;min-width:0;max-width:360px;box-sizing:border-box;padding:7px 9px;border:1px solid #d2dae5;border-radius:5px;background:#fff;color:#27313f;box-shadow:0 4px 14px #24344b26;font-size:11px;font-weight:400;line-height:1.45;white-space:normal;overflow-wrap:anywhere;text-align:left;pointer-events:none;z-index:12}
.planning-page.planning-compact :is(.allocation,.calendar-event).is-resizing{overflow:hidden;z-index:10;min-height:0}
.planning-page.planning-compact :is(.allocation,.calendar-event).is-resizing::after{display:none}
.planning-page.planning-compact :is(.allocation,.calendar-event).is-resizing :is(.allocation-content,.planning-event-content){height:100%;min-height:0;max-height:100%;overflow:hidden}
.planning-page.planning-compact :is(.allocation-title,.calendar-event-title):focus-visible{outline:1px solid currentColor;outline-offset:1px}

/* Grey hatching distinguishes unavailable days without disguising overbooking.
   Partial absences stay in their context badge, leaving the rest of the day clear. */
.planning-compact .planning-cell.unavailable:not(.overbooked):not(.planning-day-off){background:#fff}
.planning-compact .planning-cell.planning-day-off,.planning-compact .planning-day.planning-day-off{background-color:#f3f4f6;background-image:repeating-linear-gradient(135deg,transparent 0,transparent 2px,#adb5bf45 2px,#adb5bf45 2.6px)}
.planning-compact .planning-cell.overbooked{background-color:#fff}
.planning-compact .calendar-context{margin:4px 0 0;gap:3px}
.planning-compact .calendar-context .calendar-absence,.planning-compact .calendar-context .calendar-booked{padding:3px 6px;font-size:10px}
.planning-compact .calendar-context .calendar-absence,.planning-compact .legend-absence{background-color:#eef0f3;background-image:repeating-linear-gradient(135deg,transparent 0,transparent 2px,#adb5bf55 2px,#adb5bf55 2.6px);color:#586170}
.planning-compact .calendar-context small{display:inline;font-size:10px;margin-left:5px}
.planning-compact .legend-event{background:#27313f;color:#fff}
.planning-compact .planning-scroll{max-height:76vh}
.planning-compact .planning-person .person-avatar{width:28px;height:28px;border-radius:8px}
@media(hover:none){.planning-page.planning-compact .allocation-edit{opacity:1}.planning-page.planning-compact .planning-clock .resize-grip,.planning-page.planning-compact .calendar-event-resize{opacity:1;height:6px}.planning-page.planning-compact :is(.allocation,.calendar-event)[title]:hover:not(:focus):not(:focus-within)::after{display:none}}
@media(max-width:650px){.team-page.planning-page{padding-left:16px;padding-right:12px}.planning-page .planning-toolbar{gap:10px}.planning-page .planning-help{margin-top:14px}}

/* Screenshot-led density modes share a duration stack, never a clock axis. */
.planning-page.planning-compact .planning-day{font-weight:400}
.planning-page.planning-compact .planning-day.is-today,.planning-page.planning-compact .planning-cell.is-today{box-shadow:none}
.planning-page.planning-compact .today-marker{font-weight:400}
.planning-page.planning-compact .planning-cell{position:relative;isolation:isolate}
.planning-page.planning-compact .planning-cell.overbooked{background-color:#fff}
.planning-page.planning-compact .planning-cell.overbooked::before{content:"";position:absolute;left:0;right:0;top:var(--overload-top,26px);bottom:0;background:#fbdadd;pointer-events:none;z-index:-1}
.planning-page.planning-compact .capacity-line{border-top-width:1px}
.planning-page.planning-compact .capacity-line[hidden]{display:none!important}
.planning-page.planning-compact .planning-cell.planning-sickness,.planning-page.planning-compact .calendar-context .calendar-sickness,.planning-page.planning-compact .legend-sickness{background-color:#f2f7fc;background-image:repeating-linear-gradient(135deg,transparent 0,transparent 2px,#73a5d566 2px,#73a5d566 2.6px);color:#3d6588}
.planning-page.planning-compact .allocation-title{text-align:left;overflow-wrap:anywhere}
.planning-page.planning-compact .planning-task-title,.planning-page.planning-compact .planning-task-project,.planning-page.planning-compact .planning-task-customer{font:inherit;color:inherit}
.planning-page.planning-compact .planning-clock .resize-grip,.planning-page.planning-compact .calendar-event-resize{cursor:ns-resize;touch-action:none;height:7px;line-height:7px}
.planning-page.planning-compact :is(.allocation,.calendar-event).is-resizing,.planning-page.planning-compact :is(.allocation,.calendar-event).is-resizing *{cursor:ns-resize!important}
.planning-page .planning-legend{justify-content:flex-end;margin:16px 0 0 auto;max-width:100%;font-size:11px}
.planning-page .legend-task{background:#eee;color:#455263;border-left:3px solid #658adb}
.planning-page .legend-tentative{background:#f3edf9;color:#674987;border:1px dashed #9878b6}
.planning-page .legend-overload{background:#fbdadd;color:#923947;border-top:1px solid #c6384b}
.planning-create-options{display:flex;gap:8px;flex-wrap:wrap}
.calendar-editor-dialog{width:min(660px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;padding:24px}
.calendar-editor-dialog h2{font-size:21px;margin-bottom:10px}
.calendar-editor-dialog form{gap:12px}
.calendar-editor-dialog label{margin:0;min-width:0}
.calendar-editor-dialog .calendar-editor-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.calendar-editor-dialog .calendar-editor-row-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.calendar-editor-dialog input,.calendar-editor-dialog select,.calendar-editor-dialog textarea{box-sizing:border-box;width:100%;min-width:0}
.calendar-editor-dialog textarea{min-height:68px;max-height:180px;resize:vertical;line-height:1.4}
.calendar-editor-dialog .team-hint{font-size:11px;line-height:1.45;margin:0 0 10px}
.calendar-editor-dialog .calendar-invitees{margin:0;padding:0;border:0;min-width:0}
.calendar-editor-dialog .calendar-invitees legend{font-size:12px;font-weight:600;padding:0;margin:0 0 6px}
.calendar-editor-dialog .calendar-task-link{padding:8px 10px;margin:0;font-size:12px}
.calendar-editor-dialog .calendar-task-link p{margin:4px 0}
.calendar-editor-dialog .calendar-task-hint{display:none}
.calendar-editor-dialog .calendar-description-view{white-space:pre-wrap;overflow-wrap:anywhere}
.calendar-editor-dialog .calendar-link-hint{font-size:11px;line-height:1.4;color:var(--muted,#6f7485);margin:0}
.calendar-editor-dialog .calendar-private-invitation-reason{font-size:11px;margin:0}
.calendar-editor-dialog .calendar-participants{font-size:11px;max-height:110px;overflow:auto;margin:0}
.calendar-editor-dialog [hidden]{display:none!important}
@media(max-width:650px){.calendar-editor-dialog{padding:20px 16px}.calendar-editor-dialog .calendar-editor-row{grid-template-columns:1fr 1fr}.calendar-editor-dialog .calendar-editor-row>label:first-child{grid-column:1/-1}.calendar-editor-dialog .calendar-editor-row-two>label:first-child{grid-column:auto}.calendar-editor-dialog input,.calendar-editor-dialog select,.calendar-editor-dialog textarea{font-size:16px;min-height:44px}.planning-page .planning-legend{gap:6px}.planning-page.planning-compact .allocation-edit{min-width:24px}}

body.planning-resize-active,body.planning-resize-active *{cursor:ns-resize!important}
.calendar-editor-dialog .calendar-task-link{display:grid;grid-template-columns:1fr 1.25fr;gap:8px 12px;align-items:end}
.calendar-editor-dialog .calendar-task-link .check-label{grid-column:1/-1;justify-content:flex-start}
@media(max-width:650px){.calendar-editor-dialog .calendar-task-link{grid-template-columns:1fr}.calendar-editor-dialog .calendar-task-link .check-label{grid-column:auto}}

/* 0.36: one exact border-box hour scale across tasks, events and leave.
   Labels use only the lines that fit; no text rule may stretch duration geometry. */
.planning-page.planning-compact :is(.allocation.timed-allocation,.calendar-event.timed-event,.planning-absence-band){box-sizing:border-box;min-height:0;max-height:none;margin:0;padding:0!important;border:0;overflow:hidden}
.planning-page.planning-compact :is(.allocation,.calendar-event) :is(.allocation-title,.calendar-event-title){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--planning-text-lines,1);line-clamp:var(--planning-text-lines,1);white-space:normal;max-height:calc(var(--planning-text-lines,1)*14px);min-height:0;line-height:14px;overflow:hidden;text-overflow:ellipsis}
.planning-page.planning-compact .allocation-title>span,.planning-page.planning-compact .planning-label-separator{display:inline;white-space:normal}
.planning-page.planning-compact .allocation .allocation-content{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);align-items:start;align-content:start;padding:2px 24px 2px 6px;gap:5px}
.planning-page.planning-compact .allocation .allocation-duration{align-self:end;max-height:100%;overflow:hidden}
.planning-page.planning-compact .calendar-event .planning-event-content{align-items:start;align-content:start;grid-template-columns:14px minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr);padding:2px 6px;gap:4px}
.planning-page.planning-compact .calendar-event .calendar-event-clock{align-self:end;max-height:100%;overflow:hidden}
.planning-page.planning-compact .calendar-event .calendar-event-meta{display:none}
.planning-page.planning-compact .planning-absence-band{width:100%;left:0;right:0;border-radius:3px;background-color:#eef0f3;background-image:repeating-linear-gradient(135deg,transparent 0,transparent 2px,#adb5bf55 2px,#adb5bf55 2.6px);color:#586170;pointer-events:auto;cursor:default}
.planning-page.planning-compact .planning-absence-band.calendar-sickness{background-color:#f2f7fc;background-image:repeating-linear-gradient(135deg,transparent 0,transparent 2px,#73a5d566 2px,#73a5d566 2.6px);color:#3d6588}
.planning-page.planning-compact .planning-absence-band>.planning-absence-text{display:-webkit-box;position:static;box-sizing:border-box;max-height:100%;padding:2px 6px;color:inherit;font-size:12px;line-height:14px;text-align:left;-webkit-box-orient:vertical;-webkit-line-clamp:var(--planning-text-lines,1);overflow:hidden}
.planning-page.planning-compact .planning-absence-text small{font:inherit;color:inherit;display:inline;margin-left:5px}
.planning-page.planning-compact .planning-absence-band:is(:hover,:focus){overflow:visible;z-index:9;outline:2px solid #526782;outline-offset:1px}
.planning-page.planning-compact .planning-absence-band:is(:hover,:focus)::after{content:attr(title);position:absolute;top:calc(100% + 5px);left:0;box-sizing:border-box;width:100%;padding:7px 9px;border:1px solid #d2dae5;border-radius:5px;background:#fff;color:#27313f;font-size:11px;line-height:1.45;z-index:12;pointer-events:none}
.planning-hour-scale{display:flex;align-items:center;box-sizing:border-box;width:48px;margin:12px 0 0;border-left:2px solid #858d96;border-top:1px solid #858d96;border-bottom:1px solid #858d96;color:#6d747c;font-size:10px;line-height:12px}
.planning-hour-scale span{padding-left:7px}
.planning-page .planning-help{margin:8px 0 0;font-size:11px;line-height:1.4}
.planning-page .planning-search-status:empty{display:none}
.planning-page .planning-legend{margin-top:8px}
/* Full details may leave the fixed box, never enlarge it. Keep this after the
   geometry reset so sighted keyboard users retain the same fallback as hover. */
.planning-page.planning-compact :is(.allocation,.calendar-event):is(:hover,:focus,:focus-within){overflow:visible;z-index:9;min-height:0}
.planning-page.planning-compact :is(.allocation,.calendar-event).is-resizing{overflow:hidden;z-index:10;min-height:0}

/* Team working week: independent hours and optional clock windows per weekday. */
.working-week-page{margin-top:24px}
.working-week-page .availability-section-heading p{margin:0;max-width:760px}
.working-week-page .availability-person{padding:18px}
.working-week-page .availability-person-heading{margin-bottom:14px}
.working-week-page .availability-person-heading h3{line-height:1.5;overflow-wrap:anywhere}
.working-week-page .availability-person-heading [data-weekly-hours]{color:var(--muted,#6f7485);font-size:13px;font-weight:400}
.working-week-page .availability-week{align-items:stretch;gap:8px}
.working-week-page .availability-day{min-width:0;margin:0;padding:10px;border:1px solid #dfe4eb;border-radius:8px;background:#fff;color:#344257}
.working-week-page .availability-day legend{padding:0 4px;font-size:12px;font-weight:600;color:inherit}
.working-week-page .availability-day label{gap:5px;color:#596578;margin:0;font-size:11px}
.working-week-page .availability-day input{box-sizing:border-box;min-height:34px;padding:7px 8px;font-size:12px;line-height:18px;font-variant-numeric:tabular-nums}
.working-week-page .availability-window{display:grid;gap:5px;margin-top:10px}
.working-week-page .availability-window-label{font-size:10px;line-height:1.4;color:#677386}
.working-week-page .availability-window>label{grid-template-columns:23px minmax(0,1fr);align-items:center;gap:4px}
.working-week-page .availability-window input{padding-left:5px;padding-right:5px}
.working-week-page .availability-window-readonly{font-size:11px;margin:10px 0 0;color:#596578;white-space:normal;overflow-wrap:anywhere}
.working-week-page .availability-day.is-day-off{background:#f0f2f4;border-color:#d4d9df;color:#58616e}
.working-week-page .availability-day.is-day-off input{background:#f8f9fa;border-color:#c8ced6;color:#475261}
.working-week-page .availability-day.is-day-off label,.working-week-page .availability-day.is-day-off strong,.working-week-page .availability-day.is-day-off .availability-window-label,.working-week-page .availability-day.is-day-off .availability-window-readonly{color:#58616e}
.working-week-page input:focus-visible,.working-week-page select:focus-visible{outline:2px solid #647da6;outline-offset:2px}
.working-week-page .availability-person-footer{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap;margin-top:16px}
.working-week-page .availability-person-region{min-width:0;max-width:100%;margin:0}
.working-week-page .availability-person-region select{box-sizing:border-box;width:min(100%,300px)}
.working-week-page .availability-person-footer>button{margin:0;font-size:12px;min-height:38px}
@media(max-width:1300px){.working-week-page .availability-week{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.working-week-page .availability-week{grid-template-columns:repeat(2,minmax(0,1fr))}.working-week-page .availability-person{padding:12px}.working-week-page .availability-day input,.working-week-page .availability-person-region select{min-height:44px;font-size:16px}.working-week-page .availability-person-footer{align-items:stretch;flex-direction:column;gap:12px}.working-week-page .availability-person-region select{width:100%}.working-week-page .availability-person-footer>button{min-height:44px}}
@media(max-width:380px){.working-week-page .availability-week{grid-template-columns:1fr}.working-week-page .availability-window{grid-template-columns:1fr 1fr}.working-week-page .availability-window-label{grid-column:1/-1}}
@media(pointer:coarse){.working-week-page .availability-day input,.working-week-page .availability-person-region select,.working-week-page .availability-person-footer>button{min-height:44px}}
/* Flexible daily hours: fragments share one allocation and keep exact heights. */
.planning-page.planning-compact .flexible-allocation .allocation-duration{font-size:10px;max-width:120px;text-overflow:ellipsis;white-space:nowrap}
.planning-page.planning-compact .flexible-allocation.allocation-overflow{box-shadow:inset 0 0 0 1px #c6384b}
.planning-page.planning-compact .planning-absence-band[data-time-width]{right:auto}
