/*! Perspective calendar layout (#42) and editing (#43).
 *
 * The calendar's left pane, navigation bar, time grid, month grid and event details, with
 * the theme's token variables; linked after app.css. Events take their calendar's colour
 * from `--p-color` (validated by the UI: a hex or named colour) as a bar and a tint, so
 * their text keeps the theme's foreground. Sizes here must match the UI: 22 px rows of the
 * month view (`month.rs`), the details' width (`peek.rs`).
 */

/* ------------------------------------------------------------------ left pane */

.p-CalendarPane {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 240px;
  min-height: 0;
  border-inline-end: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground2);
}
.p-CalendarPane__content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 8px 12px;
}

.p-MiniMonth__header {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 0 4px 6px;
}
.p-MiniMonth__title {
  flex: 1;
  margin: 0;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-MiniMonth__grid {
  display: grid;
  gap: 2px;
}
.p-MiniMonth__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.p-MiniMonth__grid[data-week-numbers] .p-MiniMonth__row {
  grid-template-columns: 22px repeat(7, minmax(0, 1fr));
}
.p-MiniMonth__dayHead,
.p-MiniMonth__weekHead,
.p-MiniMonth__weekNum {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  font-size: var(--fontSizeBase200);
  color: var(--colorNeutralForeground3);
}
.p-MiniMonth__weekNum {
  height: 28px;
  font-size: var(--fontSizeBase100);
}
.p-MiniMonth__day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border-radius: var(--borderRadiusCircular);
  font-size: var(--fontSizeBase200);
  color: var(--colorNeutralForeground1);
  cursor: pointer;
  outline: none;
}
/* The alternate calendar's day under each date (#271). */
.p-MiniMonth__grid[data-alternate] .p-MiniMonth__day {
  flex-direction: column;
  height: 36px;
  line-height: 1.1;
  border-radius: var(--borderRadiusMedium);
}
.p-MiniMonth__alt {
  font-size: var(--fontSizeBase100);
  color: var(--colorNeutralForeground3);
}
.p-MiniMonth__day[data-outside] {
  color: var(--colorNeutralForeground3);
}
.p-MiniMonth__day:hover {
  background-color: var(--colorSubtleBackgroundHover);
}
.p-MiniMonth__day[aria-selected="true"] {
  border-radius: 0;
  background-color: var(--colorBrandBackground2);
}
.p-MiniMonth__day[aria-current="date"] > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
  font-weight: var(--fontWeightSemibold);
}
.p-MiniMonth__day:focus-visible {
  box-shadow: inset 0 0 0 2px var(--colorStrokeFocus2);
}

.p-CalendarList {
  margin-top: 16px;
}
.p-CalendarList__title {
  margin: 0 0 4px;
  padding: 0 6px;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-CalendarList__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-CalendarList__item {
  display: flex;
  padding: 2px 0;
}
.p-CalendarList__item .fui-Checkbox[data-checked="true"] .fui-Checkbox__indicator {
  border-color: var(--p-color);
  background-color: var(--p-color);
}
.p-CalendarList__item .fui-Checkbox .fui-Checkbox__indicator {
  border-color: var(--p-color);
}
.p-CalendarList__empty {
  margin: 4px 6px;
  color: var(--colorNeutralForeground3);
}
/* The list's title and its menu (#47). */
.p-CalendarList__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding-right: 2px;
}
.p-CalendarList__header .p-CalendarList__title {
  margin-bottom: 0;
}
/* The calendars another account shares in, under its name. */
.p-CalendarList__group {
  margin: 8px 0 2px;
  padding: 0 6px;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
  color: var(--colorNeutralForeground3);
}
.p-CalendarList__item {
  align-items: center;
  gap: 2px;
}
.p-CalendarList__item .fui-Checkbox {
  flex: 1;
  min-width: 0;
}
.p-CalendarList__pending {
  flex: none;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
/* A calendar's menu shows under the pointer and with the focus; always without hover. */
.p-CalendarList__menu {
  flex: none;
  opacity: 0;
}
.p-CalendarList__item:hover .p-CalendarList__menu,
.p-CalendarList__item:focus-within .p-CalendarList__menu,
.p-CalendarList__menu[aria-expanded="true"] {
  opacity: 1;
}
@media (hover: none) {
  .p-CalendarList__menu {
    opacity: 1;
  }
}
@media (forced-colors: active) {
  .p-CalendarList__menu {
    opacity: 1;
  }
}

/* ------------------------------------------------------------------ calendar dialogs */

.p-CalendarDialog form {
  display: contents;
}
.p-CalendarDialog__error {
  margin: -4px 0 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-CalendarDialog__error:empty {
  display: none;
}
.p-CalendarDialog__colors {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-CalendarDialog__colors .p-Choices[data-style="swatches"] {
  flex-wrap: wrap;
}
.p-CalendarDialog__file {
  font: inherit;
  color: var(--colorNeutralForeground1);
}
.p-CalendarDialog__result:empty {
  display: none;
}
.p-ShareList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-ShareList__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
}
.p-ShareList__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
  align-self: center;
}
.p-ShareList__item .p-Field__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.p-ShareList__pending {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-ShareForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
}
.p-ShareForm__hint {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}

/* ------------------------------------------------------------------ surface */

.p-Calendar {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background-color: var(--colorNeutralBackground1);
}
.p-CalendarNav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
}
.p-CalendarNav__title {
  margin: 0 0 0 8px;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-CalendarNotice {
  flex: none;
  padding: 0 16px 8px;
}
.p-Calendar__view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.p-CalendarLoading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------ events */

.p-Event {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  overflow: hidden;
  margin: 0;
  padding: 2px 6px 2px 8px;
  border: 0;
  border-inline-start: 3px solid var(--p-color);
  border-radius: var(--borderRadiusMedium);
  background-color: color-mix(in srgb, var(--p-color) 18%, var(--colorNeutralBackground1));
  color: var(--colorNeutralForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  text-align: start;
  cursor: pointer;
}
.p-Event:hover {
  background-color: color-mix(in srgb, var(--p-color) 28%, var(--colorNeutralBackground1));
}
.p-Event:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 1px;
  z-index: 3;
}
.p-Event__title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fontWeightSemibold);
}
.p-Event__time,
.p-Event__location {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--colorNeutralForeground2);
}
.p-Event__icon {
  position: absolute;
  inset-inline-end: 4px;
  top: 3px;
  display: inline-flex;
  font-size: 14px;
  color: var(--colorNeutralForeground2);
}
/* An event's icon (#343), before its title in every view; the title keeps its place. */
.p-Event__badge,
.p-MyDayEvent__title .p-Event__badge {
  display: inline-block;
  margin-inline-end: 4px;
  font-size: 14px;
  line-height: 1;
  vertical-align: -2px;
  color: var(--colorNeutralForeground2);
}
.p-Event--block:has(.p-Event__icon) .p-Event__title {
  padding-inline-end: 16px;
}
.p-Event[data-state="tentative"] {
  border-inline-start-style: dashed;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 6px,
    color-mix(in srgb, var(--p-color) 12%, transparent) 6px 9px
  );
}
.p-Event[data-state="cancelled"] .p-Event__title {
  text-decoration: line-through;
}
/* Followed (#261): declined, and kept in view, its title in italics. */
.p-Event[data-followed] .p-Event__title {
  font-style: italic;
}
/* Shown as free (#260): its bar hollow, as Show as's swatch draws it. */
.p-Event[data-free],
.p-MyDayEvent[data-free] .p-MyDayEvent__open {
  border-inline-start-style: double;
}
.p-Event[data-continues-before] {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}
.p-Event[data-continues-after] {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}
/* A change not on the server yet (#43): outlined, as Outlook marks unsent changes. */
.p-Event[data-pending] {
  outline: 1px dashed color-mix(in srgb, var(--p-color) 70%, var(--colorNeutralForeground1));
  outline-offset: -1px;
}
/* The occurrence a drag or a key moves. */
.p-Event[data-moving] {
  z-index: 4;
  box-shadow: var(--shadow8);
  background-color: color-mix(in srgb, var(--p-color) 32%, var(--colorNeutralBackground1));
}
/* The bottom edge of a block resizes it. */
.p-Event__resize {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 6px;
  cursor: ns-resize;
}
.p-TimeGrid,
.p-MonthGrid {
  /* A drag never selects text. */
  user-select: none;
  -webkit-user-select: none;
}
/* The free time the pointer selects for a new event. */
.p-Selection {
  position: absolute;
  inset-inline: 2px;
  z-index: 2;
  border-radius: var(--borderRadiusMedium);
  border: 1px solid var(--colorBrandStroke1);
  background-color: color-mix(in srgb, var(--colorBrandBackground) 20%, transparent);
  pointer-events: none;
}

