.ww-week { --wd-axis:47px; --wd-hour:48px; --wd-line:#dce6e9; --ww-column:74px; min-width:0; }
.ww-scroll { isolation:isolate; }
.ww-grid { position:relative; display:grid; grid-template-columns:var(--ww-tracks); width:100%; }
.ww-head,.ww-fulls,.ww-hours { grid-column:1 / -1; display:grid; grid-template-columns:subgrid; }
.ww-head { position:sticky; top:0; z-index:6; }
.ww-fulls.ww-pinned { position:sticky; z-index:5; }
.ww-head > *,.ww-fulls > * { border:0; border-right:1px solid var(--wd-line); border-bottom:1px solid var(--wd-line); border-radius:0; }
.ww-corner {
  position:sticky; left:0; z-index:1; display:grid; place-content:center; padding:3px;
  text-align:center; font-size:.61rem; font-weight:650; color:#5a6e77; background:#f7fafb;
}
.ww-day-head { min-width:0; height:38px; display:flex; align-items:center; justify-content:center; gap:5px; background:white; color:var(--navy); }
.ww-day-head span { font-size:.66rem; font-weight:600; }
.ww-day-head strong { font-size:.86rem; font-variant-numeric:tabular-nums; }
.ww-day-head:nth-last-child(-n+2) { background:#f6f8fa; }
.ww-day-head[data-selected] { box-shadow:inset 0 -2px #42796f; }
.ww-day-head[aria-current=date] strong { padding:2px 5px; background:var(--teal-deep); border-radius:4px; color:white; }
.ww-day-head:is(:hover,:focus-visible) { background:#edf5f3; }
.ww-full-cell { display:flex; flex-direction:column; justify-content:center; align-items:stretch; gap:3px; padding:3px; background:white; min-width:0; }
.ww-full-cell .wd-full-event { padding:2px 4px; }
.ww-add-all { align-self:center; border:0; border-radius:3px; padding:0 7px; color:#587478; background:transparent; font-size:.84rem; }
.ww-add-all:hover,.ww-add-all:focus-visible { color:var(--teal-deep); background:#eef5f3; }
.ww-track { border-right:1px solid var(--wd-line); }
.ww-track .wd-events { inset-inline:2px 0; }
.ww-track .wd-event { padding-inline:3px; gap:1px; }
.ww-track .wd-details { flex-direction:column; align-items:flex-start; gap:0; }
.ww-track .wd-slot { scroll-margin:80px 0 0 var(--wd-axis); }
@container work-calendar (max-width:600px) {
  .ww-week { --ww-column:100px; --wd-axis:41px; }
  .ww-head .ww-day-head { height:36px; }
}
@container work-calendar (max-width:600px) {
  .ww-week { --wd-axis:40px; --ww-column:100px; }
}
