/* Built from css/ by `cargo xtask codegen css`: edit the parts, not this file. */
/* css/base.css */
/*! Perspective application layout.
 *
 * The frame around the Fluent components: panes, message list rows, reading pane, sign-in
 * card, settings dialog. Component styles come from perspective-fluent (fluent.css,
 * kit.css); this file only places them and draws the application's own elements, with the
 * theme's token variables. Classes start with `p-`. Row heights must match
 * `Density::heights` in src/settings.rs.
 */

html,
body {
  height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
  background-color: var(--colorNeutralBackground3);
}
body > .fui-FluentProvider {
  display: flex;
  flex-direction: column;
  /* What the keyboard leaves of a touch screen (`layout.rs`), else the whole window. */
  height: var(--p-viewport-height, 100%);
  /* `viewport-fit=cover` (#179): on a phone the page reaches under the status bar, the
     notch and the home indicator. The root's background fills them, and every screen
     (sign-in, setup, unlock, the failure screen, the phone frame) keeps its content clear
     of them. The insets are zero on a desktop. */
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    var(--p-safe-area-bottom, env(safe-area-inset-bottom)) env(safe-area-inset-left);
  /* The insets show the root: in the screens' background, not Fluent's lighter one. */
  background-color: var(--colorNeutralBackground3);
}
/* The phone frame's tab bar pads the bottom itself, so that its background runs under the
   home indicator. */
body > .fui-FluentProvider:has(.p-App[data-layout="phone"]) {
  padding-bottom: 0;
}
/* An opaque band the height of the status bar, in the screen's background, above the page:
   with the keyboard open, iOS scrolls the visual viewport to keep the field in view, and the
   content passes under the band rather than under the clock. Below the popups and the
   phone's full-screen dialogs, which pad the inset themselves. */
body > .fui-FluentProvider::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  height: env(safe-area-inset-top);
  background-color: var(--colorNeutralBackground3);
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
/* On a touch screen every text field is at least 16px: WebKit on iOS zooms the page into a
   smaller field when it takes the focus, and keeps that zoom after the keyboard closes
   (#179, #436 note 77119). Above Fluent's sizes, whatever their selector; pinch zoom stays. */
@media (pointer: coarse) {
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"]),
  textarea,
  select,
  [contenteditable]:not([contenteditable="false"]) {
    font-size: max(16px, 1em) !important;
  }
  /* A field's own width grows with its text size: it gives way to its box's instead. */
  .fui-Input__input,
  .fui-SearchBox__input {
    min-width: 0;
  }
  .p-Search__box {
    min-width: 0;
    max-width: 100%;
  }
}

/* css/shared.css */
/* ------------------------------------------------------------------ shared */

.p-Centered {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 24px;
  box-sizing: border-box;
  overflow: auto;
  background-color: var(--colorNeutralBackground3);
}
.p-Card {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow4);
}
.p-Card--message {
  max-width: 520px;
}
.p-Card--message p {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-Title3 {
  margin: 0 0 8px;
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
}
.p-Notice {
  flex: none;
}
/* The product mark: the infinity glyph (perspective-fluent's BrandGlyph, 20 px high, in
 * the brand foreground) and the product name in the interface font. */
.p-Brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
  white-space: nowrap;
}
.p-Brand--large {
  margin-bottom: 16px;
}
.p-Empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px;
  text-align: center;
  color: var(--colorNeutralForeground2);
}
.p-Empty p {
  margin: 0;
}
.p-Empty__icon {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 48px;
  color: var(--colorNeutralForeground3);
}
.p-Empty__icon .fui-Icon-filled {
  display: none;
}
.p-Empty__title {
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
  color: var(--colorNeutralForeground1);
}

/* css/frame.css */
/* ------------------------------------------------------------------ frame */

.p-App {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr);
  height: 100%;
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground1);
}

/* The search takes its 560 px before the sides share the rest, so narrow windows squeeze
 * the sides: they keep the folder pane toggle (32 px) and the end's controls whole, and
 * the search, then the product name, give way (#362, WCAG 2.2 SC 2.5.8). */
.p-Header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(32px, 1fr) minmax(0, 560px) minmax(auto, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 18px;
}
.p-Header__start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.p-Header__start .p-Brand {
  min-width: 0;
  margin-inline-start: 4px;
  overflow: hidden;
}
.p-Header__search .fui-SearchBox {
  box-sizing: border-box;
  width: 100%;
}
.p-Header__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* On macOS the desktop windows have no title bar (#495, the shell's `title_bar.rs`): the
 * window's controls sit at the start of the top bar, centred in 48 px, and the bar makes
 * room for them on the left, where they stay whatever the page's direction. In full screen
 * the system hides them, and the room goes. A draft's and an event's own windows have their
 * ribbon on top: its first row takes the header's height. */
:root[data-title-bar="overlay"]:not([data-full-screen]) .p-Header,
:root[data-title-bar="overlay"]:not([data-full-screen]) .p-EventWindow--page > header > .p-Ribbon {
  padding-left: 84px;
}
/* 48 px with its 4 px padding. */
:root[data-title-bar="overlay"]:not([data-full-screen]) .p-EventWindow--page > header > .p-Ribbon {
  min-height: 40px;
}
/* Inside the ribbon's own 8 px. */
:root[data-title-bar="overlay"]:not([data-full-screen]) .p-ComposePage .p-ComposeRibbon .p-Ribbon__tabs {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-left: 76px;
}
/* Without a frame (#495: Windows, and Linux unless the user keeps the system's title bar),
 * the top bar ends with the window's controls (`ui/title_bar.rs`), flush with the window's
 * top and end. A draft's and an event's own windows have their ribbon on top: its first
 * row takes the header's height, as on macOS, and ends with the controls. */
:root[data-title-bar="frameless"] .p-Header {
  padding-inline-end: 0;
}
:root[data-title-bar="frameless"] .p-EventWindow--page > header {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
:root[data-title-bar="frameless"] .p-EventWindow--page > header > .p-Ribbon {
  flex: 1;
  min-height: 40px;
  border-bottom: 0;
}
:root[data-title-bar="frameless"] .p-ComposePage .p-ComposeRibbon .p-Ribbon__tabs {
  display: flex;
  align-self: stretch;
  align-items: center;
  min-height: 48px;
  margin-inline-end: -8px;
}
.p-WindowControls {
  flex: none;
  align-self: flex-start;
  display: flex;
  margin-inline-start: auto;
}
/* The start, error and sign-in pages have no top bar: the controls sit at the window's top
 * end, over the page. */
.p-Centered > .p-WindowControls,
.p-SignInPage > .p-WindowControls {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  z-index: 1;
}
.p-WindowControls .p-WindowControls__button {
  width: 46px;
  min-width: 46px;
  height: 48px;
  padding: 0;
  border-radius: 0;
}
.p-WindowControls .p-WindowControls__close:hover,
.p-WindowControls .p-WindowControls__close:hover .fui-Button__icon {
  background-color: var(--colorStatusDangerBackground3);
  color: var(--colorNeutralForegroundOnBrand);
}
@media (forced-colors: active) {
  .p-WindowControls .p-WindowControls__button:hover,
  .p-WindowControls .p-WindowControls__button:hover .fui-Button__icon {
    background-color: Highlight;
    color: HighlightText;
  }
}
/* On Windows the webview moves the window (#495): WebView2 takes `app-region: drag` for the
 * window's title bar, with the system's drag, double click, Snap and window menu. What takes
 * clicks inside, as the shell's script lists it, and the parts marked "false" stay the
 * page's. */
:root[data-app-region] [data-window-drag]:not([data-window-drag="false"]) {
  -webkit-app-region: drag;
  app-region: drag;
}
:root[data-app-region] [data-window-drag] :is(a, button, input, select, textarea, label, summary, option, [contenteditable]:not([contenteditable="false"]), [tabindex]:not([tabindex="-1"]), [role="button"], [role="link"], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="tab"], [role="checkbox"], [role="radio"], [role="switch"], [role="option"], [role="combobox"], [role="searchbox"], [role="textbox"], [role="slider"]) {
  -webkit-app-region: no-drag;
  app-region: no-drag;
}
:root[data-app-region] [data-window-drag="false"] {
  -webkit-app-region: no-drag;
  app-region: no-drag;
}
/* While a dialog holds the page the frame is inert, and so are its drag regions: WebView2's
 * regions ignore what covers them, so a press on the dialog's backdrop over the header would
 * move the window instead of reaching the dialog. */
:root[data-app-region] [inert] [data-window-drag],
:root[data-app-region] [data-window-drag][inert] {
  -webkit-app-region: no-drag;
  app-region: no-drag;
}
.p-AccountButton {
  display: inline-flex;
  padding: 0;
  border: 0;
  border-radius: var(--borderRadiusCircular);
  background: none;
  cursor: pointer;
}
.p-AccountButton:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
/* The account menu's "Mail accounts" section with several accounts (#154, design 64). */
.p-AccountMenu__line svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.p-AccountMenu {
  min-width: 280px;
}
.p-AccountMenu__heading {
  padding: 8px 8px 4px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase100);
  font-weight: var(--fontWeightSemibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-AccountMenu__row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.p-AccountMenu__row > [data-mail-account] {
  flex: 1;
  min-width: 0;
}
/* The tile takes the icon's place; the checkmark of the account shown goes last. */
[data-mail-account] > .fui-MenuItem__icon,
[data-mail-accounts-sign-in] > .fui-MenuItem__icon {
  display: none;
}
[data-mail-account] > .fui-MenuItem__checkmark {
  order: 1;
  align-self: center;
  margin: 0;
}
[data-mail-account] > .fui-MenuItem__content {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.p-AccountMenu__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.p-AccountMenu__name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-weight: var(--fontWeightSemibold);
}
.p-AccountMenu__label,
.p-AccountMenu__line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-AccountMenu__line {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-AccountMenu__line[data-tone='warning'] {
  color: var(--colorStatusWarningForeground1);
}
.p-AccountMenu__pill {
  flex: none;
  padding: 0 4px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase100);
  font-weight: var(--fontWeightRegular);
}
.p-AccountMenu__count {
  flex: none;
  color: var(--colorBrandForeground1);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
}
.fui-MenuItem[data-mail-accounts-sign-in] {
  flex: none;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
}
@media (forced-colors: active) {
  .p-AccountMenu__line[data-tone='warning'],
  .p-AccountMenu__count {
    color: CanvasText;
  }
}

.p-AppBar {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 4px 8px;
}
.p-AppBar__spacer {
  flex: 1;
}
.p-AppBar__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
  border: 0;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorNeutralForeground2);
  font-family: inherit;
  font-size: var(--fontSizeBase100);
  line-height: var(--lineHeightBase100);
  cursor: pointer;
}
.p-AppBar__item:hover {
  background-color: var(--colorSubtleBackgroundHover);
  color: var(--colorNeutralForeground1);
}
.p-AppBar__item:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
/* An app the server does not offer (#357): its label stays readable, its icon greys. */
.p-AppBar__item--unavailable {
  color: var(--colorNeutralForeground3);
}
.p-AppBar__item--unavailable .p-AppBar__icon {
  color: var(--colorNeutralForegroundDisabled);
}
.p-AppBar__item[aria-current="page"] {
  background-color: var(--colorNeutralBackground1);
  color: var(--colorBrandForeground1);
}
.p-AppBar__item[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  bottom: 10px;
  width: var(--strokeWidthThicker);
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorCompoundBrandStroke);
}
.p-AppBar__icon {
  display: inline-flex;
  font-size: 24px;
}
.p-AppBar__icon .fui-Icon-filled,
.p-AppBar__item[aria-current="page"] .fui-Icon-regular {
  display: none;
}
.p-AppBar__item[aria-current="page"] .fui-Icon-filled {
  display: inline;
}

.p-Workspace {
  position: relative;
  grid-row: 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-start-start-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
}
.p-Ribbon {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px 8px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
/* The commands take the row; those that do not fit move into its "more" menu
 * (perspective-fluent's OverflowToolbar). */
.p-Ribbon__commands {
  flex: 1;
}
.p-Ribbon__end {
  flex: none;
}
.p-Ribbon[data-layout="classic"] {
  align-items: flex-start;
}
.p-Ribbon[data-layout="classic"] .p-Ribbon__end {
  padding-block-start: 4px;
}
/* A split or menu command with its menu, as one item of the row. */
.p-RibbonCommand {
  display: inline-flex;
}
/* A ribbon with tabs (the calendar's, #267): the tabs, then the selected tab's commands
 * with the layout switch at their end. */
.p-Ribbon.p-Ribbon--tabbed[data-layout] {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-block-start: 0;
}
.p-Ribbon__tabs {
  align-self: flex-start;
}
.p-Ribbon__row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.p-Ribbon--tabbed[data-layout="classic"] .p-Ribbon__row {
  align-items: flex-start;
}
.p-Ribbon__panel {
  flex: 1;
  display: flex;
  min-width: 0;
}
/* The frame's place for a draft's ribbon (#316, `compose_ribbon.rs`), and the portal's
 * wrapper inside it: no box of their own. */
.p-RibbonHost,
.p-RibbonHost > div {
  display: contents;
}
/* A draft's tabs after Home, set apart by a 1 px divider (DESIGN.md 14.1). */
.p-ComposeRibbon .fui-Tab[data-compose-first] {
  margin-inline-start: 8px;
  box-shadow: -5px 0 0 -4px var(--colorNeutralStroke2);
}
.p-ComposeRibbon .fui-Tab[data-compose-first]:dir(rtl) {
  box-shadow: 5px 0 0 -4px var(--colorNeutralStroke2);
}
/* Focused, it keeps a tab's focus ring (fluent.css), which the divider's shadow above would
 * replace (#364), the divider under it. */
.p-ComposeRibbon .fui-Tab[data-compose-first]:focus-visible {
  box-shadow:
    var(--shadow4),
    0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),
    -5px 0 0 -4px var(--colorNeutralStroke2);
}
.p-ComposeRibbon .fui-Tab[data-compose-first]:dir(rtl):focus-visible {
  box-shadow:
    var(--shadow4),
    0 0 0 var(--strokeWidthThick) var(--colorStrokeFocus2),
    5px 0 0 -4px var(--colorNeutralStroke2);
}
/* A draft's ribbon at the top of its window, on a page without the mail ribbon (#38). */
.p-Compose > .p-ComposeRibbon {
  margin: -12px -20px 0 -24px;
}
/* A toggle joined to the menu of its options (Day and its number of days). */
.p-RibbonCommand--pair > .fui-MenuButton {
  min-width: 0;
  padding-inline: 2px;
}
.p-Panes {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* css/search.css */
/* ------------------------------------------------------------------ search (ADR 0030) */

/* The header's search: the scope menu button, then the box with its suggestions. */
.p-Search {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.p-Search > .fui-MenuButton {
  flex: none;
  max-width: 40%;
}
.p-Search__field {
  position: relative;
  flex: 1;
  min-width: 0;
}
/* The kit's input keeps its suffix zero-sized; the clear control needs a real box to be
   pressed. */
.p-Search__box > .fui-Input__contentAfter {
  width: auto;
  height: auto;
  overflow: visible;
  padding-inline-end: var(--spacingHorizontalXS);
}
.p-Search__box .fui-SearchBox__dismiss {
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--borderRadiusMedium);
}
.p-Search__box .fui-SearchBox__dismiss:hover {
  background-color: var(--colorSubtleBackgroundHover);
  color: var(--colorNeutralForeground3Hover);
}
/* The flyout under the box (#420): the width of the box, 4px radius, rows of the compact
   density (8 + 20 + 8), one line each; it never takes the focus from the input. */
.p-Search__suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 4px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--colorTransparentStroke);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow16);
}
.p-Search__suggestions[hidden] {
  display: none;
}
.p-Suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground1);
  cursor: pointer;
}
.p-Suggestion:hover,
.p-Suggestion[data-current] {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-Suggestion[data-current] {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-Suggestion__icon {
  display: inline-flex;
  color: var(--colorNeutralForeground3);
}
.p-Suggestion__label,
.p-Suggestion__detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Suggestion__detail {
  color: var(--colorNeutralForeground3);
}
/* A person's job title (#473), before the address in the flyout. */
.p-Suggestion__job {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--colorNeutralForeground2);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* An event's organiser (#473), after its time where the row has room. */
.p-Suggestion__organizer {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--colorNeutralForeground3);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-SuggestGroup {
  display: flex;
  flex-direction: column;
}
.p-SuggestGroup + .p-SuggestGroup,
.p-SuggestGroup + .p-Suggestion {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-SuggestGroup__title {
  padding: 4px 8px 2px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
  line-height: var(--lineHeightBase200);
}
.p-Search__suggestions .p-Suggestion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 8px;
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground1);
  cursor: pointer;
}
.p-Search__suggestions .p-Suggestion:hover,
.p-Search__suggestions .p-Suggestion[data-current] {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-Search__suggestions .p-Suggestion[data-current] {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-Search__suggestions .p-Suggestion__icon,
.p-Search__suggestions .p-Suggestion__avatar,
.p-Search__suggestions .p-Suggestion__card {
  flex: none;
  display: inline-flex;
}
.p-Search__suggestions .p-Suggestion__icon {
  color: var(--colorNeutralForeground3);
}
.p-Search__suggestions .p-Suggestion__label,
.p-Search__suggestions .p-Suggestion__detail,
.p-Search__suggestions .p-Suggestion__from,
.p-Search__suggestions .p-Suggestion__subject,
.p-Search__suggestions .p-Suggestion__date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Search__suggestions .p-Suggestion__label {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 70%;
}
.p-Search__suggestions .p-Suggestion__detail,
.p-Search__suggestions .p-Suggestion__date {
  color: var(--colorNeutralForeground3);
}
.p-Search__suggestions .p-Suggestion__detail {
  flex: 1 1 0;
  min-width: 0;
}
.p-Search__suggestions .p-Suggestion__date {
  flex: none;
  margin-inline-start: auto;
}
/* A message: the sender, then the subject taking the rest, then the date, as a compact
   row of the list. */
.p-Search__suggestions .p-Suggestion__from {
  flex: none;
  width: 30%;
  max-width: 140px;
}
.p-Search__suggestions .p-Suggestion__subject {
  flex: 1 1 0;
  min-width: 0;
}
.p-Search__suggestions .p-Suggestion__from[data-unread],
.p-Search__suggestions .p-Suggestion__subject[data-unread] {
  font-weight: var(--fontWeightSemibold);
}
.p-Search__suggestions .p-Suggestion[data-kind="run"] .p-Suggestion__label {
  max-width: none;
  font-weight: var(--fontWeightSemibold);
}
/* The card of a person: a second action, pressed with the pointer or the Right arrow. */
.p-Search__suggestions .p-Suggestion__card {
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground3);
}
.p-Search__suggestions .p-Suggestion__card:hover {
  background-color: var(--colorSubtleBackgroundHover);
  color: var(--colorNeutralForeground3Hover);
}
.p-Search__suggestions .p-Suggestion[data-current] .p-Suggestion__card {
  color: var(--colorNeutralForeground2);
}
@media (forced-colors: active) {
  .p-Search__suggestions {
    border-color: CanvasText;
  }
  .p-Search__suggestions .p-Suggestion[data-current] {
    forced-color-adjust: none;
    background-color: Highlight;
    color: HighlightText;
  }
  .p-Search__suggestions .p-Suggestion[data-current] .p-Suggestion__icon,
  .p-Search__suggestions .p-Suggestion[data-current] .p-Suggestion__detail,
  .p-Search__suggestions .p-Suggestion[data-current] .p-Suggestion__date,
  .p-Search__suggestions .p-Suggestion[data-current] .p-Suggestion__card {
    color: HighlightText;
  }
}
/* Above the results: refiner chips, where the server's part stands, the way out. */
.p-SearchBar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 16px 8px;
}
.p-SearchBar__refiners {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.p-SearchBar__status {
  flex: 1;
  min-width: 0;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-RefinerForm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}
.p-RefinerForm__actions {
  display: flex;
  gap: 8px;
}
.p-RefinerForm__error {
  margin: 0;
  color: var(--colorPaletteRedForeground1);
}
.p-RefinerForm__error:empty {
  display: none;
}
/* Matches in result rows. */
.p-Highlight {
  border-radius: var(--borderRadiusSmall);
  background-color: var(--colorPaletteYellowBackground2);
  color: var(--colorNeutralForeground1);
}
@media (forced-colors: active) {
  .p-Highlight {
    background-color: Mark;
    color: MarkText;
  }
}

/* css/folder-pane.css */
/* ------------------------------------------------------------------ folder pane */

.p-FolderPane {
  flex: none;
  display: flex;
  flex-direction: column;
  width: 240px;
  min-height: 0;
  border-inline-end: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground3);
}
.p-FolderPane__tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 4px;
}
.p-FolderPane__account {
  font-weight: var(--fontWeightSemibold);
  overflow: hidden;
  text-overflow: ellipsis;
}
/* An account's node with several accounts (#154, design 63). */
.p-FolderPane__node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}
.p-FolderPane__node .p-FolderPane__account {
  min-width: 0;
}
/* The warning triangle of an account that needs attention (design 4). */
.p-AccountAttention {
  display: inline-flex;
  flex: none;
  color: var(--colorStatusWarningForeground1);
}
.p-AccountAttention svg {
  width: 16px;
  height: 16px;
  flex: none;
}
@media (forced-colors: active) {
  .p-AccountAttention {
    color: CanvasText;
  }
}
/* "Add account" at the pane's end with several accounts (#154, design 63). */
.p-FolderPane__add {
  flex: none;
  padding: 4px;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-FolderPane__addButton {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorNeutralForeground2);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  text-align: start;
  cursor: pointer;
}
.p-FolderPane__addButton:hover {
  background-color: var(--colorSubtleBackgroundHover);
  color: var(--colorNeutralForeground1);
}
.p-FolderPane__addButton:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-FolderPane__addButton svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.p-App[data-layout="phone"] .p-FolderPane__addButton {
  min-height: 44px;
}
.p-FolderPane .fui-TreeItemLayout__main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-FolderPane__section {
  font-weight: var(--fontWeightSemibold);
}
/* A folder created here and not on the server yet. */
.p-FolderPane .fui-TreeItem[data-local] > .fui-TreeItemLayout .fui-TreeItemLayout__main {
  font-style: italic;
}
/* A folder's colour (#76): its icon takes it, as a category's dot does. */
.p-FolderPane .fui-TreeItemLayout[data-color] > .fui-TreeItemLayout__iconBefore {
  color: var(--p-category-dot);
}
/* A folder's total count, in brackets, beside it. */
.p-FolderPane__total {
  padding-inline: 4px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
/* Where a dragged folder or dragged messages would go (#251). */
.p-FolderPane .fui-TreeItem[data-drop] > .fui-TreeItemLayout {
  outline: var(--strokeWidthThick) solid var(--colorBrandStroke1);
  outline-offset: calc(-1 * var(--strokeWidthThick));
  background-color: var(--colorNeutralBackground1Hover);
}
/* A folder name edited in place: the field fills the label's place; why a name cannot be
 * used shows under it, over the next rows. */
.p-FolderEditor {
  position: relative;
  display: block;
  min-width: 0;
}
.p-FolderEditor__field {
  box-sizing: border-box;
  width: 100%;
  min-height: 24px;
}
.p-FolderEditor__field .fui-Input__input {
  box-sizing: border-box;
  min-width: 0;
  /* A pointer target of 24 px at least (WCAG 2.2, 2.5.8). */
  height: 24px;
}
.p-FolderEditor__error {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 2px);
  z-index: 10;
  padding: 4px 8px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow16);
  color: var(--colorPaletteRedForeground1);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  white-space: normal;
}

.p-Status {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 16px;
  padding: 8px 12px;
  border-top: 1px solid var(--colorNeutralStroke2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground2);
}
.p-Status:empty {
  display: none;
}
.p-Status__line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.p-Status__icon {
  display: inline-flex;
  flex: none;
  font-size: 16px;
}
.p-Status__icon:empty {
  display: none;
}
.p-Status__line[data-tone="ok"] .p-Status__icon {
  color: var(--colorStatusSuccessForeground1);
}
.p-Status__line[data-tone="warning"] .p-Status__icon {
  color: var(--colorStatusWarningForeground1);
}
.p-Status__line[data-tone="error"] {
  color: var(--colorPaletteRedForeground1);
}
.p-Status__action {
  flex: none;
  padding: 0 12px 8px;
}

/* "Details" under an error (#472, #474): the step, the host and the reason, or why a removal
   failed, selectable. */
.p-ErrorDetails {
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground2);
}
.p-ErrorDetails__summary {
  width: fit-content;
  cursor: pointer;
  border-radius: var(--borderRadiusMedium);
}
.p-ErrorDetails__summary:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 1px;
}
.fui-MessageBar .p-ErrorDetails {
  margin-top: 4px;
}
.p-ErrorDetails__text {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  font-family: var(--fontFamilyMonospace);
}

/* css/message-list.css */
/* ------------------------------------------------------------------ mail area */

.p-MailArea {
  flex: 1;
  display: grid;
  min-width: 0;
  min-height: 0;
}
.p-App[data-reading-pane="right"] .p-MailArea {
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
}
.p-App[data-reading-pane="bottom"] .p-MailArea {
  grid-template-rows: minmax(160px, 40%) minmax(0, 1fr);
}
.p-App[data-reading-pane="hidden"] .p-MailArea {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.p-ListPane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.p-App[data-reading-pane="right"] .p-ListPane {
  border-inline-end: 1px solid var(--colorNeutralStroke2);
}
.p-App[data-reading-pane="bottom"] .p-ListPane {
  border-bottom: 1px solid var(--colorNeutralStroke2);
}

/* ------------------------------------------------------------------ message list */

.p-MessageList {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.p-MessageList__header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 12px 12px 8px 16px;
}
.p-MessageList__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The account after the folder's name while another account than the default shows (#154,
   design 63): its tile and name in an outlined chip. */
.p-MessageList__accountChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 50%;
  margin-inline-start: 8px;
  padding: 0 6px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightRegular);
  vertical-align: middle;
}
.p-MessageList__accountName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-MessageList__selected {
  flex: none;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  white-space: nowrap;
}
.p-MessageList__error {
  flex: none;
  padding: 0 12px 8px;
}
.p-MessageList__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  outline: none;
  contain: strict;
  border-top: 1px solid var(--colorNeutralStroke2);
}
/* An outline, not an inset shadow: the rows' backgrounds would cover a shadow, so a list
 * reached with Tab, before any row is focused, showed no focus at all (#141). Forced
 * colours keep an outline, too. */
