/* The timeline and the booking grid (M5), and the workload (M9).
   The timeline is the Gantt chart's calendar with bands instead of rows: a band per person or room,
   told apart by a hairline and a faint alternate tint, never by a box. The booking grid is a
   booking spreadsheet made legible: bookings are paper on a grey floor, free cells are green tiles, so the gaps
   are what the eye finds first; every period says in words how many are free. */

:root { --ps-free: #e3f2e9; --ps-free-hover: #cfe9da; --ps-today-col: rgba(20, 80, 155, 0.05); --ps-clash-soft: rgba(217, 54, 62, 0.07);
  --ps-wl-track: #e1e7ee; --ps-wl-fill: #5b86bf; }
:root[data-grist-appearance="dark"] { --ps-free: rgba(98, 192, 141, 0.12); --ps-free-hover: rgba(98, 192, 141, 0.22); --ps-today-col: rgba(107, 165, 240, 0.07); --ps-clash-soft: rgba(255, 107, 111, 0.1);
  --ps-wl-track: rgba(255, 255, 255, 0.09); --ps-wl-fill: #6ba5f0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-grist-appearance="light"]) { --ps-free: rgba(98, 192, 141, 0.12); --ps-free-hover: rgba(98, 192, 141, 0.22); --ps-today-col: rgba(107, 165, 240, 0.07); --ps-clash-soft: rgba(255, 107, 111, 0.1);
    --ps-wl-track: rgba(255, 255, 255, 0.09); --ps-wl-fill: #6ba5f0; }
}

/* ---- timeline ---- */
.ps-tl .ps-gantt__list, .ps-tl .ps-gantt__chart { background-image: none; }
.ps-tl__bands { position: absolute; inset: 0; }
.ps-tl__band { position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--ps-line); box-sizing: border-box; }
.ps-tl__band.is-alt { background: var(--ps-stripe); }
.ps-tlane {
  position: absolute; left: 0; right: 0; box-sizing: border-box; padding: 7px 10px 6px 14px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 8px;
  border-bottom: 1px solid var(--ps-line); box-shadow: inset 3px 0 0 var(--lane);
}
.ps-tlane__name { font-weight: 600; font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-tlane__count { font-size: 12px; line-height: 18px; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-tlane__clash { grid-column: 1 / -1; font-size: 11px; font-weight: 600; color: var(--ps-crit); }
.ps-tlane.is-none .ps-tlane__name { font-weight: 500; font-style: italic; color: var(--ps-muted); }
.ps-tlane.is-drop { background: var(--ps-accent-soft); }
.ps-bar.is-clash { box-shadow: 0 0 0 2px var(--ps-crit); }
.ps-ms.is-clash::before { box-shadow: 0 0 0 2px var(--ps-crit); }

/* ---- booking grid ---- */
.ps-book { position: absolute; inset: 0; }
.ps-book__scroll { position: absolute; inset: 0; overflow: auto; outline: none; background: var(--ps-ground); scrollbar-width: thin; }
.ps-book__scroll:focus-visible { box-shadow: inset 0 0 0 2px var(--ps-focus); }
.ps-book__canvas {
  display: grid; position: relative; width: max-content; min-width: 100%;
  grid-template-columns: var(--res-w) var(--grid-w); grid-template-rows: var(--head-h) var(--body-h);
}
.ps-book__corner {
  grid-area: 1 / 1; position: sticky; top: 0; left: 0; z-index: 6; background: var(--ps-surface);
  border-right: 1px solid var(--ps-line); border-bottom: 1px solid var(--ps-line-strong); box-sizing: border-box;
  display: flex; align-items: flex-end; padding: 0 12px 9px 14px; font-size: 12px; font-weight: 600; color: var(--ps-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps-book__head { grid-area: 1 / 2; position: sticky; top: 0; z-index: 4; background: var(--ps-surface); border-bottom: 1px solid var(--ps-line-strong); }
.ps-book__col {
  position: absolute; top: 0; height: 100%; box-sizing: border-box; border-left: 1px solid var(--ps-line);
  padding: 7px 8px 6px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; overflow: hidden; white-space: nowrap;
}
.ps-book__col.is-month { border-left-color: var(--ps-line-strong); }
.ps-book__label { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ps-book__free { font-size: 11px; font-weight: 600; color: var(--ps-ok); font-variant-numeric: tabular-nums; }
.ps-book__free.is-full { font-weight: 500; color: var(--ps-muted); }
.ps-book__col.is-today { box-shadow: inset 0 -2px 0 var(--ps-accent); }
.ps-book__col.is-today .ps-book__label { color: var(--ps-accent); }

.ps-book__side { grid-area: 2 / 1; position: sticky; left: 0; z-index: 5; background: var(--ps-surface); border-right: 1px solid var(--ps-line-strong); }
.ps-book__res {
  position: absolute; left: 0; right: 0; box-sizing: border-box; padding: 0 10px 0 14px; border-bottom: 1px solid var(--ps-line);
  display: flex; flex-direction: column; justify-content: center; gap: 1px; box-shadow: inset 3px 0 0 var(--lane);
}
.ps-book__resname { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-book__res.is-none .ps-book__resname { font-style: italic; color: var(--ps-muted); }
.ps-book__clash { font-size: 11px; font-weight: 600; color: var(--ps-crit); }
.ps-book__res.is-drop { background: var(--ps-accent-soft); }

.ps-book__body {
  grid-area: 2 / 2; position: relative; overflow: clip;
  background-image: repeating-linear-gradient(to right, transparent 0 calc(var(--col-w) - 1px), var(--ps-line) calc(var(--col-w) - 1px) var(--col-w));
}
.ps-book__row { position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--ps-line); box-sizing: border-box; }
.ps-book__todaycol { position: absolute; top: 0; bottom: 0; background: var(--ps-today-col); }
.ps-book__cell {
  position: absolute; box-sizing: border-box; background: var(--ps-free); background-clip: padding-box;
  border: 3px solid transparent; border-radius: 6px; display: grid; place-items: center;
}
.ps-book__cell.can-book { cursor: pointer; }
.ps-book__cell.can-book:hover { background-color: var(--ps-free-hover); }
.ps-book__plus { font-size: 11px; font-weight: 600; color: var(--ps-ok); opacity: 0; transition: opacity 0.12s; }
.ps-book__cell.can-book:hover .ps-book__plus { opacity: 1; }
.ps-book.is-dragging .ps-book__plus { opacity: 0 !important; }

.ps-blk {
  position: absolute; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 11px;
  background: var(--ps-card); border: 1px solid var(--ps-card-line); border-radius: 6px; box-shadow: 0 1px 0 var(--ps-card-line);
  font-size: 12px; line-height: 1.2; overflow: hidden; white-space: nowrap; user-select: none; z-index: 1;
}
.ps-blk.has-stripe::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--stripe); }
.ps-blk.can-move { cursor: grab; }
.ps-blk:hover { border-color: var(--ps-line-strong); }
.ps-blk__label { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.ps-blk__dates { flex: none; font-size: 11px; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-blk__flag { flex: none; font-size: 11px; font-weight: 600; color: var(--ps-crit); }
.ps-blk.is-clash { border-color: var(--ps-crit); background: linear-gradient(var(--ps-clash-soft), var(--ps-clash-soft)), var(--ps-card); }
.ps-blk.is-selected { border-color: var(--ps-focus); box-shadow: 0 0 0 1px var(--ps-focus); z-index: 2; }
.ps-blk.is-lifted { opacity: 0.45; }
.ps-blk--ghost { background: transparent; border: 1.5px dashed var(--ps-focus); box-shadow: none; pointer-events: none; z-index: 3; }
.ps-book.is-dragging, .ps-book.is-dragging * { cursor: grabbing !important; }
.ps-book__cursor { position: absolute; box-sizing: border-box; border: 2px solid var(--ps-focus); border-radius: 6px; pointer-events: none; z-index: 3; }

/* ---- workload (M9) ----
   A resource sheet: each cell says the hours asked against the hours there are, over a thin meter
   whose track is the capacity. Past it the meter runs on in the warning colour, beyond a tick, and the
   cell says how many hours over; a week that fits but has days that do not says so in words. Red is
   the one warning colour, always with words. A day with no capacity (a weekend, a holiday, a day off) is hatched. */
.ps-wl .ps-book__body { background-image: repeating-linear-gradient(to right, transparent 0 calc(var(--col-w) - 1px), var(--ps-line) calc(var(--col-w) - 1px) var(--col-w)); background-color: var(--ps-surface); }
.ps-wl .ps-book__row.is-alt { background: var(--ps-stripe); }
.ps-wl__team { font-size: 11px; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-wl__team.is-over { color: var(--ps-crit); font-weight: 600; }
.ps-wl__cap { font-size: 12px; line-height: 15px; color: var(--ps-muted); font-variant-numeric: tabular-nums; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ps-wl__cap.is-over { color: var(--ps-crit); font-weight: 600; }
.ps-wl__cell { position: absolute; box-sizing: border-box; cursor: pointer; border-right: 1px solid var(--ps-line); }
.ps-wl__cell:hover { background: var(--ps-hover); }
.ps-wl__num { position: absolute; left: 10px; top: 8px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-wl__cell.is-free .ps-wl__num { font-weight: 500; color: var(--ps-muted); }
.ps-wl__cell.is-over .ps-wl__num { color: var(--ps-crit); font-weight: 600; }
.ps-wl__note { position: absolute; left: 10px; right: 6px; top: 26px; font-size: 11px; font-weight: 600; color: var(--ps-crit); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-wl__meter { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 5px; border-radius: 999px; background: var(--ps-wl-track); }
.ps-wl__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--ps-wl-fill); }
.ps-wl__cell.is-over .ps-wl__fill { background: var(--ps-wl-fill); border-radius: 999px 0 0 999px; }
.ps-wl__spill { position: absolute; top: 0; bottom: 0; background: var(--ps-crit); border-radius: 0 3px 3px 0; }
.ps-wl__meter.has-tick::after { content: ""; position: absolute; left: calc(100% / 1.5); top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ps-ink); border-radius: 999px; }
.ps-wl__cell.is-off { cursor: default; background: repeating-linear-gradient(135deg, var(--ps-weekend) 0 5px, transparent 5px 10px); }
.ps-wl__cell.is-off:hover { background: repeating-linear-gradient(135deg, var(--ps-weekend) 0 5px, transparent 5px 10px); }
.ps-wl__cell.is-offday { background: var(--ps-clash-soft); }
.ps-wl__offword { position: absolute; left: 0; right: 0; top: 21px; text-align: center; font-size: 11px; color: var(--ps-muted); }
/* the past: same words, quieter ink and a grey meter, so the overloads still ahead are the loud ones */
.ps-wl__cell.is-past .ps-wl__num, .ps-wl__cell.is-past .ps-wl__note { color: var(--ps-muted); }
.ps-wl__cell.is-past .ps-wl__fill { background: var(--ps-line-strong); }
.ps-wl__cell.is-past .ps-wl__spill { background: var(--ps-muted); }
.ps-wl__pop {
  position: absolute; z-index: 12; width: min(330px, calc(100% - 16px)); box-sizing: border-box; padding: 10px 0 8px;
  background: var(--ps-surface); border: 1px solid var(--ps-line-strong); border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.ps-wl__pophead { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 8px; border-bottom: 1px solid var(--ps-line); }
.ps-wl__pophead strong { font-size: 13px; }
.ps-wl__pophead span { font-size: 12px; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-wl__pophead span.is-over { color: var(--ps-crit); font-weight: 600; }
.ps-wl__tasks { max-height: 240px; overflow: auto; padding: 4px 0; }
.ps-wl__task { display: flex; align-items: baseline; gap: 10px; width: 100%; box-sizing: border-box; padding: 7px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ps-wl__task:hover, .ps-wl__task:focus-visible { background: var(--ps-hover); outline: none; }
.ps-wl__task:focus-visible { box-shadow: inset 2px 0 0 var(--ps-focus); }
.ps-wl__task.is-selected { background: var(--ps-sel); }
.ps-wl__tname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ps-wl__late { display: block; font-size: 11px; font-weight: 600; color: var(--ps-crit); overflow: hidden; text-overflow: ellipsis; }
.ps-wl__th { flex: none; font-size: 12px; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-wl__pophint { margin: 0; padding: 6px 12px 0; font-size: 11px; color: var(--ps-muted); }

/* ---- the agenda (M11) ----
   A list, not cards: groups under a ruled heading, rows between hairlines, each at least 52px tall so a
   thumb hits it. Red is for late only and always comes with the words ("3 days late"); the task's own
   colour is a thin stripe, as on the board. */
.ps-ag { position: absolute; inset: 0; overflow-y: auto; background: var(--ps-ground); outline: none; }
.ps-ag__col { max-width: 720px; margin: 0 auto; padding: 2px 14px 40px; box-sizing: border-box; }
.ps-ag__group { margin-top: 12px; }
.ps-ag__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 10px 2px 6px;
  background: var(--ps-ground); border-bottom: 1px solid var(--ps-line-strong); font-size: 13px; font-weight: 700;
}
.ps-ag__group.is-late .ps-ag__head { color: var(--ps-crit); border-bottom-color: var(--ps-crit); }
.ps-ag__count { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-ag__group.is-late .ps-ag__count { color: var(--ps-crit); font-weight: 600; }
.ps-ag__list { list-style: none; margin: 0; padding: 0; }
.ps-ag__item { border-bottom: 1px solid var(--ps-line); }
.ps-ag__row {
  position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; box-sizing: border-box; min-height: 52px;
  padding: 9px 4px 9px 14px; border: 0; background: var(--ps-card); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.ps-ag__row.has-stripe::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 999px; background: var(--stripe); }
.ps-ag__row:hover { background: var(--ps-surface-2); }
.ps-ag__row.is-selected, .ps-ag__row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ps-focus); }
.ps-ag__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ps-ag__title {
  font-size: 15px; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ps-ag__details { font-size: 12px; line-height: 1.4; color: var(--ps-muted); overflow-wrap: anywhere; }
.ps-ag__late { flex: none; padding-top: 2px; font-size: 12px; font-weight: 600; color: var(--ps-crit); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ps-ag__more { display: block; width: 100%; min-height: 40px; border: 0; background: none; color: var(--ps-accent); font: inherit; font-size: 13px; cursor: pointer; text-align: left; padding: 0 4px 0 14px; }
.ps-ag__more:hover { text-decoration: underline; }
.ps-ag__empty { max-width: 420px; padding: 36px 18px; }
.ps-ag__empty h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.ps-ag__empty p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ps-muted); }

/* ---- the calendar (M12) ----
   Rows of seven days between hairlines. A bar is a task on the days it covers: the task's colour as a
   stripe on its left, as on the board's cards, and its name. Blue is only for today and for what is
   selected; there is no red here, because late is the agenda's word. Weekends and holidays are tinted. */
.ps-cal { --bar-h: 24px; position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--ps-ground); outline: none; }
.ps-cal--week { --bar-h: 30px; }
.ps-cal:focus-visible { box-shadow: inset 0 0 0 2px var(--ps-focus); }
.ps-cal__head { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; flex-wrap: wrap; }
.ps-cal__nav { padding: 3px 11px; font-size: 18px; line-height: 1.2; }
.ps-cal__title { flex: 1 1 auto; min-width: 10ch; margin: 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ps-cal__weekdays, .ps-cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ps-cal__weekdays { flex: none; margin: 0 12px; border: 1px solid var(--ps-line-strong); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--ps-surface-2); }
.ps-cal__weekdays span { padding: 5px 8px; font-size: 12px; font-weight: 600; color: var(--ps-muted); }
.ps-cal__weeks { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 12px 12px; display: flex; flex-direction: column; border: 1px solid var(--ps-line-strong); border-radius: 0 0 6px 6px; background: var(--ps-surface); }
.ps-cal__week {
  position: relative; flex: 1 0 auto; border-bottom: 1px solid var(--ps-line);
  grid-template-rows: 28px repeat(var(--tracks), var(--bar-h)) minmax(20px, auto);
  min-height: calc(28px + var(--tracks) * var(--bar-h) + 20px);
}
.ps-cal__week:last-child { border-bottom: 0; }
.ps-cal__day { grid-row: 1 / -1; display: flex; align-items: flex-start; min-width: 0; padding: 3px 4px; border-right: 1px solid var(--ps-line); }
.ps-cal__day:nth-child(7) { border-right: 0; }
.ps-cal__day.is-off { background: var(--ps-weekend); }
.ps-cal__day.is-drop { background: var(--ps-sel); box-shadow: inset 0 0 0 2px var(--ps-focus); }
.ps-cal__num {
  min-width: 24px; height: 22px; padding: 0 6px; box-sizing: border-box; border: 0; border-radius: 999px; background: none; color: var(--ps-ink);
  font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer;
}
.ps-cal__num:hover { background: var(--ps-hover); }
/* A day's own "+": there when the pointer is, or the focus, so an empty month stays quiet. */
.ps-cal__add {
  margin-left: auto; min-width: 24px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ps-muted);
  font: inherit; font-size: 15px; line-height: 1; cursor: pointer; opacity: 0;
}
.ps-cal__day:hover .ps-cal__add, .ps-cal__add:focus-visible { opacity: 1; }
.ps-cal__add:hover { background: var(--ps-hover); color: var(--ps-ink); }
@media (hover: none) { .ps-cal__add { opacity: 0.55; } }
.ps-cal__day.is-outside .ps-cal__num { color: var(--ps-muted); }
.ps-cal__num.is-today { background: var(--ps-accent); color: var(--ps-accent-ink); font-weight: 700; }
.ps-cal__chip {
  align-self: center; min-width: 0; height: calc(var(--bar-h) - 3px); margin: 0 3px; padding: 0 6px 0 5px; box-sizing: border-box; display: flex; align-items: center;
  border: 1px solid var(--ps-card-line); border-left: 3px solid var(--stripe, var(--ps-line-strong)); border-radius: 4px; background: var(--ps-card); color: var(--ps-ink);
  font: inherit; font-size: 12px; font-weight: 500; text-align: left; cursor: pointer; touch-action: pan-y; user-select: none;
}
.ps-cal--week .ps-cal__chip { font-size: 13px; }
.ps-cal__chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-cal__chip-meta { flex: 0 100 auto; min-width: 0; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ps-muted); font-size: 12px; font-weight: 400; }
.ps-cal__chip:hover { border-color: var(--ps-line-strong); border-left-color: var(--stripe, var(--ps-line-strong)); }
.ps-cal__chip.is-movable { cursor: grab; }
.ps-cal__chip.is-from-left { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.ps-cal__chip.is-to-right { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ps-cal__chip.is-milestone::before { content: "◆"; flex: none; margin-right: 5px; font-size: 8px; color: var(--stripe, var(--ps-muted)); }
.ps-cal__chip.is-done { color: var(--ps-muted); }
.ps-cal__chip.is-done .ps-cal__chip-text { text-decoration: line-through; }
.ps-cal__chip.is-selected, .ps-cal__chip:focus-visible { outline: none; border-color: var(--ps-focus); border-left-color: var(--stripe, var(--ps-focus)); box-shadow: 0 0 0 1px var(--ps-focus); }
.ps-cal__chip.is-dragging { opacity: 0.4; }
.ps-cal.is-dragging, .ps-cal.is-dragging .ps-cal__chip { cursor: grabbing; }
.ps-cal__more { align-self: start; height: 18px; padding: 0 8px; border: 0; background: none; color: var(--ps-muted); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.ps-cal__more:hover { color: var(--ps-ink); text-decoration: underline; }
.ps-cal__ghost { position: fixed; z-index: 30; max-width: 320px; padding: 5px 9px; border-radius: 6px; background: var(--ps-tip-bg); color: var(--ps-tip-ink); font-size: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- the overview (M19) ----
   Numbers first, then bars. The row of counts sits between hairlines (each cell rules its right and bottom edge, the box clips the outer ones,
   so it stays ruled however it wraps); late is the only red, and always says "late". A bar is done / open / late with its words beside
   it, as long as its group is big against the biggest, so size and make-up read together. No shadows, no icons. */
.ps-ov { position: absolute; inset: 0; overflow-y: auto; background: var(--ps-ground); outline: none; }
.ps-ov__col { max-width: 920px; margin: 0 auto; padding: 18px 16px 48px; box-sizing: border-box; }
.ps-ov__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); margin: 0; background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 10px; overflow: hidden; }
.ps-ov__kpi { display: grid; grid-template-areas: "n" "l" "x"; align-content: start; gap: 2px; padding: 12px 14px; min-width: 0; box-shadow: 1px 1px 0 var(--ps-line); }
.ps-ov__kpi dd { grid-area: n; margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ps-ov__kpi dt { grid-area: l; font-size: 12px; color: var(--ps-muted); }
.ps-ov__note { grid-area: x; font-size: 11px; color: var(--ps-muted); font-variant-numeric: tabular-nums; }
.ps-ov__kpi.is-late dd, .ps-ov__kpi.is-late dt { color: var(--ps-crit); }
.ps-ov__block { margin-top: 26px; min-width: 0; }
.ps-ov__h { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--ps-line-strong); font-size: 13px; font-weight: 700; }
.ps-ov__rows, .ps-ov__list { list-style: none; margin: 0; padding: 0; }
.ps-ov__row { display: grid; grid-template-columns: minmax(96px, 200px) minmax(80px, 1fr) minmax(130px, auto); align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--ps-line); }
.ps-ov__name { min-width: 0; padding: 3px 0; border: 0; background: none; color: var(--ps-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-ov__name:hover { text-decoration: underline; }
.ps-ov__bar { display: flex; height: 10px; border-radius: 999px; background: var(--ps-line); overflow: hidden; }
.ps-ov__seg { display: block; height: 100%; }
.ps-ov__seg--done { background: var(--ps-ok); }
.ps-ov__seg--open { background: var(--ps-bar); }
.ps-ov__seg--late { background: var(--ps-crit); }
.ps-ov__nums { font-size: 12px; color: var(--ps-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ps-ov__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; }
.ps-ov__task { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 12px; width: 100%; box-sizing: border-box; padding: 7px 2px; border: 0; border-bottom: 1px solid var(--ps-line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ps-ov__task:hover { background: var(--ps-hover); }
.ps-ov__title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-ov__who { font-size: 12px; color: var(--ps-muted); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-ov__when { font-size: 12px; color: var(--ps-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ps-ov__when.is-late { color: var(--ps-crit); font-weight: 600; }
.ps-ov__none { margin: 8px 0 0; font-size: 13px; color: var(--ps-muted); }
.ps-ov__empty { max-width: 420px; padding: 36px 18px; }
.ps-ov__empty h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.ps-ov__empty p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ps-muted); }
@media (max-width: 600px) {
  .ps-ov__col { padding: 12px 12px 40px; }
  .ps-ov__kpis { grid-template-columns: repeat(2, 1fr); }
  .ps-ov__row { grid-template-columns: 1fr auto; grid-template-areas: "name nums" "bar bar"; row-gap: 4px; }
  .ps-ov__name { grid-area: name; }
  .ps-ov__nums { grid-area: nums; }
  .ps-ov__bar { grid-area: bar; }
  .ps-ov__lists { grid-template-columns: 1fr; }
}

/* the edges of a calendar bar that change its start and its end (M28) */
.ps-cal__chip { position: relative; }
.ps-cal__h { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; touch-action: none; }
.ps-cal__h--l { left: -3px; }
.ps-cal__h--r { right: -3px; }
.ps-cal__h::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 3px; width: 2px; border-radius: 999px; background: var(--ps-muted); opacity: 0; }
.ps-cal__chip:hover .ps-cal__h::after, .ps-cal__chip.is-selected .ps-cal__h::after, .ps-cal__chip:focus-visible .ps-cal__h::after { opacity: 0.8; }