/* ------------------------------------------------------------------ time grid */

.p-TimeGrid {
  /* A row of the time scale (#267); the grid sets the hour's height from its scale. */
  --p-row: 24px;
  --p-hour: 48px;
  --p-gutter: 56px;
  --p-bar-height: 24px;
  /* Blocks leave the right of their day free, as Outlook does. */
  --p-lane-width: 0.92;
  flex: 1;
  display: flex;
  min-height: 0;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-TimeGrid__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.p-TimeGrid__top {
  position: sticky;
  top: 0;
  z-index: 4;
  background-color: var(--colorNeutralBackground1);
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-TimeGrid__head,
.p-TimeGrid__allDay,
.p-TimeGrid__body {
  display: grid;
  /* Each day's width (#271): equal, or wider for busier days. */
  grid-template-columns: var(--p-gutter) var(--p-columns, repeat(var(--p-days), minmax(0, 1fr)));
}
.p-TimeGrid__gutter {
  border-inline-end: 1px solid var(--colorNeutralStroke2);
}
/* The labels of the zones' hour columns (#271). */
.p-TimeGrid__zones {
  display: flex;
  align-items: flex-end;
  height: 100%;
}
.p-TimeGrid__zoneLabel {
  flex: 1;
  min-width: 0;
  padding: 0 8px 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: end;
  font-size: var(--fontSizeBase100);
  color: var(--colorNeutralForeground3);
}
.p-DayHead__alt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fontSizeBase200);
  color: var(--colorNeutralForeground3);
}
.p-DayHead {
  display: flex;
  min-width: 0;
  padding: 6px 4px 4px;
  border-inline-end: 1px solid var(--colorNeutralStroke3);
}
.p-DayHead__inner {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  padding: 2px 6px;
  border: 0;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorNeutralForeground2);
  font-family: inherit;
  text-align: start;
}
button.p-DayHead__inner {
  cursor: pointer;
}
button.p-DayHead__inner:hover {
  background-color: var(--colorSubtleBackgroundHover);
}
.p-DayHead__weekday {
  font-size: var(--fontSizeBase300);
}
.p-DayHead__number {
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
  color: var(--colorNeutralForeground1);
}
.p-DayHead[aria-current="date"] .p-DayHead__weekday,
.p-DayHead[aria-current="date"] .p-DayHead__number {
  color: var(--colorBrandForeground1);
}
.p-AllDayCell {
  position: relative;
  min-height: calc(var(--p-bar-rows) * var(--p-bar-height) + 4px);
  border-inline-end: 1px solid var(--colorNeutralStroke3);
}
.p-Event--bar {
  inset-inline-start: 2px;
  height: calc(var(--p-bar-height) - 2px);
  margin-top: 2px;
  justify-content: center;
}
.p-AllDayCell > .p-Event--bar {
  /* Across its days (their width in widths of the first, #271), borders included. */
  width: calc(var(--p-span) * 100% + var(--p-borders) * 1px - 4px);
  z-index: 1;
}
.p-TimeGrid__body {
  position: relative;
}
.p-TimeGrid__hours {
  display: flex;
  height: calc(24 * var(--p-hour));
  border-inline-end: 1px solid var(--colorNeutralStroke2);
}
/* A zone's hours: the display zone's, the others' before it (#271). */
.p-TimeGrid__zone {
  position: relative;
  flex: 1;
  min-width: 0;
}
.p-TimeGrid__hour {
  position: absolute;
  inset-inline-end: 8px;
  transform: translateY(-50%);
  font-size: var(--fontSizeBase200);
  color: var(--colorNeutralForeground3);
  white-space: nowrap;
}
.p-DayCol {
  position: relative;
  height: calc(24 * var(--p-hour));
  border-inline-end: 1px solid var(--colorNeutralStroke3);
  background-color: var(--colorNeutralBackground3);
}
/* The day's own focus target, under its events. */
.p-DayCol__slot,
.p-MonthCell__slot {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  outline: none;
}
.p-DayCol__slot:focus-visible,
.p-MonthCell__slot:focus-visible {
  z-index: 3;
  box-shadow: inset 0 0 0 2px var(--colorStrokeFocus2);
  pointer-events: none;
}
.p-DayCol__work {
  position: absolute;
  inset-inline: 0;
  background-color: var(--colorNeutralBackground1);
  pointer-events: none;
}
.p-DayCol__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--colorNeutralStroke2) 1px, transparent 1px),
    linear-gradient(var(--colorNeutralStroke3) 1px, transparent 1px);
  background-size:
    100% var(--p-hour),
    100% var(--p-row);
}
.p-Event--block {
  z-index: 2;
}
.p-Event--block[data-short] {
  justify-content: center;
  padding-block: 0;
}
.p-NowLine {
  position: absolute;
  inset-inline: 0;
  z-index: 3;
  height: 2px;
  margin-top: -1px;
  background-color: var(--colorStatusDangerForeground1);
  pointer-events: none;
}
.p-NowLine::before {
  content: "";
  position: absolute;
  inset-inline-start: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorStatusDangerForeground1);
}

/* ------------------------------------------------------------------ split view (#269) */

/* One column group per visible calendar, each with its day columns, under the calendar's
   colour bar and name. A day column keeps 96px; beyond that the grid scrolls sideways. */
.p-TimeGrid__groups {
  display: grid;
  grid-template-columns: var(--p-gutter) var(--p-columns, repeat(var(--p-days), minmax(0, 1fr)));
}
.p-GroupHead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px 6px 8px;
  border-bottom: 1px solid var(--colorNeutralStroke3);
}
.p-GroupHead__bar {
  flex: none;
  align-self: stretch;
  width: 4px;
  border-radius: var(--borderRadiusSmall);
  background-color: var(--p-color);
}
.p-GroupHead__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fontWeightSemibold);
  color: var(--colorNeutralForeground1);
}
.p-TimeGrid[data-split] .p-TimeGrid__scroll {
  overflow-x: auto;
}
.p-TimeGrid[data-split] .p-TimeGrid__top,
.p-TimeGrid[data-split] .p-TimeGrid__body {
  min-width: calc(var(--p-gutter) + var(--p-days) * 96px);
}
/* The hours stay in view as the groups scroll. */
.p-TimeGrid[data-split] .p-TimeGrid__gutter,
.p-TimeGrid[data-split] .p-TimeGrid__hours {
  position: sticky;
  inset-inline-start: 0;
  z-index: 5;
  background-color: var(--colorNeutralBackground1);
}
.p-GroupHead[data-group-end],
.p-DayHead[data-group-end],
.p-AllDayCell[data-group-end],
.p-DayCol[data-group-end] {
  border-inline-end: 2px solid var(--colorNeutralStroke1);
}
/* A group that cannot take the dragged event. */
.p-DayCol[data-refused] {
  cursor: not-allowed;
  box-shadow: inset 0 0 0 2px var(--colorStatusDangerForeground1);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0 8px,
    color-mix(in srgb, var(--colorStatusDangerForeground1) 14%, transparent) 8px 16px
  );
}
@media (forced-colors: active) {
  .p-DayCol[data-refused] {
    box-shadow: inset 0 0 0 2px CanvasText;
  }
  .p-GroupHead__bar {
    background-color: Highlight;
  }
}

