@layer modules {
  .fr-page { width: 100%; }

  .fr-page__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-block: 1rem 1.5rem;
  }

  .fr-page__title {
    font-weight: var(--font-weight-extrabold);
    font-size: var(--text-3xl);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
  }

  .fr-page__description {
    margin-top: 0.625rem;
    color: var(--color-text-soft);
    max-width: 62ch;
    text-wrap: pretty;
  }

  .fr-inbox {
    overflow: hidden;

    & .shared-table__table {
      min-width: 48rem;
    }

    & .shared-table {
      border-radius: 0;
      box-shadow: none;
    }
  }

  .fr-filters {
    padding: 1.25rem;
    background: var(--gradient-header);
    border-bottom: 1px solid var(--color-border);
  }

  .fr-filters__form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
  }

  .fr-filters__actions {
    display: flex;
    align-items: center;
    min-height: 2.625rem;
  }

  .fr-filters__field {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .fr-inbox__caption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }

  .fr-table__primary {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
  }

  .fr-table__secondary {
    margin-top: 0.375rem;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
  }

  .fr-detail--spaced {
    margin-bottom: 1.5rem;
  }

  .fr-detail__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1.5rem;

    @media (min-width: 40rem) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .fr-detail__description {
    color: var(--color-text-soft);
  }

  .fr-fields-steps > :not(:last-child) {
    margin-bottom: 0.75rem;
  }

  .fr-fields-list > :not(:last-child) {
    margin-bottom: 1rem;
  }

  .fr-field {
    position: relative;
    padding-left: 1rem;
    border-left-width: 2px;
    border-left-style: solid;
  }

  .fr-field--answered {
    border-left-color: var(--color-green-400);
  }

  .fr-field--blank {
    border-left-color: var(--color-border);
  }

  .fr-field__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .fr-field__label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
  }

  .fr-field__required {
    color: var(--color-red-500);
    margin-left: 0.125rem;
  }

  .fr-field__answered {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--text-xs);
    line-height: var(--text-xs--line-height);
    color: var(--color-green-600);
  }

  .fr-field__check {
    width: 0.875rem;
    height: 0.875rem;
  }

  .fr-field__description {
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    white-space: pre-line;
  }

  .fr-field__value-box {
    color: var(--color-text);
    background-color: var(--color-surface-muted);
    border-radius: var(--radius-md);
    padding-inline: 0.75rem;
    padding-block: 0.5rem;
  }

  .fr-field__signature {
    font-family: var(--font-signature);
    font-size: var(--text-2xl);
    line-height: var(--text-2xl--line-height);
  }

  .fr-field__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  .fr-field__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
  }

  .fr-field__checkbox--checked {
    color: var(--color-green-700);
  }

  .fr-field__checkbox--unchecked {
    color: var(--color-text-muted);
  }

  .fr-field__checkbox-icon {
    width: 0.875rem;
    height: 0.875rem;
  }

  .fr-field__placeholder {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
  }

  .fr-list-empty {
    text-align: center;
    padding-block: 3rem;
  }

  .fr-list-empty__disc {
    margin-inline: auto;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: var(--radius-full);
    background-color: var(--color-violet-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .fr-list-empty__icon {
    height: 1.75rem;
    width: 1.75rem;
    color: var(--color-violet-400);
  }

  .fr-list-empty__title {
    font-size: var(--text-base);
    line-height: var(--text-base--line-height);
    font-weight: var(--font-weight-semibold);
    color: var(--color-gray-900);
  }

  .fr-list-empty__text {
    margin-top: 0.25rem;
    font-size: var(--text-sm);
    line-height: var(--text-sm--line-height);
    color: var(--color-gray-500);
    max-width: var(--container-xs);
    margin-inline: auto;
  }
}