.p-MessageList__viewport:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-MessageList__content {
  position: relative;
  width: 100%;
}
.p-MessageList__loading {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.p-Slot {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  will-change: transform;
}
.p-Slot--static {
  position: static;
  height: 76px;
}
.p-App[data-density="roomy"] .p-Slot--static {
  height: 104px;
}
.p-App[data-density="compact"] .p-Slot--static {
  height: 36px;
}
/* Without the preview text (#17): 56 and 64 px (`Density::heights`). */
.p-App[data-preview="off"] .p-Slot--static {
  height: 56px;
}
.p-App[data-preview="off"][data-density="roomy"] .p-Slot--static {
  height: 64px;
}
.p-App[data-preview="off"][data-density="compact"] .p-Slot--static {
  height: 36px;
}

.p-GroupHeader {
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding: 0 16px 6px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-App[data-density="compact"] .p-GroupHeader {
  padding-bottom: 5px;
}

.p-Row {
  position: relative;
  box-sizing: border-box;
  display: grid;
  column-gap: 8px;
  align-content: center;
  height: 100%;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke3);
  background-color: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  cursor: pointer;
  user-select: none;
}
.p-Row:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-Row[data-opened] {
  background-color: var(--colorNeutralBackground1Selected);
}
.p-Row[aria-selected="true"] {
  background-color: var(--colorBrandBackground2);
}
.p-MessageList__viewport:focus-visible .p-Row[data-focused] {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
/* Selection mode: a checkbox before each row (pointer only; Space checks the row under
 * the keyboard). */
.p-MessageList__viewport[data-selection-mode] .p-Row,
.p-Row[data-checked] {
  padding-inline-start: 40px;
}
.p-Row__check {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  display: inline-flex;
  translate: 0 -50%;
  color: var(--colorNeutralForeground3);
  font-size: 20px;
}
.p-Row[data-checked] .p-Row__check {
  color: var(--colorCompoundBrandForeground1);
}
/* Hover actions: the registry's commands for the row under the pointer, over the end of
 * the row. Pointer only: a listbox option holds no control (their keyboard equivalents are
 * the context menu and the list's keys). */
.p-Row__actions {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  display: none;
  gap: 2px;
  padding: 2px;
  translate: 0 -50%;
  border-radius: var(--borderRadiusMedium);
  background-color: inherit;
}
.p-Row:hover .p-Row__actions {
  display: flex;
}
/* A touch has no hover: the actions would stay on a row after a tap (the owner's feedback,
 * #183). On a phone they are never shown; the swipes, the selection bar and the row menu
 * carry the commands. */
@media (hover: none) {
  .p-Row:hover .p-Row__actions {
    display: none;
  }
}
.p-App[data-layout="phone"] .p-Row:hover .p-Row__actions {
  display: none;
}
.p-Row__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground2);
  font-size: 20px;
  cursor: pointer;
}
.p-Row__action:hover {
  background-color: var(--colorNeutralBackground1Pressed);
  color: var(--colorNeutralForeground1);
}
.p-Row__action[data-active] {
  color: var(--colorPaletteRedForeground1);
}
.p-Row__action[hidden] {
  display: none;
}
.p-Row[data-unread]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: var(--strokeWidthThicker);
  background-color: var(--colorCompoundBrandBackground);
}
.p-Row__avatar {
  grid-area: avatar;
  align-self: start;
}
.p-Row__from,
.p-Row__subject,
.p-Row__preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Row__from {
  grid-area: from;
}
.p-Row__more {
  color: var(--colorNeutralForeground3);
  font-weight: var(--fontWeightRegular);
}
.p-Row__subject {
  grid-area: subject;
}
.p-Row__preview {
  grid-area: preview;
  color: var(--colorNeutralForeground3);
}
.p-Row__date {
  grid-area: date;
  justify-self: end;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  white-space: nowrap;
}
.p-Row[data-unread] .p-Row__from,
.p-Row[data-unread] .p-Row__subject {
  font-weight: var(--fontWeightSemibold);
}
.p-Row[data-unread] .p-Row__date {
  color: var(--colorBrandForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-Row[aria-selected="true"][data-unread] .p-Row__date {
  color: var(--colorBrandForeground2);
}
.p-Row__icons {
  grid-area: icons;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--colorNeutralForeground3);
  font-size: 16px;
}
.p-Row__attachment,
.p-Row__state {
  display: inline-flex;
}
/* The importance its sender gave a message (#36): high in red, low in the row's grey. */
.p-Row__importance {
  display: inline-flex;
}
.p-Row__importance[data-importance="high"] {
  color: var(--colorPaletteRedForeground1);
}
/* The flag of a flagged row: an indicator only (rows are listbox options, which hold no
 * control); flagging goes through the ribbon or Insert. */
.p-Row__flag {
  display: inline-flex;
  padding: 2px;
  color: var(--colorPaletteRedForeground1);
  font-size: 16px;
}
/* A pinned row (#17): an indicator only, as the flag. */
.p-Row__pin {
  display: inline-flex;
  padding: 2px;
  color: var(--colorBrandForeground1);
  font-size: 16px;
}
/* The pinned section's group (#17): it owns rows for assistive technologies, and shows
 * nothing. */
.p-MessageList__pinned {
  position: absolute;
  width: 0;
  height: 0;
}
.p-VisuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Cozy: sender and date, subject and icons, one line of preview (8 + 3 × 20 + 8). */
.p-App[data-density="cozy"] .p-Row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 20px 20px 20px;
  grid-template-areas:
    "from date"
    "subject icons"
    "preview preview";
}
/* Roomy: avatar, then two lines of preview (12 + 4 × 20 + 12). */
.p-App[data-density="roomy"] .p-Row {
  column-gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  grid-template-rows: 20px 20px 40px;
  grid-template-areas:
    "avatar from date"
    "avatar subject icons"
    "avatar preview preview";
}
.p-App[data-density="roomy"] .p-Row__preview {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* Compact: one line (8 + 20 + 8). */
.p-App[data-density="compact"] .p-Row {
  align-items: center;
  grid-template-columns: 140px minmax(0, max-content) minmax(0, 1fr) auto auto;
  grid-template-rows: 20px;
  grid-template-areas: "from subject preview icons date";
}

/* Without the preview text (#17): its line goes, and in Compact the subject takes its
 * place (8 + 2 × 20 + 8 cozy, 12 + 2 × 20 + 12 roomy, 8 + 20 + 8 compact). */
.p-App[data-preview="off"][data-density="cozy"] .p-Row {
  grid-template-rows: 20px 20px;
  grid-template-areas:
    "from date"
    "subject icons";
}
.p-App[data-preview="off"][data-density="roomy"] .p-Row {
  grid-template-rows: 20px 20px;
  grid-template-areas:
    "avatar from date"
    "avatar subject icons";
}
.p-App[data-preview="off"][data-density="compact"] .p-Row {
  grid-template-columns: 140px minmax(0, 1fr) auto auto;
  grid-template-areas: "from subject icons date";
}

.p-Row__skeleton {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}
.p-Row__skeleton > .fui-SkeletonItem:nth-child(1) {
  width: 45%;
}
.p-Row__skeleton > .fui-SkeletonItem:nth-child(2) {
  width: 80%;
}
.p-Row__skeleton > .fui-SkeletonItem:nth-child(3) {
  width: 65%;
}
.p-App[data-density="compact"] .p-Row__skeleton {
  grid-template-columns: 30% 1fr;
  padding: 12px 16px;
}
.p-App[data-density="compact"] .p-Row__skeleton > .fui-SkeletonItem {
  width: auto;
}
.p-App[data-density="compact"] .p-Row__skeleton > .fui-SkeletonItem:nth-child(3) {
  display: none;
}

/* css/conversations.css */
/* ------------------------------------------------------------------ conversations (#15) */

/* The arrow of a conversation of several emails, in the row's start padding: pointer only
 * (Right and Left expand and collapse from the keyboard). */
.p-Row__chevron {
  position: absolute;
  inset-inline-start: 3px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 16px;
  color: var(--colorNeutralForeground3);
  font-size: 12px;
}
.p-Row__chevron:hover {
  color: var(--colorNeutralForeground1);
}
.p-App[data-density="compact"] .p-Row__chevron {
  top: 50%;
  translate: 0 -50%;
}
/* An email of an expanded conversation, under its row. */
.p-Row[data-kind="child"] {
  padding-inline-start: 32px;
  background-color: var(--colorNeutralBackground3);
}
.p-Row[data-kind="child"]:hover {
  background-color: var(--colorNeutralBackground2Hover);
}
.p-Row[data-kind="child"][data-opened] {
  background-color: var(--colorNeutralBackground1Selected);
}
.p-Row[data-kind="child"][aria-selected="true"] {
  background-color: var(--colorBrandBackground2);
}
.p-Row__count {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 0 6px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase100);
  font-weight: var(--fontWeightRegular);
  line-height: var(--lineHeightBase200);
}

/* The open conversation in the reading pane: its messages in every folder, the open one
 * whole, the others as cards that open it. */
.p-Conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 16px 24px;
}
.p-Conversation__messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Conversation__item {
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusLarge);
  background-color: var(--colorNeutralBackground1);
}
.p-Conversation__item[data-open] {
  display: flex;
  flex-direction: column;
}
.p-Conversation__item .p-Message {
  padding: 8px 16px 16px;
}
/* The open message fills what the cards and the subject leave of the pane, and grows past
 * it with its body: the pane scrolls the conversation as one (#334). */
.p-Conversation__messages,
.p-Conversation__item[data-open],
.p-Conversation__item .p-Message {
  flex: 1 0 auto;
}
.p-Conversation__item[data-open] > .p-Conversation__bar {
  justify-content: flex-end;
  padding: 8px 12px 0;
}
.p-ConversationCard {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-end: 8px;
}
.p-ConversationCard__open {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "from date"
    "preview preview";
  gap: 2px 8px;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--borderRadiusLarge);
  background-color: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-ConversationCard__open:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-ConversationCard__open:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-ConversationCard__from,
.p-ConversationCard__preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-ConversationCard__from {
  grid-area: from;
}
.p-ConversationCard[data-unread] .p-ConversationCard__from {
  font-weight: var(--fontWeightSemibold);
}
.p-ConversationCard__date {
  grid-area: date;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  white-space: nowrap;
}
.p-ConversationCard__preview {
  grid-area: preview;
  color: var(--colorNeutralForeground3);
}
.p-Conversation__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
/* Where a message of the conversation is besides the open folder; Trash and Junk stand
 * out, since deleting from there is permanent. */
.p-Conversation__folder {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  white-space: nowrap;
}
.p-Conversation__folder[data-bin] {
  background-color: var(--colorStatusWarningBackground1);
  color: var(--colorNeutralForeground1);
}

/* css/reading-pane.css */
/* ------------------------------------------------------------------ reading pane */