/* ------------------------------------------------------------------ month grid */

.p-MonthGrid {
  --p-row-height: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-MonthGrid__head,
.p-MonthGrid__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.p-MonthGrid[data-week-numbers] .p-MonthGrid__head,
.p-MonthGrid[data-week-numbers] .p-MonthGrid__week {
  grid-template-columns: 32px repeat(7, minmax(0, 1fr));
}
.p-MonthGrid__dayHead,
.p-MonthGrid__weekHead {
  padding: 6px 8px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  font-size: var(--fontSizeBase300);
  color: var(--colorNeutralForeground2);
}
.p-MonthGrid__body {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(var(--p-weeks), minmax(0, 1fr));
  min-height: 0;
}
.p-MonthGrid__weekNum {
  padding: 6px 4px;
  border-bottom: 1px solid var(--colorNeutralStroke3);
  border-inline-end: 1px solid var(--colorNeutralStroke2);
  font-size: var(--fontSizeBase200);
  color: var(--colorNeutralForeground3);
  text-align: center;
}
.p-MonthCell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-bottom: 1px solid var(--colorNeutralStroke3);
  border-inline-end: 1px solid var(--colorNeutralStroke3);
}
.p-MonthCell[data-outside] {
  background-color: var(--colorNeutralBackground2);
}
.p-MonthCell[aria-selected="true"] {
  background-color: var(--colorBrandBackground2);
}
.p-MonthCell__date {
  position: relative;
  flex: none;
  align-self: flex-start;
  height: 20px;
  margin: 4px 6px 4px;
  padding: 0 4px;
  border-radius: var(--borderRadiusCircular);
  font-size: var(--fontSizeBase200);
  line-height: 20px;
  color: var(--colorNeutralForeground1);
  cursor: pointer;
}
.p-MonthCell[data-outside] .p-MonthCell__date {
  color: var(--colorNeutralForeground3);
}
.p-MonthCell[aria-current="date"] .p-MonthCell__date {
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
  font-weight: var(--fontWeightSemibold);
}
.p-MonthCell__events {
  position: relative;
  flex: 1;
  min-height: 0;
  /* Clicks between events reach the day. */
  pointer-events: none;
}
.p-MonthCell__events > * {
  pointer-events: auto;
}
.p-MonthCell .p-Event {
  inset-inline-start: 2px;
  height: calc(var(--p-row-height) - 2px);
  justify-content: center;
}
.p-MonthCell .p-Event--bar {
  width: calc(var(--p-span) * 100% + (var(--p-span) - 1) * 1px - 4px);
  z-index: 1;
}
.p-MonthCell .p-Event--line {
  inset-inline-end: 2px;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  border-inline-start-width: 0;
  background-color: transparent;
  padding-inline-start: 4px;
}
.p-MonthCell .p-Event--line::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--p-color);
}
.p-MonthCell .p-Event--line:hover {
  background-color: var(--colorSubtleBackgroundHover);
}
.p-MonthCell .p-Event--line .p-Event__title {
  font-weight: var(--fontWeightRegular);
}
.p-MonthCell .p-Event--line .p-Event__time {
  flex: none;
}
.p-MonthCell__more {
  position: absolute;
  inset-inline-start: 2px;
  inset-inline-end: 2px;
  height: calc(var(--p-row-height) - 2px);
  padding: 0 6px;
  border: 0;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorNeutralForeground2);
  font-family: inherit;
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
  text-align: start;
  cursor: pointer;
}
.p-MonthCell__more:hover {
  background-color: var(--colorSubtleBackgroundHover);
}
.p-MonthCell__more:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}

/* ------------------------------------------------------------------ event details */

