/* The chosen swatch supplies the paper colour for all four screens. */
:root[data-family-theme] {
  --fm-bg: var(--family-surface);
  --fm-canvas: color-mix(in srgb, var(--fm-bg) 89%, #71625a);
  --fm-card: color-mix(in srgb, var(--fm-bg) 28%, white);
  --fm-line: color-mix(in srgb, var(--fm-bg) 81%, #635750);
  --fm-muted: #5e524a;

  /* The original design uses fixed ivory fills on these surfaces. */
  & dialog:not(.photo-viewer),
  & .comment-composer,
  & .album-filters {
    background-color: var(--fm-bg);
  }
  & .memory,
  & #chat .chat-notice,
  & .comment-input,
  & textarea,
  & .profile-form input[name="displayName"],
  & .profile-picture-actions .profile-file-button {
    background-color: var(--fm-card);
    border-color: var(--fm-line);
  }
  & .album-filter + .album-filter::before {
    background: var(--fm-line);
  }
  & .tab:hover:not([aria-current="page"]) {
    background-color: var(--fm-card);
  }
}