.p-ReadingPane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background-color: var(--colorNeutralBackground1);
}
/* F6 reaches the reading pane (#20): its focus shows inside its edge. */
.p-ReadingPane:focus {
  outline: none;
}
/* An outline over the content, which would cover an inset shadow (#141). */
.p-ReadingPane:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-Message {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 16px 20px 16px 24px;
}
/* A message open alone scrolls as one, its headers with its body (#334). */
.p-ReadingPane > .p-Message {
  overflow-y: auto;
}
.p-Message__back {
  margin: -8px 0 -4px -12px;
}
.p-Message__subject {
  margin: 0;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
  overflow-wrap: anywhere;
}
.p-Message__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-Message__people {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
}
.p-Message__from {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}
.p-Message__name {
  font-weight: var(--fontWeightSemibold);
}
.p-Message__address,
.p-Message__date {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Message__recipients {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-Message__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* A person a message names, which opens their hovercard (#50 part 3). */
.p-Person {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: none;
  border-radius: var(--borderRadiusSmall);
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-Person:hover {
  text-decoration: underline;
}
.p-Person:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
}
.p-Hovercard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(328px, calc(100vw - 64px));
  outline: none;
}
.p-Hovercard__header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.p-Hovercard__photo {
  position: relative;
  display: inline-flex;
  flex: none;
}
.p-Hovercard__presence {
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
}
.p-Hovercard__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.p-Hovercard__name {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Hovercard__title,
.p-Hovercard__date,
.p-Hovercard__empty {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Hovercard__availability:empty {
  display: none;
}
.p-Hovercard__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 0 8px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusCircular);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase300);
}
.p-Hovercard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-Hovercard__details,
.p-Hovercard__messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Hovercard__details {
  padding-top: 12px;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Hovercard__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.p-Hovercard__phone {
  padding-inline-start: 28px;
}
.p-Hovercard__recent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Hovercard__heading {
  margin: 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-Hovercard__empty {
  margin: 0;
}
.p-Hovercard__message {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 8px;
  border: none;
  border-radius: var(--borderRadiusMedium);
  background: none;
  color: var(--colorNeutralForeground1);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-Hovercard__message:hover {
  background: var(--colorNeutralBackground1Hover);
}
.p-Hovercard__message:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
}
.p-Hovercard__message[data-unread] .p-Hovercard__subject {
  font-weight: var(--fontWeightSemibold);
}
.p-Hovercard__subject {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Hovercard__date {
  flex: none;
}
.p-Hovercard__loading {
  display: flex;
  justify-content: center;
  padding: 24px;
}
.p-AttachmentBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
/* The meeting a message carries (#44): what it is, when and where, and the answer. */
.p-Invitation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
}
.p-Invitation__kind,
.p-Invitation__line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.p-Invitation__kind,
.p-Invitation__muted {
  color: var(--colorNeutralForeground2);
}
.p-Invitation__icon {
  display: inline-flex;
}
.p-Invitation__title {
  margin: 0;
  font-size: var(--fontSizeBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Invitation__answers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.p-Invitation__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
/* An attendee's proposal of a new time (#326), in the card and the details. */
.p-Invitation__proposal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.p-Invitation__comment {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.p-Invitation__buttons .fui-Button[aria-pressed="true"] {
  background-color: var(--colorNeutralBackground1Selected);
  font-weight: var(--fontWeightSemibold);
}
.p-Attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  max-width: 320px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
}
.p-Attachment__icon {
  display: inline-flex;
  flex: none;
  font-size: 20px;
  color: var(--colorBrandForeground1);
}
.p-Attachment__icon .fui-Icon-filled {
  display: none;
}
.p-Attachment__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-Attachment__actions {
  display: flex;
  flex: none;
  gap: 2px;
}
.p-Attachment__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Attachment__size {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-MessageBody__skeleton {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.p-MessageBody__skeleton > .fui-SkeletonItem:nth-child(2n) {
  width: 85%;
}
.p-MessageBody__skeleton > .fui-SkeletonItem:last-child {
  width: 55%;
}
.p-MessageBody {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.p-MessageBody__frame {
  flex: 1;
  /* WebKit on iOS grows a frame to its document's width (a wide table): the frame takes
     the column's width instead, and a wide body scrolls inside it (#179). */
  width: 1px;
  min-width: 100%;
  min-height: 160px;
  border: 0;
  border-radius: var(--borderRadiusXLarge);
  background-color: #fff;
}
/* A body sized to its document (`fit`, #334): the frame has its document's height, and
 * stretches to the space left below the headers, never shrinking below its content. */
.p-MessageBody--fit,
.p-MessageBody--fit > .p-MessageBody__frame {
  flex: 1 0 auto;
}
/* The body between its formatted and its text version (#479): a column like the body it
   holds; after a switch, the new document fades in, at once under reduced motion. */
.p-Message__version {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.p-Message__version[data-switched] .p-MessageBody__frame {
  animation: p-VersionIn 180ms var(--curveDecelerateMid) both;
}
@keyframes p-VersionIn {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-Message__version[data-switched] .p-MessageBody__frame {
    animation: none;
  }
}
.p-Message__textVersion[aria-pressed="true"] {
  background-color: var(--colorSubtleBackgroundSelected);
  color: var(--colorNeutralForeground1Selected);
}
/* A message in its dark rendering, HTML (#340) or plain text (#428): the canvas of its
   document, the theme's surface (#380), which the frame shows until its document has
   painted. */
.p-MessageBody__frame--dark {
  background-color: var(--colorNeutralBackground1);
}
:root[data-theme="dark"] .p-MessageBody__frame {
  box-shadow: var(--shadow4);
}
/* The remote content bar wraps its text, never its actions, so that "Show pictures" and
   "Always show pictures" stay inside it in a narrow pane (#71). */
.p-MessageBody__notice .fui-MessageBar {
  white-space: normal;
}
.p-MessageBody__notice .fui-MessageBarActions {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ preview dialog */

.p-Preview {
  width: min(1100px, 100%);
  height: min(860px, 100%);
}
.p-Preview .p-Dialog__header {
  gap: 12px;
  padding: 12px 16px 12px 24px;
}
.p-Preview__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
}
.p-Preview__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}
.p-Preview__body {
  flex: 1;
  display: flex;
  min-height: 0;
  background-color: var(--colorNeutralBackground3);
}
.p-Preview__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow: auto;
}
.p-Preview__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #fff;
  box-shadow: var(--shadow8);
}
.p-Preview__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background-color: #fff;
}
/* The source, as text in the theme's colours (#94). */
.p-Preview__frame--source {
  background-color: var(--colorNeutralBackground1);
}

/* css/sign-in.css */
/* ------------------------------------------------------------------ sign-in */

.p-SignInPage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* Below the window's controls, in a desktop window without a frame (#495): the page's bars
 * keep their end clear of them. */
:root[data-title-bar="frameless"] .p-SignInPage {
  box-sizing: border-box;
  padding-top: 48px;
}
.p-SignIn {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-SignIn__title {
  margin: 0;
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
}
.p-SignIn__subtitle {
  margin: 0 0 16px;
  color: var(--colorNeutralForeground2);
}
.p-SignIn__hint {
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  overflow-wrap: anywhere;
}
/* Why the server field cannot start a sign-in (#489): under its field, the form's 16 px gap
   less the field's own 4 px. */
.p-SignIn__fieldError {
  margin: -12px 0 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-SignIn__fieldError:empty {
  display: none;
}

.p-SignIn__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-SignIn__submit {
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.p-SignIn__or {
  margin: 16px 0;
}
.p-SignIn__organisation {
  width: 100%;
}
.p-SignIn__error {
  margin-bottom: 16px;
}
.p-SignIn__error:has(+ .p-SignIn__errorDetails) {
  margin-bottom: 4px;
}
.p-SignIn__errorDetails {
  margin-bottom: 16px;
}
.p-SignIn__noticeText {
  margin: 0;
}
.p-SignIn__status:empty {
  display: none;
}
.p-SignIn__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-top: 12px;
  color: var(--colorNeutralForeground2);
}
.p-SignIn__progressText {
  flex: 1;
}
.p-SignIn__advanced {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.p-SignIn__advancedToggle {
  align-self: flex-start;
}
.p-SignIn__advancedFields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 12px;
}
.p-SignIn__advancedFields[hidden] {
  display: none;
}
.p-SignIn__hint {
  margin: 0;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
}
.p-Field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-Field .fui-Input {
  box-sizing: border-box;
  width: 100%;
}

/* css/print.css */
/* ------------------------------------------------------------------ print view */

/* #132: the page is as wide as printed text, so frames sized here fit on paper. */
.p-PrintView {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: auto;
  background-color: var(--colorNeutralBackground3);
  outline: none;
}
.p-PrintView__bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-PrintView__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-PrintView__page {
  flex: none;
  box-sizing: border-box;
  width: 680px;
  margin: 24px auto;
  padding: 32px;
  color-scheme: light;
  background: #fff;
  color: #292524;
  box-shadow: var(--shadow16);
  font-family: var(--fontFamilyBase);
  font-size: 12px;
  line-height: 1.5;
}
.p-PrintMail__subject {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.p-PrintMessage + .p-PrintMessage {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #a8a29e;
}
.p-PrintMessage__headers {
  padding-bottom: 8px;
  border-bottom: 1px solid #d6d3d1;
  break-after: avoid;
  break-inside: avoid;
}
.p-PrintMessage__from {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.p-PrintMessage__line {
  margin: 0;
  overflow-wrap: anywhere;
}
.p-PrintMessage__attachments {
  padding: 8px 0;
  border-bottom: 1px solid #d6d3d1;
  break-inside: avoid;
}
.p-PrintMessage__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.p-PrintMessage__attachments ul {
  margin: 0;
  padding-inline-start: 20px;
}
.p-PrintMessage__size,
.p-PrintMessage__notice {
  color: #57534e;
}
.p-PrintMessage__notice {
  margin: 8px 0 0;
}
/* Sized to its content (src/ui/print.rs). */
.p-PrintMessage__body {
  display: block;
  width: 100%;
  height: 0;
  border: 0;
}

/* #270: the calendar's print, in the print view and in its dialog's preview. Each section
 * is a page (a day, a week, a month); a long week runs over pages with its header row
 * repeated, and no entry breaks. Black and white drops the calendars' colours. */
.p-PrintCalendar {
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.p-PrintCalendar[data-mono] {
  print-color-adjust: economy;
  -webkit-print-color-adjust: economy;
}
.p-PrintCalendar__section + .p-PrintCalendar__section {
  margin-top: 32px;
  break-before: page;
}
.p-PrintCalendar__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #292524;
  break-inside: avoid;
  break-after: avoid;
}
.p-PrintCalendar__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}
.p-PrintCalendar__calendars {
  margin: 2px 0 0;
  color: #57534e;
}
.p-PrintCalendar__mini {
  flex: none;
  border: 1px solid #d6d3d1;
  border-collapse: collapse;
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
}
.p-PrintCalendar__mini caption {
  padding: 2px;
  font-size: 9px;
  font-weight: 600;
}
.p-PrintCalendar__mini th,
.p-PrintCalendar__mini td {
  padding: 1px 3px;
  font-weight: 400;
}
.p-PrintCalendar__mini th {
  color: #57534e;
}
.p-PrintCalendar__mini td[data-printed] {
  font-weight: 700;
}
.p-PrintCalendar__grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.p-PrintCalendar__grid thead {
  display: table-header-group;
}
.p-PrintCalendar__grid th,
.p-PrintCalendar__grid td {
  padding: 4px;
  border: 1px solid #a8a29e;
  vertical-align: top;
  text-align: start;
}
.p-PrintCalendar__grid th {
  background: #f5f5f4;
  font-weight: 600;
}
.p-PrintCalendar__grid--days td {
  height: 400px;
}
.p-PrintCalendar__grid--month tr {
  break-inside: avoid;
}
.p-PrintCalendar__grid--month td {
  height: 84px;
}
.p-PrintCalendar__grid--month td[data-outside] {
  background: #fafaf9;
  color: #78716c;
}
.p-PrintCalendar__date {
  font-weight: 600;
}
.p-PrintCalendar__entries {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-PrintCalendar__grid--month .p-PrintCalendar__entries {
  gap: 2px;
  margin-top: 2px;
}
.p-PrintCalendar__entry {
  display: flex;
  flex-direction: column;
  padding: 2px 4px;
  border-inline-start: 3px solid var(--p-print-event, #57534e);
  background: color-mix(in srgb, var(--p-print-event, #57534e) 12%, #fff);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  break-inside: avoid;
}
.p-PrintCalendar[data-mono] .p-PrintCalendar__entry {
  border-inline-start-color: #292524;
  background: none;
}
.p-PrintCalendar__entry-title {
  font-weight: 600;
}
.p-PrintCalendar__time,
.p-PrintCalendar__place,
.p-PrintCalendar__attendees {
  color: #44403c;
}
.p-PrintCalendar__day {
  margin-top: 12px;
}
.p-PrintCalendar__day-title {
  margin: 0 0 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid #d6d3d1;
  font-size: 13px;
  font-weight: 600;
  break-after: avoid;
}
.p-PrintCalendar[data-layout="agenda"] .p-PrintCalendar__entry {
  font-size: 12px;
}
.p-PrintCalendar__description {
  margin: 0;
}
.p-PrintCalendar__printed {
  margin: 16px 0 0;
  color: #78716c;
  font-size: 10px;
}
/* The dialog: the options, and a preview of the first page, half its size. */
.p-CalendarDialog[data-calendar-dialog="print"] {
  width: min(880px, 100%);
  max-height: 100%;
  overflow: auto;
}
.p-CalendarPrint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 24px;
}
.p-CalendarPrint__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-CalendarPrint__dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.p-CalendarPrint__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-CalendarPrint__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.p-CalendarPrint__radio input {
  margin: 0;
  accent-color: var(--colorCompoundBrandBackground);
}
.p-CalendarPrint__preview {
  height: 440px;
  overflow: hidden;
  padding: 16px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
}
.p-CalendarPrint__sheet {
  box-sizing: border-box;
  width: 680px;
  min-height: 840px;
  padding: 32px;
  zoom: 0.5;
  color-scheme: light;
  background: #fff;
  color: #292524;
  box-shadow: var(--shadow16);
  font-family: var(--fontFamilyBase);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .p-CalendarPrint {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-CalendarPrint__preview {
    display: none;
  }
}

/* On paper, the page alone; its holders grow to break across pages. */
@media print {
  /* The phone frame pins the root and the body to the window (#179): printed, they flow from
     page to page again, or the body stops at the first page. */
  html:has(.p-PrintView),
  html:has(.p-PrintView) body,
  .fui-FluentProvider:has(> .p-PrintView) {
    position: static !important;
    inset: auto !important;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }
  /* Nor does the status bar's band print on every page. */
  .fui-FluentProvider:has(> .p-PrintView)::before {
    display: none;
  }
  body:has(.p-PrintView) > :not(.fui-FluentProvider),
  .fui-FluentProvider:has(> .p-PrintView) > :not(.p-PrintView) {
    display: none !important;
  }
  .p-PrintView {
    position: static;
    display: block;
    overflow: visible;
    background: #fff;
  }
  .p-PrintView__bar {
    display: none;
  }
  .p-PrintView__page {
    width: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
}

/* css/settings.css */
/* ------------------------------------------------------------------ settings dialog */

.p-DialogBackdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--colorBackgroundOverlay);
}
.p-Dialog {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  /* A fixed height, so that the dialog does not jump between pages. */
  height: min(760px, 100%);
  overflow: hidden;
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow64);
  outline: none;
}
.p-Dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-Dialog__title {
  margin: 0;
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
}
.p-Dialog__body {
  flex: 1;
  display: grid;
  /* The navigation fits its longest label, semibold, on one line, up to 320 px, and its
   * labels wrap rather than take the content's 256 px (#294). */
  grid-template-columns: fit-content(320px) minmax(min(256px, 100% - 220px), 1fr);
  min-height: 0;
}
.p-Dialog__nav {
  box-sizing: border-box;
  min-width: 220px;
  padding: 12px 8px;
  border-inline-end: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground3);
}
.p-Dialog__nav .fui-TabList {
  width: 100%;
}
.p-Dialog__content {
  min-height: 0;
  overflow: auto;
  padding: 24px 28px;
}
.p-Settings__title {
  margin: 0;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-Settings__subtitle {
  margin: 4px 0 8px;
  color: var(--colorNeutralForeground2);
}
.p-Settings__section {
  padding: 16px 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-Settings__section:last-child {
  border-bottom: 0;
}
.p-Settings__heading {
  margin: 0 0 12px;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Settings__warning {
  flex-basis: 100%;
}
.p-Settings__hint {
  margin: -8px 0 8px;
  color: var(--colorNeutralForeground2);
}
/* The shortening's amounts, under their check box (#272). */
.p-Settings__indented {
  padding-inline-start: 28px;
}
/* A status under the buttons, not pulled up over them (#302). */
.p-Settings__actions + .p-Settings__hint {
  margin-top: 8px;
}
.p-Settings__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
/* Settings > General > Updates (#136): the announced version's notes, text only. */
.p-UpdateNotes {
  margin: 8px 0 12px;
}
.p-UpdateNotes__heading {
  margin: 0 0 4px;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-UpdateNotes__text {
  max-height: 12em;
  overflow: auto;
  padding: 8px 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Settings > About (#357): facts, the features missing and the capabilities. */
.p-About__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0;
}
.p-About__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.p-About__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-About__item {
  display: grid;
  gap: 2px;
}
.p-About__name {
  font-weight: var(--fontWeightSemibold);
}
.p-About__hint {
  color: var(--colorNeutralForeground2);
}
.p-About__code {
  font-family: var(--fontFamilyMonospace);
  overflow-wrap: anywhere;
}
/* Settings > Folders: the statuses line up. */
.p-FolderRoles {
  display: grid;
  gap: 16px;
}
.p-FolderRoles .p-Select {
  min-width: min(14em, 100%);
}
.p-HoverSettings__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Settings > Mail: the senders whose pictures show (#71). The Add button goes under the
 * field when both no longer fit on one line (#294). */
.p-PictureSenders__add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.p-PictureSenders__add .p-Field {
  flex: 1 1 12em;
  min-width: 0;
  max-width: 24em;
}
.p-PictureSenders__error {
  margin: 4px 0 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-PictureSenders__error:empty {
  display: none;
}
.p-PictureSenders__empty {
  margin: 8px 0 0;
  color: var(--colorNeutralForeground2);
}
.p-PictureSenders__list {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.p-PictureSenders__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--colorNeutralStroke3);
}
.p-PictureSenders__item:last-child {
  border-bottom: 0;
}
.p-PictureSenders__name {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Settings > Mail: signatures and their defaults (#32). */
.p-Signatures__list {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.p-Signatures__item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid var(--colorNeutralStroke3);
}
.p-Signatures__item:last-child {
  border-bottom: 0;
}
.p-Signatures__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.p-Signatures__empty {
  margin: 8px 0 0;
  color: var(--colorNeutralForeground2);
}
.p-Signatures__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-start: 8px;
}
.p-Signatures__form .p-Field {
  max-width: 24em;
}
.p-Signatures__body .p-Editor {
  min-height: 180px;
}
.p-Signatures__error {
  margin: 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Signatures__error:empty {
  display: none;
}
.p-Signatures__defaults {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 16px;
  margin-block-start: 16px;
}
.p-Signatures__defaults-title {
  flex-basis: 100%;
  margin: 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
  line-height: var(--lineHeightBase300);
  overflow-wrap: anywhere;
}
.p-Signatures__default {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 12em;
}
/* Settings > Mail: accounts and identities (#370), on the signatures' list and form. */
.p-Identities__list {
  display: flex;
  flex-direction: column;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.p-Identities__item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border-bottom: 1px solid var(--colorNeutralStroke3);
}
.p-Identities__item:last-child {
  border-bottom: 0;
}
.p-Identities__who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.p-Identities__name,
.p-Identities__email,
.p-Identities__note,
.p-Identities__refused {
  overflow-wrap: anywhere;
}
.p-Identities__email,
.p-Identities__note {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Identities__refused,
.p-Identities__error {
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Identities__error {
  margin: 0;
}
.p-Identities__error:empty {
  display: none;
}
/* The default identity's mark: a filled badge, so it reads as a state and not as the
   "Make default" button the other rows have. */
.p-Identities__badge {
  padding: 0 8px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorBrandBackground2);
  color: var(--colorBrandForeground2);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
  line-height: var(--lineHeightBase300);
  white-space: nowrap;
}
@media (forced-colors: active) {
  .p-Identities__badge {
    border: var(--strokeWidthThin) solid CanvasText;
  }
}
.p-Identities__empty {
  margin: 8px 0 0;
  color: var(--colorNeutralForeground2);
}
.p-Identities__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-start: 8px;
}
.p-Identities__form .p-Field {
  max-width: 24em;
}
/* The From row of the compose window when the user has several identities (#370). */
.p-Compose__from-menu {
  min-width: 0;
  max-width: 100%;
}
.p-Compose__from-warning {
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
}
/* The From menu across accounts (#235, design 68): each account's heading with its tile,
   and why it cannot take the draft or what sending from it means. */
.p-Compose__fromGroup {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 4px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
}
.p-Compose__fromReason {
  padding: 0 8px 4px 32px;
  max-width: 320px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
/* A drawing in the body (#321): the picture, and the canvas while it is drawn on. */
.p-Drawing {
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}
.p-Drawing img {
  max-width: 100%;
  height: auto;
}
.p-Drawing.is-selected img,
.p-Drawing.is-editing {
  outline: 2px solid var(--colorBrandStroke1);
  outline-offset: 1px;
}
.p-Drawing__canvas {
  display: block;
  max-width: 100%;
  background: var(--p-editor-paper);
  border: 1px solid var(--colorNeutralStroke1);
  cursor: crosshair;
  touch-action: pan-x pan-y;
}
.p-Drawing__alt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: var(--fontSizeBase200);
  /* The editor's paper stays white with black ink in every theme (--p-editor-paper). */
  color: var(--p-editor-ink);
}
.p-Drawing__alt input {
  flex: 1;
  min-width: 0;
  /* A target of at least 24 px (WCAG 2.5.8). */
  min-height: 24px;
  box-sizing: border-box;
  padding: 2px 6px;
}
/* Record a clip (#323). */
.p-Dialog--record {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(560px, calc(100vw - 32px));
}
.p-Record__choose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-Record__video {
  display: block;
  width: 100%;
  max-height: 50vh;
  border-radius: var(--borderRadiusMedium);
  background: #000;
}
.p-Record__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
}
.p-Record__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
}
.p-Record__label {
  font-weight: var(--fontWeightSemibold);
}
.p-Record__time,
.p-Record__size,
.p-Record__info {
  color: var(--colorNeutralForeground2);
  margin: 0;
}
.p-Record__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--colorNeutralBackground5);
  overflow: hidden;
}
.p-Record__fill {
  display: block;
  height: 100%;
  background: var(--colorBrandBackground);
}
.p-Record__warning {
  margin: 0;
  color: var(--colorNeutralForeground1);
  font-weight: var(--fontWeightSemibold);
}
@media (forced-colors: active) {
  .p-Record__dot,
  .p-Record__fill {
    background: Highlight;
  }
}
/* The account's name beside the From address (#382). */
.p-Compose__from-account {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
/* Settings > Accounts and the rename dialog (#382). */
.p-Accounts__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-Accounts__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p-Accounts__address {
  overflow-wrap: anywhere;
}
.p-Accounts__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-Accounts__hint {
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-Accounts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* css/phone-shell.css */
/* ------------------------------------------------------------------ phone shell (#182)
   Under 600 px (`data-layout="phone"`, set from the width in `layout.rs`): the tab bar
   replaces the rail, one pane shows at a time, and the folders and More are screens of
   their own. Nothing above the breakpoint is touched. */
.p-App[data-layout="phone"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 48px minmax(0, 1fr) auto;
}
.p-App[data-layout="phone"][data-reminders],
.p-App[data-layout="phone"][data-my-day],
.p-App[data-layout="phone"][data-pending] {
  grid-template-columns: minmax(0, 1fr);
}
.p-App[data-layout="phone"] .p-AppBar {
  display: none;
}
.p-App[data-layout="phone"] .p-Workspace {
  grid-column: 1;
  border-start-start-radius: 0;
}
.p-App[data-layout="phone"] .p-Header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 8px;
}
.p-App[data-layout="phone"] .p-Header__start .p-Brand {
  display: none;
}
/* The side panes cover the workspace instead of making a column. */
.p-App[data-layout="phone"][data-reminders] > .p-SidePanes,
.p-App[data-layout="phone"][data-my-day] > .p-SidePanes,
.p-App[data-layout="phone"][data-pending] > .p-SidePanes {
  grid-row: 2;
  grid-column: 1;
  z-index: 3;
  margin: 0;
  background-color: var(--colorNeutralBackground1);
}
/* No ribbon on a phone, on any screen: its commands are in the phone's top bar, the floating
   button and the bottom bar (#499), and a desktop ribbon is wider than the screen (#179,
   #436 note 76932). */
.p-App[data-layout="phone"] .p-Ribbon,
.p-App[data-layout="phone"] .p-RibbonHost {
  display: none;
}
/* iOS (#179 MR 3, the lead's tour on the Simulator, #436 notes 76792 and 76799). WebKit on
   iOS lets a touch pan a page past `overflow: hidden` on its body, so on a phone the
   document itself never scrolls: it is pinned to the viewport, and each screen scrolls
   inside. The root keeps the status bar and the notch clear; the tab bar keeps the home
   indicator clear. */
html:has(.p-App[data-layout="phone"]),
html:has(.p-App[data-layout="phone"]) > body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
/* The frame and its panes clip what overflows: unlike `hidden`, `clip` cannot be scrolled,
   not even by a focus or `scrollIntoView`, which on iOS shifted the list sideways. Both
   axes, since `clip` beside `hidden` or `auto` computes to `hidden`; each list and message
   keeps its own scroller inside. */
.p-App[data-layout="phone"],
.p-App[data-layout="phone"] .p-Workspace,
.p-App[data-layout="phone"] .p-Panes,
.p-App[data-layout="phone"] .p-MailArea,
.p-App[data-layout="phone"] .p-ListPane,
.p-App[data-layout="phone"] .p-ReadingPane {
  overflow: clip;
}
/* A message bar on a phone, and on the sign-in card at any width: its text wraps, its
   buttons on a row of their own, never past the edge. */
:is(.p-App[data-layout="phone"], .p-SignIn) .fui-MessageBar {
  white-space: normal;
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  grid-template-areas: "icon body actions" "secondaryActions secondaryActions secondaryActions";
}
:is(.p-App[data-layout="phone"], .p-SignIn) .fui-MessageBarBody {
  min-width: 0;
  padding-block: 6px;
  overflow-wrap: anywhere;
}
:is(.p-App[data-layout="phone"], .p-SignIn) .fui-MessageBarActions {
  flex-wrap: wrap;
  justify-content: end;
  padding-bottom: 8px;
}
/* Mail's folders are a screen of their own: the list is not there meanwhile. */
.p-App[data-layout="phone"] .p-FolderPane {
  flex: 1;
  width: auto;
  border-inline-end: 0;
}
.p-App[data-layout="phone"] .p-Panes[data-folders="open"] .p-MailArea {
  display: none;
}
.p-TabBar {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  padding-bottom: var(--p-safe-area-bottom, env(safe-area-inset-bottom));
  border-top: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-TabBar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--colorNeutralForeground2);
  font-family: inherit;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  cursor: pointer;
}
.p-TabBar__item:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-TabBar__item[aria-current="page"] {
  color: var(--colorBrandForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-TabBar__icon {
  display: inline-flex;
  font-size: 24px;
}
.p-TabBar__icon .fui-Icon-filled,
.p-TabBar__item[aria-current="page"] .fui-Icon-regular {
  display: none;
}
.p-TabBar__item[aria-current="page"] .fui-Icon-filled {
  display: inline;
}
/* A label is never cut: when one is, the bar keeps one item fewer (`ui/phone.rs`, #450). */
.p-TabBar__label {
  max-width: 100%;
  padding: 0 2px;
  overflow: hidden;
  white-space: nowrap;
}
.p-TabBar__item[aria-disabled="true"] {
  color: var(--colorNeutralForeground3);
}
/* More's sheet (#450): over the current screen, dimmed, above the bar; as tall as its list,
   at most 60 % of the height. Both are positioned on the frame's rows, out of its flow: as
   grid items, the scrim took the app bar's row and pushed the bar under the tab bar (#458).
   Their rows have both ends, since an absolute box's `auto` end is the frame's edge. */
.p-App[data-layout="phone"] {
  position: relative;
}
.p-MoreSheet__scrim {
  position: absolute;
  inset: 0;
  grid-row: 1 / 3;
  grid-column: 1;
  z-index: 4;
  background-color: var(--colorBackgroundOverlay);
}
.p-MoreSheet {
  position: absolute;
  inset: auto 0 0;
  grid-row: 2 / 3;
  grid-column: 1;
  z-index: 5;
  box-sizing: border-box;
  max-height: 60vh;
  overflow: auto;
  padding: 8px 0;
  border-radius: 16px 16px 0 0;
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow28);
  touch-action: none;
}
.p-MoreSheet__grip {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 2px;
  background-color: var(--colorNeutralStroke1);
}
.p-MoreSheet__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-MoreSheet__row {
  display: flex;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--colorNeutralForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  text-align: start;
  cursor: pointer;
}
.p-MoreSheet__row[aria-disabled="true"] {
  color: var(--colorNeutralForeground3);
}
.p-MoreSheet__row:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-MoreSheet__icon {
  display: inline-flex;
  font-size: 24px;
}
.p-MoreSheet__label {
  flex: 1;
}
.p-MoreSheet__chevron {
  display: inline-flex;
  color: var(--colorNeutralForeground3);
}
@media (forced-colors: active) {
  .p-MoreSheet {
    border: 1px solid CanvasText;
  }
}
/* The account sheet (#154, designs 75 and 32): the avatar's, over the whole window, which is
   inert behind it; out of the frame, so fixed rather than on its rows as More's. */
.p-AccountSheet__scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background-color: var(--colorBackgroundOverlay);
}
.p-AccountSheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 21;
  box-sizing: border-box;
  max-height: 85vh;
  overflow: auto;
  padding: 8px 16px max(8px, env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow28);
  color: var(--colorNeutralForeground1);
  /* The content scrolls with the finger (Codex on !647); only the handle drags the sheet. */
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.p-AccountSheet__handle {
  display: flex;
  justify-content: center;
  margin: -8px -16px 4px;
  padding: 8px 0 12px;
  cursor: grab;
  touch-action: none;
}
.p-AccountSheet__grip {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--colorNeutralStroke1);
}
.p-AccountSheet__heading {
  margin: 4px 4px 8px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-AccountSheet__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-AccountSheet__list--more {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-AccountSheet__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-AccountSheet__row {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 64px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--borderRadiusXLarge);
  background: transparent;
  color: var(--colorNeutralForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  text-align: start;
  cursor: pointer;
}
.p-AccountSheet__row--action {
  min-height: 48px;
}
.p-AccountSheet__row[aria-current="true"] {
  box-shadow: inset 3px 0 0 var(--colorBrandStroke1);
  background-color: var(--colorBrandBackground2);
}
.p-AccountSheet__row[aria-current="true"]:dir(rtl) {
  box-shadow: inset -3px 0 0 var(--colorBrandStroke1);
}
.p-AccountSheet__row:focus-visible,
.p-AccountSheet__signIn:focus-visible,
.p-AccountSheet__manage:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-AccountSheet__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.p-AccountSheet__name,
.p-AccountSheet__line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-AccountSheet__name {
  font-weight: var(--fontWeightSemibold);
}
.p-AccountSheet__row--action .p-AccountSheet__name {
  flex: 1;
  font-weight: var(--fontWeightRegular);
}
.p-AccountSheet__line {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-AccountSheet__line[data-tone="warning"] {
  color: var(--colorStatusWarningForeground1);
}
.p-AccountSheet__line svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.p-AccountSheet__count {
  flex: none;
  color: var(--colorBrandForeground1);
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-AccountSheet__check {
  display: inline-flex;
  flex: none;
  width: 20px;
  color: var(--colorBrandForeground1);
}
.p-AccountSheet__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusCircular);
}
.p-AccountSheet__signIn {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
  color: var(--colorBrandForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
}
.p-AccountSheet__manage {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorBrandForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
}
@media (forced-colors: active) {
  .p-AccountSheet {
    border: 1px solid CanvasText;
  }
  .p-AccountSheet__row[aria-current="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .p-AccountSheet__line[data-tone="warning"],
  .p-AccountSheet__count,
  .p-AccountSheet__check {
    color: CanvasText;
  }
}
@media (forced-colors: active) {
  .p-TabBar {
    border-top-color: CanvasText;
  }
}
/* Settings > Accounts: the list of connections (#154). The tile is a rounded square, never a
   circle (design/multi-account.md section 2), its colour never the only cue. */
.p-AccountList {
  display: flex;
  flex-direction: column;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
.p-AccountRow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
}
.p-AccountRow + .p-AccountRow {
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-AccountTile {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: #ffffff;
  font-weight: var(--fontWeightSemibold);
  background: #0f6cbd;
}
.p-AccountTile--1 {
  background: #c50f1f;
}
.p-AccountTile--2 {
  background: #107c10;
}
.p-AccountTile--3 {
  background: #5c2e91;
}
.p-AccountTile--4 {
  background: #8a4b08;
}
.p-AccountTile--5 {
  background: #006666;
}
.p-AccountRow__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.p-AccountRow__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.p-AccountRow__name {
  overflow-wrap: anywhere;
  font-weight: var(--fontWeightSemibold);
}
.p-AccountRow__address {
  overflow-wrap: anywhere;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-AccountPage__heading .p-AccountRow__address {
  flex-basis: 100%;
}
.p-AccountRow__pill {
  padding: 0 8px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusCircular);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-AccountRow__services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-AccountRow__summary {
  display: none;
}
.p-AccountRow__service,
.p-AccountRow__problem {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.p-AccountRow__problem {
  flex-wrap: wrap;
  gap: 8px;
}
.p-AccountRow [data-tone='good'] svg {
  color: var(--colorStatusSuccessForeground1);
}
.p-AccountRow [data-tone='warning'] {
  color: var(--colorStatusWarningForeground1);
}
.p-AccountRow [data-tone='neutral'] svg {
  color: var(--colorNeutralForeground3);
}
/* A row opens its account's page (#154). */
.p-AccountRow__open {
  flex: none;
  align-self: center;
}
.p-AccountRow__open svg:dir(rtl),
.p-AccountPage__back svg:dir(rtl) {
  transform: scaleX(-1);
}
.p-AccountTile--large {
  width: 40px;
  height: 40px;
  font-size: var(--fontSizeBase400);
}
/* The tile in the folder pane (16 px) and the account menu (24 px), #154 design 2. */
.p-AccountTile--s16 {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1;
}
.p-AccountTile--s24 {
  width: 24px;
  height: 24px;
  font-size: var(--fontSizeBase200);
}
/* The account sheet's tile (40 px), #154 design 75. */
.p-AccountTile--s40 {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: var(--fontSizeBase400);
}
.p-Accounts__notice:empty {
  display: none;
}
.p-Accounts__notice {
  margin: 0 0 16px;
}
.p-Accounts__sign-out {
  margin-bottom: 16px;
}
/* One account's page (design/multi-account.md 3.3). */
.p-AccountPage__back {
  margin: 0 0 8px;
  margin-inline-start: -8px;
}
.p-AccountPage__header {
  display: flex;
  gap: 12px;
  align-items: center;
}
.p-AccountPage__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.p-AccountPage__heading .p-Settings__title {
  margin: 0;
  overflow-wrap: anywhere;
}
.p-AccountPage__status {
  min-height: 0;
  margin: 8px 0 0;
}
.p-AccountPage__problem,
.p-AccountService__state {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.p-AccountPage__section {
  margin: 0 0 8px;
  font-size: var(--fontSizeBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-AccountPage__colours {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.p-AccountPage__services {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
.p-AccountService {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: space-between;
  padding: 8px 12px;
}
.p-AccountService + .p-AccountService {
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-AccountService__state {
  color: var(--colorNeutralForeground2);
}
.p-AccountPage [data-tone='good'] svg {
  color: var(--colorStatusSuccessForeground1);
}
.p-AccountPage [data-tone='warning'] {
  color: var(--colorStatusWarningForeground1);
}
.p-AccountPage [data-tone='neutral'] svg {
  color: var(--colorNeutralForeground3);
}
.p-AccountPage__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-AccountPage__action {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.p-AccountPage__action .p-Accounts__hint {
  margin: 0;
}
/* Adding an account (design/multi-account.md 3.2): a 600 to 680 px dialog in three steps,
   the current one marked; endpoints wrap anywhere. */
.p-Dialog.p-AddAccount {
  width: min(640px, calc(100vw - 32px));
  max-width: 680px;
}
.p-AddAccount__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--colorNeutralForeground2);
  counter-reset: p-add-account-step;
}
.p-AddAccount__step {
  counter-increment: p-add-account-step;
}
.p-AddAccount__step::before {
  content: counter(p-add-account-step) '. ';
}
.p-AddAccount__step[aria-current='step'] {
  color: var(--colorNeutralForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-AddAccount__divider {
  margin: 8px 0 0;
  color: var(--colorNeutralForeground2);
}
.p-AddAccount__endpoint {
  overflow-wrap: anywhere;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-AddAccount .p-AccountService .p-AddAccount__endpoint {
  flex-basis: 100%;
}
.p-AddAccount__manual,
.p-AddAccount__test {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.p-AddAccount__name {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.p-AddAccount__name .p-Field {
  flex: 1;
}
.p-AddAccount [data-tone='good'] svg {
  color: var(--colorStatusSuccessForeground1);
}
.p-AddAccount [data-tone='warning'] {
  color: var(--colorStatusWarningForeground1);
}
.p-AddAccount [data-tone='neutral'] svg {
  color: var(--colorNeutralForeground3);
}
.p-Accounts__add {
  margin-bottom: 16px;
}
/* Removing an account (design/multi-account.md 3.4): its tile by the question, the choice
   for its unsent changes, and the danger button (12.16). */
.p-RemoveAccount__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.p-RemoveAccount__head .p-Dialog__title {
  overflow-wrap: anywhere;
}
.p-RemoveAccount__unsent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
}
.p-RemoveAccount__unsent legend {
  padding: 0 4px;
}
.p-RemoveAccount__radio {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fui-Button.p-DangerButton:not([aria-disabled='true']):not(:disabled) {
  border-color: transparent;
  color: #ffffff;
  background-color: var(--colorStatusDangerBackground3);
}
.fui-Button.p-DangerButton:not([aria-disabled='true']):not(:disabled):hover {
  background-color: var(--colorStatusDangerBackground3Hover, #b10e1c);
}
.fui-Button.p-DangerButton:not([aria-disabled='true']):not(:disabled):active {
  background-color: var(--colorStatusDangerBackground3Pressed, #960b18);
}
@media (forced-colors: active) {
  .p-AccountTile {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }
}
/* ------------------------------------------------------------------ phone reading screen (#183, #457)
   A pushed screen (design 36): one top bar, the message's own (back to the folder, Archive,
   Delete, More), in the app bar's place, and a bottom bar of answers in the tab bar's. Both
   stay in view while the message scrolls. An event's details, a contact's card and a note
   are pushed screens too (designs 42, 45 and 47): the app bar goes for their own top bar. */
.p-App[data-layout="phone"][data-pushed] {
  grid-template-rows: 0 minmax(0, 1fr) auto;
}
.p-App[data-layout="phone"][data-pushed] > .p-Header {
  display: none;
}
/* The status bar's band and the root's insets in the top bar's background. */
body > .fui-FluentProvider:has(.p-App[data-layout="phone"][data-pushed]),
body > .fui-FluentProvider:has(.p-App[data-layout="phone"][data-pushed])::before {
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-Message__back {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 56px;
  margin: 0;
  padding: 4px 4px 4px 4px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
/* A message open alone: the bar spans the screen, above the message's own inset, and sticks
   at the pane's top edge (a sticky box keeps clear of its scroller's padding). */
.p-App[data-layout="phone"] .p-ReadingPane > .p-Message > .p-Message__back {
  top: -12px;
  margin: -12px -16px 0;
}
.p-Message__tools {
  flex: none;
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}
/* Back names the parent in the brand colour (design 10.3). A long folder name gives way to
   the tools, down to the chevron's 44 px target: never less, or the button and its icon
   would leave the screen (#179, French on iOS). */
.p-App[data-layout="phone"] .p-Message__back > .fui-Button {
  flex: 0 1 auto;
  min-width: 44px;
  padding-inline: 8px;
  /* The chevron first: a name too long is cut at its end, not the chevron at the start. */
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--colorBrandForeground1);
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightRegular);
}
/* The label shrinks inside the button and ends in an ellipsis: on a flex container, which a
   button is, `text-overflow` does not reach a bare text, and WebKit let it run under the
   tools (#436 note 77119). */
.p-App[data-layout="phone"] .p-Message__backLabel {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* More is the phone's vertical "⋮" (design 36). */
.p-Message__more .fui-Button__icon {
  rotate: 90deg;
}
/* A message of a conversation has its Delete in More on a phone: the top bar's Delete is the
   conversation's (#436 note 77194). */
.p-App[data-layout="phone"] .p-Conversation__delete {
  display: none;
}
/* The subject keeps the screen's inline inset, in a conversation as in a message. */
.p-App[data-layout="phone"] .p-Conversation > .p-Message__subject {
  padding: 12px 16px;
}
/* The answers, in the tab bar's place while a message is open: each an icon over its label,
   the three sharing the width (design 36, #457). */
.p-ReadingBar {
  grid-row: 3;
  grid-column: 1;
  display: flex;
  padding-bottom: var(--p-safe-area-bottom, env(safe-area-inset-bottom));
  border-top: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-ReadingBar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 44px;
  min-height: 56px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--colorNeutralForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  cursor: pointer;
}
.p-ReadingBar__item + .p-ReadingBar__item {
  border-inline-start: 1px solid var(--colorNeutralStroke2);
}
.p-ReadingBar__item:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-ReadingBar__item:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-ReadingBar__item[aria-disabled="true"] {
  color: var(--colorNeutralForegroundDisabled);
  cursor: default;
}
.p-ReadingBar__icon {
  display: inline-flex;
  font-size: 24px;
}
.p-ReadingBar__icon .fui-Icon-filled {
  display: none;
}
.p-ReadingBar__label {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (forced-colors: active) {
  .p-ReadingBar__item[aria-disabled="true"] {
    color: GrayText;
  }
}
/* No frame around a message on a phone: the conversation, its cards and the body's frame
   take the whole width, the text keeping the list's own inset (the owner, 2026-10-27). */
.p-App[data-layout="phone"] .p-Conversation {
  gap: 0;
  padding: 0;
}
.p-App[data-layout="phone"] .p-Conversation__messages {
  gap: 0;
}
.p-App[data-layout="phone"] .p-Conversation__item {
  border: 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  border-radius: 0;
}
.p-App[data-layout="phone"] .p-Message {
  padding-block-start: 12px;
  padding-inline: 16px;
}
/* The reading screen scrolls up and down only: a scroller that also pans sideways takes the
   touch from the iOS edge swipe, which then never goes back from over the message (#179,
   #436 note 77119). A wide body pans inside its own frame. */
.p-App[data-layout="phone"] .p-ReadingPane > :is(.p-Message, .p-Conversation) {
  overflow-x: hidden;
}
.p-App[data-layout="phone"] .p-Conversation__item .p-Message {
  padding: 8px 16px 12px;
}
/* The body's frame spans the screen: its document's own 16 px padding is the text's one
   inset (design 36, #457), and it reads at 16/24 (`PHONE_BODY_STYLE`, design 10.7). */
.p-App[data-layout="phone"] .p-MessageBody__frame {
  min-width: calc(100% + 32px);
  margin-inline: -16px;
  border-radius: 0;
  box-shadow: none;
}
.p-App[data-layout="phone"] .p-MessageBody--translated {
  padding: 0;
  font-size: var(--fontSizeBase400);
  line-height: 24px;
}
.p-App[data-layout="phone"] .p-Message__tools .fui-Button {
  min-width: 44px;
  min-height: 44px;
}
/* The compact header (design 36): the name at 16 semibold and a short time on one line, the
   recipients on one more, which a tap opens to the address, every recipient and the full
   date. */
.p-App[data-layout="phone"] .p-Message__header {
  flex-wrap: nowrap;
  padding-bottom: 0;
  border-bottom: 0;
}
.p-App[data-layout="phone"] .p-Message__people {
  min-width: 0;
}
/* Reply after the time, centred on the name's line (design 36, #457). */
.p-App[data-layout="phone"] .p-Message__reply {
  flex: none;
  margin-block: -4px;
  margin-inline-start: -4px;
}
.p-App[data-layout="phone"] .p-Message__from {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0 8px;
}
.p-App[data-layout="phone"] .p-Message__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-App[data-layout="phone"] .p-Message__address {
  grid-row: 2;
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}
.p-Message__time {
  grid-row: 1;
  grid-column: 2;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  white-space: nowrap;
}
.p-Message__summary {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--borderRadiusSmall);
  background: none;
  color: var(--colorNeutralForeground2);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  text-align: start;
  cursor: pointer;
}
.p-Message__summary:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
}
.p-Message__summaryText {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.p-Message__summaryChevron {
  flex: none;
  display: inline-flex;
  font-size: 12px;
}
.p-Message__summary[aria-expanded="true"] .p-Message__summaryChevron {
  rotate: 180deg;
}
/* An earlier message, collapsed, shows its sender's 32 px avatar (design 36), and keeps the
   screen's 16 px inset. */
.p-App[data-layout="phone"] .p-ConversationCard__open {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar from date"
    "avatar preview preview";
  gap: 2px 12px;
  padding: 12px 16px;
}
.p-ConversationCard__avatar {
  grid-area: avatar;
  align-self: center;
  display: inline-flex;
}

/* ------------------------------------------------------------------ tablet drawer, touch targets (#182)
   Below 1024 px the folder pane is a drawer over the list, with a scrim, instead of a column;
   below 1024 px too, the targets of the header, the folders and the message's back button
   reach 44 x 44 (WCAG 2.5.8 asks 24; the design's touch rule is 44), by padding. */
.p-App[data-layout="tablet"] .p-Panes {
  position: relative;
}
.p-App[data-layout="tablet"] .p-FolderPane {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 4;
  box-sizing: border-box;
  width: min(320px, 85%);
  box-shadow: var(--shadow16);
}
.p-App[data-layout="tablet"] .p-Panes[data-folders="open"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: var(--colorBackgroundOverlay);
  pointer-events: none;
}
.p-App:is([data-layout="phone"], [data-layout="tablet"]) .p-Header button,
.p-App:is([data-layout="phone"], [data-layout="tablet"]) .p-Message__back .fui-Button {
  min-width: 44px;
  min-height: 44px;
}
.p-App:is([data-layout="phone"], [data-layout="tablet"]) .p-FolderPane .fui-TreeItemLayout {
  min-height: 44px;
}
@media (forced-colors: active) {
  .p-App[data-layout="tablet"] .p-FolderPane {
    border: 1px solid CanvasText;
  }
}
/* ------------------------------------------------------------------ phone list chrome (#183)
   Mail's title names the folder, in plain text (#456; Calendar's is the button that opens the
   month and calendars, "Wed, Oct 14" and a chevron); New message floats above the tab bar, and
   the list ends with room for it (design 10.3, 10.6). */
.p-Header__folders:has(.p-Header__title) .fui-Button__icon {
  display: none;
}
.p-Header__title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-Header__chevron {
  display: inline-flex;
  margin-inline-start: 4px;
}
.p-Header__folders:has(.p-Header__title) {
  min-width: 0;
  max-width: 100%;
}
.p-App[data-layout="phone"] .p-Header:has(.p-Header__start > .p-Header__title) {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.p-Header__start > .p-Header__title {
  padding-inline-start: 8px;
}
/* Calendar's top bar (its controls in the slot, `.p-Header__calendar`; People and Notes put
   theirs there too): the month in full, "October 2026" (design
   40, #463), keeps its room down to 320 px: no gap around the empty search, the end's
   44 px buttons side by side, a tighter title button, and a smaller title below 360 px. */
.p-App[data-layout="phone"] .p-Header:has(.p-Header__calendar) {
  column-gap: 0;
}
.p-App[data-layout="phone"] .p-Header:has(.p-Header__calendar) :is(.p-Header__end, .p-Header__slot) {
  gap: 0;
}
.p-Header__calendar {
  display: contents;
}
.p-App[data-layout="phone"] .p-Header:has(.p-Header__calendar) .p-Header__folders {
  padding-inline: 4px;
}
.p-Header__short,
.p-Header__title[data-short] .p-Header__long {
  display: none;
}
.p-Header__title[data-short] .p-Header__short {
  display: inline;
}
@media (max-width: 359px) {
  .p-App[data-layout="phone"] .p-Header:has(.p-Header__calendar) {
    padding-inline: 4px;
  }
  .p-App[data-layout="phone"] .p-Header:has(.p-Header__calendar) .p-Header__title {
    font-size: var(--fontSizeBase400);
  }
  .p-App[data-layout="phone"] .p-Header:has(.p-Header__calendar) .p-Header__chevron {
    margin-inline-start: 2px;
  }
}
.p-Fab {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-sizing: border-box;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background-color: var(--colorBrandBackground);
  box-shadow: var(--shadow16);
  color: var(--colorNeutralForegroundOnBrand);
  font-family: inherit;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
}
.p-Fab:hover {
  background-color: var(--colorBrandBackgroundHover);
}
.p-Fab:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-Fab__icon {
  display: inline-flex;
  font-size: 24px;
}
/* The top bar's title already names the folder: the list's heading stays for assistive
   technology, but is not drawn a second time (#436 note 77119) and takes no room in the
   toolbar (#456). */
.p-App[data-layout="phone"] .p-MessageList__title {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
/* ------------------------------------------------------------------ phone list toolbar (#456)
   Under the top bar, one row: the folder's icon (the folders), the magnifier (the search
   form), then the sort, the filter, the view and the selection, on one line from 320 px; the
   sort shows its icon alone while its label does not fit (`data-narrow`, measured in
   `list_toolbar.rs`). From the magnifier to Cancel the search form takes the row
   (`data-search-form`): the box, the scope, Cancel. Its targets reach 44 x 44, as the top
   bar's (the folder button was the top bar's, #182). */
.p-App[data-layout="phone"] .p-MessageList__header {
  gap: 0;
  min-height: 44px;
  padding: 2px 8px;
}
.p-App[data-layout="phone"] .p-MessageList__header button {
  min-width: 44px;
  min-height: 44px;
}
.p-App[data-layout="phone"] .p-MessageList__header > .p-ListSort {
  margin-inline-start: auto;
}
/* The count of checked messages gives way to the controls: it shrinks to an ellipsis, so that
   the selection toggle at the row's end stays whole (its full text is the status's). */
.p-App[data-layout="phone"] .p-MessageList__header > .p-MessageList__selected {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-MessageList__header:not([data-search-form]) > .p-Search,
.p-MessageList__header[data-search-form] > :not(.p-Search, .p-MessageList__title) {
  display: none;
}
.p-MessageList__header > .p-Search {
  flex: 1;
}
/* Once a search has run the form keeps the row, narrower than the search screen: the scope's
   label smaller and whole, and no clear control in the box, which Cancel beside it stands for
   (the box opens the search screen again, which has it). */
.p-MessageList__header > .p-Search:not([data-search-open]) > .p-Search__field {
  order: 1;
}
.p-MessageList__header > .p-Search:not([data-search-open]) > .fui-MenuButton {
  order: 2;
  max-width: none;
  min-width: 0;
  padding-inline: 6px;
  font-size: var(--fontSizeBase200);
  white-space: nowrap;
}
.p-MessageList__header > .p-Search:not([data-search-open]) .fui-SearchBox__dismiss {
  display: none;
}
.p-MessageList__header > .p-Search:not([data-search-open]) > .p-Search__cancel {
  order: 3;
}
.p-ListSort .fui-MenuButton__icon,
.p-MessageList__header[data-narrow] .p-ListSort :is(.p-ListSort__label, .fui-MenuButton__menuIcon) {
  display: none;
}
.p-MessageList__header[data-narrow] .p-ListSort .fui-MenuButton {
  min-width: 44px;
  padding: 5px;
}
.p-MessageList__header[data-narrow] .p-ListSort .fui-MenuButton__icon {
  display: inline-flex;
  margin: 0;
}
.p-App[data-layout="phone"] .p-MessageList__viewport {
  padding-bottom: calc(56px + 16px + 16px);
  scroll-padding-bottom: calc(56px + 16px + 16px);
}
@media (forced-colors: active) {
  .p-Fab {
    border: 1px solid ButtonText;
    background-color: ButtonFace;
    color: ButtonText;
  }
}
/* Settings > Mail: quick actions (#276), on the signatures' list and form. */
.p-QuickActions__shortcut {
  color: var(--colorNeutralForeground2);
  white-space: nowrap;
}
.p-QuickActions__new,
.p-QuickActions__choices,
.p-QuickActions__step,
.p-QuickActions__icon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.p-QuickActions__choices {
  align-items: flex-end;
  gap: 8px 16px;
}
.p-QuickActions__from {
  color: var(--colorNeutralForeground2);
}
.p-QuickActions__steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-QuickActions__step {
  padding-block-end: 8px;
  border-bottom: 1px solid var(--colorNeutralStroke3);
}
.p-QuickActions__step .p-Select {
  min-width: 0;
  max-width: 100%;
}
.p-QuickActions__number {
  min-width: 1.5em;
  color: var(--colorNeutralForeground2);
  font-weight: var(--fontWeightSemibold);
}
.p-QuickActions__text {
  flex: 1 1 16em;
  min-width: 0;
}
.p-NotifySettings__permission {
  margin-block-start: 8px;
}
.p-NotifyFolders {
  margin-block-start: 12px;
}
.p-NotifyFolders__label {
  margin: 0 0 4px;
  color: var(--colorNeutralForeground2);
}
.p-NotifyFolders__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* css/mail-settings.css */
/* ------------------------------------------------------ automatic replies and storage */

/* Settings > Automatic replies (#34): the period's fields side by side, wrapping on
 * narrow dialogs, and room to write the message. */
.p-Vacation__period {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-block-start: 12px;
}
.p-Vacation__when {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.p-Vacation__when .p-Field {
  width: 160px;
}
.p-Vacation__error {
  margin: 8px 0 0;
  min-height: var(--lineHeightBase300);
  color: var(--colorPaletteRedForeground1);
}
.p-Vacation__error:empty {
  min-height: 0;
}
.p-Vacation__message .p-Editor {
  min-height: 260px;
}
.p-Vacation__status:not(:empty) {
  margin-block-start: 12px;
}

/* Settings > Storage (#37): one row per quota, its meter coloured by how close it is to
 * the limit. */
.p-Quotas {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Quota {
  padding: 16px 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-Quota:last-child {
  border-bottom: 0;
}
.p-Quota__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-block-end: 8px;
}
.p-Quota__name {
  font-weight: var(--fontWeightSemibold);
}
.p-Quota__amount {
  color: var(--colorNeutralForeground2);
  font-variant-numeric: tabular-nums;
}
.p-Quota__meter {
  height: 8px;
  overflow: hidden;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorNeutralStroke2);
}
.p-Quota__fill {
  height: 100%;
  border-radius: inherit;
  background-color: var(--colorCompoundBrandBackground);
}
.p-Quota__meter[data-level="warning"] .p-Quota__fill {
  background-color: var(--colorStatusWarningBackground3);
}
.p-Quota__meter[data-level="full"] .p-Quota__fill {
  background-color: var(--colorStatusDangerBackground3);
}
.p-Quota__note {
  margin: 8px 0 0;
  color: var(--colorNeutralForeground2);
}
.p-Quota[data-level="warning"] .p-Quota__note--level {
  color: var(--colorStatusWarningForeground1);
}
.p-Quota[data-level="full"] .p-Quota__note--level {
  color: var(--colorPaletteRedForeground1);
}
@media (forced-colors: active) {
  .p-Quota__meter {
    border: 1px solid CanvasText;
  }
  .p-Quota__fill {
    background-color: Highlight;
  }
}

.p-Choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.p-Choice {
  cursor: pointer;
  outline: none;
}
.p-Choice:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-Choice__label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-Choices[data-style="cards"] .p-Choice {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 160px;
  padding: 8px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusLarge);
}
.p-Choices[data-style="cards"] .p-Choice:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-Choices[data-style="cards"] .p-Choice[aria-checked="true"] {
  padding: 7px;
  border: 2px solid var(--colorCompoundBrandStroke);
}
.p-Choice__indicator {
  box-sizing: border-box;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--colorNeutralStrokeAccessible);
  border-radius: var(--borderRadiusCircular);
}
.p-Choice[aria-checked="true"] .p-Choice__indicator {
  border-color: var(--colorCompoundBrandStroke);
  background-color: var(--colorCompoundBrandBackground);
  box-shadow: inset 0 0 0 3px var(--colorNeutralBackground1);
}
.p-Choice__preview {
  box-sizing: border-box;
  height: 64px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: #fff;
}
/* Mode previews: a page with a title bar and two text lines. */
.p-Choice__preview[data-preview="light"],
.p-Choice__preview[data-preview="dark"],
.p-Choice__preview[data-preview="system"],
.p-Choice__preview[data-preview="high-contrast"] {
  background-image:
    linear-gradient(var(--p-bar) 0 0),
    linear-gradient(var(--p-line) 0 0),
    linear-gradient(var(--p-line) 0 0);
  background-repeat: no-repeat;
  background-size: 100% 12px, 60% 4px, 40% 4px;
  background-position: 0 0, 12px 24px, 12px 34px;
}
.p-Choice__preview[data-preview="light"] {
  --p-bar: #ebeae9;
  --p-line: #d6d3d1;
  background-color: #fff;
}
.p-Choice__preview[data-preview="dark"] {
  --p-bar: #0c0a09;
  --p-line: #57534e;
  background-color: #292524;
}
.p-Choice__preview[data-preview="system"] {
  --p-bar: #8d8782;
  --p-line: #a8a29e;
  background-color: #fff;
  box-shadow: inset -78px 0 0 #292524;
}
.p-Choice__preview[data-preview="high-contrast"] {
  --p-bar: #fff;
  --p-line: #ff0;
  background-color: #000;
}
/* Density previews: rows at three spacings. */
.p-Choice__preview[data-preview="roomy"],
.p-Choice__preview[data-preview="cozy"],
.p-Choice__preview[data-preview="compact"] {
  background-color: var(--colorNeutralBackground1);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 var(--p-gap),
    var(--colorNeutralStroke1) var(--p-gap) calc(var(--p-gap) + 3px)
  );
  background-origin: content-box;
  background-clip: content-box;
  padding: 6px 10px;
}
.p-Choice__preview[data-preview="roomy"] {
  --p-gap: 14px;
}
.p-Choice__preview[data-preview="cozy"] {
  --p-gap: 9px;
}
.p-Choice__preview[data-preview="compact"] {
  --p-gap: 5px;
}

.p-Choices[data-style="segments"] {
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
}
.p-Choices[data-style="segments"] .p-Choice {
  padding: 5px 14px;
  border-radius: var(--borderRadiusSmall);
}
.p-Choices[data-style="segments"] .p-Choice:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-Choices[data-style="segments"] .p-Choice[aria-checked="true"] {
  background-color: var(--colorBrandBackground2);
  box-shadow: inset 0 0 0 1px var(--colorCompoundBrandStroke);
  font-weight: var(--fontWeightSemibold);
}

.p-Choices[data-style="swatches"] {
  gap: 8px;
}
.p-Choices[data-style="swatches"] .p-Choice {
  padding: 2px;
  border: 2px solid transparent;
  border-radius: var(--borderRadiusCircular);
}
.p-Choices[data-style="swatches"] .p-Choice[aria-checked="true"] {
  border-color: var(--colorNeutralForeground1);
}
.p-Choice__swatch {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--borderRadiusCircular);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  color: #fff;
}
.p-Choice__swatch > .fui-Icon {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
}
/* A swatch's name and a card's hint: drawn where a layout asks for them (a phone's
   Appearance, #464). */
.p-Choice__name,
.p-Choice__hint {
  display: none;
}
.p-Accent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.p-Accent__divider {
  width: 1px;
  height: 28px;
  background-color: var(--colorNeutralStroke2);
}
.p-CustomAccent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.p-CustomAccent__input {
  box-sizing: border-box;
  width: 36px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  background: none;
  cursor: pointer;
}
.p-CustomAccent__input:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-CustomAccent__value {
  padding: 2px 6px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground2);
  font-family: var(--fontFamilyMonospace);
  font-size: var(--fontSizeBase200);
}

/* css/triage.css */
/* ------------------------------------------------------------------ triage */

/* Move to: a long folder list scrolls inside the menu. */
.p-MoveMenu {
  max-height: min(60vh, 480px);
  overflow-y: auto;
}
.p-MoveTarget {
  display: block;
}
/* What a menu entry does, under its label (Report phishing, #273). */
.p-MenuEntry__description {
  display: block;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
}

/* The undo toast, centred over the bottom of the workspace, clear of the sync status. The
 * empty live region lets clicks through. */
.p-Toasts {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  width: max-content;
  max-width: min(480px, calc(100% - 32px));
  translate: -50% 0;
  pointer-events: none;
}
.p-Toast {
  pointer-events: auto;
  border-radius: var(--borderRadiusMedium);
  box-shadow: var(--shadow16);
}

/* The confirmations before a permanent deletion and before a sign-out. */
.p-Dialog--confirm {
  gap: 12px;
  width: min(440px, 100%);
  height: auto;
  padding: 24px;
}
.p-Dialog__text {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-Dialog__description {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-Dialog__option {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p-Dialog__hint {
  margin: 0;
  /* Under the checkbox's label: the box and its padding. */
  padding-inline-start: 36px;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
}
.p-Dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* The colour dialog of the folder pane (#76): the palette wraps in rows of swatches. */
.p-Dialog--color {
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  height: auto;
  padding: 24px;
}
/* The Move dialog of the folder pane: the folders scroll inside. */
.p-Dialog--move {
  gap: 12px;
  width: min(440px, 100%);
  height: min(560px, 100%);
  padding: 24px;
}
.p-MoveDialog__tree {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
/* The changes the server refused (issue #65). */
.p-Dialog--refused {
  width: min(640px, 100%);
  height: auto;
  max-height: min(760px, 100%);
}
.p-Refused {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px 24px;
}
.p-Refused__status:empty {
  display: none;
}
.p-Refused__status {
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground2);
}
.p-Refused__bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-Refused__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Refused__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
}
.p-Refused__icon {
  display: inline-flex;
  flex: none;
  padding-top: 2px;
  font-size: 20px;
  color: var(--colorNeutralForeground2);
}
.p-Refused__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.p-Refused__body p {
  margin: 0;
  overflow-wrap: anywhere;
}
.p-Refused__title {
  margin: 0;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-Refused__subject {
  color: var(--colorNeutralForeground1);
}
/* Foreground3: Foreground1 lacks contrast on a dark dialog. */
.p-Refused__reason,
.p-Refused__still {
  color: var(--colorStatusDangerForeground3);
}
.p-Refused__still {
  font-weight: var(--fontWeightSemibold);
}
.p-Refused__detail,
.p-Refused__when {
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground2);
}
.p-Refused__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.p-Refused__empty,
.p-Refused__newer {
  margin: 0;
  color: var(--colorNeutralForeground2);
}

/* css/rules.css */
/* ------------------------------------------------------------------ rules (#35) */

/* A native select on the field look of the kit's inputs (the kit has no select yet). */
.p-Select {
  box-sizing: border-box;
  min-height: 32px;
  max-width: 100%;
  padding: 0 28px 0 var(--spacingHorizontalM);
  border: 1px solid var(--colorNeutralStroke1);
  border-bottom-color: var(--colorNeutralStrokeAccessible);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  font-family: var(--fontFamilyBase);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
}
.p-Select:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 1px;
}
.p-Rules {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.p-Rules__bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.p-Rules__bar .fui-MessageBar {
  align-self: stretch;
}
.p-Rules__script {
  align-self: stretch;
}
.p-Rules__script summary {
  cursor: pointer;
  color: var(--colorBrandForegroundLink);
}
.p-Rules__script pre {
  max-height: 240px;
  margin: 8px 0 0;
  padding: 8px 12px;
  overflow: auto;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
  font-family: var(--fontFamilyMonospace);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.p-Rules__confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.p-Rules__confirm p {
  flex-basis: 100%;
  margin: 0;
}
.p-Rules__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-Rules__chained:empty,
.p-Rules__notice:empty {
  display: none;
}
.p-Rules__chained {
  margin: 0;
}
.p-Rules__empty {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-Rules__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
}
.p-Rule[data-enabled="false"] .p-Rule__summary {
  color: var(--colorNeutralForeground3);
}
.p-Rule__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 280px;
  overflow-wrap: anywhere;
}
.p-Junk .fui-Field__hint {
  overflow-wrap: anywhere;
}
.p-Rule__summary {
  /* Under the checkbox's label: the box and its padding. */
  padding-inline-start: 36px;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground2);
  overflow-wrap: anywhere;
}
.p-Rule__actions,
.p-Rule__confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.p-Rules__ran {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-Rules__ran p,
.p-Rules__notice > p {
  margin: 0;
}
.p-Rules__skipped {
  margin: 4px 0 0;
  padding-inline-start: 20px;
  color: var(--colorNeutralForeground2);
}
.p-Rules__skipped:empty {
  display: none;
}
.p-Dialog--rule {
  width: min(640px, 100%);
  height: auto;
  max-height: min(760px, 100%);
}
.p-RuleEditor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px 24px;
}
.p-RuleEditor__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.p-RuleEditor__group legend {
  margin-bottom: 4px;
  padding: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-RuleEditor__group .p-Settings__hint {
  margin: 0;
}
.p-RuleEditor__conditions,
.p-RuleEditor__actions {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-RuleEditor__conditions:empty,
.p-RuleEditor__actions:empty,
.p-RuleEditor__error:empty {
  display: none;
}
.p-RuleEditor__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.p-RuleEditor__row .p-Select {
  flex: 0 1 220px;
}
.p-Rule__value {
  flex: 1 1 200px;
  min-width: 0;
}
.p-Rule__value .fui-Input__input {
  width: 100%;
}
.p-RuleEditor .p-Dialog__footer {
  margin-top: 0;
}
.p-Dialog--sweep {
  gap: 16px;
  width: min(480px, 100%);
  height: auto;
  padding: 24px;
}
.p-Dialog--sweep .p-Select {
  align-self: flex-start;
}

/* css/shortcuts.css */
/* ------------------------------------------------------------------ keyboard shortcuts */

/* The shortcuts dialog (#20): groups in columns, each row a label and its keys. */
.p-Dialog--shortcuts {
  width: min(880px, 100%);
}
.p-Shortcuts__subtitle {
  margin: 2px 0 0;
  color: var(--colorNeutralForeground2);
}
.p-Shortcuts {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px 20px;
}
.p-Shortcuts__off {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground1);
}
.p-Shortcuts__groups {
  columns: 2 320px;
  column-gap: 32px;
}
.p-Shortcuts__group {
  break-inside: avoid;
  margin-bottom: 20px;
}
.p-Shortcuts__heading {
  margin: 0 0 6px;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-Shortcuts__list {
  margin: 0;
}
.p-Shortcuts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 0;
  border-bottom: 1px solid var(--colorNeutralStroke3);
}
.p-Shortcuts__row dt {
  min-width: 0;
}
.p-Shortcuts__row dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  text-align: end;
}
.p-Shortcuts__keys,
.p-Shortcuts__chord {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}
.p-Shortcuts__then,
.p-Shortcuts__or {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-Kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  border: 1px solid var(--colorNeutralStroke1);
  border-bottom-width: 2px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground1);
  font-family: inherit;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase300);
  text-align: center;
  white-space: nowrap;
}
.p-Shortcuts__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

/* An account's Inbox that no chord opens yet (#154): no keymap binds one. */
.p-Shortcuts__unassigned {
  color: var(--colorNeutralForeground3);
  font-style: italic;
}
/* css/categories.css */
/* ------------------------------------------------------------------ flags and categories */

/* A completed follow-up (ADR 0022): a check mark where the flag was. */
.p-Row__completed {
  display: inline-flex;
  padding: 2px;
  color: var(--colorPaletteGreenForeground1, var(--colorNeutralForeground2));
  font-size: 16px;
}

/* Category badges (ADR 0009): the palette colour's persona tokens, set inline as
 * --p-category-bg, --p-category-fg and --p-category-dot (a colour outside the palette only
 * sets the dot, on a neutral badge). */
.p-Categories {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.p-Category {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  max-width: 12em;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--p-category-dot, var(--colorNeutralStroke1));
  border-radius: var(--borderRadiusCircular);
  background-color: var(--p-category-bg, var(--colorNeutralBackground3));
  color: var(--p-category-fg, var(--colorNeutralForeground1));
  font-size: var(--fontSizeBase100);
  line-height: var(--lineHeightBase100);
  font-weight: var(--fontWeightRegular);
  white-space: nowrap;
}
.p-Category__name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-Category__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--p-category-dot, var(--colorNeutralForeground3));
}
.p-Category__dot--menu {
  width: 12px;
  height: 12px;
}
/* A deleted category kept on the item (ADR 0009): no colour, a dashed outline and a hollow
 * dot, which compact rows keep when they hide the names. */
.p-Category--kept {
  border-style: dashed;
  border-color: var(--colorNeutralStroke1Pressed);
  background-color: transparent;
  color: var(--colorNeutralForeground2);
}
.p-Category__dot--kept {
  box-sizing: border-box;
  border: 1px solid var(--colorNeutralForeground3);
  background-color: transparent;
}
.p-Category--more {
  border-color: var(--colorNeutralStroke1);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground2);
}
.p-Row .p-Categories {
  max-width: 18em;
}
/* One line: the dots say enough, the names stay readable to assistive technologies. */
.p-App[data-density="compact"] .p-Row .p-Category:not(.p-Category--more) {
  padding: 0 3px;
}
.p-App[data-density="compact"] .p-Row .p-Category__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.p-CategoryEntry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* A category of the Categorize menu: its colour in the icon's place. */
.fui-MenuItem[data-category] .fui-MenuItem__icon {
  color: var(--p-category-dot, var(--colorNeutralForeground3));
}

/* The reading pane: the flag or check mark, and the categories. */
.p-Message__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
}
.p-Message__flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Message__flagIcon {
  display: inline-flex;
  font-size: 16px;
}
.p-Message__flag[data-state="flagged"] .p-Message__flagIcon {
  color: var(--colorPaletteRedForeground1);
}
.p-Message__flag[data-state="completed"] .p-Message__flagIcon {
  color: var(--colorPaletteGreenForeground1, var(--colorNeutralForeground2));
}
.p-MessageCommands {
  display: inline-flex;
  gap: 8px;
}

/* The message list's Sort menu (#17): the field as its label. */
.p-ListSort {
  display: inline-flex;
  flex: none;
}

/* The message list's Filter menu: brand-coloured while a filter applies. */
.p-ListFilter {
  display: inline-flex;
  flex: none;
}
.p-ListFilter[data-active] .fui-MenuButton {
  color: var(--colorBrandForeground1);
}

/* The message list's View menu (#17): density, reading pane, preview, conversations. */
.p-ListView {
  display: inline-flex;
  flex: none;
}

/* Settings > Categories and the New category dialog. */
.p-CategorySettings__new {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.p-CategorySettings__new .p-CategoryEditor {
  align-self: stretch;
}
.p-CategoryList {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-CategoryRow {
  padding: 6px 0;
  border-bottom: 1px solid var(--colorNeutralStroke3);
}
.p-CategoryRow:last-child {
  border-bottom: 0;
}
.p-CategoryRow__view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p-CategoryRow__view > .p-Category {
  max-width: 24em;
  height: 22px;
  font-size: var(--fontSizeBase200);
}
.p-CategoryRow__actions {
  display: inline-flex;
  gap: 2px;
}
.p-CategoryEditor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
}
.p-Dialog .p-CategoryEditor {
  padding: 0;
  border: 0;
  background: none;
}
.p-CategoryEditor__error {
  min-height: 0;
  margin: -4px 0 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-CategoryEditor__error:empty {
  display: none;
}
.p-CategoryEditor__colors {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-CategoryEditor__label {
  color: var(--colorNeutralForeground1);
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-CategoryEditor__colors .p-Choices[data-style="swatches"] {
  flex-wrap: wrap;
}
.p-CategoryEditor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (forced-colors: active) {
  .p-Category--kept {
    border-style: dashed;
  }
  .p-Category,
  .p-Category--more {
    border-color: CanvasText;
    background-color: Canvas;
    color: CanvasText;
  }
  .p-Category__dot {
    forced-color-adjust: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .p-Slot {
    will-change: auto;
  }
}

/* css/compose-editor.css */
/* ------------------------------------------------------------------ compose editor */

/* The body's page is white with dark ink, and dark in a dark or high-contrast theme while
 * "Show message content in dark mode" is on (#454, ADR 0067's "Compose and Notes"), for
 * compose and Notes alike: the same rule and the same Switch background as the reading pane.
 * Only the page changes: the default ink is never written into what is sent, and a colour the
 * user picks is kept as picked. Forced colours keep theirs; printing stays light. */
.p-Editor {
  --p-editor-paper: #ffffff;
  --p-editor-ink: #000000;
  --p-editor-rule: #a0a0a0;
  --p-editor-shade: #f3f3f3;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
  overflow: hidden;
}
.p-Editor__toolbar {
  flex: none;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-Editor__toolbar .fui-Toolbar {
  flex-wrap: wrap;
  row-gap: 2px;
}
/* A menu trigger's wrapper: no box of its own. */
.p-Editor__trigger {
  display: contents;
}
/* Font colour and highlight buttons show the colour at the selection under their icon. */
.p-Editor__trigger[data-swatch] .fui-Button {
  position: relative;
}
.p-Editor__trigger[data-swatch] .fui-Button::after {
  content: "";
  position: absolute;
  inset-inline: 8px;
  bottom: 3px;
  height: 3px;
  border-radius: 1px;
  background-color: var(--p-editor-swatch, transparent);
  pointer-events: none;
}
.p-Editor__bar {
  flex: none;
  padding: 8px;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-LinkBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.p-LinkBar__field {
  flex: 1 1 240px;
  max-width: 480px;
}
.p-LinkBar__error {
  flex-basis: 100%;
  color: var(--colorPaletteRedForeground1);
  font-size: var(--fontSizeBase200);
}
/* The Font menu draws each font in its own face, and the Styles menu each style in its own
 * look, smaller (#317, DESIGN.md 14.2). */
.p-FontSample {
  font-size: var(--fontSizeBase300);
}
.p-StyleSample {
  line-height: var(--lineHeightBase300);
}
.p-StyleSample[data-style="title"] {
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-StyleSample[data-style="heading1"] {
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-StyleSample[data-style="heading2"],
.p-StyleSample[data-style="heading3"] {
  font-weight: var(--fontWeightSemibold);
}
.p-StyleSample[data-style="heading3"] {
  font-size: var(--fontSizeBase200);
}
.p-StyleSample[data-style="quote"] {
  padding-inline-start: 6px;
  border-inline-start: 3px solid var(--colorNeutralStroke1);
  font-style: italic;
}
.p-StyleSample[data-style="code"] {
  font-family: var(--fontFamilyMonospace);
}
.p-Swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-end: 8px;
  vertical-align: -2px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusSmall);
}
.p-Swatch[data-none] {
  background: linear-gradient(
    to top right,
    transparent 45%,
    var(--colorNeutralForeground3) 45% 55%,
    transparent 55%
  );
}
.p-Editor__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 160px;
  background-color: var(--p-editor-paper);
}
.p-Editor__body:focus-within {
  box-shadow: inset 0 -2px 0 var(--colorCompoundBrandStroke);
}
.p-Editor__surface {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.p-Editor__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.p-Editor__loading .fui-Spinner__label {
  color: #424242;
}
.p-Editor__plain,
.p-EditorContent {
  flex: 1;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  border: none;
  outline: none;
  background-color: var(--p-editor-paper);
  color: var(--p-editor-ink);
  font-family: var(--fontFamilyBase);
  font-size: 11pt;
  line-height: 1.4;
}
.p-Editor__plain {
  resize: none;
  white-space: pre-wrap;
}

/* The editor's document (Tiptap renders it; its CSS injection is off, ADR 0028). One
 * paragraph is one line, as in mail clients: no spacing between paragraphs. */
.p-EditorContent {
  position: relative;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  white-space: break-spaces;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
}
.p-EditorContent p {
  margin: 0;
  min-height: 1.4em;
}
/* A paragraph with a line spacing of its own (#317) is one of its lines high when empty. */
.p-EditorContent p[style*="line-height"] {
  min-height: 1lh;
}
/* The format painter holds a formatting (#317): the next selection takes it. */
.p-EditorContent.p-EditorContent--painter {
  cursor: copy;
}
/* Pictures the body holds (a signature's logo, #32), within the page's width. */
.p-EditorContent img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
.p-EditorContent img.ProseMirror-selectednode,
.p-EditorContent .p-EditorContent__picture-away.ProseMirror-selectednode {
  outline: 2px solid var(--colorStrokeFocus2);
}
/* A part of the draft this page has no file for (#28): its place, at its size if known. */
.p-EditorContent__picture-away {
  display: inline-block;
  width: 8em;
  height: 6em;
  max-width: 100%;
  vertical-align: bottom;
  box-sizing: border-box;
  border: 1px dashed var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground3);
}
.p-EditorContent h1,
.p-EditorContent h2,
.p-EditorContent h3 {
  margin: 0.4em 0 0.2em;
  font-weight: 600;
  line-height: 1.25;
}
.p-EditorContent h1 {
  font-size: 20pt;
}
.p-EditorContent h2 {
  font-size: 16pt;
}
.p-EditorContent h3 {
  font-size: 13pt;
}
.p-EditorContent ul,
.p-EditorContent ol {
  margin: 0;
  padding-inline-start: 2em;
}
.p-EditorContent blockquote {
  margin: 0.25em 0 0.25em 0.25em;
  padding-inline-start: 0.75em;
  border-inline-start: 3px solid var(--p-editor-rule);
}
.p-EditorContent pre,
.p-EditorContent code {
  font-family: var(--fontFamilyMonospace);
  font-size: 0.95em;
  background-color: var(--p-editor-shade);
}
.p-EditorContent code {
  padding: 0 2px;
  border-radius: 2px;
}
.p-EditorContent pre {
  margin: 0.25em 0;
  padding: 8px;
  border-radius: 4px;
  white-space: pre-wrap;
}
.p-EditorContent pre code {
  padding: 0;
  background: none;
}
.p-EditorContent a {
  color: #0f5bd8;
  text-decoration: underline;
}
.p-EditorContent hr {
  margin: 0.5em 0;
  border: none;
  border-top: 1px solid var(--p-editor-rule);
}
.p-EditorContent table {
  margin: 0.25em 0;
  border-collapse: collapse;
}
.p-EditorContent td,
.p-EditorContent th {
  position: relative;
  min-width: 3em;
  padding: 4px 8px;
  border: 1px solid var(--p-editor-rule);
  vertical-align: top;
  text-align: start;
}
.p-EditorContent th {
  font-weight: 600;
  background-color: var(--p-editor-shade);
}
.p-EditorContent .selectedCell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(15 91 216 / 15%);
  pointer-events: none;
}
.p-EditorContent [contenteditable="false"] {
  white-space: normal;
}
.p-EditorContent img.ProseMirror-separator {
  display: inline !important;
  border: none !important;
  margin: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
.p-EditorContent .ProseMirror-gapcursor {
  display: none;
  pointer-events: none;
  position: absolute;
  margin: 0;
}
.p-EditorContent .ProseMirror-gapcursor::after {
  content: "";
  display: block;
  position: absolute;
  top: -2px;
  width: 20px;
  border-top: 1px solid var(--p-editor-ink);
  animation: p-editor-caret 1.1s steps(2, start) infinite;
}
.p-EditorContent.ProseMirror-focused .ProseMirror-gapcursor {
  display: block;
}
.p-EditorContent.ProseMirror-hideselection *::selection {
  background: transparent;
}
.p-EditorContent.ProseMirror-hideselection * {
  caret-color: transparent;
}
@keyframes p-editor-caret {
  to {
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-EditorContent .ProseMirror-gapcursor::after {
    animation: none;
  }
}
.p-Editor[data-page="dark"] {
  --p-editor-paper: var(--colorNeutralBackground1);
  --p-editor-ink: var(--colorNeutralForeground1);
  --p-editor-rule: var(--colorNeutralStrokeAccessible);
  --p-editor-shade: var(--colorNeutralBackground6);
}
.p-Editor[data-page="dark"] .p-EditorContent a {
  color: var(--colorBrandForegroundLink);
}
/* Switch background, in a band at the top of the body, at its end: it never covers the text. */
.p-Editor__background {
  flex: none;
  display: flex;
  justify-content: flex-end;
  padding: 2px 4px 0;
  background-color: var(--p-editor-paper);
}
@media (forced-colors: active) {
  .p-Editor {
    --p-editor-paper: Canvas;
    --p-editor-ink: CanvasText;
    --p-editor-rule: CanvasText;
    --p-editor-shade: Canvas;
  }
  .p-EditorContent a {
    color: LinkText;
  }
}

/* css/compose.css */
/* ------------------------------------------------------------------ compose window */

/* Inline in the reading pane (#27): the commands, the notices, the fields, then the editor,
 * which takes the height that is left. */
/* The drafts open at once (#38): a tab each at the bottom of the mail view, once one is
   minimised. A tab shows its draft (the one shown is marked) or closes it. */
.p-DraftTabs {
  flex: none;
  padding: 4px 8px;
  border-block-start: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground2);
}
.p-DraftTabs__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}
.p-DraftTab {
  display: flex;
  flex: 0 1 240px;
  align-items: center;
  min-width: 140px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
}
.p-DraftTab--shown {
  border-color: var(--colorBrandStroke1);
  box-shadow: inset 0 -2px 0 var(--colorBrandStroke1);
}
.p-DraftTab__open {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 8px;
  border: none;
  border-radius: var(--borderRadiusMedium);
  background: none;
  color: var(--colorNeutralForeground1);
  font: inherit;
  font-size: var(--fontSizeBase300);
  text-align: start;
  cursor: pointer;
}
.p-DraftTab__open:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-DraftTab__open:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-DraftTab__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-DraftTab__state {
  flex: none;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}

.p-Compose {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 12px 20px 16px 24px;
}
.p-Compose--opening {
  align-items: center;
  justify-content: center;
}
/* The accessibility checker (#319): a pane at the right of the compose window. */
.p-ComposeShell {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
}
.p-ComposeShell > .p-Compose {
  flex: 1;
  min-width: 0;
}
.p-A11y {
  flex: none;
  width: 340px;
  max-width: 45%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-inline-start: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background: var(--colorNeutralBackground1);
}
.p-A11y__header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px 16px;
}
.p-A11y__title {
  margin: 0;
  font-size: var(--fontSizeBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-A11y__title:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-A11y__keep {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 16px 8px;
}
.p-A11y__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 16px 8px;
}
.p-A11y__section {
  margin-block-end: 12px;
}
.p-A11y__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-A11y__heading-icon {
  display: inline-flex;
}
.p-A11y__heading-icon[data-severity="error"] {
  color: var(--colorPaletteRedForeground1);
}
.p-A11y__heading-icon[data-severity="warning"] {
  color: var(--colorStatusWarningForeground1);
}
.p-A11y__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-A11y__issue {
  padding: 10px 12px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground2);
}
.p-A11y__issue-title,
.p-A11y__issue-reason {
  margin: 0;
}
.p-A11y__issue-title {
  font-weight: var(--fontWeightSemibold);
}
.p-A11y__issue-reason {
  margin-block-start: 2px;
  color: var(--colorNeutralForeground2);
}
.p-A11y__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 8px;
}
.p-A11y__form {
  margin-block-start: 4px;
}
.p-A11y__swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-end: 6px;
  border: var(--strokeWidthThin) solid var(--colorNeutralForegroundOnBrand);
  border-radius: 50%;
}
.p-A11y__status {
  flex: none;
  margin: 0;
  padding: 10px 16px;
  border-block-start: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  color: var(--colorNeutralForeground2);
}
@media (max-width: 700px) {
  .p-A11y {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 2;
    max-width: 100%;
  }
  .p-ComposeShell {
    position: relative;
  }
}
/* A draft's window of its own (#38): the compose window fills it. */
.p-ComposePage {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--colorNeutralBackground1);
}
.p-ComposePage__error {
  padding: 12px 20px 0 24px;
}
.p-Compose__commands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.p-Compose__status {
  flex: 1;
  margin: 0;
  min-width: 0;
  text-align: end;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Compose__fields {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p-Compose__field,
.p-Compose__to {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.p-Compose__to > .p-Compose__recipient {
  flex: 1;
}
/* A recipient field with its message under it. */
.p-Compose__recipient {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.p-Compose__recipient > .p-Compose__field {
  align-items: flex-start;
}
.p-Compose__recipient .p-Compose__label {
  padding-top: 6px;
}
.p-Compose__label {
  flex: none;
  width: 64px;
  color: var(--colorNeutralForeground2);
}
.p-Compose__input {
  flex: 1;
  box-sizing: border-box;
  min-width: 0;
}
.p-Compose__input[data-invalid="true"] {
  border-bottom-color: var(--colorPaletteRedBorder2);
}
/* A recipient field (#33): its chips, then the input, wrapping; suggestions under it. */
.p-Recipients {
  position: relative;
  flex: 1;
  min-width: 0;
}
.p-Recipients__box {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 4px;
  padding: 3px 0;
  cursor: text;
}
.p-Recipients__chips {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  padding-inline-start: var(--spacingHorizontalM);
  box-sizing: border-box;
  list-style: none;
}
/* On the chips' line while 120 px are left there, else on its own line, where it may
 * shrink: in a field narrower than 120 px it never runs under Cc and Bcc (#255). */
.p-Recipients__input {
  flex: 1 1 120px;
  min-width: 0;
  min-height: 24px;
}
.p-Chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 24px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground1);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  cursor: default;
}
.p-Chip[data-invalid="true"] {
  background-color: var(--colorPaletteRedBackground2);
  color: var(--colorPaletteRedForeground2);
}
.p-Chip__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 4px 2px 8px;
  overflow: hidden;
  border-radius: var(--borderRadiusMedium);
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
}
.p-Chip__label:focus-visible,
.p-Chip__label:focus {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-Chip__alert {
  display: inline-flex;
  color: var(--colorPaletteRedForeground1);
  font-size: 14px;
}
.p-Chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-inline-end: 2px;
  padding: 0;
  border: 0;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}
.p-Chip__remove:hover {
  background-color: var(--colorSubtleBackgroundHover);
}
/* An entry Check names found several people for (#319): a dotted underline, and the
 * menu of them beside it. */
.p-Chip[data-ambiguous="true"] .p-Chip__label {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.p-Chip .p-Chip__choose {
  min-width: 20px;
  height: 20px;
  padding: 0;
  color: inherit;
}
.p-Recipients__suggestions {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 2px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  max-height: 320px;
  padding: 4px;
  overflow-y: auto;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow16);
}
.p-Recipients__suggestions[hidden] {
  display: none;
}
/* The name first, whole if it can be; the address takes what is left. */
.p-Recipients__suggestions .p-Suggestion__label {
  flex: 0 0 auto;
  max-width: 60%;
}
.p-Recipients__suggestions .p-Suggestion__detail {
  flex: 1 1 auto;
  min-width: 0;
}
/* Where a suggestion comes from (#307), and the × of a suggested address. */
.p-Suggestion__source {
  flex: none;
  margin-inline-start: auto;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Suggestion__remove {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border-radius: var(--borderRadiusMedium);
  color: var(--colorNeutralForeground2);
}
.p-Suggestion__remove:hover {
  background-color: var(--colorSubtleBackgroundHover);
  color: var(--colorNeutralForeground1);
}
.p-Suggestion__remove svg {
  width: 16px;
  height: 16px;
}
/* The Address book (#319, #378, `DESIGN.md` 14.5): 880 px, a search and a source filter, the
   people as a sortable table of several choices, and the To, Cc and Bcc wells that hold
   what is staged until Add recipients. */
.p-Dialog--address-book {
  box-sizing: border-box;
  gap: 12px;
  width: min(880px, 100%);
  height: min(680px, 100%);
  padding: 24px;
}
.p-AddressBook__bar {
  display: flex;
  flex: none;
  gap: 12px;
  align-items: center;
}
.p-AddressBook__search {
  flex: 1;
  min-width: 0;
}
.p-AddressBook__filter {
  flex: none;
  min-width: min(14em, 40%);
}
.p-AddressBook__status,
.p-AddressBook__note,
.p-AddressBook__picked {
  margin: 0;
  min-height: 1.5em;
  color: var(--colorNeutralForeground2);
}
.p-AddressBook__picked {
  flex: none;
}
.p-AddressBook__results {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.p-AddressBook__list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
.p-AddressBook__list[hidden] {
  display: none;
}
.p-AddressBook__list:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
}
.p-AddressBook__headrow,
.p-AddressBook__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 0 12px;
}
.p-AddressBook__headrow {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--colorNeutralBackground1);
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-AddressBook__sort {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--colorNeutralForeground2);
  font: inherit;
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
}
.p-AddressBook__sort:hover {
  color: var(--colorNeutralForeground1);
}
.p-AddressBook__sort:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  border-radius: var(--borderRadiusSmall);
}
.p-AddressBook__arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
}
.p-AddressBook__row {
  min-height: 36px;
  cursor: pointer;
}
.p-AddressBook__row:hover {
  background-color: var(--colorSubtleBackgroundHover);
}
.p-AddressBook__list:focus-visible .p-AddressBook__row[data-current] {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-AddressBook__row[data-picked] {
  background-color: var(--colorNeutralBackground1Selected);
}
.p-AddressBook__row[aria-disabled="true"] {
  color: var(--colorNeutralForegroundDisabled);
  cursor: default;
}
.p-AddressBook__cell {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.p-AddressBook__cell > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-AddressBook__cell .p-Suggestion__icon,
.p-AddressBook__mark {
  flex: none;
}
.p-AddressBook__mark {
  display: inline-flex;
  width: 20px;
  height: 20px;
}
.p-AddressBook__wells {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.p-AddressBook__wells[data-wells="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.p-AddressBook__well {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.p-AddressBook__well > .p-Button {
  align-self: flex-start;
}
.p-AddressBook__staged {
  height: 96px;
  overflow: auto;
  padding: 4px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
.p-AddressBook__well[data-current] .p-AddressBook__staged {
  border-color: var(--colorBrandStroke1);
}
.p-AddressBook__staged:focus-visible {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
}
.p-AddressBook__chip {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  padding: 0 4px 0 8px;
  border-radius: var(--borderRadiusMedium);
}
.p-AddressBook__chip > .p-Suggestion__label,
.p-AddressBook__chip > .p-Suggestion__detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-AddressBook__chip > .p-Suggestion__detail {
  flex: 1;
}
.p-AddressBook__staged:focus-visible .p-AddressBook__chip[data-current] {
  outline: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-AddressBook__chip[data-current] {
  background-color: var(--colorNeutralBackground1Selected);
}
.p-AddressBook__unstage {
  display: inline-flex;
  flex: none;
  margin-inline-start: auto;
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: var(--colorNeutralForeground2);
}
.p-AddressBook__empty {
  margin: 0;
  font-size: var(--fontSizeBase200);
  color: var(--colorNeutralForeground2);
}
.p-AddressBook__empty[hidden] {
  display: none;
}
.p-AddressBook__footer {
  flex-wrap: wrap;
}
/* Cc and Bcc beside the first line of a To field that wraps. */
.p-Compose__to {
  align-items: flex-start;
}
.p-Compose__from {
  flex: 1;
  min-width: 0;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
/* Cc and Bcc (#255): as wide as their word, not a button's 96 px minimum, which took the
 * To field's room and put the words far to its right. 32 px high, like the field's line. */
.p-Compose__toggles {
  display: flex;
  flex: none;
  gap: 2px;
}
.p-Compose__toggles > .fui-Button {
  min-width: 0;
  padding-inline: var(--spacingHorizontalS);
  font-weight: var(--fontWeightRegular);
}
.p-Compose__hint {
  margin: 0 0 4px 72px;
  color: var(--colorPaletteRedForeground1);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
/* The recipient field in the event editor (#383): its label above it, as the form's other
   fields', and an outline box. */
.p-EventForm__attendees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.p-EventForm__attendees > .p-Compose__recipient {
  align-self: stretch;
}
.p-Compose__recipient[data-stacked] > .p-Compose__field {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.p-Compose__recipient[data-stacked] .p-Compose__label {
  width: auto;
  padding-top: 0;
}
.p-Compose__recipient[data-stacked] .p-Recipients__box {
  padding: 3px 4px;
}
/* What Check names found (#319), a live region kept while empty. */
.p-Compose__names {
  margin: 0 0 4px 72px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Compose__names:empty {
  margin: 0;
}
.p-Compose__files {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 4px 0 0 72px;
  padding: 0;
  list-style: none;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Compose__file {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Files attached on this device (#28, ADR 0048): where each upload stands, the total, the
 * hidden picker, and the window while files are dragged over it. */
.p-Compose__file-state {
  margin-inline-start: 6px;
  color: var(--colorNeutralForeground3);
}
.p-Compose__file-state--failed {
  color: var(--colorStatusDangerForeground3);
}
.p-Compose__progress {
  inline-size: 80px;
  block-size: 4px;
  margin-inline-start: 6px;
  accent-color: var(--colorBrandBackground);
}
.p-Compose__files-total {
  margin: 2px 0 0 72px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-Compose__file-input,
.p-Compose__picture-input {
  display: none;
}
.p-Compose--dropping {
  outline: 2px dashed var(--colorBrandStroke1);
  outline-offset: -4px;
}
/* The quoted original of a reply or forward (#31): read-only, below the editor, with the
 * header the message carries above it. */
.p-Compose__quote {
  flex: 0 1 40%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 120px;
  padding-top: 8px;
  border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-Compose__quote-header {
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-Compose__quote .p-MessageBody__frame {
  min-height: 80px;
}
.p-Compose__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.p-Compose__body > .p-Editor {
  flex: 1;
}
.p-Compose__body[inert] {
  opacity: 0.7;
}
/* Insert picture as a drop target (#318): a picture dragged over it goes inline. */
.p-RibbonCommand--drop[data-over] {
  border-radius: var(--borderRadiusMedium);
  outline: 2px dashed var(--colorBrandStroke1);
  outline-offset: -2px;
}

/* The emoji picker (#318, `emoji_picker.rs`): a pane under the body, its grid eight cells
 * wide, the preview line under it. */
.p-EmojiPicker {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 100%;
  width: 344px;
  padding: 8px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground1);
  box-shadow: var(--shadow4);
}
.p-EmojiPicker__header {
  display: flex;
  align-items: center;
  gap: 4px;
}
.p-EmojiPicker__title {
  flex: 1;
  margin: 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
  line-height: var(--lineHeightBase300);
}
.p-EmojiPicker__search .fui-SearchBox {
  width: 100%;
}
.p-EmojiPicker__groups .fui-TabList {
  flex-wrap: wrap;
}
.p-EmojiPicker__groups .fui-Tab {
  min-width: 0;
  padding-inline: 6px;
}
.p-EmojiPicker__panel {
  height: 200px;
  overflow-y: auto;
}
.p-EmojiPicker__row {
  display: grid;
  grid-template-columns: repeat(8, 40px);
}
.p-EmojiPicker__cell {
  width: 40px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorNeutralForeground1);
  font-size: 22px;
  line-height: 36px;
  cursor: pointer;
}
.p-EmojiPicker__cell:hover {
  background: var(--colorNeutralBackground1Hover);
}
.p-EmojiPicker__cell:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-EmojiPicker__empty {
  margin: 16px 8px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-EmojiPicker__preview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-EmojiPicker__preview-emoji {
  font-size: 24px;
}
.p-EmojiPicker__tone-sample {
  margin-inline-end: 8px;
  font-size: 16px;
}

/* css/snooze.css */
/* ---------------------------------------------------------------------------- snooze */

/* A snoozed message (ADR 0043): the row shows when it comes back, with a clock. */
.p-Row__date[data-snoozed] {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.p-Row__snoozed {
  display: inline-flex;
  font-size: 14px;
}

/* The reading pane, while the message is snoozed. */
.p-Message__snoozed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Message__snoozedIcon {
  display: inline-flex;
  font-size: 16px;
}

/* The reading pane, when its sender gave the message a high or low importance (#36). */
.p-Message__importance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Message__importance[data-importance="high"] .p-Message__importanceIcon {
  color: var(--colorPaletteRedForeground1);
}
.p-Message__importanceIcon {
  display: inline-flex;
  font-size: 16px;
}
/* A message that asks for a read receipt (#36). */
.p-Message__receipt {
  margin: 0 0 12px;
}

.p-Message__evidence {
  margin: 0 0 12px;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-Message__evidence summary {
  cursor: pointer;
}
.p-Message__evidence ul {
  margin: 8px 0 0;
  padding-inline-start: 20px;
}

/* The translation bar of a message in another language (#281). */
.p-Message__translation {
  margin: 0 0 12px;
}
/* The translated text in place of the body (#281, DESIGN.md 15.4): plain paragraphs, never
   the message's HTML. */
.p-MessageBody--translated {
  display: block;
  padding: 0 4px;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  color: var(--colorNeutralForeground1);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.p-MessageBody--translated > p {
  margin: 0 0 12px;
}

/* Snooze > Choose a date: the date and the time side by side, the problem under them. */
.p-SnoozePicker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-SnoozePicker__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.p-SnoozePicker__fields > .p-Field {
  flex: 1 1 160px;
}
.p-SnoozePicker__error {
  margin: 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-SnoozePicker__error:empty {
  display: none;
}

/* ---------------------------------------------------- scheduled send (#30, ADR 0057) */

/* The scheduled messages, above the Scheduled folder's list. */
.p-Scheduled {
  flex: none;
  max-height: 40%;
  overflow-y: auto;
  margin: 0 12px 8px 16px;
  padding: 8px 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground2);
}
.p-Scheduled__title {
  margin: 0 0 4px;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-Scheduled__empty {
  margin: 0;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Scheduled__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Scheduled__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 6px 0;
}
.p-Scheduled__item + .p-Scheduled__item {
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Scheduled__text {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  min-width: 0;
}
.p-Scheduled__subject,
.p-Scheduled__to {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Scheduled__subject {
  font-weight: var(--fontWeightSemibold);
}
.p-Scheduled__to,
.p-Scheduled__when {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Scheduled__actions {
  display: flex;
  gap: 8px;
}

/* css/lazy-parts.css */
/* ------------------------------------------------- parts loaded on first use (ADR 0062) */

/* A workspace whose chunk is loading: its ribbon, a list and an item, as skeletons. */
.p-PartSkeleton {
  flex: 1;
  display: flex;
  min-height: 0;
}
.p-PartSkeleton > .fui-Skeleton {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.p-PartSkeleton__ribbon {
  flex: none;
  padding: 8px 12px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-PartSkeleton__ribbon > .fui-SkeletonItem {
  width: 240px;
}
.p-PartSkeleton__panes {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  min-height: 0;
}
.p-PartSkeleton__list {
  border-inline-end: 1px solid var(--colorNeutralStroke2);
}
.p-PartSkeleton__row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}
.p-PartSkeleton__row > .fui-SkeletonItem:nth-child(1) {
  width: 55%;
}
.p-PartSkeleton__row > .fui-SkeletonItem:nth-child(2) {
  width: 80%;
}
.p-PartSkeleton__item {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px 32px;
}
.p-PartSkeleton__item > .fui-SkeletonItem:nth-child(1) {
  width: 40%;
}
.p-PartSkeleton__item > .fui-SkeletonItem:nth-child(n + 2) {
  width: 90%;
}

/* A dialog whose chunk is on its way: its title, a spinner, Dismiss. */
.p-PartPending > .fui-Spinner {
  justify-self: start;
  margin-block: 8px;
}

/* A workspace whose chunk did not load: the reason, then Retry. */
.p-PartFailed {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 24px;
}

/* css/notes.css */
/* ------------------------------------------------------------------ notes (#53, ADR 0040) */

/* The list of notes on the left, the open note's editor beside it. */
.p-Notes {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}
.p-NotesPane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-inline-end: 1px solid var(--colorNeutralStroke2);
}
.p-NotesPane__header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px 16px;
}
.p-NotesPane__title {
  margin: 0;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-NotesPane__count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorNeutralBackground5);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: 20px;
  text-align: center;
}
.p-NotesPane__search {
  flex: none;
  padding: 0 12px 8px 16px;
}
.p-NotesPane__search .fui-SearchBox {
  width: 100%;
}
.p-NotesPane__error {
  flex: none;
  padding: 0 12px 8px 16px;
}
.p-NotesPane__loading,
.p-NotesPane__none,
.p-NotesPane__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--colorNeutralForeground2);
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-NotesPane__none p,
.p-NotesPane__empty p {
  margin: 0;
}
.p-NotesList {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  outline: none;
  border-top: 1px solid var(--colorNeutralStroke2);
}
/* An outline over the content, which would cover an inset shadow (#141). */
.p-NotesList:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
/* One note: its title and date, then the start of its text. A coloured edge as in the
 * design, the brand's (notes have no colour on Cyrus). */
.p-NoteRow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title meta" "preview preview";
  column-gap: 8px;
  row-gap: 2px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke3);
  border-inline-start: 3px solid var(--colorBrandStroke2);
  background-color: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  cursor: pointer;
  user-select: none;
}
.p-NoteRow:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-NoteRow[aria-selected="true"] {
  background-color: var(--colorBrandBackground2);
}
.p-NotesList:focus-visible .p-NoteRow[aria-selected="true"] {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-NoteRow__title,
.p-NoteRow__preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-NoteRow__title {
  grid-area: title;
  font-weight: var(--fontWeightSemibold);
}
.p-NoteRow__title[data-untitled="true"] {
  color: var(--colorNeutralForeground3);
  font-style: italic;
  font-weight: var(--fontWeightRegular);
}
.p-NoteRow__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  white-space: nowrap;
}
.p-NoteRow__flag {
  display: inline-flex;
  color: var(--colorPaletteRedForeground1);
  font-size: 16px;
}
.p-NoteRow__pending {
  display: inline-flex;
  font-size: 16px;
}
.p-NoteRow__preview {
  grid-area: preview;
  color: var(--colorNeutralForeground3);
}
@media (forced-colors: active) {
  .p-NoteRow {
    border-inline-start-color: CanvasText;
  }
  .p-NoteRow[aria-selected="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
.p-NoteEditorPane {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
/* The open note: notices, the title as a heading, its status, then the editor, which takes
 * the height that is left. */
.p-NoteEditor {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 16px 24px;
}
.p-NoteEditor--loading {
  align-items: center;
  justify-content: center;
}
.p-NoteEditor__title {
  flex: none;
  box-sizing: border-box;
  width: 100%;
  /* The kit caps inputs at 468px; the title spans the note. */
  max-width: none;
}
.p-NoteEditor__title .fui-Input__input {
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
}
.p-NoteEditor__status {
  flex: none;
  margin: 0;
  min-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-NoteEditor__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.p-NoteEditor__body > .p-Editor {
  flex: 1;
}

/* css/people.css */
/* ------------------------------------------------------------------ people (#50, ADR 0059) */

/* The duplicates an import's preview lists (#51). */
.p-PeopleImport__list {
  max-height: 160px;
  margin: 0;
  padding-inline-start: 20px;
  overflow: auto;
  color: var(--colorNeutralForeground2);
}
/* An import's messages wrap inside the dialog, a long reason or file name included, and
   its progress shows as a bar with its count (#367). */
.p-CalendarDialog__result .fui-MessageBarBody {
  min-width: 0;
  overflow-wrap: anywhere;
}
.p-PeopleImport__progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-PeopleImport__progress progress {
  width: 100%;
  accent-color: var(--colorBrandBackground);
}

/* What the list shows, the contacts, then the open contact's card or the editor. */
.p-People {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(320px, 1fr) minmax(320px, 1fr);
}
.p-PeopleNav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 12px 8px;
  overflow-y: auto;
  border-inline-end: 1px solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground2);
}
.p-PeopleNav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-PeopleNav__heading {
  margin: 12px 8px 4px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
  text-transform: uppercase;
}
.p-PeopleNav__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: none;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorNeutralForeground1);
  font-family: var(--fontFamilyBase);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  text-align: start;
  cursor: pointer;
}
.p-PeopleNav__item:hover {
  background-color: var(--colorNeutralBackground2Hover);
}
.p-PeopleNav__item[aria-current="true"] {
  background-color: var(--colorBrandBackground2);
  font-weight: var(--fontWeightSemibold);
}
.p-PeopleNav__item:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-PeopleNav__icon {
  display: inline-flex;
  flex: none;
  font-size: 20px;
  color: var(--p-category-dot, var(--colorNeutralForeground2));
}
.p-PeopleNav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* "Your contact lists" with none yet (#50). */
.p-PeopleNav__none {
  margin: 0 8px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-PeoplePane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-inline-end: 1px solid var(--colorNeutralStroke2);
}
.p-PeoplePane__header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 8px 16px;
}
.p-PeoplePane__title {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-PeoplePane__count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorNeutralBackground5);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: 20px;
  text-align: center;
}
.p-PeoplePane__search {
  flex: none;
  padding: 0 12px 8px 16px;
}
.p-PeoplePane__search .fui-SearchBox {
  width: 100%;
}
.p-PeoplePane__error {
  flex: none;
  padding: 0 12px 8px 16px;
}
.p-PeoplePane__loading,
.p-PeoplePane__none,
.p-PeoplePane__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  color: var(--colorNeutralForeground2);
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-PeoplePane__none p,
.p-PeoplePane__empty p {
  margin: 0;
}
.p-PeopleList {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  outline: none;
  border-top: 1px solid var(--colorNeutralStroke2);
}
/* An outline over the content, which would cover an inset shadow (#141). */
.p-PeopleList:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
/* The list by window (#185): a space of the list's height, the rows near the view placed in
   it at fixed heights (`DESKTOP_HEIGHTS` and `PHONE_HEIGHTS` in `ui/people.rs`). */
.p-PeopleList__space {
  position: relative;
}
.p-PeopleList__slot {
  position: absolute;
  inset-inline: 0;
}
.p-PeopleList__slot > .p-PersonRow {
  box-sizing: border-box;
  height: 49px;
}
.p-PeopleList__letter {
  position: absolute;
  inset-inline: 0;
  box-sizing: border-box;
  height: 21px;
  z-index: 1;
  padding: 2px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke3);
  background-color: var(--colorNeutralBackground2);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
}
/* The table (#264): the check boxes, the name with its marks, the contact details, the
   row's "…". The header lines up with the rows' columns. */
.p-PeopleTable__header,
.p-PersonRow {
  display: grid;
  grid-template-columns: 20px 32px minmax(0, 1fr) auto minmax(0, 1fr) 20px;
  align-items: center;
  column-gap: 12px;
  padding: 8px 12px 8px 16px;
  border-inline-start: 3px solid transparent;
}
.p-PeopleTable__header {
  flex: none;
  padding-block: 2px;
  border-top: 1px solid var(--colorNeutralStroke2);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-PeopleTable__check {
  grid-column: 1 / 3;
  margin-inline-start: -6px;
}
.p-PeopleTable__name {
  grid-column: 3 / 5;
  min-width: 0;
  margin-inline-start: -8px;
}
.p-PeopleTable__details {
  grid-column: 5 / 7;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fontWeightSemibold);
}
.p-PersonRow {
  border-bottom: 1px solid var(--colorNeutralStroke3);
  background-color: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  cursor: pointer;
  user-select: none;
}
.p-PersonRow:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-PersonRow[aria-selected="true"] {
  border-inline-start-color: var(--colorBrandStroke1);
  background-color: var(--colorBrandBackground2);
}
/* The focus: the open contact, checked or not. */
.p-PeopleList:focus-visible .p-PersonRow[data-open] {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-PersonRow__check,
.p-PersonRow__more {
  display: inline-flex;
  color: var(--colorNeutralForeground3);
  font-size: 20px;
}
.p-PersonRow[data-checked] .p-PersonRow__check {
  color: var(--colorBrandForeground1);
}
.p-PersonRow__more {
  border-radius: var(--borderRadiusMedium);
}
.p-PersonRow__more:hover {
  background-color: var(--colorSubtleBackgroundHover);
  color: var(--colorNeutralForeground1);
}
.p-PersonRow__avatar {
  display: inline-flex;
}
.p-PersonRow__name,
.p-PersonRow__email,
.p-PersonRow__phone {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-PersonRow__details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-PersonRow__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--colorNeutralForeground3);
}
.p-PersonRow__icon {
  display: inline-flex;
  font-size: 16px;
}
.p-PersonRow__star {
  color: var(--colorStatusWarningForeground1);
}
@media (forced-colors: active) {
  .p-PersonRow[aria-selected="true"],
  .p-PeopleNav__item[aria-current="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
.p-PeopleDetail {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.p-PeopleDetail__loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The card: avatar and name, the actions, then the sections. */
.p-ContactCard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  padding: 24px 32px;
}
.p-ContactCard__header {
  display: flex;
  align-items: center;
  gap: 24px;
}
.p-ContactCard__avatar {
  display: inline-flex;
  flex: none;
}
.p-ContactCard__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.p-ContactCard__name {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
  outline: none;
}
.p-ContactCard__subtitle {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-ContactCard__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.p-ContactCard__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusCircular);
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: 20px;
}
.p-ContactCard__badge--external {
  border-color: var(--colorStatusWarningForeground1);
  background-color: var(--colorStatusWarningBackground1);
  color: var(--colorNeutralForeground1);
}
.p-ContactCard__badge--external > span {
  display: inline-flex;
  font-size: 16px;
}
.p-ContactCard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-ContactCard__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-ContactCard__heading {
  margin: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-ContactCard__info {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px 24px;
  margin: 0;
}
.p-ContactCard__item {
  min-width: 0;
}
.p-ContactCard__item dt {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-ContactCard__item dd {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  overflow-wrap: anywhere;
}
.p-ContactCard__address {
  white-space: pre-line;
}
.p-ContactCard__external {
  display: inline-flex;
  flex: none;
  font-size: 16px;
  color: var(--colorStatusWarningForeground1);
}
.p-ContactCard__link {
  padding: 0;
  border: none;
  background: none;
  color: var(--colorBrandForegroundLink);
  font: inherit;
  text-align: start;
  text-decoration: underline;
  cursor: pointer;
}
.p-ContactCard__link:hover {
  color: var(--colorBrandForegroundLinkHover);
}
.p-ContactCard__notes {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.p-ContactCard__members {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A list's member, and the button that takes it out (#50). */
.p-ContactCard__member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p-ContactCard__lists {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
/* The contact dialog (#265): the sections on the left, the form scrolling on the right,
 * Cancel and Save at the bottom. */
.p-ContactDialog__form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.p-ContactDialog__navList {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-ContactDialog__navItem {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border: none;
  border-radius: var(--borderRadiusMedium);
  background: transparent;
  color: var(--colorNeutralForeground1);
  font-family: var(--fontFamilyBase);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  text-align: start;
  cursor: pointer;
}
.p-ContactDialog__navItem:hover {
  background-color: var(--colorNeutralBackground1Hover);
}
.p-ContactDialog__navItem[aria-current="true"] {
  background-color: var(--colorNeutralBackground1Selected);
  font-weight: var(--fontWeightSemibold);
}
/* The current section's mark, as the tab lists draw theirs. */
.p-ContactDialog__navItem[aria-current="true"]::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorCompoundBrandStroke);
}
.p-ContactDialog__navItem:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-ContactDialog__notice {
  padding: 0 24px 12px;
}
.p-ContactDialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-ContactDialog__footer .p-ContactEditor__problem {
  margin-inline-end: auto;
}
.p-ContactForm__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-ContactForm__section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.p-ContactForm__heading {
  margin: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
/* The photo beside the names, which take two columns. */
.p-ContactForm__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px 24px;
}
.p-ContactForm__identity > :only-child {
  grid-column: 1 / -1;
}
.p-ContactForm__names,
.p-ContactForm__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
}
.p-ContactForm__fields {
  grid-template-columns: 1fr;
}
/* The fields take the form's width. */
.p-ContactForm__section .fui-Input {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}
.p-ContactForm__extraLabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.p-ContactForm__nameBlock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.p-ContactForm__nameBlock > .p-ContactForm__names {
  align-self: stretch;
}
.p-ContactForm__dateParts {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
}
.p-ContactForm__dateParts .p-Select,
.p-ContactForm__dateParts .p-Select__select,
.p-ContactForm__dateParts .fui-Input {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}
.p-ContactEditor__problem,
.p-ContactEditor__photoProblem {
  margin: 0;
  color: var(--colorPaletteRedForeground1);
}
.p-ContactEditor__problem:empty,
.p-ContactEditor__photoProblem:empty {
  display: none;
}
.p-ContactEditor__group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.p-ContactEditor__legend {
  padding: 0;
  margin-bottom: 4px;
  font-weight: var(--fontWeightSemibold);
}
.p-ContactEditor__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.p-ContactEditor__value {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  max-width: none;
}
.p-ContactEditor__kind {
  flex: none;
}
.p-ContactEditor__address {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
/* The kind and the remove button, then the street, on their own lines. */
.p-ContactEditor__address > .p-ContactEditor__item,
.p-ContactEditor__address > .p-Field:nth-child(2) {
  grid-column: 1 / -1;
}
.p-ContactEditor__spacer {
  flex: 1;
}
.p-ContactEditor__textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
}
.p-ContactEditor__textarea textarea {
  min-height: 80px;
  padding-block: 6px;
  resize: vertical;
}
/* The form's photo (#50): the picture, or the initials until there is one, above its
 * buttons. */
.p-ContactEditor__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 136px;
}
.p-ContactEditor__picture {
  display: inline-flex;
  flex: none;
}
.p-ContactEditor__placeholder {
  display: inline-flex;
  border-radius: 50%;
}
.p-ContactEditor__photoActions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
/* The crop dialog (#50): the picture under a round mask over a square. */
.p-Dialog--crop {
  gap: 12px;
  width: min(320px, calc(100vw - 32px));
  height: auto;
  padding: 24px;
}
.p-Crop {
  position: relative;
  align-self: center;
  width: 240px;
  height: 240px;
  overflow: hidden;
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground3);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.p-Crop:active {
  cursor: grabbing;
}
.p-Crop:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-Crop__image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  pointer-events: none;
}
.p-Crop__mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 240px rgb(0 0 0 / 0.45);
  pointer-events: none;
}
.p-Crop__zoom input {
  width: 100%;
}
/* The list dialog (#50): its name, its members, contacts to add. */
/* Duplicate contacts (#324): the pane's count, the sets, the card's banner, the merge
   dialog with its contacts side by side and its choices. */
.p-PeopleNav__count {
  margin-inline-start: auto;
}
.p-Duplicates {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Duplicates__actions {
  padding: 8px 12px 8px 16px;
}
.p-Duplicates ul,
.p-MergeDialog__contacts,
.p-MergeDialog__values {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Duplicates__set {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-Duplicates__reason {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  font-weight: var(--fontWeightSemibold);
}
.p-Duplicates__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p-Duplicates__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.p-Duplicates__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-Duplicates__name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Duplicates__detail {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Duplicates__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p-ContactCard__duplicates {
  padding-bottom: 12px;
}
/* People's Suggested (#307): the addresses gleaned from mail, apart from the contacts. */
.p-Suggested {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Suggested__hint {
  margin: 0;
  padding: 8px 12px 8px 16px;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Suggested ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Suggested__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--colorNeutralStroke2);
}
.p-Suggested__name {
  display: flex;
  flex: 1 1 12rem;
  flex-direction: column;
  min-width: 0;
}
.p-Suggested__name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Suggested__detail {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-Suggested__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* A directory's people (#287): rows that open a read-only card. */
.p-Directory {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-top: 1px solid var(--colorNeutralStroke2);
}
.p-Directory ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Directory__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px 10px 16px;
  border: 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-Directory__row:hover {
  background: var(--colorSubtleBackgroundHover);
}
.p-Directory__row[aria-current="true"] {
  background: var(--colorNeutralBackground1Selected);
}
@media (forced-colors: active) {
  .p-Directory__row[aria-current="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}
.p-Directory__row:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-MergeDialog {
  width: min(720px, calc(100vw - 32px));
  height: auto;
  max-height: min(720px, calc(100vh - 32px));
  gap: 12px;
  padding: 24px;
  overflow-y: auto;
}
.p-MergeDialog__contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.p-MergeDialog__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
.p-MergeDialog__name {
  font-weight: var(--fontWeightSemibold);
}
.p-MergeDialog__values {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-MergeDialog__choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.p-MergeDialog__note {
  margin: 8px 0 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  overflow-wrap: anywhere;
}
.p-MergeDialog__note:empty {
  display: none;
}
.p-MergeDialog__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.p-MergeDialog__legend {
  margin-bottom: 4px;
  padding: 0;
  font-weight: var(--fontWeightSemibold);
}
.p-MergeDialog__option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}
.p-MergeDialog__option input {
  flex: none;
  margin: 0;
  accent-color: var(--colorCompoundBrandBackground);
}
.p-MergeDialog__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.p-MergeDialog__label .p-Duplicates__name > span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.p-MergeDialog__loading {
  display: flex;
  justify-content: center;
  padding: 24px;
}
.p-Dialog--list {
  width: min(440px, calc(100vw - 32px));
  height: auto;
  max-height: min(640px, calc(100vh - 32px));
  padding: 24px;
  overflow-y: auto;
}
.p-Dialog--list .fui-SearchBox {
  width: 100%;
  max-width: none;
}
.p-Dialog--list form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.p-ListDialog__heading {
  margin: 4px 0 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-ListDialog__members,
.p-ListDialog__picks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-ListDialog__member,
.p-ListDialog__pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.p-ListDialog__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-ListDialog__none {
  margin: 0;
  color: var(--colorNeutralForeground3);
}
@media (forced-colors: active) {
  .p-Crop__mask {
    box-shadow: none;
    outline: 2px solid CanvasText;
  }
  .p-ContactDialog__navItem[aria-current="true"]::before {
    forced-color-adjust: none;
    background-color: Highlight;
  }
}
/* A narrow contact dialog: the sections become a row above the form. */
@media (max-width: 640px) {
  .p-Dialog--contact .p-Dialog__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .p-ContactDialog__nav {
    min-width: 0;
    overflow-x: auto;
    border-inline-end: none;
    border-bottom: 1px solid var(--colorNeutralStroke2);
  }
  .p-ContactDialog__navList {
    flex-direction: row;
  }
  .p-ContactDialog__navItem {
    width: auto;
    white-space: nowrap;
  }
  .p-ContactForm__identity {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Narrow windows: what the list shows becomes a row above the list and the card. */
@media (max-width: 900px) {
  /* The contact details give way to the names. */
  .p-PeopleTable__header,
  .p-PersonRow {
    grid-template-columns: 20px 32px minmax(0, 1fr) auto 0 20px;
  }
  .p-PeopleTable__details,
  .p-PersonRow__details {
    display: none;
  }
  .p-PersonRow__more {
    grid-column: 6;
  }
}
@media (max-width: 900px) {
  .p-People {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .p-PeopleNav {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 4px 8px;
    overflow-x: auto;
    border-inline-end: none;
    border-bottom: 1px solid var(--colorNeutralStroke2);
  }
  .p-PeopleNav__list {
    flex-direction: row;
  }
  .p-PeopleNav__heading {
    margin: 0 4px 0 12px;
    white-space: nowrap;
  }
  .p-PeopleNav__item {
    width: auto;
    white-space: nowrap;
  }
}

/* css/mail-merge.css */
/* ------------------------------------------------------------------ More options (#319) */

.p-MoreOptions {
  width: min(480px, 100%);
}
.p-MoreOptions__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-MoreOptions__heading {
  margin: 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
  line-height: var(--lineHeightBase300);
}
.p-MoreOptions__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.p-MoreOptions__radio input {
  margin: 0;
  accent-color: var(--colorCompoundBrandBackground);
}
.p-MoreOptions__hint {
  margin: 0;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
}
.p-MoreOptions__when {
  display: flex;
  gap: 12px;
}
.p-MoreOptions__when > .p-Field {
  flex: 1;
}
.p-MoreOptions__error {
  margin: 0;
  font-size: var(--fontSizeBase200);
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
}
.p-MoreOptions__error:empty {
  display: none;
}

/* ------------------------------------------------------------------ Start mail merge (#320) */

.p-Merge {
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.p-Merge__group,
.p-Merge__preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-Merge__heading {
  margin: 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
  line-height: var(--lineHeightBase300);
}
.p-Merge__hint {
  margin: 0;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  color: var(--colorNeutralForeground3);
}
.p-Merge__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.p-Merge__radio input {
  margin: 0;
  accent-color: var(--colorCompoundBrandBackground);
}
.p-Merge__fields,
.p-Merge__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.p-Merge__people,
.p-Merge__failures {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow-y: auto;
}
.p-Merge__copy {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 0;
}
.p-Merge__copy dt {
  color: var(--colorNeutralForeground3);
}
.p-Merge__copy dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.p-Merge__body {
  margin: 0;
  max-height: 160px;
  overflow: auto;
  padding: 8px;
  white-space: pre-wrap;
  font: inherit;
  border: 1px solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground2);
}
.p-Merge__bar {
  width: 100%;
  accent-color: var(--colorCompoundBrandBackground);
}
.p-Merge__subject {
  margin: 0;
  font-weight: var(--fontWeightSemibold);
}
.p-Merge__skipped summary {
  cursor: pointer;
}

/* The image that follows the pointer while messages are dragged to a folder (#423): a pill
 * built off-screen for the browser to take its picture; its size is fixed, under 240 x 40. */
.p-DragImage {
  position: fixed;
  top: -1000px;
  left: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 200px;
  height: 28px;
  padding: 0 10px;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  box-shadow: var(--shadow8);
  font-family: var(--fontFamilyBase);
  font-size: var(--fontSizeBase200);
  line-height: 1;
}
.p-DragImage__icon {
  flex: none;
  color: var(--colorBrandForeground1);
}
.p-DragImage__text {
  min-width: 0;
  max-width: 100%;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  unicode-bidi: plaintext;
}
@media (forced-colors: active) {
  .p-DragImage {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }
  .p-DragImage__icon {
    color: CanvasText;
  }
}

/* Dictation's recording state (#322). */
.p-Dictation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px;
  font-size: var(--fontSizeBase200);
  color: var(--colorNeutralForeground2);
}
.p-Dictation__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--colorStatusDangerForeground1);
}
.p-Dictation[data-dictation="listening"] .p-Dictation__dot {
  animation: p-Dictation-pulse 1.2s ease-in-out infinite;
}
.p-Dictation[data-dictation="failed"] {
  color: var(--colorStatusDangerForeground1);
}
@keyframes p-Dictation-pulse {
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-Dictation[data-dictation="listening"] .p-Dictation__dot {
    animation: none;
  }
}
.p-NoteEditor__dictation:empty {
  display: none;
}
.p-NoteEditor__dictation,
.p-EventForm__dictation {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dictation's status line (#322, DESIGN.md 15.7). */
.p-Dictation[data-dictation="listening"] {
  flex-wrap: wrap;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground1);
}
.p-Dictation__interim {
  flex: 1;
  min-width: 0;
  color: var(--colorNeutralForeground4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Dictation__key {
  margin-inline-start: 4px;
  padding: 0 4px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusSmall);
  font: inherit;
  font-size: var(--fontSizeBase100);
}

/* Settings › Assistant › Connections (#438, DESIGN.md 15.5). */
.p-Assistant {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.p-Assistant__nav {
  flex: none;
  min-width: 160px;
}
/* Beside its list of pages, or below it where the content is too narrow for both. */
.p-Assistant__page {
  flex: 1 1 256px;
  min-width: 0;
}
/* Writing help in the compose window (#280, DESIGN.md 15.3): the text a suggestion works on
   stays highlighted, and its card sits under that paragraph. */
.p-AssistSource {
  /* A tint of the brand over the editor's paper, which stays white with black ink in every
     theme (--p-editor-paper): the dark theme's brand background would hide the text. */
  background-color: color-mix(in srgb, var(--colorBrandBackground) 22%, var(--p-editor-paper));
}
@media (forced-colors: active) {
  .p-AssistSource {
    background-color: Highlight;
    color: HighlightText;
  }
}
.p-AssistSlot,
.p-Editor__assist {
  display: block;
  margin: 8px 16px 12px;
  caret-color: transparent;
}
.p-Editor__assist:empty {
  display: none;
}
.p-WritingCard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  max-width: 640px;
  padding: 12px 16px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
  background-color: var(--colorNeutralBackground1);
  box-shadow: var(--shadow8);
  color: var(--colorNeutralForeground1);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
  user-select: text;
}
.p-WritingCard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p-WritingCard__title {
  font-weight: var(--fontWeightSemibold);
}
.p-WritingCard__caption {
  margin: 0;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-WritingCard__text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.p-WritingCard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Settings › Assistant › Writing help (#279, DESIGN.md 15.5, screen 155). */
.p-WritingHelp {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p-WritingHelp__warning {
  color: var(--colorPaletteDarkOrangeForeground1);
}
.p-WritingHelp__languages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-WritingHelp__languages li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.p-Connections__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.p-Connections__card {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
.p-Connections__icon {
  flex: none;
  color: var(--colorNeutralForeground2);
}
.p-Connections__body {
  flex: 1;
  min-width: 0;
}
.p-Connections__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--fontSizeBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Connections__expired {
  padding: 0 6px;
  border: var(--strokeWidthThin) solid currentcolor;
  border-radius: var(--borderRadiusSmall);
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightRegular);
}
.p-Connections__meta {
  margin: 2px 0 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-Connections__account {
  margin: 4px 0 0;
}
.p-Connections__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.p-Connections__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusSmall);
  font-size: var(--fontSizeBase200);
}
.p-Connections__actions {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.p-Connections__revoke {
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
}
.p-Connections__ask {
  margin-top: 12px;
  padding-top: 8px;
  border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-Connections__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusMedium);
  background: var(--colorNeutralBackground2);
}
.p-Connections__services {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
.p-Connections__problem {
  margin: 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
}
.p-Connections__command {
  display: block;
  padding: 8px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusSmall);
  background: var(--colorNeutralBackground1);
  font-family: var(--fontFamilyMonospace);
  font-size: var(--fontSizeBase200);
  overflow-wrap: anywhere;
  user-select: all;
  white-space: pre-wrap;
}
.p-Connections__footer {
  margin-top: 16px;
}

/* The pending actions (#439, DESIGN.md 15.6): the header's button and the pane. */
.p-PendingButton {
  position: relative;
  display: inline-flex;
}
.p-PendingButton__count {
  position: absolute;
  inset-block-start: -2px;
  inset-inline-end: -4px;
  pointer-events: none;
}
.p-Pending {
  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-Pending:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
}
.p-Pending__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 4px 16px;
}
.p-Pending__title {
  margin: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-Pending__count {
  flex: 1;
  color: var(--colorNeutralForeground2);
}
.p-Pending__scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
  overflow-y: auto;
}
.p-Pending__hint,
.p-Pending__empty {
  margin: 0;
  color: var(--colorNeutralForeground2);
}
.p-Pending__problem,
.p-Pending__invalid {
  margin: 0;
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
}
.p-Pending__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-Pending__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusMedium);
}
.p-Pending__cardhead {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-Pending__agent {
  flex: 1;
  margin: 0;
  font-size: var(--fontSizeBase300);
  font-weight: var(--fontWeightSemibold);
}
.p-Pending__time {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-Pending__wants {
  margin: 0;
}
.p-Pending__snapshot {
  margin: 0;
  padding: 8px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusSmall);
  background: var(--colorNeutralBackground2);
}
.p-Pending__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 12px;
}
.p-Pending__facts dt {
  color: var(--colorNeutralForeground2);
}
.p-Pending__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.p-Pending__body {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.p-Pending__attachments {
  margin: 8px 0 0;
  color: var(--colorNeutralForeground2);
}
.p-Pending__messages {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 4px;
}
.p-Pending__messages li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) max-content;
  gap: 8px;
}
.p-Pending__from {
  font-weight: var(--fontWeightSemibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Pending__subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-Pending__date {
  color: var(--colorNeutralForeground2);
}
.p-Pending__actions {
  display: flex;
  gap: 8px;
}
/* A destructive verb is an outline in the danger colour, never the primary style. */
.p-Pending__danger {
  border-color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
  color: var(--colorPaletteRedForeground1, var(--colorStatusDangerForeground1));
}
@media (forced-colors: active) {
  .p-Pending__danger {
    border-color: CanvasText;
    color: ButtonText;
  }
}

/* css/phone-mail.css */
/* ------------------------------------------------------------------ phone search (#183)
   While the search is open (`data-search-open`, an explicit state: the box taking the focus
   until Cancel, Escape or a search run), a phone's search is a screen of its own: the box
   with Cancel on top, the scope under them, and the suggestions (contacts, mail, events) as
   full-width rows below, as the owner's feedback asked (the flyout was about 270 px wide). */
.p-Search__cancel {
  display: none;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] {
  position: fixed;
  inset: 0;
  z-index: 30;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Search__field {
  position: static;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] > .fui-MenuButton {
  order: 3;
  flex: 1 1 100%;
  max-width: 100%;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Search__suggestions {
  inset-inline: 0;
  top: calc(112px + env(safe-area-inset-top));
  bottom: 0;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 12px;
}
.p-App[data-layout="phone"] :is(.p-Search[data-search-open], .p-MessageList__header > .p-Search) .p-Search__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: none;
  background: none;
  color: var(--colorBrandForegroundLink);
  font: inherit;
  cursor: pointer;
}
.p-App[data-layout="phone"] .p-MessageList__header > .p-Search:not([data-search-open]) .p-Search__cancel {
  padding: 0 6px;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion {
  min-height: 44px;
}

/* ------------------------------------------------------------------ phone triage (#183)
   A row follows a swipe sideways (`--p-swipe-x`) and slides back on release, with no slide
   under reduced motion; `touch-action: pan-y` leaves the vertical scroll to the browser and the
   sideways movement to the row. Selection mode has a bottom bar on a phone. */
.p-App[data-layout="phone"] .p-Row {
  touch-action: pan-y;
  -webkit-touch-callout: none;
  user-select: none;
  translate: var(--p-swipe-x, 0) 0;
  transition: translate var(--durationNormal) var(--curveEasyEase);
}
.p-App[data-layout="phone"] .p-Row[data-swiping] {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .p-App[data-layout="phone"] .p-Row {
    transition: none;
  }
}
.p-SelectionBar {
  display: none;
}
.p-App[data-layout="phone"] .p-SelectionBar {
  display: flex;
  flex: none;
  justify-content: space-around;
  gap: 4px;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-SelectionBar .fui-Button {
  flex: 1 1 0;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 4px;
  overflow: hidden;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .p-App[data-layout="phone"] .p-SelectionBar .fui-Button__icon {
    display: none;
  }
}
@media (forced-colors: active) {
  .p-App[data-layout="phone"] .p-SelectionBar {
    border-top-color: CanvasText;
  }
}
/* ------------------------------------------------------------------ phone compose (#183)
   A draft is a screen of its own on a phone: its commands are the top bar (Close at the start,
   the save state, Send at the end), whatever the order of the markup; the window's tabs and
   its own window have no place. Close keeps the draft; Discard asks first. */
.p-App[data-layout="phone"] .p-Compose {
  padding: 0 0 12px;
  gap: 8px;
}
/* No ribbon on a phone (the owner's feedback, #183): Close, Attach and Send are the bar's. */
.p-App[data-layout="phone"] .p-Compose .p-Editor {
  border: none;
  border-radius: 0;
}
/* The text lines up with the list and the message: a 16 px inset inside the fields, the
   notices and the editor, none outside them. */
.p-App[data-layout="phone"] .p-Compose__fields,
.p-App[data-layout="phone"] .p-Compose__notice,
.p-App[data-layout="phone"] .p-Compose .p-Editor {
  padding-inline: 16px;
}
.p-App[data-layout="phone"] .p-Compose > .p-ComposeRibbon {
  display: none;
}
.p-App[data-layout="phone"] .p-Compose__commands {
  order: -1;
  position: sticky;
  top: 0;
  z-index: 1;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 4px 8px;
  background: var(--colorNeutralBackground1);
  border-block-end: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-App[data-layout="phone"] .p-Compose__commands > [data-compose-close] {
  order: 0;
}
.p-App[data-layout="phone"] .p-Compose__commands > [data-compose-attach] {
  order: 1;
}
.p-App[data-layout="phone"] .p-Compose__commands > .p-Compose__status {
  order: 2;
  text-align: center;
}
.p-App[data-layout="phone"] .p-Compose__commands > [data-compose-send] {
  order: 3;
}
.p-App[data-layout="phone"] .p-Compose__commands > :not([data-compose-close], [data-compose-attach], [data-compose-send], .p-Compose__status) {
  order: 4;
}
.p-App[data-layout="phone"] .p-Compose__commands .fui-Button {
  min-width: 44px;
  min-height: 44px;
}
.p-App[data-layout="phone"] [data-compose-close-inline],
.p-App[data-layout="phone"] [data-compose-minimize],
.p-App[data-layout="phone"] [data-compose-pop-out] {
  display: none;
}
@media (forced-colors: active) {
  .p-App[data-layout="phone"] .p-Compose__commands {
    border-block-end-color: CanvasText;
  }
}

/* ------------------------------------------------------------------ pull to refresh (#183) */
.p-PullRefresh {
  display: none;
}
.p-App[data-layout="phone"] .p-PullRefresh {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--colorNeutralForeground3);
}
.p-App[data-layout="phone"] .p-PullRefresh[data-ready] {
  color: var(--colorBrandForeground1);
}
.p-App[data-layout="phone"] .p-MessageList__viewport {
  overscroll-behavior-y: contain;
}

/* ------------------------------------------------------------------ phone sync strip (#183)
   Offline, waiting and refused changes, at the top of the list and of the reading screen. */
.p-SyncStrip {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 16px;
  border-block-end: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-SyncStrip__lines {
  flex: 1;
  min-width: 0;
}
.p-SyncStrip .fui-Button {
  flex: none;
  min-height: 44px;
}
@media (forced-colors: active) {
  .p-SyncStrip {
    border-block-end-color: CanvasText;
  }
}

/* css/phone-settings.css */
/* ------------------------------------------------------------------ phone settings (#185)
   On a phone the settings are screens of their own, not a dialog: the list of their pages,
   then a page with a top bar that goes back to the list. One column, rows of 44 px. */
.p-DialogBackdrop[data-layout="phone"] {
  padding: 0;
  background-color: var(--colorNeutralBackground1);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__header {
  gap: 4px;
  min-height: 56px;
  padding: env(safe-area-inset-top) 8px 0;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  text-align: center;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__header .fui-Button {
  min-width: 44px;
  min-height: 44px;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__body {
  display: flex;
  flex-direction: column;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 8px 0 env(safe-area-inset-bottom);
  border: none;
  background-color: var(--colorNeutralBackground1);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"] {
  min-height: 48px;
  padding-inline: 16px;
  border-radius: 0;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__content {
  display: none;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.p-DialogBackdrop[data-layout="phone"][data-settings-page] .p-Dialog__nav {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"][data-settings-page] .p-Dialog__content {
  display: block;
  flex: 1;
}
/* The page's own title repeats the top bar's. */
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Settings__title {
  display: none;
}
/* css/phone-people.css */
/* ------------------------------------------------------------------ phone People (#185)
   One pane at a time: the list under a top bar (back to More, the title, New contact), then
   a card as the next screen under its own (back to the list). The ribbon, the navigation pane
   and the table's header give way; the rows are roomier (64 px, `PHONE_HEIGHTS`). */
.p-PhoneBar {
  display: none;
}
.p-App[data-layout="phone"] .p-PhoneBar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 0 8px;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-PhoneBar .fui-Button {
  min-width: 44px;
  min-height: 44px;
}
/* A pushed screen's Back (a card, a note, #457) names the parent in the brand colour (design
   10.3); a long name ends in an ellipsis before the screen's tools. */
.p-App[data-layout="phone"] .p-PhoneBar__back,
.p-App[data-layout="phone"] .p-PhoneBar__button:has(> .p-PhoneBar__label) {
  flex: 0 1 auto;
  justify-content: flex-start;
  overflow: hidden;
  white-space: nowrap;
  color: var(--colorBrandForeground1);
}
.p-PhoneBar__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-App[data-layout="phone"] .p-PhoneBar__tools {
  flex: none;
  display: flex;
  align-items: center;
  margin-inline-start: auto;
}
/* In the app bar's place, the pushed screen's bar comes first: the workspace's message bars
   (offline, the offer of notifications...) sit under it, as under the app bar (design 10.3). */
.p-App[data-layout="phone"][data-pushed] > .p-Workspace > .p-PhoneBar {
  order: -1;
}
.p-App[data-layout="phone"] .p-PhoneBar__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-App[data-layout="phone"] [data-people-ribbon],
.p-App[data-layout="phone"] .p-People .p-PeopleNav,
.p-App[data-layout="phone"] .p-People .p-PeopleTable__header {
  display: none;
}
.p-App[data-layout="phone"] .p-People {
  display: flex;
}
.p-App[data-layout="phone"] .p-People > .p-PeoplePane {
  flex: 1;
  min-width: 0;
  max-width: none;
  border: none;
}
.p-App[data-layout="phone"] .p-People > .p-PeopleDetail {
  display: none;
}
.p-App[data-layout="phone"] .p-People[data-card] > .p-PeoplePane {
  display: none;
}
.p-App[data-layout="phone"] .p-People[data-card] > .p-PeopleDetail {
  display: flex;
  flex: 1;
  min-width: 0;
}
.p-App[data-layout="phone"] .p-PeopleList__slot > .p-PersonRow {
  height: 64px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  padding: 8px 16px;
}
.p-App[data-layout="phone"] .p-PersonRow__check,
.p-App[data-layout="phone"] .p-PersonRow__more,
.p-App[data-layout="phone"] .p-PersonRow__phone {
  display: none;
}
.p-App[data-layout="phone"] .p-PersonRow__avatar {
  grid-row: 1 / 3;
}
.p-App[data-layout="phone"] .p-PersonRow__details {
  grid-column: 2 / 4;
  grid-row: 2;
}
.p-App[data-layout="phone"] .p-PeopleList__letter {
  height: 32px;
  padding: 7px 16px;
}
.p-App[data-layout="phone"] .p-ContactCard__actions .fui-Button {
  min-width: 44px;
  min-height: 44px;
}

/* css/phone-notes.css */
/* ------------------------------------------------------------------ phone Notes (#185)
   One pane at a time: the list under a top bar (back to More) with New note floating above
   the tab bar, then a note as the next screen under its own bar (back to the list, Flag,
   Delete), full width, its formatting toolbar at the bottom. The bar is `.p-PhoneBar`, above. */
.p-App[data-layout="phone"] .p-PhoneBar__end {
  min-width: 44px;
}
.p-App[data-layout="phone"] [data-notes-ribbon],
.p-App[data-layout="phone"] .p-NotesPane__header {
  display: none;
}
.p-App[data-layout="phone"] .p-Notes {
  display: flex;
}
.p-App[data-layout="phone"] .p-Notes > .p-NotesPane {
  flex: 1;
  min-width: 0;
  max-width: none;
  border: none;
}
.p-App[data-layout="phone"] .p-Notes > .p-NoteEditorPane {
  display: none;
}
.p-App[data-layout="phone"] .p-Notes[data-note] > .p-NotesPane {
  display: none;
}
.p-App[data-layout="phone"] .p-Notes[data-note] > .p-NoteEditorPane {
  display: flex;
  flex: 1;
  min-width: 0;
}
.p-App[data-layout="phone"] .p-NotesList {
  padding-bottom: calc(56px + 16px + 16px);
  scroll-padding-bottom: calc(56px + 16px + 16px);
}
/* Full-bleed on a phone (#452, the owner's "la bordure ne sert à rien qu'à perdre de la
   place"): no card, border or side inset; the title is plain large text on the page's surface;
   only the page's 16 px text inset, as the system's notes app. */
.p-App[data-layout="phone"] .p-NoteEditor {
  gap: 4px;
  padding: 12px 0 0;
  background-color: var(--p-editor-paper, var(--colorNeutralBackground1));
}
.p-App[data-layout="phone"] .p-NoteEditor__title,
.p-App[data-layout="phone"] .p-NoteEditor__status,
.p-App[data-layout="phone"] .p-NoteEditor__notice,
.p-App[data-layout="phone"] .p-NoteEditor__dictation {
  padding-inline: 16px;
}
.p-App[data-layout="phone"] .p-NoteEditor__title {
  /* No frame or underline; the kit's focus line stays, for the keyboard. */
  border: none;
  background: transparent;
}
.p-App[data-layout="phone"] .p-NoteEditor__title .fui-Input__input {
  padding: 0;
  font-size: var(--fontSizeBase600);
}
.p-App[data-layout="phone"] .p-NoteEditor .p-Editor {
  border: none;
  border-radius: 0;
}
.p-App[data-layout="phone"] .p-NoteEditor .p-EditorContent,
.p-App[data-layout="phone"] .p-NoteEditor .p-Editor__plain {
  padding-inline: 16px;
}
.p-App[data-layout="phone"] .p-NoteEditor .p-Editor__toolbar {
  order: 2;
  border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-App[data-layout="phone"] .p-PhoneBar__button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: none;
  border-radius: var(--borderRadiusMedium);
  background: none;
  color: var(--colorNeutralForeground1);
  font: inherit;
  cursor: pointer;
}
.p-App[data-layout="phone"] .p-PhoneBar__button[aria-disabled="true"] {
  color: var(--colorNeutralForegroundDisabled);
  cursor: default;
}
.p-App[data-layout="phone"] .p-PhoneBar__button:not([aria-disabled="true"]):hover {
  background-color: var(--colorSubtleBackgroundHover);
}
.p-App[data-layout="phone"] .p-PhoneBar__button:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
}
.p-App[data-layout="phone"] .p-PhoneBar__icon {
  display: inline-flex;
  font-size: 20px;
}
.p-App[data-layout="phone"] .p-PhoneBar__button[aria-pressed="true"] {
  color: var(--colorBrandForeground1);
}

/* css/phone-settings-designs.css */
/* ------------------------------------------------------------------ phone settings, designs 48 and 50 (#464)
   The list of pages as phone rows with a chevron and no selected marker; the desktop's own
   sections (keyboard shortcuts, mail links, hover actions) and the account page's second Back
   are not drawn on a phone. */
.p-DialogBackdrop[data-layout="phone"] [data-desktop-only] {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"] {
  position: relative;
  width: 100%;
  justify-content: start;
  padding-inline-end: 40px;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
/* No selected marker: a list of pages, not tabs, on a phone. */
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"],
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"] .fui-Tab__content {
  font-weight: var(--fontWeightRegular);
  color: var(--colorNeutralForeground1);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"] .fui-Icon-filled {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"] .fui-Icon-regular {
  display: inline;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"]::before {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__nav [role="tab"]::after {
  content: "›" / "";
  position: absolute;
  top: 50%;
  inset-inline-end: 16px;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  translate: 0 -50%;
  background: none;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase500);
}

/* Appearance on a phone, design 50 (#464): the themes as cards in a row with a check, the
   accents named under their swatches, the densities as radio rows that say what a row
   shows, and the text size as the device's. */
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices[data-style="cards"]:has([data-preview="light"]) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
/* Two by two where four would cut the labels into words. */
@media (max-width: 359px) {
  .p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices[data-style="cards"]:has([data-preview="light"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="light"]) .p-Choice {
  position: relative;
  width: auto;
  padding: 6px;
  gap: 8px;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="light"]) .p-Choice[aria-checked="true"] {
  padding: 5px;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="light"]) .p-Choice[aria-checked="true"]::after {
  content: "✓" / "";
  position: absolute;
  top: -8px;
  inset-inline-end: -8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorCompoundBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
  font-size: var(--fontSizeBase200);
  line-height: 1;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="light"]) .p-Choice__preview {
  height: 44px;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choice__preview[data-preview="system"] {
  box-shadow: inset -36px 0 0 #292524;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="light"]) .p-Choice__indicator {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="light"]) .p-Choice__label {
  justify-content: center;
  text-align: center;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="light"]) .p-Choice[aria-checked="true"] .p-Choice__label {
  color: var(--colorBrandForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices[data-style="cards"]:has([data-preview="roomy"]) {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="roomy"]) .p-Choice,
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="roomy"]) .p-Choice[aria-checked="true"] {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 2px 16px;
  width: auto;
  min-height: 56px;
  padding: 8px 0;
  border: none;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: 0;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="roomy"]) .p-Choice__preview {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="roomy"]) .p-Choice__label {
  display: contents;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="roomy"]) .p-Choice__indicator {
  grid-row: span 2;
  width: 20px;
  height: 20px;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Choices:has([data-preview="roomy"]) .p-Choice__hint {
  display: block;
  grid-column: 2;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings [data-density-phone-default] {
  margin-top: 8px;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Accent__divider {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Accent .p-Choices[data-style="swatches"] {
  display: grid;
  flex: 1 1 100%;
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 4px;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Accent .p-Choice,
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Accent .p-Choice[aria-checked="true"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 48px;
  padding: 4px 0;
  border: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Accent .p-Choice[aria-checked="true"] .p-Choice__swatch {
  box-shadow:
    0 0 0 2px var(--colorNeutralBackground1),
    0 0 0 4px var(--colorNeutralForeground1);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Accent .p-Choice__name {
  display: block;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase100);
  line-height: var(--lineHeightBase100);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Accent .p-Choice[aria-checked="true"] .p-Choice__name {
  color: var(--colorNeutralForeground1);
  font-weight: var(--fontWeightSemibold);
}
.p-TextSize__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  font-size: var(--fontSizeBase400);
}
.p-TextSize__value {
  color: var(--colorNeutralForeground3);
}

/* Accounts on a phone, design 48 (#464): one line for the services, not one each. */
.p-DialogBackdrop[data-layout="phone"] .p-AccountRow__services {
  display: none;
}
.p-DialogBackdrop[data-layout="phone"] .p-AccountRow__summary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
.p-DialogBackdrop[data-layout="phone"] .p-AccountRow__summary > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-DialogBackdrop[data-layout="phone"] .p-AccountRow__body {
  min-width: 0;
}
.p-DialogBackdrop[data-layout="phone"] .p-AccountRow__address {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* css/phone-people-cards.css */
/* ------------------------------------------------------------------ phone People (#452)
   The favourites as a row of avatars over the list (screen 44), and the card's actions as a
   row of round buttons under the name (screen 45). */
.p-PeopleFavorites {
  display: none;
}
.p-App[data-layout="phone"] .p-PeopleFavorites {
  display: block;
  flex: none;
  padding: 8px 0 4px;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-PeopleFavorites__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
}
.p-PeopleFavorites__all {
  min-height: 44px;
  padding: 0 8px;
  border: none;
  background: none;
  color: var(--colorBrandForegroundLink);
  font: inherit;
  font-size: var(--fontSizeBase300);
  cursor: pointer;
}
.p-PeopleFavorites__all:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
}
.p-PeopleFavorites__title {
  margin: 0;
  padding: 0 0 4px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
  text-transform: uppercase;
}
.p-PeopleFavorites__list {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0 12px;
  overflow-x: auto;
  list-style: none;
}
.p-PeopleFavorites__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 72px;
  min-height: 44px;
  padding: 4px 0;
  border: none;
  border-radius: var(--borderRadiusMedium);
  background: none;
  color: var(--colorNeutralForeground1);
  font: inherit;
  cursor: pointer;
}
.p-PeopleFavorites__person:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
}
.p-PeopleFavorites__name {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--fontSizeBase200);
}
.p-ContactCard__call {
  display: none;
}
.p-App[data-layout="phone"] .p-ContactCard__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}
.p-App[data-layout="phone"] .p-ContactCard__actions > .fui-Button,
.p-App[data-layout="phone"] .p-ContactCard__actions .fui-MenuButton,
.p-App[data-layout="phone"] .p-ContactCard__call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border: none;
  border-radius: 28px;
  background: none;
  color: var(--colorBrandForeground1);
  font-size: var(--fontSizeBase200);
  text-decoration: none;
}
.p-App[data-layout="phone"] .p-ContactCard__actions > .fui-Button .fui-Button__icon,
.p-App[data-layout="phone"] .p-ContactCard__callIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--colorBrandBackground2);
  font-size: 20px;
}
.p-App[data-layout="phone"] .p-ContactCard__call:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
}
@media (forced-colors: active) {
  .p-App[data-layout="phone"] .p-ContactCard__callIcon,
  .p-App[data-layout="phone"] .p-ContactCard__actions > .fui-Button .fui-Button__icon {
    border: 1px solid ButtonText;
  }
}

/* css/phone-compose.css */
/* ------------------------------------------------------------------ phone compose, design 37 (#461)
   A full-screen modal: no app bar; a top bar of Close, the centred title and Send (Send later
   and Discard in its "…"), the save state on a line under it; the fields as rows with their
   labels at the start and no underline; full-width suggestions with a 40 px avatar; and a
   one-row format bar at the bottom, just above the keyboard. */
.p-App[data-layout="phone"][data-composing] {
  grid-template-rows: 0 minmax(0, 1fr) auto;
}
.p-App[data-layout="phone"][data-composing] .p-Header {
  display: none;
}
.p-App[data-layout="phone"] .p-Compose__commands {
  flex-wrap: nowrap;
  min-height: 56px;
  padding-top: env(safe-area-inset-top);
}
.p-App[data-layout="phone"] .p-Compose__commands > .p-Compose__title {
  flex: 1;
  order: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
  font-weight: var(--fontWeightSemibold);
}
.p-App[data-layout="phone"] .p-Compose__commands > .p-Compose__status {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  order: 9;
  padding: 2px 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: start;
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-Compose__commands > [data-compose-more] {
  order: 4;
}
.p-App[data-layout="phone"] .p-Compose__commands > [data-compose-send] {
  order: 5;
}
.p-App[data-layout="phone"] .p-Compose__fields {
  margin-top: 20px;
  gap: 0;
}
.p-App[data-layout="phone"] .p-Compose__field,
.p-App[data-layout="phone"] .p-Compose__to,
.p-App[data-layout="phone"] .p-Compose__ccbcc {
  min-height: 48px;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-App[data-layout="phone"] .p-Compose__label {
  flex: none;
  width: 64px;
  color: var(--colorNeutralForeground3);
}
.p-App[data-layout="phone"] .p-Compose .fui-Input[data-appearance="underline"] {
  border-bottom: none;
}
.p-App[data-layout="phone"] .p-Compose__ccbcc {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  border-top: none;
  border-inline: none;
  background: none;
  color: var(--colorNeutralForeground3);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-App[data-layout="phone"] .p-Compose__ccbcc:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-App[data-layout="phone"] .p-Recipients__suggestions {
  inset-inline: -80px 0;
  border-radius: var(--borderRadiusMedium);
}
.p-App[data-layout="phone"] .p-Recipients__suggestions .p-Suggestion {
  min-height: 56px;
}
.p-App[data-layout="phone"] .p-Recipients__suggestions .p-Suggestion__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--colorBrandBackground2);
}
.p-Compose__format {
  display: none;
}
/* The screen scrolls under its bars: the format bar stays at the bottom, above the keyboard,
   however many recipients the fields hold (Codex on !568). */
.p-App[data-layout="phone"] .p-Compose {
  min-height: 0;
  overflow-y: auto;
}
.p-App[data-layout="phone"] .p-Compose__format {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  flex: none;
  order: 99;
  margin-top: auto;
  margin: 0 0 -12px;
  padding-bottom: var(--p-safe-area-bottom, env(safe-area-inset-bottom));
  border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-Compose__formatRow {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 0 4px;
  overflow: hidden;
}
.p-App[data-layout="phone"] .p-Compose__formatRow .fui-Button {
  flex: 0 1 44px;
  min-width: 40px;
  min-height: 44px;
}
.p-App[data-layout="phone"] .p-Compose__body {
  flex: 1;
  min-height: 160px;
}
@media (forced-colors: active) {
  .p-App[data-layout="phone"] .p-Compose__format,
  .p-App[data-layout="phone"] .p-Compose__field,
  .p-App[data-layout="phone"] .p-Compose__to {
    border-color: CanvasText;
  }
}

/* Received offline copies stay manageable on the phone with long file names. */
.p-RetainedCopies {
  list-style: none;
  padding: 0;
}
.p-RetainedCopy {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.p-RetainedCopy__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* The settings' one top bar on a phone, designs 48-50 (#464): ‹ and the parent's name, the
   title centred, no ✕; the tab bar stays below them, More current. */
.p-DialogBackdrop[data-layout="phone"]:has(.p-Dialog--settings) {
  bottom: var(--p-tab-bar-height, 0px);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__header > .fui-Button {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
  color: var(--colorBrandForeground1);
}
.p-DialogBackdrop[data-layout="phone"] .p-Dialog--settings .p-Dialog__title {
  grid-column: 2;
}

/* Compose on a phone, design 37 (#461): From with the account's avatar, and its menu, when
   there are several identities, the row's width with the chevron at the end; the format
   bar's toggles pressed where the caret is. */
.p-App[data-layout="phone"] .p-Compose__field:has(.p-Compose__fromAvatar) {
  align-items: center;
  gap: 8px;
}
.p-Compose__fromAvatar {
  display: inline-flex;
  flex: none;
}
.p-App[data-layout="phone"] .p-Compose__from-menu {
  flex: 1;
}
.p-App[data-layout="phone"] .p-Compose__from-menu .fui-MenuButton {
  justify-content: space-between;
  width: 100%;
  max-width: none;
  padding-inline: 0;
  font-weight: var(--fontWeightRegular);
}
.p-App[data-layout="phone"] .p-Compose__fromText {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-App[data-layout="phone"] .p-Compose__from-menu .fui-MenuButton__menuIcon {
  margin-inline-start: auto;
  color: var(--colorNeutralForeground3);
}
.p-App[data-layout="phone"] .p-Compose__formatRow .fui-Button[aria-pressed="true"] {
  background-color: var(--colorBrandBackground2);
  color: var(--colorBrandForeground1);
}

/* The phone's search screen, design 38 (#462): ← at the start, the field, the kind chips
   under it (one kind alone, or all), no scope or Cancel; the suggestions in sections on a
   band, rich rows: a person's 40 px avatar, name and address and a Mail button; a message's
   sender and time, subject and a line of its text; an event's colour bar, time and place. */
.p-Search__back,
.p-Search__kinds,
.p-SuggestGroup__all,
.p-Suggestion__write,
.p-Suggestion__snippet,
.p-Suggestion__bar,
.p-Suggestion__place {
  display: none;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] > .p-Search__back {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-start: -8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--colorNeutralForeground1);
  cursor: pointer;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] > .p-Search__back svg:dir(rtl) {
  transform: scaleX(-1);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] > .p-Search__cancel,
.p-App[data-layout="phone"] .p-Search[data-search-open] > .fui-MenuButton {
  display: none;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] > .p-Search__field {
  flex: 1 1 0;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Search__kinds {
  display: flex;
  gap: 8px;
  margin-inline: -12px;
  padding: 8px 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.p-Search__kind {
  flex: none;
  min-height: 32px;
  padding: 0 14px;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorNeutralBackground1);
  color: var(--colorNeutralForeground1);
  font: inherit;
  cursor: pointer;
}
.p-Search__kind[aria-pressed="true"] {
  border-color: var(--colorBrandBackground);
  background-color: var(--colorBrandBackground);
  color: var(--colorNeutralForegroundOnBrand);
  font-weight: var(--fontWeightSemibold);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Search__suggestions {
  top: calc(100px + env(safe-area-inset-top));
  padding: 0;
}
/* One kind alone: the other sections, and the searches that complete the text, go. */
.p-Search__suggestions[data-only] > .p-Suggestion[data-kind="search"],
.p-Search__suggestions[data-only="mail"] > .p-SuggestGroup:not([data-group="mail"]),
.p-Search__suggestions[data-only="people"] > .p-SuggestGroup:not([data-group="people"]),
.p-Search__suggestions[data-only="events"] > .p-SuggestGroup:not([data-group="events"]),
.p-Search__suggestions[data-only="notes"] > .p-SuggestGroup:not([data-group="notes"]) {
  display: none;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-SuggestGroup + .p-SuggestGroup,
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-SuggestGroup + .p-Suggestion {
  margin-top: 0;
  padding-top: 0;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-SuggestGroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 16px;
  border-block: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground2);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-SuggestGroup__title {
  padding: 0;
  color: var(--colorNeutralForeground2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-SuggestGroup__all {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline-start: 16px;
  color: var(--colorBrandForegroundLink);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
  cursor: pointer;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion {
  padding: 8px 16px;
  border-radius: 0;
  border-bottom: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
}
/* A person. */
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="person"] {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  grid-template-areas:
    "avatar label write card"
    "avatar detail write card";
  column-gap: 12px;
  min-height: 64px;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="person"] .p-Suggestion__avatar {
  grid-area: avatar;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="person"] .p-Suggestion__label {
  grid-area: label;
  max-width: none;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="person"] :is(.p-Suggestion__detail, .p-Suggestion__job) {
  grid-area: detail;
}
/* On a phone the title stands in the address's place (design 38, #473). */
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="person"] .p-Suggestion__job {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="person"]:has(.p-Suggestion__job) .p-Suggestion__detail {
  display: none;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__write,
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--colorNeutralForeground2);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__write {
  grid-area: write;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__card {
  grid-area: card;
}
/* A message. */
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="message"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "from date"
    "subject subject"
    "snippet snippet";
  column-gap: 8px;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="message"] .p-Suggestion__icon,
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="event"] .p-Suggestion__icon {
  display: none;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__from {
  grid-area: from;
  width: auto;
  max-width: none;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__date {
  grid-area: date;
  font-size: var(--fontSizeBase200);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__subject {
  grid-area: subject;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__snippet {
  display: block;
  grid-area: snippet;
  overflow: hidden;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* An event. */
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="event"] {
  display: grid;
  grid-template-columns: 4px auto minmax(0, 1fr) auto;
  grid-template-areas:
    "bar label label organizer"
    "bar detail place place";
  column-gap: 12px;
  min-height: 56px;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__bar {
  display: block;
  grid-area: bar;
  align-self: stretch;
  border-radius: 2px;
  background-color: var(--colorBrandBackground);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="event"] .p-Suggestion__label {
  grid-area: label;
  max-width: none;
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion[data-kind="event"] .p-Suggestion__detail {
  grid-area: detail;
  font-size: var(--fontSizeBase200);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__place {
  display: block;
  grid-area: place;
  overflow: hidden;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__organizer {
  grid-area: organizer;
  max-width: 40vw;
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
.p-App[data-layout="phone"] .p-Search[data-search-open] .p-Suggestion__place::before {
  content: "· " / "";
}

/* Search results on a phone, design 38 (#462): one bar, the list's (← to leave the search,
   the field and the scope), the refiners one row that scrolls sideways; no app bar
   (`data-pushed="search"`), no "Exit search", no tab bar and no New message. */
.p-App[data-layout="phone"] :is(.p-Search[data-search-open], .p-MessageList__header > .p-Search) > .p-Search__cancel {
  display: none;
}
.p-App[data-layout="phone"] .p-MessageList__header > .p-Search > .p-Search__back {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--colorNeutralForeground1);
  cursor: pointer;
}
.p-App[data-layout="phone"] .p-MessageList__header > .p-Search > .p-Search__back svg:dir(rtl) {
  transform: scaleX(-1);
}
.p-App[data-layout="phone"] .p-SearchBar {
  flex-wrap: nowrap;
  padding: 0 0 8px;
}
.p-App[data-layout="phone"] .p-SearchBar__refiners {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}
.p-App[data-layout="phone"] .p-SearchBar__refiners > * {
  flex: none;
}
.p-App[data-layout="phone"] .p-SearchBar__status:empty {
  display: none;
}
.p-App[data-layout="phone"] .p-SearchBar__exit {
  display: none;
}

/* A swipe's tray on a phone, design 34 (#459): under the row being swiped, the side it
   uncovers; buttons of 72 px at most, a white icon over a 12 px label, in 10.5's fills.
   The row covers it, opaque while it moves or rests open. */
.p-SwipeTray {
  display: none;
}
.p-App[data-layout="phone"] .p-SwipeTray {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
  will-change: transform;
}
.p-App[data-layout="phone"] .p-SwipeTray[data-side="start"] {
  justify-content: flex-start;
}
.p-SwipeTray__button {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: var(--p-tray-button, 72px);
  height: 100%;
  padding: 0 4px;
  border: 0;
  background-color: var(--colorBrandBackground);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 16px;
  cursor: pointer;
}
.p-SwipeTray__icon {
  display: inline-flex;
}
.p-SwipeTray__label {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.p-SwipeTray__button[data-command="mail.flag"] {
  background-color: #bc4b09;
}
.p-SwipeTray__button[data-command="mail.snooze"] {
  /* 10.5's neutral fill, from tokens that keep 4.5:1 in either theme (Codex on !580). */
  background-color: var(--colorNeutralBackgroundInverted);
  color: var(--colorNeutralForegroundInverted);
}
.p-SwipeTray__button[data-command="mail.delete"] {
  background-color: var(--colorStatusDangerBackground3);
}
.p-App[data-layout="phone"] .p-Row[data-swiping],
.p-App[data-layout="phone"] .p-Row[data-tray-open] {
  background-color: var(--colorNeutralBackground1);
}
/* The open row's slot spans the width: the tray's buttons beside the row take the taps. */
.p-App[data-layout="phone"] .p-Slot:has(> .p-Row[data-tray-open]) {
  pointer-events: none;
}
.p-App[data-layout="phone"] .p-Row[data-tray-open] {
  pointer-events: auto;
}
@media (forced-colors: active) {
  .p-SwipeTray__button {
    border: 1px solid ButtonText;
    background-color: ButtonFace;
    color: ButtonText;
    forced-color-adjust: none;
  }
}

/* Mail's rows on a phone, design 30 (#459): roomy rows of 88 px (`Density::heights`), a 40 px
   avatar, the sender at 16/22 and one line of preview; a row with nothing to preview keeps
   its two lines in the middle, with no empty band. */
.p-App[data-layout="phone"][data-density="roomy"] .p-Slot--static {
  height: 88px;
}
.p-App[data-layout="phone"][data-preview="off"][data-density="roomy"] .p-Slot--static {
  height: 68px;
}
.p-App[data-layout="phone"][data-density="roomy"] .p-Row {
  padding-top: 13px;
  padding-bottom: 13px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-rows: 22px 20px 20px;
}
.p-App[data-layout="phone"][data-preview="off"][data-density="roomy"] .p-Row,
.p-App[data-layout="phone"][data-density="roomy"] .p-Row:has(.p-Row__preview[data-empty]) {
  grid-template-rows: 22px 20px;
  grid-template-areas:
    "avatar from date"
    "avatar subject icons";
}
.p-App[data-layout="phone"][data-density="roomy"] .p-Row:has(.p-Row__preview[data-empty]) .p-Row__preview {
  display: none;
}
.p-App[data-layout="phone"][data-density="roomy"] .p-Row__avatar {
  align-self: center;
}
.p-App[data-layout="phone"][data-density="roomy"] .p-Row__from {
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}
.p-App[data-layout="phone"][data-density="roomy"] .p-Row__date {
  align-self: center;
}
.p-App[data-layout="phone"][data-density="roomy"] .p-Row__preview {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The surfaces on a phone, designs 30 and 39 (#459): the app bar on the list's own
   background, the day headers a step apart. */
.p-App[data-layout="phone"] > .p-Header {
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-GroupHeader {
  background-color: var(--colorNeutralBackground2);
}

/* The folders on a phone, design 33 (#459): no first indent level (the account's folders
   start 16 px in), the counts at 14 px, Drafts' count plain grey. */
.p-App[data-layout="phone"] .p-FolderPane .fui-TreeItem[aria-level="1"] > .fui-TreeItemLayout {
  padding-inline-start: 8px;
}
.p-App[data-layout="phone"] .p-FolderPane .fui-TreeItem[data-item-type="leaf"]:not([aria-level="1"]) > .fui-TreeItemLayout {
  padding-inline-start: calc((var(--fluent-TreeItem--level, 2) - 2) * var(--spacingHorizontalXXL) + 16px);
}
.p-App[data-layout="phone"] .p-FolderPane .fui-TreeItem[data-item-type="branch"]:not([aria-level="1"]) > .fui-TreeItemLayout {
  padding-inline-start: calc((var(--fluent-TreeItem--level, 2) - 2) * var(--spacingHorizontalXXL) + 8px);
}
.p-App[data-layout="phone"] .p-FolderPane .fui-TreeItemLayout__aside .fui-CounterBadge,
.p-App[data-layout="phone"] .p-FolderPane__total {
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
}
.p-App[data-layout="phone"] .p-FolderPane__total {
  color: var(--colorNeutralForeground3);
  font-weight: var(--fontWeightRegular);
}
.p-App[data-layout="phone"] .p-FolderPane__bracket {
  display: none;
}
/* The folders' groups as cards (design 33, #459): the favourites, then each account, on
   the screen's background, their rows divided. */
.p-App[data-layout="phone"] .p-FolderPane .fui-TreeItem[aria-level="1"] {
  /* 16 px from the screen's edge, with the pane's own 4. */
  margin: 12px 12px 0;
  overflow: hidden;
  border: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: var(--borderRadiusXLarge);
  background-color: var(--colorNeutralBackground1);
}
.p-App[data-layout="phone"] .p-FolderPane .fui-TreeItem:not([aria-level="1"]) > .fui-TreeItemLayout {
  border-top: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  border-radius: 0;
}
.p-App[data-layout="phone"] .p-FolderPane .fui-TreeItem[data-value=":favorites"] > .fui-TreeItemLayout {
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
  font-weight: var(--fontWeightSemibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* People and Notes as tab roots on a phone, designs 44 and 46 (#464): one bar, the app bar,
   with the title and New (People) or the sort (Notes); no "All contacts" heading. People's
   rows have the name at 16/22 over one detail line (the address, else the number) beside a
   40 px avatar, and the alphabet index down the list's end, one 44 px target; Notes' rows are
   76 px, their titles at 16/22. */
.p-PeopleList__frame {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.p-PeopleIndex {
  display: none;
}
.p-App[data-layout="phone"] .p-PeoplePane__header[data-all] {
  display: none;
}
.p-App[data-layout="phone"] .p-PeopleList__slot > .p-PersonRow {
  grid-template-rows: 22px 18px;
  align-content: center;
  row-gap: 2px;
  padding-inline-end: 44px;
}
.p-App[data-layout="phone"] .p-PersonRow__name {
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}
/* The narrow window's table hides the details; a phone's row has them as its second line. */
.p-App[data-layout="phone"] .p-PersonRow__details {
  display: flex;
  line-height: 18px;
}
.p-App[data-layout="phone"] .p-PersonRow__details:not(:has(.p-PersonRow__email)) > .p-PersonRow__phone {
  display: block;
}
.p-App[data-layout="phone"] .p-PeopleList__letter {
  padding-inline-end: 44px;
}
.p-App[data-layout="phone"] .p-PeopleIndex {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  padding-block: 8px;
  box-sizing: border-box;
  color: var(--colorBrandForeground1);
  font-size: var(--fontSizeBase100);
  font-weight: var(--fontWeightSemibold);
  line-height: 14px;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}
.p-App[data-layout="phone"] .p-Notes .p-NoteRow {
  box-sizing: border-box;
  min-height: 76px;
  align-content: center;
  padding: 12px 16px;
}
.p-App[data-layout="phone"] .p-Notes .p-NoteRow__title {
  font-size: var(--fontSizeBase400);
  line-height: var(--lineHeightBase400);
}

/* The contact card and the note editor on a phone, designs 45 and 47 (#464): the card's
   80 px avatar, name and title line centred; the note's saved line above its title at 24/32,
   a 20 px inset, and one formatting row, Aa showing the rest under it. */
.p-App[data-layout="phone"] .p-ContactCard__header {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.p-App[data-layout="phone"] .p-ContactCard__avatar .fui-Avatar {
  width: 80px;
  height: 80px;
  font-size: var(--fontSizeBase600);
}
.p-App[data-layout="phone"] .p-ContactCard__title {
  align-items: center;
}
.p-App[data-layout="phone"] .p-ContactCard__badges {
  justify-content: center;
}
.p-App[data-layout="phone"] .p-NoteEditor__status {
  order: -1;
}
.p-App[data-layout="phone"] .p-NoteEditor__title,
.p-App[data-layout="phone"] .p-NoteEditor__status,
.p-App[data-layout="phone"] .p-NoteEditor__notice,
.p-App[data-layout="phone"] .p-NoteEditor__dictation,
.p-App[data-layout="phone"] .p-NoteEditor .p-EditorContent,
.p-App[data-layout="phone"] .p-NoteEditor .p-Editor__plain {
  padding-inline: 20px;
}
/* A touch screen's fields are at least 16 px, or 1em of their box (the zoom guard above):
   the title's box is at 24/32, so its field is too. */
.p-App[data-layout="phone"] .p-NoteEditor .p-NoteEditor__title {
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
}
.p-App[data-layout="phone"] .p-NoteEditor .p-NoteEditor__title .fui-Input__input {
  font-size: var(--fontSizeBase600);
  line-height: var(--lineHeightBase600);
  font-weight: var(--fontWeightSemibold);
}
[data-editor-more] {
  display: none;
}
.p-App[data-layout="phone"] .p-NoteEditor [data-editor-more] {
  display: inline-flex;
}
.p-App[data-layout="phone"] .p-NoteEditor .p-Editor__toolbar:not([data-more]) .fui-Toolbar {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.p-App[data-layout="phone"] .p-NoteEditor .p-Editor__toolbar:not([data-more]) .fui-Toolbar > :not(:is([data-editor-more], [data-editor-command="bold"], [data-editor-command="italic"], [data-editor-command="bulletList"], [data-editor-command="orderedList"]), :has(:is([data-editor-more], [data-editor-command="bold"], [data-editor-command="italic"], [data-editor-command="bulletList"], [data-editor-command="orderedList"]))) {
  display: none;
}

/* Offline on a phone, design 54 (#460): a 44 px bar, its sentence and Retry; a clock beside
   the time on rows with a change waiting for the server. */
.p-SyncStrip {
  box-sizing: border-box;
  min-height: 44px;
  padding-block: 0;
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
}
.p-SyncStrip {
  flex-wrap: wrap;
  row-gap: 0;
}
/* The lines keep room to read; the actions go under them when they would take it. */
.p-SyncStrip__lines {
  flex: 1 1 12em;
  min-width: min(12em, 100%);
}
.p-SyncStrip__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
  margin-inline-start: auto;
}
.p-SyncStrip__actions:empty {
  display: none;
}
.p-SyncStrip [data-sync-strip-retry] {
  color: var(--colorBrandForegroundLink);
  font-weight: var(--fontWeightSemibold);
}
.p-Row__pending {
  display: inline-flex;
  margin-inline-end: 4px;
  vertical-align: -2px;
  color: var(--colorNeutralForeground3);
}
.p-Row__pending .fui-Icon {
  width: 14px;
  height: 14px;
}

/* The Outbox strip on a phone, design 54 (#460): at the foot of the list, above the tab bar,
   the messages waiting for the server and View. */
.p-OutboxStrip {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 8px 0 16px;
  border-block-start: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground3);
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
}
.p-OutboxStrip__icon {
  display: inline-flex;
  color: var(--colorNeutralForeground2);
}
.p-OutboxStrip__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* New mail floats above the strip, as above the tab bar (design 54). */
.p-App[data-layout="phone"] .p-Workspace:has([data-outbox-strip]) .p-Fab {
  bottom: calc(16px + 44px);
}
.p-OutboxStrip .fui-Button {
  flex: none;
  min-height: 44px;
  color: var(--colorBrandForegroundLink);
  font-weight: var(--fontWeightSemibold);
}

/* People's detail line on a phone (design 44, #464): the job title and the organisation,
   else the address, else the number. The desktop's details column keeps the address and
   the number. */
.p-PersonRow__role {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-App[data-layout="phone"] .p-PersonRow__role {
  display: block;
}
.p-App[data-layout="phone"] .p-PersonRow__details:has(.p-PersonRow__role) > :not(.p-PersonRow__role) {
  display: none;
}

/* Pull to refresh on a phone, design 35 (#460): for the whole round, the spinner, "Checking
   for new mail" and when the copy was last up to date, on the list's band. */
.p-App[data-layout="phone"] .p-PullRefresh[data-refreshing] {
  flex-direction: column;
  gap: 4px;
  padding: 10px 16px;
  border-block-end: var(--strokeWidthThin) solid var(--colorNeutralStroke2);
  background-color: var(--colorNeutralBackground2);
  color: var(--colorNeutralForeground2);
}
.p-PullRefresh__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.p-PullRefresh__title {
  font-size: var(--fontSizeBase300);
  line-height: var(--lineHeightBase300);
}
.p-PullRefresh__last {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}

/* An empty folder on a phone, design 55 (#460): its icon in a neutral circle, its name, one
   sentence, Open folders and when the copy was last up to date. */
.p-Empty--folder {
  gap: 8px;
  padding: 24px 32px;
  text-align: center;
}
.p-Empty__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
  border-radius: var(--borderRadiusCircular);
  background-color: var(--colorNeutralBackground3);
  color: var(--colorNeutralForeground2);
}
.p-Empty__circle .fui-Icon {
  width: 40px;
  height: 40px;
}
.p-Empty--folder .p-Empty__title {
  font-size: var(--fontSizeBase500);
  line-height: var(--lineHeightBase500);
  font-weight: var(--fontWeightSemibold);
}
.p-Empty__text {
  max-width: 28em;
  color: var(--colorNeutralForeground2);
}
.p-Empty--folder .fui-Button {
  min-height: 44px;
  margin-top: 8px;
}
.p-Empty__synced {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-Empty__synced .fui-Icon {
  width: 14px;
  height: 14px;
  color: var(--colorPaletteGreenForeground1, var(--colorStatusSuccessForeground1));
}

/* css/people-recent.css */
/* ------------------------------------------------------------------ card's recent mail (#482)
   Design 45: the latest messages from the contact under the card's information, each a row
   with the sender and the date, then the subject; See all at the heading's end. */
.p-ContactCard__sectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.p-ContactCard__seeAll {
  min-height: 44px;
  font-weight: var(--fontWeightSemibold);
}
.p-ContactCard__messages {
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-ContactCard__message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--colorNeutralStroke2);
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-ContactCard__message:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: -2px;
}
.p-ContactCard__messageFrom,
.p-ContactCard__messageSubject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-ContactCard__messageFrom {
  font-weight: var(--fontWeightSemibold);
}
.p-ContactCard__message[data-unread] .p-ContactCard__messageSubject {
  font-weight: var(--fontWeightSemibold);
}
.p-ContactCard__messageDate {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
}
.p-ContactCard__messageSubject {
  grid-column: 1 / -1;
  color: var(--colorNeutralForeground2);
  font-size: var(--fontSizeBase200);
}
/* The card's next meeting (#482): the event's colour as a bar, its title, when, where. */
.p-ContactCard__event {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  column-gap: 12px;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.p-ContactCard__event:focus-visible {
  outline: 2px solid var(--colorStrokeFocus2);
  outline-offset: 2px;
}
.p-ContactCard__eventBar {
  align-self: stretch;
  border-radius: 2px;
  background-color: var(--p-color, var(--colorBrandBackground));
}
.p-ContactCard__eventText {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-ContactCard__eventTitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: var(--fontWeightSemibold);
}
.p-ContactCard__eventWhen,
.p-ContactCard__eventPlace {
  color: var(--colorNeutralForeground3);
  font-size: var(--fontSizeBase200);
  line-height: var(--lineHeightBase200);
}
@media (forced-colors: active) {
  .p-ContactCard__eventBar {
    background-color: CanvasText;
  }
}