.p-PeekBackdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.p-Peek {
  position: fixed;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-height: min(560px, calc(100vh - 32px));
  overflow: hidden;
  border-top: 4px solid var(--p-color);
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow28);
  outline: none;
}
.p-Peek__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 8px 4px 16px;
}
.p-Peek__title {
  flex: 1;
  margin: 4px 0 0;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
  overflow-wrap: anywhere;
}
.p-Peek__body {
  min-height: 0;
  overflow: auto;
  padding: 0 16px 16px;
}
.p-Peek__line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.p-Peek__muted {
  color: var(--colorNeutralForeground3);
}
.p-Peek__icon {
  flex: none;
  display: inline-flex;
  font-size: 20px;
  color: var(--colorNeutralForeground2);
}
.p-Peek__swatch {
  flex: none;
  width: 12px;
  height: 12px;
  margin: 4px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--p-color);
}
.p-Peek__section {
  margin-top: 12px;
}
.p-Peek__heading {
  margin: 0 0 4px;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-Peek__people {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Peek__person {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 2px 0;
}
.p-Peek__personName {
  font-weight: var(--fontWeightSemibold);
}
.p-Peek__description {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--colorNeutralStroke2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.p-Peek__loading {
  margin-top: 12px;
}
.p-Peek__actions,
.p-Peek .p-EventProperties {
  display: flex;
  gap: 4px;
  padding: 0 12px 4px;
}
/* The Properties group inside the row of commands (#272): the row's padding is enough. */
.p-Peek__actions {
  flex-wrap: wrap;
}
.p-Peek__actions .p-EventProperties {
  padding: 0;
}
/* Show as, Categorise and Private (#260), then the event's categories. */
.p-EventProperties,
.p-EventProperties__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.p-Peek .p-EventProperties__categories {
  padding: 0 16px;
}
/* The icon picker (#343): 32 px buttons in rows of six, the current one with a brand
 * stroke on brandBackground2; each button's name is hidden text, so that the menu's
 * typeahead and assistive technologies read it. */
.p-IconGrid__heading {
  padding: 6px 12px 2px;
}
.p-IconGrid {
  display: grid;
  grid-template-columns: repeat(6, 32px);
  gap: 4px;
  padding: 4px 8px;
}
.p-IconGrid .fui-MenuItem {
  box-sizing: border-box;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
}
.p-IconGrid .fui-MenuItem__checkmark {
  display: none;
}
.p-IconGrid .fui-MenuItem__icon {
  margin: 0;
}
.p-IconGrid .fui-MenuItem__content {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.p-IconGrid .fui-MenuItem[aria-checked="true"] {
  border-color: var(--colorBrandStroke1);
  background-color: var(--colorBrandBackground2);
}
/* The read-only badge of the icon beside the categories'. */
.p-EventIcon .fui-Icon {
  flex: none;
}
/* The event window's card head: the icon as a 40 px button (#343). */
.p-EventCard__icon {
  display: inline-flex;
  flex: none;
  font-size: 24px;
  color: var(--colorNeutralForeground2);
}
.p-EventCard__icon .fui-Button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  font-size: 24px;
}
/* "Applies to the whole series" (#260): a quiet line under the buttons, and in a menu. */
.p-EventProperties__note {
  padding: 4px 12px;
}
.p-Peek .p-EventProperties__note {
  padding: 0 16px 4px;
}

/* An invitation's answer (#44): the buttons in a row that wraps, the current answer
   pressed. */
.p-Peek__respond {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.p-Peek__respondButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.p-Peek__respondButtons .fui-Button[aria-pressed="true"] {
  background-color: var(--colorNeutralBackground1Selected);
  font-weight: var(--fontWeightSemibold);
}

/* ------------------------------------------------------------------ event window */

/* An event's window (#262): a dialog inset over the frame (`.p-DialogBackdrop`), or the
   whole page of a window of its own. It reuses the details' lines and lists. */
.p-EventWindow {
  flex: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow28);
  outline: none;
}
.p-EventWindow--page {
  height: 100vh;
  border-radius: 0;
}
.p-EventWindow__content {
  flex: 1;
  display: flex;
  min-height: 0;
}
.p-EventWindow__main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 24px;
}
.p-EventWindow__main:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-EventWindow__body {
  max-width: 720px;
  margin-top: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.p-EventCard {
  padding: 20px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground2);
}
.p-EventCard__head,
.p-Tracking__organizer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-EventCard__title {
  margin: 0;
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
  overflow-wrap: anywhere;
}
.p-EventCard .p-Peek__line,
.p-Tracking .p-Peek__person {
  flex-wrap: wrap;
  align-items: center;
}
.p-EventCard__faces {
  display: inline-flex;
}
.p-Tracking {
  width: 340px;
  overflow: auto;
  padding: 16px;
  border-inline-start: 1px solid var(--colorNeutralStroke2);
}
.p-Tracking:not([data-open]) {
  width: auto;
}
.p-Tracking__who {
  display: flex;
  flex-direction: column;
}
.p-Tracking__name {
  flex: 1;
}

/* ------------------------------------------------------------------ quick create */

.p-Quick {
  position: fixed;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 340px;
  padding: 8px 12px 12px 16px;
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow28);
  outline: none;
}
.p-Quick__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-Quick__title {
  margin: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Quick__input {
  box-sizing: border-box;
  width: 100%;
}
.p-Quick__when {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-Quick__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ------------------------------------------------------------------ event editor */

.p-EventEditor {
  width: min(720px, 100%);
  height: min(860px, 100%);
}
.p-EventEditor__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px;
}
.p-EventEditor__loading {
  display: flex;
  justify-content: center;
  padding: 48px;
}
.p-EventEditor__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Editor__error {
  padding: 12px 24px 0;
}
.p-EventForm {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* Saving: what was sent stays as it is until the core answers. */
.p-EventForm[disabled] {
  opacity: 0.7;
}
.p-EventForm[disabled] .p-Editor__surface,
.p-EventForm[disabled] .p-Choices {
  pointer-events: none;
}
.p-EventForm__when {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-EventForm__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.p-EventForm__rowLabel {
  width: 48px;
}
.p-Editor__moment[hidden] {
  display: none;
}
.p-Editor__moment .fui-Input__input {
  min-width: 0;
}
.p-EventForm__problem {
  margin: 0;
  /* The palette's red passes AA in the dark theme, the status red does not (4.34:1, #383). */
  color: var(--colorPaletteRedForeground1);
}
.p-EventForm__description .p-Editor {
  min-height: 160px;
}
.p-Editor__repeat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground2);
}
.p-Editor__inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
}
.p-Editor__inline > span:not(.fui-Input) {
  padding-bottom: 6px;
}
.p-Editor__number {
  width: 88px;
}
.p-Editor__days {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.p-Editor__summary:empty {
  display: none;
}
.p-Editor__summary {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
/* The scheduling timeline (#45): who is busy when, under the attendee fields. Busy is
   solid, tentative striped, free left plain; whoever the server tells nothing about is
   hatched grey with the reason in words, never plain. */
.p-Scheduling {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.p-Scheduling__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  padding: 12px 16px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground2);
}
.p-Scheduling__panel[hidden] {
  display: none;
}
.p-Scheduling__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-Scheduling__day {
  font-weight: var(--fontWeightSemibold);
}
.p-Scheduling__zone,
.p-Scheduling__note {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-Timeline {
  --p-who: 168px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-x: auto;
  border-radius: var(--borderRadiusSmall);
}
.p-Timeline:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-Timeline__scale {
  display: grid;
  grid-template-columns: var(--p-who) repeat(var(--p-hours), minmax(36px, 1fr));
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-Timeline__scale--viewer {
  color: var(--colorNeutralForeground2);
}
.p-Timeline__corner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-inline-end: 8px;
}
.p-Timeline__hour {
  padding-inline-start: 2px;
  border-inline-start: 1px solid var(--colorNeutralStroke2);
  white-space: nowrap;
}
.p-Timeline__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Timeline__row {
  display: grid;
  grid-template-columns: var(--p-who) minmax(calc(var(--p-hours) * 36px), 1fr);
  grid-template-areas: "who track" ". status";
  align-items: center;
  row-gap: 2px;
}
.p-Timeline__who {
  grid-area: who;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-inline-end: 8px;
}
.p-Timeline__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Timeline__place,
.p-MyDay__place {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-Timeline__place {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-MyDay__place {
  margin: 0;
  line-height: var(--lineHeightBase200);
}
.p-Settings__location {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
}
/* Settings > Calendar > Conditional formatting (#272): a rule's switch, colour, name and
   sentence on the signatures' list, and the editor's preview, the event as the views draw it. */
.p-Rule {
  gap: 8px;
}
.p-Rule[data-editing] {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-Rule__switch {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--colorBrandBackground);
  cursor: pointer;
}
.p-Rule__swatch {
  flex: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusCircular);
  background-color: var(--p-color);
  forced-color-adjust: none;
}
.p-Rule__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.p-Rule__summary {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-Rule:not([data-enabled]) .p-Signatures__name {
  color: var(--colorNeutralForeground2);
  text-decoration: line-through;
}
.p-Rule[data-gone] .p-Rule__summary {
  font-style: italic;
}
.p-Rules__condition {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.p-Rules__preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 24em;
}
.p-Rules__preview-label {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-Event--preview {
  position: relative;
  cursor: default;
}
.p-Event--preview:hover {
  background-color: color-mix(in srgb, var(--p-color) 18%, var(--colorNeutralBackground1));
}
.p-Settings__location .p-Field {
  width: 200px;
}
.p-Timeline__optional {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-Timeline__track {
  grid-area: track;
  position: relative;
  height: 24px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusSmall);
  background-color: var(--colorNeutralBackground1);
}
.p-Timeline__row:not([data-state="known"]) .p-Timeline__track {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--colorNeutralBackground3) 0 4px,
    var(--colorNeutralStroke2) 4px 6px
  );
}
.p-Timeline__busy {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: var(--colorBrandBackground);
}
.p-Timeline__busy[data-tentative] {
  background-color: transparent;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--colorBrandBackground) 0 3px,
    transparent 3px 7px
  );
  box-shadow: inset 0 0 0 1px var(--colorBrandBackground);
}
.p-Timeline__slot {
  position: absolute;
  top: -3px;
  bottom: -3px;
  border: 2px solid var(--colorNeutralForeground1);
  border-radius: var(--borderRadiusSmall);
  pointer-events: none;
}
.p-Timeline__status {
  grid-area: status;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-Timeline__status:empty {
  display: none;
}
.p-Scheduling__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-Scheduling__key::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-inline-end: 4px;
  vertical-align: -2px;
  border: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-Scheduling__key[data-key="busy"]::before {
  background-color: var(--colorBrandBackground);
}
.p-Scheduling__key[data-key="tentative"]::before {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--colorBrandBackground) 0 2px,
    transparent 2px 4px
  );
}
.p-Scheduling__key[data-key="unknown"]::before {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--colorNeutralBackground3) 0 2px,
    var(--colorNeutralStroke2) 2px 3px
  );
}
.p-Scheduling__suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.p-Scheduling__none {
  color: var(--colorNeutralForeground2);
}
@media (forced-colors: active) {
  .p-Timeline__busy {
    background-color: Highlight;
    forced-color-adjust: none;
  }
  .p-Timeline__busy[data-tentative] {
    background-image: repeating-linear-gradient(-45deg, Highlight 0 3px, Canvas 3px 7px);
  }
  .p-Timeline__row:not([data-state="known"]) .p-Timeline__track {
    background-image: repeating-linear-gradient(-45deg, Canvas 0 4px, GrayText 4px 6px);
    forced-color-adjust: none;
  }
  .p-Timeline__slot {
    border-color: CanvasText;
  }
}

/* A native select, drawn as Fluent's outline input. */
.p-Select {
  position: relative;
  display: flex;
  box-sizing: border-box;
  min-height: 32px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
  border-bottom-color: var(--colorNeutralStrokeAccessible);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
}
.p-Select:focus-within {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-Select[data-disabled] {
  border-color: var(--colorNeutralStrokeDisabled);
}
.p-Select__select {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--colorNeutralForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  outline: none;
}

/* ------------------------------------------------------------------ scope question */

.p-Scope {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-Scope__option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.p-Scope__option input {
  margin: 0;
  accent-color: var(--colorCompoundBrandBackground);
}
.p-Scope__option[data-disabled] {
  color: var(--colorNeutralForegroundDisabled);
  cursor: default;
}
.p-Scope__comment {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}
.p-Scope__comment .p-Scope__hint {
  padding-inline-start: 0;
}
.p-Scope__hint:empty {
  display: none;
}
.p-Scope__hint {
  margin: 0;
  padding-inline-start: 24px;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
}

/* ------------------------------------------------------------------ settings */

.p-Settings__days {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.p-Settings__hours {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.p-Settings__hours .p-Field {
  width: 160px;
}
/* The Calendar page's subpages (#271). */
.p-Settings__subpages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-block-end: 16px;
}
.p-Settings__subpage {
  padding: 4px 10px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusCircular);
  background: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  font: inherit;
  font-size: var(--fontSizeBase200);
  cursor: pointer;
}
.p-Settings__subpage:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-Settings__subpage[aria-current="page"] {
  border-color: var(--colorBrandStroke1);
  background-color: var(--colorBrandBackground2);
  color: var(--colorBrandForeground2);
  font-weight: var(--fontWeightSemibold);
}
/* Settings > Calendar > Customize actions (#272): a command per row, its buttons at the end. */
.p-EventActions__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-EventAction {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 4px 4px 4px 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
}
.p-EventAction__name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.p-EventAction__buttons {
  display: flex;
  gap: 2px;
}
.p-EventActions__subheading {
  margin: 12px 0 4px;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-EventActions__add {
  flex-direction: row;
  flex-wrap: wrap;
}
.p-Settings__zone {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
  margin-block-end: 8px;
}
.p-Settings__zone .p-Field {
  min-width: 160px;
}

/* ------------------------------------------------------------------ high contrast */

@media (forced-colors: active) {
  .p-Event {
    border: 1px solid CanvasText;
    border-inline-start: 4px solid CanvasText;
    forced-color-adjust: none;
    background-color: Canvas;
    color: CanvasText;
  }
  .p-MiniMonth__day[aria-selected="true"],
  .p-MonthCell[aria-selected="true"] {
    outline: 1px solid Highlight;
  }
  .p-NowLine,
  .p-NowLine::before {
    background-color: Highlight;
  }
  .p-Event[data-pending] {
    outline: 1px dashed CanvasText;
  }
  .p-Selection {
    border-color: Highlight;
    background-color: transparent;
  }
  .p-Select {
    border-color: CanvasText;
  }
}

/* ------------------------------------------------------------------ reminders (#46) */

/* The header's button and its count. */
.p-RemindersButton {
  position: relative;
  display: inline-flex;
}
.p-RemindersButton__count {
  position: absolute;
  inset-block-start: -2px;
  inset-inline-end: -4px;
  pointer-events: none;
}

/* The panes docked at the end of the frame (the reminders, My Day #48): a column beside
   the workspace, which narrows. With both open, the reminders take what they need, up to
   half of it, above My Day. */
.p-App[data-reminders],
.p-App[data-my-day] {
  grid-template-columns: 68px minmax(0, 1fr) min(380px, 40vw);
}
/* The pending actions (#439) are 400 px wide. */
.p-App[data-pending] {
  grid-template-columns: 68px minmax(0, 1fr) min(400px, 40vw);
}
.p-SidePanes {
  display: none;
}
.p-App[data-reminders] > .p-SidePanes,
.p-App[data-my-day] > .p-SidePanes,
.p-App[data-pending] > .p-SidePanes {
  grid-row: 2;
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  margin: 0 12px 12px 0;
}
.p-SidePanes > * {
  flex: 1 1 0;
}
.p-SidePanes > .p-Reminders:not(:only-child) {
  flex: 0 1 auto;
  max-height: 50%;
}
.p-Reminders {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow4);
  outline: none;
}
.p-Reminders:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
}
.p-Reminders__header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 4px 16px;
}
.p-Reminders__title {
  flex: 1;
  margin: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Reminders__empty {
  margin: 0;
  padding: 8px 16px 16px;
  color: var(--colorNeutralForeground2);
}
.p-Reminders__list {
  margin: 0;
  padding: 0 0 8px;
  overflow-y: auto;
  list-style: none;
}
.p-Reminder {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  border-block-start: 1px solid var(--colorNeutralStroke2);
}
.p-Reminder__icon {
  display: inline-flex;
  padding-block-start: 2px;
  color: var(--colorBrandForeground1);
  font-size: 20px;
}
.p-Reminder__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.p-Reminder__title {
  align-self: flex-start;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--colorNeutralForeground1);
  font: inherit;
  font-weight: var(--fontWeightSemibold);
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.p-Reminder__title:hover {
  text-decoration: underline;
}
.p-Reminder__title:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
  border-radius: var(--borderRadiusSmall);
}
.p-Reminder__line {
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-Reminder__snoozed {
  margin-inline-start: 8px;
  color: var(--colorNeutralForeground3);
}
.p-Reminder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block-start: 6px;
}
.p-Reminder__join {
  text-decoration: none;
}
/* Where Join goes (#487): the link's host as text, beside Join. */
.p-JoinHost {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-Reminder__actions .p-JoinHost {
  align-self: center;
  min-width: 0;
}
.p-EventToolbar .p-Ribbon__end {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-Agenda__line .p-JoinHost,
.p-PeekRow__second .p-JoinHost {
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: normal;
}

/* ------------------------------------------------------------------ My Day (#48) */

.p-MyDay {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow4);
  outline: none;
}
.p-MyDay:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
}
.p-MyDay__header {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 8px 4px 16px;
}
.p-MyDay__title {
  flex: 1;
  margin: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-MyDay__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 12px;
}
.p-MyDay__part {
  padding: 8px 16px 4px;
}
.p-MyDay__part + .p-MyDay__part {
  border-block-start: 1px solid var(--colorNeutralStroke2);
}
.p-MyDay__heading {
  margin: 0;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-MyDay__date,
.p-MyDay__day {
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightRegular);
}
.p-MyDay__day {
  padding-block-start: 8px;
  font-weight: var(--fontWeightSemibold);
}
.p-MyDay__note {
  margin: 0;
  padding: 6px 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-MyDay__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
.p-MyDay__more {
  padding-block-end: 4px;
  margin-inline-start: -8px;
}

/* An event: its calendar's colour at the start, as in the views. */
.p-MyDayEvent {
  display: flex;
}
.p-MyDayEvent__open,
.p-MyDayMail__open {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--borderRadiusMedium);
  background: none;
  color: var(--colorNeutralForeground1);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-MyDayEvent__open {
  border-inline-start: 3px solid var(--p-color);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  background-color: color-mix(in srgb, var(--p-color) 12%, var(--colorNeutralBackground1));
}
.p-MyDayEvent__open:hover {
  background-color: color-mix(in srgb, var(--p-color) 22%, var(--colorNeutralBackground1));
}
.p-MyDayMail__open:hover {
  background-color: var(--colorSubtleBackgroundHover);
}
.p-MyDayEvent__open:focus-visible,
.p-MyDayMail__open:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 1px;
}
.p-MyDayEvent__title,
.p-MyDayMail__subject {
  max-width: 100%;
  font-weight: var(--fontWeightSemibold);
  overflow-wrap: anywhere;
}
.p-MyDayEvent__line,
.p-MyDayMail__line {
  max-width: 100%;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-MyDayEvent[data-state="tentative"] .p-MyDayEvent__open {
  border-inline-start-style: dashed;
}
.p-MyDayEvent[data-state="cancelled"] .p-MyDayEvent__title {
  text-decoration: line-through;
}
.p-MyDayEvent[data-pending] .p-MyDayEvent__open {
  outline: 1px dashed color-mix(in srgb, var(--p-color) 70%, var(--colorNeutralForeground1));
  outline-offset: -1px;
}

/* A flagged message: the flag before it, its subject regular once read. */
.p-MyDayMail {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.p-MyDayMail__flag {
  display: inline-flex;
  padding: 6px 0 0;
  color: var(--colorPaletteRedForeground1);
  font-size: 16px;
}
.p-MyDayMail:not([data-unread]) .p-MyDayMail__subject {
  font-weight: var(--fontWeightRegular);
}

@media (forced-colors: active) {
  .p-MyDayEvent__open {
    border-inline-start-color: CanvasText;
    background-color: Canvas;
  }
}

/* Propose a new time (#326): the dialog, and the line the details show while it waits. */
.p-Proposal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(440px, calc(100vw - 32px));
}
.p-Proposal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-Proposal__header .p-Dialog__title {
  margin: 0;
}
.p-Proposal__event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-Proposal__eventTitle {
  font-weight: var(--fontWeightSemibold);
  color: var(--colorNeutralForeground1);
}
.p-Proposal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.p-Proposal__label {
  min-width: 4rem;
}
.p-Proposal__hint:empty {
  display: none;
}
.p-Proposal__hint {
  margin: 0;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorStatusDangerForeground1);
}
.p-Proposal__pending {
  margin-block: 8px;
}
.p-Proposal__comment {
  display: block;
  margin-block-start: 4px;
}
/* The calendar's filter (#268, DESIGN.md 11.3): "Filter applied" in the brand colour with a
 * filled funnel, and Clear filter beside it. The label takes the darker brand foreground,
 * which keeps its contrast on the hover and open backgrounds too. */
.p-FilterCommand[data-applied] .fui-MenuButton {
  color: var(--colorBrandForeground2);
  font-weight: var(--fontWeightSemibold);
}
.p-FilterCommand[data-applied] .fui-MenuButton .fui-Button__icon {
  color: var(--colorBrandForeground1);
}
/* The menu's sections, each under its caption, and its foot: Clear filter and the count. */
.p-FilterMenu__header {
  padding: 8px 8px 4px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
  text-transform: uppercase;
}
.p-FilterMenu__foot {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-FilterMenu__foot > .fui-MenuItem {
  flex: none;
  color: var(--colorBrandForeground1);
}
.p-FilterMenu__foot > .fui-MenuItem[aria-disabled="true"] {
  color: var(--colorNeutralForegroundDisabled);
}
.p-FilterMenu__count {
  flex: 1;
  padding-inline-end: 8px;
  text-align: end;
  white-space: nowrap;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
/* The date bar's chip while a filter is on. */
.p-FilterChip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
  padding-inline: 8px 2px;
  border: var(--strokeWidthThin) solid var(--colorBrandStroke2);
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorBrandBackground2);
  color: var(--colorBrandForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  white-space: nowrap;
}
.p-FilterChip__icon {
  display: inline-flex;
}
.p-FilterChip__icon .fui-Icon {
  width: 16px;
  height: 16px;
}
/* The attendees' proposals a meeting the user organises received (#326). */
.p-Proposal__receivedList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Proposal__received {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
}

/* ------------------------------------------------------------------ found events */

/* The events a search found (#54, ADR 0071): a list in the place of the surface. */
.p-EventResults__body {
  overflow-y: auto;
  padding: 0 16px 24px;
}
.p-EventResults__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-EventResults__none,
.p-EventResults__more {
  margin: 12px 0;
  color: var(--colorNeutralForeground3);
}
.p-EventFound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 10px;
  border-inline-start: 3px solid var(--p-color);
  border-start-end-radius: var(--borderRadiusMedium);
  border-end-end-radius: var(--borderRadiusMedium);
  background-color: color-mix(in srgb, var(--p-color) 12%, var(--colorNeutralBackground1));
  color: var(--colorNeutralForeground1);
  cursor: pointer;
}
.p-EventFound:hover {
  background-color: color-mix(in srgb, var(--p-color) 22%, var(--colorNeutralBackground1));
}
.p-EventFound:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 1px;
}
.p-EventFound__title {
  max-width: 100%;
  font-weight: var(--fontWeightSemibold);
  overflow-wrap: anywhere;
}
.p-EventFound__line {
  max-width: 100%;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ phone (#184)
   Under 600 px (`data-layout="phone"`): no ribbon and no navigation bar; the day under a
   one-week strip; the mini month and the calendars are a screen of their own
   (`data-picker`), which the view leaves room for. Nothing above the breakpoint changes. */

.p-App[data-layout="phone"] .p-CalendarRibbon,
.p-App[data-layout="phone"] .p-CalendarNav {
  display: none;
}
.p-App[data-layout="phone"] .p-CalendarPane {
  flex: 1;
  width: auto;
  border-inline-end: 0;
}
.p-App[data-layout="phone"] .p-Panes[data-picker="open"] > :not(.p-CalendarPane) {
  display: none;
}
/* The floating New event button (app.css, `.p-Fab`) never covers the last hours; a sideways
   move is the day's swipe (`pointer.rs`), not the browser's. */
/* The day on a phone (design 41, #463): 72 px hours at the default scale, a brand now line
   with its time in the hours' column, and no head repeating the top bar's title (it stays
   the grid's column header for assistive technologies). */
.p-App[data-layout="phone"] .p-TimeGrid {
  --p-row: 36px;
}
.p-App[data-layout="phone"] .p-NowLine,
.p-App[data-layout="phone"] .p-NowLine::before {
  background-color: var(--colorBrandForeground1);
}
.p-NowLine__time {
  position: absolute;
  inset-inline-end: calc(100% + 2px);
  top: 50%;
  transform: translateY(-50%);
  padding-inline: 2px;
  background-color: var(--colorNeutralBackground1);
  color: var(--colorBrandForeground1);
  font-size: var(--fontSizeBase100);
  line-height: var(--lineHeightBase100);
  font-weight: var(--fontWeightSemibold);
  white-space: nowrap;
}
@media (forced-colors: active) {
  .p-App[data-layout="phone"] .p-NowLine,
  .p-App[data-layout="phone"] .p-NowLine::before {
    background-color: Highlight;
  }
  .p-NowLine__time {
    background-color: Canvas;
    color: Highlight;
  }
}
.p-App[data-layout="phone"] .p-DayHead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.p-App[data-layout="phone"] .p-TimeGrid__scroll {
  touch-action: pan-y;
  padding-bottom: calc(56px + 16px + 16px);
  scroll-padding-bottom: calc(56px + 16px + 16px);
}
.p-WeekStrip {
  flex: none;
  padding: 4px 8px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  /* The swipe is the strip's: no scroll sideways, and no text selected, which a second
     swipe with a mouse or a pen would drag instead. */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.p-WeekStrip__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.p-WeekStrip__head {
  text-align: center;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
}
.p-WeekStrip__head[data-today] {
  color: var(--colorBrandForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-WeekStrip__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 2px 0;
  border-radius: var(--borderRadiusMedium);
  cursor: pointer;
}
.p-WeekStrip__day:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-WeekStrip__number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
}
/* The days off of the work week, dimmed (design 40, #463). */
.p-WeekStrip__day[data-rest] .p-WeekStrip__number {
  color: var(--colorNeutralForeground3);
}
.p-WeekStrip__day[aria-current="date"] .p-WeekStrip__number {
  color: var(--colorBrandForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-WeekStrip__day[aria-selected="true"] .p-WeekStrip__number {
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
  font-weight: var(--fontWeightSemibold);
}
.p-WeekStrip__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}
.p-WeekStrip__day[data-events] .p-WeekStrip__dot {
  background-color: var(--colorNeutralForeground3);
}
@media (forced-colors: active) {
  .p-WeekStrip__day[aria-selected="true"] .p-WeekStrip__number {
    outline: 2px solid Highlight;
  }
  .p-WeekStrip__day[data-events] .p-WeekStrip__dot {
    background-color: CanvasText;
  }
}

/* ------------------------------------------------------------------ phone agenda (#184)
   From the selected day on, a section per day with events (screen 40): the headers stay at
   the top while their day scrolls, the list ends with room for the floating button. */

.p-Agenda {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: calc(56px + 16px + 16px);
}
.p-Agenda__heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 28px;
  margin: 0;
  padding: 4px 16px;
  background-color: var(--colorNeutralBackground2);
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
  text-transform: uppercase;
}
.p-Agenda__count {
  text-transform: none;
  font-weight: var(--fontWeightRegular);
}
.p-Agenda__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Agenda__item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-Agenda__row {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 64px 4px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
  min-height: 60px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-Agenda__row:focus-visible,
.p-Agenda__action:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-Agenda__time {
  display: flex;
  flex-direction: column;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
}
.p-Agenda__end {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Agenda__bar {
  align-self: stretch;
  border-radius: 2px;
  background-color: var(--p-color);
}
.p-Agenda__row[data-unanswered] .p-Agenda__bar {
  background: none;
  border-inline-start: 3px dashed var(--p-color);
}
.p-Agenda__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-Agenda__title,
.p-Agenda__line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-Agenda__title {
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Agenda__line {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Agenda__chevron {
  display: inline-flex;
  color: var(--colorNeutralForeground3);
  font-size: 20px;
}
.p-Agenda__chevron svg:dir(rtl) {
  transform: scaleX(-1);
}
.p-Agenda__item:has(.p-Agenda__action) .p-Agenda__chevron {
  display: none;
}
.p-Agenda__action {
  flex: none;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  margin-inline-end: 16px;
  padding: 0 14px;
  border: 1px solid var(--colorBrandStroke1);
  border-radius: var(--borderRadiusMedium);
  background: none;
  color: var(--colorBrandForeground1);
  font: inherit;
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
}
.p-Agenda__action--join {
  border-color: transparent;
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
}
.p-Agenda__now {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 16px;
}
.p-Agenda__now::before {
  content: "";
  flex: 1;
  border-top: 2px solid var(--colorBrandForeground1);
}
.p-Agenda__nowLabel {
  order: 1;
  padding: 0 6px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
  font-size: var(--fontSizeBase100);
  line-height: var(--lineHeightBase100);
  font-weight: var(--fontWeightSemibold);
  text-transform: uppercase;
}
.p-Agenda__empty {
  margin: 0;
  padding: 24px 16px;
  color: var(--colorNeutralForeground3);
}
.p-Agenda__more {
  display: flex;
  justify-content: center;
  padding: 16px;
}
.p-Agenda__more .fui-Button {
  min-height: 44px;
}
@media (forced-colors: active) {
  .p-Agenda__bar {
    background-color: CanvasText;
  }
  .p-Agenda__row[data-unanswered] .p-Agenda__bar {
    border-color: CanvasText;
  }
  .p-Agenda__action--join {
    border: 1px solid ButtonText;
    background-color: ButtonFace;
    color: ButtonText;
  }
  .p-Agenda__now::before {
    border-color: Highlight;
  }
}

/* ------------------------------------------------------------------ phone event (#184)
   An event's details, a screen of their own over the calendar (screen 42): the whole
   window, one top bar (Back named after Calendar, then More with Open, Edit and Delete,
   #457), the answers in a bar at the foot. */

.p-Peek[data-phone] {
  inset: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: var(--p-safe-area-bottom, env(safe-area-inset-bottom));
  width: auto;
  max-height: none;
  height: 100dvh;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.p-Peek[data-phone] .p-Peek__back {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 56px;
  padding: 0 8px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-Peek[data-phone] .p-Peek__back .fui-Button {
  min-width: 44px;
  min-height: 44px;
}
/* Back names the parent in the brand colour (design 10.3), and a long name ends in an
   ellipsis before More. */
.p-Peek[data-phone] .p-Peek__back > .fui-Button:first-child {
  flex: 0 1 auto;
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
  color: var(--colorBrandForeground1);
}
.p-Peek__backLabel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* More is the phone's vertical "⋮" (screen 42), as the reading screen's. */
.p-Peek__more .fui-Button__icon {
  rotate: 90deg;
}
.p-Peek[data-phone] .p-Peek__body {
  flex: 1;
  overflow: visible;
}
/* The answers at the foot of the screen (screen 42), whatever holds them in the details;
   the details end with room for them. */
.p-Peek[data-phone]:has(.p-Peek__respondButtons) {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
.p-Peek[data-phone] .p-Peek__respondButtons {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  box-sizing: border-box;
  padding-inline: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
  padding-top: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-Peek[data-phone] .p-Peek__respondButtons .fui-Button {
  min-height: 44px;
}
/* Design 42 (#463): the category above a 24/32 title, the invitation's line under it, rows
   of an icon and two lines, the attendees with their answers, and "Going?" before Yes,
   Maybe and No. */
.p-Peek[data-phone] > .p-Peek__back {
  order: -3;
}
.p-Peek[data-phone] > .p-EventProperties__categories {
  order: -2;
  padding: 12px 16px 0;
}
.p-Peek[data-phone] > .p-Peek__header,
.p-Peek[data-phone] > .p-Peek__invitation {
  order: -1;
}
.p-Peek[data-phone] .p-Peek__header {
  padding: 4px 16px 0;
}
.p-Peek[data-phone] .p-Peek__title {
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
}
.p-Peek__invitation {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 16px 8px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
}
.p-Peek__invitation[data-unanswered] {
  color: var(--colorStatusWarningForeground1);
}
.p-Peek__invitationIcon {
  display: inline-flex;
  font-size: 16px;
}
.p-Peek[data-phone] .p-Peek__body {
  padding: 0;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Peek[data-phone] .p-Peek__body > :is(.p-Peek__line, .p-Peek__section, .p-Peek__description) {
  margin-inline: 16px;
}
.p-PeekRow {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  box-sizing: border-box;
  min-height: 56px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-PeekRow__icon {
  display: inline-flex;
  color: var(--colorNeutralForeground2);
  font-size: 20px;
}
.p-PeekRow__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-PeekRow__title {
  overflow-wrap: anywhere;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}
.p-PeekRow__second {
  overflow: hidden;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-PeekRow__join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 64px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
  font-weight: var(--fontWeightSemibold);
  text-decoration: none;
}
.p-PeekRow__join:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-PeekPeople {
  padding-top: 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-PeekPeople__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 4px;
}
.p-PeekPeople__heading {
  margin: 0;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
  text-transform: uppercase;
}
.p-PeekPeople__all,
.p-PeekPeople__more {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.p-PeekPeople__all {
  min-height: 44px;
  padding: 0;
  color: var(--colorBrandForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-PeekPeople__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-PeekPerson,
.p-PeekPeople__more {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 4px 16px;
  text-align: start;
  color: inherit;
}
.p-PeekPerson + .p-PeekPerson {
  border-top: 1px solid var(--colorNeutralStroke3);
}
.p-PeekPerson__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-PeekPerson__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fontWeightSemibold);
}
.p-PeekPerson__second {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-PeekPerson__answer {
  display: inline-flex;
  color: var(--colorNeutralForeground3);
  font-size: 20px;
}
.p-PeekPerson__answer[data-tone="yes"] {
  color: var(--colorStatusSuccessForeground1);
}
.p-PeekPerson__answer[data-tone="maybe"] {
  color: var(--colorStatusWarningForeground1);
}
.p-PeekPerson__answer[data-tone="no"] {
  color: var(--colorStatusDangerForeground1);
}
.p-PeekPeople__more {
  border-top: 1px solid var(--colorNeutralStroke3);
}
.p-PeekPeople__moreCount {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--colorNeutralBackground3);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
}
.p-PeekPeople__chevron {
  display: inline-flex;
  color: var(--colorNeutralForeground3);
}
.p-PeekPeople__chevron svg:dir(rtl) {
  transform: scaleX(-1);
}
.p-PeekPeople__all:focus-visible,
.p-PeekPeople__more:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-Peek[data-phone] .p-Peek__respondButtons[data-going] {
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  align-items: center;
}
.p-Peek__going {
  color: var(--colorNeutralForeground2);
}
.p-Peek[data-phone] .p-Peek__respond {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 8px;
}
.p-Peek[data-phone] .p-Peek__respond:not(:has(> :not(.p-Peek__respondButtons))) {
  padding: 0;
}
@media (forced-colors: active) {
  .p-PeekRow__join {
    border: 1px solid ButtonText;
  }
  .p-PeekPerson__answer {
    color: CanvasText;
  }
}

/* ------------------------------------------------------------------ phone editor (#184)
   New and edit (screen 43): the whole window, Close at the top's start, the title in the
   middle, Save at its end; closing with changes asks first. The scope question of a series
   is a sheet at the foot. */

.p-EventEditor[data-phone] {
  position: fixed;
  inset: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: var(--p-safe-area-bottom, env(safe-area-inset-bottom));
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: 0;
}
.p-EventEditor[data-phone] .p-Dialog__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 8px;
}
.p-EventEditor[data-phone] .p-Dialog__title {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-EventEditor[data-phone] .p-Dialog__header .fui-Button {
  min-height: 44px;
  min-width: 44px;
}
.p-EventEditor[data-phone] .p-EventEditor__body {
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}
.p-EventEditor[data-phone] .p-EventEditor__footer {
  display: none;
}
.p-EventEditor__discard {
  position: absolute;
  inset-inline: 16px;
  top: 72px;
  z-index: 3;
  padding: 16px;
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow28);
}
.p-EventEditor__discard p {
  margin: 0 0 12px;
  font-weight: var(--fontWeightSemibold);
}
.p-EventEditor__discardButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-EventEditor__discardButtons .fui-Button {
  min-height: 44px;
}
.p-Dialog--confirm[data-phone] {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  margin: 0;
  border-radius: 12px 12px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.p-Dialog--confirm[data-phone] .fui-Button {
  min-height: 44px;
}
/* Design 43 (#463): the title large and inline, then rows of an icon and the fields, in the
   design's order (the calendar, the times with All day as a switch, the attendees, the
   place, the reminder, the repeat, the description), the labels the rows make plain kept
   for assistive technologies only. Elsewhere a group is its fields alone. */
.p-EventForm__slot {
  display: contents;
}
.p-EventForm__icon,
.p-EventForm__allDay {
  display: none;
}
.p-EventEditor[data-phone] .p-Dialog__title {
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-EventEditor[data-phone] .p-EventEditor__body {
  padding: 0;
}
.p-EventEditor[data-phone] .p-EventForm {
  gap: 0;
}
.p-EventEditor[data-phone] .p-EventForm > * {
  order: 20;
}
.p-EventEditor[data-phone] .p-EventForm > .fui-MessageBar,
.p-EventEditor[data-phone] .p-EventForm > .p-EventForm__title {
  order: 0;
  margin: 12px 16px 0;
}
.p-EventEditor[data-phone] .p-EventForm__slot {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  box-sizing: border-box;
  min-height: 56px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-EventEditor[data-phone] .p-EventForm__slot > :not(.p-EventForm__icon) {
  grid-column: 2;
  min-width: 0;
}
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="title"] {
  order: 1;
  grid-template-columns: minmax(0, 1fr);
}
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="title"] > * {
  grid-column: 1;
}
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="calendar"] { order: 2; }
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="when"] { order: 3; align-items: start; }
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="attendees"] { order: 4; align-items: start; }
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="location"] { order: 5; }
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="reminder"] { order: 6; }
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="repeat"] { order: 7; align-items: start; }
.p-EventEditor[data-phone] .p-EventForm__slot[data-field="description"] { order: 8; align-items: start; }
.p-EventEditor[data-phone] .p-EventForm > .p-Field {
  margin: 12px 16px 0;
}
.p-EventEditor[data-phone] .p-EventForm__icon {
  display: inline-flex;
  color: var(--colorNeutralForeground2);
  font-size: 20px;
}
.p-EventEditor[data-phone] :is([data-field="when"], [data-field="attendees"], [data-field="repeat"], [data-field="description"]) > .p-EventForm__icon {
  margin-top: 10px;
}
.p-EventEditor[data-phone] .p-EventForm__slot :is(.p-Field__label, .fui-Field__label) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The fields read as the row's text: no frame, the select's arrow as the row's chevron. */
.p-EventEditor[data-phone] .p-EventForm__slot :is(.fui-Input, .p-Select) {
  border-color: transparent;
  background-color: transparent;
}
.p-EventEditor[data-phone] .p-EventForm__slot :is(.fui-Input, .p-Select):focus-within {
  border-color: var(--colorNeutralStroke1);
}
.p-EventEditor[data-phone] .p-EventForm__slot .p-Select {
  width: 100%;
  min-height: 40px;
  padding-inline-start: 0;
}
.p-EventEditor[data-phone] .p-EventForm__description .p-Editor {
  min-height: 96px;
  border-color: transparent;
  box-shadow: none;
}
.p-EventEditor[data-phone] [data-field="title"] .fui-Input {
  min-height: 48px;
}
/* On the wrapper: a touch screen's fields take `max(16px, 1em)` (`app.css`). */
.p-EventEditor[data-phone] [data-field="title"] .fui-Input {
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
}
.p-EventEditor[data-phone] .p-EventForm__allDay {
  display: block;
  min-height: 44px;
}
.p-EventEditor[data-phone] .p-EventForm__allDay .fui-Checkbox {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  align-items: center;
}
/* The label fills the row: a tap anywhere on it switches. */
.p-EventEditor[data-phone] .p-EventForm__allDay .fui-Checkbox__label {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
}
/* All day as a switch: the box drawn as a track with its thumb. */
.p-EventEditor[data-phone] .p-EventForm__allDay .fui-Checkbox__indicator {
  position: relative;
  width: 40px;
  height: 20px;
  border-radius: 10px;
}
.p-EventEditor[data-phone] .p-EventForm__allDay .fui-Checkbox__indicator > * {
  display: none;
}
.p-EventEditor[data-phone] .p-EventForm__allDay .fui-Checkbox__indicator::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: currentColor;
  transition: inset-inline-start 120ms;
}
.p-EventEditor[data-phone] .p-EventForm__allDay .fui-Checkbox__input:checked ~ .fui-Checkbox__indicator::after {
  inset-inline-start: 23px;
  background-color: var(--colorNeutralForegroundOnBrand);
}
@media (prefers-reduced-motion: reduce) {
  .p-EventEditor[data-phone] .p-EventForm__allDay .fui-Checkbox__indicator::after {
    transition: none;
  }
}
/* Starts and Ends: the label, then the date and the time as pills. */
.p-EventEditor[data-phone] .p-EventForm__row {
  flex-wrap: nowrap;
  min-height: 52px;
}
.p-EventEditor[data-phone] .p-EventForm__rowLabel {
  flex: 1;
  width: auto;
  color: var(--colorNeutralForeground2);
}
.p-EventEditor[data-phone] .p-EventForm__row :is(input[type="date"], input[type="time"]) {
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--borderRadiusLarge);
  background-color: var(--colorNeutralBackground3);
  font-weight: var(--fontWeightSemibold);
}
.p-EventEditor[data-phone] .p-EventForm__row .fui-Input {
  border: 0;
  background: none;
  min-width: 0;
}
.p-EventEditor[data-phone] .p-EventForm__freeBusy {
  color: var(--colorStatusSuccessForeground1);
}
/* The line under the times: whether the attendees are free then, once known. */
.p-EventForm__freeBusy {
  margin: 4px 0 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
